@loaders.gl/draco 3.3.3 → 3.3.4
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.
|
@@ -92,9 +92,9 @@ caused by: `+Hr.fullStack(r):e.stack};Hr.errorFromList=function(e){return za.arr
|
|
|
92
92
|
`,t(o),t(n.body),t(`\r
|
|
93
93
|
`)}),t("--"+a.boundary+"--"),a.request.postambleCRLF&&t(`\r
|
|
94
94
|
`),i};lc.prototype.onRequest=function(e){var r=this,a=r.isChunked(e),i=e.data||e;r.setHeaders(a),r.chunked=a,r.body=r.build(i,a)};U5.Multipart=lc});var W5=R($5=>{"use strict";var V5=require("url"),dz=/^https?:/;function Lf(e){this.request=e,this.followRedirect=!0,this.followRedirects=!0,this.followAllRedirects=!1,this.followOriginalHttpMethod=!1,this.allowRedirect=function(){return!0},this.maxRedirects=10,this.redirects=[],this.redirectsFollowed=0,this.removeRefererHeader=!1}Lf.prototype.onRequest=function(e){var r=this;e.maxRedirects!==void 0&&(r.maxRedirects=e.maxRedirects),typeof e.followRedirect=="function"&&(r.allowRedirect=e.followRedirect),e.followRedirect!==void 0&&(r.followRedirects=!!e.followRedirect),e.followAllRedirects!==void 0&&(r.followAllRedirects=e.followAllRedirects),(r.followRedirects||r.followAllRedirects)&&(r.redirects=r.redirects||[]),e.removeRefererHeader!==void 0&&(r.removeRefererHeader=e.removeRefererHeader),e.followOriginalHttpMethod!==void 0&&(r.followOriginalHttpMethod=e.followOriginalHttpMethod)};Lf.prototype.redirectTo=function(e){var r=this,a=r.request,i=null;if(e.statusCode>=300&&e.statusCode<400&&e.caseless.has("location")){var t=e.caseless.get("location");if(a.debug("redirect",t),r.followAllRedirects)i=t;else if(r.followRedirects)switch(a.method){case"PATCH":case"PUT":case"POST":case"DELETE":break;default:i=t;break}}else if(e.statusCode===401){var n=a._auth.onResponse(e);n&&(a.setHeader("authorization",n),i=a.uri)}return i};Lf.prototype.onResponse=function(e){var r=this,a=r.request,i=r.redirectTo(e);if(!i||!r.allowRedirect.call(a,e))return!1;if(a.debug("redirect to",i),e.resume&&e.resume(),r.redirectsFollowed>=r.maxRedirects)return a.emit("error",new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+a.uri.href)),!1;r.redirectsFollowed+=1,dz.test(i)||(i=V5.resolve(a.uri.href,i));var t=a.uri;return a.uri=V5.parse(i),a.uri.protocol!==t.protocol&&delete a.agent,r.redirects.push({statusCode:e.statusCode,redirectUri:i}),r.followAllRedirects&&a.method!=="HEAD"&&e.statusCode!==401&&e.statusCode!==307&&(a.method=r.followOriginalHttpMethod?a.method:"GET"),delete a.src,delete a.req,delete a._started,e.statusCode!==401&&e.statusCode!==307&&(delete a.body,delete a._form,a.headers&&(a.removeHeader("host"),a.removeHeader("content-type"),a.removeHeader("content-length"),a.uri.hostname!==a.originalHost.split(":")[0]&&a.removeHeader("authorization"))),r.removeRefererHeader||a.setHeader("referer",t.href),a.emit("redirect"),a.init(),!0};$5.Redirect=Lf});var Q5=R(Ls=>{"use strict";var gW=require("net"),mz=require("tls"),Uv=require("http"),G5=require("https"),vz=require("events"),gz=require("assert"),bz=require("util"),yz=ls().Buffer;Ls.httpOverHttp=xz;Ls.httpsOverHttp=wz;Ls.httpOverHttps=kz;Ls.httpsOverHttps=_z;function xz(e){var r=new rn(e);return r.request=Uv.request,r}function wz(e){var r=new rn(e);return r.request=Uv.request,r.createSocket=K5,r.defaultPort=443,r}function kz(e){var r=new rn(e);return r.request=G5.request,r}function _z(e){var r=new rn(e);return r.request=G5.request,r.createSocket=K5,r.defaultPort=443,r}function rn(e){var r=this;r.options=e||{},r.proxyOptions=r.options.proxy||{},r.maxSockets=r.options.maxSockets||Uv.Agent.defaultMaxSockets,r.requests=[],r.sockets=[],r.on("free",function(i,t,n){for(var o=0,s=r.requests.length;o<s;++o){var c=r.requests[o];if(c.host===t&&c.port===n){r.requests.splice(o,1),c.request.onSocket(i);return}}i.destroy(),r.removeSocket(i)})}bz.inherits(rn,vz.EventEmitter);rn.prototype.addRequest=function(r,a){var i=this;if(typeof a=="string"&&(a={host:a,port:arguments[2],path:arguments[3]}),i.sockets.length>=this.maxSockets){i.requests.push({host:a.host,port:a.port,request:r});return}i.createConnection({host:a.host,port:a.port,request:r})};rn.prototype.createConnection=function(r){var a=this;a.createSocket(r,function(i){i.on("free",t),i.on("close",n),i.on("agentRemove",n),r.request.onSocket(i);function t(){a.emit("free",i,r.host,r.port)}function n(o){a.removeSocket(i),i.removeListener("free",t),i.removeListener("close",n),i.removeListener("agentRemove",n)}})};rn.prototype.createSocket=function(r,a){var i=this,t={};i.sockets.push(t);var n=Y5({},i.proxyOptions,{method:"CONNECT",path:r.host+":"+r.port,agent:!1});n.proxyAuth&&(n.headers=n.headers||{},n.headers["Proxy-Authorization"]="Basic "+yz.from(n.proxyAuth).toString("base64")),Oo("making CONNECT request");var o=i.request(n);o.useChunkedEncodingByDefault=!1,o.once("response",s),o.once("upgrade",c),o.once("connect",f),o.once("error",p),o.end();function s(m){m.upgrade=!0}function c(m,d,v){process.nextTick(function(){f(m,d,v)})}function f(m,d,v){if(o.removeAllListeners(),d.removeAllListeners(),m.statusCode===200)gz.equal(v.length,0),Oo("tunneling connection has established"),i.sockets[i.sockets.indexOf(t)]=d,a(d);else{Oo("tunneling socket could not be established, statusCode=%d",m.statusCode);var y=new Error("tunneling socket could not be established, statusCode="+m.statusCode);y.code="ECONNRESET",r.request.emit("error",y),i.removeSocket(t)}}function p(m){o.removeAllListeners(),Oo(`tunneling socket could not be established, cause=%s
|
|
95
|
-
`,m.message,m.stack);var d=new Error("tunneling socket could not be established, cause="+m.message);d.code="ECONNRESET",r.request.emit("error",d),i.removeSocket(t)}};rn.prototype.removeSocket=function(r){var a=this.sockets.indexOf(r);if(a!==-1){this.sockets.splice(a,1);var i=this.requests.shift();i&&this.createConnection(i)}};function K5(e,r){var a=this;rn.prototype.createSocket.call(a,e,function(i){var t=mz.connect(0,Y5({},a.options,{servername:e.host,socket:i}));a.sockets[a.sockets.indexOf(i)]=t,r(t)})}function Y5(e){for(var r=1,a=arguments.length;r<a;++r){var i=arguments[r];if(typeof i=="object")for(var t=Object.keys(i),n=0,o=t.length;n<o;++n){var s=t[n];i[s]!==void 0&&(e[s]=i[s])}}return e}var Oo;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?Oo=function(){var e=Array.prototype.slice.call(arguments);typeof e[0]=="string"?e[0]="TUNNEL: "+e[0]:e.unshift("TUNNEL:"),console.error.apply(console,e)}:Oo=function(){};Ls.debug=Oo});var e8=R(Z5=>{"use strict";var jz=require("url"),Ez=Q5(),X5=["accept","accept-charset","accept-encoding","accept-language","accept-ranges","cache-control","content-encoding","content-language","content-location","content-md5","content-range","content-type","connection","date","expect","max-forwards","pragma","referer","te","user-agent","via"],J5=["proxy-authorization"];function Sz(e){var r=e.port,a=e.protocol,i=e.hostname+":";return r?i+=r:a==="https:"?i+="443":i+="80",i}function Pz(e,r){var a=r.reduce(function(i,t){return i[t.toLowerCase()]=!0,i},{});return Object.keys(e).filter(function(i){return a[i.toLowerCase()]}).reduce(function(i,t){return i[t]=e[t],i},{})}function Az(e,r){var a=e.proxy,i={proxy:{host:a.hostname,port:+a.port,proxyAuth:a.auth,headers:r},headers:e.headers,ca:e.ca,cert:e.cert,key:e.key,passphrase:e.passphrase,pfx:e.pfx,ciphers:e.ciphers,rejectUnauthorized:e.rejectUnauthorized,secureOptions:e.secureOptions,secureProtocol:e.secureProtocol};return i}function Tz(e,r){var a=e.protocol==="https:"?"https":"http",i=r.protocol==="https:"?"Https":"Http";return[a,i].join("Over")}function Cz(e){var r=e.uri,a=e.proxy,i=Tz(r,a);return Ez[i]}function fc(e){this.request=e,this.proxyHeaderWhiteList=X5,this.proxyHeaderExclusiveList=[],typeof e.tunnel!="undefined"&&(this.tunnelOverride=e.tunnel)}fc.prototype.isEnabled=function(){var e=this,r=e.request;return typeof e.tunnelOverride!="undefined"?e.tunnelOverride:r.uri.protocol==="https:"};fc.prototype.setup=function(e){var r=this,a=r.request;if(e=e||{},typeof a.proxy=="string"&&(a.proxy=jz.parse(a.proxy)),!a.proxy||!a.tunnel)return!1;e.proxyHeaderWhiteList&&(r.proxyHeaderWhiteList=e.proxyHeaderWhiteList),e.proxyHeaderExclusiveList&&(r.proxyHeaderExclusiveList=e.proxyHeaderExclusiveList);var i=r.proxyHeaderExclusiveList.concat(J5),t=r.proxyHeaderWhiteList.concat(i),n=Pz(a.headers,t);n.host=Sz(a.uri),i.forEach(a.removeHeader,a);var o=Cz(a),s=Az(a,n);return a.agent=o(s),!0};fc.defaultProxyHeaderWhiteList=X5;fc.defaultProxyHeaderExclusiveList=J5;Z5.Tunnel=fc});var a8=R((r8,pc)=>{(function(){var e,r,a,i,t,n;typeof performance!="undefined"&&performance!==null&&performance.now?pc.exports=function(){return performance.now()}:typeof process!="undefined"&&process!==null&&process.hrtime?(pc.exports=function(){return(e()-t)/1e6},r=process.hrtime,e=function(){var o;return o=r(),o[0]*1e9+o[1]},i=e(),n=process.uptime()*1e9,t=i-n):Date.now?(pc.exports=function(){return Date.now()-a},a=Date.now()):(pc.exports=function(){return new Date().getTime()-a},a=new Date().getTime())}).call(r8)});var h8=R((xW,p8)=>{"use strict";var qz=require("http"),t8=require("https"),hc=require("url"),Hv=require("util"),Mf=require("stream"),Uf=require("zlib"),Vv=Uw(),Fz=Jw(),Iz=U_(),Oz=hf(),i8=df(),n8=X_(),Rz=Ej(),Bz=fl(),o8=ov(),Dz=qj().strict,Ms=vl(),zz=gd(),Nz=Oj(),Lz=Wj().Querystring,Mz=x5().Har,Uz=T5().Auth,Hz=L5().OAuth,Vz=M5(),$z=H5().Multipart,Wz=W5().Redirect,$v=e8().Tunnel,Us=a8(),dc=ls().Buffer,s8=Ms.safeStringify,Gz=Ms.isReadStream,Kz=Ms.toBase64,Yz=Ms.defer,u8=Ms.copy,Qz=Ms.version,c8=zz.jar(),l8={};function Xz(e,r){var a={};for(var i in r){var t=e.indexOf(i)===-1;t&&(a[i]=r[i])}return a}function Jz(e,r){var a={};for(var i in r){var t=e.indexOf(i)!==-1,n=typeof r[i]=="function";t&&n||(a[i]=r[i])}return a}function f8(){var e=this;return{uri:e.uri,method:e.method,headers:e.headers}}function Zz(){var e=this;return{statusCode:e.statusCode,body:e.body,headers:e.headers,request:f8.call(e.request)}}function Rr(e){var r=this;e.har&&(r._har=new Mz(r),e=r._har.options(e)),Mf.Stream.call(r);var a=Object.keys(Rr.prototype),i=Xz(a,e);Bz(r,i),e=Jz(a,e),r.readable=!0,r.writable=!0,e.method&&(r.explicitMethod=!0),r._qs=new Lz(r),r._auth=new Uz(r),r._oauth=new Hz(r),r._multipart=new $z(r),r._redirect=new Wz(r),r._tunnel=new $v(r),r.init(e)}Hv.inherits(Rr,Mf.Stream);Rr.debug=process.env.NODE_DEBUG&&/\brequest\b/.test(process.env.NODE_DEBUG);function tt(){Rr.debug&&console.error("REQUEST %s",Hv.format.apply(Hv,arguments))}Rr.prototype.debug=tt;Rr.prototype.init=function(e){var r=this;e||(e={}),r.headers=r.headers?u8(r.headers):{};for(var a in r.headers)typeof r.headers[a]=="undefined"&&delete r.headers[a];if(i8.httpify(r,r.headers),r.method||(r.method=e.method||"GET"),r.localAddress||(r.localAddress=e.localAddress),r._qs.init(e),tt(e),!r.pool&&r.pool!==!1&&(r.pool=l8),r.dests=r.dests||[],r.__isRequestRequest=!0,!r._callback&&r.callback&&(r._callback=r.callback,r.callback=function(){r._callbackCalled||(r._callbackCalled=!0,r._callback.apply(r,arguments))},r.on("error",r.callback.bind()),r.on("complete",r.callback.bind(r,null))),!r.uri&&r.url&&(r.uri=r.url,delete r.url),r.baseUrl){if(typeof r.baseUrl!="string")return r.emit("error",new Error("options.baseUrl must be a string"));if(typeof r.uri!="string")return r.emit("error",new Error("options.uri must be a string when using options.baseUrl"));if(r.uri.indexOf("//")===0||r.uri.indexOf("://")!==-1)return r.emit("error",new Error("options.uri must be a path when using options.baseUrl"));var i=r.baseUrl.lastIndexOf("/")===r.baseUrl.length-1,t=r.uri.indexOf("/")===0;i&&t?r.uri=r.baseUrl+r.uri.slice(1):i||t?r.uri=r.baseUrl+r.uri:r.uri===""?r.uri=r.baseUrl:r.uri=r.baseUrl+"/"+r.uri,delete r.baseUrl}if(!r.uri)return r.emit("error",new Error("options.uri is a required argument"));if(typeof r.uri=="string"&&(r.uri=hc.parse(r.uri)),r.uri.href||(r.uri.href=hc.format(r.uri)),r.uri.protocol==="unix:")return r.emit("error",new Error("`unix://` URL scheme is no longer supported. Please use the format `http://unix:SOCKET:PATH`"));if(r.uri.host==="unix"&&r.enableUnixSocket(),r.strictSSL===!1&&(r.rejectUnauthorized=!1),r.uri.pathname||(r.uri.pathname="/"),!(r.uri.host||r.uri.hostname&&r.uri.port)&&!r.uri.isUnix){var n=hc.format(r.uri),o='Invalid URI "'+n+'"';return Object.keys(e).length===0&&(o+=". This can be caused by a crappy redirection."),r.abort(),r.emit("error",new Error(o))}if(r.hasOwnProperty("proxy")||(r.proxy=Nz(r.uri)),r.tunnel=r._tunnel.isEnabled(),r.proxy&&r._tunnel.setup(e),r._redirect.onRequest(e),r.setHost=!1,!r.hasHeader("host")){var s=r.originalHostHeaderName||"host";r.setHeader(s,r.uri.host),r.uri.port&&(r.uri.port==="80"&&r.uri.protocol==="http:"||r.uri.port==="443"&&r.uri.protocol==="https:")&&r.setHeader(s,r.uri.hostname),r.setHost=!0}if(r.jar(r._jar||e.jar),r.uri.port||(r.uri.protocol==="http:"?r.uri.port=80:r.uri.protocol==="https:"&&(r.uri.port=443)),r.proxy&&!r.tunnel?(r.port=r.proxy.port,r.host=r.proxy.hostname):(r.port=r.uri.port,r.host=r.uri.hostname),e.form&&r.form(e.form),e.formData){var c=e.formData,f=r.form(),p=function(B,N){N&&N.hasOwnProperty("value")&&N.hasOwnProperty("options")?f.append(B,N.value,N.options):f.append(B,N)};for(var m in c)if(c.hasOwnProperty(m)){var d=c[m];if(d instanceof Array)for(var v=0;v<d.length;v++)p(m,d[v]);else p(m,d)}}if(e.qs&&r.qs(e.qs),r.uri.path?r.path=r.uri.path:r.path=r.uri.pathname+(r.uri.search||""),r.path.length===0&&(r.path="/"),e.aws&&r.aws(e.aws),e.hawk&&r.hawk(e.hawk),e.httpSignature&&r.httpSignature(e.httpSignature),e.auth&&(Object.prototype.hasOwnProperty.call(e.auth,"username")&&(e.auth.user=e.auth.username),Object.prototype.hasOwnProperty.call(e.auth,"password")&&(e.auth.pass=e.auth.password),r.auth(e.auth.user,e.auth.pass,e.auth.sendImmediately,e.auth.bearer)),r.gzip&&!r.hasHeader("accept-encoding")&&r.setHeader("accept-encoding","gzip, deflate"),r.uri.auth&&!r.hasHeader("authorization")){var y=r.uri.auth.split(":").map(function(B){return r._qs.unescape(B)});r.auth(y[0],y.slice(1).join(":"),!0)}if(!r.tunnel&&r.proxy&&r.proxy.auth&&!r.hasHeader("proxy-authorization")){var S=r.proxy.auth.split(":").map(function(B){return r._qs.unescape(B)}),w="Basic "+Kz(S.join(":"));r.setHeader("proxy-authorization",w)}r.proxy&&!r.tunnel&&(r.path=r.uri.protocol+"//"+r.uri.host+r.path),e.json&&r.json(e.json),e.multipart&&r.multipart(e.multipart),e.time&&(r.timing=!0,r.elapsedTime=r.elapsedTime||0);function P(){if(Dz(r.body)&&(r.body=dc.from(r.body)),!r.hasHeader("content-length")){var B;typeof r.body=="string"?B=dc.byteLength(r.body):Array.isArray(r.body)?B=r.body.reduce(function(N,V){return N+V.length},0):B=r.body.length,B?r.setHeader("content-length",B):r.emit("error",new Error("Argument error, options.body."))}}r.body&&!o8(r.body)&&P(),e.oauth?r.oauth(e.oauth):r._oauth.params&&r.hasHeader("authorization")&&r.oauth(r._oauth.params);var C=r.proxy&&!r.tunnel?r.proxy.protocol:r.uri.protocol,T={"http:":qz,"https:":t8},O=r.httpModules||{};if(r.httpModule=O[C]||T[C],!r.httpModule)return r.emit("error",new Error("Invalid protocol: "+C));if(e.ca&&(r.ca=e.ca),!r.agent)if(e.agentOptions&&(r.agentOptions=e.agentOptions),e.agentClass)r.agentClass=e.agentClass;else if(e.forever){var I=Qz();I.major===0&&I.minor<=10?r.agentClass=C==="http:"?n8:n8.SSL:(r.agentClass=r.httpModule.Agent,r.agentOptions=r.agentOptions||{},r.agentOptions.keepAlive=!0)}else r.agentClass=r.httpModule.Agent;r.pool===!1?r.agent=!1:r.agent=r.agent||r.getNewAgent(),r.on("pipe",function(B){if(r.ntick&&r._started&&r.emit("error",new Error("You cannot pipe to this stream after the outbound request has started.")),r.src=B,Gz(B))r.hasHeader("content-type")||r.setHeader("content-type",Oz.lookup(B.path));else{if(B.headers)for(var N in B.headers)r.hasHeader(N)||r.setHeader(N,B.headers[N]);r._json&&!r.hasHeader("content-type")&&r.setHeader("content-type","application/json"),B.method&&!r.explicitMethod&&(r.method=B.method)}}),Yz(function(){if(!r._aborted){var B=function(){if(r._form&&(r._auth.hasAuth?r._auth.hasAuth&&r._auth.sentAuth&&r._form.pipe(r):r._form.pipe(r)),r._multipart&&r._multipart.chunked&&r._multipart.body.pipe(r),r.body)o8(r.body)?r.body.pipe(r):(P(),Array.isArray(r.body)?r.body.forEach(function(N){r.write(N)}):r.write(r.body),r.end());else if(r.requestBodyStream)console.warn("options.requestBodyStream is deprecated, please pass the request object to stream.pipe."),r.requestBodyStream.pipe(r);else if(!r.src){if(r._auth.hasAuth&&!r._auth.sentAuth){r.end();return}r.method!=="GET"&&typeof r.method!="undefined"&&r.setHeader("content-length",0),r.end()}};r._form&&!r.hasHeader("content-length")?(r.setHeader(r._form.getHeaders(),!0),r._form.getLength(function(N,V){!N&&!isNaN(V)&&r.setHeader("content-length",V),B()})):B(),r.ntick=!0}})};Rr.prototype.getNewAgent=function(){var e=this,r=e.agentClass,a={};if(e.agentOptions)for(var i in e.agentOptions)a[i]=e.agentOptions[i];e.ca&&(a.ca=e.ca),e.ciphers&&(a.ciphers=e.ciphers),e.secureProtocol&&(a.secureProtocol=e.secureProtocol),e.secureOptions&&(a.secureOptions=e.secureOptions),typeof e.rejectUnauthorized!="undefined"&&(a.rejectUnauthorized=e.rejectUnauthorized),e.cert&&e.key&&(a.key=e.key,a.cert=e.cert),e.pfx&&(a.pfx=e.pfx),e.passphrase&&(a.passphrase=e.passphrase);var t="";r!==e.httpModule.Agent&&(t+=r.name);var n=e.proxy;typeof n=="string"&&(n=hc.parse(n));var o=n&&n.protocol==="https:"||this.uri.protocol==="https:";return o&&(a.ca&&(t&&(t+=":"),t+=a.ca),typeof a.rejectUnauthorized!="undefined"&&(t&&(t+=":"),t+=a.rejectUnauthorized),a.cert&&(t&&(t+=":"),t+=a.cert.toString("ascii")+a.key.toString("ascii")),a.pfx&&(t&&(t+=":"),t+=a.pfx.toString("ascii")),a.ciphers&&(t&&(t+=":"),t+=a.ciphers),a.secureProtocol&&(t&&(t+=":"),t+=a.secureProtocol),a.secureOptions&&(t&&(t+=":"),t+=a.secureOptions)),e.pool===l8&&!t&&Object.keys(a).length===0&&e.httpModule.globalAgent?e.httpModule.globalAgent:(t=e.uri.protocol+t,e.pool[t]||(e.pool[t]=new r(a),e.pool.maxSockets&&(e.pool[t].maxSockets=e.pool.maxSockets)),e.pool[t])};Rr.prototype.start=function(){var e=this;if(e.timing)var r=new Date().getTime(),a=Us();if(!e._aborted){e._started=!0,e.method=e.method||"GET",e.href=e.uri.href,e.src&&e.src.stat&&e.src.stat.size&&!e.hasHeader("content-length")&&e.setHeader("content-length",e.src.stat.size),e._aws&&e.aws(e._aws,!0);var i=u8(e);delete i.auth,tt("make request",e.uri.href),delete i.timeout;try{e.req=e.httpModule.request(i)}catch(n){e.emit("error",n);return}e.timing&&(e.startTime=r,e.startTimeNow=a,e.timings={});var t;e.timeout&&!e.timeoutTimer&&(e.timeout<0?t=0:typeof e.timeout=="number"&&isFinite(e.timeout)&&(t=e.timeout)),e.req.on("response",e.onRequestResponse.bind(e)),e.req.on("error",e.onRequestError.bind(e)),e.req.on("drain",function(){e.emit("drain")}),e.req.on("socket",function(n){var o=n._connecting||n.connecting;if(e.timing&&(e.timings.socket=Us()-e.startTimeNow,o)){var s=function(){e.timings.lookup=Us()-e.startTimeNow},c=function(){e.timings.connect=Us()-e.startTimeNow};n.once("lookup",s),n.once("connect",c),e.req.once("error",function(){n.removeListener("lookup",s),n.removeListener("connect",c)})}var f=function(){e.req.setTimeout(t,function(){if(e.req){e.abort();var m=new Error("ESOCKETTIMEDOUT");m.code="ESOCKETTIMEDOUT",m.connect=!1,e.emit("error",m)}})};if(t!==void 0)if(o){var p=function(){n.removeListener("connect",p),e.clearTimeout(),f()};n.on("connect",p),e.req.on("error",function(m){n.removeListener("connect",p)}),e.timeoutTimer=setTimeout(function(){n.removeListener("connect",p),e.abort();var m=new Error("ETIMEDOUT");m.code="ETIMEDOUT",m.connect=!0,e.emit("error",m)},t)}else f();e.emit("socket",n)}),e.emit("request",e.req)}};Rr.prototype.onRequestError=function(e){var r=this;if(!r._aborted){if(r.req&&r.req._reusedSocket&&e.code==="ECONNRESET"&&r.agent.addRequestNoreuse){r.agent={addRequest:r.agent.addRequestNoreuse.bind(r.agent)},r.start(),r.req.end();return}r.clearTimeout(),r.emit("error",e)}};Rr.prototype.onRequestResponse=function(e){var r=this;if(r.timing&&(r.timings.response=Us()-r.startTimeNow),tt("onRequestResponse",r.uri.href,e.statusCode,e.headers),e.on("end",function(){r.timing&&(r.timings.end=Us()-r.startTimeNow,e.timingStart=r.startTime,r.timings.socket||(r.timings.socket=0),r.timings.lookup||(r.timings.lookup=r.timings.socket),r.timings.connect||(r.timings.connect=r.timings.lookup),r.timings.response||(r.timings.response=r.timings.connect),tt("elapsed time",r.timings.end),r.elapsedTime+=Math.round(r.timings.end),e.elapsedTime=r.elapsedTime,e.timings=r.timings,e.timingPhases={wait:r.timings.socket,dns:r.timings.lookup-r.timings.socket,tcp:r.timings.connect-r.timings.lookup,firstByte:r.timings.response-r.timings.connect,download:r.timings.end-r.timings.response,total:r.timings.end}),tt("response end",r.uri.href,e.statusCode,e.headers)}),r._aborted){tt("aborted",r.uri.href),e.resume();return}if(r.response=e,e.request=r,e.toJSON=Zz,r.httpModule===t8&&r.strictSSL&&(!e.hasOwnProperty("socket")||!e.socket.authorized)){tt("strict ssl error",r.uri.href);var a=e.hasOwnProperty("socket")?e.socket.authorizationError:r.uri.href+" does not support SSL";r.emit("error",new Error("SSL Error: "+a));return}r.originalHost=r.getHeader("host"),r.originalHostHeaderName||(r.originalHostHeaderName=r.hasHeader("host")),r.setHost&&r.removeHeader("host"),r.clearTimeout();var i=r._jar&&r._jar.setCookie?r._jar:c8,t=function(p){try{i.setCookie(p,r.uri.href,{ignoreError:!0})}catch(m){r.emit("error",m)}};if(e.caseless=i8(e.headers),e.caseless.has("set-cookie")&&!r._disableCookies){var n=e.caseless.has("set-cookie");Array.isArray(e.headers[n])?e.headers[n].forEach(t):t(e.headers[n])}if(!r._redirect.onResponse(e)){{e.on("close",function(){r._ended||r.response.emit("end")}),e.once("end",function(){r._ended=!0});var o=function(p){return r.method==="HEAD"||p>=100&&p<200||p===204||p===304},s;if(r.gzip&&!o(e.statusCode)){var c=e.headers["content-encoding"]||"identity";c=c.trim().toLowerCase();var f={flush:Uf.Z_SYNC_FLUSH,finishFlush:Uf.Z_SYNC_FLUSH};c==="gzip"?(s=Uf.createGunzip(f),e.pipe(s)):c==="deflate"?(s=Uf.createInflate(f),e.pipe(s)):(c!=="identity"&&tt("ignoring unrecognized Content-Encoding "+c),s=e)}else s=e;r.encoding&&(r.dests.length!==0?console.error("Ignoring encoding parameter as this stream is being piped to another stream which makes the encoding option invalid."):s.setEncoding(r.encoding)),r._paused&&s.pause(),r.responseContent=s,r.emit("response",e),r.dests.forEach(function(p){r.pipeDest(p)}),s.on("data",function(p){r.timing&&!r.responseStarted&&(r.responseStartTime=new Date().getTime(),e.responseStartTime=r.responseStartTime),r._destdata=!0,r.emit("data",p)}),s.once("end",function(p){r.emit("end",p)}),s.on("error",function(p){r.emit("error",p)}),s.on("close",function(){r.emit("close")}),r.callback?r.readResponseBody(e):r.on("end",function(){if(r._aborted){tt("aborted",r.uri.href);return}r.emit("complete",e)})}tt("finish init function",r.uri.href)}};Rr.prototype.readResponseBody=function(e){var r=this;tt("reading response's body");var a=[],i=0,t=[];r.on("data",function(n){dc.isBuffer(n)?n.length&&(i+=n.length,a.push(n)):t.push(n)}),r.on("end",function(){if(tt("end event",r.uri.href),r._aborted){tt("aborted",r.uri.href),a=[],i=0;return}if(i?(tt("has body",r.uri.href,i),e.body=dc.concat(a,i),r.encoding!==null&&(e.body=e.body.toString(r.encoding)),a=[],i=0):t.length&&(r.encoding==="utf8"&&t[0].length>0&&t[0][0]==="\uFEFF"&&(t[0]=t[0].substring(1)),e.body=t.join("")),r._json)try{e.body=JSON.parse(e.body,r._jsonReviver)}catch{tt("invalid JSON received",r.uri.href)}tt("emitting complete",r.uri.href),typeof e.body=="undefined"&&!r._json&&(e.body=r.encoding===null?dc.alloc(0):""),r.emit("complete",e,e.body)})};Rr.prototype.abort=function(){var e=this;e._aborted=!0,e.req?e.req.abort():e.response&&e.response.destroy(),e.clearTimeout(),e.emit("abort")};Rr.prototype.pipeDest=function(e){var r=this,a=r.response;if(e.headers&&!e.headersSent){if(a.caseless.has("content-type")){var i=a.caseless.has("content-type");e.setHeader?e.setHeader(i,a.headers[i]):e.headers[i]=a.headers[i]}if(a.caseless.has("content-length")){var t=a.caseless.has("content-length");e.setHeader?e.setHeader(t,a.headers[t]):e.headers[t]=a.headers[t]}}if(e.setHeader&&!e.headersSent){for(var n in a.headers)(!r.gzip||n!=="content-encoding")&&e.setHeader(n,a.headers[n]);e.statusCode=a.statusCode}r.pipefilter&&r.pipefilter(a,e)};Rr.prototype.qs=function(e,r){var a=this,i;!r&&a.uri.query?i=a._qs.parse(a.uri.query):i={};for(var t in e)i[t]=e[t];var n=a._qs.stringify(i);return n===""||(a.uri=hc.parse(a.uri.href.split("?")[0]+"?"+n),a.url=a.uri,a.path=a.uri.path,a.uri.host==="unix"&&a.enableUnixSocket()),a};Rr.prototype.form=function(e){var r=this;return e?(/^application\/x-www-form-urlencoded\b/.test(r.getHeader("content-type"))||r.setHeader("content-type","application/x-www-form-urlencoded"),r.body=typeof e=="string"?r._qs.rfc3986(e.toString("utf8")):r._qs.stringify(e).toString("utf8"),r):(r._form=new Rz,r._form.on("error",function(a){a.message="form-data: "+a.message,r.emit("error",a),r.abort()}),r._form)};Rr.prototype.multipart=function(e){var r=this;return r._multipart.onRequest(e),r._multipart.chunked||(r.body=r._multipart.body),r};Rr.prototype.json=function(e){var r=this;return r.hasHeader("accept")||r.setHeader("accept","application/json"),typeof r.jsonReplacer=="function"&&(r._jsonReplacer=r.jsonReplacer),r._json=!0,typeof e=="boolean"?r.body!==void 0&&(/^application\/x-www-form-urlencoded\b/.test(r.getHeader("content-type"))?r.body=r._qs.rfc3986(r.body):r.body=s8(r.body,r._jsonReplacer),r.hasHeader("content-type")||r.setHeader("content-type","application/json")):(r.body=s8(e,r._jsonReplacer),r.hasHeader("content-type")||r.setHeader("content-type","application/json")),typeof r.jsonReviver=="function"&&(r._jsonReviver=r.jsonReviver),r};Rr.prototype.getHeader=function(e,r){var a=this,i,t,n;return r||(r=a.headers),Object.keys(r).forEach(function(o){o.length===e.length&&(t=new RegExp(e,"i"),n=o.match(t),n&&(i=r[o]))}),i};Rr.prototype.enableUnixSocket=function(){var e=this.uri.path.split(":"),r=e[0],a=e[1];this.socketPath=r,this.uri.pathname=a,this.uri.path=a,this.uri.host=r,this.uri.hostname=r,this.uri.isUnix=!0};Rr.prototype.auth=function(e,r,a,i){var t=this;return t._auth.onRequest(e,r,a,i),t};Rr.prototype.aws=function(e,r){var a=this;if(!r)return a._aws=e,a;if(e.sign_version===4||e.sign_version==="4"){var i={host:a.uri.host,path:a.uri.path,method:a.method,headers:a.headers,body:a.body};e.service&&(i.service=e.service);var t=Fz.sign(i,{accessKeyId:e.key,secretAccessKey:e.secret,sessionToken:e.session});a.setHeader("authorization",t.headers.Authorization),a.setHeader("x-amz-date",t.headers["X-Amz-Date"]),t.headers["X-Amz-Security-Token"]&&a.setHeader("x-amz-security-token",t.headers["X-Amz-Security-Token"])}else{var n=new Date;a.setHeader("date",n.toUTCString());var o={key:e.key,secret:e.secret,verb:a.method.toUpperCase(),date:n,contentType:a.getHeader("content-type")||"",md5:a.getHeader("content-md5")||"",amazonHeaders:Vv.canonicalizeHeaders(a.headers)},s=a.uri.path;e.bucket&&s?o.resource="/"+e.bucket+s:e.bucket&&!s?o.resource="/"+e.bucket:!e.bucket&&s?o.resource=s:!e.bucket&&!s&&(o.resource="/"),o.resource=Vv.canonicalizeResource(o.resource),a.setHeader("authorization",Vv.authorization(o))}return a};Rr.prototype.httpSignature=function(e){var r=this;return Iz.signRequest({getHeader:function(a){return r.getHeader(a,r.headers)},setHeader:function(a,i){r.setHeader(a,i)},method:r.method,path:r.path},e),tt("httpSignature authorization",r.getHeader("authorization")),r};Rr.prototype.hawk=function(e){var r=this;r.setHeader("Authorization",Vz.header(r.uri,r.method,e))};Rr.prototype.oauth=function(e){var r=this;return r._oauth.onRequest(e),r};Rr.prototype.jar=function(e){var r=this,a;if(r._redirect.redirectsFollowed===0&&(r.originalCookieHeader=r.getHeader("cookie")),!e)a=!1,r._disableCookies=!0;else{var i=e.getCookieString?e:c8,t=r.uri.href;i&&(a=i.getCookieString(t))}return a&&a.length&&(r.originalCookieHeader?r.setHeader("cookie",r.originalCookieHeader+"; "+a):r.setHeader("cookie",a)),r._jar=e,r};Rr.prototype.pipe=function(e,r){var a=this;if(a.response)if(a._destdata)a.emit("error",new Error("You cannot pipe after data has been emitted from the response."));else if(a._ended)a.emit("error",new Error("You cannot pipe after the response has been ended."));else return Mf.Stream.prototype.pipe.call(a,e,r),a.pipeDest(e),e;else return a.dests.push(e),Mf.Stream.prototype.pipe.call(a,e,r),e};Rr.prototype.write=function(){var e=this;if(!e._aborted&&(e._started||e.start(),e.req))return e.req.write.apply(e.req,arguments)};Rr.prototype.end=function(e){var r=this;r._aborted||(e&&r.write(e),r._started||r.start(),r.req&&r.req.end())};Rr.prototype.pause=function(){var e=this;e.responseContent?e.responseContent.pause.apply(e.responseContent,arguments):e._paused=!0};Rr.prototype.resume=function(){var e=this;e.responseContent?e.responseContent.resume.apply(e.responseContent,arguments):e._paused=!1};Rr.prototype.destroy=function(){var e=this;this.clearTimeout(),e._ended?e.response&&e.response.destroy():e.end()};Rr.prototype.clearTimeout=function(){this.timeoutTimer&&(clearTimeout(this.timeoutTimer),this.timeoutTimer=null)};Rr.defaultProxyHeaderWhiteList=$v.defaultProxyHeaderWhiteList.slice();Rr.defaultProxyHeaderExclusiveList=$v.defaultProxyHeaderExclusiveList.slice();Rr.prototype.toJSON=f8;p8.exports=Rr});var v8=R((wW,m8)=>{"use strict";var mc=fl(),d8=gd(),eN=vl(),rN=eN.paramsHaveRequestBody;function Hf(e,r,a){typeof r=="function"&&(a=r);var i={};return r!==null&&typeof r=="object"?mc(i,r,{uri:e}):typeof e=="string"?mc(i,{uri:e}):mc(i,e),i.callback=a||i.callback,i}function qa(e,r,a){if(typeof e=="undefined")throw new Error("undefined is not a valid uri or options object.");var i=Hf(e,r,a);if(i.method==="HEAD"&&rN(i))throw new Error("HTTP HEAD requests MUST NOT include a request body.");return new qa.Request(i)}function no(e){var r=e.toUpperCase();return function(a,i,t){var n=Hf(a,i,t);return n.method=r,qa(n,n.callback)}}qa.get=no("get");qa.head=no("head");qa.options=no("options");qa.post=no("post");qa.put=no("put");qa.patch=no("patch");qa.del=no("delete");qa.delete=no("delete");qa.jar=function(e){return d8.jar(e)};qa.cookie=function(e){return d8.parse(e)};function Wv(e,r,a,i){return function(t,n,o){var s=Hf(t,n,o),c={};return mc(!0,c,r,s),c.pool=s.pool||r.pool,i&&(c.method=i.toUpperCase()),typeof a=="function"&&(e=a),e(c,c.callback)}}qa.defaults=function(e,r){var a=this;e=e||{},typeof e=="function"&&(r=e,e={});var i=Wv(a,e,r),t=["get","head","post","put","patch","del","delete"];return t.forEach(function(n){i[n]=Wv(a[n],e,r,n)}),i.cookie=Wv(a.cookie,e,r),i.jar=a.jar,i.defaults=a.defaults,i};qa.forever=function(e,r){var a={};return r&&mc(a,r),e&&(a.agentOptions=e),a.forever=!0,qa.defaults(a)};m8.exports=qa;qa.Request=h8();qa.initParams=Hf;Object.defineProperty(qa,"debug",{enumerable:!0,get:function(){return qa.Request.debug},set:function(e){qa.Request.debug=e}})});var b8=R((kW,g8)=>{g8.exports=aN;function aN(e){if(!/^data\:/i.test(e))throw new TypeError('`uri` does not appear to be a Data URI (must begin with "data:")');e=e.replace(/\r?\n/g,"");var r=e.indexOf(",");if(r===-1||r<=4)throw new TypeError("malformed data: URI");for(var a=e.substring(5,r).split(";"),i=!1,t="US-ASCII",n=0;n<a.length;n++)a[n]=="base64"?i=!0:a[n].indexOf("charset=")==0&&(t=a[n].substring(8));var o=unescape(e.substring(r+1)),s=i?"base64":"ascii",c=new Buffer(o,s);return c.type=a[0]||"text/plain",c.charset=t,c}});var w8=R((_W,x8)=>{var tN=b8();function iN(e){return{mimeType:oN(nN(e)),data:tN(e)}}function nN(e){return e.substring(5,e.indexOf(";"))}var y8=/^(\w+\/)+/;function oN(e){e=e.toLowerCase();var r=e.match(y8);return!r||!(r=r[1])?e:e.replace(y8,r)}x8.exports=iN});var _8=R((EW,k8)=>{"use strict";var vc=wu(),jW=require("path"),sN=Lx().PNG,uN=_h(),cN=$x(),lN=Gx().GifReader,fN=Jx(),pN=require("fs"),hN=v8(),dN=hf(),mN=w8();function vN(e,r){var a=new sN;a.parse(e,function(i,t){if(i){r(i);return}r(null,vc(new Uint8Array(t.data),[t.width|0,t.height|0,4],[4,4*t.width|0,1],0))})}function gN(e,r){var a;try{a=uN.decode(e)}catch(n){r(n);return}if(!a){r(new Error("Error decoding jpeg"));return}var i=[a.height,a.width,4],t=vc(a.data,i);r(null,t.transpose(1,0))}function bN(e,r){var a;try{a=new lN(e)}catch(s){r(s);return}if(a.numFrames()>0){var i=[a.numFrames(),a.height,a.width,4];try{var t=new Uint8Array(i[0]*i[1]*i[2]*i[3])}catch(s){r(s);return}var n=vc(t,i);try{for(var o=0;o<a.numFrames();++o)a.decodeAndBlitFrameRGBA(o,t.subarray(n.index(o,0,0,0),n.index(o+1,0,0,0)))}catch(s){r(s);return}r(null,n.transpose(0,2,1))}else{var i=[a.height,a.width,4],t=new Uint8Array(i[0]*i[1]*i[2]),n=vc(t,i);try{a.decodeAndBlitFrameRGBA(0,t)}catch(p){r(p);return}r(null,n.transpose(1,0))}}function yN(e,r){var a=new fN(e);try{a.init()}catch(s){r(s);return}var i=a.getData(),t=[i.getHeight(),i.getWidth(),4],n=new Uint8Array(t[0]*t[1]*t[2]),o=vc(n,t);cN(i,o),r(null,o.transpose(1,0))}function Vf(e,r,a){switch(e){case"image/png":vN(r,a);break;case"image/jpg":case"image/jpeg":gN(r,a);break;case"image/gif":bN(r,a);break;case"image/bmp":yN(r,a);break;default:a(new Error("Unsupported file type: "+e))}}k8.exports=function(r,a,i){if(i||(i=a,a=""),Buffer.isBuffer(r)){if(!a){i(new Error("Invalid file type"));return}Vf(a,r,i)}else if(r.indexOf("data:")===0)try{var t=mN(r);t?process.nextTick(function(){Vf(a||t.mimeType,t.data,i)}):process.nextTick(function(){i(new Error("Error parsing data URI"))})}catch(n){process.nextTick(function(){i(n)})}else r.indexOf("http://")===0||r.indexOf("https://")===0?hN({url:r,encoding:null},function(n,o,s){if(n){i(n);return}if(a=a,a||(o.getHeader!==void 0?a=o.getHeader("content-type"):o.headers!==void 0&&(a=o.headers["content-type"])),!a){i(new Error("Invalid content-type"));return}Vf(a,s,i)}):pN.readFile(r,function(n,o){if(n){i(n);return}if(a=a||dN.lookup(r),!a){i(new Error("Invalid file type"));return}Vf(a,o,i)})}});var S8=R(($f,E8)=>{(function(e,r){typeof $f=="object"&&typeof E8!="undefined"?r($f):typeof define=="function"&&define.amd?define(["exports"],r):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e.WebStreamsPolyfill={}))})($f,function(e){"use strict";var r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol:function(u){return"Symbol("+u+")"};function a(){}function i(){if(typeof self!="undefined")return self;if(typeof window!="undefined")return window;if(typeof global!="undefined")return global}var t=i();function n(u){return typeof u=="object"&&u!==null||typeof u=="function"}var o=a,s=Promise,c=Promise.prototype.then,f=Promise.resolve.bind(s),p=Promise.reject.bind(s);function m(u){return new s(u)}function d(u){return f(u)}function v(u){return p(u)}function y(u,h,j){return c.call(u,h,j)}function S(u,h,j){y(y(u,h,j),void 0,o)}function w(u,h){S(u,h)}function P(u,h){S(u,void 0,h)}function C(u,h,j){return y(u,h,j)}function T(u){y(u,void 0,o)}var O=function(){var u=t&&t.queueMicrotask;if(typeof u=="function")return u;var h=d(void 0);return function(j){return y(h,j)}}();function I(u,h,j){if(typeof u!="function")throw new TypeError("Argument is not a function");return Function.prototype.apply.call(u,h,j)}function B(u,h,j){try{return d(I(u,h,j))}catch(D){return v(D)}}var N=16384,V=function(){function u(){this._cursor=0,this._size=0,this._front={_elements:[],_next:void 0},this._back=this._front,this._cursor=0,this._size=0}return Object.defineProperty(u.prototype,"length",{get:function(){return this._size},enumerable:!1,configurable:!0}),u.prototype.push=function(h){var j=this._back,D=j;j._elements.length===N-1&&(D={_elements:[],_next:void 0}),j._elements.push(h),D!==j&&(this._back=D,j._next=D),++this._size},u.prototype.shift=function(){var h=this._front,j=h,D=this._cursor,G=D+1,se=h._elements,be=se[D];return G===N&&(j=h._next,G=0),--this._size,this._cursor=G,h!==j&&(this._front=j),se[D]=void 0,be},u.prototype.forEach=function(h){for(var j=this._cursor,D=this._front,G=D._elements;(j!==G.length||D._next!==void 0)&&!(j===G.length&&(D=D._next,G=D._elements,j=0,G.length===0));)h(G[j]),++j},u.prototype.peek=function(){var h=this._front,j=this._cursor;return h._elements[j]},u}();function $(u,h){u._ownerReadableStream=h,h._reader=u,h._state==="readable"?H(u):h._state==="closed"?re(u):X(u,h._storedError)}function K(u,h){var j=u._ownerReadableStream;return fi(j,h)}function W(u){u._ownerReadableStream._state==="readable"?ce(u,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")):fe(u,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")),u._ownerReadableStream._reader=void 0,u._ownerReadableStream=void 0}function J(u){return new TypeError("Cannot "+u+" a stream using a released reader")}function H(u){u._closedPromise=m(function(h,j){u._closedPromise_resolve=h,u._closedPromise_reject=j})}function X(u,h){H(u),ce(u,h)}function re(u){H(u),pe(u)}function ce(u,h){u._closedPromise_reject!==void 0&&(T(u._closedPromise),u._closedPromise_reject(h),u._closedPromise_resolve=void 0,u._closedPromise_reject=void 0)}function fe(u,h){X(u,h)}function pe(u){u._closedPromise_resolve!==void 0&&(u._closedPromise_resolve(void 0),u._closedPromise_resolve=void 0,u._closedPromise_reject=void 0)}var je=r("[[AbortSteps]]"),ye=r("[[ErrorSteps]]"),Ne=r("[[CancelSteps]]"),Ue=r("[[PullSteps]]"),Be=Number.isFinite||function(u){return typeof u=="number"&&isFinite(u)},U=Math.trunc||function(u){return u<0?Math.ceil(u):Math.floor(u)};function we(u){return typeof u=="object"||typeof u=="function"}function Qe(u,h){if(u!==void 0&&!we(u))throw new TypeError(h+" is not an object.")}function We(u,h){if(typeof u!="function")throw new TypeError(h+" is not a function.")}function $e(u){return typeof u=="object"&&u!==null||typeof u=="function"}function rr(u,h){if(!$e(u))throw new TypeError(h+" is not an object.")}function Fe(u,h,j){if(u===void 0)throw new TypeError("Parameter "+h+" is required in '"+j+"'.")}function he(u,h,j){if(u===void 0)throw new TypeError(h+" is required in '"+j+"'.")}function ke(u){return Number(u)}function ir(u){return u===0?0:u}function Ae(u){return ir(U(u))}function ur(u,h){var j=0,D=Number.MAX_SAFE_INTEGER,G=Number(u);if(G=ir(G),!Be(G))throw new TypeError(h+" is not a finite number");if(G=Ae(G),G<j||G>D)throw new TypeError(h+" is outside the accepted range of "+j+" to "+D+", inclusive");return!Be(G)||G===0?0:G}function Br(u,h){if(!Pn(u))throw new TypeError(h+" is not a ReadableStream.")}function Wr(u){return new Ye(u)}function Z(u,h){u._reader._readRequests.push(h)}function Ie(u,h,j){var D=u._reader,G=D._readRequests.shift();j?G._closeSteps():G._chunkSteps(h)}function Ge(u){return u._reader._readRequests.length}function He(u){var h=u._reader;return!(h===void 0||!Ze(h))}var Ye=function(){function u(h){if(Fe(h,1,"ReadableStreamDefaultReader"),Br(h,"First parameter"),An(h))throw new TypeError("This stream has already been locked for exclusive reading by another reader");$(this,h),this._readRequests=new V}return Object.defineProperty(u.prototype,"closed",{get:function(){return Ze(this)?this._closedPromise:v(mr("closed"))},enumerable:!1,configurable:!0}),u.prototype.cancel=function(h){return h===void 0&&(h=void 0),Ze(this)?this._ownerReadableStream===void 0?v(J("cancel")):K(this,h):v(mr("cancel"))},u.prototype.read=function(){if(!Ze(this))return v(mr("read"));if(this._ownerReadableStream===void 0)return v(J("read from"));var h,j,D=m(function(se,be){h=se,j=be}),G={_chunkSteps:function(se){return h({value:se,done:!1})},_closeSteps:function(){return h({value:void 0,done:!0})},_errorSteps:function(se){return j(se)}};return nr(this,G),D},u.prototype.releaseLock=function(){if(!Ze(this))throw mr("releaseLock");if(this._ownerReadableStream!==void 0){if(this._readRequests.length>0)throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");W(this)}},u}();Object.defineProperties(Ye.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),typeof r.toStringTag=="symbol"&&Object.defineProperty(Ye.prototype,r.toStringTag,{value:"ReadableStreamDefaultReader",configurable:!0});function Ze(u){return!n(u)||!Object.prototype.hasOwnProperty.call(u,"_readRequests")?!1:u instanceof Ye}function nr(u,h){var j=u._ownerReadableStream;j._disturbed=!0,j._state==="closed"?h._closeSteps():j._state==="errored"?h._errorSteps(j._storedError):j._readableStreamController[Ue](h)}function mr(u){return new TypeError("ReadableStreamDefaultReader.prototype."+u+" can only be used on a ReadableStreamDefaultReader")}var Or,vr;typeof r.asyncIterator=="symbol"&&(vr=(Or={},Or[r.asyncIterator]=function(){return this},Or),Object.defineProperty(vr,r.asyncIterator,{enumerable:!1}));var ge=function(){function u(h,j){this._ongoingPromise=void 0,this._isFinished=!1,this._reader=h,this._preventCancel=j}return u.prototype.next=function(){var h=this,j=function(){return h._nextSteps()};return this._ongoingPromise=this._ongoingPromise?C(this._ongoingPromise,j,j):j(),this._ongoingPromise},u.prototype.return=function(h){var j=this,D=function(){return j._returnSteps(h)};return this._ongoingPromise?C(this._ongoingPromise,D,D):D()},u.prototype._nextSteps=function(){var h=this;if(this._isFinished)return Promise.resolve({value:void 0,done:!0});var j=this._reader;if(j._ownerReadableStream===void 0)return v(J("iterate"));var D,G,se=m(function(Je,Sr){D=Je,G=Sr}),be={_chunkSteps:function(Je){h._ongoingPromise=void 0,O(function(){return D({value:Je,done:!1})})},_closeSteps:function(){h._ongoingPromise=void 0,h._isFinished=!0,W(j),D({value:void 0,done:!0})},_errorSteps:function(Je){h._ongoingPromise=void 0,h._isFinished=!0,W(j),G(Je)}};return nr(j,be),se},u.prototype._returnSteps=function(h){if(this._isFinished)return Promise.resolve({value:h,done:!0});this._isFinished=!0;var j=this._reader;if(j._ownerReadableStream===void 0)return v(J("finish iterating"));if(!this._preventCancel){var D=K(j,h);return W(j),C(D,function(){return{value:h,done:!0}})}return W(j),d({value:h,done:!0})},u}(),Ke={next:function(){return Ar(this)?this._asyncIteratorImpl.next():v(lr("next"))},return:function(u){return Ar(this)?this._asyncIteratorImpl.return(u):v(lr("return"))}};vr!==void 0&&Object.setPrototypeOf(Ke,vr);function pr(u,h){var j=Wr(u),D=new ge(j,h),G=Object.create(Ke);return G._asyncIteratorImpl=D,G}function Ar(u){if(!n(u)||!Object.prototype.hasOwnProperty.call(u,"_asyncIteratorImpl"))return!1;try{return u._asyncIteratorImpl instanceof ge}catch{return!1}}function lr(u){return new TypeError("ReadableStreamAsyncIterator."+u+" can only be used on a ReadableSteamAsyncIterator")}var gr=Number.isNaN||function(u){return u!==u};function wr(u){return u.slice()}function or(u,h,j,D,G){new Uint8Array(u).set(new Uint8Array(j,D,G),h)}function cr(u){return u}function Vr(u){return!1}function Cr(u,h,j){if(u.slice)return u.slice(h,j);var D=j-h,G=new ArrayBuffer(D);return or(G,0,u,h,D),G}function _a(u){return!(typeof u!="number"||gr(u)||u<0)}function Fa(u){var h=Cr(u.buffer,u.byteOffset,u.byteOffset+u.byteLength);return new Uint8Array(h)}function it(u){var h=u._queue.shift();return u._queueTotalSize-=h.size,u._queueTotalSize<0&&(u._queueTotalSize=0),h.value}function pt(u,h,j){if(!_a(j)||j===1/0)throw new RangeError("Size must be a finite, non-NaN, non-negative number.");u._queue.push({value:h,size:j}),u._queueTotalSize+=j}function ea(u){var h=u._queue.peek();return h.value}function sa(u){u._queue=new V,u._queueTotalSize=0}var ha=function(){function u(){throw new TypeError("Illegal constructor")}return Object.defineProperty(u.prototype,"view",{get:function(){if(!nt(this))throw ze("view");return this._view},enumerable:!1,configurable:!0}),u.prototype.respond=function(h){if(!nt(this))throw ze("respond");if(Fe(h,1,"respond"),h=ur(h,"First parameter"),this._associatedReadableByteStreamController===void 0)throw new TypeError("This BYOB request has been invalidated");Vr(this._view.buffer),Xe(this._associatedReadableByteStreamController,h)},u.prototype.respondWithNewView=function(h){if(!nt(this))throw ze("respondWithNewView");if(Fe(h,1,"respondWithNewView"),!ArrayBuffer.isView(h))throw new TypeError("You can only respond with array buffer views");if(this._associatedReadableByteStreamController===void 0)throw new TypeError("This BYOB request has been invalidated");Vr(h.buffer),Te(this._associatedReadableByteStreamController,h)},u}();Object.defineProperties(ha.prototype,{respond:{enumerable:!0},respondWithNewView:{enumerable:!0},view:{enumerable:!0}}),typeof r.toStringTag=="symbol"&&Object.defineProperty(ha.prototype,r.toStringTag,{value:"ReadableStreamBYOBRequest",configurable:!0});var Ia=function(){function u(){throw new TypeError("Illegal constructor")}return Object.defineProperty(u.prototype,"byobRequest",{get:function(){if(!da(this))throw ve("byobRequest");return qe(this)},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"desiredSize",{get:function(){if(!da(this))throw ve("desiredSize");return ar(this)},enumerable:!1,configurable:!0}),u.prototype.close=function(){if(!da(this))throw ve("close");if(this._closeRequested)throw new TypeError("The stream has already been closed; do not close it again!");var h=this._controlledReadableByteStream._state;if(h!=="readable")throw new TypeError("The stream (in "+h+" state) is not in the readable state and cannot be closed");Oe(this)},u.prototype.enqueue=function(h){if(!da(this))throw ve("enqueue");if(Fe(h,1,"enqueue"),!ArrayBuffer.isView(h))throw new TypeError("chunk must be an array buffer view");if(h.byteLength===0)throw new TypeError("chunk must have non-zero byteLength");if(h.buffer.byteLength===0)throw new TypeError("chunk's buffer must have non-zero byteLength");if(this._closeRequested)throw new TypeError("stream is closed or draining");var j=this._controlledReadableByteStream._state;if(j!=="readable")throw new TypeError("The stream (in "+j+" state) is not in the readable state and cannot be enqueued to");Ee(this,h)},u.prototype.error=function(h){if(h===void 0&&(h=void 0),!da(this))throw ve("error");Ce(this,h)},u.prototype[Ne]=function(h){ra(this),sa(this);var j=this._cancelAlgorithm(h);return Me(this),j},u.prototype[Ue]=function(h){var j=this._controlledReadableByteStream;if(this._queueTotalSize>0){var D=this._queue.shift();this._queueTotalSize-=D.byteLength,k(this);var G=new Uint8Array(D.buffer,D.byteOffset,D.byteLength);h._chunkSteps(G);return}var se=this._autoAllocateChunkSize;if(se!==void 0){var be=void 0;try{be=new ArrayBuffer(se)}catch(Sr){h._errorSteps(Sr);return}var Je={buffer:be,bufferByteLength:se,byteOffset:0,byteLength:se,bytesFilled:0,elementSize:1,viewConstructor:Uint8Array,readerType:"default"};this._pendingPullIntos.push(Je)}Z(j,h),Na(this)},u}();Object.defineProperties(Ia.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},byobRequest:{enumerable:!0},desiredSize:{enumerable:!0}}),typeof r.toStringTag=="symbol"&&Object.defineProperty(Ia.prototype,r.toStringTag,{value:"ReadableByteStreamController",configurable:!0});function da(u){return!n(u)||!Object.prototype.hasOwnProperty.call(u,"_controlledReadableByteStream")?!1:u instanceof Ia}function nt(u){return!n(u)||!Object.prototype.hasOwnProperty.call(u,"_associatedReadableByteStreamController")?!1:u instanceof ha}function Na(u){var h=xe(u);if(!!h){if(u._pulling){u._pullAgain=!0;return}u._pulling=!0;var j=u._pullAlgorithm();S(j,function(){u._pulling=!1,u._pullAgain&&(u._pullAgain=!1,Na(u))},function(D){Ce(u,D)})}}function ra(u){F(u),u._pendingPullIntos=new V}function Mt(u,h){var j=!1;u._state==="closed"&&(j=!0);var D=x(h);h.readerType==="default"?Ie(u,D,j):le(u,D,j)}function x(u){var h=u.bytesFilled,j=u.elementSize;return new u.viewConstructor(u.buffer,u.byteOffset,h/j)}function b(u,h,j,D){u._queue.push({buffer:h,byteOffset:j,byteLength:D}),u._queueTotalSize+=D}function g(u,h){var j=h.elementSize,D=h.bytesFilled-h.bytesFilled%j,G=Math.min(u._queueTotalSize,h.byteLength-h.bytesFilled),se=h.bytesFilled+G,be=se-se%j,Je=G,Sr=!1;be>D&&(Je=be-h.bytesFilled,Sr=!0);for(var Fr=u._queue;Je>0;){var Dr=Fr.peek(),$r=Math.min(Je,Dr.byteLength),Oa=h.byteOffset+h.bytesFilled;or(h.buffer,Oa,Dr.buffer,Dr.byteOffset,$r),Dr.byteLength===$r?Fr.shift():(Dr.byteOffset+=$r,Dr.byteLength-=$r),u._queueTotalSize-=$r,l(u,$r,h),Je-=$r}return Sr}function l(u,h,j){j.bytesFilled+=h}function k(u){u._queueTotalSize===0&&u._closeRequested?(Me(u),Ws(u._controlledReadableByteStream)):Na(u)}function F(u){u._byobRequest!==null&&(u._byobRequest._associatedReadableByteStreamController=void 0,u._byobRequest._view=null,u._byobRequest=null)}function L(u){for(;u._pendingPullIntos.length>0;){if(u._queueTotalSize===0)return;var h=u._pendingPullIntos.peek();g(u,h)&&(Le(u),Mt(u._controlledReadableByteStream,h))}}function Y(u,h,j){var D=u._controlledReadableByteStream,G=1;h.constructor!==DataView&&(G=h.constructor.BYTES_PER_ELEMENT);var se=h.constructor,be=cr(h.buffer),Je={buffer:be,bufferByteLength:be.byteLength,byteOffset:h.byteOffset,byteLength:h.byteLength,bytesFilled:0,elementSize:G,viewConstructor:se,readerType:"byob"};if(u._pendingPullIntos.length>0){u._pendingPullIntos.push(Je),ee(D,j);return}if(D._state==="closed"){var Sr=new se(Je.buffer,Je.byteOffset,0);j._closeSteps(Sr);return}if(u._queueTotalSize>0){if(g(u,Je)){var Fr=x(Je);k(u),j._chunkSteps(Fr);return}if(u._closeRequested){var Dr=new TypeError("Insufficient bytes to fill elements in the given buffer");Ce(u,Dr),j._errorSteps(Dr);return}}u._pendingPullIntos.push(Je),ee(D,j),Na(u)}function te(u,h){var j=u._controlledReadableByteStream;if(ae(j))for(;oe(j)>0;){var D=Le(u);Mt(j,D)}}function de(u,h,j){if(l(u,h,j),!(j.bytesFilled<j.elementSize)){Le(u);var D=j.bytesFilled%j.elementSize;if(D>0){var G=j.byteOffset+j.bytesFilled,se=Cr(j.buffer,G-D,G);b(u,se,0,se.byteLength)}j.bytesFilled-=D,Mt(u._controlledReadableByteStream,j),L(u)}}function me(u,h){var j=u._pendingPullIntos.peek();F(u);var D=u._controlledReadableByteStream._state;D==="closed"?te(u):de(u,h,j),Na(u)}function Le(u){var h=u._pendingPullIntos.shift();return h}function xe(u){var h=u._controlledReadableByteStream;if(h._state!=="readable"||u._closeRequested||!u._started)return!1;if(He(h)&&Ge(h)>0||ae(h)&&oe(h)>0)return!0;var j=ar(u);return j>0}function Me(u){u._pullAlgorithm=void 0,u._cancelAlgorithm=void 0}function Oe(u){var h=u._controlledReadableByteStream;if(!(u._closeRequested||h._state!=="readable")){if(u._queueTotalSize>0){u._closeRequested=!0;return}if(u._pendingPullIntos.length>0){var j=u._pendingPullIntos.peek();if(j.bytesFilled>0){var D=new TypeError("Insufficient bytes to fill elements in the given buffer");throw Ce(u,D),D}}Me(u),Ws(h)}}function Ee(u,h){var j=u._controlledReadableByteStream;if(!(u._closeRequested||j._state!=="readable")){var D=h.buffer,G=h.byteOffset,se=h.byteLength,be=cr(D);if(u._pendingPullIntos.length>0){var Je=u._pendingPullIntos.peek();Vr(Je.buffer),Je.buffer=cr(Je.buffer)}if(F(u),He(j))if(Ge(j)===0)b(u,be,G,se);else{u._pendingPullIntos.length>0&&Le(u);var Sr=new Uint8Array(be,G,se);Ie(j,Sr,!1)}else ae(j)?(b(u,be,G,se),L(u)):b(u,be,G,se);Na(u)}}function Ce(u,h){var j=u._controlledReadableByteStream;j._state==="readable"&&(ra(u),sa(u),Me(u),b0(j,h))}function qe(u){if(u._byobRequest===null&&u._pendingPullIntos.length>0){var h=u._pendingPullIntos.peek(),j=new Uint8Array(h.buffer,h.byteOffset+h.bytesFilled,h.byteLength-h.bytesFilled),D=Object.create(ha.prototype);De(D,u,j),u._byobRequest=D}return u._byobRequest}function ar(u){var h=u._controlledReadableByteStream._state;return h==="errored"?null:h==="closed"?0:u._strategyHWM-u._queueTotalSize}function Xe(u,h){var j=u._pendingPullIntos.peek(),D=u._controlledReadableByteStream._state;if(D==="closed"){if(h!==0)throw new TypeError("bytesWritten must be 0 when calling respond() on a closed stream")}else{if(h===0)throw new TypeError("bytesWritten must be greater than 0 when calling respond() on a readable stream");if(j.bytesFilled+h>j.byteLength)throw new RangeError("bytesWritten out of range")}j.buffer=cr(j.buffer),me(u,h)}function Te(u,h){var j=u._pendingPullIntos.peek(),D=u._controlledReadableByteStream._state;if(D==="closed"){if(h.byteLength!==0)throw new TypeError("The view's length must be 0 when calling respondWithNewView() on a closed stream")}else if(h.byteLength===0)throw new TypeError("The view's length must be greater than 0 when calling respondWithNewView() on a readable stream");if(j.byteOffset+j.bytesFilled!==h.byteOffset)throw new RangeError("The region specified by view does not match byobRequest");if(j.bufferByteLength!==h.buffer.byteLength)throw new RangeError("The buffer of view has different capacity than byobRequest");if(j.bytesFilled+h.byteLength>j.byteLength)throw new RangeError("The region specified by view is larger than byobRequest");var G=h.byteLength;j.buffer=cr(h.buffer),me(u,G)}function Se(u,h,j,D,G,se,be){h._controlledReadableByteStream=u,h._pullAgain=!1,h._pulling=!1,h._byobRequest=null,h._queue=h._queueTotalSize=void 0,sa(h),h._closeRequested=!1,h._started=!1,h._strategyHWM=se,h._pullAlgorithm=D,h._cancelAlgorithm=G,h._autoAllocateChunkSize=be,h._pendingPullIntos=new V,u._readableStreamController=h;var Je=j();S(d(Je),function(){h._started=!0,Na(h)},function(Sr){Ce(h,Sr)})}function Pe(u,h,j){var D=Object.create(Ia.prototype),G=function(){},se=function(){return d(void 0)},be=function(){return d(void 0)};h.start!==void 0&&(G=function(){return h.start(D)}),h.pull!==void 0&&(se=function(){return h.pull(D)}),h.cancel!==void 0&&(be=function(Sr){return h.cancel(Sr)});var Je=h.autoAllocateChunkSize;if(Je===0)throw new TypeError("autoAllocateChunkSize must be greater than 0");Se(u,D,G,se,be,j,Je)}function De(u,h,j){u._associatedReadableByteStreamController=h,u._view=j}function ze(u){return new TypeError("ReadableStreamBYOBRequest.prototype."+u+" can only be used on a ReadableStreamBYOBRequest")}function ve(u){return new TypeError("ReadableByteStreamController.prototype."+u+" can only be used on a ReadableByteStreamController")}function Q(u){return new ne(u)}function ee(u,h){u._reader._readIntoRequests.push(h)}function le(u,h,j){var D=u._reader,G=D._readIntoRequests.shift();j?G._closeSteps(h):G._chunkSteps(h)}function oe(u){return u._reader._readIntoRequests.length}function ae(u){var h=u._reader;return!(h===void 0||!Ve(h))}var ne=function(){function u(h){if(Fe(h,1,"ReadableStreamBYOBReader"),Br(h,"First parameter"),An(h))throw new TypeError("This stream has already been locked for exclusive reading by another reader");if(!da(h._readableStreamController))throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");$(this,h),this._readIntoRequests=new V}return Object.defineProperty(u.prototype,"closed",{get:function(){return Ve(this)?this._closedPromise:v(tr("closed"))},enumerable:!1,configurable:!0}),u.prototype.cancel=function(h){return h===void 0&&(h=void 0),Ve(this)?this._ownerReadableStream===void 0?v(J("cancel")):K(this,h):v(tr("cancel"))},u.prototype.read=function(h){if(!Ve(this))return v(tr("read"));if(!ArrayBuffer.isView(h))return v(new TypeError("view must be an array buffer view"));if(h.byteLength===0)return v(new TypeError("view must have non-zero byteLength"));if(h.buffer.byteLength===0)return v(new TypeError("view's buffer must have non-zero byteLength"));if(Vr(h.buffer),this._ownerReadableStream===void 0)return v(J("read from"));var j,D,G=m(function(be,Je){j=be,D=Je}),se={_chunkSteps:function(be){return j({value:be,done:!1})},_closeSteps:function(be){return j({value:be,done:!0})},_errorSteps:function(be){return D(be)}};return fr(this,h,se),G},u.prototype.releaseLock=function(){if(!Ve(this))throw tr("releaseLock");if(this._ownerReadableStream!==void 0){if(this._readIntoRequests.length>0)throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");W(this)}},u}();Object.defineProperties(ne.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),typeof r.toStringTag=="symbol"&&Object.defineProperty(ne.prototype,r.toStringTag,{value:"ReadableStreamBYOBReader",configurable:!0});function Ve(u){return!n(u)||!Object.prototype.hasOwnProperty.call(u,"_readIntoRequests")?!1:u instanceof ne}function fr(u,h,j){var D=u._ownerReadableStream;D._disturbed=!0,D._state==="errored"?j._errorSteps(D._storedError):Y(D._readableStreamController,h,j)}function tr(u){return new TypeError("ReadableStreamBYOBReader.prototype."+u+" can only be used on a ReadableStreamBYOBReader")}function sr(u,h){var j=u.highWaterMark;if(j===void 0)return h;if(gr(j)||j<0)throw new RangeError("Invalid highWaterMark");return j}function z(u){var h=u.size;return h||function(){return 1}}function yr(u,h){Qe(u,h);var j=u==null?void 0:u.highWaterMark,D=u==null?void 0:u.size;return{highWaterMark:j===void 0?void 0:ke(j),size:D===void 0?void 0:Pr(D,h+" has member 'size' that")}}function Pr(u,h){return We(u,h),function(j){return ke(u(j))}}function kr(u,h){Qe(u,h);var j=u==null?void 0:u.abort,D=u==null?void 0:u.close,G=u==null?void 0:u.start,se=u==null?void 0:u.type,be=u==null?void 0:u.write;return{abort:j===void 0?void 0:hr(j,u,h+" has member 'abort' that"),close:D===void 0?void 0:Er(D,u,h+" has member 'close' that"),start:G===void 0?void 0:_r(G,u,h+" has member 'start' that"),write:be===void 0?void 0:aa(be,u,h+" has member 'write' that"),type:se}}function hr(u,h,j){return We(u,j),function(D){return B(u,h,[D])}}function Er(u,h,j){return We(u,j),function(){return B(u,h,[])}}function _r(u,h,j){return We(u,j),function(D){return I(u,h,[D])}}function aa(u,h,j){return We(u,j),function(D,G){return B(u,h,[D,G])}}function Tr(u,h){if(!Re(u))throw new TypeError(h+" is not a WritableStream.")}function _(u){if(typeof u!="object"||u===null)return!1;try{return typeof u.aborted=="boolean"}catch{return!1}}var E=typeof AbortController=="function";function A(){if(E)return new AbortController}var M=function(){function u(h,j){h===void 0&&(h={}),j===void 0&&(j={}),h===void 0?h=null:rr(h,"First parameter");var D=yr(j,"Second parameter"),G=kr(h,"First parameter");_e(this);var se=G.type;if(se!==void 0)throw new RangeError("Invalid type is specified");var be=z(D),Je=sr(D,1);N8(this,G,Je,be)}return Object.defineProperty(u.prototype,"locked",{get:function(){if(!Re(this))throw kc("locked");return qr(this)},enumerable:!1,configurable:!0}),u.prototype.abort=function(h){return h===void 0&&(h=void 0),Re(this)?qr(this)?v(new TypeError("Cannot abort a stream that already has a writer")):ua(this,h):v(kc("abort"))},u.prototype.close=function(){return Re(this)?qr(this)?v(new TypeError("Cannot close a stream that already has a writer")):li(this)?v(new TypeError("Cannot close an already-closing stream")):ot(this):v(kc("close"))},u.prototype.getWriter=function(){if(!Re(this))throw kc("getWriter");return ie(this)},u}();Object.defineProperties(M.prototype,{abort:{enumerable:!0},close:{enumerable:!0},getWriter:{enumerable:!0},locked:{enumerable:!0}}),typeof r.toStringTag=="symbol"&&Object.defineProperty(M.prototype,r.toStringTag,{value:"WritableStream",configurable:!0});function ie(u){return new Bo(u)}function ue(u,h,j,D,G,se){G===void 0&&(G=1),se===void 0&&(se=function(){return 1});var be=Object.create(M.prototype);_e(be);var Je=Object.create(co.prototype);return n0(be,Je,u,h,j,D,G,se),be}function _e(u){u._state="writable",u._storedError=void 0,u._writer=void 0,u._writableStreamController=void 0,u._writeRequests=new V,u._inFlightWriteRequest=void 0,u._closeRequest=void 0,u._inFlightCloseRequest=void 0,u._pendingAbortRequest=void 0,u._backpressure=!1}function Re(u){return!n(u)||!Object.prototype.hasOwnProperty.call(u,"_writableStreamController")?!1:u instanceof M}function qr(u){return u._writer!==void 0}function ua(u,h){var j;if(u._state==="closed"||u._state==="errored")return d(void 0);u._writableStreamController._abortReason=h,(j=u._writableStreamController._abortController)===null||j===void 0||j.abort();var D=u._state;if(D==="closed"||D==="errored")return d(void 0);if(u._pendingAbortRequest!==void 0)return u._pendingAbortRequest._promise;var G=!1;D==="erroring"&&(G=!0,h=void 0);var se=m(function(be,Je){u._pendingAbortRequest={_promise:void 0,_resolve:be,_reject:Je,_reason:h,_wasAlreadyErroring:G}});return u._pendingAbortRequest._promise=se,G||an(u,h),se}function ot(u){var h=u._state;if(h==="closed"||h==="errored")return v(new TypeError("The stream (in "+h+" state) is not in the writable state and cannot be closed"));var j=m(function(G,se){var be={_resolve:G,_reject:se};u._closeRequest=be}),D=u._writer;return D!==void 0&&u._backpressure&&h==="writable"&&ep(D),L8(u._writableStreamController),j}function st(u){var h=m(function(j,D){var G={_resolve:j,_reject:D};u._writeRequests.push(G)});return h}function jt(u,h){var j=u._state;if(j==="writable"){an(u,h);return}ht(u)}function an(u,h){var j=u._writableStreamController;u._state="erroring",u._storedError=h;var D=u._writer;D!==void 0&&r0(D,h),!F8(u)&&j._started&&ht(u)}function ht(u){u._state="errored",u._writableStreamController[ye]();var h=u._storedError;if(u._writeRequests.forEach(function(G){G._reject(h)}),u._writeRequests=new V,u._pendingAbortRequest===void 0){yc(u);return}var j=u._pendingAbortRequest;if(u._pendingAbortRequest=void 0,j._wasAlreadyErroring){j._reject(h),yc(u);return}var D=u._writableStreamController[je](j._reason);S(D,function(){j._resolve(),yc(u)},function(G){j._reject(G),yc(u)})}function qt(u){u._inFlightWriteRequest._resolve(void 0),u._inFlightWriteRequest=void 0}function so(u,h){u._inFlightWriteRequest._reject(h),u._inFlightWriteRequest=void 0,jt(u,h)}function ci(u){u._inFlightCloseRequest._resolve(void 0),u._inFlightCloseRequest=void 0;var h=u._state;h==="erroring"&&(u._storedError=void 0,u._pendingAbortRequest!==void 0&&(u._pendingAbortRequest._resolve(),u._pendingAbortRequest=void 0)),u._state="closed";var j=u._writer;j!==void 0&&c0(j)}function Ro(u,h){u._inFlightCloseRequest._reject(h),u._inFlightCloseRequest=void 0,u._pendingAbortRequest!==void 0&&(u._pendingAbortRequest._reject(h),u._pendingAbortRequest=void 0),jt(u,h)}function li(u){return!(u._closeRequest===void 0&&u._inFlightCloseRequest===void 0)}function F8(u){return!(u._inFlightWriteRequest===void 0&&u._inFlightCloseRequest===void 0)}function I8(u){u._inFlightCloseRequest=u._closeRequest,u._closeRequest=void 0}function O8(u){u._inFlightWriteRequest=u._writeRequests.shift()}function yc(u){u._closeRequest!==void 0&&(u._closeRequest._reject(u._storedError),u._closeRequest=void 0);var h=u._writer;h!==void 0&&Jf(h,u._storedError)}function Gf(u,h){var j=u._writer;j!==void 0&&h!==u._backpressure&&(h?G8(j):ep(j)),u._backpressure=h}var Bo=function(){function u(h){if(Fe(h,1,"WritableStreamDefaultWriter"),Tr(h,"First parameter"),qr(h))throw new TypeError("This stream has already been locked for exclusive writing by another writer");this._ownerWritableStream=h,h._writer=this;var j=h._state;if(j==="writable")!li(h)&&h._backpressure?jc(this):l0(this),_c(this);else if(j==="erroring")Zf(this,h._storedError),_c(this);else if(j==="closed")l0(this),$8(this);else{var D=h._storedError;Zf(this,D),u0(this,D)}}return Object.defineProperty(u.prototype,"closed",{get:function(){return uo(this)?this._closedPromise:v(lo("closed"))},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"desiredSize",{get:function(){if(!uo(this))throw lo("desiredSize");if(this._ownerWritableStream===void 0)throw Hs("desiredSize");return z8(this)},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"ready",{get:function(){return uo(this)?this._readyPromise:v(lo("ready"))},enumerable:!1,configurable:!0}),u.prototype.abort=function(h){return h===void 0&&(h=void 0),uo(this)?this._ownerWritableStream===void 0?v(Hs("abort")):R8(this,h):v(lo("abort"))},u.prototype.close=function(){if(!uo(this))return v(lo("close"));var h=this._ownerWritableStream;return h===void 0?v(Hs("close")):li(h)?v(new TypeError("Cannot close an already-closing stream")):e0(this)},u.prototype.releaseLock=function(){if(!uo(this))throw lo("releaseLock");var h=this._ownerWritableStream;h!==void 0&&a0(this)},u.prototype.write=function(h){return h===void 0&&(h=void 0),uo(this)?this._ownerWritableStream===void 0?v(Hs("write to")):t0(this,h):v(lo("write"))},u}();Object.defineProperties(Bo.prototype,{abort:{enumerable:!0},close:{enumerable:!0},releaseLock:{enumerable:!0},write:{enumerable:!0},closed:{enumerable:!0},desiredSize:{enumerable:!0},ready:{enumerable:!0}}),typeof r.toStringTag=="symbol"&&Object.defineProperty(Bo.prototype,r.toStringTag,{value:"WritableStreamDefaultWriter",configurable:!0});function uo(u){return!n(u)||!Object.prototype.hasOwnProperty.call(u,"_ownerWritableStream")?!1:u instanceof Bo}function R8(u,h){var j=u._ownerWritableStream;return ua(j,h)}function e0(u){var h=u._ownerWritableStream;return ot(h)}function B8(u){var h=u._ownerWritableStream,j=h._state;return li(h)||j==="closed"?d(void 0):j==="errored"?v(h._storedError):e0(u)}function D8(u,h){u._closedPromiseState==="pending"?Jf(u,h):W8(u,h)}function r0(u,h){u._readyPromiseState==="pending"?f0(u,h):K8(u,h)}function z8(u){var h=u._ownerWritableStream,j=h._state;return j==="errored"||j==="erroring"?null:j==="closed"?0:o0(h._writableStreamController)}function a0(u){var h=u._ownerWritableStream,j=new TypeError("Writer was released and can no longer be used to monitor the stream's closedness");r0(u,j),D8(u,j),h._writer=void 0,u._ownerWritableStream=void 0}function t0(u,h){var j=u._ownerWritableStream,D=j._writableStreamController,G=M8(D,h);if(j!==u._ownerWritableStream)return v(Hs("write to"));var se=j._state;if(se==="errored")return v(j._storedError);if(li(j)||se==="closed")return v(new TypeError("The stream is closing or closed and cannot be written to"));if(se==="erroring")return v(j._storedError);var be=st(j);return U8(D,h,G),be}var i0={},co=function(){function u(){throw new TypeError("Illegal constructor")}return Object.defineProperty(u.prototype,"abortReason",{get:function(){if(!Kf(this))throw Xf("abortReason");return this._abortReason},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"signal",{get:function(){if(!Kf(this))throw Xf("signal");if(this._abortController===void 0)throw new TypeError("WritableStreamDefaultController.prototype.signal is not supported");return this._abortController.signal},enumerable:!1,configurable:!0}),u.prototype.error=function(h){if(h===void 0&&(h=void 0),!Kf(this))throw Xf("error");var j=this._controlledWritableStream._state;j==="writable"&&s0(this,h)},u.prototype[je]=function(h){var j=this._abortAlgorithm(h);return xc(this),j},u.prototype[ye]=function(){sa(this)},u}();Object.defineProperties(co.prototype,{abortReason:{enumerable:!0},signal:{enumerable:!0},error:{enumerable:!0}}),typeof r.toStringTag=="symbol"&&Object.defineProperty(co.prototype,r.toStringTag,{value:"WritableStreamDefaultController",configurable:!0});function Kf(u){return!n(u)||!Object.prototype.hasOwnProperty.call(u,"_controlledWritableStream")?!1:u instanceof co}function n0(u,h,j,D,G,se,be,Je){h._controlledWritableStream=u,u._writableStreamController=h,h._queue=void 0,h._queueTotalSize=void 0,sa(h),h._abortReason=void 0,h._abortController=A(),h._started=!1,h._strategySizeAlgorithm=Je,h._strategyHWM=be,h._writeAlgorithm=D,h._closeAlgorithm=G,h._abortAlgorithm=se;var Sr=Qf(h);Gf(u,Sr);var Fr=j(),Dr=d(Fr);S(Dr,function(){h._started=!0,wc(h)},function($r){h._started=!0,jt(u,$r)})}function N8(u,h,j,D){var G=Object.create(co.prototype),se=function(){},be=function(){return d(void 0)},Je=function(){return d(void 0)},Sr=function(){return d(void 0)};h.start!==void 0&&(se=function(){return h.start(G)}),h.write!==void 0&&(be=function(Fr){return h.write(Fr,G)}),h.close!==void 0&&(Je=function(){return h.close()}),h.abort!==void 0&&(Sr=function(Fr){return h.abort(Fr)}),n0(u,G,se,be,Je,Sr,j,D)}function xc(u){u._writeAlgorithm=void 0,u._closeAlgorithm=void 0,u._abortAlgorithm=void 0,u._strategySizeAlgorithm=void 0}function L8(u){pt(u,i0,0),wc(u)}function M8(u,h){try{return u._strategySizeAlgorithm(h)}catch(j){return Yf(u,j),1}}function o0(u){return u._strategyHWM-u._queueTotalSize}function U8(u,h,j){try{pt(u,h,j)}catch(se){Yf(u,se);return}var D=u._controlledWritableStream;if(!li(D)&&D._state==="writable"){var G=Qf(u);Gf(D,G)}wc(u)}function wc(u){var h=u._controlledWritableStream;if(!!u._started&&h._inFlightWriteRequest===void 0){var j=h._state;if(j==="erroring"){ht(h);return}if(u._queue.length!==0){var D=ea(u);D===i0?H8(u):V8(u,D)}}}function Yf(u,h){u._controlledWritableStream._state==="writable"&&s0(u,h)}function H8(u){var h=u._controlledWritableStream;I8(h),it(u);var j=u._closeAlgorithm();xc(u),S(j,function(){ci(h)},function(D){Ro(h,D)})}function V8(u,h){var j=u._controlledWritableStream;O8(j);var D=u._writeAlgorithm(h);S(D,function(){qt(j);var G=j._state;if(it(u),!li(j)&&G==="writable"){var se=Qf(u);Gf(j,se)}wc(u)},function(G){j._state==="writable"&&xc(u),so(j,G)})}function Qf(u){var h=o0(u);return h<=0}function s0(u,h){var j=u._controlledWritableStream;xc(u),an(j,h)}function kc(u){return new TypeError("WritableStream.prototype."+u+" can only be used on a WritableStream")}function Xf(u){return new TypeError("WritableStreamDefaultController.prototype."+u+" can only be used on a WritableStreamDefaultController")}function lo(u){return new TypeError("WritableStreamDefaultWriter.prototype."+u+" can only be used on a WritableStreamDefaultWriter")}function Hs(u){return new TypeError("Cannot "+u+" a stream using a released writer")}function _c(u){u._closedPromise=m(function(h,j){u._closedPromise_resolve=h,u._closedPromise_reject=j,u._closedPromiseState="pending"})}function u0(u,h){_c(u),Jf(u,h)}function $8(u){_c(u),c0(u)}function Jf(u,h){u._closedPromise_reject!==void 0&&(T(u._closedPromise),u._closedPromise_reject(h),u._closedPromise_resolve=void 0,u._closedPromise_reject=void 0,u._closedPromiseState="rejected")}function W8(u,h){u0(u,h)}function c0(u){u._closedPromise_resolve!==void 0&&(u._closedPromise_resolve(void 0),u._closedPromise_resolve=void 0,u._closedPromise_reject=void 0,u._closedPromiseState="resolved")}function jc(u){u._readyPromise=m(function(h,j){u._readyPromise_resolve=h,u._readyPromise_reject=j}),u._readyPromiseState="pending"}function Zf(u,h){jc(u),f0(u,h)}function l0(u){jc(u),ep(u)}function f0(u,h){u._readyPromise_reject!==void 0&&(T(u._readyPromise),u._readyPromise_reject(h),u._readyPromise_resolve=void 0,u._readyPromise_reject=void 0,u._readyPromiseState="rejected")}function G8(u){jc(u)}function K8(u,h){Zf(u,h)}function ep(u){u._readyPromise_resolve!==void 0&&(u._readyPromise_resolve(void 0),u._readyPromise_resolve=void 0,u._readyPromise_reject=void 0,u._readyPromiseState="fulfilled")}var p0=typeof DOMException!="undefined"?DOMException:void 0;function Y8(u){if(!(typeof u=="function"||typeof u=="object"))return!1;try{return new u,!0}catch{return!1}}function Q8(){var u=function(j,D){this.message=j||"",this.name=D||"Error",Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)};return u.prototype=Object.create(Error.prototype),Object.defineProperty(u.prototype,"constructor",{value:u,writable:!0,configurable:!0}),u}var X8=Y8(p0)?p0:Q8();function h0(u,h,j,D,G,se){var be=Wr(u),Je=ie(h);u._disturbed=!0;var Sr=!1,Fr=d(void 0);return m(function(Dr,$r){var Oa;if(se!==void 0){if(Oa=function(){var xr=new X8("Aborted","AbortError"),Gr=[];D||Gr.push(function(){return h._state==="writable"?ua(h,xr):d(void 0)}),G||Gr.push(function(){return u._state==="readable"?fi(u,xr):d(void 0)}),Ut(function(){return Promise.all(Gr.map(function(va){return va()}))},!0,xr)},se.aborted){Oa();return}se.addEventListener("abort",Oa)}function pi(){return m(function(xr,Gr){function va(Ri){Ri?xr():y(No(),va,Gr)}va(!1)})}function No(){return Sr?d(!0):y(Je._readyPromise,function(){return m(function(xr,Gr){nr(be,{_chunkSteps:function(va){Fr=y(t0(Je,va),void 0,a),xr(!1)},_closeSteps:function(){return xr(!0)},_errorSteps:Gr})})})}if(ut(u,be._closedPromise,function(xr){D?nn(!0,xr):Ut(function(){return ua(h,xr)},!0,xr)}),ut(h,Je._closedPromise,function(xr){G?nn(!0,xr):Ut(function(){return fi(u,xr)},!0,xr)}),Oi(u,be._closedPromise,function(){j?nn():Ut(function(){return B8(Je)})}),li(h)||h._state==="closed"){var Tn=new TypeError("the destination writable stream closed before all data could be piped to it");G?nn(!0,Tn):Ut(function(){return fi(u,Tn)},!0,Tn)}T(pi());function Ii(){var xr=Fr;return y(Fr,function(){return xr!==Fr?Ii():void 0})}function ut(xr,Gr,va){xr._state==="errored"?va(xr._storedError):P(Gr,va)}function Oi(xr,Gr,va){xr._state==="closed"?va():w(Gr,va)}function Ut(xr,Gr,va){if(Sr)return;Sr=!0,h._state==="writable"&&!li(h)?w(Ii(),Ri):Ri();function Ri(){S(xr(),function(){return ma(Gr,va)},function(Cn){return ma(!0,Cn)})}}function nn(xr,Gr){Sr||(Sr=!0,h._state==="writable"&&!li(h)?w(Ii(),function(){return ma(xr,Gr)}):ma(xr,Gr))}function ma(xr,Gr){a0(Je),W(be),se!==void 0&&se.removeEventListener("abort",Oa),xr?$r(Gr):Dr(void 0)}})}var fo=function(){function u(){throw new TypeError("Illegal constructor")}return Object.defineProperty(u.prototype,"desiredSize",{get:function(){if(!Ec(this))throw Ac("desiredSize");return rp(this)},enumerable:!1,configurable:!0}),u.prototype.close=function(){if(!Ec(this))throw Ac("close");if(!Do(this))throw new TypeError("The stream is not in a state that permits close");$s(this)},u.prototype.enqueue=function(h){if(h===void 0&&(h=void 0),!Ec(this))throw Ac("enqueue");if(!Do(this))throw new TypeError("The stream is not in a state that permits enqueue");return Pc(this,h)},u.prototype.error=function(h){if(h===void 0&&(h=void 0),!Ec(this))throw Ac("error");Sn(this,h)},u.prototype[Ne]=function(h){sa(this);var j=this._cancelAlgorithm(h);return Sc(this),j},u.prototype[Ue]=function(h){var j=this._controlledReadableStream;if(this._queue.length>0){var D=it(this);this._closeRequested&&this._queue.length===0?(Sc(this),Ws(j)):Vs(this),h._chunkSteps(D)}else Z(j,h),Vs(this)},u}();Object.defineProperties(fo.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},desiredSize:{enumerable:!0}}),typeof r.toStringTag=="symbol"&&Object.defineProperty(fo.prototype,r.toStringTag,{value:"ReadableStreamDefaultController",configurable:!0});function Ec(u){return!n(u)||!Object.prototype.hasOwnProperty.call(u,"_controlledReadableStream")?!1:u instanceof fo}function Vs(u){var h=d0(u);if(!!h){if(u._pulling){u._pullAgain=!0;return}u._pulling=!0;var j=u._pullAlgorithm();S(j,function(){u._pulling=!1,u._pullAgain&&(u._pullAgain=!1,Vs(u))},function(D){Sn(u,D)})}}function d0(u){var h=u._controlledReadableStream;if(!Do(u)||!u._started)return!1;if(An(h)&&Ge(h)>0)return!0;var j=rp(u);return j>0}function Sc(u){u._pullAlgorithm=void 0,u._cancelAlgorithm=void 0,u._strategySizeAlgorithm=void 0}function $s(u){if(!!Do(u)){var h=u._controlledReadableStream;u._closeRequested=!0,u._queue.length===0&&(Sc(u),Ws(h))}}function Pc(u,h){if(!!Do(u)){var j=u._controlledReadableStream;if(An(j)&&Ge(j)>0)Ie(j,h,!1);else{var D=void 0;try{D=u._strategySizeAlgorithm(h)}catch(G){throw Sn(u,G),G}try{pt(u,h,D)}catch(G){throw Sn(u,G),G}}Vs(u)}}function Sn(u,h){var j=u._controlledReadableStream;j._state==="readable"&&(sa(u),Sc(u),b0(j,h))}function rp(u){var h=u._controlledReadableStream._state;return h==="errored"?null:h==="closed"?0:u._strategyHWM-u._queueTotalSize}function J8(u){return!d0(u)}function Do(u){var h=u._controlledReadableStream._state;return!u._closeRequested&&h==="readable"}function m0(u,h,j,D,G,se,be){h._controlledReadableStream=u,h._queue=void 0,h._queueTotalSize=void 0,sa(h),h._started=!1,h._closeRequested=!1,h._pullAgain=!1,h._pulling=!1,h._strategySizeAlgorithm=be,h._strategyHWM=se,h._pullAlgorithm=D,h._cancelAlgorithm=G,u._readableStreamController=h;var Je=j();S(d(Je),function(){h._started=!0,Vs(h)},function(Sr){Sn(h,Sr)})}function Z8(u,h,j,D){var G=Object.create(fo.prototype),se=function(){},be=function(){return d(void 0)},Je=function(){return d(void 0)};h.start!==void 0&&(se=function(){return h.start(G)}),h.pull!==void 0&&(be=function(){return h.pull(G)}),h.cancel!==void 0&&(Je=function(Sr){return h.cancel(Sr)}),m0(u,G,se,be,Je,j,D)}function Ac(u){return new TypeError("ReadableStreamDefaultController.prototype."+u+" can only be used on a ReadableStreamDefaultController")}function eE(u,h){return da(u._readableStreamController)?aE(u):rE(u)}function rE(u,h){var j=Wr(u),D=!1,G=!1,se=!1,be=!1,Je,Sr,Fr,Dr,$r,Oa=m(function(ut){$r=ut});function pi(){if(D)return G=!0,d(void 0);D=!0;var ut={_chunkSteps:function(Oi){O(function(){G=!1;var Ut=Oi,nn=Oi;se||Pc(Fr._readableStreamController,Ut),be||Pc(Dr._readableStreamController,nn),D=!1,G&&pi()})},_closeSteps:function(){D=!1,se||$s(Fr._readableStreamController),be||$s(Dr._readableStreamController),(!se||!be)&&$r(void 0)},_errorSteps:function(){D=!1}};return nr(j,ut),d(void 0)}function No(ut){if(se=!0,Je=ut,be){var Oi=wr([Je,Sr]),Ut=fi(u,Oi);$r(Ut)}return Oa}function Tn(ut){if(be=!0,Sr=ut,se){var Oi=wr([Je,Sr]),Ut=fi(u,Oi);$r(Ut)}return Oa}function Ii(){}return Fr=ap(Ii,pi,No),Dr=ap(Ii,pi,Tn),P(j._closedPromise,function(ut){Sn(Fr._readableStreamController,ut),Sn(Dr._readableStreamController,ut),(!se||!be)&&$r(void 0)}),[Fr,Dr]}function aE(u){var h=Wr(u),j=!1,D=!1,G=!1,se=!1,be=!1,Je,Sr,Fr,Dr,$r,Oa=m(function(ma){$r=ma});function pi(ma){P(ma._closedPromise,function(xr){ma===h&&(Ce(Fr._readableStreamController,xr),Ce(Dr._readableStreamController,xr),(!se||!be)&&$r(void 0))})}function No(){Ve(h)&&(W(h),h=Wr(u),pi(h));var ma={_chunkSteps:function(xr){O(function(){D=!1,G=!1;var Gr=xr,va=xr;if(!se&&!be)try{va=Fa(xr)}catch(Ri){Ce(Fr._readableStreamController,Ri),Ce(Dr._readableStreamController,Ri),$r(fi(u,Ri));return}se||Ee(Fr._readableStreamController,Gr),be||Ee(Dr._readableStreamController,va),j=!1,D?Ii():G&&ut()})},_closeSteps:function(){j=!1,se||Oe(Fr._readableStreamController),be||Oe(Dr._readableStreamController),Fr._readableStreamController._pendingPullIntos.length>0&&Xe(Fr._readableStreamController,0),Dr._readableStreamController._pendingPullIntos.length>0&&Xe(Dr._readableStreamController,0),(!se||!be)&&$r(void 0)},_errorSteps:function(){j=!1}};nr(h,ma)}function Tn(ma,xr){Ze(h)&&(W(h),h=Q(u),pi(h));var Gr=xr?Dr:Fr,va=xr?Fr:Dr,Ri={_chunkSteps:function(Cn){O(function(){D=!1,G=!1;var Lo=xr?be:se,Qs=xr?se:be;if(Qs)Lo||Te(Gr._readableStreamController,Cn);else{var q0=void 0;try{q0=Fa(Cn)}catch(op){Ce(Gr._readableStreamController,op),Ce(va._readableStreamController,op),$r(fi(u,op));return}Lo||Te(Gr._readableStreamController,Cn),Ee(va._readableStreamController,q0)}j=!1,D?Ii():G&&ut()})},_closeSteps:function(Cn){j=!1;var Lo=xr?be:se,Qs=xr?se:be;Lo||Oe(Gr._readableStreamController),Qs||Oe(va._readableStreamController),Cn!==void 0&&(Lo||Te(Gr._readableStreamController,Cn),!Qs&&va._readableStreamController._pendingPullIntos.length>0&&Xe(va._readableStreamController,0)),(!Lo||!Qs)&&$r(void 0)},_errorSteps:function(){j=!1}};fr(h,ma,Ri)}function Ii(){if(j)return D=!0,d(void 0);j=!0;var ma=qe(Fr._readableStreamController);return ma===null?No():Tn(ma._view,!1),d(void 0)}function ut(){if(j)return G=!0,d(void 0);j=!0;var ma=qe(Dr._readableStreamController);return ma===null?No():Tn(ma._view,!0),d(void 0)}function Oi(ma){if(se=!0,Je=ma,be){var xr=wr([Je,Sr]),Gr=fi(u,xr);$r(Gr)}return Oa}function Ut(ma){if(be=!0,Sr=ma,se){var xr=wr([Je,Sr]),Gr=fi(u,xr);$r(Gr)}return Oa}function nn(){}return Fr=g0(nn,Ii,Oi),Dr=g0(nn,ut,Ut),pi(h),[Fr,Dr]}function tE(u,h){Qe(u,h);var j=u,D=j==null?void 0:j.autoAllocateChunkSize,G=j==null?void 0:j.cancel,se=j==null?void 0:j.pull,be=j==null?void 0:j.start,Je=j==null?void 0:j.type;return{autoAllocateChunkSize:D===void 0?void 0:ur(D,h+" has member 'autoAllocateChunkSize' that"),cancel:G===void 0?void 0:iE(G,j,h+" has member 'cancel' that"),pull:se===void 0?void 0:nE(se,j,h+" has member 'pull' that"),start:be===void 0?void 0:oE(be,j,h+" has member 'start' that"),type:Je===void 0?void 0:sE(Je,h+" has member 'type' that")}}function iE(u,h,j){return We(u,j),function(D){return B(u,h,[D])}}function nE(u,h,j){return We(u,j),function(D){return B(u,h,[D])}}function oE(u,h,j){return We(u,j),function(D){return I(u,h,[D])}}function sE(u,h){if(u=""+u,u!=="bytes")throw new TypeError(h+" '"+u+"' is not a valid enumeration value for ReadableStreamType");return u}function uE(u,h){Qe(u,h);var j=u==null?void 0:u.mode;return{mode:j===void 0?void 0:cE(j,h+" has member 'mode' that")}}function cE(u,h){if(u=""+u,u!=="byob")throw new TypeError(h+" '"+u+"' is not a valid enumeration value for ReadableStreamReaderMode");return u}function lE(u,h){Qe(u,h);var j=u==null?void 0:u.preventCancel;return{preventCancel:Boolean(j)}}function v0(u,h){Qe(u,h);var j=u==null?void 0:u.preventAbort,D=u==null?void 0:u.preventCancel,G=u==null?void 0:u.preventClose,se=u==null?void 0:u.signal;return se!==void 0&&fE(se,h+" has member 'signal' that"),{preventAbort:Boolean(j),preventCancel:Boolean(D),preventClose:Boolean(G),signal:se}}function fE(u,h){if(!_(u))throw new TypeError(h+" is not an AbortSignal.")}function pE(u,h){Qe(u,h);var j=u==null?void 0:u.readable;he(j,"readable","ReadableWritablePair"),Br(j,h+" has member 'readable' that");var D=u==null?void 0:u.writable;return he(D,"writable","ReadableWritablePair"),Tr(D,h+" has member 'writable' that"),{readable:j,writable:D}}var tn=function(){function u(h,j){h===void 0&&(h={}),j===void 0&&(j={}),h===void 0?h=null:rr(h,"First parameter");var D=yr(j,"Second parameter"),G=tE(h,"First parameter");if(tp(this),G.type==="bytes"){if(D.size!==void 0)throw new RangeError("The strategy for a byte stream cannot have a size function");var se=sr(D,0);Pe(this,G,se)}else{var be=z(D),se=sr(D,1);Z8(this,G,se,be)}}return Object.defineProperty(u.prototype,"locked",{get:function(){if(!Pn(this))throw po("locked");return An(this)},enumerable:!1,configurable:!0}),u.prototype.cancel=function(h){return h===void 0&&(h=void 0),Pn(this)?An(this)?v(new TypeError("Cannot cancel a stream that already has a reader")):fi(this,h):v(po("cancel"))},u.prototype.getReader=function(h){if(h===void 0&&(h=void 0),!Pn(this))throw po("getReader");var j=uE(h,"First parameter");return j.mode===void 0?Wr(this):Q(this)},u.prototype.pipeThrough=function(h,j){if(j===void 0&&(j={}),!Pn(this))throw po("pipeThrough");Fe(h,1,"pipeThrough");var D=pE(h,"First parameter"),G=v0(j,"Second parameter");if(An(this))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream");if(qr(D.writable))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream");var se=h0(this,D.writable,G.preventClose,G.preventAbort,G.preventCancel,G.signal);return T(se),D.readable},u.prototype.pipeTo=function(h,j){if(j===void 0&&(j={}),!Pn(this))return v(po("pipeTo"));if(h===void 0)return v("Parameter 1 is required in 'pipeTo'.");if(!Re(h))return v(new TypeError("ReadableStream.prototype.pipeTo's first argument must be a WritableStream"));var D;try{D=v0(j,"Second parameter")}catch(G){return v(G)}return An(this)?v(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")):qr(h)?v(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream")):h0(this,h,D.preventClose,D.preventAbort,D.preventCancel,D.signal)},u.prototype.tee=function(){if(!Pn(this))throw po("tee");var h=eE(this);return wr(h)},u.prototype.values=function(h){if(h===void 0&&(h=void 0),!Pn(this))throw po("values");var j=lE(h,"First parameter");return pr(this,j.preventCancel)},u}();Object.defineProperties(tn.prototype,{cancel:{enumerable:!0},getReader:{enumerable:!0},pipeThrough:{enumerable:!0},pipeTo:{enumerable:!0},tee:{enumerable:!0},values:{enumerable:!0},locked:{enumerable:!0}}),typeof r.toStringTag=="symbol"&&Object.defineProperty(tn.prototype,r.toStringTag,{value:"ReadableStream",configurable:!0}),typeof r.asyncIterator=="symbol"&&Object.defineProperty(tn.prototype,r.asyncIterator,{value:tn.prototype.values,writable:!0,configurable:!0});function ap(u,h,j,D,G){D===void 0&&(D=1),G===void 0&&(G=function(){return 1});var se=Object.create(tn.prototype);tp(se);var be=Object.create(fo.prototype);return m0(se,be,u,h,j,D,G),se}function g0(u,h,j){var D=Object.create(tn.prototype);tp(D);var G=Object.create(Ia.prototype);return Se(D,G,u,h,j,0,void 0),D}function tp(u){u._state="readable",u._reader=void 0,u._storedError=void 0,u._disturbed=!1}function Pn(u){return!n(u)||!Object.prototype.hasOwnProperty.call(u,"_readableStreamController")?!1:u instanceof tn}function An(u){return u._reader!==void 0}function fi(u,h){if(u._disturbed=!0,u._state==="closed")return d(void 0);if(u._state==="errored")return v(u._storedError);Ws(u);var j=u._reader;j!==void 0&&Ve(j)&&(j._readIntoRequests.forEach(function(G){G._closeSteps(void 0)}),j._readIntoRequests=new V);var D=u._readableStreamController[Ne](h);return C(D,a)}function Ws(u){u._state="closed";var h=u._reader;h!==void 0&&(pe(h),Ze(h)&&(h._readRequests.forEach(function(j){j._closeSteps()}),h._readRequests=new V))}function b0(u,h){u._state="errored",u._storedError=h;var j=u._reader;j!==void 0&&(ce(j,h),Ze(j)?(j._readRequests.forEach(function(D){D._errorSteps(h)}),j._readRequests=new V):(j._readIntoRequests.forEach(function(D){D._errorSteps(h)}),j._readIntoRequests=new V))}function po(u){return new TypeError("ReadableStream.prototype."+u+" can only be used on a ReadableStream")}function y0(u,h){Qe(u,h);var j=u==null?void 0:u.highWaterMark;return he(j,"highWaterMark","QueuingStrategyInit"),{highWaterMark:ke(j)}}var x0=function(u){return u.byteLength};try{Object.defineProperty(x0,"name",{value:"size",configurable:!0})}catch{}var Gs=function(){function u(h){Fe(h,1,"ByteLengthQueuingStrategy"),h=y0(h,"First parameter"),this._byteLengthQueuingStrategyHighWaterMark=h.highWaterMark}return Object.defineProperty(u.prototype,"highWaterMark",{get:function(){if(!k0(this))throw w0("highWaterMark");return this._byteLengthQueuingStrategyHighWaterMark},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"size",{get:function(){if(!k0(this))throw w0("size");return x0},enumerable:!1,configurable:!0}),u}();Object.defineProperties(Gs.prototype,{highWaterMark:{enumerable:!0},size:{enumerable:!0}}),typeof r.toStringTag=="symbol"&&Object.defineProperty(Gs.prototype,r.toStringTag,{value:"ByteLengthQueuingStrategy",configurable:!0});function w0(u){return new TypeError("ByteLengthQueuingStrategy.prototype."+u+" can only be used on a ByteLengthQueuingStrategy")}function k0(u){return!n(u)||!Object.prototype.hasOwnProperty.call(u,"_byteLengthQueuingStrategyHighWaterMark")?!1:u instanceof Gs}var _0=function(){return 1};try{Object.defineProperty(_0,"name",{value:"size",configurable:!0})}catch{}var Ks=function(){function u(h){Fe(h,1,"CountQueuingStrategy"),h=y0(h,"First parameter"),this._countQueuingStrategyHighWaterMark=h.highWaterMark}return Object.defineProperty(u.prototype,"highWaterMark",{get:function(){if(!E0(this))throw j0("highWaterMark");return this._countQueuingStrategyHighWaterMark},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"size",{get:function(){if(!E0(this))throw j0("size");return _0},enumerable:!1,configurable:!0}),u}();Object.defineProperties(Ks.prototype,{highWaterMark:{enumerable:!0},size:{enumerable:!0}}),typeof r.toStringTag=="symbol"&&Object.defineProperty(Ks.prototype,r.toStringTag,{value:"CountQueuingStrategy",configurable:!0});function j0(u){return new TypeError("CountQueuingStrategy.prototype."+u+" can only be used on a CountQueuingStrategy")}function E0(u){return!n(u)||!Object.prototype.hasOwnProperty.call(u,"_countQueuingStrategyHighWaterMark")?!1:u instanceof Ks}function hE(u,h){Qe(u,h);var j=u==null?void 0:u.flush,D=u==null?void 0:u.readableType,G=u==null?void 0:u.start,se=u==null?void 0:u.transform,be=u==null?void 0:u.writableType;return{flush:j===void 0?void 0:dE(j,u,h+" has member 'flush' that"),readableType:D,start:G===void 0?void 0:mE(G,u,h+" has member 'start' that"),transform:se===void 0?void 0:vE(se,u,h+" has member 'transform' that"),writableType:be}}function dE(u,h,j){return We(u,j),function(D){return B(u,h,[D])}}function mE(u,h,j){return We(u,j),function(D){return I(u,h,[D])}}function vE(u,h,j){return We(u,j),function(D,G){return B(u,h,[D,G])}}var Ys=function(){function u(h,j,D){h===void 0&&(h={}),j===void 0&&(j={}),D===void 0&&(D={}),h===void 0&&(h=null);var G=yr(j,"Second parameter"),se=yr(D,"Third parameter"),be=hE(h,"First parameter");if(be.readableType!==void 0)throw new RangeError("Invalid readableType specified");if(be.writableType!==void 0)throw new RangeError("Invalid writableType specified");var Je=sr(se,0),Sr=z(se),Fr=sr(G,1),Dr=z(G),$r,Oa=m(function(pi){$r=pi});gE(this,Oa,Fr,Dr,Je,Sr),yE(this,be),be.start!==void 0?$r(be.start(this._transformStreamController)):$r(void 0)}return Object.defineProperty(u.prototype,"readable",{get:function(){if(!S0(this))throw C0("readable");return this._readable},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"writable",{get:function(){if(!S0(this))throw C0("writable");return this._writable},enumerable:!1,configurable:!0}),u}();Object.defineProperties(Ys.prototype,{readable:{enumerable:!0},writable:{enumerable:!0}}),typeof r.toStringTag=="symbol"&&Object.defineProperty(Ys.prototype,r.toStringTag,{value:"TransformStream",configurable:!0});function gE(u,h,j,D,G,se){function be(){return h}function Je(Oa){return kE(u,Oa)}function Sr(Oa){return _E(u,Oa)}function Fr(){return jE(u)}u._writable=ue(be,Je,Fr,Sr,j,D);function Dr(){return EE(u)}function $r(Oa){return Cc(u,Oa),d(void 0)}u._readable=ap(be,Dr,$r,G,se),u._backpressure=void 0,u._backpressureChangePromise=void 0,u._backpressureChangePromise_resolve=void 0,qc(u,!0),u._transformStreamController=void 0}function S0(u){return!n(u)||!Object.prototype.hasOwnProperty.call(u,"_transformStreamController")?!1:u instanceof Ys}function Tc(u,h){Sn(u._readable._readableStreamController,h),Cc(u,h)}function Cc(u,h){P0(u._transformStreamController),Yf(u._writable._writableStreamController,h),u._backpressure&&qc(u,!1)}function qc(u,h){u._backpressureChangePromise!==void 0&&u._backpressureChangePromise_resolve(),u._backpressureChangePromise=m(function(j){u._backpressureChangePromise_resolve=j}),u._backpressure=h}var zo=function(){function u(){throw new TypeError("Illegal constructor")}return Object.defineProperty(u.prototype,"desiredSize",{get:function(){if(!Fc(this))throw Ic("desiredSize");var h=this._controlledTransformStream._readable._readableStreamController;return rp(h)},enumerable:!1,configurable:!0}),u.prototype.enqueue=function(h){if(h===void 0&&(h=void 0),!Fc(this))throw Ic("enqueue");A0(this,h)},u.prototype.error=function(h){if(h===void 0&&(h=void 0),!Fc(this))throw Ic("error");xE(this,h)},u.prototype.terminate=function(){if(!Fc(this))throw Ic("terminate");wE(this)},u}();Object.defineProperties(zo.prototype,{enqueue:{enumerable:!0},error:{enumerable:!0},terminate:{enumerable:!0},desiredSize:{enumerable:!0}}),typeof r.toStringTag=="symbol"&&Object.defineProperty(zo.prototype,r.toStringTag,{value:"TransformStreamDefaultController",configurable:!0});function Fc(u){return!n(u)||!Object.prototype.hasOwnProperty.call(u,"_controlledTransformStream")?!1:u instanceof zo}function bE(u,h,j,D){h._controlledTransformStream=u,u._transformStreamController=h,h._transformAlgorithm=j,h._flushAlgorithm=D}function yE(u,h){var j=Object.create(zo.prototype),D=function(se){try{return A0(j,se),d(void 0)}catch(be){return v(be)}},G=function(){return d(void 0)};h.transform!==void 0&&(D=function(se){return h.transform(se,j)}),h.flush!==void 0&&(G=function(){return h.flush(j)}),bE(u,j,D,G)}function P0(u){u._transformAlgorithm=void 0,u._flushAlgorithm=void 0}function A0(u,h){var j=u._controlledTransformStream,D=j._readable._readableStreamController;if(!Do(D))throw new TypeError("Readable side is not in a state that permits enqueue");try{Pc(D,h)}catch(se){throw Cc(j,se),j._readable._storedError}var G=J8(D);G!==j._backpressure&&qc(j,!0)}function xE(u,h){Tc(u._controlledTransformStream,h)}function T0(u,h){var j=u._transformAlgorithm(h);return C(j,void 0,function(D){throw Tc(u._controlledTransformStream,D),D})}function wE(u){var h=u._controlledTransformStream,j=h._readable._readableStreamController;$s(j);var D=new TypeError("TransformStream terminated");Cc(h,D)}function kE(u,h){var j=u._transformStreamController;if(u._backpressure){var D=u._backpressureChangePromise;return C(D,function(){var G=u._writable,se=G._state;if(se==="erroring")throw G._storedError;return T0(j,h)})}return T0(j,h)}function _E(u,h){return Tc(u,h),d(void 0)}function jE(u){var h=u._readable,j=u._transformStreamController,D=j._flushAlgorithm();return P0(j),C(D,function(){if(h._state==="errored")throw h._storedError;$s(h._readableStreamController)},function(G){throw Tc(u,G),h._storedError})}function EE(u){return qc(u,!1),u._backpressureChangePromise}function Ic(u){return new TypeError("TransformStreamDefaultController.prototype."+u+" can only be used on a TransformStreamDefaultController")}function C0(u){return new TypeError("TransformStream.prototype."+u+" can only be used on a TransformStream")}var ip={ReadableStream:tn,ReadableStreamDefaultController:fo,ReadableByteStreamController:Ia,ReadableStreamBYOBRequest:ha,ReadableStreamDefaultReader:Ye,ReadableStreamBYOBReader:ne,WritableStream:M,WritableStreamDefaultController:co,WritableStreamDefaultWriter:Bo,ByteLengthQueuingStrategy:Gs,CountQueuingStrategy:Ks,TransformStream:Ys,TransformStreamDefaultController:zo};if(typeof t!="undefined")for(var np in ip)Object.prototype.hasOwnProperty.call(ip,np)&&Object.defineProperty(t,np,{value:ip[np],writable:!0,configurable:!0});e.ByteLengthQueuingStrategy=Gs,e.CountQueuingStrategy=Ks,e.ReadableByteStreamController=Ia,e.ReadableStream=tn,e.ReadableStreamBYOBReader=ne,e.ReadableStreamBYOBRequest=ha,e.ReadableStreamDefaultController=fo,e.ReadableStreamDefaultReader=Ye,e.TransformStream=Ys,e.TransformStreamDefaultController=zo,e.WritableStream=M,e.WritableStreamDefaultController=co,e.WritableStreamDefaultWriter=Bo,Object.defineProperty(e,"__esModule",{value:!0})})});var up="3.3.3";function B0(e,r){if(!e)throw new Error(r||"loaders.gl assertion failed.")}var Bi={self:typeof self!="undefined"&&self,window:typeof window!="undefined"&&window,global:typeof global!="undefined"&&global,document:typeof document!="undefined"&&document},BN=Bi.self||Bi.window||Bi.global||{},DN=Bi.window||Bi.self||Bi.global||{},D0=Bi.global||Bi.self||Bi.window||{},zN=Bi.document||{};var Oc=typeof process!="object"||String(process)!=="[object process]"||process.browser,Rc=typeof importScripts=="function",NN=typeof window!="undefined"&&typeof window.orientation!="undefined",z0=typeof process!="undefined"&&process.version&&/v([0-9]*)/.exec(process.version),LN=z0&&parseFloat(z0[1])||0;function cp(e,r=!0,a){let i=a||new Set;if(e){if(N0(e))i.add(e);else if(N0(e.buffer))i.add(e.buffer);else if(!ArrayBuffer.isView(e)){if(r&&typeof e=="object")for(let t in e)cp(e[t],r,i)}}return a===void 0?Array.from(i):[]}function N0(e){return e?e instanceof ArrayBuffer||typeof MessagePort!="undefined"&&e instanceof MessagePort||typeof ImageBitmap!="undefined"&&e instanceof ImageBitmap||typeof OffscreenCanvas!="undefined"&&e instanceof OffscreenCanvas:!1}function ho(){let parentPort;try{eval("globalThis.parentPort = require('worker_threads').parentPort"),parentPort=globalThis.parentPort}catch{}return parentPort}var lp=new Map,qn=class{static inWorkerThread(){return typeof self!="undefined"||Boolean(ho())}static set onmessage(r){function a(t){let n=ho(),{type:o,payload:s}=n?t:t.data;r(o,s)}let i=ho();i?(i.on("message",a),i.on("exit",()=>console.debug("Node worker closing"))):globalThis.onmessage=a}static addEventListener(r){let a=lp.get(r);a||(a=t=>{if(!RE(t))return;let n=ho(),{type:o,payload:s}=n?t:t.data;r(o,s)}),ho()?console.error("not implemented"):globalThis.addEventListener("message",a)}static removeEventListener(r){let a=lp.get(r);lp.delete(r),ho()?console.error("not implemented"):globalThis.removeEventListener("message",a)}static postMessage(r,a){let i={source:"loaders.gl",type:r,payload:a},t=cp(a),n=ho();n?n.postMessage(i,t):globalThis.postMessage(i,t)}};function RE(e){let{type:r,data:a}=e;return r==="message"&&a&&typeof a.source=="string"&&a.source.startsWith("loaders.gl")}var hp={};IE(hp,{requireFromFile:()=>pp,requireFromString:()=>Bc});var fp=Yt(require("module")),L0=Yt(require("path"));async function pp(e){if(e.startsWith("http")){let a=await(await fetch(e)).text();return Bc(a)}return e.startsWith("/")||(e=`${process.cwd()}/${e}`),require(e)}function Bc(e,r="",a){if(typeof r=="object"&&(a=r,r=""),typeof e!="string")throw new Error(`code must be a string, not ${typeof e}`);let i=fp.default._nodeModulePaths(L0.default.dirname(r)),t=module.parent,n=new fp.default(r,t);return n.filename=r,n.paths=[].concat((a==null?void 0:a.prependPaths)||[]).concat(i).concat((a==null?void 0:a.appendPaths)||[]),n._compile(e,r),t&&t.children&&t.children.splice(t.children.indexOf(n),1),n.exports}var BE="latest",DE=typeof up!="undefined"?up:BE,dp={};async function mp(e,r=null,a={}){return r&&(e=M0(e,r,a)),dp[e]=dp[e]||zE(e),await dp[e]}function M0(e,r,a){if(e.startsWith("http"))return e;let i=a.modules||{};return i[e]?i[e]:Oc?a.CDN?(B0(a.CDN.startsWith("http")),`${a.CDN}/${r}@${DE}/dist/libs/${e}`):Rc?`../src/libs/${e}`:`modules/${r}/src/libs/${e}`:`modules/${r}/dist/libs/${e}`}async function zE(e){if(e.endsWith("wasm"))return await(await fetch(e)).arrayBuffer();if(!Oc)try{return hp&&pp&&await pp(e)}catch{return null}if(Rc)return importScripts(e);let a=await(await fetch(e)).text();return NE(a,e)}function NE(e,r){if(!Oc)return Bc&&Bc(e,r);if(Rc)return eval.call(D0,e),null;let a=document.createElement("script");a.id=r;try{a.appendChild(document.createTextNode(e))}catch{a.text=e}return document.body.appendChild(a),null}var Xv=Yt(Ig());var di=typeof process!="object"||String(process)!=="[object process]"||process.browser,qp={self:typeof self!="undefined"&&self,window:typeof window!="undefined"&&window,global:typeof global!="undefined"&&global},Pa=qp.global||qp.self||qp.window;var Og={ibm866:[1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,9617,9618,9619,9474,9508,9569,9570,9558,9557,9571,9553,9559,9565,9564,9563,9488,9492,9524,9516,9500,9472,9532,9566,9567,9562,9556,9577,9574,9568,9552,9580,9575,9576,9572,9573,9561,9560,9554,9555,9579,9578,9496,9484,9608,9604,9612,9616,9600,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1025,1105,1028,1108,1031,1111,1038,1118,176,8729,183,8730,8470,164,9632,160],"iso-8859-2":[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,260,728,321,164,317,346,167,168,352,350,356,377,173,381,379,176,261,731,322,180,318,347,711,184,353,351,357,378,733,382,380,340,193,194,258,196,313,262,199,268,201,280,203,282,205,206,270,272,323,327,211,212,336,214,215,344,366,218,368,220,221,354,223,341,225,226,259,228,314,263,231,269,233,281,235,283,237,238,271,273,324,328,243,244,337,246,247,345,367,250,369,252,253,355,729],"iso-8859-3":[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,294,728,163,164,null,292,167,168,304,350,286,308,173,null,379,176,295,178,179,180,181,293,183,184,305,351,287,309,189,null,380,192,193,194,null,196,266,264,199,200,201,202,203,204,205,206,207,null,209,210,211,212,288,214,215,284,217,218,219,220,364,348,223,224,225,226,null,228,267,265,231,232,233,234,235,236,237,238,239,null,241,242,243,244,289,246,247,285,249,250,251,252,365,349,729],"iso-8859-4":[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,260,312,342,164,296,315,167,168,352,274,290,358,173,381,175,176,261,731,343,180,297,316,711,184,353,275,291,359,330,382,331,256,193,194,195,196,197,198,302,268,201,280,203,278,205,206,298,272,325,332,310,212,213,214,215,216,370,218,219,220,360,362,223,257,225,226,227,228,229,230,303,269,233,281,235,279,237,238,299,273,326,333,311,244,245,246,247,248,371,250,251,252,361,363,729],"iso-8859-5":[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,173,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,8470,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,167,1118,1119],"iso-8859-6":[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,null,null,null,164,null,null,null,null,null,null,null,1548,173,null,null,null,null,null,null,null,null,null,null,null,null,null,1563,null,null,null,1567,null,1569,1570,1571,1572,1573,1574,1575,1576,1577,1578,1579,1580,1581,1582,1583,1584,1585,1586,1587,1588,1589,1590,1591,1592,1593,1594,null,null,null,null,null,1600,1601,1602,1603,1604,1605,1606,1607,1608,1609,1610,1611,1612,1613,1614,1615,1616,1617,1618,null,null,null,null,null,null,null,null,null,null,null,null,null],"iso-8859-7":[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,8216,8217,163,8364,8367,166,167,168,169,890,171,172,173,null,8213,176,177,178,179,900,901,902,183,904,905,906,187,908,189,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,null,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,null],"iso-8859-8":[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,null,162,163,164,165,166,167,168,169,215,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,247,187,188,189,190,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,8215,1488,1489,1490,1491,1492,1493,1494,1495,1496,1497,1498,1499,1500,1501,1502,1503,1504,1505,1506,1507,1508,1509,1510,1511,1512,1513,1514,null,null,8206,8207,null],"iso-8859-10":[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,260,274,290,298,296,310,167,315,272,352,358,381,173,362,330,176,261,275,291,299,297,311,183,316,273,353,359,382,8213,363,331,256,193,194,195,196,197,198,302,268,201,280,203,278,205,206,207,208,325,332,211,212,213,214,360,216,370,218,219,220,221,222,223,257,225,226,227,228,229,230,303,269,233,281,235,279,237,238,239,240,326,333,243,244,245,246,361,248,371,250,251,252,253,254,312],"iso-8859-13":[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,8221,162,163,164,8222,166,167,216,169,342,171,172,173,174,198,176,177,178,179,8220,181,182,183,248,185,343,187,188,189,190,230,260,302,256,262,196,197,280,274,268,201,377,278,290,310,298,315,352,323,325,211,332,213,214,215,370,321,346,362,220,379,381,223,261,303,257,263,228,229,281,275,269,233,378,279,291,311,299,316,353,324,326,243,333,245,246,247,371,322,347,363,252,380,382,8217],"iso-8859-14":[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,7682,7683,163,266,267,7690,167,7808,169,7810,7691,7922,173,174,376,7710,7711,288,289,7744,7745,182,7766,7809,7767,7811,7776,7923,7812,7813,7777,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,372,209,210,211,212,213,214,7786,216,217,218,219,220,221,374,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,373,241,242,243,244,245,246,7787,248,249,250,251,252,253,375,255],"iso-8859-15":[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,8364,165,352,167,353,169,170,171,172,173,174,175,176,177,178,179,381,181,182,183,382,185,186,187,338,339,376,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255],"iso-8859-16":[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,260,261,321,8364,8222,352,167,353,169,536,171,377,173,378,379,176,177,268,322,381,8221,182,183,382,269,537,187,338,339,376,380,192,193,194,258,196,262,198,199,200,201,202,203,204,205,206,207,272,323,210,211,212,336,214,346,368,217,218,219,220,280,538,223,224,225,226,259,228,263,230,231,232,233,234,235,236,237,238,239,273,324,242,243,244,337,246,347,369,249,250,251,252,281,539,255],"koi8-r":[9472,9474,9484,9488,9492,9496,9500,9508,9516,9524,9532,9600,9604,9608,9612,9616,9617,9618,9619,8992,9632,8729,8730,8776,8804,8805,160,8993,176,178,183,247,9552,9553,9554,1105,9555,9556,9557,9558,9559,9560,9561,9562,9563,9564,9565,9566,9567,9568,9569,1025,9570,9571,9572,9573,9574,9575,9576,9577,9578,9579,9580,169,1102,1072,1073,1094,1076,1077,1092,1075,1093,1080,1081,1082,1083,1084,1085,1086,1087,1103,1088,1089,1090,1091,1078,1074,1100,1099,1079,1096,1101,1097,1095,1098,1070,1040,1041,1062,1044,1045,1060,1043,1061,1048,1049,1050,1051,1052,1053,1054,1055,1071,1056,1057,1058,1059,1046,1042,1068,1067,1047,1064,1069,1065,1063,1066],"koi8-u":[9472,9474,9484,9488,9492,9496,9500,9508,9516,9524,9532,9600,9604,9608,9612,9616,9617,9618,9619,8992,9632,8729,8730,8776,8804,8805,160,8993,176,178,183,247,9552,9553,9554,1105,1108,9556,1110,1111,9559,9560,9561,9562,9563,1169,1118,9566,9567,9568,9569,1025,1028,9571,1030,1031,9574,9575,9576,9577,9578,1168,1038,169,1102,1072,1073,1094,1076,1077,1092,1075,1093,1080,1081,1082,1083,1084,1085,1086,1087,1103,1088,1089,1090,1091,1078,1074,1100,1099,1079,1096,1101,1097,1095,1098,1070,1040,1041,1062,1044,1045,1060,1043,1061,1048,1049,1050,1051,1052,1053,1054,1055,1071,1056,1057,1058,1059,1046,1042,1068,1067,1047,1064,1069,1065,1063,1066],macintosh:[196,197,199,201,209,214,220,225,224,226,228,227,229,231,233,232,234,235,237,236,238,239,241,243,242,244,246,245,250,249,251,252,8224,176,162,163,167,8226,182,223,174,169,8482,180,168,8800,198,216,8734,177,8804,8805,165,181,8706,8721,8719,960,8747,170,186,937,230,248,191,161,172,8730,402,8776,8710,171,187,8230,160,192,195,213,338,339,8211,8212,8220,8221,8216,8217,247,9674,255,376,8260,8364,8249,8250,64257,64258,8225,183,8218,8222,8240,194,202,193,203,200,205,206,207,204,211,212,63743,210,218,219,217,305,710,732,175,728,729,730,184,733,731,711],"windows-874":[8364,129,130,131,132,8230,134,135,136,137,138,139,140,141,142,143,144,8216,8217,8220,8221,8226,8211,8212,152,153,154,155,156,157,158,159,160,3585,3586,3587,3588,3589,3590,3591,3592,3593,3594,3595,3596,3597,3598,3599,3600,3601,3602,3603,3604,3605,3606,3607,3608,3609,3610,3611,3612,3613,3614,3615,3616,3617,3618,3619,3620,3621,3622,3623,3624,3625,3626,3627,3628,3629,3630,3631,3632,3633,3634,3635,3636,3637,3638,3639,3640,3641,3642,null,null,null,null,3647,3648,3649,3650,3651,3652,3653,3654,3655,3656,3657,3658,3659,3660,3661,3662,3663,3664,3665,3666,3667,3668,3669,3670,3671,3672,3673,3674,3675,null,null,null,null],"windows-1250":[8364,129,8218,131,8222,8230,8224,8225,136,8240,352,8249,346,356,381,377,144,8216,8217,8220,8221,8226,8211,8212,152,8482,353,8250,347,357,382,378,160,711,728,321,164,260,166,167,168,169,350,171,172,173,174,379,176,177,731,322,180,181,182,183,184,261,351,187,317,733,318,380,340,193,194,258,196,313,262,199,268,201,280,203,282,205,206,270,272,323,327,211,212,336,214,215,344,366,218,368,220,221,354,223,341,225,226,259,228,314,263,231,269,233,281,235,283,237,238,271,273,324,328,243,244,337,246,247,345,367,250,369,252,253,355,729],"windows-1251":[1026,1027,8218,1107,8222,8230,8224,8225,8364,8240,1033,8249,1034,1036,1035,1039,1106,8216,8217,8220,8221,8226,8211,8212,152,8482,1113,8250,1114,1116,1115,1119,160,1038,1118,1032,164,1168,166,167,1025,169,1028,171,172,173,174,1031,176,177,1030,1110,1169,181,182,183,1105,8470,1108,187,1112,1029,1109,1111,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103],"windows-1252":[8364,129,8218,402,8222,8230,8224,8225,710,8240,352,8249,338,141,381,143,144,8216,8217,8220,8221,8226,8211,8212,732,8482,353,8250,339,157,382,376,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255],"windows-1253":[8364,129,8218,402,8222,8230,8224,8225,136,8240,138,8249,140,141,142,143,144,8216,8217,8220,8221,8226,8211,8212,152,8482,154,8250,156,157,158,159,160,901,902,163,164,165,166,167,168,169,null,171,172,173,174,8213,176,177,178,179,900,181,182,183,904,905,906,187,908,189,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,null,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,null],"windows-1254":[8364,129,8218,402,8222,8230,8224,8225,710,8240,352,8249,338,141,142,143,144,8216,8217,8220,8221,8226,8211,8212,732,8482,353,8250,339,157,158,376,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,286,209,210,211,212,213,214,215,216,217,218,219,220,304,350,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,287,241,242,243,244,245,246,247,248,249,250,251,252,305,351,255],"windows-1255":[8364,129,8218,402,8222,8230,8224,8225,710,8240,138,8249,140,141,142,143,144,8216,8217,8220,8221,8226,8211,8212,732,8482,154,8250,156,157,158,159,160,161,162,163,8362,165,166,167,168,169,215,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,247,187,188,189,190,191,1456,1457,1458,1459,1460,1461,1462,1463,1464,1465,1466,1467,1468,1469,1470,1471,1472,1473,1474,1475,1520,1521,1522,1523,1524,null,null,null,null,null,null,null,1488,1489,1490,1491,1492,1493,1494,1495,1496,1497,1498,1499,1500,1501,1502,1503,1504,1505,1506,1507,1508,1509,1510,1511,1512,1513,1514,null,null,8206,8207,null],"windows-1256":[8364,1662,8218,402,8222,8230,8224,8225,710,8240,1657,8249,338,1670,1688,1672,1711,8216,8217,8220,8221,8226,8211,8212,1705,8482,1681,8250,339,8204,8205,1722,160,1548,162,163,164,165,166,167,168,169,1726,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,1563,187,188,189,190,1567,1729,1569,1570,1571,1572,1573,1574,1575,1576,1577,1578,1579,1580,1581,1582,1583,1584,1585,1586,1587,1588,1589,1590,215,1591,1592,1593,1594,1600,1601,1602,1603,224,1604,226,1605,1606,1607,1608,231,232,233,234,235,1609,1610,238,239,1611,1612,1613,1614,244,1615,1616,247,1617,249,1618,251,252,8206,8207,1746],"windows-1257":[8364,129,8218,131,8222,8230,8224,8225,136,8240,138,8249,140,168,711,184,144,8216,8217,8220,8221,8226,8211,8212,152,8482,154,8250,156,175,731,159,160,null,162,163,164,null,166,167,216,169,342,171,172,173,174,198,176,177,178,179,180,181,182,183,248,185,343,187,188,189,190,230,260,302,256,262,196,197,280,274,268,201,377,278,290,310,298,315,352,323,325,211,332,213,214,215,370,321,346,362,220,379,381,223,261,303,257,263,228,229,281,275,269,233,378,279,291,311,299,316,353,324,326,243,333,245,246,247,371,322,347,363,252,380,382,729],"windows-1258":[8364,129,8218,402,8222,8230,8224,8225,710,8240,138,8249,338,141,142,143,144,8216,8217,8220,8221,8226,8211,8212,732,8482,154,8250,339,157,158,376,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,258,196,197,198,199,200,201,202,203,768,205,206,207,272,209,777,211,212,416,214,215,216,217,218,219,220,431,771,223,224,225,226,259,228,229,230,231,232,233,234,235,769,237,238,239,273,241,803,243,244,417,246,247,248,249,250,251,252,432,8363,255],"x-mac-cyrillic":[1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,8224,176,1168,163,167,8226,182,1030,174,169,8482,1026,1106,8800,1027,1107,8734,177,8804,8805,1110,181,1169,1032,1028,1108,1031,1111,1033,1113,1034,1114,1112,1029,172,8730,402,8776,8710,171,187,8230,160,1035,1115,1036,1116,1109,8211,8212,8220,8221,8216,8217,247,8222,1038,1118,1039,1119,8470,1025,1105,1103,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,8364]};global["encoding-indexes"]=Og||{};function jr(e,r,a){return r<=e&&e<=a}function c4(e,r){return e.indexOf(r)!==-1}var cn=Math.floor;function Wc(e){if(e===void 0)return{};if(e===Object(e))return e;throw TypeError("Could not convert argument to dictionary")}function l4(e){for(var r=String(e),a=r.length,i=0,t=[];i<a;){var n=r.charCodeAt(i);if(n<55296||n>57343)t.push(n);else if(56320<=n&&n<=57343)t.push(65533);else if(55296<=n&&n<=56319)if(i===a-1)t.push(65533);else{var o=r.charCodeAt(i+1);if(56320<=o&&o<=57343){var s=n&1023,c=o&1023;t.push(65536+(s<<10)+c),i+=1}else t.push(65533)}i+=1}return t}function f4(e){for(var r="",a=0;a<e.length;++a){var i=e[a];i<=65535?r+=String.fromCharCode(i):(i-=65536,r+=String.fromCharCode((i>>10)+55296,(i&1023)+56320))}return r}function Qt(e){return 0<=e&&e<=127}var Xt=Qt,zr=-1;function Fp(e){this.tokens=[].slice.call(e),this.tokens.reverse()}Fp.prototype={endOfStream:function(){return!this.tokens.length},read:function(){return this.tokens.length?this.tokens.pop():zr},prepend:function(e){if(Array.isArray(e))for(var r=e;r.length;)this.tokens.push(r.pop());else this.tokens.push(e)},push:function(e){if(Array.isArray(e))for(var r=e;r.length;)this.tokens.unshift(r.shift());else this.tokens.unshift(e)}};var ta=-1;function Nr(e,r){if(e)throw TypeError("Decoder error");return r||65533}function mi(e){throw TypeError("The code point "+e+" could not be encoded.")}function p4(){}p4.prototype={handler:function(e,r){}};function h4(){}h4.prototype={handler:function(e,r){}};function Ip(e){return e=String(e).trim().toLowerCase(),Object.prototype.hasOwnProperty.call(Op,e)?Op[e]:null}var Rg=[{encodings:[{labels:["unicode-1-1-utf-8","utf-8","utf8"],name:"UTF-8"}],heading:"The Encoding"},{encodings:[{labels:["866","cp866","csibm866","ibm866"],name:"IBM866"},{labels:["csisolatin2","iso-8859-2","iso-ir-101","iso8859-2","iso88592","iso_8859-2","iso_8859-2:1987","l2","latin2"],name:"ISO-8859-2"},{labels:["csisolatin3","iso-8859-3","iso-ir-109","iso8859-3","iso88593","iso_8859-3","iso_8859-3:1988","l3","latin3"],name:"ISO-8859-3"},{labels:["csisolatin4","iso-8859-4","iso-ir-110","iso8859-4","iso88594","iso_8859-4","iso_8859-4:1988","l4","latin4"],name:"ISO-8859-4"},{labels:["csisolatincyrillic","cyrillic","iso-8859-5","iso-ir-144","iso8859-5","iso88595","iso_8859-5","iso_8859-5:1988"],name:"ISO-8859-5"},{labels:["arabic","asmo-708","csiso88596e","csiso88596i","csisolatinarabic","ecma-114","iso-8859-6","iso-8859-6-e","iso-8859-6-i","iso-ir-127","iso8859-6","iso88596","iso_8859-6","iso_8859-6:1987"],name:"ISO-8859-6"},{labels:["csisolatingreek","ecma-118","elot_928","greek","greek8","iso-8859-7","iso-ir-126","iso8859-7","iso88597","iso_8859-7","iso_8859-7:1987","sun_eu_greek"],name:"ISO-8859-7"},{labels:["csiso88598e","csisolatinhebrew","hebrew","iso-8859-8","iso-8859-8-e","iso-ir-138","iso8859-8","iso88598","iso_8859-8","iso_8859-8:1988","visual"],name:"ISO-8859-8"},{labels:["csiso88598i","iso-8859-8-i","logical"],name:"ISO-8859-8-I"},{labels:["csisolatin6","iso-8859-10","iso-ir-157","iso8859-10","iso885910","l6","latin6"],name:"ISO-8859-10"},{labels:["iso-8859-13","iso8859-13","iso885913"],name:"ISO-8859-13"},{labels:["iso-8859-14","iso8859-14","iso885914"],name:"ISO-8859-14"},{labels:["csisolatin9","iso-8859-15","iso8859-15","iso885915","iso_8859-15","l9"],name:"ISO-8859-15"},{labels:["iso-8859-16"],name:"ISO-8859-16"},{labels:["cskoi8r","koi","koi8","koi8-r","koi8_r"],name:"KOI8-R"},{labels:["koi8-ru","koi8-u"],name:"KOI8-U"},{labels:["csmacintosh","mac","macintosh","x-mac-roman"],name:"macintosh"},{labels:["dos-874","iso-8859-11","iso8859-11","iso885911","tis-620","windows-874"],name:"windows-874"},{labels:["cp1250","windows-1250","x-cp1250"],name:"windows-1250"},{labels:["cp1251","windows-1251","x-cp1251"],name:"windows-1251"},{labels:["ansi_x3.4-1968","ascii","cp1252","cp819","csisolatin1","ibm819","iso-8859-1","iso-ir-100","iso8859-1","iso88591","iso_8859-1","iso_8859-1:1987","l1","latin1","us-ascii","windows-1252","x-cp1252"],name:"windows-1252"},{labels:["cp1253","windows-1253","x-cp1253"],name:"windows-1253"},{labels:["cp1254","csisolatin5","iso-8859-9","iso-ir-148","iso8859-9","iso88599","iso_8859-9","iso_8859-9:1989","l5","latin5","windows-1254","x-cp1254"],name:"windows-1254"},{labels:["cp1255","windows-1255","x-cp1255"],name:"windows-1255"},{labels:["cp1256","windows-1256","x-cp1256"],name:"windows-1256"},{labels:["cp1257","windows-1257","x-cp1257"],name:"windows-1257"},{labels:["cp1258","windows-1258","x-cp1258"],name:"windows-1258"},{labels:["x-mac-cyrillic","x-mac-ukrainian"],name:"x-mac-cyrillic"}],heading:"Legacy single-byte encodings"},{encodings:[{labels:["chinese","csgb2312","csiso58gb231280","gb2312","gb_2312","gb_2312-80","gbk","iso-ir-58","x-gbk"],name:"GBK"},{labels:["gb18030"],name:"gb18030"}],heading:"Legacy multi-byte Chinese (simplified) encodings"},{encodings:[{labels:["big5","big5-hkscs","cn-big5","csbig5","x-x-big5"],name:"Big5"}],heading:"Legacy multi-byte Chinese (traditional) encodings"},{encodings:[{labels:["cseucpkdfmtjapanese","euc-jp","x-euc-jp"],name:"EUC-JP"},{labels:["csiso2022jp","iso-2022-jp"],name:"ISO-2022-JP"},{labels:["csshiftjis","ms932","ms_kanji","shift-jis","shift_jis","sjis","windows-31j","x-sjis"],name:"Shift_JIS"}],heading:"Legacy multi-byte Japanese encodings"},{encodings:[{labels:["cseuckr","csksc56011987","euc-kr","iso-ir-149","korean","ks_c_5601-1987","ks_c_5601-1989","ksc5601","ksc_5601","windows-949"],name:"EUC-KR"}],heading:"Legacy multi-byte Korean encodings"},{encodings:[{labels:["csiso2022kr","hz-gb-2312","iso-2022-cn","iso-2022-cn-ext","iso-2022-kr"],name:"replacement"},{labels:["utf-16be"],name:"UTF-16BE"},{labels:["utf-16","utf-16le"],name:"UTF-16LE"},{labels:["x-user-defined"],name:"x-user-defined"}],heading:"Legacy miscellaneous encodings"}],Op={};Rg.forEach(function(e){e.encodings.forEach(function(r){r.labels.forEach(function(a){Op[a]=r})})});var Ot={},Rt={};function Xo(e,r){return r&&r[e]||null}function Jo(e,r){var a=r.indexOf(e);return a===-1?null:a}function Et(e){if(!("encoding-indexes"in global))throw Error("Indexes missing. Did you forget to include encoding-indexes.js first?");return global["encoding-indexes"][e]}function d4(e){if(e>39419&&e<189e3||e>1237575)return null;if(e===7457)return 59335;var r=0,a=0,i=Et("gb18030-ranges"),t;for(t=0;t<i.length;++t){var n=i[t];if(n[0]<=e)r=n[0],a=n[1];else break}return a+e-r}function m4(e){if(e===59335)return 7457;var r=0,a=0,i=Et("gb18030-ranges"),t;for(t=0;t<i.length;++t){var n=i[t];if(n[1]<=e)r=n[1],a=n[0];else break}return a+e-r}function v4(e){Rp=Rp||Et("jis0208").map(function(a,i){return jr(i,8272,8835)?null:a});var r=Rp;return r.indexOf(e)}var Rp;function g4(e){Bp=Bp||Et("big5").map(function(a,i){return i<(161-129)*157?null:a});var r=Bp;return e===9552||e===9566||e===9569||e===9578||e===21313||e===21317?r.lastIndexOf(e):Jo(e,r)}var Bp,Bg="utf-8";function vo(e,r){if(!(this instanceof vo))throw TypeError("Called as a function. Did you forget 'new'?");e=e!==void 0?String(e):Bg,r=Wc(r),this._encoding=null,this._decoder=null,this._ignoreBOM=!1,this._BOMseen=!1,this._error_mode="replacement",this._do_not_flush=!1;var a=Ip(e);if(a===null||a.name==="replacement")throw RangeError("Unknown encoding: "+e);if(!Rt[a.name])throw Error("Decoder not present. Did you forget to include encoding-indexes.js first?");var i=this;return i._encoding=a,Boolean(r.fatal)&&(i._error_mode="fatal"),Boolean(r.ignoreBOM)&&(i._ignoreBOM=!0),Object.defineProperty||(this.encoding=i._encoding.name.toLowerCase(),this.fatal=i._error_mode==="fatal",this.ignoreBOM=i._ignoreBOM),i}Object.defineProperty&&(Object.defineProperty(vo.prototype,"encoding",{get:function(){return this._encoding.name.toLowerCase()}}),Object.defineProperty(vo.prototype,"fatal",{get:function(){return this._error_mode==="fatal"}}),Object.defineProperty(vo.prototype,"ignoreBOM",{get:function(){return this._ignoreBOM}}));vo.prototype.decode=function(r,a){var i;typeof r=="object"&&r instanceof ArrayBuffer?i=new Uint8Array(r):typeof r=="object"&&"buffer"in r&&r.buffer instanceof ArrayBuffer?i=new Uint8Array(r.buffer,r.byteOffset,r.byteLength):i=new Uint8Array(0),a=Wc(a),this._do_not_flush||(this._decoder=Rt[this._encoding.name]({fatal:this._error_mode==="fatal"}),this._BOMseen=!1),this._do_not_flush=Boolean(a.stream);for(var t=new Fp(i),n=[],o;;){var s=t.read();if(s===zr||(o=this._decoder.handler(t,s),o===ta))break;o!==null&&(Array.isArray(o)?n.push.apply(n,o):n.push(o))}if(!this._do_not_flush){do{if(o=this._decoder.handler(t,t.read()),o===ta)break;o!==null&&(Array.isArray(o)?n.push.apply(n,o):n.push(o))}while(!t.endOfStream());this._decoder=null}function c(f){return c4(["UTF-8","UTF-16LE","UTF-16BE"],this._encoding.name)&&!this._ignoreBOM&&!this._BOMseen&&(f.length>0&&f[0]===65279?(this._BOMseen=!0,f.shift()):f.length>0&&(this._BOMseen=!0)),f4(f)}return c.call(this,n)};function fu(e,r){if(!(this instanceof fu))throw TypeError("Called as a function. Did you forget 'new'?");r=Wc(r),this._encoding=null,this._encoder=null,this._do_not_flush=!1,this._fatal=Boolean(r.fatal)?"fatal":"replacement";var a=this;if(Boolean(r.NONSTANDARD_allowLegacyEncoding)){e=e!==void 0?String(e):Bg;var i=Ip(e);if(i===null||i.name==="replacement")throw RangeError("Unknown encoding: "+e);if(!Ot[i.name])throw Error("Encoder not present. Did you forget to include encoding-indexes.js first?");a._encoding=i}else a._encoding=Ip("utf-8"),e!==void 0&&"console"in global&&console.warn("TextEncoder constructor called with encoding label, which is ignored.");return Object.defineProperty||(this.encoding=a._encoding.name.toLowerCase()),a}Object.defineProperty&&Object.defineProperty(fu.prototype,"encoding",{get:function(){return this._encoding.name.toLowerCase()}});fu.prototype.encode=function(r,a){r=r===void 0?"":String(r),a=Wc(a),this._do_not_flush||(this._encoder=Ot[this._encoding.name]({fatal:this._fatal==="fatal"})),this._do_not_flush=Boolean(a.stream);for(var i=new Fp(l4(r)),t=[],n;;){var o=i.read();if(o===zr||(n=this._encoder.handler(i,o),n===ta))break;Array.isArray(n)?t.push.apply(t,n):t.push(n)}if(!this._do_not_flush){for(;n=this._encoder.handler(i,i.read()),n!==ta;)Array.isArray(n)?t.push.apply(t,n):t.push(n);this._encoder=null}return new Uint8Array(t)};function b4(e){var r=e.fatal,a=0,i=0,t=0,n=128,o=191;this.handler=function(s,c){if(c===zr&&t!==0)return t=0,Nr(r);if(c===zr)return ta;if(t===0){if(jr(c,0,127))return c;if(jr(c,194,223))t=1,a=c&31;else if(jr(c,224,239))c===224&&(n=160),c===237&&(o=159),t=2,a=c&15;else if(jr(c,240,244))c===240&&(n=144),c===244&&(o=143),t=3,a=c&7;else return Nr(r);return null}if(!jr(c,n,o))return a=t=i=0,n=128,o=191,s.prepend(c),Nr(r);if(n=128,o=191,a=a<<6|c&63,i+=1,i!==t)return null;var f=a;return a=t=i=0,f}}function y4(e){var r=e.fatal;this.handler=function(a,i){if(i===zr)return ta;if(Xt(i))return i;var t,n;jr(i,128,2047)?(t=1,n=192):jr(i,2048,65535)?(t=2,n=224):jr(i,65536,1114111)&&(t=3,n=240);for(var o=[(i>>6*t)+n];t>0;){var s=i>>6*(t-1);o.push(128|s&63),t-=1}return o}}Ot["UTF-8"]=function(e){return new y4(e)};Rt["UTF-8"]=function(e){return new b4(e)};function x4(e,r){var a=r.fatal;this.handler=function(i,t){if(t===zr)return ta;if(Qt(t))return t;var n=e[t-128];return n===null?Nr(a):n}}function w4(e,r){var a=r.fatal;this.handler=function(i,t){if(t===zr)return ta;if(Xt(t))return t;var n=Jo(t,e);return n===null&&mi(t),n+128}}(function(){"encoding-indexes"in global&&Rg.forEach(function(e){e.heading==="Legacy single-byte encodings"&&e.encodings.forEach(function(r){var a=r.name,i=Et(a.toLowerCase());Rt[a]=function(t){return new x4(i,t)},Ot[a]=function(t){return new w4(i,t)}})})})();Rt.GBK=function(e){return new Dg(e)};Ot.GBK=function(e){return new zg(e,!0)};function Dg(e){var r=e.fatal,a=0,i=0,t=0;this.handler=function(n,o){if(o===zr&&a===0&&i===0&&t===0)return ta;o===zr&&(a!==0||i!==0||t!==0)&&(a=0,i=0,t=0,Nr(r));var s;if(t!==0){s=null,jr(o,48,57)&&(s=d4((((a-129)*10+i-48)*126+t-129)*10+o-48));var c=[i,t,o];return a=0,i=0,t=0,s===null?(n.prepend(c),Nr(r)):s}if(i!==0)return jr(o,129,254)?(t=o,null):(n.prepend([i,o]),a=0,i=0,Nr(r));if(a!==0){if(jr(o,48,57))return i=o,null;var f=a,p=null;a=0;var m=o<127?64:65;return(jr(o,64,126)||jr(o,128,254))&&(p=(f-129)*190+(o-m)),s=p===null?null:Xo(p,Et("gb18030")),s===null&&Qt(o)&&n.prepend(o),s===null?Nr(r):s}return Qt(o)?o:o===128?8364:jr(o,129,254)?(a=o,null):Nr(r)}}function zg(e,r){var a=e.fatal;this.handler=function(i,t){if(t===zr)return ta;if(Xt(t))return t;if(t===58853)return mi(t);if(r&&t===8364)return 128;var n=Jo(t,Et("gb18030"));if(n!==null){var o=cn(n/190)+129,s=n%190,c=s<63?64:65;return[o,s+c]}if(r)return mi(t);n=m4(t);var f=cn(n/10/126/10);n=n-f*10*126*10;var p=cn(n/10/126);n=n-p*10*126;var m=cn(n/10),d=n-m*10;return[f+129,p+48,m+129,d+48]}}Ot.gb18030=function(e){return new zg(e)};Rt.gb18030=function(e){return new Dg(e)};function k4(e){var r=e.fatal,a=0;this.handler=function(i,t){if(t===zr&&a!==0)return a=0,Nr(r);if(t===zr&&a===0)return ta;if(a!==0){var n=a,o=null;a=0;var s=t<127?64:98;switch((jr(t,64,126)||jr(t,161,254))&&(o=(n-129)*157+(t-s)),o){case 1133:return[202,772];case 1135:return[202,780];case 1164:return[234,772];case 1166:return[234,780]}var c=o===null?null:Xo(o,Et("big5"));return c===null&&Qt(t)&&i.prepend(t),c===null?Nr(r):c}return Qt(t)?t:jr(t,129,254)?(a=t,null):Nr(r)}}function _4(e){var r=e.fatal;this.handler=function(a,i){if(i===zr)return ta;if(Xt(i))return i;var t=g4(i);if(t===null)return mi(i);var n=cn(t/157)+129;if(n<161)return mi(i);var o=t%157,s=o<63?64:98;return[n,o+s]}}Ot.Big5=function(e){return new _4(e)};Rt.Big5=function(e){return new k4(e)};function j4(e){var r=e.fatal,a=!1,i=0;this.handler=function(t,n){if(n===zr&&i!==0)return i=0,Nr(r);if(n===zr&&i===0)return ta;if(i===142&&jr(n,161,223))return i=0,65377-161+n;if(i===143&&jr(n,161,254))return a=!0,i=n,null;if(i!==0){var o=i;i=0;var s=null;return jr(o,161,254)&&jr(n,161,254)&&(s=Xo((o-161)*94+(n-161),Et(a?"jis0212":"jis0208"))),a=!1,jr(n,161,254)||t.prepend(n),s===null?Nr(r):s}return Qt(n)?n:n===142||n===143||jr(n,161,254)?(i=n,null):Nr(r)}}function E4(e){var r=e.fatal;this.handler=function(a,i){if(i===zr)return ta;if(Xt(i))return i;if(i===165)return 92;if(i===8254)return 126;if(jr(i,65377,65439))return[142,i-65377+161];i===8722&&(i=65293);var t=Jo(i,Et("jis0208"));if(t===null)return mi(i);var n=cn(t/94)+161,o=t%94+161;return[n,o]}}Ot["EUC-JP"]=function(e){return new E4(e)};Rt["EUC-JP"]=function(e){return new j4(e)};function S4(e){var r=e.fatal,a={ASCII:0,Roman:1,Katakana:2,LeadByte:3,TrailByte:4,EscapeStart:5,Escape:6},i=a.ASCII,t=a.ASCII,n=0,o=!1;this.handler=function(s,c){switch(i){default:case a.ASCII:return c===27?(i=a.EscapeStart,null):jr(c,0,127)&&c!==14&&c!==15&&c!==27?(o=!1,c):c===zr?ta:(o=!1,Nr(r));case a.Roman:return c===27?(i=a.EscapeStart,null):c===92?(o=!1,165):c===126?(o=!1,8254):jr(c,0,127)&&c!==14&&c!==15&&c!==27&&c!==92&&c!==126?(o=!1,c):c===zr?ta:(o=!1,Nr(r));case a.Katakana:return c===27?(i=a.EscapeStart,null):jr(c,33,95)?(o=!1,65377-33+c):c===zr?ta:(o=!1,Nr(r));case a.LeadByte:return c===27?(i=a.EscapeStart,null):jr(c,33,126)?(o=!1,n=c,i=a.TrailByte,null):c===zr?ta:(o=!1,Nr(r));case a.TrailByte:if(c===27)return i=a.EscapeStart,Nr(r);if(jr(c,33,126)){i=a.LeadByte;var f=(n-33)*94+c-33,p=Xo(f,Et("jis0208"));return p===null?Nr(r):p}return c===zr?(i=a.LeadByte,s.prepend(c),Nr(r)):(i=a.LeadByte,Nr(r));case a.EscapeStart:return c===36||c===40?(n=c,i=a.Escape,null):(s.prepend(c),o=!1,i=t,Nr(r));case a.Escape:var m=n;n=0;var d=null;if(m===40&&c===66&&(d=a.ASCII),m===40&&c===74&&(d=a.Roman),m===40&&c===73&&(d=a.Katakana),m===36&&(c===64||c===66)&&(d=a.LeadByte),d!==null){i=i=d;var v=o;return o=!0,v?Nr(r):null}return s.prepend([m,c]),o=!1,i=t,Nr(r)}}}function P4(e){var r=e.fatal,a={ASCII:0,Roman:1,jis0208:2},i=a.ASCII;this.handler=function(t,n){if(n===zr&&i!==a.ASCII)return t.prepend(n),i=a.ASCII,[27,40,66];if(n===zr&&i===a.ASCII)return ta;if((i===a.ASCII||i===a.Roman)&&(n===14||n===15||n===27))return mi(65533);if(i===a.ASCII&&Xt(n))return n;if(i===a.Roman&&(Xt(n)&&n!==92&&n!==126||n==165||n==8254)){if(Xt(n))return n;if(n===165)return 92;if(n===8254)return 126}if(Xt(n)&&i!==a.ASCII)return t.prepend(n),i=a.ASCII,[27,40,66];if((n===165||n===8254)&&i!==a.Roman)return t.prepend(n),i=a.Roman,[27,40,74];n===8722&&(n=65293);var o=Jo(n,Et("jis0208"));if(o===null)return mi(n);if(i!==a.jis0208)return t.prepend(n),i=a.jis0208,[27,36,66];var s=cn(o/94)+33,c=o%94+33;return[s,c]}}Ot["ISO-2022-JP"]=function(e){return new P4(e)};Rt["ISO-2022-JP"]=function(e){return new S4(e)};function A4(e){var r=e.fatal,a=0;this.handler=function(i,t){if(t===zr&&a!==0)return a=0,Nr(r);if(t===zr&&a===0)return ta;if(a!==0){var n=a,o=null;a=0;var s=t<127?64:65,c=n<160?129:193;if((jr(t,64,126)||jr(t,128,252))&&(o=(n-c)*188+t-s),jr(o,8836,10715))return 57344-8836+o;var f=o===null?null:Xo(o,Et("jis0208"));return f===null&&Qt(t)&&i.prepend(t),f===null?Nr(r):f}return Qt(t)||t===128?t:jr(t,161,223)?65377-161+t:jr(t,129,159)||jr(t,224,252)?(a=t,null):Nr(r)}}function T4(e){var r=e.fatal;this.handler=function(a,i){if(i===zr)return ta;if(Xt(i)||i===128)return i;if(i===165)return 92;if(i===8254)return 126;if(jr(i,65377,65439))return i-65377+161;i===8722&&(i=65293);var t=v4(i);if(t===null)return mi(i);var n=cn(t/188),o=n<31?129:193,s=t%188,c=s<63?64:65;return[n+o,s+c]}}Ot.Shift_JIS=function(e){return new T4(e)};Rt.Shift_JIS=function(e){return new A4(e)};function C4(e){var r=e.fatal,a=0;this.handler=function(i,t){if(t===zr&&a!==0)return a=0,Nr(r);if(t===zr&&a===0)return ta;if(a!==0){var n=a,o=null;a=0,jr(t,65,254)&&(o=(n-129)*190+(t-65));var s=o===null?null:Xo(o,Et("euc-kr"));return o===null&&Qt(t)&&i.prepend(t),s===null?Nr(r):s}return Qt(t)?t:jr(t,129,254)?(a=t,null):Nr(r)}}function q4(e){var r=e.fatal;this.handler=function(a,i){if(i===zr)return ta;if(Xt(i))return i;var t=Jo(i,Et("euc-kr"));if(t===null)return mi(i);var n=cn(t/190)+129,o=t%190+65;return[n,o]}}Ot["EUC-KR"]=function(e){return new q4(e)};Rt["EUC-KR"]=function(e){return new C4(e)};function Gc(e,r){var a=e>>8,i=e&255;return r?[a,i]:[i,a]}function Ng(e,r){var a=r.fatal,i=null,t=null;this.handler=function(n,o){if(o===zr&&(i!==null||t!==null))return Nr(a);if(o===zr&&i===null&&t===null)return ta;if(i===null)return i=o,null;var s;if(e?s=(i<<8)+o:s=(o<<8)+i,i=null,t!==null){var c=t;return t=null,jr(s,56320,57343)?65536+(c-55296)*1024+(s-56320):(n.prepend(Gc(s,e)),Nr(a))}return jr(s,55296,56319)?(t=s,null):jr(s,56320,57343)?Nr(a):s}}function Lg(e,r){var a=r.fatal;this.handler=function(i,t){if(t===zr)return ta;if(jr(t,0,65535))return Gc(t,e);var n=Gc((t-65536>>10)+55296,e),o=Gc((t-65536&1023)+56320,e);return n.concat(o)}}Ot["UTF-16BE"]=function(e){return new Lg(!0,e)};Rt["UTF-16BE"]=function(e){return new Ng(!0,e)};Ot["UTF-16LE"]=function(e){return new Lg(!1,e)};Rt["UTF-16LE"]=function(e){return new Ng(!1,e)};function F4(e){var r=e.fatal;this.handler=function(a,i){return i===zr?ta:Qt(i)?i:63360+i-128}}function I4(e){var r=e.fatal;this.handler=function(a,i){return i===zr?ta:Xt(i)?i:jr(i,63360,63487)?i-63360+128:mi(i)}}Ot["x-user-defined"]=function(e){return new I4(e)};Rt["x-user-defined"]=function(e){return new F4(e)};var O4="rejected",R4="fulfilled";function Mg(e){let r=e.map(a=>a.then(i=>({status:R4,value:i})).catch(i=>({status:O4,reason:i})));return Promise.all(r)}function Kc(e){return Buffer.from(e).toString("base64")}function Dp(e){return Buffer.from(e,"base64").toString("ascii")}var Jt=class{constructor(r){this.map={},r instanceof Jt?r.forEach((a,i)=>this.append(i,a)):Array.isArray(r)?r.forEach(a=>this.append(a[0],a[1])):r&&Object.getOwnPropertyNames(r).forEach(a=>this.append(a,r[a]))}append(r,a){r=pu(r),a=Ug(a);let i=this.map[r];this.map[r]=i?`${i}, ${a}`:a}delete(r){delete this.map[pu(r)]}get(r){return r=pu(r),this.has(r)?this.map[r]:null}has(r){return this.map.hasOwnProperty(pu(r))}set(r,a){this.map[pu(r)]=Ug(a)}forEach(r,a=null){for(let i in this.map)this.map.hasOwnProperty(i)&&(a?r.call(a,this.map[i],i,this):r(this.map[i],i,this))}keys(){let r=[];return this.forEach(function(a,i){r.push(i)}),zp(r)}values(){let r=[];return this.forEach(function(a){r.push(a)}),zp(r)}entries(){let r=[];return this.forEach(function(a,i){r.push([i,a])}),zp(r)}*[Symbol.iterator](){yield*this.entries()}};function pu(e){if(typeof e!="string"&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e)||e==="")throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function Ug(e){return typeof e!="string"&&(e=String(e)),e}function zp(e){let r={next(){let a=e.shift();return{done:a===void 0,value:a}}};return r[Symbol.iterator]=function(){return r},r}function Np(e,r){if(!e)throw new Error(`@loaders.gl/polyfills assertion ${r}`)}var Yc=Yt(require("zlib"));var B4=e=>e&&e instanceof ArrayBuffer,D4=e=>e&&e instanceof Buffer;function Hg(e){let r=e.indexOf(","),a,i;return e.slice(r-7,r)===";base64"?(a=Buffer.from(e.slice(r+1),"base64"),i=e.slice(5,r-7).trim()):(a=Buffer.from(decodeURIComponent(e.slice(r+1))),i=e.slice(5,r).trim()),i?i.startsWith(";")&&(i=`text/plain${i}`):i="text/plain;charset=US-ASCII",{arrayBuffer:Lp(a),mimeType:i}}function Lp(e){if(B4(e))return e;if(D4(e))return new Uint8Array(e).buffer;if(ArrayBuffer.isView(e))return e.buffer;if(typeof e=="string"){let r=e;return new TextEncoder().encode(r).buffer}if(e&&typeof e=="object"&&e._toArrayBuffer)return e._toArrayBuffer();throw new Error(`toArrayBuffer(${JSON.stringify(e,null,2).slice(10)})`)}function Vg(e,r){switch(r.get("content-encoding")){case"br":return e.pipe(Yc.default.createBrotliDecompress());case"gzip":return e.pipe(Yc.default.createGunzip());case"deflate":return e.pipe(Yc.default.createDeflate());default:return e}}async function $g(e){let r=[];return await new Promise((a,i)=>{e.on("error",t=>i(t)),e.on("readable",()=>e.read()),e.on("data",t=>{typeof t=="string"&&i(new Error("Read stream not binary")),r.push(Lp(t))}),e.on("end",()=>{let t=z4(r);a(t)})})}function z4(e){let r=e.map(n=>n instanceof ArrayBuffer?new Uint8Array(n):n),a=r.reduce((n,o)=>n+o.byteLength,0),i=new Uint8Array(a),t=0;for(let n of r)i.set(n,t),t+=n.byteLength;return i.buffer}var Up=Yt(require("stream")),N4=e=>typeof e=="boolean",Wg=e=>typeof e=="function",L4=e=>e!==null&&typeof e=="object",Mp=e=>L4(e)&&Wg(e.read)&&Wg(e.pipe)&&N4(e.readable),vi=class{constructor(r,a){this.bodyUsed=!1;let{headers:i,status:t=200,statusText:n="OK",url:o}=a||{};this.url=o,this.ok=t===200,this.status=t,this.statusText=n,this.headers=new Jt((a==null?void 0:a.headers)||{}),Mp(r)?this._body=Vg(r,i):typeof r=="string"?this._body=Up.Readable.from([new TextEncoder().encode(r)]):this._body=Up.Readable.from([r||new ArrayBuffer(0)])}get body(){return Np(!this.bodyUsed),Np(Mp(this._body)),this.bodyUsed=!0,this._body}async arrayBuffer(){return Mp(this._body)?await $g(this._body):this._body||new ArrayBuffer(0)}async text(){let r=await this.arrayBuffer();return new TextDecoder().decode(r)}async json(){let r=await this.text();return JSON.parse(r)}async blob(){if(typeof Blob=="undefined")throw new Error("Blob polyfill not installed");return new Blob([await this.arrayBuffer()])}};var Gg=Yt(require("http")),Kg=Yt(require("https"));var Hp=Yt(require("fs"));async function Vp(e,r){let a=e.split("?")[0];try{let i=await new Promise((s,c)=>{let f=Hp.default.createReadStream(a,{encoding:null});f.once("readable",()=>s(f)),f.on("error",p=>c(p))}),t=200,n="OK",o=M4(a);return new vi(i,{headers:o,status:t,statusText:n,url:e})}catch(i){let t=400,n=i.message,o={};return new vi(i.message,{headers:o,status:t,statusText:n,url:e})}}function M4(e){let r={};if(!r["content-length"]){let a=Hp.default.statSync(e);r["content-length"]=a.size}return e.endsWith(".gz")&&(e=e.slice(0,-3),r["content-encoding"]="gzip"),new Jt(r)}var $p=e=>e.startsWith("data:"),U4=e=>e.startsWith("http:")||e.startsWith("https:");async function hu(e,r){try{if(!U4(e)&&!$p(e))return await Vp(e,r);if($p(e)){let{arrayBuffer:f,mimeType:p}=Hg(e);return new vi(f,{headers:{"content-type":p},url:e})}let a={},i=e;e.endsWith(".gz")&&(e=e.slice(0,-3),a["content-encoding"]="gzip");let t=await H4(i,r),n=G4(e,t,a),{status:o,statusText:s}=W4(t),c=!r||r.followRedirect||r.followRedirect===void 0;if(o>=300&&o<400&&n.has("location")&&c){let f=V4(e,n.get("location"));return await hu(f,r)}return new vi(t,{headers:n,status:o,statusText:s,url:e})}catch(a){return new vi(null,{status:400,statusText:String(a),url:e})}}async function H4(e,r){return await new Promise((a,i)=>{let t=$4(e,r),n=e.startsWith("https:")?Kg.default.request(t,o=>a(o)):Gg.default.request(t,o=>a(o));n.on("error",o=>i(o)),n.end()})}function V4(e,r){if(r.startsWith("http"))return r;let a=new URL(e);return a.pathname=r,a.href}function $4(e,r){let a=(r==null?void 0:r.headers)||{},i={};for(let n of Object.keys(a))i[n.toLowerCase()]=a[n];i["accept-encoding"]=i["accept-encoding"]||"gzip,br,deflate";let t=new URL(e);return sp(Kt(Kt({hostname:t.hostname,path:t.pathname,method:"GET"},r),r==null?void 0:r.fetch),{headers:i,port:t.port})}function W4(e){return e.statusCode?{status:e.statusCode,statusText:e.statusMessage||"NA"}:{status:200,statusText:"OK"}}function G4(e,r,a={}){let i={};if(r&&r.headers){let t=r.headers;for(let n in t){let o=t[n];i[n.toLowerCase()]=String(o)}}if(!i["content-length"]){let t=K4(e);Number.isFinite(t)&&(i["content-length"]=t)}return Object.assign(i,a),new Jt(i)}function K4(e){return $p(e)?e.length-"data:".length:null}var V1=Yt(U1()),$1=Yt(wu());function H1(e){return Buffer.isBuffer(e)?new Uint8Array(e).buffer:e}function uA(e,r){let a=r.type?r.type.replace("image/",""):"jpeg",i=(0,$1.default)(e.data,[e.width,e.height,4],[4,e.width*4,1],0);return(0,V1.default)(i,a,r)}function Hh(e,r){let a=uA(e,r);return new Promise(i=>{let t=[];a.on("data",n=>t.push(n)),a.on("end",()=>{let n=Buffer.concat(t);i(H1(n))})})}var j8=Yt(_8());async function Gv(e,r){if(!r)throw new Error("MIMEType is required to parse image under Node.js");let a=e instanceof Buffer?e:Buffer.from(e);return await xN(a,r)}function xN(e,r){return new Promise(a=>(0,j8.default)(e,r,(i,t)=>{if(i)throw i;let n=[...t.shape],o=t.shape.length===4?t.shape.shift():1,s=t.data instanceof Buffer?new Uint8Array(t.data):t.data;a({shape:n,data:s,width:t.shape[0],height:t.shape[1],components:t.shape[2],layers:o?[o]:[]})}))}var P8=Yt(S8());delete global.ReadableStream;var gc=class extends P8.ReadableStream{};var Kv=class{constructor(r){this.isWorking=!1;this.isCancelled=!1;this.chunks=r}start(r){this.work(r)}async work(r){let{chunks:a}=this;for(this.isWorking=!0;!this.isCancelled&&(r.desiredSize||0)>0;){let i;try{i=a.next()}catch(t){r.error(t);break}i&&(!i.done&&!this.isCancelled?r.enqueue(i.value):r.close())}this.isWorking=!1}pull(r){this.isWorking||this.work(r)}cancel(){this.isCancelled=!0}};var Yv=class extends gc{constructor(r){super(new Kv(r.values()),{type:"bytes"});this._chunks=r}async*[Symbol.asyncIterator](r){let a=this.getReader();yield*this._chunks,a.releaseLock()}};var oo=class{constructor(r=[],a={}){this.parts=[],this.size=0;for(let i of r)if(typeof i=="string"){let t=new TextEncoder().encode(i);this.parts.push(t),this.size+=t.byteLength}else if(i instanceof oo)this.size+=i.size,this.parts.push(...i.parts);else if(i instanceof ArrayBuffer)this.parts.push(new Uint8Array(i)),this.size+=i.byteLength;else if(i instanceof Uint8Array)this.parts.push(i),this.size+=i.byteLength;else if(ArrayBuffer.isView(i)){let{buffer:t,byteOffset:n,byteLength:o}=i;this.parts.push(new Uint8Array(t,n,o)),this.size+=o}else{let t=new TextEncoder().encode(String(i));this.parts.push(t),this.size+=t.byteLength}this.type=wN(a.type)}slice(r=0,a=this.size,i=""){let{size:t,parts:n}=this,o=r<0?Math.max(t+r,0):Math.min(r,t),s=a<0?Math.max(t+a,0):Math.min(a,t),c=Math.max(s-o,0),f=new oo([],{type:i});if(c===0)return f;let p=0,m=[];for(let d of n){let{byteLength:v}=d;if(o>0&&v<=o)o-=v,s-=v;else{let y=d.subarray(o,Math.min(v,s));if(m.push(y),p+=y.byteLength,o=0,p>=c)break}}return f.parts=m,f.size=p,f}async arrayBuffer(){return this._toArrayBuffer()}async text(){let r=new TextDecoder,a="";for(let i of this.parts)a+=r.decode(i);return a}stream(){return new Yv(this.parts)}toString(){return"[object Blob]"}get[Symbol.toStringTag](){return"Blob"}_toArrayBuffer(){let r=new ArrayBuffer(this.size),a=new Uint8Array(r),i=0;for(let t of this.parts)a.set(t,i),i+=t.byteLength;return r}};function wN(e=""){let r=String(e).toLowerCase();return/[^\u0020-\u007E]/.test(r)?"":r}var Qv=class extends oo{constructor(r,a,i={}){super(r,i);this.name="";this.webkitRelativePath="";this.name=String(a).replace(/\//g,":"),this.lastModified=(i==null?void 0:i.lastModified)||Date.now()}get[Symbol.toStringTag](){return"File"}};var _N=!di||!("TextEncoder"in Pa);_N&&(Pa.TextEncoder=fu);var jN=!di||!("TextDecoder"in Pa);jN&&(Pa.TextDecoder=vo);!di&&!("atob"in Pa)&&Kc&&(Pa.atob=Kc);!di&&!("btoa"in Pa)&&Dp&&(Pa.btoa=Dp);!di&&!("Headers"in Pa)&&Jt&&(Pa.Headers=Jt);!di&&!("Response"in Pa)&&vi&&(Pa.Response=vi);!di&&!("fetch"in Pa)&&hu&&(Pa.fetch=hu);!di&&!("DOMParser"in Pa)&&Xv.DOMParser&&(Pa.DOMParser=Xv.DOMParser);!di&&!("_encodeImageNode"in Pa)&&Hh&&(Pa._encodeImageNode=Hh);!di&&!("_parseImageNode"in Pa)&&Gv&&(Pa._parseImageNode=Gv);"allSettled"in Promise||(Promise.allSettled=Mg);var A8={POSITION:"POSITION",NORMAL:"NORMAL",COLOR_0:"COLOR",TEXCOORD_0:"TEX_COORD"},EN=()=>{},Wf=class{constructor(r){this.draco=r,this.dracoEncoder=new this.draco.Encoder,this.dracoMeshBuilder=new this.draco.MeshBuilder,this.dracoMetadataBuilder=new this.draco.MetadataBuilder}destroy(){this.destroyEncodedObject(this.dracoMeshBuilder),this.destroyEncodedObject(this.dracoEncoder),this.destroyEncodedObject(this.dracoMetadataBuilder),this.dracoMeshBuilder=null,this.dracoEncoder=null,this.draco=null}destroyEncodedObject(r){r&&this.draco.destroy(r)}encodeSync(r,a={}){return this.log=EN,this._setOptions(a),a.pointcloud?this._encodePointCloud(r,a):this._encodeMesh(r,a)}_getAttributesFromMesh(r){let a=Kt(Kt({},r),r.attributes);return r.indices&&(a.indices=r.indices),a}_encodePointCloud(r,a){let i=new this.draco.PointCloud;a.metadata&&this._addGeometryMetadata(i,a.metadata);let t=this._getAttributesFromMesh(r);this._createDracoPointCloud(i,t,a);let n=new this.draco.DracoInt8Array;try{let o=this.dracoEncoder.EncodePointCloudToDracoBuffer(i,!1,n);if(!(o>0))throw new Error("Draco encoding failed.");return this.log(`DRACO encoded ${i.num_points()} points
|
|
95
|
+
`,m.message,m.stack);var d=new Error("tunneling socket could not be established, cause="+m.message);d.code="ECONNRESET",r.request.emit("error",d),i.removeSocket(t)}};rn.prototype.removeSocket=function(r){var a=this.sockets.indexOf(r);if(a!==-1){this.sockets.splice(a,1);var i=this.requests.shift();i&&this.createConnection(i)}};function K5(e,r){var a=this;rn.prototype.createSocket.call(a,e,function(i){var t=mz.connect(0,Y5({},a.options,{servername:e.host,socket:i}));a.sockets[a.sockets.indexOf(i)]=t,r(t)})}function Y5(e){for(var r=1,a=arguments.length;r<a;++r){var i=arguments[r];if(typeof i=="object")for(var t=Object.keys(i),n=0,o=t.length;n<o;++n){var s=t[n];i[s]!==void 0&&(e[s]=i[s])}}return e}var Oo;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?Oo=function(){var e=Array.prototype.slice.call(arguments);typeof e[0]=="string"?e[0]="TUNNEL: "+e[0]:e.unshift("TUNNEL:"),console.error.apply(console,e)}:Oo=function(){};Ls.debug=Oo});var e8=R(Z5=>{"use strict";var jz=require("url"),Ez=Q5(),X5=["accept","accept-charset","accept-encoding","accept-language","accept-ranges","cache-control","content-encoding","content-language","content-location","content-md5","content-range","content-type","connection","date","expect","max-forwards","pragma","referer","te","user-agent","via"],J5=["proxy-authorization"];function Sz(e){var r=e.port,a=e.protocol,i=e.hostname+":";return r?i+=r:a==="https:"?i+="443":i+="80",i}function Pz(e,r){var a=r.reduce(function(i,t){return i[t.toLowerCase()]=!0,i},{});return Object.keys(e).filter(function(i){return a[i.toLowerCase()]}).reduce(function(i,t){return i[t]=e[t],i},{})}function Az(e,r){var a=e.proxy,i={proxy:{host:a.hostname,port:+a.port,proxyAuth:a.auth,headers:r},headers:e.headers,ca:e.ca,cert:e.cert,key:e.key,passphrase:e.passphrase,pfx:e.pfx,ciphers:e.ciphers,rejectUnauthorized:e.rejectUnauthorized,secureOptions:e.secureOptions,secureProtocol:e.secureProtocol};return i}function Tz(e,r){var a=e.protocol==="https:"?"https":"http",i=r.protocol==="https:"?"Https":"Http";return[a,i].join("Over")}function Cz(e){var r=e.uri,a=e.proxy,i=Tz(r,a);return Ez[i]}function fc(e){this.request=e,this.proxyHeaderWhiteList=X5,this.proxyHeaderExclusiveList=[],typeof e.tunnel!="undefined"&&(this.tunnelOverride=e.tunnel)}fc.prototype.isEnabled=function(){var e=this,r=e.request;return typeof e.tunnelOverride!="undefined"?e.tunnelOverride:r.uri.protocol==="https:"};fc.prototype.setup=function(e){var r=this,a=r.request;if(e=e||{},typeof a.proxy=="string"&&(a.proxy=jz.parse(a.proxy)),!a.proxy||!a.tunnel)return!1;e.proxyHeaderWhiteList&&(r.proxyHeaderWhiteList=e.proxyHeaderWhiteList),e.proxyHeaderExclusiveList&&(r.proxyHeaderExclusiveList=e.proxyHeaderExclusiveList);var i=r.proxyHeaderExclusiveList.concat(J5),t=r.proxyHeaderWhiteList.concat(i),n=Pz(a.headers,t);n.host=Sz(a.uri),i.forEach(a.removeHeader,a);var o=Cz(a),s=Az(a,n);return a.agent=o(s),!0};fc.defaultProxyHeaderWhiteList=X5;fc.defaultProxyHeaderExclusiveList=J5;Z5.Tunnel=fc});var a8=R((r8,pc)=>{(function(){var e,r,a,i,t,n;typeof performance!="undefined"&&performance!==null&&performance.now?pc.exports=function(){return performance.now()}:typeof process!="undefined"&&process!==null&&process.hrtime?(pc.exports=function(){return(e()-t)/1e6},r=process.hrtime,e=function(){var o;return o=r(),o[0]*1e9+o[1]},i=e(),n=process.uptime()*1e9,t=i-n):Date.now?(pc.exports=function(){return Date.now()-a},a=Date.now()):(pc.exports=function(){return new Date().getTime()-a},a=new Date().getTime())}).call(r8)});var h8=R((xW,p8)=>{"use strict";var qz=require("http"),t8=require("https"),hc=require("url"),Hv=require("util"),Mf=require("stream"),Uf=require("zlib"),Vv=Uw(),Fz=Jw(),Iz=U_(),Oz=hf(),i8=df(),n8=X_(),Rz=Ej(),Bz=fl(),o8=ov(),Dz=qj().strict,Ms=vl(),zz=gd(),Nz=Oj(),Lz=Wj().Querystring,Mz=x5().Har,Uz=T5().Auth,Hz=L5().OAuth,Vz=M5(),$z=H5().Multipart,Wz=W5().Redirect,$v=e8().Tunnel,Us=a8(),dc=ls().Buffer,s8=Ms.safeStringify,Gz=Ms.isReadStream,Kz=Ms.toBase64,Yz=Ms.defer,u8=Ms.copy,Qz=Ms.version,c8=zz.jar(),l8={};function Xz(e,r){var a={};for(var i in r){var t=e.indexOf(i)===-1;t&&(a[i]=r[i])}return a}function Jz(e,r){var a={};for(var i in r){var t=e.indexOf(i)!==-1,n=typeof r[i]=="function";t&&n||(a[i]=r[i])}return a}function f8(){var e=this;return{uri:e.uri,method:e.method,headers:e.headers}}function Zz(){var e=this;return{statusCode:e.statusCode,body:e.body,headers:e.headers,request:f8.call(e.request)}}function Rr(e){var r=this;e.har&&(r._har=new Mz(r),e=r._har.options(e)),Mf.Stream.call(r);var a=Object.keys(Rr.prototype),i=Xz(a,e);Bz(r,i),e=Jz(a,e),r.readable=!0,r.writable=!0,e.method&&(r.explicitMethod=!0),r._qs=new Lz(r),r._auth=new Uz(r),r._oauth=new Hz(r),r._multipart=new $z(r),r._redirect=new Wz(r),r._tunnel=new $v(r),r.init(e)}Hv.inherits(Rr,Mf.Stream);Rr.debug=process.env.NODE_DEBUG&&/\brequest\b/.test(process.env.NODE_DEBUG);function tt(){Rr.debug&&console.error("REQUEST %s",Hv.format.apply(Hv,arguments))}Rr.prototype.debug=tt;Rr.prototype.init=function(e){var r=this;e||(e={}),r.headers=r.headers?u8(r.headers):{};for(var a in r.headers)typeof r.headers[a]=="undefined"&&delete r.headers[a];if(i8.httpify(r,r.headers),r.method||(r.method=e.method||"GET"),r.localAddress||(r.localAddress=e.localAddress),r._qs.init(e),tt(e),!r.pool&&r.pool!==!1&&(r.pool=l8),r.dests=r.dests||[],r.__isRequestRequest=!0,!r._callback&&r.callback&&(r._callback=r.callback,r.callback=function(){r._callbackCalled||(r._callbackCalled=!0,r._callback.apply(r,arguments))},r.on("error",r.callback.bind()),r.on("complete",r.callback.bind(r,null))),!r.uri&&r.url&&(r.uri=r.url,delete r.url),r.baseUrl){if(typeof r.baseUrl!="string")return r.emit("error",new Error("options.baseUrl must be a string"));if(typeof r.uri!="string")return r.emit("error",new Error("options.uri must be a string when using options.baseUrl"));if(r.uri.indexOf("//")===0||r.uri.indexOf("://")!==-1)return r.emit("error",new Error("options.uri must be a path when using options.baseUrl"));var i=r.baseUrl.lastIndexOf("/")===r.baseUrl.length-1,t=r.uri.indexOf("/")===0;i&&t?r.uri=r.baseUrl+r.uri.slice(1):i||t?r.uri=r.baseUrl+r.uri:r.uri===""?r.uri=r.baseUrl:r.uri=r.baseUrl+"/"+r.uri,delete r.baseUrl}if(!r.uri)return r.emit("error",new Error("options.uri is a required argument"));if(typeof r.uri=="string"&&(r.uri=hc.parse(r.uri)),r.uri.href||(r.uri.href=hc.format(r.uri)),r.uri.protocol==="unix:")return r.emit("error",new Error("`unix://` URL scheme is no longer supported. Please use the format `http://unix:SOCKET:PATH`"));if(r.uri.host==="unix"&&r.enableUnixSocket(),r.strictSSL===!1&&(r.rejectUnauthorized=!1),r.uri.pathname||(r.uri.pathname="/"),!(r.uri.host||r.uri.hostname&&r.uri.port)&&!r.uri.isUnix){var n=hc.format(r.uri),o='Invalid URI "'+n+'"';return Object.keys(e).length===0&&(o+=". This can be caused by a crappy redirection."),r.abort(),r.emit("error",new Error(o))}if(r.hasOwnProperty("proxy")||(r.proxy=Nz(r.uri)),r.tunnel=r._tunnel.isEnabled(),r.proxy&&r._tunnel.setup(e),r._redirect.onRequest(e),r.setHost=!1,!r.hasHeader("host")){var s=r.originalHostHeaderName||"host";r.setHeader(s,r.uri.host),r.uri.port&&(r.uri.port==="80"&&r.uri.protocol==="http:"||r.uri.port==="443"&&r.uri.protocol==="https:")&&r.setHeader(s,r.uri.hostname),r.setHost=!0}if(r.jar(r._jar||e.jar),r.uri.port||(r.uri.protocol==="http:"?r.uri.port=80:r.uri.protocol==="https:"&&(r.uri.port=443)),r.proxy&&!r.tunnel?(r.port=r.proxy.port,r.host=r.proxy.hostname):(r.port=r.uri.port,r.host=r.uri.hostname),e.form&&r.form(e.form),e.formData){var c=e.formData,f=r.form(),p=function(B,N){N&&N.hasOwnProperty("value")&&N.hasOwnProperty("options")?f.append(B,N.value,N.options):f.append(B,N)};for(var m in c)if(c.hasOwnProperty(m)){var d=c[m];if(d instanceof Array)for(var v=0;v<d.length;v++)p(m,d[v]);else p(m,d)}}if(e.qs&&r.qs(e.qs),r.uri.path?r.path=r.uri.path:r.path=r.uri.pathname+(r.uri.search||""),r.path.length===0&&(r.path="/"),e.aws&&r.aws(e.aws),e.hawk&&r.hawk(e.hawk),e.httpSignature&&r.httpSignature(e.httpSignature),e.auth&&(Object.prototype.hasOwnProperty.call(e.auth,"username")&&(e.auth.user=e.auth.username),Object.prototype.hasOwnProperty.call(e.auth,"password")&&(e.auth.pass=e.auth.password),r.auth(e.auth.user,e.auth.pass,e.auth.sendImmediately,e.auth.bearer)),r.gzip&&!r.hasHeader("accept-encoding")&&r.setHeader("accept-encoding","gzip, deflate"),r.uri.auth&&!r.hasHeader("authorization")){var y=r.uri.auth.split(":").map(function(B){return r._qs.unescape(B)});r.auth(y[0],y.slice(1).join(":"),!0)}if(!r.tunnel&&r.proxy&&r.proxy.auth&&!r.hasHeader("proxy-authorization")){var S=r.proxy.auth.split(":").map(function(B){return r._qs.unescape(B)}),w="Basic "+Kz(S.join(":"));r.setHeader("proxy-authorization",w)}r.proxy&&!r.tunnel&&(r.path=r.uri.protocol+"//"+r.uri.host+r.path),e.json&&r.json(e.json),e.multipart&&r.multipart(e.multipart),e.time&&(r.timing=!0,r.elapsedTime=r.elapsedTime||0);function P(){if(Dz(r.body)&&(r.body=dc.from(r.body)),!r.hasHeader("content-length")){var B;typeof r.body=="string"?B=dc.byteLength(r.body):Array.isArray(r.body)?B=r.body.reduce(function(N,V){return N+V.length},0):B=r.body.length,B?r.setHeader("content-length",B):r.emit("error",new Error("Argument error, options.body."))}}r.body&&!o8(r.body)&&P(),e.oauth?r.oauth(e.oauth):r._oauth.params&&r.hasHeader("authorization")&&r.oauth(r._oauth.params);var C=r.proxy&&!r.tunnel?r.proxy.protocol:r.uri.protocol,T={"http:":qz,"https:":t8},O=r.httpModules||{};if(r.httpModule=O[C]||T[C],!r.httpModule)return r.emit("error",new Error("Invalid protocol: "+C));if(e.ca&&(r.ca=e.ca),!r.agent)if(e.agentOptions&&(r.agentOptions=e.agentOptions),e.agentClass)r.agentClass=e.agentClass;else if(e.forever){var I=Qz();I.major===0&&I.minor<=10?r.agentClass=C==="http:"?n8:n8.SSL:(r.agentClass=r.httpModule.Agent,r.agentOptions=r.agentOptions||{},r.agentOptions.keepAlive=!0)}else r.agentClass=r.httpModule.Agent;r.pool===!1?r.agent=!1:r.agent=r.agent||r.getNewAgent(),r.on("pipe",function(B){if(r.ntick&&r._started&&r.emit("error",new Error("You cannot pipe to this stream after the outbound request has started.")),r.src=B,Gz(B))r.hasHeader("content-type")||r.setHeader("content-type",Oz.lookup(B.path));else{if(B.headers)for(var N in B.headers)r.hasHeader(N)||r.setHeader(N,B.headers[N]);r._json&&!r.hasHeader("content-type")&&r.setHeader("content-type","application/json"),B.method&&!r.explicitMethod&&(r.method=B.method)}}),Yz(function(){if(!r._aborted){var B=function(){if(r._form&&(r._auth.hasAuth?r._auth.hasAuth&&r._auth.sentAuth&&r._form.pipe(r):r._form.pipe(r)),r._multipart&&r._multipart.chunked&&r._multipart.body.pipe(r),r.body)o8(r.body)?r.body.pipe(r):(P(),Array.isArray(r.body)?r.body.forEach(function(N){r.write(N)}):r.write(r.body),r.end());else if(r.requestBodyStream)console.warn("options.requestBodyStream is deprecated, please pass the request object to stream.pipe."),r.requestBodyStream.pipe(r);else if(!r.src){if(r._auth.hasAuth&&!r._auth.sentAuth){r.end();return}r.method!=="GET"&&typeof r.method!="undefined"&&r.setHeader("content-length",0),r.end()}};r._form&&!r.hasHeader("content-length")?(r.setHeader(r._form.getHeaders(),!0),r._form.getLength(function(N,V){!N&&!isNaN(V)&&r.setHeader("content-length",V),B()})):B(),r.ntick=!0}})};Rr.prototype.getNewAgent=function(){var e=this,r=e.agentClass,a={};if(e.agentOptions)for(var i in e.agentOptions)a[i]=e.agentOptions[i];e.ca&&(a.ca=e.ca),e.ciphers&&(a.ciphers=e.ciphers),e.secureProtocol&&(a.secureProtocol=e.secureProtocol),e.secureOptions&&(a.secureOptions=e.secureOptions),typeof e.rejectUnauthorized!="undefined"&&(a.rejectUnauthorized=e.rejectUnauthorized),e.cert&&e.key&&(a.key=e.key,a.cert=e.cert),e.pfx&&(a.pfx=e.pfx),e.passphrase&&(a.passphrase=e.passphrase);var t="";r!==e.httpModule.Agent&&(t+=r.name);var n=e.proxy;typeof n=="string"&&(n=hc.parse(n));var o=n&&n.protocol==="https:"||this.uri.protocol==="https:";return o&&(a.ca&&(t&&(t+=":"),t+=a.ca),typeof a.rejectUnauthorized!="undefined"&&(t&&(t+=":"),t+=a.rejectUnauthorized),a.cert&&(t&&(t+=":"),t+=a.cert.toString("ascii")+a.key.toString("ascii")),a.pfx&&(t&&(t+=":"),t+=a.pfx.toString("ascii")),a.ciphers&&(t&&(t+=":"),t+=a.ciphers),a.secureProtocol&&(t&&(t+=":"),t+=a.secureProtocol),a.secureOptions&&(t&&(t+=":"),t+=a.secureOptions)),e.pool===l8&&!t&&Object.keys(a).length===0&&e.httpModule.globalAgent?e.httpModule.globalAgent:(t=e.uri.protocol+t,e.pool[t]||(e.pool[t]=new r(a),e.pool.maxSockets&&(e.pool[t].maxSockets=e.pool.maxSockets)),e.pool[t])};Rr.prototype.start=function(){var e=this;if(e.timing)var r=new Date().getTime(),a=Us();if(!e._aborted){e._started=!0,e.method=e.method||"GET",e.href=e.uri.href,e.src&&e.src.stat&&e.src.stat.size&&!e.hasHeader("content-length")&&e.setHeader("content-length",e.src.stat.size),e._aws&&e.aws(e._aws,!0);var i=u8(e);delete i.auth,tt("make request",e.uri.href),delete i.timeout;try{e.req=e.httpModule.request(i)}catch(n){e.emit("error",n);return}e.timing&&(e.startTime=r,e.startTimeNow=a,e.timings={});var t;e.timeout&&!e.timeoutTimer&&(e.timeout<0?t=0:typeof e.timeout=="number"&&isFinite(e.timeout)&&(t=e.timeout)),e.req.on("response",e.onRequestResponse.bind(e)),e.req.on("error",e.onRequestError.bind(e)),e.req.on("drain",function(){e.emit("drain")}),e.req.on("socket",function(n){var o=n._connecting||n.connecting;if(e.timing&&(e.timings.socket=Us()-e.startTimeNow,o)){var s=function(){e.timings.lookup=Us()-e.startTimeNow},c=function(){e.timings.connect=Us()-e.startTimeNow};n.once("lookup",s),n.once("connect",c),e.req.once("error",function(){n.removeListener("lookup",s),n.removeListener("connect",c)})}var f=function(){e.req.setTimeout(t,function(){if(e.req){e.abort();var m=new Error("ESOCKETTIMEDOUT");m.code="ESOCKETTIMEDOUT",m.connect=!1,e.emit("error",m)}})};if(t!==void 0)if(o){var p=function(){n.removeListener("connect",p),e.clearTimeout(),f()};n.on("connect",p),e.req.on("error",function(m){n.removeListener("connect",p)}),e.timeoutTimer=setTimeout(function(){n.removeListener("connect",p),e.abort();var m=new Error("ETIMEDOUT");m.code="ETIMEDOUT",m.connect=!0,e.emit("error",m)},t)}else f();e.emit("socket",n)}),e.emit("request",e.req)}};Rr.prototype.onRequestError=function(e){var r=this;if(!r._aborted){if(r.req&&r.req._reusedSocket&&e.code==="ECONNRESET"&&r.agent.addRequestNoreuse){r.agent={addRequest:r.agent.addRequestNoreuse.bind(r.agent)},r.start(),r.req.end();return}r.clearTimeout(),r.emit("error",e)}};Rr.prototype.onRequestResponse=function(e){var r=this;if(r.timing&&(r.timings.response=Us()-r.startTimeNow),tt("onRequestResponse",r.uri.href,e.statusCode,e.headers),e.on("end",function(){r.timing&&(r.timings.end=Us()-r.startTimeNow,e.timingStart=r.startTime,r.timings.socket||(r.timings.socket=0),r.timings.lookup||(r.timings.lookup=r.timings.socket),r.timings.connect||(r.timings.connect=r.timings.lookup),r.timings.response||(r.timings.response=r.timings.connect),tt("elapsed time",r.timings.end),r.elapsedTime+=Math.round(r.timings.end),e.elapsedTime=r.elapsedTime,e.timings=r.timings,e.timingPhases={wait:r.timings.socket,dns:r.timings.lookup-r.timings.socket,tcp:r.timings.connect-r.timings.lookup,firstByte:r.timings.response-r.timings.connect,download:r.timings.end-r.timings.response,total:r.timings.end}),tt("response end",r.uri.href,e.statusCode,e.headers)}),r._aborted){tt("aborted",r.uri.href),e.resume();return}if(r.response=e,e.request=r,e.toJSON=Zz,r.httpModule===t8&&r.strictSSL&&(!e.hasOwnProperty("socket")||!e.socket.authorized)){tt("strict ssl error",r.uri.href);var a=e.hasOwnProperty("socket")?e.socket.authorizationError:r.uri.href+" does not support SSL";r.emit("error",new Error("SSL Error: "+a));return}r.originalHost=r.getHeader("host"),r.originalHostHeaderName||(r.originalHostHeaderName=r.hasHeader("host")),r.setHost&&r.removeHeader("host"),r.clearTimeout();var i=r._jar&&r._jar.setCookie?r._jar:c8,t=function(p){try{i.setCookie(p,r.uri.href,{ignoreError:!0})}catch(m){r.emit("error",m)}};if(e.caseless=i8(e.headers),e.caseless.has("set-cookie")&&!r._disableCookies){var n=e.caseless.has("set-cookie");Array.isArray(e.headers[n])?e.headers[n].forEach(t):t(e.headers[n])}if(!r._redirect.onResponse(e)){{e.on("close",function(){r._ended||r.response.emit("end")}),e.once("end",function(){r._ended=!0});var o=function(p){return r.method==="HEAD"||p>=100&&p<200||p===204||p===304},s;if(r.gzip&&!o(e.statusCode)){var c=e.headers["content-encoding"]||"identity";c=c.trim().toLowerCase();var f={flush:Uf.Z_SYNC_FLUSH,finishFlush:Uf.Z_SYNC_FLUSH};c==="gzip"?(s=Uf.createGunzip(f),e.pipe(s)):c==="deflate"?(s=Uf.createInflate(f),e.pipe(s)):(c!=="identity"&&tt("ignoring unrecognized Content-Encoding "+c),s=e)}else s=e;r.encoding&&(r.dests.length!==0?console.error("Ignoring encoding parameter as this stream is being piped to another stream which makes the encoding option invalid."):s.setEncoding(r.encoding)),r._paused&&s.pause(),r.responseContent=s,r.emit("response",e),r.dests.forEach(function(p){r.pipeDest(p)}),s.on("data",function(p){r.timing&&!r.responseStarted&&(r.responseStartTime=new Date().getTime(),e.responseStartTime=r.responseStartTime),r._destdata=!0,r.emit("data",p)}),s.once("end",function(p){r.emit("end",p)}),s.on("error",function(p){r.emit("error",p)}),s.on("close",function(){r.emit("close")}),r.callback?r.readResponseBody(e):r.on("end",function(){if(r._aborted){tt("aborted",r.uri.href);return}r.emit("complete",e)})}tt("finish init function",r.uri.href)}};Rr.prototype.readResponseBody=function(e){var r=this;tt("reading response's body");var a=[],i=0,t=[];r.on("data",function(n){dc.isBuffer(n)?n.length&&(i+=n.length,a.push(n)):t.push(n)}),r.on("end",function(){if(tt("end event",r.uri.href),r._aborted){tt("aborted",r.uri.href),a=[],i=0;return}if(i?(tt("has body",r.uri.href,i),e.body=dc.concat(a,i),r.encoding!==null&&(e.body=e.body.toString(r.encoding)),a=[],i=0):t.length&&(r.encoding==="utf8"&&t[0].length>0&&t[0][0]==="\uFEFF"&&(t[0]=t[0].substring(1)),e.body=t.join("")),r._json)try{e.body=JSON.parse(e.body,r._jsonReviver)}catch{tt("invalid JSON received",r.uri.href)}tt("emitting complete",r.uri.href),typeof e.body=="undefined"&&!r._json&&(e.body=r.encoding===null?dc.alloc(0):""),r.emit("complete",e,e.body)})};Rr.prototype.abort=function(){var e=this;e._aborted=!0,e.req?e.req.abort():e.response&&e.response.destroy(),e.clearTimeout(),e.emit("abort")};Rr.prototype.pipeDest=function(e){var r=this,a=r.response;if(e.headers&&!e.headersSent){if(a.caseless.has("content-type")){var i=a.caseless.has("content-type");e.setHeader?e.setHeader(i,a.headers[i]):e.headers[i]=a.headers[i]}if(a.caseless.has("content-length")){var t=a.caseless.has("content-length");e.setHeader?e.setHeader(t,a.headers[t]):e.headers[t]=a.headers[t]}}if(e.setHeader&&!e.headersSent){for(var n in a.headers)(!r.gzip||n!=="content-encoding")&&e.setHeader(n,a.headers[n]);e.statusCode=a.statusCode}r.pipefilter&&r.pipefilter(a,e)};Rr.prototype.qs=function(e,r){var a=this,i;!r&&a.uri.query?i=a._qs.parse(a.uri.query):i={};for(var t in e)i[t]=e[t];var n=a._qs.stringify(i);return n===""||(a.uri=hc.parse(a.uri.href.split("?")[0]+"?"+n),a.url=a.uri,a.path=a.uri.path,a.uri.host==="unix"&&a.enableUnixSocket()),a};Rr.prototype.form=function(e){var r=this;return e?(/^application\/x-www-form-urlencoded\b/.test(r.getHeader("content-type"))||r.setHeader("content-type","application/x-www-form-urlencoded"),r.body=typeof e=="string"?r._qs.rfc3986(e.toString("utf8")):r._qs.stringify(e).toString("utf8"),r):(r._form=new Rz,r._form.on("error",function(a){a.message="form-data: "+a.message,r.emit("error",a),r.abort()}),r._form)};Rr.prototype.multipart=function(e){var r=this;return r._multipart.onRequest(e),r._multipart.chunked||(r.body=r._multipart.body),r};Rr.prototype.json=function(e){var r=this;return r.hasHeader("accept")||r.setHeader("accept","application/json"),typeof r.jsonReplacer=="function"&&(r._jsonReplacer=r.jsonReplacer),r._json=!0,typeof e=="boolean"?r.body!==void 0&&(/^application\/x-www-form-urlencoded\b/.test(r.getHeader("content-type"))?r.body=r._qs.rfc3986(r.body):r.body=s8(r.body,r._jsonReplacer),r.hasHeader("content-type")||r.setHeader("content-type","application/json")):(r.body=s8(e,r._jsonReplacer),r.hasHeader("content-type")||r.setHeader("content-type","application/json")),typeof r.jsonReviver=="function"&&(r._jsonReviver=r.jsonReviver),r};Rr.prototype.getHeader=function(e,r){var a=this,i,t,n;return r||(r=a.headers),Object.keys(r).forEach(function(o){o.length===e.length&&(t=new RegExp(e,"i"),n=o.match(t),n&&(i=r[o]))}),i};Rr.prototype.enableUnixSocket=function(){var e=this.uri.path.split(":"),r=e[0],a=e[1];this.socketPath=r,this.uri.pathname=a,this.uri.path=a,this.uri.host=r,this.uri.hostname=r,this.uri.isUnix=!0};Rr.prototype.auth=function(e,r,a,i){var t=this;return t._auth.onRequest(e,r,a,i),t};Rr.prototype.aws=function(e,r){var a=this;if(!r)return a._aws=e,a;if(e.sign_version===4||e.sign_version==="4"){var i={host:a.uri.host,path:a.uri.path,method:a.method,headers:a.headers,body:a.body};e.service&&(i.service=e.service);var t=Fz.sign(i,{accessKeyId:e.key,secretAccessKey:e.secret,sessionToken:e.session});a.setHeader("authorization",t.headers.Authorization),a.setHeader("x-amz-date",t.headers["X-Amz-Date"]),t.headers["X-Amz-Security-Token"]&&a.setHeader("x-amz-security-token",t.headers["X-Amz-Security-Token"])}else{var n=new Date;a.setHeader("date",n.toUTCString());var o={key:e.key,secret:e.secret,verb:a.method.toUpperCase(),date:n,contentType:a.getHeader("content-type")||"",md5:a.getHeader("content-md5")||"",amazonHeaders:Vv.canonicalizeHeaders(a.headers)},s=a.uri.path;e.bucket&&s?o.resource="/"+e.bucket+s:e.bucket&&!s?o.resource="/"+e.bucket:!e.bucket&&s?o.resource=s:!e.bucket&&!s&&(o.resource="/"),o.resource=Vv.canonicalizeResource(o.resource),a.setHeader("authorization",Vv.authorization(o))}return a};Rr.prototype.httpSignature=function(e){var r=this;return Iz.signRequest({getHeader:function(a){return r.getHeader(a,r.headers)},setHeader:function(a,i){r.setHeader(a,i)},method:r.method,path:r.path},e),tt("httpSignature authorization",r.getHeader("authorization")),r};Rr.prototype.hawk=function(e){var r=this;r.setHeader("Authorization",Vz.header(r.uri,r.method,e))};Rr.prototype.oauth=function(e){var r=this;return r._oauth.onRequest(e),r};Rr.prototype.jar=function(e){var r=this,a;if(r._redirect.redirectsFollowed===0&&(r.originalCookieHeader=r.getHeader("cookie")),!e)a=!1,r._disableCookies=!0;else{var i=e.getCookieString?e:c8,t=r.uri.href;i&&(a=i.getCookieString(t))}return a&&a.length&&(r.originalCookieHeader?r.setHeader("cookie",r.originalCookieHeader+"; "+a):r.setHeader("cookie",a)),r._jar=e,r};Rr.prototype.pipe=function(e,r){var a=this;if(a.response)if(a._destdata)a.emit("error",new Error("You cannot pipe after data has been emitted from the response."));else if(a._ended)a.emit("error",new Error("You cannot pipe after the response has been ended."));else return Mf.Stream.prototype.pipe.call(a,e,r),a.pipeDest(e),e;else return a.dests.push(e),Mf.Stream.prototype.pipe.call(a,e,r),e};Rr.prototype.write=function(){var e=this;if(!e._aborted&&(e._started||e.start(),e.req))return e.req.write.apply(e.req,arguments)};Rr.prototype.end=function(e){var r=this;r._aborted||(e&&r.write(e),r._started||r.start(),r.req&&r.req.end())};Rr.prototype.pause=function(){var e=this;e.responseContent?e.responseContent.pause.apply(e.responseContent,arguments):e._paused=!0};Rr.prototype.resume=function(){var e=this;e.responseContent?e.responseContent.resume.apply(e.responseContent,arguments):e._paused=!1};Rr.prototype.destroy=function(){var e=this;this.clearTimeout(),e._ended?e.response&&e.response.destroy():e.end()};Rr.prototype.clearTimeout=function(){this.timeoutTimer&&(clearTimeout(this.timeoutTimer),this.timeoutTimer=null)};Rr.defaultProxyHeaderWhiteList=$v.defaultProxyHeaderWhiteList.slice();Rr.defaultProxyHeaderExclusiveList=$v.defaultProxyHeaderExclusiveList.slice();Rr.prototype.toJSON=f8;p8.exports=Rr});var v8=R((wW,m8)=>{"use strict";var mc=fl(),d8=gd(),eN=vl(),rN=eN.paramsHaveRequestBody;function Hf(e,r,a){typeof r=="function"&&(a=r);var i={};return r!==null&&typeof r=="object"?mc(i,r,{uri:e}):typeof e=="string"?mc(i,{uri:e}):mc(i,e),i.callback=a||i.callback,i}function qa(e,r,a){if(typeof e=="undefined")throw new Error("undefined is not a valid uri or options object.");var i=Hf(e,r,a);if(i.method==="HEAD"&&rN(i))throw new Error("HTTP HEAD requests MUST NOT include a request body.");return new qa.Request(i)}function no(e){var r=e.toUpperCase();return function(a,i,t){var n=Hf(a,i,t);return n.method=r,qa(n,n.callback)}}qa.get=no("get");qa.head=no("head");qa.options=no("options");qa.post=no("post");qa.put=no("put");qa.patch=no("patch");qa.del=no("delete");qa.delete=no("delete");qa.jar=function(e){return d8.jar(e)};qa.cookie=function(e){return d8.parse(e)};function Wv(e,r,a,i){return function(t,n,o){var s=Hf(t,n,o),c={};return mc(!0,c,r,s),c.pool=s.pool||r.pool,i&&(c.method=i.toUpperCase()),typeof a=="function"&&(e=a),e(c,c.callback)}}qa.defaults=function(e,r){var a=this;e=e||{},typeof e=="function"&&(r=e,e={});var i=Wv(a,e,r),t=["get","head","post","put","patch","del","delete"];return t.forEach(function(n){i[n]=Wv(a[n],e,r,n)}),i.cookie=Wv(a.cookie,e,r),i.jar=a.jar,i.defaults=a.defaults,i};qa.forever=function(e,r){var a={};return r&&mc(a,r),e&&(a.agentOptions=e),a.forever=!0,qa.defaults(a)};m8.exports=qa;qa.Request=h8();qa.initParams=Hf;Object.defineProperty(qa,"debug",{enumerable:!0,get:function(){return qa.Request.debug},set:function(e){qa.Request.debug=e}})});var b8=R((kW,g8)=>{g8.exports=aN;function aN(e){if(!/^data\:/i.test(e))throw new TypeError('`uri` does not appear to be a Data URI (must begin with "data:")');e=e.replace(/\r?\n/g,"");var r=e.indexOf(",");if(r===-1||r<=4)throw new TypeError("malformed data: URI");for(var a=e.substring(5,r).split(";"),i=!1,t="US-ASCII",n=0;n<a.length;n++)a[n]=="base64"?i=!0:a[n].indexOf("charset=")==0&&(t=a[n].substring(8));var o=unescape(e.substring(r+1)),s=i?"base64":"ascii",c=new Buffer(o,s);return c.type=a[0]||"text/plain",c.charset=t,c}});var w8=R((_W,x8)=>{var tN=b8();function iN(e){return{mimeType:oN(nN(e)),data:tN(e)}}function nN(e){return e.substring(5,e.indexOf(";"))}var y8=/^(\w+\/)+/;function oN(e){e=e.toLowerCase();var r=e.match(y8);return!r||!(r=r[1])?e:e.replace(y8,r)}x8.exports=iN});var _8=R((EW,k8)=>{"use strict";var vc=wu(),jW=require("path"),sN=Lx().PNG,uN=_h(),cN=$x(),lN=Gx().GifReader,fN=Jx(),pN=require("fs"),hN=v8(),dN=hf(),mN=w8();function vN(e,r){var a=new sN;a.parse(e,function(i,t){if(i){r(i);return}r(null,vc(new Uint8Array(t.data),[t.width|0,t.height|0,4],[4,4*t.width|0,1],0))})}function gN(e,r){var a;try{a=uN.decode(e)}catch(n){r(n);return}if(!a){r(new Error("Error decoding jpeg"));return}var i=[a.height,a.width,4],t=vc(a.data,i);r(null,t.transpose(1,0))}function bN(e,r){var a;try{a=new lN(e)}catch(s){r(s);return}if(a.numFrames()>0){var i=[a.numFrames(),a.height,a.width,4];try{var t=new Uint8Array(i[0]*i[1]*i[2]*i[3])}catch(s){r(s);return}var n=vc(t,i);try{for(var o=0;o<a.numFrames();++o)a.decodeAndBlitFrameRGBA(o,t.subarray(n.index(o,0,0,0),n.index(o+1,0,0,0)))}catch(s){r(s);return}r(null,n.transpose(0,2,1))}else{var i=[a.height,a.width,4],t=new Uint8Array(i[0]*i[1]*i[2]),n=vc(t,i);try{a.decodeAndBlitFrameRGBA(0,t)}catch(p){r(p);return}r(null,n.transpose(1,0))}}function yN(e,r){var a=new fN(e);try{a.init()}catch(s){r(s);return}var i=a.getData(),t=[i.getHeight(),i.getWidth(),4],n=new Uint8Array(t[0]*t[1]*t[2]),o=vc(n,t);cN(i,o),r(null,o.transpose(1,0))}function Vf(e,r,a){switch(e){case"image/png":vN(r,a);break;case"image/jpg":case"image/jpeg":gN(r,a);break;case"image/gif":bN(r,a);break;case"image/bmp":yN(r,a);break;default:a(new Error("Unsupported file type: "+e))}}k8.exports=function(r,a,i){if(i||(i=a,a=""),Buffer.isBuffer(r)){if(!a){i(new Error("Invalid file type"));return}Vf(a,r,i)}else if(r.indexOf("data:")===0)try{var t=mN(r);t?process.nextTick(function(){Vf(a||t.mimeType,t.data,i)}):process.nextTick(function(){i(new Error("Error parsing data URI"))})}catch(n){process.nextTick(function(){i(n)})}else r.indexOf("http://")===0||r.indexOf("https://")===0?hN({url:r,encoding:null},function(n,o,s){if(n){i(n);return}if(a=a,a||(o.getHeader!==void 0?a=o.getHeader("content-type"):o.headers!==void 0&&(a=o.headers["content-type"])),!a){i(new Error("Invalid content-type"));return}Vf(a,s,i)}):pN.readFile(r,function(n,o){if(n){i(n);return}if(a=a||dN.lookup(r),!a){i(new Error("Invalid file type"));return}Vf(a,o,i)})}});var S8=R(($f,E8)=>{(function(e,r){typeof $f=="object"&&typeof E8!="undefined"?r($f):typeof define=="function"&&define.amd?define(["exports"],r):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e.WebStreamsPolyfill={}))})($f,function(e){"use strict";var r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol:function(u){return"Symbol("+u+")"};function a(){}function i(){if(typeof self!="undefined")return self;if(typeof window!="undefined")return window;if(typeof global!="undefined")return global}var t=i();function n(u){return typeof u=="object"&&u!==null||typeof u=="function"}var o=a,s=Promise,c=Promise.prototype.then,f=Promise.resolve.bind(s),p=Promise.reject.bind(s);function m(u){return new s(u)}function d(u){return f(u)}function v(u){return p(u)}function y(u,h,j){return c.call(u,h,j)}function S(u,h,j){y(y(u,h,j),void 0,o)}function w(u,h){S(u,h)}function P(u,h){S(u,void 0,h)}function C(u,h,j){return y(u,h,j)}function T(u){y(u,void 0,o)}var O=function(){var u=t&&t.queueMicrotask;if(typeof u=="function")return u;var h=d(void 0);return function(j){return y(h,j)}}();function I(u,h,j){if(typeof u!="function")throw new TypeError("Argument is not a function");return Function.prototype.apply.call(u,h,j)}function B(u,h,j){try{return d(I(u,h,j))}catch(D){return v(D)}}var N=16384,V=function(){function u(){this._cursor=0,this._size=0,this._front={_elements:[],_next:void 0},this._back=this._front,this._cursor=0,this._size=0}return Object.defineProperty(u.prototype,"length",{get:function(){return this._size},enumerable:!1,configurable:!0}),u.prototype.push=function(h){var j=this._back,D=j;j._elements.length===N-1&&(D={_elements:[],_next:void 0}),j._elements.push(h),D!==j&&(this._back=D,j._next=D),++this._size},u.prototype.shift=function(){var h=this._front,j=h,D=this._cursor,G=D+1,se=h._elements,be=se[D];return G===N&&(j=h._next,G=0),--this._size,this._cursor=G,h!==j&&(this._front=j),se[D]=void 0,be},u.prototype.forEach=function(h){for(var j=this._cursor,D=this._front,G=D._elements;(j!==G.length||D._next!==void 0)&&!(j===G.length&&(D=D._next,G=D._elements,j=0,G.length===0));)h(G[j]),++j},u.prototype.peek=function(){var h=this._front,j=this._cursor;return h._elements[j]},u}();function $(u,h){u._ownerReadableStream=h,h._reader=u,h._state==="readable"?H(u):h._state==="closed"?re(u):X(u,h._storedError)}function K(u,h){var j=u._ownerReadableStream;return fi(j,h)}function W(u){u._ownerReadableStream._state==="readable"?ce(u,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")):fe(u,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")),u._ownerReadableStream._reader=void 0,u._ownerReadableStream=void 0}function J(u){return new TypeError("Cannot "+u+" a stream using a released reader")}function H(u){u._closedPromise=m(function(h,j){u._closedPromise_resolve=h,u._closedPromise_reject=j})}function X(u,h){H(u),ce(u,h)}function re(u){H(u),pe(u)}function ce(u,h){u._closedPromise_reject!==void 0&&(T(u._closedPromise),u._closedPromise_reject(h),u._closedPromise_resolve=void 0,u._closedPromise_reject=void 0)}function fe(u,h){X(u,h)}function pe(u){u._closedPromise_resolve!==void 0&&(u._closedPromise_resolve(void 0),u._closedPromise_resolve=void 0,u._closedPromise_reject=void 0)}var je=r("[[AbortSteps]]"),ye=r("[[ErrorSteps]]"),Ne=r("[[CancelSteps]]"),Ue=r("[[PullSteps]]"),Be=Number.isFinite||function(u){return typeof u=="number"&&isFinite(u)},U=Math.trunc||function(u){return u<0?Math.ceil(u):Math.floor(u)};function we(u){return typeof u=="object"||typeof u=="function"}function Qe(u,h){if(u!==void 0&&!we(u))throw new TypeError(h+" is not an object.")}function We(u,h){if(typeof u!="function")throw new TypeError(h+" is not a function.")}function $e(u){return typeof u=="object"&&u!==null||typeof u=="function"}function rr(u,h){if(!$e(u))throw new TypeError(h+" is not an object.")}function Fe(u,h,j){if(u===void 0)throw new TypeError("Parameter "+h+" is required in '"+j+"'.")}function he(u,h,j){if(u===void 0)throw new TypeError(h+" is required in '"+j+"'.")}function ke(u){return Number(u)}function ir(u){return u===0?0:u}function Ae(u){return ir(U(u))}function ur(u,h){var j=0,D=Number.MAX_SAFE_INTEGER,G=Number(u);if(G=ir(G),!Be(G))throw new TypeError(h+" is not a finite number");if(G=Ae(G),G<j||G>D)throw new TypeError(h+" is outside the accepted range of "+j+" to "+D+", inclusive");return!Be(G)||G===0?0:G}function Br(u,h){if(!Pn(u))throw new TypeError(h+" is not a ReadableStream.")}function Wr(u){return new Ye(u)}function Z(u,h){u._reader._readRequests.push(h)}function Ie(u,h,j){var D=u._reader,G=D._readRequests.shift();j?G._closeSteps():G._chunkSteps(h)}function Ge(u){return u._reader._readRequests.length}function He(u){var h=u._reader;return!(h===void 0||!Ze(h))}var Ye=function(){function u(h){if(Fe(h,1,"ReadableStreamDefaultReader"),Br(h,"First parameter"),An(h))throw new TypeError("This stream has already been locked for exclusive reading by another reader");$(this,h),this._readRequests=new V}return Object.defineProperty(u.prototype,"closed",{get:function(){return Ze(this)?this._closedPromise:v(mr("closed"))},enumerable:!1,configurable:!0}),u.prototype.cancel=function(h){return h===void 0&&(h=void 0),Ze(this)?this._ownerReadableStream===void 0?v(J("cancel")):K(this,h):v(mr("cancel"))},u.prototype.read=function(){if(!Ze(this))return v(mr("read"));if(this._ownerReadableStream===void 0)return v(J("read from"));var h,j,D=m(function(se,be){h=se,j=be}),G={_chunkSteps:function(se){return h({value:se,done:!1})},_closeSteps:function(){return h({value:void 0,done:!0})},_errorSteps:function(se){return j(se)}};return nr(this,G),D},u.prototype.releaseLock=function(){if(!Ze(this))throw mr("releaseLock");if(this._ownerReadableStream!==void 0){if(this._readRequests.length>0)throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");W(this)}},u}();Object.defineProperties(Ye.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),typeof r.toStringTag=="symbol"&&Object.defineProperty(Ye.prototype,r.toStringTag,{value:"ReadableStreamDefaultReader",configurable:!0});function Ze(u){return!n(u)||!Object.prototype.hasOwnProperty.call(u,"_readRequests")?!1:u instanceof Ye}function nr(u,h){var j=u._ownerReadableStream;j._disturbed=!0,j._state==="closed"?h._closeSteps():j._state==="errored"?h._errorSteps(j._storedError):j._readableStreamController[Ue](h)}function mr(u){return new TypeError("ReadableStreamDefaultReader.prototype."+u+" can only be used on a ReadableStreamDefaultReader")}var Or,vr;typeof r.asyncIterator=="symbol"&&(vr=(Or={},Or[r.asyncIterator]=function(){return this},Or),Object.defineProperty(vr,r.asyncIterator,{enumerable:!1}));var ge=function(){function u(h,j){this._ongoingPromise=void 0,this._isFinished=!1,this._reader=h,this._preventCancel=j}return u.prototype.next=function(){var h=this,j=function(){return h._nextSteps()};return this._ongoingPromise=this._ongoingPromise?C(this._ongoingPromise,j,j):j(),this._ongoingPromise},u.prototype.return=function(h){var j=this,D=function(){return j._returnSteps(h)};return this._ongoingPromise?C(this._ongoingPromise,D,D):D()},u.prototype._nextSteps=function(){var h=this;if(this._isFinished)return Promise.resolve({value:void 0,done:!0});var j=this._reader;if(j._ownerReadableStream===void 0)return v(J("iterate"));var D,G,se=m(function(Je,Sr){D=Je,G=Sr}),be={_chunkSteps:function(Je){h._ongoingPromise=void 0,O(function(){return D({value:Je,done:!1})})},_closeSteps:function(){h._ongoingPromise=void 0,h._isFinished=!0,W(j),D({value:void 0,done:!0})},_errorSteps:function(Je){h._ongoingPromise=void 0,h._isFinished=!0,W(j),G(Je)}};return nr(j,be),se},u.prototype._returnSteps=function(h){if(this._isFinished)return Promise.resolve({value:h,done:!0});this._isFinished=!0;var j=this._reader;if(j._ownerReadableStream===void 0)return v(J("finish iterating"));if(!this._preventCancel){var D=K(j,h);return W(j),C(D,function(){return{value:h,done:!0}})}return W(j),d({value:h,done:!0})},u}(),Ke={next:function(){return Ar(this)?this._asyncIteratorImpl.next():v(lr("next"))},return:function(u){return Ar(this)?this._asyncIteratorImpl.return(u):v(lr("return"))}};vr!==void 0&&Object.setPrototypeOf(Ke,vr);function pr(u,h){var j=Wr(u),D=new ge(j,h),G=Object.create(Ke);return G._asyncIteratorImpl=D,G}function Ar(u){if(!n(u)||!Object.prototype.hasOwnProperty.call(u,"_asyncIteratorImpl"))return!1;try{return u._asyncIteratorImpl instanceof ge}catch{return!1}}function lr(u){return new TypeError("ReadableStreamAsyncIterator."+u+" can only be used on a ReadableSteamAsyncIterator")}var gr=Number.isNaN||function(u){return u!==u};function wr(u){return u.slice()}function or(u,h,j,D,G){new Uint8Array(u).set(new Uint8Array(j,D,G),h)}function cr(u){return u}function Vr(u){return!1}function Cr(u,h,j){if(u.slice)return u.slice(h,j);var D=j-h,G=new ArrayBuffer(D);return or(G,0,u,h,D),G}function _a(u){return!(typeof u!="number"||gr(u)||u<0)}function Fa(u){var h=Cr(u.buffer,u.byteOffset,u.byteOffset+u.byteLength);return new Uint8Array(h)}function it(u){var h=u._queue.shift();return u._queueTotalSize-=h.size,u._queueTotalSize<0&&(u._queueTotalSize=0),h.value}function pt(u,h,j){if(!_a(j)||j===1/0)throw new RangeError("Size must be a finite, non-NaN, non-negative number.");u._queue.push({value:h,size:j}),u._queueTotalSize+=j}function ea(u){var h=u._queue.peek();return h.value}function sa(u){u._queue=new V,u._queueTotalSize=0}var ha=function(){function u(){throw new TypeError("Illegal constructor")}return Object.defineProperty(u.prototype,"view",{get:function(){if(!nt(this))throw ze("view");return this._view},enumerable:!1,configurable:!0}),u.prototype.respond=function(h){if(!nt(this))throw ze("respond");if(Fe(h,1,"respond"),h=ur(h,"First parameter"),this._associatedReadableByteStreamController===void 0)throw new TypeError("This BYOB request has been invalidated");Vr(this._view.buffer),Xe(this._associatedReadableByteStreamController,h)},u.prototype.respondWithNewView=function(h){if(!nt(this))throw ze("respondWithNewView");if(Fe(h,1,"respondWithNewView"),!ArrayBuffer.isView(h))throw new TypeError("You can only respond with array buffer views");if(this._associatedReadableByteStreamController===void 0)throw new TypeError("This BYOB request has been invalidated");Vr(h.buffer),Te(this._associatedReadableByteStreamController,h)},u}();Object.defineProperties(ha.prototype,{respond:{enumerable:!0},respondWithNewView:{enumerable:!0},view:{enumerable:!0}}),typeof r.toStringTag=="symbol"&&Object.defineProperty(ha.prototype,r.toStringTag,{value:"ReadableStreamBYOBRequest",configurable:!0});var Ia=function(){function u(){throw new TypeError("Illegal constructor")}return Object.defineProperty(u.prototype,"byobRequest",{get:function(){if(!da(this))throw ve("byobRequest");return qe(this)},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"desiredSize",{get:function(){if(!da(this))throw ve("desiredSize");return ar(this)},enumerable:!1,configurable:!0}),u.prototype.close=function(){if(!da(this))throw ve("close");if(this._closeRequested)throw new TypeError("The stream has already been closed; do not close it again!");var h=this._controlledReadableByteStream._state;if(h!=="readable")throw new TypeError("The stream (in "+h+" state) is not in the readable state and cannot be closed");Oe(this)},u.prototype.enqueue=function(h){if(!da(this))throw ve("enqueue");if(Fe(h,1,"enqueue"),!ArrayBuffer.isView(h))throw new TypeError("chunk must be an array buffer view");if(h.byteLength===0)throw new TypeError("chunk must have non-zero byteLength");if(h.buffer.byteLength===0)throw new TypeError("chunk's buffer must have non-zero byteLength");if(this._closeRequested)throw new TypeError("stream is closed or draining");var j=this._controlledReadableByteStream._state;if(j!=="readable")throw new TypeError("The stream (in "+j+" state) is not in the readable state and cannot be enqueued to");Ee(this,h)},u.prototype.error=function(h){if(h===void 0&&(h=void 0),!da(this))throw ve("error");Ce(this,h)},u.prototype[Ne]=function(h){ra(this),sa(this);var j=this._cancelAlgorithm(h);return Me(this),j},u.prototype[Ue]=function(h){var j=this._controlledReadableByteStream;if(this._queueTotalSize>0){var D=this._queue.shift();this._queueTotalSize-=D.byteLength,k(this);var G=new Uint8Array(D.buffer,D.byteOffset,D.byteLength);h._chunkSteps(G);return}var se=this._autoAllocateChunkSize;if(se!==void 0){var be=void 0;try{be=new ArrayBuffer(se)}catch(Sr){h._errorSteps(Sr);return}var Je={buffer:be,bufferByteLength:se,byteOffset:0,byteLength:se,bytesFilled:0,elementSize:1,viewConstructor:Uint8Array,readerType:"default"};this._pendingPullIntos.push(Je)}Z(j,h),Na(this)},u}();Object.defineProperties(Ia.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},byobRequest:{enumerable:!0},desiredSize:{enumerable:!0}}),typeof r.toStringTag=="symbol"&&Object.defineProperty(Ia.prototype,r.toStringTag,{value:"ReadableByteStreamController",configurable:!0});function da(u){return!n(u)||!Object.prototype.hasOwnProperty.call(u,"_controlledReadableByteStream")?!1:u instanceof Ia}function nt(u){return!n(u)||!Object.prototype.hasOwnProperty.call(u,"_associatedReadableByteStreamController")?!1:u instanceof ha}function Na(u){var h=xe(u);if(!!h){if(u._pulling){u._pullAgain=!0;return}u._pulling=!0;var j=u._pullAlgorithm();S(j,function(){u._pulling=!1,u._pullAgain&&(u._pullAgain=!1,Na(u))},function(D){Ce(u,D)})}}function ra(u){F(u),u._pendingPullIntos=new V}function Mt(u,h){var j=!1;u._state==="closed"&&(j=!0);var D=x(h);h.readerType==="default"?Ie(u,D,j):le(u,D,j)}function x(u){var h=u.bytesFilled,j=u.elementSize;return new u.viewConstructor(u.buffer,u.byteOffset,h/j)}function b(u,h,j,D){u._queue.push({buffer:h,byteOffset:j,byteLength:D}),u._queueTotalSize+=D}function g(u,h){var j=h.elementSize,D=h.bytesFilled-h.bytesFilled%j,G=Math.min(u._queueTotalSize,h.byteLength-h.bytesFilled),se=h.bytesFilled+G,be=se-se%j,Je=G,Sr=!1;be>D&&(Je=be-h.bytesFilled,Sr=!0);for(var Fr=u._queue;Je>0;){var Dr=Fr.peek(),$r=Math.min(Je,Dr.byteLength),Oa=h.byteOffset+h.bytesFilled;or(h.buffer,Oa,Dr.buffer,Dr.byteOffset,$r),Dr.byteLength===$r?Fr.shift():(Dr.byteOffset+=$r,Dr.byteLength-=$r),u._queueTotalSize-=$r,l(u,$r,h),Je-=$r}return Sr}function l(u,h,j){j.bytesFilled+=h}function k(u){u._queueTotalSize===0&&u._closeRequested?(Me(u),Ws(u._controlledReadableByteStream)):Na(u)}function F(u){u._byobRequest!==null&&(u._byobRequest._associatedReadableByteStreamController=void 0,u._byobRequest._view=null,u._byobRequest=null)}function L(u){for(;u._pendingPullIntos.length>0;){if(u._queueTotalSize===0)return;var h=u._pendingPullIntos.peek();g(u,h)&&(Le(u),Mt(u._controlledReadableByteStream,h))}}function Y(u,h,j){var D=u._controlledReadableByteStream,G=1;h.constructor!==DataView&&(G=h.constructor.BYTES_PER_ELEMENT);var se=h.constructor,be=cr(h.buffer),Je={buffer:be,bufferByteLength:be.byteLength,byteOffset:h.byteOffset,byteLength:h.byteLength,bytesFilled:0,elementSize:G,viewConstructor:se,readerType:"byob"};if(u._pendingPullIntos.length>0){u._pendingPullIntos.push(Je),ee(D,j);return}if(D._state==="closed"){var Sr=new se(Je.buffer,Je.byteOffset,0);j._closeSteps(Sr);return}if(u._queueTotalSize>0){if(g(u,Je)){var Fr=x(Je);k(u),j._chunkSteps(Fr);return}if(u._closeRequested){var Dr=new TypeError("Insufficient bytes to fill elements in the given buffer");Ce(u,Dr),j._errorSteps(Dr);return}}u._pendingPullIntos.push(Je),ee(D,j),Na(u)}function te(u,h){var j=u._controlledReadableByteStream;if(ae(j))for(;oe(j)>0;){var D=Le(u);Mt(j,D)}}function de(u,h,j){if(l(u,h,j),!(j.bytesFilled<j.elementSize)){Le(u);var D=j.bytesFilled%j.elementSize;if(D>0){var G=j.byteOffset+j.bytesFilled,se=Cr(j.buffer,G-D,G);b(u,se,0,se.byteLength)}j.bytesFilled-=D,Mt(u._controlledReadableByteStream,j),L(u)}}function me(u,h){var j=u._pendingPullIntos.peek();F(u);var D=u._controlledReadableByteStream._state;D==="closed"?te(u):de(u,h,j),Na(u)}function Le(u){var h=u._pendingPullIntos.shift();return h}function xe(u){var h=u._controlledReadableByteStream;if(h._state!=="readable"||u._closeRequested||!u._started)return!1;if(He(h)&&Ge(h)>0||ae(h)&&oe(h)>0)return!0;var j=ar(u);return j>0}function Me(u){u._pullAlgorithm=void 0,u._cancelAlgorithm=void 0}function Oe(u){var h=u._controlledReadableByteStream;if(!(u._closeRequested||h._state!=="readable")){if(u._queueTotalSize>0){u._closeRequested=!0;return}if(u._pendingPullIntos.length>0){var j=u._pendingPullIntos.peek();if(j.bytesFilled>0){var D=new TypeError("Insufficient bytes to fill elements in the given buffer");throw Ce(u,D),D}}Me(u),Ws(h)}}function Ee(u,h){var j=u._controlledReadableByteStream;if(!(u._closeRequested||j._state!=="readable")){var D=h.buffer,G=h.byteOffset,se=h.byteLength,be=cr(D);if(u._pendingPullIntos.length>0){var Je=u._pendingPullIntos.peek();Vr(Je.buffer),Je.buffer=cr(Je.buffer)}if(F(u),He(j))if(Ge(j)===0)b(u,be,G,se);else{u._pendingPullIntos.length>0&&Le(u);var Sr=new Uint8Array(be,G,se);Ie(j,Sr,!1)}else ae(j)?(b(u,be,G,se),L(u)):b(u,be,G,se);Na(u)}}function Ce(u,h){var j=u._controlledReadableByteStream;j._state==="readable"&&(ra(u),sa(u),Me(u),b0(j,h))}function qe(u){if(u._byobRequest===null&&u._pendingPullIntos.length>0){var h=u._pendingPullIntos.peek(),j=new Uint8Array(h.buffer,h.byteOffset+h.bytesFilled,h.byteLength-h.bytesFilled),D=Object.create(ha.prototype);De(D,u,j),u._byobRequest=D}return u._byobRequest}function ar(u){var h=u._controlledReadableByteStream._state;return h==="errored"?null:h==="closed"?0:u._strategyHWM-u._queueTotalSize}function Xe(u,h){var j=u._pendingPullIntos.peek(),D=u._controlledReadableByteStream._state;if(D==="closed"){if(h!==0)throw new TypeError("bytesWritten must be 0 when calling respond() on a closed stream")}else{if(h===0)throw new TypeError("bytesWritten must be greater than 0 when calling respond() on a readable stream");if(j.bytesFilled+h>j.byteLength)throw new RangeError("bytesWritten out of range")}j.buffer=cr(j.buffer),me(u,h)}function Te(u,h){var j=u._pendingPullIntos.peek(),D=u._controlledReadableByteStream._state;if(D==="closed"){if(h.byteLength!==0)throw new TypeError("The view's length must be 0 when calling respondWithNewView() on a closed stream")}else if(h.byteLength===0)throw new TypeError("The view's length must be greater than 0 when calling respondWithNewView() on a readable stream");if(j.byteOffset+j.bytesFilled!==h.byteOffset)throw new RangeError("The region specified by view does not match byobRequest");if(j.bufferByteLength!==h.buffer.byteLength)throw new RangeError("The buffer of view has different capacity than byobRequest");if(j.bytesFilled+h.byteLength>j.byteLength)throw new RangeError("The region specified by view is larger than byobRequest");var G=h.byteLength;j.buffer=cr(h.buffer),me(u,G)}function Se(u,h,j,D,G,se,be){h._controlledReadableByteStream=u,h._pullAgain=!1,h._pulling=!1,h._byobRequest=null,h._queue=h._queueTotalSize=void 0,sa(h),h._closeRequested=!1,h._started=!1,h._strategyHWM=se,h._pullAlgorithm=D,h._cancelAlgorithm=G,h._autoAllocateChunkSize=be,h._pendingPullIntos=new V,u._readableStreamController=h;var Je=j();S(d(Je),function(){h._started=!0,Na(h)},function(Sr){Ce(h,Sr)})}function Pe(u,h,j){var D=Object.create(Ia.prototype),G=function(){},se=function(){return d(void 0)},be=function(){return d(void 0)};h.start!==void 0&&(G=function(){return h.start(D)}),h.pull!==void 0&&(se=function(){return h.pull(D)}),h.cancel!==void 0&&(be=function(Sr){return h.cancel(Sr)});var Je=h.autoAllocateChunkSize;if(Je===0)throw new TypeError("autoAllocateChunkSize must be greater than 0");Se(u,D,G,se,be,j,Je)}function De(u,h,j){u._associatedReadableByteStreamController=h,u._view=j}function ze(u){return new TypeError("ReadableStreamBYOBRequest.prototype."+u+" can only be used on a ReadableStreamBYOBRequest")}function ve(u){return new TypeError("ReadableByteStreamController.prototype."+u+" can only be used on a ReadableByteStreamController")}function Q(u){return new ne(u)}function ee(u,h){u._reader._readIntoRequests.push(h)}function le(u,h,j){var D=u._reader,G=D._readIntoRequests.shift();j?G._closeSteps(h):G._chunkSteps(h)}function oe(u){return u._reader._readIntoRequests.length}function ae(u){var h=u._reader;return!(h===void 0||!Ve(h))}var ne=function(){function u(h){if(Fe(h,1,"ReadableStreamBYOBReader"),Br(h,"First parameter"),An(h))throw new TypeError("This stream has already been locked for exclusive reading by another reader");if(!da(h._readableStreamController))throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");$(this,h),this._readIntoRequests=new V}return Object.defineProperty(u.prototype,"closed",{get:function(){return Ve(this)?this._closedPromise:v(tr("closed"))},enumerable:!1,configurable:!0}),u.prototype.cancel=function(h){return h===void 0&&(h=void 0),Ve(this)?this._ownerReadableStream===void 0?v(J("cancel")):K(this,h):v(tr("cancel"))},u.prototype.read=function(h){if(!Ve(this))return v(tr("read"));if(!ArrayBuffer.isView(h))return v(new TypeError("view must be an array buffer view"));if(h.byteLength===0)return v(new TypeError("view must have non-zero byteLength"));if(h.buffer.byteLength===0)return v(new TypeError("view's buffer must have non-zero byteLength"));if(Vr(h.buffer),this._ownerReadableStream===void 0)return v(J("read from"));var j,D,G=m(function(be,Je){j=be,D=Je}),se={_chunkSteps:function(be){return j({value:be,done:!1})},_closeSteps:function(be){return j({value:be,done:!0})},_errorSteps:function(be){return D(be)}};return fr(this,h,se),G},u.prototype.releaseLock=function(){if(!Ve(this))throw tr("releaseLock");if(this._ownerReadableStream!==void 0){if(this._readIntoRequests.length>0)throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");W(this)}},u}();Object.defineProperties(ne.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),typeof r.toStringTag=="symbol"&&Object.defineProperty(ne.prototype,r.toStringTag,{value:"ReadableStreamBYOBReader",configurable:!0});function Ve(u){return!n(u)||!Object.prototype.hasOwnProperty.call(u,"_readIntoRequests")?!1:u instanceof ne}function fr(u,h,j){var D=u._ownerReadableStream;D._disturbed=!0,D._state==="errored"?j._errorSteps(D._storedError):Y(D._readableStreamController,h,j)}function tr(u){return new TypeError("ReadableStreamBYOBReader.prototype."+u+" can only be used on a ReadableStreamBYOBReader")}function sr(u,h){var j=u.highWaterMark;if(j===void 0)return h;if(gr(j)||j<0)throw new RangeError("Invalid highWaterMark");return j}function z(u){var h=u.size;return h||function(){return 1}}function yr(u,h){Qe(u,h);var j=u==null?void 0:u.highWaterMark,D=u==null?void 0:u.size;return{highWaterMark:j===void 0?void 0:ke(j),size:D===void 0?void 0:Pr(D,h+" has member 'size' that")}}function Pr(u,h){return We(u,h),function(j){return ke(u(j))}}function kr(u,h){Qe(u,h);var j=u==null?void 0:u.abort,D=u==null?void 0:u.close,G=u==null?void 0:u.start,se=u==null?void 0:u.type,be=u==null?void 0:u.write;return{abort:j===void 0?void 0:hr(j,u,h+" has member 'abort' that"),close:D===void 0?void 0:Er(D,u,h+" has member 'close' that"),start:G===void 0?void 0:_r(G,u,h+" has member 'start' that"),write:be===void 0?void 0:aa(be,u,h+" has member 'write' that"),type:se}}function hr(u,h,j){return We(u,j),function(D){return B(u,h,[D])}}function Er(u,h,j){return We(u,j),function(){return B(u,h,[])}}function _r(u,h,j){return We(u,j),function(D){return I(u,h,[D])}}function aa(u,h,j){return We(u,j),function(D,G){return B(u,h,[D,G])}}function Tr(u,h){if(!Re(u))throw new TypeError(h+" is not a WritableStream.")}function _(u){if(typeof u!="object"||u===null)return!1;try{return typeof u.aborted=="boolean"}catch{return!1}}var E=typeof AbortController=="function";function A(){if(E)return new AbortController}var M=function(){function u(h,j){h===void 0&&(h={}),j===void 0&&(j={}),h===void 0?h=null:rr(h,"First parameter");var D=yr(j,"Second parameter"),G=kr(h,"First parameter");_e(this);var se=G.type;if(se!==void 0)throw new RangeError("Invalid type is specified");var be=z(D),Je=sr(D,1);N8(this,G,Je,be)}return Object.defineProperty(u.prototype,"locked",{get:function(){if(!Re(this))throw kc("locked");return qr(this)},enumerable:!1,configurable:!0}),u.prototype.abort=function(h){return h===void 0&&(h=void 0),Re(this)?qr(this)?v(new TypeError("Cannot abort a stream that already has a writer")):ua(this,h):v(kc("abort"))},u.prototype.close=function(){return Re(this)?qr(this)?v(new TypeError("Cannot close a stream that already has a writer")):li(this)?v(new TypeError("Cannot close an already-closing stream")):ot(this):v(kc("close"))},u.prototype.getWriter=function(){if(!Re(this))throw kc("getWriter");return ie(this)},u}();Object.defineProperties(M.prototype,{abort:{enumerable:!0},close:{enumerable:!0},getWriter:{enumerable:!0},locked:{enumerable:!0}}),typeof r.toStringTag=="symbol"&&Object.defineProperty(M.prototype,r.toStringTag,{value:"WritableStream",configurable:!0});function ie(u){return new Bo(u)}function ue(u,h,j,D,G,se){G===void 0&&(G=1),se===void 0&&(se=function(){return 1});var be=Object.create(M.prototype);_e(be);var Je=Object.create(co.prototype);return n0(be,Je,u,h,j,D,G,se),be}function _e(u){u._state="writable",u._storedError=void 0,u._writer=void 0,u._writableStreamController=void 0,u._writeRequests=new V,u._inFlightWriteRequest=void 0,u._closeRequest=void 0,u._inFlightCloseRequest=void 0,u._pendingAbortRequest=void 0,u._backpressure=!1}function Re(u){return!n(u)||!Object.prototype.hasOwnProperty.call(u,"_writableStreamController")?!1:u instanceof M}function qr(u){return u._writer!==void 0}function ua(u,h){var j;if(u._state==="closed"||u._state==="errored")return d(void 0);u._writableStreamController._abortReason=h,(j=u._writableStreamController._abortController)===null||j===void 0||j.abort();var D=u._state;if(D==="closed"||D==="errored")return d(void 0);if(u._pendingAbortRequest!==void 0)return u._pendingAbortRequest._promise;var G=!1;D==="erroring"&&(G=!0,h=void 0);var se=m(function(be,Je){u._pendingAbortRequest={_promise:void 0,_resolve:be,_reject:Je,_reason:h,_wasAlreadyErroring:G}});return u._pendingAbortRequest._promise=se,G||an(u,h),se}function ot(u){var h=u._state;if(h==="closed"||h==="errored")return v(new TypeError("The stream (in "+h+" state) is not in the writable state and cannot be closed"));var j=m(function(G,se){var be={_resolve:G,_reject:se};u._closeRequest=be}),D=u._writer;return D!==void 0&&u._backpressure&&h==="writable"&&ep(D),L8(u._writableStreamController),j}function st(u){var h=m(function(j,D){var G={_resolve:j,_reject:D};u._writeRequests.push(G)});return h}function jt(u,h){var j=u._state;if(j==="writable"){an(u,h);return}ht(u)}function an(u,h){var j=u._writableStreamController;u._state="erroring",u._storedError=h;var D=u._writer;D!==void 0&&r0(D,h),!F8(u)&&j._started&&ht(u)}function ht(u){u._state="errored",u._writableStreamController[ye]();var h=u._storedError;if(u._writeRequests.forEach(function(G){G._reject(h)}),u._writeRequests=new V,u._pendingAbortRequest===void 0){yc(u);return}var j=u._pendingAbortRequest;if(u._pendingAbortRequest=void 0,j._wasAlreadyErroring){j._reject(h),yc(u);return}var D=u._writableStreamController[je](j._reason);S(D,function(){j._resolve(),yc(u)},function(G){j._reject(G),yc(u)})}function qt(u){u._inFlightWriteRequest._resolve(void 0),u._inFlightWriteRequest=void 0}function so(u,h){u._inFlightWriteRequest._reject(h),u._inFlightWriteRequest=void 0,jt(u,h)}function ci(u){u._inFlightCloseRequest._resolve(void 0),u._inFlightCloseRequest=void 0;var h=u._state;h==="erroring"&&(u._storedError=void 0,u._pendingAbortRequest!==void 0&&(u._pendingAbortRequest._resolve(),u._pendingAbortRequest=void 0)),u._state="closed";var j=u._writer;j!==void 0&&c0(j)}function Ro(u,h){u._inFlightCloseRequest._reject(h),u._inFlightCloseRequest=void 0,u._pendingAbortRequest!==void 0&&(u._pendingAbortRequest._reject(h),u._pendingAbortRequest=void 0),jt(u,h)}function li(u){return!(u._closeRequest===void 0&&u._inFlightCloseRequest===void 0)}function F8(u){return!(u._inFlightWriteRequest===void 0&&u._inFlightCloseRequest===void 0)}function I8(u){u._inFlightCloseRequest=u._closeRequest,u._closeRequest=void 0}function O8(u){u._inFlightWriteRequest=u._writeRequests.shift()}function yc(u){u._closeRequest!==void 0&&(u._closeRequest._reject(u._storedError),u._closeRequest=void 0);var h=u._writer;h!==void 0&&Jf(h,u._storedError)}function Gf(u,h){var j=u._writer;j!==void 0&&h!==u._backpressure&&(h?G8(j):ep(j)),u._backpressure=h}var Bo=function(){function u(h){if(Fe(h,1,"WritableStreamDefaultWriter"),Tr(h,"First parameter"),qr(h))throw new TypeError("This stream has already been locked for exclusive writing by another writer");this._ownerWritableStream=h,h._writer=this;var j=h._state;if(j==="writable")!li(h)&&h._backpressure?jc(this):l0(this),_c(this);else if(j==="erroring")Zf(this,h._storedError),_c(this);else if(j==="closed")l0(this),$8(this);else{var D=h._storedError;Zf(this,D),u0(this,D)}}return Object.defineProperty(u.prototype,"closed",{get:function(){return uo(this)?this._closedPromise:v(lo("closed"))},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"desiredSize",{get:function(){if(!uo(this))throw lo("desiredSize");if(this._ownerWritableStream===void 0)throw Hs("desiredSize");return z8(this)},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"ready",{get:function(){return uo(this)?this._readyPromise:v(lo("ready"))},enumerable:!1,configurable:!0}),u.prototype.abort=function(h){return h===void 0&&(h=void 0),uo(this)?this._ownerWritableStream===void 0?v(Hs("abort")):R8(this,h):v(lo("abort"))},u.prototype.close=function(){if(!uo(this))return v(lo("close"));var h=this._ownerWritableStream;return h===void 0?v(Hs("close")):li(h)?v(new TypeError("Cannot close an already-closing stream")):e0(this)},u.prototype.releaseLock=function(){if(!uo(this))throw lo("releaseLock");var h=this._ownerWritableStream;h!==void 0&&a0(this)},u.prototype.write=function(h){return h===void 0&&(h=void 0),uo(this)?this._ownerWritableStream===void 0?v(Hs("write to")):t0(this,h):v(lo("write"))},u}();Object.defineProperties(Bo.prototype,{abort:{enumerable:!0},close:{enumerable:!0},releaseLock:{enumerable:!0},write:{enumerable:!0},closed:{enumerable:!0},desiredSize:{enumerable:!0},ready:{enumerable:!0}}),typeof r.toStringTag=="symbol"&&Object.defineProperty(Bo.prototype,r.toStringTag,{value:"WritableStreamDefaultWriter",configurable:!0});function uo(u){return!n(u)||!Object.prototype.hasOwnProperty.call(u,"_ownerWritableStream")?!1:u instanceof Bo}function R8(u,h){var j=u._ownerWritableStream;return ua(j,h)}function e0(u){var h=u._ownerWritableStream;return ot(h)}function B8(u){var h=u._ownerWritableStream,j=h._state;return li(h)||j==="closed"?d(void 0):j==="errored"?v(h._storedError):e0(u)}function D8(u,h){u._closedPromiseState==="pending"?Jf(u,h):W8(u,h)}function r0(u,h){u._readyPromiseState==="pending"?f0(u,h):K8(u,h)}function z8(u){var h=u._ownerWritableStream,j=h._state;return j==="errored"||j==="erroring"?null:j==="closed"?0:o0(h._writableStreamController)}function a0(u){var h=u._ownerWritableStream,j=new TypeError("Writer was released and can no longer be used to monitor the stream's closedness");r0(u,j),D8(u,j),h._writer=void 0,u._ownerWritableStream=void 0}function t0(u,h){var j=u._ownerWritableStream,D=j._writableStreamController,G=M8(D,h);if(j!==u._ownerWritableStream)return v(Hs("write to"));var se=j._state;if(se==="errored")return v(j._storedError);if(li(j)||se==="closed")return v(new TypeError("The stream is closing or closed and cannot be written to"));if(se==="erroring")return v(j._storedError);var be=st(j);return U8(D,h,G),be}var i0={},co=function(){function u(){throw new TypeError("Illegal constructor")}return Object.defineProperty(u.prototype,"abortReason",{get:function(){if(!Kf(this))throw Xf("abortReason");return this._abortReason},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"signal",{get:function(){if(!Kf(this))throw Xf("signal");if(this._abortController===void 0)throw new TypeError("WritableStreamDefaultController.prototype.signal is not supported");return this._abortController.signal},enumerable:!1,configurable:!0}),u.prototype.error=function(h){if(h===void 0&&(h=void 0),!Kf(this))throw Xf("error");var j=this._controlledWritableStream._state;j==="writable"&&s0(this,h)},u.prototype[je]=function(h){var j=this._abortAlgorithm(h);return xc(this),j},u.prototype[ye]=function(){sa(this)},u}();Object.defineProperties(co.prototype,{abortReason:{enumerable:!0},signal:{enumerable:!0},error:{enumerable:!0}}),typeof r.toStringTag=="symbol"&&Object.defineProperty(co.prototype,r.toStringTag,{value:"WritableStreamDefaultController",configurable:!0});function Kf(u){return!n(u)||!Object.prototype.hasOwnProperty.call(u,"_controlledWritableStream")?!1:u instanceof co}function n0(u,h,j,D,G,se,be,Je){h._controlledWritableStream=u,u._writableStreamController=h,h._queue=void 0,h._queueTotalSize=void 0,sa(h),h._abortReason=void 0,h._abortController=A(),h._started=!1,h._strategySizeAlgorithm=Je,h._strategyHWM=be,h._writeAlgorithm=D,h._closeAlgorithm=G,h._abortAlgorithm=se;var Sr=Qf(h);Gf(u,Sr);var Fr=j(),Dr=d(Fr);S(Dr,function(){h._started=!0,wc(h)},function($r){h._started=!0,jt(u,$r)})}function N8(u,h,j,D){var G=Object.create(co.prototype),se=function(){},be=function(){return d(void 0)},Je=function(){return d(void 0)},Sr=function(){return d(void 0)};h.start!==void 0&&(se=function(){return h.start(G)}),h.write!==void 0&&(be=function(Fr){return h.write(Fr,G)}),h.close!==void 0&&(Je=function(){return h.close()}),h.abort!==void 0&&(Sr=function(Fr){return h.abort(Fr)}),n0(u,G,se,be,Je,Sr,j,D)}function xc(u){u._writeAlgorithm=void 0,u._closeAlgorithm=void 0,u._abortAlgorithm=void 0,u._strategySizeAlgorithm=void 0}function L8(u){pt(u,i0,0),wc(u)}function M8(u,h){try{return u._strategySizeAlgorithm(h)}catch(j){return Yf(u,j),1}}function o0(u){return u._strategyHWM-u._queueTotalSize}function U8(u,h,j){try{pt(u,h,j)}catch(se){Yf(u,se);return}var D=u._controlledWritableStream;if(!li(D)&&D._state==="writable"){var G=Qf(u);Gf(D,G)}wc(u)}function wc(u){var h=u._controlledWritableStream;if(!!u._started&&h._inFlightWriteRequest===void 0){var j=h._state;if(j==="erroring"){ht(h);return}if(u._queue.length!==0){var D=ea(u);D===i0?H8(u):V8(u,D)}}}function Yf(u,h){u._controlledWritableStream._state==="writable"&&s0(u,h)}function H8(u){var h=u._controlledWritableStream;I8(h),it(u);var j=u._closeAlgorithm();xc(u),S(j,function(){ci(h)},function(D){Ro(h,D)})}function V8(u,h){var j=u._controlledWritableStream;O8(j);var D=u._writeAlgorithm(h);S(D,function(){qt(j);var G=j._state;if(it(u),!li(j)&&G==="writable"){var se=Qf(u);Gf(j,se)}wc(u)},function(G){j._state==="writable"&&xc(u),so(j,G)})}function Qf(u){var h=o0(u);return h<=0}function s0(u,h){var j=u._controlledWritableStream;xc(u),an(j,h)}function kc(u){return new TypeError("WritableStream.prototype."+u+" can only be used on a WritableStream")}function Xf(u){return new TypeError("WritableStreamDefaultController.prototype."+u+" can only be used on a WritableStreamDefaultController")}function lo(u){return new TypeError("WritableStreamDefaultWriter.prototype."+u+" can only be used on a WritableStreamDefaultWriter")}function Hs(u){return new TypeError("Cannot "+u+" a stream using a released writer")}function _c(u){u._closedPromise=m(function(h,j){u._closedPromise_resolve=h,u._closedPromise_reject=j,u._closedPromiseState="pending"})}function u0(u,h){_c(u),Jf(u,h)}function $8(u){_c(u),c0(u)}function Jf(u,h){u._closedPromise_reject!==void 0&&(T(u._closedPromise),u._closedPromise_reject(h),u._closedPromise_resolve=void 0,u._closedPromise_reject=void 0,u._closedPromiseState="rejected")}function W8(u,h){u0(u,h)}function c0(u){u._closedPromise_resolve!==void 0&&(u._closedPromise_resolve(void 0),u._closedPromise_resolve=void 0,u._closedPromise_reject=void 0,u._closedPromiseState="resolved")}function jc(u){u._readyPromise=m(function(h,j){u._readyPromise_resolve=h,u._readyPromise_reject=j}),u._readyPromiseState="pending"}function Zf(u,h){jc(u),f0(u,h)}function l0(u){jc(u),ep(u)}function f0(u,h){u._readyPromise_reject!==void 0&&(T(u._readyPromise),u._readyPromise_reject(h),u._readyPromise_resolve=void 0,u._readyPromise_reject=void 0,u._readyPromiseState="rejected")}function G8(u){jc(u)}function K8(u,h){Zf(u,h)}function ep(u){u._readyPromise_resolve!==void 0&&(u._readyPromise_resolve(void 0),u._readyPromise_resolve=void 0,u._readyPromise_reject=void 0,u._readyPromiseState="fulfilled")}var p0=typeof DOMException!="undefined"?DOMException:void 0;function Y8(u){if(!(typeof u=="function"||typeof u=="object"))return!1;try{return new u,!0}catch{return!1}}function Q8(){var u=function(j,D){this.message=j||"",this.name=D||"Error",Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)};return u.prototype=Object.create(Error.prototype),Object.defineProperty(u.prototype,"constructor",{value:u,writable:!0,configurable:!0}),u}var X8=Y8(p0)?p0:Q8();function h0(u,h,j,D,G,se){var be=Wr(u),Je=ie(h);u._disturbed=!0;var Sr=!1,Fr=d(void 0);return m(function(Dr,$r){var Oa;if(se!==void 0){if(Oa=function(){var xr=new X8("Aborted","AbortError"),Gr=[];D||Gr.push(function(){return h._state==="writable"?ua(h,xr):d(void 0)}),G||Gr.push(function(){return u._state==="readable"?fi(u,xr):d(void 0)}),Ut(function(){return Promise.all(Gr.map(function(va){return va()}))},!0,xr)},se.aborted){Oa();return}se.addEventListener("abort",Oa)}function pi(){return m(function(xr,Gr){function va(Ri){Ri?xr():y(No(),va,Gr)}va(!1)})}function No(){return Sr?d(!0):y(Je._readyPromise,function(){return m(function(xr,Gr){nr(be,{_chunkSteps:function(va){Fr=y(t0(Je,va),void 0,a),xr(!1)},_closeSteps:function(){return xr(!0)},_errorSteps:Gr})})})}if(ut(u,be._closedPromise,function(xr){D?nn(!0,xr):Ut(function(){return ua(h,xr)},!0,xr)}),ut(h,Je._closedPromise,function(xr){G?nn(!0,xr):Ut(function(){return fi(u,xr)},!0,xr)}),Oi(u,be._closedPromise,function(){j?nn():Ut(function(){return B8(Je)})}),li(h)||h._state==="closed"){var Tn=new TypeError("the destination writable stream closed before all data could be piped to it");G?nn(!0,Tn):Ut(function(){return fi(u,Tn)},!0,Tn)}T(pi());function Ii(){var xr=Fr;return y(Fr,function(){return xr!==Fr?Ii():void 0})}function ut(xr,Gr,va){xr._state==="errored"?va(xr._storedError):P(Gr,va)}function Oi(xr,Gr,va){xr._state==="closed"?va():w(Gr,va)}function Ut(xr,Gr,va){if(Sr)return;Sr=!0,h._state==="writable"&&!li(h)?w(Ii(),Ri):Ri();function Ri(){S(xr(),function(){return ma(Gr,va)},function(Cn){return ma(!0,Cn)})}}function nn(xr,Gr){Sr||(Sr=!0,h._state==="writable"&&!li(h)?w(Ii(),function(){return ma(xr,Gr)}):ma(xr,Gr))}function ma(xr,Gr){a0(Je),W(be),se!==void 0&&se.removeEventListener("abort",Oa),xr?$r(Gr):Dr(void 0)}})}var fo=function(){function u(){throw new TypeError("Illegal constructor")}return Object.defineProperty(u.prototype,"desiredSize",{get:function(){if(!Ec(this))throw Ac("desiredSize");return rp(this)},enumerable:!1,configurable:!0}),u.prototype.close=function(){if(!Ec(this))throw Ac("close");if(!Do(this))throw new TypeError("The stream is not in a state that permits close");$s(this)},u.prototype.enqueue=function(h){if(h===void 0&&(h=void 0),!Ec(this))throw Ac("enqueue");if(!Do(this))throw new TypeError("The stream is not in a state that permits enqueue");return Pc(this,h)},u.prototype.error=function(h){if(h===void 0&&(h=void 0),!Ec(this))throw Ac("error");Sn(this,h)},u.prototype[Ne]=function(h){sa(this);var j=this._cancelAlgorithm(h);return Sc(this),j},u.prototype[Ue]=function(h){var j=this._controlledReadableStream;if(this._queue.length>0){var D=it(this);this._closeRequested&&this._queue.length===0?(Sc(this),Ws(j)):Vs(this),h._chunkSteps(D)}else Z(j,h),Vs(this)},u}();Object.defineProperties(fo.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},desiredSize:{enumerable:!0}}),typeof r.toStringTag=="symbol"&&Object.defineProperty(fo.prototype,r.toStringTag,{value:"ReadableStreamDefaultController",configurable:!0});function Ec(u){return!n(u)||!Object.prototype.hasOwnProperty.call(u,"_controlledReadableStream")?!1:u instanceof fo}function Vs(u){var h=d0(u);if(!!h){if(u._pulling){u._pullAgain=!0;return}u._pulling=!0;var j=u._pullAlgorithm();S(j,function(){u._pulling=!1,u._pullAgain&&(u._pullAgain=!1,Vs(u))},function(D){Sn(u,D)})}}function d0(u){var h=u._controlledReadableStream;if(!Do(u)||!u._started)return!1;if(An(h)&&Ge(h)>0)return!0;var j=rp(u);return j>0}function Sc(u){u._pullAlgorithm=void 0,u._cancelAlgorithm=void 0,u._strategySizeAlgorithm=void 0}function $s(u){if(!!Do(u)){var h=u._controlledReadableStream;u._closeRequested=!0,u._queue.length===0&&(Sc(u),Ws(h))}}function Pc(u,h){if(!!Do(u)){var j=u._controlledReadableStream;if(An(j)&&Ge(j)>0)Ie(j,h,!1);else{var D=void 0;try{D=u._strategySizeAlgorithm(h)}catch(G){throw Sn(u,G),G}try{pt(u,h,D)}catch(G){throw Sn(u,G),G}}Vs(u)}}function Sn(u,h){var j=u._controlledReadableStream;j._state==="readable"&&(sa(u),Sc(u),b0(j,h))}function rp(u){var h=u._controlledReadableStream._state;return h==="errored"?null:h==="closed"?0:u._strategyHWM-u._queueTotalSize}function J8(u){return!d0(u)}function Do(u){var h=u._controlledReadableStream._state;return!u._closeRequested&&h==="readable"}function m0(u,h,j,D,G,se,be){h._controlledReadableStream=u,h._queue=void 0,h._queueTotalSize=void 0,sa(h),h._started=!1,h._closeRequested=!1,h._pullAgain=!1,h._pulling=!1,h._strategySizeAlgorithm=be,h._strategyHWM=se,h._pullAlgorithm=D,h._cancelAlgorithm=G,u._readableStreamController=h;var Je=j();S(d(Je),function(){h._started=!0,Vs(h)},function(Sr){Sn(h,Sr)})}function Z8(u,h,j,D){var G=Object.create(fo.prototype),se=function(){},be=function(){return d(void 0)},Je=function(){return d(void 0)};h.start!==void 0&&(se=function(){return h.start(G)}),h.pull!==void 0&&(be=function(){return h.pull(G)}),h.cancel!==void 0&&(Je=function(Sr){return h.cancel(Sr)}),m0(u,G,se,be,Je,j,D)}function Ac(u){return new TypeError("ReadableStreamDefaultController.prototype."+u+" can only be used on a ReadableStreamDefaultController")}function eE(u,h){return da(u._readableStreamController)?aE(u):rE(u)}function rE(u,h){var j=Wr(u),D=!1,G=!1,se=!1,be=!1,Je,Sr,Fr,Dr,$r,Oa=m(function(ut){$r=ut});function pi(){if(D)return G=!0,d(void 0);D=!0;var ut={_chunkSteps:function(Oi){O(function(){G=!1;var Ut=Oi,nn=Oi;se||Pc(Fr._readableStreamController,Ut),be||Pc(Dr._readableStreamController,nn),D=!1,G&&pi()})},_closeSteps:function(){D=!1,se||$s(Fr._readableStreamController),be||$s(Dr._readableStreamController),(!se||!be)&&$r(void 0)},_errorSteps:function(){D=!1}};return nr(j,ut),d(void 0)}function No(ut){if(se=!0,Je=ut,be){var Oi=wr([Je,Sr]),Ut=fi(u,Oi);$r(Ut)}return Oa}function Tn(ut){if(be=!0,Sr=ut,se){var Oi=wr([Je,Sr]),Ut=fi(u,Oi);$r(Ut)}return Oa}function Ii(){}return Fr=ap(Ii,pi,No),Dr=ap(Ii,pi,Tn),P(j._closedPromise,function(ut){Sn(Fr._readableStreamController,ut),Sn(Dr._readableStreamController,ut),(!se||!be)&&$r(void 0)}),[Fr,Dr]}function aE(u){var h=Wr(u),j=!1,D=!1,G=!1,se=!1,be=!1,Je,Sr,Fr,Dr,$r,Oa=m(function(ma){$r=ma});function pi(ma){P(ma._closedPromise,function(xr){ma===h&&(Ce(Fr._readableStreamController,xr),Ce(Dr._readableStreamController,xr),(!se||!be)&&$r(void 0))})}function No(){Ve(h)&&(W(h),h=Wr(u),pi(h));var ma={_chunkSteps:function(xr){O(function(){D=!1,G=!1;var Gr=xr,va=xr;if(!se&&!be)try{va=Fa(xr)}catch(Ri){Ce(Fr._readableStreamController,Ri),Ce(Dr._readableStreamController,Ri),$r(fi(u,Ri));return}se||Ee(Fr._readableStreamController,Gr),be||Ee(Dr._readableStreamController,va),j=!1,D?Ii():G&&ut()})},_closeSteps:function(){j=!1,se||Oe(Fr._readableStreamController),be||Oe(Dr._readableStreamController),Fr._readableStreamController._pendingPullIntos.length>0&&Xe(Fr._readableStreamController,0),Dr._readableStreamController._pendingPullIntos.length>0&&Xe(Dr._readableStreamController,0),(!se||!be)&&$r(void 0)},_errorSteps:function(){j=!1}};nr(h,ma)}function Tn(ma,xr){Ze(h)&&(W(h),h=Q(u),pi(h));var Gr=xr?Dr:Fr,va=xr?Fr:Dr,Ri={_chunkSteps:function(Cn){O(function(){D=!1,G=!1;var Lo=xr?be:se,Qs=xr?se:be;if(Qs)Lo||Te(Gr._readableStreamController,Cn);else{var q0=void 0;try{q0=Fa(Cn)}catch(op){Ce(Gr._readableStreamController,op),Ce(va._readableStreamController,op),$r(fi(u,op));return}Lo||Te(Gr._readableStreamController,Cn),Ee(va._readableStreamController,q0)}j=!1,D?Ii():G&&ut()})},_closeSteps:function(Cn){j=!1;var Lo=xr?be:se,Qs=xr?se:be;Lo||Oe(Gr._readableStreamController),Qs||Oe(va._readableStreamController),Cn!==void 0&&(Lo||Te(Gr._readableStreamController,Cn),!Qs&&va._readableStreamController._pendingPullIntos.length>0&&Xe(va._readableStreamController,0)),(!Lo||!Qs)&&$r(void 0)},_errorSteps:function(){j=!1}};fr(h,ma,Ri)}function Ii(){if(j)return D=!0,d(void 0);j=!0;var ma=qe(Fr._readableStreamController);return ma===null?No():Tn(ma._view,!1),d(void 0)}function ut(){if(j)return G=!0,d(void 0);j=!0;var ma=qe(Dr._readableStreamController);return ma===null?No():Tn(ma._view,!0),d(void 0)}function Oi(ma){if(se=!0,Je=ma,be){var xr=wr([Je,Sr]),Gr=fi(u,xr);$r(Gr)}return Oa}function Ut(ma){if(be=!0,Sr=ma,se){var xr=wr([Je,Sr]),Gr=fi(u,xr);$r(Gr)}return Oa}function nn(){}return Fr=g0(nn,Ii,Oi),Dr=g0(nn,ut,Ut),pi(h),[Fr,Dr]}function tE(u,h){Qe(u,h);var j=u,D=j==null?void 0:j.autoAllocateChunkSize,G=j==null?void 0:j.cancel,se=j==null?void 0:j.pull,be=j==null?void 0:j.start,Je=j==null?void 0:j.type;return{autoAllocateChunkSize:D===void 0?void 0:ur(D,h+" has member 'autoAllocateChunkSize' that"),cancel:G===void 0?void 0:iE(G,j,h+" has member 'cancel' that"),pull:se===void 0?void 0:nE(se,j,h+" has member 'pull' that"),start:be===void 0?void 0:oE(be,j,h+" has member 'start' that"),type:Je===void 0?void 0:sE(Je,h+" has member 'type' that")}}function iE(u,h,j){return We(u,j),function(D){return B(u,h,[D])}}function nE(u,h,j){return We(u,j),function(D){return B(u,h,[D])}}function oE(u,h,j){return We(u,j),function(D){return I(u,h,[D])}}function sE(u,h){if(u=""+u,u!=="bytes")throw new TypeError(h+" '"+u+"' is not a valid enumeration value for ReadableStreamType");return u}function uE(u,h){Qe(u,h);var j=u==null?void 0:u.mode;return{mode:j===void 0?void 0:cE(j,h+" has member 'mode' that")}}function cE(u,h){if(u=""+u,u!=="byob")throw new TypeError(h+" '"+u+"' is not a valid enumeration value for ReadableStreamReaderMode");return u}function lE(u,h){Qe(u,h);var j=u==null?void 0:u.preventCancel;return{preventCancel:Boolean(j)}}function v0(u,h){Qe(u,h);var j=u==null?void 0:u.preventAbort,D=u==null?void 0:u.preventCancel,G=u==null?void 0:u.preventClose,se=u==null?void 0:u.signal;return se!==void 0&&fE(se,h+" has member 'signal' that"),{preventAbort:Boolean(j),preventCancel:Boolean(D),preventClose:Boolean(G),signal:se}}function fE(u,h){if(!_(u))throw new TypeError(h+" is not an AbortSignal.")}function pE(u,h){Qe(u,h);var j=u==null?void 0:u.readable;he(j,"readable","ReadableWritablePair"),Br(j,h+" has member 'readable' that");var D=u==null?void 0:u.writable;return he(D,"writable","ReadableWritablePair"),Tr(D,h+" has member 'writable' that"),{readable:j,writable:D}}var tn=function(){function u(h,j){h===void 0&&(h={}),j===void 0&&(j={}),h===void 0?h=null:rr(h,"First parameter");var D=yr(j,"Second parameter"),G=tE(h,"First parameter");if(tp(this),G.type==="bytes"){if(D.size!==void 0)throw new RangeError("The strategy for a byte stream cannot have a size function");var se=sr(D,0);Pe(this,G,se)}else{var be=z(D),se=sr(D,1);Z8(this,G,se,be)}}return Object.defineProperty(u.prototype,"locked",{get:function(){if(!Pn(this))throw po("locked");return An(this)},enumerable:!1,configurable:!0}),u.prototype.cancel=function(h){return h===void 0&&(h=void 0),Pn(this)?An(this)?v(new TypeError("Cannot cancel a stream that already has a reader")):fi(this,h):v(po("cancel"))},u.prototype.getReader=function(h){if(h===void 0&&(h=void 0),!Pn(this))throw po("getReader");var j=uE(h,"First parameter");return j.mode===void 0?Wr(this):Q(this)},u.prototype.pipeThrough=function(h,j){if(j===void 0&&(j={}),!Pn(this))throw po("pipeThrough");Fe(h,1,"pipeThrough");var D=pE(h,"First parameter"),G=v0(j,"Second parameter");if(An(this))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream");if(qr(D.writable))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream");var se=h0(this,D.writable,G.preventClose,G.preventAbort,G.preventCancel,G.signal);return T(se),D.readable},u.prototype.pipeTo=function(h,j){if(j===void 0&&(j={}),!Pn(this))return v(po("pipeTo"));if(h===void 0)return v("Parameter 1 is required in 'pipeTo'.");if(!Re(h))return v(new TypeError("ReadableStream.prototype.pipeTo's first argument must be a WritableStream"));var D;try{D=v0(j,"Second parameter")}catch(G){return v(G)}return An(this)?v(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")):qr(h)?v(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream")):h0(this,h,D.preventClose,D.preventAbort,D.preventCancel,D.signal)},u.prototype.tee=function(){if(!Pn(this))throw po("tee");var h=eE(this);return wr(h)},u.prototype.values=function(h){if(h===void 0&&(h=void 0),!Pn(this))throw po("values");var j=lE(h,"First parameter");return pr(this,j.preventCancel)},u}();Object.defineProperties(tn.prototype,{cancel:{enumerable:!0},getReader:{enumerable:!0},pipeThrough:{enumerable:!0},pipeTo:{enumerable:!0},tee:{enumerable:!0},values:{enumerable:!0},locked:{enumerable:!0}}),typeof r.toStringTag=="symbol"&&Object.defineProperty(tn.prototype,r.toStringTag,{value:"ReadableStream",configurable:!0}),typeof r.asyncIterator=="symbol"&&Object.defineProperty(tn.prototype,r.asyncIterator,{value:tn.prototype.values,writable:!0,configurable:!0});function ap(u,h,j,D,G){D===void 0&&(D=1),G===void 0&&(G=function(){return 1});var se=Object.create(tn.prototype);tp(se);var be=Object.create(fo.prototype);return m0(se,be,u,h,j,D,G),se}function g0(u,h,j){var D=Object.create(tn.prototype);tp(D);var G=Object.create(Ia.prototype);return Se(D,G,u,h,j,0,void 0),D}function tp(u){u._state="readable",u._reader=void 0,u._storedError=void 0,u._disturbed=!1}function Pn(u){return!n(u)||!Object.prototype.hasOwnProperty.call(u,"_readableStreamController")?!1:u instanceof tn}function An(u){return u._reader!==void 0}function fi(u,h){if(u._disturbed=!0,u._state==="closed")return d(void 0);if(u._state==="errored")return v(u._storedError);Ws(u);var j=u._reader;j!==void 0&&Ve(j)&&(j._readIntoRequests.forEach(function(G){G._closeSteps(void 0)}),j._readIntoRequests=new V);var D=u._readableStreamController[Ne](h);return C(D,a)}function Ws(u){u._state="closed";var h=u._reader;h!==void 0&&(pe(h),Ze(h)&&(h._readRequests.forEach(function(j){j._closeSteps()}),h._readRequests=new V))}function b0(u,h){u._state="errored",u._storedError=h;var j=u._reader;j!==void 0&&(ce(j,h),Ze(j)?(j._readRequests.forEach(function(D){D._errorSteps(h)}),j._readRequests=new V):(j._readIntoRequests.forEach(function(D){D._errorSteps(h)}),j._readIntoRequests=new V))}function po(u){return new TypeError("ReadableStream.prototype."+u+" can only be used on a ReadableStream")}function y0(u,h){Qe(u,h);var j=u==null?void 0:u.highWaterMark;return he(j,"highWaterMark","QueuingStrategyInit"),{highWaterMark:ke(j)}}var x0=function(u){return u.byteLength};try{Object.defineProperty(x0,"name",{value:"size",configurable:!0})}catch{}var Gs=function(){function u(h){Fe(h,1,"ByteLengthQueuingStrategy"),h=y0(h,"First parameter"),this._byteLengthQueuingStrategyHighWaterMark=h.highWaterMark}return Object.defineProperty(u.prototype,"highWaterMark",{get:function(){if(!k0(this))throw w0("highWaterMark");return this._byteLengthQueuingStrategyHighWaterMark},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"size",{get:function(){if(!k0(this))throw w0("size");return x0},enumerable:!1,configurable:!0}),u}();Object.defineProperties(Gs.prototype,{highWaterMark:{enumerable:!0},size:{enumerable:!0}}),typeof r.toStringTag=="symbol"&&Object.defineProperty(Gs.prototype,r.toStringTag,{value:"ByteLengthQueuingStrategy",configurable:!0});function w0(u){return new TypeError("ByteLengthQueuingStrategy.prototype."+u+" can only be used on a ByteLengthQueuingStrategy")}function k0(u){return!n(u)||!Object.prototype.hasOwnProperty.call(u,"_byteLengthQueuingStrategyHighWaterMark")?!1:u instanceof Gs}var _0=function(){return 1};try{Object.defineProperty(_0,"name",{value:"size",configurable:!0})}catch{}var Ks=function(){function u(h){Fe(h,1,"CountQueuingStrategy"),h=y0(h,"First parameter"),this._countQueuingStrategyHighWaterMark=h.highWaterMark}return Object.defineProperty(u.prototype,"highWaterMark",{get:function(){if(!E0(this))throw j0("highWaterMark");return this._countQueuingStrategyHighWaterMark},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"size",{get:function(){if(!E0(this))throw j0("size");return _0},enumerable:!1,configurable:!0}),u}();Object.defineProperties(Ks.prototype,{highWaterMark:{enumerable:!0},size:{enumerable:!0}}),typeof r.toStringTag=="symbol"&&Object.defineProperty(Ks.prototype,r.toStringTag,{value:"CountQueuingStrategy",configurable:!0});function j0(u){return new TypeError("CountQueuingStrategy.prototype."+u+" can only be used on a CountQueuingStrategy")}function E0(u){return!n(u)||!Object.prototype.hasOwnProperty.call(u,"_countQueuingStrategyHighWaterMark")?!1:u instanceof Ks}function hE(u,h){Qe(u,h);var j=u==null?void 0:u.flush,D=u==null?void 0:u.readableType,G=u==null?void 0:u.start,se=u==null?void 0:u.transform,be=u==null?void 0:u.writableType;return{flush:j===void 0?void 0:dE(j,u,h+" has member 'flush' that"),readableType:D,start:G===void 0?void 0:mE(G,u,h+" has member 'start' that"),transform:se===void 0?void 0:vE(se,u,h+" has member 'transform' that"),writableType:be}}function dE(u,h,j){return We(u,j),function(D){return B(u,h,[D])}}function mE(u,h,j){return We(u,j),function(D){return I(u,h,[D])}}function vE(u,h,j){return We(u,j),function(D,G){return B(u,h,[D,G])}}var Ys=function(){function u(h,j,D){h===void 0&&(h={}),j===void 0&&(j={}),D===void 0&&(D={}),h===void 0&&(h=null);var G=yr(j,"Second parameter"),se=yr(D,"Third parameter"),be=hE(h,"First parameter");if(be.readableType!==void 0)throw new RangeError("Invalid readableType specified");if(be.writableType!==void 0)throw new RangeError("Invalid writableType specified");var Je=sr(se,0),Sr=z(se),Fr=sr(G,1),Dr=z(G),$r,Oa=m(function(pi){$r=pi});gE(this,Oa,Fr,Dr,Je,Sr),yE(this,be),be.start!==void 0?$r(be.start(this._transformStreamController)):$r(void 0)}return Object.defineProperty(u.prototype,"readable",{get:function(){if(!S0(this))throw C0("readable");return this._readable},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"writable",{get:function(){if(!S0(this))throw C0("writable");return this._writable},enumerable:!1,configurable:!0}),u}();Object.defineProperties(Ys.prototype,{readable:{enumerable:!0},writable:{enumerable:!0}}),typeof r.toStringTag=="symbol"&&Object.defineProperty(Ys.prototype,r.toStringTag,{value:"TransformStream",configurable:!0});function gE(u,h,j,D,G,se){function be(){return h}function Je(Oa){return kE(u,Oa)}function Sr(Oa){return _E(u,Oa)}function Fr(){return jE(u)}u._writable=ue(be,Je,Fr,Sr,j,D);function Dr(){return EE(u)}function $r(Oa){return Cc(u,Oa),d(void 0)}u._readable=ap(be,Dr,$r,G,se),u._backpressure=void 0,u._backpressureChangePromise=void 0,u._backpressureChangePromise_resolve=void 0,qc(u,!0),u._transformStreamController=void 0}function S0(u){return!n(u)||!Object.prototype.hasOwnProperty.call(u,"_transformStreamController")?!1:u instanceof Ys}function Tc(u,h){Sn(u._readable._readableStreamController,h),Cc(u,h)}function Cc(u,h){P0(u._transformStreamController),Yf(u._writable._writableStreamController,h),u._backpressure&&qc(u,!1)}function qc(u,h){u._backpressureChangePromise!==void 0&&u._backpressureChangePromise_resolve(),u._backpressureChangePromise=m(function(j){u._backpressureChangePromise_resolve=j}),u._backpressure=h}var zo=function(){function u(){throw new TypeError("Illegal constructor")}return Object.defineProperty(u.prototype,"desiredSize",{get:function(){if(!Fc(this))throw Ic("desiredSize");var h=this._controlledTransformStream._readable._readableStreamController;return rp(h)},enumerable:!1,configurable:!0}),u.prototype.enqueue=function(h){if(h===void 0&&(h=void 0),!Fc(this))throw Ic("enqueue");A0(this,h)},u.prototype.error=function(h){if(h===void 0&&(h=void 0),!Fc(this))throw Ic("error");xE(this,h)},u.prototype.terminate=function(){if(!Fc(this))throw Ic("terminate");wE(this)},u}();Object.defineProperties(zo.prototype,{enqueue:{enumerable:!0},error:{enumerable:!0},terminate:{enumerable:!0},desiredSize:{enumerable:!0}}),typeof r.toStringTag=="symbol"&&Object.defineProperty(zo.prototype,r.toStringTag,{value:"TransformStreamDefaultController",configurable:!0});function Fc(u){return!n(u)||!Object.prototype.hasOwnProperty.call(u,"_controlledTransformStream")?!1:u instanceof zo}function bE(u,h,j,D){h._controlledTransformStream=u,u._transformStreamController=h,h._transformAlgorithm=j,h._flushAlgorithm=D}function yE(u,h){var j=Object.create(zo.prototype),D=function(se){try{return A0(j,se),d(void 0)}catch(be){return v(be)}},G=function(){return d(void 0)};h.transform!==void 0&&(D=function(se){return h.transform(se,j)}),h.flush!==void 0&&(G=function(){return h.flush(j)}),bE(u,j,D,G)}function P0(u){u._transformAlgorithm=void 0,u._flushAlgorithm=void 0}function A0(u,h){var j=u._controlledTransformStream,D=j._readable._readableStreamController;if(!Do(D))throw new TypeError("Readable side is not in a state that permits enqueue");try{Pc(D,h)}catch(se){throw Cc(j,se),j._readable._storedError}var G=J8(D);G!==j._backpressure&&qc(j,!0)}function xE(u,h){Tc(u._controlledTransformStream,h)}function T0(u,h){var j=u._transformAlgorithm(h);return C(j,void 0,function(D){throw Tc(u._controlledTransformStream,D),D})}function wE(u){var h=u._controlledTransformStream,j=h._readable._readableStreamController;$s(j);var D=new TypeError("TransformStream terminated");Cc(h,D)}function kE(u,h){var j=u._transformStreamController;if(u._backpressure){var D=u._backpressureChangePromise;return C(D,function(){var G=u._writable,se=G._state;if(se==="erroring")throw G._storedError;return T0(j,h)})}return T0(j,h)}function _E(u,h){return Tc(u,h),d(void 0)}function jE(u){var h=u._readable,j=u._transformStreamController,D=j._flushAlgorithm();return P0(j),C(D,function(){if(h._state==="errored")throw h._storedError;$s(h._readableStreamController)},function(G){throw Tc(u,G),h._storedError})}function EE(u){return qc(u,!1),u._backpressureChangePromise}function Ic(u){return new TypeError("TransformStreamDefaultController.prototype."+u+" can only be used on a TransformStreamDefaultController")}function C0(u){return new TypeError("TransformStream.prototype."+u+" can only be used on a TransformStream")}var ip={ReadableStream:tn,ReadableStreamDefaultController:fo,ReadableByteStreamController:Ia,ReadableStreamBYOBRequest:ha,ReadableStreamDefaultReader:Ye,ReadableStreamBYOBReader:ne,WritableStream:M,WritableStreamDefaultController:co,WritableStreamDefaultWriter:Bo,ByteLengthQueuingStrategy:Gs,CountQueuingStrategy:Ks,TransformStream:Ys,TransformStreamDefaultController:zo};if(typeof t!="undefined")for(var np in ip)Object.prototype.hasOwnProperty.call(ip,np)&&Object.defineProperty(t,np,{value:ip[np],writable:!0,configurable:!0});e.ByteLengthQueuingStrategy=Gs,e.CountQueuingStrategy=Ks,e.ReadableByteStreamController=Ia,e.ReadableStream=tn,e.ReadableStreamBYOBReader=ne,e.ReadableStreamBYOBRequest=ha,e.ReadableStreamDefaultController=fo,e.ReadableStreamDefaultReader=Ye,e.TransformStream=Ys,e.TransformStreamDefaultController=zo,e.WritableStream=M,e.WritableStreamDefaultController=co,e.WritableStreamDefaultWriter=Bo,Object.defineProperty(e,"__esModule",{value:!0})})});var up="3.3.4";function B0(e,r){if(!e)throw new Error(r||"loaders.gl assertion failed.")}var Bi={self:typeof self!="undefined"&&self,window:typeof window!="undefined"&&window,global:typeof global!="undefined"&&global,document:typeof document!="undefined"&&document},BN=Bi.self||Bi.window||Bi.global||{},DN=Bi.window||Bi.self||Bi.global||{},D0=Bi.global||Bi.self||Bi.window||{},zN=Bi.document||{};var Oc=typeof process!="object"||String(process)!=="[object process]"||process.browser,Rc=typeof importScripts=="function",NN=typeof window!="undefined"&&typeof window.orientation!="undefined",z0=typeof process!="undefined"&&process.version&&/v([0-9]*)/.exec(process.version),LN=z0&&parseFloat(z0[1])||0;function cp(e,r=!0,a){let i=a||new Set;if(e){if(N0(e))i.add(e);else if(N0(e.buffer))i.add(e.buffer);else if(!ArrayBuffer.isView(e)){if(r&&typeof e=="object")for(let t in e)cp(e[t],r,i)}}return a===void 0?Array.from(i):[]}function N0(e){return e?e instanceof ArrayBuffer||typeof MessagePort!="undefined"&&e instanceof MessagePort||typeof ImageBitmap!="undefined"&&e instanceof ImageBitmap||typeof OffscreenCanvas!="undefined"&&e instanceof OffscreenCanvas:!1}function ho(){let parentPort;try{eval("globalThis.parentPort = require('worker_threads').parentPort"),parentPort=globalThis.parentPort}catch{}return parentPort}var lp=new Map,qn=class{static inWorkerThread(){return typeof self!="undefined"||Boolean(ho())}static set onmessage(r){function a(t){let n=ho(),{type:o,payload:s}=n?t:t.data;r(o,s)}let i=ho();i?(i.on("message",a),i.on("exit",()=>console.debug("Node worker closing"))):globalThis.onmessage=a}static addEventListener(r){let a=lp.get(r);a||(a=t=>{if(!RE(t))return;let n=ho(),{type:o,payload:s}=n?t:t.data;r(o,s)}),ho()?console.error("not implemented"):globalThis.addEventListener("message",a)}static removeEventListener(r){let a=lp.get(r);lp.delete(r),ho()?console.error("not implemented"):globalThis.removeEventListener("message",a)}static postMessage(r,a){let i={source:"loaders.gl",type:r,payload:a},t=cp(a),n=ho();n?n.postMessage(i,t):globalThis.postMessage(i,t)}};function RE(e){let{type:r,data:a}=e;return r==="message"&&a&&typeof a.source=="string"&&a.source.startsWith("loaders.gl")}var hp={};IE(hp,{requireFromFile:()=>pp,requireFromString:()=>Bc});var fp=Yt(require("module")),L0=Yt(require("path"));async function pp(e){if(e.startsWith("http")){let a=await(await fetch(e)).text();return Bc(a)}return e.startsWith("/")||(e=`${process.cwd()}/${e}`),require(e)}function Bc(e,r="",a){if(typeof r=="object"&&(a=r,r=""),typeof e!="string")throw new Error(`code must be a string, not ${typeof e}`);let i=fp.default._nodeModulePaths(L0.default.dirname(r)),t=module.parent,n=new fp.default(r,t);return n.filename=r,n.paths=[].concat((a==null?void 0:a.prependPaths)||[]).concat(i).concat((a==null?void 0:a.appendPaths)||[]),n._compile(e,r),t&&t.children&&t.children.splice(t.children.indexOf(n),1),n.exports}var BE="latest",DE=typeof up!="undefined"?up:BE,dp={};async function mp(e,r=null,a={}){return r&&(e=M0(e,r,a)),dp[e]=dp[e]||zE(e),await dp[e]}function M0(e,r,a){if(e.startsWith("http"))return e;let i=a.modules||{};return i[e]?i[e]:Oc?a.CDN?(B0(a.CDN.startsWith("http")),`${a.CDN}/${r}@${DE}/dist/libs/${e}`):Rc?`../src/libs/${e}`:`modules/${r}/src/libs/${e}`:`modules/${r}/dist/libs/${e}`}async function zE(e){if(e.endsWith("wasm"))return await(await fetch(e)).arrayBuffer();if(!Oc)try{return hp&&pp&&await pp(e)}catch{return null}if(Rc)return importScripts(e);let a=await(await fetch(e)).text();return NE(a,e)}function NE(e,r){if(!Oc)return Bc&&Bc(e,r);if(Rc)return eval.call(D0,e),null;let a=document.createElement("script");a.id=r;try{a.appendChild(document.createTextNode(e))}catch{a.text=e}return document.body.appendChild(a),null}var Xv=Yt(Ig());var di=typeof process!="object"||String(process)!=="[object process]"||process.browser,qp={self:typeof self!="undefined"&&self,window:typeof window!="undefined"&&window,global:typeof global!="undefined"&&global},Pa=qp.global||qp.self||qp.window;var Og={ibm866:[1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,9617,9618,9619,9474,9508,9569,9570,9558,9557,9571,9553,9559,9565,9564,9563,9488,9492,9524,9516,9500,9472,9532,9566,9567,9562,9556,9577,9574,9568,9552,9580,9575,9576,9572,9573,9561,9560,9554,9555,9579,9578,9496,9484,9608,9604,9612,9616,9600,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1025,1105,1028,1108,1031,1111,1038,1118,176,8729,183,8730,8470,164,9632,160],"iso-8859-2":[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,260,728,321,164,317,346,167,168,352,350,356,377,173,381,379,176,261,731,322,180,318,347,711,184,353,351,357,378,733,382,380,340,193,194,258,196,313,262,199,268,201,280,203,282,205,206,270,272,323,327,211,212,336,214,215,344,366,218,368,220,221,354,223,341,225,226,259,228,314,263,231,269,233,281,235,283,237,238,271,273,324,328,243,244,337,246,247,345,367,250,369,252,253,355,729],"iso-8859-3":[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,294,728,163,164,null,292,167,168,304,350,286,308,173,null,379,176,295,178,179,180,181,293,183,184,305,351,287,309,189,null,380,192,193,194,null,196,266,264,199,200,201,202,203,204,205,206,207,null,209,210,211,212,288,214,215,284,217,218,219,220,364,348,223,224,225,226,null,228,267,265,231,232,233,234,235,236,237,238,239,null,241,242,243,244,289,246,247,285,249,250,251,252,365,349,729],"iso-8859-4":[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,260,312,342,164,296,315,167,168,352,274,290,358,173,381,175,176,261,731,343,180,297,316,711,184,353,275,291,359,330,382,331,256,193,194,195,196,197,198,302,268,201,280,203,278,205,206,298,272,325,332,310,212,213,214,215,216,370,218,219,220,360,362,223,257,225,226,227,228,229,230,303,269,233,281,235,279,237,238,299,273,326,333,311,244,245,246,247,248,371,250,251,252,361,363,729],"iso-8859-5":[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,173,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,8470,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,167,1118,1119],"iso-8859-6":[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,null,null,null,164,null,null,null,null,null,null,null,1548,173,null,null,null,null,null,null,null,null,null,null,null,null,null,1563,null,null,null,1567,null,1569,1570,1571,1572,1573,1574,1575,1576,1577,1578,1579,1580,1581,1582,1583,1584,1585,1586,1587,1588,1589,1590,1591,1592,1593,1594,null,null,null,null,null,1600,1601,1602,1603,1604,1605,1606,1607,1608,1609,1610,1611,1612,1613,1614,1615,1616,1617,1618,null,null,null,null,null,null,null,null,null,null,null,null,null],"iso-8859-7":[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,8216,8217,163,8364,8367,166,167,168,169,890,171,172,173,null,8213,176,177,178,179,900,901,902,183,904,905,906,187,908,189,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,null,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,null],"iso-8859-8":[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,null,162,163,164,165,166,167,168,169,215,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,247,187,188,189,190,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,8215,1488,1489,1490,1491,1492,1493,1494,1495,1496,1497,1498,1499,1500,1501,1502,1503,1504,1505,1506,1507,1508,1509,1510,1511,1512,1513,1514,null,null,8206,8207,null],"iso-8859-10":[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,260,274,290,298,296,310,167,315,272,352,358,381,173,362,330,176,261,275,291,299,297,311,183,316,273,353,359,382,8213,363,331,256,193,194,195,196,197,198,302,268,201,280,203,278,205,206,207,208,325,332,211,212,213,214,360,216,370,218,219,220,221,222,223,257,225,226,227,228,229,230,303,269,233,281,235,279,237,238,239,240,326,333,243,244,245,246,361,248,371,250,251,252,253,254,312],"iso-8859-13":[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,8221,162,163,164,8222,166,167,216,169,342,171,172,173,174,198,176,177,178,179,8220,181,182,183,248,185,343,187,188,189,190,230,260,302,256,262,196,197,280,274,268,201,377,278,290,310,298,315,352,323,325,211,332,213,214,215,370,321,346,362,220,379,381,223,261,303,257,263,228,229,281,275,269,233,378,279,291,311,299,316,353,324,326,243,333,245,246,247,371,322,347,363,252,380,382,8217],"iso-8859-14":[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,7682,7683,163,266,267,7690,167,7808,169,7810,7691,7922,173,174,376,7710,7711,288,289,7744,7745,182,7766,7809,7767,7811,7776,7923,7812,7813,7777,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,372,209,210,211,212,213,214,7786,216,217,218,219,220,221,374,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,373,241,242,243,244,245,246,7787,248,249,250,251,252,253,375,255],"iso-8859-15":[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,8364,165,352,167,353,169,170,171,172,173,174,175,176,177,178,179,381,181,182,183,382,185,186,187,338,339,376,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255],"iso-8859-16":[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,260,261,321,8364,8222,352,167,353,169,536,171,377,173,378,379,176,177,268,322,381,8221,182,183,382,269,537,187,338,339,376,380,192,193,194,258,196,262,198,199,200,201,202,203,204,205,206,207,272,323,210,211,212,336,214,346,368,217,218,219,220,280,538,223,224,225,226,259,228,263,230,231,232,233,234,235,236,237,238,239,273,324,242,243,244,337,246,347,369,249,250,251,252,281,539,255],"koi8-r":[9472,9474,9484,9488,9492,9496,9500,9508,9516,9524,9532,9600,9604,9608,9612,9616,9617,9618,9619,8992,9632,8729,8730,8776,8804,8805,160,8993,176,178,183,247,9552,9553,9554,1105,9555,9556,9557,9558,9559,9560,9561,9562,9563,9564,9565,9566,9567,9568,9569,1025,9570,9571,9572,9573,9574,9575,9576,9577,9578,9579,9580,169,1102,1072,1073,1094,1076,1077,1092,1075,1093,1080,1081,1082,1083,1084,1085,1086,1087,1103,1088,1089,1090,1091,1078,1074,1100,1099,1079,1096,1101,1097,1095,1098,1070,1040,1041,1062,1044,1045,1060,1043,1061,1048,1049,1050,1051,1052,1053,1054,1055,1071,1056,1057,1058,1059,1046,1042,1068,1067,1047,1064,1069,1065,1063,1066],"koi8-u":[9472,9474,9484,9488,9492,9496,9500,9508,9516,9524,9532,9600,9604,9608,9612,9616,9617,9618,9619,8992,9632,8729,8730,8776,8804,8805,160,8993,176,178,183,247,9552,9553,9554,1105,1108,9556,1110,1111,9559,9560,9561,9562,9563,1169,1118,9566,9567,9568,9569,1025,1028,9571,1030,1031,9574,9575,9576,9577,9578,1168,1038,169,1102,1072,1073,1094,1076,1077,1092,1075,1093,1080,1081,1082,1083,1084,1085,1086,1087,1103,1088,1089,1090,1091,1078,1074,1100,1099,1079,1096,1101,1097,1095,1098,1070,1040,1041,1062,1044,1045,1060,1043,1061,1048,1049,1050,1051,1052,1053,1054,1055,1071,1056,1057,1058,1059,1046,1042,1068,1067,1047,1064,1069,1065,1063,1066],macintosh:[196,197,199,201,209,214,220,225,224,226,228,227,229,231,233,232,234,235,237,236,238,239,241,243,242,244,246,245,250,249,251,252,8224,176,162,163,167,8226,182,223,174,169,8482,180,168,8800,198,216,8734,177,8804,8805,165,181,8706,8721,8719,960,8747,170,186,937,230,248,191,161,172,8730,402,8776,8710,171,187,8230,160,192,195,213,338,339,8211,8212,8220,8221,8216,8217,247,9674,255,376,8260,8364,8249,8250,64257,64258,8225,183,8218,8222,8240,194,202,193,203,200,205,206,207,204,211,212,63743,210,218,219,217,305,710,732,175,728,729,730,184,733,731,711],"windows-874":[8364,129,130,131,132,8230,134,135,136,137,138,139,140,141,142,143,144,8216,8217,8220,8221,8226,8211,8212,152,153,154,155,156,157,158,159,160,3585,3586,3587,3588,3589,3590,3591,3592,3593,3594,3595,3596,3597,3598,3599,3600,3601,3602,3603,3604,3605,3606,3607,3608,3609,3610,3611,3612,3613,3614,3615,3616,3617,3618,3619,3620,3621,3622,3623,3624,3625,3626,3627,3628,3629,3630,3631,3632,3633,3634,3635,3636,3637,3638,3639,3640,3641,3642,null,null,null,null,3647,3648,3649,3650,3651,3652,3653,3654,3655,3656,3657,3658,3659,3660,3661,3662,3663,3664,3665,3666,3667,3668,3669,3670,3671,3672,3673,3674,3675,null,null,null,null],"windows-1250":[8364,129,8218,131,8222,8230,8224,8225,136,8240,352,8249,346,356,381,377,144,8216,8217,8220,8221,8226,8211,8212,152,8482,353,8250,347,357,382,378,160,711,728,321,164,260,166,167,168,169,350,171,172,173,174,379,176,177,731,322,180,181,182,183,184,261,351,187,317,733,318,380,340,193,194,258,196,313,262,199,268,201,280,203,282,205,206,270,272,323,327,211,212,336,214,215,344,366,218,368,220,221,354,223,341,225,226,259,228,314,263,231,269,233,281,235,283,237,238,271,273,324,328,243,244,337,246,247,345,367,250,369,252,253,355,729],"windows-1251":[1026,1027,8218,1107,8222,8230,8224,8225,8364,8240,1033,8249,1034,1036,1035,1039,1106,8216,8217,8220,8221,8226,8211,8212,152,8482,1113,8250,1114,1116,1115,1119,160,1038,1118,1032,164,1168,166,167,1025,169,1028,171,172,173,174,1031,176,177,1030,1110,1169,181,182,183,1105,8470,1108,187,1112,1029,1109,1111,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103],"windows-1252":[8364,129,8218,402,8222,8230,8224,8225,710,8240,352,8249,338,141,381,143,144,8216,8217,8220,8221,8226,8211,8212,732,8482,353,8250,339,157,382,376,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255],"windows-1253":[8364,129,8218,402,8222,8230,8224,8225,136,8240,138,8249,140,141,142,143,144,8216,8217,8220,8221,8226,8211,8212,152,8482,154,8250,156,157,158,159,160,901,902,163,164,165,166,167,168,169,null,171,172,173,174,8213,176,177,178,179,900,181,182,183,904,905,906,187,908,189,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,null,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,null],"windows-1254":[8364,129,8218,402,8222,8230,8224,8225,710,8240,352,8249,338,141,142,143,144,8216,8217,8220,8221,8226,8211,8212,732,8482,353,8250,339,157,158,376,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,286,209,210,211,212,213,214,215,216,217,218,219,220,304,350,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,287,241,242,243,244,245,246,247,248,249,250,251,252,305,351,255],"windows-1255":[8364,129,8218,402,8222,8230,8224,8225,710,8240,138,8249,140,141,142,143,144,8216,8217,8220,8221,8226,8211,8212,732,8482,154,8250,156,157,158,159,160,161,162,163,8362,165,166,167,168,169,215,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,247,187,188,189,190,191,1456,1457,1458,1459,1460,1461,1462,1463,1464,1465,1466,1467,1468,1469,1470,1471,1472,1473,1474,1475,1520,1521,1522,1523,1524,null,null,null,null,null,null,null,1488,1489,1490,1491,1492,1493,1494,1495,1496,1497,1498,1499,1500,1501,1502,1503,1504,1505,1506,1507,1508,1509,1510,1511,1512,1513,1514,null,null,8206,8207,null],"windows-1256":[8364,1662,8218,402,8222,8230,8224,8225,710,8240,1657,8249,338,1670,1688,1672,1711,8216,8217,8220,8221,8226,8211,8212,1705,8482,1681,8250,339,8204,8205,1722,160,1548,162,163,164,165,166,167,168,169,1726,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,1563,187,188,189,190,1567,1729,1569,1570,1571,1572,1573,1574,1575,1576,1577,1578,1579,1580,1581,1582,1583,1584,1585,1586,1587,1588,1589,1590,215,1591,1592,1593,1594,1600,1601,1602,1603,224,1604,226,1605,1606,1607,1608,231,232,233,234,235,1609,1610,238,239,1611,1612,1613,1614,244,1615,1616,247,1617,249,1618,251,252,8206,8207,1746],"windows-1257":[8364,129,8218,131,8222,8230,8224,8225,136,8240,138,8249,140,168,711,184,144,8216,8217,8220,8221,8226,8211,8212,152,8482,154,8250,156,175,731,159,160,null,162,163,164,null,166,167,216,169,342,171,172,173,174,198,176,177,178,179,180,181,182,183,248,185,343,187,188,189,190,230,260,302,256,262,196,197,280,274,268,201,377,278,290,310,298,315,352,323,325,211,332,213,214,215,370,321,346,362,220,379,381,223,261,303,257,263,228,229,281,275,269,233,378,279,291,311,299,316,353,324,326,243,333,245,246,247,371,322,347,363,252,380,382,729],"windows-1258":[8364,129,8218,402,8222,8230,8224,8225,710,8240,138,8249,338,141,142,143,144,8216,8217,8220,8221,8226,8211,8212,732,8482,154,8250,339,157,158,376,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,258,196,197,198,199,200,201,202,203,768,205,206,207,272,209,777,211,212,416,214,215,216,217,218,219,220,431,771,223,224,225,226,259,228,229,230,231,232,233,234,235,769,237,238,239,273,241,803,243,244,417,246,247,248,249,250,251,252,432,8363,255],"x-mac-cyrillic":[1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,8224,176,1168,163,167,8226,182,1030,174,169,8482,1026,1106,8800,1027,1107,8734,177,8804,8805,1110,181,1169,1032,1028,1108,1031,1111,1033,1113,1034,1114,1112,1029,172,8730,402,8776,8710,171,187,8230,160,1035,1115,1036,1116,1109,8211,8212,8220,8221,8216,8217,247,8222,1038,1118,1039,1119,8470,1025,1105,1103,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,8364]};global["encoding-indexes"]=Og||{};function jr(e,r,a){return r<=e&&e<=a}function c4(e,r){return e.indexOf(r)!==-1}var cn=Math.floor;function Wc(e){if(e===void 0)return{};if(e===Object(e))return e;throw TypeError("Could not convert argument to dictionary")}function l4(e){for(var r=String(e),a=r.length,i=0,t=[];i<a;){var n=r.charCodeAt(i);if(n<55296||n>57343)t.push(n);else if(56320<=n&&n<=57343)t.push(65533);else if(55296<=n&&n<=56319)if(i===a-1)t.push(65533);else{var o=r.charCodeAt(i+1);if(56320<=o&&o<=57343){var s=n&1023,c=o&1023;t.push(65536+(s<<10)+c),i+=1}else t.push(65533)}i+=1}return t}function f4(e){for(var r="",a=0;a<e.length;++a){var i=e[a];i<=65535?r+=String.fromCharCode(i):(i-=65536,r+=String.fromCharCode((i>>10)+55296,(i&1023)+56320))}return r}function Qt(e){return 0<=e&&e<=127}var Xt=Qt,zr=-1;function Fp(e){this.tokens=[].slice.call(e),this.tokens.reverse()}Fp.prototype={endOfStream:function(){return!this.tokens.length},read:function(){return this.tokens.length?this.tokens.pop():zr},prepend:function(e){if(Array.isArray(e))for(var r=e;r.length;)this.tokens.push(r.pop());else this.tokens.push(e)},push:function(e){if(Array.isArray(e))for(var r=e;r.length;)this.tokens.unshift(r.shift());else this.tokens.unshift(e)}};var ta=-1;function Nr(e,r){if(e)throw TypeError("Decoder error");return r||65533}function mi(e){throw TypeError("The code point "+e+" could not be encoded.")}function p4(){}p4.prototype={handler:function(e,r){}};function h4(){}h4.prototype={handler:function(e,r){}};function Ip(e){return e=String(e).trim().toLowerCase(),Object.prototype.hasOwnProperty.call(Op,e)?Op[e]:null}var Rg=[{encodings:[{labels:["unicode-1-1-utf-8","utf-8","utf8"],name:"UTF-8"}],heading:"The Encoding"},{encodings:[{labels:["866","cp866","csibm866","ibm866"],name:"IBM866"},{labels:["csisolatin2","iso-8859-2","iso-ir-101","iso8859-2","iso88592","iso_8859-2","iso_8859-2:1987","l2","latin2"],name:"ISO-8859-2"},{labels:["csisolatin3","iso-8859-3","iso-ir-109","iso8859-3","iso88593","iso_8859-3","iso_8859-3:1988","l3","latin3"],name:"ISO-8859-3"},{labels:["csisolatin4","iso-8859-4","iso-ir-110","iso8859-4","iso88594","iso_8859-4","iso_8859-4:1988","l4","latin4"],name:"ISO-8859-4"},{labels:["csisolatincyrillic","cyrillic","iso-8859-5","iso-ir-144","iso8859-5","iso88595","iso_8859-5","iso_8859-5:1988"],name:"ISO-8859-5"},{labels:["arabic","asmo-708","csiso88596e","csiso88596i","csisolatinarabic","ecma-114","iso-8859-6","iso-8859-6-e","iso-8859-6-i","iso-ir-127","iso8859-6","iso88596","iso_8859-6","iso_8859-6:1987"],name:"ISO-8859-6"},{labels:["csisolatingreek","ecma-118","elot_928","greek","greek8","iso-8859-7","iso-ir-126","iso8859-7","iso88597","iso_8859-7","iso_8859-7:1987","sun_eu_greek"],name:"ISO-8859-7"},{labels:["csiso88598e","csisolatinhebrew","hebrew","iso-8859-8","iso-8859-8-e","iso-ir-138","iso8859-8","iso88598","iso_8859-8","iso_8859-8:1988","visual"],name:"ISO-8859-8"},{labels:["csiso88598i","iso-8859-8-i","logical"],name:"ISO-8859-8-I"},{labels:["csisolatin6","iso-8859-10","iso-ir-157","iso8859-10","iso885910","l6","latin6"],name:"ISO-8859-10"},{labels:["iso-8859-13","iso8859-13","iso885913"],name:"ISO-8859-13"},{labels:["iso-8859-14","iso8859-14","iso885914"],name:"ISO-8859-14"},{labels:["csisolatin9","iso-8859-15","iso8859-15","iso885915","iso_8859-15","l9"],name:"ISO-8859-15"},{labels:["iso-8859-16"],name:"ISO-8859-16"},{labels:["cskoi8r","koi","koi8","koi8-r","koi8_r"],name:"KOI8-R"},{labels:["koi8-ru","koi8-u"],name:"KOI8-U"},{labels:["csmacintosh","mac","macintosh","x-mac-roman"],name:"macintosh"},{labels:["dos-874","iso-8859-11","iso8859-11","iso885911","tis-620","windows-874"],name:"windows-874"},{labels:["cp1250","windows-1250","x-cp1250"],name:"windows-1250"},{labels:["cp1251","windows-1251","x-cp1251"],name:"windows-1251"},{labels:["ansi_x3.4-1968","ascii","cp1252","cp819","csisolatin1","ibm819","iso-8859-1","iso-ir-100","iso8859-1","iso88591","iso_8859-1","iso_8859-1:1987","l1","latin1","us-ascii","windows-1252","x-cp1252"],name:"windows-1252"},{labels:["cp1253","windows-1253","x-cp1253"],name:"windows-1253"},{labels:["cp1254","csisolatin5","iso-8859-9","iso-ir-148","iso8859-9","iso88599","iso_8859-9","iso_8859-9:1989","l5","latin5","windows-1254","x-cp1254"],name:"windows-1254"},{labels:["cp1255","windows-1255","x-cp1255"],name:"windows-1255"},{labels:["cp1256","windows-1256","x-cp1256"],name:"windows-1256"},{labels:["cp1257","windows-1257","x-cp1257"],name:"windows-1257"},{labels:["cp1258","windows-1258","x-cp1258"],name:"windows-1258"},{labels:["x-mac-cyrillic","x-mac-ukrainian"],name:"x-mac-cyrillic"}],heading:"Legacy single-byte encodings"},{encodings:[{labels:["chinese","csgb2312","csiso58gb231280","gb2312","gb_2312","gb_2312-80","gbk","iso-ir-58","x-gbk"],name:"GBK"},{labels:["gb18030"],name:"gb18030"}],heading:"Legacy multi-byte Chinese (simplified) encodings"},{encodings:[{labels:["big5","big5-hkscs","cn-big5","csbig5","x-x-big5"],name:"Big5"}],heading:"Legacy multi-byte Chinese (traditional) encodings"},{encodings:[{labels:["cseucpkdfmtjapanese","euc-jp","x-euc-jp"],name:"EUC-JP"},{labels:["csiso2022jp","iso-2022-jp"],name:"ISO-2022-JP"},{labels:["csshiftjis","ms932","ms_kanji","shift-jis","shift_jis","sjis","windows-31j","x-sjis"],name:"Shift_JIS"}],heading:"Legacy multi-byte Japanese encodings"},{encodings:[{labels:["cseuckr","csksc56011987","euc-kr","iso-ir-149","korean","ks_c_5601-1987","ks_c_5601-1989","ksc5601","ksc_5601","windows-949"],name:"EUC-KR"}],heading:"Legacy multi-byte Korean encodings"},{encodings:[{labels:["csiso2022kr","hz-gb-2312","iso-2022-cn","iso-2022-cn-ext","iso-2022-kr"],name:"replacement"},{labels:["utf-16be"],name:"UTF-16BE"},{labels:["utf-16","utf-16le"],name:"UTF-16LE"},{labels:["x-user-defined"],name:"x-user-defined"}],heading:"Legacy miscellaneous encodings"}],Op={};Rg.forEach(function(e){e.encodings.forEach(function(r){r.labels.forEach(function(a){Op[a]=r})})});var Ot={},Rt={};function Xo(e,r){return r&&r[e]||null}function Jo(e,r){var a=r.indexOf(e);return a===-1?null:a}function Et(e){if(!("encoding-indexes"in global))throw Error("Indexes missing. Did you forget to include encoding-indexes.js first?");return global["encoding-indexes"][e]}function d4(e){if(e>39419&&e<189e3||e>1237575)return null;if(e===7457)return 59335;var r=0,a=0,i=Et("gb18030-ranges"),t;for(t=0;t<i.length;++t){var n=i[t];if(n[0]<=e)r=n[0],a=n[1];else break}return a+e-r}function m4(e){if(e===59335)return 7457;var r=0,a=0,i=Et("gb18030-ranges"),t;for(t=0;t<i.length;++t){var n=i[t];if(n[1]<=e)r=n[1],a=n[0];else break}return a+e-r}function v4(e){Rp=Rp||Et("jis0208").map(function(a,i){return jr(i,8272,8835)?null:a});var r=Rp;return r.indexOf(e)}var Rp;function g4(e){Bp=Bp||Et("big5").map(function(a,i){return i<(161-129)*157?null:a});var r=Bp;return e===9552||e===9566||e===9569||e===9578||e===21313||e===21317?r.lastIndexOf(e):Jo(e,r)}var Bp,Bg="utf-8";function vo(e,r){if(!(this instanceof vo))throw TypeError("Called as a function. Did you forget 'new'?");e=e!==void 0?String(e):Bg,r=Wc(r),this._encoding=null,this._decoder=null,this._ignoreBOM=!1,this._BOMseen=!1,this._error_mode="replacement",this._do_not_flush=!1;var a=Ip(e);if(a===null||a.name==="replacement")throw RangeError("Unknown encoding: "+e);if(!Rt[a.name])throw Error("Decoder not present. Did you forget to include encoding-indexes.js first?");var i=this;return i._encoding=a,Boolean(r.fatal)&&(i._error_mode="fatal"),Boolean(r.ignoreBOM)&&(i._ignoreBOM=!0),Object.defineProperty||(this.encoding=i._encoding.name.toLowerCase(),this.fatal=i._error_mode==="fatal",this.ignoreBOM=i._ignoreBOM),i}Object.defineProperty&&(Object.defineProperty(vo.prototype,"encoding",{get:function(){return this._encoding.name.toLowerCase()}}),Object.defineProperty(vo.prototype,"fatal",{get:function(){return this._error_mode==="fatal"}}),Object.defineProperty(vo.prototype,"ignoreBOM",{get:function(){return this._ignoreBOM}}));vo.prototype.decode=function(r,a){var i;typeof r=="object"&&r instanceof ArrayBuffer?i=new Uint8Array(r):typeof r=="object"&&"buffer"in r&&r.buffer instanceof ArrayBuffer?i=new Uint8Array(r.buffer,r.byteOffset,r.byteLength):i=new Uint8Array(0),a=Wc(a),this._do_not_flush||(this._decoder=Rt[this._encoding.name]({fatal:this._error_mode==="fatal"}),this._BOMseen=!1),this._do_not_flush=Boolean(a.stream);for(var t=new Fp(i),n=[],o;;){var s=t.read();if(s===zr||(o=this._decoder.handler(t,s),o===ta))break;o!==null&&(Array.isArray(o)?n.push.apply(n,o):n.push(o))}if(!this._do_not_flush){do{if(o=this._decoder.handler(t,t.read()),o===ta)break;o!==null&&(Array.isArray(o)?n.push.apply(n,o):n.push(o))}while(!t.endOfStream());this._decoder=null}function c(f){return c4(["UTF-8","UTF-16LE","UTF-16BE"],this._encoding.name)&&!this._ignoreBOM&&!this._BOMseen&&(f.length>0&&f[0]===65279?(this._BOMseen=!0,f.shift()):f.length>0&&(this._BOMseen=!0)),f4(f)}return c.call(this,n)};function fu(e,r){if(!(this instanceof fu))throw TypeError("Called as a function. Did you forget 'new'?");r=Wc(r),this._encoding=null,this._encoder=null,this._do_not_flush=!1,this._fatal=Boolean(r.fatal)?"fatal":"replacement";var a=this;if(Boolean(r.NONSTANDARD_allowLegacyEncoding)){e=e!==void 0?String(e):Bg;var i=Ip(e);if(i===null||i.name==="replacement")throw RangeError("Unknown encoding: "+e);if(!Ot[i.name])throw Error("Encoder not present. Did you forget to include encoding-indexes.js first?");a._encoding=i}else a._encoding=Ip("utf-8"),e!==void 0&&"console"in global&&console.warn("TextEncoder constructor called with encoding label, which is ignored.");return Object.defineProperty||(this.encoding=a._encoding.name.toLowerCase()),a}Object.defineProperty&&Object.defineProperty(fu.prototype,"encoding",{get:function(){return this._encoding.name.toLowerCase()}});fu.prototype.encode=function(r,a){r=r===void 0?"":String(r),a=Wc(a),this._do_not_flush||(this._encoder=Ot[this._encoding.name]({fatal:this._fatal==="fatal"})),this._do_not_flush=Boolean(a.stream);for(var i=new Fp(l4(r)),t=[],n;;){var o=i.read();if(o===zr||(n=this._encoder.handler(i,o),n===ta))break;Array.isArray(n)?t.push.apply(t,n):t.push(n)}if(!this._do_not_flush){for(;n=this._encoder.handler(i,i.read()),n!==ta;)Array.isArray(n)?t.push.apply(t,n):t.push(n);this._encoder=null}return new Uint8Array(t)};function b4(e){var r=e.fatal,a=0,i=0,t=0,n=128,o=191;this.handler=function(s,c){if(c===zr&&t!==0)return t=0,Nr(r);if(c===zr)return ta;if(t===0){if(jr(c,0,127))return c;if(jr(c,194,223))t=1,a=c&31;else if(jr(c,224,239))c===224&&(n=160),c===237&&(o=159),t=2,a=c&15;else if(jr(c,240,244))c===240&&(n=144),c===244&&(o=143),t=3,a=c&7;else return Nr(r);return null}if(!jr(c,n,o))return a=t=i=0,n=128,o=191,s.prepend(c),Nr(r);if(n=128,o=191,a=a<<6|c&63,i+=1,i!==t)return null;var f=a;return a=t=i=0,f}}function y4(e){var r=e.fatal;this.handler=function(a,i){if(i===zr)return ta;if(Xt(i))return i;var t,n;jr(i,128,2047)?(t=1,n=192):jr(i,2048,65535)?(t=2,n=224):jr(i,65536,1114111)&&(t=3,n=240);for(var o=[(i>>6*t)+n];t>0;){var s=i>>6*(t-1);o.push(128|s&63),t-=1}return o}}Ot["UTF-8"]=function(e){return new y4(e)};Rt["UTF-8"]=function(e){return new b4(e)};function x4(e,r){var a=r.fatal;this.handler=function(i,t){if(t===zr)return ta;if(Qt(t))return t;var n=e[t-128];return n===null?Nr(a):n}}function w4(e,r){var a=r.fatal;this.handler=function(i,t){if(t===zr)return ta;if(Xt(t))return t;var n=Jo(t,e);return n===null&&mi(t),n+128}}(function(){"encoding-indexes"in global&&Rg.forEach(function(e){e.heading==="Legacy single-byte encodings"&&e.encodings.forEach(function(r){var a=r.name,i=Et(a.toLowerCase());Rt[a]=function(t){return new x4(i,t)},Ot[a]=function(t){return new w4(i,t)}})})})();Rt.GBK=function(e){return new Dg(e)};Ot.GBK=function(e){return new zg(e,!0)};function Dg(e){var r=e.fatal,a=0,i=0,t=0;this.handler=function(n,o){if(o===zr&&a===0&&i===0&&t===0)return ta;o===zr&&(a!==0||i!==0||t!==0)&&(a=0,i=0,t=0,Nr(r));var s;if(t!==0){s=null,jr(o,48,57)&&(s=d4((((a-129)*10+i-48)*126+t-129)*10+o-48));var c=[i,t,o];return a=0,i=0,t=0,s===null?(n.prepend(c),Nr(r)):s}if(i!==0)return jr(o,129,254)?(t=o,null):(n.prepend([i,o]),a=0,i=0,Nr(r));if(a!==0){if(jr(o,48,57))return i=o,null;var f=a,p=null;a=0;var m=o<127?64:65;return(jr(o,64,126)||jr(o,128,254))&&(p=(f-129)*190+(o-m)),s=p===null?null:Xo(p,Et("gb18030")),s===null&&Qt(o)&&n.prepend(o),s===null?Nr(r):s}return Qt(o)?o:o===128?8364:jr(o,129,254)?(a=o,null):Nr(r)}}function zg(e,r){var a=e.fatal;this.handler=function(i,t){if(t===zr)return ta;if(Xt(t))return t;if(t===58853)return mi(t);if(r&&t===8364)return 128;var n=Jo(t,Et("gb18030"));if(n!==null){var o=cn(n/190)+129,s=n%190,c=s<63?64:65;return[o,s+c]}if(r)return mi(t);n=m4(t);var f=cn(n/10/126/10);n=n-f*10*126*10;var p=cn(n/10/126);n=n-p*10*126;var m=cn(n/10),d=n-m*10;return[f+129,p+48,m+129,d+48]}}Ot.gb18030=function(e){return new zg(e)};Rt.gb18030=function(e){return new Dg(e)};function k4(e){var r=e.fatal,a=0;this.handler=function(i,t){if(t===zr&&a!==0)return a=0,Nr(r);if(t===zr&&a===0)return ta;if(a!==0){var n=a,o=null;a=0;var s=t<127?64:98;switch((jr(t,64,126)||jr(t,161,254))&&(o=(n-129)*157+(t-s)),o){case 1133:return[202,772];case 1135:return[202,780];case 1164:return[234,772];case 1166:return[234,780]}var c=o===null?null:Xo(o,Et("big5"));return c===null&&Qt(t)&&i.prepend(t),c===null?Nr(r):c}return Qt(t)?t:jr(t,129,254)?(a=t,null):Nr(r)}}function _4(e){var r=e.fatal;this.handler=function(a,i){if(i===zr)return ta;if(Xt(i))return i;var t=g4(i);if(t===null)return mi(i);var n=cn(t/157)+129;if(n<161)return mi(i);var o=t%157,s=o<63?64:98;return[n,o+s]}}Ot.Big5=function(e){return new _4(e)};Rt.Big5=function(e){return new k4(e)};function j4(e){var r=e.fatal,a=!1,i=0;this.handler=function(t,n){if(n===zr&&i!==0)return i=0,Nr(r);if(n===zr&&i===0)return ta;if(i===142&&jr(n,161,223))return i=0,65377-161+n;if(i===143&&jr(n,161,254))return a=!0,i=n,null;if(i!==0){var o=i;i=0;var s=null;return jr(o,161,254)&&jr(n,161,254)&&(s=Xo((o-161)*94+(n-161),Et(a?"jis0212":"jis0208"))),a=!1,jr(n,161,254)||t.prepend(n),s===null?Nr(r):s}return Qt(n)?n:n===142||n===143||jr(n,161,254)?(i=n,null):Nr(r)}}function E4(e){var r=e.fatal;this.handler=function(a,i){if(i===zr)return ta;if(Xt(i))return i;if(i===165)return 92;if(i===8254)return 126;if(jr(i,65377,65439))return[142,i-65377+161];i===8722&&(i=65293);var t=Jo(i,Et("jis0208"));if(t===null)return mi(i);var n=cn(t/94)+161,o=t%94+161;return[n,o]}}Ot["EUC-JP"]=function(e){return new E4(e)};Rt["EUC-JP"]=function(e){return new j4(e)};function S4(e){var r=e.fatal,a={ASCII:0,Roman:1,Katakana:2,LeadByte:3,TrailByte:4,EscapeStart:5,Escape:6},i=a.ASCII,t=a.ASCII,n=0,o=!1;this.handler=function(s,c){switch(i){default:case a.ASCII:return c===27?(i=a.EscapeStart,null):jr(c,0,127)&&c!==14&&c!==15&&c!==27?(o=!1,c):c===zr?ta:(o=!1,Nr(r));case a.Roman:return c===27?(i=a.EscapeStart,null):c===92?(o=!1,165):c===126?(o=!1,8254):jr(c,0,127)&&c!==14&&c!==15&&c!==27&&c!==92&&c!==126?(o=!1,c):c===zr?ta:(o=!1,Nr(r));case a.Katakana:return c===27?(i=a.EscapeStart,null):jr(c,33,95)?(o=!1,65377-33+c):c===zr?ta:(o=!1,Nr(r));case a.LeadByte:return c===27?(i=a.EscapeStart,null):jr(c,33,126)?(o=!1,n=c,i=a.TrailByte,null):c===zr?ta:(o=!1,Nr(r));case a.TrailByte:if(c===27)return i=a.EscapeStart,Nr(r);if(jr(c,33,126)){i=a.LeadByte;var f=(n-33)*94+c-33,p=Xo(f,Et("jis0208"));return p===null?Nr(r):p}return c===zr?(i=a.LeadByte,s.prepend(c),Nr(r)):(i=a.LeadByte,Nr(r));case a.EscapeStart:return c===36||c===40?(n=c,i=a.Escape,null):(s.prepend(c),o=!1,i=t,Nr(r));case a.Escape:var m=n;n=0;var d=null;if(m===40&&c===66&&(d=a.ASCII),m===40&&c===74&&(d=a.Roman),m===40&&c===73&&(d=a.Katakana),m===36&&(c===64||c===66)&&(d=a.LeadByte),d!==null){i=i=d;var v=o;return o=!0,v?Nr(r):null}return s.prepend([m,c]),o=!1,i=t,Nr(r)}}}function P4(e){var r=e.fatal,a={ASCII:0,Roman:1,jis0208:2},i=a.ASCII;this.handler=function(t,n){if(n===zr&&i!==a.ASCII)return t.prepend(n),i=a.ASCII,[27,40,66];if(n===zr&&i===a.ASCII)return ta;if((i===a.ASCII||i===a.Roman)&&(n===14||n===15||n===27))return mi(65533);if(i===a.ASCII&&Xt(n))return n;if(i===a.Roman&&(Xt(n)&&n!==92&&n!==126||n==165||n==8254)){if(Xt(n))return n;if(n===165)return 92;if(n===8254)return 126}if(Xt(n)&&i!==a.ASCII)return t.prepend(n),i=a.ASCII,[27,40,66];if((n===165||n===8254)&&i!==a.Roman)return t.prepend(n),i=a.Roman,[27,40,74];n===8722&&(n=65293);var o=Jo(n,Et("jis0208"));if(o===null)return mi(n);if(i!==a.jis0208)return t.prepend(n),i=a.jis0208,[27,36,66];var s=cn(o/94)+33,c=o%94+33;return[s,c]}}Ot["ISO-2022-JP"]=function(e){return new P4(e)};Rt["ISO-2022-JP"]=function(e){return new S4(e)};function A4(e){var r=e.fatal,a=0;this.handler=function(i,t){if(t===zr&&a!==0)return a=0,Nr(r);if(t===zr&&a===0)return ta;if(a!==0){var n=a,o=null;a=0;var s=t<127?64:65,c=n<160?129:193;if((jr(t,64,126)||jr(t,128,252))&&(o=(n-c)*188+t-s),jr(o,8836,10715))return 57344-8836+o;var f=o===null?null:Xo(o,Et("jis0208"));return f===null&&Qt(t)&&i.prepend(t),f===null?Nr(r):f}return Qt(t)||t===128?t:jr(t,161,223)?65377-161+t:jr(t,129,159)||jr(t,224,252)?(a=t,null):Nr(r)}}function T4(e){var r=e.fatal;this.handler=function(a,i){if(i===zr)return ta;if(Xt(i)||i===128)return i;if(i===165)return 92;if(i===8254)return 126;if(jr(i,65377,65439))return i-65377+161;i===8722&&(i=65293);var t=v4(i);if(t===null)return mi(i);var n=cn(t/188),o=n<31?129:193,s=t%188,c=s<63?64:65;return[n+o,s+c]}}Ot.Shift_JIS=function(e){return new T4(e)};Rt.Shift_JIS=function(e){return new A4(e)};function C4(e){var r=e.fatal,a=0;this.handler=function(i,t){if(t===zr&&a!==0)return a=0,Nr(r);if(t===zr&&a===0)return ta;if(a!==0){var n=a,o=null;a=0,jr(t,65,254)&&(o=(n-129)*190+(t-65));var s=o===null?null:Xo(o,Et("euc-kr"));return o===null&&Qt(t)&&i.prepend(t),s===null?Nr(r):s}return Qt(t)?t:jr(t,129,254)?(a=t,null):Nr(r)}}function q4(e){var r=e.fatal;this.handler=function(a,i){if(i===zr)return ta;if(Xt(i))return i;var t=Jo(i,Et("euc-kr"));if(t===null)return mi(i);var n=cn(t/190)+129,o=t%190+65;return[n,o]}}Ot["EUC-KR"]=function(e){return new q4(e)};Rt["EUC-KR"]=function(e){return new C4(e)};function Gc(e,r){var a=e>>8,i=e&255;return r?[a,i]:[i,a]}function Ng(e,r){var a=r.fatal,i=null,t=null;this.handler=function(n,o){if(o===zr&&(i!==null||t!==null))return Nr(a);if(o===zr&&i===null&&t===null)return ta;if(i===null)return i=o,null;var s;if(e?s=(i<<8)+o:s=(o<<8)+i,i=null,t!==null){var c=t;return t=null,jr(s,56320,57343)?65536+(c-55296)*1024+(s-56320):(n.prepend(Gc(s,e)),Nr(a))}return jr(s,55296,56319)?(t=s,null):jr(s,56320,57343)?Nr(a):s}}function Lg(e,r){var a=r.fatal;this.handler=function(i,t){if(t===zr)return ta;if(jr(t,0,65535))return Gc(t,e);var n=Gc((t-65536>>10)+55296,e),o=Gc((t-65536&1023)+56320,e);return n.concat(o)}}Ot["UTF-16BE"]=function(e){return new Lg(!0,e)};Rt["UTF-16BE"]=function(e){return new Ng(!0,e)};Ot["UTF-16LE"]=function(e){return new Lg(!1,e)};Rt["UTF-16LE"]=function(e){return new Ng(!1,e)};function F4(e){var r=e.fatal;this.handler=function(a,i){return i===zr?ta:Qt(i)?i:63360+i-128}}function I4(e){var r=e.fatal;this.handler=function(a,i){return i===zr?ta:Xt(i)?i:jr(i,63360,63487)?i-63360+128:mi(i)}}Ot["x-user-defined"]=function(e){return new I4(e)};Rt["x-user-defined"]=function(e){return new F4(e)};var O4="rejected",R4="fulfilled";function Mg(e){let r=e.map(a=>a.then(i=>({status:R4,value:i})).catch(i=>({status:O4,reason:i})));return Promise.all(r)}function Kc(e){return Buffer.from(e).toString("base64")}function Dp(e){return Buffer.from(e,"base64").toString("ascii")}var Jt=class{constructor(r){this.map={},r instanceof Jt?r.forEach((a,i)=>this.append(i,a)):Array.isArray(r)?r.forEach(a=>this.append(a[0],a[1])):r&&Object.getOwnPropertyNames(r).forEach(a=>this.append(a,r[a]))}append(r,a){r=pu(r),a=Ug(a);let i=this.map[r];this.map[r]=i?`${i}, ${a}`:a}delete(r){delete this.map[pu(r)]}get(r){return r=pu(r),this.has(r)?this.map[r]:null}has(r){return this.map.hasOwnProperty(pu(r))}set(r,a){this.map[pu(r)]=Ug(a)}forEach(r,a=null){for(let i in this.map)this.map.hasOwnProperty(i)&&(a?r.call(a,this.map[i],i,this):r(this.map[i],i,this))}keys(){let r=[];return this.forEach(function(a,i){r.push(i)}),zp(r)}values(){let r=[];return this.forEach(function(a){r.push(a)}),zp(r)}entries(){let r=[];return this.forEach(function(a,i){r.push([i,a])}),zp(r)}*[Symbol.iterator](){yield*this.entries()}};function pu(e){if(typeof e!="string"&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e)||e==="")throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function Ug(e){return typeof e!="string"&&(e=String(e)),e}function zp(e){let r={next(){let a=e.shift();return{done:a===void 0,value:a}}};return r[Symbol.iterator]=function(){return r},r}function Np(e,r){if(!e)throw new Error(`@loaders.gl/polyfills assertion ${r}`)}var Yc=Yt(require("zlib"));var B4=e=>e&&e instanceof ArrayBuffer,D4=e=>e&&e instanceof Buffer;function Hg(e){let r=e.indexOf(","),a,i;return e.slice(r-7,r)===";base64"?(a=Buffer.from(e.slice(r+1),"base64"),i=e.slice(5,r-7).trim()):(a=Buffer.from(decodeURIComponent(e.slice(r+1))),i=e.slice(5,r).trim()),i?i.startsWith(";")&&(i=`text/plain${i}`):i="text/plain;charset=US-ASCII",{arrayBuffer:Lp(a),mimeType:i}}function Lp(e){if(B4(e))return e;if(D4(e))return new Uint8Array(e).buffer;if(ArrayBuffer.isView(e))return e.buffer;if(typeof e=="string"){let r=e;return new TextEncoder().encode(r).buffer}if(e&&typeof e=="object"&&e._toArrayBuffer)return e._toArrayBuffer();throw new Error(`toArrayBuffer(${JSON.stringify(e,null,2).slice(10)})`)}function Vg(e,r){switch(r.get("content-encoding")){case"br":return e.pipe(Yc.default.createBrotliDecompress());case"gzip":return e.pipe(Yc.default.createGunzip());case"deflate":return e.pipe(Yc.default.createDeflate());default:return e}}async function $g(e){let r=[];return await new Promise((a,i)=>{e.on("error",t=>i(t)),e.on("readable",()=>e.read()),e.on("data",t=>{typeof t=="string"&&i(new Error("Read stream not binary")),r.push(Lp(t))}),e.on("end",()=>{let t=z4(r);a(t)})})}function z4(e){let r=e.map(n=>n instanceof ArrayBuffer?new Uint8Array(n):n),a=r.reduce((n,o)=>n+o.byteLength,0),i=new Uint8Array(a),t=0;for(let n of r)i.set(n,t),t+=n.byteLength;return i.buffer}var Up=Yt(require("stream")),N4=e=>typeof e=="boolean",Wg=e=>typeof e=="function",L4=e=>e!==null&&typeof e=="object",Mp=e=>L4(e)&&Wg(e.read)&&Wg(e.pipe)&&N4(e.readable),vi=class{constructor(r,a){this.bodyUsed=!1;let{headers:i,status:t=200,statusText:n="OK",url:o}=a||{};this.url=o,this.ok=t===200,this.status=t,this.statusText=n,this.headers=new Jt((a==null?void 0:a.headers)||{}),Mp(r)?this._body=Vg(r,i):typeof r=="string"?this._body=Up.Readable.from([new TextEncoder().encode(r)]):this._body=Up.Readable.from([r||new ArrayBuffer(0)])}get body(){return Np(!this.bodyUsed),Np(Mp(this._body)),this.bodyUsed=!0,this._body}async arrayBuffer(){return Mp(this._body)?await $g(this._body):this._body||new ArrayBuffer(0)}async text(){let r=await this.arrayBuffer();return new TextDecoder().decode(r)}async json(){let r=await this.text();return JSON.parse(r)}async blob(){if(typeof Blob=="undefined")throw new Error("Blob polyfill not installed");return new Blob([await this.arrayBuffer()])}};var Gg=Yt(require("http")),Kg=Yt(require("https"));var Hp=Yt(require("fs"));async function Vp(e,r){let a=e.split("?")[0];try{let i=await new Promise((s,c)=>{let f=Hp.default.createReadStream(a,{encoding:null});f.once("readable",()=>s(f)),f.on("error",p=>c(p))}),t=200,n="OK",o=M4(a);return new vi(i,{headers:o,status:t,statusText:n,url:e})}catch(i){let t=400,n=i.message,o={};return new vi(i.message,{headers:o,status:t,statusText:n,url:e})}}function M4(e){let r={};if(!r["content-length"]){let a=Hp.default.statSync(e);r["content-length"]=a.size}return e.endsWith(".gz")&&(e=e.slice(0,-3),r["content-encoding"]="gzip"),new Jt(r)}var $p=e=>e.startsWith("data:"),U4=e=>e.startsWith("http:")||e.startsWith("https:");async function hu(e,r){try{if(!U4(e)&&!$p(e))return await Vp(e,r);if($p(e)){let{arrayBuffer:f,mimeType:p}=Hg(e);return new vi(f,{headers:{"content-type":p},url:e})}let a={},i=e;e.endsWith(".gz")&&(e=e.slice(0,-3),a["content-encoding"]="gzip");let t=await H4(i,r),n=G4(e,t,a),{status:o,statusText:s}=W4(t),c=!r||r.followRedirect||r.followRedirect===void 0;if(o>=300&&o<400&&n.has("location")&&c){let f=V4(e,n.get("location"));return await hu(f,r)}return new vi(t,{headers:n,status:o,statusText:s,url:e})}catch(a){return new vi(null,{status:400,statusText:String(a),url:e})}}async function H4(e,r){return await new Promise((a,i)=>{let t=$4(e,r),n=e.startsWith("https:")?Kg.default.request(t,o=>a(o)):Gg.default.request(t,o=>a(o));n.on("error",o=>i(o)),n.end()})}function V4(e,r){if(r.startsWith("http"))return r;let a=new URL(e);return a.pathname=r,a.href}function $4(e,r){let a=(r==null?void 0:r.headers)||{},i={};for(let n of Object.keys(a))i[n.toLowerCase()]=a[n];i["accept-encoding"]=i["accept-encoding"]||"gzip,br,deflate";let t=new URL(e);return sp(Kt(Kt({hostname:t.hostname,path:t.pathname,method:"GET"},r),r==null?void 0:r.fetch),{headers:i,port:t.port})}function W4(e){return e.statusCode?{status:e.statusCode,statusText:e.statusMessage||"NA"}:{status:200,statusText:"OK"}}function G4(e,r,a={}){let i={};if(r&&r.headers){let t=r.headers;for(let n in t){let o=t[n];i[n.toLowerCase()]=String(o)}}if(!i["content-length"]){let t=K4(e);Number.isFinite(t)&&(i["content-length"]=t)}return Object.assign(i,a),new Jt(i)}function K4(e){return $p(e)?e.length-"data:".length:null}var V1=Yt(U1()),$1=Yt(wu());function H1(e){return Buffer.isBuffer(e)?new Uint8Array(e).buffer:e}function uA(e,r){let a=r.type?r.type.replace("image/",""):"jpeg",i=(0,$1.default)(e.data,[e.width,e.height,4],[4,e.width*4,1],0);return(0,V1.default)(i,a,r)}function Hh(e,r){let a=uA(e,r);return new Promise(i=>{let t=[];a.on("data",n=>t.push(n)),a.on("end",()=>{let n=Buffer.concat(t);i(H1(n))})})}var j8=Yt(_8());async function Gv(e,r){if(!r)throw new Error("MIMEType is required to parse image under Node.js");let a=e instanceof Buffer?e:Buffer.from(e);return await xN(a,r)}function xN(e,r){return new Promise(a=>(0,j8.default)(e,r,(i,t)=>{if(i)throw i;let n=[...t.shape],o=t.shape.length===4?t.shape.shift():1,s=t.data instanceof Buffer?new Uint8Array(t.data):t.data;a({shape:n,data:s,width:t.shape[0],height:t.shape[1],components:t.shape[2],layers:o?[o]:[]})}))}var P8=Yt(S8());delete global.ReadableStream;var gc=class extends P8.ReadableStream{};var Kv=class{constructor(r){this.isWorking=!1;this.isCancelled=!1;this.chunks=r}start(r){this.work(r)}async work(r){let{chunks:a}=this;for(this.isWorking=!0;!this.isCancelled&&(r.desiredSize||0)>0;){let i;try{i=a.next()}catch(t){r.error(t);break}i&&(!i.done&&!this.isCancelled?r.enqueue(i.value):r.close())}this.isWorking=!1}pull(r){this.isWorking||this.work(r)}cancel(){this.isCancelled=!0}};var Yv=class extends gc{constructor(r){super(new Kv(r.values()),{type:"bytes"});this._chunks=r}async*[Symbol.asyncIterator](r){let a=this.getReader();yield*this._chunks,a.releaseLock()}};var oo=class{constructor(r=[],a={}){this.parts=[],this.size=0;for(let i of r)if(typeof i=="string"){let t=new TextEncoder().encode(i);this.parts.push(t),this.size+=t.byteLength}else if(i instanceof oo)this.size+=i.size,this.parts.push(...i.parts);else if(i instanceof ArrayBuffer)this.parts.push(new Uint8Array(i)),this.size+=i.byteLength;else if(i instanceof Uint8Array)this.parts.push(i),this.size+=i.byteLength;else if(ArrayBuffer.isView(i)){let{buffer:t,byteOffset:n,byteLength:o}=i;this.parts.push(new Uint8Array(t,n,o)),this.size+=o}else{let t=new TextEncoder().encode(String(i));this.parts.push(t),this.size+=t.byteLength}this.type=wN(a.type)}slice(r=0,a=this.size,i=""){let{size:t,parts:n}=this,o=r<0?Math.max(t+r,0):Math.min(r,t),s=a<0?Math.max(t+a,0):Math.min(a,t),c=Math.max(s-o,0),f=new oo([],{type:i});if(c===0)return f;let p=0,m=[];for(let d of n){let{byteLength:v}=d;if(o>0&&v<=o)o-=v,s-=v;else{let y=d.subarray(o,Math.min(v,s));if(m.push(y),p+=y.byteLength,o=0,p>=c)break}}return f.parts=m,f.size=p,f}async arrayBuffer(){return this._toArrayBuffer()}async text(){let r=new TextDecoder,a="";for(let i of this.parts)a+=r.decode(i);return a}stream(){return new Yv(this.parts)}toString(){return"[object Blob]"}get[Symbol.toStringTag](){return"Blob"}_toArrayBuffer(){let r=new ArrayBuffer(this.size),a=new Uint8Array(r),i=0;for(let t of this.parts)a.set(t,i),i+=t.byteLength;return r}};function wN(e=""){let r=String(e).toLowerCase();return/[^\u0020-\u007E]/.test(r)?"":r}var Qv=class extends oo{constructor(r,a,i={}){super(r,i);this.name="";this.webkitRelativePath="";this.name=String(a).replace(/\//g,":"),this.lastModified=(i==null?void 0:i.lastModified)||Date.now()}get[Symbol.toStringTag](){return"File"}};var _N=!di||!("TextEncoder"in Pa);_N&&(Pa.TextEncoder=fu);var jN=!di||!("TextDecoder"in Pa);jN&&(Pa.TextDecoder=vo);!di&&!("atob"in Pa)&&Kc&&(Pa.atob=Kc);!di&&!("btoa"in Pa)&&Dp&&(Pa.btoa=Dp);!di&&!("Headers"in Pa)&&Jt&&(Pa.Headers=Jt);!di&&!("Response"in Pa)&&vi&&(Pa.Response=vi);!di&&!("fetch"in Pa)&&hu&&(Pa.fetch=hu);!di&&!("DOMParser"in Pa)&&Xv.DOMParser&&(Pa.DOMParser=Xv.DOMParser);!di&&!("_encodeImageNode"in Pa)&&Hh&&(Pa._encodeImageNode=Hh);!di&&!("_parseImageNode"in Pa)&&Gv&&(Pa._parseImageNode=Gv);"allSettled"in Promise||(Promise.allSettled=Mg);var A8={POSITION:"POSITION",NORMAL:"NORMAL",COLOR_0:"COLOR",TEXCOORD_0:"TEX_COORD"},EN=()=>{},Wf=class{constructor(r){this.draco=r,this.dracoEncoder=new this.draco.Encoder,this.dracoMeshBuilder=new this.draco.MeshBuilder,this.dracoMetadataBuilder=new this.draco.MetadataBuilder}destroy(){this.destroyEncodedObject(this.dracoMeshBuilder),this.destroyEncodedObject(this.dracoEncoder),this.destroyEncodedObject(this.dracoMetadataBuilder),this.dracoMeshBuilder=null,this.dracoEncoder=null,this.draco=null}destroyEncodedObject(r){r&&this.draco.destroy(r)}encodeSync(r,a={}){return this.log=EN,this._setOptions(a),a.pointcloud?this._encodePointCloud(r,a):this._encodeMesh(r,a)}_getAttributesFromMesh(r){let a=Kt(Kt({},r),r.attributes);return r.indices&&(a.indices=r.indices),a}_encodePointCloud(r,a){let i=new this.draco.PointCloud;a.metadata&&this._addGeometryMetadata(i,a.metadata);let t=this._getAttributesFromMesh(r);this._createDracoPointCloud(i,t,a);let n=new this.draco.DracoInt8Array;try{let o=this.dracoEncoder.EncodePointCloudToDracoBuffer(i,!1,n);if(!(o>0))throw new Error("Draco encoding failed.");return this.log(`DRACO encoded ${i.num_points()} points
|
|
96
96
|
with ${i.num_attributes()} attributes into ${o} bytes`),T8(n)}finally{this.destroyEncodedObject(n),this.destroyEncodedObject(i)}}_encodeMesh(r,a){let i=new this.draco.Mesh;a.metadata&&this._addGeometryMetadata(i,a.metadata);let t=this._getAttributesFromMesh(r);this._createDracoMesh(i,t,a);let n=new this.draco.DracoInt8Array;try{let o=this.dracoEncoder.EncodeMeshToDracoBuffer(i,n);if(o<=0)throw new Error("Draco encoding failed.");return this.log(`DRACO encoded ${i.num_points()} points
|
|
97
|
-
with ${i.num_attributes()} attributes into ${o} bytes`),T8(n)}finally{this.destroyEncodedObject(n),this.destroyEncodedObject(i)}}_setOptions(r){if("speed"in r&&this.dracoEncoder.SetSpeedOptions(...r.speed),"method"in r){let a=this.draco[r.method||"MESH_SEQUENTIAL_ENCODING"];this.dracoEncoder.SetEncodingMethod(a)}if("quantization"in r)for(let a in r.quantization){let i=r.quantization[a],t=this.draco[a];this.dracoEncoder.SetAttributeQuantization(t,i)}}_createDracoMesh(r,a,i){let t=i.attributesMetadata||{};try{let n=this._getPositionAttribute(a);if(!n)throw new Error("positions");let o=n.length/3;for(let s in a){let c=a[s];s=A8[s]||s;let f=this._addAttributeToMesh(r,s,c,o);f!==-1&&this._addAttributeMetadata(r,f,Kt({name:s},t[s]||{}))}}catch(n){throw this.destroyEncodedObject(r),n}return r}_createDracoPointCloud(r,a,i){let t=i.attributesMetadata||{};try{let n=this._getPositionAttribute(a);if(!n)throw new Error("positions");let o=n.length/3;for(let s in a){let c=a[s];s=A8[s]||s;let f=this._addAttributeToMesh(r,s,c,o);f!==-1&&this._addAttributeMetadata(r,f,Kt({name:s},t[s]||{}))}}catch(n){throw this.destroyEncodedObject(r),n}return r}_addAttributeToMesh(r,a,i,t){if(!ArrayBuffer.isView(i))return-1;let n=this._getDracoAttributeType(a),o=i.length/t;if(n==="indices"){let f=i.length/3;return this.log(`Adding attribute ${a}, size ${f}`),this.dracoMeshBuilder.AddFacesToMesh(r,f,i),-1}this.log(`Adding attribute ${a}, size ${o}`);let s=this.dracoMeshBuilder,{buffer:c}=i;switch(i.constructor){case Int8Array:return s.AddInt8Attribute(r,n,t,o,new Int8Array(c));case Int16Array:return s.AddInt16Attribute(r,n,t,o,new Int16Array(c));case Int32Array:return s.AddInt32Attribute(r,n,t,o,new Int32Array(c));case Uint8Array:case Uint8ClampedArray:return s.AddUInt8Attribute(r,n,t,o,new Uint8Array(c));case Uint16Array:return s.AddUInt16Attribute(r,n,t,o,new Uint16Array(c));case Uint32Array:return s.AddUInt32Attribute(r,n,t,o,new Uint32Array(c));case Float32Array:default:return s.AddFloatAttribute(r,n,t,o,new Float32Array(c))}}_getDracoAttributeType(r){switch(r.toLowerCase()){case"indices":return"indices";case"position":case"positions":case"vertices":return this.draco.POSITION;case"normal":case"normals":return this.draco.NORMAL;case"color":case"colors":return this.draco.COLOR;case"texcoord":case"texcoords":return this.draco.TEX_COORD;default:return this.draco.GENERIC}}_getPositionAttribute(r){for(let a in r){let i=r[a];if(this._getDracoAttributeType(a)===this.draco.POSITION)return i}return null}_addGeometryMetadata(r,a){let i=new this.draco.Metadata;this._populateDracoMetadata(i,a),this.dracoMeshBuilder.AddMetadata(r,i)}_addAttributeMetadata(r,a,i){let t=new this.draco.Metadata;this._populateDracoMetadata(t,i),this.dracoMeshBuilder.SetMetadataForAttribute(r,a,t)}_populateDracoMetadata(r,a){for(let[i,t]of SN(a))switch(typeof t){case"number":Math.trunc(t)===t?this.dracoMetadataBuilder.AddIntEntry(r,i,t):this.dracoMetadataBuilder.AddDoubleEntry(r,i,t);break;case"object":t instanceof Int32Array&&this.dracoMetadataBuilder.AddIntEntryArray(r,i,t,t.length);break;case"string":default:this.dracoMetadataBuilder.AddStringEntry(r,i,t)}}};function T8(e){let r=e.size(),a=new ArrayBuffer(r),i=new Int8Array(a);for(let t=0;t<r;++t)i[t]=e.GetValue(t);return a}function SN(e){return e.entries&&!e.hasOwnProperty("entries")?e.entries():Object.entries(e)}var PN="1.5.5",AN="1.4.1",Jv=`https://www.gstatic.com/draco/versioned/decoders/${PN}`,cG=`${Jv}/draco_decoder.js`,lG=`${Jv}/draco_wasm_wrapper.js`,fG=`${Jv}/draco_decoder.wasm`,TN=`https://raw.githubusercontent.com/google/draco/${AN}/javascript/draco_encoder.js`;var bc;async function C8(e){let r=e.modules||{};return r.draco3d?bc=bc||r.draco3d.createEncoderModule({}).then(a=>({draco:a})):bc=bc||CN(e),await bc}async function CN(e){let r=await mp(TN,"draco",e);return r=r||globalThis.DracoEncoderModule,new Promise(a=>{r({onModuleLoaded:i=>a({draco:i})})})}var q8="3.3.
|
|
97
|
+
with ${i.num_attributes()} attributes into ${o} bytes`),T8(n)}finally{this.destroyEncodedObject(n),this.destroyEncodedObject(i)}}_setOptions(r){if("speed"in r&&this.dracoEncoder.SetSpeedOptions(...r.speed),"method"in r){let a=this.draco[r.method||"MESH_SEQUENTIAL_ENCODING"];this.dracoEncoder.SetEncodingMethod(a)}if("quantization"in r)for(let a in r.quantization){let i=r.quantization[a],t=this.draco[a];this.dracoEncoder.SetAttributeQuantization(t,i)}}_createDracoMesh(r,a,i){let t=i.attributesMetadata||{};try{let n=this._getPositionAttribute(a);if(!n)throw new Error("positions");let o=n.length/3;for(let s in a){let c=a[s];s=A8[s]||s;let f=this._addAttributeToMesh(r,s,c,o);f!==-1&&this._addAttributeMetadata(r,f,Kt({name:s},t[s]||{}))}}catch(n){throw this.destroyEncodedObject(r),n}return r}_createDracoPointCloud(r,a,i){let t=i.attributesMetadata||{};try{let n=this._getPositionAttribute(a);if(!n)throw new Error("positions");let o=n.length/3;for(let s in a){let c=a[s];s=A8[s]||s;let f=this._addAttributeToMesh(r,s,c,o);f!==-1&&this._addAttributeMetadata(r,f,Kt({name:s},t[s]||{}))}}catch(n){throw this.destroyEncodedObject(r),n}return r}_addAttributeToMesh(r,a,i,t){if(!ArrayBuffer.isView(i))return-1;let n=this._getDracoAttributeType(a),o=i.length/t;if(n==="indices"){let f=i.length/3;return this.log(`Adding attribute ${a}, size ${f}`),this.dracoMeshBuilder.AddFacesToMesh(r,f,i),-1}this.log(`Adding attribute ${a}, size ${o}`);let s=this.dracoMeshBuilder,{buffer:c}=i;switch(i.constructor){case Int8Array:return s.AddInt8Attribute(r,n,t,o,new Int8Array(c));case Int16Array:return s.AddInt16Attribute(r,n,t,o,new Int16Array(c));case Int32Array:return s.AddInt32Attribute(r,n,t,o,new Int32Array(c));case Uint8Array:case Uint8ClampedArray:return s.AddUInt8Attribute(r,n,t,o,new Uint8Array(c));case Uint16Array:return s.AddUInt16Attribute(r,n,t,o,new Uint16Array(c));case Uint32Array:return s.AddUInt32Attribute(r,n,t,o,new Uint32Array(c));case Float32Array:default:return s.AddFloatAttribute(r,n,t,o,new Float32Array(c))}}_getDracoAttributeType(r){switch(r.toLowerCase()){case"indices":return"indices";case"position":case"positions":case"vertices":return this.draco.POSITION;case"normal":case"normals":return this.draco.NORMAL;case"color":case"colors":return this.draco.COLOR;case"texcoord":case"texcoords":return this.draco.TEX_COORD;default:return this.draco.GENERIC}}_getPositionAttribute(r){for(let a in r){let i=r[a];if(this._getDracoAttributeType(a)===this.draco.POSITION)return i}return null}_addGeometryMetadata(r,a){let i=new this.draco.Metadata;this._populateDracoMetadata(i,a),this.dracoMeshBuilder.AddMetadata(r,i)}_addAttributeMetadata(r,a,i){let t=new this.draco.Metadata;this._populateDracoMetadata(t,i),this.dracoMeshBuilder.SetMetadataForAttribute(r,a,t)}_populateDracoMetadata(r,a){for(let[i,t]of SN(a))switch(typeof t){case"number":Math.trunc(t)===t?this.dracoMetadataBuilder.AddIntEntry(r,i,t):this.dracoMetadataBuilder.AddDoubleEntry(r,i,t);break;case"object":t instanceof Int32Array&&this.dracoMetadataBuilder.AddIntEntryArray(r,i,t,t.length);break;case"string":default:this.dracoMetadataBuilder.AddStringEntry(r,i,t)}}};function T8(e){let r=e.size(),a=new ArrayBuffer(r),i=new Int8Array(a);for(let t=0;t<r;++t)i[t]=e.GetValue(t);return a}function SN(e){return e.entries&&!e.hasOwnProperty("entries")?e.entries():Object.entries(e)}var PN="1.5.5",AN="1.4.1",Jv=`https://www.gstatic.com/draco/versioned/decoders/${PN}`,cG=`${Jv}/draco_decoder.js`,lG=`${Jv}/draco_wasm_wrapper.js`,fG=`${Jv}/draco_decoder.wasm`,TN=`https://raw.githubusercontent.com/google/draco/${AN}/javascript/draco_encoder.js`;var bc;async function C8(e){let r=e.modules||{};return r.draco3d?bc=bc||r.draco3d.createEncoderModule({}).then(a=>({draco:a})):bc=bc||CN(e),await bc}async function CN(e){let r=await mp(TN,"draco",e);return r=r||globalThis.DracoEncoderModule,new Promise(a=>{r({onModuleLoaded:i=>a({draco:i})})})}var q8="3.3.4";var qN={pointcloud:!1,attributeNameEntry:"name"},Zv={name:"DRACO",id:"draco",module:"draco",version:q8,extensions:["drc"],encode:FN,options:{draco:qN}};async function FN(e,r={}){let{draco:a}=await C8(r),i=new Wf(a);try{return i.encodeSync(e,r.draco)}finally{i.destroy()}}(()=>{!qn.inWorkerThread()||(qn.onmessage=async(e,r)=>{switch(e){case"process":try{let{input:a,options:i}=r,t=await Zv.encode(a,i);qn.postMessage("done",{result:t})}catch(a){let i=a instanceof Error?a.message:"";qn.postMessage("error",{error:i})}break;default:}})})();
|
|
98
98
|
/*!
|
|
99
99
|
* Copyright 2010 LearnBoost <dev@learnboost.com>
|
|
100
100
|
*
|