UNPKG

electron-devtools-vendor

Version:

<div align="center"> <h2>electron-devtools-vendor</h2> <img alt="MIT" src="https://img.shields.io/github/license/BlackHole1/electron-devtools-vendor?color=9cf&style=flat-square"> <img alt="GitHub repo size" src="https://img.shields.io/github/r

1 lines 151 kB
"use strict";(()=>{var Qp=Object.create;var dt=Object.defineProperty;var Zp=Object.getOwnPropertyDescriptor;var eh=Object.getOwnPropertyNames;var th=Object.getPrototypeOf,rh=Object.prototype.hasOwnProperty;var M=(e,t)=>()=>(e&&(t=e(e=0)),t);var u=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),nh=(e,t)=>{for(var r in t)dt(e,r,{get:t[r],enumerable:!0})},Un=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of eh(t))!rh.call(e,i)&&i!==r&&dt(e,i,{get:()=>t[i],enumerable:!(n=Zp(t,i))||n.enumerable});return e};var X=(e,t,r)=>(r=e!=null?Qp(th(e)):{},Un(t||!e||!e.__esModule?dt(r,"default",{value:e,enumerable:!0}):r,e)),ih=e=>Un(dt({},"__esModule",{value:!0}),e);var sr=u((Sw,V)=>{function or(e){"@babel/helpers - typeof";return V.exports=or=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},V.exports.__esModule=!0,V.exports.default=V.exports,or(e)}V.exports=or,V.exports.__esModule=!0,V.exports.default=V.exports});var Gn=u((Aw,Re)=>{var jn=sr().default;function oh(e,t){if(jn(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(jn(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}Re.exports=oh,Re.exports.__esModule=!0,Re.exports.default=Re.exports});var Hn=u((bw,qe)=>{var sh=sr().default,ah=Gn();function uh(e){var t=ah(e,"string");return sh(t)==="symbol"?t:String(t)}qe.exports=uh,qe.exports.__esModule=!0,qe.exports.default=qe.exports});var $n=u((xw,Me)=>{var ch=Hn();function lh(e,t,r){return t=ch(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Me.exports=lh,Me.exports.__esModule=!0,Me.exports.default=Me.exports});var Wn=u((Tw,Ue)=>{var fh=$n();function Kn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ph(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Kn(Object(r),!0).forEach(function(n){fh(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Kn(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}Ue.exports=ph,Ue.exports.__esModule=!0,Ue.exports.default=Ue.exports});var cr=u(J=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});var hh=Wn();function dh(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var Vn=dh(hh);function k(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Jn=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),ar=function(){return Math.random().toString(36).substring(7).split("").join(".")},Fe={INIT:"@@redux/INIT"+ar(),REPLACE:"@@redux/REPLACE"+ar(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ar()}};function mh(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function ur(e,t,r){var n;if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(k(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(k(1));return r(ur)(e,t)}if(typeof e!="function")throw new Error(k(2));var i=e,o=t,s=[],a=s,c=!1;function f(){a===s&&(a=s.slice())}function d(){if(c)throw new Error(k(3));return o}function h(E){if(typeof E!="function")throw new Error(k(4));if(c)throw new Error(k(5));var A=!0;return f(),a.push(E),function(){if(A){if(c)throw new Error(k(6));A=!1,f();var x=a.indexOf(E);a.splice(x,1),s=null}}}function y(E){if(!mh(E))throw new Error(k(7));if(typeof E.type>"u")throw new Error(k(8));if(c)throw new Error(k(9));try{c=!0,o=i(o,E)}finally{c=!1}for(var A=s=a,S=0;S<A.length;S++){var x=A[S];x()}return E}function g(E){if(typeof E!="function")throw new Error(k(10));i=E,y({type:Fe.REPLACE})}function m(){var E,A=h;return E={subscribe:function(x){if(typeof x!="object"||x===null)throw new Error(k(11));function O(){x.next&&x.next(d())}O();var D=A(O);return{unsubscribe:D}}},E[Jn]=function(){return this},E}return y({type:Fe.INIT}),n={dispatch:y,subscribe:h,getState:d,replaceReducer:g},n[Jn]=m,n}var yh=ur;function gh(e){Object.keys(e).forEach(function(t){var r=e[t],n=r(void 0,{type:Fe.INIT});if(typeof n>"u")throw new Error(k(12));if(typeof r(void 0,{type:Fe.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(k(13))})}function Eh(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++){var i=t[n];typeof e[i]=="function"&&(r[i]=e[i])}var o=Object.keys(r),s,a;try{gh(r)}catch(c){a=c}return function(f,d){if(f===void 0&&(f={}),a)throw a;if(0)var h;for(var y=!1,g={},m=0;m<o.length;m++){var E=o[m],A=r[E],S=f[E],x=A(S,d);if(typeof x>"u"){var O=d&&d.type;throw new Error(k(14))}g[E]=x,y=y||x!==S}return y=y||o.length!==Object.keys(f).length,y?g:f}}function Yn(e,t){return function(){return t(e.apply(this,arguments))}}function Sh(e,t){if(typeof e=="function")return Yn(e,t);if(typeof e!="object"||e===null)throw new Error(k(16));var r={};for(var n in e){var i=e[n];typeof i=="function"&&(r[n]=Yn(i,t))}return r}function zn(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.length===0?function(n){return n}:t.length===1?t[0]:t.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function Ah(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){return function(){var i=n.apply(void 0,arguments),o=function(){throw new Error(k(15))},s={getState:i.getState,dispatch:function(){return o.apply(void 0,arguments)}},a=t.map(function(c){return c(s)});return o=zn.apply(void 0,a)(i.dispatch),Vn.default(Vn.default({},i),{},{dispatch:o})}}}J.__DO_NOT_USE__ActionTypes=Fe;J.applyMiddleware=Ah;J.bindActionCreators=Sh;J.combineReducers=Eh;J.compose=zn;J.createStore=ur;J.legacy_createStore=yh});var mt=u((_w,Xn)=>{var lr=class{async next(t){let r=this.createConsumer(t),n=await r.next();return r.return(),n}async once(t){let r=await this.next(t);return r.done&&await new Promise(()=>{}),r.value}createConsumer(){throw new TypeError("Method must be overriden by subclass")}[Symbol.asyncIterator](){return this.createConsumer()}};Xn.exports=lr});var Zn=u((ww,Qn)=>{var fr=class{constructor(t,r,n,i){this.id=r,this._backpressure=0,this.stream=t,this.currentNode=n,this.timeout=i,this.isAlive=!0,this.stream.setConsumer(this.id,this)}getStats(){let t={id:this.id,backpressure:this._backpressure};return this.timeout!=null&&(t.timeout=this.timeout),t}_resetBackpressure(){this._backpressure=0}applyBackpressure(t){this._backpressure++}releaseBackpressure(t){this._backpressure--}getBackpressure(){return this._backpressure}write(t){this._timeoutId!==void 0&&(clearTimeout(this._timeoutId),delete this._timeoutId),this.applyBackpressure(t),this._resolve&&(this._resolve(),delete this._resolve)}kill(t){this._timeoutId!==void 0&&(clearTimeout(this._timeoutId),delete this._timeoutId),this._killPacket={value:t,done:!0},this._destroy(),this._resolve&&(this._resolve(),delete this._resolve)}_destroy(){this.isAlive=!1,this._resetBackpressure(),this.stream.removeConsumer(this.id)}async _waitForNextItem(t){return new Promise((r,n)=>{this._resolve=r;let i;if(t!==void 0){let o=new Error("Stream consumer iteration timed out");(async()=>{let s=bh(t);i=s.timeoutId,await s.promise,o.name="TimeoutError",delete this._resolve,n(o)})()}this._timeoutId=i})}async next(){for(this.stream.setConsumer(this.id,this);;){if(!this.currentNode.next)try{await this._waitForNextItem(this.timeout)}catch(t){throw this._destroy(),t}if(this._killPacket){this._destroy();let t=this._killPacket;return delete this._killPacket,t}if(this.currentNode=this.currentNode.next,this.releaseBackpressure(this.currentNode.data),!(this.currentNode.consumerId&&this.currentNode.consumerId!==this.id))return this.currentNode.data.done&&this._destroy(),this.currentNode.data}}return(){return delete this.currentNode,this._destroy(),{}}[Symbol.asyncIterator](){return this}};function bh(e){let t,r=new Promise(n=>{t=setTimeout(n,e)});return{timeoutId:t,promise:r}}Qn.exports=fr});var ti=u((Cw,ei)=>{var xh=mt(),Th=Zn(),pr=class extends xh{constructor(){super(),this.nextConsumerId=1,this._consumers=new Map,this._tailNode={next:null,data:{value:void 0,done:!1}}}_write(t,r,n){let i={data:{value:t,done:r},next:null};n&&(i.consumerId=n),this._tailNode.next=i,this._tailNode=i;for(let o of this._consumers.values())o.write(i.data)}write(t){this._write(t,!1)}close(t){this._write(t,!0)}writeToConsumer(t,r){this._write(r,!1,t)}closeConsumer(t,r){this._write(r,!0,t)}kill(t){for(let r of this._consumers.keys())this.killConsumer(r,t)}killConsumer(t,r){let n=this._consumers.get(t);n&&n.kill(r)}getBackpressure(){let t=0;for(let r of this._consumers.values()){let n=r.getBackpressure();n>t&&(t=n)}return t}getConsumerBackpressure(t){let r=this._consumers.get(t);return r?r.getBackpressure():0}hasConsumer(t){return this._consumers.has(t)}setConsumer(t,r){this._consumers.set(t,r),r.currentNode||(r.currentNode=this._tailNode)}removeConsumer(t){return this._consumers.delete(t)}getConsumerStats(t){let r=this._consumers.get(t);if(r)return r.getStats()}getConsumerStatsList(){let t=[];for(let r of this._consumers.values())t.push(r.getStats());return t}createConsumer(t){return new Th(this,this.nextConsumerId++,this._tailNode,t)}getConsumerList(){return[...this._consumers.values()]}getConsumerCount(){return this._consumers.size}};ei.exports=pr});var ni=u((Iw,ri)=>{var vh=mt(),hr=class extends vh{constructor(t,r){super(),this.name=r,this._streamDemux=t}createConsumer(t){return this._streamDemux.createConsumer(this.name,t)}};ri.exports=hr});var mr=u((Ow,ii)=>{var _h=ti(),wh=ni(),dr=class{constructor(){this._mainStream=new _h}write(t,r){this._mainStream.write({stream:t,data:{value:r,done:!1}})}close(t,r){this._mainStream.write({stream:t,data:{value:r,done:!0}})}closeAll(t){this._mainStream.close(t)}writeToConsumer(t,r){this._mainStream.writeToConsumer(t,{consumerId:t,data:{value:r,done:!1}})}closeConsumer(t,r){this._mainStream.closeConsumer(t,{consumerId:t,data:{value:r,done:!0}})}getConsumerStats(t){return this._mainStream.getConsumerStats(t)}getConsumerStatsList(t){return this._mainStream.getConsumerStatsList().filter(n=>n.stream===t)}getConsumerStatsListAll(){return this._mainStream.getConsumerStatsList()}kill(t,r){let n=this.getConsumerStatsList(t),i=n.length;for(let o=0;o<i;o++)this.killConsumer(n[o].id,r)}killAll(t){this._mainStream.kill(t)}killConsumer(t,r){this._mainStream.killConsumer(t,r)}getBackpressure(t){let r=this.getConsumerStatsList(t),n=r.length,i=0;for(let o=0;o<n;o++){let s=r[o];s.backpressure>i&&(i=s.backpressure)}return i}getBackpressureAll(){return this._mainStream.getBackpressure()}getConsumerBackpressure(t){return this._mainStream.getConsumerBackpressure(t)}hasConsumer(t,r){let n=this._mainStream.getConsumerStats(r);return!!n&&n.stream===t}hasConsumerAll(t){return this._mainStream.hasConsumer(t)}getConsumerCount(t){return this.getConsumerStatsList(t).length}getConsumerCountAll(){return this.getConsumerStatsListAll().length}createConsumer(t,r){let n=this._mainStream.createConsumer(r),i=n.next;n.next=async function(){for(;;){let c=await i.apply(this,arguments);if(c.value&&(c.value.stream===t||c.value.consumerId===this.id))return c.value.data.done&&this.return(),c.value.data;if(c.done)return c}};let o=n.getStats;n.getStats=function(){let c=o.apply(this,arguments);return c.stream=t,c};let s=n.applyBackpressure;n.applyBackpressure=function(c){if(c.value&&(c.value.stream===t||c.value.consumerId===this.id)){s.apply(this,arguments);return}c.done&&s.apply(this,arguments)};let a=n.releaseBackpressure;return n.releaseBackpressure=function(c){if(c.value&&(c.value.stream===t||c.value.consumerId===this.id)){a.apply(this,arguments);return}c.done&&a.apply(this,arguments)},n}stream(t){return new wh(this,t)}};ii.exports=dr});var si=u((kw,oi)=>{var Ch=mr();function w(){this._listenerDemux=new Ch}w.prototype.emit=function(e,t){this._listenerDemux.write(e,t)};w.prototype.listener=function(e){return this._listenerDemux.stream(e)};w.prototype.closeListener=function(e){this._listenerDemux.close(e)};w.prototype.closeAllListeners=function(){this._listenerDemux.closeAll()};w.prototype.getListenerConsumerStats=function(e){return this._listenerDemux.getConsumerStats(e)};w.prototype.getListenerConsumerStatsList=function(e){return this._listenerDemux.getConsumerStatsList(e)};w.prototype.getAllListenersConsumerStatsList=function(){return this._listenerDemux.getConsumerStatsListAll()};w.prototype.getListenerConsumerCount=function(e){return this._listenerDemux.getConsumerCount(e)};w.prototype.getAllListenersConsumerCount=function(){return this._listenerDemux.getConsumerCountAll()};w.prototype.killListener=function(e){this._listenerDemux.kill(e)};w.prototype.killAllListeners=function(){this._listenerDemux.killAll()};w.prototype.killListenerConsumer=function(e){this._listenerDemux.killConsumer(e)};w.prototype.getListenerBackpressure=function(e){return this._listenerDemux.getBackpressure(e)};w.prototype.getAllListenersBackpressure=function(){return this._listenerDemux.getBackpressureAll()};w.prototype.getListenerConsumerBackpressure=function(e){return this._listenerDemux.getConsumerBackpressure(e)};w.prototype.hasListenerConsumer=function(e,t){return this._listenerDemux.hasConsumer(e,t)};w.prototype.hasAnyListenerConsumer=function(e){return this._listenerDemux.hasConsumerAll(e)};oi.exports=w});var ui=u((Nw,ai)=>{var Ih=mt(),ye=class e extends Ih{constructor(t,r,n,i){super(),this.PENDING=e.PENDING,this.SUBSCRIBED=e.SUBSCRIBED,this.UNSUBSCRIBED=e.UNSUBSCRIBED,this.name=t,this.client=r,this._eventDemux=n,this._dataStream=i.stream(this.name)}createConsumer(t){return this._dataStream.createConsumer(t)}listener(t){return this._eventDemux.stream(`${this.name}/${t}`)}close(){this.client.closeChannel(this.name)}kill(){this.client.killChannel(this.name)}killOutputConsumer(t){this.hasOutputConsumer(t)&&this.client.killChannelOutputConsumer(t)}killListenerConsumer(t){this.hasAnyListenerConsumer(t)&&this.client.killChannelListenerConsumer(t)}getOutputConsumerStats(t){if(this.hasOutputConsumer(t))return this.client.getChannelOutputConsumerStats(t)}getListenerConsumerStats(t){if(this.hasAnyListenerConsumer(t))return this.client.getChannelListenerConsumerStats(t)}getBackpressure(){return this.client.getChannelBackpressure(this.name)}getListenerConsumerBackpressure(t){return this.hasAnyListenerConsumer(t)?this.client.getChannelListenerConsumerBackpressure(t):0}getOutputConsumerBackpressure(t){return this.hasOutputConsumer(t)?this.client.getChannelOutputConsumerBackpressure(t):0}closeOutput(){this.client.channelCloseOutput(this.name)}closeListener(t){this.client.channelCloseListener(this.name,t)}closeAllListeners(){this.client.channelCloseAllListeners(this.name)}killOutput(){this.client.channelKillOutput(this.name)}killListener(t){this.client.channelKillListener(this.name,t)}killAllListeners(){this.client.channelKillAllListeners(this.name)}getOutputConsumerStatsList(){return this.client.channelGetOutputConsumerStatsList(this.name)}getListenerConsumerStatsList(t){return this.client.channelGetListenerConsumerStatsList(this.name,t)}getAllListenersConsumerStatsList(){return this.client.channelGetAllListenersConsumerStatsList(this.name)}getOutputBackpressure(){return this.client.channelGetOutputBackpressure(this.name)}getListenerBackpressure(t){return this.client.channelGetListenerBackpressure(this.name,t)}getAllListenersBackpressure(){return this.client.channelGetAllListenersBackpressure(this.name)}hasOutputConsumer(t){return this.client.channelHasOutputConsumer(this.name,t)}hasListenerConsumer(t,r){return this.client.channelHasListenerConsumer(this.name,t,r)}hasAnyListenerConsumer(t){return this.client.channelHasAnyListenerConsumer(this.name,t)}get state(){return this.client.getChannelState(this.name)}set state(t){throw new Error("Cannot directly set channel state")}get options(){return this.client.getChannelOptions(this.name)}set options(t){throw new Error("Cannot directly set channel options")}subscribe(t){this.client.subscribe(this.name,t)}unsubscribe(){this.client.unsubscribe(this.name)}isSubscribed(t){return this.client.isSubscribed(this.name,t)}transmitPublish(t){return this.client.transmitPublish(this.name,t)}invokePublish(t){return this.client.invokePublish(this.name,t)}};ye.PENDING="pending";ye.SUBSCRIBED="subscribed";ye.UNSUBSCRIBED="unsubscribed";ai.exports=ye});var li=u((Dw,ci)=>{function je(){this._internalStorage={},this.isLocalStorageEnabled=this._checkLocalStorageEnabled()}je.prototype._checkLocalStorageEnabled=function(){let e;try{localStorage.setItem("__scLocalStorageTest",1),localStorage.removeItem("__scLocalStorageTest")}catch(t){e=t}return!e};je.prototype.saveToken=function(e,t,r){return this.isLocalStorageEnabled?localStorage.setItem(e,t):this._internalStorage[e]=t,Promise.resolve(t)};je.prototype.removeToken=function(e){let t=this.loadToken(e);return this.isLocalStorageEnabled?localStorage.removeItem(e):delete this._internalStorage[e],t};je.prototype.loadToken=function(e){let t;return this.isLocalStorageEnabled?t=localStorage.getItem(e):t=this._internalStorage[e]||null,Promise.resolve(t)};ci.exports=je});var fi=u((Bw,yr)=>{var yt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Oh=/^[ \n\r\t]*[{\[]/,kh=function(e){let t=new Uint8Array(e),r=t.length,n="";for(let i=0;i<r;i+=3)n+=yt[t[i]>>2],n+=yt[(t[i]&3)<<4|t[i+1]>>4],n+=yt[(t[i+1]&15)<<2|t[i+2]>>6],n+=yt[t[i+2]&63];return r%3===2?n=n.substring(0,n.length-1)+"=":r%3===1&&(n=n.substring(0,n.length-2)+"=="),n},Nh=function(e,t){if(typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer)return{base64:!0,data:kh(t)};if(typeof Buffer<"u"){if(t instanceof Buffer)return{base64:!0,data:t.toString("base64")};if(t&&t.type==="Buffer"&&Array.isArray(t.data)){let r;return Buffer.from?r=Buffer.from(t.data):r=new Buffer(t.data),{base64:!0,data:r.toString("base64")}}}return t};yr.exports.decode=function(e){if(e==null)return null;if(e==="#1"||e==="#2")return e;let t=e.toString();if(!Oh.test(t))return t;try{return JSON.parse(t)}catch{}return t};yr.exports.encode=function(e){return e==="#1"||e==="#2"?e:JSON.stringify(e,Nh)}});var hi=u((Pw,pi)=>{pi.exports=function(t){var r=[],n=[];return function i(o,s){var a,c,f;if(typeof o=="object"&&o!==null&&!(o instanceof Boolean)&&!(o instanceof Date)&&!(o instanceof Number)&&!(o instanceof RegExp)&&!(o instanceof String)){for(a=0;a<r.length;a+=1)if(r[a]===o)return{$ref:n[a]};if(r.push(o),n.push(s),Object.prototype.toString.apply(o)==="[object Array]")for(f=[],a=0;a<o.length;a+=1)f[a]=i(o[a],s+"["+a+"]");else{f={};for(c in o)Object.prototype.hasOwnProperty.call(o,c)&&(f[c]=i(o[c],s+"["+JSON.stringify(c)+"]"))}return f}return o}(t,"$")}});var Ge=u((Lw,oe)=>{var di=hi(),_=function(){return!this}();function mi(e,t){this.name="AuthTokenExpiredError",this.message=e,this.expiry=t,Error.captureStackTrace&&!_?Error.captureStackTrace(this,arguments.callee):this.stack=new Error().stack}mi.prototype=Object.create(Error.prototype);function yi(e){this.name="AuthTokenInvalidError",this.message=e,Error.captureStackTrace&&!_?Error.captureStackTrace(this,arguments.callee):this.stack=new Error().stack}yi.prototype=Object.create(Error.prototype);function gi(e,t){this.name="AuthTokenNotBeforeError",this.message=e,this.date=t,Error.captureStackTrace&&!_?Error.captureStackTrace(this,arguments.callee):this.stack=new Error().stack}gi.prototype=Object.create(Error.prototype);function Ei(e){this.name="AuthTokenError",this.message=e,Error.captureStackTrace&&!_?Error.captureStackTrace(this,arguments.callee):this.stack=new Error().stack}Ei.prototype=Object.create(Error.prototype);function Si(e){this.name="AuthError",this.message=e,Error.captureStackTrace&&!_?Error.captureStackTrace(this,arguments.callee):this.stack=new Error().stack}Si.prototype=Object.create(Error.prototype);function Ai(e,t){this.name="SilentMiddlewareBlockedError",this.message=e,this.type=t,Error.captureStackTrace&&!_?Error.captureStackTrace(this,arguments.callee):this.stack=new Error().stack}Ai.prototype=Object.create(Error.prototype);function bi(e){this.name="InvalidActionError",this.message=e,Error.captureStackTrace&&!_?Error.captureStackTrace(this,arguments.callee):this.stack=new Error().stack}bi.prototype=Object.create(Error.prototype);function xi(e){this.name="InvalidArgumentsError",this.message=e,Error.captureStackTrace&&!_?Error.captureStackTrace(this,arguments.callee):this.stack=new Error().stack}xi.prototype=Object.create(Error.prototype);function Ti(e){this.name="InvalidOptionsError",this.message=e,Error.captureStackTrace&&!_?Error.captureStackTrace(this,arguments.callee):this.stack=new Error().stack}Ti.prototype=Object.create(Error.prototype);function vi(e){this.name="InvalidMessageError",this.message=e,Error.captureStackTrace&&!_?Error.captureStackTrace(this,arguments.callee):this.stack=new Error().stack}vi.prototype=Object.create(Error.prototype);function _i(e,t){this.name="SocketProtocolError",this.message=e,this.code=t,Error.captureStackTrace&&!_?Error.captureStackTrace(this,arguments.callee):this.stack=new Error().stack}_i.prototype=Object.create(Error.prototype);function wi(e){this.name="ServerProtocolError",this.message=e,Error.captureStackTrace&&!_?Error.captureStackTrace(this,arguments.callee):this.stack=new Error().stack}wi.prototype=Object.create(Error.prototype);function Ci(e){this.name="HTTPServerError",this.message=e,Error.captureStackTrace&&!_?Error.captureStackTrace(this,arguments.callee):this.stack=new Error().stack}Ci.prototype=Object.create(Error.prototype);function Ii(e){this.name="ResourceLimitError",this.message=e,Error.captureStackTrace&&!_?Error.captureStackTrace(this,arguments.callee):this.stack=new Error().stack}Ii.prototype=Object.create(Error.prototype);function Oi(e){this.name="TimeoutError",this.message=e,Error.captureStackTrace&&!_?Error.captureStackTrace(this,arguments.callee):this.stack=new Error().stack}Oi.prototype=Object.create(Error.prototype);function ki(e,t){this.name="BadConnectionError",this.message=e,this.type=t,Error.captureStackTrace&&!_?Error.captureStackTrace(this,arguments.callee):this.stack=new Error().stack}ki.prototype=Object.create(Error.prototype);function Ni(e){this.name="BrokerError",this.message=e,Error.captureStackTrace&&!_?Error.captureStackTrace(this,arguments.callee):this.stack=new Error().stack}Ni.prototype=Object.create(Error.prototype);function Di(e,t){this.name="ProcessExitError",this.message=e,this.code=t,Error.captureStackTrace&&!_?Error.captureStackTrace(this,arguments.callee):this.stack=new Error().stack}Di.prototype=Object.create(Error.prototype);function Bi(e){this.name="UnknownError",this.message=e,Error.captureStackTrace&&!_?Error.captureStackTrace(this,arguments.callee):this.stack=new Error().stack}Bi.prototype=Object.create(Error.prototype);oe.exports={AuthTokenExpiredError:mi,AuthTokenInvalidError:yi,AuthTokenNotBeforeError:gi,AuthTokenError:Ei,AuthError:Si,SilentMiddlewareBlockedError:Ai,InvalidActionError:bi,InvalidArgumentsError:xi,InvalidOptionsError:Ti,InvalidMessageError:vi,SocketProtocolError:_i,ServerProtocolError:wi,HTTPServerError:Ci,ResourceLimitError:Ii,TimeoutError:Oi,BadConnectionError:ki,BrokerError:Ni,ProcessExitError:Di,UnknownError:Bi};oe.exports.socketProtocolErrorStatuses={1001:"Socket was disconnected",1002:"A WebSocket protocol error was encountered",1003:"Server terminated socket because it received invalid data",1005:"Socket closed without status code",1006:"Socket hung up",1007:"Message format was incorrect",1008:"Encountered a policy violation",1009:"Message was too big to process",1010:"Client ended the connection because the server did not comply with extension requirements",1011:"Server encountered an unexpected fatal condition",4e3:"Server ping timed out",4001:"Client pong timed out",4002:"Server failed to sign auth token",4003:"Failed to complete handshake",4004:"Client failed to save auth token",4005:"Did not receive #handshake from client before timeout",4006:"Failed to bind socket to message broker",4007:"Client connection establishment timed out",4008:"Server rejected handshake from client",4009:"Server received a message before the client handshake"};oe.exports.socketProtocolIgnoreStatuses={1e3:"Socket closed normally",1001:"Socket hung up"};oe.exports.dehydrateError=function(t){let r;if(t&&typeof t=="object"){r={message:t.message};for(let n of Object.keys(t))r[n]=t[n]}else typeof t=="function"?r="[function "+(typeof t.name=="string"?t.name:"anonymous")+"]":r=t;return di(r)};oe.exports.hydrateError=function(t){let r=null;if(t!=null)if(typeof t=="object"){r=new Error(typeof t.message=="string"?t.message:"Invalid error message format"),typeof t.name=="string"&&(r.name=t.name);for(let n of Object.keys(t))r[n]===void 0&&(r[n]=t[n])}else r=t;return r};oe.exports.decycle=di});var Ri=u((Rw,Li)=>{var Pi=Ge(),Dh=Pi.InvalidActionError;function Bh(e,t,r,n){this.socket=e,this.id=t,this.procedure=r,this.data=n,this.sent=!1,this._respond=(i,o)=>{if(this.sent)throw new Dh(`Response to request ${this.id} has already been sent`);this.sent=!0,this.socket.sendObject(i,o)},this.end=(i,o)=>{let s={rid:this.id};i!==void 0&&(s.data=i),this._respond(s,o)},this.error=(i,o)=>{let s={rid:this.id,error:Pi.dehydrateError(i)};this._respond(s,o)}}Li.exports=Bh});var Ui=u((qw,Mi)=>{var gt;typeof WorkerGlobalScope<"u"?gt=self:gt=typeof window<"u"&&window||function(){return this}();var He=gt.WebSocket||gt.MozWebSocket;function qi(e,t,r){let n;return t?n=new He(e,t):n=new He(e),n}He&&(qi.prototype=He.prototype);Mi.exports=He?qi:null});var ji=u((Mw,Fi)=>{var Ph=Ri(),gr;if(typeof WebSocket<"u")gr=function(e,t){return new WebSocket(e)};else{let e=Ui();gr=function(t,r){return new e(t,[],r)}}var se=Ge(),Lh=se.TimeoutError,Rh=se.BadConnectionError;function b(e,t,r,n,i){this.state=this.CLOSED,this.auth=e,this.codec=t,this.options=r,this.wsOptions=n,this.protocolVersion=r.protocolVersion,this.connectTimeout=r.connectTimeout,this.pingTimeout=r.pingTimeout,this.pingTimeoutDisabled=!!r.pingTimeoutDisabled,this.callIdGenerator=r.callIdGenerator,this.authTokenName=r.authTokenName,this.isBufferingBatch=!1,this._pingTimeoutTicker=null,this._callbackMap={},this._batchBuffer=[],i||(i={}),this._onOpenHandler=i.onOpen||function(){},this._onOpenAbortHandler=i.onOpenAbort||function(){},this._onCloseHandler=i.onClose||function(){},this._onEventHandler=i.onEvent||function(){},this._onErrorHandler=i.onError||function(){},this._onInboundInvokeHandler=i.onInboundInvoke||function(){},this._onInboundTransmitHandler=i.onInboundTransmit||function(){},this.state=this.CONNECTING;let o=this.uri(),s=gr(o,n);s.binaryType=this.options.binaryType,this.socket=s,s.onopen=()=>{this._onOpen()},s.onclose=async a=>{let c;a.code==null?c=1005:c=a.code,this._destroy(c,a.reason)},s.onmessage=(a,c)=>{this._onMessage(a.data)},s.onerror=a=>{this.state===this.CONNECTING&&this._destroy(1006)},this._connectTimeoutRef=setTimeout(()=>{this._destroy(4007),this.socket.close(4007)},this.connectTimeout),this.protocolVersion===1?this._handlePing=a=>a==="#1"?(this._resetPingTimeout(),this.socket.readyState===this.socket.OPEN&&this.send("#2"),!0):!1:this._handlePing=a=>a===""?(this._resetPingTimeout(),this.socket.readyState===this.socket.OPEN&&this.send(""),!0):!1}b.CONNECTING=b.prototype.CONNECTING="connecting";b.OPEN=b.prototype.OPEN="open";b.CLOSED=b.prototype.CLOSED="closed";b.prototype.uri=function(){let e=this.options.query||{},t;this.options.protocolScheme==null?t=this.options.secure?"wss":"ws":t=this.options.protocolScheme,this.options.timestampRequests&&(e[this.options.timestampParam]=new Date().getTime());let r=new URLSearchParams;for(let[o,s]of Object.entries(e))if(Array.isArray(s))for(let a of s)r.append(o,a);else r.set(o,s);e=r.toString(),e.length&&(e="?"+e);let n,i;if(this.options.socketPath==null){if(this.options.host)n=this.options.host;else{let o="";this.options.port&&(t==="wss"&&this.options.port!==443||t==="ws"&&this.options.port!==80)&&(o=":"+this.options.port),n=this.options.hostname+o}i=this.options.path}else n=this.options.socketPath,i=`:${this.options.path}`;return t+"://"+n+i+e};b.prototype._onOpen=async function(){clearTimeout(this._connectTimeoutRef),this._resetPingTimeout();let e;try{e=await this._handshake()}catch(t){t.statusCode==null&&(t.statusCode=4003),this._onError(t),this._destroy(t.statusCode,t.toString()),this.socket.close(t.statusCode);return}this.state=this.OPEN,e&&(this.pingTimeout=e.pingTimeout),this._resetPingTimeout(),this._onOpenHandler(e)};b.prototype._handshake=async function(){let e=await this.auth.loadToken(this.authTokenName),t={force:!0},r=await this.invoke("#handshake",{authToken:e},t);return r&&(r.authToken=e,r.authError&&(r.authError=se.hydrateError(r.authError))),r};b.prototype._abortAllPendingEventsDueToBadConnection=function(e){Object.keys(this._callbackMap||{}).forEach(t=>{let r=this._callbackMap[t];delete this._callbackMap[t],clearTimeout(r.timeout),delete r.timeout;let n=`Event "${r.event}" was aborted due to a bad connection`,i=new Rh(n,e),o=r.callback;o&&(delete r.callback,o.call(r,i,r))})};b.prototype._destroy=function(e,t){let r=se.socketProtocolErrorStatuses[e];!t&&se.socketProtocolErrorStatuses[e]&&(t=se.socketProtocolErrorStatuses[e]),delete this.socket.onopen,delete this.socket.onclose,delete this.socket.onmessage,delete this.socket.onerror,clearTimeout(this._connectTimeoutRef),clearTimeout(this._pingTimeoutTicker),this.state===this.OPEN?(this.state=this.CLOSED,this._abortAllPendingEventsDueToBadConnection("disconnect"),this._onCloseHandler({code:e,reason:t})):this.state===this.CONNECTING?(this.state=this.CLOSED,this._abortAllPendingEventsDueToBadConnection("connectAbort"),this._onOpenAbortHandler({code:e,reason:t})):this.state===this.CLOSED&&this._abortAllPendingEventsDueToBadConnection("connectAbort")};b.prototype._processInboundPacket=function(e,t){if(e&&e.event!=null)if(e.cid==null)this._onInboundTransmitHandler({...e});else{let r=new Ph(this,e.cid,e.event,e.data);this._onInboundInvokeHandler(r)}else if(e&&e.rid!=null){let r=this._callbackMap[e.rid];if(r&&(clearTimeout(r.timeout),delete r.timeout,delete this._callbackMap[e.rid],r.callback)){let n=se.hydrateError(e.error);r.callback(n,e.data)}}else this._onEventHandler({event:"raw",data:{message:t}})};b.prototype._onMessage=function(e){if(this._onEventHandler({event:"message",data:{message:e}}),this._handlePing(e))return;let t=this.decode(e);if(Array.isArray(t)){let r=t.length;for(let n=0;n<r;n++)this._processInboundPacket(t[n],e)}else this._processInboundPacket(t,e)};b.prototype._onError=function(e){this._onErrorHandler({error:e})};b.prototype._resetPingTimeout=function(){if(this.pingTimeoutDisabled)return;let e=new Date().getTime();clearTimeout(this._pingTimeoutTicker),this._pingTimeoutTicker=setTimeout(()=>{this._destroy(4e3),this.socket.close(4e3)},this.pingTimeout)};b.prototype.clearAllListeners=function(){this._onOpenHandler=function(){},this._onOpenAbortHandler=function(){},this._onCloseHandler=function(){},this._onEventHandler=function(){},this._onErrorHandler=function(){},this._onInboundInvokeHandler=function(){},this._onInboundTransmitHandler=function(){}};b.prototype.startBatch=function(){this.isBufferingBatch=!0,this._batchBuffer=[]};b.prototype.flushBatch=function(){if(this.isBufferingBatch=!1,!this._batchBuffer.length)return;let e=this.serializeObject(this._batchBuffer);this._batchBuffer=[],this.send(e)};b.prototype.cancelBatch=function(){this.isBufferingBatch=!1,this._batchBuffer=[]};b.prototype.getBytesReceived=function(){return this.socket.bytesReceived};b.prototype.close=function(e,t){(this.state===this.OPEN||this.state===this.CONNECTING)&&(e=e||1e3,this._destroy(e,t),this.socket.close(e,t))};b.prototype.transmitObject=function(e){let t={event:e.event,data:e.data};return e.callback&&(t.cid=e.cid=this.callIdGenerator(),this._callbackMap[e.cid]=e),this.sendObject(t),e.cid||null};b.prototype._handleEventAckTimeout=function(e){e.cid&&delete this._callbackMap[e.cid],delete e.timeout;let t=e.callback;if(t){delete e.callback;let r=new Lh(`Event response for "${e.event}" timed out`);t.call(e,r,e)}};b.prototype.transmit=function(e,t,r){let n={event:e,data:t};return(this.state===this.OPEN||r.force)&&this.transmitObject(n),Promise.resolve()};b.prototype.invokeRaw=function(e,t,r,n){let i={event:e,data:t,callback:n};r.noTimeout||(i.timeout=setTimeout(()=>{this._handleEventAckTimeout(i)},this.options.ackTimeout));let o=null;return(this.state===this.OPEN||r.force)&&(o=this.transmitObject(i)),o};b.prototype.invoke=function(e,t,r){return new Promise((n,i)=>{this.invokeRaw(e,t,r,(o,s)=>{if(o){i(o);return}n(s)})})};b.prototype.cancelPendingResponse=function(e){delete this._callbackMap[e]};b.prototype.decode=function(e){return this.codec.decode(e)};b.prototype.encode=function(e){return this.codec.encode(e)};b.prototype.send=function(e){this.socket.readyState!==this.socket.OPEN?this._destroy(1005):this.socket.send(e)};b.prototype.serializeObject=function(e){let t;try{t=this.encode(e)}catch(r){return this._onError(r),null}return t};b.prototype.sendObject=function(e){if(this.isBufferingBatch){this._batchBuffer.push(e);return}let t=this.serializeObject(e);t!=null&&this.send(t)};Fi.exports=b});var $i=u((Uw,Hi)=>{"use strict";var $e;$e="An argument without append, prepend, or detach methods was given to `List";function ae(){if(arguments.length)return ae.from(arguments)}var ge;ge=ae.prototype;ae.of=function(){return ae.from.call(this,arguments)};ae.from=function(e){var t=new this,r,n,i;if(e&&(r=e.length))for(n=-1;++n<r;)i=e[n],i!=null&&t.append(i);return t};ge.head=null;ge.tail=null;ge.toArray=function(){for(var e=this.head,t=[];e;)t.push(e),e=e.next;return t};ge.prepend=function(e){if(!e)return!1;if(!e.append||!e.prepend||!e.detach)throw new Error($e+"#prepend`.");var t,r;return t=this,r=t.head,r?r.prepend(e):(e.detach(),e.list=t,t.head=e,e)};ge.append=function(e){if(!e)return!1;if(!e.append||!e.prepend||!e.detach)throw new Error($e+"#append`.");var t,r,n;return t=this,n=t.tail,n?n.append(e):(r=t.head,r?r.append(e):(e.detach(),e.list=t,t.head=e,e))};function Gi(){}ae.Item=Gi;var Ee=Gi.prototype;Ee.next=null;Ee.prev=null;Ee.list=null;Ee.detach=function(){var e=this,t=e.list,r=e.prev,n=e.next;return t&&(t.tail===e&&(t.tail=r),t.head===e&&(t.head=n),t.tail===t.head&&(t.tail=null),r&&(r.next=n),n&&(n.prev=r),e.prev=e.next=e.list=null),e};Ee.prepend=function(e){if(!e||!e.append||!e.prepend||!e.detach)throw new Error($e+"Item#prepend`.");var t=this,r=t.list,n=t.prev;return r?(e.detach(),n&&(e.prev=n,n.next=e),e.next=t,e.list=r,t.prev=e,t===r.head&&(r.head=e),r.tail||(r.tail=t),e):!1};Ee.append=function(e){if(!e||!e.append||!e.prepend||!e.detach)throw new Error($e+"Item#append`.");var t=this,r=t.list,n=t.next;return r?(e.detach(),n&&(e.next=n,n.prev=e),e.prev=t,e.list=r,t.next=e,(t===r.tail||!r.tail)&&(r.tail=e),e):!1};Hi.exports=ae});var Wi=u((Fw,Ki)=>{"use strict";Ki.exports=$i()});var Er=u((jw,Ji)=>{var qh=Object.prototype.toString;Ji.exports=function(t){if(t===void 0)return"undefined";if(t===null)return"null";var r=typeof t;if(r==="boolean")return"boolean";if(r==="string")return"string";if(r==="number")return"number";if(r==="symbol")return"symbol";if(r==="function")return Gh(t)?"generatorfunction":"function";if(Mh(t))return"array";if(Kh(t))return"buffer";if($h(t))return"arguments";if(Fh(t))return"date";if(Uh(t))return"error";if(jh(t))return"regexp";switch(Vi(t)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(Hh(t))return"generator";switch(r=qh.call(t),r){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return r.slice(8,-1).toLowerCase().replace(/\s/g,"")};function Vi(e){return typeof e.constructor=="function"?e.constructor.name:null}function Mh(e){return Array.isArray?Array.isArray(e):e instanceof Array}function Uh(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function Fh(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function jh(e){return e instanceof RegExp?!0:typeof e.flags=="string"&&typeof e.ignoreCase=="boolean"&&typeof e.multiline=="boolean"&&typeof e.global=="boolean"}function Gh(e,t){return Vi(e)==="GeneratorFunction"}function Hh(e){return typeof e.throw=="function"&&typeof e.return=="function"&&typeof e.next=="function"}function $h(e){try{if(typeof e.length=="number"&&typeof e.callee=="function")return!0}catch(t){if(t.message.indexOf("callee")!==-1)return!0}return!1}function Kh(e){return e.constructor&&typeof e.constructor.isBuffer=="function"?e.constructor.isBuffer(e):!1}});var Xi=u((Gw,zi)=>{"use strict";var Yi=Symbol.prototype.valueOf,Wh=Er();function Vh(e,t){switch(Wh(e)){case"array":return e.slice();case"object":return Object.assign({},e);case"date":return new e.constructor(Number(e));case"map":return new Map(e);case"set":return new Set(e);case"buffer":return Xh(e);case"symbol":return Qh(e);case"arraybuffer":return Yh(e);case"float32array":case"float64array":case"int16array":case"int32array":case"int8array":case"uint16array":case"uint32array":case"uint8clampedarray":case"uint8array":return zh(e);case"regexp":return Jh(e);case"error":return Object.create(e);default:return e}}function Jh(e){let t=e.flags!==void 0?e.flags:/\w+$/.exec(e)||void 0,r=new e.constructor(e.source,t);return r.lastIndex=e.lastIndex,r}function Yh(e){let t=new e.constructor(e.byteLength);return new Uint8Array(t).set(new Uint8Array(e)),t}function zh(e,t){return new e.constructor(e.buffer,e.byteOffset,e.length)}function Xh(e){let t=e.length,r=Buffer.allocUnsafe?Buffer.allocUnsafe(t):Buffer.from(t);return e.copy(r),r}function Qh(e){return Yi?Object(Yi.call(e)):{}}zi.exports=Vh});var Zi=u((Hw,Qi)=>{"use strict";Qi.exports=function(t){return t!=null&&typeof t=="object"&&Array.isArray(t)===!1}});var ro=u(($w,to)=>{"use strict";var Zh=Zi();function eo(e){return Zh(e)===!0&&Object.prototype.toString.call(e)==="[object Object]"}to.exports=function(t){var r,n;return!(eo(t)===!1||(r=t.constructor,typeof r!="function")||(n=r.prototype,eo(n)===!1)||n.hasOwnProperty("isPrototypeOf")===!1)}});var io=u((Kw,no)=>{"use strict";var ed=Xi(),td=Er(),rd=ro();function Sr(e,t){switch(td(e)){case"object":return nd(e,t);case"array":return id(e,t);default:return ed(e)}}function nd(e,t){if(typeof t=="function")return t(e);if(t||rd(e)){let r=new e.constructor;for(let n in e)r[n]=Sr(e[n],t);return r}return e}function id(e,t){let r=new e.constructor(e.length);for(let n=0;n<e.length;n++)r[n]=Sr(e[n],t);return r}no.exports=Sr});var ao=u(Et=>{"use strict";Et.byteLength=sd;Et.toByteArray=ud;Et.fromByteArray=fd;var $=[],F=[],od=typeof Uint8Array<"u"?Uint8Array:Array,Ar="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(ue=0,oo=Ar.length;ue<oo;++ue)$[ue]=Ar[ue],F[Ar.charCodeAt(ue)]=ue;var ue,oo;F[45]=62;F[95]=63;function so(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var n=r===t?0:4-r%4;return[r,n]}function sd(e){var t=so(e),r=t[0],n=t[1];return(r+n)*3/4-n}function ad(e,t,r){return(t+r)*3/4-r}function ud(e){var t,r=so(e),n=r[0],i=r[1],o=new od(ad(e,n,i)),s=0,a=i>0?n-4:n,c;for(c=0;c<a;c+=4)t=F[e.charCodeAt(c)]<<18|F[e.charCodeAt(c+1)]<<12|F[e.charCodeAt(c+2)]<<6|F[e.charCodeAt(c+3)],o[s++]=t>>16&255,o[s++]=t>>8&255,o[s++]=t&255;return i===2&&(t=F[e.charCodeAt(c)]<<2|F[e.charCodeAt(c+1)]>>4,o[s++]=t&255),i===1&&(t=F[e.charCodeAt(c)]<<10|F[e.charCodeAt(c+1)]<<4|F[e.charCodeAt(c+2)]>>2,o[s++]=t>>8&255,o[s++]=t&255),o}function cd(e){return $[e>>18&63]+$[e>>12&63]+$[e>>6&63]+$[e&63]}function ld(e,t,r){for(var n,i=[],o=t;o<r;o+=3)n=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(e[o+2]&255),i.push(cd(n));return i.join("")}function fd(e){for(var t,r=e.length,n=r%3,i=[],o=16383,s=0,a=r-n;s<a;s+=o)i.push(ld(e,s,s+o>a?a:s+o));return n===1?(t=e[r-1],i.push($[t>>2]+$[t<<4&63]+"==")):n===2&&(t=(e[r-2]<<8)+e[r-1],i.push($[t>>10]+$[t>>4&63]+$[t<<2&63]+"=")),i.join("")}});var uo=u(br=>{br.read=function(e,t,r,n,i){var o,s,a=i*8-n-1,c=(1<<a)-1,f=c>>1,d=-7,h=r?i-1:0,y=r?-1:1,g=e[t+h];for(h+=y,o=g&(1<<-d)-1,g>>=-d,d+=a;d>0;o=o*256+e[t+h],h+=y,d-=8);for(s=o&(1<<-d)-1,o>>=-d,d+=n;d>0;s=s*256+e[t+h],h+=y,d-=8);if(o===0)o=1-f;else{if(o===c)return s?NaN:(g?-1:1)*(1/0);s=s+Math.pow(2,n),o=o-f}return(g?-1:1)*s*Math.pow(2,o-n)};br.write=function(e,t,r,n,i,o){var s,a,c,f=o*8-i-1,d=(1<<f)-1,h=d>>1,y=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,g=n?0:o-1,m=n?1:-1,E=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=d):(s=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-s))<1&&(s--,c*=2),s+h>=1?t+=y/c:t+=y*Math.pow(2,1-h),t*c>=2&&(s++,c/=2),s+h>=d?(a=0,s=d):s+h>=1?(a=(t*c-1)*Math.pow(2,i),s=s+h):(a=t*Math.pow(2,h-1)*Math.pow(2,i),s=0));i>=8;e[r+g]=a&255,g+=m,a/=256,i-=8);for(s=s<<i|a,f+=i;f>0;e[r+g]=s&255,g+=m,s/=256,f-=8);e[r+g-m]|=E*128}});var xo=u(Ae=>{"use strict";var xr=ao(),Se=uo(),co=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Ae.Buffer=p;Ae.SlowBuffer=gd;Ae.INSPECT_MAX_BYTES=50;var St=2147483647;Ae.kMaxLength=St;p.TYPED_ARRAY_SUPPORT=pd();!p.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function pd(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch{return!1}}Object.defineProperty(p.prototype,"parent",{enumerable:!0,get:function(){if(p.isBuffer(this))return this.buffer}});Object.defineProperty(p.prototype,"offset",{enumerable:!0,get:function(){if(p.isBuffer(this))return this.byteOffset}});function Y(e){if(e>St)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,p.prototype),t}function p(e,t,r){if(typeof e=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return wr(e)}return po(e,t,r)}p.poolSize=8192;function po(e,t,r){if(typeof e=="string")return dd(e,t);if(ArrayBuffer.isView(e))return md(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(K(e,ArrayBuffer)||e&&K(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(K(e,SharedArrayBuffer)||e&&K(e.buffer,SharedArrayBuffer)))return vr(e,t,r);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var n=e.valueOf&&e.valueOf();if(n!=null&&n!==e)return p.from(n,t,r);var i=yd(e);if(i)return i;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return p.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}p.from=function(e,t,r){return po(e,t,r)};Object.setPrototypeOf(p.prototype,Uint8Array.prototype);Object.setPrototypeOf(p,Uint8Array);function ho(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function hd(e,t,r){return ho(e),e<=0?Y(e):t!==void 0?typeof r=="string"?Y(e).fill(t,r):Y(e).fill(t):Y(e)}p.alloc=function(e,t,r){return hd(e,t,r)};function wr(e){return ho(e),Y(e<0?0:Cr(e)|0)}p.allocUnsafe=function(e){return wr(e)};p.allocUnsafeSlow=function(e){return wr(e)};function dd(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!p.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=mo(e,t)|0,n=Y(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}function Tr(e){for(var t=e.length<0?0:Cr(e.length)|0,r=Y(t),n=0;n<t;n+=1)r[n]=e[n]&255;return r}function md(e){if(K(e,Uint8Array)){var t=new Uint8Array(e);return vr(t.buffer,t.byteOffset,t.byteLength)}return Tr(e)}function vr(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;return t===void 0&&r===void 0?n=new Uint8Array(e):r===void 0?n=new Uint8Array(e,t):n=new Uint8Array(e,t,r),Object.setPrototypeOf(n,p.prototype),n}function yd(e){if(p.isBuffer(e)){var t=Cr(e.length)|0,r=Y(t);return r.length===0||e.copy(r,0,0,t),r}if(e.length!==void 0)return typeof e.length!="number"||Ir(e.length)?Y(0):Tr(e);if(e.type==="Buffer"&&Array.isArray(e.data))return Tr(e.data)}function Cr(e){if(e>=St)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+St.toString(16)+" bytes");return e|0}function gd(e){return+e!=e&&(e=0),p.alloc(+e)}p.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==p.prototype};p.compare=function(t,r){if(K(t,Uint8Array)&&(t=p.from(t,t.offset,t.byteLength)),K(r,Uint8Array)&&(r=p.from(r,r.offset,r.byteLength)),!p.isBuffer(t)||!p.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===r)return 0;for(var n=t.length,i=r.length,o=0,s=Math.min(n,i);o<s;++o)if(t[o]!==r[o]){n=t[o],i=r[o];break}return n<i?-1:i<n?1:0};p.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};p.concat=function(t,r){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return p.alloc(0);var n;if(r===void 0)for(r=0,n=0;n<t.length;++n)r+=t[n].length;var i=p.allocUnsafe(r),o=0;for(n=0;n<t.length;++n){var s=t[n];if(K(s,Uint8Array))o+s.length>i.length?p.from(s).copy(i,o):Uint8Array.prototype.set.call(i,s,o);else if(p.isBuffer(s))s.copy(i,o);else throw new TypeError('"list" argument must be an Array of Buffers');o+=s.length}return i};function mo(e,t){if(p.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||K(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return _r(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return bo(e).length;default:if(i)return n?-1:_r(e).length;t=(""+t).toLowerCase(),i=!0}}p.byteLength=mo;function Ed(e,t,r){var n=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,t>>>=0,r<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return Id(this,t,r);case"utf8":case"utf-8":return go(this,t,r);case"ascii":return wd(this,t,r);case"latin1":case"binary":return Cd(this,t,r);case"base64":return vd(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Od(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}p.prototype._isBuffer=!0;function ce(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}p.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<t;r+=2)ce(this,r,r+1);return this};p.prototype.swap32=function(){var t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<t;r+=4)ce(this,r,r+3),ce(this,r+1,r+2);return this};p.prototype.swap64=function(){var t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<t;r+=8)ce(this,r,r+7),ce(this,r+1,r+6),ce(this,r+2,r+5),ce(this,r+3,r+4);return this};p.prototype.toString=function(){var t=this.length;return t===0?"":arguments.length===0?go(this,0,t):Ed.apply(this,arguments)};p.prototype.toLocaleString=p.prototype.toString;p.prototype.equals=function(t){if(!p.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t?!0:p.compare(this,t)===0};p.prototype.inspect=function(){var t="",r=Ae.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"};co&&(p.prototype[co]=p.prototype.inspect);p.prototype.compare=function(t,r,n,i,o){if(K(t,Uint8Array)&&(t=p.from(t,t.offset,t.byteLength)),!p.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(r===void 0&&(r=0),n===void 0&&(n=t?t.length:0),i===void 0&&(i=0),o===void 0&&(o=this.length),r<0||n>t.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&r>=n)return 0;