figura-cli 0.23.0 → 0.23.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/mcp.js CHANGED
@@ -1,40 +1,40 @@
1
1
  #!/usr/bin/env node
2
- import{createRequire as eN}from"node:module";var yN=Object.create;var{getPrototypeOf:gN,defineProperty:C3,getOwnPropertyNames:hN}=Object;var oN=Object.prototype.hasOwnProperty;function aN(x){return this[x]}var dN,rN,Z8=(x,Q,W)=>{var Y=x!=null&&typeof x==="object";if(Y){var X=Q?dN??=new WeakMap:rN??=new WeakMap,J=X.get(x);if(J)return J}W=x!=null?yN(gN(x)):{};let G=Q||!x||!x.__esModule?C3(W,"default",{value:x,enumerable:!0}):W;for(let $ of hN(x))if(!oN.call(G,$))C3(G,$,{get:aN.bind(x,$),enumerable:!0});if(Y)X.set(x,G);return G};var M=(x,Q)=>()=>(Q||x((Q={exports:{}}).exports,Q),Q.exports);var sN=(x)=>x;function tN(x,Q){this[x]=sN.bind(null,Q)}var i8=(x,Q)=>{for(var W in Q)C3(x,W,{get:Q[W],enumerable:!0,configurable:!0,set:tN.bind(Q,W)})};var N9=(x,Q)=>()=>(x&&(Q=x(x=0)),Q);var K0=eN(import.meta.url);var SJ=M((M_,EJ)=>{var IJ=K0("stream").Stream,WU=K0("util");EJ.exports=u1;function u1(){this.source=null,this.dataSize=0,this.maxDataSize=1048576,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}WU.inherits(u1,IJ);u1.create=function(x,Q){var W=new this;Q=Q||{};for(var Y in Q)W[Y]=Q[Y];W.source=x;var X=x.emit;if(x.emit=function(){return W._handleEmit(arguments),X.apply(x,arguments)},x.on("error",function(){}),W.pauseStream)x.pause();return W};Object.defineProperty(u1.prototype,"readable",{configurable:!0,enumerable:!0,get:function(){return this.source.readable}});u1.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)};u1.prototype.resume=function(){if(!this._released)this.release();this.source.resume()};u1.prototype.pause=function(){this.source.pause()};u1.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(x){this.emit.apply(this,x)}.bind(this)),this._bufferedEvents=[]};u1.prototype.pipe=function(){var x=IJ.prototype.pipe.apply(this,arguments);return this.resume(),x};u1.prototype._handleEmit=function(x){if(this._released){this.emit.apply(this,x);return}if(x[0]==="data")this.dataSize+=x[1].length,this._checkIfMaxDataSizeExceeded();this._bufferedEvents.push(x)};u1.prototype._checkIfMaxDataSizeExceeded=function(){if(this._maxDataSizeExceeded)return;if(this.dataSize<=this.maxDataSize)return;this._maxDataSizeExceeded=!0;var x="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",Error(x))}});var iJ=M((D_,ZJ)=>{var YU=K0("util"),RJ=K0("stream").Stream,PJ=SJ();ZJ.exports=i0;function i0(){this.writable=!1,this.readable=!0,this.dataSize=0,this.maxDataSize=2097152,this.pauseStreams=!0,this._released=!1,this._streams=[],this._currentStream=null,this._insideLoop=!1,this._pendingNext=!1}YU.inherits(i0,RJ);i0.create=function(x){var Q=new this;x=x||{};for(var W in x)Q[W]=x[W];return Q};i0.isStreamLike=function(x){return typeof x!=="function"&&typeof x!=="string"&&typeof x!=="boolean"&&typeof x!=="number"&&!Buffer.isBuffer(x)};i0.prototype.append=function(x){var Q=i0.isStreamLike(x);if(Q){if(!(x instanceof PJ)){var W=PJ.create(x,{maxDataSize:1/0,pauseStream:this.pauseStreams});x.on("data",this._checkDataSize.bind(this)),x=W}if(this._handleErrors(x),this.pauseStreams)x.pause()}return this._streams.push(x),this};i0.prototype.pipe=function(x,Q){return RJ.prototype.pipe.call(this,x,Q),this.resume(),x};i0.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}};i0.prototype._realGetNext=function(){var x=this._streams.shift();if(typeof x>"u"){this.end();return}if(typeof x!=="function"){this._pipeNext(x);return}var Q=x;Q(function(W){var Y=i0.isStreamLike(W);if(Y)W.on("data",this._checkDataSize.bind(this)),this._handleErrors(W);this._pipeNext(W)}.bind(this))};i0.prototype._pipeNext=function(x){this._currentStream=x;var Q=i0.isStreamLike(x);if(Q){x.on("end",this._getNext.bind(this)),x.pipe(this,{end:!1});return}var W=x;this.write(W),this._getNext()};i0.prototype._handleErrors=function(x){var Q=this;x.on("error",function(W){Q._emitError(W)})};i0.prototype.write=function(x){this.emit("data",x)};i0.prototype.pause=function(){if(!this.pauseStreams)return;if(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause=="function")this._currentStream.pause();this.emit("pause")};i0.prototype.resume=function(){if(!this._released)this._released=!0,this.writable=!0,this._getNext();if(this.pauseStreams&&this._currentStream&&typeof this._currentStream.resume=="function")this._currentStream.resume();this.emit("resume")};i0.prototype.end=function(){this._reset(),this.emit("end")};i0.prototype.destroy=function(){this._reset(),this.emit("close")};i0.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null};i0.prototype._checkDataSize=function(){if(this._updateDataSize(),this.dataSize<=this.maxDataSize)return;var x="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(Error(x))};i0.prototype._updateDataSize=function(){this.dataSize=0;var x=this;if(this._streams.forEach(function(Q){if(!Q.dataSize)return;x.dataSize+=Q.dataSize}),this._currentStream&&this._currentStream.dataSize)this.dataSize+=this._currentStream.dataSize};i0.prototype._emitError=function(x){this._reset(),this.emit("error",x)}});var CJ=M((c_,XU)=>{XU.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 pJ=M((BU)=>{/*!
2
+ import{createRequire as XU}from"node:module";var dN=Object.create;var{getPrototypeOf:rN,defineProperty:C3,getOwnPropertyNames:sN}=Object;var tN=Object.prototype.hasOwnProperty;function eN(x){return this[x]}var xU,QU,Z8=(x,Q,W)=>{var Y=x!=null&&typeof x==="object";if(Y){var X=Q?xU??=new WeakMap:QU??=new WeakMap,J=X.get(x);if(J)return J}W=x!=null?dN(rN(x)):{};let G=Q||!x||!x.__esModule?C3(W,"default",{value:x,enumerable:!0}):W;for(let $ of sN(x))if(!tN.call(G,$))C3(G,$,{get:eN.bind(x,$),enumerable:!0});if(Y)X.set(x,G);return G};var M=(x,Q)=>()=>(Q||x((Q={exports:{}}).exports,Q),Q.exports);var WU=(x)=>x;function YU(x,Q){this[x]=WU.bind(null,Q)}var i8=(x,Q)=>{for(var W in Q)C3(x,W,{get:Q[W],enumerable:!0,configurable:!0,set:YU.bind(Q,W)})};var N9=(x,Q)=>()=>(x&&(Q=x(x=0)),Q);var K0=XU(import.meta.url);var ZJ=M((I_,RJ)=>{var PJ=K0("stream").Stream,$L=K0("util");RJ.exports=u1;function u1(){this.source=null,this.dataSize=0,this.maxDataSize=1048576,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}$L.inherits(u1,PJ);u1.create=function(x,Q){var W=new this;Q=Q||{};for(var Y in Q)W[Y]=Q[Y];W.source=x;var X=x.emit;if(x.emit=function(){return W._handleEmit(arguments),X.apply(x,arguments)},x.on("error",function(){}),W.pauseStream)x.pause();return W};Object.defineProperty(u1.prototype,"readable",{configurable:!0,enumerable:!0,get:function(){return this.source.readable}});u1.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)};u1.prototype.resume=function(){if(!this._released)this.release();this.source.resume()};u1.prototype.pause=function(){this.source.pause()};u1.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(x){this.emit.apply(this,x)}.bind(this)),this._bufferedEvents=[]};u1.prototype.pipe=function(){var x=PJ.prototype.pipe.apply(this,arguments);return this.resume(),x};u1.prototype._handleEmit=function(x){if(this._released){this.emit.apply(this,x);return}if(x[0]==="data")this.dataSize+=x[1].length,this._checkIfMaxDataSizeExceeded();this._bufferedEvents.push(x)};u1.prototype._checkIfMaxDataSizeExceeded=function(){if(this._maxDataSizeExceeded)return;if(this.dataSize<=this.maxDataSize)return;this._maxDataSizeExceeded=!0;var x="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",Error(x))}});var kJ=M((E_,TJ)=>{var bL=K0("util"),CJ=K0("stream").Stream,iJ=ZJ();TJ.exports=i0;function i0(){this.writable=!1,this.readable=!0,this.dataSize=0,this.maxDataSize=2097152,this.pauseStreams=!0,this._released=!1,this._streams=[],this._currentStream=null,this._insideLoop=!1,this._pendingNext=!1}bL.inherits(i0,CJ);i0.create=function(x){var Q=new this;x=x||{};for(var W in x)Q[W]=x[W];return Q};i0.isStreamLike=function(x){return typeof x!=="function"&&typeof x!=="string"&&typeof x!=="boolean"&&typeof x!=="number"&&!Buffer.isBuffer(x)};i0.prototype.append=function(x){var Q=i0.isStreamLike(x);if(Q){if(!(x instanceof iJ)){var W=iJ.create(x,{maxDataSize:1/0,pauseStream:this.pauseStreams});x.on("data",this._checkDataSize.bind(this)),x=W}if(this._handleErrors(x),this.pauseStreams)x.pause()}return this._streams.push(x),this};i0.prototype.pipe=function(x,Q){return CJ.prototype.pipe.call(this,x,Q),this.resume(),x};i0.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}};i0.prototype._realGetNext=function(){var x=this._streams.shift();if(typeof x>"u"){this.end();return}if(typeof x!=="function"){this._pipeNext(x);return}var Q=x;Q(function(W){var Y=i0.isStreamLike(W);if(Y)W.on("data",this._checkDataSize.bind(this)),this._handleErrors(W);this._pipeNext(W)}.bind(this))};i0.prototype._pipeNext=function(x){this._currentStream=x;var Q=i0.isStreamLike(x);if(Q){x.on("end",this._getNext.bind(this)),x.pipe(this,{end:!1});return}var W=x;this.write(W),this._getNext()};i0.prototype._handleErrors=function(x){var Q=this;x.on("error",function(W){Q._emitError(W)})};i0.prototype.write=function(x){this.emit("data",x)};i0.prototype.pause=function(){if(!this.pauseStreams)return;if(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause=="function")this._currentStream.pause();this.emit("pause")};i0.prototype.resume=function(){if(!this._released)this._released=!0,this.writable=!0,this._getNext();if(this.pauseStreams&&this._currentStream&&typeof this._currentStream.resume=="function")this._currentStream.resume();this.emit("resume")};i0.prototype.end=function(){this._reset(),this.emit("end")};i0.prototype.destroy=function(){this._reset(),this.emit("close")};i0.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null};i0.prototype._checkDataSize=function(){if(this._updateDataSize(),this.dataSize<=this.maxDataSize)return;var x="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(Error(x))};i0.prototype._updateDataSize=function(){this.dataSize=0;var x=this;if(this._streams.forEach(function(Q){if(!Q.dataSize)return;x.dataSize+=Q.dataSize}),this._currentStream&&this._currentStream.dataSize)this.dataSize+=this._currentStream.dataSize};i0.prototype._emitError=function(x){this._reset(),this.emit("error",x)}});var _J=M((S_,zL)=>{zL.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 mJ=M((qL)=>{/*!
3
3
  * mime-types
4
4
  * Copyright(c) 2014 Jonathan Ong
5
5
  * Copyright(c) 2015 Douglas Christopher Wilson
6
6
  * MIT Licensed
7
- */var D9=CJ(),JU=K0("path").extname,TJ=/^\s*([^;\s]*)(?:;|\s|$)/,GU=/^text\//i;BU.charset=kJ;BU.charsets={lookup:kJ};BU.contentType=$U;BU.extension=bU;BU.extensions=Object.create(null);BU.lookup=zU;BU.types=Object.create(null);vU(BU.extensions,BU.types);function kJ(x){if(!x||typeof x!=="string")return!1;var Q=TJ.exec(x),W=Q&&D9[Q[1].toLowerCase()];if(W&&W.charset)return W.charset;if(Q&&GU.test(Q[1]))return"UTF-8";return!1}function $U(x){if(!x||typeof x!=="string")return!1;var Q=x.indexOf("/")===-1?BU.lookup(x):x;if(!Q)return!1;if(Q.indexOf("charset")===-1){var W=BU.charset(Q);if(W)Q+="; charset="+W.toLowerCase()}return Q}function bU(x){if(!x||typeof x!=="string")return!1;var Q=TJ.exec(x),W=Q&&BU.extensions[Q[1].toLowerCase()];if(!W||!W.length)return!1;return W[0]}function zU(x){if(!x||typeof x!=="string")return!1;var Q=JU("x."+x).toLowerCase().substr(1);if(!Q)return!1;return BU.types[Q]||!1}function vU(x,Q){var W=["nginx","apache",void 0,"iana"];Object.keys(D9).forEach(function(X){var J=D9[X],G=J.extensions;if(!G||!G.length)return;x[X]=G;for(var $=0;$<G.length;$++){var b=G[$];if(Q[b]){var z=W.indexOf(D9[Q[b]].source),v=W.indexOf(J.source);if(Q[b]!=="application/octet-stream"&&(z>v||z===v&&Q[b].substr(0,12)==="application/"))continue}Q[b]=X}})}});var nJ=M((A_,lJ)=>{lJ.exports=VU;function VU(x){var Q=typeof setImmediate=="function"?setImmediate:typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:null;if(Q)Q(x);else setTimeout(x,0)}});var n3=M((O_,fJ)=>{var mJ=nJ();fJ.exports=qU;function qU(x){var Q=!1;return mJ(function(){Q=!0}),function(Y,X){if(Q)x(Y,X);else mJ(function(){x(Y,X)})}}});var m3=M((I_,yJ)=>{yJ.exports=NU;function NU(x){Object.keys(x.jobs).forEach(LU.bind(x)),x.jobs={}}function LU(x){if(typeof this.jobs[x]=="function")this.jobs[x]()}});var f3=M((E_,hJ)=>{var gJ=n3(),UU=m3();hJ.exports=FU;function FU(x,Q,W,Y){var X=W.keyedList?W.keyedList[W.index]:W.index;W.jobs[X]=MU(Q,X,x[X],function(J,G){if(!(X in W.jobs))return;if(delete W.jobs[X],J)UU(W);else W.results[X]=G;Y(J,W.results)})}function MU(x,Q,W,Y){var X;if(x.length==2)X=x(W,gJ(Y));else X=x(W,Q,gJ(Y));return X}});var y3=M((S_,oJ)=>{oJ.exports=DU;function DU(x,Q){var W=!Array.isArray(x),Y={index:0,keyedList:W||Q?Object.keys(x):null,jobs:{},results:W?{}:[],size:W?Object.keys(x).length:x.length};if(Q)Y.keyedList.sort(W?Q:function(X,J){return Q(x[X],x[J])});return Y}});var g3=M((P_,aJ)=>{var cU=m3(),jU=n3();aJ.exports=AU;function AU(x){if(!Object.keys(this.jobs).length)return;this.index=this.size,cU(this),jU(x)(null,this.results)}});var rJ=M((R_,dJ)=>{var OU=f3(),IU=y3(),EU=g3();dJ.exports=SU;function SU(x,Q,W){var Y=IU(x);while(Y.index<(Y.keyedList||x).length)OU(x,Q,Y,function(X,J){if(X){W(X,J);return}if(Object.keys(Y.jobs).length===0){W(null,Y.results);return}}),Y.index++;return EU.bind(Y,W)}});var h3=M((Z_,c9)=>{var sJ=f3(),PU=y3(),RU=g3();c9.exports=ZU;c9.exports.ascending=tJ;c9.exports.descending=iU;function ZU(x,Q,W,Y){var X=PU(x,W);return sJ(x,Q,X,function J(G,$){if(G){Y(G,$);return}if(X.index++,X.index<(X.keyedList||x).length){sJ(x,Q,X,J);return}Y(null,X.results)}),RU.bind(X,Y)}function tJ(x,Q){return x<Q?-1:x>Q?1:0}function iU(x,Q){return-1*tJ(x,Q)}});var xG=M((i_,eJ)=>{var CU=h3();eJ.exports=TU;function TU(x,Q,W){return CU(x,Q,null,W)}});var WG=M((C_,QG)=>{QG.exports={parallel:rJ(),serial:xG(),serialOrdered:h3()}});var o3=M((T_,YG)=>{YG.exports=Object});var JG=M((k_,XG)=>{XG.exports=Error});var $G=M((__,GG)=>{GG.exports=EvalError});var zG=M((u_,bG)=>{bG.exports=RangeError});var BG=M((p_,vG)=>{vG.exports=ReferenceError});var KG=M((l_,wG)=>{wG.exports=SyntaxError});var j9=M((n_,HG)=>{HG.exports=TypeError});var qG=M((m_,VG)=>{VG.exports=URIError});var LG=M((f_,NG)=>{NG.exports=Math.abs});var FG=M((y_,UG)=>{UG.exports=Math.floor});var DG=M((g_,MG)=>{MG.exports=Math.max});var jG=M((h_,cG)=>{cG.exports=Math.min});var OG=M((o_,AG)=>{AG.exports=Math.pow});var EG=M((a_,IG)=>{IG.exports=Math.round});var PG=M((d_,SG)=>{SG.exports=Number.isNaN||function(Q){return Q!==Q}});var ZG=M((r_,RG)=>{var kU=PG();RG.exports=function(Q){if(kU(Q)||Q===0)return Q;return Q<0?-1:1}});var CG=M((s_,iG)=>{iG.exports=Object.getOwnPropertyDescriptor});var a3=M((t_,TG)=>{var A9=CG();if(A9)try{A9([],"length")}catch(x){A9=null}TG.exports=A9});var _G=M((e_,kG)=>{var O9=Object.defineProperty||!1;if(O9)try{O9({},"a",{value:1})}catch(x){O9=!1}kG.exports=O9});var d3=M((xu,uG)=>{uG.exports=function(){if(typeof Symbol!=="function"||typeof Object.getOwnPropertySymbols!=="function")return!1;if(typeof Symbol.iterator==="symbol")return!0;var Q={},W=Symbol("test"),Y=Object(W);if(typeof W==="string")return!1;if(Object.prototype.toString.call(W)!=="[object Symbol]")return!1;if(Object.prototype.toString.call(Y)!=="[object Symbol]")return!1;var X=42;Q[W]=X;for(var J in Q)return!1;if(typeof Object.keys==="function"&&Object.keys(Q).length!==0)return!1;if(typeof Object.getOwnPropertyNames==="function"&&Object.getOwnPropertyNames(Q).length!==0)return!1;var G=Object.getOwnPropertySymbols(Q);if(G.length!==1||G[0]!==W)return!1;if(!Object.prototype.propertyIsEnumerable.call(Q,W))return!1;if(typeof Object.getOwnPropertyDescriptor==="function"){var $=Object.getOwnPropertyDescriptor(Q,W);if($.value!==X||$.enumerable!==!0)return!1}return!0}});var nG=M((Qu,lG)=>{var pG=typeof Symbol<"u"&&Symbol,_U=d3();lG.exports=function(){if(typeof pG!=="function")return!1;if(typeof Symbol!=="function")return!1;if(typeof pG("foo")!=="symbol")return!1;if(typeof Symbol("bar")!=="symbol")return!1;return _U()}});var r3=M((Wu,mG)=>{mG.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var s3=M((Yu,fG)=>{var uU=o3();fG.exports=uU.getPrototypeOf||null});var hG=M((Xu,gG)=>{var pU="Function.prototype.bind called on incompatible ",lU=Object.prototype.toString,nU=Math.max,mU="[object Function]",yG=function(Q,W){var Y=[];for(var X=0;X<Q.length;X+=1)Y[X]=Q[X];for(var J=0;J<W.length;J+=1)Y[J+Q.length]=W[J];return Y},fU=function(Q,W){var Y=[];for(var X=W||0,J=0;X<Q.length;X+=1,J+=1)Y[J]=Q[X];return Y},yU=function(x,Q){var W="";for(var Y=0;Y<x.length;Y+=1)if(W+=x[Y],Y+1<x.length)W+=Q;return W};gG.exports=function(Q){var W=this;if(typeof W!=="function"||lU.apply(W)!==mU)throw TypeError(pU+W);var Y=fU(arguments,1),X,J=function(){if(this instanceof X){var v=W.apply(this,yG(Y,arguments));if(Object(v)===v)return v;return this}return W.apply(Q,yG(Y,arguments))},G=nU(0,W.length-Y.length),$=[];for(var b=0;b<G;b++)$[b]="$"+b;if(X=Function("binder","return function ("+yU($,",")+"){ return binder.apply(this,arguments); }")(J),W.prototype){var z=function(){};z.prototype=W.prototype,X.prototype=new z,z.prototype=null}return X}});var l8=M((Ju,oG)=>{var gU=hG();oG.exports=Function.prototype.bind||gU});var I9=M((Gu,aG)=>{aG.exports=Function.prototype.call});var t3=M(($u,dG)=>{dG.exports=Function.prototype.apply});var sG=M((bu,rG)=>{rG.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var eG=M((zu,tG)=>{var hU=l8(),oU=t3(),aU=I9(),dU=sG();tG.exports=dU||hU.call(aU,oU)});var Q$=M((vu,x$)=>{var rU=l8(),sU=j9(),tU=I9(),eU=eG();x$.exports=function(Q){if(Q.length<1||typeof Q[0]!=="function")throw new sU("a function is required");return eU(rU,tU,Q)}});var $$=M((Bu,G$)=>{var xF=Q$(),W$=a3(),X$;try{X$=[].__proto__===Array.prototype}catch(x){if(!x||typeof x!=="object"||!("code"in x)||x.code!=="ERR_PROTO_ACCESS")throw x}var e3=!!X$&&W$&&W$(Object.prototype,"__proto__"),J$=Object,Y$=J$.getPrototypeOf;G$.exports=e3&&typeof e3.get==="function"?xF([e3.get]):typeof Y$==="function"?function(Q){return Y$(Q==null?Q:J$(Q))}:!1});var w$=M((wu,B$)=>{var b$=r3(),z$=s3(),v$=$$();B$.exports=b$?function(Q){return b$(Q)}:z$?function(Q){if(!Q||typeof Q!=="object"&&typeof Q!=="function")throw TypeError("getProto: not an object");return z$(Q)}:v$?function(Q){return v$(Q)}:null});var E9=M((Ku,K$)=>{var QF=Function.prototype.call,WF=Object.prototype.hasOwnProperty,YF=l8();K$.exports=YF.call(QF,WF)});var U$=M((Hu,L$)=>{var t,XF=o3(),JF=JG(),GF=$G(),$F=zG(),bF=BG(),kx=KG(),Tx=j9(),zF=qG(),vF=LG(),BF=FG(),wF=DG(),KF=jG(),HF=OG(),VF=EG(),qF=ZG(),q$=Function,x5=function(x){try{return q$('"use strict"; return ('+x+").constructor;")()}catch(Q){}},n8=a3(),NF=_G(),Q5=function(){throw new Tx},LF=n8?function(){try{return arguments.callee,Q5}catch(x){try{return n8(arguments,"callee").get}catch(Q){return Q5}}}():Q5,ix=nG()(),y0=w$(),UF=s3(),FF=r3(),N$=t3(),m8=I9(),Cx={},MF=typeof Uint8Array>"u"||!y0?t:y0(Uint8Array),t4={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?t:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?t:ArrayBuffer,"%ArrayIteratorPrototype%":ix&&y0?y0([][Symbol.iterator]()):t,"%AsyncFromSyncIteratorPrototype%":t,"%AsyncFunction%":Cx,"%AsyncGenerator%":Cx,"%AsyncGeneratorFunction%":Cx,"%AsyncIteratorPrototype%":Cx,"%Atomics%":typeof Atomics>"u"?t:Atomics,"%BigInt%":typeof BigInt>"u"?t:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?t:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?t:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?t:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":JF,"%eval%":eval,"%EvalError%":GF,"%Float16Array%":typeof Float16Array>"u"?t:Float16Array,"%Float32Array%":typeof Float32Array>"u"?t:Float32Array,"%Float64Array%":typeof Float64Array>"u"?t:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?t:FinalizationRegistry,"%Function%":q$,"%GeneratorFunction%":Cx,"%Int8Array%":typeof Int8Array>"u"?t:Int8Array,"%Int16Array%":typeof Int16Array>"u"?t:Int16Array,"%Int32Array%":typeof Int32Array>"u"?t:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ix&&y0?y0(y0([][Symbol.iterator]())):t,"%JSON%":typeof JSON==="object"?JSON:t,"%Map%":typeof Map>"u"?t:Map,"%MapIteratorPrototype%":typeof Map>"u"||!ix||!y0?t:y0(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":XF,"%Object.getOwnPropertyDescriptor%":n8,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?t:Promise,"%Proxy%":typeof Proxy>"u"?t:Proxy,"%RangeError%":$F,"%ReferenceError%":bF,"%Reflect%":typeof Reflect>"u"?t:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?t:Set,"%SetIteratorPrototype%":typeof Set>"u"||!ix||!y0?t:y0(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?t:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ix&&y0?y0(""[Symbol.iterator]()):t,"%Symbol%":ix?Symbol:t,"%SyntaxError%":kx,"%ThrowTypeError%":LF,"%TypedArray%":MF,"%TypeError%":Tx,"%Uint8Array%":typeof Uint8Array>"u"?t:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?t:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?t:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?t:Uint32Array,"%URIError%":zF,"%WeakMap%":typeof WeakMap>"u"?t:WeakMap,"%WeakRef%":typeof WeakRef>"u"?t:WeakRef,"%WeakSet%":typeof WeakSet>"u"?t:WeakSet,"%Function.prototype.call%":m8,"%Function.prototype.apply%":N$,"%Object.defineProperty%":NF,"%Object.getPrototypeOf%":UF,"%Math.abs%":vF,"%Math.floor%":BF,"%Math.max%":wF,"%Math.min%":KF,"%Math.pow%":HF,"%Math.round%":VF,"%Math.sign%":qF,"%Reflect.getPrototypeOf%":FF};if(y0)try{null.error}catch(x){W5=y0(y0(x)),t4["%Error.prototype%"]=W5}var W5,DF=function x(Q){var W;if(Q==="%AsyncFunction%")W=x5("async function () {}");else if(Q==="%GeneratorFunction%")W=x5("function* () {}");else if(Q==="%AsyncGeneratorFunction%")W=x5("async function* () {}");else if(Q==="%AsyncGenerator%"){var Y=x("%AsyncGeneratorFunction%");if(Y)W=Y.prototype}else if(Q==="%AsyncIteratorPrototype%"){var X=x("%AsyncGenerator%");if(X&&y0)W=y0(X.prototype)}return t4[Q]=W,W},H$={__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"]},f8=l8(),S9=E9(),cF=f8.call(m8,Array.prototype.concat),jF=f8.call(N$,Array.prototype.splice),V$=f8.call(m8,String.prototype.replace),P9=f8.call(m8,String.prototype.slice),AF=f8.call(m8,RegExp.prototype.exec),OF=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,IF=/\\(\\)?/g,EF=function(Q){var W=P9(Q,0,1),Y=P9(Q,-1);if(W==="%"&&Y!=="%")throw new kx("invalid intrinsic syntax, expected closing `%`");else if(Y==="%"&&W!=="%")throw new kx("invalid intrinsic syntax, expected opening `%`");var X=[];return V$(Q,OF,function(J,G,$,b){X[X.length]=$?V$(b,IF,"$1"):G||J}),X},SF=function(Q,W){var Y=Q,X;if(S9(H$,Y))X=H$[Y],Y="%"+X[0]+"%";if(S9(t4,Y)){var J=t4[Y];if(J===Cx)J=DF(Y);if(typeof J>"u"&&!W)throw new Tx("intrinsic "+Q+" exists, but is not available. Please file an issue!");return{alias:X,name:Y,value:J}}throw new kx("intrinsic "+Q+" does not exist!")};L$.exports=function(Q,W){if(typeof Q!=="string"||Q.length===0)throw new Tx("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof W!=="boolean")throw new Tx('"allowMissing" argument must be a boolean');if(AF(/^%?[^%]*%?$/,Q)===null)throw new kx("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Y=EF(Q),X=Y.length>0?Y[0]:"",J=SF("%"+X+"%",W),G=J.name,$=J.value,b=!1,z=J.alias;if(z)X=z[0],jF(Y,cF([0,1],z));for(var v=1,B=!0;v<Y.length;v+=1){var K=Y[v],w=P9(K,0,1),V=P9(K,-1);if((w==='"'||w==="'"||w==="`"||(V==='"'||V==="'"||V==="`"))&&w!==V)throw new kx("property names with quotes must have matching quotes");if(K==="constructor"||!B)b=!0;if(X+="."+K,G="%"+X+"%",S9(t4,G))$=t4[G];else if($!=null){if(!(K in $)){if(!W)throw new Tx("base intrinsic for "+Q+" exists, but the property is not available.");return}if(n8&&v+1>=Y.length){var N=n8($,K);if(B=!!N,B&&"get"in N&&!("originalValue"in N.get))$=N.get;else $=$[K]}else B=S9($,K),$=$[K];if(B&&!b)t4[G]=$}}return $}});var M$=M((Vu,F$)=>{var PF=d3();F$.exports=function(){return PF()&&!!Symbol.toStringTag}});var j$=M((qu,c$)=>{var RF=U$(),D$=RF("%Object.defineProperty%",!0),ZF=M$()(),iF=E9(),CF=j9(),R9=ZF?Symbol.toStringTag:null;c$.exports=function(Q,W){var Y=arguments.length>2&&!!arguments[2]&&arguments[2].force,X=arguments.length>2&&!!arguments[2]&&arguments[2].nonConfigurable;if(typeof Y<"u"&&typeof Y!=="boolean"||typeof X<"u"&&typeof X!=="boolean")throw new CF("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");if(R9&&(Y||!iF(Q,R9)))if(D$)D$(Q,R9,{configurable:!X,enumerable:!1,value:W,writable:!1});else Q[R9]=W}});var O$=M((Nu,A$)=>{A$.exports=function(x,Q){return Object.keys(Q).forEach(function(W){x[W]=x[W]||Q[W]}),x}});var S$=M((Lu,E$)=>{var G5=iJ(),TF=K0("util"),Y5=K0("path"),kF=K0("http"),_F=K0("https"),uF=K0("url").parse,pF=K0("fs"),lF=K0("stream").Stream,nF=K0("crypto"),X5=pJ(),mF=WG(),fF=j$(),D4=E9(),J5=O$();function I$(x){return String(x).replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/"/g,"%22")}function J0(x){if(!(this instanceof J0))return new J0(x);this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],G5.call(this),x=x||{};for(var Q in x)this[Q]=x[Q]}TF.inherits(J0,G5);J0.LINE_BREAK=`\r
8
- `;J0.DEFAULT_CONTENT_TYPE="application/octet-stream";J0.prototype.append=function(x,Q,W){if(W=W||{},typeof W==="string")W={filename:W};var Y=G5.prototype.append.bind(this);if(typeof Q==="number"||Q==null)Q=String(Q);if(Array.isArray(Q)){this._error(Error("Arrays are not supported."));return}var X=this._multiPartHeader(x,Q,W),J=this._multiPartFooter();Y(X),Y(Q),Y(J),this._trackLength(X,Q,W)};J0.prototype._trackLength=function(x,Q,W){var Y=0;if(W.knownLength!=null)Y+=Number(W.knownLength);else if(Buffer.isBuffer(Q))Y=Q.length;else if(typeof Q==="string")Y=Buffer.byteLength(Q);if(this._valueLength+=Y,this._overheadLength+=Buffer.byteLength(x)+J0.LINE_BREAK.length,!Q||!Q.path&&!(Q.readable&&D4(Q,"httpVersion"))&&!(Q instanceof lF))return;if(!W.knownLength)this._valuesToMeasure.push(Q)};J0.prototype._lengthRetriever=function(x,Q){if(D4(x,"fd"))if(x.end!=null&&x.end!=1/0&&x.start!=null)Q(null,x.end+1-(x.start?x.start:0));else pF.stat(x.path,function(W,Y){if(W){Q(W);return}var X=Y.size-(x.start?x.start:0);Q(null,X)});else if(D4(x,"httpVersion"))Q(null,Number(x.headers["content-length"]));else if(D4(x,"httpModule"))x.on("response",function(W){x.pause(),Q(null,Number(W.headers["content-length"]))}),x.resume();else Q("Unknown stream")};J0.prototype._multiPartHeader=function(x,Q,W){if(typeof W.header==="string")return W.header;var Y=this._getContentDisposition(Q,W),X=this._getContentType(Q,W),J="",G={"Content-Disposition":["form-data",'name="'+I$(x)+'"'].concat(Y||[]),"Content-Type":[].concat(X||[])};if(typeof W.header==="object")J5(G,W.header);var $;for(var b in G)if(D4(G,b)){if($=G[b],$==null)continue;if(!Array.isArray($))$=[$];if($.length)J+=b+": "+$.join("; ")+J0.LINE_BREAK}return"--"+this.getBoundary()+J0.LINE_BREAK+J+J0.LINE_BREAK};J0.prototype._getContentDisposition=function(x,Q){var W;if(typeof Q.filepath==="string")W=Y5.normalize(Q.filepath).replace(/\\/g,"/");else if(Q.filename||x&&(x.name||x.path))W=Y5.basename(Q.filename||x&&(x.name||x.path));else if(x&&x.readable&&D4(x,"httpVersion"))W=Y5.basename(x.client._httpMessage.path||"");if(W)return'filename="'+I$(W)+'"'};J0.prototype._getContentType=function(x,Q){var W=Q.contentType;if(!W&&x&&x.name)W=X5.lookup(x.name);if(!W&&x&&x.path)W=X5.lookup(x.path);if(!W&&x&&x.readable&&D4(x,"httpVersion"))W=x.headers["content-type"];if(!W&&(Q.filepath||Q.filename))W=X5.lookup(Q.filepath||Q.filename);if(!W&&x&&typeof x==="object")W=J0.DEFAULT_CONTENT_TYPE;return W};J0.prototype._multiPartFooter=function(){return function(x){var Q=J0.LINE_BREAK,W=this._streams.length===0;if(W)Q+=this._lastBoundary();x(Q)}.bind(this)};J0.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+J0.LINE_BREAK};J0.prototype.getHeaders=function(x){var Q,W={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(Q in x)if(D4(x,Q))W[Q.toLowerCase()]=x[Q];return W};J0.prototype.setBoundary=function(x){if(typeof x!=="string")throw TypeError("FormData boundary must be a string");this._boundary=x};J0.prototype.getBoundary=function(){if(!this._boundary)this._generateBoundary();return this._boundary};J0.prototype.getBuffer=function(){var x=new Buffer.alloc(0),Q=this.getBoundary();for(var W=0,Y=this._streams.length;W<Y;W++)if(typeof this._streams[W]!=="function"){if(Buffer.isBuffer(this._streams[W]))x=Buffer.concat([x,this._streams[W]]);else x=Buffer.concat([x,Buffer.from(this._streams[W])]);if(typeof this._streams[W]!=="string"||this._streams[W].substring(2,Q.length+2)!==Q)x=Buffer.concat([x,Buffer.from(J0.LINE_BREAK)])}return Buffer.concat([x,Buffer.from(this._lastBoundary())])};J0.prototype._generateBoundary=function(){this._boundary="--------------------------"+nF.randomBytes(12).toString("hex")};J0.prototype.getLengthSync=function(){var x=this._overheadLength+this._valueLength;if(this._streams.length)x+=this._lastBoundary().length;if(!this.hasKnownLength())this._error(Error("Cannot calculate proper length in synchronous way."));return x};J0.prototype.hasKnownLength=function(){var x=!0;if(this._valuesToMeasure.length)x=!1;return x};J0.prototype.getLength=function(x){var Q=this._overheadLength+this._valueLength;if(this._streams.length)Q+=this._lastBoundary().length;if(!this._valuesToMeasure.length){process.nextTick(x.bind(this,null,Q));return}mF.parallel(this._valuesToMeasure,this._lengthRetriever,function(W,Y){if(W){x(W);return}Y.forEach(function(X){Q+=X}),x(null,Q)})};J0.prototype.submit=function(x,Q){var W,Y,X={method:"post"};if(typeof x==="string")x=uF(x),Y=J5({port:x.port,path:x.pathname,host:x.hostname,protocol:x.protocol},X);else if(Y=J5(x,X),!Y.port)Y.port=Y.protocol==="https:"?443:80;if(Y.headers=this.getHeaders(x.headers),Y.protocol==="https:")W=_F.request(Y);else W=kF.request(Y);return this.getLength(function(J,G){if(J&&J!=="Unknown stream"){this._error(J);return}if(G)W.setHeader("Content-Length",G);if(this.pipe(W),Q){var $,b=function(z,v){return W.removeListener("error",b),W.removeListener("response",$),Q.call(this,z,v)};$=b.bind(this,null),W.on("error",b),W.on("response",$)}}.bind(this)),W};J0.prototype._error=function(x){if(!this.error)this.error=x,this.pause(),this.emit("error",x)};J0.prototype.toString=function(){return"[object FormData]"};fF(J0.prototype,"FormData");E$.exports=J0});var o$=M((Lp,h$)=>{var px=1000,lx=px*60,nx=lx*60,Qx=nx*24,BM=Qx*7,wM=Qx*365.25;h$.exports=function(x,Q){Q=Q||{};var W=typeof x;if(W==="string"&&x.length>0)return KM(x);else if(W==="number"&&isFinite(x))return Q.long?VM(x):HM(x);throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(x))};function KM(x){if(x=String(x),x.length>100)return;var Q=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(x);if(!Q)return;var W=parseFloat(Q[1]),Y=(Q[2]||"ms").toLowerCase();switch(Y){case"years":case"year":case"yrs":case"yr":case"y":return W*wM;case"weeks":case"week":case"w":return W*BM;case"days":case"day":case"d":return W*Qx;case"hours":case"hour":case"hrs":case"hr":case"h":return W*nx;case"minutes":case"minute":case"mins":case"min":case"m":return W*lx;case"seconds":case"second":case"secs":case"sec":case"s":return W*px;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return W;default:return}}function HM(x){var Q=Math.abs(x);if(Q>=Qx)return Math.round(x/Qx)+"d";if(Q>=nx)return Math.round(x/nx)+"h";if(Q>=lx)return Math.round(x/lx)+"m";if(Q>=px)return Math.round(x/px)+"s";return x+"ms"}function VM(x){var Q=Math.abs(x);if(Q>=Qx)return C9(x,Q,Qx,"day");if(Q>=nx)return C9(x,Q,nx,"hour");if(Q>=lx)return C9(x,Q,lx,"minute");if(Q>=px)return C9(x,Q,px,"second");return x+" ms"}function C9(x,Q,W,Y){var X=Q>=W*1.5;return Math.round(x/W)+" "+Y+(X?"s":"")}});var F5=M((Up,a$)=>{function qM(x){W.debug=W,W.default=W,W.coerce=b,W.disable=G,W.enable=X,W.enabled=$,W.humanize=o$(),W.destroy=z,Object.keys(x).forEach((v)=>{W[v]=x[v]}),W.names=[],W.skips=[],W.formatters={};function Q(v){let B=0;for(let K=0;K<v.length;K++)B=(B<<5)-B+v.charCodeAt(K),B|=0;return W.colors[Math.abs(B)%W.colors.length]}W.selectColor=Q;function W(v){let B,K=null,w,V;function N(...L){if(!N.enabled)return;let q=N,U=Number(new Date),c=U-(B||U);if(q.diff=c,q.prev=B,q.curr=U,B=U,L[0]=W.coerce(L[0]),typeof L[0]!=="string")L.unshift("%O");let S=0;L[0]=L[0].replace(/%([a-zA-Z%])/g,(y,B0)=>{if(y==="%%")return"%";S++;let d=W.formatters[B0];if(typeof d==="function"){let z1=L[S];y=d.call(q,z1),L.splice(S,1),S--}return y}),W.formatArgs.call(q,L),(q.log||W.log).apply(q,L)}if(N.namespace=v,N.useColors=W.useColors(),N.color=W.selectColor(v),N.extend=Y,N.destroy=W.destroy,Object.defineProperty(N,"enabled",{enumerable:!0,configurable:!1,get:()=>{if(K!==null)return K;if(w!==W.namespaces)w=W.namespaces,V=W.enabled(v);return V},set:(L)=>{K=L}}),typeof W.init==="function")W.init(N);return N}function Y(v,B){let K=W(this.namespace+(typeof B>"u"?":":B)+v);return K.log=this.log,K}function X(v){W.save(v),W.namespaces=v,W.names=[],W.skips=[];let B=(typeof v==="string"?v:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let K of B)if(K[0]==="-")W.skips.push(K.slice(1));else W.names.push(K)}function J(v,B){let K=0,w=0,V=-1,N=0;while(K<v.length)if(w<B.length&&(B[w]===v[K]||B[w]==="*"))if(B[w]==="*")V=w,N=K,w++;else K++,w++;else if(V!==-1)w=V+1,N++,K=N;else return!1;while(w<B.length&&B[w]==="*")w++;return w===B.length}function G(){let v=[...W.names,...W.skips.map((B)=>"-"+B)].join(",");return W.enable(""),v}function $(v){for(let B of W.skips)if(J(v,B))return!1;for(let B of W.names)if(J(v,B))return!0;return!1}function b(v){if(v instanceof Error)return v.stack||v.message;return v}function z(){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 W.enable(W.load()),W}a$.exports=qM});var r$=M((d$,T9)=>{d$.formatArgs=LM;d$.save=UM;d$.load=FM;d$.useColors=NM;d$.storage=MM();d$.destroy=(()=>{let x=!1;return()=>{if(!x)x=!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`.")}})();d$.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 NM(){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 x;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&&(x=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(x[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function LM(x){if(x[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+x[0]+(this.useColors?"%c ":" ")+"+"+T9.exports.humanize(this.diff),!this.useColors)return;let Q="color: "+this.color;x.splice(1,0,Q,"color: inherit");let W=0,Y=0;x[0].replace(/%[a-zA-Z%]/g,(X)=>{if(X==="%%")return;if(W++,X==="%c")Y=W}),x.splice(Y,0,Q)}d$.log=console.debug||console.log||(()=>{});function UM(x){try{if(x)d$.storage.setItem("debug",x);else d$.storage.removeItem("debug")}catch(Q){}}function FM(){let x;try{x=d$.storage.getItem("debug")||d$.storage.getItem("DEBUG")}catch(Q){}if(!x&&typeof process<"u"&&"env"in process)x=process.env.DEBUG;return x}function MM(){try{return localStorage}catch(x){}}T9.exports=F5()(d$);var{formatters:DM}=T9.exports;DM.j=function(x){try{return JSON.stringify(x)}catch(Q){return"[UnexpectedJSONParseError]: "+Q.message}}});var t$=M((Mp,s$)=>{s$.exports=(x,Q=process.argv)=>{let W=x.startsWith("-")?"":x.length===1?"-":"--",Y=Q.indexOf(W+x),X=Q.indexOf("--");return Y!==-1&&(X===-1||Y<X)}});var Qb=M((Dp,xb)=>{var PM=K0("os"),e$=K0("tty"),S1=t$(),{env:g0}=process,A4;if(S1("no-color")||S1("no-colors")||S1("color=false")||S1("color=never"))A4=0;else if(S1("color")||S1("colors")||S1("color=true")||S1("color=always"))A4=1;if("FORCE_COLOR"in g0)if(g0.FORCE_COLOR==="true")A4=1;else if(g0.FORCE_COLOR==="false")A4=0;else A4=g0.FORCE_COLOR.length===0?1:Math.min(parseInt(g0.FORCE_COLOR,10),3);function M5(x){if(x===0)return!1;return{level:x,hasBasic:!0,has256:x>=2,has16m:x>=3}}function D5(x,Q){if(A4===0)return 0;if(S1("color=16m")||S1("color=full")||S1("color=truecolor"))return 3;if(S1("color=256"))return 2;if(x&&!Q&&A4===void 0)return 0;let W=A4||0;if(g0.TERM==="dumb")return W;if(process.platform==="win32"){let Y=PM.release().split(".");if(Number(Y[0])>=10&&Number(Y[2])>=10586)return Number(Y[2])>=14931?3:2;return 1}if("CI"in g0){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((Y)=>(Y in g0))||g0.CI_NAME==="codeship")return 1;return W}if("TEAMCITY_VERSION"in g0)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(g0.TEAMCITY_VERSION)?1:0;if(g0.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in g0){let Y=parseInt((g0.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(g0.TERM_PROGRAM){case"iTerm.app":return Y>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(g0.TERM))return 2;if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(g0.TERM))return 1;if("COLORTERM"in g0)return 1;return W}function RM(x){let Q=D5(x,x&&x.isTTY);return M5(Q)}xb.exports={supportsColor:RM,stdout:M5(D5(!0,e$.isatty(1))),stderr:M5(D5(!0,e$.isatty(2)))}});var Jb=M((Yb,_9)=>{var ZM=K0("tty"),k9=K0("util");Yb.init=pM;Yb.log=kM;Yb.formatArgs=CM;Yb.save=_M;Yb.load=uM;Yb.useColors=iM;Yb.destroy=k9.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");Yb.colors=[6,2,3,4,5,1];try{let x=Qb();if(x&&(x.stderr||x).level>=2)Yb.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(x){}Yb.inspectOpts=Object.keys(process.env).filter((x)=>{return/^debug_/i.test(x)}).reduce((x,Q)=>{let W=Q.substring(6).toLowerCase().replace(/_([a-z])/g,(X,J)=>{return J.toUpperCase()}),Y=process.env[Q];if(/^(yes|on|true|enabled)$/i.test(Y))Y=!0;else if(/^(no|off|false|disabled)$/i.test(Y))Y=!1;else if(Y==="null")Y=null;else Y=Number(Y);return x[W]=Y,x},{});function iM(){return"colors"in Yb.inspectOpts?Boolean(Yb.inspectOpts.colors):ZM.isatty(process.stderr.fd)}function CM(x){let{namespace:Q,useColors:W}=this;if(W){let Y=this.color,X="\x1B[3"+(Y<8?Y:"8;5;"+Y),J=` ${X};1m${Q} \x1B[0m`;x[0]=J+x[0].split(`
7
+ */var D9=_J(),vL=K0("path").extname,uJ=/^\s*([^;\s]*)(?:;|\s|$)/,BL=/^text\//i;qL.charset=pJ;qL.charsets={lookup:pJ};qL.contentType=wL;qL.extension=KL;qL.extensions=Object.create(null);qL.lookup=HL;qL.types=Object.create(null);VL(qL.extensions,qL.types);function pJ(x){if(!x||typeof x!=="string")return!1;var Q=uJ.exec(x),W=Q&&D9[Q[1].toLowerCase()];if(W&&W.charset)return W.charset;if(Q&&BL.test(Q[1]))return"UTF-8";return!1}function wL(x){if(!x||typeof x!=="string")return!1;var Q=x.indexOf("/")===-1?qL.lookup(x):x;if(!Q)return!1;if(Q.indexOf("charset")===-1){var W=qL.charset(Q);if(W)Q+="; charset="+W.toLowerCase()}return Q}function KL(x){if(!x||typeof x!=="string")return!1;var Q=uJ.exec(x),W=Q&&qL.extensions[Q[1].toLowerCase()];if(!W||!W.length)return!1;return W[0]}function HL(x){if(!x||typeof x!=="string")return!1;var Q=vL("x."+x).toLowerCase().substr(1);if(!Q)return!1;return qL.types[Q]||!1}function VL(x,Q){var W=["nginx","apache",void 0,"iana"];Object.keys(D9).forEach(function(X){var J=D9[X],G=J.extensions;if(!G||!G.length)return;x[X]=G;for(var $=0;$<G.length;$++){var b=G[$];if(Q[b]){var z=W.indexOf(D9[Q[b]].source),v=W.indexOf(J.source);if(Q[b]!=="application/octet-stream"&&(z>v||z===v&&Q[b].substr(0,12)==="application/"))continue}Q[b]=X}})}});var yJ=M((R_,fJ)=>{fJ.exports=FL;function FL(x){var Q=typeof setImmediate=="function"?setImmediate:typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:null;if(Q)Q(x);else setTimeout(x,0)}});var n3=M((Z_,hJ)=>{var gJ=yJ();hJ.exports=ML;function ML(x){var Q=!1;return gJ(function(){Q=!0}),function(Y,X){if(Q)x(Y,X);else gJ(function(){x(Y,X)})}}});var m3=M((i_,oJ)=>{oJ.exports=DL;function DL(x){Object.keys(x.jobs).forEach(cL.bind(x)),x.jobs={}}function cL(x){if(typeof this.jobs[x]=="function")this.jobs[x]()}});var f3=M((C_,dJ)=>{var aJ=n3(),jL=m3();dJ.exports=AL;function AL(x,Q,W,Y){var X=W.keyedList?W.keyedList[W.index]:W.index;W.jobs[X]=OL(Q,X,x[X],function(J,G){if(!(X in W.jobs))return;if(delete W.jobs[X],J)jL(W);else W.results[X]=G;Y(J,W.results)})}function OL(x,Q,W,Y){var X;if(x.length==2)X=x(W,aJ(Y));else X=x(W,Q,aJ(Y));return X}});var y3=M((T_,rJ)=>{rJ.exports=IL;function IL(x,Q){var W=!Array.isArray(x),Y={index:0,keyedList:W||Q?Object.keys(x):null,jobs:{},results:W?{}:[],size:W?Object.keys(x).length:x.length};if(Q)Y.keyedList.sort(W?Q:function(X,J){return Q(x[X],x[J])});return Y}});var g3=M((k_,sJ)=>{var EL=m3(),SL=n3();sJ.exports=PL;function PL(x){if(!Object.keys(this.jobs).length)return;this.index=this.size,EL(this),SL(x)(null,this.results)}});var eJ=M((__,tJ)=>{var RL=f3(),ZL=y3(),iL=g3();tJ.exports=CL;function CL(x,Q,W){var Y=ZL(x);while(Y.index<(Y.keyedList||x).length)RL(x,Q,Y,function(X,J){if(X){W(X,J);return}if(Object.keys(Y.jobs).length===0){W(null,Y.results);return}}),Y.index++;return iL.bind(Y,W)}});var h3=M((u_,c9)=>{var xG=f3(),TL=y3(),kL=g3();c9.exports=_L;c9.exports.ascending=QG;c9.exports.descending=uL;function _L(x,Q,W,Y){var X=TL(x,W);return xG(x,Q,X,function J(G,$){if(G){Y(G,$);return}if(X.index++,X.index<(X.keyedList||x).length){xG(x,Q,X,J);return}Y(null,X.results)}),kL.bind(X,Y)}function QG(x,Q){return x<Q?-1:x>Q?1:0}function uL(x,Q){return-1*QG(x,Q)}});var YG=M((p_,WG)=>{var pL=h3();WG.exports=lL;function lL(x,Q,W){return pL(x,Q,null,W)}});var JG=M((l_,XG)=>{XG.exports={parallel:eJ(),serial:YG(),serialOrdered:h3()}});var o3=M((n_,GG)=>{GG.exports=Object});var bG=M((m_,$G)=>{$G.exports=Error});var vG=M((f_,zG)=>{zG.exports=EvalError});var wG=M((y_,BG)=>{BG.exports=RangeError});var HG=M((g_,KG)=>{KG.exports=ReferenceError});var qG=M((h_,VG)=>{VG.exports=SyntaxError});var j9=M((o_,NG)=>{NG.exports=TypeError});var LG=M((a_,UG)=>{UG.exports=URIError});var MG=M((d_,FG)=>{FG.exports=Math.abs});var cG=M((r_,DG)=>{DG.exports=Math.floor});var AG=M((s_,jG)=>{jG.exports=Math.max});var IG=M((t_,OG)=>{OG.exports=Math.min});var SG=M((e_,EG)=>{EG.exports=Math.pow});var RG=M((xu,PG)=>{PG.exports=Math.round});var iG=M((Qu,ZG)=>{ZG.exports=Number.isNaN||function(Q){return Q!==Q}});var TG=M((Wu,CG)=>{var nL=iG();CG.exports=function(Q){if(nL(Q)||Q===0)return Q;return Q<0?-1:1}});var _G=M((Yu,kG)=>{kG.exports=Object.getOwnPropertyDescriptor});var a3=M((Xu,uG)=>{var A9=_G();if(A9)try{A9([],"length")}catch(x){A9=null}uG.exports=A9});var lG=M((Ju,pG)=>{var O9=Object.defineProperty||!1;if(O9)try{O9({},"a",{value:1})}catch(x){O9=!1}pG.exports=O9});var d3=M((Gu,nG)=>{nG.exports=function(){if(typeof Symbol!=="function"||typeof Object.getOwnPropertySymbols!=="function")return!1;if(typeof Symbol.iterator==="symbol")return!0;var Q={},W=Symbol("test"),Y=Object(W);if(typeof W==="string")return!1;if(Object.prototype.toString.call(W)!=="[object Symbol]")return!1;if(Object.prototype.toString.call(Y)!=="[object Symbol]")return!1;var X=42;Q[W]=X;for(var J in Q)return!1;if(typeof Object.keys==="function"&&Object.keys(Q).length!==0)return!1;if(typeof Object.getOwnPropertyNames==="function"&&Object.getOwnPropertyNames(Q).length!==0)return!1;var G=Object.getOwnPropertySymbols(Q);if(G.length!==1||G[0]!==W)return!1;if(!Object.prototype.propertyIsEnumerable.call(Q,W))return!1;if(typeof Object.getOwnPropertyDescriptor==="function"){var $=Object.getOwnPropertyDescriptor(Q,W);if($.value!==X||$.enumerable!==!0)return!1}return!0}});var yG=M(($u,fG)=>{var mG=typeof Symbol<"u"&&Symbol,mL=d3();fG.exports=function(){if(typeof mG!=="function")return!1;if(typeof Symbol!=="function")return!1;if(typeof mG("foo")!=="symbol")return!1;if(typeof Symbol("bar")!=="symbol")return!1;return mL()}});var r3=M((bu,gG)=>{gG.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var s3=M((zu,hG)=>{var fL=o3();hG.exports=fL.getPrototypeOf||null});var dG=M((vu,aG)=>{var yL="Function.prototype.bind called on incompatible ",gL=Object.prototype.toString,hL=Math.max,oL="[object Function]",oG=function(Q,W){var Y=[];for(var X=0;X<Q.length;X+=1)Y[X]=Q[X];for(var J=0;J<W.length;J+=1)Y[J+Q.length]=W[J];return Y},aL=function(Q,W){var Y=[];for(var X=W||0,J=0;X<Q.length;X+=1,J+=1)Y[J]=Q[X];return Y},dL=function(x,Q){var W="";for(var Y=0;Y<x.length;Y+=1)if(W+=x[Y],Y+1<x.length)W+=Q;return W};aG.exports=function(Q){var W=this;if(typeof W!=="function"||gL.apply(W)!==oL)throw TypeError(yL+W);var Y=aL(arguments,1),X,J=function(){if(this instanceof X){var v=W.apply(this,oG(Y,arguments));if(Object(v)===v)return v;return this}return W.apply(Q,oG(Y,arguments))},G=hL(0,W.length-Y.length),$=[];for(var b=0;b<G;b++)$[b]="$"+b;if(X=Function("binder","return function ("+dL($,",")+"){ return binder.apply(this,arguments); }")(J),W.prototype){var z=function(){};z.prototype=W.prototype,X.prototype=new z,z.prototype=null}return X}});var l8=M((Bu,rG)=>{var rL=dG();rG.exports=Function.prototype.bind||rL});var I9=M((wu,sG)=>{sG.exports=Function.prototype.call});var t3=M((Ku,tG)=>{tG.exports=Function.prototype.apply});var x$=M((Hu,eG)=>{eG.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var W$=M((Vu,Q$)=>{var sL=l8(),tL=t3(),eL=I9(),xF=x$();Q$.exports=xF||sL.call(eL,tL)});var X$=M((qu,Y$)=>{var QF=l8(),WF=j9(),YF=I9(),XF=W$();Y$.exports=function(Q){if(Q.length<1||typeof Q[0]!=="function")throw new WF("a function is required");return XF(QF,YF,Q)}});var v$=M((Nu,z$)=>{var JF=X$(),J$=a3(),$$;try{$$=[].__proto__===Array.prototype}catch(x){if(!x||typeof x!=="object"||!("code"in x)||x.code!=="ERR_PROTO_ACCESS")throw x}var e3=!!$$&&J$&&J$(Object.prototype,"__proto__"),b$=Object,G$=b$.getPrototypeOf;z$.exports=e3&&typeof e3.get==="function"?JF([e3.get]):typeof G$==="function"?function(Q){return G$(Q==null?Q:b$(Q))}:!1});var V$=M((Uu,H$)=>{var B$=r3(),w$=s3(),K$=v$();H$.exports=B$?function(Q){return B$(Q)}:w$?function(Q){if(!Q||typeof Q!=="object"&&typeof Q!=="function")throw TypeError("getProto: not an object");return w$(Q)}:K$?function(Q){return K$(Q)}:null});var E9=M((Lu,q$)=>{var GF=Function.prototype.call,$F=Object.prototype.hasOwnProperty,bF=l8();q$.exports=bF.call(GF,$F)});var D$=M((Fu,M$)=>{var t,zF=o3(),vF=bG(),BF=vG(),wF=wG(),KF=HG(),kx=qG(),Tx=j9(),HF=LG(),VF=MG(),qF=cG(),NF=AG(),UF=IG(),LF=SG(),FF=RG(),MF=TG(),L$=Function,x5=function(x){try{return L$('"use strict"; return ('+x+").constructor;")()}catch(Q){}},n8=a3(),DF=lG(),Q5=function(){throw new Tx},cF=n8?function(){try{return arguments.callee,Q5}catch(x){try{return n8(arguments,"callee").get}catch(Q){return Q5}}}():Q5,ix=yG()(),y0=V$(),jF=s3(),AF=r3(),F$=t3(),m8=I9(),Cx={},OF=typeof Uint8Array>"u"||!y0?t:y0(Uint8Array),t4={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?t:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?t:ArrayBuffer,"%ArrayIteratorPrototype%":ix&&y0?y0([][Symbol.iterator]()):t,"%AsyncFromSyncIteratorPrototype%":t,"%AsyncFunction%":Cx,"%AsyncGenerator%":Cx,"%AsyncGeneratorFunction%":Cx,"%AsyncIteratorPrototype%":Cx,"%Atomics%":typeof Atomics>"u"?t:Atomics,"%BigInt%":typeof BigInt>"u"?t:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?t:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?t:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?t:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":vF,"%eval%":eval,"%EvalError%":BF,"%Float16Array%":typeof Float16Array>"u"?t:Float16Array,"%Float32Array%":typeof Float32Array>"u"?t:Float32Array,"%Float64Array%":typeof Float64Array>"u"?t:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?t:FinalizationRegistry,"%Function%":L$,"%GeneratorFunction%":Cx,"%Int8Array%":typeof Int8Array>"u"?t:Int8Array,"%Int16Array%":typeof Int16Array>"u"?t:Int16Array,"%Int32Array%":typeof Int32Array>"u"?t:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ix&&y0?y0(y0([][Symbol.iterator]())):t,"%JSON%":typeof JSON==="object"?JSON:t,"%Map%":typeof Map>"u"?t:Map,"%MapIteratorPrototype%":typeof Map>"u"||!ix||!y0?t:y0(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":zF,"%Object.getOwnPropertyDescriptor%":n8,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?t:Promise,"%Proxy%":typeof Proxy>"u"?t:Proxy,"%RangeError%":wF,"%ReferenceError%":KF,"%Reflect%":typeof Reflect>"u"?t:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?t:Set,"%SetIteratorPrototype%":typeof Set>"u"||!ix||!y0?t:y0(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?t:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ix&&y0?y0(""[Symbol.iterator]()):t,"%Symbol%":ix?Symbol:t,"%SyntaxError%":kx,"%ThrowTypeError%":cF,"%TypedArray%":OF,"%TypeError%":Tx,"%Uint8Array%":typeof Uint8Array>"u"?t:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?t:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?t:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?t:Uint32Array,"%URIError%":HF,"%WeakMap%":typeof WeakMap>"u"?t:WeakMap,"%WeakRef%":typeof WeakRef>"u"?t:WeakRef,"%WeakSet%":typeof WeakSet>"u"?t:WeakSet,"%Function.prototype.call%":m8,"%Function.prototype.apply%":F$,"%Object.defineProperty%":DF,"%Object.getPrototypeOf%":jF,"%Math.abs%":VF,"%Math.floor%":qF,"%Math.max%":NF,"%Math.min%":UF,"%Math.pow%":LF,"%Math.round%":FF,"%Math.sign%":MF,"%Reflect.getPrototypeOf%":AF};if(y0)try{null.error}catch(x){W5=y0(y0(x)),t4["%Error.prototype%"]=W5}var W5,IF=function x(Q){var W;if(Q==="%AsyncFunction%")W=x5("async function () {}");else if(Q==="%GeneratorFunction%")W=x5("function* () {}");else if(Q==="%AsyncGeneratorFunction%")W=x5("async function* () {}");else if(Q==="%AsyncGenerator%"){var Y=x("%AsyncGeneratorFunction%");if(Y)W=Y.prototype}else if(Q==="%AsyncIteratorPrototype%"){var X=x("%AsyncGenerator%");if(X&&y0)W=y0(X.prototype)}return t4[Q]=W,W},N$={__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"]},f8=l8(),S9=E9(),EF=f8.call(m8,Array.prototype.concat),SF=f8.call(F$,Array.prototype.splice),U$=f8.call(m8,String.prototype.replace),P9=f8.call(m8,String.prototype.slice),PF=f8.call(m8,RegExp.prototype.exec),RF=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ZF=/\\(\\)?/g,iF=function(Q){var W=P9(Q,0,1),Y=P9(Q,-1);if(W==="%"&&Y!=="%")throw new kx("invalid intrinsic syntax, expected closing `%`");else if(Y==="%"&&W!=="%")throw new kx("invalid intrinsic syntax, expected opening `%`");var X=[];return U$(Q,RF,function(J,G,$,b){X[X.length]=$?U$(b,ZF,"$1"):G||J}),X},CF=function(Q,W){var Y=Q,X;if(S9(N$,Y))X=N$[Y],Y="%"+X[0]+"%";if(S9(t4,Y)){var J=t4[Y];if(J===Cx)J=IF(Y);if(typeof J>"u"&&!W)throw new Tx("intrinsic "+Q+" exists, but is not available. Please file an issue!");return{alias:X,name:Y,value:J}}throw new kx("intrinsic "+Q+" does not exist!")};M$.exports=function(Q,W){if(typeof Q!=="string"||Q.length===0)throw new Tx("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof W!=="boolean")throw new Tx('"allowMissing" argument must be a boolean');if(PF(/^%?[^%]*%?$/,Q)===null)throw new kx("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Y=iF(Q),X=Y.length>0?Y[0]:"",J=CF("%"+X+"%",W),G=J.name,$=J.value,b=!1,z=J.alias;if(z)X=z[0],SF(Y,EF([0,1],z));for(var v=1,B=!0;v<Y.length;v+=1){var K=Y[v],w=P9(K,0,1),V=P9(K,-1);if((w==='"'||w==="'"||w==="`"||(V==='"'||V==="'"||V==="`"))&&w!==V)throw new kx("property names with quotes must have matching quotes");if(K==="constructor"||!B)b=!0;if(X+="."+K,G="%"+X+"%",S9(t4,G))$=t4[G];else if($!=null){if(!(K in $)){if(!W)throw new Tx("base intrinsic for "+Q+" exists, but the property is not available.");return}if(n8&&v+1>=Y.length){var N=n8($,K);if(B=!!N,B&&"get"in N&&!("originalValue"in N.get))$=N.get;else $=$[K]}else B=S9($,K),$=$[K];if(B&&!b)t4[G]=$}}return $}});var j$=M((Mu,c$)=>{var TF=d3();c$.exports=function(){return TF()&&!!Symbol.toStringTag}});var I$=M((Du,O$)=>{var kF=D$(),A$=kF("%Object.defineProperty%",!0),_F=j$()(),uF=E9(),pF=j9(),R9=_F?Symbol.toStringTag:null;O$.exports=function(Q,W){var Y=arguments.length>2&&!!arguments[2]&&arguments[2].force,X=arguments.length>2&&!!arguments[2]&&arguments[2].nonConfigurable;if(typeof Y<"u"&&typeof Y!=="boolean"||typeof X<"u"&&typeof X!=="boolean")throw new pF("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");if(R9&&(Y||!uF(Q,R9)))if(A$)A$(Q,R9,{configurable:!X,enumerable:!1,value:W,writable:!1});else Q[R9]=W}});var S$=M((cu,E$)=>{E$.exports=function(x,Q){return Object.keys(Q).forEach(function(W){x[W]=x[W]||Q[W]}),x}});var Z$=M((ju,R$)=>{var G5=kJ(),lF=K0("util"),Y5=K0("path"),nF=K0("http"),mF=K0("https"),fF=K0("url").parse,yF=K0("fs"),gF=K0("stream").Stream,hF=K0("crypto"),X5=mJ(),oF=JG(),aF=I$(),D4=E9(),J5=S$();function P$(x){return String(x).replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/"/g,"%22")}function J0(x){if(!(this instanceof J0))return new J0(x);this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],G5.call(this),x=x||{};for(var Q in x)this[Q]=x[Q]}lF.inherits(J0,G5);J0.LINE_BREAK=`\r
8
+ `;J0.DEFAULT_CONTENT_TYPE="application/octet-stream";J0.prototype.append=function(x,Q,W){if(W=W||{},typeof W==="string")W={filename:W};var Y=G5.prototype.append.bind(this);if(typeof Q==="number"||Q==null)Q=String(Q);if(Array.isArray(Q)){this._error(Error("Arrays are not supported."));return}var X=this._multiPartHeader(x,Q,W),J=this._multiPartFooter();Y(X),Y(Q),Y(J),this._trackLength(X,Q,W)};J0.prototype._trackLength=function(x,Q,W){var Y=0;if(W.knownLength!=null)Y+=Number(W.knownLength);else if(Buffer.isBuffer(Q))Y=Q.length;else if(typeof Q==="string")Y=Buffer.byteLength(Q);if(this._valueLength+=Y,this._overheadLength+=Buffer.byteLength(x)+J0.LINE_BREAK.length,!Q||!Q.path&&!(Q.readable&&D4(Q,"httpVersion"))&&!(Q instanceof gF))return;if(!W.knownLength)this._valuesToMeasure.push(Q)};J0.prototype._lengthRetriever=function(x,Q){if(D4(x,"fd"))if(x.end!=null&&x.end!=1/0&&x.start!=null)Q(null,x.end+1-(x.start?x.start:0));else yF.stat(x.path,function(W,Y){if(W){Q(W);return}var X=Y.size-(x.start?x.start:0);Q(null,X)});else if(D4(x,"httpVersion"))Q(null,Number(x.headers["content-length"]));else if(D4(x,"httpModule"))x.on("response",function(W){x.pause(),Q(null,Number(W.headers["content-length"]))}),x.resume();else Q("Unknown stream")};J0.prototype._multiPartHeader=function(x,Q,W){if(typeof W.header==="string")return W.header;var Y=this._getContentDisposition(Q,W),X=this._getContentType(Q,W),J="",G={"Content-Disposition":["form-data",'name="'+P$(x)+'"'].concat(Y||[]),"Content-Type":[].concat(X||[])};if(typeof W.header==="object")J5(G,W.header);var $;for(var b in G)if(D4(G,b)){if($=G[b],$==null)continue;if(!Array.isArray($))$=[$];if($.length)J+=b+": "+$.join("; ")+J0.LINE_BREAK}return"--"+this.getBoundary()+J0.LINE_BREAK+J+J0.LINE_BREAK};J0.prototype._getContentDisposition=function(x,Q){var W;if(typeof Q.filepath==="string")W=Y5.normalize(Q.filepath).replace(/\\/g,"/");else if(Q.filename||x&&(x.name||x.path))W=Y5.basename(Q.filename||x&&(x.name||x.path));else if(x&&x.readable&&D4(x,"httpVersion"))W=Y5.basename(x.client._httpMessage.path||"");if(W)return'filename="'+P$(W)+'"'};J0.prototype._getContentType=function(x,Q){var W=Q.contentType;if(!W&&x&&x.name)W=X5.lookup(x.name);if(!W&&x&&x.path)W=X5.lookup(x.path);if(!W&&x&&x.readable&&D4(x,"httpVersion"))W=x.headers["content-type"];if(!W&&(Q.filepath||Q.filename))W=X5.lookup(Q.filepath||Q.filename);if(!W&&x&&typeof x==="object")W=J0.DEFAULT_CONTENT_TYPE;return W};J0.prototype._multiPartFooter=function(){return function(x){var Q=J0.LINE_BREAK,W=this._streams.length===0;if(W)Q+=this._lastBoundary();x(Q)}.bind(this)};J0.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+J0.LINE_BREAK};J0.prototype.getHeaders=function(x){var Q,W={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(Q in x)if(D4(x,Q))W[Q.toLowerCase()]=x[Q];return W};J0.prototype.setBoundary=function(x){if(typeof x!=="string")throw TypeError("FormData boundary must be a string");this._boundary=x};J0.prototype.getBoundary=function(){if(!this._boundary)this._generateBoundary();return this._boundary};J0.prototype.getBuffer=function(){var x=new Buffer.alloc(0),Q=this.getBoundary();for(var W=0,Y=this._streams.length;W<Y;W++)if(typeof this._streams[W]!=="function"){if(Buffer.isBuffer(this._streams[W]))x=Buffer.concat([x,this._streams[W]]);else x=Buffer.concat([x,Buffer.from(this._streams[W])]);if(typeof this._streams[W]!=="string"||this._streams[W].substring(2,Q.length+2)!==Q)x=Buffer.concat([x,Buffer.from(J0.LINE_BREAK)])}return Buffer.concat([x,Buffer.from(this._lastBoundary())])};J0.prototype._generateBoundary=function(){this._boundary="--------------------------"+hF.randomBytes(12).toString("hex")};J0.prototype.getLengthSync=function(){var x=this._overheadLength+this._valueLength;if(this._streams.length)x+=this._lastBoundary().length;if(!this.hasKnownLength())this._error(Error("Cannot calculate proper length in synchronous way."));return x};J0.prototype.hasKnownLength=function(){var x=!0;if(this._valuesToMeasure.length)x=!1;return x};J0.prototype.getLength=function(x){var Q=this._overheadLength+this._valueLength;if(this._streams.length)Q+=this._lastBoundary().length;if(!this._valuesToMeasure.length){process.nextTick(x.bind(this,null,Q));return}oF.parallel(this._valuesToMeasure,this._lengthRetriever,function(W,Y){if(W){x(W);return}Y.forEach(function(X){Q+=X}),x(null,Q)})};J0.prototype.submit=function(x,Q){var W,Y,X={method:"post"};if(typeof x==="string")x=fF(x),Y=J5({port:x.port,path:x.pathname,host:x.hostname,protocol:x.protocol},X);else if(Y=J5(x,X),!Y.port)Y.port=Y.protocol==="https:"?443:80;if(Y.headers=this.getHeaders(x.headers),Y.protocol==="https:")W=mF.request(Y);else W=nF.request(Y);return this.getLength(function(J,G){if(J&&J!=="Unknown stream"){this._error(J);return}if(G)W.setHeader("Content-Length",G);if(this.pipe(W),Q){var $,b=function(z,v){return W.removeListener("error",b),W.removeListener("response",$),Q.call(this,z,v)};$=b.bind(this,null),W.on("error",b),W.on("response",$)}}.bind(this)),W};J0.prototype._error=function(x){if(!this.error)this.error=x,this.pause(),this.emit("error",x)};J0.prototype.toString=function(){return"[object FormData]"};aF(J0.prototype,"FormData");R$.exports=J0});var r$=M((jp,d$)=>{var px=1000,lx=px*60,nx=lx*60,Qx=nx*24,qM=Qx*7,NM=Qx*365.25;d$.exports=function(x,Q){Q=Q||{};var W=typeof x;if(W==="string"&&x.length>0)return UM(x);else if(W==="number"&&isFinite(x))return Q.long?FM(x):LM(x);throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(x))};function UM(x){if(x=String(x),x.length>100)return;var Q=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(x);if(!Q)return;var W=parseFloat(Q[1]),Y=(Q[2]||"ms").toLowerCase();switch(Y){case"years":case"year":case"yrs":case"yr":case"y":return W*NM;case"weeks":case"week":case"w":return W*qM;case"days":case"day":case"d":return W*Qx;case"hours":case"hour":case"hrs":case"hr":case"h":return W*nx;case"minutes":case"minute":case"mins":case"min":case"m":return W*lx;case"seconds":case"second":case"secs":case"sec":case"s":return W*px;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return W;default:return}}function LM(x){var Q=Math.abs(x);if(Q>=Qx)return Math.round(x/Qx)+"d";if(Q>=nx)return Math.round(x/nx)+"h";if(Q>=lx)return Math.round(x/lx)+"m";if(Q>=px)return Math.round(x/px)+"s";return x+"ms"}function FM(x){var Q=Math.abs(x);if(Q>=Qx)return C9(x,Q,Qx,"day");if(Q>=nx)return C9(x,Q,nx,"hour");if(Q>=lx)return C9(x,Q,lx,"minute");if(Q>=px)return C9(x,Q,px,"second");return x+" ms"}function C9(x,Q,W,Y){var X=Q>=W*1.5;return Math.round(x/W)+" "+Y+(X?"s":"")}});var F5=M((Ap,s$)=>{function MM(x){W.debug=W,W.default=W,W.coerce=b,W.disable=G,W.enable=X,W.enabled=$,W.humanize=r$(),W.destroy=z,Object.keys(x).forEach((v)=>{W[v]=x[v]}),W.names=[],W.skips=[],W.formatters={};function Q(v){let B=0;for(let K=0;K<v.length;K++)B=(B<<5)-B+v.charCodeAt(K),B|=0;return W.colors[Math.abs(B)%W.colors.length]}W.selectColor=Q;function W(v){let B,K=null,w,V;function N(...U){if(!N.enabled)return;let q=N,L=Number(new Date),c=L-(B||L);if(q.diff=c,q.prev=B,q.curr=L,B=L,U[0]=W.coerce(U[0]),typeof U[0]!=="string")U.unshift("%O");let S=0;U[0]=U[0].replace(/%([a-zA-Z%])/g,(y,B0)=>{if(y==="%%")return"%";S++;let d=W.formatters[B0];if(typeof d==="function"){let z1=U[S];y=d.call(q,z1),U.splice(S,1),S--}return y}),W.formatArgs.call(q,U),(q.log||W.log).apply(q,U)}if(N.namespace=v,N.useColors=W.useColors(),N.color=W.selectColor(v),N.extend=Y,N.destroy=W.destroy,Object.defineProperty(N,"enabled",{enumerable:!0,configurable:!1,get:()=>{if(K!==null)return K;if(w!==W.namespaces)w=W.namespaces,V=W.enabled(v);return V},set:(U)=>{K=U}}),typeof W.init==="function")W.init(N);return N}function Y(v,B){let K=W(this.namespace+(typeof B>"u"?":":B)+v);return K.log=this.log,K}function X(v){W.save(v),W.namespaces=v,W.names=[],W.skips=[];let B=(typeof v==="string"?v:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let K of B)if(K[0]==="-")W.skips.push(K.slice(1));else W.names.push(K)}function J(v,B){let K=0,w=0,V=-1,N=0;while(K<v.length)if(w<B.length&&(B[w]===v[K]||B[w]==="*"))if(B[w]==="*")V=w,N=K,w++;else K++,w++;else if(V!==-1)w=V+1,N++,K=N;else return!1;while(w<B.length&&B[w]==="*")w++;return w===B.length}function G(){let v=[...W.names,...W.skips.map((B)=>"-"+B)].join(",");return W.enable(""),v}function $(v){for(let B of W.skips)if(J(v,B))return!1;for(let B of W.names)if(J(v,B))return!0;return!1}function b(v){if(v instanceof Error)return v.stack||v.message;return v}function z(){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 W.enable(W.load()),W}s$.exports=MM});var e$=M((t$,T9)=>{t$.formatArgs=cM;t$.save=jM;t$.load=AM;t$.useColors=DM;t$.storage=OM();t$.destroy=(()=>{let x=!1;return()=>{if(!x)x=!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 DM(){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 x;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&&(x=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(x[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function cM(x){if(x[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+x[0]+(this.useColors?"%c ":" ")+"+"+T9.exports.humanize(this.diff),!this.useColors)return;let Q="color: "+this.color;x.splice(1,0,Q,"color: inherit");let W=0,Y=0;x[0].replace(/%[a-zA-Z%]/g,(X)=>{if(X==="%%")return;if(W++,X==="%c")Y=W}),x.splice(Y,0,Q)}t$.log=console.debug||console.log||(()=>{});function jM(x){try{if(x)t$.storage.setItem("debug",x);else t$.storage.removeItem("debug")}catch(Q){}}function AM(){let x;try{x=t$.storage.getItem("debug")||t$.storage.getItem("DEBUG")}catch(Q){}if(!x&&typeof process<"u"&&"env"in process)x=process.env.DEBUG;return x}function OM(){try{return localStorage}catch(x){}}T9.exports=F5()(t$);var{formatters:IM}=T9.exports;IM.j=function(x){try{return JSON.stringify(x)}catch(Q){return"[UnexpectedJSONParseError]: "+Q.message}}});var Qb=M((Ip,xb)=>{xb.exports=(x,Q=process.argv)=>{let W=x.startsWith("-")?"":x.length===1?"-":"--",Y=Q.indexOf(W+x),X=Q.indexOf("--");return Y!==-1&&(X===-1||Y<X)}});var Xb=M((Ep,Yb)=>{var TM=K0("os"),Wb=K0("tty"),S1=Qb(),{env:g0}=process,A4;if(S1("no-color")||S1("no-colors")||S1("color=false")||S1("color=never"))A4=0;else if(S1("color")||S1("colors")||S1("color=true")||S1("color=always"))A4=1;if("FORCE_COLOR"in g0)if(g0.FORCE_COLOR==="true")A4=1;else if(g0.FORCE_COLOR==="false")A4=0;else A4=g0.FORCE_COLOR.length===0?1:Math.min(parseInt(g0.FORCE_COLOR,10),3);function M5(x){if(x===0)return!1;return{level:x,hasBasic:!0,has256:x>=2,has16m:x>=3}}function D5(x,Q){if(A4===0)return 0;if(S1("color=16m")||S1("color=full")||S1("color=truecolor"))return 3;if(S1("color=256"))return 2;if(x&&!Q&&A4===void 0)return 0;let W=A4||0;if(g0.TERM==="dumb")return W;if(process.platform==="win32"){let Y=TM.release().split(".");if(Number(Y[0])>=10&&Number(Y[2])>=10586)return Number(Y[2])>=14931?3:2;return 1}if("CI"in g0){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((Y)=>(Y in g0))||g0.CI_NAME==="codeship")return 1;return W}if("TEAMCITY_VERSION"in g0)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(g0.TEAMCITY_VERSION)?1:0;if(g0.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in g0){let Y=parseInt((g0.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(g0.TERM_PROGRAM){case"iTerm.app":return Y>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(g0.TERM))return 2;if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(g0.TERM))return 1;if("COLORTERM"in g0)return 1;return W}function kM(x){let Q=D5(x,x&&x.isTTY);return M5(Q)}Yb.exports={supportsColor:kM,stdout:M5(D5(!0,Wb.isatty(1))),stderr:M5(D5(!0,Wb.isatty(2)))}});var bb=M((Gb,_9)=>{var _M=K0("tty"),k9=K0("util");Gb.init=yM;Gb.log=nM;Gb.formatArgs=pM;Gb.save=mM;Gb.load=fM;Gb.useColors=uM;Gb.destroy=k9.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");Gb.colors=[6,2,3,4,5,1];try{let x=Xb();if(x&&(x.stderr||x).level>=2)Gb.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(x){}Gb.inspectOpts=Object.keys(process.env).filter((x)=>{return/^debug_/i.test(x)}).reduce((x,Q)=>{let W=Q.substring(6).toLowerCase().replace(/_([a-z])/g,(X,J)=>{return J.toUpperCase()}),Y=process.env[Q];if(/^(yes|on|true|enabled)$/i.test(Y))Y=!0;else if(/^(no|off|false|disabled)$/i.test(Y))Y=!1;else if(Y==="null")Y=null;else Y=Number(Y);return x[W]=Y,x},{});function uM(){return"colors"in Gb.inspectOpts?Boolean(Gb.inspectOpts.colors):_M.isatty(process.stderr.fd)}function pM(x){let{namespace:Q,useColors:W}=this;if(W){let Y=this.color,X="\x1B[3"+(Y<8?Y:"8;5;"+Y),J=` ${X};1m${Q} \x1B[0m`;x[0]=J+x[0].split(`
9
9
  `).join(`
10
- `+J),x.push(X+"m+"+_9.exports.humanize(this.diff)+"\x1B[0m")}else x[0]=TM()+Q+" "+x[0]}function TM(){if(Yb.inspectOpts.hideDate)return"";return new Date().toISOString()+" "}function kM(...x){return process.stderr.write(k9.formatWithOptions(Yb.inspectOpts,...x)+`
11
- `)}function _M(x){if(x)process.env.DEBUG=x;else delete process.env.DEBUG}function uM(){return process.env.DEBUG}function pM(x){x.inspectOpts={};let Q=Object.keys(Yb.inspectOpts);for(let W=0;W<Q.length;W++)x.inspectOpts[Q[W]]=Yb.inspectOpts[Q[W]]}_9.exports=F5()(Yb);var{formatters:Wb}=_9.exports;Wb.o=function(x){return this.inspectOpts.colors=this.useColors,k9.inspect(x,this.inspectOpts).split(`
12
- `).map((Q)=>Q.trim()).join(" ")};Wb.O=function(x){return this.inspectOpts.colors=this.useColors,k9.inspect(x,this.inspectOpts)}});var o8=M((jp,c5)=>{if(typeof process>"u"||process.type==="renderer"||!1||process.__nwjs)c5.exports=r$();else c5.exports=Jb()});var $b=M((Gb)=>{Object.defineProperty(Gb,"__esModule",{value:!0});function oM(x){return function(Q,W){return new Promise((Y,X)=>{x.call(this,Q,W,(J,G)=>{if(J)X(J);else Y(G)})})}}Gb.default=oM});var vb=M((A5,zb)=>{var bb=A5&&A5.__importDefault||function(x){return x&&x.__esModule?x:{default:x}},dM=K0("events"),rM=bb(o8()),sM=bb($b()),a8=rM.default("agent-base");function tM(x){return Boolean(x)&&typeof x.addRequest==="function"}function j5(){let{stack:x}=Error();if(typeof x!=="string")return!1;return x.split(`
13
- `).some((Q)=>Q.indexOf("(https.js:")!==-1||Q.indexOf("node:https:")!==-1)}function u9(x,Q){return new u9.Agent(x,Q)}(function(x){class Q extends dM.EventEmitter{constructor(W,Y){super();let X=Y;if(typeof W==="function")this.callback=W;else if(W)X=W;if(this.timeout=null,X&&typeof X.timeout==="number")this.timeout=X.timeout;this.maxFreeSockets=1,this.maxSockets=1,this.maxTotalSockets=1/0,this.sockets={},this.freeSockets={},this.requests={},this.options={}}get defaultPort(){if(typeof this.explicitDefaultPort==="number")return this.explicitDefaultPort;return j5()?443:80}set defaultPort(W){this.explicitDefaultPort=W}get protocol(){if(typeof this.explicitProtocol==="string")return this.explicitProtocol;return j5()?"https:":"http:"}set protocol(W){this.explicitProtocol=W}callback(W,Y,X){throw Error('"agent-base" has no default implementation, you must subclass and override `callback()`')}addRequest(W,Y){let X=Object.assign({},Y);if(typeof X.secureEndpoint!=="boolean")X.secureEndpoint=j5();if(X.host==null)X.host="localhost";if(X.port==null)X.port=X.secureEndpoint?443:80;if(X.protocol==null)X.protocol=X.secureEndpoint?"https:":"http:";if(X.host&&X.path)delete X.path;delete X.agent,delete X.hostname,delete X._defaultAgent,delete X.defaultPort,delete X.createConnection,W._last=!0,W.shouldKeepAlive=!1;let J=!1,G=null,$=X.timeout||this.timeout,b=(K)=>{if(W._hadError)return;W.emit("error",K),W._hadError=!0},z=()=>{G=null,J=!0;let K=Error(`A "socket" was not created for HTTP request before ${$}ms`);K.code="ETIMEOUT",b(K)},v=(K)=>{if(J)return;if(G!==null)clearTimeout(G),G=null;b(K)},B=(K)=>{if(J)return;if(G!=null)clearTimeout(G),G=null;if(tM(K)){a8("Callback returned another Agent instance %o",K.constructor.name),K.addRequest(W,X);return}if(K){K.once("free",()=>{this.freeSocket(K,X)}),W.onSocket(K);return}let w=Error(`no Duplex stream was returned to agent-base for \`${W.method} ${W.path}\``);b(w)};if(typeof this.callback!=="function"){b(Error("`callback` is not defined"));return}if(!this.promisifiedCallback)if(this.callback.length>=3)a8("Converting legacy callback function to promise"),this.promisifiedCallback=sM.default(this.callback);else this.promisifiedCallback=this.callback;if(typeof $==="number"&&$>0)G=setTimeout(z,$);if("port"in X&&typeof X.port!=="number")X.port=Number(X.port);try{a8("Resolving socket for %o request: %o",X.protocol,`${W.method} ${W.path}`),Promise.resolve(this.promisifiedCallback(W,X)).then(B,v)}catch(K){Promise.reject(K).catch(v)}}freeSocket(W,Y){a8("Freeing socket %o %o",W.constructor.name,Y),W.destroy()}destroy(){a8("Destroying agent %o",this.constructor.name)}}x.Agent=Q,x.prototype=x.Agent.prototype})(u9||(u9={}));zb.exports=u9});var Bb=M((r8)=>{var eM=r8&&r8.__importDefault||function(x){return x&&x.__esModule?x:{default:x}};Object.defineProperty(r8,"__esModule",{value:!0});var xD=eM(o8()),d8=xD.default("https-proxy-agent:parse-proxy-response");function QD(x){return new Promise((Q,W)=>{let Y=0,X=[];function J(){let B=x.read();if(B)v(B);else x.once("readable",J)}function G(){x.removeListener("end",b),x.removeListener("error",z),x.removeListener("close",$),x.removeListener("readable",J)}function $(B){d8("onclose had error %o",B)}function b(){d8("onend")}function z(B){G(),d8("onerror %o",B),W(B)}function v(B){X.push(B),Y+=B.length;let K=Buffer.concat(X,Y);if(K.indexOf(`\r
10
+ `+J),x.push(X+"m+"+_9.exports.humanize(this.diff)+"\x1B[0m")}else x[0]=lM()+Q+" "+x[0]}function lM(){if(Gb.inspectOpts.hideDate)return"";return new Date().toISOString()+" "}function nM(...x){return process.stderr.write(k9.formatWithOptions(Gb.inspectOpts,...x)+`
11
+ `)}function mM(x){if(x)process.env.DEBUG=x;else delete process.env.DEBUG}function fM(){return process.env.DEBUG}function yM(x){x.inspectOpts={};let Q=Object.keys(Gb.inspectOpts);for(let W=0;W<Q.length;W++)x.inspectOpts[Q[W]]=Gb.inspectOpts[Q[W]]}_9.exports=F5()(Gb);var{formatters:Jb}=_9.exports;Jb.o=function(x){return this.inspectOpts.colors=this.useColors,k9.inspect(x,this.inspectOpts).split(`
12
+ `).map((Q)=>Q.trim()).join(" ")};Jb.O=function(x){return this.inspectOpts.colors=this.useColors,k9.inspect(x,this.inspectOpts)}});var o8=M((Pp,c5)=>{if(typeof process>"u"||process.type==="renderer"||!1||process.__nwjs)c5.exports=e$();else c5.exports=bb()});var vb=M((zb)=>{Object.defineProperty(zb,"__esModule",{value:!0});function tM(x){return function(Q,W){return new Promise((Y,X)=>{x.call(this,Q,W,(J,G)=>{if(J)X(J);else Y(G)})})}}zb.default=tM});var Kb=M((A5,wb)=>{var Bb=A5&&A5.__importDefault||function(x){return x&&x.__esModule?x:{default:x}},xD=K0("events"),QD=Bb(o8()),WD=Bb(vb()),a8=QD.default("agent-base");function YD(x){return Boolean(x)&&typeof x.addRequest==="function"}function j5(){let{stack:x}=Error();if(typeof x!=="string")return!1;return x.split(`
13
+ `).some((Q)=>Q.indexOf("(https.js:")!==-1||Q.indexOf("node:https:")!==-1)}function u9(x,Q){return new u9.Agent(x,Q)}(function(x){class Q extends xD.EventEmitter{constructor(W,Y){super();let X=Y;if(typeof W==="function")this.callback=W;else if(W)X=W;if(this.timeout=null,X&&typeof X.timeout==="number")this.timeout=X.timeout;this.maxFreeSockets=1,this.maxSockets=1,this.maxTotalSockets=1/0,this.sockets={},this.freeSockets={},this.requests={},this.options={}}get defaultPort(){if(typeof this.explicitDefaultPort==="number")return this.explicitDefaultPort;return j5()?443:80}set defaultPort(W){this.explicitDefaultPort=W}get protocol(){if(typeof this.explicitProtocol==="string")return this.explicitProtocol;return j5()?"https:":"http:"}set protocol(W){this.explicitProtocol=W}callback(W,Y,X){throw Error('"agent-base" has no default implementation, you must subclass and override `callback()`')}addRequest(W,Y){let X=Object.assign({},Y);if(typeof X.secureEndpoint!=="boolean")X.secureEndpoint=j5();if(X.host==null)X.host="localhost";if(X.port==null)X.port=X.secureEndpoint?443:80;if(X.protocol==null)X.protocol=X.secureEndpoint?"https:":"http:";if(X.host&&X.path)delete X.path;delete X.agent,delete X.hostname,delete X._defaultAgent,delete X.defaultPort,delete X.createConnection,W._last=!0,W.shouldKeepAlive=!1;let J=!1,G=null,$=X.timeout||this.timeout,b=(K)=>{if(W._hadError)return;W.emit("error",K),W._hadError=!0},z=()=>{G=null,J=!0;let K=Error(`A "socket" was not created for HTTP request before ${$}ms`);K.code="ETIMEOUT",b(K)},v=(K)=>{if(J)return;if(G!==null)clearTimeout(G),G=null;b(K)},B=(K)=>{if(J)return;if(G!=null)clearTimeout(G),G=null;if(YD(K)){a8("Callback returned another Agent instance %o",K.constructor.name),K.addRequest(W,X);return}if(K){K.once("free",()=>{this.freeSocket(K,X)}),W.onSocket(K);return}let w=Error(`no Duplex stream was returned to agent-base for \`${W.method} ${W.path}\``);b(w)};if(typeof this.callback!=="function"){b(Error("`callback` is not defined"));return}if(!this.promisifiedCallback)if(this.callback.length>=3)a8("Converting legacy callback function to promise"),this.promisifiedCallback=WD.default(this.callback);else this.promisifiedCallback=this.callback;if(typeof $==="number"&&$>0)G=setTimeout(z,$);if("port"in X&&typeof X.port!=="number")X.port=Number(X.port);try{a8("Resolving socket for %o request: %o",X.protocol,`${W.method} ${W.path}`),Promise.resolve(this.promisifiedCallback(W,X)).then(B,v)}catch(K){Promise.reject(K).catch(v)}}freeSocket(W,Y){a8("Freeing socket %o %o",W.constructor.name,Y),W.destroy()}destroy(){a8("Destroying agent %o",this.constructor.name)}}x.Agent=Q,x.prototype=x.Agent.prototype})(u9||(u9={}));wb.exports=u9});var Hb=M((r8)=>{var XD=r8&&r8.__importDefault||function(x){return x&&x.__esModule?x:{default:x}};Object.defineProperty(r8,"__esModule",{value:!0});var JD=XD(o8()),d8=JD.default("https-proxy-agent:parse-proxy-response");function GD(x){return new Promise((Q,W)=>{let Y=0,X=[];function J(){let B=x.read();if(B)v(B);else x.once("readable",J)}function G(){x.removeListener("end",b),x.removeListener("error",z),x.removeListener("close",$),x.removeListener("readable",J)}function $(B){d8("onclose had error %o",B)}function b(){d8("onend")}function z(B){G(),d8("onerror %o",B),W(B)}function v(B){X.push(B),Y+=B.length;let K=Buffer.concat(X,Y);if(K.indexOf(`\r
14
14
  \r
15
15
  `)===-1){d8("have not received end of HTTP headers yet..."),J();return}let V=K.toString("ascii",0,K.indexOf(`\r
16
- `)),N=+V.split(" ")[1];d8("got proxy server response: %o",V),Q({statusCode:N,buffered:K})}x.on("error",z),x.on("close",$),x.on("end",b),J()})}r8.default=QD});var Vb=M((Yx)=>{var WD=Yx&&Yx.__awaiter||function(x,Q,W,Y){function X(J){return J instanceof W?J:new W(function(G){G(J)})}return new(W||(W=Promise))(function(J,G){function $(v){try{z(Y.next(v))}catch(B){G(B)}}function b(v){try{z(Y.throw(v))}catch(B){G(B)}}function z(v){v.done?J(v.value):X(v.value).then($,b)}z((Y=Y.apply(x,Q||[])).next())})},mx=Yx&&Yx.__importDefault||function(x){return x&&x.__esModule?x:{default:x}};Object.defineProperty(Yx,"__esModule",{value:!0});var wb=mx(K0("net")),Kb=mx(K0("tls")),YD=mx(K0("url")),XD=mx(K0("assert")),JD=mx(o8()),GD=vb(),$D=mx(Bb()),s8=JD.default("https-proxy-agent:agent");class Hb extends GD.Agent{constructor(x){let Q;if(typeof x==="string")Q=YD.default.parse(x);else Q=x;if(!Q)throw Error("an HTTP(S) proxy server `host` and `port` must be specified!");s8("creating new HttpsProxyAgent instance: %o",Q);super(Q);let W=Object.assign({},Q);if(this.secureProxy=Q.secureProxy||vD(W.protocol),W.host=W.hostname||W.host,typeof W.port==="string")W.port=parseInt(W.port,10);if(!W.port&&W.host)W.port=this.secureProxy?443:80;if(this.secureProxy&&!("ALPNProtocols"in W))W.ALPNProtocols=["http 1.1"];if(W.host&&W.path)delete W.path,delete W.pathname;this.proxy=W}callback(x,Q){return WD(this,void 0,void 0,function*(){let{proxy:W,secureProxy:Y}=this,X;if(Y)s8("Creating `tls.Socket`: %o",W),X=Kb.default.connect(W);else s8("Creating `net.Socket`: %o",W),X=wb.default.connect(W);let J=Object.assign({},W.headers),$=`CONNECT ${`${Q.host}:${Q.port}`} HTTP/1.1\r
17
- `;if(W.auth)J["Proxy-Authorization"]=`Basic ${Buffer.from(W.auth).toString("base64")}`;let{host:b,port:z,secureEndpoint:v}=Q;if(!zD(z,v))b+=`:${z}`;J.Host=b,J.Connection="close";for(let N of Object.keys(J))$+=`${N}: ${J[N]}\r
18
- `;let B=$D.default(X);X.write(`${$}\r
19
- `);let{statusCode:K,buffered:w}=yield B;if(K===200){if(x.once("socket",bD),Q.secureEndpoint){s8("Upgrading socket connection to TLS");let N=Q.servername||Q.host;return Kb.default.connect(Object.assign(Object.assign({},BD(Q,"host","hostname","path","port")),{socket:X,servername:N}))}return X}X.destroy();let V=new wb.default.Socket({writable:!1});return V.readable=!0,x.once("socket",(N)=>{s8("replaying proxy buffer for failed request"),XD.default(N.listenerCount("data")>0),N.push(w),N.push(null)}),V})}}Yx.default=Hb;function bD(x){x.resume()}function zD(x,Q){return Boolean(!Q&&x===80||Q&&x===443)}function vD(x){return typeof x==="string"?/^https:?$/i.test(x):!1}function BD(x,...Q){let W={},Y;for(Y in x)if(!Q.includes(Y))W[Y]=x[Y];return W}});var Nb=M((E5,qb)=>{var wD=E5&&E5.__importDefault||function(x){return x&&x.__esModule?x:{default:x}},O5=wD(Vb());function I5(x){return new O5.default(x)}(function(x){x.HttpsProxyAgent=O5.default,x.prototype=O5.default.prototype})(I5||(I5={}));qb.exports=I5});var Ub=M((Ep,Lb)=>{var t8;Lb.exports=function(){if(!t8){try{t8=o8()("follow-redirects")}catch(x){}if(typeof t8!=="function")t8=function(){}}t8.apply(null,arguments)}});var jb=M((Sp,l5)=>{var x6=K0("url"),e8=x6.URL,KD=K0("http"),HD=K0("https"),i5=K0("stream").Writable,C5=K0("assert"),Fb=Ub();(function(){var Q=typeof process<"u",W=typeof window<"u"&&typeof document<"u",Y=Jx(Error.captureStackTrace);if(!Q&&(W||!Y))console.warn("The follow-redirects package should be excluded from browser builds.")})();var T5=!1;try{C5(new e8(""))}catch(x){T5=x.code==="ERR_INVALID_URL"}var VD=["Authorization","Proxy-Authorization","Cookie"],qD=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],k5=["abort","aborted","connect","error","socket","timeout"],_5=Object.create(null);k5.forEach(function(x){_5[x]=function(Q,W,Y){this._redirectable.emit(x,Q,W,Y)}});var P5=Q6("ERR_INVALID_URL","Invalid URL",TypeError),R5=Q6("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),ND=Q6("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",R5),LD=Q6("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),UD=Q6("ERR_STREAM_WRITE_AFTER_END","write after end"),FD=i5.prototype.destroy||Db;function w1(x,Q){if(i5.call(this),this._sanitizeOptions(x),this._options=x,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],Q)this.on("response",Q);var W=this;this._onNativeResponse=function(Y){try{W._processResponse(Y)}catch(X){W.emit("error",X instanceof R5?X:new R5({cause:X}))}},this._headerFilter=new RegExp("^(?:"+VD.concat(x.sensitiveHeaders).map(OD).join("|")+")$","i"),this._performRequest()}w1.prototype=Object.create(i5.prototype);w1.prototype.abort=function(){p5(this._currentRequest),this._currentRequest.abort(),this.emit("abort")};w1.prototype.destroy=function(x){return p5(this._currentRequest,x),FD.call(this,x),this};w1.prototype.write=function(x,Q,W){if(this._ending)throw new UD;if(!Xx(x)&&!jD(x))throw TypeError("data should be a string, Buffer or Uint8Array");if(Jx(Q))W=Q,Q=null;if(x.length===0){if(W)W();return}if(this._requestBodyLength+x.length<=this._options.maxBodyLength)this._requestBodyLength+=x.length,this._requestBodyBuffers.push({data:x,encoding:Q}),this._currentRequest.write(x,Q,W);else this.emit("error",new LD),this.abort()};w1.prototype.end=function(x,Q,W){if(Jx(x))W=x,x=Q=null;else if(Jx(Q))W=Q,Q=null;if(!x)this._ended=this._ending=!0,this._currentRequest.end(null,null,W);else{var Y=this,X=this._currentRequest;this.write(x,Q,function(){Y._ended=!0,X.end(null,null,W)}),this._ending=!0}};w1.prototype.setHeader=function(x,Q){this._options.headers[x]=Q,this._currentRequest.setHeader(x,Q)};w1.prototype.removeHeader=function(x){delete this._options.headers[x],this._currentRequest.removeHeader(x)};w1.prototype.setTimeout=function(x,Q){var W=this;function Y(G){G.setTimeout(x),G.removeListener("timeout",G.destroy),G.addListener("timeout",G.destroy)}function X(G){if(W._timeout)clearTimeout(W._timeout);W._timeout=setTimeout(function(){W.emit("timeout"),J()},x),Y(G)}function J(){if(W._timeout)clearTimeout(W._timeout),W._timeout=null;if(W.removeListener("abort",J),W.removeListener("error",J),W.removeListener("response",J),W.removeListener("close",J),Q)W.removeListener("timeout",Q);if(!W.socket)W._currentRequest.removeListener("socket",X)}if(Q)this.on("timeout",Q);if(this.socket)X(this.socket);else this._currentRequest.once("socket",X);return this.on("socket",Y),this.on("abort",J),this.on("error",J),this.on("response",J),this.on("close",J),this};["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(x){w1.prototype[x]=function(Q,W){return this._currentRequest[x](Q,W)}});["aborted","connection","socket"].forEach(function(x){Object.defineProperty(w1.prototype,x,{get:function(){return this._currentRequest[x]}})});w1.prototype._sanitizeOptions=function(x){if(!x.headers)x.headers={};if(!cD(x.sensitiveHeaders))x.sensitiveHeaders=[];if(x.host){if(!x.hostname)x.hostname=x.host;delete x.host}if(!x.pathname&&x.path){var Q=x.path.indexOf("?");if(Q<0)x.pathname=x.path;else x.pathname=x.path.substring(0,Q),x.search=x.path.substring(Q)}};w1.prototype._performRequest=function(){var x=this._options.protocol,Q=this._options.nativeProtocols[x];if(!Q)throw TypeError("Unsupported protocol "+x);if(this._options.agents){var W=x.slice(0,-1);this._options.agent=this._options.agents[W]}var Y=this._currentRequest=Q.request(this._options,this._onNativeResponse);Y._redirectable=this;for(var X of k5)Y.on(X,_5[X]);if(this._currentUrl=/^\//.test(this._options.path)?x6.format(this._options):this._options.path,this._isRedirect){var J=0,G=this,$=this._requestBodyBuffers;(function b(z){if(Y===G._currentRequest){if(z)G.emit("error",z);else if(J<$.length){var v=$[J++];if(!Y.finished)Y.write(v.data,v.encoding,b)}else if(G._ended)Y.end()}})()}};w1.prototype._processResponse=function(x){var Q=x.statusCode;if(this._options.trackRedirects)this._redirects.push({url:this._currentUrl,headers:x.headers,statusCode:Q});var W=x.headers.location;if(!W||this._options.followRedirects===!1||Q<300||Q>=400){x.responseUrl=this._currentUrl,x.redirects=this._redirects,this.emit("response",x),this._requestBodyBuffers=[];return}if(p5(this._currentRequest),x.destroy(),++this._redirectCount>this._options.maxRedirects)throw new ND;var Y,X=this._options.beforeRedirect;if(X)Y=Object.assign({Host:x.req.getHeader("host")},this._options.headers);var J=this._options.method;if((Q===301||Q===302)&&this._options.method==="POST"||Q===303&&!/^(?:GET|HEAD)$/.test(this._options.method))this._options.method="GET",this._requestBodyBuffers=[],S5(/^content-/i,this._options.headers);var G=S5(/^host$/i,this._options.headers),$=u5(this._currentUrl),b=G||$.host,z=/^\w+:/.test(W)?this._currentUrl:x6.format(Object.assign($,{host:b})),v=MD(W,z);if(Fb("redirecting to",v.href),this._isRedirect=!0,Z5(v,this._options),v.protocol!==$.protocol&&v.protocol!=="https:"||v.host!==b&&!DD(v.host,b))S5(this._headerFilter,this._options.headers);if(Jx(X)){var B={headers:x.headers,statusCode:Q},K={url:z,method:J,headers:Y};X(this._options,B,K),this._sanitizeOptions(this._options)}this._performRequest()};function Mb(x){var Q={maxRedirects:21,maxBodyLength:10485760},W={};return Object.keys(x).forEach(function(Y){var X=Y+":",J=W[X]=x[Y],G=Q[Y]=Object.create(J);function $(z,v,B){if(AD(z))z=Z5(z);else if(Xx(z))z=Z5(u5(z));else B=v,v=cb(z),z={protocol:X};if(Jx(v))B=v,v=null;if(v=Object.assign({maxRedirects:Q.maxRedirects,maxBodyLength:Q.maxBodyLength},z,v),v.nativeProtocols=W,!Xx(v.host)&&!Xx(v.hostname))v.hostname="::1";return C5.equal(v.protocol,X,"protocol mismatch"),Fb("options",v),new w1(v,B)}function b(z,v,B){var K=G.request(z,v,B);return K.end(),K}Object.defineProperties(G,{request:{value:$,configurable:!0,enumerable:!0,writable:!0},get:{value:b,configurable:!0,enumerable:!0,writable:!0}})}),Q}function Db(){}function u5(x){var Q;if(T5)Q=new e8(x);else if(Q=cb(x6.parse(x)),!Xx(Q.protocol))throw new P5({input:x});return Q}function MD(x,Q){return T5?new e8(x,Q):u5(x6.resolve(Q,x))}function cb(x){if(/^\[/.test(x.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(x.hostname))throw new P5({input:x.href||x});if(/^\[/.test(x.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(x.host))throw new P5({input:x.href||x});return x}function Z5(x,Q){var W=Q||{};for(var Y of qD)W[Y]=x[Y];if(W.hostname.startsWith("["))W.hostname=W.hostname.slice(1,-1);if(W.port!=="")W.port=Number(W.port);return W.path=W.search?W.pathname+W.search:W.pathname,W}function S5(x,Q){var W;for(var Y in Q)if(x.test(Y))W=Q[Y],delete Q[Y];return W===null||typeof W>"u"?void 0:String(W).trim()}function Q6(x,Q,W){function Y(X){if(Jx(Error.captureStackTrace))Error.captureStackTrace(this,this.constructor);Object.assign(this,X||{}),this.code=x,this.message=this.cause?Q+": "+this.cause.message:Q}return Y.prototype=new(W||Error),Object.defineProperties(Y.prototype,{constructor:{value:Y,enumerable:!1},name:{value:"Error ["+x+"]",enumerable:!1}}),Y}function p5(x,Q){for(var W of k5)x.removeListener(W,_5[W]);x.on("error",Db),x.destroy(Q)}function DD(x,Q){C5(Xx(x)&&Xx(Q));var W=x.length-Q.length-1;return W>0&&x[W]==="."&&x.endsWith(Q)}function cD(x){return x instanceof Array}function Xx(x){return typeof x==="string"||x instanceof String}function Jx(x){return typeof x==="function"}function jD(x){return typeof x==="object"&&"length"in x}function AD(x){return e8&&x instanceof e8}function OD(x){return x.replace(/[\]\\/()*+?.$]/g,"\\$&")}l5.exports=Mb({http:KD,https:HD});l5.exports.wrap=Mb});var l6=M((ww)=>{Object.defineProperty(ww,"__esModule",{value:!0});ww.regexpCode=ww.getEsmExportName=ww.getProperty=ww.safeStringify=ww.stringify=ww.strConcat=ww.addCodeArg=ww.str=ww._=ww.nil=ww._Code=ww.Name=ww.IDENTIFIER=ww._CodeOrName=void 0;class g7{}ww._CodeOrName=g7;ww.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class V8 extends g7{constructor(x){super();if(!ww.IDENTIFIER.test(x))throw Error("CodeGen: name must be a valid identifier");this.str=x}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}ww.Name=V8;class a1 extends g7{constructor(x){super();this._items=typeof x==="string"?[x]:x}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let x=this._items[0];return x===""||x==='""'}get str(){var x;return(x=this._str)!==null&&x!==void 0?x:this._str=this._items.reduce((Q,W)=>`${Q}${W}`,"")}get names(){var x;return(x=this._names)!==null&&x!==void 0?x:this._names=this._items.reduce((Q,W)=>{if(W instanceof V8)Q[W.str]=(Q[W.str]||0)+1;return Q},{})}}ww._Code=a1;ww.nil=new a1("");function vw(x,...Q){let W=[x[0]],Y=0;while(Y<Q.length)uY(W,Q[Y]),W.push(x[++Y]);return new a1(W)}ww._=vw;var _Y=new a1("+");function Bw(x,...Q){let W=[p6(x[0])],Y=0;while(Y<Q.length)W.push(_Y),uY(W,Q[Y]),W.push(_Y,p6(x[++Y]));return CI(W),new a1(W)}ww.str=Bw;function uY(x,Q){if(Q instanceof a1)x.push(...Q._items);else if(Q instanceof V8)x.push(Q);else x.push(_I(Q))}ww.addCodeArg=uY;function CI(x){let Q=1;while(Q<x.length-1){if(x[Q]===_Y){let W=TI(x[Q-1],x[Q+1]);if(W!==void 0){x.splice(Q-1,3,W);continue}x[Q++]="+"}Q++}}function TI(x,Q){if(Q==='""')return x;if(x==='""')return Q;if(typeof x=="string"){if(Q instanceof V8||x[x.length-1]!=='"')return;if(typeof Q!="string")return`${x.slice(0,-1)}${Q}"`;if(Q[0]==='"')return x.slice(0,-1)+Q.slice(1);return}if(typeof Q=="string"&&Q[0]==='"'&&!(x instanceof V8))return`"${x}${Q.slice(1)}`;return}function kI(x,Q){return Q.emptyStr()?x:x.emptyStr()?Q:Bw`${x}${Q}`}ww.strConcat=kI;function _I(x){return typeof x=="number"||typeof x=="boolean"||x===null?x:p6(Array.isArray(x)?x.join(","):x)}function uI(x){return new a1(p6(x))}ww.stringify=uI;function p6(x){return JSON.stringify(x).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}ww.safeStringify=p6;function pI(x){return typeof x=="string"&&ww.IDENTIFIER.test(x)?new a1(`.${x}`):vw`[${x}]`}ww.getProperty=pI;function lI(x){if(typeof x=="string"&&ww.IDENTIFIER.test(x))return new a1(`${x}`);throw Error(`CodeGen: invalid export name: ${x}, use explicit $id name mapping`)}ww.getEsmExportName=lI;function nI(x){return new a1(x.toString())}ww.regexpCode=nI});var mY=M((qw)=>{Object.defineProperty(qw,"__esModule",{value:!0});qw.ValueScope=qw.ValueScopeName=qw.Scope=qw.varKinds=qw.UsedValueState=void 0;var V1=l6();class Hw extends Error{constructor(x){super(`CodeGen: "code" for ${x} not defined`);this.value=x.value}}var o7;(function(x){x[x.Started=0]="Started",x[x.Completed=1]="Completed"})(o7||(qw.UsedValueState=o7={}));qw.varKinds={const:new V1.Name("const"),let:new V1.Name("let"),var:new V1.Name("var")};class lY{constructor({prefixes:x,parent:Q}={}){this._names={},this._prefixes=x,this._parent=Q}toName(x){return x instanceof V1.Name?x:this.name(x)}name(x){return new V1.Name(this._newName(x))}_newName(x){let Q=this._names[x]||this._nameGroup(x);return`${x}${Q.index++}`}_nameGroup(x){var Q,W;if(((W=(Q=this._parent)===null||Q===void 0?void 0:Q._prefixes)===null||W===void 0?void 0:W.has(x))||this._prefixes&&!this._prefixes.has(x))throw Error(`CodeGen: prefix "${x}" is not allowed in this scope`);return this._names[x]={prefix:x,index:0}}}qw.Scope=lY;class nY extends V1.Name{constructor(x,Q){super(Q);this.prefix=x}setValue(x,{property:Q,itemIndex:W}){this.value=x,this.scopePath=V1._`.${new V1.Name(Q)}[${W}]`}}qw.ValueScopeName=nY;var xE=V1._`\n`;class Vw extends lY{constructor(x){super(x);this._values={},this._scope=x.scope,this.opts={...x,_n:x.lines?xE:V1.nil}}get(){return this._scope}name(x){return new nY(x,this._newName(x))}value(x,Q){var W;if(Q.ref===void 0)throw Error("CodeGen: ref must be passed in value");let Y=this.toName(x),{prefix:X}=Y,J=(W=Q.key)!==null&&W!==void 0?W:Q.ref,G=this._values[X];if(G){let z=G.get(J);if(z)return z}else G=this._values[X]=new Map;G.set(J,Y);let $=this._scope[X]||(this._scope[X]=[]),b=$.length;return $[b]=Q.ref,Y.setValue(Q,{property:X,itemIndex:b}),Y}getValue(x,Q){let W=this._values[x];if(!W)return;return W.get(Q)}scopeRefs(x,Q=this._values){return this._reduceValues(Q,(W)=>{if(W.scopePath===void 0)throw Error(`CodeGen: name "${W}" has no value`);return V1._`${x}${W.scopePath}`})}scopeCode(x=this._values,Q,W){return this._reduceValues(x,(Y)=>{if(Y.value===void 0)throw Error(`CodeGen: name "${Y}" has no value`);return Y.value.code},Q,W)}_reduceValues(x,Q,W={},Y){let X=V1.nil;for(let J in x){let G=x[J];if(!G)continue;let $=W[J]=W[J]||new Map;G.forEach((b)=>{if($.has(b))return;$.set(b,o7.Started);let z=Q(b);if(z){let v=this.opts.es5?qw.varKinds.var:qw.varKinds.const;X=V1._`${X}${v} ${b} = ${z};${this.opts._n}`}else if(z=Y===null||Y===void 0?void 0:Y(b))X=V1._`${X}${z}${this.opts._n}`;else throw new Hw(b);$.set(b,o7.Completed)})}return X}}qw.ValueScope=Vw});var a=M((q1)=>{Object.defineProperty(q1,"__esModule",{value:!0});q1.or=q1.and=q1.not=q1.CodeGen=q1.operators=q1.varKinds=q1.ValueScopeName=q1.ValueScope=q1.Scope=q1.Name=q1.regexpCode=q1.stringify=q1.getProperty=q1.nil=q1.strConcat=q1.str=q1._=void 0;var X0=l6(),d1=mY(),u4=l6();Object.defineProperty(q1,"_",{enumerable:!0,get:function(){return u4._}});Object.defineProperty(q1,"str",{enumerable:!0,get:function(){return u4.str}});Object.defineProperty(q1,"strConcat",{enumerable:!0,get:function(){return u4.strConcat}});Object.defineProperty(q1,"nil",{enumerable:!0,get:function(){return u4.nil}});Object.defineProperty(q1,"getProperty",{enumerable:!0,get:function(){return u4.getProperty}});Object.defineProperty(q1,"stringify",{enumerable:!0,get:function(){return u4.stringify}});Object.defineProperty(q1,"regexpCode",{enumerable:!0,get:function(){return u4.regexpCode}});Object.defineProperty(q1,"Name",{enumerable:!0,get:function(){return u4.Name}});var e7=mY();Object.defineProperty(q1,"Scope",{enumerable:!0,get:function(){return e7.Scope}});Object.defineProperty(q1,"ValueScope",{enumerable:!0,get:function(){return e7.ValueScope}});Object.defineProperty(q1,"ValueScopeName",{enumerable:!0,get:function(){return e7.ValueScopeName}});Object.defineProperty(q1,"varKinds",{enumerable:!0,get:function(){return e7.varKinds}});q1.operators={GT:new X0._Code(">"),GTE:new X0._Code(">="),LT:new X0._Code("<"),LTE:new X0._Code("<="),EQ:new X0._Code("==="),NEQ:new X0._Code("!=="),NOT:new X0._Code("!"),OR:new X0._Code("||"),AND:new X0._Code("&&"),ADD:new X0._Code("+")};class p4{optimizeNodes(){return this}optimizeNames(x,Q){return this}}class Lw extends p4{constructor(x,Q,W){super();this.varKind=x,this.name=Q,this.rhs=W}render({es5:x,_n:Q}){let W=x?d1.varKinds.var:this.varKind,Y=this.rhs===void 0?"":` = ${this.rhs}`;return`${W} ${this.name}${Y};`+Q}optimizeNames(x,Q){if(!x[this.name.str])return;if(this.rhs)this.rhs=N8(this.rhs,x,Q);return this}get names(){return this.rhs instanceof X0._CodeOrName?this.rhs.names:{}}}class gY extends p4{constructor(x,Q,W){super();this.lhs=x,this.rhs=Q,this.sideEffects=W}render({_n:x}){return`${this.lhs} = ${this.rhs};`+x}optimizeNames(x,Q){if(this.lhs instanceof X0.Name&&!x[this.lhs.str]&&!this.sideEffects)return;return this.rhs=N8(this.rhs,x,Q),this}get names(){let x=this.lhs instanceof X0.Name?{}:{...this.lhs.names};return t7(x,this.rhs)}}class Uw extends gY{constructor(x,Q,W,Y){super(x,W,Y);this.op=Q}render({_n:x}){return`${this.lhs} ${this.op}= ${this.rhs};`+x}}class Fw extends p4{constructor(x){super();this.label=x,this.names={}}render({_n:x}){return`${this.label}:`+x}}class Mw extends p4{constructor(x){super();this.label=x,this.names={}}render({_n:x}){return`break${this.label?` ${this.label}`:""};`+x}}class Dw extends p4{constructor(x){super();this.error=x}render({_n:x}){return`throw ${this.error};`+x}get names(){return this.error.names}}class cw extends p4{constructor(x){super();this.code=x}render({_n:x}){return`${this.code};`+x}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(x,Q){return this.code=N8(this.code,x,Q),this}get names(){return this.code instanceof X0._CodeOrName?this.code.names:{}}}class x3 extends p4{constructor(x=[]){super();this.nodes=x}render(x){return this.nodes.reduce((Q,W)=>Q+W.render(x),"")}optimizeNodes(){let{nodes:x}=this,Q=x.length;while(Q--){let W=x[Q].optimizeNodes();if(Array.isArray(W))x.splice(Q,1,...W);else if(W)x[Q]=W;else x.splice(Q,1)}return x.length>0?this:void 0}optimizeNames(x,Q){let{nodes:W}=this,Y=W.length;while(Y--){let X=W[Y];if(X.optimizeNames(x,Q))continue;XE(x,X.names),W.splice(Y,1)}return W.length>0?this:void 0}get names(){return this.nodes.reduce((x,Q)=>Ux(x,Q.names),{})}}class l4 extends x3{render(x){return"{"+x._n+super.render(x)+"}"+x._n}}class jw extends x3{}class n6 extends l4{}n6.kind="else";class H4 extends l4{constructor(x,Q){super(Q);this.condition=x}render(x){let Q=`if(${this.condition})`+super.render(x);if(this.else)Q+="else "+this.else.render(x);return Q}optimizeNodes(){super.optimizeNodes();let x=this.condition;if(x===!0)return this.nodes;let Q=this.else;if(Q){let W=Q.optimizeNodes();Q=this.else=Array.isArray(W)?new n6(W):W}if(Q){if(x===!1)return Q instanceof H4?Q:Q.nodes;if(this.nodes.length)return this;return new H4(Sw(x),Q instanceof H4?[Q]:Q.nodes)}if(x===!1||!this.nodes.length)return;return this}optimizeNames(x,Q){var W;if(this.else=(W=this.else)===null||W===void 0?void 0:W.optimizeNames(x,Q),!(super.optimizeNames(x,Q)||this.else))return;return this.condition=N8(this.condition,x,Q),this}get names(){let x=super.names;if(t7(x,this.condition),this.else)Ux(x,this.else.names);return x}}H4.kind="if";class q8 extends l4{}q8.kind="for";class Aw extends q8{constructor(x){super();this.iteration=x}render(x){return`for(${this.iteration})`+super.render(x)}optimizeNames(x,Q){if(!super.optimizeNames(x,Q))return;return this.iteration=N8(this.iteration,x,Q),this}get names(){return Ux(super.names,this.iteration.names)}}class Ow extends q8{constructor(x,Q,W,Y){super();this.varKind=x,this.name=Q,this.from=W,this.to=Y}render(x){let Q=x.es5?d1.varKinds.var:this.varKind,{name:W,from:Y,to:X}=this;return`for(${Q} ${W}=${Y}; ${W}<${X}; ${W}++)`+super.render(x)}get names(){let x=t7(super.names,this.from);return t7(x,this.to)}}class fY extends q8{constructor(x,Q,W,Y){super();this.loop=x,this.varKind=Q,this.name=W,this.iterable=Y}render(x){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(x)}optimizeNames(x,Q){if(!super.optimizeNames(x,Q))return;return this.iterable=N8(this.iterable,x,Q),this}get names(){return Ux(super.names,this.iterable.names)}}class a7 extends l4{constructor(x,Q,W){super();this.name=x,this.args=Q,this.async=W}render(x){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(x)}}a7.kind="func";class d7 extends x3{render(x){return"return "+super.render(x)}}d7.kind="return";class Iw extends l4{render(x){let Q="try"+super.render(x);if(this.catch)Q+=this.catch.render(x);if(this.finally)Q+=this.finally.render(x);return Q}optimizeNodes(){var x,Q;return super.optimizeNodes(),(x=this.catch)===null||x===void 0||x.optimizeNodes(),(Q=this.finally)===null||Q===void 0||Q.optimizeNodes(),this}optimizeNames(x,Q){var W,Y;return super.optimizeNames(x,Q),(W=this.catch)===null||W===void 0||W.optimizeNames(x,Q),(Y=this.finally)===null||Y===void 0||Y.optimizeNames(x,Q),this}get names(){let x=super.names;if(this.catch)Ux(x,this.catch.names);if(this.finally)Ux(x,this.finally.names);return x}}class r7 extends l4{constructor(x){super();this.error=x}render(x){return`catch(${this.error})`+super.render(x)}}r7.kind="catch";class s7 extends l4{render(x){return"finally"+super.render(x)}}s7.kind="finally";class Ew{constructor(x,Q={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...Q,_n:Q.lines?`
20
- `:""},this._extScope=x,this._scope=new d1.Scope({parent:x}),this._nodes=[new jw]}toString(){return this._root.render(this.opts)}name(x){return this._scope.name(x)}scopeName(x){return this._extScope.name(x)}scopeValue(x,Q){let W=this._extScope.value(x,Q);return(this._values[W.prefix]||(this._values[W.prefix]=new Set)).add(W),W}getScopeValue(x,Q){return this._extScope.getValue(x,Q)}scopeRefs(x){return this._extScope.scopeRefs(x,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(x,Q,W,Y){let X=this._scope.toName(Q);if(W!==void 0&&Y)this._constants[X.str]=W;return this._leafNode(new Lw(x,X,W)),X}const(x,Q,W){return this._def(d1.varKinds.const,x,Q,W)}let(x,Q,W){return this._def(d1.varKinds.let,x,Q,W)}var(x,Q,W){return this._def(d1.varKinds.var,x,Q,W)}assign(x,Q,W){return this._leafNode(new gY(x,Q,W))}add(x,Q){return this._leafNode(new Uw(x,q1.operators.ADD,Q))}code(x){if(typeof x=="function")x();else if(x!==X0.nil)this._leafNode(new cw(x));return this}object(...x){let Q=["{"];for(let[W,Y]of x){if(Q.length>1)Q.push(",");if(Q.push(W),W!==Y||this.opts.es5)Q.push(":"),(0,X0.addCodeArg)(Q,Y)}return Q.push("}"),new X0._Code(Q)}if(x,Q,W){if(this._blockNode(new H4(x)),Q&&W)this.code(Q).else().code(W).endIf();else if(Q)this.code(Q).endIf();else if(W)throw Error('CodeGen: "else" body without "then" body');return this}elseIf(x){return this._elseNode(new H4(x))}else(){return this._elseNode(new n6)}endIf(){return this._endBlockNode(H4,n6)}_for(x,Q){if(this._blockNode(x),Q)this.code(Q).endFor();return this}for(x,Q){return this._for(new Aw(x),Q)}forRange(x,Q,W,Y,X=this.opts.es5?d1.varKinds.var:d1.varKinds.let){let J=this._scope.toName(x);return this._for(new Ow(X,J,Q,W),()=>Y(J))}forOf(x,Q,W,Y=d1.varKinds.const){let X=this._scope.toName(x);if(this.opts.es5){let J=Q instanceof X0.Name?Q:this.var("_arr",Q);return this.forRange("_i",0,X0._`${J}.length`,(G)=>{this.var(X,X0._`${J}[${G}]`),W(X)})}return this._for(new fY("of",Y,X,Q),()=>W(X))}forIn(x,Q,W,Y=this.opts.es5?d1.varKinds.var:d1.varKinds.const){if(this.opts.ownProperties)return this.forOf(x,X0._`Object.keys(${Q})`,W);let X=this._scope.toName(x);return this._for(new fY("in",Y,X,Q),()=>W(X))}endFor(){return this._endBlockNode(q8)}label(x){return this._leafNode(new Fw(x))}break(x){return this._leafNode(new Mw(x))}return(x){let Q=new d7;if(this._blockNode(Q),this.code(x),Q.nodes.length!==1)throw Error('CodeGen: "return" should have one node');return this._endBlockNode(d7)}try(x,Q,W){if(!Q&&!W)throw Error('CodeGen: "try" without "catch" and "finally"');let Y=new Iw;if(this._blockNode(Y),this.code(x),Q){let X=this.name("e");this._currNode=Y.catch=new r7(X),Q(X)}if(W)this._currNode=Y.finally=new s7,this.code(W);return this._endBlockNode(r7,s7)}throw(x){return this._leafNode(new Dw(x))}block(x,Q){if(this._blockStarts.push(this._nodes.length),x)this.code(x).endBlock(Q);return this}endBlock(x){let Q=this._blockStarts.pop();if(Q===void 0)throw Error("CodeGen: not in self-balancing block");let W=this._nodes.length-Q;if(W<0||x!==void 0&&W!==x)throw Error(`CodeGen: wrong number of nodes: ${W} vs ${x} expected`);return this._nodes.length=Q,this}func(x,Q=X0.nil,W,Y){if(this._blockNode(new a7(x,Q,W)),Y)this.code(Y).endFunc();return this}endFunc(){return this._endBlockNode(a7)}optimize(x=1){while(x-- >0)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(x){return this._currNode.nodes.push(x),this}_blockNode(x){this._currNode.nodes.push(x),this._nodes.push(x)}_endBlockNode(x,Q){let W=this._currNode;if(W instanceof x||Q&&W instanceof Q)return this._nodes.pop(),this;throw Error(`CodeGen: not in block "${Q?`${x.kind}/${Q.kind}`:x.kind}"`)}_elseNode(x){let Q=this._currNode;if(!(Q instanceof H4))throw Error('CodeGen: "else" without "if"');return this._currNode=Q.else=x,this}get _root(){return this._nodes[0]}get _currNode(){let x=this._nodes;return x[x.length-1]}set _currNode(x){let Q=this._nodes;Q[Q.length-1]=x}}q1.CodeGen=Ew;function Ux(x,Q){for(let W in Q)x[W]=(x[W]||0)+(Q[W]||0);return x}function t7(x,Q){return Q instanceof X0._CodeOrName?Ux(x,Q.names):x}function N8(x,Q,W){if(x instanceof X0.Name)return Y(x);if(!X(x))return x;return new X0._Code(x._items.reduce((J,G)=>{if(G instanceof X0.Name)G=Y(G);if(G instanceof X0._Code)J.push(...G._items);else J.push(G);return J},[]));function Y(J){let G=W[J.str];if(G===void 0||Q[J.str]!==1)return J;return delete Q[J.str],G}function X(J){return J instanceof X0._Code&&J._items.some((G)=>G instanceof X0.Name&&Q[G.str]===1&&W[G.str]!==void 0)}}function XE(x,Q){for(let W in Q)x[W]=(x[W]||0)-(Q[W]||0)}function Sw(x){return typeof x=="boolean"||typeof x=="number"||x===null?!x:X0._`!${yY(x)}`}q1.not=Sw;var JE=Pw(q1.operators.AND);function GE(...x){return x.reduce(JE)}q1.and=GE;var $E=Pw(q1.operators.OR);function bE(...x){return x.reduce($E)}q1.or=bE;function Pw(x){return(Q,W)=>Q===X0.nil?W:W===X0.nil?Q:X0._`${yY(Q)} ${x} ${yY(W)}`}function yY(x){return x instanceof X0.Name?x:X0._`(${x})`}});var G0=M((pw)=>{Object.defineProperty(pw,"__esModule",{value:!0});pw.checkStrictMode=pw.getErrorPath=pw.Type=pw.useFunc=pw.setEvaluated=pw.evaluatedPropsToName=pw.mergeEvaluated=pw.eachItem=pw.unescapeJsonPointer=pw.escapeJsonPointer=pw.escapeFragment=pw.unescapeFragment=pw.schemaRefOrVal=pw.schemaHasRulesButRef=pw.schemaHasRules=pw.checkUnknownRules=pw.alwaysValidSchema=pw.toHash=void 0;var H0=a(),wE=l6();function KE(x){let Q={};for(let W of x)Q[W]=!0;return Q}pw.toHash=KE;function HE(x,Q){if(typeof Q=="boolean")return Q;if(Object.keys(Q).length===0)return!0;return Cw(x,Q),!Tw(Q,x.self.RULES.all)}pw.alwaysValidSchema=HE;function Cw(x,Q=x.schema){let{opts:W,self:Y}=x;if(!W.strictSchema)return;if(typeof Q==="boolean")return;let X=Y.RULES.keywords;for(let J in Q)if(!X[J])uw(x,`unknown keyword: "${J}"`)}pw.checkUnknownRules=Cw;function Tw(x,Q){if(typeof x=="boolean")return!x;for(let W in x)if(Q[W])return!0;return!1}pw.schemaHasRules=Tw;function VE(x,Q){if(typeof x=="boolean")return!x;for(let W in x)if(W!=="$ref"&&Q.all[W])return!0;return!1}pw.schemaHasRulesButRef=VE;function qE({topSchemaRef:x,schemaPath:Q},W,Y,X){if(!X){if(typeof W=="number"||typeof W=="boolean")return W;if(typeof W=="string")return H0._`${W}`}return H0._`${x}${Q}${(0,H0.getProperty)(Y)}`}pw.schemaRefOrVal=qE;function NE(x){return kw(decodeURIComponent(x))}pw.unescapeFragment=NE;function LE(x){return encodeURIComponent(oY(x))}pw.escapeFragment=LE;function oY(x){if(typeof x=="number")return`${x}`;return x.replace(/~/g,"~0").replace(/\//g,"~1")}pw.escapeJsonPointer=oY;function kw(x){return x.replace(/~1/g,"/").replace(/~0/g,"~")}pw.unescapeJsonPointer=kw;function UE(x,Q){if(Array.isArray(x))for(let W of x)Q(W);else Q(x)}pw.eachItem=UE;function Zw({mergeNames:x,mergeToName:Q,mergeValues:W,resultToName:Y}){return(X,J,G,$)=>{let b=G===void 0?J:G instanceof H0.Name?(J instanceof H0.Name?x(X,J,G):Q(X,J,G),G):J instanceof H0.Name?(Q(X,G,J),J):W(J,G);return $===H0.Name&&!(b instanceof H0.Name)?Y(X,b):b}}pw.mergeEvaluated={props:Zw({mergeNames:(x,Q,W)=>x.if(H0._`${W} !== true && ${Q} !== undefined`,()=>{x.if(H0._`${Q} === true`,()=>x.assign(W,!0),()=>x.assign(W,H0._`${W} || {}`).code(H0._`Object.assign(${W}, ${Q})`))}),mergeToName:(x,Q,W)=>x.if(H0._`${W} !== true`,()=>{if(Q===!0)x.assign(W,!0);else x.assign(W,H0._`${W} || {}`),aY(x,W,Q)}),mergeValues:(x,Q)=>x===!0?!0:{...x,...Q},resultToName:_w}),items:Zw({mergeNames:(x,Q,W)=>x.if(H0._`${W} !== true && ${Q} !== undefined`,()=>x.assign(W,H0._`${Q} === true ? true : ${W} > ${Q} ? ${W} : ${Q}`)),mergeToName:(x,Q,W)=>x.if(H0._`${W} !== true`,()=>x.assign(W,Q===!0?!0:H0._`${W} > ${Q} ? ${W} : ${Q}`)),mergeValues:(x,Q)=>x===!0?!0:Math.max(x,Q),resultToName:(x,Q)=>x.var("items",Q)})};function _w(x,Q){if(Q===!0)return x.var("props",!0);let W=x.var("props",H0._`{}`);if(Q!==void 0)aY(x,W,Q);return W}pw.evaluatedPropsToName=_w;function aY(x,Q,W){Object.keys(W).forEach((Y)=>x.assign(H0._`${Q}${(0,H0.getProperty)(Y)}`,!0))}pw.setEvaluated=aY;var iw={};function FE(x,Q){return x.scopeValue("func",{ref:Q,code:iw[Q.code]||(iw[Q.code]=new wE._Code(Q.code))})}pw.useFunc=FE;var hY;(function(x){x[x.Num=0]="Num",x[x.Str=1]="Str"})(hY||(pw.Type=hY={}));function ME(x,Q,W){if(x instanceof H0.Name){let Y=Q===hY.Num;return W?Y?H0._`"[" + ${x} + "]"`:H0._`"['" + ${x} + "']"`:Y?H0._`"/" + ${x}`:H0._`"/" + ${x}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return W?(0,H0.getProperty)(x).toString():"/"+oY(x)}pw.getErrorPath=ME;function uw(x,Q,W=x.opts.strictSchema){if(!W)return;if(Q=`strict mode: ${Q}`,W===!0)throw Error(Q);x.self.logger.warn(Q)}pw.checkStrictMode=uw});var V4=M((nw)=>{Object.defineProperty(nw,"__esModule",{value:!0});var X1=a(),pE={data:new X1.Name("data"),valCxt:new X1.Name("valCxt"),instancePath:new X1.Name("instancePath"),parentData:new X1.Name("parentData"),parentDataProperty:new X1.Name("parentDataProperty"),rootData:new X1.Name("rootData"),dynamicAnchors:new X1.Name("dynamicAnchors"),vErrors:new X1.Name("vErrors"),errors:new X1.Name("errors"),this:new X1.Name("this"),self:new X1.Name("self"),scope:new X1.Name("scope"),json:new X1.Name("json"),jsonPos:new X1.Name("jsonPos"),jsonLen:new X1.Name("jsonLen"),jsonPart:new X1.Name("jsonPart")};nw.default=pE});var m6=M((gw)=>{Object.defineProperty(gw,"__esModule",{value:!0});gw.extendErrors=gw.resetErrorsCount=gw.reportExtraError=gw.reportError=gw.keyword$DataError=gw.keywordError=void 0;var $0=a(),W3=G0(),$1=V4();gw.keywordError={message:({keyword:x})=>$0.str`must pass "${x}" keyword validation`};gw.keyword$DataError={message:({keyword:x,schemaType:Q})=>Q?$0.str`"${x}" keyword must be ${Q} ($data)`:$0.str`"${x}" keyword is invalid ($data)`};function nE(x,Q=gw.keywordError,W,Y){let{it:X}=x,{gen:J,compositeRule:G,allErrors:$}=X,b=yw(x,Q,W);if(Y!==null&&Y!==void 0?Y:G||$)mw(J,b);else fw(X,$0._`[${b}]`)}gw.reportError=nE;function mE(x,Q=gw.keywordError,W){let{it:Y}=x,{gen:X,compositeRule:J,allErrors:G}=Y,$=yw(x,Q,W);if(mw(X,$),!(J||G))fw(Y,$1.default.vErrors)}gw.reportExtraError=mE;function fE(x,Q){x.assign($1.default.errors,Q),x.if($0._`${$1.default.vErrors} !== null`,()=>x.if(Q,()=>x.assign($0._`${$1.default.vErrors}.length`,Q),()=>x.assign($1.default.vErrors,null)))}gw.resetErrorsCount=fE;function yE({gen:x,keyword:Q,schemaValue:W,data:Y,errsCount:X,it:J}){if(X===void 0)throw Error("ajv implementation error");let G=x.name("err");x.forRange("i",X,$1.default.errors,($)=>{if(x.const(G,$0._`${$1.default.vErrors}[${$}]`),x.if($0._`${G}.instancePath === undefined`,()=>x.assign($0._`${G}.instancePath`,(0,$0.strConcat)($1.default.instancePath,J.errorPath))),x.assign($0._`${G}.schemaPath`,$0.str`${J.errSchemaPath}/${Q}`),J.opts.verbose)x.assign($0._`${G}.schema`,W),x.assign($0._`${G}.data`,Y)})}gw.extendErrors=yE;function mw(x,Q){let W=x.const("err",Q);x.if($0._`${$1.default.vErrors} === null`,()=>x.assign($1.default.vErrors,$0._`[${W}]`),$0._`${$1.default.vErrors}.push(${W})`),x.code($0._`${$1.default.errors}++`)}function fw(x,Q){let{gen:W,validateName:Y,schemaEnv:X}=x;if(X.$async)W.throw($0._`new ${x.ValidationError}(${Q})`);else W.assign($0._`${Y}.errors`,Q),W.return(!1)}var Fx={keyword:new $0.Name("keyword"),schemaPath:new $0.Name("schemaPath"),params:new $0.Name("params"),propertyName:new $0.Name("propertyName"),message:new $0.Name("message"),schema:new $0.Name("schema"),parentSchema:new $0.Name("parentSchema")};function yw(x,Q,W){let{createErrors:Y}=x.it;if(Y===!1)return $0._`{}`;return gE(x,Q,W)}function gE(x,Q,W={}){let{gen:Y,it:X}=x,J=[hE(X,W),oE(x,W)];return aE(x,Q,J),Y.object(...J)}function hE({errorPath:x},{instancePath:Q}){let W=Q?$0.str`${x}${(0,W3.getErrorPath)(Q,W3.Type.Str)}`:x;return[$1.default.instancePath,(0,$0.strConcat)($1.default.instancePath,W)]}function oE({keyword:x,it:{errSchemaPath:Q}},{schemaPath:W,parentSchema:Y}){let X=Y?Q:$0.str`${Q}/${x}`;if(W)X=$0.str`${X}${(0,W3.getErrorPath)(W,W3.Type.Str)}`;return[Fx.schemaPath,X]}function aE(x,{params:Q,message:W},Y){let{keyword:X,data:J,schemaValue:G,it:$}=x,{opts:b,propertyName:z,topSchemaRef:v,schemaPath:B}=$;if(Y.push([Fx.keyword,X],[Fx.params,typeof Q=="function"?Q(x):Q||$0._`{}`]),b.messages)Y.push([Fx.message,typeof W=="function"?W(x):W]);if(b.verbose)Y.push([Fx.schema,G],[Fx.parentSchema,$0._`${v}${B}`],[$1.default.data,J]);if(z)Y.push([Fx.propertyName,z])}});var rw=M((aw)=>{Object.defineProperty(aw,"__esModule",{value:!0});aw.boolOrEmptySchema=aw.topBoolOrEmptySchema=void 0;var eE=m6(),xS=a(),QS=V4(),WS={message:"boolean schema is false"};function YS(x){let{gen:Q,schema:W,validateName:Y}=x;if(W===!1)ow(x,!1);else if(typeof W=="object"&&W.$async===!0)Q.return(QS.default.data);else Q.assign(xS._`${Y}.errors`,null),Q.return(!0)}aw.topBoolOrEmptySchema=YS;function XS(x,Q){let{gen:W,schema:Y}=x;if(Y===!1)W.var(Q,!1),ow(x);else W.var(Q,!0)}aw.boolOrEmptySchema=XS;function ow(x,Q){let{gen:W,data:Y}=x,X={gen:W,keyword:"false schema",data:Y,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:x};(0,eE.reportError)(X,WS,void 0,Q)}});var rY=M((sw)=>{Object.defineProperty(sw,"__esModule",{value:!0});sw.getRules=sw.isJSONType=void 0;var GS=["string","number","integer","boolean","null","object","array"],$S=new Set(GS);function bS(x){return typeof x=="string"&&$S.has(x)}sw.isJSONType=bS;function zS(){let x={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...x,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},x.number,x.string,x.array,x.object],post:{rules:[]},all:{},keywords:{}}}sw.getRules=zS});var sY=M((QK)=>{Object.defineProperty(QK,"__esModule",{value:!0});QK.shouldUseRule=QK.shouldUseGroup=QK.schemaHasRulesForType=void 0;function BS({schema:x,self:Q},W){let Y=Q.RULES.types[W];return Y&&Y!==!0&&ew(x,Y)}QK.schemaHasRulesForType=BS;function ew(x,Q){return Q.rules.some((W)=>xK(x,W))}QK.shouldUseGroup=ew;function xK(x,Q){var W;return x[Q.keyword]!==void 0||((W=Q.definition.implements)===null||W===void 0?void 0:W.some((Y)=>x[Y]!==void 0))}QK.shouldUseRule=xK});var f6=M((GK)=>{Object.defineProperty(GK,"__esModule",{value:!0});GK.reportTypeError=GK.checkDataTypes=GK.checkDataType=GK.coerceAndCheckDataType=GK.getJSONTypes=GK.getSchemaTypes=GK.DataType=void 0;var HS=rY(),VS=sY(),qS=m6(),o=a(),YK=G0(),L8;(function(x){x[x.Correct=0]="Correct",x[x.Wrong=1]="Wrong"})(L8||(GK.DataType=L8={}));function NS(x){let Q=XK(x.type);if(Q.includes("null")){if(x.nullable===!1)throw Error("type: null contradicts nullable: false")}else{if(!Q.length&&x.nullable!==void 0)throw Error('"nullable" cannot be used without "type"');if(x.nullable===!0)Q.push("null")}return Q}GK.getSchemaTypes=NS;function XK(x){let Q=Array.isArray(x)?x:x?[x]:[];if(Q.every(HS.isJSONType))return Q;throw Error("type must be JSONType or JSONType[]: "+Q.join(","))}GK.getJSONTypes=XK;function LS(x,Q){let{gen:W,data:Y,opts:X}=x,J=US(Q,X.coerceTypes),G=Q.length>0&&!(J.length===0&&Q.length===1&&(0,VS.schemaHasRulesForType)(x,Q[0]));if(G){let $=eY(Q,Y,X.strictNumbers,L8.Wrong);W.if($,()=>{if(J.length)FS(x,Q,J);else xX(x)})}return G}GK.coerceAndCheckDataType=LS;var JK=new Set(["string","number","integer","boolean","null"]);function US(x,Q){return Q?x.filter((W)=>JK.has(W)||Q==="array"&&W==="array"):[]}function FS(x,Q,W){let{gen:Y,data:X,opts:J}=x,G=Y.let("dataType",o._`typeof ${X}`),$=Y.let("coerced",o._`undefined`);if(J.coerceTypes==="array")Y.if(o._`${G} == 'object' && Array.isArray(${X}) && ${X}.length == 1`,()=>Y.assign(X,o._`${X}[0]`).assign(G,o._`typeof ${X}`).if(eY(Q,X,J.strictNumbers),()=>Y.assign($,X)));Y.if(o._`${$} !== undefined`);for(let z of W)if(JK.has(z)||z==="array"&&J.coerceTypes==="array")b(z);Y.else(),xX(x),Y.endIf(),Y.if(o._`${$} !== undefined`,()=>{Y.assign(X,$),MS(x,$)});function b(z){switch(z){case"string":Y.elseIf(o._`${G} == "number" || ${G} == "boolean"`).assign($,o._`"" + ${X}`).elseIf(o._`${X} === null`).assign($,o._`""`);return;case"number":Y.elseIf(o._`${G} == "boolean" || ${X} === null
16
+ `)),N=+V.split(" ")[1];d8("got proxy server response: %o",V),Q({statusCode:N,buffered:K})}x.on("error",z),x.on("close",$),x.on("end",b),J()})}r8.default=GD});var Ub=M((Yx)=>{var $D=Yx&&Yx.__awaiter||function(x,Q,W,Y){function X(J){return J instanceof W?J:new W(function(G){G(J)})}return new(W||(W=Promise))(function(J,G){function $(v){try{z(Y.next(v))}catch(B){G(B)}}function b(v){try{z(Y.throw(v))}catch(B){G(B)}}function z(v){v.done?J(v.value):X(v.value).then($,b)}z((Y=Y.apply(x,Q||[])).next())})},mx=Yx&&Yx.__importDefault||function(x){return x&&x.__esModule?x:{default:x}};Object.defineProperty(Yx,"__esModule",{value:!0});var Vb=mx(K0("net")),qb=mx(K0("tls")),bD=mx(K0("url")),zD=mx(K0("assert")),vD=mx(o8()),BD=Kb(),wD=mx(Hb()),s8=vD.default("https-proxy-agent:agent");class Nb extends BD.Agent{constructor(x){let Q;if(typeof x==="string")Q=bD.default.parse(x);else Q=x;if(!Q)throw Error("an HTTP(S) proxy server `host` and `port` must be specified!");s8("creating new HttpsProxyAgent instance: %o",Q);super(Q);let W=Object.assign({},Q);if(this.secureProxy=Q.secureProxy||VD(W.protocol),W.host=W.hostname||W.host,typeof W.port==="string")W.port=parseInt(W.port,10);if(!W.port&&W.host)W.port=this.secureProxy?443:80;if(this.secureProxy&&!("ALPNProtocols"in W))W.ALPNProtocols=["http 1.1"];if(W.host&&W.path)delete W.path,delete W.pathname;this.proxy=W}callback(x,Q){return $D(this,void 0,void 0,function*(){let{proxy:W,secureProxy:Y}=this,X;if(Y)s8("Creating `tls.Socket`: %o",W),X=qb.default.connect(W);else s8("Creating `net.Socket`: %o",W),X=Vb.default.connect(W);let J=Object.assign({},W.headers),$=`CONNECT ${`${Q.host}:${Q.port}`} HTTP/1.1\r
17
+ `;if(W.auth)J["Proxy-Authorization"]=`Basic ${Buffer.from(W.auth).toString("base64")}`;let{host:b,port:z,secureEndpoint:v}=Q;if(!HD(z,v))b+=`:${z}`;J.Host=b,J.Connection="close";for(let N of Object.keys(J))$+=`${N}: ${J[N]}\r
18
+ `;let B=wD.default(X);X.write(`${$}\r
19
+ `);let{statusCode:K,buffered:w}=yield B;if(K===200){if(x.once("socket",KD),Q.secureEndpoint){s8("Upgrading socket connection to TLS");let N=Q.servername||Q.host;return qb.default.connect(Object.assign(Object.assign({},qD(Q,"host","hostname","path","port")),{socket:X,servername:N}))}return X}X.destroy();let V=new Vb.default.Socket({writable:!1});return V.readable=!0,x.once("socket",(N)=>{s8("replaying proxy buffer for failed request"),zD.default(N.listenerCount("data")>0),N.push(w),N.push(null)}),V})}}Yx.default=Nb;function KD(x){x.resume()}function HD(x,Q){return Boolean(!Q&&x===80||Q&&x===443)}function VD(x){return typeof x==="string"?/^https:?$/i.test(x):!1}function qD(x,...Q){let W={},Y;for(Y in x)if(!Q.includes(Y))W[Y]=x[Y];return W}});var Fb=M((E5,Lb)=>{var ND=E5&&E5.__importDefault||function(x){return x&&x.__esModule?x:{default:x}},O5=ND(Ub());function I5(x){return new O5.default(x)}(function(x){x.HttpsProxyAgent=O5.default,x.prototype=O5.default.prototype})(I5||(I5={}));Lb.exports=I5});var Db=M((Cp,Mb)=>{var t8;Mb.exports=function(){if(!t8){try{t8=o8()("follow-redirects")}catch(x){}if(typeof t8!=="function")t8=function(){}}t8.apply(null,arguments)}});var Ib=M((Tp,l5)=>{var x6=K0("url"),e8=x6.URL,UD=K0("http"),LD=K0("https"),i5=K0("stream").Writable,C5=K0("assert"),cb=Db();(function(){var Q=typeof process<"u",W=typeof window<"u"&&typeof document<"u",Y=Jx(Error.captureStackTrace);if(!Q&&(W||!Y))console.warn("The follow-redirects package should be excluded from browser builds.")})();var T5=!1;try{C5(new e8(""))}catch(x){T5=x.code==="ERR_INVALID_URL"}var FD=["Authorization","Proxy-Authorization","Cookie"],MD=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],k5=["abort","aborted","connect","error","socket","timeout"],_5=Object.create(null);k5.forEach(function(x){_5[x]=function(Q,W,Y){this._redirectable.emit(x,Q,W,Y)}});var P5=Q6("ERR_INVALID_URL","Invalid URL",TypeError),R5=Q6("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),DD=Q6("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",R5),cD=Q6("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),jD=Q6("ERR_STREAM_WRITE_AFTER_END","write after end"),AD=i5.prototype.destroy||Ab;function w1(x,Q){if(i5.call(this),this._sanitizeOptions(x),this._options=x,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],Q)this.on("response",Q);var W=this;this._onNativeResponse=function(Y){try{W._processResponse(Y)}catch(X){W.emit("error",X instanceof R5?X:new R5({cause:X}))}},this._headerFilter=new RegExp("^(?:"+FD.concat(x.sensitiveHeaders).map(RD).join("|")+")$","i"),this._performRequest()}w1.prototype=Object.create(i5.prototype);w1.prototype.abort=function(){p5(this._currentRequest),this._currentRequest.abort(),this.emit("abort")};w1.prototype.destroy=function(x){return p5(this._currentRequest,x),AD.call(this,x),this};w1.prototype.write=function(x,Q,W){if(this._ending)throw new jD;if(!Xx(x)&&!SD(x))throw TypeError("data should be a string, Buffer or Uint8Array");if(Jx(Q))W=Q,Q=null;if(x.length===0){if(W)W();return}if(this._requestBodyLength+x.length<=this._options.maxBodyLength)this._requestBodyLength+=x.length,this._requestBodyBuffers.push({data:x,encoding:Q}),this._currentRequest.write(x,Q,W);else this.emit("error",new cD),this.abort()};w1.prototype.end=function(x,Q,W){if(Jx(x))W=x,x=Q=null;else if(Jx(Q))W=Q,Q=null;if(!x)this._ended=this._ending=!0,this._currentRequest.end(null,null,W);else{var Y=this,X=this._currentRequest;this.write(x,Q,function(){Y._ended=!0,X.end(null,null,W)}),this._ending=!0}};w1.prototype.setHeader=function(x,Q){this._options.headers[x]=Q,this._currentRequest.setHeader(x,Q)};w1.prototype.removeHeader=function(x){delete this._options.headers[x],this._currentRequest.removeHeader(x)};w1.prototype.setTimeout=function(x,Q){var W=this;function Y(G){G.setTimeout(x),G.removeListener("timeout",G.destroy),G.addListener("timeout",G.destroy)}function X(G){if(W._timeout)clearTimeout(W._timeout);W._timeout=setTimeout(function(){W.emit("timeout"),J()},x),Y(G)}function J(){if(W._timeout)clearTimeout(W._timeout),W._timeout=null;if(W.removeListener("abort",J),W.removeListener("error",J),W.removeListener("response",J),W.removeListener("close",J),Q)W.removeListener("timeout",Q);if(!W.socket)W._currentRequest.removeListener("socket",X)}if(Q)this.on("timeout",Q);if(this.socket)X(this.socket);else this._currentRequest.once("socket",X);return this.on("socket",Y),this.on("abort",J),this.on("error",J),this.on("response",J),this.on("close",J),this};["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(x){w1.prototype[x]=function(Q,W){return this._currentRequest[x](Q,W)}});["aborted","connection","socket"].forEach(function(x){Object.defineProperty(w1.prototype,x,{get:function(){return this._currentRequest[x]}})});w1.prototype._sanitizeOptions=function(x){if(!x.headers)x.headers={};if(!ED(x.sensitiveHeaders))x.sensitiveHeaders=[];if(x.host){if(!x.hostname)x.hostname=x.host;delete x.host}if(!x.pathname&&x.path){var Q=x.path.indexOf("?");if(Q<0)x.pathname=x.path;else x.pathname=x.path.substring(0,Q),x.search=x.path.substring(Q)}};w1.prototype._performRequest=function(){var x=this._options.protocol,Q=this._options.nativeProtocols[x];if(!Q)throw TypeError("Unsupported protocol "+x);if(this._options.agents){var W=x.slice(0,-1);this._options.agent=this._options.agents[W]}var Y=this._currentRequest=Q.request(this._options,this._onNativeResponse);Y._redirectable=this;for(var X of k5)Y.on(X,_5[X]);if(this._currentUrl=/^\//.test(this._options.path)?x6.format(this._options):this._options.path,this._isRedirect){var J=0,G=this,$=this._requestBodyBuffers;(function b(z){if(Y===G._currentRequest){if(z)G.emit("error",z);else if(J<$.length){var v=$[J++];if(!Y.finished)Y.write(v.data,v.encoding,b)}else if(G._ended)Y.end()}})()}};w1.prototype._processResponse=function(x){var Q=x.statusCode;if(this._options.trackRedirects)this._redirects.push({url:this._currentUrl,headers:x.headers,statusCode:Q});var W=x.headers.location;if(!W||this._options.followRedirects===!1||Q<300||Q>=400){x.responseUrl=this._currentUrl,x.redirects=this._redirects,this.emit("response",x),this._requestBodyBuffers=[];return}if(p5(this._currentRequest),x.destroy(),++this._redirectCount>this._options.maxRedirects)throw new DD;var Y,X=this._options.beforeRedirect;if(X)Y=Object.assign({Host:x.req.getHeader("host")},this._options.headers);var J=this._options.method;if((Q===301||Q===302)&&this._options.method==="POST"||Q===303&&!/^(?:GET|HEAD)$/.test(this._options.method))this._options.method="GET",this._requestBodyBuffers=[],S5(/^content-/i,this._options.headers);var G=S5(/^host$/i,this._options.headers),$=u5(this._currentUrl),b=G||$.host,z=/^\w+:/.test(W)?this._currentUrl:x6.format(Object.assign($,{host:b})),v=OD(W,z);if(cb("redirecting to",v.href),this._isRedirect=!0,Z5(v,this._options),v.protocol!==$.protocol&&v.protocol!=="https:"||v.host!==b&&!ID(v.host,b))S5(this._headerFilter,this._options.headers);if(Jx(X)){var B={headers:x.headers,statusCode:Q},K={url:z,method:J,headers:Y};X(this._options,B,K),this._sanitizeOptions(this._options)}this._performRequest()};function jb(x){var Q={maxRedirects:21,maxBodyLength:10485760},W={};return Object.keys(x).forEach(function(Y){var X=Y+":",J=W[X]=x[Y],G=Q[Y]=Object.create(J);function $(z,v,B){if(PD(z))z=Z5(z);else if(Xx(z))z=Z5(u5(z));else B=v,v=Ob(z),z={protocol:X};if(Jx(v))B=v,v=null;if(v=Object.assign({maxRedirects:Q.maxRedirects,maxBodyLength:Q.maxBodyLength},z,v),v.nativeProtocols=W,!Xx(v.host)&&!Xx(v.hostname))v.hostname="::1";return C5.equal(v.protocol,X,"protocol mismatch"),cb("options",v),new w1(v,B)}function b(z,v,B){var K=G.request(z,v,B);return K.end(),K}Object.defineProperties(G,{request:{value:$,configurable:!0,enumerable:!0,writable:!0},get:{value:b,configurable:!0,enumerable:!0,writable:!0}})}),Q}function Ab(){}function u5(x){var Q;if(T5)Q=new e8(x);else if(Q=Ob(x6.parse(x)),!Xx(Q.protocol))throw new P5({input:x});return Q}function OD(x,Q){return T5?new e8(x,Q):u5(x6.resolve(Q,x))}function Ob(x){if(/^\[/.test(x.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(x.hostname))throw new P5({input:x.href||x});if(/^\[/.test(x.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(x.host))throw new P5({input:x.href||x});return x}function Z5(x,Q){var W=Q||{};for(var Y of MD)W[Y]=x[Y];if(W.hostname.startsWith("["))W.hostname=W.hostname.slice(1,-1);if(W.port!=="")W.port=Number(W.port);return W.path=W.search?W.pathname+W.search:W.pathname,W}function S5(x,Q){var W;for(var Y in Q)if(x.test(Y))W=Q[Y],delete Q[Y];return W===null||typeof W>"u"?void 0:String(W).trim()}function Q6(x,Q,W){function Y(X){if(Jx(Error.captureStackTrace))Error.captureStackTrace(this,this.constructor);Object.assign(this,X||{}),this.code=x,this.message=this.cause?Q+": "+this.cause.message:Q}return Y.prototype=new(W||Error),Object.defineProperties(Y.prototype,{constructor:{value:Y,enumerable:!1},name:{value:"Error ["+x+"]",enumerable:!1}}),Y}function p5(x,Q){for(var W of k5)x.removeListener(W,_5[W]);x.on("error",Ab),x.destroy(Q)}function ID(x,Q){C5(Xx(x)&&Xx(Q));var W=x.length-Q.length-1;return W>0&&x[W]==="."&&x.endsWith(Q)}function ED(x){return x instanceof Array}function Xx(x){return typeof x==="string"||x instanceof String}function Jx(x){return typeof x==="function"}function SD(x){return typeof x==="object"&&"length"in x}function PD(x){return e8&&x instanceof e8}function RD(x){return x.replace(/[\]\\/()*+?.$]/g,"\\$&")}l5.exports=jb({http:UD,https:LD});l5.exports.wrap=jb});var l6=M((Vw)=>{Object.defineProperty(Vw,"__esModule",{value:!0});Vw.regexpCode=Vw.getEsmExportName=Vw.getProperty=Vw.safeStringify=Vw.stringify=Vw.strConcat=Vw.addCodeArg=Vw.str=Vw._=Vw.nil=Vw._Code=Vw.Name=Vw.IDENTIFIER=Vw._CodeOrName=void 0;class g7{}Vw._CodeOrName=g7;Vw.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class V8 extends g7{constructor(x){super();if(!Vw.IDENTIFIER.test(x))throw Error("CodeGen: name must be a valid identifier");this.str=x}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}Vw.Name=V8;class a1 extends g7{constructor(x){super();this._items=typeof x==="string"?[x]:x}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let x=this._items[0];return x===""||x==='""'}get str(){var x;return(x=this._str)!==null&&x!==void 0?x:this._str=this._items.reduce((Q,W)=>`${Q}${W}`,"")}get names(){var x;return(x=this._names)!==null&&x!==void 0?x:this._names=this._items.reduce((Q,W)=>{if(W instanceof V8)Q[W.str]=(Q[W.str]||0)+1;return Q},{})}}Vw._Code=a1;Vw.nil=new a1("");function Kw(x,...Q){let W=[x[0]],Y=0;while(Y<Q.length)uY(W,Q[Y]),W.push(x[++Y]);return new a1(W)}Vw._=Kw;var _Y=new a1("+");function Hw(x,...Q){let W=[p6(x[0])],Y=0;while(Y<Q.length)W.push(_Y),uY(W,Q[Y]),W.push(_Y,p6(x[++Y]));return pI(W),new a1(W)}Vw.str=Hw;function uY(x,Q){if(Q instanceof a1)x.push(...Q._items);else if(Q instanceof V8)x.push(Q);else x.push(mI(Q))}Vw.addCodeArg=uY;function pI(x){let Q=1;while(Q<x.length-1){if(x[Q]===_Y){let W=lI(x[Q-1],x[Q+1]);if(W!==void 0){x.splice(Q-1,3,W);continue}x[Q++]="+"}Q++}}function lI(x,Q){if(Q==='""')return x;if(x==='""')return Q;if(typeof x=="string"){if(Q instanceof V8||x[x.length-1]!=='"')return;if(typeof Q!="string")return`${x.slice(0,-1)}${Q}"`;if(Q[0]==='"')return x.slice(0,-1)+Q.slice(1);return}if(typeof Q=="string"&&Q[0]==='"'&&!(x instanceof V8))return`"${x}${Q.slice(1)}`;return}function nI(x,Q){return Q.emptyStr()?x:x.emptyStr()?Q:Hw`${x}${Q}`}Vw.strConcat=nI;function mI(x){return typeof x=="number"||typeof x=="boolean"||x===null?x:p6(Array.isArray(x)?x.join(","):x)}function fI(x){return new a1(p6(x))}Vw.stringify=fI;function p6(x){return JSON.stringify(x).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}Vw.safeStringify=p6;function yI(x){return typeof x=="string"&&Vw.IDENTIFIER.test(x)?new a1(`.${x}`):Kw`[${x}]`}Vw.getProperty=yI;function gI(x){if(typeof x=="string"&&Vw.IDENTIFIER.test(x))return new a1(`${x}`);throw Error(`CodeGen: invalid export name: ${x}, use explicit $id name mapping`)}Vw.getEsmExportName=gI;function hI(x){return new a1(x.toString())}Vw.regexpCode=hI});var mY=M((Lw)=>{Object.defineProperty(Lw,"__esModule",{value:!0});Lw.ValueScope=Lw.ValueScopeName=Lw.Scope=Lw.varKinds=Lw.UsedValueState=void 0;var V1=l6();class Nw extends Error{constructor(x){super(`CodeGen: "code" for ${x} not defined`);this.value=x.value}}var o7;(function(x){x[x.Started=0]="Started",x[x.Completed=1]="Completed"})(o7||(Lw.UsedValueState=o7={}));Lw.varKinds={const:new V1.Name("const"),let:new V1.Name("let"),var:new V1.Name("var")};class lY{constructor({prefixes:x,parent:Q}={}){this._names={},this._prefixes=x,this._parent=Q}toName(x){return x instanceof V1.Name?x:this.name(x)}name(x){return new V1.Name(this._newName(x))}_newName(x){let Q=this._names[x]||this._nameGroup(x);return`${x}${Q.index++}`}_nameGroup(x){var Q,W;if(((W=(Q=this._parent)===null||Q===void 0?void 0:Q._prefixes)===null||W===void 0?void 0:W.has(x))||this._prefixes&&!this._prefixes.has(x))throw Error(`CodeGen: prefix "${x}" is not allowed in this scope`);return this._names[x]={prefix:x,index:0}}}Lw.Scope=lY;class nY extends V1.Name{constructor(x,Q){super(Q);this.prefix=x}setValue(x,{property:Q,itemIndex:W}){this.value=x,this.scopePath=V1._`.${new V1.Name(Q)}[${W}]`}}Lw.ValueScopeName=nY;var JE=V1._`\n`;class Uw extends lY{constructor(x){super(x);this._values={},this._scope=x.scope,this.opts={...x,_n:x.lines?JE:V1.nil}}get(){return this._scope}name(x){return new nY(x,this._newName(x))}value(x,Q){var W;if(Q.ref===void 0)throw Error("CodeGen: ref must be passed in value");let Y=this.toName(x),{prefix:X}=Y,J=(W=Q.key)!==null&&W!==void 0?W:Q.ref,G=this._values[X];if(G){let z=G.get(J);if(z)return z}else G=this._values[X]=new Map;G.set(J,Y);let $=this._scope[X]||(this._scope[X]=[]),b=$.length;return $[b]=Q.ref,Y.setValue(Q,{property:X,itemIndex:b}),Y}getValue(x,Q){let W=this._values[x];if(!W)return;return W.get(Q)}scopeRefs(x,Q=this._values){return this._reduceValues(Q,(W)=>{if(W.scopePath===void 0)throw Error(`CodeGen: name "${W}" has no value`);return V1._`${x}${W.scopePath}`})}scopeCode(x=this._values,Q,W){return this._reduceValues(x,(Y)=>{if(Y.value===void 0)throw Error(`CodeGen: name "${Y}" has no value`);return Y.value.code},Q,W)}_reduceValues(x,Q,W={},Y){let X=V1.nil;for(let J in x){let G=x[J];if(!G)continue;let $=W[J]=W[J]||new Map;G.forEach((b)=>{if($.has(b))return;$.set(b,o7.Started);let z=Q(b);if(z){let v=this.opts.es5?Lw.varKinds.var:Lw.varKinds.const;X=V1._`${X}${v} ${b} = ${z};${this.opts._n}`}else if(z=Y===null||Y===void 0?void 0:Y(b))X=V1._`${X}${z}${this.opts._n}`;else throw new Nw(b);$.set(b,o7.Completed)})}return X}}Lw.ValueScope=Uw});var a=M((q1)=>{Object.defineProperty(q1,"__esModule",{value:!0});q1.or=q1.and=q1.not=q1.CodeGen=q1.operators=q1.varKinds=q1.ValueScopeName=q1.ValueScope=q1.Scope=q1.Name=q1.regexpCode=q1.stringify=q1.getProperty=q1.nil=q1.strConcat=q1.str=q1._=void 0;var X0=l6(),d1=mY(),u4=l6();Object.defineProperty(q1,"_",{enumerable:!0,get:function(){return u4._}});Object.defineProperty(q1,"str",{enumerable:!0,get:function(){return u4.str}});Object.defineProperty(q1,"strConcat",{enumerable:!0,get:function(){return u4.strConcat}});Object.defineProperty(q1,"nil",{enumerable:!0,get:function(){return u4.nil}});Object.defineProperty(q1,"getProperty",{enumerable:!0,get:function(){return u4.getProperty}});Object.defineProperty(q1,"stringify",{enumerable:!0,get:function(){return u4.stringify}});Object.defineProperty(q1,"regexpCode",{enumerable:!0,get:function(){return u4.regexpCode}});Object.defineProperty(q1,"Name",{enumerable:!0,get:function(){return u4.Name}});var e7=mY();Object.defineProperty(q1,"Scope",{enumerable:!0,get:function(){return e7.Scope}});Object.defineProperty(q1,"ValueScope",{enumerable:!0,get:function(){return e7.ValueScope}});Object.defineProperty(q1,"ValueScopeName",{enumerable:!0,get:function(){return e7.ValueScopeName}});Object.defineProperty(q1,"varKinds",{enumerable:!0,get:function(){return e7.varKinds}});q1.operators={GT:new X0._Code(">"),GTE:new X0._Code(">="),LT:new X0._Code("<"),LTE:new X0._Code("<="),EQ:new X0._Code("==="),NEQ:new X0._Code("!=="),NOT:new X0._Code("!"),OR:new X0._Code("||"),AND:new X0._Code("&&"),ADD:new X0._Code("+")};class p4{optimizeNodes(){return this}optimizeNames(x,Q){return this}}class Mw extends p4{constructor(x,Q,W){super();this.varKind=x,this.name=Q,this.rhs=W}render({es5:x,_n:Q}){let W=x?d1.varKinds.var:this.varKind,Y=this.rhs===void 0?"":` = ${this.rhs}`;return`${W} ${this.name}${Y};`+Q}optimizeNames(x,Q){if(!x[this.name.str])return;if(this.rhs)this.rhs=N8(this.rhs,x,Q);return this}get names(){return this.rhs instanceof X0._CodeOrName?this.rhs.names:{}}}class gY extends p4{constructor(x,Q,W){super();this.lhs=x,this.rhs=Q,this.sideEffects=W}render({_n:x}){return`${this.lhs} = ${this.rhs};`+x}optimizeNames(x,Q){if(this.lhs instanceof X0.Name&&!x[this.lhs.str]&&!this.sideEffects)return;return this.rhs=N8(this.rhs,x,Q),this}get names(){let x=this.lhs instanceof X0.Name?{}:{...this.lhs.names};return t7(x,this.rhs)}}class Dw extends gY{constructor(x,Q,W,Y){super(x,W,Y);this.op=Q}render({_n:x}){return`${this.lhs} ${this.op}= ${this.rhs};`+x}}class cw extends p4{constructor(x){super();this.label=x,this.names={}}render({_n:x}){return`${this.label}:`+x}}class jw extends p4{constructor(x){super();this.label=x,this.names={}}render({_n:x}){return`break${this.label?` ${this.label}`:""};`+x}}class Aw extends p4{constructor(x){super();this.error=x}render({_n:x}){return`throw ${this.error};`+x}get names(){return this.error.names}}class Ow extends p4{constructor(x){super();this.code=x}render({_n:x}){return`${this.code};`+x}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(x,Q){return this.code=N8(this.code,x,Q),this}get names(){return this.code instanceof X0._CodeOrName?this.code.names:{}}}class x3 extends p4{constructor(x=[]){super();this.nodes=x}render(x){return this.nodes.reduce((Q,W)=>Q+W.render(x),"")}optimizeNodes(){let{nodes:x}=this,Q=x.length;while(Q--){let W=x[Q].optimizeNodes();if(Array.isArray(W))x.splice(Q,1,...W);else if(W)x[Q]=W;else x.splice(Q,1)}return x.length>0?this:void 0}optimizeNames(x,Q){let{nodes:W}=this,Y=W.length;while(Y--){let X=W[Y];if(X.optimizeNames(x,Q))continue;zE(x,X.names),W.splice(Y,1)}return W.length>0?this:void 0}get names(){return this.nodes.reduce((x,Q)=>Lx(x,Q.names),{})}}class l4 extends x3{render(x){return"{"+x._n+super.render(x)+"}"+x._n}}class Iw extends x3{}class n6 extends l4{}n6.kind="else";class H4 extends l4{constructor(x,Q){super(Q);this.condition=x}render(x){let Q=`if(${this.condition})`+super.render(x);if(this.else)Q+="else "+this.else.render(x);return Q}optimizeNodes(){super.optimizeNodes();let x=this.condition;if(x===!0)return this.nodes;let Q=this.else;if(Q){let W=Q.optimizeNodes();Q=this.else=Array.isArray(W)?new n6(W):W}if(Q){if(x===!1)return Q instanceof H4?Q:Q.nodes;if(this.nodes.length)return this;return new H4(Zw(x),Q instanceof H4?[Q]:Q.nodes)}if(x===!1||!this.nodes.length)return;return this}optimizeNames(x,Q){var W;if(this.else=(W=this.else)===null||W===void 0?void 0:W.optimizeNames(x,Q),!(super.optimizeNames(x,Q)||this.else))return;return this.condition=N8(this.condition,x,Q),this}get names(){let x=super.names;if(t7(x,this.condition),this.else)Lx(x,this.else.names);return x}}H4.kind="if";class q8 extends l4{}q8.kind="for";class Ew extends q8{constructor(x){super();this.iteration=x}render(x){return`for(${this.iteration})`+super.render(x)}optimizeNames(x,Q){if(!super.optimizeNames(x,Q))return;return this.iteration=N8(this.iteration,x,Q),this}get names(){return Lx(super.names,this.iteration.names)}}class Sw extends q8{constructor(x,Q,W,Y){super();this.varKind=x,this.name=Q,this.from=W,this.to=Y}render(x){let Q=x.es5?d1.varKinds.var:this.varKind,{name:W,from:Y,to:X}=this;return`for(${Q} ${W}=${Y}; ${W}<${X}; ${W}++)`+super.render(x)}get names(){let x=t7(super.names,this.from);return t7(x,this.to)}}class fY extends q8{constructor(x,Q,W,Y){super();this.loop=x,this.varKind=Q,this.name=W,this.iterable=Y}render(x){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(x)}optimizeNames(x,Q){if(!super.optimizeNames(x,Q))return;return this.iterable=N8(this.iterable,x,Q),this}get names(){return Lx(super.names,this.iterable.names)}}class a7 extends l4{constructor(x,Q,W){super();this.name=x,this.args=Q,this.async=W}render(x){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(x)}}a7.kind="func";class d7 extends x3{render(x){return"return "+super.render(x)}}d7.kind="return";class Pw extends l4{render(x){let Q="try"+super.render(x);if(this.catch)Q+=this.catch.render(x);if(this.finally)Q+=this.finally.render(x);return Q}optimizeNodes(){var x,Q;return super.optimizeNodes(),(x=this.catch)===null||x===void 0||x.optimizeNodes(),(Q=this.finally)===null||Q===void 0||Q.optimizeNodes(),this}optimizeNames(x,Q){var W,Y;return super.optimizeNames(x,Q),(W=this.catch)===null||W===void 0||W.optimizeNames(x,Q),(Y=this.finally)===null||Y===void 0||Y.optimizeNames(x,Q),this}get names(){let x=super.names;if(this.catch)Lx(x,this.catch.names);if(this.finally)Lx(x,this.finally.names);return x}}class r7 extends l4{constructor(x){super();this.error=x}render(x){return`catch(${this.error})`+super.render(x)}}r7.kind="catch";class s7 extends l4{render(x){return"finally"+super.render(x)}}s7.kind="finally";class Rw{constructor(x,Q={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...Q,_n:Q.lines?`
20
+ `:""},this._extScope=x,this._scope=new d1.Scope({parent:x}),this._nodes=[new Iw]}toString(){return this._root.render(this.opts)}name(x){return this._scope.name(x)}scopeName(x){return this._extScope.name(x)}scopeValue(x,Q){let W=this._extScope.value(x,Q);return(this._values[W.prefix]||(this._values[W.prefix]=new Set)).add(W),W}getScopeValue(x,Q){return this._extScope.getValue(x,Q)}scopeRefs(x){return this._extScope.scopeRefs(x,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(x,Q,W,Y){let X=this._scope.toName(Q);if(W!==void 0&&Y)this._constants[X.str]=W;return this._leafNode(new Mw(x,X,W)),X}const(x,Q,W){return this._def(d1.varKinds.const,x,Q,W)}let(x,Q,W){return this._def(d1.varKinds.let,x,Q,W)}var(x,Q,W){return this._def(d1.varKinds.var,x,Q,W)}assign(x,Q,W){return this._leafNode(new gY(x,Q,W))}add(x,Q){return this._leafNode(new Dw(x,q1.operators.ADD,Q))}code(x){if(typeof x=="function")x();else if(x!==X0.nil)this._leafNode(new Ow(x));return this}object(...x){let Q=["{"];for(let[W,Y]of x){if(Q.length>1)Q.push(",");if(Q.push(W),W!==Y||this.opts.es5)Q.push(":"),(0,X0.addCodeArg)(Q,Y)}return Q.push("}"),new X0._Code(Q)}if(x,Q,W){if(this._blockNode(new H4(x)),Q&&W)this.code(Q).else().code(W).endIf();else if(Q)this.code(Q).endIf();else if(W)throw Error('CodeGen: "else" body without "then" body');return this}elseIf(x){return this._elseNode(new H4(x))}else(){return this._elseNode(new n6)}endIf(){return this._endBlockNode(H4,n6)}_for(x,Q){if(this._blockNode(x),Q)this.code(Q).endFor();return this}for(x,Q){return this._for(new Ew(x),Q)}forRange(x,Q,W,Y,X=this.opts.es5?d1.varKinds.var:d1.varKinds.let){let J=this._scope.toName(x);return this._for(new Sw(X,J,Q,W),()=>Y(J))}forOf(x,Q,W,Y=d1.varKinds.const){let X=this._scope.toName(x);if(this.opts.es5){let J=Q instanceof X0.Name?Q:this.var("_arr",Q);return this.forRange("_i",0,X0._`${J}.length`,(G)=>{this.var(X,X0._`${J}[${G}]`),W(X)})}return this._for(new fY("of",Y,X,Q),()=>W(X))}forIn(x,Q,W,Y=this.opts.es5?d1.varKinds.var:d1.varKinds.const){if(this.opts.ownProperties)return this.forOf(x,X0._`Object.keys(${Q})`,W);let X=this._scope.toName(x);return this._for(new fY("in",Y,X,Q),()=>W(X))}endFor(){return this._endBlockNode(q8)}label(x){return this._leafNode(new cw(x))}break(x){return this._leafNode(new jw(x))}return(x){let Q=new d7;if(this._blockNode(Q),this.code(x),Q.nodes.length!==1)throw Error('CodeGen: "return" should have one node');return this._endBlockNode(d7)}try(x,Q,W){if(!Q&&!W)throw Error('CodeGen: "try" without "catch" and "finally"');let Y=new Pw;if(this._blockNode(Y),this.code(x),Q){let X=this.name("e");this._currNode=Y.catch=new r7(X),Q(X)}if(W)this._currNode=Y.finally=new s7,this.code(W);return this._endBlockNode(r7,s7)}throw(x){return this._leafNode(new Aw(x))}block(x,Q){if(this._blockStarts.push(this._nodes.length),x)this.code(x).endBlock(Q);return this}endBlock(x){let Q=this._blockStarts.pop();if(Q===void 0)throw Error("CodeGen: not in self-balancing block");let W=this._nodes.length-Q;if(W<0||x!==void 0&&W!==x)throw Error(`CodeGen: wrong number of nodes: ${W} vs ${x} expected`);return this._nodes.length=Q,this}func(x,Q=X0.nil,W,Y){if(this._blockNode(new a7(x,Q,W)),Y)this.code(Y).endFunc();return this}endFunc(){return this._endBlockNode(a7)}optimize(x=1){while(x-- >0)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(x){return this._currNode.nodes.push(x),this}_blockNode(x){this._currNode.nodes.push(x),this._nodes.push(x)}_endBlockNode(x,Q){let W=this._currNode;if(W instanceof x||Q&&W instanceof Q)return this._nodes.pop(),this;throw Error(`CodeGen: not in block "${Q?`${x.kind}/${Q.kind}`:x.kind}"`)}_elseNode(x){let Q=this._currNode;if(!(Q instanceof H4))throw Error('CodeGen: "else" without "if"');return this._currNode=Q.else=x,this}get _root(){return this._nodes[0]}get _currNode(){let x=this._nodes;return x[x.length-1]}set _currNode(x){let Q=this._nodes;Q[Q.length-1]=x}}q1.CodeGen=Rw;function Lx(x,Q){for(let W in Q)x[W]=(x[W]||0)+(Q[W]||0);return x}function t7(x,Q){return Q instanceof X0._CodeOrName?Lx(x,Q.names):x}function N8(x,Q,W){if(x instanceof X0.Name)return Y(x);if(!X(x))return x;return new X0._Code(x._items.reduce((J,G)=>{if(G instanceof X0.Name)G=Y(G);if(G instanceof X0._Code)J.push(...G._items);else J.push(G);return J},[]));function Y(J){let G=W[J.str];if(G===void 0||Q[J.str]!==1)return J;return delete Q[J.str],G}function X(J){return J instanceof X0._Code&&J._items.some((G)=>G instanceof X0.Name&&Q[G.str]===1&&W[G.str]!==void 0)}}function zE(x,Q){for(let W in Q)x[W]=(x[W]||0)-(Q[W]||0)}function Zw(x){return typeof x=="boolean"||typeof x=="number"||x===null?!x:X0._`!${yY(x)}`}q1.not=Zw;var vE=iw(q1.operators.AND);function BE(...x){return x.reduce(vE)}q1.and=BE;var wE=iw(q1.operators.OR);function KE(...x){return x.reduce(wE)}q1.or=KE;function iw(x){return(Q,W)=>Q===X0.nil?W:W===X0.nil?Q:X0._`${yY(Q)} ${x} ${yY(W)}`}function yY(x){return x instanceof X0.Name?x:X0._`(${x})`}});var G0=M((mw)=>{Object.defineProperty(mw,"__esModule",{value:!0});mw.checkStrictMode=mw.getErrorPath=mw.Type=mw.useFunc=mw.setEvaluated=mw.evaluatedPropsToName=mw.mergeEvaluated=mw.eachItem=mw.unescapeJsonPointer=mw.escapeJsonPointer=mw.escapeFragment=mw.unescapeFragment=mw.schemaRefOrVal=mw.schemaHasRulesButRef=mw.schemaHasRules=mw.checkUnknownRules=mw.alwaysValidSchema=mw.toHash=void 0;var H0=a(),NE=l6();function UE(x){let Q={};for(let W of x)Q[W]=!0;return Q}mw.toHash=UE;function LE(x,Q){if(typeof Q=="boolean")return Q;if(Object.keys(Q).length===0)return!0;return _w(x,Q),!uw(Q,x.self.RULES.all)}mw.alwaysValidSchema=LE;function _w(x,Q=x.schema){let{opts:W,self:Y}=x;if(!W.strictSchema)return;if(typeof Q==="boolean")return;let X=Y.RULES.keywords;for(let J in Q)if(!X[J])nw(x,`unknown keyword: "${J}"`)}mw.checkUnknownRules=_w;function uw(x,Q){if(typeof x=="boolean")return!x;for(let W in x)if(Q[W])return!0;return!1}mw.schemaHasRules=uw;function FE(x,Q){if(typeof x=="boolean")return!x;for(let W in x)if(W!=="$ref"&&Q.all[W])return!0;return!1}mw.schemaHasRulesButRef=FE;function ME({topSchemaRef:x,schemaPath:Q},W,Y,X){if(!X){if(typeof W=="number"||typeof W=="boolean")return W;if(typeof W=="string")return H0._`${W}`}return H0._`${x}${Q}${(0,H0.getProperty)(Y)}`}mw.schemaRefOrVal=ME;function DE(x){return pw(decodeURIComponent(x))}mw.unescapeFragment=DE;function cE(x){return encodeURIComponent(oY(x))}mw.escapeFragment=cE;function oY(x){if(typeof x=="number")return`${x}`;return x.replace(/~/g,"~0").replace(/\//g,"~1")}mw.escapeJsonPointer=oY;function pw(x){return x.replace(/~1/g,"/").replace(/~0/g,"~")}mw.unescapeJsonPointer=pw;function jE(x,Q){if(Array.isArray(x))for(let W of x)Q(W);else Q(x)}mw.eachItem=jE;function Tw({mergeNames:x,mergeToName:Q,mergeValues:W,resultToName:Y}){return(X,J,G,$)=>{let b=G===void 0?J:G instanceof H0.Name?(J instanceof H0.Name?x(X,J,G):Q(X,J,G),G):J instanceof H0.Name?(Q(X,G,J),J):W(J,G);return $===H0.Name&&!(b instanceof H0.Name)?Y(X,b):b}}mw.mergeEvaluated={props:Tw({mergeNames:(x,Q,W)=>x.if(H0._`${W} !== true && ${Q} !== undefined`,()=>{x.if(H0._`${Q} === true`,()=>x.assign(W,!0),()=>x.assign(W,H0._`${W} || {}`).code(H0._`Object.assign(${W}, ${Q})`))}),mergeToName:(x,Q,W)=>x.if(H0._`${W} !== true`,()=>{if(Q===!0)x.assign(W,!0);else x.assign(W,H0._`${W} || {}`),aY(x,W,Q)}),mergeValues:(x,Q)=>x===!0?!0:{...x,...Q},resultToName:lw}),items:Tw({mergeNames:(x,Q,W)=>x.if(H0._`${W} !== true && ${Q} !== undefined`,()=>x.assign(W,H0._`${Q} === true ? true : ${W} > ${Q} ? ${W} : ${Q}`)),mergeToName:(x,Q,W)=>x.if(H0._`${W} !== true`,()=>x.assign(W,Q===!0?!0:H0._`${W} > ${Q} ? ${W} : ${Q}`)),mergeValues:(x,Q)=>x===!0?!0:Math.max(x,Q),resultToName:(x,Q)=>x.var("items",Q)})};function lw(x,Q){if(Q===!0)return x.var("props",!0);let W=x.var("props",H0._`{}`);if(Q!==void 0)aY(x,W,Q);return W}mw.evaluatedPropsToName=lw;function aY(x,Q,W){Object.keys(W).forEach((Y)=>x.assign(H0._`${Q}${(0,H0.getProperty)(Y)}`,!0))}mw.setEvaluated=aY;var kw={};function AE(x,Q){return x.scopeValue("func",{ref:Q,code:kw[Q.code]||(kw[Q.code]=new NE._Code(Q.code))})}mw.useFunc=AE;var hY;(function(x){x[x.Num=0]="Num",x[x.Str=1]="Str"})(hY||(mw.Type=hY={}));function OE(x,Q,W){if(x instanceof H0.Name){let Y=Q===hY.Num;return W?Y?H0._`"[" + ${x} + "]"`:H0._`"['" + ${x} + "']"`:Y?H0._`"/" + ${x}`:H0._`"/" + ${x}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return W?(0,H0.getProperty)(x).toString():"/"+oY(x)}mw.getErrorPath=OE;function nw(x,Q,W=x.opts.strictSchema){if(!W)return;if(Q=`strict mode: ${Q}`,W===!0)throw Error(Q);x.self.logger.warn(Q)}mw.checkStrictMode=nw});var V4=M((yw)=>{Object.defineProperty(yw,"__esModule",{value:!0});var X1=a(),yE={data:new X1.Name("data"),valCxt:new X1.Name("valCxt"),instancePath:new X1.Name("instancePath"),parentData:new X1.Name("parentData"),parentDataProperty:new X1.Name("parentDataProperty"),rootData:new X1.Name("rootData"),dynamicAnchors:new X1.Name("dynamicAnchors"),vErrors:new X1.Name("vErrors"),errors:new X1.Name("errors"),this:new X1.Name("this"),self:new X1.Name("self"),scope:new X1.Name("scope"),json:new X1.Name("json"),jsonPos:new X1.Name("jsonPos"),jsonLen:new X1.Name("jsonLen"),jsonPart:new X1.Name("jsonPart")};yw.default=yE});var m6=M((aw)=>{Object.defineProperty(aw,"__esModule",{value:!0});aw.extendErrors=aw.resetErrorsCount=aw.reportExtraError=aw.reportError=aw.keyword$DataError=aw.keywordError=void 0;var $0=a(),W3=G0(),$1=V4();aw.keywordError={message:({keyword:x})=>$0.str`must pass "${x}" keyword validation`};aw.keyword$DataError={message:({keyword:x,schemaType:Q})=>Q?$0.str`"${x}" keyword must be ${Q} ($data)`:$0.str`"${x}" keyword is invalid ($data)`};function hE(x,Q=aw.keywordError,W,Y){let{it:X}=x,{gen:J,compositeRule:G,allErrors:$}=X,b=ow(x,Q,W);if(Y!==null&&Y!==void 0?Y:G||$)gw(J,b);else hw(X,$0._`[${b}]`)}aw.reportError=hE;function oE(x,Q=aw.keywordError,W){let{it:Y}=x,{gen:X,compositeRule:J,allErrors:G}=Y,$=ow(x,Q,W);if(gw(X,$),!(J||G))hw(Y,$1.default.vErrors)}aw.reportExtraError=oE;function aE(x,Q){x.assign($1.default.errors,Q),x.if($0._`${$1.default.vErrors} !== null`,()=>x.if(Q,()=>x.assign($0._`${$1.default.vErrors}.length`,Q),()=>x.assign($1.default.vErrors,null)))}aw.resetErrorsCount=aE;function dE({gen:x,keyword:Q,schemaValue:W,data:Y,errsCount:X,it:J}){if(X===void 0)throw Error("ajv implementation error");let G=x.name("err");x.forRange("i",X,$1.default.errors,($)=>{if(x.const(G,$0._`${$1.default.vErrors}[${$}]`),x.if($0._`${G}.instancePath === undefined`,()=>x.assign($0._`${G}.instancePath`,(0,$0.strConcat)($1.default.instancePath,J.errorPath))),x.assign($0._`${G}.schemaPath`,$0.str`${J.errSchemaPath}/${Q}`),J.opts.verbose)x.assign($0._`${G}.schema`,W),x.assign($0._`${G}.data`,Y)})}aw.extendErrors=dE;function gw(x,Q){let W=x.const("err",Q);x.if($0._`${$1.default.vErrors} === null`,()=>x.assign($1.default.vErrors,$0._`[${W}]`),$0._`${$1.default.vErrors}.push(${W})`),x.code($0._`${$1.default.errors}++`)}function hw(x,Q){let{gen:W,validateName:Y,schemaEnv:X}=x;if(X.$async)W.throw($0._`new ${x.ValidationError}(${Q})`);else W.assign($0._`${Y}.errors`,Q),W.return(!1)}var Fx={keyword:new $0.Name("keyword"),schemaPath:new $0.Name("schemaPath"),params:new $0.Name("params"),propertyName:new $0.Name("propertyName"),message:new $0.Name("message"),schema:new $0.Name("schema"),parentSchema:new $0.Name("parentSchema")};function ow(x,Q,W){let{createErrors:Y}=x.it;if(Y===!1)return $0._`{}`;return rE(x,Q,W)}function rE(x,Q,W={}){let{gen:Y,it:X}=x,J=[sE(X,W),tE(x,W)];return eE(x,Q,J),Y.object(...J)}function sE({errorPath:x},{instancePath:Q}){let W=Q?$0.str`${x}${(0,W3.getErrorPath)(Q,W3.Type.Str)}`:x;return[$1.default.instancePath,(0,$0.strConcat)($1.default.instancePath,W)]}function tE({keyword:x,it:{errSchemaPath:Q}},{schemaPath:W,parentSchema:Y}){let X=Y?Q:$0.str`${Q}/${x}`;if(W)X=$0.str`${X}${(0,W3.getErrorPath)(W,W3.Type.Str)}`;return[Fx.schemaPath,X]}function eE(x,{params:Q,message:W},Y){let{keyword:X,data:J,schemaValue:G,it:$}=x,{opts:b,propertyName:z,topSchemaRef:v,schemaPath:B}=$;if(Y.push([Fx.keyword,X],[Fx.params,typeof Q=="function"?Q(x):Q||$0._`{}`]),b.messages)Y.push([Fx.message,typeof W=="function"?W(x):W]);if(b.verbose)Y.push([Fx.schema,G],[Fx.parentSchema,$0._`${v}${B}`],[$1.default.data,J]);if(z)Y.push([Fx.propertyName,z])}});var ew=M((sw)=>{Object.defineProperty(sw,"__esModule",{value:!0});sw.boolOrEmptySchema=sw.topBoolOrEmptySchema=void 0;var XS=m6(),JS=a(),GS=V4(),$S={message:"boolean schema is false"};function bS(x){let{gen:Q,schema:W,validateName:Y}=x;if(W===!1)rw(x,!1);else if(typeof W=="object"&&W.$async===!0)Q.return(GS.default.data);else Q.assign(JS._`${Y}.errors`,null),Q.return(!0)}sw.topBoolOrEmptySchema=bS;function zS(x,Q){let{gen:W,schema:Y}=x;if(Y===!1)W.var(Q,!1),rw(x);else W.var(Q,!0)}sw.boolOrEmptySchema=zS;function rw(x,Q){let{gen:W,data:Y}=x,X={gen:W,keyword:"false schema",data:Y,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:x};(0,XS.reportError)(X,$S,void 0,Q)}});var rY=M((xK)=>{Object.defineProperty(xK,"__esModule",{value:!0});xK.getRules=xK.isJSONType=void 0;var BS=["string","number","integer","boolean","null","object","array"],wS=new Set(BS);function KS(x){return typeof x=="string"&&wS.has(x)}xK.isJSONType=KS;function HS(){let x={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...x,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},x.number,x.string,x.array,x.object],post:{rules:[]},all:{},keywords:{}}}xK.getRules=HS});var sY=M((XK)=>{Object.defineProperty(XK,"__esModule",{value:!0});XK.shouldUseRule=XK.shouldUseGroup=XK.schemaHasRulesForType=void 0;function qS({schema:x,self:Q},W){let Y=Q.RULES.types[W];return Y&&Y!==!0&&WK(x,Y)}XK.schemaHasRulesForType=qS;function WK(x,Q){return Q.rules.some((W)=>YK(x,W))}XK.shouldUseGroup=WK;function YK(x,Q){var W;return x[Q.keyword]!==void 0||((W=Q.definition.implements)===null||W===void 0?void 0:W.some((Y)=>x[Y]!==void 0))}XK.shouldUseRule=YK});var f6=M((zK)=>{Object.defineProperty(zK,"__esModule",{value:!0});zK.reportTypeError=zK.checkDataTypes=zK.checkDataType=zK.coerceAndCheckDataType=zK.getJSONTypes=zK.getSchemaTypes=zK.DataType=void 0;var LS=rY(),FS=sY(),MS=m6(),o=a(),GK=G0(),U8;(function(x){x[x.Correct=0]="Correct",x[x.Wrong=1]="Wrong"})(U8||(zK.DataType=U8={}));function DS(x){let Q=$K(x.type);if(Q.includes("null")){if(x.nullable===!1)throw Error("type: null contradicts nullable: false")}else{if(!Q.length&&x.nullable!==void 0)throw Error('"nullable" cannot be used without "type"');if(x.nullable===!0)Q.push("null")}return Q}zK.getSchemaTypes=DS;function $K(x){let Q=Array.isArray(x)?x:x?[x]:[];if(Q.every(LS.isJSONType))return Q;throw Error("type must be JSONType or JSONType[]: "+Q.join(","))}zK.getJSONTypes=$K;function cS(x,Q){let{gen:W,data:Y,opts:X}=x,J=jS(Q,X.coerceTypes),G=Q.length>0&&!(J.length===0&&Q.length===1&&(0,FS.schemaHasRulesForType)(x,Q[0]));if(G){let $=eY(Q,Y,X.strictNumbers,U8.Wrong);W.if($,()=>{if(J.length)AS(x,Q,J);else xX(x)})}return G}zK.coerceAndCheckDataType=cS;var bK=new Set(["string","number","integer","boolean","null"]);function jS(x,Q){return Q?x.filter((W)=>bK.has(W)||Q==="array"&&W==="array"):[]}function AS(x,Q,W){let{gen:Y,data:X,opts:J}=x,G=Y.let("dataType",o._`typeof ${X}`),$=Y.let("coerced",o._`undefined`);if(J.coerceTypes==="array")Y.if(o._`${G} == 'object' && Array.isArray(${X}) && ${X}.length == 1`,()=>Y.assign(X,o._`${X}[0]`).assign(G,o._`typeof ${X}`).if(eY(Q,X,J.strictNumbers),()=>Y.assign($,X)));Y.if(o._`${$} !== undefined`);for(let z of W)if(bK.has(z)||z==="array"&&J.coerceTypes==="array")b(z);Y.else(),xX(x),Y.endIf(),Y.if(o._`${$} !== undefined`,()=>{Y.assign(X,$),OS(x,$)});function b(z){switch(z){case"string":Y.elseIf(o._`${G} == "number" || ${G} == "boolean"`).assign($,o._`"" + ${X}`).elseIf(o._`${X} === null`).assign($,o._`""`);return;case"number":Y.elseIf(o._`${G} == "boolean" || ${X} === null
21
21
  || (${G} == "string" && ${X} && ${X} == +${X})`).assign($,o._`+${X}`);return;case"integer":Y.elseIf(o._`${G} === "boolean" || ${X} === null
22
22
  || (${G} === "string" && ${X} && ${X} == +${X} && !(${X} % 1))`).assign($,o._`+${X}`);return;case"boolean":Y.elseIf(o._`${X} === "false" || ${X} === 0 || ${X} === null`).assign($,!1).elseIf(o._`${X} === "true" || ${X} === 1`).assign($,!0);return;case"null":Y.elseIf(o._`${X} === "" || ${X} === 0 || ${X} === false`),Y.assign($,null);return;case"array":Y.elseIf(o._`${G} === "string" || ${G} === "number"
23
- || ${G} === "boolean" || ${X} === null`).assign($,o._`[${X}]`)}}}function MS({gen:x,parentData:Q,parentDataProperty:W},Y){x.if(o._`${Q} !== undefined`,()=>x.assign(o._`${Q}[${W}]`,Y))}function tY(x,Q,W,Y=L8.Correct){let X=Y===L8.Correct?o.operators.EQ:o.operators.NEQ,J;switch(x){case"null":return o._`${Q} ${X} null`;case"array":J=o._`Array.isArray(${Q})`;break;case"object":J=o._`${Q} && typeof ${Q} == "object" && !Array.isArray(${Q})`;break;case"integer":J=G(o._`!(${Q} % 1) && !isNaN(${Q})`);break;case"number":J=G();break;default:return o._`typeof ${Q} ${X} ${x}`}return Y===L8.Correct?J:(0,o.not)(J);function G($=o.nil){return(0,o.and)(o._`typeof ${Q} == "number"`,$,W?o._`isFinite(${Q})`:o.nil)}}GK.checkDataType=tY;function eY(x,Q,W,Y){if(x.length===1)return tY(x[0],Q,W,Y);let X,J=(0,YK.toHash)(x);if(J.array&&J.object){let G=o._`typeof ${Q} != "object"`;X=J.null?G:o._`!${Q} || ${G}`,delete J.null,delete J.array,delete J.object}else X=o.nil;if(J.number)delete J.integer;for(let G in J)X=(0,o.and)(X,tY(G,Q,W,Y));return X}GK.checkDataTypes=eY;var DS={message:({schema:x})=>`must be ${x}`,params:({schema:x,schemaValue:Q})=>typeof x=="string"?o._`{type: ${x}}`:o._`{type: ${Q}}`};function xX(x){let Q=cS(x);(0,qS.reportError)(Q,DS)}GK.reportTypeError=xX;function cS(x){let{gen:Q,data:W,schema:Y}=x,X=(0,YK.schemaRefOrVal)(x,Y,"type");return{gen:Q,keyword:"type",data:W,schema:Y.type,schemaCode:X,schemaValue:X,parentSchema:Y,params:{},it:x}}});var BK=M((zK)=>{Object.defineProperty(zK,"__esModule",{value:!0});zK.assignDefaults=void 0;var U8=a(),PS=G0();function RS(x,Q){let{properties:W,items:Y}=x.schema;if(Q==="object"&&W)for(let X in W)bK(x,X,W[X].default);else if(Q==="array"&&Array.isArray(Y))Y.forEach((X,J)=>bK(x,J,X.default))}zK.assignDefaults=RS;function bK(x,Q,W){let{gen:Y,compositeRule:X,data:J,opts:G}=x;if(W===void 0)return;let $=U8._`${J}${(0,U8.getProperty)(Q)}`;if(X){(0,PS.checkStrictMode)(x,`default is ignored for: ${$}`);return}let b=U8._`${$} === undefined`;if(G.useDefaults==="empty")b=U8._`${b} || ${$} === null || ${$} === ""`;Y.if(b,U8._`${$} = ${(0,U8.stringify)(W)}`)}});var C1=M((HK)=>{Object.defineProperty(HK,"__esModule",{value:!0});HK.validateUnion=HK.validateArray=HK.usePattern=HK.callValidateCode=HK.schemaProperties=HK.allSchemaProperties=HK.noPropertyInData=HK.propertyInData=HK.isOwnProperty=HK.hasPropFunc=HK.reportMissingProp=HK.checkMissingProp=HK.checkReportMissingProp=void 0;var M0=a(),QX=G0(),n4=V4(),ZS=G0();function iS(x,Q){let{gen:W,data:Y,it:X}=x;W.if(YX(W,Y,Q,X.opts.ownProperties),()=>{x.setParams({missingProperty:M0._`${Q}`},!0),x.error()})}HK.checkReportMissingProp=iS;function CS({gen:x,data:Q,it:{opts:W}},Y,X){return(0,M0.or)(...Y.map((J)=>(0,M0.and)(YX(x,Q,J,W.ownProperties),M0._`${X} = ${J}`)))}HK.checkMissingProp=CS;function TS(x,Q){x.setParams({missingProperty:Q},!0),x.error()}HK.reportMissingProp=TS;function wK(x){return x.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:M0._`Object.prototype.hasOwnProperty`})}HK.hasPropFunc=wK;function WX(x,Q,W){return M0._`${wK(x)}.call(${Q}, ${W})`}HK.isOwnProperty=WX;function kS(x,Q,W,Y){let X=M0._`${Q}${(0,M0.getProperty)(W)} !== undefined`;return Y?M0._`${X} && ${WX(x,Q,W)}`:X}HK.propertyInData=kS;function YX(x,Q,W,Y){let X=M0._`${Q}${(0,M0.getProperty)(W)} === undefined`;return Y?(0,M0.or)(X,(0,M0.not)(WX(x,Q,W))):X}HK.noPropertyInData=YX;function KK(x){return x?Object.keys(x).filter((Q)=>Q!=="__proto__"):[]}HK.allSchemaProperties=KK;function _S(x,Q){return KK(Q).filter((W)=>!(0,QX.alwaysValidSchema)(x,Q[W]))}HK.schemaProperties=_S;function uS({schemaCode:x,data:Q,it:{gen:W,topSchemaRef:Y,schemaPath:X,errorPath:J},it:G},$,b,z){let v=z?M0._`${x}, ${Q}, ${Y}${X}`:Q,B=[[n4.default.instancePath,(0,M0.strConcat)(n4.default.instancePath,J)],[n4.default.parentData,G.parentData],[n4.default.parentDataProperty,G.parentDataProperty],[n4.default.rootData,n4.default.rootData]];if(G.opts.dynamicRef)B.push([n4.default.dynamicAnchors,n4.default.dynamicAnchors]);let K=M0._`${v}, ${W.object(...B)}`;return b!==M0.nil?M0._`${$}.call(${b}, ${K})`:M0._`${$}(${K})`}HK.callValidateCode=uS;var pS=M0._`new RegExp`;function lS({gen:x,it:{opts:Q}},W){let Y=Q.unicodeRegExp?"u":"",{regExp:X}=Q.code,J=X(W,Y);return x.scopeValue("pattern",{key:J.toString(),ref:J,code:M0._`${X.code==="new RegExp"?pS:(0,ZS.useFunc)(x,X)}(${W}, ${Y})`})}HK.usePattern=lS;function nS(x){let{gen:Q,data:W,keyword:Y,it:X}=x,J=Q.name("valid");if(X.allErrors){let $=Q.let("valid",!0);return G(()=>Q.assign($,!1)),$}return Q.var(J,!0),G(()=>Q.break()),J;function G($){let b=Q.const("len",M0._`${W}.length`);Q.forRange("i",0,b,(z)=>{x.subschema({keyword:Y,dataProp:z,dataPropType:QX.Type.Num},J),Q.if((0,M0.not)(J),$)})}}HK.validateArray=nS;function mS(x){let{gen:Q,schema:W,keyword:Y,it:X}=x;if(!Array.isArray(W))throw Error("ajv implementation error");if(W.some((b)=>(0,QX.alwaysValidSchema)(X,b))&&!X.opts.unevaluated)return;let G=Q.let("valid",!1),$=Q.name("_valid");Q.block(()=>W.forEach((b,z)=>{let v=x.subschema({keyword:Y,schemaProp:z,compositeRule:!0},$);if(Q.assign(G,M0._`${G} || ${$}`),!x.mergeValidEvaluated(v,$))Q.if((0,M0.not)(G))})),x.result(G,()=>x.reset(),()=>x.error(!0))}HK.validateUnion=mS});var FK=M((LK)=>{Object.defineProperty(LK,"__esModule",{value:!0});LK.validateKeywordUsage=LK.validSchemaType=LK.funcKeywordCode=LK.macroKeywordCode=void 0;var b1=a(),Mx=V4(),QP=C1(),WP=m6();function YP(x,Q){let{gen:W,keyword:Y,schema:X,parentSchema:J,it:G}=x,$=Q.macro.call(G.self,X,J,G),b=NK(W,Y,$);if(G.opts.validateSchema!==!1)G.self.validateSchema($,!0);let z=W.name("valid");x.subschema({schema:$,schemaPath:b1.nil,errSchemaPath:`${G.errSchemaPath}/${Y}`,topSchemaRef:b,compositeRule:!0},z),x.pass(z,()=>x.error(!0))}LK.macroKeywordCode=YP;function XP(x,Q){var W;let{gen:Y,keyword:X,schema:J,parentSchema:G,$data:$,it:b}=x;GP(b,Q);let z=!$&&Q.compile?Q.compile.call(b.self,J,G,b):Q.validate,v=NK(Y,X,z),B=Y.let("valid");x.block$data(B,K),x.ok((W=Q.valid)!==null&&W!==void 0?W:B);function K(){if(Q.errors===!1){if(N(),Q.modifying)qK(x);L(()=>x.error())}else{let q=Q.async?w():V();if(Q.modifying)qK(x);L(()=>JP(x,q))}}function w(){let q=Y.let("ruleErrs",null);return Y.try(()=>N(b1._`await `),(U)=>Y.assign(B,!1).if(b1._`${U} instanceof ${b.ValidationError}`,()=>Y.assign(q,b1._`${U}.errors`),()=>Y.throw(U))),q}function V(){let q=b1._`${v}.errors`;return Y.assign(q,null),N(b1.nil),q}function N(q=Q.async?b1._`await `:b1.nil){let U=b.opts.passContext?Mx.default.this:Mx.default.self,c=!(("compile"in Q)&&!$||Q.schema===!1);Y.assign(B,b1._`${q}${(0,QP.callValidateCode)(x,v,U,c)}`,Q.modifying)}function L(q){var U;Y.if((0,b1.not)((U=Q.valid)!==null&&U!==void 0?U:B),q)}}LK.funcKeywordCode=XP;function qK(x){let{gen:Q,data:W,it:Y}=x;Q.if(Y.parentData,()=>Q.assign(W,b1._`${Y.parentData}[${Y.parentDataProperty}]`))}function JP(x,Q){let{gen:W}=x;W.if(b1._`Array.isArray(${Q})`,()=>{W.assign(Mx.default.vErrors,b1._`${Mx.default.vErrors} === null ? ${Q} : ${Mx.default.vErrors}.concat(${Q})`).assign(Mx.default.errors,b1._`${Mx.default.vErrors}.length`),(0,WP.extendErrors)(x)},()=>x.error())}function GP({schemaEnv:x},Q){if(Q.async&&!x.$async)throw Error("async keyword in sync schema")}function NK(x,Q,W){if(W===void 0)throw Error(`keyword "${Q}" failed to compile`);return x.scopeValue("keyword",typeof W=="function"?{ref:W}:{ref:W,code:(0,b1.stringify)(W)})}function $P(x,Q,W=!1){return!Q.length||Q.some((Y)=>Y==="array"?Array.isArray(x):Y==="object"?x&&typeof x=="object"&&!Array.isArray(x):typeof x==Y||W&&typeof x>"u")}LK.validSchemaType=$P;function bP({schema:x,opts:Q,self:W,errSchemaPath:Y},X,J){if(Array.isArray(X.keyword)?!X.keyword.includes(J):X.keyword!==J)throw Error("ajv implementation error");let G=X.dependencies;if(G===null||G===void 0?void 0:G.some(($)=>!Object.prototype.hasOwnProperty.call(x,$)))throw Error(`parent schema must have dependencies of ${J}: ${G.join(",")}`);if(X.validateSchema){if(!X.validateSchema(x[J])){let b=`keyword "${J}" value is invalid at path "${Y}": `+W.errorsText(X.validateSchema.errors);if(Q.validateSchema==="log")W.logger.error(b);else throw Error(b)}}}LK.validateKeywordUsage=bP});var jK=M((DK)=>{Object.defineProperty(DK,"__esModule",{value:!0});DK.extendSubschemaMode=DK.extendSubschemaData=DK.getSubschema=void 0;var $4=a(),MK=G0();function wP(x,{keyword:Q,schemaProp:W,schema:Y,schemaPath:X,errSchemaPath:J,topSchemaRef:G}){if(Q!==void 0&&Y!==void 0)throw Error('both "keyword" and "schema" passed, only one allowed');if(Q!==void 0){let $=x.schema[Q];return W===void 0?{schema:$,schemaPath:$4._`${x.schemaPath}${(0,$4.getProperty)(Q)}`,errSchemaPath:`${x.errSchemaPath}/${Q}`}:{schema:$[W],schemaPath:$4._`${x.schemaPath}${(0,$4.getProperty)(Q)}${(0,$4.getProperty)(W)}`,errSchemaPath:`${x.errSchemaPath}/${Q}/${(0,MK.escapeFragment)(W)}`}}if(Y!==void 0){if(X===void 0||J===void 0||G===void 0)throw Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:Y,schemaPath:X,topSchemaRef:G,errSchemaPath:J}}throw Error('either "keyword" or "schema" must be passed')}DK.getSubschema=wP;function KP(x,Q,{dataProp:W,dataPropType:Y,data:X,dataTypes:J,propertyName:G}){if(X!==void 0&&W!==void 0)throw Error('both "data" and "dataProp" passed, only one allowed');let{gen:$}=Q;if(W!==void 0){let{errorPath:z,dataPathArr:v,opts:B}=Q,K=$.let("data",$4._`${Q.data}${(0,$4.getProperty)(W)}`,!0);b(K),x.errorPath=$4.str`${z}${(0,MK.getErrorPath)(W,Y,B.jsPropertySyntax)}`,x.parentDataProperty=$4._`${W}`,x.dataPathArr=[...v,x.parentDataProperty]}if(X!==void 0){let z=X instanceof $4.Name?X:$.let("data",X,!0);if(b(z),G!==void 0)x.propertyName=G}if(J)x.dataTypes=J;function b(z){x.data=z,x.dataLevel=Q.dataLevel+1,x.dataTypes=[],Q.definedProperties=new Set,x.parentData=Q.data,x.dataNames=[...Q.dataNames,z]}}DK.extendSubschemaData=KP;function HP(x,{jtdDiscriminator:Q,jtdMetadata:W,compositeRule:Y,createErrors:X,allErrors:J}){if(Y!==void 0)x.compositeRule=Y;if(X!==void 0)x.createErrors=X;if(J!==void 0)x.allErrors=J;x.jtdDiscriminator=Q,x.jtdMetadata=W}DK.extendSubschemaMode=HP});var XX=M((Ya,AK)=>{AK.exports=function x(Q,W){if(Q===W)return!0;if(Q&&W&&typeof Q=="object"&&typeof W=="object"){if(Q.constructor!==W.constructor)return!1;var Y,X,J;if(Array.isArray(Q)){if(Y=Q.length,Y!=W.length)return!1;for(X=Y;X--!==0;)if(!x(Q[X],W[X]))return!1;return!0}if(Q.constructor===RegExp)return Q.source===W.source&&Q.flags===W.flags;if(Q.valueOf!==Object.prototype.valueOf)return Q.valueOf()===W.valueOf();if(Q.toString!==Object.prototype.toString)return Q.toString()===W.toString();if(J=Object.keys(Q),Y=J.length,Y!==Object.keys(W).length)return!1;for(X=Y;X--!==0;)if(!Object.prototype.hasOwnProperty.call(W,J[X]))return!1;for(X=Y;X--!==0;){var G=J[X];if(!x(Q[G],W[G]))return!1}return!0}return Q!==Q&&W!==W}});var IK=M((Xa,OK)=>{var m4=OK.exports=function(x,Q,W){if(typeof Q=="function")W=Q,Q={};W=Q.cb||W;var Y=typeof W=="function"?W:W.pre||function(){},X=W.post||function(){};Y3(Q,Y,X,x,"",x)};m4.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};m4.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};m4.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};m4.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 Y3(x,Q,W,Y,X,J,G,$,b,z){if(Y&&typeof Y=="object"&&!Array.isArray(Y)){Q(Y,X,J,G,$,b,z);for(var v in Y){var B=Y[v];if(Array.isArray(B)){if(v in m4.arrayKeywords)for(var K=0;K<B.length;K++)Y3(x,Q,W,B[K],X+"/"+v+"/"+K,J,X,v,Y,K)}else if(v in m4.propsKeywords){if(B&&typeof B=="object")for(var w in B)Y3(x,Q,W,B[w],X+"/"+v+"/"+NP(w),J,X,v,Y,w)}else if(v in m4.keywords||x.allKeys&&!(v in m4.skipKeywords))Y3(x,Q,W,B,X+"/"+v,J,X,v,Y)}W(Y,X,J,G,$,b,z)}}function NP(x){return x.replace(/~/g,"~0").replace(/\//g,"~1")}});var y6=M((RK)=>{Object.defineProperty(RK,"__esModule",{value:!0});RK.getSchemaRefs=RK.resolveUrl=RK.normalizeId=RK._getFullPath=RK.getFullPath=RK.inlineRef=void 0;var LP=G0(),UP=XX(),FP=IK(),MP=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function DP(x,Q=!0){if(typeof x=="boolean")return!0;if(Q===!0)return!JX(x);if(!Q)return!1;return EK(x)<=Q}RK.inlineRef=DP;var cP=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function JX(x){for(let Q in x){if(cP.has(Q))return!0;let W=x[Q];if(Array.isArray(W)&&W.some(JX))return!0;if(typeof W=="object"&&JX(W))return!0}return!1}function EK(x){let Q=0;for(let W in x){if(W==="$ref")return 1/0;if(Q++,MP.has(W))continue;if(typeof x[W]=="object")(0,LP.eachItem)(x[W],(Y)=>Q+=EK(Y));if(Q===1/0)return 1/0}return Q}function SK(x,Q="",W){if(W!==!1)Q=F8(Q);let Y=x.parse(Q);return PK(x,Y)}RK.getFullPath=SK;function PK(x,Q){return x.serialize(Q).split("#")[0]+"#"}RK._getFullPath=PK;var jP=/#\/?$/;function F8(x){return x?x.replace(jP,""):""}RK.normalizeId=F8;function AP(x,Q,W){return W=F8(W),x.resolve(Q,W)}RK.resolveUrl=AP;var OP=/^[a-z_][-a-z0-9._]*$/i;function IP(x,Q){if(typeof x=="boolean")return{};let{schemaId:W,uriResolver:Y}=this.opts,X=F8(x[W]||Q),J={"":X},G=SK(Y,X,!1),$={},b=new Set;return FP(x,{allKeys:!0},(B,K,w,V)=>{if(V===void 0)return;let N=G+K,L=J[V];if(typeof B[W]=="string")L=q.call(this,B[W]);U.call(this,B.$anchor),U.call(this,B.$dynamicAnchor),J[K]=L;function q(c){let S=this.opts.uriResolver.resolve;if(c=F8(L?S(L,c):c),b.has(c))throw v(c);b.add(c);let i=this.refs[c];if(typeof i=="string")i=this.refs[i];if(typeof i=="object")z(B,i.schema,c);else if(c!==F8(N))if(c[0]==="#")z(B,$[c],c),$[c]=B;else this.refs[c]=N;return c}function U(c){if(typeof c=="string"){if(!OP.test(c))throw Error(`invalid anchor "${c}"`);q.call(this,`#${c}`)}}}),$;function z(B,K,w){if(K!==void 0&&!UP(B,K))throw v(w)}function v(B){return Error(`reference "${B}" resolves to more than one schema`)}}RK.getSchemaRefs=IP});var o6=M((oK)=>{Object.defineProperty(oK,"__esModule",{value:!0});oK.getData=oK.KeywordCxt=oK.validateFunctionCode=void 0;var _K=rw(),iK=f6(),$X=sY(),X3=f6(),iP=BK(),h6=FK(),GX=jK(),u=a(),f=V4(),CP=y6(),q4=G0(),g6=m6();function TP(x){if(lK(x)){if(nK(x),pK(x)){uP(x);return}}uK(x,()=>(0,_K.topBoolOrEmptySchema)(x))}oK.validateFunctionCode=TP;function uK({gen:x,validateName:Q,schema:W,schemaEnv:Y,opts:X},J){if(X.code.es5)x.func(Q,u._`${f.default.data}, ${f.default.valCxt}`,Y.$async,()=>{x.code(u._`"use strict"; ${CK(W,X)}`),_P(x,X),x.code(J)});else x.func(Q,u._`${f.default.data}, ${kP(X)}`,Y.$async,()=>x.code(CK(W,X)).code(J))}function kP(x){return u._`{${f.default.instancePath}="", ${f.default.parentData}, ${f.default.parentDataProperty}, ${f.default.rootData}=${f.default.data}${x.dynamicRef?u._`, ${f.default.dynamicAnchors}={}`:u.nil}}={}`}function _P(x,Q){x.if(f.default.valCxt,()=>{if(x.var(f.default.instancePath,u._`${f.default.valCxt}.${f.default.instancePath}`),x.var(f.default.parentData,u._`${f.default.valCxt}.${f.default.parentData}`),x.var(f.default.parentDataProperty,u._`${f.default.valCxt}.${f.default.parentDataProperty}`),x.var(f.default.rootData,u._`${f.default.valCxt}.${f.default.rootData}`),Q.dynamicRef)x.var(f.default.dynamicAnchors,u._`${f.default.valCxt}.${f.default.dynamicAnchors}`)},()=>{if(x.var(f.default.instancePath,u._`""`),x.var(f.default.parentData,u._`undefined`),x.var(f.default.parentDataProperty,u._`undefined`),x.var(f.default.rootData,f.default.data),Q.dynamicRef)x.var(f.default.dynamicAnchors,u._`{}`)})}function uP(x){let{schema:Q,opts:W,gen:Y}=x;uK(x,()=>{if(W.$comment&&Q.$comment)fK(x);if(fP(x),Y.let(f.default.vErrors,null),Y.let(f.default.errors,0),W.unevaluated)pP(x);mK(x),hP(x)});return}function pP(x){let{gen:Q,validateName:W}=x;x.evaluated=Q.const("evaluated",u._`${W}.evaluated`),Q.if(u._`${x.evaluated}.dynamicProps`,()=>Q.assign(u._`${x.evaluated}.props`,u._`undefined`)),Q.if(u._`${x.evaluated}.dynamicItems`,()=>Q.assign(u._`${x.evaluated}.items`,u._`undefined`))}function CK(x,Q){let W=typeof x=="object"&&x[Q.schemaId];return W&&(Q.code.source||Q.code.process)?u._`/*# sourceURL=${W} */`:u.nil}function lP(x,Q){if(lK(x)){if(nK(x),pK(x)){nP(x,Q);return}}(0,_K.boolOrEmptySchema)(x,Q)}function pK({schema:x,self:Q}){if(typeof x=="boolean")return!x;for(let W in x)if(Q.RULES.all[W])return!0;return!1}function lK(x){return typeof x.schema!="boolean"}function nP(x,Q){let{schema:W,gen:Y,opts:X}=x;if(X.$comment&&W.$comment)fK(x);yP(x),gP(x);let J=Y.const("_errs",f.default.errors);mK(x,J),Y.var(Q,u._`${J} === ${f.default.errors}`)}function nK(x){(0,q4.checkUnknownRules)(x),mP(x)}function mK(x,Q){if(x.opts.jtd)return TK(x,[],!1,Q);let W=(0,iK.getSchemaTypes)(x.schema),Y=(0,iK.coerceAndCheckDataType)(x,W);TK(x,W,!Y,Q)}function mP(x){let{schema:Q,errSchemaPath:W,opts:Y,self:X}=x;if(Q.$ref&&Y.ignoreKeywordsWithRef&&(0,q4.schemaHasRulesButRef)(Q,X.RULES))X.logger.warn(`$ref: keywords ignored in schema at path "${W}"`)}function fP(x){let{schema:Q,opts:W}=x;if(Q.default!==void 0&&W.useDefaults&&W.strictSchema)(0,q4.checkStrictMode)(x,"default is ignored in the schema root")}function yP(x){let Q=x.schema[x.opts.schemaId];if(Q)x.baseId=(0,CP.resolveUrl)(x.opts.uriResolver,x.baseId,Q)}function gP(x){if(x.schema.$async&&!x.schemaEnv.$async)throw Error("async schema in sync schema")}function fK({gen:x,schemaEnv:Q,schema:W,errSchemaPath:Y,opts:X}){let J=W.$comment;if(X.$comment===!0)x.code(u._`${f.default.self}.logger.log(${J})`);else if(typeof X.$comment=="function"){let G=u.str`${Y}/$comment`,$=x.scopeValue("root",{ref:Q.root});x.code(u._`${f.default.self}.opts.$comment(${J}, ${G}, ${$}.schema)`)}}function hP(x){let{gen:Q,schemaEnv:W,validateName:Y,ValidationError:X,opts:J}=x;if(W.$async)Q.if(u._`${f.default.errors} === 0`,()=>Q.return(f.default.data),()=>Q.throw(u._`new ${X}(${f.default.vErrors})`));else{if(Q.assign(u._`${Y}.errors`,f.default.vErrors),J.unevaluated)oP(x);Q.return(u._`${f.default.errors} === 0`)}}function oP({gen:x,evaluated:Q,props:W,items:Y}){if(W instanceof u.Name)x.assign(u._`${Q}.props`,W);if(Y instanceof u.Name)x.assign(u._`${Q}.items`,Y)}function TK(x,Q,W,Y){let{gen:X,schema:J,data:G,allErrors:$,opts:b,self:z}=x,{RULES:v}=z;if(J.$ref&&(b.ignoreKeywordsWithRef||!(0,q4.schemaHasRulesButRef)(J,v))){X.block(()=>gK(x,"$ref",v.all.$ref.definition));return}if(!b.jtd)aP(x,Q);X.block(()=>{for(let K of v.rules)B(K);B(v.post)});function B(K){if(!(0,$X.shouldUseGroup)(J,K))return;if(K.type){if(X.if((0,X3.checkDataType)(K.type,G,b.strictNumbers)),kK(x,K),Q.length===1&&Q[0]===K.type&&W)X.else(),(0,X3.reportTypeError)(x);X.endIf()}else kK(x,K);if(!$)X.if(u._`${f.default.errors} === ${Y||0}`)}}function kK(x,Q){let{gen:W,schema:Y,opts:{useDefaults:X}}=x;if(X)(0,iP.assignDefaults)(x,Q.type);W.block(()=>{for(let J of Q.rules)if((0,$X.shouldUseRule)(Y,J))gK(x,J.keyword,J.definition,Q.type)})}function aP(x,Q){if(x.schemaEnv.meta||!x.opts.strictTypes)return;if(dP(x,Q),!x.opts.allowUnionTypes)rP(x,Q);sP(x,x.dataTypes)}function dP(x,Q){if(!Q.length)return;if(!x.dataTypes.length){x.dataTypes=Q;return}Q.forEach((W)=>{if(!yK(x.dataTypes,W))bX(x,`type "${W}" not allowed by context "${x.dataTypes.join(",")}"`)}),eP(x,Q)}function rP(x,Q){if(Q.length>1&&!(Q.length===2&&Q.includes("null")))bX(x,"use allowUnionTypes to allow union type keyword")}function sP(x,Q){let W=x.self.RULES.all;for(let Y in W){let X=W[Y];if(typeof X=="object"&&(0,$X.shouldUseRule)(x.schema,X)){let{type:J}=X.definition;if(J.length&&!J.some((G)=>tP(Q,G)))bX(x,`missing type "${J.join(",")}" for keyword "${Y}"`)}}}function tP(x,Q){return x.includes(Q)||Q==="number"&&x.includes("integer")}function yK(x,Q){return x.includes(Q)||Q==="integer"&&x.includes("number")}function eP(x,Q){let W=[];for(let Y of x.dataTypes)if(yK(Q,Y))W.push(Y);else if(Q.includes("integer")&&Y==="number")W.push("integer");x.dataTypes=W}function bX(x,Q){let W=x.schemaEnv.baseId+x.errSchemaPath;Q+=` at "${W}" (strictTypes)`,(0,q4.checkStrictMode)(x,Q,x.opts.strictTypes)}class zX{constructor(x,Q,W){if((0,h6.validateKeywordUsage)(x,Q,W),this.gen=x.gen,this.allErrors=x.allErrors,this.keyword=W,this.data=x.data,this.schema=x.schema[W],this.$data=Q.$data&&x.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,q4.schemaRefOrVal)(x,this.schema,W,this.$data),this.schemaType=Q.schemaType,this.parentSchema=x.schema,this.params={},this.it=x,this.def=Q,this.$data)this.schemaCode=x.gen.const("vSchema",hK(this.$data,x));else if(this.schemaCode=this.schemaValue,!(0,h6.validSchemaType)(this.schema,Q.schemaType,Q.allowUndefined))throw Error(`${W} value must be ${JSON.stringify(Q.schemaType)}`);if("code"in Q?Q.trackErrors:Q.errors!==!1)this.errsCount=x.gen.const("_errs",f.default.errors)}result(x,Q,W){this.failResult((0,u.not)(x),Q,W)}failResult(x,Q,W){if(this.gen.if(x),W)W();else this.error();if(Q){if(this.gen.else(),Q(),this.allErrors)this.gen.endIf()}else if(this.allErrors)this.gen.endIf();else this.gen.else()}pass(x,Q){this.failResult((0,u.not)(x),void 0,Q)}fail(x){if(x===void 0){if(this.error(),!this.allErrors)this.gen.if(!1);return}if(this.gen.if(x),this.error(),this.allErrors)this.gen.endIf();else this.gen.else()}fail$data(x){if(!this.$data)return this.fail(x);let{schemaCode:Q}=this;this.fail(u._`${Q} !== undefined && (${(0,u.or)(this.invalid$data(),x)})`)}error(x,Q,W){if(Q){this.setParams(Q),this._error(x,W),this.setParams({});return}this._error(x,W)}_error(x,Q){(x?g6.reportExtraError:g6.reportError)(this,this.def.error,Q)}$dataError(){(0,g6.reportError)(this,this.def.$dataError||g6.keyword$DataError)}reset(){if(this.errsCount===void 0)throw Error('add "trackErrors" to keyword definition');(0,g6.resetErrorsCount)(this.gen,this.errsCount)}ok(x){if(!this.allErrors)this.gen.if(x)}setParams(x,Q){if(Q)Object.assign(this.params,x);else this.params=x}block$data(x,Q,W=u.nil){this.gen.block(()=>{this.check$data(x,W),Q()})}check$data(x=u.nil,Q=u.nil){if(!this.$data)return;let{gen:W,schemaCode:Y,schemaType:X,def:J}=this;if(W.if((0,u.or)(u._`${Y} === undefined`,Q)),x!==u.nil)W.assign(x,!0);if(X.length||J.validateSchema){if(W.elseIf(this.invalid$data()),this.$dataError(),x!==u.nil)W.assign(x,!1)}W.else()}invalid$data(){let{gen:x,schemaCode:Q,schemaType:W,def:Y,it:X}=this;return(0,u.or)(J(),G());function J(){if(W.length){if(!(Q instanceof u.Name))throw Error("ajv implementation error");let $=Array.isArray(W)?W:[W];return u._`${(0,X3.checkDataTypes)($,Q,X.opts.strictNumbers,X3.DataType.Wrong)}`}return u.nil}function G(){if(Y.validateSchema){let $=x.scopeValue("validate$data",{ref:Y.validateSchema});return u._`!${$}(${Q})`}return u.nil}}subschema(x,Q){let W=(0,GX.getSubschema)(this.it,x);(0,GX.extendSubschemaData)(W,this.it,x),(0,GX.extendSubschemaMode)(W,x);let Y={...this.it,...W,items:void 0,props:void 0};return lP(Y,Q),Y}mergeEvaluated(x,Q){let{it:W,gen:Y}=this;if(!W.opts.unevaluated)return;if(W.props!==!0&&x.props!==void 0)W.props=q4.mergeEvaluated.props(Y,x.props,W.props,Q);if(W.items!==!0&&x.items!==void 0)W.items=q4.mergeEvaluated.items(Y,x.items,W.items,Q)}mergeValidEvaluated(x,Q){let{it:W,gen:Y}=this;if(W.opts.unevaluated&&(W.props!==!0||W.items!==!0))return Y.if(Q,()=>this.mergeEvaluated(x,u.Name)),!0}}oK.KeywordCxt=zX;function gK(x,Q,W,Y){let X=new zX(x,W,Q);if("code"in W)W.code(X,Y);else if(X.$data&&W.validate)(0,h6.funcKeywordCode)(X,W);else if("macro"in W)(0,h6.macroKeywordCode)(X,W);else if(W.compile||W.validate)(0,h6.funcKeywordCode)(X,W)}var xR=/^\/(?:[^~]|~0|~1)*$/,QR=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function hK(x,{dataLevel:Q,dataNames:W,dataPathArr:Y}){let X,J;if(x==="")return f.default.rootData;if(x[0]==="/"){if(!xR.test(x))throw Error(`Invalid JSON-pointer: ${x}`);X=x,J=f.default.rootData}else{let z=QR.exec(x);if(!z)throw Error(`Invalid JSON-pointer: ${x}`);let v=+z[1];if(X=z[2],X==="#"){if(v>=Q)throw Error(b("property/index",v));return Y[Q-v]}if(v>Q)throw Error(b("data",v));if(J=W[Q-v],!X)return J}let G=J,$=X.split("/");for(let z of $)if(z)J=u._`${J}${(0,u.getProperty)((0,q4.unescapeJsonPointer)(z))}`,G=u._`${G} && ${J}`;return G;function b(z,v){return`Cannot access ${z} ${v} levels up, current level is ${Q}`}}oK.getData=hK});var J3=M((rK)=>{Object.defineProperty(rK,"__esModule",{value:!0});class dK extends Error{constructor(x){super("validation failed");this.errors=x,this.ajv=this.validation=!0}}rK.default=dK});var a6=M((tK)=>{Object.defineProperty(tK,"__esModule",{value:!0});var vX=y6();class sK extends Error{constructor(x,Q,W,Y){super(Y||`can't resolve reference ${W} from id ${Q}`);this.missingRef=(0,vX.resolveUrl)(x,Q,W),this.missingSchema=(0,vX.normalizeId)((0,vX.getFullPath)(x,this.missingRef))}}tK.default=sK});var $3=M((QH)=>{Object.defineProperty(QH,"__esModule",{value:!0});QH.resolveSchema=QH.getCompilingSchema=QH.resolveRef=QH.compileSchema=QH.SchemaEnv=void 0;var r1=a(),GR=J3(),Dx=V4(),s1=y6(),eK=G0(),$R=o6();class d6{constructor(x){var Q;this.refs={},this.dynamicAnchors={};let W;if(typeof x.schema=="object")W=x.schema;this.schema=x.schema,this.schemaId=x.schemaId,this.root=x.root||this,this.baseId=(Q=x.baseId)!==null&&Q!==void 0?Q:(0,s1.normalizeId)(W===null||W===void 0?void 0:W[x.schemaId||"$id"]),this.schemaPath=x.schemaPath,this.localRefs=x.localRefs,this.meta=x.meta,this.$async=W===null||W===void 0?void 0:W.$async,this.refs={}}}QH.SchemaEnv=d6;function wX(x){let Q=xH.call(this,x);if(Q)return Q;let W=(0,s1.getFullPath)(this.opts.uriResolver,x.root.baseId),{es5:Y,lines:X}=this.opts.code,{ownProperties:J}=this.opts,G=new r1.CodeGen(this.scope,{es5:Y,lines:X,ownProperties:J}),$;if(x.$async)$=G.scopeValue("Error",{ref:GR.default,code:r1._`require("ajv/dist/runtime/validation_error").default`});let b=G.scopeName("validate");x.validateName=b;let z={gen:G,allErrors:this.opts.allErrors,data:Dx.default.data,parentData:Dx.default.parentData,parentDataProperty:Dx.default.parentDataProperty,dataNames:[Dx.default.data],dataPathArr:[r1.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:G.scopeValue("schema",this.opts.code.source===!0?{ref:x.schema,code:(0,r1.stringify)(x.schema)}:{ref:x.schema}),validateName:b,ValidationError:$,schema:x.schema,schemaEnv:x,rootId:W,baseId:x.baseId||W,schemaPath:r1.nil,errSchemaPath:x.schemaPath||(this.opts.jtd?"":"#"),errorPath:r1._`""`,opts:this.opts,self:this},v;try{this._compilations.add(x),(0,$R.validateFunctionCode)(z),G.optimize(this.opts.code.optimize);let B=G.toString();if(v=`${G.scopeRefs(Dx.default.scope)}return ${B}`,this.opts.code.process)v=this.opts.code.process(v,x);let w=Function(`${Dx.default.self}`,`${Dx.default.scope}`,v)(this,this.scope.get());if(this.scope.value(b,{ref:w}),w.errors=null,w.schema=x.schema,w.schemaEnv=x,x.$async)w.$async=!0;if(this.opts.code.source===!0)w.source={validateName:b,validateCode:B,scopeValues:G._values};if(this.opts.unevaluated){let{props:V,items:N}=z;if(w.evaluated={props:V instanceof r1.Name?void 0:V,items:N instanceof r1.Name?void 0:N,dynamicProps:V instanceof r1.Name,dynamicItems:N instanceof r1.Name},w.source)w.source.evaluated=(0,r1.stringify)(w.evaluated)}return x.validate=w,x}catch(B){if(delete x.validate,delete x.validateName,v)this.logger.error("Error compiling schema, function code:",v);throw B}finally{this._compilations.delete(x)}}QH.compileSchema=wX;function bR(x,Q,W){var Y;W=(0,s1.resolveUrl)(this.opts.uriResolver,Q,W);let X=x.refs[W];if(X)return X;let J=BR.call(this,x,W);if(J===void 0){let G=(Y=x.localRefs)===null||Y===void 0?void 0:Y[W],{schemaId:$}=this.opts;if(G)J=new d6({schema:G,schemaId:$,root:x,baseId:Q})}if(J===void 0)return;return x.refs[W]=zR.call(this,J)}QH.resolveRef=bR;function zR(x){if((0,s1.inlineRef)(x.schema,this.opts.inlineRefs))return x.schema;return x.validate?x:wX.call(this,x)}function xH(x){for(let Q of this._compilations)if(vR(Q,x))return Q}QH.getCompilingSchema=xH;function vR(x,Q){return x.schema===Q.schema&&x.root===Q.root&&x.baseId===Q.baseId}function BR(x,Q){let W;while(typeof(W=this.refs[Q])=="string")Q=W;return W||this.schemas[Q]||G3.call(this,x,Q)}function G3(x,Q){let W=this.opts.uriResolver.parse(Q),Y=(0,s1._getFullPath)(this.opts.uriResolver,W),X=(0,s1.getFullPath)(this.opts.uriResolver,x.baseId,void 0);if(Object.keys(x.schema).length>0&&Y===X)return BX.call(this,W,x);let J=(0,s1.normalizeId)(Y),G=this.refs[J]||this.schemas[J];if(typeof G=="string"){let $=G3.call(this,x,G);if(typeof($===null||$===void 0?void 0:$.schema)!=="object")return;return BX.call(this,W,$)}if(typeof(G===null||G===void 0?void 0:G.schema)!=="object")return;if(!G.validate)wX.call(this,G);if(J===(0,s1.normalizeId)(Q)){let{schema:$}=G,{schemaId:b}=this.opts,z=$[b];if(z)X=(0,s1.resolveUrl)(this.opts.uriResolver,X,z);return new d6({schema:$,schemaId:b,root:x,baseId:X})}return BX.call(this,W,G)}QH.resolveSchema=G3;var wR=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function BX(x,{baseId:Q,schema:W,root:Y}){var X;if(((X=x.fragment)===null||X===void 0?void 0:X[0])!=="/")return;for(let $ of x.fragment.slice(1).split("/")){if(typeof W==="boolean")return;let b=W[(0,eK.unescapeFragment)($)];if(b===void 0)return;W=b;let z=typeof W==="object"&&W[this.opts.schemaId];if(!wR.has($)&&z)Q=(0,s1.resolveUrl)(this.opts.uriResolver,Q,z)}let J;if(typeof W!="boolean"&&W.$ref&&!(0,eK.schemaHasRulesButRef)(W,this.RULES)){let $=(0,s1.resolveUrl)(this.opts.uriResolver,Q,W.$ref);J=G3.call(this,Y,$)}let{schemaId:G}=this.opts;if(J=J||new d6({schema:W,schemaId:G,root:Y,baseId:Q}),J.schema!==J.root.schema)return J;return}});var YH=M((va,NR)=>{NR.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}});var VX=M((Ba,zH)=>{var LR=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),JH=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),KX=RegExp.prototype.test.bind(/^[\da-f]{2}$/iu),GH=RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu),UR=RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);function HX(x){let Q="",W=0,Y=0;for(Y=0;Y<x.length;Y++){if(W=x[Y].charCodeAt(0),W===48)continue;if(!(W>=48&&W<=57||W>=65&&W<=70||W>=97&&W<=102))return"";Q+=x[Y];break}for(Y+=1;Y<x.length;Y++){if(W=x[Y].charCodeAt(0),!(W>=48&&W<=57||W>=65&&W<=70||W>=97&&W<=102))return"";Q+=x[Y]}return Q}var FR=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function XH(x){return x.length=0,!0}function MR(x,Q,W){if(x.length){let Y=HX(x);if(Y!=="")Q.push(Y);else return W.error=!0,!1;x.length=0}return!0}function DR(x){let Q=0,W={error:!1,address:"",zone:""},Y=[],X=[],J=!1,G=!1,$=MR;for(let b=0;b<x.length;b++){let z=x[b];if(z==="["||z==="]")continue;if(z===":"){if(J===!0)G=!0;if(!$(X,Y,W))break;if(++Q>7){W.error=!0;break}if(b>0&&x[b-1]===":")J=!0;Y.push(":");continue}else if(z==="%"){if(!$(X,Y,W))break;$=XH}else{X.push(z);continue}}if(X.length)if($===XH)W.zone=X.join("");else if(G)Y.push(X.join(""));else Y.push(HX(X));return W.address=Y.join(""),W}function $H(x){if(cR(x,":")<2)return{host:x,isIPV6:!1};let Q=DR(x);if(!Q.error){let{address:W,address:Y}=Q;if(Q.zone)W+="%"+Q.zone,Y+="%25"+Q.zone;return{host:W,isIPV6:!0,escapedHost:Y}}else return{host:x,isIPV6:!1}}function cR(x,Q){let W=0;for(let Y=0;Y<x.length;Y++)if(x[Y]===Q)W++;return W}function jR(x){let Q=x,W=[],Y=-1,X=0;while(X=Q.length){if(X===1)if(Q===".")break;else if(Q==="/"){W.push("/");break}else{W.push(Q);break}else if(X===2){if(Q[0]==="."){if(Q[1]===".")break;else if(Q[1]==="/"){Q=Q.slice(2);continue}}else if(Q[0]==="/"){if(Q[1]==="."||Q[1]==="/"){W.push("/");break}}}else if(X===3){if(Q==="/.."){if(W.length!==0)W.pop();W.push("/");break}}if(Q[0]==="."){if(Q[1]==="."){if(Q[2]==="/"){Q=Q.slice(3);continue}}else if(Q[1]==="/"){Q=Q.slice(2);continue}}else if(Q[0]==="/"){if(Q[1]==="."){if(Q[2]==="/"){Q=Q.slice(2);continue}else if(Q[2]==="."){if(Q[3]==="/"){if(Q=Q.slice(3),W.length!==0)W.pop();continue}}}}if((Y=Q.indexOf("/",1))===-1){W.push(Q);break}else W.push(Q.slice(0,Y)),Q=Q.slice(Y)}return W.join("")}var AR={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},OR=/[@/?#:]/g,IR=/[@/?#]/g;function bH(x,Q){let W=Q?IR:OR;return W.lastIndex=0,x.replace(W,(Y)=>AR[Y])}function ER(x,Q=!1){if(x.indexOf("%")===-1)return x;let W="";for(let Y=0;Y<x.length;Y++){if(x[Y]==="%"&&Y+2<x.length){let X=x.slice(Y+1,Y+3);if(KX(X)){let J=X.toUpperCase(),G=String.fromCharCode(parseInt(J,16));if(Q&&GH(G))W+=G;else W+="%"+J;Y+=2;continue}}W+=x[Y]}return W}function SR(x){let Q="";for(let W=0;W<x.length;W++){if(x[W]==="%"&&W+2<x.length){let Y=x.slice(W+1,W+3);if(KX(Y)){let X=Y.toUpperCase(),J=String.fromCharCode(parseInt(X,16));if(J!=="."&&GH(J))Q+=J;else Q+="%"+X;W+=2;continue}}if(UR(x[W]))Q+=x[W];else Q+=escape(x[W])}return Q}function PR(x){let Q="";for(let W=0;W<x.length;W++){if(x[W]==="%"&&W+2<x.length){let Y=x.slice(W+1,W+3);if(KX(Y)){Q+="%"+Y.toUpperCase(),W+=2;continue}}Q+=escape(x[W])}return Q}function RR(x){let Q=[];if(x.userinfo!==void 0)Q.push(x.userinfo),Q.push("@");if(x.host!==void 0){let W=unescape(x.host);if(!JH(W)){let Y=$H(W);if(Y.isIPV6===!0)W=`[${Y.escapedHost}]`;else W=bH(W,!1)}Q.push(W)}if(typeof x.port==="number"||typeof x.port==="string")Q.push(":"),Q.push(String(x.port));return Q.length?Q.join(""):void 0}zH.exports={nonSimpleDomain:FR,recomposeAuthority:RR,reescapeHostDelimiters:bH,normalizePercentEncoding:ER,normalizePathEncoding:SR,escapePreservingEscapes:PR,removeDotSegments:jR,isIPv4:JH,isUUID:LR,normalizeIPv6:$H,stringArrayToHexStripped:HX}});var HH=M((wa,KH)=>{var{isUUID:ZR}=VX(),iR=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,CR=["http","https","ws","wss","urn","urn:uuid"];function TR(x){return CR.indexOf(x)!==-1}function qX(x){if(x.secure===!0)return!0;else if(x.secure===!1)return!1;else if(x.scheme)return 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");else return!1}function vH(x){if(!x.host)x.error=x.error||"HTTP URIs must have a host.";return x}function BH(x){let Q=String(x.scheme).toLowerCase()==="https";if(x.port===(Q?443:80)||x.port==="")x.port=void 0;if(!x.path)x.path="/";return x}function kR(x){return x.secure=qX(x),x.resourceName=(x.path||"/")+(x.query?"?"+x.query:""),x.path=void 0,x.query=void 0,x}function _R(x){if(x.port===(qX(x)?443:80)||x.port==="")x.port=void 0;if(typeof x.secure==="boolean")x.scheme=x.secure?"wss":"ws",x.secure=void 0;if(x.resourceName){let[Q,W]=x.resourceName.split("?");x.path=Q&&Q!=="/"?Q:void 0,x.query=W,x.resourceName=void 0}return x.fragment=void 0,x}function uR(x,Q){if(!x.path)return x.error="URN can not be parsed",x;let W=x.path.match(iR);if(W){let Y=Q.scheme||x.scheme||"urn";x.nid=W[1].toLowerCase(),x.nss=W[2];let X=`${Y}:${Q.nid||x.nid}`,J=NX(X);if(x.path=void 0,J)x=J.parse(x,Q)}else x.error=x.error||"URN can not be parsed.";return x}function pR(x,Q){if(x.nid===void 0)throw Error("URN without nid cannot be serialized");let W=Q.scheme||x.scheme||"urn",Y=x.nid.toLowerCase(),X=`${W}:${Q.nid||Y}`,J=NX(X);if(J)x=J.serialize(x,Q);let G=x,$=x.nss;return G.path=`${Y||Q.nid}:${$}`,Q.skipEscape=!0,G}function lR(x,Q){let W=x;if(W.uuid=W.nss,W.nss=void 0,!Q.tolerant&&(!W.uuid||!ZR(W.uuid)))W.error=W.error||"UUID is not valid.";return W}function nR(x){let Q=x;return Q.nss=(x.uuid||"").toLowerCase(),Q}var wH={scheme:"http",domainHost:!0,parse:vH,serialize:BH},mR={scheme:"https",domainHost:wH.domainHost,parse:vH,serialize:BH},b3={scheme:"ws",domainHost:!0,parse:kR,serialize:_R},fR={scheme:"wss",domainHost:b3.domainHost,parse:b3.parse,serialize:b3.serialize},yR={scheme:"urn",parse:uR,serialize:pR,skipNormalize:!0},gR={scheme:"urn:uuid",parse:lR,serialize:nR,skipNormalize:!0},z3={http:wH,https:mR,ws:b3,wss:fR,urn:yR,"urn:uuid":gR};Object.setPrototypeOf(z3,null);function NX(x){return x&&(z3[x]||z3[x.toLowerCase()])||void 0}KH.exports={wsIsSecure:qX,SCHEMES:z3,isValidSchemeName:TR,getSchemeHandler:NX}});var FH=M((Ka,v3)=>{var{normalizeIPv6:hR,removeDotSegments:r6,recomposeAuthority:oR,normalizePercentEncoding:aR,normalizePathEncoding:dR,escapePreservingEscapes:rR,reescapeHostDelimiters:sR,isIPv4:tR,nonSimpleDomain:eR}=VX(),{SCHEMES:xZ,getSchemeHandler:qH}=HH();function QZ(x,Q){if(typeof x==="string")x=GZ(x,Q);else if(typeof x==="object")x=M8(cx(x,Q),Q);return x}function WZ(x,Q,W){let Y=W?Object.assign({scheme:"null"},W):{scheme:"null"},X=NH(M8(x,Y),M8(Q,Y),Y,!0);return Y.skipEscape=!0,cx(X,Y)}function NH(x,Q,W,Y){let X={};if(!Y)x=M8(cx(x,W),W),Q=M8(cx(Q,W),W);if(W=W||{},!W.tolerant&&Q.scheme)X.scheme=Q.scheme,X.userinfo=Q.userinfo,X.host=Q.host,X.port=Q.port,X.path=r6(Q.path||""),X.query=Q.query;else{if(Q.userinfo!==void 0||Q.host!==void 0||Q.port!==void 0)X.userinfo=Q.userinfo,X.host=Q.host,X.port=Q.port,X.path=r6(Q.path||""),X.query=Q.query;else{if(!Q.path)if(X.path=x.path,Q.query!==void 0)X.query=Q.query;else X.query=x.query;else{if(Q.path[0]==="/")X.path=r6(Q.path);else{if((x.userinfo!==void 0||x.host!==void 0||x.port!==void 0)&&!x.path)X.path="/"+Q.path;else if(!x.path)X.path=Q.path;else X.path=x.path.slice(0,x.path.lastIndexOf("/")+1)+Q.path;X.path=r6(X.path)}X.query=Q.query}X.userinfo=x.userinfo,X.host=x.host,X.port=x.port}X.scheme=x.scheme}return X.fragment=Q.fragment,X}function YZ(x,Q,W){let Y=VH(x,W),X=VH(Q,W);return Y!==void 0&&X!==void 0&&Y.toLowerCase()===X.toLowerCase()}function cx(x,Q){let W={host:x.host,scheme:x.scheme,userinfo:x.userinfo,port:x.port,path:x.path,query:x.query,nid:x.nid,nss:x.nss,uuid:x.uuid,fragment:x.fragment,reference:x.reference,resourceName:x.resourceName,secure:x.secure,error:""},Y=Object.assign({},Q),X=[],J=qH(Y.scheme||W.scheme);if(J&&J.serialize)J.serialize(W,Y);if(W.path!==void 0)if(!Y.skipEscape){if(W.path=rR(W.path),W.scheme!==void 0)W.path=W.path.split("%3A").join(":")}else W.path=aR(W.path);if(Y.reference!=="suffix"&&W.scheme)X.push(W.scheme,":");let G=oR(W);if(G!==void 0){if(Y.reference!=="suffix")X.push("//");if(X.push(G),W.path&&W.path[0]!=="/")X.push("/")}if(W.path!==void 0){let $=W.path;if(!Y.absolutePath&&(!J||!J.absolutePath))$=r6($);if(G===void 0&&$[0]==="/"&&$[1]==="/")$="/%2F"+$.slice(2);X.push($)}if(W.query!==void 0)X.push("?",W.query);if(W.fragment!==void 0)X.push("#",W.fragment);return X.join("")}var XZ=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function JZ(x,Q){if(Q[2]!==void 0&&x.path&&x.path[0]!=="/")return'URI path must start with "/" when authority is present.';if(typeof x.port==="number"&&(x.port<0||x.port>65535))return"URI port is malformed.";return}function LH(x,Q){let W=Object.assign({},Q),Y={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},X=!1,J=!1;if(W.reference==="suffix")if(W.scheme)x=W.scheme+":"+x;else x="//"+x;let G=x.match(XZ);if(G){if(Y.scheme=G[1],Y.userinfo=G[3],Y.host=G[4],Y.port=parseInt(G[5],10),Y.path=G[6]||"",Y.query=G[7],Y.fragment=G[8],isNaN(Y.port))Y.port=G[5];let $=JZ(Y,G);if($!==void 0)Y.error=Y.error||$,X=!0;if(Y.host)if(tR(Y.host)===!1){let v=hR(Y.host);Y.host=v.host.toLowerCase(),J=v.isIPV6}else J=!0;if(Y.scheme===void 0&&Y.userinfo===void 0&&Y.host===void 0&&Y.port===void 0&&Y.query===void 0&&!Y.path)Y.reference="same-document";else if(Y.scheme===void 0)Y.reference="relative";else if(Y.fragment===void 0)Y.reference="absolute";else Y.reference="uri";if(W.reference&&W.reference!=="suffix"&&W.reference!==Y.reference)Y.error=Y.error||"URI is not a "+W.reference+" reference.";let b=qH(W.scheme||Y.scheme);if(!W.unicodeSupport&&(!b||!b.unicodeSupport)){if(Y.host&&(W.domainHost||b&&b.domainHost)&&J===!1&&eR(Y.host))try{Y.host=URL.domainToASCII(Y.host.toLowerCase())}catch(z){Y.error=Y.error||"Host's domain name can not be converted to ASCII: "+z}}if(!b||b&&!b.skipNormalize){if(x.indexOf("%")!==-1){if(Y.scheme!==void 0)Y.scheme=unescape(Y.scheme);if(Y.host!==void 0)Y.host=sR(unescape(Y.host),J)}if(Y.path)Y.path=dR(Y.path);if(Y.fragment)try{Y.fragment=encodeURI(decodeURIComponent(Y.fragment))}catch{Y.error=Y.error||"URI malformed"}}if(b&&b.parse)b.parse(Y,W)}else Y.error=Y.error||"URI can not be parsed.";return{parsed:Y,malformedAuthorityOrPort:X}}function M8(x,Q){return LH(x,Q).parsed}function GZ(x,Q){return UH(x,Q).normalized}function UH(x,Q){let{parsed:W,malformedAuthorityOrPort:Y}=LH(x,Q);return{normalized:Y?x:cx(W,Q),malformedAuthorityOrPort:Y}}function VH(x,Q){if(typeof x==="string"){let{normalized:W,malformedAuthorityOrPort:Y}=UH(x,Q);return Y?void 0:W}if(typeof x==="object")return cx(x,Q)}var LX={SCHEMES:xZ,normalize:QZ,resolve:WZ,resolveComponent:NH,equal:YZ,serialize:cx,parse:M8};v3.exports=LX;v3.exports.default=LX;v3.exports.fastUri=LX});var cH=M((DH)=>{Object.defineProperty(DH,"__esModule",{value:!0});var MH=FH();MH.code='require("ajv/dist/runtime/uri").default';DH.default=MH});var RH=M((N4)=>{Object.defineProperty(N4,"__esModule",{value:!0});N4.CodeGen=N4.Name=N4.nil=N4.stringify=N4.str=N4._=N4.KeywordCxt=void 0;var bZ=o6();Object.defineProperty(N4,"KeywordCxt",{enumerable:!0,get:function(){return bZ.KeywordCxt}});var D8=a();Object.defineProperty(N4,"_",{enumerable:!0,get:function(){return D8._}});Object.defineProperty(N4,"str",{enumerable:!0,get:function(){return D8.str}});Object.defineProperty(N4,"stringify",{enumerable:!0,get:function(){return D8.stringify}});Object.defineProperty(N4,"nil",{enumerable:!0,get:function(){return D8.nil}});Object.defineProperty(N4,"Name",{enumerable:!0,get:function(){return D8.Name}});Object.defineProperty(N4,"CodeGen",{enumerable:!0,get:function(){return D8.CodeGen}});var zZ=J3(),EH=a6(),vZ=rY(),s6=$3(),BZ=a(),t6=y6(),B3=f6(),FX=G0(),jH=YH(),wZ=cH(),SH=(x,Q)=>new RegExp(x,Q);SH.code="new RegExp";var KZ=["removeAdditional","useDefaults","coerceTypes"],HZ=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),VZ={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."},qZ={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},AH=200;function NZ(x){var Q,W,Y,X,J,G,$,b,z,v,B,K,w,V,N,L,q,U,c,S,i,y,B0,d,z1;let x1=x.strict,m0=(Q=x.code)===null||Q===void 0?void 0:Q.optimize,o0=m0===!0||m0===void 0?1:m0||0,x4=(Y=(W=x.code)===null||W===void 0?void 0:W.regExp)!==null&&Y!==void 0?Y:SH,v1=(X=x.uriResolver)!==null&&X!==void 0?X:wZ.default;return{strictSchema:(G=(J=x.strictSchema)!==null&&J!==void 0?J:x1)!==null&&G!==void 0?G:!0,strictNumbers:(b=($=x.strictNumbers)!==null&&$!==void 0?$:x1)!==null&&b!==void 0?b:!0,strictTypes:(v=(z=x.strictTypes)!==null&&z!==void 0?z:x1)!==null&&v!==void 0?v:"log",strictTuples:(K=(B=x.strictTuples)!==null&&B!==void 0?B:x1)!==null&&K!==void 0?K:"log",strictRequired:(V=(w=x.strictRequired)!==null&&w!==void 0?w:x1)!==null&&V!==void 0?V:!1,code:x.code?{...x.code,optimize:o0,regExp:x4}:{optimize:o0,regExp:x4},loopRequired:(N=x.loopRequired)!==null&&N!==void 0?N:AH,loopEnum:(L=x.loopEnum)!==null&&L!==void 0?L:AH,meta:(q=x.meta)!==null&&q!==void 0?q:!0,messages:(U=x.messages)!==null&&U!==void 0?U:!0,inlineRefs:(c=x.inlineRefs)!==null&&c!==void 0?c:!0,schemaId:(S=x.schemaId)!==null&&S!==void 0?S:"$id",addUsedSchema:(i=x.addUsedSchema)!==null&&i!==void 0?i:!0,validateSchema:(y=x.validateSchema)!==null&&y!==void 0?y:!0,validateFormats:(B0=x.validateFormats)!==null&&B0!==void 0?B0:!0,unicodeRegExp:(d=x.unicodeRegExp)!==null&&d!==void 0?d:!0,int32range:(z1=x.int32range)!==null&&z1!==void 0?z1:!0,uriResolver:v1}}class w3{constructor(x={}){this.schemas={},this.refs={},this.formats=Object.create(null),this._compilations=new Set,this._loading={},this._cache=new Map,x=this.opts={...x,...NZ(x)};let{es5:Q,lines:W}=this.opts.code;this.scope=new BZ.ValueScope({scope:{},prefixes:HZ,es5:Q,lines:W}),this.logger=cZ(x.logger);let Y=x.validateFormats;if(x.validateFormats=!1,this.RULES=(0,vZ.getRules)(),OH.call(this,VZ,x,"NOT SUPPORTED"),OH.call(this,qZ,x,"DEPRECATED","warn"),this._metaOpts=MZ.call(this),x.formats)UZ.call(this);if(this._addVocabularies(),this._addDefaultMetaSchema(),x.keywords)FZ.call(this,x.keywords);if(typeof x.meta=="object")this.addMetaSchema(x.meta);LZ.call(this),x.validateFormats=Y}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:x,meta:Q,schemaId:W}=this.opts,Y=jH;if(W==="id")Y={...jH},Y.id=Y.$id,delete Y.$id;if(Q&&x)this.addMetaSchema(Y,Y[W],!1)}defaultMeta(){let{meta:x,schemaId:Q}=this.opts;return this.opts.defaultMeta=typeof x=="object"?x[Q]||x:void 0}validate(x,Q){let W;if(typeof x=="string"){if(W=this.getSchema(x),!W)throw Error(`no schema with key or ref "${x}"`)}else W=this.compile(x);let Y=W(Q);if(!("$async"in W))this.errors=W.errors;return Y}compile(x,Q){let W=this._addSchema(x,Q);return W.validate||this._compileSchemaEnv(W)}compileAsync(x,Q){if(typeof this.opts.loadSchema!="function")throw Error("options.loadSchema should be a function");let{loadSchema:W}=this.opts;return Y.call(this,x,Q);async function Y(z,v){await X.call(this,z.$schema);let B=this._addSchema(z,v);return B.validate||J.call(this,B)}async function X(z){if(z&&!this.getSchema(z))await Y.call(this,{$ref:z},!0)}async function J(z){try{return this._compileSchemaEnv(z)}catch(v){if(!(v instanceof EH.default))throw v;return G.call(this,v),await $.call(this,v.missingSchema),J.call(this,z)}}function G({missingSchema:z,missingRef:v}){if(this.refs[z])throw Error(`AnySchema ${z} is loaded but ${v} cannot be resolved`)}async function $(z){let v=await b.call(this,z);if(!this.refs[z])await X.call(this,v.$schema);if(!this.refs[z])this.addSchema(v,z,Q)}async function b(z){let v=this._loading[z];if(v)return v;try{return await(this._loading[z]=W(z))}finally{delete this._loading[z]}}}addSchema(x,Q,W,Y=this.opts.validateSchema){if(Array.isArray(x)){for(let J of x)this.addSchema(J,void 0,W,Y);return this}let X;if(typeof x==="object"){let{schemaId:J}=this.opts;if(X=x[J],X!==void 0&&typeof X!="string")throw Error(`schema ${J} must be string`)}return Q=(0,t6.normalizeId)(Q||X),this._checkUnique(Q),this.schemas[Q]=this._addSchema(x,W,Q,Y,!0),this}addMetaSchema(x,Q,W=this.opts.validateSchema){return this.addSchema(x,Q,!0,W),this}validateSchema(x,Q){if(typeof x=="boolean")return!0;let W;if(W=x.$schema,W!==void 0&&typeof W!="string")throw Error("$schema must be a string");if(W=W||this.opts.defaultMeta||this.defaultMeta(),!W)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let Y=this.validate(W,x);if(!Y&&Q){let X="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(X);else throw Error(X)}return Y}getSchema(x){let Q;while(typeof(Q=IH.call(this,x))=="string")x=Q;if(Q===void 0){let{schemaId:W}=this.opts,Y=new s6.SchemaEnv({schema:{},schemaId:W});if(Q=s6.resolveSchema.call(this,Y,x),!Q)return;this.refs[x]=Q}return Q.validate||this._compileSchemaEnv(Q)}removeSchema(x){if(x instanceof RegExp)return this._removeAllSchemas(this.schemas,x),this._removeAllSchemas(this.refs,x),this;switch(typeof x){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let Q=IH.call(this,x);if(typeof Q=="object")this._cache.delete(Q.schema);return delete this.schemas[x],delete this.refs[x],this}case"object":{let Q=x;this._cache.delete(Q);let W=x[this.opts.schemaId];if(W)W=(0,t6.normalizeId)(W),delete this.schemas[W],delete this.refs[W];return this}default:throw Error("ajv.removeSchema: invalid parameter")}}addVocabulary(x){for(let Q of x)this.addKeyword(Q);return this}addKeyword(x,Q){let W;if(typeof x=="string"){if(W=x,typeof Q=="object")this.logger.warn("these parameters are deprecated, see docs for addKeyword"),Q.keyword=W}else if(typeof x=="object"&&Q===void 0){if(Q=x,W=Q.keyword,Array.isArray(W)&&!W.length)throw Error("addKeywords: keyword must be string or non-empty array")}else throw Error("invalid addKeywords parameters");if(AZ.call(this,W,Q),!Q)return(0,FX.eachItem)(W,(X)=>UX.call(this,X)),this;IZ.call(this,Q);let Y={...Q,type:(0,B3.getJSONTypes)(Q.type),schemaType:(0,B3.getJSONTypes)(Q.schemaType)};return(0,FX.eachItem)(W,Y.type.length===0?(X)=>UX.call(this,X,Y):(X)=>Y.type.forEach((J)=>UX.call(this,X,Y,J))),this}getKeyword(x){let Q=this.RULES.all[x];return typeof Q=="object"?Q.definition:!!Q}removeKeyword(x){let{RULES:Q}=this;delete Q.keywords[x],delete Q.all[x];for(let W of Q.rules){let Y=W.rules.findIndex((X)=>X.keyword===x);if(Y>=0)W.rules.splice(Y,1)}return this}addFormat(x,Q){if(typeof Q=="string")Q=new RegExp(Q);return this.formats[x]=Q,this}errorsText(x=this.errors,{separator:Q=", ",dataVar:W="data"}={}){if(!x||x.length===0)return"No errors";return x.map((Y)=>`${W}${Y.instancePath} ${Y.message}`).reduce((Y,X)=>Y+Q+X)}$dataMetaSchema(x,Q){let W=this.RULES.all;x=JSON.parse(JSON.stringify(x));for(let Y of Q){let X=Y.split("/").slice(1),J=x;for(let G of X)J=J[G];for(let G in W){let $=W[G];if(typeof $!="object")continue;let{$data:b}=$.definition,z=J[G];if(b&&z)J[G]=PH(z)}}return x}_removeAllSchemas(x,Q){for(let W in x){let Y=x[W];if(!Q||Q.test(W)){if(typeof Y=="string")delete x[W];else if(Y&&!Y.meta)this._cache.delete(Y.schema),delete x[W]}}}_addSchema(x,Q,W,Y=this.opts.validateSchema,X=this.opts.addUsedSchema){let J,{schemaId:G}=this.opts;if(typeof x=="object")J=x[G];else if(this.opts.jtd)throw Error("schema must be object");else if(typeof x!="boolean")throw Error("schema must be object or boolean");let $=this._cache.get(x);if($!==void 0)return $;W=(0,t6.normalizeId)(J||W);let b=t6.getSchemaRefs.call(this,x,W);if($=new s6.SchemaEnv({schema:x,schemaId:G,meta:Q,baseId:W,localRefs:b}),this._cache.set($.schema,$),X&&!W.startsWith("#")){if(W)this._checkUnique(W);this.refs[W]=$}if(Y)this.validateSchema(x,!0);return $}_checkUnique(x){if(this.schemas[x]||this.refs[x])throw Error(`schema with key or id "${x}" already exists`)}_compileSchemaEnv(x){if(x.meta)this._compileMetaSchema(x);else s6.compileSchema.call(this,x);if(!x.validate)throw Error("ajv implementation error");return x.validate}_compileMetaSchema(x){let Q=this.opts;this.opts=this._metaOpts;try{s6.compileSchema.call(this,x)}finally{this.opts=Q}}}w3.ValidationError=zZ.default;w3.MissingRefError=EH.default;N4.default=w3;function OH(x,Q,W,Y="error"){for(let X in x){let J=X;if(J in Q)this.logger[Y](`${W}: option ${X}. ${x[J]}`)}}function IH(x){return x=(0,t6.normalizeId)(x),this.schemas[x]||this.refs[x]}function LZ(){let x=this.opts.schemas;if(!x)return;if(Array.isArray(x))this.addSchema(x);else for(let Q in x)this.addSchema(x[Q],Q)}function UZ(){for(let x in this.opts.formats){let Q=this.opts.formats[x];if(Q)this.addFormat(x,Q)}}function FZ(x){if(Array.isArray(x)){this.addVocabulary(x);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let Q in x){let W=x[Q];if(!W.keyword)W.keyword=Q;this.addKeyword(W)}}function MZ(){let x={...this.opts};for(let Q of KZ)delete x[Q];return x}var DZ={log(){},warn(){},error(){}};function cZ(x){if(x===!1)return DZ;if(x===void 0)return console;if(x.log&&x.warn&&x.error)return x;throw Error("logger must implement log, warn and error methods")}var jZ=/^[a-z_$][a-z0-9_$:-]*$/i;function AZ(x,Q){let{RULES:W}=this;if((0,FX.eachItem)(x,(Y)=>{if(W.keywords[Y])throw Error(`Keyword ${Y} is already defined`);if(!jZ.test(Y))throw Error(`Keyword ${Y} has invalid name`)}),!Q)return;if(Q.$data&&!(("code"in Q)||("validate"in Q)))throw Error('$data keyword must have "code" or "validate" function')}function UX(x,Q,W){var Y;let X=Q===null||Q===void 0?void 0:Q.post;if(W&&X)throw Error('keyword with "post" flag cannot have "type"');let{RULES:J}=this,G=X?J.post:J.rules.find(({type:b})=>b===W);if(!G)G={type:W,rules:[]},J.rules.push(G);if(J.keywords[x]=!0,!Q)return;let $={keyword:x,definition:{...Q,type:(0,B3.getJSONTypes)(Q.type),schemaType:(0,B3.getJSONTypes)(Q.schemaType)}};if(Q.before)OZ.call(this,G,$,Q.before);else G.rules.push($);J.all[x]=$,(Y=Q.implements)===null||Y===void 0||Y.forEach((b)=>this.addKeyword(b))}function OZ(x,Q,W){let Y=x.rules.findIndex((X)=>X.keyword===W);if(Y>=0)x.rules.splice(Y,0,Q);else x.rules.push(Q),this.logger.warn(`rule ${W} is not defined`)}function IZ(x){let{metaSchema:Q}=x;if(Q===void 0)return;if(x.$data&&this.opts.$data)Q=PH(Q);x.validateSchema=this.compile(Q,!0)}var EZ={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function PH(x){return{anyOf:[x,EZ]}}});var iH=M((ZH)=>{Object.defineProperty(ZH,"__esModule",{value:!0});var RZ={keyword:"id",code(){throw Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};ZH.default=RZ});var pH=M((_H)=>{Object.defineProperty(_H,"__esModule",{value:!0});_H.callRef=_H.getValidate=void 0;var iZ=a6(),CH=C1(),N1=a(),c8=V4(),TH=$3(),K3=G0(),CZ={keyword:"$ref",schemaType:"string",code(x){let{gen:Q,schema:W,it:Y}=x,{baseId:X,schemaEnv:J,validateName:G,opts:$,self:b}=Y,{root:z}=J;if((W==="#"||W==="#/")&&X===z.baseId)return B();let v=TH.resolveRef.call(b,z,X,W);if(v===void 0)throw new iZ.default(Y.opts.uriResolver,X,W);if(v instanceof TH.SchemaEnv)return K(v);return w(v);function B(){if(J===z)return H3(x,G,J,J.$async);let V=Q.scopeValue("root",{ref:z});return H3(x,N1._`${V}.validate`,z,z.$async)}function K(V){let N=kH(x,V);H3(x,N,V,V.$async)}function w(V){let N=Q.scopeValue("schema",$.code.source===!0?{ref:V,code:(0,N1.stringify)(V)}:{ref:V}),L=Q.name("valid"),q=x.subschema({schema:V,dataTypes:[],schemaPath:N1.nil,topSchemaRef:N,errSchemaPath:W},L);x.mergeEvaluated(q),x.ok(L)}}};function kH(x,Q){let{gen:W}=x;return Q.validate?W.scopeValue("validate",{ref:Q.validate}):N1._`${W.scopeValue("wrapper",{ref:Q})}.validate`}_H.getValidate=kH;function H3(x,Q,W,Y){let{gen:X,it:J}=x,{allErrors:G,schemaEnv:$,opts:b}=J,z=b.passContext?c8.default.this:N1.nil;if(Y)v();else B();function v(){if(!$.$async)throw Error("async schema referenced by sync schema");let V=X.let("valid");X.try(()=>{if(X.code(N1._`await ${(0,CH.callValidateCode)(x,Q,z)}`),w(Q),!G)X.assign(V,!0)},(N)=>{if(X.if(N1._`!(${N} instanceof ${J.ValidationError})`,()=>X.throw(N)),K(N),!G)X.assign(V,!1)}),x.ok(V)}function B(){x.result((0,CH.callValidateCode)(x,Q,z),()=>w(Q),()=>K(Q))}function K(V){let N=N1._`${V}.errors`;X.assign(c8.default.vErrors,N1._`${c8.default.vErrors} === null ? ${N} : ${c8.default.vErrors}.concat(${N})`),X.assign(c8.default.errors,N1._`${c8.default.vErrors}.length`)}function w(V){var N;if(!J.opts.unevaluated)return;let L=(N=W===null||W===void 0?void 0:W.validate)===null||N===void 0?void 0:N.evaluated;if(J.props!==!0)if(L&&!L.dynamicProps){if(L.props!==void 0)J.props=K3.mergeEvaluated.props(X,L.props,J.props)}else{let q=X.var("props",N1._`${V}.evaluated.props`);J.props=K3.mergeEvaluated.props(X,q,J.props,N1.Name)}if(J.items!==!0)if(L&&!L.dynamicItems){if(L.items!==void 0)J.items=K3.mergeEvaluated.items(X,L.items,J.items)}else{let q=X.var("items",N1._`${V}.evaluated.items`);J.items=K3.mergeEvaluated.items(X,q,J.items,N1.Name)}}}_H.callRef=H3;_H.default=CZ});var nH=M((lH)=>{Object.defineProperty(lH,"__esModule",{value:!0});var _Z=iH(),uZ=pH(),pZ=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",_Z.default,uZ.default];lH.default=pZ});var fH=M((mH)=>{Object.defineProperty(mH,"__esModule",{value:!0});var V3=a(),f4=V3.operators,q3={maximum:{okStr:"<=",ok:f4.LTE,fail:f4.GT},minimum:{okStr:">=",ok:f4.GTE,fail:f4.LT},exclusiveMaximum:{okStr:"<",ok:f4.LT,fail:f4.GTE},exclusiveMinimum:{okStr:">",ok:f4.GT,fail:f4.LTE}},nZ={message:({keyword:x,schemaCode:Q})=>V3.str`must be ${q3[x].okStr} ${Q}`,params:({keyword:x,schemaCode:Q})=>V3._`{comparison: ${q3[x].okStr}, limit: ${Q}}`},mZ={keyword:Object.keys(q3),type:"number",schemaType:"number",$data:!0,error:nZ,code(x){let{keyword:Q,data:W,schemaCode:Y}=x;x.fail$data(V3._`${W} ${q3[Q].fail} ${Y} || isNaN(${W})`)}};mH.default=mZ});var gH=M((yH)=>{Object.defineProperty(yH,"__esModule",{value:!0});var e6=a(),yZ={message:({schemaCode:x})=>e6.str`must be multiple of ${x}`,params:({schemaCode:x})=>e6._`{multipleOf: ${x}}`},gZ={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:yZ,code(x){let{gen:Q,data:W,schemaCode:Y,it:X}=x,J=X.opts.multipleOfPrecision,G=Q.let("res"),$=J?e6._`Math.abs(Math.round(${G}) - ${G}) > 1e-${J}`:e6._`${G} !== parseInt(${G})`;x.fail$data(e6._`(${Y} === 0 || (${G} = ${W}/${Y}, ${$}))`)}};yH.default=gZ});var aH=M((oH)=>{Object.defineProperty(oH,"__esModule",{value:!0});function hH(x){let Q=x.length,W=0,Y=0,X;while(Y<Q)if(W++,X=x.charCodeAt(Y++),X>=55296&&X<=56319&&Y<Q){if(X=x.charCodeAt(Y),(X&64512)===56320)Y++}return W}oH.default=hH;hH.code='require("ajv/dist/runtime/ucs2length").default'});var rH=M((dH)=>{Object.defineProperty(dH,"__esModule",{value:!0});var jx=a(),aZ=G0(),dZ=aH(),rZ={message({keyword:x,schemaCode:Q}){let W=x==="maxLength"?"more":"fewer";return jx.str`must NOT have ${W} than ${Q} characters`},params:({schemaCode:x})=>jx._`{limit: ${x}}`},sZ={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:rZ,code(x){let{keyword:Q,data:W,schemaCode:Y,it:X}=x,J=Q==="maxLength"?jx.operators.GT:jx.operators.LT,G=X.opts.unicode===!1?jx._`${W}.length`:jx._`${(0,aZ.useFunc)(x.gen,dZ.default)}(${W})`;x.fail$data(jx._`${G} ${J} ${Y}`)}};dH.default=sZ});var tH=M((sH)=>{Object.defineProperty(sH,"__esModule",{value:!0});var eZ=C1(),xi=G0(),j8=a(),Qi={message:({schemaCode:x})=>j8.str`must match pattern "${x}"`,params:({schemaCode:x})=>j8._`{pattern: ${x}}`},Wi={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:Qi,code(x){let{gen:Q,data:W,$data:Y,schema:X,schemaCode:J,it:G}=x,$=G.opts.unicodeRegExp?"u":"";if(Y){let{regExp:b}=G.opts.code,z=b.code==="new RegExp"?j8._`new RegExp`:(0,xi.useFunc)(Q,b),v=Q.let("valid");Q.try(()=>Q.assign(v,j8._`${z}(${J}, ${$}).test(${W})`),()=>Q.assign(v,!1)),x.fail$data(j8._`!${v}`)}else{let b=(0,eZ.usePattern)(x,X);x.fail$data(j8._`!${b}.test(${W})`)}}};sH.default=Wi});var xV=M((eH)=>{Object.defineProperty(eH,"__esModule",{value:!0});var x9=a(),Xi={message({keyword:x,schemaCode:Q}){let W=x==="maxProperties"?"more":"fewer";return x9.str`must NOT have ${W} than ${Q} properties`},params:({schemaCode:x})=>x9._`{limit: ${x}}`},Ji={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:Xi,code(x){let{keyword:Q,data:W,schemaCode:Y}=x,X=Q==="maxProperties"?x9.operators.GT:x9.operators.LT;x.fail$data(x9._`Object.keys(${W}).length ${X} ${Y}`)}};eH.default=Ji});var WV=M((QV)=>{Object.defineProperty(QV,"__esModule",{value:!0});var Q9=C1(),W9=a(),$i=G0(),bi={message:({params:{missingProperty:x}})=>W9.str`must have required property '${x}'`,params:({params:{missingProperty:x}})=>W9._`{missingProperty: ${x}}`},zi={keyword:"required",type:"object",schemaType:"array",$data:!0,error:bi,code(x){let{gen:Q,schema:W,schemaCode:Y,data:X,$data:J,it:G}=x,{opts:$}=G;if(!J&&W.length===0)return;let b=W.length>=$.loopRequired;if(G.allErrors)z();else v();if($.strictRequired){let w=x.parentSchema.properties,{definedProperties:V}=x.it;for(let N of W)if((w===null||w===void 0?void 0:w[N])===void 0&&!V.has(N)){let L=G.schemaEnv.baseId+G.errSchemaPath,q=`required property "${N}" is not defined at "${L}" (strictRequired)`;(0,$i.checkStrictMode)(G,q,G.opts.strictRequired)}}function z(){if(b||J)x.block$data(W9.nil,B);else for(let w of W)(0,Q9.checkReportMissingProp)(x,w)}function v(){let w=Q.let("missing");if(b||J){let V=Q.let("valid",!0);x.block$data(V,()=>K(w,V)),x.ok(V)}else Q.if((0,Q9.checkMissingProp)(x,W,w)),(0,Q9.reportMissingProp)(x,w),Q.else()}function B(){Q.forOf("prop",Y,(w)=>{x.setParams({missingProperty:w}),Q.if((0,Q9.noPropertyInData)(Q,X,w,$.ownProperties),()=>x.error())})}function K(w,V){x.setParams({missingProperty:w}),Q.forOf(w,Y,()=>{Q.assign(V,(0,Q9.propertyInData)(Q,X,w,$.ownProperties)),Q.if((0,W9.not)(V),()=>{x.error(),Q.break()})},W9.nil)}}};QV.default=zi});var XV=M((YV)=>{Object.defineProperty(YV,"__esModule",{value:!0});var Y9=a(),Bi={message({keyword:x,schemaCode:Q}){let W=x==="maxItems"?"more":"fewer";return Y9.str`must NOT have ${W} than ${Q} items`},params:({schemaCode:x})=>Y9._`{limit: ${x}}`},wi={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:Bi,code(x){let{keyword:Q,data:W,schemaCode:Y}=x,X=Q==="maxItems"?Y9.operators.GT:Y9.operators.LT;x.fail$data(Y9._`${W}.length ${X} ${Y}`)}};YV.default=wi});var N3=M((GV)=>{Object.defineProperty(GV,"__esModule",{value:!0});var JV=XX();JV.code='require("ajv/dist/runtime/equal").default';GV.default=JV});var bV=M(($V)=>{Object.defineProperty($V,"__esModule",{value:!0});var MX=f6(),e0=a(),Vi=G0(),qi=N3(),Ni={message:({params:{i:x,j:Q}})=>e0.str`must NOT have duplicate items (items ## ${Q} and ${x} are identical)`,params:({params:{i:x,j:Q}})=>e0._`{i: ${x}, j: ${Q}}`},Li={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:Ni,code(x){let{gen:Q,data:W,$data:Y,schema:X,parentSchema:J,schemaCode:G,it:$}=x;if(!Y&&!X)return;let b=Q.let("valid"),z=J.items?(0,MX.getSchemaTypes)(J.items):[];x.block$data(b,v,e0._`${G} === false`),x.ok(b);function v(){let V=Q.let("i",e0._`${W}.length`),N=Q.let("j");x.setParams({i:V,j:N}),Q.assign(b,!0),Q.if(e0._`${V} > 1`,()=>(B()?K:w)(V,N))}function B(){return z.length>0&&!z.some((V)=>V==="object"||V==="array")}function K(V,N){let L=Q.name("item"),q=(0,MX.checkDataTypes)(z,L,$.opts.strictNumbers,MX.DataType.Wrong),U=Q.const("indices",e0._`{}`);Q.for(e0._`;${V}--;`,()=>{if(Q.let(L,e0._`${W}[${V}]`),Q.if(q,e0._`continue`),z.length>1)Q.if(e0._`typeof ${L} == "string"`,e0._`${L} += "_"`);Q.if(e0._`typeof ${U}[${L}] == "number"`,()=>{Q.assign(N,e0._`${U}[${L}]`),x.error(),Q.assign(b,!1).break()}).code(e0._`${U}[${L}] = ${V}`)})}function w(V,N){let L=(0,Vi.useFunc)(Q,qi.default),q=Q.name("outer");Q.label(q).for(e0._`;${V}--;`,()=>Q.for(e0._`${N} = ${V}; ${N}--;`,()=>Q.if(e0._`${L}(${W}[${V}], ${W}[${N}])`,()=>{x.error(),Q.assign(b,!1).break(q)})))}}};$V.default=Li});var vV=M((zV)=>{Object.defineProperty(zV,"__esModule",{value:!0});var DX=a(),Fi=G0(),Mi=N3(),Di={message:"must be equal to constant",params:({schemaCode:x})=>DX._`{allowedValue: ${x}}`},ci={keyword:"const",$data:!0,error:Di,code(x){let{gen:Q,data:W,$data:Y,schemaCode:X,schema:J}=x;if(Y||J&&typeof J=="object")x.fail$data(DX._`!${(0,Fi.useFunc)(Q,Mi.default)}(${W}, ${X})`);else x.fail(DX._`${J} !== ${W}`)}};zV.default=ci});var wV=M((BV)=>{Object.defineProperty(BV,"__esModule",{value:!0});var X9=a(),Ai=G0(),Oi=N3(),Ii={message:"must be equal to one of the allowed values",params:({schemaCode:x})=>X9._`{allowedValues: ${x}}`},Ei={keyword:"enum",schemaType:"array",$data:!0,error:Ii,code(x){let{gen:Q,data:W,$data:Y,schema:X,schemaCode:J,it:G}=x;if(!Y&&X.length===0)throw Error("enum must have non-empty array");let $=X.length>=G.opts.loopEnum,b,z=()=>b!==null&&b!==void 0?b:b=(0,Ai.useFunc)(Q,Oi.default),v;if($||Y)v=Q.let("valid"),x.block$data(v,B);else{if(!Array.isArray(X))throw Error("ajv implementation error");let w=Q.const("vSchema",J);v=(0,X9.or)(...X.map((V,N)=>K(w,N)))}x.pass(v);function B(){Q.assign(v,!1),Q.forOf("v",J,(w)=>Q.if(X9._`${z()}(${W}, ${w})`,()=>Q.assign(v,!0).break()))}function K(w,V){let N=X[V];return typeof N==="object"&&N!==null?X9._`${z()}(${W}, ${w}[${V}])`:X9._`${W} === ${N}`}}};BV.default=Ei});var HV=M((KV)=>{Object.defineProperty(KV,"__esModule",{value:!0});var Pi=fH(),Ri=gH(),Zi=rH(),ii=tH(),Ci=xV(),Ti=WV(),ki=XV(),_i=bV(),ui=vV(),pi=wV(),li=[Pi.default,Ri.default,Zi.default,ii.default,Ci.default,Ti.default,ki.default,_i.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},ui.default,pi.default];KV.default=li});var jX=M((qV)=>{Object.defineProperty(qV,"__esModule",{value:!0});qV.validateAdditionalItems=void 0;var Ax=a(),cX=G0(),mi={message:({params:{len:x}})=>Ax.str`must NOT have more than ${x} items`,params:({params:{len:x}})=>Ax._`{limit: ${x}}`},fi={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:mi,code(x){let{parentSchema:Q,it:W}=x,{items:Y}=Q;if(!Array.isArray(Y)){(0,cX.checkStrictMode)(W,'"additionalItems" is ignored when "items" is not an array of schemas');return}VV(x,Y)}};function VV(x,Q){let{gen:W,schema:Y,data:X,keyword:J,it:G}=x;G.items=!0;let $=W.const("len",Ax._`${X}.length`);if(Y===!1)x.setParams({len:Q.length}),x.pass(Ax._`${$} <= ${Q.length}`);else if(typeof Y=="object"&&!(0,cX.alwaysValidSchema)(G,Y)){let z=W.var("valid",Ax._`${$} <= ${Q.length}`);W.if((0,Ax.not)(z),()=>b(z)),x.ok(z)}function b(z){W.forRange("i",Q.length,$,(v)=>{if(x.subschema({keyword:J,dataProp:v,dataPropType:cX.Type.Num},z),!G.allErrors)W.if((0,Ax.not)(z),()=>W.break())})}}qV.validateAdditionalItems=VV;qV.default=fi});var AX=M((FV)=>{Object.defineProperty(FV,"__esModule",{value:!0});FV.validateTuple=void 0;var LV=a(),L3=G0(),gi=C1(),hi={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(x){let{schema:Q,it:W}=x;if(Array.isArray(Q))return UV(x,"additionalItems",Q);if(W.items=!0,(0,L3.alwaysValidSchema)(W,Q))return;x.ok((0,gi.validateArray)(x))}};function UV(x,Q,W=x.schema){let{gen:Y,parentSchema:X,data:J,keyword:G,it:$}=x;if(v(X),$.opts.unevaluated&&W.length&&$.items!==!0)$.items=L3.mergeEvaluated.items(Y,W.length,$.items);let b=Y.name("valid"),z=Y.const("len",LV._`${J}.length`);W.forEach((B,K)=>{if((0,L3.alwaysValidSchema)($,B))return;Y.if(LV._`${z} > ${K}`,()=>x.subschema({keyword:G,schemaProp:K,dataProp:K},b)),x.ok(b)});function v(B){let{opts:K,errSchemaPath:w}=$,V=W.length,N=V===B.minItems&&(V===B.maxItems||B[Q]===!1);if(K.strictTuples&&!N){let L=`"${G}" is ${V}-tuple, but minItems or maxItems/${Q} are not specified or different at path "${w}"`;(0,L3.checkStrictMode)($,L,K.strictTuples)}}}FV.validateTuple=UV;FV.default=hi});var cV=M((DV)=>{Object.defineProperty(DV,"__esModule",{value:!0});var ai=AX(),di={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:(x)=>(0,ai.validateTuple)(x,"items")};DV.default=di});var OV=M((AV)=>{Object.defineProperty(AV,"__esModule",{value:!0});var jV=a(),si=G0(),ti=C1(),ei=jX(),xC={message:({params:{len:x}})=>jV.str`must NOT have more than ${x} items`,params:({params:{len:x}})=>jV._`{limit: ${x}}`},QC={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:xC,code(x){let{schema:Q,parentSchema:W,it:Y}=x,{prefixItems:X}=W;if(Y.items=!0,(0,si.alwaysValidSchema)(Y,Q))return;if(X)(0,ei.validateAdditionalItems)(x,X);else x.ok((0,ti.validateArray)(x))}};AV.default=QC});var EV=M((IV)=>{Object.defineProperty(IV,"__esModule",{value:!0});var T1=a(),U3=G0(),YC={message:({params:{min:x,max:Q}})=>Q===void 0?T1.str`must contain at least ${x} valid item(s)`:T1.str`must contain at least ${x} and no more than ${Q} valid item(s)`,params:({params:{min:x,max:Q}})=>Q===void 0?T1._`{minContains: ${x}}`:T1._`{minContains: ${x}, maxContains: ${Q}}`},XC={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:YC,code(x){let{gen:Q,schema:W,parentSchema:Y,data:X,it:J}=x,G,$,{minContains:b,maxContains:z}=Y;if(J.opts.next)G=b===void 0?1:b,$=z;else G=1;let v=Q.const("len",T1._`${X}.length`);if(x.setParams({min:G,max:$}),$===void 0&&G===0){(0,U3.checkStrictMode)(J,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if($!==void 0&&G>$){(0,U3.checkStrictMode)(J,'"minContains" > "maxContains" is always invalid'),x.fail();return}if((0,U3.alwaysValidSchema)(J,W)){let N=T1._`${v} >= ${G}`;if($!==void 0)N=T1._`${N} && ${v} <= ${$}`;x.pass(N);return}J.items=!0;let B=Q.name("valid");if($===void 0&&G===1)w(B,()=>Q.if(B,()=>Q.break()));else if(G===0){if(Q.let(B,!0),$!==void 0)Q.if(T1._`${X}.length > 0`,K)}else Q.let(B,!1),K();x.result(B,()=>x.reset());function K(){let N=Q.name("_valid"),L=Q.let("count",0);w(N,()=>Q.if(N,()=>V(L)))}function w(N,L){Q.forRange("i",0,v,(q)=>{x.subschema({keyword:"contains",dataProp:q,dataPropType:U3.Type.Num,compositeRule:!0},N),L()})}function V(N){if(Q.code(T1._`${N}++`),$===void 0)Q.if(T1._`${N} >= ${G}`,()=>Q.assign(B,!0).break());else if(Q.if(T1._`${N} > ${$}`,()=>Q.assign(B,!1).break()),G===1)Q.assign(B,!0);else Q.if(T1._`${N} >= ${G}`,()=>Q.assign(B,!0))}}};IV.default=XC});var CV=M((RV)=>{Object.defineProperty(RV,"__esModule",{value:!0});RV.validateSchemaDeps=RV.validatePropertyDeps=RV.error=void 0;var OX=a(),GC=G0(),J9=C1();RV.error={message:({params:{property:x,depsCount:Q,deps:W}})=>{let Y=Q===1?"property":"properties";return OX.str`must have ${Y} ${W} when property ${x} is present`},params:({params:{property:x,depsCount:Q,deps:W,missingProperty:Y}})=>OX._`{property: ${x},
23
+ || ${G} === "boolean" || ${X} === null`).assign($,o._`[${X}]`)}}}function OS({gen:x,parentData:Q,parentDataProperty:W},Y){x.if(o._`${Q} !== undefined`,()=>x.assign(o._`${Q}[${W}]`,Y))}function tY(x,Q,W,Y=U8.Correct){let X=Y===U8.Correct?o.operators.EQ:o.operators.NEQ,J;switch(x){case"null":return o._`${Q} ${X} null`;case"array":J=o._`Array.isArray(${Q})`;break;case"object":J=o._`${Q} && typeof ${Q} == "object" && !Array.isArray(${Q})`;break;case"integer":J=G(o._`!(${Q} % 1) && !isNaN(${Q})`);break;case"number":J=G();break;default:return o._`typeof ${Q} ${X} ${x}`}return Y===U8.Correct?J:(0,o.not)(J);function G($=o.nil){return(0,o.and)(o._`typeof ${Q} == "number"`,$,W?o._`isFinite(${Q})`:o.nil)}}zK.checkDataType=tY;function eY(x,Q,W,Y){if(x.length===1)return tY(x[0],Q,W,Y);let X,J=(0,GK.toHash)(x);if(J.array&&J.object){let G=o._`typeof ${Q} != "object"`;X=J.null?G:o._`!${Q} || ${G}`,delete J.null,delete J.array,delete J.object}else X=o.nil;if(J.number)delete J.integer;for(let G in J)X=(0,o.and)(X,tY(G,Q,W,Y));return X}zK.checkDataTypes=eY;var IS={message:({schema:x})=>`must be ${x}`,params:({schema:x,schemaValue:Q})=>typeof x=="string"?o._`{type: ${x}}`:o._`{type: ${Q}}`};function xX(x){let Q=ES(x);(0,MS.reportError)(Q,IS)}zK.reportTypeError=xX;function ES(x){let{gen:Q,data:W,schema:Y}=x,X=(0,GK.schemaRefOrVal)(x,Y,"type");return{gen:Q,keyword:"type",data:W,schema:Y.type,schemaCode:X,schemaValue:X,parentSchema:Y,params:{},it:x}}});var HK=M((wK)=>{Object.defineProperty(wK,"__esModule",{value:!0});wK.assignDefaults=void 0;var L8=a(),TS=G0();function kS(x,Q){let{properties:W,items:Y}=x.schema;if(Q==="object"&&W)for(let X in W)BK(x,X,W[X].default);else if(Q==="array"&&Array.isArray(Y))Y.forEach((X,J)=>BK(x,J,X.default))}wK.assignDefaults=kS;function BK(x,Q,W){let{gen:Y,compositeRule:X,data:J,opts:G}=x;if(W===void 0)return;let $=L8._`${J}${(0,L8.getProperty)(Q)}`;if(X){(0,TS.checkStrictMode)(x,`default is ignored for: ${$}`);return}let b=L8._`${$} === undefined`;if(G.useDefaults==="empty")b=L8._`${b} || ${$} === null || ${$} === ""`;Y.if(b,L8._`${$} = ${(0,L8.stringify)(W)}`)}});var C1=M((NK)=>{Object.defineProperty(NK,"__esModule",{value:!0});NK.validateUnion=NK.validateArray=NK.usePattern=NK.callValidateCode=NK.schemaProperties=NK.allSchemaProperties=NK.noPropertyInData=NK.propertyInData=NK.isOwnProperty=NK.hasPropFunc=NK.reportMissingProp=NK.checkMissingProp=NK.checkReportMissingProp=void 0;var M0=a(),QX=G0(),n4=V4(),_S=G0();function uS(x,Q){let{gen:W,data:Y,it:X}=x;W.if(YX(W,Y,Q,X.opts.ownProperties),()=>{x.setParams({missingProperty:M0._`${Q}`},!0),x.error()})}NK.checkReportMissingProp=uS;function pS({gen:x,data:Q,it:{opts:W}},Y,X){return(0,M0.or)(...Y.map((J)=>(0,M0.and)(YX(x,Q,J,W.ownProperties),M0._`${X} = ${J}`)))}NK.checkMissingProp=pS;function lS(x,Q){x.setParams({missingProperty:Q},!0),x.error()}NK.reportMissingProp=lS;function VK(x){return x.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:M0._`Object.prototype.hasOwnProperty`})}NK.hasPropFunc=VK;function WX(x,Q,W){return M0._`${VK(x)}.call(${Q}, ${W})`}NK.isOwnProperty=WX;function nS(x,Q,W,Y){let X=M0._`${Q}${(0,M0.getProperty)(W)} !== undefined`;return Y?M0._`${X} && ${WX(x,Q,W)}`:X}NK.propertyInData=nS;function YX(x,Q,W,Y){let X=M0._`${Q}${(0,M0.getProperty)(W)} === undefined`;return Y?(0,M0.or)(X,(0,M0.not)(WX(x,Q,W))):X}NK.noPropertyInData=YX;function qK(x){return x?Object.keys(x).filter((Q)=>Q!=="__proto__"):[]}NK.allSchemaProperties=qK;function mS(x,Q){return qK(Q).filter((W)=>!(0,QX.alwaysValidSchema)(x,Q[W]))}NK.schemaProperties=mS;function fS({schemaCode:x,data:Q,it:{gen:W,topSchemaRef:Y,schemaPath:X,errorPath:J},it:G},$,b,z){let v=z?M0._`${x}, ${Q}, ${Y}${X}`:Q,B=[[n4.default.instancePath,(0,M0.strConcat)(n4.default.instancePath,J)],[n4.default.parentData,G.parentData],[n4.default.parentDataProperty,G.parentDataProperty],[n4.default.rootData,n4.default.rootData]];if(G.opts.dynamicRef)B.push([n4.default.dynamicAnchors,n4.default.dynamicAnchors]);let K=M0._`${v}, ${W.object(...B)}`;return b!==M0.nil?M0._`${$}.call(${b}, ${K})`:M0._`${$}(${K})`}NK.callValidateCode=fS;var yS=M0._`new RegExp`;function gS({gen:x,it:{opts:Q}},W){let Y=Q.unicodeRegExp?"u":"",{regExp:X}=Q.code,J=X(W,Y);return x.scopeValue("pattern",{key:J.toString(),ref:J,code:M0._`${X.code==="new RegExp"?yS:(0,_S.useFunc)(x,X)}(${W}, ${Y})`})}NK.usePattern=gS;function hS(x){let{gen:Q,data:W,keyword:Y,it:X}=x,J=Q.name("valid");if(X.allErrors){let $=Q.let("valid",!0);return G(()=>Q.assign($,!1)),$}return Q.var(J,!0),G(()=>Q.break()),J;function G($){let b=Q.const("len",M0._`${W}.length`);Q.forRange("i",0,b,(z)=>{x.subschema({keyword:Y,dataProp:z,dataPropType:QX.Type.Num},J),Q.if((0,M0.not)(J),$)})}}NK.validateArray=hS;function oS(x){let{gen:Q,schema:W,keyword:Y,it:X}=x;if(!Array.isArray(W))throw Error("ajv implementation error");if(W.some((b)=>(0,QX.alwaysValidSchema)(X,b))&&!X.opts.unevaluated)return;let G=Q.let("valid",!1),$=Q.name("_valid");Q.block(()=>W.forEach((b,z)=>{let v=x.subschema({keyword:Y,schemaProp:z,compositeRule:!0},$);if(Q.assign(G,M0._`${G} || ${$}`),!x.mergeValidEvaluated(v,$))Q.if((0,M0.not)(G))})),x.result(G,()=>x.reset(),()=>x.error(!0))}NK.validateUnion=oS});var cK=M((MK)=>{Object.defineProperty(MK,"__esModule",{value:!0});MK.validateKeywordUsage=MK.validSchemaType=MK.funcKeywordCode=MK.macroKeywordCode=void 0;var b1=a(),Mx=V4(),GP=C1(),$P=m6();function bP(x,Q){let{gen:W,keyword:Y,schema:X,parentSchema:J,it:G}=x,$=Q.macro.call(G.self,X,J,G),b=FK(W,Y,$);if(G.opts.validateSchema!==!1)G.self.validateSchema($,!0);let z=W.name("valid");x.subschema({schema:$,schemaPath:b1.nil,errSchemaPath:`${G.errSchemaPath}/${Y}`,topSchemaRef:b,compositeRule:!0},z),x.pass(z,()=>x.error(!0))}MK.macroKeywordCode=bP;function zP(x,Q){var W;let{gen:Y,keyword:X,schema:J,parentSchema:G,$data:$,it:b}=x;BP(b,Q);let z=!$&&Q.compile?Q.compile.call(b.self,J,G,b):Q.validate,v=FK(Y,X,z),B=Y.let("valid");x.block$data(B,K),x.ok((W=Q.valid)!==null&&W!==void 0?W:B);function K(){if(Q.errors===!1){if(N(),Q.modifying)LK(x);U(()=>x.error())}else{let q=Q.async?w():V();if(Q.modifying)LK(x);U(()=>vP(x,q))}}function w(){let q=Y.let("ruleErrs",null);return Y.try(()=>N(b1._`await `),(L)=>Y.assign(B,!1).if(b1._`${L} instanceof ${b.ValidationError}`,()=>Y.assign(q,b1._`${L}.errors`),()=>Y.throw(L))),q}function V(){let q=b1._`${v}.errors`;return Y.assign(q,null),N(b1.nil),q}function N(q=Q.async?b1._`await `:b1.nil){let L=b.opts.passContext?Mx.default.this:Mx.default.self,c=!(("compile"in Q)&&!$||Q.schema===!1);Y.assign(B,b1._`${q}${(0,GP.callValidateCode)(x,v,L,c)}`,Q.modifying)}function U(q){var L;Y.if((0,b1.not)((L=Q.valid)!==null&&L!==void 0?L:B),q)}}MK.funcKeywordCode=zP;function LK(x){let{gen:Q,data:W,it:Y}=x;Q.if(Y.parentData,()=>Q.assign(W,b1._`${Y.parentData}[${Y.parentDataProperty}]`))}function vP(x,Q){let{gen:W}=x;W.if(b1._`Array.isArray(${Q})`,()=>{W.assign(Mx.default.vErrors,b1._`${Mx.default.vErrors} === null ? ${Q} : ${Mx.default.vErrors}.concat(${Q})`).assign(Mx.default.errors,b1._`${Mx.default.vErrors}.length`),(0,$P.extendErrors)(x)},()=>x.error())}function BP({schemaEnv:x},Q){if(Q.async&&!x.$async)throw Error("async keyword in sync schema")}function FK(x,Q,W){if(W===void 0)throw Error(`keyword "${Q}" failed to compile`);return x.scopeValue("keyword",typeof W=="function"?{ref:W}:{ref:W,code:(0,b1.stringify)(W)})}function wP(x,Q,W=!1){return!Q.length||Q.some((Y)=>Y==="array"?Array.isArray(x):Y==="object"?x&&typeof x=="object"&&!Array.isArray(x):typeof x==Y||W&&typeof x>"u")}MK.validSchemaType=wP;function KP({schema:x,opts:Q,self:W,errSchemaPath:Y},X,J){if(Array.isArray(X.keyword)?!X.keyword.includes(J):X.keyword!==J)throw Error("ajv implementation error");let G=X.dependencies;if(G===null||G===void 0?void 0:G.some(($)=>!Object.prototype.hasOwnProperty.call(x,$)))throw Error(`parent schema must have dependencies of ${J}: ${G.join(",")}`);if(X.validateSchema){if(!X.validateSchema(x[J])){let b=`keyword "${J}" value is invalid at path "${Y}": `+W.errorsText(X.validateSchema.errors);if(Q.validateSchema==="log")W.logger.error(b);else throw Error(b)}}}MK.validateKeywordUsage=KP});var IK=M((AK)=>{Object.defineProperty(AK,"__esModule",{value:!0});AK.extendSubschemaMode=AK.extendSubschemaData=AK.getSubschema=void 0;var $4=a(),jK=G0();function NP(x,{keyword:Q,schemaProp:W,schema:Y,schemaPath:X,errSchemaPath:J,topSchemaRef:G}){if(Q!==void 0&&Y!==void 0)throw Error('both "keyword" and "schema" passed, only one allowed');if(Q!==void 0){let $=x.schema[Q];return W===void 0?{schema:$,schemaPath:$4._`${x.schemaPath}${(0,$4.getProperty)(Q)}`,errSchemaPath:`${x.errSchemaPath}/${Q}`}:{schema:$[W],schemaPath:$4._`${x.schemaPath}${(0,$4.getProperty)(Q)}${(0,$4.getProperty)(W)}`,errSchemaPath:`${x.errSchemaPath}/${Q}/${(0,jK.escapeFragment)(W)}`}}if(Y!==void 0){if(X===void 0||J===void 0||G===void 0)throw Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:Y,schemaPath:X,topSchemaRef:G,errSchemaPath:J}}throw Error('either "keyword" or "schema" must be passed')}AK.getSubschema=NP;function UP(x,Q,{dataProp:W,dataPropType:Y,data:X,dataTypes:J,propertyName:G}){if(X!==void 0&&W!==void 0)throw Error('both "data" and "dataProp" passed, only one allowed');let{gen:$}=Q;if(W!==void 0){let{errorPath:z,dataPathArr:v,opts:B}=Q,K=$.let("data",$4._`${Q.data}${(0,$4.getProperty)(W)}`,!0);b(K),x.errorPath=$4.str`${z}${(0,jK.getErrorPath)(W,Y,B.jsPropertySyntax)}`,x.parentDataProperty=$4._`${W}`,x.dataPathArr=[...v,x.parentDataProperty]}if(X!==void 0){let z=X instanceof $4.Name?X:$.let("data",X,!0);if(b(z),G!==void 0)x.propertyName=G}if(J)x.dataTypes=J;function b(z){x.data=z,x.dataLevel=Q.dataLevel+1,x.dataTypes=[],Q.definedProperties=new Set,x.parentData=Q.data,x.dataNames=[...Q.dataNames,z]}}AK.extendSubschemaData=UP;function LP(x,{jtdDiscriminator:Q,jtdMetadata:W,compositeRule:Y,createErrors:X,allErrors:J}){if(Y!==void 0)x.compositeRule=Y;if(X!==void 0)x.createErrors=X;if(J!==void 0)x.allErrors=J;x.jtdDiscriminator=Q,x.jtdMetadata=W}AK.extendSubschemaMode=LP});var XX=M((za,EK)=>{EK.exports=function x(Q,W){if(Q===W)return!0;if(Q&&W&&typeof Q=="object"&&typeof W=="object"){if(Q.constructor!==W.constructor)return!1;var Y,X,J;if(Array.isArray(Q)){if(Y=Q.length,Y!=W.length)return!1;for(X=Y;X--!==0;)if(!x(Q[X],W[X]))return!1;return!0}if(Q.constructor===RegExp)return Q.source===W.source&&Q.flags===W.flags;if(Q.valueOf!==Object.prototype.valueOf)return Q.valueOf()===W.valueOf();if(Q.toString!==Object.prototype.toString)return Q.toString()===W.toString();if(J=Object.keys(Q),Y=J.length,Y!==Object.keys(W).length)return!1;for(X=Y;X--!==0;)if(!Object.prototype.hasOwnProperty.call(W,J[X]))return!1;for(X=Y;X--!==0;){var G=J[X];if(!x(Q[G],W[G]))return!1}return!0}return Q!==Q&&W!==W}});var PK=M((va,SK)=>{var m4=SK.exports=function(x,Q,W){if(typeof Q=="function")W=Q,Q={};W=Q.cb||W;var Y=typeof W=="function"?W:W.pre||function(){},X=W.post||function(){};Y3(Q,Y,X,x,"",x)};m4.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};m4.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};m4.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};m4.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 Y3(x,Q,W,Y,X,J,G,$,b,z){if(Y&&typeof Y=="object"&&!Array.isArray(Y)){Q(Y,X,J,G,$,b,z);for(var v in Y){var B=Y[v];if(Array.isArray(B)){if(v in m4.arrayKeywords)for(var K=0;K<B.length;K++)Y3(x,Q,W,B[K],X+"/"+v+"/"+K,J,X,v,Y,K)}else if(v in m4.propsKeywords){if(B&&typeof B=="object")for(var w in B)Y3(x,Q,W,B[w],X+"/"+v+"/"+DP(w),J,X,v,Y,w)}else if(v in m4.keywords||x.allKeys&&!(v in m4.skipKeywords))Y3(x,Q,W,B,X+"/"+v,J,X,v,Y)}W(Y,X,J,G,$,b,z)}}function DP(x){return x.replace(/~/g,"~0").replace(/\//g,"~1")}});var y6=M((CK)=>{Object.defineProperty(CK,"__esModule",{value:!0});CK.getSchemaRefs=CK.resolveUrl=CK.normalizeId=CK._getFullPath=CK.getFullPath=CK.inlineRef=void 0;var cP=G0(),jP=XX(),AP=PK(),OP=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function IP(x,Q=!0){if(typeof x=="boolean")return!0;if(Q===!0)return!JX(x);if(!Q)return!1;return RK(x)<=Q}CK.inlineRef=IP;var EP=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function JX(x){for(let Q in x){if(EP.has(Q))return!0;let W=x[Q];if(Array.isArray(W)&&W.some(JX))return!0;if(typeof W=="object"&&JX(W))return!0}return!1}function RK(x){let Q=0;for(let W in x){if(W==="$ref")return 1/0;if(Q++,OP.has(W))continue;if(typeof x[W]=="object")(0,cP.eachItem)(x[W],(Y)=>Q+=RK(Y));if(Q===1/0)return 1/0}return Q}function ZK(x,Q="",W){if(W!==!1)Q=F8(Q);let Y=x.parse(Q);return iK(x,Y)}CK.getFullPath=ZK;function iK(x,Q){return x.serialize(Q).split("#")[0]+"#"}CK._getFullPath=iK;var SP=/#\/?$/;function F8(x){return x?x.replace(SP,""):""}CK.normalizeId=F8;function PP(x,Q,W){return W=F8(W),x.resolve(Q,W)}CK.resolveUrl=PP;var RP=/^[a-z_][-a-z0-9._]*$/i;function ZP(x,Q){if(typeof x=="boolean")return{};let{schemaId:W,uriResolver:Y}=this.opts,X=F8(x[W]||Q),J={"":X},G=ZK(Y,X,!1),$={},b=new Set;return AP(x,{allKeys:!0},(B,K,w,V)=>{if(V===void 0)return;let N=G+K,U=J[V];if(typeof B[W]=="string")U=q.call(this,B[W]);L.call(this,B.$anchor),L.call(this,B.$dynamicAnchor),J[K]=U;function q(c){let S=this.opts.uriResolver.resolve;if(c=F8(U?S(U,c):c),b.has(c))throw v(c);b.add(c);let i=this.refs[c];if(typeof i=="string")i=this.refs[i];if(typeof i=="object")z(B,i.schema,c);else if(c!==F8(N))if(c[0]==="#")z(B,$[c],c),$[c]=B;else this.refs[c]=N;return c}function L(c){if(typeof c=="string"){if(!RP.test(c))throw Error(`invalid anchor "${c}"`);q.call(this,`#${c}`)}}}),$;function z(B,K,w){if(K!==void 0&&!jP(B,K))throw v(w)}function v(B){return Error(`reference "${B}" resolves to more than one schema`)}}CK.getSchemaRefs=ZP});var o6=M((rK)=>{Object.defineProperty(rK,"__esModule",{value:!0});rK.getData=rK.KeywordCxt=rK.validateFunctionCode=void 0;var lK=ew(),kK=f6(),$X=sY(),X3=f6(),uP=HK(),h6=cK(),GX=IK(),u=a(),f=V4(),pP=y6(),q4=G0(),g6=m6();function lP(x){if(fK(x)){if(yK(x),mK(x)){fP(x);return}}nK(x,()=>(0,lK.topBoolOrEmptySchema)(x))}rK.validateFunctionCode=lP;function nK({gen:x,validateName:Q,schema:W,schemaEnv:Y,opts:X},J){if(X.code.es5)x.func(Q,u._`${f.default.data}, ${f.default.valCxt}`,Y.$async,()=>{x.code(u._`"use strict"; ${_K(W,X)}`),mP(x,X),x.code(J)});else x.func(Q,u._`${f.default.data}, ${nP(X)}`,Y.$async,()=>x.code(_K(W,X)).code(J))}function nP(x){return u._`{${f.default.instancePath}="", ${f.default.parentData}, ${f.default.parentDataProperty}, ${f.default.rootData}=${f.default.data}${x.dynamicRef?u._`, ${f.default.dynamicAnchors}={}`:u.nil}}={}`}function mP(x,Q){x.if(f.default.valCxt,()=>{if(x.var(f.default.instancePath,u._`${f.default.valCxt}.${f.default.instancePath}`),x.var(f.default.parentData,u._`${f.default.valCxt}.${f.default.parentData}`),x.var(f.default.parentDataProperty,u._`${f.default.valCxt}.${f.default.parentDataProperty}`),x.var(f.default.rootData,u._`${f.default.valCxt}.${f.default.rootData}`),Q.dynamicRef)x.var(f.default.dynamicAnchors,u._`${f.default.valCxt}.${f.default.dynamicAnchors}`)},()=>{if(x.var(f.default.instancePath,u._`""`),x.var(f.default.parentData,u._`undefined`),x.var(f.default.parentDataProperty,u._`undefined`),x.var(f.default.rootData,f.default.data),Q.dynamicRef)x.var(f.default.dynamicAnchors,u._`{}`)})}function fP(x){let{schema:Q,opts:W,gen:Y}=x;nK(x,()=>{if(W.$comment&&Q.$comment)hK(x);if(aP(x),Y.let(f.default.vErrors,null),Y.let(f.default.errors,0),W.unevaluated)yP(x);gK(x),sP(x)});return}function yP(x){let{gen:Q,validateName:W}=x;x.evaluated=Q.const("evaluated",u._`${W}.evaluated`),Q.if(u._`${x.evaluated}.dynamicProps`,()=>Q.assign(u._`${x.evaluated}.props`,u._`undefined`)),Q.if(u._`${x.evaluated}.dynamicItems`,()=>Q.assign(u._`${x.evaluated}.items`,u._`undefined`))}function _K(x,Q){let W=typeof x=="object"&&x[Q.schemaId];return W&&(Q.code.source||Q.code.process)?u._`/*# sourceURL=${W} */`:u.nil}function gP(x,Q){if(fK(x)){if(yK(x),mK(x)){hP(x,Q);return}}(0,lK.boolOrEmptySchema)(x,Q)}function mK({schema:x,self:Q}){if(typeof x=="boolean")return!x;for(let W in x)if(Q.RULES.all[W])return!0;return!1}function fK(x){return typeof x.schema!="boolean"}function hP(x,Q){let{schema:W,gen:Y,opts:X}=x;if(X.$comment&&W.$comment)hK(x);dP(x),rP(x);let J=Y.const("_errs",f.default.errors);gK(x,J),Y.var(Q,u._`${J} === ${f.default.errors}`)}function yK(x){(0,q4.checkUnknownRules)(x),oP(x)}function gK(x,Q){if(x.opts.jtd)return uK(x,[],!1,Q);let W=(0,kK.getSchemaTypes)(x.schema),Y=(0,kK.coerceAndCheckDataType)(x,W);uK(x,W,!Y,Q)}function oP(x){let{schema:Q,errSchemaPath:W,opts:Y,self:X}=x;if(Q.$ref&&Y.ignoreKeywordsWithRef&&(0,q4.schemaHasRulesButRef)(Q,X.RULES))X.logger.warn(`$ref: keywords ignored in schema at path "${W}"`)}function aP(x){let{schema:Q,opts:W}=x;if(Q.default!==void 0&&W.useDefaults&&W.strictSchema)(0,q4.checkStrictMode)(x,"default is ignored in the schema root")}function dP(x){let Q=x.schema[x.opts.schemaId];if(Q)x.baseId=(0,pP.resolveUrl)(x.opts.uriResolver,x.baseId,Q)}function rP(x){if(x.schema.$async&&!x.schemaEnv.$async)throw Error("async schema in sync schema")}function hK({gen:x,schemaEnv:Q,schema:W,errSchemaPath:Y,opts:X}){let J=W.$comment;if(X.$comment===!0)x.code(u._`${f.default.self}.logger.log(${J})`);else if(typeof X.$comment=="function"){let G=u.str`${Y}/$comment`,$=x.scopeValue("root",{ref:Q.root});x.code(u._`${f.default.self}.opts.$comment(${J}, ${G}, ${$}.schema)`)}}function sP(x){let{gen:Q,schemaEnv:W,validateName:Y,ValidationError:X,opts:J}=x;if(W.$async)Q.if(u._`${f.default.errors} === 0`,()=>Q.return(f.default.data),()=>Q.throw(u._`new ${X}(${f.default.vErrors})`));else{if(Q.assign(u._`${Y}.errors`,f.default.vErrors),J.unevaluated)tP(x);Q.return(u._`${f.default.errors} === 0`)}}function tP({gen:x,evaluated:Q,props:W,items:Y}){if(W instanceof u.Name)x.assign(u._`${Q}.props`,W);if(Y instanceof u.Name)x.assign(u._`${Q}.items`,Y)}function uK(x,Q,W,Y){let{gen:X,schema:J,data:G,allErrors:$,opts:b,self:z}=x,{RULES:v}=z;if(J.$ref&&(b.ignoreKeywordsWithRef||!(0,q4.schemaHasRulesButRef)(J,v))){X.block(()=>aK(x,"$ref",v.all.$ref.definition));return}if(!b.jtd)eP(x,Q);X.block(()=>{for(let K of v.rules)B(K);B(v.post)});function B(K){if(!(0,$X.shouldUseGroup)(J,K))return;if(K.type){if(X.if((0,X3.checkDataType)(K.type,G,b.strictNumbers)),pK(x,K),Q.length===1&&Q[0]===K.type&&W)X.else(),(0,X3.reportTypeError)(x);X.endIf()}else pK(x,K);if(!$)X.if(u._`${f.default.errors} === ${Y||0}`)}}function pK(x,Q){let{gen:W,schema:Y,opts:{useDefaults:X}}=x;if(X)(0,uP.assignDefaults)(x,Q.type);W.block(()=>{for(let J of Q.rules)if((0,$X.shouldUseRule)(Y,J))aK(x,J.keyword,J.definition,Q.type)})}function eP(x,Q){if(x.schemaEnv.meta||!x.opts.strictTypes)return;if(xR(x,Q),!x.opts.allowUnionTypes)QR(x,Q);WR(x,x.dataTypes)}function xR(x,Q){if(!Q.length)return;if(!x.dataTypes.length){x.dataTypes=Q;return}Q.forEach((W)=>{if(!oK(x.dataTypes,W))bX(x,`type "${W}" not allowed by context "${x.dataTypes.join(",")}"`)}),XR(x,Q)}function QR(x,Q){if(Q.length>1&&!(Q.length===2&&Q.includes("null")))bX(x,"use allowUnionTypes to allow union type keyword")}function WR(x,Q){let W=x.self.RULES.all;for(let Y in W){let X=W[Y];if(typeof X=="object"&&(0,$X.shouldUseRule)(x.schema,X)){let{type:J}=X.definition;if(J.length&&!J.some((G)=>YR(Q,G)))bX(x,`missing type "${J.join(",")}" for keyword "${Y}"`)}}}function YR(x,Q){return x.includes(Q)||Q==="number"&&x.includes("integer")}function oK(x,Q){return x.includes(Q)||Q==="integer"&&x.includes("number")}function XR(x,Q){let W=[];for(let Y of x.dataTypes)if(oK(Q,Y))W.push(Y);else if(Q.includes("integer")&&Y==="number")W.push("integer");x.dataTypes=W}function bX(x,Q){let W=x.schemaEnv.baseId+x.errSchemaPath;Q+=` at "${W}" (strictTypes)`,(0,q4.checkStrictMode)(x,Q,x.opts.strictTypes)}class zX{constructor(x,Q,W){if((0,h6.validateKeywordUsage)(x,Q,W),this.gen=x.gen,this.allErrors=x.allErrors,this.keyword=W,this.data=x.data,this.schema=x.schema[W],this.$data=Q.$data&&x.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,q4.schemaRefOrVal)(x,this.schema,W,this.$data),this.schemaType=Q.schemaType,this.parentSchema=x.schema,this.params={},this.it=x,this.def=Q,this.$data)this.schemaCode=x.gen.const("vSchema",dK(this.$data,x));else if(this.schemaCode=this.schemaValue,!(0,h6.validSchemaType)(this.schema,Q.schemaType,Q.allowUndefined))throw Error(`${W} value must be ${JSON.stringify(Q.schemaType)}`);if("code"in Q?Q.trackErrors:Q.errors!==!1)this.errsCount=x.gen.const("_errs",f.default.errors)}result(x,Q,W){this.failResult((0,u.not)(x),Q,W)}failResult(x,Q,W){if(this.gen.if(x),W)W();else this.error();if(Q){if(this.gen.else(),Q(),this.allErrors)this.gen.endIf()}else if(this.allErrors)this.gen.endIf();else this.gen.else()}pass(x,Q){this.failResult((0,u.not)(x),void 0,Q)}fail(x){if(x===void 0){if(this.error(),!this.allErrors)this.gen.if(!1);return}if(this.gen.if(x),this.error(),this.allErrors)this.gen.endIf();else this.gen.else()}fail$data(x){if(!this.$data)return this.fail(x);let{schemaCode:Q}=this;this.fail(u._`${Q} !== undefined && (${(0,u.or)(this.invalid$data(),x)})`)}error(x,Q,W){if(Q){this.setParams(Q),this._error(x,W),this.setParams({});return}this._error(x,W)}_error(x,Q){(x?g6.reportExtraError:g6.reportError)(this,this.def.error,Q)}$dataError(){(0,g6.reportError)(this,this.def.$dataError||g6.keyword$DataError)}reset(){if(this.errsCount===void 0)throw Error('add "trackErrors" to keyword definition');(0,g6.resetErrorsCount)(this.gen,this.errsCount)}ok(x){if(!this.allErrors)this.gen.if(x)}setParams(x,Q){if(Q)Object.assign(this.params,x);else this.params=x}block$data(x,Q,W=u.nil){this.gen.block(()=>{this.check$data(x,W),Q()})}check$data(x=u.nil,Q=u.nil){if(!this.$data)return;let{gen:W,schemaCode:Y,schemaType:X,def:J}=this;if(W.if((0,u.or)(u._`${Y} === undefined`,Q)),x!==u.nil)W.assign(x,!0);if(X.length||J.validateSchema){if(W.elseIf(this.invalid$data()),this.$dataError(),x!==u.nil)W.assign(x,!1)}W.else()}invalid$data(){let{gen:x,schemaCode:Q,schemaType:W,def:Y,it:X}=this;return(0,u.or)(J(),G());function J(){if(W.length){if(!(Q instanceof u.Name))throw Error("ajv implementation error");let $=Array.isArray(W)?W:[W];return u._`${(0,X3.checkDataTypes)($,Q,X.opts.strictNumbers,X3.DataType.Wrong)}`}return u.nil}function G(){if(Y.validateSchema){let $=x.scopeValue("validate$data",{ref:Y.validateSchema});return u._`!${$}(${Q})`}return u.nil}}subschema(x,Q){let W=(0,GX.getSubschema)(this.it,x);(0,GX.extendSubschemaData)(W,this.it,x),(0,GX.extendSubschemaMode)(W,x);let Y={...this.it,...W,items:void 0,props:void 0};return gP(Y,Q),Y}mergeEvaluated(x,Q){let{it:W,gen:Y}=this;if(!W.opts.unevaluated)return;if(W.props!==!0&&x.props!==void 0)W.props=q4.mergeEvaluated.props(Y,x.props,W.props,Q);if(W.items!==!0&&x.items!==void 0)W.items=q4.mergeEvaluated.items(Y,x.items,W.items,Q)}mergeValidEvaluated(x,Q){let{it:W,gen:Y}=this;if(W.opts.unevaluated&&(W.props!==!0||W.items!==!0))return Y.if(Q,()=>this.mergeEvaluated(x,u.Name)),!0}}rK.KeywordCxt=zX;function aK(x,Q,W,Y){let X=new zX(x,W,Q);if("code"in W)W.code(X,Y);else if(X.$data&&W.validate)(0,h6.funcKeywordCode)(X,W);else if("macro"in W)(0,h6.macroKeywordCode)(X,W);else if(W.compile||W.validate)(0,h6.funcKeywordCode)(X,W)}var JR=/^\/(?:[^~]|~0|~1)*$/,GR=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function dK(x,{dataLevel:Q,dataNames:W,dataPathArr:Y}){let X,J;if(x==="")return f.default.rootData;if(x[0]==="/"){if(!JR.test(x))throw Error(`Invalid JSON-pointer: ${x}`);X=x,J=f.default.rootData}else{let z=GR.exec(x);if(!z)throw Error(`Invalid JSON-pointer: ${x}`);let v=+z[1];if(X=z[2],X==="#"){if(v>=Q)throw Error(b("property/index",v));return Y[Q-v]}if(v>Q)throw Error(b("data",v));if(J=W[Q-v],!X)return J}let G=J,$=X.split("/");for(let z of $)if(z)J=u._`${J}${(0,u.getProperty)((0,q4.unescapeJsonPointer)(z))}`,G=u._`${G} && ${J}`;return G;function b(z,v){return`Cannot access ${z} ${v} levels up, current level is ${Q}`}}rK.getData=dK});var J3=M((eK)=>{Object.defineProperty(eK,"__esModule",{value:!0});class tK extends Error{constructor(x){super("validation failed");this.errors=x,this.ajv=this.validation=!0}}eK.default=tK});var a6=M((QH)=>{Object.defineProperty(QH,"__esModule",{value:!0});var vX=y6();class xH extends Error{constructor(x,Q,W,Y){super(Y||`can't resolve reference ${W} from id ${Q}`);this.missingRef=(0,vX.resolveUrl)(x,Q,W),this.missingSchema=(0,vX.normalizeId)((0,vX.getFullPath)(x,this.missingRef))}}QH.default=xH});var $3=M((XH)=>{Object.defineProperty(XH,"__esModule",{value:!0});XH.resolveSchema=XH.getCompilingSchema=XH.resolveRef=XH.compileSchema=XH.SchemaEnv=void 0;var r1=a(),BR=J3(),Dx=V4(),s1=y6(),WH=G0(),wR=o6();class d6{constructor(x){var Q;this.refs={},this.dynamicAnchors={};let W;if(typeof x.schema=="object")W=x.schema;this.schema=x.schema,this.schemaId=x.schemaId,this.root=x.root||this,this.baseId=(Q=x.baseId)!==null&&Q!==void 0?Q:(0,s1.normalizeId)(W===null||W===void 0?void 0:W[x.schemaId||"$id"]),this.schemaPath=x.schemaPath,this.localRefs=x.localRefs,this.meta=x.meta,this.$async=W===null||W===void 0?void 0:W.$async,this.refs={}}}XH.SchemaEnv=d6;function wX(x){let Q=YH.call(this,x);if(Q)return Q;let W=(0,s1.getFullPath)(this.opts.uriResolver,x.root.baseId),{es5:Y,lines:X}=this.opts.code,{ownProperties:J}=this.opts,G=new r1.CodeGen(this.scope,{es5:Y,lines:X,ownProperties:J}),$;if(x.$async)$=G.scopeValue("Error",{ref:BR.default,code:r1._`require("ajv/dist/runtime/validation_error").default`});let b=G.scopeName("validate");x.validateName=b;let z={gen:G,allErrors:this.opts.allErrors,data:Dx.default.data,parentData:Dx.default.parentData,parentDataProperty:Dx.default.parentDataProperty,dataNames:[Dx.default.data],dataPathArr:[r1.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:G.scopeValue("schema",this.opts.code.source===!0?{ref:x.schema,code:(0,r1.stringify)(x.schema)}:{ref:x.schema}),validateName:b,ValidationError:$,schema:x.schema,schemaEnv:x,rootId:W,baseId:x.baseId||W,schemaPath:r1.nil,errSchemaPath:x.schemaPath||(this.opts.jtd?"":"#"),errorPath:r1._`""`,opts:this.opts,self:this},v;try{this._compilations.add(x),(0,wR.validateFunctionCode)(z),G.optimize(this.opts.code.optimize);let B=G.toString();if(v=`${G.scopeRefs(Dx.default.scope)}return ${B}`,this.opts.code.process)v=this.opts.code.process(v,x);let w=Function(`${Dx.default.self}`,`${Dx.default.scope}`,v)(this,this.scope.get());if(this.scope.value(b,{ref:w}),w.errors=null,w.schema=x.schema,w.schemaEnv=x,x.$async)w.$async=!0;if(this.opts.code.source===!0)w.source={validateName:b,validateCode:B,scopeValues:G._values};if(this.opts.unevaluated){let{props:V,items:N}=z;if(w.evaluated={props:V instanceof r1.Name?void 0:V,items:N instanceof r1.Name?void 0:N,dynamicProps:V instanceof r1.Name,dynamicItems:N instanceof r1.Name},w.source)w.source.evaluated=(0,r1.stringify)(w.evaluated)}return x.validate=w,x}catch(B){if(delete x.validate,delete x.validateName,v)this.logger.error("Error compiling schema, function code:",v);throw B}finally{this._compilations.delete(x)}}XH.compileSchema=wX;function KR(x,Q,W){var Y;W=(0,s1.resolveUrl)(this.opts.uriResolver,Q,W);let X=x.refs[W];if(X)return X;let J=qR.call(this,x,W);if(J===void 0){let G=(Y=x.localRefs)===null||Y===void 0?void 0:Y[W],{schemaId:$}=this.opts;if(G)J=new d6({schema:G,schemaId:$,root:x,baseId:Q})}if(J===void 0)return;return x.refs[W]=HR.call(this,J)}XH.resolveRef=KR;function HR(x){if((0,s1.inlineRef)(x.schema,this.opts.inlineRefs))return x.schema;return x.validate?x:wX.call(this,x)}function YH(x){for(let Q of this._compilations)if(VR(Q,x))return Q}XH.getCompilingSchema=YH;function VR(x,Q){return x.schema===Q.schema&&x.root===Q.root&&x.baseId===Q.baseId}function qR(x,Q){let W;while(typeof(W=this.refs[Q])=="string")Q=W;return W||this.schemas[Q]||G3.call(this,x,Q)}function G3(x,Q){let W=this.opts.uriResolver.parse(Q),Y=(0,s1._getFullPath)(this.opts.uriResolver,W),X=(0,s1.getFullPath)(this.opts.uriResolver,x.baseId,void 0);if(Object.keys(x.schema).length>0&&Y===X)return BX.call(this,W,x);let J=(0,s1.normalizeId)(Y),G=this.refs[J]||this.schemas[J];if(typeof G=="string"){let $=G3.call(this,x,G);if(typeof($===null||$===void 0?void 0:$.schema)!=="object")return;return BX.call(this,W,$)}if(typeof(G===null||G===void 0?void 0:G.schema)!=="object")return;if(!G.validate)wX.call(this,G);if(J===(0,s1.normalizeId)(Q)){let{schema:$}=G,{schemaId:b}=this.opts,z=$[b];if(z)X=(0,s1.resolveUrl)(this.opts.uriResolver,X,z);return new d6({schema:$,schemaId:b,root:x,baseId:X})}return BX.call(this,W,G)}XH.resolveSchema=G3;var NR=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function BX(x,{baseId:Q,schema:W,root:Y}){var X;if(((X=x.fragment)===null||X===void 0?void 0:X[0])!=="/")return;for(let $ of x.fragment.slice(1).split("/")){if(typeof W==="boolean")return;let b=W[(0,WH.unescapeFragment)($)];if(b===void 0)return;W=b;let z=typeof W==="object"&&W[this.opts.schemaId];if(!NR.has($)&&z)Q=(0,s1.resolveUrl)(this.opts.uriResolver,Q,z)}let J;if(typeof W!="boolean"&&W.$ref&&!(0,WH.schemaHasRulesButRef)(W,this.RULES)){let $=(0,s1.resolveUrl)(this.opts.uriResolver,Q,W.$ref);J=G3.call(this,Y,$)}let{schemaId:G}=this.opts;if(J=J||new d6({schema:W,schemaId:G,root:Y,baseId:Q}),J.schema!==J.root.schema)return J;return}});var GH=M((qa,DR)=>{DR.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}});var VX=M((Na,wH)=>{var cR=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),bH=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),KX=RegExp.prototype.test.bind(/^[\da-f]{2}$/iu),zH=RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu),jR=RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);function HX(x){let Q="",W=0,Y=0;for(Y=0;Y<x.length;Y++){if(W=x[Y].charCodeAt(0),W===48)continue;if(!(W>=48&&W<=57||W>=65&&W<=70||W>=97&&W<=102))return"";Q+=x[Y];break}for(Y+=1;Y<x.length;Y++){if(W=x[Y].charCodeAt(0),!(W>=48&&W<=57||W>=65&&W<=70||W>=97&&W<=102))return"";Q+=x[Y]}return Q}var AR=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function $H(x){return x.length=0,!0}function OR(x,Q,W){if(x.length){let Y=HX(x);if(Y!=="")Q.push(Y);else return W.error=!0,!1;x.length=0}return!0}function IR(x){let Q=0,W={error:!1,address:"",zone:""},Y=[],X=[],J=!1,G=!1,$=OR;for(let b=0;b<x.length;b++){let z=x[b];if(z==="["||z==="]")continue;if(z===":"){if(J===!0)G=!0;if(!$(X,Y,W))break;if(++Q>7){W.error=!0;break}if(b>0&&x[b-1]===":")J=!0;Y.push(":");continue}else if(z==="%"){if(!$(X,Y,W))break;$=$H}else{X.push(z);continue}}if(X.length)if($===$H)W.zone=X.join("");else if(G)Y.push(X.join(""));else Y.push(HX(X));return W.address=Y.join(""),W}function vH(x){if(ER(x,":")<2)return{host:x,isIPV6:!1};let Q=IR(x);if(!Q.error){let{address:W,address:Y}=Q;if(Q.zone)W+="%"+Q.zone,Y+="%25"+Q.zone;return{host:W,isIPV6:!0,escapedHost:Y}}else return{host:x,isIPV6:!1}}function ER(x,Q){let W=0;for(let Y=0;Y<x.length;Y++)if(x[Y]===Q)W++;return W}function SR(x){let Q=x,W=[],Y=-1,X=0;while(X=Q.length){if(X===1)if(Q===".")break;else if(Q==="/"){W.push("/");break}else{W.push(Q);break}else if(X===2){if(Q[0]==="."){if(Q[1]===".")break;else if(Q[1]==="/"){Q=Q.slice(2);continue}}else if(Q[0]==="/"){if(Q[1]==="."||Q[1]==="/"){W.push("/");break}}}else if(X===3){if(Q==="/.."){if(W.length!==0)W.pop();W.push("/");break}}if(Q[0]==="."){if(Q[1]==="."){if(Q[2]==="/"){Q=Q.slice(3);continue}}else if(Q[1]==="/"){Q=Q.slice(2);continue}}else if(Q[0]==="/"){if(Q[1]==="."){if(Q[2]==="/"){Q=Q.slice(2);continue}else if(Q[2]==="."){if(Q[3]==="/"){if(Q=Q.slice(3),W.length!==0)W.pop();continue}}}}if((Y=Q.indexOf("/",1))===-1){W.push(Q);break}else W.push(Q.slice(0,Y)),Q=Q.slice(Y)}return W.join("")}var PR={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},RR=/[@/?#:]/g,ZR=/[@/?#]/g;function BH(x,Q){let W=Q?ZR:RR;return W.lastIndex=0,x.replace(W,(Y)=>PR[Y])}function iR(x,Q=!1){if(x.indexOf("%")===-1)return x;let W="";for(let Y=0;Y<x.length;Y++){if(x[Y]==="%"&&Y+2<x.length){let X=x.slice(Y+1,Y+3);if(KX(X)){let J=X.toUpperCase(),G=String.fromCharCode(parseInt(J,16));if(Q&&zH(G))W+=G;else W+="%"+J;Y+=2;continue}}W+=x[Y]}return W}function CR(x){let Q="";for(let W=0;W<x.length;W++){if(x[W]==="%"&&W+2<x.length){let Y=x.slice(W+1,W+3);if(KX(Y)){let X=Y.toUpperCase(),J=String.fromCharCode(parseInt(X,16));if(J!=="."&&zH(J))Q+=J;else Q+="%"+X;W+=2;continue}}if(jR(x[W]))Q+=x[W];else Q+=escape(x[W])}return Q}function TR(x){let Q="";for(let W=0;W<x.length;W++){if(x[W]==="%"&&W+2<x.length){let Y=x.slice(W+1,W+3);if(KX(Y)){Q+="%"+Y.toUpperCase(),W+=2;continue}}Q+=escape(x[W])}return Q}function kR(x){let Q=[];if(x.userinfo!==void 0)Q.push(x.userinfo),Q.push("@");if(x.host!==void 0){let W=unescape(x.host);if(!bH(W)){let Y=vH(W);if(Y.isIPV6===!0)W=`[${Y.escapedHost}]`;else W=BH(W,!1)}Q.push(W)}if(typeof x.port==="number"||typeof x.port==="string")Q.push(":"),Q.push(String(x.port));return Q.length?Q.join(""):void 0}wH.exports={nonSimpleDomain:AR,recomposeAuthority:kR,reescapeHostDelimiters:BH,normalizePercentEncoding:iR,normalizePathEncoding:CR,escapePreservingEscapes:TR,removeDotSegments:SR,isIPv4:bH,isUUID:cR,normalizeIPv6:vH,stringArrayToHexStripped:HX}});var NH=M((Ua,qH)=>{var{isUUID:_R}=VX(),uR=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,pR=["http","https","ws","wss","urn","urn:uuid"];function lR(x){return pR.indexOf(x)!==-1}function qX(x){if(x.secure===!0)return!0;else if(x.secure===!1)return!1;else if(x.scheme)return 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");else return!1}function KH(x){if(!x.host)x.error=x.error||"HTTP URIs must have a host.";return x}function HH(x){let Q=String(x.scheme).toLowerCase()==="https";if(x.port===(Q?443:80)||x.port==="")x.port=void 0;if(!x.path)x.path="/";return x}function nR(x){return x.secure=qX(x),x.resourceName=(x.path||"/")+(x.query?"?"+x.query:""),x.path=void 0,x.query=void 0,x}function mR(x){if(x.port===(qX(x)?443:80)||x.port==="")x.port=void 0;if(typeof x.secure==="boolean")x.scheme=x.secure?"wss":"ws",x.secure=void 0;if(x.resourceName){let[Q,W]=x.resourceName.split("?");x.path=Q&&Q!=="/"?Q:void 0,x.query=W,x.resourceName=void 0}return x.fragment=void 0,x}function fR(x,Q){if(!x.path)return x.error="URN can not be parsed",x;let W=x.path.match(uR);if(W){let Y=Q.scheme||x.scheme||"urn";x.nid=W[1].toLowerCase(),x.nss=W[2];let X=`${Y}:${Q.nid||x.nid}`,J=NX(X);if(x.path=void 0,J)x=J.parse(x,Q)}else x.error=x.error||"URN can not be parsed.";return x}function yR(x,Q){if(x.nid===void 0)throw Error("URN without nid cannot be serialized");let W=Q.scheme||x.scheme||"urn",Y=x.nid.toLowerCase(),X=`${W}:${Q.nid||Y}`,J=NX(X);if(J)x=J.serialize(x,Q);let G=x,$=x.nss;return G.path=`${Y||Q.nid}:${$}`,Q.skipEscape=!0,G}function gR(x,Q){let W=x;if(W.uuid=W.nss,W.nss=void 0,!Q.tolerant&&(!W.uuid||!_R(W.uuid)))W.error=W.error||"UUID is not valid.";return W}function hR(x){let Q=x;return Q.nss=(x.uuid||"").toLowerCase(),Q}var VH={scheme:"http",domainHost:!0,parse:KH,serialize:HH},oR={scheme:"https",domainHost:VH.domainHost,parse:KH,serialize:HH},b3={scheme:"ws",domainHost:!0,parse:nR,serialize:mR},aR={scheme:"wss",domainHost:b3.domainHost,parse:b3.parse,serialize:b3.serialize},dR={scheme:"urn",parse:fR,serialize:yR,skipNormalize:!0},rR={scheme:"urn:uuid",parse:gR,serialize:hR,skipNormalize:!0},z3={http:VH,https:oR,ws:b3,wss:aR,urn:dR,"urn:uuid":rR};Object.setPrototypeOf(z3,null);function NX(x){return x&&(z3[x]||z3[x.toLowerCase()])||void 0}qH.exports={wsIsSecure:qX,SCHEMES:z3,isValidSchemeName:lR,getSchemeHandler:NX}});var cH=M((La,v3)=>{var{normalizeIPv6:sR,removeDotSegments:r6,recomposeAuthority:tR,normalizePercentEncoding:eR,normalizePathEncoding:xZ,escapePreservingEscapes:QZ,reescapeHostDelimiters:WZ,isIPv4:YZ,nonSimpleDomain:XZ}=VX(),{SCHEMES:JZ,getSchemeHandler:LH}=NH();function GZ(x,Q){if(typeof x==="string")x=BZ(x,Q);else if(typeof x==="object")x=M8(cx(x,Q),Q);return x}function $Z(x,Q,W){let Y=W?Object.assign({scheme:"null"},W):{scheme:"null"},X=FH(M8(x,Y),M8(Q,Y),Y,!0);return Y.skipEscape=!0,cx(X,Y)}function FH(x,Q,W,Y){let X={};if(!Y)x=M8(cx(x,W),W),Q=M8(cx(Q,W),W);if(W=W||{},!W.tolerant&&Q.scheme)X.scheme=Q.scheme,X.userinfo=Q.userinfo,X.host=Q.host,X.port=Q.port,X.path=r6(Q.path||""),X.query=Q.query;else{if(Q.userinfo!==void 0||Q.host!==void 0||Q.port!==void 0)X.userinfo=Q.userinfo,X.host=Q.host,X.port=Q.port,X.path=r6(Q.path||""),X.query=Q.query;else{if(!Q.path)if(X.path=x.path,Q.query!==void 0)X.query=Q.query;else X.query=x.query;else{if(Q.path[0]==="/")X.path=r6(Q.path);else{if((x.userinfo!==void 0||x.host!==void 0||x.port!==void 0)&&!x.path)X.path="/"+Q.path;else if(!x.path)X.path=Q.path;else X.path=x.path.slice(0,x.path.lastIndexOf("/")+1)+Q.path;X.path=r6(X.path)}X.query=Q.query}X.userinfo=x.userinfo,X.host=x.host,X.port=x.port}X.scheme=x.scheme}return X.fragment=Q.fragment,X}function bZ(x,Q,W){let Y=UH(x,W),X=UH(Q,W);return Y!==void 0&&X!==void 0&&Y.toLowerCase()===X.toLowerCase()}function cx(x,Q){let W={host:x.host,scheme:x.scheme,userinfo:x.userinfo,port:x.port,path:x.path,query:x.query,nid:x.nid,nss:x.nss,uuid:x.uuid,fragment:x.fragment,reference:x.reference,resourceName:x.resourceName,secure:x.secure,error:""},Y=Object.assign({},Q),X=[],J=LH(Y.scheme||W.scheme);if(J&&J.serialize)J.serialize(W,Y);if(W.path!==void 0)if(!Y.skipEscape){if(W.path=QZ(W.path),W.scheme!==void 0)W.path=W.path.split("%3A").join(":")}else W.path=eR(W.path);if(Y.reference!=="suffix"&&W.scheme)X.push(W.scheme,":");let G=tR(W);if(G!==void 0){if(Y.reference!=="suffix")X.push("//");if(X.push(G),W.path&&W.path[0]!=="/")X.push("/")}if(W.path!==void 0){let $=W.path;if(!Y.absolutePath&&(!J||!J.absolutePath))$=r6($);if(G===void 0&&$[0]==="/"&&$[1]==="/")$="/%2F"+$.slice(2);X.push($)}if(W.query!==void 0)X.push("?",W.query);if(W.fragment!==void 0)X.push("#",W.fragment);return X.join("")}var zZ=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function vZ(x,Q){if(Q[2]!==void 0&&x.path&&x.path[0]!=="/")return'URI path must start with "/" when authority is present.';if(typeof x.port==="number"&&(x.port<0||x.port>65535))return"URI port is malformed.";return}function MH(x,Q){let W=Object.assign({},Q),Y={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},X=!1,J=!1;if(W.reference==="suffix")if(W.scheme)x=W.scheme+":"+x;else x="//"+x;let G=x.match(zZ);if(G){if(Y.scheme=G[1],Y.userinfo=G[3],Y.host=G[4],Y.port=parseInt(G[5],10),Y.path=G[6]||"",Y.query=G[7],Y.fragment=G[8],isNaN(Y.port))Y.port=G[5];let $=vZ(Y,G);if($!==void 0)Y.error=Y.error||$,X=!0;if(Y.host)if(YZ(Y.host)===!1){let v=sR(Y.host);Y.host=v.host.toLowerCase(),J=v.isIPV6}else J=!0;if(Y.scheme===void 0&&Y.userinfo===void 0&&Y.host===void 0&&Y.port===void 0&&Y.query===void 0&&!Y.path)Y.reference="same-document";else if(Y.scheme===void 0)Y.reference="relative";else if(Y.fragment===void 0)Y.reference="absolute";else Y.reference="uri";if(W.reference&&W.reference!=="suffix"&&W.reference!==Y.reference)Y.error=Y.error||"URI is not a "+W.reference+" reference.";let b=LH(W.scheme||Y.scheme);if(!W.unicodeSupport&&(!b||!b.unicodeSupport)){if(Y.host&&(W.domainHost||b&&b.domainHost)&&J===!1&&XZ(Y.host))try{Y.host=URL.domainToASCII(Y.host.toLowerCase())}catch(z){Y.error=Y.error||"Host's domain name can not be converted to ASCII: "+z}}if(!b||b&&!b.skipNormalize){if(x.indexOf("%")!==-1){if(Y.scheme!==void 0)Y.scheme=unescape(Y.scheme);if(Y.host!==void 0)Y.host=WZ(unescape(Y.host),J)}if(Y.path)Y.path=xZ(Y.path);if(Y.fragment)try{Y.fragment=encodeURI(decodeURIComponent(Y.fragment))}catch{Y.error=Y.error||"URI malformed"}}if(b&&b.parse)b.parse(Y,W)}else Y.error=Y.error||"URI can not be parsed.";return{parsed:Y,malformedAuthorityOrPort:X}}function M8(x,Q){return MH(x,Q).parsed}function BZ(x,Q){return DH(x,Q).normalized}function DH(x,Q){let{parsed:W,malformedAuthorityOrPort:Y}=MH(x,Q);return{normalized:Y?x:cx(W,Q),malformedAuthorityOrPort:Y}}function UH(x,Q){if(typeof x==="string"){let{normalized:W,malformedAuthorityOrPort:Y}=DH(x,Q);return Y?void 0:W}if(typeof x==="object")return cx(x,Q)}var UX={SCHEMES:JZ,normalize:GZ,resolve:$Z,resolveComponent:FH,equal:bZ,serialize:cx,parse:M8};v3.exports=UX;v3.exports.default=UX;v3.exports.fastUri=UX});var OH=M((AH)=>{Object.defineProperty(AH,"__esModule",{value:!0});var jH=cH();jH.code='require("ajv/dist/runtime/uri").default';AH.default=jH});var CH=M((N4)=>{Object.defineProperty(N4,"__esModule",{value:!0});N4.CodeGen=N4.Name=N4.nil=N4.stringify=N4.str=N4._=N4.KeywordCxt=void 0;var KZ=o6();Object.defineProperty(N4,"KeywordCxt",{enumerable:!0,get:function(){return KZ.KeywordCxt}});var D8=a();Object.defineProperty(N4,"_",{enumerable:!0,get:function(){return D8._}});Object.defineProperty(N4,"str",{enumerable:!0,get:function(){return D8.str}});Object.defineProperty(N4,"stringify",{enumerable:!0,get:function(){return D8.stringify}});Object.defineProperty(N4,"nil",{enumerable:!0,get:function(){return D8.nil}});Object.defineProperty(N4,"Name",{enumerable:!0,get:function(){return D8.Name}});Object.defineProperty(N4,"CodeGen",{enumerable:!0,get:function(){return D8.CodeGen}});var HZ=J3(),RH=a6(),VZ=rY(),s6=$3(),qZ=a(),t6=y6(),B3=f6(),FX=G0(),IH=GH(),NZ=OH(),ZH=(x,Q)=>new RegExp(x,Q);ZH.code="new RegExp";var UZ=["removeAdditional","useDefaults","coerceTypes"],LZ=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),FZ={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."},MZ={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},EH=200;function DZ(x){var Q,W,Y,X,J,G,$,b,z,v,B,K,w,V,N,U,q,L,c,S,i,y,B0,d,z1;let x1=x.strict,m0=(Q=x.code)===null||Q===void 0?void 0:Q.optimize,o0=m0===!0||m0===void 0?1:m0||0,x4=(Y=(W=x.code)===null||W===void 0?void 0:W.regExp)!==null&&Y!==void 0?Y:ZH,v1=(X=x.uriResolver)!==null&&X!==void 0?X:NZ.default;return{strictSchema:(G=(J=x.strictSchema)!==null&&J!==void 0?J:x1)!==null&&G!==void 0?G:!0,strictNumbers:(b=($=x.strictNumbers)!==null&&$!==void 0?$:x1)!==null&&b!==void 0?b:!0,strictTypes:(v=(z=x.strictTypes)!==null&&z!==void 0?z:x1)!==null&&v!==void 0?v:"log",strictTuples:(K=(B=x.strictTuples)!==null&&B!==void 0?B:x1)!==null&&K!==void 0?K:"log",strictRequired:(V=(w=x.strictRequired)!==null&&w!==void 0?w:x1)!==null&&V!==void 0?V:!1,code:x.code?{...x.code,optimize:o0,regExp:x4}:{optimize:o0,regExp:x4},loopRequired:(N=x.loopRequired)!==null&&N!==void 0?N:EH,loopEnum:(U=x.loopEnum)!==null&&U!==void 0?U:EH,meta:(q=x.meta)!==null&&q!==void 0?q:!0,messages:(L=x.messages)!==null&&L!==void 0?L:!0,inlineRefs:(c=x.inlineRefs)!==null&&c!==void 0?c:!0,schemaId:(S=x.schemaId)!==null&&S!==void 0?S:"$id",addUsedSchema:(i=x.addUsedSchema)!==null&&i!==void 0?i:!0,validateSchema:(y=x.validateSchema)!==null&&y!==void 0?y:!0,validateFormats:(B0=x.validateFormats)!==null&&B0!==void 0?B0:!0,unicodeRegExp:(d=x.unicodeRegExp)!==null&&d!==void 0?d:!0,int32range:(z1=x.int32range)!==null&&z1!==void 0?z1:!0,uriResolver:v1}}class w3{constructor(x={}){this.schemas={},this.refs={},this.formats=Object.create(null),this._compilations=new Set,this._loading={},this._cache=new Map,x=this.opts={...x,...DZ(x)};let{es5:Q,lines:W}=this.opts.code;this.scope=new qZ.ValueScope({scope:{},prefixes:LZ,es5:Q,lines:W}),this.logger=EZ(x.logger);let Y=x.validateFormats;if(x.validateFormats=!1,this.RULES=(0,VZ.getRules)(),SH.call(this,FZ,x,"NOT SUPPORTED"),SH.call(this,MZ,x,"DEPRECATED","warn"),this._metaOpts=OZ.call(this),x.formats)jZ.call(this);if(this._addVocabularies(),this._addDefaultMetaSchema(),x.keywords)AZ.call(this,x.keywords);if(typeof x.meta=="object")this.addMetaSchema(x.meta);cZ.call(this),x.validateFormats=Y}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:x,meta:Q,schemaId:W}=this.opts,Y=IH;if(W==="id")Y={...IH},Y.id=Y.$id,delete Y.$id;if(Q&&x)this.addMetaSchema(Y,Y[W],!1)}defaultMeta(){let{meta:x,schemaId:Q}=this.opts;return this.opts.defaultMeta=typeof x=="object"?x[Q]||x:void 0}validate(x,Q){let W;if(typeof x=="string"){if(W=this.getSchema(x),!W)throw Error(`no schema with key or ref "${x}"`)}else W=this.compile(x);let Y=W(Q);if(!("$async"in W))this.errors=W.errors;return Y}compile(x,Q){let W=this._addSchema(x,Q);return W.validate||this._compileSchemaEnv(W)}compileAsync(x,Q){if(typeof this.opts.loadSchema!="function")throw Error("options.loadSchema should be a function");let{loadSchema:W}=this.opts;return Y.call(this,x,Q);async function Y(z,v){await X.call(this,z.$schema);let B=this._addSchema(z,v);return B.validate||J.call(this,B)}async function X(z){if(z&&!this.getSchema(z))await Y.call(this,{$ref:z},!0)}async function J(z){try{return this._compileSchemaEnv(z)}catch(v){if(!(v instanceof RH.default))throw v;return G.call(this,v),await $.call(this,v.missingSchema),J.call(this,z)}}function G({missingSchema:z,missingRef:v}){if(this.refs[z])throw Error(`AnySchema ${z} is loaded but ${v} cannot be resolved`)}async function $(z){let v=await b.call(this,z);if(!this.refs[z])await X.call(this,v.$schema);if(!this.refs[z])this.addSchema(v,z,Q)}async function b(z){let v=this._loading[z];if(v)return v;try{return await(this._loading[z]=W(z))}finally{delete this._loading[z]}}}addSchema(x,Q,W,Y=this.opts.validateSchema){if(Array.isArray(x)){for(let J of x)this.addSchema(J,void 0,W,Y);return this}let X;if(typeof x==="object"){let{schemaId:J}=this.opts;if(X=x[J],X!==void 0&&typeof X!="string")throw Error(`schema ${J} must be string`)}return Q=(0,t6.normalizeId)(Q||X),this._checkUnique(Q),this.schemas[Q]=this._addSchema(x,W,Q,Y,!0),this}addMetaSchema(x,Q,W=this.opts.validateSchema){return this.addSchema(x,Q,!0,W),this}validateSchema(x,Q){if(typeof x=="boolean")return!0;let W;if(W=x.$schema,W!==void 0&&typeof W!="string")throw Error("$schema must be a string");if(W=W||this.opts.defaultMeta||this.defaultMeta(),!W)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let Y=this.validate(W,x);if(!Y&&Q){let X="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(X);else throw Error(X)}return Y}getSchema(x){let Q;while(typeof(Q=PH.call(this,x))=="string")x=Q;if(Q===void 0){let{schemaId:W}=this.opts,Y=new s6.SchemaEnv({schema:{},schemaId:W});if(Q=s6.resolveSchema.call(this,Y,x),!Q)return;this.refs[x]=Q}return Q.validate||this._compileSchemaEnv(Q)}removeSchema(x){if(x instanceof RegExp)return this._removeAllSchemas(this.schemas,x),this._removeAllSchemas(this.refs,x),this;switch(typeof x){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let Q=PH.call(this,x);if(typeof Q=="object")this._cache.delete(Q.schema);return delete this.schemas[x],delete this.refs[x],this}case"object":{let Q=x;this._cache.delete(Q);let W=x[this.opts.schemaId];if(W)W=(0,t6.normalizeId)(W),delete this.schemas[W],delete this.refs[W];return this}default:throw Error("ajv.removeSchema: invalid parameter")}}addVocabulary(x){for(let Q of x)this.addKeyword(Q);return this}addKeyword(x,Q){let W;if(typeof x=="string"){if(W=x,typeof Q=="object")this.logger.warn("these parameters are deprecated, see docs for addKeyword"),Q.keyword=W}else if(typeof x=="object"&&Q===void 0){if(Q=x,W=Q.keyword,Array.isArray(W)&&!W.length)throw Error("addKeywords: keyword must be string or non-empty array")}else throw Error("invalid addKeywords parameters");if(PZ.call(this,W,Q),!Q)return(0,FX.eachItem)(W,(X)=>LX.call(this,X)),this;ZZ.call(this,Q);let Y={...Q,type:(0,B3.getJSONTypes)(Q.type),schemaType:(0,B3.getJSONTypes)(Q.schemaType)};return(0,FX.eachItem)(W,Y.type.length===0?(X)=>LX.call(this,X,Y):(X)=>Y.type.forEach((J)=>LX.call(this,X,Y,J))),this}getKeyword(x){let Q=this.RULES.all[x];return typeof Q=="object"?Q.definition:!!Q}removeKeyword(x){let{RULES:Q}=this;delete Q.keywords[x],delete Q.all[x];for(let W of Q.rules){let Y=W.rules.findIndex((X)=>X.keyword===x);if(Y>=0)W.rules.splice(Y,1)}return this}addFormat(x,Q){if(typeof Q=="string")Q=new RegExp(Q);return this.formats[x]=Q,this}errorsText(x=this.errors,{separator:Q=", ",dataVar:W="data"}={}){if(!x||x.length===0)return"No errors";return x.map((Y)=>`${W}${Y.instancePath} ${Y.message}`).reduce((Y,X)=>Y+Q+X)}$dataMetaSchema(x,Q){let W=this.RULES.all;x=JSON.parse(JSON.stringify(x));for(let Y of Q){let X=Y.split("/").slice(1),J=x;for(let G of X)J=J[G];for(let G in W){let $=W[G];if(typeof $!="object")continue;let{$data:b}=$.definition,z=J[G];if(b&&z)J[G]=iH(z)}}return x}_removeAllSchemas(x,Q){for(let W in x){let Y=x[W];if(!Q||Q.test(W)){if(typeof Y=="string")delete x[W];else if(Y&&!Y.meta)this._cache.delete(Y.schema),delete x[W]}}}_addSchema(x,Q,W,Y=this.opts.validateSchema,X=this.opts.addUsedSchema){let J,{schemaId:G}=this.opts;if(typeof x=="object")J=x[G];else if(this.opts.jtd)throw Error("schema must be object");else if(typeof x!="boolean")throw Error("schema must be object or boolean");let $=this._cache.get(x);if($!==void 0)return $;W=(0,t6.normalizeId)(J||W);let b=t6.getSchemaRefs.call(this,x,W);if($=new s6.SchemaEnv({schema:x,schemaId:G,meta:Q,baseId:W,localRefs:b}),this._cache.set($.schema,$),X&&!W.startsWith("#")){if(W)this._checkUnique(W);this.refs[W]=$}if(Y)this.validateSchema(x,!0);return $}_checkUnique(x){if(this.schemas[x]||this.refs[x])throw Error(`schema with key or id "${x}" already exists`)}_compileSchemaEnv(x){if(x.meta)this._compileMetaSchema(x);else s6.compileSchema.call(this,x);if(!x.validate)throw Error("ajv implementation error");return x.validate}_compileMetaSchema(x){let Q=this.opts;this.opts=this._metaOpts;try{s6.compileSchema.call(this,x)}finally{this.opts=Q}}}w3.ValidationError=HZ.default;w3.MissingRefError=RH.default;N4.default=w3;function SH(x,Q,W,Y="error"){for(let X in x){let J=X;if(J in Q)this.logger[Y](`${W}: option ${X}. ${x[J]}`)}}function PH(x){return x=(0,t6.normalizeId)(x),this.schemas[x]||this.refs[x]}function cZ(){let x=this.opts.schemas;if(!x)return;if(Array.isArray(x))this.addSchema(x);else for(let Q in x)this.addSchema(x[Q],Q)}function jZ(){for(let x in this.opts.formats){let Q=this.opts.formats[x];if(Q)this.addFormat(x,Q)}}function AZ(x){if(Array.isArray(x)){this.addVocabulary(x);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let Q in x){let W=x[Q];if(!W.keyword)W.keyword=Q;this.addKeyword(W)}}function OZ(){let x={...this.opts};for(let Q of UZ)delete x[Q];return x}var IZ={log(){},warn(){},error(){}};function EZ(x){if(x===!1)return IZ;if(x===void 0)return console;if(x.log&&x.warn&&x.error)return x;throw Error("logger must implement log, warn and error methods")}var SZ=/^[a-z_$][a-z0-9_$:-]*$/i;function PZ(x,Q){let{RULES:W}=this;if((0,FX.eachItem)(x,(Y)=>{if(W.keywords[Y])throw Error(`Keyword ${Y} is already defined`);if(!SZ.test(Y))throw Error(`Keyword ${Y} has invalid name`)}),!Q)return;if(Q.$data&&!(("code"in Q)||("validate"in Q)))throw Error('$data keyword must have "code" or "validate" function')}function LX(x,Q,W){var Y;let X=Q===null||Q===void 0?void 0:Q.post;if(W&&X)throw Error('keyword with "post" flag cannot have "type"');let{RULES:J}=this,G=X?J.post:J.rules.find(({type:b})=>b===W);if(!G)G={type:W,rules:[]},J.rules.push(G);if(J.keywords[x]=!0,!Q)return;let $={keyword:x,definition:{...Q,type:(0,B3.getJSONTypes)(Q.type),schemaType:(0,B3.getJSONTypes)(Q.schemaType)}};if(Q.before)RZ.call(this,G,$,Q.before);else G.rules.push($);J.all[x]=$,(Y=Q.implements)===null||Y===void 0||Y.forEach((b)=>this.addKeyword(b))}function RZ(x,Q,W){let Y=x.rules.findIndex((X)=>X.keyword===W);if(Y>=0)x.rules.splice(Y,0,Q);else x.rules.push(Q),this.logger.warn(`rule ${W} is not defined`)}function ZZ(x){let{metaSchema:Q}=x;if(Q===void 0)return;if(x.$data&&this.opts.$data)Q=iH(Q);x.validateSchema=this.compile(Q,!0)}var iZ={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function iH(x){return{anyOf:[x,iZ]}}});var kH=M((TH)=>{Object.defineProperty(TH,"__esModule",{value:!0});var kZ={keyword:"id",code(){throw Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};TH.default=kZ});var mH=M((lH)=>{Object.defineProperty(lH,"__esModule",{value:!0});lH.callRef=lH.getValidate=void 0;var uZ=a6(),_H=C1(),N1=a(),c8=V4(),uH=$3(),K3=G0(),pZ={keyword:"$ref",schemaType:"string",code(x){let{gen:Q,schema:W,it:Y}=x,{baseId:X,schemaEnv:J,validateName:G,opts:$,self:b}=Y,{root:z}=J;if((W==="#"||W==="#/")&&X===z.baseId)return B();let v=uH.resolveRef.call(b,z,X,W);if(v===void 0)throw new uZ.default(Y.opts.uriResolver,X,W);if(v instanceof uH.SchemaEnv)return K(v);return w(v);function B(){if(J===z)return H3(x,G,J,J.$async);let V=Q.scopeValue("root",{ref:z});return H3(x,N1._`${V}.validate`,z,z.$async)}function K(V){let N=pH(x,V);H3(x,N,V,V.$async)}function w(V){let N=Q.scopeValue("schema",$.code.source===!0?{ref:V,code:(0,N1.stringify)(V)}:{ref:V}),U=Q.name("valid"),q=x.subschema({schema:V,dataTypes:[],schemaPath:N1.nil,topSchemaRef:N,errSchemaPath:W},U);x.mergeEvaluated(q),x.ok(U)}}};function pH(x,Q){let{gen:W}=x;return Q.validate?W.scopeValue("validate",{ref:Q.validate}):N1._`${W.scopeValue("wrapper",{ref:Q})}.validate`}lH.getValidate=pH;function H3(x,Q,W,Y){let{gen:X,it:J}=x,{allErrors:G,schemaEnv:$,opts:b}=J,z=b.passContext?c8.default.this:N1.nil;if(Y)v();else B();function v(){if(!$.$async)throw Error("async schema referenced by sync schema");let V=X.let("valid");X.try(()=>{if(X.code(N1._`await ${(0,_H.callValidateCode)(x,Q,z)}`),w(Q),!G)X.assign(V,!0)},(N)=>{if(X.if(N1._`!(${N} instanceof ${J.ValidationError})`,()=>X.throw(N)),K(N),!G)X.assign(V,!1)}),x.ok(V)}function B(){x.result((0,_H.callValidateCode)(x,Q,z),()=>w(Q),()=>K(Q))}function K(V){let N=N1._`${V}.errors`;X.assign(c8.default.vErrors,N1._`${c8.default.vErrors} === null ? ${N} : ${c8.default.vErrors}.concat(${N})`),X.assign(c8.default.errors,N1._`${c8.default.vErrors}.length`)}function w(V){var N;if(!J.opts.unevaluated)return;let U=(N=W===null||W===void 0?void 0:W.validate)===null||N===void 0?void 0:N.evaluated;if(J.props!==!0)if(U&&!U.dynamicProps){if(U.props!==void 0)J.props=K3.mergeEvaluated.props(X,U.props,J.props)}else{let q=X.var("props",N1._`${V}.evaluated.props`);J.props=K3.mergeEvaluated.props(X,q,J.props,N1.Name)}if(J.items!==!0)if(U&&!U.dynamicItems){if(U.items!==void 0)J.items=K3.mergeEvaluated.items(X,U.items,J.items)}else{let q=X.var("items",N1._`${V}.evaluated.items`);J.items=K3.mergeEvaluated.items(X,q,J.items,N1.Name)}}}lH.callRef=H3;lH.default=pZ});var yH=M((fH)=>{Object.defineProperty(fH,"__esModule",{value:!0});var mZ=kH(),fZ=mH(),yZ=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",mZ.default,fZ.default];fH.default=yZ});var hH=M((gH)=>{Object.defineProperty(gH,"__esModule",{value:!0});var V3=a(),f4=V3.operators,q3={maximum:{okStr:"<=",ok:f4.LTE,fail:f4.GT},minimum:{okStr:">=",ok:f4.GTE,fail:f4.LT},exclusiveMaximum:{okStr:"<",ok:f4.LT,fail:f4.GTE},exclusiveMinimum:{okStr:">",ok:f4.GT,fail:f4.LTE}},hZ={message:({keyword:x,schemaCode:Q})=>V3.str`must be ${q3[x].okStr} ${Q}`,params:({keyword:x,schemaCode:Q})=>V3._`{comparison: ${q3[x].okStr}, limit: ${Q}}`},oZ={keyword:Object.keys(q3),type:"number",schemaType:"number",$data:!0,error:hZ,code(x){let{keyword:Q,data:W,schemaCode:Y}=x;x.fail$data(V3._`${W} ${q3[Q].fail} ${Y} || isNaN(${W})`)}};gH.default=oZ});var aH=M((oH)=>{Object.defineProperty(oH,"__esModule",{value:!0});var e6=a(),dZ={message:({schemaCode:x})=>e6.str`must be multiple of ${x}`,params:({schemaCode:x})=>e6._`{multipleOf: ${x}}`},rZ={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:dZ,code(x){let{gen:Q,data:W,schemaCode:Y,it:X}=x,J=X.opts.multipleOfPrecision,G=Q.let("res"),$=J?e6._`Math.abs(Math.round(${G}) - ${G}) > 1e-${J}`:e6._`${G} !== parseInt(${G})`;x.fail$data(e6._`(${Y} === 0 || (${G} = ${W}/${Y}, ${$}))`)}};oH.default=rZ});var sH=M((rH)=>{Object.defineProperty(rH,"__esModule",{value:!0});function dH(x){let Q=x.length,W=0,Y=0,X;while(Y<Q)if(W++,X=x.charCodeAt(Y++),X>=55296&&X<=56319&&Y<Q){if(X=x.charCodeAt(Y),(X&64512)===56320)Y++}return W}rH.default=dH;dH.code='require("ajv/dist/runtime/ucs2length").default'});var eH=M((tH)=>{Object.defineProperty(tH,"__esModule",{value:!0});var jx=a(),eZ=G0(),xi=sH(),Qi={message({keyword:x,schemaCode:Q}){let W=x==="maxLength"?"more":"fewer";return jx.str`must NOT have ${W} than ${Q} characters`},params:({schemaCode:x})=>jx._`{limit: ${x}}`},Wi={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:Qi,code(x){let{keyword:Q,data:W,schemaCode:Y,it:X}=x,J=Q==="maxLength"?jx.operators.GT:jx.operators.LT,G=X.opts.unicode===!1?jx._`${W}.length`:jx._`${(0,eZ.useFunc)(x.gen,xi.default)}(${W})`;x.fail$data(jx._`${G} ${J} ${Y}`)}};tH.default=Wi});var QV=M((xV)=>{Object.defineProperty(xV,"__esModule",{value:!0});var Xi=C1(),Ji=G0(),j8=a(),Gi={message:({schemaCode:x})=>j8.str`must match pattern "${x}"`,params:({schemaCode:x})=>j8._`{pattern: ${x}}`},$i={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:Gi,code(x){let{gen:Q,data:W,$data:Y,schema:X,schemaCode:J,it:G}=x,$=G.opts.unicodeRegExp?"u":"";if(Y){let{regExp:b}=G.opts.code,z=b.code==="new RegExp"?j8._`new RegExp`:(0,Ji.useFunc)(Q,b),v=Q.let("valid");Q.try(()=>Q.assign(v,j8._`${z}(${J}, ${$}).test(${W})`),()=>Q.assign(v,!1)),x.fail$data(j8._`!${v}`)}else{let b=(0,Xi.usePattern)(x,X);x.fail$data(j8._`!${b}.test(${W})`)}}};xV.default=$i});var YV=M((WV)=>{Object.defineProperty(WV,"__esModule",{value:!0});var x9=a(),zi={message({keyword:x,schemaCode:Q}){let W=x==="maxProperties"?"more":"fewer";return x9.str`must NOT have ${W} than ${Q} properties`},params:({schemaCode:x})=>x9._`{limit: ${x}}`},vi={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:zi,code(x){let{keyword:Q,data:W,schemaCode:Y}=x,X=Q==="maxProperties"?x9.operators.GT:x9.operators.LT;x.fail$data(x9._`Object.keys(${W}).length ${X} ${Y}`)}};WV.default=vi});var JV=M((XV)=>{Object.defineProperty(XV,"__esModule",{value:!0});var Q9=C1(),W9=a(),wi=G0(),Ki={message:({params:{missingProperty:x}})=>W9.str`must have required property '${x}'`,params:({params:{missingProperty:x}})=>W9._`{missingProperty: ${x}}`},Hi={keyword:"required",type:"object",schemaType:"array",$data:!0,error:Ki,code(x){let{gen:Q,schema:W,schemaCode:Y,data:X,$data:J,it:G}=x,{opts:$}=G;if(!J&&W.length===0)return;let b=W.length>=$.loopRequired;if(G.allErrors)z();else v();if($.strictRequired){let w=x.parentSchema.properties,{definedProperties:V}=x.it;for(let N of W)if((w===null||w===void 0?void 0:w[N])===void 0&&!V.has(N)){let U=G.schemaEnv.baseId+G.errSchemaPath,q=`required property "${N}" is not defined at "${U}" (strictRequired)`;(0,wi.checkStrictMode)(G,q,G.opts.strictRequired)}}function z(){if(b||J)x.block$data(W9.nil,B);else for(let w of W)(0,Q9.checkReportMissingProp)(x,w)}function v(){let w=Q.let("missing");if(b||J){let V=Q.let("valid",!0);x.block$data(V,()=>K(w,V)),x.ok(V)}else Q.if((0,Q9.checkMissingProp)(x,W,w)),(0,Q9.reportMissingProp)(x,w),Q.else()}function B(){Q.forOf("prop",Y,(w)=>{x.setParams({missingProperty:w}),Q.if((0,Q9.noPropertyInData)(Q,X,w,$.ownProperties),()=>x.error())})}function K(w,V){x.setParams({missingProperty:w}),Q.forOf(w,Y,()=>{Q.assign(V,(0,Q9.propertyInData)(Q,X,w,$.ownProperties)),Q.if((0,W9.not)(V),()=>{x.error(),Q.break()})},W9.nil)}}};XV.default=Hi});var $V=M((GV)=>{Object.defineProperty(GV,"__esModule",{value:!0});var Y9=a(),qi={message({keyword:x,schemaCode:Q}){let W=x==="maxItems"?"more":"fewer";return Y9.str`must NOT have ${W} than ${Q} items`},params:({schemaCode:x})=>Y9._`{limit: ${x}}`},Ni={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:qi,code(x){let{keyword:Q,data:W,schemaCode:Y}=x,X=Q==="maxItems"?Y9.operators.GT:Y9.operators.LT;x.fail$data(Y9._`${W}.length ${X} ${Y}`)}};GV.default=Ni});var N3=M((zV)=>{Object.defineProperty(zV,"__esModule",{value:!0});var bV=XX();bV.code='require("ajv/dist/runtime/equal").default';zV.default=bV});var BV=M((vV)=>{Object.defineProperty(vV,"__esModule",{value:!0});var MX=f6(),e0=a(),Fi=G0(),Mi=N3(),Di={message:({params:{i:x,j:Q}})=>e0.str`must NOT have duplicate items (items ## ${Q} and ${x} are identical)`,params:({params:{i:x,j:Q}})=>e0._`{i: ${x}, j: ${Q}}`},ci={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:Di,code(x){let{gen:Q,data:W,$data:Y,schema:X,parentSchema:J,schemaCode:G,it:$}=x;if(!Y&&!X)return;let b=Q.let("valid"),z=J.items?(0,MX.getSchemaTypes)(J.items):[];x.block$data(b,v,e0._`${G} === false`),x.ok(b);function v(){let V=Q.let("i",e0._`${W}.length`),N=Q.let("j");x.setParams({i:V,j:N}),Q.assign(b,!0),Q.if(e0._`${V} > 1`,()=>(B()?K:w)(V,N))}function B(){return z.length>0&&!z.some((V)=>V==="object"||V==="array")}function K(V,N){let U=Q.name("item"),q=(0,MX.checkDataTypes)(z,U,$.opts.strictNumbers,MX.DataType.Wrong),L=Q.const("indices",e0._`{}`);Q.for(e0._`;${V}--;`,()=>{if(Q.let(U,e0._`${W}[${V}]`),Q.if(q,e0._`continue`),z.length>1)Q.if(e0._`typeof ${U} == "string"`,e0._`${U} += "_"`);Q.if(e0._`typeof ${L}[${U}] == "number"`,()=>{Q.assign(N,e0._`${L}[${U}]`),x.error(),Q.assign(b,!1).break()}).code(e0._`${L}[${U}] = ${V}`)})}function w(V,N){let U=(0,Fi.useFunc)(Q,Mi.default),q=Q.name("outer");Q.label(q).for(e0._`;${V}--;`,()=>Q.for(e0._`${N} = ${V}; ${N}--;`,()=>Q.if(e0._`${U}(${W}[${V}], ${W}[${N}])`,()=>{x.error(),Q.assign(b,!1).break(q)})))}}};vV.default=ci});var KV=M((wV)=>{Object.defineProperty(wV,"__esModule",{value:!0});var DX=a(),Ai=G0(),Oi=N3(),Ii={message:"must be equal to constant",params:({schemaCode:x})=>DX._`{allowedValue: ${x}}`},Ei={keyword:"const",$data:!0,error:Ii,code(x){let{gen:Q,data:W,$data:Y,schemaCode:X,schema:J}=x;if(Y||J&&typeof J=="object")x.fail$data(DX._`!${(0,Ai.useFunc)(Q,Oi.default)}(${W}, ${X})`);else x.fail(DX._`${J} !== ${W}`)}};wV.default=Ei});var VV=M((HV)=>{Object.defineProperty(HV,"__esModule",{value:!0});var X9=a(),Pi=G0(),Ri=N3(),Zi={message:"must be equal to one of the allowed values",params:({schemaCode:x})=>X9._`{allowedValues: ${x}}`},ii={keyword:"enum",schemaType:"array",$data:!0,error:Zi,code(x){let{gen:Q,data:W,$data:Y,schema:X,schemaCode:J,it:G}=x;if(!Y&&X.length===0)throw Error("enum must have non-empty array");let $=X.length>=G.opts.loopEnum,b,z=()=>b!==null&&b!==void 0?b:b=(0,Pi.useFunc)(Q,Ri.default),v;if($||Y)v=Q.let("valid"),x.block$data(v,B);else{if(!Array.isArray(X))throw Error("ajv implementation error");let w=Q.const("vSchema",J);v=(0,X9.or)(...X.map((V,N)=>K(w,N)))}x.pass(v);function B(){Q.assign(v,!1),Q.forOf("v",J,(w)=>Q.if(X9._`${z()}(${W}, ${w})`,()=>Q.assign(v,!0).break()))}function K(w,V){let N=X[V];return typeof N==="object"&&N!==null?X9._`${z()}(${W}, ${w}[${V}])`:X9._`${W} === ${N}`}}};HV.default=ii});var NV=M((qV)=>{Object.defineProperty(qV,"__esModule",{value:!0});var Ti=hH(),ki=aH(),_i=eH(),ui=QV(),pi=YV(),li=JV(),ni=$V(),mi=BV(),fi=KV(),yi=VV(),gi=[Ti.default,ki.default,_i.default,ui.default,pi.default,li.default,ni.default,mi.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},fi.default,yi.default];qV.default=gi});var jX=M((LV)=>{Object.defineProperty(LV,"__esModule",{value:!0});LV.validateAdditionalItems=void 0;var Ax=a(),cX=G0(),oi={message:({params:{len:x}})=>Ax.str`must NOT have more than ${x} items`,params:({params:{len:x}})=>Ax._`{limit: ${x}}`},ai={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:oi,code(x){let{parentSchema:Q,it:W}=x,{items:Y}=Q;if(!Array.isArray(Y)){(0,cX.checkStrictMode)(W,'"additionalItems" is ignored when "items" is not an array of schemas');return}UV(x,Y)}};function UV(x,Q){let{gen:W,schema:Y,data:X,keyword:J,it:G}=x;G.items=!0;let $=W.const("len",Ax._`${X}.length`);if(Y===!1)x.setParams({len:Q.length}),x.pass(Ax._`${$} <= ${Q.length}`);else if(typeof Y=="object"&&!(0,cX.alwaysValidSchema)(G,Y)){let z=W.var("valid",Ax._`${$} <= ${Q.length}`);W.if((0,Ax.not)(z),()=>b(z)),x.ok(z)}function b(z){W.forRange("i",Q.length,$,(v)=>{if(x.subschema({keyword:J,dataProp:v,dataPropType:cX.Type.Num},z),!G.allErrors)W.if((0,Ax.not)(z),()=>W.break())})}}LV.validateAdditionalItems=UV;LV.default=ai});var AX=M((cV)=>{Object.defineProperty(cV,"__esModule",{value:!0});cV.validateTuple=void 0;var MV=a(),U3=G0(),ri=C1(),si={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(x){let{schema:Q,it:W}=x;if(Array.isArray(Q))return DV(x,"additionalItems",Q);if(W.items=!0,(0,U3.alwaysValidSchema)(W,Q))return;x.ok((0,ri.validateArray)(x))}};function DV(x,Q,W=x.schema){let{gen:Y,parentSchema:X,data:J,keyword:G,it:$}=x;if(v(X),$.opts.unevaluated&&W.length&&$.items!==!0)$.items=U3.mergeEvaluated.items(Y,W.length,$.items);let b=Y.name("valid"),z=Y.const("len",MV._`${J}.length`);W.forEach((B,K)=>{if((0,U3.alwaysValidSchema)($,B))return;Y.if(MV._`${z} > ${K}`,()=>x.subschema({keyword:G,schemaProp:K,dataProp:K},b)),x.ok(b)});function v(B){let{opts:K,errSchemaPath:w}=$,V=W.length,N=V===B.minItems&&(V===B.maxItems||B[Q]===!1);if(K.strictTuples&&!N){let U=`"${G}" is ${V}-tuple, but minItems or maxItems/${Q} are not specified or different at path "${w}"`;(0,U3.checkStrictMode)($,U,K.strictTuples)}}}cV.validateTuple=DV;cV.default=si});var OV=M((AV)=>{Object.defineProperty(AV,"__esModule",{value:!0});var ei=AX(),xC={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:(x)=>(0,ei.validateTuple)(x,"items")};AV.default=xC});var SV=M((EV)=>{Object.defineProperty(EV,"__esModule",{value:!0});var IV=a(),WC=G0(),YC=C1(),XC=jX(),JC={message:({params:{len:x}})=>IV.str`must NOT have more than ${x} items`,params:({params:{len:x}})=>IV._`{limit: ${x}}`},GC={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:JC,code(x){let{schema:Q,parentSchema:W,it:Y}=x,{prefixItems:X}=W;if(Y.items=!0,(0,WC.alwaysValidSchema)(Y,Q))return;if(X)(0,XC.validateAdditionalItems)(x,X);else x.ok((0,YC.validateArray)(x))}};EV.default=GC});var RV=M((PV)=>{Object.defineProperty(PV,"__esModule",{value:!0});var T1=a(),L3=G0(),bC={message:({params:{min:x,max:Q}})=>Q===void 0?T1.str`must contain at least ${x} valid item(s)`:T1.str`must contain at least ${x} and no more than ${Q} valid item(s)`,params:({params:{min:x,max:Q}})=>Q===void 0?T1._`{minContains: ${x}}`:T1._`{minContains: ${x}, maxContains: ${Q}}`},zC={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:bC,code(x){let{gen:Q,schema:W,parentSchema:Y,data:X,it:J}=x,G,$,{minContains:b,maxContains:z}=Y;if(J.opts.next)G=b===void 0?1:b,$=z;else G=1;let v=Q.const("len",T1._`${X}.length`);if(x.setParams({min:G,max:$}),$===void 0&&G===0){(0,L3.checkStrictMode)(J,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if($!==void 0&&G>$){(0,L3.checkStrictMode)(J,'"minContains" > "maxContains" is always invalid'),x.fail();return}if((0,L3.alwaysValidSchema)(J,W)){let N=T1._`${v} >= ${G}`;if($!==void 0)N=T1._`${N} && ${v} <= ${$}`;x.pass(N);return}J.items=!0;let B=Q.name("valid");if($===void 0&&G===1)w(B,()=>Q.if(B,()=>Q.break()));else if(G===0){if(Q.let(B,!0),$!==void 0)Q.if(T1._`${X}.length > 0`,K)}else Q.let(B,!1),K();x.result(B,()=>x.reset());function K(){let N=Q.name("_valid"),U=Q.let("count",0);w(N,()=>Q.if(N,()=>V(U)))}function w(N,U){Q.forRange("i",0,v,(q)=>{x.subschema({keyword:"contains",dataProp:q,dataPropType:L3.Type.Num,compositeRule:!0},N),U()})}function V(N){if(Q.code(T1._`${N}++`),$===void 0)Q.if(T1._`${N} >= ${G}`,()=>Q.assign(B,!0).break());else if(Q.if(T1._`${N} > ${$}`,()=>Q.assign(B,!1).break()),G===1)Q.assign(B,!0);else Q.if(T1._`${N} >= ${G}`,()=>Q.assign(B,!0))}}};PV.default=zC});var _V=M((CV)=>{Object.defineProperty(CV,"__esModule",{value:!0});CV.validateSchemaDeps=CV.validatePropertyDeps=CV.error=void 0;var OX=a(),BC=G0(),J9=C1();CV.error={message:({params:{property:x,depsCount:Q,deps:W}})=>{let Y=Q===1?"property":"properties";return OX.str`must have ${Y} ${W} when property ${x} is present`},params:({params:{property:x,depsCount:Q,deps:W,missingProperty:Y}})=>OX._`{property: ${x},
24
24
  missingProperty: ${Y},
25
25
  depsCount: ${Q},
26
- deps: ${W}}`};var $C={keyword:"dependencies",type:"object",schemaType:"object",error:RV.error,code(x){let[Q,W]=bC(x);SV(x,Q),PV(x,W)}};function bC({schema:x}){let Q={},W={};for(let Y in x){if(Y==="__proto__")continue;let X=Array.isArray(x[Y])?Q:W;X[Y]=x[Y]}return[Q,W]}function SV(x,Q=x.schema){let{gen:W,data:Y,it:X}=x;if(Object.keys(Q).length===0)return;let J=W.let("missing");for(let G in Q){let $=Q[G];if($.length===0)continue;let b=(0,J9.propertyInData)(W,Y,G,X.opts.ownProperties);if(x.setParams({property:G,depsCount:$.length,deps:$.join(", ")}),X.allErrors)W.if(b,()=>{for(let z of $)(0,J9.checkReportMissingProp)(x,z)});else W.if(OX._`${b} && (${(0,J9.checkMissingProp)(x,$,J)})`),(0,J9.reportMissingProp)(x,J),W.else()}}RV.validatePropertyDeps=SV;function PV(x,Q=x.schema){let{gen:W,data:Y,keyword:X,it:J}=x,G=W.name("valid");for(let $ in Q){if((0,GC.alwaysValidSchema)(J,Q[$]))continue;W.if((0,J9.propertyInData)(W,Y,$,J.opts.ownProperties),()=>{let b=x.subschema({keyword:X,schemaProp:$},G);x.mergeValidEvaluated(b,G)},()=>W.var(G,!0)),x.ok(G)}}RV.validateSchemaDeps=PV;RV.default=$C});var _V=M((kV)=>{Object.defineProperty(kV,"__esModule",{value:!0});var TV=a(),BC=G0(),wC={message:"property name must be valid",params:({params:x})=>TV._`{propertyName: ${x.propertyName}}`},KC={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:wC,code(x){let{gen:Q,schema:W,data:Y,it:X}=x;if((0,BC.alwaysValidSchema)(X,W))return;let J=Q.name("valid");Q.forIn("key",Y,(G)=>{x.setParams({propertyName:G}),x.subschema({keyword:"propertyNames",data:G,dataTypes:["string"],propertyName:G,compositeRule:!0},J),Q.if((0,TV.not)(J),()=>{if(x.error(!0),!X.allErrors)Q.break()})}),x.ok(J)}};kV.default=KC});var IX=M((uV)=>{Object.defineProperty(uV,"__esModule",{value:!0});var F3=C1(),t1=a(),VC=V4(),M3=G0(),qC={message:"must NOT have additional properties",params:({params:x})=>t1._`{additionalProperty: ${x.additionalProperty}}`},NC={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:qC,code(x){let{gen:Q,schema:W,parentSchema:Y,data:X,errsCount:J,it:G}=x;if(!J)throw Error("ajv implementation error");let{allErrors:$,opts:b}=G;if(G.props=!0,b.removeAdditional!=="all"&&(0,M3.alwaysValidSchema)(G,W))return;let z=(0,F3.allSchemaProperties)(Y.properties),v=(0,F3.allSchemaProperties)(Y.patternProperties);B(),x.ok(t1._`${J} === ${VC.default.errors}`);function B(){Q.forIn("key",X,(L)=>{if(!z.length&&!v.length)V(L);else Q.if(K(L),()=>V(L))})}function K(L){let q;if(z.length>8){let U=(0,M3.schemaRefOrVal)(G,Y.properties,"properties");q=(0,F3.isOwnProperty)(Q,U,L)}else if(z.length)q=(0,t1.or)(...z.map((U)=>t1._`${L} === ${U}`));else q=t1.nil;if(v.length)q=(0,t1.or)(q,...v.map((U)=>t1._`${(0,F3.usePattern)(x,U)}.test(${L})`));return(0,t1.not)(q)}function w(L){Q.code(t1._`delete ${X}[${L}]`)}function V(L){if(b.removeAdditional==="all"||b.removeAdditional&&W===!1){w(L);return}if(W===!1){if(x.setParams({additionalProperty:L}),x.error(),!$)Q.break();return}if(typeof W=="object"&&!(0,M3.alwaysValidSchema)(G,W)){let q=Q.name("valid");if(b.removeAdditional==="failing")N(L,q,!1),Q.if((0,t1.not)(q),()=>{x.reset(),w(L)});else if(N(L,q),!$)Q.if((0,t1.not)(q),()=>Q.break())}}function N(L,q,U){let c={keyword:"additionalProperties",dataProp:L,dataPropType:M3.Type.Str};if(U===!1)Object.assign(c,{compositeRule:!0,createErrors:!1,allErrors:!1});x.subschema(c,q)}}};uV.default=NC});var mV=M((nV)=>{Object.defineProperty(nV,"__esModule",{value:!0});var UC=o6(),pV=C1(),EX=G0(),lV=IX(),FC={keyword:"properties",type:"object",schemaType:"object",code(x){let{gen:Q,schema:W,parentSchema:Y,data:X,it:J}=x;if(J.opts.removeAdditional==="all"&&Y.additionalProperties===void 0)lV.default.code(new UC.KeywordCxt(J,lV.default,"additionalProperties"));let G=(0,pV.allSchemaProperties)(W);for(let B of G)J.definedProperties.add(B);if(J.opts.unevaluated&&G.length&&J.props!==!0)J.props=EX.mergeEvaluated.props(Q,(0,EX.toHash)(G),J.props);let $=G.filter((B)=>!(0,EX.alwaysValidSchema)(J,W[B]));if($.length===0)return;let b=Q.name("valid");for(let B of $){if(z(B))v(B);else{if(Q.if((0,pV.propertyInData)(Q,X,B,J.opts.ownProperties)),v(B),!J.allErrors)Q.else().var(b,!0);Q.endIf()}x.it.definedProperties.add(B),x.ok(b)}function z(B){return J.opts.useDefaults&&!J.compositeRule&&W[B].default!==void 0}function v(B){x.subschema({keyword:"properties",schemaProp:B,dataProp:B},b)}}};nV.default=FC});var oV=M((hV)=>{Object.defineProperty(hV,"__esModule",{value:!0});var fV=C1(),D3=a(),yV=G0(),gV=G0(),DC={keyword:"patternProperties",type:"object",schemaType:"object",code(x){let{gen:Q,schema:W,data:Y,parentSchema:X,it:J}=x,{opts:G}=J,$=(0,fV.allSchemaProperties)(W),b=$.filter((N)=>(0,yV.alwaysValidSchema)(J,W[N]));if($.length===0||b.length===$.length&&(!J.opts.unevaluated||J.props===!0))return;let z=G.strictSchema&&!G.allowMatchingProperties&&X.properties,v=Q.name("valid");if(J.props!==!0&&!(J.props instanceof D3.Name))J.props=(0,gV.evaluatedPropsToName)(Q,J.props);let{props:B}=J;K();function K(){for(let N of $){if(z)w(N);if(J.allErrors)V(N);else Q.var(v,!0),V(N),Q.if(v)}}function w(N){for(let L in z)if(new RegExp(N).test(L))(0,yV.checkStrictMode)(J,`property ${L} matches pattern ${N} (use allowMatchingProperties)`)}function V(N){Q.forIn("key",Y,(L)=>{Q.if(D3._`${(0,fV.usePattern)(x,N)}.test(${L})`,()=>{let q=b.includes(N);if(!q)x.subschema({keyword:"patternProperties",schemaProp:N,dataProp:L,dataPropType:gV.Type.Str},v);if(J.opts.unevaluated&&B!==!0)Q.assign(D3._`${B}[${L}]`,!0);else if(!q&&!J.allErrors)Q.if((0,D3.not)(v),()=>Q.break())})})}}};hV.default=DC});var dV=M((aV)=>{Object.defineProperty(aV,"__esModule",{value:!0});var jC=G0(),AC={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(x){let{gen:Q,schema:W,it:Y}=x;if((0,jC.alwaysValidSchema)(Y,W)){x.fail();return}let X=Q.name("valid");x.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},X),x.failResult(X,()=>x.reset(),()=>x.error())},error:{message:"must NOT be valid"}};aV.default=AC});var sV=M((rV)=>{Object.defineProperty(rV,"__esModule",{value:!0});var IC=C1(),EC={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:IC.validateUnion,error:{message:"must match a schema in anyOf"}};rV.default=EC});var eV=M((tV)=>{Object.defineProperty(tV,"__esModule",{value:!0});var c3=a(),PC=G0(),RC={message:"must match exactly one schema in oneOf",params:({params:x})=>c3._`{passingSchemas: ${x.passing}}`},ZC={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:RC,code(x){let{gen:Q,schema:W,parentSchema:Y,it:X}=x;if(!Array.isArray(W))throw Error("ajv implementation error");if(X.opts.discriminator&&Y.discriminator)return;let J=W,G=Q.let("valid",!1),$=Q.let("passing",null),b=Q.name("_valid");x.setParams({passing:$}),Q.block(z),x.result(G,()=>x.reset(),()=>x.error(!0));function z(){J.forEach((v,B)=>{let K;if((0,PC.alwaysValidSchema)(X,v))Q.var(b,!0);else K=x.subschema({keyword:"oneOf",schemaProp:B,compositeRule:!0},b);if(B>0)Q.if(c3._`${b} && ${G}`).assign(G,!1).assign($,c3._`[${$}, ${B}]`).else();Q.if(b,()=>{if(Q.assign(G,!0),Q.assign($,B),K)x.mergeEvaluated(K,c3.Name)})})}}};tV.default=ZC});var Qq=M((xq)=>{Object.defineProperty(xq,"__esModule",{value:!0});var CC=G0(),TC={keyword:"allOf",schemaType:"array",code(x){let{gen:Q,schema:W,it:Y}=x;if(!Array.isArray(W))throw Error("ajv implementation error");let X=Q.name("valid");W.forEach((J,G)=>{if((0,CC.alwaysValidSchema)(Y,J))return;let $=x.subschema({keyword:"allOf",schemaProp:G},X);x.ok(X),x.mergeEvaluated($)})}};xq.default=TC});var Jq=M((Xq)=>{Object.defineProperty(Xq,"__esModule",{value:!0});var j3=a(),Yq=G0(),_C={message:({params:x})=>j3.str`must match "${x.ifClause}" schema`,params:({params:x})=>j3._`{failingKeyword: ${x.ifClause}}`},uC={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:_C,code(x){let{gen:Q,parentSchema:W,it:Y}=x;if(W.then===void 0&&W.else===void 0)(0,Yq.checkStrictMode)(Y,'"if" without "then" and "else" is ignored');let X=Wq(Y,"then"),J=Wq(Y,"else");if(!X&&!J)return;let G=Q.let("valid",!0),$=Q.name("_valid");if(b(),x.reset(),X&&J){let v=Q.let("ifClause");x.setParams({ifClause:v}),Q.if($,z("then",v),z("else",v))}else if(X)Q.if($,z("then"));else Q.if((0,j3.not)($),z("else"));x.pass(G,()=>x.error(!0));function b(){let v=x.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},$);x.mergeEvaluated(v)}function z(v,B){return()=>{let K=x.subschema({keyword:v},$);if(Q.assign(G,$),x.mergeValidEvaluated(K,G),B)Q.assign(B,j3._`${v}`);else x.setParams({ifClause:v})}}}};function Wq(x,Q){let W=x.schema[Q];return W!==void 0&&!(0,Yq.alwaysValidSchema)(x,W)}Xq.default=uC});var $q=M((Gq)=>{Object.defineProperty(Gq,"__esModule",{value:!0});var lC=G0(),nC={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:x,parentSchema:Q,it:W}){if(Q.if===void 0)(0,lC.checkStrictMode)(W,`"${x}" without "if" is ignored`)}};Gq.default=nC});var zq=M((bq)=>{Object.defineProperty(bq,"__esModule",{value:!0});var fC=jX(),yC=cV(),gC=AX(),hC=OV(),oC=EV(),aC=CV(),dC=_V(),rC=IX(),sC=mV(),tC=oV(),eC=dV(),xT=sV(),QT=eV(),WT=Qq(),YT=Jq(),XT=$q();function JT(x=!1){let Q=[eC.default,xT.default,QT.default,WT.default,YT.default,XT.default,dC.default,rC.default,aC.default,sC.default,tC.default];if(x)Q.push(yC.default,hC.default);else Q.push(fC.default,gC.default);return Q.push(oC.default),Q}bq.default=JT});var Bq=M((vq)=>{Object.defineProperty(vq,"__esModule",{value:!0});var k0=a(),$T={message:({schemaCode:x})=>k0.str`must match format "${x}"`,params:({schemaCode:x})=>k0._`{format: ${x}}`},bT={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:$T,code(x,Q){let{gen:W,data:Y,$data:X,schema:J,schemaCode:G,it:$}=x,{opts:b,errSchemaPath:z,schemaEnv:v,self:B}=$;if(!b.validateFormats)return;if(X)K();else w();function K(){let V=W.scopeValue("formats",{ref:B.formats,code:b.code.formats}),N=W.const("fDef",k0._`${V}[${G}]`),L=W.let("fType"),q=W.let("format");W.if(k0._`typeof ${N} == "object" && !(${N} instanceof RegExp)`,()=>W.assign(L,k0._`${N}.type || "string"`).assign(q,k0._`${N}.validate`),()=>W.assign(L,k0._`"string"`).assign(q,N)),x.fail$data((0,k0.or)(U(),c()));function U(){if(b.strictSchema===!1)return k0.nil;return k0._`${G} && !${q}`}function c(){let S=v.$async?k0._`(${N}.async ? await ${q}(${Y}) : ${q}(${Y}))`:k0._`${q}(${Y})`,i=k0._`(typeof ${q} == "function" ? ${S} : ${q}.test(${Y}))`;return k0._`${q} && ${q} !== true && ${L} === ${Q} && !${i}`}}function w(){let V=B.formats[J];if(!V){U();return}if(V===!0)return;let[N,L,q]=c(V);if(N===Q)x.pass(S());function U(){if(b.strictSchema===!1){B.logger.warn(i());return}throw Error(i());function i(){return`unknown format "${J}" ignored in schema at path "${z}"`}}function c(i){let y=i instanceof RegExp?(0,k0.regexpCode)(i):b.code.formats?k0._`${b.code.formats}${(0,k0.getProperty)(J)}`:void 0,B0=W.scopeValue("formats",{key:J,ref:i,code:y});if(typeof i=="object"&&!(i instanceof RegExp))return[i.type||"string",i.validate,k0._`${B0}.validate`];return["string",i,B0]}function S(){if(typeof V=="object"&&!(V instanceof RegExp)&&V.async){if(!v.$async)throw Error("async format in sync schema");return k0._`await ${q}(${Y})`}return typeof L=="function"?k0._`${q}(${Y})`:k0._`${q}.test(${Y})`}}}};vq.default=bT});var Kq=M((wq)=>{Object.defineProperty(wq,"__esModule",{value:!0});var vT=Bq(),BT=[vT.default];wq.default=BT});var qq=M((Hq)=>{Object.defineProperty(Hq,"__esModule",{value:!0});Hq.contentVocabulary=Hq.metadataVocabulary=void 0;Hq.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];Hq.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var Uq=M((Lq)=>{Object.defineProperty(Lq,"__esModule",{value:!0});var HT=nH(),VT=HV(),qT=zq(),NT=Kq(),Nq=qq(),LT=[HT.default,VT.default,(0,qT.default)(),NT.default,Nq.metadataVocabulary,Nq.contentVocabulary];Lq.default=LT});var cq=M((Mq)=>{Object.defineProperty(Mq,"__esModule",{value:!0});Mq.DiscrError=void 0;var Fq;(function(x){x.Tag="tag",x.Mapping="mapping"})(Fq||(Mq.DiscrError=Fq={}))});var Oq=M((Aq)=>{Object.defineProperty(Aq,"__esModule",{value:!0});var A8=a(),SX=cq(),jq=$3(),FT=a6(),MT=G0(),DT={message:({params:{discrError:x,tagName:Q}})=>x===SX.DiscrError.Tag?`tag "${Q}" must be string`:`value of tag "${Q}" must be in oneOf`,params:({params:{discrError:x,tag:Q,tagName:W}})=>A8._`{error: ${x}, tag: ${W}, tagValue: ${Q}}`},cT={keyword:"discriminator",type:"object",schemaType:"object",error:DT,code(x){let{gen:Q,data:W,schema:Y,parentSchema:X,it:J}=x,{oneOf:G}=X;if(!J.opts.discriminator)throw Error("discriminator: requires discriminator option");let $=Y.propertyName;if(typeof $!="string")throw Error("discriminator: requires propertyName");if(Y.mapping)throw Error("discriminator: mapping is not supported");if(!G)throw Error("discriminator: requires oneOf keyword");let b=Q.let("valid",!1),z=Q.const("tag",A8._`${W}${(0,A8.getProperty)($)}`);Q.if(A8._`typeof ${z} == "string"`,()=>v(),()=>x.error(!1,{discrError:SX.DiscrError.Tag,tag:z,tagName:$})),x.ok(b);function v(){let w=K();Q.if(!1);for(let V in w)Q.elseIf(A8._`${z} === ${V}`),Q.assign(b,B(w[V]));Q.else(),x.error(!1,{discrError:SX.DiscrError.Mapping,tag:z,tagName:$}),Q.endIf()}function B(w){let V=Q.name("valid"),N=x.subschema({keyword:"oneOf",schemaProp:w},V);return x.mergeEvaluated(N,A8.Name),V}function K(){var w;let V={},N=q(X),L=!0;for(let S=0;S<G.length;S++){let i=G[S];if((i===null||i===void 0?void 0:i.$ref)&&!(0,MT.schemaHasRulesButRef)(i,J.self.RULES)){let B0=i.$ref;if(i=jq.resolveRef.call(J.self,J.schemaEnv.root,J.baseId,B0),i instanceof jq.SchemaEnv)i=i.schema;if(i===void 0)throw new FT.default(J.opts.uriResolver,J.baseId,B0)}let y=(w=i===null||i===void 0?void 0:i.properties)===null||w===void 0?void 0:w[$];if(typeof y!="object")throw Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${$}"`);L=L&&(N||q(i)),U(y,S)}if(!L)throw Error(`discriminator: "${$}" must be required`);return V;function q({required:S}){return Array.isArray(S)&&S.includes($)}function U(S,i){if(S.const)c(S.const,i);else if(S.enum)for(let y of S.enum)c(y,i);else throw Error(`discriminator: "properties/${$}" must have "const" or "enum"`)}function c(S,i){if(typeof S!="string"||S in V)throw Error(`discriminator: "${$}" values must be unique strings`);V[S]=i}}}};Aq.default=cT});var Iq=M(($d,AT)=>{AT.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}});var RX=M((L1,PX)=>{Object.defineProperty(L1,"__esModule",{value:!0});L1.MissingRefError=L1.ValidationError=L1.CodeGen=L1.Name=L1.nil=L1.stringify=L1.str=L1._=L1.KeywordCxt=L1.Ajv=void 0;var OT=RH(),IT=Uq(),ET=Oq(),Eq=Iq(),ST=["/properties"],A3="http://json-schema.org/draft-07/schema";class G9 extends OT.default{_addVocabularies(){if(super._addVocabularies(),IT.default.forEach((x)=>this.addVocabulary(x)),this.opts.discriminator)this.addKeyword(ET.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let x=this.opts.$data?this.$dataMetaSchema(Eq,ST):Eq;this.addMetaSchema(x,A3,!1),this.refs["http://json-schema.org/schema"]=A3}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(A3)?A3:void 0)}}L1.Ajv=G9;PX.exports=L1=G9;PX.exports.Ajv=G9;Object.defineProperty(L1,"__esModule",{value:!0});L1.default=G9;var PT=o6();Object.defineProperty(L1,"KeywordCxt",{enumerable:!0,get:function(){return PT.KeywordCxt}});var O8=a();Object.defineProperty(L1,"_",{enumerable:!0,get:function(){return O8._}});Object.defineProperty(L1,"str",{enumerable:!0,get:function(){return O8.str}});Object.defineProperty(L1,"stringify",{enumerable:!0,get:function(){return O8.stringify}});Object.defineProperty(L1,"nil",{enumerable:!0,get:function(){return O8.nil}});Object.defineProperty(L1,"Name",{enumerable:!0,get:function(){return O8.Name}});Object.defineProperty(L1,"CodeGen",{enumerable:!0,get:function(){return O8.CodeGen}});var RT=J3();Object.defineProperty(L1,"ValidationError",{enumerable:!0,get:function(){return RT.default}});var ZT=a6();Object.defineProperty(L1,"MissingRefError",{enumerable:!0,get:function(){return ZT.default}})});var uq=M((kq)=>{Object.defineProperty(kq,"__esModule",{value:!0});kq.formatNames=kq.fastFormats=kq.fullFormats=void 0;function b4(x,Q){return{validate:x,compare:Q}}kq.fullFormats={date:b4(Zq,TX),time:b4(iX(!0),kX),"date-time":b4(Sq(!0),Cq),"iso-time":b4(iX(),iq),"iso-date-time":b4(Sq(),Tq),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:lT,"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:oT,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:nT,int32:{type:"number",validate:yT},int64:{type:"number",validate:gT},float:{type:"number",validate:Rq},double:{type:"number",validate:Rq},password:!0,binary:!0};kq.fastFormats={...kq.fullFormats,date:b4(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,TX),time:b4(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,kX),"date-time":b4(/^\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,Cq),"iso-time":b4(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,iq),"iso-date-time":b4(/^\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,Tq),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};kq.formatNames=Object.keys(kq.fullFormats);function TT(x){return x%4===0&&(x%100!==0||x%400===0)}var kT=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,_T=[0,31,28,31,30,31,30,31,31,30,31,30,31];function Zq(x){let Q=kT.exec(x);if(!Q)return!1;let W=+Q[1],Y=+Q[2],X=+Q[3];return Y>=1&&Y<=12&&X>=1&&X<=(Y===2&&TT(W)?29:_T[Y])}function TX(x,Q){if(!(x&&Q))return;if(x>Q)return 1;if(x<Q)return-1;return 0}var ZX=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function iX(x){return function(W){let Y=ZX.exec(W);if(!Y)return!1;let X=+Y[1],J=+Y[2],G=+Y[3],$=Y[4],b=Y[5]==="-"?-1:1,z=+(Y[6]||0),v=+(Y[7]||0);if(z>23||v>59||x&&!$)return!1;if(X<=23&&J<=59&&G<60)return!0;let B=J-v*b,K=X-z*b-(B<0?1:0);return(K===23||K===-1)&&(B===59||B===-1)&&G<61}}function kX(x,Q){if(!(x&&Q))return;let W=new Date("2020-01-01T"+x).valueOf(),Y=new Date("2020-01-01T"+Q).valueOf();if(!(W&&Y))return;return W-Y}function iq(x,Q){if(!(x&&Q))return;let W=ZX.exec(x),Y=ZX.exec(Q);if(!(W&&Y))return;if(x=W[1]+W[2]+W[3],Q=Y[1]+Y[2]+Y[3],x>Q)return 1;if(x<Q)return-1;return 0}var CX=/t|\s/i;function Sq(x){let Q=iX(x);return function(Y){let X=Y.split(CX);return X.length===2&&Zq(X[0])&&Q(X[1])}}function Cq(x,Q){if(!(x&&Q))return;let W=new Date(x).valueOf(),Y=new Date(Q).valueOf();if(!(W&&Y))return;return W-Y}function Tq(x,Q){if(!(x&&Q))return;let[W,Y]=x.split(CX),[X,J]=Q.split(CX),G=TX(W,X);if(G===void 0)return;return G||kX(Y,J)}var uT=/\/|:/,pT=/^(?:[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 lT(x){return uT.test(x)&&pT.test(x)}var Pq=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function nT(x){return Pq.lastIndex=0,Pq.test(x)}var mT=-2147483648,fT=2147483647;function yT(x){return Number.isInteger(x)&&x<=fT&&x>=mT}function gT(x){return Number.isInteger(x)}function Rq(){return!0}var hT=/[^\\]\\Z/;function oT(x){if(hT.test(x))return!1;try{return new RegExp(x),!0}catch(Q){return!1}}});var lq=M((pq)=>{Object.defineProperty(pq,"__esModule",{value:!0});pq.formatLimitDefinition=void 0;var dT=RX(),e1=a(),y4=e1.operators,O3={formatMaximum:{okStr:"<=",ok:y4.LTE,fail:y4.GT},formatMinimum:{okStr:">=",ok:y4.GTE,fail:y4.LT},formatExclusiveMaximum:{okStr:"<",ok:y4.LT,fail:y4.GTE},formatExclusiveMinimum:{okStr:">",ok:y4.GT,fail:y4.LTE}},rT={message:({keyword:x,schemaCode:Q})=>e1.str`should be ${O3[x].okStr} ${Q}`,params:({keyword:x,schemaCode:Q})=>e1._`{comparison: ${O3[x].okStr}, limit: ${Q}}`};pq.formatLimitDefinition={keyword:Object.keys(O3),type:"string",schemaType:"string",$data:!0,error:rT,code(x){let{gen:Q,data:W,schemaCode:Y,keyword:X,it:J}=x,{opts:G,self:$}=J;if(!G.validateFormats)return;let b=new dT.KeywordCxt(J,$.RULES.all.format.definition,"format");if(b.$data)z();else v();function z(){let K=Q.scopeValue("formats",{ref:$.formats,code:G.code.formats}),w=Q.const("fmt",e1._`${K}[${b.schemaCode}]`);x.fail$data((0,e1.or)(e1._`typeof ${w} != "object"`,e1._`${w} instanceof RegExp`,e1._`typeof ${w}.compare != "function"`,B(w)))}function v(){let K=b.schema,w=$.formats[K];if(!w||w===!0)return;if(typeof w!="object"||w instanceof RegExp||typeof w.compare!="function")throw Error(`"${X}": format "${K}" does not define "compare" function`);let V=Q.scopeValue("formats",{key:K,ref:w,code:G.code.formats?e1._`${G.code.formats}${(0,e1.getProperty)(K)}`:void 0});x.fail$data(B(V))}function B(K){return e1._`${K}.compare(${W}, ${Y}) ${O3[X].fail} 0`}},dependencies:["format"]};var sT=(x)=>{return x.addKeyword(pq.formatLimitDefinition),x};pq.default=sT});var yq=M(($9,fq)=>{Object.defineProperty($9,"__esModule",{value:!0});var I8=uq(),eT=lq(),pX=a(),nq=new pX.Name("fullFormats"),xk=new pX.Name("fastFormats"),lX=(x,Q={keywords:!0})=>{if(Array.isArray(Q))return mq(x,Q,I8.fullFormats,nq),x;let[W,Y]=Q.mode==="fast"?[I8.fastFormats,xk]:[I8.fullFormats,nq],X=Q.formats||I8.formatNames;if(mq(x,X,W,Y),Q.keywords)(0,eT.default)(x);return x};lX.get=(x,Q="full")=>{let Y=(Q==="fast"?I8.fastFormats:I8.fullFormats)[x];if(!Y)throw Error(`Unknown format "${x}"`);return Y};function mq(x,Q,W,Y){var X,J;(X=(J=x.opts.code).formats)!==null&&X!==void 0||(J.formats=pX._`require("ajv-formats/dist/formats").${Y}`);for(let G of Q)x.addFormat(G,W[G])}fq.exports=$9=lX;Object.defineProperty($9,"__esModule",{value:!0});$9.default=lX});function Mk(x,Q=[]){for(let W=0;W<x.length;W++){if(x[W].startsWith("-"))continue;if(W>0&&Q.includes(x[W-1]))continue;return{before:x.slice(0,W),script:x[W],after:x.slice(W+1)}}return{before:x,script:void 0,after:[]}}function eX(x,Q,W=[]){return(Y)=>{let{before:X,script:J,after:G}=Mk(Y,W);if(J===void 0)return[x,Q,...X];if(G.length>0)return[x,Q,...X,J,"--",...G];return[x,Q,...X,J]}}function HN(x){return{agent:[x,0],run:[x,"run",0],install:[x,"i",0],frozen:[x,"i","--frozen-lockfile",0],global:[x,"add","-g",0],add:[x,"add",0],upgrade:[x,"update",0],"upgrade-interactive":[x,"update","-i",0],dedupe:[x,"dedupe",0],execute:[x,"dlx",0],"execute-local":[x,"exec",0],uninstall:[x,"remove",0],global_uninstall:[x,"remove","--global",0]}}function VN(x,Q,W){let Y=xJ[x][Q];return QJ(Y,W)}function QJ(x,Q){if(x==null)return null;let W=typeof x==="function"?x(Q):x.flatMap((Y)=>{if(typeof Y==="number")return Q;return[Y]});return{command:W[0],args:W.slice(1)}}var Dk,KN,ck,wN,jk,Ak,Ok,Ik,Ek,xJ;var qN=N9(()=>{Dk={agent:["npm",0],run:eX("npm","run",["-w","--workspace"]),install:["npm","i",0],frozen:["npm","ci",0],global:["npm","i","-g",0],add:["npm","i",0],upgrade:["npm","update",0],"upgrade-interactive":null,dedupe:["npm","dedupe",0],execute:["npx",0],"execute-local":["npx",0],uninstall:["npm","uninstall",0],global_uninstall:["npm","uninstall","-g",0]},KN={agent:["yarn",0],run:["yarn","run",0],install:["yarn","install",0],frozen:["yarn","install","--frozen-lockfile",0],global:["yarn","global","add",0],add:["yarn","add",0],upgrade:["yarn","upgrade",0],"upgrade-interactive":["yarn","upgrade-interactive",0],dedupe:null,execute:["npx",0],"execute-local":eX("yarn","exec"),uninstall:["yarn","remove",0],global_uninstall:["yarn","global","remove",0]},ck={...KN,frozen:["yarn","install","--immutable",0],upgrade:["yarn","up",0],"upgrade-interactive":["yarn","up","-i",0],dedupe:["yarn","dedupe",0],execute:["yarn","dlx",0],"execute-local":["yarn","exec",0],global:["npm","i","-g",0],global_uninstall:["npm","uninstall","-g",0]};wN=HN("pnpm"),jk=HN("rush-pnpm"),Ak={agent:["bun",0],run:["bun","run",0],install:["bun","install",0],frozen:["bun","install","--frozen-lockfile",0],global:["bun","add","-g",0],add:["bun","add",0],upgrade:["bun","update",0],"upgrade-interactive":["bun","update","-i",0],dedupe:null,execute:["bun","x",0],"execute-local":["bun","x",0],uninstall:["bun","remove",0],global_uninstall:["bun","remove","-g",0]},Ok={agent:["aube",0],run:["aube","run",0],install:["aube","install",0],frozen:["aube","install","--frozen-lockfile",0],global:["aube","add","-g",0],add:["aube","add",0],upgrade:["aube","update",0],"upgrade-interactive":["aube","update","-i",0],dedupe:["aube","dedupe",0],execute:["aube","dlx",0],"execute-local":["aube","exec",0],uninstall:["aube","remove",0],global_uninstall:["aube","remove","-g",0]},Ik={agent:["deno",0],run:["deno","task",0],install:["deno","install",0],frozen:["deno","install","--frozen",0],global:["deno","install","-g",0],add:["deno","add",0],upgrade:["deno","outdated","--update",0],"upgrade-interactive":["deno","outdated","--update",0],dedupe:null,execute:["deno","x",0],"execute-local":["deno","task","--eval",0],uninstall:["deno","remove",0],global_uninstall:["deno","uninstall","-g",0]},Ek={agent:["nub",0],run:["nub","run",0],install:["nub","install",0],frozen:["nub","install","--frozen-lockfile",0],global:["nub","add","-g",0],add:["nub","add",0],upgrade:["nub","update",0],"upgrade-interactive":["nub","update","-i",0],dedupe:["nub","dedupe",0],execute:["nubx",0],"execute-local":["nub","exec",0],uninstall:["nub","remove",0],global_uninstall:["nub","remove","-g",0]},xJ={npm:Dk,yarn:KN,"yarn@berry":ck,pnpm:wN,"pnpm@6":{...wN,run:eX("pnpm","run",["-F","--filter"])},"pnpm-rush":jk,bun:Ak,aube:Ok,deno:Ik,nub:Ek}});var z9,v9,B9,NN;var WJ=N9(()=>{z9=["npm","yarn","yarn@berry","pnpm","pnpm@6","pnpm-rush","bun","deno","nub","aube"],v9={"aube-lock.yaml":"aube","aube-workspace.yaml":"aube","bun.lock":"bun","bun.lockb":"bun","deno.lock":"deno","nub.lock":"nub","pnpm-lock.yaml":"pnpm","pnpm-workspace.yaml":"pnpm","yarn.lock":"yarn","package-lock.json":"npm","npm-shrinkwrap.json":"npm"},B9={"node_modules/.aube/":"aube","node_modules/.deno/":"deno","node_modules/.pnpm/":"pnpm","node_modules/.yarn-state.yml":"yarn","node_modules/.yarn_integrity":"yarn","node_modules/.package-lock.json":"npm",".pnp.cjs":"yarn",".pnp.js":"yarn","bun.lock":"bun","bun.lockb":"bun"},NN={aube:"https://aube.en.dev/installation",bun:"https://bun.sh",deno:"https://deno.com",pnpm:"https://pnpm.io/installation","pnpm@6":"https://pnpm.io/6.x/installation","pnpm-rush":"https://rushjs.io/pages/intro/get_started/",yarn:"https://classic.yarnpkg.com/en/docs/install","yarn@berry":"https://yarnpkg.com/getting-started/install",npm:"https://docs.npmjs.com/cli/configuring-npm/install",nub:"https://nubjs.com/docs/install"}});import UN from"node:fs/promises";import L4 from"node:path";import FN from"node:process";async function E3(x,Q){try{let W=await UN.stat(x);return Q==="file"?W.isFile():W.isDirectory()}catch{return!1}}function MN(){let x=FN.env.npm_config_user_agent;if(!x)return null;let Q=x.split("/")[0];return z9.includes(Q)?Q:null}function*Sk(x=FN.cwd()){let Q=L4.resolve(x),{root:W}=L4.parse(Q);while(Q&&Q!==W)yield Q,Q=L4.dirname(Q)}async function LN(x,Q){if(!x||!await E3(x,"file"))return null;return await Rk(x,Q)}async function DN(x={}){let{cwd:Q,strategies:W=["lockfile","packageManager-field","devEngines-field"]}=x,Y;if(typeof x.stopDir==="string"){let X=L4.resolve(x.stopDir);Y=(J)=>J===X}else Y=x.stopDir;for(let X of Sk(Q)){for(let J of W)switch(J){case"lockfile":{if(await E3(L4.join(X,"rush.json"),"file"))return{name:"pnpm",agent:"pnpm-rush"};for(let G of Object.keys(v9))if(await E3(L4.join(X,G),"file")){let $=v9[G],b=await LN(L4.join(X,"package.json"),x);if(b)return b;else return{name:$,agent:$}}break}case"packageManager-field":case"devEngines-field":{let G=await LN(L4.join(X,"package.json"),x);if(G)return G;break}case"install-metadata":{for(let G of Object.keys(B9)){let $=G.endsWith("/")?"dir":"file";if(await E3(L4.join(X,G),$)){let b=B9[G],z=b==="yarn"?Zk(G)?"yarn":"yarn@berry":b;return{name:b,agent:z}}}break}}if(Y?.(X))break}return null}function Pk(x){let Q=(W)=>W?.match(/\d+(\.\d+){0,2}/)?.[0]??W;if(typeof x.packageManager==="string"){let[W,Y]=x.packageManager.replace(/^\^/,"").split("@");return{name:W,ver:Q(Y)}}if(typeof x.devEngines?.packageManager?.name==="string")return{name:x.devEngines.packageManager.name,ver:Q(x.devEngines.packageManager.version)};return}async function Rk(x,Q){try{let W=await UN.readFile(x,"utf8"),Y=Q.packageJsonParser?await Q.packageJsonParser(W,x):JSON.parse(W),X,J=Pk(Y);if(J){let{name:G,ver:$}=J,b=$;if(G==="yarn"&&$&&Number.parseInt($)>1)return X="yarn@berry",b="berry",{name:G,agent:X,version:b};else if(G==="pnpm"&&$&&Number.parseInt($)<7)return X="pnpm@6",{name:G,agent:X,version:b};else if(z9.includes(G))return X=G,{name:G,agent:X,version:b};else return Q.onUnknown?.(Y.packageManager)??null}}catch{}return null}function Zk(x){return x.endsWith(".yarn_integrity")}var cN=N9(()=>{WJ()});var jN={};i8(jN,{resolveCommand:()=>VN,getUserAgent:()=>MN,detect:()=>DN,constructCommand:()=>QJ,LOCKS:()=>v9,INSTALL_PAGE:()=>NN,INSTALL_METADATA:()=>B9,COMMANDS:()=>xJ,AGENTS:()=>z9});var AN=N9(()=>{qN();WJ();cN()});import{promises as K9,readFileSync as mk}from"node:fs";import{homedir as pN}from"node:os";import{dirname as fk,join as wJ}from"node:path";function C8(x,Q){return function(){return x.apply(Q,arguments)}}var{toString:xL}=Object.prototype,{getPrototypeOf:Ex}=Object,{iterator:k8,toStringTag:qJ}=Symbol,U9=(({hasOwnProperty:x})=>(Q,W)=>x.call(Q,W))(Object.prototype),T8=(x,Q)=>{let W=x,Y=[];while(W!=null&&W!==Object.prototype){if(Y.indexOf(W)!==-1)return!1;if(Y.push(W),U9(W,Q))return!0;W=Ex(W)}return!1},QL=(x,Q)=>x!=null&&T8(x,Q)?x[Q]:void 0,k3=((x)=>(Q)=>{let W=xL.call(Q);return x[W]||(x[W]=W.slice(8,-1).toLowerCase())})(Object.create(null)),_1=(x)=>{return x=x.toLowerCase(),(Q)=>k3(Q)===x},F9=(x)=>(Q)=>typeof Q===x,{isArray:s4}=Array,Sx=F9("undefined");function Px(x){return x!==null&&!Sx(x)&&x.constructor!==null&&!Sx(x.constructor)&&B1(x.constructor.isBuffer)&&x.constructor.isBuffer(x)}var NJ=_1("ArrayBuffer");function WL(x){let Q;if(typeof ArrayBuffer<"u"&&ArrayBuffer.isView)Q=ArrayBuffer.isView(x);else Q=x&&x.buffer&&NJ(x.buffer);return Q}var YL=F9("string"),B1=F9("function"),LJ=F9("number"),Rx=(x)=>x!==null&&typeof x==="object",XL=(x)=>x===!0||x===!1,L9=(x)=>{if(!Rx(x))return!1;let Q=Ex(x);return(Q===null||Q===Object.prototype||Ex(Q)===null)&&!T8(x,qJ)&&!T8(x,k8)},JL=(x)=>{if(!Rx(x)||Px(x))return!1;try{return Object.keys(x).length===0&&Object.getPrototypeOf(x)===Object.prototype}catch(Q){return!1}},GL=_1("Date"),$L=_1("File"),bL=(x)=>{return!!(x&&typeof x.uri<"u")},zL=(x)=>x&&typeof x.getParts<"u",vL=_1("Blob"),BL=_1("FileList"),wL=(x)=>Rx(x)&&B1(x.pipe);function KL(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;return{}}var HJ=KL(),VJ=typeof HJ.FormData<"u"?HJ.FormData:void 0,HL=(x)=>{if(!x)return!1;if(VJ&&x instanceof VJ)return!0;let Q=Ex(x);if(!Q||Q===Object.prototype)return!1;if(!B1(x.append))return!1;let W=k3(x);return W==="formdata"||W==="object"&&B1(x.toString)&&x.toString()==="[object FormData]"},VL=_1("URLSearchParams"),[qL,NL,LL,UL]=["ReadableStream","Request","Response","Headers"].map(_1),FL=(x)=>{return x.trim?x.trim():x.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")};function _8(x,Q,{allOwnKeys:W=!1}={}){if(x===null||typeof x>"u")return;let Y,X;if(typeof x!=="object")x=[x];if(s4(x))for(Y=0,X=x.length;Y<X;Y++)Q.call(null,x[Y],Y,x);else{if(Px(x))return;let J=W?Object.getOwnPropertyNames(x):Object.keys(x),G=J.length,$;for(Y=0;Y<G;Y++)$=J[Y],Q.call(null,x[$],$,x)}}function UJ(x,Q){if(Px(x))return null;Q=Q.toLowerCase();let W=Object.keys(x),Y=W.length,X;while(Y-- >0)if(X=W[Y],Q===X.toLowerCase())return X;return null}var r4=(()=>{if(typeof globalThis<"u")return globalThis;return typeof self<"u"?self:typeof window<"u"?window:global})(),FJ=(x)=>!Sx(x)&&x!==r4;function T3(...x){let{caseless:Q,skipUndefined:W}=FJ(this)&&this||{},Y={},X=(J,G)=>{if(G==="__proto__"||G==="constructor"||G==="prototype")return;let $=Q&&typeof G==="string"&&UJ(Y,G)||G,b=U9(Y,$)?Y[$]:void 0;if(L9(b)&&L9(J))Y[$]=T3(b,J);else if(L9(J))Y[$]=T3({},J);else if(s4(J))Y[$]=J.slice();else if(!W||!Sx(J))Y[$]=J};for(let J=0,G=x.length;J<G;J++){let $=x[J];if(!$||Px($))continue;if(_8($,X),typeof $!=="object"||s4($))continue;let b=Object.getOwnPropertySymbols($);for(let z=0;z<b.length;z++){let v=b[z];if(ZL.call($,v))X($[v],v)}}return Y}var ML=(x,Q,W,{allOwnKeys:Y}={})=>{return _8(Q,(X,J)=>{if(W&&B1(X))Object.defineProperty(x,J,{__proto__:null,value:C8(X,W),writable:!0,enumerable:!0,configurable:!0});else Object.defineProperty(x,J,{__proto__:null,value:X,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:Y}),x},DL=(x)=>{if(x.charCodeAt(0)===65279)x=x.slice(1);return x},cL=(x,Q,W,Y)=>{x.prototype=Object.create(Q.prototype,Y),Object.defineProperty(x.prototype,"constructor",{__proto__:null,value:x,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(x,"super",{__proto__:null,value:Q.prototype}),W&&Object.assign(x.prototype,W)},jL=(x,Q,W,Y)=>{let X,J,G,$={};if(Q=Q||{},x==null)return Q;do{X=Object.getOwnPropertyNames(x),J=X.length;while(J-- >0)if(G=X[J],(!Y||Y(G,x,Q))&&!$[G])Q[G]=x[G],$[G]=!0;x=W!==!1&&Ex(x)}while(x&&(!W||W(x,Q))&&x!==Object.prototype);return Q},AL=(x,Q,W)=>{if(x=String(x),W===void 0||W>x.length)W=x.length;W-=Q.length;let Y=x.indexOf(Q,W);return Y!==-1&&Y===W},OL=(x)=>{if(!x)return null;if(s4(x))return x;let Q=x.length;if(!LJ(Q))return null;let W=Array(Q);while(Q-- >0)W[Q]=x[Q];return W},IL=((x)=>{return(Q)=>{return x&&Q instanceof x}})(typeof Uint8Array<"u"&&Ex(Uint8Array)),EL=(x,Q)=>{let Y=(x&&x[k8]).call(x),X;while((X=Y.next())&&!X.done){let J=X.value;Q.call(x,J[0],J[1])}},SL=(x,Q)=>{let W,Y=[];while((W=x.exec(Q))!==null)Y.push(W);return Y},PL=_1("HTMLFormElement"),RL=(x)=>{return x.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(W,Y,X){return Y.toUpperCase()+X})},{propertyIsEnumerable:ZL}=Object.prototype,iL=_1("RegExp"),MJ=(x,Q)=>{let W=Object.getOwnPropertyDescriptors(x),Y={};_8(W,(X,J)=>{let G;if((G=Q(X,J,x))!==!1)Y[J]=G||X}),Object.defineProperties(x,Y)},CL=(x)=>{MJ(x,(Q,W)=>{if(B1(x)&&["arguments","caller","callee"].includes(W))return!1;let Y=x[W];if(!B1(Y))return;if(Q.enumerable=!1,"writable"in Q){Q.writable=!1;return}if(!Q.set)Q.set=()=>{throw Error("Can not rewrite read-only method '"+W+"'")}})},TL=(x,Q)=>{let W={},Y=(X)=>{X.forEach((J)=>{W[J]=!0})};return s4(x)?Y(x):Y(String(x).split(Q)),W},kL=()=>{},_L=(x,Q)=>{return x!=null&&Number.isFinite(x=+x)?x:Q};function uL(x){return!!(x&&B1(x.append)&&x[qJ]==="FormData"&&x[k8])}var pL=(x)=>{let Q=new WeakSet,W=(Y)=>{if(Rx(Y)){if(Q.has(Y))return;if(Px(Y))return Y;if(!("toJSON"in Y)){Q.add(Y);let X=s4(Y)?[]:{};return _8(Y,(J,G)=>{let $=W(J);!Sx($)&&(X[G]=$)}),Q.delete(Y),X}}return Y};return W(x)},lL=_1("AsyncFunction"),nL=(x)=>x&&(Rx(x)||B1(x))&&B1(x.then)&&B1(x.catch),DJ=((x,Q)=>{if(x)return setImmediate;return Q?((W,Y)=>{return r4.addEventListener("message",({source:X,data:J})=>{if(X===r4&&J===W)Y.length&&Y.shift()()},!1),(X)=>{Y.push(X),r4.postMessage(W,"*")}})(`axios@${Math.random()}`,[]):(W)=>setTimeout(W)})(typeof setImmediate==="function",B1(r4.postMessage)),mL=typeof queueMicrotask<"u"?queueMicrotask.bind(r4):typeof process<"u"&&process.nextTick||DJ,cJ=(x)=>x!=null&&B1(x[k8]),fL=(x)=>x!=null&&T8(x,k8)&&cJ(x),H={isArray:s4,isArrayBuffer:NJ,isBuffer:Px,isFormData:HL,isArrayBufferView:WL,isString:YL,isNumber:LJ,isBoolean:XL,isObject:Rx,isPlainObject:L9,isEmptyObject:JL,isReadableStream:qL,isRequest:NL,isResponse:LL,isHeaders:UL,isUndefined:Sx,isDate:GL,isFile:$L,isReactNativeBlob:bL,isReactNative:zL,isBlob:vL,isRegExp:iL,isFunction:B1,isStream:wL,isURLSearchParams:VL,isTypedArray:IL,isFileList:BL,forEach:_8,merge:T3,extend:ML,trim:FL,stripBOM:DL,inherits:cL,toFlatObject:jL,kindOf:k3,kindOfTest:_1,endsWith:AL,toArray:OL,forEachEntry:EL,matchAll:SL,isHTMLForm:PL,hasOwnProperty:U9,hasOwnProp:U9,hasOwnInPrototypeChain:T8,getSafeProp:QL,reduceDescriptors:MJ,freezeMethods:CL,toObjectSet:TL,toCamelCase:RL,noop:kL,toFiniteNumber:_L,findKey:UJ,global:r4,isContextDefined:FJ,isSpecCompliantForm:uL,toJSONObject:pL,isAsyncFn:lL,isThenable:nL,setImmediate:DJ,asap:mL,isIterable:cJ,isSafeIterable:fL};var yL=H.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"]),jJ=(x)=>{let Q={},W,Y,X;return x&&x.split(`
27
- `).forEach(function(G){if(X=G.indexOf(":"),W=G.substring(0,X).trim().toLowerCase(),Y=G.substring(X+1).trim(),!W||Q[W]&&yL[W])return;if(W==="set-cookie")if(Q[W])Q[W].push(Y);else Q[W]=[Y];else Q[W]=Q[W]?Q[W]+", "+Y:Y}),Q};function gL(x){let Q=0,W=x.length;while(Q<W){let Y=x.charCodeAt(Q);if(Y!==9&&Y!==32)break;Q+=1}while(W>Q){let Y=x.charCodeAt(W-1);if(Y!==9&&Y!==32)break;W-=1}return Q===0&&W===x.length?x:x.slice(Q,W)}var hL=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),oL=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function _3(x,Q){if(H.isArray(x))return x.map((W)=>_3(W,Q));return gL(String(x).replace(Q,""))}var AJ=(x)=>_3(x,hL),aL=(x)=>_3(x,oL);function Zx(x){let Q=Object.create(null);return H.forEach(x.toJSON(),(W,Y)=>{Q[Y]=aL(W)}),Q}var OJ=Symbol("internals");function u8(x){return x&&String(x).trim().toLowerCase()}function M9(x){if(x===!1||x==null)return x;return H.isArray(x)?x.map(M9):AJ(String(x))}function dL(x){let Q=Object.create(null),W=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,Y;while(Y=W.exec(x))Q[Y[1]]=Y[2];return Q}var rL=(x)=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(x.trim());function u3(x,Q,W,Y,X){if(H.isFunction(Y))return Y.call(this,Q,W);if(X)Q=W;if(!H.isString(Q))return;if(H.isString(Y))return Q.indexOf(Y)!==-1;if(H.isRegExp(Y))return Y.test(Q)}function sL(x){return x.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(Q,W,Y)=>{return W.toUpperCase()+Y})}function tL(x,Q){let W=H.toCamelCase(" "+Q);["get","set","has"].forEach((Y)=>{Object.defineProperty(x,Y+W,{__proto__:null,value:function(X,J,G){return this[Y].call(this,Q,X,J,G)},configurable:!0})})}class p8{constructor(x){x&&this.set(x)}set(x,Q,W){let Y=this;function X(G,$,b){let z=u8($);if(!z)return;let v=H.findKey(Y,z);if(!v||Y[v]===void 0||b===!0||b===void 0&&Y[v]!==!1)Y[v||$]=M9(G)}let J=(G,$)=>H.forEach(G,(b,z)=>X(b,z,$));if(H.isPlainObject(x)||x instanceof this.constructor)J(x,Q);else if(H.isString(x)&&(x=x.trim())&&!rL(x))J(jJ(x),Q);else if(H.isObject(x)&&H.isSafeIterable(x)){let G=Object.create(null),$,b;for(let z of x){if(!H.isArray(z))throw TypeError("Object iterator must return a key-value pair");if(b=z[0],H.hasOwnProp(G,b))$=G[b],G[b]=H.isArray($)?[...$,z[1]]:[$,z[1]];else G[b]=z[1]}J(G,Q)}else x!=null&&X(Q,x,W);return this}get(x,Q){if(x=u8(x),x){let W=H.findKey(this,x);if(W){let Y=this[W];if(!Q)return Y;if(Q===!0)return dL(Y);if(H.isFunction(Q))return Q.call(this,Y,W);if(H.isRegExp(Q))return Q.exec(Y);throw TypeError("parser must be boolean|regexp|function")}}}has(x,Q){if(x=u8(x),x){let W=H.findKey(this,x);return!!(W&&this[W]!==void 0&&(!Q||u3(this,this[W],W,Q)))}return!1}delete(x,Q){let W=this,Y=!1;function X(J){if(J=u8(J),J){let G=H.findKey(W,J);if(G&&(!Q||u3(W,W[G],G,Q)))delete W[G],Y=!0}}if(H.isArray(x))x.forEach(X);else X(x);return Y}clear(x){let Q=Object.keys(this),W=Q.length,Y=!1;while(W--){let X=Q[W];if(!x||u3(this,this[X],X,x,!0))delete this[X],Y=!0}return Y}normalize(x){let Q=this,W={};return H.forEach(this,(Y,X)=>{let J=H.findKey(W,X);if(J){Q[J]=M9(Y),delete Q[X];return}let G=x?sL(X):String(X).trim();if(G!==X)delete Q[X];Q[G]=M9(Y),W[G]=!0}),this}concat(...x){return this.constructor.concat(this,...x)}toJSON(x){let Q=Object.create(null);return H.forEach(this,(W,Y)=>{W!=null&&W!==!1&&(Q[Y]=x&&H.isArray(W)?W.join(", "):W)}),Q}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([x,Q])=>x+": "+Q).join(`
28
- `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(x){return x instanceof this?x:new this(x)}static concat(x,...Q){let W=new this(x);return Q.forEach((Y)=>W.set(Y)),W}static accessor(x){let W=(this[OJ]=this[OJ]={accessors:{}}).accessors,Y=this.prototype;function X(J){let G=u8(J);if(!W[G])tL(Y,J),W[G]=!0}return H.isArray(x)?x.forEach(X):X(x),this}}p8.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);H.reduceDescriptors(p8.prototype,({value:x},Q)=>{let W=Q[0].toUpperCase()+Q.slice(1);return{get:()=>x,set(Y){this[W]=Y}}});H.freezeMethods(p8);var V0=p8;var eL="[REDACTED ****]";function xU(x){if(H.hasOwnProp(x,"toJSON"))return!0;let Q=Object.getPrototypeOf(x);while(Q&&Q!==Object.prototype){if(H.hasOwnProp(Q,"toJSON"))return!0;Q=Object.getPrototypeOf(Q)}return!1}function QU(x,Q){let W=new Set(Q.map((J)=>String(J).toLowerCase())),Y=[],X=(J)=>{if(J===null||typeof J!=="object")return J;if(H.isBuffer(J))return J;if(Y.indexOf(J)!==-1)return;if(J instanceof V0)J=J.toJSON();Y.push(J);let G;if(H.isArray(J))G=[],J.forEach(($,b)=>{let z=X($);if(!H.isUndefined(z))G[b]=z});else{if(!H.isPlainObject(J)&&xU(J))return Y.pop(),J;G=Object.create(null);for(let[$,b]of Object.entries(J)){let z=W.has($.toLowerCase())?eL:X(b);if(!H.isUndefined(z))G[$]=z}}return Y.pop(),G};return X(x)}class a0 extends Error{static from(x,Q,W,Y,X,J){let G=new a0(x.message,Q||x.code,W,Y,X);if(G.cause=x,G.name=x.name,x.status!=null&&G.status==null)G.status=x.status;return J&&Object.assign(G,J),G}constructor(x,Q,W,Y,X){super(x);if(Object.defineProperty(this,"message",{__proto__:null,value:x,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,Q&&(this.code=Q),W&&(this.config=W),Y&&(this.request=Y),X)this.response=X,this.status=X.status}toJSON(){let x=this.config,Q=x&&H.hasOwnProp(x,"redact")?x.redact:void 0,W=H.isArray(Q)&&Q.length>0?QU(x,Q):H.toJSONObject(x);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:W,code:this.code,status:this.status}}}a0.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";a0.ERR_BAD_OPTION="ERR_BAD_OPTION";a0.ECONNABORTED="ECONNABORTED";a0.ETIMEDOUT="ETIMEDOUT";a0.ECONNREFUSED="ECONNREFUSED";a0.ERR_NETWORK="ERR_NETWORK";a0.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";a0.ERR_DEPRECATED="ERR_DEPRECATED";a0.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";a0.ERR_BAD_REQUEST="ERR_BAD_REQUEST";a0.ERR_CANCELED="ERR_CANCELED";a0.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";a0.ERR_INVALID_URL="ERR_INVALID_URL";a0.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";var A=a0;var P$=Z8(S$(),1),Z9=P$.default;var z5=100;function b5(x){return H.isPlainObject(x)||H.isArray(x)}function R$(x){return H.endsWith(x,"[]")?x.slice(0,-2):x}function $5(x,Q,W){if(!x)return Q;return x.concat(Q).map(function(X,J){return X=R$(X),!W&&J?"["+X+"]":X}).join(W?".":"")}function yF(x){return H.isArray(x)&&!x.some(b5)}var gF=H.toFlatObject(H,{},null,function(Q){return/^is[A-Z]/.test(Q)});function hF(x,Q,W){if(!H.isObject(x))throw TypeError("target must be an object");Q=Q||new(Z9||FormData),W=H.toFlatObject(W,{metaTokens:!0,dots:!1,indexes:!1},!1,function(U,c){return!H.isUndefined(c[U])});let Y=W.metaTokens,X=W.visitor||V,J=W.dots,G=W.indexes,$=W.Blob||typeof Blob<"u"&&Blob,b=W.maxDepth===void 0?z5:W.maxDepth,z=$&&H.isSpecCompliantForm(Q),v=[];if(!H.isFunction(X))throw TypeError("visitor must be a function");function B(q){if(q===null)return"";if(H.isDate(q))return q.toISOString();if(H.isBoolean(q))return q.toString();if(!z&&H.isBlob(q))throw new A("Blob is not supported. Use a Buffer instead.");if(H.isArrayBuffer(q)||H.isTypedArray(q))return z&&typeof Blob==="function"?new Blob([q]):Buffer.from(q);return q}function K(q){if(q>b)throw new A("Object is too deeply nested ("+q+" levels). Max depth: "+b,A.ERR_FORM_DATA_DEPTH_EXCEEDED)}function w(q,U){if(b===1/0)return JSON.stringify(q);let c=[];return JSON.stringify(q,function(i,y){if(!H.isObject(y))return y;while(c.length&&c[c.length-1]!==this)c.pop();return c.push(y),K(U+c.length-1),y})}function V(q,U,c){let S=q;if(H.isReactNative(Q)&&H.isReactNativeBlob(q))return Q.append($5(c,U,J),B(q)),!1;if(q&&!c&&typeof q==="object"){if(H.endsWith(U,"{}"))U=Y?U:U.slice(0,-2),q=w(q,1);else if(H.isArray(q)&&yF(q)||(H.isFileList(q)||H.endsWith(U,"[]"))&&(S=H.toArray(q)))return U=R$(U),S.forEach(function(y,B0){!(H.isUndefined(y)||y===null)&&Q.append(G===!0?$5([U],B0,J):G===null?U:U+"[]",B(y))}),!1}if(b5(q))return!0;return Q.append($5(c,U,J),B(q)),!1}let N=Object.assign(gF,{defaultVisitor:V,convertValue:B,isVisitable:b5});function L(q,U,c=0){if(H.isUndefined(q))return;if(K(c),v.indexOf(q)!==-1)throw Error("Circular reference detected in "+U.join("."));v.push(q),H.forEach(q,function(i,y){if((!(H.isUndefined(i)||i===null)&&X.call(Q,i,H.isString(y)?y.trim():y,U,N))===!0)L(i,U?U.concat(y):[y],c+1)}),v.pop()}if(!H.isObject(x))throw TypeError("data must be an object");return L(x),Q}var c4=hF;function Z$(x){let Q={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(x).replace(/[!'()~]|%20/g,function(Y){return Q[Y]})}function i$(x,Q){this._pairs=[],x&&c4(x,this,Q)}var C$=i$.prototype;C$.append=function(Q,W){this._pairs.push([Q,W])};C$.toString=function(Q){let W=Q?function(Y){return Q.call(this,Y,Z$)}:Z$;return this._pairs.map(function(X){return W(X[0])+"="+W(X[1])},"").join("&")};var T$=i$;function oF(x){return encodeURIComponent(x).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function e4(x,Q,W){if(!Q)return x;let Y=H.isFunction(W)?{serialize:W}:W,X=H.getSafeProp(Y,"encode")||oF,J=H.getSafeProp(Y,"serialize"),G;if(J)G=J(Q,Y);else G=H.isURLSearchParams(Q)?Q.toString():new T$(Q,Y).toString(X);if(G){let $=x.indexOf("#");if($!==-1)x=x.slice(0,$);x+=(x.indexOf("?")===-1?"?":"&")+G}return x}class k${constructor(){this.handlers=[]}use(x,Q,W){return this.handlers.push({fulfilled:x,rejected:Q,synchronous:W?W.synchronous:!1,runWhen:W?W.runWhen:null}),this.handlers.length-1}eject(x){if(this.handlers[x])this.handlers[x]=null}clear(){if(this.handlers)this.handlers=[]}forEach(x){H.forEach(this.handlers,function(W){if(W!==null)x(W)})}}var v5=k$;var j4={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0};import dF from"crypto";import aF from"url";var _$=aF.URLSearchParams;var B5="abcdefghijklmnopqrstuvwxyz",u$="0123456789",p$={DIGIT:u$,ALPHA:B5,ALPHA_DIGIT:B5+B5.toUpperCase()+u$},rF=(x=16,Q=p$.ALPHA_DIGIT)=>{let W="",{length:Y}=Q,X=new Uint32Array(x);dF.randomFillSync(X);for(let J=0;J<x;J++)W+=Q[X[J]%Y];return W},l$={isNode:!0,classes:{URLSearchParams:_$,FormData:Z9,Blob:typeof Blob<"u"&&Blob||null},ALPHABET:p$,generateString:rF,protocols:["http","https","file","data"]};var H5={};i8(H5,{origin:()=>eF,navigator:()=>w5,hasStandardBrowserWebWorkerEnv:()=>tF,hasStandardBrowserEnv:()=>sF,hasBrowserEnv:()=>K5});var K5=typeof window<"u"&&typeof document<"u",w5=typeof navigator==="object"&&navigator||void 0,sF=K5&&(!w5||["ReactNative","NativeScript","NS"].indexOf(w5.product)<0),tF=(()=>{return typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts==="function"})(),eF=K5&&window.location.href||"http://localhost";var b0={...H5,...l$};function V5(x,Q){return c4(x,new b0.classes.URLSearchParams,{visitor:function(W,Y,X,J){if(b0.isNode&&H.isBuffer(W))return this.append(Y,W.toString("base64")),!1;return J.defaultVisitor.apply(this,arguments)},...Q})}var n$=z5;function m$(x){if(x>n$)throw new A("FormData field is too deeply nested ("+x+" levels). Max depth: "+n$,A.ERR_FORM_DATA_DEPTH_EXCEEDED)}function xM(x){let Q=[],W=/\w+|\[(\w*)]/g,Y;while((Y=W.exec(x))!==null)m$(Q.length),Q.push(Y[0]==="[]"?"":Y[1]||Y[0]);return Q}function QM(x){let Q={},W=Object.keys(x),Y,X=W.length,J;for(Y=0;Y<X;Y++)J=W[Y],Q[J]=x[J];return Q}function WM(x){function Q(W,Y,X,J){m$(J);let G=W[J++];if(G==="__proto__")return!0;let $=Number.isFinite(+G),b=J>=W.length;if(G=!G&&H.isArray(X)?X.length:G,b){if(H.hasOwnProp(X,G))X[G]=H.isArray(X[G])?X[G].concat(Y):[X[G],Y];else X[G]=Y;return!$}if(!H.hasOwnProp(X,G)||!H.isObject(X[G]))X[G]=[];if(Q(W,Y,X[G],J)&&H.isArray(X[G]))X[G]=QM(X[G]);return!$}if(H.isFormData(x)&&H.isFunction(x.entries)){let W={};return H.forEachEntry(x,(Y,X)=>{Q(xM(Y),X,W,0)}),W}return null}var i9=WM;var _x=(x,Q)=>x!=null&&H.hasOwnProp(x,Q)?x[Q]:void 0;function YM(x,Q,W){if(H.isString(x))try{return(Q||JSON.parse)(x),H.trim(x)}catch(Y){if(Y.name!=="SyntaxError")throw Y}return(W||JSON.stringify)(x)}var q5={transitional:j4,adapter:["xhr","http","fetch"],transformRequest:[function(Q,W){let Y=W.getContentType()||"",X=Y.indexOf("application/json")>-1,J=H.isObject(Q);if(J&&H.isHTMLForm(Q))Q=new FormData(Q);if(H.isFormData(Q))return X?JSON.stringify(i9(Q)):Q;if(H.isArrayBuffer(Q)||H.isBuffer(Q)||H.isStream(Q)||H.isFile(Q)||H.isBlob(Q)||H.isReadableStream(Q))return Q;if(H.isArrayBufferView(Q))return Q.buffer;if(H.isURLSearchParams(Q))return W.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),Q.toString();let $;if(J){let b=_x(this,"formSerializer");if(Y.indexOf("application/x-www-form-urlencoded")>-1)return V5(Q,b).toString();if(($=H.isFileList(Q))||Y.indexOf("multipart/form-data")>-1){let z=_x(this,"env"),v=z&&z.FormData;return c4($?{"files[]":Q}:Q,v&&new v,b)}}if(J||X)return W.setContentType("application/json",!1),YM(Q);return Q}],transformResponse:[function(Q){let W=_x(this,"transitional")||q5.transitional,Y=W&&W.forcedJSONParsing,X=_x(this,"responseType"),J=X==="json";if(H.isResponse(Q)||H.isReadableStream(Q))return Q;if(Q&&H.isString(Q)&&(Y&&!X||J)){let $=!(W&&W.silentJSONParsing)&&J;try{return JSON.parse(Q,_x(this,"parseReviver"))}catch(b){if($){if(b.name==="SyntaxError")throw A.from(b,A.ERR_BAD_RESPONSE,this,null,_x(this,"response"));throw b}}}return Q}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:b0.classes.FormData,Blob:b0.classes.Blob},validateStatus:function(Q){return Q>=200&&Q<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};H.forEach(["delete","get","head","post","put","patch","query"],(x)=>{q5.headers[x]={}});var ux=q5;function y8(x,Q){let W=this||ux,Y=Q||W,X=V0.from(Y.headers),J=Y.data;return H.forEach(x,function($){J=$.call(W,J,X.normalize(),Q?Q.status:void 0)}),X.normalize(),J}function g8(x){return!!(x&&x.__CANCEL__)}class f$ extends A{constructor(x,Q,W){super(x==null?"canceled":x,A.ERR_CANCELED,Q,W);this.name="CanceledError",this.__CANCEL__=!0}}var M1=f$;function W4(x,Q,W){let Y=W.config.validateStatus;if(!W.status||!Y||Y(W.status))x(W);else Q(new A("Request failed with status code "+W.status,W.status>=400&&W.status<500?A.ERR_BAD_REQUEST:A.ERR_BAD_RESPONSE,W.config,W.request,W))}function N5(x){if(typeof x!=="string")return!1;return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(x)}function L5(x,Q){return Q?x.replace(/\/?\/$/,"")+"/"+Q.replace(/^\/+/,""):x}var XM=/^https?:(?!\/\/)/i,JM=/[\t\n\r]/g;function GM(x){let Q=0;while(Q<x.length&&x.charCodeAt(Q)<=32)Q++;return x.slice(Q)}function $M(x){return GM(x).replace(JM,"")}function y$(x,Q){if(typeof x==="string"&&XM.test($M(x)))throw new A('Invalid URL: missing "//" after protocol',A.ERR_INVALID_URL,Q)}function xx(x,Q,W,Y){y$(Q,Y);let X=!N5(Q);if(x&&(X||W===!1))return y$(x,Y),L5(x,Q);return Q}var bM={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443};function zM(x){try{return new URL(x)}catch{return null}}function g$(x){var Q=(typeof x==="string"?zM(x):x)||{},W=Q.protocol,Y=Q.host,X=Q.port;if(typeof Y!=="string"||!Y||typeof W!=="string")return"";if(W=W.split(":",1)[0],Y=Y.replace(/:\d*$/,""),X=parseInt(X)||bM[W]||0,!vM(Y,X))return"";var J=U5(W+"_proxy")||U5("all_proxy");if(J&&J.indexOf("://")===-1)J=W+"://"+J;return J}function vM(x,Q){var W=U5("no_proxy").toLowerCase();if(!W)return!0;if(W==="*")return!1;return W.split(/[,\s]/).every(function(Y){if(!Y)return!0;var X=Y.match(/^(.+):(\d+)$/),J=X?X[1]:Y,G=X?parseInt(X[2]):0;if(G&&G!==Q)return!0;if(!/^[.*]/.test(J))return x!==J;if(J.charAt(0)==="*")J=J.slice(1);return!x.endsWith(J)})}function U5(x){return process.env[x.toLowerCase()]||process.env[x.toUpperCase()]||""}var h5=Z8(Nb(),1),ob=Z8(jb(),1);import sD from"http";import tD from"https";import eD from"http2";import xc from"util";import{resolve as pb}from"path";import P1 from"zlib";var z4="1.18.0";function W6(x){let Q=/^([-+\w]{1,25}):(?:\/\/)?/.exec(x);return Q&&Q[1]||""}var ID=/^([^,;]+\/[^,;]+)?((?:;[^,;=]+=[^,;]+)*)(;base64)?,([\s\S]*)$/;function n5(x,Q,W){let Y=W&&W.Blob||b0.classes.Blob,X=W6(x);if(Q===void 0&&Y)Q=!0;if(X==="data"){x=X.length?x.slice(X.length+1):x;let J=ID.exec(x);if(!J)throw new A("Invalid URL",A.ERR_INVALID_URL);let G=J[1],$=J[2],b=J[3]?"base64":"utf8",z=J[4],v;if(G)v=$?G+$:G;else if($)v="text/plain"+$;let B=Buffer.from(decodeURIComponent(z),b);if(Q){if(!Y)throw new A("Blob is not supported",A.ERR_NOT_SUPPORT);return new Y([B],{type:v})}return B}throw new A("Unsupported protocol "+X,A.ERR_NOT_SUPPORT)}import p1 from"stream";import ED from"stream";var m5=Symbol("internals");class Ab extends ED.Transform{constructor(x){x=H.toFlatObject(x,{maxRate:0,chunkSize:65536,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,(W,Y)=>{return!H.isUndefined(Y[W])});super({readableHighWaterMark:x.chunkSize});let Q=this[m5]={timeWindow:x.timeWindow,chunkSize:x.chunkSize,maxRate:x.maxRate,minChunkSize:x.minChunkSize,bytesSeen:0,isCaptured:!1,notifiedBytesLoaded:0,ts:Date.now(),bytes:0,onReadCallback:null};this.on("newListener",(W)=>{if(W==="progress"){if(!Q.isCaptured)Q.isCaptured=!0}})}_read(x){let Q=this[m5];if(Q.onReadCallback)Q.onReadCallback();return super._read(x)}_transform(x,Q,W){let Y=this[m5],X=Y.maxRate,J=this.readableHighWaterMark,G=Y.timeWindow,$=1000/G,b=X/$,z=Y.minChunkSize!==!1?Math.max(Y.minChunkSize,b*0.01):0,v=(K,w)=>{let V=Buffer.byteLength(K);if(Y.bytesSeen+=V,Y.bytes+=V,Y.isCaptured&&this.emit("progress",Y.bytesSeen),this.push(K))process.nextTick(w);else Y.onReadCallback=()=>{Y.onReadCallback=null,process.nextTick(w)}},B=(K,w)=>{let V=Buffer.byteLength(K),N=null,L=J,q,U=0;if(X){let c=Date.now();if(!Y.ts||(U=c-Y.ts)>=G)Y.ts=c,q=b-Y.bytes,Y.bytes=q<0?-q:0,U=0;q=b-Y.bytes}if(X){if(q<=0)return setTimeout(()=>{w(null,K)},G-U);if(q<L)L=q}if(L&&V>L&&V-L>z)N=K.subarray(L),K=K.subarray(0,L);v(K,N?()=>{process.nextTick(w,null,N)}:w)};B(x,function K(w,V){if(w)return W(w);if(V)B(V,K);else W(null)})}}var f5=Ab;import{EventEmitter as Qc}from"events";import PD from"util";import{Readable as RD}from"stream";var{asyncIterator:Ob}=Symbol,SD=async function*(x){if(x.stream)yield*x.stream();else if(x.arrayBuffer)yield await x.arrayBuffer();else if(x[Ob])yield*x[Ob]();else yield x},p9=SD;var ZD=b0.ALPHABET.ALPHA_DIGIT+"-_",Y6=typeof TextEncoder==="function"?new TextEncoder:new PD.TextEncoder,Gx=`\r
29
- `,iD=Y6.encode(Gx),CD=2;class Ib{constructor(x,Q){let{escapeName:W}=this.constructor,Y=H.isString(Q),X=`Content-Disposition: form-data; name="${W(x)}"${!Y&&Q.name?`; filename="${W(Q.name)}"`:""}${Gx}`;if(Y)Q=Y6.encode(String(Q).replace(/\r?\n|\r\n?/g,Gx));else{let J=String(Q.type||"application/octet-stream").replace(/[\r\n]/g,"");X+=`Content-Type: ${J}${Gx}`}this.headers=Y6.encode(X+Gx),this.contentLength=Y?Q.byteLength:Q.size,this.size=this.headers.byteLength+this.contentLength+CD,this.name=x,this.value=Q}async*encode(){yield this.headers;let{value:x}=this;if(H.isTypedArray(x))yield x;else yield*p9(x);yield iD}static escapeName(x){return String(x).replace(/[\r\n"]/g,(Q)=>({"\r":"%0D","\n":"%0A",'"':"%22"})[Q])}}var TD=(x,Q,W)=>{let{tag:Y="form-data-boundary",size:X=25,boundary:J=Y+"-"+b0.generateString(X,ZD)}=W||{};if(!H.isFormData(x))throw TypeError("FormData instance required");if(J.length<1||J.length>70)throw Error("boundary must be 1-70 characters long");let G=Y6.encode("--"+J+Gx),$=Y6.encode("--"+J+"--"+Gx),b=$.byteLength,z=Array.from(x.entries()).map(([B,K])=>{let w=new Ib(B,K);return b+=w.size,w});b+=G.byteLength*z.length,b=H.toFiniteNumber(b);let v={"Content-Type":`multipart/form-data; boundary=${J}`};if(Number.isFinite(b))v["Content-Length"]=b;return Q&&Q(v),RD.from(async function*(){for(let B of z)yield G,yield*B.encode();yield $}())},Eb=TD;import kD from"stream";class Sb extends kD.Transform{__transform(x,Q,W){this.push(x),W()}_transform(x,Q,W){if(x.length!==0){if(this._transform=this.__transform,x[0]!==120){let Y=Buffer.alloc(2);Y[0]=120,Y[1]=156,this.push(Y,Q)}}this.__transform(x,Q,W)}}var Pb=Sb;import _D from"http2";import uD from"util";class Rb{constructor(){this.sessions=Object.create(null)}getSession(x,Q){Q=Object.assign({sessionTimeout:1000},Q);let W=this.sessions[x];if(W){let v=W.length;for(let B=0;B<v;B++){let[K,w]=W[B];if(!K.destroyed&&!K.closed&&uD.isDeepStrictEqual(w,Q))return K}}let Y=_D.connect(x,Q),X,J,G=()=>{if(X)return;if(X=!0,J)clearTimeout(J),J=null;let v=W,B=v.length,K=B;while(K--)if(v[K][0]===Y){if(B===1)delete this.sessions[x];else v.splice(K,1);if(!Y.closed)Y.close();return}},$=Y.request,{sessionTimeout:b}=Q;if(b!=null){let v=0;Y.request=function(){let B=$.apply(this,arguments);if(v++,J)clearTimeout(J),J=null;return B.once("close",()=>{if(!--v)J=setTimeout(()=>{J=null,G()},b)}),B}}Y.once("close",G);let z=[Y,Q];return W?W.push(z):W=this.sessions[x]=[z],Y}}var Zb=Rb;var pD=(x,Q)=>{return H.isAsyncFn(x)?function(...W){let Y=W.pop();x.apply(this,W).then((X)=>{try{Q?Y(null,...Q(X)):Y(null,X)}catch(J){Y(J)}},Y)}:x},ib=pD;var lD=new Set(["localhost","0.0.0.0"]),kb=(x)=>{let Q=x.split(".");if(Q.length!==4)return!1;if(Q[0]!=="127")return!1;return Q.every((W)=>/^\d+$/.test(W)&&Number(W)>=0&&Number(W)<=255)},y5=(x)=>/^0{1,4}$/.test(x),nD=(x)=>{if(x==="::")return!0;let Q=x.indexOf("::");if(Q!==-1){if(Q!==x.lastIndexOf("::"))return!1;let Y=x.slice(0,Q),X=x.slice(Q+2),J=Y?Y.split(":"):[],G=X?X.split(":"):[];return J.length+G.length<8&&J.every(y5)&&G.every(y5)}let W=x.split(":");return W.length===8&&W.every(y5)},mD=(x)=>{if(x==="::1")return!0;let Q=x.match(/^::ffff:(\d+\.\d+\.\d+\.\d+)$/i);if(Q)return kb(Q[1]);let W=x.match(/^::ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i);if(W){let X=parseInt(W[1],16);return X>=32512&&X<=32767}let Y=x.split(":");if(Y.length===8){for(let X=0;X<7;X++)if(!/^0+$/.test(Y[X]))return!1;return/^0*1$/.test(Y[7])}return!1},Cb=(x)=>{if(!x)return!1;if(lD.has(x))return!0;if(kb(x))return!0;if(nD(x))return!0;return mD(x)},fD={http:80,https:443,ws:80,wss:443,ftp:21},yD=(x)=>{let Q=x,W=0;if(Q.charAt(0)==="["){let J=Q.indexOf("]");if(J!==-1){let G=Q.slice(1,J),$=Q.slice(J+1);if($.charAt(0)===":"&&/^\d+$/.test($.slice(1)))W=Number.parseInt($.slice(1),10);return[G,W]}}let Y=Q.indexOf(":"),X=Q.lastIndexOf(":");if(Y!==-1&&Y===X&&/^\d+$/.test(Q.slice(X+1)))W=Number.parseInt(Q.slice(X+1),10),Q=Q.slice(0,X);return[Q,W]},gD=/^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:(\d+\.\d+\.\d+\.\d+)$/i,hD=/^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i,oD=(x)=>{if(typeof x!=="string"||x.indexOf(":")===-1)return x;let Q=x.match(gD);if(Q)return Q[1];let W=x.match(hD);if(W){let Y=parseInt(W[1],16),X=parseInt(W[2],16);return`${Y>>8}.${Y&255}.${X>>8}.${X&255}`}return x},Tb=(x)=>{if(!x)return x;if(x.charAt(0)==="["&&x.charAt(x.length-1)==="]")x=x.slice(1,-1);return oD(x.replace(/\.+$/,""))};function g5(x){let Q;try{Q=new URL(x)}catch(J){return!1}let W=(process.env.no_proxy||process.env.NO_PROXY||"").toLowerCase();if(!W)return!1;if(W==="*")return!0;let Y=Number.parseInt(Q.port,10)||fD[Q.protocol.split(":",1)[0]]||0,X=Tb(Q.hostname.toLowerCase());return W.split(/[\s,]+/).some((J)=>{if(!J)return!1;let[G,$]=yD(J);if(G=Tb(G),!G)return!1;if($&&$!==Y)return!1;if(G.charAt(0)==="*")G=G.slice(1);if(G.charAt(0)===".")return X.endsWith(G);return X===G||Cb(X)&&Cb(G)})}function aD(x,Q){x=x||10;let W=Array(x),Y=Array(x),X=0,J=0,G;return Q=Q!==void 0?Q:1000,function(b){let z=Date.now(),v=Y[J];if(!G)G=z;W[X]=b,Y[X]=z;let B=J,K=0;while(B!==X)K+=W[B++],B=B%x;if(X=(X+1)%x,X===J)J=(J+1)%x;if(z-G<Q)return;let w=v&&z-v;return w?Math.round(K*1000/w):void 0}}var _b=aD;function dD(x,Q){let W=0,Y=1000/Q,X,J,G=(z,v=Date.now())=>{if(W=v,X=null,J)clearTimeout(J),J=null;x(...z)};return[(...z)=>{let v=Date.now(),B=v-W;if(B>=Y)G(z,v);else if(X=z,!J)J=setTimeout(()=>{J=null,G(X)},Y-B)},()=>X&&G(X)]}var ub=dD;var v4=(x,Q,W=3)=>{let Y=0,X=_b(50,250);return ub((J)=>{if(!J||typeof J.loaded!=="number")return;let G=J.loaded,$=J.lengthComputable?J.total:void 0,b=$!=null?Math.min(G,$):G,z=Math.max(0,b-Y),v=X(z);Y=Math.max(Y,b);let B={loaded:b,total:$,progress:$?b/$:void 0,bytes:z,rate:v?v:void 0,estimated:v&&$?($-b)/v:void 0,event:J,lengthComputable:$!=null,[Q?"download":"upload"]:!0};x(B)},W)},fx=(x,Q)=>{let W=x!=null;return[(Y)=>Q[0]({lengthComputable:W,total:x,loaded:Y}),Q[1]]},yx=(x)=>(...Q)=>H.asap(()=>x(...Q));var l9=(x)=>x>=48&&x<=57||x>=65&&x<=70||x>=97&&x<=102,rD=(x,Q,W)=>Q+2<W&&l9(x.charCodeAt(Q+1))&&l9(x.charCodeAt(Q+2));function X6(x){if(!x||typeof x!=="string")return 0;if(!x.startsWith("data:"))return 0;let Q=x.indexOf(",");if(Q<0)return 0;let W=x.slice(5,Q),Y=x.slice(Q+1);if(/;base64/i.test(W)){let{length:G,length:$}=Y;for(let w=0;w<$;w++)if(Y.charCodeAt(w)===37&&w+2<$){let V=Y.charCodeAt(w+1),N=Y.charCodeAt(w+2);if(l9(V)&&l9(N))G-=2,w+=2}let b=0,z=$-1,v=(w)=>w>=2&&Y.charCodeAt(w-2)===37&&Y.charCodeAt(w-1)===51&&(Y.charCodeAt(w)===68||Y.charCodeAt(w)===100);if(z>=0){if(Y.charCodeAt(z)===61)b++,z--;else if(v(z))b++,z-=3}if(b===1&&z>=0){if(Y.charCodeAt(z)===61)b++;else if(v(z))b++}let K=Math.floor(G/4)*3-(b||0);return K>0?K:0}let J=0;for(let G=0,$=Y.length;G<$;G++){let b=Y.charCodeAt(G);if(b===37&&rD(Y,G,$))J+=1,G+=2;else if(b<128)J+=1;else if(b<2048)J+=2;else if(b>=55296&&b<=56319&&G+1<$){let z=Y.charCodeAt(G+1);if(z>=56320&&z<=57343)J+=4,G++;else J+=3}else J+=3}return J}var lb={flush:P1.constants.Z_SYNC_FLUSH,finishFlush:P1.constants.Z_SYNC_FLUSH},Wc={flush:P1.constants.BROTLI_OPERATION_FLUSH,finishFlush:P1.constants.BROTLI_OPERATION_FLUSH},Yc={flush:P1.constants.ZSTD_e_flush,finishFlush:P1.constants.ZSTD_e_flush},ab=H.isFunction(P1.createBrotliDecompress),db=H.isFunction(P1.createZstdDecompress),rb="gzip, compress, deflate"+(ab?", br":""),Xc=rb+(db?", zstd":""),{http:Jc,https:Gc}=ob.default,sb=/https:?/,$c=["content-type","content-length"];function bc(x,Q,W){if(W!=="content-only"){x.set(Q);return}Object.entries(Q).forEach(([Y,X])=>{if($c.includes(Y.toLowerCase()))x.set(Y,X)})}var nb=Symbol("axios.http.socketListener"),n9=Symbol("axios.http.currentReq"),tb=Symbol("axios.http.installedTunnel"),zc=new Map,mb=new WeakMap;function vc(x,Q){let W=x.protocol+"//"+x.hostname+":"+(x.port||"")+"#"+(x.auth||""),Y=Q?mb.get(Q)||mb.set(Q,new Map).get(Q):zc,X=Y.get(W);if(X)return X;let J=Q&&Q.options?{...Q.options,...x}:x;if(X=new h5.default(J),Q&&Q.options){let G={...Q.options},$=X.callback;X.callback=function(z,v){return $.call(this,z,{...G,...v})}}return X[tb]=!0,Y.set(W,X),X}var fb=b0.protocols.map((x)=>{return x+":"}),yb=(x)=>{if(!H.isString(x))return x;try{return decodeURIComponent(x)}catch(Q){return x}},gb=(x,[Q,W])=>{return x.on("end",W).on("error",W),Q},Bc=new Zb;function wc(x,Q,W){if(x.beforeRedirects.proxy)x.beforeRedirects.proxy(x);if(x.beforeRedirects.auth)x.beforeRedirects.auth(x);if(x.beforeRedirects.sensitiveHeaders)x.beforeRedirects.sensitiveHeaders(x,W);if(x.beforeRedirects.config)x.beforeRedirects.config(x,Q,W)}function Kc(x,Q){if(!x)return;Object.keys(x).forEach((W)=>{if(Q.has(W.toLowerCase()))delete x[W]})}function Hc(x,Q){if(!Q)return!1;try{return new URL(Q.url).origin===new URL(x.href).origin}catch(W){return!1}}function eb(x,Q,W,Y,X){let J=Q;if(!J&&J!==!1){let G=g$(W);if(G){if(!g5(W))J=new URL(G)}}if(Y&&x.headers){for(let G of Object.keys(x.headers))if(G.toLowerCase()==="proxy-authorization")delete x.headers[G]}if(Y&&x.agent&&x.agent[tb])x.agent=void 0;if(J){let G=J instanceof URL,$=(K)=>G||H.hasOwnProp(J,K)?J[K]:void 0,b=$("username"),z=$("password"),v=H.hasOwnProp(J,"auth")?J.auth:void 0;if(b)v=(b||"")+":"+(z||"");if(v){let K=typeof v==="object",w=K&&H.hasOwnProp(v,"username")?v.username:void 0,V=K&&H.hasOwnProp(v,"password")?v.password:void 0;if(Boolean(w||V))v=(w||"")+":"+(V||"");else if(K)throw new A("Invalid proxy authorization",A.ERR_BAD_OPTION,{proxy:J})}if(sb.test(x.protocol)){if(!(X instanceof h5.default)){let K=$("hostname")||$("host"),w=$("port"),V=$("protocol"),N=V?V.includes(":")?V:`${V}:`:"http:",L=K&&K.includes(":")&&!K.startsWith("[")?`[${K}]`:K,q=new URL(`${N}//${L}${w?":"+w:""}`),U={protocol:q.protocol,hostname:q.hostname.replace(/^\[|\]$/g,""),port:q.port,auth:v&&typeof v==="string"?v:void 0};if(q.protocol==="https:")U.ALPNProtocols=["http/1.1"];let c=vc(U,X);if(x.agent=c,x.agents)x.agents.https=c}}else{if(v){let N=Buffer.from(v,"utf8").toString("base64");x.headers["Proxy-Authorization"]="Basic "+N}let K=!1;for(let N of Object.keys(x.headers))if(N.toLowerCase()==="host"){K=!0;break}if(!K)x.headers.host=x.hostname+(x.port?":"+x.port:"");let w=$("hostname")||$("host");x.hostname=w,x.host=w,x.port=$("port"),x.path=W;let V=$("protocol");if(V)x.protocol=V.includes(":")?V:`${V}:`}}x.beforeRedirects.proxy=function($){eb($,Q,$.href,!0,X)}}var Vc=typeof process<"u"&&H.kindOf(process)==="process",qc=(x)=>{return new Promise((Q,W)=>{let Y,X,J=(b,z)=>{if(X)return;X=!0,Y&&Y(b,z)},G=(b)=>{J(b),Q(b)},$=(b)=>{J(b,!0),W(b)};x(G,$,(b)=>Y=b).catch($)})},Nc=({address:x,family:Q})=>{if(!H.isString(x))throw TypeError("address must be a string");return{address:x,family:Q||(x.indexOf(".")<0?6:4)}},hb=(x,Q)=>Nc(H.isObject(x)?x:{address:x,family:Q}),Lc={request(x,Q){let W=x.protocol+"//"+x.hostname+":"+(x.port||(x.protocol==="https:"?443:80)),{http2Options:Y,headers:X}=x,J=Bc.getSession(W,Y),{HTTP2_HEADER_SCHEME:G,HTTP2_HEADER_METHOD:$,HTTP2_HEADER_PATH:b,HTTP2_HEADER_STATUS:z}=eD.constants,v={[G]:x.protocol.replace(":",""),[$]:x.method,[b]:x.path};H.forEach(X,(K,w)=>{w.charAt(0)!==":"&&(v[w]=K)});let B=J.request(v);return B.once("response",(K)=>{let w=B;K=Object.assign({},K);let V=K[z];delete K[z],w.headers=K,w.statusCode=+V,Q(w)}),B}},xz=Vc&&function(Q){return qc(async function(Y,X,J){let G=(O)=>H.getSafeProp(Q,O),$=G("transitional")||j4,b=G("data"),z=G("lookup"),v=G("family"),B=G("httpVersion");if(B===void 0)B=1;let K=G("http2Options"),w=G("responseType"),V=G("responseEncoding"),N=G("httpAgent"),L=G("httpsAgent"),q=G("method").toUpperCase(),U=G("maxRedirects"),c=G("maxBodyLength"),S=G("maxContentLength"),i=G("decompress"),y,B0=!1,d,z1;if(B=+B,Number.isNaN(B))throw TypeError(`Invalid protocol version: '${Q.httpVersion}' is not a number`);if(B!==1&&B!==2)throw TypeError(`Unsupported protocol version '${B}'`);let x1=B===2;if(z){let O=ib(z,(R)=>H.isArray(R)?R:[R]);z=(R,h,v0)=>{O(R,h,(s,_0,Z0)=>{if(s)return v0(s);let T0=H.isArray(_0)?_0.map((Ix)=>hb(Ix)):[hb(_0,Z0)];h.all?v0(s,T0):v0(s,T0[0].address,T0[0].family)})}}let m0=new Qc;function o0(O){try{m0.emit("abort",!O||O.type?new M1(null,Q,d):O)}catch(R){}}function x4(){if(z1)clearTimeout(z1),z1=null}function v1(){let O=G("timeout"),R=O?"timeout of "+O+"ms exceeded":"timeout exceeded",h=G("timeoutErrorMessage");if(h)R=h;return new A(R,$.clarifyTimeoutError?A.ETIMEDOUT:A.ECONNABORTED,Q,d)}m0.once("abort",X);let U4=()=>{if(x4(),Q.cancelToken)Q.cancelToken.unsubscribe(o0);if(Q.signal)Q.signal.removeEventListener("abort",o0);m0.removeAllListeners()};if(Q.cancelToken||Q.signal){if(Q.cancelToken&&Q.cancelToken.subscribe(o0),Q.signal)Q.signal.aborted?o0():Q.signal.addEventListener("abort",o0)}J((O,R)=>{if(y=!0,x4(),R){B0=!0,U4();return}let{data:h}=O;if(h instanceof p1.Readable||h instanceof p1.Duplex){let v0=p1.finished(h,()=>{v0(),U4()})}else U4()});let F4=xx(G("baseURL"),G("url"),G("allowAbsoluteUrls"),Q),p0=new URL(F4,b0.hasBrowserEnv?b0.origin:void 0),h4=p0.protocol||fb[0];if(h4==="data:"){if(S>-1){let R=String(G("url")||F4||"");if(X6(R)>S)return X(new A("maxContentLength size of "+S+" exceeded",A.ERR_BAD_RESPONSE,Q))}let O;if(q!=="GET")return W4(Y,X,{status:405,statusText:"method not allowed",headers:{},config:Q});try{O=n5(G("url"),w==="blob",{Blob:Q.env&&Q.env.Blob})}catch(R){throw A.from(R,A.ERR_BAD_REQUEST,Q)}if(w==="text"){if(O=O.toString(V),!V||V==="utf8")O=H.stripBOM(O)}else if(w==="stream")O=p1.Readable.from(O);return W4(Y,X,{data:O,status:200,statusText:"OK",headers:new V0,config:Q})}if(fb.indexOf(h4)===-1)return X(new A("Unsupported protocol "+h4,A.ERR_BAD_REQUEST,Q));let Q1=V0.from(Q.headers).normalize();Q1.set("User-Agent","axios/"+z4,!1);let{onUploadProgress:O1,onDownloadProgress:C0}=Q,I1=Q.maxRate,k1=void 0,Q4=void 0;if(H.isSpecCompliantForm(b)){let O=Q1.getContentType(/boundary=([-_\w\d]{10,70})/i);b=Eb(b,(R)=>{Q1.set(R)},{tag:`axios-${z4}-boundary`,boundary:O&&O[1]||void 0})}else if(H.isFormData(b)&&H.isFunction(b.getHeaders)&&b.getHeaders!==Object.prototype.getHeaders){if(bc(Q1,b.getHeaders(),G("formDataHeaderPolicy")),!Q1.hasContentLength())try{let O=await xc.promisify(b.getLength).call(b);Number.isFinite(O)&&O>=0&&Q1.setContentLength(O)}catch(O){}}else if(H.isBlob(b)||H.isFile(b))b.size&&Q1.setContentType(b.type||"application/octet-stream"),Q1.setContentLength(b.size||0),b=p1.Readable.from(p9(b));else if(b&&!H.isStream(b)){if(Buffer.isBuffer(b));else if(H.isArrayBuffer(b))b=Buffer.from(new Uint8Array(b));else if(H.isString(b))b=Buffer.from(b,"utf-8");else return X(new A("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",A.ERR_BAD_REQUEST,Q));if(Q1.setContentLength(b.length,!1),c>-1&&b.length>c)return X(new A("Request body larger than maxBodyLength limit",A.ERR_BAD_REQUEST,Q))}let q9=H.toFiniteNumber(Q1.getContentLength());if(H.isArray(I1))k1=I1[0],Q4=I1[1];else k1=Q4=I1;if(b&&(O1||k1)){if(!H.isStream(b))b=p1.Readable.from(b,{objectMode:!1});b=p1.pipeline([b,new f5({maxRate:H.toFiniteNumber(k1)})],H.noop),O1&&b.on("progress",gb(b,fx(q9,v4(yx(O1),!1,3))))}let x0=void 0,U1=G("auth");if(U1){let O=H.getSafeProp(U1,"username")||"",R=H.getSafeProp(U1,"password")||"";x0=O+":"+R}if(!x0&&(p0.username||p0.password)){let O=yb(p0.username),R=yb(p0.password);x0=O+":"+R}x0&&Q1.delete("authorization");let o4;try{o4=e4(p0.pathname+p0.search,G("params"),G("paramsSerializer")).replace(/^\?/,"")}catch(O){let R=Error(O.message);return R.config=Q,R.url=G("url"),R.exists=!0,X(R)}Q1.set("Accept-Encoding",H.hasOwnProp($,"advertiseZstdAcceptEncoding")&&$.advertiseZstdAcceptEncoding===!0?Xc:rb,!1);let R0=Object.assign(Object.create(null),{path:o4,method:q,headers:Zx(Q1),agents:{http:N,https:L},auth:x0,protocol:h4,family:v,beforeRedirect:wc,beforeRedirects:Object.create(null),http2Options:K});!H.isUndefined(z)&&(R0.lookup=z);let a4=G("socketPath");if(a4){if(typeof a4!=="string")return X(new A("socketPath must be a string",A.ERR_BAD_OPTION_VALUE,Q));let O=G("allowedSocketPaths");if(O!=null){let R=Array.isArray(O)?O:[O],h=pb(a4);if(!R.some((s)=>typeof s==="string"&&pb(s)===h))return X(new A(`socketPath "${a4}" is not permitted by allowedSocketPaths`,A.ERR_BAD_OPTION_VALUE,Q))}R0.socketPath=a4}else R0.hostname=p0.hostname.startsWith("[")?p0.hostname.slice(1,-1):p0.hostname,R0.port=p0.port,eb(R0,G("proxy"),h4+"//"+p0.hostname+(p0.port?":"+p0.port:"")+R0.path,!1,L);let M4,E1=!1,P8=!1,d4=sb.test(R0.protocol);if(R0.agent==null)R0.agent=d4?L:N;if(x1)M4=Lc;else{let O=G("transport");if(O)M4=O;else if(U===0)M4=d4?tD:sD,E1=!0;else{if(P8=!0,R0.sensitiveHeaders=[],U)R0.maxRedirects=U;let R=G("beforeRedirect");if(R)R0.beforeRedirects.config=R;if(x0){let v0=p0.origin,s=x0;R0.beforeRedirects.auth=function(Z0){try{if(new URL(Z0.href).origin===v0)Z0.auth=s}catch(T0){}}}let h=G("sensitiveHeaders");if(h!=null){if(!H.isArray(h))return X(new A("sensitiveHeaders must be an array of strings",A.ERR_BAD_OPTION_VALUE,Q));let v0=new Set;for(let s of h){if(!H.isString(s))return X(new A("sensitiveHeaders must be an array of strings",A.ERR_BAD_OPTION_VALUE,Q));v0.add(s.toLowerCase())}if(v0.size)R0.sensitiveHeaders=Array.from(v0),R0.beforeRedirects.sensitiveHeaders=function(_0,Z0){if(!Hc(_0,Z0))Kc(_0.headers,v0)}}M4=d4?Gc:Jc}}if(c>-1)R0.maxBodyLength=c;else R0.maxBodyLength=1/0;R0.insecureHTTPParser=Boolean(G("insecureHTTPParser")),d=M4.request(R0,function(R){if(x4(),d.destroyed)return;let h=[R],v0=H.toFiniteNumber(R.headers["content-length"]);if(C0||Q4){let T0=new f5({maxRate:H.toFiniteNumber(Q4)});C0&&T0.on("progress",gb(T0,fx(v0,v4(yx(C0),!0,3)))),h.push(T0)}let s=R,_0=R.req||d;if(i!==!1&&R.headers["content-encoding"]){if(q==="HEAD"||R.statusCode===204)delete R.headers["content-encoding"];switch((R.headers["content-encoding"]||"").toLowerCase()){case"gzip":case"x-gzip":case"compress":case"x-compress":h.push(P1.createUnzip(lb)),delete R.headers["content-encoding"];break;case"deflate":h.push(new Pb),h.push(P1.createUnzip(lb)),delete R.headers["content-encoding"];break;case"br":if(ab)h.push(P1.createBrotliDecompress(Wc)),delete R.headers["content-encoding"];break;case"zstd":if(db)h.push(P1.createZstdDecompress(Yc)),delete R.headers["content-encoding"];break}}s=h.length>1?p1.pipeline(h,H.noop):h[0];let Z0={status:R.statusCode,statusText:R.statusMessage,headers:new V0(R.headers),config:Q,request:_0};if(w==="stream"){if(S>-1){let T0=S,Ix=s;async function*R8(){let f0=0;for await(let KJ of Ix){if(f0+=KJ.length,f0>T0)throw new A("maxContentLength size of "+T0+" exceeded",A.ERR_BAD_RESPONSE,Q,_0);yield KJ}}s=p1.Readable.from(R8(),{objectMode:!1})}Z0.data=s,W4(Y,X,Z0)}else{let T0=[],Ix=0;s.on("data",function(f0){if(T0.push(f0),Ix+=f0.length,S>-1&&Ix>S)B0=!0,s.destroy(),o0(new A("maxContentLength size of "+S+" exceeded",A.ERR_BAD_RESPONSE,Q,_0))}),s.on("aborted",function(){if(B0)return;let f0=new A("stream has been aborted",A.ERR_BAD_RESPONSE,Q,_0,Z0);s.destroy(f0),X(f0)}),s.on("error",function(f0){if(B0)return;X(A.from(f0,null,Q,_0,Z0))}),s.on("end",function(){try{let f0=T0.length===1?T0[0]:Buffer.concat(T0);if(w!=="arraybuffer"){if(f0=f0.toString(V),!V||V==="utf8")f0=H.stripBOM(f0)}Z0.data=f0}catch(f0){return X(A.from(f0,null,Q,Z0.request,Z0))}W4(Y,X,Z0)})}m0.once("abort",(T0)=>{if(!s.destroyed)s.emit("error",T0),s.destroy()})}),m0.once("abort",(O)=>{if(d.close)d.close();else d.destroy(O)}),d.on("error",function(R){X(A.from(R,null,Q,d))});let F1=new Set;if(d.on("socket",function(R){if(R.setKeepAlive(!0,60000),!R[nb])R.on("error",function(v0){let s=R[n9];if(s&&!s.destroyed)s.destroy(v0)}),R[nb]=!0;R[n9]=d,F1.add(R)}),d.once("close",function(){x4();for(let R of F1)if(R[n9]===d)R[n9]=null;F1.clear()}),G("timeout")){let O=parseInt(G("timeout"),10);if(Number.isNaN(O)){o0(new A("error trying to parse `config.timeout` to int",A.ERR_BAD_OPTION_VALUE,Q,d));return}let R=function(){if(y)return;o0(v1())};if(E1&&O>0)z1=setTimeout(R,O);d.setTimeout(O,R)}else d.setTimeout(0);if(H.isStream(b)){let O=!1,R=!1;b.on("end",()=>{O=!0}),b.once("error",(v0)=>{R=!0,d.destroy(v0)}),b.on("close",()=>{if(!O&&!R)o0(new M1("Request stream has been aborted",Q,d))});let h=b;if(c>-1&&!P8){let v0=c,s=0;h=p1.pipeline([b,new p1.Transform({transform(_0,Z0,T0){if(s+=_0.length,s>v0)return T0(new A("Request body larger than maxBodyLength limit",A.ERR_BAD_REQUEST,Q,d));T0(null,_0)}})],H.noop),h.on("error",(_0)=>{if(!d.destroyed)d.destroy(_0)})}h.pipe(d)}else b&&d.write(b),d.end()})};var Qz=b0.hasStandardBrowserEnv?((x,Q)=>(W)=>{return W=new URL(W,b0.origin),x.protocol===W.protocol&&x.host===W.host&&(Q||x.port===W.port)})(new URL(b0.origin),b0.navigator&&/(msie|trident)/i.test(b0.navigator.userAgent)):()=>!0;var Wz=b0.hasStandardBrowserEnv?{write(x,Q,W,Y,X,J,G){if(typeof document>"u")return;let $=[`${x}=${encodeURIComponent(Q)}`];if(H.isNumber(W))$.push(`expires=${new Date(W).toUTCString()}`);if(H.isString(Y))$.push(`path=${Y}`);if(H.isString(X))$.push(`domain=${X}`);if(J===!0)$.push("secure");if(H.isString(G))$.push(`SameSite=${G}`);document.cookie=$.join("; ")},read(x){if(typeof document>"u")return null;let Q=document.cookie.split(";");for(let W=0;W<Q.length;W++){let Y=Q[W].replace(/^\s+/,""),X=Y.indexOf("=");if(X!==-1&&Y.slice(0,X)===x)return decodeURIComponent(Y.slice(X+1))}return null},remove(x){this.write(x,"",Date.now()-86400000,"/")}}:{write(){},read(){return null},remove(){}};var Yz=(x)=>x instanceof V0?{...x}:x;function l1(x,Q){Q=Q||{};let W=Object.create(null);Object.defineProperty(W,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function Y(v,B,K,w){if(H.isPlainObject(v)&&H.isPlainObject(B))return H.merge.call({caseless:w},v,B);else if(H.isPlainObject(B))return H.merge({},B);else if(H.isArray(B))return B.slice();return B}function X(v,B,K,w){if(!H.isUndefined(B))return Y(v,B,K,w);else if(!H.isUndefined(v))return Y(void 0,v,K,w)}function J(v,B){if(!H.isUndefined(B))return Y(void 0,B)}function G(v,B){if(!H.isUndefined(B))return Y(void 0,B);else if(!H.isUndefined(v))return Y(void 0,v)}function $(v){let B=H.hasOwnProp(Q,"transitional")?Q.transitional:void 0;if(!H.isUndefined(B))if(H.isPlainObject(B)){if(H.hasOwnProp(B,v))return B[v]}else return;let K=H.hasOwnProp(x,"transitional")?x.transitional:void 0;if(H.isPlainObject(K)&&H.hasOwnProp(K,v))return K[v];return}function b(v,B,K){if(H.hasOwnProp(Q,K))return Y(v,B);else if(H.hasOwnProp(x,K))return Y(void 0,v)}let z={url:J,method:J,data:J,baseURL:G,transformRequest:G,transformResponse:G,paramsSerializer:G,timeout:G,timeoutMessage:G,withCredentials:G,withXSRFToken:G,adapter:G,responseType:G,xsrfCookieName:G,xsrfHeaderName:G,onUploadProgress:G,onDownloadProgress:G,decompress:G,maxContentLength:G,maxBodyLength:G,beforeRedirect:G,transport:G,httpAgent:G,httpsAgent:G,cancelToken:G,socketPath:G,allowedSocketPaths:G,responseEncoding:G,validateStatus:b,headers:(v,B,K)=>X(Yz(v),Yz(B),K,!0)};if(H.forEach(Object.keys({...x,...Q}),function(B){if(B==="__proto__"||B==="constructor"||B==="prototype")return;let K=H.hasOwnProp(z,B)?z[B]:X,w=H.hasOwnProp(x,B)?x[B]:void 0,V=H.hasOwnProp(Q,B)?Q[B]:void 0,N=K(w,V,B);H.isUndefined(N)&&K!==b||(W[B]=N)}),H.hasOwnProp(Q,"validateStatus")&&H.isUndefined(Q.validateStatus)&&$("validateStatusUndefinedResolves")===!1)if(H.hasOwnProp(x,"validateStatus"))W.validateStatus=Y(void 0,x.validateStatus);else delete W.validateStatus;return W}var Uc=["content-type","content-length"];function Fc(x,Q,W){if(W!=="content-only"){x.set(Q);return}Object.entries(Q).forEach(([Y,X])=>{if(Uc.includes(Y.toLowerCase()))x.set(Y,X)})}var Mc=(x)=>encodeURIComponent(x).replace(/%([0-9A-F]{2})/gi,(Q,W)=>String.fromCharCode(parseInt(W,16)));function Dc(x){let Q=l1({},x),W=(K)=>H.hasOwnProp(Q,K)?Q[K]:void 0,Y=W("data"),X=W("withXSRFToken"),J=W("xsrfHeaderName"),G=W("xsrfCookieName"),$=W("headers"),b=W("auth"),z=W("baseURL"),v=W("allowAbsoluteUrls"),B=W("url");if(Q.headers=$=V0.from($),Q.url=e4(xx(z,B,v,Q),W("params"),W("paramsSerializer")),b){let K=H.getSafeProp(b,"username")||"",w=H.getSafeProp(b,"password")||"";$.set("Authorization","Basic "+btoa(K+":"+(w?Mc(w):"")))}if(H.isFormData(Y)){if(b0.hasStandardBrowserEnv||b0.hasStandardBrowserWebWorkerEnv||H.isReactNative(Y))$.setContentType(void 0);else if(H.isFunction(Y.getHeaders))Fc($,Y.getHeaders(),W("formDataHeaderPolicy"))}if(b0.hasStandardBrowserEnv){if(H.isFunction(X))X=X(Q);if(X===!0||X==null&&Qz(Q.url)){let w=J&&G&&Wz.read(G);if(w)$.set(J,w)}}return Q}var m9=Dc;var cc=typeof XMLHttpRequest<"u",Xz=cc&&function(x){return new Promise(function(W,Y){let X=m9(x),J=X.data,G=V0.from(X.headers).normalize(),{responseType:$,onUploadProgress:b,onDownloadProgress:z}=X,v,B,K,w,V;function N(){w&&w(),V&&V(),X.cancelToken&&X.cancelToken.unsubscribe(v),X.signal&&X.signal.removeEventListener("abort",v)}let L=new XMLHttpRequest;L.open(X.method.toUpperCase(),X.url,!0),L.timeout=X.timeout;function q(){if(!L)return;let c=V0.from("getAllResponseHeaders"in L&&L.getAllResponseHeaders()),i={data:!$||$==="text"||$==="json"?L.responseText:L.response,status:L.status,statusText:L.statusText,headers:c,config:x,request:L};W4(function(B0){W(B0),N()},function(B0){Y(B0),N()},i),L=null}if("onloadend"in L)L.onloadend=q;else L.onreadystatechange=function(){if(!L||L.readyState!==4)return;if(L.status===0&&!(L.responseURL&&L.responseURL.startsWith("file:")))return;setTimeout(q)};if(L.onabort=function(){if(!L)return;Y(new A("Request aborted",A.ECONNABORTED,x,L)),N(),L=null},L.onerror=function(S){let i=S&&S.message?S.message:"Network Error",y=new A(i,A.ERR_NETWORK,x,L);y.event=S||null,Y(y),N(),L=null},L.ontimeout=function(){let S=X.timeout?"timeout of "+X.timeout+"ms exceeded":"timeout exceeded",i=X.transitional||j4;if(X.timeoutErrorMessage)S=X.timeoutErrorMessage;Y(new A(S,i.clarifyTimeoutError?A.ETIMEDOUT:A.ECONNABORTED,x,L)),N(),L=null},J===void 0&&G.setContentType(null),"setRequestHeader"in L)H.forEach(Zx(G),function(S,i){L.setRequestHeader(i,S)});if(!H.isUndefined(X.withCredentials))L.withCredentials=!!X.withCredentials;if($&&$!=="json")L.responseType=X.responseType;if(z)[K,V]=v4(z,!0),L.addEventListener("progress",K);if(b&&L.upload)[B,w]=v4(b),L.upload.addEventListener("progress",B),L.upload.addEventListener("loadend",w);if(X.cancelToken||X.signal){if(v=(c)=>{if(!L)return;Y(!c||c.type?new M1(null,x,L):c),L.abort(),N(),L=null},X.cancelToken&&X.cancelToken.subscribe(v),X.signal)X.signal.aborted?v():X.signal.addEventListener("abort",v)}let U=W6(X.url);if(U&&!b0.protocols.includes(U)){Y(new A("Unsupported protocol "+U+":",A.ERR_BAD_REQUEST,x));return}L.send(J||null)})};var jc=(x,Q)=>{if(x=x?x.filter(Boolean):[],!Q&&!x.length)return;let W=new AbortController,Y=!1,X=function(b){if(!Y){Y=!0,G();let z=b instanceof Error?b:this.reason;W.abort(z instanceof A?z:new M1(z instanceof Error?z.message:z))}},J=Q&&setTimeout(()=>{J=null,X(new A(`timeout of ${Q}ms exceeded`,A.ETIMEDOUT))},Q),G=()=>{if(!x)return;J&&clearTimeout(J),J=null,x.forEach((b)=>{b.unsubscribe?b.unsubscribe(X):b.removeEventListener("abort",X)}),x=null};x.forEach((b)=>b.addEventListener("abort",X));let{signal:$}=W;return $.unsubscribe=()=>H.asap(G),$},Jz=jc;var Ac=function*(x,Q){let W=x.byteLength;if(!Q||W<Q){yield x;return}let Y=0,X;while(Y<W)X=Y+Q,yield x.slice(Y,X),Y=X},Oc=async function*(x,Q){for await(let W of Ic(x))yield*Ac(W,Q)},Ic=async function*(x){if(x[Symbol.asyncIterator]){yield*x;return}let Q=x.getReader();try{for(;;){let{done:W,value:Y}=await Q.read();if(W)break;yield Y}}finally{await Q.cancel()}},o5=(x,Q,W,Y)=>{let X=Oc(x,Q),J=0,G,$=(b)=>{if(!G)G=!0,Y&&Y(b)};return new ReadableStream({async pull(b){try{let{done:z,value:v}=await X.next();if(z){$(),b.close();return}let B=v.byteLength;if(W){let K=J+=B;W(K)}b.enqueue(new Uint8Array(v))}catch(z){throw $(z),z}},cancel(b){return $(b),X.return()}},{highWaterMark:2})};var Gz=65536,{isFunction:f9}=H,Ec=(x)=>encodeURIComponent(x).replace(/%([0-9A-F]{2})/gi,(Q,W)=>String.fromCharCode(parseInt(W,16))),$z=(x)=>{if(!H.isString(x))return x;try{return decodeURIComponent(x)}catch(Q){return x}},bz=(x,...Q)=>{try{return!!x(...Q)}catch(W){return!1}},Sc=(x)=>{let Q=x.indexOf("://"),W=x;if(Q!==-1)W=W.slice(Q+3);return W.includes("@")||W.includes(":")},Pc=(x)=>{let Q=H.global!==void 0&&H.global!==null?H.global:globalThis,{ReadableStream:W,TextEncoder:Y}=Q;x=H.merge.call({skipUndefined:!0},{Request:Q.Request,Response:Q.Response},x);let{fetch:X,Request:J,Response:G}=x,$=X?f9(X):typeof fetch==="function",b=f9(J),z=f9(G);if(!$)return!1;let v=$&&f9(W),B=$&&(typeof Y==="function"?((q)=>(U)=>q.encode(U))(new Y):async(q)=>new Uint8Array(await new J(q).arrayBuffer())),K=b&&v&&bz(()=>{let q=!1,U=new J(b0.origin,{body:new W,method:"POST",get duplex(){return q=!0,"half"}}),c=U.headers.has("Content-Type");if(U.body!=null)U.body.cancel();return q&&!c}),w=z&&v&&bz(()=>H.isReadableStream(new G("").body)),V={stream:w&&((q)=>q.body)};$&&(()=>{["text","arrayBuffer","blob","formData","stream"].forEach((q)=>{!V[q]&&(V[q]=(U,c)=>{let S=U&&U[q];if(S)return S.call(U);throw new A(`Response type '${q}' is not supported`,A.ERR_NOT_SUPPORT,c)})})})();let N=async(q)=>{if(q==null)return 0;if(H.isBlob(q))return q.size;if(H.isSpecCompliantForm(q))return(await new J(b0.origin,{method:"POST",body:q}).arrayBuffer()).byteLength;if(H.isArrayBufferView(q)||H.isArrayBuffer(q))return q.byteLength;if(H.isURLSearchParams(q))q=q+"";if(H.isString(q))return(await B(q)).byteLength},L=async(q,U)=>{let c=H.toFiniteNumber(q.getContentLength());return c==null?N(U):c};return async(q)=>{let{url:U,method:c,data:S,signal:i,cancelToken:y,timeout:B0,onDownloadProgress:d,onUploadProgress:z1,responseType:x1,headers:m0,withCredentials:o0="same-origin",fetchOptions:x4,maxContentLength:v1,maxBodyLength:U4}=m9(q),F4=H.isNumber(v1)&&v1>-1,p0=H.isNumber(U4)&&U4>-1,h4=(x0)=>H.hasOwnProp(q,x0)?q[x0]:void 0,Q1=X||fetch;x1=x1?(x1+"").toLowerCase():"text";let O1=Jz([i,y&&y.toAbortSignal()],B0),C0=null,I1=O1&&O1.unsubscribe&&(()=>{O1.unsubscribe()}),k1,Q4=null,q9=()=>new A("Request body larger than maxBodyLength limit",A.ERR_BAD_REQUEST,q,C0);try{let x0=void 0,U1=h4("auth");if(U1){let O=H.getSafeProp(U1,"username")||"",R=H.getSafeProp(U1,"password")||"";x0={username:O,password:R}}if(Sc(U)){let O=new URL(U,b0.origin);if(!x0&&(O.username||O.password)){let R=$z(O.username),h=$z(O.password);x0={username:R,password:h}}if(O.username||O.password)O.username="",O.password="",U=O.href}if(x0)m0.delete("authorization"),m0.set("Authorization","Basic "+btoa(Ec((x0.username||"")+":"+(x0.password||""))));if(F4&&typeof U==="string"&&U.startsWith("data:")){if(X6(U)>v1)throw new A("maxContentLength size of "+v1+" exceeded",A.ERR_BAD_RESPONSE,q,C0)}if(p0&&c!=="get"&&c!=="head"){let O=await N(S);if(typeof O==="number"&&isFinite(O)){if(k1=O,O>U4)throw q9()}}let o4=p0&&(H.isReadableStream(S)||H.isStream(S)),R0=(O,R,h)=>o5(O,Gz,(v0)=>{if(p0&&v0>U4)throw Q4=q9();R&&R(v0)},h);if(K&&c!=="get"&&c!=="head"&&(z1||o4)){if(k1=k1==null?await L(m0,S):k1,k1!==0||o4){let O=new J(U,{method:"POST",body:S,duplex:"half"}),R;if(H.isFormData(S)&&(R=O.headers.get("content-type")))m0.setContentType(R);if(O.body){let[h,v0]=z1&&fx(k1,v4(yx(z1)))||[];S=R0(O.body,h,v0)}}}else if(o4&&!b&&v&&c!=="get"&&c!=="head")S=R0(S);else if(o4&&b&&!K&&c!=="get"&&c!=="head")throw new A("Stream request bodies are not supported by the current fetch implementation",A.ERR_NOT_SUPPORT,q,C0);if(!H.isString(o0))o0=o0?"include":"omit";let a4=b&&"credentials"in J.prototype;if(H.isFormData(S)){let O=m0.getContentType();if(O&&/^multipart\/form-data/i.test(O)&&!/boundary=/i.test(O))m0.delete("content-type")}m0.set("User-Agent","axios/"+z4,!1);let M4={...x4,signal:O1,method:c.toUpperCase(),headers:Zx(m0.normalize()),body:S,duplex:"half",credentials:a4?o0:void 0};C0=b&&new J(U,M4);let E1=await(b?Q1(C0,x4):Q1(U,M4)),P8=V0.from(E1.headers);if(F4){let O=H.toFiniteNumber(P8.getContentLength());if(O!=null&&O>v1)throw new A("maxContentLength size of "+v1+" exceeded",A.ERR_BAD_RESPONSE,q,C0)}let d4=w&&(x1==="stream"||x1==="response");if(w&&E1.body&&(d||F4||d4&&I1)){let O={};["status","statusText","headers"].forEach((Z0)=>{O[Z0]=E1[Z0]});let R=H.toFiniteNumber(P8.getContentLength()),[h,v0]=d&&fx(R,v4(yx(d),!0))||[],s=0,_0=(Z0)=>{if(F4){if(s=Z0,s>v1)throw new A("maxContentLength size of "+v1+" exceeded",A.ERR_BAD_RESPONSE,q,C0)}h&&h(Z0)};E1=new G(o5(E1.body,Gz,_0,()=>{v0&&v0(),I1&&I1()}),O)}x1=x1||"text";let F1=await V[H.findKey(V,x1)||"text"](E1,q);if(F4&&!w&&!d4){let O;if(F1!=null){if(typeof F1.byteLength==="number")O=F1.byteLength;else if(typeof F1.size==="number")O=F1.size;else if(typeof F1==="string")O=typeof Y==="function"?new Y().encode(F1).byteLength:F1.length}if(typeof O==="number"&&O>v1)throw new A("maxContentLength size of "+v1+" exceeded",A.ERR_BAD_RESPONSE,q,C0)}return!d4&&I1&&I1(),await new Promise((O,R)=>{W4(O,R,{data:F1,headers:V0.from(E1.headers),status:E1.status,statusText:E1.statusText,config:q,request:C0})})}catch(x0){if(I1&&I1(),O1&&O1.aborted&&O1.reason instanceof A){let U1=O1.reason;throw U1.config=q,C0&&(U1.request=C0),x0!==U1&&(U1.cause=x0),U1}if(Q4)throw C0&&!Q4.request&&(Q4.request=C0),Q4;if(x0 instanceof A)throw C0&&!x0.request&&(x0.request=C0),x0;if(x0&&x0.name==="TypeError"&&/Load failed|fetch/i.test(x0.message))throw Object.assign(new A("Network Error",A.ERR_NETWORK,q,C0,x0&&x0.response),{cause:x0.cause||x0});throw A.from(x0,x0&&x0.code,q,C0,x0&&x0.response)}}},Rc=new Map,a5=(x)=>{let Q=x&&x.env||{},{fetch:W,Request:Y,Response:X}=Q,J=[Y,X,W],G=J.length,$=G,b,z,v=Rc;while($--)b=J[$],z=v.get(b),z===void 0&&v.set(b,z=$?new Map:Pc(Q)),v=z;return z},Pn=a5();var d5={http:xz,xhr:Xz,fetch:{get:a5}};H.forEach(d5,(x,Q)=>{if(x){try{Object.defineProperty(x,"name",{__proto__:null,value:Q})}catch(W){}Object.defineProperty(x,"adapterName",{__proto__:null,value:Q})}});var zz=(x)=>`- ${x}`,ic=(x)=>H.isFunction(x)||x===null||x===!1;function Cc(x,Q){x=H.isArray(x)?x:[x];let{length:W}=x,Y,X,J={};for(let G=0;G<W;G++){Y=x[G];let $;if(X=Y,!ic(Y)){if(X=d5[($=String(Y)).toLowerCase()],X===void 0)throw new A(`Unknown adapter '${$}'`)}if(X&&(H.isFunction(X)||(X=X.get(Q))))break;J[$||"#"+G]=X}if(!X){let G=Object.entries(J).map(([b,z])=>`adapter ${b} `+(z===!1?"is not supported by the environment":"is not available in the build")),$=W?G.length>1?`since :
30
- `+G.map(zz).join(`
31
- `):" "+zz(G[0]):"as no adapter specified";throw new A("There is no suitable adapter to dispatch the request "+$,"ERR_NOT_SUPPORT")}return X}var y9={getAdapter:Cc,adapters:d5};function r5(x){if(x.cancelToken)x.cancelToken.throwIfRequested();if(x.signal&&x.signal.aborted)throw new M1(null,x)}function g9(x){if(r5(x),x.headers=V0.from(x.headers),x.data=y8.call(x,x.transformRequest),["post","put","patch"].indexOf(x.method)!==-1)x.headers.setContentType("application/x-www-form-urlencoded",!1);return y9.getAdapter(x.adapter||ux.adapter,x)(x).then(function(Y){r5(x),x.response=Y;try{Y.data=y8.call(x,x.transformResponse,Y)}finally{delete x.response}return Y.headers=V0.from(Y.headers),Y},function(Y){if(!g8(Y)){if(r5(x),Y&&Y.response){x.response=Y.response;try{Y.response.data=y8.call(x,x.transformResponse,Y.response)}finally{delete x.response}Y.response.headers=V0.from(Y.response.headers)}}return Promise.reject(Y)})}var h9={};["object","boolean","number","function","string","symbol"].forEach((x,Q)=>{h9[x]=function(Y){return typeof Y===x||"a"+(Q<1?"n ":" ")+x}});var vz={};h9.transitional=function(Q,W,Y){function X(J,G){return"[Axios v"+z4+"] Transitional option '"+J+"'"+G+(Y?". "+Y:"")}return(J,G,$)=>{if(Q===!1)throw new A(X(G," has been removed"+(W?" in "+W:"")),A.ERR_DEPRECATED);if(W&&!vz[G])vz[G]=!0,console.warn(X(G," has been deprecated since v"+W+" and will be removed in the near future"));return Q?Q(J,G,$):!0}};h9.spelling=function(Q){return(W,Y)=>{return console.warn(`${Y} is likely a misspelling of ${Q}`),!0}};function Tc(x,Q,W){if(typeof x!=="object")throw new A("options must be an object",A.ERR_BAD_OPTION_VALUE);let Y=Object.keys(x),X=Y.length;while(X-- >0){let J=Y[X],G=Object.prototype.hasOwnProperty.call(Q,J)?Q[J]:void 0;if(G){let $=x[J],b=$===void 0||G($,J,x);if(b!==!0)throw new A("option "+J+" must be "+b,A.ERR_BAD_OPTION_VALUE);continue}if(W!==!0)throw new A("Unknown option "+J,A.ERR_BAD_OPTION)}}var J6={assertOptions:Tc,validators:h9};var W1=J6.validators;class G6{constructor(x){this.defaults=x||{},this.interceptors={request:new v5,response:new v5}}async request(x,Q){try{return await this._request(x,Q)}catch(W){if(W instanceof Error){let Y={};Error.captureStackTrace?Error.captureStackTrace(Y):Y=Error();let X=(()=>{if(!Y.stack)return"";let J=Y.stack.indexOf(`
26
+ deps: ${W}}`};var wC={keyword:"dependencies",type:"object",schemaType:"object",error:CV.error,code(x){let[Q,W]=KC(x);ZV(x,Q),iV(x,W)}};function KC({schema:x}){let Q={},W={};for(let Y in x){if(Y==="__proto__")continue;let X=Array.isArray(x[Y])?Q:W;X[Y]=x[Y]}return[Q,W]}function ZV(x,Q=x.schema){let{gen:W,data:Y,it:X}=x;if(Object.keys(Q).length===0)return;let J=W.let("missing");for(let G in Q){let $=Q[G];if($.length===0)continue;let b=(0,J9.propertyInData)(W,Y,G,X.opts.ownProperties);if(x.setParams({property:G,depsCount:$.length,deps:$.join(", ")}),X.allErrors)W.if(b,()=>{for(let z of $)(0,J9.checkReportMissingProp)(x,z)});else W.if(OX._`${b} && (${(0,J9.checkMissingProp)(x,$,J)})`),(0,J9.reportMissingProp)(x,J),W.else()}}CV.validatePropertyDeps=ZV;function iV(x,Q=x.schema){let{gen:W,data:Y,keyword:X,it:J}=x,G=W.name("valid");for(let $ in Q){if((0,BC.alwaysValidSchema)(J,Q[$]))continue;W.if((0,J9.propertyInData)(W,Y,$,J.opts.ownProperties),()=>{let b=x.subschema({keyword:X,schemaProp:$},G);x.mergeValidEvaluated(b,G)},()=>W.var(G,!0)),x.ok(G)}}CV.validateSchemaDeps=iV;CV.default=wC});var lV=M((pV)=>{Object.defineProperty(pV,"__esModule",{value:!0});var uV=a(),qC=G0(),NC={message:"property name must be valid",params:({params:x})=>uV._`{propertyName: ${x.propertyName}}`},UC={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:NC,code(x){let{gen:Q,schema:W,data:Y,it:X}=x;if((0,qC.alwaysValidSchema)(X,W))return;let J=Q.name("valid");Q.forIn("key",Y,(G)=>{x.setParams({propertyName:G}),x.subschema({keyword:"propertyNames",data:G,dataTypes:["string"],propertyName:G,compositeRule:!0},J),Q.if((0,uV.not)(J),()=>{if(x.error(!0),!X.allErrors)Q.break()})}),x.ok(J)}};pV.default=UC});var IX=M((nV)=>{Object.defineProperty(nV,"__esModule",{value:!0});var F3=C1(),t1=a(),FC=V4(),M3=G0(),MC={message:"must NOT have additional properties",params:({params:x})=>t1._`{additionalProperty: ${x.additionalProperty}}`},DC={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:MC,code(x){let{gen:Q,schema:W,parentSchema:Y,data:X,errsCount:J,it:G}=x;if(!J)throw Error("ajv implementation error");let{allErrors:$,opts:b}=G;if(G.props=!0,b.removeAdditional!=="all"&&(0,M3.alwaysValidSchema)(G,W))return;let z=(0,F3.allSchemaProperties)(Y.properties),v=(0,F3.allSchemaProperties)(Y.patternProperties);B(),x.ok(t1._`${J} === ${FC.default.errors}`);function B(){Q.forIn("key",X,(U)=>{if(!z.length&&!v.length)V(U);else Q.if(K(U),()=>V(U))})}function K(U){let q;if(z.length>8){let L=(0,M3.schemaRefOrVal)(G,Y.properties,"properties");q=(0,F3.isOwnProperty)(Q,L,U)}else if(z.length)q=(0,t1.or)(...z.map((L)=>t1._`${U} === ${L}`));else q=t1.nil;if(v.length)q=(0,t1.or)(q,...v.map((L)=>t1._`${(0,F3.usePattern)(x,L)}.test(${U})`));return(0,t1.not)(q)}function w(U){Q.code(t1._`delete ${X}[${U}]`)}function V(U){if(b.removeAdditional==="all"||b.removeAdditional&&W===!1){w(U);return}if(W===!1){if(x.setParams({additionalProperty:U}),x.error(),!$)Q.break();return}if(typeof W=="object"&&!(0,M3.alwaysValidSchema)(G,W)){let q=Q.name("valid");if(b.removeAdditional==="failing")N(U,q,!1),Q.if((0,t1.not)(q),()=>{x.reset(),w(U)});else if(N(U,q),!$)Q.if((0,t1.not)(q),()=>Q.break())}}function N(U,q,L){let c={keyword:"additionalProperties",dataProp:U,dataPropType:M3.Type.Str};if(L===!1)Object.assign(c,{compositeRule:!0,createErrors:!1,allErrors:!1});x.subschema(c,q)}}};nV.default=DC});var gV=M((yV)=>{Object.defineProperty(yV,"__esModule",{value:!0});var jC=o6(),mV=C1(),EX=G0(),fV=IX(),AC={keyword:"properties",type:"object",schemaType:"object",code(x){let{gen:Q,schema:W,parentSchema:Y,data:X,it:J}=x;if(J.opts.removeAdditional==="all"&&Y.additionalProperties===void 0)fV.default.code(new jC.KeywordCxt(J,fV.default,"additionalProperties"));let G=(0,mV.allSchemaProperties)(W);for(let B of G)J.definedProperties.add(B);if(J.opts.unevaluated&&G.length&&J.props!==!0)J.props=EX.mergeEvaluated.props(Q,(0,EX.toHash)(G),J.props);let $=G.filter((B)=>!(0,EX.alwaysValidSchema)(J,W[B]));if($.length===0)return;let b=Q.name("valid");for(let B of $){if(z(B))v(B);else{if(Q.if((0,mV.propertyInData)(Q,X,B,J.opts.ownProperties)),v(B),!J.allErrors)Q.else().var(b,!0);Q.endIf()}x.it.definedProperties.add(B),x.ok(b)}function z(B){return J.opts.useDefaults&&!J.compositeRule&&W[B].default!==void 0}function v(B){x.subschema({keyword:"properties",schemaProp:B,dataProp:B},b)}}};yV.default=AC});var rV=M((dV)=>{Object.defineProperty(dV,"__esModule",{value:!0});var hV=C1(),D3=a(),oV=G0(),aV=G0(),IC={keyword:"patternProperties",type:"object",schemaType:"object",code(x){let{gen:Q,schema:W,data:Y,parentSchema:X,it:J}=x,{opts:G}=J,$=(0,hV.allSchemaProperties)(W),b=$.filter((N)=>(0,oV.alwaysValidSchema)(J,W[N]));if($.length===0||b.length===$.length&&(!J.opts.unevaluated||J.props===!0))return;let z=G.strictSchema&&!G.allowMatchingProperties&&X.properties,v=Q.name("valid");if(J.props!==!0&&!(J.props instanceof D3.Name))J.props=(0,aV.evaluatedPropsToName)(Q,J.props);let{props:B}=J;K();function K(){for(let N of $){if(z)w(N);if(J.allErrors)V(N);else Q.var(v,!0),V(N),Q.if(v)}}function w(N){for(let U in z)if(new RegExp(N).test(U))(0,oV.checkStrictMode)(J,`property ${U} matches pattern ${N} (use allowMatchingProperties)`)}function V(N){Q.forIn("key",Y,(U)=>{Q.if(D3._`${(0,hV.usePattern)(x,N)}.test(${U})`,()=>{let q=b.includes(N);if(!q)x.subschema({keyword:"patternProperties",schemaProp:N,dataProp:U,dataPropType:aV.Type.Str},v);if(J.opts.unevaluated&&B!==!0)Q.assign(D3._`${B}[${U}]`,!0);else if(!q&&!J.allErrors)Q.if((0,D3.not)(v),()=>Q.break())})})}}};dV.default=IC});var tV=M((sV)=>{Object.defineProperty(sV,"__esModule",{value:!0});var SC=G0(),PC={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(x){let{gen:Q,schema:W,it:Y}=x;if((0,SC.alwaysValidSchema)(Y,W)){x.fail();return}let X=Q.name("valid");x.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},X),x.failResult(X,()=>x.reset(),()=>x.error())},error:{message:"must NOT be valid"}};sV.default=PC});var xq=M((eV)=>{Object.defineProperty(eV,"__esModule",{value:!0});var ZC=C1(),iC={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:ZC.validateUnion,error:{message:"must match a schema in anyOf"}};eV.default=iC});var Wq=M((Qq)=>{Object.defineProperty(Qq,"__esModule",{value:!0});var c3=a(),TC=G0(),kC={message:"must match exactly one schema in oneOf",params:({params:x})=>c3._`{passingSchemas: ${x.passing}}`},_C={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:kC,code(x){let{gen:Q,schema:W,parentSchema:Y,it:X}=x;if(!Array.isArray(W))throw Error("ajv implementation error");if(X.opts.discriminator&&Y.discriminator)return;let J=W,G=Q.let("valid",!1),$=Q.let("passing",null),b=Q.name("_valid");x.setParams({passing:$}),Q.block(z),x.result(G,()=>x.reset(),()=>x.error(!0));function z(){J.forEach((v,B)=>{let K;if((0,TC.alwaysValidSchema)(X,v))Q.var(b,!0);else K=x.subschema({keyword:"oneOf",schemaProp:B,compositeRule:!0},b);if(B>0)Q.if(c3._`${b} && ${G}`).assign(G,!1).assign($,c3._`[${$}, ${B}]`).else();Q.if(b,()=>{if(Q.assign(G,!0),Q.assign($,B),K)x.mergeEvaluated(K,c3.Name)})})}}};Qq.default=_C});var Xq=M((Yq)=>{Object.defineProperty(Yq,"__esModule",{value:!0});var pC=G0(),lC={keyword:"allOf",schemaType:"array",code(x){let{gen:Q,schema:W,it:Y}=x;if(!Array.isArray(W))throw Error("ajv implementation error");let X=Q.name("valid");W.forEach((J,G)=>{if((0,pC.alwaysValidSchema)(Y,J))return;let $=x.subschema({keyword:"allOf",schemaProp:G},X);x.ok(X),x.mergeEvaluated($)})}};Yq.default=lC});var bq=M(($q)=>{Object.defineProperty($q,"__esModule",{value:!0});var j3=a(),Gq=G0(),mC={message:({params:x})=>j3.str`must match "${x.ifClause}" schema`,params:({params:x})=>j3._`{failingKeyword: ${x.ifClause}}`},fC={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:mC,code(x){let{gen:Q,parentSchema:W,it:Y}=x;if(W.then===void 0&&W.else===void 0)(0,Gq.checkStrictMode)(Y,'"if" without "then" and "else" is ignored');let X=Jq(Y,"then"),J=Jq(Y,"else");if(!X&&!J)return;let G=Q.let("valid",!0),$=Q.name("_valid");if(b(),x.reset(),X&&J){let v=Q.let("ifClause");x.setParams({ifClause:v}),Q.if($,z("then",v),z("else",v))}else if(X)Q.if($,z("then"));else Q.if((0,j3.not)($),z("else"));x.pass(G,()=>x.error(!0));function b(){let v=x.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},$);x.mergeEvaluated(v)}function z(v,B){return()=>{let K=x.subschema({keyword:v},$);if(Q.assign(G,$),x.mergeValidEvaluated(K,G),B)Q.assign(B,j3._`${v}`);else x.setParams({ifClause:v})}}}};function Jq(x,Q){let W=x.schema[Q];return W!==void 0&&!(0,Gq.alwaysValidSchema)(x,W)}$q.default=fC});var vq=M((zq)=>{Object.defineProperty(zq,"__esModule",{value:!0});var gC=G0(),hC={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:x,parentSchema:Q,it:W}){if(Q.if===void 0)(0,gC.checkStrictMode)(W,`"${x}" without "if" is ignored`)}};zq.default=hC});var wq=M((Bq)=>{Object.defineProperty(Bq,"__esModule",{value:!0});var aC=jX(),dC=OV(),rC=AX(),sC=SV(),tC=RV(),eC=_V(),xT=lV(),QT=IX(),WT=gV(),YT=rV(),XT=tV(),JT=xq(),GT=Wq(),$T=Xq(),bT=bq(),zT=vq();function vT(x=!1){let Q=[XT.default,JT.default,GT.default,$T.default,bT.default,zT.default,xT.default,QT.default,eC.default,WT.default,YT.default];if(x)Q.push(dC.default,sC.default);else Q.push(aC.default,rC.default);return Q.push(tC.default),Q}Bq.default=vT});var Hq=M((Kq)=>{Object.defineProperty(Kq,"__esModule",{value:!0});var k0=a(),wT={message:({schemaCode:x})=>k0.str`must match format "${x}"`,params:({schemaCode:x})=>k0._`{format: ${x}}`},KT={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:wT,code(x,Q){let{gen:W,data:Y,$data:X,schema:J,schemaCode:G,it:$}=x,{opts:b,errSchemaPath:z,schemaEnv:v,self:B}=$;if(!b.validateFormats)return;if(X)K();else w();function K(){let V=W.scopeValue("formats",{ref:B.formats,code:b.code.formats}),N=W.const("fDef",k0._`${V}[${G}]`),U=W.let("fType"),q=W.let("format");W.if(k0._`typeof ${N} == "object" && !(${N} instanceof RegExp)`,()=>W.assign(U,k0._`${N}.type || "string"`).assign(q,k0._`${N}.validate`),()=>W.assign(U,k0._`"string"`).assign(q,N)),x.fail$data((0,k0.or)(L(),c()));function L(){if(b.strictSchema===!1)return k0.nil;return k0._`${G} && !${q}`}function c(){let S=v.$async?k0._`(${N}.async ? await ${q}(${Y}) : ${q}(${Y}))`:k0._`${q}(${Y})`,i=k0._`(typeof ${q} == "function" ? ${S} : ${q}.test(${Y}))`;return k0._`${q} && ${q} !== true && ${U} === ${Q} && !${i}`}}function w(){let V=B.formats[J];if(!V){L();return}if(V===!0)return;let[N,U,q]=c(V);if(N===Q)x.pass(S());function L(){if(b.strictSchema===!1){B.logger.warn(i());return}throw Error(i());function i(){return`unknown format "${J}" ignored in schema at path "${z}"`}}function c(i){let y=i instanceof RegExp?(0,k0.regexpCode)(i):b.code.formats?k0._`${b.code.formats}${(0,k0.getProperty)(J)}`:void 0,B0=W.scopeValue("formats",{key:J,ref:i,code:y});if(typeof i=="object"&&!(i instanceof RegExp))return[i.type||"string",i.validate,k0._`${B0}.validate`];return["string",i,B0]}function S(){if(typeof V=="object"&&!(V instanceof RegExp)&&V.async){if(!v.$async)throw Error("async format in sync schema");return k0._`await ${q}(${Y})`}return typeof U=="function"?k0._`${q}(${Y})`:k0._`${q}.test(${Y})`}}}};Kq.default=KT});var qq=M((Vq)=>{Object.defineProperty(Vq,"__esModule",{value:!0});var VT=Hq(),qT=[VT.default];Vq.default=qT});var Lq=M((Nq)=>{Object.defineProperty(Nq,"__esModule",{value:!0});Nq.contentVocabulary=Nq.metadataVocabulary=void 0;Nq.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];Nq.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var Dq=M((Mq)=>{Object.defineProperty(Mq,"__esModule",{value:!0});var LT=yH(),FT=NV(),MT=wq(),DT=qq(),Fq=Lq(),cT=[LT.default,FT.default,(0,MT.default)(),DT.default,Fq.metadataVocabulary,Fq.contentVocabulary];Mq.default=cT});var Oq=M((jq)=>{Object.defineProperty(jq,"__esModule",{value:!0});jq.DiscrError=void 0;var cq;(function(x){x.Tag="tag",x.Mapping="mapping"})(cq||(jq.DiscrError=cq={}))});var Sq=M((Eq)=>{Object.defineProperty(Eq,"__esModule",{value:!0});var A8=a(),SX=Oq(),Iq=$3(),AT=a6(),OT=G0(),IT={message:({params:{discrError:x,tagName:Q}})=>x===SX.DiscrError.Tag?`tag "${Q}" must be string`:`value of tag "${Q}" must be in oneOf`,params:({params:{discrError:x,tag:Q,tagName:W}})=>A8._`{error: ${x}, tag: ${W}, tagValue: ${Q}}`},ET={keyword:"discriminator",type:"object",schemaType:"object",error:IT,code(x){let{gen:Q,data:W,schema:Y,parentSchema:X,it:J}=x,{oneOf:G}=X;if(!J.opts.discriminator)throw Error("discriminator: requires discriminator option");let $=Y.propertyName;if(typeof $!="string")throw Error("discriminator: requires propertyName");if(Y.mapping)throw Error("discriminator: mapping is not supported");if(!G)throw Error("discriminator: requires oneOf keyword");let b=Q.let("valid",!1),z=Q.const("tag",A8._`${W}${(0,A8.getProperty)($)}`);Q.if(A8._`typeof ${z} == "string"`,()=>v(),()=>x.error(!1,{discrError:SX.DiscrError.Tag,tag:z,tagName:$})),x.ok(b);function v(){let w=K();Q.if(!1);for(let V in w)Q.elseIf(A8._`${z} === ${V}`),Q.assign(b,B(w[V]));Q.else(),x.error(!1,{discrError:SX.DiscrError.Mapping,tag:z,tagName:$}),Q.endIf()}function B(w){let V=Q.name("valid"),N=x.subschema({keyword:"oneOf",schemaProp:w},V);return x.mergeEvaluated(N,A8.Name),V}function K(){var w;let V={},N=q(X),U=!0;for(let S=0;S<G.length;S++){let i=G[S];if((i===null||i===void 0?void 0:i.$ref)&&!(0,OT.schemaHasRulesButRef)(i,J.self.RULES)){let B0=i.$ref;if(i=Iq.resolveRef.call(J.self,J.schemaEnv.root,J.baseId,B0),i instanceof Iq.SchemaEnv)i=i.schema;if(i===void 0)throw new AT.default(J.opts.uriResolver,J.baseId,B0)}let y=(w=i===null||i===void 0?void 0:i.properties)===null||w===void 0?void 0:w[$];if(typeof y!="object")throw Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${$}"`);U=U&&(N||q(i)),L(y,S)}if(!U)throw Error(`discriminator: "${$}" must be required`);return V;function q({required:S}){return Array.isArray(S)&&S.includes($)}function L(S,i){if(S.const)c(S.const,i);else if(S.enum)for(let y of S.enum)c(y,i);else throw Error(`discriminator: "properties/${$}" must have "const" or "enum"`)}function c(S,i){if(typeof S!="string"||S in V)throw Error(`discriminator: "${$}" values must be unique strings`);V[S]=i}}}};Eq.default=ET});var Pq=M((Kd,PT)=>{PT.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}});var RX=M((U1,PX)=>{Object.defineProperty(U1,"__esModule",{value:!0});U1.MissingRefError=U1.ValidationError=U1.CodeGen=U1.Name=U1.nil=U1.stringify=U1.str=U1._=U1.KeywordCxt=U1.Ajv=void 0;var RT=CH(),ZT=Dq(),iT=Sq(),Rq=Pq(),CT=["/properties"],A3="http://json-schema.org/draft-07/schema";class G9 extends RT.default{_addVocabularies(){if(super._addVocabularies(),ZT.default.forEach((x)=>this.addVocabulary(x)),this.opts.discriminator)this.addKeyword(iT.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let x=this.opts.$data?this.$dataMetaSchema(Rq,CT):Rq;this.addMetaSchema(x,A3,!1),this.refs["http://json-schema.org/schema"]=A3}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(A3)?A3:void 0)}}U1.Ajv=G9;PX.exports=U1=G9;PX.exports.Ajv=G9;Object.defineProperty(U1,"__esModule",{value:!0});U1.default=G9;var TT=o6();Object.defineProperty(U1,"KeywordCxt",{enumerable:!0,get:function(){return TT.KeywordCxt}});var O8=a();Object.defineProperty(U1,"_",{enumerable:!0,get:function(){return O8._}});Object.defineProperty(U1,"str",{enumerable:!0,get:function(){return O8.str}});Object.defineProperty(U1,"stringify",{enumerable:!0,get:function(){return O8.stringify}});Object.defineProperty(U1,"nil",{enumerable:!0,get:function(){return O8.nil}});Object.defineProperty(U1,"Name",{enumerable:!0,get:function(){return O8.Name}});Object.defineProperty(U1,"CodeGen",{enumerable:!0,get:function(){return O8.CodeGen}});var kT=J3();Object.defineProperty(U1,"ValidationError",{enumerable:!0,get:function(){return kT.default}});var _T=a6();Object.defineProperty(U1,"MissingRefError",{enumerable:!0,get:function(){return _T.default}})});var nq=M((pq)=>{Object.defineProperty(pq,"__esModule",{value:!0});pq.formatNames=pq.fastFormats=pq.fullFormats=void 0;function b4(x,Q){return{validate:x,compare:Q}}pq.fullFormats={date:b4(Tq,TX),time:b4(iX(!0),kX),"date-time":b4(Zq(!0),_q),"iso-time":b4(iX(),kq),"iso-date-time":b4(Zq(),uq),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:gT,"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:tT,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:hT,int32:{type:"number",validate:dT},int64:{type:"number",validate:rT},float:{type:"number",validate:Cq},double:{type:"number",validate:Cq},password:!0,binary:!0};pq.fastFormats={...pq.fullFormats,date:b4(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,TX),time:b4(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,kX),"date-time":b4(/^\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,_q),"iso-time":b4(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,kq),"iso-date-time":b4(/^\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,uq),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};pq.formatNames=Object.keys(pq.fullFormats);function lT(x){return x%4===0&&(x%100!==0||x%400===0)}var nT=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,mT=[0,31,28,31,30,31,30,31,31,30,31,30,31];function Tq(x){let Q=nT.exec(x);if(!Q)return!1;let W=+Q[1],Y=+Q[2],X=+Q[3];return Y>=1&&Y<=12&&X>=1&&X<=(Y===2&&lT(W)?29:mT[Y])}function TX(x,Q){if(!(x&&Q))return;if(x>Q)return 1;if(x<Q)return-1;return 0}var ZX=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function iX(x){return function(W){let Y=ZX.exec(W);if(!Y)return!1;let X=+Y[1],J=+Y[2],G=+Y[3],$=Y[4],b=Y[5]==="-"?-1:1,z=+(Y[6]||0),v=+(Y[7]||0);if(z>23||v>59||x&&!$)return!1;if(X<=23&&J<=59&&G<60)return!0;let B=J-v*b,K=X-z*b-(B<0?1:0);return(K===23||K===-1)&&(B===59||B===-1)&&G<61}}function kX(x,Q){if(!(x&&Q))return;let W=new Date("2020-01-01T"+x).valueOf(),Y=new Date("2020-01-01T"+Q).valueOf();if(!(W&&Y))return;return W-Y}function kq(x,Q){if(!(x&&Q))return;let W=ZX.exec(x),Y=ZX.exec(Q);if(!(W&&Y))return;if(x=W[1]+W[2]+W[3],Q=Y[1]+Y[2]+Y[3],x>Q)return 1;if(x<Q)return-1;return 0}var CX=/t|\s/i;function Zq(x){let Q=iX(x);return function(Y){let X=Y.split(CX);return X.length===2&&Tq(X[0])&&Q(X[1])}}function _q(x,Q){if(!(x&&Q))return;let W=new Date(x).valueOf(),Y=new Date(Q).valueOf();if(!(W&&Y))return;return W-Y}function uq(x,Q){if(!(x&&Q))return;let[W,Y]=x.split(CX),[X,J]=Q.split(CX),G=TX(W,X);if(G===void 0)return;return G||kX(Y,J)}var fT=/\/|:/,yT=/^(?:[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 gT(x){return fT.test(x)&&yT.test(x)}var iq=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function hT(x){return iq.lastIndex=0,iq.test(x)}var oT=-2147483648,aT=2147483647;function dT(x){return Number.isInteger(x)&&x<=aT&&x>=oT}function rT(x){return Number.isInteger(x)}function Cq(){return!0}var sT=/[^\\]\\Z/;function tT(x){if(sT.test(x))return!1;try{return new RegExp(x),!0}catch(Q){return!1}}});var fq=M((mq)=>{Object.defineProperty(mq,"__esModule",{value:!0});mq.formatLimitDefinition=void 0;var xk=RX(),e1=a(),y4=e1.operators,O3={formatMaximum:{okStr:"<=",ok:y4.LTE,fail:y4.GT},formatMinimum:{okStr:">=",ok:y4.GTE,fail:y4.LT},formatExclusiveMaximum:{okStr:"<",ok:y4.LT,fail:y4.GTE},formatExclusiveMinimum:{okStr:">",ok:y4.GT,fail:y4.LTE}},Qk={message:({keyword:x,schemaCode:Q})=>e1.str`should be ${O3[x].okStr} ${Q}`,params:({keyword:x,schemaCode:Q})=>e1._`{comparison: ${O3[x].okStr}, limit: ${Q}}`};mq.formatLimitDefinition={keyword:Object.keys(O3),type:"string",schemaType:"string",$data:!0,error:Qk,code(x){let{gen:Q,data:W,schemaCode:Y,keyword:X,it:J}=x,{opts:G,self:$}=J;if(!G.validateFormats)return;let b=new xk.KeywordCxt(J,$.RULES.all.format.definition,"format");if(b.$data)z();else v();function z(){let K=Q.scopeValue("formats",{ref:$.formats,code:G.code.formats}),w=Q.const("fmt",e1._`${K}[${b.schemaCode}]`);x.fail$data((0,e1.or)(e1._`typeof ${w} != "object"`,e1._`${w} instanceof RegExp`,e1._`typeof ${w}.compare != "function"`,B(w)))}function v(){let K=b.schema,w=$.formats[K];if(!w||w===!0)return;if(typeof w!="object"||w instanceof RegExp||typeof w.compare!="function")throw Error(`"${X}": format "${K}" does not define "compare" function`);let V=Q.scopeValue("formats",{key:K,ref:w,code:G.code.formats?e1._`${G.code.formats}${(0,e1.getProperty)(K)}`:void 0});x.fail$data(B(V))}function B(K){return e1._`${K}.compare(${W}, ${Y}) ${O3[X].fail} 0`}},dependencies:["format"]};var Wk=(x)=>{return x.addKeyword(mq.formatLimitDefinition),x};mq.default=Wk});var oq=M(($9,hq)=>{Object.defineProperty($9,"__esModule",{value:!0});var I8=nq(),Xk=fq(),pX=a(),yq=new pX.Name("fullFormats"),Jk=new pX.Name("fastFormats"),lX=(x,Q={keywords:!0})=>{if(Array.isArray(Q))return gq(x,Q,I8.fullFormats,yq),x;let[W,Y]=Q.mode==="fast"?[I8.fastFormats,Jk]:[I8.fullFormats,yq],X=Q.formats||I8.formatNames;if(gq(x,X,W,Y),Q.keywords)(0,Xk.default)(x);return x};lX.get=(x,Q="full")=>{let Y=(Q==="fast"?I8.fastFormats:I8.fullFormats)[x];if(!Y)throw Error(`Unknown format "${x}"`);return Y};function gq(x,Q,W,Y){var X,J;(X=(J=x.opts.code).formats)!==null&&X!==void 0||(J.formats=pX._`require("ajv-formats/dist/formats").${Y}`);for(let G of Q)x.addFormat(G,W[G])}hq.exports=$9=lX;Object.defineProperty($9,"__esModule",{value:!0});$9.default=lX});function Pk(x,Q=[]){for(let W=0;W<x.length;W++){if(x[W].startsWith("-"))continue;if(W>0&&Q.includes(x[W-1]))continue;return{before:x.slice(0,W),script:x[W],after:x.slice(W+1)}}return{before:x,script:void 0,after:[]}}function WJ(x,Q,W=[]){return(Y)=>{let{before:X,script:J,after:G}=Pk(Y,W);if(J===void 0)return[x,Q,...X];if(G.length>0)return[x,Q,...X,J,"--",...G];return[x,Q,...X,J]}}function cN(x){return{agent:[x,0],run:[x,"run",0],install:[x,"i",0],frozen:[x,"i","--frozen-lockfile",0],global:[x,"add","-g",0],add:[x,"add",0],upgrade:[x,"update",0],"upgrade-interactive":[x,"update","-i",0],dedupe:[x,"dedupe",0],execute:[x,"dlx",0],"execute-local":[x,"exec",0],uninstall:[x,"remove",0],global_uninstall:[x,"remove","--global",0]}}function jN(x,Q,W){let Y=YJ[x][Q];return XJ(Y,W)}function XJ(x,Q){if(x==null)return null;let W=typeof x==="function"?x(Q):x.flatMap((Y)=>{if(typeof Y==="number")return Q;return[Y]});return{command:W[0],args:W.slice(1)}}var Rk,DN,Zk,MN,ik,Ck,Tk,kk,_k,YJ;var AN=N9(()=>{Rk={agent:["npm",0],run:WJ("npm","run",["-w","--workspace"]),install:["npm","i",0],frozen:["npm","ci",0],global:["npm","i","-g",0],add:["npm","i",0],upgrade:["npm","update",0],"upgrade-interactive":null,dedupe:["npm","dedupe",0],execute:["npx",0],"execute-local":["npx",0],uninstall:["npm","uninstall",0],global_uninstall:["npm","uninstall","-g",0]},DN={agent:["yarn",0],run:["yarn","run",0],install:["yarn","install",0],frozen:["yarn","install","--frozen-lockfile",0],global:["yarn","global","add",0],add:["yarn","add",0],upgrade:["yarn","upgrade",0],"upgrade-interactive":["yarn","upgrade-interactive",0],dedupe:null,execute:["npx",0],"execute-local":WJ("yarn","exec"),uninstall:["yarn","remove",0],global_uninstall:["yarn","global","remove",0]},Zk={...DN,frozen:["yarn","install","--immutable",0],upgrade:["yarn","up",0],"upgrade-interactive":["yarn","up","-i",0],dedupe:["yarn","dedupe",0],execute:["yarn","dlx",0],"execute-local":["yarn","exec",0],global:["npm","i","-g",0],global_uninstall:["npm","uninstall","-g",0]};MN=cN("pnpm"),ik=cN("rush-pnpm"),Ck={agent:["bun",0],run:["bun","run",0],install:["bun","install",0],frozen:["bun","install","--frozen-lockfile",0],global:["bun","add","-g",0],add:["bun","add",0],upgrade:["bun","update",0],"upgrade-interactive":["bun","update","-i",0],dedupe:null,execute:["bun","x",0],"execute-local":["bun","x",0],uninstall:["bun","remove",0],global_uninstall:["bun","remove","-g",0]},Tk={agent:["aube",0],run:["aube","run",0],install:["aube","install",0],frozen:["aube","install","--frozen-lockfile",0],global:["aube","add","-g",0],add:["aube","add",0],upgrade:["aube","update",0],"upgrade-interactive":["aube","update","-i",0],dedupe:["aube","dedupe",0],execute:["aube","dlx",0],"execute-local":["aube","exec",0],uninstall:["aube","remove",0],global_uninstall:["aube","remove","-g",0]},kk={agent:["deno",0],run:["deno","task",0],install:["deno","install",0],frozen:["deno","install","--frozen",0],global:["deno","install","-g",0],add:["deno","add",0],upgrade:["deno","outdated","--update",0],"upgrade-interactive":["deno","outdated","--update",0],dedupe:null,execute:["deno","x",0],"execute-local":["deno","task","--eval",0],uninstall:["deno","remove",0],global_uninstall:["deno","uninstall","-g",0]},_k={agent:["nub",0],run:["nub","run",0],install:["nub","install",0],frozen:["nub","install","--frozen-lockfile",0],global:["nub","add","-g",0],add:["nub","add",0],upgrade:["nub","update",0],"upgrade-interactive":["nub","update","-i",0],dedupe:["nub","dedupe",0],execute:["nubx",0],"execute-local":["nub","exec",0],uninstall:["nub","remove",0],global_uninstall:["nub","remove","-g",0]},YJ={npm:Rk,yarn:DN,"yarn@berry":Zk,pnpm:MN,"pnpm@6":{...MN,run:WJ("pnpm","run",["-F","--filter"])},"pnpm-rush":ik,bun:Ck,aube:Tk,deno:kk,nub:_k}});var v9,B9,w9,ON;var JJ=N9(()=>{v9=["npm","yarn","yarn@berry","pnpm","pnpm@6","pnpm-rush","bun","deno","nub","aube"],B9={"aube-lock.yaml":"aube","aube-workspace.yaml":"aube","bun.lock":"bun","bun.lockb":"bun","deno.lock":"deno","nub.lock":"nub","pnpm-lock.yaml":"pnpm","pnpm-workspace.yaml":"pnpm","yarn.lock":"yarn","package-lock.json":"npm","npm-shrinkwrap.json":"npm"},w9={"node_modules/.aube/":"aube","node_modules/.deno/":"deno","node_modules/.pnpm/":"pnpm","node_modules/.yarn-state.yml":"yarn","node_modules/.yarn_integrity":"yarn","node_modules/.package-lock.json":"npm",".pnp.cjs":"yarn",".pnp.js":"yarn","bun.lock":"bun","bun.lockb":"bun"},ON={aube:"https://aube.en.dev/installation",bun:"https://bun.sh",deno:"https://deno.com",pnpm:"https://pnpm.io/installation","pnpm@6":"https://pnpm.io/6.x/installation","pnpm-rush":"https://rushjs.io/pages/intro/get_started/",yarn:"https://classic.yarnpkg.com/en/docs/install","yarn@berry":"https://yarnpkg.com/getting-started/install",npm:"https://docs.npmjs.com/cli/configuring-npm/install",nub:"https://nubjs.com/docs/install"}});import EN from"node:fs/promises";import U4 from"node:path";import SN from"node:process";async function E3(x,Q){try{let W=await EN.stat(x);return Q==="file"?W.isFile():W.isDirectory()}catch{return!1}}function PN(){let x=SN.env.npm_config_user_agent;if(!x)return null;let Q=x.split("/")[0];return v9.includes(Q)?Q:null}function*uk(x=SN.cwd()){let Q=U4.resolve(x),{root:W}=U4.parse(Q);while(Q&&Q!==W)yield Q,Q=U4.dirname(Q)}async function IN(x,Q){if(!x||!await E3(x,"file"))return null;return await lk(x,Q)}async function RN(x={}){let{cwd:Q,strategies:W=["lockfile","packageManager-field","devEngines-field"]}=x,Y;if(typeof x.stopDir==="string"){let X=U4.resolve(x.stopDir);Y=(J)=>J===X}else Y=x.stopDir;for(let X of uk(Q)){for(let J of W)switch(J){case"lockfile":{if(await E3(U4.join(X,"rush.json"),"file"))return{name:"pnpm",agent:"pnpm-rush"};for(let G of Object.keys(B9))if(await E3(U4.join(X,G),"file")){let $=B9[G],b=await IN(U4.join(X,"package.json"),x);if(b)return b;else return{name:$,agent:$}}break}case"packageManager-field":case"devEngines-field":{let G=await IN(U4.join(X,"package.json"),x);if(G)return G;break}case"install-metadata":{for(let G of Object.keys(w9)){let $=G.endsWith("/")?"dir":"file";if(await E3(U4.join(X,G),$)){let b=w9[G],z=b==="yarn"?nk(G)?"yarn":"yarn@berry":b;return{name:b,agent:z}}}break}}if(Y?.(X))break}return null}function pk(x){let Q=(W)=>W?.match(/\d+(\.\d+){0,2}/)?.[0]??W;if(typeof x.packageManager==="string"){let[W,Y]=x.packageManager.replace(/^\^/,"").split("@");return{name:W,ver:Q(Y)}}if(typeof x.devEngines?.packageManager?.name==="string")return{name:x.devEngines.packageManager.name,ver:Q(x.devEngines.packageManager.version)};return}async function lk(x,Q){try{let W=await EN.readFile(x,"utf8"),Y=Q.packageJsonParser?await Q.packageJsonParser(W,x):JSON.parse(W),X,J=pk(Y);if(J){let{name:G,ver:$}=J,b=$;if(G==="yarn"&&$&&Number.parseInt($)>1)return X="yarn@berry",b="berry",{name:G,agent:X,version:b};else if(G==="pnpm"&&$&&Number.parseInt($)<7)return X="pnpm@6",{name:G,agent:X,version:b};else if(v9.includes(G))return X=G,{name:G,agent:X,version:b};else return Q.onUnknown?.(Y.packageManager)??null}}catch{}return null}function nk(x){return x.endsWith(".yarn_integrity")}var ZN=N9(()=>{JJ()});var iN={};i8(iN,{resolveCommand:()=>jN,getUserAgent:()=>PN,detect:()=>RN,constructCommand:()=>XJ,LOCKS:()=>B9,INSTALL_PAGE:()=>ON,INSTALL_METADATA:()=>w9,COMMANDS:()=>YJ,AGENTS:()=>v9});var CN=N9(()=>{AN();JJ();ZN()});import{promises as KJ,readFileSync as sk}from"node:fs";function C8(x,Q){return function(){return x.apply(Q,arguments)}}var{toString:JU}=Object.prototype,{getPrototypeOf:Ex}=Object,{iterator:k8,toStringTag:LJ}=Symbol,L9=(({hasOwnProperty:x})=>(Q,W)=>x.call(Q,W))(Object.prototype),T8=(x,Q)=>{let W=x,Y=[];while(W!=null&&W!==Object.prototype){if(Y.indexOf(W)!==-1)return!1;if(Y.push(W),L9(W,Q))return!0;W=Ex(W)}return!1},GU=(x,Q)=>x!=null&&T8(x,Q)?x[Q]:void 0,k3=((x)=>(Q)=>{let W=JU.call(Q);return x[W]||(x[W]=W.slice(8,-1).toLowerCase())})(Object.create(null)),_1=(x)=>{return x=x.toLowerCase(),(Q)=>k3(Q)===x},F9=(x)=>(Q)=>typeof Q===x,{isArray:s4}=Array,Sx=F9("undefined");function Px(x){return x!==null&&!Sx(x)&&x.constructor!==null&&!Sx(x.constructor)&&B1(x.constructor.isBuffer)&&x.constructor.isBuffer(x)}var FJ=_1("ArrayBuffer");function $U(x){let Q;if(typeof ArrayBuffer<"u"&&ArrayBuffer.isView)Q=ArrayBuffer.isView(x);else Q=x&&x.buffer&&FJ(x.buffer);return Q}var bU=F9("string"),B1=F9("function"),MJ=F9("number"),Rx=(x)=>x!==null&&typeof x==="object",zU=(x)=>x===!0||x===!1,U9=(x)=>{if(!Rx(x))return!1;let Q=Ex(x);return(Q===null||Q===Object.prototype||Ex(Q)===null)&&!T8(x,LJ)&&!T8(x,k8)},vU=(x)=>{if(!Rx(x)||Px(x))return!1;try{return Object.keys(x).length===0&&Object.getPrototypeOf(x)===Object.prototype}catch(Q){return!1}},BU=_1("Date"),wU=_1("File"),KU=(x)=>{return!!(x&&typeof x.uri<"u")},HU=(x)=>x&&typeof x.getParts<"u",VU=_1("Blob"),qU=_1("FileList"),NU=(x)=>Rx(x)&&B1(x.pipe);function UU(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;return{}}var NJ=UU(),UJ=typeof NJ.FormData<"u"?NJ.FormData:void 0,LU=(x)=>{if(!x)return!1;if(UJ&&x instanceof UJ)return!0;let Q=Ex(x);if(!Q||Q===Object.prototype)return!1;if(!B1(x.append))return!1;let W=k3(x);return W==="formdata"||W==="object"&&B1(x.toString)&&x.toString()==="[object FormData]"},FU=_1("URLSearchParams"),[MU,DU,cU,jU]=["ReadableStream","Request","Response","Headers"].map(_1),AU=(x)=>{return x.trim?x.trim():x.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")};function _8(x,Q,{allOwnKeys:W=!1}={}){if(x===null||typeof x>"u")return;let Y,X;if(typeof x!=="object")x=[x];if(s4(x))for(Y=0,X=x.length;Y<X;Y++)Q.call(null,x[Y],Y,x);else{if(Px(x))return;let J=W?Object.getOwnPropertyNames(x):Object.keys(x),G=J.length,$;for(Y=0;Y<G;Y++)$=J[Y],Q.call(null,x[$],$,x)}}function DJ(x,Q){if(Px(x))return null;Q=Q.toLowerCase();let W=Object.keys(x),Y=W.length,X;while(Y-- >0)if(X=W[Y],Q===X.toLowerCase())return X;return null}var r4=(()=>{if(typeof globalThis<"u")return globalThis;return typeof self<"u"?self:typeof window<"u"?window:global})(),cJ=(x)=>!Sx(x)&&x!==r4;function T3(...x){let{caseless:Q,skipUndefined:W}=cJ(this)&&this||{},Y={},X=(J,G)=>{if(G==="__proto__"||G==="constructor"||G==="prototype")return;let $=Q&&typeof G==="string"&&DJ(Y,G)||G,b=L9(Y,$)?Y[$]:void 0;if(U9(b)&&U9(J))Y[$]=T3(b,J);else if(U9(J))Y[$]=T3({},J);else if(s4(J))Y[$]=J.slice();else if(!W||!Sx(J))Y[$]=J};for(let J=0,G=x.length;J<G;J++){let $=x[J];if(!$||Px($))continue;if(_8($,X),typeof $!=="object"||s4($))continue;let b=Object.getOwnPropertySymbols($);for(let z=0;z<b.length;z++){let v=b[z];if(_U.call($,v))X($[v],v)}}return Y}var OU=(x,Q,W,{allOwnKeys:Y}={})=>{return _8(Q,(X,J)=>{if(W&&B1(X))Object.defineProperty(x,J,{__proto__:null,value:C8(X,W),writable:!0,enumerable:!0,configurable:!0});else Object.defineProperty(x,J,{__proto__:null,value:X,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:Y}),x},IU=(x)=>{if(x.charCodeAt(0)===65279)x=x.slice(1);return x},EU=(x,Q,W,Y)=>{x.prototype=Object.create(Q.prototype,Y),Object.defineProperty(x.prototype,"constructor",{__proto__:null,value:x,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(x,"super",{__proto__:null,value:Q.prototype}),W&&Object.assign(x.prototype,W)},SU=(x,Q,W,Y)=>{let X,J,G,$={};if(Q=Q||{},x==null)return Q;do{X=Object.getOwnPropertyNames(x),J=X.length;while(J-- >0)if(G=X[J],(!Y||Y(G,x,Q))&&!$[G])Q[G]=x[G],$[G]=!0;x=W!==!1&&Ex(x)}while(x&&(!W||W(x,Q))&&x!==Object.prototype);return Q},PU=(x,Q,W)=>{if(x=String(x),W===void 0||W>x.length)W=x.length;W-=Q.length;let Y=x.indexOf(Q,W);return Y!==-1&&Y===W},RU=(x)=>{if(!x)return null;if(s4(x))return x;let Q=x.length;if(!MJ(Q))return null;let W=Array(Q);while(Q-- >0)W[Q]=x[Q];return W},ZU=((x)=>{return(Q)=>{return x&&Q instanceof x}})(typeof Uint8Array<"u"&&Ex(Uint8Array)),iU=(x,Q)=>{let Y=(x&&x[k8]).call(x),X;while((X=Y.next())&&!X.done){let J=X.value;Q.call(x,J[0],J[1])}},CU=(x,Q)=>{let W,Y=[];while((W=x.exec(Q))!==null)Y.push(W);return Y},TU=_1("HTMLFormElement"),kU=(x)=>{return x.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(W,Y,X){return Y.toUpperCase()+X})},{propertyIsEnumerable:_U}=Object.prototype,uU=_1("RegExp"),jJ=(x,Q)=>{let W=Object.getOwnPropertyDescriptors(x),Y={};_8(W,(X,J)=>{let G;if((G=Q(X,J,x))!==!1)Y[J]=G||X}),Object.defineProperties(x,Y)},pU=(x)=>{jJ(x,(Q,W)=>{if(B1(x)&&["arguments","caller","callee"].includes(W))return!1;let Y=x[W];if(!B1(Y))return;if(Q.enumerable=!1,"writable"in Q){Q.writable=!1;return}if(!Q.set)Q.set=()=>{throw Error("Can not rewrite read-only method '"+W+"'")}})},lU=(x,Q)=>{let W={},Y=(X)=>{X.forEach((J)=>{W[J]=!0})};return s4(x)?Y(x):Y(String(x).split(Q)),W},nU=()=>{},mU=(x,Q)=>{return x!=null&&Number.isFinite(x=+x)?x:Q};function fU(x){return!!(x&&B1(x.append)&&x[LJ]==="FormData"&&x[k8])}var yU=(x)=>{let Q=new WeakSet,W=(Y)=>{if(Rx(Y)){if(Q.has(Y))return;if(Px(Y))return Y;if(!("toJSON"in Y)){Q.add(Y);let X=s4(Y)?[]:{};return _8(Y,(J,G)=>{let $=W(J);!Sx($)&&(X[G]=$)}),Q.delete(Y),X}}return Y};return W(x)},gU=_1("AsyncFunction"),hU=(x)=>x&&(Rx(x)||B1(x))&&B1(x.then)&&B1(x.catch),AJ=((x,Q)=>{if(x)return setImmediate;return Q?((W,Y)=>{return r4.addEventListener("message",({source:X,data:J})=>{if(X===r4&&J===W)Y.length&&Y.shift()()},!1),(X)=>{Y.push(X),r4.postMessage(W,"*")}})(`axios@${Math.random()}`,[]):(W)=>setTimeout(W)})(typeof setImmediate==="function",B1(r4.postMessage)),oU=typeof queueMicrotask<"u"?queueMicrotask.bind(r4):typeof process<"u"&&process.nextTick||AJ,OJ=(x)=>x!=null&&B1(x[k8]),aU=(x)=>x!=null&&T8(x,k8)&&OJ(x),H={isArray:s4,isArrayBuffer:FJ,isBuffer:Px,isFormData:LU,isArrayBufferView:$U,isString:bU,isNumber:MJ,isBoolean:zU,isObject:Rx,isPlainObject:U9,isEmptyObject:vU,isReadableStream:MU,isRequest:DU,isResponse:cU,isHeaders:jU,isUndefined:Sx,isDate:BU,isFile:wU,isReactNativeBlob:KU,isReactNative:HU,isBlob:VU,isRegExp:uU,isFunction:B1,isStream:NU,isURLSearchParams:FU,isTypedArray:ZU,isFileList:qU,forEach:_8,merge:T3,extend:OU,trim:AU,stripBOM:IU,inherits:EU,toFlatObject:SU,kindOf:k3,kindOfTest:_1,endsWith:PU,toArray:RU,forEachEntry:iU,matchAll:CU,isHTMLForm:TU,hasOwnProperty:L9,hasOwnProp:L9,hasOwnInPrototypeChain:T8,getSafeProp:GU,reduceDescriptors:jJ,freezeMethods:pU,toObjectSet:lU,toCamelCase:kU,noop:nU,toFiniteNumber:mU,findKey:DJ,global:r4,isContextDefined:cJ,isSpecCompliantForm:fU,toJSONObject:yU,isAsyncFn:gU,isThenable:hU,setImmediate:AJ,asap:oU,isIterable:OJ,isSafeIterable:aU};var dU=H.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"]),IJ=(x)=>{let Q={},W,Y,X;return x&&x.split(`
27
+ `).forEach(function(G){if(X=G.indexOf(":"),W=G.substring(0,X).trim().toLowerCase(),Y=G.substring(X+1).trim(),!W||Q[W]&&dU[W])return;if(W==="set-cookie")if(Q[W])Q[W].push(Y);else Q[W]=[Y];else Q[W]=Q[W]?Q[W]+", "+Y:Y}),Q};function rU(x){let Q=0,W=x.length;while(Q<W){let Y=x.charCodeAt(Q);if(Y!==9&&Y!==32)break;Q+=1}while(W>Q){let Y=x.charCodeAt(W-1);if(Y!==9&&Y!==32)break;W-=1}return Q===0&&W===x.length?x:x.slice(Q,W)}var sU=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),tU=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function _3(x,Q){if(H.isArray(x))return x.map((W)=>_3(W,Q));return rU(String(x).replace(Q,""))}var EJ=(x)=>_3(x,sU),eU=(x)=>_3(x,tU);function Zx(x){let Q=Object.create(null);return H.forEach(x.toJSON(),(W,Y)=>{Q[Y]=eU(W)}),Q}var SJ=Symbol("internals");function u8(x){return x&&String(x).trim().toLowerCase()}function M9(x){if(x===!1||x==null)return x;return H.isArray(x)?x.map(M9):EJ(String(x))}function xL(x){let Q=Object.create(null),W=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,Y;while(Y=W.exec(x))Q[Y[1]]=Y[2];return Q}var QL=(x)=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(x.trim());function u3(x,Q,W,Y,X){if(H.isFunction(Y))return Y.call(this,Q,W);if(X)Q=W;if(!H.isString(Q))return;if(H.isString(Y))return Q.indexOf(Y)!==-1;if(H.isRegExp(Y))return Y.test(Q)}function WL(x){return x.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(Q,W,Y)=>{return W.toUpperCase()+Y})}function YL(x,Q){let W=H.toCamelCase(" "+Q);["get","set","has"].forEach((Y)=>{Object.defineProperty(x,Y+W,{__proto__:null,value:function(X,J,G){return this[Y].call(this,Q,X,J,G)},configurable:!0})})}class p8{constructor(x){x&&this.set(x)}set(x,Q,W){let Y=this;function X(G,$,b){let z=u8($);if(!z)return;let v=H.findKey(Y,z);if(!v||Y[v]===void 0||b===!0||b===void 0&&Y[v]!==!1)Y[v||$]=M9(G)}let J=(G,$)=>H.forEach(G,(b,z)=>X(b,z,$));if(H.isPlainObject(x)||x instanceof this.constructor)J(x,Q);else if(H.isString(x)&&(x=x.trim())&&!QL(x))J(IJ(x),Q);else if(H.isObject(x)&&H.isSafeIterable(x)){let G=Object.create(null),$,b;for(let z of x){if(!H.isArray(z))throw TypeError("Object iterator must return a key-value pair");if(b=z[0],H.hasOwnProp(G,b))$=G[b],G[b]=H.isArray($)?[...$,z[1]]:[$,z[1]];else G[b]=z[1]}J(G,Q)}else x!=null&&X(Q,x,W);return this}get(x,Q){if(x=u8(x),x){let W=H.findKey(this,x);if(W){let Y=this[W];if(!Q)return Y;if(Q===!0)return xL(Y);if(H.isFunction(Q))return Q.call(this,Y,W);if(H.isRegExp(Q))return Q.exec(Y);throw TypeError("parser must be boolean|regexp|function")}}}has(x,Q){if(x=u8(x),x){let W=H.findKey(this,x);return!!(W&&this[W]!==void 0&&(!Q||u3(this,this[W],W,Q)))}return!1}delete(x,Q){let W=this,Y=!1;function X(J){if(J=u8(J),J){let G=H.findKey(W,J);if(G&&(!Q||u3(W,W[G],G,Q)))delete W[G],Y=!0}}if(H.isArray(x))x.forEach(X);else X(x);return Y}clear(x){let Q=Object.keys(this),W=Q.length,Y=!1;while(W--){let X=Q[W];if(!x||u3(this,this[X],X,x,!0))delete this[X],Y=!0}return Y}normalize(x){let Q=this,W={};return H.forEach(this,(Y,X)=>{let J=H.findKey(W,X);if(J){Q[J]=M9(Y),delete Q[X];return}let G=x?WL(X):String(X).trim();if(G!==X)delete Q[X];Q[G]=M9(Y),W[G]=!0}),this}concat(...x){return this.constructor.concat(this,...x)}toJSON(x){let Q=Object.create(null);return H.forEach(this,(W,Y)=>{W!=null&&W!==!1&&(Q[Y]=x&&H.isArray(W)?W.join(", "):W)}),Q}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([x,Q])=>x+": "+Q).join(`
28
+ `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(x){return x instanceof this?x:new this(x)}static concat(x,...Q){let W=new this(x);return Q.forEach((Y)=>W.set(Y)),W}static accessor(x){let W=(this[SJ]=this[SJ]={accessors:{}}).accessors,Y=this.prototype;function X(J){let G=u8(J);if(!W[G])YL(Y,J),W[G]=!0}return H.isArray(x)?x.forEach(X):X(x),this}}p8.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);H.reduceDescriptors(p8.prototype,({value:x},Q)=>{let W=Q[0].toUpperCase()+Q.slice(1);return{get:()=>x,set(Y){this[W]=Y}}});H.freezeMethods(p8);var V0=p8;var XL="[REDACTED ****]";function JL(x){if(H.hasOwnProp(x,"toJSON"))return!0;let Q=Object.getPrototypeOf(x);while(Q&&Q!==Object.prototype){if(H.hasOwnProp(Q,"toJSON"))return!0;Q=Object.getPrototypeOf(Q)}return!1}function GL(x,Q){let W=new Set(Q.map((J)=>String(J).toLowerCase())),Y=[],X=(J)=>{if(J===null||typeof J!=="object")return J;if(H.isBuffer(J))return J;if(Y.indexOf(J)!==-1)return;if(J instanceof V0)J=J.toJSON();Y.push(J);let G;if(H.isArray(J))G=[],J.forEach(($,b)=>{let z=X($);if(!H.isUndefined(z))G[b]=z});else{if(!H.isPlainObject(J)&&JL(J))return Y.pop(),J;G=Object.create(null);for(let[$,b]of Object.entries(J)){let z=W.has($.toLowerCase())?XL:X(b);if(!H.isUndefined(z))G[$]=z}}return Y.pop(),G};return X(x)}class a0 extends Error{static from(x,Q,W,Y,X,J){let G=new a0(x.message,Q||x.code,W,Y,X);if(G.cause=x,G.name=x.name,x.status!=null&&G.status==null)G.status=x.status;return J&&Object.assign(G,J),G}constructor(x,Q,W,Y,X){super(x);if(Object.defineProperty(this,"message",{__proto__:null,value:x,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,Q&&(this.code=Q),W&&(this.config=W),Y&&(this.request=Y),X)this.response=X,this.status=X.status}toJSON(){let x=this.config,Q=x&&H.hasOwnProp(x,"redact")?x.redact:void 0,W=H.isArray(Q)&&Q.length>0?GL(x,Q):H.toJSONObject(x);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:W,code:this.code,status:this.status}}}a0.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";a0.ERR_BAD_OPTION="ERR_BAD_OPTION";a0.ECONNABORTED="ECONNABORTED";a0.ETIMEDOUT="ETIMEDOUT";a0.ECONNREFUSED="ECONNREFUSED";a0.ERR_NETWORK="ERR_NETWORK";a0.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";a0.ERR_DEPRECATED="ERR_DEPRECATED";a0.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";a0.ERR_BAD_REQUEST="ERR_BAD_REQUEST";a0.ERR_CANCELED="ERR_CANCELED";a0.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";a0.ERR_INVALID_URL="ERR_INVALID_URL";a0.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";var A=a0;var i$=Z8(Z$(),1),Z9=i$.default;var z5=100;function b5(x){return H.isPlainObject(x)||H.isArray(x)}function C$(x){return H.endsWith(x,"[]")?x.slice(0,-2):x}function $5(x,Q,W){if(!x)return Q;return x.concat(Q).map(function(X,J){return X=C$(X),!W&&J?"["+X+"]":X}).join(W?".":"")}function dF(x){return H.isArray(x)&&!x.some(b5)}var rF=H.toFlatObject(H,{},null,function(Q){return/^is[A-Z]/.test(Q)});function sF(x,Q,W){if(!H.isObject(x))throw TypeError("target must be an object");Q=Q||new(Z9||FormData),W=H.toFlatObject(W,{metaTokens:!0,dots:!1,indexes:!1},!1,function(L,c){return!H.isUndefined(c[L])});let Y=W.metaTokens,X=W.visitor||V,J=W.dots,G=W.indexes,$=W.Blob||typeof Blob<"u"&&Blob,b=W.maxDepth===void 0?z5:W.maxDepth,z=$&&H.isSpecCompliantForm(Q),v=[];if(!H.isFunction(X))throw TypeError("visitor must be a function");function B(q){if(q===null)return"";if(H.isDate(q))return q.toISOString();if(H.isBoolean(q))return q.toString();if(!z&&H.isBlob(q))throw new A("Blob is not supported. Use a Buffer instead.");if(H.isArrayBuffer(q)||H.isTypedArray(q))return z&&typeof Blob==="function"?new Blob([q]):Buffer.from(q);return q}function K(q){if(q>b)throw new A("Object is too deeply nested ("+q+" levels). Max depth: "+b,A.ERR_FORM_DATA_DEPTH_EXCEEDED)}function w(q,L){if(b===1/0)return JSON.stringify(q);let c=[];return JSON.stringify(q,function(i,y){if(!H.isObject(y))return y;while(c.length&&c[c.length-1]!==this)c.pop();return c.push(y),K(L+c.length-1),y})}function V(q,L,c){let S=q;if(H.isReactNative(Q)&&H.isReactNativeBlob(q))return Q.append($5(c,L,J),B(q)),!1;if(q&&!c&&typeof q==="object"){if(H.endsWith(L,"{}"))L=Y?L:L.slice(0,-2),q=w(q,1);else if(H.isArray(q)&&dF(q)||(H.isFileList(q)||H.endsWith(L,"[]"))&&(S=H.toArray(q)))return L=C$(L),S.forEach(function(y,B0){!(H.isUndefined(y)||y===null)&&Q.append(G===!0?$5([L],B0,J):G===null?L:L+"[]",B(y))}),!1}if(b5(q))return!0;return Q.append($5(c,L,J),B(q)),!1}let N=Object.assign(rF,{defaultVisitor:V,convertValue:B,isVisitable:b5});function U(q,L,c=0){if(H.isUndefined(q))return;if(K(c),v.indexOf(q)!==-1)throw Error("Circular reference detected in "+L.join("."));v.push(q),H.forEach(q,function(i,y){if((!(H.isUndefined(i)||i===null)&&X.call(Q,i,H.isString(y)?y.trim():y,L,N))===!0)U(i,L?L.concat(y):[y],c+1)}),v.pop()}if(!H.isObject(x))throw TypeError("data must be an object");return U(x),Q}var c4=sF;function T$(x){let Q={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(x).replace(/[!'()~]|%20/g,function(Y){return Q[Y]})}function k$(x,Q){this._pairs=[],x&&c4(x,this,Q)}var _$=k$.prototype;_$.append=function(Q,W){this._pairs.push([Q,W])};_$.toString=function(Q){let W=Q?function(Y){return Q.call(this,Y,T$)}:T$;return this._pairs.map(function(X){return W(X[0])+"="+W(X[1])},"").join("&")};var u$=k$;function tF(x){return encodeURIComponent(x).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function e4(x,Q,W){if(!Q)return x;let Y=H.isFunction(W)?{serialize:W}:W,X=H.getSafeProp(Y,"encode")||tF,J=H.getSafeProp(Y,"serialize"),G;if(J)G=J(Q,Y);else G=H.isURLSearchParams(Q)?Q.toString():new u$(Q,Y).toString(X);if(G){let $=x.indexOf("#");if($!==-1)x=x.slice(0,$);x+=(x.indexOf("?")===-1?"?":"&")+G}return x}class p${constructor(){this.handlers=[]}use(x,Q,W){return this.handlers.push({fulfilled:x,rejected:Q,synchronous:W?W.synchronous:!1,runWhen:W?W.runWhen:null}),this.handlers.length-1}eject(x){if(this.handlers[x])this.handlers[x]=null}clear(){if(this.handlers)this.handlers=[]}forEach(x){H.forEach(this.handlers,function(W){if(W!==null)x(W)})}}var v5=p$;var j4={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0};import xM from"crypto";import eF from"url";var l$=eF.URLSearchParams;var B5="abcdefghijklmnopqrstuvwxyz",n$="0123456789",m$={DIGIT:n$,ALPHA:B5,ALPHA_DIGIT:B5+B5.toUpperCase()+n$},QM=(x=16,Q=m$.ALPHA_DIGIT)=>{let W="",{length:Y}=Q,X=new Uint32Array(x);xM.randomFillSync(X);for(let J=0;J<x;J++)W+=Q[X[J]%Y];return W},f$={isNode:!0,classes:{URLSearchParams:l$,FormData:Z9,Blob:typeof Blob<"u"&&Blob||null},ALPHABET:m$,generateString:QM,protocols:["http","https","file","data"]};var H5={};i8(H5,{origin:()=>XM,navigator:()=>w5,hasStandardBrowserWebWorkerEnv:()=>YM,hasStandardBrowserEnv:()=>WM,hasBrowserEnv:()=>K5});var K5=typeof window<"u"&&typeof document<"u",w5=typeof navigator==="object"&&navigator||void 0,WM=K5&&(!w5||["ReactNative","NativeScript","NS"].indexOf(w5.product)<0),YM=(()=>{return typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts==="function"})(),XM=K5&&window.location.href||"http://localhost";var b0={...H5,...f$};function V5(x,Q){return c4(x,new b0.classes.URLSearchParams,{visitor:function(W,Y,X,J){if(b0.isNode&&H.isBuffer(W))return this.append(Y,W.toString("base64")),!1;return J.defaultVisitor.apply(this,arguments)},...Q})}var y$=z5;function g$(x){if(x>y$)throw new A("FormData field is too deeply nested ("+x+" levels). Max depth: "+y$,A.ERR_FORM_DATA_DEPTH_EXCEEDED)}function JM(x){let Q=[],W=/\w+|\[(\w*)]/g,Y;while((Y=W.exec(x))!==null)g$(Q.length),Q.push(Y[0]==="[]"?"":Y[1]||Y[0]);return Q}function GM(x){let Q={},W=Object.keys(x),Y,X=W.length,J;for(Y=0;Y<X;Y++)J=W[Y],Q[J]=x[J];return Q}function $M(x){function Q(W,Y,X,J){g$(J);let G=W[J++];if(G==="__proto__")return!0;let $=Number.isFinite(+G),b=J>=W.length;if(G=!G&&H.isArray(X)?X.length:G,b){if(H.hasOwnProp(X,G))X[G]=H.isArray(X[G])?X[G].concat(Y):[X[G],Y];else X[G]=Y;return!$}if(!H.hasOwnProp(X,G)||!H.isObject(X[G]))X[G]=[];if(Q(W,Y,X[G],J)&&H.isArray(X[G]))X[G]=GM(X[G]);return!$}if(H.isFormData(x)&&H.isFunction(x.entries)){let W={};return H.forEachEntry(x,(Y,X)=>{Q(JM(Y),X,W,0)}),W}return null}var i9=$M;var _x=(x,Q)=>x!=null&&H.hasOwnProp(x,Q)?x[Q]:void 0;function bM(x,Q,W){if(H.isString(x))try{return(Q||JSON.parse)(x),H.trim(x)}catch(Y){if(Y.name!=="SyntaxError")throw Y}return(W||JSON.stringify)(x)}var q5={transitional:j4,adapter:["xhr","http","fetch"],transformRequest:[function(Q,W){let Y=W.getContentType()||"",X=Y.indexOf("application/json")>-1,J=H.isObject(Q);if(J&&H.isHTMLForm(Q))Q=new FormData(Q);if(H.isFormData(Q))return X?JSON.stringify(i9(Q)):Q;if(H.isArrayBuffer(Q)||H.isBuffer(Q)||H.isStream(Q)||H.isFile(Q)||H.isBlob(Q)||H.isReadableStream(Q))return Q;if(H.isArrayBufferView(Q))return Q.buffer;if(H.isURLSearchParams(Q))return W.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),Q.toString();let $;if(J){let b=_x(this,"formSerializer");if(Y.indexOf("application/x-www-form-urlencoded")>-1)return V5(Q,b).toString();if(($=H.isFileList(Q))||Y.indexOf("multipart/form-data")>-1){let z=_x(this,"env"),v=z&&z.FormData;return c4($?{"files[]":Q}:Q,v&&new v,b)}}if(J||X)return W.setContentType("application/json",!1),bM(Q);return Q}],transformResponse:[function(Q){let W=_x(this,"transitional")||q5.transitional,Y=W&&W.forcedJSONParsing,X=_x(this,"responseType"),J=X==="json";if(H.isResponse(Q)||H.isReadableStream(Q))return Q;if(Q&&H.isString(Q)&&(Y&&!X||J)){let $=!(W&&W.silentJSONParsing)&&J;try{return JSON.parse(Q,_x(this,"parseReviver"))}catch(b){if($){if(b.name==="SyntaxError")throw A.from(b,A.ERR_BAD_RESPONSE,this,null,_x(this,"response"));throw b}}}return Q}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:b0.classes.FormData,Blob:b0.classes.Blob},validateStatus:function(Q){return Q>=200&&Q<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};H.forEach(["delete","get","head","post","put","patch","query"],(x)=>{q5.headers[x]={}});var ux=q5;function y8(x,Q){let W=this||ux,Y=Q||W,X=V0.from(Y.headers),J=Y.data;return H.forEach(x,function($){J=$.call(W,J,X.normalize(),Q?Q.status:void 0)}),X.normalize(),J}function g8(x){return!!(x&&x.__CANCEL__)}class h$ extends A{constructor(x,Q,W){super(x==null?"canceled":x,A.ERR_CANCELED,Q,W);this.name="CanceledError",this.__CANCEL__=!0}}var M1=h$;function W4(x,Q,W){let Y=W.config.validateStatus;if(!W.status||!Y||Y(W.status))x(W);else Q(new A("Request failed with status code "+W.status,W.status>=400&&W.status<500?A.ERR_BAD_REQUEST:A.ERR_BAD_RESPONSE,W.config,W.request,W))}function N5(x){if(typeof x!=="string")return!1;return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(x)}function U5(x,Q){return Q?x.replace(/\/?\/$/,"")+"/"+Q.replace(/^\/+/,""):x}var zM=/^https?:(?!\/\/)/i,vM=/[\t\n\r]/g;function BM(x){let Q=0;while(Q<x.length&&x.charCodeAt(Q)<=32)Q++;return x.slice(Q)}function wM(x){return BM(x).replace(vM,"")}function o$(x,Q){if(typeof x==="string"&&zM.test(wM(x)))throw new A('Invalid URL: missing "//" after protocol',A.ERR_INVALID_URL,Q)}function xx(x,Q,W,Y){o$(Q,Y);let X=!N5(Q);if(x&&(X||W===!1))return o$(x,Y),U5(x,Q);return Q}var KM={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443};function HM(x){try{return new URL(x)}catch{return null}}function a$(x){var Q=(typeof x==="string"?HM(x):x)||{},W=Q.protocol,Y=Q.host,X=Q.port;if(typeof Y!=="string"||!Y||typeof W!=="string")return"";if(W=W.split(":",1)[0],Y=Y.replace(/:\d*$/,""),X=parseInt(X)||KM[W]||0,!VM(Y,X))return"";var J=L5(W+"_proxy")||L5("all_proxy");if(J&&J.indexOf("://")===-1)J=W+"://"+J;return J}function VM(x,Q){var W=L5("no_proxy").toLowerCase();if(!W)return!0;if(W==="*")return!1;return W.split(/[,\s]/).every(function(Y){if(!Y)return!0;var X=Y.match(/^(.+):(\d+)$/),J=X?X[1]:Y,G=X?parseInt(X[2]):0;if(G&&G!==Q)return!0;if(!/^[.*]/.test(J))return x!==J;if(J.charAt(0)==="*")J=J.slice(1);return!x.endsWith(J)})}function L5(x){return process.env[x.toLowerCase()]||process.env[x.toUpperCase()]||""}var h5=Z8(Fb(),1),rb=Z8(Ib(),1);import Wc from"http";import Yc from"https";import Xc from"http2";import Jc from"util";import{resolve as mb}from"path";import P1 from"zlib";var z4="1.18.0";function W6(x){let Q=/^([-+\w]{1,25}):(?:\/\/)?/.exec(x);return Q&&Q[1]||""}var ZD=/^([^,;]+\/[^,;]+)?((?:;[^,;=]+=[^,;]+)*)(;base64)?,([\s\S]*)$/;function n5(x,Q,W){let Y=W&&W.Blob||b0.classes.Blob,X=W6(x);if(Q===void 0&&Y)Q=!0;if(X==="data"){x=X.length?x.slice(X.length+1):x;let J=ZD.exec(x);if(!J)throw new A("Invalid URL",A.ERR_INVALID_URL);let G=J[1],$=J[2],b=J[3]?"base64":"utf8",z=J[4],v;if(G)v=$?G+$:G;else if($)v="text/plain"+$;let B=Buffer.from(decodeURIComponent(z),b);if(Q){if(!Y)throw new A("Blob is not supported",A.ERR_NOT_SUPPORT);return new Y([B],{type:v})}return B}throw new A("Unsupported protocol "+X,A.ERR_NOT_SUPPORT)}import p1 from"stream";import iD from"stream";var m5=Symbol("internals");class Eb extends iD.Transform{constructor(x){x=H.toFlatObject(x,{maxRate:0,chunkSize:65536,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,(W,Y)=>{return!H.isUndefined(Y[W])});super({readableHighWaterMark:x.chunkSize});let Q=this[m5]={timeWindow:x.timeWindow,chunkSize:x.chunkSize,maxRate:x.maxRate,minChunkSize:x.minChunkSize,bytesSeen:0,isCaptured:!1,notifiedBytesLoaded:0,ts:Date.now(),bytes:0,onReadCallback:null};this.on("newListener",(W)=>{if(W==="progress"){if(!Q.isCaptured)Q.isCaptured=!0}})}_read(x){let Q=this[m5];if(Q.onReadCallback)Q.onReadCallback();return super._read(x)}_transform(x,Q,W){let Y=this[m5],X=Y.maxRate,J=this.readableHighWaterMark,G=Y.timeWindow,$=1000/G,b=X/$,z=Y.minChunkSize!==!1?Math.max(Y.minChunkSize,b*0.01):0,v=(K,w)=>{let V=Buffer.byteLength(K);if(Y.bytesSeen+=V,Y.bytes+=V,Y.isCaptured&&this.emit("progress",Y.bytesSeen),this.push(K))process.nextTick(w);else Y.onReadCallback=()=>{Y.onReadCallback=null,process.nextTick(w)}},B=(K,w)=>{let V=Buffer.byteLength(K),N=null,U=J,q,L=0;if(X){let c=Date.now();if(!Y.ts||(L=c-Y.ts)>=G)Y.ts=c,q=b-Y.bytes,Y.bytes=q<0?-q:0,L=0;q=b-Y.bytes}if(X){if(q<=0)return setTimeout(()=>{w(null,K)},G-L);if(q<U)U=q}if(U&&V>U&&V-U>z)N=K.subarray(U),K=K.subarray(0,U);v(K,N?()=>{process.nextTick(w,null,N)}:w)};B(x,function K(w,V){if(w)return W(w);if(V)B(V,K);else W(null)})}}var f5=Eb;import{EventEmitter as Gc}from"events";import TD from"util";import{Readable as kD}from"stream";var{asyncIterator:Sb}=Symbol,CD=async function*(x){if(x.stream)yield*x.stream();else if(x.arrayBuffer)yield await x.arrayBuffer();else if(x[Sb])yield*x[Sb]();else yield x},p9=CD;var _D=b0.ALPHABET.ALPHA_DIGIT+"-_",Y6=typeof TextEncoder==="function"?new TextEncoder:new TD.TextEncoder,Gx=`\r
29
+ `,uD=Y6.encode(Gx),pD=2;class Pb{constructor(x,Q){let{escapeName:W}=this.constructor,Y=H.isString(Q),X=`Content-Disposition: form-data; name="${W(x)}"${!Y&&Q.name?`; filename="${W(Q.name)}"`:""}${Gx}`;if(Y)Q=Y6.encode(String(Q).replace(/\r?\n|\r\n?/g,Gx));else{let J=String(Q.type||"application/octet-stream").replace(/[\r\n]/g,"");X+=`Content-Type: ${J}${Gx}`}this.headers=Y6.encode(X+Gx),this.contentLength=Y?Q.byteLength:Q.size,this.size=this.headers.byteLength+this.contentLength+pD,this.name=x,this.value=Q}async*encode(){yield this.headers;let{value:x}=this;if(H.isTypedArray(x))yield x;else yield*p9(x);yield uD}static escapeName(x){return String(x).replace(/[\r\n"]/g,(Q)=>({"\r":"%0D","\n":"%0A",'"':"%22"})[Q])}}var lD=(x,Q,W)=>{let{tag:Y="form-data-boundary",size:X=25,boundary:J=Y+"-"+b0.generateString(X,_D)}=W||{};if(!H.isFormData(x))throw TypeError("FormData instance required");if(J.length<1||J.length>70)throw Error("boundary must be 1-70 characters long");let G=Y6.encode("--"+J+Gx),$=Y6.encode("--"+J+"--"+Gx),b=$.byteLength,z=Array.from(x.entries()).map(([B,K])=>{let w=new Pb(B,K);return b+=w.size,w});b+=G.byteLength*z.length,b=H.toFiniteNumber(b);let v={"Content-Type":`multipart/form-data; boundary=${J}`};if(Number.isFinite(b))v["Content-Length"]=b;return Q&&Q(v),kD.from(async function*(){for(let B of z)yield G,yield*B.encode();yield $}())},Rb=lD;import nD from"stream";class Zb extends nD.Transform{__transform(x,Q,W){this.push(x),W()}_transform(x,Q,W){if(x.length!==0){if(this._transform=this.__transform,x[0]!==120){let Y=Buffer.alloc(2);Y[0]=120,Y[1]=156,this.push(Y,Q)}}this.__transform(x,Q,W)}}var ib=Zb;import mD from"http2";import fD from"util";class Cb{constructor(){this.sessions=Object.create(null)}getSession(x,Q){Q=Object.assign({sessionTimeout:1000},Q);let W=this.sessions[x];if(W){let v=W.length;for(let B=0;B<v;B++){let[K,w]=W[B];if(!K.destroyed&&!K.closed&&fD.isDeepStrictEqual(w,Q))return K}}let Y=mD.connect(x,Q),X,J,G=()=>{if(X)return;if(X=!0,J)clearTimeout(J),J=null;let v=W,B=v.length,K=B;while(K--)if(v[K][0]===Y){if(B===1)delete this.sessions[x];else v.splice(K,1);if(!Y.closed)Y.close();return}},$=Y.request,{sessionTimeout:b}=Q;if(b!=null){let v=0;Y.request=function(){let B=$.apply(this,arguments);if(v++,J)clearTimeout(J),J=null;return B.once("close",()=>{if(!--v)J=setTimeout(()=>{J=null,G()},b)}),B}}Y.once("close",G);let z=[Y,Q];return W?W.push(z):W=this.sessions[x]=[z],Y}}var Tb=Cb;var yD=(x,Q)=>{return H.isAsyncFn(x)?function(...W){let Y=W.pop();x.apply(this,W).then((X)=>{try{Q?Y(null,...Q(X)):Y(null,X)}catch(J){Y(J)}},Y)}:x},kb=yD;var gD=new Set(["localhost","0.0.0.0"]),pb=(x)=>{let Q=x.split(".");if(Q.length!==4)return!1;if(Q[0]!=="127")return!1;return Q.every((W)=>/^\d+$/.test(W)&&Number(W)>=0&&Number(W)<=255)},y5=(x)=>/^0{1,4}$/.test(x),hD=(x)=>{if(x==="::")return!0;let Q=x.indexOf("::");if(Q!==-1){if(Q!==x.lastIndexOf("::"))return!1;let Y=x.slice(0,Q),X=x.slice(Q+2),J=Y?Y.split(":"):[],G=X?X.split(":"):[];return J.length+G.length<8&&J.every(y5)&&G.every(y5)}let W=x.split(":");return W.length===8&&W.every(y5)},oD=(x)=>{if(x==="::1")return!0;let Q=x.match(/^::ffff:(\d+\.\d+\.\d+\.\d+)$/i);if(Q)return pb(Q[1]);let W=x.match(/^::ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i);if(W){let X=parseInt(W[1],16);return X>=32512&&X<=32767}let Y=x.split(":");if(Y.length===8){for(let X=0;X<7;X++)if(!/^0+$/.test(Y[X]))return!1;return/^0*1$/.test(Y[7])}return!1},_b=(x)=>{if(!x)return!1;if(gD.has(x))return!0;if(pb(x))return!0;if(hD(x))return!0;return oD(x)},aD={http:80,https:443,ws:80,wss:443,ftp:21},dD=(x)=>{let Q=x,W=0;if(Q.charAt(0)==="["){let J=Q.indexOf("]");if(J!==-1){let G=Q.slice(1,J),$=Q.slice(J+1);if($.charAt(0)===":"&&/^\d+$/.test($.slice(1)))W=Number.parseInt($.slice(1),10);return[G,W]}}let Y=Q.indexOf(":"),X=Q.lastIndexOf(":");if(Y!==-1&&Y===X&&/^\d+$/.test(Q.slice(X+1)))W=Number.parseInt(Q.slice(X+1),10),Q=Q.slice(0,X);return[Q,W]},rD=/^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:(\d+\.\d+\.\d+\.\d+)$/i,sD=/^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i,tD=(x)=>{if(typeof x!=="string"||x.indexOf(":")===-1)return x;let Q=x.match(rD);if(Q)return Q[1];let W=x.match(sD);if(W){let Y=parseInt(W[1],16),X=parseInt(W[2],16);return`${Y>>8}.${Y&255}.${X>>8}.${X&255}`}return x},ub=(x)=>{if(!x)return x;if(x.charAt(0)==="["&&x.charAt(x.length-1)==="]")x=x.slice(1,-1);return tD(x.replace(/\.+$/,""))};function g5(x){let Q;try{Q=new URL(x)}catch(J){return!1}let W=(process.env.no_proxy||process.env.NO_PROXY||"").toLowerCase();if(!W)return!1;if(W==="*")return!0;let Y=Number.parseInt(Q.port,10)||aD[Q.protocol.split(":",1)[0]]||0,X=ub(Q.hostname.toLowerCase());return W.split(/[\s,]+/).some((J)=>{if(!J)return!1;let[G,$]=dD(J);if(G=ub(G),!G)return!1;if($&&$!==Y)return!1;if(G.charAt(0)==="*")G=G.slice(1);if(G.charAt(0)===".")return X.endsWith(G);return X===G||_b(X)&&_b(G)})}function eD(x,Q){x=x||10;let W=Array(x),Y=Array(x),X=0,J=0,G;return Q=Q!==void 0?Q:1000,function(b){let z=Date.now(),v=Y[J];if(!G)G=z;W[X]=b,Y[X]=z;let B=J,K=0;while(B!==X)K+=W[B++],B=B%x;if(X=(X+1)%x,X===J)J=(J+1)%x;if(z-G<Q)return;let w=v&&z-v;return w?Math.round(K*1000/w):void 0}}var lb=eD;function xc(x,Q){let W=0,Y=1000/Q,X,J,G=(z,v=Date.now())=>{if(W=v,X=null,J)clearTimeout(J),J=null;x(...z)};return[(...z)=>{let v=Date.now(),B=v-W;if(B>=Y)G(z,v);else if(X=z,!J)J=setTimeout(()=>{J=null,G(X)},Y-B)},()=>X&&G(X)]}var nb=xc;var v4=(x,Q,W=3)=>{let Y=0,X=lb(50,250);return nb((J)=>{if(!J||typeof J.loaded!=="number")return;let G=J.loaded,$=J.lengthComputable?J.total:void 0,b=$!=null?Math.min(G,$):G,z=Math.max(0,b-Y),v=X(z);Y=Math.max(Y,b);let B={loaded:b,total:$,progress:$?b/$:void 0,bytes:z,rate:v?v:void 0,estimated:v&&$?($-b)/v:void 0,event:J,lengthComputable:$!=null,[Q?"download":"upload"]:!0};x(B)},W)},fx=(x,Q)=>{let W=x!=null;return[(Y)=>Q[0]({lengthComputable:W,total:x,loaded:Y}),Q[1]]},yx=(x)=>(...Q)=>H.asap(()=>x(...Q));var l9=(x)=>x>=48&&x<=57||x>=65&&x<=70||x>=97&&x<=102,Qc=(x,Q,W)=>Q+2<W&&l9(x.charCodeAt(Q+1))&&l9(x.charCodeAt(Q+2));function X6(x){if(!x||typeof x!=="string")return 0;if(!x.startsWith("data:"))return 0;let Q=x.indexOf(",");if(Q<0)return 0;let W=x.slice(5,Q),Y=x.slice(Q+1);if(/;base64/i.test(W)){let{length:G,length:$}=Y;for(let w=0;w<$;w++)if(Y.charCodeAt(w)===37&&w+2<$){let V=Y.charCodeAt(w+1),N=Y.charCodeAt(w+2);if(l9(V)&&l9(N))G-=2,w+=2}let b=0,z=$-1,v=(w)=>w>=2&&Y.charCodeAt(w-2)===37&&Y.charCodeAt(w-1)===51&&(Y.charCodeAt(w)===68||Y.charCodeAt(w)===100);if(z>=0){if(Y.charCodeAt(z)===61)b++,z--;else if(v(z))b++,z-=3}if(b===1&&z>=0){if(Y.charCodeAt(z)===61)b++;else if(v(z))b++}let K=Math.floor(G/4)*3-(b||0);return K>0?K:0}let J=0;for(let G=0,$=Y.length;G<$;G++){let b=Y.charCodeAt(G);if(b===37&&Qc(Y,G,$))J+=1,G+=2;else if(b<128)J+=1;else if(b<2048)J+=2;else if(b>=55296&&b<=56319&&G+1<$){let z=Y.charCodeAt(G+1);if(z>=56320&&z<=57343)J+=4,G++;else J+=3}else J+=3}return J}var fb={flush:P1.constants.Z_SYNC_FLUSH,finishFlush:P1.constants.Z_SYNC_FLUSH},$c={flush:P1.constants.BROTLI_OPERATION_FLUSH,finishFlush:P1.constants.BROTLI_OPERATION_FLUSH},bc={flush:P1.constants.ZSTD_e_flush,finishFlush:P1.constants.ZSTD_e_flush},sb=H.isFunction(P1.createBrotliDecompress),tb=H.isFunction(P1.createZstdDecompress),eb="gzip, compress, deflate"+(sb?", br":""),zc=eb+(tb?", zstd":""),{http:vc,https:Bc}=rb.default,xz=/https:?/,wc=["content-type","content-length"];function Kc(x,Q,W){if(W!=="content-only"){x.set(Q);return}Object.entries(Q).forEach(([Y,X])=>{if(wc.includes(Y.toLowerCase()))x.set(Y,X)})}var yb=Symbol("axios.http.socketListener"),n9=Symbol("axios.http.currentReq"),Qz=Symbol("axios.http.installedTunnel"),Hc=new Map,gb=new WeakMap;function Vc(x,Q){let W=x.protocol+"//"+x.hostname+":"+(x.port||"")+"#"+(x.auth||""),Y=Q?gb.get(Q)||gb.set(Q,new Map).get(Q):Hc,X=Y.get(W);if(X)return X;let J=Q&&Q.options?{...Q.options,...x}:x;if(X=new h5.default(J),Q&&Q.options){let G={...Q.options},$=X.callback;X.callback=function(z,v){return $.call(this,z,{...G,...v})}}return X[Qz]=!0,Y.set(W,X),X}var hb=b0.protocols.map((x)=>{return x+":"}),ob=(x)=>{if(!H.isString(x))return x;try{return decodeURIComponent(x)}catch(Q){return x}},ab=(x,[Q,W])=>{return x.on("end",W).on("error",W),Q},qc=new Tb;function Nc(x,Q,W){if(x.beforeRedirects.proxy)x.beforeRedirects.proxy(x);if(x.beforeRedirects.auth)x.beforeRedirects.auth(x);if(x.beforeRedirects.sensitiveHeaders)x.beforeRedirects.sensitiveHeaders(x,W);if(x.beforeRedirects.config)x.beforeRedirects.config(x,Q,W)}function Uc(x,Q){if(!x)return;Object.keys(x).forEach((W)=>{if(Q.has(W.toLowerCase()))delete x[W]})}function Lc(x,Q){if(!Q)return!1;try{return new URL(Q.url).origin===new URL(x.href).origin}catch(W){return!1}}function Wz(x,Q,W,Y,X){let J=Q;if(!J&&J!==!1){let G=a$(W);if(G){if(!g5(W))J=new URL(G)}}if(Y&&x.headers){for(let G of Object.keys(x.headers))if(G.toLowerCase()==="proxy-authorization")delete x.headers[G]}if(Y&&x.agent&&x.agent[Qz])x.agent=void 0;if(J){let G=J instanceof URL,$=(K)=>G||H.hasOwnProp(J,K)?J[K]:void 0,b=$("username"),z=$("password"),v=H.hasOwnProp(J,"auth")?J.auth:void 0;if(b)v=(b||"")+":"+(z||"");if(v){let K=typeof v==="object",w=K&&H.hasOwnProp(v,"username")?v.username:void 0,V=K&&H.hasOwnProp(v,"password")?v.password:void 0;if(Boolean(w||V))v=(w||"")+":"+(V||"");else if(K)throw new A("Invalid proxy authorization",A.ERR_BAD_OPTION,{proxy:J})}if(xz.test(x.protocol)){if(!(X instanceof h5.default)){let K=$("hostname")||$("host"),w=$("port"),V=$("protocol"),N=V?V.includes(":")?V:`${V}:`:"http:",U=K&&K.includes(":")&&!K.startsWith("[")?`[${K}]`:K,q=new URL(`${N}//${U}${w?":"+w:""}`),L={protocol:q.protocol,hostname:q.hostname.replace(/^\[|\]$/g,""),port:q.port,auth:v&&typeof v==="string"?v:void 0};if(q.protocol==="https:")L.ALPNProtocols=["http/1.1"];let c=Vc(L,X);if(x.agent=c,x.agents)x.agents.https=c}}else{if(v){let N=Buffer.from(v,"utf8").toString("base64");x.headers["Proxy-Authorization"]="Basic "+N}let K=!1;for(let N of Object.keys(x.headers))if(N.toLowerCase()==="host"){K=!0;break}if(!K)x.headers.host=x.hostname+(x.port?":"+x.port:"");let w=$("hostname")||$("host");x.hostname=w,x.host=w,x.port=$("port"),x.path=W;let V=$("protocol");if(V)x.protocol=V.includes(":")?V:`${V}:`}}x.beforeRedirects.proxy=function($){Wz($,Q,$.href,!0,X)}}var Fc=typeof process<"u"&&H.kindOf(process)==="process",Mc=(x)=>{return new Promise((Q,W)=>{let Y,X,J=(b,z)=>{if(X)return;X=!0,Y&&Y(b,z)},G=(b)=>{J(b),Q(b)},$=(b)=>{J(b,!0),W(b)};x(G,$,(b)=>Y=b).catch($)})},Dc=({address:x,family:Q})=>{if(!H.isString(x))throw TypeError("address must be a string");return{address:x,family:Q||(x.indexOf(".")<0?6:4)}},db=(x,Q)=>Dc(H.isObject(x)?x:{address:x,family:Q}),cc={request(x,Q){let W=x.protocol+"//"+x.hostname+":"+(x.port||(x.protocol==="https:"?443:80)),{http2Options:Y,headers:X}=x,J=qc.getSession(W,Y),{HTTP2_HEADER_SCHEME:G,HTTP2_HEADER_METHOD:$,HTTP2_HEADER_PATH:b,HTTP2_HEADER_STATUS:z}=Xc.constants,v={[G]:x.protocol.replace(":",""),[$]:x.method,[b]:x.path};H.forEach(X,(K,w)=>{w.charAt(0)!==":"&&(v[w]=K)});let B=J.request(v);return B.once("response",(K)=>{let w=B;K=Object.assign({},K);let V=K[z];delete K[z],w.headers=K,w.statusCode=+V,Q(w)}),B}},Yz=Fc&&function(Q){return Mc(async function(Y,X,J){let G=(O)=>H.getSafeProp(Q,O),$=G("transitional")||j4,b=G("data"),z=G("lookup"),v=G("family"),B=G("httpVersion");if(B===void 0)B=1;let K=G("http2Options"),w=G("responseType"),V=G("responseEncoding"),N=G("httpAgent"),U=G("httpsAgent"),q=G("method").toUpperCase(),L=G("maxRedirects"),c=G("maxBodyLength"),S=G("maxContentLength"),i=G("decompress"),y,B0=!1,d,z1;if(B=+B,Number.isNaN(B))throw TypeError(`Invalid protocol version: '${Q.httpVersion}' is not a number`);if(B!==1&&B!==2)throw TypeError(`Unsupported protocol version '${B}'`);let x1=B===2;if(z){let O=kb(z,(R)=>H.isArray(R)?R:[R]);z=(R,h,v0)=>{O(R,h,(s,_0,Z0)=>{if(s)return v0(s);let T0=H.isArray(_0)?_0.map((Ix)=>db(Ix)):[db(_0,Z0)];h.all?v0(s,T0):v0(s,T0[0].address,T0[0].family)})}}let m0=new Gc;function o0(O){try{m0.emit("abort",!O||O.type?new M1(null,Q,d):O)}catch(R){}}function x4(){if(z1)clearTimeout(z1),z1=null}function v1(){let O=G("timeout"),R=O?"timeout of "+O+"ms exceeded":"timeout exceeded",h=G("timeoutErrorMessage");if(h)R=h;return new A(R,$.clarifyTimeoutError?A.ETIMEDOUT:A.ECONNABORTED,Q,d)}m0.once("abort",X);let L4=()=>{if(x4(),Q.cancelToken)Q.cancelToken.unsubscribe(o0);if(Q.signal)Q.signal.removeEventListener("abort",o0);m0.removeAllListeners()};if(Q.cancelToken||Q.signal){if(Q.cancelToken&&Q.cancelToken.subscribe(o0),Q.signal)Q.signal.aborted?o0():Q.signal.addEventListener("abort",o0)}J((O,R)=>{if(y=!0,x4(),R){B0=!0,L4();return}let{data:h}=O;if(h instanceof p1.Readable||h instanceof p1.Duplex){let v0=p1.finished(h,()=>{v0(),L4()})}else L4()});let F4=xx(G("baseURL"),G("url"),G("allowAbsoluteUrls"),Q),p0=new URL(F4,b0.hasBrowserEnv?b0.origin:void 0),h4=p0.protocol||hb[0];if(h4==="data:"){if(S>-1){let R=String(G("url")||F4||"");if(X6(R)>S)return X(new A("maxContentLength size of "+S+" exceeded",A.ERR_BAD_RESPONSE,Q))}let O;if(q!=="GET")return W4(Y,X,{status:405,statusText:"method not allowed",headers:{},config:Q});try{O=n5(G("url"),w==="blob",{Blob:Q.env&&Q.env.Blob})}catch(R){throw A.from(R,A.ERR_BAD_REQUEST,Q)}if(w==="text"){if(O=O.toString(V),!V||V==="utf8")O=H.stripBOM(O)}else if(w==="stream")O=p1.Readable.from(O);return W4(Y,X,{data:O,status:200,statusText:"OK",headers:new V0,config:Q})}if(hb.indexOf(h4)===-1)return X(new A("Unsupported protocol "+h4,A.ERR_BAD_REQUEST,Q));let Q1=V0.from(Q.headers).normalize();Q1.set("User-Agent","axios/"+z4,!1);let{onUploadProgress:O1,onDownloadProgress:C0}=Q,I1=Q.maxRate,k1=void 0,Q4=void 0;if(H.isSpecCompliantForm(b)){let O=Q1.getContentType(/boundary=([-_\w\d]{10,70})/i);b=Rb(b,(R)=>{Q1.set(R)},{tag:`axios-${z4}-boundary`,boundary:O&&O[1]||void 0})}else if(H.isFormData(b)&&H.isFunction(b.getHeaders)&&b.getHeaders!==Object.prototype.getHeaders){if(Kc(Q1,b.getHeaders(),G("formDataHeaderPolicy")),!Q1.hasContentLength())try{let O=await Jc.promisify(b.getLength).call(b);Number.isFinite(O)&&O>=0&&Q1.setContentLength(O)}catch(O){}}else if(H.isBlob(b)||H.isFile(b))b.size&&Q1.setContentType(b.type||"application/octet-stream"),Q1.setContentLength(b.size||0),b=p1.Readable.from(p9(b));else if(b&&!H.isStream(b)){if(Buffer.isBuffer(b));else if(H.isArrayBuffer(b))b=Buffer.from(new Uint8Array(b));else if(H.isString(b))b=Buffer.from(b,"utf-8");else return X(new A("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",A.ERR_BAD_REQUEST,Q));if(Q1.setContentLength(b.length,!1),c>-1&&b.length>c)return X(new A("Request body larger than maxBodyLength limit",A.ERR_BAD_REQUEST,Q))}let q9=H.toFiniteNumber(Q1.getContentLength());if(H.isArray(I1))k1=I1[0],Q4=I1[1];else k1=Q4=I1;if(b&&(O1||k1)){if(!H.isStream(b))b=p1.Readable.from(b,{objectMode:!1});b=p1.pipeline([b,new f5({maxRate:H.toFiniteNumber(k1)})],H.noop),O1&&b.on("progress",ab(b,fx(q9,v4(yx(O1),!1,3))))}let x0=void 0,L1=G("auth");if(L1){let O=H.getSafeProp(L1,"username")||"",R=H.getSafeProp(L1,"password")||"";x0=O+":"+R}if(!x0&&(p0.username||p0.password)){let O=ob(p0.username),R=ob(p0.password);x0=O+":"+R}x0&&Q1.delete("authorization");let o4;try{o4=e4(p0.pathname+p0.search,G("params"),G("paramsSerializer")).replace(/^\?/,"")}catch(O){let R=Error(O.message);return R.config=Q,R.url=G("url"),R.exists=!0,X(R)}Q1.set("Accept-Encoding",H.hasOwnProp($,"advertiseZstdAcceptEncoding")&&$.advertiseZstdAcceptEncoding===!0?zc:eb,!1);let R0=Object.assign(Object.create(null),{path:o4,method:q,headers:Zx(Q1),agents:{http:N,https:U},auth:x0,protocol:h4,family:v,beforeRedirect:Nc,beforeRedirects:Object.create(null),http2Options:K});!H.isUndefined(z)&&(R0.lookup=z);let a4=G("socketPath");if(a4){if(typeof a4!=="string")return X(new A("socketPath must be a string",A.ERR_BAD_OPTION_VALUE,Q));let O=G("allowedSocketPaths");if(O!=null){let R=Array.isArray(O)?O:[O],h=mb(a4);if(!R.some((s)=>typeof s==="string"&&mb(s)===h))return X(new A(`socketPath "${a4}" is not permitted by allowedSocketPaths`,A.ERR_BAD_OPTION_VALUE,Q))}R0.socketPath=a4}else R0.hostname=p0.hostname.startsWith("[")?p0.hostname.slice(1,-1):p0.hostname,R0.port=p0.port,Wz(R0,G("proxy"),h4+"//"+p0.hostname+(p0.port?":"+p0.port:"")+R0.path,!1,U);let M4,E1=!1,P8=!1,d4=xz.test(R0.protocol);if(R0.agent==null)R0.agent=d4?U:N;if(x1)M4=cc;else{let O=G("transport");if(O)M4=O;else if(L===0)M4=d4?Yc:Wc,E1=!0;else{if(P8=!0,R0.sensitiveHeaders=[],L)R0.maxRedirects=L;let R=G("beforeRedirect");if(R)R0.beforeRedirects.config=R;if(x0){let v0=p0.origin,s=x0;R0.beforeRedirects.auth=function(Z0){try{if(new URL(Z0.href).origin===v0)Z0.auth=s}catch(T0){}}}let h=G("sensitiveHeaders");if(h!=null){if(!H.isArray(h))return X(new A("sensitiveHeaders must be an array of strings",A.ERR_BAD_OPTION_VALUE,Q));let v0=new Set;for(let s of h){if(!H.isString(s))return X(new A("sensitiveHeaders must be an array of strings",A.ERR_BAD_OPTION_VALUE,Q));v0.add(s.toLowerCase())}if(v0.size)R0.sensitiveHeaders=Array.from(v0),R0.beforeRedirects.sensitiveHeaders=function(_0,Z0){if(!Lc(_0,Z0))Uc(_0.headers,v0)}}M4=d4?Bc:vc}}if(c>-1)R0.maxBodyLength=c;else R0.maxBodyLength=1/0;R0.insecureHTTPParser=Boolean(G("insecureHTTPParser")),d=M4.request(R0,function(R){if(x4(),d.destroyed)return;let h=[R],v0=H.toFiniteNumber(R.headers["content-length"]);if(C0||Q4){let T0=new f5({maxRate:H.toFiniteNumber(Q4)});C0&&T0.on("progress",ab(T0,fx(v0,v4(yx(C0),!0,3)))),h.push(T0)}let s=R,_0=R.req||d;if(i!==!1&&R.headers["content-encoding"]){if(q==="HEAD"||R.statusCode===204)delete R.headers["content-encoding"];switch((R.headers["content-encoding"]||"").toLowerCase()){case"gzip":case"x-gzip":case"compress":case"x-compress":h.push(P1.createUnzip(fb)),delete R.headers["content-encoding"];break;case"deflate":h.push(new ib),h.push(P1.createUnzip(fb)),delete R.headers["content-encoding"];break;case"br":if(sb)h.push(P1.createBrotliDecompress($c)),delete R.headers["content-encoding"];break;case"zstd":if(tb)h.push(P1.createZstdDecompress(bc)),delete R.headers["content-encoding"];break}}s=h.length>1?p1.pipeline(h,H.noop):h[0];let Z0={status:R.statusCode,statusText:R.statusMessage,headers:new V0(R.headers),config:Q,request:_0};if(w==="stream"){if(S>-1){let T0=S,Ix=s;async function*R8(){let f0=0;for await(let qJ of Ix){if(f0+=qJ.length,f0>T0)throw new A("maxContentLength size of "+T0+" exceeded",A.ERR_BAD_RESPONSE,Q,_0);yield qJ}}s=p1.Readable.from(R8(),{objectMode:!1})}Z0.data=s,W4(Y,X,Z0)}else{let T0=[],Ix=0;s.on("data",function(f0){if(T0.push(f0),Ix+=f0.length,S>-1&&Ix>S)B0=!0,s.destroy(),o0(new A("maxContentLength size of "+S+" exceeded",A.ERR_BAD_RESPONSE,Q,_0))}),s.on("aborted",function(){if(B0)return;let f0=new A("stream has been aborted",A.ERR_BAD_RESPONSE,Q,_0,Z0);s.destroy(f0),X(f0)}),s.on("error",function(f0){if(B0)return;X(A.from(f0,null,Q,_0,Z0))}),s.on("end",function(){try{let f0=T0.length===1?T0[0]:Buffer.concat(T0);if(w!=="arraybuffer"){if(f0=f0.toString(V),!V||V==="utf8")f0=H.stripBOM(f0)}Z0.data=f0}catch(f0){return X(A.from(f0,null,Q,Z0.request,Z0))}W4(Y,X,Z0)})}m0.once("abort",(T0)=>{if(!s.destroyed)s.emit("error",T0),s.destroy()})}),m0.once("abort",(O)=>{if(d.close)d.close();else d.destroy(O)}),d.on("error",function(R){X(A.from(R,null,Q,d))});let F1=new Set;if(d.on("socket",function(R){if(R.setKeepAlive(!0,60000),!R[yb])R.on("error",function(v0){let s=R[n9];if(s&&!s.destroyed)s.destroy(v0)}),R[yb]=!0;R[n9]=d,F1.add(R)}),d.once("close",function(){x4();for(let R of F1)if(R[n9]===d)R[n9]=null;F1.clear()}),G("timeout")){let O=parseInt(G("timeout"),10);if(Number.isNaN(O)){o0(new A("error trying to parse `config.timeout` to int",A.ERR_BAD_OPTION_VALUE,Q,d));return}let R=function(){if(y)return;o0(v1())};if(E1&&O>0)z1=setTimeout(R,O);d.setTimeout(O,R)}else d.setTimeout(0);if(H.isStream(b)){let O=!1,R=!1;b.on("end",()=>{O=!0}),b.once("error",(v0)=>{R=!0,d.destroy(v0)}),b.on("close",()=>{if(!O&&!R)o0(new M1("Request stream has been aborted",Q,d))});let h=b;if(c>-1&&!P8){let v0=c,s=0;h=p1.pipeline([b,new p1.Transform({transform(_0,Z0,T0){if(s+=_0.length,s>v0)return T0(new A("Request body larger than maxBodyLength limit",A.ERR_BAD_REQUEST,Q,d));T0(null,_0)}})],H.noop),h.on("error",(_0)=>{if(!d.destroyed)d.destroy(_0)})}h.pipe(d)}else b&&d.write(b),d.end()})};var Xz=b0.hasStandardBrowserEnv?((x,Q)=>(W)=>{return W=new URL(W,b0.origin),x.protocol===W.protocol&&x.host===W.host&&(Q||x.port===W.port)})(new URL(b0.origin),b0.navigator&&/(msie|trident)/i.test(b0.navigator.userAgent)):()=>!0;var Jz=b0.hasStandardBrowserEnv?{write(x,Q,W,Y,X,J,G){if(typeof document>"u")return;let $=[`${x}=${encodeURIComponent(Q)}`];if(H.isNumber(W))$.push(`expires=${new Date(W).toUTCString()}`);if(H.isString(Y))$.push(`path=${Y}`);if(H.isString(X))$.push(`domain=${X}`);if(J===!0)$.push("secure");if(H.isString(G))$.push(`SameSite=${G}`);document.cookie=$.join("; ")},read(x){if(typeof document>"u")return null;let Q=document.cookie.split(";");for(let W=0;W<Q.length;W++){let Y=Q[W].replace(/^\s+/,""),X=Y.indexOf("=");if(X!==-1&&Y.slice(0,X)===x)return decodeURIComponent(Y.slice(X+1))}return null},remove(x){this.write(x,"",Date.now()-86400000,"/")}}:{write(){},read(){return null},remove(){}};var Gz=(x)=>x instanceof V0?{...x}:x;function l1(x,Q){Q=Q||{};let W=Object.create(null);Object.defineProperty(W,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function Y(v,B,K,w){if(H.isPlainObject(v)&&H.isPlainObject(B))return H.merge.call({caseless:w},v,B);else if(H.isPlainObject(B))return H.merge({},B);else if(H.isArray(B))return B.slice();return B}function X(v,B,K,w){if(!H.isUndefined(B))return Y(v,B,K,w);else if(!H.isUndefined(v))return Y(void 0,v,K,w)}function J(v,B){if(!H.isUndefined(B))return Y(void 0,B)}function G(v,B){if(!H.isUndefined(B))return Y(void 0,B);else if(!H.isUndefined(v))return Y(void 0,v)}function $(v){let B=H.hasOwnProp(Q,"transitional")?Q.transitional:void 0;if(!H.isUndefined(B))if(H.isPlainObject(B)){if(H.hasOwnProp(B,v))return B[v]}else return;let K=H.hasOwnProp(x,"transitional")?x.transitional:void 0;if(H.isPlainObject(K)&&H.hasOwnProp(K,v))return K[v];return}function b(v,B,K){if(H.hasOwnProp(Q,K))return Y(v,B);else if(H.hasOwnProp(x,K))return Y(void 0,v)}let z={url:J,method:J,data:J,baseURL:G,transformRequest:G,transformResponse:G,paramsSerializer:G,timeout:G,timeoutMessage:G,withCredentials:G,withXSRFToken:G,adapter:G,responseType:G,xsrfCookieName:G,xsrfHeaderName:G,onUploadProgress:G,onDownloadProgress:G,decompress:G,maxContentLength:G,maxBodyLength:G,beforeRedirect:G,transport:G,httpAgent:G,httpsAgent:G,cancelToken:G,socketPath:G,allowedSocketPaths:G,responseEncoding:G,validateStatus:b,headers:(v,B,K)=>X(Gz(v),Gz(B),K,!0)};if(H.forEach(Object.keys({...x,...Q}),function(B){if(B==="__proto__"||B==="constructor"||B==="prototype")return;let K=H.hasOwnProp(z,B)?z[B]:X,w=H.hasOwnProp(x,B)?x[B]:void 0,V=H.hasOwnProp(Q,B)?Q[B]:void 0,N=K(w,V,B);H.isUndefined(N)&&K!==b||(W[B]=N)}),H.hasOwnProp(Q,"validateStatus")&&H.isUndefined(Q.validateStatus)&&$("validateStatusUndefinedResolves")===!1)if(H.hasOwnProp(x,"validateStatus"))W.validateStatus=Y(void 0,x.validateStatus);else delete W.validateStatus;return W}var jc=["content-type","content-length"];function Ac(x,Q,W){if(W!=="content-only"){x.set(Q);return}Object.entries(Q).forEach(([Y,X])=>{if(jc.includes(Y.toLowerCase()))x.set(Y,X)})}var Oc=(x)=>encodeURIComponent(x).replace(/%([0-9A-F]{2})/gi,(Q,W)=>String.fromCharCode(parseInt(W,16)));function Ic(x){let Q=l1({},x),W=(K)=>H.hasOwnProp(Q,K)?Q[K]:void 0,Y=W("data"),X=W("withXSRFToken"),J=W("xsrfHeaderName"),G=W("xsrfCookieName"),$=W("headers"),b=W("auth"),z=W("baseURL"),v=W("allowAbsoluteUrls"),B=W("url");if(Q.headers=$=V0.from($),Q.url=e4(xx(z,B,v,Q),W("params"),W("paramsSerializer")),b){let K=H.getSafeProp(b,"username")||"",w=H.getSafeProp(b,"password")||"";$.set("Authorization","Basic "+btoa(K+":"+(w?Oc(w):"")))}if(H.isFormData(Y)){if(b0.hasStandardBrowserEnv||b0.hasStandardBrowserWebWorkerEnv||H.isReactNative(Y))$.setContentType(void 0);else if(H.isFunction(Y.getHeaders))Ac($,Y.getHeaders(),W("formDataHeaderPolicy"))}if(b0.hasStandardBrowserEnv){if(H.isFunction(X))X=X(Q);if(X===!0||X==null&&Xz(Q.url)){let w=J&&G&&Jz.read(G);if(w)$.set(J,w)}}return Q}var m9=Ic;var Ec=typeof XMLHttpRequest<"u",$z=Ec&&function(x){return new Promise(function(W,Y){let X=m9(x),J=X.data,G=V0.from(X.headers).normalize(),{responseType:$,onUploadProgress:b,onDownloadProgress:z}=X,v,B,K,w,V;function N(){w&&w(),V&&V(),X.cancelToken&&X.cancelToken.unsubscribe(v),X.signal&&X.signal.removeEventListener("abort",v)}let U=new XMLHttpRequest;U.open(X.method.toUpperCase(),X.url,!0),U.timeout=X.timeout;function q(){if(!U)return;let c=V0.from("getAllResponseHeaders"in U&&U.getAllResponseHeaders()),i={data:!$||$==="text"||$==="json"?U.responseText:U.response,status:U.status,statusText:U.statusText,headers:c,config:x,request:U};W4(function(B0){W(B0),N()},function(B0){Y(B0),N()},i),U=null}if("onloadend"in U)U.onloadend=q;else U.onreadystatechange=function(){if(!U||U.readyState!==4)return;if(U.status===0&&!(U.responseURL&&U.responseURL.startsWith("file:")))return;setTimeout(q)};if(U.onabort=function(){if(!U)return;Y(new A("Request aborted",A.ECONNABORTED,x,U)),N(),U=null},U.onerror=function(S){let i=S&&S.message?S.message:"Network Error",y=new A(i,A.ERR_NETWORK,x,U);y.event=S||null,Y(y),N(),U=null},U.ontimeout=function(){let S=X.timeout?"timeout of "+X.timeout+"ms exceeded":"timeout exceeded",i=X.transitional||j4;if(X.timeoutErrorMessage)S=X.timeoutErrorMessage;Y(new A(S,i.clarifyTimeoutError?A.ETIMEDOUT:A.ECONNABORTED,x,U)),N(),U=null},J===void 0&&G.setContentType(null),"setRequestHeader"in U)H.forEach(Zx(G),function(S,i){U.setRequestHeader(i,S)});if(!H.isUndefined(X.withCredentials))U.withCredentials=!!X.withCredentials;if($&&$!=="json")U.responseType=X.responseType;if(z)[K,V]=v4(z,!0),U.addEventListener("progress",K);if(b&&U.upload)[B,w]=v4(b),U.upload.addEventListener("progress",B),U.upload.addEventListener("loadend",w);if(X.cancelToken||X.signal){if(v=(c)=>{if(!U)return;Y(!c||c.type?new M1(null,x,U):c),U.abort(),N(),U=null},X.cancelToken&&X.cancelToken.subscribe(v),X.signal)X.signal.aborted?v():X.signal.addEventListener("abort",v)}let L=W6(X.url);if(L&&!b0.protocols.includes(L)){Y(new A("Unsupported protocol "+L+":",A.ERR_BAD_REQUEST,x));return}U.send(J||null)})};var Sc=(x,Q)=>{if(x=x?x.filter(Boolean):[],!Q&&!x.length)return;let W=new AbortController,Y=!1,X=function(b){if(!Y){Y=!0,G();let z=b instanceof Error?b:this.reason;W.abort(z instanceof A?z:new M1(z instanceof Error?z.message:z))}},J=Q&&setTimeout(()=>{J=null,X(new A(`timeout of ${Q}ms exceeded`,A.ETIMEDOUT))},Q),G=()=>{if(!x)return;J&&clearTimeout(J),J=null,x.forEach((b)=>{b.unsubscribe?b.unsubscribe(X):b.removeEventListener("abort",X)}),x=null};x.forEach((b)=>b.addEventListener("abort",X));let{signal:$}=W;return $.unsubscribe=()=>H.asap(G),$},bz=Sc;var Pc=function*(x,Q){let W=x.byteLength;if(!Q||W<Q){yield x;return}let Y=0,X;while(Y<W)X=Y+Q,yield x.slice(Y,X),Y=X},Rc=async function*(x,Q){for await(let W of Zc(x))yield*Pc(W,Q)},Zc=async function*(x){if(x[Symbol.asyncIterator]){yield*x;return}let Q=x.getReader();try{for(;;){let{done:W,value:Y}=await Q.read();if(W)break;yield Y}}finally{await Q.cancel()}},o5=(x,Q,W,Y)=>{let X=Rc(x,Q),J=0,G,$=(b)=>{if(!G)G=!0,Y&&Y(b)};return new ReadableStream({async pull(b){try{let{done:z,value:v}=await X.next();if(z){$(),b.close();return}let B=v.byteLength;if(W){let K=J+=B;W(K)}b.enqueue(new Uint8Array(v))}catch(z){throw $(z),z}},cancel(b){return $(b),X.return()}},{highWaterMark:2})};var zz=65536,{isFunction:f9}=H,ic=(x)=>encodeURIComponent(x).replace(/%([0-9A-F]{2})/gi,(Q,W)=>String.fromCharCode(parseInt(W,16))),vz=(x)=>{if(!H.isString(x))return x;try{return decodeURIComponent(x)}catch(Q){return x}},Bz=(x,...Q)=>{try{return!!x(...Q)}catch(W){return!1}},Cc=(x)=>{let Q=x.indexOf("://"),W=x;if(Q!==-1)W=W.slice(Q+3);return W.includes("@")||W.includes(":")},Tc=(x)=>{let Q=H.global!==void 0&&H.global!==null?H.global:globalThis,{ReadableStream:W,TextEncoder:Y}=Q;x=H.merge.call({skipUndefined:!0},{Request:Q.Request,Response:Q.Response},x);let{fetch:X,Request:J,Response:G}=x,$=X?f9(X):typeof fetch==="function",b=f9(J),z=f9(G);if(!$)return!1;let v=$&&f9(W),B=$&&(typeof Y==="function"?((q)=>(L)=>q.encode(L))(new Y):async(q)=>new Uint8Array(await new J(q).arrayBuffer())),K=b&&v&&Bz(()=>{let q=!1,L=new J(b0.origin,{body:new W,method:"POST",get duplex(){return q=!0,"half"}}),c=L.headers.has("Content-Type");if(L.body!=null)L.body.cancel();return q&&!c}),w=z&&v&&Bz(()=>H.isReadableStream(new G("").body)),V={stream:w&&((q)=>q.body)};$&&(()=>{["text","arrayBuffer","blob","formData","stream"].forEach((q)=>{!V[q]&&(V[q]=(L,c)=>{let S=L&&L[q];if(S)return S.call(L);throw new A(`Response type '${q}' is not supported`,A.ERR_NOT_SUPPORT,c)})})})();let N=async(q)=>{if(q==null)return 0;if(H.isBlob(q))return q.size;if(H.isSpecCompliantForm(q))return(await new J(b0.origin,{method:"POST",body:q}).arrayBuffer()).byteLength;if(H.isArrayBufferView(q)||H.isArrayBuffer(q))return q.byteLength;if(H.isURLSearchParams(q))q=q+"";if(H.isString(q))return(await B(q)).byteLength},U=async(q,L)=>{let c=H.toFiniteNumber(q.getContentLength());return c==null?N(L):c};return async(q)=>{let{url:L,method:c,data:S,signal:i,cancelToken:y,timeout:B0,onDownloadProgress:d,onUploadProgress:z1,responseType:x1,headers:m0,withCredentials:o0="same-origin",fetchOptions:x4,maxContentLength:v1,maxBodyLength:L4}=m9(q),F4=H.isNumber(v1)&&v1>-1,p0=H.isNumber(L4)&&L4>-1,h4=(x0)=>H.hasOwnProp(q,x0)?q[x0]:void 0,Q1=X||fetch;x1=x1?(x1+"").toLowerCase():"text";let O1=bz([i,y&&y.toAbortSignal()],B0),C0=null,I1=O1&&O1.unsubscribe&&(()=>{O1.unsubscribe()}),k1,Q4=null,q9=()=>new A("Request body larger than maxBodyLength limit",A.ERR_BAD_REQUEST,q,C0);try{let x0=void 0,L1=h4("auth");if(L1){let O=H.getSafeProp(L1,"username")||"",R=H.getSafeProp(L1,"password")||"";x0={username:O,password:R}}if(Cc(L)){let O=new URL(L,b0.origin);if(!x0&&(O.username||O.password)){let R=vz(O.username),h=vz(O.password);x0={username:R,password:h}}if(O.username||O.password)O.username="",O.password="",L=O.href}if(x0)m0.delete("authorization"),m0.set("Authorization","Basic "+btoa(ic((x0.username||"")+":"+(x0.password||""))));if(F4&&typeof L==="string"&&L.startsWith("data:")){if(X6(L)>v1)throw new A("maxContentLength size of "+v1+" exceeded",A.ERR_BAD_RESPONSE,q,C0)}if(p0&&c!=="get"&&c!=="head"){let O=await N(S);if(typeof O==="number"&&isFinite(O)){if(k1=O,O>L4)throw q9()}}let o4=p0&&(H.isReadableStream(S)||H.isStream(S)),R0=(O,R,h)=>o5(O,zz,(v0)=>{if(p0&&v0>L4)throw Q4=q9();R&&R(v0)},h);if(K&&c!=="get"&&c!=="head"&&(z1||o4)){if(k1=k1==null?await U(m0,S):k1,k1!==0||o4){let O=new J(L,{method:"POST",body:S,duplex:"half"}),R;if(H.isFormData(S)&&(R=O.headers.get("content-type")))m0.setContentType(R);if(O.body){let[h,v0]=z1&&fx(k1,v4(yx(z1)))||[];S=R0(O.body,h,v0)}}}else if(o4&&!b&&v&&c!=="get"&&c!=="head")S=R0(S);else if(o4&&b&&!K&&c!=="get"&&c!=="head")throw new A("Stream request bodies are not supported by the current fetch implementation",A.ERR_NOT_SUPPORT,q,C0);if(!H.isString(o0))o0=o0?"include":"omit";let a4=b&&"credentials"in J.prototype;if(H.isFormData(S)){let O=m0.getContentType();if(O&&/^multipart\/form-data/i.test(O)&&!/boundary=/i.test(O))m0.delete("content-type")}m0.set("User-Agent","axios/"+z4,!1);let M4={...x4,signal:O1,method:c.toUpperCase(),headers:Zx(m0.normalize()),body:S,duplex:"half",credentials:a4?o0:void 0};C0=b&&new J(L,M4);let E1=await(b?Q1(C0,x4):Q1(L,M4)),P8=V0.from(E1.headers);if(F4){let O=H.toFiniteNumber(P8.getContentLength());if(O!=null&&O>v1)throw new A("maxContentLength size of "+v1+" exceeded",A.ERR_BAD_RESPONSE,q,C0)}let d4=w&&(x1==="stream"||x1==="response");if(w&&E1.body&&(d||F4||d4&&I1)){let O={};["status","statusText","headers"].forEach((Z0)=>{O[Z0]=E1[Z0]});let R=H.toFiniteNumber(P8.getContentLength()),[h,v0]=d&&fx(R,v4(yx(d),!0))||[],s=0,_0=(Z0)=>{if(F4){if(s=Z0,s>v1)throw new A("maxContentLength size of "+v1+" exceeded",A.ERR_BAD_RESPONSE,q,C0)}h&&h(Z0)};E1=new G(o5(E1.body,zz,_0,()=>{v0&&v0(),I1&&I1()}),O)}x1=x1||"text";let F1=await V[H.findKey(V,x1)||"text"](E1,q);if(F4&&!w&&!d4){let O;if(F1!=null){if(typeof F1.byteLength==="number")O=F1.byteLength;else if(typeof F1.size==="number")O=F1.size;else if(typeof F1==="string")O=typeof Y==="function"?new Y().encode(F1).byteLength:F1.length}if(typeof O==="number"&&O>v1)throw new A("maxContentLength size of "+v1+" exceeded",A.ERR_BAD_RESPONSE,q,C0)}return!d4&&I1&&I1(),await new Promise((O,R)=>{W4(O,R,{data:F1,headers:V0.from(E1.headers),status:E1.status,statusText:E1.statusText,config:q,request:C0})})}catch(x0){if(I1&&I1(),O1&&O1.aborted&&O1.reason instanceof A){let L1=O1.reason;throw L1.config=q,C0&&(L1.request=C0),x0!==L1&&(L1.cause=x0),L1}if(Q4)throw C0&&!Q4.request&&(Q4.request=C0),Q4;if(x0 instanceof A)throw C0&&!x0.request&&(x0.request=C0),x0;if(x0&&x0.name==="TypeError"&&/Load failed|fetch/i.test(x0.message))throw Object.assign(new A("Network Error",A.ERR_NETWORK,q,C0,x0&&x0.response),{cause:x0.cause||x0});throw A.from(x0,x0&&x0.code,q,C0,x0&&x0.response)}}},kc=new Map,a5=(x)=>{let Q=x&&x.env||{},{fetch:W,Request:Y,Response:X}=Q,J=[Y,X,W],G=J.length,$=G,b,z,v=kc;while($--)b=J[$],z=v.get(b),z===void 0&&v.set(b,z=$?new Map:Tc(Q)),v=z;return z},_n=a5();var d5={http:Yz,xhr:$z,fetch:{get:a5}};H.forEach(d5,(x,Q)=>{if(x){try{Object.defineProperty(x,"name",{__proto__:null,value:Q})}catch(W){}Object.defineProperty(x,"adapterName",{__proto__:null,value:Q})}});var wz=(x)=>`- ${x}`,uc=(x)=>H.isFunction(x)||x===null||x===!1;function pc(x,Q){x=H.isArray(x)?x:[x];let{length:W}=x,Y,X,J={};for(let G=0;G<W;G++){Y=x[G];let $;if(X=Y,!uc(Y)){if(X=d5[($=String(Y)).toLowerCase()],X===void 0)throw new A(`Unknown adapter '${$}'`)}if(X&&(H.isFunction(X)||(X=X.get(Q))))break;J[$||"#"+G]=X}if(!X){let G=Object.entries(J).map(([b,z])=>`adapter ${b} `+(z===!1?"is not supported by the environment":"is not available in the build")),$=W?G.length>1?`since :
30
+ `+G.map(wz).join(`
31
+ `):" "+wz(G[0]):"as no adapter specified";throw new A("There is no suitable adapter to dispatch the request "+$,"ERR_NOT_SUPPORT")}return X}var y9={getAdapter:pc,adapters:d5};function r5(x){if(x.cancelToken)x.cancelToken.throwIfRequested();if(x.signal&&x.signal.aborted)throw new M1(null,x)}function g9(x){if(r5(x),x.headers=V0.from(x.headers),x.data=y8.call(x,x.transformRequest),["post","put","patch"].indexOf(x.method)!==-1)x.headers.setContentType("application/x-www-form-urlencoded",!1);return y9.getAdapter(x.adapter||ux.adapter,x)(x).then(function(Y){r5(x),x.response=Y;try{Y.data=y8.call(x,x.transformResponse,Y)}finally{delete x.response}return Y.headers=V0.from(Y.headers),Y},function(Y){if(!g8(Y)){if(r5(x),Y&&Y.response){x.response=Y.response;try{Y.response.data=y8.call(x,x.transformResponse,Y.response)}finally{delete x.response}Y.response.headers=V0.from(Y.response.headers)}}return Promise.reject(Y)})}var h9={};["object","boolean","number","function","string","symbol"].forEach((x,Q)=>{h9[x]=function(Y){return typeof Y===x||"a"+(Q<1?"n ":" ")+x}});var Kz={};h9.transitional=function(Q,W,Y){function X(J,G){return"[Axios v"+z4+"] Transitional option '"+J+"'"+G+(Y?". "+Y:"")}return(J,G,$)=>{if(Q===!1)throw new A(X(G," has been removed"+(W?" in "+W:"")),A.ERR_DEPRECATED);if(W&&!Kz[G])Kz[G]=!0,console.warn(X(G," has been deprecated since v"+W+" and will be removed in the near future"));return Q?Q(J,G,$):!0}};h9.spelling=function(Q){return(W,Y)=>{return console.warn(`${Y} is likely a misspelling of ${Q}`),!0}};function lc(x,Q,W){if(typeof x!=="object")throw new A("options must be an object",A.ERR_BAD_OPTION_VALUE);let Y=Object.keys(x),X=Y.length;while(X-- >0){let J=Y[X],G=Object.prototype.hasOwnProperty.call(Q,J)?Q[J]:void 0;if(G){let $=x[J],b=$===void 0||G($,J,x);if(b!==!0)throw new A("option "+J+" must be "+b,A.ERR_BAD_OPTION_VALUE);continue}if(W!==!0)throw new A("Unknown option "+J,A.ERR_BAD_OPTION)}}var J6={assertOptions:lc,validators:h9};var W1=J6.validators;class G6{constructor(x){this.defaults=x||{},this.interceptors={request:new v5,response:new v5}}async request(x,Q){try{return await this._request(x,Q)}catch(W){if(W instanceof Error){let Y={};Error.captureStackTrace?Error.captureStackTrace(Y):Y=Error();let X=(()=>{if(!Y.stack)return"";let J=Y.stack.indexOf(`
32
32
  `);return J===-1?"":Y.stack.slice(J+1)})();try{if(!W.stack)W.stack=X;else if(X){let J=X.indexOf(`
33
33
  `),G=J===-1?-1:X.indexOf(`
34
34
  `,J+1),$=G===-1?"":X.slice(G+1);if(!String(W.stack).endsWith($))W.stack+=`
35
- `+X}}catch(J){}}throw W}}_request(x,Q){if(typeof x==="string")Q=Q||{},Q.url=x;else Q=x||{};Q=l1(this.defaults,Q);let{transitional:W,paramsSerializer:Y,headers:X}=Q;if(W!==void 0)J6.assertOptions(W,{silentJSONParsing:W1.transitional(W1.boolean),forcedJSONParsing:W1.transitional(W1.boolean),clarifyTimeoutError:W1.transitional(W1.boolean),legacyInterceptorReqResOrdering:W1.transitional(W1.boolean),advertiseZstdAcceptEncoding:W1.transitional(W1.boolean),validateStatusUndefinedResolves:W1.transitional(W1.boolean)},!1);if(Y!=null)if(H.isFunction(Y))Q.paramsSerializer={serialize:Y};else J6.assertOptions(Y,{encode:W1.function,serialize:W1.function},!0);if(Q.allowAbsoluteUrls!==void 0);else if(this.defaults.allowAbsoluteUrls!==void 0)Q.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls;else Q.allowAbsoluteUrls=!0;J6.assertOptions(Q,{baseUrl:W1.spelling("baseURL"),withXsrfToken:W1.spelling("withXSRFToken")},!0),Q.method=(Q.method||this.defaults.method||"get").toLowerCase();let J=X&&H.merge(X.common,X[Q.method]);X&&H.forEach(["delete","get","head","post","put","patch","query","common"],(w)=>{delete X[w]}),Q.headers=V0.concat(J,X);let G=[],$=!0;this.interceptors.request.forEach(function(V){if(typeof V.runWhen==="function"&&V.runWhen(Q)===!1)return;$=$&&V.synchronous;let N=Q.transitional||j4;if(N&&N.legacyInterceptorReqResOrdering)G.unshift(V.fulfilled,V.rejected);else G.push(V.fulfilled,V.rejected)});let b=[];this.interceptors.response.forEach(function(V){b.push(V.fulfilled,V.rejected)});let z,v=0,B;if(!$){let w=[g9.bind(this),void 0];w.unshift(...G),w.push(...b),B=w.length,z=Promise.resolve(Q);while(v<B)z=z.then(w[v++],w[v++]);return z}B=G.length;let K=Q;while(v<B){let w=G[v++],V=G[v++];try{K=w(K)}catch(N){V.call(this,N);break}}try{z=g9.call(this,K)}catch(w){return Promise.reject(w)}v=0,B=b.length;while(v<B)z=z.then(b[v++],b[v++]);return z}getUri(x){x=l1(this.defaults,x);let Q=xx(x.baseURL,x.url,x.allowAbsoluteUrls,x);return e4(Q,x.params,x.paramsSerializer)}}H.forEach(["delete","get","head","options"],function(Q){G6.prototype[Q]=function(W,Y){return this.request(l1(Y||{},{method:Q,url:W,data:Y&&H.hasOwnProp(Y,"data")?Y.data:void 0}))}});H.forEach(["post","put","patch","query"],function(Q){function W(Y){return function(J,G,$){return this.request(l1($||{},{method:Q,headers:Y?{"Content-Type":"multipart/form-data"}:{},url:J,data:G}))}}if(G6.prototype[Q]=W(),Q!=="query")G6.prototype[Q+"Form"]=W(!0)});var $6=G6;class s5{constructor(x){if(typeof x!=="function")throw TypeError("executor must be a function.");let Q;this.promise=new Promise(function(X){Q=X});let W=this;this.promise.then((Y)=>{if(!W._listeners)return;let X=W._listeners.length;while(X-- >0)W._listeners[X](Y);W._listeners=null}),this.promise.then=(Y)=>{let X,J=new Promise((G)=>{W.subscribe(G),X=G}).then(Y);return J.cancel=function(){W.unsubscribe(X)},J},x(function(X,J,G){if(W.reason)return;W.reason=new M1(X,J,G),Q(W.reason)})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(x){if(this.reason){x(this.reason);return}if(this._listeners)this._listeners.push(x);else this._listeners=[x]}unsubscribe(x){if(!this._listeners)return;let Q=this._listeners.indexOf(x);if(Q!==-1)this._listeners.splice(Q,1)}toAbortSignal(){let x=new AbortController,Q=(W)=>{x.abort(W)};return this.subscribe(Q),x.signal.unsubscribe=()=>this.unsubscribe(Q),x.signal}static source(){let x;return{token:new s5(function(Y){x=Y}),cancel:x}}}var Bz=s5;function t5(x){return function(W){return x.apply(null,W)}}function e5(x){return H.isObject(x)&&x.isAxiosError===!0}var xQ={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(xQ).forEach(([x,Q])=>{xQ[Q]=x});var wz=xQ;function Kz(x){let Q=new $6(x),W=C8($6.prototype.request,Q);return H.extend(W,$6.prototype,Q,{allOwnKeys:!0}),H.extend(W,Q,null,{allOwnKeys:!0}),W.create=function(X){return Kz(l1(x,X))},W}var u0=Kz(ux);u0.Axios=$6;u0.CanceledError=M1;u0.CancelToken=Bz;u0.isCancel=g8;u0.VERSION=z4;u0.toFormData=c4;u0.AxiosError=A;u0.Cancel=u0.CanceledError;u0.all=function(Q){return Promise.all(Q)};u0.spread=t5;u0.isAxiosError=e5;u0.mergeConfig=l1;u0.AxiosHeaders=V0;u0.formToJSON=(x)=>i9(H.isHTMLForm(x)?new FormData(x):x);u0.getAdapter=y9.getAdapter;u0.HttpStatusCode=wz;u0.default=u0;var o9=u0;var F={};i8(F,{void:()=>Uj,util:()=>e,unknown:()=>Nj,union:()=>Dj,undefined:()=>Hj,tuple:()=>Aj,transformer:()=>Tj,symbol:()=>Kj,string:()=>Dz,strictObject:()=>Mj,setErrorMap:()=>uc,set:()=>Ej,record:()=>Oj,quotelessJson:()=>kc,promise:()=>Cj,preprocess:()=>uj,pipeline:()=>pj,ostring:()=>lj,optional:()=>kj,onumber:()=>nj,oboolean:()=>mj,objectUtil:()=>QQ,object:()=>XQ,number:()=>cz,nullable:()=>_j,null:()=>Vj,never:()=>Lj,nativeEnum:()=>ij,nan:()=>vj,map:()=>Ij,makeIssue:()=>b6,literal:()=>Rj,lazy:()=>Pj,late:()=>bj,isValid:()=>O4,isDirty:()=>d9,isAsync:()=>hx,isAborted:()=>a9,intersection:()=>jj,instanceof:()=>zj,getParsedType:()=>Y4,getErrorMap:()=>gx,function:()=>Sj,enum:()=>Zj,effect:()=>Tj,discriminatedUnion:()=>cj,defaultErrorMap:()=>B4,datetimeRegex:()=>Uz,date:()=>wj,custom:()=>Mz,coerce:()=>fj,boolean:()=>jz,bigint:()=>Bj,array:()=>Fj,any:()=>qj,addIssueToContext:()=>Z,ZodVoid:()=>v6,ZodUnknown:()=>I4,ZodUnion:()=>tx,ZodUndefined:()=>rx,ZodType:()=>r,ZodTuple:()=>J4,ZodTransformer:()=>y1,ZodSymbol:()=>z6,ZodString:()=>n1,ZodSet:()=>vx,ZodSchema:()=>r,ZodRecord:()=>B6,ZodReadonly:()=>J8,ZodPromise:()=>Bx,ZodPipeline:()=>H6,ZodParsedType:()=>P,ZodOptional:()=>D1,ZodObject:()=>E0,ZodNumber:()=>E4,ZodNullable:()=>K4,ZodNull:()=>sx,ZodNever:()=>X4,ZodNativeEnum:()=>W8,ZodNaN:()=>K6,ZodMap:()=>w6,ZodLiteral:()=>Q8,ZodLazy:()=>x8,ZodIssueCode:()=>I,ZodIntersection:()=>ex,ZodFunction:()=>ax,ZodFirstPartyTypeKind:()=>E,ZodError:()=>K1,ZodEnum:()=>P4,ZodEffects:()=>y1,ZodDiscriminatedUnion:()=>r9,ZodDefault:()=>Y8,ZodDate:()=>bx,ZodCatch:()=>X8,ZodBranded:()=>s9,ZodBoolean:()=>dx,ZodBigInt:()=>S4,ZodArray:()=>m1,ZodAny:()=>zx,Schema:()=>r,ParseStatus:()=>d0,OK:()=>Y1,NEVER:()=>yj,INVALID:()=>l,EMPTY_PATH:()=>pc,DIRTY:()=>$x,BRAND:()=>$j});var e;(function(x){x.assertEqual=(X)=>{};function Q(X){}x.assertIs=Q;function W(X){throw Error()}x.assertNever=W,x.arrayToEnum=(X)=>{let J={};for(let G of X)J[G]=G;return J},x.getValidEnumValues=(X)=>{let J=x.objectKeys(X).filter(($)=>typeof X[X[$]]!=="number"),G={};for(let $ of J)G[$]=X[$];return x.objectValues(G)},x.objectValues=(X)=>{return x.objectKeys(X).map(function(J){return X[J]})},x.objectKeys=typeof Object.keys==="function"?(X)=>Object.keys(X):(X)=>{let J=[];for(let G in X)if(Object.prototype.hasOwnProperty.call(X,G))J.push(G);return J},x.find=(X,J)=>{for(let G of X)if(J(G))return G;return},x.isInteger=typeof Number.isInteger==="function"?(X)=>Number.isInteger(X):(X)=>typeof X==="number"&&Number.isFinite(X)&&Math.floor(X)===X;function Y(X,J=" | "){return X.map((G)=>typeof G==="string"?`'${G}'`:G).join(J)}x.joinValues=Y,x.jsonStringifyReplacer=(X,J)=>{if(typeof J==="bigint")return J.toString();return J}})(e||(e={}));var QQ;(function(x){x.mergeShapes=(Q,W)=>{return{...Q,...W}}})(QQ||(QQ={}));var P=e.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Y4=(x)=>{switch(typeof x){case"undefined":return P.undefined;case"string":return P.string;case"number":return Number.isNaN(x)?P.nan:P.number;case"boolean":return P.boolean;case"function":return P.function;case"bigint":return P.bigint;case"symbol":return P.symbol;case"object":if(Array.isArray(x))return P.array;if(x===null)return P.null;if(x.then&&typeof x.then==="function"&&x.catch&&typeof x.catch==="function")return P.promise;if(typeof Map<"u"&&x instanceof Map)return P.map;if(typeof Set<"u"&&x instanceof Set)return P.set;if(typeof Date<"u"&&x instanceof Date)return P.date;return P.object;default:return P.unknown}};var I=e.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),kc=(x)=>{return JSON.stringify(x,null,2).replace(/"([^"]+)":/g,"$1:")};class K1 extends Error{get errors(){return this.issues}constructor(x){super();this.issues=[],this.addIssue=(W)=>{this.issues=[...this.issues,W]},this.addIssues=(W=[])=>{this.issues=[...this.issues,...W]};let Q=new.target.prototype;if(Object.setPrototypeOf)Object.setPrototypeOf(this,Q);else this.__proto__=Q;this.name="ZodError",this.issues=x}format(x){let Q=x||function(X){return X.message},W={_errors:[]},Y=(X)=>{for(let J of X.issues)if(J.code==="invalid_union")J.unionErrors.map(Y);else if(J.code==="invalid_return_type")Y(J.returnTypeError);else if(J.code==="invalid_arguments")Y(J.argumentsError);else if(J.path.length===0)W._errors.push(Q(J));else{let G=W,$=0;while($<J.path.length){let b=J.path[$];if($!==J.path.length-1)G[b]=G[b]||{_errors:[]};else G[b]=G[b]||{_errors:[]},G[b]._errors.push(Q(J));G=G[b],$++}}};return Y(this),W}static assert(x){if(!(x instanceof K1))throw Error(`Not a ZodError: ${x}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,e.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(x=(Q)=>Q.message){let Q={},W=[];for(let Y of this.issues)if(Y.path.length>0){let X=Y.path[0];Q[X]=Q[X]||[],Q[X].push(x(Y))}else W.push(x(Y));return{formErrors:W,fieldErrors:Q}}get formErrors(){return this.flatten()}}K1.create=(x)=>{return new K1(x)};var _c=(x,Q)=>{let W;switch(x.code){case I.invalid_type:if(x.received===P.undefined)W="Required";else W=`Expected ${x.expected}, received ${x.received}`;break;case I.invalid_literal:W=`Invalid literal value, expected ${JSON.stringify(x.expected,e.jsonStringifyReplacer)}`;break;case I.unrecognized_keys:W=`Unrecognized key(s) in object: ${e.joinValues(x.keys,", ")}`;break;case I.invalid_union:W="Invalid input";break;case I.invalid_union_discriminator:W=`Invalid discriminator value. Expected ${e.joinValues(x.options)}`;break;case I.invalid_enum_value:W=`Invalid enum value. Expected ${e.joinValues(x.options)}, received '${x.received}'`;break;case I.invalid_arguments:W="Invalid function arguments";break;case I.invalid_return_type:W="Invalid function return type";break;case I.invalid_date:W="Invalid date";break;case I.invalid_string:if(typeof x.validation==="object")if("includes"in x.validation){if(W=`Invalid input: must include "${x.validation.includes}"`,typeof x.validation.position==="number")W=`${W} at one or more positions greater than or equal to ${x.validation.position}`}else if("startsWith"in x.validation)W=`Invalid input: must start with "${x.validation.startsWith}"`;else if("endsWith"in x.validation)W=`Invalid input: must end with "${x.validation.endsWith}"`;else e.assertNever(x.validation);else if(x.validation!=="regex")W=`Invalid ${x.validation}`;else W="Invalid";break;case I.too_small:if(x.type==="array")W=`Array must contain ${x.exact?"exactly":x.inclusive?"at least":"more than"} ${x.minimum} element(s)`;else if(x.type==="string")W=`String must contain ${x.exact?"exactly":x.inclusive?"at least":"over"} ${x.minimum} character(s)`;else if(x.type==="number")W=`Number must be ${x.exact?"exactly equal to ":x.inclusive?"greater than or equal to ":"greater than "}${x.minimum}`;else if(x.type==="bigint")W=`Number must be ${x.exact?"exactly equal to ":x.inclusive?"greater than or equal to ":"greater than "}${x.minimum}`;else if(x.type==="date")W=`Date must be ${x.exact?"exactly equal to ":x.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(x.minimum))}`;else W="Invalid input";break;case I.too_big:if(x.type==="array")W=`Array must contain ${x.exact?"exactly":x.inclusive?"at most":"less than"} ${x.maximum} element(s)`;else if(x.type==="string")W=`String must contain ${x.exact?"exactly":x.inclusive?"at most":"under"} ${x.maximum} character(s)`;else if(x.type==="number")W=`Number must be ${x.exact?"exactly":x.inclusive?"less than or equal to":"less than"} ${x.maximum}`;else if(x.type==="bigint")W=`BigInt must be ${x.exact?"exactly":x.inclusive?"less than or equal to":"less than"} ${x.maximum}`;else if(x.type==="date")W=`Date must be ${x.exact?"exactly":x.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(x.maximum))}`;else W="Invalid input";break;case I.custom:W="Invalid input";break;case I.invalid_intersection_types:W="Intersection results could not be merged";break;case I.not_multiple_of:W=`Number must be a multiple of ${x.multipleOf}`;break;case I.not_finite:W="Number must be finite";break;default:W=Q.defaultError,e.assertNever(x)}return{message:W}},B4=_c;var Hz=B4;function uc(x){Hz=x}function gx(){return Hz}var b6=(x)=>{let{data:Q,path:W,errorMaps:Y,issueData:X}=x,J=[...W,...X.path||[]],G={...X,path:J};if(X.message!==void 0)return{...X,path:J,message:X.message};let $="",b=Y.filter((z)=>!!z).slice().reverse();for(let z of b)$=z(G,{data:Q,defaultError:$}).message;return{...X,path:J,message:$}},pc=[];function Z(x,Q){let W=gx(),Y=b6({issueData:Q,data:x.data,path:x.path,errorMaps:[x.common.contextualErrorMap,x.schemaErrorMap,W,W===B4?void 0:B4].filter((X)=>!!X)});x.common.issues.push(Y)}class d0{constructor(){this.value="valid"}dirty(){if(this.value==="valid")this.value="dirty"}abort(){if(this.value!=="aborted")this.value="aborted"}static mergeArray(x,Q){let W=[];for(let Y of Q){if(Y.status==="aborted")return l;if(Y.status==="dirty")x.dirty();W.push(Y.value)}return{status:x.value,value:W}}static async mergeObjectAsync(x,Q){let W=[];for(let Y of Q){let X=await Y.key,J=await Y.value;W.push({key:X,value:J})}return d0.mergeObjectSync(x,W)}static mergeObjectSync(x,Q){let W={};for(let Y of Q){let{key:X,value:J}=Y;if(X.status==="aborted")return l;if(J.status==="aborted")return l;if(X.status==="dirty")x.dirty();if(J.status==="dirty")x.dirty();if(X.value!=="__proto__"&&(typeof J.value<"u"||Y.alwaysSet))W[X.value]=J.value}return{status:x.value,value:W}}}var l=Object.freeze({status:"aborted"}),$x=(x)=>({status:"dirty",value:x}),Y1=(x)=>({status:"valid",value:x}),a9=(x)=>x.status==="aborted",d9=(x)=>x.status==="dirty",O4=(x)=>x.status==="valid",hx=(x)=>typeof Promise<"u"&&x instanceof Promise;var T;(function(x){x.errToObj=(Q)=>typeof Q==="string"?{message:Q}:Q||{},x.toString=(Q)=>typeof Q==="string"?Q:Q?.message})(T||(T={}));class f1{constructor(x,Q,W,Y){this._cachedPath=[],this.parent=x,this.data=Q,this._path=W,this._key=Y}get path(){if(!this._cachedPath.length)if(Array.isArray(this._key))this._cachedPath.push(...this._path,...this._key);else this._cachedPath.push(...this._path,this._key);return this._cachedPath}}var Vz=(x,Q)=>{if(O4(Q))return{success:!0,data:Q.value};else{if(!x.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let W=new K1(x.common.issues);return this._error=W,this._error}}}};function g(x){if(!x)return{};let{errorMap:Q,invalid_type_error:W,required_error:Y,description:X}=x;if(Q&&(W||Y))throw Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);if(Q)return{errorMap:Q,description:X};return{errorMap:(G,$)=>{let{message:b}=x;if(G.code==="invalid_enum_value")return{message:b??$.defaultError};if(typeof $.data>"u")return{message:b??Y??$.defaultError};if(G.code!=="invalid_type")return{message:$.defaultError};return{message:b??W??$.defaultError}},description:X}}class r{get description(){return this._def.description}_getType(x){return Y4(x.data)}_getOrReturnCtx(x,Q){return Q||{common:x.parent.common,data:x.data,parsedType:Y4(x.data),schemaErrorMap:this._def.errorMap,path:x.path,parent:x.parent}}_processInputParams(x){return{status:new d0,ctx:{common:x.parent.common,data:x.data,parsedType:Y4(x.data),schemaErrorMap:this._def.errorMap,path:x.path,parent:x.parent}}}_parseSync(x){let Q=this._parse(x);if(hx(Q))throw Error("Synchronous parse encountered promise.");return Q}_parseAsync(x){let Q=this._parse(x);return Promise.resolve(Q)}parse(x,Q){let W=this.safeParse(x,Q);if(W.success)return W.data;throw W.error}safeParse(x,Q){let W={common:{issues:[],async:Q?.async??!1,contextualErrorMap:Q?.errorMap},path:Q?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:x,parsedType:Y4(x)},Y=this._parseSync({data:x,path:W.path,parent:W});return Vz(W,Y)}"~validate"(x){let Q={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:x,parsedType:Y4(x)};if(!this["~standard"].async)try{let W=this._parseSync({data:x,path:[],parent:Q});return O4(W)?{value:W.value}:{issues:Q.common.issues}}catch(W){if(W?.message?.toLowerCase()?.includes("encountered"))this["~standard"].async=!0;Q.common={issues:[],async:!0}}return this._parseAsync({data:x,path:[],parent:Q}).then((W)=>O4(W)?{value:W.value}:{issues:Q.common.issues})}async parseAsync(x,Q){let W=await this.safeParseAsync(x,Q);if(W.success)return W.data;throw W.error}async safeParseAsync(x,Q){let W={common:{issues:[],contextualErrorMap:Q?.errorMap,async:!0},path:Q?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:x,parsedType:Y4(x)},Y=this._parse({data:x,path:W.path,parent:W}),X=await(hx(Y)?Y:Promise.resolve(Y));return Vz(W,X)}refine(x,Q){let W=(Y)=>{if(typeof Q==="string"||typeof Q>"u")return{message:Q};else if(typeof Q==="function")return Q(Y);else return Q};return this._refinement((Y,X)=>{let J=x(Y),G=()=>X.addIssue({code:I.custom,...W(Y)});if(typeof Promise<"u"&&J instanceof Promise)return J.then(($)=>{if(!$)return G(),!1;else return!0});if(!J)return G(),!1;else return!0})}refinement(x,Q){return this._refinement((W,Y)=>{if(!x(W))return Y.addIssue(typeof Q==="function"?Q(W,Y):Q),!1;else return!0})}_refinement(x){return new y1({schema:this,typeName:E.ZodEffects,effect:{type:"refinement",refinement:x}})}superRefine(x){return this._refinement(x)}constructor(x){this.spa=this.safeParseAsync,this._def=x,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:(Q)=>this["~validate"](Q)}}optional(){return D1.create(this,this._def)}nullable(){return K4.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return m1.create(this)}promise(){return Bx.create(this,this._def)}or(x){return tx.create([this,x],this._def)}and(x){return ex.create(this,x,this._def)}transform(x){return new y1({...g(this._def),schema:this,typeName:E.ZodEffects,effect:{type:"transform",transform:x}})}default(x){let Q=typeof x==="function"?x:()=>x;return new Y8({...g(this._def),innerType:this,defaultValue:Q,typeName:E.ZodDefault})}brand(){return new s9({typeName:E.ZodBranded,type:this,...g(this._def)})}catch(x){let Q=typeof x==="function"?x:()=>x;return new X8({...g(this._def),innerType:this,catchValue:Q,typeName:E.ZodCatch})}describe(x){return new this.constructor({...this._def,description:x})}pipe(x){return H6.create(this,x)}readonly(){return J8.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}var lc=/^c[^\s-]{8,}$/i,nc=/^[0-9a-z]+$/,mc=/^[0-9A-HJKMNP-TV-Z]{26}$/i,fc=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,yc=/^[a-z0-9_-]{21}$/i,gc=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,hc=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,oc=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,ac="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",WQ,dc=/^(?:(?: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])$/,rc=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,sc=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,tc=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,ec=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,xj=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Nz="((\\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])))",Qj=new RegExp(`^${Nz}$`);function Lz(x){let Q="[0-5]\\d";if(x.precision)Q=`${Q}\\.\\d{${x.precision}}`;else if(x.precision==null)Q=`${Q}(\\.\\d+)?`;let W=x.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${Q})${W}`}function Wj(x){return new RegExp(`^${Lz(x)}$`)}function Uz(x){let Q=`${Nz}T${Lz(x)}`,W=[];if(W.push(x.local?"Z?":"Z"),x.offset)W.push("([+-]\\d{2}:?\\d{2})");return Q=`${Q}(${W.join("|")})`,new RegExp(`^${Q}$`)}function Yj(x,Q){if((Q==="v4"||!Q)&&dc.test(x))return!0;if((Q==="v6"||!Q)&&sc.test(x))return!0;return!1}function Xj(x,Q){if(!gc.test(x))return!1;try{let[W]=x.split(".");if(!W)return!1;let Y=W.replace(/-/g,"+").replace(/_/g,"/").padEnd(W.length+(4-W.length%4)%4,"="),X=JSON.parse(atob(Y));if(typeof X!=="object"||X===null)return!1;if("typ"in X&&X?.typ!=="JWT")return!1;if(!X.alg)return!1;if(Q&&X.alg!==Q)return!1;return!0}catch{return!1}}function Jj(x,Q){if((Q==="v4"||!Q)&&rc.test(x))return!0;if((Q==="v6"||!Q)&&tc.test(x))return!0;return!1}class n1 extends r{_parse(x){if(this._def.coerce)x.data=String(x.data);if(this._getType(x)!==P.string){let X=this._getOrReturnCtx(x);return Z(X,{code:I.invalid_type,expected:P.string,received:X.parsedType}),l}let W=new d0,Y=void 0;for(let X of this._def.checks)if(X.kind==="min"){if(x.data.length<X.value)Y=this._getOrReturnCtx(x,Y),Z(Y,{code:I.too_small,minimum:X.value,type:"string",inclusive:!0,exact:!1,message:X.message}),W.dirty()}else if(X.kind==="max"){if(x.data.length>X.value)Y=this._getOrReturnCtx(x,Y),Z(Y,{code:I.too_big,maximum:X.value,type:"string",inclusive:!0,exact:!1,message:X.message}),W.dirty()}else if(X.kind==="length"){let J=x.data.length>X.value,G=x.data.length<X.value;if(J||G){if(Y=this._getOrReturnCtx(x,Y),J)Z(Y,{code:I.too_big,maximum:X.value,type:"string",inclusive:!0,exact:!0,message:X.message});else if(G)Z(Y,{code:I.too_small,minimum:X.value,type:"string",inclusive:!0,exact:!0,message:X.message});W.dirty()}}else if(X.kind==="email"){if(!oc.test(x.data))Y=this._getOrReturnCtx(x,Y),Z(Y,{validation:"email",code:I.invalid_string,message:X.message}),W.dirty()}else if(X.kind==="emoji"){if(!WQ)WQ=new RegExp(ac,"u");if(!WQ.test(x.data))Y=this._getOrReturnCtx(x,Y),Z(Y,{validation:"emoji",code:I.invalid_string,message:X.message}),W.dirty()}else if(X.kind==="uuid"){if(!fc.test(x.data))Y=this._getOrReturnCtx(x,Y),Z(Y,{validation:"uuid",code:I.invalid_string,message:X.message}),W.dirty()}else if(X.kind==="nanoid"){if(!yc.test(x.data))Y=this._getOrReturnCtx(x,Y),Z(Y,{validation:"nanoid",code:I.invalid_string,message:X.message}),W.dirty()}else if(X.kind==="cuid"){if(!lc.test(x.data))Y=this._getOrReturnCtx(x,Y),Z(Y,{validation:"cuid",code:I.invalid_string,message:X.message}),W.dirty()}else if(X.kind==="cuid2"){if(!nc.test(x.data))Y=this._getOrReturnCtx(x,Y),Z(Y,{validation:"cuid2",code:I.invalid_string,message:X.message}),W.dirty()}else if(X.kind==="ulid"){if(!mc.test(x.data))Y=this._getOrReturnCtx(x,Y),Z(Y,{validation:"ulid",code:I.invalid_string,message:X.message}),W.dirty()}else if(X.kind==="url")try{new URL(x.data)}catch{Y=this._getOrReturnCtx(x,Y),Z(Y,{validation:"url",code:I.invalid_string,message:X.message}),W.dirty()}else if(X.kind==="regex"){if(X.regex.lastIndex=0,!X.regex.test(x.data))Y=this._getOrReturnCtx(x,Y),Z(Y,{validation:"regex",code:I.invalid_string,message:X.message}),W.dirty()}else if(X.kind==="trim")x.data=x.data.trim();else if(X.kind==="includes"){if(!x.data.includes(X.value,X.position))Y=this._getOrReturnCtx(x,Y),Z(Y,{code:I.invalid_string,validation:{includes:X.value,position:X.position},message:X.message}),W.dirty()}else if(X.kind==="toLowerCase")x.data=x.data.toLowerCase();else if(X.kind==="toUpperCase")x.data=x.data.toUpperCase();else if(X.kind==="startsWith"){if(!x.data.startsWith(X.value))Y=this._getOrReturnCtx(x,Y),Z(Y,{code:I.invalid_string,validation:{startsWith:X.value},message:X.message}),W.dirty()}else if(X.kind==="endsWith"){if(!x.data.endsWith(X.value))Y=this._getOrReturnCtx(x,Y),Z(Y,{code:I.invalid_string,validation:{endsWith:X.value},message:X.message}),W.dirty()}else if(X.kind==="datetime"){if(!Uz(X).test(x.data))Y=this._getOrReturnCtx(x,Y),Z(Y,{code:I.invalid_string,validation:"datetime",message:X.message}),W.dirty()}else if(X.kind==="date"){if(!Qj.test(x.data))Y=this._getOrReturnCtx(x,Y),Z(Y,{code:I.invalid_string,validation:"date",message:X.message}),W.dirty()}else if(X.kind==="time"){if(!Wj(X).test(x.data))Y=this._getOrReturnCtx(x,Y),Z(Y,{code:I.invalid_string,validation:"time",message:X.message}),W.dirty()}else if(X.kind==="duration"){if(!hc.test(x.data))Y=this._getOrReturnCtx(x,Y),Z(Y,{validation:"duration",code:I.invalid_string,message:X.message}),W.dirty()}else if(X.kind==="ip"){if(!Yj(x.data,X.version))Y=this._getOrReturnCtx(x,Y),Z(Y,{validation:"ip",code:I.invalid_string,message:X.message}),W.dirty()}else if(X.kind==="jwt"){if(!Xj(x.data,X.alg))Y=this._getOrReturnCtx(x,Y),Z(Y,{validation:"jwt",code:I.invalid_string,message:X.message}),W.dirty()}else if(X.kind==="cidr"){if(!Jj(x.data,X.version))Y=this._getOrReturnCtx(x,Y),Z(Y,{validation:"cidr",code:I.invalid_string,message:X.message}),W.dirty()}else if(X.kind==="base64"){if(!ec.test(x.data))Y=this._getOrReturnCtx(x,Y),Z(Y,{validation:"base64",code:I.invalid_string,message:X.message}),W.dirty()}else if(X.kind==="base64url"){if(!xj.test(x.data))Y=this._getOrReturnCtx(x,Y),Z(Y,{validation:"base64url",code:I.invalid_string,message:X.message}),W.dirty()}else e.assertNever(X);return{status:W.value,value:x.data}}_regex(x,Q,W){return this.refinement((Y)=>x.test(Y),{validation:Q,code:I.invalid_string,...T.errToObj(W)})}_addCheck(x){return new n1({...this._def,checks:[...this._def.checks,x]})}email(x){return this._addCheck({kind:"email",...T.errToObj(x)})}url(x){return this._addCheck({kind:"url",...T.errToObj(x)})}emoji(x){return this._addCheck({kind:"emoji",...T.errToObj(x)})}uuid(x){return this._addCheck({kind:"uuid",...T.errToObj(x)})}nanoid(x){return this._addCheck({kind:"nanoid",...T.errToObj(x)})}cuid(x){return this._addCheck({kind:"cuid",...T.errToObj(x)})}cuid2(x){return this._addCheck({kind:"cuid2",...T.errToObj(x)})}ulid(x){return this._addCheck({kind:"ulid",...T.errToObj(x)})}base64(x){return this._addCheck({kind:"base64",...T.errToObj(x)})}base64url(x){return this._addCheck({kind:"base64url",...T.errToObj(x)})}jwt(x){return this._addCheck({kind:"jwt",...T.errToObj(x)})}ip(x){return this._addCheck({kind:"ip",...T.errToObj(x)})}cidr(x){return this._addCheck({kind:"cidr",...T.errToObj(x)})}datetime(x){if(typeof x==="string")return this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:x});return this._addCheck({kind:"datetime",precision:typeof x?.precision>"u"?null:x?.precision,offset:x?.offset??!1,local:x?.local??!1,...T.errToObj(x?.message)})}date(x){return this._addCheck({kind:"date",message:x})}time(x){if(typeof x==="string")return this._addCheck({kind:"time",precision:null,message:x});return this._addCheck({kind:"time",precision:typeof x?.precision>"u"?null:x?.precision,...T.errToObj(x?.message)})}duration(x){return this._addCheck({kind:"duration",...T.errToObj(x)})}regex(x,Q){return this._addCheck({kind:"regex",regex:x,...T.errToObj(Q)})}includes(x,Q){return this._addCheck({kind:"includes",value:x,position:Q?.position,...T.errToObj(Q?.message)})}startsWith(x,Q){return this._addCheck({kind:"startsWith",value:x,...T.errToObj(Q)})}endsWith(x,Q){return this._addCheck({kind:"endsWith",value:x,...T.errToObj(Q)})}min(x,Q){return this._addCheck({kind:"min",value:x,...T.errToObj(Q)})}max(x,Q){return this._addCheck({kind:"max",value:x,...T.errToObj(Q)})}length(x,Q){return this._addCheck({kind:"length",value:x,...T.errToObj(Q)})}nonempty(x){return this.min(1,T.errToObj(x))}trim(){return new n1({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new n1({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new n1({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find((x)=>x.kind==="datetime")}get isDate(){return!!this._def.checks.find((x)=>x.kind==="date")}get isTime(){return!!this._def.checks.find((x)=>x.kind==="time")}get isDuration(){return!!this._def.checks.find((x)=>x.kind==="duration")}get isEmail(){return!!this._def.checks.find((x)=>x.kind==="email")}get isURL(){return!!this._def.checks.find((x)=>x.kind==="url")}get isEmoji(){return!!this._def.checks.find((x)=>x.kind==="emoji")}get isUUID(){return!!this._def.checks.find((x)=>x.kind==="uuid")}get isNANOID(){return!!this._def.checks.find((x)=>x.kind==="nanoid")}get isCUID(){return!!this._def.checks.find((x)=>x.kind==="cuid")}get isCUID2(){return!!this._def.checks.find((x)=>x.kind==="cuid2")}get isULID(){return!!this._def.checks.find((x)=>x.kind==="ulid")}get isIP(){return!!this._def.checks.find((x)=>x.kind==="ip")}get isCIDR(){return!!this._def.checks.find((x)=>x.kind==="cidr")}get isBase64(){return!!this._def.checks.find((x)=>x.kind==="base64")}get isBase64url(){return!!this._def.checks.find((x)=>x.kind==="base64url")}get minLength(){let x=null;for(let Q of this._def.checks)if(Q.kind==="min"){if(x===null||Q.value>x)x=Q.value}return x}get maxLength(){let x=null;for(let Q of this._def.checks)if(Q.kind==="max"){if(x===null||Q.value<x)x=Q.value}return x}}n1.create=(x)=>{return new n1({checks:[],typeName:E.ZodString,coerce:x?.coerce??!1,...g(x)})};function Gj(x,Q){let W=(x.toString().split(".")[1]||"").length,Y=(Q.toString().split(".")[1]||"").length,X=W>Y?W:Y,J=Number.parseInt(x.toFixed(X).replace(".","")),G=Number.parseInt(Q.toFixed(X).replace(".",""));return J%G/10**X}class E4 extends r{constructor(){super(...arguments);this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(x){if(this._def.coerce)x.data=Number(x.data);if(this._getType(x)!==P.number){let X=this._getOrReturnCtx(x);return Z(X,{code:I.invalid_type,expected:P.number,received:X.parsedType}),l}let W=void 0,Y=new d0;for(let X of this._def.checks)if(X.kind==="int"){if(!e.isInteger(x.data))W=this._getOrReturnCtx(x,W),Z(W,{code:I.invalid_type,expected:"integer",received:"float",message:X.message}),Y.dirty()}else if(X.kind==="min"){if(X.inclusive?x.data<X.value:x.data<=X.value)W=this._getOrReturnCtx(x,W),Z(W,{code:I.too_small,minimum:X.value,type:"number",inclusive:X.inclusive,exact:!1,message:X.message}),Y.dirty()}else if(X.kind==="max"){if(X.inclusive?x.data>X.value:x.data>=X.value)W=this._getOrReturnCtx(x,W),Z(W,{code:I.too_big,maximum:X.value,type:"number",inclusive:X.inclusive,exact:!1,message:X.message}),Y.dirty()}else if(X.kind==="multipleOf"){if(Gj(x.data,X.value)!==0)W=this._getOrReturnCtx(x,W),Z(W,{code:I.not_multiple_of,multipleOf:X.value,message:X.message}),Y.dirty()}else if(X.kind==="finite"){if(!Number.isFinite(x.data))W=this._getOrReturnCtx(x,W),Z(W,{code:I.not_finite,message:X.message}),Y.dirty()}else e.assertNever(X);return{status:Y.value,value:x.data}}gte(x,Q){return this.setLimit("min",x,!0,T.toString(Q))}gt(x,Q){return this.setLimit("min",x,!1,T.toString(Q))}lte(x,Q){return this.setLimit("max",x,!0,T.toString(Q))}lt(x,Q){return this.setLimit("max",x,!1,T.toString(Q))}setLimit(x,Q,W,Y){return new E4({...this._def,checks:[...this._def.checks,{kind:x,value:Q,inclusive:W,message:T.toString(Y)}]})}_addCheck(x){return new E4({...this._def,checks:[...this._def.checks,x]})}int(x){return this._addCheck({kind:"int",message:T.toString(x)})}positive(x){return this._addCheck({kind:"min",value:0,inclusive:!1,message:T.toString(x)})}negative(x){return this._addCheck({kind:"max",value:0,inclusive:!1,message:T.toString(x)})}nonpositive(x){return this._addCheck({kind:"max",value:0,inclusive:!0,message:T.toString(x)})}nonnegative(x){return this._addCheck({kind:"min",value:0,inclusive:!0,message:T.toString(x)})}multipleOf(x,Q){return this._addCheck({kind:"multipleOf",value:x,message:T.toString(Q)})}finite(x){return this._addCheck({kind:"finite",message:T.toString(x)})}safe(x){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:T.toString(x)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:T.toString(x)})}get minValue(){let x=null;for(let Q of this._def.checks)if(Q.kind==="min"){if(x===null||Q.value>x)x=Q.value}return x}get maxValue(){let x=null;for(let Q of this._def.checks)if(Q.kind==="max"){if(x===null||Q.value<x)x=Q.value}return x}get isInt(){return!!this._def.checks.find((x)=>x.kind==="int"||x.kind==="multipleOf"&&e.isInteger(x.value))}get isFinite(){let x=null,Q=null;for(let W of this._def.checks)if(W.kind==="finite"||W.kind==="int"||W.kind==="multipleOf")return!0;else if(W.kind==="min"){if(Q===null||W.value>Q)Q=W.value}else if(W.kind==="max"){if(x===null||W.value<x)x=W.value}return Number.isFinite(Q)&&Number.isFinite(x)}}E4.create=(x)=>{return new E4({checks:[],typeName:E.ZodNumber,coerce:x?.coerce||!1,...g(x)})};class S4 extends r{constructor(){super(...arguments);this.min=this.gte,this.max=this.lte}_parse(x){if(this._def.coerce)try{x.data=BigInt(x.data)}catch{return this._getInvalidInput(x)}if(this._getType(x)!==P.bigint)return this._getInvalidInput(x);let W=void 0,Y=new d0;for(let X of this._def.checks)if(X.kind==="min"){if(X.inclusive?x.data<X.value:x.data<=X.value)W=this._getOrReturnCtx(x,W),Z(W,{code:I.too_small,type:"bigint",minimum:X.value,inclusive:X.inclusive,message:X.message}),Y.dirty()}else if(X.kind==="max"){if(X.inclusive?x.data>X.value:x.data>=X.value)W=this._getOrReturnCtx(x,W),Z(W,{code:I.too_big,type:"bigint",maximum:X.value,inclusive:X.inclusive,message:X.message}),Y.dirty()}else if(X.kind==="multipleOf"){if(x.data%X.value!==BigInt(0))W=this._getOrReturnCtx(x,W),Z(W,{code:I.not_multiple_of,multipleOf:X.value,message:X.message}),Y.dirty()}else e.assertNever(X);return{status:Y.value,value:x.data}}_getInvalidInput(x){let Q=this._getOrReturnCtx(x);return Z(Q,{code:I.invalid_type,expected:P.bigint,received:Q.parsedType}),l}gte(x,Q){return this.setLimit("min",x,!0,T.toString(Q))}gt(x,Q){return this.setLimit("min",x,!1,T.toString(Q))}lte(x,Q){return this.setLimit("max",x,!0,T.toString(Q))}lt(x,Q){return this.setLimit("max",x,!1,T.toString(Q))}setLimit(x,Q,W,Y){return new S4({...this._def,checks:[...this._def.checks,{kind:x,value:Q,inclusive:W,message:T.toString(Y)}]})}_addCheck(x){return new S4({...this._def,checks:[...this._def.checks,x]})}positive(x){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:T.toString(x)})}negative(x){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:T.toString(x)})}nonpositive(x){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:T.toString(x)})}nonnegative(x){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:T.toString(x)})}multipleOf(x,Q){return this._addCheck({kind:"multipleOf",value:x,message:T.toString(Q)})}get minValue(){let x=null;for(let Q of this._def.checks)if(Q.kind==="min"){if(x===null||Q.value>x)x=Q.value}return x}get maxValue(){let x=null;for(let Q of this._def.checks)if(Q.kind==="max"){if(x===null||Q.value<x)x=Q.value}return x}}S4.create=(x)=>{return new S4({checks:[],typeName:E.ZodBigInt,coerce:x?.coerce??!1,...g(x)})};class dx extends r{_parse(x){if(this._def.coerce)x.data=Boolean(x.data);if(this._getType(x)!==P.boolean){let W=this._getOrReturnCtx(x);return Z(W,{code:I.invalid_type,expected:P.boolean,received:W.parsedType}),l}return Y1(x.data)}}dx.create=(x)=>{return new dx({typeName:E.ZodBoolean,coerce:x?.coerce||!1,...g(x)})};class bx extends r{_parse(x){if(this._def.coerce)x.data=new Date(x.data);if(this._getType(x)!==P.date){let X=this._getOrReturnCtx(x);return Z(X,{code:I.invalid_type,expected:P.date,received:X.parsedType}),l}if(Number.isNaN(x.data.getTime())){let X=this._getOrReturnCtx(x);return Z(X,{code:I.invalid_date}),l}let W=new d0,Y=void 0;for(let X of this._def.checks)if(X.kind==="min"){if(x.data.getTime()<X.value)Y=this._getOrReturnCtx(x,Y),Z(Y,{code:I.too_small,message:X.message,inclusive:!0,exact:!1,minimum:X.value,type:"date"}),W.dirty()}else if(X.kind==="max"){if(x.data.getTime()>X.value)Y=this._getOrReturnCtx(x,Y),Z(Y,{code:I.too_big,message:X.message,inclusive:!0,exact:!1,maximum:X.value,type:"date"}),W.dirty()}else e.assertNever(X);return{status:W.value,value:new Date(x.data.getTime())}}_addCheck(x){return new bx({...this._def,checks:[...this._def.checks,x]})}min(x,Q){return this._addCheck({kind:"min",value:x.getTime(),message:T.toString(Q)})}max(x,Q){return this._addCheck({kind:"max",value:x.getTime(),message:T.toString(Q)})}get minDate(){let x=null;for(let Q of this._def.checks)if(Q.kind==="min"){if(x===null||Q.value>x)x=Q.value}return x!=null?new Date(x):null}get maxDate(){let x=null;for(let Q of this._def.checks)if(Q.kind==="max"){if(x===null||Q.value<x)x=Q.value}return x!=null?new Date(x):null}}bx.create=(x)=>{return new bx({checks:[],coerce:x?.coerce||!1,typeName:E.ZodDate,...g(x)})};class z6 extends r{_parse(x){if(this._getType(x)!==P.symbol){let W=this._getOrReturnCtx(x);return Z(W,{code:I.invalid_type,expected:P.symbol,received:W.parsedType}),l}return Y1(x.data)}}z6.create=(x)=>{return new z6({typeName:E.ZodSymbol,...g(x)})};class rx extends r{_parse(x){if(this._getType(x)!==P.undefined){let W=this._getOrReturnCtx(x);return Z(W,{code:I.invalid_type,expected:P.undefined,received:W.parsedType}),l}return Y1(x.data)}}rx.create=(x)=>{return new rx({typeName:E.ZodUndefined,...g(x)})};class sx extends r{_parse(x){if(this._getType(x)!==P.null){let W=this._getOrReturnCtx(x);return Z(W,{code:I.invalid_type,expected:P.null,received:W.parsedType}),l}return Y1(x.data)}}sx.create=(x)=>{return new sx({typeName:E.ZodNull,...g(x)})};class zx extends r{constructor(){super(...arguments);this._any=!0}_parse(x){return Y1(x.data)}}zx.create=(x)=>{return new zx({typeName:E.ZodAny,...g(x)})};class I4 extends r{constructor(){super(...arguments);this._unknown=!0}_parse(x){return Y1(x.data)}}I4.create=(x)=>{return new I4({typeName:E.ZodUnknown,...g(x)})};class X4 extends r{_parse(x){let Q=this._getOrReturnCtx(x);return Z(Q,{code:I.invalid_type,expected:P.never,received:Q.parsedType}),l}}X4.create=(x)=>{return new X4({typeName:E.ZodNever,...g(x)})};class v6 extends r{_parse(x){if(this._getType(x)!==P.undefined){let W=this._getOrReturnCtx(x);return Z(W,{code:I.invalid_type,expected:P.void,received:W.parsedType}),l}return Y1(x.data)}}v6.create=(x)=>{return new v6({typeName:E.ZodVoid,...g(x)})};class m1 extends r{_parse(x){let{ctx:Q,status:W}=this._processInputParams(x),Y=this._def;if(Q.parsedType!==P.array)return Z(Q,{code:I.invalid_type,expected:P.array,received:Q.parsedType}),l;if(Y.exactLength!==null){let J=Q.data.length>Y.exactLength.value,G=Q.data.length<Y.exactLength.value;if(J||G)Z(Q,{code:J?I.too_big:I.too_small,minimum:G?Y.exactLength.value:void 0,maximum:J?Y.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:Y.exactLength.message}),W.dirty()}if(Y.minLength!==null){if(Q.data.length<Y.minLength.value)Z(Q,{code:I.too_small,minimum:Y.minLength.value,type:"array",inclusive:!0,exact:!1,message:Y.minLength.message}),W.dirty()}if(Y.maxLength!==null){if(Q.data.length>Y.maxLength.value)Z(Q,{code:I.too_big,maximum:Y.maxLength.value,type:"array",inclusive:!0,exact:!1,message:Y.maxLength.message}),W.dirty()}if(Q.common.async)return Promise.all([...Q.data].map((J,G)=>{return Y.type._parseAsync(new f1(Q,J,Q.path,G))})).then((J)=>{return d0.mergeArray(W,J)});let X=[...Q.data].map((J,G)=>{return Y.type._parseSync(new f1(Q,J,Q.path,G))});return d0.mergeArray(W,X)}get element(){return this._def.type}min(x,Q){return new m1({...this._def,minLength:{value:x,message:T.toString(Q)}})}max(x,Q){return new m1({...this._def,maxLength:{value:x,message:T.toString(Q)}})}length(x,Q){return new m1({...this._def,exactLength:{value:x,message:T.toString(Q)}})}nonempty(x){return this.min(1,x)}}m1.create=(x,Q)=>{return new m1({type:x,minLength:null,maxLength:null,exactLength:null,typeName:E.ZodArray,...g(Q)})};function ox(x){if(x instanceof E0){let Q={};for(let W in x.shape){let Y=x.shape[W];Q[W]=D1.create(ox(Y))}return new E0({...x._def,shape:()=>Q})}else if(x instanceof m1)return new m1({...x._def,type:ox(x.element)});else if(x instanceof D1)return D1.create(ox(x.unwrap()));else if(x instanceof K4)return K4.create(ox(x.unwrap()));else if(x instanceof J4)return J4.create(x.items.map((Q)=>ox(Q)));else return x}class E0 extends r{constructor(){super(...arguments);this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let x=this._def.shape(),Q=e.objectKeys(x);return this._cached={shape:x,keys:Q},this._cached}_parse(x){if(this._getType(x)!==P.object){let b=this._getOrReturnCtx(x);return Z(b,{code:I.invalid_type,expected:P.object,received:b.parsedType}),l}let{status:W,ctx:Y}=this._processInputParams(x),{shape:X,keys:J}=this._getCached(),G=[];if(!(this._def.catchall instanceof X4&&this._def.unknownKeys==="strip")){for(let b in Y.data)if(!J.includes(b))G.push(b)}let $=[];for(let b of J){let z=X[b],v=Y.data[b];$.push({key:{status:"valid",value:b},value:z._parse(new f1(Y,v,Y.path,b)),alwaysSet:b in Y.data})}if(this._def.catchall instanceof X4){let b=this._def.unknownKeys;if(b==="passthrough")for(let z of G)$.push({key:{status:"valid",value:z},value:{status:"valid",value:Y.data[z]}});else if(b==="strict"){if(G.length>0)Z(Y,{code:I.unrecognized_keys,keys:G}),W.dirty()}else if(b==="strip");else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let b=this._def.catchall;for(let z of G){let v=Y.data[z];$.push({key:{status:"valid",value:z},value:b._parse(new f1(Y,v,Y.path,z)),alwaysSet:z in Y.data})}}if(Y.common.async)return Promise.resolve().then(async()=>{let b=[];for(let z of $){let v=await z.key,B=await z.value;b.push({key:v,value:B,alwaysSet:z.alwaysSet})}return b}).then((b)=>{return d0.mergeObjectSync(W,b)});else return d0.mergeObjectSync(W,$)}get shape(){return this._def.shape()}strict(x){return T.errToObj,new E0({...this._def,unknownKeys:"strict",...x!==void 0?{errorMap:(Q,W)=>{let Y=this._def.errorMap?.(Q,W).message??W.defaultError;if(Q.code==="unrecognized_keys")return{message:T.errToObj(x).message??Y};return{message:Y}}}:{}})}strip(){return new E0({...this._def,unknownKeys:"strip"})}passthrough(){return new E0({...this._def,unknownKeys:"passthrough"})}extend(x){return new E0({...this._def,shape:()=>({...this._def.shape(),...x})})}merge(x){return new E0({unknownKeys:x._def.unknownKeys,catchall:x._def.catchall,shape:()=>({...this._def.shape(),...x._def.shape()}),typeName:E.ZodObject})}setKey(x,Q){return this.augment({[x]:Q})}catchall(x){return new E0({...this._def,catchall:x})}pick(x){let Q={};for(let W of e.objectKeys(x))if(x[W]&&this.shape[W])Q[W]=this.shape[W];return new E0({...this._def,shape:()=>Q})}omit(x){let Q={};for(let W of e.objectKeys(this.shape))if(!x[W])Q[W]=this.shape[W];return new E0({...this._def,shape:()=>Q})}deepPartial(){return ox(this)}partial(x){let Q={};for(let W of e.objectKeys(this.shape)){let Y=this.shape[W];if(x&&!x[W])Q[W]=Y;else Q[W]=Y.optional()}return new E0({...this._def,shape:()=>Q})}required(x){let Q={};for(let W of e.objectKeys(this.shape))if(x&&!x[W])Q[W]=this.shape[W];else{let X=this.shape[W];while(X instanceof D1)X=X._def.innerType;Q[W]=X}return new E0({...this._def,shape:()=>Q})}keyof(){return Fz(e.objectKeys(this.shape))}}E0.create=(x,Q)=>{return new E0({shape:()=>x,unknownKeys:"strip",catchall:X4.create(),typeName:E.ZodObject,...g(Q)})};E0.strictCreate=(x,Q)=>{return new E0({shape:()=>x,unknownKeys:"strict",catchall:X4.create(),typeName:E.ZodObject,...g(Q)})};E0.lazycreate=(x,Q)=>{return new E0({shape:x,unknownKeys:"strip",catchall:X4.create(),typeName:E.ZodObject,...g(Q)})};class tx extends r{_parse(x){let{ctx:Q}=this._processInputParams(x),W=this._def.options;function Y(X){for(let G of X)if(G.result.status==="valid")return G.result;for(let G of X)if(G.result.status==="dirty")return Q.common.issues.push(...G.ctx.common.issues),G.result;let J=X.map((G)=>new K1(G.ctx.common.issues));return Z(Q,{code:I.invalid_union,unionErrors:J}),l}if(Q.common.async)return Promise.all(W.map(async(X)=>{let J={...Q,common:{...Q.common,issues:[]},parent:null};return{result:await X._parseAsync({data:Q.data,path:Q.path,parent:J}),ctx:J}})).then(Y);else{let X=void 0,J=[];for(let $ of W){let b={...Q,common:{...Q.common,issues:[]},parent:null},z=$._parseSync({data:Q.data,path:Q.path,parent:b});if(z.status==="valid")return z;else if(z.status==="dirty"&&!X)X={result:z,ctx:b};if(b.common.issues.length)J.push(b.common.issues)}if(X)return Q.common.issues.push(...X.ctx.common.issues),X.result;let G=J.map(($)=>new K1($));return Z(Q,{code:I.invalid_union,unionErrors:G}),l}}get options(){return this._def.options}}tx.create=(x,Q)=>{return new tx({options:x,typeName:E.ZodUnion,...g(Q)})};var w4=(x)=>{if(x instanceof x8)return w4(x.schema);else if(x instanceof y1)return w4(x.innerType());else if(x instanceof Q8)return[x.value];else if(x instanceof P4)return x.options;else if(x instanceof W8)return e.objectValues(x.enum);else if(x instanceof Y8)return w4(x._def.innerType);else if(x instanceof rx)return[void 0];else if(x instanceof sx)return[null];else if(x instanceof D1)return[void 0,...w4(x.unwrap())];else if(x instanceof K4)return[null,...w4(x.unwrap())];else if(x instanceof s9)return w4(x.unwrap());else if(x instanceof J8)return w4(x.unwrap());else if(x instanceof X8)return w4(x._def.innerType);else return[]};class r9 extends r{_parse(x){let{ctx:Q}=this._processInputParams(x);if(Q.parsedType!==P.object)return Z(Q,{code:I.invalid_type,expected:P.object,received:Q.parsedType}),l;let W=this.discriminator,Y=Q.data[W],X=this.optionsMap.get(Y);if(!X)return Z(Q,{code:I.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[W]}),l;if(Q.common.async)return X._parseAsync({data:Q.data,path:Q.path,parent:Q});else return X._parseSync({data:Q.data,path:Q.path,parent:Q})}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(x,Q,W){let Y=new Map;for(let X of Q){let J=w4(X.shape[x]);if(!J.length)throw Error(`A discriminator value for key \`${x}\` could not be extracted from all schema options`);for(let G of J){if(Y.has(G))throw Error(`Discriminator property ${String(x)} has duplicate value ${String(G)}`);Y.set(G,X)}}return new r9({typeName:E.ZodDiscriminatedUnion,discriminator:x,options:Q,optionsMap:Y,...g(W)})}}function YQ(x,Q){let W=Y4(x),Y=Y4(Q);if(x===Q)return{valid:!0,data:x};else if(W===P.object&&Y===P.object){let X=e.objectKeys(Q),J=e.objectKeys(x).filter(($)=>X.indexOf($)!==-1),G={...x,...Q};for(let $ of J){let b=YQ(x[$],Q[$]);if(!b.valid)return{valid:!1};G[$]=b.data}return{valid:!0,data:G}}else if(W===P.array&&Y===P.array){if(x.length!==Q.length)return{valid:!1};let X=[];for(let J=0;J<x.length;J++){let G=x[J],$=Q[J],b=YQ(G,$);if(!b.valid)return{valid:!1};X.push(b.data)}return{valid:!0,data:X}}else if(W===P.date&&Y===P.date&&+x===+Q)return{valid:!0,data:x};else return{valid:!1}}class ex extends r{_parse(x){let{status:Q,ctx:W}=this._processInputParams(x),Y=(X,J)=>{if(a9(X)||a9(J))return l;let G=YQ(X.value,J.value);if(!G.valid)return Z(W,{code:I.invalid_intersection_types}),l;if(d9(X)||d9(J))Q.dirty();return{status:Q.value,value:G.data}};if(W.common.async)return Promise.all([this._def.left._parseAsync({data:W.data,path:W.path,parent:W}),this._def.right._parseAsync({data:W.data,path:W.path,parent:W})]).then(([X,J])=>Y(X,J));else return Y(this._def.left._parseSync({data:W.data,path:W.path,parent:W}),this._def.right._parseSync({data:W.data,path:W.path,parent:W}))}}ex.create=(x,Q,W)=>{return new ex({left:x,right:Q,typeName:E.ZodIntersection,...g(W)})};class J4 extends r{_parse(x){let{status:Q,ctx:W}=this._processInputParams(x);if(W.parsedType!==P.array)return Z(W,{code:I.invalid_type,expected:P.array,received:W.parsedType}),l;if(W.data.length<this._def.items.length)return Z(W,{code:I.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),l;if(!this._def.rest&&W.data.length>this._def.items.length)Z(W,{code:I.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Q.dirty();let X=[...W.data].map((J,G)=>{let $=this._def.items[G]||this._def.rest;if(!$)return null;return $._parse(new f1(W,J,W.path,G))}).filter((J)=>!!J);if(W.common.async)return Promise.all(X).then((J)=>{return d0.mergeArray(Q,J)});else return d0.mergeArray(Q,X)}get items(){return this._def.items}rest(x){return new J4({...this._def,rest:x})}}J4.create=(x,Q)=>{if(!Array.isArray(x))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new J4({items:x,typeName:E.ZodTuple,rest:null,...g(Q)})};class B6 extends r{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(x){let{status:Q,ctx:W}=this._processInputParams(x);if(W.parsedType!==P.object)return Z(W,{code:I.invalid_type,expected:P.object,received:W.parsedType}),l;let Y=[],X=this._def.keyType,J=this._def.valueType;for(let G in W.data)Y.push({key:X._parse(new f1(W,G,W.path,G)),value:J._parse(new f1(W,W.data[G],W.path,G)),alwaysSet:G in W.data});if(W.common.async)return d0.mergeObjectAsync(Q,Y);else return d0.mergeObjectSync(Q,Y)}get element(){return this._def.valueType}static create(x,Q,W){if(Q instanceof r)return new B6({keyType:x,valueType:Q,typeName:E.ZodRecord,...g(W)});return new B6({keyType:n1.create(),valueType:x,typeName:E.ZodRecord,...g(Q)})}}class w6 extends r{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(x){let{status:Q,ctx:W}=this._processInputParams(x);if(W.parsedType!==P.map)return Z(W,{code:I.invalid_type,expected:P.map,received:W.parsedType}),l;let Y=this._def.keyType,X=this._def.valueType,J=[...W.data.entries()].map(([G,$],b)=>{return{key:Y._parse(new f1(W,G,W.path,[b,"key"])),value:X._parse(new f1(W,$,W.path,[b,"value"]))}});if(W.common.async){let G=new Map;return Promise.resolve().then(async()=>{for(let $ of J){let b=await $.key,z=await $.value;if(b.status==="aborted"||z.status==="aborted")return l;if(b.status==="dirty"||z.status==="dirty")Q.dirty();G.set(b.value,z.value)}return{status:Q.value,value:G}})}else{let G=new Map;for(let $ of J){let{key:b,value:z}=$;if(b.status==="aborted"||z.status==="aborted")return l;if(b.status==="dirty"||z.status==="dirty")Q.dirty();G.set(b.value,z.value)}return{status:Q.value,value:G}}}}w6.create=(x,Q,W)=>{return new w6({valueType:Q,keyType:x,typeName:E.ZodMap,...g(W)})};class vx extends r{_parse(x){let{status:Q,ctx:W}=this._processInputParams(x);if(W.parsedType!==P.set)return Z(W,{code:I.invalid_type,expected:P.set,received:W.parsedType}),l;let Y=this._def;if(Y.minSize!==null){if(W.data.size<Y.minSize.value)Z(W,{code:I.too_small,minimum:Y.minSize.value,type:"set",inclusive:!0,exact:!1,message:Y.minSize.message}),Q.dirty()}if(Y.maxSize!==null){if(W.data.size>Y.maxSize.value)Z(W,{code:I.too_big,maximum:Y.maxSize.value,type:"set",inclusive:!0,exact:!1,message:Y.maxSize.message}),Q.dirty()}let X=this._def.valueType;function J($){let b=new Set;for(let z of $){if(z.status==="aborted")return l;if(z.status==="dirty")Q.dirty();b.add(z.value)}return{status:Q.value,value:b}}let G=[...W.data.values()].map(($,b)=>X._parse(new f1(W,$,W.path,b)));if(W.common.async)return Promise.all(G).then(($)=>J($));else return J(G)}min(x,Q){return new vx({...this._def,minSize:{value:x,message:T.toString(Q)}})}max(x,Q){return new vx({...this._def,maxSize:{value:x,message:T.toString(Q)}})}size(x,Q){return this.min(x,Q).max(x,Q)}nonempty(x){return this.min(1,x)}}vx.create=(x,Q)=>{return new vx({valueType:x,minSize:null,maxSize:null,typeName:E.ZodSet,...g(Q)})};class ax extends r{constructor(){super(...arguments);this.validate=this.implement}_parse(x){let{ctx:Q}=this._processInputParams(x);if(Q.parsedType!==P.function)return Z(Q,{code:I.invalid_type,expected:P.function,received:Q.parsedType}),l;function W(G,$){return b6({data:G,path:Q.path,errorMaps:[Q.common.contextualErrorMap,Q.schemaErrorMap,gx(),B4].filter((b)=>!!b),issueData:{code:I.invalid_arguments,argumentsError:$}})}function Y(G,$){return b6({data:G,path:Q.path,errorMaps:[Q.common.contextualErrorMap,Q.schemaErrorMap,gx(),B4].filter((b)=>!!b),issueData:{code:I.invalid_return_type,returnTypeError:$}})}let X={errorMap:Q.common.contextualErrorMap},J=Q.data;if(this._def.returns instanceof Bx){let G=this;return Y1(async function(...$){let b=new K1([]),z=await G._def.args.parseAsync($,X).catch((K)=>{throw b.addIssue(W($,K)),b}),v=await Reflect.apply(J,this,z);return await G._def.returns._def.type.parseAsync(v,X).catch((K)=>{throw b.addIssue(Y(v,K)),b})})}else{let G=this;return Y1(function(...$){let b=G._def.args.safeParse($,X);if(!b.success)throw new K1([W($,b.error)]);let z=Reflect.apply(J,this,b.data),v=G._def.returns.safeParse(z,X);if(!v.success)throw new K1([Y(z,v.error)]);return v.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...x){return new ax({...this._def,args:J4.create(x).rest(I4.create())})}returns(x){return new ax({...this._def,returns:x})}implement(x){return this.parse(x)}strictImplement(x){return this.parse(x)}static create(x,Q,W){return new ax({args:x?x:J4.create([]).rest(I4.create()),returns:Q||I4.create(),typeName:E.ZodFunction,...g(W)})}}class x8 extends r{get schema(){return this._def.getter()}_parse(x){let{ctx:Q}=this._processInputParams(x);return this._def.getter()._parse({data:Q.data,path:Q.path,parent:Q})}}x8.create=(x,Q)=>{return new x8({getter:x,typeName:E.ZodLazy,...g(Q)})};class Q8 extends r{_parse(x){if(x.data!==this._def.value){let Q=this._getOrReturnCtx(x);return Z(Q,{received:Q.data,code:I.invalid_literal,expected:this._def.value}),l}return{status:"valid",value:x.data}}get value(){return this._def.value}}Q8.create=(x,Q)=>{return new Q8({value:x,typeName:E.ZodLiteral,...g(Q)})};function Fz(x,Q){return new P4({values:x,typeName:E.ZodEnum,...g(Q)})}class P4 extends r{_parse(x){if(typeof x.data!=="string"){let Q=this._getOrReturnCtx(x),W=this._def.values;return Z(Q,{expected:e.joinValues(W),received:Q.parsedType,code:I.invalid_type}),l}if(!this._cache)this._cache=new Set(this._def.values);if(!this._cache.has(x.data)){let Q=this._getOrReturnCtx(x),W=this._def.values;return Z(Q,{received:Q.data,code:I.invalid_enum_value,options:W}),l}return Y1(x.data)}get options(){return this._def.values}get enum(){let x={};for(let Q of this._def.values)x[Q]=Q;return x}get Values(){let x={};for(let Q of this._def.values)x[Q]=Q;return x}get Enum(){let x={};for(let Q of this._def.values)x[Q]=Q;return x}extract(x,Q=this._def){return P4.create(x,{...this._def,...Q})}exclude(x,Q=this._def){return P4.create(this.options.filter((W)=>!x.includes(W)),{...this._def,...Q})}}P4.create=Fz;class W8 extends r{_parse(x){let Q=e.getValidEnumValues(this._def.values),W=this._getOrReturnCtx(x);if(W.parsedType!==P.string&&W.parsedType!==P.number){let Y=e.objectValues(Q);return Z(W,{expected:e.joinValues(Y),received:W.parsedType,code:I.invalid_type}),l}if(!this._cache)this._cache=new Set(e.getValidEnumValues(this._def.values));if(!this._cache.has(x.data)){let Y=e.objectValues(Q);return Z(W,{received:W.data,code:I.invalid_enum_value,options:Y}),l}return Y1(x.data)}get enum(){return this._def.values}}W8.create=(x,Q)=>{return new W8({values:x,typeName:E.ZodNativeEnum,...g(Q)})};class Bx extends r{unwrap(){return this._def.type}_parse(x){let{ctx:Q}=this._processInputParams(x);if(Q.parsedType!==P.promise&&Q.common.async===!1)return Z(Q,{code:I.invalid_type,expected:P.promise,received:Q.parsedType}),l;let W=Q.parsedType===P.promise?Q.data:Promise.resolve(Q.data);return Y1(W.then((Y)=>{return this._def.type.parseAsync(Y,{path:Q.path,errorMap:Q.common.contextualErrorMap})}))}}Bx.create=(x,Q)=>{return new Bx({type:x,typeName:E.ZodPromise,...g(Q)})};class y1 extends r{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===E.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(x){let{status:Q,ctx:W}=this._processInputParams(x),Y=this._def.effect||null,X={addIssue:(J)=>{if(Z(W,J),J.fatal)Q.abort();else Q.dirty()},get path(){return W.path}};if(X.addIssue=X.addIssue.bind(X),Y.type==="preprocess"){let J=Y.transform(W.data,X);if(W.common.async)return Promise.resolve(J).then(async(G)=>{if(Q.value==="aborted")return l;let $=await this._def.schema._parseAsync({data:G,path:W.path,parent:W});if($.status==="aborted")return l;if($.status==="dirty")return $x($.value);if(Q.value==="dirty")return $x($.value);return $});else{if(Q.value==="aborted")return l;let G=this._def.schema._parseSync({data:J,path:W.path,parent:W});if(G.status==="aborted")return l;if(G.status==="dirty")return $x(G.value);if(Q.value==="dirty")return $x(G.value);return G}}if(Y.type==="refinement"){let J=(G)=>{let $=Y.refinement(G,X);if(W.common.async)return Promise.resolve($);if($ instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return G};if(W.common.async===!1){let G=this._def.schema._parseSync({data:W.data,path:W.path,parent:W});if(G.status==="aborted")return l;if(G.status==="dirty")Q.dirty();return J(G.value),{status:Q.value,value:G.value}}else return this._def.schema._parseAsync({data:W.data,path:W.path,parent:W}).then((G)=>{if(G.status==="aborted")return l;if(G.status==="dirty")Q.dirty();return J(G.value).then(()=>{return{status:Q.value,value:G.value}})})}if(Y.type==="transform")if(W.common.async===!1){let J=this._def.schema._parseSync({data:W.data,path:W.path,parent:W});if(!O4(J))return l;let G=Y.transform(J.value,X);if(G instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:Q.value,value:G}}else return this._def.schema._parseAsync({data:W.data,path:W.path,parent:W}).then((J)=>{if(!O4(J))return l;return Promise.resolve(Y.transform(J.value,X)).then((G)=>({status:Q.value,value:G}))});e.assertNever(Y)}}y1.create=(x,Q,W)=>{return new y1({schema:x,typeName:E.ZodEffects,effect:Q,...g(W)})};y1.createWithPreprocess=(x,Q,W)=>{return new y1({schema:Q,effect:{type:"preprocess",transform:x},typeName:E.ZodEffects,...g(W)})};class D1 extends r{_parse(x){if(this._getType(x)===P.undefined)return Y1(void 0);return this._def.innerType._parse(x)}unwrap(){return this._def.innerType}}D1.create=(x,Q)=>{return new D1({innerType:x,typeName:E.ZodOptional,...g(Q)})};class K4 extends r{_parse(x){if(this._getType(x)===P.null)return Y1(null);return this._def.innerType._parse(x)}unwrap(){return this._def.innerType}}K4.create=(x,Q)=>{return new K4({innerType:x,typeName:E.ZodNullable,...g(Q)})};class Y8 extends r{_parse(x){let{ctx:Q}=this._processInputParams(x),W=Q.data;if(Q.parsedType===P.undefined)W=this._def.defaultValue();return this._def.innerType._parse({data:W,path:Q.path,parent:Q})}removeDefault(){return this._def.innerType}}Y8.create=(x,Q)=>{return new Y8({innerType:x,typeName:E.ZodDefault,defaultValue:typeof Q.default==="function"?Q.default:()=>Q.default,...g(Q)})};class X8 extends r{_parse(x){let{ctx:Q}=this._processInputParams(x),W={...Q,common:{...Q.common,issues:[]}},Y=this._def.innerType._parse({data:W.data,path:W.path,parent:{...W}});if(hx(Y))return Y.then((X)=>{return{status:"valid",value:X.status==="valid"?X.value:this._def.catchValue({get error(){return new K1(W.common.issues)},input:W.data})}});else return{status:"valid",value:Y.status==="valid"?Y.value:this._def.catchValue({get error(){return new K1(W.common.issues)},input:W.data})}}removeCatch(){return this._def.innerType}}X8.create=(x,Q)=>{return new X8({innerType:x,typeName:E.ZodCatch,catchValue:typeof Q.catch==="function"?Q.catch:()=>Q.catch,...g(Q)})};class K6 extends r{_parse(x){if(this._getType(x)!==P.nan){let W=this._getOrReturnCtx(x);return Z(W,{code:I.invalid_type,expected:P.nan,received:W.parsedType}),l}return{status:"valid",value:x.data}}}K6.create=(x)=>{return new K6({typeName:E.ZodNaN,...g(x)})};var $j=Symbol("zod_brand");class s9 extends r{_parse(x){let{ctx:Q}=this._processInputParams(x),W=Q.data;return this._def.type._parse({data:W,path:Q.path,parent:Q})}unwrap(){return this._def.type}}class H6 extends r{_parse(x){let{status:Q,ctx:W}=this._processInputParams(x);if(W.common.async)return(async()=>{let X=await this._def.in._parseAsync({data:W.data,path:W.path,parent:W});if(X.status==="aborted")return l;if(X.status==="dirty")return Q.dirty(),$x(X.value);else return this._def.out._parseAsync({data:X.value,path:W.path,parent:W})})();else{let Y=this._def.in._parseSync({data:W.data,path:W.path,parent:W});if(Y.status==="aborted")return l;if(Y.status==="dirty")return Q.dirty(),{status:"dirty",value:Y.value};else return this._def.out._parseSync({data:Y.value,path:W.path,parent:W})}}static create(x,Q){return new H6({in:x,out:Q,typeName:E.ZodPipeline})}}class J8 extends r{_parse(x){let Q=this._def.innerType._parse(x),W=(Y)=>{if(O4(Y))Y.value=Object.freeze(Y.value);return Y};return hx(Q)?Q.then((Y)=>W(Y)):W(Q)}unwrap(){return this._def.innerType}}J8.create=(x,Q)=>{return new J8({innerType:x,typeName:E.ZodReadonly,...g(Q)})};function qz(x,Q){let W=typeof x==="function"?x(Q):typeof x==="string"?{message:x}:x;return typeof W==="string"?{message:W}:W}function Mz(x,Q={},W){if(x)return zx.create().superRefine((Y,X)=>{let J=x(Y);if(J instanceof Promise)return J.then((G)=>{if(!G){let $=qz(Q,Y),b=$.fatal??W??!0;X.addIssue({code:"custom",...$,fatal:b})}});if(!J){let G=qz(Q,Y),$=G.fatal??W??!0;X.addIssue({code:"custom",...G,fatal:$})}return});return zx.create()}var bj={object:E0.lazycreate},E;(function(x){x.ZodString="ZodString",x.ZodNumber="ZodNumber",x.ZodNaN="ZodNaN",x.ZodBigInt="ZodBigInt",x.ZodBoolean="ZodBoolean",x.ZodDate="ZodDate",x.ZodSymbol="ZodSymbol",x.ZodUndefined="ZodUndefined",x.ZodNull="ZodNull",x.ZodAny="ZodAny",x.ZodUnknown="ZodUnknown",x.ZodNever="ZodNever",x.ZodVoid="ZodVoid",x.ZodArray="ZodArray",x.ZodObject="ZodObject",x.ZodUnion="ZodUnion",x.ZodDiscriminatedUnion="ZodDiscriminatedUnion",x.ZodIntersection="ZodIntersection",x.ZodTuple="ZodTuple",x.ZodRecord="ZodRecord",x.ZodMap="ZodMap",x.ZodSet="ZodSet",x.ZodFunction="ZodFunction",x.ZodLazy="ZodLazy",x.ZodLiteral="ZodLiteral",x.ZodEnum="ZodEnum",x.ZodEffects="ZodEffects",x.ZodNativeEnum="ZodNativeEnum",x.ZodOptional="ZodOptional",x.ZodNullable="ZodNullable",x.ZodDefault="ZodDefault",x.ZodCatch="ZodCatch",x.ZodPromise="ZodPromise",x.ZodBranded="ZodBranded",x.ZodPipeline="ZodPipeline",x.ZodReadonly="ZodReadonly"})(E||(E={}));var zj=(x,Q={message:`Input not instance of ${x.name}`})=>Mz((W)=>W instanceof x,Q),Dz=n1.create,cz=E4.create,vj=K6.create,Bj=S4.create,jz=dx.create,wj=bx.create,Kj=z6.create,Hj=rx.create,Vj=sx.create,qj=zx.create,Nj=I4.create,Lj=X4.create,Uj=v6.create,Fj=m1.create,XQ=E0.create,Mj=E0.strictCreate,Dj=tx.create,cj=r9.create,jj=ex.create,Aj=J4.create,Oj=B6.create,Ij=w6.create,Ej=vx.create,Sj=ax.create,Pj=x8.create,Rj=Q8.create,Zj=P4.create,ij=W8.create,Cj=Bx.create,Tj=y1.create,kj=D1.create,_j=K4.create,uj=y1.createWithPreprocess,pj=H6.create,lj=()=>Dz().optional(),nj=()=>cz().optional(),mj=()=>jz().optional(),fj={string:(x)=>n1.create({...x,coerce:!0}),number:(x)=>E4.create({...x,coerce:!0}),boolean:(x)=>dx.create({...x,coerce:!0}),bigint:(x)=>S4.create({...x,coerce:!0}),date:(x)=>bx.create({...x,coerce:!0})};var yj=l;var gj=Object.freeze({status:"aborted"});function j(x,Q,W){function Y($,b){var z;Object.defineProperty($,"_zod",{value:$._zod??{},enumerable:!1}),(z=$._zod).traits??(z.traits=new Set),$._zod.traits.add(x),Q($,b);for(let v in G.prototype)if(!(v in $))Object.defineProperty($,v,{value:G.prototype[v].bind($)});$._zod.constr=G,$._zod.def=b}let X=W?.Parent??Object;class J extends X{}Object.defineProperty(J,"name",{value:x});function G($){var b;let z=W?.Parent?new J:this;Y(z,$),(b=z._zod).deferred??(b.deferred=[]);for(let v of z._zod.deferred)v();return z}return Object.defineProperty(G,"init",{value:Y}),Object.defineProperty(G,Symbol.hasInstance,{value:($)=>{if(W?.Parent&&$ instanceof W.Parent)return!0;return $?._zod?.traits?.has(x)}}),Object.defineProperty(G,"name",{value:x}),G}var hj=Symbol("zod_brand");class R4 extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}var t9={};function c1(x){if(x)Object.assign(t9,x);return t9}var Q0={};i8(Q0,{unwrapMessage:()=>V6,stringifyPrimitive:()=>Q7,required:()=>zA,randomString:()=>xA,propertyKeyTypes:()=>vQ,promiseAllObject:()=>ej,primitiveTypes:()=>Az,prefixIssues:()=>G4,pick:()=>XA,partial:()=>bA,optionalKeys:()=>BQ,omit:()=>JA,numKeys:()=>QA,nullish:()=>L6,normalizeParams:()=>n,merge:()=>$A,jsonStringifyReplacer:()=>GQ,joinValues:()=>e9,issue:()=>KQ,isPlainObject:()=>$8,isObject:()=>G8,getSizableOrigin:()=>Iz,getParsedType:()=>WA,getLengthableOrigin:()=>F6,getEnumValues:()=>q6,getElementAtPath:()=>tj,floatSafeRemainder:()=>$Q,finalizeIssue:()=>g1,extend:()=>GA,escapeRegex:()=>Z4,esc:()=>wx,defineLazy:()=>q0,createTransparentProxy:()=>YA,clone:()=>j1,cleanRegex:()=>U6,cleanEnum:()=>vA,captureStackTrace:()=>x7,cached:()=>N6,assignProp:()=>bQ,assertNotEqual:()=>aj,assertNever:()=>rj,assertIs:()=>dj,assertEqual:()=>oj,assert:()=>sj,allowsEval:()=>zQ,aborted:()=>Kx,NUMBER_FORMAT_RANGES:()=>wQ,Class:()=>Ez,BIGINT_FORMAT_RANGES:()=>Oz});function oj(x){return x}function aj(x){return x}function dj(x){}function rj(x){throw Error()}function sj(x){}function q6(x){let Q=Object.values(x).filter((Y)=>typeof Y==="number");return Object.entries(x).filter(([Y,X])=>Q.indexOf(+Y)===-1).map(([Y,X])=>X)}function e9(x,Q="|"){return x.map((W)=>Q7(W)).join(Q)}function GQ(x,Q){if(typeof Q==="bigint")return Q.toString();return Q}function N6(x){return{get value(){{let W=x();return Object.defineProperty(this,"value",{value:W}),W}throw Error("cached value already set")}}}function L6(x){return x===null||x===void 0}function U6(x){let Q=x.startsWith("^")?1:0,W=x.endsWith("$")?x.length-1:x.length;return x.slice(Q,W)}function $Q(x,Q){let W=(x.toString().split(".")[1]||"").length,Y=(Q.toString().split(".")[1]||"").length,X=W>Y?W:Y,J=Number.parseInt(x.toFixed(X).replace(".","")),G=Number.parseInt(Q.toFixed(X).replace(".",""));return J%G/10**X}function q0(x,Q,W){Object.defineProperty(x,Q,{get(){{let X=W();return x[Q]=X,X}throw Error("cached value already set")},set(X){Object.defineProperty(x,Q,{value:X})},configurable:!0})}function bQ(x,Q,W){Object.defineProperty(x,Q,{value:W,writable:!0,enumerable:!0,configurable:!0})}function tj(x,Q){if(!Q)return x;return Q.reduce((W,Y)=>W?.[Y],x)}function ej(x){let Q=Object.keys(x),W=Q.map((Y)=>x[Y]);return Promise.all(W).then((Y)=>{let X={};for(let J=0;J<Q.length;J++)X[Q[J]]=Y[J];return X})}function xA(x=10){let W="";for(let Y=0;Y<x;Y++)W+="abcdefghijklmnopqrstuvwxyz"[Math.floor(Math.random()*26)];return W}function wx(x){return JSON.stringify(x)}var x7=Error.captureStackTrace?Error.captureStackTrace:(...x)=>{};function G8(x){return typeof x==="object"&&x!==null&&!Array.isArray(x)}var zQ=N6(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return new Function(""),!0}catch(x){return!1}});function $8(x){if(G8(x)===!1)return!1;let Q=x.constructor;if(Q===void 0)return!0;let W=Q.prototype;if(G8(W)===!1)return!1;if(Object.prototype.hasOwnProperty.call(W,"isPrototypeOf")===!1)return!1;return!0}function QA(x){let Q=0;for(let W in x)if(Object.prototype.hasOwnProperty.call(x,W))Q++;return Q}var WA=(x)=>{let Q=typeof x;switch(Q){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(x)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":if(Array.isArray(x))return"array";if(x===null)return"null";if(x.then&&typeof x.then==="function"&&x.catch&&typeof x.catch==="function")return"promise";if(typeof Map<"u"&&x instanceof Map)return"map";if(typeof Set<"u"&&x instanceof Set)return"set";if(typeof Date<"u"&&x instanceof Date)return"date";if(typeof File<"u"&&x instanceof File)return"file";return"object";default:throw Error(`Unknown data type: ${Q}`)}},vQ=new Set(["string","number","symbol"]),Az=new Set(["string","number","bigint","boolean","symbol","undefined"]);function Z4(x){return x.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function j1(x,Q,W){let Y=new x._zod.constr(Q??x._zod.def);if(!Q||W?.parent)Y._zod.parent=x;return Y}function n(x){let Q=x;if(!Q)return{};if(typeof Q==="string")return{error:()=>Q};if(Q?.message!==void 0){if(Q?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");Q.error=Q.message}if(delete Q.message,typeof Q.error==="string")return{...Q,error:()=>Q.error};return Q}function YA(x){let Q;return new Proxy({},{get(W,Y,X){return Q??(Q=x()),Reflect.get(Q,Y,X)},set(W,Y,X,J){return Q??(Q=x()),Reflect.set(Q,Y,X,J)},has(W,Y){return Q??(Q=x()),Reflect.has(Q,Y)},deleteProperty(W,Y){return Q??(Q=x()),Reflect.deleteProperty(Q,Y)},ownKeys(W){return Q??(Q=x()),Reflect.ownKeys(Q)},getOwnPropertyDescriptor(W,Y){return Q??(Q=x()),Reflect.getOwnPropertyDescriptor(Q,Y)},defineProperty(W,Y,X){return Q??(Q=x()),Reflect.defineProperty(Q,Y,X)}})}function Q7(x){if(typeof x==="bigint")return x.toString()+"n";if(typeof x==="string")return`"${x}"`;return`${x}`}function BQ(x){return Object.keys(x).filter((Q)=>{return x[Q]._zod.optin==="optional"&&x[Q]._zod.optout==="optional"})}var wQ={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-340282346638528860000000000000000000000,340282346638528860000000000000000000000],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},Oz={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function XA(x,Q){let W={},Y=x._zod.def;for(let X in Q){if(!(X in Y.shape))throw Error(`Unrecognized key: "${X}"`);if(!Q[X])continue;W[X]=Y.shape[X]}return j1(x,{...x._zod.def,shape:W,checks:[]})}function JA(x,Q){let W={...x._zod.def.shape},Y=x._zod.def;for(let X in Q){if(!(X in Y.shape))throw Error(`Unrecognized key: "${X}"`);if(!Q[X])continue;delete W[X]}return j1(x,{...x._zod.def,shape:W,checks:[]})}function GA(x,Q){if(!$8(Q))throw Error("Invalid input to extend: expected a plain object");let W={...x._zod.def,get shape(){let Y={...x._zod.def.shape,...Q};return bQ(this,"shape",Y),Y},checks:[]};return j1(x,W)}function $A(x,Q){return j1(x,{...x._zod.def,get shape(){let W={...x._zod.def.shape,...Q._zod.def.shape};return bQ(this,"shape",W),W},catchall:Q._zod.def.catchall,checks:[]})}function bA(x,Q,W){let Y=Q._zod.def.shape,X={...Y};if(W)for(let J in W){if(!(J in Y))throw Error(`Unrecognized key: "${J}"`);if(!W[J])continue;X[J]=x?new x({type:"optional",innerType:Y[J]}):Y[J]}else for(let J in Y)X[J]=x?new x({type:"optional",innerType:Y[J]}):Y[J];return j1(Q,{...Q._zod.def,shape:X,checks:[]})}function zA(x,Q,W){let Y=Q._zod.def.shape,X={...Y};if(W)for(let J in W){if(!(J in X))throw Error(`Unrecognized key: "${J}"`);if(!W[J])continue;X[J]=new x({type:"nonoptional",innerType:Y[J]})}else for(let J in Y)X[J]=new x({type:"nonoptional",innerType:Y[J]});return j1(Q,{...Q._zod.def,shape:X,checks:[]})}function Kx(x,Q=0){for(let W=Q;W<x.issues.length;W++)if(x.issues[W]?.continue!==!0)return!0;return!1}function G4(x,Q){return Q.map((W)=>{var Y;return(Y=W).path??(Y.path=[]),W.path.unshift(x),W})}function V6(x){return typeof x==="string"?x:x?.message}function g1(x,Q,W){let Y={...x,path:x.path??[]};if(!x.message){let X=V6(x.inst?._zod.def?.error?.(x))??V6(Q?.error?.(x))??V6(W.customError?.(x))??V6(W.localeError?.(x))??"Invalid input";Y.message=X}if(delete Y.inst,delete Y.continue,!Q?.reportInput)delete Y.input;return Y}function Iz(x){if(x instanceof Set)return"set";if(x instanceof Map)return"map";if(x instanceof File)return"file";return"unknown"}function F6(x){if(Array.isArray(x))return"array";if(typeof x==="string")return"string";return"unknown"}function KQ(...x){let[Q,W,Y]=x;if(typeof Q==="string")return{message:Q,code:"custom",input:W,inst:Y};return{...Q}}function vA(x){return Object.entries(x).filter(([Q,W])=>{return Number.isNaN(Number.parseInt(Q,10))}).map((Q)=>Q[1])}class Ez{constructor(...x){}}var Sz=(x,Q)=>{x.name="$ZodError",Object.defineProperty(x,"_zod",{value:x._zod,enumerable:!1}),Object.defineProperty(x,"issues",{value:Q,enumerable:!1}),Object.defineProperty(x,"message",{get(){return JSON.stringify(Q,GQ,2)},enumerable:!0}),Object.defineProperty(x,"toString",{value:()=>x.message,enumerable:!1})},W7=j("$ZodError",Sz),M6=j("$ZodError",Sz,{Parent:Error});function HQ(x,Q=(W)=>W.message){let W={},Y=[];for(let X of x.issues)if(X.path.length>0)W[X.path[0]]=W[X.path[0]]||[],W[X.path[0]].push(Q(X));else Y.push(Q(X));return{formErrors:Y,fieldErrors:W}}function VQ(x,Q){let W=Q||function(J){return J.message},Y={_errors:[]},X=(J)=>{for(let G of J.issues)if(G.code==="invalid_union"&&G.errors.length)G.errors.map(($)=>X({issues:$}));else if(G.code==="invalid_key")X({issues:G.issues});else if(G.code==="invalid_element")X({issues:G.issues});else if(G.path.length===0)Y._errors.push(W(G));else{let $=Y,b=0;while(b<G.path.length){let z=G.path[b];if(b!==G.path.length-1)$[z]=$[z]||{_errors:[]};else $[z]=$[z]||{_errors:[]},$[z]._errors.push(W(G));$=$[z],b++}}};return X(x),Y}var qQ=(x)=>(Q,W,Y,X)=>{let J=Y?Object.assign(Y,{async:!1}):{async:!1},G=Q._zod.run({value:W,issues:[]},J);if(G instanceof Promise)throw new R4;if(G.issues.length){let $=new(X?.Err??x)(G.issues.map((b)=>g1(b,J,c1())));throw x7($,X?.callee),$}return G.value},NQ=qQ(M6),LQ=(x)=>async(Q,W,Y,X)=>{let J=Y?Object.assign(Y,{async:!0}):{async:!0},G=Q._zod.run({value:W,issues:[]},J);if(G instanceof Promise)G=await G;if(G.issues.length){let $=new(X?.Err??x)(G.issues.map((b)=>g1(b,J,c1())));throw x7($,X?.callee),$}return G.value},UQ=LQ(M6),FQ=(x)=>(Q,W,Y)=>{let X=Y?{...Y,async:!1}:{async:!1},J=Q._zod.run({value:W,issues:[]},X);if(J instanceof Promise)throw new R4;return J.issues.length?{success:!1,error:new(x??W7)(J.issues.map((G)=>g1(G,X,c1())))}:{success:!0,data:J.value}},Hx=FQ(M6),MQ=(x)=>async(Q,W,Y)=>{let X=Y?Object.assign(Y,{async:!0}):{async:!0},J=Q._zod.run({value:W,issues:[]},X);if(J instanceof Promise)J=await J;return J.issues.length?{success:!1,error:new x(J.issues.map((G)=>g1(G,X,c1())))}:{success:!0,data:J.value}},Vx=MQ(M6);var Pz=/^[cC][^\s-]{8,}$/,Rz=/^[0-9a-z]+$/,Zz=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,iz=/^[0-9a-vA-V]{20}$/,Cz=/^[A-Za-z0-9]{27}$/,Tz=/^[a-zA-Z0-9_-]{21}$/,kz=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/;var _z=/^([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})$/,DQ=(x)=>{if(!x)return/^([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)$/;return new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${x}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`)};var uz=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/;function pz(){return new RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")}var lz=/^(?:(?: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])$/,nz=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})$/,mz=/^((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])$/,fz=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,yz=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,cQ=/^[A-Za-z0-9_-]*$/,gz=/^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/;var hz=/^\+(?:[0-9]){6,14}[0-9]$/,oz="(?:(?:\\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])))",az=new RegExp(`^${oz}$`);function dz(x){return typeof x.precision==="number"?x.precision===-1?"(?:[01]\\d|2[0-3]):[0-5]\\d":x.precision===0?"(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d":`(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{${x.precision}}`:"(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?"}function rz(x){return new RegExp(`^${dz(x)}$`)}function sz(x){let Q=dz({precision:x.precision}),W=["Z"];if(x.local)W.push("");if(x.offset)W.push("([+-]\\d{2}:\\d{2})");let Y=`${Q}(?:${W.join("|")})`;return new RegExp(`^${oz}T(?:${Y})$`)}var tz=(x)=>{let Q=x?`[\\s\\S]{${x?.minimum??0},${x?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${Q}$`)};var ez=/^\d+$/,xv=/^-?\d+(?:\.\d+)?/i,Qv=/true|false/i,Wv=/null/i;var Yv=/^[^A-Z]*$/,Xv=/^[^a-z]*$/;var r0=j("$ZodCheck",(x,Q)=>{var W;x._zod??(x._zod={}),x._zod.def=Q,(W=x._zod).onattach??(W.onattach=[])}),Jv={number:"number",bigint:"bigint",object:"date"},jQ=j("$ZodCheckLessThan",(x,Q)=>{r0.init(x,Q);let W=Jv[typeof Q.value];x._zod.onattach.push((Y)=>{let X=Y._zod.bag,J=(Q.inclusive?X.maximum:X.exclusiveMaximum)??Number.POSITIVE_INFINITY;if(Q.value<J)if(Q.inclusive)X.maximum=Q.value;else X.exclusiveMaximum=Q.value}),x._zod.check=(Y)=>{if(Q.inclusive?Y.value<=Q.value:Y.value<Q.value)return;Y.issues.push({origin:W,code:"too_big",maximum:Q.value,input:Y.value,inclusive:Q.inclusive,inst:x,continue:!Q.abort})}}),AQ=j("$ZodCheckGreaterThan",(x,Q)=>{r0.init(x,Q);let W=Jv[typeof Q.value];x._zod.onattach.push((Y)=>{let X=Y._zod.bag,J=(Q.inclusive?X.minimum:X.exclusiveMinimum)??Number.NEGATIVE_INFINITY;if(Q.value>J)if(Q.inclusive)X.minimum=Q.value;else X.exclusiveMinimum=Q.value}),x._zod.check=(Y)=>{if(Q.inclusive?Y.value>=Q.value:Y.value>Q.value)return;Y.issues.push({origin:W,code:"too_small",minimum:Q.value,input:Y.value,inclusive:Q.inclusive,inst:x,continue:!Q.abort})}}),Gv=j("$ZodCheckMultipleOf",(x,Q)=>{r0.init(x,Q),x._zod.onattach.push((W)=>{var Y;(Y=W._zod.bag).multipleOf??(Y.multipleOf=Q.value)}),x._zod.check=(W)=>{if(typeof W.value!==typeof Q.value)throw Error("Cannot mix number and bigint in multiple_of check.");if(typeof W.value==="bigint"?W.value%Q.value===BigInt(0):$Q(W.value,Q.value)===0)return;W.issues.push({origin:typeof W.value,code:"not_multiple_of",divisor:Q.value,input:W.value,inst:x,continue:!Q.abort})}}),$v=j("$ZodCheckNumberFormat",(x,Q)=>{r0.init(x,Q),Q.format=Q.format||"float64";let W=Q.format?.includes("int"),Y=W?"int":"number",[X,J]=wQ[Q.format];x._zod.onattach.push((G)=>{let $=G._zod.bag;if($.format=Q.format,$.minimum=X,$.maximum=J,W)$.pattern=ez}),x._zod.check=(G)=>{let $=G.value;if(W){if(!Number.isInteger($)){G.issues.push({expected:Y,format:Q.format,code:"invalid_type",input:$,inst:x});return}if(!Number.isSafeInteger($)){if($>0)G.issues.push({input:$,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:x,origin:Y,continue:!Q.abort});else G.issues.push({input:$,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:x,origin:Y,continue:!Q.abort});return}}if($<X)G.issues.push({origin:"number",input:$,code:"too_small",minimum:X,inclusive:!0,inst:x,continue:!Q.abort});if($>J)G.issues.push({origin:"number",input:$,code:"too_big",maximum:J,inst:x})}});var bv=j("$ZodCheckMaxLength",(x,Q)=>{var W;r0.init(x,Q),(W=x._zod.def).when??(W.when=(Y)=>{let X=Y.value;return!L6(X)&&X.length!==void 0}),x._zod.onattach.push((Y)=>{let X=Y._zod.bag.maximum??Number.POSITIVE_INFINITY;if(Q.maximum<X)Y._zod.bag.maximum=Q.maximum}),x._zod.check=(Y)=>{let X=Y.value;if(X.length<=Q.maximum)return;let G=F6(X);Y.issues.push({origin:G,code:"too_big",maximum:Q.maximum,inclusive:!0,input:X,inst:x,continue:!Q.abort})}}),zv=j("$ZodCheckMinLength",(x,Q)=>{var W;r0.init(x,Q),(W=x._zod.def).when??(W.when=(Y)=>{let X=Y.value;return!L6(X)&&X.length!==void 0}),x._zod.onattach.push((Y)=>{let X=Y._zod.bag.minimum??Number.NEGATIVE_INFINITY;if(Q.minimum>X)Y._zod.bag.minimum=Q.minimum}),x._zod.check=(Y)=>{let X=Y.value;if(X.length>=Q.minimum)return;let G=F6(X);Y.issues.push({origin:G,code:"too_small",minimum:Q.minimum,inclusive:!0,input:X,inst:x,continue:!Q.abort})}}),vv=j("$ZodCheckLengthEquals",(x,Q)=>{var W;r0.init(x,Q),(W=x._zod.def).when??(W.when=(Y)=>{let X=Y.value;return!L6(X)&&X.length!==void 0}),x._zod.onattach.push((Y)=>{let X=Y._zod.bag;X.minimum=Q.length,X.maximum=Q.length,X.length=Q.length}),x._zod.check=(Y)=>{let X=Y.value,J=X.length;if(J===Q.length)return;let G=F6(X),$=J>Q.length;Y.issues.push({origin:G,...$?{code:"too_big",maximum:Q.length}:{code:"too_small",minimum:Q.length},inclusive:!0,exact:!0,input:Y.value,inst:x,continue:!Q.abort})}}),D6=j("$ZodCheckStringFormat",(x,Q)=>{var W,Y;if(r0.init(x,Q),x._zod.onattach.push((X)=>{let J=X._zod.bag;if(J.format=Q.format,Q.pattern)J.patterns??(J.patterns=new Set),J.patterns.add(Q.pattern)}),Q.pattern)(W=x._zod).check??(W.check=(X)=>{if(Q.pattern.lastIndex=0,Q.pattern.test(X.value))return;X.issues.push({origin:"string",code:"invalid_format",format:Q.format,input:X.value,...Q.pattern?{pattern:Q.pattern.toString()}:{},inst:x,continue:!Q.abort})});else(Y=x._zod).check??(Y.check=()=>{})}),Bv=j("$ZodCheckRegex",(x,Q)=>{D6.init(x,Q),x._zod.check=(W)=>{if(Q.pattern.lastIndex=0,Q.pattern.test(W.value))return;W.issues.push({origin:"string",code:"invalid_format",format:"regex",input:W.value,pattern:Q.pattern.toString(),inst:x,continue:!Q.abort})}}),wv=j("$ZodCheckLowerCase",(x,Q)=>{Q.pattern??(Q.pattern=Yv),D6.init(x,Q)}),Kv=j("$ZodCheckUpperCase",(x,Q)=>{Q.pattern??(Q.pattern=Xv),D6.init(x,Q)}),Hv=j("$ZodCheckIncludes",(x,Q)=>{r0.init(x,Q);let W=Z4(Q.includes),Y=new RegExp(typeof Q.position==="number"?`^.{${Q.position}}${W}`:W);Q.pattern=Y,x._zod.onattach.push((X)=>{let J=X._zod.bag;J.patterns??(J.patterns=new Set),J.patterns.add(Y)}),x._zod.check=(X)=>{if(X.value.includes(Q.includes,Q.position))return;X.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:Q.includes,input:X.value,inst:x,continue:!Q.abort})}}),Vv=j("$ZodCheckStartsWith",(x,Q)=>{r0.init(x,Q);let W=new RegExp(`^${Z4(Q.prefix)}.*`);Q.pattern??(Q.pattern=W),x._zod.onattach.push((Y)=>{let X=Y._zod.bag;X.patterns??(X.patterns=new Set),X.patterns.add(W)}),x._zod.check=(Y)=>{if(Y.value.startsWith(Q.prefix))return;Y.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:Q.prefix,input:Y.value,inst:x,continue:!Q.abort})}}),qv=j("$ZodCheckEndsWith",(x,Q)=>{r0.init(x,Q);let W=new RegExp(`.*${Z4(Q.suffix)}$`);Q.pattern??(Q.pattern=W),x._zod.onattach.push((Y)=>{let X=Y._zod.bag;X.patterns??(X.patterns=new Set),X.patterns.add(W)}),x._zod.check=(Y)=>{if(Y.value.endsWith(Q.suffix))return;Y.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:Q.suffix,input:Y.value,inst:x,continue:!Q.abort})}});var Nv=j("$ZodCheckOverwrite",(x,Q)=>{r0.init(x,Q),x._zod.check=(W)=>{W.value=Q.tx(W.value)}});class OQ{constructor(x=[]){if(this.content=[],this.indent=0,this)this.args=x}indented(x){this.indent+=1,x(this),this.indent-=1}write(x){if(typeof x==="function"){x(this,{execution:"sync"}),x(this,{execution:"async"});return}let W=x.split(`
35
+ `+X}}catch(J){}}throw W}}_request(x,Q){if(typeof x==="string")Q=Q||{},Q.url=x;else Q=x||{};Q=l1(this.defaults,Q);let{transitional:W,paramsSerializer:Y,headers:X}=Q;if(W!==void 0)J6.assertOptions(W,{silentJSONParsing:W1.transitional(W1.boolean),forcedJSONParsing:W1.transitional(W1.boolean),clarifyTimeoutError:W1.transitional(W1.boolean),legacyInterceptorReqResOrdering:W1.transitional(W1.boolean),advertiseZstdAcceptEncoding:W1.transitional(W1.boolean),validateStatusUndefinedResolves:W1.transitional(W1.boolean)},!1);if(Y!=null)if(H.isFunction(Y))Q.paramsSerializer={serialize:Y};else J6.assertOptions(Y,{encode:W1.function,serialize:W1.function},!0);if(Q.allowAbsoluteUrls!==void 0);else if(this.defaults.allowAbsoluteUrls!==void 0)Q.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls;else Q.allowAbsoluteUrls=!0;J6.assertOptions(Q,{baseUrl:W1.spelling("baseURL"),withXsrfToken:W1.spelling("withXSRFToken")},!0),Q.method=(Q.method||this.defaults.method||"get").toLowerCase();let J=X&&H.merge(X.common,X[Q.method]);X&&H.forEach(["delete","get","head","post","put","patch","query","common"],(w)=>{delete X[w]}),Q.headers=V0.concat(J,X);let G=[],$=!0;this.interceptors.request.forEach(function(V){if(typeof V.runWhen==="function"&&V.runWhen(Q)===!1)return;$=$&&V.synchronous;let N=Q.transitional||j4;if(N&&N.legacyInterceptorReqResOrdering)G.unshift(V.fulfilled,V.rejected);else G.push(V.fulfilled,V.rejected)});let b=[];this.interceptors.response.forEach(function(V){b.push(V.fulfilled,V.rejected)});let z,v=0,B;if(!$){let w=[g9.bind(this),void 0];w.unshift(...G),w.push(...b),B=w.length,z=Promise.resolve(Q);while(v<B)z=z.then(w[v++],w[v++]);return z}B=G.length;let K=Q;while(v<B){let w=G[v++],V=G[v++];try{K=w(K)}catch(N){V.call(this,N);break}}try{z=g9.call(this,K)}catch(w){return Promise.reject(w)}v=0,B=b.length;while(v<B)z=z.then(b[v++],b[v++]);return z}getUri(x){x=l1(this.defaults,x);let Q=xx(x.baseURL,x.url,x.allowAbsoluteUrls,x);return e4(Q,x.params,x.paramsSerializer)}}H.forEach(["delete","get","head","options"],function(Q){G6.prototype[Q]=function(W,Y){return this.request(l1(Y||{},{method:Q,url:W,data:Y&&H.hasOwnProp(Y,"data")?Y.data:void 0}))}});H.forEach(["post","put","patch","query"],function(Q){function W(Y){return function(J,G,$){return this.request(l1($||{},{method:Q,headers:Y?{"Content-Type":"multipart/form-data"}:{},url:J,data:G}))}}if(G6.prototype[Q]=W(),Q!=="query")G6.prototype[Q+"Form"]=W(!0)});var $6=G6;class s5{constructor(x){if(typeof x!=="function")throw TypeError("executor must be a function.");let Q;this.promise=new Promise(function(X){Q=X});let W=this;this.promise.then((Y)=>{if(!W._listeners)return;let X=W._listeners.length;while(X-- >0)W._listeners[X](Y);W._listeners=null}),this.promise.then=(Y)=>{let X,J=new Promise((G)=>{W.subscribe(G),X=G}).then(Y);return J.cancel=function(){W.unsubscribe(X)},J},x(function(X,J,G){if(W.reason)return;W.reason=new M1(X,J,G),Q(W.reason)})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(x){if(this.reason){x(this.reason);return}if(this._listeners)this._listeners.push(x);else this._listeners=[x]}unsubscribe(x){if(!this._listeners)return;let Q=this._listeners.indexOf(x);if(Q!==-1)this._listeners.splice(Q,1)}toAbortSignal(){let x=new AbortController,Q=(W)=>{x.abort(W)};return this.subscribe(Q),x.signal.unsubscribe=()=>this.unsubscribe(Q),x.signal}static source(){let x;return{token:new s5(function(Y){x=Y}),cancel:x}}}var Hz=s5;function t5(x){return function(W){return x.apply(null,W)}}function e5(x){return H.isObject(x)&&x.isAxiosError===!0}var xQ={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(xQ).forEach(([x,Q])=>{xQ[Q]=x});var Vz=xQ;function qz(x){let Q=new $6(x),W=C8($6.prototype.request,Q);return H.extend(W,$6.prototype,Q,{allOwnKeys:!0}),H.extend(W,Q,null,{allOwnKeys:!0}),W.create=function(X){return qz(l1(x,X))},W}var u0=qz(ux);u0.Axios=$6;u0.CanceledError=M1;u0.CancelToken=Hz;u0.isCancel=g8;u0.VERSION=z4;u0.toFormData=c4;u0.AxiosError=A;u0.Cancel=u0.CanceledError;u0.all=function(Q){return Promise.all(Q)};u0.spread=t5;u0.isAxiosError=e5;u0.mergeConfig=l1;u0.AxiosHeaders=V0;u0.formToJSON=(x)=>i9(H.isHTMLForm(x)?new FormData(x):x);u0.getAdapter=y9.getAdapter;u0.HttpStatusCode=Vz;u0.default=u0;var o9=u0;var F={};i8(F,{void:()=>jj,util:()=>e,unknown:()=>Dj,union:()=>Ij,undefined:()=>Lj,tuple:()=>Pj,transformer:()=>lj,symbol:()=>Uj,string:()=>Az,strictObject:()=>Oj,setErrorMap:()=>fc,set:()=>ij,record:()=>Rj,quotelessJson:()=>nc,promise:()=>pj,preprocess:()=>fj,pipeline:()=>yj,ostring:()=>gj,optional:()=>nj,onumber:()=>hj,oboolean:()=>oj,objectUtil:()=>QQ,object:()=>XQ,number:()=>Oz,nullable:()=>mj,null:()=>Fj,never:()=>cj,nativeEnum:()=>uj,nan:()=>Vj,map:()=>Zj,makeIssue:()=>b6,literal:()=>kj,lazy:()=>Tj,late:()=>Kj,isValid:()=>O4,isDirty:()=>d9,isAsync:()=>hx,isAborted:()=>a9,intersection:()=>Sj,instanceof:()=>Hj,getParsedType:()=>Y4,getErrorMap:()=>gx,function:()=>Cj,enum:()=>_j,effect:()=>lj,discriminatedUnion:()=>Ej,defaultErrorMap:()=>B4,datetimeRegex:()=>Dz,date:()=>Nj,custom:()=>jz,coerce:()=>aj,boolean:()=>Iz,bigint:()=>qj,array:()=>Aj,any:()=>Mj,addIssueToContext:()=>Z,ZodVoid:()=>v6,ZodUnknown:()=>I4,ZodUnion:()=>tx,ZodUndefined:()=>rx,ZodType:()=>r,ZodTuple:()=>J4,ZodTransformer:()=>y1,ZodSymbol:()=>z6,ZodString:()=>n1,ZodSet:()=>vx,ZodSchema:()=>r,ZodRecord:()=>B6,ZodReadonly:()=>J8,ZodPromise:()=>Bx,ZodPipeline:()=>H6,ZodParsedType:()=>P,ZodOptional:()=>D1,ZodObject:()=>E0,ZodNumber:()=>E4,ZodNullable:()=>K4,ZodNull:()=>sx,ZodNever:()=>X4,ZodNativeEnum:()=>W8,ZodNaN:()=>K6,ZodMap:()=>w6,ZodLiteral:()=>Q8,ZodLazy:()=>x8,ZodIssueCode:()=>I,ZodIntersection:()=>ex,ZodFunction:()=>ax,ZodFirstPartyTypeKind:()=>E,ZodError:()=>K1,ZodEnum:()=>P4,ZodEffects:()=>y1,ZodDiscriminatedUnion:()=>r9,ZodDefault:()=>Y8,ZodDate:()=>bx,ZodCatch:()=>X8,ZodBranded:()=>s9,ZodBoolean:()=>dx,ZodBigInt:()=>S4,ZodArray:()=>m1,ZodAny:()=>zx,Schema:()=>r,ParseStatus:()=>d0,OK:()=>Y1,NEVER:()=>dj,INVALID:()=>l,EMPTY_PATH:()=>yc,DIRTY:()=>$x,BRAND:()=>wj});var e;(function(x){x.assertEqual=(X)=>{};function Q(X){}x.assertIs=Q;function W(X){throw Error()}x.assertNever=W,x.arrayToEnum=(X)=>{let J={};for(let G of X)J[G]=G;return J},x.getValidEnumValues=(X)=>{let J=x.objectKeys(X).filter(($)=>typeof X[X[$]]!=="number"),G={};for(let $ of J)G[$]=X[$];return x.objectValues(G)},x.objectValues=(X)=>{return x.objectKeys(X).map(function(J){return X[J]})},x.objectKeys=typeof Object.keys==="function"?(X)=>Object.keys(X):(X)=>{let J=[];for(let G in X)if(Object.prototype.hasOwnProperty.call(X,G))J.push(G);return J},x.find=(X,J)=>{for(let G of X)if(J(G))return G;return},x.isInteger=typeof Number.isInteger==="function"?(X)=>Number.isInteger(X):(X)=>typeof X==="number"&&Number.isFinite(X)&&Math.floor(X)===X;function Y(X,J=" | "){return X.map((G)=>typeof G==="string"?`'${G}'`:G).join(J)}x.joinValues=Y,x.jsonStringifyReplacer=(X,J)=>{if(typeof J==="bigint")return J.toString();return J}})(e||(e={}));var QQ;(function(x){x.mergeShapes=(Q,W)=>{return{...Q,...W}}})(QQ||(QQ={}));var P=e.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Y4=(x)=>{switch(typeof x){case"undefined":return P.undefined;case"string":return P.string;case"number":return Number.isNaN(x)?P.nan:P.number;case"boolean":return P.boolean;case"function":return P.function;case"bigint":return P.bigint;case"symbol":return P.symbol;case"object":if(Array.isArray(x))return P.array;if(x===null)return P.null;if(x.then&&typeof x.then==="function"&&x.catch&&typeof x.catch==="function")return P.promise;if(typeof Map<"u"&&x instanceof Map)return P.map;if(typeof Set<"u"&&x instanceof Set)return P.set;if(typeof Date<"u"&&x instanceof Date)return P.date;return P.object;default:return P.unknown}};var I=e.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),nc=(x)=>{return JSON.stringify(x,null,2).replace(/"([^"]+)":/g,"$1:")};class K1 extends Error{get errors(){return this.issues}constructor(x){super();this.issues=[],this.addIssue=(W)=>{this.issues=[...this.issues,W]},this.addIssues=(W=[])=>{this.issues=[...this.issues,...W]};let Q=new.target.prototype;if(Object.setPrototypeOf)Object.setPrototypeOf(this,Q);else this.__proto__=Q;this.name="ZodError",this.issues=x}format(x){let Q=x||function(X){return X.message},W={_errors:[]},Y=(X)=>{for(let J of X.issues)if(J.code==="invalid_union")J.unionErrors.map(Y);else if(J.code==="invalid_return_type")Y(J.returnTypeError);else if(J.code==="invalid_arguments")Y(J.argumentsError);else if(J.path.length===0)W._errors.push(Q(J));else{let G=W,$=0;while($<J.path.length){let b=J.path[$];if($!==J.path.length-1)G[b]=G[b]||{_errors:[]};else G[b]=G[b]||{_errors:[]},G[b]._errors.push(Q(J));G=G[b],$++}}};return Y(this),W}static assert(x){if(!(x instanceof K1))throw Error(`Not a ZodError: ${x}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,e.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(x=(Q)=>Q.message){let Q={},W=[];for(let Y of this.issues)if(Y.path.length>0){let X=Y.path[0];Q[X]=Q[X]||[],Q[X].push(x(Y))}else W.push(x(Y));return{formErrors:W,fieldErrors:Q}}get formErrors(){return this.flatten()}}K1.create=(x)=>{return new K1(x)};var mc=(x,Q)=>{let W;switch(x.code){case I.invalid_type:if(x.received===P.undefined)W="Required";else W=`Expected ${x.expected}, received ${x.received}`;break;case I.invalid_literal:W=`Invalid literal value, expected ${JSON.stringify(x.expected,e.jsonStringifyReplacer)}`;break;case I.unrecognized_keys:W=`Unrecognized key(s) in object: ${e.joinValues(x.keys,", ")}`;break;case I.invalid_union:W="Invalid input";break;case I.invalid_union_discriminator:W=`Invalid discriminator value. Expected ${e.joinValues(x.options)}`;break;case I.invalid_enum_value:W=`Invalid enum value. Expected ${e.joinValues(x.options)}, received '${x.received}'`;break;case I.invalid_arguments:W="Invalid function arguments";break;case I.invalid_return_type:W="Invalid function return type";break;case I.invalid_date:W="Invalid date";break;case I.invalid_string:if(typeof x.validation==="object")if("includes"in x.validation){if(W=`Invalid input: must include "${x.validation.includes}"`,typeof x.validation.position==="number")W=`${W} at one or more positions greater than or equal to ${x.validation.position}`}else if("startsWith"in x.validation)W=`Invalid input: must start with "${x.validation.startsWith}"`;else if("endsWith"in x.validation)W=`Invalid input: must end with "${x.validation.endsWith}"`;else e.assertNever(x.validation);else if(x.validation!=="regex")W=`Invalid ${x.validation}`;else W="Invalid";break;case I.too_small:if(x.type==="array")W=`Array must contain ${x.exact?"exactly":x.inclusive?"at least":"more than"} ${x.minimum} element(s)`;else if(x.type==="string")W=`String must contain ${x.exact?"exactly":x.inclusive?"at least":"over"} ${x.minimum} character(s)`;else if(x.type==="number")W=`Number must be ${x.exact?"exactly equal to ":x.inclusive?"greater than or equal to ":"greater than "}${x.minimum}`;else if(x.type==="bigint")W=`Number must be ${x.exact?"exactly equal to ":x.inclusive?"greater than or equal to ":"greater than "}${x.minimum}`;else if(x.type==="date")W=`Date must be ${x.exact?"exactly equal to ":x.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(x.minimum))}`;else W="Invalid input";break;case I.too_big:if(x.type==="array")W=`Array must contain ${x.exact?"exactly":x.inclusive?"at most":"less than"} ${x.maximum} element(s)`;else if(x.type==="string")W=`String must contain ${x.exact?"exactly":x.inclusive?"at most":"under"} ${x.maximum} character(s)`;else if(x.type==="number")W=`Number must be ${x.exact?"exactly":x.inclusive?"less than or equal to":"less than"} ${x.maximum}`;else if(x.type==="bigint")W=`BigInt must be ${x.exact?"exactly":x.inclusive?"less than or equal to":"less than"} ${x.maximum}`;else if(x.type==="date")W=`Date must be ${x.exact?"exactly":x.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(x.maximum))}`;else W="Invalid input";break;case I.custom:W="Invalid input";break;case I.invalid_intersection_types:W="Intersection results could not be merged";break;case I.not_multiple_of:W=`Number must be a multiple of ${x.multipleOf}`;break;case I.not_finite:W="Number must be finite";break;default:W=Q.defaultError,e.assertNever(x)}return{message:W}},B4=mc;var Nz=B4;function fc(x){Nz=x}function gx(){return Nz}var b6=(x)=>{let{data:Q,path:W,errorMaps:Y,issueData:X}=x,J=[...W,...X.path||[]],G={...X,path:J};if(X.message!==void 0)return{...X,path:J,message:X.message};let $="",b=Y.filter((z)=>!!z).slice().reverse();for(let z of b)$=z(G,{data:Q,defaultError:$}).message;return{...X,path:J,message:$}},yc=[];function Z(x,Q){let W=gx(),Y=b6({issueData:Q,data:x.data,path:x.path,errorMaps:[x.common.contextualErrorMap,x.schemaErrorMap,W,W===B4?void 0:B4].filter((X)=>!!X)});x.common.issues.push(Y)}class d0{constructor(){this.value="valid"}dirty(){if(this.value==="valid")this.value="dirty"}abort(){if(this.value!=="aborted")this.value="aborted"}static mergeArray(x,Q){let W=[];for(let Y of Q){if(Y.status==="aborted")return l;if(Y.status==="dirty")x.dirty();W.push(Y.value)}return{status:x.value,value:W}}static async mergeObjectAsync(x,Q){let W=[];for(let Y of Q){let X=await Y.key,J=await Y.value;W.push({key:X,value:J})}return d0.mergeObjectSync(x,W)}static mergeObjectSync(x,Q){let W={};for(let Y of Q){let{key:X,value:J}=Y;if(X.status==="aborted")return l;if(J.status==="aborted")return l;if(X.status==="dirty")x.dirty();if(J.status==="dirty")x.dirty();if(X.value!=="__proto__"&&(typeof J.value<"u"||Y.alwaysSet))W[X.value]=J.value}return{status:x.value,value:W}}}var l=Object.freeze({status:"aborted"}),$x=(x)=>({status:"dirty",value:x}),Y1=(x)=>({status:"valid",value:x}),a9=(x)=>x.status==="aborted",d9=(x)=>x.status==="dirty",O4=(x)=>x.status==="valid",hx=(x)=>typeof Promise<"u"&&x instanceof Promise;var T;(function(x){x.errToObj=(Q)=>typeof Q==="string"?{message:Q}:Q||{},x.toString=(Q)=>typeof Q==="string"?Q:Q?.message})(T||(T={}));class f1{constructor(x,Q,W,Y){this._cachedPath=[],this.parent=x,this.data=Q,this._path=W,this._key=Y}get path(){if(!this._cachedPath.length)if(Array.isArray(this._key))this._cachedPath.push(...this._path,...this._key);else this._cachedPath.push(...this._path,this._key);return this._cachedPath}}var Uz=(x,Q)=>{if(O4(Q))return{success:!0,data:Q.value};else{if(!x.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let W=new K1(x.common.issues);return this._error=W,this._error}}}};function g(x){if(!x)return{};let{errorMap:Q,invalid_type_error:W,required_error:Y,description:X}=x;if(Q&&(W||Y))throw Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);if(Q)return{errorMap:Q,description:X};return{errorMap:(G,$)=>{let{message:b}=x;if(G.code==="invalid_enum_value")return{message:b??$.defaultError};if(typeof $.data>"u")return{message:b??Y??$.defaultError};if(G.code!=="invalid_type")return{message:$.defaultError};return{message:b??W??$.defaultError}},description:X}}class r{get description(){return this._def.description}_getType(x){return Y4(x.data)}_getOrReturnCtx(x,Q){return Q||{common:x.parent.common,data:x.data,parsedType:Y4(x.data),schemaErrorMap:this._def.errorMap,path:x.path,parent:x.parent}}_processInputParams(x){return{status:new d0,ctx:{common:x.parent.common,data:x.data,parsedType:Y4(x.data),schemaErrorMap:this._def.errorMap,path:x.path,parent:x.parent}}}_parseSync(x){let Q=this._parse(x);if(hx(Q))throw Error("Synchronous parse encountered promise.");return Q}_parseAsync(x){let Q=this._parse(x);return Promise.resolve(Q)}parse(x,Q){let W=this.safeParse(x,Q);if(W.success)return W.data;throw W.error}safeParse(x,Q){let W={common:{issues:[],async:Q?.async??!1,contextualErrorMap:Q?.errorMap},path:Q?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:x,parsedType:Y4(x)},Y=this._parseSync({data:x,path:W.path,parent:W});return Uz(W,Y)}"~validate"(x){let Q={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:x,parsedType:Y4(x)};if(!this["~standard"].async)try{let W=this._parseSync({data:x,path:[],parent:Q});return O4(W)?{value:W.value}:{issues:Q.common.issues}}catch(W){if(W?.message?.toLowerCase()?.includes("encountered"))this["~standard"].async=!0;Q.common={issues:[],async:!0}}return this._parseAsync({data:x,path:[],parent:Q}).then((W)=>O4(W)?{value:W.value}:{issues:Q.common.issues})}async parseAsync(x,Q){let W=await this.safeParseAsync(x,Q);if(W.success)return W.data;throw W.error}async safeParseAsync(x,Q){let W={common:{issues:[],contextualErrorMap:Q?.errorMap,async:!0},path:Q?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:x,parsedType:Y4(x)},Y=this._parse({data:x,path:W.path,parent:W}),X=await(hx(Y)?Y:Promise.resolve(Y));return Uz(W,X)}refine(x,Q){let W=(Y)=>{if(typeof Q==="string"||typeof Q>"u")return{message:Q};else if(typeof Q==="function")return Q(Y);else return Q};return this._refinement((Y,X)=>{let J=x(Y),G=()=>X.addIssue({code:I.custom,...W(Y)});if(typeof Promise<"u"&&J instanceof Promise)return J.then(($)=>{if(!$)return G(),!1;else return!0});if(!J)return G(),!1;else return!0})}refinement(x,Q){return this._refinement((W,Y)=>{if(!x(W))return Y.addIssue(typeof Q==="function"?Q(W,Y):Q),!1;else return!0})}_refinement(x){return new y1({schema:this,typeName:E.ZodEffects,effect:{type:"refinement",refinement:x}})}superRefine(x){return this._refinement(x)}constructor(x){this.spa=this.safeParseAsync,this._def=x,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:(Q)=>this["~validate"](Q)}}optional(){return D1.create(this,this._def)}nullable(){return K4.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return m1.create(this)}promise(){return Bx.create(this,this._def)}or(x){return tx.create([this,x],this._def)}and(x){return ex.create(this,x,this._def)}transform(x){return new y1({...g(this._def),schema:this,typeName:E.ZodEffects,effect:{type:"transform",transform:x}})}default(x){let Q=typeof x==="function"?x:()=>x;return new Y8({...g(this._def),innerType:this,defaultValue:Q,typeName:E.ZodDefault})}brand(){return new s9({typeName:E.ZodBranded,type:this,...g(this._def)})}catch(x){let Q=typeof x==="function"?x:()=>x;return new X8({...g(this._def),innerType:this,catchValue:Q,typeName:E.ZodCatch})}describe(x){return new this.constructor({...this._def,description:x})}pipe(x){return H6.create(this,x)}readonly(){return J8.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}var gc=/^c[^\s-]{8,}$/i,hc=/^[0-9a-z]+$/,oc=/^[0-9A-HJKMNP-TV-Z]{26}$/i,ac=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,dc=/^[a-z0-9_-]{21}$/i,rc=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,sc=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,tc=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,ec="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",WQ,xj=/^(?:(?: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])$/,Qj=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,Wj=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,Yj=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Xj=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Jj=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Fz="((\\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])))",Gj=new RegExp(`^${Fz}$`);function Mz(x){let Q="[0-5]\\d";if(x.precision)Q=`${Q}\\.\\d{${x.precision}}`;else if(x.precision==null)Q=`${Q}(\\.\\d+)?`;let W=x.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${Q})${W}`}function $j(x){return new RegExp(`^${Mz(x)}$`)}function Dz(x){let Q=`${Fz}T${Mz(x)}`,W=[];if(W.push(x.local?"Z?":"Z"),x.offset)W.push("([+-]\\d{2}:?\\d{2})");return Q=`${Q}(${W.join("|")})`,new RegExp(`^${Q}$`)}function bj(x,Q){if((Q==="v4"||!Q)&&xj.test(x))return!0;if((Q==="v6"||!Q)&&Wj.test(x))return!0;return!1}function zj(x,Q){if(!rc.test(x))return!1;try{let[W]=x.split(".");if(!W)return!1;let Y=W.replace(/-/g,"+").replace(/_/g,"/").padEnd(W.length+(4-W.length%4)%4,"="),X=JSON.parse(atob(Y));if(typeof X!=="object"||X===null)return!1;if("typ"in X&&X?.typ!=="JWT")return!1;if(!X.alg)return!1;if(Q&&X.alg!==Q)return!1;return!0}catch{return!1}}function vj(x,Q){if((Q==="v4"||!Q)&&Qj.test(x))return!0;if((Q==="v6"||!Q)&&Yj.test(x))return!0;return!1}class n1 extends r{_parse(x){if(this._def.coerce)x.data=String(x.data);if(this._getType(x)!==P.string){let X=this._getOrReturnCtx(x);return Z(X,{code:I.invalid_type,expected:P.string,received:X.parsedType}),l}let W=new d0,Y=void 0;for(let X of this._def.checks)if(X.kind==="min"){if(x.data.length<X.value)Y=this._getOrReturnCtx(x,Y),Z(Y,{code:I.too_small,minimum:X.value,type:"string",inclusive:!0,exact:!1,message:X.message}),W.dirty()}else if(X.kind==="max"){if(x.data.length>X.value)Y=this._getOrReturnCtx(x,Y),Z(Y,{code:I.too_big,maximum:X.value,type:"string",inclusive:!0,exact:!1,message:X.message}),W.dirty()}else if(X.kind==="length"){let J=x.data.length>X.value,G=x.data.length<X.value;if(J||G){if(Y=this._getOrReturnCtx(x,Y),J)Z(Y,{code:I.too_big,maximum:X.value,type:"string",inclusive:!0,exact:!0,message:X.message});else if(G)Z(Y,{code:I.too_small,minimum:X.value,type:"string",inclusive:!0,exact:!0,message:X.message});W.dirty()}}else if(X.kind==="email"){if(!tc.test(x.data))Y=this._getOrReturnCtx(x,Y),Z(Y,{validation:"email",code:I.invalid_string,message:X.message}),W.dirty()}else if(X.kind==="emoji"){if(!WQ)WQ=new RegExp(ec,"u");if(!WQ.test(x.data))Y=this._getOrReturnCtx(x,Y),Z(Y,{validation:"emoji",code:I.invalid_string,message:X.message}),W.dirty()}else if(X.kind==="uuid"){if(!ac.test(x.data))Y=this._getOrReturnCtx(x,Y),Z(Y,{validation:"uuid",code:I.invalid_string,message:X.message}),W.dirty()}else if(X.kind==="nanoid"){if(!dc.test(x.data))Y=this._getOrReturnCtx(x,Y),Z(Y,{validation:"nanoid",code:I.invalid_string,message:X.message}),W.dirty()}else if(X.kind==="cuid"){if(!gc.test(x.data))Y=this._getOrReturnCtx(x,Y),Z(Y,{validation:"cuid",code:I.invalid_string,message:X.message}),W.dirty()}else if(X.kind==="cuid2"){if(!hc.test(x.data))Y=this._getOrReturnCtx(x,Y),Z(Y,{validation:"cuid2",code:I.invalid_string,message:X.message}),W.dirty()}else if(X.kind==="ulid"){if(!oc.test(x.data))Y=this._getOrReturnCtx(x,Y),Z(Y,{validation:"ulid",code:I.invalid_string,message:X.message}),W.dirty()}else if(X.kind==="url")try{new URL(x.data)}catch{Y=this._getOrReturnCtx(x,Y),Z(Y,{validation:"url",code:I.invalid_string,message:X.message}),W.dirty()}else if(X.kind==="regex"){if(X.regex.lastIndex=0,!X.regex.test(x.data))Y=this._getOrReturnCtx(x,Y),Z(Y,{validation:"regex",code:I.invalid_string,message:X.message}),W.dirty()}else if(X.kind==="trim")x.data=x.data.trim();else if(X.kind==="includes"){if(!x.data.includes(X.value,X.position))Y=this._getOrReturnCtx(x,Y),Z(Y,{code:I.invalid_string,validation:{includes:X.value,position:X.position},message:X.message}),W.dirty()}else if(X.kind==="toLowerCase")x.data=x.data.toLowerCase();else if(X.kind==="toUpperCase")x.data=x.data.toUpperCase();else if(X.kind==="startsWith"){if(!x.data.startsWith(X.value))Y=this._getOrReturnCtx(x,Y),Z(Y,{code:I.invalid_string,validation:{startsWith:X.value},message:X.message}),W.dirty()}else if(X.kind==="endsWith"){if(!x.data.endsWith(X.value))Y=this._getOrReturnCtx(x,Y),Z(Y,{code:I.invalid_string,validation:{endsWith:X.value},message:X.message}),W.dirty()}else if(X.kind==="datetime"){if(!Dz(X).test(x.data))Y=this._getOrReturnCtx(x,Y),Z(Y,{code:I.invalid_string,validation:"datetime",message:X.message}),W.dirty()}else if(X.kind==="date"){if(!Gj.test(x.data))Y=this._getOrReturnCtx(x,Y),Z(Y,{code:I.invalid_string,validation:"date",message:X.message}),W.dirty()}else if(X.kind==="time"){if(!$j(X).test(x.data))Y=this._getOrReturnCtx(x,Y),Z(Y,{code:I.invalid_string,validation:"time",message:X.message}),W.dirty()}else if(X.kind==="duration"){if(!sc.test(x.data))Y=this._getOrReturnCtx(x,Y),Z(Y,{validation:"duration",code:I.invalid_string,message:X.message}),W.dirty()}else if(X.kind==="ip"){if(!bj(x.data,X.version))Y=this._getOrReturnCtx(x,Y),Z(Y,{validation:"ip",code:I.invalid_string,message:X.message}),W.dirty()}else if(X.kind==="jwt"){if(!zj(x.data,X.alg))Y=this._getOrReturnCtx(x,Y),Z(Y,{validation:"jwt",code:I.invalid_string,message:X.message}),W.dirty()}else if(X.kind==="cidr"){if(!vj(x.data,X.version))Y=this._getOrReturnCtx(x,Y),Z(Y,{validation:"cidr",code:I.invalid_string,message:X.message}),W.dirty()}else if(X.kind==="base64"){if(!Xj.test(x.data))Y=this._getOrReturnCtx(x,Y),Z(Y,{validation:"base64",code:I.invalid_string,message:X.message}),W.dirty()}else if(X.kind==="base64url"){if(!Jj.test(x.data))Y=this._getOrReturnCtx(x,Y),Z(Y,{validation:"base64url",code:I.invalid_string,message:X.message}),W.dirty()}else e.assertNever(X);return{status:W.value,value:x.data}}_regex(x,Q,W){return this.refinement((Y)=>x.test(Y),{validation:Q,code:I.invalid_string,...T.errToObj(W)})}_addCheck(x){return new n1({...this._def,checks:[...this._def.checks,x]})}email(x){return this._addCheck({kind:"email",...T.errToObj(x)})}url(x){return this._addCheck({kind:"url",...T.errToObj(x)})}emoji(x){return this._addCheck({kind:"emoji",...T.errToObj(x)})}uuid(x){return this._addCheck({kind:"uuid",...T.errToObj(x)})}nanoid(x){return this._addCheck({kind:"nanoid",...T.errToObj(x)})}cuid(x){return this._addCheck({kind:"cuid",...T.errToObj(x)})}cuid2(x){return this._addCheck({kind:"cuid2",...T.errToObj(x)})}ulid(x){return this._addCheck({kind:"ulid",...T.errToObj(x)})}base64(x){return this._addCheck({kind:"base64",...T.errToObj(x)})}base64url(x){return this._addCheck({kind:"base64url",...T.errToObj(x)})}jwt(x){return this._addCheck({kind:"jwt",...T.errToObj(x)})}ip(x){return this._addCheck({kind:"ip",...T.errToObj(x)})}cidr(x){return this._addCheck({kind:"cidr",...T.errToObj(x)})}datetime(x){if(typeof x==="string")return this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:x});return this._addCheck({kind:"datetime",precision:typeof x?.precision>"u"?null:x?.precision,offset:x?.offset??!1,local:x?.local??!1,...T.errToObj(x?.message)})}date(x){return this._addCheck({kind:"date",message:x})}time(x){if(typeof x==="string")return this._addCheck({kind:"time",precision:null,message:x});return this._addCheck({kind:"time",precision:typeof x?.precision>"u"?null:x?.precision,...T.errToObj(x?.message)})}duration(x){return this._addCheck({kind:"duration",...T.errToObj(x)})}regex(x,Q){return this._addCheck({kind:"regex",regex:x,...T.errToObj(Q)})}includes(x,Q){return this._addCheck({kind:"includes",value:x,position:Q?.position,...T.errToObj(Q?.message)})}startsWith(x,Q){return this._addCheck({kind:"startsWith",value:x,...T.errToObj(Q)})}endsWith(x,Q){return this._addCheck({kind:"endsWith",value:x,...T.errToObj(Q)})}min(x,Q){return this._addCheck({kind:"min",value:x,...T.errToObj(Q)})}max(x,Q){return this._addCheck({kind:"max",value:x,...T.errToObj(Q)})}length(x,Q){return this._addCheck({kind:"length",value:x,...T.errToObj(Q)})}nonempty(x){return this.min(1,T.errToObj(x))}trim(){return new n1({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new n1({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new n1({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find((x)=>x.kind==="datetime")}get isDate(){return!!this._def.checks.find((x)=>x.kind==="date")}get isTime(){return!!this._def.checks.find((x)=>x.kind==="time")}get isDuration(){return!!this._def.checks.find((x)=>x.kind==="duration")}get isEmail(){return!!this._def.checks.find((x)=>x.kind==="email")}get isURL(){return!!this._def.checks.find((x)=>x.kind==="url")}get isEmoji(){return!!this._def.checks.find((x)=>x.kind==="emoji")}get isUUID(){return!!this._def.checks.find((x)=>x.kind==="uuid")}get isNANOID(){return!!this._def.checks.find((x)=>x.kind==="nanoid")}get isCUID(){return!!this._def.checks.find((x)=>x.kind==="cuid")}get isCUID2(){return!!this._def.checks.find((x)=>x.kind==="cuid2")}get isULID(){return!!this._def.checks.find((x)=>x.kind==="ulid")}get isIP(){return!!this._def.checks.find((x)=>x.kind==="ip")}get isCIDR(){return!!this._def.checks.find((x)=>x.kind==="cidr")}get isBase64(){return!!this._def.checks.find((x)=>x.kind==="base64")}get isBase64url(){return!!this._def.checks.find((x)=>x.kind==="base64url")}get minLength(){let x=null;for(let Q of this._def.checks)if(Q.kind==="min"){if(x===null||Q.value>x)x=Q.value}return x}get maxLength(){let x=null;for(let Q of this._def.checks)if(Q.kind==="max"){if(x===null||Q.value<x)x=Q.value}return x}}n1.create=(x)=>{return new n1({checks:[],typeName:E.ZodString,coerce:x?.coerce??!1,...g(x)})};function Bj(x,Q){let W=(x.toString().split(".")[1]||"").length,Y=(Q.toString().split(".")[1]||"").length,X=W>Y?W:Y,J=Number.parseInt(x.toFixed(X).replace(".","")),G=Number.parseInt(Q.toFixed(X).replace(".",""));return J%G/10**X}class E4 extends r{constructor(){super(...arguments);this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(x){if(this._def.coerce)x.data=Number(x.data);if(this._getType(x)!==P.number){let X=this._getOrReturnCtx(x);return Z(X,{code:I.invalid_type,expected:P.number,received:X.parsedType}),l}let W=void 0,Y=new d0;for(let X of this._def.checks)if(X.kind==="int"){if(!e.isInteger(x.data))W=this._getOrReturnCtx(x,W),Z(W,{code:I.invalid_type,expected:"integer",received:"float",message:X.message}),Y.dirty()}else if(X.kind==="min"){if(X.inclusive?x.data<X.value:x.data<=X.value)W=this._getOrReturnCtx(x,W),Z(W,{code:I.too_small,minimum:X.value,type:"number",inclusive:X.inclusive,exact:!1,message:X.message}),Y.dirty()}else if(X.kind==="max"){if(X.inclusive?x.data>X.value:x.data>=X.value)W=this._getOrReturnCtx(x,W),Z(W,{code:I.too_big,maximum:X.value,type:"number",inclusive:X.inclusive,exact:!1,message:X.message}),Y.dirty()}else if(X.kind==="multipleOf"){if(Bj(x.data,X.value)!==0)W=this._getOrReturnCtx(x,W),Z(W,{code:I.not_multiple_of,multipleOf:X.value,message:X.message}),Y.dirty()}else if(X.kind==="finite"){if(!Number.isFinite(x.data))W=this._getOrReturnCtx(x,W),Z(W,{code:I.not_finite,message:X.message}),Y.dirty()}else e.assertNever(X);return{status:Y.value,value:x.data}}gte(x,Q){return this.setLimit("min",x,!0,T.toString(Q))}gt(x,Q){return this.setLimit("min",x,!1,T.toString(Q))}lte(x,Q){return this.setLimit("max",x,!0,T.toString(Q))}lt(x,Q){return this.setLimit("max",x,!1,T.toString(Q))}setLimit(x,Q,W,Y){return new E4({...this._def,checks:[...this._def.checks,{kind:x,value:Q,inclusive:W,message:T.toString(Y)}]})}_addCheck(x){return new E4({...this._def,checks:[...this._def.checks,x]})}int(x){return this._addCheck({kind:"int",message:T.toString(x)})}positive(x){return this._addCheck({kind:"min",value:0,inclusive:!1,message:T.toString(x)})}negative(x){return this._addCheck({kind:"max",value:0,inclusive:!1,message:T.toString(x)})}nonpositive(x){return this._addCheck({kind:"max",value:0,inclusive:!0,message:T.toString(x)})}nonnegative(x){return this._addCheck({kind:"min",value:0,inclusive:!0,message:T.toString(x)})}multipleOf(x,Q){return this._addCheck({kind:"multipleOf",value:x,message:T.toString(Q)})}finite(x){return this._addCheck({kind:"finite",message:T.toString(x)})}safe(x){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:T.toString(x)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:T.toString(x)})}get minValue(){let x=null;for(let Q of this._def.checks)if(Q.kind==="min"){if(x===null||Q.value>x)x=Q.value}return x}get maxValue(){let x=null;for(let Q of this._def.checks)if(Q.kind==="max"){if(x===null||Q.value<x)x=Q.value}return x}get isInt(){return!!this._def.checks.find((x)=>x.kind==="int"||x.kind==="multipleOf"&&e.isInteger(x.value))}get isFinite(){let x=null,Q=null;for(let W of this._def.checks)if(W.kind==="finite"||W.kind==="int"||W.kind==="multipleOf")return!0;else if(W.kind==="min"){if(Q===null||W.value>Q)Q=W.value}else if(W.kind==="max"){if(x===null||W.value<x)x=W.value}return Number.isFinite(Q)&&Number.isFinite(x)}}E4.create=(x)=>{return new E4({checks:[],typeName:E.ZodNumber,coerce:x?.coerce||!1,...g(x)})};class S4 extends r{constructor(){super(...arguments);this.min=this.gte,this.max=this.lte}_parse(x){if(this._def.coerce)try{x.data=BigInt(x.data)}catch{return this._getInvalidInput(x)}if(this._getType(x)!==P.bigint)return this._getInvalidInput(x);let W=void 0,Y=new d0;for(let X of this._def.checks)if(X.kind==="min"){if(X.inclusive?x.data<X.value:x.data<=X.value)W=this._getOrReturnCtx(x,W),Z(W,{code:I.too_small,type:"bigint",minimum:X.value,inclusive:X.inclusive,message:X.message}),Y.dirty()}else if(X.kind==="max"){if(X.inclusive?x.data>X.value:x.data>=X.value)W=this._getOrReturnCtx(x,W),Z(W,{code:I.too_big,type:"bigint",maximum:X.value,inclusive:X.inclusive,message:X.message}),Y.dirty()}else if(X.kind==="multipleOf"){if(x.data%X.value!==BigInt(0))W=this._getOrReturnCtx(x,W),Z(W,{code:I.not_multiple_of,multipleOf:X.value,message:X.message}),Y.dirty()}else e.assertNever(X);return{status:Y.value,value:x.data}}_getInvalidInput(x){let Q=this._getOrReturnCtx(x);return Z(Q,{code:I.invalid_type,expected:P.bigint,received:Q.parsedType}),l}gte(x,Q){return this.setLimit("min",x,!0,T.toString(Q))}gt(x,Q){return this.setLimit("min",x,!1,T.toString(Q))}lte(x,Q){return this.setLimit("max",x,!0,T.toString(Q))}lt(x,Q){return this.setLimit("max",x,!1,T.toString(Q))}setLimit(x,Q,W,Y){return new S4({...this._def,checks:[...this._def.checks,{kind:x,value:Q,inclusive:W,message:T.toString(Y)}]})}_addCheck(x){return new S4({...this._def,checks:[...this._def.checks,x]})}positive(x){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:T.toString(x)})}negative(x){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:T.toString(x)})}nonpositive(x){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:T.toString(x)})}nonnegative(x){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:T.toString(x)})}multipleOf(x,Q){return this._addCheck({kind:"multipleOf",value:x,message:T.toString(Q)})}get minValue(){let x=null;for(let Q of this._def.checks)if(Q.kind==="min"){if(x===null||Q.value>x)x=Q.value}return x}get maxValue(){let x=null;for(let Q of this._def.checks)if(Q.kind==="max"){if(x===null||Q.value<x)x=Q.value}return x}}S4.create=(x)=>{return new S4({checks:[],typeName:E.ZodBigInt,coerce:x?.coerce??!1,...g(x)})};class dx extends r{_parse(x){if(this._def.coerce)x.data=Boolean(x.data);if(this._getType(x)!==P.boolean){let W=this._getOrReturnCtx(x);return Z(W,{code:I.invalid_type,expected:P.boolean,received:W.parsedType}),l}return Y1(x.data)}}dx.create=(x)=>{return new dx({typeName:E.ZodBoolean,coerce:x?.coerce||!1,...g(x)})};class bx extends r{_parse(x){if(this._def.coerce)x.data=new Date(x.data);if(this._getType(x)!==P.date){let X=this._getOrReturnCtx(x);return Z(X,{code:I.invalid_type,expected:P.date,received:X.parsedType}),l}if(Number.isNaN(x.data.getTime())){let X=this._getOrReturnCtx(x);return Z(X,{code:I.invalid_date}),l}let W=new d0,Y=void 0;for(let X of this._def.checks)if(X.kind==="min"){if(x.data.getTime()<X.value)Y=this._getOrReturnCtx(x,Y),Z(Y,{code:I.too_small,message:X.message,inclusive:!0,exact:!1,minimum:X.value,type:"date"}),W.dirty()}else if(X.kind==="max"){if(x.data.getTime()>X.value)Y=this._getOrReturnCtx(x,Y),Z(Y,{code:I.too_big,message:X.message,inclusive:!0,exact:!1,maximum:X.value,type:"date"}),W.dirty()}else e.assertNever(X);return{status:W.value,value:new Date(x.data.getTime())}}_addCheck(x){return new bx({...this._def,checks:[...this._def.checks,x]})}min(x,Q){return this._addCheck({kind:"min",value:x.getTime(),message:T.toString(Q)})}max(x,Q){return this._addCheck({kind:"max",value:x.getTime(),message:T.toString(Q)})}get minDate(){let x=null;for(let Q of this._def.checks)if(Q.kind==="min"){if(x===null||Q.value>x)x=Q.value}return x!=null?new Date(x):null}get maxDate(){let x=null;for(let Q of this._def.checks)if(Q.kind==="max"){if(x===null||Q.value<x)x=Q.value}return x!=null?new Date(x):null}}bx.create=(x)=>{return new bx({checks:[],coerce:x?.coerce||!1,typeName:E.ZodDate,...g(x)})};class z6 extends r{_parse(x){if(this._getType(x)!==P.symbol){let W=this._getOrReturnCtx(x);return Z(W,{code:I.invalid_type,expected:P.symbol,received:W.parsedType}),l}return Y1(x.data)}}z6.create=(x)=>{return new z6({typeName:E.ZodSymbol,...g(x)})};class rx extends r{_parse(x){if(this._getType(x)!==P.undefined){let W=this._getOrReturnCtx(x);return Z(W,{code:I.invalid_type,expected:P.undefined,received:W.parsedType}),l}return Y1(x.data)}}rx.create=(x)=>{return new rx({typeName:E.ZodUndefined,...g(x)})};class sx extends r{_parse(x){if(this._getType(x)!==P.null){let W=this._getOrReturnCtx(x);return Z(W,{code:I.invalid_type,expected:P.null,received:W.parsedType}),l}return Y1(x.data)}}sx.create=(x)=>{return new sx({typeName:E.ZodNull,...g(x)})};class zx extends r{constructor(){super(...arguments);this._any=!0}_parse(x){return Y1(x.data)}}zx.create=(x)=>{return new zx({typeName:E.ZodAny,...g(x)})};class I4 extends r{constructor(){super(...arguments);this._unknown=!0}_parse(x){return Y1(x.data)}}I4.create=(x)=>{return new I4({typeName:E.ZodUnknown,...g(x)})};class X4 extends r{_parse(x){let Q=this._getOrReturnCtx(x);return Z(Q,{code:I.invalid_type,expected:P.never,received:Q.parsedType}),l}}X4.create=(x)=>{return new X4({typeName:E.ZodNever,...g(x)})};class v6 extends r{_parse(x){if(this._getType(x)!==P.undefined){let W=this._getOrReturnCtx(x);return Z(W,{code:I.invalid_type,expected:P.void,received:W.parsedType}),l}return Y1(x.data)}}v6.create=(x)=>{return new v6({typeName:E.ZodVoid,...g(x)})};class m1 extends r{_parse(x){let{ctx:Q,status:W}=this._processInputParams(x),Y=this._def;if(Q.parsedType!==P.array)return Z(Q,{code:I.invalid_type,expected:P.array,received:Q.parsedType}),l;if(Y.exactLength!==null){let J=Q.data.length>Y.exactLength.value,G=Q.data.length<Y.exactLength.value;if(J||G)Z(Q,{code:J?I.too_big:I.too_small,minimum:G?Y.exactLength.value:void 0,maximum:J?Y.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:Y.exactLength.message}),W.dirty()}if(Y.minLength!==null){if(Q.data.length<Y.minLength.value)Z(Q,{code:I.too_small,minimum:Y.minLength.value,type:"array",inclusive:!0,exact:!1,message:Y.minLength.message}),W.dirty()}if(Y.maxLength!==null){if(Q.data.length>Y.maxLength.value)Z(Q,{code:I.too_big,maximum:Y.maxLength.value,type:"array",inclusive:!0,exact:!1,message:Y.maxLength.message}),W.dirty()}if(Q.common.async)return Promise.all([...Q.data].map((J,G)=>{return Y.type._parseAsync(new f1(Q,J,Q.path,G))})).then((J)=>{return d0.mergeArray(W,J)});let X=[...Q.data].map((J,G)=>{return Y.type._parseSync(new f1(Q,J,Q.path,G))});return d0.mergeArray(W,X)}get element(){return this._def.type}min(x,Q){return new m1({...this._def,minLength:{value:x,message:T.toString(Q)}})}max(x,Q){return new m1({...this._def,maxLength:{value:x,message:T.toString(Q)}})}length(x,Q){return new m1({...this._def,exactLength:{value:x,message:T.toString(Q)}})}nonempty(x){return this.min(1,x)}}m1.create=(x,Q)=>{return new m1({type:x,minLength:null,maxLength:null,exactLength:null,typeName:E.ZodArray,...g(Q)})};function ox(x){if(x instanceof E0){let Q={};for(let W in x.shape){let Y=x.shape[W];Q[W]=D1.create(ox(Y))}return new E0({...x._def,shape:()=>Q})}else if(x instanceof m1)return new m1({...x._def,type:ox(x.element)});else if(x instanceof D1)return D1.create(ox(x.unwrap()));else if(x instanceof K4)return K4.create(ox(x.unwrap()));else if(x instanceof J4)return J4.create(x.items.map((Q)=>ox(Q)));else return x}class E0 extends r{constructor(){super(...arguments);this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let x=this._def.shape(),Q=e.objectKeys(x);return this._cached={shape:x,keys:Q},this._cached}_parse(x){if(this._getType(x)!==P.object){let b=this._getOrReturnCtx(x);return Z(b,{code:I.invalid_type,expected:P.object,received:b.parsedType}),l}let{status:W,ctx:Y}=this._processInputParams(x),{shape:X,keys:J}=this._getCached(),G=[];if(!(this._def.catchall instanceof X4&&this._def.unknownKeys==="strip")){for(let b in Y.data)if(!J.includes(b))G.push(b)}let $=[];for(let b of J){let z=X[b],v=Y.data[b];$.push({key:{status:"valid",value:b},value:z._parse(new f1(Y,v,Y.path,b)),alwaysSet:b in Y.data})}if(this._def.catchall instanceof X4){let b=this._def.unknownKeys;if(b==="passthrough")for(let z of G)$.push({key:{status:"valid",value:z},value:{status:"valid",value:Y.data[z]}});else if(b==="strict"){if(G.length>0)Z(Y,{code:I.unrecognized_keys,keys:G}),W.dirty()}else if(b==="strip");else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let b=this._def.catchall;for(let z of G){let v=Y.data[z];$.push({key:{status:"valid",value:z},value:b._parse(new f1(Y,v,Y.path,z)),alwaysSet:z in Y.data})}}if(Y.common.async)return Promise.resolve().then(async()=>{let b=[];for(let z of $){let v=await z.key,B=await z.value;b.push({key:v,value:B,alwaysSet:z.alwaysSet})}return b}).then((b)=>{return d0.mergeObjectSync(W,b)});else return d0.mergeObjectSync(W,$)}get shape(){return this._def.shape()}strict(x){return T.errToObj,new E0({...this._def,unknownKeys:"strict",...x!==void 0?{errorMap:(Q,W)=>{let Y=this._def.errorMap?.(Q,W).message??W.defaultError;if(Q.code==="unrecognized_keys")return{message:T.errToObj(x).message??Y};return{message:Y}}}:{}})}strip(){return new E0({...this._def,unknownKeys:"strip"})}passthrough(){return new E0({...this._def,unknownKeys:"passthrough"})}extend(x){return new E0({...this._def,shape:()=>({...this._def.shape(),...x})})}merge(x){return new E0({unknownKeys:x._def.unknownKeys,catchall:x._def.catchall,shape:()=>({...this._def.shape(),...x._def.shape()}),typeName:E.ZodObject})}setKey(x,Q){return this.augment({[x]:Q})}catchall(x){return new E0({...this._def,catchall:x})}pick(x){let Q={};for(let W of e.objectKeys(x))if(x[W]&&this.shape[W])Q[W]=this.shape[W];return new E0({...this._def,shape:()=>Q})}omit(x){let Q={};for(let W of e.objectKeys(this.shape))if(!x[W])Q[W]=this.shape[W];return new E0({...this._def,shape:()=>Q})}deepPartial(){return ox(this)}partial(x){let Q={};for(let W of e.objectKeys(this.shape)){let Y=this.shape[W];if(x&&!x[W])Q[W]=Y;else Q[W]=Y.optional()}return new E0({...this._def,shape:()=>Q})}required(x){let Q={};for(let W of e.objectKeys(this.shape))if(x&&!x[W])Q[W]=this.shape[W];else{let X=this.shape[W];while(X instanceof D1)X=X._def.innerType;Q[W]=X}return new E0({...this._def,shape:()=>Q})}keyof(){return cz(e.objectKeys(this.shape))}}E0.create=(x,Q)=>{return new E0({shape:()=>x,unknownKeys:"strip",catchall:X4.create(),typeName:E.ZodObject,...g(Q)})};E0.strictCreate=(x,Q)=>{return new E0({shape:()=>x,unknownKeys:"strict",catchall:X4.create(),typeName:E.ZodObject,...g(Q)})};E0.lazycreate=(x,Q)=>{return new E0({shape:x,unknownKeys:"strip",catchall:X4.create(),typeName:E.ZodObject,...g(Q)})};class tx extends r{_parse(x){let{ctx:Q}=this._processInputParams(x),W=this._def.options;function Y(X){for(let G of X)if(G.result.status==="valid")return G.result;for(let G of X)if(G.result.status==="dirty")return Q.common.issues.push(...G.ctx.common.issues),G.result;let J=X.map((G)=>new K1(G.ctx.common.issues));return Z(Q,{code:I.invalid_union,unionErrors:J}),l}if(Q.common.async)return Promise.all(W.map(async(X)=>{let J={...Q,common:{...Q.common,issues:[]},parent:null};return{result:await X._parseAsync({data:Q.data,path:Q.path,parent:J}),ctx:J}})).then(Y);else{let X=void 0,J=[];for(let $ of W){let b={...Q,common:{...Q.common,issues:[]},parent:null},z=$._parseSync({data:Q.data,path:Q.path,parent:b});if(z.status==="valid")return z;else if(z.status==="dirty"&&!X)X={result:z,ctx:b};if(b.common.issues.length)J.push(b.common.issues)}if(X)return Q.common.issues.push(...X.ctx.common.issues),X.result;let G=J.map(($)=>new K1($));return Z(Q,{code:I.invalid_union,unionErrors:G}),l}}get options(){return this._def.options}}tx.create=(x,Q)=>{return new tx({options:x,typeName:E.ZodUnion,...g(Q)})};var w4=(x)=>{if(x instanceof x8)return w4(x.schema);else if(x instanceof y1)return w4(x.innerType());else if(x instanceof Q8)return[x.value];else if(x instanceof P4)return x.options;else if(x instanceof W8)return e.objectValues(x.enum);else if(x instanceof Y8)return w4(x._def.innerType);else if(x instanceof rx)return[void 0];else if(x instanceof sx)return[null];else if(x instanceof D1)return[void 0,...w4(x.unwrap())];else if(x instanceof K4)return[null,...w4(x.unwrap())];else if(x instanceof s9)return w4(x.unwrap());else if(x instanceof J8)return w4(x.unwrap());else if(x instanceof X8)return w4(x._def.innerType);else return[]};class r9 extends r{_parse(x){let{ctx:Q}=this._processInputParams(x);if(Q.parsedType!==P.object)return Z(Q,{code:I.invalid_type,expected:P.object,received:Q.parsedType}),l;let W=this.discriminator,Y=Q.data[W],X=this.optionsMap.get(Y);if(!X)return Z(Q,{code:I.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[W]}),l;if(Q.common.async)return X._parseAsync({data:Q.data,path:Q.path,parent:Q});else return X._parseSync({data:Q.data,path:Q.path,parent:Q})}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(x,Q,W){let Y=new Map;for(let X of Q){let J=w4(X.shape[x]);if(!J.length)throw Error(`A discriminator value for key \`${x}\` could not be extracted from all schema options`);for(let G of J){if(Y.has(G))throw Error(`Discriminator property ${String(x)} has duplicate value ${String(G)}`);Y.set(G,X)}}return new r9({typeName:E.ZodDiscriminatedUnion,discriminator:x,options:Q,optionsMap:Y,...g(W)})}}function YQ(x,Q){let W=Y4(x),Y=Y4(Q);if(x===Q)return{valid:!0,data:x};else if(W===P.object&&Y===P.object){let X=e.objectKeys(Q),J=e.objectKeys(x).filter(($)=>X.indexOf($)!==-1),G={...x,...Q};for(let $ of J){let b=YQ(x[$],Q[$]);if(!b.valid)return{valid:!1};G[$]=b.data}return{valid:!0,data:G}}else if(W===P.array&&Y===P.array){if(x.length!==Q.length)return{valid:!1};let X=[];for(let J=0;J<x.length;J++){let G=x[J],$=Q[J],b=YQ(G,$);if(!b.valid)return{valid:!1};X.push(b.data)}return{valid:!0,data:X}}else if(W===P.date&&Y===P.date&&+x===+Q)return{valid:!0,data:x};else return{valid:!1}}class ex extends r{_parse(x){let{status:Q,ctx:W}=this._processInputParams(x),Y=(X,J)=>{if(a9(X)||a9(J))return l;let G=YQ(X.value,J.value);if(!G.valid)return Z(W,{code:I.invalid_intersection_types}),l;if(d9(X)||d9(J))Q.dirty();return{status:Q.value,value:G.data}};if(W.common.async)return Promise.all([this._def.left._parseAsync({data:W.data,path:W.path,parent:W}),this._def.right._parseAsync({data:W.data,path:W.path,parent:W})]).then(([X,J])=>Y(X,J));else return Y(this._def.left._parseSync({data:W.data,path:W.path,parent:W}),this._def.right._parseSync({data:W.data,path:W.path,parent:W}))}}ex.create=(x,Q,W)=>{return new ex({left:x,right:Q,typeName:E.ZodIntersection,...g(W)})};class J4 extends r{_parse(x){let{status:Q,ctx:W}=this._processInputParams(x);if(W.parsedType!==P.array)return Z(W,{code:I.invalid_type,expected:P.array,received:W.parsedType}),l;if(W.data.length<this._def.items.length)return Z(W,{code:I.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),l;if(!this._def.rest&&W.data.length>this._def.items.length)Z(W,{code:I.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Q.dirty();let X=[...W.data].map((J,G)=>{let $=this._def.items[G]||this._def.rest;if(!$)return null;return $._parse(new f1(W,J,W.path,G))}).filter((J)=>!!J);if(W.common.async)return Promise.all(X).then((J)=>{return d0.mergeArray(Q,J)});else return d0.mergeArray(Q,X)}get items(){return this._def.items}rest(x){return new J4({...this._def,rest:x})}}J4.create=(x,Q)=>{if(!Array.isArray(x))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new J4({items:x,typeName:E.ZodTuple,rest:null,...g(Q)})};class B6 extends r{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(x){let{status:Q,ctx:W}=this._processInputParams(x);if(W.parsedType!==P.object)return Z(W,{code:I.invalid_type,expected:P.object,received:W.parsedType}),l;let Y=[],X=this._def.keyType,J=this._def.valueType;for(let G in W.data)Y.push({key:X._parse(new f1(W,G,W.path,G)),value:J._parse(new f1(W,W.data[G],W.path,G)),alwaysSet:G in W.data});if(W.common.async)return d0.mergeObjectAsync(Q,Y);else return d0.mergeObjectSync(Q,Y)}get element(){return this._def.valueType}static create(x,Q,W){if(Q instanceof r)return new B6({keyType:x,valueType:Q,typeName:E.ZodRecord,...g(W)});return new B6({keyType:n1.create(),valueType:x,typeName:E.ZodRecord,...g(Q)})}}class w6 extends r{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(x){let{status:Q,ctx:W}=this._processInputParams(x);if(W.parsedType!==P.map)return Z(W,{code:I.invalid_type,expected:P.map,received:W.parsedType}),l;let Y=this._def.keyType,X=this._def.valueType,J=[...W.data.entries()].map(([G,$],b)=>{return{key:Y._parse(new f1(W,G,W.path,[b,"key"])),value:X._parse(new f1(W,$,W.path,[b,"value"]))}});if(W.common.async){let G=new Map;return Promise.resolve().then(async()=>{for(let $ of J){let b=await $.key,z=await $.value;if(b.status==="aborted"||z.status==="aborted")return l;if(b.status==="dirty"||z.status==="dirty")Q.dirty();G.set(b.value,z.value)}return{status:Q.value,value:G}})}else{let G=new Map;for(let $ of J){let{key:b,value:z}=$;if(b.status==="aborted"||z.status==="aborted")return l;if(b.status==="dirty"||z.status==="dirty")Q.dirty();G.set(b.value,z.value)}return{status:Q.value,value:G}}}}w6.create=(x,Q,W)=>{return new w6({valueType:Q,keyType:x,typeName:E.ZodMap,...g(W)})};class vx extends r{_parse(x){let{status:Q,ctx:W}=this._processInputParams(x);if(W.parsedType!==P.set)return Z(W,{code:I.invalid_type,expected:P.set,received:W.parsedType}),l;let Y=this._def;if(Y.minSize!==null){if(W.data.size<Y.minSize.value)Z(W,{code:I.too_small,minimum:Y.minSize.value,type:"set",inclusive:!0,exact:!1,message:Y.minSize.message}),Q.dirty()}if(Y.maxSize!==null){if(W.data.size>Y.maxSize.value)Z(W,{code:I.too_big,maximum:Y.maxSize.value,type:"set",inclusive:!0,exact:!1,message:Y.maxSize.message}),Q.dirty()}let X=this._def.valueType;function J($){let b=new Set;for(let z of $){if(z.status==="aborted")return l;if(z.status==="dirty")Q.dirty();b.add(z.value)}return{status:Q.value,value:b}}let G=[...W.data.values()].map(($,b)=>X._parse(new f1(W,$,W.path,b)));if(W.common.async)return Promise.all(G).then(($)=>J($));else return J(G)}min(x,Q){return new vx({...this._def,minSize:{value:x,message:T.toString(Q)}})}max(x,Q){return new vx({...this._def,maxSize:{value:x,message:T.toString(Q)}})}size(x,Q){return this.min(x,Q).max(x,Q)}nonempty(x){return this.min(1,x)}}vx.create=(x,Q)=>{return new vx({valueType:x,minSize:null,maxSize:null,typeName:E.ZodSet,...g(Q)})};class ax extends r{constructor(){super(...arguments);this.validate=this.implement}_parse(x){let{ctx:Q}=this._processInputParams(x);if(Q.parsedType!==P.function)return Z(Q,{code:I.invalid_type,expected:P.function,received:Q.parsedType}),l;function W(G,$){return b6({data:G,path:Q.path,errorMaps:[Q.common.contextualErrorMap,Q.schemaErrorMap,gx(),B4].filter((b)=>!!b),issueData:{code:I.invalid_arguments,argumentsError:$}})}function Y(G,$){return b6({data:G,path:Q.path,errorMaps:[Q.common.contextualErrorMap,Q.schemaErrorMap,gx(),B4].filter((b)=>!!b),issueData:{code:I.invalid_return_type,returnTypeError:$}})}let X={errorMap:Q.common.contextualErrorMap},J=Q.data;if(this._def.returns instanceof Bx){let G=this;return Y1(async function(...$){let b=new K1([]),z=await G._def.args.parseAsync($,X).catch((K)=>{throw b.addIssue(W($,K)),b}),v=await Reflect.apply(J,this,z);return await G._def.returns._def.type.parseAsync(v,X).catch((K)=>{throw b.addIssue(Y(v,K)),b})})}else{let G=this;return Y1(function(...$){let b=G._def.args.safeParse($,X);if(!b.success)throw new K1([W($,b.error)]);let z=Reflect.apply(J,this,b.data),v=G._def.returns.safeParse(z,X);if(!v.success)throw new K1([Y(z,v.error)]);return v.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...x){return new ax({...this._def,args:J4.create(x).rest(I4.create())})}returns(x){return new ax({...this._def,returns:x})}implement(x){return this.parse(x)}strictImplement(x){return this.parse(x)}static create(x,Q,W){return new ax({args:x?x:J4.create([]).rest(I4.create()),returns:Q||I4.create(),typeName:E.ZodFunction,...g(W)})}}class x8 extends r{get schema(){return this._def.getter()}_parse(x){let{ctx:Q}=this._processInputParams(x);return this._def.getter()._parse({data:Q.data,path:Q.path,parent:Q})}}x8.create=(x,Q)=>{return new x8({getter:x,typeName:E.ZodLazy,...g(Q)})};class Q8 extends r{_parse(x){if(x.data!==this._def.value){let Q=this._getOrReturnCtx(x);return Z(Q,{received:Q.data,code:I.invalid_literal,expected:this._def.value}),l}return{status:"valid",value:x.data}}get value(){return this._def.value}}Q8.create=(x,Q)=>{return new Q8({value:x,typeName:E.ZodLiteral,...g(Q)})};function cz(x,Q){return new P4({values:x,typeName:E.ZodEnum,...g(Q)})}class P4 extends r{_parse(x){if(typeof x.data!=="string"){let Q=this._getOrReturnCtx(x),W=this._def.values;return Z(Q,{expected:e.joinValues(W),received:Q.parsedType,code:I.invalid_type}),l}if(!this._cache)this._cache=new Set(this._def.values);if(!this._cache.has(x.data)){let Q=this._getOrReturnCtx(x),W=this._def.values;return Z(Q,{received:Q.data,code:I.invalid_enum_value,options:W}),l}return Y1(x.data)}get options(){return this._def.values}get enum(){let x={};for(let Q of this._def.values)x[Q]=Q;return x}get Values(){let x={};for(let Q of this._def.values)x[Q]=Q;return x}get Enum(){let x={};for(let Q of this._def.values)x[Q]=Q;return x}extract(x,Q=this._def){return P4.create(x,{...this._def,...Q})}exclude(x,Q=this._def){return P4.create(this.options.filter((W)=>!x.includes(W)),{...this._def,...Q})}}P4.create=cz;class W8 extends r{_parse(x){let Q=e.getValidEnumValues(this._def.values),W=this._getOrReturnCtx(x);if(W.parsedType!==P.string&&W.parsedType!==P.number){let Y=e.objectValues(Q);return Z(W,{expected:e.joinValues(Y),received:W.parsedType,code:I.invalid_type}),l}if(!this._cache)this._cache=new Set(e.getValidEnumValues(this._def.values));if(!this._cache.has(x.data)){let Y=e.objectValues(Q);return Z(W,{received:W.data,code:I.invalid_enum_value,options:Y}),l}return Y1(x.data)}get enum(){return this._def.values}}W8.create=(x,Q)=>{return new W8({values:x,typeName:E.ZodNativeEnum,...g(Q)})};class Bx extends r{unwrap(){return this._def.type}_parse(x){let{ctx:Q}=this._processInputParams(x);if(Q.parsedType!==P.promise&&Q.common.async===!1)return Z(Q,{code:I.invalid_type,expected:P.promise,received:Q.parsedType}),l;let W=Q.parsedType===P.promise?Q.data:Promise.resolve(Q.data);return Y1(W.then((Y)=>{return this._def.type.parseAsync(Y,{path:Q.path,errorMap:Q.common.contextualErrorMap})}))}}Bx.create=(x,Q)=>{return new Bx({type:x,typeName:E.ZodPromise,...g(Q)})};class y1 extends r{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===E.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(x){let{status:Q,ctx:W}=this._processInputParams(x),Y=this._def.effect||null,X={addIssue:(J)=>{if(Z(W,J),J.fatal)Q.abort();else Q.dirty()},get path(){return W.path}};if(X.addIssue=X.addIssue.bind(X),Y.type==="preprocess"){let J=Y.transform(W.data,X);if(W.common.async)return Promise.resolve(J).then(async(G)=>{if(Q.value==="aborted")return l;let $=await this._def.schema._parseAsync({data:G,path:W.path,parent:W});if($.status==="aborted")return l;if($.status==="dirty")return $x($.value);if(Q.value==="dirty")return $x($.value);return $});else{if(Q.value==="aborted")return l;let G=this._def.schema._parseSync({data:J,path:W.path,parent:W});if(G.status==="aborted")return l;if(G.status==="dirty")return $x(G.value);if(Q.value==="dirty")return $x(G.value);return G}}if(Y.type==="refinement"){let J=(G)=>{let $=Y.refinement(G,X);if(W.common.async)return Promise.resolve($);if($ instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return G};if(W.common.async===!1){let G=this._def.schema._parseSync({data:W.data,path:W.path,parent:W});if(G.status==="aborted")return l;if(G.status==="dirty")Q.dirty();return J(G.value),{status:Q.value,value:G.value}}else return this._def.schema._parseAsync({data:W.data,path:W.path,parent:W}).then((G)=>{if(G.status==="aborted")return l;if(G.status==="dirty")Q.dirty();return J(G.value).then(()=>{return{status:Q.value,value:G.value}})})}if(Y.type==="transform")if(W.common.async===!1){let J=this._def.schema._parseSync({data:W.data,path:W.path,parent:W});if(!O4(J))return l;let G=Y.transform(J.value,X);if(G instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:Q.value,value:G}}else return this._def.schema._parseAsync({data:W.data,path:W.path,parent:W}).then((J)=>{if(!O4(J))return l;return Promise.resolve(Y.transform(J.value,X)).then((G)=>({status:Q.value,value:G}))});e.assertNever(Y)}}y1.create=(x,Q,W)=>{return new y1({schema:x,typeName:E.ZodEffects,effect:Q,...g(W)})};y1.createWithPreprocess=(x,Q,W)=>{return new y1({schema:Q,effect:{type:"preprocess",transform:x},typeName:E.ZodEffects,...g(W)})};class D1 extends r{_parse(x){if(this._getType(x)===P.undefined)return Y1(void 0);return this._def.innerType._parse(x)}unwrap(){return this._def.innerType}}D1.create=(x,Q)=>{return new D1({innerType:x,typeName:E.ZodOptional,...g(Q)})};class K4 extends r{_parse(x){if(this._getType(x)===P.null)return Y1(null);return this._def.innerType._parse(x)}unwrap(){return this._def.innerType}}K4.create=(x,Q)=>{return new K4({innerType:x,typeName:E.ZodNullable,...g(Q)})};class Y8 extends r{_parse(x){let{ctx:Q}=this._processInputParams(x),W=Q.data;if(Q.parsedType===P.undefined)W=this._def.defaultValue();return this._def.innerType._parse({data:W,path:Q.path,parent:Q})}removeDefault(){return this._def.innerType}}Y8.create=(x,Q)=>{return new Y8({innerType:x,typeName:E.ZodDefault,defaultValue:typeof Q.default==="function"?Q.default:()=>Q.default,...g(Q)})};class X8 extends r{_parse(x){let{ctx:Q}=this._processInputParams(x),W={...Q,common:{...Q.common,issues:[]}},Y=this._def.innerType._parse({data:W.data,path:W.path,parent:{...W}});if(hx(Y))return Y.then((X)=>{return{status:"valid",value:X.status==="valid"?X.value:this._def.catchValue({get error(){return new K1(W.common.issues)},input:W.data})}});else return{status:"valid",value:Y.status==="valid"?Y.value:this._def.catchValue({get error(){return new K1(W.common.issues)},input:W.data})}}removeCatch(){return this._def.innerType}}X8.create=(x,Q)=>{return new X8({innerType:x,typeName:E.ZodCatch,catchValue:typeof Q.catch==="function"?Q.catch:()=>Q.catch,...g(Q)})};class K6 extends r{_parse(x){if(this._getType(x)!==P.nan){let W=this._getOrReturnCtx(x);return Z(W,{code:I.invalid_type,expected:P.nan,received:W.parsedType}),l}return{status:"valid",value:x.data}}}K6.create=(x)=>{return new K6({typeName:E.ZodNaN,...g(x)})};var wj=Symbol("zod_brand");class s9 extends r{_parse(x){let{ctx:Q}=this._processInputParams(x),W=Q.data;return this._def.type._parse({data:W,path:Q.path,parent:Q})}unwrap(){return this._def.type}}class H6 extends r{_parse(x){let{status:Q,ctx:W}=this._processInputParams(x);if(W.common.async)return(async()=>{let X=await this._def.in._parseAsync({data:W.data,path:W.path,parent:W});if(X.status==="aborted")return l;if(X.status==="dirty")return Q.dirty(),$x(X.value);else return this._def.out._parseAsync({data:X.value,path:W.path,parent:W})})();else{let Y=this._def.in._parseSync({data:W.data,path:W.path,parent:W});if(Y.status==="aborted")return l;if(Y.status==="dirty")return Q.dirty(),{status:"dirty",value:Y.value};else return this._def.out._parseSync({data:Y.value,path:W.path,parent:W})}}static create(x,Q){return new H6({in:x,out:Q,typeName:E.ZodPipeline})}}class J8 extends r{_parse(x){let Q=this._def.innerType._parse(x),W=(Y)=>{if(O4(Y))Y.value=Object.freeze(Y.value);return Y};return hx(Q)?Q.then((Y)=>W(Y)):W(Q)}unwrap(){return this._def.innerType}}J8.create=(x,Q)=>{return new J8({innerType:x,typeName:E.ZodReadonly,...g(Q)})};function Lz(x,Q){let W=typeof x==="function"?x(Q):typeof x==="string"?{message:x}:x;return typeof W==="string"?{message:W}:W}function jz(x,Q={},W){if(x)return zx.create().superRefine((Y,X)=>{let J=x(Y);if(J instanceof Promise)return J.then((G)=>{if(!G){let $=Lz(Q,Y),b=$.fatal??W??!0;X.addIssue({code:"custom",...$,fatal:b})}});if(!J){let G=Lz(Q,Y),$=G.fatal??W??!0;X.addIssue({code:"custom",...G,fatal:$})}return});return zx.create()}var Kj={object:E0.lazycreate},E;(function(x){x.ZodString="ZodString",x.ZodNumber="ZodNumber",x.ZodNaN="ZodNaN",x.ZodBigInt="ZodBigInt",x.ZodBoolean="ZodBoolean",x.ZodDate="ZodDate",x.ZodSymbol="ZodSymbol",x.ZodUndefined="ZodUndefined",x.ZodNull="ZodNull",x.ZodAny="ZodAny",x.ZodUnknown="ZodUnknown",x.ZodNever="ZodNever",x.ZodVoid="ZodVoid",x.ZodArray="ZodArray",x.ZodObject="ZodObject",x.ZodUnion="ZodUnion",x.ZodDiscriminatedUnion="ZodDiscriminatedUnion",x.ZodIntersection="ZodIntersection",x.ZodTuple="ZodTuple",x.ZodRecord="ZodRecord",x.ZodMap="ZodMap",x.ZodSet="ZodSet",x.ZodFunction="ZodFunction",x.ZodLazy="ZodLazy",x.ZodLiteral="ZodLiteral",x.ZodEnum="ZodEnum",x.ZodEffects="ZodEffects",x.ZodNativeEnum="ZodNativeEnum",x.ZodOptional="ZodOptional",x.ZodNullable="ZodNullable",x.ZodDefault="ZodDefault",x.ZodCatch="ZodCatch",x.ZodPromise="ZodPromise",x.ZodBranded="ZodBranded",x.ZodPipeline="ZodPipeline",x.ZodReadonly="ZodReadonly"})(E||(E={}));var Hj=(x,Q={message:`Input not instance of ${x.name}`})=>jz((W)=>W instanceof x,Q),Az=n1.create,Oz=E4.create,Vj=K6.create,qj=S4.create,Iz=dx.create,Nj=bx.create,Uj=z6.create,Lj=rx.create,Fj=sx.create,Mj=zx.create,Dj=I4.create,cj=X4.create,jj=v6.create,Aj=m1.create,XQ=E0.create,Oj=E0.strictCreate,Ij=tx.create,Ej=r9.create,Sj=ex.create,Pj=J4.create,Rj=B6.create,Zj=w6.create,ij=vx.create,Cj=ax.create,Tj=x8.create,kj=Q8.create,_j=P4.create,uj=W8.create,pj=Bx.create,lj=y1.create,nj=D1.create,mj=K4.create,fj=y1.createWithPreprocess,yj=H6.create,gj=()=>Az().optional(),hj=()=>Oz().optional(),oj=()=>Iz().optional(),aj={string:(x)=>n1.create({...x,coerce:!0}),number:(x)=>E4.create({...x,coerce:!0}),boolean:(x)=>dx.create({...x,coerce:!0}),bigint:(x)=>S4.create({...x,coerce:!0}),date:(x)=>bx.create({...x,coerce:!0})};var dj=l;var rj=Object.freeze({status:"aborted"});function j(x,Q,W){function Y($,b){var z;Object.defineProperty($,"_zod",{value:$._zod??{},enumerable:!1}),(z=$._zod).traits??(z.traits=new Set),$._zod.traits.add(x),Q($,b);for(let v in G.prototype)if(!(v in $))Object.defineProperty($,v,{value:G.prototype[v].bind($)});$._zod.constr=G,$._zod.def=b}let X=W?.Parent??Object;class J extends X{}Object.defineProperty(J,"name",{value:x});function G($){var b;let z=W?.Parent?new J:this;Y(z,$),(b=z._zod).deferred??(b.deferred=[]);for(let v of z._zod.deferred)v();return z}return Object.defineProperty(G,"init",{value:Y}),Object.defineProperty(G,Symbol.hasInstance,{value:($)=>{if(W?.Parent&&$ instanceof W.Parent)return!0;return $?._zod?.traits?.has(x)}}),Object.defineProperty(G,"name",{value:x}),G}var sj=Symbol("zod_brand");class R4 extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}var t9={};function c1(x){if(x)Object.assign(t9,x);return t9}var Q0={};i8(Q0,{unwrapMessage:()=>V6,stringifyPrimitive:()=>Q7,required:()=>HA,randomString:()=>JA,propertyKeyTypes:()=>vQ,promiseAllObject:()=>XA,primitiveTypes:()=>Ez,prefixIssues:()=>G4,pick:()=>zA,partial:()=>KA,optionalKeys:()=>BQ,omit:()=>vA,numKeys:()=>GA,nullish:()=>U6,normalizeParams:()=>n,merge:()=>wA,jsonStringifyReplacer:()=>GQ,joinValues:()=>e9,issue:()=>KQ,isPlainObject:()=>$8,isObject:()=>G8,getSizableOrigin:()=>Pz,getParsedType:()=>$A,getLengthableOrigin:()=>F6,getEnumValues:()=>q6,getElementAtPath:()=>YA,floatSafeRemainder:()=>$Q,finalizeIssue:()=>g1,extend:()=>BA,escapeRegex:()=>Z4,esc:()=>wx,defineLazy:()=>q0,createTransparentProxy:()=>bA,clone:()=>j1,cleanRegex:()=>L6,cleanEnum:()=>VA,captureStackTrace:()=>x7,cached:()=>N6,assignProp:()=>bQ,assertNotEqual:()=>ej,assertNever:()=>QA,assertIs:()=>xA,assertEqual:()=>tj,assert:()=>WA,allowsEval:()=>zQ,aborted:()=>Kx,NUMBER_FORMAT_RANGES:()=>wQ,Class:()=>Rz,BIGINT_FORMAT_RANGES:()=>Sz});function tj(x){return x}function ej(x){return x}function xA(x){}function QA(x){throw Error()}function WA(x){}function q6(x){let Q=Object.values(x).filter((Y)=>typeof Y==="number");return Object.entries(x).filter(([Y,X])=>Q.indexOf(+Y)===-1).map(([Y,X])=>X)}function e9(x,Q="|"){return x.map((W)=>Q7(W)).join(Q)}function GQ(x,Q){if(typeof Q==="bigint")return Q.toString();return Q}function N6(x){return{get value(){{let W=x();return Object.defineProperty(this,"value",{value:W}),W}throw Error("cached value already set")}}}function U6(x){return x===null||x===void 0}function L6(x){let Q=x.startsWith("^")?1:0,W=x.endsWith("$")?x.length-1:x.length;return x.slice(Q,W)}function $Q(x,Q){let W=(x.toString().split(".")[1]||"").length,Y=(Q.toString().split(".")[1]||"").length,X=W>Y?W:Y,J=Number.parseInt(x.toFixed(X).replace(".","")),G=Number.parseInt(Q.toFixed(X).replace(".",""));return J%G/10**X}function q0(x,Q,W){Object.defineProperty(x,Q,{get(){{let X=W();return x[Q]=X,X}throw Error("cached value already set")},set(X){Object.defineProperty(x,Q,{value:X})},configurable:!0})}function bQ(x,Q,W){Object.defineProperty(x,Q,{value:W,writable:!0,enumerable:!0,configurable:!0})}function YA(x,Q){if(!Q)return x;return Q.reduce((W,Y)=>W?.[Y],x)}function XA(x){let Q=Object.keys(x),W=Q.map((Y)=>x[Y]);return Promise.all(W).then((Y)=>{let X={};for(let J=0;J<Q.length;J++)X[Q[J]]=Y[J];return X})}function JA(x=10){let W="";for(let Y=0;Y<x;Y++)W+="abcdefghijklmnopqrstuvwxyz"[Math.floor(Math.random()*26)];return W}function wx(x){return JSON.stringify(x)}var x7=Error.captureStackTrace?Error.captureStackTrace:(...x)=>{};function G8(x){return typeof x==="object"&&x!==null&&!Array.isArray(x)}var zQ=N6(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return new Function(""),!0}catch(x){return!1}});function $8(x){if(G8(x)===!1)return!1;let Q=x.constructor;if(Q===void 0)return!0;let W=Q.prototype;if(G8(W)===!1)return!1;if(Object.prototype.hasOwnProperty.call(W,"isPrototypeOf")===!1)return!1;return!0}function GA(x){let Q=0;for(let W in x)if(Object.prototype.hasOwnProperty.call(x,W))Q++;return Q}var $A=(x)=>{let Q=typeof x;switch(Q){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(x)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":if(Array.isArray(x))return"array";if(x===null)return"null";if(x.then&&typeof x.then==="function"&&x.catch&&typeof x.catch==="function")return"promise";if(typeof Map<"u"&&x instanceof Map)return"map";if(typeof Set<"u"&&x instanceof Set)return"set";if(typeof Date<"u"&&x instanceof Date)return"date";if(typeof File<"u"&&x instanceof File)return"file";return"object";default:throw Error(`Unknown data type: ${Q}`)}},vQ=new Set(["string","number","symbol"]),Ez=new Set(["string","number","bigint","boolean","symbol","undefined"]);function Z4(x){return x.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function j1(x,Q,W){let Y=new x._zod.constr(Q??x._zod.def);if(!Q||W?.parent)Y._zod.parent=x;return Y}function n(x){let Q=x;if(!Q)return{};if(typeof Q==="string")return{error:()=>Q};if(Q?.message!==void 0){if(Q?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");Q.error=Q.message}if(delete Q.message,typeof Q.error==="string")return{...Q,error:()=>Q.error};return Q}function bA(x){let Q;return new Proxy({},{get(W,Y,X){return Q??(Q=x()),Reflect.get(Q,Y,X)},set(W,Y,X,J){return Q??(Q=x()),Reflect.set(Q,Y,X,J)},has(W,Y){return Q??(Q=x()),Reflect.has(Q,Y)},deleteProperty(W,Y){return Q??(Q=x()),Reflect.deleteProperty(Q,Y)},ownKeys(W){return Q??(Q=x()),Reflect.ownKeys(Q)},getOwnPropertyDescriptor(W,Y){return Q??(Q=x()),Reflect.getOwnPropertyDescriptor(Q,Y)},defineProperty(W,Y,X){return Q??(Q=x()),Reflect.defineProperty(Q,Y,X)}})}function Q7(x){if(typeof x==="bigint")return x.toString()+"n";if(typeof x==="string")return`"${x}"`;return`${x}`}function BQ(x){return Object.keys(x).filter((Q)=>{return x[Q]._zod.optin==="optional"&&x[Q]._zod.optout==="optional"})}var wQ={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-340282346638528860000000000000000000000,340282346638528860000000000000000000000],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},Sz={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function zA(x,Q){let W={},Y=x._zod.def;for(let X in Q){if(!(X in Y.shape))throw Error(`Unrecognized key: "${X}"`);if(!Q[X])continue;W[X]=Y.shape[X]}return j1(x,{...x._zod.def,shape:W,checks:[]})}function vA(x,Q){let W={...x._zod.def.shape},Y=x._zod.def;for(let X in Q){if(!(X in Y.shape))throw Error(`Unrecognized key: "${X}"`);if(!Q[X])continue;delete W[X]}return j1(x,{...x._zod.def,shape:W,checks:[]})}function BA(x,Q){if(!$8(Q))throw Error("Invalid input to extend: expected a plain object");let W={...x._zod.def,get shape(){let Y={...x._zod.def.shape,...Q};return bQ(this,"shape",Y),Y},checks:[]};return j1(x,W)}function wA(x,Q){return j1(x,{...x._zod.def,get shape(){let W={...x._zod.def.shape,...Q._zod.def.shape};return bQ(this,"shape",W),W},catchall:Q._zod.def.catchall,checks:[]})}function KA(x,Q,W){let Y=Q._zod.def.shape,X={...Y};if(W)for(let J in W){if(!(J in Y))throw Error(`Unrecognized key: "${J}"`);if(!W[J])continue;X[J]=x?new x({type:"optional",innerType:Y[J]}):Y[J]}else for(let J in Y)X[J]=x?new x({type:"optional",innerType:Y[J]}):Y[J];return j1(Q,{...Q._zod.def,shape:X,checks:[]})}function HA(x,Q,W){let Y=Q._zod.def.shape,X={...Y};if(W)for(let J in W){if(!(J in X))throw Error(`Unrecognized key: "${J}"`);if(!W[J])continue;X[J]=new x({type:"nonoptional",innerType:Y[J]})}else for(let J in Y)X[J]=new x({type:"nonoptional",innerType:Y[J]});return j1(Q,{...Q._zod.def,shape:X,checks:[]})}function Kx(x,Q=0){for(let W=Q;W<x.issues.length;W++)if(x.issues[W]?.continue!==!0)return!0;return!1}function G4(x,Q){return Q.map((W)=>{var Y;return(Y=W).path??(Y.path=[]),W.path.unshift(x),W})}function V6(x){return typeof x==="string"?x:x?.message}function g1(x,Q,W){let Y={...x,path:x.path??[]};if(!x.message){let X=V6(x.inst?._zod.def?.error?.(x))??V6(Q?.error?.(x))??V6(W.customError?.(x))??V6(W.localeError?.(x))??"Invalid input";Y.message=X}if(delete Y.inst,delete Y.continue,!Q?.reportInput)delete Y.input;return Y}function Pz(x){if(x instanceof Set)return"set";if(x instanceof Map)return"map";if(x instanceof File)return"file";return"unknown"}function F6(x){if(Array.isArray(x))return"array";if(typeof x==="string")return"string";return"unknown"}function KQ(...x){let[Q,W,Y]=x;if(typeof Q==="string")return{message:Q,code:"custom",input:W,inst:Y};return{...Q}}function VA(x){return Object.entries(x).filter(([Q,W])=>{return Number.isNaN(Number.parseInt(Q,10))}).map((Q)=>Q[1])}class Rz{constructor(...x){}}var Zz=(x,Q)=>{x.name="$ZodError",Object.defineProperty(x,"_zod",{value:x._zod,enumerable:!1}),Object.defineProperty(x,"issues",{value:Q,enumerable:!1}),Object.defineProperty(x,"message",{get(){return JSON.stringify(Q,GQ,2)},enumerable:!0}),Object.defineProperty(x,"toString",{value:()=>x.message,enumerable:!1})},W7=j("$ZodError",Zz),M6=j("$ZodError",Zz,{Parent:Error});function HQ(x,Q=(W)=>W.message){let W={},Y=[];for(let X of x.issues)if(X.path.length>0)W[X.path[0]]=W[X.path[0]]||[],W[X.path[0]].push(Q(X));else Y.push(Q(X));return{formErrors:Y,fieldErrors:W}}function VQ(x,Q){let W=Q||function(J){return J.message},Y={_errors:[]},X=(J)=>{for(let G of J.issues)if(G.code==="invalid_union"&&G.errors.length)G.errors.map(($)=>X({issues:$}));else if(G.code==="invalid_key")X({issues:G.issues});else if(G.code==="invalid_element")X({issues:G.issues});else if(G.path.length===0)Y._errors.push(W(G));else{let $=Y,b=0;while(b<G.path.length){let z=G.path[b];if(b!==G.path.length-1)$[z]=$[z]||{_errors:[]};else $[z]=$[z]||{_errors:[]},$[z]._errors.push(W(G));$=$[z],b++}}};return X(x),Y}var qQ=(x)=>(Q,W,Y,X)=>{let J=Y?Object.assign(Y,{async:!1}):{async:!1},G=Q._zod.run({value:W,issues:[]},J);if(G instanceof Promise)throw new R4;if(G.issues.length){let $=new(X?.Err??x)(G.issues.map((b)=>g1(b,J,c1())));throw x7($,X?.callee),$}return G.value},NQ=qQ(M6),UQ=(x)=>async(Q,W,Y,X)=>{let J=Y?Object.assign(Y,{async:!0}):{async:!0},G=Q._zod.run({value:W,issues:[]},J);if(G instanceof Promise)G=await G;if(G.issues.length){let $=new(X?.Err??x)(G.issues.map((b)=>g1(b,J,c1())));throw x7($,X?.callee),$}return G.value},LQ=UQ(M6),FQ=(x)=>(Q,W,Y)=>{let X=Y?{...Y,async:!1}:{async:!1},J=Q._zod.run({value:W,issues:[]},X);if(J instanceof Promise)throw new R4;return J.issues.length?{success:!1,error:new(x??W7)(J.issues.map((G)=>g1(G,X,c1())))}:{success:!0,data:J.value}},Hx=FQ(M6),MQ=(x)=>async(Q,W,Y)=>{let X=Y?Object.assign(Y,{async:!0}):{async:!0},J=Q._zod.run({value:W,issues:[]},X);if(J instanceof Promise)J=await J;return J.issues.length?{success:!1,error:new x(J.issues.map((G)=>g1(G,X,c1())))}:{success:!0,data:J.value}},Vx=MQ(M6);var iz=/^[cC][^\s-]{8,}$/,Cz=/^[0-9a-z]+$/,Tz=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,kz=/^[0-9a-vA-V]{20}$/,_z=/^[A-Za-z0-9]{27}$/,uz=/^[a-zA-Z0-9_-]{21}$/,pz=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/;var lz=/^([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})$/,DQ=(x)=>{if(!x)return/^([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)$/;return new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${x}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`)};var nz=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/;function mz(){return new RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")}var fz=/^(?:(?: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])$/,yz=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})$/,gz=/^((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])$/,hz=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,oz=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,cQ=/^[A-Za-z0-9_-]*$/,az=/^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/;var dz=/^\+(?:[0-9]){6,14}[0-9]$/,rz="(?:(?:\\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])))",sz=new RegExp(`^${rz}$`);function tz(x){return typeof x.precision==="number"?x.precision===-1?"(?:[01]\\d|2[0-3]):[0-5]\\d":x.precision===0?"(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d":`(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{${x.precision}}`:"(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?"}function ez(x){return new RegExp(`^${tz(x)}$`)}function xv(x){let Q=tz({precision:x.precision}),W=["Z"];if(x.local)W.push("");if(x.offset)W.push("([+-]\\d{2}:\\d{2})");let Y=`${Q}(?:${W.join("|")})`;return new RegExp(`^${rz}T(?:${Y})$`)}var Qv=(x)=>{let Q=x?`[\\s\\S]{${x?.minimum??0},${x?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${Q}$`)};var Wv=/^\d+$/,Yv=/^-?\d+(?:\.\d+)?/i,Xv=/true|false/i,Jv=/null/i;var Gv=/^[^A-Z]*$/,$v=/^[^a-z]*$/;var r0=j("$ZodCheck",(x,Q)=>{var W;x._zod??(x._zod={}),x._zod.def=Q,(W=x._zod).onattach??(W.onattach=[])}),bv={number:"number",bigint:"bigint",object:"date"},jQ=j("$ZodCheckLessThan",(x,Q)=>{r0.init(x,Q);let W=bv[typeof Q.value];x._zod.onattach.push((Y)=>{let X=Y._zod.bag,J=(Q.inclusive?X.maximum:X.exclusiveMaximum)??Number.POSITIVE_INFINITY;if(Q.value<J)if(Q.inclusive)X.maximum=Q.value;else X.exclusiveMaximum=Q.value}),x._zod.check=(Y)=>{if(Q.inclusive?Y.value<=Q.value:Y.value<Q.value)return;Y.issues.push({origin:W,code:"too_big",maximum:Q.value,input:Y.value,inclusive:Q.inclusive,inst:x,continue:!Q.abort})}}),AQ=j("$ZodCheckGreaterThan",(x,Q)=>{r0.init(x,Q);let W=bv[typeof Q.value];x._zod.onattach.push((Y)=>{let X=Y._zod.bag,J=(Q.inclusive?X.minimum:X.exclusiveMinimum)??Number.NEGATIVE_INFINITY;if(Q.value>J)if(Q.inclusive)X.minimum=Q.value;else X.exclusiveMinimum=Q.value}),x._zod.check=(Y)=>{if(Q.inclusive?Y.value>=Q.value:Y.value>Q.value)return;Y.issues.push({origin:W,code:"too_small",minimum:Q.value,input:Y.value,inclusive:Q.inclusive,inst:x,continue:!Q.abort})}}),zv=j("$ZodCheckMultipleOf",(x,Q)=>{r0.init(x,Q),x._zod.onattach.push((W)=>{var Y;(Y=W._zod.bag).multipleOf??(Y.multipleOf=Q.value)}),x._zod.check=(W)=>{if(typeof W.value!==typeof Q.value)throw Error("Cannot mix number and bigint in multiple_of check.");if(typeof W.value==="bigint"?W.value%Q.value===BigInt(0):$Q(W.value,Q.value)===0)return;W.issues.push({origin:typeof W.value,code:"not_multiple_of",divisor:Q.value,input:W.value,inst:x,continue:!Q.abort})}}),vv=j("$ZodCheckNumberFormat",(x,Q)=>{r0.init(x,Q),Q.format=Q.format||"float64";let W=Q.format?.includes("int"),Y=W?"int":"number",[X,J]=wQ[Q.format];x._zod.onattach.push((G)=>{let $=G._zod.bag;if($.format=Q.format,$.minimum=X,$.maximum=J,W)$.pattern=Wv}),x._zod.check=(G)=>{let $=G.value;if(W){if(!Number.isInteger($)){G.issues.push({expected:Y,format:Q.format,code:"invalid_type",input:$,inst:x});return}if(!Number.isSafeInteger($)){if($>0)G.issues.push({input:$,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:x,origin:Y,continue:!Q.abort});else G.issues.push({input:$,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:x,origin:Y,continue:!Q.abort});return}}if($<X)G.issues.push({origin:"number",input:$,code:"too_small",minimum:X,inclusive:!0,inst:x,continue:!Q.abort});if($>J)G.issues.push({origin:"number",input:$,code:"too_big",maximum:J,inst:x})}});var Bv=j("$ZodCheckMaxLength",(x,Q)=>{var W;r0.init(x,Q),(W=x._zod.def).when??(W.when=(Y)=>{let X=Y.value;return!U6(X)&&X.length!==void 0}),x._zod.onattach.push((Y)=>{let X=Y._zod.bag.maximum??Number.POSITIVE_INFINITY;if(Q.maximum<X)Y._zod.bag.maximum=Q.maximum}),x._zod.check=(Y)=>{let X=Y.value;if(X.length<=Q.maximum)return;let G=F6(X);Y.issues.push({origin:G,code:"too_big",maximum:Q.maximum,inclusive:!0,input:X,inst:x,continue:!Q.abort})}}),wv=j("$ZodCheckMinLength",(x,Q)=>{var W;r0.init(x,Q),(W=x._zod.def).when??(W.when=(Y)=>{let X=Y.value;return!U6(X)&&X.length!==void 0}),x._zod.onattach.push((Y)=>{let X=Y._zod.bag.minimum??Number.NEGATIVE_INFINITY;if(Q.minimum>X)Y._zod.bag.minimum=Q.minimum}),x._zod.check=(Y)=>{let X=Y.value;if(X.length>=Q.minimum)return;let G=F6(X);Y.issues.push({origin:G,code:"too_small",minimum:Q.minimum,inclusive:!0,input:X,inst:x,continue:!Q.abort})}}),Kv=j("$ZodCheckLengthEquals",(x,Q)=>{var W;r0.init(x,Q),(W=x._zod.def).when??(W.when=(Y)=>{let X=Y.value;return!U6(X)&&X.length!==void 0}),x._zod.onattach.push((Y)=>{let X=Y._zod.bag;X.minimum=Q.length,X.maximum=Q.length,X.length=Q.length}),x._zod.check=(Y)=>{let X=Y.value,J=X.length;if(J===Q.length)return;let G=F6(X),$=J>Q.length;Y.issues.push({origin:G,...$?{code:"too_big",maximum:Q.length}:{code:"too_small",minimum:Q.length},inclusive:!0,exact:!0,input:Y.value,inst:x,continue:!Q.abort})}}),D6=j("$ZodCheckStringFormat",(x,Q)=>{var W,Y;if(r0.init(x,Q),x._zod.onattach.push((X)=>{let J=X._zod.bag;if(J.format=Q.format,Q.pattern)J.patterns??(J.patterns=new Set),J.patterns.add(Q.pattern)}),Q.pattern)(W=x._zod).check??(W.check=(X)=>{if(Q.pattern.lastIndex=0,Q.pattern.test(X.value))return;X.issues.push({origin:"string",code:"invalid_format",format:Q.format,input:X.value,...Q.pattern?{pattern:Q.pattern.toString()}:{},inst:x,continue:!Q.abort})});else(Y=x._zod).check??(Y.check=()=>{})}),Hv=j("$ZodCheckRegex",(x,Q)=>{D6.init(x,Q),x._zod.check=(W)=>{if(Q.pattern.lastIndex=0,Q.pattern.test(W.value))return;W.issues.push({origin:"string",code:"invalid_format",format:"regex",input:W.value,pattern:Q.pattern.toString(),inst:x,continue:!Q.abort})}}),Vv=j("$ZodCheckLowerCase",(x,Q)=>{Q.pattern??(Q.pattern=Gv),D6.init(x,Q)}),qv=j("$ZodCheckUpperCase",(x,Q)=>{Q.pattern??(Q.pattern=$v),D6.init(x,Q)}),Nv=j("$ZodCheckIncludes",(x,Q)=>{r0.init(x,Q);let W=Z4(Q.includes),Y=new RegExp(typeof Q.position==="number"?`^.{${Q.position}}${W}`:W);Q.pattern=Y,x._zod.onattach.push((X)=>{let J=X._zod.bag;J.patterns??(J.patterns=new Set),J.patterns.add(Y)}),x._zod.check=(X)=>{if(X.value.includes(Q.includes,Q.position))return;X.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:Q.includes,input:X.value,inst:x,continue:!Q.abort})}}),Uv=j("$ZodCheckStartsWith",(x,Q)=>{r0.init(x,Q);let W=new RegExp(`^${Z4(Q.prefix)}.*`);Q.pattern??(Q.pattern=W),x._zod.onattach.push((Y)=>{let X=Y._zod.bag;X.patterns??(X.patterns=new Set),X.patterns.add(W)}),x._zod.check=(Y)=>{if(Y.value.startsWith(Q.prefix))return;Y.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:Q.prefix,input:Y.value,inst:x,continue:!Q.abort})}}),Lv=j("$ZodCheckEndsWith",(x,Q)=>{r0.init(x,Q);let W=new RegExp(`.*${Z4(Q.suffix)}$`);Q.pattern??(Q.pattern=W),x._zod.onattach.push((Y)=>{let X=Y._zod.bag;X.patterns??(X.patterns=new Set),X.patterns.add(W)}),x._zod.check=(Y)=>{if(Y.value.endsWith(Q.suffix))return;Y.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:Q.suffix,input:Y.value,inst:x,continue:!Q.abort})}});var Fv=j("$ZodCheckOverwrite",(x,Q)=>{r0.init(x,Q),x._zod.check=(W)=>{W.value=Q.tx(W.value)}});class OQ{constructor(x=[]){if(this.content=[],this.indent=0,this)this.args=x}indented(x){this.indent+=1,x(this),this.indent-=1}write(x){if(typeof x==="function"){x(this,{execution:"sync"}),x(this,{execution:"async"});return}let W=x.split(`
36
36
  `).filter((J)=>J),Y=Math.min(...W.map((J)=>J.length-J.trimStart().length)),X=W.map((J)=>J.slice(Y)).map((J)=>" ".repeat(this.indent*2)+J);for(let J of X)this.content.push(J)}compile(){let x=Function,Q=this?.args,Y=[...(this?.content??[""]).map((X)=>` ${X}`)];return new x(...Q,Y.join(`
37
- `))}}var Uv={major:4,minor:0,patch:0};var w0=j("$ZodType",(x,Q)=>{var W;x??(x={}),x._zod.def=Q,x._zod.bag=x._zod.bag||{},x._zod.version=Uv;let Y=[...x._zod.def.checks??[]];if(x._zod.traits.has("$ZodCheck"))Y.unshift(x);for(let X of Y)for(let J of X._zod.onattach)J(x);if(Y.length===0)(W=x._zod).deferred??(W.deferred=[]),x._zod.deferred?.push(()=>{x._zod.run=x._zod.parse});else{let X=(J,G,$)=>{let b=Kx(J),z;for(let v of G){if(v._zod.def.when){if(!v._zod.def.when(J))continue}else if(b)continue;let B=J.issues.length,K=v._zod.check(J);if(K instanceof Promise&&$?.async===!1)throw new R4;if(z||K instanceof Promise)z=(z??Promise.resolve()).then(async()=>{if(await K,J.issues.length===B)return;if(!b)b=Kx(J,B)});else{if(J.issues.length===B)continue;if(!b)b=Kx(J,B)}}if(z)return z.then(()=>{return J});return J};x._zod.run=(J,G)=>{let $=x._zod.parse(J,G);if($ instanceof Promise){if(G.async===!1)throw new R4;return $.then((b)=>X(b,Y,G))}return X($,Y,G)}}x["~standard"]={validate:(X)=>{try{let J=Hx(x,X);return J.success?{value:J.data}:{issues:J.error?.issues}}catch(J){return Vx(x,X).then((G)=>G.success?{value:G.data}:{issues:G.error?.issues})}},vendor:"zod",version:1}}),c6=j("$ZodString",(x,Q)=>{w0.init(x,Q),x._zod.pattern=[...x?._zod.bag?.patterns??[]].pop()??tz(x._zod.bag),x._zod.parse=(W,Y)=>{if(Q.coerce)try{W.value=String(W.value)}catch(X){}if(typeof W.value==="string")return W;return W.issues.push({expected:"string",code:"invalid_type",input:W.value,inst:x}),W}}),N0=j("$ZodStringFormat",(x,Q)=>{D6.init(x,Q),c6.init(x,Q)}),EQ=j("$ZodGUID",(x,Q)=>{Q.pattern??(Q.pattern=_z),N0.init(x,Q)}),SQ=j("$ZodUUID",(x,Q)=>{if(Q.version){let Y={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[Q.version];if(Y===void 0)throw Error(`Invalid UUID version: "${Q.version}"`);Q.pattern??(Q.pattern=DQ(Y))}else Q.pattern??(Q.pattern=DQ());N0.init(x,Q)}),PQ=j("$ZodEmail",(x,Q)=>{Q.pattern??(Q.pattern=uz),N0.init(x,Q)}),RQ=j("$ZodURL",(x,Q)=>{N0.init(x,Q),x._zod.check=(W)=>{try{let Y=W.value,X=new URL(Y),J=X.href;if(Q.hostname){if(Q.hostname.lastIndex=0,!Q.hostname.test(X.hostname))W.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:gz.source,input:W.value,inst:x,continue:!Q.abort})}if(Q.protocol){if(Q.protocol.lastIndex=0,!Q.protocol.test(X.protocol.endsWith(":")?X.protocol.slice(0,-1):X.protocol))W.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:Q.protocol.source,input:W.value,inst:x,continue:!Q.abort})}if(!Y.endsWith("/")&&J.endsWith("/"))W.value=J.slice(0,-1);else W.value=J;return}catch(Y){W.issues.push({code:"invalid_format",format:"url",input:W.value,inst:x,continue:!Q.abort})}}}),ZQ=j("$ZodEmoji",(x,Q)=>{Q.pattern??(Q.pattern=pz()),N0.init(x,Q)}),iQ=j("$ZodNanoID",(x,Q)=>{Q.pattern??(Q.pattern=Tz),N0.init(x,Q)}),CQ=j("$ZodCUID",(x,Q)=>{Q.pattern??(Q.pattern=Pz),N0.init(x,Q)}),TQ=j("$ZodCUID2",(x,Q)=>{Q.pattern??(Q.pattern=Rz),N0.init(x,Q)}),kQ=j("$ZodULID",(x,Q)=>{Q.pattern??(Q.pattern=Zz),N0.init(x,Q)}),_Q=j("$ZodXID",(x,Q)=>{Q.pattern??(Q.pattern=iz),N0.init(x,Q)}),uQ=j("$ZodKSUID",(x,Q)=>{Q.pattern??(Q.pattern=Cz),N0.init(x,Q)}),Sv=j("$ZodISODateTime",(x,Q)=>{Q.pattern??(Q.pattern=sz(Q)),N0.init(x,Q)}),Pv=j("$ZodISODate",(x,Q)=>{Q.pattern??(Q.pattern=az),N0.init(x,Q)}),Rv=j("$ZodISOTime",(x,Q)=>{Q.pattern??(Q.pattern=rz(Q)),N0.init(x,Q)}),Zv=j("$ZodISODuration",(x,Q)=>{Q.pattern??(Q.pattern=kz),N0.init(x,Q)}),pQ=j("$ZodIPv4",(x,Q)=>{Q.pattern??(Q.pattern=lz),N0.init(x,Q),x._zod.onattach.push((W)=>{let Y=W._zod.bag;Y.format="ipv4"})}),lQ=j("$ZodIPv6",(x,Q)=>{Q.pattern??(Q.pattern=nz),N0.init(x,Q),x._zod.onattach.push((W)=>{let Y=W._zod.bag;Y.format="ipv6"}),x._zod.check=(W)=>{try{new URL(`http://[${W.value}]`)}catch{W.issues.push({code:"invalid_format",format:"ipv6",input:W.value,inst:x,continue:!Q.abort})}}}),nQ=j("$ZodCIDRv4",(x,Q)=>{Q.pattern??(Q.pattern=mz),N0.init(x,Q)}),mQ=j("$ZodCIDRv6",(x,Q)=>{Q.pattern??(Q.pattern=fz),N0.init(x,Q),x._zod.check=(W)=>{let[Y,X]=W.value.split("/");try{if(!X)throw Error();let J=Number(X);if(`${J}`!==X)throw Error();if(J<0||J>128)throw Error();new URL(`http://[${Y}]`)}catch{W.issues.push({code:"invalid_format",format:"cidrv6",input:W.value,inst:x,continue:!Q.abort})}}});function iv(x){if(x==="")return!0;if(x.length%4!==0)return!1;try{return atob(x),!0}catch{return!1}}var fQ=j("$ZodBase64",(x,Q)=>{Q.pattern??(Q.pattern=yz),N0.init(x,Q),x._zod.onattach.push((W)=>{W._zod.bag.contentEncoding="base64"}),x._zod.check=(W)=>{if(iv(W.value))return;W.issues.push({code:"invalid_format",format:"base64",input:W.value,inst:x,continue:!Q.abort})}});function wA(x){if(!cQ.test(x))return!1;let Q=x.replace(/[-_]/g,(Y)=>Y==="-"?"+":"/"),W=Q.padEnd(Math.ceil(Q.length/4)*4,"=");return iv(W)}var yQ=j("$ZodBase64URL",(x,Q)=>{Q.pattern??(Q.pattern=cQ),N0.init(x,Q),x._zod.onattach.push((W)=>{W._zod.bag.contentEncoding="base64url"}),x._zod.check=(W)=>{if(wA(W.value))return;W.issues.push({code:"invalid_format",format:"base64url",input:W.value,inst:x,continue:!Q.abort})}}),gQ=j("$ZodE164",(x,Q)=>{Q.pattern??(Q.pattern=hz),N0.init(x,Q)});function KA(x,Q=null){try{let W=x.split(".");if(W.length!==3)return!1;let[Y]=W;if(!Y)return!1;let X=JSON.parse(atob(Y));if("typ"in X&&X?.typ!=="JWT")return!1;if(!X.alg)return!1;if(Q&&(!("alg"in X)||X.alg!==Q))return!1;return!0}catch{return!1}}var hQ=j("$ZodJWT",(x,Q)=>{N0.init(x,Q),x._zod.check=(W)=>{if(KA(W.value,Q.alg))return;W.issues.push({code:"invalid_format",format:"jwt",input:W.value,inst:x,continue:!Q.abort})}});var J7=j("$ZodNumber",(x,Q)=>{w0.init(x,Q),x._zod.pattern=x._zod.bag.pattern??xv,x._zod.parse=(W,Y)=>{if(Q.coerce)try{W.value=Number(W.value)}catch(G){}let X=W.value;if(typeof X==="number"&&!Number.isNaN(X)&&Number.isFinite(X))return W;let J=typeof X==="number"?Number.isNaN(X)?"NaN":!Number.isFinite(X)?"Infinity":void 0:void 0;return W.issues.push({expected:"number",code:"invalid_type",input:X,inst:x,...J?{received:J}:{}}),W}}),oQ=j("$ZodNumber",(x,Q)=>{$v.init(x,Q),J7.init(x,Q)}),aQ=j("$ZodBoolean",(x,Q)=>{w0.init(x,Q),x._zod.pattern=Qv,x._zod.parse=(W,Y)=>{if(Q.coerce)try{W.value=Boolean(W.value)}catch(J){}let X=W.value;if(typeof X==="boolean")return W;return W.issues.push({expected:"boolean",code:"invalid_type",input:X,inst:x}),W}});var dQ=j("$ZodNull",(x,Q)=>{w0.init(x,Q),x._zod.pattern=Wv,x._zod.values=new Set([null]),x._zod.parse=(W,Y)=>{let X=W.value;if(X===null)return W;return W.issues.push({expected:"null",code:"invalid_type",input:X,inst:x}),W}});var rQ=j("$ZodUnknown",(x,Q)=>{w0.init(x,Q),x._zod.parse=(W)=>W}),sQ=j("$ZodNever",(x,Q)=>{w0.init(x,Q),x._zod.parse=(W,Y)=>{return W.issues.push({expected:"never",code:"invalid_type",input:W.value,inst:x}),W}});function Fv(x,Q,W){if(x.issues.length)Q.issues.push(...G4(W,x.issues));Q.value[W]=x.value}var tQ=j("$ZodArray",(x,Q)=>{w0.init(x,Q),x._zod.parse=(W,Y)=>{let X=W.value;if(!Array.isArray(X))return W.issues.push({expected:"array",code:"invalid_type",input:X,inst:x}),W;W.value=Array(X.length);let J=[];for(let G=0;G<X.length;G++){let $=X[G],b=Q.element._zod.run({value:$,issues:[]},Y);if(b instanceof Promise)J.push(b.then((z)=>Fv(z,W,G)));else Fv(b,W,G)}if(J.length)return Promise.all(J).then(()=>W);return W}});function X7(x,Q,W){if(x.issues.length)Q.issues.push(...G4(W,x.issues));Q.value[W]=x.value}function Mv(x,Q,W,Y){if(x.issues.length)if(Y[W]===void 0)if(W in Y)Q.value[W]=void 0;else Q.value[W]=x.value;else Q.issues.push(...G4(W,x.issues));else if(x.value===void 0){if(W in Y)Q.value[W]=void 0}else Q.value[W]=x.value}var G7=j("$ZodObject",(x,Q)=>{w0.init(x,Q);let W=N6(()=>{let B=Object.keys(Q.shape);for(let w of B)if(!(Q.shape[w]instanceof w0))throw Error(`Invalid element at key "${w}": expected a Zod schema`);let K=BQ(Q.shape);return{shape:Q.shape,keys:B,keySet:new Set(B),numKeys:B.length,optionalKeys:new Set(K)}});q0(x._zod,"propValues",()=>{let B=Q.shape,K={};for(let w in B){let V=B[w]._zod;if(V.values){K[w]??(K[w]=new Set);for(let N of V.values)K[w].add(N)}}return K});let Y=(B)=>{let K=new OQ(["shape","payload","ctx"]),w=W.value,V=(U)=>{let c=wx(U);return`shape[${c}]._zod.run({ value: input[${c}], issues: [] }, ctx)`};K.write("const input = payload.value;");let N=Object.create(null),L=0;for(let U of w.keys)N[U]=`key_${L++}`;K.write("const newResult = {}");for(let U of w.keys)if(w.optionalKeys.has(U)){let c=N[U];K.write(`const ${c} = ${V(U)};`);let S=wx(U);K.write(`
37
+ `))}}var Dv={major:4,minor:0,patch:0};var w0=j("$ZodType",(x,Q)=>{var W;x??(x={}),x._zod.def=Q,x._zod.bag=x._zod.bag||{},x._zod.version=Dv;let Y=[...x._zod.def.checks??[]];if(x._zod.traits.has("$ZodCheck"))Y.unshift(x);for(let X of Y)for(let J of X._zod.onattach)J(x);if(Y.length===0)(W=x._zod).deferred??(W.deferred=[]),x._zod.deferred?.push(()=>{x._zod.run=x._zod.parse});else{let X=(J,G,$)=>{let b=Kx(J),z;for(let v of G){if(v._zod.def.when){if(!v._zod.def.when(J))continue}else if(b)continue;let B=J.issues.length,K=v._zod.check(J);if(K instanceof Promise&&$?.async===!1)throw new R4;if(z||K instanceof Promise)z=(z??Promise.resolve()).then(async()=>{if(await K,J.issues.length===B)return;if(!b)b=Kx(J,B)});else{if(J.issues.length===B)continue;if(!b)b=Kx(J,B)}}if(z)return z.then(()=>{return J});return J};x._zod.run=(J,G)=>{let $=x._zod.parse(J,G);if($ instanceof Promise){if(G.async===!1)throw new R4;return $.then((b)=>X(b,Y,G))}return X($,Y,G)}}x["~standard"]={validate:(X)=>{try{let J=Hx(x,X);return J.success?{value:J.data}:{issues:J.error?.issues}}catch(J){return Vx(x,X).then((G)=>G.success?{value:G.data}:{issues:G.error?.issues})}},vendor:"zod",version:1}}),c6=j("$ZodString",(x,Q)=>{w0.init(x,Q),x._zod.pattern=[...x?._zod.bag?.patterns??[]].pop()??Qv(x._zod.bag),x._zod.parse=(W,Y)=>{if(Q.coerce)try{W.value=String(W.value)}catch(X){}if(typeof W.value==="string")return W;return W.issues.push({expected:"string",code:"invalid_type",input:W.value,inst:x}),W}}),N0=j("$ZodStringFormat",(x,Q)=>{D6.init(x,Q),c6.init(x,Q)}),EQ=j("$ZodGUID",(x,Q)=>{Q.pattern??(Q.pattern=lz),N0.init(x,Q)}),SQ=j("$ZodUUID",(x,Q)=>{if(Q.version){let Y={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[Q.version];if(Y===void 0)throw Error(`Invalid UUID version: "${Q.version}"`);Q.pattern??(Q.pattern=DQ(Y))}else Q.pattern??(Q.pattern=DQ());N0.init(x,Q)}),PQ=j("$ZodEmail",(x,Q)=>{Q.pattern??(Q.pattern=nz),N0.init(x,Q)}),RQ=j("$ZodURL",(x,Q)=>{N0.init(x,Q),x._zod.check=(W)=>{try{let Y=W.value,X=new URL(Y),J=X.href;if(Q.hostname){if(Q.hostname.lastIndex=0,!Q.hostname.test(X.hostname))W.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:az.source,input:W.value,inst:x,continue:!Q.abort})}if(Q.protocol){if(Q.protocol.lastIndex=0,!Q.protocol.test(X.protocol.endsWith(":")?X.protocol.slice(0,-1):X.protocol))W.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:Q.protocol.source,input:W.value,inst:x,continue:!Q.abort})}if(!Y.endsWith("/")&&J.endsWith("/"))W.value=J.slice(0,-1);else W.value=J;return}catch(Y){W.issues.push({code:"invalid_format",format:"url",input:W.value,inst:x,continue:!Q.abort})}}}),ZQ=j("$ZodEmoji",(x,Q)=>{Q.pattern??(Q.pattern=mz()),N0.init(x,Q)}),iQ=j("$ZodNanoID",(x,Q)=>{Q.pattern??(Q.pattern=uz),N0.init(x,Q)}),CQ=j("$ZodCUID",(x,Q)=>{Q.pattern??(Q.pattern=iz),N0.init(x,Q)}),TQ=j("$ZodCUID2",(x,Q)=>{Q.pattern??(Q.pattern=Cz),N0.init(x,Q)}),kQ=j("$ZodULID",(x,Q)=>{Q.pattern??(Q.pattern=Tz),N0.init(x,Q)}),_Q=j("$ZodXID",(x,Q)=>{Q.pattern??(Q.pattern=kz),N0.init(x,Q)}),uQ=j("$ZodKSUID",(x,Q)=>{Q.pattern??(Q.pattern=_z),N0.init(x,Q)}),Zv=j("$ZodISODateTime",(x,Q)=>{Q.pattern??(Q.pattern=xv(Q)),N0.init(x,Q)}),iv=j("$ZodISODate",(x,Q)=>{Q.pattern??(Q.pattern=sz),N0.init(x,Q)}),Cv=j("$ZodISOTime",(x,Q)=>{Q.pattern??(Q.pattern=ez(Q)),N0.init(x,Q)}),Tv=j("$ZodISODuration",(x,Q)=>{Q.pattern??(Q.pattern=pz),N0.init(x,Q)}),pQ=j("$ZodIPv4",(x,Q)=>{Q.pattern??(Q.pattern=fz),N0.init(x,Q),x._zod.onattach.push((W)=>{let Y=W._zod.bag;Y.format="ipv4"})}),lQ=j("$ZodIPv6",(x,Q)=>{Q.pattern??(Q.pattern=yz),N0.init(x,Q),x._zod.onattach.push((W)=>{let Y=W._zod.bag;Y.format="ipv6"}),x._zod.check=(W)=>{try{new URL(`http://[${W.value}]`)}catch{W.issues.push({code:"invalid_format",format:"ipv6",input:W.value,inst:x,continue:!Q.abort})}}}),nQ=j("$ZodCIDRv4",(x,Q)=>{Q.pattern??(Q.pattern=gz),N0.init(x,Q)}),mQ=j("$ZodCIDRv6",(x,Q)=>{Q.pattern??(Q.pattern=hz),N0.init(x,Q),x._zod.check=(W)=>{let[Y,X]=W.value.split("/");try{if(!X)throw Error();let J=Number(X);if(`${J}`!==X)throw Error();if(J<0||J>128)throw Error();new URL(`http://[${Y}]`)}catch{W.issues.push({code:"invalid_format",format:"cidrv6",input:W.value,inst:x,continue:!Q.abort})}}});function kv(x){if(x==="")return!0;if(x.length%4!==0)return!1;try{return atob(x),!0}catch{return!1}}var fQ=j("$ZodBase64",(x,Q)=>{Q.pattern??(Q.pattern=oz),N0.init(x,Q),x._zod.onattach.push((W)=>{W._zod.bag.contentEncoding="base64"}),x._zod.check=(W)=>{if(kv(W.value))return;W.issues.push({code:"invalid_format",format:"base64",input:W.value,inst:x,continue:!Q.abort})}});function NA(x){if(!cQ.test(x))return!1;let Q=x.replace(/[-_]/g,(Y)=>Y==="-"?"+":"/"),W=Q.padEnd(Math.ceil(Q.length/4)*4,"=");return kv(W)}var yQ=j("$ZodBase64URL",(x,Q)=>{Q.pattern??(Q.pattern=cQ),N0.init(x,Q),x._zod.onattach.push((W)=>{W._zod.bag.contentEncoding="base64url"}),x._zod.check=(W)=>{if(NA(W.value))return;W.issues.push({code:"invalid_format",format:"base64url",input:W.value,inst:x,continue:!Q.abort})}}),gQ=j("$ZodE164",(x,Q)=>{Q.pattern??(Q.pattern=dz),N0.init(x,Q)});function UA(x,Q=null){try{let W=x.split(".");if(W.length!==3)return!1;let[Y]=W;if(!Y)return!1;let X=JSON.parse(atob(Y));if("typ"in X&&X?.typ!=="JWT")return!1;if(!X.alg)return!1;if(Q&&(!("alg"in X)||X.alg!==Q))return!1;return!0}catch{return!1}}var hQ=j("$ZodJWT",(x,Q)=>{N0.init(x,Q),x._zod.check=(W)=>{if(UA(W.value,Q.alg))return;W.issues.push({code:"invalid_format",format:"jwt",input:W.value,inst:x,continue:!Q.abort})}});var J7=j("$ZodNumber",(x,Q)=>{w0.init(x,Q),x._zod.pattern=x._zod.bag.pattern??Yv,x._zod.parse=(W,Y)=>{if(Q.coerce)try{W.value=Number(W.value)}catch(G){}let X=W.value;if(typeof X==="number"&&!Number.isNaN(X)&&Number.isFinite(X))return W;let J=typeof X==="number"?Number.isNaN(X)?"NaN":!Number.isFinite(X)?"Infinity":void 0:void 0;return W.issues.push({expected:"number",code:"invalid_type",input:X,inst:x,...J?{received:J}:{}}),W}}),oQ=j("$ZodNumber",(x,Q)=>{vv.init(x,Q),J7.init(x,Q)}),aQ=j("$ZodBoolean",(x,Q)=>{w0.init(x,Q),x._zod.pattern=Xv,x._zod.parse=(W,Y)=>{if(Q.coerce)try{W.value=Boolean(W.value)}catch(J){}let X=W.value;if(typeof X==="boolean")return W;return W.issues.push({expected:"boolean",code:"invalid_type",input:X,inst:x}),W}});var dQ=j("$ZodNull",(x,Q)=>{w0.init(x,Q),x._zod.pattern=Jv,x._zod.values=new Set([null]),x._zod.parse=(W,Y)=>{let X=W.value;if(X===null)return W;return W.issues.push({expected:"null",code:"invalid_type",input:X,inst:x}),W}});var rQ=j("$ZodUnknown",(x,Q)=>{w0.init(x,Q),x._zod.parse=(W)=>W}),sQ=j("$ZodNever",(x,Q)=>{w0.init(x,Q),x._zod.parse=(W,Y)=>{return W.issues.push({expected:"never",code:"invalid_type",input:W.value,inst:x}),W}});function cv(x,Q,W){if(x.issues.length)Q.issues.push(...G4(W,x.issues));Q.value[W]=x.value}var tQ=j("$ZodArray",(x,Q)=>{w0.init(x,Q),x._zod.parse=(W,Y)=>{let X=W.value;if(!Array.isArray(X))return W.issues.push({expected:"array",code:"invalid_type",input:X,inst:x}),W;W.value=Array(X.length);let J=[];for(let G=0;G<X.length;G++){let $=X[G],b=Q.element._zod.run({value:$,issues:[]},Y);if(b instanceof Promise)J.push(b.then((z)=>cv(z,W,G)));else cv(b,W,G)}if(J.length)return Promise.all(J).then(()=>W);return W}});function X7(x,Q,W){if(x.issues.length)Q.issues.push(...G4(W,x.issues));Q.value[W]=x.value}function jv(x,Q,W,Y){if(x.issues.length)if(Y[W]===void 0)if(W in Y)Q.value[W]=void 0;else Q.value[W]=x.value;else Q.issues.push(...G4(W,x.issues));else if(x.value===void 0){if(W in Y)Q.value[W]=void 0}else Q.value[W]=x.value}var G7=j("$ZodObject",(x,Q)=>{w0.init(x,Q);let W=N6(()=>{let B=Object.keys(Q.shape);for(let w of B)if(!(Q.shape[w]instanceof w0))throw Error(`Invalid element at key "${w}": expected a Zod schema`);let K=BQ(Q.shape);return{shape:Q.shape,keys:B,keySet:new Set(B),numKeys:B.length,optionalKeys:new Set(K)}});q0(x._zod,"propValues",()=>{let B=Q.shape,K={};for(let w in B){let V=B[w]._zod;if(V.values){K[w]??(K[w]=new Set);for(let N of V.values)K[w].add(N)}}return K});let Y=(B)=>{let K=new OQ(["shape","payload","ctx"]),w=W.value,V=(L)=>{let c=wx(L);return`shape[${c}]._zod.run({ value: input[${c}], issues: [] }, ctx)`};K.write("const input = payload.value;");let N=Object.create(null),U=0;for(let L of w.keys)N[L]=`key_${U++}`;K.write("const newResult = {}");for(let L of w.keys)if(w.optionalKeys.has(L)){let c=N[L];K.write(`const ${c} = ${V(L)};`);let S=wx(L);K.write(`
38
38
  if (${c}.issues.length) {
39
39
  if (input[${S}] === undefined) {
40
40
  if (${S} in input) {
@@ -53,19 +53,19 @@ import{createRequire as eN}from"node:module";var yN=Object.create;var{getPrototy
53
53
  } else {
54
54
  newResult[${S}] = ${c}.value;
55
55
  }
56
- `)}else{let c=N[U];K.write(`const ${c} = ${V(U)};`),K.write(`
56
+ `)}else{let c=N[L];K.write(`const ${c} = ${V(L)};`),K.write(`
57
57
  if (${c}.issues.length) payload.issues = payload.issues.concat(${c}.issues.map(iss => ({
58
58
  ...iss,
59
- path: iss.path ? [${wx(U)}, ...iss.path] : [${wx(U)}]
60
- })));`),K.write(`newResult[${wx(U)}] = ${c}.value`)}K.write("payload.value = newResult;"),K.write("return payload;");let q=K.compile();return(U,c)=>q(B,U,c)},X,J=G8,G=!t9.jitless,b=G&&zQ.value,z=Q.catchall,v;x._zod.parse=(B,K)=>{v??(v=W.value);let w=B.value;if(!J(w))return B.issues.push({expected:"object",code:"invalid_type",input:w,inst:x}),B;let V=[];if(G&&b&&K?.async===!1&&K.jitless!==!0){if(!X)X=Y(Q.shape);B=X(B,K)}else{B.value={};let c=v.shape;for(let S of v.keys){let i=c[S],y=i._zod.run({value:w[S],issues:[]},K),B0=i._zod.optin==="optional"&&i._zod.optout==="optional";if(y instanceof Promise)V.push(y.then((d)=>B0?Mv(d,B,S,w):X7(d,B,S)));else if(B0)Mv(y,B,S,w);else X7(y,B,S)}}if(!z)return V.length?Promise.all(V).then(()=>B):B;let N=[],L=v.keySet,q=z._zod,U=q.def.type;for(let c of Object.keys(w)){if(L.has(c))continue;if(U==="never"){N.push(c);continue}let S=q.run({value:w[c],issues:[]},K);if(S instanceof Promise)V.push(S.then((i)=>X7(i,B,c)));else X7(S,B,c)}if(N.length)B.issues.push({code:"unrecognized_keys",keys:N,input:w,inst:x});if(!V.length)return B;return Promise.all(V).then(()=>{return B})}});function Dv(x,Q,W,Y){for(let X of x)if(X.issues.length===0)return Q.value=X.value,Q;return Q.issues.push({code:"invalid_union",input:Q.value,inst:W,errors:x.map((X)=>X.issues.map((J)=>g1(J,Y,c1())))}),Q}var $7=j("$ZodUnion",(x,Q)=>{w0.init(x,Q),q0(x._zod,"optin",()=>Q.options.some((W)=>W._zod.optin==="optional")?"optional":void 0),q0(x._zod,"optout",()=>Q.options.some((W)=>W._zod.optout==="optional")?"optional":void 0),q0(x._zod,"values",()=>{if(Q.options.every((W)=>W._zod.values))return new Set(Q.options.flatMap((W)=>Array.from(W._zod.values)));return}),q0(x._zod,"pattern",()=>{if(Q.options.every((W)=>W._zod.pattern)){let W=Q.options.map((Y)=>Y._zod.pattern);return new RegExp(`^(${W.map((Y)=>U6(Y.source)).join("|")})$`)}return}),x._zod.parse=(W,Y)=>{let X=!1,J=[];for(let G of Q.options){let $=G._zod.run({value:W.value,issues:[]},Y);if($ instanceof Promise)J.push($),X=!0;else{if($.issues.length===0)return $;J.push($)}}if(!X)return Dv(J,W,x,Y);return Promise.all(J).then((G)=>{return Dv(G,W,x,Y)})}}),eQ=j("$ZodDiscriminatedUnion",(x,Q)=>{$7.init(x,Q);let W=x._zod.parse;q0(x._zod,"propValues",()=>{let X={};for(let J of Q.options){let G=J._zod.propValues;if(!G||Object.keys(G).length===0)throw Error(`Invalid discriminated union option at index "${Q.options.indexOf(J)}"`);for(let[$,b]of Object.entries(G)){if(!X[$])X[$]=new Set;for(let z of b)X[$].add(z)}}return X});let Y=N6(()=>{let X=Q.options,J=new Map;for(let G of X){let $=G._zod.propValues[Q.discriminator];if(!$||$.size===0)throw Error(`Invalid discriminated union option at index "${Q.options.indexOf(G)}"`);for(let b of $){if(J.has(b))throw Error(`Duplicate discriminator value "${String(b)}"`);J.set(b,G)}}return J});x._zod.parse=(X,J)=>{let G=X.value;if(!G8(G))return X.issues.push({code:"invalid_type",expected:"object",input:G,inst:x}),X;let $=Y.value.get(G?.[Q.discriminator]);if($)return $._zod.run(X,J);if(Q.unionFallback)return W(X,J);return X.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",input:G,path:[Q.discriminator],inst:x}),X}}),xW=j("$ZodIntersection",(x,Q)=>{w0.init(x,Q),x._zod.parse=(W,Y)=>{let X=W.value,J=Q.left._zod.run({value:X,issues:[]},Y),G=Q.right._zod.run({value:X,issues:[]},Y);if(J instanceof Promise||G instanceof Promise)return Promise.all([J,G]).then(([b,z])=>{return cv(W,b,z)});return cv(W,J,G)}});function IQ(x,Q){if(x===Q)return{valid:!0,data:x};if(x instanceof Date&&Q instanceof Date&&+x===+Q)return{valid:!0,data:x};if($8(x)&&$8(Q)){let W=Object.keys(Q),Y=Object.keys(x).filter((J)=>W.indexOf(J)!==-1),X={...x,...Q};for(let J of Y){let G=IQ(x[J],Q[J]);if(!G.valid)return{valid:!1,mergeErrorPath:[J,...G.mergeErrorPath]};X[J]=G.data}return{valid:!0,data:X}}if(Array.isArray(x)&&Array.isArray(Q)){if(x.length!==Q.length)return{valid:!1,mergeErrorPath:[]};let W=[];for(let Y=0;Y<x.length;Y++){let X=x[Y],J=Q[Y],G=IQ(X,J);if(!G.valid)return{valid:!1,mergeErrorPath:[Y,...G.mergeErrorPath]};W.push(G.data)}return{valid:!0,data:W}}return{valid:!1,mergeErrorPath:[]}}function cv(x,Q,W){if(Q.issues.length)x.issues.push(...Q.issues);if(W.issues.length)x.issues.push(...W.issues);if(Kx(x))return x;let Y=IQ(Q.value,W.value);if(!Y.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(Y.mergeErrorPath)}`);return x.value=Y.data,x}var QW=j("$ZodRecord",(x,Q)=>{w0.init(x,Q),x._zod.parse=(W,Y)=>{let X=W.value;if(!$8(X))return W.issues.push({expected:"record",code:"invalid_type",input:X,inst:x}),W;let J=[];if(Q.keyType._zod.values){let G=Q.keyType._zod.values;W.value={};for(let b of G)if(typeof b==="string"||typeof b==="number"||typeof b==="symbol"){let z=Q.valueType._zod.run({value:X[b],issues:[]},Y);if(z instanceof Promise)J.push(z.then((v)=>{if(v.issues.length)W.issues.push(...G4(b,v.issues));W.value[b]=v.value}));else{if(z.issues.length)W.issues.push(...G4(b,z.issues));W.value[b]=z.value}}let $;for(let b in X)if(!G.has(b))$=$??[],$.push(b);if($&&$.length>0)W.issues.push({code:"unrecognized_keys",input:X,inst:x,keys:$})}else{W.value={};for(let G of Reflect.ownKeys(X)){if(G==="__proto__")continue;let $=Q.keyType._zod.run({value:G,issues:[]},Y);if($ instanceof Promise)throw Error("Async schemas not supported in object keys currently");if($.issues.length){W.issues.push({origin:"record",code:"invalid_key",issues:$.issues.map((z)=>g1(z,Y,c1())),input:G,path:[G],inst:x}),W.value[$.value]=$.value;continue}let b=Q.valueType._zod.run({value:X[G],issues:[]},Y);if(b instanceof Promise)J.push(b.then((z)=>{if(z.issues.length)W.issues.push(...G4(G,z.issues));W.value[$.value]=z.value}));else{if(b.issues.length)W.issues.push(...G4(G,b.issues));W.value[$.value]=b.value}}}if(J.length)return Promise.all(J).then(()=>W);return W}});var WW=j("$ZodEnum",(x,Q)=>{w0.init(x,Q);let W=q6(Q.entries);x._zod.values=new Set(W),x._zod.pattern=new RegExp(`^(${W.filter((Y)=>vQ.has(typeof Y)).map((Y)=>typeof Y==="string"?Z4(Y):Y.toString()).join("|")})$`),x._zod.parse=(Y,X)=>{let J=Y.value;if(x._zod.values.has(J))return Y;return Y.issues.push({code:"invalid_value",values:W,input:J,inst:x}),Y}}),YW=j("$ZodLiteral",(x,Q)=>{w0.init(x,Q),x._zod.values=new Set(Q.values),x._zod.pattern=new RegExp(`^(${Q.values.map((W)=>typeof W==="string"?Z4(W):W?W.toString():String(W)).join("|")})$`),x._zod.parse=(W,Y)=>{let X=W.value;if(x._zod.values.has(X))return W;return W.issues.push({code:"invalid_value",values:Q.values,input:X,inst:x}),W}});var XW=j("$ZodTransform",(x,Q)=>{w0.init(x,Q),x._zod.parse=(W,Y)=>{let X=Q.transform(W.value,W);if(Y.async)return(X instanceof Promise?X:Promise.resolve(X)).then((G)=>{return W.value=G,W});if(X instanceof Promise)throw new R4;return W.value=X,W}}),JW=j("$ZodOptional",(x,Q)=>{w0.init(x,Q),x._zod.optin="optional",x._zod.optout="optional",q0(x._zod,"values",()=>{return Q.innerType._zod.values?new Set([...Q.innerType._zod.values,void 0]):void 0}),q0(x._zod,"pattern",()=>{let W=Q.innerType._zod.pattern;return W?new RegExp(`^(${U6(W.source)})?$`):void 0}),x._zod.parse=(W,Y)=>{if(Q.innerType._zod.optin==="optional")return Q.innerType._zod.run(W,Y);if(W.value===void 0)return W;return Q.innerType._zod.run(W,Y)}}),GW=j("$ZodNullable",(x,Q)=>{w0.init(x,Q),q0(x._zod,"optin",()=>Q.innerType._zod.optin),q0(x._zod,"optout",()=>Q.innerType._zod.optout),q0(x._zod,"pattern",()=>{let W=Q.innerType._zod.pattern;return W?new RegExp(`^(${U6(W.source)}|null)$`):void 0}),q0(x._zod,"values",()=>{return Q.innerType._zod.values?new Set([...Q.innerType._zod.values,null]):void 0}),x._zod.parse=(W,Y)=>{if(W.value===null)return W;return Q.innerType._zod.run(W,Y)}}),$W=j("$ZodDefault",(x,Q)=>{w0.init(x,Q),x._zod.optin="optional",q0(x._zod,"values",()=>Q.innerType._zod.values),x._zod.parse=(W,Y)=>{if(W.value===void 0)return W.value=Q.defaultValue,W;let X=Q.innerType._zod.run(W,Y);if(X instanceof Promise)return X.then((J)=>jv(J,Q));return jv(X,Q)}});function jv(x,Q){if(x.value===void 0)x.value=Q.defaultValue;return x}var bW=j("$ZodPrefault",(x,Q)=>{w0.init(x,Q),x._zod.optin="optional",q0(x._zod,"values",()=>Q.innerType._zod.values),x._zod.parse=(W,Y)=>{if(W.value===void 0)W.value=Q.defaultValue;return Q.innerType._zod.run(W,Y)}}),zW=j("$ZodNonOptional",(x,Q)=>{w0.init(x,Q),q0(x._zod,"values",()=>{let W=Q.innerType._zod.values;return W?new Set([...W].filter((Y)=>Y!==void 0)):void 0}),x._zod.parse=(W,Y)=>{let X=Q.innerType._zod.run(W,Y);if(X instanceof Promise)return X.then((J)=>Av(J,x));return Av(X,x)}});function Av(x,Q){if(!x.issues.length&&x.value===void 0)x.issues.push({code:"invalid_type",expected:"nonoptional",input:x.value,inst:Q});return x}var vW=j("$ZodCatch",(x,Q)=>{w0.init(x,Q),x._zod.optin="optional",q0(x._zod,"optout",()=>Q.innerType._zod.optout),q0(x._zod,"values",()=>Q.innerType._zod.values),x._zod.parse=(W,Y)=>{let X=Q.innerType._zod.run(W,Y);if(X instanceof Promise)return X.then((J)=>{if(W.value=J.value,J.issues.length)W.value=Q.catchValue({...W,error:{issues:J.issues.map((G)=>g1(G,Y,c1()))},input:W.value}),W.issues=[];return W});if(W.value=X.value,X.issues.length)W.value=Q.catchValue({...W,error:{issues:X.issues.map((J)=>g1(J,Y,c1()))},input:W.value}),W.issues=[];return W}});var BW=j("$ZodPipe",(x,Q)=>{w0.init(x,Q),q0(x._zod,"values",()=>Q.in._zod.values),q0(x._zod,"optin",()=>Q.in._zod.optin),q0(x._zod,"optout",()=>Q.out._zod.optout),x._zod.parse=(W,Y)=>{let X=Q.in._zod.run(W,Y);if(X instanceof Promise)return X.then((J)=>Ov(J,Q,Y));return Ov(X,Q,Y)}});function Ov(x,Q,W){if(Kx(x))return x;return Q.out._zod.run({value:x.value,issues:x.issues},W)}var wW=j("$ZodReadonly",(x,Q)=>{w0.init(x,Q),q0(x._zod,"propValues",()=>Q.innerType._zod.propValues),q0(x._zod,"values",()=>Q.innerType._zod.values),q0(x._zod,"optin",()=>Q.innerType._zod.optin),q0(x._zod,"optout",()=>Q.innerType._zod.optout),x._zod.parse=(W,Y)=>{let X=Q.innerType._zod.run(W,Y);if(X instanceof Promise)return X.then(Iv);return Iv(X)}});function Iv(x){return x.value=Object.freeze(x.value),x}var KW=j("$ZodCustom",(x,Q)=>{r0.init(x,Q),w0.init(x,Q),x._zod.parse=(W,Y)=>{return W},x._zod.check=(W)=>{let Y=W.value,X=Q.fn(Y);if(X instanceof Promise)return X.then((J)=>Ev(J,W,Y,x));Ev(X,W,Y,x);return}});function Ev(x,Q,W,Y){if(!x){let X={code:"custom",input:W,inst:Y,path:[...Y._zod.def.path??[]],continue:!Y._zod.def.abort};if(Y._zod.def.params)X.params=Y._zod.def.params;Q.issues.push(KQ(X))}}var HA=(x)=>{let Q=typeof x;switch(Q){case"number":return Number.isNaN(x)?"NaN":"number";case"object":{if(Array.isArray(x))return"array";if(x===null)return"null";if(Object.getPrototypeOf(x)!==Object.prototype&&x.constructor)return x.constructor.name}}return Q},VA=()=>{let x={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"}};function Q(Y){return x[Y]??null}let W={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",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"};return(Y)=>{switch(Y.code){case"invalid_type":return`Invalid input: expected ${Y.expected}, received ${HA(Y.input)}`;case"invalid_value":if(Y.values.length===1)return`Invalid input: expected ${Q7(Y.values[0])}`;return`Invalid option: expected one of ${e9(Y.values,"|")}`;case"too_big":{let X=Y.inclusive?"<=":"<",J=Q(Y.origin);if(J)return`Too big: expected ${Y.origin??"value"} to have ${X}${Y.maximum.toString()} ${J.unit??"elements"}`;return`Too big: expected ${Y.origin??"value"} to be ${X}${Y.maximum.toString()}`}case"too_small":{let X=Y.inclusive?">=":">",J=Q(Y.origin);if(J)return`Too small: expected ${Y.origin} to have ${X}${Y.minimum.toString()} ${J.unit}`;return`Too small: expected ${Y.origin} to be ${X}${Y.minimum.toString()}`}case"invalid_format":{let X=Y;if(X.format==="starts_with")return`Invalid string: must start with "${X.prefix}"`;if(X.format==="ends_with")return`Invalid string: must end with "${X.suffix}"`;if(X.format==="includes")return`Invalid string: must include "${X.includes}"`;if(X.format==="regex")return`Invalid string: must match pattern ${X.pattern}`;return`Invalid ${W[X.format]??Y.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${Y.divisor}`;case"unrecognized_keys":return`Unrecognized key${Y.keys.length>1?"s":""}: ${e9(Y.keys,", ")}`;case"invalid_key":return`Invalid key in ${Y.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${Y.origin}`;default:return"Invalid input"}}};function HW(){return{localeError:VA()}}var qA=Symbol("ZodOutput"),NA=Symbol("ZodInput");class b7{constructor(){this._map=new Map,this._idmap=new Map}add(x,...Q){let W=Q[0];if(this._map.set(x,W),W&&typeof W==="object"&&"id"in W){if(this._idmap.has(W.id))throw Error(`ID ${W.id} already exists in the registry`);this._idmap.set(W.id,x)}return this}clear(){return this._map=new Map,this._idmap=new Map,this}remove(x){let Q=this._map.get(x);if(Q&&typeof Q==="object"&&"id"in Q)this._idmap.delete(Q.id);return this._map.delete(x),this}get(x){let Q=x._zod.parent;if(Q){let W={...this.get(Q)??{}};return delete W.id,{...W,...this._map.get(x)}}return this._map.get(x)}has(x){return this._map.has(x)}}function Cv(){return new b7}var i4=Cv();function VW(x,Q){return new x({type:"string",...n(Q)})}function qW(x,Q){return new x({type:"string",format:"email",check:"string_format",abort:!1,...n(Q)})}function z7(x,Q){return new x({type:"string",format:"guid",check:"string_format",abort:!1,...n(Q)})}function NW(x,Q){return new x({type:"string",format:"uuid",check:"string_format",abort:!1,...n(Q)})}function LW(x,Q){return new x({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...n(Q)})}function UW(x,Q){return new x({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...n(Q)})}function FW(x,Q){return new x({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...n(Q)})}function MW(x,Q){return new x({type:"string",format:"url",check:"string_format",abort:!1,...n(Q)})}function DW(x,Q){return new x({type:"string",format:"emoji",check:"string_format",abort:!1,...n(Q)})}function cW(x,Q){return new x({type:"string",format:"nanoid",check:"string_format",abort:!1,...n(Q)})}function jW(x,Q){return new x({type:"string",format:"cuid",check:"string_format",abort:!1,...n(Q)})}function AW(x,Q){return new x({type:"string",format:"cuid2",check:"string_format",abort:!1,...n(Q)})}function OW(x,Q){return new x({type:"string",format:"ulid",check:"string_format",abort:!1,...n(Q)})}function IW(x,Q){return new x({type:"string",format:"xid",check:"string_format",abort:!1,...n(Q)})}function EW(x,Q){return new x({type:"string",format:"ksuid",check:"string_format",abort:!1,...n(Q)})}function SW(x,Q){return new x({type:"string",format:"ipv4",check:"string_format",abort:!1,...n(Q)})}function PW(x,Q){return new x({type:"string",format:"ipv6",check:"string_format",abort:!1,...n(Q)})}function RW(x,Q){return new x({type:"string",format:"cidrv4",check:"string_format",abort:!1,...n(Q)})}function ZW(x,Q){return new x({type:"string",format:"cidrv6",check:"string_format",abort:!1,...n(Q)})}function iW(x,Q){return new x({type:"string",format:"base64",check:"string_format",abort:!1,...n(Q)})}function CW(x,Q){return new x({type:"string",format:"base64url",check:"string_format",abort:!1,...n(Q)})}function TW(x,Q){return new x({type:"string",format:"e164",check:"string_format",abort:!1,...n(Q)})}function kW(x,Q){return new x({type:"string",format:"jwt",check:"string_format",abort:!1,...n(Q)})}function Tv(x,Q){return new x({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...n(Q)})}function kv(x,Q){return new x({type:"string",format:"date",check:"string_format",...n(Q)})}function _v(x,Q){return new x({type:"string",format:"time",check:"string_format",precision:null,...n(Q)})}function uv(x,Q){return new x({type:"string",format:"duration",check:"string_format",...n(Q)})}function _W(x,Q){return new x({type:"number",checks:[],...n(Q)})}function uW(x,Q){return new x({type:"number",check:"number_format",abort:!1,format:"safeint",...n(Q)})}function pW(x,Q){return new x({type:"boolean",...n(Q)})}function lW(x,Q){return new x({type:"null",...n(Q)})}function nW(x){return new x({type:"unknown"})}function mW(x,Q){return new x({type:"never",...n(Q)})}function v7(x,Q){return new jQ({check:"less_than",...n(Q),value:x,inclusive:!1})}function j6(x,Q){return new jQ({check:"less_than",...n(Q),value:x,inclusive:!0})}function B7(x,Q){return new AQ({check:"greater_than",...n(Q),value:x,inclusive:!1})}function A6(x,Q){return new AQ({check:"greater_than",...n(Q),value:x,inclusive:!0})}function w7(x,Q){return new Gv({check:"multiple_of",...n(Q),value:x})}function K7(x,Q){return new bv({check:"max_length",...n(Q),maximum:x})}function b8(x,Q){return new zv({check:"min_length",...n(Q),minimum:x})}function H7(x,Q){return new vv({check:"length_equals",...n(Q),length:x})}function fW(x,Q){return new Bv({check:"string_format",format:"regex",...n(Q),pattern:x})}function yW(x){return new wv({check:"string_format",format:"lowercase",...n(x)})}function gW(x){return new Kv({check:"string_format",format:"uppercase",...n(x)})}function hW(x,Q){return new Hv({check:"string_format",format:"includes",...n(Q),includes:x})}function oW(x,Q){return new Vv({check:"string_format",format:"starts_with",...n(Q),prefix:x})}function aW(x,Q){return new qv({check:"string_format",format:"ends_with",...n(Q),suffix:x})}function qx(x){return new Nv({check:"overwrite",tx:x})}function dW(x){return qx((Q)=>Q.normalize(x))}function rW(){return qx((x)=>x.trim())}function sW(){return qx((x)=>x.toLowerCase())}function tW(){return qx((x)=>x.toUpperCase())}function pv(x,Q,W){return new x({type:"array",element:Q,...n(W)})}function eW(x,Q,W){let Y=n(W);return Y.abort??(Y.abort=!0),new x({type:"custom",check:"custom",fn:Q,...Y})}function xY(x,Q,W){return new x({type:"custom",check:"custom",fn:Q,...n(W)})}class QY{constructor(x){this.counter=0,this.metadataRegistry=x?.metadata??i4,this.target=x?.target??"draft-2020-12",this.unrepresentable=x?.unrepresentable??"throw",this.override=x?.override??(()=>{}),this.io=x?.io??"output",this.seen=new Map}process(x,Q={path:[],schemaPath:[]}){var W;let Y=x._zod.def,X={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},J=this.seen.get(x);if(J){if(J.count++,Q.schemaPath.includes(x))J.cycle=Q.path;return J.schema}let G={schema:{},count:1,cycle:void 0,path:Q.path};this.seen.set(x,G);let $=x._zod.toJSONSchema?.();if($)G.schema=$;else{let v={...Q,schemaPath:[...Q.schemaPath,x],path:Q.path},B=x._zod.parent;if(B)G.ref=B,this.process(B,v),this.seen.get(B).isParent=!0;else{let K=G.schema;switch(Y.type){case"string":{let w=K;w.type="string";let{minimum:V,maximum:N,format:L,patterns:q,contentEncoding:U}=x._zod.bag;if(typeof V==="number")w.minLength=V;if(typeof N==="number")w.maxLength=N;if(L){if(w.format=X[L]??L,w.format==="")delete w.format}if(U)w.contentEncoding=U;if(q&&q.size>0){let c=[...q];if(c.length===1)w.pattern=c[0].source;else if(c.length>1)G.schema.allOf=[...c.map((S)=>({...this.target==="draft-7"?{type:"string"}:{},pattern:S.source}))]}break}case"number":{let w=K,{minimum:V,maximum:N,format:L,multipleOf:q,exclusiveMaximum:U,exclusiveMinimum:c}=x._zod.bag;if(typeof L==="string"&&L.includes("int"))w.type="integer";else w.type="number";if(typeof c==="number")w.exclusiveMinimum=c;if(typeof V==="number"){if(w.minimum=V,typeof c==="number")if(c>=V)delete w.minimum;else delete w.exclusiveMinimum}if(typeof U==="number")w.exclusiveMaximum=U;if(typeof N==="number"){if(w.maximum=N,typeof U==="number")if(U<=N)delete w.maximum;else delete w.exclusiveMaximum}if(typeof q==="number")w.multipleOf=q;break}case"boolean":{let w=K;w.type="boolean";break}case"bigint":{if(this.unrepresentable==="throw")throw Error("BigInt cannot be represented in JSON Schema");break}case"symbol":{if(this.unrepresentable==="throw")throw Error("Symbols cannot be represented in JSON Schema");break}case"null":{K.type="null";break}case"any":break;case"unknown":break;case"undefined":{if(this.unrepresentable==="throw")throw Error("Undefined cannot be represented in JSON Schema");break}case"void":{if(this.unrepresentable==="throw")throw Error("Void cannot be represented in JSON Schema");break}case"never":{K.not={};break}case"date":{if(this.unrepresentable==="throw")throw Error("Date cannot be represented in JSON Schema");break}case"array":{let w=K,{minimum:V,maximum:N}=x._zod.bag;if(typeof V==="number")w.minItems=V;if(typeof N==="number")w.maxItems=N;w.type="array",w.items=this.process(Y.element,{...v,path:[...v.path,"items"]});break}case"object":{let w=K;w.type="object",w.properties={};let V=Y.shape;for(let q in V)w.properties[q]=this.process(V[q],{...v,path:[...v.path,"properties",q]});let N=new Set(Object.keys(V)),L=new Set([...N].filter((q)=>{let U=Y.shape[q]._zod;if(this.io==="input")return U.optin===void 0;else return U.optout===void 0}));if(L.size>0)w.required=Array.from(L);if(Y.catchall?._zod.def.type==="never")w.additionalProperties=!1;else if(!Y.catchall){if(this.io==="output")w.additionalProperties=!1}else if(Y.catchall)w.additionalProperties=this.process(Y.catchall,{...v,path:[...v.path,"additionalProperties"]});break}case"union":{let w=K;w.anyOf=Y.options.map((V,N)=>this.process(V,{...v,path:[...v.path,"anyOf",N]}));break}case"intersection":{let w=K,V=this.process(Y.left,{...v,path:[...v.path,"allOf",0]}),N=this.process(Y.right,{...v,path:[...v.path,"allOf",1]}),L=(U)=>("allOf"in U)&&Object.keys(U).length===1,q=[...L(V)?V.allOf:[V],...L(N)?N.allOf:[N]];w.allOf=q;break}case"tuple":{let w=K;w.type="array";let V=Y.items.map((q,U)=>this.process(q,{...v,path:[...v.path,"prefixItems",U]}));if(this.target==="draft-2020-12")w.prefixItems=V;else w.items=V;if(Y.rest){let q=this.process(Y.rest,{...v,path:[...v.path,"items"]});if(this.target==="draft-2020-12")w.items=q;else w.additionalItems=q}if(Y.rest)w.items=this.process(Y.rest,{...v,path:[...v.path,"items"]});let{minimum:N,maximum:L}=x._zod.bag;if(typeof N==="number")w.minItems=N;if(typeof L==="number")w.maxItems=L;break}case"record":{let w=K;w.type="object",w.propertyNames=this.process(Y.keyType,{...v,path:[...v.path,"propertyNames"]}),w.additionalProperties=this.process(Y.valueType,{...v,path:[...v.path,"additionalProperties"]});break}case"map":{if(this.unrepresentable==="throw")throw Error("Map cannot be represented in JSON Schema");break}case"set":{if(this.unrepresentable==="throw")throw Error("Set cannot be represented in JSON Schema");break}case"enum":{let w=K,V=q6(Y.entries);if(V.every((N)=>typeof N==="number"))w.type="number";if(V.every((N)=>typeof N==="string"))w.type="string";w.enum=V;break}case"literal":{let w=K,V=[];for(let N of Y.values)if(N===void 0){if(this.unrepresentable==="throw")throw Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof N==="bigint")if(this.unrepresentable==="throw")throw Error("BigInt literals cannot be represented in JSON Schema");else V.push(Number(N));else V.push(N);if(V.length===0);else if(V.length===1){let N=V[0];w.type=N===null?"null":typeof N,w.const=N}else{if(V.every((N)=>typeof N==="number"))w.type="number";if(V.every((N)=>typeof N==="string"))w.type="string";if(V.every((N)=>typeof N==="boolean"))w.type="string";if(V.every((N)=>N===null))w.type="null";w.enum=V}break}case"file":{let w=K,V={type:"string",format:"binary",contentEncoding:"binary"},{minimum:N,maximum:L,mime:q}=x._zod.bag;if(N!==void 0)V.minLength=N;if(L!==void 0)V.maxLength=L;if(q)if(q.length===1)V.contentMediaType=q[0],Object.assign(w,V);else w.anyOf=q.map((U)=>{return{...V,contentMediaType:U}});else Object.assign(w,V);break}case"transform":{if(this.unrepresentable==="throw")throw Error("Transforms cannot be represented in JSON Schema");break}case"nullable":{let w=this.process(Y.innerType,v);K.anyOf=[w,{type:"null"}];break}case"nonoptional":{this.process(Y.innerType,v),G.ref=Y.innerType;break}case"success":{let w=K;w.type="boolean";break}case"default":{this.process(Y.innerType,v),G.ref=Y.innerType,K.default=JSON.parse(JSON.stringify(Y.defaultValue));break}case"prefault":{if(this.process(Y.innerType,v),G.ref=Y.innerType,this.io==="input")K._prefault=JSON.parse(JSON.stringify(Y.defaultValue));break}case"catch":{this.process(Y.innerType,v),G.ref=Y.innerType;let w;try{w=Y.catchValue(void 0)}catch{throw Error("Dynamic catch values are not supported in JSON Schema")}K.default=w;break}case"nan":{if(this.unrepresentable==="throw")throw Error("NaN cannot be represented in JSON Schema");break}case"template_literal":{let w=K,V=x._zod.pattern;if(!V)throw Error("Pattern not found in template literal");w.type="string",w.pattern=V.source;break}case"pipe":{let w=this.io==="input"?Y.in._zod.def.type==="transform"?Y.out:Y.in:Y.out;this.process(w,v),G.ref=w;break}case"readonly":{this.process(Y.innerType,v),G.ref=Y.innerType,K.readOnly=!0;break}case"promise":{this.process(Y.innerType,v),G.ref=Y.innerType;break}case"optional":{this.process(Y.innerType,v),G.ref=Y.innerType;break}case"lazy":{let w=x._zod.innerType;this.process(w,v),G.ref=w;break}case"custom":{if(this.unrepresentable==="throw")throw Error("Custom types cannot be represented in JSON Schema");break}default:}}}let b=this.metadataRegistry.get(x);if(b)Object.assign(G.schema,b);if(this.io==="input"&&l0(x))delete G.schema.examples,delete G.schema.default;if(this.io==="input"&&G.schema._prefault)(W=G.schema).default??(W.default=G.schema._prefault);return delete G.schema._prefault,this.seen.get(x).schema}emit(x,Q){let W={cycles:Q?.cycles??"ref",reused:Q?.reused??"inline",external:Q?.external??void 0},Y=this.seen.get(x);if(!Y)throw Error("Unprocessed schema. This is a bug in Zod.");let X=(z)=>{let v=this.target==="draft-2020-12"?"$defs":"definitions";if(W.external){let V=W.external.registry.get(z[0])?.id,N=W.external.uri??((q)=>q);if(V)return{ref:N(V)};let L=z[1].defId??z[1].schema.id??`schema${this.counter++}`;return z[1].defId=L,{defId:L,ref:`${N("__shared")}#/${v}/${L}`}}if(z[1]===Y)return{ref:"#"};let K=`${"#"}/${v}/`,w=z[1].schema.id??`__schema${this.counter++}`;return{defId:w,ref:K+w}},J=(z)=>{if(z[1].schema.$ref)return;let v=z[1],{ref:B,defId:K}=X(z);if(v.def={...v.schema},K)v.defId=K;let w=v.schema;for(let V in w)delete w[V];w.$ref=B};if(W.cycles==="throw")for(let z of this.seen.entries()){let v=z[1];if(v.cycle)throw Error(`Cycle detected: #/${v.cycle?.join("/")}/<root>
59
+ path: iss.path ? [${wx(L)}, ...iss.path] : [${wx(L)}]
60
+ })));`),K.write(`newResult[${wx(L)}] = ${c}.value`)}K.write("payload.value = newResult;"),K.write("return payload;");let q=K.compile();return(L,c)=>q(B,L,c)},X,J=G8,G=!t9.jitless,b=G&&zQ.value,z=Q.catchall,v;x._zod.parse=(B,K)=>{v??(v=W.value);let w=B.value;if(!J(w))return B.issues.push({expected:"object",code:"invalid_type",input:w,inst:x}),B;let V=[];if(G&&b&&K?.async===!1&&K.jitless!==!0){if(!X)X=Y(Q.shape);B=X(B,K)}else{B.value={};let c=v.shape;for(let S of v.keys){let i=c[S],y=i._zod.run({value:w[S],issues:[]},K),B0=i._zod.optin==="optional"&&i._zod.optout==="optional";if(y instanceof Promise)V.push(y.then((d)=>B0?jv(d,B,S,w):X7(d,B,S)));else if(B0)jv(y,B,S,w);else X7(y,B,S)}}if(!z)return V.length?Promise.all(V).then(()=>B):B;let N=[],U=v.keySet,q=z._zod,L=q.def.type;for(let c of Object.keys(w)){if(U.has(c))continue;if(L==="never"){N.push(c);continue}let S=q.run({value:w[c],issues:[]},K);if(S instanceof Promise)V.push(S.then((i)=>X7(i,B,c)));else X7(S,B,c)}if(N.length)B.issues.push({code:"unrecognized_keys",keys:N,input:w,inst:x});if(!V.length)return B;return Promise.all(V).then(()=>{return B})}});function Av(x,Q,W,Y){for(let X of x)if(X.issues.length===0)return Q.value=X.value,Q;return Q.issues.push({code:"invalid_union",input:Q.value,inst:W,errors:x.map((X)=>X.issues.map((J)=>g1(J,Y,c1())))}),Q}var $7=j("$ZodUnion",(x,Q)=>{w0.init(x,Q),q0(x._zod,"optin",()=>Q.options.some((W)=>W._zod.optin==="optional")?"optional":void 0),q0(x._zod,"optout",()=>Q.options.some((W)=>W._zod.optout==="optional")?"optional":void 0),q0(x._zod,"values",()=>{if(Q.options.every((W)=>W._zod.values))return new Set(Q.options.flatMap((W)=>Array.from(W._zod.values)));return}),q0(x._zod,"pattern",()=>{if(Q.options.every((W)=>W._zod.pattern)){let W=Q.options.map((Y)=>Y._zod.pattern);return new RegExp(`^(${W.map((Y)=>L6(Y.source)).join("|")})$`)}return}),x._zod.parse=(W,Y)=>{let X=!1,J=[];for(let G of Q.options){let $=G._zod.run({value:W.value,issues:[]},Y);if($ instanceof Promise)J.push($),X=!0;else{if($.issues.length===0)return $;J.push($)}}if(!X)return Av(J,W,x,Y);return Promise.all(J).then((G)=>{return Av(G,W,x,Y)})}}),eQ=j("$ZodDiscriminatedUnion",(x,Q)=>{$7.init(x,Q);let W=x._zod.parse;q0(x._zod,"propValues",()=>{let X={};for(let J of Q.options){let G=J._zod.propValues;if(!G||Object.keys(G).length===0)throw Error(`Invalid discriminated union option at index "${Q.options.indexOf(J)}"`);for(let[$,b]of Object.entries(G)){if(!X[$])X[$]=new Set;for(let z of b)X[$].add(z)}}return X});let Y=N6(()=>{let X=Q.options,J=new Map;for(let G of X){let $=G._zod.propValues[Q.discriminator];if(!$||$.size===0)throw Error(`Invalid discriminated union option at index "${Q.options.indexOf(G)}"`);for(let b of $){if(J.has(b))throw Error(`Duplicate discriminator value "${String(b)}"`);J.set(b,G)}}return J});x._zod.parse=(X,J)=>{let G=X.value;if(!G8(G))return X.issues.push({code:"invalid_type",expected:"object",input:G,inst:x}),X;let $=Y.value.get(G?.[Q.discriminator]);if($)return $._zod.run(X,J);if(Q.unionFallback)return W(X,J);return X.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",input:G,path:[Q.discriminator],inst:x}),X}}),xW=j("$ZodIntersection",(x,Q)=>{w0.init(x,Q),x._zod.parse=(W,Y)=>{let X=W.value,J=Q.left._zod.run({value:X,issues:[]},Y),G=Q.right._zod.run({value:X,issues:[]},Y);if(J instanceof Promise||G instanceof Promise)return Promise.all([J,G]).then(([b,z])=>{return Ov(W,b,z)});return Ov(W,J,G)}});function IQ(x,Q){if(x===Q)return{valid:!0,data:x};if(x instanceof Date&&Q instanceof Date&&+x===+Q)return{valid:!0,data:x};if($8(x)&&$8(Q)){let W=Object.keys(Q),Y=Object.keys(x).filter((J)=>W.indexOf(J)!==-1),X={...x,...Q};for(let J of Y){let G=IQ(x[J],Q[J]);if(!G.valid)return{valid:!1,mergeErrorPath:[J,...G.mergeErrorPath]};X[J]=G.data}return{valid:!0,data:X}}if(Array.isArray(x)&&Array.isArray(Q)){if(x.length!==Q.length)return{valid:!1,mergeErrorPath:[]};let W=[];for(let Y=0;Y<x.length;Y++){let X=x[Y],J=Q[Y],G=IQ(X,J);if(!G.valid)return{valid:!1,mergeErrorPath:[Y,...G.mergeErrorPath]};W.push(G.data)}return{valid:!0,data:W}}return{valid:!1,mergeErrorPath:[]}}function Ov(x,Q,W){if(Q.issues.length)x.issues.push(...Q.issues);if(W.issues.length)x.issues.push(...W.issues);if(Kx(x))return x;let Y=IQ(Q.value,W.value);if(!Y.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(Y.mergeErrorPath)}`);return x.value=Y.data,x}var QW=j("$ZodRecord",(x,Q)=>{w0.init(x,Q),x._zod.parse=(W,Y)=>{let X=W.value;if(!$8(X))return W.issues.push({expected:"record",code:"invalid_type",input:X,inst:x}),W;let J=[];if(Q.keyType._zod.values){let G=Q.keyType._zod.values;W.value={};for(let b of G)if(typeof b==="string"||typeof b==="number"||typeof b==="symbol"){let z=Q.valueType._zod.run({value:X[b],issues:[]},Y);if(z instanceof Promise)J.push(z.then((v)=>{if(v.issues.length)W.issues.push(...G4(b,v.issues));W.value[b]=v.value}));else{if(z.issues.length)W.issues.push(...G4(b,z.issues));W.value[b]=z.value}}let $;for(let b in X)if(!G.has(b))$=$??[],$.push(b);if($&&$.length>0)W.issues.push({code:"unrecognized_keys",input:X,inst:x,keys:$})}else{W.value={};for(let G of Reflect.ownKeys(X)){if(G==="__proto__")continue;let $=Q.keyType._zod.run({value:G,issues:[]},Y);if($ instanceof Promise)throw Error("Async schemas not supported in object keys currently");if($.issues.length){W.issues.push({origin:"record",code:"invalid_key",issues:$.issues.map((z)=>g1(z,Y,c1())),input:G,path:[G],inst:x}),W.value[$.value]=$.value;continue}let b=Q.valueType._zod.run({value:X[G],issues:[]},Y);if(b instanceof Promise)J.push(b.then((z)=>{if(z.issues.length)W.issues.push(...G4(G,z.issues));W.value[$.value]=z.value}));else{if(b.issues.length)W.issues.push(...G4(G,b.issues));W.value[$.value]=b.value}}}if(J.length)return Promise.all(J).then(()=>W);return W}});var WW=j("$ZodEnum",(x,Q)=>{w0.init(x,Q);let W=q6(Q.entries);x._zod.values=new Set(W),x._zod.pattern=new RegExp(`^(${W.filter((Y)=>vQ.has(typeof Y)).map((Y)=>typeof Y==="string"?Z4(Y):Y.toString()).join("|")})$`),x._zod.parse=(Y,X)=>{let J=Y.value;if(x._zod.values.has(J))return Y;return Y.issues.push({code:"invalid_value",values:W,input:J,inst:x}),Y}}),YW=j("$ZodLiteral",(x,Q)=>{w0.init(x,Q),x._zod.values=new Set(Q.values),x._zod.pattern=new RegExp(`^(${Q.values.map((W)=>typeof W==="string"?Z4(W):W?W.toString():String(W)).join("|")})$`),x._zod.parse=(W,Y)=>{let X=W.value;if(x._zod.values.has(X))return W;return W.issues.push({code:"invalid_value",values:Q.values,input:X,inst:x}),W}});var XW=j("$ZodTransform",(x,Q)=>{w0.init(x,Q),x._zod.parse=(W,Y)=>{let X=Q.transform(W.value,W);if(Y.async)return(X instanceof Promise?X:Promise.resolve(X)).then((G)=>{return W.value=G,W});if(X instanceof Promise)throw new R4;return W.value=X,W}}),JW=j("$ZodOptional",(x,Q)=>{w0.init(x,Q),x._zod.optin="optional",x._zod.optout="optional",q0(x._zod,"values",()=>{return Q.innerType._zod.values?new Set([...Q.innerType._zod.values,void 0]):void 0}),q0(x._zod,"pattern",()=>{let W=Q.innerType._zod.pattern;return W?new RegExp(`^(${L6(W.source)})?$`):void 0}),x._zod.parse=(W,Y)=>{if(Q.innerType._zod.optin==="optional")return Q.innerType._zod.run(W,Y);if(W.value===void 0)return W;return Q.innerType._zod.run(W,Y)}}),GW=j("$ZodNullable",(x,Q)=>{w0.init(x,Q),q0(x._zod,"optin",()=>Q.innerType._zod.optin),q0(x._zod,"optout",()=>Q.innerType._zod.optout),q0(x._zod,"pattern",()=>{let W=Q.innerType._zod.pattern;return W?new RegExp(`^(${L6(W.source)}|null)$`):void 0}),q0(x._zod,"values",()=>{return Q.innerType._zod.values?new Set([...Q.innerType._zod.values,null]):void 0}),x._zod.parse=(W,Y)=>{if(W.value===null)return W;return Q.innerType._zod.run(W,Y)}}),$W=j("$ZodDefault",(x,Q)=>{w0.init(x,Q),x._zod.optin="optional",q0(x._zod,"values",()=>Q.innerType._zod.values),x._zod.parse=(W,Y)=>{if(W.value===void 0)return W.value=Q.defaultValue,W;let X=Q.innerType._zod.run(W,Y);if(X instanceof Promise)return X.then((J)=>Iv(J,Q));return Iv(X,Q)}});function Iv(x,Q){if(x.value===void 0)x.value=Q.defaultValue;return x}var bW=j("$ZodPrefault",(x,Q)=>{w0.init(x,Q),x._zod.optin="optional",q0(x._zod,"values",()=>Q.innerType._zod.values),x._zod.parse=(W,Y)=>{if(W.value===void 0)W.value=Q.defaultValue;return Q.innerType._zod.run(W,Y)}}),zW=j("$ZodNonOptional",(x,Q)=>{w0.init(x,Q),q0(x._zod,"values",()=>{let W=Q.innerType._zod.values;return W?new Set([...W].filter((Y)=>Y!==void 0)):void 0}),x._zod.parse=(W,Y)=>{let X=Q.innerType._zod.run(W,Y);if(X instanceof Promise)return X.then((J)=>Ev(J,x));return Ev(X,x)}});function Ev(x,Q){if(!x.issues.length&&x.value===void 0)x.issues.push({code:"invalid_type",expected:"nonoptional",input:x.value,inst:Q});return x}var vW=j("$ZodCatch",(x,Q)=>{w0.init(x,Q),x._zod.optin="optional",q0(x._zod,"optout",()=>Q.innerType._zod.optout),q0(x._zod,"values",()=>Q.innerType._zod.values),x._zod.parse=(W,Y)=>{let X=Q.innerType._zod.run(W,Y);if(X instanceof Promise)return X.then((J)=>{if(W.value=J.value,J.issues.length)W.value=Q.catchValue({...W,error:{issues:J.issues.map((G)=>g1(G,Y,c1()))},input:W.value}),W.issues=[];return W});if(W.value=X.value,X.issues.length)W.value=Q.catchValue({...W,error:{issues:X.issues.map((J)=>g1(J,Y,c1()))},input:W.value}),W.issues=[];return W}});var BW=j("$ZodPipe",(x,Q)=>{w0.init(x,Q),q0(x._zod,"values",()=>Q.in._zod.values),q0(x._zod,"optin",()=>Q.in._zod.optin),q0(x._zod,"optout",()=>Q.out._zod.optout),x._zod.parse=(W,Y)=>{let X=Q.in._zod.run(W,Y);if(X instanceof Promise)return X.then((J)=>Sv(J,Q,Y));return Sv(X,Q,Y)}});function Sv(x,Q,W){if(Kx(x))return x;return Q.out._zod.run({value:x.value,issues:x.issues},W)}var wW=j("$ZodReadonly",(x,Q)=>{w0.init(x,Q),q0(x._zod,"propValues",()=>Q.innerType._zod.propValues),q0(x._zod,"values",()=>Q.innerType._zod.values),q0(x._zod,"optin",()=>Q.innerType._zod.optin),q0(x._zod,"optout",()=>Q.innerType._zod.optout),x._zod.parse=(W,Y)=>{let X=Q.innerType._zod.run(W,Y);if(X instanceof Promise)return X.then(Pv);return Pv(X)}});function Pv(x){return x.value=Object.freeze(x.value),x}var KW=j("$ZodCustom",(x,Q)=>{r0.init(x,Q),w0.init(x,Q),x._zod.parse=(W,Y)=>{return W},x._zod.check=(W)=>{let Y=W.value,X=Q.fn(Y);if(X instanceof Promise)return X.then((J)=>Rv(J,W,Y,x));Rv(X,W,Y,x);return}});function Rv(x,Q,W,Y){if(!x){let X={code:"custom",input:W,inst:Y,path:[...Y._zod.def.path??[]],continue:!Y._zod.def.abort};if(Y._zod.def.params)X.params=Y._zod.def.params;Q.issues.push(KQ(X))}}var LA=(x)=>{let Q=typeof x;switch(Q){case"number":return Number.isNaN(x)?"NaN":"number";case"object":{if(Array.isArray(x))return"array";if(x===null)return"null";if(Object.getPrototypeOf(x)!==Object.prototype&&x.constructor)return x.constructor.name}}return Q},FA=()=>{let x={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"}};function Q(Y){return x[Y]??null}let W={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",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"};return(Y)=>{switch(Y.code){case"invalid_type":return`Invalid input: expected ${Y.expected}, received ${LA(Y.input)}`;case"invalid_value":if(Y.values.length===1)return`Invalid input: expected ${Q7(Y.values[0])}`;return`Invalid option: expected one of ${e9(Y.values,"|")}`;case"too_big":{let X=Y.inclusive?"<=":"<",J=Q(Y.origin);if(J)return`Too big: expected ${Y.origin??"value"} to have ${X}${Y.maximum.toString()} ${J.unit??"elements"}`;return`Too big: expected ${Y.origin??"value"} to be ${X}${Y.maximum.toString()}`}case"too_small":{let X=Y.inclusive?">=":">",J=Q(Y.origin);if(J)return`Too small: expected ${Y.origin} to have ${X}${Y.minimum.toString()} ${J.unit}`;return`Too small: expected ${Y.origin} to be ${X}${Y.minimum.toString()}`}case"invalid_format":{let X=Y;if(X.format==="starts_with")return`Invalid string: must start with "${X.prefix}"`;if(X.format==="ends_with")return`Invalid string: must end with "${X.suffix}"`;if(X.format==="includes")return`Invalid string: must include "${X.includes}"`;if(X.format==="regex")return`Invalid string: must match pattern ${X.pattern}`;return`Invalid ${W[X.format]??Y.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${Y.divisor}`;case"unrecognized_keys":return`Unrecognized key${Y.keys.length>1?"s":""}: ${e9(Y.keys,", ")}`;case"invalid_key":return`Invalid key in ${Y.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${Y.origin}`;default:return"Invalid input"}}};function HW(){return{localeError:FA()}}var MA=Symbol("ZodOutput"),DA=Symbol("ZodInput");class b7{constructor(){this._map=new Map,this._idmap=new Map}add(x,...Q){let W=Q[0];if(this._map.set(x,W),W&&typeof W==="object"&&"id"in W){if(this._idmap.has(W.id))throw Error(`ID ${W.id} already exists in the registry`);this._idmap.set(W.id,x)}return this}clear(){return this._map=new Map,this._idmap=new Map,this}remove(x){let Q=this._map.get(x);if(Q&&typeof Q==="object"&&"id"in Q)this._idmap.delete(Q.id);return this._map.delete(x),this}get(x){let Q=x._zod.parent;if(Q){let W={...this.get(Q)??{}};return delete W.id,{...W,...this._map.get(x)}}return this._map.get(x)}has(x){return this._map.has(x)}}function _v(){return new b7}var i4=_v();function VW(x,Q){return new x({type:"string",...n(Q)})}function qW(x,Q){return new x({type:"string",format:"email",check:"string_format",abort:!1,...n(Q)})}function z7(x,Q){return new x({type:"string",format:"guid",check:"string_format",abort:!1,...n(Q)})}function NW(x,Q){return new x({type:"string",format:"uuid",check:"string_format",abort:!1,...n(Q)})}function UW(x,Q){return new x({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...n(Q)})}function LW(x,Q){return new x({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...n(Q)})}function FW(x,Q){return new x({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...n(Q)})}function MW(x,Q){return new x({type:"string",format:"url",check:"string_format",abort:!1,...n(Q)})}function DW(x,Q){return new x({type:"string",format:"emoji",check:"string_format",abort:!1,...n(Q)})}function cW(x,Q){return new x({type:"string",format:"nanoid",check:"string_format",abort:!1,...n(Q)})}function jW(x,Q){return new x({type:"string",format:"cuid",check:"string_format",abort:!1,...n(Q)})}function AW(x,Q){return new x({type:"string",format:"cuid2",check:"string_format",abort:!1,...n(Q)})}function OW(x,Q){return new x({type:"string",format:"ulid",check:"string_format",abort:!1,...n(Q)})}function IW(x,Q){return new x({type:"string",format:"xid",check:"string_format",abort:!1,...n(Q)})}function EW(x,Q){return new x({type:"string",format:"ksuid",check:"string_format",abort:!1,...n(Q)})}function SW(x,Q){return new x({type:"string",format:"ipv4",check:"string_format",abort:!1,...n(Q)})}function PW(x,Q){return new x({type:"string",format:"ipv6",check:"string_format",abort:!1,...n(Q)})}function RW(x,Q){return new x({type:"string",format:"cidrv4",check:"string_format",abort:!1,...n(Q)})}function ZW(x,Q){return new x({type:"string",format:"cidrv6",check:"string_format",abort:!1,...n(Q)})}function iW(x,Q){return new x({type:"string",format:"base64",check:"string_format",abort:!1,...n(Q)})}function CW(x,Q){return new x({type:"string",format:"base64url",check:"string_format",abort:!1,...n(Q)})}function TW(x,Q){return new x({type:"string",format:"e164",check:"string_format",abort:!1,...n(Q)})}function kW(x,Q){return new x({type:"string",format:"jwt",check:"string_format",abort:!1,...n(Q)})}function uv(x,Q){return new x({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...n(Q)})}function pv(x,Q){return new x({type:"string",format:"date",check:"string_format",...n(Q)})}function lv(x,Q){return new x({type:"string",format:"time",check:"string_format",precision:null,...n(Q)})}function nv(x,Q){return new x({type:"string",format:"duration",check:"string_format",...n(Q)})}function _W(x,Q){return new x({type:"number",checks:[],...n(Q)})}function uW(x,Q){return new x({type:"number",check:"number_format",abort:!1,format:"safeint",...n(Q)})}function pW(x,Q){return new x({type:"boolean",...n(Q)})}function lW(x,Q){return new x({type:"null",...n(Q)})}function nW(x){return new x({type:"unknown"})}function mW(x,Q){return new x({type:"never",...n(Q)})}function v7(x,Q){return new jQ({check:"less_than",...n(Q),value:x,inclusive:!1})}function j6(x,Q){return new jQ({check:"less_than",...n(Q),value:x,inclusive:!0})}function B7(x,Q){return new AQ({check:"greater_than",...n(Q),value:x,inclusive:!1})}function A6(x,Q){return new AQ({check:"greater_than",...n(Q),value:x,inclusive:!0})}function w7(x,Q){return new zv({check:"multiple_of",...n(Q),value:x})}function K7(x,Q){return new Bv({check:"max_length",...n(Q),maximum:x})}function b8(x,Q){return new wv({check:"min_length",...n(Q),minimum:x})}function H7(x,Q){return new Kv({check:"length_equals",...n(Q),length:x})}function fW(x,Q){return new Hv({check:"string_format",format:"regex",...n(Q),pattern:x})}function yW(x){return new Vv({check:"string_format",format:"lowercase",...n(x)})}function gW(x){return new qv({check:"string_format",format:"uppercase",...n(x)})}function hW(x,Q){return new Nv({check:"string_format",format:"includes",...n(Q),includes:x})}function oW(x,Q){return new Uv({check:"string_format",format:"starts_with",...n(Q),prefix:x})}function aW(x,Q){return new Lv({check:"string_format",format:"ends_with",...n(Q),suffix:x})}function qx(x){return new Fv({check:"overwrite",tx:x})}function dW(x){return qx((Q)=>Q.normalize(x))}function rW(){return qx((x)=>x.trim())}function sW(){return qx((x)=>x.toLowerCase())}function tW(){return qx((x)=>x.toUpperCase())}function mv(x,Q,W){return new x({type:"array",element:Q,...n(W)})}function eW(x,Q,W){let Y=n(W);return Y.abort??(Y.abort=!0),new x({type:"custom",check:"custom",fn:Q,...Y})}function xY(x,Q,W){return new x({type:"custom",check:"custom",fn:Q,...n(W)})}class QY{constructor(x){this.counter=0,this.metadataRegistry=x?.metadata??i4,this.target=x?.target??"draft-2020-12",this.unrepresentable=x?.unrepresentable??"throw",this.override=x?.override??(()=>{}),this.io=x?.io??"output",this.seen=new Map}process(x,Q={path:[],schemaPath:[]}){var W;let Y=x._zod.def,X={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},J=this.seen.get(x);if(J){if(J.count++,Q.schemaPath.includes(x))J.cycle=Q.path;return J.schema}let G={schema:{},count:1,cycle:void 0,path:Q.path};this.seen.set(x,G);let $=x._zod.toJSONSchema?.();if($)G.schema=$;else{let v={...Q,schemaPath:[...Q.schemaPath,x],path:Q.path},B=x._zod.parent;if(B)G.ref=B,this.process(B,v),this.seen.get(B).isParent=!0;else{let K=G.schema;switch(Y.type){case"string":{let w=K;w.type="string";let{minimum:V,maximum:N,format:U,patterns:q,contentEncoding:L}=x._zod.bag;if(typeof V==="number")w.minLength=V;if(typeof N==="number")w.maxLength=N;if(U){if(w.format=X[U]??U,w.format==="")delete w.format}if(L)w.contentEncoding=L;if(q&&q.size>0){let c=[...q];if(c.length===1)w.pattern=c[0].source;else if(c.length>1)G.schema.allOf=[...c.map((S)=>({...this.target==="draft-7"?{type:"string"}:{},pattern:S.source}))]}break}case"number":{let w=K,{minimum:V,maximum:N,format:U,multipleOf:q,exclusiveMaximum:L,exclusiveMinimum:c}=x._zod.bag;if(typeof U==="string"&&U.includes("int"))w.type="integer";else w.type="number";if(typeof c==="number")w.exclusiveMinimum=c;if(typeof V==="number"){if(w.minimum=V,typeof c==="number")if(c>=V)delete w.minimum;else delete w.exclusiveMinimum}if(typeof L==="number")w.exclusiveMaximum=L;if(typeof N==="number"){if(w.maximum=N,typeof L==="number")if(L<=N)delete w.maximum;else delete w.exclusiveMaximum}if(typeof q==="number")w.multipleOf=q;break}case"boolean":{let w=K;w.type="boolean";break}case"bigint":{if(this.unrepresentable==="throw")throw Error("BigInt cannot be represented in JSON Schema");break}case"symbol":{if(this.unrepresentable==="throw")throw Error("Symbols cannot be represented in JSON Schema");break}case"null":{K.type="null";break}case"any":break;case"unknown":break;case"undefined":{if(this.unrepresentable==="throw")throw Error("Undefined cannot be represented in JSON Schema");break}case"void":{if(this.unrepresentable==="throw")throw Error("Void cannot be represented in JSON Schema");break}case"never":{K.not={};break}case"date":{if(this.unrepresentable==="throw")throw Error("Date cannot be represented in JSON Schema");break}case"array":{let w=K,{minimum:V,maximum:N}=x._zod.bag;if(typeof V==="number")w.minItems=V;if(typeof N==="number")w.maxItems=N;w.type="array",w.items=this.process(Y.element,{...v,path:[...v.path,"items"]});break}case"object":{let w=K;w.type="object",w.properties={};let V=Y.shape;for(let q in V)w.properties[q]=this.process(V[q],{...v,path:[...v.path,"properties",q]});let N=new Set(Object.keys(V)),U=new Set([...N].filter((q)=>{let L=Y.shape[q]._zod;if(this.io==="input")return L.optin===void 0;else return L.optout===void 0}));if(U.size>0)w.required=Array.from(U);if(Y.catchall?._zod.def.type==="never")w.additionalProperties=!1;else if(!Y.catchall){if(this.io==="output")w.additionalProperties=!1}else if(Y.catchall)w.additionalProperties=this.process(Y.catchall,{...v,path:[...v.path,"additionalProperties"]});break}case"union":{let w=K;w.anyOf=Y.options.map((V,N)=>this.process(V,{...v,path:[...v.path,"anyOf",N]}));break}case"intersection":{let w=K,V=this.process(Y.left,{...v,path:[...v.path,"allOf",0]}),N=this.process(Y.right,{...v,path:[...v.path,"allOf",1]}),U=(L)=>("allOf"in L)&&Object.keys(L).length===1,q=[...U(V)?V.allOf:[V],...U(N)?N.allOf:[N]];w.allOf=q;break}case"tuple":{let w=K;w.type="array";let V=Y.items.map((q,L)=>this.process(q,{...v,path:[...v.path,"prefixItems",L]}));if(this.target==="draft-2020-12")w.prefixItems=V;else w.items=V;if(Y.rest){let q=this.process(Y.rest,{...v,path:[...v.path,"items"]});if(this.target==="draft-2020-12")w.items=q;else w.additionalItems=q}if(Y.rest)w.items=this.process(Y.rest,{...v,path:[...v.path,"items"]});let{minimum:N,maximum:U}=x._zod.bag;if(typeof N==="number")w.minItems=N;if(typeof U==="number")w.maxItems=U;break}case"record":{let w=K;w.type="object",w.propertyNames=this.process(Y.keyType,{...v,path:[...v.path,"propertyNames"]}),w.additionalProperties=this.process(Y.valueType,{...v,path:[...v.path,"additionalProperties"]});break}case"map":{if(this.unrepresentable==="throw")throw Error("Map cannot be represented in JSON Schema");break}case"set":{if(this.unrepresentable==="throw")throw Error("Set cannot be represented in JSON Schema");break}case"enum":{let w=K,V=q6(Y.entries);if(V.every((N)=>typeof N==="number"))w.type="number";if(V.every((N)=>typeof N==="string"))w.type="string";w.enum=V;break}case"literal":{let w=K,V=[];for(let N of Y.values)if(N===void 0){if(this.unrepresentable==="throw")throw Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof N==="bigint")if(this.unrepresentable==="throw")throw Error("BigInt literals cannot be represented in JSON Schema");else V.push(Number(N));else V.push(N);if(V.length===0);else if(V.length===1){let N=V[0];w.type=N===null?"null":typeof N,w.const=N}else{if(V.every((N)=>typeof N==="number"))w.type="number";if(V.every((N)=>typeof N==="string"))w.type="string";if(V.every((N)=>typeof N==="boolean"))w.type="string";if(V.every((N)=>N===null))w.type="null";w.enum=V}break}case"file":{let w=K,V={type:"string",format:"binary",contentEncoding:"binary"},{minimum:N,maximum:U,mime:q}=x._zod.bag;if(N!==void 0)V.minLength=N;if(U!==void 0)V.maxLength=U;if(q)if(q.length===1)V.contentMediaType=q[0],Object.assign(w,V);else w.anyOf=q.map((L)=>{return{...V,contentMediaType:L}});else Object.assign(w,V);break}case"transform":{if(this.unrepresentable==="throw")throw Error("Transforms cannot be represented in JSON Schema");break}case"nullable":{let w=this.process(Y.innerType,v);K.anyOf=[w,{type:"null"}];break}case"nonoptional":{this.process(Y.innerType,v),G.ref=Y.innerType;break}case"success":{let w=K;w.type="boolean";break}case"default":{this.process(Y.innerType,v),G.ref=Y.innerType,K.default=JSON.parse(JSON.stringify(Y.defaultValue));break}case"prefault":{if(this.process(Y.innerType,v),G.ref=Y.innerType,this.io==="input")K._prefault=JSON.parse(JSON.stringify(Y.defaultValue));break}case"catch":{this.process(Y.innerType,v),G.ref=Y.innerType;let w;try{w=Y.catchValue(void 0)}catch{throw Error("Dynamic catch values are not supported in JSON Schema")}K.default=w;break}case"nan":{if(this.unrepresentable==="throw")throw Error("NaN cannot be represented in JSON Schema");break}case"template_literal":{let w=K,V=x._zod.pattern;if(!V)throw Error("Pattern not found in template literal");w.type="string",w.pattern=V.source;break}case"pipe":{let w=this.io==="input"?Y.in._zod.def.type==="transform"?Y.out:Y.in:Y.out;this.process(w,v),G.ref=w;break}case"readonly":{this.process(Y.innerType,v),G.ref=Y.innerType,K.readOnly=!0;break}case"promise":{this.process(Y.innerType,v),G.ref=Y.innerType;break}case"optional":{this.process(Y.innerType,v),G.ref=Y.innerType;break}case"lazy":{let w=x._zod.innerType;this.process(w,v),G.ref=w;break}case"custom":{if(this.unrepresentable==="throw")throw Error("Custom types cannot be represented in JSON Schema");break}default:}}}let b=this.metadataRegistry.get(x);if(b)Object.assign(G.schema,b);if(this.io==="input"&&l0(x))delete G.schema.examples,delete G.schema.default;if(this.io==="input"&&G.schema._prefault)(W=G.schema).default??(W.default=G.schema._prefault);return delete G.schema._prefault,this.seen.get(x).schema}emit(x,Q){let W={cycles:Q?.cycles??"ref",reused:Q?.reused??"inline",external:Q?.external??void 0},Y=this.seen.get(x);if(!Y)throw Error("Unprocessed schema. This is a bug in Zod.");let X=(z)=>{let v=this.target==="draft-2020-12"?"$defs":"definitions";if(W.external){let V=W.external.registry.get(z[0])?.id,N=W.external.uri??((q)=>q);if(V)return{ref:N(V)};let U=z[1].defId??z[1].schema.id??`schema${this.counter++}`;return z[1].defId=U,{defId:U,ref:`${N("__shared")}#/${v}/${U}`}}if(z[1]===Y)return{ref:"#"};let K=`${"#"}/${v}/`,w=z[1].schema.id??`__schema${this.counter++}`;return{defId:w,ref:K+w}},J=(z)=>{if(z[1].schema.$ref)return;let v=z[1],{ref:B,defId:K}=X(z);if(v.def={...v.schema},K)v.defId=K;let w=v.schema;for(let V in w)delete w[V];w.$ref=B};if(W.cycles==="throw")for(let z of this.seen.entries()){let v=z[1];if(v.cycle)throw Error(`Cycle detected: #/${v.cycle?.join("/")}/<root>
61
61
 
62
- Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let z of this.seen.entries()){let v=z[1];if(x===z[0]){J(z);continue}if(W.external){let K=W.external.registry.get(z[0])?.id;if(x!==z[0]&&K){J(z);continue}}if(this.metadataRegistry.get(z[0])?.id){J(z);continue}if(v.cycle){J(z);continue}if(v.count>1){if(W.reused==="ref"){J(z);continue}}}let G=(z,v)=>{let B=this.seen.get(z),K=B.def??B.schema,w={...K};if(B.ref===null)return;let V=B.ref;if(B.ref=null,V){G(V,v);let N=this.seen.get(V).schema;if(N.$ref&&v.target==="draft-7")K.allOf=K.allOf??[],K.allOf.push(N);else Object.assign(K,N),Object.assign(K,w)}if(!B.isParent)this.override({zodSchema:z,jsonSchema:K,path:B.path??[]})};for(let z of[...this.seen.entries()].reverse())G(z[0],{target:this.target});let $={};if(this.target==="draft-2020-12")$.$schema="https://json-schema.org/draft/2020-12/schema";else if(this.target==="draft-7")$.$schema="http://json-schema.org/draft-07/schema#";else console.warn(`Invalid target: ${this.target}`);if(W.external?.uri){let z=W.external.registry.get(x)?.id;if(!z)throw Error("Schema is missing an `id` property");$.$id=W.external.uri(z)}Object.assign($,Y.def);let b=W.external?.defs??{};for(let z of this.seen.entries()){let v=z[1];if(v.def&&v.defId)b[v.defId]=v.def}if(W.external);else if(Object.keys(b).length>0)if(this.target==="draft-2020-12")$.$defs=b;else $.definitions=b;try{return JSON.parse(JSON.stringify($))}catch(z){throw Error("Error converting schema to JSON.")}}}function WY(x,Q){if(x instanceof b7){let Y=new QY(Q),X={};for(let $ of x._idmap.entries()){let[b,z]=$;Y.process(z)}let J={},G={registry:x,uri:Q?.uri,defs:X};for(let $ of x._idmap.entries()){let[b,z]=$;J[b]=Y.emit(z,{...Q,external:G})}if(Object.keys(X).length>0){let $=Y.target==="draft-2020-12"?"$defs":"definitions";J.__shared={[$]:X}}return{schemas:J}}let W=new QY(Q);return W.process(x),W.emit(x,Q)}function l0(x,Q){let W=Q??{seen:new Set};if(W.seen.has(x))return!1;W.seen.add(x);let X=x._zod.def;switch(X.type){case"string":case"number":case"bigint":case"boolean":case"date":case"symbol":case"undefined":case"null":case"any":case"unknown":case"never":case"void":case"literal":case"enum":case"nan":case"file":case"template_literal":return!1;case"array":return l0(X.element,W);case"object":{for(let J in X.shape)if(l0(X.shape[J],W))return!0;return!1}case"union":{for(let J of X.options)if(l0(J,W))return!0;return!1}case"intersection":return l0(X.left,W)||l0(X.right,W);case"tuple":{for(let J of X.items)if(l0(J,W))return!0;if(X.rest&&l0(X.rest,W))return!0;return!1}case"record":return l0(X.keyType,W)||l0(X.valueType,W);case"map":return l0(X.keyType,W)||l0(X.valueType,W);case"set":return l0(X.valueType,W);case"promise":case"optional":case"nonoptional":case"nullable":case"readonly":return l0(X.innerType,W);case"lazy":return l0(X.getter(),W);case"default":return l0(X.innerType,W);case"prefault":return l0(X.innerType,W);case"custom":return!1;case"transform":return!0;case"pipe":return l0(X.in,W)||l0(X.out,W);case"success":return!1;case"catch":return!1;default:}throw Error(`Unknown schema type: ${X.type}`)}var tA=j("ZodMiniType",(x,Q)=>{if(!x._zod)throw Error("Uninitialized schema in ZodMiniType.");w0.init(x,Q),x.def=Q,x.parse=(W,Y)=>NQ(x,W,Y,{callee:x.parse}),x.safeParse=(W,Y)=>Hx(x,W,Y),x.parseAsync=async(W,Y)=>UQ(x,W,Y,{callee:x.parseAsync}),x.safeParseAsync=async(W,Y)=>Vx(x,W,Y),x.check=(...W)=>{return x.clone({...Q,checks:[...Q.checks??[],...W.map((Y)=>typeof Y==="function"?{_zod:{check:Y,def:{check:"custom"},onattach:[]}}:Y)]})},x.clone=(W,Y)=>j1(x,W,Y),x.brand=()=>x,x.register=(W,Y)=>{return W.add(x,Y),x}});var eA=j("ZodMiniObject",(x,Q)=>{G7.init(x,Q),tA.init(x,Q),Q0.defineLazy(x,"shape",()=>Q.shape)});function YY(x,Q){let W={type:"object",get shape(){return Q0.assignProp(this,"shape",{...x}),this.shape},...Q0.normalizeParams(Q)};return new eA(W)}function R1(x){return!!x._zod}function Lx(x){let Q=Object.values(x);if(Q.length===0)return YY({});let W=Q.every(R1),Y=Q.every((X)=>!R1(X));if(W)return YY(x);if(Y)return XQ(x);throw Error("Mixed Zod versions detected in object shape.")}function C4(x,Q){if(R1(x))return Hx(x,Q);return x.safeParse(Q)}async function V7(x,Q){if(R1(x))return await Vx(x,Q);return await x.safeParseAsync(Q)}function T4(x){if(!x)return;let Q;if(R1(x))Q=x._zod?.def?.shape;else Q=x.shape;if(!Q)return;if(typeof Q==="function")try{return Q()}catch{return}return Q}function z8(x){if(!x)return;if(typeof x==="object"){let Q=x,W=x;if(!Q._def&&!W._zod){let Y=Object.values(x);if(Y.length>0&&Y.every((X)=>typeof X==="object"&&X!==null&&(X._def!==void 0||X._zod!==void 0||typeof X.parse==="function")))return Lx(x)}}if(R1(x)){let W=x._zod?.def;if(W&&(W.type==="object"||W.shape!==void 0))return x}else if(x.shape!==void 0)return x;return}function q7(x){if(x&&typeof x==="object"){if("message"in x&&typeof x.message==="string")return x.message;if("issues"in x&&Array.isArray(x.issues)&&x.issues.length>0){let Q=x.issues[0];if(Q&&typeof Q==="object"&&"message"in Q)return String(Q.message)}try{return JSON.stringify(x)}catch{return String(x)}}return String(x)}function nv(x){return x.description}function mv(x){if(R1(x))return x._zod?.def?.type==="optional";let Q=x;if(typeof x.isOptional==="function")return x.isOptional();return Q._def?.typeName==="ZodOptional"}function N7(x){if(R1(x)){let J=x._zod?.def;if(J){if(J.value!==void 0)return J.value;if(Array.isArray(J.values)&&J.values.length>0)return J.values[0]}}let W=x._def;if(W){if(W.value!==void 0)return W.value;if(Array.isArray(W.values)&&W.values.length>0)return W.values[0]}let Y=x.value;if(Y!==void 0)return Y;return}var O6={};i8(O6,{time:()=>GY,duration:()=>$Y,datetime:()=>XY,date:()=>JY,ZodISOTime:()=>gv,ZodISODuration:()=>hv,ZodISODateTime:()=>fv,ZodISODate:()=>yv});var fv=j("ZodISODateTime",(x,Q)=>{Sv.init(x,Q),c0.init(x,Q)});function XY(x){return Tv(fv,x)}var yv=j("ZodISODate",(x,Q)=>{Pv.init(x,Q),c0.init(x,Q)});function JY(x){return kv(yv,x)}var gv=j("ZodISOTime",(x,Q)=>{Rv.init(x,Q),c0.init(x,Q)});function GY(x){return _v(gv,x)}var hv=j("ZodISODuration",(x,Q)=>{Zv.init(x,Q),c0.init(x,Q)});function $Y(x){return uv(hv,x)}var ov=(x,Q)=>{W7.init(x,Q),x.name="ZodError",Object.defineProperties(x,{format:{value:(W)=>VQ(x,W)},flatten:{value:(W)=>HQ(x,W)},addIssue:{value:(W)=>x.issues.push(W)},addIssues:{value:(W)=>x.issues.push(...W)},isEmpty:{get(){return x.issues.length===0}}})},Xy=j("ZodError",ov),I6=j("ZodError",ov,{Parent:Error});var av=qQ(I6),dv=LQ(I6),rv=FQ(I6),sv=MQ(I6);var S0=j("ZodType",(x,Q)=>{return w0.init(x,Q),x.def=Q,Object.defineProperty(x,"_def",{value:Q}),x.check=(...W)=>{return x.clone({...Q,checks:[...Q.checks??[],...W.map((Y)=>typeof Y==="function"?{_zod:{check:Y,def:{check:"custom"},onattach:[]}}:Y)]})},x.clone=(W,Y)=>j1(x,W,Y),x.brand=()=>x,x.register=(W,Y)=>{return W.add(x,Y),x},x.parse=(W,Y)=>av(x,W,Y,{callee:x.parse}),x.safeParse=(W,Y)=>rv(x,W,Y),x.parseAsync=async(W,Y)=>dv(x,W,Y,{callee:x.parseAsync}),x.safeParseAsync=async(W,Y)=>sv(x,W,Y),x.spa=x.safeParseAsync,x.refine=(W,Y)=>x.check(rO(W,Y)),x.superRefine=(W)=>x.check(sO(W)),x.overwrite=(W)=>x.check(qx(W)),x.optional=()=>A0(x),x.nullable=()=>xB(x),x.nullish=()=>A0(xB(x)),x.nonoptional=(W)=>fO(x,W),x.array=()=>W0(x),x.or=(W)=>F0([x,W]),x.and=(W)=>U7(x,W),x.transform=(W)=>zY(x,GB(W)),x.default=(W)=>lO(x,W),x.prefault=(W)=>mO(x,W),x.catch=(W)=>gO(x,W),x.pipe=(W)=>zY(x,W),x.readonly=()=>aO(x),x.describe=(W)=>{let Y=x.clone();return i4.add(Y,{description:W}),Y},Object.defineProperty(x,"description",{get(){return i4.get(x)?.description},configurable:!0}),x.meta=(...W)=>{if(W.length===0)return i4.get(x);let Y=x.clone();return i4.add(Y,W[0]),Y},x.isOptional=()=>x.safeParse(void 0).success,x.isNullable=()=>x.safeParse(null).success,x}),QB=j("_ZodString",(x,Q)=>{c6.init(x,Q),S0.init(x,Q);let W=x._zod.bag;x.format=W.format??null,x.minLength=W.minimum??null,x.maxLength=W.maximum??null,x.regex=(...Y)=>x.check(fW(...Y)),x.includes=(...Y)=>x.check(hW(...Y)),x.startsWith=(...Y)=>x.check(oW(...Y)),x.endsWith=(...Y)=>x.check(aW(...Y)),x.min=(...Y)=>x.check(b8(...Y)),x.max=(...Y)=>x.check(K7(...Y)),x.length=(...Y)=>x.check(H7(...Y)),x.nonempty=(...Y)=>x.check(b8(1,...Y)),x.lowercase=(Y)=>x.check(yW(Y)),x.uppercase=(Y)=>x.check(gW(Y)),x.trim=()=>x.check(rW()),x.normalize=(...Y)=>x.check(dW(...Y)),x.toLowerCase=()=>x.check(sW()),x.toUpperCase=()=>x.check(tW())}),bO=j("ZodString",(x,Q)=>{c6.init(x,Q),QB.init(x,Q),x.email=(W)=>x.check(qW(zO,W)),x.url=(W)=>x.check(MW(vO,W)),x.jwt=(W)=>x.check(kW(AO,W)),x.emoji=(W)=>x.check(DW(BO,W)),x.guid=(W)=>x.check(z7(tv,W)),x.uuid=(W)=>x.check(NW(L7,W)),x.uuidv4=(W)=>x.check(LW(L7,W)),x.uuidv6=(W)=>x.check(UW(L7,W)),x.uuidv7=(W)=>x.check(FW(L7,W)),x.nanoid=(W)=>x.check(cW(wO,W)),x.guid=(W)=>x.check(z7(tv,W)),x.cuid=(W)=>x.check(jW(KO,W)),x.cuid2=(W)=>x.check(AW(HO,W)),x.ulid=(W)=>x.check(OW(VO,W)),x.base64=(W)=>x.check(iW(DO,W)),x.base64url=(W)=>x.check(CW(cO,W)),x.xid=(W)=>x.check(IW(qO,W)),x.ksuid=(W)=>x.check(EW(NO,W)),x.ipv4=(W)=>x.check(SW(LO,W)),x.ipv6=(W)=>x.check(PW(UO,W)),x.cidrv4=(W)=>x.check(RW(FO,W)),x.cidrv6=(W)=>x.check(ZW(MO,W)),x.e164=(W)=>x.check(TW(jO,W)),x.datetime=(W)=>x.check(XY(W)),x.date=(W)=>x.check(JY(W)),x.time=(W)=>x.check(GY(W)),x.duration=(W)=>x.check($Y(W))});function D(x){return VW(bO,x)}var c0=j("ZodStringFormat",(x,Q)=>{N0.init(x,Q),QB.init(x,Q)}),zO=j("ZodEmail",(x,Q)=>{PQ.init(x,Q),c0.init(x,Q)});var tv=j("ZodGUID",(x,Q)=>{EQ.init(x,Q),c0.init(x,Q)});var L7=j("ZodUUID",(x,Q)=>{SQ.init(x,Q),c0.init(x,Q)});var vO=j("ZodURL",(x,Q)=>{RQ.init(x,Q),c0.init(x,Q)});var BO=j("ZodEmoji",(x,Q)=>{ZQ.init(x,Q),c0.init(x,Q)});var wO=j("ZodNanoID",(x,Q)=>{iQ.init(x,Q),c0.init(x,Q)});var KO=j("ZodCUID",(x,Q)=>{CQ.init(x,Q),c0.init(x,Q)});var HO=j("ZodCUID2",(x,Q)=>{TQ.init(x,Q),c0.init(x,Q)});var VO=j("ZodULID",(x,Q)=>{kQ.init(x,Q),c0.init(x,Q)});var qO=j("ZodXID",(x,Q)=>{_Q.init(x,Q),c0.init(x,Q)});var NO=j("ZodKSUID",(x,Q)=>{uQ.init(x,Q),c0.init(x,Q)});var LO=j("ZodIPv4",(x,Q)=>{pQ.init(x,Q),c0.init(x,Q)});var UO=j("ZodIPv6",(x,Q)=>{lQ.init(x,Q),c0.init(x,Q)});var FO=j("ZodCIDRv4",(x,Q)=>{nQ.init(x,Q),c0.init(x,Q)});var MO=j("ZodCIDRv6",(x,Q)=>{mQ.init(x,Q),c0.init(x,Q)});var DO=j("ZodBase64",(x,Q)=>{fQ.init(x,Q),c0.init(x,Q)});var cO=j("ZodBase64URL",(x,Q)=>{yQ.init(x,Q),c0.init(x,Q)});var jO=j("ZodE164",(x,Q)=>{gQ.init(x,Q),c0.init(x,Q)});var AO=j("ZodJWT",(x,Q)=>{hQ.init(x,Q),c0.init(x,Q)});var WB=j("ZodNumber",(x,Q)=>{J7.init(x,Q),S0.init(x,Q),x.gt=(Y,X)=>x.check(B7(Y,X)),x.gte=(Y,X)=>x.check(A6(Y,X)),x.min=(Y,X)=>x.check(A6(Y,X)),x.lt=(Y,X)=>x.check(v7(Y,X)),x.lte=(Y,X)=>x.check(j6(Y,X)),x.max=(Y,X)=>x.check(j6(Y,X)),x.int=(Y)=>x.check(ev(Y)),x.safe=(Y)=>x.check(ev(Y)),x.positive=(Y)=>x.check(B7(0,Y)),x.nonnegative=(Y)=>x.check(A6(0,Y)),x.negative=(Y)=>x.check(v7(0,Y)),x.nonpositive=(Y)=>x.check(j6(0,Y)),x.multipleOf=(Y,X)=>x.check(w7(Y,X)),x.step=(Y,X)=>x.check(w7(Y,X)),x.finite=()=>x;let W=x._zod.bag;x.minValue=Math.max(W.minimum??Number.NEGATIVE_INFINITY,W.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,x.maxValue=Math.min(W.maximum??Number.POSITIVE_INFINITY,W.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,x.isInt=(W.format??"").includes("int")||Number.isSafeInteger(W.multipleOf??0.5),x.isFinite=!0,x.format=W.format??null});function z0(x){return _W(WB,x)}var OO=j("ZodNumberFormat",(x,Q)=>{oQ.init(x,Q),WB.init(x,Q)});function ev(x){return uW(OO,x)}var IO=j("ZodBoolean",(x,Q)=>{aQ.init(x,Q),S0.init(x,Q)});function h0(x){return pW(IO,x)}var EO=j("ZodNull",(x,Q)=>{dQ.init(x,Q),S0.init(x,Q)});function YB(x){return lW(EO,x)}var SO=j("ZodUnknown",(x,Q)=>{rQ.init(x,Q),S0.init(x,Q)});function j0(){return nW(SO)}var PO=j("ZodNever",(x,Q)=>{sQ.init(x,Q),S0.init(x,Q)});function RO(x){return mW(PO,x)}var ZO=j("ZodArray",(x,Q)=>{tQ.init(x,Q),S0.init(x,Q),x.element=Q.element,x.min=(W,Y)=>x.check(b8(W,Y)),x.nonempty=(W)=>x.check(b8(1,W)),x.max=(W,Y)=>x.check(K7(W,Y)),x.length=(W,Y)=>x.check(H7(W,Y)),x.unwrap=()=>x.element});function W0(x,Q){return pv(ZO,x,Q)}var XB=j("ZodObject",(x,Q)=>{G7.init(x,Q),S0.init(x,Q),Q0.defineLazy(x,"shape",()=>Q.shape),x.keyof=()=>H1(Object.keys(x._zod.def.shape)),x.catchall=(W)=>x.clone({...x._zod.def,catchall:W}),x.passthrough=()=>x.clone({...x._zod.def,catchall:j0()}),x.loose=()=>x.clone({...x._zod.def,catchall:j0()}),x.strict=()=>x.clone({...x._zod.def,catchall:RO()}),x.strip=()=>x.clone({...x._zod.def,catchall:void 0}),x.extend=(W)=>{return Q0.extend(x,W)},x.merge=(W)=>Q0.merge(x,W),x.pick=(W)=>Q0.pick(x,W),x.omit=(W)=>Q0.omit(x,W),x.partial=(...W)=>Q0.partial($B,x,W[0]),x.required=(...W)=>Q0.required(bB,x,W[0])});function C(x,Q){let W={type:"object",get shape(){return Q0.assignProp(this,"shape",{...x}),this.shape},...Q0.normalizeParams(Q)};return new XB(W)}function J1(x,Q){return new XB({type:"object",get shape(){return Q0.assignProp(this,"shape",{...x}),this.shape},catchall:j0(),...Q0.normalizeParams(Q)})}var JB=j("ZodUnion",(x,Q)=>{$7.init(x,Q),S0.init(x,Q),x.options=Q.options});function F0(x,Q){return new JB({type:"union",options:x,...Q0.normalizeParams(Q)})}var iO=j("ZodDiscriminatedUnion",(x,Q)=>{JB.init(x,Q),eQ.init(x,Q)});function vY(x,Q,W){return new iO({type:"union",options:Q,discriminator:x,...Q0.normalizeParams(W)})}var CO=j("ZodIntersection",(x,Q)=>{xW.init(x,Q),S0.init(x,Q)});function U7(x,Q){return new CO({type:"intersection",left:x,right:Q})}var TO=j("ZodRecord",(x,Q)=>{QW.init(x,Q),S0.init(x,Q),x.keyType=Q.keyType,x.valueType=Q.valueType});function L0(x,Q,W){return new TO({type:"record",keyType:x,valueType:Q,...Q0.normalizeParams(W)})}var bY=j("ZodEnum",(x,Q)=>{WW.init(x,Q),S0.init(x,Q),x.enum=Q.entries,x.options=Object.values(Q.entries);let W=new Set(Object.keys(Q.entries));x.extract=(Y,X)=>{let J={};for(let G of Y)if(W.has(G))J[G]=Q.entries[G];else throw Error(`Key ${G} not found in enum`);return new bY({...Q,checks:[],...Q0.normalizeParams(X),entries:J})},x.exclude=(Y,X)=>{let J={...Q.entries};for(let G of Y)if(W.has(G))delete J[G];else throw Error(`Key ${G} not found in enum`);return new bY({...Q,checks:[],...Q0.normalizeParams(X),entries:J})}});function H1(x,Q){let W=Array.isArray(x)?Object.fromEntries(x.map((Y)=>[Y,Y])):x;return new bY({type:"enum",entries:W,...Q0.normalizeParams(Q)})}var kO=j("ZodLiteral",(x,Q)=>{YW.init(x,Q),S0.init(x,Q),x.values=new Set(Q.values),Object.defineProperty(x,"value",{get(){if(Q.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return Q.values[0]}})});function _(x,Q){return new kO({type:"literal",values:Array.isArray(x)?x:[x],...Q0.normalizeParams(Q)})}var _O=j("ZodTransform",(x,Q)=>{XW.init(x,Q),S0.init(x,Q),x._zod.parse=(W,Y)=>{W.addIssue=(J)=>{if(typeof J==="string")W.issues.push(Q0.issue(J,W.value,Q));else{let G=J;if(G.fatal)G.continue=!1;G.code??(G.code="custom"),G.input??(G.input=W.value),G.inst??(G.inst=x),G.continue??(G.continue=!0),W.issues.push(Q0.issue(G))}};let X=Q.transform(W.value,W);if(X instanceof Promise)return X.then((J)=>{return W.value=J,W});return W.value=X,W}});function GB(x){return new _O({type:"transform",transform:x})}var $B=j("ZodOptional",(x,Q)=>{JW.init(x,Q),S0.init(x,Q),x.unwrap=()=>x._zod.def.innerType});function A0(x){return new $B({type:"optional",innerType:x})}var uO=j("ZodNullable",(x,Q)=>{GW.init(x,Q),S0.init(x,Q),x.unwrap=()=>x._zod.def.innerType});function xB(x){return new uO({type:"nullable",innerType:x})}var pO=j("ZodDefault",(x,Q)=>{$W.init(x,Q),S0.init(x,Q),x.unwrap=()=>x._zod.def.innerType,x.removeDefault=x.unwrap});function lO(x,Q){return new pO({type:"default",innerType:x,get defaultValue(){return typeof Q==="function"?Q():Q}})}var nO=j("ZodPrefault",(x,Q)=>{bW.init(x,Q),S0.init(x,Q),x.unwrap=()=>x._zod.def.innerType});function mO(x,Q){return new nO({type:"prefault",innerType:x,get defaultValue(){return typeof Q==="function"?Q():Q}})}var bB=j("ZodNonOptional",(x,Q)=>{zW.init(x,Q),S0.init(x,Q),x.unwrap=()=>x._zod.def.innerType});function fO(x,Q){return new bB({type:"nonoptional",innerType:x,...Q0.normalizeParams(Q)})}var yO=j("ZodCatch",(x,Q)=>{vW.init(x,Q),S0.init(x,Q),x.unwrap=()=>x._zod.def.innerType,x.removeCatch=x.unwrap});function gO(x,Q){return new yO({type:"catch",innerType:x,catchValue:typeof Q==="function"?Q:()=>Q})}var hO=j("ZodPipe",(x,Q)=>{BW.init(x,Q),S0.init(x,Q),x.in=Q.in,x.out=Q.out});function zY(x,Q){return new hO({type:"pipe",in:x,out:Q})}var oO=j("ZodReadonly",(x,Q)=>{wW.init(x,Q),S0.init(x,Q)});function aO(x){return new oO({type:"readonly",innerType:x})}var zB=j("ZodCustom",(x,Q)=>{KW.init(x,Q),S0.init(x,Q)});function dO(x){let Q=new r0({check:"custom"});return Q._zod.check=x,Q}function vB(x,Q){return eW(zB,x??(()=>!0),Q)}function rO(x,Q={}){return xY(zB,x,Q)}function sO(x){let Q=dO((W)=>{return W.addIssue=(Y)=>{if(typeof Y==="string")W.issues.push(Q0.issue(Y,W.value,Q._zod.def));else{let X=Y;if(X.fatal)X.continue=!1;X.code??(X.code="custom"),X.input??(X.input=W.value),X.inst??(X.inst=Q),X.continue??(X.continue=!Q._zod.def.abort),W.issues.push(Q0.issue(X))}},x(W.value,W)});return Q}function BY(x,Q){return zY(GB(x),Q)}c1(HW());var wY="2025-11-25";var BB=[wY,"2025-06-18","2025-03-26","2024-11-05","2024-10-07"],k4="io.modelcontextprotocol/related-task",M7="2.0",n0=vB((x)=>x!==null&&(typeof x==="object"||typeof x==="function")),wB=F0([D(),z0().int()]),KB=D(),Ly=J1({ttl:z0().optional(),pollInterval:z0().optional()}),tO=C({ttl:z0().optional()}),eO=C({taskId:D()}),KY=J1({progressToken:wB.optional(),[k4]:eO.optional()}),A1=C({_meta:KY.optional()}),E6=A1.extend({task:tO.optional()}),HB=(x)=>E6.safeParse(x).success,s0=C({method:D(),params:A1.loose().optional()}),Z1=C({_meta:KY.optional()}),i1=C({method:D(),params:Z1.loose().optional()}),t0=J1({_meta:KY.optional()}),D7=F0([D(),z0().int()]),VB=C({jsonrpc:_(M7),id:D7,...s0.shape}).strict(),HY=(x)=>VB.safeParse(x).success,qB=C({jsonrpc:_(M7),...i1.shape}).strict(),NB=(x)=>qB.safeParse(x).success,VY=C({jsonrpc:_(M7),id:D7,result:t0}).strict(),S6=(x)=>VY.safeParse(x).success;var p;(function(x){x[x.ConnectionClosed=-32000]="ConnectionClosed",x[x.RequestTimeout=-32001]="RequestTimeout",x[x.ParseError=-32700]="ParseError",x[x.InvalidRequest=-32600]="InvalidRequest",x[x.MethodNotFound=-32601]="MethodNotFound",x[x.InvalidParams=-32602]="InvalidParams",x[x.InternalError=-32603]="InternalError",x[x.UrlElicitationRequired=-32042]="UrlElicitationRequired"})(p||(p={}));var qY=C({jsonrpc:_(M7),id:D7.optional(),error:C({code:z0().int(),message:D(),data:j0().optional()})}).strict();var LB=(x)=>qY.safeParse(x).success;var UB=F0([VB,qB,VY,qY]),Uy=F0([VY,qY]),c7=t0.strict(),x2=Z1.extend({requestId:D7.optional(),reason:D().optional()}),j7=i1.extend({method:_("notifications/cancelled"),params:x2}),Q2=C({src:D(),mimeType:D().optional(),sizes:W0(D()).optional(),theme:H1(["light","dark"]).optional()}),P6=C({icons:W0(Q2).optional()}),v8=C({name:D(),title:D().optional()}),FB=v8.extend({...v8.shape,...P6.shape,version:D(),websiteUrl:D().optional(),description:D().optional()}),W2=U7(C({applyDefaults:h0().optional()}),L0(D(),j0())),Y2=BY((x)=>{if(x&&typeof x==="object"&&!Array.isArray(x)){if(Object.keys(x).length===0)return{form:{}}}return x},U7(C({form:W2.optional(),url:n0.optional()}),L0(D(),j0()).optional())),X2=J1({list:n0.optional(),cancel:n0.optional(),requests:J1({sampling:J1({createMessage:n0.optional()}).optional(),elicitation:J1({create:n0.optional()}).optional()}).optional()}),J2=J1({list:n0.optional(),cancel:n0.optional(),requests:J1({tools:J1({call:n0.optional()}).optional()}).optional()}),G2=C({experimental:L0(D(),n0).optional(),sampling:C({context:n0.optional(),tools:n0.optional()}).optional(),elicitation:Y2.optional(),roots:C({listChanged:h0().optional()}).optional(),tasks:X2.optional(),extensions:L0(D(),n0).optional()}),$2=A1.extend({protocolVersion:D(),capabilities:G2,clientInfo:FB}),NY=s0.extend({method:_("initialize"),params:$2});var b2=C({experimental:L0(D(),n0).optional(),logging:n0.optional(),completions:n0.optional(),prompts:C({listChanged:h0().optional()}).optional(),resources:C({subscribe:h0().optional(),listChanged:h0().optional()}).optional(),tools:C({listChanged:h0().optional()}).optional(),tasks:J2.optional(),extensions:L0(D(),n0).optional()}),z2=t0.extend({protocolVersion:D(),capabilities:b2,serverInfo:FB,instructions:D().optional()}),LY=i1.extend({method:_("notifications/initialized"),params:Z1.optional()});var A7=s0.extend({method:_("ping"),params:A1.optional()}),v2=C({progress:z0(),total:A0(z0()),message:A0(D())}),B2=C({...Z1.shape,...v2.shape,progressToken:wB}),O7=i1.extend({method:_("notifications/progress"),params:B2}),w2=A1.extend({cursor:KB.optional()}),R6=s0.extend({params:w2.optional()}),Z6=t0.extend({nextCursor:KB.optional()}),K2=H1(["working","input_required","completed","failed","cancelled"]),i6=C({taskId:D(),status:K2,ttl:F0([z0(),YB()]),createdAt:D(),lastUpdatedAt:D(),pollInterval:A0(z0()),statusMessage:A0(D())}),B8=t0.extend({task:i6}),H2=Z1.merge(i6),C6=i1.extend({method:_("notifications/tasks/status"),params:H2}),I7=s0.extend({method:_("tasks/get"),params:A1.extend({taskId:D()})}),E7=t0.merge(i6),S7=s0.extend({method:_("tasks/result"),params:A1.extend({taskId:D()})}),Fy=t0.loose(),P7=R6.extend({method:_("tasks/list")}),R7=Z6.extend({tasks:W0(i6)}),Z7=s0.extend({method:_("tasks/cancel"),params:A1.extend({taskId:D()})}),MB=t0.merge(i6),DB=C({uri:D(),mimeType:A0(D()),_meta:L0(D(),j0()).optional()}),cB=DB.extend({text:D()}),UY=D().refine((x)=>{try{return atob(x),!0}catch{return!1}},{message:"Invalid Base64 string"}),jB=DB.extend({blob:UY}),T6=H1(["user","assistant"]),w8=C({audience:W0(T6).optional(),priority:z0().min(0).max(1).optional(),lastModified:O6.datetime({offset:!0}).optional()}),AB=C({...v8.shape,...P6.shape,uri:D(),description:A0(D()),mimeType:A0(D()),size:A0(z0()),annotations:w8.optional(),_meta:A0(J1({}))}),V2=C({...v8.shape,...P6.shape,uriTemplate:D(),description:A0(D()),mimeType:A0(D()),annotations:w8.optional(),_meta:A0(J1({}))}),i7=R6.extend({method:_("resources/list")}),q2=Z6.extend({resources:W0(AB)}),C7=R6.extend({method:_("resources/templates/list")}),N2=Z6.extend({resourceTemplates:W0(V2)}),FY=A1.extend({uri:D()}),L2=FY,T7=s0.extend({method:_("resources/read"),params:L2}),U2=t0.extend({contents:W0(F0([cB,jB]))}),F2=i1.extend({method:_("notifications/resources/list_changed"),params:Z1.optional()}),M2=FY,D2=s0.extend({method:_("resources/subscribe"),params:M2}),c2=FY,j2=s0.extend({method:_("resources/unsubscribe"),params:c2}),A2=Z1.extend({uri:D()}),O2=i1.extend({method:_("notifications/resources/updated"),params:A2}),I2=C({name:D(),description:A0(D()),required:A0(h0())}),E2=C({...v8.shape,...P6.shape,description:A0(D()),arguments:A0(W0(I2)),_meta:A0(J1({}))}),k7=R6.extend({method:_("prompts/list")}),S2=Z6.extend({prompts:W0(E2)}),P2=A1.extend({name:D(),arguments:L0(D(),D()).optional()}),_7=s0.extend({method:_("prompts/get"),params:P2}),MY=C({type:_("text"),text:D(),annotations:w8.optional(),_meta:L0(D(),j0()).optional()}),DY=C({type:_("image"),data:UY,mimeType:D(),annotations:w8.optional(),_meta:L0(D(),j0()).optional()}),cY=C({type:_("audio"),data:UY,mimeType:D(),annotations:w8.optional(),_meta:L0(D(),j0()).optional()}),R2=C({type:_("tool_use"),name:D(),id:D(),input:L0(D(),j0()),_meta:L0(D(),j0()).optional()}),Z2=C({type:_("resource"),resource:F0([cB,jB]),annotations:w8.optional(),_meta:L0(D(),j0()).optional()}),i2=AB.extend({type:_("resource_link")}),jY=F0([MY,DY,cY,i2,Z2]),C2=C({role:T6,content:jY}),T2=t0.extend({description:D().optional(),messages:W0(C2)}),k2=i1.extend({method:_("notifications/prompts/list_changed"),params:Z1.optional()}),_2=C({title:D().optional(),readOnlyHint:h0().optional(),destructiveHint:h0().optional(),idempotentHint:h0().optional(),openWorldHint:h0().optional()}),u2=C({taskSupport:H1(["required","optional","forbidden"]).optional()}),OB=C({...v8.shape,...P6.shape,description:D().optional(),inputSchema:C({type:_("object"),properties:L0(D(),n0).optional(),required:W0(D()).optional()}).catchall(j0()),outputSchema:C({type:_("object"),properties:L0(D(),n0).optional(),required:W0(D()).optional()}).catchall(j0()).optional(),annotations:_2.optional(),execution:u2.optional(),_meta:L0(D(),j0()).optional()}),u7=R6.extend({method:_("tools/list")}),p2=Z6.extend({tools:W0(OB)}),p7=t0.extend({content:W0(jY).default([]),structuredContent:L0(D(),j0()).optional(),isError:h0().optional()}),My=p7.or(t0.extend({toolResult:j0()})),l2=E6.extend({name:D(),arguments:L0(D(),j0()).optional()}),K8=s0.extend({method:_("tools/call"),params:l2}),n2=i1.extend({method:_("notifications/tools/list_changed"),params:Z1.optional()}),Dy=C({autoRefresh:h0().default(!0),debounceMs:z0().int().nonnegative().default(300)}),k6=H1(["debug","info","notice","warning","error","critical","alert","emergency"]),m2=A1.extend({level:k6}),AY=s0.extend({method:_("logging/setLevel"),params:m2}),f2=Z1.extend({level:k6,logger:D().optional(),data:j0()}),y2=i1.extend({method:_("notifications/message"),params:f2}),g2=C({name:D().optional()}),h2=C({hints:W0(g2).optional(),costPriority:z0().min(0).max(1).optional(),speedPriority:z0().min(0).max(1).optional(),intelligencePriority:z0().min(0).max(1).optional()}),o2=C({mode:H1(["auto","required","none"]).optional()}),a2=C({type:_("tool_result"),toolUseId:D().describe("The unique identifier for the corresponding tool call."),content:W0(jY).default([]),structuredContent:C({}).loose().optional(),isError:h0().optional(),_meta:L0(D(),j0()).optional()}),d2=vY("type",[MY,DY,cY]),F7=vY("type",[MY,DY,cY,R2,a2]),r2=C({role:T6,content:F0([F7,W0(F7)]),_meta:L0(D(),j0()).optional()}),s2=E6.extend({messages:W0(r2),modelPreferences:h2.optional(),systemPrompt:D().optional(),includeContext:H1(["none","thisServer","allServers"]).optional(),temperature:z0().optional(),maxTokens:z0().int(),stopSequences:W0(D()).optional(),metadata:n0.optional(),tools:W0(OB).optional(),toolChoice:o2.optional()}),t2=s0.extend({method:_("sampling/createMessage"),params:s2}),_6=t0.extend({model:D(),stopReason:A0(H1(["endTurn","stopSequence","maxTokens"]).or(D())),role:T6,content:d2}),OY=t0.extend({model:D(),stopReason:A0(H1(["endTurn","stopSequence","maxTokens","toolUse"]).or(D())),role:T6,content:F0([F7,W0(F7)])}),e2=C({type:_("boolean"),title:D().optional(),description:D().optional(),default:h0().optional()}),xI=C({type:_("string"),title:D().optional(),description:D().optional(),minLength:z0().optional(),maxLength:z0().optional(),format:H1(["email","uri","date","date-time"]).optional(),default:D().optional()}),QI=C({type:H1(["number","integer"]),title:D().optional(),description:D().optional(),minimum:z0().optional(),maximum:z0().optional(),default:z0().optional()}),WI=C({type:_("string"),title:D().optional(),description:D().optional(),enum:W0(D()),default:D().optional()}),YI=C({type:_("string"),title:D().optional(),description:D().optional(),oneOf:W0(C({const:D(),title:D()})),default:D().optional()}),XI=C({type:_("string"),title:D().optional(),description:D().optional(),enum:W0(D()),enumNames:W0(D()).optional(),default:D().optional()}),JI=F0([WI,YI]),GI=C({type:_("array"),title:D().optional(),description:D().optional(),minItems:z0().optional(),maxItems:z0().optional(),items:C({type:_("string"),enum:W0(D())}),default:W0(D()).optional()}),$I=C({type:_("array"),title:D().optional(),description:D().optional(),minItems:z0().optional(),maxItems:z0().optional(),items:C({anyOf:W0(C({const:D(),title:D()}))}),default:W0(D()).optional()}),bI=F0([GI,$I]),zI=F0([XI,JI,bI]),vI=F0([zI,e2,xI,QI]),BI=E6.extend({mode:_("form").optional(),message:D(),requestedSchema:C({type:_("object"),properties:L0(D(),vI),required:W0(D()).optional()})}),wI=E6.extend({mode:_("url"),message:D(),elicitationId:D(),url:D().url()}),KI=F0([BI,wI]),HI=s0.extend({method:_("elicitation/create"),params:KI}),VI=Z1.extend({elicitationId:D()}),qI=i1.extend({method:_("notifications/elicitation/complete"),params:VI}),H8=t0.extend({action:H1(["accept","decline","cancel"]),content:BY((x)=>x===null?void 0:x,L0(D(),F0([D(),z0(),h0(),W0(D())])).optional())}),NI=C({type:_("ref/resource"),uri:D()});var LI=C({type:_("ref/prompt"),name:D()}),UI=A1.extend({ref:F0([LI,NI]),argument:C({name:D(),value:D()}),context:C({arguments:L0(D(),D()).optional()}).optional()}),l7=s0.extend({method:_("completion/complete"),params:UI});function IB(x){if(x.params.ref.type!=="ref/prompt")throw TypeError(`Expected CompleteRequestPrompt, but got ${x.params.ref.type}`)}function EB(x){if(x.params.ref.type!=="ref/resource")throw TypeError(`Expected CompleteRequestResourceTemplate, but got ${x.params.ref.type}`)}var FI=t0.extend({completion:J1({values:W0(D()).max(100),total:A0(z0().int()),hasMore:A0(h0())})}),MI=C({uri:D().startsWith("file://"),name:D().optional(),_meta:L0(D(),j0()).optional()}),DI=s0.extend({method:_("roots/list"),params:A1.optional()}),IY=t0.extend({roots:W0(MI)}),cI=i1.extend({method:_("notifications/roots/list_changed"),params:Z1.optional()}),cy=F0([A7,NY,l7,AY,_7,k7,i7,C7,T7,D2,j2,K8,u7,I7,S7,P7,Z7]),jy=F0([j7,O7,LY,cI,C6]),Ay=F0([c7,_6,OY,H8,IY,E7,R7,B8]),Oy=F0([A7,t2,HI,DI,I7,S7,P7,Z7]),Iy=F0([j7,O7,y2,O2,F2,n2,k2,C6,qI]),Ey=F0([c7,z2,FI,T2,S2,q2,N2,U2,p7,p2,E7,R7,B8]);class k extends Error{constructor(x,Q,W){super(`MCP error ${x}: ${Q}`);this.code=x,this.data=W,this.name="McpError"}static fromError(x,Q,W){if(x===p.UrlElicitationRequired&&W){let Y=W;if(Y.elicitations)return new SB(Y.elicitations,Q)}return new k(x,Q,W)}}class SB extends k{constructor(x,Q=`URL elicitation${x.length>1?"s":""} required`){super(p.UrlElicitationRequired,Q,{elicitations:x})}get elicitations(){return this.data?.elicitations??[]}}function _4(x){return x==="completed"||x==="failed"||x==="cancelled"}var RB=Symbol("Let zodToJsonSchema decide on which parser to use");var PB={name:void 0,$refStrategy:"root",basePath:["#"],effectStrategy:"input",pipeStrategy:"all",dateStrategy:"format:date-time",mapStrategy:"entries",removeAdditionalStrategy:"passthrough",allowedAdditionalProperties:!0,rejectedAdditionalProperties:!1,definitionPath:"definitions",target:"jsonSchema7",strictUnions:!1,definitions:{},errorMessages:!1,markdownDescription:!1,patternStrategy:"escape",applyRegexFlags:!1,emailStrategy:"format:email",base64Strategy:"contentEncoding:base64",nameStrategy:"ref",openAiAnyTypeName:"OpenAiAnyType"},ZB=(x)=>typeof x==="string"?{...PB,name:x}:{...PB,...x};var iB=(x)=>{let Q=ZB(x),W=Q.name!==void 0?[...Q.basePath,Q.definitionPath,Q.name]:Q.basePath;return{...Q,flags:{hasReferencedOpenAiAnyType:!1},currentPath:W,propertyPath:void 0,seen:new Map(Object.entries(Q.definitions).map(([Y,X])=>[X._def,{def:X._def,path:[...Q.basePath,Q.definitionPath,Y],jsonSchema:void 0}]))}};function EY(x,Q,W,Y){if(!Y?.errorMessages)return;if(W)x.errorMessage={...x.errorMessage,[Q]:W}}function Y0(x,Q,W,Y,X){x[Q]=W,EY(x,Q,Y,X)}var n7=(x,Q)=>{let W=0;for(;W<x.length&&W<Q.length;W++)if(x[W]!==Q[W])break;return[(x.length-W).toString(),...Q.slice(W)].join("/")};function O0(x){if(x.target!=="openAi")return{};let Q=[...x.basePath,x.definitionPath,x.openAiAnyTypeName];return x.flags.hasReferencedOpenAiAnyType=!0,{$ref:x.$refStrategy==="relative"?n7(Q,x.currentPath):Q.join("/")}}function CB(x,Q){let W={type:"array"};if(x.type?._def&&x.type?._def?.typeName!==E.ZodAny)W.items=m(x.type._def,{...Q,currentPath:[...Q.currentPath,"items"]});if(x.minLength)Y0(W,"minItems",x.minLength.value,x.minLength.message,Q);if(x.maxLength)Y0(W,"maxItems",x.maxLength.value,x.maxLength.message,Q);if(x.exactLength)Y0(W,"minItems",x.exactLength.value,x.exactLength.message,Q),Y0(W,"maxItems",x.exactLength.value,x.exactLength.message,Q);return W}function TB(x,Q){let W={type:"integer",format:"int64"};if(!x.checks)return W;for(let Y of x.checks)switch(Y.kind){case"min":if(Q.target==="jsonSchema7")if(Y.inclusive)Y0(W,"minimum",Y.value,Y.message,Q);else Y0(W,"exclusiveMinimum",Y.value,Y.message,Q);else{if(!Y.inclusive)W.exclusiveMinimum=!0;Y0(W,"minimum",Y.value,Y.message,Q)}break;case"max":if(Q.target==="jsonSchema7")if(Y.inclusive)Y0(W,"maximum",Y.value,Y.message,Q);else Y0(W,"exclusiveMaximum",Y.value,Y.message,Q);else{if(!Y.inclusive)W.exclusiveMaximum=!0;Y0(W,"maximum",Y.value,Y.message,Q)}break;case"multipleOf":Y0(W,"multipleOf",Y.value,Y.message,Q);break}return W}function kB(){return{type:"boolean"}}function m7(x,Q){return m(x.type._def,Q)}var _B=(x,Q)=>{return m(x.innerType._def,Q)};function SY(x,Q,W){let Y=W??Q.dateStrategy;if(Array.isArray(Y))return{anyOf:Y.map((X,J)=>SY(x,Q,X))};switch(Y){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":return jI(x,Q)}}var jI=(x,Q)=>{let W={type:"integer",format:"unix-time"};if(Q.target==="openApi3")return W;for(let Y of x.checks)switch(Y.kind){case"min":Y0(W,"minimum",Y.value,Y.message,Q);break;case"max":Y0(W,"maximum",Y.value,Y.message,Q);break}return W};function uB(x,Q){return{...m(x.innerType._def,Q),default:x.defaultValue()}}function pB(x,Q){return Q.effectStrategy==="input"?m(x.schema._def,Q):O0(Q)}function lB(x){return{type:"string",enum:Array.from(x.values)}}var AI=(x)=>{if("type"in x&&x.type==="string")return!1;return"allOf"in x};function nB(x,Q){let W=[m(x.left._def,{...Q,currentPath:[...Q.currentPath,"allOf","0"]}),m(x.right._def,{...Q,currentPath:[...Q.currentPath,"allOf","1"]})].filter((J)=>!!J),Y=Q.target==="jsonSchema2019-09"?{unevaluatedProperties:!1}:void 0,X=[];return W.forEach((J)=>{if(AI(J)){if(X.push(...J.allOf),J.unevaluatedProperties===void 0)Y=void 0}else{let G=J;if("additionalProperties"in J&&J.additionalProperties===!1){let{additionalProperties:$,...b}=J;G=b}else Y=void 0;X.push(G)}}),X.length?{allOf:X,...Y}:void 0}function mB(x,Q){let W=typeof x.value;if(W!=="bigint"&&W!=="number"&&W!=="boolean"&&W!=="string")return{type:Array.isArray(x.value)?"array":"object"};if(Q.target==="openApi3")return{type:W==="bigint"?"integer":W,enum:[x.value]};return{type:W==="bigint"?"integer":W,const:x.value}}var PY=void 0,h1={cuid:/^[cC][^\s-]{8,}$/,cuid2:/^[0-9a-z]+$/,ulid:/^[0-9A-HJKMNP-TV-Z]{26}$/,email:/^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\-]*\.)+[a-zA-Z]{2,}$/,emoji:()=>{if(PY===void 0)PY=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u");return PY},uuid:/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/,ipv4:/^(?:(?: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])$/,ipv4Cidr:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,ipv6:/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,ipv6Cidr:/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,base64:/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,base64url:/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,nanoid:/^[a-zA-Z0-9_-]{21}$/,jwt:/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/};function f7(x,Q){let W={type:"string"};if(x.checks)for(let Y of x.checks)switch(Y.kind){case"min":Y0(W,"minLength",typeof W.minLength==="number"?Math.max(W.minLength,Y.value):Y.value,Y.message,Q);break;case"max":Y0(W,"maxLength",typeof W.maxLength==="number"?Math.min(W.maxLength,Y.value):Y.value,Y.message,Q);break;case"email":switch(Q.emailStrategy){case"format:email":o1(W,"email",Y.message,Q);break;case"format:idn-email":o1(W,"idn-email",Y.message,Q);break;case"pattern:zod":G1(W,h1.email,Y.message,Q);break}break;case"url":o1(W,"uri",Y.message,Q);break;case"uuid":o1(W,"uuid",Y.message,Q);break;case"regex":G1(W,Y.regex,Y.message,Q);break;case"cuid":G1(W,h1.cuid,Y.message,Q);break;case"cuid2":G1(W,h1.cuid2,Y.message,Q);break;case"startsWith":G1(W,RegExp(`^${RY(Y.value,Q)}`),Y.message,Q);break;case"endsWith":G1(W,RegExp(`${RY(Y.value,Q)}$`),Y.message,Q);break;case"datetime":o1(W,"date-time",Y.message,Q);break;case"date":o1(W,"date",Y.message,Q);break;case"time":o1(W,"time",Y.message,Q);break;case"duration":o1(W,"duration",Y.message,Q);break;case"length":Y0(W,"minLength",typeof W.minLength==="number"?Math.max(W.minLength,Y.value):Y.value,Y.message,Q),Y0(W,"maxLength",typeof W.maxLength==="number"?Math.min(W.maxLength,Y.value):Y.value,Y.message,Q);break;case"includes":{G1(W,RegExp(RY(Y.value,Q)),Y.message,Q);break}case"ip":{if(Y.version!=="v6")o1(W,"ipv4",Y.message,Q);if(Y.version!=="v4")o1(W,"ipv6",Y.message,Q);break}case"base64url":G1(W,h1.base64url,Y.message,Q);break;case"jwt":G1(W,h1.jwt,Y.message,Q);break;case"cidr":{if(Y.version!=="v6")G1(W,h1.ipv4Cidr,Y.message,Q);if(Y.version!=="v4")G1(W,h1.ipv6Cidr,Y.message,Q);break}case"emoji":G1(W,h1.emoji(),Y.message,Q);break;case"ulid":{G1(W,h1.ulid,Y.message,Q);break}case"base64":{switch(Q.base64Strategy){case"format:binary":{o1(W,"binary",Y.message,Q);break}case"contentEncoding:base64":{Y0(W,"contentEncoding","base64",Y.message,Q);break}case"pattern:zod":{G1(W,h1.base64,Y.message,Q);break}}break}case"nanoid":G1(W,h1.nanoid,Y.message,Q);case"toLowerCase":case"toUpperCase":case"trim":break;default:((X)=>{})(Y)}return W}function RY(x,Q){return Q.patternStrategy==="escape"?II(x):x}var OI=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function II(x){let Q="";for(let W=0;W<x.length;W++){if(!OI.has(x[W]))Q+="\\";Q+=x[W]}return Q}function o1(x,Q,W,Y){if(x.format||x.anyOf?.some((X)=>X.format)){if(!x.anyOf)x.anyOf=[];if(x.format){if(x.anyOf.push({format:x.format,...x.errorMessage&&Y.errorMessages&&{errorMessage:{format:x.errorMessage.format}}}),delete x.format,x.errorMessage){if(delete x.errorMessage.format,Object.keys(x.errorMessage).length===0)delete x.errorMessage}}x.anyOf.push({format:Q,...W&&Y.errorMessages&&{errorMessage:{format:W}}})}else Y0(x,"format",Q,W,Y)}function G1(x,Q,W,Y){if(x.pattern||x.allOf?.some((X)=>X.pattern)){if(!x.allOf)x.allOf=[];if(x.pattern){if(x.allOf.push({pattern:x.pattern,...x.errorMessage&&Y.errorMessages&&{errorMessage:{pattern:x.errorMessage.pattern}}}),delete x.pattern,x.errorMessage){if(delete x.errorMessage.pattern,Object.keys(x.errorMessage).length===0)delete x.errorMessage}}x.allOf.push({pattern:fB(Q,Y),...W&&Y.errorMessages&&{errorMessage:{pattern:W}}})}else Y0(x,"pattern",fB(Q,Y),W,Y)}function fB(x,Q){if(!Q.applyRegexFlags||!x.flags)return x.source;let W={i:x.flags.includes("i"),m:x.flags.includes("m"),s:x.flags.includes("s")},Y=W.i?x.source.toLowerCase():x.source,X="",J=!1,G=!1,$=!1;for(let b=0;b<Y.length;b++){if(J){X+=Y[b],J=!1;continue}if(W.i){if(G){if(Y[b].match(/[a-z]/)){if($)X+=Y[b],X+=`${Y[b-2]}-${Y[b]}`.toUpperCase(),$=!1;else if(Y[b+1]==="-"&&Y[b+2]?.match(/[a-z]/))X+=Y[b],$=!0;else X+=`${Y[b]}${Y[b].toUpperCase()}`;continue}}else if(Y[b].match(/[a-z]/)){X+=`[${Y[b]}${Y[b].toUpperCase()}]`;continue}}if(W.m){if(Y[b]==="^"){X+=`(^|(?<=[\r
62
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let z of this.seen.entries()){let v=z[1];if(x===z[0]){J(z);continue}if(W.external){let K=W.external.registry.get(z[0])?.id;if(x!==z[0]&&K){J(z);continue}}if(this.metadataRegistry.get(z[0])?.id){J(z);continue}if(v.cycle){J(z);continue}if(v.count>1){if(W.reused==="ref"){J(z);continue}}}let G=(z,v)=>{let B=this.seen.get(z),K=B.def??B.schema,w={...K};if(B.ref===null)return;let V=B.ref;if(B.ref=null,V){G(V,v);let N=this.seen.get(V).schema;if(N.$ref&&v.target==="draft-7")K.allOf=K.allOf??[],K.allOf.push(N);else Object.assign(K,N),Object.assign(K,w)}if(!B.isParent)this.override({zodSchema:z,jsonSchema:K,path:B.path??[]})};for(let z of[...this.seen.entries()].reverse())G(z[0],{target:this.target});let $={};if(this.target==="draft-2020-12")$.$schema="https://json-schema.org/draft/2020-12/schema";else if(this.target==="draft-7")$.$schema="http://json-schema.org/draft-07/schema#";else console.warn(`Invalid target: ${this.target}`);if(W.external?.uri){let z=W.external.registry.get(x)?.id;if(!z)throw Error("Schema is missing an `id` property");$.$id=W.external.uri(z)}Object.assign($,Y.def);let b=W.external?.defs??{};for(let z of this.seen.entries()){let v=z[1];if(v.def&&v.defId)b[v.defId]=v.def}if(W.external);else if(Object.keys(b).length>0)if(this.target==="draft-2020-12")$.$defs=b;else $.definitions=b;try{return JSON.parse(JSON.stringify($))}catch(z){throw Error("Error converting schema to JSON.")}}}function WY(x,Q){if(x instanceof b7){let Y=new QY(Q),X={};for(let $ of x._idmap.entries()){let[b,z]=$;Y.process(z)}let J={},G={registry:x,uri:Q?.uri,defs:X};for(let $ of x._idmap.entries()){let[b,z]=$;J[b]=Y.emit(z,{...Q,external:G})}if(Object.keys(X).length>0){let $=Y.target==="draft-2020-12"?"$defs":"definitions";J.__shared={[$]:X}}return{schemas:J}}let W=new QY(Q);return W.process(x),W.emit(x,Q)}function l0(x,Q){let W=Q??{seen:new Set};if(W.seen.has(x))return!1;W.seen.add(x);let X=x._zod.def;switch(X.type){case"string":case"number":case"bigint":case"boolean":case"date":case"symbol":case"undefined":case"null":case"any":case"unknown":case"never":case"void":case"literal":case"enum":case"nan":case"file":case"template_literal":return!1;case"array":return l0(X.element,W);case"object":{for(let J in X.shape)if(l0(X.shape[J],W))return!0;return!1}case"union":{for(let J of X.options)if(l0(J,W))return!0;return!1}case"intersection":return l0(X.left,W)||l0(X.right,W);case"tuple":{for(let J of X.items)if(l0(J,W))return!0;if(X.rest&&l0(X.rest,W))return!0;return!1}case"record":return l0(X.keyType,W)||l0(X.valueType,W);case"map":return l0(X.keyType,W)||l0(X.valueType,W);case"set":return l0(X.valueType,W);case"promise":case"optional":case"nonoptional":case"nullable":case"readonly":return l0(X.innerType,W);case"lazy":return l0(X.getter(),W);case"default":return l0(X.innerType,W);case"prefault":return l0(X.innerType,W);case"custom":return!1;case"transform":return!0;case"pipe":return l0(X.in,W)||l0(X.out,W);case"success":return!1;case"catch":return!1;default:}throw Error(`Unknown schema type: ${X.type}`)}var YO=j("ZodMiniType",(x,Q)=>{if(!x._zod)throw Error("Uninitialized schema in ZodMiniType.");w0.init(x,Q),x.def=Q,x.parse=(W,Y)=>NQ(x,W,Y,{callee:x.parse}),x.safeParse=(W,Y)=>Hx(x,W,Y),x.parseAsync=async(W,Y)=>LQ(x,W,Y,{callee:x.parseAsync}),x.safeParseAsync=async(W,Y)=>Vx(x,W,Y),x.check=(...W)=>{return x.clone({...Q,checks:[...Q.checks??[],...W.map((Y)=>typeof Y==="function"?{_zod:{check:Y,def:{check:"custom"},onattach:[]}}:Y)]})},x.clone=(W,Y)=>j1(x,W,Y),x.brand=()=>x,x.register=(W,Y)=>{return W.add(x,Y),x}});var XO=j("ZodMiniObject",(x,Q)=>{G7.init(x,Q),YO.init(x,Q),Q0.defineLazy(x,"shape",()=>Q.shape)});function YY(x,Q){let W={type:"object",get shape(){return Q0.assignProp(this,"shape",{...x}),this.shape},...Q0.normalizeParams(Q)};return new XO(W)}function R1(x){return!!x._zod}function Ux(x){let Q=Object.values(x);if(Q.length===0)return YY({});let W=Q.every(R1),Y=Q.every((X)=>!R1(X));if(W)return YY(x);if(Y)return XQ(x);throw Error("Mixed Zod versions detected in object shape.")}function C4(x,Q){if(R1(x))return Hx(x,Q);return x.safeParse(Q)}async function V7(x,Q){if(R1(x))return await Vx(x,Q);return await x.safeParseAsync(Q)}function T4(x){if(!x)return;let Q;if(R1(x))Q=x._zod?.def?.shape;else Q=x.shape;if(!Q)return;if(typeof Q==="function")try{return Q()}catch{return}return Q}function z8(x){if(!x)return;if(typeof x==="object"){let Q=x,W=x;if(!Q._def&&!W._zod){let Y=Object.values(x);if(Y.length>0&&Y.every((X)=>typeof X==="object"&&X!==null&&(X._def!==void 0||X._zod!==void 0||typeof X.parse==="function")))return Ux(x)}}if(R1(x)){let W=x._zod?.def;if(W&&(W.type==="object"||W.shape!==void 0))return x}else if(x.shape!==void 0)return x;return}function q7(x){if(x&&typeof x==="object"){if("message"in x&&typeof x.message==="string")return x.message;if("issues"in x&&Array.isArray(x.issues)&&x.issues.length>0){let Q=x.issues[0];if(Q&&typeof Q==="object"&&"message"in Q)return String(Q.message)}try{return JSON.stringify(x)}catch{return String(x)}}return String(x)}function yv(x){return x.description}function gv(x){if(R1(x))return x._zod?.def?.type==="optional";let Q=x;if(typeof x.isOptional==="function")return x.isOptional();return Q._def?.typeName==="ZodOptional"}function N7(x){if(R1(x)){let J=x._zod?.def;if(J){if(J.value!==void 0)return J.value;if(Array.isArray(J.values)&&J.values.length>0)return J.values[0]}}let W=x._def;if(W){if(W.value!==void 0)return W.value;if(Array.isArray(W.values)&&W.values.length>0)return W.values[0]}let Y=x.value;if(Y!==void 0)return Y;return}var O6={};i8(O6,{time:()=>GY,duration:()=>$Y,datetime:()=>XY,date:()=>JY,ZodISOTime:()=>av,ZodISODuration:()=>dv,ZodISODateTime:()=>hv,ZodISODate:()=>ov});var hv=j("ZodISODateTime",(x,Q)=>{Zv.init(x,Q),c0.init(x,Q)});function XY(x){return uv(hv,x)}var ov=j("ZodISODate",(x,Q)=>{iv.init(x,Q),c0.init(x,Q)});function JY(x){return pv(ov,x)}var av=j("ZodISOTime",(x,Q)=>{Cv.init(x,Q),c0.init(x,Q)});function GY(x){return lv(av,x)}var dv=j("ZodISODuration",(x,Q)=>{Tv.init(x,Q),c0.init(x,Q)});function $Y(x){return nv(dv,x)}var rv=(x,Q)=>{W7.init(x,Q),x.name="ZodError",Object.defineProperties(x,{format:{value:(W)=>VQ(x,W)},flatten:{value:(W)=>HQ(x,W)},addIssue:{value:(W)=>x.issues.push(W)},addIssues:{value:(W)=>x.issues.push(...W)},isEmpty:{get(){return x.issues.length===0}}})},vy=j("ZodError",rv),I6=j("ZodError",rv,{Parent:Error});var sv=qQ(I6),tv=UQ(I6),ev=FQ(I6),xB=MQ(I6);var S0=j("ZodType",(x,Q)=>{return w0.init(x,Q),x.def=Q,Object.defineProperty(x,"_def",{value:Q}),x.check=(...W)=>{return x.clone({...Q,checks:[...Q.checks??[],...W.map((Y)=>typeof Y==="function"?{_zod:{check:Y,def:{check:"custom"},onattach:[]}}:Y)]})},x.clone=(W,Y)=>j1(x,W,Y),x.brand=()=>x,x.register=(W,Y)=>{return W.add(x,Y),x},x.parse=(W,Y)=>sv(x,W,Y,{callee:x.parse}),x.safeParse=(W,Y)=>ev(x,W,Y),x.parseAsync=async(W,Y)=>tv(x,W,Y,{callee:x.parseAsync}),x.safeParseAsync=async(W,Y)=>xB(x,W,Y),x.spa=x.safeParseAsync,x.refine=(W,Y)=>x.check(Q2(W,Y)),x.superRefine=(W)=>x.check(W2(W)),x.overwrite=(W)=>x.check(qx(W)),x.optional=()=>A0(x),x.nullable=()=>YB(x),x.nullish=()=>A0(YB(x)),x.nonoptional=(W)=>aO(x,W),x.array=()=>W0(x),x.or=(W)=>F0([x,W]),x.and=(W)=>L7(x,W),x.transform=(W)=>zY(x,zB(W)),x.default=(W)=>gO(x,W),x.prefault=(W)=>oO(x,W),x.catch=(W)=>rO(x,W),x.pipe=(W)=>zY(x,W),x.readonly=()=>eO(x),x.describe=(W)=>{let Y=x.clone();return i4.add(Y,{description:W}),Y},Object.defineProperty(x,"description",{get(){return i4.get(x)?.description},configurable:!0}),x.meta=(...W)=>{if(W.length===0)return i4.get(x);let Y=x.clone();return i4.add(Y,W[0]),Y},x.isOptional=()=>x.safeParse(void 0).success,x.isNullable=()=>x.safeParse(null).success,x}),XB=j("_ZodString",(x,Q)=>{c6.init(x,Q),S0.init(x,Q);let W=x._zod.bag;x.format=W.format??null,x.minLength=W.minimum??null,x.maxLength=W.maximum??null,x.regex=(...Y)=>x.check(fW(...Y)),x.includes=(...Y)=>x.check(hW(...Y)),x.startsWith=(...Y)=>x.check(oW(...Y)),x.endsWith=(...Y)=>x.check(aW(...Y)),x.min=(...Y)=>x.check(b8(...Y)),x.max=(...Y)=>x.check(K7(...Y)),x.length=(...Y)=>x.check(H7(...Y)),x.nonempty=(...Y)=>x.check(b8(1,...Y)),x.lowercase=(Y)=>x.check(yW(Y)),x.uppercase=(Y)=>x.check(gW(Y)),x.trim=()=>x.check(rW()),x.normalize=(...Y)=>x.check(dW(...Y)),x.toLowerCase=()=>x.check(sW()),x.toUpperCase=()=>x.check(tW())}),KO=j("ZodString",(x,Q)=>{c6.init(x,Q),XB.init(x,Q),x.email=(W)=>x.check(qW(HO,W)),x.url=(W)=>x.check(MW(VO,W)),x.jwt=(W)=>x.check(kW(PO,W)),x.emoji=(W)=>x.check(DW(qO,W)),x.guid=(W)=>x.check(z7(QB,W)),x.uuid=(W)=>x.check(NW(U7,W)),x.uuidv4=(W)=>x.check(UW(U7,W)),x.uuidv6=(W)=>x.check(LW(U7,W)),x.uuidv7=(W)=>x.check(FW(U7,W)),x.nanoid=(W)=>x.check(cW(NO,W)),x.guid=(W)=>x.check(z7(QB,W)),x.cuid=(W)=>x.check(jW(UO,W)),x.cuid2=(W)=>x.check(AW(LO,W)),x.ulid=(W)=>x.check(OW(FO,W)),x.base64=(W)=>x.check(iW(IO,W)),x.base64url=(W)=>x.check(CW(EO,W)),x.xid=(W)=>x.check(IW(MO,W)),x.ksuid=(W)=>x.check(EW(DO,W)),x.ipv4=(W)=>x.check(SW(cO,W)),x.ipv6=(W)=>x.check(PW(jO,W)),x.cidrv4=(W)=>x.check(RW(AO,W)),x.cidrv6=(W)=>x.check(ZW(OO,W)),x.e164=(W)=>x.check(TW(SO,W)),x.datetime=(W)=>x.check(XY(W)),x.date=(W)=>x.check(JY(W)),x.time=(W)=>x.check(GY(W)),x.duration=(W)=>x.check($Y(W))});function D(x){return VW(KO,x)}var c0=j("ZodStringFormat",(x,Q)=>{N0.init(x,Q),XB.init(x,Q)}),HO=j("ZodEmail",(x,Q)=>{PQ.init(x,Q),c0.init(x,Q)});var QB=j("ZodGUID",(x,Q)=>{EQ.init(x,Q),c0.init(x,Q)});var U7=j("ZodUUID",(x,Q)=>{SQ.init(x,Q),c0.init(x,Q)});var VO=j("ZodURL",(x,Q)=>{RQ.init(x,Q),c0.init(x,Q)});var qO=j("ZodEmoji",(x,Q)=>{ZQ.init(x,Q),c0.init(x,Q)});var NO=j("ZodNanoID",(x,Q)=>{iQ.init(x,Q),c0.init(x,Q)});var UO=j("ZodCUID",(x,Q)=>{CQ.init(x,Q),c0.init(x,Q)});var LO=j("ZodCUID2",(x,Q)=>{TQ.init(x,Q),c0.init(x,Q)});var FO=j("ZodULID",(x,Q)=>{kQ.init(x,Q),c0.init(x,Q)});var MO=j("ZodXID",(x,Q)=>{_Q.init(x,Q),c0.init(x,Q)});var DO=j("ZodKSUID",(x,Q)=>{uQ.init(x,Q),c0.init(x,Q)});var cO=j("ZodIPv4",(x,Q)=>{pQ.init(x,Q),c0.init(x,Q)});var jO=j("ZodIPv6",(x,Q)=>{lQ.init(x,Q),c0.init(x,Q)});var AO=j("ZodCIDRv4",(x,Q)=>{nQ.init(x,Q),c0.init(x,Q)});var OO=j("ZodCIDRv6",(x,Q)=>{mQ.init(x,Q),c0.init(x,Q)});var IO=j("ZodBase64",(x,Q)=>{fQ.init(x,Q),c0.init(x,Q)});var EO=j("ZodBase64URL",(x,Q)=>{yQ.init(x,Q),c0.init(x,Q)});var SO=j("ZodE164",(x,Q)=>{gQ.init(x,Q),c0.init(x,Q)});var PO=j("ZodJWT",(x,Q)=>{hQ.init(x,Q),c0.init(x,Q)});var JB=j("ZodNumber",(x,Q)=>{J7.init(x,Q),S0.init(x,Q),x.gt=(Y,X)=>x.check(B7(Y,X)),x.gte=(Y,X)=>x.check(A6(Y,X)),x.min=(Y,X)=>x.check(A6(Y,X)),x.lt=(Y,X)=>x.check(v7(Y,X)),x.lte=(Y,X)=>x.check(j6(Y,X)),x.max=(Y,X)=>x.check(j6(Y,X)),x.int=(Y)=>x.check(WB(Y)),x.safe=(Y)=>x.check(WB(Y)),x.positive=(Y)=>x.check(B7(0,Y)),x.nonnegative=(Y)=>x.check(A6(0,Y)),x.negative=(Y)=>x.check(v7(0,Y)),x.nonpositive=(Y)=>x.check(j6(0,Y)),x.multipleOf=(Y,X)=>x.check(w7(Y,X)),x.step=(Y,X)=>x.check(w7(Y,X)),x.finite=()=>x;let W=x._zod.bag;x.minValue=Math.max(W.minimum??Number.NEGATIVE_INFINITY,W.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,x.maxValue=Math.min(W.maximum??Number.POSITIVE_INFINITY,W.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,x.isInt=(W.format??"").includes("int")||Number.isSafeInteger(W.multipleOf??0.5),x.isFinite=!0,x.format=W.format??null});function z0(x){return _W(JB,x)}var RO=j("ZodNumberFormat",(x,Q)=>{oQ.init(x,Q),JB.init(x,Q)});function WB(x){return uW(RO,x)}var ZO=j("ZodBoolean",(x,Q)=>{aQ.init(x,Q),S0.init(x,Q)});function h0(x){return pW(ZO,x)}var iO=j("ZodNull",(x,Q)=>{dQ.init(x,Q),S0.init(x,Q)});function GB(x){return lW(iO,x)}var CO=j("ZodUnknown",(x,Q)=>{rQ.init(x,Q),S0.init(x,Q)});function j0(){return nW(CO)}var TO=j("ZodNever",(x,Q)=>{sQ.init(x,Q),S0.init(x,Q)});function kO(x){return mW(TO,x)}var _O=j("ZodArray",(x,Q)=>{tQ.init(x,Q),S0.init(x,Q),x.element=Q.element,x.min=(W,Y)=>x.check(b8(W,Y)),x.nonempty=(W)=>x.check(b8(1,W)),x.max=(W,Y)=>x.check(K7(W,Y)),x.length=(W,Y)=>x.check(H7(W,Y)),x.unwrap=()=>x.element});function W0(x,Q){return mv(_O,x,Q)}var $B=j("ZodObject",(x,Q)=>{G7.init(x,Q),S0.init(x,Q),Q0.defineLazy(x,"shape",()=>Q.shape),x.keyof=()=>H1(Object.keys(x._zod.def.shape)),x.catchall=(W)=>x.clone({...x._zod.def,catchall:W}),x.passthrough=()=>x.clone({...x._zod.def,catchall:j0()}),x.loose=()=>x.clone({...x._zod.def,catchall:j0()}),x.strict=()=>x.clone({...x._zod.def,catchall:kO()}),x.strip=()=>x.clone({...x._zod.def,catchall:void 0}),x.extend=(W)=>{return Q0.extend(x,W)},x.merge=(W)=>Q0.merge(x,W),x.pick=(W)=>Q0.pick(x,W),x.omit=(W)=>Q0.omit(x,W),x.partial=(...W)=>Q0.partial(vB,x,W[0]),x.required=(...W)=>Q0.required(BB,x,W[0])});function C(x,Q){let W={type:"object",get shape(){return Q0.assignProp(this,"shape",{...x}),this.shape},...Q0.normalizeParams(Q)};return new $B(W)}function J1(x,Q){return new $B({type:"object",get shape(){return Q0.assignProp(this,"shape",{...x}),this.shape},catchall:j0(),...Q0.normalizeParams(Q)})}var bB=j("ZodUnion",(x,Q)=>{$7.init(x,Q),S0.init(x,Q),x.options=Q.options});function F0(x,Q){return new bB({type:"union",options:x,...Q0.normalizeParams(Q)})}var uO=j("ZodDiscriminatedUnion",(x,Q)=>{bB.init(x,Q),eQ.init(x,Q)});function vY(x,Q,W){return new uO({type:"union",options:Q,discriminator:x,...Q0.normalizeParams(W)})}var pO=j("ZodIntersection",(x,Q)=>{xW.init(x,Q),S0.init(x,Q)});function L7(x,Q){return new pO({type:"intersection",left:x,right:Q})}var lO=j("ZodRecord",(x,Q)=>{QW.init(x,Q),S0.init(x,Q),x.keyType=Q.keyType,x.valueType=Q.valueType});function U0(x,Q,W){return new lO({type:"record",keyType:x,valueType:Q,...Q0.normalizeParams(W)})}var bY=j("ZodEnum",(x,Q)=>{WW.init(x,Q),S0.init(x,Q),x.enum=Q.entries,x.options=Object.values(Q.entries);let W=new Set(Object.keys(Q.entries));x.extract=(Y,X)=>{let J={};for(let G of Y)if(W.has(G))J[G]=Q.entries[G];else throw Error(`Key ${G} not found in enum`);return new bY({...Q,checks:[],...Q0.normalizeParams(X),entries:J})},x.exclude=(Y,X)=>{let J={...Q.entries};for(let G of Y)if(W.has(G))delete J[G];else throw Error(`Key ${G} not found in enum`);return new bY({...Q,checks:[],...Q0.normalizeParams(X),entries:J})}});function H1(x,Q){let W=Array.isArray(x)?Object.fromEntries(x.map((Y)=>[Y,Y])):x;return new bY({type:"enum",entries:W,...Q0.normalizeParams(Q)})}var nO=j("ZodLiteral",(x,Q)=>{YW.init(x,Q),S0.init(x,Q),x.values=new Set(Q.values),Object.defineProperty(x,"value",{get(){if(Q.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return Q.values[0]}})});function _(x,Q){return new nO({type:"literal",values:Array.isArray(x)?x:[x],...Q0.normalizeParams(Q)})}var mO=j("ZodTransform",(x,Q)=>{XW.init(x,Q),S0.init(x,Q),x._zod.parse=(W,Y)=>{W.addIssue=(J)=>{if(typeof J==="string")W.issues.push(Q0.issue(J,W.value,Q));else{let G=J;if(G.fatal)G.continue=!1;G.code??(G.code="custom"),G.input??(G.input=W.value),G.inst??(G.inst=x),G.continue??(G.continue=!0),W.issues.push(Q0.issue(G))}};let X=Q.transform(W.value,W);if(X instanceof Promise)return X.then((J)=>{return W.value=J,W});return W.value=X,W}});function zB(x){return new mO({type:"transform",transform:x})}var vB=j("ZodOptional",(x,Q)=>{JW.init(x,Q),S0.init(x,Q),x.unwrap=()=>x._zod.def.innerType});function A0(x){return new vB({type:"optional",innerType:x})}var fO=j("ZodNullable",(x,Q)=>{GW.init(x,Q),S0.init(x,Q),x.unwrap=()=>x._zod.def.innerType});function YB(x){return new fO({type:"nullable",innerType:x})}var yO=j("ZodDefault",(x,Q)=>{$W.init(x,Q),S0.init(x,Q),x.unwrap=()=>x._zod.def.innerType,x.removeDefault=x.unwrap});function gO(x,Q){return new yO({type:"default",innerType:x,get defaultValue(){return typeof Q==="function"?Q():Q}})}var hO=j("ZodPrefault",(x,Q)=>{bW.init(x,Q),S0.init(x,Q),x.unwrap=()=>x._zod.def.innerType});function oO(x,Q){return new hO({type:"prefault",innerType:x,get defaultValue(){return typeof Q==="function"?Q():Q}})}var BB=j("ZodNonOptional",(x,Q)=>{zW.init(x,Q),S0.init(x,Q),x.unwrap=()=>x._zod.def.innerType});function aO(x,Q){return new BB({type:"nonoptional",innerType:x,...Q0.normalizeParams(Q)})}var dO=j("ZodCatch",(x,Q)=>{vW.init(x,Q),S0.init(x,Q),x.unwrap=()=>x._zod.def.innerType,x.removeCatch=x.unwrap});function rO(x,Q){return new dO({type:"catch",innerType:x,catchValue:typeof Q==="function"?Q:()=>Q})}var sO=j("ZodPipe",(x,Q)=>{BW.init(x,Q),S0.init(x,Q),x.in=Q.in,x.out=Q.out});function zY(x,Q){return new sO({type:"pipe",in:x,out:Q})}var tO=j("ZodReadonly",(x,Q)=>{wW.init(x,Q),S0.init(x,Q)});function eO(x){return new tO({type:"readonly",innerType:x})}var wB=j("ZodCustom",(x,Q)=>{KW.init(x,Q),S0.init(x,Q)});function x2(x){let Q=new r0({check:"custom"});return Q._zod.check=x,Q}function KB(x,Q){return eW(wB,x??(()=>!0),Q)}function Q2(x,Q={}){return xY(wB,x,Q)}function W2(x){let Q=x2((W)=>{return W.addIssue=(Y)=>{if(typeof Y==="string")W.issues.push(Q0.issue(Y,W.value,Q._zod.def));else{let X=Y;if(X.fatal)X.continue=!1;X.code??(X.code="custom"),X.input??(X.input=W.value),X.inst??(X.inst=Q),X.continue??(X.continue=!Q._zod.def.abort),W.issues.push(Q0.issue(X))}},x(W.value,W)});return Q}function BY(x,Q){return zY(zB(x),Q)}c1(HW());var wY="2025-11-25";var HB=[wY,"2025-06-18","2025-03-26","2024-11-05","2024-10-07"],k4="io.modelcontextprotocol/related-task",M7="2.0",n0=KB((x)=>x!==null&&(typeof x==="object"||typeof x==="function")),VB=F0([D(),z0().int()]),qB=D(),jy=J1({ttl:z0().optional(),pollInterval:z0().optional()}),Y2=C({ttl:z0().optional()}),X2=C({taskId:D()}),KY=J1({progressToken:VB.optional(),[k4]:X2.optional()}),A1=C({_meta:KY.optional()}),E6=A1.extend({task:Y2.optional()}),NB=(x)=>E6.safeParse(x).success,s0=C({method:D(),params:A1.loose().optional()}),Z1=C({_meta:KY.optional()}),i1=C({method:D(),params:Z1.loose().optional()}),t0=J1({_meta:KY.optional()}),D7=F0([D(),z0().int()]),UB=C({jsonrpc:_(M7),id:D7,...s0.shape}).strict(),HY=(x)=>UB.safeParse(x).success,LB=C({jsonrpc:_(M7),...i1.shape}).strict(),FB=(x)=>LB.safeParse(x).success,VY=C({jsonrpc:_(M7),id:D7,result:t0}).strict(),S6=(x)=>VY.safeParse(x).success;var p;(function(x){x[x.ConnectionClosed=-32000]="ConnectionClosed",x[x.RequestTimeout=-32001]="RequestTimeout",x[x.ParseError=-32700]="ParseError",x[x.InvalidRequest=-32600]="InvalidRequest",x[x.MethodNotFound=-32601]="MethodNotFound",x[x.InvalidParams=-32602]="InvalidParams",x[x.InternalError=-32603]="InternalError",x[x.UrlElicitationRequired=-32042]="UrlElicitationRequired"})(p||(p={}));var qY=C({jsonrpc:_(M7),id:D7.optional(),error:C({code:z0().int(),message:D(),data:j0().optional()})}).strict();var MB=(x)=>qY.safeParse(x).success;var DB=F0([UB,LB,VY,qY]),Ay=F0([VY,qY]),c7=t0.strict(),J2=Z1.extend({requestId:D7.optional(),reason:D().optional()}),j7=i1.extend({method:_("notifications/cancelled"),params:J2}),G2=C({src:D(),mimeType:D().optional(),sizes:W0(D()).optional(),theme:H1(["light","dark"]).optional()}),P6=C({icons:W0(G2).optional()}),v8=C({name:D(),title:D().optional()}),cB=v8.extend({...v8.shape,...P6.shape,version:D(),websiteUrl:D().optional(),description:D().optional()}),$2=L7(C({applyDefaults:h0().optional()}),U0(D(),j0())),b2=BY((x)=>{if(x&&typeof x==="object"&&!Array.isArray(x)){if(Object.keys(x).length===0)return{form:{}}}return x},L7(C({form:$2.optional(),url:n0.optional()}),U0(D(),j0()).optional())),z2=J1({list:n0.optional(),cancel:n0.optional(),requests:J1({sampling:J1({createMessage:n0.optional()}).optional(),elicitation:J1({create:n0.optional()}).optional()}).optional()}),v2=J1({list:n0.optional(),cancel:n0.optional(),requests:J1({tools:J1({call:n0.optional()}).optional()}).optional()}),B2=C({experimental:U0(D(),n0).optional(),sampling:C({context:n0.optional(),tools:n0.optional()}).optional(),elicitation:b2.optional(),roots:C({listChanged:h0().optional()}).optional(),tasks:z2.optional(),extensions:U0(D(),n0).optional()}),w2=A1.extend({protocolVersion:D(),capabilities:B2,clientInfo:cB}),NY=s0.extend({method:_("initialize"),params:w2});var K2=C({experimental:U0(D(),n0).optional(),logging:n0.optional(),completions:n0.optional(),prompts:C({listChanged:h0().optional()}).optional(),resources:C({subscribe:h0().optional(),listChanged:h0().optional()}).optional(),tools:C({listChanged:h0().optional()}).optional(),tasks:v2.optional(),extensions:U0(D(),n0).optional()}),H2=t0.extend({protocolVersion:D(),capabilities:K2,serverInfo:cB,instructions:D().optional()}),UY=i1.extend({method:_("notifications/initialized"),params:Z1.optional()});var A7=s0.extend({method:_("ping"),params:A1.optional()}),V2=C({progress:z0(),total:A0(z0()),message:A0(D())}),q2=C({...Z1.shape,...V2.shape,progressToken:VB}),O7=i1.extend({method:_("notifications/progress"),params:q2}),N2=A1.extend({cursor:qB.optional()}),R6=s0.extend({params:N2.optional()}),Z6=t0.extend({nextCursor:qB.optional()}),U2=H1(["working","input_required","completed","failed","cancelled"]),i6=C({taskId:D(),status:U2,ttl:F0([z0(),GB()]),createdAt:D(),lastUpdatedAt:D(),pollInterval:A0(z0()),statusMessage:A0(D())}),B8=t0.extend({task:i6}),L2=Z1.merge(i6),C6=i1.extend({method:_("notifications/tasks/status"),params:L2}),I7=s0.extend({method:_("tasks/get"),params:A1.extend({taskId:D()})}),E7=t0.merge(i6),S7=s0.extend({method:_("tasks/result"),params:A1.extend({taskId:D()})}),Oy=t0.loose(),P7=R6.extend({method:_("tasks/list")}),R7=Z6.extend({tasks:W0(i6)}),Z7=s0.extend({method:_("tasks/cancel"),params:A1.extend({taskId:D()})}),jB=t0.merge(i6),AB=C({uri:D(),mimeType:A0(D()),_meta:U0(D(),j0()).optional()}),OB=AB.extend({text:D()}),LY=D().refine((x)=>{try{return atob(x),!0}catch{return!1}},{message:"Invalid Base64 string"}),IB=AB.extend({blob:LY}),T6=H1(["user","assistant"]),w8=C({audience:W0(T6).optional(),priority:z0().min(0).max(1).optional(),lastModified:O6.datetime({offset:!0}).optional()}),EB=C({...v8.shape,...P6.shape,uri:D(),description:A0(D()),mimeType:A0(D()),size:A0(z0()),annotations:w8.optional(),_meta:A0(J1({}))}),F2=C({...v8.shape,...P6.shape,uriTemplate:D(),description:A0(D()),mimeType:A0(D()),annotations:w8.optional(),_meta:A0(J1({}))}),i7=R6.extend({method:_("resources/list")}),M2=Z6.extend({resources:W0(EB)}),C7=R6.extend({method:_("resources/templates/list")}),D2=Z6.extend({resourceTemplates:W0(F2)}),FY=A1.extend({uri:D()}),c2=FY,T7=s0.extend({method:_("resources/read"),params:c2}),j2=t0.extend({contents:W0(F0([OB,IB]))}),A2=i1.extend({method:_("notifications/resources/list_changed"),params:Z1.optional()}),O2=FY,I2=s0.extend({method:_("resources/subscribe"),params:O2}),E2=FY,S2=s0.extend({method:_("resources/unsubscribe"),params:E2}),P2=Z1.extend({uri:D()}),R2=i1.extend({method:_("notifications/resources/updated"),params:P2}),Z2=C({name:D(),description:A0(D()),required:A0(h0())}),i2=C({...v8.shape,...P6.shape,description:A0(D()),arguments:A0(W0(Z2)),_meta:A0(J1({}))}),k7=R6.extend({method:_("prompts/list")}),C2=Z6.extend({prompts:W0(i2)}),T2=A1.extend({name:D(),arguments:U0(D(),D()).optional()}),_7=s0.extend({method:_("prompts/get"),params:T2}),MY=C({type:_("text"),text:D(),annotations:w8.optional(),_meta:U0(D(),j0()).optional()}),DY=C({type:_("image"),data:LY,mimeType:D(),annotations:w8.optional(),_meta:U0(D(),j0()).optional()}),cY=C({type:_("audio"),data:LY,mimeType:D(),annotations:w8.optional(),_meta:U0(D(),j0()).optional()}),k2=C({type:_("tool_use"),name:D(),id:D(),input:U0(D(),j0()),_meta:U0(D(),j0()).optional()}),_2=C({type:_("resource"),resource:F0([OB,IB]),annotations:w8.optional(),_meta:U0(D(),j0()).optional()}),u2=EB.extend({type:_("resource_link")}),jY=F0([MY,DY,cY,u2,_2]),p2=C({role:T6,content:jY}),l2=t0.extend({description:D().optional(),messages:W0(p2)}),n2=i1.extend({method:_("notifications/prompts/list_changed"),params:Z1.optional()}),m2=C({title:D().optional(),readOnlyHint:h0().optional(),destructiveHint:h0().optional(),idempotentHint:h0().optional(),openWorldHint:h0().optional()}),f2=C({taskSupport:H1(["required","optional","forbidden"]).optional()}),SB=C({...v8.shape,...P6.shape,description:D().optional(),inputSchema:C({type:_("object"),properties:U0(D(),n0).optional(),required:W0(D()).optional()}).catchall(j0()),outputSchema:C({type:_("object"),properties:U0(D(),n0).optional(),required:W0(D()).optional()}).catchall(j0()).optional(),annotations:m2.optional(),execution:f2.optional(),_meta:U0(D(),j0()).optional()}),u7=R6.extend({method:_("tools/list")}),y2=Z6.extend({tools:W0(SB)}),p7=t0.extend({content:W0(jY).default([]),structuredContent:U0(D(),j0()).optional(),isError:h0().optional()}),Iy=p7.or(t0.extend({toolResult:j0()})),g2=E6.extend({name:D(),arguments:U0(D(),j0()).optional()}),K8=s0.extend({method:_("tools/call"),params:g2}),h2=i1.extend({method:_("notifications/tools/list_changed"),params:Z1.optional()}),Ey=C({autoRefresh:h0().default(!0),debounceMs:z0().int().nonnegative().default(300)}),k6=H1(["debug","info","notice","warning","error","critical","alert","emergency"]),o2=A1.extend({level:k6}),AY=s0.extend({method:_("logging/setLevel"),params:o2}),a2=Z1.extend({level:k6,logger:D().optional(),data:j0()}),d2=i1.extend({method:_("notifications/message"),params:a2}),r2=C({name:D().optional()}),s2=C({hints:W0(r2).optional(),costPriority:z0().min(0).max(1).optional(),speedPriority:z0().min(0).max(1).optional(),intelligencePriority:z0().min(0).max(1).optional()}),t2=C({mode:H1(["auto","required","none"]).optional()}),e2=C({type:_("tool_result"),toolUseId:D().describe("The unique identifier for the corresponding tool call."),content:W0(jY).default([]),structuredContent:C({}).loose().optional(),isError:h0().optional(),_meta:U0(D(),j0()).optional()}),xI=vY("type",[MY,DY,cY]),F7=vY("type",[MY,DY,cY,k2,e2]),QI=C({role:T6,content:F0([F7,W0(F7)]),_meta:U0(D(),j0()).optional()}),WI=E6.extend({messages:W0(QI),modelPreferences:s2.optional(),systemPrompt:D().optional(),includeContext:H1(["none","thisServer","allServers"]).optional(),temperature:z0().optional(),maxTokens:z0().int(),stopSequences:W0(D()).optional(),metadata:n0.optional(),tools:W0(SB).optional(),toolChoice:t2.optional()}),YI=s0.extend({method:_("sampling/createMessage"),params:WI}),_6=t0.extend({model:D(),stopReason:A0(H1(["endTurn","stopSequence","maxTokens"]).or(D())),role:T6,content:xI}),OY=t0.extend({model:D(),stopReason:A0(H1(["endTurn","stopSequence","maxTokens","toolUse"]).or(D())),role:T6,content:F0([F7,W0(F7)])}),XI=C({type:_("boolean"),title:D().optional(),description:D().optional(),default:h0().optional()}),JI=C({type:_("string"),title:D().optional(),description:D().optional(),minLength:z0().optional(),maxLength:z0().optional(),format:H1(["email","uri","date","date-time"]).optional(),default:D().optional()}),GI=C({type:H1(["number","integer"]),title:D().optional(),description:D().optional(),minimum:z0().optional(),maximum:z0().optional(),default:z0().optional()}),$I=C({type:_("string"),title:D().optional(),description:D().optional(),enum:W0(D()),default:D().optional()}),bI=C({type:_("string"),title:D().optional(),description:D().optional(),oneOf:W0(C({const:D(),title:D()})),default:D().optional()}),zI=C({type:_("string"),title:D().optional(),description:D().optional(),enum:W0(D()),enumNames:W0(D()).optional(),default:D().optional()}),vI=F0([$I,bI]),BI=C({type:_("array"),title:D().optional(),description:D().optional(),minItems:z0().optional(),maxItems:z0().optional(),items:C({type:_("string"),enum:W0(D())}),default:W0(D()).optional()}),wI=C({type:_("array"),title:D().optional(),description:D().optional(),minItems:z0().optional(),maxItems:z0().optional(),items:C({anyOf:W0(C({const:D(),title:D()}))}),default:W0(D()).optional()}),KI=F0([BI,wI]),HI=F0([zI,vI,KI]),VI=F0([HI,XI,JI,GI]),qI=E6.extend({mode:_("form").optional(),message:D(),requestedSchema:C({type:_("object"),properties:U0(D(),VI),required:W0(D()).optional()})}),NI=E6.extend({mode:_("url"),message:D(),elicitationId:D(),url:D().url()}),UI=F0([qI,NI]),LI=s0.extend({method:_("elicitation/create"),params:UI}),FI=Z1.extend({elicitationId:D()}),MI=i1.extend({method:_("notifications/elicitation/complete"),params:FI}),H8=t0.extend({action:H1(["accept","decline","cancel"]),content:BY((x)=>x===null?void 0:x,U0(D(),F0([D(),z0(),h0(),W0(D())])).optional())}),DI=C({type:_("ref/resource"),uri:D()});var cI=C({type:_("ref/prompt"),name:D()}),jI=A1.extend({ref:F0([cI,DI]),argument:C({name:D(),value:D()}),context:C({arguments:U0(D(),D()).optional()}).optional()}),l7=s0.extend({method:_("completion/complete"),params:jI});function PB(x){if(x.params.ref.type!=="ref/prompt")throw TypeError(`Expected CompleteRequestPrompt, but got ${x.params.ref.type}`)}function RB(x){if(x.params.ref.type!=="ref/resource")throw TypeError(`Expected CompleteRequestResourceTemplate, but got ${x.params.ref.type}`)}var AI=t0.extend({completion:J1({values:W0(D()).max(100),total:A0(z0().int()),hasMore:A0(h0())})}),OI=C({uri:D().startsWith("file://"),name:D().optional(),_meta:U0(D(),j0()).optional()}),II=s0.extend({method:_("roots/list"),params:A1.optional()}),IY=t0.extend({roots:W0(OI)}),EI=i1.extend({method:_("notifications/roots/list_changed"),params:Z1.optional()}),Sy=F0([A7,NY,l7,AY,_7,k7,i7,C7,T7,I2,S2,K8,u7,I7,S7,P7,Z7]),Py=F0([j7,O7,UY,EI,C6]),Ry=F0([c7,_6,OY,H8,IY,E7,R7,B8]),Zy=F0([A7,YI,LI,II,I7,S7,P7,Z7]),iy=F0([j7,O7,d2,R2,A2,h2,n2,C6,MI]),Cy=F0([c7,H2,AI,l2,C2,M2,D2,j2,p7,y2,E7,R7,B8]);class k extends Error{constructor(x,Q,W){super(`MCP error ${x}: ${Q}`);this.code=x,this.data=W,this.name="McpError"}static fromError(x,Q,W){if(x===p.UrlElicitationRequired&&W){let Y=W;if(Y.elicitations)return new ZB(Y.elicitations,Q)}return new k(x,Q,W)}}class ZB extends k{constructor(x,Q=`URL elicitation${x.length>1?"s":""} required`){super(p.UrlElicitationRequired,Q,{elicitations:x})}get elicitations(){return this.data?.elicitations??[]}}function _4(x){return x==="completed"||x==="failed"||x==="cancelled"}var CB=Symbol("Let zodToJsonSchema decide on which parser to use");var iB={name:void 0,$refStrategy:"root",basePath:["#"],effectStrategy:"input",pipeStrategy:"all",dateStrategy:"format:date-time",mapStrategy:"entries",removeAdditionalStrategy:"passthrough",allowedAdditionalProperties:!0,rejectedAdditionalProperties:!1,definitionPath:"definitions",target:"jsonSchema7",strictUnions:!1,definitions:{},errorMessages:!1,markdownDescription:!1,patternStrategy:"escape",applyRegexFlags:!1,emailStrategy:"format:email",base64Strategy:"contentEncoding:base64",nameStrategy:"ref",openAiAnyTypeName:"OpenAiAnyType"},TB=(x)=>typeof x==="string"?{...iB,name:x}:{...iB,...x};var kB=(x)=>{let Q=TB(x),W=Q.name!==void 0?[...Q.basePath,Q.definitionPath,Q.name]:Q.basePath;return{...Q,flags:{hasReferencedOpenAiAnyType:!1},currentPath:W,propertyPath:void 0,seen:new Map(Object.entries(Q.definitions).map(([Y,X])=>[X._def,{def:X._def,path:[...Q.basePath,Q.definitionPath,Y],jsonSchema:void 0}]))}};function EY(x,Q,W,Y){if(!Y?.errorMessages)return;if(W)x.errorMessage={...x.errorMessage,[Q]:W}}function Y0(x,Q,W,Y,X){x[Q]=W,EY(x,Q,Y,X)}var n7=(x,Q)=>{let W=0;for(;W<x.length&&W<Q.length;W++)if(x[W]!==Q[W])break;return[(x.length-W).toString(),...Q.slice(W)].join("/")};function O0(x){if(x.target!=="openAi")return{};let Q=[...x.basePath,x.definitionPath,x.openAiAnyTypeName];return x.flags.hasReferencedOpenAiAnyType=!0,{$ref:x.$refStrategy==="relative"?n7(Q,x.currentPath):Q.join("/")}}function _B(x,Q){let W={type:"array"};if(x.type?._def&&x.type?._def?.typeName!==E.ZodAny)W.items=m(x.type._def,{...Q,currentPath:[...Q.currentPath,"items"]});if(x.minLength)Y0(W,"minItems",x.minLength.value,x.minLength.message,Q);if(x.maxLength)Y0(W,"maxItems",x.maxLength.value,x.maxLength.message,Q);if(x.exactLength)Y0(W,"minItems",x.exactLength.value,x.exactLength.message,Q),Y0(W,"maxItems",x.exactLength.value,x.exactLength.message,Q);return W}function uB(x,Q){let W={type:"integer",format:"int64"};if(!x.checks)return W;for(let Y of x.checks)switch(Y.kind){case"min":if(Q.target==="jsonSchema7")if(Y.inclusive)Y0(W,"minimum",Y.value,Y.message,Q);else Y0(W,"exclusiveMinimum",Y.value,Y.message,Q);else{if(!Y.inclusive)W.exclusiveMinimum=!0;Y0(W,"minimum",Y.value,Y.message,Q)}break;case"max":if(Q.target==="jsonSchema7")if(Y.inclusive)Y0(W,"maximum",Y.value,Y.message,Q);else Y0(W,"exclusiveMaximum",Y.value,Y.message,Q);else{if(!Y.inclusive)W.exclusiveMaximum=!0;Y0(W,"maximum",Y.value,Y.message,Q)}break;case"multipleOf":Y0(W,"multipleOf",Y.value,Y.message,Q);break}return W}function pB(){return{type:"boolean"}}function m7(x,Q){return m(x.type._def,Q)}var lB=(x,Q)=>{return m(x.innerType._def,Q)};function SY(x,Q,W){let Y=W??Q.dateStrategy;if(Array.isArray(Y))return{anyOf:Y.map((X,J)=>SY(x,Q,X))};switch(Y){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":return SI(x,Q)}}var SI=(x,Q)=>{let W={type:"integer",format:"unix-time"};if(Q.target==="openApi3")return W;for(let Y of x.checks)switch(Y.kind){case"min":Y0(W,"minimum",Y.value,Y.message,Q);break;case"max":Y0(W,"maximum",Y.value,Y.message,Q);break}return W};function nB(x,Q){return{...m(x.innerType._def,Q),default:x.defaultValue()}}function mB(x,Q){return Q.effectStrategy==="input"?m(x.schema._def,Q):O0(Q)}function fB(x){return{type:"string",enum:Array.from(x.values)}}var PI=(x)=>{if("type"in x&&x.type==="string")return!1;return"allOf"in x};function yB(x,Q){let W=[m(x.left._def,{...Q,currentPath:[...Q.currentPath,"allOf","0"]}),m(x.right._def,{...Q,currentPath:[...Q.currentPath,"allOf","1"]})].filter((J)=>!!J),Y=Q.target==="jsonSchema2019-09"?{unevaluatedProperties:!1}:void 0,X=[];return W.forEach((J)=>{if(PI(J)){if(X.push(...J.allOf),J.unevaluatedProperties===void 0)Y=void 0}else{let G=J;if("additionalProperties"in J&&J.additionalProperties===!1){let{additionalProperties:$,...b}=J;G=b}else Y=void 0;X.push(G)}}),X.length?{allOf:X,...Y}:void 0}function gB(x,Q){let W=typeof x.value;if(W!=="bigint"&&W!=="number"&&W!=="boolean"&&W!=="string")return{type:Array.isArray(x.value)?"array":"object"};if(Q.target==="openApi3")return{type:W==="bigint"?"integer":W,enum:[x.value]};return{type:W==="bigint"?"integer":W,const:x.value}}var PY=void 0,h1={cuid:/^[cC][^\s-]{8,}$/,cuid2:/^[0-9a-z]+$/,ulid:/^[0-9A-HJKMNP-TV-Z]{26}$/,email:/^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\-]*\.)+[a-zA-Z]{2,}$/,emoji:()=>{if(PY===void 0)PY=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u");return PY},uuid:/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/,ipv4:/^(?:(?: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])$/,ipv4Cidr:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,ipv6:/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,ipv6Cidr:/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,base64:/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,base64url:/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,nanoid:/^[a-zA-Z0-9_-]{21}$/,jwt:/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/};function f7(x,Q){let W={type:"string"};if(x.checks)for(let Y of x.checks)switch(Y.kind){case"min":Y0(W,"minLength",typeof W.minLength==="number"?Math.max(W.minLength,Y.value):Y.value,Y.message,Q);break;case"max":Y0(W,"maxLength",typeof W.maxLength==="number"?Math.min(W.maxLength,Y.value):Y.value,Y.message,Q);break;case"email":switch(Q.emailStrategy){case"format:email":o1(W,"email",Y.message,Q);break;case"format:idn-email":o1(W,"idn-email",Y.message,Q);break;case"pattern:zod":G1(W,h1.email,Y.message,Q);break}break;case"url":o1(W,"uri",Y.message,Q);break;case"uuid":o1(W,"uuid",Y.message,Q);break;case"regex":G1(W,Y.regex,Y.message,Q);break;case"cuid":G1(W,h1.cuid,Y.message,Q);break;case"cuid2":G1(W,h1.cuid2,Y.message,Q);break;case"startsWith":G1(W,RegExp(`^${RY(Y.value,Q)}`),Y.message,Q);break;case"endsWith":G1(W,RegExp(`${RY(Y.value,Q)}$`),Y.message,Q);break;case"datetime":o1(W,"date-time",Y.message,Q);break;case"date":o1(W,"date",Y.message,Q);break;case"time":o1(W,"time",Y.message,Q);break;case"duration":o1(W,"duration",Y.message,Q);break;case"length":Y0(W,"minLength",typeof W.minLength==="number"?Math.max(W.minLength,Y.value):Y.value,Y.message,Q),Y0(W,"maxLength",typeof W.maxLength==="number"?Math.min(W.maxLength,Y.value):Y.value,Y.message,Q);break;case"includes":{G1(W,RegExp(RY(Y.value,Q)),Y.message,Q);break}case"ip":{if(Y.version!=="v6")o1(W,"ipv4",Y.message,Q);if(Y.version!=="v4")o1(W,"ipv6",Y.message,Q);break}case"base64url":G1(W,h1.base64url,Y.message,Q);break;case"jwt":G1(W,h1.jwt,Y.message,Q);break;case"cidr":{if(Y.version!=="v6")G1(W,h1.ipv4Cidr,Y.message,Q);if(Y.version!=="v4")G1(W,h1.ipv6Cidr,Y.message,Q);break}case"emoji":G1(W,h1.emoji(),Y.message,Q);break;case"ulid":{G1(W,h1.ulid,Y.message,Q);break}case"base64":{switch(Q.base64Strategy){case"format:binary":{o1(W,"binary",Y.message,Q);break}case"contentEncoding:base64":{Y0(W,"contentEncoding","base64",Y.message,Q);break}case"pattern:zod":{G1(W,h1.base64,Y.message,Q);break}}break}case"nanoid":G1(W,h1.nanoid,Y.message,Q);case"toLowerCase":case"toUpperCase":case"trim":break;default:((X)=>{})(Y)}return W}function RY(x,Q){return Q.patternStrategy==="escape"?ZI(x):x}var RI=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function ZI(x){let Q="";for(let W=0;W<x.length;W++){if(!RI.has(x[W]))Q+="\\";Q+=x[W]}return Q}function o1(x,Q,W,Y){if(x.format||x.anyOf?.some((X)=>X.format)){if(!x.anyOf)x.anyOf=[];if(x.format){if(x.anyOf.push({format:x.format,...x.errorMessage&&Y.errorMessages&&{errorMessage:{format:x.errorMessage.format}}}),delete x.format,x.errorMessage){if(delete x.errorMessage.format,Object.keys(x.errorMessage).length===0)delete x.errorMessage}}x.anyOf.push({format:Q,...W&&Y.errorMessages&&{errorMessage:{format:W}}})}else Y0(x,"format",Q,W,Y)}function G1(x,Q,W,Y){if(x.pattern||x.allOf?.some((X)=>X.pattern)){if(!x.allOf)x.allOf=[];if(x.pattern){if(x.allOf.push({pattern:x.pattern,...x.errorMessage&&Y.errorMessages&&{errorMessage:{pattern:x.errorMessage.pattern}}}),delete x.pattern,x.errorMessage){if(delete x.errorMessage.pattern,Object.keys(x.errorMessage).length===0)delete x.errorMessage}}x.allOf.push({pattern:hB(Q,Y),...W&&Y.errorMessages&&{errorMessage:{pattern:W}}})}else Y0(x,"pattern",hB(Q,Y),W,Y)}function hB(x,Q){if(!Q.applyRegexFlags||!x.flags)return x.source;let W={i:x.flags.includes("i"),m:x.flags.includes("m"),s:x.flags.includes("s")},Y=W.i?x.source.toLowerCase():x.source,X="",J=!1,G=!1,$=!1;for(let b=0;b<Y.length;b++){if(J){X+=Y[b],J=!1;continue}if(W.i){if(G){if(Y[b].match(/[a-z]/)){if($)X+=Y[b],X+=`${Y[b-2]}-${Y[b]}`.toUpperCase(),$=!1;else if(Y[b+1]==="-"&&Y[b+2]?.match(/[a-z]/))X+=Y[b],$=!0;else X+=`${Y[b]}${Y[b].toUpperCase()}`;continue}}else if(Y[b].match(/[a-z]/)){X+=`[${Y[b]}${Y[b].toUpperCase()}]`;continue}}if(W.m){if(Y[b]==="^"){X+=`(^|(?<=[\r
63
63
  ]))`;continue}else if(Y[b]==="$"){X+=`($|(?=[\r
64
64
  ]))`;continue}}if(W.s&&Y[b]==="."){X+=G?`${Y[b]}\r
65
65
  `:`[${Y[b]}\r
66
- ]`;continue}if(X+=Y[b],Y[b]==="\\")J=!0;else if(G&&Y[b]==="]")G=!1;else if(!G&&Y[b]==="[")G=!0}try{new RegExp(X)}catch{return console.warn(`Could not convert regex pattern at ${Q.currentPath.join("/")} to a flag-independent form! Falling back to the flag-ignorant source`),x.source}return X}function y7(x,Q){if(Q.target==="openAi")console.warn("Warning: OpenAI may not support records in schemas! Try an array of key-value pairs instead.");if(Q.target==="openApi3"&&x.keyType?._def.typeName===E.ZodEnum)return{type:"object",required:x.keyType._def.values,properties:x.keyType._def.values.reduce((Y,X)=>({...Y,[X]:m(x.valueType._def,{...Q,currentPath:[...Q.currentPath,"properties",X]})??O0(Q)}),{}),additionalProperties:Q.rejectedAdditionalProperties};let W={type:"object",additionalProperties:m(x.valueType._def,{...Q,currentPath:[...Q.currentPath,"additionalProperties"]})??Q.allowedAdditionalProperties};if(Q.target==="openApi3")return W;if(x.keyType?._def.typeName===E.ZodString&&x.keyType._def.checks?.length){let{type:Y,...X}=f7(x.keyType._def,Q);return{...W,propertyNames:X}}else if(x.keyType?._def.typeName===E.ZodEnum)return{...W,propertyNames:{enum:x.keyType._def.values}};else if(x.keyType?._def.typeName===E.ZodBranded&&x.keyType._def.type._def.typeName===E.ZodString&&x.keyType._def.type._def.checks?.length){let{type:Y,...X}=m7(x.keyType._def,Q);return{...W,propertyNames:X}}return W}function yB(x,Q){if(Q.mapStrategy==="record")return y7(x,Q);let W=m(x.keyType._def,{...Q,currentPath:[...Q.currentPath,"items","items","0"]})||O0(Q),Y=m(x.valueType._def,{...Q,currentPath:[...Q.currentPath,"items","items","1"]})||O0(Q);return{type:"array",maxItems:125,items:{type:"array",items:[W,Y],minItems:2,maxItems:2}}}function gB(x){let Q=x.values,Y=Object.keys(x.values).filter((J)=>{return typeof Q[Q[J]]!=="number"}).map((J)=>Q[J]),X=Array.from(new Set(Y.map((J)=>typeof J)));return{type:X.length===1?X[0]==="string"?"string":"number":["string","number"],enum:Y}}function hB(x){return x.target==="openAi"?void 0:{not:O0({...x,currentPath:[...x.currentPath,"not"]})}}function oB(x){return x.target==="openApi3"?{enum:["null"],nullable:!0}:{type:"null"}}var u6={ZodString:"string",ZodNumber:"number",ZodBigInt:"integer",ZodBoolean:"boolean",ZodNull:"null"};function dB(x,Q){if(Q.target==="openApi3")return aB(x,Q);let W=x.options instanceof Map?Array.from(x.options.values()):x.options;if(W.every((Y)=>(Y._def.typeName in u6)&&(!Y._def.checks||!Y._def.checks.length))){let Y=W.reduce((X,J)=>{let G=u6[J._def.typeName];return G&&!X.includes(G)?[...X,G]:X},[]);return{type:Y.length>1?Y:Y[0]}}else if(W.every((Y)=>Y._def.typeName==="ZodLiteral"&&!Y.description)){let Y=W.reduce((X,J)=>{let G=typeof J._def.value;switch(G){case"string":case"number":case"boolean":return[...X,G];case"bigint":return[...X,"integer"];case"object":if(J._def.value===null)return[...X,"null"];case"symbol":case"undefined":case"function":default:return X}},[]);if(Y.length===W.length){let X=Y.filter((J,G,$)=>$.indexOf(J)===G);return{type:X.length>1?X:X[0],enum:W.reduce((J,G)=>{return J.includes(G._def.value)?J:[...J,G._def.value]},[])}}}else if(W.every((Y)=>Y._def.typeName==="ZodEnum"))return{type:"string",enum:W.reduce((Y,X)=>[...Y,...X._def.values.filter((J)=>!Y.includes(J))],[])};return aB(x,Q)}var aB=(x,Q)=>{let W=(x.options instanceof Map?Array.from(x.options.values()):x.options).map((Y,X)=>m(Y._def,{...Q,currentPath:[...Q.currentPath,"anyOf",`${X}`]})).filter((Y)=>!!Y&&(!Q.strictUnions||typeof Y==="object"&&Object.keys(Y).length>0));return W.length?{anyOf:W}:void 0};function rB(x,Q){if(["ZodString","ZodNumber","ZodBigInt","ZodBoolean","ZodNull"].includes(x.innerType._def.typeName)&&(!x.innerType._def.checks||!x.innerType._def.checks.length)){if(Q.target==="openApi3")return{type:u6[x.innerType._def.typeName],nullable:!0};return{type:[u6[x.innerType._def.typeName],"null"]}}if(Q.target==="openApi3"){let Y=m(x.innerType._def,{...Q,currentPath:[...Q.currentPath]});if(Y&&"$ref"in Y)return{allOf:[Y],nullable:!0};return Y&&{...Y,nullable:!0}}let W=m(x.innerType._def,{...Q,currentPath:[...Q.currentPath,"anyOf","0"]});return W&&{anyOf:[W,{type:"null"}]}}function sB(x,Q){let W={type:"number"};if(!x.checks)return W;for(let Y of x.checks)switch(Y.kind){case"int":W.type="integer",EY(W,"type",Y.message,Q);break;case"min":if(Q.target==="jsonSchema7")if(Y.inclusive)Y0(W,"minimum",Y.value,Y.message,Q);else Y0(W,"exclusiveMinimum",Y.value,Y.message,Q);else{if(!Y.inclusive)W.exclusiveMinimum=!0;Y0(W,"minimum",Y.value,Y.message,Q)}break;case"max":if(Q.target==="jsonSchema7")if(Y.inclusive)Y0(W,"maximum",Y.value,Y.message,Q);else Y0(W,"exclusiveMaximum",Y.value,Y.message,Q);else{if(!Y.inclusive)W.exclusiveMaximum=!0;Y0(W,"maximum",Y.value,Y.message,Q)}break;case"multipleOf":Y0(W,"multipleOf",Y.value,Y.message,Q);break}return W}function tB(x,Q){let W=Q.target==="openAi",Y={type:"object",properties:{}},X=[],J=x.shape();for(let $ in J){let b=J[$];if(b===void 0||b._def===void 0)continue;let z=SI(b);if(z&&W){if(b._def.typeName==="ZodOptional")b=b._def.innerType;if(!b.isNullable())b=b.nullable();z=!1}let v=m(b._def,{...Q,currentPath:[...Q.currentPath,"properties",$],propertyPath:[...Q.currentPath,"properties",$]});if(v===void 0)continue;if(Y.properties[$]=v,!z)X.push($)}if(X.length)Y.required=X;let G=EI(x,Q);if(G!==void 0)Y.additionalProperties=G;return Y}function EI(x,Q){if(x.catchall._def.typeName!=="ZodNever")return m(x.catchall._def,{...Q,currentPath:[...Q.currentPath,"additionalProperties"]});switch(x.unknownKeys){case"passthrough":return Q.allowedAdditionalProperties;case"strict":return Q.rejectedAdditionalProperties;case"strip":return Q.removeAdditionalStrategy==="strict"?Q.allowedAdditionalProperties:Q.rejectedAdditionalProperties}}function SI(x){try{return x.isOptional()}catch{return!0}}var eB=(x,Q)=>{if(Q.currentPath.toString()===Q.propertyPath?.toString())return m(x.innerType._def,Q);let W=m(x.innerType._def,{...Q,currentPath:[...Q.currentPath,"anyOf","1"]});return W?{anyOf:[{not:O0(Q)},W]}:O0(Q)};var xw=(x,Q)=>{if(Q.pipeStrategy==="input")return m(x.in._def,Q);else if(Q.pipeStrategy==="output")return m(x.out._def,Q);let W=m(x.in._def,{...Q,currentPath:[...Q.currentPath,"allOf","0"]}),Y=m(x.out._def,{...Q,currentPath:[...Q.currentPath,"allOf",W?"1":"0"]});return{allOf:[W,Y].filter((X)=>X!==void 0)}};function Qw(x,Q){return m(x.type._def,Q)}function Ww(x,Q){let Y={type:"array",uniqueItems:!0,items:m(x.valueType._def,{...Q,currentPath:[...Q.currentPath,"items"]})};if(x.minSize)Y0(Y,"minItems",x.minSize.value,x.minSize.message,Q);if(x.maxSize)Y0(Y,"maxItems",x.maxSize.value,x.maxSize.message,Q);return Y}function Yw(x,Q){if(x.rest)return{type:"array",minItems:x.items.length,items:x.items.map((W,Y)=>m(W._def,{...Q,currentPath:[...Q.currentPath,"items",`${Y}`]})).reduce((W,Y)=>Y===void 0?W:[...W,Y],[]),additionalItems:m(x.rest._def,{...Q,currentPath:[...Q.currentPath,"additionalItems"]})};else return{type:"array",minItems:x.items.length,maxItems:x.items.length,items:x.items.map((W,Y)=>m(W._def,{...Q,currentPath:[...Q.currentPath,"items",`${Y}`]})).reduce((W,Y)=>Y===void 0?W:[...W,Y],[])}}function Xw(x){return{not:O0(x)}}function Jw(x){return O0(x)}var Gw=(x,Q)=>{return m(x.innerType._def,Q)};var $w=(x,Q,W)=>{switch(Q){case E.ZodString:return f7(x,W);case E.ZodNumber:return sB(x,W);case E.ZodObject:return tB(x,W);case E.ZodBigInt:return TB(x,W);case E.ZodBoolean:return kB();case E.ZodDate:return SY(x,W);case E.ZodUndefined:return Xw(W);case E.ZodNull:return oB(W);case E.ZodArray:return CB(x,W);case E.ZodUnion:case E.ZodDiscriminatedUnion:return dB(x,W);case E.ZodIntersection:return nB(x,W);case E.ZodTuple:return Yw(x,W);case E.ZodRecord:return y7(x,W);case E.ZodLiteral:return mB(x,W);case E.ZodEnum:return lB(x);case E.ZodNativeEnum:return gB(x);case E.ZodNullable:return rB(x,W);case E.ZodOptional:return eB(x,W);case E.ZodMap:return yB(x,W);case E.ZodSet:return Ww(x,W);case E.ZodLazy:return()=>x.getter()._def;case E.ZodPromise:return Qw(x,W);case E.ZodNaN:case E.ZodNever:return hB(W);case E.ZodEffects:return pB(x,W);case E.ZodAny:return O0(W);case E.ZodUnknown:return Jw(W);case E.ZodDefault:return uB(x,W);case E.ZodBranded:return m7(x,W);case E.ZodReadonly:return Gw(x,W);case E.ZodCatch:return _B(x,W);case E.ZodPipeline:return xw(x,W);case E.ZodFunction:case E.ZodVoid:case E.ZodSymbol:return;default:return((Y)=>{return})(Q)}};function m(x,Q,W=!1){let Y=Q.seen.get(x);if(Q.override){let $=Q.override?.(x,Q,Y,W);if($!==RB)return $}if(Y&&!W){let $=PI(Y,Q);if($!==void 0)return $}let X={def:x,path:Q.currentPath,jsonSchema:void 0};Q.seen.set(x,X);let J=$w(x,x.typeName,Q),G=typeof J==="function"?m(J(),Q):J;if(G)RI(x,Q,G);if(Q.postProcess){let $=Q.postProcess(G,x,Q);return X.jsonSchema=G,$}return X.jsonSchema=G,G}var PI=(x,Q)=>{switch(Q.$refStrategy){case"root":return{$ref:x.path.join("/")};case"relative":return{$ref:n7(Q.currentPath,x.path)};case"none":case"seen":{if(x.path.length<Q.currentPath.length&&x.path.every((W,Y)=>Q.currentPath[Y]===W))return console.warn(`Recursive reference detected at ${Q.currentPath.join("/")}! Defaulting to any`),O0(Q);return Q.$refStrategy==="seen"?O0(Q):void 0}}},RI=(x,Q,W)=>{if(x.description){if(W.description=x.description,Q.markdownDescription)W.markdownDescription=x.description}return W};var ZY=(x,Q)=>{let W=iB(Q),Y=typeof Q==="object"&&Q.definitions?Object.entries(Q.definitions).reduce((b,[z,v])=>({...b,[z]:m(v._def,{...W,currentPath:[...W.basePath,W.definitionPath,z]},!0)??O0(W)}),{}):void 0,X=typeof Q==="string"?Q:Q?.nameStrategy==="title"?void 0:Q?.name,J=m(x._def,X===void 0?W:{...W,currentPath:[...W.basePath,W.definitionPath,X]},!1)??O0(W),G=typeof Q==="object"&&Q.name!==void 0&&Q.nameStrategy==="title"?Q.name:void 0;if(G!==void 0)J.title=G;if(W.flags.hasReferencedOpenAiAnyType){if(!Y)Y={};if(!Y[W.openAiAnyTypeName])Y[W.openAiAnyTypeName]={type:["string","number","integer","boolean","array","null"],items:{$ref:W.$refStrategy==="relative"?"1":[...W.basePath,W.definitionPath,W.openAiAnyTypeName].join("/")}}}let $=X===void 0?Y?{...J,[W.definitionPath]:Y}:J:{$ref:[...W.$refStrategy==="relative"?[]:W.basePath,W.definitionPath,X].join("/"),[W.definitionPath]:{...Y,[X]:J}};if(W.target==="jsonSchema7")$.$schema="http://json-schema.org/draft-07/schema#";else if(W.target==="jsonSchema2019-09"||W.target==="openAi")$.$schema="https://json-schema.org/draft/2019-09/schema#";if(W.target==="openAi"&&(("anyOf"in $)||("oneOf"in $)||("allOf"in $)||("type"in $)&&Array.isArray($.type)))console.warn("Warning: OpenAI may not support schemas with unions as roots! Try wrapping it in an object property.");return $};function ZI(x){if(!x)return"draft-7";if(x==="jsonSchema7"||x==="draft-7")return"draft-7";if(x==="jsonSchema2019-09"||x==="draft-2020-12")return"draft-2020-12";return"draft-7"}function iY(x,Q){if(R1(x))return WY(x,{target:ZI(Q?.target),io:Q?.pipeStrategy??"input"});return ZY(x,{strictUnions:Q?.strictUnions??!0,pipeStrategy:Q?.pipeStrategy??"input"})}function CY(x){let W=T4(x)?.method;if(!W)throw Error("Schema is missing a method literal");let Y=N7(W);if(typeof Y!=="string")throw Error("Schema method literal must be a string");return Y}function TY(x,Q){let W=C4(x,Q);if(!W.success)throw W.error;return W.data}var iI=60000;class kY{constructor(x){if(this._options=x,this._requestMessageId=0,this._requestHandlers=new Map,this._requestHandlerAbortControllers=new Map,this._notificationHandlers=new Map,this._responseHandlers=new Map,this._progressHandlers=new Map,this._timeoutInfo=new Map,this._pendingDebouncedNotifications=new Set,this._taskProgressTokens=new Map,this._requestResolvers=new Map,this.setNotificationHandler(j7,(Q)=>{this._oncancel(Q)}),this.setNotificationHandler(O7,(Q)=>{this._onprogress(Q)}),this.setRequestHandler(A7,(Q)=>({})),this._taskStore=x?.taskStore,this._taskMessageQueue=x?.taskMessageQueue,this._taskStore)this.setRequestHandler(I7,async(Q,W)=>{let Y=await this._taskStore.getTask(Q.params.taskId,W.sessionId);if(!Y)throw new k(p.InvalidParams,"Failed to retrieve task: Task not found");return{...Y}}),this.setRequestHandler(S7,async(Q,W)=>{let Y=async()=>{let X=Q.params.taskId;if(this._taskMessageQueue){let G;while(G=await this._taskMessageQueue.dequeue(X,W.sessionId)){if(G.type==="response"||G.type==="error"){let $=G.message,b=$.id,z=this._requestResolvers.get(b);if(z)if(this._requestResolvers.delete(b),G.type==="response")z($);else{let v=$,B=new k(v.error.code,v.error.message,v.error.data);z(B)}else{let v=G.type==="response"?"Response":"Error";this._onerror(Error(`${v} handler missing for request ${b}`))}continue}await this._transport?.send(G.message,{relatedRequestId:W.requestId})}}let J=await this._taskStore.getTask(X,W.sessionId);if(!J)throw new k(p.InvalidParams,`Task not found: ${X}`);if(!_4(J.status))return await this._waitForTaskUpdate(X,W.signal),await Y();if(_4(J.status)){let G=await this._taskStore.getTaskResult(X,W.sessionId);return this._clearTaskQueue(X),{...G,_meta:{...G._meta,[k4]:{taskId:X}}}}return await Y()};return await Y()}),this.setRequestHandler(P7,async(Q,W)=>{try{let{tasks:Y,nextCursor:X}=await this._taskStore.listTasks(Q.params?.cursor,W.sessionId);return{tasks:Y,nextCursor:X,_meta:{}}}catch(Y){throw new k(p.InvalidParams,`Failed to list tasks: ${Y instanceof Error?Y.message:String(Y)}`)}}),this.setRequestHandler(Z7,async(Q,W)=>{try{let Y=await this._taskStore.getTask(Q.params.taskId,W.sessionId);if(!Y)throw new k(p.InvalidParams,`Task not found: ${Q.params.taskId}`);if(_4(Y.status))throw new k(p.InvalidParams,`Cannot cancel task in terminal status: ${Y.status}`);await this._taskStore.updateTaskStatus(Q.params.taskId,"cancelled","Client cancelled task execution.",W.sessionId),this._clearTaskQueue(Q.params.taskId);let X=await this._taskStore.getTask(Q.params.taskId,W.sessionId);if(!X)throw new k(p.InvalidParams,`Task not found after cancellation: ${Q.params.taskId}`);return{_meta:{},...X}}catch(Y){if(Y instanceof k)throw Y;throw new k(p.InvalidRequest,`Failed to cancel task: ${Y instanceof Error?Y.message:String(Y)}`)}})}async _oncancel(x){if(!x.params.requestId)return;this._requestHandlerAbortControllers.get(x.params.requestId)?.abort(x.params.reason)}_setupTimeout(x,Q,W,Y,X=!1){this._timeoutInfo.set(x,{timeoutId:setTimeout(Y,Q),startTime:Date.now(),timeout:Q,maxTotalTimeout:W,resetTimeoutOnProgress:X,onTimeout:Y})}_resetTimeout(x){let Q=this._timeoutInfo.get(x);if(!Q)return!1;let W=Date.now()-Q.startTime;if(Q.maxTotalTimeout&&W>=Q.maxTotalTimeout)throw this._timeoutInfo.delete(x),k.fromError(p.RequestTimeout,"Maximum total timeout exceeded",{maxTotalTimeout:Q.maxTotalTimeout,totalElapsed:W});return clearTimeout(Q.timeoutId),Q.timeoutId=setTimeout(Q.onTimeout,Q.timeout),!0}_cleanupTimeout(x){let Q=this._timeoutInfo.get(x);if(Q)clearTimeout(Q.timeoutId),this._timeoutInfo.delete(x)}async connect(x){if(this._transport)throw Error("Already connected to a transport. Call close() before connecting to a new transport, or use a separate Protocol instance per connection.");this._transport=x;let Q=this.transport?.onclose;this._transport.onclose=()=>{Q?.(),this._onclose()};let W=this.transport?.onerror;this._transport.onerror=(X)=>{W?.(X),this._onerror(X)};let Y=this._transport?.onmessage;this._transport.onmessage=(X,J)=>{if(Y?.(X,J),S6(X)||LB(X))this._onresponse(X);else if(HY(X))this._onrequest(X,J);else if(NB(X))this._onnotification(X);else this._onerror(Error(`Unknown message type: ${JSON.stringify(X)}`))},await this._transport.start()}_onclose(){let x=this._responseHandlers;this._responseHandlers=new Map,this._progressHandlers.clear(),this._taskProgressTokens.clear(),this._pendingDebouncedNotifications.clear();for(let W of this._timeoutInfo.values())clearTimeout(W.timeoutId);this._timeoutInfo.clear();for(let W of this._requestHandlerAbortControllers.values())W.abort();this._requestHandlerAbortControllers.clear();let Q=k.fromError(p.ConnectionClosed,"Connection closed");this._transport=void 0,this.onclose?.();for(let W of x.values())W(Q)}_onerror(x){this.onerror?.(x)}_onnotification(x){let Q=this._notificationHandlers.get(x.method)??this.fallbackNotificationHandler;if(Q===void 0)return;Promise.resolve().then(()=>Q(x)).catch((W)=>this._onerror(Error(`Uncaught error in notification handler: ${W}`)))}_onrequest(x,Q){let W=this._requestHandlers.get(x.method)??this.fallbackRequestHandler,Y=this._transport,X=x.params?._meta?.[k4]?.taskId;if(W===void 0){let z={jsonrpc:"2.0",id:x.id,error:{code:p.MethodNotFound,message:"Method not found"}};if(X&&this._taskMessageQueue)this._enqueueTaskMessage(X,{type:"error",message:z,timestamp:Date.now()},Y?.sessionId).catch((v)=>this._onerror(Error(`Failed to enqueue error response: ${v}`)));else Y?.send(z).catch((v)=>this._onerror(Error(`Failed to send an error response: ${v}`)));return}let J=new AbortController;this._requestHandlerAbortControllers.set(x.id,J);let G=HB(x.params)?x.params.task:void 0,$=this._taskStore?this.requestTaskStore(x,Y?.sessionId):void 0,b={signal:J.signal,sessionId:Y?.sessionId,_meta:x.params?._meta,sendNotification:async(z)=>{if(J.signal.aborted)return;let v={relatedRequestId:x.id};if(X)v.relatedTask={taskId:X};await this.notification(z,v)},sendRequest:async(z,v,B)=>{if(J.signal.aborted)throw new k(p.ConnectionClosed,"Request was cancelled");let K={...B,relatedRequestId:x.id};if(X&&!K.relatedTask)K.relatedTask={taskId:X};let w=K.relatedTask?.taskId??X;if(w&&$)await $.updateTaskStatus(w,"input_required");return await this.request(z,v,K)},authInfo:Q?.authInfo,requestId:x.id,requestInfo:Q?.requestInfo,taskId:X,taskStore:$,taskRequestedTtl:G?.ttl,closeSSEStream:Q?.closeSSEStream,closeStandaloneSSEStream:Q?.closeStandaloneSSEStream};Promise.resolve().then(()=>{if(G)this.assertTaskHandlerCapability(x.method)}).then(()=>W(x,b)).then(async(z)=>{if(J.signal.aborted)return;let v={result:z,jsonrpc:"2.0",id:x.id};if(X&&this._taskMessageQueue)await this._enqueueTaskMessage(X,{type:"response",message:v,timestamp:Date.now()},Y?.sessionId);else await Y?.send(v)},async(z)=>{if(J.signal.aborted)return;let v={jsonrpc:"2.0",id:x.id,error:{code:Number.isSafeInteger(z.code)?z.code:p.InternalError,message:z.message??"Internal error",...z.data!==void 0&&{data:z.data}}};if(X&&this._taskMessageQueue)await this._enqueueTaskMessage(X,{type:"error",message:v,timestamp:Date.now()},Y?.sessionId);else await Y?.send(v)}).catch((z)=>this._onerror(Error(`Failed to send response: ${z}`))).finally(()=>{if(this._requestHandlerAbortControllers.get(x.id)===J)this._requestHandlerAbortControllers.delete(x.id)})}_onprogress(x){let{progressToken:Q,...W}=x.params,Y=Number(Q),X=this._progressHandlers.get(Y);if(!X){this._onerror(Error(`Received a progress notification for an unknown token: ${JSON.stringify(x)}`));return}let J=this._responseHandlers.get(Y),G=this._timeoutInfo.get(Y);if(G&&J&&G.resetTimeoutOnProgress)try{this._resetTimeout(Y)}catch($){this._responseHandlers.delete(Y),this._progressHandlers.delete(Y),this._cleanupTimeout(Y),J($);return}X(W)}_onresponse(x){let Q=Number(x.id),W=this._requestResolvers.get(Q);if(W){if(this._requestResolvers.delete(Q),S6(x))W(x);else{let J=new k(x.error.code,x.error.message,x.error.data);W(J)}return}let Y=this._responseHandlers.get(Q);if(Y===void 0){this._onerror(Error(`Received a response for an unknown message ID: ${JSON.stringify(x)}`));return}this._responseHandlers.delete(Q),this._cleanupTimeout(Q);let X=!1;if(S6(x)&&x.result&&typeof x.result==="object"){let J=x.result;if(J.task&&typeof J.task==="object"){let G=J.task;if(typeof G.taskId==="string")X=!0,this._taskProgressTokens.set(G.taskId,Q)}}if(!X)this._progressHandlers.delete(Q);if(S6(x))Y(x);else{let J=k.fromError(x.error.code,x.error.message,x.error.data);Y(J)}}get transport(){return this._transport}async close(){await this._transport?.close()}async*requestStream(x,Q,W){let{task:Y}=W??{};if(!Y){try{yield{type:"result",result:await this.request(x,Q,W)}}catch(J){yield{type:"error",error:J instanceof k?J:new k(p.InternalError,String(J))}}return}let X;try{let J=await this.request(x,B8,W);if(J.task)X=J.task.taskId,yield{type:"taskCreated",task:J.task};else throw new k(p.InternalError,"Task creation did not return a task");while(!0){let G=await this.getTask({taskId:X},W);if(yield{type:"taskStatus",task:G},_4(G.status)){if(G.status==="completed")yield{type:"result",result:await this.getTaskResult({taskId:X},Q,W)};else if(G.status==="failed")yield{type:"error",error:new k(p.InternalError,`Task ${X} failed`)};else if(G.status==="cancelled")yield{type:"error",error:new k(p.InternalError,`Task ${X} was cancelled`)};return}if(G.status==="input_required"){yield{type:"result",result:await this.getTaskResult({taskId:X},Q,W)};return}let $=G.pollInterval??this._options?.defaultTaskPollInterval??1000;await new Promise((b)=>setTimeout(b,$)),W?.signal?.throwIfAborted()}}catch(J){yield{type:"error",error:J instanceof k?J:new k(p.InternalError,String(J))}}}request(x,Q,W){let{relatedRequestId:Y,resumptionToken:X,onresumptiontoken:J,task:G,relatedTask:$}=W??{};return new Promise((b,z)=>{let v=(q)=>{z(q)};if(!this._transport){v(Error("Not connected"));return}if(this._options?.enforceStrictCapabilities===!0)try{if(this.assertCapabilityForMethod(x.method),G)this.assertTaskCapability(x.method)}catch(q){v(q);return}W?.signal?.throwIfAborted();let B=this._requestMessageId++,K={...x,jsonrpc:"2.0",id:B};if(W?.onprogress)this._progressHandlers.set(B,W.onprogress),K.params={...x.params,_meta:{...x.params?._meta||{},progressToken:B}};if(G)K.params={...K.params,task:G};if($)K.params={...K.params,_meta:{...K.params?._meta||{},[k4]:$}};let w=(q)=>{this._responseHandlers.delete(B),this._progressHandlers.delete(B),this._cleanupTimeout(B),this._transport?.send({jsonrpc:"2.0",method:"notifications/cancelled",params:{requestId:B,reason:String(q)}},{relatedRequestId:Y,resumptionToken:X,onresumptiontoken:J}).catch((c)=>this._onerror(Error(`Failed to send cancellation: ${c}`)));let U=q instanceof k?q:new k(p.RequestTimeout,String(q));z(U)};this._responseHandlers.set(B,(q)=>{if(W?.signal?.aborted)return;if(q instanceof Error)return z(q);try{let U=C4(Q,q.result);if(!U.success)z(U.error);else b(U.data)}catch(U){z(U)}}),W?.signal?.addEventListener("abort",()=>{w(W?.signal?.reason)});let V=W?.timeout??iI,N=()=>w(k.fromError(p.RequestTimeout,"Request timed out",{timeout:V}));this._setupTimeout(B,V,W?.maxTotalTimeout,N,W?.resetTimeoutOnProgress??!1);let L=$?.taskId;if(L){let q=(U)=>{let c=this._responseHandlers.get(B);if(c)c(U);else this._onerror(Error(`Response handler missing for side-channeled request ${B}`))};this._requestResolvers.set(B,q),this._enqueueTaskMessage(L,{type:"request",message:K,timestamp:Date.now()}).catch((U)=>{this._cleanupTimeout(B),z(U)})}else this._transport.send(K,{relatedRequestId:Y,resumptionToken:X,onresumptiontoken:J}).catch((q)=>{this._cleanupTimeout(B),z(q)})})}async getTask(x,Q){return this.request({method:"tasks/get",params:x},E7,Q)}async getTaskResult(x,Q,W){return this.request({method:"tasks/result",params:x},Q,W)}async listTasks(x,Q){return this.request({method:"tasks/list",params:x},R7,Q)}async cancelTask(x,Q){return this.request({method:"tasks/cancel",params:x},MB,Q)}async notification(x,Q){if(!this._transport)throw Error("Not connected");this.assertNotificationCapability(x.method);let W=Q?.relatedTask?.taskId;if(W){let G={...x,jsonrpc:"2.0",params:{...x.params,_meta:{...x.params?._meta||{},[k4]:Q.relatedTask}}};await this._enqueueTaskMessage(W,{type:"notification",message:G,timestamp:Date.now()});return}if((this._options?.debouncedNotificationMethods??[]).includes(x.method)&&!x.params&&!Q?.relatedRequestId&&!Q?.relatedTask){if(this._pendingDebouncedNotifications.has(x.method))return;this._pendingDebouncedNotifications.add(x.method),Promise.resolve().then(()=>{if(this._pendingDebouncedNotifications.delete(x.method),!this._transport)return;let G={...x,jsonrpc:"2.0"};if(Q?.relatedTask)G={...G,params:{...G.params,_meta:{...G.params?._meta||{},[k4]:Q.relatedTask}}};this._transport?.send(G,Q).catch(($)=>this._onerror($))});return}let J={...x,jsonrpc:"2.0"};if(Q?.relatedTask)J={...J,params:{...J.params,_meta:{...J.params?._meta||{},[k4]:Q.relatedTask}}};await this._transport.send(J,Q)}setRequestHandler(x,Q){let W=CY(x);this.assertRequestHandlerCapability(W),this._requestHandlers.set(W,(Y,X)=>{let J=TY(x,Y);return Promise.resolve(Q(J,X))})}removeRequestHandler(x){this._requestHandlers.delete(x)}assertCanSetRequestHandler(x){if(this._requestHandlers.has(x))throw Error(`A request handler for ${x} already exists, which would be overridden`)}setNotificationHandler(x,Q){let W=CY(x);this._notificationHandlers.set(W,(Y)=>{let X=TY(x,Y);return Promise.resolve(Q(X))})}removeNotificationHandler(x){this._notificationHandlers.delete(x)}_cleanupTaskProgressHandler(x){let Q=this._taskProgressTokens.get(x);if(Q!==void 0)this._progressHandlers.delete(Q),this._taskProgressTokens.delete(x)}async _enqueueTaskMessage(x,Q,W){if(!this._taskStore||!this._taskMessageQueue)throw Error("Cannot enqueue task message: taskStore and taskMessageQueue are not configured");let Y=this._options?.maxTaskQueueSize;await this._taskMessageQueue.enqueue(x,Q,W,Y)}async _clearTaskQueue(x,Q){if(this._taskMessageQueue){let W=await this._taskMessageQueue.dequeueAll(x,Q);for(let Y of W)if(Y.type==="request"&&HY(Y.message)){let X=Y.message.id,J=this._requestResolvers.get(X);if(J)J(new k(p.InternalError,"Task cancelled or completed")),this._requestResolvers.delete(X);else this._onerror(Error(`Resolver missing for request ${X} during task ${x} cleanup`))}}}async _waitForTaskUpdate(x,Q){let W=this._options?.defaultTaskPollInterval??1000;try{let Y=await this._taskStore?.getTask(x);if(Y?.pollInterval)W=Y.pollInterval}catch{}return new Promise((Y,X)=>{if(Q.aborted){X(new k(p.InvalidRequest,"Request cancelled"));return}let J=setTimeout(Y,W);Q.addEventListener("abort",()=>{clearTimeout(J),X(new k(p.InvalidRequest,"Request cancelled"))},{once:!0})})}requestTaskStore(x,Q){let W=this._taskStore;if(!W)throw Error("No task store configured");return{createTask:async(Y)=>{if(!x)throw Error("No request provided");return await W.createTask(Y,x.id,{method:x.method,params:x.params},Q)},getTask:async(Y)=>{let X=await W.getTask(Y,Q);if(!X)throw new k(p.InvalidParams,"Failed to retrieve task: Task not found");return X},storeTaskResult:async(Y,X,J)=>{await W.storeTaskResult(Y,X,J,Q);let G=await W.getTask(Y,Q);if(G){let $=C6.parse({method:"notifications/tasks/status",params:G});if(await this.notification($),_4(G.status))this._cleanupTaskProgressHandler(Y)}},getTaskResult:(Y)=>{return W.getTaskResult(Y,Q)},updateTaskStatus:async(Y,X,J)=>{let G=await W.getTask(Y,Q);if(!G)throw new k(p.InvalidParams,`Task "${Y}" not found - it may have been cleaned up`);if(_4(G.status))throw new k(p.InvalidParams,`Cannot update task "${Y}" from terminal status "${G.status}" to "${X}". Terminal states (completed, failed, cancelled) cannot transition to other states.`);await W.updateTaskStatus(Y,X,J,Q);let $=await W.getTask(Y,Q);if($){let b=C6.parse({method:"notifications/tasks/status",params:$});if(await this.notification(b),_4($.status))this._cleanupTaskProgressHandler(Y)}},listTasks:(Y)=>{return W.listTasks(Y,Q)}}}}function bw(x){return x!==null&&typeof x==="object"&&!Array.isArray(x)}function zw(x,Q){let W={...x};for(let Y in Q){let X=Y,J=Q[X];if(J===void 0)continue;let G=W[X];if(bw(G)&&bw(J))W[X]={...G,...J};else W[X]=J}return W}var gq=Z8(RX(),1),hq=Z8(yq(),1);function Qk(){let x=new gq.default({strict:!1,validateFormats:!0,validateSchema:!1,allErrors:!0});return hq.default(x),x}class nX{constructor(x){this._ajv=x??Qk()}getValidator(x){let Q="$id"in x&&typeof x.$id==="string"?this._ajv.getSchema(x.$id)??this._ajv.compile(x):this._ajv.compile(x);return(W)=>{if(Q(W))return{valid:!0,data:W,errorMessage:void 0};else return{valid:!1,data:void 0,errorMessage:this._ajv.errorsText(Q.errors)}}}}class mX{constructor(x){this._server=x}requestStream(x,Q,W){return this._server.requestStream(x,Q,W)}createMessageStream(x,Q){let W=this._server.getClientCapabilities();if((x.tools||x.toolChoice)&&!W?.sampling?.tools)throw Error("Client does not support sampling tools capability.");if(x.messages.length>0){let Y=x.messages[x.messages.length-1],X=Array.isArray(Y.content)?Y.content:[Y.content],J=X.some((z)=>z.type==="tool_result"),G=x.messages.length>1?x.messages[x.messages.length-2]:void 0,$=G?Array.isArray(G.content)?G.content:[G.content]:[],b=$.some((z)=>z.type==="tool_use");if(J){if(X.some((z)=>z.type!=="tool_result"))throw Error("The last message must contain only tool_result content if any is present");if(!b)throw Error("tool_result blocks are not matching any tool_use from the previous message")}if(b){let z=new Set($.filter((B)=>B.type==="tool_use").map((B)=>B.id)),v=new Set(X.filter((B)=>B.type==="tool_result").map((B)=>B.toolUseId));if(z.size!==v.size||![...z].every((B)=>v.has(B)))throw Error("ids of tool_result blocks and tool_use blocks from previous message do not match")}}return this.requestStream({method:"sampling/createMessage",params:x},_6,Q)}elicitInputStream(x,Q){let W=this._server.getClientCapabilities(),Y=x.mode??"form";switch(Y){case"url":{if(!W?.elicitation?.url)throw Error("Client does not support url elicitation.");break}case"form":{if(!W?.elicitation?.form)throw Error("Client does not support form elicitation.");break}}let X=Y==="form"&&x.mode===void 0?{...x,mode:"form"}:x;return this.requestStream({method:"elicitation/create",params:X},H8,Q)}async getTask(x,Q){return this._server.getTask({taskId:x},Q)}async getTaskResult(x,Q,W){return this._server.getTaskResult({taskId:x},Q,W)}async listTasks(x,Q){return this._server.listTasks(x?{cursor:x}:void 0,Q)}async cancelTask(x,Q){return this._server.cancelTask({taskId:x},Q)}}function oq(x,Q,W){if(!x)throw Error(`${W} does not support task creation (required for ${Q})`);switch(Q){case"tools/call":if(!x.tools?.call)throw Error(`${W} does not support task creation for tools/call (required for ${Q})`);break;default:break}}function aq(x,Q,W){if(!x)throw Error(`${W} does not support task creation (required for ${Q})`);switch(Q){case"sampling/createMessage":if(!x.sampling?.createMessage)throw Error(`${W} does not support task creation for sampling/createMessage (required for ${Q})`);break;case"elicitation/create":if(!x.elicitation?.create)throw Error(`${W} does not support task creation for elicitation/create (required for ${Q})`);break;default:break}}class fX extends kY{constructor(x,Q){super(Q);if(this._serverInfo=x,this._loggingLevels=new Map,this.LOG_LEVEL_SEVERITY=new Map(k6.options.map((W,Y)=>[W,Y])),this.isMessageIgnored=(W,Y)=>{let X=this._loggingLevels.get(Y);return X?this.LOG_LEVEL_SEVERITY.get(W)<this.LOG_LEVEL_SEVERITY.get(X):!1},this._capabilities=Q?.capabilities??{},this._instructions=Q?.instructions,this._jsonSchemaValidator=Q?.jsonSchemaValidator??new nX,this.setRequestHandler(NY,(W)=>this._oninitialize(W)),this.setNotificationHandler(LY,()=>this.oninitialized?.()),this._capabilities.logging)this.setRequestHandler(AY,async(W,Y)=>{let X=Y.sessionId||Y.requestInfo?.headers["mcp-session-id"]||void 0,{level:J}=W.params,G=k6.safeParse(J);if(G.success)this._loggingLevels.set(X,G.data);return{}})}get experimental(){if(!this._experimental)this._experimental={tasks:new mX(this)};return this._experimental}registerCapabilities(x){if(this.transport)throw Error("Cannot register capabilities after connecting to transport");this._capabilities=zw(this._capabilities,x)}setRequestHandler(x,Q){let Y=T4(x)?.method;if(!Y)throw Error("Schema is missing a method literal");let X;if(R1(Y)){let G=Y;X=G._zod?.def?.value??G.value}else{let G=Y;X=G._def?.value??G.value}if(typeof X!=="string")throw Error("Schema method literal must be a string");if(X==="tools/call"){let G=async($,b)=>{let z=C4(K8,$);if(!z.success){let w=z.error instanceof Error?z.error.message:String(z.error);throw new k(p.InvalidParams,`Invalid tools/call request: ${w}`)}let{params:v}=z.data,B=await Promise.resolve(Q($,b));if(v.task){let w=C4(B8,B);if(!w.success){let V=w.error instanceof Error?w.error.message:String(w.error);throw new k(p.InvalidParams,`Invalid task creation result: ${V}`)}return w.data}let K=C4(p7,B);if(!K.success){let w=K.error instanceof Error?K.error.message:String(K.error);throw new k(p.InvalidParams,`Invalid tools/call result: ${w}`)}return K.data};return super.setRequestHandler(x,G)}return super.setRequestHandler(x,Q)}assertCapabilityForMethod(x){switch(x){case"sampling/createMessage":if(!this._clientCapabilities?.sampling)throw Error(`Client does not support sampling (required for ${x})`);break;case"elicitation/create":if(!this._clientCapabilities?.elicitation)throw Error(`Client does not support elicitation (required for ${x})`);break;case"roots/list":if(!this._clientCapabilities?.roots)throw Error(`Client does not support listing roots (required for ${x})`);break;case"ping":break}}assertNotificationCapability(x){switch(x){case"notifications/message":if(!this._capabilities.logging)throw Error(`Server does not support logging (required for ${x})`);break;case"notifications/resources/updated":case"notifications/resources/list_changed":if(!this._capabilities.resources)throw Error(`Server does not support notifying about resources (required for ${x})`);break;case"notifications/tools/list_changed":if(!this._capabilities.tools)throw Error(`Server does not support notifying of tool list changes (required for ${x})`);break;case"notifications/prompts/list_changed":if(!this._capabilities.prompts)throw Error(`Server does not support notifying of prompt list changes (required for ${x})`);break;case"notifications/elicitation/complete":if(!this._clientCapabilities?.elicitation?.url)throw Error(`Client does not support URL elicitation (required for ${x})`);break;case"notifications/cancelled":break;case"notifications/progress":break}}assertRequestHandlerCapability(x){if(!this._capabilities)return;switch(x){case"completion/complete":if(!this._capabilities.completions)throw Error(`Server does not support completions (required for ${x})`);break;case"logging/setLevel":if(!this._capabilities.logging)throw Error(`Server does not support logging (required for ${x})`);break;case"prompts/get":case"prompts/list":if(!this._capabilities.prompts)throw Error(`Server does not support prompts (required for ${x})`);break;case"resources/list":case"resources/templates/list":case"resources/read":if(!this._capabilities.resources)throw Error(`Server does not support resources (required for ${x})`);break;case"tools/call":case"tools/list":if(!this._capabilities.tools)throw Error(`Server does not support tools (required for ${x})`);break;case"tasks/get":case"tasks/list":case"tasks/result":case"tasks/cancel":if(!this._capabilities.tasks)throw Error(`Server does not support tasks capability (required for ${x})`);break;case"ping":case"initialize":break}}assertTaskCapability(x){aq(this._clientCapabilities?.tasks?.requests,x,"Client")}assertTaskHandlerCapability(x){if(!this._capabilities)return;oq(this._capabilities.tasks?.requests,x,"Server")}async _oninitialize(x){let Q=x.params.protocolVersion;return this._clientCapabilities=x.params.capabilities,this._clientVersion=x.params.clientInfo,{protocolVersion:BB.includes(Q)?Q:wY,capabilities:this.getCapabilities(),serverInfo:this._serverInfo,...this._instructions&&{instructions:this._instructions}}}getClientCapabilities(){return this._clientCapabilities}getClientVersion(){return this._clientVersion}getCapabilities(){return this._capabilities}async ping(){return this.request({method:"ping"},c7)}async createMessage(x,Q){if(x.tools||x.toolChoice){if(!this._clientCapabilities?.sampling?.tools)throw Error("Client does not support sampling tools capability.")}if(x.messages.length>0){let W=x.messages[x.messages.length-1],Y=Array.isArray(W.content)?W.content:[W.content],X=Y.some((b)=>b.type==="tool_result"),J=x.messages.length>1?x.messages[x.messages.length-2]:void 0,G=J?Array.isArray(J.content)?J.content:[J.content]:[],$=G.some((b)=>b.type==="tool_use");if(X){if(Y.some((b)=>b.type!=="tool_result"))throw Error("The last message must contain only tool_result content if any is present");if(!$)throw Error("tool_result blocks are not matching any tool_use from the previous message")}if($){let b=new Set(G.filter((v)=>v.type==="tool_use").map((v)=>v.id)),z=new Set(Y.filter((v)=>v.type==="tool_result").map((v)=>v.toolUseId));if(b.size!==z.size||![...b].every((v)=>z.has(v)))throw Error("ids of tool_result blocks and tool_use blocks from previous message do not match")}}if(x.tools)return this.request({method:"sampling/createMessage",params:x},OY,Q);return this.request({method:"sampling/createMessage",params:x},_6,Q)}async elicitInput(x,Q){switch(x.mode??"form"){case"url":{if(!this._clientCapabilities?.elicitation?.url)throw Error("Client does not support url elicitation.");let Y=x;return this.request({method:"elicitation/create",params:Y},H8,Q)}case"form":{if(!this._clientCapabilities?.elicitation?.form)throw Error("Client does not support form elicitation.");let Y=x.mode==="form"?x:{...x,mode:"form"},X=await this.request({method:"elicitation/create",params:Y},H8,Q);if(X.action==="accept"&&X.content&&Y.requestedSchema)try{let G=this._jsonSchemaValidator.getValidator(Y.requestedSchema)(X.content);if(!G.valid)throw new k(p.InvalidParams,`Elicitation response content does not match requested schema: ${G.errorMessage}`)}catch(J){if(J instanceof k)throw J;throw new k(p.InternalError,`Error validating elicitation response: ${J instanceof Error?J.message:String(J)}`)}return X}}}createElicitationCompletionNotifier(x,Q){if(!this._clientCapabilities?.elicitation?.url)throw Error("Client does not support URL elicitation (required for notifications/elicitation/complete)");return()=>this.notification({method:"notifications/elicitation/complete",params:{elicitationId:x}},Q)}async listRoots(x,Q){return this.request({method:"roots/list",params:x},IY,Q)}async sendLoggingMessage(x,Q){if(this._capabilities.logging){if(!this.isMessageIgnored(x.level,Q))return this.notification({method:"notifications/message",params:x})}}async sendResourceUpdated(x){return this.notification({method:"notifications/resources/updated",params:x})}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"})}}var rq=Symbol.for("mcp.completable");function yX(x){return!!x&&typeof x==="object"&&rq in x}function sq(x){return x[rq]?.complete}var dq;(function(x){x.Completable="McpCompletable"})(dq||(dq={}));var Wk=/^[A-Za-z0-9._-]{1,128}$/;function Yk(x){let Q=[];if(x.length===0)return{isValid:!1,warnings:["Tool name cannot be empty"]};if(x.length>128)return{isValid:!1,warnings:[`Tool name exceeds maximum length of 128 characters (current: ${x.length})`]};if(x.includes(" "))Q.push("Tool name contains spaces, which may cause parsing issues");if(x.includes(","))Q.push("Tool name contains commas, which may cause parsing issues");if(x.startsWith("-")||x.endsWith("-"))Q.push("Tool name starts or ends with a dash, which may cause parsing issues in some contexts");if(x.startsWith(".")||x.endsWith("."))Q.push("Tool name starts or ends with a dot, which may cause parsing issues in some contexts");if(!Wk.test(x)){let W=x.split("").filter((Y)=>!/[A-Za-z0-9._-]/.test(Y)).filter((Y,X,J)=>J.indexOf(Y)===X);return Q.push(`Tool name contains invalid characters: ${W.map((Y)=>`"${Y}"`).join(", ")}`,"Allowed characters are: A-Z, a-z, 0-9, underscore (_), dash (-), and dot (.)"),{isValid:!1,warnings:Q}}return{isValid:!0,warnings:Q}}function Xk(x,Q){if(Q.length>0){console.warn(`Tool name validation warning for "${x}":`);for(let W of Q)console.warn(` - ${W}`);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 gX(x){let Q=Yk(x);return Xk(x,Q.warnings),Q.isValid}class hX{constructor(x){this._mcpServer=x}registerToolTask(x,Q,W){let Y={taskSupport:"required",...Q.execution};if(Y.taskSupport==="forbidden")throw Error(`Cannot register task-based tool '${x}' with taskSupport 'forbidden'. Use registerTool() instead.`);return this._mcpServer._createRegisteredTool(x,Q.title,Q.description,Q.inputSchema,Q.outputSchema,Q.annotations,Y,Q._meta,W)}}class aX{constructor(x,Q){this._registeredResources={},this._registeredResourceTemplates={},this._registeredTools={},this._registeredPrompts={},this._toolHandlersInitialized=!1,this._completionHandlerInitialized=!1,this._resourceHandlersInitialized=!1,this._promptHandlersInitialized=!1,this.server=new fX(x,Q)}get experimental(){if(!this._experimental)this._experimental={tasks:new hX(this)};return this._experimental}async connect(x){return await this.server.connect(x)}async close(){await this.server.close()}setToolRequestHandlers(){if(this._toolHandlersInitialized)return;this.server.assertCanSetRequestHandler(g4(u7)),this.server.assertCanSetRequestHandler(g4(K8)),this.server.registerCapabilities({tools:{listChanged:!0}}),this.server.setRequestHandler(u7,()=>({tools:Object.entries(this._registeredTools).filter(([,x])=>x.enabled).map(([x,Q])=>{let W={name:x,title:Q.title,description:Q.description,inputSchema:(()=>{let Y=z8(Q.inputSchema);return Y?iY(Y,{strictUnions:!0,pipeStrategy:"input"}):Jk})(),annotations:Q.annotations,execution:Q.execution,_meta:Q._meta};if(Q.outputSchema){let Y=z8(Q.outputSchema);if(Y)W.outputSchema=iY(Y,{strictUnions:!0,pipeStrategy:"output"})}return W})})),this.server.setRequestHandler(K8,async(x,Q)=>{try{let W=this._registeredTools[x.params.name];if(!W)throw new k(p.InvalidParams,`Tool ${x.params.name} not found`);if(!W.enabled)throw new k(p.InvalidParams,`Tool ${x.params.name} disabled`);let Y=!!x.params.task,X=W.execution?.taskSupport,J="createTask"in W.handler;if((X==="required"||X==="optional")&&!J)throw new k(p.InternalError,`Tool ${x.params.name} has taskSupport '${X}' but was not registered with registerToolTask`);if(X==="required"&&!Y)throw new k(p.MethodNotFound,`Tool ${x.params.name} requires task augmentation (taskSupport: 'required')`);if(X==="optional"&&!Y&&J)return await this.handleAutomaticTaskPolling(W,x,Q);let G=await this.validateToolInput(W,x.params.arguments,x.params.name),$=await this.executeToolHandler(W,G,Q);if(Y)return $;return await this.validateToolOutput(W,$,x.params.name),$}catch(W){if(W instanceof k){if(W.code===p.UrlElicitationRequired)throw W}return this.createToolError(W instanceof Error?W.message:String(W))}}),this._toolHandlersInitialized=!0}createToolError(x){return{content:[{type:"text",text:x}],isError:!0}}async validateToolInput(x,Q,W){if(!x.inputSchema)return;let X=z8(x.inputSchema)??x.inputSchema,J=await V7(X,Q);if(!J.success){let G="error"in J?J.error:"Unknown error",$=q7(G);throw new k(p.InvalidParams,`Input validation error: Invalid arguments for tool ${W}: ${$}`)}return J.data}async validateToolOutput(x,Q,W){if(!x.outputSchema)return;if(!("content"in Q))return;if(Q.isError)return;if(!Q.structuredContent)throw new k(p.InvalidParams,`Output validation error: Tool ${W} has an output schema but no structured content was provided`);let Y=z8(x.outputSchema),X=await V7(Y,Q.structuredContent);if(!X.success){let J="error"in X?X.error:"Unknown error",G=q7(J);throw new k(p.InvalidParams,`Output validation error: Invalid structured content for tool ${W}: ${G}`)}}async executeToolHandler(x,Q,W){let Y=x.handler;if("createTask"in Y){if(!W.taskStore)throw Error("No task store provided.");let J={...W,taskStore:W.taskStore};if(x.inputSchema)return await Promise.resolve(Y.createTask(Q,J));else return await Promise.resolve(Y.createTask(J))}if(x.inputSchema)return await Promise.resolve(Y(Q,W));else return await Promise.resolve(Y(W))}async handleAutomaticTaskPolling(x,Q,W){if(!W.taskStore)throw Error("No task store provided for task-capable tool.");let Y=await this.validateToolInput(x,Q.params.arguments,Q.params.name),X=x.handler,J={...W,taskStore:W.taskStore},G=Y?await Promise.resolve(X.createTask(Y,J)):await Promise.resolve(X.createTask(J)),$=G.task.taskId,b=G.task,z=b.pollInterval??5000;while(b.status!=="completed"&&b.status!=="failed"&&b.status!=="cancelled"){await new Promise((B)=>setTimeout(B,z));let v=await W.taskStore.getTask($);if(!v)throw new k(p.InternalError,`Task ${$} not found during polling`);b=v}return await W.taskStore.getTaskResult($)}setCompletionRequestHandler(){if(this._completionHandlerInitialized)return;this.server.assertCanSetRequestHandler(g4(l7)),this.server.registerCapabilities({completions:{}}),this.server.setRequestHandler(l7,async(x)=>{switch(x.params.ref.type){case"ref/prompt":return IB(x),this.handlePromptCompletion(x,x.params.ref);case"ref/resource":return EB(x),this.handleResourceCompletion(x,x.params.ref);default:throw new k(p.InvalidParams,`Invalid completion reference: ${x.params.ref}`)}}),this._completionHandlerInitialized=!0}async handlePromptCompletion(x,Q){let W=this._registeredPrompts[Q.name];if(!W)throw new k(p.InvalidParams,`Prompt ${Q.name} not found`);if(!W.enabled)throw new k(p.InvalidParams,`Prompt ${Q.name} disabled`);if(!W.argsSchema)return b9;let X=T4(W.argsSchema)?.[x.params.argument.name];if(!yX(X))return b9;let J=sq(X);if(!J)return b9;let G=await J(x.params.argument.value,x.params.context);return eq(G)}async handleResourceCompletion(x,Q){let W=Object.values(this._registeredResourceTemplates).find((J)=>J.resourceTemplate.uriTemplate.toString()===Q.uri);if(!W){if(this._registeredResources[Q.uri])return b9;throw new k(p.InvalidParams,`Resource template ${x.params.ref.uri} not found`)}let Y=W.resourceTemplate.completeCallback(x.params.argument.name);if(!Y)return b9;let X=await Y(x.params.argument.value,x.params.context);return eq(X)}setResourceRequestHandlers(){if(this._resourceHandlersInitialized)return;this.server.assertCanSetRequestHandler(g4(i7)),this.server.assertCanSetRequestHandler(g4(C7)),this.server.assertCanSetRequestHandler(g4(T7)),this.server.registerCapabilities({resources:{listChanged:!0}}),this.server.setRequestHandler(i7,async(x,Q)=>{let W=Object.entries(this._registeredResources).filter(([X,J])=>J.enabled).map(([X,J])=>({uri:X,name:J.name,...J.metadata})),Y=[];for(let X of Object.values(this._registeredResourceTemplates)){if(!X.resourceTemplate.listCallback)continue;let J=await X.resourceTemplate.listCallback(Q);for(let G of J.resources)Y.push({...X.metadata,...G})}return{resources:[...W,...Y]}}),this.server.setRequestHandler(C7,async()=>{return{resourceTemplates:Object.entries(this._registeredResourceTemplates).map(([Q,W])=>({name:Q,uriTemplate:W.resourceTemplate.uriTemplate.toString(),...W.metadata}))}}),this.server.setRequestHandler(T7,async(x,Q)=>{let W=new URL(x.params.uri),Y=this._registeredResources[W.toString()];if(Y){if(!Y.enabled)throw new k(p.InvalidParams,`Resource ${W} disabled`);return Y.readCallback(W,Q)}for(let X of Object.values(this._registeredResourceTemplates)){let J=X.resourceTemplate.uriTemplate.match(W.toString());if(J)return X.readCallback(W,J,Q)}throw new k(p.InvalidParams,`Resource ${W} not found`)}),this._resourceHandlersInitialized=!0}setPromptRequestHandlers(){if(this._promptHandlersInitialized)return;this.server.assertCanSetRequestHandler(g4(k7)),this.server.assertCanSetRequestHandler(g4(_7)),this.server.registerCapabilities({prompts:{listChanged:!0}}),this.server.setRequestHandler(k7,()=>({prompts:Object.entries(this._registeredPrompts).filter(([,x])=>x.enabled).map(([x,Q])=>{return{name:x,title:Q.title,description:Q.description,arguments:Q.argsSchema?Gk(Q.argsSchema):void 0}})})),this.server.setRequestHandler(_7,async(x,Q)=>{let W=this._registeredPrompts[x.params.name];if(!W)throw new k(p.InvalidParams,`Prompt ${x.params.name} not found`);if(!W.enabled)throw new k(p.InvalidParams,`Prompt ${x.params.name} disabled`);if(W.argsSchema){let Y=z8(W.argsSchema),X=await V7(Y,x.params.arguments);if(!X.success){let $="error"in X?X.error:"Unknown error",b=q7($);throw new k(p.InvalidParams,`Invalid arguments for prompt ${x.params.name}: ${b}`)}let J=X.data,G=W.callback;return await Promise.resolve(G(J,Q))}else{let Y=W.callback;return await Promise.resolve(Y(Q))}}),this._promptHandlersInitialized=!0}resource(x,Q,...W){let Y;if(typeof W[0]==="object")Y=W.shift();let X=W[0];if(typeof Q==="string"){if(this._registeredResources[Q])throw Error(`Resource ${Q} is already registered`);let J=this._createRegisteredResource(x,void 0,Q,Y,X);return this.setResourceRequestHandlers(),this.sendResourceListChanged(),J}else{if(this._registeredResourceTemplates[x])throw Error(`Resource template ${x} is already registered`);let J=this._createRegisteredResourceTemplate(x,void 0,Q,Y,X);return this.setResourceRequestHandlers(),this.sendResourceListChanged(),J}}registerResource(x,Q,W,Y){if(typeof Q==="string"){if(this._registeredResources[Q])throw Error(`Resource ${Q} is already registered`);let X=this._createRegisteredResource(x,W.title,Q,W,Y);return this.setResourceRequestHandlers(),this.sendResourceListChanged(),X}else{if(this._registeredResourceTemplates[x])throw Error(`Resource template ${x} is already registered`);let X=this._createRegisteredResourceTemplate(x,W.title,Q,W,Y);return this.setResourceRequestHandlers(),this.sendResourceListChanged(),X}}_createRegisteredResource(x,Q,W,Y,X){let J={name:x,title:Q,metadata:Y,readCallback:X,enabled:!0,disable:()=>J.update({enabled:!1}),enable:()=>J.update({enabled:!0}),remove:()=>J.update({uri:null}),update:(G)=>{if(typeof G.uri<"u"&&G.uri!==W){if(delete this._registeredResources[W],G.uri)this._registeredResources[G.uri]=J}if(typeof G.name<"u")J.name=G.name;if(typeof G.title<"u")J.title=G.title;if(typeof G.metadata<"u")J.metadata=G.metadata;if(typeof G.callback<"u")J.readCallback=G.callback;if(typeof G.enabled<"u")J.enabled=G.enabled;this.sendResourceListChanged()}};return this._registeredResources[W]=J,J}_createRegisteredResourceTemplate(x,Q,W,Y,X){let J={resourceTemplate:W,title:Q,metadata:Y,readCallback:X,enabled:!0,disable:()=>J.update({enabled:!1}),enable:()=>J.update({enabled:!0}),remove:()=>J.update({name:null}),update:(b)=>{if(typeof b.name<"u"&&b.name!==x){if(delete this._registeredResourceTemplates[x],b.name)this._registeredResourceTemplates[b.name]=J}if(typeof b.title<"u")J.title=b.title;if(typeof b.template<"u")J.resourceTemplate=b.template;if(typeof b.metadata<"u")J.metadata=b.metadata;if(typeof b.callback<"u")J.readCallback=b.callback;if(typeof b.enabled<"u")J.enabled=b.enabled;this.sendResourceListChanged()}};this._registeredResourceTemplates[x]=J;let G=W.uriTemplate.variableNames;if(Array.isArray(G)&&G.some((b)=>!!W.completeCallback(b)))this.setCompletionRequestHandler();return J}_createRegisteredPrompt(x,Q,W,Y,X){let J={title:Q,description:W,argsSchema:Y===void 0?void 0:Lx(Y),callback:X,enabled:!0,disable:()=>J.update({enabled:!1}),enable:()=>J.update({enabled:!0}),remove:()=>J.update({name:null}),update:(G)=>{if(typeof G.name<"u"&&G.name!==x){if(delete this._registeredPrompts[x],G.name)this._registeredPrompts[G.name]=J}if(typeof G.title<"u")J.title=G.title;if(typeof G.description<"u")J.description=G.description;if(typeof G.argsSchema<"u")J.argsSchema=Lx(G.argsSchema);if(typeof G.callback<"u")J.callback=G.callback;if(typeof G.enabled<"u")J.enabled=G.enabled;this.sendPromptListChanged()}};if(this._registeredPrompts[x]=J,Y){if(Object.values(Y).some(($)=>{let b=$ instanceof D1?$._def?.innerType:$;return yX(b)}))this.setCompletionRequestHandler()}return J}_createRegisteredTool(x,Q,W,Y,X,J,G,$,b){gX(x);let z={title:Q,description:W,inputSchema:tq(Y),outputSchema:tq(X),annotations:J,execution:G,_meta:$,handler:b,enabled:!0,disable:()=>z.update({enabled:!1}),enable:()=>z.update({enabled:!0}),remove:()=>z.update({name:null}),update:(v)=>{if(typeof v.name<"u"&&v.name!==x){if(typeof v.name==="string")gX(v.name);if(delete this._registeredTools[x],v.name)this._registeredTools[v.name]=z}if(typeof v.title<"u")z.title=v.title;if(typeof v.description<"u")z.description=v.description;if(typeof v.paramsSchema<"u")z.inputSchema=Lx(v.paramsSchema);if(typeof v.outputSchema<"u")z.outputSchema=Lx(v.outputSchema);if(typeof v.callback<"u")z.handler=v.callback;if(typeof v.annotations<"u")z.annotations=v.annotations;if(typeof v._meta<"u")z._meta=v._meta;if(typeof v.enabled<"u")z.enabled=v.enabled;this.sendToolListChanged()}};return this._registeredTools[x]=z,this.setToolRequestHandlers(),this.sendToolListChanged(),z}tool(x,...Q){if(this._registeredTools[x])throw Error(`Tool ${x} is already registered`);let W,Y,X,J;if(typeof Q[0]==="string")W=Q.shift();if(Q.length>1){let $=Q[0];if(oX($)){if(Y=Q.shift(),Q.length>1&&typeof Q[0]==="object"&&Q[0]!==null&&!oX(Q[0]))J=Q.shift()}else if(typeof $==="object"&&$!==null){if(Object.values($).some((b)=>typeof b==="object"&&b!==null))throw Error(`Tool ${x} expected a Zod schema or ToolAnnotations, but received an unrecognized object`);J=Q.shift()}}let G=Q[0];return this._createRegisteredTool(x,void 0,W,Y,X,J,{taskSupport:"forbidden"},void 0,G)}registerTool(x,Q,W){if(this._registeredTools[x])throw Error(`Tool ${x} is already registered`);let{title:Y,description:X,inputSchema:J,outputSchema:G,annotations:$,_meta:b}=Q;return this._createRegisteredTool(x,Y,X,J,G,$,{taskSupport:"forbidden"},b,W)}prompt(x,...Q){if(this._registeredPrompts[x])throw Error(`Prompt ${x} is already registered`);let W;if(typeof Q[0]==="string")W=Q.shift();let Y;if(Q.length>1)Y=Q.shift();let X=Q[0],J=this._createRegisteredPrompt(x,void 0,W,Y,X);return this.setPromptRequestHandlers(),this.sendPromptListChanged(),J}registerPrompt(x,Q,W){if(this._registeredPrompts[x])throw Error(`Prompt ${x} is already registered`);let{title:Y,description:X,argsSchema:J}=Q,G=this._createRegisteredPrompt(x,Y,X,J,W);return this.setPromptRequestHandlers(),this.sendPromptListChanged(),G}isConnected(){return this.server.transport!==void 0}async sendLoggingMessage(x,Q){return this.server.sendLoggingMessage(x,Q)}sendResourceListChanged(){if(this.isConnected())this.server.sendResourceListChanged()}sendToolListChanged(){if(this.isConnected())this.server.sendToolListChanged()}sendPromptListChanged(){if(this.isConnected())this.server.sendPromptListChanged()}}var Jk={type:"object",properties:{}};function xN(x){return x!==null&&typeof x==="object"&&"parse"in x&&typeof x.parse==="function"&&"safeParse"in x&&typeof x.safeParse==="function"}function QN(x){return"_def"in x||"_zod"in x||xN(x)}function oX(x){if(typeof x!=="object"||x===null)return!1;if(QN(x))return!1;if(Object.keys(x).length===0)return!0;return Object.values(x).some(xN)}function tq(x){if(!x)return;if(oX(x))return Lx(x);if(!QN(x))throw Error("inputSchema must be a Zod schema or raw shape, received an unrecognized object");return x}function Gk(x){let Q=T4(x);if(!Q)return[];return Object.entries(Q).map(([W,Y])=>{let X=nv(Y),J=mv(Y);return{name:W,description:X,required:!J}})}function g4(x){let W=T4(x)?.method;if(!W)throw Error("Schema is missing a method literal");let Y=N7(W);if(typeof Y==="string")return Y;throw Error("Schema method literal must be a string")}function eq(x){return{completion:{values:x.slice(0,100),total:x.length,hasMore:x.length>100}}}var b9={completion:{values:[],hasMore:!1}};import YN from"node:process";class dX{append(x){this._buffer=this._buffer?Buffer.concat([this._buffer,x]):x}readMessage(){if(!this._buffer)return null;let x=this._buffer.indexOf(`
67
- `);if(x===-1)return null;let Q=this._buffer.toString("utf8",0,x).replace(/\r$/,"");return this._buffer=this._buffer.subarray(x+1),$k(Q)}clear(){this._buffer=void 0}}function $k(x){return UB.parse(JSON.parse(x))}function WN(x){return JSON.stringify(x)+`
68
- `}class rX{constructor(x=YN.stdin,Q=YN.stdout){this._stdin=x,this._stdout=Q,this._readBuffer=new dX,this._started=!1,this._ondata=(W)=>{this._readBuffer.append(W),this.processReadBuffer()},this._onerror=(W)=>{this.onerror?.(W)}}async start(){if(this._started)throw 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)}processReadBuffer(){while(!0)try{let x=this._readBuffer.readMessage();if(x===null)break;this.onmessage?.(x)}catch(x){this.onerror?.(x)}}async close(){if(this._stdin.off("data",this._ondata),this._stdin.off("error",this._onerror),this._stdin.listenerCount("data")===0)this._stdin.pause();this._readBuffer.clear(),this.onclose?.()}send(x){return new Promise((Q)=>{let W=WN(x);if(this._stdout.write(W))Q();else this._stdout.once("drain",Q)})}}function XN(x,Q,W){return x.toUpperCase()!=="GET"&&Q==="global"&&!W}function JN(x){let Q={name:x.name};if(x.appDescription!==void 0)Q.appDescription=x.appDescription;if(x.tokensBlock!==void 0)Q.tokensBlock=x.tokensBlock;if(x.surfaces!==void 0)Q.surfaces=x.surfaces;if(x.identity!==void 0)Q.identity=x.identity;if(x.platforms!==void 0)Q.platforms=x.platforms;if(x.proseSource!==void 0)Q.proseSource=x.proseSource;return Q}import{createHash as bk}from"node:crypto";import{existsSync as zk,readdirSync as sX,readFileSync as tX}from"node:fs";import{homedir as vk}from"node:os";import{fileURLToPath as GN}from"node:url";import{dirname as Bk,join as Ox,relative as wk,sep as Kk}from"node:path";var Hk=".figura-version";var bN="fig";function zN(x){let Q=[],W=(X)=>{for(let J of sX(X,{withFileTypes:!0})){let G=Ox(X,J.name);if(J.isDirectory())W(G);else if(J.isFile())Q.push(G)}};try{for(let X of sX(x,{withFileTypes:!0}))if(X.isDirectory()&&X.name===bN)W(Ox(x,X.name))}catch{return null}if(Q.length===0)return null;let Y=bk("sha256");for(let X of Q.sort()){let J=wk(x,X).split(Kk).join("/");Y.update(J),Y.update("\x00"),Y.update(tX(X)),Y.update("\x00")}return Y.digest("hex").slice(0,16)}function $N(x){try{return sX(x,{withFileTypes:!0}).some((Q)=>Q.isDirectory()&&zk(Ox(x,Q.name,"SKILL.md")))}catch{return!1}}function vN(){let x=[new URL("../skills/",import.meta.url),new URL("../../skills/",import.meta.url)].map((W)=>GN(W));for(let W of x)if($N(W))return W;let Q=GN(new URL("./",import.meta.url));for(let W=0;W<8;W++){let Y=Ox(Q,".claude","skills");if($N(Y))return Y;let X=Bk(Q);if(X===Q)break;Q=X}return null}function Vk(){let x=vN();return x?zN(x):null}function qk(){let x=vN();if(!x)return null;try{return JSON.parse(tX(Ox(x,"skills.json"),"utf8")).skills?.[bN]?.version??null}catch{return null}}function Nk(x){try{return tX(Ox(x,Hk),"utf8").trim()||null}catch{return null}}function Lk(x,Q){let W=(J)=>{let G=/^\D*(\d+)\.(\d+)\.(\d+)/.exec(J.trim());return G?[Number(G[1]),Number(G[2]),Number(G[3])]:null},Y=W(x),X=W(Q);if(!Y||!X)return!1;for(let J=0;J<3;J++){if(Y[J]>X[J])return!0;if(Y[J]<X[J])return!1}return!1}function Uk(x){let{stamp:Q,installedHash:W,bundledHash:Y,referenceVersion:X}=x;if(W==null)return"absent";if(Y!=null&&W===Y&&Q===X)return"pristine";if(Q!=null&&X!=null&&Lk(X,Q))return"stale";return"modified"}function Fk(x,Q=Ox(vk(),".claude","skills")){try{let W=Nk(Q),Y=zN(Q),X=Vk(),J=Uk({stamp:W,installedHash:Y,bundledHash:X,referenceVersion:qk()});return{version:W,hash:Y,status:J}}catch{return{version:null,hash:null,status:"absent"}}}function I3(x){return{channel:"mcp",mcpVersion:x,skill:Fk(x)}}function BN(x){if(x==="modified")return"⚠ your fig skill is MODIFIED (differs from figura-cli's shipped version) — run `figura install` to restore it";if(x==="stale")return"⚠ your fig skill is outdated (behind figura-cli) — run `figura install` to reinstall it";return null}import{promises as YJ}from"node:fs";import{homedir as XJ}from"node:os";import{join as JJ}from"node:path";var ik=604800000,Ck=21600000;function S3(x){try{let Q=new URL(x);return`${Q.protocol}//${Q.host}`.toLowerCase()}catch{return x.trim().toLowerCase().replace(/\/+$/,"")}}async function GJ(x,Q="latest",W){let Y=await Promise.resolve().then(() => (AN(),jN)),X=W!==void 0?W:Y.getUserAgent()??null;if(X){let J=Y.resolveCommand(X,"global",[`${x}@${Q}`]);if(J)return{command:`${J.command} ${J.args.join(" ")}`,generic:!1}}return{command:`npm i -g ${x}@${Q}`,generic:!0}}function $J(x){return x.generic?`Update with your package manager's global install, e.g. ${x.command}`:`Run: ${x.command}`}function IN(x){if(x==="figura-cli")return{pkg:"figura-cli",cacheFile:JJ(XJ(),".figura","update-check.json"),minHeader:"x-figura-min-cli",latestHeader:"x-figura-latest-cli",label:"figura",installPkg:"figura-cli"};return{pkg:"figura-mcp",cacheFile:JJ(XJ(),".figura","update-check-mcp.json"),minHeader:"x-figura-min-mcp",latestHeader:"x-figura-latest-mcp",label:"figura-mcp",installPkg:"figura-mcp"}}function Tk(x,Q,W){if(!Q.min&&!Q.latest)return null;let Y={...x},X=!1,J=(G)=>typeof G!=="number"||W-G>=Ck;if(Q.min&&(x.min!==Q.min||J(x.minAt)))Y.min=Q.min,Y.minAt=W,X=!0;if(Q.latest&&(x.latest!==Q.latest||J(x.latestAt)))Y.latest=Q.latest,Y.latestAt=W,X=!0;return X?Y:null}function ON(x,Q){return typeof x==="number"&&Q-x<ik}function bJ(x,Q,W){let Y=x.serverAdvice?.[Q];if(!Y)return{};return{min:ON(Y.minAt,W)?Y.min:void 0,latest:ON(Y.latestAt,W)?Y.latest:void 0}}function w9(x,Q){let W=(J)=>{let G=/^\D*(\d+)\.(\d+)\.(\d+)/.exec(J.trim());return G?[Number(G[1]),Number(G[2]),Number(G[3])]:null},Y=W(x),X=W(Q);if(!Y||!X)return!1;for(let J=0;J<3;J++){if(Y[J]>X[J])return!0;if(Y[J]<X[J])return!1}return!1}function kk(x){if(x.CI)return"ci";if(x.FIGURA_NO_UPDATE_NOTIFIER==="1"||x.NO_UPDATE_NOTIFIER==="1")return"opt-out";return null}function _k(x,Q,W,Y){return`⚠ ${x.label} ${Q} → ${W} available. ${Y}`}function uk(x,Q,W,Y){return`⚠ ${x.label} ${Q} is below the minimum supported ${W} — `+`some tools may fail. ${Y}`}function EN(x,Q,W){let Y=x.latest,X=bJ(x,Q,W).latest;if(Y&&X)return w9(X,Y)?X:Y;return Y??X}function pk(x,Q,W,Y,X=Date.now()){let J=bJ(W,Y,X).min;if(J&&w9(J,Q))return{level:"firm",target:J};let G=EN(W,Y,X);if(G&&w9(G,Q))return{level:"stale",target:G};return null}function lk(x,Q,W,Y){return Q.level==="firm"?`Your ${x.label} ${W} is below the minimum supported ${Q.target} — `+`some Figura tools may fail. Ask the user to update: ${Y}`:`${x.label} ${W} → ${Q.target} available. Ask the user to update: ${Y}`}async function SN(x){try{let Q=x.cache??await zJ(x.stream),W=pk(x.stream,x.current,Q,x.origin,x.now);if(!W)return null;let Y=$J(await GJ(x.stream.installPkg,"latest",x.agent));return lk(x.stream,W,x.current,Y)}catch{return null}}function PN(x,Q){let W=Q(x.minHeader)?.trim(),Y=Q(x.latestHeader)?.trim();return{min:W||void 0,latest:Y||void 0}}async function RN(x,Q,W,Y=Date.now()){try{if(!W.min&&!W.latest)return;let X=await zJ(x),J={...X.serverAdvice??{}},G=Tk(J[Q]??{},W,Y);if(!G)return;J[Q]=G,await nk(x,{...X,serverAdvice:J})}catch{}}async function zJ(x){try{let Q=JSON.parse(await YJ.readFile(x.cacheFile,"utf8"));return Q&&typeof Q==="object"?Q:{}}catch{return{}}}async function nk(x,Q){await YJ.mkdir(JJ(XJ(),".figura"),{recursive:!0,mode:448}),await YJ.writeFile(x.cacheFile,JSON.stringify(Q,null,2)+`
69
- `,{mode:384})}async function ZN(x,Q,W,Y=process.env,X=Date.now()){try{if(kk(Y))return;let J=await zJ(Q),G=bJ(J,W,X).min;if(G&&w9(G,x)){let b=$J(await GJ(Q.installPkg));process.stderr.write(uk(Q,x,G,b)+`
70
- `);return}let $=EN(J,W,X);if($&&w9($,x)){let b=$J(await GJ(Q.installPkg));process.stderr.write(_k(Q,x,$,b)+`
71
- `)}}catch{}}var yk=F.object({name:F.string(),hex:F.string().describe("3/4/6/8-digit hex, e.g. #1FB6A6 or #1FB6A6FF."),role:F.string().optional(),meaning:F.string().optional()}).passthrough(),gk=F.object({id:F.string().optional(),rule:F.string()}).passthrough(),hk=F.object({colors:F.array(yk).optional(),gradient:F.string().optional(),type:F.object({families:F.record(F.string()).optional(),ramp:F.array(F.number()).optional(),rules:F.string().optional()}).passthrough().optional(),spacing:F.array(F.number()).optional(),radius:F.array(F.number()).optional(),voice:F.object({nouns:F.array(F.string()).optional(),promise:F.string().optional(),lines:F.array(F.string()).optional(),tone:F.string().optional()}).passthrough().optional(),forbidden:F.array(gk).optional()}).passthrough(),vJ=F.object({components:F.array(F.object({name:F.string(),spec:F.string()}).passthrough()).optional(),icons:F.string().optional(),layout:F.string().optional(),surfaces:F.array(F.string()).optional(),bans:F.array(F.string()).optional(),tokensBlock:F.string().optional()}).passthrough(),ok=F.object({mobile:vJ.optional(),web:vJ.optional(),desktop:vJ.optional()}).passthrough(),ak="https://api.figura.so",dk="mcp",iN=wJ(pN(),".figura","config.json"),rk=wJ(".figura","config.json");async function CN(x){try{let Q=JSON.parse(await K9.readFile(x,"utf8"));if(Q&&typeof Q==="object")return Q}catch{}return{}}async function sk(x=process.cwd()){let Q=pN(),W=x;for(;;){if(W!==Q){let X=wJ(W,rk);try{return await K9.access(X),X}catch{}}let Y=fk(W);if(Y===W)return null;W=Y}}async function Z3(){let x=await sk(),Q=x?await CN(x):{},W=await CN(iN),Y={...W,...Q},X=process.env.FIGURA_TOKEN||Y.token||void 0,J=process.env.FIGURA_TOKEN?"env":Q.token?"project":W.token?"global":"none",G=(process.env.FIGURA_API_URL||Y.apiUrl||ak).replace(/\/+$/,"");return{token:X,apiUrl:G,team:Y.team,source:J,configPath:J==="project"?x:J==="global"?iN:null}}async function U0(x,Q={}){let W=await Z3(),Y=W.token;if(!Y)throw Error("No Figura token. Run `figura link` in this repo (or `figura login`, or set FIGURA_TOKEN).");let X=(Q.method??"GET").toUpperCase();if(XN(X,W.source,process.env.FIGURA_ALLOW_GLOBAL==="1"))throw Error(`this project isn't linked to a Figura team — the global credential${W.team?` (team '${W.team}')`:""} would receive this write. Ask the user to run \`figura link\` in this repo (or set FIGURA_ALLOW_GLOBAL=1 to use the global team deliberately).`);let J=`${W.apiUrl}${x.startsWith("/")?"":"/"}${x}`,G={Accept:"application/json",Authorization:`Bearer ${Y}`,"X-Figura-Source":dk},$;if(Q.body!==void 0)G["Content-Type"]="application/json",$=JSON.stringify(Q.body);let b=await o9.request({url:J,method:Q.method??"GET",headers:G,data:$,validateStatus:()=>!0,transformRequest:[(B)=>B],transformResponse:[(B)=>B]});{let B=b.headers,K=(w)=>{let V=B?.[w];return typeof V==="string"?V:void 0};RN(R3,S3(W.apiUrl),PN(R3,K))}let z=typeof b.data==="string"?b.data:"",v=void 0;if(z)try{v=JSON.parse(z)}catch{v=z}if(b.status<200||b.status>=300){let B=v&&typeof v==="object"&&v!==null&&"error"in v?String(v.error):typeof v==="string"&&v?v:b.statusText||`HTTP ${b.status}`;throw Error(`${B} (HTTP ${b.status})`)}return v}var TN=2500,tk=600000,ek=60000,kN=(x)=>new Promise((Q)=>setTimeout(Q,x));async function x_(x){let Q=Date.now(),W=null;for(;;){let Y;try{Y=await U0(`/v1/jobs/${encodeURIComponent(x)}`),W=null}catch(X){if(W??=Date.now(),Date.now()-W>=ek){let J=X instanceof Error?X.message:String(X);throw Error(`Lost contact with the Figura API while waiting for job ${x} (${J}). `+`The job may still complete — resume by checking GET /v1/jobs/${x} instead of regenerating.`)}await kN(TN);continue}if(Y.status==="done")return Y;if(Y.status==="error")throw Error(Y.error||"The generation job failed. Please retry.");if(Date.now()-Q>tk)throw Error(`Timed out waiting for job ${x} — it may still complete; `+`check GET /v1/jobs/${x} instead of regenerating.`);await kN(TN)}}function D0(x){return{content:[{type:"text",text:JSON.stringify(x,null,2)}]}}function P0(x){return{content:[{type:"text",text:x instanceof Error?x.message:String(x)}],isError:!0}}var _N=!1;async function H9(x){try{if(_N)return x;if(!x||typeof x!=="object"||Array.isArray(x))return x;let{apiUrl:Q}=await Z3(),W=await SN({stream:R3,current:S8,origin:S3(Q)});if(!W)return x;return _N=!0,{...x,notice:W}}catch{return x}}function P3(x,Q){if(!x||typeof x!=="object"||Array.isArray(x))return x;let W=BN(Q);if(!W)return x;return{...x,skillWarning:W}}var E8=()=>F.string().optional().describe("Product area / surface the fig belongs to, e.g. 'dashboard', 'settings', 'onboarding'. Free text."),V9=["portrait","landscape","both"],i3=["single","compare","variations"],{version:S8,name:Q_}=(()=>{try{let x=JSON.parse(mk(new URL("../package.json",import.meta.url),"utf8"));return{version:typeof x.version==="string"?x.version:"0.0.0",name:typeof x.name==="string"?x.name:void 0}}catch{return{version:"0.0.0"}}})(),R3=IN(Q_),I0=new aX({name:"figura",version:S8});I0.registerTool("figura_whoami",{title:"Figura: whoami",description:"Return the identity (team, actor, scopes) for the configured Figura token, plus `binding` — which config tier supplied it (env | project | global). A `global` binding means this project is not linked to a team and writes will be refused; ask the user to run `figura link` in the repo.",inputSchema:{}},async()=>{try{let x=await U0("/v1/whoami"),{source:Q,configPath:W}=await Z3();return D0(await H9({...x,binding:{source:Q,configPath:W}}))}catch(x){return P0(x)}});I0.registerTool("figura_set_brand",{title:"Figura: set brand profile",description:'Set (upsert) the team brand profile that the fig generator renders against. Use this to "introduce a repo to Figura": scan the codebase for its design system, synthesize the brand, then push it here. `name` is required. PREFERRED — send a STRUCTURED brand: `identity` (shared colors/gradient/type/spacing/radius/voice/forbidden) + `platforms` (per-platform surfaces, keys mobile|web|desktop) — this makes the brand structured + addressable (is_structured=true). LEGACY/fallback — send prose: `tokensBlock` (freeform design-token reference) + `surfaces` (the product\'s own key areas). `appDescription` is a one-clause product summary. This is a partial merge — fields you omit keep their saved value; a structured write clears the dormant prose columns and a prose write downgrades to legacy. Editing the team brand — confirm with the user before calling.',inputSchema:{name:F.string().describe("Brand / app name (required)."),appDescription:F.string().optional().describe("One clause on what the product is + who it is for."),identity:hk.optional().describe("STRUCTURED shared identity (platform-agnostic): { colors:[{name,hex,role?,meaning?}], gradient?, type?:{families?:{slot:font},ramp?:number[],rules?}, spacing?:number[], radius?:number[], voice?:{nouns?,promise?,lines?,tone?}, forbidden?:[{id?,rule}] }. hex is 3/4/6/8 digits. Sending this makes the brand STRUCTURED (is_structured=true). Validated server-side."),platforms:ok.optional().describe("STRUCTURED per-platform surfaces — a map keyed by mobile|web|desktop; include ONLY the platforms the product targets: { <platform>: { components?:[{name,spec}], icons?, layout?, surfaces?:string[], bans?:string[], tokensBlock? } }. `tokensBlock` here is a per-platform escape hatch for guidance that does not fit a structured field."),proseSource:F.string().optional().describe(`The human-readable freeform description this structured brand was authored from — stored as the editable source shown in the web brand editor; NOT used by generation. Send it alongside a structured write so a skill/CLI/MCP-authored brand still seeds the web editor's "Author from a description" textarea (a repo scan should pass the prose it synthesized the brand from; a prose→structured upgrade should pass the original prose).`),tokensBlock:F.string().optional().describe("LEGACY prose fallback: freeform plain-text design-token reference (colors + hex + role, type scale + faces, spacing, gradient, voice/conventions). Prefer `identity`/`platforms`. Injected verbatim into the fig-generation prompt."),surfaces:F.array(F.string()).optional().describe(`LEGACY prose fallback: the product's own key areas/sections (e.g. ["Feed", "Settings", "Checkout"]) — read from the repo's real navigation/routes. For a structured brand put surfaces under each platform instead. Pass [] to clear.`)}},async(x)=>{try{return D0(await U0("/brand",{method:"PUT",body:JN(x)}))}catch(Q){return P0(Q)}});I0.registerTool("figura_brand_schema",{title:"Figura: brand schema",description:"Return the JSON Schema for the STRUCTURED brand — the ONE authority (derived server-side from the zod schema PUT /brand validates). Fetch this BEFORE synthesizing a brand for figura_set_brand's `identity`/`platforms`, and author against it so the brand validates first try (strict keys; hex 3/4/6/8 digits; platform keys mobile|web|desktop; no blank array entries). Read-only. Returns { schema }.",inputSchema:{}},async()=>{try{return D0(await U0("/v1/brand/schema"))}catch(x){return P0(x)}});var W_={png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",webp:"image/webp",avif:"image/avif",svg:"image/svg+xml"},BJ=5242880;function uN(x){let Q=x.split(/[?#]/)[0].split(".").pop()?.toLowerCase()??"";return W_[Q]}async function lN(x,Q){let W,Y=Q;if(/^https?:\/\//i.test(x)){let X=await o9.get(x,{responseType:"arraybuffer",maxContentLength:BJ,timeout:30000});if(W=Buffer.from(X.data).toString("base64"),!Y){let J=String(X.headers["content-type"]??"").split(";")[0].trim().toLowerCase();Y=J.startsWith("image/")?J:uN(x)}}else{let{size:X}=await K9.stat(x);if(X>BJ)throw Error(`'${x}' is ${(X/1048576).toFixed(1)}MB — over the ${BJ/1048576}MB asset limit.`);if(W=(await K9.readFile(x)).toString("base64"),!Y)Y=uN(x)}if(!Y)throw Error(`Could not determine an image content-type for '${x}' — pass contentType (e.g. image/png).`);return{data:W,contentType:Y}}async function Y_(x,Q){let{data:W,contentType:Y}=await lN(x,Q),X=await U0("/v1/assets",{method:"POST",body:{data:W,contentType:Y}});if(!X||typeof X.url!=="string")throw Error("Asset upload did not return a URL.");return X.url}var nN=()=>F.array(F.object({source:F.string().describe("The image — a local file path or an http(s) URL (e.g. a screenshot)."),match:F.string().optional().describe('Exact string in the HTML to replace with the hosted URL (defaults to `source` — i.e. write <img src="<source>"> in the HTML).')})).optional().describe("Images to attach: each is uploaded to durable figura hosting (stable non-expiring URL, allowed by the fig CSP) and substituted into the HTML in place of `match`/`source`. Use for real screenshots/photos/logos instead of base64 data-URIs (HTML size cap) or external URLs (expire/CSP-blocked).");async function mN(x,Q){if(!Q?.length)return{html:x,uploaded:[]};let W=x,Y=[];for(let X of Q){let J=X.match??X.source;if(!W.includes(J))throw Error(`images: '${J}' does not occur in the html — reference it (e.g. <img src="${J}">) so it can be swapped for the hosted URL, or set 'match'.`);let G=await Y_(X.source);W=W.split(J).join(G),Y.push({source:X.source,url:G})}return{html:W,uploaded:Y}}function fN(x,Q){if(!Q.length)return x;if(x&&typeof x==="object"&&!Array.isArray(x))return{...x,assets:Q};return{result:x,assets:Q}}I0.registerTool("figura_create_fig",{title:"Figura: create fig",description:"Create a new visualization from an HTML document — this HOSTS it (the create IS the hosting; there is no separate \"land it in Figura\" step). Every create returns `viewUrl`: ALWAYS a link you can open for approval, whether or not the fig is published — the public share url once published, else a team-scoped viewer link only signed-in teammates can open. The fig lands as a workspace DRAFT (`status: 'draft'`): hosted and viewable, visible to its author, but NOT in the team library and silent for teammates — iterate freely without claiming the team's attention, then COMMIT only the session's final recommendation (`commit: true` on that final create/revise, or figura_commit_fig). Do NOT pass publish:true just to get something viewable — omit it (default false) so the fig lands team-private, open `viewUrl` for review, and only publish when the human wants a link they can share outside the team (figura_publish_fig, once approved). The response also carries `brandWarnings` — a deterministic (no-LLM) colors/fonts/radii/spacing diff against the team's brand tokens, WARN-only (never blocks the create). If it comes back non-empty, read it and consider a figura_revise_fig call that binds the missing tokens before telling the user you're done. To include REAL images (screenshots/photos/logos), pass them via `images` — they are uploaded to durable figura hosting and their stable URLs substituted into the HTML. TIP — injected components: if your HTML shows phone frames (a compare/multi-screen mock), wrap each state in <div class=\"fig-device portrait|landscape\"><div class=\"fig-screen\">…</div><div class=\"fig-di\"></div><div class=\"fig-homebar\"></div></div> — Figura injects accurate iPhone frame CSS at save, BEFORE your <style>, so you normally leave those classes alone; if you do style them your rule wins by cascade (the frame still works), but to shrink frames for an overview grid wrap each frame in the injected `.fig-mini` wrapper (e.g. <div class=\"fig-mini\" style=\"--fig-scale:.34\"> … the .fig-device block … </div>) — it scales the device with transform and reserves the scaled layout box — rather than re-declaring .fig-device width/height or adding transform: scale() yourself (which fights the injected geometry), and never CSS zoom (it leaks unzoomed width into horizontal overflow). Same injection applies to an iOS status bar (<div class=\"fig-statusbar\" data-time=\"9:41\"></div>), a compare control bar (.fig-controls/.fig-seg), and the .frame-web browser window.",inputSchema:{html:F.string().describe("The full HTML document for the visualization."),images:nN(),title:F.string().optional().describe("Title (otherwise derived from the HTML)."),description:F.string().optional(),area:E8(),tags:F.array(F.string()).optional(),orientation:F.enum(V9).optional(),mode:F.enum(i3).optional(),model:F.string().optional().describe("Model attribution."),device:F.string().optional().describe("Catalog iPhone id the fig targets (e.g. 'iphone-16', 'iphone-17-pro', 'iphone-se-3') — keys the injected frame/safe-area geometry."),issue:F.number().optional().describe("Linked issue number."),publish:F.boolean().optional().describe("Publish to a shareable public URL on create (requires a paid plan). Default false — the response's `viewUrl` is already open-able team-privately, so only set this when the human explicitly wants a link they can share outside the team. Share link ONLY — does not commit the fig to the team library (that's `commit`)."),commit:F.boolean().optional().describe("Commit to the team library on create (sends status: 'published'). Default false — the fig lands as a workspace DRAFT: hosted + viewable via `viewUrl`, visible to its author, but not in the team library and silent for teammates. Set true ONLY when this write is the session's final recommendation (the fig the user asked for / signed off on); explorations and intermediate iterations stay drafts. Committing later: figura_commit_fig."),prompt:F.string().optional().describe("OPTIONAL: the brief that produced this HTML, if there was one — you wrote the HTML yourself, so Figura never sees a prompt unless you pass it here. Stored on the fig (DB-only, never stamped into the HTML), and returned by figura_get_fig — lets teammates see 'why' this fig exists.")}},async(x)=>{try{let{html:Q,uploaded:W}=await mN(x.html,x.images),Y={html:Q};for(let J of["title","description","area","tags","orientation","mode","model","device","issue","publish","prompt"])if(x[J]!==void 0)Y[J]=x[J];if(x.commit)Y.status="published";let X=I3(S8);return Y.toolchain=X,D0(P3(await H9(fN(await U0("/v1/figs",{method:"POST",body:Y}),W)),X.skill.status))}catch(Q){return P0(Q)}});var X_=["single","compare","variations","overview-focus","document"];I0.registerTool("figura_compose_fig",{title:"Figura: compose fig",description:"PREFERRED way to build a device fig. You write ONLY each screen's CONTENT (the markup inside the phone) + typed params; Figura owns the STRUCTURE — the iPhone frame, the Dynamic Island/notch/home bar, the exact catalog artboard geometry, the REAL safe-area insets, and the composition (grid/diptych/overview). This means the parts that used to drift every few figs — hand-rolled artboards, guessed `--fig-safe-top:59px`, a forgotten `data-device` so no safe machinery stamped — are correct-by-construction: you never write them. Pass `layout` + an ARRAY of `screens`. For every DEVICE layout (single/compare/variations/overview-focus) each screen REQUIRES `device` (a catalog id like 'iphone-16' — fetch figura_fig_devices), `orientation` ('portrait'|'landscape'), and `safeZone` ('respect' = Figura pads your content to the device's real safe insets; 'ignore' = edge-to-edge splash/hero). Each screen's `html` is CONTENT ONLY — do NOT draw a frame, a bezel, a status bar, or safe padding; do NOT set `--fig-safe-*`; do NOT wrap in `.fig-device`. Style your content with brand tokens via `sharedCss` (ONE stylesheet all screens share) + optional per-screen `css`. Layouts: `single` (one frame), `compare` (as-is → proposed diptych — pass label per screen), `variations` (responsive grid + status chips), `overview-focus` (CSS overview⇄focus toggle for arguing a redesign), `document` (NO device framing — brand/overview figs; screens need no device/orientation/safeZone). Lands EXACTLY like figura_create_fig (workspace DRAFT, returns `viewUrl` + `brandWarnings` + `warnings`; commit the session's final pick). For a `document`/exotic hand-authored fig where you need full control of the HTML, use figura_create_fig instead.",inputSchema:{layout:F.enum(X_).describe("The composition Figura emits."),title:F.string().optional().describe("Fig title (else derived from the HTML)."),description:F.string().optional(),area:E8(),tags:F.array(F.string()).optional(),orientation:F.enum(V9).optional().describe('Fig-level orientation for the persisted row (may be "both").'),device:F.string().optional().describe("Fig-level default catalog device (per-screen `device` still keys each frame)."),sharedCss:F.string().optional().describe("ONE stylesheet ALL screens share — put brand tokens + shared classes here."),screens:F.array(F.object({html:F.string().describe("SCREEN CONTENT markup only — no frame, no bezel, no safe padding."),css:F.string().optional().describe("Optional per-screen content styles (appended unscoped)."),device:F.string().optional().describe("Catalog device id (e.g. 'iphone-16'). REQUIRED for device layouts."),orientation:F.enum(["portrait","landscape"]).optional().describe("REQUIRED for device layouts."),safeZone:F.enum(["respect","ignore"]).optional().describe("REQUIRED for device layouts. 'respect' pads to the real catalog safe insets; 'ignore' is edge-to-edge."),label:F.string().optional().describe("Chrome label (compare/variations chip, focus pill).")})).describe("The screens to compose. One for `single`; two for a `compare` diptych; N for variations/overview-focus/document."),model:F.string().optional().describe("Model attribution."),issue:F.number().optional().describe("Linked issue number."),publish:F.boolean().optional().describe("Publish to a shareable public URL on compose (requires a paid plan). Default false."),commit:F.boolean().optional().describe("Commit to the team library (sends status: 'published'). Default false — lands a workspace draft."),prompt:F.string().optional().describe("OPTIONAL brief that produced this fig (DB-only).")}},async(x)=>{try{let Q={layout:x.layout,screens:x.screens};for(let Y of["title","description","area","tags","orientation","device","sharedCss","model","issue","publish","prompt"])if(x[Y]!==void 0)Q[Y]=x[Y];if(x.commit)Q.status="published";let W=I3(S8);return Q.toolchain=W,D0(P3(await H9(await U0("/v1/figs/compose",{method:"POST",body:Q})),W.skill.status))}catch(Q){return P0(Q)}});I0.registerTool("figura_upload_asset",{title:"Figura: upload asset",description:"Upload a durable image asset and get back a STABLE, figura-hosted URL that never expires — use it in a fig's <img src> instead of a base64 data-URI (bloats the HTML past the publish size) or an external URL that expires (Instagram/CDN signed links). The fig CSP allows figura-hosted images. Provide `path` (a local image file), `url` (an http(s) image to fetch and re-host), or `data` (base64 bytes) + `contentType`. Accepts png/jpeg/gif/webp/avif/svg, up to 5MB. Returns `{ url }`.",inputSchema:{path:F.string().optional().describe("Local path to an image file to upload (content-type inferred from the extension)."),url:F.string().optional().describe("http(s) URL of an image to fetch and re-host (alternative to `path`) — use for expiring/signed source URLs so the fig keeps rendering after they die."),data:F.string().optional().describe("Base64-encoded image bytes (alternative to `path`/`url`). Requires `contentType`."),contentType:F.string().optional().describe("MIME type, e.g. image/png. Required with `data`; inferred from the extension/response for `path`/`url`.")}},async(x)=>{try{let Q=x.path??x.url;if(Q){let{data:W,contentType:Y}=await lN(Q,x.contentType);return D0(await U0("/v1/assets",{method:"POST",body:{data:W,contentType:Y}}))}if(!x.data)throw Error("Provide `path` (a local image file), `url` (an http(s) image), or `data` (base64 bytes).");if(!x.contentType)throw Error("`contentType` is required with `data` — e.g. image/png.");return D0(await U0("/v1/assets",{method:"POST",body:{data:x.data,contentType:x.contentType}}))}catch(Q){return P0(Q)}});I0.registerTool("figura_generate_fig",{title:"Figura: generate fig",description:"Generate a new fig server-side from a natural-language brief, then persist it — this HOSTS it (the create IS the hosting). The engine runs Figura's on-brand generation — you do NOT write the HTML; just describe the screen. SPENDS TEAM CREDITS: only use when the user explicitly opts for a server render; otherwise default to writing the HTML yourself and landing it with figura_create_fig (free, uses the calling model). Runs as an async server job; this call polls until the fig lands (typically 30–90s). Returns the created fig (id, slug) and `viewUrl` — ALWAYS a link you can open for approval (a team-scoped viewer when unpublished, the public share url once published). Like figura_create_fig, the generated fig lands as a workspace DRAFT — not in the team library, silent for teammates — commit the session's final pick with figura_commit_fig. Requires an active paid subscription.",inputSchema:{prompt:F.string().describe("A natural-language brief describing the screen/UI to generate."),area:E8(),orientation:F.enum(V9).optional(),mode:F.enum(i3).optional(),platform:F.enum(["mobile","web"]).optional().describe("Output platform: 'mobile' (iPhone frame) or 'web' (browser frame). When omitted, the engine INFERS it from the brief — a desktop/web/browser/landing-page/dashboard brief renders web, an iPhone/mobile/app-screen brief renders mobile — falling back to mobile only when neither is signalled. Pass this to force a platform regardless of the wording."),device:F.string().optional().describe("Catalog iPhone id to target (e.g. 'iphone-16', 'iphone-17-pro', 'iphone-se-3'). Mobile only; default iphone-16."),title:F.string().optional().describe("Title (otherwise derived from the generated HTML)."),fidelity:F.enum(["fast","high"]).optional().describe("Generation fidelity (default fast)."),publish:F.boolean().optional().describe("Publish to a shareable public URL on create (requires a paid plan). Default false — the response's `viewUrl` is already open-able team-privately, so only set this when the human explicitly wants a link they can share outside the team.")}},async(x)=>{try{let Q={prompt:x.prompt};for(let X of["area","orientation","mode","platform","device","title","publish"])if(x[X]!==void 0)Q[X]=x[X];if(x.fidelity!==void 0)Q.model=x.fidelity;let W=I3(S8);Q.toolchain=W,Q.async=!0;let Y=await U0("/v1/figs/generate",{method:"POST",body:Q});if(Y&&typeof Y==="object"&&typeof Y.jobId==="string"){let X=await x_(Y.jobId),J=X.result??{};return D0(P3(await H9(J.fig??X.result),W.skill.status))}return D0(P3(await H9(Y),W.skill.status))}catch(Q){return P0(Q)}});I0.registerTool("figura_fig_scaffold",{title:"Figura: fig scaffold",description:"Return the CANONICAL fig authoring scaffold — the exact system prompt Figura injects when it renders a fig server-side (design rules + exemplars + accent hints + your team's composed brand + the component/device kit context), composed for a target (platform/device/area/mode/orientation). USE THIS on the hand-build path (before writing a fig's HTML with figura_create_fig): author against this scaffold instead of a hand-maintained copy of the guidance, so your fig follows the SAME rules + brand the server would. Read-only — no fig is created, no credits are spent. Returns { scaffold, platform, mode, orientation, area, device, brand }.",inputSchema:{platform:F.enum(["mobile","web"]).optional().describe("Target platform: 'mobile' (iPhone frame, default) or 'web' (browser frame)."),device:F.string().optional().describe("Catalog iPhone id (e.g. 'iphone-16', 'iphone-17-pro', 'iphone-se-3'). Mobile only; default iphone-16."),area:E8(),orientation:F.enum(V9).optional(),mode:F.enum(i3).optional()}},async(x)=>{try{let Q=new URLSearchParams;for(let Y of["platform","device","area","orientation","mode"])if(x[Y]!==void 0)Q.set(Y,String(x[Y]));let W=Q.toString();return D0(await U0(`/v1/fig/scaffold${W?`?${W}`:""}`))}catch(Q){return P0(Q)}});I0.registerTool("figura_fig_devices",{title:"Figura: fig devices",description:"Return the CANONICAL framed-device catalog — every valid `data-device` id plus its per-device geometry (logical dims portrait/landscape, safe-area insets, cutout island|notch|none, corner radius). USE THIS when authoring a CANVAS COMPOSITION fig that frames a specific phone in-fig (a `.fig-device` element with `data-device` set): pick a real id from here instead of guessing, since an unknown data-device silently gets NO frame. Read-only — no fig is created, no credits are spent. Returns { devices, default }.",inputSchema:{}},async()=>{try{return D0(await U0("/v1/fig/devices"))}catch(x){return P0(x)}});I0.registerTool("figura_revise_fig",{title:"Figura: revise fig",description:"Create a new revision (version) of an existing fig from updated HTML — this HOSTS it, same as create. Returns the new fig (id, slug, version) and `viewUrl` — ALWAYS a link to open and re-review. The revision lands as a workspace DRAFT regardless of the parent's status — not in the team library, silent for teammates — so iterate freely; when a revision is the session's final agreed version, commit it (`commit: true` on that call, or figura_commit_fig). Publishing is NOT inherited from the fig being revised: the new revision defaults to unpublished (a team-scoped viewer `viewUrl`) even if the fig it revises is currently live — the existing public link keeps serving the OLD version until you pass `publish: true` on THIS call, which republishes at the SAME stable link (same publicId across the chain). The new version joins the original fig's chain — it does not replace it in place. Use list_revisions for the chain (rootFig + every version). The response also carries `brandWarnings` — a deterministic (no-LLM) colors/fonts/radii/spacing diff against the team's brand tokens, WARN-only. If it comes back non-empty, consider one more revision that binds the missing tokens. To include REAL images (screenshots/photos/logos), pass them via `images` — uploaded to durable figura hosting, stable URLs substituted into the HTML.",inputSchema:{id:F.string().describe("The fig to revise — its id (`fig_…`), a UUID, a share link/URL, or its publicId."),html:F.string().describe("The full updated HTML document."),images:nN(),title:F.string().optional().describe("Title (otherwise derived from the HTML)."),description:F.string().optional(),area:F.string().optional().describe("Product area / surface; free text. Inherited from the parent if omitted."),tags:F.array(F.string()).optional(),orientation:F.enum(V9).optional().describe("Inherited from the parent if omitted."),mode:F.enum(i3).optional(),model:F.string().optional().describe("Model attribution."),issue:F.number().optional().describe("Linked issue number."),publish:F.boolean().optional().describe("Publish the new revision to a shareable public URL (requires a paid plan). Default false — the response's `viewUrl` is already open-able team-privately. If the fig being revised is ALREADY published, pass true here too or its public link keeps serving the prior version. Share link ONLY — does not commit the revision to the team library (that's `commit`)."),commit:F.boolean().optional().describe("Commit this revision to the team library (sends status: 'published'). Default false — the revision lands as a workspace DRAFT even when the fig it revises is committed. Set true ONLY when this revision is the session's final agreed version; intermediate iterations stay drafts. Committing later: figura_commit_fig."),prompt:F.string().optional().describe("OPTIONAL: the brief/ask that produced this revision, if there was one. Stored on the fig (DB-only, never stamped into the HTML), and returned by figura_get_fig.")}},async(x)=>{try{let{html:Q,uploaded:W}=await mN(x.html,x.images),Y={html:Q};for(let X of["title","description","area","tags","orientation","mode","model","issue","publish","prompt"])if(x[X]!==void 0)Y[X]=x[X];if(x.commit)Y.status="published";return D0(fN(await U0(`/v1/figs/${encodeURIComponent(x.id)}/revise`,{method:"POST",body:Y}),W))}catch(Q){return P0(Q)}});I0.registerTool("figura_list_revisions",{title:"Figura: list revisions",description:"List the full revision chain for a fig (all versions sharing a root), oldest to newest.",inputSchema:{id:F.string().describe("Any fig in the chain — its id (`fig_…`), a UUID, share link/URL, or publicId.")}},async(x)=>{try{return D0(await U0(`/v1/figs/${encodeURIComponent(x.id)}/revisions`))}catch(Q){return P0(Q)}});I0.registerTool("figura_commit_fig",{title:"Figura: commit fig",description:"Commit a fig to the team library (status draft → published). Machine-created figs land as workspace DRAFTS — hosted, viewable via `viewUrl`, visible to their author, but NOT in the team library and silent for teammates. Committing is the explicit act that puts one in the team library and notifies the team (digest-batched) — so commit ONLY the session's final recommendation (the fig the user asked for / signed off on), never every exploration or intermediate iteration. If the final fig is one you're about to create/revise anyway, prefer `commit: true` on that call over a separate commit here. Orthogonal to figura_publish_fig (the public share link): a shared draft's URL resolves fine, and committing creates no link. Idempotent. Pass `uncommit: true` to reverse it (published → draft; the share link is untouched). Returns { id, status, committed, alreadyCommitted, viewUrl }.",inputSchema:{id:F.string().describe("The fig to commit — its id (`fig_…`), a UUID, a share link/URL, or its publicId."),uncommit:F.boolean().optional().describe("Set true to uncommit: the fig leaves the team library back to an author-visible workspace draft. Defaults to false (commit).")}},async(x)=>{try{return D0(await U0(`/v1/figs/${encodeURIComponent(x.id)}/${x.uncommit?"uncommit":"commit"}`,{method:"POST",body:{}}))}catch(Q){return P0(Q)}});I0.registerTool("figura_publish_fig",{title:"Figura: publish fig",description:"Publish (or unpublish) an existing fig to its shareable public URL. The fig is ALREADY hosted and viewable team-privately without this (figura_create_fig/figura_revise_fig's `viewUrl`) — only call this once the human wants a link they can share outside the team. Share link ONLY — it does not put the fig in the team library (that's figura_commit_fig; a shared draft's URL resolves fine). Requires a paid plan. Returns { isPublic, url, publicId, viewUrl }.",inputSchema:{id:F.string().describe("The fig to publish — its id (`fig_…`), a UUID, a share link/URL, or its publicId."),isPublic:F.boolean().optional().describe("Set false to unpublish (make private). Defaults to true (publish).")}},async(x)=>{try{let Q={};if(x.isPublic!==void 0)Q.isPublic=x.isPublic;return D0(await U0(`/v1/figs/${encodeURIComponent(x.id)}/publish`,{method:"POST",body:Q}))}catch(Q){return P0(Q)}});I0.registerTool("figura_list_figs",{title:"Figura: list figs",description:"List visualizations for the team, optionally filtered by area or tag.",inputSchema:{area:E8(),tag:F.string().optional(),limit:F.number().optional(),cursor:F.string().optional()}},async(x)=>{try{let Q=new URLSearchParams;if(x.area)Q.set("area",x.area);if(x.tag)Q.set("tag",x.tag);if(x.limit!==void 0)Q.set("limit",String(x.limit));if(x.cursor)Q.set("cursor",x.cursor);let W=Q.toString();return D0(await U0(`/v1/figs${W?`?${W}`:""}`))}catch(Q){return P0(Q)}});I0.registerTool("figura_get_fig",{title:"Figura: get fig",description:"Fetch a single visualization by id. The response carries `viewUrl` — ALWAYS a link you can open for approval (a team-scoped viewer when unpublished, the public share url once published).",inputSchema:{id:F.string().describe("The fig — its id (`fig_…`), a UUID, a share link/URL, or its publicId.")}},async(x)=>{try{return D0(await U0(`/v1/figs/${encodeURIComponent(x.id)}`))}catch(Q){return P0(Q)}});I0.registerTool("figura_comment",{title:"Figura: comment",description:"Add a comment to a visualization.",inputSchema:{fig_id:F.string().describe("The fig to comment on — its id (`fig_…`), a UUID, a share link/URL, or its publicId."),body:F.string().describe("Comment text.")}},async(x)=>{try{return D0(await U0(`/v1/figs/${encodeURIComponent(x.fig_id)}/comments`,{method:"POST",body:{body:x.body}}))}catch(Q){return P0(Q)}});I0.registerTool("figura_request_feedback",{title:"Figura: request feedback",description:"Ask a teammate to review a fig. Resolve `from` to a team member (by name or email); they get a notification (in-app, push, email) and the discussion happens in the fig's comment thread. Use this when the user says they want a specific person's feedback/eyes/review on a fig. Returns { ok, request: { to, status }, figUrl }.",inputSchema:{id:F.string().describe("The fig to request feedback on — its id (`fig_…`), a UUID, a share link/URL, or its publicId."),from:F.string().describe("The teammate to ask, by name or email (resolved within the team)."),note:F.string().optional().describe("Optional message for them (e.g. what to look at).")}},async(x)=>{try{let Q={from:x.from};if(x.note!==void 0)Q.note=x.note;return D0(await U0(`/v1/figs/${encodeURIComponent(x.id)}/request-feedback`,{method:"POST",body:Q}))}catch(Q){return P0(Q)}});I0.registerTool("figura_list_sources",{title:"Figura: list sources",description:"List the company-brain source-spine connectors for the team, with event counts and last-synced times.",inputSchema:{}},async()=>{try{return D0(await U0("/v1/sources"))}catch(x){return P0(x)}});I0.registerTool("figura_sync_source",{title:"Figura: sync source",description:"Ingest new events from a connected source into the spine. Returns { ingested, fetched, nextCursor }.",inputSchema:{id:F.string().describe("The source id to sync (from figura_list_sources).")}},async(x)=>{try{return D0(await U0(`/v1/sources/${encodeURIComponent(x.id)}/sync`,{method:"POST"}))}catch(Q){return P0(Q)}});I0.registerTool("figura_mine_screens",{title:"Figura: mine screens",description:"Build the app's screen catalog from a connected git source's CURRENT file tree (framework-aware, convention-based — no file bodies, no fig generation, no credits). Returns { screens: [{slug,name,path,framework}], framework, count, commitSha, truncated }.",inputSchema:{id:F.string().describe("The git source id to mine (from figura_list_sources).")}},async(x)=>{try{return D0(await U0(`/v1/sources/${encodeURIComponent(x.id)}/mine-screens`,{method:"POST"}))}catch(Q){return P0(Q)}});I0.registerTool("figura_list_screens",{title:"Figura: list screens",description:"Read the team's mined screen catalog — the app's current screens ({slug,name,path,framework}) plus when it was last mined. Free, read-only. Run figura_mine_screens first to populate it.",inputSchema:{}},async()=>{try{return D0(await U0("/v1/sources/screens"))}catch(x){return P0(x)}});I0.registerTool("figura_update_fig",{title:"Figura: update fig",description:"Update a fig's METADATA only (title/description/area/tags/status). Set status='archived' to soft-delete. For library membership (draft ⇄ published) prefer figura_commit_fig — a status PATCH here is a silent metadata setter that never notifies the team. To change the fig's HTML, use figura_revise_fig — it saves a new version and never destroys the old one. update cannot touch the HTML.",inputSchema:{id:F.string().describe("The fig to update — its id (`fig_…`), a UUID, a share link/URL, or its publicId."),title:F.string().optional(),description:F.string().optional(),area:E8(),tags:F.array(F.string()).optional().describe("Replaces the existing tags."),status:F.enum(["draft","published","archived"]).optional()}},async(x)=>{try{let Q={};if(x.title!==void 0)Q.title=x.title;if(x.description!==void 0)Q.description=x.description;if(x.area!==void 0)Q.area=x.area;if(x.tags!==void 0)Q.tags=x.tags;if(x.status!==void 0)Q.status=x.status;return D0(await U0(`/v1/figs/${encodeURIComponent(x.id)}`,{method:"PATCH",body:Q}))}catch(Q){return P0(Q)}});I0.registerTool("figura_delete_fig",{title:"Figura: delete fig",description:"Archive a fig (soft-delete; leaves the library, public link stops resolving) or permanently delete it with hard=true.",inputSchema:{id:F.string().describe("The fig to delete — its id (`fig_…`), a UUID, a share link/URL, or its publicId."),hard:F.boolean().optional().describe("Permanently delete instead of archive.")}},async(x)=>{try{return D0(await U0(`/v1/figs/${encodeURIComponent(x.id)}${x.hard?"?hard=true":""}`,{method:"DELETE"}))}catch(Q){return P0(Q)}});(async()=>{let{apiUrl:x}=await Z3();await ZN(S8,R3,S3(x))})();await I0.connect(new rX);
66
+ ]`;continue}if(X+=Y[b],Y[b]==="\\")J=!0;else if(G&&Y[b]==="]")G=!1;else if(!G&&Y[b]==="[")G=!0}try{new RegExp(X)}catch{return console.warn(`Could not convert regex pattern at ${Q.currentPath.join("/")} to a flag-independent form! Falling back to the flag-ignorant source`),x.source}return X}function y7(x,Q){if(Q.target==="openAi")console.warn("Warning: OpenAI may not support records in schemas! Try an array of key-value pairs instead.");if(Q.target==="openApi3"&&x.keyType?._def.typeName===E.ZodEnum)return{type:"object",required:x.keyType._def.values,properties:x.keyType._def.values.reduce((Y,X)=>({...Y,[X]:m(x.valueType._def,{...Q,currentPath:[...Q.currentPath,"properties",X]})??O0(Q)}),{}),additionalProperties:Q.rejectedAdditionalProperties};let W={type:"object",additionalProperties:m(x.valueType._def,{...Q,currentPath:[...Q.currentPath,"additionalProperties"]})??Q.allowedAdditionalProperties};if(Q.target==="openApi3")return W;if(x.keyType?._def.typeName===E.ZodString&&x.keyType._def.checks?.length){let{type:Y,...X}=f7(x.keyType._def,Q);return{...W,propertyNames:X}}else if(x.keyType?._def.typeName===E.ZodEnum)return{...W,propertyNames:{enum:x.keyType._def.values}};else if(x.keyType?._def.typeName===E.ZodBranded&&x.keyType._def.type._def.typeName===E.ZodString&&x.keyType._def.type._def.checks?.length){let{type:Y,...X}=m7(x.keyType._def,Q);return{...W,propertyNames:X}}return W}function oB(x,Q){if(Q.mapStrategy==="record")return y7(x,Q);let W=m(x.keyType._def,{...Q,currentPath:[...Q.currentPath,"items","items","0"]})||O0(Q),Y=m(x.valueType._def,{...Q,currentPath:[...Q.currentPath,"items","items","1"]})||O0(Q);return{type:"array",maxItems:125,items:{type:"array",items:[W,Y],minItems:2,maxItems:2}}}function aB(x){let Q=x.values,Y=Object.keys(x.values).filter((J)=>{return typeof Q[Q[J]]!=="number"}).map((J)=>Q[J]),X=Array.from(new Set(Y.map((J)=>typeof J)));return{type:X.length===1?X[0]==="string"?"string":"number":["string","number"],enum:Y}}function dB(x){return x.target==="openAi"?void 0:{not:O0({...x,currentPath:[...x.currentPath,"not"]})}}function rB(x){return x.target==="openApi3"?{enum:["null"],nullable:!0}:{type:"null"}}var u6={ZodString:"string",ZodNumber:"number",ZodBigInt:"integer",ZodBoolean:"boolean",ZodNull:"null"};function tB(x,Q){if(Q.target==="openApi3")return sB(x,Q);let W=x.options instanceof Map?Array.from(x.options.values()):x.options;if(W.every((Y)=>(Y._def.typeName in u6)&&(!Y._def.checks||!Y._def.checks.length))){let Y=W.reduce((X,J)=>{let G=u6[J._def.typeName];return G&&!X.includes(G)?[...X,G]:X},[]);return{type:Y.length>1?Y:Y[0]}}else if(W.every((Y)=>Y._def.typeName==="ZodLiteral"&&!Y.description)){let Y=W.reduce((X,J)=>{let G=typeof J._def.value;switch(G){case"string":case"number":case"boolean":return[...X,G];case"bigint":return[...X,"integer"];case"object":if(J._def.value===null)return[...X,"null"];case"symbol":case"undefined":case"function":default:return X}},[]);if(Y.length===W.length){let X=Y.filter((J,G,$)=>$.indexOf(J)===G);return{type:X.length>1?X:X[0],enum:W.reduce((J,G)=>{return J.includes(G._def.value)?J:[...J,G._def.value]},[])}}}else if(W.every((Y)=>Y._def.typeName==="ZodEnum"))return{type:"string",enum:W.reduce((Y,X)=>[...Y,...X._def.values.filter((J)=>!Y.includes(J))],[])};return sB(x,Q)}var sB=(x,Q)=>{let W=(x.options instanceof Map?Array.from(x.options.values()):x.options).map((Y,X)=>m(Y._def,{...Q,currentPath:[...Q.currentPath,"anyOf",`${X}`]})).filter((Y)=>!!Y&&(!Q.strictUnions||typeof Y==="object"&&Object.keys(Y).length>0));return W.length?{anyOf:W}:void 0};function eB(x,Q){if(["ZodString","ZodNumber","ZodBigInt","ZodBoolean","ZodNull"].includes(x.innerType._def.typeName)&&(!x.innerType._def.checks||!x.innerType._def.checks.length)){if(Q.target==="openApi3")return{type:u6[x.innerType._def.typeName],nullable:!0};return{type:[u6[x.innerType._def.typeName],"null"]}}if(Q.target==="openApi3"){let Y=m(x.innerType._def,{...Q,currentPath:[...Q.currentPath]});if(Y&&"$ref"in Y)return{allOf:[Y],nullable:!0};return Y&&{...Y,nullable:!0}}let W=m(x.innerType._def,{...Q,currentPath:[...Q.currentPath,"anyOf","0"]});return W&&{anyOf:[W,{type:"null"}]}}function xw(x,Q){let W={type:"number"};if(!x.checks)return W;for(let Y of x.checks)switch(Y.kind){case"int":W.type="integer",EY(W,"type",Y.message,Q);break;case"min":if(Q.target==="jsonSchema7")if(Y.inclusive)Y0(W,"minimum",Y.value,Y.message,Q);else Y0(W,"exclusiveMinimum",Y.value,Y.message,Q);else{if(!Y.inclusive)W.exclusiveMinimum=!0;Y0(W,"minimum",Y.value,Y.message,Q)}break;case"max":if(Q.target==="jsonSchema7")if(Y.inclusive)Y0(W,"maximum",Y.value,Y.message,Q);else Y0(W,"exclusiveMaximum",Y.value,Y.message,Q);else{if(!Y.inclusive)W.exclusiveMaximum=!0;Y0(W,"maximum",Y.value,Y.message,Q)}break;case"multipleOf":Y0(W,"multipleOf",Y.value,Y.message,Q);break}return W}function Qw(x,Q){let W=Q.target==="openAi",Y={type:"object",properties:{}},X=[],J=x.shape();for(let $ in J){let b=J[$];if(b===void 0||b._def===void 0)continue;let z=CI(b);if(z&&W){if(b._def.typeName==="ZodOptional")b=b._def.innerType;if(!b.isNullable())b=b.nullable();z=!1}let v=m(b._def,{...Q,currentPath:[...Q.currentPath,"properties",$],propertyPath:[...Q.currentPath,"properties",$]});if(v===void 0)continue;if(Y.properties[$]=v,!z)X.push($)}if(X.length)Y.required=X;let G=iI(x,Q);if(G!==void 0)Y.additionalProperties=G;return Y}function iI(x,Q){if(x.catchall._def.typeName!=="ZodNever")return m(x.catchall._def,{...Q,currentPath:[...Q.currentPath,"additionalProperties"]});switch(x.unknownKeys){case"passthrough":return Q.allowedAdditionalProperties;case"strict":return Q.rejectedAdditionalProperties;case"strip":return Q.removeAdditionalStrategy==="strict"?Q.allowedAdditionalProperties:Q.rejectedAdditionalProperties}}function CI(x){try{return x.isOptional()}catch{return!0}}var Ww=(x,Q)=>{if(Q.currentPath.toString()===Q.propertyPath?.toString())return m(x.innerType._def,Q);let W=m(x.innerType._def,{...Q,currentPath:[...Q.currentPath,"anyOf","1"]});return W?{anyOf:[{not:O0(Q)},W]}:O0(Q)};var Yw=(x,Q)=>{if(Q.pipeStrategy==="input")return m(x.in._def,Q);else if(Q.pipeStrategy==="output")return m(x.out._def,Q);let W=m(x.in._def,{...Q,currentPath:[...Q.currentPath,"allOf","0"]}),Y=m(x.out._def,{...Q,currentPath:[...Q.currentPath,"allOf",W?"1":"0"]});return{allOf:[W,Y].filter((X)=>X!==void 0)}};function Xw(x,Q){return m(x.type._def,Q)}function Jw(x,Q){let Y={type:"array",uniqueItems:!0,items:m(x.valueType._def,{...Q,currentPath:[...Q.currentPath,"items"]})};if(x.minSize)Y0(Y,"minItems",x.minSize.value,x.minSize.message,Q);if(x.maxSize)Y0(Y,"maxItems",x.maxSize.value,x.maxSize.message,Q);return Y}function Gw(x,Q){if(x.rest)return{type:"array",minItems:x.items.length,items:x.items.map((W,Y)=>m(W._def,{...Q,currentPath:[...Q.currentPath,"items",`${Y}`]})).reduce((W,Y)=>Y===void 0?W:[...W,Y],[]),additionalItems:m(x.rest._def,{...Q,currentPath:[...Q.currentPath,"additionalItems"]})};else return{type:"array",minItems:x.items.length,maxItems:x.items.length,items:x.items.map((W,Y)=>m(W._def,{...Q,currentPath:[...Q.currentPath,"items",`${Y}`]})).reduce((W,Y)=>Y===void 0?W:[...W,Y],[])}}function $w(x){return{not:O0(x)}}function bw(x){return O0(x)}var zw=(x,Q)=>{return m(x.innerType._def,Q)};var vw=(x,Q,W)=>{switch(Q){case E.ZodString:return f7(x,W);case E.ZodNumber:return xw(x,W);case E.ZodObject:return Qw(x,W);case E.ZodBigInt:return uB(x,W);case E.ZodBoolean:return pB();case E.ZodDate:return SY(x,W);case E.ZodUndefined:return $w(W);case E.ZodNull:return rB(W);case E.ZodArray:return _B(x,W);case E.ZodUnion:case E.ZodDiscriminatedUnion:return tB(x,W);case E.ZodIntersection:return yB(x,W);case E.ZodTuple:return Gw(x,W);case E.ZodRecord:return y7(x,W);case E.ZodLiteral:return gB(x,W);case E.ZodEnum:return fB(x);case E.ZodNativeEnum:return aB(x);case E.ZodNullable:return eB(x,W);case E.ZodOptional:return Ww(x,W);case E.ZodMap:return oB(x,W);case E.ZodSet:return Jw(x,W);case E.ZodLazy:return()=>x.getter()._def;case E.ZodPromise:return Xw(x,W);case E.ZodNaN:case E.ZodNever:return dB(W);case E.ZodEffects:return mB(x,W);case E.ZodAny:return O0(W);case E.ZodUnknown:return bw(W);case E.ZodDefault:return nB(x,W);case E.ZodBranded:return m7(x,W);case E.ZodReadonly:return zw(x,W);case E.ZodCatch:return lB(x,W);case E.ZodPipeline:return Yw(x,W);case E.ZodFunction:case E.ZodVoid:case E.ZodSymbol:return;default:return((Y)=>{return})(Q)}};function m(x,Q,W=!1){let Y=Q.seen.get(x);if(Q.override){let $=Q.override?.(x,Q,Y,W);if($!==CB)return $}if(Y&&!W){let $=TI(Y,Q);if($!==void 0)return $}let X={def:x,path:Q.currentPath,jsonSchema:void 0};Q.seen.set(x,X);let J=vw(x,x.typeName,Q),G=typeof J==="function"?m(J(),Q):J;if(G)kI(x,Q,G);if(Q.postProcess){let $=Q.postProcess(G,x,Q);return X.jsonSchema=G,$}return X.jsonSchema=G,G}var TI=(x,Q)=>{switch(Q.$refStrategy){case"root":return{$ref:x.path.join("/")};case"relative":return{$ref:n7(Q.currentPath,x.path)};case"none":case"seen":{if(x.path.length<Q.currentPath.length&&x.path.every((W,Y)=>Q.currentPath[Y]===W))return console.warn(`Recursive reference detected at ${Q.currentPath.join("/")}! Defaulting to any`),O0(Q);return Q.$refStrategy==="seen"?O0(Q):void 0}}},kI=(x,Q,W)=>{if(x.description){if(W.description=x.description,Q.markdownDescription)W.markdownDescription=x.description}return W};var ZY=(x,Q)=>{let W=kB(Q),Y=typeof Q==="object"&&Q.definitions?Object.entries(Q.definitions).reduce((b,[z,v])=>({...b,[z]:m(v._def,{...W,currentPath:[...W.basePath,W.definitionPath,z]},!0)??O0(W)}),{}):void 0,X=typeof Q==="string"?Q:Q?.nameStrategy==="title"?void 0:Q?.name,J=m(x._def,X===void 0?W:{...W,currentPath:[...W.basePath,W.definitionPath,X]},!1)??O0(W),G=typeof Q==="object"&&Q.name!==void 0&&Q.nameStrategy==="title"?Q.name:void 0;if(G!==void 0)J.title=G;if(W.flags.hasReferencedOpenAiAnyType){if(!Y)Y={};if(!Y[W.openAiAnyTypeName])Y[W.openAiAnyTypeName]={type:["string","number","integer","boolean","array","null"],items:{$ref:W.$refStrategy==="relative"?"1":[...W.basePath,W.definitionPath,W.openAiAnyTypeName].join("/")}}}let $=X===void 0?Y?{...J,[W.definitionPath]:Y}:J:{$ref:[...W.$refStrategy==="relative"?[]:W.basePath,W.definitionPath,X].join("/"),[W.definitionPath]:{...Y,[X]:J}};if(W.target==="jsonSchema7")$.$schema="http://json-schema.org/draft-07/schema#";else if(W.target==="jsonSchema2019-09"||W.target==="openAi")$.$schema="https://json-schema.org/draft/2019-09/schema#";if(W.target==="openAi"&&(("anyOf"in $)||("oneOf"in $)||("allOf"in $)||("type"in $)&&Array.isArray($.type)))console.warn("Warning: OpenAI may not support schemas with unions as roots! Try wrapping it in an object property.");return $};function _I(x){if(!x)return"draft-7";if(x==="jsonSchema7"||x==="draft-7")return"draft-7";if(x==="jsonSchema2019-09"||x==="draft-2020-12")return"draft-2020-12";return"draft-7"}function iY(x,Q){if(R1(x))return WY(x,{target:_I(Q?.target),io:Q?.pipeStrategy??"input"});return ZY(x,{strictUnions:Q?.strictUnions??!0,pipeStrategy:Q?.pipeStrategy??"input"})}function CY(x){let W=T4(x)?.method;if(!W)throw Error("Schema is missing a method literal");let Y=N7(W);if(typeof Y!=="string")throw Error("Schema method literal must be a string");return Y}function TY(x,Q){let W=C4(x,Q);if(!W.success)throw W.error;return W.data}var uI=60000;class kY{constructor(x){if(this._options=x,this._requestMessageId=0,this._requestHandlers=new Map,this._requestHandlerAbortControllers=new Map,this._notificationHandlers=new Map,this._responseHandlers=new Map,this._progressHandlers=new Map,this._timeoutInfo=new Map,this._pendingDebouncedNotifications=new Set,this._taskProgressTokens=new Map,this._requestResolvers=new Map,this.setNotificationHandler(j7,(Q)=>{this._oncancel(Q)}),this.setNotificationHandler(O7,(Q)=>{this._onprogress(Q)}),this.setRequestHandler(A7,(Q)=>({})),this._taskStore=x?.taskStore,this._taskMessageQueue=x?.taskMessageQueue,this._taskStore)this.setRequestHandler(I7,async(Q,W)=>{let Y=await this._taskStore.getTask(Q.params.taskId,W.sessionId);if(!Y)throw new k(p.InvalidParams,"Failed to retrieve task: Task not found");return{...Y}}),this.setRequestHandler(S7,async(Q,W)=>{let Y=async()=>{let X=Q.params.taskId;if(this._taskMessageQueue){let G;while(G=await this._taskMessageQueue.dequeue(X,W.sessionId)){if(G.type==="response"||G.type==="error"){let $=G.message,b=$.id,z=this._requestResolvers.get(b);if(z)if(this._requestResolvers.delete(b),G.type==="response")z($);else{let v=$,B=new k(v.error.code,v.error.message,v.error.data);z(B)}else{let v=G.type==="response"?"Response":"Error";this._onerror(Error(`${v} handler missing for request ${b}`))}continue}await this._transport?.send(G.message,{relatedRequestId:W.requestId})}}let J=await this._taskStore.getTask(X,W.sessionId);if(!J)throw new k(p.InvalidParams,`Task not found: ${X}`);if(!_4(J.status))return await this._waitForTaskUpdate(X,W.signal),await Y();if(_4(J.status)){let G=await this._taskStore.getTaskResult(X,W.sessionId);return this._clearTaskQueue(X),{...G,_meta:{...G._meta,[k4]:{taskId:X}}}}return await Y()};return await Y()}),this.setRequestHandler(P7,async(Q,W)=>{try{let{tasks:Y,nextCursor:X}=await this._taskStore.listTasks(Q.params?.cursor,W.sessionId);return{tasks:Y,nextCursor:X,_meta:{}}}catch(Y){throw new k(p.InvalidParams,`Failed to list tasks: ${Y instanceof Error?Y.message:String(Y)}`)}}),this.setRequestHandler(Z7,async(Q,W)=>{try{let Y=await this._taskStore.getTask(Q.params.taskId,W.sessionId);if(!Y)throw new k(p.InvalidParams,`Task not found: ${Q.params.taskId}`);if(_4(Y.status))throw new k(p.InvalidParams,`Cannot cancel task in terminal status: ${Y.status}`);await this._taskStore.updateTaskStatus(Q.params.taskId,"cancelled","Client cancelled task execution.",W.sessionId),this._clearTaskQueue(Q.params.taskId);let X=await this._taskStore.getTask(Q.params.taskId,W.sessionId);if(!X)throw new k(p.InvalidParams,`Task not found after cancellation: ${Q.params.taskId}`);return{_meta:{},...X}}catch(Y){if(Y instanceof k)throw Y;throw new k(p.InvalidRequest,`Failed to cancel task: ${Y instanceof Error?Y.message:String(Y)}`)}})}async _oncancel(x){if(!x.params.requestId)return;this._requestHandlerAbortControllers.get(x.params.requestId)?.abort(x.params.reason)}_setupTimeout(x,Q,W,Y,X=!1){this._timeoutInfo.set(x,{timeoutId:setTimeout(Y,Q),startTime:Date.now(),timeout:Q,maxTotalTimeout:W,resetTimeoutOnProgress:X,onTimeout:Y})}_resetTimeout(x){let Q=this._timeoutInfo.get(x);if(!Q)return!1;let W=Date.now()-Q.startTime;if(Q.maxTotalTimeout&&W>=Q.maxTotalTimeout)throw this._timeoutInfo.delete(x),k.fromError(p.RequestTimeout,"Maximum total timeout exceeded",{maxTotalTimeout:Q.maxTotalTimeout,totalElapsed:W});return clearTimeout(Q.timeoutId),Q.timeoutId=setTimeout(Q.onTimeout,Q.timeout),!0}_cleanupTimeout(x){let Q=this._timeoutInfo.get(x);if(Q)clearTimeout(Q.timeoutId),this._timeoutInfo.delete(x)}async connect(x){if(this._transport)throw Error("Already connected to a transport. Call close() before connecting to a new transport, or use a separate Protocol instance per connection.");this._transport=x;let Q=this.transport?.onclose;this._transport.onclose=()=>{Q?.(),this._onclose()};let W=this.transport?.onerror;this._transport.onerror=(X)=>{W?.(X),this._onerror(X)};let Y=this._transport?.onmessage;this._transport.onmessage=(X,J)=>{if(Y?.(X,J),S6(X)||MB(X))this._onresponse(X);else if(HY(X))this._onrequest(X,J);else if(FB(X))this._onnotification(X);else this._onerror(Error(`Unknown message type: ${JSON.stringify(X)}`))},await this._transport.start()}_onclose(){let x=this._responseHandlers;this._responseHandlers=new Map,this._progressHandlers.clear(),this._taskProgressTokens.clear(),this._pendingDebouncedNotifications.clear();for(let W of this._timeoutInfo.values())clearTimeout(W.timeoutId);this._timeoutInfo.clear();for(let W of this._requestHandlerAbortControllers.values())W.abort();this._requestHandlerAbortControllers.clear();let Q=k.fromError(p.ConnectionClosed,"Connection closed");this._transport=void 0,this.onclose?.();for(let W of x.values())W(Q)}_onerror(x){this.onerror?.(x)}_onnotification(x){let Q=this._notificationHandlers.get(x.method)??this.fallbackNotificationHandler;if(Q===void 0)return;Promise.resolve().then(()=>Q(x)).catch((W)=>this._onerror(Error(`Uncaught error in notification handler: ${W}`)))}_onrequest(x,Q){let W=this._requestHandlers.get(x.method)??this.fallbackRequestHandler,Y=this._transport,X=x.params?._meta?.[k4]?.taskId;if(W===void 0){let z={jsonrpc:"2.0",id:x.id,error:{code:p.MethodNotFound,message:"Method not found"}};if(X&&this._taskMessageQueue)this._enqueueTaskMessage(X,{type:"error",message:z,timestamp:Date.now()},Y?.sessionId).catch((v)=>this._onerror(Error(`Failed to enqueue error response: ${v}`)));else Y?.send(z).catch((v)=>this._onerror(Error(`Failed to send an error response: ${v}`)));return}let J=new AbortController;this._requestHandlerAbortControllers.set(x.id,J);let G=NB(x.params)?x.params.task:void 0,$=this._taskStore?this.requestTaskStore(x,Y?.sessionId):void 0,b={signal:J.signal,sessionId:Y?.sessionId,_meta:x.params?._meta,sendNotification:async(z)=>{if(J.signal.aborted)return;let v={relatedRequestId:x.id};if(X)v.relatedTask={taskId:X};await this.notification(z,v)},sendRequest:async(z,v,B)=>{if(J.signal.aborted)throw new k(p.ConnectionClosed,"Request was cancelled");let K={...B,relatedRequestId:x.id};if(X&&!K.relatedTask)K.relatedTask={taskId:X};let w=K.relatedTask?.taskId??X;if(w&&$)await $.updateTaskStatus(w,"input_required");return await this.request(z,v,K)},authInfo:Q?.authInfo,requestId:x.id,requestInfo:Q?.requestInfo,taskId:X,taskStore:$,taskRequestedTtl:G?.ttl,closeSSEStream:Q?.closeSSEStream,closeStandaloneSSEStream:Q?.closeStandaloneSSEStream};Promise.resolve().then(()=>{if(G)this.assertTaskHandlerCapability(x.method)}).then(()=>W(x,b)).then(async(z)=>{if(J.signal.aborted)return;let v={result:z,jsonrpc:"2.0",id:x.id};if(X&&this._taskMessageQueue)await this._enqueueTaskMessage(X,{type:"response",message:v,timestamp:Date.now()},Y?.sessionId);else await Y?.send(v)},async(z)=>{if(J.signal.aborted)return;let v={jsonrpc:"2.0",id:x.id,error:{code:Number.isSafeInteger(z.code)?z.code:p.InternalError,message:z.message??"Internal error",...z.data!==void 0&&{data:z.data}}};if(X&&this._taskMessageQueue)await this._enqueueTaskMessage(X,{type:"error",message:v,timestamp:Date.now()},Y?.sessionId);else await Y?.send(v)}).catch((z)=>this._onerror(Error(`Failed to send response: ${z}`))).finally(()=>{if(this._requestHandlerAbortControllers.get(x.id)===J)this._requestHandlerAbortControllers.delete(x.id)})}_onprogress(x){let{progressToken:Q,...W}=x.params,Y=Number(Q),X=this._progressHandlers.get(Y);if(!X){this._onerror(Error(`Received a progress notification for an unknown token: ${JSON.stringify(x)}`));return}let J=this._responseHandlers.get(Y),G=this._timeoutInfo.get(Y);if(G&&J&&G.resetTimeoutOnProgress)try{this._resetTimeout(Y)}catch($){this._responseHandlers.delete(Y),this._progressHandlers.delete(Y),this._cleanupTimeout(Y),J($);return}X(W)}_onresponse(x){let Q=Number(x.id),W=this._requestResolvers.get(Q);if(W){if(this._requestResolvers.delete(Q),S6(x))W(x);else{let J=new k(x.error.code,x.error.message,x.error.data);W(J)}return}let Y=this._responseHandlers.get(Q);if(Y===void 0){this._onerror(Error(`Received a response for an unknown message ID: ${JSON.stringify(x)}`));return}this._responseHandlers.delete(Q),this._cleanupTimeout(Q);let X=!1;if(S6(x)&&x.result&&typeof x.result==="object"){let J=x.result;if(J.task&&typeof J.task==="object"){let G=J.task;if(typeof G.taskId==="string")X=!0,this._taskProgressTokens.set(G.taskId,Q)}}if(!X)this._progressHandlers.delete(Q);if(S6(x))Y(x);else{let J=k.fromError(x.error.code,x.error.message,x.error.data);Y(J)}}get transport(){return this._transport}async close(){await this._transport?.close()}async*requestStream(x,Q,W){let{task:Y}=W??{};if(!Y){try{yield{type:"result",result:await this.request(x,Q,W)}}catch(J){yield{type:"error",error:J instanceof k?J:new k(p.InternalError,String(J))}}return}let X;try{let J=await this.request(x,B8,W);if(J.task)X=J.task.taskId,yield{type:"taskCreated",task:J.task};else throw new k(p.InternalError,"Task creation did not return a task");while(!0){let G=await this.getTask({taskId:X},W);if(yield{type:"taskStatus",task:G},_4(G.status)){if(G.status==="completed")yield{type:"result",result:await this.getTaskResult({taskId:X},Q,W)};else if(G.status==="failed")yield{type:"error",error:new k(p.InternalError,`Task ${X} failed`)};else if(G.status==="cancelled")yield{type:"error",error:new k(p.InternalError,`Task ${X} was cancelled`)};return}if(G.status==="input_required"){yield{type:"result",result:await this.getTaskResult({taskId:X},Q,W)};return}let $=G.pollInterval??this._options?.defaultTaskPollInterval??1000;await new Promise((b)=>setTimeout(b,$)),W?.signal?.throwIfAborted()}}catch(J){yield{type:"error",error:J instanceof k?J:new k(p.InternalError,String(J))}}}request(x,Q,W){let{relatedRequestId:Y,resumptionToken:X,onresumptiontoken:J,task:G,relatedTask:$}=W??{};return new Promise((b,z)=>{let v=(q)=>{z(q)};if(!this._transport){v(Error("Not connected"));return}if(this._options?.enforceStrictCapabilities===!0)try{if(this.assertCapabilityForMethod(x.method),G)this.assertTaskCapability(x.method)}catch(q){v(q);return}W?.signal?.throwIfAborted();let B=this._requestMessageId++,K={...x,jsonrpc:"2.0",id:B};if(W?.onprogress)this._progressHandlers.set(B,W.onprogress),K.params={...x.params,_meta:{...x.params?._meta||{},progressToken:B}};if(G)K.params={...K.params,task:G};if($)K.params={...K.params,_meta:{...K.params?._meta||{},[k4]:$}};let w=(q)=>{this._responseHandlers.delete(B),this._progressHandlers.delete(B),this._cleanupTimeout(B),this._transport?.send({jsonrpc:"2.0",method:"notifications/cancelled",params:{requestId:B,reason:String(q)}},{relatedRequestId:Y,resumptionToken:X,onresumptiontoken:J}).catch((c)=>this._onerror(Error(`Failed to send cancellation: ${c}`)));let L=q instanceof k?q:new k(p.RequestTimeout,String(q));z(L)};this._responseHandlers.set(B,(q)=>{if(W?.signal?.aborted)return;if(q instanceof Error)return z(q);try{let L=C4(Q,q.result);if(!L.success)z(L.error);else b(L.data)}catch(L){z(L)}}),W?.signal?.addEventListener("abort",()=>{w(W?.signal?.reason)});let V=W?.timeout??uI,N=()=>w(k.fromError(p.RequestTimeout,"Request timed out",{timeout:V}));this._setupTimeout(B,V,W?.maxTotalTimeout,N,W?.resetTimeoutOnProgress??!1);let U=$?.taskId;if(U){let q=(L)=>{let c=this._responseHandlers.get(B);if(c)c(L);else this._onerror(Error(`Response handler missing for side-channeled request ${B}`))};this._requestResolvers.set(B,q),this._enqueueTaskMessage(U,{type:"request",message:K,timestamp:Date.now()}).catch((L)=>{this._cleanupTimeout(B),z(L)})}else this._transport.send(K,{relatedRequestId:Y,resumptionToken:X,onresumptiontoken:J}).catch((q)=>{this._cleanupTimeout(B),z(q)})})}async getTask(x,Q){return this.request({method:"tasks/get",params:x},E7,Q)}async getTaskResult(x,Q,W){return this.request({method:"tasks/result",params:x},Q,W)}async listTasks(x,Q){return this.request({method:"tasks/list",params:x},R7,Q)}async cancelTask(x,Q){return this.request({method:"tasks/cancel",params:x},jB,Q)}async notification(x,Q){if(!this._transport)throw Error("Not connected");this.assertNotificationCapability(x.method);let W=Q?.relatedTask?.taskId;if(W){let G={...x,jsonrpc:"2.0",params:{...x.params,_meta:{...x.params?._meta||{},[k4]:Q.relatedTask}}};await this._enqueueTaskMessage(W,{type:"notification",message:G,timestamp:Date.now()});return}if((this._options?.debouncedNotificationMethods??[]).includes(x.method)&&!x.params&&!Q?.relatedRequestId&&!Q?.relatedTask){if(this._pendingDebouncedNotifications.has(x.method))return;this._pendingDebouncedNotifications.add(x.method),Promise.resolve().then(()=>{if(this._pendingDebouncedNotifications.delete(x.method),!this._transport)return;let G={...x,jsonrpc:"2.0"};if(Q?.relatedTask)G={...G,params:{...G.params,_meta:{...G.params?._meta||{},[k4]:Q.relatedTask}}};this._transport?.send(G,Q).catch(($)=>this._onerror($))});return}let J={...x,jsonrpc:"2.0"};if(Q?.relatedTask)J={...J,params:{...J.params,_meta:{...J.params?._meta||{},[k4]:Q.relatedTask}}};await this._transport.send(J,Q)}setRequestHandler(x,Q){let W=CY(x);this.assertRequestHandlerCapability(W),this._requestHandlers.set(W,(Y,X)=>{let J=TY(x,Y);return Promise.resolve(Q(J,X))})}removeRequestHandler(x){this._requestHandlers.delete(x)}assertCanSetRequestHandler(x){if(this._requestHandlers.has(x))throw Error(`A request handler for ${x} already exists, which would be overridden`)}setNotificationHandler(x,Q){let W=CY(x);this._notificationHandlers.set(W,(Y)=>{let X=TY(x,Y);return Promise.resolve(Q(X))})}removeNotificationHandler(x){this._notificationHandlers.delete(x)}_cleanupTaskProgressHandler(x){let Q=this._taskProgressTokens.get(x);if(Q!==void 0)this._progressHandlers.delete(Q),this._taskProgressTokens.delete(x)}async _enqueueTaskMessage(x,Q,W){if(!this._taskStore||!this._taskMessageQueue)throw Error("Cannot enqueue task message: taskStore and taskMessageQueue are not configured");let Y=this._options?.maxTaskQueueSize;await this._taskMessageQueue.enqueue(x,Q,W,Y)}async _clearTaskQueue(x,Q){if(this._taskMessageQueue){let W=await this._taskMessageQueue.dequeueAll(x,Q);for(let Y of W)if(Y.type==="request"&&HY(Y.message)){let X=Y.message.id,J=this._requestResolvers.get(X);if(J)J(new k(p.InternalError,"Task cancelled or completed")),this._requestResolvers.delete(X);else this._onerror(Error(`Resolver missing for request ${X} during task ${x} cleanup`))}}}async _waitForTaskUpdate(x,Q){let W=this._options?.defaultTaskPollInterval??1000;try{let Y=await this._taskStore?.getTask(x);if(Y?.pollInterval)W=Y.pollInterval}catch{}return new Promise((Y,X)=>{if(Q.aborted){X(new k(p.InvalidRequest,"Request cancelled"));return}let J=setTimeout(Y,W);Q.addEventListener("abort",()=>{clearTimeout(J),X(new k(p.InvalidRequest,"Request cancelled"))},{once:!0})})}requestTaskStore(x,Q){let W=this._taskStore;if(!W)throw Error("No task store configured");return{createTask:async(Y)=>{if(!x)throw Error("No request provided");return await W.createTask(Y,x.id,{method:x.method,params:x.params},Q)},getTask:async(Y)=>{let X=await W.getTask(Y,Q);if(!X)throw new k(p.InvalidParams,"Failed to retrieve task: Task not found");return X},storeTaskResult:async(Y,X,J)=>{await W.storeTaskResult(Y,X,J,Q);let G=await W.getTask(Y,Q);if(G){let $=C6.parse({method:"notifications/tasks/status",params:G});if(await this.notification($),_4(G.status))this._cleanupTaskProgressHandler(Y)}},getTaskResult:(Y)=>{return W.getTaskResult(Y,Q)},updateTaskStatus:async(Y,X,J)=>{let G=await W.getTask(Y,Q);if(!G)throw new k(p.InvalidParams,`Task "${Y}" not found - it may have been cleaned up`);if(_4(G.status))throw new k(p.InvalidParams,`Cannot update task "${Y}" from terminal status "${G.status}" to "${X}". Terminal states (completed, failed, cancelled) cannot transition to other states.`);await W.updateTaskStatus(Y,X,J,Q);let $=await W.getTask(Y,Q);if($){let b=C6.parse({method:"notifications/tasks/status",params:$});if(await this.notification(b),_4($.status))this._cleanupTaskProgressHandler(Y)}},listTasks:(Y)=>{return W.listTasks(Y,Q)}}}}function Bw(x){return x!==null&&typeof x==="object"&&!Array.isArray(x)}function ww(x,Q){let W={...x};for(let Y in Q){let X=Y,J=Q[X];if(J===void 0)continue;let G=W[X];if(Bw(G)&&Bw(J))W[X]={...G,...J};else W[X]=J}return W}var aq=Z8(RX(),1),dq=Z8(oq(),1);function Gk(){let x=new aq.default({strict:!1,validateFormats:!0,validateSchema:!1,allErrors:!0});return dq.default(x),x}class nX{constructor(x){this._ajv=x??Gk()}getValidator(x){let Q="$id"in x&&typeof x.$id==="string"?this._ajv.getSchema(x.$id)??this._ajv.compile(x):this._ajv.compile(x);return(W)=>{if(Q(W))return{valid:!0,data:W,errorMessage:void 0};else return{valid:!1,data:void 0,errorMessage:this._ajv.errorsText(Q.errors)}}}}class mX{constructor(x){this._server=x}requestStream(x,Q,W){return this._server.requestStream(x,Q,W)}createMessageStream(x,Q){let W=this._server.getClientCapabilities();if((x.tools||x.toolChoice)&&!W?.sampling?.tools)throw Error("Client does not support sampling tools capability.");if(x.messages.length>0){let Y=x.messages[x.messages.length-1],X=Array.isArray(Y.content)?Y.content:[Y.content],J=X.some((z)=>z.type==="tool_result"),G=x.messages.length>1?x.messages[x.messages.length-2]:void 0,$=G?Array.isArray(G.content)?G.content:[G.content]:[],b=$.some((z)=>z.type==="tool_use");if(J){if(X.some((z)=>z.type!=="tool_result"))throw Error("The last message must contain only tool_result content if any is present");if(!b)throw Error("tool_result blocks are not matching any tool_use from the previous message")}if(b){let z=new Set($.filter((B)=>B.type==="tool_use").map((B)=>B.id)),v=new Set(X.filter((B)=>B.type==="tool_result").map((B)=>B.toolUseId));if(z.size!==v.size||![...z].every((B)=>v.has(B)))throw Error("ids of tool_result blocks and tool_use blocks from previous message do not match")}}return this.requestStream({method:"sampling/createMessage",params:x},_6,Q)}elicitInputStream(x,Q){let W=this._server.getClientCapabilities(),Y=x.mode??"form";switch(Y){case"url":{if(!W?.elicitation?.url)throw Error("Client does not support url elicitation.");break}case"form":{if(!W?.elicitation?.form)throw Error("Client does not support form elicitation.");break}}let X=Y==="form"&&x.mode===void 0?{...x,mode:"form"}:x;return this.requestStream({method:"elicitation/create",params:X},H8,Q)}async getTask(x,Q){return this._server.getTask({taskId:x},Q)}async getTaskResult(x,Q,W){return this._server.getTaskResult({taskId:x},Q,W)}async listTasks(x,Q){return this._server.listTasks(x?{cursor:x}:void 0,Q)}async cancelTask(x,Q){return this._server.cancelTask({taskId:x},Q)}}function rq(x,Q,W){if(!x)throw Error(`${W} does not support task creation (required for ${Q})`);switch(Q){case"tools/call":if(!x.tools?.call)throw Error(`${W} does not support task creation for tools/call (required for ${Q})`);break;default:break}}function sq(x,Q,W){if(!x)throw Error(`${W} does not support task creation (required for ${Q})`);switch(Q){case"sampling/createMessage":if(!x.sampling?.createMessage)throw Error(`${W} does not support task creation for sampling/createMessage (required for ${Q})`);break;case"elicitation/create":if(!x.elicitation?.create)throw Error(`${W} does not support task creation for elicitation/create (required for ${Q})`);break;default:break}}class fX extends kY{constructor(x,Q){super(Q);if(this._serverInfo=x,this._loggingLevels=new Map,this.LOG_LEVEL_SEVERITY=new Map(k6.options.map((W,Y)=>[W,Y])),this.isMessageIgnored=(W,Y)=>{let X=this._loggingLevels.get(Y);return X?this.LOG_LEVEL_SEVERITY.get(W)<this.LOG_LEVEL_SEVERITY.get(X):!1},this._capabilities=Q?.capabilities??{},this._instructions=Q?.instructions,this._jsonSchemaValidator=Q?.jsonSchemaValidator??new nX,this.setRequestHandler(NY,(W)=>this._oninitialize(W)),this.setNotificationHandler(UY,()=>this.oninitialized?.()),this._capabilities.logging)this.setRequestHandler(AY,async(W,Y)=>{let X=Y.sessionId||Y.requestInfo?.headers["mcp-session-id"]||void 0,{level:J}=W.params,G=k6.safeParse(J);if(G.success)this._loggingLevels.set(X,G.data);return{}})}get experimental(){if(!this._experimental)this._experimental={tasks:new mX(this)};return this._experimental}registerCapabilities(x){if(this.transport)throw Error("Cannot register capabilities after connecting to transport");this._capabilities=ww(this._capabilities,x)}setRequestHandler(x,Q){let Y=T4(x)?.method;if(!Y)throw Error("Schema is missing a method literal");let X;if(R1(Y)){let G=Y;X=G._zod?.def?.value??G.value}else{let G=Y;X=G._def?.value??G.value}if(typeof X!=="string")throw Error("Schema method literal must be a string");if(X==="tools/call"){let G=async($,b)=>{let z=C4(K8,$);if(!z.success){let w=z.error instanceof Error?z.error.message:String(z.error);throw new k(p.InvalidParams,`Invalid tools/call request: ${w}`)}let{params:v}=z.data,B=await Promise.resolve(Q($,b));if(v.task){let w=C4(B8,B);if(!w.success){let V=w.error instanceof Error?w.error.message:String(w.error);throw new k(p.InvalidParams,`Invalid task creation result: ${V}`)}return w.data}let K=C4(p7,B);if(!K.success){let w=K.error instanceof Error?K.error.message:String(K.error);throw new k(p.InvalidParams,`Invalid tools/call result: ${w}`)}return K.data};return super.setRequestHandler(x,G)}return super.setRequestHandler(x,Q)}assertCapabilityForMethod(x){switch(x){case"sampling/createMessage":if(!this._clientCapabilities?.sampling)throw Error(`Client does not support sampling (required for ${x})`);break;case"elicitation/create":if(!this._clientCapabilities?.elicitation)throw Error(`Client does not support elicitation (required for ${x})`);break;case"roots/list":if(!this._clientCapabilities?.roots)throw Error(`Client does not support listing roots (required for ${x})`);break;case"ping":break}}assertNotificationCapability(x){switch(x){case"notifications/message":if(!this._capabilities.logging)throw Error(`Server does not support logging (required for ${x})`);break;case"notifications/resources/updated":case"notifications/resources/list_changed":if(!this._capabilities.resources)throw Error(`Server does not support notifying about resources (required for ${x})`);break;case"notifications/tools/list_changed":if(!this._capabilities.tools)throw Error(`Server does not support notifying of tool list changes (required for ${x})`);break;case"notifications/prompts/list_changed":if(!this._capabilities.prompts)throw Error(`Server does not support notifying of prompt list changes (required for ${x})`);break;case"notifications/elicitation/complete":if(!this._clientCapabilities?.elicitation?.url)throw Error(`Client does not support URL elicitation (required for ${x})`);break;case"notifications/cancelled":break;case"notifications/progress":break}}assertRequestHandlerCapability(x){if(!this._capabilities)return;switch(x){case"completion/complete":if(!this._capabilities.completions)throw Error(`Server does not support completions (required for ${x})`);break;case"logging/setLevel":if(!this._capabilities.logging)throw Error(`Server does not support logging (required for ${x})`);break;case"prompts/get":case"prompts/list":if(!this._capabilities.prompts)throw Error(`Server does not support prompts (required for ${x})`);break;case"resources/list":case"resources/templates/list":case"resources/read":if(!this._capabilities.resources)throw Error(`Server does not support resources (required for ${x})`);break;case"tools/call":case"tools/list":if(!this._capabilities.tools)throw Error(`Server does not support tools (required for ${x})`);break;case"tasks/get":case"tasks/list":case"tasks/result":case"tasks/cancel":if(!this._capabilities.tasks)throw Error(`Server does not support tasks capability (required for ${x})`);break;case"ping":case"initialize":break}}assertTaskCapability(x){sq(this._clientCapabilities?.tasks?.requests,x,"Client")}assertTaskHandlerCapability(x){if(!this._capabilities)return;rq(this._capabilities.tasks?.requests,x,"Server")}async _oninitialize(x){let Q=x.params.protocolVersion;return this._clientCapabilities=x.params.capabilities,this._clientVersion=x.params.clientInfo,{protocolVersion:HB.includes(Q)?Q:wY,capabilities:this.getCapabilities(),serverInfo:this._serverInfo,...this._instructions&&{instructions:this._instructions}}}getClientCapabilities(){return this._clientCapabilities}getClientVersion(){return this._clientVersion}getCapabilities(){return this._capabilities}async ping(){return this.request({method:"ping"},c7)}async createMessage(x,Q){if(x.tools||x.toolChoice){if(!this._clientCapabilities?.sampling?.tools)throw Error("Client does not support sampling tools capability.")}if(x.messages.length>0){let W=x.messages[x.messages.length-1],Y=Array.isArray(W.content)?W.content:[W.content],X=Y.some((b)=>b.type==="tool_result"),J=x.messages.length>1?x.messages[x.messages.length-2]:void 0,G=J?Array.isArray(J.content)?J.content:[J.content]:[],$=G.some((b)=>b.type==="tool_use");if(X){if(Y.some((b)=>b.type!=="tool_result"))throw Error("The last message must contain only tool_result content if any is present");if(!$)throw Error("tool_result blocks are not matching any tool_use from the previous message")}if($){let b=new Set(G.filter((v)=>v.type==="tool_use").map((v)=>v.id)),z=new Set(Y.filter((v)=>v.type==="tool_result").map((v)=>v.toolUseId));if(b.size!==z.size||![...b].every((v)=>z.has(v)))throw Error("ids of tool_result blocks and tool_use blocks from previous message do not match")}}if(x.tools)return this.request({method:"sampling/createMessage",params:x},OY,Q);return this.request({method:"sampling/createMessage",params:x},_6,Q)}async elicitInput(x,Q){switch(x.mode??"form"){case"url":{if(!this._clientCapabilities?.elicitation?.url)throw Error("Client does not support url elicitation.");let Y=x;return this.request({method:"elicitation/create",params:Y},H8,Q)}case"form":{if(!this._clientCapabilities?.elicitation?.form)throw Error("Client does not support form elicitation.");let Y=x.mode==="form"?x:{...x,mode:"form"},X=await this.request({method:"elicitation/create",params:Y},H8,Q);if(X.action==="accept"&&X.content&&Y.requestedSchema)try{let G=this._jsonSchemaValidator.getValidator(Y.requestedSchema)(X.content);if(!G.valid)throw new k(p.InvalidParams,`Elicitation response content does not match requested schema: ${G.errorMessage}`)}catch(J){if(J instanceof k)throw J;throw new k(p.InternalError,`Error validating elicitation response: ${J instanceof Error?J.message:String(J)}`)}return X}}}createElicitationCompletionNotifier(x,Q){if(!this._clientCapabilities?.elicitation?.url)throw Error("Client does not support URL elicitation (required for notifications/elicitation/complete)");return()=>this.notification({method:"notifications/elicitation/complete",params:{elicitationId:x}},Q)}async listRoots(x,Q){return this.request({method:"roots/list",params:x},IY,Q)}async sendLoggingMessage(x,Q){if(this._capabilities.logging){if(!this.isMessageIgnored(x.level,Q))return this.notification({method:"notifications/message",params:x})}}async sendResourceUpdated(x){return this.notification({method:"notifications/resources/updated",params:x})}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"})}}var eq=Symbol.for("mcp.completable");function yX(x){return!!x&&typeof x==="object"&&eq in x}function xN(x){return x[eq]?.complete}var tq;(function(x){x.Completable="McpCompletable"})(tq||(tq={}));var $k=/^[A-Za-z0-9._-]{1,128}$/;function bk(x){let Q=[];if(x.length===0)return{isValid:!1,warnings:["Tool name cannot be empty"]};if(x.length>128)return{isValid:!1,warnings:[`Tool name exceeds maximum length of 128 characters (current: ${x.length})`]};if(x.includes(" "))Q.push("Tool name contains spaces, which may cause parsing issues");if(x.includes(","))Q.push("Tool name contains commas, which may cause parsing issues");if(x.startsWith("-")||x.endsWith("-"))Q.push("Tool name starts or ends with a dash, which may cause parsing issues in some contexts");if(x.startsWith(".")||x.endsWith("."))Q.push("Tool name starts or ends with a dot, which may cause parsing issues in some contexts");if(!$k.test(x)){let W=x.split("").filter((Y)=>!/[A-Za-z0-9._-]/.test(Y)).filter((Y,X,J)=>J.indexOf(Y)===X);return Q.push(`Tool name contains invalid characters: ${W.map((Y)=>`"${Y}"`).join(", ")}`,"Allowed characters are: A-Z, a-z, 0-9, underscore (_), dash (-), and dot (.)"),{isValid:!1,warnings:Q}}return{isValid:!0,warnings:Q}}function zk(x,Q){if(Q.length>0){console.warn(`Tool name validation warning for "${x}":`);for(let W of Q)console.warn(` - ${W}`);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 gX(x){let Q=bk(x);return zk(x,Q.warnings),Q.isValid}class hX{constructor(x){this._mcpServer=x}registerToolTask(x,Q,W){let Y={taskSupport:"required",...Q.execution};if(Y.taskSupport==="forbidden")throw Error(`Cannot register task-based tool '${x}' with taskSupport 'forbidden'. Use registerTool() instead.`);return this._mcpServer._createRegisteredTool(x,Q.title,Q.description,Q.inputSchema,Q.outputSchema,Q.annotations,Y,Q._meta,W)}}class aX{constructor(x,Q){this._registeredResources={},this._registeredResourceTemplates={},this._registeredTools={},this._registeredPrompts={},this._toolHandlersInitialized=!1,this._completionHandlerInitialized=!1,this._resourceHandlersInitialized=!1,this._promptHandlersInitialized=!1,this.server=new fX(x,Q)}get experimental(){if(!this._experimental)this._experimental={tasks:new hX(this)};return this._experimental}async connect(x){return await this.server.connect(x)}async close(){await this.server.close()}setToolRequestHandlers(){if(this._toolHandlersInitialized)return;this.server.assertCanSetRequestHandler(g4(u7)),this.server.assertCanSetRequestHandler(g4(K8)),this.server.registerCapabilities({tools:{listChanged:!0}}),this.server.setRequestHandler(u7,()=>({tools:Object.entries(this._registeredTools).filter(([,x])=>x.enabled).map(([x,Q])=>{let W={name:x,title:Q.title,description:Q.description,inputSchema:(()=>{let Y=z8(Q.inputSchema);return Y?iY(Y,{strictUnions:!0,pipeStrategy:"input"}):vk})(),annotations:Q.annotations,execution:Q.execution,_meta:Q._meta};if(Q.outputSchema){let Y=z8(Q.outputSchema);if(Y)W.outputSchema=iY(Y,{strictUnions:!0,pipeStrategy:"output"})}return W})})),this.server.setRequestHandler(K8,async(x,Q)=>{try{let W=this._registeredTools[x.params.name];if(!W)throw new k(p.InvalidParams,`Tool ${x.params.name} not found`);if(!W.enabled)throw new k(p.InvalidParams,`Tool ${x.params.name} disabled`);let Y=!!x.params.task,X=W.execution?.taskSupport,J="createTask"in W.handler;if((X==="required"||X==="optional")&&!J)throw new k(p.InternalError,`Tool ${x.params.name} has taskSupport '${X}' but was not registered with registerToolTask`);if(X==="required"&&!Y)throw new k(p.MethodNotFound,`Tool ${x.params.name} requires task augmentation (taskSupport: 'required')`);if(X==="optional"&&!Y&&J)return await this.handleAutomaticTaskPolling(W,x,Q);let G=await this.validateToolInput(W,x.params.arguments,x.params.name),$=await this.executeToolHandler(W,G,Q);if(Y)return $;return await this.validateToolOutput(W,$,x.params.name),$}catch(W){if(W instanceof k){if(W.code===p.UrlElicitationRequired)throw W}return this.createToolError(W instanceof Error?W.message:String(W))}}),this._toolHandlersInitialized=!0}createToolError(x){return{content:[{type:"text",text:x}],isError:!0}}async validateToolInput(x,Q,W){if(!x.inputSchema)return;let X=z8(x.inputSchema)??x.inputSchema,J=await V7(X,Q);if(!J.success){let G="error"in J?J.error:"Unknown error",$=q7(G);throw new k(p.InvalidParams,`Input validation error: Invalid arguments for tool ${W}: ${$}`)}return J.data}async validateToolOutput(x,Q,W){if(!x.outputSchema)return;if(!("content"in Q))return;if(Q.isError)return;if(!Q.structuredContent)throw new k(p.InvalidParams,`Output validation error: Tool ${W} has an output schema but no structured content was provided`);let Y=z8(x.outputSchema),X=await V7(Y,Q.structuredContent);if(!X.success){let J="error"in X?X.error:"Unknown error",G=q7(J);throw new k(p.InvalidParams,`Output validation error: Invalid structured content for tool ${W}: ${G}`)}}async executeToolHandler(x,Q,W){let Y=x.handler;if("createTask"in Y){if(!W.taskStore)throw Error("No task store provided.");let J={...W,taskStore:W.taskStore};if(x.inputSchema)return await Promise.resolve(Y.createTask(Q,J));else return await Promise.resolve(Y.createTask(J))}if(x.inputSchema)return await Promise.resolve(Y(Q,W));else return await Promise.resolve(Y(W))}async handleAutomaticTaskPolling(x,Q,W){if(!W.taskStore)throw Error("No task store provided for task-capable tool.");let Y=await this.validateToolInput(x,Q.params.arguments,Q.params.name),X=x.handler,J={...W,taskStore:W.taskStore},G=Y?await Promise.resolve(X.createTask(Y,J)):await Promise.resolve(X.createTask(J)),$=G.task.taskId,b=G.task,z=b.pollInterval??5000;while(b.status!=="completed"&&b.status!=="failed"&&b.status!=="cancelled"){await new Promise((B)=>setTimeout(B,z));let v=await W.taskStore.getTask($);if(!v)throw new k(p.InternalError,`Task ${$} not found during polling`);b=v}return await W.taskStore.getTaskResult($)}setCompletionRequestHandler(){if(this._completionHandlerInitialized)return;this.server.assertCanSetRequestHandler(g4(l7)),this.server.registerCapabilities({completions:{}}),this.server.setRequestHandler(l7,async(x)=>{switch(x.params.ref.type){case"ref/prompt":return PB(x),this.handlePromptCompletion(x,x.params.ref);case"ref/resource":return RB(x),this.handleResourceCompletion(x,x.params.ref);default:throw new k(p.InvalidParams,`Invalid completion reference: ${x.params.ref}`)}}),this._completionHandlerInitialized=!0}async handlePromptCompletion(x,Q){let W=this._registeredPrompts[Q.name];if(!W)throw new k(p.InvalidParams,`Prompt ${Q.name} not found`);if(!W.enabled)throw new k(p.InvalidParams,`Prompt ${Q.name} disabled`);if(!W.argsSchema)return b9;let X=T4(W.argsSchema)?.[x.params.argument.name];if(!yX(X))return b9;let J=xN(X);if(!J)return b9;let G=await J(x.params.argument.value,x.params.context);return WN(G)}async handleResourceCompletion(x,Q){let W=Object.values(this._registeredResourceTemplates).find((J)=>J.resourceTemplate.uriTemplate.toString()===Q.uri);if(!W){if(this._registeredResources[Q.uri])return b9;throw new k(p.InvalidParams,`Resource template ${x.params.ref.uri} not found`)}let Y=W.resourceTemplate.completeCallback(x.params.argument.name);if(!Y)return b9;let X=await Y(x.params.argument.value,x.params.context);return WN(X)}setResourceRequestHandlers(){if(this._resourceHandlersInitialized)return;this.server.assertCanSetRequestHandler(g4(i7)),this.server.assertCanSetRequestHandler(g4(C7)),this.server.assertCanSetRequestHandler(g4(T7)),this.server.registerCapabilities({resources:{listChanged:!0}}),this.server.setRequestHandler(i7,async(x,Q)=>{let W=Object.entries(this._registeredResources).filter(([X,J])=>J.enabled).map(([X,J])=>({uri:X,name:J.name,...J.metadata})),Y=[];for(let X of Object.values(this._registeredResourceTemplates)){if(!X.resourceTemplate.listCallback)continue;let J=await X.resourceTemplate.listCallback(Q);for(let G of J.resources)Y.push({...X.metadata,...G})}return{resources:[...W,...Y]}}),this.server.setRequestHandler(C7,async()=>{return{resourceTemplates:Object.entries(this._registeredResourceTemplates).map(([Q,W])=>({name:Q,uriTemplate:W.resourceTemplate.uriTemplate.toString(),...W.metadata}))}}),this.server.setRequestHandler(T7,async(x,Q)=>{let W=new URL(x.params.uri),Y=this._registeredResources[W.toString()];if(Y){if(!Y.enabled)throw new k(p.InvalidParams,`Resource ${W} disabled`);return Y.readCallback(W,Q)}for(let X of Object.values(this._registeredResourceTemplates)){let J=X.resourceTemplate.uriTemplate.match(W.toString());if(J)return X.readCallback(W,J,Q)}throw new k(p.InvalidParams,`Resource ${W} not found`)}),this._resourceHandlersInitialized=!0}setPromptRequestHandlers(){if(this._promptHandlersInitialized)return;this.server.assertCanSetRequestHandler(g4(k7)),this.server.assertCanSetRequestHandler(g4(_7)),this.server.registerCapabilities({prompts:{listChanged:!0}}),this.server.setRequestHandler(k7,()=>({prompts:Object.entries(this._registeredPrompts).filter(([,x])=>x.enabled).map(([x,Q])=>{return{name:x,title:Q.title,description:Q.description,arguments:Q.argsSchema?Bk(Q.argsSchema):void 0}})})),this.server.setRequestHandler(_7,async(x,Q)=>{let W=this._registeredPrompts[x.params.name];if(!W)throw new k(p.InvalidParams,`Prompt ${x.params.name} not found`);if(!W.enabled)throw new k(p.InvalidParams,`Prompt ${x.params.name} disabled`);if(W.argsSchema){let Y=z8(W.argsSchema),X=await V7(Y,x.params.arguments);if(!X.success){let $="error"in X?X.error:"Unknown error",b=q7($);throw new k(p.InvalidParams,`Invalid arguments for prompt ${x.params.name}: ${b}`)}let J=X.data,G=W.callback;return await Promise.resolve(G(J,Q))}else{let Y=W.callback;return await Promise.resolve(Y(Q))}}),this._promptHandlersInitialized=!0}resource(x,Q,...W){let Y;if(typeof W[0]==="object")Y=W.shift();let X=W[0];if(typeof Q==="string"){if(this._registeredResources[Q])throw Error(`Resource ${Q} is already registered`);let J=this._createRegisteredResource(x,void 0,Q,Y,X);return this.setResourceRequestHandlers(),this.sendResourceListChanged(),J}else{if(this._registeredResourceTemplates[x])throw Error(`Resource template ${x} is already registered`);let J=this._createRegisteredResourceTemplate(x,void 0,Q,Y,X);return this.setResourceRequestHandlers(),this.sendResourceListChanged(),J}}registerResource(x,Q,W,Y){if(typeof Q==="string"){if(this._registeredResources[Q])throw Error(`Resource ${Q} is already registered`);let X=this._createRegisteredResource(x,W.title,Q,W,Y);return this.setResourceRequestHandlers(),this.sendResourceListChanged(),X}else{if(this._registeredResourceTemplates[x])throw Error(`Resource template ${x} is already registered`);let X=this._createRegisteredResourceTemplate(x,W.title,Q,W,Y);return this.setResourceRequestHandlers(),this.sendResourceListChanged(),X}}_createRegisteredResource(x,Q,W,Y,X){let J={name:x,title:Q,metadata:Y,readCallback:X,enabled:!0,disable:()=>J.update({enabled:!1}),enable:()=>J.update({enabled:!0}),remove:()=>J.update({uri:null}),update:(G)=>{if(typeof G.uri<"u"&&G.uri!==W){if(delete this._registeredResources[W],G.uri)this._registeredResources[G.uri]=J}if(typeof G.name<"u")J.name=G.name;if(typeof G.title<"u")J.title=G.title;if(typeof G.metadata<"u")J.metadata=G.metadata;if(typeof G.callback<"u")J.readCallback=G.callback;if(typeof G.enabled<"u")J.enabled=G.enabled;this.sendResourceListChanged()}};return this._registeredResources[W]=J,J}_createRegisteredResourceTemplate(x,Q,W,Y,X){let J={resourceTemplate:W,title:Q,metadata:Y,readCallback:X,enabled:!0,disable:()=>J.update({enabled:!1}),enable:()=>J.update({enabled:!0}),remove:()=>J.update({name:null}),update:(b)=>{if(typeof b.name<"u"&&b.name!==x){if(delete this._registeredResourceTemplates[x],b.name)this._registeredResourceTemplates[b.name]=J}if(typeof b.title<"u")J.title=b.title;if(typeof b.template<"u")J.resourceTemplate=b.template;if(typeof b.metadata<"u")J.metadata=b.metadata;if(typeof b.callback<"u")J.readCallback=b.callback;if(typeof b.enabled<"u")J.enabled=b.enabled;this.sendResourceListChanged()}};this._registeredResourceTemplates[x]=J;let G=W.uriTemplate.variableNames;if(Array.isArray(G)&&G.some((b)=>!!W.completeCallback(b)))this.setCompletionRequestHandler();return J}_createRegisteredPrompt(x,Q,W,Y,X){let J={title:Q,description:W,argsSchema:Y===void 0?void 0:Ux(Y),callback:X,enabled:!0,disable:()=>J.update({enabled:!1}),enable:()=>J.update({enabled:!0}),remove:()=>J.update({name:null}),update:(G)=>{if(typeof G.name<"u"&&G.name!==x){if(delete this._registeredPrompts[x],G.name)this._registeredPrompts[G.name]=J}if(typeof G.title<"u")J.title=G.title;if(typeof G.description<"u")J.description=G.description;if(typeof G.argsSchema<"u")J.argsSchema=Ux(G.argsSchema);if(typeof G.callback<"u")J.callback=G.callback;if(typeof G.enabled<"u")J.enabled=G.enabled;this.sendPromptListChanged()}};if(this._registeredPrompts[x]=J,Y){if(Object.values(Y).some(($)=>{let b=$ instanceof D1?$._def?.innerType:$;return yX(b)}))this.setCompletionRequestHandler()}return J}_createRegisteredTool(x,Q,W,Y,X,J,G,$,b){gX(x);let z={title:Q,description:W,inputSchema:QN(Y),outputSchema:QN(X),annotations:J,execution:G,_meta:$,handler:b,enabled:!0,disable:()=>z.update({enabled:!1}),enable:()=>z.update({enabled:!0}),remove:()=>z.update({name:null}),update:(v)=>{if(typeof v.name<"u"&&v.name!==x){if(typeof v.name==="string")gX(v.name);if(delete this._registeredTools[x],v.name)this._registeredTools[v.name]=z}if(typeof v.title<"u")z.title=v.title;if(typeof v.description<"u")z.description=v.description;if(typeof v.paramsSchema<"u")z.inputSchema=Ux(v.paramsSchema);if(typeof v.outputSchema<"u")z.outputSchema=Ux(v.outputSchema);if(typeof v.callback<"u")z.handler=v.callback;if(typeof v.annotations<"u")z.annotations=v.annotations;if(typeof v._meta<"u")z._meta=v._meta;if(typeof v.enabled<"u")z.enabled=v.enabled;this.sendToolListChanged()}};return this._registeredTools[x]=z,this.setToolRequestHandlers(),this.sendToolListChanged(),z}tool(x,...Q){if(this._registeredTools[x])throw Error(`Tool ${x} is already registered`);let W,Y,X,J;if(typeof Q[0]==="string")W=Q.shift();if(Q.length>1){let $=Q[0];if(oX($)){if(Y=Q.shift(),Q.length>1&&typeof Q[0]==="object"&&Q[0]!==null&&!oX(Q[0]))J=Q.shift()}else if(typeof $==="object"&&$!==null){if(Object.values($).some((b)=>typeof b==="object"&&b!==null))throw Error(`Tool ${x} expected a Zod schema or ToolAnnotations, but received an unrecognized object`);J=Q.shift()}}let G=Q[0];return this._createRegisteredTool(x,void 0,W,Y,X,J,{taskSupport:"forbidden"},void 0,G)}registerTool(x,Q,W){if(this._registeredTools[x])throw Error(`Tool ${x} is already registered`);let{title:Y,description:X,inputSchema:J,outputSchema:G,annotations:$,_meta:b}=Q;return this._createRegisteredTool(x,Y,X,J,G,$,{taskSupport:"forbidden"},b,W)}prompt(x,...Q){if(this._registeredPrompts[x])throw Error(`Prompt ${x} is already registered`);let W;if(typeof Q[0]==="string")W=Q.shift();let Y;if(Q.length>1)Y=Q.shift();let X=Q[0],J=this._createRegisteredPrompt(x,void 0,W,Y,X);return this.setPromptRequestHandlers(),this.sendPromptListChanged(),J}registerPrompt(x,Q,W){if(this._registeredPrompts[x])throw Error(`Prompt ${x} is already registered`);let{title:Y,description:X,argsSchema:J}=Q,G=this._createRegisteredPrompt(x,Y,X,J,W);return this.setPromptRequestHandlers(),this.sendPromptListChanged(),G}isConnected(){return this.server.transport!==void 0}async sendLoggingMessage(x,Q){return this.server.sendLoggingMessage(x,Q)}sendResourceListChanged(){if(this.isConnected())this.server.sendResourceListChanged()}sendToolListChanged(){if(this.isConnected())this.server.sendToolListChanged()}sendPromptListChanged(){if(this.isConnected())this.server.sendPromptListChanged()}}var vk={type:"object",properties:{}};function YN(x){return x!==null&&typeof x==="object"&&"parse"in x&&typeof x.parse==="function"&&"safeParse"in x&&typeof x.safeParse==="function"}function XN(x){return"_def"in x||"_zod"in x||YN(x)}function oX(x){if(typeof x!=="object"||x===null)return!1;if(XN(x))return!1;if(Object.keys(x).length===0)return!0;return Object.values(x).some(YN)}function QN(x){if(!x)return;if(oX(x))return Ux(x);if(!XN(x))throw Error("inputSchema must be a Zod schema or raw shape, received an unrecognized object");return x}function Bk(x){let Q=T4(x);if(!Q)return[];return Object.entries(Q).map(([W,Y])=>{let X=yv(Y),J=gv(Y);return{name:W,description:X,required:!J}})}function g4(x){let W=T4(x)?.method;if(!W)throw Error("Schema is missing a method literal");let Y=N7(W);if(typeof Y==="string")return Y;throw Error("Schema method literal must be a string")}function WN(x){return{completion:{values:x.slice(0,100),total:x.length,hasMore:x.length>100}}}var b9={completion:{values:[],hasMore:!1}};import GN from"node:process";class dX{append(x){this._buffer=this._buffer?Buffer.concat([this._buffer,x]):x}readMessage(){if(!this._buffer)return null;let x=this._buffer.indexOf(`
67
+ `);if(x===-1)return null;let Q=this._buffer.toString("utf8",0,x).replace(/\r$/,"");return this._buffer=this._buffer.subarray(x+1),wk(Q)}clear(){this._buffer=void 0}}function wk(x){return DB.parse(JSON.parse(x))}function JN(x){return JSON.stringify(x)+`
68
+ `}class rX{constructor(x=GN.stdin,Q=GN.stdout){this._stdin=x,this._stdout=Q,this._readBuffer=new dX,this._started=!1,this._ondata=(W)=>{this._readBuffer.append(W),this.processReadBuffer()},this._onerror=(W)=>{this.onerror?.(W)}}async start(){if(this._started)throw 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)}processReadBuffer(){while(!0)try{let x=this._readBuffer.readMessage();if(x===null)break;this.onmessage?.(x)}catch(x){this.onerror?.(x)}}async close(){if(this._stdin.off("data",this._ondata),this._stdin.off("error",this._onerror),this._stdin.listenerCount("data")===0)this._stdin.pause();this._readBuffer.clear(),this.onclose?.()}send(x){return new Promise((Q)=>{let W=JN(x);if(this._stdout.write(W))Q();else this._stdout.once("drain",Q)})}}import{promises as $N}from"node:fs";import{homedir as bN}from"node:os";import{dirname as Kk,join as z9}from"node:path";var zN=z9(bN(),".figura"),sX=z9(zN,"config.json"),Gr=z9(zN,"figs"),Hk=z9(".figura","config.json");async function tX(x){try{let Q=await $N.readFile(x,"utf8"),W=JSON.parse(Q);if(W&&typeof W==="object")return W;return{}}catch{return{}}}async function vN(x=process.cwd()){let Q=bN(),W=x;for(;;){if(W!==Q){let X=z9(W,Hk);try{return await $N.access(X),X}catch{}}let Y=Kk(W);if(Y===W)return null;W=Y}}function BN(x,Q){if(x!=="global")return"ok";if(Q.mutate&&!Q.allowGlobal)return"refuse";return"warn"}function eX(x,Q,W){return BN(Q,{mutate:x.toUpperCase()!=="GET",allowGlobal:W})==="refuse"}var Vk=2000,qk=150,wN=(x)=>new Promise((Q)=>setTimeout(Q,x));async function KN(x){let Q=x.intervalMs??Vk,W=x.maxPolls??qk,Y=x.errorToleranceMs??0,X=null;for(let J=0;J<W;J++){let G;try{G=await x.fetchJob(),X=null}catch($){if(Y<=0)throw $;if(X??=Date.now(),Date.now()-X>=Y){let b=$ instanceof Error?$.message:String($);throw Error(`Job poll failed: ${b}`)}await wN(Q);continue}if(G.status==="done")return G;if(G.status==="error")throw Error(G.error||"The job failed. Try again.");await wN(Q)}throw Error("Timed out waiting for the job. It may still finish — refresh shortly.")}function HN(x){let Q={name:x.name};if(x.appDescription!==void 0)Q.appDescription=x.appDescription;if(x.tokensBlock!==void 0)Q.tokensBlock=x.tokensBlock;if(x.surfaces!==void 0)Q.surfaces=x.surfaces;if(x.identity!==void 0)Q.identity=x.identity;if(x.platforms!==void 0)Q.platforms=x.platforms;if(x.proseSource!==void 0)Q.proseSource=x.proseSource;return Q}import{createHash as Nk}from"node:crypto";import{existsSync as Uk,readdirSync as xJ,readFileSync as QJ}from"node:fs";import{homedir as Lk}from"node:os";import{fileURLToPath as VN}from"node:url";import{dirname as Fk,join as Ox,relative as Mk,sep as Dk}from"node:path";var ck=".figura-version";var NN="fig";function UN(x){let Q=[],W=(X)=>{for(let J of xJ(X,{withFileTypes:!0})){let G=Ox(X,J.name);if(J.isDirectory())W(G);else if(J.isFile())Q.push(G)}};try{for(let X of xJ(x,{withFileTypes:!0}))if(X.isDirectory()&&X.name===NN)W(Ox(x,X.name))}catch{return null}if(Q.length===0)return null;let Y=Nk("sha256");for(let X of Q.sort()){let J=Mk(x,X).split(Dk).join("/");Y.update(J),Y.update("\x00"),Y.update(QJ(X)),Y.update("\x00")}return Y.digest("hex").slice(0,16)}function qN(x){try{return xJ(x,{withFileTypes:!0}).some((Q)=>Q.isDirectory()&&Uk(Ox(x,Q.name,"SKILL.md")))}catch{return!1}}function LN(){let x=[new URL("../skills/",import.meta.url),new URL("../../skills/",import.meta.url)].map((W)=>VN(W));for(let W of x)if(qN(W))return W;let Q=VN(new URL("./",import.meta.url));for(let W=0;W<8;W++){let Y=Ox(Q,".claude","skills");if(qN(Y))return Y;let X=Fk(Q);if(X===Q)break;Q=X}return null}function jk(){let x=LN();return x?UN(x):null}function Ak(){let x=LN();if(!x)return null;try{return JSON.parse(QJ(Ox(x,"skills.json"),"utf8")).skills?.[NN]?.version??null}catch{return null}}function Ok(x){try{return QJ(Ox(x,ck),"utf8").trim()||null}catch{return null}}function Ik(x,Q){let W=(J)=>{let G=/^\D*(\d+)\.(\d+)\.(\d+)/.exec(J.trim());return G?[Number(G[1]),Number(G[2]),Number(G[3])]:null},Y=W(x),X=W(Q);if(!Y||!X)return!1;for(let J=0;J<3;J++){if(Y[J]>X[J])return!0;if(Y[J]<X[J])return!1}return!1}function Ek(x){let{stamp:Q,installedHash:W,bundledHash:Y,referenceVersion:X}=x;if(W==null)return"absent";if(Y!=null&&W===Y&&Q===X)return"pristine";if(Q!=null&&X!=null&&Ik(X,Q))return"stale";return"modified"}function Sk(x,Q=Ox(Lk(),".claude","skills")){try{let W=Ok(Q),Y=UN(Q),X=jk(),J=Ek({stamp:W,installedHash:Y,bundledHash:X,referenceVersion:Ak()});return{version:W,hash:Y,status:J}}catch{return{version:null,hash:null,status:"absent"}}}function I3(x){return{channel:"mcp",mcpVersion:x,skill:Sk(x)}}function FN(x){if(x==="modified")return"⚠ your fig skill is MODIFIED (differs from figura-cli's shipped version) — run `figura install` to restore it";if(x==="stale")return"⚠ your fig skill is outdated (behind figura-cli) — run `figura install` to reinstall it";return null}import{promises as GJ}from"node:fs";import{homedir as $J}from"node:os";import{join as bJ}from"node:path";var mk=604800000,fk=21600000;function S3(x){try{let Q=new URL(x);return`${Q.protocol}//${Q.host}`.toLowerCase()}catch{return x.trim().toLowerCase().replace(/\/+$/,"")}}async function zJ(x,Q="latest",W){let Y=await Promise.resolve().then(() => (CN(),iN)),X=W!==void 0?W:Y.getUserAgent()??null;if(X){let J=Y.resolveCommand(X,"global",[`${x}@${Q}`]);if(J)return{command:`${J.command} ${J.args.join(" ")}`,generic:!1}}return{command:`npm i -g ${x}@${Q}`,generic:!0}}function vJ(x){return x.generic?`Update with your package manager's global install, e.g. ${x.command}`:`Run: ${x.command}`}function kN(x){if(x==="figura-cli")return{pkg:"figura-cli",cacheFile:bJ($J(),".figura","update-check.json"),minHeader:"x-figura-min-cli",latestHeader:"x-figura-latest-cli",label:"figura",installPkg:"figura-cli"};return{pkg:"figura-mcp",cacheFile:bJ($J(),".figura","update-check-mcp.json"),minHeader:"x-figura-min-mcp",latestHeader:"x-figura-latest-mcp",label:"figura-mcp",installPkg:"figura-mcp"}}function yk(x,Q,W){if(!Q.min&&!Q.latest)return null;let Y={...x},X=!1,J=(G)=>typeof G!=="number"||W-G>=fk;if(Q.min&&(x.min!==Q.min||J(x.minAt)))Y.min=Q.min,Y.minAt=W,X=!0;if(Q.latest&&(x.latest!==Q.latest||J(x.latestAt)))Y.latest=Q.latest,Y.latestAt=W,X=!0;return X?Y:null}function TN(x,Q){return typeof x==="number"&&Q-x<mk}function BJ(x,Q,W){let Y=x.serverAdvice?.[Q];if(!Y)return{};return{min:TN(Y.minAt,W)?Y.min:void 0,latest:TN(Y.latestAt,W)?Y.latest:void 0}}function K9(x,Q){let W=(J)=>{let G=/^\D*(\d+)\.(\d+)\.(\d+)/.exec(J.trim());return G?[Number(G[1]),Number(G[2]),Number(G[3])]:null},Y=W(x),X=W(Q);if(!Y||!X)return!1;for(let J=0;J<3;J++){if(Y[J]>X[J])return!0;if(Y[J]<X[J])return!1}return!1}function gk(x){if(x.CI)return"ci";if(x.FIGURA_NO_UPDATE_NOTIFIER==="1"||x.NO_UPDATE_NOTIFIER==="1")return"opt-out";return null}function hk(x,Q,W,Y){return`⚠ ${x.label} ${Q} → ${W} available. ${Y}`}function ok(x,Q,W,Y){return`⚠ ${x.label} ${Q} is below the minimum supported ${W} — `+`some tools may fail. ${Y}`}function _N(x,Q,W){let Y=x.latest,X=BJ(x,Q,W).latest;if(Y&&X)return K9(X,Y)?X:Y;return Y??X}function ak(x,Q,W,Y,X=Date.now()){let J=BJ(W,Y,X).min;if(J&&K9(J,Q))return{level:"firm",target:J};let G=_N(W,Y,X);if(G&&K9(G,Q))return{level:"stale",target:G};return null}function dk(x,Q,W,Y){return Q.level==="firm"?`Your ${x.label} ${W} is below the minimum supported ${Q.target} — `+`some Figura tools may fail. Ask the user to update: ${Y}`:`${x.label} ${W} → ${Q.target} available. Ask the user to update: ${Y}`}async function uN(x){try{let Q=x.cache??await wJ(x.stream),W=ak(x.stream,x.current,Q,x.origin,x.now);if(!W)return null;let Y=vJ(await zJ(x.stream.installPkg,"latest",x.agent));return dk(x.stream,W,x.current,Y)}catch{return null}}function pN(x,Q){let W=Q(x.minHeader)?.trim(),Y=Q(x.latestHeader)?.trim();return{min:W||void 0,latest:Y||void 0}}async function lN(x,Q,W,Y=Date.now()){try{if(!W.min&&!W.latest)return;let X=await wJ(x),J={...X.serverAdvice??{}},G=yk(J[Q]??{},W,Y);if(!G)return;J[Q]=G,await rk(x,{...X,serverAdvice:J})}catch{}}async function wJ(x){try{let Q=JSON.parse(await GJ.readFile(x.cacheFile,"utf8"));return Q&&typeof Q==="object"?Q:{}}catch{return{}}}async function rk(x,Q){await GJ.mkdir(bJ($J(),".figura"),{recursive:!0,mode:448}),await GJ.writeFile(x.cacheFile,JSON.stringify(Q,null,2)+`
69
+ `,{mode:384})}async function nN(x,Q,W,Y=process.env,X=Date.now()){try{if(gk(Y))return;let J=await wJ(Q),G=BJ(J,W,X).min;if(G&&K9(G,x)){let b=vJ(await zJ(Q.installPkg));process.stderr.write(ok(Q,x,G,b)+`
70
+ `);return}let $=_N(J,W,X);if($&&K9($,x)){let b=vJ(await zJ(Q.installPkg));process.stderr.write(hk(Q,x,$,b)+`
71
+ `)}}catch{}}var tk=F.object({name:F.string(),hex:F.string().describe("3/4/6/8-digit hex, e.g. #1FB6A6 or #1FB6A6FF."),role:F.string().optional(),meaning:F.string().optional()}).passthrough(),ek=F.object({id:F.string().optional(),rule:F.string()}).passthrough(),x_=F.object({colors:F.array(tk).optional(),gradient:F.string().optional(),type:F.object({families:F.record(F.string()).optional(),ramp:F.array(F.number()).optional(),rules:F.string().optional()}).passthrough().optional(),spacing:F.array(F.number()).optional(),radius:F.array(F.number()).optional(),voice:F.object({nouns:F.array(F.string()).optional(),promise:F.string().optional(),lines:F.array(F.string()).optional(),tone:F.string().optional()}).passthrough().optional(),forbidden:F.array(ek).optional()}).passthrough(),HJ=F.object({components:F.array(F.object({name:F.string(),spec:F.string()}).passthrough()).optional(),icons:F.string().optional(),layout:F.string().optional(),surfaces:F.array(F.string()).optional(),bans:F.array(F.string()).optional(),tokensBlock:F.string().optional()}).passthrough(),Q_=F.object({mobile:HJ.optional(),web:HJ.optional(),desktop:HJ.optional()}).passthrough(),W_="https://api.figura.so",Y_="mcp";async function Z3(){let x=await vN(),Q=x?await tX(x):{},W=await tX(sX),Y={...W,...Q},X=process.env.FIGURA_TOKEN||Y.token||void 0,J=process.env.FIGURA_TOKEN?"env":Q.token?"project":W.token?"global":"none",G=(process.env.FIGURA_API_URL||Y.apiUrl||W_).replace(/\/+$/,"");return{token:X,apiUrl:G,team:Y.team,source:J,configPath:J==="project"?x:J==="global"?sX:null}}async function L0(x,Q={}){let W=await Z3(),Y=W.token;if(!Y)throw Error("No Figura token. Run `figura link` in this repo (or `figura login`, or set FIGURA_TOKEN).");let X=(Q.method??"GET").toUpperCase();if(eX(X,W.source,process.env.FIGURA_ALLOW_GLOBAL==="1"))throw Error(`this project isn't linked to a Figura team — the global credential${W.team?` (team '${W.team}')`:""} would receive this write. Ask the user to run \`figura link\` in this repo (or set FIGURA_ALLOW_GLOBAL=1 to use the global team deliberately).`);let J=`${W.apiUrl}${x.startsWith("/")?"":"/"}${x}`,G={Accept:"application/json",Authorization:`Bearer ${Y}`,"X-Figura-Source":Y_},$;if(Q.body!==void 0)G["Content-Type"]="application/json",$=JSON.stringify(Q.body);let b=await o9.request({url:J,method:Q.method??"GET",headers:G,data:$,validateStatus:()=>!0,transformRequest:[(B)=>B],transformResponse:[(B)=>B]});{let B=b.headers,K=(w)=>{let V=B?.[w];return typeof V==="string"?V:void 0};lN(R3,S3(W.apiUrl),pN(R3,K))}let z=typeof b.data==="string"?b.data:"",v=void 0;if(z)try{v=JSON.parse(z)}catch{v=z}if(b.status<200||b.status>=300){let B=v&&typeof v==="object"&&v!==null&&"error"in v?String(v.error):typeof v==="string"&&v?v:b.statusText||`HTTP ${b.status}`;throw Error(`${B} (HTTP ${b.status})`)}return v}var mN=2500,X_=600000,J_=60000;async function G_(x){let Q=Math.ceil(X_/mN);try{return await KN({intervalMs:mN,maxPolls:Q,errorToleranceMs:J_,fetchJob:()=>L0(`/v1/jobs/${encodeURIComponent(x)}`)})}catch(W){let Y=W instanceof Error?W.message:String(W);if(Y.startsWith("Job poll failed:"))throw Error(`Lost contact with the Figura API while waiting for job ${x} (${Y.slice(17)}). `+`The job may still complete — resume by checking GET /v1/jobs/${x} instead of regenerating.`);if(Y.startsWith("Timed out"))throw Error(`Timed out waiting for job ${x} — it may still complete; `+`check GET /v1/jobs/${x} instead of regenerating.`);throw W}}function D0(x){return{content:[{type:"text",text:JSON.stringify(x,null,2)}]}}function P0(x){return{content:[{type:"text",text:x instanceof Error?x.message:String(x)}],isError:!0}}var fN=!1;async function H9(x){try{if(fN)return x;if(!x||typeof x!=="object"||Array.isArray(x))return x;let{apiUrl:Q}=await Z3(),W=await uN({stream:R3,current:S8,origin:S3(Q)});if(!W)return x;return fN=!0,{...x,notice:W}}catch{return x}}function P3(x,Q){if(!x||typeof x!=="object"||Array.isArray(x))return x;let W=FN(Q);if(!W)return x;return{...x,skillWarning:W}}var E8=()=>F.string().optional().describe("Product area / surface the fig belongs to, e.g. 'dashboard', 'settings', 'onboarding'. Free text."),V9=["portrait","landscape","both"],i3=["single","compare","variations"],{version:S8,name:$_}=(()=>{try{let x=JSON.parse(sk(new URL("../package.json",import.meta.url),"utf8"));return{version:typeof x.version==="string"?x.version:"0.0.0",name:typeof x.name==="string"?x.name:void 0}}catch{return{version:"0.0.0"}}})(),R3=kN($_),I0=new aX({name:"figura",version:S8});I0.registerTool("figura_whoami",{title:"Figura: whoami",description:"Return the identity (team, actor, scopes) for the configured Figura token, plus `binding` — which config tier supplied it (env | project | global). A `global` binding means this project is not linked to a team and writes will be refused; ask the user to run `figura link` in the repo.",inputSchema:{}},async()=>{try{let x=await L0("/v1/whoami"),{source:Q,configPath:W}=await Z3();return D0(await H9({...x,binding:{source:Q,configPath:W}}))}catch(x){return P0(x)}});I0.registerTool("figura_set_brand",{title:"Figura: set brand profile",description:'Set (upsert) the team brand profile that the fig generator renders against. Use this to "introduce a repo to Figura": scan the codebase for its design system, synthesize the brand, then push it here. `name` is required. PREFERRED — send a STRUCTURED brand: `identity` (shared colors/gradient/type/spacing/radius/voice/forbidden) + `platforms` (per-platform surfaces, keys mobile|web|desktop) — this makes the brand structured + addressable (is_structured=true). LEGACY/fallback — send prose: `tokensBlock` (freeform design-token reference) + `surfaces` (the product\'s own key areas). `appDescription` is a one-clause product summary. This is a partial merge — fields you omit keep their saved value; a structured write clears the dormant prose columns and a prose write downgrades to legacy. Editing the team brand — confirm with the user before calling.',inputSchema:{name:F.string().describe("Brand / app name (required)."),appDescription:F.string().optional().describe("One clause on what the product is + who it is for."),identity:x_.optional().describe("STRUCTURED shared identity (platform-agnostic): { colors:[{name,hex,role?,meaning?}], gradient?, type?:{families?:{slot:font},ramp?:number[],rules?}, spacing?:number[], radius?:number[], voice?:{nouns?,promise?,lines?,tone?}, forbidden?:[{id?,rule}] }. hex is 3/4/6/8 digits. Sending this makes the brand STRUCTURED (is_structured=true). Validated server-side."),platforms:Q_.optional().describe("STRUCTURED per-platform surfaces — a map keyed by mobile|web|desktop; include ONLY the platforms the product targets: { <platform>: { components?:[{name,spec}], icons?, layout?, surfaces?:string[], bans?:string[], tokensBlock? } }. `tokensBlock` here is a per-platform escape hatch for guidance that does not fit a structured field."),proseSource:F.string().optional().describe(`The human-readable freeform description this structured brand was authored from — stored as the editable source shown in the web brand editor; NOT used by generation. Send it alongside a structured write so a skill/CLI/MCP-authored brand still seeds the web editor's "Author from a description" textarea (a repo scan should pass the prose it synthesized the brand from; a prose→structured upgrade should pass the original prose).`),tokensBlock:F.string().optional().describe("LEGACY prose fallback: freeform plain-text design-token reference (colors + hex + role, type scale + faces, spacing, gradient, voice/conventions). Prefer `identity`/`platforms`. Injected verbatim into the fig-generation prompt."),surfaces:F.array(F.string()).optional().describe(`LEGACY prose fallback: the product's own key areas/sections (e.g. ["Feed", "Settings", "Checkout"]) — read from the repo's real navigation/routes. For a structured brand put surfaces under each platform instead. Pass [] to clear.`)}},async(x)=>{try{return D0(await L0("/brand",{method:"PUT",body:HN(x)}))}catch(Q){return P0(Q)}});I0.registerTool("figura_brand_schema",{title:"Figura: brand schema",description:"Return the JSON Schema for the STRUCTURED brand — the ONE authority (derived server-side from the zod schema PUT /brand validates). Fetch this BEFORE synthesizing a brand for figura_set_brand's `identity`/`platforms`, and author against it so the brand validates first try (strict keys; hex 3/4/6/8 digits; platform keys mobile|web|desktop; no blank array entries). Read-only. Returns { schema }.",inputSchema:{}},async()=>{try{return D0(await L0("/v1/brand/schema"))}catch(x){return P0(x)}});var b_={png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",webp:"image/webp",avif:"image/avif",svg:"image/svg+xml"},VJ=5242880;function yN(x){let Q=x.split(/[?#]/)[0].split(".").pop()?.toLowerCase()??"";return b_[Q]}async function gN(x,Q){let W,Y=Q;if(/^https?:\/\//i.test(x)){let X=await o9.get(x,{responseType:"arraybuffer",maxContentLength:VJ,timeout:30000});if(W=Buffer.from(X.data).toString("base64"),!Y){let J=String(X.headers["content-type"]??"").split(";")[0].trim().toLowerCase();Y=J.startsWith("image/")?J:yN(x)}}else{let{size:X}=await KJ.stat(x);if(X>VJ)throw Error(`'${x}' is ${(X/1048576).toFixed(1)}MB — over the ${VJ/1048576}MB asset limit.`);if(W=(await KJ.readFile(x)).toString("base64"),!Y)Y=yN(x)}if(!Y)throw Error(`Could not determine an image content-type for '${x}' — pass contentType (e.g. image/png).`);return{data:W,contentType:Y}}async function z_(x,Q){let{data:W,contentType:Y}=await gN(x,Q),X=await L0("/v1/assets",{method:"POST",body:{data:W,contentType:Y}});if(!X||typeof X.url!=="string")throw Error("Asset upload did not return a URL.");return X.url}var hN=()=>F.array(F.object({source:F.string().describe("The image — a local file path or an http(s) URL (e.g. a screenshot)."),match:F.string().optional().describe('Exact string in the HTML to replace with the hosted URL (defaults to `source` — i.e. write <img src="<source>"> in the HTML).')})).optional().describe("Images to attach: each is uploaded to durable figura hosting (stable non-expiring URL, allowed by the fig CSP) and substituted into the HTML in place of `match`/`source`. Use for real screenshots/photos/logos instead of base64 data-URIs (HTML size cap) or external URLs (expire/CSP-blocked).");async function oN(x,Q){if(!Q?.length)return{html:x,uploaded:[]};let W=x,Y=[];for(let X of Q){let J=X.match??X.source;if(!W.includes(J))throw Error(`images: '${J}' does not occur in the html — reference it (e.g. <img src="${J}">) so it can be swapped for the hosted URL, or set 'match'.`);let G=await z_(X.source);W=W.split(J).join(G),Y.push({source:X.source,url:G})}return{html:W,uploaded:Y}}function aN(x,Q){if(!Q.length)return x;if(x&&typeof x==="object"&&!Array.isArray(x))return{...x,assets:Q};return{result:x,assets:Q}}I0.registerTool("figura_create_fig",{title:"Figura: create fig",description:"Create a new visualization from an HTML document — this HOSTS it (the create IS the hosting; there is no separate \"land it in Figura\" step). Every create returns `viewUrl`: ALWAYS a link you can open for approval, whether or not the fig is published — the public share url once published, else a team-scoped viewer link only signed-in teammates can open. The fig lands as a workspace DRAFT (`status: 'draft'`): hosted and viewable, visible to its author, but NOT in the team library and silent for teammates — iterate freely without claiming the team's attention, then COMMIT only the session's final recommendation (`commit: true` on that final create/revise, or figura_commit_fig). Do NOT pass publish:true just to get something viewable — omit it (default false) so the fig lands team-private, open `viewUrl` for review, and only publish when the human wants a link they can share outside the team (figura_publish_fig, once approved). The response also carries `brandWarnings` — a deterministic (no-LLM) colors/fonts/radii/spacing diff against the team's brand tokens, WARN-only (never blocks the create). If it comes back non-empty, read it and consider a figura_revise_fig call that binds the missing tokens before telling the user you're done. To include REAL images (screenshots/photos/logos), pass them via `images` — they are uploaded to durable figura hosting and their stable URLs substituted into the HTML. TIP — injected components: if your HTML shows phone frames (a compare/multi-screen mock), wrap each state in <div class=\"fig-device portrait|landscape\"><div class=\"fig-screen\">…</div><div class=\"fig-di\"></div><div class=\"fig-homebar\"></div></div> — Figura injects accurate iPhone frame CSS at save, BEFORE your <style>, so you normally leave those classes alone; if you do style them your rule wins by cascade (the frame still works), but to shrink frames for an overview grid wrap each frame in the injected `.fig-mini` wrapper (e.g. <div class=\"fig-mini\" style=\"--fig-scale:.34\"> … the .fig-device block … </div>) — it scales the device with transform and reserves the scaled layout box — rather than re-declaring .fig-device width/height or adding transform: scale() yourself (which fights the injected geometry), and never CSS zoom (it leaks unzoomed width into horizontal overflow). Same injection applies to an iOS status bar (<div class=\"fig-statusbar\" data-time=\"9:41\"></div>), a compare control bar (.fig-controls/.fig-seg), and the .frame-web browser window.",inputSchema:{html:F.string().describe("The full HTML document for the visualization."),images:hN(),title:F.string().optional().describe("Title (otherwise derived from the HTML)."),description:F.string().optional(),area:E8(),tags:F.array(F.string()).optional(),orientation:F.enum(V9).optional(),mode:F.enum(i3).optional(),model:F.string().optional().describe("Model attribution."),device:F.string().optional().describe("Catalog iPhone id the fig targets (e.g. 'iphone-16', 'iphone-17-pro', 'iphone-se-3') — keys the injected frame/safe-area geometry."),issue:F.number().optional().describe("Linked issue number."),publish:F.boolean().optional().describe("Publish to a shareable public URL on create (requires a paid plan). Default false — the response's `viewUrl` is already open-able team-privately, so only set this when the human explicitly wants a link they can share outside the team. Share link ONLY — does not commit the fig to the team library (that's `commit`)."),commit:F.boolean().optional().describe("Commit to the team library on create (sends status: 'published'). Default false — the fig lands as a workspace DRAFT: hosted + viewable via `viewUrl`, visible to its author, but not in the team library and silent for teammates. Set true ONLY when this write is the session's final recommendation (the fig the user asked for / signed off on); explorations and intermediate iterations stay drafts. Committing later: figura_commit_fig."),prompt:F.string().optional().describe("OPTIONAL: the brief that produced this HTML, if there was one — you wrote the HTML yourself, so Figura never sees a prompt unless you pass it here. Stored on the fig (DB-only, never stamped into the HTML), and returned by figura_get_fig — lets teammates see 'why' this fig exists.")}},async(x)=>{try{let{html:Q,uploaded:W}=await oN(x.html,x.images),Y={html:Q};for(let J of["title","description","area","tags","orientation","mode","model","device","issue","publish","prompt"])if(x[J]!==void 0)Y[J]=x[J];if(x.commit)Y.status="published";let X=I3(S8);return Y.toolchain=X,D0(P3(await H9(aN(await L0("/v1/figs",{method:"POST",body:Y}),W)),X.skill.status))}catch(Q){return P0(Q)}});var v_=["single","compare","variations","overview-focus","document"];I0.registerTool("figura_compose_fig",{title:"Figura: compose fig",description:"PREFERRED way to build a device fig. You write ONLY each screen's CONTENT (the markup inside the phone) + typed params; Figura owns the STRUCTURE — the iPhone frame, the Dynamic Island/notch/home bar, the exact catalog artboard geometry, the REAL safe-area insets, and the composition (grid/diptych/overview). This means the parts that used to drift every few figs — hand-rolled artboards, guessed `--fig-safe-top:59px`, a forgotten `data-device` so no safe machinery stamped — are correct-by-construction: you never write them. Pass `layout` + an ARRAY of `screens`. For every DEVICE layout (single/compare/variations/overview-focus) each screen REQUIRES `device` (a catalog id like 'iphone-16' — fetch figura_fig_devices), `orientation` ('portrait'|'landscape'), and `safeZone` ('respect' = Figura pads your content to the device's real safe insets; 'ignore' = edge-to-edge splash/hero). Each screen's `html` is CONTENT ONLY — do NOT draw a frame, a bezel, a status bar, or safe padding; do NOT set `--fig-safe-*`; do NOT wrap in `.fig-device`. Style your content with brand tokens via `sharedCss` (ONE stylesheet all screens share) + optional per-screen `css`. Layouts: `single` (one frame), `compare` (as-is → proposed diptych — pass label per screen), `overview-focus` (**use for ANY redesign argument or set of candidate directions** — a CSS toggle that OPENS on the full-frame Focus view with state pills; the Overview grid is the alternative behind the second tab), `variations` (a scan-only grid at the kit's ~0.34 device scale with NO toggle — every frame renders ~134px wide, so body copy and annotations are unreadable; use ONLY for a pure catalogue, NEVER to argue a change), `document` (NO device framing — brand/overview figs; screens need no device/orientation/safeZone). Lands EXACTLY like figura_create_fig (workspace DRAFT, returns `viewUrl` + `brandWarnings` + `warnings`; commit the session's final pick). For a `document`/exotic hand-authored fig where you need full control of the HTML, use figura_create_fig instead.",inputSchema:{layout:F.enum(v_).describe("The composition Figura emits."),title:F.string().optional().describe("Fig title (else derived from the HTML)."),description:F.string().optional(),area:E8(),tags:F.array(F.string()).optional(),orientation:F.enum(V9).optional().describe('Fig-level orientation for the persisted row (may be "both").'),device:F.string().optional().describe("Fig-level default catalog device (per-screen `device` still keys each frame)."),sharedCss:F.string().optional().describe("ONE stylesheet ALL screens share — put brand tokens + shared classes here."),screens:F.array(F.object({html:F.string().describe("SCREEN CONTENT markup only — no frame, no bezel, no safe padding."),css:F.string().optional().describe("Optional per-screen content styles (appended unscoped)."),device:F.string().optional().describe("Catalog device id (e.g. 'iphone-16'). REQUIRED for device layouts."),orientation:F.enum(["portrait","landscape"]).optional().describe("REQUIRED for device layouts."),safeZone:F.enum(["respect","ignore"]).optional().describe("REQUIRED for device layouts. 'respect' pads to the real catalog safe insets; 'ignore' is edge-to-edge."),label:F.string().optional().describe("Chrome label (compare/variations chip, focus pill).")})).describe("The screens to compose. One for `single`; two for a `compare` diptych; N for variations/overview-focus/document."),model:F.string().optional().describe("Model attribution."),issue:F.number().optional().describe("Linked issue number."),publish:F.boolean().optional().describe("Publish to a shareable public URL on compose (requires a paid plan). Default false."),commit:F.boolean().optional().describe("Commit to the team library (sends status: 'published'). Default false — lands a workspace draft."),prompt:F.string().optional().describe("OPTIONAL brief that produced this fig (DB-only).")}},async(x)=>{try{let Q={layout:x.layout,screens:x.screens};for(let Y of["title","description","area","tags","orientation","device","sharedCss","model","issue","publish","prompt"])if(x[Y]!==void 0)Q[Y]=x[Y];if(x.commit)Q.status="published";let W=I3(S8);return Q.toolchain=W,D0(P3(await H9(await L0("/v1/figs/compose",{method:"POST",body:Q})),W.skill.status))}catch(Q){return P0(Q)}});I0.registerTool("figura_upload_asset",{title:"Figura: upload asset",description:"Upload a durable image asset and get back a STABLE, figura-hosted URL that never expires — use it in a fig's <img src> instead of a base64 data-URI (bloats the HTML past the publish size) or an external URL that expires (Instagram/CDN signed links). The fig CSP allows figura-hosted images. Provide `path` (a local image file), `url` (an http(s) image to fetch and re-host), or `data` (base64 bytes) + `contentType`. Accepts png/jpeg/gif/webp/avif/svg, up to 5MB. Returns `{ url }`.",inputSchema:{path:F.string().optional().describe("Local path to an image file to upload (content-type inferred from the extension)."),url:F.string().optional().describe("http(s) URL of an image to fetch and re-host (alternative to `path`) — use for expiring/signed source URLs so the fig keeps rendering after they die."),data:F.string().optional().describe("Base64-encoded image bytes (alternative to `path`/`url`). Requires `contentType`."),contentType:F.string().optional().describe("MIME type, e.g. image/png. Required with `data`; inferred from the extension/response for `path`/`url`.")}},async(x)=>{try{let Q=x.path??x.url;if(Q){let{data:W,contentType:Y}=await gN(Q,x.contentType);return D0(await L0("/v1/assets",{method:"POST",body:{data:W,contentType:Y}}))}if(!x.data)throw Error("Provide `path` (a local image file), `url` (an http(s) image), or `data` (base64 bytes).");if(!x.contentType)throw Error("`contentType` is required with `data` — e.g. image/png.");return D0(await L0("/v1/assets",{method:"POST",body:{data:x.data,contentType:x.contentType}}))}catch(Q){return P0(Q)}});I0.registerTool("figura_generate_fig",{title:"Figura: generate fig",description:"Generate a new fig server-side from a natural-language brief, then persist it — this HOSTS it (the create IS the hosting). The engine runs Figura's on-brand generation — you do NOT write the HTML; just describe the screen. SPENDS TEAM CREDITS: only use when the user explicitly opts for a server render; otherwise default to writing the HTML yourself and landing it with figura_create_fig (free, uses the calling model). Runs as an async server job; this call polls until the fig lands (typically 30–90s). Returns the created fig (id, slug) and `viewUrl` — ALWAYS a link you can open for approval (a team-scoped viewer when unpublished, the public share url once published). Like figura_create_fig, the generated fig lands as a workspace DRAFT — not in the team library, silent for teammates — commit the session's final pick with figura_commit_fig. Requires an active paid subscription.",inputSchema:{prompt:F.string().describe("A natural-language brief describing the screen/UI to generate."),area:E8(),orientation:F.enum(V9).optional(),mode:F.enum(i3).optional(),platform:F.enum(["mobile","web"]).optional().describe("Output platform: 'mobile' (iPhone frame) or 'web' (browser frame). When omitted, the engine INFERS it from the brief — a desktop/web/browser/landing-page/dashboard brief renders web, an iPhone/mobile/app-screen brief renders mobile — falling back to mobile only when neither is signalled. Pass this to force a platform regardless of the wording."),device:F.string().optional().describe("Catalog iPhone id to target (e.g. 'iphone-16', 'iphone-17-pro', 'iphone-se-3'). Mobile only; default iphone-16."),title:F.string().optional().describe("Title (otherwise derived from the generated HTML)."),fidelity:F.enum(["fast","high"]).optional().describe("Generation fidelity (default fast)."),publish:F.boolean().optional().describe("Publish to a shareable public URL on create (requires a paid plan). Default false — the response's `viewUrl` is already open-able team-privately, so only set this when the human explicitly wants a link they can share outside the team.")}},async(x)=>{try{let Q={prompt:x.prompt};for(let X of["area","orientation","mode","platform","device","title","publish"])if(x[X]!==void 0)Q[X]=x[X];if(x.fidelity!==void 0)Q.model=x.fidelity;let W=I3(S8);Q.toolchain=W,Q.async=!0;let Y=await L0("/v1/figs/generate",{method:"POST",body:Q});if(Y&&typeof Y==="object"&&typeof Y.jobId==="string"){let X=await G_(Y.jobId),J=X.result??{};return D0(P3(await H9(J.fig??X.result),W.skill.status))}return D0(P3(await H9(Y),W.skill.status))}catch(Q){return P0(Q)}});I0.registerTool("figura_fig_scaffold",{title:"Figura: fig scaffold",description:"Return the CANONICAL fig authoring scaffold — the exact system prompt Figura injects when it renders a fig server-side (design rules + exemplars + accent hints + your team's composed brand + the component/device kit context), composed for a target (platform/device/area/mode/orientation). USE THIS on the hand-build path (before writing a fig's HTML with figura_create_fig): author against this scaffold instead of a hand-maintained copy of the guidance, so your fig follows the SAME rules + brand the server would. Read-only — no fig is created, no credits are spent. Returns { scaffold, platform, mode, orientation, area, device, brand }.",inputSchema:{platform:F.enum(["mobile","web"]).optional().describe("Target platform: 'mobile' (iPhone frame, default) or 'web' (browser frame)."),device:F.string().optional().describe("Catalog iPhone id (e.g. 'iphone-16', 'iphone-17-pro', 'iphone-se-3'). Mobile only; default iphone-16."),area:E8(),orientation:F.enum(V9).optional(),mode:F.enum(i3).optional()}},async(x)=>{try{let Q=new URLSearchParams;for(let Y of["platform","device","area","orientation","mode"])if(x[Y]!==void 0)Q.set(Y,String(x[Y]));let W=Q.toString();return D0(await L0(`/v1/fig/scaffold${W?`?${W}`:""}`))}catch(Q){return P0(Q)}});I0.registerTool("figura_fig_devices",{title:"Figura: fig devices",description:"Return the CANONICAL framed-device catalog — every valid `data-device` id plus its per-device geometry (logical dims portrait/landscape, safe-area insets, cutout island|notch|none, corner radius). USE THIS when authoring a CANVAS COMPOSITION fig that frames a specific phone in-fig (a `.fig-device` element with `data-device` set): pick a real id from here instead of guessing, since an unknown data-device silently gets NO frame. Read-only — no fig is created, no credits are spent. Returns { devices, default }.",inputSchema:{}},async()=>{try{return D0(await L0("/v1/fig/devices"))}catch(x){return P0(x)}});I0.registerTool("figura_revise_fig",{title:"Figura: revise fig",description:"Create a new revision (version) of an existing fig from updated HTML — this HOSTS it, same as create. Returns the new fig (id, slug, version) and `viewUrl` — ALWAYS a link to open and re-review. The revision lands as a workspace DRAFT regardless of the parent's status — not in the team library, silent for teammates — so iterate freely; when a revision is the session's final agreed version, commit it (`commit: true` on that call, or figura_commit_fig). Publishing is NOT inherited from the fig being revised: the new revision defaults to unpublished (a team-scoped viewer `viewUrl`) even if the fig it revises is currently live — the existing public link keeps serving the OLD version until you pass `publish: true` on THIS call, which republishes at the SAME stable link (same publicId across the chain). The new version joins the original fig's chain — it does not replace it in place. Use list_revisions for the chain (rootFig + every version). The response also carries `brandWarnings` — a deterministic (no-LLM) colors/fonts/radii/spacing diff against the team's brand tokens, WARN-only. If it comes back non-empty, consider one more revision that binds the missing tokens. To include REAL images (screenshots/photos/logos), pass them via `images` — uploaded to durable figura hosting, stable URLs substituted into the HTML.",inputSchema:{id:F.string().describe("The fig to revise — its id (`fig_…`), a UUID, a share link/URL, or its publicId."),html:F.string().describe("The full updated HTML document."),images:hN(),title:F.string().optional().describe("Title (otherwise derived from the HTML)."),description:F.string().optional(),area:F.string().optional().describe("Product area / surface; free text. Inherited from the parent if omitted."),tags:F.array(F.string()).optional(),orientation:F.enum(V9).optional().describe("Inherited from the parent if omitted."),mode:F.enum(i3).optional(),model:F.string().optional().describe("Model attribution."),issue:F.number().optional().describe("Linked issue number."),publish:F.boolean().optional().describe("Publish the new revision to a shareable public URL (requires a paid plan). Default false — the response's `viewUrl` is already open-able team-privately. If the fig being revised is ALREADY published, pass true here too or its public link keeps serving the prior version. Share link ONLY — does not commit the revision to the team library (that's `commit`)."),commit:F.boolean().optional().describe("Commit this revision to the team library (sends status: 'published'). Default false — the revision lands as a workspace DRAFT even when the fig it revises is committed. Set true ONLY when this revision is the session's final agreed version; intermediate iterations stay drafts. Committing later: figura_commit_fig."),prompt:F.string().optional().describe("OPTIONAL: the brief/ask that produced this revision, if there was one. Stored on the fig (DB-only, never stamped into the HTML), and returned by figura_get_fig.")}},async(x)=>{try{let{html:Q,uploaded:W}=await oN(x.html,x.images),Y={html:Q};for(let X of["title","description","area","tags","orientation","mode","model","issue","publish","prompt"])if(x[X]!==void 0)Y[X]=x[X];if(x.commit)Y.status="published";return D0(aN(await L0(`/v1/figs/${encodeURIComponent(x.id)}/revise`,{method:"POST",body:Y}),W))}catch(Q){return P0(Q)}});I0.registerTool("figura_list_revisions",{title:"Figura: list revisions",description:"List the full revision chain for a fig (all versions sharing a root), oldest to newest.",inputSchema:{id:F.string().describe("Any fig in the chain — its id (`fig_…`), a UUID, share link/URL, or publicId.")}},async(x)=>{try{return D0(await L0(`/v1/figs/${encodeURIComponent(x.id)}/revisions`))}catch(Q){return P0(Q)}});I0.registerTool("figura_commit_fig",{title:"Figura: commit fig",description:"Commit a fig to the team library (status draft → published). Machine-created figs land as workspace DRAFTS — hosted, viewable via `viewUrl`, visible to their author, but NOT in the team library and silent for teammates. Committing is the explicit act that puts one in the team library and notifies the team (digest-batched) — so commit ONLY the session's final recommendation (the fig the user asked for / signed off on), never every exploration or intermediate iteration. If the final fig is one you're about to create/revise anyway, prefer `commit: true` on that call over a separate commit here. Orthogonal to figura_publish_fig (the public share link): a shared draft's URL resolves fine, and committing creates no link. Idempotent. Pass `uncommit: true` to reverse it (published → draft; the share link is untouched). Returns { id, status, committed, alreadyCommitted, viewUrl }.",inputSchema:{id:F.string().describe("The fig to commit — its id (`fig_…`), a UUID, a share link/URL, or its publicId."),uncommit:F.boolean().optional().describe("Set true to uncommit: the fig leaves the team library back to an author-visible workspace draft. Defaults to false (commit).")}},async(x)=>{try{return D0(await L0(`/v1/figs/${encodeURIComponent(x.id)}/${x.uncommit?"uncommit":"commit"}`,{method:"POST",body:{}}))}catch(Q){return P0(Q)}});I0.registerTool("figura_publish_fig",{title:"Figura: publish fig",description:"Publish (or unpublish) an existing fig to its shareable public URL. The fig is ALREADY hosted and viewable team-privately without this (figura_create_fig/figura_revise_fig's `viewUrl`) — only call this once the human wants a link they can share outside the team. Share link ONLY — it does not put the fig in the team library (that's figura_commit_fig; a shared draft's URL resolves fine). Requires a paid plan. Returns { isPublic, url, publicId, viewUrl }.",inputSchema:{id:F.string().describe("The fig to publish — its id (`fig_…`), a UUID, a share link/URL, or its publicId."),isPublic:F.boolean().optional().describe("Set false to unpublish (make private). Defaults to true (publish).")}},async(x)=>{try{let Q={};if(x.isPublic!==void 0)Q.isPublic=x.isPublic;return D0(await L0(`/v1/figs/${encodeURIComponent(x.id)}/publish`,{method:"POST",body:Q}))}catch(Q){return P0(Q)}});I0.registerTool("figura_list_figs",{title:"Figura: list figs",description:"List visualizations for the team, optionally filtered by area or tag.",inputSchema:{area:E8(),tag:F.string().optional(),limit:F.number().optional(),cursor:F.string().optional()}},async(x)=>{try{let Q=new URLSearchParams;if(x.area)Q.set("area",x.area);if(x.tag)Q.set("tag",x.tag);if(x.limit!==void 0)Q.set("limit",String(x.limit));if(x.cursor)Q.set("cursor",x.cursor);let W=Q.toString();return D0(await L0(`/v1/figs${W?`?${W}`:""}`))}catch(Q){return P0(Q)}});I0.registerTool("figura_get_fig",{title:"Figura: get fig",description:"Fetch a single visualization by id. The response carries `viewUrl` — ALWAYS a link you can open for approval (a team-scoped viewer when unpublished, the public share url once published).",inputSchema:{id:F.string().describe("The fig — its id (`fig_…`), a UUID, a share link/URL, or its publicId.")}},async(x)=>{try{return D0(await L0(`/v1/figs/${encodeURIComponent(x.id)}`))}catch(Q){return P0(Q)}});I0.registerTool("figura_comment",{title:"Figura: comment",description:"Add a comment to a visualization.",inputSchema:{fig_id:F.string().describe("The fig to comment on — its id (`fig_…`), a UUID, a share link/URL, or its publicId."),body:F.string().describe("Comment text.")}},async(x)=>{try{return D0(await L0(`/v1/figs/${encodeURIComponent(x.fig_id)}/comments`,{method:"POST",body:{body:x.body}}))}catch(Q){return P0(Q)}});I0.registerTool("figura_request_feedback",{title:"Figura: request feedback",description:"Ask a teammate to review a fig. Resolve `from` to a team member (by name or email); they get a notification (in-app, push, email) and the discussion happens in the fig's comment thread. Use this when the user says they want a specific person's feedback/eyes/review on a fig. Returns { ok, request: { to, status }, figUrl }.",inputSchema:{id:F.string().describe("The fig to request feedback on — its id (`fig_…`), a UUID, a share link/URL, or its publicId."),from:F.string().describe("The teammate to ask, by name or email (resolved within the team)."),note:F.string().optional().describe("Optional message for them (e.g. what to look at).")}},async(x)=>{try{let Q={from:x.from};if(x.note!==void 0)Q.note=x.note;return D0(await L0(`/v1/figs/${encodeURIComponent(x.id)}/request-feedback`,{method:"POST",body:Q}))}catch(Q){return P0(Q)}});I0.registerTool("figura_list_sources",{title:"Figura: list sources",description:"List the company-brain source-spine connectors for the team, with event counts and last-synced times.",inputSchema:{}},async()=>{try{return D0(await L0("/v1/sources"))}catch(x){return P0(x)}});I0.registerTool("figura_sync_source",{title:"Figura: sync source",description:"Ingest new events from a connected source into the spine. Returns { ingested, fetched, nextCursor }.",inputSchema:{id:F.string().describe("The source id to sync (from figura_list_sources).")}},async(x)=>{try{return D0(await L0(`/v1/sources/${encodeURIComponent(x.id)}/sync`,{method:"POST"}))}catch(Q){return P0(Q)}});I0.registerTool("figura_mine_screens",{title:"Figura: mine screens",description:"Build the app's screen catalog from a connected git source's CURRENT file tree (framework-aware, convention-based — no file bodies, no fig generation, no credits). Returns { screens: [{slug,name,path,framework}], framework, count, commitSha, truncated }.",inputSchema:{id:F.string().describe("The git source id to mine (from figura_list_sources).")}},async(x)=>{try{return D0(await L0(`/v1/sources/${encodeURIComponent(x.id)}/mine-screens`,{method:"POST"}))}catch(Q){return P0(Q)}});I0.registerTool("figura_list_screens",{title:"Figura: list screens",description:"Read the team's mined screen catalog — the app's current screens ({slug,name,path,framework}) plus when it was last mined. Free, read-only. Run figura_mine_screens first to populate it.",inputSchema:{}},async()=>{try{return D0(await L0("/v1/sources/screens"))}catch(x){return P0(x)}});I0.registerTool("figura_update_fig",{title:"Figura: update fig",description:"Update a fig's METADATA only (title/description/area/tags/status). Set status='archived' to soft-delete. For library membership (draft ⇄ published) prefer figura_commit_fig — a status PATCH here is a silent metadata setter that never notifies the team. To change the fig's HTML, use figura_revise_fig — it saves a new version and never destroys the old one. update cannot touch the HTML.",inputSchema:{id:F.string().describe("The fig to update — its id (`fig_…`), a UUID, a share link/URL, or its publicId."),title:F.string().optional(),description:F.string().optional(),area:E8(),tags:F.array(F.string()).optional().describe("Replaces the existing tags."),status:F.enum(["draft","published","archived"]).optional()}},async(x)=>{try{let Q={};if(x.title!==void 0)Q.title=x.title;if(x.description!==void 0)Q.description=x.description;if(x.area!==void 0)Q.area=x.area;if(x.tags!==void 0)Q.tags=x.tags;if(x.status!==void 0)Q.status=x.status;return D0(await L0(`/v1/figs/${encodeURIComponent(x.id)}`,{method:"PATCH",body:Q}))}catch(Q){return P0(Q)}});I0.registerTool("figura_delete_fig",{title:"Figura: delete fig",description:"Archive a fig (soft-delete; leaves the library, public link stops resolving) or permanently delete it with hard=true.",inputSchema:{id:F.string().describe("The fig to delete — its id (`fig_…`), a UUID, a share link/URL, or its publicId."),hard:F.boolean().optional().describe("Permanently delete instead of archive.")}},async(x)=>{try{return D0(await L0(`/v1/figs/${encodeURIComponent(x.id)}${x.hard?"?hard=true":""}`,{method:"DELETE"}))}catch(Q){return P0(Q)}});(async()=>{let{apiUrl:x}=await Z3();await nN(S8,R3,S3(x))})();await I0.connect(new rX);