@formant/data-sdk 0.0.54 → 0.0.58
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/data-sdk.umd.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
var lr=Object.defineProperty;var Zt=Object.getOwnPropertySymbols;var ur=Object.prototype.hasOwnProperty,gr=Object.prototype.propertyIsEnumerable;var Et=(Te,Ae,e)=>Ae in Te?lr(Te,Ae,{enumerable:!0,configurable:!0,writable:!0,value:e}):Te[Ae]=e,st=(Te,Ae)=>{for(var e in Ae||(Ae={}))ur.call(Ae,e)&&Et(Te,e,Ae[e]);if(Zt)for(var e of Zt(Ae))gr.call(Ae,e)&&Et(Te,e,Ae[e]);return Te};var Me=(Te,Ae,e)=>(Et(Te,typeof Ae!="symbol"?Ae+"":Ae,e),e);(function(Te,Ae){typeof exports=="object"&&typeof module!="undefined"?Ae(exports):typeof define=="function"&&define.amd?define(["exports"],Ae):(Te=typeof globalThis!="undefined"?globalThis:Te||self,Ae(Te.FormantDataSDK={}))})(this,function(exports){"use strict";var dist={exports:{}};/*! For license information please see index.js.LICENSE.txt */(function(module,exports){(function(e,t){module.exports=t()})(window,function(){return function(e){function t(u){for(var m,R,y=u[0],S=u[1],c=0,w=[];c<y.length;c++)R=y[c],Object.prototype.hasOwnProperty.call(n,R)&&n[R]&&w.push(n[R][0]),n[R]=0;for(m in S)Object.prototype.hasOwnProperty.call(S,m)&&(e[m]=S[m]);for(l&&l(u);w.length;)w.shift()()}var r={},n={0:0};function i(u){if(r[u])return r[u].exports;var m=r[u]={i:u,l:!1,exports:{}};return e[u].call(m.exports,m,m.exports,i),m.l=!0,m.exports}i.e=function(){return Promise.resolve()},i.m=e,i.c=r,i.d=function(u,m,R){i.o(u,m)||Object.defineProperty(u,m,{enumerable:!0,get:R})},i.r=function(u){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})},i.t=function(u,m){if(1&m&&(u=i(u)),8&m||4&m&&typeof u=="object"&&u&&u.__esModule)return u;var R=Object.create(null);if(i.r(R),Object.defineProperty(R,"default",{enumerable:!0,value:u}),2&m&&typeof u!="string")for(var y in u)i.d(R,y,function(S){return u[S]}.bind(null,y));return R},i.n=function(u){var m=u&&u.__esModule?function(){return u.default}:function(){return u};return i.d(m,"a",m),m},i.o=function(u,m){return Object.prototype.hasOwnProperty.call(u,m)},i.p="",i.oe=function(u){throw console.error(u),u};var g=window.webpackJsonpFormantRealtimeSDK=window.webpackJsonpFormantRealtimeSDK||[],s=g.push.bind(g);g.push=t,g=g.slice();for(var o=0;o<g.length;o++)t(g[o]);var l=s;return i(i.s=228)}([function(e,t,r){r.d(t,"a",function(){return D});const n=Math.pow(2,20),i=n;var g=r(54),s=r(15),o=r(53),l=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),u=new Uint8Array(16);function m(){if(!l)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return l(u)}for(var R=[],y=0;y<256;++y)R[y]=(y+256).toString(16).substr(1);var S=function(T,C){var U=C||0,b=R;return[b[T[U++]],b[T[U++]],b[T[U++]],b[T[U++]],"-",b[T[U++]],b[T[U++]],"-",b[T[U++]],b[T[U++]],"-",b[T[U++]],b[T[U++]],"-",b[T[U++]],b[T[U++]],b[T[U++]],b[T[U++]],b[T[U++]],b[T[U++]]].join("")},c=function(T,C,U){var b=C&&U||0;typeof T=="string"&&(C=T==="binary"?new Array(16):null,T=null);var f=(T=T||{}).random||(T.rng||m)();if(f[6]=15&f[6]|64,f[8]=63&f[8]|128,C)for(var B=0;B<16;++B)C[b+B]=f[B];return C||S(f)},w=r(16),E=r(7),P=r(21),F=r(30),M=function(T,C){var U={};for(var b in T)Object.prototype.hasOwnProperty.call(T,b)&&C.indexOf(b)<0&&(U[b]=T[b]);if(T!=null&&typeof Object.getOwnPropertySymbols=="function"){var f=0;for(b=Object.getOwnPropertySymbols(T);f<b.length;f++)C.indexOf(b[f])<0&&Object.prototype.propertyIsEnumerable.call(T,b[f])&&(U[b[f]]=T[b[f]])}return U};function A(T,C={}){const U=Y=>C.redacted!==!1?Object(F.a)(Y):Y;if(!T.stack)return{message:P(U(T),{cycles:!0})};const{name:b,message:f,stack:B}=T,k=M(T,["name","message","stack"]);return{name:b,message:f!==void 0?f:P(U(T),{cycles:!0}),stack:B,meta:k&&Object.keys(k).length===0?void 0:U(k)}}function p(T,C={}){const{message:U,stack:b,meta:f}=A(T,C);return`${b||U||""}${f&&Object.keys(f).length>0?` -- ${P(f,{cycles:!0})}`:""}`}var N=r(99),$=function(T,C,U,b){return new(U||(U=Promise))(function(f,B){function k(Q){try{K(b.next(Q))}catch(G){B(G)}}function Y(Q){try{K(b.throw(Q))}catch(G){B(G)}}function K(Q){var G;Q.done?f(Q.value):(G=Q.value,G instanceof U?G:new U(function(V){V(G)})).then(k,Y)}K((b=b.apply(T,C||[])).next())})},q=function(T,C){var U={};for(var b in T)Object.prototype.hasOwnProperty.call(T,b)&&C.indexOf(b)<0&&(U[b]=T[b]);if(T!=null&&typeof Object.getOwnPropertySymbols=="function"){var f=0;for(b=Object.getOwnPropertySymbols(T);f<b.length;f++)C.indexOf(b[f])<0&&Object.prototype.propertyIsEnumerable.call(T,b[f])&&(U[b[f]]=T[b[f]])}return U};class h extends N{constructor(C,U){super(),this.endpoint=C,this.meta=U,this.logClient=this.getLogClient()}getLogClient(){return $(this,void 0,void 0,function*(){const{LogClient:C}=yield Promise.resolve().then(r.bind(null,230));return new C(this.endpoint)})}log(C,U){return $(this,void 0,void 0,function*(){const{level:b,message:f,error:B}=C,k=q(C,["level","message","error"]);this.emit("logged");try{yield(yield this.logClient).log([{timestamp:new Date().toISOString(),level:b,message:f.substring(0,1e3),error:B!==void 0?A(B):void 0,meta:Object.assign(Object.assign({},k),this.meta())}])}catch(Y){console.error(`Failed to log to log-api: ${p(Y)}`)}U()})}}var d=function(T,C){var U={};for(var b in T)Object.prototype.hasOwnProperty.call(T,b)&&C.indexOf(b)<0&&(U[b]=T[b]);if(T!=null&&typeof Object.getOwnPropertySymbols=="function"){var f=0;for(b=Object.getOwnPropertySymbols(T);f<b.length;f++)C.indexOf(b[f])<0&&Object.prototype.propertyIsEnumerable.call(T,b[f])&&(U[b[f]]=T[b[f]])}return U};const O={app:E.a,namespace:E.i,buildTag:E.b,instanceId:c()};let _={};const x=E.e?w.format.printf(T=>{var{timestamp:C,level:U,message:b,error:f}=T,B=d(T,["timestamp","level","message","error"]);const k=Object.assign(Object.assign({timestamp:C?new Date(C).getTime():new Date().getTime(),level:U.toUpperCase(),message:b},f?{error:A(f)}:{}),{meta:Object.assign(Object.assign(Object.assign({},O),_),B)});try{return JSON.stringify(k)}catch{return g(k)}}):w.format.printf(T=>{var{timestamp:C,level:U,message:b,error:f}=T,B=d(T,["timestamp","level","message","error"]);let k=`${C||new Date().toISOString()} ${U.toUpperCase()}: ${b} `;if(Object.keys(B).length>0)try{k+=JSON.stringify(B)}catch{k+=g(B)}return f&&(k+=`
|
|
2
|
-
${p(f)}`),k}),D=Object(w.createLogger)({level:E.f});if(E.g&&D.add(new w.transports.Console({format:x,level:"debug"})),E.d&&D.add(new h(E.d,()=>Object.assign(Object.assign(Object.assign({},O),_),{level:"debug"}))),E.h){const T=o.resolve(s.tmpdir(),`silly-${E.a}.log`);D.debug("Logging silly logs to file",{filename:T}),D.add(new w.transports.File({filename:T,maxsize:1*i,maxFiles:10,format:w.format.combine((L="silly",Object(w.format)(C=>C.level===L&&C)()),x),level:"silly"}))}var L},function(e,t,r){r.d(t,"a",function(){return n});const n={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:2592e6,year:31536e6}},function(e,t){var r,n,i=e.exports={};function g(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function o(E){if(r===setTimeout)return setTimeout(E,0);if((r===g||!r)&&setTimeout)return r=setTimeout,setTimeout(E,0);try{return r(E,0)}catch{try{return r.call(null,E,0)}catch{return r.call(this,E,0)}}}(function(){try{r=typeof setTimeout=="function"?setTimeout:g}catch{r=g}try{n=typeof clearTimeout=="function"?clearTimeout:s}catch{n=s}})();var l,u=[],m=!1,R=-1;function y(){m&&l&&(m=!1,l.length?u=l.concat(u):R=-1,u.length&&S())}function S(){if(!m){var E=o(y);m=!0;for(var P=u.length;P;){for(l=u,u=[];++R<P;)l&&l[R].run();R=-1,P=u.length}l=null,m=!1,function(F){if(n===clearTimeout)return clearTimeout(F);if((n===s||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(F);try{n(F)}catch{try{return n.call(null,F)}catch{return n.call(this,F)}}}(E)}}function c(E,P){this.fun=E,this.array=P}function w(){}i.nextTick=function(E){var P=new Array(arguments.length-1);if(arguments.length>1)for(var F=1;F<arguments.length;F++)P[F-1]=arguments[F];u.push(new c(E,P)),u.length!==1||m||o(S)},c.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=w,i.addListener=w,i.once=w,i.off=w,i.removeListener=w,i.removeAllListeners=w,i.emit=w,i.prependListener=w,i.prependOnceListener=w,i.listeners=function(E){return[]},i.binding=function(E){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(E){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,r){Object.defineProperty(t,"LEVEL",{value:Symbol.for("level")}),Object.defineProperty(t,"MESSAGE",{value:Symbol.for("message")}),Object.defineProperty(t,"SPLAT",{value:Symbol.for("splat")}),Object.defineProperty(t,"configs",{value:r(117)})},function(e,t,r){(function(n){var i=r(125),g=r(126),s=r(38);function o(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(v,j){if(o()<j)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(v=new Uint8Array(j)).__proto__=u.prototype:(v===null&&(v=new u(j)),v.length=j),v}function u(v,j,W){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(v,j,W);if(typeof v=="number"){if(typeof j=="string")throw new Error("If encoding is specified then the first argument must be a string");return y(this,v)}return m(this,v,j,W)}function m(v,j,W,ee){if(typeof j=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&j instanceof ArrayBuffer?function(J,re,se,oe){if(re.byteLength,se<0||re.byteLength<se)throw new RangeError("'offset' is out of bounds");if(re.byteLength<se+(oe||0))throw new RangeError("'length' is out of bounds");return re=se===void 0&&oe===void 0?new Uint8Array(re):oe===void 0?new Uint8Array(re,se):new Uint8Array(re,se,oe),u.TYPED_ARRAY_SUPPORT?(J=re).__proto__=u.prototype:J=S(J,re),J}(v,j,W,ee):typeof j=="string"?function(J,re,se){if(typeof se=="string"&&se!==""||(se="utf8"),!u.isEncoding(se))throw new TypeError('"encoding" must be a valid string encoding');var oe=0|w(re,se),z=(J=l(J,oe)).write(re,se);return z!==oe&&(J=J.slice(0,z)),J}(v,j,W):function(J,re){if(u.isBuffer(re)){var se=0|c(re.length);return(J=l(J,se)).length===0||re.copy(J,0,0,se),J}if(re){if(typeof ArrayBuffer!="undefined"&&re.buffer instanceof ArrayBuffer||"length"in re)return typeof re.length!="number"||(oe=re.length)!=oe?l(J,0):S(J,re);if(re.type==="Buffer"&&s(re.data))return S(J,re.data)}var oe;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(v,j)}function R(v){if(typeof v!="number")throw new TypeError('"size" argument must be a number');if(v<0)throw new RangeError('"size" argument must not be negative')}function y(v,j){if(R(j),v=l(v,j<0?0:0|c(j)),!u.TYPED_ARRAY_SUPPORT)for(var W=0;W<j;++W)v[W]=0;return v}function S(v,j){var W=j.length<0?0:0|c(j.length);v=l(v,W);for(var ee=0;ee<W;ee+=1)v[ee]=255&j[ee];return v}function c(v){if(v>=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|v}function w(v,j){if(u.isBuffer(v))return v.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(v)||v instanceof ArrayBuffer))return v.byteLength;typeof v!="string"&&(v=""+v);var W=v.length;if(W===0)return 0;for(var ee=!1;;)switch(j){case"ascii":case"latin1":case"binary":return W;case"utf8":case"utf-8":case void 0:return Q(v).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*W;case"hex":return W>>>1;case"base64":return G(v).length;default:if(ee)return Q(v).length;j=(""+j).toLowerCase(),ee=!0}}function E(v,j,W){var ee=!1;if((j===void 0||j<0)&&(j=0),j>this.length||((W===void 0||W>this.length)&&(W=this.length),W<=0)||(W>>>=0)<=(j>>>=0))return"";for(v||(v="utf8");;)switch(v){case"hex":return D(this,j,W);case"utf8":case"utf-8":return O(this,j,W);case"ascii":return _(this,j,W);case"latin1":case"binary":return x(this,j,W);case"base64":return d(this,j,W);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,j,W);default:if(ee)throw new TypeError("Unknown encoding: "+v);v=(v+"").toLowerCase(),ee=!0}}function P(v,j,W){var ee=v[j];v[j]=v[W],v[W]=ee}function F(v,j,W,ee,J){if(v.length===0)return-1;if(typeof W=="string"?(ee=W,W=0):W>2147483647?W=2147483647:W<-2147483648&&(W=-2147483648),W=+W,isNaN(W)&&(W=J?0:v.length-1),W<0&&(W=v.length+W),W>=v.length){if(J)return-1;W=v.length-1}else if(W<0){if(!J)return-1;W=0}if(typeof j=="string"&&(j=u.from(j,ee)),u.isBuffer(j))return j.length===0?-1:M(v,j,W,ee,J);if(typeof j=="number")return j&=255,u.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?J?Uint8Array.prototype.indexOf.call(v,j,W):Uint8Array.prototype.lastIndexOf.call(v,j,W):M(v,[j],W,ee,J);throw new TypeError("val must be string, number or Buffer")}function M(v,j,W,ee,J){var re,se=1,oe=v.length,z=j.length;if(ee!==void 0&&((ee=String(ee).toLowerCase())==="ucs2"||ee==="ucs-2"||ee==="utf16le"||ee==="utf-16le")){if(v.length<2||j.length<2)return-1;se=2,oe/=2,z/=2,W/=2}function Z(he,de){return se===1?he[de]:he.readUInt16BE(de*se)}if(J){var te=-1;for(re=W;re<oe;re++)if(Z(v,re)===Z(j,te===-1?0:re-te)){if(te===-1&&(te=re),re-te+1===z)return te*se}else te!==-1&&(re-=re-te),te=-1}else for(W+z>oe&&(W=oe-z),re=W;re>=0;re--){for(var ce=!0,ae=0;ae<z;ae++)if(Z(v,re+ae)!==Z(j,ae)){ce=!1;break}if(ce)return re}return-1}function A(v,j,W,ee){W=Number(W)||0;var J=v.length-W;ee?(ee=Number(ee))>J&&(ee=J):ee=J;var re=j.length;if(re%2!=0)throw new TypeError("Invalid hex string");ee>re/2&&(ee=re/2);for(var se=0;se<ee;++se){var oe=parseInt(j.substr(2*se,2),16);if(isNaN(oe))return se;v[W+se]=oe}return se}function p(v,j,W,ee){return V(Q(j,v.length-W),v,W,ee)}function N(v,j,W,ee){return V(function(J){for(var re=[],se=0;se<J.length;++se)re.push(255&J.charCodeAt(se));return re}(j),v,W,ee)}function $(v,j,W,ee){return N(v,j,W,ee)}function q(v,j,W,ee){return V(G(j),v,W,ee)}function h(v,j,W,ee){return V(function(J,re){for(var se,oe,z,Z=[],te=0;te<J.length&&!((re-=2)<0);++te)se=J.charCodeAt(te),oe=se>>8,z=se%256,Z.push(z),Z.push(oe);return Z}(j,v.length-W),v,W,ee)}function d(v,j,W){return j===0&&W===v.length?i.fromByteArray(v):i.fromByteArray(v.slice(j,W))}function O(v,j,W){W=Math.min(v.length,W);for(var ee=[],J=j;J<W;){var re,se,oe,z,Z=v[J],te=null,ce=Z>239?4:Z>223?3:Z>191?2:1;if(J+ce<=W)switch(ce){case 1:Z<128&&(te=Z);break;case 2:(192&(re=v[J+1]))==128&&(z=(31&Z)<<6|63&re)>127&&(te=z);break;case 3:re=v[J+1],se=v[J+2],(192&re)==128&&(192&se)==128&&(z=(15&Z)<<12|(63&re)<<6|63&se)>2047&&(z<55296||z>57343)&&(te=z);break;case 4:re=v[J+1],se=v[J+2],oe=v[J+3],(192&re)==128&&(192&se)==128&&(192&oe)==128&&(z=(15&Z)<<18|(63&re)<<12|(63&se)<<6|63&oe)>65535&&z<1114112&&(te=z)}te===null?(te=65533,ce=1):te>65535&&(te-=65536,ee.push(te>>>10&1023|55296),te=56320|1023&te),ee.push(te),J+=ce}return function(ae){var he=ae.length;if(he<=4096)return String.fromCharCode.apply(String,ae);for(var de="",me=0;me<he;)de+=String.fromCharCode.apply(String,ae.slice(me,me+=4096));return de}(ee)}t.Buffer=u,t.SlowBuffer=function(v){return+v!=v&&(v=0),u.alloc(+v)},t.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=n.TYPED_ARRAY_SUPPORT!==void 0?n.TYPED_ARRAY_SUPPORT:function(){try{var v=new Uint8Array(1);return v.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},v.foo()===42&&typeof v.subarray=="function"&&v.subarray(1,1).byteLength===0}catch{return!1}}(),t.kMaxLength=o(),u.poolSize=8192,u._augment=function(v){return v.__proto__=u.prototype,v},u.from=function(v,j,W){return m(null,v,j,W)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(v,j,W){return function(ee,J,re,se){return R(J),J<=0?l(ee,J):re!==void 0?typeof se=="string"?l(ee,J).fill(re,se):l(ee,J).fill(re):l(ee,J)}(null,v,j,W)},u.allocUnsafe=function(v){return y(null,v)},u.allocUnsafeSlow=function(v){return y(null,v)},u.isBuffer=function(v){return!(v==null||!v._isBuffer)},u.compare=function(v,j){if(!u.isBuffer(v)||!u.isBuffer(j))throw new TypeError("Arguments must be Buffers");if(v===j)return 0;for(var W=v.length,ee=j.length,J=0,re=Math.min(W,ee);J<re;++J)if(v[J]!==j[J]){W=v[J],ee=j[J];break}return W<ee?-1:ee<W?1:0},u.isEncoding=function(v){switch(String(v).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}},u.concat=function(v,j){if(!s(v))throw new TypeError('"list" argument must be an Array of Buffers');if(v.length===0)return u.alloc(0);var W;if(j===void 0)for(j=0,W=0;W<v.length;++W)j+=v[W].length;var ee=u.allocUnsafe(j),J=0;for(W=0;W<v.length;++W){var re=v[W];if(!u.isBuffer(re))throw new TypeError('"list" argument must be an Array of Buffers');re.copy(ee,J),J+=re.length}return ee},u.byteLength=w,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var v=this.length;if(v%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var j=0;j<v;j+=2)P(this,j,j+1);return this},u.prototype.swap32=function(){var v=this.length;if(v%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var j=0;j<v;j+=4)P(this,j,j+3),P(this,j+1,j+2);return this},u.prototype.swap64=function(){var v=this.length;if(v%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var j=0;j<v;j+=8)P(this,j,j+7),P(this,j+1,j+6),P(this,j+2,j+5),P(this,j+3,j+4);return this},u.prototype.toString=function(){var v=0|this.length;return v===0?"":arguments.length===0?O(this,0,v):E.apply(this,arguments)},u.prototype.equals=function(v){if(!u.isBuffer(v))throw new TypeError("Argument must be a Buffer");return this===v||u.compare(this,v)===0},u.prototype.inspect=function(){var v="",j=t.INSPECT_MAX_BYTES;return this.length>0&&(v=this.toString("hex",0,j).match(/.{2}/g).join(" "),this.length>j&&(v+=" ... ")),"<Buffer "+v+">"},u.prototype.compare=function(v,j,W,ee,J){if(!u.isBuffer(v))throw new TypeError("Argument must be a Buffer");if(j===void 0&&(j=0),W===void 0&&(W=v?v.length:0),ee===void 0&&(ee=0),J===void 0&&(J=this.length),j<0||W>v.length||ee<0||J>this.length)throw new RangeError("out of range index");if(ee>=J&&j>=W)return 0;if(ee>=J)return-1;if(j>=W)return 1;if(this===v)return 0;for(var re=(J>>>=0)-(ee>>>=0),se=(W>>>=0)-(j>>>=0),oe=Math.min(re,se),z=this.slice(ee,J),Z=v.slice(j,W),te=0;te<oe;++te)if(z[te]!==Z[te]){re=z[te],se=Z[te];break}return re<se?-1:se<re?1:0},u.prototype.includes=function(v,j,W){return this.indexOf(v,j,W)!==-1},u.prototype.indexOf=function(v,j,W){return F(this,v,j,W,!0)},u.prototype.lastIndexOf=function(v,j,W){return F(this,v,j,W,!1)},u.prototype.write=function(v,j,W,ee){if(j===void 0)ee="utf8",W=this.length,j=0;else if(W===void 0&&typeof j=="string")ee=j,W=this.length,j=0;else{if(!isFinite(j))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");j|=0,isFinite(W)?(W|=0,ee===void 0&&(ee="utf8")):(ee=W,W=void 0)}var J=this.length-j;if((W===void 0||W>J)&&(W=J),v.length>0&&(W<0||j<0)||j>this.length)throw new RangeError("Attempt to write outside buffer bounds");ee||(ee="utf8");for(var re=!1;;)switch(ee){case"hex":return A(this,v,j,W);case"utf8":case"utf-8":return p(this,v,j,W);case"ascii":return N(this,v,j,W);case"latin1":case"binary":return $(this,v,j,W);case"base64":return q(this,v,j,W);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return h(this,v,j,W);default:if(re)throw new TypeError("Unknown encoding: "+ee);ee=(""+ee).toLowerCase(),re=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function _(v,j,W){var ee="";W=Math.min(v.length,W);for(var J=j;J<W;++J)ee+=String.fromCharCode(127&v[J]);return ee}function x(v,j,W){var ee="";W=Math.min(v.length,W);for(var J=j;J<W;++J)ee+=String.fromCharCode(v[J]);return ee}function D(v,j,W){var ee=v.length;(!j||j<0)&&(j=0),(!W||W<0||W>ee)&&(W=ee);for(var J="",re=j;re<W;++re)J+=K(v[re]);return J}function L(v,j,W){for(var ee=v.slice(j,W),J="",re=0;re<ee.length;re+=2)J+=String.fromCharCode(ee[re]+256*ee[re+1]);return J}function T(v,j,W){if(v%1!=0||v<0)throw new RangeError("offset is not uint");if(v+j>W)throw new RangeError("Trying to access beyond buffer length")}function C(v,j,W,ee,J,re){if(!u.isBuffer(v))throw new TypeError('"buffer" argument must be a Buffer instance');if(j>J||j<re)throw new RangeError('"value" argument is out of bounds');if(W+ee>v.length)throw new RangeError("Index out of range")}function U(v,j,W,ee){j<0&&(j=65535+j+1);for(var J=0,re=Math.min(v.length-W,2);J<re;++J)v[W+J]=(j&255<<8*(ee?J:1-J))>>>8*(ee?J:1-J)}function b(v,j,W,ee){j<0&&(j=4294967295+j+1);for(var J=0,re=Math.min(v.length-W,4);J<re;++J)v[W+J]=j>>>8*(ee?J:3-J)&255}function f(v,j,W,ee,J,re){if(W+ee>v.length)throw new RangeError("Index out of range");if(W<0)throw new RangeError("Index out of range")}function B(v,j,W,ee,J){return J||f(v,0,W,4),g.write(v,j,W,ee,23,4),W+4}function k(v,j,W,ee,J){return J||f(v,0,W,8),g.write(v,j,W,ee,52,8),W+8}u.prototype.slice=function(v,j){var W,ee=this.length;if((v=~~v)<0?(v+=ee)<0&&(v=0):v>ee&&(v=ee),(j=j===void 0?ee:~~j)<0?(j+=ee)<0&&(j=0):j>ee&&(j=ee),j<v&&(j=v),u.TYPED_ARRAY_SUPPORT)(W=this.subarray(v,j)).__proto__=u.prototype;else{var J=j-v;W=new u(J,void 0);for(var re=0;re<J;++re)W[re]=this[re+v]}return W},u.prototype.readUIntLE=function(v,j,W){v|=0,j|=0,W||T(v,j,this.length);for(var ee=this[v],J=1,re=0;++re<j&&(J*=256);)ee+=this[v+re]*J;return ee},u.prototype.readUIntBE=function(v,j,W){v|=0,j|=0,W||T(v,j,this.length);for(var ee=this[v+--j],J=1;j>0&&(J*=256);)ee+=this[v+--j]*J;return ee},u.prototype.readUInt8=function(v,j){return j||T(v,1,this.length),this[v]},u.prototype.readUInt16LE=function(v,j){return j||T(v,2,this.length),this[v]|this[v+1]<<8},u.prototype.readUInt16BE=function(v,j){return j||T(v,2,this.length),this[v]<<8|this[v+1]},u.prototype.readUInt32LE=function(v,j){return j||T(v,4,this.length),(this[v]|this[v+1]<<8|this[v+2]<<16)+16777216*this[v+3]},u.prototype.readUInt32BE=function(v,j){return j||T(v,4,this.length),16777216*this[v]+(this[v+1]<<16|this[v+2]<<8|this[v+3])},u.prototype.readIntLE=function(v,j,W){v|=0,j|=0,W||T(v,j,this.length);for(var ee=this[v],J=1,re=0;++re<j&&(J*=256);)ee+=this[v+re]*J;return ee>=(J*=128)&&(ee-=Math.pow(2,8*j)),ee},u.prototype.readIntBE=function(v,j,W){v|=0,j|=0,W||T(v,j,this.length);for(var ee=j,J=1,re=this[v+--ee];ee>0&&(J*=256);)re+=this[v+--ee]*J;return re>=(J*=128)&&(re-=Math.pow(2,8*j)),re},u.prototype.readInt8=function(v,j){return j||T(v,1,this.length),128&this[v]?-1*(255-this[v]+1):this[v]},u.prototype.readInt16LE=function(v,j){j||T(v,2,this.length);var W=this[v]|this[v+1]<<8;return 32768&W?4294901760|W:W},u.prototype.readInt16BE=function(v,j){j||T(v,2,this.length);var W=this[v+1]|this[v]<<8;return 32768&W?4294901760|W:W},u.prototype.readInt32LE=function(v,j){return j||T(v,4,this.length),this[v]|this[v+1]<<8|this[v+2]<<16|this[v+3]<<24},u.prototype.readInt32BE=function(v,j){return j||T(v,4,this.length),this[v]<<24|this[v+1]<<16|this[v+2]<<8|this[v+3]},u.prototype.readFloatLE=function(v,j){return j||T(v,4,this.length),g.read(this,v,!0,23,4)},u.prototype.readFloatBE=function(v,j){return j||T(v,4,this.length),g.read(this,v,!1,23,4)},u.prototype.readDoubleLE=function(v,j){return j||T(v,8,this.length),g.read(this,v,!0,52,8)},u.prototype.readDoubleBE=function(v,j){return j||T(v,8,this.length),g.read(this,v,!1,52,8)},u.prototype.writeUIntLE=function(v,j,W,ee){v=+v,j|=0,W|=0,ee||C(this,v,j,W,Math.pow(2,8*W)-1,0);var J=1,re=0;for(this[j]=255&v;++re<W&&(J*=256);)this[j+re]=v/J&255;return j+W},u.prototype.writeUIntBE=function(v,j,W,ee){v=+v,j|=0,W|=0,ee||C(this,v,j,W,Math.pow(2,8*W)-1,0);var J=W-1,re=1;for(this[j+J]=255&v;--J>=0&&(re*=256);)this[j+J]=v/re&255;return j+W},u.prototype.writeUInt8=function(v,j,W){return v=+v,j|=0,W||C(this,v,j,1,255,0),u.TYPED_ARRAY_SUPPORT||(v=Math.floor(v)),this[j]=255&v,j+1},u.prototype.writeUInt16LE=function(v,j,W){return v=+v,j|=0,W||C(this,v,j,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[j]=255&v,this[j+1]=v>>>8):U(this,v,j,!0),j+2},u.prototype.writeUInt16BE=function(v,j,W){return v=+v,j|=0,W||C(this,v,j,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[j]=v>>>8,this[j+1]=255&v):U(this,v,j,!1),j+2},u.prototype.writeUInt32LE=function(v,j,W){return v=+v,j|=0,W||C(this,v,j,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[j+3]=v>>>24,this[j+2]=v>>>16,this[j+1]=v>>>8,this[j]=255&v):b(this,v,j,!0),j+4},u.prototype.writeUInt32BE=function(v,j,W){return v=+v,j|=0,W||C(this,v,j,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[j]=v>>>24,this[j+1]=v>>>16,this[j+2]=v>>>8,this[j+3]=255&v):b(this,v,j,!1),j+4},u.prototype.writeIntLE=function(v,j,W,ee){if(v=+v,j|=0,!ee){var J=Math.pow(2,8*W-1);C(this,v,j,W,J-1,-J)}var re=0,se=1,oe=0;for(this[j]=255&v;++re<W&&(se*=256);)v<0&&oe===0&&this[j+re-1]!==0&&(oe=1),this[j+re]=(v/se>>0)-oe&255;return j+W},u.prototype.writeIntBE=function(v,j,W,ee){if(v=+v,j|=0,!ee){var J=Math.pow(2,8*W-1);C(this,v,j,W,J-1,-J)}var re=W-1,se=1,oe=0;for(this[j+re]=255&v;--re>=0&&(se*=256);)v<0&&oe===0&&this[j+re+1]!==0&&(oe=1),this[j+re]=(v/se>>0)-oe&255;return j+W},u.prototype.writeInt8=function(v,j,W){return v=+v,j|=0,W||C(this,v,j,1,127,-128),u.TYPED_ARRAY_SUPPORT||(v=Math.floor(v)),v<0&&(v=255+v+1),this[j]=255&v,j+1},u.prototype.writeInt16LE=function(v,j,W){return v=+v,j|=0,W||C(this,v,j,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[j]=255&v,this[j+1]=v>>>8):U(this,v,j,!0),j+2},u.prototype.writeInt16BE=function(v,j,W){return v=+v,j|=0,W||C(this,v,j,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[j]=v>>>8,this[j+1]=255&v):U(this,v,j,!1),j+2},u.prototype.writeInt32LE=function(v,j,W){return v=+v,j|=0,W||C(this,v,j,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[j]=255&v,this[j+1]=v>>>8,this[j+2]=v>>>16,this[j+3]=v>>>24):b(this,v,j,!0),j+4},u.prototype.writeInt32BE=function(v,j,W){return v=+v,j|=0,W||C(this,v,j,4,2147483647,-2147483648),v<0&&(v=4294967295+v+1),u.TYPED_ARRAY_SUPPORT?(this[j]=v>>>24,this[j+1]=v>>>16,this[j+2]=v>>>8,this[j+3]=255&v):b(this,v,j,!1),j+4},u.prototype.writeFloatLE=function(v,j,W){return B(this,v,j,!0,W)},u.prototype.writeFloatBE=function(v,j,W){return B(this,v,j,!1,W)},u.prototype.writeDoubleLE=function(v,j,W){return k(this,v,j,!0,W)},u.prototype.writeDoubleBE=function(v,j,W){return k(this,v,j,!1,W)},u.prototype.copy=function(v,j,W,ee){if(W||(W=0),ee||ee===0||(ee=this.length),j>=v.length&&(j=v.length),j||(j=0),ee>0&&ee<W&&(ee=W),ee===W||v.length===0||this.length===0)return 0;if(j<0)throw new RangeError("targetStart out of bounds");if(W<0||W>=this.length)throw new RangeError("sourceStart out of bounds");if(ee<0)throw new RangeError("sourceEnd out of bounds");ee>this.length&&(ee=this.length),v.length-j<ee-W&&(ee=v.length-j+W);var J,re=ee-W;if(this===v&&W<j&&j<ee)for(J=re-1;J>=0;--J)v[J+j]=this[J+W];else if(re<1e3||!u.TYPED_ARRAY_SUPPORT)for(J=0;J<re;++J)v[J+j]=this[J+W];else Uint8Array.prototype.set.call(v,this.subarray(W,W+re),j);return re},u.prototype.fill=function(v,j,W,ee){if(typeof v=="string"){if(typeof j=="string"?(ee=j,j=0,W=this.length):typeof W=="string"&&(ee=W,W=this.length),v.length===1){var J=v.charCodeAt(0);J<256&&(v=J)}if(ee!==void 0&&typeof ee!="string")throw new TypeError("encoding must be a string");if(typeof ee=="string"&&!u.isEncoding(ee))throw new TypeError("Unknown encoding: "+ee)}else typeof v=="number"&&(v&=255);if(j<0||this.length<j||this.length<W)throw new RangeError("Out of range index");if(W<=j)return this;var re;if(j>>>=0,W=W===void 0?this.length:W>>>0,v||(v=0),typeof v=="number")for(re=j;re<W;++re)this[re]=v;else{var se=u.isBuffer(v)?v:Q(new u(v,ee).toString()),oe=se.length;for(re=0;re<W-j;++re)this[re+j]=se[re%oe]}return this};var Y=/[^+\/0-9A-Za-z-_]/g;function K(v){return v<16?"0"+v.toString(16):v.toString(16)}function Q(v,j){var W;j=j||1/0;for(var ee=v.length,J=null,re=[],se=0;se<ee;++se){if((W=v.charCodeAt(se))>55295&&W<57344){if(!J){if(W>56319){(j-=3)>-1&&re.push(239,191,189);continue}if(se+1===ee){(j-=3)>-1&&re.push(239,191,189);continue}J=W;continue}if(W<56320){(j-=3)>-1&&re.push(239,191,189),J=W;continue}W=65536+(J-55296<<10|W-56320)}else J&&(j-=3)>-1&&re.push(239,191,189);if(J=null,W<128){if((j-=1)<0)break;re.push(W)}else if(W<2048){if((j-=2)<0)break;re.push(W>>6|192,63&W|128)}else if(W<65536){if((j-=3)<0)break;re.push(W>>12|224,W>>6&63|128,63&W|128)}else{if(!(W<1114112))throw new Error("Invalid code point");if((j-=4)<0)break;re.push(W>>18|240,W>>12&63|128,W>>6&63|128,63&W|128)}}return re}function G(v){return i.toByteArray(function(j){if((j=function(W){return W.trim?W.trim():W.replace(/^\s+|\s+$/g,"")}(j).replace(Y,"")).length<2)return"";for(;j.length%4!=0;)j+="=";return j}(v))}function V(v,j,W,ee){for(var J=0;J<ee&&!(J+W>=j.length||J>=v.length);++J)j[J+W]=v[J];return J}}).call(this,r(5))},function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch{typeof window=="object"&&(r=window)}e.exports=r},function(e,t){typeof Object.create=="function"?e.exports=function(r,n){n&&(r.super_=n,r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(r,n){if(n){r.super_=n;var i=function(){};i.prototype=n.prototype,r.prototype=new i,r.prototype.constructor=r}}},function(e,t,r){(function(n){r.d(t,"a",function(){return s}),r.d(t,"i",function(){return o}),r.d(t,"j",function(){return l}),r.d(t,"b",function(){return u}),r.d(t,"f",function(){return m}),r.d(t,"e",function(){return R}),r.d(t,"g",function(){return y}),r.d(t,"d",function(){return S}),r.d(t,"c",function(){return c}),r.d(t,"h",function(){return w});var i=r(98);const g=i.from(Object.assign(Object.assign({},n.env),{ENVIRONMENT:n.env.ENV,APP:"realtime-sdk",NAMESPACE:"production",ON_PREMISE_DEPLOYMENT:n.env.ON_PREMISE_DEPLOYMENT,VERSION:n.env.VERSION,BUILD_TAG:n.env.BUILD_TAG,GIT_COMMIT:n.env.GIT_COMMIT,LOG_LEVEL:n.env.LOG_LEVEL,LOG_JSON:"false",LOG_API_ENDPOINT:n.env.LOG_API_ENDPOINT,JEST_WORKER_ID:n.env.JEST_WORKER_ID,ENABLE_SENTRY:n.env.ENABLE_SENTRY,SENTRY_DSN:n.env.SENTRY_DSN,STABLE_AGENT_VERSION:n.env.STABLE_AGENT_VERSION})),s=(g.get("ENVIRONMENT").default("").asString(),g.get("APP").default("").asString()),o=(g.get("APP_PATH").default("").asString(),g.get("API_ENDPOINT").default("").asString(),g.get("NAMESPACE").default("").asString()),l=g.get("VERSION").default("").asString(),u=g.get("BUILD_TAG").default("").asString(),m=(g.get("GIT_COMMIT").default("").asString(),g.get("ENABLE_SENTRY").default("false").asBool(),g.get("SENTRY_DSN").default("").asString(),g.get("LOG_LEVEL").default("debug").asString()),R=g.get("LOG_JSON").default("true").asBool(),y=g.get("LOG_TO_CONSOLE").default("true").asBool(),S=(g.get("STABLE_AGENT_VERSION").default("").asString(),g.get("LOG_API_ENDPOINT").asString()),c=g.get("JEST_WORKER_ID").asString(),w=(g.get("SHEET_EXPORT_MAX_ROW_COUNT").default("10000").asIntPositive(),g.get("LOG_TO_FILE").default("false").asBoolStrict())}).call(this,r(2))},function(e,t,r){function n(y){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(S){return typeof S}:function(S){return S&&typeof Symbol=="function"&&S.constructor===Symbol&&S!==Symbol.prototype?"symbol":typeof S})(y)}function i(y,S){return!S||n(S)!=="object"&&typeof S!="function"?g(y):S}function g(y){if(y===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y}function s(y){var S=typeof Map=="function"?new Map:void 0;return(s=function(c){if(c===null||(w=c,Function.toString.call(w).indexOf("[native code]")===-1))return c;var w;if(typeof c!="function")throw new TypeError("Super expression must either be null or a function");if(S!==void 0){if(S.has(c))return S.get(c);S.set(c,E)}function E(){return o(c,arguments,m(this).constructor)}return E.prototype=Object.create(c.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}),u(E,c)})(y)}function o(y,S,c){return(o=l()?Reflect.construct:function(w,E,P){var F=[null];F.push.apply(F,E);var M=new(Function.bind.apply(w,F));return P&&u(M,P.prototype),M}).apply(null,arguments)}function l(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function u(y,S){return(u=Object.setPrototypeOf||function(c,w){return c.__proto__=w,c})(y,S)}function m(y){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(S){return S.__proto__||Object.getPrototypeOf(S)})(y)}var R=function(y){(function(P,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function");P.prototype=Object.create(F&&F.prototype,{constructor:{value:P,writable:!0,configurable:!0}}),F&&u(P,F)})(E,y);var S,c,w=(S=E,c=l(),function(){var P,F=m(S);if(c){var M=m(this).constructor;P=Reflect.construct(F,arguments,M)}else P=F.apply(this,arguments);return i(this,P)});function E(P){var F;return function(M,A){if(!(M instanceof A))throw new TypeError("Cannot call a class as a function")}(this,E),F=w.call(this,`Format functions must be synchronous taking a two arguments: (info, opts)
|
|
2
|
+
${p(f)}`),k}),D=Object(w.createLogger)({level:E.f});if(E.g&&D.add(new w.transports.Console({format:x,level:"debug"})),E.d&&D.add(new h(E.d,()=>Object.assign(Object.assign(Object.assign({},O),_),{level:"debug"}))),E.h){const T=o.resolve(s.tmpdir(),`silly-${E.a}.log`);D.debug("Logging silly logs to file",{filename:T}),D.add(new w.transports.File({filename:T,maxsize:1*i,maxFiles:10,format:w.format.combine((L="silly",Object(w.format)(C=>C.level===L&&C)()),x),level:"silly"}))}var L},function(e,t,r){r.d(t,"a",function(){return n});const n={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:2592e6,year:31536e6}},function(e,t){var r,n,i=e.exports={};function g(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function o(E){if(r===setTimeout)return setTimeout(E,0);if((r===g||!r)&&setTimeout)return r=setTimeout,setTimeout(E,0);try{return r(E,0)}catch{try{return r.call(null,E,0)}catch{return r.call(this,E,0)}}}(function(){try{r=typeof setTimeout=="function"?setTimeout:g}catch{r=g}try{n=typeof clearTimeout=="function"?clearTimeout:s}catch{n=s}})();var l,u=[],m=!1,R=-1;function y(){m&&l&&(m=!1,l.length?u=l.concat(u):R=-1,u.length&&S())}function S(){if(!m){var E=o(y);m=!0;for(var P=u.length;P;){for(l=u,u=[];++R<P;)l&&l[R].run();R=-1,P=u.length}l=null,m=!1,function(F){if(n===clearTimeout)return clearTimeout(F);if((n===s||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(F);try{n(F)}catch{try{return n.call(null,F)}catch{return n.call(this,F)}}}(E)}}function c(E,P){this.fun=E,this.array=P}function w(){}i.nextTick=function(E){var P=new Array(arguments.length-1);if(arguments.length>1)for(var F=1;F<arguments.length;F++)P[F-1]=arguments[F];u.push(new c(E,P)),u.length!==1||m||o(S)},c.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=w,i.addListener=w,i.once=w,i.off=w,i.removeListener=w,i.removeAllListeners=w,i.emit=w,i.prependListener=w,i.prependOnceListener=w,i.listeners=function(E){return[]},i.binding=function(E){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(E){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,r){Object.defineProperty(t,"LEVEL",{value:Symbol.for("level")}),Object.defineProperty(t,"MESSAGE",{value:Symbol.for("message")}),Object.defineProperty(t,"SPLAT",{value:Symbol.for("splat")}),Object.defineProperty(t,"configs",{value:r(117)})},function(e,t,r){(function(n){var i=r(125),g=r(126),s=r(38);function o(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(v,j){if(o()<j)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(v=new Uint8Array(j)).__proto__=u.prototype:(v===null&&(v=new u(j)),v.length=j),v}function u(v,j,W){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(v,j,W);if(typeof v=="number"){if(typeof j=="string")throw new Error("If encoding is specified then the first argument must be a string");return y(this,v)}return m(this,v,j,W)}function m(v,j,W,ee){if(typeof j=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&j instanceof ArrayBuffer?function(J,re,se,oe){if(re.byteLength,se<0||re.byteLength<se)throw new RangeError("'offset' is out of bounds");if(re.byteLength<se+(oe||0))throw new RangeError("'length' is out of bounds");return re=se===void 0&&oe===void 0?new Uint8Array(re):oe===void 0?new Uint8Array(re,se):new Uint8Array(re,se,oe),u.TYPED_ARRAY_SUPPORT?(J=re).__proto__=u.prototype:J=S(J,re),J}(v,j,W,ee):typeof j=="string"?function(J,re,se){if(typeof se=="string"&&se!==""||(se="utf8"),!u.isEncoding(se))throw new TypeError('"encoding" must be a valid string encoding');var oe=0|w(re,se),z=(J=l(J,oe)).write(re,se);return z!==oe&&(J=J.slice(0,z)),J}(v,j,W):function(J,re){if(u.isBuffer(re)){var se=0|c(re.length);return(J=l(J,se)).length===0||re.copy(J,0,0,se),J}if(re){if(typeof ArrayBuffer!="undefined"&&re.buffer instanceof ArrayBuffer||"length"in re)return typeof re.length!="number"||(oe=re.length)!=oe?l(J,0):S(J,re);if(re.type==="Buffer"&&s(re.data))return S(J,re.data)}var oe;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(v,j)}function R(v){if(typeof v!="number")throw new TypeError('"size" argument must be a number');if(v<0)throw new RangeError('"size" argument must not be negative')}function y(v,j){if(R(j),v=l(v,j<0?0:0|c(j)),!u.TYPED_ARRAY_SUPPORT)for(var W=0;W<j;++W)v[W]=0;return v}function S(v,j){var W=j.length<0?0:0|c(j.length);v=l(v,W);for(var ee=0;ee<W;ee+=1)v[ee]=255&j[ee];return v}function c(v){if(v>=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|v}function w(v,j){if(u.isBuffer(v))return v.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(v)||v instanceof ArrayBuffer))return v.byteLength;typeof v!="string"&&(v=""+v);var W=v.length;if(W===0)return 0;for(var ee=!1;;)switch(j){case"ascii":case"latin1":case"binary":return W;case"utf8":case"utf-8":case void 0:return Q(v).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*W;case"hex":return W>>>1;case"base64":return G(v).length;default:if(ee)return Q(v).length;j=(""+j).toLowerCase(),ee=!0}}function E(v,j,W){var ee=!1;if((j===void 0||j<0)&&(j=0),j>this.length||((W===void 0||W>this.length)&&(W=this.length),W<=0)||(W>>>=0)<=(j>>>=0))return"";for(v||(v="utf8");;)switch(v){case"hex":return D(this,j,W);case"utf8":case"utf-8":return O(this,j,W);case"ascii":return _(this,j,W);case"latin1":case"binary":return x(this,j,W);case"base64":return d(this,j,W);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,j,W);default:if(ee)throw new TypeError("Unknown encoding: "+v);v=(v+"").toLowerCase(),ee=!0}}function P(v,j,W){var ee=v[j];v[j]=v[W],v[W]=ee}function F(v,j,W,ee,J){if(v.length===0)return-1;if(typeof W=="string"?(ee=W,W=0):W>2147483647?W=2147483647:W<-2147483648&&(W=-2147483648),W=+W,isNaN(W)&&(W=J?0:v.length-1),W<0&&(W=v.length+W),W>=v.length){if(J)return-1;W=v.length-1}else if(W<0){if(!J)return-1;W=0}if(typeof j=="string"&&(j=u.from(j,ee)),u.isBuffer(j))return j.length===0?-1:M(v,j,W,ee,J);if(typeof j=="number")return j&=255,u.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?J?Uint8Array.prototype.indexOf.call(v,j,W):Uint8Array.prototype.lastIndexOf.call(v,j,W):M(v,[j],W,ee,J);throw new TypeError("val must be string, number or Buffer")}function M(v,j,W,ee,J){var re,se=1,oe=v.length,z=j.length;if(ee!==void 0&&((ee=String(ee).toLowerCase())==="ucs2"||ee==="ucs-2"||ee==="utf16le"||ee==="utf-16le")){if(v.length<2||j.length<2)return-1;se=2,oe/=2,z/=2,W/=2}function Z(he,de){return se===1?he[de]:he.readUInt16BE(de*se)}if(J){var te=-1;for(re=W;re<oe;re++)if(Z(v,re)===Z(j,te===-1?0:re-te)){if(te===-1&&(te=re),re-te+1===z)return te*se}else te!==-1&&(re-=re-te),te=-1}else for(W+z>oe&&(W=oe-z),re=W;re>=0;re--){for(var ce=!0,ae=0;ae<z;ae++)if(Z(v,re+ae)!==Z(j,ae)){ce=!1;break}if(ce)return re}return-1}function A(v,j,W,ee){W=Number(W)||0;var J=v.length-W;ee?(ee=Number(ee))>J&&(ee=J):ee=J;var re=j.length;if(re%2!=0)throw new TypeError("Invalid hex string");ee>re/2&&(ee=re/2);for(var se=0;se<ee;++se){var oe=parseInt(j.substr(2*se,2),16);if(isNaN(oe))return se;v[W+se]=oe}return se}function p(v,j,W,ee){return V(Q(j,v.length-W),v,W,ee)}function N(v,j,W,ee){return V(function(J){for(var re=[],se=0;se<J.length;++se)re.push(255&J.charCodeAt(se));return re}(j),v,W,ee)}function $(v,j,W,ee){return N(v,j,W,ee)}function q(v,j,W,ee){return V(G(j),v,W,ee)}function h(v,j,W,ee){return V(function(J,re){for(var se,oe,z,Z=[],te=0;te<J.length&&!((re-=2)<0);++te)se=J.charCodeAt(te),oe=se>>8,z=se%256,Z.push(z),Z.push(oe);return Z}(j,v.length-W),v,W,ee)}function d(v,j,W){return j===0&&W===v.length?i.fromByteArray(v):i.fromByteArray(v.slice(j,W))}function O(v,j,W){W=Math.min(v.length,W);for(var ee=[],J=j;J<W;){var re,se,oe,z,Z=v[J],te=null,ce=Z>239?4:Z>223?3:Z>191?2:1;if(J+ce<=W)switch(ce){case 1:Z<128&&(te=Z);break;case 2:(192&(re=v[J+1]))==128&&(z=(31&Z)<<6|63&re)>127&&(te=z);break;case 3:re=v[J+1],se=v[J+2],(192&re)==128&&(192&se)==128&&(z=(15&Z)<<12|(63&re)<<6|63&se)>2047&&(z<55296||z>57343)&&(te=z);break;case 4:re=v[J+1],se=v[J+2],oe=v[J+3],(192&re)==128&&(192&se)==128&&(192&oe)==128&&(z=(15&Z)<<18|(63&re)<<12|(63&se)<<6|63&oe)>65535&&z<1114112&&(te=z)}te===null?(te=65533,ce=1):te>65535&&(te-=65536,ee.push(te>>>10&1023|55296),te=56320|1023&te),ee.push(te),J+=ce}return function(ae){var he=ae.length;if(he<=4096)return String.fromCharCode.apply(String,ae);for(var de="",me=0;me<he;)de+=String.fromCharCode.apply(String,ae.slice(me,me+=4096));return de}(ee)}t.Buffer=u,t.SlowBuffer=function(v){return+v!=v&&(v=0),u.alloc(+v)},t.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=n.TYPED_ARRAY_SUPPORT!==void 0?n.TYPED_ARRAY_SUPPORT:function(){try{var v=new Uint8Array(1);return v.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},v.foo()===42&&typeof v.subarray=="function"&&v.subarray(1,1).byteLength===0}catch{return!1}}(),t.kMaxLength=o(),u.poolSize=8192,u._augment=function(v){return v.__proto__=u.prototype,v},u.from=function(v,j,W){return m(null,v,j,W)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(v,j,W){return function(ee,J,re,se){return R(J),J<=0?l(ee,J):re!==void 0?typeof se=="string"?l(ee,J).fill(re,se):l(ee,J).fill(re):l(ee,J)}(null,v,j,W)},u.allocUnsafe=function(v){return y(null,v)},u.allocUnsafeSlow=function(v){return y(null,v)},u.isBuffer=function(v){return!(v==null||!v._isBuffer)},u.compare=function(v,j){if(!u.isBuffer(v)||!u.isBuffer(j))throw new TypeError("Arguments must be Buffers");if(v===j)return 0;for(var W=v.length,ee=j.length,J=0,re=Math.min(W,ee);J<re;++J)if(v[J]!==j[J]){W=v[J],ee=j[J];break}return W<ee?-1:ee<W?1:0},u.isEncoding=function(v){switch(String(v).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}},u.concat=function(v,j){if(!s(v))throw new TypeError('"list" argument must be an Array of Buffers');if(v.length===0)return u.alloc(0);var W;if(j===void 0)for(j=0,W=0;W<v.length;++W)j+=v[W].length;var ee=u.allocUnsafe(j),J=0;for(W=0;W<v.length;++W){var re=v[W];if(!u.isBuffer(re))throw new TypeError('"list" argument must be an Array of Buffers');re.copy(ee,J),J+=re.length}return ee},u.byteLength=w,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var v=this.length;if(v%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var j=0;j<v;j+=2)P(this,j,j+1);return this},u.prototype.swap32=function(){var v=this.length;if(v%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var j=0;j<v;j+=4)P(this,j,j+3),P(this,j+1,j+2);return this},u.prototype.swap64=function(){var v=this.length;if(v%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var j=0;j<v;j+=8)P(this,j,j+7),P(this,j+1,j+6),P(this,j+2,j+5),P(this,j+3,j+4);return this},u.prototype.toString=function(){var v=0|this.length;return v===0?"":arguments.length===0?O(this,0,v):E.apply(this,arguments)},u.prototype.equals=function(v){if(!u.isBuffer(v))throw new TypeError("Argument must be a Buffer");return this===v||u.compare(this,v)===0},u.prototype.inspect=function(){var v="",j=t.INSPECT_MAX_BYTES;return this.length>0&&(v=this.toString("hex",0,j).match(/.{2}/g).join(" "),this.length>j&&(v+=" ... ")),"<Buffer "+v+">"},u.prototype.compare=function(v,j,W,ee,J){if(!u.isBuffer(v))throw new TypeError("Argument must be a Buffer");if(j===void 0&&(j=0),W===void 0&&(W=v?v.length:0),ee===void 0&&(ee=0),J===void 0&&(J=this.length),j<0||W>v.length||ee<0||J>this.length)throw new RangeError("out of range index");if(ee>=J&&j>=W)return 0;if(ee>=J)return-1;if(j>=W)return 1;if(this===v)return 0;for(var re=(J>>>=0)-(ee>>>=0),se=(W>>>=0)-(j>>>=0),oe=Math.min(re,se),z=this.slice(ee,J),Z=v.slice(j,W),te=0;te<oe;++te)if(z[te]!==Z[te]){re=z[te],se=Z[te];break}return re<se?-1:se<re?1:0},u.prototype.includes=function(v,j,W){return this.indexOf(v,j,W)!==-1},u.prototype.indexOf=function(v,j,W){return F(this,v,j,W,!0)},u.prototype.lastIndexOf=function(v,j,W){return F(this,v,j,W,!1)},u.prototype.write=function(v,j,W,ee){if(j===void 0)ee="utf8",W=this.length,j=0;else if(W===void 0&&typeof j=="string")ee=j,W=this.length,j=0;else{if(!isFinite(j))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");j|=0,isFinite(W)?(W|=0,ee===void 0&&(ee="utf8")):(ee=W,W=void 0)}var J=this.length-j;if((W===void 0||W>J)&&(W=J),v.length>0&&(W<0||j<0)||j>this.length)throw new RangeError("Attempt to write outside buffer bounds");ee||(ee="utf8");for(var re=!1;;)switch(ee){case"hex":return A(this,v,j,W);case"utf8":case"utf-8":return p(this,v,j,W);case"ascii":return N(this,v,j,W);case"latin1":case"binary":return $(this,v,j,W);case"base64":return q(this,v,j,W);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return h(this,v,j,W);default:if(re)throw new TypeError("Unknown encoding: "+ee);ee=(""+ee).toLowerCase(),re=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function _(v,j,W){var ee="";W=Math.min(v.length,W);for(var J=j;J<W;++J)ee+=String.fromCharCode(127&v[J]);return ee}function x(v,j,W){var ee="";W=Math.min(v.length,W);for(var J=j;J<W;++J)ee+=String.fromCharCode(v[J]);return ee}function D(v,j,W){var ee=v.length;(!j||j<0)&&(j=0),(!W||W<0||W>ee)&&(W=ee);for(var J="",re=j;re<W;++re)J+=K(v[re]);return J}function L(v,j,W){for(var ee=v.slice(j,W),J="",re=0;re<ee.length;re+=2)J+=String.fromCharCode(ee[re]+256*ee[re+1]);return J}function T(v,j,W){if(v%1!=0||v<0)throw new RangeError("offset is not uint");if(v+j>W)throw new RangeError("Trying to access beyond buffer length")}function C(v,j,W,ee,J,re){if(!u.isBuffer(v))throw new TypeError('"buffer" argument must be a Buffer instance');if(j>J||j<re)throw new RangeError('"value" argument is out of bounds');if(W+ee>v.length)throw new RangeError("Index out of range")}function U(v,j,W,ee){j<0&&(j=65535+j+1);for(var J=0,re=Math.min(v.length-W,2);J<re;++J)v[W+J]=(j&255<<8*(ee?J:1-J))>>>8*(ee?J:1-J)}function b(v,j,W,ee){j<0&&(j=4294967295+j+1);for(var J=0,re=Math.min(v.length-W,4);J<re;++J)v[W+J]=j>>>8*(ee?J:3-J)&255}function f(v,j,W,ee,J,re){if(W+ee>v.length)throw new RangeError("Index out of range");if(W<0)throw new RangeError("Index out of range")}function B(v,j,W,ee,J){return J||f(v,0,W,4),g.write(v,j,W,ee,23,4),W+4}function k(v,j,W,ee,J){return J||f(v,0,W,8),g.write(v,j,W,ee,52,8),W+8}u.prototype.slice=function(v,j){var W,ee=this.length;if((v=~~v)<0?(v+=ee)<0&&(v=0):v>ee&&(v=ee),(j=j===void 0?ee:~~j)<0?(j+=ee)<0&&(j=0):j>ee&&(j=ee),j<v&&(j=v),u.TYPED_ARRAY_SUPPORT)(W=this.subarray(v,j)).__proto__=u.prototype;else{var J=j-v;W=new u(J,void 0);for(var re=0;re<J;++re)W[re]=this[re+v]}return W},u.prototype.readUIntLE=function(v,j,W){v|=0,j|=0,W||T(v,j,this.length);for(var ee=this[v],J=1,re=0;++re<j&&(J*=256);)ee+=this[v+re]*J;return ee},u.prototype.readUIntBE=function(v,j,W){v|=0,j|=0,W||T(v,j,this.length);for(var ee=this[v+--j],J=1;j>0&&(J*=256);)ee+=this[v+--j]*J;return ee},u.prototype.readUInt8=function(v,j){return j||T(v,1,this.length),this[v]},u.prototype.readUInt16LE=function(v,j){return j||T(v,2,this.length),this[v]|this[v+1]<<8},u.prototype.readUInt16BE=function(v,j){return j||T(v,2,this.length),this[v]<<8|this[v+1]},u.prototype.readUInt32LE=function(v,j){return j||T(v,4,this.length),(this[v]|this[v+1]<<8|this[v+2]<<16)+16777216*this[v+3]},u.prototype.readUInt32BE=function(v,j){return j||T(v,4,this.length),16777216*this[v]+(this[v+1]<<16|this[v+2]<<8|this[v+3])},u.prototype.readIntLE=function(v,j,W){v|=0,j|=0,W||T(v,j,this.length);for(var ee=this[v],J=1,re=0;++re<j&&(J*=256);)ee+=this[v+re]*J;return ee>=(J*=128)&&(ee-=Math.pow(2,8*j)),ee},u.prototype.readIntBE=function(v,j,W){v|=0,j|=0,W||T(v,j,this.length);for(var ee=j,J=1,re=this[v+--ee];ee>0&&(J*=256);)re+=this[v+--ee]*J;return re>=(J*=128)&&(re-=Math.pow(2,8*j)),re},u.prototype.readInt8=function(v,j){return j||T(v,1,this.length),128&this[v]?-1*(255-this[v]+1):this[v]},u.prototype.readInt16LE=function(v,j){j||T(v,2,this.length);var W=this[v]|this[v+1]<<8;return 32768&W?4294901760|W:W},u.prototype.readInt16BE=function(v,j){j||T(v,2,this.length);var W=this[v+1]|this[v]<<8;return 32768&W?4294901760|W:W},u.prototype.readInt32LE=function(v,j){return j||T(v,4,this.length),this[v]|this[v+1]<<8|this[v+2]<<16|this[v+3]<<24},u.prototype.readInt32BE=function(v,j){return j||T(v,4,this.length),this[v]<<24|this[v+1]<<16|this[v+2]<<8|this[v+3]},u.prototype.readFloatLE=function(v,j){return j||T(v,4,this.length),g.read(this,v,!0,23,4)},u.prototype.readFloatBE=function(v,j){return j||T(v,4,this.length),g.read(this,v,!1,23,4)},u.prototype.readDoubleLE=function(v,j){return j||T(v,8,this.length),g.read(this,v,!0,52,8)},u.prototype.readDoubleBE=function(v,j){return j||T(v,8,this.length),g.read(this,v,!1,52,8)},u.prototype.writeUIntLE=function(v,j,W,ee){v=+v,j|=0,W|=0,ee||C(this,v,j,W,Math.pow(2,8*W)-1,0);var J=1,re=0;for(this[j]=255&v;++re<W&&(J*=256);)this[j+re]=v/J&255;return j+W},u.prototype.writeUIntBE=function(v,j,W,ee){v=+v,j|=0,W|=0,ee||C(this,v,j,W,Math.pow(2,8*W)-1,0);var J=W-1,re=1;for(this[j+J]=255&v;--J>=0&&(re*=256);)this[j+J]=v/re&255;return j+W},u.prototype.writeUInt8=function(v,j,W){return v=+v,j|=0,W||C(this,v,j,1,255,0),u.TYPED_ARRAY_SUPPORT||(v=Math.floor(v)),this[j]=255&v,j+1},u.prototype.writeUInt16LE=function(v,j,W){return v=+v,j|=0,W||C(this,v,j,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[j]=255&v,this[j+1]=v>>>8):U(this,v,j,!0),j+2},u.prototype.writeUInt16BE=function(v,j,W){return v=+v,j|=0,W||C(this,v,j,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[j]=v>>>8,this[j+1]=255&v):U(this,v,j,!1),j+2},u.prototype.writeUInt32LE=function(v,j,W){return v=+v,j|=0,W||C(this,v,j,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[j+3]=v>>>24,this[j+2]=v>>>16,this[j+1]=v>>>8,this[j]=255&v):b(this,v,j,!0),j+4},u.prototype.writeUInt32BE=function(v,j,W){return v=+v,j|=0,W||C(this,v,j,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[j]=v>>>24,this[j+1]=v>>>16,this[j+2]=v>>>8,this[j+3]=255&v):b(this,v,j,!1),j+4},u.prototype.writeIntLE=function(v,j,W,ee){if(v=+v,j|=0,!ee){var J=Math.pow(2,8*W-1);C(this,v,j,W,J-1,-J)}var re=0,se=1,oe=0;for(this[j]=255&v;++re<W&&(se*=256);)v<0&&oe===0&&this[j+re-1]!==0&&(oe=1),this[j+re]=(v/se>>0)-oe&255;return j+W},u.prototype.writeIntBE=function(v,j,W,ee){if(v=+v,j|=0,!ee){var J=Math.pow(2,8*W-1);C(this,v,j,W,J-1,-J)}var re=W-1,se=1,oe=0;for(this[j+re]=255&v;--re>=0&&(se*=256);)v<0&&oe===0&&this[j+re+1]!==0&&(oe=1),this[j+re]=(v/se>>0)-oe&255;return j+W},u.prototype.writeInt8=function(v,j,W){return v=+v,j|=0,W||C(this,v,j,1,127,-128),u.TYPED_ARRAY_SUPPORT||(v=Math.floor(v)),v<0&&(v=255+v+1),this[j]=255&v,j+1},u.prototype.writeInt16LE=function(v,j,W){return v=+v,j|=0,W||C(this,v,j,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[j]=255&v,this[j+1]=v>>>8):U(this,v,j,!0),j+2},u.prototype.writeInt16BE=function(v,j,W){return v=+v,j|=0,W||C(this,v,j,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[j]=v>>>8,this[j+1]=255&v):U(this,v,j,!1),j+2},u.prototype.writeInt32LE=function(v,j,W){return v=+v,j|=0,W||C(this,v,j,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[j]=255&v,this[j+1]=v>>>8,this[j+2]=v>>>16,this[j+3]=v>>>24):b(this,v,j,!0),j+4},u.prototype.writeInt32BE=function(v,j,W){return v=+v,j|=0,W||C(this,v,j,4,2147483647,-2147483648),v<0&&(v=4294967295+v+1),u.TYPED_ARRAY_SUPPORT?(this[j]=v>>>24,this[j+1]=v>>>16,this[j+2]=v>>>8,this[j+3]=255&v):b(this,v,j,!1),j+4},u.prototype.writeFloatLE=function(v,j,W){return B(this,v,j,!0,W)},u.prototype.writeFloatBE=function(v,j,W){return B(this,v,j,!1,W)},u.prototype.writeDoubleLE=function(v,j,W){return k(this,v,j,!0,W)},u.prototype.writeDoubleBE=function(v,j,W){return k(this,v,j,!1,W)},u.prototype.copy=function(v,j,W,ee){if(W||(W=0),ee||ee===0||(ee=this.length),j>=v.length&&(j=v.length),j||(j=0),ee>0&&ee<W&&(ee=W),ee===W||v.length===0||this.length===0)return 0;if(j<0)throw new RangeError("targetStart out of bounds");if(W<0||W>=this.length)throw new RangeError("sourceStart out of bounds");if(ee<0)throw new RangeError("sourceEnd out of bounds");ee>this.length&&(ee=this.length),v.length-j<ee-W&&(ee=v.length-j+W);var J,re=ee-W;if(this===v&&W<j&&j<ee)for(J=re-1;J>=0;--J)v[J+j]=this[J+W];else if(re<1e3||!u.TYPED_ARRAY_SUPPORT)for(J=0;J<re;++J)v[J+j]=this[J+W];else Uint8Array.prototype.set.call(v,this.subarray(W,W+re),j);return re},u.prototype.fill=function(v,j,W,ee){if(typeof v=="string"){if(typeof j=="string"?(ee=j,j=0,W=this.length):typeof W=="string"&&(ee=W,W=this.length),v.length===1){var J=v.charCodeAt(0);J<256&&(v=J)}if(ee!==void 0&&typeof ee!="string")throw new TypeError("encoding must be a string");if(typeof ee=="string"&&!u.isEncoding(ee))throw new TypeError("Unknown encoding: "+ee)}else typeof v=="number"&&(v&=255);if(j<0||this.length<j||this.length<W)throw new RangeError("Out of range index");if(W<=j)return this;var re;if(j>>>=0,W=W===void 0?this.length:W>>>0,v||(v=0),typeof v=="number")for(re=j;re<W;++re)this[re]=v;else{var se=u.isBuffer(v)?v:Q(new u(v,ee).toString()),oe=se.length;for(re=0;re<W-j;++re)this[re+j]=se[re%oe]}return this};var Y=/[^+\/0-9A-Za-z-_]/g;function K(v){return v<16?"0"+v.toString(16):v.toString(16)}function Q(v,j){var W;j=j||1/0;for(var ee=v.length,J=null,re=[],se=0;se<ee;++se){if((W=v.charCodeAt(se))>55295&&W<57344){if(!J){if(W>56319){(j-=3)>-1&&re.push(239,191,189);continue}if(se+1===ee){(j-=3)>-1&&re.push(239,191,189);continue}J=W;continue}if(W<56320){(j-=3)>-1&&re.push(239,191,189),J=W;continue}W=65536+(J-55296<<10|W-56320)}else J&&(j-=3)>-1&&re.push(239,191,189);if(J=null,W<128){if((j-=1)<0)break;re.push(W)}else if(W<2048){if((j-=2)<0)break;re.push(W>>6|192,63&W|128)}else if(W<65536){if((j-=3)<0)break;re.push(W>>12|224,W>>6&63|128,63&W|128)}else{if(!(W<1114112))throw new Error("Invalid code point");if((j-=4)<0)break;re.push(W>>18|240,W>>12&63|128,W>>6&63|128,63&W|128)}}return re}function G(v){return i.toByteArray(function(j){if((j=function(W){return W.trim?W.trim():W.replace(/^\s+|\s+$/g,"")}(j).replace(Y,"")).length<2)return"";for(;j.length%4!=0;)j+="=";return j}(v))}function V(v,j,W,ee){for(var J=0;J<ee&&!(J+W>=j.length||J>=v.length);++J)j[J+W]=v[J];return J}}).call(this,r(5))},function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch{typeof window=="object"&&(r=window)}e.exports=r},function(e,t){typeof Object.create=="function"?e.exports=function(r,n){n&&(r.super_=n,r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(r,n){if(n){r.super_=n;var i=function(){};i.prototype=n.prototype,r.prototype=new i,r.prototype.constructor=r}}},function(e,t,r){(function(n){r.d(t,"a",function(){return s}),r.d(t,"i",function(){return o}),r.d(t,"j",function(){return l}),r.d(t,"b",function(){return u}),r.d(t,"f",function(){return m}),r.d(t,"e",function(){return R}),r.d(t,"g",function(){return y}),r.d(t,"d",function(){return S}),r.d(t,"c",function(){return c}),r.d(t,"h",function(){return w});var i=r(98);const g=i.from(Object.assign(Object.assign({},n.env),{ENVIRONMENT:n.env.ENV,APP:"realtime-sdk",NAMESPACE:"production",VERSION:n.env.VERSION,BUILD_TAG:n.env.BUILD_TAG,GIT_COMMIT:n.env.GIT_COMMIT,LOG_LEVEL:n.env.LOG_LEVEL,LOG_JSON:"false",LOG_API_ENDPOINT:n.env.LOG_API_ENDPOINT,JEST_WORKER_ID:n.env.JEST_WORKER_ID,ENABLE_SENTRY:n.env.ENABLE_SENTRY,SENTRY_DSN:n.env.SENTRY_DSN,STABLE_AGENT_VERSION:n.env.STABLE_AGENT_VERSION})),s=(g.get("ENVIRONMENT").default("").asString(),g.get("APP").default("").asString()),o=(g.get("APP_PATH").default("").asString(),g.get("API_ENDPOINT").default("").asString(),g.get("NAMESPACE").default("").asString()),l=g.get("VERSION").default("").asString(),u=g.get("BUILD_TAG").default("").asString(),m=(g.get("GIT_COMMIT").default("").asString(),g.get("ENABLE_SENTRY").default("false").asBool(),g.get("SENTRY_DSN").default("").asString(),g.get("LOG_LEVEL").default("debug").asString()),R=g.get("LOG_JSON").default("true").asBool(),y=g.get("LOG_TO_CONSOLE").default("true").asBool(),S=(g.get("STABLE_AGENT_VERSION").default("").asString(),g.get("LOG_API_ENDPOINT").asString()),c=g.get("JEST_WORKER_ID").asString(),w=(g.get("SHEET_EXPORT_MAX_ROW_COUNT").default("10000").asIntPositive(),g.get("LOG_TO_FILE").default("false").asBoolStrict())}).call(this,r(2))},function(e,t,r){var n=r(95),i=n,g=Function("return this")(),s=r(94);i.object.extend(proto,s),i.exportSymbol("proto.v1.signaling.api.CreatePeerRequest",null,g),i.exportSymbol("proto.v1.signaling.api.CreatePeerResponse",null,g),i.exportSymbol("proto.v1.signaling.api.DeletePeerRequest",null,g),i.exportSymbol("proto.v1.signaling.api.DeletePeerResponse",null,g),i.exportSymbol("proto.v1.signaling.api.GetIceServersRequest",null,g),i.exportSymbol("proto.v1.signaling.api.GetIceServersResponse",null,g),i.exportSymbol("proto.v1.signaling.api.GetPeersRequest",null,g),i.exportSymbol("proto.v1.signaling.api.GetPeersResponse",null,g),i.exportSymbol("proto.v1.signaling.api.Peer",null,g),i.exportSymbol("proto.v1.signaling.api.ReceiveSignalStreamRequest",null,g),i.exportSymbol("proto.v1.signaling.api.ReceiveSignalStreamResponse",null,g),i.exportSymbol("proto.v1.signaling.api.RefreshPeerRequest",null,g),i.exportSymbol("proto.v1.signaling.api.RefreshPeerResponse",null,g),i.exportSymbol("proto.v1.signaling.api.SendSignalRequest",null,g),i.exportSymbol("proto.v1.signaling.api.SendSignalResponse",null,g),i.exportSymbol("proto.v1.signaling.api.SessionType",null,g),i.exportSymbol("proto.v1.signaling.api.Signal",null,g),proto.v1.signaling.api.Peer=function(o){n.Message.initialize(this,o,0,-1,proto.v1.signaling.api.Peer.repeatedFields_,null)},i.inherits(proto.v1.signaling.api.Peer,n.Message),i.DEBUG&&!COMPILED&&(proto.v1.signaling.api.Peer.displayName="proto.v1.signaling.api.Peer"),proto.v1.signaling.api.Signal=function(o){n.Message.initialize(this,o,0,-1,null,null)},i.inherits(proto.v1.signaling.api.Signal,n.Message),i.DEBUG&&!COMPILED&&(proto.v1.signaling.api.Signal.displayName="proto.v1.signaling.api.Signal"),proto.v1.signaling.api.CreatePeerRequest=function(o){n.Message.initialize(this,o,0,-1,null,null)},i.inherits(proto.v1.signaling.api.CreatePeerRequest,n.Message),i.DEBUG&&!COMPILED&&(proto.v1.signaling.api.CreatePeerRequest.displayName="proto.v1.signaling.api.CreatePeerRequest"),proto.v1.signaling.api.CreatePeerResponse=function(o){n.Message.initialize(this,o,0,-1,null,null)},i.inherits(proto.v1.signaling.api.CreatePeerResponse,n.Message),i.DEBUG&&!COMPILED&&(proto.v1.signaling.api.CreatePeerResponse.displayName="proto.v1.signaling.api.CreatePeerResponse"),proto.v1.signaling.api.DeletePeerRequest=function(o){n.Message.initialize(this,o,0,-1,null,null)},i.inherits(proto.v1.signaling.api.DeletePeerRequest,n.Message),i.DEBUG&&!COMPILED&&(proto.v1.signaling.api.DeletePeerRequest.displayName="proto.v1.signaling.api.DeletePeerRequest"),proto.v1.signaling.api.DeletePeerResponse=function(o){n.Message.initialize(this,o,0,-1,null,null)},i.inherits(proto.v1.signaling.api.DeletePeerResponse,n.Message),i.DEBUG&&!COMPILED&&(proto.v1.signaling.api.DeletePeerResponse.displayName="proto.v1.signaling.api.DeletePeerResponse"),proto.v1.signaling.api.RefreshPeerRequest=function(o){n.Message.initialize(this,o,0,-1,null,null)},i.inherits(proto.v1.signaling.api.RefreshPeerRequest,n.Message),i.DEBUG&&!COMPILED&&(proto.v1.signaling.api.RefreshPeerRequest.displayName="proto.v1.signaling.api.RefreshPeerRequest"),proto.v1.signaling.api.RefreshPeerResponse=function(o){n.Message.initialize(this,o,0,-1,null,null)},i.inherits(proto.v1.signaling.api.RefreshPeerResponse,n.Message),i.DEBUG&&!COMPILED&&(proto.v1.signaling.api.RefreshPeerResponse.displayName="proto.v1.signaling.api.RefreshPeerResponse"),proto.v1.signaling.api.GetPeersRequest=function(o){n.Message.initialize(this,o,0,-1,null,null)},i.inherits(proto.v1.signaling.api.GetPeersRequest,n.Message),i.DEBUG&&!COMPILED&&(proto.v1.signaling.api.GetPeersRequest.displayName="proto.v1.signaling.api.GetPeersRequest"),proto.v1.signaling.api.GetPeersResponse=function(o){n.Message.initialize(this,o,0,-1,proto.v1.signaling.api.GetPeersResponse.repeatedFields_,null)},i.inherits(proto.v1.signaling.api.GetPeersResponse,n.Message),i.DEBUG&&!COMPILED&&(proto.v1.signaling.api.GetPeersResponse.displayName="proto.v1.signaling.api.GetPeersResponse"),proto.v1.signaling.api.GetIceServersRequest=function(o){n.Message.initialize(this,o,0,-1,null,null)},i.inherits(proto.v1.signaling.api.GetIceServersRequest,n.Message),i.DEBUG&&!COMPILED&&(proto.v1.signaling.api.GetIceServersRequest.displayName="proto.v1.signaling.api.GetIceServersRequest"),proto.v1.signaling.api.GetIceServersResponse=function(o){n.Message.initialize(this,o,0,-1,null,null)},i.inherits(proto.v1.signaling.api.GetIceServersResponse,n.Message),i.DEBUG&&!COMPILED&&(proto.v1.signaling.api.GetIceServersResponse.displayName="proto.v1.signaling.api.GetIceServersResponse"),proto.v1.signaling.api.SendSignalRequest=function(o){n.Message.initialize(this,o,0,-1,null,null)},i.inherits(proto.v1.signaling.api.SendSignalRequest,n.Message),i.DEBUG&&!COMPILED&&(proto.v1.signaling.api.SendSignalRequest.displayName="proto.v1.signaling.api.SendSignalRequest"),proto.v1.signaling.api.SendSignalResponse=function(o){n.Message.initialize(this,o,0,-1,null,null)},i.inherits(proto.v1.signaling.api.SendSignalResponse,n.Message),i.DEBUG&&!COMPILED&&(proto.v1.signaling.api.SendSignalResponse.displayName="proto.v1.signaling.api.SendSignalResponse"),proto.v1.signaling.api.ReceiveSignalStreamRequest=function(o){n.Message.initialize(this,o,0,-1,null,null)},i.inherits(proto.v1.signaling.api.ReceiveSignalStreamRequest,n.Message),i.DEBUG&&!COMPILED&&(proto.v1.signaling.api.ReceiveSignalStreamRequest.displayName="proto.v1.signaling.api.ReceiveSignalStreamRequest"),proto.v1.signaling.api.ReceiveSignalStreamResponse=function(o){n.Message.initialize(this,o,0,-1,null,null)},i.inherits(proto.v1.signaling.api.ReceiveSignalStreamResponse,n.Message),i.DEBUG&&!COMPILED&&(proto.v1.signaling.api.ReceiveSignalStreamResponse.displayName="proto.v1.signaling.api.ReceiveSignalStreamResponse"),proto.v1.signaling.api.Peer.repeatedFields_=[5],n.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.Peer.prototype.toObject=function(o){return proto.v1.signaling.api.Peer.toObject(o,this)},proto.v1.signaling.api.Peer.toObject=function(o,l){var u,m={peerId:n.Message.getFieldWithDefault(l,1,""),organizationId:n.Message.getFieldWithDefault(l,2,""),userId:(u=l.getUserId())&&s.StringValue.toObject(o,u),deviceId:(u=l.getDeviceId())&&s.StringValue.toObject(o,u),sessionIdsList:(u=n.Message.getRepeatedField(l,5))==null?void 0:u,peerCreatedTimestamp:(u=l.getPeerCreatedTimestamp())&&s.Int64Value.toObject(o,u)};return o&&(m.$jspbMessageInstance=l),m}),proto.v1.signaling.api.Peer.deserializeBinary=function(o){var l=new n.BinaryReader(o),u=new proto.v1.signaling.api.Peer;return proto.v1.signaling.api.Peer.deserializeBinaryFromReader(u,l)},proto.v1.signaling.api.Peer.deserializeBinaryFromReader=function(o,l){for(;l.nextField()&&!l.isEndGroup();)switch(l.getFieldNumber()){case 1:var u=l.readString();o.setPeerId(u);break;case 2:u=l.readString(),o.setOrganizationId(u);break;case 3:u=new s.StringValue,l.readMessage(u,s.StringValue.deserializeBinaryFromReader),o.setUserId(u);break;case 4:u=new s.StringValue,l.readMessage(u,s.StringValue.deserializeBinaryFromReader),o.setDeviceId(u);break;case 5:u=l.readString(),o.addSessionIds(u);break;case 6:u=new s.Int64Value,l.readMessage(u,s.Int64Value.deserializeBinaryFromReader),o.setPeerCreatedTimestamp(u);break;default:l.skipField()}return o},proto.v1.signaling.api.Peer.prototype.serializeBinary=function(){var o=new n.BinaryWriter;return proto.v1.signaling.api.Peer.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.v1.signaling.api.Peer.serializeBinaryToWriter=function(o,l){var u=void 0;(u=o.getPeerId()).length>0&&l.writeString(1,u),(u=o.getOrganizationId()).length>0&&l.writeString(2,u),(u=o.getUserId())!=null&&l.writeMessage(3,u,s.StringValue.serializeBinaryToWriter),(u=o.getDeviceId())!=null&&l.writeMessage(4,u,s.StringValue.serializeBinaryToWriter),(u=o.getSessionIdsList()).length>0&&l.writeRepeatedString(5,u),(u=o.getPeerCreatedTimestamp())!=null&&l.writeMessage(6,u,s.Int64Value.serializeBinaryToWriter)},proto.v1.signaling.api.Peer.prototype.getPeerId=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.v1.signaling.api.Peer.prototype.setPeerId=function(o){return n.Message.setProto3StringField(this,1,o)},proto.v1.signaling.api.Peer.prototype.getOrganizationId=function(){return n.Message.getFieldWithDefault(this,2,"")},proto.v1.signaling.api.Peer.prototype.setOrganizationId=function(o){return n.Message.setProto3StringField(this,2,o)},proto.v1.signaling.api.Peer.prototype.getUserId=function(){return n.Message.getWrapperField(this,s.StringValue,3)},proto.v1.signaling.api.Peer.prototype.setUserId=function(o){return n.Message.setWrapperField(this,3,o)},proto.v1.signaling.api.Peer.prototype.clearUserId=function(){return this.setUserId(void 0)},proto.v1.signaling.api.Peer.prototype.hasUserId=function(){return n.Message.getField(this,3)!=null},proto.v1.signaling.api.Peer.prototype.getDeviceId=function(){return n.Message.getWrapperField(this,s.StringValue,4)},proto.v1.signaling.api.Peer.prototype.setDeviceId=function(o){return n.Message.setWrapperField(this,4,o)},proto.v1.signaling.api.Peer.prototype.clearDeviceId=function(){return this.setDeviceId(void 0)},proto.v1.signaling.api.Peer.prototype.hasDeviceId=function(){return n.Message.getField(this,4)!=null},proto.v1.signaling.api.Peer.prototype.getSessionIdsList=function(){return n.Message.getRepeatedField(this,5)},proto.v1.signaling.api.Peer.prototype.setSessionIdsList=function(o){return n.Message.setField(this,5,o||[])},proto.v1.signaling.api.Peer.prototype.addSessionIds=function(o,l){return n.Message.addToRepeatedField(this,5,o,l)},proto.v1.signaling.api.Peer.prototype.clearSessionIdsList=function(){return this.setSessionIdsList([])},proto.v1.signaling.api.Peer.prototype.getPeerCreatedTimestamp=function(){return n.Message.getWrapperField(this,s.Int64Value,6)},proto.v1.signaling.api.Peer.prototype.setPeerCreatedTimestamp=function(o){return n.Message.setWrapperField(this,6,o)},proto.v1.signaling.api.Peer.prototype.clearPeerCreatedTimestamp=function(){return this.setPeerCreatedTimestamp(void 0)},proto.v1.signaling.api.Peer.prototype.hasPeerCreatedTimestamp=function(){return n.Message.getField(this,6)!=null},n.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.Signal.prototype.toObject=function(o){return proto.v1.signaling.api.Signal.toObject(o,this)},proto.v1.signaling.api.Signal.toObject=function(o,l){var u,m={sessionId:(u=l.getSessionId())&&s.StringValue.toObject(o,u),sessionCreatedTimestamp:(u=l.getSessionCreatedTimestamp())&&s.Int64Value.toObject(o,u),senderId:n.Message.getFieldWithDefault(l,3,""),receiverId:n.Message.getFieldWithDefault(l,4,""),payload:n.Message.getFieldWithDefault(l,5,""),iceServers:n.Message.getFieldWithDefault(l,6,""),iceTransportPolicy:n.Message.getFieldWithDefault(l,7,""),sessionType:n.Message.getFieldWithDefault(l,8,0)};return o&&(m.$jspbMessageInstance=l),m}),proto.v1.signaling.api.Signal.deserializeBinary=function(o){var l=new n.BinaryReader(o),u=new proto.v1.signaling.api.Signal;return proto.v1.signaling.api.Signal.deserializeBinaryFromReader(u,l)},proto.v1.signaling.api.Signal.deserializeBinaryFromReader=function(o,l){for(;l.nextField()&&!l.isEndGroup();)switch(l.getFieldNumber()){case 1:var u=new s.StringValue;l.readMessage(u,s.StringValue.deserializeBinaryFromReader),o.setSessionId(u);break;case 2:u=new s.Int64Value,l.readMessage(u,s.Int64Value.deserializeBinaryFromReader),o.setSessionCreatedTimestamp(u);break;case 3:u=l.readString(),o.setSenderId(u);break;case 4:u=l.readString(),o.setReceiverId(u);break;case 5:u=l.readString(),o.setPayload(u);break;case 6:u=l.readString(),o.setIceServers(u);break;case 7:u=l.readString(),o.setIceTransportPolicy(u);break;case 8:u=l.readEnum(),o.setSessionType(u);break;default:l.skipField()}return o},proto.v1.signaling.api.Signal.prototype.serializeBinary=function(){var o=new n.BinaryWriter;return proto.v1.signaling.api.Signal.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.v1.signaling.api.Signal.serializeBinaryToWriter=function(o,l){var u=void 0;(u=o.getSessionId())!=null&&l.writeMessage(1,u,s.StringValue.serializeBinaryToWriter),(u=o.getSessionCreatedTimestamp())!=null&&l.writeMessage(2,u,s.Int64Value.serializeBinaryToWriter),(u=o.getSenderId()).length>0&&l.writeString(3,u),(u=o.getReceiverId()).length>0&&l.writeString(4,u),(u=o.getPayload()).length>0&&l.writeString(5,u),(u=o.getIceServers()).length>0&&l.writeString(6,u),(u=o.getIceTransportPolicy()).length>0&&l.writeString(7,u),(u=o.getSessionType())!==0&&l.writeEnum(8,u)},proto.v1.signaling.api.Signal.prototype.getSessionId=function(){return n.Message.getWrapperField(this,s.StringValue,1)},proto.v1.signaling.api.Signal.prototype.setSessionId=function(o){return n.Message.setWrapperField(this,1,o)},proto.v1.signaling.api.Signal.prototype.clearSessionId=function(){return this.setSessionId(void 0)},proto.v1.signaling.api.Signal.prototype.hasSessionId=function(){return n.Message.getField(this,1)!=null},proto.v1.signaling.api.Signal.prototype.getSessionCreatedTimestamp=function(){return n.Message.getWrapperField(this,s.Int64Value,2)},proto.v1.signaling.api.Signal.prototype.setSessionCreatedTimestamp=function(o){return n.Message.setWrapperField(this,2,o)},proto.v1.signaling.api.Signal.prototype.clearSessionCreatedTimestamp=function(){return this.setSessionCreatedTimestamp(void 0)},proto.v1.signaling.api.Signal.prototype.hasSessionCreatedTimestamp=function(){return n.Message.getField(this,2)!=null},proto.v1.signaling.api.Signal.prototype.getSenderId=function(){return n.Message.getFieldWithDefault(this,3,"")},proto.v1.signaling.api.Signal.prototype.setSenderId=function(o){return n.Message.setProto3StringField(this,3,o)},proto.v1.signaling.api.Signal.prototype.getReceiverId=function(){return n.Message.getFieldWithDefault(this,4,"")},proto.v1.signaling.api.Signal.prototype.setReceiverId=function(o){return n.Message.setProto3StringField(this,4,o)},proto.v1.signaling.api.Signal.prototype.getPayload=function(){return n.Message.getFieldWithDefault(this,5,"")},proto.v1.signaling.api.Signal.prototype.setPayload=function(o){return n.Message.setProto3StringField(this,5,o)},proto.v1.signaling.api.Signal.prototype.getIceServers=function(){return n.Message.getFieldWithDefault(this,6,"")},proto.v1.signaling.api.Signal.prototype.setIceServers=function(o){return n.Message.setProto3StringField(this,6,o)},proto.v1.signaling.api.Signal.prototype.getIceTransportPolicy=function(){return n.Message.getFieldWithDefault(this,7,"")},proto.v1.signaling.api.Signal.prototype.setIceTransportPolicy=function(o){return n.Message.setProto3StringField(this,7,o)},proto.v1.signaling.api.Signal.prototype.getSessionType=function(){return n.Message.getFieldWithDefault(this,8,0)},proto.v1.signaling.api.Signal.prototype.setSessionType=function(o){return n.Message.setProto3EnumField(this,8,o)},n.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.CreatePeerRequest.prototype.toObject=function(o){return proto.v1.signaling.api.CreatePeerRequest.toObject(o,this)},proto.v1.signaling.api.CreatePeerRequest.toObject=function(o,l){var u={};return o&&(u.$jspbMessageInstance=l),u}),proto.v1.signaling.api.CreatePeerRequest.deserializeBinary=function(o){var l=new n.BinaryReader(o),u=new proto.v1.signaling.api.CreatePeerRequest;return proto.v1.signaling.api.CreatePeerRequest.deserializeBinaryFromReader(u,l)},proto.v1.signaling.api.CreatePeerRequest.deserializeBinaryFromReader=function(o,l){for(;l.nextField()&&!l.isEndGroup();)l.getFieldNumber(),l.skipField();return o},proto.v1.signaling.api.CreatePeerRequest.prototype.serializeBinary=function(){var o=new n.BinaryWriter;return proto.v1.signaling.api.CreatePeerRequest.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.v1.signaling.api.CreatePeerRequest.serializeBinaryToWriter=function(o,l){},n.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.CreatePeerResponse.prototype.toObject=function(o){return proto.v1.signaling.api.CreatePeerResponse.toObject(o,this)},proto.v1.signaling.api.CreatePeerResponse.toObject=function(o,l){var u,m={peer:(u=l.getPeer())&&proto.v1.signaling.api.Peer.toObject(o,u)};return o&&(m.$jspbMessageInstance=l),m}),proto.v1.signaling.api.CreatePeerResponse.deserializeBinary=function(o){var l=new n.BinaryReader(o),u=new proto.v1.signaling.api.CreatePeerResponse;return proto.v1.signaling.api.CreatePeerResponse.deserializeBinaryFromReader(u,l)},proto.v1.signaling.api.CreatePeerResponse.deserializeBinaryFromReader=function(o,l){for(;l.nextField()&&!l.isEndGroup();)switch(l.getFieldNumber()){case 1:var u=new proto.v1.signaling.api.Peer;l.readMessage(u,proto.v1.signaling.api.Peer.deserializeBinaryFromReader),o.setPeer(u);break;default:l.skipField()}return o},proto.v1.signaling.api.CreatePeerResponse.prototype.serializeBinary=function(){var o=new n.BinaryWriter;return proto.v1.signaling.api.CreatePeerResponse.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.v1.signaling.api.CreatePeerResponse.serializeBinaryToWriter=function(o,l){var u;(u=o.getPeer())!=null&&l.writeMessage(1,u,proto.v1.signaling.api.Peer.serializeBinaryToWriter)},proto.v1.signaling.api.CreatePeerResponse.prototype.getPeer=function(){return n.Message.getWrapperField(this,proto.v1.signaling.api.Peer,1)},proto.v1.signaling.api.CreatePeerResponse.prototype.setPeer=function(o){return n.Message.setWrapperField(this,1,o)},proto.v1.signaling.api.CreatePeerResponse.prototype.clearPeer=function(){return this.setPeer(void 0)},proto.v1.signaling.api.CreatePeerResponse.prototype.hasPeer=function(){return n.Message.getField(this,1)!=null},n.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.DeletePeerRequest.prototype.toObject=function(o){return proto.v1.signaling.api.DeletePeerRequest.toObject(o,this)},proto.v1.signaling.api.DeletePeerRequest.toObject=function(o,l){var u={peerId:n.Message.getFieldWithDefault(l,1,"")};return o&&(u.$jspbMessageInstance=l),u}),proto.v1.signaling.api.DeletePeerRequest.deserializeBinary=function(o){var l=new n.BinaryReader(o),u=new proto.v1.signaling.api.DeletePeerRequest;return proto.v1.signaling.api.DeletePeerRequest.deserializeBinaryFromReader(u,l)},proto.v1.signaling.api.DeletePeerRequest.deserializeBinaryFromReader=function(o,l){for(;l.nextField()&&!l.isEndGroup();)switch(l.getFieldNumber()){case 1:var u=l.readString();o.setPeerId(u);break;default:l.skipField()}return o},proto.v1.signaling.api.DeletePeerRequest.prototype.serializeBinary=function(){var o=new n.BinaryWriter;return proto.v1.signaling.api.DeletePeerRequest.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.v1.signaling.api.DeletePeerRequest.serializeBinaryToWriter=function(o,l){var u;(u=o.getPeerId()).length>0&&l.writeString(1,u)},proto.v1.signaling.api.DeletePeerRequest.prototype.getPeerId=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.v1.signaling.api.DeletePeerRequest.prototype.setPeerId=function(o){return n.Message.setProto3StringField(this,1,o)},n.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.DeletePeerResponse.prototype.toObject=function(o){return proto.v1.signaling.api.DeletePeerResponse.toObject(o,this)},proto.v1.signaling.api.DeletePeerResponse.toObject=function(o,l){var u={};return o&&(u.$jspbMessageInstance=l),u}),proto.v1.signaling.api.DeletePeerResponse.deserializeBinary=function(o){var l=new n.BinaryReader(o),u=new proto.v1.signaling.api.DeletePeerResponse;return proto.v1.signaling.api.DeletePeerResponse.deserializeBinaryFromReader(u,l)},proto.v1.signaling.api.DeletePeerResponse.deserializeBinaryFromReader=function(o,l){for(;l.nextField()&&!l.isEndGroup();)l.getFieldNumber(),l.skipField();return o},proto.v1.signaling.api.DeletePeerResponse.prototype.serializeBinary=function(){var o=new n.BinaryWriter;return proto.v1.signaling.api.DeletePeerResponse.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.v1.signaling.api.DeletePeerResponse.serializeBinaryToWriter=function(o,l){},n.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.RefreshPeerRequest.prototype.toObject=function(o){return proto.v1.signaling.api.RefreshPeerRequest.toObject(o,this)},proto.v1.signaling.api.RefreshPeerRequest.toObject=function(o,l){var u,m={peer:(u=l.getPeer())&&proto.v1.signaling.api.Peer.toObject(o,u)};return o&&(m.$jspbMessageInstance=l),m}),proto.v1.signaling.api.RefreshPeerRequest.deserializeBinary=function(o){var l=new n.BinaryReader(o),u=new proto.v1.signaling.api.RefreshPeerRequest;return proto.v1.signaling.api.RefreshPeerRequest.deserializeBinaryFromReader(u,l)},proto.v1.signaling.api.RefreshPeerRequest.deserializeBinaryFromReader=function(o,l){for(;l.nextField()&&!l.isEndGroup();)switch(l.getFieldNumber()){case 1:var u=new proto.v1.signaling.api.Peer;l.readMessage(u,proto.v1.signaling.api.Peer.deserializeBinaryFromReader),o.setPeer(u);break;default:l.skipField()}return o},proto.v1.signaling.api.RefreshPeerRequest.prototype.serializeBinary=function(){var o=new n.BinaryWriter;return proto.v1.signaling.api.RefreshPeerRequest.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.v1.signaling.api.RefreshPeerRequest.serializeBinaryToWriter=function(o,l){var u;(u=o.getPeer())!=null&&l.writeMessage(1,u,proto.v1.signaling.api.Peer.serializeBinaryToWriter)},proto.v1.signaling.api.RefreshPeerRequest.prototype.getPeer=function(){return n.Message.getWrapperField(this,proto.v1.signaling.api.Peer,1)},proto.v1.signaling.api.RefreshPeerRequest.prototype.setPeer=function(o){return n.Message.setWrapperField(this,1,o)},proto.v1.signaling.api.RefreshPeerRequest.prototype.clearPeer=function(){return this.setPeer(void 0)},proto.v1.signaling.api.RefreshPeerRequest.prototype.hasPeer=function(){return n.Message.getField(this,1)!=null},n.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.RefreshPeerResponse.prototype.toObject=function(o){return proto.v1.signaling.api.RefreshPeerResponse.toObject(o,this)},proto.v1.signaling.api.RefreshPeerResponse.toObject=function(o,l){var u={};return o&&(u.$jspbMessageInstance=l),u}),proto.v1.signaling.api.RefreshPeerResponse.deserializeBinary=function(o){var l=new n.BinaryReader(o),u=new proto.v1.signaling.api.RefreshPeerResponse;return proto.v1.signaling.api.RefreshPeerResponse.deserializeBinaryFromReader(u,l)},proto.v1.signaling.api.RefreshPeerResponse.deserializeBinaryFromReader=function(o,l){for(;l.nextField()&&!l.isEndGroup();)l.getFieldNumber(),l.skipField();return o},proto.v1.signaling.api.RefreshPeerResponse.prototype.serializeBinary=function(){var o=new n.BinaryWriter;return proto.v1.signaling.api.RefreshPeerResponse.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.v1.signaling.api.RefreshPeerResponse.serializeBinaryToWriter=function(o,l){},n.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.GetPeersRequest.prototype.toObject=function(o){return proto.v1.signaling.api.GetPeersRequest.toObject(o,this)},proto.v1.signaling.api.GetPeersRequest.toObject=function(o,l){var u={};return o&&(u.$jspbMessageInstance=l),u}),proto.v1.signaling.api.GetPeersRequest.deserializeBinary=function(o){var l=new n.BinaryReader(o),u=new proto.v1.signaling.api.GetPeersRequest;return proto.v1.signaling.api.GetPeersRequest.deserializeBinaryFromReader(u,l)},proto.v1.signaling.api.GetPeersRequest.deserializeBinaryFromReader=function(o,l){for(;l.nextField()&&!l.isEndGroup();)l.getFieldNumber(),l.skipField();return o},proto.v1.signaling.api.GetPeersRequest.prototype.serializeBinary=function(){var o=new n.BinaryWriter;return proto.v1.signaling.api.GetPeersRequest.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.v1.signaling.api.GetPeersRequest.serializeBinaryToWriter=function(o,l){},proto.v1.signaling.api.GetPeersResponse.repeatedFields_=[1],n.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.GetPeersResponse.prototype.toObject=function(o){return proto.v1.signaling.api.GetPeersResponse.toObject(o,this)},proto.v1.signaling.api.GetPeersResponse.toObject=function(o,l){var u={peersList:n.Message.toObjectList(l.getPeersList(),proto.v1.signaling.api.Peer.toObject,o)};return o&&(u.$jspbMessageInstance=l),u}),proto.v1.signaling.api.GetPeersResponse.deserializeBinary=function(o){var l=new n.BinaryReader(o),u=new proto.v1.signaling.api.GetPeersResponse;return proto.v1.signaling.api.GetPeersResponse.deserializeBinaryFromReader(u,l)},proto.v1.signaling.api.GetPeersResponse.deserializeBinaryFromReader=function(o,l){for(;l.nextField()&&!l.isEndGroup();)switch(l.getFieldNumber()){case 1:var u=new proto.v1.signaling.api.Peer;l.readMessage(u,proto.v1.signaling.api.Peer.deserializeBinaryFromReader),o.addPeers(u);break;default:l.skipField()}return o},proto.v1.signaling.api.GetPeersResponse.prototype.serializeBinary=function(){var o=new n.BinaryWriter;return proto.v1.signaling.api.GetPeersResponse.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.v1.signaling.api.GetPeersResponse.serializeBinaryToWriter=function(o,l){var u;(u=o.getPeersList()).length>0&&l.writeRepeatedMessage(1,u,proto.v1.signaling.api.Peer.serializeBinaryToWriter)},proto.v1.signaling.api.GetPeersResponse.prototype.getPeersList=function(){return n.Message.getRepeatedWrapperField(this,proto.v1.signaling.api.Peer,1)},proto.v1.signaling.api.GetPeersResponse.prototype.setPeersList=function(o){return n.Message.setRepeatedWrapperField(this,1,o)},proto.v1.signaling.api.GetPeersResponse.prototype.addPeers=function(o,l){return n.Message.addToRepeatedWrapperField(this,1,o,proto.v1.signaling.api.Peer,l)},proto.v1.signaling.api.GetPeersResponse.prototype.clearPeersList=function(){return this.setPeersList([])},n.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.GetIceServersRequest.prototype.toObject=function(o){return proto.v1.signaling.api.GetIceServersRequest.toObject(o,this)},proto.v1.signaling.api.GetIceServersRequest.toObject=function(o,l){var u={};return o&&(u.$jspbMessageInstance=l),u}),proto.v1.signaling.api.GetIceServersRequest.deserializeBinary=function(o){var l=new n.BinaryReader(o),u=new proto.v1.signaling.api.GetIceServersRequest;return proto.v1.signaling.api.GetIceServersRequest.deserializeBinaryFromReader(u,l)},proto.v1.signaling.api.GetIceServersRequest.deserializeBinaryFromReader=function(o,l){for(;l.nextField()&&!l.isEndGroup();)l.getFieldNumber(),l.skipField();return o},proto.v1.signaling.api.GetIceServersRequest.prototype.serializeBinary=function(){var o=new n.BinaryWriter;return proto.v1.signaling.api.GetIceServersRequest.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.v1.signaling.api.GetIceServersRequest.serializeBinaryToWriter=function(o,l){},n.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.GetIceServersResponse.prototype.toObject=function(o){return proto.v1.signaling.api.GetIceServersResponse.toObject(o,this)},proto.v1.signaling.api.GetIceServersResponse.toObject=function(o,l){var u={iceServers:n.Message.getFieldWithDefault(l,1,"")};return o&&(u.$jspbMessageInstance=l),u}),proto.v1.signaling.api.GetIceServersResponse.deserializeBinary=function(o){var l=new n.BinaryReader(o),u=new proto.v1.signaling.api.GetIceServersResponse;return proto.v1.signaling.api.GetIceServersResponse.deserializeBinaryFromReader(u,l)},proto.v1.signaling.api.GetIceServersResponse.deserializeBinaryFromReader=function(o,l){for(;l.nextField()&&!l.isEndGroup();)switch(l.getFieldNumber()){case 1:var u=l.readString();o.setIceServers(u);break;default:l.skipField()}return o},proto.v1.signaling.api.GetIceServersResponse.prototype.serializeBinary=function(){var o=new n.BinaryWriter;return proto.v1.signaling.api.GetIceServersResponse.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.v1.signaling.api.GetIceServersResponse.serializeBinaryToWriter=function(o,l){var u;(u=o.getIceServers()).length>0&&l.writeString(1,u)},proto.v1.signaling.api.GetIceServersResponse.prototype.getIceServers=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.v1.signaling.api.GetIceServersResponse.prototype.setIceServers=function(o){return n.Message.setProto3StringField(this,1,o)},n.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.SendSignalRequest.prototype.toObject=function(o){return proto.v1.signaling.api.SendSignalRequest.toObject(o,this)},proto.v1.signaling.api.SendSignalRequest.toObject=function(o,l){var u,m={signal:(u=l.getSignal())&&proto.v1.signaling.api.Signal.toObject(o,u)};return o&&(m.$jspbMessageInstance=l),m}),proto.v1.signaling.api.SendSignalRequest.deserializeBinary=function(o){var l=new n.BinaryReader(o),u=new proto.v1.signaling.api.SendSignalRequest;return proto.v1.signaling.api.SendSignalRequest.deserializeBinaryFromReader(u,l)},proto.v1.signaling.api.SendSignalRequest.deserializeBinaryFromReader=function(o,l){for(;l.nextField()&&!l.isEndGroup();)switch(l.getFieldNumber()){case 1:var u=new proto.v1.signaling.api.Signal;l.readMessage(u,proto.v1.signaling.api.Signal.deserializeBinaryFromReader),o.setSignal(u);break;default:l.skipField()}return o},proto.v1.signaling.api.SendSignalRequest.prototype.serializeBinary=function(){var o=new n.BinaryWriter;return proto.v1.signaling.api.SendSignalRequest.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.v1.signaling.api.SendSignalRequest.serializeBinaryToWriter=function(o,l){var u;(u=o.getSignal())!=null&&l.writeMessage(1,u,proto.v1.signaling.api.Signal.serializeBinaryToWriter)},proto.v1.signaling.api.SendSignalRequest.prototype.getSignal=function(){return n.Message.getWrapperField(this,proto.v1.signaling.api.Signal,1)},proto.v1.signaling.api.SendSignalRequest.prototype.setSignal=function(o){return n.Message.setWrapperField(this,1,o)},proto.v1.signaling.api.SendSignalRequest.prototype.clearSignal=function(){return this.setSignal(void 0)},proto.v1.signaling.api.SendSignalRequest.prototype.hasSignal=function(){return n.Message.getField(this,1)!=null},n.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.SendSignalResponse.prototype.toObject=function(o){return proto.v1.signaling.api.SendSignalResponse.toObject(o,this)},proto.v1.signaling.api.SendSignalResponse.toObject=function(o,l){var u,m={sessionId:(u=l.getSessionId())&&s.StringValue.toObject(o,u),sessionCreatedTimestamp:(u=l.getSessionCreatedTimestamp())&&s.Int64Value.toObject(o,u)};return o&&(m.$jspbMessageInstance=l),m}),proto.v1.signaling.api.SendSignalResponse.deserializeBinary=function(o){var l=new n.BinaryReader(o),u=new proto.v1.signaling.api.SendSignalResponse;return proto.v1.signaling.api.SendSignalResponse.deserializeBinaryFromReader(u,l)},proto.v1.signaling.api.SendSignalResponse.deserializeBinaryFromReader=function(o,l){for(;l.nextField()&&!l.isEndGroup();)switch(l.getFieldNumber()){case 1:var u=new s.StringValue;l.readMessage(u,s.StringValue.deserializeBinaryFromReader),o.setSessionId(u);break;case 2:u=new s.Int64Value,l.readMessage(u,s.Int64Value.deserializeBinaryFromReader),o.setSessionCreatedTimestamp(u);break;default:l.skipField()}return o},proto.v1.signaling.api.SendSignalResponse.prototype.serializeBinary=function(){var o=new n.BinaryWriter;return proto.v1.signaling.api.SendSignalResponse.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.v1.signaling.api.SendSignalResponse.serializeBinaryToWriter=function(o,l){var u=void 0;(u=o.getSessionId())!=null&&l.writeMessage(1,u,s.StringValue.serializeBinaryToWriter),(u=o.getSessionCreatedTimestamp())!=null&&l.writeMessage(2,u,s.Int64Value.serializeBinaryToWriter)},proto.v1.signaling.api.SendSignalResponse.prototype.getSessionId=function(){return n.Message.getWrapperField(this,s.StringValue,1)},proto.v1.signaling.api.SendSignalResponse.prototype.setSessionId=function(o){return n.Message.setWrapperField(this,1,o)},proto.v1.signaling.api.SendSignalResponse.prototype.clearSessionId=function(){return this.setSessionId(void 0)},proto.v1.signaling.api.SendSignalResponse.prototype.hasSessionId=function(){return n.Message.getField(this,1)!=null},proto.v1.signaling.api.SendSignalResponse.prototype.getSessionCreatedTimestamp=function(){return n.Message.getWrapperField(this,s.Int64Value,2)},proto.v1.signaling.api.SendSignalResponse.prototype.setSessionCreatedTimestamp=function(o){return n.Message.setWrapperField(this,2,o)},proto.v1.signaling.api.SendSignalResponse.prototype.clearSessionCreatedTimestamp=function(){return this.setSessionCreatedTimestamp(void 0)},proto.v1.signaling.api.SendSignalResponse.prototype.hasSessionCreatedTimestamp=function(){return n.Message.getField(this,2)!=null},n.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.ReceiveSignalStreamRequest.prototype.toObject=function(o){return proto.v1.signaling.api.ReceiveSignalStreamRequest.toObject(o,this)},proto.v1.signaling.api.ReceiveSignalStreamRequest.toObject=function(o,l){var u={peerId:n.Message.getFieldWithDefault(l,1,"")};return o&&(u.$jspbMessageInstance=l),u}),proto.v1.signaling.api.ReceiveSignalStreamRequest.deserializeBinary=function(o){var l=new n.BinaryReader(o),u=new proto.v1.signaling.api.ReceiveSignalStreamRequest;return proto.v1.signaling.api.ReceiveSignalStreamRequest.deserializeBinaryFromReader(u,l)},proto.v1.signaling.api.ReceiveSignalStreamRequest.deserializeBinaryFromReader=function(o,l){for(;l.nextField()&&!l.isEndGroup();)switch(l.getFieldNumber()){case 1:var u=l.readString();o.setPeerId(u);break;default:l.skipField()}return o},proto.v1.signaling.api.ReceiveSignalStreamRequest.prototype.serializeBinary=function(){var o=new n.BinaryWriter;return proto.v1.signaling.api.ReceiveSignalStreamRequest.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.v1.signaling.api.ReceiveSignalStreamRequest.serializeBinaryToWriter=function(o,l){var u;(u=o.getPeerId()).length>0&&l.writeString(1,u)},proto.v1.signaling.api.ReceiveSignalStreamRequest.prototype.getPeerId=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.v1.signaling.api.ReceiveSignalStreamRequest.prototype.setPeerId=function(o){return n.Message.setProto3StringField(this,1,o)},n.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.ReceiveSignalStreamResponse.prototype.toObject=function(o){return proto.v1.signaling.api.ReceiveSignalStreamResponse.toObject(o,this)},proto.v1.signaling.api.ReceiveSignalStreamResponse.toObject=function(o,l){var u,m={signal:(u=l.getSignal())&&proto.v1.signaling.api.Signal.toObject(o,u)};return o&&(m.$jspbMessageInstance=l),m}),proto.v1.signaling.api.ReceiveSignalStreamResponse.deserializeBinary=function(o){var l=new n.BinaryReader(o),u=new proto.v1.signaling.api.ReceiveSignalStreamResponse;return proto.v1.signaling.api.ReceiveSignalStreamResponse.deserializeBinaryFromReader(u,l)},proto.v1.signaling.api.ReceiveSignalStreamResponse.deserializeBinaryFromReader=function(o,l){for(;l.nextField()&&!l.isEndGroup();)switch(l.getFieldNumber()){case 1:var u=new proto.v1.signaling.api.Signal;l.readMessage(u,proto.v1.signaling.api.Signal.deserializeBinaryFromReader),o.setSignal(u);break;default:l.skipField()}return o},proto.v1.signaling.api.ReceiveSignalStreamResponse.prototype.serializeBinary=function(){var o=new n.BinaryWriter;return proto.v1.signaling.api.ReceiveSignalStreamResponse.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.v1.signaling.api.ReceiveSignalStreamResponse.serializeBinaryToWriter=function(o,l){var u;(u=o.getSignal())!=null&&l.writeMessage(1,u,proto.v1.signaling.api.Signal.serializeBinaryToWriter)},proto.v1.signaling.api.ReceiveSignalStreamResponse.prototype.getSignal=function(){return n.Message.getWrapperField(this,proto.v1.signaling.api.Signal,1)},proto.v1.signaling.api.ReceiveSignalStreamResponse.prototype.setSignal=function(o){return n.Message.setWrapperField(this,1,o)},proto.v1.signaling.api.ReceiveSignalStreamResponse.prototype.clearSignal=function(){return this.setSignal(void 0)},proto.v1.signaling.api.ReceiveSignalStreamResponse.prototype.hasSignal=function(){return n.Message.getField(this,1)!=null},proto.v1.signaling.api.SessionType={UNKNOWN:0,TELEOP:1,PORT_FORWARD:2},i.object.extend(t,proto.v1.signaling.api)},function(e,t,r){function n(y){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(S){return typeof S}:function(S){return S&&typeof Symbol=="function"&&S.constructor===Symbol&&S!==Symbol.prototype?"symbol":typeof S})(y)}function i(y,S){return!S||n(S)!=="object"&&typeof S!="function"?g(y):S}function g(y){if(y===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y}function s(y){var S=typeof Map=="function"?new Map:void 0;return(s=function(c){if(c===null||(w=c,Function.toString.call(w).indexOf("[native code]")===-1))return c;var w;if(typeof c!="function")throw new TypeError("Super expression must either be null or a function");if(S!==void 0){if(S.has(c))return S.get(c);S.set(c,E)}function E(){return o(c,arguments,m(this).constructor)}return E.prototype=Object.create(c.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}),u(E,c)})(y)}function o(y,S,c){return(o=l()?Reflect.construct:function(w,E,P){var F=[null];F.push.apply(F,E);var M=new(Function.bind.apply(w,F));return P&&u(M,P.prototype),M}).apply(null,arguments)}function l(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function u(y,S){return(u=Object.setPrototypeOf||function(c,w){return c.__proto__=w,c})(y,S)}function m(y){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(S){return S.__proto__||Object.getPrototypeOf(S)})(y)}var R=function(y){(function(P,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function");P.prototype=Object.create(F&&F.prototype,{constructor:{value:P,writable:!0,configurable:!0}}),F&&u(P,F)})(E,y);var S,c,w=(S=E,c=l(),function(){var P,F=m(S);if(c){var M=m(this).constructor;P=Reflect.construct(F,arguments,M)}else P=F.apply(this,arguments);return i(this,P)});function E(P){var F;return function(M,A){if(!(M instanceof A))throw new TypeError("Cannot call a class as a function")}(this,E),F=w.call(this,`Format functions must be synchronous taking a two arguments: (info, opts)
|
|
3
3
|
Found: `.concat(P.toString().split(`
|
|
4
4
|
`)[0],`
|
|
5
5
|
`)),Error.captureStackTrace(g(F),E),F}return E}(s(Error));e.exports=function(y){if(y.length>2)throw new R(y);function S(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.options=w}function c(w){return new S(w)}return S.prototype.transform=y,c.Format=S,c}},function(e,t,r){(function(n){var i=Object.getOwnPropertyDescriptors||function(T){for(var C=Object.keys(T),U={},b=0;b<C.length;b++)U[C[b]]=Object.getOwnPropertyDescriptor(T,C[b]);return U},g=/%[sdj%]/g;t.format=function(T){if(!F(T)){for(var C=[],U=0;U<arguments.length;U++)C.push(l(arguments[U]));return C.join(" ")}U=1;for(var b=arguments,f=b.length,B=String(T).replace(g,function(Y){if(Y==="%%")return"%";if(U>=f)return Y;switch(Y){case"%s":return String(b[U++]);case"%d":return Number(b[U++]);case"%j":try{return JSON.stringify(b[U++])}catch{return"[Circular]"}default:return Y}}),k=b[U];U<f;k=b[++U])E(k)||!p(k)?B+=" "+k:B+=" "+l(k);return B},t.deprecate=function(T,C){if(n!==void 0&&n.noDeprecation===!0)return T;if(n===void 0)return function(){return t.deprecate(T,C).apply(this,arguments)};var U=!1;return function(){if(!U){if(n.throwDeprecation)throw new Error(C);n.traceDeprecation?console.trace(C):console.error(C),U=!0}return T.apply(this,arguments)}};var s,o={};function l(T,C){var U={seen:[],stylize:m};return arguments.length>=3&&(U.depth=arguments[2]),arguments.length>=4&&(U.colors=arguments[3]),w(C)?U.showHidden=C:C&&t._extend(U,C),M(U.showHidden)&&(U.showHidden=!1),M(U.depth)&&(U.depth=2),M(U.colors)&&(U.colors=!1),M(U.customInspect)&&(U.customInspect=!0),U.colors&&(U.stylize=u),R(U,T,U.depth)}function u(T,C){var U=l.styles[C];return U?"["+l.colors[U][0]+"m"+T+"["+l.colors[U][1]+"m":T}function m(T,C){return T}function R(T,C,U){if(T.customInspect&&C&&q(C.inspect)&&C.inspect!==t.inspect&&(!C.constructor||C.constructor.prototype!==C)){var b=C.inspect(U,T);return F(b)||(b=R(T,b,U)),b}var f=function(v,j){if(M(j))return v.stylize("undefined","undefined");if(F(j)){var W="'"+JSON.stringify(j).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return v.stylize(W,"string")}if(P(j))return v.stylize(""+j,"number");if(w(j))return v.stylize(""+j,"boolean");if(E(j))return v.stylize("null","null")}(T,C);if(f)return f;var B=Object.keys(C),k=function(v){var j={};return v.forEach(function(W,ee){j[W]=!0}),j}(B);if(T.showHidden&&(B=Object.getOwnPropertyNames(C)),$(C)&&(B.indexOf("message")>=0||B.indexOf("description")>=0))return y(C);if(B.length===0){if(q(C)){var Y=C.name?": "+C.name:"";return T.stylize("[Function"+Y+"]","special")}if(A(C))return T.stylize(RegExp.prototype.toString.call(C),"regexp");if(N(C))return T.stylize(Date.prototype.toString.call(C),"date");if($(C))return y(C)}var K,Q="",G=!1,V=["{","}"];return c(C)&&(G=!0,V=["[","]"]),q(C)&&(Q=" [Function"+(C.name?": "+C.name:"")+"]"),A(C)&&(Q=" "+RegExp.prototype.toString.call(C)),N(C)&&(Q=" "+Date.prototype.toUTCString.call(C)),$(C)&&(Q=" "+y(C)),B.length!==0||G&&C.length!=0?U<0?A(C)?T.stylize(RegExp.prototype.toString.call(C),"regexp"):T.stylize("[Object]","special"):(T.seen.push(C),K=G?function(v,j,W,ee,J){for(var re=[],se=0,oe=j.length;se<oe;++se)x(j,String(se))?re.push(S(v,j,W,ee,String(se),!0)):re.push("");return J.forEach(function(z){z.match(/^\d+$/)||re.push(S(v,j,W,ee,z,!0))}),re}(T,C,U,k,B):B.map(function(v){return S(T,C,U,k,v,G)}),T.seen.pop(),function(v,j,W){return v.reduce(function(ee,J){return J.indexOf(`
|
|
@@ -11,34 +11,34 @@ Found: `.concat(P.toString().split(`
|
|
|
11
11
|
`).substr(2):`
|
|
12
12
|
`+Y.split(`
|
|
13
13
|
`).map(function(Q){return" "+Q}).join(`
|
|
14
|
-
`)):Y=T.stylize("[Circular]","special")),M(k)){if(B&&f.match(/^\d+$/))return Y;(k=JSON.stringify(""+f)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(k=k.substr(1,k.length-2),k=T.stylize(k,"name")):(k=k.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),k=T.stylize(k,"string"))}return k+": "+Y}function c(T){return Array.isArray(T)}function w(T){return typeof T=="boolean"}function E(T){return T===null}function P(T){return typeof T=="number"}function F(T){return typeof T=="string"}function M(T){return T===void 0}function A(T){return p(T)&&h(T)==="[object RegExp]"}function p(T){return typeof T=="object"&&T!==null}function N(T){return p(T)&&h(T)==="[object Date]"}function $(T){return p(T)&&(h(T)==="[object Error]"||T instanceof Error)}function q(T){return typeof T=="function"}function h(T){return Object.prototype.toString.call(T)}function d(T){return T<10?"0"+T.toString(10):T.toString(10)}t.debuglog=function(T){if(M(s)&&(s=n.env.NODE_DEBUG||""),T=T.toUpperCase(),!o[T])if(new RegExp("\\b"+T+"\\b","i").test(s)){var C=n.pid;o[T]=function(){var U=t.format.apply(t,arguments);console.error("%s %d: %s",T,C,U)}}else o[T]=function(){};return o[T]},t.inspect=l,l.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},l.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=c,t.isBoolean=w,t.isNull=E,t.isNullOrUndefined=function(T){return T==null},t.isNumber=P,t.isString=F,t.isSymbol=function(T){return typeof T=="symbol"},t.isUndefined=M,t.isRegExp=A,t.isObject=p,t.isDate=N,t.isError=$,t.isFunction=q,t.isPrimitive=function(T){return T===null||typeof T=="boolean"||typeof T=="number"||typeof T=="string"||typeof T=="symbol"||T===void 0},t.isBuffer=r(106);var O=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function _(){var T=new Date,C=[d(T.getHours()),d(T.getMinutes()),d(T.getSeconds())].join(":");return[T.getDate(),O[T.getMonth()],C].join(" ")}function x(T,C){return Object.prototype.hasOwnProperty.call(T,C)}t.log=function(){console.log("%s - %s",_(),t.format.apply(t,arguments))},t.inherits=r(107),t._extend=function(T,C){if(!C||!p(C))return T;for(var U=Object.keys(C),b=U.length;b--;)T[U[b]]=C[U[b]];return T};var D=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;function L(T,C){if(!T){var U=new Error("Promise was rejected with a falsy value");U.reason=T,T=U}return C(T)}t.promisify=function(T){if(typeof T!="function")throw new TypeError('The "original" argument must be of type Function');if(D&&T[D]){var C;if(typeof(C=T[D])!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(C,D,{value:C,enumerable:!1,writable:!1,configurable:!0}),C}function C(){for(var U,b,f=new Promise(function(Y,K){U=Y,b=K}),B=[],k=0;k<arguments.length;k++)B.push(arguments[k]);B.push(function(Y,K){Y?b(Y):U(K)});try{T.apply(this,B)}catch(Y){b(Y)}return f}return Object.setPrototypeOf(C,Object.getPrototypeOf(T)),D&&Object.defineProperty(C,D,{value:C,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(C,i(T))},t.promisify.custom=D,t.callbackify=function(T){if(typeof T!="function")throw new TypeError('The "original" argument must be of type Function');function C(){for(var U=[],b=0;b<arguments.length;b++)U.push(arguments[b]);var f=U.pop();if(typeof f!="function")throw new TypeError("The last argument must be of type Function");var B=this,k=function(){return f.apply(B,arguments)};T.apply(this,U).then(function(Y){n.nextTick(k,null,Y)},function(Y){n.nextTick(L,Y,k)})}return Object.setPrototypeOf(C,Object.getPrototypeOf(T)),Object.defineProperties(C,i(T)),C}}).call(this,r(2))},function(e,t,r){r.d(t,"a",function(){return n});const n=i=>new Promise(g=>setTimeout(g,i||0))},function(e,t,r){var n=r(95),i=n,g=Function("return this")(),s=r(94);i.object.extend(proto,s),i.exportSymbol("proto.v1.signaling.api.CreatePeerRequest",null,g),i.exportSymbol("proto.v1.signaling.api.CreatePeerResponse",null,g),i.exportSymbol("proto.v1.signaling.api.DeletePeerRequest",null,g),i.exportSymbol("proto.v1.signaling.api.DeletePeerResponse",null,g),i.exportSymbol("proto.v1.signaling.api.GetIceServersRequest",null,g),i.exportSymbol("proto.v1.signaling.api.GetIceServersResponse",null,g),i.exportSymbol("proto.v1.signaling.api.GetPeersRequest",null,g),i.exportSymbol("proto.v1.signaling.api.GetPeersResponse",null,g),i.exportSymbol("proto.v1.signaling.api.Peer",null,g),i.exportSymbol("proto.v1.signaling.api.ReceiveSignalStreamRequest",null,g),i.exportSymbol("proto.v1.signaling.api.ReceiveSignalStreamResponse",null,g),i.exportSymbol("proto.v1.signaling.api.RefreshPeerRequest",null,g),i.exportSymbol("proto.v1.signaling.api.RefreshPeerResponse",null,g),i.exportSymbol("proto.v1.signaling.api.SendSignalRequest",null,g),i.exportSymbol("proto.v1.signaling.api.SendSignalResponse",null,g),i.exportSymbol("proto.v1.signaling.api.Signal",null,g),proto.v1.signaling.api.Peer=function(o){n.Message.initialize(this,o,0,-1,proto.v1.signaling.api.Peer.repeatedFields_,null)},i.inherits(proto.v1.signaling.api.Peer,n.Message),i.DEBUG&&!COMPILED&&(proto.v1.signaling.api.Peer.displayName="proto.v1.signaling.api.Peer"),proto.v1.signaling.api.Signal=function(o){n.Message.initialize(this,o,0,-1,null,null)},i.inherits(proto.v1.signaling.api.Signal,n.Message),i.DEBUG&&!COMPILED&&(proto.v1.signaling.api.Signal.displayName="proto.v1.signaling.api.Signal"),proto.v1.signaling.api.CreatePeerRequest=function(o){n.Message.initialize(this,o,0,-1,null,null)},i.inherits(proto.v1.signaling.api.CreatePeerRequest,n.Message),i.DEBUG&&!COMPILED&&(proto.v1.signaling.api.CreatePeerRequest.displayName="proto.v1.signaling.api.CreatePeerRequest"),proto.v1.signaling.api.CreatePeerResponse=function(o){n.Message.initialize(this,o,0,-1,null,null)},i.inherits(proto.v1.signaling.api.CreatePeerResponse,n.Message),i.DEBUG&&!COMPILED&&(proto.v1.signaling.api.CreatePeerResponse.displayName="proto.v1.signaling.api.CreatePeerResponse"),proto.v1.signaling.api.DeletePeerRequest=function(o){n.Message.initialize(this,o,0,-1,null,null)},i.inherits(proto.v1.signaling.api.DeletePeerRequest,n.Message),i.DEBUG&&!COMPILED&&(proto.v1.signaling.api.DeletePeerRequest.displayName="proto.v1.signaling.api.DeletePeerRequest"),proto.v1.signaling.api.DeletePeerResponse=function(o){n.Message.initialize(this,o,0,-1,null,null)},i.inherits(proto.v1.signaling.api.DeletePeerResponse,n.Message),i.DEBUG&&!COMPILED&&(proto.v1.signaling.api.DeletePeerResponse.displayName="proto.v1.signaling.api.DeletePeerResponse"),proto.v1.signaling.api.RefreshPeerRequest=function(o){n.Message.initialize(this,o,0,-1,null,null)},i.inherits(proto.v1.signaling.api.RefreshPeerRequest,n.Message),i.DEBUG&&!COMPILED&&(proto.v1.signaling.api.RefreshPeerRequest.displayName="proto.v1.signaling.api.RefreshPeerRequest"),proto.v1.signaling.api.RefreshPeerResponse=function(o){n.Message.initialize(this,o,0,-1,null,null)},i.inherits(proto.v1.signaling.api.RefreshPeerResponse,n.Message),i.DEBUG&&!COMPILED&&(proto.v1.signaling.api.RefreshPeerResponse.displayName="proto.v1.signaling.api.RefreshPeerResponse"),proto.v1.signaling.api.GetPeersRequest=function(o){n.Message.initialize(this,o,0,-1,null,null)},i.inherits(proto.v1.signaling.api.GetPeersRequest,n.Message),i.DEBUG&&!COMPILED&&(proto.v1.signaling.api.GetPeersRequest.displayName="proto.v1.signaling.api.GetPeersRequest"),proto.v1.signaling.api.GetPeersResponse=function(o){n.Message.initialize(this,o,0,-1,proto.v1.signaling.api.GetPeersResponse.repeatedFields_,null)},i.inherits(proto.v1.signaling.api.GetPeersResponse,n.Message),i.DEBUG&&!COMPILED&&(proto.v1.signaling.api.GetPeersResponse.displayName="proto.v1.signaling.api.GetPeersResponse"),proto.v1.signaling.api.GetIceServersRequest=function(o){n.Message.initialize(this,o,0,-1,null,null)},i.inherits(proto.v1.signaling.api.GetIceServersRequest,n.Message),i.DEBUG&&!COMPILED&&(proto.v1.signaling.api.GetIceServersRequest.displayName="proto.v1.signaling.api.GetIceServersRequest"),proto.v1.signaling.api.GetIceServersResponse=function(o){n.Message.initialize(this,o,0,-1,null,null)},i.inherits(proto.v1.signaling.api.GetIceServersResponse,n.Message),i.DEBUG&&!COMPILED&&(proto.v1.signaling.api.GetIceServersResponse.displayName="proto.v1.signaling.api.GetIceServersResponse"),proto.v1.signaling.api.SendSignalRequest=function(o){n.Message.initialize(this,o,0,-1,null,null)},i.inherits(proto.v1.signaling.api.SendSignalRequest,n.Message),i.DEBUG&&!COMPILED&&(proto.v1.signaling.api.SendSignalRequest.displayName="proto.v1.signaling.api.SendSignalRequest"),proto.v1.signaling.api.SendSignalResponse=function(o){n.Message.initialize(this,o,0,-1,null,null)},i.inherits(proto.v1.signaling.api.SendSignalResponse,n.Message),i.DEBUG&&!COMPILED&&(proto.v1.signaling.api.SendSignalResponse.displayName="proto.v1.signaling.api.SendSignalResponse"),proto.v1.signaling.api.ReceiveSignalStreamRequest=function(o){n.Message.initialize(this,o,0,-1,null,null)},i.inherits(proto.v1.signaling.api.ReceiveSignalStreamRequest,n.Message),i.DEBUG&&!COMPILED&&(proto.v1.signaling.api.ReceiveSignalStreamRequest.displayName="proto.v1.signaling.api.ReceiveSignalStreamRequest"),proto.v1.signaling.api.ReceiveSignalStreamResponse=function(o){n.Message.initialize(this,o,0,-1,null,null)},i.inherits(proto.v1.signaling.api.ReceiveSignalStreamResponse,n.Message),i.DEBUG&&!COMPILED&&(proto.v1.signaling.api.ReceiveSignalStreamResponse.displayName="proto.v1.signaling.api.ReceiveSignalStreamResponse"),proto.v1.signaling.api.Peer.repeatedFields_=[5],n.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.Peer.prototype.toObject=function(o){return proto.v1.signaling.api.Peer.toObject(o,this)},proto.v1.signaling.api.Peer.toObject=function(o,l){var u,m={peerId:n.Message.getFieldWithDefault(l,1,""),organizationId:n.Message.getFieldWithDefault(l,2,""),userId:(u=l.getUserId())&&s.StringValue.toObject(o,u),deviceId:(u=l.getDeviceId())&&s.StringValue.toObject(o,u),sessionIdsList:(u=n.Message.getRepeatedField(l,5))==null?void 0:u,peerCreatedTimestamp:(u=l.getPeerCreatedTimestamp())&&s.Int64Value.toObject(o,u)};return o&&(m.$jspbMessageInstance=l),m}),proto.v1.signaling.api.Peer.deserializeBinary=function(o){var l=new n.BinaryReader(o),u=new proto.v1.signaling.api.Peer;return proto.v1.signaling.api.Peer.deserializeBinaryFromReader(u,l)},proto.v1.signaling.api.Peer.deserializeBinaryFromReader=function(o,l){for(;l.nextField()&&!l.isEndGroup();)switch(l.getFieldNumber()){case 1:var u=l.readString();o.setPeerId(u);break;case 2:u=l.readString(),o.setOrganizationId(u);break;case 3:u=new s.StringValue,l.readMessage(u,s.StringValue.deserializeBinaryFromReader),o.setUserId(u);break;case 4:u=new s.StringValue,l.readMessage(u,s.StringValue.deserializeBinaryFromReader),o.setDeviceId(u);break;case 5:u=l.readString(),o.addSessionIds(u);break;case 6:u=new s.Int64Value,l.readMessage(u,s.Int64Value.deserializeBinaryFromReader),o.setPeerCreatedTimestamp(u);break;default:l.skipField()}return o},proto.v1.signaling.api.Peer.prototype.serializeBinary=function(){var o=new n.BinaryWriter;return proto.v1.signaling.api.Peer.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.v1.signaling.api.Peer.serializeBinaryToWriter=function(o,l){var u=void 0;(u=o.getPeerId()).length>0&&l.writeString(1,u),(u=o.getOrganizationId()).length>0&&l.writeString(2,u),(u=o.getUserId())!=null&&l.writeMessage(3,u,s.StringValue.serializeBinaryToWriter),(u=o.getDeviceId())!=null&&l.writeMessage(4,u,s.StringValue.serializeBinaryToWriter),(u=o.getSessionIdsList()).length>0&&l.writeRepeatedString(5,u),(u=o.getPeerCreatedTimestamp())!=null&&l.writeMessage(6,u,s.Int64Value.serializeBinaryToWriter)},proto.v1.signaling.api.Peer.prototype.getPeerId=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.v1.signaling.api.Peer.prototype.setPeerId=function(o){return n.Message.setProto3StringField(this,1,o)},proto.v1.signaling.api.Peer.prototype.getOrganizationId=function(){return n.Message.getFieldWithDefault(this,2,"")},proto.v1.signaling.api.Peer.prototype.setOrganizationId=function(o){return n.Message.setProto3StringField(this,2,o)},proto.v1.signaling.api.Peer.prototype.getUserId=function(){return n.Message.getWrapperField(this,s.StringValue,3)},proto.v1.signaling.api.Peer.prototype.setUserId=function(o){return n.Message.setWrapperField(this,3,o)},proto.v1.signaling.api.Peer.prototype.clearUserId=function(){return this.setUserId(void 0)},proto.v1.signaling.api.Peer.prototype.hasUserId=function(){return n.Message.getField(this,3)!=null},proto.v1.signaling.api.Peer.prototype.getDeviceId=function(){return n.Message.getWrapperField(this,s.StringValue,4)},proto.v1.signaling.api.Peer.prototype.setDeviceId=function(o){return n.Message.setWrapperField(this,4,o)},proto.v1.signaling.api.Peer.prototype.clearDeviceId=function(){return this.setDeviceId(void 0)},proto.v1.signaling.api.Peer.prototype.hasDeviceId=function(){return n.Message.getField(this,4)!=null},proto.v1.signaling.api.Peer.prototype.getSessionIdsList=function(){return n.Message.getRepeatedField(this,5)},proto.v1.signaling.api.Peer.prototype.setSessionIdsList=function(o){return n.Message.setField(this,5,o||[])},proto.v1.signaling.api.Peer.prototype.addSessionIds=function(o,l){return n.Message.addToRepeatedField(this,5,o,l)},proto.v1.signaling.api.Peer.prototype.clearSessionIdsList=function(){return this.setSessionIdsList([])},proto.v1.signaling.api.Peer.prototype.getPeerCreatedTimestamp=function(){return n.Message.getWrapperField(this,s.Int64Value,6)},proto.v1.signaling.api.Peer.prototype.setPeerCreatedTimestamp=function(o){return n.Message.setWrapperField(this,6,o)},proto.v1.signaling.api.Peer.prototype.clearPeerCreatedTimestamp=function(){return this.setPeerCreatedTimestamp(void 0)},proto.v1.signaling.api.Peer.prototype.hasPeerCreatedTimestamp=function(){return n.Message.getField(this,6)!=null},n.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.Signal.prototype.toObject=function(o){return proto.v1.signaling.api.Signal.toObject(o,this)},proto.v1.signaling.api.Signal.toObject=function(o,l){var u,m={sessionId:(u=l.getSessionId())&&s.StringValue.toObject(o,u),sessionCreatedTimestamp:(u=l.getSessionCreatedTimestamp())&&s.Int64Value.toObject(o,u),senderId:n.Message.getFieldWithDefault(l,3,""),receiverId:n.Message.getFieldWithDefault(l,4,""),payload:n.Message.getFieldWithDefault(l,5,""),iceServers:n.Message.getFieldWithDefault(l,6,""),iceTransportPolicy:n.Message.getFieldWithDefault(l,7,"")};return o&&(m.$jspbMessageInstance=l),m}),proto.v1.signaling.api.Signal.deserializeBinary=function(o){var l=new n.BinaryReader(o),u=new proto.v1.signaling.api.Signal;return proto.v1.signaling.api.Signal.deserializeBinaryFromReader(u,l)},proto.v1.signaling.api.Signal.deserializeBinaryFromReader=function(o,l){for(;l.nextField()&&!l.isEndGroup();)switch(l.getFieldNumber()){case 1:var u=new s.StringValue;l.readMessage(u,s.StringValue.deserializeBinaryFromReader),o.setSessionId(u);break;case 2:u=new s.Int64Value,l.readMessage(u,s.Int64Value.deserializeBinaryFromReader),o.setSessionCreatedTimestamp(u);break;case 3:u=l.readString(),o.setSenderId(u);break;case 4:u=l.readString(),o.setReceiverId(u);break;case 5:u=l.readString(),o.setPayload(u);break;case 6:u=l.readString(),o.setIceServers(u);break;case 7:u=l.readString(),o.setIceTransportPolicy(u);break;default:l.skipField()}return o},proto.v1.signaling.api.Signal.prototype.serializeBinary=function(){var o=new n.BinaryWriter;return proto.v1.signaling.api.Signal.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.v1.signaling.api.Signal.serializeBinaryToWriter=function(o,l){var u=void 0;(u=o.getSessionId())!=null&&l.writeMessage(1,u,s.StringValue.serializeBinaryToWriter),(u=o.getSessionCreatedTimestamp())!=null&&l.writeMessage(2,u,s.Int64Value.serializeBinaryToWriter),(u=o.getSenderId()).length>0&&l.writeString(3,u),(u=o.getReceiverId()).length>0&&l.writeString(4,u),(u=o.getPayload()).length>0&&l.writeString(5,u),(u=o.getIceServers()).length>0&&l.writeString(6,u),(u=o.getIceTransportPolicy()).length>0&&l.writeString(7,u)},proto.v1.signaling.api.Signal.prototype.getSessionId=function(){return n.Message.getWrapperField(this,s.StringValue,1)},proto.v1.signaling.api.Signal.prototype.setSessionId=function(o){return n.Message.setWrapperField(this,1,o)},proto.v1.signaling.api.Signal.prototype.clearSessionId=function(){return this.setSessionId(void 0)},proto.v1.signaling.api.Signal.prototype.hasSessionId=function(){return n.Message.getField(this,1)!=null},proto.v1.signaling.api.Signal.prototype.getSessionCreatedTimestamp=function(){return n.Message.getWrapperField(this,s.Int64Value,2)},proto.v1.signaling.api.Signal.prototype.setSessionCreatedTimestamp=function(o){return n.Message.setWrapperField(this,2,o)},proto.v1.signaling.api.Signal.prototype.clearSessionCreatedTimestamp=function(){return this.setSessionCreatedTimestamp(void 0)},proto.v1.signaling.api.Signal.prototype.hasSessionCreatedTimestamp=function(){return n.Message.getField(this,2)!=null},proto.v1.signaling.api.Signal.prototype.getSenderId=function(){return n.Message.getFieldWithDefault(this,3,"")},proto.v1.signaling.api.Signal.prototype.setSenderId=function(o){return n.Message.setProto3StringField(this,3,o)},proto.v1.signaling.api.Signal.prototype.getReceiverId=function(){return n.Message.getFieldWithDefault(this,4,"")},proto.v1.signaling.api.Signal.prototype.setReceiverId=function(o){return n.Message.setProto3StringField(this,4,o)},proto.v1.signaling.api.Signal.prototype.getPayload=function(){return n.Message.getFieldWithDefault(this,5,"")},proto.v1.signaling.api.Signal.prototype.setPayload=function(o){return n.Message.setProto3StringField(this,5,o)},proto.v1.signaling.api.Signal.prototype.getIceServers=function(){return n.Message.getFieldWithDefault(this,6,"")},proto.v1.signaling.api.Signal.prototype.setIceServers=function(o){return n.Message.setProto3StringField(this,6,o)},proto.v1.signaling.api.Signal.prototype.getIceTransportPolicy=function(){return n.Message.getFieldWithDefault(this,7,"")},proto.v1.signaling.api.Signal.prototype.setIceTransportPolicy=function(o){return n.Message.setProto3StringField(this,7,o)},n.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.CreatePeerRequest.prototype.toObject=function(o){return proto.v1.signaling.api.CreatePeerRequest.toObject(o,this)},proto.v1.signaling.api.CreatePeerRequest.toObject=function(o,l){var u={};return o&&(u.$jspbMessageInstance=l),u}),proto.v1.signaling.api.CreatePeerRequest.deserializeBinary=function(o){var l=new n.BinaryReader(o),u=new proto.v1.signaling.api.CreatePeerRequest;return proto.v1.signaling.api.CreatePeerRequest.deserializeBinaryFromReader(u,l)},proto.v1.signaling.api.CreatePeerRequest.deserializeBinaryFromReader=function(o,l){for(;l.nextField()&&!l.isEndGroup();)l.getFieldNumber(),l.skipField();return o},proto.v1.signaling.api.CreatePeerRequest.prototype.serializeBinary=function(){var o=new n.BinaryWriter;return proto.v1.signaling.api.CreatePeerRequest.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.v1.signaling.api.CreatePeerRequest.serializeBinaryToWriter=function(o,l){},n.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.CreatePeerResponse.prototype.toObject=function(o){return proto.v1.signaling.api.CreatePeerResponse.toObject(o,this)},proto.v1.signaling.api.CreatePeerResponse.toObject=function(o,l){var u,m={peer:(u=l.getPeer())&&proto.v1.signaling.api.Peer.toObject(o,u)};return o&&(m.$jspbMessageInstance=l),m}),proto.v1.signaling.api.CreatePeerResponse.deserializeBinary=function(o){var l=new n.BinaryReader(o),u=new proto.v1.signaling.api.CreatePeerResponse;return proto.v1.signaling.api.CreatePeerResponse.deserializeBinaryFromReader(u,l)},proto.v1.signaling.api.CreatePeerResponse.deserializeBinaryFromReader=function(o,l){for(;l.nextField()&&!l.isEndGroup();)switch(l.getFieldNumber()){case 1:var u=new proto.v1.signaling.api.Peer;l.readMessage(u,proto.v1.signaling.api.Peer.deserializeBinaryFromReader),o.setPeer(u);break;default:l.skipField()}return o},proto.v1.signaling.api.CreatePeerResponse.prototype.serializeBinary=function(){var o=new n.BinaryWriter;return proto.v1.signaling.api.CreatePeerResponse.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.v1.signaling.api.CreatePeerResponse.serializeBinaryToWriter=function(o,l){var u;(u=o.getPeer())!=null&&l.writeMessage(1,u,proto.v1.signaling.api.Peer.serializeBinaryToWriter)},proto.v1.signaling.api.CreatePeerResponse.prototype.getPeer=function(){return n.Message.getWrapperField(this,proto.v1.signaling.api.Peer,1)},proto.v1.signaling.api.CreatePeerResponse.prototype.setPeer=function(o){return n.Message.setWrapperField(this,1,o)},proto.v1.signaling.api.CreatePeerResponse.prototype.clearPeer=function(){return this.setPeer(void 0)},proto.v1.signaling.api.CreatePeerResponse.prototype.hasPeer=function(){return n.Message.getField(this,1)!=null},n.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.DeletePeerRequest.prototype.toObject=function(o){return proto.v1.signaling.api.DeletePeerRequest.toObject(o,this)},proto.v1.signaling.api.DeletePeerRequest.toObject=function(o,l){var u={peerId:n.Message.getFieldWithDefault(l,1,"")};return o&&(u.$jspbMessageInstance=l),u}),proto.v1.signaling.api.DeletePeerRequest.deserializeBinary=function(o){var l=new n.BinaryReader(o),u=new proto.v1.signaling.api.DeletePeerRequest;return proto.v1.signaling.api.DeletePeerRequest.deserializeBinaryFromReader(u,l)},proto.v1.signaling.api.DeletePeerRequest.deserializeBinaryFromReader=function(o,l){for(;l.nextField()&&!l.isEndGroup();)switch(l.getFieldNumber()){case 1:var u=l.readString();o.setPeerId(u);break;default:l.skipField()}return o},proto.v1.signaling.api.DeletePeerRequest.prototype.serializeBinary=function(){var o=new n.BinaryWriter;return proto.v1.signaling.api.DeletePeerRequest.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.v1.signaling.api.DeletePeerRequest.serializeBinaryToWriter=function(o,l){var u;(u=o.getPeerId()).length>0&&l.writeString(1,u)},proto.v1.signaling.api.DeletePeerRequest.prototype.getPeerId=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.v1.signaling.api.DeletePeerRequest.prototype.setPeerId=function(o){return n.Message.setProto3StringField(this,1,o)},n.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.DeletePeerResponse.prototype.toObject=function(o){return proto.v1.signaling.api.DeletePeerResponse.toObject(o,this)},proto.v1.signaling.api.DeletePeerResponse.toObject=function(o,l){var u={};return o&&(u.$jspbMessageInstance=l),u}),proto.v1.signaling.api.DeletePeerResponse.deserializeBinary=function(o){var l=new n.BinaryReader(o),u=new proto.v1.signaling.api.DeletePeerResponse;return proto.v1.signaling.api.DeletePeerResponse.deserializeBinaryFromReader(u,l)},proto.v1.signaling.api.DeletePeerResponse.deserializeBinaryFromReader=function(o,l){for(;l.nextField()&&!l.isEndGroup();)l.getFieldNumber(),l.skipField();return o},proto.v1.signaling.api.DeletePeerResponse.prototype.serializeBinary=function(){var o=new n.BinaryWriter;return proto.v1.signaling.api.DeletePeerResponse.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.v1.signaling.api.DeletePeerResponse.serializeBinaryToWriter=function(o,l){},n.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.RefreshPeerRequest.prototype.toObject=function(o){return proto.v1.signaling.api.RefreshPeerRequest.toObject(o,this)},proto.v1.signaling.api.RefreshPeerRequest.toObject=function(o,l){var u,m={peer:(u=l.getPeer())&&proto.v1.signaling.api.Peer.toObject(o,u)};return o&&(m.$jspbMessageInstance=l),m}),proto.v1.signaling.api.RefreshPeerRequest.deserializeBinary=function(o){var l=new n.BinaryReader(o),u=new proto.v1.signaling.api.RefreshPeerRequest;return proto.v1.signaling.api.RefreshPeerRequest.deserializeBinaryFromReader(u,l)},proto.v1.signaling.api.RefreshPeerRequest.deserializeBinaryFromReader=function(o,l){for(;l.nextField()&&!l.isEndGroup();)switch(l.getFieldNumber()){case 1:var u=new proto.v1.signaling.api.Peer;l.readMessage(u,proto.v1.signaling.api.Peer.deserializeBinaryFromReader),o.setPeer(u);break;default:l.skipField()}return o},proto.v1.signaling.api.RefreshPeerRequest.prototype.serializeBinary=function(){var o=new n.BinaryWriter;return proto.v1.signaling.api.RefreshPeerRequest.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.v1.signaling.api.RefreshPeerRequest.serializeBinaryToWriter=function(o,l){var u;(u=o.getPeer())!=null&&l.writeMessage(1,u,proto.v1.signaling.api.Peer.serializeBinaryToWriter)},proto.v1.signaling.api.RefreshPeerRequest.prototype.getPeer=function(){return n.Message.getWrapperField(this,proto.v1.signaling.api.Peer,1)},proto.v1.signaling.api.RefreshPeerRequest.prototype.setPeer=function(o){return n.Message.setWrapperField(this,1,o)},proto.v1.signaling.api.RefreshPeerRequest.prototype.clearPeer=function(){return this.setPeer(void 0)},proto.v1.signaling.api.RefreshPeerRequest.prototype.hasPeer=function(){return n.Message.getField(this,1)!=null},n.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.RefreshPeerResponse.prototype.toObject=function(o){return proto.v1.signaling.api.RefreshPeerResponse.toObject(o,this)},proto.v1.signaling.api.RefreshPeerResponse.toObject=function(o,l){var u={};return o&&(u.$jspbMessageInstance=l),u}),proto.v1.signaling.api.RefreshPeerResponse.deserializeBinary=function(o){var l=new n.BinaryReader(o),u=new proto.v1.signaling.api.RefreshPeerResponse;return proto.v1.signaling.api.RefreshPeerResponse.deserializeBinaryFromReader(u,l)},proto.v1.signaling.api.RefreshPeerResponse.deserializeBinaryFromReader=function(o,l){for(;l.nextField()&&!l.isEndGroup();)l.getFieldNumber(),l.skipField();return o},proto.v1.signaling.api.RefreshPeerResponse.prototype.serializeBinary=function(){var o=new n.BinaryWriter;return proto.v1.signaling.api.RefreshPeerResponse.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.v1.signaling.api.RefreshPeerResponse.serializeBinaryToWriter=function(o,l){},n.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.GetPeersRequest.prototype.toObject=function(o){return proto.v1.signaling.api.GetPeersRequest.toObject(o,this)},proto.v1.signaling.api.GetPeersRequest.toObject=function(o,l){var u={};return o&&(u.$jspbMessageInstance=l),u}),proto.v1.signaling.api.GetPeersRequest.deserializeBinary=function(o){var l=new n.BinaryReader(o),u=new proto.v1.signaling.api.GetPeersRequest;return proto.v1.signaling.api.GetPeersRequest.deserializeBinaryFromReader(u,l)},proto.v1.signaling.api.GetPeersRequest.deserializeBinaryFromReader=function(o,l){for(;l.nextField()&&!l.isEndGroup();)l.getFieldNumber(),l.skipField();return o},proto.v1.signaling.api.GetPeersRequest.prototype.serializeBinary=function(){var o=new n.BinaryWriter;return proto.v1.signaling.api.GetPeersRequest.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.v1.signaling.api.GetPeersRequest.serializeBinaryToWriter=function(o,l){},proto.v1.signaling.api.GetPeersResponse.repeatedFields_=[1],n.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.GetPeersResponse.prototype.toObject=function(o){return proto.v1.signaling.api.GetPeersResponse.toObject(o,this)},proto.v1.signaling.api.GetPeersResponse.toObject=function(o,l){var u={peersList:n.Message.toObjectList(l.getPeersList(),proto.v1.signaling.api.Peer.toObject,o)};return o&&(u.$jspbMessageInstance=l),u}),proto.v1.signaling.api.GetPeersResponse.deserializeBinary=function(o){var l=new n.BinaryReader(o),u=new proto.v1.signaling.api.GetPeersResponse;return proto.v1.signaling.api.GetPeersResponse.deserializeBinaryFromReader(u,l)},proto.v1.signaling.api.GetPeersResponse.deserializeBinaryFromReader=function(o,l){for(;l.nextField()&&!l.isEndGroup();)switch(l.getFieldNumber()){case 1:var u=new proto.v1.signaling.api.Peer;l.readMessage(u,proto.v1.signaling.api.Peer.deserializeBinaryFromReader),o.addPeers(u);break;default:l.skipField()}return o},proto.v1.signaling.api.GetPeersResponse.prototype.serializeBinary=function(){var o=new n.BinaryWriter;return proto.v1.signaling.api.GetPeersResponse.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.v1.signaling.api.GetPeersResponse.serializeBinaryToWriter=function(o,l){var u;(u=o.getPeersList()).length>0&&l.writeRepeatedMessage(1,u,proto.v1.signaling.api.Peer.serializeBinaryToWriter)},proto.v1.signaling.api.GetPeersResponse.prototype.getPeersList=function(){return n.Message.getRepeatedWrapperField(this,proto.v1.signaling.api.Peer,1)},proto.v1.signaling.api.GetPeersResponse.prototype.setPeersList=function(o){return n.Message.setRepeatedWrapperField(this,1,o)},proto.v1.signaling.api.GetPeersResponse.prototype.addPeers=function(o,l){return n.Message.addToRepeatedWrapperField(this,1,o,proto.v1.signaling.api.Peer,l)},proto.v1.signaling.api.GetPeersResponse.prototype.clearPeersList=function(){return this.setPeersList([])},n.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.GetIceServersRequest.prototype.toObject=function(o){return proto.v1.signaling.api.GetIceServersRequest.toObject(o,this)},proto.v1.signaling.api.GetIceServersRequest.toObject=function(o,l){var u={};return o&&(u.$jspbMessageInstance=l),u}),proto.v1.signaling.api.GetIceServersRequest.deserializeBinary=function(o){var l=new n.BinaryReader(o),u=new proto.v1.signaling.api.GetIceServersRequest;return proto.v1.signaling.api.GetIceServersRequest.deserializeBinaryFromReader(u,l)},proto.v1.signaling.api.GetIceServersRequest.deserializeBinaryFromReader=function(o,l){for(;l.nextField()&&!l.isEndGroup();)l.getFieldNumber(),l.skipField();return o},proto.v1.signaling.api.GetIceServersRequest.prototype.serializeBinary=function(){var o=new n.BinaryWriter;return proto.v1.signaling.api.GetIceServersRequest.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.v1.signaling.api.GetIceServersRequest.serializeBinaryToWriter=function(o,l){},n.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.GetIceServersResponse.prototype.toObject=function(o){return proto.v1.signaling.api.GetIceServersResponse.toObject(o,this)},proto.v1.signaling.api.GetIceServersResponse.toObject=function(o,l){var u={iceServers:n.Message.getFieldWithDefault(l,1,"")};return o&&(u.$jspbMessageInstance=l),u}),proto.v1.signaling.api.GetIceServersResponse.deserializeBinary=function(o){var l=new n.BinaryReader(o),u=new proto.v1.signaling.api.GetIceServersResponse;return proto.v1.signaling.api.GetIceServersResponse.deserializeBinaryFromReader(u,l)},proto.v1.signaling.api.GetIceServersResponse.deserializeBinaryFromReader=function(o,l){for(;l.nextField()&&!l.isEndGroup();)switch(l.getFieldNumber()){case 1:var u=l.readString();o.setIceServers(u);break;default:l.skipField()}return o},proto.v1.signaling.api.GetIceServersResponse.prototype.serializeBinary=function(){var o=new n.BinaryWriter;return proto.v1.signaling.api.GetIceServersResponse.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.v1.signaling.api.GetIceServersResponse.serializeBinaryToWriter=function(o,l){var u;(u=o.getIceServers()).length>0&&l.writeString(1,u)},proto.v1.signaling.api.GetIceServersResponse.prototype.getIceServers=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.v1.signaling.api.GetIceServersResponse.prototype.setIceServers=function(o){return n.Message.setProto3StringField(this,1,o)},n.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.SendSignalRequest.prototype.toObject=function(o){return proto.v1.signaling.api.SendSignalRequest.toObject(o,this)},proto.v1.signaling.api.SendSignalRequest.toObject=function(o,l){var u,m={signal:(u=l.getSignal())&&proto.v1.signaling.api.Signal.toObject(o,u)};return o&&(m.$jspbMessageInstance=l),m}),proto.v1.signaling.api.SendSignalRequest.deserializeBinary=function(o){var l=new n.BinaryReader(o),u=new proto.v1.signaling.api.SendSignalRequest;return proto.v1.signaling.api.SendSignalRequest.deserializeBinaryFromReader(u,l)},proto.v1.signaling.api.SendSignalRequest.deserializeBinaryFromReader=function(o,l){for(;l.nextField()&&!l.isEndGroup();)switch(l.getFieldNumber()){case 1:var u=new proto.v1.signaling.api.Signal;l.readMessage(u,proto.v1.signaling.api.Signal.deserializeBinaryFromReader),o.setSignal(u);break;default:l.skipField()}return o},proto.v1.signaling.api.SendSignalRequest.prototype.serializeBinary=function(){var o=new n.BinaryWriter;return proto.v1.signaling.api.SendSignalRequest.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.v1.signaling.api.SendSignalRequest.serializeBinaryToWriter=function(o,l){var u;(u=o.getSignal())!=null&&l.writeMessage(1,u,proto.v1.signaling.api.Signal.serializeBinaryToWriter)},proto.v1.signaling.api.SendSignalRequest.prototype.getSignal=function(){return n.Message.getWrapperField(this,proto.v1.signaling.api.Signal,1)},proto.v1.signaling.api.SendSignalRequest.prototype.setSignal=function(o){return n.Message.setWrapperField(this,1,o)},proto.v1.signaling.api.SendSignalRequest.prototype.clearSignal=function(){return this.setSignal(void 0)},proto.v1.signaling.api.SendSignalRequest.prototype.hasSignal=function(){return n.Message.getField(this,1)!=null},n.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.SendSignalResponse.prototype.toObject=function(o){return proto.v1.signaling.api.SendSignalResponse.toObject(o,this)},proto.v1.signaling.api.SendSignalResponse.toObject=function(o,l){var u,m={sessionId:(u=l.getSessionId())&&s.StringValue.toObject(o,u),sessionCreatedTimestamp:(u=l.getSessionCreatedTimestamp())&&s.Int64Value.toObject(o,u)};return o&&(m.$jspbMessageInstance=l),m}),proto.v1.signaling.api.SendSignalResponse.deserializeBinary=function(o){var l=new n.BinaryReader(o),u=new proto.v1.signaling.api.SendSignalResponse;return proto.v1.signaling.api.SendSignalResponse.deserializeBinaryFromReader(u,l)},proto.v1.signaling.api.SendSignalResponse.deserializeBinaryFromReader=function(o,l){for(;l.nextField()&&!l.isEndGroup();)switch(l.getFieldNumber()){case 1:var u=new s.StringValue;l.readMessage(u,s.StringValue.deserializeBinaryFromReader),o.setSessionId(u);break;case 2:u=new s.Int64Value,l.readMessage(u,s.Int64Value.deserializeBinaryFromReader),o.setSessionCreatedTimestamp(u);break;default:l.skipField()}return o},proto.v1.signaling.api.SendSignalResponse.prototype.serializeBinary=function(){var o=new n.BinaryWriter;return proto.v1.signaling.api.SendSignalResponse.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.v1.signaling.api.SendSignalResponse.serializeBinaryToWriter=function(o,l){var u=void 0;(u=o.getSessionId())!=null&&l.writeMessage(1,u,s.StringValue.serializeBinaryToWriter),(u=o.getSessionCreatedTimestamp())!=null&&l.writeMessage(2,u,s.Int64Value.serializeBinaryToWriter)},proto.v1.signaling.api.SendSignalResponse.prototype.getSessionId=function(){return n.Message.getWrapperField(this,s.StringValue,1)},proto.v1.signaling.api.SendSignalResponse.prototype.setSessionId=function(o){return n.Message.setWrapperField(this,1,o)},proto.v1.signaling.api.SendSignalResponse.prototype.clearSessionId=function(){return this.setSessionId(void 0)},proto.v1.signaling.api.SendSignalResponse.prototype.hasSessionId=function(){return n.Message.getField(this,1)!=null},proto.v1.signaling.api.SendSignalResponse.prototype.getSessionCreatedTimestamp=function(){return n.Message.getWrapperField(this,s.Int64Value,2)},proto.v1.signaling.api.SendSignalResponse.prototype.setSessionCreatedTimestamp=function(o){return n.Message.setWrapperField(this,2,o)},proto.v1.signaling.api.SendSignalResponse.prototype.clearSessionCreatedTimestamp=function(){return this.setSessionCreatedTimestamp(void 0)},proto.v1.signaling.api.SendSignalResponse.prototype.hasSessionCreatedTimestamp=function(){return n.Message.getField(this,2)!=null},n.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.ReceiveSignalStreamRequest.prototype.toObject=function(o){return proto.v1.signaling.api.ReceiveSignalStreamRequest.toObject(o,this)},proto.v1.signaling.api.ReceiveSignalStreamRequest.toObject=function(o,l){var u={peerId:n.Message.getFieldWithDefault(l,1,"")};return o&&(u.$jspbMessageInstance=l),u}),proto.v1.signaling.api.ReceiveSignalStreamRequest.deserializeBinary=function(o){var l=new n.BinaryReader(o),u=new proto.v1.signaling.api.ReceiveSignalStreamRequest;return proto.v1.signaling.api.ReceiveSignalStreamRequest.deserializeBinaryFromReader(u,l)},proto.v1.signaling.api.ReceiveSignalStreamRequest.deserializeBinaryFromReader=function(o,l){for(;l.nextField()&&!l.isEndGroup();)switch(l.getFieldNumber()){case 1:var u=l.readString();o.setPeerId(u);break;default:l.skipField()}return o},proto.v1.signaling.api.ReceiveSignalStreamRequest.prototype.serializeBinary=function(){var o=new n.BinaryWriter;return proto.v1.signaling.api.ReceiveSignalStreamRequest.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.v1.signaling.api.ReceiveSignalStreamRequest.serializeBinaryToWriter=function(o,l){var u;(u=o.getPeerId()).length>0&&l.writeString(1,u)},proto.v1.signaling.api.ReceiveSignalStreamRequest.prototype.getPeerId=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.v1.signaling.api.ReceiveSignalStreamRequest.prototype.setPeerId=function(o){return n.Message.setProto3StringField(this,1,o)},n.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.ReceiveSignalStreamResponse.prototype.toObject=function(o){return proto.v1.signaling.api.ReceiveSignalStreamResponse.toObject(o,this)},proto.v1.signaling.api.ReceiveSignalStreamResponse.toObject=function(o,l){var u,m={signal:(u=l.getSignal())&&proto.v1.signaling.api.Signal.toObject(o,u)};return o&&(m.$jspbMessageInstance=l),m}),proto.v1.signaling.api.ReceiveSignalStreamResponse.deserializeBinary=function(o){var l=new n.BinaryReader(o),u=new proto.v1.signaling.api.ReceiveSignalStreamResponse;return proto.v1.signaling.api.ReceiveSignalStreamResponse.deserializeBinaryFromReader(u,l)},proto.v1.signaling.api.ReceiveSignalStreamResponse.deserializeBinaryFromReader=function(o,l){for(;l.nextField()&&!l.isEndGroup();)switch(l.getFieldNumber()){case 1:var u=new proto.v1.signaling.api.Signal;l.readMessage(u,proto.v1.signaling.api.Signal.deserializeBinaryFromReader),o.setSignal(u);break;default:l.skipField()}return o},proto.v1.signaling.api.ReceiveSignalStreamResponse.prototype.serializeBinary=function(){var o=new n.BinaryWriter;return proto.v1.signaling.api.ReceiveSignalStreamResponse.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.v1.signaling.api.ReceiveSignalStreamResponse.serializeBinaryToWriter=function(o,l){var u;(u=o.getSignal())!=null&&l.writeMessage(1,u,proto.v1.signaling.api.Signal.serializeBinaryToWriter)},proto.v1.signaling.api.ReceiveSignalStreamResponse.prototype.getSignal=function(){return n.Message.getWrapperField(this,proto.v1.signaling.api.Signal,1)},proto.v1.signaling.api.ReceiveSignalStreamResponse.prototype.setSignal=function(o){return n.Message.setWrapperField(this,1,o)},proto.v1.signaling.api.ReceiveSignalStreamResponse.prototype.clearSignal=function(){return this.setSignal(void 0)},proto.v1.signaling.api.ReceiveSignalStreamResponse.prototype.hasSignal=function(){return n.Message.getField(this,1)!=null},i.object.extend(t,proto.v1.signaling.api)},function(e,t,r){(function(n){var i=n!==void 0&&n||typeof self!="undefined"&&self||window,g=Function.prototype.apply;function s(o,l){this._id=o,this._clearFn=l}t.setTimeout=function(){return new s(g.call(setTimeout,i,arguments),clearTimeout)},t.setInterval=function(){return new s(g.call(setInterval,i,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(o){o&&o.close()},s.prototype.unref=s.prototype.ref=function(){},s.prototype.close=function(){this._clearFn.call(i,this._id)},t.enroll=function(o,l){clearTimeout(o._idleTimeoutId),o._idleTimeout=l},t.unenroll=function(o){clearTimeout(o._idleTimeoutId),o._idleTimeout=-1},t._unrefActive=t.active=function(o){clearTimeout(o._idleTimeoutId);var l=o._idleTimeout;l>=0&&(o._idleTimeoutId=setTimeout(function(){o._onTimeout&&o._onTimeout()},l))},r(140),t.setImmediate=typeof self!="undefined"&&self.setImmediate||n!==void 0&&n.setImmediate||this&&this.setImmediate,t.clearImmediate=typeof self!="undefined"&&self.clearImmediate||n!==void 0&&n.clearImmediate||this&&this.clearImmediate}).call(this,r(5))},function(e,t,r){(function(n){n===void 0||!n.version||n.version.indexOf("v0.")===0||n.version.indexOf("v1.")===0&&n.version.indexOf("v1.8.")!==0?e.exports={nextTick:function(i,g,s,o){if(typeof i!="function")throw new TypeError('"callback" argument must be a function');var l,u,m=arguments.length;switch(m){case 0:case 1:return n.nextTick(i);case 2:return n.nextTick(function(){i.call(null,g)});case 3:return n.nextTick(function(){i.call(null,g,s)});case 4:return n.nextTick(function(){i.call(null,g,s,o)});default:for(l=new Array(m-1),u=0;u<l.length;)l[u++]=arguments[u];return n.nextTick(function(){i.apply(null,l)})}}}:e.exports=n}).call(this,r(2))},function(e,t,r){(function(n){function i(g){return Object.prototype.toString.call(g)}t.isArray=function(g){return Array.isArray?Array.isArray(g):i(g)==="[object Array]"},t.isBoolean=function(g){return typeof g=="boolean"},t.isNull=function(g){return g===null},t.isNullOrUndefined=function(g){return g==null},t.isNumber=function(g){return typeof g=="number"},t.isString=function(g){return typeof g=="string"},t.isSymbol=function(g){return typeof g=="symbol"},t.isUndefined=function(g){return g===void 0},t.isRegExp=function(g){return i(g)==="[object RegExp]"},t.isObject=function(g){return typeof g=="object"&&g!==null},t.isDate=function(g){return i(g)==="[object Date]"},t.isError=function(g){return i(g)==="[object Error]"||g instanceof Error},t.isFunction=function(g){return typeof g=="function"},t.isPrimitive=function(g){return g===null||typeof g=="boolean"||typeof g=="number"||typeof g=="string"||typeof g=="symbol"||g===void 0},t.isBuffer=n.isBuffer}).call(this,r(4).Buffer)},function(e,t){t.endianness=function(){return"LE"},t.hostname=function(){return typeof location!="undefined"?location.hostname:""},t.loadavg=function(){return[]},t.uptime=function(){return 0},t.freemem=function(){return Number.MAX_VALUE},t.totalmem=function(){return Number.MAX_VALUE},t.cpus=function(){return[]},t.type=function(){return"Browser"},t.release=function(){return typeof navigator!="undefined"?navigator.appVersion:""},t.networkInterfaces=t.getNetworkInterfaces=function(){return{}},t.arch=function(){return"javascript"},t.platform=function(){return"browser"},t.tmpdir=t.tmpDir=function(){return"/tmp"},t.EOL=`
|
|
15
|
-
`,t.homedir=function(){return"/"}},function(e,t,r){var n=r(56),i=r(59).warn,g=t;g.version=r(137).version,g.transports=r(138),g.config=r(47),g.addColors=n.levels,g.format=n.format,g.createLogger=r(85),g.ExceptionHandler=r(86),g.RejectionHandler=r(90),g.Container=r(209),g.Transport=r(17),g.loggers=new g.Container;var s=g.createLogger();Object.keys(g.config.npm.levels).concat(["log","query","stream","add","remove","clear","profile","startTimer","handleExceptions","unhandleExceptions","handleRejections","unhandleRejections","configure","child"]).forEach(function(o){return g[o]=function(){return s[o].apply(s,arguments)}}),Object.defineProperty(g,"level",{get:function(){return s.level},set:function(o){s.level=o}}),Object.defineProperty(g,"exceptions",{get:function(){return s.exceptions}}),["exitOnError"].forEach(function(o){Object.defineProperty(g,o,{get:function(){return s[o]},set:function(l){s[o]=l}})}),Object.defineProperty(g,"default",{get:function(){return{exceptionHandlers:s.exceptionHandlers,rejectionHandlers:s.rejectionHandlers,transports:s.transports}}}),i.deprecated(g,"setLevels"),i.forFunctions(g,"useFormat",["cli"]),i.forProperties(g,"useFormat",["padLevels","stripColors"]),i.forFunctions(g,"deprecated",["addRewriter","addFilter","clone","extend"]),i.forProperties(g,"deprecated",["emitErrs","levelLength"]),i.moved(g,"createLogger","Logger")},function(e,t,r){var n=r(9),i=r(141),g=r(3).LEVEL,s=e.exports=function(){var o=this,l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};i.call(this,{objectMode:!0,highWaterMark:l.highWaterMark}),this.format=l.format,this.level=l.level,this.handleExceptions=l.handleExceptions,this.handleRejections=l.handleRejections,this.silent=l.silent,l.log&&(this.log=l.log),l.logv&&(this.logv=l.logv),l.close&&(this.close=l.close),this.once("pipe",function(u){o.levels=u.levels,o.parent=u}),this.once("unpipe",function(u){u===o.parent&&(o.parent=null,o.close&&o.close())})};n.inherits(s,i),s.prototype._write=function(o,l,u){if(this.silent||o.exception===!0&&!this.handleExceptions)return u(null);var m=this.level||this.parent&&this.parent.level;if(!m||this.levels[m]>=this.levels[o[g]]){if(o&&!this.format)return this.log(o,u);var R=void 0,y=void 0;try{y=this.format.transform(Object.assign({},o),this.format.options)}catch(S){R=S}if(R||!y){if(u(),R)throw R;return}return this.log(y,u)}return u(null)},s.prototype._writev=function(o,l){if(this.logv){var u=o.filter(this._accept,this);return u.length?this.logv(u,l):l(null)}for(var m=0;m<o.length;m++)if(this._accept(o[m]))if(!o[m].chunk||this.format){var R=void 0,y=void 0;try{y=this.format.transform(Object.assign({},o[m].chunk),this.format.options)}catch(S){R=S}if(R||!y){if(o[m].callback(),R)throw l(null),R}else this.log(y,o[m].callback)}else this.log(o[m].chunk,o[m].callback);return l(null)},s.prototype._accept=function(o){var l=o.chunk;if(this.silent)return!1;var u=this.level||this.parent&&this.parent.level;return!(l.exception!==!0&&u&&!(this.levels[u]>=this.levels[l[g]])||!this.handleExceptions&&l.exception===!0)},s.prototype._nop=function(){},e.exports.LegacyTransportStream=r(147)},function(e,t,r){var n,i=typeof Reflect=="object"?Reflect:null,g=i&&typeof i.apply=="function"?i.apply:function(E,P,F){return Function.prototype.apply.call(E,P,F)};n=i&&typeof i.ownKeys=="function"?i.ownKeys:Object.getOwnPropertySymbols?function(E){return Object.getOwnPropertyNames(E).concat(Object.getOwnPropertySymbols(E))}:function(E){return Object.getOwnPropertyNames(E)};var s=Number.isNaN||function(E){return E!=E};function o(){o.init.call(this)}e.exports=o,o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var l=10;function u(E){return E._maxListeners===void 0?o.defaultMaxListeners:E._maxListeners}function m(E,P,F,M){var A,p,N,$;if(typeof F!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof F);if((p=E._events)===void 0?(p=E._events=Object.create(null),E._eventsCount=0):(p.newListener!==void 0&&(E.emit("newListener",P,F.listener?F.listener:F),p=E._events),N=p[P]),N===void 0)N=p[P]=F,++E._eventsCount;else if(typeof N=="function"?N=p[P]=M?[F,N]:[N,F]:M?N.unshift(F):N.push(F),(A=u(E))>0&&N.length>A&&!N.warned){N.warned=!0;var q=new Error("Possible EventEmitter memory leak detected. "+N.length+" "+String(P)+" listeners added. Use emitter.setMaxListeners() to increase limit");q.name="MaxListenersExceededWarning",q.emitter=E,q.type=P,q.count=N.length,$=q,console&&console.warn&&console.warn($)}return E}function R(){for(var E=[],P=0;P<arguments.length;P++)E.push(arguments[P]);this.fired||(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,g(this.listener,this.target,E))}function y(E,P,F){var M={fired:!1,wrapFn:void 0,target:E,type:P,listener:F},A=R.bind(M);return A.listener=F,M.wrapFn=A,A}function S(E,P,F){var M=E._events;if(M===void 0)return[];var A=M[P];return A===void 0?[]:typeof A=="function"?F?[A.listener||A]:[A]:F?function(p){for(var N=new Array(p.length),$=0;$<N.length;++$)N[$]=p[$].listener||p[$];return N}(A):w(A,A.length)}function c(E){var P=this._events;if(P!==void 0){var F=P[E];if(typeof F=="function")return 1;if(F!==void 0)return F.length}return 0}function w(E,P){for(var F=new Array(P),M=0;M<P;++M)F[M]=E[M];return F}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return l},set:function(E){if(typeof E!="number"||E<0||s(E))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+E+".");l=E}}),o.init=function(){this._events!==void 0&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(E){if(typeof E!="number"||E<0||s(E))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+E+".");return this._maxListeners=E,this},o.prototype.getMaxListeners=function(){return u(this)},o.prototype.emit=function(E){for(var P=[],F=1;F<arguments.length;F++)P.push(arguments[F]);var M=E==="error",A=this._events;if(A!==void 0)M=M&&A.error===void 0;else if(!M)return!1;if(M){var p;if(P.length>0&&(p=P[0]),p instanceof Error)throw p;var N=new Error("Unhandled error."+(p?" ("+p.message+")":""));throw N.context=p,N}var $=A[E];if($===void 0)return!1;if(typeof $=="function")g($,this,P);else{var q=$.length,h=w($,q);for(F=0;F<q;++F)g(h[F],this,P)}return!0},o.prototype.addListener=function(E,P){return m(this,E,P,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(E,P){return m(this,E,P,!0)},o.prototype.once=function(E,P){if(typeof P!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof P);return this.on(E,y(this,E,P)),this},o.prototype.prependOnceListener=function(E,P){if(typeof P!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof P);return this.prependListener(E,y(this,E,P)),this},o.prototype.removeListener=function(E,P){var F,M,A,p,N;if(typeof P!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof P);if((M=this._events)===void 0)return this;if((F=M[E])===void 0)return this;if(F===P||F.listener===P)--this._eventsCount==0?this._events=Object.create(null):(delete M[E],M.removeListener&&this.emit("removeListener",E,F.listener||P));else if(typeof F!="function"){for(A=-1,p=F.length-1;p>=0;p--)if(F[p]===P||F[p].listener===P){N=F[p].listener,A=p;break}if(A<0)return this;A===0?F.shift():function($,q){for(;q+1<$.length;q++)$[q]=$[q+1];$.pop()}(F,A),F.length===1&&(M[E]=F[0]),M.removeListener!==void 0&&this.emit("removeListener",E,N||P)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(E){var P,F,M;if((F=this._events)===void 0)return this;if(F.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):F[E]!==void 0&&(--this._eventsCount==0?this._events=Object.create(null):delete F[E]),this;if(arguments.length===0){var A,p=Object.keys(F);for(M=0;M<p.length;++M)(A=p[M])!=="removeListener"&&this.removeAllListeners(A);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(typeof(P=F[E])=="function")this.removeListener(E,P);else if(P!==void 0)for(M=P.length-1;M>=0;M--)this.removeListener(E,P[M]);return this},o.prototype.listeners=function(E){return S(this,E,!0)},o.prototype.rawListeners=function(E){return S(this,E,!1)},o.listenerCount=function(E,P){return typeof E.listenerCount=="function"?E.listenerCount(P):c.call(E,P)},o.prototype.listenerCount=c,o.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]}},function(e,t,r){var n=r(146).Buffer,i=n.isEncoding||function(c){switch((c=""+c)&&c.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function g(c){var w;switch(this.encoding=function(E){var P=function(F){if(!F)return"utf8";for(var M;;)switch(F){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return F;default:if(M)return;F=(""+F).toLowerCase(),M=!0}}(E);if(typeof P!="string"&&(n.isEncoding===i||!i(E)))throw new Error("Unknown encoding: "+E);return P||E}(c),this.encoding){case"utf16le":this.text=l,this.end=u,w=4;break;case"utf8":this.fillLast=o,w=4;break;case"base64":this.text=m,this.end=R,w=3;break;default:return this.write=y,void(this.end=S)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(w)}function s(c){return c<=127?0:c>>5==6?2:c>>4==14?3:c>>3==30?4:c>>6==2?-1:-2}function o(c){var w=this.lastTotal-this.lastNeed,E=function(P,F,M){if((192&F[0])!=128)return P.lastNeed=0,"\uFFFD";if(P.lastNeed>1&&F.length>1){if((192&F[1])!=128)return P.lastNeed=1,"\uFFFD";if(P.lastNeed>2&&F.length>2&&(192&F[2])!=128)return P.lastNeed=2,"\uFFFD"}}(this,c);return E!==void 0?E:this.lastNeed<=c.length?(c.copy(this.lastChar,w,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(c.copy(this.lastChar,w,0,c.length),void(this.lastNeed-=c.length))}function l(c,w){if((c.length-w)%2==0){var E=c.toString("utf16le",w);if(E){var P=E.charCodeAt(E.length-1);if(P>=55296&&P<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=c[c.length-2],this.lastChar[1]=c[c.length-1],E.slice(0,-1)}return E}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=c[c.length-1],c.toString("utf16le",w,c.length-1)}function u(c){var w=c&&c.length?this.write(c):"";if(this.lastNeed){var E=this.lastTotal-this.lastNeed;return w+this.lastChar.toString("utf16le",0,E)}return w}function m(c,w){var E=(c.length-w)%3;return E===0?c.toString("base64",w):(this.lastNeed=3-E,this.lastTotal=3,E===1?this.lastChar[0]=c[c.length-1]:(this.lastChar[0]=c[c.length-2],this.lastChar[1]=c[c.length-1]),c.toString("base64",w,c.length-E))}function R(c){var w=c&&c.length?this.write(c):"";return this.lastNeed?w+this.lastChar.toString("base64",0,3-this.lastNeed):w}function y(c){return c.toString(this.encoding)}function S(c){return c&&c.length?this.write(c):""}t.StringDecoder=g,g.prototype.write=function(c){if(c.length===0)return"";var w,E;if(this.lastNeed){if((w=this.fillLast(c))===void 0)return"";E=this.lastNeed,this.lastNeed=0}else E=0;return E<c.length?w?w+this.text(c,E):this.text(c,E):w||""},g.prototype.end=function(c){var w=c&&c.length?this.write(c):"";return this.lastNeed?w+"\uFFFD":w},g.prototype.text=function(c,w){var E=function(F,M,A){var p=M.length-1;if(p<A)return 0;var N=s(M[p]);return N>=0?(N>0&&(F.lastNeed=N-1),N):--p<A||N===-2?0:(N=s(M[p]))>=0?(N>0&&(F.lastNeed=N-2),N):--p<A||N===-2?0:(N=s(M[p]))>=0?(N>0&&(N===2?N=0:F.lastNeed=N-3),N):0}(this,c,w);if(!this.lastNeed)return c.toString("utf8",w);this.lastTotal=E;var P=c.length-(E-this.lastNeed);return c.copy(this.lastChar,0,P),c.toString("utf8",w,P)},g.prototype.fillLast=function(c){if(this.lastNeed<=c.length)return c.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);c.copy(this.lastChar,this.lastTotal-this.lastNeed,0,c.length),this.lastNeed-=c.length}},function(e,t,r){var n=r(13),i=Object.keys||function(c){var w=[];for(var E in c)w.push(E);return w};e.exports=R;var g=r(14);g.inherits=r(6);var s=r(67),o=r(44);g.inherits(R,s);for(var l=i(o.prototype),u=0;u<l.length;u++){var m=l[u];R.prototype[m]||(R.prototype[m]=o.prototype[m])}function R(c){if(!(this instanceof R))return new R(c);s.call(this,c),o.call(this,c),c&&c.readable===!1&&(this.readable=!1),c&&c.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,c&&c.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",y)}function y(){this.allowHalfOpen||this._writableState.ended||n.nextTick(S,this)}function S(c){c.end()}Object.defineProperty(R.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(R.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._writableState!==void 0&&this._readableState.destroyed&&this._writableState.destroyed},set:function(c){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=c,this._writableState.destroyed=c)}}),R.prototype._destroy=function(c,w){this.push(null),this.end(),n.nextTick(w,c)}},function(e,t,r){e.exports=function(n,i){i||(i={}),typeof i=="function"&&(i={cmp:i});var g,s=typeof i.cycles=="boolean"&&i.cycles,o=i.cmp&&(g=i.cmp,function(u){return function(m,R){var y={key:m,value:u[m]},S={key:R,value:u[R]};return g(y,S)}}),l=[];return function u(m){if(m&&m.toJSON&&typeof m.toJSON=="function"&&(m=m.toJSON()),m!==void 0){if(typeof m=="number")return isFinite(m)?""+m:"null";if(typeof m!="object")return JSON.stringify(m);var R,y;if(Array.isArray(m)){for(y="[",R=0;R<m.length;R++)R&&(y+=","),y+=u(m[R])||"null";return y+"]"}if(m===null)return"null";if(l.indexOf(m)!==-1){if(s)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var S=l.push(m)-1,c=Object.keys(m).sort(o&&o(m));for(y="",R=0;R<c.length;R++){var w=c[R],E=u(m[w]);E&&(y&&(y+=","),y+=JSON.stringify(w)+":"+E)}return l.splice(S,1),"{"+y+"}"}}(n)}},function(e,t,r){(function(n){function i(I){var H=0;return function(){return H<I.length?{done:!1,value:I[H++]}:{done:!0}}}var g=typeof Object.defineProperties=="function"?Object.defineProperty:function(I,H,X){I!=Array.prototype&&I!=Object.prototype&&(I[H]=X.value)},s=function(I){I=[typeof window=="object"&&window,typeof self=="object"&&self,typeof n=="object"&&n,I];for(var H=0;H<I.length;++H){var X=I[H];if(X&&X.Math==Math)return X}throw Error("Cannot find global object")}(this);function o(I,H){if(H){var X=s;I=I.split(".");for(var ne=0;ne<I.length-1;ne++){var le=I[ne];le in X||(X[le]={}),X=X[le]}(H=H(ne=X[I=I[I.length-1]]))!=ne&&H!=null&&g(X,I,{configurable:!0,writable:!0,value:H})}}function l(I){var H=typeof Symbol!="undefined"&&Symbol.iterator&&I[Symbol.iterator];return H?H.call(I):{next:i(I)}}o("Object.is",function(I){return I||function(H,X){return H===X?H!==0||1/H==1/X:H!=H&&X!=X}}),o("Array.prototype.includes",function(I){return I||function(H,X){var ne=this;ne instanceof String&&(ne=String(ne));var le=ne.length;for(0>(X=X||0)&&(X=Math.max(X+le,0));X<le;X++){var pe=ne[X];if(pe===H||Object.is(pe,H))return!0}return!1}}),o("Promise",function(I){function H(ie){this.b=0,this.c=void 0,this.a=[];var ue=this.f();try{ie(ue.resolve,ue.reject)}catch(be){ue.reject(be)}}function X(){this.a=null}function ne(ie){return ie instanceof H?ie:new H(function(ue){ue(ie)})}if(I)return I;X.prototype.b=function(ie){if(this.a==null){this.a=[];var ue=this;this.c(function(){ue.g()})}this.a.push(ie)};var le=s.setTimeout;X.prototype.c=function(ie){le(ie,0)},X.prototype.g=function(){for(;this.a&&this.a.length;){var ie=this.a;this.a=[];for(var ue=0;ue<ie.length;++ue){var be=ie[ue];ie[ue]=null;try{be()}catch(ye){this.f(ye)}}}this.a=null},X.prototype.f=function(ie){this.c(function(){throw ie})},H.prototype.f=function(){function ie(ye){return function(ve){be||(be=!0,ye.call(ue,ve))}}var ue=this,be=!1;return{resolve:ie(this.m),reject:ie(this.g)}},H.prototype.m=function(ie){if(ie===this)this.g(new TypeError("A Promise cannot resolve to itself"));else if(ie instanceof H)this.o(ie);else{e:switch(typeof ie){case"object":var ue=ie!=null;break e;case"function":ue=!0;break e;default:ue=!1}ue?this.l(ie):this.h(ie)}},H.prototype.l=function(ie){var ue=void 0;try{ue=ie.then}catch(be){return void this.g(be)}typeof ue=="function"?this.u(ue,ie):this.h(ie)},H.prototype.g=function(ie){this.i(2,ie)},H.prototype.h=function(ie){this.i(1,ie)},H.prototype.i=function(ie,ue){if(this.b!=0)throw Error("Cannot settle("+ie+", "+ue+"): Promise already settled in state"+this.b);this.b=ie,this.c=ue,this.j()},H.prototype.j=function(){if(this.a!=null){for(var ie=0;ie<this.a.length;++ie)pe.b(this.a[ie]);this.a=null}};var pe=new X;return H.prototype.o=function(ie){var ue=this.f();ie.w(ue.resolve,ue.reject)},H.prototype.u=function(ie,ue){var be=this.f();try{ie.call(ue,be.resolve,be.reject)}catch(ye){be.reject(ye)}},H.prototype.then=function(ie,ue){function be(Ee,Ie){return typeof Ee=="function"?function(je){try{ye(Ee(je))}catch(Ce){ve(Ce)}}:Ie}var ye,ve,Re=new H(function(Ee,Ie){ye=Ee,ve=Ie});return this.w(be(ie,ye),be(ue,ve)),Re},H.prototype.catch=function(ie){return this.then(void 0,ie)},H.prototype.w=function(ie,ue){function be(){switch(ye.b){case 1:ie(ye.c);break;case 2:ue(ye.c);break;default:throw Error("Unexpected state: "+ye.b)}}var ye=this;this.a==null?pe.b(be):this.a.push(be)},H.resolve=ne,H.reject=function(ie){return new H(function(ue,be){be(ie)})},H.race=function(ie){return new H(function(ue,be){for(var ye=l(ie),ve=ye.next();!ve.done;ve=ye.next())ne(ve.value).w(ue,be)})},H.all=function(ie){var ue=l(ie),be=ue.next();return be.done?ne([]):new H(function(ye,ve){function Re(je){return function(Ce){Ee[je]=Ce,--Ie==0&&ye(Ee)}}var Ee=[],Ie=0;do Ee.push(void 0),Ie++,ne(be.value).w(Re(Ee.length-1),ve),be=ue.next();while(!be.done)})},H});var u=u||{},m=this||self;function R(I,H){I=I.split("."),H=H||m;for(var X=0;X<I.length;X++)if((H=H[I[X]])==null)return null;return H}function y(){}function S(I){var H=typeof I;if(H=="object"){if(!I)return"null";if(I instanceof Array)return"array";if(I instanceof Object)return H;var X=Object.prototype.toString.call(I);if(X=="[object Window]")return"object";if(X=="[object Array]"||typeof I.length=="number"&&I.splice!==void 0&&I.propertyIsEnumerable!==void 0&&!I.propertyIsEnumerable("splice"))return"array";if(X=="[object Function]"||I.call!==void 0&&I.propertyIsEnumerable!==void 0&&!I.propertyIsEnumerable("call"))return"function"}else if(H=="function"&&I.call===void 0)return"object";return H}function c(I){var H=typeof I;return H=="object"&&I!=null||H=="function"}function w(I,H,X){return I.call.apply(I.bind,arguments)}function E(I,H,X){if(!I)throw Error();if(2<arguments.length){var ne=Array.prototype.slice.call(arguments,2);return function(){var le=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(le,ne),I.apply(H,le)}}return function(){return I.apply(H,arguments)}}function P(I,H,X){return(P=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?w:E).apply(null,arguments)}function F(I,H){function X(){}X.prototype=H.prototype,I.S=H.prototype,I.prototype=new X,I.prototype.constructor=I}function M(){this.a={}}function A(I,H,X,ne){this.f=I,this.c=H,this.b=X,this.a=ne}function p(I,H,X,ne){X=X===void 0?{}:X,this.c=I,this.a=X,this.b=H,this.f=ne===void 0?null:ne}function N(I,H,X,ne,le,pe){this.name=I,this.a=le,this.b=pe}function $(I,H,X){X=X===void 0?{}:X;var ne=ne===void 0?new M:ne;return new A(H,I,X,ne)}function q(I,H,X,ne){return ne instanceof N?ne:new N(I,X,ne.b||H.constructor,ne.f,ne.a,ne.c)}function h(I){this.a=I}function d(I){switch(I){case 0:return"No Error";case 1:return"Access denied to content document";case 2:return"File not found";case 3:return"Firefox silently errored";case 4:return"Application custom error";case 5:return"An exception occurred";case 6:return"Http response at 400 or 500 level";case 7:return"Request was aborted";case 8:return"Request timed out";case 9:return"The resource is not available offline";default:return"Unrecognized error code"}}function O(I){if(Error.captureStackTrace)Error.captureStackTrace(this,O);else{var H=Error().stack;H&&(this.stack=H)}I&&(this.message=String(I))}function _(I,H){for(var X="",ne=(I=I.split("%s")).length-1,le=0;le<ne;le++)X+=I[le]+(le<H.length?H[le]:"%s");O.call(this,X+I[ne])}function x(){this.j=null,this.i=[],this.l=0,this.b=D,this.f=this.a=this.h=0,this.c=null,this.g=0}M.prototype.get=function(I){return this.a[I]},M.prototype.f=function(){return Object.keys(this.a)},A.prototype.getRequestMessage=function(){return this.f},A.prototype.getMethodDescriptor=function(){return this.c},A.prototype.getMetadata=function(){return this.b},A.prototype.getCallOptions=function(){return this.a},p.prototype.getResponseMessage=function(){return this.c},p.prototype.getMetadata=function(){return this.a},p.prototype.getMethodDescriptor=function(){return this.b},p.prototype.getStatus=function(){return this.f},h.prototype.on=function(I,H){return I=="data"||I=="error"?this:this.a.on(I,H)},h.prototype.removeListener=function(I,H){return this.a.removeListener(I,H)},h.prototype.cancel=function(){this.a.cancel()},F(O,Error),O.prototype.name="CustomError",F(_,O),_.prototype.name="AssertionError";var D=0,L=1,T=2,C=3,U=0,b=128;function f(I,H,X,ne){throw I.b=C,I.j="The stream is broken @"+I.l+"/"+X+". Error: "+ne+`. With input:
|
|
16
|
-
`+H,Error(I.j)}var B=Array.prototype.indexOf?function(I,H){return Array.prototype.indexOf.call(I,H,void 0)}:function(I,H){if(typeof I=="string")return typeof H!="string"||H.length!=1?-1:I.indexOf(H,0);for(var X=0;X<I.length;X++)if(X in I&&I[X]===H)return X;return-1},k,Y=String.prototype.trim?function(I){return I.trim()}:function(I){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(I)[1]};function K(I,H){return I.indexOf(H)!=-1}function Q(I,H){return I<H?-1:I>H?1:0}e:{var G=m.navigator;if(G){var V=G.userAgent;if(V){k=V;break e}}k=""}var v="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function j(I){var H=1;I=I.split(":");for(var X=[];0<H&&I.length;)X.push(I.shift()),H--;return I.length&&X.push(I.join(":")),X}function W(I){return W[" "](I),I}W[" "]=y;var ee,J,re=K(k,"Opera"),se=K(k,"Trident")||K(k,"MSIE"),oe=K(k,"Edge"),z=K(k,"Gecko")&&!(K(k.toLowerCase(),"webkit")&&!K(k,"Edge"))&&!(K(k,"Trident")||K(k,"MSIE"))&&!K(k,"Edge"),Z=K(k.toLowerCase(),"webkit")&&!K(k,"Edge");function te(){var I=m.document;return I?I.documentMode:void 0}e:{var ce="",ae=(J=k,z?/rv:([^\);]+)(\)|;)/.exec(J):oe?/Edge\/([\d\.]+)/.exec(J):se?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(J):Z?/WebKit\/(\S+)/.exec(J):re?/(?:Version)[ \/]?(\S+)/.exec(J):void 0);if(ae&&(ce=ae?ae[1]:""),se){var he=te();if(he!=null&&he>parseFloat(ce)){ee=String(he);break e}}ee=ce}var de,me={};function fe(I){return function(H,X){var ne=me;return Object.prototype.hasOwnProperty.call(ne,H)?ne[H]:ne[H]=X(H)}(I,function(){for(var H=0,X=Y(String(ee)).split("."),ne=Y(String(I)).split("."),le=Math.max(X.length,ne.length),pe=0;H==0&&pe<le;pe++){var ie=X[pe]||"",ue=ne[pe]||"";do{if(ie=/(\d*)(\D*)(.*)/.exec(ie)||["","","",""],ue=/(\d*)(\D*)(.*)/.exec(ue)||["","","",""],ie[0].length==0&&ue[0].length==0)break;H=Q(ie[1].length==0?0:parseInt(ie[1],10),ue[1].length==0?0:parseInt(ue[1],10))||Q(ie[2].length==0,ue[2].length==0)||Q(ie[2],ue[2]),ie=ie[3],ue=ue[3]}while(H==0)}return 0<=H})}if(m.document&&se){var ge=te();de=ge||parseInt(ee,10)||void 0}else de=void 0;var _e=de;function Se(){this.F=this.F}Se.prototype.F=!1;var Oe,Pe=Object.freeze||function(I){return I};(Oe=!se)||(Oe=9<=Number(_e));var Fe=Oe,De=se&&!fe("9"),Le=function(){if(!m.addEventListener||!Object.defineProperty)return!1;var I=!1,H=Object.defineProperty({},"passive",{get:function(){I=!0}});try{m.addEventListener("test",y,H),m.removeEventListener("test",y,H)}catch{}return I}();function xe(I,H){this.type=I,this.a=this.target=H,this.defaultPrevented=!1}function Ne(I,H){if(xe.call(this,I?I.type:""),this.relatedTarget=this.a=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.pointerId=0,this.pointerType="",this.c=null,I){var X=this.type=I.type,ne=I.changedTouches&&I.changedTouches.length?I.changedTouches[0]:null;if(this.target=I.target||I.srcElement,this.a=H,H=I.relatedTarget){if(z){e:{try{W(H.nodeName);var le=!0;break e}catch{}le=!1}le||(H=null)}}else X=="mouseover"?H=I.fromElement:X=="mouseout"&&(H=I.toElement);this.relatedTarget=H,ne?(this.clientX=ne.clientX!==void 0?ne.clientX:ne.pageX,this.clientY=ne.clientY!==void 0?ne.clientY:ne.pageY,this.screenX=ne.screenX||0,this.screenY=ne.screenY||0):(this.clientX=I.clientX!==void 0?I.clientX:I.pageX,this.clientY=I.clientY!==void 0?I.clientY:I.pageY,this.screenX=I.screenX||0,this.screenY=I.screenY||0),this.button=I.button,this.key=I.key||"",this.ctrlKey=I.ctrlKey,this.altKey=I.altKey,this.shiftKey=I.shiftKey,this.metaKey=I.metaKey,this.pointerId=I.pointerId||0,this.pointerType=typeof I.pointerType=="string"?I.pointerType:Ue[I.pointerType]||"",this.c=I,I.defaultPrevented&&this.b()}}xe.prototype.b=function(){this.defaultPrevented=!0},F(Ne,xe);var Ue=Pe({2:"touch",3:"pen",4:"mouse"});Ne.prototype.b=function(){Ne.S.b.call(this);var I=this.c;if(I.preventDefault)I.preventDefault();else if(I.returnValue=!1,De)try{(I.ctrlKey||112<=I.keyCode&&123>=I.keyCode)&&(I.keyCode=-1)}catch{}};var We="closure_listenable_"+(1e6*Math.random()|0),ze=0;function $t(I,H,X,ne,le){this.listener=I,this.proxy=null,this.src=H,this.type=X,this.capture=!!ne,this.A=le,this.key=++ze,this.s=this.v=!1}function lt(I){I.s=!0,I.listener=null,I.proxy=null,I.src=null,I.A=null}function rt(I){this.src=I,this.a={},this.b=0}function ut(I,H){var X=H.type;if(X in I.a){var ne,le=I.a[X],pe=B(le,H);(ne=0<=pe)&&Array.prototype.splice.call(le,pe,1),ne&&(lt(H),I.a[X].length==0&&(delete I.a[X],I.b--))}}function gt(I,H,X,ne){for(var le=0;le<I.length;++le){var pe=I[le];if(!pe.s&&pe.listener==H&&pe.capture==!!X&&pe.A==ne)return le}return-1}rt.prototype.add=function(I,H,X,ne,le){var pe=I.toString();(I=this.a[pe])||(I=this.a[pe]=[],this.b++);var ie=gt(I,H,ne,le);return-1<ie?(H=I[ie],X||(H.v=!1)):((H=new $t(H,this.src,pe,!!ne,le)).v=X,I.push(H)),H};var ct="closure_lm_"+(1e6*Math.random()|0),ft={};function nt(I,H,X,ne,le){if(ne&&ne.once)(function ie(ue,be,ye,ve,Re){if(Array.isArray(be))for(var Ee=0;Ee<be.length;Ee++)ie(ue,be[Ee],ye,ve,Re);else ye=ht(ye),ue&&ue[We]?ue.f.add(String(be),ye,!0,c(ve)?!!ve.capture:!!ve,Re):Tt(ue,be,ye,!0,ve,Re)})(I,H,X,ne,le);else if(Array.isArray(H))for(var pe=0;pe<H.length;pe++)nt(I,H[pe],X,ne,le);else X=ht(X),I&&I[We]?I.f.add(String(H),X,!1,c(ne)?!!ne.capture:!!ne,le):Tt(I,H,X,!1,ne,le)}function Tt(I,H,X,ne,le,pe){if(!H)throw Error("Invalid event type");var ie=c(le)?!!le.capture:!!le,ue=ot(I);if(ue||(I[ct]=ue=new rt(I)),!(X=ue.add(H,X,ne,ie,pe)).proxy)if(ne=function(){var be=Kt,ye=Fe?function(ve){return be.call(ye.src,ye.listener,ve)}:function(ve){if(!(ve=be.call(ye.src,ye.listener,ve)))return ve};return ye}(),X.proxy=ne,ne.src=I,ne.listener=X,I.addEventListener)Le||(le=ie),le===void 0&&(le=!1),I.addEventListener(H.toString(),ne,le);else if(I.attachEvent)I.attachEvent(At(H.toString()),ne);else{if(!I.addListener||!I.removeListener)throw Error("addEventListener and attachEvent are unavailable.");I.addListener(ne)}}function Rt(I){if(typeof I!="number"&&I&&!I.s){var H=I.src;if(H&&H[We])ut(H.f,I);else{var X=I.type,ne=I.proxy;H.removeEventListener?H.removeEventListener(X,ne,I.capture):H.detachEvent?H.detachEvent(At(X),ne):H.addListener&&H.removeListener&&H.removeListener(ne),(X=ot(H))?(ut(X,I),X.b==0&&(X.src=null,H[ct]=null)):lt(I)}}}function At(I){return I in ft?ft[I]:ft[I]="on"+I}function Ot(I,H,X,ne){var le=!0;if((I=ot(I))&&(H=I.a[H.toString()]))for(H=H.concat(),I=0;I<H.length;I++){var pe=H[I];pe&&pe.capture==X&&!pe.s&&(pe=jt(pe,ne),le=le&&pe!==!1)}return le}function jt(I,H){var X=I.listener,ne=I.A||I.src;return I.v&&Rt(I),X.call(ne,H)}function Kt(I,H){if(I.s)return!0;if(!Fe){var X=H||R("window.event");H=new Ne(X,this);var ne=!0;if(!(0>X.keyCode||X.returnValue!=null)){e:{var le=!1;if(X.keyCode==0)try{X.keyCode=-1;break e}catch{le=!0}(le||X.returnValue==null)&&(X.returnValue=!0)}for(X=[],le=H.a;le;le=le.parentNode)X.push(le);for(I=I.type,le=X.length-1;0<=le;le--){H.a=X[le];var pe=Ot(X[le],I,!0,H);ne=ne&&pe}for(le=0;le<X.length;le++)H.a=X[le],pe=Ot(X[le],I,!1,H),ne=ne&&pe}return ne}return jt(I,new Ne(H,this))}function ot(I){return(I=I[ct])instanceof rt?I:null}var pt="__closure_events_fn_"+(1e9*Math.random()>>>0);function ht(I){return S(I)=="function"?I:(I[pt]||(I[pt]=function(H){return I.handleEvent(H)}),I[pt])}function Ke(){Se.call(this),this.f=new rt(this),this.N=this}function Ge(I,H){I=I.N;var X=H.type||H;if(typeof H=="string")H=new xe(H,I);else if(H instanceof xe)H.target=H.target||I;else{var ne=H;(function(le,pe){for(var ie,ue,be=1;be<arguments.length;be++){for(ie in ue=arguments[be])le[ie]=ue[ie];for(var ye=0;ye<v.length;ye++)ie=v[ye],Object.prototype.hasOwnProperty.call(ue,ie)&&(le[ie]=ue[ie])}})(H=new xe(X,I),ne)}It(I=H.a=I,X,!0,H),It(I,X,!1,H)}function It(I,H,X,ne){if(H=I.f.a[String(H)]){H=H.concat();for(var le=!0,pe=0;pe<H.length;++pe){var ie=H[pe];if(ie&&!ie.s&&ie.capture==X){var ue=ie.listener,be=ie.A||ie.src;ie.v&&ut(I.f,ie),le=ue.call(be,ne)!==!1&&le}}}}function Ct(I,H,X){if(S(I)=="function")X&&(I=P(I,X));else{if(!I||typeof I.handleEvent!="function")throw Error("Invalid listener argument");I=P(I.handleEvent,I)}return 2147483647<Number(H)?-1:m.setTimeout(I,H||0)}function dt(I,H,X){this.reset(I,H,X,void 0,void 0)}F(Ke,Se),Ke.prototype[We]=!0,Ke.prototype.addEventListener=function(I,H,X,ne){nt(this,I,H,X,ne)},Ke.prototype.removeEventListener=function(I,H,X,ne){(function le(pe,ie,ue,be,ye){if(Array.isArray(ie))for(var ve=0;ve<ie.length;ve++)le(pe,ie[ve],ue,be,ye);else be=c(be)?!!be.capture:!!be,ue=ht(ue),pe&&pe[We]?(pe=pe.f,(ie=String(ie).toString())in pe.a&&-1<(ue=gt(ve=pe.a[ie],ue,be,ye))&&(lt(ve[ue]),Array.prototype.splice.call(ve,ue,1),ve.length==0&&(delete pe.a[ie],pe.b--))):pe&&(pe=ot(pe))&&(ie=pe.a[ie.toString()],pe=-1,ie&&(pe=gt(ie,ue,be,ye)),(ue=-1<pe?ie[pe]:null)&&Rt(ue))})(this,I,H,X,ne)},dt.prototype.a=null;function mt(I){this.f=I,this.b=this.c=this.a=null}function it(I,H){this.name=I,this.value=H}dt.prototype.reset=function(I,H,X,ne,le){delete this.a},it.prototype.toString=function(){return this.name};var Mt=new it("SEVERE",1e3),Xt=new it("CONFIG",700),Jt=new it("FINE",500);function Pt(I){return I.c?I.c:I.a?Pt(I.a):(function(H,X){throw new _("Failure"+(H?": "+H:""),Array.prototype.slice.call(arguments,1))}("Root logger has no level set."),null)}mt.prototype.log=function(I,H,X){if(I.value>=Pt(this).value)for(S(H)=="function"&&(H=H()),I=new dt(I,String(H),this.f),X&&(I.a=X),X=this;X;)X=X.a};var yt,bt={},at=null;function ke(I,H){I&&I.log(Jt,H,void 0)}function Nt(){}function xt(I){var H;return(H=I.a)||(H={},Bt(I)&&(H[0]=!0,H[1]=!0),H=I.a=H),H}function Lt(){}function Ut(I){return(I=Bt(I))?new ActiveXObject(I):new XMLHttpRequest}function Bt(I){if(!I.b&&typeof XMLHttpRequest=="undefined"&&typeof ActiveXObject!="undefined"){for(var H=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],X=0;X<H.length;X++){var ne=H[X];try{return new ActiveXObject(ne),I.b=ne}catch{}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed")}return I.b}function Ze(I,H){this.b={},this.a=[],this.c=0;var X=arguments.length;if(1<X){if(X%2)throw Error("Uneven number of arguments");for(var ne=0;ne<X;ne+=2)this.set(arguments[ne],arguments[ne+1])}else I&&Dt(this,I)}function vt(I){if(I.c!=I.a.length){for(var H=0,X=0;H<I.a.length;){var ne=I.a[H];Xe(I.b,ne)&&(I.a[X++]=ne),H++}I.a.length=X}if(I.c!=I.a.length){var le={};for(X=H=0;H<I.a.length;)Xe(le,ne=I.a[H])||(I.a[X++]=ne,le[ne]=1),H++;I.a.length=X}}function Dt(I,H){if(H instanceof Ze)for(var X=H.f(),ne=0;ne<X.length;ne++)I.set(X[ne],H.get(X[ne]));else for(X in H)I.set(X,H[X])}function Xe(I,H){return Object.prototype.hasOwnProperty.call(I,H)}Nt.prototype.a=null,F(Lt,Nt),yt=new Lt,Ze.prototype.f=function(){return vt(this),this.a.concat()},Ze.prototype.get=function(I,H){return Xe(this.b,I)?this.b[I]:H},Ze.prototype.set=function(I,H){Xe(this.b,I)||(this.c++,this.a.push(I)),this.b[I]=H},Ze.prototype.forEach=function(I,H){for(var X=this.f(),ne=0;ne<X.length;ne++){var le=X[ne],pe=this.get(le);I.call(H,pe,le,this)}};var Qt=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^\\/?#]*)@)?([^\\/?#]*?)(?::([0-9]+))?(?=[\\/?#]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;function Ye(I){Ke.call(this),this.headers=new Ze,this.D=I||null,this.c=!1,this.C=this.a=null,this.J=this.o="",this.g=0,this.i="",this.h=this.I=this.m=this.G=!1,this.l=0,this.u=null,this.j=kt,this.B=this.H=!1}F(Ye,Ke);var kt="",er=Ye.prototype,tr=function I(H){var X;if(at||(at=new mt(""),bt[""]=at,at.c=Xt),!(X=bt[H])){X=new mt(H);var ne=H.lastIndexOf("."),le=H.substr(ne+1);(ne=I(H.substr(0,ne))).b||(ne.b={}),ne.b[le]=X,X.a=ne,bt[H]=X}return X}("goog.net.XhrIo");er.b=tr;var rr=/^https?$/i,nr=["POST","PUT"];function or(I,H,X){if(I.a)throw Error("[goog.net.XhrIo] Object is active with another request="+I.o+"; newUri="+H);I.o=H,I.i="",I.g=0,I.J="POST",I.G=!1,I.c=!0,I.a=I.D?Ut(I.D):Ut(yt),I.C=I.D?xt(I.D):xt(yt),I.a.onreadystatechange=P(I.K,I);try{ke(I.b,qe(I,"Opening Xhr")),I.I=!0,I.a.open("POST",String(H),!0),I.I=!1}catch(pe){return ke(I.b,qe(I,"Error opening Xhr: "+pe.message)),void Ft(I,pe)}H=X||"";var ne=function(pe){e:{for(var ie=ir,ue=pe.length,be=typeof pe=="string"?pe.split(""):pe,ye=0;ye<ue;ye++)if(ye in be&&ie.call(void 0,be[ye],ye,pe)){ie=ye;break e}ie=-1}return 0>ie?null:typeof pe=="string"?pe.charAt(ie):pe[ie]}((X=new Ze(I.headers)).f()),le=m.FormData&&H instanceof m.FormData;!(0<=B(nr,"POST"))||ne||le||X.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8"),X.forEach(function(pe,ie){this.a.setRequestHeader(ie,pe)},I),I.j&&(I.a.responseType=I.j),"withCredentials"in I.a&&I.a.withCredentials!==I.H&&(I.a.withCredentials=I.H);try{Ht(I),0<I.l&&(I.B=function(pe){return se&&fe(9)&&typeof pe.timeout=="number"&&pe.ontimeout!==void 0}(I.a),ke(I.b,qe(I,"Will abort after "+I.l+"ms if incomplete, xhr2 "+I.B)),I.B?(I.a.timeout=I.l,I.a.ontimeout=P(I.L,I)):I.u=Ct(I.L,I.l,I)),ke(I.b,qe(I,"Sending request")),I.m=!0,I.a.send(H),I.m=!1}catch(pe){ke(I.b,qe(I,"Send error: "+pe.message)),Ft(I,pe)}}function ir(I){return I.toLowerCase()=="content-type"}function Ft(I,H){I.c=!1,I.a&&(I.h=!0,I.a.abort(),I.h=!1),I.i=H,I.g=5,Wt(I),_t(I)}function Wt(I){I.G||(I.G=!0,Ge(I,"complete"),Ge(I,"error"))}function Vt(I){if(I.c&&u!==void 0){if(I.C[1]&&$e(I)==4&&I.getStatus()==2)ke(I.b,qe(I,"Local request error detected and ignored"));else if(I.m&&$e(I)==4)Ct(I.K,0,I);else if(Ge(I,"readystatechange"),$e(I)==4){ke(I.b,qe(I,"Request complete")),I.c=!1;try{var H,X=I.getStatus();e:switch(X){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var ne=!0;break e;default:ne=!1}if(!(H=ne)){var le;if(le=X===0){var pe=String(I.o).match(Qt)[1]||null;if(!pe&&m.self&&m.self.location){var ie=m.self.location.protocol;pe=ie.substr(0,ie.length-1)}le=!rr.test(pe?pe.toLowerCase():"")}H=le}if(H)Ge(I,"complete"),Ge(I,"success");else{I.g=6;try{var ue=2<$e(I)?I.a.statusText:""}catch(be){ke(I.b,"Can not get status: "+be.message),ue=""}I.i=ue+" ["+I.getStatus()+"]",Wt(I)}}finally{_t(I)}}}}function _t(I){if(I.a){Ht(I);var H=I.a,X=I.C[0]?y:null;I.a=null,I.C=null,Ge(I,"ready");try{H.onreadystatechange=X}catch(ne){(I=I.b)&&I.log(Mt,"Problem encountered resetting onreadystatechange: "+ne.message,void 0)}}}function Ht(I){I.a&&I.B&&(I.a.ontimeout=null),I.u&&(m.clearTimeout(I.u),I.u=null)}function $e(I){return I.a?I.a.readyState:0}function zt(I,H){if(I.a&&$e(I)==4)return(I=I.a.getResponseHeader(H))===null?void 0:I}function qe(I,H){return H+" ["+I.J+" "+I.o+" "+I.getStatus()+"]"}Ye.prototype.L=function(){u!==void 0&&this.a&&(this.i="Timed out after "+this.l+"ms, aborting",this.g=8,ke(this.b,qe(this,this.i)),Ge(this,"timeout"),this.abort(8))},Ye.prototype.abort=function(I){this.a&&this.c&&(ke(this.b,qe(this,"Aborting")),this.c=!1,this.h=!0,this.a.abort(),this.h=!1,this.g=I||7,Ge(this,"complete"),Ge(this,"abort"),_t(this))},Ye.prototype.K=function(){this.F||(this.I||this.m||this.h?Vt(this):this.O())},Ye.prototype.O=function(){Vt(this)},Ye.prototype.getStatus=function(){try{return 2<$e(this)?this.a.status:-1}catch{return-1}};var Gt={},et=null;function ar(I){var H=I.length,X=3*H/4;X%3?X=Math.floor(X):K("=.",I[H-1])&&(X=K("=.",I[H-2])?X-2:X-1);var ne=new Uint8Array(X),le=0;return function(pe,ie){function ue(Ie){for(;be<pe.length;){var je=pe.charAt(be++),Ce=et[je];if(Ce!=null)return Ce;if(!/^[\s\xa0]*$/.test(je))throw Error("Unknown base64 encoding at char: "+je)}return Ie}qt();for(var be=0;;){var ye=ue(-1),ve=ue(0),Re=ue(64),Ee=ue(64);if(Ee===64&&ye===-1)break;ie(ye<<2|ve>>4),Re!=64&&(ie(ve<<4&240|Re>>2),Ee!=64&&ie(Re<<6&192|Ee))}}(I,function(pe){ne[le++]=pe}),ne.subarray(0,le)}function qt(){if(!et){et={};for(var I="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),H=["+/=","+/","-_=","-_.","-_"],X=0;5>X;X++){var ne=I.concat(H[X].split(""));Gt[X]=ne;for(var le=0;le<ne.length;le++){var pe=ne[le];et[pe]===void 0&&(et[pe]=le)}}}}var sr=["content-type","grpc-status","grpc-message"];function Ve(I){this.a=I.T,this.l=null,this.b=[],this.h=[],this.g=[],this.f=[],this.c=[],this.j=!1,this.i=0,this.m=new x;var H=this;nt(this.a,"readystatechange",function(){var X=H.a;if(X=X.a?X.a.getResponseHeader("Content-Type"):null){if((X=X.toLowerCase()).lastIndexOf("application/grpc-web-text",0)==0){X=H.a;try{var ne=X.a?X.a.responseText:""}catch(ye){ke(X.b,"Can not get responseText: "+ye.message),ne=""}if(ne=(X=ne||"").length-X.length%4,(X=X.substr(H.i,ne-H.i)).length==0)return;H.i=ne,X=ar(X)}else{if(X.lastIndexOf("application/grpc",0)!=0)return void Je(H,{code:2,message:"Unknown Content-type received.",metadata:{}});X=new Uint8Array(function(ye){try{if(!ye.a)return null;if("response"in ye.a)return ye.a.response;switch(ye.j){case kt:case"text":return ye.a.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in ye.a)return ye.a.mozResponseArrayBuffer}var ve=ye.b;return ve&&ve.log(Mt,"Response type "+ye.j+" is not supported on this browser",void 0),null}catch(Re){return ke(ye.b,"Can not get response: "+Re.message),null}}(H.a))}ne=null;try{ne=function(ye,ve){function Re(Qe){we.f++,we.a=(we.a<<8)+Qe,we.f==4&&(we.b=T,we.g=0,typeof Uint8Array!="undefined"?we.c=new Uint8Array(we.a):we.c=Array(we.a),we.a==0&&Ie())}function Ee(Qe){we.c[we.g++]=Qe,we.g==we.a&&Ie()}function Ie(){var Qe={};Qe[we.h]=we.c,we.i.push(Qe),we.b=D}var je,Ce,we=ye,He=0;for(je=ve instanceof Uint8Array||ve instanceof Array?ve:new Uint8Array(ve);He<je.length;){switch(we.b){case C:f(we,je,He,"stream already broken");break;case D:(Ce=je[He])==U||Ce==b?we.h=Ce:f(we,je,He,"invalid frame byte"),we.b=L,we.a=0,we.f=0;break;case L:Re(je[He]);break;case T:Ee(je[He]);break;default:throw Error("unexpected parser state: "+we.b)}we.l++,He++}return ye=we.i,we.i=[],0<ye.length?ye:null}(H.m,X)}catch{Je(H,{code:2,message:"Error in parsing response body",metadata:{}})}if(ne)for(X=0;X<ne.length;X++){if(U in ne[X]){var le=ne[X][U];if(le)try{var pe=H.l(le);if(pe){le=H;for(var ie=pe,ue=0;ue<le.b.length;ue++)le.b[ue](ie)}}catch{Je(H,{code:2,message:"Error in response deserializer function.",metadata:{}})}}if(b in ne[X]&&0<ne[X][b].length){for(le="",ie=0;ie<ne[X][b].length;ie++)le+=String.fromCharCode(ne[X][b][ie]);for(le=le.trim().split(`\r
|
|
17
|
-
`),ie={},
|
|
18
|
-
`);for(var ye=0;ye<
|
|
19
|
-
`}),je}(ie),typeof le=="string"?(ve=encodeURIComponent("$httpHeaders"),(ve+=ie=ie!=null?"="+encodeURIComponent(String(ie)):"")&&(0>(ie=le.indexOf("#"))&&(ie=le.length),0>(ue=le.indexOf("?"))||ue>ie?(ue=ie,be=""):be=le.substring(ue+1,ie),ie=(le=[le.substr(0,ue),be,le.substr(ie)])[1],le[1]=ve?ie?ie+"&"+ve:ve:ie,le=le[0]+(le[1]?"?"+le[1]:"")+le[2])):le.a("$httpHeaders",ie))}for(ne=(H=(0,ne.a)(H.getRequestMessage())).length,ve=[0,0,0,0],ie=new Uint8Array(5+ne),ue=3;0<=ue;ue--)ve[ue]=ne%256,ne>>>=8;if(ie.set(new Uint8Array(ve),1),ie.set(H,5),H=ie,I.a=="text"){var Re;for(I=H,Re===void 0&&(Re=0),qt(),Re=Gt[Re],H=[],ne=0;ne<I.length;ne+=3){ye=I[ne];var Ee=(ve=ne+1<I.length)?I[ne+1]:0;ue=ye>>2,ye=(3&ye)<<4|Ee>>4,Ee=(15&Ee)<<2|(be=(ie=ne+2<I.length)?I[ne+2]:0)>>6,be&=63,ie||(be=64,ve||(Ee=64)),H.push(Re[ue],Re[ye],Re[Ee]||"",Re[be]||"")}H=H.join("")}else I.a=="binary"&&(X.j="arraybuffer");return or(X,le,H),pe}function Yt(I,H,X){var ne=null,le=!1;I.on("data",function(pe){ne=pe}),I.on("error",function(pe){pe.code==0||le||(le=!0,H(pe,null))}),I.on("status",function(pe){pe.code==0||le?X&&H(null,null,pe):(le=!0,H({code:pe.code,message:pe.details,metadata:pe.metadata},null))}),X&&I.on("metadata",function(pe){H(null,null,null,pe)}),I.on("end",function(){le||(ne==null?H({code:2,message:"Incomplete response"}):H(null,ne)),X&&H(null,null)})}function wt(I,H){var X=I;return H.forEach(function(ne){var le=X;X=function(pe){return ne.intercept(pe,le)}}),X}Ve.prototype.on=function(I,H){return I=="data"?this.b.push(H):I=="status"?this.h.push(H):I=="metadata"?this.g.push(H):I=="end"?this.c.push(H):I=="error"&&this.f.push(H),this},Ve.prototype.removeListener=function(I,H){return I=="data"?tt(this.b,H):I=="status"?tt(this.h,H):I=="metadata"?tt(this.g,H):I=="end"?tt(this.c,H):I=="error"&&tt(this.f,H),this},Ve.prototype.cancel=function(){this.j=!0,this.a.abort()},Ve.prototype.cancel=Ve.prototype.cancel,Ve.prototype.removeListener=Ve.prototype.removeListener,Ve.prototype.on=Ve.prototype.on,Be.prototype.P=function(I,H,X,ne,le){var pe=this;ne=q(I,H,"unary",ne);var ie=I.substr(0,I.length-ne.name.length);return Yt(I=wt(function(ue){return St(pe,ue,ie)},this.b).call(this,$(ne,H,X)),le,!1),new h(I)},Be.prototype.M=function(I,H,X,ne){var le=this;ne=q(I,H,"unary",ne);var pe=I.substr(0,I.length-ne.name.length);return wt(function(ie){return new Promise(function(ue,be){var ye,ve,Re;Yt(St(le,ie,pe),function(Ee,Ie,je,Ce){Ee?be(Ee):Ie?Re=Ie:je?ve=je:Ce?ye=Ce:(Ee=ie.getMethodDescriptor(),ue(new p(Re,Ee,Ie=(Ie=ye)===void 0?{}:Ie,ve===void 0?null:ve)))},!0)})},this.g).call(this,$(ne,H,X)).then(function(ie){return ie.getResponseMessage()})},Be.prototype.unaryCall=function(I,H,X,ne){return this.M(I,H,X,ne)},Be.prototype.R=function(I,H,X,ne){var le=this;ne=q(I,H,"server_streaming",ne);var pe=I.substr(0,I.length-ne.name.length);return wt(function(ie){return St(le,ie,pe)},this.b).call(this,$(ne,H,X))},Be.prototype.serverStreaming=Be.prototype.R,Be.prototype.unaryCall=Be.prototype.unaryCall,Be.prototype.thenableCall=Be.prototype.M,Be.prototype.rpcCall=Be.prototype.P,e.exports.AbstractClientBase={MethodInfo:function(I,H,X,ne,le){this.name=ne,this.b=le,this.f=I,this.a=H,this.c=X}},e.exports.GrpcWebClientBase=Be,e.exports.StatusCode={OK:0,CANCELLED:1,UNKNOWN:2,INVALID_ARGUMENT:3,DEADLINE_EXCEEDED:4,NOT_FOUND:5,ALREADY_EXISTS:6,PERMISSION_DENIED:7,UNAUTHENTICATED:16,RESOURCE_EXHAUSTED:8,FAILED_PRECONDITION:9,ABORTED:10,OUT_OF_RANGE:11,UNIMPLEMENTED:12,INTERNAL:13,UNAVAILABLE:14,DATA_LOSS:15},e.exports.MethodDescriptor=N,e.exports.MethodType={UNARY:"unary",SERVER_STREAMING:"server_streaming"}}).call(this,r(5))},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.isAsyncIterable=t.isAsyncGenerator=t.isAsync=void 0;var n,i=r(151),g=(n=i)&&n.__esModule?n:{default:n};function s(o){return o[Symbol.toStringTag]==="AsyncFunction"}t.default=function(o){if(typeof o!="function")throw new Error("expected a function");return s(o)?(0,g.default)(o):o},t.isAsync=s,t.isAsyncGenerator=function(o){return o[Symbol.toStringTag]==="AsyncGenerator"},t.isAsyncIterable=function(o){return typeof o[Symbol.asyncIterator]=="function"}},function(e,t,r){var n={};function i(s,o,l){l||(l=Error);var u=function(m){var R,y;function S(c,w,E){return m.call(this,function(P,F,M){return typeof o=="string"?o:o(P,F,M)}(c,w,E))||this}return y=m,(R=S).prototype=Object.create(y.prototype),R.prototype.constructor=R,R.__proto__=y,S}(l);u.prototype.name=l.name,u.prototype.code=s,n[s]=u}function g(s,o){if(Array.isArray(s)){var l=s.length;return s=s.map(function(u){return String(u)}),l>2?"one of ".concat(o," ").concat(s.slice(0,l-1).join(", "),", or ")+s[l-1]:l===2?"one of ".concat(o," ").concat(s[0]," or ").concat(s[1]):"of ".concat(o," ").concat(s[0])}return"of ".concat(o," ").concat(String(s))}i("ERR_INVALID_OPT_VALUE",function(s,o){return'The value "'+o+'" is invalid for option "'+s+'"'},TypeError),i("ERR_INVALID_ARG_TYPE",function(s,o,l){var u,m,R;if(typeof o=="string"&&(m="not ",o.substr(0,m.length)===m)?(u="must not be",o=o.replace(/^not /,"")):u="must be",function(S,c,w){return(w===void 0||w>S.length)&&(w=S.length),S.substring(w-c.length,w)===c}(s," argument"))R="The ".concat(s," ").concat(u," ").concat(g(o,"type"));else{var y=function(S,c,w){return typeof w!="number"&&(w=0),!(w+c.length>S.length)&&S.indexOf(c,w)!==-1}(s,".")?"property":"argument";R='The "'.concat(s,'" ').concat(y," ").concat(u," ").concat(g(o,"type"))}return R+=". Received type ".concat(typeof l)},TypeError),i("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),i("ERR_METHOD_NOT_IMPLEMENTED",function(s){return"The "+s+" method is not implemented"}),i("ERR_STREAM_PREMATURE_CLOSE","Premature close"),i("ERR_STREAM_DESTROYED",function(s){return"Cannot call "+s+" after a stream was destroyed"}),i("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),i("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),i("ERR_STREAM_WRITE_AFTER_END","write after end"),i("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),i("ERR_UNKNOWN_ENCODING",function(s){return"Unknown encoding: "+s},TypeError),i("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.codes=n},function(e,t,r){(function(n){var i=Object.keys||function(S){var c=[];for(var w in S)c.push(w);return c};e.exports=m;var g=r(75),s=r(79);r(6)(m,g);for(var o=i(s.prototype),l=0;l<o.length;l++){var u=o[l];m.prototype[u]||(m.prototype[u]=s.prototype[u])}function m(S){if(!(this instanceof m))return new m(S);g.call(this,S),s.call(this,S),this.allowHalfOpen=!0,S&&(S.readable===!1&&(this.readable=!1),S.writable===!1&&(this.writable=!1),S.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",R)))}function R(){this._writableState.ended||n.nextTick(y,this)}function y(S){S.end()}Object.defineProperty(m.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(m.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(m.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(m.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==void 0&&this._writableState!==void 0&&this._readableState.destroyed&&this._writableState.destroyed},set:function(S){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=S,this._writableState.destroyed=S)}})}).call(this,r(2))},function(e,t,r){r.d(t,"a",function(){return s});var n=r(36),i=r(7);const g={"app-id":["app-id must match formant/*"]};class s extends n.a{constructor(l,u={}){super(l,Object.assign({validateHeaders:m=>`${m.get("app-id")}`.startsWith("formant/")?{}:g,headers:Object.assign(Object.assign({},s.headers),{"App-ID":`formant/${i.a}`,"App-Version":i.j})},u)),this.endpoint=l}}s.headers={}},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(n,i=n.length){if(!i)throw new Error("arity is undefined");return function(...g){return typeof g[i-1]=="function"?n.apply(this,g):new Promise((s,o)=>{g[i-1]=(l,...u)=>{if(l)return o(l);s(u.length>1?u:u[0])},n.apply(this,g)})}},e.exports=t.default},function(e,t,r){(t=e.exports=r(67)).Stream=t,t.Readable=t,t.Writable=r(44),t.Duplex=r(20),t.Transform=r(70),t.PassThrough=r(164)},function(e,t,r){(t=e.exports=r(75)).Stream=t,t.Readable=t,t.Writable=r(79),t.Duplex=r(25),t.Transform=r(80),t.PassThrough=r(183),t.finished=r(45),t.pipeline=r(184)},function(e,t,r){r.d(t,"a",function(){return i});const n=["password","secret","token","key","buffer"];function i(g,s=new Set){return s.has(g)?"[ RECURSIVE ]":!(o=g)||typeof o!="object"&&typeof o!="function"?g:(s.add(g),Object.keys(g).reduce((l,u)=>(l[u]=n.some(m=>u.toLowerCase().includes(m.toLowerCase()))?"[ REDACTED ]":i(g[u],s),l),{}));var o}},function(e,t){e.exports=n,n.default=n,n.stable=g,n.stableStringify=g;var r=[];function n(s,o,l){(function R(y,S,c,w){var E;if(typeof y=="object"&&y!==null){for(E=0;E<c.length;E++)if(c[E]===y)return w[S]="[Circular]",void r.push([w,S,y]);if(c.push(y),Array.isArray(y))for(E=0;E<y.length;E++)R(y[E],E,c,y);else{var P=Object.keys(y);for(E=0;E<P.length;E++){var F=P[E];R(y[F],F,c,y)}}c.pop()}})(s,"",[],void 0);for(var u=JSON.stringify(s,o,l);r.length!==0;){var m=r.pop();m[0][m[1]]=m[2]}return u}function i(s,o){return s<o?-1:s>o?1:0}function g(s,o,l){for(var u=function y(S,c,w,E){var P;if(typeof S=="object"&&S!==null){for(P=0;P<w.length;P++)if(w[P]===S)return E[c]="[Circular]",void r.push([E,c,S]);if(typeof S.toJSON=="function")return;if(w.push(S),Array.isArray(S))for(P=0;P<S.length;P++)y(S[P],P,w,S);else{var F={},M=Object.keys(S).sort(i);for(P=0;P<M.length;P++){var A=M[P];y(S[A],A,w,S),F[A]=S[A]}if(E===void 0)return F;r.push([E,c,S]),E[c]=F}w.pop()}}(s,"",[],void 0)||s,m=JSON.stringify(u,o,l);r.length!==0;){var R=r.pop();R[0][R[1]]=R[2]}return m}},function(e,t,r){var n=r(13),i=Object.keys||function(c){var w=[];for(var E in c)w.push(E);return w};e.exports=R;var g=Object.create(r(14));g.inherits=r(6);var s=r(142),o=r(60);g.inherits(R,s);for(var l=i(o.prototype),u=0;u<l.length;u++){var m=l[u];R.prototype[m]||(R.prototype[m]=o.prototype[m])}function R(c){if(!(this instanceof R))return new R(c);s.call(this,c),o.call(this,c),c&&c.readable===!1&&(this.readable=!1),c&&c.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,c&&c.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",y)}function y(){this.allowHalfOpen||this._writableState.ended||n.nextTick(S,this)}function S(c){c.end()}Object.defineProperty(R.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(R.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._writableState!==void 0&&this._readableState.destroyed&&this._writableState.destroyed},set:function(c){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=c,this._writableState.destroyed=c)}}),R.prototype._destroy=function(c,w){this.push(null),this.end(),n.nextTick(w,c)}},function(e,t,r){var n=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Int32Array!="undefined";function i(o,l){return Object.prototype.hasOwnProperty.call(o,l)}t.assign=function(o){for(var l=Array.prototype.slice.call(arguments,1);l.length;){var u=l.shift();if(u){if(typeof u!="object")throw new TypeError(u+"must be non-object");for(var m in u)i(u,m)&&(o[m]=u[m])}}return o},t.shrinkBuf=function(o,l){return o.length===l?o:o.subarray?o.subarray(0,l):(o.length=l,o)};var g={arraySet:function(o,l,u,m,R){if(l.subarray&&o.subarray)o.set(l.subarray(u,u+m),R);else for(var y=0;y<m;y++)o[R+y]=l[u+y]},flattenChunks:function(o){var l,u,m,R,y,S;for(m=0,l=0,u=o.length;l<u;l++)m+=o[l].length;for(S=new Uint8Array(m),R=0,l=0,u=o.length;l<u;l++)y=o[l],S.set(y,R),R+=y.length;return S}},s={arraySet:function(o,l,u,m,R){for(var y=0;y<m;y++)o[R+y]=l[u+y]},flattenChunks:function(o){return[].concat.apply([],o)}};t.setTyped=function(o){o?(t.Buf8=Uint8Array,t.Buf16=Uint16Array,t.Buf32=Int32Array,t.assign(t,g)):(t.Buf8=Array,t.Buf16=Array,t.Buf32=Array,t.assign(t,s))},t.setTyped(n)},function(e,t,r){e.exports=r(185)},function(e,t,r){e.exports=function(n){return n}},function(e,t,r){r.d(t,"a",function(){return P});var n=r(10),i=r(0);function g(F,M,A=()=>!0){if(F instanceof M&&A(F))return F;throw F}var s=r(1),o=r(100),l=r.n(o),u=r(101),m=r.n(u);class R extends Error{constructor(M,A,p){super(`Connection failure: ${M.message}`),this.cause=M,this.url=A,this.retryable=p}}var y=r(30);class S extends Error{constructor(M,A,p,N,$={},q){super(`Unexpected response (${p}) for ${M} ${A}: ${JSON.stringify(q?Object(y.a)([...q.entries()].reduce((h,[d,O])=>(h[d]=O,h),{})):{})} -- ${JSON.stringify(Object(y.a)(N))}`),this.method=M,this.url=A,this.statusCode=p,this.body=N,this.validationErrors=$,this.headers=q}}class c extends Error{constructor(M,A){super(`Invalid headers (${JSON.stringify(M)}) for response: ${A.message}`),this.validationErrors=M,this.responseError=A}}var w=function(F,M,A,p){return new(A||(A=Promise))(function(N,$){function q(O){try{d(p.next(O))}catch(_){$(_)}}function h(O){try{d(p.throw(O))}catch(_){$(_)}}function d(O){var _;O.done?N(O.value):(_=O.value,_ instanceof A?_:new A(function(x){x(_)})).then(q,h)}d((p=p.apply(F,M||[])).next())})},E=function(F,M){var A={};for(var p in F)Object.prototype.hasOwnProperty.call(F,p)&&M.indexOf(p)<0&&(A[p]=F[p]);if(F!=null&&typeof Object.getOwnPropertySymbols=="function"){var N=0;for(p=Object.getOwnPropertySymbols(F);N<p.length;N++)M.indexOf(p[N])<0&&Object.prototype.propertyIsEnumerable.call(F,p[N])&&(A[p[N]]=F[p[N]])}return A};class P{constructor(M,A={}){if(this.endpoint=M,this.validateHeaders=p=>A.validateHeaders?A.validateHeaders(p):{},this.verbose=A.verbose!==!1,this.retries=A.retries!==void 0?A.retries:P.retries,this.headers=A.headers||{},this.timeoutMs=A.timeoutMs,!(this.retries>=0))throw new Error("retries must be positive or zero");if(this.timeoutMs!==void 0&&!(this.timeoutMs>0))throw new Error("timeoutMs must be positive")}fetch(M,A={}){return w(this,void 0,void 0,function*(){return(yield this.fetchVerbose(M,A)).body})}fetchVerbose(M,A={}){return w(this,void 0,void 0,function*(){let p=100*s.a.millisecond,N=0;const $=this.timeoutMs!==void 0?new Date().getTime()+this.timeoutMs:void 0,q=$?()=>Math.max($-new Date().getTime(),0):void 0;for(;;)try{return yield this.doFetch(M,A,q)}catch(h){const d=g(h,R);if((q==null?void 0:q())===0||N===this.retries||!d.retryable&&!A.allowUnsafeRetries)throw d;N++,p*=2+.1*(Math.random()-.5),yield Object(n.a)(q?Math.min(p,q()):p),this.verbose&&i.a.warn(`Connection failure, retrying. Error: ${h.cause.message}`,{url:h.url,error:h.cause})}})}doFetch(M,A,p){return w(this,void 0,void 0,function*(){const{token:N,json:$}=A,q=E(A,["token","json"]),h=(q.method||"GET").toUpperCase(),d=h!=="POST"&&h!=="PATCH",O=this.endpoint!==void 0?`${this.endpoint}${M?`/${M}`:""}`:M,_=new l.a;let x;if(p){const D=p();D>0?x=setTimeout(()=>{_.abort()},D):_.abort()}try{let D;yield Promise.race([P.waitForConnectivity(),new Promise(B=>{D=setTimeout(B,p?Math.min(s.a.minute,p()):s.a.minute)})]),D&&clearTimeout(D);const L=yield m()(O,Object.assign(Object.assign({},q),{headers:Object.assign(Object.assign(Object.assign(Object.assign({},$!==!1?{"Content-Type":"application/json"}:{}),this.headers),q.headers||{}),N!==void 0?{Authorization:`Bearer ${N}`}:{}),signal:_.signal})),T=L.headers.get("content-type")||"",C=T&&T.startsWith("application/json"),U=C?yield L.json():yield L.text(),b=()=>new S(h,O,L.status,U,U&&U.validationErrors||{},L.headers);if(!L.ok)throw this.verbose&&i.a[L.status>=500?"warn":"info"]("Response error",{method:h,url:O,statusCode:L.status}),b();const f=this.validateHeaders(L.headers);if(Object.keys(f).length!==0)throw new c(f,b());if(L.status===204)return{body:void 0,headers:L.headers};if($&&!C)throw new Error(`Response is not JSON: ${JSON.stringify(U)}`);return{body:U,headers:L.headers}}catch(D){if(D.message==="Network request failed")throw new R(D,O,d);if(D.type==="system"&&["EAI_AGAIN","ECONNREFUSED","EHOSTUNREACH","ENOTFOUND"].find(U=>U===D.code))throw new R(D,O,!0);if(D.type==="system"&&["ETIMEDOUT","ECONNRESET","ESOCKETTIMEDOUT","EPIPE"].find(U=>U===D.code))throw new R(D,O,d);if(D.name==="AbortError")throw new R(D,O,d);const L=g(D,S),{statusCode:T}=L;if(T===408||T===429||T===502||T===503||T===504)throw this.verbose&&!d&&i.a.warn("Potentially unsafe retry"),new R(D,O,!0);const C=this.validateHeaders(L.headers);throw Object.keys(C).length!==0?new c(C,L):(yield P.onResponseError(L),D)}finally{x&&clearTimeout(x)}})}}P.retries=8,P.waitForConnectivity=()=>w(void 0,void 0,void 0,function*(){}),P.onResponseError=()=>w(void 0,void 0,void 0,function*(){})},function(e,t,r){function n(R,y){if(!(R instanceof y))throw new TypeError("Cannot call a class as a function")}function i(R,y){for(var S=0;S<y.length;S++){var c=y[S];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(R,c.key,c)}}var g=r(57),s=r(3),o=s.LEVEL,l=s.MESSAGE;g.enabled=!0;var u=/\s+/,m=function(){function R(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};n(this,R),w.colors&&this.addColors(w.colors),this.options=w}var y,S,c;return y=R,c=[{key:"addColors",value:function(w){var E=Object.keys(w).reduce(function(P,F){return P[F]=u.test(w[F])?w[F].split(u):w[F],P},{});return R.allColors=Object.assign({},R.allColors||{},E),R.allColors}}],(S=[{key:"addColors",value:function(w){return R.addColors(w)}},{key:"colorize",value:function(w,E,P){if(P===void 0&&(P=E),!Array.isArray(R.allColors[w]))return g[R.allColors[w]](P);for(var F=0,M=R.allColors[w].length;F<M;F++)P=g[R.allColors[w][F]](P);return P}},{key:"transform",value:function(w,E){return E.all&&typeof w[l]=="string"&&(w[l]=this.colorize(w[o],w.level,w[l])),(E.level||E.all||!E.message)&&(w.level=this.colorize(w[o],w.level)),(E.all||E.message)&&(w.message=this.colorize(w[o],w.level,w.message)),w}}])&&i(y.prototype,S),c&&i(y,c),R}();e.exports=function(R){return new m(R)},e.exports.Colorizer=e.exports.Format=m},function(e,t){var r={}.toString;e.exports=Array.isArray||function(n){return r.call(n)=="[object Array]"}},function(e,t,r){(function(n){function i(g){try{if(!n.localStorage)return!1}catch{return!1}var s=n.localStorage[g];return s!=null&&String(s).toLowerCase()==="true"}e.exports=function(g,s){if(i("noDeprecation"))return g;var o=!1;return function(){if(!o){if(i("throwDeprecation"))throw new Error(s);i("traceDeprecation")?console.trace(s):console.warn(s),o=!0}return g.apply(this,arguments)}}}).call(this,r(5))},function(e,t,r){var n=r(4),i=n.Buffer;function g(o,l){for(var u in o)l[u]=o[u]}function s(o,l,u){return i(o,l,u)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(g(n,t),t.Buffer=s),g(i,s),s.from=function(o,l,u){if(typeof o=="number")throw new TypeError("Argument must not be a number");return i(o,l,u)},s.alloc=function(o,l,u){if(typeof o!="number")throw new TypeError("Argument must be a number");var m=i(o);return l!==void 0?typeof u=="string"?m.fill(l,u):m.fill(l):m.fill(0),m},s.allocUnsafe=function(o){if(typeof o!="number")throw new TypeError("Argument must be a number");return i(o)},s.allocUnsafeSlow=function(o){if(typeof o!="number")throw new TypeError("Argument must be a number");return n.SlowBuffer(o)}},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(n){return n&&typeof n.length=="number"&&n.length>=0&&n.length%1==0},e.exports=t.default},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.default={},e.exports=t.default},function(e,t,r){var n=r(4),i=n.Buffer;function g(o,l){for(var u in o)l[u]=o[u]}function s(o,l,u){return i(o,l,u)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(g(n,t),t.Buffer=s),g(i,s),s.from=function(o,l,u){if(typeof o=="number")throw new TypeError("Argument must not be a number");return i(o,l,u)},s.alloc=function(o,l,u){if(typeof o!="number")throw new TypeError("Argument must be a number");var m=i(o);return l!==void 0?typeof u=="string"?m.fill(l,u):m.fill(l):m.fill(0),m},s.allocUnsafe=function(o){if(typeof o!="number")throw new TypeError("Argument must be a number");return i(o)},s.allocUnsafeSlow=function(o){if(typeof o!="number")throw new TypeError("Argument must be a number");return n.SlowBuffer(o)}},function(e,t,r){(function(n,i,g){var s=r(13);function o(d){var O=this;this.next=null,this.entry=null,this.finish=function(){(function(_,x,D){var L=_.entry;for(_.entry=null;L;){var T=L.callback;x.pendingcb--,T(D),L=L.next}x.corkedRequestsFree?x.corkedRequestsFree.next=_:x.corkedRequestsFree=_})(O,d)}}e.exports=M;var l,u=!n.browser&&["v0.10","v0.9."].indexOf(n.version.slice(0,5))>-1?i:s.nextTick;M.WritableState=F;var m=r(14);m.inherits=r(6);var R={deprecate:r(39)},y=r(68),S=r(43).Buffer,c=g.Uint8Array||function(){},w,E=r(69);function P(){}function F(d,O){l=l||r(20),d=d||{};var _=O instanceof l;this.objectMode=!!d.objectMode,_&&(this.objectMode=this.objectMode||!!d.writableObjectMode);var x=d.highWaterMark,D=d.writableHighWaterMark,L=this.objectMode?16:16384;this.highWaterMark=x||x===0?x:_&&(D||D===0)?D:L,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var T=d.decodeStrings===!1;this.decodeStrings=!T,this.defaultEncoding=d.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(C){(function(U,b){var f=U._writableState,B=f.sync,k=f.writecb;if(function(K){K.writing=!1,K.writecb=null,K.length-=K.writelen,K.writelen=0}(f),b)(function(K,Q,G,V,v){--Q.pendingcb,G?(s.nextTick(v,V),s.nextTick(h,K,Q),K._writableState.errorEmitted=!0,K.emit("error",V)):(v(V),K._writableState.errorEmitted=!0,K.emit("error",V),h(K,Q))})(U,f,B,b,k);else{var Y=$(f);Y||f.corked||f.bufferProcessing||!f.bufferedRequest||N(U,f),B?u(p,U,f,Y,k):p(U,f,Y,k)}})(O,C)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function M(d){if(l=l||r(20),!(w.call(M,this)||this instanceof l))return new M(d);this._writableState=new F(d,this),this.writable=!0,d&&(typeof d.write=="function"&&(this._write=d.write),typeof d.writev=="function"&&(this._writev=d.writev),typeof d.destroy=="function"&&(this._destroy=d.destroy),typeof d.final=="function"&&(this._final=d.final)),y.call(this)}function A(d,O,_,x,D,L,T){O.writelen=x,O.writecb=T,O.writing=!0,O.sync=!0,_?d._writev(D,O.onwrite):d._write(D,L,O.onwrite),O.sync=!1}function p(d,O,_,x){_||function(D,L){L.length===0&&L.needDrain&&(L.needDrain=!1,D.emit("drain"))}(d,O),O.pendingcb--,x(),h(d,O)}function N(d,O){O.bufferProcessing=!0;var _=O.bufferedRequest;if(d._writev&&_&&_.next){var x=O.bufferedRequestCount,D=new Array(x),L=O.corkedRequestsFree;L.entry=_;for(var T=0,C=!0;_;)D[T]=_,_.isBuf||(C=!1),_=_.next,T+=1;D.allBuffers=C,A(d,O,!0,O.length,D,"",L.finish),O.pendingcb++,O.lastBufferedRequest=null,L.next?(O.corkedRequestsFree=L.next,L.next=null):O.corkedRequestsFree=new o(O),O.bufferedRequestCount=0}else{for(;_;){var U=_.chunk,b=_.encoding,f=_.callback;if(A(d,O,!1,O.objectMode?1:U.length,U,b,f),_=_.next,O.bufferedRequestCount--,O.writing)break}_===null&&(O.lastBufferedRequest=null)}O.bufferedRequest=_,O.bufferProcessing=!1}function $(d){return d.ending&&d.length===0&&d.bufferedRequest===null&&!d.finished&&!d.writing}function q(d,O){d._final(function(_){O.pendingcb--,_&&d.emit("error",_),O.prefinished=!0,d.emit("prefinish"),h(d,O)})}function h(d,O){var _=$(O);return _&&(function(x,D){D.prefinished||D.finalCalled||(typeof x._final=="function"?(D.pendingcb++,D.finalCalled=!0,s.nextTick(q,x,D)):(D.prefinished=!0,x.emit("prefinish")))}(d,O),O.pendingcb===0&&(O.finished=!0,d.emit("finish"))),_}m.inherits(M,y),F.prototype.getBuffer=function(){for(var d=this.bufferedRequest,O=[];d;)O.push(d),d=d.next;return O},function(){try{Object.defineProperty(F.prototype,"buffer",{get:R.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}(),typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(w=Function.prototype[Symbol.hasInstance],Object.defineProperty(M,Symbol.hasInstance,{value:function(d){return!!w.call(this,d)||this===M&&d&&d._writableState instanceof F}})):w=function(d){return d instanceof this},M.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},M.prototype.write=function(d,O,_){var x,D=this._writableState,L=!1,T=!D.objectMode&&(x=d,S.isBuffer(x)||x instanceof c);return T&&!S.isBuffer(d)&&(d=function(C){return S.from(C)}(d)),typeof O=="function"&&(_=O,O=null),T?O="buffer":O||(O=D.defaultEncoding),typeof _!="function"&&(_=P),D.ended?function(C,U){var b=new Error("write after end");C.emit("error",b),s.nextTick(U,b)}(this,_):(T||function(C,U,b,f){var B=!0,k=!1;return b===null?k=new TypeError("May not write null values to stream"):typeof b=="string"||b===void 0||U.objectMode||(k=new TypeError("Invalid non-string/buffer chunk")),k&&(C.emit("error",k),s.nextTick(f,k),B=!1),B}(this,D,d,_))&&(D.pendingcb++,L=function(C,U,b,f,B,k){if(!b){var Y=function(V,v,j){return V.objectMode||V.decodeStrings===!1||typeof v!="string"||(v=S.from(v,j)),v}(U,f,B);f!==Y&&(b=!0,B="buffer",f=Y)}var K=U.objectMode?1:f.length;U.length+=K;var Q=U.length<U.highWaterMark;if(Q||(U.needDrain=!0),U.writing||U.corked){var G=U.lastBufferedRequest;U.lastBufferedRequest={chunk:f,encoding:B,isBuf:b,callback:k,next:null},G?G.next=U.lastBufferedRequest:U.bufferedRequest=U.lastBufferedRequest,U.bufferedRequestCount+=1}else A(C,U,!1,K,f,B,k);return Q}(this,D,T,d,O,_)),L},M.prototype.cork=function(){this._writableState.corked++},M.prototype.uncork=function(){var d=this._writableState;d.corked&&(d.corked--,d.writing||d.corked||d.finished||d.bufferProcessing||!d.bufferedRequest||N(this,d))},M.prototype.setDefaultEncoding=function(d){if(typeof d=="string"&&(d=d.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((d+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+d);return this._writableState.defaultEncoding=d,this},Object.defineProperty(M.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),M.prototype._write=function(d,O,_){_(new Error("_write() is not implemented"))},M.prototype._writev=null,M.prototype.end=function(d,O,_){var x=this._writableState;typeof d=="function"?(_=d,d=null,O=null):typeof O=="function"&&(_=O,O=null),d!=null&&this.write(d,O),x.corked&&(x.corked=1,this.uncork()),x.ending||x.finished||function(D,L,T){L.ending=!0,h(D,L),T&&(L.finished?s.nextTick(T):D.once("finish",T)),L.ended=!0,D.writable=!1}(this,x,_)},Object.defineProperty(M.prototype,"destroyed",{get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(d){this._writableState&&(this._writableState.destroyed=d)}}),M.prototype.destroy=E.destroy,M.prototype._undestroy=E.undestroy,M.prototype._destroy=function(d,O){this.end(),O(d)}}).call(this,r(2),r(12).setImmediate,r(5))},function(e,t,r){var n=r(24).codes.ERR_STREAM_PREMATURE_CLOSE;function i(){}e.exports=function g(s,o,l){if(typeof o=="function")return g(s,null,o);o||(o={}),l=function(M){var A=!1;return function(){if(!A){A=!0;for(var p=arguments.length,N=new Array(p),$=0;$<p;$++)N[$]=arguments[$];M.apply(this,N)}}}(l||i);var u=o.readable||o.readable!==!1&&s.readable,m=o.writable||o.writable!==!1&&s.writable,R=function(){s.writable||S()},y=s._writableState&&s._writableState.finished,S=function(){m=!1,y=!0,u||l.call(s)},c=s._readableState&&s._readableState.endEmitted,w=function(){u=!1,c=!0,m||l.call(s)},E=function(M){l.call(s,M)},P=function(){var M;return u&&!c?(s._readableState&&s._readableState.ended||(M=new n),l.call(s,M)):m&&!y?(s._writableState&&s._writableState.ended||(M=new n),l.call(s,M)):void 0},F=function(){s.req.on("finish",S)};return function(M){return M.setHeader&&typeof M.abort=="function"}(s)?(s.on("complete",S),s.on("abort",P),s.req?F():s.on("request",F)):m&&!s._writableState&&(s.on("end",R),s.on("close",R)),s.on("end",w),s.on("finish",S),o.error!==!1&&s.on("error",E),s.on("close",P),function(){s.removeListener("complete",S),s.removeListener("abort",P),s.removeListener("request",F),s.req&&s.req.removeListener("finish",S),s.removeListener("end",R),s.removeListener("close",R),s.removeListener("finish",S),s.removeListener("end",w),s.removeListener("error",E),s.removeListener("close",P)}}},function(e,t,r){var n=r(193),i=r(195);function g(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=M,t.resolve=function(A,p){return M(A,!1,!0).resolve(p)},t.resolveObject=function(A,p){return A?M(A,!1,!0).resolveObject(p):p},t.format=function(A){return i.isString(A)&&(A=M(A)),A instanceof g?A.format():g.prototype.format.call(A)},t.Url=g;var s=/^([a-z0-9.+-]+:)/i,o=/:[0-9]*$/,l=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,u=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r",`
|
|
20
|
-
`," "]),m=["'"].concat(u),R=["%","/","?",";","#"].concat(m),y=["/","?","#"],S=/^[+a-z0-9A-Z_-]{0,63}$/,c=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,w={javascript:!0,"javascript:":!0},E={javascript:!0,"javascript:":!0},P={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},F=r(196);function M(A,p,N){if(A&&i.isObject(A)&&A instanceof g)return A;var $=new g;return $.parse(A,p,N),$}g.prototype.parse=function(A,p,N){if(!i.isString(A))throw new TypeError("Parameter 'url' must be a string, not "+typeof A);var $=A.indexOf("?"),q=$!==-1&&$<A.indexOf("#")?"?":"#",h=A.split(q);h[0]=h[0].replace(/\\/g,"/");var d=A=h.join(q);if(d=d.trim(),!N&&A.split("#").length===1){var O=l.exec(d);if(O)return this.path=d,this.href=d,this.pathname=O[1],O[2]?(this.search=O[2],this.query=p?F.parse(this.search.substr(1)):this.search.substr(1)):p&&(this.search="",this.query={}),this}var _=s.exec(d);if(_){var x=(_=_[0]).toLowerCase();this.protocol=x,d=d.substr(_.length)}if(N||_||d.match(/^\/\/[^@\/]+@[^@\/]+/)){var D=d.substr(0,2)==="//";!D||_&&E[_]||(d=d.substr(2),this.slashes=!0)}if(!E[_]&&(D||_&&!P[_])){for(var L,T,C=-1,U=0;U<y.length;U++)(b=d.indexOf(y[U]))!==-1&&(C===-1||b<C)&&(C=b);for((T=C===-1?d.lastIndexOf("@"):d.lastIndexOf("@",C))!==-1&&(L=d.slice(0,T),d=d.slice(T+1),this.auth=decodeURIComponent(L)),C=-1,U=0;U<R.length;U++){var b;(b=d.indexOf(R[U]))!==-1&&(C===-1||b<C)&&(C=b)}C===-1&&(C=d.length),this.host=d.slice(0,C),d=d.slice(C),this.parseHost(),this.hostname=this.hostname||"";var f=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!f)for(var B=this.hostname.split(/\./),k=(U=0,B.length);U<k;U++){var Y=B[U];if(Y&&!Y.match(S)){for(var K="",Q=0,G=Y.length;Q<G;Q++)Y.charCodeAt(Q)>127?K+="x":K+=Y[Q];if(!K.match(S)){var V=B.slice(0,U),v=B.slice(U+1),j=Y.match(c);j&&(V.push(j[1]),v.unshift(j[2])),v.length&&(d="/"+v.join(".")+d),this.hostname=V.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),f||(this.hostname=n.toASCII(this.hostname));var W=this.port?":"+this.port:"",ee=this.hostname||"";this.host=ee+W,this.href+=this.host,f&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),d[0]!=="/"&&(d="/"+d))}if(!w[x])for(U=0,k=m.length;U<k;U++){var J=m[U];if(d.indexOf(J)!==-1){var re=encodeURIComponent(J);re===J&&(re=escape(J)),d=d.split(J).join(re)}}var se=d.indexOf("#");se!==-1&&(this.hash=d.substr(se),d=d.slice(0,se));var oe=d.indexOf("?");if(oe!==-1?(this.search=d.substr(oe),this.query=d.substr(oe+1),p&&(this.query=F.parse(this.query)),d=d.slice(0,oe)):p&&(this.search="",this.query={}),d&&(this.pathname=d),P[x]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){W=this.pathname||"";var z=this.search||"";this.path=W+z}return this.href=this.format(),this},g.prototype.format=function(){var A=this.auth||"";A&&(A=(A=encodeURIComponent(A)).replace(/%3A/i,":"),A+="@");var p=this.protocol||"",N=this.pathname||"",$=this.hash||"",q=!1,h="";this.host?q=A+this.host:this.hostname&&(q=A+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(q+=":"+this.port)),this.query&&i.isObject(this.query)&&Object.keys(this.query).length&&(h=F.stringify(this.query));var d=this.search||h&&"?"+h||"";return p&&p.substr(-1)!==":"&&(p+=":"),this.slashes||(!p||P[p])&&q!==!1?(q="//"+(q||""),N&&N.charAt(0)!=="/"&&(N="/"+N)):q||(q=""),$&&$.charAt(0)!=="#"&&($="#"+$),d&&d.charAt(0)!=="?"&&(d="?"+d),p+q+(N=N.replace(/[?#]/g,function(O){return encodeURIComponent(O)}))+(d=d.replace("#","%23"))+$},g.prototype.resolve=function(A){return this.resolveObject(M(A,!1,!0)).format()},g.prototype.resolveObject=function(A){if(i.isString(A)){var p=new g;p.parse(A,!1,!0),A=p}for(var N=new g,$=Object.keys(this),q=0;q<$.length;q++){var h=$[q];N[h]=this[h]}if(N.hash=A.hash,A.href==="")return N.href=N.format(),N;if(A.slashes&&!A.protocol){for(var d=Object.keys(A),O=0;O<d.length;O++){var _=d[O];_!=="protocol"&&(N[_]=A[_])}return P[N.protocol]&&N.hostname&&!N.pathname&&(N.path=N.pathname="/"),N.href=N.format(),N}if(A.protocol&&A.protocol!==N.protocol){if(!P[A.protocol]){for(var x=Object.keys(A),D=0;D<x.length;D++){var L=x[D];N[L]=A[L]}return N.href=N.format(),N}if(N.protocol=A.protocol,A.host||E[A.protocol])N.pathname=A.pathname;else{for(var T=(A.pathname||"").split("/");T.length&&!(A.host=T.shift()););A.host||(A.host=""),A.hostname||(A.hostname=""),T[0]!==""&&T.unshift(""),T.length<2&&T.unshift(""),N.pathname=T.join("/")}if(N.search=A.search,N.query=A.query,N.host=A.host||"",N.auth=A.auth,N.hostname=A.hostname||A.host,N.port=A.port,N.pathname||N.search){var C=N.pathname||"",U=N.search||"";N.path=C+U}return N.slashes=N.slashes||A.slashes,N.href=N.format(),N}var b=N.pathname&&N.pathname.charAt(0)==="/",f=A.host||A.pathname&&A.pathname.charAt(0)==="/",B=f||b||N.host&&A.pathname,k=B,Y=N.pathname&&N.pathname.split("/")||[],K=(T=A.pathname&&A.pathname.split("/")||[],N.protocol&&!P[N.protocol]);if(K&&(N.hostname="",N.port=null,N.host&&(Y[0]===""?Y[0]=N.host:Y.unshift(N.host)),N.host="",A.protocol&&(A.hostname=null,A.port=null,A.host&&(T[0]===""?T[0]=A.host:T.unshift(A.host)),A.host=null),B=B&&(T[0]===""||Y[0]==="")),f)N.host=A.host||A.host===""?A.host:N.host,N.hostname=A.hostname||A.hostname===""?A.hostname:N.hostname,N.search=A.search,N.query=A.query,Y=T;else if(T.length)Y||(Y=[]),Y.pop(),Y=Y.concat(T),N.search=A.search,N.query=A.query;else if(!i.isNullOrUndefined(A.search))return K&&(N.hostname=N.host=Y.shift(),(j=!!(N.host&&N.host.indexOf("@")>0)&&N.host.split("@"))&&(N.auth=j.shift(),N.host=N.hostname=j.shift())),N.search=A.search,N.query=A.query,i.isNull(N.pathname)&&i.isNull(N.search)||(N.path=(N.pathname?N.pathname:"")+(N.search?N.search:"")),N.href=N.format(),N;if(!Y.length)return N.pathname=null,N.search?N.path="/"+N.search:N.path=null,N.href=N.format(),N;for(var Q=Y.slice(-1)[0],G=(N.host||A.host||Y.length>1)&&(Q==="."||Q==="..")||Q==="",V=0,v=Y.length;v>=0;v--)(Q=Y[v])==="."?Y.splice(v,1):Q===".."?(Y.splice(v,1),V++):V&&(Y.splice(v,1),V--);if(!B&&!k)for(;V--;V)Y.unshift("..");!B||Y[0]===""||Y[0]&&Y[0].charAt(0)==="/"||Y.unshift(""),G&&Y.join("/").substr(-1)!=="/"&&Y.push("");var j,W=Y[0]===""||Y[0]&&Y[0].charAt(0)==="/";return K&&(N.hostname=N.host=W?"":Y.length?Y.shift():"",(j=!!(N.host&&N.host.indexOf("@")>0)&&N.host.split("@"))&&(N.auth=j.shift(),N.host=N.hostname=j.shift())),(B=B||N.host&&Y.length)&&!W&&Y.unshift(""),Y.length?N.pathname=Y.join("/"):(N.pathname=null,N.path=null),i.isNull(N.pathname)&&i.isNull(N.search)||(N.path=(N.pathname?N.pathname:"")+(N.search?N.search:"")),N.auth=A.auth||N.auth,N.slashes=N.slashes||A.slashes,N.href=N.format(),N},g.prototype.parseHost=function(){var A=this.host,p=o.exec(A);p&&((p=p[0])!==":"&&(this.port=p.substr(1)),A=A.substr(0,A.length-p.length)),A&&(this.hostname=A)}},function(e,t,r){var n=r(56),i=r(3).configs;t.cli=n.levels(i.cli),t.npm=n.levels(i.npm),t.syslog=n.levels(i.syslog),t.addColors=n.levels},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=o(r(202)),i=o(r(203)),g=o(r(23)),s=o(r(27));function o(l){return l&&l.__esModule?l:{default:l}}t.default=(0,s.default)(function(l,u,m){return(0,n.default)(l,(0,i.default)((0,g.default)(u)),m)},3),e.exports=t.default},function(e,t,r){function n(i){Error.captureStackTrace(this,this.constructor),this.name="EnvVarError",this.message=`env-var: ${i}`}(0,r(9).inherits)(n,Error),e.exports=n},function(e,t,r){e.exports=function(n){const i=parseInt(n,10);if(isNaN(i)||n.toString().indexOf(".")!==-1)throw new Error("should be a valid integer");return i}},function(e,t,r){e.exports=function(n){const i=parseFloat(n);if(isNaN(i))throw new Error("should be a valid float");return i}},function(e,t,r){e.exports=function(n){try{return JSON.parse(n)}catch{throw new Error("should be valid (parseable) JSON")}}},function(e,t,r){(function(n){function i(o,l){for(var u=0,m=o.length-1;m>=0;m--){var R=o[m];R==="."?o.splice(m,1):R===".."?(o.splice(m,1),u++):u&&(o.splice(m,1),u--)}if(l)for(;u--;u)o.unshift("..");return o}function g(o,l){if(o.filter)return o.filter(l);for(var u=[],m=0;m<o.length;m++)l(o[m],m,o)&&u.push(o[m]);return u}t.resolve=function(){for(var o="",l=!1,u=arguments.length-1;u>=-1&&!l;u--){var m=u>=0?arguments[u]:n.cwd();if(typeof m!="string")throw new TypeError("Arguments to path.resolve must be strings");m&&(o=m+"/"+o,l=m.charAt(0)==="/")}return(l?"/":"")+(o=i(g(o.split("/"),function(R){return!!R}),!l).join("/"))||"."},t.normalize=function(o){var l=t.isAbsolute(o),u=s(o,-1)==="/";return(o=i(g(o.split("/"),function(m){return!!m}),!l).join("/"))||l||(o="."),o&&u&&(o+="/"),(l?"/":"")+o},t.isAbsolute=function(o){return o.charAt(0)==="/"},t.join=function(){var o=Array.prototype.slice.call(arguments,0);return t.normalize(g(o,function(l,u){if(typeof l!="string")throw new TypeError("Arguments to path.join must be strings");return l}).join("/"))},t.relative=function(o,l){function u(E){for(var P=0;P<E.length&&E[P]==="";P++);for(var F=E.length-1;F>=0&&E[F]==="";F--);return P>F?[]:E.slice(P,F-P+1)}o=t.resolve(o).substr(1),l=t.resolve(l).substr(1);for(var m=u(o.split("/")),R=u(l.split("/")),y=Math.min(m.length,R.length),S=y,c=0;c<y;c++)if(m[c]!==R[c]){S=c;break}var w=[];for(c=S;c<m.length;c++)w.push("..");return(w=w.concat(R.slice(S))).join("/")},t.sep="/",t.delimiter=":",t.dirname=function(o){if(typeof o!="string"&&(o+=""),o.length===0)return".";for(var l=o.charCodeAt(0),u=l===47,m=-1,R=!0,y=o.length-1;y>=1;--y)if((l=o.charCodeAt(y))===47){if(!R){m=y;break}}else R=!1;return m===-1?u?"/":".":u&&m===1?"/":o.slice(0,m)},t.basename=function(o,l){var u=function(m){typeof m!="string"&&(m+="");var R,y=0,S=-1,c=!0;for(R=m.length-1;R>=0;--R)if(m.charCodeAt(R)===47){if(!c){y=R+1;break}}else S===-1&&(c=!1,S=R+1);return S===-1?"":m.slice(y,S)}(o);return l&&u.substr(-1*l.length)===l&&(u=u.substr(0,u.length-l.length)),u},t.extname=function(o){typeof o!="string"&&(o+="");for(var l=-1,u=0,m=-1,R=!0,y=0,S=o.length-1;S>=0;--S){var c=o.charCodeAt(S);if(c!==47)m===-1&&(R=!1,m=S+1),c===46?l===-1?l=S:y!==1&&(y=1):l!==-1&&(y=-1);else if(!R){u=S+1;break}}return l===-1||m===-1||y===0||y===1&&l===m-1&&l===u+1?"":o.slice(l,m)};var s="ab".substr(-1)==="b"?function(o,l,u){return o.substr(l,u)}:function(o,l,u){return l<0&&(l=o.length+l),o.substr(l,u)}}).call(this,r(2))},function(e,t){function r(n,i){var g=[],s=[];return i==null&&(i=function(o,l){return g[0]===l?"[Circular ~]":"[Circular ~."+s.slice(0,g.indexOf(l)).join(".")+"]"}),function(o,l){if(g.length>0){var u=g.indexOf(this);~u?g.splice(u+1):g.push(this),~u?s.splice(u,1/0,o):s.push(o),~g.indexOf(l)&&(l=i.call(this,o,l))}else g.push(l);return n==null?l:n.call(this,o,l)}}(e.exports=function(n,i,g,s){return JSON.stringify(n,r(i,s),g)}).getSerialize=r},function(e,t,r){r(227),e.exports={encode:n=>new TextEncoder().encode(n),decode:n=>new TextDecoder().decode(n)}},function(e,t,r){var n=t.format=r(8);t.levels=r(104),Object.defineProperty(n,"align",{value:r(121)}),Object.defineProperty(n,"cli",{value:r(122)}),Object.defineProperty(n,"combine",{value:r(123)}),Object.defineProperty(n,"colorize",{value:r(37)}),Object.defineProperty(n,"json",{value:r(124)}),Object.defineProperty(n,"label",{value:r(127)}),Object.defineProperty(n,"logstash",{value:r(128)}),Object.defineProperty(n,"metadata",{value:r(129)}),Object.defineProperty(n,"padLevels",{value:r(58)}),Object.defineProperty(n,"prettyPrint",{value:r(130)}),Object.defineProperty(n,"printf",{value:r(131)}),Object.defineProperty(n,"simple",{value:r(132)}),Object.defineProperty(n,"splat",{value:r(133)}),Object.defineProperty(n,"timestamp",{value:r(134)}),Object.defineProperty(n,"uncolorize",{value:r(136)})},function(e,t,r){var n=r(105);e.exports=n},function(e,t,r){function n(y){return function(S){if(Array.isArray(S))return i(S)}(y)||function(S){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(S))return Array.from(S)}(y)||function(S,c){if(!!S){if(typeof S=="string")return i(S,c);var w=Object.prototype.toString.call(S).slice(8,-1);if(w==="Object"&&S.constructor&&(w=S.constructor.name),w==="Map"||w==="Set")return Array.from(S);if(w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return i(S,c)}}(y)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
21
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function i(y,S){(S==null||S>y.length)&&(S=y.length);for(var c=0,w=new Array(S);c<S;c++)w[c]=y[c];return w}function g(y,S){if(!(y instanceof S))throw new TypeError("Cannot call a class as a function")}function s(y,S){for(var c=0;c<S.length;c++){var w=S[c];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(y,w.key,w)}}var o=r(3),l=o.configs,u=o.LEVEL,m=o.MESSAGE,R=function(){function y(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{levels:l.npm.levels};g(this,y),this.paddings=y.paddingForLevels(E.levels,E.filler),this.options=E}var S,c,w;return S=y,w=[{key:"getLongestLevel",value:function(E){var P=Object.keys(E).map(function(F){return F.length});return Math.max.apply(Math,n(P))}},{key:"paddingForLevel",value:function(E,P,F){var M=F+1-E.length,A=Math.floor(M/P.length);return"".concat(P).concat(P.repeat(A)).slice(0,M)}},{key:"paddingForLevels",value:function(E){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:" ",F=y.getLongestLevel(E);return Object.keys(E).reduce(function(M,A){return M[A]=y.paddingForLevel(A,P,F),M},{})}}],(c=[{key:"transform",value:function(E,P){return E.message="".concat(this.paddings[E[u]]).concat(E.message),E[m]&&(E[m]="".concat(this.paddings[E[u]]).concat(E[m])),E}}])&&s(S.prototype,c),w&&s(S,w),y}();e.exports=function(y){return new R(y)},e.exports.Padder=e.exports.Format=R},function(e,t,r){var n=r(
|
|
14
|
+
`)):Y=T.stylize("[Circular]","special")),M(k)){if(B&&f.match(/^\d+$/))return Y;(k=JSON.stringify(""+f)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(k=k.substr(1,k.length-2),k=T.stylize(k,"name")):(k=k.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),k=T.stylize(k,"string"))}return k+": "+Y}function c(T){return Array.isArray(T)}function w(T){return typeof T=="boolean"}function E(T){return T===null}function P(T){return typeof T=="number"}function F(T){return typeof T=="string"}function M(T){return T===void 0}function A(T){return p(T)&&h(T)==="[object RegExp]"}function p(T){return typeof T=="object"&&T!==null}function N(T){return p(T)&&h(T)==="[object Date]"}function $(T){return p(T)&&(h(T)==="[object Error]"||T instanceof Error)}function q(T){return typeof T=="function"}function h(T){return Object.prototype.toString.call(T)}function d(T){return T<10?"0"+T.toString(10):T.toString(10)}t.debuglog=function(T){if(M(s)&&(s=n.env.NODE_DEBUG||""),T=T.toUpperCase(),!o[T])if(new RegExp("\\b"+T+"\\b","i").test(s)){var C=n.pid;o[T]=function(){var U=t.format.apply(t,arguments);console.error("%s %d: %s",T,C,U)}}else o[T]=function(){};return o[T]},t.inspect=l,l.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},l.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=c,t.isBoolean=w,t.isNull=E,t.isNullOrUndefined=function(T){return T==null},t.isNumber=P,t.isString=F,t.isSymbol=function(T){return typeof T=="symbol"},t.isUndefined=M,t.isRegExp=A,t.isObject=p,t.isDate=N,t.isError=$,t.isFunction=q,t.isPrimitive=function(T){return T===null||typeof T=="boolean"||typeof T=="number"||typeof T=="string"||typeof T=="symbol"||T===void 0},t.isBuffer=r(106);var O=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function _(){var T=new Date,C=[d(T.getHours()),d(T.getMinutes()),d(T.getSeconds())].join(":");return[T.getDate(),O[T.getMonth()],C].join(" ")}function x(T,C){return Object.prototype.hasOwnProperty.call(T,C)}t.log=function(){console.log("%s - %s",_(),t.format.apply(t,arguments))},t.inherits=r(107),t._extend=function(T,C){if(!C||!p(C))return T;for(var U=Object.keys(C),b=U.length;b--;)T[U[b]]=C[U[b]];return T};var D=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;function L(T,C){if(!T){var U=new Error("Promise was rejected with a falsy value");U.reason=T,T=U}return C(T)}t.promisify=function(T){if(typeof T!="function")throw new TypeError('The "original" argument must be of type Function');if(D&&T[D]){var C;if(typeof(C=T[D])!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(C,D,{value:C,enumerable:!1,writable:!1,configurable:!0}),C}function C(){for(var U,b,f=new Promise(function(Y,K){U=Y,b=K}),B=[],k=0;k<arguments.length;k++)B.push(arguments[k]);B.push(function(Y,K){Y?b(Y):U(K)});try{T.apply(this,B)}catch(Y){b(Y)}return f}return Object.setPrototypeOf(C,Object.getPrototypeOf(T)),D&&Object.defineProperty(C,D,{value:C,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(C,i(T))},t.promisify.custom=D,t.callbackify=function(T){if(typeof T!="function")throw new TypeError('The "original" argument must be of type Function');function C(){for(var U=[],b=0;b<arguments.length;b++)U.push(arguments[b]);var f=U.pop();if(typeof f!="function")throw new TypeError("The last argument must be of type Function");var B=this,k=function(){return f.apply(B,arguments)};T.apply(this,U).then(function(Y){n.nextTick(k,null,Y)},function(Y){n.nextTick(L,Y,k)})}return Object.setPrototypeOf(C,Object.getPrototypeOf(T)),Object.defineProperties(C,i(T)),C}}).call(this,r(2))},function(e,t,r){r.d(t,"a",function(){return n});const n=i=>new Promise(g=>setTimeout(g,i||0))},function(e,t,r){(function(n){var i=n!==void 0&&n||typeof self!="undefined"&&self||window,g=Function.prototype.apply;function s(o,l){this._id=o,this._clearFn=l}t.setTimeout=function(){return new s(g.call(setTimeout,i,arguments),clearTimeout)},t.setInterval=function(){return new s(g.call(setInterval,i,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(o){o&&o.close()},s.prototype.unref=s.prototype.ref=function(){},s.prototype.close=function(){this._clearFn.call(i,this._id)},t.enroll=function(o,l){clearTimeout(o._idleTimeoutId),o._idleTimeout=l},t.unenroll=function(o){clearTimeout(o._idleTimeoutId),o._idleTimeout=-1},t._unrefActive=t.active=function(o){clearTimeout(o._idleTimeoutId);var l=o._idleTimeout;l>=0&&(o._idleTimeoutId=setTimeout(function(){o._onTimeout&&o._onTimeout()},l))},r(140),t.setImmediate=typeof self!="undefined"&&self.setImmediate||n!==void 0&&n.setImmediate||this&&this.setImmediate,t.clearImmediate=typeof self!="undefined"&&self.clearImmediate||n!==void 0&&n.clearImmediate||this&&this.clearImmediate}).call(this,r(5))},function(e,t,r){(function(n){n===void 0||!n.version||n.version.indexOf("v0.")===0||n.version.indexOf("v1.")===0&&n.version.indexOf("v1.8.")!==0?e.exports={nextTick:function(i,g,s,o){if(typeof i!="function")throw new TypeError('"callback" argument must be a function');var l,u,m=arguments.length;switch(m){case 0:case 1:return n.nextTick(i);case 2:return n.nextTick(function(){i.call(null,g)});case 3:return n.nextTick(function(){i.call(null,g,s)});case 4:return n.nextTick(function(){i.call(null,g,s,o)});default:for(l=new Array(m-1),u=0;u<l.length;)l[u++]=arguments[u];return n.nextTick(function(){i.apply(null,l)})}}}:e.exports=n}).call(this,r(2))},function(e,t,r){(function(n){function i(g){return Object.prototype.toString.call(g)}t.isArray=function(g){return Array.isArray?Array.isArray(g):i(g)==="[object Array]"},t.isBoolean=function(g){return typeof g=="boolean"},t.isNull=function(g){return g===null},t.isNullOrUndefined=function(g){return g==null},t.isNumber=function(g){return typeof g=="number"},t.isString=function(g){return typeof g=="string"},t.isSymbol=function(g){return typeof g=="symbol"},t.isUndefined=function(g){return g===void 0},t.isRegExp=function(g){return i(g)==="[object RegExp]"},t.isObject=function(g){return typeof g=="object"&&g!==null},t.isDate=function(g){return i(g)==="[object Date]"},t.isError=function(g){return i(g)==="[object Error]"||g instanceof Error},t.isFunction=function(g){return typeof g=="function"},t.isPrimitive=function(g){return g===null||typeof g=="boolean"||typeof g=="number"||typeof g=="string"||typeof g=="symbol"||g===void 0},t.isBuffer=n.isBuffer}).call(this,r(4).Buffer)},function(e,t){t.endianness=function(){return"LE"},t.hostname=function(){return typeof location!="undefined"?location.hostname:""},t.loadavg=function(){return[]},t.uptime=function(){return 0},t.freemem=function(){return Number.MAX_VALUE},t.totalmem=function(){return Number.MAX_VALUE},t.cpus=function(){return[]},t.type=function(){return"Browser"},t.release=function(){return typeof navigator!="undefined"?navigator.appVersion:""},t.networkInterfaces=t.getNetworkInterfaces=function(){return{}},t.arch=function(){return"javascript"},t.platform=function(){return"browser"},t.tmpdir=t.tmpDir=function(){return"/tmp"},t.EOL=`
|
|
15
|
+
`,t.homedir=function(){return"/"}},function(e,t,r){var n=r(56),i=r(59).warn,g=t;g.version=r(137).version,g.transports=r(138),g.config=r(47),g.addColors=n.levels,g.format=n.format,g.createLogger=r(85),g.ExceptionHandler=r(86),g.RejectionHandler=r(90),g.Container=r(209),g.Transport=r(17),g.loggers=new g.Container;var s=g.createLogger();Object.keys(g.config.npm.levels).concat(["log","query","stream","add","remove","clear","profile","startTimer","handleExceptions","unhandleExceptions","handleRejections","unhandleRejections","configure","child"]).forEach(function(o){return g[o]=function(){return s[o].apply(s,arguments)}}),Object.defineProperty(g,"level",{get:function(){return s.level},set:function(o){s.level=o}}),Object.defineProperty(g,"exceptions",{get:function(){return s.exceptions}}),["exitOnError"].forEach(function(o){Object.defineProperty(g,o,{get:function(){return s[o]},set:function(l){s[o]=l}})}),Object.defineProperty(g,"default",{get:function(){return{exceptionHandlers:s.exceptionHandlers,rejectionHandlers:s.rejectionHandlers,transports:s.transports}}}),i.deprecated(g,"setLevels"),i.forFunctions(g,"useFormat",["cli"]),i.forProperties(g,"useFormat",["padLevels","stripColors"]),i.forFunctions(g,"deprecated",["addRewriter","addFilter","clone","extend"]),i.forProperties(g,"deprecated",["emitErrs","levelLength"]),i.moved(g,"createLogger","Logger")},function(e,t,r){var n=r(10),i=r(141),g=r(3).LEVEL,s=e.exports=function(){var o=this,l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};i.call(this,{objectMode:!0,highWaterMark:l.highWaterMark}),this.format=l.format,this.level=l.level,this.handleExceptions=l.handleExceptions,this.handleRejections=l.handleRejections,this.silent=l.silent,l.log&&(this.log=l.log),l.logv&&(this.logv=l.logv),l.close&&(this.close=l.close),this.once("pipe",function(u){o.levels=u.levels,o.parent=u}),this.once("unpipe",function(u){u===o.parent&&(o.parent=null,o.close&&o.close())})};n.inherits(s,i),s.prototype._write=function(o,l,u){if(this.silent||o.exception===!0&&!this.handleExceptions)return u(null);var m=this.level||this.parent&&this.parent.level;if(!m||this.levels[m]>=this.levels[o[g]]){if(o&&!this.format)return this.log(o,u);var R=void 0,y=void 0;try{y=this.format.transform(Object.assign({},o),this.format.options)}catch(S){R=S}if(R||!y){if(u(),R)throw R;return}return this.log(y,u)}return u(null)},s.prototype._writev=function(o,l){if(this.logv){var u=o.filter(this._accept,this);return u.length?this.logv(u,l):l(null)}for(var m=0;m<o.length;m++)if(this._accept(o[m]))if(!o[m].chunk||this.format){var R=void 0,y=void 0;try{y=this.format.transform(Object.assign({},o[m].chunk),this.format.options)}catch(S){R=S}if(R||!y){if(o[m].callback(),R)throw l(null),R}else this.log(y,o[m].callback)}else this.log(o[m].chunk,o[m].callback);return l(null)},s.prototype._accept=function(o){var l=o.chunk;if(this.silent)return!1;var u=this.level||this.parent&&this.parent.level;return!(l.exception!==!0&&u&&!(this.levels[u]>=this.levels[l[g]])||!this.handleExceptions&&l.exception===!0)},s.prototype._nop=function(){},e.exports.LegacyTransportStream=r(147)},function(e,t,r){var n,i=typeof Reflect=="object"?Reflect:null,g=i&&typeof i.apply=="function"?i.apply:function(E,P,F){return Function.prototype.apply.call(E,P,F)};n=i&&typeof i.ownKeys=="function"?i.ownKeys:Object.getOwnPropertySymbols?function(E){return Object.getOwnPropertyNames(E).concat(Object.getOwnPropertySymbols(E))}:function(E){return Object.getOwnPropertyNames(E)};var s=Number.isNaN||function(E){return E!=E};function o(){o.init.call(this)}e.exports=o,o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var l=10;function u(E){return E._maxListeners===void 0?o.defaultMaxListeners:E._maxListeners}function m(E,P,F,M){var A,p,N,$;if(typeof F!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof F);if((p=E._events)===void 0?(p=E._events=Object.create(null),E._eventsCount=0):(p.newListener!==void 0&&(E.emit("newListener",P,F.listener?F.listener:F),p=E._events),N=p[P]),N===void 0)N=p[P]=F,++E._eventsCount;else if(typeof N=="function"?N=p[P]=M?[F,N]:[N,F]:M?N.unshift(F):N.push(F),(A=u(E))>0&&N.length>A&&!N.warned){N.warned=!0;var q=new Error("Possible EventEmitter memory leak detected. "+N.length+" "+String(P)+" listeners added. Use emitter.setMaxListeners() to increase limit");q.name="MaxListenersExceededWarning",q.emitter=E,q.type=P,q.count=N.length,$=q,console&&console.warn&&console.warn($)}return E}function R(){for(var E=[],P=0;P<arguments.length;P++)E.push(arguments[P]);this.fired||(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,g(this.listener,this.target,E))}function y(E,P,F){var M={fired:!1,wrapFn:void 0,target:E,type:P,listener:F},A=R.bind(M);return A.listener=F,M.wrapFn=A,A}function S(E,P,F){var M=E._events;if(M===void 0)return[];var A=M[P];return A===void 0?[]:typeof A=="function"?F?[A.listener||A]:[A]:F?function(p){for(var N=new Array(p.length),$=0;$<N.length;++$)N[$]=p[$].listener||p[$];return N}(A):w(A,A.length)}function c(E){var P=this._events;if(P!==void 0){var F=P[E];if(typeof F=="function")return 1;if(F!==void 0)return F.length}return 0}function w(E,P){for(var F=new Array(P),M=0;M<P;++M)F[M]=E[M];return F}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return l},set:function(E){if(typeof E!="number"||E<0||s(E))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+E+".");l=E}}),o.init=function(){this._events!==void 0&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(E){if(typeof E!="number"||E<0||s(E))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+E+".");return this._maxListeners=E,this},o.prototype.getMaxListeners=function(){return u(this)},o.prototype.emit=function(E){for(var P=[],F=1;F<arguments.length;F++)P.push(arguments[F]);var M=E==="error",A=this._events;if(A!==void 0)M=M&&A.error===void 0;else if(!M)return!1;if(M){var p;if(P.length>0&&(p=P[0]),p instanceof Error)throw p;var N=new Error("Unhandled error."+(p?" ("+p.message+")":""));throw N.context=p,N}var $=A[E];if($===void 0)return!1;if(typeof $=="function")g($,this,P);else{var q=$.length,h=w($,q);for(F=0;F<q;++F)g(h[F],this,P)}return!0},o.prototype.addListener=function(E,P){return m(this,E,P,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(E,P){return m(this,E,P,!0)},o.prototype.once=function(E,P){if(typeof P!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof P);return this.on(E,y(this,E,P)),this},o.prototype.prependOnceListener=function(E,P){if(typeof P!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof P);return this.prependListener(E,y(this,E,P)),this},o.prototype.removeListener=function(E,P){var F,M,A,p,N;if(typeof P!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof P);if((M=this._events)===void 0)return this;if((F=M[E])===void 0)return this;if(F===P||F.listener===P)--this._eventsCount==0?this._events=Object.create(null):(delete M[E],M.removeListener&&this.emit("removeListener",E,F.listener||P));else if(typeof F!="function"){for(A=-1,p=F.length-1;p>=0;p--)if(F[p]===P||F[p].listener===P){N=F[p].listener,A=p;break}if(A<0)return this;A===0?F.shift():function($,q){for(;q+1<$.length;q++)$[q]=$[q+1];$.pop()}(F,A),F.length===1&&(M[E]=F[0]),M.removeListener!==void 0&&this.emit("removeListener",E,N||P)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(E){var P,F,M;if((F=this._events)===void 0)return this;if(F.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):F[E]!==void 0&&(--this._eventsCount==0?this._events=Object.create(null):delete F[E]),this;if(arguments.length===0){var A,p=Object.keys(F);for(M=0;M<p.length;++M)(A=p[M])!=="removeListener"&&this.removeAllListeners(A);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(typeof(P=F[E])=="function")this.removeListener(E,P);else if(P!==void 0)for(M=P.length-1;M>=0;M--)this.removeListener(E,P[M]);return this},o.prototype.listeners=function(E){return S(this,E,!0)},o.prototype.rawListeners=function(E){return S(this,E,!1)},o.listenerCount=function(E,P){return typeof E.listenerCount=="function"?E.listenerCount(P):c.call(E,P)},o.prototype.listenerCount=c,o.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]}},function(e,t,r){var n=r(146).Buffer,i=n.isEncoding||function(c){switch((c=""+c)&&c.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function g(c){var w;switch(this.encoding=function(E){var P=function(F){if(!F)return"utf8";for(var M;;)switch(F){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return F;default:if(M)return;F=(""+F).toLowerCase(),M=!0}}(E);if(typeof P!="string"&&(n.isEncoding===i||!i(E)))throw new Error("Unknown encoding: "+E);return P||E}(c),this.encoding){case"utf16le":this.text=l,this.end=u,w=4;break;case"utf8":this.fillLast=o,w=4;break;case"base64":this.text=m,this.end=R,w=3;break;default:return this.write=y,void(this.end=S)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(w)}function s(c){return c<=127?0:c>>5==6?2:c>>4==14?3:c>>3==30?4:c>>6==2?-1:-2}function o(c){var w=this.lastTotal-this.lastNeed,E=function(P,F,M){if((192&F[0])!=128)return P.lastNeed=0,"\uFFFD";if(P.lastNeed>1&&F.length>1){if((192&F[1])!=128)return P.lastNeed=1,"\uFFFD";if(P.lastNeed>2&&F.length>2&&(192&F[2])!=128)return P.lastNeed=2,"\uFFFD"}}(this,c);return E!==void 0?E:this.lastNeed<=c.length?(c.copy(this.lastChar,w,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(c.copy(this.lastChar,w,0,c.length),void(this.lastNeed-=c.length))}function l(c,w){if((c.length-w)%2==0){var E=c.toString("utf16le",w);if(E){var P=E.charCodeAt(E.length-1);if(P>=55296&&P<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=c[c.length-2],this.lastChar[1]=c[c.length-1],E.slice(0,-1)}return E}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=c[c.length-1],c.toString("utf16le",w,c.length-1)}function u(c){var w=c&&c.length?this.write(c):"";if(this.lastNeed){var E=this.lastTotal-this.lastNeed;return w+this.lastChar.toString("utf16le",0,E)}return w}function m(c,w){var E=(c.length-w)%3;return E===0?c.toString("base64",w):(this.lastNeed=3-E,this.lastTotal=3,E===1?this.lastChar[0]=c[c.length-1]:(this.lastChar[0]=c[c.length-2],this.lastChar[1]=c[c.length-1]),c.toString("base64",w,c.length-E))}function R(c){var w=c&&c.length?this.write(c):"";return this.lastNeed?w+this.lastChar.toString("base64",0,3-this.lastNeed):w}function y(c){return c.toString(this.encoding)}function S(c){return c&&c.length?this.write(c):""}t.StringDecoder=g,g.prototype.write=function(c){if(c.length===0)return"";var w,E;if(this.lastNeed){if((w=this.fillLast(c))===void 0)return"";E=this.lastNeed,this.lastNeed=0}else E=0;return E<c.length?w?w+this.text(c,E):this.text(c,E):w||""},g.prototype.end=function(c){var w=c&&c.length?this.write(c):"";return this.lastNeed?w+"\uFFFD":w},g.prototype.text=function(c,w){var E=function(F,M,A){var p=M.length-1;if(p<A)return 0;var N=s(M[p]);return N>=0?(N>0&&(F.lastNeed=N-1),N):--p<A||N===-2?0:(N=s(M[p]))>=0?(N>0&&(F.lastNeed=N-2),N):--p<A||N===-2?0:(N=s(M[p]))>=0?(N>0&&(N===2?N=0:F.lastNeed=N-3),N):0}(this,c,w);if(!this.lastNeed)return c.toString("utf8",w);this.lastTotal=E;var P=c.length-(E-this.lastNeed);return c.copy(this.lastChar,0,P),c.toString("utf8",w,P)},g.prototype.fillLast=function(c){if(this.lastNeed<=c.length)return c.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);c.copy(this.lastChar,this.lastTotal-this.lastNeed,0,c.length),this.lastNeed-=c.length}},function(e,t,r){var n=r(13),i=Object.keys||function(c){var w=[];for(var E in c)w.push(E);return w};e.exports=R;var g=r(14);g.inherits=r(6);var s=r(67),o=r(44);g.inherits(R,s);for(var l=i(o.prototype),u=0;u<l.length;u++){var m=l[u];R.prototype[m]||(R.prototype[m]=o.prototype[m])}function R(c){if(!(this instanceof R))return new R(c);s.call(this,c),o.call(this,c),c&&c.readable===!1&&(this.readable=!1),c&&c.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,c&&c.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",y)}function y(){this.allowHalfOpen||this._writableState.ended||n.nextTick(S,this)}function S(c){c.end()}Object.defineProperty(R.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(R.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._writableState!==void 0&&this._readableState.destroyed&&this._writableState.destroyed},set:function(c){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=c,this._writableState.destroyed=c)}}),R.prototype._destroy=function(c,w){this.push(null),this.end(),n.nextTick(w,c)}},function(e,t,r){e.exports=function(n,i){i||(i={}),typeof i=="function"&&(i={cmp:i});var g,s=typeof i.cycles=="boolean"&&i.cycles,o=i.cmp&&(g=i.cmp,function(u){return function(m,R){var y={key:m,value:u[m]},S={key:R,value:u[R]};return g(y,S)}}),l=[];return function u(m){if(m&&m.toJSON&&typeof m.toJSON=="function"&&(m=m.toJSON()),m!==void 0){if(typeof m=="number")return isFinite(m)?""+m:"null";if(typeof m!="object")return JSON.stringify(m);var R,y;if(Array.isArray(m)){for(y="[",R=0;R<m.length;R++)R&&(y+=","),y+=u(m[R])||"null";return y+"]"}if(m===null)return"null";if(l.indexOf(m)!==-1){if(s)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var S=l.push(m)-1,c=Object.keys(m).sort(o&&o(m));for(y="",R=0;R<c.length;R++){var w=c[R],E=u(m[w]);E&&(y&&(y+=","),y+=JSON.stringify(w)+":"+E)}return l.splice(S,1),"{"+y+"}"}}(n)}},function(e,t,r){(function(n){function i(I){var H=0;return function(){return H<I.length?{done:!1,value:I[H++]}:{done:!0}}}var g=typeof Object.defineProperties=="function"?Object.defineProperty:function(I,H,X){I!=Array.prototype&&I!=Object.prototype&&(I[H]=X.value)},s=function(I){I=[typeof window=="object"&&window,typeof self=="object"&&self,typeof n=="object"&&n,I];for(var H=0;H<I.length;++H){var X=I[H];if(X&&X.Math==Math)return X}throw Error("Cannot find global object")}(this);function o(I,H){if(H){var X=s;I=I.split(".");for(var ne=0;ne<I.length-1;ne++){var le=I[ne];le in X||(X[le]={}),X=X[le]}(H=H(ne=X[I=I[I.length-1]]))!=ne&&H!=null&&g(X,I,{configurable:!0,writable:!0,value:H})}}function l(I){var H=typeof Symbol!="undefined"&&Symbol.iterator&&I[Symbol.iterator];return H?H.call(I):{next:i(I)}}o("Object.is",function(I){return I||function(H,X){return H===X?H!==0||1/H==1/X:H!=H&&X!=X}}),o("Array.prototype.includes",function(I){return I||function(H,X){var ne=this;ne instanceof String&&(ne=String(ne));var le=ne.length;for(0>(X=X||0)&&(X=Math.max(X+le,0));X<le;X++){var pe=ne[X];if(pe===H||Object.is(pe,H))return!0}return!1}}),o("Promise",function(I){function H(ie){this.b=0,this.c=void 0,this.a=[];var ge=this.f();try{ie(ge.resolve,ge.reject)}catch(be){ge.reject(be)}}function X(){this.a=null}function ne(ie){return ie instanceof H?ie:new H(function(ge){ge(ie)})}if(I)return I;X.prototype.b=function(ie){if(this.a==null){this.a=[];var ge=this;this.c(function(){ge.g()})}this.a.push(ie)};var le=s.setTimeout;X.prototype.c=function(ie){le(ie,0)},X.prototype.g=function(){for(;this.a&&this.a.length;){var ie=this.a;this.a=[];for(var ge=0;ge<ie.length;++ge){var be=ie[ge];ie[ge]=null;try{be()}catch(ye){this.f(ye)}}}this.a=null},X.prototype.f=function(ie){this.c(function(){throw ie})},H.prototype.f=function(){function ie(ye){return function(ve){be||(be=!0,ye.call(ge,ve))}}var ge=this,be=!1;return{resolve:ie(this.m),reject:ie(this.g)}},H.prototype.m=function(ie){if(ie===this)this.g(new TypeError("A Promise cannot resolve to itself"));else if(ie instanceof H)this.o(ie);else{e:switch(typeof ie){case"object":var ge=ie!=null;break e;case"function":ge=!0;break e;default:ge=!1}ge?this.l(ie):this.h(ie)}},H.prototype.l=function(ie){var ge=void 0;try{ge=ie.then}catch(be){return void this.g(be)}typeof ge=="function"?this.u(ge,ie):this.h(ie)},H.prototype.g=function(ie){this.i(2,ie)},H.prototype.h=function(ie){this.i(1,ie)},H.prototype.i=function(ie,ge){if(this.b!=0)throw Error("Cannot settle("+ie+", "+ge+"): Promise already settled in state"+this.b);this.b=ie,this.c=ge,this.j()},H.prototype.j=function(){if(this.a!=null){for(var ie=0;ie<this.a.length;++ie)pe.b(this.a[ie]);this.a=null}};var pe=new X;return H.prototype.o=function(ie){var ge=this.f();ie.w(ge.resolve,ge.reject)},H.prototype.u=function(ie,ge){var be=this.f();try{ie.call(ge,be.resolve,be.reject)}catch(ye){be.reject(ye)}},H.prototype.then=function(ie,ge){function be(Ee,Ie){return typeof Ee=="function"?function(je){try{ye(Ee(je))}catch(Ce){ve(Ce)}}:Ie}var ye,ve,Re=new H(function(Ee,Ie){ye=Ee,ve=Ie});return this.w(be(ie,ye),be(ge,ve)),Re},H.prototype.catch=function(ie){return this.then(void 0,ie)},H.prototype.w=function(ie,ge){function be(){switch(ye.b){case 1:ie(ye.c);break;case 2:ge(ye.c);break;default:throw Error("Unexpected state: "+ye.b)}}var ye=this;this.a==null?pe.b(be):this.a.push(be)},H.resolve=ne,H.reject=function(ie){return new H(function(ge,be){be(ie)})},H.race=function(ie){return new H(function(ge,be){for(var ye=l(ie),ve=ye.next();!ve.done;ve=ye.next())ne(ve.value).w(ge,be)})},H.all=function(ie){var ge=l(ie),be=ge.next();return be.done?ne([]):new H(function(ye,ve){function Re(je){return function(Ce){Ee[je]=Ce,--Ie==0&&ye(Ee)}}var Ee=[],Ie=0;do Ee.push(void 0),Ie++,ne(be.value).w(Re(Ee.length-1),ve),be=ge.next();while(!be.done)})},H});var u=u||{},m=this||self;function R(I,H){I=I.split("."),H=H||m;for(var X=0;X<I.length;X++)if((H=H[I[X]])==null)return null;return H}function y(){}function S(I){var H=typeof I;if(H=="object"){if(!I)return"null";if(I instanceof Array)return"array";if(I instanceof Object)return H;var X=Object.prototype.toString.call(I);if(X=="[object Window]")return"object";if(X=="[object Array]"||typeof I.length=="number"&&I.splice!==void 0&&I.propertyIsEnumerable!==void 0&&!I.propertyIsEnumerable("splice"))return"array";if(X=="[object Function]"||I.call!==void 0&&I.propertyIsEnumerable!==void 0&&!I.propertyIsEnumerable("call"))return"function"}else if(H=="function"&&I.call===void 0)return"object";return H}function c(I){var H=typeof I;return H=="object"&&I!=null||H=="function"}function w(I,H,X){return I.call.apply(I.bind,arguments)}function E(I,H,X){if(!I)throw Error();if(2<arguments.length){var ne=Array.prototype.slice.call(arguments,2);return function(){var le=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(le,ne),I.apply(H,le)}}return function(){return I.apply(H,arguments)}}function P(I,H,X){return(P=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?w:E).apply(null,arguments)}function F(I,H){function X(){}X.prototype=H.prototype,I.S=H.prototype,I.prototype=new X,I.prototype.constructor=I}function M(){this.a={}}function A(I,H,X,ne){this.f=I,this.c=H,this.b=X,this.a=ne}function p(I,H,X,ne){X=X===void 0?{}:X,this.c=I,this.a=X,this.b=H,this.f=ne===void 0?null:ne}function N(I,H,X,ne,le,pe){this.name=I,this.a=le,this.b=pe}function $(I,H,X){X=X===void 0?{}:X;var ne=ne===void 0?new M:ne;return new A(H,I,X,ne)}function q(I,H,X,ne){return ne instanceof N?ne:new N(I,X,ne.b||H.constructor,ne.f,ne.a,ne.c)}function h(I){this.a=I}function d(I){switch(I){case 0:return"No Error";case 1:return"Access denied to content document";case 2:return"File not found";case 3:return"Firefox silently errored";case 4:return"Application custom error";case 5:return"An exception occurred";case 6:return"Http response at 400 or 500 level";case 7:return"Request was aborted";case 8:return"Request timed out";case 9:return"The resource is not available offline";default:return"Unrecognized error code"}}function O(I){if(Error.captureStackTrace)Error.captureStackTrace(this,O);else{var H=Error().stack;H&&(this.stack=H)}I&&(this.message=String(I))}function _(I,H){for(var X="",ne=(I=I.split("%s")).length-1,le=0;le<ne;le++)X+=I[le]+(le<H.length?H[le]:"%s");O.call(this,X+I[ne])}function x(){this.j=null,this.i=[],this.l=0,this.b=D,this.f=this.a=this.h=0,this.c=null,this.g=0}M.prototype.get=function(I){return this.a[I]},M.prototype.f=function(){return Object.keys(this.a)},A.prototype.getRequestMessage=function(){return this.f},A.prototype.getMethodDescriptor=function(){return this.c},A.prototype.getMetadata=function(){return this.b},A.prototype.getCallOptions=function(){return this.a},p.prototype.getResponseMessage=function(){return this.c},p.prototype.getMetadata=function(){return this.a},p.prototype.getMethodDescriptor=function(){return this.b},p.prototype.getStatus=function(){return this.f},h.prototype.on=function(I,H){return I=="data"||I=="error"?this:this.a.on(I,H)},h.prototype.removeListener=function(I,H){return this.a.removeListener(I,H)},h.prototype.cancel=function(){this.a.cancel()},F(O,Error),O.prototype.name="CustomError",F(_,O),_.prototype.name="AssertionError";var D=0,L=1,T=2,C=3,U=0,b=128;function f(I,H,X,ne){throw I.b=C,I.j="The stream is broken @"+I.l+"/"+X+". Error: "+ne+`. With input:
|
|
16
|
+
`+H,Error(I.j)}var B=Array.prototype.indexOf?function(I,H){return Array.prototype.indexOf.call(I,H,void 0)}:function(I,H){if(typeof I=="string")return typeof H!="string"||H.length!=1?-1:I.indexOf(H,0);for(var X=0;X<I.length;X++)if(X in I&&I[X]===H)return X;return-1},k,Y=String.prototype.trim?function(I){return I.trim()}:function(I){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(I)[1]};function K(I,H){return I.indexOf(H)!=-1}function Q(I,H){return I<H?-1:I>H?1:0}e:{var G=m.navigator;if(G){var V=G.userAgent;if(V){k=V;break e}}k=""}var v="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function j(I){var H=1;I=I.split(":");for(var X=[];0<H&&I.length;)X.push(I.shift()),H--;return I.length&&X.push(I.join(":")),X}function W(I){return W[" "](I),I}W[" "]=y;var ee,J,re=K(k,"Opera"),se=K(k,"Trident")||K(k,"MSIE"),oe=K(k,"Edge"),z=K(k,"Gecko")&&!(K(k.toLowerCase(),"webkit")&&!K(k,"Edge"))&&!(K(k,"Trident")||K(k,"MSIE"))&&!K(k,"Edge"),Z=K(k.toLowerCase(),"webkit")&&!K(k,"Edge");function te(){var I=m.document;return I?I.documentMode:void 0}e:{var ce="",ae=(J=k,z?/rv:([^\);]+)(\)|;)/.exec(J):oe?/Edge\/([\d\.]+)/.exec(J):se?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(J):Z?/WebKit\/(\S+)/.exec(J):re?/(?:Version)[ \/]?(\S+)/.exec(J):void 0);if(ae&&(ce=ae?ae[1]:""),se){var he=te();if(he!=null&&he>parseFloat(ce)){ee=String(he);break e}}ee=ce}var de,me={};function fe(I){return function(H,X){var ne=me;return Object.prototype.hasOwnProperty.call(ne,H)?ne[H]:ne[H]=X(H)}(I,function(){for(var H=0,X=Y(String(ee)).split("."),ne=Y(String(I)).split("."),le=Math.max(X.length,ne.length),pe=0;H==0&&pe<le;pe++){var ie=X[pe]||"",ge=ne[pe]||"";do{if(ie=/(\d*)(\D*)(.*)/.exec(ie)||["","","",""],ge=/(\d*)(\D*)(.*)/.exec(ge)||["","","",""],ie[0].length==0&&ge[0].length==0)break;H=Q(ie[1].length==0?0:parseInt(ie[1],10),ge[1].length==0?0:parseInt(ge[1],10))||Q(ie[2].length==0,ge[2].length==0)||Q(ie[2],ge[2]),ie=ie[3],ge=ge[3]}while(H==0)}return 0<=H})}if(m.document&&se){var ue=te();de=ue||parseInt(ee,10)||void 0}else de=void 0;var _e=de;function Se(){this.F=this.F}Se.prototype.F=!1;var Oe,Pe=Object.freeze||function(I){return I};(Oe=!se)||(Oe=9<=Number(_e));var Fe=Oe,De=se&&!fe("9"),Le=function(){if(!m.addEventListener||!Object.defineProperty)return!1;var I=!1,H=Object.defineProperty({},"passive",{get:function(){I=!0}});try{m.addEventListener("test",y,H),m.removeEventListener("test",y,H)}catch{}return I}();function xe(I,H){this.type=I,this.a=this.target=H,this.defaultPrevented=!1}function Ne(I,H){if(xe.call(this,I?I.type:""),this.relatedTarget=this.a=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.pointerId=0,this.pointerType="",this.c=null,I){var X=this.type=I.type,ne=I.changedTouches&&I.changedTouches.length?I.changedTouches[0]:null;if(this.target=I.target||I.srcElement,this.a=H,H=I.relatedTarget){if(z){e:{try{W(H.nodeName);var le=!0;break e}catch{}le=!1}le||(H=null)}}else X=="mouseover"?H=I.fromElement:X=="mouseout"&&(H=I.toElement);this.relatedTarget=H,ne?(this.clientX=ne.clientX!==void 0?ne.clientX:ne.pageX,this.clientY=ne.clientY!==void 0?ne.clientY:ne.pageY,this.screenX=ne.screenX||0,this.screenY=ne.screenY||0):(this.clientX=I.clientX!==void 0?I.clientX:I.pageX,this.clientY=I.clientY!==void 0?I.clientY:I.pageY,this.screenX=I.screenX||0,this.screenY=I.screenY||0),this.button=I.button,this.key=I.key||"",this.ctrlKey=I.ctrlKey,this.altKey=I.altKey,this.shiftKey=I.shiftKey,this.metaKey=I.metaKey,this.pointerId=I.pointerId||0,this.pointerType=typeof I.pointerType=="string"?I.pointerType:Ue[I.pointerType]||"",this.c=I,I.defaultPrevented&&this.b()}}xe.prototype.b=function(){this.defaultPrevented=!0},F(Ne,xe);var Ue=Pe({2:"touch",3:"pen",4:"mouse"});Ne.prototype.b=function(){Ne.S.b.call(this);var I=this.c;if(I.preventDefault)I.preventDefault();else if(I.returnValue=!1,De)try{(I.ctrlKey||112<=I.keyCode&&123>=I.keyCode)&&(I.keyCode=-1)}catch{}};var We="closure_listenable_"+(1e6*Math.random()|0),ze=0;function $t(I,H,X,ne,le){this.listener=I,this.proxy=null,this.src=H,this.type=X,this.capture=!!ne,this.A=le,this.key=++ze,this.s=this.v=!1}function lt(I){I.s=!0,I.listener=null,I.proxy=null,I.src=null,I.A=null}function rt(I){this.src=I,this.a={},this.b=0}function ut(I,H){var X=H.type;if(X in I.a){var ne,le=I.a[X],pe=B(le,H);(ne=0<=pe)&&Array.prototype.splice.call(le,pe,1),ne&&(lt(H),I.a[X].length==0&&(delete I.a[X],I.b--))}}function gt(I,H,X,ne){for(var le=0;le<I.length;++le){var pe=I[le];if(!pe.s&&pe.listener==H&&pe.capture==!!X&&pe.A==ne)return le}return-1}rt.prototype.add=function(I,H,X,ne,le){var pe=I.toString();(I=this.a[pe])||(I=this.a[pe]=[],this.b++);var ie=gt(I,H,ne,le);return-1<ie?(H=I[ie],X||(H.v=!1)):((H=new $t(H,this.src,pe,!!ne,le)).v=X,I.push(H)),H};var ct="closure_lm_"+(1e6*Math.random()|0),ft={};function nt(I,H,X,ne,le){if(ne&&ne.once)(function ie(ge,be,ye,ve,Re){if(Array.isArray(be))for(var Ee=0;Ee<be.length;Ee++)ie(ge,be[Ee],ye,ve,Re);else ye=ht(ye),ge&&ge[We]?ge.f.add(String(be),ye,!0,c(ve)?!!ve.capture:!!ve,Re):Tt(ge,be,ye,!0,ve,Re)})(I,H,X,ne,le);else if(Array.isArray(H))for(var pe=0;pe<H.length;pe++)nt(I,H[pe],X,ne,le);else X=ht(X),I&&I[We]?I.f.add(String(H),X,!1,c(ne)?!!ne.capture:!!ne,le):Tt(I,H,X,!1,ne,le)}function Tt(I,H,X,ne,le,pe){if(!H)throw Error("Invalid event type");var ie=c(le)?!!le.capture:!!le,ge=ot(I);if(ge||(I[ct]=ge=new rt(I)),!(X=ge.add(H,X,ne,ie,pe)).proxy)if(ne=function(){var be=Kt,ye=Fe?function(ve){return be.call(ye.src,ye.listener,ve)}:function(ve){if(!(ve=be.call(ye.src,ye.listener,ve)))return ve};return ye}(),X.proxy=ne,ne.src=I,ne.listener=X,I.addEventListener)Le||(le=ie),le===void 0&&(le=!1),I.addEventListener(H.toString(),ne,le);else if(I.attachEvent)I.attachEvent(At(H.toString()),ne);else{if(!I.addListener||!I.removeListener)throw Error("addEventListener and attachEvent are unavailable.");I.addListener(ne)}}function Rt(I){if(typeof I!="number"&&I&&!I.s){var H=I.src;if(H&&H[We])ut(H.f,I);else{var X=I.type,ne=I.proxy;H.removeEventListener?H.removeEventListener(X,ne,I.capture):H.detachEvent?H.detachEvent(At(X),ne):H.addListener&&H.removeListener&&H.removeListener(ne),(X=ot(H))?(ut(X,I),X.b==0&&(X.src=null,H[ct]=null)):lt(I)}}}function At(I){return I in ft?ft[I]:ft[I]="on"+I}function Ot(I,H,X,ne){var le=!0;if((I=ot(I))&&(H=I.a[H.toString()]))for(H=H.concat(),I=0;I<H.length;I++){var pe=H[I];pe&&pe.capture==X&&!pe.s&&(pe=jt(pe,ne),le=le&&pe!==!1)}return le}function jt(I,H){var X=I.listener,ne=I.A||I.src;return I.v&&Rt(I),X.call(ne,H)}function Kt(I,H){if(I.s)return!0;if(!Fe){var X=H||R("window.event");H=new Ne(X,this);var ne=!0;if(!(0>X.keyCode||X.returnValue!=null)){e:{var le=!1;if(X.keyCode==0)try{X.keyCode=-1;break e}catch{le=!0}(le||X.returnValue==null)&&(X.returnValue=!0)}for(X=[],le=H.a;le;le=le.parentNode)X.push(le);for(I=I.type,le=X.length-1;0<=le;le--){H.a=X[le];var pe=Ot(X[le],I,!0,H);ne=ne&&pe}for(le=0;le<X.length;le++)H.a=X[le],pe=Ot(X[le],I,!1,H),ne=ne&&pe}return ne}return jt(I,new Ne(H,this))}function ot(I){return(I=I[ct])instanceof rt?I:null}var pt="__closure_events_fn_"+(1e9*Math.random()>>>0);function ht(I){return S(I)=="function"?I:(I[pt]||(I[pt]=function(H){return I.handleEvent(H)}),I[pt])}function Ke(){Se.call(this),this.f=new rt(this),this.N=this}function Ge(I,H){I=I.N;var X=H.type||H;if(typeof H=="string")H=new xe(H,I);else if(H instanceof xe)H.target=H.target||I;else{var ne=H;(function(le,pe){for(var ie,ge,be=1;be<arguments.length;be++){for(ie in ge=arguments[be])le[ie]=ge[ie];for(var ye=0;ye<v.length;ye++)ie=v[ye],Object.prototype.hasOwnProperty.call(ge,ie)&&(le[ie]=ge[ie])}})(H=new xe(X,I),ne)}It(I=H.a=I,X,!0,H),It(I,X,!1,H)}function It(I,H,X,ne){if(H=I.f.a[String(H)]){H=H.concat();for(var le=!0,pe=0;pe<H.length;++pe){var ie=H[pe];if(ie&&!ie.s&&ie.capture==X){var ge=ie.listener,be=ie.A||ie.src;ie.v&&ut(I.f,ie),le=ge.call(be,ne)!==!1&&le}}}}function Ct(I,H,X){if(S(I)=="function")X&&(I=P(I,X));else{if(!I||typeof I.handleEvent!="function")throw Error("Invalid listener argument");I=P(I.handleEvent,I)}return 2147483647<Number(H)?-1:m.setTimeout(I,H||0)}function dt(I,H,X){this.reset(I,H,X,void 0,void 0)}F(Ke,Se),Ke.prototype[We]=!0,Ke.prototype.addEventListener=function(I,H,X,ne){nt(this,I,H,X,ne)},Ke.prototype.removeEventListener=function(I,H,X,ne){(function le(pe,ie,ge,be,ye){if(Array.isArray(ie))for(var ve=0;ve<ie.length;ve++)le(pe,ie[ve],ge,be,ye);else be=c(be)?!!be.capture:!!be,ge=ht(ge),pe&&pe[We]?(pe=pe.f,(ie=String(ie).toString())in pe.a&&-1<(ge=gt(ve=pe.a[ie],ge,be,ye))&&(lt(ve[ge]),Array.prototype.splice.call(ve,ge,1),ve.length==0&&(delete pe.a[ie],pe.b--))):pe&&(pe=ot(pe))&&(ie=pe.a[ie.toString()],pe=-1,ie&&(pe=gt(ie,ge,be,ye)),(ge=-1<pe?ie[pe]:null)&&Rt(ge))})(this,I,H,X,ne)},dt.prototype.a=null;function mt(I){this.f=I,this.b=this.c=this.a=null}function it(I,H){this.name=I,this.value=H}dt.prototype.reset=function(I,H,X,ne,le){delete this.a},it.prototype.toString=function(){return this.name};var Mt=new it("SEVERE",1e3),Xt=new it("CONFIG",700),Jt=new it("FINE",500);function Pt(I){return I.c?I.c:I.a?Pt(I.a):(function(H,X){throw new _("Failure"+(H?": "+H:""),Array.prototype.slice.call(arguments,1))}("Root logger has no level set."),null)}mt.prototype.log=function(I,H,X){if(I.value>=Pt(this).value)for(S(H)=="function"&&(H=H()),I=new dt(I,String(H),this.f),X&&(I.a=X),X=this;X;)X=X.a};var yt,bt={},at=null;function ke(I,H){I&&I.log(Jt,H,void 0)}function Nt(){}function xt(I){var H;return(H=I.a)||(H={},Bt(I)&&(H[0]=!0,H[1]=!0),H=I.a=H),H}function Lt(){}function Ut(I){return(I=Bt(I))?new ActiveXObject(I):new XMLHttpRequest}function Bt(I){if(!I.b&&typeof XMLHttpRequest=="undefined"&&typeof ActiveXObject!="undefined"){for(var H=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],X=0;X<H.length;X++){var ne=H[X];try{return new ActiveXObject(ne),I.b=ne}catch{}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed")}return I.b}function Ze(I,H){this.b={},this.a=[],this.c=0;var X=arguments.length;if(1<X){if(X%2)throw Error("Uneven number of arguments");for(var ne=0;ne<X;ne+=2)this.set(arguments[ne],arguments[ne+1])}else I&&Dt(this,I)}function vt(I){if(I.c!=I.a.length){for(var H=0,X=0;H<I.a.length;){var ne=I.a[H];Xe(I.b,ne)&&(I.a[X++]=ne),H++}I.a.length=X}if(I.c!=I.a.length){var le={};for(X=H=0;H<I.a.length;)Xe(le,ne=I.a[H])||(I.a[X++]=ne,le[ne]=1),H++;I.a.length=X}}function Dt(I,H){if(H instanceof Ze)for(var X=H.f(),ne=0;ne<X.length;ne++)I.set(X[ne],H.get(X[ne]));else for(X in H)I.set(X,H[X])}function Xe(I,H){return Object.prototype.hasOwnProperty.call(I,H)}Nt.prototype.a=null,F(Lt,Nt),yt=new Lt,Ze.prototype.f=function(){return vt(this),this.a.concat()},Ze.prototype.get=function(I,H){return Xe(this.b,I)?this.b[I]:H},Ze.prototype.set=function(I,H){Xe(this.b,I)||(this.c++,this.a.push(I)),this.b[I]=H},Ze.prototype.forEach=function(I,H){for(var X=this.f(),ne=0;ne<X.length;ne++){var le=X[ne],pe=this.get(le);I.call(H,pe,le,this)}};var Qt=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^\\/?#]*)@)?([^\\/?#]*?)(?::([0-9]+))?(?=[\\/?#]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;function Ye(I){Ke.call(this),this.headers=new Ze,this.D=I||null,this.c=!1,this.C=this.a=null,this.J=this.o="",this.g=0,this.i="",this.h=this.I=this.m=this.G=!1,this.l=0,this.u=null,this.j=kt,this.B=this.H=!1}F(Ye,Ke);var kt="",er=Ye.prototype,tr=function I(H){var X;if(at||(at=new mt(""),bt[""]=at,at.c=Xt),!(X=bt[H])){X=new mt(H);var ne=H.lastIndexOf("."),le=H.substr(ne+1);(ne=I(H.substr(0,ne))).b||(ne.b={}),ne.b[le]=X,X.a=ne,bt[H]=X}return X}("goog.net.XhrIo");er.b=tr;var rr=/^https?$/i,nr=["POST","PUT"];function or(I,H,X){if(I.a)throw Error("[goog.net.XhrIo] Object is active with another request="+I.o+"; newUri="+H);I.o=H,I.i="",I.g=0,I.J="POST",I.G=!1,I.c=!0,I.a=I.D?Ut(I.D):Ut(yt),I.C=I.D?xt(I.D):xt(yt),I.a.onreadystatechange=P(I.K,I);try{ke(I.b,qe(I,"Opening Xhr")),I.I=!0,I.a.open("POST",String(H),!0),I.I=!1}catch(pe){return ke(I.b,qe(I,"Error opening Xhr: "+pe.message)),void Ft(I,pe)}H=X||"";var ne=function(pe){e:{for(var ie=ir,ge=pe.length,be=typeof pe=="string"?pe.split(""):pe,ye=0;ye<ge;ye++)if(ye in be&&ie.call(void 0,be[ye],ye,pe)){ie=ye;break e}ie=-1}return 0>ie?null:typeof pe=="string"?pe.charAt(ie):pe[ie]}((X=new Ze(I.headers)).f()),le=m.FormData&&H instanceof m.FormData;!(0<=B(nr,"POST"))||ne||le||X.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8"),X.forEach(function(pe,ie){this.a.setRequestHeader(ie,pe)},I),I.j&&(I.a.responseType=I.j),"withCredentials"in I.a&&I.a.withCredentials!==I.H&&(I.a.withCredentials=I.H);try{Ht(I),0<I.l&&(I.B=function(pe){return se&&fe(9)&&typeof pe.timeout=="number"&&pe.ontimeout!==void 0}(I.a),ke(I.b,qe(I,"Will abort after "+I.l+"ms if incomplete, xhr2 "+I.B)),I.B?(I.a.timeout=I.l,I.a.ontimeout=P(I.L,I)):I.u=Ct(I.L,I.l,I)),ke(I.b,qe(I,"Sending request")),I.m=!0,I.a.send(H),I.m=!1}catch(pe){ke(I.b,qe(I,"Send error: "+pe.message)),Ft(I,pe)}}function ir(I){return I.toLowerCase()=="content-type"}function Ft(I,H){I.c=!1,I.a&&(I.h=!0,I.a.abort(),I.h=!1),I.i=H,I.g=5,Wt(I),_t(I)}function Wt(I){I.G||(I.G=!0,Ge(I,"complete"),Ge(I,"error"))}function Vt(I){if(I.c&&u!==void 0){if(I.C[1]&&$e(I)==4&&I.getStatus()==2)ke(I.b,qe(I,"Local request error detected and ignored"));else if(I.m&&$e(I)==4)Ct(I.K,0,I);else if(Ge(I,"readystatechange"),$e(I)==4){ke(I.b,qe(I,"Request complete")),I.c=!1;try{var H,X=I.getStatus();e:switch(X){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var ne=!0;break e;default:ne=!1}if(!(H=ne)){var le;if(le=X===0){var pe=String(I.o).match(Qt)[1]||null;if(!pe&&m.self&&m.self.location){var ie=m.self.location.protocol;pe=ie.substr(0,ie.length-1)}le=!rr.test(pe?pe.toLowerCase():"")}H=le}if(H)Ge(I,"complete"),Ge(I,"success");else{I.g=6;try{var ge=2<$e(I)?I.a.statusText:""}catch(be){ke(I.b,"Can not get status: "+be.message),ge=""}I.i=ge+" ["+I.getStatus()+"]",Wt(I)}}finally{_t(I)}}}}function _t(I){if(I.a){Ht(I);var H=I.a,X=I.C[0]?y:null;I.a=null,I.C=null,Ge(I,"ready");try{H.onreadystatechange=X}catch(ne){(I=I.b)&&I.log(Mt,"Problem encountered resetting onreadystatechange: "+ne.message,void 0)}}}function Ht(I){I.a&&I.B&&(I.a.ontimeout=null),I.u&&(m.clearTimeout(I.u),I.u=null)}function $e(I){return I.a?I.a.readyState:0}function zt(I,H){if(I.a&&$e(I)==4)return(I=I.a.getResponseHeader(H))===null?void 0:I}function qe(I,H){return H+" ["+I.J+" "+I.o+" "+I.getStatus()+"]"}Ye.prototype.L=function(){u!==void 0&&this.a&&(this.i="Timed out after "+this.l+"ms, aborting",this.g=8,ke(this.b,qe(this,this.i)),Ge(this,"timeout"),this.abort(8))},Ye.prototype.abort=function(I){this.a&&this.c&&(ke(this.b,qe(this,"Aborting")),this.c=!1,this.h=!0,this.a.abort(),this.h=!1,this.g=I||7,Ge(this,"complete"),Ge(this,"abort"),_t(this))},Ye.prototype.K=function(){this.F||(this.I||this.m||this.h?Vt(this):this.O())},Ye.prototype.O=function(){Vt(this)},Ye.prototype.getStatus=function(){try{return 2<$e(this)?this.a.status:-1}catch{return-1}};var Gt={},et=null;function ar(I){var H=I.length,X=3*H/4;X%3?X=Math.floor(X):K("=.",I[H-1])&&(X=K("=.",I[H-2])?X-2:X-1);var ne=new Uint8Array(X),le=0;return function(pe,ie){function ge(Ie){for(;be<pe.length;){var je=pe.charAt(be++),Ce=et[je];if(Ce!=null)return Ce;if(!/^[\s\xa0]*$/.test(je))throw Error("Unknown base64 encoding at char: "+je)}return Ie}qt();for(var be=0;;){var ye=ge(-1),ve=ge(0),Re=ge(64),Ee=ge(64);if(Ee===64&&ye===-1)break;ie(ye<<2|ve>>4),Re!=64&&(ie(ve<<4&240|Re>>2),Ee!=64&&ie(Re<<6&192|Ee))}}(I,function(pe){ne[le++]=pe}),ne.subarray(0,le)}function qt(){if(!et){et={};for(var I="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),H=["+/=","+/","-_=","-_.","-_"],X=0;5>X;X++){var ne=I.concat(H[X].split(""));Gt[X]=ne;for(var le=0;le<ne.length;le++){var pe=ne[le];et[pe]===void 0&&(et[pe]=le)}}}}var sr=["content-type","grpc-status","grpc-message"];function Ve(I){this.a=I.T,this.l=null,this.b=[],this.h=[],this.g=[],this.f=[],this.c=[],this.j=!1,this.i=0,this.m=new x;var H=this;nt(this.a,"readystatechange",function(){var X=H.a;if(X=X.a?X.a.getResponseHeader("Content-Type"):null){if((X=X.toLowerCase()).lastIndexOf("application/grpc-web-text",0)==0){X=H.a;try{var ne=X.a?X.a.responseText:""}catch(ye){ke(X.b,"Can not get responseText: "+ye.message),ne=""}if(ne=(X=ne||"").length-X.length%4,(X=X.substr(H.i,ne-H.i)).length==0)return;H.i=ne,X=ar(X)}else{if(X.lastIndexOf("application/grpc",0)!=0)return void Je(H,{code:2,message:"Unknown Content-type received.",metadata:{}});X=new Uint8Array(function(ye){try{if(!ye.a)return null;if("response"in ye.a)return ye.a.response;switch(ye.j){case kt:case"text":return ye.a.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in ye.a)return ye.a.mozResponseArrayBuffer}var ve=ye.b;return ve&&ve.log(Mt,"Response type "+ye.j+" is not supported on this browser",void 0),null}catch(Re){return ke(ye.b,"Can not get response: "+Re.message),null}}(H.a))}ne=null;try{ne=function(ye,ve){function Re(Qe){we.f++,we.a=(we.a<<8)+Qe,we.f==4&&(we.b=T,we.g=0,typeof Uint8Array!="undefined"?we.c=new Uint8Array(we.a):we.c=Array(we.a),we.a==0&&Ie())}function Ee(Qe){we.c[we.g++]=Qe,we.g==we.a&&Ie()}function Ie(){var Qe={};Qe[we.h]=we.c,we.i.push(Qe),we.b=D}var je,Ce,we=ye,He=0;for(je=ve instanceof Uint8Array||ve instanceof Array?ve:new Uint8Array(ve);He<je.length;){switch(we.b){case C:f(we,je,He,"stream already broken");break;case D:(Ce=je[He])==U||Ce==b?we.h=Ce:f(we,je,He,"invalid frame byte"),we.b=L,we.a=0,we.f=0;break;case L:Re(je[He]);break;case T:Ee(je[He]);break;default:throw Error("unexpected parser state: "+we.b)}we.l++,He++}return ye=we.i,we.i=[],0<ye.length?ye:null}(H.m,X)}catch{Je(H,{code:2,message:"Error in parsing response body",metadata:{}})}if(ne)for(X=0;X<ne.length;X++){if(U in ne[X]){var le=ne[X][U];if(le)try{var pe=H.l(le);if(pe){le=H;for(var ie=pe,ge=0;ge<le.b.length;ge++)le.b[ge](ie)}}catch{Je(H,{code:2,message:"Error in response deserializer function.",metadata:{}})}}if(b in ne[X]&&0<ne[X][b].length){for(le="",ie=0;ie<ne[X][b].length;ie++)le+=String.fromCharCode(ne[X][b][ie]);for(le=le.trim().split(`\r
|
|
17
|
+
`),ie={},ge=0;ge<le.length;ge++){var be=le[ge].indexOf(":");ie[le[ge].substring(0,be).trim()]=le[ge].substring(be+1).trim()}le=ie,ie=0,ge="","grpc-status"in le&&(ie=le["grpc-status"],delete le["grpc-status"]),"grpc-message"in le&&(ge=le["grpc-message"],delete le["grpc-message"]),Je(H,{code:Number(ie),message:ge,metadata:le})}}}}),nt(this.a,"complete",function(){var X=H.a.g,ne="",le={},pe=function(ge){var be={};ge=(ge.a&&$e(ge)==4&&ge.a.getAllResponseHeaders()||"").split(`\r
|
|
18
|
+
`);for(var ye=0;ye<ge.length;ye++)if(!/^[\s\xa0]*$/.test(ge[ye])){var ve=j(ge[ye]),Re=ve[0];if(typeof(ve=ve[1])=="string"){ve=ve.trim();var Ee=be[Re]||[];be[Re]=Ee,Ee.push(ve)}}return function(Ie,je){var Ce,we={};for(Ce in Ie)we[Ce]=je.call(void 0,Ie[Ce],Ce,Ie);return we}(be,function(Ie){return Ie.join(", ")})}(H.a);if(Object.keys(pe).forEach(function(ge){sr.includes(ge)||(le[ge]=pe[ge])}),function(ge,be){for(var ye=0;ye<ge.g.length;ye++)ge.g[ye](be)}(H,le),X!=0){switch(X){case 7:var ie=10;break;case 8:ie=4;break;case 6:ie=function(ge){switch(ge){case 200:return 0;case 400:return 3;case 401:return 16;case 403:return 7;case 404:return 5;case 409:return 10;case 412:return 9;case 429:return 8;case 499:return 1;case 500:return 2;case 501:return 12;case 503:return 14;case 504:return 4;default:return 2}}(H.a.getStatus());break;default:ie=14}ie==10&&H.j||Je(H,{code:ie,message:d(X),metadata:{}})}else X=!1,"grpc-status"in pe&&(ie=zt(H.a,"grpc-status"),"grpc-message"in pe&&(ne=zt(H.a,"grpc-message")),Number(ie)!=0&&(Je(H,{code:Number(ie),message:ne,metadata:pe}),X=!0)),X||function(ge){for(var be=0;be<ge.c.length;be++)ge.c[be]()}(H)})}function tt(I,H){-1<(H=I.indexOf(H))&&I.splice(H,1)}function Je(I,H){if(H.code!=0)for(var X={code:H.code,message:decodeURIComponent(H.message||""),metadata:H.metadata},ne=0;ne<I.f.length;ne++)I.f[ne](X);for(H={code:H.code,details:decodeURIComponent(H.message||""),metadata:H.metadata},X=0;X<I.h.length;X++)I.h[X](H)}function Be(I){this.a=R("format",I)||"text",this.f=R("suppressCorsPreflight",I)||!1,this.c=R("withCredentials",I)||!1,this.b=R("streamInterceptors",I)||[],this.g=R("unaryInterceptors",I)||[]}function St(I,H,X){var ne=H.getMethodDescriptor(),le=X+ne.name;(X=new Ye).H=I.c;var pe=new Ve({T:X});if(pe.l=ne.b,Dt(X.headers,H.getMetadata()),I.a=="text"?(X.headers.set("Content-Type","application/grpc-web-text"),X.headers.set("Accept","application/grpc-web-text")):X.headers.set("Content-Type","application/grpc-web+proto"),X.headers.set("X-User-Agent","grpc-web-javascript/0.1"),X.headers.set("X-Grpc-Web","1"),Xe(X.headers.b,"deadline")){var ie=X.headers.get("deadline");ie=Math.round(ie-new Date().getTime());var ge=X.headers;Xe(ge.b,"deadline")&&(delete ge.b.deadline,ge.c--,ge.a.length>2*ge.c&&vt(ge)),1/0===ie&&(ie=0),0<ie&&X.headers.set("grpc-timeout",ie+"m")}if(I.f){vt(ge=X.headers),ie={};for(var be=0;be<ge.a.length;be++){var ye=ge.a[be];ie[ye]=ge.b[ye]}(ge=X.headers).b={},ge.a.length=0,ge.c=0;e:{for(ve in ie){var ve=!1;break e}ve=!0}ve||(ie=function(Ie){var je="";return function(Ce,we){for(var He in Ce)we.call(void 0,Ce[He],He,Ce)}(Ie,function(Ce,we){je+=we,je+=":",je+=Ce,je+=`\r
|
|
19
|
+
`}),je}(ie),typeof le=="string"?(ve=encodeURIComponent("$httpHeaders"),(ve+=ie=ie!=null?"="+encodeURIComponent(String(ie)):"")&&(0>(ie=le.indexOf("#"))&&(ie=le.length),0>(ge=le.indexOf("?"))||ge>ie?(ge=ie,be=""):be=le.substring(ge+1,ie),ie=(le=[le.substr(0,ge),be,le.substr(ie)])[1],le[1]=ve?ie?ie+"&"+ve:ve:ie,le=le[0]+(le[1]?"?"+le[1]:"")+le[2])):le.a("$httpHeaders",ie))}for(ne=(H=(0,ne.a)(H.getRequestMessage())).length,ve=[0,0,0,0],ie=new Uint8Array(5+ne),ge=3;0<=ge;ge--)ve[ge]=ne%256,ne>>>=8;if(ie.set(new Uint8Array(ve),1),ie.set(H,5),H=ie,I.a=="text"){var Re;for(I=H,Re===void 0&&(Re=0),qt(),Re=Gt[Re],H=[],ne=0;ne<I.length;ne+=3){ye=I[ne];var Ee=(ve=ne+1<I.length)?I[ne+1]:0;ge=ye>>2,ye=(3&ye)<<4|Ee>>4,Ee=(15&Ee)<<2|(be=(ie=ne+2<I.length)?I[ne+2]:0)>>6,be&=63,ie||(be=64,ve||(Ee=64)),H.push(Re[ge],Re[ye],Re[Ee]||"",Re[be]||"")}H=H.join("")}else I.a=="binary"&&(X.j="arraybuffer");return or(X,le,H),pe}function Yt(I,H,X){var ne=null,le=!1;I.on("data",function(pe){ne=pe}),I.on("error",function(pe){pe.code==0||le||(le=!0,H(pe,null))}),I.on("status",function(pe){pe.code==0||le?X&&H(null,null,pe):(le=!0,H({code:pe.code,message:pe.details,metadata:pe.metadata},null))}),X&&I.on("metadata",function(pe){H(null,null,null,pe)}),I.on("end",function(){le||(ne==null?H({code:2,message:"Incomplete response"}):H(null,ne)),X&&H(null,null)})}function wt(I,H){var X=I;return H.forEach(function(ne){var le=X;X=function(pe){return ne.intercept(pe,le)}}),X}Ve.prototype.on=function(I,H){return I=="data"?this.b.push(H):I=="status"?this.h.push(H):I=="metadata"?this.g.push(H):I=="end"?this.c.push(H):I=="error"&&this.f.push(H),this},Ve.prototype.removeListener=function(I,H){return I=="data"?tt(this.b,H):I=="status"?tt(this.h,H):I=="metadata"?tt(this.g,H):I=="end"?tt(this.c,H):I=="error"&&tt(this.f,H),this},Ve.prototype.cancel=function(){this.j=!0,this.a.abort()},Ve.prototype.cancel=Ve.prototype.cancel,Ve.prototype.removeListener=Ve.prototype.removeListener,Ve.prototype.on=Ve.prototype.on,Be.prototype.P=function(I,H,X,ne,le){var pe=this;ne=q(I,H,"unary",ne);var ie=I.substr(0,I.length-ne.name.length);return Yt(I=wt(function(ge){return St(pe,ge,ie)},this.b).call(this,$(ne,H,X)),le,!1),new h(I)},Be.prototype.M=function(I,H,X,ne){var le=this;ne=q(I,H,"unary",ne);var pe=I.substr(0,I.length-ne.name.length);return wt(function(ie){return new Promise(function(ge,be){var ye,ve,Re;Yt(St(le,ie,pe),function(Ee,Ie,je,Ce){Ee?be(Ee):Ie?Re=Ie:je?ve=je:Ce?ye=Ce:(Ee=ie.getMethodDescriptor(),ge(new p(Re,Ee,Ie=(Ie=ye)===void 0?{}:Ie,ve===void 0?null:ve)))},!0)})},this.g).call(this,$(ne,H,X)).then(function(ie){return ie.getResponseMessage()})},Be.prototype.unaryCall=function(I,H,X,ne){return this.M(I,H,X,ne)},Be.prototype.R=function(I,H,X,ne){var le=this;ne=q(I,H,"server_streaming",ne);var pe=I.substr(0,I.length-ne.name.length);return wt(function(ie){return St(le,ie,pe)},this.b).call(this,$(ne,H,X))},Be.prototype.serverStreaming=Be.prototype.R,Be.prototype.unaryCall=Be.prototype.unaryCall,Be.prototype.thenableCall=Be.prototype.M,Be.prototype.rpcCall=Be.prototype.P,e.exports.AbstractClientBase={MethodInfo:function(I,H,X,ne,le){this.name=ne,this.b=le,this.f=I,this.a=H,this.c=X}},e.exports.GrpcWebClientBase=Be,e.exports.StatusCode={OK:0,CANCELLED:1,UNKNOWN:2,INVALID_ARGUMENT:3,DEADLINE_EXCEEDED:4,NOT_FOUND:5,ALREADY_EXISTS:6,PERMISSION_DENIED:7,UNAUTHENTICATED:16,RESOURCE_EXHAUSTED:8,FAILED_PRECONDITION:9,ABORTED:10,OUT_OF_RANGE:11,UNIMPLEMENTED:12,INTERNAL:13,UNAVAILABLE:14,DATA_LOSS:15},e.exports.MethodDescriptor=N,e.exports.MethodType={UNARY:"unary",SERVER_STREAMING:"server_streaming"}}).call(this,r(5))},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.isAsyncIterable=t.isAsyncGenerator=t.isAsync=void 0;var n,i=r(151),g=(n=i)&&n.__esModule?n:{default:n};function s(o){return o[Symbol.toStringTag]==="AsyncFunction"}t.default=function(o){if(typeof o!="function")throw new Error("expected a function");return s(o)?(0,g.default)(o):o},t.isAsync=s,t.isAsyncGenerator=function(o){return o[Symbol.toStringTag]==="AsyncGenerator"},t.isAsyncIterable=function(o){return typeof o[Symbol.asyncIterator]=="function"}},function(e,t,r){var n={};function i(s,o,l){l||(l=Error);var u=function(m){var R,y;function S(c,w,E){return m.call(this,function(P,F,M){return typeof o=="string"?o:o(P,F,M)}(c,w,E))||this}return y=m,(R=S).prototype=Object.create(y.prototype),R.prototype.constructor=R,R.__proto__=y,S}(l);u.prototype.name=l.name,u.prototype.code=s,n[s]=u}function g(s,o){if(Array.isArray(s)){var l=s.length;return s=s.map(function(u){return String(u)}),l>2?"one of ".concat(o," ").concat(s.slice(0,l-1).join(", "),", or ")+s[l-1]:l===2?"one of ".concat(o," ").concat(s[0]," or ").concat(s[1]):"of ".concat(o," ").concat(s[0])}return"of ".concat(o," ").concat(String(s))}i("ERR_INVALID_OPT_VALUE",function(s,o){return'The value "'+o+'" is invalid for option "'+s+'"'},TypeError),i("ERR_INVALID_ARG_TYPE",function(s,o,l){var u,m,R;if(typeof o=="string"&&(m="not ",o.substr(0,m.length)===m)?(u="must not be",o=o.replace(/^not /,"")):u="must be",function(S,c,w){return(w===void 0||w>S.length)&&(w=S.length),S.substring(w-c.length,w)===c}(s," argument"))R="The ".concat(s," ").concat(u," ").concat(g(o,"type"));else{var y=function(S,c,w){return typeof w!="number"&&(w=0),!(w+c.length>S.length)&&S.indexOf(c,w)!==-1}(s,".")?"property":"argument";R='The "'.concat(s,'" ').concat(y," ").concat(u," ").concat(g(o,"type"))}return R+=". Received type ".concat(typeof l)},TypeError),i("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),i("ERR_METHOD_NOT_IMPLEMENTED",function(s){return"The "+s+" method is not implemented"}),i("ERR_STREAM_PREMATURE_CLOSE","Premature close"),i("ERR_STREAM_DESTROYED",function(s){return"Cannot call "+s+" after a stream was destroyed"}),i("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),i("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),i("ERR_STREAM_WRITE_AFTER_END","write after end"),i("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),i("ERR_UNKNOWN_ENCODING",function(s){return"Unknown encoding: "+s},TypeError),i("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.codes=n},function(e,t,r){(function(n){var i=Object.keys||function(S){var c=[];for(var w in S)c.push(w);return c};e.exports=m;var g=r(75),s=r(79);r(6)(m,g);for(var o=i(s.prototype),l=0;l<o.length;l++){var u=o[l];m.prototype[u]||(m.prototype[u]=s.prototype[u])}function m(S){if(!(this instanceof m))return new m(S);g.call(this,S),s.call(this,S),this.allowHalfOpen=!0,S&&(S.readable===!1&&(this.readable=!1),S.writable===!1&&(this.writable=!1),S.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",R)))}function R(){this._writableState.ended||n.nextTick(y,this)}function y(S){S.end()}Object.defineProperty(m.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(m.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(m.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(m.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==void 0&&this._writableState!==void 0&&this._readableState.destroyed&&this._writableState.destroyed},set:function(S){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=S,this._writableState.destroyed=S)}})}).call(this,r(2))},function(e,t,r){r.d(t,"a",function(){return s});var n=r(36),i=r(7);const g={"app-id":["app-id must match formant/*"]};class s extends n.a{constructor(l,u={}){super(l,Object.assign({validateHeaders:m=>`${m.get("app-id")}`.startsWith("formant/")?{}:g,headers:Object.assign(Object.assign({},s.headers),{"App-ID":`formant/${i.a}`,"App-Version":i.j})},u)),this.endpoint=l}}s.headers={}},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(n,i=n.length){if(!i)throw new Error("arity is undefined");return function(...g){return typeof g[i-1]=="function"?n.apply(this,g):new Promise((s,o)=>{g[i-1]=(l,...u)=>{if(l)return o(l);s(u.length>1?u:u[0])},n.apply(this,g)})}},e.exports=t.default},function(e,t,r){(t=e.exports=r(67)).Stream=t,t.Readable=t,t.Writable=r(44),t.Duplex=r(20),t.Transform=r(70),t.PassThrough=r(164)},function(e,t,r){(t=e.exports=r(75)).Stream=t,t.Readable=t,t.Writable=r(79),t.Duplex=r(25),t.Transform=r(80),t.PassThrough=r(183),t.finished=r(45),t.pipeline=r(184)},function(e,t,r){r.d(t,"a",function(){return i});const n=["password","secret","token","key","buffer"];function i(g,s=new Set){return s.has(g)?"[ RECURSIVE ]":!(o=g)||typeof o!="object"&&typeof o!="function"?g:(s.add(g),Object.keys(g).reduce((l,u)=>(l[u]=n.some(m=>u.toLowerCase().includes(m.toLowerCase()))?"[ REDACTED ]":i(g[u],s),l),{}));var o}},function(e,t){e.exports=n,n.default=n,n.stable=g,n.stableStringify=g;var r=[];function n(s,o,l){(function R(y,S,c,w){var E;if(typeof y=="object"&&y!==null){for(E=0;E<c.length;E++)if(c[E]===y)return w[S]="[Circular]",void r.push([w,S,y]);if(c.push(y),Array.isArray(y))for(E=0;E<y.length;E++)R(y[E],E,c,y);else{var P=Object.keys(y);for(E=0;E<P.length;E++){var F=P[E];R(y[F],F,c,y)}}c.pop()}})(s,"",[],void 0);for(var u=JSON.stringify(s,o,l);r.length!==0;){var m=r.pop();m[0][m[1]]=m[2]}return u}function i(s,o){return s<o?-1:s>o?1:0}function g(s,o,l){for(var u=function y(S,c,w,E){var P;if(typeof S=="object"&&S!==null){for(P=0;P<w.length;P++)if(w[P]===S)return E[c]="[Circular]",void r.push([E,c,S]);if(typeof S.toJSON=="function")return;if(w.push(S),Array.isArray(S))for(P=0;P<S.length;P++)y(S[P],P,w,S);else{var F={},M=Object.keys(S).sort(i);for(P=0;P<M.length;P++){var A=M[P];y(S[A],A,w,S),F[A]=S[A]}if(E===void 0)return F;r.push([E,c,S]),E[c]=F}w.pop()}}(s,"",[],void 0)||s,m=JSON.stringify(u,o,l);r.length!==0;){var R=r.pop();R[0][R[1]]=R[2]}return m}},function(e,t,r){var n=r(13),i=Object.keys||function(c){var w=[];for(var E in c)w.push(E);return w};e.exports=R;var g=Object.create(r(14));g.inherits=r(6);var s=r(142),o=r(60);g.inherits(R,s);for(var l=i(o.prototype),u=0;u<l.length;u++){var m=l[u];R.prototype[m]||(R.prototype[m]=o.prototype[m])}function R(c){if(!(this instanceof R))return new R(c);s.call(this,c),o.call(this,c),c&&c.readable===!1&&(this.readable=!1),c&&c.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,c&&c.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",y)}function y(){this.allowHalfOpen||this._writableState.ended||n.nextTick(S,this)}function S(c){c.end()}Object.defineProperty(R.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(R.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._writableState!==void 0&&this._readableState.destroyed&&this._writableState.destroyed},set:function(c){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=c,this._writableState.destroyed=c)}}),R.prototype._destroy=function(c,w){this.push(null),this.end(),n.nextTick(w,c)}},function(e,t,r){var n=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Int32Array!="undefined";function i(o,l){return Object.prototype.hasOwnProperty.call(o,l)}t.assign=function(o){for(var l=Array.prototype.slice.call(arguments,1);l.length;){var u=l.shift();if(u){if(typeof u!="object")throw new TypeError(u+"must be non-object");for(var m in u)i(u,m)&&(o[m]=u[m])}}return o},t.shrinkBuf=function(o,l){return o.length===l?o:o.subarray?o.subarray(0,l):(o.length=l,o)};var g={arraySet:function(o,l,u,m,R){if(l.subarray&&o.subarray)o.set(l.subarray(u,u+m),R);else for(var y=0;y<m;y++)o[R+y]=l[u+y]},flattenChunks:function(o){var l,u,m,R,y,S;for(m=0,l=0,u=o.length;l<u;l++)m+=o[l].length;for(S=new Uint8Array(m),R=0,l=0,u=o.length;l<u;l++)y=o[l],S.set(y,R),R+=y.length;return S}},s={arraySet:function(o,l,u,m,R){for(var y=0;y<m;y++)o[R+y]=l[u+y]},flattenChunks:function(o){return[].concat.apply([],o)}};t.setTyped=function(o){o?(t.Buf8=Uint8Array,t.Buf16=Uint16Array,t.Buf32=Int32Array,t.assign(t,g)):(t.Buf8=Array,t.Buf16=Array,t.Buf32=Array,t.assign(t,s))},t.setTyped(n)},function(e,t,r){e.exports=r(185)},function(e,t,r){e.exports=function(n){return n}},function(e,t,r){r.d(t,"a",function(){return P});var n=r(11),i=r(0);function g(F,M,A=()=>!0){if(F instanceof M&&A(F))return F;throw F}var s=r(1),o=r(100),l=r.n(o),u=r(101),m=r.n(u);class R extends Error{constructor(M,A,p){super(`Connection failure: ${M.message}`),this.cause=M,this.url=A,this.retryable=p}}var y=r(30);class S extends Error{constructor(M,A,p,N,$={},q){super(`Unexpected response (${p}) for ${M} ${A}: ${JSON.stringify(q?Object(y.a)([...q.entries()].reduce((h,[d,O])=>(h[d]=O,h),{})):{})} -- ${JSON.stringify(Object(y.a)(N))}`),this.method=M,this.url=A,this.statusCode=p,this.body=N,this.validationErrors=$,this.headers=q}}class c extends Error{constructor(M,A){super(`Invalid headers (${JSON.stringify(M)}) for response: ${A.message}`),this.validationErrors=M,this.responseError=A}}var w=function(F,M,A,p){return new(A||(A=Promise))(function(N,$){function q(O){try{d(p.next(O))}catch(_){$(_)}}function h(O){try{d(p.throw(O))}catch(_){$(_)}}function d(O){var _;O.done?N(O.value):(_=O.value,_ instanceof A?_:new A(function(x){x(_)})).then(q,h)}d((p=p.apply(F,M||[])).next())})},E=function(F,M){var A={};for(var p in F)Object.prototype.hasOwnProperty.call(F,p)&&M.indexOf(p)<0&&(A[p]=F[p]);if(F!=null&&typeof Object.getOwnPropertySymbols=="function"){var N=0;for(p=Object.getOwnPropertySymbols(F);N<p.length;N++)M.indexOf(p[N])<0&&Object.prototype.propertyIsEnumerable.call(F,p[N])&&(A[p[N]]=F[p[N]])}return A};class P{constructor(M,A={}){if(this.endpoint=M,this.validateHeaders=p=>A.validateHeaders?A.validateHeaders(p):{},this.verbose=A.verbose!==!1,this.retries=A.retries!==void 0?A.retries:P.retries,this.headers=A.headers||{},this.timeoutMs=A.timeoutMs,!(this.retries>=0))throw new Error("retries must be positive or zero");if(this.timeoutMs!==void 0&&!(this.timeoutMs>0))throw new Error("timeoutMs must be positive")}fetch(M,A={}){return w(this,void 0,void 0,function*(){return(yield this.fetchVerbose(M,A)).body})}fetchVerbose(M,A={}){return w(this,void 0,void 0,function*(){let p=100*s.a.millisecond,N=0;const $=this.timeoutMs!==void 0?new Date().getTime()+this.timeoutMs:void 0,q=$?()=>Math.max($-new Date().getTime(),0):void 0;for(;;)try{return yield this.doFetch(M,A,q)}catch(h){const d=g(h,R);if((q==null?void 0:q())===0||N===this.retries||!d.retryable&&!A.allowUnsafeRetries)throw d;N++,p*=2+.1*(Math.random()-.5),yield Object(n.a)(q?Math.min(p,q()):p),this.verbose&&i.a.warn(`Connection failure, retrying. Error: ${h.cause.message}`,{url:h.url,error:h.cause})}})}doFetch(M,A,p){return w(this,void 0,void 0,function*(){const{token:N,json:$}=A,q=E(A,["token","json"]),h=(q.method||"GET").toUpperCase(),d=h!=="POST"&&h!=="PATCH",O=this.endpoint!==void 0?`${this.endpoint}${M?`/${M}`:""}`:M,_=new l.a;let x;if(p){const D=p();D>0?x=setTimeout(()=>{_.abort()},D):_.abort()}try{let D;yield Promise.race([P.waitForConnectivity(),new Promise(B=>{D=setTimeout(B,p?Math.min(s.a.minute,p()):s.a.minute)})]),D&&clearTimeout(D);const L=yield m()(O,Object.assign(Object.assign({},q),{headers:Object.assign(Object.assign(Object.assign(Object.assign({},$!==!1?{"Content-Type":"application/json"}:{}),this.headers),q.headers||{}),N!==void 0?{Authorization:`Bearer ${N}`}:{}),signal:_.signal})),T=L.headers.get("content-type")||"",C=T&&T.startsWith("application/json"),U=C?yield L.json():yield L.text(),b=()=>new S(h,O,L.status,U,U&&U.validationErrors||{},L.headers);if(!L.ok)throw this.verbose&&i.a[L.status>=500?"warn":"info"]("Response error",{method:h,url:O,statusCode:L.status}),b();const f=this.validateHeaders(L.headers);if(Object.keys(f).length!==0)throw new c(f,b());if(L.status===204)return{body:void 0,headers:L.headers};if($&&!C)throw new Error(`Response is not JSON: ${JSON.stringify(U)}`);return{body:U,headers:L.headers}}catch(D){if(D.message==="Network request failed")throw new R(D,O,d);if(D.type==="system"&&["EAI_AGAIN","ECONNREFUSED","EHOSTUNREACH","ENOTFOUND"].find(U=>U===D.code))throw new R(D,O,!0);if(D.type==="system"&&["ETIMEDOUT","ECONNRESET","ESOCKETTIMEDOUT","EPIPE"].find(U=>U===D.code))throw new R(D,O,d);if(D.name==="AbortError")throw new R(D,O,d);const L=g(D,S),{statusCode:T}=L;if(T===408||T===429||T===502||T===503||T===504)throw this.verbose&&!d&&i.a.warn("Potentially unsafe retry"),new R(D,O,!0);const C=this.validateHeaders(L.headers);throw Object.keys(C).length!==0?new c(C,L):(yield P.onResponseError(L),D)}finally{x&&clearTimeout(x)}})}}P.retries=8,P.waitForConnectivity=()=>w(void 0,void 0,void 0,function*(){}),P.onResponseError=()=>w(void 0,void 0,void 0,function*(){})},function(e,t,r){function n(R,y){if(!(R instanceof y))throw new TypeError("Cannot call a class as a function")}function i(R,y){for(var S=0;S<y.length;S++){var c=y[S];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(R,c.key,c)}}var g=r(57),s=r(3),o=s.LEVEL,l=s.MESSAGE;g.enabled=!0;var u=/\s+/,m=function(){function R(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};n(this,R),w.colors&&this.addColors(w.colors),this.options=w}var y,S,c;return y=R,c=[{key:"addColors",value:function(w){var E=Object.keys(w).reduce(function(P,F){return P[F]=u.test(w[F])?w[F].split(u):w[F],P},{});return R.allColors=Object.assign({},R.allColors||{},E),R.allColors}}],(S=[{key:"addColors",value:function(w){return R.addColors(w)}},{key:"colorize",value:function(w,E,P){if(P===void 0&&(P=E),!Array.isArray(R.allColors[w]))return g[R.allColors[w]](P);for(var F=0,M=R.allColors[w].length;F<M;F++)P=g[R.allColors[w][F]](P);return P}},{key:"transform",value:function(w,E){return E.all&&typeof w[l]=="string"&&(w[l]=this.colorize(w[o],w.level,w[l])),(E.level||E.all||!E.message)&&(w.level=this.colorize(w[o],w.level)),(E.all||E.message)&&(w.message=this.colorize(w[o],w.level,w.message)),w}}])&&i(y.prototype,S),c&&i(y,c),R}();e.exports=function(R){return new m(R)},e.exports.Colorizer=e.exports.Format=m},function(e,t){var r={}.toString;e.exports=Array.isArray||function(n){return r.call(n)=="[object Array]"}},function(e,t,r){(function(n){function i(g){try{if(!n.localStorage)return!1}catch{return!1}var s=n.localStorage[g];return s!=null&&String(s).toLowerCase()==="true"}e.exports=function(g,s){if(i("noDeprecation"))return g;var o=!1;return function(){if(!o){if(i("throwDeprecation"))throw new Error(s);i("traceDeprecation")?console.trace(s):console.warn(s),o=!0}return g.apply(this,arguments)}}}).call(this,r(5))},function(e,t,r){var n=r(4),i=n.Buffer;function g(o,l){for(var u in o)l[u]=o[u]}function s(o,l,u){return i(o,l,u)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(g(n,t),t.Buffer=s),g(i,s),s.from=function(o,l,u){if(typeof o=="number")throw new TypeError("Argument must not be a number");return i(o,l,u)},s.alloc=function(o,l,u){if(typeof o!="number")throw new TypeError("Argument must be a number");var m=i(o);return l!==void 0?typeof u=="string"?m.fill(l,u):m.fill(l):m.fill(0),m},s.allocUnsafe=function(o){if(typeof o!="number")throw new TypeError("Argument must be a number");return i(o)},s.allocUnsafeSlow=function(o){if(typeof o!="number")throw new TypeError("Argument must be a number");return n.SlowBuffer(o)}},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(n){return n&&typeof n.length=="number"&&n.length>=0&&n.length%1==0},e.exports=t.default},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.default={},e.exports=t.default},function(e,t,r){var n=r(4),i=n.Buffer;function g(o,l){for(var u in o)l[u]=o[u]}function s(o,l,u){return i(o,l,u)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(g(n,t),t.Buffer=s),g(i,s),s.from=function(o,l,u){if(typeof o=="number")throw new TypeError("Argument must not be a number");return i(o,l,u)},s.alloc=function(o,l,u){if(typeof o!="number")throw new TypeError("Argument must be a number");var m=i(o);return l!==void 0?typeof u=="string"?m.fill(l,u):m.fill(l):m.fill(0),m},s.allocUnsafe=function(o){if(typeof o!="number")throw new TypeError("Argument must be a number");return i(o)},s.allocUnsafeSlow=function(o){if(typeof o!="number")throw new TypeError("Argument must be a number");return n.SlowBuffer(o)}},function(e,t,r){(function(n,i,g){var s=r(13);function o(d){var O=this;this.next=null,this.entry=null,this.finish=function(){(function(_,x,D){var L=_.entry;for(_.entry=null;L;){var T=L.callback;x.pendingcb--,T(D),L=L.next}x.corkedRequestsFree?x.corkedRequestsFree.next=_:x.corkedRequestsFree=_})(O,d)}}e.exports=M;var l,u=!n.browser&&["v0.10","v0.9."].indexOf(n.version.slice(0,5))>-1?i:s.nextTick;M.WritableState=F;var m=r(14);m.inherits=r(6);var R={deprecate:r(39)},y=r(68),S=r(43).Buffer,c=g.Uint8Array||function(){},w,E=r(69);function P(){}function F(d,O){l=l||r(20),d=d||{};var _=O instanceof l;this.objectMode=!!d.objectMode,_&&(this.objectMode=this.objectMode||!!d.writableObjectMode);var x=d.highWaterMark,D=d.writableHighWaterMark,L=this.objectMode?16:16384;this.highWaterMark=x||x===0?x:_&&(D||D===0)?D:L,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var T=d.decodeStrings===!1;this.decodeStrings=!T,this.defaultEncoding=d.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(C){(function(U,b){var f=U._writableState,B=f.sync,k=f.writecb;if(function(K){K.writing=!1,K.writecb=null,K.length-=K.writelen,K.writelen=0}(f),b)(function(K,Q,G,V,v){--Q.pendingcb,G?(s.nextTick(v,V),s.nextTick(h,K,Q),K._writableState.errorEmitted=!0,K.emit("error",V)):(v(V),K._writableState.errorEmitted=!0,K.emit("error",V),h(K,Q))})(U,f,B,b,k);else{var Y=$(f);Y||f.corked||f.bufferProcessing||!f.bufferedRequest||N(U,f),B?u(p,U,f,Y,k):p(U,f,Y,k)}})(O,C)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function M(d){if(l=l||r(20),!(w.call(M,this)||this instanceof l))return new M(d);this._writableState=new F(d,this),this.writable=!0,d&&(typeof d.write=="function"&&(this._write=d.write),typeof d.writev=="function"&&(this._writev=d.writev),typeof d.destroy=="function"&&(this._destroy=d.destroy),typeof d.final=="function"&&(this._final=d.final)),y.call(this)}function A(d,O,_,x,D,L,T){O.writelen=x,O.writecb=T,O.writing=!0,O.sync=!0,_?d._writev(D,O.onwrite):d._write(D,L,O.onwrite),O.sync=!1}function p(d,O,_,x){_||function(D,L){L.length===0&&L.needDrain&&(L.needDrain=!1,D.emit("drain"))}(d,O),O.pendingcb--,x(),h(d,O)}function N(d,O){O.bufferProcessing=!0;var _=O.bufferedRequest;if(d._writev&&_&&_.next){var x=O.bufferedRequestCount,D=new Array(x),L=O.corkedRequestsFree;L.entry=_;for(var T=0,C=!0;_;)D[T]=_,_.isBuf||(C=!1),_=_.next,T+=1;D.allBuffers=C,A(d,O,!0,O.length,D,"",L.finish),O.pendingcb++,O.lastBufferedRequest=null,L.next?(O.corkedRequestsFree=L.next,L.next=null):O.corkedRequestsFree=new o(O),O.bufferedRequestCount=0}else{for(;_;){var U=_.chunk,b=_.encoding,f=_.callback;if(A(d,O,!1,O.objectMode?1:U.length,U,b,f),_=_.next,O.bufferedRequestCount--,O.writing)break}_===null&&(O.lastBufferedRequest=null)}O.bufferedRequest=_,O.bufferProcessing=!1}function $(d){return d.ending&&d.length===0&&d.bufferedRequest===null&&!d.finished&&!d.writing}function q(d,O){d._final(function(_){O.pendingcb--,_&&d.emit("error",_),O.prefinished=!0,d.emit("prefinish"),h(d,O)})}function h(d,O){var _=$(O);return _&&(function(x,D){D.prefinished||D.finalCalled||(typeof x._final=="function"?(D.pendingcb++,D.finalCalled=!0,s.nextTick(q,x,D)):(D.prefinished=!0,x.emit("prefinish")))}(d,O),O.pendingcb===0&&(O.finished=!0,d.emit("finish"))),_}m.inherits(M,y),F.prototype.getBuffer=function(){for(var d=this.bufferedRequest,O=[];d;)O.push(d),d=d.next;return O},function(){try{Object.defineProperty(F.prototype,"buffer",{get:R.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}(),typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(w=Function.prototype[Symbol.hasInstance],Object.defineProperty(M,Symbol.hasInstance,{value:function(d){return!!w.call(this,d)||this===M&&d&&d._writableState instanceof F}})):w=function(d){return d instanceof this},M.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},M.prototype.write=function(d,O,_){var x,D=this._writableState,L=!1,T=!D.objectMode&&(x=d,S.isBuffer(x)||x instanceof c);return T&&!S.isBuffer(d)&&(d=function(C){return S.from(C)}(d)),typeof O=="function"&&(_=O,O=null),T?O="buffer":O||(O=D.defaultEncoding),typeof _!="function"&&(_=P),D.ended?function(C,U){var b=new Error("write after end");C.emit("error",b),s.nextTick(U,b)}(this,_):(T||function(C,U,b,f){var B=!0,k=!1;return b===null?k=new TypeError("May not write null values to stream"):typeof b=="string"||b===void 0||U.objectMode||(k=new TypeError("Invalid non-string/buffer chunk")),k&&(C.emit("error",k),s.nextTick(f,k),B=!1),B}(this,D,d,_))&&(D.pendingcb++,L=function(C,U,b,f,B,k){if(!b){var Y=function(V,v,j){return V.objectMode||V.decodeStrings===!1||typeof v!="string"||(v=S.from(v,j)),v}(U,f,B);f!==Y&&(b=!0,B="buffer",f=Y)}var K=U.objectMode?1:f.length;U.length+=K;var Q=U.length<U.highWaterMark;if(Q||(U.needDrain=!0),U.writing||U.corked){var G=U.lastBufferedRequest;U.lastBufferedRequest={chunk:f,encoding:B,isBuf:b,callback:k,next:null},G?G.next=U.lastBufferedRequest:U.bufferedRequest=U.lastBufferedRequest,U.bufferedRequestCount+=1}else A(C,U,!1,K,f,B,k);return Q}(this,D,T,d,O,_)),L},M.prototype.cork=function(){this._writableState.corked++},M.prototype.uncork=function(){var d=this._writableState;d.corked&&(d.corked--,d.writing||d.corked||d.finished||d.bufferProcessing||!d.bufferedRequest||N(this,d))},M.prototype.setDefaultEncoding=function(d){if(typeof d=="string"&&(d=d.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((d+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+d);return this._writableState.defaultEncoding=d,this},Object.defineProperty(M.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),M.prototype._write=function(d,O,_){_(new Error("_write() is not implemented"))},M.prototype._writev=null,M.prototype.end=function(d,O,_){var x=this._writableState;typeof d=="function"?(_=d,d=null,O=null):typeof O=="function"&&(_=O,O=null),d!=null&&this.write(d,O),x.corked&&(x.corked=1,this.uncork()),x.ending||x.finished||function(D,L,T){L.ending=!0,h(D,L),T&&(L.finished?s.nextTick(T):D.once("finish",T)),L.ended=!0,D.writable=!1}(this,x,_)},Object.defineProperty(M.prototype,"destroyed",{get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(d){this._writableState&&(this._writableState.destroyed=d)}}),M.prototype.destroy=E.destroy,M.prototype._undestroy=E.undestroy,M.prototype._destroy=function(d,O){this.end(),O(d)}}).call(this,r(2),r(12).setImmediate,r(5))},function(e,t,r){var n=r(24).codes.ERR_STREAM_PREMATURE_CLOSE;function i(){}e.exports=function g(s,o,l){if(typeof o=="function")return g(s,null,o);o||(o={}),l=function(M){var A=!1;return function(){if(!A){A=!0;for(var p=arguments.length,N=new Array(p),$=0;$<p;$++)N[$]=arguments[$];M.apply(this,N)}}}(l||i);var u=o.readable||o.readable!==!1&&s.readable,m=o.writable||o.writable!==!1&&s.writable,R=function(){s.writable||S()},y=s._writableState&&s._writableState.finished,S=function(){m=!1,y=!0,u||l.call(s)},c=s._readableState&&s._readableState.endEmitted,w=function(){u=!1,c=!0,m||l.call(s)},E=function(M){l.call(s,M)},P=function(){var M;return u&&!c?(s._readableState&&s._readableState.ended||(M=new n),l.call(s,M)):m&&!y?(s._writableState&&s._writableState.ended||(M=new n),l.call(s,M)):void 0},F=function(){s.req.on("finish",S)};return function(M){return M.setHeader&&typeof M.abort=="function"}(s)?(s.on("complete",S),s.on("abort",P),s.req?F():s.on("request",F)):m&&!s._writableState&&(s.on("end",R),s.on("close",R)),s.on("end",w),s.on("finish",S),o.error!==!1&&s.on("error",E),s.on("close",P),function(){s.removeListener("complete",S),s.removeListener("abort",P),s.removeListener("request",F),s.req&&s.req.removeListener("finish",S),s.removeListener("end",R),s.removeListener("close",R),s.removeListener("finish",S),s.removeListener("end",w),s.removeListener("error",E),s.removeListener("close",P)}}},function(e,t,r){var n=r(193),i=r(195);function g(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=M,t.resolve=function(A,p){return M(A,!1,!0).resolve(p)},t.resolveObject=function(A,p){return A?M(A,!1,!0).resolveObject(p):p},t.format=function(A){return i.isString(A)&&(A=M(A)),A instanceof g?A.format():g.prototype.format.call(A)},t.Url=g;var s=/^([a-z0-9.+-]+:)/i,o=/:[0-9]*$/,l=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,u=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r",`
|
|
20
|
+
`," "]),m=["'"].concat(u),R=["%","/","?",";","#"].concat(m),y=["/","?","#"],S=/^[+a-z0-9A-Z_-]{0,63}$/,c=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,w={javascript:!0,"javascript:":!0},E={javascript:!0,"javascript:":!0},P={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},F=r(196);function M(A,p,N){if(A&&i.isObject(A)&&A instanceof g)return A;var $=new g;return $.parse(A,p,N),$}g.prototype.parse=function(A,p,N){if(!i.isString(A))throw new TypeError("Parameter 'url' must be a string, not "+typeof A);var $=A.indexOf("?"),q=$!==-1&&$<A.indexOf("#")?"?":"#",h=A.split(q);h[0]=h[0].replace(/\\/g,"/");var d=A=h.join(q);if(d=d.trim(),!N&&A.split("#").length===1){var O=l.exec(d);if(O)return this.path=d,this.href=d,this.pathname=O[1],O[2]?(this.search=O[2],this.query=p?F.parse(this.search.substr(1)):this.search.substr(1)):p&&(this.search="",this.query={}),this}var _=s.exec(d);if(_){var x=(_=_[0]).toLowerCase();this.protocol=x,d=d.substr(_.length)}if(N||_||d.match(/^\/\/[^@\/]+@[^@\/]+/)){var D=d.substr(0,2)==="//";!D||_&&E[_]||(d=d.substr(2),this.slashes=!0)}if(!E[_]&&(D||_&&!P[_])){for(var L,T,C=-1,U=0;U<y.length;U++)(b=d.indexOf(y[U]))!==-1&&(C===-1||b<C)&&(C=b);for((T=C===-1?d.lastIndexOf("@"):d.lastIndexOf("@",C))!==-1&&(L=d.slice(0,T),d=d.slice(T+1),this.auth=decodeURIComponent(L)),C=-1,U=0;U<R.length;U++){var b;(b=d.indexOf(R[U]))!==-1&&(C===-1||b<C)&&(C=b)}C===-1&&(C=d.length),this.host=d.slice(0,C),d=d.slice(C),this.parseHost(),this.hostname=this.hostname||"";var f=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!f)for(var B=this.hostname.split(/\./),k=(U=0,B.length);U<k;U++){var Y=B[U];if(Y&&!Y.match(S)){for(var K="",Q=0,G=Y.length;Q<G;Q++)Y.charCodeAt(Q)>127?K+="x":K+=Y[Q];if(!K.match(S)){var V=B.slice(0,U),v=B.slice(U+1),j=Y.match(c);j&&(V.push(j[1]),v.unshift(j[2])),v.length&&(d="/"+v.join(".")+d),this.hostname=V.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),f||(this.hostname=n.toASCII(this.hostname));var W=this.port?":"+this.port:"",ee=this.hostname||"";this.host=ee+W,this.href+=this.host,f&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),d[0]!=="/"&&(d="/"+d))}if(!w[x])for(U=0,k=m.length;U<k;U++){var J=m[U];if(d.indexOf(J)!==-1){var re=encodeURIComponent(J);re===J&&(re=escape(J)),d=d.split(J).join(re)}}var se=d.indexOf("#");se!==-1&&(this.hash=d.substr(se),d=d.slice(0,se));var oe=d.indexOf("?");if(oe!==-1?(this.search=d.substr(oe),this.query=d.substr(oe+1),p&&(this.query=F.parse(this.query)),d=d.slice(0,oe)):p&&(this.search="",this.query={}),d&&(this.pathname=d),P[x]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){W=this.pathname||"";var z=this.search||"";this.path=W+z}return this.href=this.format(),this},g.prototype.format=function(){var A=this.auth||"";A&&(A=(A=encodeURIComponent(A)).replace(/%3A/i,":"),A+="@");var p=this.protocol||"",N=this.pathname||"",$=this.hash||"",q=!1,h="";this.host?q=A+this.host:this.hostname&&(q=A+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(q+=":"+this.port)),this.query&&i.isObject(this.query)&&Object.keys(this.query).length&&(h=F.stringify(this.query));var d=this.search||h&&"?"+h||"";return p&&p.substr(-1)!==":"&&(p+=":"),this.slashes||(!p||P[p])&&q!==!1?(q="//"+(q||""),N&&N.charAt(0)!=="/"&&(N="/"+N)):q||(q=""),$&&$.charAt(0)!=="#"&&($="#"+$),d&&d.charAt(0)!=="?"&&(d="?"+d),p+q+(N=N.replace(/[?#]/g,function(O){return encodeURIComponent(O)}))+(d=d.replace("#","%23"))+$},g.prototype.resolve=function(A){return this.resolveObject(M(A,!1,!0)).format()},g.prototype.resolveObject=function(A){if(i.isString(A)){var p=new g;p.parse(A,!1,!0),A=p}for(var N=new g,$=Object.keys(this),q=0;q<$.length;q++){var h=$[q];N[h]=this[h]}if(N.hash=A.hash,A.href==="")return N.href=N.format(),N;if(A.slashes&&!A.protocol){for(var d=Object.keys(A),O=0;O<d.length;O++){var _=d[O];_!=="protocol"&&(N[_]=A[_])}return P[N.protocol]&&N.hostname&&!N.pathname&&(N.path=N.pathname="/"),N.href=N.format(),N}if(A.protocol&&A.protocol!==N.protocol){if(!P[A.protocol]){for(var x=Object.keys(A),D=0;D<x.length;D++){var L=x[D];N[L]=A[L]}return N.href=N.format(),N}if(N.protocol=A.protocol,A.host||E[A.protocol])N.pathname=A.pathname;else{for(var T=(A.pathname||"").split("/");T.length&&!(A.host=T.shift()););A.host||(A.host=""),A.hostname||(A.hostname=""),T[0]!==""&&T.unshift(""),T.length<2&&T.unshift(""),N.pathname=T.join("/")}if(N.search=A.search,N.query=A.query,N.host=A.host||"",N.auth=A.auth,N.hostname=A.hostname||A.host,N.port=A.port,N.pathname||N.search){var C=N.pathname||"",U=N.search||"";N.path=C+U}return N.slashes=N.slashes||A.slashes,N.href=N.format(),N}var b=N.pathname&&N.pathname.charAt(0)==="/",f=A.host||A.pathname&&A.pathname.charAt(0)==="/",B=f||b||N.host&&A.pathname,k=B,Y=N.pathname&&N.pathname.split("/")||[],K=(T=A.pathname&&A.pathname.split("/")||[],N.protocol&&!P[N.protocol]);if(K&&(N.hostname="",N.port=null,N.host&&(Y[0]===""?Y[0]=N.host:Y.unshift(N.host)),N.host="",A.protocol&&(A.hostname=null,A.port=null,A.host&&(T[0]===""?T[0]=A.host:T.unshift(A.host)),A.host=null),B=B&&(T[0]===""||Y[0]==="")),f)N.host=A.host||A.host===""?A.host:N.host,N.hostname=A.hostname||A.hostname===""?A.hostname:N.hostname,N.search=A.search,N.query=A.query,Y=T;else if(T.length)Y||(Y=[]),Y.pop(),Y=Y.concat(T),N.search=A.search,N.query=A.query;else if(!i.isNullOrUndefined(A.search))return K&&(N.hostname=N.host=Y.shift(),(j=!!(N.host&&N.host.indexOf("@")>0)&&N.host.split("@"))&&(N.auth=j.shift(),N.host=N.hostname=j.shift())),N.search=A.search,N.query=A.query,i.isNull(N.pathname)&&i.isNull(N.search)||(N.path=(N.pathname?N.pathname:"")+(N.search?N.search:"")),N.href=N.format(),N;if(!Y.length)return N.pathname=null,N.search?N.path="/"+N.search:N.path=null,N.href=N.format(),N;for(var Q=Y.slice(-1)[0],G=(N.host||A.host||Y.length>1)&&(Q==="."||Q==="..")||Q==="",V=0,v=Y.length;v>=0;v--)(Q=Y[v])==="."?Y.splice(v,1):Q===".."?(Y.splice(v,1),V++):V&&(Y.splice(v,1),V--);if(!B&&!k)for(;V--;V)Y.unshift("..");!B||Y[0]===""||Y[0]&&Y[0].charAt(0)==="/"||Y.unshift(""),G&&Y.join("/").substr(-1)!=="/"&&Y.push("");var j,W=Y[0]===""||Y[0]&&Y[0].charAt(0)==="/";return K&&(N.hostname=N.host=W?"":Y.length?Y.shift():"",(j=!!(N.host&&N.host.indexOf("@")>0)&&N.host.split("@"))&&(N.auth=j.shift(),N.host=N.hostname=j.shift())),(B=B||N.host&&Y.length)&&!W&&Y.unshift(""),Y.length?N.pathname=Y.join("/"):(N.pathname=null,N.path=null),i.isNull(N.pathname)&&i.isNull(N.search)||(N.path=(N.pathname?N.pathname:"")+(N.search?N.search:"")),N.auth=A.auth||N.auth,N.slashes=N.slashes||A.slashes,N.href=N.format(),N},g.prototype.parseHost=function(){var A=this.host,p=o.exec(A);p&&((p=p[0])!==":"&&(this.port=p.substr(1)),A=A.substr(0,A.length-p.length)),A&&(this.hostname=A)}},function(e,t,r){var n=r(56),i=r(3).configs;t.cli=n.levels(i.cli),t.npm=n.levels(i.npm),t.syslog=n.levels(i.syslog),t.addColors=n.levels},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=o(r(202)),i=o(r(203)),g=o(r(23)),s=o(r(27));function o(l){return l&&l.__esModule?l:{default:l}}t.default=(0,s.default)(function(l,u,m){return(0,n.default)(l,(0,i.default)((0,g.default)(u)),m)},3),e.exports=t.default},function(e,t,r){function n(i){Error.captureStackTrace(this,this.constructor),this.name="EnvVarError",this.message=`env-var: ${i}`}(0,r(10).inherits)(n,Error),e.exports=n},function(e,t,r){e.exports=function(n){const i=parseInt(n,10);if(isNaN(i)||n.toString().indexOf(".")!==-1)throw new Error("should be a valid integer");return i}},function(e,t,r){e.exports=function(n){const i=parseFloat(n);if(isNaN(i))throw new Error("should be a valid float");return i}},function(e,t,r){e.exports=function(n){try{return JSON.parse(n)}catch{throw new Error("should be valid (parseable) JSON")}}},function(e,t,r){(function(n){function i(o,l){for(var u=0,m=o.length-1;m>=0;m--){var R=o[m];R==="."?o.splice(m,1):R===".."?(o.splice(m,1),u++):u&&(o.splice(m,1),u--)}if(l)for(;u--;u)o.unshift("..");return o}function g(o,l){if(o.filter)return o.filter(l);for(var u=[],m=0;m<o.length;m++)l(o[m],m,o)&&u.push(o[m]);return u}t.resolve=function(){for(var o="",l=!1,u=arguments.length-1;u>=-1&&!l;u--){var m=u>=0?arguments[u]:n.cwd();if(typeof m!="string")throw new TypeError("Arguments to path.resolve must be strings");m&&(o=m+"/"+o,l=m.charAt(0)==="/")}return(l?"/":"")+(o=i(g(o.split("/"),function(R){return!!R}),!l).join("/"))||"."},t.normalize=function(o){var l=t.isAbsolute(o),u=s(o,-1)==="/";return(o=i(g(o.split("/"),function(m){return!!m}),!l).join("/"))||l||(o="."),o&&u&&(o+="/"),(l?"/":"")+o},t.isAbsolute=function(o){return o.charAt(0)==="/"},t.join=function(){var o=Array.prototype.slice.call(arguments,0);return t.normalize(g(o,function(l,u){if(typeof l!="string")throw new TypeError("Arguments to path.join must be strings");return l}).join("/"))},t.relative=function(o,l){function u(E){for(var P=0;P<E.length&&E[P]==="";P++);for(var F=E.length-1;F>=0&&E[F]==="";F--);return P>F?[]:E.slice(P,F-P+1)}o=t.resolve(o).substr(1),l=t.resolve(l).substr(1);for(var m=u(o.split("/")),R=u(l.split("/")),y=Math.min(m.length,R.length),S=y,c=0;c<y;c++)if(m[c]!==R[c]){S=c;break}var w=[];for(c=S;c<m.length;c++)w.push("..");return(w=w.concat(R.slice(S))).join("/")},t.sep="/",t.delimiter=":",t.dirname=function(o){if(typeof o!="string"&&(o+=""),o.length===0)return".";for(var l=o.charCodeAt(0),u=l===47,m=-1,R=!0,y=o.length-1;y>=1;--y)if((l=o.charCodeAt(y))===47){if(!R){m=y;break}}else R=!1;return m===-1?u?"/":".":u&&m===1?"/":o.slice(0,m)},t.basename=function(o,l){var u=function(m){typeof m!="string"&&(m+="");var R,y=0,S=-1,c=!0;for(R=m.length-1;R>=0;--R)if(m.charCodeAt(R)===47){if(!c){y=R+1;break}}else S===-1&&(c=!1,S=R+1);return S===-1?"":m.slice(y,S)}(o);return l&&u.substr(-1*l.length)===l&&(u=u.substr(0,u.length-l.length)),u},t.extname=function(o){typeof o!="string"&&(o+="");for(var l=-1,u=0,m=-1,R=!0,y=0,S=o.length-1;S>=0;--S){var c=o.charCodeAt(S);if(c!==47)m===-1&&(R=!1,m=S+1),c===46?l===-1?l=S:y!==1&&(y=1):l!==-1&&(y=-1);else if(!R){u=S+1;break}}return l===-1||m===-1||y===0||y===1&&l===m-1&&l===u+1?"":o.slice(l,m)};var s="ab".substr(-1)==="b"?function(o,l,u){return o.substr(l,u)}:function(o,l,u){return l<0&&(l=o.length+l),o.substr(l,u)}}).call(this,r(2))},function(e,t){function r(n,i){var g=[],s=[];return i==null&&(i=function(o,l){return g[0]===l?"[Circular ~]":"[Circular ~."+s.slice(0,g.indexOf(l)).join(".")+"]"}),function(o,l){if(g.length>0){var u=g.indexOf(this);~u?g.splice(u+1):g.push(this),~u?s.splice(u,1/0,o):s.push(o),~g.indexOf(l)&&(l=i.call(this,o,l))}else g.push(l);return n==null?l:n.call(this,o,l)}}(e.exports=function(n,i,g,s){return JSON.stringify(n,r(i,s),g)}).getSerialize=r},function(e,t,r){r(227),e.exports={encode:n=>new TextEncoder().encode(n),decode:n=>new TextDecoder().decode(n)}},function(e,t,r){var n=t.format=r(9);t.levels=r(104),Object.defineProperty(n,"align",{value:r(121)}),Object.defineProperty(n,"cli",{value:r(122)}),Object.defineProperty(n,"combine",{value:r(123)}),Object.defineProperty(n,"colorize",{value:r(37)}),Object.defineProperty(n,"json",{value:r(124)}),Object.defineProperty(n,"label",{value:r(127)}),Object.defineProperty(n,"logstash",{value:r(128)}),Object.defineProperty(n,"metadata",{value:r(129)}),Object.defineProperty(n,"padLevels",{value:r(58)}),Object.defineProperty(n,"prettyPrint",{value:r(130)}),Object.defineProperty(n,"printf",{value:r(131)}),Object.defineProperty(n,"simple",{value:r(132)}),Object.defineProperty(n,"splat",{value:r(133)}),Object.defineProperty(n,"timestamp",{value:r(134)}),Object.defineProperty(n,"uncolorize",{value:r(136)})},function(e,t,r){var n=r(105);e.exports=n},function(e,t,r){function n(y){return function(S){if(Array.isArray(S))return i(S)}(y)||function(S){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(S))return Array.from(S)}(y)||function(S,c){if(!!S){if(typeof S=="string")return i(S,c);var w=Object.prototype.toString.call(S).slice(8,-1);if(w==="Object"&&S.constructor&&(w=S.constructor.name),w==="Map"||w==="Set")return Array.from(S);if(w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return i(S,c)}}(y)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
21
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function i(y,S){(S==null||S>y.length)&&(S=y.length);for(var c=0,w=new Array(S);c<S;c++)w[c]=y[c];return w}function g(y,S){if(!(y instanceof S))throw new TypeError("Cannot call a class as a function")}function s(y,S){for(var c=0;c<S.length;c++){var w=S[c];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(y,w.key,w)}}var o=r(3),l=o.configs,u=o.LEVEL,m=o.MESSAGE,R=function(){function y(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{levels:l.npm.levels};g(this,y),this.paddings=y.paddingForLevels(E.levels,E.filler),this.options=E}var S,c,w;return S=y,w=[{key:"getLongestLevel",value:function(E){var P=Object.keys(E).map(function(F){return F.length});return Math.max.apply(Math,n(P))}},{key:"paddingForLevel",value:function(E,P,F){var M=F+1-E.length,A=Math.floor(M/P.length);return"".concat(P).concat(P.repeat(A)).slice(0,M)}},{key:"paddingForLevels",value:function(E){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:" ",F=y.getLongestLevel(E);return Object.keys(E).reduce(function(M,A){return M[A]=y.paddingForLevel(A,P,F),M},{})}}],(c=[{key:"transform",value:function(E,P){return E.message="".concat(this.paddings[E[u]]).concat(E.message),E[m]&&(E[m]="".concat(this.paddings[E[u]]).concat(E[m])),E}}])&&s(S.prototype,c),w&&s(S,w),y}();e.exports=function(y){return new R(y)},e.exports.Padder=e.exports.Format=R},function(e,t,r){var n=r(10).format;t.warn={deprecated:function(i){return function(){throw new Error(n("{ %s } was removed in winston@3.0.0.",i))}},useFormat:function(i){return function(){throw new Error([n("{ %s } was removed in winston@3.0.0.",i),"Use a custom winston.format = winston.format(function) instead."].join(`
|
|
22
22
|
`))}},forFunctions:function(i,g,s){s.forEach(function(o){i[o]=t.warn[g](o)})},moved:function(i,g,s){function o(){return function(){throw new Error([n("winston.%s was moved in winston@3.0.0.",s),n("Use a winston.%s instead.",g)].join(`
|
|
23
|
-
`))}}Object.defineProperty(i,s,{get:o,set:o})},forProperties:function(i,g,s){s.forEach(function(o){var l=t.warn[g](o);Object.defineProperty(i,o,{get:l,set:l})})}}},function(e,t,r){(function(n,i,g){var s=r(13);function o(d){var O=this;this.next=null,this.entry=null,this.finish=function(){(function(_,x,D){var L=_.entry;for(_.entry=null;L;){var T=L.callback;x.pendingcb--,T(D),L=L.next}x.corkedRequestsFree?x.corkedRequestsFree.next=_:x.corkedRequestsFree=_})(O,d)}}e.exports=M;var l,u=!n.browser&&["v0.10","v0.9."].indexOf(n.version.slice(0,5))>-1?i:s.nextTick;M.WritableState=F;var m=Object.create(r(14));m.inherits=r(6);var R={deprecate:r(39)},y=r(61),S=r(40).Buffer,c=g.Uint8Array||function(){},w,E=r(62);function P(){}function F(d,O){l=l||r(32),d=d||{};var _=O instanceof l;this.objectMode=!!d.objectMode,_&&(this.objectMode=this.objectMode||!!d.writableObjectMode);var x=d.highWaterMark,D=d.writableHighWaterMark,L=this.objectMode?16:16384;this.highWaterMark=x||x===0?x:_&&(D||D===0)?D:L,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var T=d.decodeStrings===!1;this.decodeStrings=!T,this.defaultEncoding=d.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(C){(function(U,b){var f=U._writableState,B=f.sync,k=f.writecb;if(function(K){K.writing=!1,K.writecb=null,K.length-=K.writelen,K.writelen=0}(f),b)(function(K,Q,G,V,v){--Q.pendingcb,G?(s.nextTick(v,V),s.nextTick(h,K,Q),K._writableState.errorEmitted=!0,K.emit("error",V)):(v(V),K._writableState.errorEmitted=!0,K.emit("error",V),h(K,Q))})(U,f,B,b,k);else{var Y=$(f);Y||f.corked||f.bufferProcessing||!f.bufferedRequest||N(U,f),B?u(p,U,f,Y,k):p(U,f,Y,k)}})(O,C)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function M(d){if(l=l||r(32),!(w.call(M,this)||this instanceof l))return new M(d);this._writableState=new F(d,this),this.writable=!0,d&&(typeof d.write=="function"&&(this._write=d.write),typeof d.writev=="function"&&(this._writev=d.writev),typeof d.destroy=="function"&&(this._destroy=d.destroy),typeof d.final=="function"&&(this._final=d.final)),y.call(this)}function A(d,O,_,x,D,L,T){O.writelen=x,O.writecb=T,O.writing=!0,O.sync=!0,_?d._writev(D,O.onwrite):d._write(D,L,O.onwrite),O.sync=!1}function p(d,O,_,x){_||function(D,L){L.length===0&&L.needDrain&&(L.needDrain=!1,D.emit("drain"))}(d,O),O.pendingcb--,x(),h(d,O)}function N(d,O){O.bufferProcessing=!0;var _=O.bufferedRequest;if(d._writev&&_&&_.next){var x=O.bufferedRequestCount,D=new Array(x),L=O.corkedRequestsFree;L.entry=_;for(var T=0,C=!0;_;)D[T]=_,_.isBuf||(C=!1),_=_.next,T+=1;D.allBuffers=C,A(d,O,!0,O.length,D,"",L.finish),O.pendingcb++,O.lastBufferedRequest=null,L.next?(O.corkedRequestsFree=L.next,L.next=null):O.corkedRequestsFree=new o(O),O.bufferedRequestCount=0}else{for(;_;){var U=_.chunk,b=_.encoding,f=_.callback;if(A(d,O,!1,O.objectMode?1:U.length,U,b,f),_=_.next,O.bufferedRequestCount--,O.writing)break}_===null&&(O.lastBufferedRequest=null)}O.bufferedRequest=_,O.bufferProcessing=!1}function $(d){return d.ending&&d.length===0&&d.bufferedRequest===null&&!d.finished&&!d.writing}function q(d,O){d._final(function(_){O.pendingcb--,_&&d.emit("error",_),O.prefinished=!0,d.emit("prefinish"),h(d,O)})}function h(d,O){var _=$(O);return _&&(function(x,D){D.prefinished||D.finalCalled||(typeof x._final=="function"?(D.pendingcb++,D.finalCalled=!0,s.nextTick(q,x,D)):(D.prefinished=!0,x.emit("prefinish")))}(d,O),O.pendingcb===0&&(O.finished=!0,d.emit("finish"))),_}m.inherits(M,y),F.prototype.getBuffer=function(){for(var d=this.bufferedRequest,O=[];d;)O.push(d),d=d.next;return O},function(){try{Object.defineProperty(F.prototype,"buffer",{get:R.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}(),typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(w=Function.prototype[Symbol.hasInstance],Object.defineProperty(M,Symbol.hasInstance,{value:function(d){return!!w.call(this,d)||this===M&&d&&d._writableState instanceof F}})):w=function(d){return d instanceof this},M.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},M.prototype.write=function(d,O,_){var x,D=this._writableState,L=!1,T=!D.objectMode&&(x=d,S.isBuffer(x)||x instanceof c);return T&&!S.isBuffer(d)&&(d=function(C){return S.from(C)}(d)),typeof O=="function"&&(_=O,O=null),T?O="buffer":O||(O=D.defaultEncoding),typeof _!="function"&&(_=P),D.ended?function(C,U){var b=new Error("write after end");C.emit("error",b),s.nextTick(U,b)}(this,_):(T||function(C,U,b,f){var B=!0,k=!1;return b===null?k=new TypeError("May not write null values to stream"):typeof b=="string"||b===void 0||U.objectMode||(k=new TypeError("Invalid non-string/buffer chunk")),k&&(C.emit("error",k),s.nextTick(f,k),B=!1),B}(this,D,d,_))&&(D.pendingcb++,L=function(C,U,b,f,B,k){if(!b){var Y=function(V,v,j){return V.objectMode||V.decodeStrings===!1||typeof v!="string"||(v=S.from(v,j)),v}(U,f,B);f!==Y&&(b=!0,B="buffer",f=Y)}var K=U.objectMode?1:f.length;U.length+=K;var Q=U.length<U.highWaterMark;if(Q||(U.needDrain=!0),U.writing||U.corked){var G=U.lastBufferedRequest;U.lastBufferedRequest={chunk:f,encoding:B,isBuf:b,callback:k,next:null},G?G.next=U.lastBufferedRequest:U.bufferedRequest=U.lastBufferedRequest,U.bufferedRequestCount+=1}else A(C,U,!1,K,f,B,k);return Q}(this,D,T,d,O,_)),L},M.prototype.cork=function(){this._writableState.corked++},M.prototype.uncork=function(){var d=this._writableState;d.corked&&(d.corked--,d.writing||d.corked||d.finished||d.bufferProcessing||!d.bufferedRequest||N(this,d))},M.prototype.setDefaultEncoding=function(d){if(typeof d=="string"&&(d=d.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((d+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+d);return this._writableState.defaultEncoding=d,this},Object.defineProperty(M.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),M.prototype._write=function(d,O,_){_(new Error("_write() is not implemented"))},M.prototype._writev=null,M.prototype.end=function(d,O,_){var x=this._writableState;typeof d=="function"?(_=d,d=null,O=null):typeof O=="function"&&(_=O,O=null),d!=null&&this.write(d,O),x.corked&&(x.corked=1,this.uncork()),x.ending||x.finished||function(D,L,T){L.ending=!0,h(D,L),T&&(L.finished?s.nextTick(T):D.once("finish",T)),L.ended=!0,D.writable=!1}(this,x,_)},Object.defineProperty(M.prototype,"destroyed",{get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(d){this._writableState&&(this._writableState.destroyed=d)}}),M.prototype.destroy=E.destroy,M.prototype._undestroy=E.undestroy,M.prototype._destroy=function(d,O){this.end(),O(d)}}).call(this,r(2),r(12).setImmediate,r(5))},function(e,t,r){e.exports=r(18).EventEmitter},function(e,t,r){var n=r(13);function i(g,s){g.emit("error",s)}e.exports={destroy:function(g,s){var o=this,l=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return l||u?(s?s(g):!g||this._writableState&&this._writableState.errorEmitted||n.nextTick(i,this,g),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(g||null,function(m){!s&&m?(n.nextTick(i,o,m),o._writableState&&(o._writableState.errorEmitted=!0)):s&&s(m)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},function(e,t){},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=s(r(155)),i=s(r(23)),g=s(r(27));function s(o){return o&&o.__esModule?o:{default:o}}t.default=(0,g.default)(function(o,l,u,m){return(0,n.default)(l)(o,(0,i.default)(u),m)},4),e.exports=t.default},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(n){function i(...g){if(n!==null){var s=n;n=null,s.apply(this,g)}}return Object.assign(i,n),i},e.exports=t.default},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(n){return function(...i){if(n===null)throw new Error("Callback was already called.");var g=n;n=null,g.apply(this,i)}},e.exports=t.default},function(e,t,r){(function(n,i){var g=r(13);e.exports=A;var s,o=r(38);A.ReadableState=M,r(18).EventEmitter;var l=function(b,f){return b.listeners(f).length},u=r(68),m=r(43).Buffer,R=n.Uint8Array||function(){},y=r(14);y.inherits=r(6);var S=r(161),c=void 0;c=S&&S.debuglog?S.debuglog("stream"):function(){};var w,E=r(162),P=r(69);y.inherits(A,u);var F=["error","close","destroy","pause","resume"];function M(b,f){b=b||{};var B=f instanceof(s=s||r(20));this.objectMode=!!b.objectMode,B&&(this.objectMode=this.objectMode||!!b.readableObjectMode);var k=b.highWaterMark,Y=b.readableHighWaterMark,K=this.objectMode?16:16384;this.highWaterMark=k||k===0?k:B&&(Y||Y===0)?Y:K,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new E,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=b.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,b.encoding&&(w||(w=r(19).StringDecoder),this.decoder=new w(b.encoding),this.encoding=b.encoding)}function A(b){if(s=s||r(20),!(this instanceof A))return new A(b);this._readableState=new M(b,this),this.readable=!0,b&&(typeof b.read=="function"&&(this._read=b.read),typeof b.destroy=="function"&&(this._destroy=b.destroy)),u.call(this)}function p(b,f,B,k,Y){var K,Q=b._readableState;return f===null?(Q.reading=!1,function(G,V){if(!V.ended){if(V.decoder){var v=V.decoder.end();v&&v.length&&(V.buffer.push(v),V.length+=V.objectMode?1:v.length)}V.ended=!0,q(G)}}(b,Q)):(Y||(K=function(G,V){var v;j=V,m.isBuffer(j)||j instanceof R||typeof V=="string"||V===void 0||G.objectMode||(v=new TypeError("Invalid non-string/buffer chunk"));var j;return v}(Q,f)),K?b.emit("error",K):Q.objectMode||f&&f.length>0?(typeof f=="string"||Q.objectMode||Object.getPrototypeOf(f)===m.prototype||(f=function(G){return m.from(G)}(f)),k?Q.endEmitted?b.emit("error",new Error("stream.unshift() after end event")):N(b,Q,f,!0):Q.ended?b.emit("error",new Error("stream.push() after EOF")):(Q.reading=!1,Q.decoder&&!B?(f=Q.decoder.write(f),Q.objectMode||f.length!==0?N(b,Q,f,!1):d(b,Q)):N(b,Q,f,!1))):k||(Q.reading=!1)),function(G){return!G.ended&&(G.needReadable||G.length<G.highWaterMark||G.length===0)}(Q)}function N(b,f,B,k){f.flowing&&f.length===0&&!f.sync?(b.emit("data",B),b.read(0)):(f.length+=f.objectMode?1:B.length,k?f.buffer.unshift(B):f.buffer.push(B),f.needReadable&&q(b)),d(b,f)}Object.defineProperty(A.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(b){this._readableState&&(this._readableState.destroyed=b)}}),A.prototype.destroy=P.destroy,A.prototype._undestroy=P.undestroy,A.prototype._destroy=function(b,f){this.push(null),f(b)},A.prototype.push=function(b,f){var B,k=this._readableState;return k.objectMode?B=!0:typeof b=="string"&&((f=f||k.defaultEncoding)!==k.encoding&&(b=m.from(b,f),f=""),B=!0),p(this,b,f,!1,B)},A.prototype.unshift=function(b){return p(this,b,null,!0,!1)},A.prototype.isPaused=function(){return this._readableState.flowing===!1},A.prototype.setEncoding=function(b){return w||(w=r(19).StringDecoder),this._readableState.decoder=new w(b),this._readableState.encoding=b,this};function $(b,f){return b<=0||f.length===0&&f.ended?0:f.objectMode?1:b!=b?f.flowing&&f.length?f.buffer.head.data.length:f.length:(b>f.highWaterMark&&(f.highWaterMark=function(B){return B>=8388608?B=8388608:(B--,B|=B>>>1,B|=B>>>2,B|=B>>>4,B|=B>>>8,B|=B>>>16,B++),B}(b)),b<=f.length?b:f.ended?f.length:(f.needReadable=!0,0))}function q(b){var f=b._readableState;f.needReadable=!1,f.emittedReadable||(c("emitReadable",f.flowing),f.emittedReadable=!0,f.sync?g.nextTick(h,b):h(b))}function h(b){c("emit readable"),b.emit("readable"),D(b)}function d(b,f){f.readingMore||(f.readingMore=!0,g.nextTick(O,b,f))}function O(b,f){for(var B=f.length;!f.reading&&!f.flowing&&!f.ended&&f.length<f.highWaterMark&&(c("maybeReadMore read 0"),b.read(0),B!==f.length);)B=f.length;f.readingMore=!1}function _(b){c("readable nexttick read 0"),b.read(0)}function x(b,f){f.reading||(c("resume read 0"),b.read(0)),f.resumeScheduled=!1,f.awaitDrain=0,b.emit("resume"),D(b),f.flowing&&!f.reading&&b.read(0)}function D(b){var f=b._readableState;for(c("flow",f.flowing);f.flowing&&b.read()!==null;);}function L(b,f){return f.length===0?null:(f.objectMode?B=f.buffer.shift():!b||b>=f.length?(B=f.decoder?f.buffer.join(""):f.buffer.length===1?f.buffer.head.data:f.buffer.concat(f.length),f.buffer.clear()):B=function(k,Y,K){var Q;return k<Y.head.data.length?(Q=Y.head.data.slice(0,k),Y.head.data=Y.head.data.slice(k)):Q=k===Y.head.data.length?Y.shift():K?function(G,V){var v=V.head,j=1,W=v.data;for(G-=W.length;v=v.next;){var ee=v.data,J=G>ee.length?ee.length:G;if(J===ee.length?W+=ee:W+=ee.slice(0,G),(G-=J)==0){J===ee.length?(++j,v.next?V.head=v.next:V.head=V.tail=null):(V.head=v,v.data=ee.slice(J));break}++j}return V.length-=j,W}(k,Y):function(G,V){var v=m.allocUnsafe(G),j=V.head,W=1;for(j.data.copy(v),G-=j.data.length;j=j.next;){var ee=j.data,J=G>ee.length?ee.length:G;if(ee.copy(v,v.length-G,0,J),(G-=J)==0){J===ee.length?(++W,j.next?V.head=j.next:V.head=V.tail=null):(V.head=j,j.data=ee.slice(J));break}++W}return V.length-=W,v}(k,Y),Q}(b,f.buffer,f.decoder),B);var B}function T(b){var f=b._readableState;if(f.length>0)throw new Error('"endReadable()" called on non-empty stream');f.endEmitted||(f.ended=!0,g.nextTick(C,f,b))}function C(b,f){b.endEmitted||b.length!==0||(b.endEmitted=!0,f.readable=!1,f.emit("end"))}function U(b,f){for(var B=0,k=b.length;B<k;B++)if(b[B]===f)return B;return-1}A.prototype.read=function(b){c("read",b),b=parseInt(b,10);var f=this._readableState,B=b;if(b!==0&&(f.emittedReadable=!1),b===0&&f.needReadable&&(f.length>=f.highWaterMark||f.ended))return c("read: emitReadable",f.length,f.ended),f.length===0&&f.ended?T(this):q(this),null;if((b=$(b,f))===0&&f.ended)return f.length===0&&T(this),null;var k,Y=f.needReadable;return c("need readable",Y),(f.length===0||f.length-b<f.highWaterMark)&&c("length less than watermark",Y=!0),f.ended||f.reading?c("reading or ended",Y=!1):Y&&(c("do read"),f.reading=!0,f.sync=!0,f.length===0&&(f.needReadable=!0),this._read(f.highWaterMark),f.sync=!1,f.reading||(b=$(B,f))),(k=b>0?L(b,f):null)===null?(f.needReadable=!0,b=0):f.length-=b,f.length===0&&(f.ended||(f.needReadable=!0),B!==b&&f.ended&&T(this)),k!==null&&this.emit("data",k),k},A.prototype._read=function(b){this.emit("error",new Error("_read() is not implemented"))},A.prototype.pipe=function(b,f){var B=this,k=this._readableState;switch(k.pipesCount){case 0:k.pipes=b;break;case 1:k.pipes=[k.pipes,b];break;default:k.pipes.push(b)}k.pipesCount+=1,c("pipe count=%d opts=%j",k.pipesCount,f);var Y=(!f||f.end!==!1)&&b!==i.stdout&&b!==i.stderr?Q:re;function K(se,oe){c("onunpipe"),se===B&&oe&&oe.hasUnpiped===!1&&(oe.hasUnpiped=!0,c("cleanup"),b.removeListener("close",ee),b.removeListener("finish",J),b.removeListener("drain",G),b.removeListener("error",W),b.removeListener("unpipe",K),B.removeListener("end",Q),B.removeListener("end",re),B.removeListener("data",j),V=!0,!k.awaitDrain||b._writableState&&!b._writableState.needDrain||G())}function Q(){c("onend"),b.end()}k.endEmitted?g.nextTick(Y):B.once("end",Y),b.on("unpipe",K);var G=function(se){return function(){var oe=se._readableState;c("pipeOnDrain",oe.awaitDrain),oe.awaitDrain&&oe.awaitDrain--,oe.awaitDrain===0&&l(se,"data")&&(oe.flowing=!0,D(se))}}(B);b.on("drain",G);var V=!1,v=!1;function j(se){c("ondata"),v=!1,b.write(se)!==!1||v||((k.pipesCount===1&&k.pipes===b||k.pipesCount>1&&U(k.pipes,b)!==-1)&&!V&&(c("false write response, pause",B._readableState.awaitDrain),B._readableState.awaitDrain++,v=!0),B.pause())}function W(se){c("onerror",se),re(),b.removeListener("error",W),l(b,"error")===0&&b.emit("error",se)}function ee(){b.removeListener("finish",J),re()}function J(){c("onfinish"),b.removeListener("close",ee),re()}function re(){c("unpipe"),B.unpipe(b)}return B.on("data",j),function(se,oe,z){if(typeof se.prependListener=="function")return se.prependListener(oe,z);se._events&&se._events[oe]?o(se._events[oe])?se._events[oe].unshift(z):se._events[oe]=[z,se._events[oe]]:se.on(oe,z)}(b,"error",W),b.once("close",ee),b.once("finish",J),b.emit("pipe",B),k.flowing||(c("pipe resume"),B.resume()),b},A.prototype.unpipe=function(b){var f=this._readableState,B={hasUnpiped:!1};if(f.pipesCount===0)return this;if(f.pipesCount===1)return b&&b!==f.pipes||(b||(b=f.pipes),f.pipes=null,f.pipesCount=0,f.flowing=!1,b&&b.emit("unpipe",this,B)),this;if(!b){var k=f.pipes,Y=f.pipesCount;f.pipes=null,f.pipesCount=0,f.flowing=!1;for(var K=0;K<Y;K++)k[K].emit("unpipe",this,B);return this}var Q=U(f.pipes,b);return Q===-1||(f.pipes.splice(Q,1),f.pipesCount-=1,f.pipesCount===1&&(f.pipes=f.pipes[0]),b.emit("unpipe",this,B)),this},A.prototype.on=function(b,f){var B=u.prototype.on.call(this,b,f);if(b==="data")this._readableState.flowing!==!1&&this.resume();else if(b==="readable"){var k=this._readableState;k.endEmitted||k.readableListening||(k.readableListening=k.needReadable=!0,k.emittedReadable=!1,k.reading?k.length&&q(this):g.nextTick(_,this))}return B},A.prototype.addListener=A.prototype.on,A.prototype.resume=function(){var b=this._readableState;return b.flowing||(c("resume"),b.flowing=!0,function(f,B){B.resumeScheduled||(B.resumeScheduled=!0,g.nextTick(x,f,B))}(this,b)),this},A.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this},A.prototype.wrap=function(b){var f=this,B=this._readableState,k=!1;for(var Y in b.on("end",function(){if(c("wrapped end"),B.decoder&&!B.ended){var Q=B.decoder.end();Q&&Q.length&&f.push(Q)}f.push(null)}),b.on("data",function(Q){c("wrapped data"),B.decoder&&(Q=B.decoder.write(Q)),B.objectMode&&Q==null||(B.objectMode||Q&&Q.length)&&(f.push(Q)||(k=!0,b.pause()))}),b)this[Y]===void 0&&typeof b[Y]=="function"&&(this[Y]=function(Q){return function(){return b[Q].apply(b,arguments)}}(Y));for(var K=0;K<F.length;K++)b.on(F[K],this.emit.bind(this,F[K]));return this._read=function(Q){c("wrapped _read",Q),k&&(k=!1,b.resume())},this},Object.defineProperty(A.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),A._fromList=L}).call(this,r(5),r(2))},function(e,t,r){e.exports=r(18).EventEmitter},function(e,t,r){var n=r(13);function i(g,s){g.emit("error",s)}e.exports={destroy:function(g,s){var o=this,l=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return l||u?(s?s(g):!g||this._writableState&&this._writableState.errorEmitted||n.nextTick(i,this,g),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(g||null,function(m){!s&&m?(n.nextTick(i,o,m),o._writableState&&(o._writableState.errorEmitted=!0)):s&&s(m)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},function(e,t,r){e.exports=s;var n=r(20),i=r(14);function g(u,m){var R=this._transformState;R.transforming=!1;var y=R.writecb;if(!y)return this.emit("error",new Error("write callback called multiple times"));R.writechunk=null,R.writecb=null,m!=null&&this.push(m),y(u);var S=this._readableState;S.reading=!1,(S.needReadable||S.length<S.highWaterMark)&&this._read(S.highWaterMark)}function s(u){if(!(this instanceof s))return new s(u);n.call(this,u),this._transformState={afterTransform:g.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,u&&(typeof u.transform=="function"&&(this._transform=u.transform),typeof u.flush=="function"&&(this._flush=u.flush)),this.on("prefinish",o)}function o(){var u=this;typeof this._flush=="function"?this._flush(function(m,R){l(u,m,R)}):l(this,null,null)}function l(u,m,R){if(m)return u.emit("error",m);if(R!=null&&u.push(R),u._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(u._transformState.transforming)throw new Error("Calling transform done when still transforming");return u.push(null)}i.inherits=r(6),i.inherits(s,n),s.prototype.push=function(u,m){return this._transformState.needTransform=!1,n.prototype.push.call(this,u,m)},s.prototype._transform=function(u,m,R){throw new Error("_transform() is not implemented")},s.prototype._write=function(u,m,R){var y=this._transformState;if(y.writecb=R,y.writechunk=u,y.writeencoding=m,!y.transforming){var S=this._readableState;(y.needTransform||S.needReadable||S.length<S.highWaterMark)&&this._read(S.highWaterMark)}},s.prototype._read=function(u){var m=this._transformState;m.writechunk!==null&&m.writecb&&!m.transforming?(m.transforming=!0,this._transform(m.writechunk,m.writeencoding,m.afterTransform)):m.needTransform=!0},s.prototype._destroy=function(u,m){var R=this;n.prototype._destroy.call(this,u,function(y){m(y),R.emit("close")})}},function(e,t,r){e.exports=r(44)},function(e,t,r){(function(n){var i=r(169);function g(h,d){if(h===d)return 0;for(var O=h.length,_=d.length,x=0,D=Math.min(O,_);x<D;++x)if(h[x]!==d[x]){O=h[x],_=d[x];break}return O<_?-1:_<O?1:0}function s(h){return n.Buffer&&typeof n.Buffer.isBuffer=="function"?n.Buffer.isBuffer(h):!(h==null||!h._isBuffer)}var o=r(9),l=Object.prototype.hasOwnProperty,u=Array.prototype.slice,m=function(){}.name==="foo";function R(h){return Object.prototype.toString.call(h)}function y(h){return!s(h)&&typeof n.ArrayBuffer=="function"&&(typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(h):!!h&&(h instanceof DataView||!!(h.buffer&&h.buffer instanceof ArrayBuffer)))}var S=e.exports=M,c=/\s*function\s+([^\(\s]*)\s*/;function w(h){if(o.isFunction(h)){if(m)return h.name;var d=h.toString().match(c);return d&&d[1]}}function E(h,d){return typeof h=="string"?h.length<d?h:h.slice(0,d):h}function P(h){if(m||!o.isFunction(h))return o.inspect(h);var d=w(h);return"[Function"+(d?": "+d:"")+"]"}function F(h,d,O,_,x){throw new S.AssertionError({message:O,actual:h,expected:d,operator:_,stackStartFunction:x})}function M(h,d){h||F(h,!0,d,"==",S.ok)}function A(h,d,O,_){if(h===d)return!0;if(s(h)&&s(d))return g(h,d)===0;if(o.isDate(h)&&o.isDate(d))return h.getTime()===d.getTime();if(o.isRegExp(h)&&o.isRegExp(d))return h.source===d.source&&h.global===d.global&&h.multiline===d.multiline&&h.lastIndex===d.lastIndex&&h.ignoreCase===d.ignoreCase;if(h!==null&&typeof h=="object"||d!==null&&typeof d=="object"){if(y(h)&&y(d)&&R(h)===R(d)&&!(h instanceof Float32Array||h instanceof Float64Array))return g(new Uint8Array(h.buffer),new Uint8Array(d.buffer))===0;if(s(h)!==s(d))return!1;var x=(_=_||{actual:[],expected:[]}).actual.indexOf(h);return x!==-1&&x===_.expected.indexOf(d)||(_.actual.push(h),_.expected.push(d),function(D,L,T,C){if(D==null||L==null)return!1;if(o.isPrimitive(D)||o.isPrimitive(L))return D===L;if(T&&Object.getPrototypeOf(D)!==Object.getPrototypeOf(L))return!1;var U=p(D),b=p(L);if(U&&!b||!U&&b)return!1;if(U)return D=u.call(D),L=u.call(L),A(D,L,T);var f,B,k=q(D),Y=q(L);if(k.length!==Y.length)return!1;for(k.sort(),Y.sort(),B=k.length-1;B>=0;B--)if(k[B]!==Y[B])return!1;for(B=k.length-1;B>=0;B--)if(f=k[B],!A(D[f],L[f],T,C))return!1;return!0}(h,d,O,_))}return O?h===d:h==d}function p(h){return Object.prototype.toString.call(h)=="[object Arguments]"}function N(h,d){if(!h||!d)return!1;if(Object.prototype.toString.call(d)=="[object RegExp]")return d.test(h);try{if(h instanceof d)return!0}catch{}return!Error.isPrototypeOf(d)&&d.call({},h)===!0}function $(h,d,O,_){var x;if(typeof d!="function")throw new TypeError('"block" argument must be a function');typeof O=="string"&&(_=O,O=null),x=function(T){var C;try{T()}catch(U){C=U}return C}(d),_=(O&&O.name?" ("+O.name+").":".")+(_?" "+_:"."),h&&!x&&F(x,O,"Missing expected exception"+_);var D=typeof _=="string",L=!h&&x&&!O;if((!h&&o.isError(x)&&D&&N(x,O)||L)&&F(x,O,"Got unwanted exception"+_),h&&x&&O&&!N(x,O)||!h&&x)throw x}S.AssertionError=function(h){this.name="AssertionError",this.actual=h.actual,this.expected=h.expected,this.operator=h.operator,h.message?(this.message=h.message,this.generatedMessage=!1):(this.message=function(T){return E(P(T.actual),128)+" "+T.operator+" "+E(P(T.expected),128)}(this),this.generatedMessage=!0);var d=h.stackStartFunction||F;if(Error.captureStackTrace)Error.captureStackTrace(this,d);else{var O=new Error;if(O.stack){var _=O.stack,x=w(d),D=_.indexOf(`
|
|
23
|
+
`))}}Object.defineProperty(i,s,{get:o,set:o})},forProperties:function(i,g,s){s.forEach(function(o){var l=t.warn[g](o);Object.defineProperty(i,o,{get:l,set:l})})}}},function(e,t,r){(function(n,i,g){var s=r(13);function o(d){var O=this;this.next=null,this.entry=null,this.finish=function(){(function(_,x,D){var L=_.entry;for(_.entry=null;L;){var T=L.callback;x.pendingcb--,T(D),L=L.next}x.corkedRequestsFree?x.corkedRequestsFree.next=_:x.corkedRequestsFree=_})(O,d)}}e.exports=M;var l,u=!n.browser&&["v0.10","v0.9."].indexOf(n.version.slice(0,5))>-1?i:s.nextTick;M.WritableState=F;var m=Object.create(r(14));m.inherits=r(6);var R={deprecate:r(39)},y=r(61),S=r(40).Buffer,c=g.Uint8Array||function(){},w,E=r(62);function P(){}function F(d,O){l=l||r(32),d=d||{};var _=O instanceof l;this.objectMode=!!d.objectMode,_&&(this.objectMode=this.objectMode||!!d.writableObjectMode);var x=d.highWaterMark,D=d.writableHighWaterMark,L=this.objectMode?16:16384;this.highWaterMark=x||x===0?x:_&&(D||D===0)?D:L,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var T=d.decodeStrings===!1;this.decodeStrings=!T,this.defaultEncoding=d.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(C){(function(U,b){var f=U._writableState,B=f.sync,k=f.writecb;if(function(K){K.writing=!1,K.writecb=null,K.length-=K.writelen,K.writelen=0}(f),b)(function(K,Q,G,V,v){--Q.pendingcb,G?(s.nextTick(v,V),s.nextTick(h,K,Q),K._writableState.errorEmitted=!0,K.emit("error",V)):(v(V),K._writableState.errorEmitted=!0,K.emit("error",V),h(K,Q))})(U,f,B,b,k);else{var Y=$(f);Y||f.corked||f.bufferProcessing||!f.bufferedRequest||N(U,f),B?u(p,U,f,Y,k):p(U,f,Y,k)}})(O,C)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function M(d){if(l=l||r(32),!(w.call(M,this)||this instanceof l))return new M(d);this._writableState=new F(d,this),this.writable=!0,d&&(typeof d.write=="function"&&(this._write=d.write),typeof d.writev=="function"&&(this._writev=d.writev),typeof d.destroy=="function"&&(this._destroy=d.destroy),typeof d.final=="function"&&(this._final=d.final)),y.call(this)}function A(d,O,_,x,D,L,T){O.writelen=x,O.writecb=T,O.writing=!0,O.sync=!0,_?d._writev(D,O.onwrite):d._write(D,L,O.onwrite),O.sync=!1}function p(d,O,_,x){_||function(D,L){L.length===0&&L.needDrain&&(L.needDrain=!1,D.emit("drain"))}(d,O),O.pendingcb--,x(),h(d,O)}function N(d,O){O.bufferProcessing=!0;var _=O.bufferedRequest;if(d._writev&&_&&_.next){var x=O.bufferedRequestCount,D=new Array(x),L=O.corkedRequestsFree;L.entry=_;for(var T=0,C=!0;_;)D[T]=_,_.isBuf||(C=!1),_=_.next,T+=1;D.allBuffers=C,A(d,O,!0,O.length,D,"",L.finish),O.pendingcb++,O.lastBufferedRequest=null,L.next?(O.corkedRequestsFree=L.next,L.next=null):O.corkedRequestsFree=new o(O),O.bufferedRequestCount=0}else{for(;_;){var U=_.chunk,b=_.encoding,f=_.callback;if(A(d,O,!1,O.objectMode?1:U.length,U,b,f),_=_.next,O.bufferedRequestCount--,O.writing)break}_===null&&(O.lastBufferedRequest=null)}O.bufferedRequest=_,O.bufferProcessing=!1}function $(d){return d.ending&&d.length===0&&d.bufferedRequest===null&&!d.finished&&!d.writing}function q(d,O){d._final(function(_){O.pendingcb--,_&&d.emit("error",_),O.prefinished=!0,d.emit("prefinish"),h(d,O)})}function h(d,O){var _=$(O);return _&&(function(x,D){D.prefinished||D.finalCalled||(typeof x._final=="function"?(D.pendingcb++,D.finalCalled=!0,s.nextTick(q,x,D)):(D.prefinished=!0,x.emit("prefinish")))}(d,O),O.pendingcb===0&&(O.finished=!0,d.emit("finish"))),_}m.inherits(M,y),F.prototype.getBuffer=function(){for(var d=this.bufferedRequest,O=[];d;)O.push(d),d=d.next;return O},function(){try{Object.defineProperty(F.prototype,"buffer",{get:R.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}(),typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(w=Function.prototype[Symbol.hasInstance],Object.defineProperty(M,Symbol.hasInstance,{value:function(d){return!!w.call(this,d)||this===M&&d&&d._writableState instanceof F}})):w=function(d){return d instanceof this},M.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},M.prototype.write=function(d,O,_){var x,D=this._writableState,L=!1,T=!D.objectMode&&(x=d,S.isBuffer(x)||x instanceof c);return T&&!S.isBuffer(d)&&(d=function(C){return S.from(C)}(d)),typeof O=="function"&&(_=O,O=null),T?O="buffer":O||(O=D.defaultEncoding),typeof _!="function"&&(_=P),D.ended?function(C,U){var b=new Error("write after end");C.emit("error",b),s.nextTick(U,b)}(this,_):(T||function(C,U,b,f){var B=!0,k=!1;return b===null?k=new TypeError("May not write null values to stream"):typeof b=="string"||b===void 0||U.objectMode||(k=new TypeError("Invalid non-string/buffer chunk")),k&&(C.emit("error",k),s.nextTick(f,k),B=!1),B}(this,D,d,_))&&(D.pendingcb++,L=function(C,U,b,f,B,k){if(!b){var Y=function(V,v,j){return V.objectMode||V.decodeStrings===!1||typeof v!="string"||(v=S.from(v,j)),v}(U,f,B);f!==Y&&(b=!0,B="buffer",f=Y)}var K=U.objectMode?1:f.length;U.length+=K;var Q=U.length<U.highWaterMark;if(Q||(U.needDrain=!0),U.writing||U.corked){var G=U.lastBufferedRequest;U.lastBufferedRequest={chunk:f,encoding:B,isBuf:b,callback:k,next:null},G?G.next=U.lastBufferedRequest:U.bufferedRequest=U.lastBufferedRequest,U.bufferedRequestCount+=1}else A(C,U,!1,K,f,B,k);return Q}(this,D,T,d,O,_)),L},M.prototype.cork=function(){this._writableState.corked++},M.prototype.uncork=function(){var d=this._writableState;d.corked&&(d.corked--,d.writing||d.corked||d.finished||d.bufferProcessing||!d.bufferedRequest||N(this,d))},M.prototype.setDefaultEncoding=function(d){if(typeof d=="string"&&(d=d.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((d+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+d);return this._writableState.defaultEncoding=d,this},Object.defineProperty(M.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),M.prototype._write=function(d,O,_){_(new Error("_write() is not implemented"))},M.prototype._writev=null,M.prototype.end=function(d,O,_){var x=this._writableState;typeof d=="function"?(_=d,d=null,O=null):typeof O=="function"&&(_=O,O=null),d!=null&&this.write(d,O),x.corked&&(x.corked=1,this.uncork()),x.ending||x.finished||function(D,L,T){L.ending=!0,h(D,L),T&&(L.finished?s.nextTick(T):D.once("finish",T)),L.ended=!0,D.writable=!1}(this,x,_)},Object.defineProperty(M.prototype,"destroyed",{get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(d){this._writableState&&(this._writableState.destroyed=d)}}),M.prototype.destroy=E.destroy,M.prototype._undestroy=E.undestroy,M.prototype._destroy=function(d,O){this.end(),O(d)}}).call(this,r(2),r(12).setImmediate,r(5))},function(e,t,r){e.exports=r(18).EventEmitter},function(e,t,r){var n=r(13);function i(g,s){g.emit("error",s)}e.exports={destroy:function(g,s){var o=this,l=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return l||u?(s?s(g):!g||this._writableState&&this._writableState.errorEmitted||n.nextTick(i,this,g),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(g||null,function(m){!s&&m?(n.nextTick(i,o,m),o._writableState&&(o._writableState.errorEmitted=!0)):s&&s(m)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},function(e,t){},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=s(r(155)),i=s(r(23)),g=s(r(27));function s(o){return o&&o.__esModule?o:{default:o}}t.default=(0,g.default)(function(o,l,u,m){return(0,n.default)(l)(o,(0,i.default)(u),m)},4),e.exports=t.default},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(n){function i(...g){if(n!==null){var s=n;n=null,s.apply(this,g)}}return Object.assign(i,n),i},e.exports=t.default},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(n){return function(...i){if(n===null)throw new Error("Callback was already called.");var g=n;n=null,g.apply(this,i)}},e.exports=t.default},function(e,t,r){(function(n,i){var g=r(13);e.exports=A;var s,o=r(38);A.ReadableState=M,r(18).EventEmitter;var l=function(b,f){return b.listeners(f).length},u=r(68),m=r(43).Buffer,R=n.Uint8Array||function(){},y=r(14);y.inherits=r(6);var S=r(161),c=void 0;c=S&&S.debuglog?S.debuglog("stream"):function(){};var w,E=r(162),P=r(69);y.inherits(A,u);var F=["error","close","destroy","pause","resume"];function M(b,f){b=b||{};var B=f instanceof(s=s||r(20));this.objectMode=!!b.objectMode,B&&(this.objectMode=this.objectMode||!!b.readableObjectMode);var k=b.highWaterMark,Y=b.readableHighWaterMark,K=this.objectMode?16:16384;this.highWaterMark=k||k===0?k:B&&(Y||Y===0)?Y:K,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new E,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=b.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,b.encoding&&(w||(w=r(19).StringDecoder),this.decoder=new w(b.encoding),this.encoding=b.encoding)}function A(b){if(s=s||r(20),!(this instanceof A))return new A(b);this._readableState=new M(b,this),this.readable=!0,b&&(typeof b.read=="function"&&(this._read=b.read),typeof b.destroy=="function"&&(this._destroy=b.destroy)),u.call(this)}function p(b,f,B,k,Y){var K,Q=b._readableState;return f===null?(Q.reading=!1,function(G,V){if(!V.ended){if(V.decoder){var v=V.decoder.end();v&&v.length&&(V.buffer.push(v),V.length+=V.objectMode?1:v.length)}V.ended=!0,q(G)}}(b,Q)):(Y||(K=function(G,V){var v;j=V,m.isBuffer(j)||j instanceof R||typeof V=="string"||V===void 0||G.objectMode||(v=new TypeError("Invalid non-string/buffer chunk"));var j;return v}(Q,f)),K?b.emit("error",K):Q.objectMode||f&&f.length>0?(typeof f=="string"||Q.objectMode||Object.getPrototypeOf(f)===m.prototype||(f=function(G){return m.from(G)}(f)),k?Q.endEmitted?b.emit("error",new Error("stream.unshift() after end event")):N(b,Q,f,!0):Q.ended?b.emit("error",new Error("stream.push() after EOF")):(Q.reading=!1,Q.decoder&&!B?(f=Q.decoder.write(f),Q.objectMode||f.length!==0?N(b,Q,f,!1):d(b,Q)):N(b,Q,f,!1))):k||(Q.reading=!1)),function(G){return!G.ended&&(G.needReadable||G.length<G.highWaterMark||G.length===0)}(Q)}function N(b,f,B,k){f.flowing&&f.length===0&&!f.sync?(b.emit("data",B),b.read(0)):(f.length+=f.objectMode?1:B.length,k?f.buffer.unshift(B):f.buffer.push(B),f.needReadable&&q(b)),d(b,f)}Object.defineProperty(A.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(b){this._readableState&&(this._readableState.destroyed=b)}}),A.prototype.destroy=P.destroy,A.prototype._undestroy=P.undestroy,A.prototype._destroy=function(b,f){this.push(null),f(b)},A.prototype.push=function(b,f){var B,k=this._readableState;return k.objectMode?B=!0:typeof b=="string"&&((f=f||k.defaultEncoding)!==k.encoding&&(b=m.from(b,f),f=""),B=!0),p(this,b,f,!1,B)},A.prototype.unshift=function(b){return p(this,b,null,!0,!1)},A.prototype.isPaused=function(){return this._readableState.flowing===!1},A.prototype.setEncoding=function(b){return w||(w=r(19).StringDecoder),this._readableState.decoder=new w(b),this._readableState.encoding=b,this};function $(b,f){return b<=0||f.length===0&&f.ended?0:f.objectMode?1:b!=b?f.flowing&&f.length?f.buffer.head.data.length:f.length:(b>f.highWaterMark&&(f.highWaterMark=function(B){return B>=8388608?B=8388608:(B--,B|=B>>>1,B|=B>>>2,B|=B>>>4,B|=B>>>8,B|=B>>>16,B++),B}(b)),b<=f.length?b:f.ended?f.length:(f.needReadable=!0,0))}function q(b){var f=b._readableState;f.needReadable=!1,f.emittedReadable||(c("emitReadable",f.flowing),f.emittedReadable=!0,f.sync?g.nextTick(h,b):h(b))}function h(b){c("emit readable"),b.emit("readable"),D(b)}function d(b,f){f.readingMore||(f.readingMore=!0,g.nextTick(O,b,f))}function O(b,f){for(var B=f.length;!f.reading&&!f.flowing&&!f.ended&&f.length<f.highWaterMark&&(c("maybeReadMore read 0"),b.read(0),B!==f.length);)B=f.length;f.readingMore=!1}function _(b){c("readable nexttick read 0"),b.read(0)}function x(b,f){f.reading||(c("resume read 0"),b.read(0)),f.resumeScheduled=!1,f.awaitDrain=0,b.emit("resume"),D(b),f.flowing&&!f.reading&&b.read(0)}function D(b){var f=b._readableState;for(c("flow",f.flowing);f.flowing&&b.read()!==null;);}function L(b,f){return f.length===0?null:(f.objectMode?B=f.buffer.shift():!b||b>=f.length?(B=f.decoder?f.buffer.join(""):f.buffer.length===1?f.buffer.head.data:f.buffer.concat(f.length),f.buffer.clear()):B=function(k,Y,K){var Q;return k<Y.head.data.length?(Q=Y.head.data.slice(0,k),Y.head.data=Y.head.data.slice(k)):Q=k===Y.head.data.length?Y.shift():K?function(G,V){var v=V.head,j=1,W=v.data;for(G-=W.length;v=v.next;){var ee=v.data,J=G>ee.length?ee.length:G;if(J===ee.length?W+=ee:W+=ee.slice(0,G),(G-=J)==0){J===ee.length?(++j,v.next?V.head=v.next:V.head=V.tail=null):(V.head=v,v.data=ee.slice(J));break}++j}return V.length-=j,W}(k,Y):function(G,V){var v=m.allocUnsafe(G),j=V.head,W=1;for(j.data.copy(v),G-=j.data.length;j=j.next;){var ee=j.data,J=G>ee.length?ee.length:G;if(ee.copy(v,v.length-G,0,J),(G-=J)==0){J===ee.length?(++W,j.next?V.head=j.next:V.head=V.tail=null):(V.head=j,j.data=ee.slice(J));break}++W}return V.length-=W,v}(k,Y),Q}(b,f.buffer,f.decoder),B);var B}function T(b){var f=b._readableState;if(f.length>0)throw new Error('"endReadable()" called on non-empty stream');f.endEmitted||(f.ended=!0,g.nextTick(C,f,b))}function C(b,f){b.endEmitted||b.length!==0||(b.endEmitted=!0,f.readable=!1,f.emit("end"))}function U(b,f){for(var B=0,k=b.length;B<k;B++)if(b[B]===f)return B;return-1}A.prototype.read=function(b){c("read",b),b=parseInt(b,10);var f=this._readableState,B=b;if(b!==0&&(f.emittedReadable=!1),b===0&&f.needReadable&&(f.length>=f.highWaterMark||f.ended))return c("read: emitReadable",f.length,f.ended),f.length===0&&f.ended?T(this):q(this),null;if((b=$(b,f))===0&&f.ended)return f.length===0&&T(this),null;var k,Y=f.needReadable;return c("need readable",Y),(f.length===0||f.length-b<f.highWaterMark)&&c("length less than watermark",Y=!0),f.ended||f.reading?c("reading or ended",Y=!1):Y&&(c("do read"),f.reading=!0,f.sync=!0,f.length===0&&(f.needReadable=!0),this._read(f.highWaterMark),f.sync=!1,f.reading||(b=$(B,f))),(k=b>0?L(b,f):null)===null?(f.needReadable=!0,b=0):f.length-=b,f.length===0&&(f.ended||(f.needReadable=!0),B!==b&&f.ended&&T(this)),k!==null&&this.emit("data",k),k},A.prototype._read=function(b){this.emit("error",new Error("_read() is not implemented"))},A.prototype.pipe=function(b,f){var B=this,k=this._readableState;switch(k.pipesCount){case 0:k.pipes=b;break;case 1:k.pipes=[k.pipes,b];break;default:k.pipes.push(b)}k.pipesCount+=1,c("pipe count=%d opts=%j",k.pipesCount,f);var Y=(!f||f.end!==!1)&&b!==i.stdout&&b!==i.stderr?Q:re;function K(se,oe){c("onunpipe"),se===B&&oe&&oe.hasUnpiped===!1&&(oe.hasUnpiped=!0,c("cleanup"),b.removeListener("close",ee),b.removeListener("finish",J),b.removeListener("drain",G),b.removeListener("error",W),b.removeListener("unpipe",K),B.removeListener("end",Q),B.removeListener("end",re),B.removeListener("data",j),V=!0,!k.awaitDrain||b._writableState&&!b._writableState.needDrain||G())}function Q(){c("onend"),b.end()}k.endEmitted?g.nextTick(Y):B.once("end",Y),b.on("unpipe",K);var G=function(se){return function(){var oe=se._readableState;c("pipeOnDrain",oe.awaitDrain),oe.awaitDrain&&oe.awaitDrain--,oe.awaitDrain===0&&l(se,"data")&&(oe.flowing=!0,D(se))}}(B);b.on("drain",G);var V=!1,v=!1;function j(se){c("ondata"),v=!1,b.write(se)!==!1||v||((k.pipesCount===1&&k.pipes===b||k.pipesCount>1&&U(k.pipes,b)!==-1)&&!V&&(c("false write response, pause",B._readableState.awaitDrain),B._readableState.awaitDrain++,v=!0),B.pause())}function W(se){c("onerror",se),re(),b.removeListener("error",W),l(b,"error")===0&&b.emit("error",se)}function ee(){b.removeListener("finish",J),re()}function J(){c("onfinish"),b.removeListener("close",ee),re()}function re(){c("unpipe"),B.unpipe(b)}return B.on("data",j),function(se,oe,z){if(typeof se.prependListener=="function")return se.prependListener(oe,z);se._events&&se._events[oe]?o(se._events[oe])?se._events[oe].unshift(z):se._events[oe]=[z,se._events[oe]]:se.on(oe,z)}(b,"error",W),b.once("close",ee),b.once("finish",J),b.emit("pipe",B),k.flowing||(c("pipe resume"),B.resume()),b},A.prototype.unpipe=function(b){var f=this._readableState,B={hasUnpiped:!1};if(f.pipesCount===0)return this;if(f.pipesCount===1)return b&&b!==f.pipes||(b||(b=f.pipes),f.pipes=null,f.pipesCount=0,f.flowing=!1,b&&b.emit("unpipe",this,B)),this;if(!b){var k=f.pipes,Y=f.pipesCount;f.pipes=null,f.pipesCount=0,f.flowing=!1;for(var K=0;K<Y;K++)k[K].emit("unpipe",this,B);return this}var Q=U(f.pipes,b);return Q===-1||(f.pipes.splice(Q,1),f.pipesCount-=1,f.pipesCount===1&&(f.pipes=f.pipes[0]),b.emit("unpipe",this,B)),this},A.prototype.on=function(b,f){var B=u.prototype.on.call(this,b,f);if(b==="data")this._readableState.flowing!==!1&&this.resume();else if(b==="readable"){var k=this._readableState;k.endEmitted||k.readableListening||(k.readableListening=k.needReadable=!0,k.emittedReadable=!1,k.reading?k.length&&q(this):g.nextTick(_,this))}return B},A.prototype.addListener=A.prototype.on,A.prototype.resume=function(){var b=this._readableState;return b.flowing||(c("resume"),b.flowing=!0,function(f,B){B.resumeScheduled||(B.resumeScheduled=!0,g.nextTick(x,f,B))}(this,b)),this},A.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this},A.prototype.wrap=function(b){var f=this,B=this._readableState,k=!1;for(var Y in b.on("end",function(){if(c("wrapped end"),B.decoder&&!B.ended){var Q=B.decoder.end();Q&&Q.length&&f.push(Q)}f.push(null)}),b.on("data",function(Q){c("wrapped data"),B.decoder&&(Q=B.decoder.write(Q)),B.objectMode&&Q==null||(B.objectMode||Q&&Q.length)&&(f.push(Q)||(k=!0,b.pause()))}),b)this[Y]===void 0&&typeof b[Y]=="function"&&(this[Y]=function(Q){return function(){return b[Q].apply(b,arguments)}}(Y));for(var K=0;K<F.length;K++)b.on(F[K],this.emit.bind(this,F[K]));return this._read=function(Q){c("wrapped _read",Q),k&&(k=!1,b.resume())},this},Object.defineProperty(A.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),A._fromList=L}).call(this,r(5),r(2))},function(e,t,r){e.exports=r(18).EventEmitter},function(e,t,r){var n=r(13);function i(g,s){g.emit("error",s)}e.exports={destroy:function(g,s){var o=this,l=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return l||u?(s?s(g):!g||this._writableState&&this._writableState.errorEmitted||n.nextTick(i,this,g),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(g||null,function(m){!s&&m?(n.nextTick(i,o,m),o._writableState&&(o._writableState.errorEmitted=!0)):s&&s(m)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},function(e,t,r){e.exports=s;var n=r(20),i=r(14);function g(u,m){var R=this._transformState;R.transforming=!1;var y=R.writecb;if(!y)return this.emit("error",new Error("write callback called multiple times"));R.writechunk=null,R.writecb=null,m!=null&&this.push(m),y(u);var S=this._readableState;S.reading=!1,(S.needReadable||S.length<S.highWaterMark)&&this._read(S.highWaterMark)}function s(u){if(!(this instanceof s))return new s(u);n.call(this,u),this._transformState={afterTransform:g.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,u&&(typeof u.transform=="function"&&(this._transform=u.transform),typeof u.flush=="function"&&(this._flush=u.flush)),this.on("prefinish",o)}function o(){var u=this;typeof this._flush=="function"?this._flush(function(m,R){l(u,m,R)}):l(this,null,null)}function l(u,m,R){if(m)return u.emit("error",m);if(R!=null&&u.push(R),u._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(u._transformState.transforming)throw new Error("Calling transform done when still transforming");return u.push(null)}i.inherits=r(6),i.inherits(s,n),s.prototype.push=function(u,m){return this._transformState.needTransform=!1,n.prototype.push.call(this,u,m)},s.prototype._transform=function(u,m,R){throw new Error("_transform() is not implemented")},s.prototype._write=function(u,m,R){var y=this._transformState;if(y.writecb=R,y.writechunk=u,y.writeencoding=m,!y.transforming){var S=this._readableState;(y.needTransform||S.needReadable||S.length<S.highWaterMark)&&this._read(S.highWaterMark)}},s.prototype._read=function(u){var m=this._transformState;m.writechunk!==null&&m.writecb&&!m.transforming?(m.transforming=!0,this._transform(m.writechunk,m.writeencoding,m.afterTransform)):m.needTransform=!0},s.prototype._destroy=function(u,m){var R=this;n.prototype._destroy.call(this,u,function(y){m(y),R.emit("close")})}},function(e,t,r){e.exports=r(44)},function(e,t,r){(function(n){var i=r(169);function g(h,d){if(h===d)return 0;for(var O=h.length,_=d.length,x=0,D=Math.min(O,_);x<D;++x)if(h[x]!==d[x]){O=h[x],_=d[x];break}return O<_?-1:_<O?1:0}function s(h){return n.Buffer&&typeof n.Buffer.isBuffer=="function"?n.Buffer.isBuffer(h):!(h==null||!h._isBuffer)}var o=r(10),l=Object.prototype.hasOwnProperty,u=Array.prototype.slice,m=function(){}.name==="foo";function R(h){return Object.prototype.toString.call(h)}function y(h){return!s(h)&&typeof n.ArrayBuffer=="function"&&(typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(h):!!h&&(h instanceof DataView||!!(h.buffer&&h.buffer instanceof ArrayBuffer)))}var S=e.exports=M,c=/\s*function\s+([^\(\s]*)\s*/;function w(h){if(o.isFunction(h)){if(m)return h.name;var d=h.toString().match(c);return d&&d[1]}}function E(h,d){return typeof h=="string"?h.length<d?h:h.slice(0,d):h}function P(h){if(m||!o.isFunction(h))return o.inspect(h);var d=w(h);return"[Function"+(d?": "+d:"")+"]"}function F(h,d,O,_,x){throw new S.AssertionError({message:O,actual:h,expected:d,operator:_,stackStartFunction:x})}function M(h,d){h||F(h,!0,d,"==",S.ok)}function A(h,d,O,_){if(h===d)return!0;if(s(h)&&s(d))return g(h,d)===0;if(o.isDate(h)&&o.isDate(d))return h.getTime()===d.getTime();if(o.isRegExp(h)&&o.isRegExp(d))return h.source===d.source&&h.global===d.global&&h.multiline===d.multiline&&h.lastIndex===d.lastIndex&&h.ignoreCase===d.ignoreCase;if(h!==null&&typeof h=="object"||d!==null&&typeof d=="object"){if(y(h)&&y(d)&&R(h)===R(d)&&!(h instanceof Float32Array||h instanceof Float64Array))return g(new Uint8Array(h.buffer),new Uint8Array(d.buffer))===0;if(s(h)!==s(d))return!1;var x=(_=_||{actual:[],expected:[]}).actual.indexOf(h);return x!==-1&&x===_.expected.indexOf(d)||(_.actual.push(h),_.expected.push(d),function(D,L,T,C){if(D==null||L==null)return!1;if(o.isPrimitive(D)||o.isPrimitive(L))return D===L;if(T&&Object.getPrototypeOf(D)!==Object.getPrototypeOf(L))return!1;var U=p(D),b=p(L);if(U&&!b||!U&&b)return!1;if(U)return D=u.call(D),L=u.call(L),A(D,L,T);var f,B,k=q(D),Y=q(L);if(k.length!==Y.length)return!1;for(k.sort(),Y.sort(),B=k.length-1;B>=0;B--)if(k[B]!==Y[B])return!1;for(B=k.length-1;B>=0;B--)if(f=k[B],!A(D[f],L[f],T,C))return!1;return!0}(h,d,O,_))}return O?h===d:h==d}function p(h){return Object.prototype.toString.call(h)=="[object Arguments]"}function N(h,d){if(!h||!d)return!1;if(Object.prototype.toString.call(d)=="[object RegExp]")return d.test(h);try{if(h instanceof d)return!0}catch{}return!Error.isPrototypeOf(d)&&d.call({},h)===!0}function $(h,d,O,_){var x;if(typeof d!="function")throw new TypeError('"block" argument must be a function');typeof O=="string"&&(_=O,O=null),x=function(T){var C;try{T()}catch(U){C=U}return C}(d),_=(O&&O.name?" ("+O.name+").":".")+(_?" "+_:"."),h&&!x&&F(x,O,"Missing expected exception"+_);var D=typeof _=="string",L=!h&&x&&!O;if((!h&&o.isError(x)&&D&&N(x,O)||L)&&F(x,O,"Got unwanted exception"+_),h&&x&&O&&!N(x,O)||!h&&x)throw x}S.AssertionError=function(h){this.name="AssertionError",this.actual=h.actual,this.expected=h.expected,this.operator=h.operator,h.message?(this.message=h.message,this.generatedMessage=!1):(this.message=function(T){return E(P(T.actual),128)+" "+T.operator+" "+E(P(T.expected),128)}(this),this.generatedMessage=!0);var d=h.stackStartFunction||F;if(Error.captureStackTrace)Error.captureStackTrace(this,d);else{var O=new Error;if(O.stack){var _=O.stack,x=w(d),D=_.indexOf(`
|
|
24
24
|
`+x);if(D>=0){var L=_.indexOf(`
|
|
25
25
|
`,D+1);_=_.substring(L+1)}this.stack=_}}},o.inherits(S.AssertionError,Error),S.fail=F,S.ok=M,S.equal=function(h,d,O){h!=d&&F(h,d,O,"==",S.equal)},S.notEqual=function(h,d,O){h==d&&F(h,d,O,"!=",S.notEqual)},S.deepEqual=function(h,d,O){A(h,d,!1)||F(h,d,O,"deepEqual",S.deepEqual)},S.deepStrictEqual=function(h,d,O){A(h,d,!0)||F(h,d,O,"deepStrictEqual",S.deepStrictEqual)},S.notDeepEqual=function(h,d,O){A(h,d,!1)&&F(h,d,O,"notDeepEqual",S.notDeepEqual)},S.notDeepStrictEqual=function h(d,O,_){A(d,O,!0)&&F(d,O,_,"notDeepStrictEqual",h)},S.strictEqual=function(h,d,O){h!==d&&F(h,d,O,"===",S.strictEqual)},S.notStrictEqual=function(h,d,O){h===d&&F(h,d,O,"!==",S.notStrictEqual)},S.throws=function(h,d,O){$(!0,h,d,O)},S.doesNotThrow=function(h,d,O){$(!1,h,d,O)},S.ifError=function(h){if(h)throw h},S.strict=i(function h(d,O){d||F(d,!0,O,"==",h)},S,{equal:S.strictEqual,deepEqual:S.deepStrictEqual,notEqual:S.notStrictEqual,notDeepEqual:S.notDeepStrictEqual}),S.strict.strict=S.strict;var q=Object.keys||function(h){var d=[];for(var O in h)l.call(h,O)&&d.push(O);return d}}).call(this,r(5))},function(e,t,r){e.exports=function(n,i,g,s){for(var o=65535&n|0,l=n>>>16&65535|0,u=0;g!==0;){g-=u=g>2e3?2e3:g;do l=l+(o=o+i[s++]|0)|0;while(--u);o%=65521,l%=65521}return o|l<<16|0}},function(e,t,r){var n=function(){for(var i,g=[],s=0;s<256;s++){i=s;for(var o=0;o<8;o++)i=1&i?3988292384^i>>>1:i>>>1;g[s]=i}return g}();e.exports=function(i,g,s,o){var l=n,u=o+s;i^=-1;for(var m=o;m<u;m++)i=i>>>8^l[255&(i^g[m])];return-1^i}},function(e,t,r){(function(n,i){var g;e.exports=d,d.ReadableState=h,r(18).EventEmitter;var s=function(G,V){return G.listeners(V).length},o=r(76),l=r(4).Buffer,u=n.Uint8Array||function(){},m,R=r(178);m=R&&R.debuglog?R.debuglog("stream"):function(){};var y,S,c,w=r(179),E=r(77),P=r(78).getHighWaterMark,F=r(24).codes,M=F.ERR_INVALID_ARG_TYPE,A=F.ERR_STREAM_PUSH_AFTER_EOF,p=F.ERR_METHOD_NOT_IMPLEMENTED,N=F.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r(6)(d,o);var $=E.errorOrDestroy,q=["error","close","destroy","pause","resume"];function h(G,V,v){g=g||r(25),G=G||{},typeof v!="boolean"&&(v=V instanceof g),this.objectMode=!!G.objectMode,v&&(this.objectMode=this.objectMode||!!G.readableObjectMode),this.highWaterMark=P(this,G,"readableHighWaterMark",v),this.buffer=new w,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=G.emitClose!==!1,this.autoDestroy=!!G.autoDestroy,this.destroyed=!1,this.defaultEncoding=G.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,G.encoding&&(y||(y=r(19).StringDecoder),this.decoder=new y(G.encoding),this.encoding=G.encoding)}function d(G){if(g=g||r(25),!(this instanceof d))return new d(G);var V=this instanceof g;this._readableState=new h(G,this,V),this.readable=!0,G&&(typeof G.read=="function"&&(this._read=G.read),typeof G.destroy=="function"&&(this._destroy=G.destroy)),o.call(this)}function O(G,V,v,j,W){m("readableAddChunk",V);var ee,J=G._readableState;if(V===null)J.reading=!1,function(re,se){if(m("onEofChunk"),!se.ended){if(se.decoder){var oe=se.decoder.end();oe&&oe.length&&(se.buffer.push(oe),se.length+=se.objectMode?1:oe.length)}se.ended=!0,se.sync?D(re):(se.needReadable=!1,se.emittedReadable||(se.emittedReadable=!0,L(re)))}}(G,J);else if(W||(ee=function(re,se){var oe;z=se,l.isBuffer(z)||z instanceof u||typeof se=="string"||se===void 0||re.objectMode||(oe=new M("chunk",["string","Buffer","Uint8Array"],se));var z;return oe}(J,V)),ee)$(G,ee);else if(J.objectMode||V&&V.length>0)if(typeof V=="string"||J.objectMode||Object.getPrototypeOf(V)===l.prototype||(V=function(re){return l.from(re)}(V)),j)J.endEmitted?$(G,new N):_(G,J,V,!0);else if(J.ended)$(G,new A);else{if(J.destroyed)return!1;J.reading=!1,J.decoder&&!v?(V=J.decoder.write(V),J.objectMode||V.length!==0?_(G,J,V,!1):T(G,J)):_(G,J,V,!1)}else j||(J.reading=!1,T(G,J));return!J.ended&&(J.length<J.highWaterMark||J.length===0)}function _(G,V,v,j){V.flowing&&V.length===0&&!V.sync?(V.awaitDrain=0,G.emit("data",v)):(V.length+=V.objectMode?1:v.length,j?V.buffer.unshift(v):V.buffer.push(v),V.needReadable&&D(G)),T(G,V)}Object.defineProperty(d.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(G){this._readableState&&(this._readableState.destroyed=G)}}),d.prototype.destroy=E.destroy,d.prototype._undestroy=E.undestroy,d.prototype._destroy=function(G,V){V(G)},d.prototype.push=function(G,V){var v,j=this._readableState;return j.objectMode?v=!0:typeof G=="string"&&((V=V||j.defaultEncoding)!==j.encoding&&(G=l.from(G,V),V=""),v=!0),O(this,G,V,!1,v)},d.prototype.unshift=function(G){return O(this,G,null,!0,!1)},d.prototype.isPaused=function(){return this._readableState.flowing===!1},d.prototype.setEncoding=function(G){y||(y=r(19).StringDecoder);var V=new y(G);this._readableState.decoder=V,this._readableState.encoding=this._readableState.decoder.encoding;for(var v=this._readableState.buffer.head,j="";v!==null;)j+=V.write(v.data),v=v.next;return this._readableState.buffer.clear(),j!==""&&this._readableState.buffer.push(j),this._readableState.length=j.length,this};function x(G,V){return G<=0||V.length===0&&V.ended?0:V.objectMode?1:G!=G?V.flowing&&V.length?V.buffer.head.data.length:V.length:(G>V.highWaterMark&&(V.highWaterMark=function(v){return v>=1073741824?v=1073741824:(v--,v|=v>>>1,v|=v>>>2,v|=v>>>4,v|=v>>>8,v|=v>>>16,v++),v}(G)),G<=V.length?G:V.ended?V.length:(V.needReadable=!0,0))}function D(G){var V=G._readableState;m("emitReadable",V.needReadable,V.emittedReadable),V.needReadable=!1,V.emittedReadable||(m("emitReadable",V.flowing),V.emittedReadable=!0,i.nextTick(L,G))}function L(G){var V=G._readableState;m("emitReadable_",V.destroyed,V.length,V.ended),V.destroyed||!V.length&&!V.ended||(G.emit("readable"),V.emittedReadable=!1),V.needReadable=!V.flowing&&!V.ended&&V.length<=V.highWaterMark,B(G)}function T(G,V){V.readingMore||(V.readingMore=!0,i.nextTick(C,G,V))}function C(G,V){for(;!V.reading&&!V.ended&&(V.length<V.highWaterMark||V.flowing&&V.length===0);){var v=V.length;if(m("maybeReadMore read 0"),G.read(0),v===V.length)break}V.readingMore=!1}function U(G){var V=G._readableState;V.readableListening=G.listenerCount("readable")>0,V.resumeScheduled&&!V.paused?V.flowing=!0:G.listenerCount("data")>0&&G.resume()}function b(G){m("readable nexttick read 0"),G.read(0)}function f(G,V){m("resume",V.reading),V.reading||G.read(0),V.resumeScheduled=!1,G.emit("resume"),B(G),V.flowing&&!V.reading&&G.read(0)}function B(G){var V=G._readableState;for(m("flow",V.flowing);V.flowing&&G.read()!==null;);}function k(G,V){return V.length===0?null:(V.objectMode?v=V.buffer.shift():!G||G>=V.length?(v=V.decoder?V.buffer.join(""):V.buffer.length===1?V.buffer.first():V.buffer.concat(V.length),V.buffer.clear()):v=V.buffer.consume(G,V.decoder),v);var v}function Y(G){var V=G._readableState;m("endReadable",V.endEmitted),V.endEmitted||(V.ended=!0,i.nextTick(K,V,G))}function K(G,V){if(m("endReadableNT",G.endEmitted,G.length),!G.endEmitted&&G.length===0&&(G.endEmitted=!0,V.readable=!1,V.emit("end"),G.autoDestroy)){var v=V._writableState;(!v||v.autoDestroy&&v.finished)&&V.destroy()}}function Q(G,V){for(var v=0,j=G.length;v<j;v++)if(G[v]===V)return v;return-1}d.prototype.read=function(G){m("read",G),G=parseInt(G,10);var V=this._readableState,v=G;if(G!==0&&(V.emittedReadable=!1),G===0&&V.needReadable&&((V.highWaterMark!==0?V.length>=V.highWaterMark:V.length>0)||V.ended))return m("read: emitReadable",V.length,V.ended),V.length===0&&V.ended?Y(this):D(this),null;if((G=x(G,V))===0&&V.ended)return V.length===0&&Y(this),null;var j,W=V.needReadable;return m("need readable",W),(V.length===0||V.length-G<V.highWaterMark)&&m("length less than watermark",W=!0),V.ended||V.reading?m("reading or ended",W=!1):W&&(m("do read"),V.reading=!0,V.sync=!0,V.length===0&&(V.needReadable=!0),this._read(V.highWaterMark),V.sync=!1,V.reading||(G=x(v,V))),(j=G>0?k(G,V):null)===null?(V.needReadable=V.length<=V.highWaterMark,G=0):(V.length-=G,V.awaitDrain=0),V.length===0&&(V.ended||(V.needReadable=!0),v!==G&&V.ended&&Y(this)),j!==null&&this.emit("data",j),j},d.prototype._read=function(G){$(this,new p("_read()"))},d.prototype.pipe=function(G,V){var v=this,j=this._readableState;switch(j.pipesCount){case 0:j.pipes=G;break;case 1:j.pipes=[j.pipes,G];break;default:j.pipes.push(G)}j.pipesCount+=1,m("pipe count=%d opts=%j",j.pipesCount,V);var W=(!V||V.end!==!1)&&G!==i.stdout&&G!==i.stderr?J:ce;function ee(ae,he){m("onunpipe"),ae===v&&he&&he.hasUnpiped===!1&&(he.hasUnpiped=!0,m("cleanup"),G.removeListener("close",Z),G.removeListener("finish",te),G.removeListener("drain",re),G.removeListener("error",z),G.removeListener("unpipe",ee),v.removeListener("end",J),v.removeListener("end",ce),v.removeListener("data",oe),se=!0,!j.awaitDrain||G._writableState&&!G._writableState.needDrain||re())}function J(){m("onend"),G.end()}j.endEmitted?i.nextTick(W):v.once("end",W),G.on("unpipe",ee);var re=function(ae){return function(){var he=ae._readableState;m("pipeOnDrain",he.awaitDrain),he.awaitDrain&&he.awaitDrain--,he.awaitDrain===0&&s(ae,"data")&&(he.flowing=!0,B(ae))}}(v);G.on("drain",re);var se=!1;function oe(ae){m("ondata");var he=G.write(ae);m("dest.write",he),he===!1&&((j.pipesCount===1&&j.pipes===G||j.pipesCount>1&&Q(j.pipes,G)!==-1)&&!se&&(m("false write response, pause",j.awaitDrain),j.awaitDrain++),v.pause())}function z(ae){m("onerror",ae),ce(),G.removeListener("error",z),s(G,"error")===0&&$(G,ae)}function Z(){G.removeListener("finish",te),ce()}function te(){m("onfinish"),G.removeListener("close",Z),ce()}function ce(){m("unpipe"),v.unpipe(G)}return v.on("data",oe),function(ae,he,de){if(typeof ae.prependListener=="function")return ae.prependListener(he,de);ae._events&&ae._events[he]?Array.isArray(ae._events[he])?ae._events[he].unshift(de):ae._events[he]=[de,ae._events[he]]:ae.on(he,de)}(G,"error",z),G.once("close",Z),G.once("finish",te),G.emit("pipe",v),j.flowing||(m("pipe resume"),v.resume()),G},d.prototype.unpipe=function(G){var V=this._readableState,v={hasUnpiped:!1};if(V.pipesCount===0)return this;if(V.pipesCount===1)return G&&G!==V.pipes||(G||(G=V.pipes),V.pipes=null,V.pipesCount=0,V.flowing=!1,G&&G.emit("unpipe",this,v)),this;if(!G){var j=V.pipes,W=V.pipesCount;V.pipes=null,V.pipesCount=0,V.flowing=!1;for(var ee=0;ee<W;ee++)j[ee].emit("unpipe",this,{hasUnpiped:!1});return this}var J=Q(V.pipes,G);return J===-1||(V.pipes.splice(J,1),V.pipesCount-=1,V.pipesCount===1&&(V.pipes=V.pipes[0]),G.emit("unpipe",this,v)),this},d.prototype.on=function(G,V){var v=o.prototype.on.call(this,G,V),j=this._readableState;return G==="data"?(j.readableListening=this.listenerCount("readable")>0,j.flowing!==!1&&this.resume()):G==="readable"&&(j.endEmitted||j.readableListening||(j.readableListening=j.needReadable=!0,j.flowing=!1,j.emittedReadable=!1,m("on readable",j.length,j.reading),j.length?D(this):j.reading||i.nextTick(b,this))),v},d.prototype.addListener=d.prototype.on,d.prototype.removeListener=function(G,V){var v=o.prototype.removeListener.call(this,G,V);return G==="readable"&&i.nextTick(U,this),v},d.prototype.removeAllListeners=function(G){var V=o.prototype.removeAllListeners.apply(this,arguments);return G!=="readable"&&G!==void 0||i.nextTick(U,this),V},d.prototype.resume=function(){var G=this._readableState;return G.flowing||(m("resume"),G.flowing=!G.readableListening,function(V,v){v.resumeScheduled||(v.resumeScheduled=!0,i.nextTick(f,V,v))}(this,G)),G.paused=!1,this},d.prototype.pause=function(){return m("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(m("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},d.prototype.wrap=function(G){var V=this,v=this._readableState,j=!1;for(var W in G.on("end",function(){if(m("wrapped end"),v.decoder&&!v.ended){var J=v.decoder.end();J&&J.length&&V.push(J)}V.push(null)}),G.on("data",function(J){m("wrapped data"),v.decoder&&(J=v.decoder.write(J)),v.objectMode&&J==null||(v.objectMode||J&&J.length)&&(V.push(J)||(j=!0,G.pause()))}),G)this[W]===void 0&&typeof G[W]=="function"&&(this[W]=function(J){return function(){return G[J].apply(G,arguments)}}(W));for(var ee=0;ee<q.length;ee++)G.on(q[ee],this.emit.bind(this,q[ee]));return this._read=function(J){m("wrapped _read",J),j&&(j=!1,G.resume())},this},typeof Symbol=="function"&&(d.prototype[Symbol.asyncIterator]=function(){return S===void 0&&(S=r(181)),S(this)}),Object.defineProperty(d.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(d.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(d.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(G){this._readableState&&(this._readableState.flowing=G)}}),d._fromList=k,Object.defineProperty(d.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),typeof Symbol=="function"&&(d.from=function(G,V){return c===void 0&&(c=r(182)),c(d,G,V)})}).call(this,r(5),r(2))},function(e,t,r){e.exports=r(18).EventEmitter},function(e,t,r){(function(n){function i(o,l){s(o,l),g(o)}function g(o){o._writableState&&!o._writableState.emitClose||o._readableState&&!o._readableState.emitClose||o.emit("close")}function s(o,l){o.emit("error",l)}e.exports={destroy:function(o,l){var u=this,m=this._readableState&&this._readableState.destroyed,R=this._writableState&&this._writableState.destroyed;return m||R?(l?l(o):o&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(s,this,o)):n.nextTick(s,this,o)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(o||null,function(y){!l&&y?u._writableState?u._writableState.errorEmitted?n.nextTick(g,u):(u._writableState.errorEmitted=!0,n.nextTick(i,u,y)):n.nextTick(i,u,y):l?(n.nextTick(g,u),l(y)):n.nextTick(g,u)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(o,l){var u=o._readableState,m=o._writableState;u&&u.autoDestroy||m&&m.autoDestroy?o.destroy(l):o.emit("error",l)}}}).call(this,r(2))},function(e,t,r){var n=r(24).codes.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(i,g,s,o){var l=function(u,m,R){return u.highWaterMark!=null?u.highWaterMark:m?u[R]:null}(g,o,s);if(l!=null){if(!isFinite(l)||Math.floor(l)!==l||l<0)throw new n(o?s:"highWaterMark",l);return Math.floor(l)}return i.objectMode?16:16384}}},function(e,t,r){(function(n,i){function g(C){var U=this;this.next=null,this.entry=null,this.finish=function(){(function(b,f,B){var k=b.entry;for(b.entry=null;k;){var Y=k.callback;f.pendingcb--,Y(B),k=k.next}f.corkedRequestsFree.next=b})(U,C)}}var s;e.exports=d,d.WritableState=h;var o={deprecate:r(39)},l=r(76),u=r(4).Buffer,m=n.Uint8Array||function(){},R,y=r(77),S=r(78).getHighWaterMark,c=r(24).codes,w=c.ERR_INVALID_ARG_TYPE,E=c.ERR_METHOD_NOT_IMPLEMENTED,P=c.ERR_MULTIPLE_CALLBACK,F=c.ERR_STREAM_CANNOT_PIPE,M=c.ERR_STREAM_DESTROYED,A=c.ERR_STREAM_NULL_VALUES,p=c.ERR_STREAM_WRITE_AFTER_END,N=c.ERR_UNKNOWN_ENCODING,$=y.errorOrDestroy;function q(){}function h(C,U,b){s=s||r(25),C=C||{},typeof b!="boolean"&&(b=U instanceof s),this.objectMode=!!C.objectMode,b&&(this.objectMode=this.objectMode||!!C.writableObjectMode),this.highWaterMark=S(this,C,"writableHighWaterMark",b),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var f=C.decodeStrings===!1;this.decodeStrings=!f,this.defaultEncoding=C.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(B){(function(k,Y){var K=k._writableState,Q=K.sync,G=K.writecb;if(typeof G!="function")throw new P;if(function(v){v.writing=!1,v.writecb=null,v.length-=v.writelen,v.writelen=0}(K),Y)(function(v,j,W,ee,J){--j.pendingcb,W?(i.nextTick(J,ee),i.nextTick(T,v,j),v._writableState.errorEmitted=!0,$(v,ee)):(J(ee),v._writableState.errorEmitted=!0,$(v,ee),T(v,j))})(k,K,Q,Y,G);else{var V=D(K)||k.destroyed;V||K.corked||K.bufferProcessing||!K.bufferedRequest||x(k,K),Q?i.nextTick(_,k,K,V,G):_(k,K,V,G)}})(U,B)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=C.emitClose!==!1,this.autoDestroy=!!C.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new g(this)}function d(C){var U=this instanceof(s=s||r(25));if(!U&&!R.call(d,this))return new d(C);this._writableState=new h(C,this,U),this.writable=!0,C&&(typeof C.write=="function"&&(this._write=C.write),typeof C.writev=="function"&&(this._writev=C.writev),typeof C.destroy=="function"&&(this._destroy=C.destroy),typeof C.final=="function"&&(this._final=C.final)),l.call(this)}function O(C,U,b,f,B,k,Y){U.writelen=f,U.writecb=Y,U.writing=!0,U.sync=!0,U.destroyed?U.onwrite(new M("write")):b?C._writev(B,U.onwrite):C._write(B,k,U.onwrite),U.sync=!1}function _(C,U,b,f){b||function(B,k){k.length===0&&k.needDrain&&(k.needDrain=!1,B.emit("drain"))}(C,U),U.pendingcb--,f(),T(C,U)}function x(C,U){U.bufferProcessing=!0;var b=U.bufferedRequest;if(C._writev&&b&&b.next){var f=U.bufferedRequestCount,B=new Array(f),k=U.corkedRequestsFree;k.entry=b;for(var Y=0,K=!0;b;)B[Y]=b,b.isBuf||(K=!1),b=b.next,Y+=1;B.allBuffers=K,O(C,U,!0,U.length,B,"",k.finish),U.pendingcb++,U.lastBufferedRequest=null,k.next?(U.corkedRequestsFree=k.next,k.next=null):U.corkedRequestsFree=new g(U),U.bufferedRequestCount=0}else{for(;b;){var Q=b.chunk,G=b.encoding,V=b.callback;if(O(C,U,!1,U.objectMode?1:Q.length,Q,G,V),b=b.next,U.bufferedRequestCount--,U.writing)break}b===null&&(U.lastBufferedRequest=null)}U.bufferedRequest=b,U.bufferProcessing=!1}function D(C){return C.ending&&C.length===0&&C.bufferedRequest===null&&!C.finished&&!C.writing}function L(C,U){C._final(function(b){U.pendingcb--,b&&$(C,b),U.prefinished=!0,C.emit("prefinish"),T(C,U)})}function T(C,U){var b=D(U);if(b&&(function(B,k){k.prefinished||k.finalCalled||(typeof B._final!="function"||k.destroyed?(k.prefinished=!0,B.emit("prefinish")):(k.pendingcb++,k.finalCalled=!0,i.nextTick(L,B,k)))}(C,U),U.pendingcb===0&&(U.finished=!0,C.emit("finish"),U.autoDestroy))){var f=C._readableState;(!f||f.autoDestroy&&f.endEmitted)&&C.destroy()}return b}r(6)(d,l),h.prototype.getBuffer=function(){for(var C=this.bufferedRequest,U=[];C;)U.push(C),C=C.next;return U},function(){try{Object.defineProperty(h.prototype,"buffer",{get:o.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}(),typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(R=Function.prototype[Symbol.hasInstance],Object.defineProperty(d,Symbol.hasInstance,{value:function(C){return!!R.call(this,C)||this===d&&C&&C._writableState instanceof h}})):R=function(C){return C instanceof this},d.prototype.pipe=function(){$(this,new F)},d.prototype.write=function(C,U,b){var f,B=this._writableState,k=!1,Y=!B.objectMode&&(f=C,u.isBuffer(f)||f instanceof m);return Y&&!u.isBuffer(C)&&(C=function(K){return u.from(K)}(C)),typeof U=="function"&&(b=U,U=null),Y?U="buffer":U||(U=B.defaultEncoding),typeof b!="function"&&(b=q),B.ending?function(K,Q){var G=new p;$(K,G),i.nextTick(Q,G)}(this,b):(Y||function(K,Q,G,V){var v;return G===null?v=new A:typeof G=="string"||Q.objectMode||(v=new w("chunk",["string","Buffer"],G)),!v||($(K,v),i.nextTick(V,v),!1)}(this,B,C,b))&&(B.pendingcb++,k=function(K,Q,G,V,v,j){if(!G){var W=function(se,oe,z){return se.objectMode||se.decodeStrings===!1||typeof oe!="string"||(oe=u.from(oe,z)),oe}(Q,V,v);V!==W&&(G=!0,v="buffer",V=W)}var ee=Q.objectMode?1:V.length;Q.length+=ee;var J=Q.length<Q.highWaterMark;if(J||(Q.needDrain=!0),Q.writing||Q.corked){var re=Q.lastBufferedRequest;Q.lastBufferedRequest={chunk:V,encoding:v,isBuf:G,callback:j,next:null},re?re.next=Q.lastBufferedRequest:Q.bufferedRequest=Q.lastBufferedRequest,Q.bufferedRequestCount+=1}else O(K,Q,!1,ee,V,v,j);return J}(this,B,Y,C,U,b)),k},d.prototype.cork=function(){this._writableState.corked++},d.prototype.uncork=function(){var C=this._writableState;C.corked&&(C.corked--,C.writing||C.corked||C.bufferProcessing||!C.bufferedRequest||x(this,C))},d.prototype.setDefaultEncoding=function(C){if(typeof C=="string"&&(C=C.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((C+"").toLowerCase())>-1))throw new N(C);return this._writableState.defaultEncoding=C,this},Object.defineProperty(d.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(d.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),d.prototype._write=function(C,U,b){b(new E("_write()"))},d.prototype._writev=null,d.prototype.end=function(C,U,b){var f=this._writableState;return typeof C=="function"?(b=C,C=null,U=null):typeof U=="function"&&(b=U,U=null),C!=null&&this.write(C,U),f.corked&&(f.corked=1,this.uncork()),f.ending||function(B,k,Y){k.ending=!0,T(B,k),Y&&(k.finished?i.nextTick(Y):B.once("finish",Y)),k.ended=!0,B.writable=!1}(this,f,b),this},Object.defineProperty(d.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(d.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(C){this._writableState&&(this._writableState.destroyed=C)}}),d.prototype.destroy=y.destroy,d.prototype._undestroy=y.undestroy,d.prototype._destroy=function(C,U){U(C)}}).call(this,r(5),r(2))},function(e,t,r){e.exports=m;var n=r(24).codes,i=n.ERR_METHOD_NOT_IMPLEMENTED,g=n.ERR_MULTIPLE_CALLBACK,s=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,o=n.ERR_TRANSFORM_WITH_LENGTH_0,l=r(25);function u(S,c){var w=this._transformState;w.transforming=!1;var E=w.writecb;if(E===null)return this.emit("error",new g);w.writechunk=null,w.writecb=null,c!=null&&this.push(c),E(S);var P=this._readableState;P.reading=!1,(P.needReadable||P.length<P.highWaterMark)&&this._read(P.highWaterMark)}function m(S){if(!(this instanceof m))return new m(S);l.call(this,S),this._transformState={afterTransform:u.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,S&&(typeof S.transform=="function"&&(this._transform=S.transform),typeof S.flush=="function"&&(this._flush=S.flush)),this.on("prefinish",R)}function R(){var S=this;typeof this._flush!="function"||this._readableState.destroyed?y(this,null,null):this._flush(function(c,w){y(S,c,w)})}function y(S,c,w){if(c)return S.emit("error",c);if(w!=null&&S.push(w),S._writableState.length)throw new o;if(S._transformState.transforming)throw new s;return S.push(null)}r(6)(m,l),m.prototype.push=function(S,c){return this._transformState.needTransform=!1,l.prototype.push.call(this,S,c)},m.prototype._transform=function(S,c,w){w(new i("_transform()"))},m.prototype._write=function(S,c,w){var E=this._transformState;if(E.writecb=w,E.writechunk=S,E.writeencoding=c,!E.transforming){var P=this._readableState;(E.needTransform||P.needReadable||P.length<P.highWaterMark)&&this._read(P.highWaterMark)}},m.prototype._read=function(S){var c=this._transformState;c.writechunk===null||c.transforming?c.needTransform=!0:(c.transforming=!0,this._transform(c.writechunk,c.writeencoding,c.afterTransform))},m.prototype._destroy=function(S,c){l.prototype._destroy.call(this,S,function(w){c(w)})}},function(e,t,r){(function(n){var i=r(189),g=r(83),s=r(191),o=r(192),l=r(46),u=t;u.request=function(m,R){m=typeof m=="string"?l.parse(m):s(m);var y=n.location.protocol.search(/^https?:$/)===-1?"http:":"",S=m.protocol||y,c=m.hostname||m.host,w=m.port,E=m.path||"/";c&&c.indexOf(":")!==-1&&(c="["+c+"]"),m.url=(c?S+"//"+c:"")+(w?":"+w:"")+E,m.method=(m.method||"GET").toUpperCase(),m.headers=m.headers||{};var P=new i(m);return R&&P.on("response",R),P},u.get=function(m,R){var y=u.request(m,R);return y.end(),y},u.ClientRequest=i,u.IncomingMessage=g.IncomingMessage,u.Agent=function(){},u.Agent.defaultMaxSockets=4,u.globalAgent=new u.Agent,u.STATUS_CODES=o,u.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this,r(5))},function(e,t,r){(function(n){t.fetch=u(n.fetch)&&u(n.ReadableStream),t.writableStream=u(n.WritableStream),t.abortController=u(n.AbortController),t.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),t.blobConstructor=!0}catch{}var i;function g(){if(i!==void 0)return i;if(n.XMLHttpRequest){i=new n.XMLHttpRequest;try{i.open("GET",n.XDomainRequest?"/":"https://example.com")}catch{i=null}}else i=null;return i}function s(m){var R=g();if(!R)return!1;try{return R.responseType=m,R.responseType===m}catch{}return!1}var o=n.ArrayBuffer!==void 0,l=o&&u(n.ArrayBuffer.prototype.slice);function u(m){return typeof m=="function"}t.arraybuffer=t.fetch||o&&s("arraybuffer"),t.msstream=!t.fetch&&l&&s("ms-stream"),t.mozchunkedarraybuffer=!t.fetch&&o&&s("moz-chunked-arraybuffer"),t.overrideMimeType=t.fetch||!!g()&&u(g().overrideMimeType),t.vbArray=u(n.VBArray),i=null}).call(this,r(5))},function(e,t,r){(function(n,i,g){var s=r(82),o=r(6),l=r(28),u=t.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},m=t.IncomingMessage=function(R,y,S,c){var w=this;if(l.Readable.call(w),w._mode=S,w.headers={},w.rawHeaders=[],w.trailers={},w.rawTrailers=[],w.on("end",function(){n.nextTick(function(){w.emit("close")})}),S==="fetch"){if(w._fetchResponse=y,w.url=y.url,w.statusCode=y.status,w.statusMessage=y.statusText,y.headers.forEach(function(A,p){w.headers[p.toLowerCase()]=A,w.rawHeaders.push(p,A)}),s.writableStream){var E=new WritableStream({write:function(A){return new Promise(function(p,N){w._destroyed?N():w.push(new i(A))?p():w._resumeFetch=p})},close:function(){g.clearTimeout(c),w._destroyed||w.push(null)},abort:function(A){w._destroyed||w.emit("error",A)}});try{return void y.body.pipeTo(E).catch(function(A){g.clearTimeout(c),w._destroyed||w.emit("error",A)})}catch{}}var P=y.body.getReader();(function A(){P.read().then(function(p){if(!w._destroyed){if(p.done)return g.clearTimeout(c),void w.push(null);w.push(new i(p.value)),A()}}).catch(function(p){g.clearTimeout(c),w._destroyed||w.emit("error",p)})})()}else if(w._xhr=R,w._pos=0,w.url=R.responseURL,w.statusCode=R.status,w.statusMessage=R.statusText,R.getAllResponseHeaders().split(/\r?\n/).forEach(function(A){var p=A.match(/^([^:]+):\s*(.*)/);if(p){var N=p[1].toLowerCase();N==="set-cookie"?(w.headers[N]===void 0&&(w.headers[N]=[]),w.headers[N].push(p[2])):w.headers[N]!==void 0?w.headers[N]+=", "+p[2]:w.headers[N]=p[2],w.rawHeaders.push(p[1],p[2])}}),w._charset="x-user-defined",!s.overrideMimeType){var F=w.rawHeaders["mime-type"];if(F){var M=F.match(/;\s*charset=([^;])(;|$)/);M&&(w._charset=M[1].toLowerCase())}w._charset||(w._charset="utf-8")}};o(m,l.Readable),m.prototype._read=function(){var R=this._resumeFetch;R&&(this._resumeFetch=null,R())},m.prototype._onXHRProgress=function(){var R=this,y=R._xhr,S=null;switch(R._mode){case"text:vbarray":if(y.readyState!==u.DONE)break;try{S=new g.VBArray(y.responseBody).toArray()}catch{}if(S!==null){R.push(new i(S));break}case"text":try{S=y.responseText}catch{R._mode="text:vbarray";break}if(S.length>R._pos){var c=S.substr(R._pos);if(R._charset==="x-user-defined"){for(var w=new i(c.length),E=0;E<c.length;E++)w[E]=255&c.charCodeAt(E);R.push(w)}else R.push(c,R._charset);R._pos=S.length}break;case"arraybuffer":if(y.readyState!==u.DONE||!y.response)break;S=y.response,R.push(new i(new Uint8Array(S)));break;case"moz-chunked-arraybuffer":if(S=y.response,y.readyState!==u.LOADING||!S)break;R.push(new i(new Uint8Array(S)));break;case"ms-stream":if(S=y.response,y.readyState!==u.LOADING)break;var P=new g.MSStreamReader;P.onprogress=function(){P.result.byteLength>R._pos&&(R.push(new i(new Uint8Array(P.result.slice(R._pos)))),R._pos=P.result.byteLength)},P.onload=function(){R.push(null)},P.readAsArrayBuffer(S)}R._xhr.readyState===u.DONE&&R._mode!=="ms-stream"&&R.push(null)}}).call(this,r(2),r(4).Buffer,r(5))},function(e,t,r){const n=i=>i!==null&&typeof i=="object"&&typeof i.pipe=="function";n.writable=i=>n(i)&&i.writable!==!1&&typeof i._write=="function"&&typeof i._writableState=="object",n.readable=i=>n(i)&&i.readable!==!1&&typeof i._read=="function"&&typeof i._readableState=="object",n.duplex=i=>n.writable(i)&&n.readable(i),n.transform=i=>n.duplex(i)&&typeof i._transform=="function"&&typeof i._transformState=="object",e.exports=n},function(e,t,r){function n(w){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(E){return typeof E}:function(E){return E&&typeof Symbol=="function"&&E.constructor===Symbol&&E!==Symbol.prototype?"symbol":typeof E})(w)}function i(w,E){if(!(w instanceof E))throw new TypeError("Cannot call a class as a function")}function g(w,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function");w.prototype=Object.create(E&&E.prototype,{constructor:{value:w,writable:!0,configurable:!0}}),E&&s(w,E)}function s(w,E){return(s=Object.setPrototypeOf||function(P,F){return P.__proto__=F,P})(w,E)}function o(w){var E=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var P,F=u(w);if(E){var M=u(this).constructor;P=Reflect.construct(F,arguments,M)}else P=F.apply(this,arguments);return l(this,P)}}function l(w,E){return!E||n(E)!=="object"&&typeof E!="function"?function(P){if(P===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return P}(w):E}function u(w){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(E){return E.__proto__||Object.getPrototypeOf(E)})(w)}var m=r(3).LEVEL,R=r(47),y=r(201),S=r(34)("winston:create-logger");function c(w){return"is"+w.charAt(0).toUpperCase()+w.slice(1)+"Enabled"}e.exports=function(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};w.levels=w.levels||R.npm.levels;var E=function(F){g(A,F);var M=o(A);function A(p){return i(this,A),M.call(this,p)}return A}(y),P=new E(w);return Object.keys(w.levels).forEach(function(F){S('Define prototype method for "%s"',F),F!=="log"?(E.prototype[F]=function(){for(var M=this||P,A=arguments.length,p=new Array(A),N=0;N<A;N++)p[N]=arguments[N];if(p.length===1){var $=p[0],q=$&&$.message&&$||{message:$};return q.level=q[m]=F,M._addDefaultMeta(q),M.write(q),this||P}return p.length===0?(M.log(F,""),M):M.log.apply(M,[F].concat(p))},E.prototype[c(F)]=function(){return(this||P).isLevelEnabled(F)}):console.warn('Level "log" not defined: conflicts with the method "log". Use a different level name.')}),P}},function(e,t,r){(function(n){function i(R,y){for(var S=0;S<y.length;S++){var c=y[S];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(R,c.key,c)}}var g=r(15),s=r(48),o=r(34)("winston:exception"),l=r(87),u=r(88),m=r(89);e.exports=function(){function R(c){if(function(w,E){if(!(w instanceof E))throw new TypeError("Cannot call a class as a function")}(this,R),!c)throw new Error("Logger is required to handle exceptions");this.logger=c,this.handlers=new Map}var y,S;return y=R,(S=[{key:"handle",value:function(){for(var c=this,w=arguments.length,E=new Array(w),P=0;P<w;P++)E[P]=arguments[P];E.forEach(function(F){if(Array.isArray(F))return F.forEach(function(M){return c._addHandler(M)});c._addHandler(F)}),this.catcher||(this.catcher=this._uncaughtException.bind(this),n.on("uncaughtException",this.catcher))}},{key:"unhandle",value:function(){var c=this;this.catcher&&(n.removeListener("uncaughtException",this.catcher),this.catcher=!1,Array.from(this.handlers.values()).forEach(function(w){return c.logger.unpipe(w)}))}},{key:"getAllInfo",value:function(c){var w=c.message;return w||typeof c!="string"||(w=c),{error:c,level:"error",message:["uncaughtException: ".concat(w||"(no error message)"),c.stack||" No stack trace"].join(`
|
|
26
26
|
`),stack:c.stack,exception:!0,date:new Date().toString(),process:this.getProcessInfo(),os:this.getOsInfo(),trace:this.getTrace(c)}}},{key:"getProcessInfo",value:function(){return{pid:n.pid,uid:n.getuid?n.getuid():null,gid:n.getgid?n.getgid():null,cwd:n.cwd(),execPath:n.execPath,version:n.version,argv:n.argv,memoryUsage:n.memoryUsage()}}},{key:"getOsInfo",value:function(){return{loadavg:g.loadavg(),uptime:g.uptime()}}},{key:"getTrace",value:function(c){return(c?u.parse(c):u.get()).map(function(w){return{column:w.getColumnNumber(),file:w.getFileName(),function:w.getFunctionName(),line:w.getLineNumber(),method:w.getMethodName(),native:w.isNative()}})}},{key:"_addHandler",value:function(c){if(!this.handlers.has(c)){c.handleExceptions=!0;var w=new m(c);this.handlers.set(c,w),this.logger.pipe(w)}}},{key:"_uncaughtException",value:function(c){var w,E=this.getAllInfo(c),P=this._getExceptionHandlers(),F=typeof this.logger.exitOnError=="function"?this.logger.exitOnError(c):this.logger.exitOnError;function M(){o("doExit",F),o("process._exiting",n._exiting),F&&!n._exiting&&(w&&clearTimeout(w),n.exit(1))}if(!P.length&&F&&(console.warn("winston: exitOnError cannot be true with no exception handlers."),console.warn("winston: not exiting process."),F=!1),!P||P.length===0)return n.nextTick(M);s(P,function(A,p){var N=l(p),$=A.transport||A;function q(h){return function(){o(h),N()}}$._ending=!0,$.once("finish",q("finished")),$.once("error",q("error"))},function(){return F&&M()}),this.logger.log(E),F&&(w=setTimeout(M,3e3))}},{key:"_getExceptionHandlers",value:function(){return this.logger.transports.filter(function(c){return(c.transport||c).handleExceptions})}}])&&i(y.prototype,S),R}()}).call(this,r(2))},function(e,t,r){var n=r(204);e.exports=function(i){var g,s=0;function o(){return s||(s=1,g=i.apply(this,arguments),i=null),g}return o.displayName=n(i),o}},function(e,t){function r(n){for(var i in n)this[i]=n[i]}t.get=function(n){var i=Error.stackTraceLimit;Error.stackTraceLimit=1/0;var g={},s=Error.prepareStackTrace;Error.prepareStackTrace=function(l,u){return u},Error.captureStackTrace(g,n||t.get);var o=g.stack;return Error.prepareStackTrace=s,Error.stackTraceLimit=i,o},t.parse=function(n){if(!n.stack)return[];var i=this;return n.stack.split(`
|
|
27
27
|
`).slice(1).map(function(g){if(g.match(/^\s*[-]{4,}$/))return i._createParsedCallSite({fileName:g,lineNumber:null,functionName:null,typeName:null,methodName:null,columnNumber:null,native:null});var s=g.match(/at (?:(.+)\s+\()?(?:(.+?):(\d+)(?::(\d+))?|([^)]+))\)?/);if(s){var o=null,l=null,u=null,m=null,R=null,y=s[5]==="native";if(s[1]){var S=(u=s[1]).lastIndexOf(".");if(u[S-1]=="."&&S--,S>0){o=u.substr(0,S),l=u.substr(S+1);var c=o.indexOf(".Module");c>0&&(u=u.substr(c+1),o=o.substr(0,c))}m=null}l&&(m=o,R=l),l==="<anonymous>"&&(R=null,u=null);var w={fileName:s[2]||null,lineNumber:parseInt(s[3],10)||null,functionName:u,typeName:m,methodName:R,columnNumber:parseInt(s[4],10)||null,native:y};return i._createParsedCallSite(w)}}).filter(function(g){return!!g})},["this","typeName","functionName","methodName","fileName","lineNumber","columnNumber","function","evalOrigin"].forEach(function(n){r.prototype[n]=null,r.prototype["get"+n[0].toUpperCase()+n.substr(1)]=function(){return this[n]}}),["topLevel","eval","native","constructor"].forEach(function(n){r.prototype[n]=!1,r.prototype["is"+n[0].toUpperCase()+n.substr(1)]=function(){return this[n]}}),t._createParsedCallSite=function(n){return new r(n)}},function(e,t,r){function n(m){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(R){return typeof R}:function(R){return R&&typeof Symbol=="function"&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R})(m)}function i(m,R){for(var y=0;y<R.length;y++){var S=R[y];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(m,S.key,S)}}function g(m,R){return(g=Object.setPrototypeOf||function(y,S){return y.__proto__=S,y})(m,R)}function s(m){var R=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var y,S=l(m);if(R){var c=l(this).constructor;y=Reflect.construct(S,arguments,c)}else y=S.apply(this,arguments);return o(this,y)}}function o(m,R){return!R||n(R)!=="object"&&typeof R!="function"?function(y){if(y===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y}(m):R}function l(m){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(R){return R.__proto__||Object.getPrototypeOf(R)})(m)}var u=r(29).Writable;e.exports=function(m){(function(w,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function");w.prototype=Object.create(E&&E.prototype,{constructor:{value:w,writable:!0,configurable:!0}}),E&&g(w,E)})(c,m);var R,y,S=s(c);function c(w){var E;if(function(P,F){if(!(P instanceof F))throw new TypeError("Cannot call a class as a function")}(this,c),E=S.call(this,{objectMode:!0}),!w)throw new Error("ExceptionStream requires a TransportStream instance.");return E.handleExceptions=!0,E.transport=w,E}return R=c,(y=[{key:"_write",value:function(w,E,P){return w.exception?this.transport.log(w,P):(P(),!0)}}])&&i(R.prototype,y),c}(u)},function(e,t,r){(function(n){function i(R,y){for(var S=0;S<y.length;S++){var c=y[S];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(R,c.key,c)}}var g=r(15),s=r(48),o=r(34)("winston:rejection"),l=r(87),u=r(88),m=r(89);e.exports=function(){function R(c){if(function(w,E){if(!(w instanceof E))throw new TypeError("Cannot call a class as a function")}(this,R),!c)throw new Error("Logger is required to handle rejections");this.logger=c,this.handlers=new Map}var y,S;return y=R,(S=[{key:"handle",value:function(){for(var c=this,w=arguments.length,E=new Array(w),P=0;P<w;P++)E[P]=arguments[P];E.forEach(function(F){if(Array.isArray(F))return F.forEach(function(M){return c._addHandler(M)});c._addHandler(F)}),this.catcher||(this.catcher=this._unhandledRejection.bind(this),n.on("unhandledRejection",this.catcher))}},{key:"unhandle",value:function(){var c=this;this.catcher&&(n.removeListener("unhandledRejection",this.catcher),this.catcher=!1,Array.from(this.handlers.values()).forEach(function(w){return c.logger.unpipe(w)}))}},{key:"getAllInfo",value:function(c){var w=c.message;return w||typeof c!="string"||(w=c),{error:c,level:"error",message:["unhandledRejection: ".concat(w||"(no error message)"),c.stack||" No stack trace"].join(`
|
|
28
|
-
`),stack:c.stack,exception:!0,date:new Date().toString(),process:this.getProcessInfo(),os:this.getOsInfo(),trace:this.getTrace(c)}}},{key:"getProcessInfo",value:function(){return{pid:n.pid,uid:n.getuid?n.getuid():null,gid:n.getgid?n.getgid():null,cwd:n.cwd(),execPath:n.execPath,version:n.version,argv:n.argv,memoryUsage:n.memoryUsage()}}},{key:"getOsInfo",value:function(){return{loadavg:g.loadavg(),uptime:g.uptime()}}},{key:"getTrace",value:function(c){return(c?u.parse(c):u.get()).map(function(w){return{column:w.getColumnNumber(),file:w.getFileName(),function:w.getFunctionName(),line:w.getLineNumber(),method:w.getMethodName(),native:w.isNative()}})}},{key:"_addHandler",value:function(c){if(!this.handlers.has(c)){c.handleRejections=!0;var w=new m(c);this.handlers.set(c,w),this.logger.pipe(w)}}},{key:"_unhandledRejection",value:function(c){var w,E=this.getAllInfo(c),P=this._getRejectionHandlers(),F=typeof this.logger.exitOnError=="function"?this.logger.exitOnError(c):this.logger.exitOnError;function M(){o("doExit",F),o("process._exiting",n._exiting),F&&!n._exiting&&(w&&clearTimeout(w),n.exit(1))}if(!P.length&&F&&(console.warn("winston: exitOnError cannot be true with no rejection handlers."),console.warn("winston: not exiting process."),F=!1),!P||P.length===0)return n.nextTick(M);s(P,function(A,p){var N=l(p),$=A.transport||A;function q(h){return function(){o(h),N()}}$._ending=!0,$.once("finish",q("finished")),$.once("error",q("error"))},function(){return F&&M()}),this.logger.log(E),F&&(w=setTimeout(M,3e3))}},{key:"_getRejectionHandlers",value:function(){return this.logger.transports.filter(function(c){return(c.transport||c).handleRejections})}}])&&i(y.prototype,S),R}()}).call(this,r(2))},function(e,t,r){const n=r(50);e.exports=function(i){const g=n(i);if(g<0)throw new Error("should be a positive integer");return g}},function(e,t,r){const n=r(46).URL,i=r(35);e.exports=function(g){const s=i(g);try{return new n(s)}catch{throw new Error("should be a valid URL")}}},function(e,t,r){const n={};n.web=r(22),r(94);const i={v1:{}};i.v1.signaling={},i.v1.signaling.api=r(11),i.v1.signaling.api.SignalingClient=function(y,S,c){c||(c={}),c.format="text",this.client_=new n.web.GrpcWebClientBase(c),this.hostname_=y},i.v1.signaling.api.SignalingPromiseClient=function(y,S,c){c||(c={}),c.format="text",this.client_=new n.web.GrpcWebClientBase(c),this.hostname_=y};const g=new n.web.MethodDescriptor("/v1.signaling.api.Signaling/CreatePeer",n.web.MethodType.UNARY,i.v1.signaling.api.CreatePeerRequest,i.v1.signaling.api.CreatePeerResponse,function(y){return y.serializeBinary()},i.v1.signaling.api.CreatePeerResponse.deserializeBinary);new n.web.AbstractClientBase.MethodInfo(i.v1.signaling.api.CreatePeerResponse,function(y){return y.serializeBinary()},i.v1.signaling.api.CreatePeerResponse.deserializeBinary),i.v1.signaling.api.SignalingClient.prototype.createPeer=function(y,S,c){return this.client_.rpcCall(this.hostname_+"/v1.signaling.api.Signaling/CreatePeer",y,S||{},g,c)},i.v1.signaling.api.SignalingPromiseClient.prototype.createPeer=function(y,S){return this.client_.unaryCall(this.hostname_+"/v1.signaling.api.Signaling/CreatePeer",y,S||{},g)};const s=new n.web.MethodDescriptor("/v1.signaling.api.Signaling/DeletePeer",n.web.MethodType.UNARY,i.v1.signaling.api.DeletePeerRequest,i.v1.signaling.api.DeletePeerResponse,function(y){return y.serializeBinary()},i.v1.signaling.api.DeletePeerResponse.deserializeBinary);new n.web.AbstractClientBase.MethodInfo(i.v1.signaling.api.DeletePeerResponse,function(y){return y.serializeBinary()},i.v1.signaling.api.DeletePeerResponse.deserializeBinary),i.v1.signaling.api.SignalingClient.prototype.deletePeer=function(y,S,c){return this.client_.rpcCall(this.hostname_+"/v1.signaling.api.Signaling/DeletePeer",y,S||{},s,c)},i.v1.signaling.api.SignalingPromiseClient.prototype.deletePeer=function(y,S){return this.client_.unaryCall(this.hostname_+"/v1.signaling.api.Signaling/DeletePeer",y,S||{},s)};const o=new n.web.MethodDescriptor("/v1.signaling.api.Signaling/RefreshPeer",n.web.MethodType.UNARY,i.v1.signaling.api.RefreshPeerRequest,i.v1.signaling.api.RefreshPeerResponse,function(y){return y.serializeBinary()},i.v1.signaling.api.RefreshPeerResponse.deserializeBinary);new n.web.AbstractClientBase.MethodInfo(i.v1.signaling.api.RefreshPeerResponse,function(y){return y.serializeBinary()},i.v1.signaling.api.RefreshPeerResponse.deserializeBinary),i.v1.signaling.api.SignalingClient.prototype.refreshPeer=function(y,S,c){return this.client_.rpcCall(this.hostname_+"/v1.signaling.api.Signaling/RefreshPeer",y,S||{},o,c)},i.v1.signaling.api.SignalingPromiseClient.prototype.refreshPeer=function(y,S){return this.client_.unaryCall(this.hostname_+"/v1.signaling.api.Signaling/RefreshPeer",y,S||{},o)};const l=new n.web.MethodDescriptor("/v1.signaling.api.Signaling/GetPeers",n.web.MethodType.UNARY,i.v1.signaling.api.GetPeersRequest,i.v1.signaling.api.GetPeersResponse,function(y){return y.serializeBinary()},i.v1.signaling.api.GetPeersResponse.deserializeBinary);new n.web.AbstractClientBase.MethodInfo(i.v1.signaling.api.GetPeersResponse,function(y){return y.serializeBinary()},i.v1.signaling.api.GetPeersResponse.deserializeBinary),i.v1.signaling.api.SignalingClient.prototype.getPeers=function(y,S,c){return this.client_.rpcCall(this.hostname_+"/v1.signaling.api.Signaling/GetPeers",y,S||{},l,c)},i.v1.signaling.api.SignalingPromiseClient.prototype.getPeers=function(y,S){return this.client_.unaryCall(this.hostname_+"/v1.signaling.api.Signaling/GetPeers",y,S||{},l)};const u=new n.web.MethodDescriptor("/v1.signaling.api.Signaling/GetIceServers",n.web.MethodType.UNARY,i.v1.signaling.api.GetIceServersRequest,i.v1.signaling.api.GetIceServersResponse,function(y){return y.serializeBinary()},i.v1.signaling.api.GetIceServersResponse.deserializeBinary);new n.web.AbstractClientBase.MethodInfo(i.v1.signaling.api.GetIceServersResponse,function(y){return y.serializeBinary()},i.v1.signaling.api.GetIceServersResponse.deserializeBinary),i.v1.signaling.api.SignalingClient.prototype.getIceServers=function(y,S,c){return this.client_.rpcCall(this.hostname_+"/v1.signaling.api.Signaling/GetIceServers",y,S||{},u,c)},i.v1.signaling.api.SignalingPromiseClient.prototype.getIceServers=function(y,S){return this.client_.unaryCall(this.hostname_+"/v1.signaling.api.Signaling/GetIceServers",y,S||{},u)};const m=new n.web.MethodDescriptor("/v1.signaling.api.Signaling/SendSignal",n.web.MethodType.UNARY,i.v1.signaling.api.SendSignalRequest,i.v1.signaling.api.SendSignalResponse,function(y){return y.serializeBinary()},i.v1.signaling.api.SendSignalResponse.deserializeBinary);new n.web.AbstractClientBase.MethodInfo(i.v1.signaling.api.SendSignalResponse,function(y){return y.serializeBinary()},i.v1.signaling.api.SendSignalResponse.deserializeBinary),i.v1.signaling.api.SignalingClient.prototype.sendSignal=function(y,S,c){return this.client_.rpcCall(this.hostname_+"/v1.signaling.api.Signaling/SendSignal",y,S||{},m,c)},i.v1.signaling.api.SignalingPromiseClient.prototype.sendSignal=function(y,S){return this.client_.unaryCall(this.hostname_+"/v1.signaling.api.Signaling/SendSignal",y,S||{},m)};const R=new n.web.MethodDescriptor("/v1.signaling.api.Signaling/ReceiveSignalStream",n.web.MethodType.SERVER_STREAMING,i.v1.signaling.api.ReceiveSignalStreamRequest,i.v1.signaling.api.ReceiveSignalStreamResponse,function(y){return y.serializeBinary()},i.v1.signaling.api.ReceiveSignalStreamResponse.deserializeBinary);new n.web.AbstractClientBase.MethodInfo(i.v1.signaling.api.ReceiveSignalStreamResponse,function(y){return y.serializeBinary()},i.v1.signaling.api.ReceiveSignalStreamResponse.deserializeBinary),i.v1.signaling.api.SignalingClient.prototype.receiveSignalStream=function(y,S){return this.client_.serverStreaming(this.hostname_+"/v1.signaling.api.Signaling/ReceiveSignalStream",y,S||{},R)},i.v1.signaling.api.SignalingPromiseClient.prototype.receiveSignalStream=function(y,S){return this.client_.serverStreaming(this.hostname_+"/v1.signaling.api.Signaling/ReceiveSignalStream",y,S||{},R)},e.exports=i.v1.signaling.api},function(e,t,r){var n=r(95),i=n,g=Function("return this")();i.exportSymbol("proto.google.protobuf.BoolValue",null,g),i.exportSymbol("proto.google.protobuf.BytesValue",null,g),i.exportSymbol("proto.google.protobuf.DoubleValue",null,g),i.exportSymbol("proto.google.protobuf.FloatValue",null,g),i.exportSymbol("proto.google.protobuf.Int32Value",null,g),i.exportSymbol("proto.google.protobuf.Int64Value",null,g),i.exportSymbol("proto.google.protobuf.StringValue",null,g),i.exportSymbol("proto.google.protobuf.UInt32Value",null,g),i.exportSymbol("proto.google.protobuf.UInt64Value",null,g),proto.google.protobuf.DoubleValue=function(s){n.Message.initialize(this,s,0,-1,null,null)},i.inherits(proto.google.protobuf.DoubleValue,n.Message),i.DEBUG&&!COMPILED&&(proto.google.protobuf.DoubleValue.displayName="proto.google.protobuf.DoubleValue"),proto.google.protobuf.FloatValue=function(s){n.Message.initialize(this,s,0,-1,null,null)},i.inherits(proto.google.protobuf.FloatValue,n.Message),i.DEBUG&&!COMPILED&&(proto.google.protobuf.FloatValue.displayName="proto.google.protobuf.FloatValue"),proto.google.protobuf.Int64Value=function(s){n.Message.initialize(this,s,0,-1,null,null)},i.inherits(proto.google.protobuf.Int64Value,n.Message),i.DEBUG&&!COMPILED&&(proto.google.protobuf.Int64Value.displayName="proto.google.protobuf.Int64Value"),proto.google.protobuf.UInt64Value=function(s){n.Message.initialize(this,s,0,-1,null,null)},i.inherits(proto.google.protobuf.UInt64Value,n.Message),i.DEBUG&&!COMPILED&&(proto.google.protobuf.UInt64Value.displayName="proto.google.protobuf.UInt64Value"),proto.google.protobuf.Int32Value=function(s){n.Message.initialize(this,s,0,-1,null,null)},i.inherits(proto.google.protobuf.Int32Value,n.Message),i.DEBUG&&!COMPILED&&(proto.google.protobuf.Int32Value.displayName="proto.google.protobuf.Int32Value"),proto.google.protobuf.UInt32Value=function(s){n.Message.initialize(this,s,0,-1,null,null)},i.inherits(proto.google.protobuf.UInt32Value,n.Message),i.DEBUG&&!COMPILED&&(proto.google.protobuf.UInt32Value.displayName="proto.google.protobuf.UInt32Value"),proto.google.protobuf.BoolValue=function(s){n.Message.initialize(this,s,0,-1,null,null)},i.inherits(proto.google.protobuf.BoolValue,n.Message),i.DEBUG&&!COMPILED&&(proto.google.protobuf.BoolValue.displayName="proto.google.protobuf.BoolValue"),proto.google.protobuf.StringValue=function(s){n.Message.initialize(this,s,0,-1,null,null)},i.inherits(proto.google.protobuf.StringValue,n.Message),i.DEBUG&&!COMPILED&&(proto.google.protobuf.StringValue.displayName="proto.google.protobuf.StringValue"),proto.google.protobuf.BytesValue=function(s){n.Message.initialize(this,s,0,-1,null,null)},i.inherits(proto.google.protobuf.BytesValue,n.Message),i.DEBUG&&!COMPILED&&(proto.google.protobuf.BytesValue.displayName="proto.google.protobuf.BytesValue"),n.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.DoubleValue.prototype.toObject=function(s){return proto.google.protobuf.DoubleValue.toObject(s,this)},proto.google.protobuf.DoubleValue.toObject=function(s,o){var l={value:n.Message.getFloatingPointFieldWithDefault(o,1,0)};return s&&(l.$jspbMessageInstance=o),l}),proto.google.protobuf.DoubleValue.deserializeBinary=function(s){var o=new n.BinaryReader(s),l=new proto.google.protobuf.DoubleValue;return proto.google.protobuf.DoubleValue.deserializeBinaryFromReader(l,o)},proto.google.protobuf.DoubleValue.deserializeBinaryFromReader=function(s,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var l=o.readDouble();s.setValue(l);break;default:o.skipField()}return s},proto.google.protobuf.DoubleValue.prototype.serializeBinary=function(){var s=new n.BinaryWriter;return proto.google.protobuf.DoubleValue.serializeBinaryToWriter(this,s),s.getResultBuffer()},proto.google.protobuf.DoubleValue.serializeBinaryToWriter=function(s,o){var l;(l=s.getValue())!==0&&o.writeDouble(1,l)},proto.google.protobuf.DoubleValue.prototype.getValue=function(){return n.Message.getFloatingPointFieldWithDefault(this,1,0)},proto.google.protobuf.DoubleValue.prototype.setValue=function(s){return n.Message.setProto3FloatField(this,1,s)},n.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.FloatValue.prototype.toObject=function(s){return proto.google.protobuf.FloatValue.toObject(s,this)},proto.google.protobuf.FloatValue.toObject=function(s,o){var l={value:n.Message.getFloatingPointFieldWithDefault(o,1,0)};return s&&(l.$jspbMessageInstance=o),l}),proto.google.protobuf.FloatValue.deserializeBinary=function(s){var o=new n.BinaryReader(s),l=new proto.google.protobuf.FloatValue;return proto.google.protobuf.FloatValue.deserializeBinaryFromReader(l,o)},proto.google.protobuf.FloatValue.deserializeBinaryFromReader=function(s,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var l=o.readFloat();s.setValue(l);break;default:o.skipField()}return s},proto.google.protobuf.FloatValue.prototype.serializeBinary=function(){var s=new n.BinaryWriter;return proto.google.protobuf.FloatValue.serializeBinaryToWriter(this,s),s.getResultBuffer()},proto.google.protobuf.FloatValue.serializeBinaryToWriter=function(s,o){var l;(l=s.getValue())!==0&&o.writeFloat(1,l)},proto.google.protobuf.FloatValue.prototype.getValue=function(){return n.Message.getFloatingPointFieldWithDefault(this,1,0)},proto.google.protobuf.FloatValue.prototype.setValue=function(s){return n.Message.setProto3FloatField(this,1,s)},n.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.Int64Value.prototype.toObject=function(s){return proto.google.protobuf.Int64Value.toObject(s,this)},proto.google.protobuf.Int64Value.toObject=function(s,o){var l={value:n.Message.getFieldWithDefault(o,1,0)};return s&&(l.$jspbMessageInstance=o),l}),proto.google.protobuf.Int64Value.deserializeBinary=function(s){var o=new n.BinaryReader(s),l=new proto.google.protobuf.Int64Value;return proto.google.protobuf.Int64Value.deserializeBinaryFromReader(l,o)},proto.google.protobuf.Int64Value.deserializeBinaryFromReader=function(s,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var l=o.readInt64();s.setValue(l);break;default:o.skipField()}return s},proto.google.protobuf.Int64Value.prototype.serializeBinary=function(){var s=new n.BinaryWriter;return proto.google.protobuf.Int64Value.serializeBinaryToWriter(this,s),s.getResultBuffer()},proto.google.protobuf.Int64Value.serializeBinaryToWriter=function(s,o){var l;(l=s.getValue())!==0&&o.writeInt64(1,l)},proto.google.protobuf.Int64Value.prototype.getValue=function(){return n.Message.getFieldWithDefault(this,1,0)},proto.google.protobuf.Int64Value.prototype.setValue=function(s){return n.Message.setProto3IntField(this,1,s)},n.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.UInt64Value.prototype.toObject=function(s){return proto.google.protobuf.UInt64Value.toObject(s,this)},proto.google.protobuf.UInt64Value.toObject=function(s,o){var l={value:n.Message.getFieldWithDefault(o,1,0)};return s&&(l.$jspbMessageInstance=o),l}),proto.google.protobuf.UInt64Value.deserializeBinary=function(s){var o=new n.BinaryReader(s),l=new proto.google.protobuf.UInt64Value;return proto.google.protobuf.UInt64Value.deserializeBinaryFromReader(l,o)},proto.google.protobuf.UInt64Value.deserializeBinaryFromReader=function(s,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var l=o.readUint64();s.setValue(l);break;default:o.skipField()}return s},proto.google.protobuf.UInt64Value.prototype.serializeBinary=function(){var s=new n.BinaryWriter;return proto.google.protobuf.UInt64Value.serializeBinaryToWriter(this,s),s.getResultBuffer()},proto.google.protobuf.UInt64Value.serializeBinaryToWriter=function(s,o){var l;(l=s.getValue())!==0&&o.writeUint64(1,l)},proto.google.protobuf.UInt64Value.prototype.getValue=function(){return n.Message.getFieldWithDefault(this,1,0)},proto.google.protobuf.UInt64Value.prototype.setValue=function(s){return n.Message.setProto3IntField(this,1,s)},n.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.Int32Value.prototype.toObject=function(s){return proto.google.protobuf.Int32Value.toObject(s,this)},proto.google.protobuf.Int32Value.toObject=function(s,o){var l={value:n.Message.getFieldWithDefault(o,1,0)};return s&&(l.$jspbMessageInstance=o),l}),proto.google.protobuf.Int32Value.deserializeBinary=function(s){var o=new n.BinaryReader(s),l=new proto.google.protobuf.Int32Value;return proto.google.protobuf.Int32Value.deserializeBinaryFromReader(l,o)},proto.google.protobuf.Int32Value.deserializeBinaryFromReader=function(s,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var l=o.readInt32();s.setValue(l);break;default:o.skipField()}return s},proto.google.protobuf.Int32Value.prototype.serializeBinary=function(){var s=new n.BinaryWriter;return proto.google.protobuf.Int32Value.serializeBinaryToWriter(this,s),s.getResultBuffer()},proto.google.protobuf.Int32Value.serializeBinaryToWriter=function(s,o){var l;(l=s.getValue())!==0&&o.writeInt32(1,l)},proto.google.protobuf.Int32Value.prototype.getValue=function(){return n.Message.getFieldWithDefault(this,1,0)},proto.google.protobuf.Int32Value.prototype.setValue=function(s){return n.Message.setProto3IntField(this,1,s)},n.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.UInt32Value.prototype.toObject=function(s){return proto.google.protobuf.UInt32Value.toObject(s,this)},proto.google.protobuf.UInt32Value.toObject=function(s,o){var l={value:n.Message.getFieldWithDefault(o,1,0)};return s&&(l.$jspbMessageInstance=o),l}),proto.google.protobuf.UInt32Value.deserializeBinary=function(s){var o=new n.BinaryReader(s),l=new proto.google.protobuf.UInt32Value;return proto.google.protobuf.UInt32Value.deserializeBinaryFromReader(l,o)},proto.google.protobuf.UInt32Value.deserializeBinaryFromReader=function(s,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var l=o.readUint32();s.setValue(l);break;default:o.skipField()}return s},proto.google.protobuf.UInt32Value.prototype.serializeBinary=function(){var s=new n.BinaryWriter;return proto.google.protobuf.UInt32Value.serializeBinaryToWriter(this,s),s.getResultBuffer()},proto.google.protobuf.UInt32Value.serializeBinaryToWriter=function(s,o){var l;(l=s.getValue())!==0&&o.writeUint32(1,l)},proto.google.protobuf.UInt32Value.prototype.getValue=function(){return n.Message.getFieldWithDefault(this,1,0)},proto.google.protobuf.UInt32Value.prototype.setValue=function(s){return n.Message.setProto3IntField(this,1,s)},n.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.BoolValue.prototype.toObject=function(s){return proto.google.protobuf.BoolValue.toObject(s,this)},proto.google.protobuf.BoolValue.toObject=function(s,o){var l={value:n.Message.getBooleanFieldWithDefault(o,1,!1)};return s&&(l.$jspbMessageInstance=o),l}),proto.google.protobuf.BoolValue.deserializeBinary=function(s){var o=new n.BinaryReader(s),l=new proto.google.protobuf.BoolValue;return proto.google.protobuf.BoolValue.deserializeBinaryFromReader(l,o)},proto.google.protobuf.BoolValue.deserializeBinaryFromReader=function(s,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var l=o.readBool();s.setValue(l);break;default:o.skipField()}return s},proto.google.protobuf.BoolValue.prototype.serializeBinary=function(){var s=new n.BinaryWriter;return proto.google.protobuf.BoolValue.serializeBinaryToWriter(this,s),s.getResultBuffer()},proto.google.protobuf.BoolValue.serializeBinaryToWriter=function(s,o){var l;(l=s.getValue())&&o.writeBool(1,l)},proto.google.protobuf.BoolValue.prototype.getValue=function(){return n.Message.getBooleanFieldWithDefault(this,1,!1)},proto.google.protobuf.BoolValue.prototype.setValue=function(s){return n.Message.setProto3BooleanField(this,1,s)},n.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.StringValue.prototype.toObject=function(s){return proto.google.protobuf.StringValue.toObject(s,this)},proto.google.protobuf.StringValue.toObject=function(s,o){var l={value:n.Message.getFieldWithDefault(o,1,"")};return s&&(l.$jspbMessageInstance=o),l}),proto.google.protobuf.StringValue.deserializeBinary=function(s){var o=new n.BinaryReader(s),l=new proto.google.protobuf.StringValue;return proto.google.protobuf.StringValue.deserializeBinaryFromReader(l,o)},proto.google.protobuf.StringValue.deserializeBinaryFromReader=function(s,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var l=o.readString();s.setValue(l);break;default:o.skipField()}return s},proto.google.protobuf.StringValue.prototype.serializeBinary=function(){var s=new n.BinaryWriter;return proto.google.protobuf.StringValue.serializeBinaryToWriter(this,s),s.getResultBuffer()},proto.google.protobuf.StringValue.serializeBinaryToWriter=function(s,o){var l;(l=s.getValue()).length>0&&o.writeString(1,l)},proto.google.protobuf.StringValue.prototype.getValue=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.google.protobuf.StringValue.prototype.setValue=function(s){return n.Message.setProto3StringField(this,1,s)},n.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.BytesValue.prototype.toObject=function(s){return proto.google.protobuf.BytesValue.toObject(s,this)},proto.google.protobuf.BytesValue.toObject=function(s,o){var l={value:o.getValue_asB64()};return s&&(l.$jspbMessageInstance=o),l}),proto.google.protobuf.BytesValue.deserializeBinary=function(s){var o=new n.BinaryReader(s),l=new proto.google.protobuf.BytesValue;return proto.google.protobuf.BytesValue.deserializeBinaryFromReader(l,o)},proto.google.protobuf.BytesValue.deserializeBinaryFromReader=function(s,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var l=o.readBytes();s.setValue(l);break;default:o.skipField()}return s},proto.google.protobuf.BytesValue.prototype.serializeBinary=function(){var s=new n.BinaryWriter;return proto.google.protobuf.BytesValue.serializeBinaryToWriter(this,s),s.getResultBuffer()},proto.google.protobuf.BytesValue.serializeBinaryToWriter=function(s,o){var l;(l=s.getValue_asU8()).length>0&&o.writeBytes(1,l)},proto.google.protobuf.BytesValue.prototype.getValue=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.google.protobuf.BytesValue.prototype.getValue_asB64=function(){return n.Message.bytesAsB64(this.getValue())},proto.google.protobuf.BytesValue.prototype.getValue_asU8=function(){return n.Message.bytesAsU8(this.getValue())},proto.google.protobuf.BytesValue.prototype.setValue=function(s){return n.Message.setProto3BytesField(this,1,s)},i.object.extend(t,proto.google.protobuf)},function(module,exports,__webpack_require__){(function(global,Buffer){var $jscomp=$jscomp||{};$jscomp.scope={},$jscomp.findInternal=function(e,t,r){e instanceof String&&(e=String(e));for(var n=e.length,i=0;i<n;i++){var g=e[i];if(t.call(r,g,i,e))return{i,v:g}}return{i:-1,v:void 0}},$jscomp.ASSUME_ES5=!1,$jscomp.ASSUME_NO_NATIVE_MAP=!1,$jscomp.ASSUME_NO_NATIVE_SET=!1,$jscomp.SIMPLE_FROUND_POLYFILL=!1,$jscomp.defineProperty=$jscomp.ASSUME_ES5||typeof Object.defineProperties=="function"?Object.defineProperty:function(e,t,r){e!=Array.prototype&&e!=Object.prototype&&(e[t]=r.value)},$jscomp.getGlobal=function(e){return typeof window!="undefined"&&window===e?e:global!==void 0&&global!=null?global:e},$jscomp.global=$jscomp.getGlobal(this),$jscomp.polyfill=function(e,t,r,n){if(t){for(r=$jscomp.global,e=e.split("."),n=0;n<e.length-1;n++){var i=e[n];i in r||(r[i]={}),r=r[i]}(t=t(n=r[e=e[e.length-1]]))!=n&&t!=null&&$jscomp.defineProperty(r,e,{configurable:!0,writable:!0,value:t})}},$jscomp.polyfill("Array.prototype.findIndex",function(e){return e||function(t,r){return $jscomp.findInternal(this,t,r).i}},"es6","es3"),$jscomp.checkStringArgs=function(e,t,r){if(e==null)throw new TypeError("The 'this' value for String.prototype."+r+" must not be null or undefined");if(t instanceof RegExp)throw new TypeError("First argument to String.prototype."+r+" must not be a regular expression");return e+""},$jscomp.polyfill("String.prototype.endsWith",function(e){return e||function(t,r){var n=$jscomp.checkStringArgs(this,t,"endsWith");t+="",r===void 0&&(r=n.length),r=Math.max(0,Math.min(0|r,n.length));for(var i=t.length;0<i&&0<r;)if(n[--r]!=t[--i])return!1;return 0>=i}},"es6","es3"),$jscomp.polyfill("Array.prototype.find",function(e){return e||function(t,r){return $jscomp.findInternal(this,t,r).v}},"es6","es3"),$jscomp.polyfill("String.prototype.startsWith",function(e){return e||function(t,r){var n=$jscomp.checkStringArgs(this,t,"startsWith");t+="";var i=n.length,g=t.length;r=Math.max(0,Math.min(0|r,n.length));for(var s=0;s<g&&r<i;)if(n[r++]!=t[s++])return!1;return s>=g}},"es6","es3"),$jscomp.polyfill("String.prototype.repeat",function(e){return e||function(t){var r=$jscomp.checkStringArgs(this,null,"repeat");if(0>t||1342177279<t)throw new RangeError("Invalid count value");t|=0;for(var n="";t;)1&t&&(n+=r),(t>>>=1)&&(r+=r);return n}},"es6","es3");var COMPILED=!0,goog=goog||{};goog.global=this||self,goog.isDef=function(e){return e!==void 0},goog.isString=function(e){return typeof e=="string"},goog.isBoolean=function(e){return typeof e=="boolean"},goog.isNumber=function(e){return typeof e=="number"},goog.exportPath_=function(e,t,r){e=e.split("."),r=r||goog.global,e[0]in r||r.execScript===void 0||r.execScript("var "+e[0]);for(var n;e.length&&(n=e.shift());)!e.length&&goog.isDef(t)?r[n]=t:r=r[n]&&r[n]!==Object.prototype[n]?r[n]:r[n]={}},goog.define=function(e,t){return t},goog.FEATURESET_YEAR=2012,goog.DEBUG=!0,goog.LOCALE="en",goog.TRUSTED_SITE=!0,goog.STRICT_MODE_COMPATIBLE=!1,goog.DISALLOW_TEST_ONLY_CODE=!goog.DEBUG,goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING=!1,goog.provide=function(e){if(goog.isInModuleLoader_())throw Error("goog.provide cannot be used within a module.");goog.constructNamespace_(e)},goog.constructNamespace_=function(e,t){goog.exportPath_(e,t)},goog.getScriptNonce=function(e){return e&&e!=goog.global?goog.getScriptNonce_(e.document):(goog.cspNonce_===null&&(goog.cspNonce_=goog.getScriptNonce_(goog.global.document)),goog.cspNonce_)},goog.NONCE_PATTERN_=/^[\w+/_-]+[=]{0,2}$/,goog.cspNonce_=null,goog.getScriptNonce_=function(e){return(e=e.querySelector&&e.querySelector("script[nonce]"))&&(e=e.nonce||e.getAttribute("nonce"))&&goog.NONCE_PATTERN_.test(e)?e:""},goog.VALID_MODULE_RE_=/^[a-zA-Z_$][a-zA-Z0-9._$]*$/,goog.module=function(e){if(!goog.isString(e)||!e||e.search(goog.VALID_MODULE_RE_)==-1)throw Error("Invalid module identifier");if(!goog.isInGoogModuleLoader_())throw Error("Module "+e+" has been loaded incorrectly. Note, modules cannot be loaded as normal scripts. They require some kind of pre-processing step. You're likely trying to load a module via a script tag or as a part of a concatenated bundle without rewriting the module. For more info see: https://github.com/google/closure-library/wiki/goog.module:-an-ES6-module-like-alternative-to-goog.provide.");if(goog.moduleLoaderState_.moduleName)throw Error("goog.module may only be called once per module.");goog.moduleLoaderState_.moduleName=e,!COMPILED},goog.module.get=function(e){return goog.module.getInternal_(e)},goog.module.getInternal_=function(e){return null},goog.ModuleType={ES6:"es6",GOOG:"goog"},goog.moduleLoaderState_=null,goog.isInModuleLoader_=function(){return goog.isInGoogModuleLoader_()||goog.isInEs6ModuleLoader_()},goog.isInGoogModuleLoader_=function(){return!!goog.moduleLoaderState_&&goog.moduleLoaderState_.type==goog.ModuleType.GOOG},goog.isInEs6ModuleLoader_=function(){if(goog.moduleLoaderState_&&goog.moduleLoaderState_.type==goog.ModuleType.ES6)return!0;var e=goog.global.$jscomp;return!!e&&typeof e.getCurrentModulePath=="function"&&!!e.getCurrentModulePath()},goog.module.declareLegacyNamespace=function(){goog.moduleLoaderState_.declareLegacyNamespace=!0},goog.declareModuleId=function(e){if(goog.moduleLoaderState_)goog.moduleLoaderState_.moduleName=e;else{var t=goog.global.$jscomp;if(!t||typeof t.getCurrentModulePath!="function")throw Error('Module with namespace "'+e+'" has been loaded incorrectly.');t=t.require(t.getCurrentModulePath()),goog.loadedModules_[e]={exports:t,type:goog.ModuleType.ES6,moduleId:e}}},goog.setTestOnly=function(e){if(goog.DISALLOW_TEST_ONLY_CODE)throw e=e||"",Error("Importing test-only code into non-debug environment"+(e?": "+e:"."))},goog.forwardDeclare=function(e){},goog.getObjectByName=function(e,t){e=e.split("."),t=t||goog.global;for(var r=0;r<e.length;r++)if(t=t[e[r]],!goog.isDefAndNotNull(t))return null;return t},goog.globalize=function(e,t){for(var r in t=t||goog.global,e)t[r]=e[r]},goog.addDependency=function(e,t,r,n){},goog.ENABLE_DEBUG_LOADER=!0,goog.logToConsole_=function(e){goog.global.console&&goog.global.console.error(e)},goog.require=function(e){},goog.requireType=function(e){return{}},goog.basePath="",goog.nullFunction=function(){},goog.abstractMethod=function(){throw Error("unimplemented abstract method")},goog.addSingletonGetter=function(e){e.instance_=void 0,e.getInstance=function(){return e.instance_?e.instance_:(goog.DEBUG&&(goog.instantiatedSingletons_[goog.instantiatedSingletons_.length]=e),e.instance_=new e)}},goog.instantiatedSingletons_=[],goog.LOAD_MODULE_USING_EVAL=!0,goog.SEAL_MODULE_EXPORTS=goog.DEBUG,goog.loadedModules_={},goog.DEPENDENCIES_ENABLED=!COMPILED,goog.TRANSPILE="detect",goog.ASSUME_ES_MODULES_TRANSPILED=!1,goog.TRANSPILE_TO_LANGUAGE="",goog.TRANSPILER="transpile.js",goog.hasBadLetScoping=null,goog.useSafari10Workaround=function(){if(goog.hasBadLetScoping==null){try{var a=!eval('"use strict";let x = 1; function f() { return typeof x; };f() == "number";')}catch(e){a=!1}goog.hasBadLetScoping=a}return goog.hasBadLetScoping},goog.workaroundSafari10EvalBug=function(e){return"(function(){"+e+`
|
|
28
|
+
`),stack:c.stack,exception:!0,date:new Date().toString(),process:this.getProcessInfo(),os:this.getOsInfo(),trace:this.getTrace(c)}}},{key:"getProcessInfo",value:function(){return{pid:n.pid,uid:n.getuid?n.getuid():null,gid:n.getgid?n.getgid():null,cwd:n.cwd(),execPath:n.execPath,version:n.version,argv:n.argv,memoryUsage:n.memoryUsage()}}},{key:"getOsInfo",value:function(){return{loadavg:g.loadavg(),uptime:g.uptime()}}},{key:"getTrace",value:function(c){return(c?u.parse(c):u.get()).map(function(w){return{column:w.getColumnNumber(),file:w.getFileName(),function:w.getFunctionName(),line:w.getLineNumber(),method:w.getMethodName(),native:w.isNative()}})}},{key:"_addHandler",value:function(c){if(!this.handlers.has(c)){c.handleRejections=!0;var w=new m(c);this.handlers.set(c,w),this.logger.pipe(w)}}},{key:"_unhandledRejection",value:function(c){var w,E=this.getAllInfo(c),P=this._getRejectionHandlers(),F=typeof this.logger.exitOnError=="function"?this.logger.exitOnError(c):this.logger.exitOnError;function M(){o("doExit",F),o("process._exiting",n._exiting),F&&!n._exiting&&(w&&clearTimeout(w),n.exit(1))}if(!P.length&&F&&(console.warn("winston: exitOnError cannot be true with no rejection handlers."),console.warn("winston: not exiting process."),F=!1),!P||P.length===0)return n.nextTick(M);s(P,function(A,p){var N=l(p),$=A.transport||A;function q(h){return function(){o(h),N()}}$._ending=!0,$.once("finish",q("finished")),$.once("error",q("error"))},function(){return F&&M()}),this.logger.log(E),F&&(w=setTimeout(M,3e3))}},{key:"_getRejectionHandlers",value:function(){return this.logger.transports.filter(function(c){return(c.transport||c).handleRejections})}}])&&i(y.prototype,S),R}()}).call(this,r(2))},function(e,t,r){const n=r(50);e.exports=function(i){const g=n(i);if(g<0)throw new Error("should be a positive integer");return g}},function(e,t,r){const n=r(46).URL,i=r(35);e.exports=function(g){const s=i(g);try{return new n(s)}catch{throw new Error("should be a valid URL")}}},function(e,t,r){const n={};n.web=r(22),r(94);const i={v1:{}};i.v1.signaling={},i.v1.signaling.api=r(8),i.v1.signaling.api.SignalingClient=function(y,S,c){c||(c={}),c.format="text",this.client_=new n.web.GrpcWebClientBase(c),this.hostname_=y},i.v1.signaling.api.SignalingPromiseClient=function(y,S,c){c||(c={}),c.format="text",this.client_=new n.web.GrpcWebClientBase(c),this.hostname_=y};const g=new n.web.MethodDescriptor("/v1.signaling.api.Signaling/CreatePeer",n.web.MethodType.UNARY,i.v1.signaling.api.CreatePeerRequest,i.v1.signaling.api.CreatePeerResponse,function(y){return y.serializeBinary()},i.v1.signaling.api.CreatePeerResponse.deserializeBinary);new n.web.AbstractClientBase.MethodInfo(i.v1.signaling.api.CreatePeerResponse,function(y){return y.serializeBinary()},i.v1.signaling.api.CreatePeerResponse.deserializeBinary),i.v1.signaling.api.SignalingClient.prototype.createPeer=function(y,S,c){return this.client_.rpcCall(this.hostname_+"/v1.signaling.api.Signaling/CreatePeer",y,S||{},g,c)},i.v1.signaling.api.SignalingPromiseClient.prototype.createPeer=function(y,S){return this.client_.unaryCall(this.hostname_+"/v1.signaling.api.Signaling/CreatePeer",y,S||{},g)};const s=new n.web.MethodDescriptor("/v1.signaling.api.Signaling/DeletePeer",n.web.MethodType.UNARY,i.v1.signaling.api.DeletePeerRequest,i.v1.signaling.api.DeletePeerResponse,function(y){return y.serializeBinary()},i.v1.signaling.api.DeletePeerResponse.deserializeBinary);new n.web.AbstractClientBase.MethodInfo(i.v1.signaling.api.DeletePeerResponse,function(y){return y.serializeBinary()},i.v1.signaling.api.DeletePeerResponse.deserializeBinary),i.v1.signaling.api.SignalingClient.prototype.deletePeer=function(y,S,c){return this.client_.rpcCall(this.hostname_+"/v1.signaling.api.Signaling/DeletePeer",y,S||{},s,c)},i.v1.signaling.api.SignalingPromiseClient.prototype.deletePeer=function(y,S){return this.client_.unaryCall(this.hostname_+"/v1.signaling.api.Signaling/DeletePeer",y,S||{},s)};const o=new n.web.MethodDescriptor("/v1.signaling.api.Signaling/RefreshPeer",n.web.MethodType.UNARY,i.v1.signaling.api.RefreshPeerRequest,i.v1.signaling.api.RefreshPeerResponse,function(y){return y.serializeBinary()},i.v1.signaling.api.RefreshPeerResponse.deserializeBinary);new n.web.AbstractClientBase.MethodInfo(i.v1.signaling.api.RefreshPeerResponse,function(y){return y.serializeBinary()},i.v1.signaling.api.RefreshPeerResponse.deserializeBinary),i.v1.signaling.api.SignalingClient.prototype.refreshPeer=function(y,S,c){return this.client_.rpcCall(this.hostname_+"/v1.signaling.api.Signaling/RefreshPeer",y,S||{},o,c)},i.v1.signaling.api.SignalingPromiseClient.prototype.refreshPeer=function(y,S){return this.client_.unaryCall(this.hostname_+"/v1.signaling.api.Signaling/RefreshPeer",y,S||{},o)};const l=new n.web.MethodDescriptor("/v1.signaling.api.Signaling/GetPeers",n.web.MethodType.UNARY,i.v1.signaling.api.GetPeersRequest,i.v1.signaling.api.GetPeersResponse,function(y){return y.serializeBinary()},i.v1.signaling.api.GetPeersResponse.deserializeBinary);new n.web.AbstractClientBase.MethodInfo(i.v1.signaling.api.GetPeersResponse,function(y){return y.serializeBinary()},i.v1.signaling.api.GetPeersResponse.deserializeBinary),i.v1.signaling.api.SignalingClient.prototype.getPeers=function(y,S,c){return this.client_.rpcCall(this.hostname_+"/v1.signaling.api.Signaling/GetPeers",y,S||{},l,c)},i.v1.signaling.api.SignalingPromiseClient.prototype.getPeers=function(y,S){return this.client_.unaryCall(this.hostname_+"/v1.signaling.api.Signaling/GetPeers",y,S||{},l)};const u=new n.web.MethodDescriptor("/v1.signaling.api.Signaling/GetIceServers",n.web.MethodType.UNARY,i.v1.signaling.api.GetIceServersRequest,i.v1.signaling.api.GetIceServersResponse,function(y){return y.serializeBinary()},i.v1.signaling.api.GetIceServersResponse.deserializeBinary);new n.web.AbstractClientBase.MethodInfo(i.v1.signaling.api.GetIceServersResponse,function(y){return y.serializeBinary()},i.v1.signaling.api.GetIceServersResponse.deserializeBinary),i.v1.signaling.api.SignalingClient.prototype.getIceServers=function(y,S,c){return this.client_.rpcCall(this.hostname_+"/v1.signaling.api.Signaling/GetIceServers",y,S||{},u,c)},i.v1.signaling.api.SignalingPromiseClient.prototype.getIceServers=function(y,S){return this.client_.unaryCall(this.hostname_+"/v1.signaling.api.Signaling/GetIceServers",y,S||{},u)};const m=new n.web.MethodDescriptor("/v1.signaling.api.Signaling/SendSignal",n.web.MethodType.UNARY,i.v1.signaling.api.SendSignalRequest,i.v1.signaling.api.SendSignalResponse,function(y){return y.serializeBinary()},i.v1.signaling.api.SendSignalResponse.deserializeBinary);new n.web.AbstractClientBase.MethodInfo(i.v1.signaling.api.SendSignalResponse,function(y){return y.serializeBinary()},i.v1.signaling.api.SendSignalResponse.deserializeBinary),i.v1.signaling.api.SignalingClient.prototype.sendSignal=function(y,S,c){return this.client_.rpcCall(this.hostname_+"/v1.signaling.api.Signaling/SendSignal",y,S||{},m,c)},i.v1.signaling.api.SignalingPromiseClient.prototype.sendSignal=function(y,S){return this.client_.unaryCall(this.hostname_+"/v1.signaling.api.Signaling/SendSignal",y,S||{},m)};const R=new n.web.MethodDescriptor("/v1.signaling.api.Signaling/ReceiveSignalStream",n.web.MethodType.SERVER_STREAMING,i.v1.signaling.api.ReceiveSignalStreamRequest,i.v1.signaling.api.ReceiveSignalStreamResponse,function(y){return y.serializeBinary()},i.v1.signaling.api.ReceiveSignalStreamResponse.deserializeBinary);new n.web.AbstractClientBase.MethodInfo(i.v1.signaling.api.ReceiveSignalStreamResponse,function(y){return y.serializeBinary()},i.v1.signaling.api.ReceiveSignalStreamResponse.deserializeBinary),i.v1.signaling.api.SignalingClient.prototype.receiveSignalStream=function(y,S){return this.client_.serverStreaming(this.hostname_+"/v1.signaling.api.Signaling/ReceiveSignalStream",y,S||{},R)},i.v1.signaling.api.SignalingPromiseClient.prototype.receiveSignalStream=function(y,S){return this.client_.serverStreaming(this.hostname_+"/v1.signaling.api.Signaling/ReceiveSignalStream",y,S||{},R)},e.exports=i.v1.signaling.api},function(e,t,r){var n=r(95),i=n,g=Function("return this")();i.exportSymbol("proto.google.protobuf.BoolValue",null,g),i.exportSymbol("proto.google.protobuf.BytesValue",null,g),i.exportSymbol("proto.google.protobuf.DoubleValue",null,g),i.exportSymbol("proto.google.protobuf.FloatValue",null,g),i.exportSymbol("proto.google.protobuf.Int32Value",null,g),i.exportSymbol("proto.google.protobuf.Int64Value",null,g),i.exportSymbol("proto.google.protobuf.StringValue",null,g),i.exportSymbol("proto.google.protobuf.UInt32Value",null,g),i.exportSymbol("proto.google.protobuf.UInt64Value",null,g),proto.google.protobuf.DoubleValue=function(s){n.Message.initialize(this,s,0,-1,null,null)},i.inherits(proto.google.protobuf.DoubleValue,n.Message),i.DEBUG&&!COMPILED&&(proto.google.protobuf.DoubleValue.displayName="proto.google.protobuf.DoubleValue"),proto.google.protobuf.FloatValue=function(s){n.Message.initialize(this,s,0,-1,null,null)},i.inherits(proto.google.protobuf.FloatValue,n.Message),i.DEBUG&&!COMPILED&&(proto.google.protobuf.FloatValue.displayName="proto.google.protobuf.FloatValue"),proto.google.protobuf.Int64Value=function(s){n.Message.initialize(this,s,0,-1,null,null)},i.inherits(proto.google.protobuf.Int64Value,n.Message),i.DEBUG&&!COMPILED&&(proto.google.protobuf.Int64Value.displayName="proto.google.protobuf.Int64Value"),proto.google.protobuf.UInt64Value=function(s){n.Message.initialize(this,s,0,-1,null,null)},i.inherits(proto.google.protobuf.UInt64Value,n.Message),i.DEBUG&&!COMPILED&&(proto.google.protobuf.UInt64Value.displayName="proto.google.protobuf.UInt64Value"),proto.google.protobuf.Int32Value=function(s){n.Message.initialize(this,s,0,-1,null,null)},i.inherits(proto.google.protobuf.Int32Value,n.Message),i.DEBUG&&!COMPILED&&(proto.google.protobuf.Int32Value.displayName="proto.google.protobuf.Int32Value"),proto.google.protobuf.UInt32Value=function(s){n.Message.initialize(this,s,0,-1,null,null)},i.inherits(proto.google.protobuf.UInt32Value,n.Message),i.DEBUG&&!COMPILED&&(proto.google.protobuf.UInt32Value.displayName="proto.google.protobuf.UInt32Value"),proto.google.protobuf.BoolValue=function(s){n.Message.initialize(this,s,0,-1,null,null)},i.inherits(proto.google.protobuf.BoolValue,n.Message),i.DEBUG&&!COMPILED&&(proto.google.protobuf.BoolValue.displayName="proto.google.protobuf.BoolValue"),proto.google.protobuf.StringValue=function(s){n.Message.initialize(this,s,0,-1,null,null)},i.inherits(proto.google.protobuf.StringValue,n.Message),i.DEBUG&&!COMPILED&&(proto.google.protobuf.StringValue.displayName="proto.google.protobuf.StringValue"),proto.google.protobuf.BytesValue=function(s){n.Message.initialize(this,s,0,-1,null,null)},i.inherits(proto.google.protobuf.BytesValue,n.Message),i.DEBUG&&!COMPILED&&(proto.google.protobuf.BytesValue.displayName="proto.google.protobuf.BytesValue"),n.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.DoubleValue.prototype.toObject=function(s){return proto.google.protobuf.DoubleValue.toObject(s,this)},proto.google.protobuf.DoubleValue.toObject=function(s,o){var l={value:n.Message.getFloatingPointFieldWithDefault(o,1,0)};return s&&(l.$jspbMessageInstance=o),l}),proto.google.protobuf.DoubleValue.deserializeBinary=function(s){var o=new n.BinaryReader(s),l=new proto.google.protobuf.DoubleValue;return proto.google.protobuf.DoubleValue.deserializeBinaryFromReader(l,o)},proto.google.protobuf.DoubleValue.deserializeBinaryFromReader=function(s,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var l=o.readDouble();s.setValue(l);break;default:o.skipField()}return s},proto.google.protobuf.DoubleValue.prototype.serializeBinary=function(){var s=new n.BinaryWriter;return proto.google.protobuf.DoubleValue.serializeBinaryToWriter(this,s),s.getResultBuffer()},proto.google.protobuf.DoubleValue.serializeBinaryToWriter=function(s,o){var l;(l=s.getValue())!==0&&o.writeDouble(1,l)},proto.google.protobuf.DoubleValue.prototype.getValue=function(){return n.Message.getFloatingPointFieldWithDefault(this,1,0)},proto.google.protobuf.DoubleValue.prototype.setValue=function(s){return n.Message.setProto3FloatField(this,1,s)},n.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.FloatValue.prototype.toObject=function(s){return proto.google.protobuf.FloatValue.toObject(s,this)},proto.google.protobuf.FloatValue.toObject=function(s,o){var l={value:n.Message.getFloatingPointFieldWithDefault(o,1,0)};return s&&(l.$jspbMessageInstance=o),l}),proto.google.protobuf.FloatValue.deserializeBinary=function(s){var o=new n.BinaryReader(s),l=new proto.google.protobuf.FloatValue;return proto.google.protobuf.FloatValue.deserializeBinaryFromReader(l,o)},proto.google.protobuf.FloatValue.deserializeBinaryFromReader=function(s,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var l=o.readFloat();s.setValue(l);break;default:o.skipField()}return s},proto.google.protobuf.FloatValue.prototype.serializeBinary=function(){var s=new n.BinaryWriter;return proto.google.protobuf.FloatValue.serializeBinaryToWriter(this,s),s.getResultBuffer()},proto.google.protobuf.FloatValue.serializeBinaryToWriter=function(s,o){var l;(l=s.getValue())!==0&&o.writeFloat(1,l)},proto.google.protobuf.FloatValue.prototype.getValue=function(){return n.Message.getFloatingPointFieldWithDefault(this,1,0)},proto.google.protobuf.FloatValue.prototype.setValue=function(s){return n.Message.setProto3FloatField(this,1,s)},n.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.Int64Value.prototype.toObject=function(s){return proto.google.protobuf.Int64Value.toObject(s,this)},proto.google.protobuf.Int64Value.toObject=function(s,o){var l={value:n.Message.getFieldWithDefault(o,1,0)};return s&&(l.$jspbMessageInstance=o),l}),proto.google.protobuf.Int64Value.deserializeBinary=function(s){var o=new n.BinaryReader(s),l=new proto.google.protobuf.Int64Value;return proto.google.protobuf.Int64Value.deserializeBinaryFromReader(l,o)},proto.google.protobuf.Int64Value.deserializeBinaryFromReader=function(s,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var l=o.readInt64();s.setValue(l);break;default:o.skipField()}return s},proto.google.protobuf.Int64Value.prototype.serializeBinary=function(){var s=new n.BinaryWriter;return proto.google.protobuf.Int64Value.serializeBinaryToWriter(this,s),s.getResultBuffer()},proto.google.protobuf.Int64Value.serializeBinaryToWriter=function(s,o){var l;(l=s.getValue())!==0&&o.writeInt64(1,l)},proto.google.protobuf.Int64Value.prototype.getValue=function(){return n.Message.getFieldWithDefault(this,1,0)},proto.google.protobuf.Int64Value.prototype.setValue=function(s){return n.Message.setProto3IntField(this,1,s)},n.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.UInt64Value.prototype.toObject=function(s){return proto.google.protobuf.UInt64Value.toObject(s,this)},proto.google.protobuf.UInt64Value.toObject=function(s,o){var l={value:n.Message.getFieldWithDefault(o,1,0)};return s&&(l.$jspbMessageInstance=o),l}),proto.google.protobuf.UInt64Value.deserializeBinary=function(s){var o=new n.BinaryReader(s),l=new proto.google.protobuf.UInt64Value;return proto.google.protobuf.UInt64Value.deserializeBinaryFromReader(l,o)},proto.google.protobuf.UInt64Value.deserializeBinaryFromReader=function(s,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var l=o.readUint64();s.setValue(l);break;default:o.skipField()}return s},proto.google.protobuf.UInt64Value.prototype.serializeBinary=function(){var s=new n.BinaryWriter;return proto.google.protobuf.UInt64Value.serializeBinaryToWriter(this,s),s.getResultBuffer()},proto.google.protobuf.UInt64Value.serializeBinaryToWriter=function(s,o){var l;(l=s.getValue())!==0&&o.writeUint64(1,l)},proto.google.protobuf.UInt64Value.prototype.getValue=function(){return n.Message.getFieldWithDefault(this,1,0)},proto.google.protobuf.UInt64Value.prototype.setValue=function(s){return n.Message.setProto3IntField(this,1,s)},n.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.Int32Value.prototype.toObject=function(s){return proto.google.protobuf.Int32Value.toObject(s,this)},proto.google.protobuf.Int32Value.toObject=function(s,o){var l={value:n.Message.getFieldWithDefault(o,1,0)};return s&&(l.$jspbMessageInstance=o),l}),proto.google.protobuf.Int32Value.deserializeBinary=function(s){var o=new n.BinaryReader(s),l=new proto.google.protobuf.Int32Value;return proto.google.protobuf.Int32Value.deserializeBinaryFromReader(l,o)},proto.google.protobuf.Int32Value.deserializeBinaryFromReader=function(s,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var l=o.readInt32();s.setValue(l);break;default:o.skipField()}return s},proto.google.protobuf.Int32Value.prototype.serializeBinary=function(){var s=new n.BinaryWriter;return proto.google.protobuf.Int32Value.serializeBinaryToWriter(this,s),s.getResultBuffer()},proto.google.protobuf.Int32Value.serializeBinaryToWriter=function(s,o){var l;(l=s.getValue())!==0&&o.writeInt32(1,l)},proto.google.protobuf.Int32Value.prototype.getValue=function(){return n.Message.getFieldWithDefault(this,1,0)},proto.google.protobuf.Int32Value.prototype.setValue=function(s){return n.Message.setProto3IntField(this,1,s)},n.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.UInt32Value.prototype.toObject=function(s){return proto.google.protobuf.UInt32Value.toObject(s,this)},proto.google.protobuf.UInt32Value.toObject=function(s,o){var l={value:n.Message.getFieldWithDefault(o,1,0)};return s&&(l.$jspbMessageInstance=o),l}),proto.google.protobuf.UInt32Value.deserializeBinary=function(s){var o=new n.BinaryReader(s),l=new proto.google.protobuf.UInt32Value;return proto.google.protobuf.UInt32Value.deserializeBinaryFromReader(l,o)},proto.google.protobuf.UInt32Value.deserializeBinaryFromReader=function(s,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var l=o.readUint32();s.setValue(l);break;default:o.skipField()}return s},proto.google.protobuf.UInt32Value.prototype.serializeBinary=function(){var s=new n.BinaryWriter;return proto.google.protobuf.UInt32Value.serializeBinaryToWriter(this,s),s.getResultBuffer()},proto.google.protobuf.UInt32Value.serializeBinaryToWriter=function(s,o){var l;(l=s.getValue())!==0&&o.writeUint32(1,l)},proto.google.protobuf.UInt32Value.prototype.getValue=function(){return n.Message.getFieldWithDefault(this,1,0)},proto.google.protobuf.UInt32Value.prototype.setValue=function(s){return n.Message.setProto3IntField(this,1,s)},n.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.BoolValue.prototype.toObject=function(s){return proto.google.protobuf.BoolValue.toObject(s,this)},proto.google.protobuf.BoolValue.toObject=function(s,o){var l={value:n.Message.getBooleanFieldWithDefault(o,1,!1)};return s&&(l.$jspbMessageInstance=o),l}),proto.google.protobuf.BoolValue.deserializeBinary=function(s){var o=new n.BinaryReader(s),l=new proto.google.protobuf.BoolValue;return proto.google.protobuf.BoolValue.deserializeBinaryFromReader(l,o)},proto.google.protobuf.BoolValue.deserializeBinaryFromReader=function(s,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var l=o.readBool();s.setValue(l);break;default:o.skipField()}return s},proto.google.protobuf.BoolValue.prototype.serializeBinary=function(){var s=new n.BinaryWriter;return proto.google.protobuf.BoolValue.serializeBinaryToWriter(this,s),s.getResultBuffer()},proto.google.protobuf.BoolValue.serializeBinaryToWriter=function(s,o){var l;(l=s.getValue())&&o.writeBool(1,l)},proto.google.protobuf.BoolValue.prototype.getValue=function(){return n.Message.getBooleanFieldWithDefault(this,1,!1)},proto.google.protobuf.BoolValue.prototype.setValue=function(s){return n.Message.setProto3BooleanField(this,1,s)},n.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.StringValue.prototype.toObject=function(s){return proto.google.protobuf.StringValue.toObject(s,this)},proto.google.protobuf.StringValue.toObject=function(s,o){var l={value:n.Message.getFieldWithDefault(o,1,"")};return s&&(l.$jspbMessageInstance=o),l}),proto.google.protobuf.StringValue.deserializeBinary=function(s){var o=new n.BinaryReader(s),l=new proto.google.protobuf.StringValue;return proto.google.protobuf.StringValue.deserializeBinaryFromReader(l,o)},proto.google.protobuf.StringValue.deserializeBinaryFromReader=function(s,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var l=o.readString();s.setValue(l);break;default:o.skipField()}return s},proto.google.protobuf.StringValue.prototype.serializeBinary=function(){var s=new n.BinaryWriter;return proto.google.protobuf.StringValue.serializeBinaryToWriter(this,s),s.getResultBuffer()},proto.google.protobuf.StringValue.serializeBinaryToWriter=function(s,o){var l;(l=s.getValue()).length>0&&o.writeString(1,l)},proto.google.protobuf.StringValue.prototype.getValue=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.google.protobuf.StringValue.prototype.setValue=function(s){return n.Message.setProto3StringField(this,1,s)},n.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.BytesValue.prototype.toObject=function(s){return proto.google.protobuf.BytesValue.toObject(s,this)},proto.google.protobuf.BytesValue.toObject=function(s,o){var l={value:o.getValue_asB64()};return s&&(l.$jspbMessageInstance=o),l}),proto.google.protobuf.BytesValue.deserializeBinary=function(s){var o=new n.BinaryReader(s),l=new proto.google.protobuf.BytesValue;return proto.google.protobuf.BytesValue.deserializeBinaryFromReader(l,o)},proto.google.protobuf.BytesValue.deserializeBinaryFromReader=function(s,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var l=o.readBytes();s.setValue(l);break;default:o.skipField()}return s},proto.google.protobuf.BytesValue.prototype.serializeBinary=function(){var s=new n.BinaryWriter;return proto.google.protobuf.BytesValue.serializeBinaryToWriter(this,s),s.getResultBuffer()},proto.google.protobuf.BytesValue.serializeBinaryToWriter=function(s,o){var l;(l=s.getValue_asU8()).length>0&&o.writeBytes(1,l)},proto.google.protobuf.BytesValue.prototype.getValue=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.google.protobuf.BytesValue.prototype.getValue_asB64=function(){return n.Message.bytesAsB64(this.getValue())},proto.google.protobuf.BytesValue.prototype.getValue_asU8=function(){return n.Message.bytesAsU8(this.getValue())},proto.google.protobuf.BytesValue.prototype.setValue=function(s){return n.Message.setProto3BytesField(this,1,s)},i.object.extend(t,proto.google.protobuf)},function(module,exports,__webpack_require__){(function(global,Buffer){var $jscomp=$jscomp||{};$jscomp.scope={},$jscomp.findInternal=function(e,t,r){e instanceof String&&(e=String(e));for(var n=e.length,i=0;i<n;i++){var g=e[i];if(t.call(r,g,i,e))return{i,v:g}}return{i:-1,v:void 0}},$jscomp.ASSUME_ES5=!1,$jscomp.ASSUME_NO_NATIVE_MAP=!1,$jscomp.ASSUME_NO_NATIVE_SET=!1,$jscomp.SIMPLE_FROUND_POLYFILL=!1,$jscomp.defineProperty=$jscomp.ASSUME_ES5||typeof Object.defineProperties=="function"?Object.defineProperty:function(e,t,r){e!=Array.prototype&&e!=Object.prototype&&(e[t]=r.value)},$jscomp.getGlobal=function(e){return typeof window!="undefined"&&window===e?e:global!==void 0&&global!=null?global:e},$jscomp.global=$jscomp.getGlobal(this),$jscomp.polyfill=function(e,t,r,n){if(t){for(r=$jscomp.global,e=e.split("."),n=0;n<e.length-1;n++){var i=e[n];i in r||(r[i]={}),r=r[i]}(t=t(n=r[e=e[e.length-1]]))!=n&&t!=null&&$jscomp.defineProperty(r,e,{configurable:!0,writable:!0,value:t})}},$jscomp.polyfill("Array.prototype.findIndex",function(e){return e||function(t,r){return $jscomp.findInternal(this,t,r).i}},"es6","es3"),$jscomp.checkStringArgs=function(e,t,r){if(e==null)throw new TypeError("The 'this' value for String.prototype."+r+" must not be null or undefined");if(t instanceof RegExp)throw new TypeError("First argument to String.prototype."+r+" must not be a regular expression");return e+""},$jscomp.polyfill("String.prototype.endsWith",function(e){return e||function(t,r){var n=$jscomp.checkStringArgs(this,t,"endsWith");t+="",r===void 0&&(r=n.length),r=Math.max(0,Math.min(0|r,n.length));for(var i=t.length;0<i&&0<r;)if(n[--r]!=t[--i])return!1;return 0>=i}},"es6","es3"),$jscomp.polyfill("Array.prototype.find",function(e){return e||function(t,r){return $jscomp.findInternal(this,t,r).v}},"es6","es3"),$jscomp.polyfill("String.prototype.startsWith",function(e){return e||function(t,r){var n=$jscomp.checkStringArgs(this,t,"startsWith");t+="";var i=n.length,g=t.length;r=Math.max(0,Math.min(0|r,n.length));for(var s=0;s<g&&r<i;)if(n[r++]!=t[s++])return!1;return s>=g}},"es6","es3"),$jscomp.polyfill("String.prototype.repeat",function(e){return e||function(t){var r=$jscomp.checkStringArgs(this,null,"repeat");if(0>t||1342177279<t)throw new RangeError("Invalid count value");t|=0;for(var n="";t;)1&t&&(n+=r),(t>>>=1)&&(r+=r);return n}},"es6","es3");var COMPILED=!0,goog=goog||{};goog.global=this||self,goog.isDef=function(e){return e!==void 0},goog.isString=function(e){return typeof e=="string"},goog.isBoolean=function(e){return typeof e=="boolean"},goog.isNumber=function(e){return typeof e=="number"},goog.exportPath_=function(e,t,r){e=e.split("."),r=r||goog.global,e[0]in r||r.execScript===void 0||r.execScript("var "+e[0]);for(var n;e.length&&(n=e.shift());)!e.length&&goog.isDef(t)?r[n]=t:r=r[n]&&r[n]!==Object.prototype[n]?r[n]:r[n]={}},goog.define=function(e,t){return t},goog.FEATURESET_YEAR=2012,goog.DEBUG=!0,goog.LOCALE="en",goog.TRUSTED_SITE=!0,goog.STRICT_MODE_COMPATIBLE=!1,goog.DISALLOW_TEST_ONLY_CODE=!goog.DEBUG,goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING=!1,goog.provide=function(e){if(goog.isInModuleLoader_())throw Error("goog.provide cannot be used within a module.");goog.constructNamespace_(e)},goog.constructNamespace_=function(e,t){goog.exportPath_(e,t)},goog.getScriptNonce=function(e){return e&&e!=goog.global?goog.getScriptNonce_(e.document):(goog.cspNonce_===null&&(goog.cspNonce_=goog.getScriptNonce_(goog.global.document)),goog.cspNonce_)},goog.NONCE_PATTERN_=/^[\w+/_-]+[=]{0,2}$/,goog.cspNonce_=null,goog.getScriptNonce_=function(e){return(e=e.querySelector&&e.querySelector("script[nonce]"))&&(e=e.nonce||e.getAttribute("nonce"))&&goog.NONCE_PATTERN_.test(e)?e:""},goog.VALID_MODULE_RE_=/^[a-zA-Z_$][a-zA-Z0-9._$]*$/,goog.module=function(e){if(!goog.isString(e)||!e||e.search(goog.VALID_MODULE_RE_)==-1)throw Error("Invalid module identifier");if(!goog.isInGoogModuleLoader_())throw Error("Module "+e+" has been loaded incorrectly. Note, modules cannot be loaded as normal scripts. They require some kind of pre-processing step. You're likely trying to load a module via a script tag or as a part of a concatenated bundle without rewriting the module. For more info see: https://github.com/google/closure-library/wiki/goog.module:-an-ES6-module-like-alternative-to-goog.provide.");if(goog.moduleLoaderState_.moduleName)throw Error("goog.module may only be called once per module.");goog.moduleLoaderState_.moduleName=e,!COMPILED},goog.module.get=function(e){return goog.module.getInternal_(e)},goog.module.getInternal_=function(e){return null},goog.ModuleType={ES6:"es6",GOOG:"goog"},goog.moduleLoaderState_=null,goog.isInModuleLoader_=function(){return goog.isInGoogModuleLoader_()||goog.isInEs6ModuleLoader_()},goog.isInGoogModuleLoader_=function(){return!!goog.moduleLoaderState_&&goog.moduleLoaderState_.type==goog.ModuleType.GOOG},goog.isInEs6ModuleLoader_=function(){if(goog.moduleLoaderState_&&goog.moduleLoaderState_.type==goog.ModuleType.ES6)return!0;var e=goog.global.$jscomp;return!!e&&typeof e.getCurrentModulePath=="function"&&!!e.getCurrentModulePath()},goog.module.declareLegacyNamespace=function(){goog.moduleLoaderState_.declareLegacyNamespace=!0},goog.declareModuleId=function(e){if(goog.moduleLoaderState_)goog.moduleLoaderState_.moduleName=e;else{var t=goog.global.$jscomp;if(!t||typeof t.getCurrentModulePath!="function")throw Error('Module with namespace "'+e+'" has been loaded incorrectly.');t=t.require(t.getCurrentModulePath()),goog.loadedModules_[e]={exports:t,type:goog.ModuleType.ES6,moduleId:e}}},goog.setTestOnly=function(e){if(goog.DISALLOW_TEST_ONLY_CODE)throw e=e||"",Error("Importing test-only code into non-debug environment"+(e?": "+e:"."))},goog.forwardDeclare=function(e){},goog.getObjectByName=function(e,t){e=e.split("."),t=t||goog.global;for(var r=0;r<e.length;r++)if(t=t[e[r]],!goog.isDefAndNotNull(t))return null;return t},goog.globalize=function(e,t){for(var r in t=t||goog.global,e)t[r]=e[r]},goog.addDependency=function(e,t,r,n){},goog.ENABLE_DEBUG_LOADER=!0,goog.logToConsole_=function(e){goog.global.console&&goog.global.console.error(e)},goog.require=function(e){},goog.requireType=function(e){return{}},goog.basePath="",goog.nullFunction=function(){},goog.abstractMethod=function(){throw Error("unimplemented abstract method")},goog.addSingletonGetter=function(e){e.instance_=void 0,e.getInstance=function(){return e.instance_?e.instance_:(goog.DEBUG&&(goog.instantiatedSingletons_[goog.instantiatedSingletons_.length]=e),e.instance_=new e)}},goog.instantiatedSingletons_=[],goog.LOAD_MODULE_USING_EVAL=!0,goog.SEAL_MODULE_EXPORTS=goog.DEBUG,goog.loadedModules_={},goog.DEPENDENCIES_ENABLED=!COMPILED,goog.TRANSPILE="detect",goog.ASSUME_ES_MODULES_TRANSPILED=!1,goog.TRANSPILE_TO_LANGUAGE="",goog.TRANSPILER="transpile.js",goog.hasBadLetScoping=null,goog.useSafari10Workaround=function(){if(goog.hasBadLetScoping==null){try{var a=!eval('"use strict";let x = 1; function f() { return typeof x; };f() == "number";')}catch(e){a=!1}goog.hasBadLetScoping=a}return goog.hasBadLetScoping},goog.workaroundSafari10EvalBug=function(e){return"(function(){"+e+`
|
|
29
29
|
;})();
|
|
30
30
|
`},goog.loadModule=function(e){var t=goog.moduleLoaderState_;try{if(goog.moduleLoaderState_={moduleName:"",declareLegacyNamespace:!1,type:goog.ModuleType.GOOG},goog.isFunction(e))var r=e.call(void 0,{});else{if(!goog.isString(e))throw Error("Invalid module definition");goog.useSafari10Workaround()&&(e=goog.workaroundSafari10EvalBug(e)),r=goog.loadModuleFromSource_.call(void 0,e)}var n=goog.moduleLoaderState_.moduleName;if(!goog.isString(n)||!n)throw Error('Invalid module name "'+n+'"');goog.moduleLoaderState_.declareLegacyNamespace?goog.constructNamespace_(n,r):goog.SEAL_MODULE_EXPORTS&&Object.seal&&typeof r=="object"&&r!=null&&Object.seal(r),goog.loadedModules_[n]={exports:r,type:goog.ModuleType.GOOG,moduleId:goog.moduleLoaderState_.moduleName}}finally{goog.moduleLoaderState_=t}},goog.loadModuleFromSource_=function(a){return eval(a),{}},goog.normalizePath_=function(e){e=e.split("/");for(var t=0;t<e.length;)e[t]=="."?e.splice(t,1):t&&e[t]==".."&&e[t-1]&&e[t-1]!=".."?e.splice(--t,2):t++;return e.join("/")},goog.loadFileSync_=function(e){if(goog.global.CLOSURE_LOAD_FILE_SYNC)return goog.global.CLOSURE_LOAD_FILE_SYNC(e);try{var t=new goog.global.XMLHttpRequest;return t.open("get",e,!1),t.send(),t.status==0||t.status==200?t.responseText:null}catch{return null}},goog.transpile_=function(e,t,r){var n=goog.global.$jscomp;n||(goog.global.$jscomp=n={});var i=n.transpile;if(!i){var g=goog.basePath+goog.TRANSPILER,s=goog.loadFileSync_(g);if(s){if(function(){(0,eval)(s+`
|
|
31
31
|
//# sourceURL=`+g)}.call(goog.global),goog.global.$gwtExport&&goog.global.$gwtExport.$jscomp&&!goog.global.$gwtExport.$jscomp.transpile)throw Error('The transpiler did not properly export the "transpile" method. $gwtExport: '+JSON.stringify(goog.global.$gwtExport));goog.global.$jscomp.transpile=goog.global.$gwtExport.$jscomp.transpile,i=(n=goog.global.$jscomp).transpile}}return i||(i=n.transpile=function(o,l){return goog.logToConsole_(l+" requires transpilation but no transpiler was found."),o}),i(e,t,r)},goog.typeOf=function(e){var t=typeof e;if(t=="object"){if(!e)return"null";if(e instanceof Array)return"array";if(e instanceof Object)return t;var r=Object.prototype.toString.call(e);if(r=="[object Window]")return"object";if(r=="[object Array]"||typeof e.length=="number"&&e.splice!==void 0&&e.propertyIsEnumerable!==void 0&&!e.propertyIsEnumerable("splice"))return"array";if(r=="[object Function]"||e.call!==void 0&&e.propertyIsEnumerable!==void 0&&!e.propertyIsEnumerable("call"))return"function"}else if(t=="function"&&e.call===void 0)return"object";return t},goog.isNull=function(e){return e===null},goog.isDefAndNotNull=function(e){return e!=null},goog.isArray=function(e){return goog.typeOf(e)=="array"},goog.isArrayLike=function(e){var t=goog.typeOf(e);return t=="array"||t=="object"&&typeof e.length=="number"},goog.isDateLike=function(e){return goog.isObject(e)&&typeof e.getFullYear=="function"},goog.isFunction=function(e){return goog.typeOf(e)=="function"},goog.isObject=function(e){var t=typeof e;return t=="object"&&e!=null||t=="function"},goog.getUid=function(e){return e[goog.UID_PROPERTY_]||(e[goog.UID_PROPERTY_]=++goog.uidCounter_)},goog.hasUid=function(e){return!!e[goog.UID_PROPERTY_]},goog.removeUid=function(e){e!==null&&"removeAttribute"in e&&e.removeAttribute(goog.UID_PROPERTY_);try{delete e[goog.UID_PROPERTY_]}catch{}},goog.UID_PROPERTY_="closure_uid_"+(1e9*Math.random()>>>0),goog.uidCounter_=0,goog.getHashCode=goog.getUid,goog.removeHashCode=goog.removeUid,goog.cloneObject=function(e){var t=goog.typeOf(e);if(t=="object"||t=="array"){if(typeof e.clone=="function")return e.clone();for(var r in t=t=="array"?[]:{},e)t[r]=goog.cloneObject(e[r]);return t}return e},goog.bindNative_=function(e,t,r){return e.call.apply(e.bind,arguments)},goog.bindJs_=function(e,t,r){if(!e)throw Error();if(2<arguments.length){var n=Array.prototype.slice.call(arguments,2);return function(){var i=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(i,n),e.apply(t,i)}}return function(){return e.apply(t,arguments)}},goog.bind=function(e,t,r){return Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?goog.bind=goog.bindNative_:goog.bind=goog.bindJs_,goog.bind.apply(null,arguments)},goog.partial=function(e,t){var r=Array.prototype.slice.call(arguments,1);return function(){var n=r.slice();return n.push.apply(n,arguments),e.apply(this,n)}},goog.mixin=function(e,t){for(var r in t)e[r]=t[r]},goog.now=goog.TRUSTED_SITE&&Date.now||function(){return+new Date},goog.globalEval=function(e){if(goog.global.execScript)goog.global.execScript(e,"JavaScript");else{if(!goog.global.eval)throw Error("goog.globalEval not available");if(goog.evalWorksForGlobals_==null){try{goog.global.eval("var _evalTest_ = 1;")}catch{}if(goog.global._evalTest_!==void 0){try{delete goog.global._evalTest_}catch{}goog.evalWorksForGlobals_=!0}else goog.evalWorksForGlobals_=!1}if(goog.evalWorksForGlobals_)goog.global.eval(e);else{var t=goog.global.document,r=t.createElement("SCRIPT");r.type="text/javascript",r.defer=!1,r.appendChild(t.createTextNode(e)),t.head.appendChild(r),t.head.removeChild(r)}}},goog.evalWorksForGlobals_=null,goog.getCssName=function(e,t){if(String(e).charAt(0)==".")throw Error('className passed in goog.getCssName must not start with ".". You passed: '+e);var r=function(i){return goog.cssNameMapping_[i]||i},n=function(i){i=i.split("-");for(var g=[],s=0;s<i.length;s++)g.push(r(i[s]));return g.join("-")};return n=goog.cssNameMapping_?goog.cssNameMappingStyle_=="BY_WHOLE"?r:n:function(i){return i},e=t?e+"-"+n(t):n(e),goog.global.CLOSURE_CSS_NAME_MAP_FN?goog.global.CLOSURE_CSS_NAME_MAP_FN(e):e},goog.setCssNameMapping=function(e,t){goog.cssNameMapping_=e,goog.cssNameMappingStyle_=t},goog.getMsg=function(e,t,r){return r&&r.html&&(e=e.replace(/</g,"<")),t&&(e=e.replace(/\{\$([^}]+)}/g,function(n,i){return t!=null&&i in t?t[i]:n})),e},goog.getMsgWithFallback=function(e,t){return e},goog.exportSymbol=function(e,t,r){goog.exportPath_(e,t,r)},goog.exportProperty=function(e,t,r){e[t]=r},goog.inherits=function(e,t){function r(){}r.prototype=t.prototype,e.superClass_=t.prototype,e.prototype=new r,e.prototype.constructor=e,e.base=function(n,i,g){for(var s=Array(arguments.length-2),o=2;o<arguments.length;o++)s[o-2]=arguments[o];return t.prototype[i].apply(n,s)}},goog.base=function(e,t,r){var n=arguments.callee.caller;if(goog.STRICT_MODE_COMPATIBLE||goog.DEBUG&&!n)throw Error("arguments.caller not defined. goog.base() cannot be used with strict mode code. See http://www.ecma-international.org/ecma-262/5.1/#sec-C");if(n.superClass_!==void 0){for(var i=Array(arguments.length-1),g=1;g<arguments.length;g++)i[g-1]=arguments[g];return n.superClass_.constructor.apply(e,i)}if(typeof t!="string"&&typeof t!="symbol")throw Error("method names provided to goog.base must be a string or a symbol");for(i=Array(arguments.length-2),g=2;g<arguments.length;g++)i[g-2]=arguments[g];g=!1;for(var s=e.constructor.prototype;s;s=Object.getPrototypeOf(s))if(s[t]===n)g=!0;else if(g)return s[t].apply(e,i);if(e[t]===n)return e.constructor.prototype[t].apply(e,i);throw Error("goog.base called from a method of one name to a method of a different name")},goog.scope=function(e){if(goog.isInModuleLoader_())throw Error("goog.scope is not supported within a module.");e.call(goog.global)},goog.defineClass=function(e,t){var r=t.constructor,n=t.statics;return r&&r!=Object.prototype.constructor||(r=function(){throw Error("cannot instantiate an interface (no constructor defined).")}),r=goog.defineClass.createSealingConstructor_(r,e),e&&goog.inherits(r,e),delete t.constructor,delete t.statics,goog.defineClass.applyProperties_(r.prototype,t),n!=null&&(n instanceof Function?n(r):goog.defineClass.applyProperties_(r,n)),r},goog.defineClass.SEAL_CLASS_INSTANCES=goog.DEBUG,goog.defineClass.createSealingConstructor_=function(e,t){if(!goog.defineClass.SEAL_CLASS_INSTANCES)return e;var r=!goog.defineClass.isUnsealable_(t),n=function(){var i=e.apply(this,arguments)||this;return i[goog.UID_PROPERTY_]=i[goog.UID_PROPERTY_],this.constructor===n&&r&&Object.seal instanceof Function&&Object.seal(i),i};return n},goog.defineClass.isUnsealable_=function(e){return e&&e.prototype&&e.prototype[goog.UNSEALABLE_CONSTRUCTOR_PROPERTY_]},goog.defineClass.OBJECT_PROTOTYPE_FIELDS_="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),goog.defineClass.applyProperties_=function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);for(var n=0;n<goog.defineClass.OBJECT_PROTOTYPE_FIELDS_.length;n++)r=goog.defineClass.OBJECT_PROTOTYPE_FIELDS_[n],Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},goog.tagUnsealableClass=function(e){},goog.UNSEALABLE_CONSTRUCTOR_PROPERTY_="goog_defineClass_legacy_unsealable",goog.TRUSTED_TYPES_POLICY_NAME="",goog.identity_=function(e){return e},goog.createTrustedTypesPolicy=function(e){var t=null;if(typeof TrustedTypes=="undefined"||!TrustedTypes.createPolicy)return t;try{t=TrustedTypes.createPolicy(e,{createHTML:goog.identity_,createScript:goog.identity_,createScriptURL:goog.identity_,createURL:goog.identity_})}catch(r){goog.logToConsole_(r.message)}return t},goog.TRUSTED_TYPES_POLICY_=goog.TRUSTED_TYPES_POLICY_NAME?goog.createTrustedTypesPolicy(goog.TRUSTED_TYPES_POLICY_NAME+"#base"):null;var jspb={BinaryConstants:{},ConstBinaryMessage:function(){},BinaryMessage:function(){}};jspb.BinaryConstants.FieldType={INVALID:-1,DOUBLE:1,FLOAT:2,INT64:3,UINT64:4,INT32:5,FIXED64:6,FIXED32:7,BOOL:8,STRING:9,GROUP:10,MESSAGE:11,BYTES:12,UINT32:13,ENUM:14,SFIXED32:15,SFIXED64:16,SINT32:17,SINT64:18,FHASH64:30,VHASH64:31},jspb.BinaryConstants.WireType={INVALID:-1,VARINT:0,FIXED64:1,DELIMITED:2,START_GROUP:3,END_GROUP:4,FIXED32:5},jspb.BinaryConstants.FieldTypeToWireType=function(e){var t=jspb.BinaryConstants.FieldType,r=jspb.BinaryConstants.WireType;switch(e){case t.INT32:case t.INT64:case t.UINT32:case t.UINT64:case t.SINT32:case t.SINT64:case t.BOOL:case t.ENUM:case t.VHASH64:return r.VARINT;case t.DOUBLE:case t.FIXED64:case t.SFIXED64:case t.FHASH64:return r.FIXED64;case t.STRING:case t.MESSAGE:case t.BYTES:return r.DELIMITED;case t.FLOAT:case t.FIXED32:case t.SFIXED32:return r.FIXED32;default:return r.INVALID}},jspb.BinaryConstants.INVALID_FIELD_NUMBER=-1,jspb.BinaryConstants.FLOAT32_EPS=1401298464324817e-60,jspb.BinaryConstants.FLOAT32_MIN=11754943508222875e-54,jspb.BinaryConstants.FLOAT32_MAX=34028234663852886e22,jspb.BinaryConstants.FLOAT64_EPS=5e-324,jspb.BinaryConstants.FLOAT64_MIN=22250738585072014e-324,jspb.BinaryConstants.FLOAT64_MAX=17976931348623157e292,jspb.BinaryConstants.TWO_TO_20=1048576,jspb.BinaryConstants.TWO_TO_23=8388608,jspb.BinaryConstants.TWO_TO_31=2147483648,jspb.BinaryConstants.TWO_TO_32=4294967296,jspb.BinaryConstants.TWO_TO_52=4503599627370496,jspb.BinaryConstants.TWO_TO_63=9223372036854776e3,jspb.BinaryConstants.TWO_TO_64=18446744073709552e3,jspb.BinaryConstants.ZERO_HASH="\0\0\0\0\0\0\0\0",goog.dom={},goog.dom.NodeType={ELEMENT:1,ATTRIBUTE:2,TEXT:3,CDATA_SECTION:4,ENTITY_REFERENCE:5,ENTITY:6,PROCESSING_INSTRUCTION:7,COMMENT:8,DOCUMENT:9,DOCUMENT_TYPE:10,DOCUMENT_FRAGMENT:11,NOTATION:12},goog.debug={},goog.debug.Error=function(e){if(Error.captureStackTrace)Error.captureStackTrace(this,goog.debug.Error);else{var t=Error().stack;t&&(this.stack=t)}e&&(this.message=String(e)),this.reportErrorToServer=!0},goog.inherits(goog.debug.Error,Error),goog.debug.Error.prototype.name="CustomError",goog.asserts={},goog.asserts.ENABLE_ASSERTS=goog.DEBUG,goog.asserts.AssertionError=function(e,t){goog.debug.Error.call(this,goog.asserts.subs_(e,t)),this.messagePattern=e},goog.inherits(goog.asserts.AssertionError,goog.debug.Error),goog.asserts.AssertionError.prototype.name="AssertionError",goog.asserts.DEFAULT_ERROR_HANDLER=function(e){throw e},goog.asserts.errorHandler_=goog.asserts.DEFAULT_ERROR_HANDLER,goog.asserts.subs_=function(e,t){for(var r="",n=(e=e.split("%s")).length-1,i=0;i<n;i++)r+=e[i]+(i<t.length?t[i]:"%s");return r+e[n]},goog.asserts.doAssertFailure_=function(e,t,r,n){var i="Assertion failed";if(r){i+=": "+r;var g=n}else e&&(i+=": "+e,g=t);e=new goog.asserts.AssertionError(""+i,g||[]),goog.asserts.errorHandler_(e)},goog.asserts.setErrorHandler=function(e){goog.asserts.ENABLE_ASSERTS&&(goog.asserts.errorHandler_=e)},goog.asserts.assert=function(e,t,r){return goog.asserts.ENABLE_ASSERTS&&!e&&goog.asserts.doAssertFailure_("",null,t,Array.prototype.slice.call(arguments,2)),e},goog.asserts.assertExists=function(e,t,r){return goog.asserts.ENABLE_ASSERTS&&e==null&&goog.asserts.doAssertFailure_("Expected to exist: %s.",[e],t,Array.prototype.slice.call(arguments,2)),e},goog.asserts.fail=function(e,t){goog.asserts.ENABLE_ASSERTS&&goog.asserts.errorHandler_(new goog.asserts.AssertionError("Failure"+(e?": "+e:""),Array.prototype.slice.call(arguments,1)))},goog.asserts.assertNumber=function(e,t,r){return goog.asserts.ENABLE_ASSERTS&&!goog.isNumber(e)&&goog.asserts.doAssertFailure_("Expected number but got %s: %s.",[goog.typeOf(e),e],t,Array.prototype.slice.call(arguments,2)),e},goog.asserts.assertString=function(e,t,r){return goog.asserts.ENABLE_ASSERTS&&!goog.isString(e)&&goog.asserts.doAssertFailure_("Expected string but got %s: %s.",[goog.typeOf(e),e],t,Array.prototype.slice.call(arguments,2)),e},goog.asserts.assertFunction=function(e,t,r){return goog.asserts.ENABLE_ASSERTS&&!goog.isFunction(e)&&goog.asserts.doAssertFailure_("Expected function but got %s: %s.",[goog.typeOf(e),e],t,Array.prototype.slice.call(arguments,2)),e},goog.asserts.assertObject=function(e,t,r){return goog.asserts.ENABLE_ASSERTS&&!goog.isObject(e)&&goog.asserts.doAssertFailure_("Expected object but got %s: %s.",[goog.typeOf(e),e],t,Array.prototype.slice.call(arguments,2)),e},goog.asserts.assertArray=function(e,t,r){return goog.asserts.ENABLE_ASSERTS&&!goog.isArray(e)&&goog.asserts.doAssertFailure_("Expected array but got %s: %s.",[goog.typeOf(e),e],t,Array.prototype.slice.call(arguments,2)),e},goog.asserts.assertBoolean=function(e,t,r){return goog.asserts.ENABLE_ASSERTS&&!goog.isBoolean(e)&&goog.asserts.doAssertFailure_("Expected boolean but got %s: %s.",[goog.typeOf(e),e],t,Array.prototype.slice.call(arguments,2)),e},goog.asserts.assertElement=function(e,t,r){return!goog.asserts.ENABLE_ASSERTS||goog.isObject(e)&&e.nodeType==goog.dom.NodeType.ELEMENT||goog.asserts.doAssertFailure_("Expected Element but got %s: %s.",[goog.typeOf(e),e],t,Array.prototype.slice.call(arguments,2)),e},goog.asserts.assertInstanceof=function(e,t,r,n){return!goog.asserts.ENABLE_ASSERTS||e instanceof t||goog.asserts.doAssertFailure_("Expected instanceof %s but got %s.",[goog.asserts.getType_(t),goog.asserts.getType_(e)],r,Array.prototype.slice.call(arguments,3)),e},goog.asserts.assertFinite=function(e,t,r){return!goog.asserts.ENABLE_ASSERTS||typeof e=="number"&&isFinite(e)||goog.asserts.doAssertFailure_("Expected %s to be a finite number but it is not.",[e],t,Array.prototype.slice.call(arguments,2)),e},goog.asserts.assertObjectPrototypeIsIntact=function(){for(var e in Object.prototype)goog.asserts.fail(e+" should not be enumerable in Object.prototype.")},goog.asserts.getType_=function(e){return e instanceof Function?e.displayName||e.name||"unknown type name":e instanceof Object?e.constructor.displayName||e.constructor.name||Object.prototype.toString.call(e):e===null?"null":typeof e},goog.array={},goog.NATIVE_ARRAY_PROTOTYPES=goog.TRUSTED_SITE,goog.array.ASSUME_NATIVE_FUNCTIONS=2012<goog.FEATURESET_YEAR,goog.array.peek=function(e){return e[e.length-1]},goog.array.last=goog.array.peek,goog.array.indexOf=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.indexOf)?function(e,t,r){return goog.asserts.assert(e.length!=null),Array.prototype.indexOf.call(e,t,r)}:function(e,t,r){if(r=r==null?0:0>r?Math.max(0,e.length+r):r,goog.isString(e))return goog.isString(t)&&t.length==1?e.indexOf(t,r):-1;for(;r<e.length;r++)if(r in e&&e[r]===t)return r;return-1},goog.array.lastIndexOf=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.lastIndexOf)?function(e,t,r){return goog.asserts.assert(e.length!=null),Array.prototype.lastIndexOf.call(e,t,r==null?e.length-1:r)}:function(e,t,r){if(0>(r=r==null?e.length-1:r)&&(r=Math.max(0,e.length+r)),goog.isString(e))return goog.isString(t)&&t.length==1?e.lastIndexOf(t,r):-1;for(;0<=r;r--)if(r in e&&e[r]===t)return r;return-1},goog.array.forEach=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.forEach)?function(e,t,r){goog.asserts.assert(e.length!=null),Array.prototype.forEach.call(e,t,r)}:function(e,t,r){for(var n=e.length,i=goog.isString(e)?e.split(""):e,g=0;g<n;g++)g in i&&t.call(r,i[g],g,e)},goog.array.forEachRight=function(e,t,r){var n=e.length,i=goog.isString(e)?e.split(""):e;for(--n;0<=n;--n)n in i&&t.call(r,i[n],n,e)},goog.array.filter=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.filter)?function(e,t,r){return goog.asserts.assert(e.length!=null),Array.prototype.filter.call(e,t,r)}:function(e,t,r){for(var n=e.length,i=[],g=0,s=goog.isString(e)?e.split(""):e,o=0;o<n;o++)if(o in s){var l=s[o];t.call(r,l,o,e)&&(i[g++]=l)}return i},goog.array.map=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.map)?function(e,t,r){return goog.asserts.assert(e.length!=null),Array.prototype.map.call(e,t,r)}:function(e,t,r){for(var n=e.length,i=Array(n),g=goog.isString(e)?e.split(""):e,s=0;s<n;s++)s in g&&(i[s]=t.call(r,g[s],s,e));return i},goog.array.reduce=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.reduce)?function(e,t,r,n){return goog.asserts.assert(e.length!=null),n&&(t=goog.bind(t,n)),Array.prototype.reduce.call(e,t,r)}:function(e,t,r,n){var i=r;return goog.array.forEach(e,function(g,s){i=t.call(n,i,g,s,e)}),i},goog.array.reduceRight=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.reduceRight)?function(e,t,r,n){return goog.asserts.assert(e.length!=null),goog.asserts.assert(t!=null),n&&(t=goog.bind(t,n)),Array.prototype.reduceRight.call(e,t,r)}:function(e,t,r,n){var i=r;return goog.array.forEachRight(e,function(g,s){i=t.call(n,i,g,s,e)}),i},goog.array.some=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.some)?function(e,t,r){return goog.asserts.assert(e.length!=null),Array.prototype.some.call(e,t,r)}:function(e,t,r){for(var n=e.length,i=goog.isString(e)?e.split(""):e,g=0;g<n;g++)if(g in i&&t.call(r,i[g],g,e))return!0;return!1},goog.array.every=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.every)?function(e,t,r){return goog.asserts.assert(e.length!=null),Array.prototype.every.call(e,t,r)}:function(e,t,r){for(var n=e.length,i=goog.isString(e)?e.split(""):e,g=0;g<n;g++)if(g in i&&!t.call(r,i[g],g,e))return!1;return!0},goog.array.count=function(e,t,r){var n=0;return goog.array.forEach(e,function(i,g,s){t.call(r,i,g,s)&&++n},r),n},goog.array.find=function(e,t,r){return 0>(t=goog.array.findIndex(e,t,r))?null:goog.isString(e)?e.charAt(t):e[t]},goog.array.findIndex=function(e,t,r){for(var n=e.length,i=goog.isString(e)?e.split(""):e,g=0;g<n;g++)if(g in i&&t.call(r,i[g],g,e))return g;return-1},goog.array.findRight=function(e,t,r){return 0>(t=goog.array.findIndexRight(e,t,r))?null:goog.isString(e)?e.charAt(t):e[t]},goog.array.findIndexRight=function(e,t,r){var n=e.length,i=goog.isString(e)?e.split(""):e;for(--n;0<=n;n--)if(n in i&&t.call(r,i[n],n,e))return n;return-1},goog.array.contains=function(e,t){return 0<=goog.array.indexOf(e,t)},goog.array.isEmpty=function(e){return e.length==0},goog.array.clear=function(e){if(!goog.isArray(e))for(var t=e.length-1;0<=t;t--)delete e[t];e.length=0},goog.array.insert=function(e,t){goog.array.contains(e,t)||e.push(t)},goog.array.insertAt=function(e,t,r){goog.array.splice(e,r,0,t)},goog.array.insertArrayAt=function(e,t,r){goog.partial(goog.array.splice,e,r,0).apply(null,t)},goog.array.insertBefore=function(e,t,r){var n;arguments.length==2||0>(n=goog.array.indexOf(e,r))?e.push(t):goog.array.insertAt(e,t,n)},goog.array.remove=function(e,t){var r;return(r=0<=(t=goog.array.indexOf(e,t)))&&goog.array.removeAt(e,t),r},goog.array.removeLast=function(e,t){return 0<=(t=goog.array.lastIndexOf(e,t))&&(goog.array.removeAt(e,t),!0)},goog.array.removeAt=function(e,t){return goog.asserts.assert(e.length!=null),Array.prototype.splice.call(e,t,1).length==1},goog.array.removeIf=function(e,t,r){return 0<=(t=goog.array.findIndex(e,t,r))&&(goog.array.removeAt(e,t),!0)},goog.array.removeAllIf=function(e,t,r){var n=0;return goog.array.forEachRight(e,function(i,g){t.call(r,i,g,e)&&goog.array.removeAt(e,g)&&n++}),n},goog.array.concat=function(e){return Array.prototype.concat.apply([],arguments)},goog.array.join=function(e){return Array.prototype.concat.apply([],arguments)},goog.array.toArray=function(e){var t=e.length;if(0<t){for(var r=Array(t),n=0;n<t;n++)r[n]=e[n];return r}return[]},goog.array.clone=goog.array.toArray,goog.array.extend=function(e,t){for(var r=1;r<arguments.length;r++){var n=arguments[r];if(goog.isArrayLike(n)){var i=e.length||0,g=n.length||0;e.length=i+g;for(var s=0;s<g;s++)e[i+s]=n[s]}else e.push(n)}},goog.array.splice=function(e,t,r,n){return goog.asserts.assert(e.length!=null),Array.prototype.splice.apply(e,goog.array.slice(arguments,1))},goog.array.slice=function(e,t,r){return goog.asserts.assert(e.length!=null),2>=arguments.length?Array.prototype.slice.call(e,t):Array.prototype.slice.call(e,t,r)},goog.array.removeDuplicates=function(e,t,r){t=t||e;var n=function(l){return goog.isObject(l)?"o"+goog.getUid(l):(typeof l).charAt(0)+l};r=r||n,n={};for(var i=0,g=0;g<e.length;){var s=e[g++],o=r(s);Object.prototype.hasOwnProperty.call(n,o)||(n[o]=!0,t[i++]=s)}t.length=i},goog.array.binarySearch=function(e,t,r){return goog.array.binarySearch_(e,r||goog.array.defaultCompare,!1,t)},goog.array.binarySelect=function(e,t,r){return goog.array.binarySearch_(e,t,!0,void 0,r)},goog.array.binarySearch_=function(e,t,r,n,i){for(var g,s=0,o=e.length;s<o;){var l=s+o>>1,u=r?t.call(i,e[l],l,e):t(n,e[l]);0<u?s=l+1:(o=l,g=!u)}return g?s:~s},goog.array.sort=function(e,t){e.sort(t||goog.array.defaultCompare)},goog.array.stableSort=function(e,t){for(var r=Array(e.length),n=0;n<e.length;n++)r[n]={index:n,value:e[n]};var i=t||goog.array.defaultCompare;for(goog.array.sort(r,function(g,s){return i(g.value,s.value)||g.index-s.index}),n=0;n<e.length;n++)e[n]=r[n].value},goog.array.sortByKey=function(e,t,r){var n=r||goog.array.defaultCompare;goog.array.sort(e,function(i,g){return n(t(i),t(g))})},goog.array.sortObjectsByKey=function(e,t,r){goog.array.sortByKey(e,function(n){return n[t]},r)},goog.array.isSorted=function(e,t,r){t=t||goog.array.defaultCompare;for(var n=1;n<e.length;n++){var i=t(e[n-1],e[n]);if(0<i||i==0&&r)return!1}return!0},goog.array.equals=function(e,t,r){if(!goog.isArrayLike(e)||!goog.isArrayLike(t)||e.length!=t.length)return!1;var n=e.length;r=r||goog.array.defaultCompareEquality;for(var i=0;i<n;i++)if(!r(e[i],t[i]))return!1;return!0},goog.array.compare3=function(e,t,r){r=r||goog.array.defaultCompare;for(var n=Math.min(e.length,t.length),i=0;i<n;i++){var g=r(e[i],t[i]);if(g!=0)return g}return goog.array.defaultCompare(e.length,t.length)},goog.array.defaultCompare=function(e,t){return e>t?1:e<t?-1:0},goog.array.inverseDefaultCompare=function(e,t){return-goog.array.defaultCompare(e,t)},goog.array.defaultCompareEquality=function(e,t){return e===t},goog.array.binaryInsert=function(e,t,r){return 0>(r=goog.array.binarySearch(e,t,r))&&(goog.array.insertAt(e,t,-(r+1)),!0)},goog.array.binaryRemove=function(e,t,r){return 0<=(t=goog.array.binarySearch(e,t,r))&&goog.array.removeAt(e,t)},goog.array.bucket=function(e,t,r){for(var n={},i=0;i<e.length;i++){var g=e[i],s=t.call(r,g,i,e);goog.isDef(s)&&(n[s]||(n[s]=[])).push(g)}return n},goog.array.toObject=function(e,t,r){var n={};return goog.array.forEach(e,function(i,g){n[t.call(r,i,g,e)]=i}),n},goog.array.range=function(e,t,r){var n=[],i=0,g=e;if(t!==void 0&&(i=e,g=t),0>(r=r||1)*(g-i))return[];if(0<r)for(e=i;e<g;e+=r)n.push(e);else for(e=i;e>g;e+=r)n.push(e);return n},goog.array.repeat=function(e,t){for(var r=[],n=0;n<t;n++)r[n]=e;return r},goog.array.flatten=function(e){for(var t=[],r=0;r<arguments.length;r++){var n=arguments[r];if(goog.isArray(n))for(var i=0;i<n.length;i+=8192){var g=goog.array.slice(n,i,i+8192);g=goog.array.flatten.apply(null,g);for(var s=0;s<g.length;s++)t.push(g[s])}else t.push(n)}return t},goog.array.rotate=function(e,t){return goog.asserts.assert(e.length!=null),e.length&&(0<(t%=e.length)?Array.prototype.unshift.apply(e,e.splice(-t,t)):0>t&&Array.prototype.push.apply(e,e.splice(0,-t))),e},goog.array.moveItem=function(e,t,r){goog.asserts.assert(0<=t&&t<e.length),goog.asserts.assert(0<=r&&r<e.length),t=Array.prototype.splice.call(e,t,1),Array.prototype.splice.call(e,r,0,t[0])},goog.array.zip=function(e){if(!arguments.length)return[];for(var t=[],r=arguments[0].length,n=1;n<arguments.length;n++)arguments[n].length<r&&(r=arguments[n].length);for(n=0;n<r;n++){for(var i=[],g=0;g<arguments.length;g++)i.push(arguments[g][n]);t.push(i)}return t},goog.array.shuffle=function(e,t){t=t||Math.random;for(var r=e.length-1;0<r;r--){var n=Math.floor(t()*(r+1)),i=e[r];e[r]=e[n],e[n]=i}},goog.array.copyByIndex=function(e,t){var r=[];return goog.array.forEach(t,function(n){r.push(e[n])}),r},goog.array.concatMap=function(e,t,r){return goog.array.concat.apply([],goog.array.map(e,t,r))},goog.crypt={},goog.crypt.stringToByteArray=function(e){for(var t=[],r=0,n=0;n<e.length;n++){var i=e.charCodeAt(n);255<i&&(t[r++]=255&i,i>>=8),t[r++]=i}return t},goog.crypt.byteArrayToString=function(e){if(8192>=e.length)return String.fromCharCode.apply(null,e);for(var t="",r=0;r<e.length;r+=8192){var n=goog.array.slice(e,r,r+8192);t+=String.fromCharCode.apply(null,n)}return t},goog.crypt.byteArrayToHex=function(e,t){return goog.array.map(e,function(r){return 1<(r=r.toString(16)).length?r:"0"+r}).join(t||"")},goog.crypt.hexToByteArray=function(e){goog.asserts.assert(e.length%2==0,"Key string length must be multiple of 2");for(var t=[],r=0;r<e.length;r+=2)t.push(parseInt(e.substring(r,r+2),16));return t},goog.crypt.stringToUtf8ByteArray=function(e){for(var t=[],r=0,n=0;n<e.length;n++){var i=e.charCodeAt(n);128>i?t[r++]=i:(2048>i?t[r++]=i>>6|192:((64512&i)==55296&&n+1<e.length&&(64512&e.charCodeAt(n+1))==56320?(i=65536+((1023&i)<<10)+(1023&e.charCodeAt(++n)),t[r++]=i>>18|240,t[r++]=i>>12&63|128):t[r++]=i>>12|224,t[r++]=i>>6&63|128),t[r++]=63&i|128)}return t},goog.crypt.utf8ByteArrayToString=function(e){for(var t=[],r=0,n=0;r<e.length;){var i=e[r++];if(128>i)t[n++]=String.fromCharCode(i);else if(191<i&&224>i){var g=e[r++];t[n++]=String.fromCharCode((31&i)<<6|63&g)}else if(239<i&&365>i){g=e[r++];var s=e[r++];i=((7&i)<<18|(63&g)<<12|(63&s)<<6|63&e[r++])-65536,t[n++]=String.fromCharCode(55296+(i>>10)),t[n++]=String.fromCharCode(56320+(1023&i))}else g=e[r++],s=e[r++],t[n++]=String.fromCharCode((15&i)<<12|(63&g)<<6|63&s)}return t.join("")},goog.crypt.xorByteArray=function(e,t){goog.asserts.assert(e.length==t.length,"XOR array lengths must match");for(var r=[],n=0;n<e.length;n++)r.push(e[n]^t[n]);return r},goog.string={},goog.string.internal={},goog.string.internal.startsWith=function(e,t){return e.lastIndexOf(t,0)==0},goog.string.internal.endsWith=function(e,t){var r=e.length-t.length;return 0<=r&&e.indexOf(t,r)==r},goog.string.internal.caseInsensitiveStartsWith=function(e,t){return goog.string.internal.caseInsensitiveCompare(t,e.substr(0,t.length))==0},goog.string.internal.caseInsensitiveEndsWith=function(e,t){return goog.string.internal.caseInsensitiveCompare(t,e.substr(e.length-t.length,t.length))==0},goog.string.internal.caseInsensitiveEquals=function(e,t){return e.toLowerCase()==t.toLowerCase()},goog.string.internal.isEmptyOrWhitespace=function(e){return/^[\s\xa0]*$/.test(e)},goog.string.internal.trim=goog.TRUSTED_SITE&&String.prototype.trim?function(e){return e.trim()}:function(e){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(e)[1]},goog.string.internal.caseInsensitiveCompare=function(e,t){return(e=String(e).toLowerCase())<(t=String(t).toLowerCase())?-1:e==t?0:1},goog.string.internal.newLineToBr=function(e,t){return e.replace(/(\r\n|\r|\n)/g,t?"<br />":"<br>")},goog.string.internal.htmlEscape=function(e,t){if(t)e=e.replace(goog.string.internal.AMP_RE_,"&").replace(goog.string.internal.LT_RE_,"<").replace(goog.string.internal.GT_RE_,">").replace(goog.string.internal.QUOT_RE_,""").replace(goog.string.internal.SINGLE_QUOTE_RE_,"'").replace(goog.string.internal.NULL_RE_,"�");else{if(!goog.string.internal.ALL_RE_.test(e))return e;e.indexOf("&")!=-1&&(e=e.replace(goog.string.internal.AMP_RE_,"&")),e.indexOf("<")!=-1&&(e=e.replace(goog.string.internal.LT_RE_,"<")),e.indexOf(">")!=-1&&(e=e.replace(goog.string.internal.GT_RE_,">")),e.indexOf('"')!=-1&&(e=e.replace(goog.string.internal.QUOT_RE_,""")),e.indexOf("'")!=-1&&(e=e.replace(goog.string.internal.SINGLE_QUOTE_RE_,"'")),e.indexOf("\0")!=-1&&(e=e.replace(goog.string.internal.NULL_RE_,"�"))}return e},goog.string.internal.AMP_RE_=/&/g,goog.string.internal.LT_RE_=/</g,goog.string.internal.GT_RE_=/>/g,goog.string.internal.QUOT_RE_=/"/g,goog.string.internal.SINGLE_QUOTE_RE_=/'/g,goog.string.internal.NULL_RE_=/\x00/g,goog.string.internal.ALL_RE_=/[\x00&<>"']/,goog.string.internal.whitespaceEscape=function(e,t){return goog.string.internal.newLineToBr(e.replace(/ /g,"  "),t)},goog.string.internal.contains=function(e,t){return e.indexOf(t)!=-1},goog.string.internal.caseInsensitiveContains=function(e,t){return goog.string.internal.contains(e.toLowerCase(),t.toLowerCase())},goog.string.internal.compareVersions=function(e,t){var r=0;e=goog.string.internal.trim(String(e)).split("."),t=goog.string.internal.trim(String(t)).split(".");for(var n=Math.max(e.length,t.length),i=0;r==0&&i<n;i++){var g=e[i]||"",s=t[i]||"";do{if(g=/(\d*)(\D*)(.*)/.exec(g)||["","","",""],s=/(\d*)(\D*)(.*)/.exec(s)||["","","",""],g[0].length==0&&s[0].length==0)break;r=g[1].length==0?0:parseInt(g[1],10);var o=s[1].length==0?0:parseInt(s[1],10);r=goog.string.internal.compareElements_(r,o)||goog.string.internal.compareElements_(g[2].length==0,s[2].length==0)||goog.string.internal.compareElements_(g[2],s[2]),g=g[3],s=s[3]}while(r==0)}return r},goog.string.internal.compareElements_=function(e,t){return e<t?-1:e>t?1:0},goog.string.TypedString=function(){},goog.string.Const=function(e,t){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=e===goog.string.Const.GOOG_STRING_CONSTRUCTOR_TOKEN_PRIVATE_&&t||"",this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=goog.string.Const.TYPE_MARKER_},goog.string.Const.prototype.implementsGoogStringTypedString=!0,goog.string.Const.prototype.getTypedStringValue=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_},goog.string.Const.prototype.toString=function(){return"Const{"+this.stringConstValueWithSecurityContract__googStringSecurityPrivate_+"}"},goog.string.Const.unwrap=function(e){return e instanceof goog.string.Const&&e.constructor===goog.string.Const&&e.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===goog.string.Const.TYPE_MARKER_?e.stringConstValueWithSecurityContract__googStringSecurityPrivate_:(goog.asserts.fail("expected object of type Const, got '"+e+"'"),"type_error:Const")},goog.string.Const.from=function(e){return new goog.string.Const(goog.string.Const.GOOG_STRING_CONSTRUCTOR_TOKEN_PRIVATE_,e)},goog.string.Const.TYPE_MARKER_={},goog.string.Const.GOOG_STRING_CONSTRUCTOR_TOKEN_PRIVATE_={},goog.string.Const.EMPTY=goog.string.Const.from(""),goog.fs={},goog.fs.url={},goog.fs.url.createObjectUrl=function(e){return goog.fs.url.getUrlObject_().createObjectURL(e)},goog.fs.url.revokeObjectUrl=function(e){goog.fs.url.getUrlObject_().revokeObjectURL(e)},goog.fs.url.getUrlObject_=function(){var e=goog.fs.url.findUrlObject_();if(e!=null)return e;throw Error("This browser doesn't seem to support blob URLs")},goog.fs.url.findUrlObject_=function(){return goog.isDef(goog.global.URL)&&goog.isDef(goog.global.URL.createObjectURL)?goog.global.URL:goog.isDef(goog.global.webkitURL)&&goog.isDef(goog.global.webkitURL.createObjectURL)?goog.global.webkitURL:goog.isDef(goog.global.createObjectURL)?goog.global:null},goog.fs.url.browserSupportsObjectUrls=function(){return goog.fs.url.findUrlObject_()!=null},goog.html={},goog.html.trustedtypes={},goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY=goog.TRUSTED_TYPES_POLICY_NAME?goog.createTrustedTypesPolicy(goog.TRUSTED_TYPES_POLICY_NAME+"#html"):null,goog.i18n={},goog.i18n.bidi={},goog.i18n.bidi.FORCE_RTL=!1,goog.i18n.bidi.IS_RTL=goog.i18n.bidi.FORCE_RTL||(goog.LOCALE.substring(0,2).toLowerCase()=="ar"||goog.LOCALE.substring(0,2).toLowerCase()=="fa"||goog.LOCALE.substring(0,2).toLowerCase()=="he"||goog.LOCALE.substring(0,2).toLowerCase()=="iw"||goog.LOCALE.substring(0,2).toLowerCase()=="ps"||goog.LOCALE.substring(0,2).toLowerCase()=="sd"||goog.LOCALE.substring(0,2).toLowerCase()=="ug"||goog.LOCALE.substring(0,2).toLowerCase()=="ur"||goog.LOCALE.substring(0,2).toLowerCase()=="yi")&&(goog.LOCALE.length==2||goog.LOCALE.substring(2,3)=="-"||goog.LOCALE.substring(2,3)=="_")||3<=goog.LOCALE.length&&goog.LOCALE.substring(0,3).toLowerCase()=="ckb"&&(goog.LOCALE.length==3||goog.LOCALE.substring(3,4)=="-"||goog.LOCALE.substring(3,4)=="_")||7<=goog.LOCALE.length&&(goog.LOCALE.substring(2,3)=="-"||goog.LOCALE.substring(2,3)=="_")&&(goog.LOCALE.substring(3,7).toLowerCase()=="adlm"||goog.LOCALE.substring(3,7).toLowerCase()=="arab"||goog.LOCALE.substring(3,7).toLowerCase()=="hebr"||goog.LOCALE.substring(3,7).toLowerCase()=="nkoo"||goog.LOCALE.substring(3,7).toLowerCase()=="rohg"||goog.LOCALE.substring(3,7).toLowerCase()=="thaa")||8<=goog.LOCALE.length&&(goog.LOCALE.substring(3,4)=="-"||goog.LOCALE.substring(3,4)=="_")&&(goog.LOCALE.substring(4,8).toLowerCase()=="adlm"||goog.LOCALE.substring(4,8).toLowerCase()=="arab"||goog.LOCALE.substring(4,8).toLowerCase()=="hebr"||goog.LOCALE.substring(4,8).toLowerCase()=="nkoo"||goog.LOCALE.substring(4,8).toLowerCase()=="rohg"||goog.LOCALE.substring(4,8).toLowerCase()=="thaa"),goog.i18n.bidi.Format={LRE:"\u202A",RLE:"\u202B",PDF:"\u202C",LRM:"\u200E",RLM:"\u200F"},goog.i18n.bidi.Dir={LTR:1,RTL:-1,NEUTRAL:0},goog.i18n.bidi.RIGHT="right",goog.i18n.bidi.LEFT="left",goog.i18n.bidi.I18N_RIGHT=goog.i18n.bidi.IS_RTL?goog.i18n.bidi.LEFT:goog.i18n.bidi.RIGHT,goog.i18n.bidi.I18N_LEFT=goog.i18n.bidi.IS_RTL?goog.i18n.bidi.RIGHT:goog.i18n.bidi.LEFT,goog.i18n.bidi.toDir=function(e,t){return typeof e=="number"?0<e?goog.i18n.bidi.Dir.LTR:0>e?goog.i18n.bidi.Dir.RTL:t?null:goog.i18n.bidi.Dir.NEUTRAL:e==null?null:e?goog.i18n.bidi.Dir.RTL:goog.i18n.bidi.Dir.LTR},goog.i18n.bidi.ltrChars_="A-Za-z\xC0-\xD6\xD8-\xF6\xF8-\u02B8\u0300-\u0590\u0900-\u1FFF\u200E\u2C00-\uD801\uD804-\uD839\uD83C-\uDBFF\uF900-\uFB1C\uFE00-\uFE6F\uFEFD-\uFFFF",goog.i18n.bidi.rtlChars_="\u0591-\u06EF\u06FA-\u08FF\u200F\uD802-\uD803\uD83A-\uD83B\uFB1D-\uFDFF\uFE70-\uFEFC",goog.i18n.bidi.htmlSkipReg_=/<[^>]*>|&[^;]+;/g,goog.i18n.bidi.stripHtmlIfNeeded_=function(e,t){return t?e.replace(goog.i18n.bidi.htmlSkipReg_,""):e},goog.i18n.bidi.rtlCharReg_=new RegExp("["+goog.i18n.bidi.rtlChars_+"]"),goog.i18n.bidi.ltrCharReg_=new RegExp("["+goog.i18n.bidi.ltrChars_+"]"),goog.i18n.bidi.hasAnyRtl=function(e,t){return goog.i18n.bidi.rtlCharReg_.test(goog.i18n.bidi.stripHtmlIfNeeded_(e,t))},goog.i18n.bidi.hasRtlChar=goog.i18n.bidi.hasAnyRtl,goog.i18n.bidi.hasAnyLtr=function(e,t){return goog.i18n.bidi.ltrCharReg_.test(goog.i18n.bidi.stripHtmlIfNeeded_(e,t))},goog.i18n.bidi.ltrRe_=new RegExp("^["+goog.i18n.bidi.ltrChars_+"]"),goog.i18n.bidi.rtlRe_=new RegExp("^["+goog.i18n.bidi.rtlChars_+"]"),goog.i18n.bidi.isRtlChar=function(e){return goog.i18n.bidi.rtlRe_.test(e)},goog.i18n.bidi.isLtrChar=function(e){return goog.i18n.bidi.ltrRe_.test(e)},goog.i18n.bidi.isNeutralChar=function(e){return!goog.i18n.bidi.isLtrChar(e)&&!goog.i18n.bidi.isRtlChar(e)},goog.i18n.bidi.ltrDirCheckRe_=new RegExp("^[^"+goog.i18n.bidi.rtlChars_+"]*["+goog.i18n.bidi.ltrChars_+"]"),goog.i18n.bidi.rtlDirCheckRe_=new RegExp("^[^"+goog.i18n.bidi.ltrChars_+"]*["+goog.i18n.bidi.rtlChars_+"]"),goog.i18n.bidi.startsWithRtl=function(e,t){return goog.i18n.bidi.rtlDirCheckRe_.test(goog.i18n.bidi.stripHtmlIfNeeded_(e,t))},goog.i18n.bidi.isRtlText=goog.i18n.bidi.startsWithRtl,goog.i18n.bidi.startsWithLtr=function(e,t){return goog.i18n.bidi.ltrDirCheckRe_.test(goog.i18n.bidi.stripHtmlIfNeeded_(e,t))},goog.i18n.bidi.isLtrText=goog.i18n.bidi.startsWithLtr,goog.i18n.bidi.isRequiredLtrRe_=/^http:\/\/.*/,goog.i18n.bidi.isNeutralText=function(e,t){return e=goog.i18n.bidi.stripHtmlIfNeeded_(e,t),goog.i18n.bidi.isRequiredLtrRe_.test(e)||!goog.i18n.bidi.hasAnyLtr(e)&&!goog.i18n.bidi.hasAnyRtl(e)},goog.i18n.bidi.ltrExitDirCheckRe_=new RegExp("["+goog.i18n.bidi.ltrChars_+"][^"+goog.i18n.bidi.rtlChars_+"]*$"),goog.i18n.bidi.rtlExitDirCheckRe_=new RegExp("["+goog.i18n.bidi.rtlChars_+"][^"+goog.i18n.bidi.ltrChars_+"]*$"),goog.i18n.bidi.endsWithLtr=function(e,t){return goog.i18n.bidi.ltrExitDirCheckRe_.test(goog.i18n.bidi.stripHtmlIfNeeded_(e,t))},goog.i18n.bidi.isLtrExitText=goog.i18n.bidi.endsWithLtr,goog.i18n.bidi.endsWithRtl=function(e,t){return goog.i18n.bidi.rtlExitDirCheckRe_.test(goog.i18n.bidi.stripHtmlIfNeeded_(e,t))},goog.i18n.bidi.isRtlExitText=goog.i18n.bidi.endsWithRtl,goog.i18n.bidi.rtlLocalesRe_=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i,goog.i18n.bidi.isRtlLanguage=function(e){return goog.i18n.bidi.rtlLocalesRe_.test(e)},goog.i18n.bidi.bracketGuardTextRe_=/(\(.*?\)+)|(\[.*?\]+)|(\{.*?\}+)|(<.*?>+)/g,goog.i18n.bidi.guardBracketInText=function(e,t){return t=(t===void 0?goog.i18n.bidi.hasAnyRtl(e):t)?goog.i18n.bidi.Format.RLM:goog.i18n.bidi.Format.LRM,e.replace(goog.i18n.bidi.bracketGuardTextRe_,t+"$&"+t)},goog.i18n.bidi.enforceRtlInHtml=function(e){return e.charAt(0)=="<"?e.replace(/<\w+/,"$& dir=rtl"):`
|
|
32
32
|
<span dir=rtl>`+e+"</span>"},goog.i18n.bidi.enforceRtlInText=function(e){return goog.i18n.bidi.Format.RLE+e+goog.i18n.bidi.Format.PDF},goog.i18n.bidi.enforceLtrInHtml=function(e){return e.charAt(0)=="<"?e.replace(/<\w+/,"$& dir=ltr"):`
|
|
33
33
|
<span dir=ltr>`+e+"</span>"},goog.i18n.bidi.enforceLtrInText=function(e){return goog.i18n.bidi.Format.LRE+e+goog.i18n.bidi.Format.PDF},goog.i18n.bidi.dimensionsRe_=/:\s*([.\d][.\w]*)\s+([.\d][.\w]*)\s+([.\d][.\w]*)\s+([.\d][.\w]*)/g,goog.i18n.bidi.leftRe_=/left/gi,goog.i18n.bidi.rightRe_=/right/gi,goog.i18n.bidi.tempRe_=/%%%%/g,goog.i18n.bidi.mirrorCSS=function(e){return e.replace(goog.i18n.bidi.dimensionsRe_,":$1 $4 $3 $2").replace(goog.i18n.bidi.leftRe_,"%%%%").replace(goog.i18n.bidi.rightRe_,goog.i18n.bidi.LEFT).replace(goog.i18n.bidi.tempRe_,goog.i18n.bidi.RIGHT)},goog.i18n.bidi.doubleQuoteSubstituteRe_=/([\u0591-\u05f2])"/g,goog.i18n.bidi.singleQuoteSubstituteRe_=/([\u0591-\u05f2])'/g,goog.i18n.bidi.normalizeHebrewQuote=function(e){return e.replace(goog.i18n.bidi.doubleQuoteSubstituteRe_,"$1\u05F4").replace(goog.i18n.bidi.singleQuoteSubstituteRe_,"$1\u05F3")},goog.i18n.bidi.wordSeparatorRe_=/\s+/,goog.i18n.bidi.hasNumeralsRe_=/[\d\u06f0-\u06f9]/,goog.i18n.bidi.rtlDetectionThreshold_=.4,goog.i18n.bidi.estimateDirection=function(e,t){var r=0,n=0,i=!1;for(e=goog.i18n.bidi.stripHtmlIfNeeded_(e,t).split(goog.i18n.bidi.wordSeparatorRe_),t=0;t<e.length;t++){var g=e[t];goog.i18n.bidi.startsWithRtl(g)?(r++,n++):goog.i18n.bidi.isRequiredLtrRe_.test(g)?i=!0:goog.i18n.bidi.hasAnyLtr(g)?n++:goog.i18n.bidi.hasNumeralsRe_.test(g)&&(i=!0)}return n==0?i?goog.i18n.bidi.Dir.LTR:goog.i18n.bidi.Dir.NEUTRAL:r/n>goog.i18n.bidi.rtlDetectionThreshold_?goog.i18n.bidi.Dir.RTL:goog.i18n.bidi.Dir.LTR},goog.i18n.bidi.detectRtlDirectionality=function(e,t){return goog.i18n.bidi.estimateDirection(e,t)==goog.i18n.bidi.Dir.RTL},goog.i18n.bidi.setElementDirAndAlign=function(e,t){e&&(t=goog.i18n.bidi.toDir(t))&&(e.style.textAlign=t==goog.i18n.bidi.Dir.RTL?goog.i18n.bidi.RIGHT:goog.i18n.bidi.LEFT,e.dir=t==goog.i18n.bidi.Dir.RTL?"rtl":"ltr")},goog.i18n.bidi.setElementDirByTextDirectionality=function(e,t){switch(goog.i18n.bidi.estimateDirection(t)){case goog.i18n.bidi.Dir.LTR:e.dir="ltr";break;case goog.i18n.bidi.Dir.RTL:e.dir="rtl";break;default:e.removeAttribute("dir")}},goog.i18n.bidi.DirectionalString=function(){},goog.html.TrustedResourceUrl=function(){this.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_="",this.trustedURL_=null,this.TRUSTED_RESOURCE_URL_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_=goog.html.TrustedResourceUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_},goog.html.TrustedResourceUrl.prototype.implementsGoogStringTypedString=!0,goog.html.TrustedResourceUrl.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_.toString()},goog.html.TrustedResourceUrl.prototype.implementsGoogI18nBidiDirectionalString=!0,goog.html.TrustedResourceUrl.prototype.getDirection=function(){return goog.i18n.bidi.Dir.LTR},goog.html.TrustedResourceUrl.prototype.cloneWithParams=function(e,t){var r=goog.html.TrustedResourceUrl.unwrap(this),n=(r=goog.html.TrustedResourceUrl.URL_PARAM_PARSER_.exec(r))[3]||"";return goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(r[1]+goog.html.TrustedResourceUrl.stringifyParams_("?",r[2]||"",e)+goog.html.TrustedResourceUrl.stringifyParams_("#",n,t))},goog.DEBUG&&(goog.html.TrustedResourceUrl.prototype.toString=function(){return"TrustedResourceUrl{"+this.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_+"}"}),goog.html.TrustedResourceUrl.unwrap=function(e){return goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(e).toString()},goog.html.TrustedResourceUrl.unwrapTrustedScriptURL=function(e){return e instanceof goog.html.TrustedResourceUrl&&e.constructor===goog.html.TrustedResourceUrl&&e.TRUSTED_RESOURCE_URL_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===goog.html.TrustedResourceUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_?e.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_:(goog.asserts.fail("expected object of type TrustedResourceUrl, got '"+e+"' of type "+goog.typeOf(e)),"type_error:TrustedResourceUrl")},goog.html.TrustedResourceUrl.unwrapTrustedURL=function(e){return e.trustedURL_?e.trustedURL_:goog.html.TrustedResourceUrl.unwrap(e)},goog.html.TrustedResourceUrl.format=function(e,t){var r=goog.string.Const.unwrap(e);if(!goog.html.TrustedResourceUrl.BASE_URL_.test(r))throw Error("Invalid TrustedResourceUrl format: "+r);return e=r.replace(goog.html.TrustedResourceUrl.FORMAT_MARKER_,function(n,i){if(!Object.prototype.hasOwnProperty.call(t,i))throw Error('Found marker, "'+i+'", in format string, "'+r+'", but no valid label mapping found in args: '+JSON.stringify(t));return(n=t[i])instanceof goog.string.Const?goog.string.Const.unwrap(n):encodeURIComponent(String(n))}),goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(e)},goog.html.TrustedResourceUrl.FORMAT_MARKER_=/%{(\w+)}/g,goog.html.TrustedResourceUrl.BASE_URL_=/^((https:)?\/\/[0-9a-z.:[\]-]+\/|\/[^/\\]|[^:/\\%]+\/|[^:/\\%]*[?#]|about:blank#)/i,goog.html.TrustedResourceUrl.URL_PARAM_PARSER_=/^([^?#]*)(\?[^#]*)?(#[\s\S]*)?/,goog.html.TrustedResourceUrl.formatWithParams=function(e,t,r,n){return goog.html.TrustedResourceUrl.format(e,t).cloneWithParams(r,n)},goog.html.TrustedResourceUrl.fromConstant=function(e){return goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(goog.string.Const.unwrap(e))},goog.html.TrustedResourceUrl.fromConstants=function(e){for(var t="",r=0;r<e.length;r++)t+=goog.string.Const.unwrap(e[r]);return goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(t)},goog.html.TrustedResourceUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_={},goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse=function(e){var t=new goog.html.TrustedResourceUrl;return t.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_=goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY?goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY.createScriptURL(e):e,goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY&&(t.trustedURL_=goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY.createURL(e)),t},goog.html.TrustedResourceUrl.stringifyParams_=function(e,t,r){if(r==null)return t;if(goog.isString(r))return r?e+encodeURIComponent(r):"";for(var n in r){var i=r[n];i=goog.isArray(i)?i:[i];for(var g=0;g<i.length;g++){var s=i[g];s!=null&&(t||(t=e),t+=(t.length>e.length?"&":"")+encodeURIComponent(n)+"="+encodeURIComponent(String(s)))}}return t},goog.html.SafeUrl=function(){this.privateDoNotAccessOrElseSafeUrlWrappedValue_="",this.SAFE_URL_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_=goog.html.SafeUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_},goog.html.SafeUrl.INNOCUOUS_STRING="about:invalid#zClosurez",goog.html.SafeUrl.prototype.implementsGoogStringTypedString=!0,goog.html.SafeUrl.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeUrlWrappedValue_.toString()},goog.html.SafeUrl.prototype.implementsGoogI18nBidiDirectionalString=!0,goog.html.SafeUrl.prototype.getDirection=function(){return goog.i18n.bidi.Dir.LTR},goog.DEBUG&&(goog.html.SafeUrl.prototype.toString=function(){return"SafeUrl{"+this.privateDoNotAccessOrElseSafeUrlWrappedValue_+"}"}),goog.html.SafeUrl.unwrap=function(e){return goog.html.SafeUrl.unwrapTrustedURL(e).toString()},goog.html.SafeUrl.unwrapTrustedURL=function(e){return e instanceof goog.html.SafeUrl&&e.constructor===goog.html.SafeUrl&&e.SAFE_URL_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===goog.html.SafeUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_?e.privateDoNotAccessOrElseSafeUrlWrappedValue_:(goog.asserts.fail("expected object of type SafeUrl, got '"+e+"' of type "+goog.typeOf(e)),"type_error:SafeUrl")},goog.html.SafeUrl.fromConstant=function(e){return goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(goog.string.Const.unwrap(e))},goog.html.SAFE_MIME_TYPE_PATTERN_=/^(?:audio\/(?:3gpp2|3gpp|aac|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-wav|wav|webm)|image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon)|text\/csv|video\/(?:mpeg|mp4|ogg|webm|quicktime))(?:;\w+=(?:\w+|"[\w;=]+"))*$/i,goog.html.SafeUrl.isSafeMimeType=function(e){return goog.html.SAFE_MIME_TYPE_PATTERN_.test(e)},goog.html.SafeUrl.fromBlob=function(e){return e=goog.html.SAFE_MIME_TYPE_PATTERN_.test(e.type)?goog.fs.url.createObjectUrl(e):goog.html.SafeUrl.INNOCUOUS_STRING,goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(e)},goog.html.DATA_URL_PATTERN_=/^data:([^,]*);base64,[a-z0-9+\/]+=*$/i,goog.html.SafeUrl.fromDataUrl=function(e){var t=(e=e.replace(/(%0A|%0D)/g,"")).match(goog.html.DATA_URL_PATTERN_);return t=t&&goog.html.SAFE_MIME_TYPE_PATTERN_.test(t[1]),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(t?e:goog.html.SafeUrl.INNOCUOUS_STRING)},goog.html.SafeUrl.fromTelUrl=function(e){return goog.string.internal.caseInsensitiveStartsWith(e,"tel:")||(e=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(e)},goog.html.SIP_URL_PATTERN_=/^sip[s]?:[+a-z0-9_.!$%&'*\/=^`{|}~-]+@([a-z0-9-]+\.)+[a-z0-9]{2,63}$/i,goog.html.SafeUrl.fromSipUrl=function(e){return goog.html.SIP_URL_PATTERN_.test(decodeURIComponent(e))||(e=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(e)},goog.html.SafeUrl.fromFacebookMessengerUrl=function(e){return goog.string.internal.caseInsensitiveStartsWith(e,"fb-messenger://share")||(e=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(e)},goog.html.SafeUrl.fromWhatsAppUrl=function(e){return goog.string.internal.caseInsensitiveStartsWith(e,"whatsapp://send")||(e=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(e)},goog.html.SafeUrl.fromSmsUrl=function(e){return goog.string.internal.caseInsensitiveStartsWith(e,"sms:")&&goog.html.SafeUrl.isSmsUrlBodyValid_(e)||(e=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(e)},goog.html.SafeUrl.isSmsUrlBodyValid_=function(e){var t=e.indexOf("#");if(0<t&&(e=e.substring(0,t)),!(t=e.match(/[?&]body=/gi)))return!0;if(1<t.length)return!1;if(!(e=e.match(/[?&]body=([^&]*)/)[1]))return!0;try{decodeURIComponent(e)}catch{return!1}return/^(?:[a-z0-9\-_.~]|%[0-9a-f]{2})+$/i.test(e)},goog.html.SafeUrl.fromSshUrl=function(e){return goog.string.internal.caseInsensitiveStartsWith(e,"ssh://")||(e=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(e)},goog.html.SafeUrl.sanitizeChromeExtensionUrl=function(e,t){return goog.html.SafeUrl.sanitizeExtensionUrl_(/^chrome-extension:\/\/([^\/]+)\//,e,t)},goog.html.SafeUrl.sanitizeFirefoxExtensionUrl=function(e,t){return goog.html.SafeUrl.sanitizeExtensionUrl_(/^moz-extension:\/\/([^\/]+)\//,e,t)},goog.html.SafeUrl.sanitizeEdgeExtensionUrl=function(e,t){return goog.html.SafeUrl.sanitizeExtensionUrl_(/^ms-browser-extension:\/\/([^\/]+)\//,e,t)},goog.html.SafeUrl.sanitizeExtensionUrl_=function(e,t,r){return(e=e.exec(t))?(e=e[1],(r instanceof goog.string.Const?[goog.string.Const.unwrap(r)]:r.map(function(n){return goog.string.Const.unwrap(n)})).indexOf(e)==-1&&(t=goog.html.SafeUrl.INNOCUOUS_STRING)):t=goog.html.SafeUrl.INNOCUOUS_STRING,goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(t)},goog.html.SafeUrl.fromTrustedResourceUrl=function(e){return goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(goog.html.TrustedResourceUrl.unwrap(e))},goog.html.SAFE_URL_PATTERN_=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i,goog.html.SafeUrl.SAFE_URL_PATTERN=goog.html.SAFE_URL_PATTERN_,goog.html.SafeUrl.sanitize=function(e){return e instanceof goog.html.SafeUrl?e:(e=typeof e=="object"&&e.implementsGoogStringTypedString?e.getTypedStringValue():String(e),goog.html.SAFE_URL_PATTERN_.test(e)||(e=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(e))},goog.html.SafeUrl.sanitizeAssertUnchanged=function(e,t){return e instanceof goog.html.SafeUrl?e:(e=typeof e=="object"&&e.implementsGoogStringTypedString?e.getTypedStringValue():String(e),t&&/^data:/i.test(e)&&(t=goog.html.SafeUrl.fromDataUrl(e)).getTypedStringValue()==e?t:(goog.asserts.assert(goog.html.SAFE_URL_PATTERN_.test(e),"%s does not match the safe URL pattern",e)||(e=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(e)))},goog.html.SafeUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_={},goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse=function(e){var t=new goog.html.SafeUrl;return t.privateDoNotAccessOrElseSafeUrlWrappedValue_=goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY?goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY.createURL(e):e,t},goog.html.SafeUrl.ABOUT_BLANK=goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse("about:blank"),goog.html.SafeStyle=function(){this.privateDoNotAccessOrElseSafeStyleWrappedValue_="",this.SAFE_STYLE_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_=goog.html.SafeStyle.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_},goog.html.SafeStyle.prototype.implementsGoogStringTypedString=!0,goog.html.SafeStyle.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_={},goog.html.SafeStyle.fromConstant=function(e){return(e=goog.string.Const.unwrap(e)).length===0?goog.html.SafeStyle.EMPTY:(goog.asserts.assert(goog.string.internal.endsWith(e,";"),"Last character of style string is not ';': "+e),goog.asserts.assert(goog.string.internal.contains(e,":"),`Style string must contain at least one ':', to specify a "name: value" pair: `+e),goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(e))},goog.html.SafeStyle.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeStyleWrappedValue_},goog.DEBUG&&(goog.html.SafeStyle.prototype.toString=function(){return"SafeStyle{"+this.privateDoNotAccessOrElseSafeStyleWrappedValue_+"}"}),goog.html.SafeStyle.unwrap=function(e){return e instanceof goog.html.SafeStyle&&e.constructor===goog.html.SafeStyle&&e.SAFE_STYLE_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===goog.html.SafeStyle.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_?e.privateDoNotAccessOrElseSafeStyleWrappedValue_:(goog.asserts.fail("expected object of type SafeStyle, got '"+e+"' of type "+goog.typeOf(e)),"type_error:SafeStyle")},goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse=function(e){return new goog.html.SafeStyle().initSecurityPrivateDoNotAccessOrElse_(e)},goog.html.SafeStyle.prototype.initSecurityPrivateDoNotAccessOrElse_=function(e){return this.privateDoNotAccessOrElseSafeStyleWrappedValue_=e,this},goog.html.SafeStyle.EMPTY=goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(""),goog.html.SafeStyle.INNOCUOUS_STRING="zClosurez",goog.html.SafeStyle.create=function(e){var t,r="";for(t in e){if(!/^[-_a-zA-Z0-9]+$/.test(t))throw Error("Name allows only [-_a-zA-Z0-9], got: "+t);var n=e[t];n!=null&&(r+=t+":"+(n=goog.isArray(n)?goog.array.map(n,goog.html.SafeStyle.sanitizePropertyValue_).join(" "):goog.html.SafeStyle.sanitizePropertyValue_(n))+";")}return r?goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(r):goog.html.SafeStyle.EMPTY},goog.html.SafeStyle.sanitizePropertyValue_=function(e){if(e instanceof goog.html.SafeUrl)return'url("'+goog.html.SafeUrl.unwrap(e).replace(/</g,"%3c").replace(/[\\"]/g,"\\$&")+'")';if(e=e instanceof goog.string.Const?goog.string.Const.unwrap(e):goog.html.SafeStyle.sanitizePropertyValueString_(String(e)),/[{;}]/.test(e))throw new goog.asserts.AssertionError("Value does not allow [{;}], got: %s.",[e]);return e},goog.html.SafeStyle.sanitizePropertyValueString_=function(e){var t=e.replace(goog.html.SafeStyle.FUNCTIONS_RE_,"$1").replace(goog.html.SafeStyle.FUNCTIONS_RE_,"$1").replace(goog.html.SafeStyle.URL_RE_,"url");return goog.html.SafeStyle.VALUE_RE_.test(t)?goog.html.SafeStyle.COMMENT_RE_.test(e)?(goog.asserts.fail("String value disallows comments, got: "+e),goog.html.SafeStyle.INNOCUOUS_STRING):goog.html.SafeStyle.hasBalancedQuotes_(e)?goog.html.SafeStyle.hasBalancedSquareBrackets_(e)?goog.html.SafeStyle.sanitizeUrl_(e):(goog.asserts.fail("String value requires balanced square brackets and one identifier per pair of brackets, got: "+e),goog.html.SafeStyle.INNOCUOUS_STRING):(goog.asserts.fail("String value requires balanced quotes, got: "+e),goog.html.SafeStyle.INNOCUOUS_STRING):(goog.asserts.fail("String value allows only "+goog.html.SafeStyle.VALUE_ALLOWED_CHARS_+" and simple functions, got: "+e),goog.html.SafeStyle.INNOCUOUS_STRING)},goog.html.SafeStyle.hasBalancedQuotes_=function(e){for(var t=!0,r=!0,n=0;n<e.length;n++){var i=e.charAt(n);i=="'"&&r?t=!t:i=='"'&&t&&(r=!r)}return t&&r},goog.html.SafeStyle.hasBalancedSquareBrackets_=function(e){for(var t=!0,r=/^[-_a-zA-Z0-9]$/,n=0;n<e.length;n++){var i=e.charAt(n);if(i=="]"){if(t)return!1;t=!0}else if(i=="["){if(!t)return!1;t=!1}else if(!t&&!r.test(i))return!1}return t},goog.html.SafeStyle.VALUE_ALLOWED_CHARS_=`[-,."'%_!# a-zA-Z0-9\\[\\]]`,goog.html.SafeStyle.VALUE_RE_=new RegExp("^"+goog.html.SafeStyle.VALUE_ALLOWED_CHARS_+"+$"),goog.html.SafeStyle.URL_RE_=/\b(url\([ \t\n]*)('[ -&(-\[\]-~]*'|"[ !#-\[\]-~]*"|[!#-&*-\[\]-~]*)([ \t\n]*\))/g,goog.html.SafeStyle.FUNCTIONS_RE_=/\b(hsl|hsla|rgb|rgba|matrix|calc|minmax|fit-content|repeat|(rotate|scale|translate)(X|Y|Z|3d)?)\([-+*/0-9a-z.%\[\], ]+\)/g,goog.html.SafeStyle.COMMENT_RE_=/\/\*/,goog.html.SafeStyle.sanitizeUrl_=function(e){return e.replace(goog.html.SafeStyle.URL_RE_,function(t,r,n,i){var g="";return n=n.replace(/^(['"])(.*)\1$/,function(s,o,l){return g=o,l}),t=goog.html.SafeUrl.sanitize(n).getTypedStringValue(),r+g+t+g+i})},goog.html.SafeStyle.concat=function(e){var t="",r=function(n){goog.isArray(n)?goog.array.forEach(n,r):t+=goog.html.SafeStyle.unwrap(n)};return goog.array.forEach(arguments,r),t?goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(t):goog.html.SafeStyle.EMPTY},goog.html.SafeScript=function(){this.privateDoNotAccessOrElseSafeScriptWrappedValue_="",this.SAFE_SCRIPT_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_=goog.html.SafeScript.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_},goog.html.SafeScript.prototype.implementsGoogStringTypedString=!0,goog.html.SafeScript.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_={},goog.html.SafeScript.fromConstant=function(e){return(e=goog.string.Const.unwrap(e)).length===0?goog.html.SafeScript.EMPTY:goog.html.SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse(e)},goog.html.SafeScript.fromConstantAndArgs=function(e,t){for(var r=[],n=1;n<arguments.length;n++)r.push(goog.html.SafeScript.stringify_(arguments[n]));return goog.html.SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse("("+goog.string.Const.unwrap(e)+")("+r.join(", ")+");")},goog.html.SafeScript.fromJson=function(e){return goog.html.SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse(goog.html.SafeScript.stringify_(e))},goog.html.SafeScript.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeScriptWrappedValue_.toString()},goog.DEBUG&&(goog.html.SafeScript.prototype.toString=function(){return"SafeScript{"+this.privateDoNotAccessOrElseSafeScriptWrappedValue_+"}"}),goog.html.SafeScript.unwrap=function(e){return goog.html.SafeScript.unwrapTrustedScript(e).toString()},goog.html.SafeScript.unwrapTrustedScript=function(e){return e instanceof goog.html.SafeScript&&e.constructor===goog.html.SafeScript&&e.SAFE_SCRIPT_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===goog.html.SafeScript.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_?e.privateDoNotAccessOrElseSafeScriptWrappedValue_:(goog.asserts.fail("expected object of type SafeScript, got '"+e+"' of type "+goog.typeOf(e)),"type_error:SafeScript")},goog.html.SafeScript.stringify_=function(e){return JSON.stringify(e).replace(/</g,"\\x3c")},goog.html.SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse=function(e){return new goog.html.SafeScript().initSecurityPrivateDoNotAccessOrElse_(e)},goog.html.SafeScript.prototype.initSecurityPrivateDoNotAccessOrElse_=function(e){return this.privateDoNotAccessOrElseSafeScriptWrappedValue_=goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY?goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY.createScript(e):e,this},goog.html.SafeScript.EMPTY=goog.html.SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse(""),goog.object={},goog.object.is=function(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t},goog.object.forEach=function(e,t,r){for(var n in e)t.call(r,e[n],n,e)},goog.object.filter=function(e,t,r){var n,i={};for(n in e)t.call(r,e[n],n,e)&&(i[n]=e[n]);return i},goog.object.map=function(e,t,r){var n,i={};for(n in e)i[n]=t.call(r,e[n],n,e);return i},goog.object.some=function(e,t,r){for(var n in e)if(t.call(r,e[n],n,e))return!0;return!1},goog.object.every=function(e,t,r){for(var n in e)if(!t.call(r,e[n],n,e))return!1;return!0},goog.object.getCount=function(e){var t,r=0;for(t in e)r++;return r},goog.object.getAnyKey=function(e){for(var t in e)return t},goog.object.getAnyValue=function(e){for(var t in e)return e[t]},goog.object.contains=function(e,t){return goog.object.containsValue(e,t)},goog.object.getValues=function(e){var t,r=[],n=0;for(t in e)r[n++]=e[t];return r},goog.object.getKeys=function(e){var t,r=[],n=0;for(t in e)r[n++]=t;return r},goog.object.getValueByKeys=function(e,t){var r=goog.isArrayLike(t),n=r?t:arguments;for(r=r?0:1;r<n.length;r++){if(e==null)return;e=e[n[r]]}return e},goog.object.containsKey=function(e,t){return e!==null&&t in e},goog.object.containsValue=function(e,t){for(var r in e)if(e[r]==t)return!0;return!1},goog.object.findKey=function(e,t,r){for(var n in e)if(t.call(r,e[n],n,e))return n},goog.object.findValue=function(e,t,r){return(t=goog.object.findKey(e,t,r))&&e[t]},goog.object.isEmpty=function(e){for(var t in e)return!1;return!0},goog.object.clear=function(e){for(var t in e)delete e[t]},goog.object.remove=function(e,t){var r;return(r=t in e)&&delete e[t],r},goog.object.add=function(e,t,r){if(e!==null&&t in e)throw Error('The object already contains the key "'+t+'"');goog.object.set(e,t,r)},goog.object.get=function(e,t,r){return e!==null&&t in e?e[t]:r},goog.object.set=function(e,t,r){e[t]=r},goog.object.setIfUndefined=function(e,t,r){return t in e?e[t]:e[t]=r},goog.object.setWithReturnValueIfNotSet=function(e,t,r){return t in e?e[t]:(r=r(),e[t]=r)},goog.object.equals=function(e,t){for(var r in e)if(!(r in t)||e[r]!==t[r])return!1;for(var n in t)if(!(n in e))return!1;return!0},goog.object.clone=function(e){var t,r={};for(t in e)r[t]=e[t];return r},goog.object.unsafeClone=function(e){var t=goog.typeOf(e);if(t=="object"||t=="array"){if(goog.isFunction(e.clone))return e.clone();for(var r in t=t=="array"?[]:{},e)t[r]=goog.object.unsafeClone(e[r]);return t}return e},goog.object.transpose=function(e){var t,r={};for(t in e)r[e[t]]=t;return r},goog.object.PROTOTYPE_FIELDS_="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),goog.object.extend=function(e,t){for(var r,n,i=1;i<arguments.length;i++){for(r in n=arguments[i])e[r]=n[r];for(var g=0;g<goog.object.PROTOTYPE_FIELDS_.length;g++)r=goog.object.PROTOTYPE_FIELDS_[g],Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}},goog.object.create=function(e){var t=arguments.length;if(t==1&&goog.isArray(arguments[0]))return goog.object.create.apply(null,arguments[0]);if(t%2)throw Error("Uneven number of arguments");for(var r={},n=0;n<t;n+=2)r[arguments[n]]=arguments[n+1];return r},goog.object.createSet=function(e){var t=arguments.length;if(t==1&&goog.isArray(arguments[0]))return goog.object.createSet.apply(null,arguments[0]);for(var r={},n=0;n<t;n++)r[arguments[n]]=!0;return r},goog.object.createImmutableView=function(e){var t=e;return Object.isFrozen&&!Object.isFrozen(e)&&(t=Object.create(e),Object.freeze(t)),t},goog.object.isImmutableView=function(e){return!!Object.isFrozen&&Object.isFrozen(e)},goog.object.getAllPropertyNames=function(e,t,r){if(!e)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return goog.object.getKeys(e);for(var n={};e&&(e!==Object.prototype||t)&&(e!==Function.prototype||r);){for(var i=Object.getOwnPropertyNames(e),g=0;g<i.length;g++)n[i[g]]=!0;e=Object.getPrototypeOf(e)}return goog.object.getKeys(n)},goog.object.getSuperClass=function(e){return(e=Object.getPrototypeOf(e.prototype))&&e.constructor},goog.html.SafeStyleSheet=function(){this.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_="",this.SAFE_STYLE_SHEET_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_=goog.html.SafeStyleSheet.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_},goog.html.SafeStyleSheet.prototype.implementsGoogStringTypedString=!0,goog.html.SafeStyleSheet.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_={},goog.html.SafeStyleSheet.createRule=function(e,t){if(goog.string.internal.contains(e,"<"))throw Error("Selector does not allow '<', got: "+e);var r=e.replace(/('|")((?!\1)[^\r\n\f\\]|\\[\s\S])*\1/g,"");if(!/^[-_a-zA-Z0-9#.:* ,>+~[\]()=^$|]+$/.test(r))throw Error("Selector allows only [-_a-zA-Z0-9#.:* ,>+~[\\]()=^$|] and strings, got: "+e);if(!goog.html.SafeStyleSheet.hasBalancedBrackets_(r))throw Error("() and [] in selector must be balanced, got: "+e);return t instanceof goog.html.SafeStyle||(t=goog.html.SafeStyle.create(t)),e=e+"{"+goog.html.SafeStyle.unwrap(t).replace(/</g,"\\3C ")+"}",goog.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(e)},goog.html.SafeStyleSheet.hasBalancedBrackets_=function(e){for(var t={"(":")","[":"]"},r=[],n=0;n<e.length;n++){var i=e[n];if(t[i])r.push(t[i]);else if(goog.object.contains(t,i)&&r.pop()!=i)return!1}return r.length==0},goog.html.SafeStyleSheet.concat=function(e){var t="",r=function(n){goog.isArray(n)?goog.array.forEach(n,r):t+=goog.html.SafeStyleSheet.unwrap(n)};return goog.array.forEach(arguments,r),goog.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(t)},goog.html.SafeStyleSheet.fromConstant=function(e){return(e=goog.string.Const.unwrap(e)).length===0?goog.html.SafeStyleSheet.EMPTY:(goog.asserts.assert(!goog.string.internal.contains(e,"<"),"Forbidden '<' character in style sheet string: "+e),goog.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(e))},goog.html.SafeStyleSheet.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_},goog.DEBUG&&(goog.html.SafeStyleSheet.prototype.toString=function(){return"SafeStyleSheet{"+this.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_+"}"}),goog.html.SafeStyleSheet.unwrap=function(e){return e instanceof goog.html.SafeStyleSheet&&e.constructor===goog.html.SafeStyleSheet&&e.SAFE_STYLE_SHEET_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===goog.html.SafeStyleSheet.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_?e.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_:(goog.asserts.fail("expected object of type SafeStyleSheet, got '"+e+"' of type "+goog.typeOf(e)),"type_error:SafeStyleSheet")},goog.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse=function(e){return new goog.html.SafeStyleSheet().initSecurityPrivateDoNotAccessOrElse_(e)},goog.html.SafeStyleSheet.prototype.initSecurityPrivateDoNotAccessOrElse_=function(e){return this.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_=e,this},goog.html.SafeStyleSheet.EMPTY=goog.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(""),goog.dom.tags={},goog.dom.tags.VOID_TAGS_={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},goog.dom.tags.isVoidTag=function(e){return goog.dom.tags.VOID_TAGS_[e]===!0},goog.dom.HtmlElement=function(){},goog.dom.TagName=function(e){this.tagName_=e},goog.dom.TagName.prototype.toString=function(){return this.tagName_},goog.dom.TagName.A=new goog.dom.TagName("A"),goog.dom.TagName.ABBR=new goog.dom.TagName("ABBR"),goog.dom.TagName.ACRONYM=new goog.dom.TagName("ACRONYM"),goog.dom.TagName.ADDRESS=new goog.dom.TagName("ADDRESS"),goog.dom.TagName.APPLET=new goog.dom.TagName("APPLET"),goog.dom.TagName.AREA=new goog.dom.TagName("AREA"),goog.dom.TagName.ARTICLE=new goog.dom.TagName("ARTICLE"),goog.dom.TagName.ASIDE=new goog.dom.TagName("ASIDE"),goog.dom.TagName.AUDIO=new goog.dom.TagName("AUDIO"),goog.dom.TagName.B=new goog.dom.TagName("B"),goog.dom.TagName.BASE=new goog.dom.TagName("BASE"),goog.dom.TagName.BASEFONT=new goog.dom.TagName("BASEFONT"),goog.dom.TagName.BDI=new goog.dom.TagName("BDI"),goog.dom.TagName.BDO=new goog.dom.TagName("BDO"),goog.dom.TagName.BIG=new goog.dom.TagName("BIG"),goog.dom.TagName.BLOCKQUOTE=new goog.dom.TagName("BLOCKQUOTE"),goog.dom.TagName.BODY=new goog.dom.TagName("BODY"),goog.dom.TagName.BR=new goog.dom.TagName("BR"),goog.dom.TagName.BUTTON=new goog.dom.TagName("BUTTON"),goog.dom.TagName.CANVAS=new goog.dom.TagName("CANVAS"),goog.dom.TagName.CAPTION=new goog.dom.TagName("CAPTION"),goog.dom.TagName.CENTER=new goog.dom.TagName("CENTER"),goog.dom.TagName.CITE=new goog.dom.TagName("CITE"),goog.dom.TagName.CODE=new goog.dom.TagName("CODE"),goog.dom.TagName.COL=new goog.dom.TagName("COL"),goog.dom.TagName.COLGROUP=new goog.dom.TagName("COLGROUP"),goog.dom.TagName.COMMAND=new goog.dom.TagName("COMMAND"),goog.dom.TagName.DATA=new goog.dom.TagName("DATA"),goog.dom.TagName.DATALIST=new goog.dom.TagName("DATALIST"),goog.dom.TagName.DD=new goog.dom.TagName("DD"),goog.dom.TagName.DEL=new goog.dom.TagName("DEL"),goog.dom.TagName.DETAILS=new goog.dom.TagName("DETAILS"),goog.dom.TagName.DFN=new goog.dom.TagName("DFN"),goog.dom.TagName.DIALOG=new goog.dom.TagName("DIALOG"),goog.dom.TagName.DIR=new goog.dom.TagName("DIR"),goog.dom.TagName.DIV=new goog.dom.TagName("DIV"),goog.dom.TagName.DL=new goog.dom.TagName("DL"),goog.dom.TagName.DT=new goog.dom.TagName("DT"),goog.dom.TagName.EM=new goog.dom.TagName("EM"),goog.dom.TagName.EMBED=new goog.dom.TagName("EMBED"),goog.dom.TagName.FIELDSET=new goog.dom.TagName("FIELDSET"),goog.dom.TagName.FIGCAPTION=new goog.dom.TagName("FIGCAPTION"),goog.dom.TagName.FIGURE=new goog.dom.TagName("FIGURE"),goog.dom.TagName.FONT=new goog.dom.TagName("FONT"),goog.dom.TagName.FOOTER=new goog.dom.TagName("FOOTER"),goog.dom.TagName.FORM=new goog.dom.TagName("FORM"),goog.dom.TagName.FRAME=new goog.dom.TagName("FRAME"),goog.dom.TagName.FRAMESET=new goog.dom.TagName("FRAMESET"),goog.dom.TagName.H1=new goog.dom.TagName("H1"),goog.dom.TagName.H2=new goog.dom.TagName("H2"),goog.dom.TagName.H3=new goog.dom.TagName("H3"),goog.dom.TagName.H4=new goog.dom.TagName("H4"),goog.dom.TagName.H5=new goog.dom.TagName("H5"),goog.dom.TagName.H6=new goog.dom.TagName("H6"),goog.dom.TagName.HEAD=new goog.dom.TagName("HEAD"),goog.dom.TagName.HEADER=new goog.dom.TagName("HEADER"),goog.dom.TagName.HGROUP=new goog.dom.TagName("HGROUP"),goog.dom.TagName.HR=new goog.dom.TagName("HR"),goog.dom.TagName.HTML=new goog.dom.TagName("HTML"),goog.dom.TagName.I=new goog.dom.TagName("I"),goog.dom.TagName.IFRAME=new goog.dom.TagName("IFRAME"),goog.dom.TagName.IMG=new goog.dom.TagName("IMG"),goog.dom.TagName.INPUT=new goog.dom.TagName("INPUT"),goog.dom.TagName.INS=new goog.dom.TagName("INS"),goog.dom.TagName.ISINDEX=new goog.dom.TagName("ISINDEX"),goog.dom.TagName.KBD=new goog.dom.TagName("KBD"),goog.dom.TagName.KEYGEN=new goog.dom.TagName("KEYGEN"),goog.dom.TagName.LABEL=new goog.dom.TagName("LABEL"),goog.dom.TagName.LEGEND=new goog.dom.TagName("LEGEND"),goog.dom.TagName.LI=new goog.dom.TagName("LI"),goog.dom.TagName.LINK=new goog.dom.TagName("LINK"),goog.dom.TagName.MAIN=new goog.dom.TagName("MAIN"),goog.dom.TagName.MAP=new goog.dom.TagName("MAP"),goog.dom.TagName.MARK=new goog.dom.TagName("MARK"),goog.dom.TagName.MATH=new goog.dom.TagName("MATH"),goog.dom.TagName.MENU=new goog.dom.TagName("MENU"),goog.dom.TagName.MENUITEM=new goog.dom.TagName("MENUITEM"),goog.dom.TagName.META=new goog.dom.TagName("META"),goog.dom.TagName.METER=new goog.dom.TagName("METER"),goog.dom.TagName.NAV=new goog.dom.TagName("NAV"),goog.dom.TagName.NOFRAMES=new goog.dom.TagName("NOFRAMES"),goog.dom.TagName.NOSCRIPT=new goog.dom.TagName("NOSCRIPT"),goog.dom.TagName.OBJECT=new goog.dom.TagName("OBJECT"),goog.dom.TagName.OL=new goog.dom.TagName("OL"),goog.dom.TagName.OPTGROUP=new goog.dom.TagName("OPTGROUP"),goog.dom.TagName.OPTION=new goog.dom.TagName("OPTION"),goog.dom.TagName.OUTPUT=new goog.dom.TagName("OUTPUT"),goog.dom.TagName.P=new goog.dom.TagName("P"),goog.dom.TagName.PARAM=new goog.dom.TagName("PARAM"),goog.dom.TagName.PICTURE=new goog.dom.TagName("PICTURE"),goog.dom.TagName.PRE=new goog.dom.TagName("PRE"),goog.dom.TagName.PROGRESS=new goog.dom.TagName("PROGRESS"),goog.dom.TagName.Q=new goog.dom.TagName("Q"),goog.dom.TagName.RP=new goog.dom.TagName("RP"),goog.dom.TagName.RT=new goog.dom.TagName("RT"),goog.dom.TagName.RTC=new goog.dom.TagName("RTC"),goog.dom.TagName.RUBY=new goog.dom.TagName("RUBY"),goog.dom.TagName.S=new goog.dom.TagName("S"),goog.dom.TagName.SAMP=new goog.dom.TagName("SAMP"),goog.dom.TagName.SCRIPT=new goog.dom.TagName("SCRIPT"),goog.dom.TagName.SECTION=new goog.dom.TagName("SECTION"),goog.dom.TagName.SELECT=new goog.dom.TagName("SELECT"),goog.dom.TagName.SMALL=new goog.dom.TagName("SMALL"),goog.dom.TagName.SOURCE=new goog.dom.TagName("SOURCE"),goog.dom.TagName.SPAN=new goog.dom.TagName("SPAN"),goog.dom.TagName.STRIKE=new goog.dom.TagName("STRIKE"),goog.dom.TagName.STRONG=new goog.dom.TagName("STRONG"),goog.dom.TagName.STYLE=new goog.dom.TagName("STYLE"),goog.dom.TagName.SUB=new goog.dom.TagName("SUB"),goog.dom.TagName.SUMMARY=new goog.dom.TagName("SUMMARY"),goog.dom.TagName.SUP=new goog.dom.TagName("SUP"),goog.dom.TagName.SVG=new goog.dom.TagName("SVG"),goog.dom.TagName.TABLE=new goog.dom.TagName("TABLE"),goog.dom.TagName.TBODY=new goog.dom.TagName("TBODY"),goog.dom.TagName.TD=new goog.dom.TagName("TD"),goog.dom.TagName.TEMPLATE=new goog.dom.TagName("TEMPLATE"),goog.dom.TagName.TEXTAREA=new goog.dom.TagName("TEXTAREA"),goog.dom.TagName.TFOOT=new goog.dom.TagName("TFOOT"),goog.dom.TagName.TH=new goog.dom.TagName("TH"),goog.dom.TagName.THEAD=new goog.dom.TagName("THEAD"),goog.dom.TagName.TIME=new goog.dom.TagName("TIME"),goog.dom.TagName.TITLE=new goog.dom.TagName("TITLE"),goog.dom.TagName.TR=new goog.dom.TagName("TR"),goog.dom.TagName.TRACK=new goog.dom.TagName("TRACK"),goog.dom.TagName.TT=new goog.dom.TagName("TT"),goog.dom.TagName.U=new goog.dom.TagName("U"),goog.dom.TagName.UL=new goog.dom.TagName("UL"),goog.dom.TagName.VAR=new goog.dom.TagName("VAR"),goog.dom.TagName.VIDEO=new goog.dom.TagName("VIDEO"),goog.dom.TagName.WBR=new goog.dom.TagName("WBR"),goog.labs={},goog.labs.userAgent={},goog.labs.userAgent.util={},goog.labs.userAgent.util.getNativeUserAgentString_=function(){var e=goog.labs.userAgent.util.getNavigator_();return e&&(e=e.userAgent)?e:""},goog.labs.userAgent.util.getNavigator_=function(){return goog.global.navigator},goog.labs.userAgent.util.userAgent_=goog.labs.userAgent.util.getNativeUserAgentString_(),goog.labs.userAgent.util.setUserAgent=function(e){goog.labs.userAgent.util.userAgent_=e||goog.labs.userAgent.util.getNativeUserAgentString_()},goog.labs.userAgent.util.getUserAgent=function(){return goog.labs.userAgent.util.userAgent_},goog.labs.userAgent.util.matchUserAgent=function(e){var t=goog.labs.userAgent.util.getUserAgent();return goog.string.internal.contains(t,e)},goog.labs.userAgent.util.matchUserAgentIgnoreCase=function(e){var t=goog.labs.userAgent.util.getUserAgent();return goog.string.internal.caseInsensitiveContains(t,e)},goog.labs.userAgent.util.extractVersionTuples=function(e){for(var t,r=/(\w[\w ]+)\/([^\s]+)\s*(?:\((.*?)\))?/g,n=[];t=r.exec(e);)n.push([t[1],t[2],t[3]||void 0]);return n},goog.labs.userAgent.browser={},goog.labs.userAgent.browser.matchOpera_=function(){return goog.labs.userAgent.util.matchUserAgent("Opera")},goog.labs.userAgent.browser.matchIE_=function(){return goog.labs.userAgent.util.matchUserAgent("Trident")||goog.labs.userAgent.util.matchUserAgent("MSIE")},goog.labs.userAgent.browser.matchEdgeHtml_=function(){return goog.labs.userAgent.util.matchUserAgent("Edge")},goog.labs.userAgent.browser.matchEdgeChromium_=function(){return goog.labs.userAgent.util.matchUserAgent("Edg/")},goog.labs.userAgent.browser.matchOperaChromium_=function(){return goog.labs.userAgent.util.matchUserAgent("OPR")},goog.labs.userAgent.browser.matchFirefox_=function(){return goog.labs.userAgent.util.matchUserAgent("Firefox")||goog.labs.userAgent.util.matchUserAgent("FxiOS")},goog.labs.userAgent.browser.matchSafari_=function(){return goog.labs.userAgent.util.matchUserAgent("Safari")&&!(goog.labs.userAgent.browser.matchChrome_()||goog.labs.userAgent.browser.matchCoast_()||goog.labs.userAgent.browser.matchOpera_()||goog.labs.userAgent.browser.matchEdgeHtml_()||goog.labs.userAgent.browser.matchEdgeChromium_()||goog.labs.userAgent.browser.matchOperaChromium_()||goog.labs.userAgent.browser.matchFirefox_()||goog.labs.userAgent.browser.isSilk()||goog.labs.userAgent.util.matchUserAgent("Android"))},goog.labs.userAgent.browser.matchCoast_=function(){return goog.labs.userAgent.util.matchUserAgent("Coast")},goog.labs.userAgent.browser.matchIosWebview_=function(){return(goog.labs.userAgent.util.matchUserAgent("iPad")||goog.labs.userAgent.util.matchUserAgent("iPhone"))&&!goog.labs.userAgent.browser.matchSafari_()&&!goog.labs.userAgent.browser.matchChrome_()&&!goog.labs.userAgent.browser.matchCoast_()&&!goog.labs.userAgent.browser.matchFirefox_()&&goog.labs.userAgent.util.matchUserAgent("AppleWebKit")},goog.labs.userAgent.browser.matchChrome_=function(){return(goog.labs.userAgent.util.matchUserAgent("Chrome")||goog.labs.userAgent.util.matchUserAgent("CriOS"))&&!goog.labs.userAgent.browser.matchEdgeHtml_()},goog.labs.userAgent.browser.matchAndroidBrowser_=function(){return goog.labs.userAgent.util.matchUserAgent("Android")&&!(goog.labs.userAgent.browser.isChrome()||goog.labs.userAgent.browser.isFirefox()||goog.labs.userAgent.browser.isOpera()||goog.labs.userAgent.browser.isSilk())},goog.labs.userAgent.browser.isOpera=goog.labs.userAgent.browser.matchOpera_,goog.labs.userAgent.browser.isIE=goog.labs.userAgent.browser.matchIE_,goog.labs.userAgent.browser.isEdge=goog.labs.userAgent.browser.matchEdgeHtml_,goog.labs.userAgent.browser.isEdgeChromium=goog.labs.userAgent.browser.matchEdgeChromium_,goog.labs.userAgent.browser.isOperaChromium=goog.labs.userAgent.browser.matchOperaChromium_,goog.labs.userAgent.browser.isFirefox=goog.labs.userAgent.browser.matchFirefox_,goog.labs.userAgent.browser.isSafari=goog.labs.userAgent.browser.matchSafari_,goog.labs.userAgent.browser.isCoast=goog.labs.userAgent.browser.matchCoast_,goog.labs.userAgent.browser.isIosWebview=goog.labs.userAgent.browser.matchIosWebview_,goog.labs.userAgent.browser.isChrome=goog.labs.userAgent.browser.matchChrome_,goog.labs.userAgent.browser.isAndroidBrowser=goog.labs.userAgent.browser.matchAndroidBrowser_,goog.labs.userAgent.browser.isSilk=function(){return goog.labs.userAgent.util.matchUserAgent("Silk")},goog.labs.userAgent.browser.getVersion=function(){function e(i){return i=goog.array.find(i,n),r[i]||""}var t=goog.labs.userAgent.util.getUserAgent();if(goog.labs.userAgent.browser.isIE())return goog.labs.userAgent.browser.getIEVersion_(t);t=goog.labs.userAgent.util.extractVersionTuples(t);var r={};goog.array.forEach(t,function(i){r[i[0]]=i[1]});var n=goog.partial(goog.object.containsKey,r);return goog.labs.userAgent.browser.isOpera()?e(["Version","Opera"]):goog.labs.userAgent.browser.isEdge()?e(["Edge"]):goog.labs.userAgent.browser.isEdgeChromium()?e(["Edg"]):goog.labs.userAgent.browser.isChrome()?e(["Chrome","CriOS"]):(t=t[2])&&t[1]||""},goog.labs.userAgent.browser.isVersionOrHigher=function(e){return 0<=goog.string.internal.compareVersions(goog.labs.userAgent.browser.getVersion(),e)},goog.labs.userAgent.browser.getIEVersion_=function(e){var t=/rv: *([\d\.]*)/.exec(e);if(t&&t[1])return t[1];t="";var r=/MSIE +([\d\.]+)/.exec(e);if(r&&r[1])if(e=/Trident\/(\d.\d)/.exec(e),r[1]=="7.0")if(e&&e[1])switch(e[1]){case"4.0":t="8.0";break;case"5.0":t="9.0";break;case"6.0":t="10.0";break;case"7.0":t="11.0"}else t="7.0";else t=r[1];return t},goog.html.SafeHtml=function(){this.privateDoNotAccessOrElseSafeHtmlWrappedValue_="",this.SAFE_HTML_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_=goog.html.SafeHtml.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_,this.dir_=null},goog.html.SafeHtml.prototype.implementsGoogI18nBidiDirectionalString=!0,goog.html.SafeHtml.prototype.getDirection=function(){return this.dir_},goog.html.SafeHtml.prototype.implementsGoogStringTypedString=!0,goog.html.SafeHtml.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeHtmlWrappedValue_.toString()},goog.DEBUG&&(goog.html.SafeHtml.prototype.toString=function(){return"SafeHtml{"+this.privateDoNotAccessOrElseSafeHtmlWrappedValue_+"}"}),goog.html.SafeHtml.unwrap=function(e){return goog.html.SafeHtml.unwrapTrustedHTML(e).toString()},goog.html.SafeHtml.unwrapTrustedHTML=function(e){return e instanceof goog.html.SafeHtml&&e.constructor===goog.html.SafeHtml&&e.SAFE_HTML_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===goog.html.SafeHtml.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_?e.privateDoNotAccessOrElseSafeHtmlWrappedValue_:(goog.asserts.fail("expected object of type SafeHtml, got '"+e+"' of type "+goog.typeOf(e)),"type_error:SafeHtml")},goog.html.SafeHtml.htmlEscape=function(e){if(e instanceof goog.html.SafeHtml)return e;var t=typeof e=="object",r=null;return t&&e.implementsGoogI18nBidiDirectionalString&&(r=e.getDirection()),e=t&&e.implementsGoogStringTypedString?e.getTypedStringValue():String(e),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(goog.string.internal.htmlEscape(e),r)},goog.html.SafeHtml.htmlEscapePreservingNewlines=function(e){return e instanceof goog.html.SafeHtml?e:(e=goog.html.SafeHtml.htmlEscape(e),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(goog.string.internal.newLineToBr(goog.html.SafeHtml.unwrap(e)),e.getDirection()))},goog.html.SafeHtml.htmlEscapePreservingNewlinesAndSpaces=function(e){return e instanceof goog.html.SafeHtml?e:(e=goog.html.SafeHtml.htmlEscape(e),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(goog.string.internal.whitespaceEscape(goog.html.SafeHtml.unwrap(e)),e.getDirection()))},goog.html.SafeHtml.from=goog.html.SafeHtml.htmlEscape,goog.html.SafeHtml.VALID_NAMES_IN_TAG_=/^[a-zA-Z0-9-]+$/,goog.html.SafeHtml.URL_ATTRIBUTES_={action:!0,cite:!0,data:!0,formaction:!0,href:!0,manifest:!0,poster:!0,src:!0},goog.html.SafeHtml.NOT_ALLOWED_TAG_NAMES_={APPLET:!0,BASE:!0,EMBED:!0,IFRAME:!0,LINK:!0,MATH:!0,META:!0,OBJECT:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0},goog.html.SafeHtml.create=function(e,t,r){return goog.html.SafeHtml.verifyTagName(String(e)),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse(String(e),t,r)},goog.html.SafeHtml.verifyTagName=function(e){if(!goog.html.SafeHtml.VALID_NAMES_IN_TAG_.test(e))throw Error("Invalid tag name <"+e+">.");if(e.toUpperCase()in goog.html.SafeHtml.NOT_ALLOWED_TAG_NAMES_)throw Error("Tag name <"+e+"> is not allowed for SafeHtml.")},goog.html.SafeHtml.createIframe=function(e,t,r,n){e&&goog.html.TrustedResourceUrl.unwrap(e);var i={};return i.src=e||null,i.srcdoc=t&&goog.html.SafeHtml.unwrap(t),e=goog.html.SafeHtml.combineAttributes(i,{sandbox:""},r),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("iframe",e,n)},goog.html.SafeHtml.createSandboxIframe=function(e,t,r,n){if(!goog.html.SafeHtml.canUseSandboxIframe())throw Error("The browser does not support sandboxed iframes.");var i={};return i.src=e?goog.html.SafeUrl.unwrap(goog.html.SafeUrl.sanitize(e)):null,i.srcdoc=t||null,i.sandbox="",e=goog.html.SafeHtml.combineAttributes(i,{},r),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("iframe",e,n)},goog.html.SafeHtml.canUseSandboxIframe=function(){return goog.global.HTMLIFrameElement&&"sandbox"in goog.global.HTMLIFrameElement.prototype},goog.html.SafeHtml.createScriptSrc=function(e,t){return goog.html.TrustedResourceUrl.unwrap(e),e=goog.html.SafeHtml.combineAttributes({src:e},{},t),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("script",e)},goog.html.SafeHtml.createScript=function(e,t){for(var r in t){var n=r.toLowerCase();if(n=="language"||n=="src"||n=="text"||n=="type")throw Error('Cannot set "'+n+'" attribute')}for(r="",e=goog.array.concat(e),n=0;n<e.length;n++)r+=goog.html.SafeScript.unwrap(e[n]);return e=goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(r,goog.i18n.bidi.Dir.NEUTRAL),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("script",t,e)},goog.html.SafeHtml.createStyle=function(e,t){t=goog.html.SafeHtml.combineAttributes({type:"text/css"},{},t);var r="";e=goog.array.concat(e);for(var n=0;n<e.length;n++)r+=goog.html.SafeStyleSheet.unwrap(e[n]);return e=goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(r,goog.i18n.bidi.Dir.NEUTRAL),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("style",t,e)},goog.html.SafeHtml.createMetaRefresh=function(e,t){return e=goog.html.SafeUrl.unwrap(goog.html.SafeUrl.sanitize(e)),(goog.labs.userAgent.browser.isIE()||goog.labs.userAgent.browser.isEdge())&&goog.string.internal.contains(e,";")&&(e="'"+e.replace(/'/g,"%27")+"'"),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("meta",{"http-equiv":"refresh",content:(t||0)+"; url="+e})},goog.html.SafeHtml.getAttrNameAndValue_=function(e,t,r){if(r instanceof goog.string.Const)r=goog.string.Const.unwrap(r);else if(t.toLowerCase()=="style")r=goog.html.SafeHtml.getStyleValue_(r);else{if(/^on/i.test(t))throw Error('Attribute "'+t+'" requires goog.string.Const value, "'+r+'" given.');if(t.toLowerCase()in goog.html.SafeHtml.URL_ATTRIBUTES_)if(r instanceof goog.html.TrustedResourceUrl)r=goog.html.TrustedResourceUrl.unwrap(r);else if(r instanceof goog.html.SafeUrl)r=goog.html.SafeUrl.unwrap(r);else{if(!goog.isString(r))throw Error('Attribute "'+t+'" on tag "'+e+'" requires goog.html.SafeUrl, goog.string.Const, or string, value "'+r+'" given.');r=goog.html.SafeUrl.sanitize(r).getTypedStringValue()}}return r.implementsGoogStringTypedString&&(r=r.getTypedStringValue()),goog.asserts.assert(goog.isString(r)||goog.isNumber(r),"String or number value expected, got "+typeof r+" with value: "+r),t+'="'+goog.string.internal.htmlEscape(String(r))+'"'},goog.html.SafeHtml.getStyleValue_=function(e){if(!goog.isObject(e))throw Error('The "style" attribute requires goog.html.SafeStyle or map of style properties, '+typeof e+" given: "+e);return e instanceof goog.html.SafeStyle||(e=goog.html.SafeStyle.create(e)),goog.html.SafeStyle.unwrap(e)},goog.html.SafeHtml.createWithDir=function(e,t,r,n){return(t=goog.html.SafeHtml.create(t,r,n)).dir_=e,t},goog.html.SafeHtml.join=function(e,t){var r=(e=goog.html.SafeHtml.htmlEscape(e)).getDirection(),n=[],i=function(g){goog.isArray(g)?goog.array.forEach(g,i):(g=goog.html.SafeHtml.htmlEscape(g),n.push(goog.html.SafeHtml.unwrap(g)),g=g.getDirection(),r==goog.i18n.bidi.Dir.NEUTRAL?r=g:g!=goog.i18n.bidi.Dir.NEUTRAL&&r!=g&&(r=null))};return goog.array.forEach(t,i),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(n.join(goog.html.SafeHtml.unwrap(e)),r)},goog.html.SafeHtml.concat=function(e){return goog.html.SafeHtml.join(goog.html.SafeHtml.EMPTY,Array.prototype.slice.call(arguments))},goog.html.SafeHtml.concatWithDir=function(e,t){var r=goog.html.SafeHtml.concat(goog.array.slice(arguments,1));return r.dir_=e,r},goog.html.SafeHtml.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_={},goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse=function(e,t){return new goog.html.SafeHtml().initSecurityPrivateDoNotAccessOrElse_(e,t)},goog.html.SafeHtml.prototype.initSecurityPrivateDoNotAccessOrElse_=function(e,t){return this.privateDoNotAccessOrElseSafeHtmlWrappedValue_=goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY?goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY.createHTML(e):e,this.dir_=t,this},goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse=function(e,t,r){var n=null,i="<"+e+goog.html.SafeHtml.stringifyAttributes(e,t);return goog.isDefAndNotNull(r)?goog.isArray(r)||(r=[r]):r=[],goog.dom.tags.isVoidTag(e.toLowerCase())?(goog.asserts.assert(!r.length,"Void tag <"+e+"> does not allow content."),i+=">"):(n=goog.html.SafeHtml.concat(r),i+=">"+goog.html.SafeHtml.unwrap(n)+"</"+e+">",n=n.getDirection()),(e=t&&t.dir)&&(n=/^(ltr|rtl|auto)$/i.test(e)?goog.i18n.bidi.Dir.NEUTRAL:null),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(i,n)},goog.html.SafeHtml.stringifyAttributes=function(e,t){var r="";if(t)for(var n in t){if(!goog.html.SafeHtml.VALID_NAMES_IN_TAG_.test(n))throw Error('Invalid attribute name "'+n+'".');var i=t[n];goog.isDefAndNotNull(i)&&(r+=" "+goog.html.SafeHtml.getAttrNameAndValue_(e,n,i))}return r},goog.html.SafeHtml.combineAttributes=function(e,t,r){var n,i={};for(n in e)goog.asserts.assert(n.toLowerCase()==n,"Must be lower case"),i[n]=e[n];for(n in t)goog.asserts.assert(n.toLowerCase()==n,"Must be lower case"),i[n]=t[n];for(n in r){var g=n.toLowerCase();if(g in e)throw Error('Cannot override "'+g+'" attribute, got "'+n+'" with value "'+r[n]+'"');g in t&&delete i[g],i[n]=r[n]}return i},goog.html.SafeHtml.DOCTYPE_HTML=goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse("<!DOCTYPE html>",goog.i18n.bidi.Dir.NEUTRAL),goog.html.SafeHtml.EMPTY=goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse("",goog.i18n.bidi.Dir.NEUTRAL),goog.html.SafeHtml.BR=goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse("<br>",goog.i18n.bidi.Dir.NEUTRAL),goog.html.uncheckedconversions={},goog.html.uncheckedconversions.safeHtmlFromStringKnownToSatisfyTypeContract=function(e,t,r){return goog.asserts.assertString(goog.string.Const.unwrap(e),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(e)),"must provide non-empty justification"),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(t,r||null)},goog.html.uncheckedconversions.safeScriptFromStringKnownToSatisfyTypeContract=function(e,t){return goog.asserts.assertString(goog.string.Const.unwrap(e),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(e)),"must provide non-empty justification"),goog.html.SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse(t)},goog.html.uncheckedconversions.safeStyleFromStringKnownToSatisfyTypeContract=function(e,t){return goog.asserts.assertString(goog.string.Const.unwrap(e),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(e)),"must provide non-empty justification"),goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(t)},goog.html.uncheckedconversions.safeStyleSheetFromStringKnownToSatisfyTypeContract=function(e,t){return goog.asserts.assertString(goog.string.Const.unwrap(e),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(e)),"must provide non-empty justification"),goog.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(t)},goog.html.uncheckedconversions.safeUrlFromStringKnownToSatisfyTypeContract=function(e,t){return goog.asserts.assertString(goog.string.Const.unwrap(e),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(e)),"must provide non-empty justification"),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(t)},goog.html.uncheckedconversions.trustedResourceUrlFromStringKnownToSatisfyTypeContract=function(e,t){return goog.asserts.assertString(goog.string.Const.unwrap(e),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(e)),"must provide non-empty justification"),goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(t)},goog.dom.asserts={},goog.dom.asserts.assertIsLocation=function(e){if(goog.asserts.ENABLE_ASSERTS){var t=goog.dom.asserts.getWindow_(e);t&&(!e||!(e instanceof t.Location)&&e instanceof t.Element)&&goog.asserts.fail("Argument is not a Location (or a non-Element mock); got: %s",goog.dom.asserts.debugStringForType_(e))}return e},goog.dom.asserts.assertIsElementType_=function(e,t){if(goog.asserts.ENABLE_ASSERTS){var r=goog.dom.asserts.getWindow_(e);r&&r[t]!==void 0&&(e&&(e instanceof r[t]||!(e instanceof r.Location||e instanceof r.Element))||goog.asserts.fail("Argument is not a %s (or a non-Element, non-Location mock); got: %s",t,goog.dom.asserts.debugStringForType_(e)))}return e},goog.dom.asserts.assertIsHTMLAnchorElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLAnchorElement")},goog.dom.asserts.assertIsHTMLButtonElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLButtonElement")},goog.dom.asserts.assertIsHTMLLinkElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLLinkElement")},goog.dom.asserts.assertIsHTMLImageElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLImageElement")},goog.dom.asserts.assertIsHTMLAudioElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLAudioElement")},goog.dom.asserts.assertIsHTMLVideoElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLVideoElement")},goog.dom.asserts.assertIsHTMLInputElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLInputElement")},goog.dom.asserts.assertIsHTMLTextAreaElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLTextAreaElement")},goog.dom.asserts.assertIsHTMLCanvasElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLCanvasElement")},goog.dom.asserts.assertIsHTMLEmbedElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLEmbedElement")},goog.dom.asserts.assertIsHTMLFormElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLFormElement")},goog.dom.asserts.assertIsHTMLFrameElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLFrameElement")},goog.dom.asserts.assertIsHTMLIFrameElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLIFrameElement")},goog.dom.asserts.assertIsHTMLObjectElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLObjectElement")},goog.dom.asserts.assertIsHTMLScriptElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLScriptElement")},goog.dom.asserts.debugStringForType_=function(e){if(!goog.isObject(e))return e===void 0?"undefined":e===null?"null":typeof e;try{return e.constructor.displayName||e.constructor.name||Object.prototype.toString.call(e)}catch{return"<object could not be stringified>"}},goog.dom.asserts.getWindow_=function(e){try{var t=e&&e.ownerDocument,r=t&&(t.defaultView||t.parentWindow);if((r=r||goog.global).Element&&r.Location)return r}catch{}return null},goog.functions={},goog.functions.constant=function(e){return function(){return e}},goog.functions.FALSE=function(){return!1},goog.functions.TRUE=function(){return!0},goog.functions.NULL=function(){return null},goog.functions.identity=function(e,t){return e},goog.functions.error=function(e){return function(){throw Error(e)}},goog.functions.fail=function(e){return function(){throw e}},goog.functions.lock=function(e,t){return t=t||0,function(){return e.apply(this,Array.prototype.slice.call(arguments,0,t))}},goog.functions.nth=function(e){return function(){return arguments[e]}},goog.functions.partialRight=function(e,t){var r=Array.prototype.slice.call(arguments,1);return function(){var n=Array.prototype.slice.call(arguments);return n.push.apply(n,r),e.apply(this,n)}},goog.functions.withReturnValue=function(e,t){return goog.functions.sequence(e,goog.functions.constant(t))},goog.functions.equalTo=function(e,t){return function(r){return t?e==r:e===r}},goog.functions.compose=function(e,t){var r=arguments,n=r.length;return function(){var i;n&&(i=r[n-1].apply(this,arguments));for(var g=n-2;0<=g;g--)i=r[g].call(this,i);return i}},goog.functions.sequence=function(e){var t=arguments,r=t.length;return function(){for(var n,i=0;i<r;i++)n=t[i].apply(this,arguments);return n}},goog.functions.and=function(e){var t=arguments,r=t.length;return function(){for(var n=0;n<r;n++)if(!t[n].apply(this,arguments))return!1;return!0}},goog.functions.or=function(e){var t=arguments,r=t.length;return function(){for(var n=0;n<r;n++)if(t[n].apply(this,arguments))return!0;return!1}},goog.functions.not=function(e){return function(){return!e.apply(this,arguments)}},goog.functions.create=function(e,t){var r=function(){};return r.prototype=e.prototype,r=new r,e.apply(r,Array.prototype.slice.call(arguments,1)),r},goog.functions.CACHE_RETURN_VALUE=!0,goog.functions.cacheReturnValue=function(e){var t,r=!1;return function(){return goog.functions.CACHE_RETURN_VALUE?(r||(t=e(),r=!0),t):e()}},goog.functions.once=function(e){var t=e;return function(){if(t){var r=t;t=null,r()}}},goog.functions.debounce=function(e,t,r){var n=0;return function(i){goog.global.clearTimeout(n);var g=arguments;n=goog.global.setTimeout(function(){e.apply(r,g)},t)}},goog.functions.throttle=function(e,t,r){var n=0,i=!1,g=[],s=function(){n=0,i&&(i=!1,o())},o=function(){n=goog.global.setTimeout(s,t),e.apply(r,g)};return function(l){g=arguments,n?i=!0:o()}},goog.functions.rateLimit=function(e,t,r){var n=0,i=function(){n=0};return function(g){n||(n=goog.global.setTimeout(i,t),e.apply(r,arguments))}},goog.dom.safe={},goog.dom.safe.InsertAdjacentHtmlPosition={AFTERBEGIN:"afterbegin",AFTEREND:"afterend",BEFOREBEGIN:"beforebegin",BEFOREEND:"beforeend"},goog.dom.safe.insertAdjacentHtml=function(e,t,r){e.insertAdjacentHTML(t,goog.html.SafeHtml.unwrapTrustedHTML(r))},goog.dom.safe.SET_INNER_HTML_DISALLOWED_TAGS_={MATH:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0},goog.dom.safe.isInnerHtmlCleanupRecursive_=goog.functions.cacheReturnValue(function(){if(goog.DEBUG&&typeof document=="undefined")return!1;var e=document.createElement("div"),t=document.createElement("div");return t.appendChild(document.createElement("div")),e.appendChild(t),!(goog.DEBUG&&!e.firstChild)&&(t=e.firstChild.firstChild,e.innerHTML=goog.html.SafeHtml.unwrapTrustedHTML(goog.html.SafeHtml.EMPTY),!t.parentElement)}),goog.dom.safe.unsafeSetInnerHtmlDoNotUseOrElse=function(e,t){if(goog.dom.safe.isInnerHtmlCleanupRecursive_())for(;e.lastChild;)e.removeChild(e.lastChild);e.innerHTML=goog.html.SafeHtml.unwrapTrustedHTML(t)},goog.dom.safe.setInnerHtml=function(e,t){if(goog.asserts.ENABLE_ASSERTS){var r=e.tagName.toUpperCase();if(goog.dom.safe.SET_INNER_HTML_DISALLOWED_TAGS_[r])throw Error("goog.dom.safe.setInnerHtml cannot be used to set content of "+e.tagName+".")}goog.dom.safe.unsafeSetInnerHtmlDoNotUseOrElse(e,t)},goog.dom.safe.setOuterHtml=function(e,t){e.outerHTML=goog.html.SafeHtml.unwrapTrustedHTML(t)},goog.dom.safe.setFormElementAction=function(e,t){t=t instanceof goog.html.SafeUrl?t:goog.html.SafeUrl.sanitizeAssertUnchanged(t),goog.dom.asserts.assertIsHTMLFormElement(e).action=goog.html.SafeUrl.unwrapTrustedURL(t)},goog.dom.safe.setButtonFormAction=function(e,t){t=t instanceof goog.html.SafeUrl?t:goog.html.SafeUrl.sanitizeAssertUnchanged(t),goog.dom.asserts.assertIsHTMLButtonElement(e).formAction=goog.html.SafeUrl.unwrapTrustedURL(t)},goog.dom.safe.setInputFormAction=function(e,t){t=t instanceof goog.html.SafeUrl?t:goog.html.SafeUrl.sanitizeAssertUnchanged(t),goog.dom.asserts.assertIsHTMLInputElement(e).formAction=goog.html.SafeUrl.unwrapTrustedURL(t)},goog.dom.safe.setStyle=function(e,t){e.style.cssText=goog.html.SafeStyle.unwrap(t)},goog.dom.safe.documentWrite=function(e,t){e.write(goog.html.SafeHtml.unwrapTrustedHTML(t))},goog.dom.safe.setAnchorHref=function(e,t){goog.dom.asserts.assertIsHTMLAnchorElement(e),t=t instanceof goog.html.SafeUrl?t:goog.html.SafeUrl.sanitizeAssertUnchanged(t),e.href=goog.html.SafeUrl.unwrapTrustedURL(t)},goog.dom.safe.setImageSrc=function(e,t){if(goog.dom.asserts.assertIsHTMLImageElement(e),!(t instanceof goog.html.SafeUrl)){var r=/^data:image\//i.test(t);t=goog.html.SafeUrl.sanitizeAssertUnchanged(t,r)}e.src=goog.html.SafeUrl.unwrapTrustedURL(t)},goog.dom.safe.setAudioSrc=function(e,t){if(goog.dom.asserts.assertIsHTMLAudioElement(e),!(t instanceof goog.html.SafeUrl)){var r=/^data:audio\//i.test(t);t=goog.html.SafeUrl.sanitizeAssertUnchanged(t,r)}e.src=goog.html.SafeUrl.unwrapTrustedURL(t)},goog.dom.safe.setVideoSrc=function(e,t){if(goog.dom.asserts.assertIsHTMLVideoElement(e),!(t instanceof goog.html.SafeUrl)){var r=/^data:video\//i.test(t);t=goog.html.SafeUrl.sanitizeAssertUnchanged(t,r)}e.src=goog.html.SafeUrl.unwrapTrustedURL(t)},goog.dom.safe.setEmbedSrc=function(e,t){goog.dom.asserts.assertIsHTMLEmbedElement(e),e.src=goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(t)},goog.dom.safe.setFrameSrc=function(e,t){goog.dom.asserts.assertIsHTMLFrameElement(e),e.src=goog.html.TrustedResourceUrl.unwrapTrustedURL(t)},goog.dom.safe.setIframeSrc=function(e,t){goog.dom.asserts.assertIsHTMLIFrameElement(e),e.src=goog.html.TrustedResourceUrl.unwrapTrustedURL(t)},goog.dom.safe.setIframeSrcdoc=function(e,t){goog.dom.asserts.assertIsHTMLIFrameElement(e),e.srcdoc=goog.html.SafeHtml.unwrapTrustedHTML(t)},goog.dom.safe.setLinkHrefAndRel=function(e,t,r){goog.dom.asserts.assertIsHTMLLinkElement(e),e.rel=r,goog.string.internal.caseInsensitiveContains(r,"stylesheet")?(goog.asserts.assert(t instanceof goog.html.TrustedResourceUrl,'URL must be TrustedResourceUrl because "rel" contains "stylesheet"'),e.href=goog.html.TrustedResourceUrl.unwrapTrustedURL(t)):e.href=t instanceof goog.html.TrustedResourceUrl?goog.html.TrustedResourceUrl.unwrapTrustedURL(t):t instanceof goog.html.SafeUrl?goog.html.SafeUrl.unwrapTrustedURL(t):goog.html.SafeUrl.unwrapTrustedURL(goog.html.SafeUrl.sanitizeAssertUnchanged(t))},goog.dom.safe.setObjectData=function(e,t){goog.dom.asserts.assertIsHTMLObjectElement(e),e.data=goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(t)},goog.dom.safe.setScriptSrc=function(e,t){goog.dom.asserts.assertIsHTMLScriptElement(e),e.src=goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(t),(t=goog.getScriptNonce())&&e.setAttribute("nonce",t)},goog.dom.safe.setScriptContent=function(e,t){goog.dom.asserts.assertIsHTMLScriptElement(e),e.text=goog.html.SafeScript.unwrapTrustedScript(t),(t=goog.getScriptNonce())&&e.setAttribute("nonce",t)},goog.dom.safe.setLocationHref=function(e,t){goog.dom.asserts.assertIsLocation(e),t=t instanceof goog.html.SafeUrl?t:goog.html.SafeUrl.sanitizeAssertUnchanged(t),e.href=goog.html.SafeUrl.unwrapTrustedURL(t)},goog.dom.safe.assignLocation=function(e,t){goog.dom.asserts.assertIsLocation(e),t=t instanceof goog.html.SafeUrl?t:goog.html.SafeUrl.sanitizeAssertUnchanged(t),e.assign(goog.html.SafeUrl.unwrapTrustedURL(t))},goog.dom.safe.replaceLocation=function(e,t){goog.dom.asserts.assertIsLocation(e),t=t instanceof goog.html.SafeUrl?t:goog.html.SafeUrl.sanitizeAssertUnchanged(t),e.replace(goog.html.SafeUrl.unwrapTrustedURL(t))},goog.dom.safe.openInWindow=function(e,t,r,n,i){return e=e instanceof goog.html.SafeUrl?e:goog.html.SafeUrl.sanitizeAssertUnchanged(e),(t||goog.global).open(goog.html.SafeUrl.unwrapTrustedURL(e),r?goog.string.Const.unwrap(r):"",n,i)},goog.dom.safe.parseFromStringHtml=function(e,t){return goog.dom.safe.parseFromString(e,t,"text/html")},goog.dom.safe.parseFromString=function(e,t,r){return e.parseFromString(goog.html.SafeHtml.unwrapTrustedHTML(t),r)},goog.dom.safe.createImageFromBlob=function(e){if(!/^image\/.*/g.test(e.type))throw Error("goog.dom.safe.createImageFromBlob only accepts MIME type image/.*.");var t=goog.global.URL.createObjectURL(e);return(e=new goog.global.Image).onload=function(){goog.global.URL.revokeObjectURL(t)},goog.dom.safe.setImageSrc(e,goog.html.uncheckedconversions.safeUrlFromStringKnownToSatisfyTypeContract(goog.string.Const.from("Image blob URL."),t)),e},goog.string.DETECT_DOUBLE_ESCAPING=!1,goog.string.FORCE_NON_DOM_HTML_UNESCAPING=!1,goog.string.Unicode={NBSP:"\xA0"},goog.string.startsWith=goog.string.internal.startsWith,goog.string.endsWith=goog.string.internal.endsWith,goog.string.caseInsensitiveStartsWith=goog.string.internal.caseInsensitiveStartsWith,goog.string.caseInsensitiveEndsWith=goog.string.internal.caseInsensitiveEndsWith,goog.string.caseInsensitiveEquals=goog.string.internal.caseInsensitiveEquals,goog.string.subs=function(e,t){for(var r=e.split("%s"),n="",i=Array.prototype.slice.call(arguments,1);i.length&&1<r.length;)n+=r.shift()+i.shift();return n+r.join("%s")},goog.string.collapseWhitespace=function(e){return e.replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")},goog.string.isEmptyOrWhitespace=goog.string.internal.isEmptyOrWhitespace,goog.string.isEmptyString=function(e){return e.length==0},goog.string.isEmpty=goog.string.isEmptyOrWhitespace,goog.string.isEmptyOrWhitespaceSafe=function(e){return goog.string.isEmptyOrWhitespace(goog.string.makeSafe(e))},goog.string.isEmptySafe=goog.string.isEmptyOrWhitespaceSafe,goog.string.isBreakingWhitespace=function(e){return!/[^\t\n\r ]/.test(e)},goog.string.isAlpha=function(e){return!/[^a-zA-Z]/.test(e)},goog.string.isNumeric=function(e){return!/[^0-9]/.test(e)},goog.string.isAlphaNumeric=function(e){return!/[^a-zA-Z0-9]/.test(e)},goog.string.isSpace=function(e){return e==" "},goog.string.isUnicodeChar=function(e){return e.length==1&&" "<=e&&"~">=e||"\x80"<=e&&"\uFFFD">=e},goog.string.stripNewlines=function(e){return e.replace(/(\r\n|\r|\n)+/g," ")},goog.string.canonicalizeNewlines=function(e){return e.replace(/(\r\n|\r|\n)/g,`
|
|
34
|
-
`)},goog.string.normalizeWhitespace=function(e){return e.replace(/\xa0|\s/g," ")},goog.string.normalizeSpaces=function(e){return e.replace(/\xa0|[ \t]+/g," ")},goog.string.collapseBreakingSpaces=function(e){return e.replace(/[\t\r\n ]+/g," ").replace(/^[\t\r\n ]+|[\t\r\n ]+$/g,"")},goog.string.trim=goog.string.internal.trim,goog.string.trimLeft=function(e){return e.replace(/^[\s\xa0]+/,"")},goog.string.trimRight=function(e){return e.replace(/[\s\xa0]+$/,"")},goog.string.caseInsensitiveCompare=goog.string.internal.caseInsensitiveCompare,goog.string.numberAwareCompare_=function(e,t,r){if(e==t)return 0;if(!e)return-1;if(!t)return 1;for(var n=e.toLowerCase().match(r),i=t.toLowerCase().match(r),g=Math.min(n.length,i.length),s=0;s<g;s++){r=n[s];var o=i[s];if(r!=o)return e=parseInt(r,10),!isNaN(e)&&(t=parseInt(o,10),!isNaN(t)&&e-t)?e-t:r<o?-1:1}return n.length!=i.length?n.length-i.length:e<t?-1:1},goog.string.intAwareCompare=function(e,t){return goog.string.numberAwareCompare_(e,t,/\d+|\D+/g)},goog.string.floatAwareCompare=function(e,t){return goog.string.numberAwareCompare_(e,t,/\d+|\.\d+|\D+/g)},goog.string.numerateCompare=goog.string.floatAwareCompare,goog.string.urlEncode=function(e){return encodeURIComponent(String(e))},goog.string.urlDecode=function(e){return decodeURIComponent(e.replace(/\+/g," "))},goog.string.newLineToBr=goog.string.internal.newLineToBr,goog.string.htmlEscape=function(e,t){return e=goog.string.internal.htmlEscape(e,t),goog.string.DETECT_DOUBLE_ESCAPING&&(e=e.replace(goog.string.E_RE_,"e")),e},goog.string.E_RE_=/e/g,goog.string.unescapeEntities=function(e){return goog.string.contains(e,"&")?!goog.string.FORCE_NON_DOM_HTML_UNESCAPING&&"document"in goog.global?goog.string.unescapeEntitiesUsingDom_(e):goog.string.unescapePureXmlEntities_(e):e},goog.string.unescapeEntitiesWithDocument=function(e,t){return goog.string.contains(e,"&")?goog.string.unescapeEntitiesUsingDom_(e,t):e},goog.string.unescapeEntitiesUsingDom_=function(e,t){var r={"&":"&","<":"<",">":">",""":'"'},n=t?t.createElement("div"):goog.global.document.createElement("div");return e.replace(goog.string.HTML_ENTITY_PATTERN_,function(i,g){var s=r[i];return s||(g.charAt(0)=="#"&&(g=Number("0"+g.substr(1)),isNaN(g)||(s=String.fromCharCode(g))),s||(goog.dom.safe.setInnerHtml(n,goog.html.uncheckedconversions.safeHtmlFromStringKnownToSatisfyTypeContract(goog.string.Const.from("Single HTML entity."),i+" ")),s=n.firstChild.nodeValue.slice(0,-1)),r[i]=s)})},goog.string.unescapePureXmlEntities_=function(e){return e.replace(/&([^;]+);/g,function(t,r){switch(r){case"amp":return"&";case"lt":return"<";case"gt":return">";case"quot":return'"';default:return r.charAt(0)!="#"||(r=Number("0"+r.substr(1)),isNaN(r))?t:String.fromCharCode(r)}})},goog.string.HTML_ENTITY_PATTERN_=/&([^;\s<&]+);?/g,goog.string.whitespaceEscape=function(e,t){return goog.string.newLineToBr(e.replace(/ /g,"  "),t)},goog.string.preserveSpaces=function(e){return e.replace(/(^|[\n ]) /g,"$1"+goog.string.Unicode.NBSP)},goog.string.stripQuotes=function(e,t){for(var r=t.length,n=0;n<r;n++){var i=r==1?t:t.charAt(n);if(e.charAt(0)==i&&e.charAt(e.length-1)==i)return e.substring(1,e.length-1)}return e},goog.string.truncate=function(e,t,r){return r&&(e=goog.string.unescapeEntities(e)),e.length>t&&(e=e.substring(0,t-3)+"..."),r&&(e=goog.string.htmlEscape(e)),e},goog.string.truncateMiddle=function(e,t,r,n){if(r&&(e=goog.string.unescapeEntities(e)),n&&e.length>t){n>t&&(n=t);var i=e.length-n;e=e.substring(0,t-n)+"..."+e.substring(i)}else e.length>t&&(n=Math.floor(t/2),i=e.length-n,e=e.substring(0,n+t%2)+"..."+e.substring(i));return r&&(e=goog.string.htmlEscape(e)),e},goog.string.specialEscapeChars_={"\0":"\\0","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\x0B",'"':'\\"',"\\":"\\\\","<":"\\u003C"},goog.string.jsEscapeCache_={"'":"\\'"},goog.string.quote=function(e){e=String(e);for(var t=['"'],r=0;r<e.length;r++){var n=e.charAt(r),i=n.charCodeAt(0);t[r+1]=goog.string.specialEscapeChars_[n]||(31<i&&127>i?n:goog.string.escapeChar(n))}return t.push('"'),t.join("")},goog.string.escapeString=function(e){for(var t=[],r=0;r<e.length;r++)t[r]=goog.string.escapeChar(e.charAt(r));return t.join("")},goog.string.escapeChar=function(e){if(e in goog.string.jsEscapeCache_)return goog.string.jsEscapeCache_[e];if(e in goog.string.specialEscapeChars_)return goog.string.jsEscapeCache_[e]=goog.string.specialEscapeChars_[e];var t=e.charCodeAt(0);if(31<t&&127>t)var r=e;else 256>t?(r="\\x",(16>t||256<t)&&(r+="0")):(r="\\u",4096>t&&(r+="0")),r+=t.toString(16).toUpperCase();return goog.string.jsEscapeCache_[e]=r},goog.string.contains=goog.string.internal.contains,goog.string.caseInsensitiveContains=goog.string.internal.caseInsensitiveContains,goog.string.countOf=function(e,t){return e&&t?e.split(t).length-1:0},goog.string.removeAt=function(e,t,r){var n=e;return 0<=t&&t<e.length&&0<r&&(n=e.substr(0,t)+e.substr(t+r,e.length-t-r)),n},goog.string.remove=function(e,t){return e.replace(t,"")},goog.string.removeAll=function(e,t){return t=new RegExp(goog.string.regExpEscape(t),"g"),e.replace(t,"")},goog.string.replaceAll=function(e,t,r){return t=new RegExp(goog.string.regExpEscape(t),"g"),e.replace(t,r.replace(/\$/g,"$$$$"))},goog.string.regExpEscape=function(e){return String(e).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")},goog.string.repeat=String.prototype.repeat?function(e,t){return e.repeat(t)}:function(e,t){return Array(t+1).join(e)},goog.string.padNumber=function(e,t,r){return(r=(e=goog.isDef(r)?e.toFixed(r):String(e)).indexOf("."))==-1&&(r=e.length),goog.string.repeat("0",Math.max(0,t-r))+e},goog.string.makeSafe=function(e){return e==null?"":String(e)},goog.string.buildString=function(e){return Array.prototype.join.call(arguments,"")},goog.string.getRandomString=function(){return Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^goog.now()).toString(36)},goog.string.compareVersions=goog.string.internal.compareVersions,goog.string.hashCode=function(e){for(var t=0,r=0;r<e.length;++r)t=31*t+e.charCodeAt(r)>>>0;return t},goog.string.uniqueStringCounter_=2147483648*Math.random()|0,goog.string.createUniqueString=function(){return"goog_"+goog.string.uniqueStringCounter_++},goog.string.toNumber=function(e){var t=Number(e);return t==0&&goog.string.isEmptyOrWhitespace(e)?NaN:t},goog.string.isLowerCamelCase=function(e){return/^[a-z]+([A-Z][a-z]*)*$/.test(e)},goog.string.isUpperCamelCase=function(e){return/^([A-Z][a-z]*)+$/.test(e)},goog.string.toCamelCase=function(e){return String(e).replace(/\-([a-z])/g,function(t,r){return r.toUpperCase()})},goog.string.toSelectorCase=function(e){return String(e).replace(/([A-Z])/g,"-$1").toLowerCase()},goog.string.toTitleCase=function(e,t){return t=goog.isString(t)?goog.string.regExpEscape(t):"\\s",e.replace(new RegExp("(^"+(t?"|["+t+"]+":"")+")([a-z])","g"),function(r,n,i){return n+i.toUpperCase()})},goog.string.capitalize=function(e){return String(e.charAt(0)).toUpperCase()+String(e.substr(1)).toLowerCase()},goog.string.parseInt=function(e){return isFinite(e)&&(e=String(e)),goog.isString(e)?/^\s*-?0x/i.test(e)?parseInt(e,16):parseInt(e,10):NaN},goog.string.splitLimit=function(e,t,r){e=e.split(t);for(var n=[];0<r&&e.length;)n.push(e.shift()),r--;return e.length&&n.push(e.join(t)),n},goog.string.lastComponent=function(e,t){if(!t)return e;typeof t=="string"&&(t=[t]);for(var r=-1,n=0;n<t.length;n++)if(t[n]!=""){var i=e.lastIndexOf(t[n]);i>r&&(r=i)}return r==-1?e:e.slice(r+1)},goog.string.editDistance=function(e,t){var r=[],n=[];if(e==t)return 0;if(!e.length||!t.length)return Math.max(e.length,t.length);for(var i=0;i<t.length+1;i++)r[i]=i;for(i=0;i<e.length;i++){n[0]=i+1;for(var g=0;g<t.length;g++)n[g+1]=Math.min(n[g]+1,r[g+1]+1,r[g]+Number(e[i]!=t[g]));for(g=0;g<r.length;g++)r[g]=n[g]}return n[t.length]},goog.labs.userAgent.platform={},goog.labs.userAgent.platform.isAndroid=function(){return goog.labs.userAgent.util.matchUserAgent("Android")},goog.labs.userAgent.platform.isIpod=function(){return goog.labs.userAgent.util.matchUserAgent("iPod")},goog.labs.userAgent.platform.isIphone=function(){return goog.labs.userAgent.util.matchUserAgent("iPhone")&&!goog.labs.userAgent.util.matchUserAgent("iPod")&&!goog.labs.userAgent.util.matchUserAgent("iPad")},goog.labs.userAgent.platform.isIpad=function(){return goog.labs.userAgent.util.matchUserAgent("iPad")},goog.labs.userAgent.platform.isIos=function(){return goog.labs.userAgent.platform.isIphone()||goog.labs.userAgent.platform.isIpad()||goog.labs.userAgent.platform.isIpod()},goog.labs.userAgent.platform.isMacintosh=function(){return goog.labs.userAgent.util.matchUserAgent("Macintosh")},goog.labs.userAgent.platform.isLinux=function(){return goog.labs.userAgent.util.matchUserAgent("Linux")},goog.labs.userAgent.platform.isWindows=function(){return goog.labs.userAgent.util.matchUserAgent("Windows")},goog.labs.userAgent.platform.isChromeOS=function(){return goog.labs.userAgent.util.matchUserAgent("CrOS")},goog.labs.userAgent.platform.isChromecast=function(){return goog.labs.userAgent.util.matchUserAgent("CrKey")},goog.labs.userAgent.platform.isKaiOS=function(){return goog.labs.userAgent.util.matchUserAgentIgnoreCase("KaiOS")},goog.labs.userAgent.platform.isGo2Phone=function(){return goog.labs.userAgent.util.matchUserAgentIgnoreCase("GAFP")},goog.labs.userAgent.platform.getVersion=function(){var e=goog.labs.userAgent.util.getUserAgent(),t="";return goog.labs.userAgent.platform.isWindows()?t=(e=(t=/Windows (?:NT|Phone) ([0-9.]+)/).exec(e))?e[1]:"0.0":goog.labs.userAgent.platform.isIos()?t=(e=(t=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/).exec(e))&&e[1].replace(/_/g,"."):goog.labs.userAgent.platform.isMacintosh()?t=(e=(t=/Mac OS X ([0-9_.]+)/).exec(e))?e[1].replace(/_/g,"."):"10":goog.labs.userAgent.platform.isKaiOS()?t=(e=(t=/(?:KaiOS)\/(\S+)/i).exec(e))&&e[1]:goog.labs.userAgent.platform.isAndroid()?t=(e=(t=/Android\s+([^\);]+)(\)|;)/).exec(e))&&e[1]:goog.labs.userAgent.platform.isChromeOS()&&(t=(e=(t=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/).exec(e))&&e[1]),t||""},goog.labs.userAgent.platform.isVersionOrHigher=function(e){return 0<=goog.string.compareVersions(goog.labs.userAgent.platform.getVersion(),e)},goog.reflect={},goog.reflect.object=function(e,t){return t},goog.reflect.objectProperty=function(e,t){return e},goog.reflect.sinkValue=function(e){return goog.reflect.sinkValue[" "](e),e},goog.reflect.sinkValue[" "]=goog.nullFunction,goog.reflect.canAccessProperty=function(e,t){try{return goog.reflect.sinkValue(e[t]),!0}catch{}return!1},goog.reflect.cache=function(e,t,r,n){return n=n?n(t):t,Object.prototype.hasOwnProperty.call(e,n)?e[n]:e[n]=r(t)},goog.labs.userAgent.engine={},goog.labs.userAgent.engine.isPresto=function(){return goog.labs.userAgent.util.matchUserAgent("Presto")},goog.labs.userAgent.engine.isTrident=function(){return goog.labs.userAgent.util.matchUserAgent("Trident")||goog.labs.userAgent.util.matchUserAgent("MSIE")},goog.labs.userAgent.engine.isEdge=function(){return goog.labs.userAgent.util.matchUserAgent("Edge")},goog.labs.userAgent.engine.isWebKit=function(){return goog.labs.userAgent.util.matchUserAgentIgnoreCase("WebKit")&&!goog.labs.userAgent.engine.isEdge()},goog.labs.userAgent.engine.isGecko=function(){return goog.labs.userAgent.util.matchUserAgent("Gecko")&&!goog.labs.userAgent.engine.isWebKit()&&!goog.labs.userAgent.engine.isTrident()&&!goog.labs.userAgent.engine.isEdge()},goog.labs.userAgent.engine.getVersion=function(){var e=goog.labs.userAgent.util.getUserAgent();if(e){e=goog.labs.userAgent.util.extractVersionTuples(e);var t,r=goog.labs.userAgent.engine.getEngineTuple_(e);if(r)return r[0]=="Gecko"?goog.labs.userAgent.engine.getVersionForKey_(e,"Firefox"):r[1];if((e=e[0])&&(t=e[2])&&(t=/Trident\/([^\s;]+)/.exec(t)))return t[1]}return""},goog.labs.userAgent.engine.getEngineTuple_=function(e){if(!goog.labs.userAgent.engine.isEdge())return e[1];for(var t=0;t<e.length;t++){var r=e[t];if(r[0]=="Edge")return r}},goog.labs.userAgent.engine.isVersionOrHigher=function(e){return 0<=goog.string.compareVersions(goog.labs.userAgent.engine.getVersion(),e)},goog.labs.userAgent.engine.getVersionForKey_=function(e,t){return(e=goog.array.find(e,function(r){return t==r[0]}))&&e[1]||""},goog.userAgent={},goog.userAgent.ASSUME_IE=!1,goog.userAgent.ASSUME_EDGE=!1,goog.userAgent.ASSUME_GECKO=!1,goog.userAgent.ASSUME_WEBKIT=!1,goog.userAgent.ASSUME_MOBILE_WEBKIT=!1,goog.userAgent.ASSUME_OPERA=!1,goog.userAgent.ASSUME_ANY_VERSION=!1,goog.userAgent.BROWSER_KNOWN_=goog.userAgent.ASSUME_IE||goog.userAgent.ASSUME_EDGE||goog.userAgent.ASSUME_GECKO||goog.userAgent.ASSUME_MOBILE_WEBKIT||goog.userAgent.ASSUME_WEBKIT||goog.userAgent.ASSUME_OPERA,goog.userAgent.getUserAgentString=function(){return goog.labs.userAgent.util.getUserAgent()},goog.userAgent.getNavigatorTyped=function(){return goog.global.navigator||null},goog.userAgent.getNavigator=function(){return goog.userAgent.getNavigatorTyped()},goog.userAgent.OPERA=goog.userAgent.BROWSER_KNOWN_?goog.userAgent.ASSUME_OPERA:goog.labs.userAgent.browser.isOpera(),goog.userAgent.IE=goog.userAgent.BROWSER_KNOWN_?goog.userAgent.ASSUME_IE:goog.labs.userAgent.browser.isIE(),goog.userAgent.EDGE=goog.userAgent.BROWSER_KNOWN_?goog.userAgent.ASSUME_EDGE:goog.labs.userAgent.engine.isEdge(),goog.userAgent.EDGE_OR_IE=goog.userAgent.EDGE||goog.userAgent.IE,goog.userAgent.GECKO=goog.userAgent.BROWSER_KNOWN_?goog.userAgent.ASSUME_GECKO:goog.labs.userAgent.engine.isGecko(),goog.userAgent.WEBKIT=goog.userAgent.BROWSER_KNOWN_?goog.userAgent.ASSUME_WEBKIT||goog.userAgent.ASSUME_MOBILE_WEBKIT:goog.labs.userAgent.engine.isWebKit(),goog.userAgent.isMobile_=function(){return goog.userAgent.WEBKIT&&goog.labs.userAgent.util.matchUserAgent("Mobile")},goog.userAgent.MOBILE=goog.userAgent.ASSUME_MOBILE_WEBKIT||goog.userAgent.isMobile_(),goog.userAgent.SAFARI=goog.userAgent.WEBKIT,goog.userAgent.determinePlatform_=function(){var e=goog.userAgent.getNavigatorTyped();return e&&e.platform||""},goog.userAgent.PLATFORM=goog.userAgent.determinePlatform_(),goog.userAgent.ASSUME_MAC=!1,goog.userAgent.ASSUME_WINDOWS=!1,goog.userAgent.ASSUME_LINUX=!1,goog.userAgent.ASSUME_X11=!1,goog.userAgent.ASSUME_ANDROID=!1,goog.userAgent.ASSUME_IPHONE=!1,goog.userAgent.ASSUME_IPAD=!1,goog.userAgent.ASSUME_IPOD=!1,goog.userAgent.ASSUME_KAIOS=!1,goog.userAgent.ASSUME_GO2PHONE=!1,goog.userAgent.PLATFORM_KNOWN_=goog.userAgent.ASSUME_MAC||goog.userAgent.ASSUME_WINDOWS||goog.userAgent.ASSUME_LINUX||goog.userAgent.ASSUME_X11||goog.userAgent.ASSUME_ANDROID||goog.userAgent.ASSUME_IPHONE||goog.userAgent.ASSUME_IPAD||goog.userAgent.ASSUME_IPOD,goog.userAgent.MAC=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_MAC:goog.labs.userAgent.platform.isMacintosh(),goog.userAgent.WINDOWS=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_WINDOWS:goog.labs.userAgent.platform.isWindows(),goog.userAgent.isLegacyLinux_=function(){return goog.labs.userAgent.platform.isLinux()||goog.labs.userAgent.platform.isChromeOS()},goog.userAgent.LINUX=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_LINUX:goog.userAgent.isLegacyLinux_(),goog.userAgent.isX11_=function(){var e=goog.userAgent.getNavigatorTyped();return!!e&&goog.string.contains(e.appVersion||"","X11")},goog.userAgent.X11=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_X11:goog.userAgent.isX11_(),goog.userAgent.ANDROID=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_ANDROID:goog.labs.userAgent.platform.isAndroid(),goog.userAgent.IPHONE=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_IPHONE:goog.labs.userAgent.platform.isIphone(),goog.userAgent.IPAD=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_IPAD:goog.labs.userAgent.platform.isIpad(),goog.userAgent.IPOD=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_IPOD:goog.labs.userAgent.platform.isIpod(),goog.userAgent.IOS=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_IPHONE||goog.userAgent.ASSUME_IPAD||goog.userAgent.ASSUME_IPOD:goog.labs.userAgent.platform.isIos(),goog.userAgent.KAIOS=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_KAIOS:goog.labs.userAgent.platform.isKaiOS(),goog.userAgent.GO2PHONE=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_GO2PHONE:goog.labs.userAgent.platform.isGo2Phone(),goog.userAgent.determineVersion_=function(){var e="",t=goog.userAgent.getVersionRegexResult_();return t&&(e=t?t[1]:""),goog.userAgent.IE&&(t=goog.userAgent.getDocumentMode_())!=null&&t>parseFloat(e)?String(t):e},goog.userAgent.getVersionRegexResult_=function(){var e=goog.userAgent.getUserAgentString();return goog.userAgent.GECKO?/rv:([^\);]+)(\)|;)/.exec(e):goog.userAgent.EDGE?/Edge\/([\d\.]+)/.exec(e):goog.userAgent.IE?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(e):goog.userAgent.WEBKIT?/WebKit\/(\S+)/.exec(e):goog.userAgent.OPERA?/(?:Version)[ \/]?(\S+)/.exec(e):void 0},goog.userAgent.getDocumentMode_=function(){var e=goog.global.document;return e?e.documentMode:void 0},goog.userAgent.VERSION=goog.userAgent.determineVersion_(),goog.userAgent.compare=function(e,t){return goog.string.compareVersions(e,t)},goog.userAgent.isVersionOrHigherCache_={},goog.userAgent.isVersionOrHigher=function(e){return goog.userAgent.ASSUME_ANY_VERSION||goog.reflect.cache(goog.userAgent.isVersionOrHigherCache_,e,function(){return 0<=goog.string.compareVersions(goog.userAgent.VERSION,e)})},goog.userAgent.isVersion=goog.userAgent.isVersionOrHigher,goog.userAgent.isDocumentModeOrHigher=function(e){return Number(goog.userAgent.DOCUMENT_MODE)>=e},goog.userAgent.isDocumentMode=goog.userAgent.isDocumentModeOrHigher,goog.userAgent.DOCUMENT_MODE=function(){if(goog.global.document&&goog.userAgent.IE)return goog.userAgent.getDocumentMode_()}(),goog.userAgent.product={},goog.userAgent.product.ASSUME_FIREFOX=!1,goog.userAgent.product.ASSUME_IPHONE=!1,goog.userAgent.product.ASSUME_IPAD=!1,goog.userAgent.product.ASSUME_ANDROID=!1,goog.userAgent.product.ASSUME_CHROME=!1,goog.userAgent.product.ASSUME_SAFARI=!1,goog.userAgent.product.PRODUCT_KNOWN_=goog.userAgent.ASSUME_IE||goog.userAgent.ASSUME_EDGE||goog.userAgent.ASSUME_OPERA||goog.userAgent.product.ASSUME_FIREFOX||goog.userAgent.product.ASSUME_IPHONE||goog.userAgent.product.ASSUME_IPAD||goog.userAgent.product.ASSUME_ANDROID||goog.userAgent.product.ASSUME_CHROME||goog.userAgent.product.ASSUME_SAFARI,goog.userAgent.product.OPERA=goog.userAgent.OPERA,goog.userAgent.product.IE=goog.userAgent.IE,goog.userAgent.product.EDGE=goog.userAgent.EDGE,goog.userAgent.product.FIREFOX=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_FIREFOX:goog.labs.userAgent.browser.isFirefox(),goog.userAgent.product.isIphoneOrIpod_=function(){return goog.labs.userAgent.platform.isIphone()||goog.labs.userAgent.platform.isIpod()},goog.userAgent.product.IPHONE=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_IPHONE:goog.userAgent.product.isIphoneOrIpod_(),goog.userAgent.product.IPAD=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_IPAD:goog.labs.userAgent.platform.isIpad(),goog.userAgent.product.ANDROID=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_ANDROID:goog.labs.userAgent.browser.isAndroidBrowser(),goog.userAgent.product.CHROME=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_CHROME:goog.labs.userAgent.browser.isChrome(),goog.userAgent.product.isSafariDesktop_=function(){return goog.labs.userAgent.browser.isSafari()&&!goog.labs.userAgent.platform.isIos()},goog.userAgent.product.SAFARI=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_SAFARI:goog.userAgent.product.isSafariDesktop_(),goog.crypt.base64={},goog.crypt.base64.DEFAULT_ALPHABET_COMMON_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",goog.crypt.base64.ENCODED_VALS=goog.crypt.base64.DEFAULT_ALPHABET_COMMON_+"+/=",goog.crypt.base64.ENCODED_VALS_WEBSAFE=goog.crypt.base64.DEFAULT_ALPHABET_COMMON_+"-_.",goog.crypt.base64.Alphabet={DEFAULT:0,NO_PADDING:1,WEBSAFE:2,WEBSAFE_DOT_PADDING:3,WEBSAFE_NO_PADDING:4},goog.crypt.base64.paddingChars_="=.",goog.crypt.base64.isPadding_=function(e){return goog.string.contains(goog.crypt.base64.paddingChars_,e)},goog.crypt.base64.byteToCharMaps_={},goog.crypt.base64.charToByteMap_=null,goog.crypt.base64.ASSUME_NATIVE_SUPPORT_=goog.userAgent.GECKO||goog.userAgent.WEBKIT&&!goog.userAgent.product.SAFARI||goog.userAgent.OPERA,goog.crypt.base64.HAS_NATIVE_ENCODE_=goog.crypt.base64.ASSUME_NATIVE_SUPPORT_||typeof goog.global.btoa=="function",goog.crypt.base64.HAS_NATIVE_DECODE_=goog.crypt.base64.ASSUME_NATIVE_SUPPORT_||!goog.userAgent.product.SAFARI&&!goog.userAgent.IE&&typeof goog.global.atob=="function",goog.crypt.base64.encodeByteArray=function(e,t){goog.asserts.assert(goog.isArrayLike(e),"encodeByteArray takes an array as a parameter"),t===void 0&&(t=goog.crypt.base64.Alphabet.DEFAULT),goog.crypt.base64.init_(),t=goog.crypt.base64.byteToCharMaps_[t];for(var r=[],n=0;n<e.length;n+=3){var i=e[n],g=n+1<e.length,s=g?e[n+1]:0,o=n+2<e.length,l=o?e[n+2]:0,u=i>>2;i=(3&i)<<4|s>>4,s=(15&s)<<2|l>>6,l&=63,o||(l=64,g||(s=64)),r.push(t[u],t[i],t[s]||"",t[l]||"")}return r.join("")},goog.crypt.base64.encodeString=function(e,t){return goog.crypt.base64.HAS_NATIVE_ENCODE_&&!t?goog.global.btoa(e):goog.crypt.base64.encodeByteArray(goog.crypt.stringToByteArray(e),t)},goog.crypt.base64.decodeString=function(e,t){if(goog.crypt.base64.HAS_NATIVE_DECODE_&&!t)return goog.global.atob(e);var r="";return goog.crypt.base64.decodeStringInternal_(e,function(n){r+=String.fromCharCode(n)}),r},goog.crypt.base64.decodeStringToByteArray=function(e,t){var r=[];return goog.crypt.base64.decodeStringInternal_(e,function(n){r.push(n)}),r},goog.crypt.base64.decodeStringToUint8Array=function(e){goog.asserts.assert(!goog.userAgent.IE||goog.userAgent.isVersionOrHigher("10"),"Browser does not support typed arrays");var t=e.length,r=3*t/4;r%3?r=Math.floor(r):goog.crypt.base64.isPadding_(e[t-1])&&(r=goog.crypt.base64.isPadding_(e[t-2])?r-2:r-1);var n=new Uint8Array(r),i=0;return goog.crypt.base64.decodeStringInternal_(e,function(g){n[i++]=g}),n.subarray(0,i)},goog.crypt.base64.decodeStringInternal_=function(e,t){function r(l){for(;n<e.length;){var u=e.charAt(n++),m=goog.crypt.base64.charToByteMap_[u];if(m!=null)return m;if(!goog.string.isEmptyOrWhitespace(u))throw Error("Unknown base64 encoding at char: "+u)}return l}goog.crypt.base64.init_();for(var n=0;;){var i=r(-1),g=r(0),s=r(64),o=r(64);if(o===64&&i===-1)break;t(i<<2|g>>4),s!=64&&(t(g<<4&240|s>>2),o!=64&&t(s<<6&192|o))}},goog.crypt.base64.init_=function(){if(!goog.crypt.base64.charToByteMap_){goog.crypt.base64.charToByteMap_={};for(var e=goog.crypt.base64.DEFAULT_ALPHABET_COMMON_.split(""),t=["+/=","+/","-_=","-_.","-_"],r=0;5>r;r++){var n=e.concat(t[r].split(""));goog.crypt.base64.byteToCharMaps_[r]=n;for(var i=0;i<n.length;i++){var g=n[i],s=goog.crypt.base64.charToByteMap_[g];s===void 0?goog.crypt.base64.charToByteMap_[g]=i:goog.asserts.assert(s===i)}}}},jspb.utils={},jspb.utils.split64Low=0,jspb.utils.split64High=0,jspb.utils.splitUint64=function(e){var t=e>>>0;e=Math.floor((e-t)/jspb.BinaryConstants.TWO_TO_32)>>>0,jspb.utils.split64Low=t,jspb.utils.split64High=e},jspb.utils.splitInt64=function(e){var t=0>e,r=(e=Math.abs(e))>>>0;e=Math.floor((e-r)/jspb.BinaryConstants.TWO_TO_32),e>>>=0,t&&(e=~e>>>0,4294967295<(r=1+(~r>>>0))&&(r=0,4294967295<++e&&(e=0))),jspb.utils.split64Low=r,jspb.utils.split64High=e},jspb.utils.splitZigzag64=function(e){var t=0>e;e=2*Math.abs(e),jspb.utils.splitUint64(e),e=jspb.utils.split64Low;var r=jspb.utils.split64High;t&&(e==0?r==0?r=e=4294967295:(r--,e=4294967295):e--),jspb.utils.split64Low=e,jspb.utils.split64High=r},jspb.utils.splitFloat32=function(e){var t=0>e?1:0;if((e=t?-e:e)===0)0<1/e?(jspb.utils.split64High=0,jspb.utils.split64Low=0):(jspb.utils.split64High=0,jspb.utils.split64Low=2147483648);else if(isNaN(e))jspb.utils.split64High=0,jspb.utils.split64Low=2147483647;else if(e>jspb.BinaryConstants.FLOAT32_MAX)jspb.utils.split64High=0,jspb.utils.split64Low=(t<<31|2139095040)>>>0;else if(e<jspb.BinaryConstants.FLOAT32_MIN)e=Math.round(e/Math.pow(2,-149)),jspb.utils.split64High=0,jspb.utils.split64Low=(t<<31|e)>>>0;else{var r=Math.floor(Math.log(e)/Math.LN2);e*=Math.pow(2,-r),e=8388607&Math.round(e*jspb.BinaryConstants.TWO_TO_23),jspb.utils.split64High=0,jspb.utils.split64Low=(t<<31|r+127<<23|e)>>>0}},jspb.utils.splitFloat64=function(e){var t=0>e?1:0;if((e=t?-e:e)===0)jspb.utils.split64High=0<1/e?0:2147483648,jspb.utils.split64Low=0;else if(isNaN(e))jspb.utils.split64High=2147483647,jspb.utils.split64Low=4294967295;else if(e>jspb.BinaryConstants.FLOAT64_MAX)jspb.utils.split64High=(t<<31|2146435072)>>>0,jspb.utils.split64Low=0;else if(e<jspb.BinaryConstants.FLOAT64_MIN){var r=e/Math.pow(2,-1074);e=r/jspb.BinaryConstants.TWO_TO_32,jspb.utils.split64High=(t<<31|e)>>>0,jspb.utils.split64Low=r>>>0}else{var n=0;if(2<=(r=e))for(;2<=r&&1023>n;)n++,r/=2;else for(;1>r&&-1022<n;)r*=2,n--;e=(r=e*Math.pow(2,-n))*jspb.BinaryConstants.TWO_TO_20&1048575,r=r*jspb.BinaryConstants.TWO_TO_52>>>0,jspb.utils.split64High=(t<<31|n+1023<<20|e)>>>0,jspb.utils.split64Low=r}},jspb.utils.splitHash64=function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1),n=e.charCodeAt(2),i=e.charCodeAt(3),g=e.charCodeAt(4),s=e.charCodeAt(5),o=e.charCodeAt(6);e=e.charCodeAt(7),jspb.utils.split64Low=t+(r<<8)+(n<<16)+(i<<24)>>>0,jspb.utils.split64High=g+(s<<8)+(o<<16)+(e<<24)>>>0},jspb.utils.joinUint64=function(e,t){return t*jspb.BinaryConstants.TWO_TO_32+(e>>>0)},jspb.utils.joinInt64=function(e,t){var r=2147483648&t;return r&&(t=~t>>>0,(e=1+~e>>>0)==0&&(t=t+1>>>0)),e=jspb.utils.joinUint64(e,t),r?-e:e},jspb.utils.toZigzag64=function(e,t,r){var n=t>>31;return r(e<<1^n,(t<<1|e>>>31)^n)},jspb.utils.joinZigzag64=function(e,t){return jspb.utils.fromZigzag64(e,t,jspb.utils.joinInt64)},jspb.utils.fromZigzag64=function(e,t,r){var n=-(1&e);return r((e>>>1|t<<31)^n,t>>>1^n)},jspb.utils.joinFloat32=function(e,t){t=2*(e>>31)+1;var r=e>>>23&255;return e&=8388607,r==255?e?NaN:1/0*t:r==0?t*Math.pow(2,-149)*e:t*Math.pow(2,r-150)*(e+Math.pow(2,23))},jspb.utils.joinFloat64=function(e,t){var r=2*(t>>31)+1,n=t>>>20&2047;return e=jspb.BinaryConstants.TWO_TO_32*(1048575&t)+e,n==2047?e?NaN:1/0*r:n==0?r*Math.pow(2,-1074)*e:r*Math.pow(2,n-1075)*(e+jspb.BinaryConstants.TWO_TO_52)},jspb.utils.joinHash64=function(e,t){return String.fromCharCode(e>>>0&255,e>>>8&255,e>>>16&255,e>>>24&255,t>>>0&255,t>>>8&255,t>>>16&255,t>>>24&255)},jspb.utils.DIGITS="0123456789abcdef".split(""),jspb.utils.ZERO_CHAR_CODE_=48,jspb.utils.A_CHAR_CODE_=97,jspb.utils.joinUnsignedDecimalString=function(e,t){function r(i,g){return i=i?String(i):"",g?"0000000".slice(i.length)+i:i}if(2097151>=t)return""+(jspb.BinaryConstants.TWO_TO_32*t+e);var n=(e>>>24|t<<8)>>>0&16777215;return e=(16777215&e)+6777216*n+6710656*(t=t>>16&65535),n+=8147497*t,t*=2,1e7<=e&&(n+=Math.floor(e/1e7),e%=1e7),1e7<=n&&(t+=Math.floor(n/1e7),n%=1e7),r(t,0)+r(n,t)+r(e,1)},jspb.utils.joinSignedDecimalString=function(e,t){var r=2147483648&t;return r&&(t=~t+((e=1+~e>>>0)==0?1:0)>>>0),e=jspb.utils.joinUnsignedDecimalString(e,t),r?"-"+e:e},jspb.utils.hash64ToDecimalString=function(e,t){jspb.utils.splitHash64(e),e=jspb.utils.split64Low;var r=jspb.utils.split64High;return t?jspb.utils.joinSignedDecimalString(e,r):jspb.utils.joinUnsignedDecimalString(e,r)},jspb.utils.hash64ArrayToDecimalStrings=function(e,t){for(var r=Array(e.length),n=0;n<e.length;n++)r[n]=jspb.utils.hash64ToDecimalString(e[n],t);return r},jspb.utils.decimalStringToHash64=function(e){function t(g,s){for(var o=0;8>o&&(g!==1||0<s);o++)s=g*n[o]+s,n[o]=255&s,s>>>=8}goog.asserts.assert(0<e.length);var r=!1;e[0]==="-"&&(r=!0,e=e.slice(1));for(var n=[0,0,0,0,0,0,0,0],i=0;i<e.length;i++)t(10,e.charCodeAt(i)-jspb.utils.ZERO_CHAR_CODE_);return r&&(function(){for(var g=0;8>g;g++)n[g]=255&~n[g]}(),t(1,1)),goog.crypt.byteArrayToString(n)},jspb.utils.splitDecimalString=function(e){jspb.utils.splitHash64(jspb.utils.decimalStringToHash64(e))},jspb.utils.toHexDigit_=function(e){return String.fromCharCode(10>e?jspb.utils.ZERO_CHAR_CODE_+e:jspb.utils.A_CHAR_CODE_-10+e)},jspb.utils.fromHexCharCode_=function(e){return e>=jspb.utils.A_CHAR_CODE_?e-jspb.utils.A_CHAR_CODE_+10:e-jspb.utils.ZERO_CHAR_CODE_},jspb.utils.hash64ToHexString=function(e){var t=Array(18);t[0]="0",t[1]="x";for(var r=0;8>r;r++){var n=e.charCodeAt(7-r);t[2*r+2]=jspb.utils.toHexDigit_(n>>4),t[2*r+3]=jspb.utils.toHexDigit_(15&n)}return t.join("")},jspb.utils.hexStringToHash64=function(e){e=e.toLowerCase(),goog.asserts.assert(e.length==18),goog.asserts.assert(e[0]=="0"),goog.asserts.assert(e[1]=="x");for(var t="",r=0;8>r;r++){var n=jspb.utils.fromHexCharCode_(e.charCodeAt(2*r+2)),i=jspb.utils.fromHexCharCode_(e.charCodeAt(2*r+3));t=String.fromCharCode(16*n+i)+t}return t},jspb.utils.hash64ToNumber=function(e,t){jspb.utils.splitHash64(e),e=jspb.utils.split64Low;var r=jspb.utils.split64High;return t?jspb.utils.joinInt64(e,r):jspb.utils.joinUint64(e,r)},jspb.utils.numberToHash64=function(e){return jspb.utils.splitInt64(e),jspb.utils.joinHash64(jspb.utils.split64Low,jspb.utils.split64High)},jspb.utils.countVarints=function(e,t,r){for(var n=0,i=t;i<r;i++)n+=e[i]>>7;return r-t-n},jspb.utils.countVarintFields=function(e,t,r,n){var i=0;if(128>(n=8*n+jspb.BinaryConstants.WireType.VARINT))for(;t<r&&e[t++]==n;)for(i++;;){var g=e[t++];if((128&g)==0)break}else for(;t<r;){for(g=n;128<g;){if(e[t]!=(127&g|128))return i;t++,g>>=7}if(e[t++]!=g)break;for(i++;(128&(g=e[t++]))!=0;);}return i},jspb.utils.countFixedFields_=function(e,t,r,n,i){var g=0;if(128>n)for(;t<r&&e[t++]==n;)g++,t+=i;else for(;t<r;){for(var s=n;128<s;){if(e[t++]!=(127&s|128))return g;s>>=7}if(e[t++]!=s)break;g++,t+=i}return g},jspb.utils.countFixed32Fields=function(e,t,r,n){return jspb.utils.countFixedFields_(e,t,r,8*n+jspb.BinaryConstants.WireType.FIXED32,4)},jspb.utils.countFixed64Fields=function(e,t,r,n){return jspb.utils.countFixedFields_(e,t,r,8*n+jspb.BinaryConstants.WireType.FIXED64,8)},jspb.utils.countDelimitedFields=function(e,t,r,n){var i=0;for(n=8*n+jspb.BinaryConstants.WireType.DELIMITED;t<r;){for(var g=n;128<g;){if(e[t++]!=(127&g|128))return i;g>>=7}if(e[t++]!=g)break;i++;for(var s=0,o=1;s+=(127&(g=e[t++]))*o,o*=128,(128&g)!=0;);t+=s}return i},jspb.utils.debugBytesToTextFormat=function(e){var t='"';if(e){e=jspb.utils.byteSourceToUint8Array(e);for(var r=0;r<e.length;r++)t+="\\x",16>e[r]&&(t+="0"),t+=e[r].toString(16)}return t+'"'},jspb.utils.debugScalarToTextFormat=function(e){return typeof e=="string"?goog.string.quote(e):e.toString()},jspb.utils.stringToByteArray=function(e){for(var t=new Uint8Array(e.length),r=0;r<e.length;r++){var n=e.charCodeAt(r);if(255<n)throw Error("Conversion error: string contains codepoint outside of byte range");t[r]=n}return t},jspb.utils.byteSourceToUint8Array=function(e){return e.constructor===Uint8Array?e:e.constructor===ArrayBuffer||Buffer!==void 0&&e.constructor===Buffer||e.constructor===Array?new Uint8Array(e):e.constructor===String?goog.crypt.base64.decodeStringToUint8Array(e):(goog.asserts.fail("Type not convertible to Uint8Array."),new Uint8Array(0))},jspb.BinaryDecoder=function(e,t,r){this.bytes_=null,this.cursor_=this.end_=this.start_=0,this.error_=!1,e&&this.setBlock(e,t,r)},jspb.BinaryDecoder.instanceCache_=[],jspb.BinaryDecoder.alloc=function(e,t,r){if(jspb.BinaryDecoder.instanceCache_.length){var n=jspb.BinaryDecoder.instanceCache_.pop();return e&&n.setBlock(e,t,r),n}return new jspb.BinaryDecoder(e,t,r)},jspb.BinaryDecoder.prototype.free=function(){this.clear(),100>jspb.BinaryDecoder.instanceCache_.length&&jspb.BinaryDecoder.instanceCache_.push(this)},jspb.BinaryDecoder.prototype.clone=function(){return jspb.BinaryDecoder.alloc(this.bytes_,this.start_,this.end_-this.start_)},jspb.BinaryDecoder.prototype.clear=function(){this.bytes_=null,this.cursor_=this.end_=this.start_=0,this.error_=!1},jspb.BinaryDecoder.prototype.getBuffer=function(){return this.bytes_},jspb.BinaryDecoder.prototype.setBlock=function(e,t,r){this.bytes_=jspb.utils.byteSourceToUint8Array(e),this.start_=t!==void 0?t:0,this.end_=r!==void 0?this.start_+r:this.bytes_.length,this.cursor_=this.start_},jspb.BinaryDecoder.prototype.getEnd=function(){return this.end_},jspb.BinaryDecoder.prototype.setEnd=function(e){this.end_=e},jspb.BinaryDecoder.prototype.reset=function(){this.cursor_=this.start_},jspb.BinaryDecoder.prototype.getCursor=function(){return this.cursor_},jspb.BinaryDecoder.prototype.setCursor=function(e){this.cursor_=e},jspb.BinaryDecoder.prototype.advance=function(e){this.cursor_+=e,goog.asserts.assert(this.cursor_<=this.end_)},jspb.BinaryDecoder.prototype.atEnd=function(){return this.cursor_==this.end_},jspb.BinaryDecoder.prototype.pastEnd=function(){return this.cursor_>this.end_},jspb.BinaryDecoder.prototype.getError=function(){return this.error_||0>this.cursor_||this.cursor_>this.end_},jspb.BinaryDecoder.prototype.readSplitVarint64=function(e){for(var t=128,r=0,n=0,i=0;4>i&&128<=t;i++)r|=(127&(t=this.bytes_[this.cursor_++]))<<7*i;if(128<=t&&(r|=(127&(t=this.bytes_[this.cursor_++]))<<28,n|=(127&t)>>4),128<=t)for(i=0;5>i&&128<=t;i++)n|=(127&(t=this.bytes_[this.cursor_++]))<<7*i+3;if(128>t)return e(r>>>0,n>>>0);goog.asserts.fail("Failed to read varint, encoding is invalid."),this.error_=!0},jspb.BinaryDecoder.prototype.readSplitZigzagVarint64=function(e){return this.readSplitVarint64(function(t,r){return jspb.utils.fromZigzag64(t,r,e)})},jspb.BinaryDecoder.prototype.readSplitFixed64=function(e){var t=this.bytes_,r=this.cursor_;this.cursor_+=8;for(var n=0,i=0,g=r+7;g>=r;g--)n=n<<8|t[g],i=i<<8|t[g+4];return e(n,i)},jspb.BinaryDecoder.prototype.skipVarint=function(){for(;128&this.bytes_[this.cursor_];)this.cursor_++;this.cursor_++},jspb.BinaryDecoder.prototype.unskipVarint=function(e){for(;128<e;)this.cursor_--,e>>>=7;this.cursor_--},jspb.BinaryDecoder.prototype.readUnsignedVarint32=function(){var e=this.bytes_,t=e[this.cursor_+0],r=127&t;return 128>t?(this.cursor_+=1,goog.asserts.assert(this.cursor_<=this.end_),r):(r|=(127&(t=e[this.cursor_+1]))<<7,128>t?(this.cursor_+=2,goog.asserts.assert(this.cursor_<=this.end_),r):(r|=(127&(t=e[this.cursor_+2]))<<14,128>t?(this.cursor_+=3,goog.asserts.assert(this.cursor_<=this.end_),r):(r|=(127&(t=e[this.cursor_+3]))<<21,128>t?(this.cursor_+=4,goog.asserts.assert(this.cursor_<=this.end_),r):(r|=(15&(t=e[this.cursor_+4]))<<28,128>t?(this.cursor_+=5,goog.asserts.assert(this.cursor_<=this.end_),r>>>0):(this.cursor_+=5,128<=e[this.cursor_++]&&128<=e[this.cursor_++]&&128<=e[this.cursor_++]&&128<=e[this.cursor_++]&&128<=e[this.cursor_++]&&goog.asserts.assert(!1),goog.asserts.assert(this.cursor_<=this.end_),r)))))},jspb.BinaryDecoder.prototype.readSignedVarint32=jspb.BinaryDecoder.prototype.readUnsignedVarint32,jspb.BinaryDecoder.prototype.readUnsignedVarint32String=function(){return this.readUnsignedVarint32().toString()},jspb.BinaryDecoder.prototype.readSignedVarint32String=function(){return this.readSignedVarint32().toString()},jspb.BinaryDecoder.prototype.readZigzagVarint32=function(){var e=this.readUnsignedVarint32();return e>>>1^-(1&e)},jspb.BinaryDecoder.prototype.readUnsignedVarint64=function(){return this.readSplitVarint64(jspb.utils.joinUint64)},jspb.BinaryDecoder.prototype.readUnsignedVarint64String=function(){return this.readSplitVarint64(jspb.utils.joinUnsignedDecimalString)},jspb.BinaryDecoder.prototype.readSignedVarint64=function(){return this.readSplitVarint64(jspb.utils.joinInt64)},jspb.BinaryDecoder.prototype.readSignedVarint64String=function(){return this.readSplitVarint64(jspb.utils.joinSignedDecimalString)},jspb.BinaryDecoder.prototype.readZigzagVarint64=function(){return this.readSplitVarint64(jspb.utils.joinZigzag64)},jspb.BinaryDecoder.prototype.readZigzagVarintHash64=function(){return this.readSplitZigzagVarint64(jspb.utils.joinHash64)},jspb.BinaryDecoder.prototype.readZigzagVarint64String=function(){return this.readSplitZigzagVarint64(jspb.utils.joinSignedDecimalString)},jspb.BinaryDecoder.prototype.readUint8=function(){var e=this.bytes_[this.cursor_+0];return this.cursor_+=1,goog.asserts.assert(this.cursor_<=this.end_),e},jspb.BinaryDecoder.prototype.readUint16=function(){var e=this.bytes_[this.cursor_+0],t=this.bytes_[this.cursor_+1];return this.cursor_+=2,goog.asserts.assert(this.cursor_<=this.end_),e<<0|t<<8},jspb.BinaryDecoder.prototype.readUint32=function(){var e=this.bytes_[this.cursor_+0],t=this.bytes_[this.cursor_+1],r=this.bytes_[this.cursor_+2],n=this.bytes_[this.cursor_+3];return this.cursor_+=4,goog.asserts.assert(this.cursor_<=this.end_),(e<<0|t<<8|r<<16|n<<24)>>>0},jspb.BinaryDecoder.prototype.readUint64=function(){var e=this.readUint32(),t=this.readUint32();return jspb.utils.joinUint64(e,t)},jspb.BinaryDecoder.prototype.readUint64String=function(){var e=this.readUint32(),t=this.readUint32();return jspb.utils.joinUnsignedDecimalString(e,t)},jspb.BinaryDecoder.prototype.readInt8=function(){var e=this.bytes_[this.cursor_+0];return this.cursor_+=1,goog.asserts.assert(this.cursor_<=this.end_),e<<24>>24},jspb.BinaryDecoder.prototype.readInt16=function(){var e=this.bytes_[this.cursor_+0],t=this.bytes_[this.cursor_+1];return this.cursor_+=2,goog.asserts.assert(this.cursor_<=this.end_),(e<<0|t<<8)<<16>>16},jspb.BinaryDecoder.prototype.readInt32=function(){var e=this.bytes_[this.cursor_+0],t=this.bytes_[this.cursor_+1],r=this.bytes_[this.cursor_+2],n=this.bytes_[this.cursor_+3];return this.cursor_+=4,goog.asserts.assert(this.cursor_<=this.end_),e<<0|t<<8|r<<16|n<<24},jspb.BinaryDecoder.prototype.readInt64=function(){var e=this.readUint32(),t=this.readUint32();return jspb.utils.joinInt64(e,t)},jspb.BinaryDecoder.prototype.readInt64String=function(){var e=this.readUint32(),t=this.readUint32();return jspb.utils.joinSignedDecimalString(e,t)},jspb.BinaryDecoder.prototype.readFloat=function(){var e=this.readUint32();return jspb.utils.joinFloat32(e,0)},jspb.BinaryDecoder.prototype.readDouble=function(){var e=this.readUint32(),t=this.readUint32();return jspb.utils.joinFloat64(e,t)},jspb.BinaryDecoder.prototype.readBool=function(){return!!this.bytes_[this.cursor_++]},jspb.BinaryDecoder.prototype.readEnum=function(){return this.readSignedVarint32()},jspb.BinaryDecoder.prototype.readString=function(e){var t=this.bytes_,r=this.cursor_;e=r+e;for(var n=[],i="";r<e;){var g=t[r++];if(128>g)n.push(g);else{if(192>g)continue;if(224>g){var s=t[r++];n.push((31&g)<<6|63&s)}else if(240>g){s=t[r++];var o=t[r++];n.push((15&g)<<12|(63&s)<<6|63&o)}else 248>g&&(g=(7&g)<<18|(63&(s=t[r++]))<<12|(63&(o=t[r++]))<<6|63&t[r++],g-=65536,n.push(55296+(g>>10&1023),56320+(1023&g)))}8192<=n.length&&(i+=String.fromCharCode.apply(null,n),n.length=0)}return i+=goog.crypt.byteArrayToString(n),this.cursor_=r,i},jspb.BinaryDecoder.prototype.readStringWithLength=function(){var e=this.readUnsignedVarint32();return this.readString(e)},jspb.BinaryDecoder.prototype.readBytes=function(e){if(0>e||this.cursor_+e>this.bytes_.length)return this.error_=!0,goog.asserts.fail("Invalid byte length!"),new Uint8Array(0);var t=this.bytes_.subarray(this.cursor_,this.cursor_+e);return this.cursor_+=e,goog.asserts.assert(this.cursor_<=this.end_),t},jspb.BinaryDecoder.prototype.readVarintHash64=function(){return this.readSplitVarint64(jspb.utils.joinHash64)},jspb.BinaryDecoder.prototype.readFixedHash64=function(){var e=this.bytes_,t=this.cursor_,r=e[t+0],n=e[t+1],i=e[t+2],g=e[t+3],s=e[t+4],o=e[t+5],l=e[t+6];return e=e[t+7],this.cursor_+=8,String.fromCharCode(r,n,i,g,s,o,l,e)},jspb.BinaryReader=function(e,t,r){this.decoder_=jspb.BinaryDecoder.alloc(e,t,r),this.fieldCursor_=this.decoder_.getCursor(),this.nextField_=jspb.BinaryConstants.INVALID_FIELD_NUMBER,this.nextWireType_=jspb.BinaryConstants.WireType.INVALID,this.error_=!1,this.readCallbacks_=null},jspb.BinaryReader.instanceCache_=[],jspb.BinaryReader.alloc=function(e,t,r){if(jspb.BinaryReader.instanceCache_.length){var n=jspb.BinaryReader.instanceCache_.pop();return e&&n.decoder_.setBlock(e,t,r),n}return new jspb.BinaryReader(e,t,r)},jspb.BinaryReader.prototype.alloc=jspb.BinaryReader.alloc,jspb.BinaryReader.prototype.free=function(){this.decoder_.clear(),this.nextField_=jspb.BinaryConstants.INVALID_FIELD_NUMBER,this.nextWireType_=jspb.BinaryConstants.WireType.INVALID,this.error_=!1,this.readCallbacks_=null,100>jspb.BinaryReader.instanceCache_.length&&jspb.BinaryReader.instanceCache_.push(this)},jspb.BinaryReader.prototype.getFieldCursor=function(){return this.fieldCursor_},jspb.BinaryReader.prototype.getCursor=function(){return this.decoder_.getCursor()},jspb.BinaryReader.prototype.getBuffer=function(){return this.decoder_.getBuffer()},jspb.BinaryReader.prototype.getFieldNumber=function(){return this.nextField_},jspb.BinaryReader.prototype.getWireType=function(){return this.nextWireType_},jspb.BinaryReader.prototype.isDelimited=function(){return this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED},jspb.BinaryReader.prototype.isEndGroup=function(){return this.nextWireType_==jspb.BinaryConstants.WireType.END_GROUP},jspb.BinaryReader.prototype.getError=function(){return this.error_||this.decoder_.getError()},jspb.BinaryReader.prototype.setBlock=function(e,t,r){this.decoder_.setBlock(e,t,r),this.nextField_=jspb.BinaryConstants.INVALID_FIELD_NUMBER,this.nextWireType_=jspb.BinaryConstants.WireType.INVALID},jspb.BinaryReader.prototype.reset=function(){this.decoder_.reset(),this.nextField_=jspb.BinaryConstants.INVALID_FIELD_NUMBER,this.nextWireType_=jspb.BinaryConstants.WireType.INVALID},jspb.BinaryReader.prototype.advance=function(e){this.decoder_.advance(e)},jspb.BinaryReader.prototype.nextField=function(){if(this.decoder_.atEnd())return!1;if(this.getError())return goog.asserts.fail("Decoder hit an error"),!1;this.fieldCursor_=this.decoder_.getCursor();var e=this.decoder_.readUnsignedVarint32(),t=e>>>3;return(e&=7)!=jspb.BinaryConstants.WireType.VARINT&&e!=jspb.BinaryConstants.WireType.FIXED32&&e!=jspb.BinaryConstants.WireType.FIXED64&&e!=jspb.BinaryConstants.WireType.DELIMITED&&e!=jspb.BinaryConstants.WireType.START_GROUP&&e!=jspb.BinaryConstants.WireType.END_GROUP?(goog.asserts.fail("Invalid wire type: %s (at position %s)",e,this.fieldCursor_),this.error_=!0,!1):(this.nextField_=t,this.nextWireType_=e,!0)},jspb.BinaryReader.prototype.unskipHeader=function(){this.decoder_.unskipVarint(this.nextField_<<3|this.nextWireType_)},jspb.BinaryReader.prototype.skipMatchingFields=function(){var e=this.nextField_;for(this.unskipHeader();this.nextField()&&this.getFieldNumber()==e;)this.skipField();this.decoder_.atEnd()||this.unskipHeader()},jspb.BinaryReader.prototype.skipVarintField=function(){this.nextWireType_!=jspb.BinaryConstants.WireType.VARINT?(goog.asserts.fail("Invalid wire type for skipVarintField"),this.skipField()):this.decoder_.skipVarint()},jspb.BinaryReader.prototype.skipDelimitedField=function(){if(this.nextWireType_!=jspb.BinaryConstants.WireType.DELIMITED)goog.asserts.fail("Invalid wire type for skipDelimitedField"),this.skipField();else{var e=this.decoder_.readUnsignedVarint32();this.decoder_.advance(e)}},jspb.BinaryReader.prototype.skipFixed32Field=function(){this.nextWireType_!=jspb.BinaryConstants.WireType.FIXED32?(goog.asserts.fail("Invalid wire type for skipFixed32Field"),this.skipField()):this.decoder_.advance(4)},jspb.BinaryReader.prototype.skipFixed64Field=function(){this.nextWireType_!=jspb.BinaryConstants.WireType.FIXED64?(goog.asserts.fail("Invalid wire type for skipFixed64Field"),this.skipField()):this.decoder_.advance(8)},jspb.BinaryReader.prototype.skipGroup=function(){for(var e=this.nextField_;;){if(!this.nextField()){goog.asserts.fail("Unmatched start-group tag: stream EOF"),this.error_=!0;break}if(this.nextWireType_==jspb.BinaryConstants.WireType.END_GROUP){this.nextField_!=e&&(goog.asserts.fail("Unmatched end-group tag"),this.error_=!0);break}this.skipField()}},jspb.BinaryReader.prototype.skipField=function(){switch(this.nextWireType_){case jspb.BinaryConstants.WireType.VARINT:this.skipVarintField();break;case jspb.BinaryConstants.WireType.FIXED64:this.skipFixed64Field();break;case jspb.BinaryConstants.WireType.DELIMITED:this.skipDelimitedField();break;case jspb.BinaryConstants.WireType.FIXED32:this.skipFixed32Field();break;case jspb.BinaryConstants.WireType.START_GROUP:this.skipGroup();break;default:goog.asserts.fail("Invalid wire encoding for field.")}},jspb.BinaryReader.prototype.registerReadCallback=function(e,t){this.readCallbacks_===null&&(this.readCallbacks_={}),goog.asserts.assert(!this.readCallbacks_[e]),this.readCallbacks_[e]=t},jspb.BinaryReader.prototype.runReadCallback=function(e){return goog.asserts.assert(this.readCallbacks_!==null),e=this.readCallbacks_[e],goog.asserts.assert(e),e(this)},jspb.BinaryReader.prototype.readAny=function(e){this.nextWireType_=jspb.BinaryConstants.FieldTypeToWireType(e);var t=jspb.BinaryConstants.FieldType;switch(e){case t.DOUBLE:return this.readDouble();case t.FLOAT:return this.readFloat();case t.INT64:return this.readInt64();case t.UINT64:return this.readUint64();case t.INT32:return this.readInt32();case t.FIXED64:return this.readFixed64();case t.FIXED32:return this.readFixed32();case t.BOOL:return this.readBool();case t.STRING:return this.readString();case t.GROUP:goog.asserts.fail("Group field type not supported in readAny()");case t.MESSAGE:goog.asserts.fail("Message field type not supported in readAny()");case t.BYTES:return this.readBytes();case t.UINT32:return this.readUint32();case t.ENUM:return this.readEnum();case t.SFIXED32:return this.readSfixed32();case t.SFIXED64:return this.readSfixed64();case t.SINT32:return this.readSint32();case t.SINT64:return this.readSint64();case t.FHASH64:return this.readFixedHash64();case t.VHASH64:return this.readVarintHash64();default:goog.asserts.fail("Invalid field type in readAny()")}return 0},jspb.BinaryReader.prototype.readMessage=function(e,t){goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var r=this.decoder_.getEnd(),n=this.decoder_.readUnsignedVarint32();n=this.decoder_.getCursor()+n,this.decoder_.setEnd(n),t(e,this),this.decoder_.setCursor(n),this.decoder_.setEnd(r)},jspb.BinaryReader.prototype.readGroup=function(e,t,r){goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.START_GROUP),goog.asserts.assert(this.nextField_==e),r(t,this),this.error_||this.nextWireType_==jspb.BinaryConstants.WireType.END_GROUP||(goog.asserts.fail("Group submessage did not end with an END_GROUP tag"),this.error_=!0)},jspb.BinaryReader.prototype.getFieldDecoder=function(){goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var e=this.decoder_.readUnsignedVarint32(),t=this.decoder_.getCursor(),r=t+e;return e=jspb.BinaryDecoder.alloc(this.decoder_.getBuffer(),t,e),this.decoder_.setCursor(r),e},jspb.BinaryReader.prototype.readInt32=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint32()},jspb.BinaryReader.prototype.readInt32String=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint32String()},jspb.BinaryReader.prototype.readInt64=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint64()},jspb.BinaryReader.prototype.readInt64String=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint64String()},jspb.BinaryReader.prototype.readUint32=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readUnsignedVarint32()},jspb.BinaryReader.prototype.readUint32String=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readUnsignedVarint32String()},jspb.BinaryReader.prototype.readUint64=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readUnsignedVarint64()},jspb.BinaryReader.prototype.readUint64String=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readUnsignedVarint64String()},jspb.BinaryReader.prototype.readSint32=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readZigzagVarint32()},jspb.BinaryReader.prototype.readSint64=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readZigzagVarint64()},jspb.BinaryReader.prototype.readSint64String=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readZigzagVarint64String()},jspb.BinaryReader.prototype.readFixed32=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED32),this.decoder_.readUint32()},jspb.BinaryReader.prototype.readFixed64=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readUint64()},jspb.BinaryReader.prototype.readFixed64String=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readUint64String()},jspb.BinaryReader.prototype.readSfixed32=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED32),this.decoder_.readInt32()},jspb.BinaryReader.prototype.readSfixed32String=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED32),this.decoder_.readInt32().toString()},jspb.BinaryReader.prototype.readSfixed64=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readInt64()},jspb.BinaryReader.prototype.readSfixed64String=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readInt64String()},jspb.BinaryReader.prototype.readFloat=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED32),this.decoder_.readFloat()},jspb.BinaryReader.prototype.readDouble=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readDouble()},jspb.BinaryReader.prototype.readBool=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),!!this.decoder_.readUnsignedVarint32()},jspb.BinaryReader.prototype.readEnum=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint64()},jspb.BinaryReader.prototype.readString=function(){goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var e=this.decoder_.readUnsignedVarint32();return this.decoder_.readString(e)},jspb.BinaryReader.prototype.readBytes=function(){goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var e=this.decoder_.readUnsignedVarint32();return this.decoder_.readBytes(e)},jspb.BinaryReader.prototype.readVarintHash64=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readVarintHash64()},jspb.BinaryReader.prototype.readSintHash64=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readZigzagVarintHash64()},jspb.BinaryReader.prototype.readSplitVarint64=function(e){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSplitVarint64(e)},jspb.BinaryReader.prototype.readSplitZigzagVarint64=function(e){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSplitVarint64(function(t,r){return jspb.utils.fromZigzag64(t,r,e)})},jspb.BinaryReader.prototype.readFixedHash64=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readFixedHash64()},jspb.BinaryReader.prototype.readSplitFixed64=function(e){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readSplitFixed64(e)},jspb.BinaryReader.prototype.readPackedField_=function(e){goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var t=this.decoder_.readUnsignedVarint32();t=this.decoder_.getCursor()+t;for(var r=[];this.decoder_.getCursor()<t;)r.push(e.call(this.decoder_));return r},jspb.BinaryReader.prototype.readPackedInt32=function(){return this.readPackedField_(this.decoder_.readSignedVarint32)},jspb.BinaryReader.prototype.readPackedInt32String=function(){return this.readPackedField_(this.decoder_.readSignedVarint32String)},jspb.BinaryReader.prototype.readPackedInt64=function(){return this.readPackedField_(this.decoder_.readSignedVarint64)},jspb.BinaryReader.prototype.readPackedInt64String=function(){return this.readPackedField_(this.decoder_.readSignedVarint64String)},jspb.BinaryReader.prototype.readPackedUint32=function(){return this.readPackedField_(this.decoder_.readUnsignedVarint32)},jspb.BinaryReader.prototype.readPackedUint32String=function(){return this.readPackedField_(this.decoder_.readUnsignedVarint32String)},jspb.BinaryReader.prototype.readPackedUint64=function(){return this.readPackedField_(this.decoder_.readUnsignedVarint64)},jspb.BinaryReader.prototype.readPackedUint64String=function(){return this.readPackedField_(this.decoder_.readUnsignedVarint64String)},jspb.BinaryReader.prototype.readPackedSint32=function(){return this.readPackedField_(this.decoder_.readZigzagVarint32)},jspb.BinaryReader.prototype.readPackedSint64=function(){return this.readPackedField_(this.decoder_.readZigzagVarint64)},jspb.BinaryReader.prototype.readPackedSint64String=function(){return this.readPackedField_(this.decoder_.readZigzagVarint64String)},jspb.BinaryReader.prototype.readPackedFixed32=function(){return this.readPackedField_(this.decoder_.readUint32)},jspb.BinaryReader.prototype.readPackedFixed64=function(){return this.readPackedField_(this.decoder_.readUint64)},jspb.BinaryReader.prototype.readPackedFixed64String=function(){return this.readPackedField_(this.decoder_.readUint64String)},jspb.BinaryReader.prototype.readPackedSfixed32=function(){return this.readPackedField_(this.decoder_.readInt32)},jspb.BinaryReader.prototype.readPackedSfixed64=function(){return this.readPackedField_(this.decoder_.readInt64)},jspb.BinaryReader.prototype.readPackedSfixed64String=function(){return this.readPackedField_(this.decoder_.readInt64String)},jspb.BinaryReader.prototype.readPackedFloat=function(){return this.readPackedField_(this.decoder_.readFloat)},jspb.BinaryReader.prototype.readPackedDouble=function(){return this.readPackedField_(this.decoder_.readDouble)},jspb.BinaryReader.prototype.readPackedBool=function(){return this.readPackedField_(this.decoder_.readBool)},jspb.BinaryReader.prototype.readPackedEnum=function(){return this.readPackedField_(this.decoder_.readEnum)},jspb.BinaryReader.prototype.readPackedVarintHash64=function(){return this.readPackedField_(this.decoder_.readVarintHash64)},jspb.BinaryReader.prototype.readPackedFixedHash64=function(){return this.readPackedField_(this.decoder_.readFixedHash64)},jspb.Map=function(e,t){this.arr_=e,this.valueCtor_=t,this.map_={},this.arrClean=!0,0<this.arr_.length&&this.loadFromArray_()},jspb.Map.prototype.loadFromArray_=function(){for(var e=0;e<this.arr_.length;e++){var t=this.arr_[e],r=t[0];this.map_[r.toString()]=new jspb.Map.Entry_(r,t[1])}this.arrClean=!0},jspb.Map.prototype.toArray=function(){if(this.arrClean){if(this.valueCtor_){var e,t=this.map_;for(e in t)if(Object.prototype.hasOwnProperty.call(t,e)){var r=t[e].valueWrapper;r&&r.toArray()}}}else{for(this.arr_.length=0,(t=this.stringKeys_()).sort(),e=0;e<t.length;e++){var n=this.map_[t[e]];(r=n.valueWrapper)&&r.toArray(),this.arr_.push([n.key,n.value])}this.arrClean=!0}return this.arr_},jspb.Map.prototype.toObject=function(e,t){for(var r=this.toArray(),n=[],i=0;i<r.length;i++){var g=this.map_[r[i][0].toString()];this.wrapEntry_(g);var s=g.valueWrapper;s?(goog.asserts.assert(t),n.push([g.key,t(e,s)])):n.push([g.key,g.value])}return n},jspb.Map.fromObject=function(e,t,r){t=new jspb.Map([],t);for(var n=0;n<e.length;n++){var i=e[n][0],g=r(e[n][1]);t.set(i,g)}return t},jspb.Map.ArrayIteratorIterable_=function(e){this.idx_=0,this.arr_=e},jspb.Map.ArrayIteratorIterable_.prototype.next=function(){return this.idx_<this.arr_.length?{done:!1,value:this.arr_[this.idx_++]}:{done:!0,value:void 0}},typeof Symbol!="undefined"&&(jspb.Map.ArrayIteratorIterable_.prototype[Symbol.iterator]=function(){return this}),jspb.Map.prototype.getLength=function(){return this.stringKeys_().length},jspb.Map.prototype.clear=function(){this.map_={},this.arrClean=!1},jspb.Map.prototype.del=function(e){e=e.toString();var t=this.map_.hasOwnProperty(e);return delete this.map_[e],this.arrClean=!1,t},jspb.Map.prototype.getEntryList=function(){var e=[],t=this.stringKeys_();t.sort();for(var r=0;r<t.length;r++){var n=this.map_[t[r]];e.push([n.key,n.value])}return e},jspb.Map.prototype.entries=function(){var e=[],t=this.stringKeys_();t.sort();for(var r=0;r<t.length;r++){var n=this.map_[t[r]];e.push([n.key,this.wrapEntry_(n)])}return new jspb.Map.ArrayIteratorIterable_(e)},jspb.Map.prototype.keys=function(){var e=[],t=this.stringKeys_();t.sort();for(var r=0;r<t.length;r++)e.push(this.map_[t[r]].key);return new jspb.Map.ArrayIteratorIterable_(e)},jspb.Map.prototype.values=function(){var e=[],t=this.stringKeys_();t.sort();for(var r=0;r<t.length;r++)e.push(this.wrapEntry_(this.map_[t[r]]));return new jspb.Map.ArrayIteratorIterable_(e)},jspb.Map.prototype.forEach=function(e,t){var r=this.stringKeys_();r.sort();for(var n=0;n<r.length;n++){var i=this.map_[r[n]];e.call(t,this.wrapEntry_(i),i.key,this)}},jspb.Map.prototype.set=function(e,t){var r=new jspb.Map.Entry_(e);return this.valueCtor_?(r.valueWrapper=t,r.value=t.toArray()):r.value=t,this.map_[e.toString()]=r,this.arrClean=!1,this},jspb.Map.prototype.wrapEntry_=function(e){return this.valueCtor_?(e.valueWrapper||(e.valueWrapper=new this.valueCtor_(e.value)),e.valueWrapper):e.value},jspb.Map.prototype.get=function(e){if(e=this.map_[e.toString()])return this.wrapEntry_(e)},jspb.Map.prototype.has=function(e){return e.toString()in this.map_},jspb.Map.prototype.serializeBinary=function(e,t,r,n,i){var g=this.stringKeys_();g.sort();for(var s=0;s<g.length;s++){var o=this.map_[g[s]];t.beginSubMessage(e),r.call(t,1,o.key),this.valueCtor_?n.call(t,2,this.wrapEntry_(o),i):n.call(t,2,o.value),t.endSubMessage()}},jspb.Map.deserializeBinary=function(e,t,r,n,i,g,s){for(;t.nextField()&&!t.isEndGroup();){var o=t.getFieldNumber();o==1?g=r.call(t):o==2&&(e.valueCtor_?(goog.asserts.assert(i),s||(s=new e.valueCtor_),n.call(t,s,i)):s=n.call(t))}goog.asserts.assert(g!=null),goog.asserts.assert(s!=null),e.set(g,s)},jspb.Map.prototype.stringKeys_=function(){var e,t=this.map_,r=[];for(e in t)Object.prototype.hasOwnProperty.call(t,e)&&r.push(e);return r},jspb.Map.Entry_=function(e,t){this.key=e,this.value=t,this.valueWrapper=void 0},jspb.ExtensionFieldInfo=function(e,t,r,n,i){this.fieldIndex=e,this.fieldName=t,this.ctor=r,this.toObjectFn=n,this.isRepeated=i},jspb.ExtensionFieldBinaryInfo=function(e,t,r,n,i,g){this.fieldInfo=e,this.binaryReaderFn=t,this.binaryWriterFn=r,this.binaryMessageSerializeFn=n,this.binaryMessageDeserializeFn=i,this.isPacked=g},jspb.ExtensionFieldInfo.prototype.isMessageType=function(){return!!this.ctor},jspb.Message=function(){},jspb.Message.GENERATE_TO_OBJECT=!0,jspb.Message.GENERATE_FROM_OBJECT=!goog.DISALLOW_TEST_ONLY_CODE,jspb.Message.GENERATE_TO_STRING=!0,jspb.Message.ASSUME_LOCAL_ARRAYS=!1,jspb.Message.SERIALIZE_EMPTY_TRAILING_FIELDS=!0,jspb.Message.SUPPORTS_UINT8ARRAY_=typeof Uint8Array=="function",jspb.Message.prototype.getJsPbMessageId=function(){return this.messageId_},jspb.Message.getIndex_=function(e,t){return t+e.arrayIndexOffset_},jspb.Message.hiddenES6Property_=function(){},jspb.Message.getFieldNumber_=function(e,t){return t-e.arrayIndexOffset_},jspb.Message.initialize=function(e,t,r,n,i,g){if(e.wrappers_=null,t||(t=r?[r]:[]),e.messageId_=r?String(r):void 0,e.arrayIndexOffset_=r===0?-1:0,e.array=t,jspb.Message.initPivotAndExtensionObject_(e,n),e.convertedPrimitiveFields_={},jspb.Message.SERIALIZE_EMPTY_TRAILING_FIELDS||(e.repeatedFields=i),i)for(t=0;t<i.length;t++)(r=i[t])<e.pivot_?(r=jspb.Message.getIndex_(e,r),e.array[r]=e.array[r]||jspb.Message.EMPTY_LIST_SENTINEL_):(jspb.Message.maybeInitEmptyExtensionObject_(e),e.extensionObject_[r]=e.extensionObject_[r]||jspb.Message.EMPTY_LIST_SENTINEL_);if(g&&g.length)for(t=0;t<g.length;t++)jspb.Message.computeOneofCase(e,g[t])},jspb.Message.EMPTY_LIST_SENTINEL_=goog.DEBUG&&Object.freeze?Object.freeze([]):[],jspb.Message.isArray_=function(e){return jspb.Message.ASSUME_LOCAL_ARRAYS?e instanceof Array:Array.isArray(e)},jspb.Message.isExtensionObject_=function(e){return!(e===null||typeof e!="object"||jspb.Message.isArray_(e)||jspb.Message.SUPPORTS_UINT8ARRAY_&&e instanceof Uint8Array)},jspb.Message.initPivotAndExtensionObject_=function(e,t){var r=e.array.length,n=-1;if(r&&(n=r-1,r=e.array[n],jspb.Message.isExtensionObject_(r)))return e.pivot_=jspb.Message.getFieldNumber_(e,n),void(e.extensionObject_=r);-1<t?(e.pivot_=Math.max(t,jspb.Message.getFieldNumber_(e,n+1)),e.extensionObject_=null):e.pivot_=Number.MAX_VALUE},jspb.Message.maybeInitEmptyExtensionObject_=function(e){var t=jspb.Message.getIndex_(e,e.pivot_);e.array[t]||(e.extensionObject_=e.array[t]={})},jspb.Message.toObjectList=function(e,t,r){for(var n=[],i=0;i<e.length;i++)n[i]=t.call(e[i],r,e[i]);return n},jspb.Message.toObjectExtension=function(e,t,r,n,i){for(var g in r){var s=r[g],o=n.call(e,s);if(o!=null){for(var l in s.fieldName)if(s.fieldName.hasOwnProperty(l))break;t[l]=s.toObjectFn?s.isRepeated?jspb.Message.toObjectList(o,s.toObjectFn,i):s.toObjectFn(i,o):o}}},jspb.Message.serializeBinaryExtensions=function(e,t,r,n){for(var i in r){var g=r[i],s=g.fieldInfo;if(!g.binaryWriterFn)throw Error("Message extension present that was generated without binary serialization support");var o=n.call(e,s);if(o!=null)if(s.isMessageType()){if(!g.binaryMessageSerializeFn)throw Error("Message extension present holding submessage without binary support enabled, and message is being serialized to binary format");g.binaryWriterFn.call(t,s.fieldIndex,o,g.binaryMessageSerializeFn)}else g.binaryWriterFn.call(t,s.fieldIndex,o)}},jspb.Message.readBinaryExtension=function(e,t,r,n,i){var g=r[t.getFieldNumber()];if(g){if(r=g.fieldInfo,!g.binaryReaderFn)throw Error("Deserializing extension whose generated code does not support binary format");if(r.isMessageType()){var s=new r.ctor;g.binaryReaderFn.call(t,s,g.binaryMessageDeserializeFn)}else s=g.binaryReaderFn.call(t);r.isRepeated&&!g.isPacked?(t=n.call(e,r))?t.push(s):i.call(e,r,[s]):i.call(e,r,s)}else t.skipField()},jspb.Message.getField=function(e,t){if(t<e.pivot_){t=jspb.Message.getIndex_(e,t);var r=e.array[t];return r===jspb.Message.EMPTY_LIST_SENTINEL_?e.array[t]=[]:r}if(e.extensionObject_)return(r=e.extensionObject_[t])===jspb.Message.EMPTY_LIST_SENTINEL_?e.extensionObject_[t]=[]:r},jspb.Message.getRepeatedField=function(e,t){return jspb.Message.getField(e,t)},jspb.Message.getOptionalFloatingPointField=function(e,t){return(e=jspb.Message.getField(e,t))==null?e:+e},jspb.Message.getBooleanField=function(e,t){return(e=jspb.Message.getField(e,t))==null?e:!!e},jspb.Message.getRepeatedFloatingPointField=function(e,t){var r=jspb.Message.getRepeatedField(e,t);if(e.convertedPrimitiveFields_||(e.convertedPrimitiveFields_={}),!e.convertedPrimitiveFields_[t]){for(var n=0;n<r.length;n++)r[n]=+r[n];e.convertedPrimitiveFields_[t]=!0}return r},jspb.Message.getRepeatedBooleanField=function(e,t){var r=jspb.Message.getRepeatedField(e,t);if(e.convertedPrimitiveFields_||(e.convertedPrimitiveFields_={}),!e.convertedPrimitiveFields_[t]){for(var n=0;n<r.length;n++)r[n]=!!r[n];e.convertedPrimitiveFields_[t]=!0}return r},jspb.Message.bytesAsB64=function(e){return e==null||typeof e=="string"?e:jspb.Message.SUPPORTS_UINT8ARRAY_&&e instanceof Uint8Array?goog.crypt.base64.encodeByteArray(e):(goog.asserts.fail("Cannot coerce to b64 string: "+goog.typeOf(e)),null)},jspb.Message.bytesAsU8=function(e){return e==null||e instanceof Uint8Array?e:typeof e=="string"?goog.crypt.base64.decodeStringToUint8Array(e):(goog.asserts.fail("Cannot coerce to Uint8Array: "+goog.typeOf(e)),null)},jspb.Message.bytesListAsB64=function(e){return jspb.Message.assertConsistentTypes_(e),e.length&&typeof e[0]!="string"?goog.array.map(e,jspb.Message.bytesAsB64):e},jspb.Message.bytesListAsU8=function(e){return jspb.Message.assertConsistentTypes_(e),!e.length||e[0]instanceof Uint8Array?e:goog.array.map(e,jspb.Message.bytesAsU8)},jspb.Message.assertConsistentTypes_=function(e){if(goog.DEBUG&&e&&1<e.length){var t=goog.typeOf(e[0]);goog.array.forEach(e,function(r){goog.typeOf(r)!=t&&goog.asserts.fail("Inconsistent type in JSPB repeated field array. Got "+goog.typeOf(r)+" expected "+t)})}},jspb.Message.getFieldWithDefault=function(e,t,r){return(e=jspb.Message.getField(e,t))==null?r:e},jspb.Message.getBooleanFieldWithDefault=function(e,t,r){return(e=jspb.Message.getBooleanField(e,t))==null?r:e},jspb.Message.getFloatingPointFieldWithDefault=function(e,t,r){return(e=jspb.Message.getOptionalFloatingPointField(e,t))==null?r:e},jspb.Message.getFieldProto3=jspb.Message.getFieldWithDefault,jspb.Message.getMapField=function(e,t,r,n){if(e.wrappers_||(e.wrappers_={}),t in e.wrappers_)return e.wrappers_[t];var i=jspb.Message.getField(e,t);if(!i){if(r)return;i=[],jspb.Message.setField(e,t,i)}return e.wrappers_[t]=new jspb.Map(i,n)},jspb.Message.setField=function(e,t,r){return goog.asserts.assertInstanceof(e,jspb.Message),t<e.pivot_?e.array[jspb.Message.getIndex_(e,t)]=r:(jspb.Message.maybeInitEmptyExtensionObject_(e),e.extensionObject_[t]=r),e},jspb.Message.setProto3IntField=function(e,t,r){return jspb.Message.setFieldIgnoringDefault_(e,t,r,0)},jspb.Message.setProto3FloatField=function(e,t,r){return jspb.Message.setFieldIgnoringDefault_(e,t,r,0)},jspb.Message.setProto3BooleanField=function(e,t,r){return jspb.Message.setFieldIgnoringDefault_(e,t,r,!1)},jspb.Message.setProto3StringField=function(e,t,r){return jspb.Message.setFieldIgnoringDefault_(e,t,r,"")},jspb.Message.setProto3BytesField=function(e,t,r){return jspb.Message.setFieldIgnoringDefault_(e,t,r,"")},jspb.Message.setProto3EnumField=function(e,t,r){return jspb.Message.setFieldIgnoringDefault_(e,t,r,0)},jspb.Message.setProto3StringIntField=function(e,t,r){return jspb.Message.setFieldIgnoringDefault_(e,t,r,"0")},jspb.Message.setFieldIgnoringDefault_=function(e,t,r,n){return goog.asserts.assertInstanceof(e,jspb.Message),r!==n?jspb.Message.setField(e,t,r):t<e.pivot_?e.array[jspb.Message.getIndex_(e,t)]=null:(jspb.Message.maybeInitEmptyExtensionObject_(e),delete e.extensionObject_[t]),e},jspb.Message.addToRepeatedField=function(e,t,r,n){return goog.asserts.assertInstanceof(e,jspb.Message),t=jspb.Message.getRepeatedField(e,t),n!=null?t.splice(n,0,r):t.push(r),e},jspb.Message.setOneofField=function(e,t,r,n){return goog.asserts.assertInstanceof(e,jspb.Message),(r=jspb.Message.computeOneofCase(e,r))&&r!==t&&n!==void 0&&(e.wrappers_&&r in e.wrappers_&&(e.wrappers_[r]=void 0),jspb.Message.setField(e,r,void 0)),jspb.Message.setField(e,t,n)},jspb.Message.computeOneofCase=function(e,t){for(var r,n,i=0;i<t.length;i++){var g=t[i],s=jspb.Message.getField(e,g);s!=null&&(r=g,n=s,jspb.Message.setField(e,g,void 0))}return r?(jspb.Message.setField(e,r,n),r):0},jspb.Message.getWrapperField=function(e,t,r,n){if(e.wrappers_||(e.wrappers_={}),!e.wrappers_[r]){var i=jspb.Message.getField(e,r);(n||i)&&(e.wrappers_[r]=new t(i))}return e.wrappers_[r]},jspb.Message.getRepeatedWrapperField=function(e,t,r){return jspb.Message.wrapRepeatedField_(e,t,r),(t=e.wrappers_[r])==jspb.Message.EMPTY_LIST_SENTINEL_&&(t=e.wrappers_[r]=[]),t},jspb.Message.wrapRepeatedField_=function(e,t,r){if(e.wrappers_||(e.wrappers_={}),!e.wrappers_[r]){for(var n=jspb.Message.getRepeatedField(e,r),i=[],g=0;g<n.length;g++)i[g]=new t(n[g]);e.wrappers_[r]=i}},jspb.Message.setWrapperField=function(e,t,r){goog.asserts.assertInstanceof(e,jspb.Message),e.wrappers_||(e.wrappers_={});var n=r&&r.toArray();return e.wrappers_[t]=r,jspb.Message.setField(e,t,n)},jspb.Message.setOneofWrapperField=function(e,t,r,n){goog.asserts.assertInstanceof(e,jspb.Message),e.wrappers_||(e.wrappers_={});var i=n&&n.toArray();return e.wrappers_[t]=n,jspb.Message.setOneofField(e,t,r,i)},jspb.Message.setRepeatedWrapperField=function(e,t,r){goog.asserts.assertInstanceof(e,jspb.Message),e.wrappers_||(e.wrappers_={}),r=r||[];for(var n=[],i=0;i<r.length;i++)n[i]=r[i].toArray();return e.wrappers_[t]=r,jspb.Message.setField(e,t,n)},jspb.Message.addToRepeatedWrapperField=function(e,t,r,n,i){jspb.Message.wrapRepeatedField_(e,n,t);var g=e.wrappers_[t];return g||(g=e.wrappers_[t]=[]),r=r||new n,e=jspb.Message.getRepeatedField(e,t),i!=null?(g.splice(i,0,r),e.splice(i,0,r.toArray())):(g.push(r),e.push(r.toArray())),r},jspb.Message.toMap=function(e,t,r,n){for(var i={},g=0;g<e.length;g++)i[t.call(e[g])]=r?r.call(e[g],n,e[g]):e[g];return i},jspb.Message.prototype.syncMapFields_=function(){if(this.wrappers_)for(var e in this.wrappers_){var t=this.wrappers_[e];if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]&&t[r].toArray();else t&&t.toArray()}},jspb.Message.prototype.toArray=function(){return this.syncMapFields_(),this.array},jspb.Message.GENERATE_TO_STRING&&(jspb.Message.prototype.toString=function(){return this.syncMapFields_(),this.array.toString()}),jspb.Message.prototype.getExtension=function(e){if(this.extensionObject_){this.wrappers_||(this.wrappers_={});var t=e.fieldIndex;if(e.isRepeated){if(e.isMessageType())return this.wrappers_[t]||(this.wrappers_[t]=goog.array.map(this.extensionObject_[t]||[],function(r){return new e.ctor(r)})),this.wrappers_[t]}else if(e.isMessageType())return!this.wrappers_[t]&&this.extensionObject_[t]&&(this.wrappers_[t]=new e.ctor(this.extensionObject_[t])),this.wrappers_[t];return this.extensionObject_[t]}},jspb.Message.prototype.setExtension=function(e,t){this.wrappers_||(this.wrappers_={}),jspb.Message.maybeInitEmptyExtensionObject_(this);var r=e.fieldIndex;return e.isRepeated?(t=t||[],e.isMessageType()?(this.wrappers_[r]=t,this.extensionObject_[r]=goog.array.map(t,function(n){return n.toArray()})):this.extensionObject_[r]=t):e.isMessageType()?(this.wrappers_[r]=t,this.extensionObject_[r]=t&&t.toArray()):this.extensionObject_[r]=t,this},jspb.Message.difference=function(e,t){if(!(e instanceof t.constructor))throw Error("Messages have different types.");var r=e.toArray();t=t.toArray();var n=[],i=0,g=r.length>t.length?r.length:t.length;for(e.getJsPbMessageId()&&(n[0]=e.getJsPbMessageId(),i=1);i<g;i++)jspb.Message.compareFields(r[i],t[i])||(n[i]=t[i]);return new e.constructor(n)},jspb.Message.equals=function(e,t){return e==t||!(!e||!t)&&e instanceof t.constructor&&jspb.Message.compareFields(e.toArray(),t.toArray())},jspb.Message.compareExtensions=function(e,t){e=e||{},t=t||{};var r,n={};for(r in e)n[r]=0;for(r in t)n[r]=0;for(r in n)if(!jspb.Message.compareFields(e[r],t[r]))return!1;return!0},jspb.Message.compareFields=function(e,t){if(e==t)return!0;if(!goog.isObject(e)||!goog.isObject(t))return!!(typeof e=="number"&&isNaN(e)||typeof t=="number"&&isNaN(t))&&String(e)==String(t);if(e.constructor!=t.constructor)return!1;if(jspb.Message.SUPPORTS_UINT8ARRAY_&&e.constructor===Uint8Array){if(e.length!=t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!=t[r])return!1;return!0}if(e.constructor===Array){var n=void 0,i=void 0,g=Math.max(e.length,t.length);for(r=0;r<g;r++){var s=e[r],o=t[r];if(s&&s.constructor==Object&&(goog.asserts.assert(n===void 0),goog.asserts.assert(r===e.length-1),n=s,s=void 0),o&&o.constructor==Object&&(goog.asserts.assert(i===void 0),goog.asserts.assert(r===t.length-1),i=o,o=void 0),!jspb.Message.compareFields(s,o))return!1}return!n&&!i||(n=n||{},i=i||{},jspb.Message.compareExtensions(n,i))}if(e.constructor===Object)return jspb.Message.compareExtensions(e,t);throw Error("Invalid type in JSPB array")},jspb.Message.prototype.cloneMessage=function(){return jspb.Message.cloneMessage(this)},jspb.Message.prototype.clone=function(){return jspb.Message.cloneMessage(this)},jspb.Message.clone=function(e){return jspb.Message.cloneMessage(e)},jspb.Message.cloneMessage=function(e){return new e.constructor(jspb.Message.clone_(e.toArray()))},jspb.Message.copyInto=function(e,t){goog.asserts.assertInstanceof(e,jspb.Message),goog.asserts.assertInstanceof(t,jspb.Message),goog.asserts.assert(e.constructor==t.constructor,"Copy source and target message should have the same type."),e=jspb.Message.clone(e);for(var r=t.toArray(),n=e.toArray(),i=r.length=0;i<n.length;i++)r[i]=n[i];t.wrappers_=e.wrappers_,t.extensionObject_=e.extensionObject_},jspb.Message.clone_=function(e){if(Array.isArray(e)){for(var t=Array(e.length),r=0;r<e.length;r++){var n=e[r];n!=null&&(t[r]=typeof n=="object"?jspb.Message.clone_(goog.asserts.assert(n)):n)}return t}if(jspb.Message.SUPPORTS_UINT8ARRAY_&&e instanceof Uint8Array)return new Uint8Array(e);for(r in t={},e)(n=e[r])!=null&&(t[r]=typeof n=="object"?jspb.Message.clone_(goog.asserts.assert(n)):n);return t},jspb.Message.registerMessageType=function(e,t){t.messageId=e},jspb.Message.messageSetExtensions={},jspb.Message.messageSetExtensionsBinary={},jspb.arith={},jspb.arith.UInt64=function(e,t){this.lo=e,this.hi=t},jspb.arith.UInt64.prototype.cmp=function(e){return this.hi<e.hi||this.hi==e.hi&&this.lo<e.lo?-1:this.hi==e.hi&&this.lo==e.lo?0:1},jspb.arith.UInt64.prototype.rightShift=function(){return new jspb.arith.UInt64((this.lo>>>1|(1&this.hi)<<31)>>>0,this.hi>>>1>>>0)},jspb.arith.UInt64.prototype.leftShift=function(){return new jspb.arith.UInt64(this.lo<<1>>>0,(this.hi<<1|this.lo>>>31)>>>0)},jspb.arith.UInt64.prototype.msb=function(){return!!(2147483648&this.hi)},jspb.arith.UInt64.prototype.lsb=function(){return!!(1&this.lo)},jspb.arith.UInt64.prototype.zero=function(){return this.lo==0&&this.hi==0},jspb.arith.UInt64.prototype.add=function(e){return new jspb.arith.UInt64((this.lo+e.lo&4294967295)>>>0>>>0,((this.hi+e.hi&4294967295)>>>0)+(4294967296<=this.lo+e.lo?1:0)>>>0)},jspb.arith.UInt64.prototype.sub=function(e){return new jspb.arith.UInt64((this.lo-e.lo&4294967295)>>>0>>>0,((this.hi-e.hi&4294967295)>>>0)-(0>this.lo-e.lo?1:0)>>>0)},jspb.arith.UInt64.mul32x32=function(e,t){var r=65535&e,n=65535&t,i=t>>>16;for(t=r*n+65536*(r*i&65535)+65536*((e>>>=16)*n&65535),r=e*i+(r*i>>>16)+(e*n>>>16);4294967296<=t;)t-=4294967296,r+=1;return new jspb.arith.UInt64(t>>>0,r>>>0)},jspb.arith.UInt64.prototype.mul=function(e){var t=jspb.arith.UInt64.mul32x32(this.lo,e);return(e=jspb.arith.UInt64.mul32x32(this.hi,e)).hi=e.lo,e.lo=0,t.add(e)},jspb.arith.UInt64.prototype.div=function(e){if(e==0)return[];var t=new jspb.arith.UInt64(0,0),r=new jspb.arith.UInt64(this.lo,this.hi);e=new jspb.arith.UInt64(e,0);for(var n=new jspb.arith.UInt64(1,0);!e.msb();)e=e.leftShift(),n=n.leftShift();for(;!n.zero();)0>=e.cmp(r)&&(t=t.add(n),r=r.sub(e)),e=e.rightShift(),n=n.rightShift();return[t,r]},jspb.arith.UInt64.prototype.toString=function(){for(var e="",t=this;!t.zero();){var r=(t=t.div(10))[0];e=t[1].lo+e,t=r}return e==""&&(e="0"),e},jspb.arith.UInt64.fromString=function(e){for(var t=new jspb.arith.UInt64(0,0),r=new jspb.arith.UInt64(0,0),n=0;n<e.length;n++){if("0">e[n]||"9"<e[n])return null;var i=parseInt(e[n],10);r.lo=i,t=t.mul(10).add(r)}return t},jspb.arith.UInt64.prototype.clone=function(){return new jspb.arith.UInt64(this.lo,this.hi)},jspb.arith.Int64=function(e,t){this.lo=e,this.hi=t},jspb.arith.Int64.prototype.add=function(e){return new jspb.arith.Int64((this.lo+e.lo&4294967295)>>>0>>>0,((this.hi+e.hi&4294967295)>>>0)+(4294967296<=this.lo+e.lo?1:0)>>>0)},jspb.arith.Int64.prototype.sub=function(e){return new jspb.arith.Int64((this.lo-e.lo&4294967295)>>>0>>>0,((this.hi-e.hi&4294967295)>>>0)-(0>this.lo-e.lo?1:0)>>>0)},jspb.arith.Int64.prototype.clone=function(){return new jspb.arith.Int64(this.lo,this.hi)},jspb.arith.Int64.prototype.toString=function(){var e=(2147483648&this.hi)!=0,t=new jspb.arith.UInt64(this.lo,this.hi);return e&&(t=new jspb.arith.UInt64(0,0).sub(t)),(e?"-":"")+t.toString()},jspb.arith.Int64.fromString=function(e){var t=0<e.length&&e[0]=="-";return t&&(e=e.substring(1)),(e=jspb.arith.UInt64.fromString(e))===null?null:(t&&(e=new jspb.arith.UInt64(0,0).sub(e)),new jspb.arith.Int64(e.lo,e.hi))},jspb.BinaryEncoder=function(){this.buffer_=[]},jspb.BinaryEncoder.prototype.length=function(){return this.buffer_.length},jspb.BinaryEncoder.prototype.end=function(){var e=this.buffer_;return this.buffer_=[],e},jspb.BinaryEncoder.prototype.writeSplitVarint64=function(e,t){for(goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(t==Math.floor(t)),goog.asserts.assert(0<=e&&e<jspb.BinaryConstants.TWO_TO_32),goog.asserts.assert(0<=t&&t<jspb.BinaryConstants.TWO_TO_32);0<t||127<e;)this.buffer_.push(127&e|128),e=(e>>>7|t<<25)>>>0,t>>>=7;this.buffer_.push(e)},jspb.BinaryEncoder.prototype.writeSplitFixed64=function(e,t){goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(t==Math.floor(t)),goog.asserts.assert(0<=e&&e<jspb.BinaryConstants.TWO_TO_32),goog.asserts.assert(0<=t&&t<jspb.BinaryConstants.TWO_TO_32),this.writeUint32(e),this.writeUint32(t)},jspb.BinaryEncoder.prototype.writeUnsignedVarint32=function(e){for(goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(0<=e&&e<jspb.BinaryConstants.TWO_TO_32);127<e;)this.buffer_.push(127&e|128),e>>>=7;this.buffer_.push(e)},jspb.BinaryEncoder.prototype.writeSignedVarint32=function(e){if(goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(e>=-jspb.BinaryConstants.TWO_TO_31&&e<jspb.BinaryConstants.TWO_TO_31),0<=e)this.writeUnsignedVarint32(e);else{for(var t=0;9>t;t++)this.buffer_.push(127&e|128),e>>=7;this.buffer_.push(1)}},jspb.BinaryEncoder.prototype.writeUnsignedVarint64=function(e){goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(0<=e&&e<jspb.BinaryConstants.TWO_TO_64),jspb.utils.splitInt64(e),this.writeSplitVarint64(jspb.utils.split64Low,jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeSignedVarint64=function(e){goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(e>=-jspb.BinaryConstants.TWO_TO_63&&e<jspb.BinaryConstants.TWO_TO_63),jspb.utils.splitInt64(e),this.writeSplitVarint64(jspb.utils.split64Low,jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeZigzagVarint32=function(e){goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(e>=-jspb.BinaryConstants.TWO_TO_31&&e<jspb.BinaryConstants.TWO_TO_31),this.writeUnsignedVarint32((e<<1^e>>31)>>>0)},jspb.BinaryEncoder.prototype.writeZigzagVarint64=function(e){goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(e>=-jspb.BinaryConstants.TWO_TO_63&&e<jspb.BinaryConstants.TWO_TO_63),jspb.utils.splitZigzag64(e),this.writeSplitVarint64(jspb.utils.split64Low,jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeZigzagVarint64String=function(e){this.writeZigzagVarintHash64(jspb.utils.decimalStringToHash64(e))},jspb.BinaryEncoder.prototype.writeZigzagVarintHash64=function(e){var t=this;jspb.utils.splitHash64(e),jspb.utils.toZigzag64(jspb.utils.split64Low,jspb.utils.split64High,function(r,n){t.writeSplitVarint64(r>>>0,n>>>0)})},jspb.BinaryEncoder.prototype.writeUint8=function(e){goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(0<=e&&256>e),this.buffer_.push(e>>>0&255)},jspb.BinaryEncoder.prototype.writeUint16=function(e){goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(0<=e&&65536>e),this.buffer_.push(e>>>0&255),this.buffer_.push(e>>>8&255)},jspb.BinaryEncoder.prototype.writeUint32=function(e){goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(0<=e&&e<jspb.BinaryConstants.TWO_TO_32),this.buffer_.push(e>>>0&255),this.buffer_.push(e>>>8&255),this.buffer_.push(e>>>16&255),this.buffer_.push(e>>>24&255)},jspb.BinaryEncoder.prototype.writeUint64=function(e){goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(0<=e&&e<jspb.BinaryConstants.TWO_TO_64),jspb.utils.splitUint64(e),this.writeUint32(jspb.utils.split64Low),this.writeUint32(jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeInt8=function(e){goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(-128<=e&&128>e),this.buffer_.push(e>>>0&255)},jspb.BinaryEncoder.prototype.writeInt16=function(e){goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(-32768<=e&&32768>e),this.buffer_.push(e>>>0&255),this.buffer_.push(e>>>8&255)},jspb.BinaryEncoder.prototype.writeInt32=function(e){goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(e>=-jspb.BinaryConstants.TWO_TO_31&&e<jspb.BinaryConstants.TWO_TO_31),this.buffer_.push(e>>>0&255),this.buffer_.push(e>>>8&255),this.buffer_.push(e>>>16&255),this.buffer_.push(e>>>24&255)},jspb.BinaryEncoder.prototype.writeInt64=function(e){goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(e>=-jspb.BinaryConstants.TWO_TO_63&&e<jspb.BinaryConstants.TWO_TO_63),jspb.utils.splitInt64(e),this.writeSplitFixed64(jspb.utils.split64Low,jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeInt64String=function(e){goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(+e>=-jspb.BinaryConstants.TWO_TO_63&&+e<jspb.BinaryConstants.TWO_TO_63),jspb.utils.splitHash64(jspb.utils.decimalStringToHash64(e)),this.writeSplitFixed64(jspb.utils.split64Low,jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeFloat=function(e){goog.asserts.assert(1/0===e||-1/0===e||isNaN(e)||e>=-jspb.BinaryConstants.FLOAT32_MAX&&e<=jspb.BinaryConstants.FLOAT32_MAX),jspb.utils.splitFloat32(e),this.writeUint32(jspb.utils.split64Low)},jspb.BinaryEncoder.prototype.writeDouble=function(e){goog.asserts.assert(1/0===e||-1/0===e||isNaN(e)||e>=-jspb.BinaryConstants.FLOAT64_MAX&&e<=jspb.BinaryConstants.FLOAT64_MAX),jspb.utils.splitFloat64(e),this.writeUint32(jspb.utils.split64Low),this.writeUint32(jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeBool=function(e){goog.asserts.assert(typeof e=="boolean"||typeof e=="number"),this.buffer_.push(e?1:0)},jspb.BinaryEncoder.prototype.writeEnum=function(e){goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(e>=-jspb.BinaryConstants.TWO_TO_31&&e<jspb.BinaryConstants.TWO_TO_31),this.writeSignedVarint32(e)},jspb.BinaryEncoder.prototype.writeBytes=function(e){this.buffer_.push.apply(this.buffer_,e)},jspb.BinaryEncoder.prototype.writeVarintHash64=function(e){jspb.utils.splitHash64(e),this.writeSplitVarint64(jspb.utils.split64Low,jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeFixedHash64=function(e){jspb.utils.splitHash64(e),this.writeUint32(jspb.utils.split64Low),this.writeUint32(jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeString=function(e){for(var t=this.buffer_.length,r=0;r<e.length;r++){var n=e.charCodeAt(r);if(128>n)this.buffer_.push(n);else if(2048>n)this.buffer_.push(n>>6|192),this.buffer_.push(63&n|128);else if(65536>n)if(55296<=n&&56319>=n&&r+1<e.length){var i=e.charCodeAt(r+1);56320<=i&&57343>=i&&(n=1024*(n-55296)+i-56320+65536,this.buffer_.push(n>>18|240),this.buffer_.push(n>>12&63|128),this.buffer_.push(n>>6&63|128),this.buffer_.push(63&n|128),r++)}else this.buffer_.push(n>>12|224),this.buffer_.push(n>>6&63|128),this.buffer_.push(63&n|128)}return this.buffer_.length-t},jspb.BinaryWriter=function(){this.blocks_=[],this.totalLength_=0,this.encoder_=new jspb.BinaryEncoder,this.bookmarks_=[]},jspb.BinaryWriter.prototype.appendUint8Array_=function(e){var t=this.encoder_.end();this.blocks_.push(t),this.blocks_.push(e),this.totalLength_+=t.length+e.length},jspb.BinaryWriter.prototype.beginDelimited_=function(e){return this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.DELIMITED),e=this.encoder_.end(),this.blocks_.push(e),this.totalLength_+=e.length,e.push(this.totalLength_),e},jspb.BinaryWriter.prototype.endDelimited_=function(e){var t=e.pop();for(t=this.totalLength_+this.encoder_.length()-t,goog.asserts.assert(0<=t);127<t;)e.push(127&t|128),t>>>=7,this.totalLength_++;e.push(t),this.totalLength_++},jspb.BinaryWriter.prototype.writeSerializedMessage=function(e,t,r){this.appendUint8Array_(e.subarray(t,r))},jspb.BinaryWriter.prototype.maybeWriteSerializedMessage=function(e,t,r){e!=null&&t!=null&&r!=null&&this.writeSerializedMessage(e,t,r)},jspb.BinaryWriter.prototype.reset=function(){this.blocks_=[],this.encoder_.end(),this.totalLength_=0,this.bookmarks_=[]},jspb.BinaryWriter.prototype.getResultBuffer=function(){goog.asserts.assert(this.bookmarks_.length==0);for(var e=new Uint8Array(this.totalLength_+this.encoder_.length()),t=this.blocks_,r=t.length,n=0,i=0;i<r;i++){var g=t[i];e.set(g,n),n+=g.length}return t=this.encoder_.end(),e.set(t,n),n+=t.length,goog.asserts.assert(n==e.length),this.blocks_=[e],e},jspb.BinaryWriter.prototype.getResultBase64String=function(e){return goog.crypt.base64.encodeByteArray(this.getResultBuffer(),e)},jspb.BinaryWriter.prototype.beginSubMessage=function(e){this.bookmarks_.push(this.beginDelimited_(e))},jspb.BinaryWriter.prototype.endSubMessage=function(){goog.asserts.assert(0<=this.bookmarks_.length),this.endDelimited_(this.bookmarks_.pop())},jspb.BinaryWriter.prototype.writeFieldHeader_=function(e,t){goog.asserts.assert(1<=e&&e==Math.floor(e)),this.encoder_.writeUnsignedVarint32(8*e+t)},jspb.BinaryWriter.prototype.writeAny=function(e,t,r){var n=jspb.BinaryConstants.FieldType;switch(e){case n.DOUBLE:this.writeDouble(t,r);break;case n.FLOAT:this.writeFloat(t,r);break;case n.INT64:this.writeInt64(t,r);break;case n.UINT64:this.writeUint64(t,r);break;case n.INT32:this.writeInt32(t,r);break;case n.FIXED64:this.writeFixed64(t,r);break;case n.FIXED32:this.writeFixed32(t,r);break;case n.BOOL:this.writeBool(t,r);break;case n.STRING:this.writeString(t,r);break;case n.GROUP:goog.asserts.fail("Group field type not supported in writeAny()");break;case n.MESSAGE:goog.asserts.fail("Message field type not supported in writeAny()");break;case n.BYTES:this.writeBytes(t,r);break;case n.UINT32:this.writeUint32(t,r);break;case n.ENUM:this.writeEnum(t,r);break;case n.SFIXED32:this.writeSfixed32(t,r);break;case n.SFIXED64:this.writeSfixed64(t,r);break;case n.SINT32:this.writeSint32(t,r);break;case n.SINT64:this.writeSint64(t,r);break;case n.FHASH64:this.writeFixedHash64(t,r);break;case n.VHASH64:this.writeVarintHash64(t,r);break;default:goog.asserts.fail("Invalid field type in writeAny()")}},jspb.BinaryWriter.prototype.writeUnsignedVarint32_=function(e,t){t!=null&&(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeUnsignedVarint32(t))},jspb.BinaryWriter.prototype.writeSignedVarint32_=function(e,t){t!=null&&(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSignedVarint32(t))},jspb.BinaryWriter.prototype.writeUnsignedVarint64_=function(e,t){t!=null&&(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeUnsignedVarint64(t))},jspb.BinaryWriter.prototype.writeSignedVarint64_=function(e,t){t!=null&&(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSignedVarint64(t))},jspb.BinaryWriter.prototype.writeZigzagVarint32_=function(e,t){t!=null&&(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeZigzagVarint32(t))},jspb.BinaryWriter.prototype.writeZigzagVarint64_=function(e,t){t!=null&&(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeZigzagVarint64(t))},jspb.BinaryWriter.prototype.writeZigzagVarint64String_=function(e,t){t!=null&&(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeZigzagVarint64String(t))},jspb.BinaryWriter.prototype.writeZigzagVarintHash64_=function(e,t){t!=null&&(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeZigzagVarintHash64(t))},jspb.BinaryWriter.prototype.writeInt32=function(e,t){t!=null&&(goog.asserts.assert(t>=-jspb.BinaryConstants.TWO_TO_31&&t<jspb.BinaryConstants.TWO_TO_31),this.writeSignedVarint32_(e,t))},jspb.BinaryWriter.prototype.writeInt32String=function(e,t){t!=null&&(t=parseInt(t,10),goog.asserts.assert(t>=-jspb.BinaryConstants.TWO_TO_31&&t<jspb.BinaryConstants.TWO_TO_31),this.writeSignedVarint32_(e,t))},jspb.BinaryWriter.prototype.writeInt64=function(e,t){t!=null&&(goog.asserts.assert(t>=-jspb.BinaryConstants.TWO_TO_63&&t<jspb.BinaryConstants.TWO_TO_63),this.writeSignedVarint64_(e,t))},jspb.BinaryWriter.prototype.writeInt64String=function(e,t){t!=null&&(t=jspb.arith.Int64.fromString(t),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSplitVarint64(t.lo,t.hi))},jspb.BinaryWriter.prototype.writeUint32=function(e,t){t!=null&&(goog.asserts.assert(0<=t&&t<jspb.BinaryConstants.TWO_TO_32),this.writeUnsignedVarint32_(e,t))},jspb.BinaryWriter.prototype.writeUint32String=function(e,t){t!=null&&(t=parseInt(t,10),goog.asserts.assert(0<=t&&t<jspb.BinaryConstants.TWO_TO_32),this.writeUnsignedVarint32_(e,t))},jspb.BinaryWriter.prototype.writeUint64=function(e,t){t!=null&&(goog.asserts.assert(0<=t&&t<jspb.BinaryConstants.TWO_TO_64),this.writeUnsignedVarint64_(e,t))},jspb.BinaryWriter.prototype.writeUint64String=function(e,t){t!=null&&(t=jspb.arith.UInt64.fromString(t),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSplitVarint64(t.lo,t.hi))},jspb.BinaryWriter.prototype.writeSint32=function(e,t){t!=null&&(goog.asserts.assert(t>=-jspb.BinaryConstants.TWO_TO_31&&t<jspb.BinaryConstants.TWO_TO_31),this.writeZigzagVarint32_(e,t))},jspb.BinaryWriter.prototype.writeSint64=function(e,t){t!=null&&(goog.asserts.assert(t>=-jspb.BinaryConstants.TWO_TO_63&&t<jspb.BinaryConstants.TWO_TO_63),this.writeZigzagVarint64_(e,t))},jspb.BinaryWriter.prototype.writeSintHash64=function(e,t){t!=null&&this.writeZigzagVarintHash64_(e,t)},jspb.BinaryWriter.prototype.writeSint64String=function(e,t){t!=null&&this.writeZigzagVarint64String_(e,t)},jspb.BinaryWriter.prototype.writeFixed32=function(e,t){t!=null&&(goog.asserts.assert(0<=t&&t<jspb.BinaryConstants.TWO_TO_32),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.FIXED32),this.encoder_.writeUint32(t))},jspb.BinaryWriter.prototype.writeFixed64=function(e,t){t!=null&&(goog.asserts.assert(0<=t&&t<jspb.BinaryConstants.TWO_TO_64),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeUint64(t))},jspb.BinaryWriter.prototype.writeFixed64String=function(e,t){t!=null&&(t=jspb.arith.UInt64.fromString(t),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeSplitFixed64(t.lo,t.hi))},jspb.BinaryWriter.prototype.writeSfixed32=function(e,t){t!=null&&(goog.asserts.assert(t>=-jspb.BinaryConstants.TWO_TO_31&&t<jspb.BinaryConstants.TWO_TO_31),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.FIXED32),this.encoder_.writeInt32(t))},jspb.BinaryWriter.prototype.writeSfixed64=function(e,t){t!=null&&(goog.asserts.assert(t>=-jspb.BinaryConstants.TWO_TO_63&&t<jspb.BinaryConstants.TWO_TO_63),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeInt64(t))},jspb.BinaryWriter.prototype.writeSfixed64String=function(e,t){t!=null&&(t=jspb.arith.Int64.fromString(t),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeSplitFixed64(t.lo,t.hi))},jspb.BinaryWriter.prototype.writeFloat=function(e,t){t!=null&&(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.FIXED32),this.encoder_.writeFloat(t))},jspb.BinaryWriter.prototype.writeDouble=function(e,t){t!=null&&(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeDouble(t))},jspb.BinaryWriter.prototype.writeBool=function(e,t){t!=null&&(goog.asserts.assert(typeof t=="boolean"||typeof t=="number"),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeBool(t))},jspb.BinaryWriter.prototype.writeEnum=function(e,t){t!=null&&(goog.asserts.assert(t>=-jspb.BinaryConstants.TWO_TO_31&&t<jspb.BinaryConstants.TWO_TO_31),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSignedVarint32(t))},jspb.BinaryWriter.prototype.writeString=function(e,t){t!=null&&(e=this.beginDelimited_(e),this.encoder_.writeString(t),this.endDelimited_(e))},jspb.BinaryWriter.prototype.writeBytes=function(e,t){t!=null&&(t=jspb.utils.byteSourceToUint8Array(t),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(t.length),this.appendUint8Array_(t))},jspb.BinaryWriter.prototype.writeMessage=function(e,t,r){t!=null&&(e=this.beginDelimited_(e),r(t,this),this.endDelimited_(e))},jspb.BinaryWriter.prototype.writeMessageSet=function(e,t,r){t!=null&&(this.writeFieldHeader_(1,jspb.BinaryConstants.WireType.START_GROUP),this.writeFieldHeader_(2,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSignedVarint32(e),e=this.beginDelimited_(3),r(t,this),this.endDelimited_(e),this.writeFieldHeader_(1,jspb.BinaryConstants.WireType.END_GROUP))},jspb.BinaryWriter.prototype.writeGroup=function(e,t,r){t!=null&&(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.START_GROUP),r(t,this),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.END_GROUP))},jspb.BinaryWriter.prototype.writeFixedHash64=function(e,t){t!=null&&(goog.asserts.assert(t.length==8),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeFixedHash64(t))},jspb.BinaryWriter.prototype.writeVarintHash64=function(e,t){t!=null&&(goog.asserts.assert(t.length==8),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeVarintHash64(t))},jspb.BinaryWriter.prototype.writeSplitFixed64=function(e,t,r){this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeSplitFixed64(t,r)},jspb.BinaryWriter.prototype.writeSplitVarint64=function(e,t,r){this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSplitVarint64(t,r)},jspb.BinaryWriter.prototype.writeSplitZigzagVarint64=function(e,t,r){this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT);var n=this.encoder_;jspb.utils.toZigzag64(t,r,function(i,g){n.writeSplitVarint64(i>>>0,g>>>0)})},jspb.BinaryWriter.prototype.writeRepeatedInt32=function(e,t){if(t!=null)for(var r=0;r<t.length;r++)this.writeSignedVarint32_(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedInt32String=function(e,t){if(t!=null)for(var r=0;r<t.length;r++)this.writeInt32String(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedInt64=function(e,t){if(t!=null)for(var r=0;r<t.length;r++)this.writeSignedVarint64_(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedSplitFixed64=function(e,t,r,n){if(t!=null)for(var i=0;i<t.length;i++)this.writeSplitFixed64(e,r(t[i]),n(t[i]))},jspb.BinaryWriter.prototype.writeRepeatedSplitVarint64=function(e,t,r,n){if(t!=null)for(var i=0;i<t.length;i++)this.writeSplitVarint64(e,r(t[i]),n(t[i]))},jspb.BinaryWriter.prototype.writeRepeatedSplitZigzagVarint64=function(e,t,r,n){if(t!=null)for(var i=0;i<t.length;i++)this.writeSplitZigzagVarint64(e,r(t[i]),n(t[i]))},jspb.BinaryWriter.prototype.writeRepeatedInt64String=function(e,t){if(t!=null)for(var r=0;r<t.length;r++)this.writeInt64String(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedUint32=function(e,t){if(t!=null)for(var r=0;r<t.length;r++)this.writeUnsignedVarint32_(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedUint32String=function(e,t){if(t!=null)for(var r=0;r<t.length;r++)this.writeUint32String(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedUint64=function(e,t){if(t!=null)for(var r=0;r<t.length;r++)this.writeUnsignedVarint64_(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedUint64String=function(e,t){if(t!=null)for(var r=0;r<t.length;r++)this.writeUint64String(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedSint32=function(e,t){if(t!=null)for(var r=0;r<t.length;r++)this.writeZigzagVarint32_(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedSint64=function(e,t){if(t!=null)for(var r=0;r<t.length;r++)this.writeZigzagVarint64_(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedSint64String=function(e,t){if(t!=null)for(var r=0;r<t.length;r++)this.writeZigzagVarint64String_(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedSintHash64=function(e,t){if(t!=null)for(var r=0;r<t.length;r++)this.writeZigzagVarintHash64_(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedFixed32=function(e,t){if(t!=null)for(var r=0;r<t.length;r++)this.writeFixed32(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedFixed64=function(e,t){if(t!=null)for(var r=0;r<t.length;r++)this.writeFixed64(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedFixed64String=function(e,t){if(t!=null)for(var r=0;r<t.length;r++)this.writeFixed64String(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedSfixed32=function(e,t){if(t!=null)for(var r=0;r<t.length;r++)this.writeSfixed32(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedSfixed64=function(e,t){if(t!=null)for(var r=0;r<t.length;r++)this.writeSfixed64(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedSfixed64String=function(e,t){if(t!=null)for(var r=0;r<t.length;r++)this.writeSfixed64String(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedFloat=function(e,t){if(t!=null)for(var r=0;r<t.length;r++)this.writeFloat(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedDouble=function(e,t){if(t!=null)for(var r=0;r<t.length;r++)this.writeDouble(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedBool=function(e,t){if(t!=null)for(var r=0;r<t.length;r++)this.writeBool(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedEnum=function(e,t){if(t!=null)for(var r=0;r<t.length;r++)this.writeEnum(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedString=function(e,t){if(t!=null)for(var r=0;r<t.length;r++)this.writeString(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedBytes=function(e,t){if(t!=null)for(var r=0;r<t.length;r++)this.writeBytes(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedMessage=function(e,t,r){if(t!=null)for(var n=0;n<t.length;n++){var i=this.beginDelimited_(e);r(t[n],this),this.endDelimited_(i)}},jspb.BinaryWriter.prototype.writeRepeatedGroup=function(e,t,r){if(t!=null)for(var n=0;n<t.length;n++)this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.START_GROUP),r(t[n],this),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.END_GROUP)},jspb.BinaryWriter.prototype.writeRepeatedFixedHash64=function(e,t){if(t!=null)for(var r=0;r<t.length;r++)this.writeFixedHash64(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedVarintHash64=function(e,t){if(t!=null)for(var r=0;r<t.length;r++)this.writeVarintHash64(e,t[r])},jspb.BinaryWriter.prototype.writePackedInt32=function(e,t){if(t!=null&&t.length){e=this.beginDelimited_(e);for(var r=0;r<t.length;r++)this.encoder_.writeSignedVarint32(t[r]);this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedInt32String=function(e,t){if(t!=null&&t.length){e=this.beginDelimited_(e);for(var r=0;r<t.length;r++)this.encoder_.writeSignedVarint32(parseInt(t[r],10));this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedInt64=function(e,t){if(t!=null&&t.length){e=this.beginDelimited_(e);for(var r=0;r<t.length;r++)this.encoder_.writeSignedVarint64(t[r]);this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedSplitFixed64=function(e,t,r,n){if(t!=null){e=this.beginDelimited_(e);for(var i=0;i<t.length;i++)this.encoder_.writeSplitFixed64(r(t[i]),n(t[i]));this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedSplitVarint64=function(e,t,r,n){if(t!=null){e=this.beginDelimited_(e);for(var i=0;i<t.length;i++)this.encoder_.writeSplitVarint64(r(t[i]),n(t[i]));this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedSplitZigzagVarint64=function(e,t,r,n){if(t!=null){e=this.beginDelimited_(e);for(var i=this.encoder_,g=0;g<t.length;g++)jspb.utils.toZigzag64(r(t[g]),n(t[g]),function(s,o){i.writeSplitVarint64(s>>>0,o>>>0)});this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedInt64String=function(e,t){if(t!=null&&t.length){e=this.beginDelimited_(e);for(var r=0;r<t.length;r++){var n=jspb.arith.Int64.fromString(t[r]);this.encoder_.writeSplitVarint64(n.lo,n.hi)}this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedUint32=function(e,t){if(t!=null&&t.length){e=this.beginDelimited_(e);for(var r=0;r<t.length;r++)this.encoder_.writeUnsignedVarint32(t[r]);this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedUint32String=function(e,t){if(t!=null&&t.length){e=this.beginDelimited_(e);for(var r=0;r<t.length;r++)this.encoder_.writeUnsignedVarint32(parseInt(t[r],10));this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedUint64=function(e,t){if(t!=null&&t.length){e=this.beginDelimited_(e);for(var r=0;r<t.length;r++)this.encoder_.writeUnsignedVarint64(t[r]);this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedUint64String=function(e,t){if(t!=null&&t.length){e=this.beginDelimited_(e);for(var r=0;r<t.length;r++){var n=jspb.arith.UInt64.fromString(t[r]);this.encoder_.writeSplitVarint64(n.lo,n.hi)}this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedSint32=function(e,t){if(t!=null&&t.length){e=this.beginDelimited_(e);for(var r=0;r<t.length;r++)this.encoder_.writeZigzagVarint32(t[r]);this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedSint64=function(e,t){if(t!=null&&t.length){e=this.beginDelimited_(e);for(var r=0;r<t.length;r++)this.encoder_.writeZigzagVarint64(t[r]);this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedSint64String=function(e,t){if(t!=null&&t.length){e=this.beginDelimited_(e);for(var r=0;r<t.length;r++)this.encoder_.writeZigzagVarintHash64(jspb.utils.decimalStringToHash64(t[r]));this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedSintHash64=function(e,t){if(t!=null&&t.length){e=this.beginDelimited_(e);for(var r=0;r<t.length;r++)this.encoder_.writeZigzagVarintHash64(t[r]);this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedFixed32=function(e,t){if(t!=null&&t.length)for(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(4*t.length),e=0;e<t.length;e++)this.encoder_.writeUint32(t[e])},jspb.BinaryWriter.prototype.writePackedFixed64=function(e,t){if(t!=null&&t.length)for(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*t.length),e=0;e<t.length;e++)this.encoder_.writeUint64(t[e])},jspb.BinaryWriter.prototype.writePackedFixed64String=function(e,t){if(t!=null&&t.length)for(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*t.length),e=0;e<t.length;e++){var r=jspb.arith.UInt64.fromString(t[e]);this.encoder_.writeSplitFixed64(r.lo,r.hi)}},jspb.BinaryWriter.prototype.writePackedSfixed32=function(e,t){if(t!=null&&t.length)for(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(4*t.length),e=0;e<t.length;e++)this.encoder_.writeInt32(t[e])},jspb.BinaryWriter.prototype.writePackedSfixed64=function(e,t){if(t!=null&&t.length)for(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*t.length),e=0;e<t.length;e++)this.encoder_.writeInt64(t[e])},jspb.BinaryWriter.prototype.writePackedSfixed64String=function(e,t){if(t!=null&&t.length)for(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*t.length),e=0;e<t.length;e++)this.encoder_.writeInt64String(t[e])},jspb.BinaryWriter.prototype.writePackedFloat=function(e,t){if(t!=null&&t.length)for(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(4*t.length),e=0;e<t.length;e++)this.encoder_.writeFloat(t[e])},jspb.BinaryWriter.prototype.writePackedDouble=function(e,t){if(t!=null&&t.length)for(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*t.length),e=0;e<t.length;e++)this.encoder_.writeDouble(t[e])},jspb.BinaryWriter.prototype.writePackedBool=function(e,t){if(t!=null&&t.length)for(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(t.length),e=0;e<t.length;e++)this.encoder_.writeBool(t[e])},jspb.BinaryWriter.prototype.writePackedEnum=function(e,t){if(t!=null&&t.length){e=this.beginDelimited_(e);for(var r=0;r<t.length;r++)this.encoder_.writeEnum(t[r]);this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedFixedHash64=function(e,t){if(t!=null&&t.length)for(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*t.length),e=0;e<t.length;e++)this.encoder_.writeFixedHash64(t[e])},jspb.BinaryWriter.prototype.writePackedVarintHash64=function(e,t){if(t!=null&&t.length){e=this.beginDelimited_(e);for(var r=0;r<t.length;r++)this.encoder_.writeVarintHash64(t[r]);this.endDelimited_(e)}},jspb.Export={},exports.Map=jspb.Map,exports.Message=jspb.Message,exports.BinaryReader=jspb.BinaryReader,exports.BinaryWriter=jspb.BinaryWriter,exports.ExtensionFieldInfo=jspb.ExtensionFieldInfo,exports.ExtensionFieldBinaryInfo=jspb.ExtensionFieldBinaryInfo,exports.exportSymbol=goog.exportSymbol,exports.inherits=goog.inherits,exports.object={extend:goog.object.extend},exports.typeOf=goog.typeOf}).call(this,__webpack_require__(5),__webpack_require__(4).Buffer)},function(e,t){var r=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof window.msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto);if(r){var n=new Uint8Array(16);e.exports=function(){return r(n),n}}else{var i=new Array(16);e.exports=function(){for(var g,s=0;s<16;s++)(3&s)==0&&(g=4294967296*Math.random()),i[s]=g>>>((3&s)<<3)&255;return i}}},function(e,t){for(var r=[],n=0;n<256;++n)r[n]=(n+256).toString(16).substr(1);e.exports=function(i,g){var s=g||0,o=r;return[o[i[s++]],o[i[s++]],o[i[s++]],o[i[s++]],"-",o[i[s++]],o[i[s++]],"-",o[i[s++]],o[i[s++]],"-",o[i[s++]],o[i[s++]],"-",o[i[s++]],o[i[s++]],o[i[s++]],o[i[s++]],o[i[s++]],o[i[s++]]].join("")}},function(e,t,r){(function(n){const i=r(210),g=r(49),s=(o,l)=>({from:s,EnvVarError:r(49),get:function(u){if(!u)return o;if(arguments.length>1)throw new g("It looks like you passed more than one argument to env.get(). Since env-var@6.0.0 this is no longer supported. To set a default value use env.get(TARGET).default(DEFAULT)");return i(o,u,l||{})}});e.exports=s(n.env)}).call(this,r(2))},function(e,t,r){var n=r(9),i=r(71),g=r(3).LEVEL,s=e.exports=function(){var o=this,l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};i.call(this,{objectMode:!0,highWaterMark:l.highWaterMark}),this.format=l.format,this.level=l.level,this.handleExceptions=l.handleExceptions,this.silent=l.silent,l.log&&(this.log=l.log),l.logv&&(this.logv=l.logv),l.close&&(this.close=l.close),this.once("pipe",function(u){o.levels=u.levels,o.parent=u}),this.once("unpipe",function(u){u===o.parent&&(o.parent=null,o.close&&o.close())})};n.inherits(s,i),s.prototype._write=function(o,l,u){if(this.silent||o.exception===!0&&!this.handleExceptions)return u(null);var m=this.level||this.parent&&this.parent.level;if(!m||this.levels[m]>=this.levels[o[g]]){if(o&&!this.format)return this.log(o,u);var R=void 0,y=void 0;try{y=this.format.transform(Object.assign({},o),this.format.options)}catch(S){R=S}if(R||!y){if(u(),R)throw R;return}return this.log(y,u)}return u(null)},s.prototype._writev=function(o,l){if(this.logv){var u=o.filter(this._accept,this);return u.length?this.logv(u,l):l(null)}for(var m=0;m<o.length;m++)if(this._accept(o[m]))if(!o[m].chunk||this.format){var R=void 0,y=void 0;try{y=this.format.transform(Object.assign({},o[m].chunk),this.format.options)}catch(S){R=S}if(R||!y){if(o[m].callback(),R)throw l(null),R}else this.log(y,o[m].callback)}else this.log(o[m].chunk,o[m].callback);return l(null)},s.prototype._accept=function(o){var l=o.chunk;if(this.silent)return!1;var u=this.level||this.parent&&this.parent.level;return!(l.exception!==!0&&u&&!(this.levels[u]>=this.levels[l[g]])||!this.handleExceptions&&l.exception===!0)},s.prototype._nop=function(){}},function(e,t,r){const{AbortController:n,AbortSignal:i}=typeof self!="undefined"?self:typeof window!="undefined"?window:void 0;e.exports=n,e.exports.AbortSignal=i,e.exports.default=n},function(e,t){var r=function(n){function i(){this.fetch=!1,this.DOMException=n.DOMException}return i.prototype=n,new i}(typeof self!="undefined"?self:this);(function(n){(function(i){var g="URLSearchParams"in n,s="Symbol"in n&&"iterator"in Symbol,o="FileReader"in n&&"Blob"in n&&function(){try{return new Blob,!0}catch{return!1}}(),l="FormData"in n,u="ArrayBuffer"in n;if(u)var m=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],R=ArrayBuffer.isView||function(O){return O&&m.indexOf(Object.prototype.toString.call(O))>-1};function y(O){if(typeof O!="string"&&(O=String(O)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(O))throw new TypeError("Invalid character in header field name");return O.toLowerCase()}function S(O){return typeof O!="string"&&(O=String(O)),O}function c(O){var _={next:function(){var x=O.shift();return{done:x===void 0,value:x}}};return s&&(_[Symbol.iterator]=function(){return _}),_}function w(O){this.map={},O instanceof w?O.forEach(function(_,x){this.append(x,_)},this):Array.isArray(O)?O.forEach(function(_){this.append(_[0],_[1])},this):O&&Object.getOwnPropertyNames(O).forEach(function(_){this.append(_,O[_])},this)}function E(O){if(O.bodyUsed)return Promise.reject(new TypeError("Already read"));O.bodyUsed=!0}function P(O){return new Promise(function(_,x){O.onload=function(){_(O.result)},O.onerror=function(){x(O.error)}})}function F(O){var _=new FileReader,x=P(_);return _.readAsArrayBuffer(O),x}function M(O){if(O.slice)return O.slice(0);var _=new Uint8Array(O.byteLength);return _.set(new Uint8Array(O)),_.buffer}function A(){return this.bodyUsed=!1,this._initBody=function(O){var _;this._bodyInit=O,O?typeof O=="string"?this._bodyText=O:o&&Blob.prototype.isPrototypeOf(O)?this._bodyBlob=O:l&&FormData.prototype.isPrototypeOf(O)?this._bodyFormData=O:g&&URLSearchParams.prototype.isPrototypeOf(O)?this._bodyText=O.toString():u&&o&&(_=O)&&DataView.prototype.isPrototypeOf(_)?(this._bodyArrayBuffer=M(O.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):u&&(ArrayBuffer.prototype.isPrototypeOf(O)||R(O))?this._bodyArrayBuffer=M(O):this._bodyText=O=Object.prototype.toString.call(O):this._bodyText="",this.headers.get("content-type")||(typeof O=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):g&&URLSearchParams.prototype.isPrototypeOf(O)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o&&(this.blob=function(){var O=E(this);if(O)return O;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?E(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(F)}),this.text=function(){var O,_,x,D=E(this);if(D)return D;if(this._bodyBlob)return O=this._bodyBlob,_=new FileReader,x=P(_),_.readAsText(O),x;if(this._bodyArrayBuffer)return Promise.resolve(function(L){for(var T=new Uint8Array(L),C=new Array(T.length),U=0;U<T.length;U++)C[U]=String.fromCharCode(T[U]);return C.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},l&&(this.formData=function(){return this.text().then($)}),this.json=function(){return this.text().then(JSON.parse)},this}w.prototype.append=function(O,_){O=y(O),_=S(_);var x=this.map[O];this.map[O]=x?x+", "+_:_},w.prototype.delete=function(O){delete this.map[y(O)]},w.prototype.get=function(O){return O=y(O),this.has(O)?this.map[O]:null},w.prototype.has=function(O){return this.map.hasOwnProperty(y(O))},w.prototype.set=function(O,_){this.map[y(O)]=S(_)},w.prototype.forEach=function(O,_){for(var x in this.map)this.map.hasOwnProperty(x)&&O.call(_,this.map[x],x,this)},w.prototype.keys=function(){var O=[];return this.forEach(function(_,x){O.push(x)}),c(O)},w.prototype.values=function(){var O=[];return this.forEach(function(_){O.push(_)}),c(O)},w.prototype.entries=function(){var O=[];return this.forEach(function(_,x){O.push([x,_])}),c(O)},s&&(w.prototype[Symbol.iterator]=w.prototype.entries);var p=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function N(O,_){var x,D,L=(_=_||{}).body;if(O instanceof N){if(O.bodyUsed)throw new TypeError("Already read");this.url=O.url,this.credentials=O.credentials,_.headers||(this.headers=new w(O.headers)),this.method=O.method,this.mode=O.mode,this.signal=O.signal,L||O._bodyInit==null||(L=O._bodyInit,O.bodyUsed=!0)}else this.url=String(O);if(this.credentials=_.credentials||this.credentials||"same-origin",!_.headers&&this.headers||(this.headers=new w(_.headers)),this.method=(x=_.method||this.method||"GET",D=x.toUpperCase(),p.indexOf(D)>-1?D:x),this.mode=_.mode||this.mode||null,this.signal=_.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&L)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(L)}function $(O){var _=new FormData;return O.trim().split("&").forEach(function(x){if(x){var D=x.split("="),L=D.shift().replace(/\+/g," "),T=D.join("=").replace(/\+/g," ");_.append(decodeURIComponent(L),decodeURIComponent(T))}}),_}function q(O,_){_||(_={}),this.type="default",this.status=_.status===void 0?200:_.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in _?_.statusText:"OK",this.headers=new w(_.headers),this.url=_.url||"",this._initBody(O)}N.prototype.clone=function(){return new N(this,{body:this._bodyInit})},A.call(N.prototype),A.call(q.prototype),q.prototype.clone=function(){return new q(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new w(this.headers),url:this.url})},q.error=function(){var O=new q(null,{status:0,statusText:""});return O.type="error",O};var h=[301,302,303,307,308];q.redirect=function(O,_){if(h.indexOf(_)===-1)throw new RangeError("Invalid status code");return new q(null,{status:_,headers:{location:O}})},i.DOMException=n.DOMException;try{new i.DOMException}catch{i.DOMException=function(_,x){this.message=_,this.name=x;var D=Error(_);this.stack=D.stack},i.DOMException.prototype=Object.create(Error.prototype),i.DOMException.prototype.constructor=i.DOMException}function d(O,_){return new Promise(function(x,D){var L=new N(O,_);if(L.signal&&L.signal.aborted)return D(new i.DOMException("Aborted","AbortError"));var T=new XMLHttpRequest;function C(){T.abort()}T.onload=function(){var U,b,f={status:T.status,statusText:T.statusText,headers:(U=T.getAllResponseHeaders()||"",b=new w,U.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(k){var Y=k.split(":"),K=Y.shift().trim();if(K){var Q=Y.join(":").trim();b.append(K,Q)}}),b)};f.url="responseURL"in T?T.responseURL:f.headers.get("X-Request-URL");var B="response"in T?T.response:T.responseText;x(new q(B,f))},T.onerror=function(){D(new TypeError("Network request failed"))},T.ontimeout=function(){D(new TypeError("Network request failed"))},T.onabort=function(){D(new i.DOMException("Aborted","AbortError"))},T.open(L.method,L.url,!0),L.credentials==="include"?T.withCredentials=!0:L.credentials==="omit"&&(T.withCredentials=!1),"responseType"in T&&o&&(T.responseType="blob"),L.headers.forEach(function(U,b){T.setRequestHeader(b,U)}),L.signal&&(L.signal.addEventListener("abort",C),T.onreadystatechange=function(){T.readyState===4&&L.signal.removeEventListener("abort",C)}),T.send(L._bodyInit===void 0?null:L._bodyInit)})}d.polyfill=!0,n.fetch||(n.fetch=d,n.Headers=w,n.Request=N,n.Response=q),i.Headers=w,i.Request=N,i.Response=q,i.fetch=d})({})})(r),delete r.fetch.polyfill,(t=r.fetch).default=r.fetch,t.fetch=r.fetch,t.Headers=r.Headers,t.Request=r.Request,t.Response=r.Response,e.exports=t},function(e,t,r){const n=r(222),i=Symbol("max"),g=Symbol("length"),s=Symbol("lengthCalculator"),o=Symbol("allowStale"),l=Symbol("maxAge"),u=Symbol("dispose"),m=Symbol("noDisposeOnSet"),R=Symbol("lruList"),y=Symbol("cache"),S=Symbol("updateAgeOnGet"),c=()=>1,w=(p,N,$)=>{const q=p[y].get(N);if(q){const h=q.value;if(E(p,h)){if(F(p,q),!p[o])return}else $&&(p[S]&&(q.value.now=Date.now()),p[R].unshiftNode(q));return h.value}},E=(p,N)=>{if(!N||!N.maxAge&&!p[l])return!1;const $=Date.now()-N.now;return N.maxAge?$>N.maxAge:p[l]&&$>p[l]},P=p=>{if(p[g]>p[i])for(let N=p[R].tail;p[g]>p[i]&&N!==null;){const $=N.prev;F(p,N),N=$}},F=(p,N)=>{if(N){const $=N.value;p[u]&&p[u]($.key,$.value),p[g]-=$.length,p[y].delete($.key),p[R].removeNode(N)}};class M{constructor(N,$,q,h,d){this.key=N,this.value=$,this.length=q,this.now=h,this.maxAge=d||0}}const A=(p,N,$,q)=>{let h=$.value;E(p,h)&&(F(p,$),p[o]||(h=void 0)),h&&N.call(q,h.value,h.key,p)};e.exports=class{constructor(p){if(typeof p=="number"&&(p={max:p}),p||(p={}),p.max&&(typeof p.max!="number"||p.max<0))throw new TypeError("max must be a non-negative number");this[i]=p.max||1/0;const N=p.length||c;if(this[s]=typeof N!="function"?c:N,this[o]=p.stale||!1,p.maxAge&&typeof p.maxAge!="number")throw new TypeError("maxAge must be a number");this[l]=p.maxAge||0,this[u]=p.dispose,this[m]=p.noDisposeOnSet||!1,this[S]=p.updateAgeOnGet||!1,this.reset()}set max(p){if(typeof p!="number"||p<0)throw new TypeError("max must be a non-negative number");this[i]=p||1/0,P(this)}get max(){return this[i]}set allowStale(p){this[o]=!!p}get allowStale(){return this[o]}set maxAge(p){if(typeof p!="number")throw new TypeError("maxAge must be a non-negative number");this[l]=p,P(this)}get maxAge(){return this[l]}set lengthCalculator(p){typeof p!="function"&&(p=c),p!==this[s]&&(this[s]=p,this[g]=0,this[R].forEach(N=>{N.length=this[s](N.value,N.key),this[g]+=N.length})),P(this)}get lengthCalculator(){return this[s]}get length(){return this[g]}get itemCount(){return this[R].length}rforEach(p,N){N=N||this;for(let $=this[R].tail;$!==null;){const q=$.prev;A(this,p,$,N),$=q}}forEach(p,N){N=N||this;for(let $=this[R].head;$!==null;){const q=$.next;A(this,p,$,N),$=q}}keys(){return this[R].toArray().map(p=>p.key)}values(){return this[R].toArray().map(p=>p.value)}reset(){this[u]&&this[R]&&this[R].length&&this[R].forEach(p=>this[u](p.key,p.value)),this[y]=new Map,this[R]=new n,this[g]=0}dump(){return this[R].map(p=>!E(this,p)&&{k:p.key,v:p.value,e:p.now+(p.maxAge||0)}).toArray().filter(p=>p)}dumpLru(){return this[R]}set(p,N,$){if(($=$||this[l])&&typeof $!="number")throw new TypeError("maxAge must be a number");const q=$?Date.now():0,h=this[s](N,p);if(this[y].has(p)){if(h>this[i])return F(this,this[y].get(p)),!1;const O=this[y].get(p).value;return this[u]&&(this[m]||this[u](p,O.value)),O.now=q,O.maxAge=$,O.value=N,this[g]+=h-O.length,O.length=h,this.get(p),P(this),!0}const d=new M(p,N,h,q,$);return d.length>this[i]?(this[u]&&this[u](p,N),!1):(this[g]+=d.length,this[R].unshift(d),this[y].set(p,this[R].head),P(this),!0)}has(p){if(!this[y].has(p))return!1;const N=this[y].get(p).value;return!E(this,N)}get(p){return w(this,p,!0)}peek(p){return w(this,p,!1)}pop(){const p=this[R].tail;return p?(F(this,p),p.value):null}del(p){F(this,this[y].get(p))}load(p){this.reset();const N=Date.now();for(let $=p.length-1;$>=0;$--){const q=p[$],h=q.e||0;if(h===0)this.set(q.k,q.v);else{const d=h-N;d>0&&this.set(q.k,q.v,d)}}}prune(){this[y].forEach((p,N)=>w(this,N,!1))}}},function(e,t,r){var n=r(225),i=r(226),g=i;g.v1=n,g.v4=i,e.exports=g},function(e,t,r){var n=r(37).Colorizer;e.exports=function(i){return n.addColors(i.colors||i),i}},function(e,t,r){var n={};e.exports=n,n.themes={};var i=r(9),g=n.styles=r(108),s=Object.defineProperties,o=new RegExp(/[\r\n]+/g);n.supportsColor=r(109).supportsColor,n.enabled===void 0&&(n.enabled=n.supportsColor()!==!1),n.enable=function(){n.enabled=!0},n.disable=function(){n.enabled=!1},n.stripColors=n.strip=function(E){return(""+E).replace(/\x1B\[\d+m/g,"")},n.stylize=function(E,P){return n.enabled?g[P].open+E+g[P].close:E+""};var l=/[|\\{}()[\]^$+*?.]/g;function u(E){var P=function F(){return S.apply(F,arguments)};return P._styles=E,P.__proto__=y,P}var m,R=(m={},g.grey=g.gray,Object.keys(g).forEach(function(E){g[E].closeRe=new RegExp(function(P){if(typeof P!="string")throw new TypeError("Expected a string");return P.replace(l,"\\$&")}(g[E].close),"g"),m[E]={get:function(){return u(this._styles.concat(E))}}}),m),y=s(function(){},R);function S(){var E=Array.prototype.slice.call(arguments),P=E.map(function(N){return N!==void 0&&N.constructor===String?N:i.inspect(N)}).join(" ");if(!n.enabled||!P)return P;for(var F=P.indexOf(`
|
|
35
|
-
`)!=-1,M=this._styles,A=M.length;A--;){var p=g[M[A]];P=p.open+P.replace(p.closeRe,p.open)+p.close,F&&(P=P.replace(o,function(N){return p.close+N+p.open}))}return P}n.setTheme=function(E){if(typeof E!="string")for(var P in E)(function(F){n[F]=function(M){if(typeof E[F]=="object"){var A=M;for(var p in E[F])A=n[E[F][p]](A);return A}return n[E[F]](M)}})(P);else console.log("colors.setTheme now only accepts an object, not a string. If you are trying to set a theme from a file, it is now your (the caller's) responsibility to require the file. The old syntax looked like colors.setTheme(__dirname + '/../themes/generic-logging.js'); The new syntax looks like colors.setTheme(require(__dirname + '/../themes/generic-logging.js'));")};var c=function(E,P){var F=P.split("");return(F=F.map(E)).join("")};for(var w in n.trap=r(111),n.zalgo=r(112),n.maps={},n.maps.america=r(113)(n),n.maps.zebra=r(114)(n),n.maps.rainbow=r(115)(n),n.maps.random=r(116)(n),n.maps)(function(E){n[E]=function(P){return c(n.maps[E],P)}})(w);s(n,function(){var E={};return Object.keys(R).forEach(function(P){E[P]={get:function(){return u([P])}}}),E}())},function(e,t){e.exports=function(r){return r&&typeof r=="object"&&typeof r.copy=="function"&&typeof r.fill=="function"&&typeof r.readUInt8=="function"}},function(e,t){typeof Object.create=="function"?e.exports=function(r,n){r.super_=n,r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(r,n){r.super_=n;var i=function(){};i.prototype=n.prototype,r.prototype=new i,r.prototype.constructor=r}},function(e,t){var r={};e.exports=r;var n={reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],grey:[90,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],blackBG:[40,49],redBG:[41,49],greenBG:[42,49],yellowBG:[43,49],blueBG:[44,49],magentaBG:[45,49],cyanBG:[46,49],whiteBG:[47,49]};Object.keys(n).forEach(function(i){var g=n[i],s=r[i]=[];s.open="["+g[0]+"m",s.close="["+g[1]+"m"})},function(e,t,r){(function(n){var i=r(15),g=r(110),s=n.env,o=void 0;function l(u){return function(m){return m!==0&&{level:m,hasBasic:!0,has256:m>=2,has16m:m>=3}}(function(m){if(o===!1)return 0;if(g("color=16m")||g("color=full")||g("color=truecolor"))return 3;if(g("color=256"))return 2;if(m&&!m.isTTY&&o!==!0)return 0;var R=o?1:0;if(n.platform==="win32"){var y=i.release().split(".");return Number(n.versions.node.split(".")[0])>=8&&Number(y[0])>=10&&Number(y[2])>=10586?Number(y[2])>=14931?3:2:1}if("CI"in s)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(function(c){return c in s})||s.CI_NAME==="codeship"?1:R;if("TEAMCITY_VERSION"in s)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(s.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in s){var S=parseInt((s.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(s.TERM_PROGRAM){case"iTerm.app":return S>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test("xterm-256color")?2:/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test("xterm-256color")||"COLORTERM"in s?1:R}(u))}g("no-color")||g("no-colors")||g("color=false")?o=!1:(g("color")||g("colors")||g("color=true")||g("color=always"))&&(o=!0),"FORCE_COLOR"in s&&(o=s.FORCE_COLOR.length===0||parseInt(s.FORCE_COLOR,10)!==0),e.exports={supportsColor:l,stdout:l(n.stdout),stderr:l(n.stderr)}}).call(this,r(2))},function(e,t,r){(function(n){e.exports=function(i,g){var s=(g=g||n.argv).indexOf("--"),o=/^-{1,2}/.test(i)?"":"--",l=g.indexOf(o+i);return l!==-1&&(s===-1||l<s)}}).call(this,r(2))},function(e,t){e.exports=function(r,n){var i="";r=(r=r||"Run the trap, drop the bass").split("");var g={a:["@","\u0104","\u023A","\u0245","\u0394","\u039B","\u0414"],b:["\xDF","\u0181","\u0243","\u026E","\u03B2","\u0E3F"],c:["\xA9","\u023B","\u03FE"],d:["\xD0","\u018A","\u0500","\u0501","\u0502","\u0503"],e:["\xCB","\u0115","\u018E","\u0258","\u03A3","\u03BE","\u04BC","\u0A6C"],f:["\u04FA"],g:["\u0262"],h:["\u0126","\u0195","\u04A2","\u04BA","\u04C7","\u050A"],i:["\u0F0F"],j:["\u0134"],k:["\u0138","\u04A0","\u04C3","\u051E"],l:["\u0139"],m:["\u028D","\u04CD","\u04CE","\u0520","\u0521","\u0D69"],n:["\xD1","\u014B","\u019D","\u0376","\u03A0","\u048A"],o:["\xD8","\xF5","\xF8","\u01FE","\u0298","\u047A","\u05DD","\u06DD","\u0E4F"],p:["\u01F7","\u048E"],q:["\u09CD"],r:["\xAE","\u01A6","\u0210","\u024C","\u0280","\u042F"],s:["\xA7","\u03DE","\u03DF","\u03E8"],t:["\u0141","\u0166","\u0373"],u:["\u01B1","\u054D"],v:["\u05D8"],w:["\u0428","\u0460","\u047C","\u0D70"],x:["\u04B2","\u04FE","\u04FC","\u04FD"],y:["\xA5","\u04B0","\u04CB"],z:["\u01B5","\u0240"]};return r.forEach(function(s){s=s.toLowerCase();var o=g[s]||[" "],l=Math.floor(Math.random()*o.length);i+=g[s]!==void 0?g[s][l]:s}),i}},function(e,t){e.exports=function(r,n){r=r||" he is here ";var i={up:["\u030D","\u030E","\u0304","\u0305","\u033F","\u0311","\u0306","\u0310","\u0352","\u0357","\u0351","\u0307","\u0308","\u030A","\u0342","\u0313","\u0308","\u034A","\u034B","\u034C","\u0303","\u0302","\u030C","\u0350","\u0300","\u0301","\u030B","\u030F","\u0312","\u0313","\u0314","\u033D","\u0309","\u0363","\u0364","\u0365","\u0366","\u0367","\u0368","\u0369","\u036A","\u036B","\u036C","\u036D","\u036E","\u036F","\u033E","\u035B","\u0346","\u031A"],down:["\u0316","\u0317","\u0318","\u0319","\u031C","\u031D","\u031E","\u031F","\u0320","\u0324","\u0325","\u0326","\u0329","\u032A","\u032B","\u032C","\u032D","\u032E","\u032F","\u0330","\u0331","\u0332","\u0333","\u0339","\u033A","\u033B","\u033C","\u0345","\u0347","\u0348","\u0349","\u034D","\u034E","\u0353","\u0354","\u0355","\u0356","\u0359","\u035A","\u0323"],mid:["\u0315","\u031B","\u0300","\u0301","\u0358","\u0321","\u0322","\u0327","\u0328","\u0334","\u0335","\u0336","\u035C","\u035D","\u035E","\u035F","\u0360","\u0362","\u0338","\u0337","\u0361"," \u0489"]},g=[].concat(i.up,i.down,i.mid);function s(l){return Math.floor(Math.random()*l)}function o(l){var u=!1;return g.filter(function(m){u=m===l}),u}return function(l,u){var m,R,y="";for(R in(u=u||{}).up=u.up===void 0||u.up,u.mid=u.mid===void 0||u.mid,u.down=u.down===void 0||u.down,u.size=u.size!==void 0?u.size:"maxi",l=l.split(""))if(!o(R)){switch(y+=l[R],m={up:0,down:0,mid:0},u.size){case"mini":m.up=s(8),m.mid=s(2),m.down=s(8);break;case"maxi":m.up=s(16)+3,m.mid=s(4)+1,m.down=s(64)+3;break;default:m.up=s(8)+1,m.mid=s(6)/2,m.down=s(8)+1}var S=["up","mid","down"];for(var c in S)for(var w=S[c],E=0;E<=m[w];E++)u[w]&&(y+=i[w][s(i[w].length)])}return y}(r,n)}},function(e,t){e.exports=function(r){return function(n,i,g){if(n===" ")return n;switch(i%3){case 0:return r.red(n);case 1:return r.white(n);case 2:return r.blue(n)}}}},function(e,t){e.exports=function(r){return function(n,i,g){return i%2==0?n:r.inverse(n)}}},function(e,t){e.exports=function(r){var n=["red","yellow","green","blue","magenta"];return function(i,g,s){return i===" "?i:r[n[g++%n.length]](i)}}},function(e,t){e.exports=function(r){var n=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta"];return function(i,g,s){return i===" "?i:r[n[Math.round(Math.random()*(n.length-2))]](i)}}},function(e,t,r){Object.defineProperty(t,"cli",{value:r(118)}),Object.defineProperty(t,"npm",{value:r(119)}),Object.defineProperty(t,"syslog",{value:r(120)})},function(e,t,r){t.levels={error:0,warn:1,help:2,data:3,info:4,debug:5,prompt:6,verbose:7,input:8,silly:9},t.colors={error:"red",warn:"yellow",help:"cyan",data:"grey",info:"green",debug:"blue",prompt:"grey",verbose:"cyan",input:"grey",silly:"magenta"}},function(e,t,r){t.levels={error:0,warn:1,info:2,http:3,verbose:4,debug:5,silly:6},t.colors={error:"red",warn:"yellow",info:"green",http:"green",verbose:"cyan",debug:"blue",silly:"magenta"}},function(e,t,r){t.levels={emerg:0,alert:1,crit:2,error:3,warning:4,notice:5,info:6,debug:7},t.colors={emerg:"red",alert:"yellow",crit:"red",error:"red",warning:"red",notice:"yellow",info:"green",debug:"blue"}},function(e,t,r){var n=r(
|
|
36
|
-
`));return!0}e.exports=function(){for(var s=arguments.length,o=new Array(s),l=0;l<s;l++)o[l]=arguments[l];var u=n(i(o)),m=u();return m.Format=u.Format,m},e.exports.cascade=i},function(e,t,r){(function(n){var i=r(
|
|
37
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function i(R,y){(y==null||y>R.length)&&(y=R.length);for(var S=0,c=new Array(y);S<y;S++)c[S]=R[S];return c}function g(R,y){for(var S=0;S<y.length;S++){var c=y[S];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(R,c.key,c)}}var s=r(9),o=r(3).SPLAT,l=/%[scdjifoO%]/g,u=/%%/g,m=function(){function R(c){(function(w,E){if(!(w instanceof E))throw new TypeError("Cannot call a class as a function")})(this,R),this.options=c}var y,S;return y=R,(S=[{key:"_splat",value:function(c,w){var E=c.message,P=c[o]||c.splat||[],F=E.match(u),M=F&&F.length||0,A=w.length-M-P.length,p=A<0?P.splice(A,-1*A):[],N=p.length;if(N)for(var $=0;$<N;$++)Object.assign(c,p[$]);return c.message=s.format.apply(s,[E].concat(n(P))),c}},{key:"transform",value:function(c){var w=c.message,E=c[o]||c.splat;if(!E||!E.length)return c;var P=w&&w.match&&w.match(l);if(!P&&(E||E.length)){var F=E.length>1?E.splice(0):E,M=F.length;if(M)for(var A=0;A<M;A++)Object.assign(c,F[A]);return c}return P?this._splat(c,P):c}}])&&g(y.prototype,S),R}();e.exports=function(R){return new m(R)}},function(e,t,r){var n=r(135),i=r(8);e.exports=i(function(g){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return s.format&&(g.timestamp=typeof s.format=="function"?s.format():n.format(new Date,s.format)),g.timestamp||(g.timestamp=new Date().toISOString()),s.alias&&(g[s.alias]=g.timestamp),g})},function(e,t,r){r.r(t),r.d(t,"assign",function(){return l}),r.d(t,"format",function(){return d}),r.d(t,"parse",function(){return O}),r.d(t,"defaultI18n",function(){return y}),r.d(t,"setGlobalDateI18n",function(){return c}),r.d(t,"setGlobalDateMasks",function(){return h});var n=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,i="[^\\s]+",g=/\[([^]*?)\]/gm;function s(x,D){for(var L=[],T=0,C=x.length;T<C;T++)L.push(x[T].substr(0,D));return L}var o=function(x){return function(D,L){var T=L[x].map(function(C){return C.toLowerCase()}).indexOf(D.toLowerCase());return T>-1?T:null}};function l(x){for(var D=[],L=1;L<arguments.length;L++)D[L-1]=arguments[L];for(var T=0,C=D;T<C.length;T++){var U=C[T];for(var b in U)x[b]=U[b]}return x}var u=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],m=["January","February","March","April","May","June","July","August","September","October","November","December"],R=s(m,3),y={dayNamesShort:s(u,3),dayNames:u,monthNamesShort:R,monthNames:m,amPm:["am","pm"],DoFn:function(x){return x+["th","st","nd","rd"][x%10>3?0:(x-x%10!=10?1:0)*x%10]}},S=l({},y),c=function(x){return S=l(S,x)},w=function(x){return x.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},E=function(x,D){for(D===void 0&&(D=2),x=String(x);x.length<D;)x="0"+x;return x},P={D:function(x){return String(x.getDate())},DD:function(x){return E(x.getDate())},Do:function(x,D){return D.DoFn(x.getDate())},d:function(x){return String(x.getDay())},dd:function(x){return E(x.getDay())},ddd:function(x,D){return D.dayNamesShort[x.getDay()]},dddd:function(x,D){return D.dayNames[x.getDay()]},M:function(x){return String(x.getMonth()+1)},MM:function(x){return E(x.getMonth()+1)},MMM:function(x,D){return D.monthNamesShort[x.getMonth()]},MMMM:function(x,D){return D.monthNames[x.getMonth()]},YY:function(x){return E(String(x.getFullYear()),4).substr(2)},YYYY:function(x){return E(x.getFullYear(),4)},h:function(x){return String(x.getHours()%12||12)},hh:function(x){return E(x.getHours()%12||12)},H:function(x){return String(x.getHours())},HH:function(x){return E(x.getHours())},m:function(x){return String(x.getMinutes())},mm:function(x){return E(x.getMinutes())},s:function(x){return String(x.getSeconds())},ss:function(x){return E(x.getSeconds())},S:function(x){return String(Math.round(x.getMilliseconds()/100))},SS:function(x){return E(Math.round(x.getMilliseconds()/10),2)},SSS:function(x){return E(x.getMilliseconds(),3)},a:function(x,D){return x.getHours()<12?D.amPm[0]:D.amPm[1]},A:function(x,D){return x.getHours()<12?D.amPm[0].toUpperCase():D.amPm[1].toUpperCase()},ZZ:function(x){var D=x.getTimezoneOffset();return(D>0?"-":"+")+E(100*Math.floor(Math.abs(D)/60)+Math.abs(D)%60,4)},Z:function(x){var D=x.getTimezoneOffset();return(D>0?"-":"+")+E(Math.floor(Math.abs(D)/60),2)+":"+E(Math.abs(D)%60,2)}},F=function(x){return+x-1},M=[null,"[1-9]\\d?"],A=[null,i],p=["isPm",i,function(x,D){var L=x.toLowerCase();return L===D.amPm[0]?0:L===D.amPm[1]?1:null}],N=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(x){var D=(x+"").match(/([+-]|\d\d)/gi);if(D){var L=60*+D[1]+parseInt(D[2],10);return D[0]==="+"?L:-L}return 0}],$={D:["day","[1-9]\\d?"],DD:["day","\\d\\d"],Do:["day","[1-9]\\d?"+i,function(x){return parseInt(x,10)}],M:["month","[1-9]\\d?",F],MM:["month","\\d\\d",F],YY:["year","\\d\\d",function(x){var D=+(""+new Date().getFullYear()).substr(0,2);return+(""+(+x>68?D-1:D)+x)}],h:["hour","[1-9]\\d?",void 0,"isPm"],hh:["hour","\\d\\d",void 0,"isPm"],H:["hour","[1-9]\\d?"],HH:["hour","\\d\\d"],m:["minute","[1-9]\\d?"],mm:["minute","\\d\\d"],s:["second","[1-9]\\d?"],ss:["second","\\d\\d"],YYYY:["year","\\d{4}"],S:["millisecond","\\d",function(x){return 100*+x}],SS:["millisecond","\\d\\d",function(x){return 10*+x}],SSS:["millisecond","\\d{3}"],d:M,dd:M,ddd:A,dddd:A,MMM:["month",i,o("monthNamesShort")],MMMM:["month",i,o("monthNames")],a:p,A:p,ZZ:N,Z:N},q={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},h=function(x){return l(q,x)},d=function(x,D,L){if(D===void 0&&(D=q.default),L===void 0&&(L={}),typeof x=="number"&&(x=new Date(x)),Object.prototype.toString.call(x)!=="[object Date]"||isNaN(x.getTime()))throw new Error("Invalid Date pass to format");var T=[];D=(D=q[D]||D).replace(g,function(U,b){return T.push(b),"@@@"});var C=l(l({},S),L);return(D=D.replace(n,function(U){return P[U](x,C)})).replace(/@@@/g,function(){return T.shift()})};function O(x,D,L){if(L===void 0&&(L={}),typeof D!="string")throw new Error("Invalid format in fecha parse");if(D=q[D]||D,x.length>1e3)return null;var T={year:new Date().getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},C=[],U=[],b=D.replace(g,function(J,re){return U.push(w(re)),"@@@"}),f={},B={};b=w(b).replace(n,function(J){var re=$[J],se=re[0],oe=re[1],z=re[3];if(f[se])throw new Error("Invalid format. "+se+" specified twice in format");return f[se]=!0,z&&(B[z]=!0),C.push(re),"("+oe+")"}),Object.keys(B).forEach(function(J){if(!f[J])throw new Error("Invalid format. "+J+" is required in specified format")}),b=b.replace(/@@@/g,function(){return U.shift()});var k=x.match(new RegExp(b,"i"));if(!k)return null;for(var Y=l(l({},S),L),K=1;K<k.length;K++){var Q=C[K-1],G=Q[0],V=Q[2],v=V?V(k[K],Y):+k[K];if(v==null)return null;T[G]=v}T.isPm===1&&T.hour!=null&&+T.hour!=12?T.hour=+T.hour+12:T.isPm===0&&+T.hour==12&&(T.hour=0);for(var j=new Date(T.year,T.month,T.day,T.hour,T.minute,T.second,T.millisecond),W=[["month","getMonth"],["day","getDate"],["hour","getHours"],["minute","getMinutes"],["second","getSeconds"]],ee=(K=0,W.length);K<ee;K++)if(f[W[K][0]]&&T[W[K][0]]!==j[W[K][1]]())return null;return T.timezoneOffset==null?j:new Date(Date.UTC(T.year,T.month,T.day,T.hour,T.minute-T.timezoneOffset,T.second,T.millisecond))}var _={format:d,parse:O,defaultI18n:y,setGlobalDateI18n:c,setGlobalDateMasks:h};t.default=_},function(e,t,r){var n=r(57),i=r(8),g=r(3).MESSAGE;e.exports=i(function(s,o){return o.level!==!1&&(s.level=n.strip(s.level)),o.message!==!1&&(s.message=n.strip(s.message)),o.raw!==!1&&s[g]&&(s[g]=n.strip(s[g])),s})},function(e){e.exports=JSON.parse('{"name":"winston","description":"A logger for just about everything.","version":"3.3.3","author":"Charlie Robbins <charlie.robbins@gmail.com>","maintainers":["Jarrett Cruger <jcrugzz@gmail.com>","Chris Alderson <chrisalderson@protonmail.com>","David Hyde <dabh@stanford.edu>"],"repository":{"type":"git","url":"https://github.com/winstonjs/winston.git"},"keywords":["winston","logger","logging","logs","sysadmin","bunyan","pino","loglevel","tools","json","stream"],"dependencies":{"async":"^3.1.0","@dabh/diagnostics":"^2.0.2","is-stream":"^2.0.0","logform":"^2.2.0","one-time":"^1.0.0","readable-stream":"^3.4.0","stack-trace":"0.0.x","triple-beam":"^1.3.0","winston-transport":"^4.4.0"},"devDependencies":{"@babel/cli":"^7.10.3","@babel/core":"^7.10.3","@babel/preset-env":"^7.10.3","@types/node":"^14.0.13","abstract-winston-transport":"^0.5.1","assume":"^2.2.0","colors":"^1.4.0","cross-spawn-async":"^2.2.5","eslint-config-populist":"^4.2.0","hock":"^1.4.1","mocha":"^8.0.1","nyc":"^15.1.0","rimraf":"^3.0.2","split2":"^3.1.1","std-mocks":"^1.0.1","through2":"^3.0.1","winston-compat":"^0.1.5"},"main":"./lib/winston","browser":"./dist/winston","types":"./index.d.ts","scripts":{"lint":"populist lib/*.js lib/winston/*.js lib/winston/**/*.js","pretest":"npm run lint","test":"nyc --reporter=text --reporter lcov npm run test:mocha","test:mocha":"mocha test/*.test.js test/**/*.test.js --exit","build":"./node_modules/.bin/rimraf dist && babel lib -d dist","prepublishOnly":"npm run build"},"engines":{"node":">= 6.4.0"},"license":"MIT"}')},function(e,t,r){Object.defineProperty(t,"Console",{configurable:!0,enumerable:!0,get:function(){return r(139)}}),Object.defineProperty(t,"File",{configurable:!0,enumerable:!0,get:function(){return r(148)}}),Object.defineProperty(t,"Http",{configurable:!0,enumerable:!0,get:function(){return r(188)}}),Object.defineProperty(t,"Stream",{configurable:!0,enumerable:!0,get:function(){return r(200)}})},function(e,t,r){(function(n){function i(E){return(i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(P){return typeof P}:function(P){return P&&typeof Symbol=="function"&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P})(E)}function g(E,P){if(!(E instanceof P))throw new TypeError("Cannot call a class as a function")}function s(E,P){for(var F=0;F<P.length;F++){var M=P[F];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(E,M.key,M)}}function o(E,P){return(o=Object.setPrototypeOf||function(F,M){return F.__proto__=M,F})(E,P)}function l(E){var P=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var F,M=m(E);if(P){var A=m(this).constructor;F=Reflect.construct(M,arguments,A)}else F=M.apply(this,arguments);return u(this,F)}}function u(E,P){return!P||i(P)!=="object"&&typeof P!="function"?function(F){if(F===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return F}(E):P}function m(E){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(P){return P.__proto__||Object.getPrototypeOf(P)})(E)}var R=r(15),y=r(3),S=y.LEVEL,c=y.MESSAGE,w=r(17);e.exports=function(E){(function(p,N){if(typeof N!="function"&&N!==null)throw new TypeError("Super expression must either be null or a function");p.prototype=Object.create(N&&N.prototype,{constructor:{value:p,writable:!0,configurable:!0}}),N&&o(p,N)})(A,E);var P,F,M=l(A);function A(){var p,N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return g(this,A),(p=M.call(this,N)).name=N.name||"console",p.stderrLevels=p._stringArrayToSet(N.stderrLevels),p.consoleWarnLevels=p._stringArrayToSet(N.consoleWarnLevels),p.eol=N.eol||R.EOL,p.setMaxListeners(30),p}return P=A,(F=[{key:"log",value:function(p,N){var $=this;return n(function(){return $.emit("logged",p)}),this.stderrLevels[p[S]]?(console._stderr?console._stderr.write("".concat(p[c]).concat(this.eol)):console.error(p[c]),void(N&&N())):this.consoleWarnLevels[p[S]]?(console._stderr?console._stderr.write("".concat(p[c]).concat(this.eol)):console.warn(p[c]),void(N&&N())):(console._stdout?console._stdout.write("".concat(p[c]).concat(this.eol)):console.log(p[c]),void(N&&N()))}},{key:"_stringArrayToSet",value:function(p,N){if(!p)return{};if(N=N||"Cannot make set from type other than Array of string elements",!Array.isArray(p))throw new Error(N);return p.reduce(function($,q){if(typeof q!="string")throw new Error(N);return $[q]=!0,$},{})}}])&&s(P.prototype,F),A}(w)}).call(this,r(12).setImmediate)},function(e,t,r){(function(n,i){(function(g,s){if(!g.setImmediate){var o,l,u,m,R,y=1,S={},c=!1,w=g.document,E=Object.getPrototypeOf&&Object.getPrototypeOf(g);E=E&&E.setTimeout?E:g,{}.toString.call(g.process)==="[object process]"?o=function(M){i.nextTick(function(){F(M)})}:function(){if(g.postMessage&&!g.importScripts){var M=!0,A=g.onmessage;return g.onmessage=function(){M=!1},g.postMessage("","*"),g.onmessage=A,M}}()?(m="setImmediate$"+Math.random()+"$",R=function(M){M.source===g&&typeof M.data=="string"&&M.data.indexOf(m)===0&&F(+M.data.slice(m.length))},g.addEventListener?g.addEventListener("message",R,!1):g.attachEvent("onmessage",R),o=function(M){g.postMessage(m+M,"*")}):g.MessageChannel?((u=new MessageChannel).port1.onmessage=function(M){F(M.data)},o=function(M){u.port2.postMessage(M)}):w&&"onreadystatechange"in w.createElement("script")?(l=w.documentElement,o=function(M){var A=w.createElement("script");A.onreadystatechange=function(){F(M),A.onreadystatechange=null,l.removeChild(A),A=null},l.appendChild(A)}):o=function(M){setTimeout(F,0,M)},E.setImmediate=function(M){typeof M!="function"&&(M=new Function(""+M));for(var A=new Array(arguments.length-1),p=0;p<A.length;p++)A[p]=arguments[p+1];var N={callback:M,args:A};return S[y]=N,o(y),y++},E.clearImmediate=P}function P(M){delete S[M]}function F(M){if(c)setTimeout(F,0,M);else{var A=S[M];if(A){c=!0;try{(function(p){var N=p.callback,$=p.args;switch($.length){case 0:N();break;case 1:N($[0]);break;case 2:N($[0],$[1]);break;case 3:N($[0],$[1],$[2]);break;default:N.apply(void 0,$)}})(A)}finally{P(M),c=!1}}}}})(typeof self=="undefined"?n===void 0?this:n:self)}).call(this,r(5),r(2))},function(e,t,r){e.exports=r(60)},function(e,t,r){(function(n,i){var g=r(13);e.exports=A;var s,o=r(38);A.ReadableState=M,r(18).EventEmitter;var l=function(b,f){return b.listeners(f).length},u=r(61),m=r(40).Buffer,R=n.Uint8Array||function(){},y=Object.create(r(14));y.inherits=r(6);var S=r(143),c=void 0;c=S&&S.debuglog?S.debuglog("stream"):function(){};var w,E=r(144),P=r(62);y.inherits(A,u);var F=["error","close","destroy","pause","resume"];function M(b,f){b=b||{};var B=f instanceof(s=s||r(32));this.objectMode=!!b.objectMode,B&&(this.objectMode=this.objectMode||!!b.readableObjectMode);var k=b.highWaterMark,Y=b.readableHighWaterMark,K=this.objectMode?16:16384;this.highWaterMark=k||k===0?k:B&&(Y||Y===0)?Y:K,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new E,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=b.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,b.encoding&&(w||(w=r(19).StringDecoder),this.decoder=new w(b.encoding),this.encoding=b.encoding)}function A(b){if(s=s||r(32),!(this instanceof A))return new A(b);this._readableState=new M(b,this),this.readable=!0,b&&(typeof b.read=="function"&&(this._read=b.read),typeof b.destroy=="function"&&(this._destroy=b.destroy)),u.call(this)}function p(b,f,B,k,Y){var K,Q=b._readableState;return f===null?(Q.reading=!1,function(G,V){if(!V.ended){if(V.decoder){var v=V.decoder.end();v&&v.length&&(V.buffer.push(v),V.length+=V.objectMode?1:v.length)}V.ended=!0,q(G)}}(b,Q)):(Y||(K=function(G,V){var v;j=V,m.isBuffer(j)||j instanceof R||typeof V=="string"||V===void 0||G.objectMode||(v=new TypeError("Invalid non-string/buffer chunk"));var j;return v}(Q,f)),K?b.emit("error",K):Q.objectMode||f&&f.length>0?(typeof f=="string"||Q.objectMode||Object.getPrototypeOf(f)===m.prototype||(f=function(G){return m.from(G)}(f)),k?Q.endEmitted?b.emit("error",new Error("stream.unshift() after end event")):N(b,Q,f,!0):Q.ended?b.emit("error",new Error("stream.push() after EOF")):(Q.reading=!1,Q.decoder&&!B?(f=Q.decoder.write(f),Q.objectMode||f.length!==0?N(b,Q,f,!1):d(b,Q)):N(b,Q,f,!1))):k||(Q.reading=!1)),function(G){return!G.ended&&(G.needReadable||G.length<G.highWaterMark||G.length===0)}(Q)}function N(b,f,B,k){f.flowing&&f.length===0&&!f.sync?(b.emit("data",B),b.read(0)):(f.length+=f.objectMode?1:B.length,k?f.buffer.unshift(B):f.buffer.push(B),f.needReadable&&q(b)),d(b,f)}Object.defineProperty(A.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(b){this._readableState&&(this._readableState.destroyed=b)}}),A.prototype.destroy=P.destroy,A.prototype._undestroy=P.undestroy,A.prototype._destroy=function(b,f){this.push(null),f(b)},A.prototype.push=function(b,f){var B,k=this._readableState;return k.objectMode?B=!0:typeof b=="string"&&((f=f||k.defaultEncoding)!==k.encoding&&(b=m.from(b,f),f=""),B=!0),p(this,b,f,!1,B)},A.prototype.unshift=function(b){return p(this,b,null,!0,!1)},A.prototype.isPaused=function(){return this._readableState.flowing===!1},A.prototype.setEncoding=function(b){return w||(w=r(19).StringDecoder),this._readableState.decoder=new w(b),this._readableState.encoding=b,this};function $(b,f){return b<=0||f.length===0&&f.ended?0:f.objectMode?1:b!=b?f.flowing&&f.length?f.buffer.head.data.length:f.length:(b>f.highWaterMark&&(f.highWaterMark=function(B){return B>=8388608?B=8388608:(B--,B|=B>>>1,B|=B>>>2,B|=B>>>4,B|=B>>>8,B|=B>>>16,B++),B}(b)),b<=f.length?b:f.ended?f.length:(f.needReadable=!0,0))}function q(b){var f=b._readableState;f.needReadable=!1,f.emittedReadable||(c("emitReadable",f.flowing),f.emittedReadable=!0,f.sync?g.nextTick(h,b):h(b))}function h(b){c("emit readable"),b.emit("readable"),D(b)}function d(b,f){f.readingMore||(f.readingMore=!0,g.nextTick(O,b,f))}function O(b,f){for(var B=f.length;!f.reading&&!f.flowing&&!f.ended&&f.length<f.highWaterMark&&(c("maybeReadMore read 0"),b.read(0),B!==f.length);)B=f.length;f.readingMore=!1}function _(b){c("readable nexttick read 0"),b.read(0)}function x(b,f){f.reading||(c("resume read 0"),b.read(0)),f.resumeScheduled=!1,f.awaitDrain=0,b.emit("resume"),D(b),f.flowing&&!f.reading&&b.read(0)}function D(b){var f=b._readableState;for(c("flow",f.flowing);f.flowing&&b.read()!==null;);}function L(b,f){return f.length===0?null:(f.objectMode?B=f.buffer.shift():!b||b>=f.length?(B=f.decoder?f.buffer.join(""):f.buffer.length===1?f.buffer.head.data:f.buffer.concat(f.length),f.buffer.clear()):B=function(k,Y,K){var Q;return k<Y.head.data.length?(Q=Y.head.data.slice(0,k),Y.head.data=Y.head.data.slice(k)):Q=k===Y.head.data.length?Y.shift():K?function(G,V){var v=V.head,j=1,W=v.data;for(G-=W.length;v=v.next;){var ee=v.data,J=G>ee.length?ee.length:G;if(J===ee.length?W+=ee:W+=ee.slice(0,G),(G-=J)==0){J===ee.length?(++j,v.next?V.head=v.next:V.head=V.tail=null):(V.head=v,v.data=ee.slice(J));break}++j}return V.length-=j,W}(k,Y):function(G,V){var v=m.allocUnsafe(G),j=V.head,W=1;for(j.data.copy(v),G-=j.data.length;j=j.next;){var ee=j.data,J=G>ee.length?ee.length:G;if(ee.copy(v,v.length-G,0,J),(G-=J)==0){J===ee.length?(++W,j.next?V.head=j.next:V.head=V.tail=null):(V.head=j,j.data=ee.slice(J));break}++W}return V.length-=W,v}(k,Y),Q}(b,f.buffer,f.decoder),B);var B}function T(b){var f=b._readableState;if(f.length>0)throw new Error('"endReadable()" called on non-empty stream');f.endEmitted||(f.ended=!0,g.nextTick(C,f,b))}function C(b,f){b.endEmitted||b.length!==0||(b.endEmitted=!0,f.readable=!1,f.emit("end"))}function U(b,f){for(var B=0,k=b.length;B<k;B++)if(b[B]===f)return B;return-1}A.prototype.read=function(b){c("read",b),b=parseInt(b,10);var f=this._readableState,B=b;if(b!==0&&(f.emittedReadable=!1),b===0&&f.needReadable&&(f.length>=f.highWaterMark||f.ended))return c("read: emitReadable",f.length,f.ended),f.length===0&&f.ended?T(this):q(this),null;if((b=$(b,f))===0&&f.ended)return f.length===0&&T(this),null;var k,Y=f.needReadable;return c("need readable",Y),(f.length===0||f.length-b<f.highWaterMark)&&c("length less than watermark",Y=!0),f.ended||f.reading?c("reading or ended",Y=!1):Y&&(c("do read"),f.reading=!0,f.sync=!0,f.length===0&&(f.needReadable=!0),this._read(f.highWaterMark),f.sync=!1,f.reading||(b=$(B,f))),(k=b>0?L(b,f):null)===null?(f.needReadable=!0,b=0):f.length-=b,f.length===0&&(f.ended||(f.needReadable=!0),B!==b&&f.ended&&T(this)),k!==null&&this.emit("data",k),k},A.prototype._read=function(b){this.emit("error",new Error("_read() is not implemented"))},A.prototype.pipe=function(b,f){var B=this,k=this._readableState;switch(k.pipesCount){case 0:k.pipes=b;break;case 1:k.pipes=[k.pipes,b];break;default:k.pipes.push(b)}k.pipesCount+=1,c("pipe count=%d opts=%j",k.pipesCount,f);var Y=(!f||f.end!==!1)&&b!==i.stdout&&b!==i.stderr?Q:re;function K(se,oe){c("onunpipe"),se===B&&oe&&oe.hasUnpiped===!1&&(oe.hasUnpiped=!0,c("cleanup"),b.removeListener("close",ee),b.removeListener("finish",J),b.removeListener("drain",G),b.removeListener("error",W),b.removeListener("unpipe",K),B.removeListener("end",Q),B.removeListener("end",re),B.removeListener("data",j),V=!0,!k.awaitDrain||b._writableState&&!b._writableState.needDrain||G())}function Q(){c("onend"),b.end()}k.endEmitted?g.nextTick(Y):B.once("end",Y),b.on("unpipe",K);var G=function(se){return function(){var oe=se._readableState;c("pipeOnDrain",oe.awaitDrain),oe.awaitDrain&&oe.awaitDrain--,oe.awaitDrain===0&&l(se,"data")&&(oe.flowing=!0,D(se))}}(B);b.on("drain",G);var V=!1,v=!1;function j(se){c("ondata"),v=!1,b.write(se)!==!1||v||((k.pipesCount===1&&k.pipes===b||k.pipesCount>1&&U(k.pipes,b)!==-1)&&!V&&(c("false write response, pause",B._readableState.awaitDrain),B._readableState.awaitDrain++,v=!0),B.pause())}function W(se){c("onerror",se),re(),b.removeListener("error",W),l(b,"error")===0&&b.emit("error",se)}function ee(){b.removeListener("finish",J),re()}function J(){c("onfinish"),b.removeListener("close",ee),re()}function re(){c("unpipe"),B.unpipe(b)}return B.on("data",j),function(se,oe,z){if(typeof se.prependListener=="function")return se.prependListener(oe,z);se._events&&se._events[oe]?o(se._events[oe])?se._events[oe].unshift(z):se._events[oe]=[z,se._events[oe]]:se.on(oe,z)}(b,"error",W),b.once("close",ee),b.once("finish",J),b.emit("pipe",B),k.flowing||(c("pipe resume"),B.resume()),b},A.prototype.unpipe=function(b){var f=this._readableState,B={hasUnpiped:!1};if(f.pipesCount===0)return this;if(f.pipesCount===1)return b&&b!==f.pipes||(b||(b=f.pipes),f.pipes=null,f.pipesCount=0,f.flowing=!1,b&&b.emit("unpipe",this,B)),this;if(!b){var k=f.pipes,Y=f.pipesCount;f.pipes=null,f.pipesCount=0,f.flowing=!1;for(var K=0;K<Y;K++)k[K].emit("unpipe",this,B);return this}var Q=U(f.pipes,b);return Q===-1||(f.pipes.splice(Q,1),f.pipesCount-=1,f.pipesCount===1&&(f.pipes=f.pipes[0]),b.emit("unpipe",this,B)),this},A.prototype.on=function(b,f){var B=u.prototype.on.call(this,b,f);if(b==="data")this._readableState.flowing!==!1&&this.resume();else if(b==="readable"){var k=this._readableState;k.endEmitted||k.readableListening||(k.readableListening=k.needReadable=!0,k.emittedReadable=!1,k.reading?k.length&&q(this):g.nextTick(_,this))}return B},A.prototype.addListener=A.prototype.on,A.prototype.resume=function(){var b=this._readableState;return b.flowing||(c("resume"),b.flowing=!0,function(f,B){B.resumeScheduled||(B.resumeScheduled=!0,g.nextTick(x,f,B))}(this,b)),this},A.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this},A.prototype.wrap=function(b){var f=this,B=this._readableState,k=!1;for(var Y in b.on("end",function(){if(c("wrapped end"),B.decoder&&!B.ended){var Q=B.decoder.end();Q&&Q.length&&f.push(Q)}f.push(null)}),b.on("data",function(Q){c("wrapped data"),B.decoder&&(Q=B.decoder.write(Q)),B.objectMode&&Q==null||(B.objectMode||Q&&Q.length)&&(f.push(Q)||(k=!0,b.pause()))}),b)this[Y]===void 0&&typeof b[Y]=="function"&&(this[Y]=function(Q){return function(){return b[Q].apply(b,arguments)}}(Y));for(var K=0;K<F.length;K++)b.on(F[K],this.emit.bind(this,F[K]));return this._read=function(Q){c("wrapped _read",Q),k&&(k=!1,b.resume())},this},Object.defineProperty(A.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),A._fromList=L}).call(this,r(5),r(2))},function(e,t){},function(e,t,r){var n=r(40).Buffer,i=r(145);e.exports=function(){function g(){(function(s,o){if(!(s instanceof o))throw new TypeError("Cannot call a class as a function")})(this,g),this.head=null,this.tail=null,this.length=0}return g.prototype.push=function(s){var o={data:s,next:null};this.length>0?this.tail.next=o:this.head=o,this.tail=o,++this.length},g.prototype.unshift=function(s){var o={data:s,next:this.head};this.length===0&&(this.tail=o),this.head=o,++this.length},g.prototype.shift=function(){if(this.length!==0){var s=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,s}},g.prototype.clear=function(){this.head=this.tail=null,this.length=0},g.prototype.join=function(s){if(this.length===0)return"";for(var o=this.head,l=""+o.data;o=o.next;)l+=s+o.data;return l},g.prototype.concat=function(s){if(this.length===0)return n.alloc(0);if(this.length===1)return this.head.data;for(var o,l,u,m=n.allocUnsafe(s>>>0),R=this.head,y=0;R;)o=R.data,l=m,u=y,o.copy(l,u),y+=R.data.length,R=R.next;return m},g}(),i&&i.inspect&&i.inspect.custom&&(e.exports.prototype[i.inspect.custom]=function(){var g=i.inspect({length:this.length});return this.constructor.name+" "+g})},function(e,t){},function(e,t,r){var n=r(4),i=n.Buffer;function g(o,l){for(var u in o)l[u]=o[u]}function s(o,l,u){return i(o,l,u)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(g(n,t),t.Buffer=s),g(i,s),s.from=function(o,l,u){if(typeof o=="number")throw new TypeError("Argument must not be a number");return i(o,l,u)},s.alloc=function(o,l,u){if(typeof o!="number")throw new TypeError("Argument must be a number");var m=i(o);return l!==void 0?typeof u=="string"?m.fill(l,u):m.fill(l):m.fill(0),m},s.allocUnsafe=function(o){if(typeof o!="number")throw new TypeError("Argument must be a number");return i(o)},s.allocUnsafeSlow=function(o){if(typeof o!="number")throw new TypeError("Argument must be a number");return n.SlowBuffer(o)}},function(e,t,r){var n=r(9),i=r(3).LEVEL,g=r(17),s=e.exports=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(g.call(this,o),!o.transport||typeof o.transport.log!="function")throw new Error("Invalid transport, must be an object with a log method.");function l(u){this.emit("error",u,this.transport)}this.transport=o.transport,this.level=this.level||o.transport.level,this.handleExceptions=this.handleExceptions||o.transport.handleExceptions,this._deprecated(),this.transport.__winstonError||(this.transport.__winstonError=l.bind(this),this.transport.on("error",this.transport.__winstonError))};n.inherits(s,g),s.prototype._write=function(o,l,u){if(this.silent||o.exception===!0&&!this.handleExceptions)return u(null);(!this.level||this.levels[this.level]>=this.levels[o[i]])&&this.transport.log(o[i],o.message,o,this._nop),u(null)},s.prototype._writev=function(o,l){for(var u=0;u<o.length;u++)this._accept(o[u])&&(this.transport.log(o[u].chunk[i],o[u].chunk.message,o[u].chunk,this._nop),o[u].callback());return l(null)},s.prototype._deprecated=function(){console.error([this.transport.name+" is a legacy winston transport. Consider upgrading: ","- Upgrade docs: https://github.com/winstonjs/winston/blob/master/UPGRADE-3.0.md"].join(`
|
|
38
|
-
`))},s.prototype.close=function(){this.transport.close&&this.transport.close(),this.transport.__winstonError&&(this.transport.removeListener("error",this.transport.__winstonError),this.transport.__winstonError=null)}},function(e,t,r){(function(n,i){function g(h){return(g=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d})(h)}function s(h,d){if(!(h instanceof d))throw new TypeError("Cannot call a class as a function")}function o(h,d){for(var O=0;O<d.length;O++){var _=d[O];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(h,_.key,_)}}function l(h,d){return(l=Object.setPrototypeOf||function(O,_){return O.__proto__=_,O})(h,d)}function u(h){var d=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var O,_=y(h);if(d){var x=y(this).constructor;O=Reflect.construct(_,arguments,x)}else O=_.apply(this,arguments);return m(this,O)}}function m(h,d){return!d||g(d)!=="object"&&typeof d!="function"?R(h):d}function R(h){if(h===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h}function y(h){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(d){return d.__proto__||Object.getPrototypeOf(d)})(h)}var S=r(63),c=r(53),w=r(149),E=r(159),P=r(3).MESSAGE,F=r(29),M=F.Stream,A=F.PassThrough,p=r(17),N=r(34)("winston:file"),$=r(15),q=r(187);e.exports=function(h){(function(D,L){if(typeof L!="function"&&L!==null)throw new TypeError("Super expression must either be null or a function");D.prototype=Object.create(L&&L.prototype,{constructor:{value:D,writable:!0,configurable:!0}}),L&&l(D,L)})(x,h);var d,O,_=u(x);function x(){var D,L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};function T(C){for(var U=arguments.length,b=new Array(U>1?U-1:0),f=1;f<U;f++)b[f-1]=arguments[f];b.slice(1).forEach(function(B){if(L[B])throw new Error("Cannot set ".concat(B," and ").concat(C," together"))})}if(s(this,x),(D=_.call(this,L)).name=L.name||"file",D._stream=new A,D._stream.setMaxListeners(30),D._onError=D._onError.bind(R(D)),L.filename||L.dirname)T("filename or dirname","stream"),D._basename=D.filename=L.filename?c.basename(L.filename):"winston.log",D.dirname=L.dirname||c.dirname(L.filename),D.options=L.options||{flags:"a"};else{if(!L.stream)throw new Error("Cannot log to file without filename or stream.");console.warn("options.stream will be removed in winston@4. Use winston.transports.Stream"),T("stream","filename","maxsize"),D._dest=D._stream.pipe(D._setupStream(L.stream)),D.dirname=c.dirname(D._dest.path)}return D.maxsize=L.maxsize||null,D.rotationFormat=L.rotationFormat||!1,D.zippedArchive=L.zippedArchive||!1,D.maxFiles=L.maxFiles||null,D.eol=L.eol||$.EOL,D.tailable=L.tailable||!1,D._size=0,D._pendingSize=0,D._created=0,D._drain=!1,D._opening=!1,D._ending=!1,D.dirname&&D._createLogDirIfNotExist(D.dirname),D.open(),D}return d=x,(O=[{key:"finishIfEnding",value:function(){var D=this;this._ending&&(this._opening?this.once("open",function(){D._stream.once("finish",function(){return D.emit("finish")}),n(function(){return D._stream.end()})}):(this._stream.once("finish",function(){return D.emit("finish")}),n(function(){return D._stream.end()})))}},{key:"log",value:function(D){var L=this,T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){};if(this.silent)return T(),!0;if(this._drain)this._stream.once("drain",function(){L._drain=!1,L.log(D,T)});else{if(!this._rotate){var C="".concat(D[P]).concat(this.eol),U=i.byteLength(C);this._pendingSize+=U,this._opening&&!this.rotatedWhileOpening&&this._needsNewFile(this._size+this._pendingSize)&&(this.rotatedWhileOpening=!0);var b=this._stream.write(C,f.bind(this));return b?T():(this._drain=!0,this._stream.once("drain",function(){L._drain=!1,T()})),N("written",b,this._drain),this.finishIfEnding(),b}this._stream.once("rotate",function(){L._rotate=!1,L.log(D,T)})}function f(){var B=this;this._size+=U,this._pendingSize-=U,N("logged %s %s",this._size,C),this.emit("logged",D),this._opening||this._needsNewFile()&&(this._rotate=!0,this._endStream(function(){return B._rotateFile()}))}}},{key:"query",value:function(D,L){typeof D=="function"&&(L=D,D={}),D=function(k){return(k=k||{}).rows=k.rows||k.limit||10,k.start=k.start||0,k.until=k.until||new Date,g(k.until)!=="object"&&(k.until=new Date(k.until)),k.from=k.from||k.until-864e5,g(k.from)!=="object"&&(k.from=new Date(k.from)),k.order=k.order||"desc",k}(D);var T=c.join(this.dirname,this.filename),C="",U=[],b=0,f=S.createReadStream(T,{encoding:"utf8"});function B(k,Y){try{var K=JSON.parse(k);(function(Q){if(Q&&g(Q)==="object"){var G=new Date(Q.timestamp);if(!(D.from&&G<D.from||D.until&&G>D.until||D.level&&D.level!==Q.level))return!0}})(K)&&function(Q){D.rows&&U.length>=D.rows&&D.order!=="desc"?f.readable&&f.destroy():(D.fields&&(Q=D.fields.reduce(function(G,V){return G[V]=Q[V],G},{})),D.order==="desc"&&U.length>=D.rows&&U.shift(),U.push(Q))}(K)}catch(Q){Y||f.emit("error",Q)}}f.on("error",function(k){if(f.readable&&f.destroy(),L)return k.code!=="ENOENT"?L(k):L(null,U)}),f.on("data",function(k){for(var Y=(k=(C+k).split(/\n+/)).length-1,K=0;K<Y;K++)(!D.start||b>=D.start)&&B(k[K]),b++;C=k[Y]}),f.on("close",function(){C&&B(C,!0),D.order==="desc"&&(U=U.reverse()),L&&L(null,U)})}},{key:"stream",value:function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},L=c.join(this.dirname,this.filename),T=new M,C={file:L,start:D.start};return T.destroy=q(C,function(U,b){if(U)return T.emit("error",U);try{T.emit("data",b),b=JSON.parse(b),T.emit("log",b)}catch(f){T.emit("error",f)}}),T}},{key:"open",value:function(){var D=this;this.filename&&(this._opening||(this._opening=!0,this.stat(function(L,T){if(L)return D.emit("error",L);N("stat done: %s { size: %s }",D.filename,T),D._size=T,D._dest=D._createStream(D._stream),D._opening=!1,D.once("open",function(){D._stream.eventNames().includes("rotate")?D._stream.emit("rotate"):D._rotate=!1})})))}},{key:"stat",value:function(D){var L=this,T=this._getFile(),C=c.join(this.dirname,T);S.stat(C,function(U,b){return U&&U.code==="ENOENT"?(N("ENOENT\xA0ok",C),L.filename=T,D(null,0)):U?(N("err ".concat(U.code," ").concat(C)),D(U)):!b||L._needsNewFile(b.size)?L._incFile(function(){return L.stat(D)}):(L.filename=T,void D(null,b.size))})}},{key:"close",value:function(D){var L=this;this._stream&&this._stream.end(function(){D&&D(),L.emit("flush"),L.emit("closed")})}},{key:"_needsNewFile",value:function(D){return D=D||this._size,this.maxsize&&D>=this.maxsize}},{key:"_onError",value:function(D){this.emit("error",D)}},{key:"_setupStream",value:function(D){return D.on("error",this._onError),D}},{key:"_cleanupStream",value:function(D){return D.removeListener("error",this._onError),D}},{key:"_rotateFile",value:function(){var D=this;this._incFile(function(){return D.open()})}},{key:"_endStream",value:function(){var D=this,L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){};this._dest?(this._stream.unpipe(this._dest),this._dest.end(function(){D._cleanupStream(D._dest),L()})):L()}},{key:"_createStream",value:function(D){var L=this,T=c.join(this.dirname,this.filename);N("create stream start",T,this.options);var C=S.createWriteStream(T,this.options).on("error",function(b){return N(b)}).on("close",function(){return N("close",C.path,C.bytesWritten)}).on("open",function(){N("file open ok",T),L.emit("open",T),D.pipe(C),L.rotatedWhileOpening&&(L._stream=new A,L._stream.setMaxListeners(30),L._rotateFile(),L.rotatedWhileOpening=!1,L._cleanupStream(C),D.end())});if(N("create stream ok",T),this.zippedArchive){var U=E.createGzip();return U.pipe(C),U}return C}},{key:"_incFile",value:function(D){N("_incFile",this.filename);var L=c.extname(this._basename),T=c.basename(this._basename,L);this.tailable?this._checkMaxFilesTailable(L,T,D):(this._created+=1,this._checkMaxFilesIncrementing(L,T,D))}},{key:"_getFile",value:function(){var D=c.extname(this._basename),L=c.basename(this._basename,D),T=this.rotationFormat?this.rotationFormat():this._created,C=!this.tailable&&this._created?"".concat(L).concat(T).concat(D):"".concat(L).concat(D);return this.zippedArchive&&!this.tailable?"".concat(C,".gz"):C}},{key:"_checkMaxFilesIncrementing",value:function(D,L,T){if(!this.maxFiles||this._created<this.maxFiles)return n(T);var C=this._created-this.maxFiles,U=C!==0?C:"",b=this.zippedArchive?".gz":"",f="".concat(L).concat(U).concat(D).concat(b),B=c.join(this.dirname,f);S.unlink(B,T)}},{key:"_checkMaxFilesTailable",value:function(D,L,T){var C=this,U=[];if(this.maxFiles){for(var b=this.zippedArchive?".gz":"",f=this.maxFiles-1;f>1;f--)U.push(function(B,k){var Y=this,K="".concat(L).concat(B-1).concat(D).concat(b),Q=c.join(this.dirname,K);S.exists(Q,function(G){if(!G)return k(null);K="".concat(L).concat(B).concat(D).concat(b),S.rename(Q,c.join(Y.dirname,K),k)})}.bind(this,f));w(U,function(){S.rename(c.join(C.dirname,"".concat(L).concat(D)),c.join(C.dirname,"".concat(L,"1").concat(D).concat(b)),T)})}}},{key:"_createLogDirIfNotExist",value:function(D){S.existsSync(D)||S.mkdirSync(D,{recursive:!0})}}])&&o(d.prototype,O),x}(p)}).call(this,r(12).setImmediate,r(4).Buffer)},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(s,o){return(0,n.default)(i.default,s,o)};var n=g(r(150)),i=g(r(154));function g(s){return s&&s.__esModule?s:{default:s}}e.exports=t.default},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=s(r(41)),i=s(r(23)),g=s(r(27));function s(o){return o&&o.__esModule?o:{default:o}}t.default=(0,g.default)((o,l,u)=>{var m=(0,n.default)(l)?[]:{};o(l,(R,y,S)=>{(0,i.default)(R)((c,...w)=>{w.length<2&&([w]=w),m[y]=w,S(c)})},R=>u(R,m))},3),e.exports=t.default},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(u){return(0,g.isAsync)(u)?function(...m){const R=m.pop();return o(u.apply(this,m),R)}:(0,n.default)(function(m,R){var y;try{y=u.apply(this,m)}catch(S){return R(S)}if(y&&typeof y.then=="function")return o(y,R);R(null,y)})};var n=s(r(152)),i=s(r(153)),g=r(23);function s(u){return u&&u.__esModule?u:{default:u}}function o(u,m){return u.then(R=>{l(m,null,R)},R=>{l(m,R&&R.message?R:new Error(R))})}function l(u,m,R){try{u(m,R)}catch(y){(0,i.default)(S=>{throw S},y)}}e.exports=t.default},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(n){return function(...i){var g=i.pop();return n.call(this,i,g)}},e.exports=t.default},function(e,t,r){(function(n,i){Object.defineProperty(t,"__esModule",{value:!0}),t.fallback=l,t.wrap=u;var g,s=t.hasSetImmediate=typeof n=="function"&&n,o=t.hasNextTick=typeof i=="object"&&typeof i.nextTick=="function";function l(m){setTimeout(m,0)}function u(m){return(R,...y)=>m(()=>R(...y))}g=s?n:o?i.nextTick:l,t.default=u(g)}).call(this,r(12).setImmediate,r(2))},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=g(r(64)),i=g(r(27));function g(s){return s&&s.__esModule?s:{default:s}}t.default=(0,i.default)(function(s,o,l){return(0,n.default)(s,1,o,l)},3),e.exports=t.default},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=u(r(65)),i=u(r(156)),g=u(r(66)),s=r(23),o=u(r(158)),l=u(r(42));function u(m){return m&&m.__esModule?m:{default:m}}t.default=m=>(R,y,S)=>{if(S=(0,n.default)(S),m<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!R)return S(null);if((0,s.isAsyncGenerator)(R))return(0,o.default)(R,m,y,S);if((0,s.isAsyncIterable)(R))return(0,o.default)(R[Symbol.asyncIterator](),m,y,S);var c=(0,i.default)(R),w=!1,E=!1,P=0,F=!1;function M(p,N){if(!E)if(P-=1,p)w=!0,S(p);else if(p===!1)w=!0,E=!0;else{if(N===l.default||w&&P<=0)return w=!0,S(null);F||A()}}function A(){for(F=!0;P<m&&!w;){var p=c();if(p===null)return w=!0,void(P<=0&&S(null));P+=1,y(p.value,p.key,(0,g.default)(M))}F=!1}A()},e.exports=t.default},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(s){if((0,n.default)(s))return function(y){var S=-1,c=y.length;return function(){return++S<c?{value:y[S],key:S}:null}}(s);var o=(0,i.default)(s);return o?function(y){var S=-1;return function(){var c=y.next();return c.done?null:(S++,{value:c.value,key:S})}}(o):(l=s,u=l?Object.keys(l):[],m=-1,R=u.length,function(){var y=u[++m];return m<R?{value:l[y],key:y}:null});var l,u,m,R};var n=g(r(41)),i=g(r(157));function g(s){return s&&s.__esModule?s:{default:s}}e.exports=t.default},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(n){return n[Symbol.iterator]&&n[Symbol.iterator]()},e.exports=t.default},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(s,o,l,u){let m=!1,R=!1,y=!1,S=0,c=0;function w(){S>=o||y||m||(y=!0,s.next().then(({value:F,done:M})=>{if(!R&&!m){if(y=!1,M)return m=!0,void(S<=0&&u(null));S++,l(F,c,E),c++,w()}}).catch(P))}function E(F,M){if(S-=1,!R)return F?P(F):F===!1?(m=!0,void(R=!0)):M===g.default||m&&S<=0?(m=!0,u(null)):void w()}function P(F){R||(y=!1,m=!0,u(F))}w()};var n,i=r(42),g=(n=i)&&n.__esModule?n:{default:n};e.exports=t.default},function(e,t,r){(function(n){var i=r(4).Buffer,g=r(160).Transform,s=r(168),o=r(9),l=r(72).ok,u=r(4).kMaxLength,m="Cannot create final Buffer. It would be larger than 0x"+u.toString(16)+" bytes";s.Z_MIN_WINDOWBITS=8,s.Z_MAX_WINDOWBITS=15,s.Z_DEFAULT_WINDOWBITS=15,s.Z_MIN_CHUNK=64,s.Z_MAX_CHUNK=1/0,s.Z_DEFAULT_CHUNK=16384,s.Z_MIN_MEMLEVEL=1,s.Z_MAX_MEMLEVEL=9,s.Z_DEFAULT_MEMLEVEL=8,s.Z_MIN_LEVEL=-1,s.Z_MAX_LEVEL=9,s.Z_DEFAULT_LEVEL=s.Z_DEFAULT_COMPRESSION;for(var R=Object.keys(s),y=0;y<R.length;y++){var S=R[y];S.match(/^Z/)&&Object.defineProperty(t,S,{enumerable:!0,value:s[S],writable:!1})}for(var c={Z_OK:s.Z_OK,Z_STREAM_END:s.Z_STREAM_END,Z_NEED_DICT:s.Z_NEED_DICT,Z_ERRNO:s.Z_ERRNO,Z_STREAM_ERROR:s.Z_STREAM_ERROR,Z_DATA_ERROR:s.Z_DATA_ERROR,Z_MEM_ERROR:s.Z_MEM_ERROR,Z_BUF_ERROR:s.Z_BUF_ERROR,Z_VERSION_ERROR:s.Z_VERSION_ERROR},w=Object.keys(c),E=0;E<w.length;E++){var P=w[E];c[c[P]]=P}function F(L,T,C){var U=[],b=0;function f(){for(var k;(k=L.read())!==null;)U.push(k),b+=k.length;L.once("readable",f)}function B(){var k,Y=null;b>=u?Y=new RangeError(m):k=i.concat(U,b),U=[],L.close(),C(Y,k)}L.on("error",function(k){L.removeListener("end",B),L.removeListener("readable",f),C(k)}),L.on("end",B),L.end(T),f()}function M(L,T){if(typeof T=="string"&&(T=i.from(T)),!i.isBuffer(T))throw new TypeError("Not a string or buffer");var C=L._finishFlushFlag;return L._processChunk(T,C)}function A(L){if(!(this instanceof A))return new A(L);_.call(this,L,s.DEFLATE)}function p(L){if(!(this instanceof p))return new p(L);_.call(this,L,s.INFLATE)}function N(L){if(!(this instanceof N))return new N(L);_.call(this,L,s.GZIP)}function $(L){if(!(this instanceof $))return new $(L);_.call(this,L,s.GUNZIP)}function q(L){if(!(this instanceof q))return new q(L);_.call(this,L,s.DEFLATERAW)}function h(L){if(!(this instanceof h))return new h(L);_.call(this,L,s.INFLATERAW)}function d(L){if(!(this instanceof d))return new d(L);_.call(this,L,s.UNZIP)}function O(L){return L===s.Z_NO_FLUSH||L===s.Z_PARTIAL_FLUSH||L===s.Z_SYNC_FLUSH||L===s.Z_FULL_FLUSH||L===s.Z_FINISH||L===s.Z_BLOCK}function _(L,T){var C=this;if(this._opts=L=L||{},this._chunkSize=L.chunkSize||t.Z_DEFAULT_CHUNK,g.call(this,L),L.flush&&!O(L.flush))throw new Error("Invalid flush flag: "+L.flush);if(L.finishFlush&&!O(L.finishFlush))throw new Error("Invalid flush flag: "+L.finishFlush);if(this._flushFlag=L.flush||s.Z_NO_FLUSH,this._finishFlushFlag=L.finishFlush!==void 0?L.finishFlush:s.Z_FINISH,L.chunkSize&&(L.chunkSize<t.Z_MIN_CHUNK||L.chunkSize>t.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+L.chunkSize);if(L.windowBits&&(L.windowBits<t.Z_MIN_WINDOWBITS||L.windowBits>t.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+L.windowBits);if(L.level&&(L.level<t.Z_MIN_LEVEL||L.level>t.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+L.level);if(L.memLevel&&(L.memLevel<t.Z_MIN_MEMLEVEL||L.memLevel>t.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+L.memLevel);if(L.strategy&&L.strategy!=t.Z_FILTERED&&L.strategy!=t.Z_HUFFMAN_ONLY&&L.strategy!=t.Z_RLE&&L.strategy!=t.Z_FIXED&&L.strategy!=t.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+L.strategy);if(L.dictionary&&!i.isBuffer(L.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._handle=new s.Zlib(T);var U=this;this._hadError=!1,this._handle.onerror=function(B,k){x(U),U._hadError=!0;var Y=new Error(B);Y.errno=k,Y.code=t.codes[k],U.emit("error",Y)};var b=t.Z_DEFAULT_COMPRESSION;typeof L.level=="number"&&(b=L.level);var f=t.Z_DEFAULT_STRATEGY;typeof L.strategy=="number"&&(f=L.strategy),this._handle.init(L.windowBits||t.Z_DEFAULT_WINDOWBITS,b,L.memLevel||t.Z_DEFAULT_MEMLEVEL,f,L.dictionary),this._buffer=i.allocUnsafe(this._chunkSize),this._offset=0,this._level=b,this._strategy=f,this.once("end",this.close),Object.defineProperty(this,"_closed",{get:function(){return!C._handle},configurable:!0,enumerable:!0})}function x(L,T){T&&n.nextTick(T),L._handle&&(L._handle.close(),L._handle=null)}function D(L){L.emit("close")}Object.defineProperty(t,"codes",{enumerable:!0,value:Object.freeze(c),writable:!1}),t.Deflate=A,t.Inflate=p,t.Gzip=N,t.Gunzip=$,t.DeflateRaw=q,t.InflateRaw=h,t.Unzip=d,t.createDeflate=function(L){return new A(L)},t.createInflate=function(L){return new p(L)},t.createDeflateRaw=function(L){return new q(L)},t.createInflateRaw=function(L){return new h(L)},t.createGzip=function(L){return new N(L)},t.createGunzip=function(L){return new $(L)},t.createUnzip=function(L){return new d(L)},t.deflate=function(L,T,C){return typeof T=="function"&&(C=T,T={}),F(new A(T),L,C)},t.deflateSync=function(L,T){return M(new A(T),L)},t.gzip=function(L,T,C){return typeof T=="function"&&(C=T,T={}),F(new N(T),L,C)},t.gzipSync=function(L,T){return M(new N(T),L)},t.deflateRaw=function(L,T,C){return typeof T=="function"&&(C=T,T={}),F(new q(T),L,C)},t.deflateRawSync=function(L,T){return M(new q(T),L)},t.unzip=function(L,T,C){return typeof T=="function"&&(C=T,T={}),F(new d(T),L,C)},t.unzipSync=function(L,T){return M(new d(T),L)},t.inflate=function(L,T,C){return typeof T=="function"&&(C=T,T={}),F(new p(T),L,C)},t.inflateSync=function(L,T){return M(new p(T),L)},t.gunzip=function(L,T,C){return typeof T=="function"&&(C=T,T={}),F(new $(T),L,C)},t.gunzipSync=function(L,T){return M(new $(T),L)},t.inflateRaw=function(L,T,C){return typeof T=="function"&&(C=T,T={}),F(new h(T),L,C)},t.inflateRawSync=function(L,T){return M(new h(T),L)},o.inherits(_,g),_.prototype.params=function(L,T,C){if(L<t.Z_MIN_LEVEL||L>t.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+L);if(T!=t.Z_FILTERED&&T!=t.Z_HUFFMAN_ONLY&&T!=t.Z_RLE&&T!=t.Z_FIXED&&T!=t.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+T);if(this._level!==L||this._strategy!==T){var U=this;this.flush(s.Z_SYNC_FLUSH,function(){l(U._handle,"zlib binding closed"),U._handle.params(L,T),U._hadError||(U._level=L,U._strategy=T,C&&C())})}else n.nextTick(C)},_.prototype.reset=function(){return l(this._handle,"zlib binding closed"),this._handle.reset()},_.prototype._flush=function(L){this._transform(i.alloc(0),"",L)},_.prototype.flush=function(L,T){var C=this,U=this._writableState;(typeof L=="function"||L===void 0&&!T)&&(T=L,L=s.Z_FULL_FLUSH),U.ended?T&&n.nextTick(T):U.ending?T&&this.once("end",T):U.needDrain?T&&this.once("drain",function(){return C.flush(L,T)}):(this._flushFlag=L,this.write(i.alloc(0),"",T))},_.prototype.close=function(L){x(this,L),n.nextTick(D,this)},_.prototype._transform=function(L,T,C){var U,b=this._writableState,f=(b.ending||b.ended)&&(!L||b.length===L.length);return L===null||i.isBuffer(L)?this._handle?(f?U=this._finishFlushFlag:(U=this._flushFlag,L.length>=b.length&&(this._flushFlag=this._opts.flush||s.Z_NO_FLUSH)),void this._processChunk(L,U,C)):C(new Error("zlib binding closed")):C(new Error("invalid input"))},_.prototype._processChunk=function(L,T,C){var U=L&&L.length,b=this._chunkSize-this._offset,f=0,B=this,k=typeof C=="function";if(!k){var Y,K=[],Q=0;this.on("error",function(W){Y=W}),l(this._handle,"zlib binding closed");do var G=this._handle.writeSync(T,L,f,U,this._buffer,this._offset,b);while(!this._hadError&&j(G[0],G[1]));if(this._hadError)throw Y;if(Q>=u)throw x(this),new RangeError(m);var V=i.concat(K,Q);return x(this),V}l(this._handle,"zlib binding closed");var v=this._handle.write(T,L,f,U,this._buffer,this._offset,b);function j(W,ee){if(this&&(this.buffer=null,this.callback=null),!B._hadError){var J=b-ee;if(l(J>=0,"have should not go down"),J>0){var re=B._buffer.slice(B._offset,B._offset+J);B._offset+=J,k?B.push(re):(K.push(re),Q+=re.length)}if((ee===0||B._offset>=B._chunkSize)&&(b=B._chunkSize,B._offset=0,B._buffer=i.allocUnsafe(B._chunkSize)),ee===0){if(f+=U-W,U=W,!k)return!0;var se=B._handle.write(T,L,f,U,B._buffer,B._offset,B._chunkSize);return se.callback=j,void(se.buffer=L)}if(!k)return!1;C()}}v.buffer=L,v.callback=j},o.inherits(A,_),o.inherits(p,_),o.inherits(N,_),o.inherits($,_),o.inherits(q,_),o.inherits(h,_),o.inherits(d,_)}).call(this,r(2))},function(e,t,r){e.exports=i;var n=r(18).EventEmitter;function i(){n.call(this)}r(6)(i,n),i.Readable=r(28),i.Writable=r(71),i.Duplex=r(165),i.Transform=r(166),i.PassThrough=r(167),i.Stream=i,i.prototype.pipe=function(g,s){var o=this;function l(w){g.writable&&g.write(w)===!1&&o.pause&&o.pause()}function u(){o.readable&&o.resume&&o.resume()}o.on("data",l),g.on("drain",u),g._isStdio||s&&s.end===!1||(o.on("end",R),o.on("close",y));var m=!1;function R(){m||(m=!0,g.end())}function y(){m||(m=!0,typeof g.destroy=="function"&&g.destroy())}function S(w){if(c(),n.listenerCount(this,"error")===0)throw w}function c(){o.removeListener("data",l),g.removeListener("drain",u),o.removeListener("end",R),o.removeListener("close",y),o.removeListener("error",S),g.removeListener("error",S),o.removeListener("end",c),o.removeListener("close",c),g.removeListener("close",c)}return o.on("error",S),g.on("error",S),o.on("end",c),o.on("close",c),g.on("close",c),g.emit("pipe",o),g}},function(e,t){},function(e,t,r){var n=r(43).Buffer,i=r(163);e.exports=function(){function g(){(function(s,o){if(!(s instanceof o))throw new TypeError("Cannot call a class as a function")})(this,g),this.head=null,this.tail=null,this.length=0}return g.prototype.push=function(s){var o={data:s,next:null};this.length>0?this.tail.next=o:this.head=o,this.tail=o,++this.length},g.prototype.unshift=function(s){var o={data:s,next:this.head};this.length===0&&(this.tail=o),this.head=o,++this.length},g.prototype.shift=function(){if(this.length!==0){var s=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,s}},g.prototype.clear=function(){this.head=this.tail=null,this.length=0},g.prototype.join=function(s){if(this.length===0)return"";for(var o=this.head,l=""+o.data;o=o.next;)l+=s+o.data;return l},g.prototype.concat=function(s){if(this.length===0)return n.alloc(0);if(this.length===1)return this.head.data;for(var o,l,u,m=n.allocUnsafe(s>>>0),R=this.head,y=0;R;)o=R.data,l=m,u=y,o.copy(l,u),y+=R.data.length,R=R.next;return m},g}(),i&&i.inspect&&i.inspect.custom&&(e.exports.prototype[i.inspect.custom]=function(){var g=i.inspect({length:this.length});return this.constructor.name+" "+g})},function(e,t){},function(e,t,r){e.exports=g;var n=r(70),i=r(14);function g(s){if(!(this instanceof g))return new g(s);n.call(this,s)}i.inherits=r(6),i.inherits(g,n),g.prototype._transform=function(s,o,l){l(null,s)}},function(e,t,r){e.exports=r(20)},function(e,t,r){e.exports=r(28).Transform},function(e,t,r){e.exports=r(28).PassThrough},function(e,t,r){(function(n,i){var g=r(72),s=r(170),o=r(171),l=r(174),u=r(177);for(var m in u)t[m]=u[m];t.NONE=0,t.DEFLATE=1,t.INFLATE=2,t.GZIP=3,t.GUNZIP=4,t.DEFLATERAW=5,t.INFLATERAW=6,t.UNZIP=7;function R(y){if(typeof y!="number"||y<t.DEFLATE||y>t.UNZIP)throw new TypeError("Bad argument");this.dictionary=null,this.err=0,this.flush=0,this.init_done=!1,this.level=0,this.memLevel=0,this.mode=y,this.strategy=0,this.windowBits=0,this.write_in_progress=!1,this.pending_close=!1,this.gzip_id_bytes_read=0}R.prototype.close=function(){this.write_in_progress?this.pending_close=!0:(this.pending_close=!1,g(this.init_done,"close before init"),g(this.mode<=t.UNZIP),this.mode===t.DEFLATE||this.mode===t.GZIP||this.mode===t.DEFLATERAW?o.deflateEnd(this.strm):this.mode!==t.INFLATE&&this.mode!==t.GUNZIP&&this.mode!==t.INFLATERAW&&this.mode!==t.UNZIP||l.inflateEnd(this.strm),this.mode=t.NONE,this.dictionary=null)},R.prototype.write=function(y,S,c,w,E,P,F){return this._write(!0,y,S,c,w,E,P,F)},R.prototype.writeSync=function(y,S,c,w,E,P,F){return this._write(!1,y,S,c,w,E,P,F)},R.prototype._write=function(y,S,c,w,E,P,F,M){if(g.equal(arguments.length,8),g(this.init_done,"write before init"),g(this.mode!==t.NONE,"already finalized"),g.equal(!1,this.write_in_progress,"write already in progress"),g.equal(!1,this.pending_close,"close is pending"),this.write_in_progress=!0,g.equal(!1,S===void 0,"must provide flush value"),this.write_in_progress=!0,S!==t.Z_NO_FLUSH&&S!==t.Z_PARTIAL_FLUSH&&S!==t.Z_SYNC_FLUSH&&S!==t.Z_FULL_FLUSH&&S!==t.Z_FINISH&&S!==t.Z_BLOCK)throw new Error("Invalid flush value");if(c==null&&(c=n.alloc(0),E=0,w=0),this.strm.avail_in=E,this.strm.input=c,this.strm.next_in=w,this.strm.avail_out=M,this.strm.output=P,this.strm.next_out=F,this.flush=S,!y)return this._process(),this._checkError()?this._afterSync():void 0;var A=this;return i.nextTick(function(){A._process(),A._after()}),this},R.prototype._afterSync=function(){var y=this.strm.avail_out,S=this.strm.avail_in;return this.write_in_progress=!1,[S,y]},R.prototype._process=function(){var y=null;switch(this.mode){case t.DEFLATE:case t.GZIP:case t.DEFLATERAW:this.err=o.deflate(this.strm,this.flush);break;case t.UNZIP:switch(this.strm.avail_in>0&&(y=this.strm.next_in),this.gzip_id_bytes_read){case 0:if(y===null)break;if(this.strm.input[y]!==31){this.mode=t.INFLATE;break}if(this.gzip_id_bytes_read=1,y++,this.strm.avail_in===1)break;case 1:if(y===null)break;this.strm.input[y]===139?(this.gzip_id_bytes_read=2,this.mode=t.GUNZIP):this.mode=t.INFLATE;break;default:throw new Error("invalid number of gzip magic number bytes read")}case t.INFLATE:case t.GUNZIP:case t.INFLATERAW:for(this.err=l.inflate(this.strm,this.flush),this.err===t.Z_NEED_DICT&&this.dictionary&&(this.err=l.inflateSetDictionary(this.strm,this.dictionary),this.err===t.Z_OK?this.err=l.inflate(this.strm,this.flush):this.err===t.Z_DATA_ERROR&&(this.err=t.Z_NEED_DICT));this.strm.avail_in>0&&this.mode===t.GUNZIP&&this.err===t.Z_STREAM_END&&this.strm.next_in[0]!==0;)this.reset(),this.err=l.inflate(this.strm,this.flush);break;default:throw new Error("Unknown mode "+this.mode)}},R.prototype._checkError=function(){switch(this.err){case t.Z_OK:case t.Z_BUF_ERROR:if(this.strm.avail_out!==0&&this.flush===t.Z_FINISH)return this._error("unexpected end of file"),!1;break;case t.Z_STREAM_END:break;case t.Z_NEED_DICT:return this.dictionary==null?this._error("Missing dictionary"):this._error("Bad dictionary"),!1;default:return this._error("Zlib error"),!1}return!0},R.prototype._after=function(){if(this._checkError()){var y=this.strm.avail_out,S=this.strm.avail_in;this.write_in_progress=!1,this.callback(S,y),this.pending_close&&this.close()}},R.prototype._error=function(y){this.strm.msg&&(y=this.strm.msg),this.onerror(y,this.err),this.write_in_progress=!1,this.pending_close&&this.close()},R.prototype.init=function(y,S,c,w,E){g(arguments.length===4||arguments.length===5,"init(windowBits, level, memLevel, strategy, [dictionary])"),g(y>=8&&y<=15,"invalid windowBits"),g(S>=-1&&S<=9,"invalid compression level"),g(c>=1&&c<=9,"invalid memlevel"),g(w===t.Z_FILTERED||w===t.Z_HUFFMAN_ONLY||w===t.Z_RLE||w===t.Z_FIXED||w===t.Z_DEFAULT_STRATEGY,"invalid strategy"),this._init(S,y,c,w,E),this._setDictionary()},R.prototype.params=function(){throw new Error("deflateParams Not supported")},R.prototype.reset=function(){this._reset(),this._setDictionary()},R.prototype._init=function(y,S,c,w,E){switch(this.level=y,this.windowBits=S,this.memLevel=c,this.strategy=w,this.flush=t.Z_NO_FLUSH,this.err=t.Z_OK,this.mode!==t.GZIP&&this.mode!==t.GUNZIP||(this.windowBits+=16),this.mode===t.UNZIP&&(this.windowBits+=32),this.mode!==t.DEFLATERAW&&this.mode!==t.INFLATERAW||(this.windowBits=-1*this.windowBits),this.strm=new s,this.mode){case t.DEFLATE:case t.GZIP:case t.DEFLATERAW:this.err=o.deflateInit2(this.strm,this.level,t.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case t.INFLATE:case t.GUNZIP:case t.INFLATERAW:case t.UNZIP:this.err=l.inflateInit2(this.strm,this.windowBits);break;default:throw new Error("Unknown mode "+this.mode)}this.err!==t.Z_OK&&this._error("Init error"),this.dictionary=E,this.write_in_progress=!1,this.init_done=!0},R.prototype._setDictionary=function(){if(this.dictionary!=null){switch(this.err=t.Z_OK,this.mode){case t.DEFLATE:case t.DEFLATERAW:this.err=o.deflateSetDictionary(this.strm,this.dictionary)}this.err!==t.Z_OK&&this._error("Failed to set dictionary")}},R.prototype._reset=function(){switch(this.err=t.Z_OK,this.mode){case t.DEFLATE:case t.DEFLATERAW:case t.GZIP:this.err=o.deflateReset(this.strm);break;case t.INFLATE:case t.INFLATERAW:case t.GUNZIP:this.err=l.inflateReset(this.strm)}this.err!==t.Z_OK&&this._error("Failed to reset stream")},t.Zlib=R}).call(this,r(4).Buffer,r(2))},function(e,t,r){var n=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,g=Object.prototype.propertyIsEnumerable;function s(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}e.exports=function(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var l={},u=0;u<10;u++)l["_"+String.fromCharCode(u)]=u;if(Object.getOwnPropertyNames(l).map(function(R){return l[R]}).join("")!=="0123456789")return!1;var m={};return"abcdefghijklmnopqrst".split("").forEach(function(R){m[R]=R}),Object.keys(Object.assign({},m)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}()?Object.assign:function(o,l){for(var u,m,R=s(o),y=1;y<arguments.length;y++){for(var S in u=Object(arguments[y]))i.call(u,S)&&(R[S]=u[S]);if(n){m=n(u);for(var c=0;c<m.length;c++)g.call(u,m[c])&&(R[m[c]]=u[m[c]])}}return R}},function(e,t,r){e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},function(e,t,r){var n,i=r(33),g=r(172),s=r(73),o=r(74),l=r(173);function u(h,d){return h.msg=l[d],d}function m(h){return(h<<1)-(h>4?9:0)}function R(h){for(var d=h.length;--d>=0;)h[d]=0}function y(h){var d=h.state,O=d.pending;O>h.avail_out&&(O=h.avail_out),O!==0&&(i.arraySet(h.output,d.pending_buf,d.pending_out,O,h.next_out),h.next_out+=O,d.pending_out+=O,h.total_out+=O,h.avail_out-=O,d.pending-=O,d.pending===0&&(d.pending_out=0))}function S(h,d){g._tr_flush_block(h,h.block_start>=0?h.block_start:-1,h.strstart-h.block_start,d),h.block_start=h.strstart,y(h.strm)}function c(h,d){h.pending_buf[h.pending++]=d}function w(h,d){h.pending_buf[h.pending++]=d>>>8&255,h.pending_buf[h.pending++]=255&d}function E(h,d){var O,_,x=h.max_chain_length,D=h.strstart,L=h.prev_length,T=h.nice_match,C=h.strstart>h.w_size-262?h.strstart-(h.w_size-262):0,U=h.window,b=h.w_mask,f=h.prev,B=h.strstart+258,k=U[D+L-1],Y=U[D+L];h.prev_length>=h.good_match&&(x>>=2),T>h.lookahead&&(T=h.lookahead);do if(U[(O=d)+L]===Y&&U[O+L-1]===k&&U[O]===U[D]&&U[++O]===U[D+1]){D+=2,O++;do;while(U[++D]===U[++O]&&U[++D]===U[++O]&&U[++D]===U[++O]&&U[++D]===U[++O]&&U[++D]===U[++O]&&U[++D]===U[++O]&&U[++D]===U[++O]&&U[++D]===U[++O]&&D<B);if(_=258-(B-D),D=B-258,_>L){if(h.match_start=d,L=_,_>=T)break;k=U[D+L-1],Y=U[D+L]}}while((d=f[d&b])>C&&--x!=0);return L<=h.lookahead?L:h.lookahead}function P(h){var d,O,_,x,D,L,T,C,U,b,f=h.w_size;do{if(x=h.window_size-h.lookahead-h.strstart,h.strstart>=f+(f-262)){i.arraySet(h.window,h.window,f,f,0),h.match_start-=f,h.strstart-=f,h.block_start-=f,d=O=h.hash_size;do _=h.head[--d],h.head[d]=_>=f?_-f:0;while(--O);d=O=f;do _=h.prev[--d],h.prev[d]=_>=f?_-f:0;while(--O);x+=f}if(h.strm.avail_in===0)break;if(L=h.strm,T=h.window,C=h.strstart+h.lookahead,U=x,b=void 0,(b=L.avail_in)>U&&(b=U),O=b===0?0:(L.avail_in-=b,i.arraySet(T,L.input,L.next_in,b,C),L.state.wrap===1?L.adler=s(L.adler,T,b,C):L.state.wrap===2&&(L.adler=o(L.adler,T,b,C)),L.next_in+=b,L.total_in+=b,b),h.lookahead+=O,h.lookahead+h.insert>=3)for(D=h.strstart-h.insert,h.ins_h=h.window[D],h.ins_h=(h.ins_h<<h.hash_shift^h.window[D+1])&h.hash_mask;h.insert&&(h.ins_h=(h.ins_h<<h.hash_shift^h.window[D+3-1])&h.hash_mask,h.prev[D&h.w_mask]=h.head[h.ins_h],h.head[h.ins_h]=D,D++,h.insert--,!(h.lookahead+h.insert<3)););}while(h.lookahead<262&&h.strm.avail_in!==0)}function F(h,d){for(var O,_;;){if(h.lookahead<262){if(P(h),h.lookahead<262&&d===0)return 1;if(h.lookahead===0)break}if(O=0,h.lookahead>=3&&(h.ins_h=(h.ins_h<<h.hash_shift^h.window[h.strstart+3-1])&h.hash_mask,O=h.prev[h.strstart&h.w_mask]=h.head[h.ins_h],h.head[h.ins_h]=h.strstart),O!==0&&h.strstart-O<=h.w_size-262&&(h.match_length=E(h,O)),h.match_length>=3)if(_=g._tr_tally(h,h.strstart-h.match_start,h.match_length-3),h.lookahead-=h.match_length,h.match_length<=h.max_lazy_match&&h.lookahead>=3){h.match_length--;do h.strstart++,h.ins_h=(h.ins_h<<h.hash_shift^h.window[h.strstart+3-1])&h.hash_mask,O=h.prev[h.strstart&h.w_mask]=h.head[h.ins_h],h.head[h.ins_h]=h.strstart;while(--h.match_length!=0);h.strstart++}else h.strstart+=h.match_length,h.match_length=0,h.ins_h=h.window[h.strstart],h.ins_h=(h.ins_h<<h.hash_shift^h.window[h.strstart+1])&h.hash_mask;else _=g._tr_tally(h,0,h.window[h.strstart]),h.lookahead--,h.strstart++;if(_&&(S(h,!1),h.strm.avail_out===0))return 1}return h.insert=h.strstart<2?h.strstart:2,d===4?(S(h,!0),h.strm.avail_out===0?3:4):h.last_lit&&(S(h,!1),h.strm.avail_out===0)?1:2}function M(h,d){for(var O,_,x;;){if(h.lookahead<262){if(P(h),h.lookahead<262&&d===0)return 1;if(h.lookahead===0)break}if(O=0,h.lookahead>=3&&(h.ins_h=(h.ins_h<<h.hash_shift^h.window[h.strstart+3-1])&h.hash_mask,O=h.prev[h.strstart&h.w_mask]=h.head[h.ins_h],h.head[h.ins_h]=h.strstart),h.prev_length=h.match_length,h.prev_match=h.match_start,h.match_length=2,O!==0&&h.prev_length<h.max_lazy_match&&h.strstart-O<=h.w_size-262&&(h.match_length=E(h,O),h.match_length<=5&&(h.strategy===1||h.match_length===3&&h.strstart-h.match_start>4096)&&(h.match_length=2)),h.prev_length>=3&&h.match_length<=h.prev_length){x=h.strstart+h.lookahead-3,_=g._tr_tally(h,h.strstart-1-h.prev_match,h.prev_length-3),h.lookahead-=h.prev_length-1,h.prev_length-=2;do++h.strstart<=x&&(h.ins_h=(h.ins_h<<h.hash_shift^h.window[h.strstart+3-1])&h.hash_mask,O=h.prev[h.strstart&h.w_mask]=h.head[h.ins_h],h.head[h.ins_h]=h.strstart);while(--h.prev_length!=0);if(h.match_available=0,h.match_length=2,h.strstart++,_&&(S(h,!1),h.strm.avail_out===0))return 1}else if(h.match_available){if((_=g._tr_tally(h,0,h.window[h.strstart-1]))&&S(h,!1),h.strstart++,h.lookahead--,h.strm.avail_out===0)return 1}else h.match_available=1,h.strstart++,h.lookahead--}return h.match_available&&(_=g._tr_tally(h,0,h.window[h.strstart-1]),h.match_available=0),h.insert=h.strstart<2?h.strstart:2,d===4?(S(h,!0),h.strm.avail_out===0?3:4):h.last_lit&&(S(h,!1),h.strm.avail_out===0)?1:2}function A(h,d,O,_,x){this.good_length=h,this.max_lazy=d,this.nice_length=O,this.max_chain=_,this.func=x}function p(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(1146),this.dyn_dtree=new i.Buf16(122),this.bl_tree=new i.Buf16(78),R(this.dyn_ltree),R(this.dyn_dtree),R(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(16),this.heap=new i.Buf16(573),R(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(573),R(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function N(h){var d;return h&&h.state?(h.total_in=h.total_out=0,h.data_type=2,(d=h.state).pending=0,d.pending_out=0,d.wrap<0&&(d.wrap=-d.wrap),d.status=d.wrap?42:113,h.adler=d.wrap===2?0:1,d.last_flush=0,g._tr_init(d),0):u(h,-2)}function $(h){var d,O=N(h);return O===0&&((d=h.state).window_size=2*d.w_size,R(d.head),d.max_lazy_match=n[d.level].max_lazy,d.good_match=n[d.level].good_length,d.nice_match=n[d.level].nice_length,d.max_chain_length=n[d.level].max_chain,d.strstart=0,d.block_start=0,d.lookahead=0,d.insert=0,d.match_length=d.prev_length=2,d.match_available=0,d.ins_h=0),O}function q(h,d,O,_,x,D){if(!h)return-2;var L=1;if(d===-1&&(d=6),_<0?(L=0,_=-_):_>15&&(L=2,_-=16),x<1||x>9||O!==8||_<8||_>15||d<0||d>9||D<0||D>4)return u(h,-2);_===8&&(_=9);var T=new p;return h.state=T,T.strm=h,T.wrap=L,T.gzhead=null,T.w_bits=_,T.w_size=1<<T.w_bits,T.w_mask=T.w_size-1,T.hash_bits=x+7,T.hash_size=1<<T.hash_bits,T.hash_mask=T.hash_size-1,T.hash_shift=~~((T.hash_bits+3-1)/3),T.window=new i.Buf8(2*T.w_size),T.head=new i.Buf16(T.hash_size),T.prev=new i.Buf16(T.w_size),T.lit_bufsize=1<<x+6,T.pending_buf_size=4*T.lit_bufsize,T.pending_buf=new i.Buf8(T.pending_buf_size),T.d_buf=1*T.lit_bufsize,T.l_buf=3*T.lit_bufsize,T.level=d,T.strategy=D,T.method=O,$(h)}n=[new A(0,0,0,0,function(h,d){var O=65535;for(O>h.pending_buf_size-5&&(O=h.pending_buf_size-5);;){if(h.lookahead<=1){if(P(h),h.lookahead===0&&d===0)return 1;if(h.lookahead===0)break}h.strstart+=h.lookahead,h.lookahead=0;var _=h.block_start+O;if((h.strstart===0||h.strstart>=_)&&(h.lookahead=h.strstart-_,h.strstart=_,S(h,!1),h.strm.avail_out===0)||h.strstart-h.block_start>=h.w_size-262&&(S(h,!1),h.strm.avail_out===0))return 1}return h.insert=0,d===4?(S(h,!0),h.strm.avail_out===0?3:4):(h.strstart>h.block_start&&(S(h,!1),h.strm.avail_out),1)}),new A(4,4,8,4,F),new A(4,5,16,8,F),new A(4,6,32,32,F),new A(4,4,16,16,M),new A(8,16,32,32,M),new A(8,16,128,128,M),new A(8,32,128,256,M),new A(32,128,258,1024,M),new A(32,258,258,4096,M)],t.deflateInit=function(h,d){return q(h,d,8,15,8,0)},t.deflateInit2=q,t.deflateReset=$,t.deflateResetKeep=N,t.deflateSetHeader=function(h,d){return h&&h.state?h.state.wrap!==2?-2:(h.state.gzhead=d,0):-2},t.deflate=function(h,d){var O,_,x,D;if(!h||!h.state||d>5||d<0)return h?u(h,-2):-2;if(_=h.state,!h.output||!h.input&&h.avail_in!==0||_.status===666&&d!==4)return u(h,h.avail_out===0?-5:-2);if(_.strm=h,O=_.last_flush,_.last_flush=d,_.status===42)if(_.wrap===2)h.adler=0,c(_,31),c(_,139),c(_,8),_.gzhead?(c(_,(_.gzhead.text?1:0)+(_.gzhead.hcrc?2:0)+(_.gzhead.extra?4:0)+(_.gzhead.name?8:0)+(_.gzhead.comment?16:0)),c(_,255&_.gzhead.time),c(_,_.gzhead.time>>8&255),c(_,_.gzhead.time>>16&255),c(_,_.gzhead.time>>24&255),c(_,_.level===9?2:_.strategy>=2||_.level<2?4:0),c(_,255&_.gzhead.os),_.gzhead.extra&&_.gzhead.extra.length&&(c(_,255&_.gzhead.extra.length),c(_,_.gzhead.extra.length>>8&255)),_.gzhead.hcrc&&(h.adler=o(h.adler,_.pending_buf,_.pending,0)),_.gzindex=0,_.status=69):(c(_,0),c(_,0),c(_,0),c(_,0),c(_,0),c(_,_.level===9?2:_.strategy>=2||_.level<2?4:0),c(_,3),_.status=113);else{var L=8+(_.w_bits-8<<4)<<8;L|=(_.strategy>=2||_.level<2?0:_.level<6?1:_.level===6?2:3)<<6,_.strstart!==0&&(L|=32),L+=31-L%31,_.status=113,w(_,L),_.strstart!==0&&(w(_,h.adler>>>16),w(_,65535&h.adler)),h.adler=1}if(_.status===69)if(_.gzhead.extra){for(x=_.pending;_.gzindex<(65535&_.gzhead.extra.length)&&(_.pending!==_.pending_buf_size||(_.gzhead.hcrc&&_.pending>x&&(h.adler=o(h.adler,_.pending_buf,_.pending-x,x)),y(h),x=_.pending,_.pending!==_.pending_buf_size));)c(_,255&_.gzhead.extra[_.gzindex]),_.gzindex++;_.gzhead.hcrc&&_.pending>x&&(h.adler=o(h.adler,_.pending_buf,_.pending-x,x)),_.gzindex===_.gzhead.extra.length&&(_.gzindex=0,_.status=73)}else _.status=73;if(_.status===73)if(_.gzhead.name){x=_.pending;do{if(_.pending===_.pending_buf_size&&(_.gzhead.hcrc&&_.pending>x&&(h.adler=o(h.adler,_.pending_buf,_.pending-x,x)),y(h),x=_.pending,_.pending===_.pending_buf_size)){D=1;break}D=_.gzindex<_.gzhead.name.length?255&_.gzhead.name.charCodeAt(_.gzindex++):0,c(_,D)}while(D!==0);_.gzhead.hcrc&&_.pending>x&&(h.adler=o(h.adler,_.pending_buf,_.pending-x,x)),D===0&&(_.gzindex=0,_.status=91)}else _.status=91;if(_.status===91)if(_.gzhead.comment){x=_.pending;do{if(_.pending===_.pending_buf_size&&(_.gzhead.hcrc&&_.pending>x&&(h.adler=o(h.adler,_.pending_buf,_.pending-x,x)),y(h),x=_.pending,_.pending===_.pending_buf_size)){D=1;break}D=_.gzindex<_.gzhead.comment.length?255&_.gzhead.comment.charCodeAt(_.gzindex++):0,c(_,D)}while(D!==0);_.gzhead.hcrc&&_.pending>x&&(h.adler=o(h.adler,_.pending_buf,_.pending-x,x)),D===0&&(_.status=103)}else _.status=103;if(_.status===103&&(_.gzhead.hcrc?(_.pending+2>_.pending_buf_size&&y(h),_.pending+2<=_.pending_buf_size&&(c(_,255&h.adler),c(_,h.adler>>8&255),h.adler=0,_.status=113)):_.status=113),_.pending!==0){if(y(h),h.avail_out===0)return _.last_flush=-1,0}else if(h.avail_in===0&&m(d)<=m(O)&&d!==4)return u(h,-5);if(_.status===666&&h.avail_in!==0)return u(h,-5);if(h.avail_in!==0||_.lookahead!==0||d!==0&&_.status!==666){var T=_.strategy===2?function(C,U){for(var b;;){if(C.lookahead===0&&(P(C),C.lookahead===0)){if(U===0)return 1;break}if(C.match_length=0,b=g._tr_tally(C,0,C.window[C.strstart]),C.lookahead--,C.strstart++,b&&(S(C,!1),C.strm.avail_out===0))return 1}return C.insert=0,U===4?(S(C,!0),C.strm.avail_out===0?3:4):C.last_lit&&(S(C,!1),C.strm.avail_out===0)?1:2}(_,d):_.strategy===3?function(C,U){for(var b,f,B,k,Y=C.window;;){if(C.lookahead<=258){if(P(C),C.lookahead<=258&&U===0)return 1;if(C.lookahead===0)break}if(C.match_length=0,C.lookahead>=3&&C.strstart>0&&(f=Y[B=C.strstart-1])===Y[++B]&&f===Y[++B]&&f===Y[++B]){k=C.strstart+258;do;while(f===Y[++B]&&f===Y[++B]&&f===Y[++B]&&f===Y[++B]&&f===Y[++B]&&f===Y[++B]&&f===Y[++B]&&f===Y[++B]&&B<k);C.match_length=258-(k-B),C.match_length>C.lookahead&&(C.match_length=C.lookahead)}if(C.match_length>=3?(b=g._tr_tally(C,1,C.match_length-3),C.lookahead-=C.match_length,C.strstart+=C.match_length,C.match_length=0):(b=g._tr_tally(C,0,C.window[C.strstart]),C.lookahead--,C.strstart++),b&&(S(C,!1),C.strm.avail_out===0))return 1}return C.insert=0,U===4?(S(C,!0),C.strm.avail_out===0?3:4):C.last_lit&&(S(C,!1),C.strm.avail_out===0)?1:2}(_,d):n[_.level].func(_,d);if(T!==3&&T!==4||(_.status=666),T===1||T===3)return h.avail_out===0&&(_.last_flush=-1),0;if(T===2&&(d===1?g._tr_align(_):d!==5&&(g._tr_stored_block(_,0,0,!1),d===3&&(R(_.head),_.lookahead===0&&(_.strstart=0,_.block_start=0,_.insert=0))),y(h),h.avail_out===0))return _.last_flush=-1,0}return d!==4?0:_.wrap<=0?1:(_.wrap===2?(c(_,255&h.adler),c(_,h.adler>>8&255),c(_,h.adler>>16&255),c(_,h.adler>>24&255),c(_,255&h.total_in),c(_,h.total_in>>8&255),c(_,h.total_in>>16&255),c(_,h.total_in>>24&255)):(w(_,h.adler>>>16),w(_,65535&h.adler)),y(h),_.wrap>0&&(_.wrap=-_.wrap),_.pending!==0?0:1)},t.deflateEnd=function(h){var d;return h&&h.state?(d=h.state.status)!==42&&d!==69&&d!==73&&d!==91&&d!==103&&d!==113&&d!==666?u(h,-2):(h.state=null,d===113?u(h,-3):0):-2},t.deflateSetDictionary=function(h,d){var O,_,x,D,L,T,C,U,b=d.length;if(!h||!h.state||(D=(O=h.state).wrap)===2||D===1&&O.status!==42||O.lookahead)return-2;for(D===1&&(h.adler=s(h.adler,d,b,0)),O.wrap=0,b>=O.w_size&&(D===0&&(R(O.head),O.strstart=0,O.block_start=0,O.insert=0),U=new i.Buf8(O.w_size),i.arraySet(U,d,b-O.w_size,O.w_size,0),d=U,b=O.w_size),L=h.avail_in,T=h.next_in,C=h.input,h.avail_in=b,h.next_in=0,h.input=d,P(O);O.lookahead>=3;){_=O.strstart,x=O.lookahead-2;do O.ins_h=(O.ins_h<<O.hash_shift^O.window[_+3-1])&O.hash_mask,O.prev[_&O.w_mask]=O.head[O.ins_h],O.head[O.ins_h]=_,_++;while(--x);O.strstart=_,O.lookahead=2,P(O)}return O.strstart+=O.lookahead,O.block_start=O.strstart,O.insert=O.lookahead,O.lookahead=0,O.match_length=O.prev_length=2,O.match_available=0,h.next_in=T,h.input=C,h.avail_in=L,O.wrap=D,0},t.deflateInfo="pako deflate (from Nodeca project)"},function(e,t,r){var n=r(33);function i(f){for(var B=f.length;--B>=0;)f[B]=0}var g=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],s=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],l=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],u=new Array(576);i(u);var m=new Array(60);i(m);var R=new Array(512);i(R);var y=new Array(256);i(y);var S=new Array(29);i(S);var c,w,E,P=new Array(30);function F(f,B,k,Y,K){this.static_tree=f,this.extra_bits=B,this.extra_base=k,this.elems=Y,this.max_length=K,this.has_stree=f&&f.length}function M(f,B){this.dyn_tree=f,this.max_code=0,this.stat_desc=B}function A(f){return f<256?R[f]:R[256+(f>>>7)]}function p(f,B){f.pending_buf[f.pending++]=255&B,f.pending_buf[f.pending++]=B>>>8&255}function N(f,B,k){f.bi_valid>16-k?(f.bi_buf|=B<<f.bi_valid&65535,p(f,f.bi_buf),f.bi_buf=B>>16-f.bi_valid,f.bi_valid+=k-16):(f.bi_buf|=B<<f.bi_valid&65535,f.bi_valid+=k)}function $(f,B,k){N(f,k[2*B],k[2*B+1])}function q(f,B){var k=0;do k|=1&f,f>>>=1,k<<=1;while(--B>0);return k>>>1}function h(f,B,k){var Y,K,Q=new Array(16),G=0;for(Y=1;Y<=15;Y++)Q[Y]=G=G+k[Y-1]<<1;for(K=0;K<=B;K++){var V=f[2*K+1];V!==0&&(f[2*K]=q(Q[V]++,V))}}function d(f){var B;for(B=0;B<286;B++)f.dyn_ltree[2*B]=0;for(B=0;B<30;B++)f.dyn_dtree[2*B]=0;for(B=0;B<19;B++)f.bl_tree[2*B]=0;f.dyn_ltree[512]=1,f.opt_len=f.static_len=0,f.last_lit=f.matches=0}function O(f){f.bi_valid>8?p(f,f.bi_buf):f.bi_valid>0&&(f.pending_buf[f.pending++]=f.bi_buf),f.bi_buf=0,f.bi_valid=0}function _(f,B,k,Y){var K=2*B,Q=2*k;return f[K]<f[Q]||f[K]===f[Q]&&Y[B]<=Y[k]}function x(f,B,k){for(var Y=f.heap[k],K=k<<1;K<=f.heap_len&&(K<f.heap_len&&_(B,f.heap[K+1],f.heap[K],f.depth)&&K++,!_(B,Y,f.heap[K],f.depth));)f.heap[k]=f.heap[K],k=K,K<<=1;f.heap[k]=Y}function D(f,B,k){var Y,K,Q,G,V=0;if(f.last_lit!==0)do Y=f.pending_buf[f.d_buf+2*V]<<8|f.pending_buf[f.d_buf+2*V+1],K=f.pending_buf[f.l_buf+V],V++,Y===0?$(f,K,B):($(f,(Q=y[K])+256+1,B),(G=g[Q])!==0&&N(f,K-=S[Q],G),$(f,Q=A(--Y),k),(G=s[Q])!==0&&N(f,Y-=P[Q],G));while(V<f.last_lit);$(f,256,B)}function L(f,B){var k,Y,K,Q=B.dyn_tree,G=B.stat_desc.static_tree,V=B.stat_desc.has_stree,v=B.stat_desc.elems,j=-1;for(f.heap_len=0,f.heap_max=573,k=0;k<v;k++)Q[2*k]!==0?(f.heap[++f.heap_len]=j=k,f.depth[k]=0):Q[2*k+1]=0;for(;f.heap_len<2;)Q[2*(K=f.heap[++f.heap_len]=j<2?++j:0)]=1,f.depth[K]=0,f.opt_len--,V&&(f.static_len-=G[2*K+1]);for(B.max_code=j,k=f.heap_len>>1;k>=1;k--)x(f,Q,k);K=v;do k=f.heap[1],f.heap[1]=f.heap[f.heap_len--],x(f,Q,1),Y=f.heap[1],f.heap[--f.heap_max]=k,f.heap[--f.heap_max]=Y,Q[2*K]=Q[2*k]+Q[2*Y],f.depth[K]=(f.depth[k]>=f.depth[Y]?f.depth[k]:f.depth[Y])+1,Q[2*k+1]=Q[2*Y+1]=K,f.heap[1]=K++,x(f,Q,1);while(f.heap_len>=2);f.heap[--f.heap_max]=f.heap[1],function(W,ee){var J,re,se,oe,z,Z,te=ee.dyn_tree,ce=ee.max_code,ae=ee.stat_desc.static_tree,he=ee.stat_desc.has_stree,de=ee.stat_desc.extra_bits,me=ee.stat_desc.extra_base,fe=ee.stat_desc.max_length,ge=0;for(oe=0;oe<=15;oe++)W.bl_count[oe]=0;for(te[2*W.heap[W.heap_max]+1]=0,J=W.heap_max+1;J<573;J++)(oe=te[2*te[2*(re=W.heap[J])+1]+1]+1)>fe&&(oe=fe,ge++),te[2*re+1]=oe,re>ce||(W.bl_count[oe]++,z=0,re>=me&&(z=de[re-me]),Z=te[2*re],W.opt_len+=Z*(oe+z),he&&(W.static_len+=Z*(ae[2*re+1]+z)));if(ge!==0){do{for(oe=fe-1;W.bl_count[oe]===0;)oe--;W.bl_count[oe]--,W.bl_count[oe+1]+=2,W.bl_count[fe]--,ge-=2}while(ge>0);for(oe=fe;oe!==0;oe--)for(re=W.bl_count[oe];re!==0;)(se=W.heap[--J])>ce||(te[2*se+1]!==oe&&(W.opt_len+=(oe-te[2*se+1])*te[2*se],te[2*se+1]=oe),re--)}}(f,B),h(Q,j,f.bl_count)}function T(f,B,k){var Y,K,Q=-1,G=B[1],V=0,v=7,j=4;for(G===0&&(v=138,j=3),B[2*(k+1)+1]=65535,Y=0;Y<=k;Y++)K=G,G=B[2*(Y+1)+1],++V<v&&K===G||(V<j?f.bl_tree[2*K]+=V:K!==0?(K!==Q&&f.bl_tree[2*K]++,f.bl_tree[32]++):V<=10?f.bl_tree[34]++:f.bl_tree[36]++,V=0,Q=K,G===0?(v=138,j=3):K===G?(v=6,j=3):(v=7,j=4))}function C(f,B,k){var Y,K,Q=-1,G=B[1],V=0,v=7,j=4;for(G===0&&(v=138,j=3),Y=0;Y<=k;Y++)if(K=G,G=B[2*(Y+1)+1],!(++V<v&&K===G)){if(V<j)do $(f,K,f.bl_tree);while(--V!=0);else K!==0?(K!==Q&&($(f,K,f.bl_tree),V--),$(f,16,f.bl_tree),N(f,V-3,2)):V<=10?($(f,17,f.bl_tree),N(f,V-3,3)):($(f,18,f.bl_tree),N(f,V-11,7));V=0,Q=K,G===0?(v=138,j=3):K===G?(v=6,j=3):(v=7,j=4)}}i(P);var U=!1;function b(f,B,k,Y){N(f,0+(Y?1:0),3),function(K,Q,G,V){O(K),V&&(p(K,G),p(K,~G)),n.arraySet(K.pending_buf,K.window,Q,G,K.pending),K.pending+=G}(f,B,k,!0)}t._tr_init=function(f){U||(function(){var B,k,Y,K,Q,G=new Array(16);for(Y=0,K=0;K<28;K++)for(S[K]=Y,B=0;B<1<<g[K];B++)y[Y++]=K;for(y[Y-1]=K,Q=0,K=0;K<16;K++)for(P[K]=Q,B=0;B<1<<s[K];B++)R[Q++]=K;for(Q>>=7;K<30;K++)for(P[K]=Q<<7,B=0;B<1<<s[K]-7;B++)R[256+Q++]=K;for(k=0;k<=15;k++)G[k]=0;for(B=0;B<=143;)u[2*B+1]=8,B++,G[8]++;for(;B<=255;)u[2*B+1]=9,B++,G[9]++;for(;B<=279;)u[2*B+1]=7,B++,G[7]++;for(;B<=287;)u[2*B+1]=8,B++,G[8]++;for(h(u,287,G),B=0;B<30;B++)m[2*B+1]=5,m[2*B]=q(B,5);c=new F(u,g,257,286,15),w=new F(m,s,0,30,15),E=new F(new Array(0),o,0,19,7)}(),U=!0),f.l_desc=new M(f.dyn_ltree,c),f.d_desc=new M(f.dyn_dtree,w),f.bl_desc=new M(f.bl_tree,E),f.bi_buf=0,f.bi_valid=0,d(f)},t._tr_stored_block=b,t._tr_flush_block=function(f,B,k,Y){var K,Q,G=0;f.level>0?(f.strm.data_type===2&&(f.strm.data_type=function(V){var v,j=4093624447;for(v=0;v<=31;v++,j>>>=1)if(1&j&&V.dyn_ltree[2*v]!==0)return 0;if(V.dyn_ltree[18]!==0||V.dyn_ltree[20]!==0||V.dyn_ltree[26]!==0)return 1;for(v=32;v<256;v++)if(V.dyn_ltree[2*v]!==0)return 1;return 0}(f)),L(f,f.l_desc),L(f,f.d_desc),G=function(V){var v;for(T(V,V.dyn_ltree,V.l_desc.max_code),T(V,V.dyn_dtree,V.d_desc.max_code),L(V,V.bl_desc),v=18;v>=3&&V.bl_tree[2*l[v]+1]===0;v--);return V.opt_len+=3*(v+1)+5+5+4,v}(f),K=f.opt_len+3+7>>>3,(Q=f.static_len+3+7>>>3)<=K&&(K=Q)):K=Q=k+5,k+4<=K&&B!==-1?b(f,B,k,Y):f.strategy===4||Q===K?(N(f,2+(Y?1:0),3),D(f,u,m)):(N(f,4+(Y?1:0),3),function(V,v,j,W){var ee;for(N(V,v-257,5),N(V,j-1,5),N(V,W-4,4),ee=0;ee<W;ee++)N(V,V.bl_tree[2*l[ee]+1],3);C(V,V.dyn_ltree,v-1),C(V,V.dyn_dtree,j-1)}(f,f.l_desc.max_code+1,f.d_desc.max_code+1,G+1),D(f,f.dyn_ltree,f.dyn_dtree)),d(f),Y&&O(f)},t._tr_tally=function(f,B,k){return f.pending_buf[f.d_buf+2*f.last_lit]=B>>>8&255,f.pending_buf[f.d_buf+2*f.last_lit+1]=255&B,f.pending_buf[f.l_buf+f.last_lit]=255&k,f.last_lit++,B===0?f.dyn_ltree[2*k]++:(f.matches++,B--,f.dyn_ltree[2*(y[k]+256+1)]++,f.dyn_dtree[2*A(B)]++),f.last_lit===f.lit_bufsize-1},t._tr_align=function(f){N(f,2,3),$(f,256,u),function(B){B.bi_valid===16?(p(B,B.bi_buf),B.bi_buf=0,B.bi_valid=0):B.bi_valid>=8&&(B.pending_buf[B.pending++]=255&B.bi_buf,B.bi_buf>>=8,B.bi_valid-=8)}(f)}},function(e,t,r){e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},function(e,t,r){var n=r(33),i=r(73),g=r(74),s=r(175),o=r(176);function l(M){return(M>>>24&255)+(M>>>8&65280)+((65280&M)<<8)+((255&M)<<24)}function u(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function m(M){var A;return M&&M.state?(A=M.state,M.total_in=M.total_out=A.total=0,M.msg="",A.wrap&&(M.adler=1&A.wrap),A.mode=1,A.last=0,A.havedict=0,A.dmax=32768,A.head=null,A.hold=0,A.bits=0,A.lencode=A.lendyn=new n.Buf32(852),A.distcode=A.distdyn=new n.Buf32(592),A.sane=1,A.back=-1,0):-2}function R(M){var A;return M&&M.state?((A=M.state).wsize=0,A.whave=0,A.wnext=0,m(M)):-2}function y(M,A){var p,N;return M&&M.state?(N=M.state,A<0?(p=0,A=-A):(p=1+(A>>4),A<48&&(A&=15)),A&&(A<8||A>15)?-2:(N.window!==null&&N.wbits!==A&&(N.window=null),N.wrap=p,N.wbits=A,R(M))):-2}function S(M,A){var p,N;return M?(N=new u,M.state=N,N.window=null,(p=y(M,A))!==0&&(M.state=null),p):-2}var c,w,E=!0;function P(M){if(E){var A;for(c=new n.Buf32(512),w=new n.Buf32(32),A=0;A<144;)M.lens[A++]=8;for(;A<256;)M.lens[A++]=9;for(;A<280;)M.lens[A++]=7;for(;A<288;)M.lens[A++]=8;for(o(1,M.lens,0,288,c,0,M.work,{bits:9}),A=0;A<32;)M.lens[A++]=5;o(2,M.lens,0,32,w,0,M.work,{bits:5}),E=!1}M.lencode=c,M.lenbits=9,M.distcode=w,M.distbits=5}function F(M,A,p,N){var $,q=M.state;return q.window===null&&(q.wsize=1<<q.wbits,q.wnext=0,q.whave=0,q.window=new n.Buf8(q.wsize)),N>=q.wsize?(n.arraySet(q.window,A,p-q.wsize,q.wsize,0),q.wnext=0,q.whave=q.wsize):(($=q.wsize-q.wnext)>N&&($=N),n.arraySet(q.window,A,p-N,$,q.wnext),(N-=$)?(n.arraySet(q.window,A,p-N,N,0),q.wnext=N,q.whave=q.wsize):(q.wnext+=$,q.wnext===q.wsize&&(q.wnext=0),q.whave<q.wsize&&(q.whave+=$))),0}t.inflateReset=R,t.inflateReset2=y,t.inflateResetKeep=m,t.inflateInit=function(M){return S(M,15)},t.inflateInit2=S,t.inflate=function(M,A){var p,N,$,q,h,d,O,_,x,D,L,T,C,U,b,f,B,k,Y,K,Q,G,V,v,j=0,W=new n.Buf8(4),ee=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!M||!M.state||!M.output||!M.input&&M.avail_in!==0)return-2;(p=M.state).mode===12&&(p.mode=13),h=M.next_out,$=M.output,O=M.avail_out,q=M.next_in,N=M.input,d=M.avail_in,_=p.hold,x=p.bits,D=d,L=O,G=0;e:for(;;)switch(p.mode){case 1:if(p.wrap===0){p.mode=13;break}for(;x<16;){if(d===0)break e;d--,_+=N[q++]<<x,x+=8}if(2&p.wrap&&_===35615){p.check=0,W[0]=255&_,W[1]=_>>>8&255,p.check=g(p.check,W,2,0),_=0,x=0,p.mode=2;break}if(p.flags=0,p.head&&(p.head.done=!1),!(1&p.wrap)||(((255&_)<<8)+(_>>8))%31){M.msg="incorrect header check",p.mode=30;break}if((15&_)!=8){M.msg="unknown compression method",p.mode=30;break}if(x-=4,Q=8+(15&(_>>>=4)),p.wbits===0)p.wbits=Q;else if(Q>p.wbits){M.msg="invalid window size",p.mode=30;break}p.dmax=1<<Q,M.adler=p.check=1,p.mode=512&_?10:12,_=0,x=0;break;case 2:for(;x<16;){if(d===0)break e;d--,_+=N[q++]<<x,x+=8}if(p.flags=_,(255&p.flags)!=8){M.msg="unknown compression method",p.mode=30;break}if(57344&p.flags){M.msg="unknown header flags set",p.mode=30;break}p.head&&(p.head.text=_>>8&1),512&p.flags&&(W[0]=255&_,W[1]=_>>>8&255,p.check=g(p.check,W,2,0)),_=0,x=0,p.mode=3;case 3:for(;x<32;){if(d===0)break e;d--,_+=N[q++]<<x,x+=8}p.head&&(p.head.time=_),512&p.flags&&(W[0]=255&_,W[1]=_>>>8&255,W[2]=_>>>16&255,W[3]=_>>>24&255,p.check=g(p.check,W,4,0)),_=0,x=0,p.mode=4;case 4:for(;x<16;){if(d===0)break e;d--,_+=N[q++]<<x,x+=8}p.head&&(p.head.xflags=255&_,p.head.os=_>>8),512&p.flags&&(W[0]=255&_,W[1]=_>>>8&255,p.check=g(p.check,W,2,0)),_=0,x=0,p.mode=5;case 5:if(1024&p.flags){for(;x<16;){if(d===0)break e;d--,_+=N[q++]<<x,x+=8}p.length=_,p.head&&(p.head.extra_len=_),512&p.flags&&(W[0]=255&_,W[1]=_>>>8&255,p.check=g(p.check,W,2,0)),_=0,x=0}else p.head&&(p.head.extra=null);p.mode=6;case 6:if(1024&p.flags&&((T=p.length)>d&&(T=d),T&&(p.head&&(Q=p.head.extra_len-p.length,p.head.extra||(p.head.extra=new Array(p.head.extra_len)),n.arraySet(p.head.extra,N,q,T,Q)),512&p.flags&&(p.check=g(p.check,N,T,q)),d-=T,q+=T,p.length-=T),p.length))break e;p.length=0,p.mode=7;case 7:if(2048&p.flags){if(d===0)break e;T=0;do Q=N[q+T++],p.head&&Q&&p.length<65536&&(p.head.name+=String.fromCharCode(Q));while(Q&&T<d);if(512&p.flags&&(p.check=g(p.check,N,T,q)),d-=T,q+=T,Q)break e}else p.head&&(p.head.name=null);p.length=0,p.mode=8;case 8:if(4096&p.flags){if(d===0)break e;T=0;do Q=N[q+T++],p.head&&Q&&p.length<65536&&(p.head.comment+=String.fromCharCode(Q));while(Q&&T<d);if(512&p.flags&&(p.check=g(p.check,N,T,q)),d-=T,q+=T,Q)break e}else p.head&&(p.head.comment=null);p.mode=9;case 9:if(512&p.flags){for(;x<16;){if(d===0)break e;d--,_+=N[q++]<<x,x+=8}if(_!==(65535&p.check)){M.msg="header crc mismatch",p.mode=30;break}_=0,x=0}p.head&&(p.head.hcrc=p.flags>>9&1,p.head.done=!0),M.adler=p.check=0,p.mode=12;break;case 10:for(;x<32;){if(d===0)break e;d--,_+=N[q++]<<x,x+=8}M.adler=p.check=l(_),_=0,x=0,p.mode=11;case 11:if(p.havedict===0)return M.next_out=h,M.avail_out=O,M.next_in=q,M.avail_in=d,p.hold=_,p.bits=x,2;M.adler=p.check=1,p.mode=12;case 12:if(A===5||A===6)break e;case 13:if(p.last){_>>>=7&x,x-=7&x,p.mode=27;break}for(;x<3;){if(d===0)break e;d--,_+=N[q++]<<x,x+=8}switch(p.last=1&_,x-=1,3&(_>>>=1)){case 0:p.mode=14;break;case 1:if(P(p),p.mode=20,A===6){_>>>=2,x-=2;break e}break;case 2:p.mode=17;break;case 3:M.msg="invalid block type",p.mode=30}_>>>=2,x-=2;break;case 14:for(_>>>=7&x,x-=7&x;x<32;){if(d===0)break e;d--,_+=N[q++]<<x,x+=8}if((65535&_)!=(_>>>16^65535)){M.msg="invalid stored block lengths",p.mode=30;break}if(p.length=65535&_,_=0,x=0,p.mode=15,A===6)break e;case 15:p.mode=16;case 16:if(T=p.length){if(T>d&&(T=d),T>O&&(T=O),T===0)break e;n.arraySet($,N,q,T,h),d-=T,q+=T,O-=T,h+=T,p.length-=T;break}p.mode=12;break;case 17:for(;x<14;){if(d===0)break e;d--,_+=N[q++]<<x,x+=8}if(p.nlen=257+(31&_),_>>>=5,x-=5,p.ndist=1+(31&_),_>>>=5,x-=5,p.ncode=4+(15&_),_>>>=4,x-=4,p.nlen>286||p.ndist>30){M.msg="too many length or distance symbols",p.mode=30;break}p.have=0,p.mode=18;case 18:for(;p.have<p.ncode;){for(;x<3;){if(d===0)break e;d--,_+=N[q++]<<x,x+=8}p.lens[ee[p.have++]]=7&_,_>>>=3,x-=3}for(;p.have<19;)p.lens[ee[p.have++]]=0;if(p.lencode=p.lendyn,p.lenbits=7,V={bits:p.lenbits},G=o(0,p.lens,0,19,p.lencode,0,p.work,V),p.lenbits=V.bits,G){M.msg="invalid code lengths set",p.mode=30;break}p.have=0,p.mode=19;case 19:for(;p.have<p.nlen+p.ndist;){for(;f=(j=p.lencode[_&(1<<p.lenbits)-1])>>>16&255,B=65535&j,!((b=j>>>24)<=x);){if(d===0)break e;d--,_+=N[q++]<<x,x+=8}if(B<16)_>>>=b,x-=b,p.lens[p.have++]=B;else{if(B===16){for(v=b+2;x<v;){if(d===0)break e;d--,_+=N[q++]<<x,x+=8}if(_>>>=b,x-=b,p.have===0){M.msg="invalid bit length repeat",p.mode=30;break}Q=p.lens[p.have-1],T=3+(3&_),_>>>=2,x-=2}else if(B===17){for(v=b+3;x<v;){if(d===0)break e;d--,_+=N[q++]<<x,x+=8}x-=b,Q=0,T=3+(7&(_>>>=b)),_>>>=3,x-=3}else{for(v=b+7;x<v;){if(d===0)break e;d--,_+=N[q++]<<x,x+=8}x-=b,Q=0,T=11+(127&(_>>>=b)),_>>>=7,x-=7}if(p.have+T>p.nlen+p.ndist){M.msg="invalid bit length repeat",p.mode=30;break}for(;T--;)p.lens[p.have++]=Q}}if(p.mode===30)break;if(p.lens[256]===0){M.msg="invalid code -- missing end-of-block",p.mode=30;break}if(p.lenbits=9,V={bits:p.lenbits},G=o(1,p.lens,0,p.nlen,p.lencode,0,p.work,V),p.lenbits=V.bits,G){M.msg="invalid literal/lengths set",p.mode=30;break}if(p.distbits=6,p.distcode=p.distdyn,V={bits:p.distbits},G=o(2,p.lens,p.nlen,p.ndist,p.distcode,0,p.work,V),p.distbits=V.bits,G){M.msg="invalid distances set",p.mode=30;break}if(p.mode=20,A===6)break e;case 20:p.mode=21;case 21:if(d>=6&&O>=258){M.next_out=h,M.avail_out=O,M.next_in=q,M.avail_in=d,p.hold=_,p.bits=x,s(M,L),h=M.next_out,$=M.output,O=M.avail_out,q=M.next_in,N=M.input,d=M.avail_in,_=p.hold,x=p.bits,p.mode===12&&(p.back=-1);break}for(p.back=0;f=(j=p.lencode[_&(1<<p.lenbits)-1])>>>16&255,B=65535&j,!((b=j>>>24)<=x);){if(d===0)break e;d--,_+=N[q++]<<x,x+=8}if(f&&(240&f)==0){for(k=b,Y=f,K=B;f=(j=p.lencode[K+((_&(1<<k+Y)-1)>>k)])>>>16&255,B=65535&j,!(k+(b=j>>>24)<=x);){if(d===0)break e;d--,_+=N[q++]<<x,x+=8}_>>>=k,x-=k,p.back+=k}if(_>>>=b,x-=b,p.back+=b,p.length=B,f===0){p.mode=26;break}if(32&f){p.back=-1,p.mode=12;break}if(64&f){M.msg="invalid literal/length code",p.mode=30;break}p.extra=15&f,p.mode=22;case 22:if(p.extra){for(v=p.extra;x<v;){if(d===0)break e;d--,_+=N[q++]<<x,x+=8}p.length+=_&(1<<p.extra)-1,_>>>=p.extra,x-=p.extra,p.back+=p.extra}p.was=p.length,p.mode=23;case 23:for(;f=(j=p.distcode[_&(1<<p.distbits)-1])>>>16&255,B=65535&j,!((b=j>>>24)<=x);){if(d===0)break e;d--,_+=N[q++]<<x,x+=8}if((240&f)==0){for(k=b,Y=f,K=B;f=(j=p.distcode[K+((_&(1<<k+Y)-1)>>k)])>>>16&255,B=65535&j,!(k+(b=j>>>24)<=x);){if(d===0)break e;d--,_+=N[q++]<<x,x+=8}_>>>=k,x-=k,p.back+=k}if(_>>>=b,x-=b,p.back+=b,64&f){M.msg="invalid distance code",p.mode=30;break}p.offset=B,p.extra=15&f,p.mode=24;case 24:if(p.extra){for(v=p.extra;x<v;){if(d===0)break e;d--,_+=N[q++]<<x,x+=8}p.offset+=_&(1<<p.extra)-1,_>>>=p.extra,x-=p.extra,p.back+=p.extra}if(p.offset>p.dmax){M.msg="invalid distance too far back",p.mode=30;break}p.mode=25;case 25:if(O===0)break e;if(T=L-O,p.offset>T){if((T=p.offset-T)>p.whave&&p.sane){M.msg="invalid distance too far back",p.mode=30;break}T>p.wnext?(T-=p.wnext,C=p.wsize-T):C=p.wnext-T,T>p.length&&(T=p.length),U=p.window}else U=$,C=h-p.offset,T=p.length;T>O&&(T=O),O-=T,p.length-=T;do $[h++]=U[C++];while(--T);p.length===0&&(p.mode=21);break;case 26:if(O===0)break e;$[h++]=p.length,O--,p.mode=21;break;case 27:if(p.wrap){for(;x<32;){if(d===0)break e;d--,_|=N[q++]<<x,x+=8}if(L-=O,M.total_out+=L,p.total+=L,L&&(M.adler=p.check=p.flags?g(p.check,$,L,h-L):i(p.check,$,L,h-L)),L=O,(p.flags?_:l(_))!==p.check){M.msg="incorrect data check",p.mode=30;break}_=0,x=0}p.mode=28;case 28:if(p.wrap&&p.flags){for(;x<32;){if(d===0)break e;d--,_+=N[q++]<<x,x+=8}if(_!==(4294967295&p.total)){M.msg="incorrect length check",p.mode=30;break}_=0,x=0}p.mode=29;case 29:G=1;break e;case 30:G=-3;break e;case 31:return-4;case 32:default:return-2}return M.next_out=h,M.avail_out=O,M.next_in=q,M.avail_in=d,p.hold=_,p.bits=x,(p.wsize||L!==M.avail_out&&p.mode<30&&(p.mode<27||A!==4))&&F(M,M.output,M.next_out,L-M.avail_out)?(p.mode=31,-4):(D-=M.avail_in,L-=M.avail_out,M.total_in+=D,M.total_out+=L,p.total+=L,p.wrap&&L&&(M.adler=p.check=p.flags?g(p.check,$,L,M.next_out-L):i(p.check,$,L,M.next_out-L)),M.data_type=p.bits+(p.last?64:0)+(p.mode===12?128:0)+(p.mode===20||p.mode===15?256:0),(D===0&&L===0||A===4)&&G===0&&(G=-5),G)},t.inflateEnd=function(M){if(!M||!M.state)return-2;var A=M.state;return A.window&&(A.window=null),M.state=null,0},t.inflateGetHeader=function(M,A){var p;return M&&M.state?(2&(p=M.state).wrap)==0?-2:(p.head=A,A.done=!1,0):-2},t.inflateSetDictionary=function(M,A){var p,N=A.length;return M&&M.state?(p=M.state).wrap!==0&&p.mode!==11?-2:p.mode===11&&i(1,A,N,0)!==p.check?-3:F(M,A,N,N)?(p.mode=31,-4):(p.havedict=1,0):-2},t.inflateInfo="pako inflate (from Nodeca project)"},function(e,t,r){e.exports=function(n,i){var g,s,o,l,u,m,R,y,S,c,w,E,P,F,M,A,p,N,$,q,h,d,O,_,x;g=n.state,s=n.next_in,_=n.input,o=s+(n.avail_in-5),l=n.next_out,x=n.output,u=l-(i-n.avail_out),m=l+(n.avail_out-257),R=g.dmax,y=g.wsize,S=g.whave,c=g.wnext,w=g.window,E=g.hold,P=g.bits,F=g.lencode,M=g.distcode,A=(1<<g.lenbits)-1,p=(1<<g.distbits)-1;e:do{P<15&&(E+=_[s++]<<P,P+=8,E+=_[s++]<<P,P+=8),N=F[E&A];t:for(;;){if(E>>>=$=N>>>24,P-=$,($=N>>>16&255)==0)x[l++]=65535&N;else{if(!(16&$)){if((64&$)==0){N=F[(65535&N)+(E&(1<<$)-1)];continue t}if(32&$){g.mode=12;break e}n.msg="invalid literal/length code",g.mode=30;break e}q=65535&N,($&=15)&&(P<$&&(E+=_[s++]<<P,P+=8),q+=E&(1<<$)-1,E>>>=$,P-=$),P<15&&(E+=_[s++]<<P,P+=8,E+=_[s++]<<P,P+=8),N=M[E&p];r:for(;;){if(E>>>=$=N>>>24,P-=$,!(16&($=N>>>16&255))){if((64&$)==0){N=M[(65535&N)+(E&(1<<$)-1)];continue r}n.msg="invalid distance code",g.mode=30;break e}if(h=65535&N,P<($&=15)&&(E+=_[s++]<<P,(P+=8)<$&&(E+=_[s++]<<P,P+=8)),(h+=E&(1<<$)-1)>R){n.msg="invalid distance too far back",g.mode=30;break e}if(E>>>=$,P-=$,h>($=l-u)){if(($=h-$)>S&&g.sane){n.msg="invalid distance too far back",g.mode=30;break e}if(d=0,O=w,c===0){if(d+=y-$,$<q){q-=$;do x[l++]=w[d++];while(--$);d=l-h,O=x}}else if(c<$){if(d+=y+c-$,($-=c)<q){q-=$;do x[l++]=w[d++];while(--$);if(d=0,c<q){q-=$=c;do x[l++]=w[d++];while(--$);d=l-h,O=x}}}else if(d+=c-$,$<q){q-=$;do x[l++]=w[d++];while(--$);d=l-h,O=x}for(;q>2;)x[l++]=O[d++],x[l++]=O[d++],x[l++]=O[d++],q-=3;q&&(x[l++]=O[d++],q>1&&(x[l++]=O[d++]))}else{d=l-h;do x[l++]=x[d++],x[l++]=x[d++],x[l++]=x[d++],q-=3;while(q>2);q&&(x[l++]=x[d++],q>1&&(x[l++]=x[d++]))}break}}break}}while(s<o&&l<m);s-=q=P>>3,E&=(1<<(P-=q<<3))-1,n.next_in=s,n.next_out=l,n.avail_in=s<o?o-s+5:5-(s-o),n.avail_out=l<m?m-l+257:257-(l-m),g.hold=E,g.bits=P}},function(e,t,r){var n=r(33),i=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],g=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],s=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],o=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];e.exports=function(l,u,m,R,y,S,c,w){var E,P,F,M,A,p,N,$,q,h=w.bits,d=0,O=0,_=0,x=0,D=0,L=0,T=0,C=0,U=0,b=0,f=null,B=0,k=new n.Buf16(16),Y=new n.Buf16(16),K=null,Q=0;for(d=0;d<=15;d++)k[d]=0;for(O=0;O<R;O++)k[u[m+O]]++;for(D=h,x=15;x>=1&&k[x]===0;x--);if(D>x&&(D=x),x===0)return y[S++]=20971520,y[S++]=20971520,w.bits=1,0;for(_=1;_<x&&k[_]===0;_++);for(D<_&&(D=_),C=1,d=1;d<=15;d++)if(C<<=1,(C-=k[d])<0)return-1;if(C>0&&(l===0||x!==1))return-1;for(Y[1]=0,d=1;d<15;d++)Y[d+1]=Y[d]+k[d];for(O=0;O<R;O++)u[m+O]!==0&&(c[Y[u[m+O]]++]=O);if(l===0?(f=K=c,p=19):l===1?(f=i,B-=257,K=g,Q-=257,p=256):(f=s,K=o,p=-1),b=0,O=0,d=_,A=S,L=D,T=0,F=-1,M=(U=1<<D)-1,l===1&&U>852||l===2&&U>592)return 1;for(;;){N=d-T,c[O]<p?($=0,q=c[O]):c[O]>p?($=K[Q+c[O]],q=f[B+c[O]]):($=96,q=0),E=1<<d-T,_=P=1<<L;do y[A+(b>>T)+(P-=E)]=N<<24|$<<16|q|0;while(P!==0);for(E=1<<d-1;b&E;)E>>=1;if(E!==0?(b&=E-1,b+=E):b=0,O++,--k[d]==0){if(d===x)break;d=u[m+c[O]]}if(d>D&&(b&M)!==F){for(T===0&&(T=D),A+=_,C=1<<(L=d-T);L+T<x&&!((C-=k[L+T])<=0);)L++,C<<=1;if(U+=1<<L,l===1&&U>852||l===2&&U>592)return 1;y[F=b&M]=D<<24|L<<16|A-S|0}}return b!==0&&(y[A+b]=d-T<<24|64<<16|0),w.bits=D,0}},function(e,t,r){e.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},function(e,t){},function(e,t,r){function n(u,m){var R=Object.keys(u);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(u);m&&(y=y.filter(function(S){return Object.getOwnPropertyDescriptor(u,S).enumerable})),R.push.apply(R,y)}return R}function i(u,m,R){return m in u?Object.defineProperty(u,m,{value:R,enumerable:!0,configurable:!0,writable:!0}):u[m]=R,u}function g(u,m){for(var R=0;R<m.length;R++){var y=m[R];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(u,y.key,y)}}var s=r(4).Buffer,o=r(180).inspect,l=o&&o.custom||"inspect";e.exports=function(){function u(){(function(y,S){if(!(y instanceof S))throw new TypeError("Cannot call a class as a function")})(this,u),this.head=null,this.tail=null,this.length=0}var m,R;return m=u,(R=[{key:"push",value:function(y){var S={data:y,next:null};this.length>0?this.tail.next=S:this.head=S,this.tail=S,++this.length}},{key:"unshift",value:function(y){var S={data:y,next:this.head};this.length===0&&(this.tail=S),this.head=S,++this.length}},{key:"shift",value:function(){if(this.length!==0){var y=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,y}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(y){if(this.length===0)return"";for(var S=this.head,c=""+S.data;S=S.next;)c+=y+S.data;return c}},{key:"concat",value:function(y){if(this.length===0)return s.alloc(0);for(var S,c,w,E=s.allocUnsafe(y>>>0),P=this.head,F=0;P;)S=P.data,c=E,w=F,s.prototype.copy.call(S,c,w),F+=P.data.length,P=P.next;return E}},{key:"consume",value:function(y,S){var c;return y<this.head.data.length?(c=this.head.data.slice(0,y),this.head.data=this.head.data.slice(y)):c=y===this.head.data.length?this.shift():S?this._getString(y):this._getBuffer(y),c}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(y){var S=this.head,c=1,w=S.data;for(y-=w.length;S=S.next;){var E=S.data,P=y>E.length?E.length:y;if(P===E.length?w+=E:w+=E.slice(0,y),(y-=P)==0){P===E.length?(++c,S.next?this.head=S.next:this.head=this.tail=null):(this.head=S,S.data=E.slice(P));break}++c}return this.length-=c,w}},{key:"_getBuffer",value:function(y){var S=s.allocUnsafe(y),c=this.head,w=1;for(c.data.copy(S),y-=c.data.length;c=c.next;){var E=c.data,P=y>E.length?E.length:y;if(E.copy(S,S.length-y,0,P),(y-=P)==0){P===E.length?(++w,c.next?this.head=c.next:this.head=this.tail=null):(this.head=c,c.data=E.slice(P));break}++w}return this.length-=w,S}},{key:l,value:function(y,S){return o(this,function(c){for(var w=1;w<arguments.length;w++){var E=arguments[w]!=null?arguments[w]:{};w%2?n(Object(E),!0).forEach(function(P){i(c,P,E[P])}):Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(E)):n(Object(E)).forEach(function(P){Object.defineProperty(c,P,Object.getOwnPropertyDescriptor(E,P))})}return c}({},S,{depth:0,customInspect:!1}))}}])&&g(m.prototype,R),u}()},function(e,t){},function(e,t,r){(function(n){var i;function g(M,A,p){return A in M?Object.defineProperty(M,A,{value:p,enumerable:!0,configurable:!0,writable:!0}):M[A]=p,M}var s=r(45),o=Symbol("lastResolve"),l=Symbol("lastReject"),u=Symbol("error"),m=Symbol("ended"),R=Symbol("lastPromise"),y=Symbol("handlePromise"),S=Symbol("stream");function c(M,A){return{value:M,done:A}}function w(M){var A=M[o];if(A!==null){var p=M[S].read();p!==null&&(M[R]=null,M[o]=null,M[l]=null,A(c(p,!1)))}}function E(M){n.nextTick(w,M)}var P=Object.getPrototypeOf(function(){}),F=Object.setPrototypeOf((g(i={get stream(){return this[S]},next:function(){var M=this,A=this[u];if(A!==null)return Promise.reject(A);if(this[m])return Promise.resolve(c(void 0,!0));if(this[S].destroyed)return new Promise(function(q,h){n.nextTick(function(){M[u]?h(M[u]):q(c(void 0,!0))})});var p,N=this[R];if(N)p=new Promise(function(q,h){return function(d,O){q.then(function(){h[m]?d(c(void 0,!0)):h[y](d,O)},O)}}(N,this));else{var $=this[S].read();if($!==null)return Promise.resolve(c($,!1));p=new Promise(this[y])}return this[R]=p,p}},Symbol.asyncIterator,function(){return this}),g(i,"return",function(){var M=this;return new Promise(function(A,p){M[S].destroy(null,function(N){N?p(N):A(c(void 0,!0))})})}),i),P);e.exports=function(M){var A,p=Object.create(F,(g(A={},S,{value:M,writable:!0}),g(A,o,{value:null,writable:!0}),g(A,l,{value:null,writable:!0}),g(A,u,{value:null,writable:!0}),g(A,m,{value:M._readableState.endEmitted,writable:!0}),g(A,y,{value:function(N,$){var q=p[S].read();q?(p[R]=null,p[o]=null,p[l]=null,N(c(q,!1))):(p[o]=N,p[l]=$)},writable:!0}),A));return p[R]=null,s(M,function(N){if(N&&N.code!=="ERR_STREAM_PREMATURE_CLOSE"){var $=p[l];return $!==null&&(p[R]=null,p[o]=null,p[l]=null,$(N)),void(p[u]=N)}var q=p[o];q!==null&&(p[R]=null,p[o]=null,p[l]=null,q(c(void 0,!0))),p[m]=!0}),M.on("readable",E.bind(null,p)),p}}).call(this,r(2))},function(e,t){e.exports=function(){throw new Error("Readable.from is not available in the browser")}},function(e,t,r){e.exports=i;var n=r(80);function i(g){if(!(this instanceof i))return new i(g);n.call(this,g)}r(6)(i,n),i.prototype._transform=function(g,s,o){o(null,g)}},function(e,t,r){var n,i=r(24).codes,g=i.ERR_MISSING_ARGS,s=i.ERR_STREAM_DESTROYED;function o(y){if(y)throw y}function l(y,S,c,w){w=function(F){var M=!1;return function(){M||(M=!0,F.apply(void 0,arguments))}}(w);var E=!1;y.on("close",function(){E=!0}),n===void 0&&(n=r(45)),n(y,{readable:S,writable:c},function(F){if(F)return w(F);E=!0,w()});var P=!1;return function(F){if(!E&&!P)return P=!0,function(M){return M.setHeader&&typeof M.abort=="function"}(y)?y.abort():typeof y.destroy=="function"?y.destroy():void w(F||new s("pipe"))}}function u(y){y()}function m(y,S){return y.pipe(S)}function R(y){return y.length?typeof y[y.length-1]!="function"?o:y.pop():o}e.exports=function(){for(var y=arguments.length,S=new Array(y),c=0;c<y;c++)S[c]=arguments[c];var w,E=R(S);if(Array.isArray(S[0])&&(S=S[0]),S.length<2)throw new g("streams");var P=S.map(function(F,M){var A=M<S.length-1;return l(F,A,M>0,function(p){w||(w=p),p&&P.forEach(u),A||(P.forEach(u),E(w))})});return S.reduce(m)}},function(e,t,r){var n=r(186)(function i(g,s){return(s=s||{}).namespace=g,s.prod=!0,s.dev=!1,s.force||i.force?i.yep(s):i.nope(s)});e.exports=n},function(e,t){var r=[],n=[],i=function(){};function g(c){return!~r.indexOf(c)&&(r.push(c),!0)}function s(c){i=c}function o(c){for(var w=[],E=0;E<r.length;E++)if(r[E].async)w.push(r[E]);else if(r[E](c))return!0;return!!w.length&&new Promise(function(P){Promise.all(w.map(function(F){return F(c)})).then(function(F){P(F.some(Boolean))})})}function l(c){return!~n.indexOf(c)&&(n.push(c),!0)}function u(){i.apply(i,arguments)}function m(c){for(var w=0;w<n.length;w++)c=n[w].apply(n[w],arguments);return c}function R(c,w){var E=Object.prototype.hasOwnProperty;for(var P in w)E.call(w,P)&&(c[P]=w[P]);return c}function y(c){return c.enabled=!1,c.modify=l,c.set=s,c.use=g,R(function(){return!1},c)}function S(c){return c.enabled=!0,c.modify=l,c.set=s,c.use=g,R(function(){var w=Array.prototype.slice.call(arguments,0);return u.call(u,c,m(w,c)),!0},c)}e.exports=function(c){return c.introduce=R,c.enabled=o,c.process=m,c.modify=l,c.write=u,c.nope=y,c.yep=S,c.set=s,c.use=g,c}},function(e,t,r){(function(n){var i=r(63),g=r(19).StringDecoder,s=r(29).Stream;function o(){}e.exports=function(l,u){var m=n.alloc(65536),R=new g("utf8"),y=new s,S="",c=0,w=0;return l.start===-1&&delete l.start,y.readable=!0,y.destroy=function(){y.destroyed=!0,y.emit("end"),y.emit("close")},i.open(l.file,"a+","0644",function(E,P){if(E)return u?u(E):y.emit("error",E),void y.destroy();(function F(){if(!y.destroyed)return i.read(P,m,0,m.length,c,function(M,A){if(M)return u?u(M):y.emit("error",M),void y.destroy();if(!A)return S&&((l.start==null||w>l.start)&&(u?u(null,S):y.emit("line",S)),w++,S=""),setTimeout(F,1e3);var p=R.write(m.slice(0,A));u||y.emit("data",p);for(var N=(p=(S+p).split(/\n+/)).length-1,$=0;$<N;$++)(l.start==null||w>l.start)&&(u?u(null,p[$]):y.emit("line",p[$])),w++;return S=p[N],c+=A,F()});i.close(P,o)})()}),u?y.destroy:y}}).call(this,r(4).Buffer)},function(e,t,r){(function(n,i){function g(M){return(g=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(A){return typeof A}:function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A})(M)}function s(M,A){var p=Object.keys(M);if(Object.getOwnPropertySymbols){var N=Object.getOwnPropertySymbols(M);A&&(N=N.filter(function($){return Object.getOwnPropertyDescriptor(M,$).enumerable})),p.push.apply(p,N)}return p}function o(M){for(var A=1;A<arguments.length;A++){var p=arguments[A]!=null?arguments[A]:{};A%2?s(Object(p),!0).forEach(function(N){l(M,N,p[N])}):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(p)):s(Object(p)).forEach(function(N){Object.defineProperty(M,N,Object.getOwnPropertyDescriptor(p,N))})}return M}function l(M,A,p){return A in M?Object.defineProperty(M,A,{value:p,enumerable:!0,configurable:!0,writable:!0}):M[A]=p,M}function u(M,A){if(!(M instanceof A))throw new TypeError("Cannot call a class as a function")}function m(M,A){for(var p=0;p<A.length;p++){var N=A[p];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(M,N.key,N)}}function R(M,A){return(R=Object.setPrototypeOf||function(p,N){return p.__proto__=N,p})(M,A)}function y(M){var A=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var p,N=c(M);if(A){var $=c(this).constructor;p=Reflect.construct(N,arguments,$)}else p=N.apply(this,arguments);return S(this,p)}}function S(M,A){return!A||g(A)!=="object"&&typeof A!="function"?function(p){if(p===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p}(M):A}function c(M){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(A){return A.__proto__||Object.getPrototypeOf(A)})(M)}var w=r(81),E=r(199),P=r(29).Stream,F=r(17);e.exports=function(M){(function(q,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function");q.prototype=Object.create(h&&h.prototype,{constructor:{value:q,writable:!0,configurable:!0}}),h&&R(q,h)})($,M);var A,p,N=y($);function $(){var q,h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return u(this,$),(q=N.call(this,h)).options=h,q.name=h.name||"http",q.ssl=!!h.ssl,q.host=h.host||"localhost",q.port=h.port,q.auth=h.auth,q.path=h.path||"",q.agent=h.agent,q.headers=h.headers||{},q.headers["content-type"]="application/json",q.port||(q.port=q.ssl?443:80),q}return A=$,(p=[{key:"log",value:function(q,h){var d=this;this._request(q,function(O,_){_&&_.statusCode!==200&&(O=new Error("Invalid HTTP Status Code: ".concat(_.statusCode))),O?d.emit("warn",O):d.emit("logged",q)}),h&&n(h)}},{key:"query",value:function(q,h){typeof q=="function"&&(h=q,q={}),(q={method:"query",params:this.normalizeQuery(q)}).params.path&&(q.path=q.params.path,delete q.params.path),q.params.auth&&(q.auth=q.params.auth,delete q.params.auth),this._request(q,function(d,O,_){if(O&&O.statusCode!==200&&(d=new Error("Invalid HTTP Status Code: ".concat(O.statusCode))),d)return h(d);if(typeof _=="string")try{_=JSON.parse(_)}catch(x){return h(x)}h(null,_)})}},{key:"stream",value:function(){var q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},h=new P;(q={method:"stream",params:q}).params.path&&(q.path=q.params.path,delete q.params.path),q.params.auth&&(q.auth=q.params.auth,delete q.params.auth);var d="",O=this._request(q);return h.destroy=function(){return O.destroy()},O.on("data",function(_){for(var x=(_=(d+_).split(/\n+/)).length-1,D=0;D<x;D++)try{h.emit("log",JSON.parse(_[D]))}catch(L){h.emit("error",L)}d=_[x]}),O.on("error",function(_){return h.emit("error",_)}),h}},{key:"_request",value:function(q,h){var d=(q=q||{}).auth||this.auth,O=q.path||this.path||"";delete q.auth,delete q.path;var _=Object.assign({},this.headers);d&&d.bearer&&(_.Authorization="Bearer ".concat(d.bearer));var x=(this.ssl?E:w).request(o(o({},this.options),{},{method:"POST",host:this.host,port:this.port,path:"/".concat(O.replace(/^\//,"")),headers:_,auth:d&&d.username&&d.password?"".concat(d.username,":").concat(d.password):"",agent:this.agent}));x.on("error",h),x.on("response",function(D){return D.on("end",function(){return h(null,D)}).resume()}),x.end(i.from(JSON.stringify(q),"utf8"))}}])&&m(A.prototype,p),$}(F)}).call(this,r(12).setImmediate,r(4).Buffer)},function(e,t,r){(function(n,i,g){var s=r(82),o=r(6),l=r(83),u=r(28),m=r(190),R=l.IncomingMessage,y=l.readyStates,S=e.exports=function(w){var E,P=this;u.Writable.call(P),P._opts=w,P._body=[],P._headers={},w.auth&&P.setHeader("Authorization","Basic "+new n(w.auth).toString("base64")),Object.keys(w.headers).forEach(function(M){P.setHeader(M,w.headers[M])});var F=!0;if(w.mode==="disable-fetch"||"requestTimeout"in w&&!s.abortController)F=!1,E=!0;else if(w.mode==="prefer-streaming")E=!1;else if(w.mode==="allow-wrong-content-type")E=!s.overrideMimeType;else{if(w.mode&&w.mode!=="default"&&w.mode!=="prefer-fast")throw new Error("Invalid value for opts.mode");E=!0}P._mode=function(M,A){return s.fetch&&A?"fetch":s.mozchunkedarraybuffer?"moz-chunked-arraybuffer":s.msstream?"ms-stream":s.arraybuffer&&M?"arraybuffer":s.vbArray&&M?"text:vbarray":"text"}(E,F),P._fetchTimer=null,P.on("finish",function(){P._onFinish()})};o(S,u.Writable),S.prototype.setHeader=function(w,E){var P=w.toLowerCase();c.indexOf(P)===-1&&(this._headers[P]={name:w,value:E})},S.prototype.getHeader=function(w){var E=this._headers[w.toLowerCase()];return E?E.value:null},S.prototype.removeHeader=function(w){delete this._headers[w.toLowerCase()]},S.prototype._onFinish=function(){var w=this;if(!w._destroyed){var E=w._opts,P=w._headers,F=null;E.method!=="GET"&&E.method!=="HEAD"&&(F=s.arraybuffer?m(n.concat(w._body)):s.blobConstructor?new i.Blob(w._body.map(function($){return m($)}),{type:(P["content-type"]||{}).value||""}):n.concat(w._body).toString());var M=[];if(Object.keys(P).forEach(function($){var q=P[$].name,h=P[$].value;Array.isArray(h)?h.forEach(function(d){M.push([q,d])}):M.push([q,h])}),w._mode==="fetch"){var A=null;if(s.abortController){var p=new AbortController;A=p.signal,w._fetchAbortController=p,"requestTimeout"in E&&E.requestTimeout!==0&&(w._fetchTimer=i.setTimeout(function(){w.emit("requestTimeout"),w._fetchAbortController&&w._fetchAbortController.abort()},E.requestTimeout))}i.fetch(w._opts.url,{method:w._opts.method,headers:M,body:F||void 0,mode:"cors",credentials:E.withCredentials?"include":"same-origin",signal:A}).then(function($){w._fetchResponse=$,w._connect()},function($){i.clearTimeout(w._fetchTimer),w._destroyed||w.emit("error",$)})}else{var N=w._xhr=new i.XMLHttpRequest;try{N.open(w._opts.method,w._opts.url,!0)}catch($){return void g.nextTick(function(){w.emit("error",$)})}"responseType"in N&&(N.responseType=w._mode.split(":")[0]),"withCredentials"in N&&(N.withCredentials=!!E.withCredentials),w._mode==="text"&&"overrideMimeType"in N&&N.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in E&&(N.timeout=E.requestTimeout,N.ontimeout=function(){w.emit("requestTimeout")}),M.forEach(function($){N.setRequestHeader($[0],$[1])}),w._response=null,N.onreadystatechange=function(){switch(N.readyState){case y.LOADING:case y.DONE:w._onXHRProgress()}},w._mode==="moz-chunked-arraybuffer"&&(N.onprogress=function(){w._onXHRProgress()}),N.onerror=function(){w._destroyed||w.emit("error",new Error("XHR error"))};try{N.send(F)}catch($){return void g.nextTick(function(){w.emit("error",$)})}}}},S.prototype._onXHRProgress=function(){(function(w){try{var E=w.status;return E!==null&&E!==0}catch{return!1}})(this._xhr)&&!this._destroyed&&(this._response||this._connect(),this._response._onXHRProgress())},S.prototype._connect=function(){var w=this;w._destroyed||(w._response=new R(w._xhr,w._fetchResponse,w._mode,w._fetchTimer),w._response.on("error",function(E){w.emit("error",E)}),w.emit("response",w._response))},S.prototype._write=function(w,E,P){this._body.push(w),P()},S.prototype.abort=S.prototype.destroy=function(){this._destroyed=!0,i.clearTimeout(this._fetchTimer),this._response&&(this._response._destroyed=!0),this._xhr?this._xhr.abort():this._fetchAbortController&&this._fetchAbortController.abort()},S.prototype.end=function(w,E,P){typeof w=="function"&&(P=w,w=void 0),u.Writable.prototype.end.call(this,w,E,P)},S.prototype.flushHeaders=function(){},S.prototype.setTimeout=function(){},S.prototype.setNoDelay=function(){},S.prototype.setSocketKeepAlive=function(){};var c=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"]}).call(this,r(4).Buffer,r(5),r(2))},function(e,t,r){var n=r(4).Buffer;e.exports=function(i){if(i instanceof Uint8Array){if(i.byteOffset===0&&i.byteLength===i.buffer.byteLength)return i.buffer;if(typeof i.buffer.slice=="function")return i.buffer.slice(i.byteOffset,i.byteOffset+i.byteLength)}if(n.isBuffer(i)){for(var g=new Uint8Array(i.length),s=i.length,o=0;o<s;o++)g[o]=i[o];return g.buffer}throw new Error("Argument must be a Buffer")}},function(e,t){e.exports=function(){for(var n={},i=0;i<arguments.length;i++){var g=arguments[i];for(var s in g)r.call(g,s)&&(n[s]=g[s])}return n};var r=Object.prototype.hasOwnProperty},function(e,t){e.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},function(e,t,r){(function(n,i){var g;(function(s){t&&t.nodeType,n&&n.nodeType;var o=typeof i=="object"&&i;o.global!==o&&o.window!==o&&o.self;var l,u=2147483647,m=/^xn--/,R=/[^\x20-\x7E]/,y=/[\x2E\u3002\uFF0E\uFF61]/g,S={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},c=Math.floor,w=String.fromCharCode;function E(h){throw new RangeError(S[h])}function P(h,d){for(var O=h.length,_=[];O--;)_[O]=d(h[O]);return _}function F(h,d){var O=h.split("@"),_="";return O.length>1&&(_=O[0]+"@",h=O[1]),_+P((h=h.replace(y,".")).split("."),d).join(".")}function M(h){for(var d,O,_=[],x=0,D=h.length;x<D;)(d=h.charCodeAt(x++))>=55296&&d<=56319&&x<D?(64512&(O=h.charCodeAt(x++)))==56320?_.push(((1023&d)<<10)+(1023&O)+65536):(_.push(d),x--):_.push(d);return _}function A(h){return P(h,function(d){var O="";return d>65535&&(O+=w((d-=65536)>>>10&1023|55296),d=56320|1023&d),O+=w(d)}).join("")}function p(h,d){return h+22+75*(h<26)-((d!=0)<<5)}function N(h,d,O){var _=0;for(h=O?c(h/700):h>>1,h+=c(h/d);h>455;_+=36)h=c(h/35);return c(_+36*h/(h+38))}function $(h){var d,O,_,x,D,L,T,C,U,b,f,B=[],k=h.length,Y=0,K=128,Q=72;for((O=h.lastIndexOf("-"))<0&&(O=0),_=0;_<O;++_)h.charCodeAt(_)>=128&&E("not-basic"),B.push(h.charCodeAt(_));for(x=O>0?O+1:0;x<k;){for(D=Y,L=1,T=36;x>=k&&E("invalid-input"),((C=(f=h.charCodeAt(x++))-48<10?f-22:f-65<26?f-65:f-97<26?f-97:36)>=36||C>c((u-Y)/L))&&E("overflow"),Y+=C*L,!(C<(U=T<=Q?1:T>=Q+26?26:T-Q));T+=36)L>c(u/(b=36-U))&&E("overflow"),L*=b;Q=N(Y-D,d=B.length+1,D==0),c(Y/d)>u-K&&E("overflow"),K+=c(Y/d),Y%=d,B.splice(Y++,0,K)}return A(B)}function q(h){var d,O,_,x,D,L,T,C,U,b,f,B,k,Y,K,Q=[];for(B=(h=M(h)).length,d=128,O=0,D=72,L=0;L<B;++L)(f=h[L])<128&&Q.push(w(f));for(_=x=Q.length,x&&Q.push("-");_<B;){for(T=u,L=0;L<B;++L)(f=h[L])>=d&&f<T&&(T=f);for(T-d>c((u-O)/(k=_+1))&&E("overflow"),O+=(T-d)*k,d=T,L=0;L<B;++L)if((f=h[L])<d&&++O>u&&E("overflow"),f==d){for(C=O,U=36;!(C<(b=U<=D?1:U>=D+26?26:U-D));U+=36)K=C-b,Y=36-b,Q.push(w(p(b+K%Y,0))),C=c(K/Y);Q.push(w(p(C,0))),D=N(O,k,_==x),O=0,++_}++O,++d}return Q.join("")}l={version:"1.4.1",ucs2:{decode:M,encode:A},decode:$,encode:q,toASCII:function(h){return F(h,function(d){return R.test(d)?"xn--"+q(d):d})},toUnicode:function(h){return F(h,function(d){return m.test(d)?$(d.slice(4).toLowerCase()):d})}},(g=function(){return l}.call(t,r,t,n))===void 0||(n.exports=g)})()}).call(this,r(194)(e),r(5))},function(e,t){e.exports=function(r){return r.webpackPolyfill||(r.deprecate=function(){},r.paths=[],r.children||(r.children=[]),Object.defineProperty(r,"loaded",{enumerable:!0,get:function(){return r.l}}),Object.defineProperty(r,"id",{enumerable:!0,get:function(){return r.i}}),r.webpackPolyfill=1),r}},function(e,t,r){e.exports={isString:function(n){return typeof n=="string"},isObject:function(n){return typeof n=="object"&&n!==null},isNull:function(n){return n===null},isNullOrUndefined:function(n){return n==null}}},function(e,t,r){t.decode=t.parse=r(197),t.encode=t.stringify=r(198)},function(e,t,r){function n(g,s){return Object.prototype.hasOwnProperty.call(g,s)}e.exports=function(g,s,o,l){s=s||"&",o=o||"=";var u={};if(typeof g!="string"||g.length===0)return u;var m=/\+/g;g=g.split(s);var R=1e3;l&&typeof l.maxKeys=="number"&&(R=l.maxKeys);var y=g.length;R>0&&y>R&&(y=R);for(var S=0;S<y;++S){var c,w,E,P,F=g[S].replace(m,"%20"),M=F.indexOf(o);M>=0?(c=F.substr(0,M),w=F.substr(M+1)):(c=F,w=""),E=decodeURIComponent(c),P=decodeURIComponent(w),n(u,E)?i(u[E])?u[E].push(P):u[E]=[u[E],P]:u[E]=P}return u};var i=Array.isArray||function(g){return Object.prototype.toString.call(g)==="[object Array]"}},function(e,t,r){var n=function(o){switch(typeof o){case"string":return o;case"boolean":return o?"true":"false";case"number":return isFinite(o)?o:"";default:return""}};e.exports=function(o,l,u,m){return l=l||"&",u=u||"=",o===null&&(o=void 0),typeof o=="object"?g(s(o),function(R){var y=encodeURIComponent(n(R))+u;return i(o[R])?g(o[R],function(S){return y+encodeURIComponent(n(S))}).join(l):y+encodeURIComponent(n(o[R]))}).join(l):m?encodeURIComponent(n(m))+u+encodeURIComponent(n(o)):""};var i=Array.isArray||function(o){return Object.prototype.toString.call(o)==="[object Array]"};function g(o,l){if(o.map)return o.map(l);for(var u=[],m=0;m<o.length;m++)u.push(l(o[m],m));return u}var s=Object.keys||function(o){var l=[];for(var u in o)Object.prototype.hasOwnProperty.call(o,u)&&l.push(u);return l}},function(e,t,r){var n=r(81),i=r(46),g=e.exports;for(var s in n)n.hasOwnProperty(s)&&(g[s]=n[s]);function o(l){if(typeof l=="string"&&(l=i.parse(l)),l.protocol||(l.protocol="https:"),l.protocol!=="https:")throw new Error('Protocol "'+l.protocol+'" not supported. Expected "https:"');return l}g.request=function(l,u){return l=o(l),n.request.call(this,l,u)},g.get=function(l,u){return l=o(l),n.get.call(this,l,u)}},function(e,t,r){(function(n){function i(w){return(i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(E){return typeof E}:function(E){return E&&typeof Symbol=="function"&&E.constructor===Symbol&&E!==Symbol.prototype?"symbol":typeof E})(w)}function g(w,E){if(!(w instanceof E))throw new TypeError("Cannot call a class as a function")}function s(w,E){for(var P=0;P<E.length;P++){var F=E[P];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(w,F.key,F)}}function o(w,E){return(o=Object.setPrototypeOf||function(P,F){return P.__proto__=F,P})(w,E)}function l(w){var E=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var P,F=m(w);if(E){var M=m(this).constructor;P=Reflect.construct(F,arguments,M)}else P=F.apply(this,arguments);return u(this,P)}}function u(w,E){return!E||i(E)!=="object"&&typeof E!="function"?function(P){if(P===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return P}(w):E}function m(w){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(E){return E.__proto__||Object.getPrototypeOf(E)})(w)}var R=r(84),y=r(3).MESSAGE,S=r(15),c=r(17);e.exports=function(w){(function(A,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(p&&p.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),p&&o(A,p)})(M,w);var E,P,F=l(M);function M(){var A,p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(g(this,M),A=F.call(this,p),!p.stream||!R(p.stream))throw new Error("options.stream is required.");return A._stream=p.stream,A._stream.setMaxListeners(1/0),A.isObjectMode=p.stream._writableState.objectMode,A.eol=p.eol||S.EOL,A}return E=M,(P=[{key:"log",value:function(A,p){var N=this;if(n(function(){return N.emit("logged",A)}),this.isObjectMode)return this._stream.write(A),void(p&&p());this._stream.write("".concat(A[y]).concat(this.eol)),p&&p()}}])&&s(E.prototype,P),M}(c)}).call(this,r(12).setImmediate)},function(e,t,r){(function(n){function i(_,x,D){return x in _?Object.defineProperty(_,x,{value:D,enumerable:!0,configurable:!0,writable:!0}):_[x]=D,_}function g(_){return(g=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(x){return typeof x}:function(x){return x&&typeof Symbol=="function"&&x.constructor===Symbol&&x!==Symbol.prototype?"symbol":typeof x})(_)}function s(_,x){for(var D=0;D<x.length;D++){var L=x[D];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(_,L.key,L)}}function o(_,x){return(o=Object.setPrototypeOf||function(D,L){return D.__proto__=L,D})(_,x)}function l(_){var x=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var D,L=m(_);if(x){var T=m(this).constructor;D=Reflect.construct(L,arguments,T)}else D=L.apply(this,arguments);return u(this,D)}}function u(_,x){return!x||g(x)!=="object"&&typeof x!="function"?function(D){if(D===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return D}(_):x}function m(_){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(x){return x.__proto__||Object.getPrototypeOf(x)})(_)}var R=r(29),y=R.Stream,S=R.Transform,c=r(48),w=r(3),E=w.LEVEL,P=w.SPLAT,F=r(84),M=r(86),A=r(90),p=r(205),N=r(206),$=r(59).warn,q=r(47),h=/%[scdjifoO%]/g,d=function(_){(function(C,U){if(typeof U!="function"&&U!==null)throw new TypeError("Super expression must either be null or a function");C.prototype=Object.create(U&&U.prototype,{constructor:{value:C,writable:!0,configurable:!0}}),U&&o(C,U)})(T,_);var x,D,L=l(T);function T(C){var U;return function(b,f){if(!(b instanceof f))throw new TypeError("Cannot call a class as a function")}(this,T),(U=L.call(this,{objectMode:!0})).configure(C),U}return x=T,(D=[{key:"child",value:function(C){var U=this;return Object.create(U,{write:{value:function(b){var f=Object.assign({},C,b);b instanceof Error&&(f.stack=b.stack,f.message=b.message),U.write(f)}}})}},{key:"configure",value:function(){var C=this,U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},b=U.silent,f=U.format,B=U.defaultMeta,k=U.levels,Y=U.level,K=Y===void 0?"info":Y,Q=U.exitOnError,G=Q===void 0||Q,V=U.transports,v=U.colors,j=U.emitErrs,W=U.formatters,ee=U.padLevels,J=U.rewriters,re=U.stripColors,se=U.exceptionHandlers,oe=U.rejectionHandlers;if(this.transports.length&&this.clear(),this.silent=b,this.format=f||this.format||r(207)(),this.defaultMeta=B||null,this.levels=k||this.levels||q.npm.levels,this.level=K,this.exceptions=new M(this),this.rejections=new A(this),this.profilers={},this.exitOnError=G,V&&(V=Array.isArray(V)?V:[V]).forEach(function(z){return C.add(z)}),v||j||W||ee||J||re)throw new Error(["{ colors, emitErrs, formatters, padLevels, rewriters, stripColors } were removed in winston@3.0.0.","Use a custom winston.format(function) instead.","See: https://github.com/winstonjs/winston/tree/master/UPGRADE-3.0.md"].join(`
|
|
34
|
+
`)},goog.string.normalizeWhitespace=function(e){return e.replace(/\xa0|\s/g," ")},goog.string.normalizeSpaces=function(e){return e.replace(/\xa0|[ \t]+/g," ")},goog.string.collapseBreakingSpaces=function(e){return e.replace(/[\t\r\n ]+/g," ").replace(/^[\t\r\n ]+|[\t\r\n ]+$/g,"")},goog.string.trim=goog.string.internal.trim,goog.string.trimLeft=function(e){return e.replace(/^[\s\xa0]+/,"")},goog.string.trimRight=function(e){return e.replace(/[\s\xa0]+$/,"")},goog.string.caseInsensitiveCompare=goog.string.internal.caseInsensitiveCompare,goog.string.numberAwareCompare_=function(e,t,r){if(e==t)return 0;if(!e)return-1;if(!t)return 1;for(var n=e.toLowerCase().match(r),i=t.toLowerCase().match(r),g=Math.min(n.length,i.length),s=0;s<g;s++){r=n[s];var o=i[s];if(r!=o)return e=parseInt(r,10),!isNaN(e)&&(t=parseInt(o,10),!isNaN(t)&&e-t)?e-t:r<o?-1:1}return n.length!=i.length?n.length-i.length:e<t?-1:1},goog.string.intAwareCompare=function(e,t){return goog.string.numberAwareCompare_(e,t,/\d+|\D+/g)},goog.string.floatAwareCompare=function(e,t){return goog.string.numberAwareCompare_(e,t,/\d+|\.\d+|\D+/g)},goog.string.numerateCompare=goog.string.floatAwareCompare,goog.string.urlEncode=function(e){return encodeURIComponent(String(e))},goog.string.urlDecode=function(e){return decodeURIComponent(e.replace(/\+/g," "))},goog.string.newLineToBr=goog.string.internal.newLineToBr,goog.string.htmlEscape=function(e,t){return e=goog.string.internal.htmlEscape(e,t),goog.string.DETECT_DOUBLE_ESCAPING&&(e=e.replace(goog.string.E_RE_,"e")),e},goog.string.E_RE_=/e/g,goog.string.unescapeEntities=function(e){return goog.string.contains(e,"&")?!goog.string.FORCE_NON_DOM_HTML_UNESCAPING&&"document"in goog.global?goog.string.unescapeEntitiesUsingDom_(e):goog.string.unescapePureXmlEntities_(e):e},goog.string.unescapeEntitiesWithDocument=function(e,t){return goog.string.contains(e,"&")?goog.string.unescapeEntitiesUsingDom_(e,t):e},goog.string.unescapeEntitiesUsingDom_=function(e,t){var r={"&":"&","<":"<",">":">",""":'"'},n=t?t.createElement("div"):goog.global.document.createElement("div");return e.replace(goog.string.HTML_ENTITY_PATTERN_,function(i,g){var s=r[i];return s||(g.charAt(0)=="#"&&(g=Number("0"+g.substr(1)),isNaN(g)||(s=String.fromCharCode(g))),s||(goog.dom.safe.setInnerHtml(n,goog.html.uncheckedconversions.safeHtmlFromStringKnownToSatisfyTypeContract(goog.string.Const.from("Single HTML entity."),i+" ")),s=n.firstChild.nodeValue.slice(0,-1)),r[i]=s)})},goog.string.unescapePureXmlEntities_=function(e){return e.replace(/&([^;]+);/g,function(t,r){switch(r){case"amp":return"&";case"lt":return"<";case"gt":return">";case"quot":return'"';default:return r.charAt(0)!="#"||(r=Number("0"+r.substr(1)),isNaN(r))?t:String.fromCharCode(r)}})},goog.string.HTML_ENTITY_PATTERN_=/&([^;\s<&]+);?/g,goog.string.whitespaceEscape=function(e,t){return goog.string.newLineToBr(e.replace(/ /g,"  "),t)},goog.string.preserveSpaces=function(e){return e.replace(/(^|[\n ]) /g,"$1"+goog.string.Unicode.NBSP)},goog.string.stripQuotes=function(e,t){for(var r=t.length,n=0;n<r;n++){var i=r==1?t:t.charAt(n);if(e.charAt(0)==i&&e.charAt(e.length-1)==i)return e.substring(1,e.length-1)}return e},goog.string.truncate=function(e,t,r){return r&&(e=goog.string.unescapeEntities(e)),e.length>t&&(e=e.substring(0,t-3)+"..."),r&&(e=goog.string.htmlEscape(e)),e},goog.string.truncateMiddle=function(e,t,r,n){if(r&&(e=goog.string.unescapeEntities(e)),n&&e.length>t){n>t&&(n=t);var i=e.length-n;e=e.substring(0,t-n)+"..."+e.substring(i)}else e.length>t&&(n=Math.floor(t/2),i=e.length-n,e=e.substring(0,n+t%2)+"..."+e.substring(i));return r&&(e=goog.string.htmlEscape(e)),e},goog.string.specialEscapeChars_={"\0":"\\0","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\x0B",'"':'\\"',"\\":"\\\\","<":"\\u003C"},goog.string.jsEscapeCache_={"'":"\\'"},goog.string.quote=function(e){e=String(e);for(var t=['"'],r=0;r<e.length;r++){var n=e.charAt(r),i=n.charCodeAt(0);t[r+1]=goog.string.specialEscapeChars_[n]||(31<i&&127>i?n:goog.string.escapeChar(n))}return t.push('"'),t.join("")},goog.string.escapeString=function(e){for(var t=[],r=0;r<e.length;r++)t[r]=goog.string.escapeChar(e.charAt(r));return t.join("")},goog.string.escapeChar=function(e){if(e in goog.string.jsEscapeCache_)return goog.string.jsEscapeCache_[e];if(e in goog.string.specialEscapeChars_)return goog.string.jsEscapeCache_[e]=goog.string.specialEscapeChars_[e];var t=e.charCodeAt(0);if(31<t&&127>t)var r=e;else 256>t?(r="\\x",(16>t||256<t)&&(r+="0")):(r="\\u",4096>t&&(r+="0")),r+=t.toString(16).toUpperCase();return goog.string.jsEscapeCache_[e]=r},goog.string.contains=goog.string.internal.contains,goog.string.caseInsensitiveContains=goog.string.internal.caseInsensitiveContains,goog.string.countOf=function(e,t){return e&&t?e.split(t).length-1:0},goog.string.removeAt=function(e,t,r){var n=e;return 0<=t&&t<e.length&&0<r&&(n=e.substr(0,t)+e.substr(t+r,e.length-t-r)),n},goog.string.remove=function(e,t){return e.replace(t,"")},goog.string.removeAll=function(e,t){return t=new RegExp(goog.string.regExpEscape(t),"g"),e.replace(t,"")},goog.string.replaceAll=function(e,t,r){return t=new RegExp(goog.string.regExpEscape(t),"g"),e.replace(t,r.replace(/\$/g,"$$$$"))},goog.string.regExpEscape=function(e){return String(e).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")},goog.string.repeat=String.prototype.repeat?function(e,t){return e.repeat(t)}:function(e,t){return Array(t+1).join(e)},goog.string.padNumber=function(e,t,r){return(r=(e=goog.isDef(r)?e.toFixed(r):String(e)).indexOf("."))==-1&&(r=e.length),goog.string.repeat("0",Math.max(0,t-r))+e},goog.string.makeSafe=function(e){return e==null?"":String(e)},goog.string.buildString=function(e){return Array.prototype.join.call(arguments,"")},goog.string.getRandomString=function(){return Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^goog.now()).toString(36)},goog.string.compareVersions=goog.string.internal.compareVersions,goog.string.hashCode=function(e){for(var t=0,r=0;r<e.length;++r)t=31*t+e.charCodeAt(r)>>>0;return t},goog.string.uniqueStringCounter_=2147483648*Math.random()|0,goog.string.createUniqueString=function(){return"goog_"+goog.string.uniqueStringCounter_++},goog.string.toNumber=function(e){var t=Number(e);return t==0&&goog.string.isEmptyOrWhitespace(e)?NaN:t},goog.string.isLowerCamelCase=function(e){return/^[a-z]+([A-Z][a-z]*)*$/.test(e)},goog.string.isUpperCamelCase=function(e){return/^([A-Z][a-z]*)+$/.test(e)},goog.string.toCamelCase=function(e){return String(e).replace(/\-([a-z])/g,function(t,r){return r.toUpperCase()})},goog.string.toSelectorCase=function(e){return String(e).replace(/([A-Z])/g,"-$1").toLowerCase()},goog.string.toTitleCase=function(e,t){return t=goog.isString(t)?goog.string.regExpEscape(t):"\\s",e.replace(new RegExp("(^"+(t?"|["+t+"]+":"")+")([a-z])","g"),function(r,n,i){return n+i.toUpperCase()})},goog.string.capitalize=function(e){return String(e.charAt(0)).toUpperCase()+String(e.substr(1)).toLowerCase()},goog.string.parseInt=function(e){return isFinite(e)&&(e=String(e)),goog.isString(e)?/^\s*-?0x/i.test(e)?parseInt(e,16):parseInt(e,10):NaN},goog.string.splitLimit=function(e,t,r){e=e.split(t);for(var n=[];0<r&&e.length;)n.push(e.shift()),r--;return e.length&&n.push(e.join(t)),n},goog.string.lastComponent=function(e,t){if(!t)return e;typeof t=="string"&&(t=[t]);for(var r=-1,n=0;n<t.length;n++)if(t[n]!=""){var i=e.lastIndexOf(t[n]);i>r&&(r=i)}return r==-1?e:e.slice(r+1)},goog.string.editDistance=function(e,t){var r=[],n=[];if(e==t)return 0;if(!e.length||!t.length)return Math.max(e.length,t.length);for(var i=0;i<t.length+1;i++)r[i]=i;for(i=0;i<e.length;i++){n[0]=i+1;for(var g=0;g<t.length;g++)n[g+1]=Math.min(n[g]+1,r[g+1]+1,r[g]+Number(e[i]!=t[g]));for(g=0;g<r.length;g++)r[g]=n[g]}return n[t.length]},goog.labs.userAgent.platform={},goog.labs.userAgent.platform.isAndroid=function(){return goog.labs.userAgent.util.matchUserAgent("Android")},goog.labs.userAgent.platform.isIpod=function(){return goog.labs.userAgent.util.matchUserAgent("iPod")},goog.labs.userAgent.platform.isIphone=function(){return goog.labs.userAgent.util.matchUserAgent("iPhone")&&!goog.labs.userAgent.util.matchUserAgent("iPod")&&!goog.labs.userAgent.util.matchUserAgent("iPad")},goog.labs.userAgent.platform.isIpad=function(){return goog.labs.userAgent.util.matchUserAgent("iPad")},goog.labs.userAgent.platform.isIos=function(){return goog.labs.userAgent.platform.isIphone()||goog.labs.userAgent.platform.isIpad()||goog.labs.userAgent.platform.isIpod()},goog.labs.userAgent.platform.isMacintosh=function(){return goog.labs.userAgent.util.matchUserAgent("Macintosh")},goog.labs.userAgent.platform.isLinux=function(){return goog.labs.userAgent.util.matchUserAgent("Linux")},goog.labs.userAgent.platform.isWindows=function(){return goog.labs.userAgent.util.matchUserAgent("Windows")},goog.labs.userAgent.platform.isChromeOS=function(){return goog.labs.userAgent.util.matchUserAgent("CrOS")},goog.labs.userAgent.platform.isChromecast=function(){return goog.labs.userAgent.util.matchUserAgent("CrKey")},goog.labs.userAgent.platform.isKaiOS=function(){return goog.labs.userAgent.util.matchUserAgentIgnoreCase("KaiOS")},goog.labs.userAgent.platform.isGo2Phone=function(){return goog.labs.userAgent.util.matchUserAgentIgnoreCase("GAFP")},goog.labs.userAgent.platform.getVersion=function(){var e=goog.labs.userAgent.util.getUserAgent(),t="";return goog.labs.userAgent.platform.isWindows()?t=(e=(t=/Windows (?:NT|Phone) ([0-9.]+)/).exec(e))?e[1]:"0.0":goog.labs.userAgent.platform.isIos()?t=(e=(t=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/).exec(e))&&e[1].replace(/_/g,"."):goog.labs.userAgent.platform.isMacintosh()?t=(e=(t=/Mac OS X ([0-9_.]+)/).exec(e))?e[1].replace(/_/g,"."):"10":goog.labs.userAgent.platform.isKaiOS()?t=(e=(t=/(?:KaiOS)\/(\S+)/i).exec(e))&&e[1]:goog.labs.userAgent.platform.isAndroid()?t=(e=(t=/Android\s+([^\);]+)(\)|;)/).exec(e))&&e[1]:goog.labs.userAgent.platform.isChromeOS()&&(t=(e=(t=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/).exec(e))&&e[1]),t||""},goog.labs.userAgent.platform.isVersionOrHigher=function(e){return 0<=goog.string.compareVersions(goog.labs.userAgent.platform.getVersion(),e)},goog.reflect={},goog.reflect.object=function(e,t){return t},goog.reflect.objectProperty=function(e,t){return e},goog.reflect.sinkValue=function(e){return goog.reflect.sinkValue[" "](e),e},goog.reflect.sinkValue[" "]=goog.nullFunction,goog.reflect.canAccessProperty=function(e,t){try{return goog.reflect.sinkValue(e[t]),!0}catch{}return!1},goog.reflect.cache=function(e,t,r,n){return n=n?n(t):t,Object.prototype.hasOwnProperty.call(e,n)?e[n]:e[n]=r(t)},goog.labs.userAgent.engine={},goog.labs.userAgent.engine.isPresto=function(){return goog.labs.userAgent.util.matchUserAgent("Presto")},goog.labs.userAgent.engine.isTrident=function(){return goog.labs.userAgent.util.matchUserAgent("Trident")||goog.labs.userAgent.util.matchUserAgent("MSIE")},goog.labs.userAgent.engine.isEdge=function(){return goog.labs.userAgent.util.matchUserAgent("Edge")},goog.labs.userAgent.engine.isWebKit=function(){return goog.labs.userAgent.util.matchUserAgentIgnoreCase("WebKit")&&!goog.labs.userAgent.engine.isEdge()},goog.labs.userAgent.engine.isGecko=function(){return goog.labs.userAgent.util.matchUserAgent("Gecko")&&!goog.labs.userAgent.engine.isWebKit()&&!goog.labs.userAgent.engine.isTrident()&&!goog.labs.userAgent.engine.isEdge()},goog.labs.userAgent.engine.getVersion=function(){var e=goog.labs.userAgent.util.getUserAgent();if(e){e=goog.labs.userAgent.util.extractVersionTuples(e);var t,r=goog.labs.userAgent.engine.getEngineTuple_(e);if(r)return r[0]=="Gecko"?goog.labs.userAgent.engine.getVersionForKey_(e,"Firefox"):r[1];if((e=e[0])&&(t=e[2])&&(t=/Trident\/([^\s;]+)/.exec(t)))return t[1]}return""},goog.labs.userAgent.engine.getEngineTuple_=function(e){if(!goog.labs.userAgent.engine.isEdge())return e[1];for(var t=0;t<e.length;t++){var r=e[t];if(r[0]=="Edge")return r}},goog.labs.userAgent.engine.isVersionOrHigher=function(e){return 0<=goog.string.compareVersions(goog.labs.userAgent.engine.getVersion(),e)},goog.labs.userAgent.engine.getVersionForKey_=function(e,t){return(e=goog.array.find(e,function(r){return t==r[0]}))&&e[1]||""},goog.userAgent={},goog.userAgent.ASSUME_IE=!1,goog.userAgent.ASSUME_EDGE=!1,goog.userAgent.ASSUME_GECKO=!1,goog.userAgent.ASSUME_WEBKIT=!1,goog.userAgent.ASSUME_MOBILE_WEBKIT=!1,goog.userAgent.ASSUME_OPERA=!1,goog.userAgent.ASSUME_ANY_VERSION=!1,goog.userAgent.BROWSER_KNOWN_=goog.userAgent.ASSUME_IE||goog.userAgent.ASSUME_EDGE||goog.userAgent.ASSUME_GECKO||goog.userAgent.ASSUME_MOBILE_WEBKIT||goog.userAgent.ASSUME_WEBKIT||goog.userAgent.ASSUME_OPERA,goog.userAgent.getUserAgentString=function(){return goog.labs.userAgent.util.getUserAgent()},goog.userAgent.getNavigatorTyped=function(){return goog.global.navigator||null},goog.userAgent.getNavigator=function(){return goog.userAgent.getNavigatorTyped()},goog.userAgent.OPERA=goog.userAgent.BROWSER_KNOWN_?goog.userAgent.ASSUME_OPERA:goog.labs.userAgent.browser.isOpera(),goog.userAgent.IE=goog.userAgent.BROWSER_KNOWN_?goog.userAgent.ASSUME_IE:goog.labs.userAgent.browser.isIE(),goog.userAgent.EDGE=goog.userAgent.BROWSER_KNOWN_?goog.userAgent.ASSUME_EDGE:goog.labs.userAgent.engine.isEdge(),goog.userAgent.EDGE_OR_IE=goog.userAgent.EDGE||goog.userAgent.IE,goog.userAgent.GECKO=goog.userAgent.BROWSER_KNOWN_?goog.userAgent.ASSUME_GECKO:goog.labs.userAgent.engine.isGecko(),goog.userAgent.WEBKIT=goog.userAgent.BROWSER_KNOWN_?goog.userAgent.ASSUME_WEBKIT||goog.userAgent.ASSUME_MOBILE_WEBKIT:goog.labs.userAgent.engine.isWebKit(),goog.userAgent.isMobile_=function(){return goog.userAgent.WEBKIT&&goog.labs.userAgent.util.matchUserAgent("Mobile")},goog.userAgent.MOBILE=goog.userAgent.ASSUME_MOBILE_WEBKIT||goog.userAgent.isMobile_(),goog.userAgent.SAFARI=goog.userAgent.WEBKIT,goog.userAgent.determinePlatform_=function(){var e=goog.userAgent.getNavigatorTyped();return e&&e.platform||""},goog.userAgent.PLATFORM=goog.userAgent.determinePlatform_(),goog.userAgent.ASSUME_MAC=!1,goog.userAgent.ASSUME_WINDOWS=!1,goog.userAgent.ASSUME_LINUX=!1,goog.userAgent.ASSUME_X11=!1,goog.userAgent.ASSUME_ANDROID=!1,goog.userAgent.ASSUME_IPHONE=!1,goog.userAgent.ASSUME_IPAD=!1,goog.userAgent.ASSUME_IPOD=!1,goog.userAgent.ASSUME_KAIOS=!1,goog.userAgent.ASSUME_GO2PHONE=!1,goog.userAgent.PLATFORM_KNOWN_=goog.userAgent.ASSUME_MAC||goog.userAgent.ASSUME_WINDOWS||goog.userAgent.ASSUME_LINUX||goog.userAgent.ASSUME_X11||goog.userAgent.ASSUME_ANDROID||goog.userAgent.ASSUME_IPHONE||goog.userAgent.ASSUME_IPAD||goog.userAgent.ASSUME_IPOD,goog.userAgent.MAC=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_MAC:goog.labs.userAgent.platform.isMacintosh(),goog.userAgent.WINDOWS=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_WINDOWS:goog.labs.userAgent.platform.isWindows(),goog.userAgent.isLegacyLinux_=function(){return goog.labs.userAgent.platform.isLinux()||goog.labs.userAgent.platform.isChromeOS()},goog.userAgent.LINUX=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_LINUX:goog.userAgent.isLegacyLinux_(),goog.userAgent.isX11_=function(){var e=goog.userAgent.getNavigatorTyped();return!!e&&goog.string.contains(e.appVersion||"","X11")},goog.userAgent.X11=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_X11:goog.userAgent.isX11_(),goog.userAgent.ANDROID=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_ANDROID:goog.labs.userAgent.platform.isAndroid(),goog.userAgent.IPHONE=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_IPHONE:goog.labs.userAgent.platform.isIphone(),goog.userAgent.IPAD=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_IPAD:goog.labs.userAgent.platform.isIpad(),goog.userAgent.IPOD=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_IPOD:goog.labs.userAgent.platform.isIpod(),goog.userAgent.IOS=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_IPHONE||goog.userAgent.ASSUME_IPAD||goog.userAgent.ASSUME_IPOD:goog.labs.userAgent.platform.isIos(),goog.userAgent.KAIOS=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_KAIOS:goog.labs.userAgent.platform.isKaiOS(),goog.userAgent.GO2PHONE=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_GO2PHONE:goog.labs.userAgent.platform.isGo2Phone(),goog.userAgent.determineVersion_=function(){var e="",t=goog.userAgent.getVersionRegexResult_();return t&&(e=t?t[1]:""),goog.userAgent.IE&&(t=goog.userAgent.getDocumentMode_())!=null&&t>parseFloat(e)?String(t):e},goog.userAgent.getVersionRegexResult_=function(){var e=goog.userAgent.getUserAgentString();return goog.userAgent.GECKO?/rv:([^\);]+)(\)|;)/.exec(e):goog.userAgent.EDGE?/Edge\/([\d\.]+)/.exec(e):goog.userAgent.IE?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(e):goog.userAgent.WEBKIT?/WebKit\/(\S+)/.exec(e):goog.userAgent.OPERA?/(?:Version)[ \/]?(\S+)/.exec(e):void 0},goog.userAgent.getDocumentMode_=function(){var e=goog.global.document;return e?e.documentMode:void 0},goog.userAgent.VERSION=goog.userAgent.determineVersion_(),goog.userAgent.compare=function(e,t){return goog.string.compareVersions(e,t)},goog.userAgent.isVersionOrHigherCache_={},goog.userAgent.isVersionOrHigher=function(e){return goog.userAgent.ASSUME_ANY_VERSION||goog.reflect.cache(goog.userAgent.isVersionOrHigherCache_,e,function(){return 0<=goog.string.compareVersions(goog.userAgent.VERSION,e)})},goog.userAgent.isVersion=goog.userAgent.isVersionOrHigher,goog.userAgent.isDocumentModeOrHigher=function(e){return Number(goog.userAgent.DOCUMENT_MODE)>=e},goog.userAgent.isDocumentMode=goog.userAgent.isDocumentModeOrHigher,goog.userAgent.DOCUMENT_MODE=function(){if(goog.global.document&&goog.userAgent.IE)return goog.userAgent.getDocumentMode_()}(),goog.userAgent.product={},goog.userAgent.product.ASSUME_FIREFOX=!1,goog.userAgent.product.ASSUME_IPHONE=!1,goog.userAgent.product.ASSUME_IPAD=!1,goog.userAgent.product.ASSUME_ANDROID=!1,goog.userAgent.product.ASSUME_CHROME=!1,goog.userAgent.product.ASSUME_SAFARI=!1,goog.userAgent.product.PRODUCT_KNOWN_=goog.userAgent.ASSUME_IE||goog.userAgent.ASSUME_EDGE||goog.userAgent.ASSUME_OPERA||goog.userAgent.product.ASSUME_FIREFOX||goog.userAgent.product.ASSUME_IPHONE||goog.userAgent.product.ASSUME_IPAD||goog.userAgent.product.ASSUME_ANDROID||goog.userAgent.product.ASSUME_CHROME||goog.userAgent.product.ASSUME_SAFARI,goog.userAgent.product.OPERA=goog.userAgent.OPERA,goog.userAgent.product.IE=goog.userAgent.IE,goog.userAgent.product.EDGE=goog.userAgent.EDGE,goog.userAgent.product.FIREFOX=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_FIREFOX:goog.labs.userAgent.browser.isFirefox(),goog.userAgent.product.isIphoneOrIpod_=function(){return goog.labs.userAgent.platform.isIphone()||goog.labs.userAgent.platform.isIpod()},goog.userAgent.product.IPHONE=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_IPHONE:goog.userAgent.product.isIphoneOrIpod_(),goog.userAgent.product.IPAD=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_IPAD:goog.labs.userAgent.platform.isIpad(),goog.userAgent.product.ANDROID=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_ANDROID:goog.labs.userAgent.browser.isAndroidBrowser(),goog.userAgent.product.CHROME=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_CHROME:goog.labs.userAgent.browser.isChrome(),goog.userAgent.product.isSafariDesktop_=function(){return goog.labs.userAgent.browser.isSafari()&&!goog.labs.userAgent.platform.isIos()},goog.userAgent.product.SAFARI=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_SAFARI:goog.userAgent.product.isSafariDesktop_(),goog.crypt.base64={},goog.crypt.base64.DEFAULT_ALPHABET_COMMON_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",goog.crypt.base64.ENCODED_VALS=goog.crypt.base64.DEFAULT_ALPHABET_COMMON_+"+/=",goog.crypt.base64.ENCODED_VALS_WEBSAFE=goog.crypt.base64.DEFAULT_ALPHABET_COMMON_+"-_.",goog.crypt.base64.Alphabet={DEFAULT:0,NO_PADDING:1,WEBSAFE:2,WEBSAFE_DOT_PADDING:3,WEBSAFE_NO_PADDING:4},goog.crypt.base64.paddingChars_="=.",goog.crypt.base64.isPadding_=function(e){return goog.string.contains(goog.crypt.base64.paddingChars_,e)},goog.crypt.base64.byteToCharMaps_={},goog.crypt.base64.charToByteMap_=null,goog.crypt.base64.ASSUME_NATIVE_SUPPORT_=goog.userAgent.GECKO||goog.userAgent.WEBKIT&&!goog.userAgent.product.SAFARI||goog.userAgent.OPERA,goog.crypt.base64.HAS_NATIVE_ENCODE_=goog.crypt.base64.ASSUME_NATIVE_SUPPORT_||typeof goog.global.btoa=="function",goog.crypt.base64.HAS_NATIVE_DECODE_=goog.crypt.base64.ASSUME_NATIVE_SUPPORT_||!goog.userAgent.product.SAFARI&&!goog.userAgent.IE&&typeof goog.global.atob=="function",goog.crypt.base64.encodeByteArray=function(e,t){goog.asserts.assert(goog.isArrayLike(e),"encodeByteArray takes an array as a parameter"),t===void 0&&(t=goog.crypt.base64.Alphabet.DEFAULT),goog.crypt.base64.init_(),t=goog.crypt.base64.byteToCharMaps_[t];for(var r=[],n=0;n<e.length;n+=3){var i=e[n],g=n+1<e.length,s=g?e[n+1]:0,o=n+2<e.length,l=o?e[n+2]:0,u=i>>2;i=(3&i)<<4|s>>4,s=(15&s)<<2|l>>6,l&=63,o||(l=64,g||(s=64)),r.push(t[u],t[i],t[s]||"",t[l]||"")}return r.join("")},goog.crypt.base64.encodeString=function(e,t){return goog.crypt.base64.HAS_NATIVE_ENCODE_&&!t?goog.global.btoa(e):goog.crypt.base64.encodeByteArray(goog.crypt.stringToByteArray(e),t)},goog.crypt.base64.decodeString=function(e,t){if(goog.crypt.base64.HAS_NATIVE_DECODE_&&!t)return goog.global.atob(e);var r="";return goog.crypt.base64.decodeStringInternal_(e,function(n){r+=String.fromCharCode(n)}),r},goog.crypt.base64.decodeStringToByteArray=function(e,t){var r=[];return goog.crypt.base64.decodeStringInternal_(e,function(n){r.push(n)}),r},goog.crypt.base64.decodeStringToUint8Array=function(e){goog.asserts.assert(!goog.userAgent.IE||goog.userAgent.isVersionOrHigher("10"),"Browser does not support typed arrays");var t=e.length,r=3*t/4;r%3?r=Math.floor(r):goog.crypt.base64.isPadding_(e[t-1])&&(r=goog.crypt.base64.isPadding_(e[t-2])?r-2:r-1);var n=new Uint8Array(r),i=0;return goog.crypt.base64.decodeStringInternal_(e,function(g){n[i++]=g}),n.subarray(0,i)},goog.crypt.base64.decodeStringInternal_=function(e,t){function r(l){for(;n<e.length;){var u=e.charAt(n++),m=goog.crypt.base64.charToByteMap_[u];if(m!=null)return m;if(!goog.string.isEmptyOrWhitespace(u))throw Error("Unknown base64 encoding at char: "+u)}return l}goog.crypt.base64.init_();for(var n=0;;){var i=r(-1),g=r(0),s=r(64),o=r(64);if(o===64&&i===-1)break;t(i<<2|g>>4),s!=64&&(t(g<<4&240|s>>2),o!=64&&t(s<<6&192|o))}},goog.crypt.base64.init_=function(){if(!goog.crypt.base64.charToByteMap_){goog.crypt.base64.charToByteMap_={};for(var e=goog.crypt.base64.DEFAULT_ALPHABET_COMMON_.split(""),t=["+/=","+/","-_=","-_.","-_"],r=0;5>r;r++){var n=e.concat(t[r].split(""));goog.crypt.base64.byteToCharMaps_[r]=n;for(var i=0;i<n.length;i++){var g=n[i],s=goog.crypt.base64.charToByteMap_[g];s===void 0?goog.crypt.base64.charToByteMap_[g]=i:goog.asserts.assert(s===i)}}}},jspb.utils={},jspb.utils.split64Low=0,jspb.utils.split64High=0,jspb.utils.splitUint64=function(e){var t=e>>>0;e=Math.floor((e-t)/jspb.BinaryConstants.TWO_TO_32)>>>0,jspb.utils.split64Low=t,jspb.utils.split64High=e},jspb.utils.splitInt64=function(e){var t=0>e,r=(e=Math.abs(e))>>>0;e=Math.floor((e-r)/jspb.BinaryConstants.TWO_TO_32),e>>>=0,t&&(e=~e>>>0,4294967295<(r=1+(~r>>>0))&&(r=0,4294967295<++e&&(e=0))),jspb.utils.split64Low=r,jspb.utils.split64High=e},jspb.utils.splitZigzag64=function(e){var t=0>e;e=2*Math.abs(e),jspb.utils.splitUint64(e),e=jspb.utils.split64Low;var r=jspb.utils.split64High;t&&(e==0?r==0?r=e=4294967295:(r--,e=4294967295):e--),jspb.utils.split64Low=e,jspb.utils.split64High=r},jspb.utils.splitFloat32=function(e){var t=0>e?1:0;if((e=t?-e:e)===0)0<1/e?(jspb.utils.split64High=0,jspb.utils.split64Low=0):(jspb.utils.split64High=0,jspb.utils.split64Low=2147483648);else if(isNaN(e))jspb.utils.split64High=0,jspb.utils.split64Low=2147483647;else if(e>jspb.BinaryConstants.FLOAT32_MAX)jspb.utils.split64High=0,jspb.utils.split64Low=(t<<31|2139095040)>>>0;else if(e<jspb.BinaryConstants.FLOAT32_MIN)e=Math.round(e/Math.pow(2,-149)),jspb.utils.split64High=0,jspb.utils.split64Low=(t<<31|e)>>>0;else{var r=Math.floor(Math.log(e)/Math.LN2);e*=Math.pow(2,-r),e=8388607&Math.round(e*jspb.BinaryConstants.TWO_TO_23),jspb.utils.split64High=0,jspb.utils.split64Low=(t<<31|r+127<<23|e)>>>0}},jspb.utils.splitFloat64=function(e){var t=0>e?1:0;if((e=t?-e:e)===0)jspb.utils.split64High=0<1/e?0:2147483648,jspb.utils.split64Low=0;else if(isNaN(e))jspb.utils.split64High=2147483647,jspb.utils.split64Low=4294967295;else if(e>jspb.BinaryConstants.FLOAT64_MAX)jspb.utils.split64High=(t<<31|2146435072)>>>0,jspb.utils.split64Low=0;else if(e<jspb.BinaryConstants.FLOAT64_MIN){var r=e/Math.pow(2,-1074);e=r/jspb.BinaryConstants.TWO_TO_32,jspb.utils.split64High=(t<<31|e)>>>0,jspb.utils.split64Low=r>>>0}else{var n=0;if(2<=(r=e))for(;2<=r&&1023>n;)n++,r/=2;else for(;1>r&&-1022<n;)r*=2,n--;e=(r=e*Math.pow(2,-n))*jspb.BinaryConstants.TWO_TO_20&1048575,r=r*jspb.BinaryConstants.TWO_TO_52>>>0,jspb.utils.split64High=(t<<31|n+1023<<20|e)>>>0,jspb.utils.split64Low=r}},jspb.utils.splitHash64=function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1),n=e.charCodeAt(2),i=e.charCodeAt(3),g=e.charCodeAt(4),s=e.charCodeAt(5),o=e.charCodeAt(6);e=e.charCodeAt(7),jspb.utils.split64Low=t+(r<<8)+(n<<16)+(i<<24)>>>0,jspb.utils.split64High=g+(s<<8)+(o<<16)+(e<<24)>>>0},jspb.utils.joinUint64=function(e,t){return t*jspb.BinaryConstants.TWO_TO_32+(e>>>0)},jspb.utils.joinInt64=function(e,t){var r=2147483648&t;return r&&(t=~t>>>0,(e=1+~e>>>0)==0&&(t=t+1>>>0)),e=jspb.utils.joinUint64(e,t),r?-e:e},jspb.utils.toZigzag64=function(e,t,r){var n=t>>31;return r(e<<1^n,(t<<1|e>>>31)^n)},jspb.utils.joinZigzag64=function(e,t){return jspb.utils.fromZigzag64(e,t,jspb.utils.joinInt64)},jspb.utils.fromZigzag64=function(e,t,r){var n=-(1&e);return r((e>>>1|t<<31)^n,t>>>1^n)},jspb.utils.joinFloat32=function(e,t){t=2*(e>>31)+1;var r=e>>>23&255;return e&=8388607,r==255?e?NaN:1/0*t:r==0?t*Math.pow(2,-149)*e:t*Math.pow(2,r-150)*(e+Math.pow(2,23))},jspb.utils.joinFloat64=function(e,t){var r=2*(t>>31)+1,n=t>>>20&2047;return e=jspb.BinaryConstants.TWO_TO_32*(1048575&t)+e,n==2047?e?NaN:1/0*r:n==0?r*Math.pow(2,-1074)*e:r*Math.pow(2,n-1075)*(e+jspb.BinaryConstants.TWO_TO_52)},jspb.utils.joinHash64=function(e,t){return String.fromCharCode(e>>>0&255,e>>>8&255,e>>>16&255,e>>>24&255,t>>>0&255,t>>>8&255,t>>>16&255,t>>>24&255)},jspb.utils.DIGITS="0123456789abcdef".split(""),jspb.utils.ZERO_CHAR_CODE_=48,jspb.utils.A_CHAR_CODE_=97,jspb.utils.joinUnsignedDecimalString=function(e,t){function r(i,g){return i=i?String(i):"",g?"0000000".slice(i.length)+i:i}if(2097151>=t)return""+(jspb.BinaryConstants.TWO_TO_32*t+e);var n=(e>>>24|t<<8)>>>0&16777215;return e=(16777215&e)+6777216*n+6710656*(t=t>>16&65535),n+=8147497*t,t*=2,1e7<=e&&(n+=Math.floor(e/1e7),e%=1e7),1e7<=n&&(t+=Math.floor(n/1e7),n%=1e7),r(t,0)+r(n,t)+r(e,1)},jspb.utils.joinSignedDecimalString=function(e,t){var r=2147483648&t;return r&&(t=~t+((e=1+~e>>>0)==0?1:0)>>>0),e=jspb.utils.joinUnsignedDecimalString(e,t),r?"-"+e:e},jspb.utils.hash64ToDecimalString=function(e,t){jspb.utils.splitHash64(e),e=jspb.utils.split64Low;var r=jspb.utils.split64High;return t?jspb.utils.joinSignedDecimalString(e,r):jspb.utils.joinUnsignedDecimalString(e,r)},jspb.utils.hash64ArrayToDecimalStrings=function(e,t){for(var r=Array(e.length),n=0;n<e.length;n++)r[n]=jspb.utils.hash64ToDecimalString(e[n],t);return r},jspb.utils.decimalStringToHash64=function(e){function t(g,s){for(var o=0;8>o&&(g!==1||0<s);o++)s=g*n[o]+s,n[o]=255&s,s>>>=8}goog.asserts.assert(0<e.length);var r=!1;e[0]==="-"&&(r=!0,e=e.slice(1));for(var n=[0,0,0,0,0,0,0,0],i=0;i<e.length;i++)t(10,e.charCodeAt(i)-jspb.utils.ZERO_CHAR_CODE_);return r&&(function(){for(var g=0;8>g;g++)n[g]=255&~n[g]}(),t(1,1)),goog.crypt.byteArrayToString(n)},jspb.utils.splitDecimalString=function(e){jspb.utils.splitHash64(jspb.utils.decimalStringToHash64(e))},jspb.utils.toHexDigit_=function(e){return String.fromCharCode(10>e?jspb.utils.ZERO_CHAR_CODE_+e:jspb.utils.A_CHAR_CODE_-10+e)},jspb.utils.fromHexCharCode_=function(e){return e>=jspb.utils.A_CHAR_CODE_?e-jspb.utils.A_CHAR_CODE_+10:e-jspb.utils.ZERO_CHAR_CODE_},jspb.utils.hash64ToHexString=function(e){var t=Array(18);t[0]="0",t[1]="x";for(var r=0;8>r;r++){var n=e.charCodeAt(7-r);t[2*r+2]=jspb.utils.toHexDigit_(n>>4),t[2*r+3]=jspb.utils.toHexDigit_(15&n)}return t.join("")},jspb.utils.hexStringToHash64=function(e){e=e.toLowerCase(),goog.asserts.assert(e.length==18),goog.asserts.assert(e[0]=="0"),goog.asserts.assert(e[1]=="x");for(var t="",r=0;8>r;r++){var n=jspb.utils.fromHexCharCode_(e.charCodeAt(2*r+2)),i=jspb.utils.fromHexCharCode_(e.charCodeAt(2*r+3));t=String.fromCharCode(16*n+i)+t}return t},jspb.utils.hash64ToNumber=function(e,t){jspb.utils.splitHash64(e),e=jspb.utils.split64Low;var r=jspb.utils.split64High;return t?jspb.utils.joinInt64(e,r):jspb.utils.joinUint64(e,r)},jspb.utils.numberToHash64=function(e){return jspb.utils.splitInt64(e),jspb.utils.joinHash64(jspb.utils.split64Low,jspb.utils.split64High)},jspb.utils.countVarints=function(e,t,r){for(var n=0,i=t;i<r;i++)n+=e[i]>>7;return r-t-n},jspb.utils.countVarintFields=function(e,t,r,n){var i=0;if(128>(n=8*n+jspb.BinaryConstants.WireType.VARINT))for(;t<r&&e[t++]==n;)for(i++;;){var g=e[t++];if((128&g)==0)break}else for(;t<r;){for(g=n;128<g;){if(e[t]!=(127&g|128))return i;t++,g>>=7}if(e[t++]!=g)break;for(i++;(128&(g=e[t++]))!=0;);}return i},jspb.utils.countFixedFields_=function(e,t,r,n,i){var g=0;if(128>n)for(;t<r&&e[t++]==n;)g++,t+=i;else for(;t<r;){for(var s=n;128<s;){if(e[t++]!=(127&s|128))return g;s>>=7}if(e[t++]!=s)break;g++,t+=i}return g},jspb.utils.countFixed32Fields=function(e,t,r,n){return jspb.utils.countFixedFields_(e,t,r,8*n+jspb.BinaryConstants.WireType.FIXED32,4)},jspb.utils.countFixed64Fields=function(e,t,r,n){return jspb.utils.countFixedFields_(e,t,r,8*n+jspb.BinaryConstants.WireType.FIXED64,8)},jspb.utils.countDelimitedFields=function(e,t,r,n){var i=0;for(n=8*n+jspb.BinaryConstants.WireType.DELIMITED;t<r;){for(var g=n;128<g;){if(e[t++]!=(127&g|128))return i;g>>=7}if(e[t++]!=g)break;i++;for(var s=0,o=1;s+=(127&(g=e[t++]))*o,o*=128,(128&g)!=0;);t+=s}return i},jspb.utils.debugBytesToTextFormat=function(e){var t='"';if(e){e=jspb.utils.byteSourceToUint8Array(e);for(var r=0;r<e.length;r++)t+="\\x",16>e[r]&&(t+="0"),t+=e[r].toString(16)}return t+'"'},jspb.utils.debugScalarToTextFormat=function(e){return typeof e=="string"?goog.string.quote(e):e.toString()},jspb.utils.stringToByteArray=function(e){for(var t=new Uint8Array(e.length),r=0;r<e.length;r++){var n=e.charCodeAt(r);if(255<n)throw Error("Conversion error: string contains codepoint outside of byte range");t[r]=n}return t},jspb.utils.byteSourceToUint8Array=function(e){return e.constructor===Uint8Array?e:e.constructor===ArrayBuffer||Buffer!==void 0&&e.constructor===Buffer||e.constructor===Array?new Uint8Array(e):e.constructor===String?goog.crypt.base64.decodeStringToUint8Array(e):(goog.asserts.fail("Type not convertible to Uint8Array."),new Uint8Array(0))},jspb.BinaryDecoder=function(e,t,r){this.bytes_=null,this.cursor_=this.end_=this.start_=0,this.error_=!1,e&&this.setBlock(e,t,r)},jspb.BinaryDecoder.instanceCache_=[],jspb.BinaryDecoder.alloc=function(e,t,r){if(jspb.BinaryDecoder.instanceCache_.length){var n=jspb.BinaryDecoder.instanceCache_.pop();return e&&n.setBlock(e,t,r),n}return new jspb.BinaryDecoder(e,t,r)},jspb.BinaryDecoder.prototype.free=function(){this.clear(),100>jspb.BinaryDecoder.instanceCache_.length&&jspb.BinaryDecoder.instanceCache_.push(this)},jspb.BinaryDecoder.prototype.clone=function(){return jspb.BinaryDecoder.alloc(this.bytes_,this.start_,this.end_-this.start_)},jspb.BinaryDecoder.prototype.clear=function(){this.bytes_=null,this.cursor_=this.end_=this.start_=0,this.error_=!1},jspb.BinaryDecoder.prototype.getBuffer=function(){return this.bytes_},jspb.BinaryDecoder.prototype.setBlock=function(e,t,r){this.bytes_=jspb.utils.byteSourceToUint8Array(e),this.start_=t!==void 0?t:0,this.end_=r!==void 0?this.start_+r:this.bytes_.length,this.cursor_=this.start_},jspb.BinaryDecoder.prototype.getEnd=function(){return this.end_},jspb.BinaryDecoder.prototype.setEnd=function(e){this.end_=e},jspb.BinaryDecoder.prototype.reset=function(){this.cursor_=this.start_},jspb.BinaryDecoder.prototype.getCursor=function(){return this.cursor_},jspb.BinaryDecoder.prototype.setCursor=function(e){this.cursor_=e},jspb.BinaryDecoder.prototype.advance=function(e){this.cursor_+=e,goog.asserts.assert(this.cursor_<=this.end_)},jspb.BinaryDecoder.prototype.atEnd=function(){return this.cursor_==this.end_},jspb.BinaryDecoder.prototype.pastEnd=function(){return this.cursor_>this.end_},jspb.BinaryDecoder.prototype.getError=function(){return this.error_||0>this.cursor_||this.cursor_>this.end_},jspb.BinaryDecoder.prototype.readSplitVarint64=function(e){for(var t=128,r=0,n=0,i=0;4>i&&128<=t;i++)r|=(127&(t=this.bytes_[this.cursor_++]))<<7*i;if(128<=t&&(r|=(127&(t=this.bytes_[this.cursor_++]))<<28,n|=(127&t)>>4),128<=t)for(i=0;5>i&&128<=t;i++)n|=(127&(t=this.bytes_[this.cursor_++]))<<7*i+3;if(128>t)return e(r>>>0,n>>>0);goog.asserts.fail("Failed to read varint, encoding is invalid."),this.error_=!0},jspb.BinaryDecoder.prototype.readSplitZigzagVarint64=function(e){return this.readSplitVarint64(function(t,r){return jspb.utils.fromZigzag64(t,r,e)})},jspb.BinaryDecoder.prototype.readSplitFixed64=function(e){var t=this.bytes_,r=this.cursor_;this.cursor_+=8;for(var n=0,i=0,g=r+7;g>=r;g--)n=n<<8|t[g],i=i<<8|t[g+4];return e(n,i)},jspb.BinaryDecoder.prototype.skipVarint=function(){for(;128&this.bytes_[this.cursor_];)this.cursor_++;this.cursor_++},jspb.BinaryDecoder.prototype.unskipVarint=function(e){for(;128<e;)this.cursor_--,e>>>=7;this.cursor_--},jspb.BinaryDecoder.prototype.readUnsignedVarint32=function(){var e=this.bytes_,t=e[this.cursor_+0],r=127&t;return 128>t?(this.cursor_+=1,goog.asserts.assert(this.cursor_<=this.end_),r):(r|=(127&(t=e[this.cursor_+1]))<<7,128>t?(this.cursor_+=2,goog.asserts.assert(this.cursor_<=this.end_),r):(r|=(127&(t=e[this.cursor_+2]))<<14,128>t?(this.cursor_+=3,goog.asserts.assert(this.cursor_<=this.end_),r):(r|=(127&(t=e[this.cursor_+3]))<<21,128>t?(this.cursor_+=4,goog.asserts.assert(this.cursor_<=this.end_),r):(r|=(15&(t=e[this.cursor_+4]))<<28,128>t?(this.cursor_+=5,goog.asserts.assert(this.cursor_<=this.end_),r>>>0):(this.cursor_+=5,128<=e[this.cursor_++]&&128<=e[this.cursor_++]&&128<=e[this.cursor_++]&&128<=e[this.cursor_++]&&128<=e[this.cursor_++]&&goog.asserts.assert(!1),goog.asserts.assert(this.cursor_<=this.end_),r)))))},jspb.BinaryDecoder.prototype.readSignedVarint32=jspb.BinaryDecoder.prototype.readUnsignedVarint32,jspb.BinaryDecoder.prototype.readUnsignedVarint32String=function(){return this.readUnsignedVarint32().toString()},jspb.BinaryDecoder.prototype.readSignedVarint32String=function(){return this.readSignedVarint32().toString()},jspb.BinaryDecoder.prototype.readZigzagVarint32=function(){var e=this.readUnsignedVarint32();return e>>>1^-(1&e)},jspb.BinaryDecoder.prototype.readUnsignedVarint64=function(){return this.readSplitVarint64(jspb.utils.joinUint64)},jspb.BinaryDecoder.prototype.readUnsignedVarint64String=function(){return this.readSplitVarint64(jspb.utils.joinUnsignedDecimalString)},jspb.BinaryDecoder.prototype.readSignedVarint64=function(){return this.readSplitVarint64(jspb.utils.joinInt64)},jspb.BinaryDecoder.prototype.readSignedVarint64String=function(){return this.readSplitVarint64(jspb.utils.joinSignedDecimalString)},jspb.BinaryDecoder.prototype.readZigzagVarint64=function(){return this.readSplitVarint64(jspb.utils.joinZigzag64)},jspb.BinaryDecoder.prototype.readZigzagVarintHash64=function(){return this.readSplitZigzagVarint64(jspb.utils.joinHash64)},jspb.BinaryDecoder.prototype.readZigzagVarint64String=function(){return this.readSplitZigzagVarint64(jspb.utils.joinSignedDecimalString)},jspb.BinaryDecoder.prototype.readUint8=function(){var e=this.bytes_[this.cursor_+0];return this.cursor_+=1,goog.asserts.assert(this.cursor_<=this.end_),e},jspb.BinaryDecoder.prototype.readUint16=function(){var e=this.bytes_[this.cursor_+0],t=this.bytes_[this.cursor_+1];return this.cursor_+=2,goog.asserts.assert(this.cursor_<=this.end_),e<<0|t<<8},jspb.BinaryDecoder.prototype.readUint32=function(){var e=this.bytes_[this.cursor_+0],t=this.bytes_[this.cursor_+1],r=this.bytes_[this.cursor_+2],n=this.bytes_[this.cursor_+3];return this.cursor_+=4,goog.asserts.assert(this.cursor_<=this.end_),(e<<0|t<<8|r<<16|n<<24)>>>0},jspb.BinaryDecoder.prototype.readUint64=function(){var e=this.readUint32(),t=this.readUint32();return jspb.utils.joinUint64(e,t)},jspb.BinaryDecoder.prototype.readUint64String=function(){var e=this.readUint32(),t=this.readUint32();return jspb.utils.joinUnsignedDecimalString(e,t)},jspb.BinaryDecoder.prototype.readInt8=function(){var e=this.bytes_[this.cursor_+0];return this.cursor_+=1,goog.asserts.assert(this.cursor_<=this.end_),e<<24>>24},jspb.BinaryDecoder.prototype.readInt16=function(){var e=this.bytes_[this.cursor_+0],t=this.bytes_[this.cursor_+1];return this.cursor_+=2,goog.asserts.assert(this.cursor_<=this.end_),(e<<0|t<<8)<<16>>16},jspb.BinaryDecoder.prototype.readInt32=function(){var e=this.bytes_[this.cursor_+0],t=this.bytes_[this.cursor_+1],r=this.bytes_[this.cursor_+2],n=this.bytes_[this.cursor_+3];return this.cursor_+=4,goog.asserts.assert(this.cursor_<=this.end_),e<<0|t<<8|r<<16|n<<24},jspb.BinaryDecoder.prototype.readInt64=function(){var e=this.readUint32(),t=this.readUint32();return jspb.utils.joinInt64(e,t)},jspb.BinaryDecoder.prototype.readInt64String=function(){var e=this.readUint32(),t=this.readUint32();return jspb.utils.joinSignedDecimalString(e,t)},jspb.BinaryDecoder.prototype.readFloat=function(){var e=this.readUint32();return jspb.utils.joinFloat32(e,0)},jspb.BinaryDecoder.prototype.readDouble=function(){var e=this.readUint32(),t=this.readUint32();return jspb.utils.joinFloat64(e,t)},jspb.BinaryDecoder.prototype.readBool=function(){return!!this.bytes_[this.cursor_++]},jspb.BinaryDecoder.prototype.readEnum=function(){return this.readSignedVarint32()},jspb.BinaryDecoder.prototype.readString=function(e){var t=this.bytes_,r=this.cursor_;e=r+e;for(var n=[],i="";r<e;){var g=t[r++];if(128>g)n.push(g);else{if(192>g)continue;if(224>g){var s=t[r++];n.push((31&g)<<6|63&s)}else if(240>g){s=t[r++];var o=t[r++];n.push((15&g)<<12|(63&s)<<6|63&o)}else 248>g&&(g=(7&g)<<18|(63&(s=t[r++]))<<12|(63&(o=t[r++]))<<6|63&t[r++],g-=65536,n.push(55296+(g>>10&1023),56320+(1023&g)))}8192<=n.length&&(i+=String.fromCharCode.apply(null,n),n.length=0)}return i+=goog.crypt.byteArrayToString(n),this.cursor_=r,i},jspb.BinaryDecoder.prototype.readStringWithLength=function(){var e=this.readUnsignedVarint32();return this.readString(e)},jspb.BinaryDecoder.prototype.readBytes=function(e){if(0>e||this.cursor_+e>this.bytes_.length)return this.error_=!0,goog.asserts.fail("Invalid byte length!"),new Uint8Array(0);var t=this.bytes_.subarray(this.cursor_,this.cursor_+e);return this.cursor_+=e,goog.asserts.assert(this.cursor_<=this.end_),t},jspb.BinaryDecoder.prototype.readVarintHash64=function(){return this.readSplitVarint64(jspb.utils.joinHash64)},jspb.BinaryDecoder.prototype.readFixedHash64=function(){var e=this.bytes_,t=this.cursor_,r=e[t+0],n=e[t+1],i=e[t+2],g=e[t+3],s=e[t+4],o=e[t+5],l=e[t+6];return e=e[t+7],this.cursor_+=8,String.fromCharCode(r,n,i,g,s,o,l,e)},jspb.BinaryReader=function(e,t,r){this.decoder_=jspb.BinaryDecoder.alloc(e,t,r),this.fieldCursor_=this.decoder_.getCursor(),this.nextField_=jspb.BinaryConstants.INVALID_FIELD_NUMBER,this.nextWireType_=jspb.BinaryConstants.WireType.INVALID,this.error_=!1,this.readCallbacks_=null},jspb.BinaryReader.instanceCache_=[],jspb.BinaryReader.alloc=function(e,t,r){if(jspb.BinaryReader.instanceCache_.length){var n=jspb.BinaryReader.instanceCache_.pop();return e&&n.decoder_.setBlock(e,t,r),n}return new jspb.BinaryReader(e,t,r)},jspb.BinaryReader.prototype.alloc=jspb.BinaryReader.alloc,jspb.BinaryReader.prototype.free=function(){this.decoder_.clear(),this.nextField_=jspb.BinaryConstants.INVALID_FIELD_NUMBER,this.nextWireType_=jspb.BinaryConstants.WireType.INVALID,this.error_=!1,this.readCallbacks_=null,100>jspb.BinaryReader.instanceCache_.length&&jspb.BinaryReader.instanceCache_.push(this)},jspb.BinaryReader.prototype.getFieldCursor=function(){return this.fieldCursor_},jspb.BinaryReader.prototype.getCursor=function(){return this.decoder_.getCursor()},jspb.BinaryReader.prototype.getBuffer=function(){return this.decoder_.getBuffer()},jspb.BinaryReader.prototype.getFieldNumber=function(){return this.nextField_},jspb.BinaryReader.prototype.getWireType=function(){return this.nextWireType_},jspb.BinaryReader.prototype.isDelimited=function(){return this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED},jspb.BinaryReader.prototype.isEndGroup=function(){return this.nextWireType_==jspb.BinaryConstants.WireType.END_GROUP},jspb.BinaryReader.prototype.getError=function(){return this.error_||this.decoder_.getError()},jspb.BinaryReader.prototype.setBlock=function(e,t,r){this.decoder_.setBlock(e,t,r),this.nextField_=jspb.BinaryConstants.INVALID_FIELD_NUMBER,this.nextWireType_=jspb.BinaryConstants.WireType.INVALID},jspb.BinaryReader.prototype.reset=function(){this.decoder_.reset(),this.nextField_=jspb.BinaryConstants.INVALID_FIELD_NUMBER,this.nextWireType_=jspb.BinaryConstants.WireType.INVALID},jspb.BinaryReader.prototype.advance=function(e){this.decoder_.advance(e)},jspb.BinaryReader.prototype.nextField=function(){if(this.decoder_.atEnd())return!1;if(this.getError())return goog.asserts.fail("Decoder hit an error"),!1;this.fieldCursor_=this.decoder_.getCursor();var e=this.decoder_.readUnsignedVarint32(),t=e>>>3;return(e&=7)!=jspb.BinaryConstants.WireType.VARINT&&e!=jspb.BinaryConstants.WireType.FIXED32&&e!=jspb.BinaryConstants.WireType.FIXED64&&e!=jspb.BinaryConstants.WireType.DELIMITED&&e!=jspb.BinaryConstants.WireType.START_GROUP&&e!=jspb.BinaryConstants.WireType.END_GROUP?(goog.asserts.fail("Invalid wire type: %s (at position %s)",e,this.fieldCursor_),this.error_=!0,!1):(this.nextField_=t,this.nextWireType_=e,!0)},jspb.BinaryReader.prototype.unskipHeader=function(){this.decoder_.unskipVarint(this.nextField_<<3|this.nextWireType_)},jspb.BinaryReader.prototype.skipMatchingFields=function(){var e=this.nextField_;for(this.unskipHeader();this.nextField()&&this.getFieldNumber()==e;)this.skipField();this.decoder_.atEnd()||this.unskipHeader()},jspb.BinaryReader.prototype.skipVarintField=function(){this.nextWireType_!=jspb.BinaryConstants.WireType.VARINT?(goog.asserts.fail("Invalid wire type for skipVarintField"),this.skipField()):this.decoder_.skipVarint()},jspb.BinaryReader.prototype.skipDelimitedField=function(){if(this.nextWireType_!=jspb.BinaryConstants.WireType.DELIMITED)goog.asserts.fail("Invalid wire type for skipDelimitedField"),this.skipField();else{var e=this.decoder_.readUnsignedVarint32();this.decoder_.advance(e)}},jspb.BinaryReader.prototype.skipFixed32Field=function(){this.nextWireType_!=jspb.BinaryConstants.WireType.FIXED32?(goog.asserts.fail("Invalid wire type for skipFixed32Field"),this.skipField()):this.decoder_.advance(4)},jspb.BinaryReader.prototype.skipFixed64Field=function(){this.nextWireType_!=jspb.BinaryConstants.WireType.FIXED64?(goog.asserts.fail("Invalid wire type for skipFixed64Field"),this.skipField()):this.decoder_.advance(8)},jspb.BinaryReader.prototype.skipGroup=function(){for(var e=this.nextField_;;){if(!this.nextField()){goog.asserts.fail("Unmatched start-group tag: stream EOF"),this.error_=!0;break}if(this.nextWireType_==jspb.BinaryConstants.WireType.END_GROUP){this.nextField_!=e&&(goog.asserts.fail("Unmatched end-group tag"),this.error_=!0);break}this.skipField()}},jspb.BinaryReader.prototype.skipField=function(){switch(this.nextWireType_){case jspb.BinaryConstants.WireType.VARINT:this.skipVarintField();break;case jspb.BinaryConstants.WireType.FIXED64:this.skipFixed64Field();break;case jspb.BinaryConstants.WireType.DELIMITED:this.skipDelimitedField();break;case jspb.BinaryConstants.WireType.FIXED32:this.skipFixed32Field();break;case jspb.BinaryConstants.WireType.START_GROUP:this.skipGroup();break;default:goog.asserts.fail("Invalid wire encoding for field.")}},jspb.BinaryReader.prototype.registerReadCallback=function(e,t){this.readCallbacks_===null&&(this.readCallbacks_={}),goog.asserts.assert(!this.readCallbacks_[e]),this.readCallbacks_[e]=t},jspb.BinaryReader.prototype.runReadCallback=function(e){return goog.asserts.assert(this.readCallbacks_!==null),e=this.readCallbacks_[e],goog.asserts.assert(e),e(this)},jspb.BinaryReader.prototype.readAny=function(e){this.nextWireType_=jspb.BinaryConstants.FieldTypeToWireType(e);var t=jspb.BinaryConstants.FieldType;switch(e){case t.DOUBLE:return this.readDouble();case t.FLOAT:return this.readFloat();case t.INT64:return this.readInt64();case t.UINT64:return this.readUint64();case t.INT32:return this.readInt32();case t.FIXED64:return this.readFixed64();case t.FIXED32:return this.readFixed32();case t.BOOL:return this.readBool();case t.STRING:return this.readString();case t.GROUP:goog.asserts.fail("Group field type not supported in readAny()");case t.MESSAGE:goog.asserts.fail("Message field type not supported in readAny()");case t.BYTES:return this.readBytes();case t.UINT32:return this.readUint32();case t.ENUM:return this.readEnum();case t.SFIXED32:return this.readSfixed32();case t.SFIXED64:return this.readSfixed64();case t.SINT32:return this.readSint32();case t.SINT64:return this.readSint64();case t.FHASH64:return this.readFixedHash64();case t.VHASH64:return this.readVarintHash64();default:goog.asserts.fail("Invalid field type in readAny()")}return 0},jspb.BinaryReader.prototype.readMessage=function(e,t){goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var r=this.decoder_.getEnd(),n=this.decoder_.readUnsignedVarint32();n=this.decoder_.getCursor()+n,this.decoder_.setEnd(n),t(e,this),this.decoder_.setCursor(n),this.decoder_.setEnd(r)},jspb.BinaryReader.prototype.readGroup=function(e,t,r){goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.START_GROUP),goog.asserts.assert(this.nextField_==e),r(t,this),this.error_||this.nextWireType_==jspb.BinaryConstants.WireType.END_GROUP||(goog.asserts.fail("Group submessage did not end with an END_GROUP tag"),this.error_=!0)},jspb.BinaryReader.prototype.getFieldDecoder=function(){goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var e=this.decoder_.readUnsignedVarint32(),t=this.decoder_.getCursor(),r=t+e;return e=jspb.BinaryDecoder.alloc(this.decoder_.getBuffer(),t,e),this.decoder_.setCursor(r),e},jspb.BinaryReader.prototype.readInt32=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint32()},jspb.BinaryReader.prototype.readInt32String=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint32String()},jspb.BinaryReader.prototype.readInt64=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint64()},jspb.BinaryReader.prototype.readInt64String=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint64String()},jspb.BinaryReader.prototype.readUint32=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readUnsignedVarint32()},jspb.BinaryReader.prototype.readUint32String=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readUnsignedVarint32String()},jspb.BinaryReader.prototype.readUint64=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readUnsignedVarint64()},jspb.BinaryReader.prototype.readUint64String=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readUnsignedVarint64String()},jspb.BinaryReader.prototype.readSint32=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readZigzagVarint32()},jspb.BinaryReader.prototype.readSint64=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readZigzagVarint64()},jspb.BinaryReader.prototype.readSint64String=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readZigzagVarint64String()},jspb.BinaryReader.prototype.readFixed32=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED32),this.decoder_.readUint32()},jspb.BinaryReader.prototype.readFixed64=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readUint64()},jspb.BinaryReader.prototype.readFixed64String=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readUint64String()},jspb.BinaryReader.prototype.readSfixed32=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED32),this.decoder_.readInt32()},jspb.BinaryReader.prototype.readSfixed32String=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED32),this.decoder_.readInt32().toString()},jspb.BinaryReader.prototype.readSfixed64=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readInt64()},jspb.BinaryReader.prototype.readSfixed64String=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readInt64String()},jspb.BinaryReader.prototype.readFloat=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED32),this.decoder_.readFloat()},jspb.BinaryReader.prototype.readDouble=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readDouble()},jspb.BinaryReader.prototype.readBool=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),!!this.decoder_.readUnsignedVarint32()},jspb.BinaryReader.prototype.readEnum=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint64()},jspb.BinaryReader.prototype.readString=function(){goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var e=this.decoder_.readUnsignedVarint32();return this.decoder_.readString(e)},jspb.BinaryReader.prototype.readBytes=function(){goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var e=this.decoder_.readUnsignedVarint32();return this.decoder_.readBytes(e)},jspb.BinaryReader.prototype.readVarintHash64=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readVarintHash64()},jspb.BinaryReader.prototype.readSintHash64=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readZigzagVarintHash64()},jspb.BinaryReader.prototype.readSplitVarint64=function(e){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSplitVarint64(e)},jspb.BinaryReader.prototype.readSplitZigzagVarint64=function(e){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSplitVarint64(function(t,r){return jspb.utils.fromZigzag64(t,r,e)})},jspb.BinaryReader.prototype.readFixedHash64=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readFixedHash64()},jspb.BinaryReader.prototype.readSplitFixed64=function(e){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readSplitFixed64(e)},jspb.BinaryReader.prototype.readPackedField_=function(e){goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var t=this.decoder_.readUnsignedVarint32();t=this.decoder_.getCursor()+t;for(var r=[];this.decoder_.getCursor()<t;)r.push(e.call(this.decoder_));return r},jspb.BinaryReader.prototype.readPackedInt32=function(){return this.readPackedField_(this.decoder_.readSignedVarint32)},jspb.BinaryReader.prototype.readPackedInt32String=function(){return this.readPackedField_(this.decoder_.readSignedVarint32String)},jspb.BinaryReader.prototype.readPackedInt64=function(){return this.readPackedField_(this.decoder_.readSignedVarint64)},jspb.BinaryReader.prototype.readPackedInt64String=function(){return this.readPackedField_(this.decoder_.readSignedVarint64String)},jspb.BinaryReader.prototype.readPackedUint32=function(){return this.readPackedField_(this.decoder_.readUnsignedVarint32)},jspb.BinaryReader.prototype.readPackedUint32String=function(){return this.readPackedField_(this.decoder_.readUnsignedVarint32String)},jspb.BinaryReader.prototype.readPackedUint64=function(){return this.readPackedField_(this.decoder_.readUnsignedVarint64)},jspb.BinaryReader.prototype.readPackedUint64String=function(){return this.readPackedField_(this.decoder_.readUnsignedVarint64String)},jspb.BinaryReader.prototype.readPackedSint32=function(){return this.readPackedField_(this.decoder_.readZigzagVarint32)},jspb.BinaryReader.prototype.readPackedSint64=function(){return this.readPackedField_(this.decoder_.readZigzagVarint64)},jspb.BinaryReader.prototype.readPackedSint64String=function(){return this.readPackedField_(this.decoder_.readZigzagVarint64String)},jspb.BinaryReader.prototype.readPackedFixed32=function(){return this.readPackedField_(this.decoder_.readUint32)},jspb.BinaryReader.prototype.readPackedFixed64=function(){return this.readPackedField_(this.decoder_.readUint64)},jspb.BinaryReader.prototype.readPackedFixed64String=function(){return this.readPackedField_(this.decoder_.readUint64String)},jspb.BinaryReader.prototype.readPackedSfixed32=function(){return this.readPackedField_(this.decoder_.readInt32)},jspb.BinaryReader.prototype.readPackedSfixed64=function(){return this.readPackedField_(this.decoder_.readInt64)},jspb.BinaryReader.prototype.readPackedSfixed64String=function(){return this.readPackedField_(this.decoder_.readInt64String)},jspb.BinaryReader.prototype.readPackedFloat=function(){return this.readPackedField_(this.decoder_.readFloat)},jspb.BinaryReader.prototype.readPackedDouble=function(){return this.readPackedField_(this.decoder_.readDouble)},jspb.BinaryReader.prototype.readPackedBool=function(){return this.readPackedField_(this.decoder_.readBool)},jspb.BinaryReader.prototype.readPackedEnum=function(){return this.readPackedField_(this.decoder_.readEnum)},jspb.BinaryReader.prototype.readPackedVarintHash64=function(){return this.readPackedField_(this.decoder_.readVarintHash64)},jspb.BinaryReader.prototype.readPackedFixedHash64=function(){return this.readPackedField_(this.decoder_.readFixedHash64)},jspb.Map=function(e,t){this.arr_=e,this.valueCtor_=t,this.map_={},this.arrClean=!0,0<this.arr_.length&&this.loadFromArray_()},jspb.Map.prototype.loadFromArray_=function(){for(var e=0;e<this.arr_.length;e++){var t=this.arr_[e],r=t[0];this.map_[r.toString()]=new jspb.Map.Entry_(r,t[1])}this.arrClean=!0},jspb.Map.prototype.toArray=function(){if(this.arrClean){if(this.valueCtor_){var e,t=this.map_;for(e in t)if(Object.prototype.hasOwnProperty.call(t,e)){var r=t[e].valueWrapper;r&&r.toArray()}}}else{for(this.arr_.length=0,(t=this.stringKeys_()).sort(),e=0;e<t.length;e++){var n=this.map_[t[e]];(r=n.valueWrapper)&&r.toArray(),this.arr_.push([n.key,n.value])}this.arrClean=!0}return this.arr_},jspb.Map.prototype.toObject=function(e,t){for(var r=this.toArray(),n=[],i=0;i<r.length;i++){var g=this.map_[r[i][0].toString()];this.wrapEntry_(g);var s=g.valueWrapper;s?(goog.asserts.assert(t),n.push([g.key,t(e,s)])):n.push([g.key,g.value])}return n},jspb.Map.fromObject=function(e,t,r){t=new jspb.Map([],t);for(var n=0;n<e.length;n++){var i=e[n][0],g=r(e[n][1]);t.set(i,g)}return t},jspb.Map.ArrayIteratorIterable_=function(e){this.idx_=0,this.arr_=e},jspb.Map.ArrayIteratorIterable_.prototype.next=function(){return this.idx_<this.arr_.length?{done:!1,value:this.arr_[this.idx_++]}:{done:!0,value:void 0}},typeof Symbol!="undefined"&&(jspb.Map.ArrayIteratorIterable_.prototype[Symbol.iterator]=function(){return this}),jspb.Map.prototype.getLength=function(){return this.stringKeys_().length},jspb.Map.prototype.clear=function(){this.map_={},this.arrClean=!1},jspb.Map.prototype.del=function(e){e=e.toString();var t=this.map_.hasOwnProperty(e);return delete this.map_[e],this.arrClean=!1,t},jspb.Map.prototype.getEntryList=function(){var e=[],t=this.stringKeys_();t.sort();for(var r=0;r<t.length;r++){var n=this.map_[t[r]];e.push([n.key,n.value])}return e},jspb.Map.prototype.entries=function(){var e=[],t=this.stringKeys_();t.sort();for(var r=0;r<t.length;r++){var n=this.map_[t[r]];e.push([n.key,this.wrapEntry_(n)])}return new jspb.Map.ArrayIteratorIterable_(e)},jspb.Map.prototype.keys=function(){var e=[],t=this.stringKeys_();t.sort();for(var r=0;r<t.length;r++)e.push(this.map_[t[r]].key);return new jspb.Map.ArrayIteratorIterable_(e)},jspb.Map.prototype.values=function(){var e=[],t=this.stringKeys_();t.sort();for(var r=0;r<t.length;r++)e.push(this.wrapEntry_(this.map_[t[r]]));return new jspb.Map.ArrayIteratorIterable_(e)},jspb.Map.prototype.forEach=function(e,t){var r=this.stringKeys_();r.sort();for(var n=0;n<r.length;n++){var i=this.map_[r[n]];e.call(t,this.wrapEntry_(i),i.key,this)}},jspb.Map.prototype.set=function(e,t){var r=new jspb.Map.Entry_(e);return this.valueCtor_?(r.valueWrapper=t,r.value=t.toArray()):r.value=t,this.map_[e.toString()]=r,this.arrClean=!1,this},jspb.Map.prototype.wrapEntry_=function(e){return this.valueCtor_?(e.valueWrapper||(e.valueWrapper=new this.valueCtor_(e.value)),e.valueWrapper):e.value},jspb.Map.prototype.get=function(e){if(e=this.map_[e.toString()])return this.wrapEntry_(e)},jspb.Map.prototype.has=function(e){return e.toString()in this.map_},jspb.Map.prototype.serializeBinary=function(e,t,r,n,i){var g=this.stringKeys_();g.sort();for(var s=0;s<g.length;s++){var o=this.map_[g[s]];t.beginSubMessage(e),r.call(t,1,o.key),this.valueCtor_?n.call(t,2,this.wrapEntry_(o),i):n.call(t,2,o.value),t.endSubMessage()}},jspb.Map.deserializeBinary=function(e,t,r,n,i,g,s){for(;t.nextField()&&!t.isEndGroup();){var o=t.getFieldNumber();o==1?g=r.call(t):o==2&&(e.valueCtor_?(goog.asserts.assert(i),s||(s=new e.valueCtor_),n.call(t,s,i)):s=n.call(t))}goog.asserts.assert(g!=null),goog.asserts.assert(s!=null),e.set(g,s)},jspb.Map.prototype.stringKeys_=function(){var e,t=this.map_,r=[];for(e in t)Object.prototype.hasOwnProperty.call(t,e)&&r.push(e);return r},jspb.Map.Entry_=function(e,t){this.key=e,this.value=t,this.valueWrapper=void 0},jspb.ExtensionFieldInfo=function(e,t,r,n,i){this.fieldIndex=e,this.fieldName=t,this.ctor=r,this.toObjectFn=n,this.isRepeated=i},jspb.ExtensionFieldBinaryInfo=function(e,t,r,n,i,g){this.fieldInfo=e,this.binaryReaderFn=t,this.binaryWriterFn=r,this.binaryMessageSerializeFn=n,this.binaryMessageDeserializeFn=i,this.isPacked=g},jspb.ExtensionFieldInfo.prototype.isMessageType=function(){return!!this.ctor},jspb.Message=function(){},jspb.Message.GENERATE_TO_OBJECT=!0,jspb.Message.GENERATE_FROM_OBJECT=!goog.DISALLOW_TEST_ONLY_CODE,jspb.Message.GENERATE_TO_STRING=!0,jspb.Message.ASSUME_LOCAL_ARRAYS=!1,jspb.Message.SERIALIZE_EMPTY_TRAILING_FIELDS=!0,jspb.Message.SUPPORTS_UINT8ARRAY_=typeof Uint8Array=="function",jspb.Message.prototype.getJsPbMessageId=function(){return this.messageId_},jspb.Message.getIndex_=function(e,t){return t+e.arrayIndexOffset_},jspb.Message.hiddenES6Property_=function(){},jspb.Message.getFieldNumber_=function(e,t){return t-e.arrayIndexOffset_},jspb.Message.initialize=function(e,t,r,n,i,g){if(e.wrappers_=null,t||(t=r?[r]:[]),e.messageId_=r?String(r):void 0,e.arrayIndexOffset_=r===0?-1:0,e.array=t,jspb.Message.initPivotAndExtensionObject_(e,n),e.convertedPrimitiveFields_={},jspb.Message.SERIALIZE_EMPTY_TRAILING_FIELDS||(e.repeatedFields=i),i)for(t=0;t<i.length;t++)(r=i[t])<e.pivot_?(r=jspb.Message.getIndex_(e,r),e.array[r]=e.array[r]||jspb.Message.EMPTY_LIST_SENTINEL_):(jspb.Message.maybeInitEmptyExtensionObject_(e),e.extensionObject_[r]=e.extensionObject_[r]||jspb.Message.EMPTY_LIST_SENTINEL_);if(g&&g.length)for(t=0;t<g.length;t++)jspb.Message.computeOneofCase(e,g[t])},jspb.Message.EMPTY_LIST_SENTINEL_=goog.DEBUG&&Object.freeze?Object.freeze([]):[],jspb.Message.isArray_=function(e){return jspb.Message.ASSUME_LOCAL_ARRAYS?e instanceof Array:Array.isArray(e)},jspb.Message.isExtensionObject_=function(e){return!(e===null||typeof e!="object"||jspb.Message.isArray_(e)||jspb.Message.SUPPORTS_UINT8ARRAY_&&e instanceof Uint8Array)},jspb.Message.initPivotAndExtensionObject_=function(e,t){var r=e.array.length,n=-1;if(r&&(n=r-1,r=e.array[n],jspb.Message.isExtensionObject_(r)))return e.pivot_=jspb.Message.getFieldNumber_(e,n),void(e.extensionObject_=r);-1<t?(e.pivot_=Math.max(t,jspb.Message.getFieldNumber_(e,n+1)),e.extensionObject_=null):e.pivot_=Number.MAX_VALUE},jspb.Message.maybeInitEmptyExtensionObject_=function(e){var t=jspb.Message.getIndex_(e,e.pivot_);e.array[t]||(e.extensionObject_=e.array[t]={})},jspb.Message.toObjectList=function(e,t,r){for(var n=[],i=0;i<e.length;i++)n[i]=t.call(e[i],r,e[i]);return n},jspb.Message.toObjectExtension=function(e,t,r,n,i){for(var g in r){var s=r[g],o=n.call(e,s);if(o!=null){for(var l in s.fieldName)if(s.fieldName.hasOwnProperty(l))break;t[l]=s.toObjectFn?s.isRepeated?jspb.Message.toObjectList(o,s.toObjectFn,i):s.toObjectFn(i,o):o}}},jspb.Message.serializeBinaryExtensions=function(e,t,r,n){for(var i in r){var g=r[i],s=g.fieldInfo;if(!g.binaryWriterFn)throw Error("Message extension present that was generated without binary serialization support");var o=n.call(e,s);if(o!=null)if(s.isMessageType()){if(!g.binaryMessageSerializeFn)throw Error("Message extension present holding submessage without binary support enabled, and message is being serialized to binary format");g.binaryWriterFn.call(t,s.fieldIndex,o,g.binaryMessageSerializeFn)}else g.binaryWriterFn.call(t,s.fieldIndex,o)}},jspb.Message.readBinaryExtension=function(e,t,r,n,i){var g=r[t.getFieldNumber()];if(g){if(r=g.fieldInfo,!g.binaryReaderFn)throw Error("Deserializing extension whose generated code does not support binary format");if(r.isMessageType()){var s=new r.ctor;g.binaryReaderFn.call(t,s,g.binaryMessageDeserializeFn)}else s=g.binaryReaderFn.call(t);r.isRepeated&&!g.isPacked?(t=n.call(e,r))?t.push(s):i.call(e,r,[s]):i.call(e,r,s)}else t.skipField()},jspb.Message.getField=function(e,t){if(t<e.pivot_){t=jspb.Message.getIndex_(e,t);var r=e.array[t];return r===jspb.Message.EMPTY_LIST_SENTINEL_?e.array[t]=[]:r}if(e.extensionObject_)return(r=e.extensionObject_[t])===jspb.Message.EMPTY_LIST_SENTINEL_?e.extensionObject_[t]=[]:r},jspb.Message.getRepeatedField=function(e,t){return jspb.Message.getField(e,t)},jspb.Message.getOptionalFloatingPointField=function(e,t){return(e=jspb.Message.getField(e,t))==null?e:+e},jspb.Message.getBooleanField=function(e,t){return(e=jspb.Message.getField(e,t))==null?e:!!e},jspb.Message.getRepeatedFloatingPointField=function(e,t){var r=jspb.Message.getRepeatedField(e,t);if(e.convertedPrimitiveFields_||(e.convertedPrimitiveFields_={}),!e.convertedPrimitiveFields_[t]){for(var n=0;n<r.length;n++)r[n]=+r[n];e.convertedPrimitiveFields_[t]=!0}return r},jspb.Message.getRepeatedBooleanField=function(e,t){var r=jspb.Message.getRepeatedField(e,t);if(e.convertedPrimitiveFields_||(e.convertedPrimitiveFields_={}),!e.convertedPrimitiveFields_[t]){for(var n=0;n<r.length;n++)r[n]=!!r[n];e.convertedPrimitiveFields_[t]=!0}return r},jspb.Message.bytesAsB64=function(e){return e==null||typeof e=="string"?e:jspb.Message.SUPPORTS_UINT8ARRAY_&&e instanceof Uint8Array?goog.crypt.base64.encodeByteArray(e):(goog.asserts.fail("Cannot coerce to b64 string: "+goog.typeOf(e)),null)},jspb.Message.bytesAsU8=function(e){return e==null||e instanceof Uint8Array?e:typeof e=="string"?goog.crypt.base64.decodeStringToUint8Array(e):(goog.asserts.fail("Cannot coerce to Uint8Array: "+goog.typeOf(e)),null)},jspb.Message.bytesListAsB64=function(e){return jspb.Message.assertConsistentTypes_(e),e.length&&typeof e[0]!="string"?goog.array.map(e,jspb.Message.bytesAsB64):e},jspb.Message.bytesListAsU8=function(e){return jspb.Message.assertConsistentTypes_(e),!e.length||e[0]instanceof Uint8Array?e:goog.array.map(e,jspb.Message.bytesAsU8)},jspb.Message.assertConsistentTypes_=function(e){if(goog.DEBUG&&e&&1<e.length){var t=goog.typeOf(e[0]);goog.array.forEach(e,function(r){goog.typeOf(r)!=t&&goog.asserts.fail("Inconsistent type in JSPB repeated field array. Got "+goog.typeOf(r)+" expected "+t)})}},jspb.Message.getFieldWithDefault=function(e,t,r){return(e=jspb.Message.getField(e,t))==null?r:e},jspb.Message.getBooleanFieldWithDefault=function(e,t,r){return(e=jspb.Message.getBooleanField(e,t))==null?r:e},jspb.Message.getFloatingPointFieldWithDefault=function(e,t,r){return(e=jspb.Message.getOptionalFloatingPointField(e,t))==null?r:e},jspb.Message.getFieldProto3=jspb.Message.getFieldWithDefault,jspb.Message.getMapField=function(e,t,r,n){if(e.wrappers_||(e.wrappers_={}),t in e.wrappers_)return e.wrappers_[t];var i=jspb.Message.getField(e,t);if(!i){if(r)return;i=[],jspb.Message.setField(e,t,i)}return e.wrappers_[t]=new jspb.Map(i,n)},jspb.Message.setField=function(e,t,r){return goog.asserts.assertInstanceof(e,jspb.Message),t<e.pivot_?e.array[jspb.Message.getIndex_(e,t)]=r:(jspb.Message.maybeInitEmptyExtensionObject_(e),e.extensionObject_[t]=r),e},jspb.Message.setProto3IntField=function(e,t,r){return jspb.Message.setFieldIgnoringDefault_(e,t,r,0)},jspb.Message.setProto3FloatField=function(e,t,r){return jspb.Message.setFieldIgnoringDefault_(e,t,r,0)},jspb.Message.setProto3BooleanField=function(e,t,r){return jspb.Message.setFieldIgnoringDefault_(e,t,r,!1)},jspb.Message.setProto3StringField=function(e,t,r){return jspb.Message.setFieldIgnoringDefault_(e,t,r,"")},jspb.Message.setProto3BytesField=function(e,t,r){return jspb.Message.setFieldIgnoringDefault_(e,t,r,"")},jspb.Message.setProto3EnumField=function(e,t,r){return jspb.Message.setFieldIgnoringDefault_(e,t,r,0)},jspb.Message.setProto3StringIntField=function(e,t,r){return jspb.Message.setFieldIgnoringDefault_(e,t,r,"0")},jspb.Message.setFieldIgnoringDefault_=function(e,t,r,n){return goog.asserts.assertInstanceof(e,jspb.Message),r!==n?jspb.Message.setField(e,t,r):t<e.pivot_?e.array[jspb.Message.getIndex_(e,t)]=null:(jspb.Message.maybeInitEmptyExtensionObject_(e),delete e.extensionObject_[t]),e},jspb.Message.addToRepeatedField=function(e,t,r,n){return goog.asserts.assertInstanceof(e,jspb.Message),t=jspb.Message.getRepeatedField(e,t),n!=null?t.splice(n,0,r):t.push(r),e},jspb.Message.setOneofField=function(e,t,r,n){return goog.asserts.assertInstanceof(e,jspb.Message),(r=jspb.Message.computeOneofCase(e,r))&&r!==t&&n!==void 0&&(e.wrappers_&&r in e.wrappers_&&(e.wrappers_[r]=void 0),jspb.Message.setField(e,r,void 0)),jspb.Message.setField(e,t,n)},jspb.Message.computeOneofCase=function(e,t){for(var r,n,i=0;i<t.length;i++){var g=t[i],s=jspb.Message.getField(e,g);s!=null&&(r=g,n=s,jspb.Message.setField(e,g,void 0))}return r?(jspb.Message.setField(e,r,n),r):0},jspb.Message.getWrapperField=function(e,t,r,n){if(e.wrappers_||(e.wrappers_={}),!e.wrappers_[r]){var i=jspb.Message.getField(e,r);(n||i)&&(e.wrappers_[r]=new t(i))}return e.wrappers_[r]},jspb.Message.getRepeatedWrapperField=function(e,t,r){return jspb.Message.wrapRepeatedField_(e,t,r),(t=e.wrappers_[r])==jspb.Message.EMPTY_LIST_SENTINEL_&&(t=e.wrappers_[r]=[]),t},jspb.Message.wrapRepeatedField_=function(e,t,r){if(e.wrappers_||(e.wrappers_={}),!e.wrappers_[r]){for(var n=jspb.Message.getRepeatedField(e,r),i=[],g=0;g<n.length;g++)i[g]=new t(n[g]);e.wrappers_[r]=i}},jspb.Message.setWrapperField=function(e,t,r){goog.asserts.assertInstanceof(e,jspb.Message),e.wrappers_||(e.wrappers_={});var n=r&&r.toArray();return e.wrappers_[t]=r,jspb.Message.setField(e,t,n)},jspb.Message.setOneofWrapperField=function(e,t,r,n){goog.asserts.assertInstanceof(e,jspb.Message),e.wrappers_||(e.wrappers_={});var i=n&&n.toArray();return e.wrappers_[t]=n,jspb.Message.setOneofField(e,t,r,i)},jspb.Message.setRepeatedWrapperField=function(e,t,r){goog.asserts.assertInstanceof(e,jspb.Message),e.wrappers_||(e.wrappers_={}),r=r||[];for(var n=[],i=0;i<r.length;i++)n[i]=r[i].toArray();return e.wrappers_[t]=r,jspb.Message.setField(e,t,n)},jspb.Message.addToRepeatedWrapperField=function(e,t,r,n,i){jspb.Message.wrapRepeatedField_(e,n,t);var g=e.wrappers_[t];return g||(g=e.wrappers_[t]=[]),r=r||new n,e=jspb.Message.getRepeatedField(e,t),i!=null?(g.splice(i,0,r),e.splice(i,0,r.toArray())):(g.push(r),e.push(r.toArray())),r},jspb.Message.toMap=function(e,t,r,n){for(var i={},g=0;g<e.length;g++)i[t.call(e[g])]=r?r.call(e[g],n,e[g]):e[g];return i},jspb.Message.prototype.syncMapFields_=function(){if(this.wrappers_)for(var e in this.wrappers_){var t=this.wrappers_[e];if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]&&t[r].toArray();else t&&t.toArray()}},jspb.Message.prototype.toArray=function(){return this.syncMapFields_(),this.array},jspb.Message.GENERATE_TO_STRING&&(jspb.Message.prototype.toString=function(){return this.syncMapFields_(),this.array.toString()}),jspb.Message.prototype.getExtension=function(e){if(this.extensionObject_){this.wrappers_||(this.wrappers_={});var t=e.fieldIndex;if(e.isRepeated){if(e.isMessageType())return this.wrappers_[t]||(this.wrappers_[t]=goog.array.map(this.extensionObject_[t]||[],function(r){return new e.ctor(r)})),this.wrappers_[t]}else if(e.isMessageType())return!this.wrappers_[t]&&this.extensionObject_[t]&&(this.wrappers_[t]=new e.ctor(this.extensionObject_[t])),this.wrappers_[t];return this.extensionObject_[t]}},jspb.Message.prototype.setExtension=function(e,t){this.wrappers_||(this.wrappers_={}),jspb.Message.maybeInitEmptyExtensionObject_(this);var r=e.fieldIndex;return e.isRepeated?(t=t||[],e.isMessageType()?(this.wrappers_[r]=t,this.extensionObject_[r]=goog.array.map(t,function(n){return n.toArray()})):this.extensionObject_[r]=t):e.isMessageType()?(this.wrappers_[r]=t,this.extensionObject_[r]=t&&t.toArray()):this.extensionObject_[r]=t,this},jspb.Message.difference=function(e,t){if(!(e instanceof t.constructor))throw Error("Messages have different types.");var r=e.toArray();t=t.toArray();var n=[],i=0,g=r.length>t.length?r.length:t.length;for(e.getJsPbMessageId()&&(n[0]=e.getJsPbMessageId(),i=1);i<g;i++)jspb.Message.compareFields(r[i],t[i])||(n[i]=t[i]);return new e.constructor(n)},jspb.Message.equals=function(e,t){return e==t||!(!e||!t)&&e instanceof t.constructor&&jspb.Message.compareFields(e.toArray(),t.toArray())},jspb.Message.compareExtensions=function(e,t){e=e||{},t=t||{};var r,n={};for(r in e)n[r]=0;for(r in t)n[r]=0;for(r in n)if(!jspb.Message.compareFields(e[r],t[r]))return!1;return!0},jspb.Message.compareFields=function(e,t){if(e==t)return!0;if(!goog.isObject(e)||!goog.isObject(t))return!!(typeof e=="number"&&isNaN(e)||typeof t=="number"&&isNaN(t))&&String(e)==String(t);if(e.constructor!=t.constructor)return!1;if(jspb.Message.SUPPORTS_UINT8ARRAY_&&e.constructor===Uint8Array){if(e.length!=t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!=t[r])return!1;return!0}if(e.constructor===Array){var n=void 0,i=void 0,g=Math.max(e.length,t.length);for(r=0;r<g;r++){var s=e[r],o=t[r];if(s&&s.constructor==Object&&(goog.asserts.assert(n===void 0),goog.asserts.assert(r===e.length-1),n=s,s=void 0),o&&o.constructor==Object&&(goog.asserts.assert(i===void 0),goog.asserts.assert(r===t.length-1),i=o,o=void 0),!jspb.Message.compareFields(s,o))return!1}return!n&&!i||(n=n||{},i=i||{},jspb.Message.compareExtensions(n,i))}if(e.constructor===Object)return jspb.Message.compareExtensions(e,t);throw Error("Invalid type in JSPB array")},jspb.Message.prototype.cloneMessage=function(){return jspb.Message.cloneMessage(this)},jspb.Message.prototype.clone=function(){return jspb.Message.cloneMessage(this)},jspb.Message.clone=function(e){return jspb.Message.cloneMessage(e)},jspb.Message.cloneMessage=function(e){return new e.constructor(jspb.Message.clone_(e.toArray()))},jspb.Message.copyInto=function(e,t){goog.asserts.assertInstanceof(e,jspb.Message),goog.asserts.assertInstanceof(t,jspb.Message),goog.asserts.assert(e.constructor==t.constructor,"Copy source and target message should have the same type."),e=jspb.Message.clone(e);for(var r=t.toArray(),n=e.toArray(),i=r.length=0;i<n.length;i++)r[i]=n[i];t.wrappers_=e.wrappers_,t.extensionObject_=e.extensionObject_},jspb.Message.clone_=function(e){if(Array.isArray(e)){for(var t=Array(e.length),r=0;r<e.length;r++){var n=e[r];n!=null&&(t[r]=typeof n=="object"?jspb.Message.clone_(goog.asserts.assert(n)):n)}return t}if(jspb.Message.SUPPORTS_UINT8ARRAY_&&e instanceof Uint8Array)return new Uint8Array(e);for(r in t={},e)(n=e[r])!=null&&(t[r]=typeof n=="object"?jspb.Message.clone_(goog.asserts.assert(n)):n);return t},jspb.Message.registerMessageType=function(e,t){t.messageId=e},jspb.Message.messageSetExtensions={},jspb.Message.messageSetExtensionsBinary={},jspb.arith={},jspb.arith.UInt64=function(e,t){this.lo=e,this.hi=t},jspb.arith.UInt64.prototype.cmp=function(e){return this.hi<e.hi||this.hi==e.hi&&this.lo<e.lo?-1:this.hi==e.hi&&this.lo==e.lo?0:1},jspb.arith.UInt64.prototype.rightShift=function(){return new jspb.arith.UInt64((this.lo>>>1|(1&this.hi)<<31)>>>0,this.hi>>>1>>>0)},jspb.arith.UInt64.prototype.leftShift=function(){return new jspb.arith.UInt64(this.lo<<1>>>0,(this.hi<<1|this.lo>>>31)>>>0)},jspb.arith.UInt64.prototype.msb=function(){return!!(2147483648&this.hi)},jspb.arith.UInt64.prototype.lsb=function(){return!!(1&this.lo)},jspb.arith.UInt64.prototype.zero=function(){return this.lo==0&&this.hi==0},jspb.arith.UInt64.prototype.add=function(e){return new jspb.arith.UInt64((this.lo+e.lo&4294967295)>>>0>>>0,((this.hi+e.hi&4294967295)>>>0)+(4294967296<=this.lo+e.lo?1:0)>>>0)},jspb.arith.UInt64.prototype.sub=function(e){return new jspb.arith.UInt64((this.lo-e.lo&4294967295)>>>0>>>0,((this.hi-e.hi&4294967295)>>>0)-(0>this.lo-e.lo?1:0)>>>0)},jspb.arith.UInt64.mul32x32=function(e,t){var r=65535&e,n=65535&t,i=t>>>16;for(t=r*n+65536*(r*i&65535)+65536*((e>>>=16)*n&65535),r=e*i+(r*i>>>16)+(e*n>>>16);4294967296<=t;)t-=4294967296,r+=1;return new jspb.arith.UInt64(t>>>0,r>>>0)},jspb.arith.UInt64.prototype.mul=function(e){var t=jspb.arith.UInt64.mul32x32(this.lo,e);return(e=jspb.arith.UInt64.mul32x32(this.hi,e)).hi=e.lo,e.lo=0,t.add(e)},jspb.arith.UInt64.prototype.div=function(e){if(e==0)return[];var t=new jspb.arith.UInt64(0,0),r=new jspb.arith.UInt64(this.lo,this.hi);e=new jspb.arith.UInt64(e,0);for(var n=new jspb.arith.UInt64(1,0);!e.msb();)e=e.leftShift(),n=n.leftShift();for(;!n.zero();)0>=e.cmp(r)&&(t=t.add(n),r=r.sub(e)),e=e.rightShift(),n=n.rightShift();return[t,r]},jspb.arith.UInt64.prototype.toString=function(){for(var e="",t=this;!t.zero();){var r=(t=t.div(10))[0];e=t[1].lo+e,t=r}return e==""&&(e="0"),e},jspb.arith.UInt64.fromString=function(e){for(var t=new jspb.arith.UInt64(0,0),r=new jspb.arith.UInt64(0,0),n=0;n<e.length;n++){if("0">e[n]||"9"<e[n])return null;var i=parseInt(e[n],10);r.lo=i,t=t.mul(10).add(r)}return t},jspb.arith.UInt64.prototype.clone=function(){return new jspb.arith.UInt64(this.lo,this.hi)},jspb.arith.Int64=function(e,t){this.lo=e,this.hi=t},jspb.arith.Int64.prototype.add=function(e){return new jspb.arith.Int64((this.lo+e.lo&4294967295)>>>0>>>0,((this.hi+e.hi&4294967295)>>>0)+(4294967296<=this.lo+e.lo?1:0)>>>0)},jspb.arith.Int64.prototype.sub=function(e){return new jspb.arith.Int64((this.lo-e.lo&4294967295)>>>0>>>0,((this.hi-e.hi&4294967295)>>>0)-(0>this.lo-e.lo?1:0)>>>0)},jspb.arith.Int64.prototype.clone=function(){return new jspb.arith.Int64(this.lo,this.hi)},jspb.arith.Int64.prototype.toString=function(){var e=(2147483648&this.hi)!=0,t=new jspb.arith.UInt64(this.lo,this.hi);return e&&(t=new jspb.arith.UInt64(0,0).sub(t)),(e?"-":"")+t.toString()},jspb.arith.Int64.fromString=function(e){var t=0<e.length&&e[0]=="-";return t&&(e=e.substring(1)),(e=jspb.arith.UInt64.fromString(e))===null?null:(t&&(e=new jspb.arith.UInt64(0,0).sub(e)),new jspb.arith.Int64(e.lo,e.hi))},jspb.BinaryEncoder=function(){this.buffer_=[]},jspb.BinaryEncoder.prototype.length=function(){return this.buffer_.length},jspb.BinaryEncoder.prototype.end=function(){var e=this.buffer_;return this.buffer_=[],e},jspb.BinaryEncoder.prototype.writeSplitVarint64=function(e,t){for(goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(t==Math.floor(t)),goog.asserts.assert(0<=e&&e<jspb.BinaryConstants.TWO_TO_32),goog.asserts.assert(0<=t&&t<jspb.BinaryConstants.TWO_TO_32);0<t||127<e;)this.buffer_.push(127&e|128),e=(e>>>7|t<<25)>>>0,t>>>=7;this.buffer_.push(e)},jspb.BinaryEncoder.prototype.writeSplitFixed64=function(e,t){goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(t==Math.floor(t)),goog.asserts.assert(0<=e&&e<jspb.BinaryConstants.TWO_TO_32),goog.asserts.assert(0<=t&&t<jspb.BinaryConstants.TWO_TO_32),this.writeUint32(e),this.writeUint32(t)},jspb.BinaryEncoder.prototype.writeUnsignedVarint32=function(e){for(goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(0<=e&&e<jspb.BinaryConstants.TWO_TO_32);127<e;)this.buffer_.push(127&e|128),e>>>=7;this.buffer_.push(e)},jspb.BinaryEncoder.prototype.writeSignedVarint32=function(e){if(goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(e>=-jspb.BinaryConstants.TWO_TO_31&&e<jspb.BinaryConstants.TWO_TO_31),0<=e)this.writeUnsignedVarint32(e);else{for(var t=0;9>t;t++)this.buffer_.push(127&e|128),e>>=7;this.buffer_.push(1)}},jspb.BinaryEncoder.prototype.writeUnsignedVarint64=function(e){goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(0<=e&&e<jspb.BinaryConstants.TWO_TO_64),jspb.utils.splitInt64(e),this.writeSplitVarint64(jspb.utils.split64Low,jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeSignedVarint64=function(e){goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(e>=-jspb.BinaryConstants.TWO_TO_63&&e<jspb.BinaryConstants.TWO_TO_63),jspb.utils.splitInt64(e),this.writeSplitVarint64(jspb.utils.split64Low,jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeZigzagVarint32=function(e){goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(e>=-jspb.BinaryConstants.TWO_TO_31&&e<jspb.BinaryConstants.TWO_TO_31),this.writeUnsignedVarint32((e<<1^e>>31)>>>0)},jspb.BinaryEncoder.prototype.writeZigzagVarint64=function(e){goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(e>=-jspb.BinaryConstants.TWO_TO_63&&e<jspb.BinaryConstants.TWO_TO_63),jspb.utils.splitZigzag64(e),this.writeSplitVarint64(jspb.utils.split64Low,jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeZigzagVarint64String=function(e){this.writeZigzagVarintHash64(jspb.utils.decimalStringToHash64(e))},jspb.BinaryEncoder.prototype.writeZigzagVarintHash64=function(e){var t=this;jspb.utils.splitHash64(e),jspb.utils.toZigzag64(jspb.utils.split64Low,jspb.utils.split64High,function(r,n){t.writeSplitVarint64(r>>>0,n>>>0)})},jspb.BinaryEncoder.prototype.writeUint8=function(e){goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(0<=e&&256>e),this.buffer_.push(e>>>0&255)},jspb.BinaryEncoder.prototype.writeUint16=function(e){goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(0<=e&&65536>e),this.buffer_.push(e>>>0&255),this.buffer_.push(e>>>8&255)},jspb.BinaryEncoder.prototype.writeUint32=function(e){goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(0<=e&&e<jspb.BinaryConstants.TWO_TO_32),this.buffer_.push(e>>>0&255),this.buffer_.push(e>>>8&255),this.buffer_.push(e>>>16&255),this.buffer_.push(e>>>24&255)},jspb.BinaryEncoder.prototype.writeUint64=function(e){goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(0<=e&&e<jspb.BinaryConstants.TWO_TO_64),jspb.utils.splitUint64(e),this.writeUint32(jspb.utils.split64Low),this.writeUint32(jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeInt8=function(e){goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(-128<=e&&128>e),this.buffer_.push(e>>>0&255)},jspb.BinaryEncoder.prototype.writeInt16=function(e){goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(-32768<=e&&32768>e),this.buffer_.push(e>>>0&255),this.buffer_.push(e>>>8&255)},jspb.BinaryEncoder.prototype.writeInt32=function(e){goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(e>=-jspb.BinaryConstants.TWO_TO_31&&e<jspb.BinaryConstants.TWO_TO_31),this.buffer_.push(e>>>0&255),this.buffer_.push(e>>>8&255),this.buffer_.push(e>>>16&255),this.buffer_.push(e>>>24&255)},jspb.BinaryEncoder.prototype.writeInt64=function(e){goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(e>=-jspb.BinaryConstants.TWO_TO_63&&e<jspb.BinaryConstants.TWO_TO_63),jspb.utils.splitInt64(e),this.writeSplitFixed64(jspb.utils.split64Low,jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeInt64String=function(e){goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(+e>=-jspb.BinaryConstants.TWO_TO_63&&+e<jspb.BinaryConstants.TWO_TO_63),jspb.utils.splitHash64(jspb.utils.decimalStringToHash64(e)),this.writeSplitFixed64(jspb.utils.split64Low,jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeFloat=function(e){goog.asserts.assert(1/0===e||-1/0===e||isNaN(e)||e>=-jspb.BinaryConstants.FLOAT32_MAX&&e<=jspb.BinaryConstants.FLOAT32_MAX),jspb.utils.splitFloat32(e),this.writeUint32(jspb.utils.split64Low)},jspb.BinaryEncoder.prototype.writeDouble=function(e){goog.asserts.assert(1/0===e||-1/0===e||isNaN(e)||e>=-jspb.BinaryConstants.FLOAT64_MAX&&e<=jspb.BinaryConstants.FLOAT64_MAX),jspb.utils.splitFloat64(e),this.writeUint32(jspb.utils.split64Low),this.writeUint32(jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeBool=function(e){goog.asserts.assert(typeof e=="boolean"||typeof e=="number"),this.buffer_.push(e?1:0)},jspb.BinaryEncoder.prototype.writeEnum=function(e){goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(e>=-jspb.BinaryConstants.TWO_TO_31&&e<jspb.BinaryConstants.TWO_TO_31),this.writeSignedVarint32(e)},jspb.BinaryEncoder.prototype.writeBytes=function(e){this.buffer_.push.apply(this.buffer_,e)},jspb.BinaryEncoder.prototype.writeVarintHash64=function(e){jspb.utils.splitHash64(e),this.writeSplitVarint64(jspb.utils.split64Low,jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeFixedHash64=function(e){jspb.utils.splitHash64(e),this.writeUint32(jspb.utils.split64Low),this.writeUint32(jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeString=function(e){for(var t=this.buffer_.length,r=0;r<e.length;r++){var n=e.charCodeAt(r);if(128>n)this.buffer_.push(n);else if(2048>n)this.buffer_.push(n>>6|192),this.buffer_.push(63&n|128);else if(65536>n)if(55296<=n&&56319>=n&&r+1<e.length){var i=e.charCodeAt(r+1);56320<=i&&57343>=i&&(n=1024*(n-55296)+i-56320+65536,this.buffer_.push(n>>18|240),this.buffer_.push(n>>12&63|128),this.buffer_.push(n>>6&63|128),this.buffer_.push(63&n|128),r++)}else this.buffer_.push(n>>12|224),this.buffer_.push(n>>6&63|128),this.buffer_.push(63&n|128)}return this.buffer_.length-t},jspb.BinaryWriter=function(){this.blocks_=[],this.totalLength_=0,this.encoder_=new jspb.BinaryEncoder,this.bookmarks_=[]},jspb.BinaryWriter.prototype.appendUint8Array_=function(e){var t=this.encoder_.end();this.blocks_.push(t),this.blocks_.push(e),this.totalLength_+=t.length+e.length},jspb.BinaryWriter.prototype.beginDelimited_=function(e){return this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.DELIMITED),e=this.encoder_.end(),this.blocks_.push(e),this.totalLength_+=e.length,e.push(this.totalLength_),e},jspb.BinaryWriter.prototype.endDelimited_=function(e){var t=e.pop();for(t=this.totalLength_+this.encoder_.length()-t,goog.asserts.assert(0<=t);127<t;)e.push(127&t|128),t>>>=7,this.totalLength_++;e.push(t),this.totalLength_++},jspb.BinaryWriter.prototype.writeSerializedMessage=function(e,t,r){this.appendUint8Array_(e.subarray(t,r))},jspb.BinaryWriter.prototype.maybeWriteSerializedMessage=function(e,t,r){e!=null&&t!=null&&r!=null&&this.writeSerializedMessage(e,t,r)},jspb.BinaryWriter.prototype.reset=function(){this.blocks_=[],this.encoder_.end(),this.totalLength_=0,this.bookmarks_=[]},jspb.BinaryWriter.prototype.getResultBuffer=function(){goog.asserts.assert(this.bookmarks_.length==0);for(var e=new Uint8Array(this.totalLength_+this.encoder_.length()),t=this.blocks_,r=t.length,n=0,i=0;i<r;i++){var g=t[i];e.set(g,n),n+=g.length}return t=this.encoder_.end(),e.set(t,n),n+=t.length,goog.asserts.assert(n==e.length),this.blocks_=[e],e},jspb.BinaryWriter.prototype.getResultBase64String=function(e){return goog.crypt.base64.encodeByteArray(this.getResultBuffer(),e)},jspb.BinaryWriter.prototype.beginSubMessage=function(e){this.bookmarks_.push(this.beginDelimited_(e))},jspb.BinaryWriter.prototype.endSubMessage=function(){goog.asserts.assert(0<=this.bookmarks_.length),this.endDelimited_(this.bookmarks_.pop())},jspb.BinaryWriter.prototype.writeFieldHeader_=function(e,t){goog.asserts.assert(1<=e&&e==Math.floor(e)),this.encoder_.writeUnsignedVarint32(8*e+t)},jspb.BinaryWriter.prototype.writeAny=function(e,t,r){var n=jspb.BinaryConstants.FieldType;switch(e){case n.DOUBLE:this.writeDouble(t,r);break;case n.FLOAT:this.writeFloat(t,r);break;case n.INT64:this.writeInt64(t,r);break;case n.UINT64:this.writeUint64(t,r);break;case n.INT32:this.writeInt32(t,r);break;case n.FIXED64:this.writeFixed64(t,r);break;case n.FIXED32:this.writeFixed32(t,r);break;case n.BOOL:this.writeBool(t,r);break;case n.STRING:this.writeString(t,r);break;case n.GROUP:goog.asserts.fail("Group field type not supported in writeAny()");break;case n.MESSAGE:goog.asserts.fail("Message field type not supported in writeAny()");break;case n.BYTES:this.writeBytes(t,r);break;case n.UINT32:this.writeUint32(t,r);break;case n.ENUM:this.writeEnum(t,r);break;case n.SFIXED32:this.writeSfixed32(t,r);break;case n.SFIXED64:this.writeSfixed64(t,r);break;case n.SINT32:this.writeSint32(t,r);break;case n.SINT64:this.writeSint64(t,r);break;case n.FHASH64:this.writeFixedHash64(t,r);break;case n.VHASH64:this.writeVarintHash64(t,r);break;default:goog.asserts.fail("Invalid field type in writeAny()")}},jspb.BinaryWriter.prototype.writeUnsignedVarint32_=function(e,t){t!=null&&(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeUnsignedVarint32(t))},jspb.BinaryWriter.prototype.writeSignedVarint32_=function(e,t){t!=null&&(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSignedVarint32(t))},jspb.BinaryWriter.prototype.writeUnsignedVarint64_=function(e,t){t!=null&&(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeUnsignedVarint64(t))},jspb.BinaryWriter.prototype.writeSignedVarint64_=function(e,t){t!=null&&(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSignedVarint64(t))},jspb.BinaryWriter.prototype.writeZigzagVarint32_=function(e,t){t!=null&&(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeZigzagVarint32(t))},jspb.BinaryWriter.prototype.writeZigzagVarint64_=function(e,t){t!=null&&(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeZigzagVarint64(t))},jspb.BinaryWriter.prototype.writeZigzagVarint64String_=function(e,t){t!=null&&(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeZigzagVarint64String(t))},jspb.BinaryWriter.prototype.writeZigzagVarintHash64_=function(e,t){t!=null&&(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeZigzagVarintHash64(t))},jspb.BinaryWriter.prototype.writeInt32=function(e,t){t!=null&&(goog.asserts.assert(t>=-jspb.BinaryConstants.TWO_TO_31&&t<jspb.BinaryConstants.TWO_TO_31),this.writeSignedVarint32_(e,t))},jspb.BinaryWriter.prototype.writeInt32String=function(e,t){t!=null&&(t=parseInt(t,10),goog.asserts.assert(t>=-jspb.BinaryConstants.TWO_TO_31&&t<jspb.BinaryConstants.TWO_TO_31),this.writeSignedVarint32_(e,t))},jspb.BinaryWriter.prototype.writeInt64=function(e,t){t!=null&&(goog.asserts.assert(t>=-jspb.BinaryConstants.TWO_TO_63&&t<jspb.BinaryConstants.TWO_TO_63),this.writeSignedVarint64_(e,t))},jspb.BinaryWriter.prototype.writeInt64String=function(e,t){t!=null&&(t=jspb.arith.Int64.fromString(t),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSplitVarint64(t.lo,t.hi))},jspb.BinaryWriter.prototype.writeUint32=function(e,t){t!=null&&(goog.asserts.assert(0<=t&&t<jspb.BinaryConstants.TWO_TO_32),this.writeUnsignedVarint32_(e,t))},jspb.BinaryWriter.prototype.writeUint32String=function(e,t){t!=null&&(t=parseInt(t,10),goog.asserts.assert(0<=t&&t<jspb.BinaryConstants.TWO_TO_32),this.writeUnsignedVarint32_(e,t))},jspb.BinaryWriter.prototype.writeUint64=function(e,t){t!=null&&(goog.asserts.assert(0<=t&&t<jspb.BinaryConstants.TWO_TO_64),this.writeUnsignedVarint64_(e,t))},jspb.BinaryWriter.prototype.writeUint64String=function(e,t){t!=null&&(t=jspb.arith.UInt64.fromString(t),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSplitVarint64(t.lo,t.hi))},jspb.BinaryWriter.prototype.writeSint32=function(e,t){t!=null&&(goog.asserts.assert(t>=-jspb.BinaryConstants.TWO_TO_31&&t<jspb.BinaryConstants.TWO_TO_31),this.writeZigzagVarint32_(e,t))},jspb.BinaryWriter.prototype.writeSint64=function(e,t){t!=null&&(goog.asserts.assert(t>=-jspb.BinaryConstants.TWO_TO_63&&t<jspb.BinaryConstants.TWO_TO_63),this.writeZigzagVarint64_(e,t))},jspb.BinaryWriter.prototype.writeSintHash64=function(e,t){t!=null&&this.writeZigzagVarintHash64_(e,t)},jspb.BinaryWriter.prototype.writeSint64String=function(e,t){t!=null&&this.writeZigzagVarint64String_(e,t)},jspb.BinaryWriter.prototype.writeFixed32=function(e,t){t!=null&&(goog.asserts.assert(0<=t&&t<jspb.BinaryConstants.TWO_TO_32),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.FIXED32),this.encoder_.writeUint32(t))},jspb.BinaryWriter.prototype.writeFixed64=function(e,t){t!=null&&(goog.asserts.assert(0<=t&&t<jspb.BinaryConstants.TWO_TO_64),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeUint64(t))},jspb.BinaryWriter.prototype.writeFixed64String=function(e,t){t!=null&&(t=jspb.arith.UInt64.fromString(t),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeSplitFixed64(t.lo,t.hi))},jspb.BinaryWriter.prototype.writeSfixed32=function(e,t){t!=null&&(goog.asserts.assert(t>=-jspb.BinaryConstants.TWO_TO_31&&t<jspb.BinaryConstants.TWO_TO_31),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.FIXED32),this.encoder_.writeInt32(t))},jspb.BinaryWriter.prototype.writeSfixed64=function(e,t){t!=null&&(goog.asserts.assert(t>=-jspb.BinaryConstants.TWO_TO_63&&t<jspb.BinaryConstants.TWO_TO_63),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeInt64(t))},jspb.BinaryWriter.prototype.writeSfixed64String=function(e,t){t!=null&&(t=jspb.arith.Int64.fromString(t),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeSplitFixed64(t.lo,t.hi))},jspb.BinaryWriter.prototype.writeFloat=function(e,t){t!=null&&(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.FIXED32),this.encoder_.writeFloat(t))},jspb.BinaryWriter.prototype.writeDouble=function(e,t){t!=null&&(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeDouble(t))},jspb.BinaryWriter.prototype.writeBool=function(e,t){t!=null&&(goog.asserts.assert(typeof t=="boolean"||typeof t=="number"),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeBool(t))},jspb.BinaryWriter.prototype.writeEnum=function(e,t){t!=null&&(goog.asserts.assert(t>=-jspb.BinaryConstants.TWO_TO_31&&t<jspb.BinaryConstants.TWO_TO_31),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSignedVarint32(t))},jspb.BinaryWriter.prototype.writeString=function(e,t){t!=null&&(e=this.beginDelimited_(e),this.encoder_.writeString(t),this.endDelimited_(e))},jspb.BinaryWriter.prototype.writeBytes=function(e,t){t!=null&&(t=jspb.utils.byteSourceToUint8Array(t),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(t.length),this.appendUint8Array_(t))},jspb.BinaryWriter.prototype.writeMessage=function(e,t,r){t!=null&&(e=this.beginDelimited_(e),r(t,this),this.endDelimited_(e))},jspb.BinaryWriter.prototype.writeMessageSet=function(e,t,r){t!=null&&(this.writeFieldHeader_(1,jspb.BinaryConstants.WireType.START_GROUP),this.writeFieldHeader_(2,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSignedVarint32(e),e=this.beginDelimited_(3),r(t,this),this.endDelimited_(e),this.writeFieldHeader_(1,jspb.BinaryConstants.WireType.END_GROUP))},jspb.BinaryWriter.prototype.writeGroup=function(e,t,r){t!=null&&(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.START_GROUP),r(t,this),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.END_GROUP))},jspb.BinaryWriter.prototype.writeFixedHash64=function(e,t){t!=null&&(goog.asserts.assert(t.length==8),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeFixedHash64(t))},jspb.BinaryWriter.prototype.writeVarintHash64=function(e,t){t!=null&&(goog.asserts.assert(t.length==8),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeVarintHash64(t))},jspb.BinaryWriter.prototype.writeSplitFixed64=function(e,t,r){this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeSplitFixed64(t,r)},jspb.BinaryWriter.prototype.writeSplitVarint64=function(e,t,r){this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSplitVarint64(t,r)},jspb.BinaryWriter.prototype.writeSplitZigzagVarint64=function(e,t,r){this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT);var n=this.encoder_;jspb.utils.toZigzag64(t,r,function(i,g){n.writeSplitVarint64(i>>>0,g>>>0)})},jspb.BinaryWriter.prototype.writeRepeatedInt32=function(e,t){if(t!=null)for(var r=0;r<t.length;r++)this.writeSignedVarint32_(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedInt32String=function(e,t){if(t!=null)for(var r=0;r<t.length;r++)this.writeInt32String(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedInt64=function(e,t){if(t!=null)for(var r=0;r<t.length;r++)this.writeSignedVarint64_(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedSplitFixed64=function(e,t,r,n){if(t!=null)for(var i=0;i<t.length;i++)this.writeSplitFixed64(e,r(t[i]),n(t[i]))},jspb.BinaryWriter.prototype.writeRepeatedSplitVarint64=function(e,t,r,n){if(t!=null)for(var i=0;i<t.length;i++)this.writeSplitVarint64(e,r(t[i]),n(t[i]))},jspb.BinaryWriter.prototype.writeRepeatedSplitZigzagVarint64=function(e,t,r,n){if(t!=null)for(var i=0;i<t.length;i++)this.writeSplitZigzagVarint64(e,r(t[i]),n(t[i]))},jspb.BinaryWriter.prototype.writeRepeatedInt64String=function(e,t){if(t!=null)for(var r=0;r<t.length;r++)this.writeInt64String(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedUint32=function(e,t){if(t!=null)for(var r=0;r<t.length;r++)this.writeUnsignedVarint32_(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedUint32String=function(e,t){if(t!=null)for(var r=0;r<t.length;r++)this.writeUint32String(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedUint64=function(e,t){if(t!=null)for(var r=0;r<t.length;r++)this.writeUnsignedVarint64_(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedUint64String=function(e,t){if(t!=null)for(var r=0;r<t.length;r++)this.writeUint64String(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedSint32=function(e,t){if(t!=null)for(var r=0;r<t.length;r++)this.writeZigzagVarint32_(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedSint64=function(e,t){if(t!=null)for(var r=0;r<t.length;r++)this.writeZigzagVarint64_(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedSint64String=function(e,t){if(t!=null)for(var r=0;r<t.length;r++)this.writeZigzagVarint64String_(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedSintHash64=function(e,t){if(t!=null)for(var r=0;r<t.length;r++)this.writeZigzagVarintHash64_(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedFixed32=function(e,t){if(t!=null)for(var r=0;r<t.length;r++)this.writeFixed32(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedFixed64=function(e,t){if(t!=null)for(var r=0;r<t.length;r++)this.writeFixed64(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedFixed64String=function(e,t){if(t!=null)for(var r=0;r<t.length;r++)this.writeFixed64String(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedSfixed32=function(e,t){if(t!=null)for(var r=0;r<t.length;r++)this.writeSfixed32(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedSfixed64=function(e,t){if(t!=null)for(var r=0;r<t.length;r++)this.writeSfixed64(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedSfixed64String=function(e,t){if(t!=null)for(var r=0;r<t.length;r++)this.writeSfixed64String(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedFloat=function(e,t){if(t!=null)for(var r=0;r<t.length;r++)this.writeFloat(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedDouble=function(e,t){if(t!=null)for(var r=0;r<t.length;r++)this.writeDouble(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedBool=function(e,t){if(t!=null)for(var r=0;r<t.length;r++)this.writeBool(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedEnum=function(e,t){if(t!=null)for(var r=0;r<t.length;r++)this.writeEnum(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedString=function(e,t){if(t!=null)for(var r=0;r<t.length;r++)this.writeString(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedBytes=function(e,t){if(t!=null)for(var r=0;r<t.length;r++)this.writeBytes(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedMessage=function(e,t,r){if(t!=null)for(var n=0;n<t.length;n++){var i=this.beginDelimited_(e);r(t[n],this),this.endDelimited_(i)}},jspb.BinaryWriter.prototype.writeRepeatedGroup=function(e,t,r){if(t!=null)for(var n=0;n<t.length;n++)this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.START_GROUP),r(t[n],this),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.END_GROUP)},jspb.BinaryWriter.prototype.writeRepeatedFixedHash64=function(e,t){if(t!=null)for(var r=0;r<t.length;r++)this.writeFixedHash64(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedVarintHash64=function(e,t){if(t!=null)for(var r=0;r<t.length;r++)this.writeVarintHash64(e,t[r])},jspb.BinaryWriter.prototype.writePackedInt32=function(e,t){if(t!=null&&t.length){e=this.beginDelimited_(e);for(var r=0;r<t.length;r++)this.encoder_.writeSignedVarint32(t[r]);this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedInt32String=function(e,t){if(t!=null&&t.length){e=this.beginDelimited_(e);for(var r=0;r<t.length;r++)this.encoder_.writeSignedVarint32(parseInt(t[r],10));this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedInt64=function(e,t){if(t!=null&&t.length){e=this.beginDelimited_(e);for(var r=0;r<t.length;r++)this.encoder_.writeSignedVarint64(t[r]);this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedSplitFixed64=function(e,t,r,n){if(t!=null){e=this.beginDelimited_(e);for(var i=0;i<t.length;i++)this.encoder_.writeSplitFixed64(r(t[i]),n(t[i]));this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedSplitVarint64=function(e,t,r,n){if(t!=null){e=this.beginDelimited_(e);for(var i=0;i<t.length;i++)this.encoder_.writeSplitVarint64(r(t[i]),n(t[i]));this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedSplitZigzagVarint64=function(e,t,r,n){if(t!=null){e=this.beginDelimited_(e);for(var i=this.encoder_,g=0;g<t.length;g++)jspb.utils.toZigzag64(r(t[g]),n(t[g]),function(s,o){i.writeSplitVarint64(s>>>0,o>>>0)});this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedInt64String=function(e,t){if(t!=null&&t.length){e=this.beginDelimited_(e);for(var r=0;r<t.length;r++){var n=jspb.arith.Int64.fromString(t[r]);this.encoder_.writeSplitVarint64(n.lo,n.hi)}this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedUint32=function(e,t){if(t!=null&&t.length){e=this.beginDelimited_(e);for(var r=0;r<t.length;r++)this.encoder_.writeUnsignedVarint32(t[r]);this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedUint32String=function(e,t){if(t!=null&&t.length){e=this.beginDelimited_(e);for(var r=0;r<t.length;r++)this.encoder_.writeUnsignedVarint32(parseInt(t[r],10));this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedUint64=function(e,t){if(t!=null&&t.length){e=this.beginDelimited_(e);for(var r=0;r<t.length;r++)this.encoder_.writeUnsignedVarint64(t[r]);this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedUint64String=function(e,t){if(t!=null&&t.length){e=this.beginDelimited_(e);for(var r=0;r<t.length;r++){var n=jspb.arith.UInt64.fromString(t[r]);this.encoder_.writeSplitVarint64(n.lo,n.hi)}this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedSint32=function(e,t){if(t!=null&&t.length){e=this.beginDelimited_(e);for(var r=0;r<t.length;r++)this.encoder_.writeZigzagVarint32(t[r]);this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedSint64=function(e,t){if(t!=null&&t.length){e=this.beginDelimited_(e);for(var r=0;r<t.length;r++)this.encoder_.writeZigzagVarint64(t[r]);this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedSint64String=function(e,t){if(t!=null&&t.length){e=this.beginDelimited_(e);for(var r=0;r<t.length;r++)this.encoder_.writeZigzagVarintHash64(jspb.utils.decimalStringToHash64(t[r]));this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedSintHash64=function(e,t){if(t!=null&&t.length){e=this.beginDelimited_(e);for(var r=0;r<t.length;r++)this.encoder_.writeZigzagVarintHash64(t[r]);this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedFixed32=function(e,t){if(t!=null&&t.length)for(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(4*t.length),e=0;e<t.length;e++)this.encoder_.writeUint32(t[e])},jspb.BinaryWriter.prototype.writePackedFixed64=function(e,t){if(t!=null&&t.length)for(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*t.length),e=0;e<t.length;e++)this.encoder_.writeUint64(t[e])},jspb.BinaryWriter.prototype.writePackedFixed64String=function(e,t){if(t!=null&&t.length)for(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*t.length),e=0;e<t.length;e++){var r=jspb.arith.UInt64.fromString(t[e]);this.encoder_.writeSplitFixed64(r.lo,r.hi)}},jspb.BinaryWriter.prototype.writePackedSfixed32=function(e,t){if(t!=null&&t.length)for(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(4*t.length),e=0;e<t.length;e++)this.encoder_.writeInt32(t[e])},jspb.BinaryWriter.prototype.writePackedSfixed64=function(e,t){if(t!=null&&t.length)for(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*t.length),e=0;e<t.length;e++)this.encoder_.writeInt64(t[e])},jspb.BinaryWriter.prototype.writePackedSfixed64String=function(e,t){if(t!=null&&t.length)for(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*t.length),e=0;e<t.length;e++)this.encoder_.writeInt64String(t[e])},jspb.BinaryWriter.prototype.writePackedFloat=function(e,t){if(t!=null&&t.length)for(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(4*t.length),e=0;e<t.length;e++)this.encoder_.writeFloat(t[e])},jspb.BinaryWriter.prototype.writePackedDouble=function(e,t){if(t!=null&&t.length)for(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*t.length),e=0;e<t.length;e++)this.encoder_.writeDouble(t[e])},jspb.BinaryWriter.prototype.writePackedBool=function(e,t){if(t!=null&&t.length)for(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(t.length),e=0;e<t.length;e++)this.encoder_.writeBool(t[e])},jspb.BinaryWriter.prototype.writePackedEnum=function(e,t){if(t!=null&&t.length){e=this.beginDelimited_(e);for(var r=0;r<t.length;r++)this.encoder_.writeEnum(t[r]);this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedFixedHash64=function(e,t){if(t!=null&&t.length)for(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*t.length),e=0;e<t.length;e++)this.encoder_.writeFixedHash64(t[e])},jspb.BinaryWriter.prototype.writePackedVarintHash64=function(e,t){if(t!=null&&t.length){e=this.beginDelimited_(e);for(var r=0;r<t.length;r++)this.encoder_.writeVarintHash64(t[r]);this.endDelimited_(e)}},jspb.Export={},exports.Map=jspb.Map,exports.Message=jspb.Message,exports.BinaryReader=jspb.BinaryReader,exports.BinaryWriter=jspb.BinaryWriter,exports.ExtensionFieldInfo=jspb.ExtensionFieldInfo,exports.ExtensionFieldBinaryInfo=jspb.ExtensionFieldBinaryInfo,exports.exportSymbol=goog.exportSymbol,exports.inherits=goog.inherits,exports.object={extend:goog.object.extend},exports.typeOf=goog.typeOf}).call(this,__webpack_require__(5),__webpack_require__(4).Buffer)},function(e,t){var r=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof window.msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto);if(r){var n=new Uint8Array(16);e.exports=function(){return r(n),n}}else{var i=new Array(16);e.exports=function(){for(var g,s=0;s<16;s++)(3&s)==0&&(g=4294967296*Math.random()),i[s]=g>>>((3&s)<<3)&255;return i}}},function(e,t){for(var r=[],n=0;n<256;++n)r[n]=(n+256).toString(16).substr(1);e.exports=function(i,g){var s=g||0,o=r;return[o[i[s++]],o[i[s++]],o[i[s++]],o[i[s++]],"-",o[i[s++]],o[i[s++]],"-",o[i[s++]],o[i[s++]],"-",o[i[s++]],o[i[s++]],"-",o[i[s++]],o[i[s++]],o[i[s++]],o[i[s++]],o[i[s++]],o[i[s++]]].join("")}},function(e,t,r){(function(n){const i=r(210),g=r(49),s=(o,l)=>({from:s,EnvVarError:r(49),get:function(u){if(!u)return o;if(arguments.length>1)throw new g("It looks like you passed more than one argument to env.get(). Since env-var@6.0.0 this is no longer supported. To set a default value use env.get(TARGET).default(DEFAULT)");return i(o,u,l||{})}});e.exports=s(n.env)}).call(this,r(2))},function(e,t,r){var n=r(10),i=r(71),g=r(3).LEVEL,s=e.exports=function(){var o=this,l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};i.call(this,{objectMode:!0,highWaterMark:l.highWaterMark}),this.format=l.format,this.level=l.level,this.handleExceptions=l.handleExceptions,this.silent=l.silent,l.log&&(this.log=l.log),l.logv&&(this.logv=l.logv),l.close&&(this.close=l.close),this.once("pipe",function(u){o.levels=u.levels,o.parent=u}),this.once("unpipe",function(u){u===o.parent&&(o.parent=null,o.close&&o.close())})};n.inherits(s,i),s.prototype._write=function(o,l,u){if(this.silent||o.exception===!0&&!this.handleExceptions)return u(null);var m=this.level||this.parent&&this.parent.level;if(!m||this.levels[m]>=this.levels[o[g]]){if(o&&!this.format)return this.log(o,u);var R=void 0,y=void 0;try{y=this.format.transform(Object.assign({},o),this.format.options)}catch(S){R=S}if(R||!y){if(u(),R)throw R;return}return this.log(y,u)}return u(null)},s.prototype._writev=function(o,l){if(this.logv){var u=o.filter(this._accept,this);return u.length?this.logv(u,l):l(null)}for(var m=0;m<o.length;m++)if(this._accept(o[m]))if(!o[m].chunk||this.format){var R=void 0,y=void 0;try{y=this.format.transform(Object.assign({},o[m].chunk),this.format.options)}catch(S){R=S}if(R||!y){if(o[m].callback(),R)throw l(null),R}else this.log(y,o[m].callback)}else this.log(o[m].chunk,o[m].callback);return l(null)},s.prototype._accept=function(o){var l=o.chunk;if(this.silent)return!1;var u=this.level||this.parent&&this.parent.level;return!(l.exception!==!0&&u&&!(this.levels[u]>=this.levels[l[g]])||!this.handleExceptions&&l.exception===!0)},s.prototype._nop=function(){}},function(e,t,r){const{AbortController:n,AbortSignal:i}=typeof self!="undefined"?self:typeof window!="undefined"?window:void 0;e.exports=n,e.exports.AbortSignal=i,e.exports.default=n},function(e,t){var r=function(n){function i(){this.fetch=!1,this.DOMException=n.DOMException}return i.prototype=n,new i}(typeof self!="undefined"?self:this);(function(n){(function(i){var g="URLSearchParams"in n,s="Symbol"in n&&"iterator"in Symbol,o="FileReader"in n&&"Blob"in n&&function(){try{return new Blob,!0}catch{return!1}}(),l="FormData"in n,u="ArrayBuffer"in n;if(u)var m=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],R=ArrayBuffer.isView||function(O){return O&&m.indexOf(Object.prototype.toString.call(O))>-1};function y(O){if(typeof O!="string"&&(O=String(O)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(O))throw new TypeError("Invalid character in header field name");return O.toLowerCase()}function S(O){return typeof O!="string"&&(O=String(O)),O}function c(O){var _={next:function(){var x=O.shift();return{done:x===void 0,value:x}}};return s&&(_[Symbol.iterator]=function(){return _}),_}function w(O){this.map={},O instanceof w?O.forEach(function(_,x){this.append(x,_)},this):Array.isArray(O)?O.forEach(function(_){this.append(_[0],_[1])},this):O&&Object.getOwnPropertyNames(O).forEach(function(_){this.append(_,O[_])},this)}function E(O){if(O.bodyUsed)return Promise.reject(new TypeError("Already read"));O.bodyUsed=!0}function P(O){return new Promise(function(_,x){O.onload=function(){_(O.result)},O.onerror=function(){x(O.error)}})}function F(O){var _=new FileReader,x=P(_);return _.readAsArrayBuffer(O),x}function M(O){if(O.slice)return O.slice(0);var _=new Uint8Array(O.byteLength);return _.set(new Uint8Array(O)),_.buffer}function A(){return this.bodyUsed=!1,this._initBody=function(O){var _;this._bodyInit=O,O?typeof O=="string"?this._bodyText=O:o&&Blob.prototype.isPrototypeOf(O)?this._bodyBlob=O:l&&FormData.prototype.isPrototypeOf(O)?this._bodyFormData=O:g&&URLSearchParams.prototype.isPrototypeOf(O)?this._bodyText=O.toString():u&&o&&(_=O)&&DataView.prototype.isPrototypeOf(_)?(this._bodyArrayBuffer=M(O.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):u&&(ArrayBuffer.prototype.isPrototypeOf(O)||R(O))?this._bodyArrayBuffer=M(O):this._bodyText=O=Object.prototype.toString.call(O):this._bodyText="",this.headers.get("content-type")||(typeof O=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):g&&URLSearchParams.prototype.isPrototypeOf(O)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o&&(this.blob=function(){var O=E(this);if(O)return O;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?E(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(F)}),this.text=function(){var O,_,x,D=E(this);if(D)return D;if(this._bodyBlob)return O=this._bodyBlob,_=new FileReader,x=P(_),_.readAsText(O),x;if(this._bodyArrayBuffer)return Promise.resolve(function(L){for(var T=new Uint8Array(L),C=new Array(T.length),U=0;U<T.length;U++)C[U]=String.fromCharCode(T[U]);return C.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},l&&(this.formData=function(){return this.text().then($)}),this.json=function(){return this.text().then(JSON.parse)},this}w.prototype.append=function(O,_){O=y(O),_=S(_);var x=this.map[O];this.map[O]=x?x+", "+_:_},w.prototype.delete=function(O){delete this.map[y(O)]},w.prototype.get=function(O){return O=y(O),this.has(O)?this.map[O]:null},w.prototype.has=function(O){return this.map.hasOwnProperty(y(O))},w.prototype.set=function(O,_){this.map[y(O)]=S(_)},w.prototype.forEach=function(O,_){for(var x in this.map)this.map.hasOwnProperty(x)&&O.call(_,this.map[x],x,this)},w.prototype.keys=function(){var O=[];return this.forEach(function(_,x){O.push(x)}),c(O)},w.prototype.values=function(){var O=[];return this.forEach(function(_){O.push(_)}),c(O)},w.prototype.entries=function(){var O=[];return this.forEach(function(_,x){O.push([x,_])}),c(O)},s&&(w.prototype[Symbol.iterator]=w.prototype.entries);var p=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function N(O,_){var x,D,L=(_=_||{}).body;if(O instanceof N){if(O.bodyUsed)throw new TypeError("Already read");this.url=O.url,this.credentials=O.credentials,_.headers||(this.headers=new w(O.headers)),this.method=O.method,this.mode=O.mode,this.signal=O.signal,L||O._bodyInit==null||(L=O._bodyInit,O.bodyUsed=!0)}else this.url=String(O);if(this.credentials=_.credentials||this.credentials||"same-origin",!_.headers&&this.headers||(this.headers=new w(_.headers)),this.method=(x=_.method||this.method||"GET",D=x.toUpperCase(),p.indexOf(D)>-1?D:x),this.mode=_.mode||this.mode||null,this.signal=_.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&L)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(L)}function $(O){var _=new FormData;return O.trim().split("&").forEach(function(x){if(x){var D=x.split("="),L=D.shift().replace(/\+/g," "),T=D.join("=").replace(/\+/g," ");_.append(decodeURIComponent(L),decodeURIComponent(T))}}),_}function q(O,_){_||(_={}),this.type="default",this.status=_.status===void 0?200:_.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in _?_.statusText:"OK",this.headers=new w(_.headers),this.url=_.url||"",this._initBody(O)}N.prototype.clone=function(){return new N(this,{body:this._bodyInit})},A.call(N.prototype),A.call(q.prototype),q.prototype.clone=function(){return new q(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new w(this.headers),url:this.url})},q.error=function(){var O=new q(null,{status:0,statusText:""});return O.type="error",O};var h=[301,302,303,307,308];q.redirect=function(O,_){if(h.indexOf(_)===-1)throw new RangeError("Invalid status code");return new q(null,{status:_,headers:{location:O}})},i.DOMException=n.DOMException;try{new i.DOMException}catch{i.DOMException=function(_,x){this.message=_,this.name=x;var D=Error(_);this.stack=D.stack},i.DOMException.prototype=Object.create(Error.prototype),i.DOMException.prototype.constructor=i.DOMException}function d(O,_){return new Promise(function(x,D){var L=new N(O,_);if(L.signal&&L.signal.aborted)return D(new i.DOMException("Aborted","AbortError"));var T=new XMLHttpRequest;function C(){T.abort()}T.onload=function(){var U,b,f={status:T.status,statusText:T.statusText,headers:(U=T.getAllResponseHeaders()||"",b=new w,U.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(k){var Y=k.split(":"),K=Y.shift().trim();if(K){var Q=Y.join(":").trim();b.append(K,Q)}}),b)};f.url="responseURL"in T?T.responseURL:f.headers.get("X-Request-URL");var B="response"in T?T.response:T.responseText;x(new q(B,f))},T.onerror=function(){D(new TypeError("Network request failed"))},T.ontimeout=function(){D(new TypeError("Network request failed"))},T.onabort=function(){D(new i.DOMException("Aborted","AbortError"))},T.open(L.method,L.url,!0),L.credentials==="include"?T.withCredentials=!0:L.credentials==="omit"&&(T.withCredentials=!1),"responseType"in T&&o&&(T.responseType="blob"),L.headers.forEach(function(U,b){T.setRequestHeader(b,U)}),L.signal&&(L.signal.addEventListener("abort",C),T.onreadystatechange=function(){T.readyState===4&&L.signal.removeEventListener("abort",C)}),T.send(L._bodyInit===void 0?null:L._bodyInit)})}d.polyfill=!0,n.fetch||(n.fetch=d,n.Headers=w,n.Request=N,n.Response=q),i.Headers=w,i.Request=N,i.Response=q,i.fetch=d})({})})(r),delete r.fetch.polyfill,(t=r.fetch).default=r.fetch,t.fetch=r.fetch,t.Headers=r.Headers,t.Request=r.Request,t.Response=r.Response,e.exports=t},function(e,t,r){const n=r(222),i=Symbol("max"),g=Symbol("length"),s=Symbol("lengthCalculator"),o=Symbol("allowStale"),l=Symbol("maxAge"),u=Symbol("dispose"),m=Symbol("noDisposeOnSet"),R=Symbol("lruList"),y=Symbol("cache"),S=Symbol("updateAgeOnGet"),c=()=>1,w=(p,N,$)=>{const q=p[y].get(N);if(q){const h=q.value;if(E(p,h)){if(F(p,q),!p[o])return}else $&&(p[S]&&(q.value.now=Date.now()),p[R].unshiftNode(q));return h.value}},E=(p,N)=>{if(!N||!N.maxAge&&!p[l])return!1;const $=Date.now()-N.now;return N.maxAge?$>N.maxAge:p[l]&&$>p[l]},P=p=>{if(p[g]>p[i])for(let N=p[R].tail;p[g]>p[i]&&N!==null;){const $=N.prev;F(p,N),N=$}},F=(p,N)=>{if(N){const $=N.value;p[u]&&p[u]($.key,$.value),p[g]-=$.length,p[y].delete($.key),p[R].removeNode(N)}};class M{constructor(N,$,q,h,d){this.key=N,this.value=$,this.length=q,this.now=h,this.maxAge=d||0}}const A=(p,N,$,q)=>{let h=$.value;E(p,h)&&(F(p,$),p[o]||(h=void 0)),h&&N.call(q,h.value,h.key,p)};e.exports=class{constructor(p){if(typeof p=="number"&&(p={max:p}),p||(p={}),p.max&&(typeof p.max!="number"||p.max<0))throw new TypeError("max must be a non-negative number");this[i]=p.max||1/0;const N=p.length||c;if(this[s]=typeof N!="function"?c:N,this[o]=p.stale||!1,p.maxAge&&typeof p.maxAge!="number")throw new TypeError("maxAge must be a number");this[l]=p.maxAge||0,this[u]=p.dispose,this[m]=p.noDisposeOnSet||!1,this[S]=p.updateAgeOnGet||!1,this.reset()}set max(p){if(typeof p!="number"||p<0)throw new TypeError("max must be a non-negative number");this[i]=p||1/0,P(this)}get max(){return this[i]}set allowStale(p){this[o]=!!p}get allowStale(){return this[o]}set maxAge(p){if(typeof p!="number")throw new TypeError("maxAge must be a non-negative number");this[l]=p,P(this)}get maxAge(){return this[l]}set lengthCalculator(p){typeof p!="function"&&(p=c),p!==this[s]&&(this[s]=p,this[g]=0,this[R].forEach(N=>{N.length=this[s](N.value,N.key),this[g]+=N.length})),P(this)}get lengthCalculator(){return this[s]}get length(){return this[g]}get itemCount(){return this[R].length}rforEach(p,N){N=N||this;for(let $=this[R].tail;$!==null;){const q=$.prev;A(this,p,$,N),$=q}}forEach(p,N){N=N||this;for(let $=this[R].head;$!==null;){const q=$.next;A(this,p,$,N),$=q}}keys(){return this[R].toArray().map(p=>p.key)}values(){return this[R].toArray().map(p=>p.value)}reset(){this[u]&&this[R]&&this[R].length&&this[R].forEach(p=>this[u](p.key,p.value)),this[y]=new Map,this[R]=new n,this[g]=0}dump(){return this[R].map(p=>!E(this,p)&&{k:p.key,v:p.value,e:p.now+(p.maxAge||0)}).toArray().filter(p=>p)}dumpLru(){return this[R]}set(p,N,$){if(($=$||this[l])&&typeof $!="number")throw new TypeError("maxAge must be a number");const q=$?Date.now():0,h=this[s](N,p);if(this[y].has(p)){if(h>this[i])return F(this,this[y].get(p)),!1;const O=this[y].get(p).value;return this[u]&&(this[m]||this[u](p,O.value)),O.now=q,O.maxAge=$,O.value=N,this[g]+=h-O.length,O.length=h,this.get(p),P(this),!0}const d=new M(p,N,h,q,$);return d.length>this[i]?(this[u]&&this[u](p,N),!1):(this[g]+=d.length,this[R].unshift(d),this[y].set(p,this[R].head),P(this),!0)}has(p){if(!this[y].has(p))return!1;const N=this[y].get(p).value;return!E(this,N)}get(p){return w(this,p,!0)}peek(p){return w(this,p,!1)}pop(){const p=this[R].tail;return p?(F(this,p),p.value):null}del(p){F(this,this[y].get(p))}load(p){this.reset();const N=Date.now();for(let $=p.length-1;$>=0;$--){const q=p[$],h=q.e||0;if(h===0)this.set(q.k,q.v);else{const d=h-N;d>0&&this.set(q.k,q.v,d)}}}prune(){this[y].forEach((p,N)=>w(this,N,!1))}}},function(e,t,r){var n=r(225),i=r(226),g=i;g.v1=n,g.v4=i,e.exports=g},function(e,t,r){var n=r(37).Colorizer;e.exports=function(i){return n.addColors(i.colors||i),i}},function(e,t,r){var n={};e.exports=n,n.themes={};var i=r(10),g=n.styles=r(108),s=Object.defineProperties,o=new RegExp(/[\r\n]+/g);n.supportsColor=r(109).supportsColor,n.enabled===void 0&&(n.enabled=n.supportsColor()!==!1),n.enable=function(){n.enabled=!0},n.disable=function(){n.enabled=!1},n.stripColors=n.strip=function(E){return(""+E).replace(/\x1B\[\d+m/g,"")},n.stylize=function(E,P){return n.enabled?g[P].open+E+g[P].close:E+""};var l=/[|\\{}()[\]^$+*?.]/g;function u(E){var P=function F(){return S.apply(F,arguments)};return P._styles=E,P.__proto__=y,P}var m,R=(m={},g.grey=g.gray,Object.keys(g).forEach(function(E){g[E].closeRe=new RegExp(function(P){if(typeof P!="string")throw new TypeError("Expected a string");return P.replace(l,"\\$&")}(g[E].close),"g"),m[E]={get:function(){return u(this._styles.concat(E))}}}),m),y=s(function(){},R);function S(){var E=Array.prototype.slice.call(arguments),P=E.map(function(N){return N!==void 0&&N.constructor===String?N:i.inspect(N)}).join(" ");if(!n.enabled||!P)return P;for(var F=P.indexOf(`
|
|
35
|
+
`)!=-1,M=this._styles,A=M.length;A--;){var p=g[M[A]];P=p.open+P.replace(p.closeRe,p.open)+p.close,F&&(P=P.replace(o,function(N){return p.close+N+p.open}))}return P}n.setTheme=function(E){if(typeof E!="string")for(var P in E)(function(F){n[F]=function(M){if(typeof E[F]=="object"){var A=M;for(var p in E[F])A=n[E[F][p]](A);return A}return n[E[F]](M)}})(P);else console.log("colors.setTheme now only accepts an object, not a string. If you are trying to set a theme from a file, it is now your (the caller's) responsibility to require the file. The old syntax looked like colors.setTheme(__dirname + '/../themes/generic-logging.js'); The new syntax looks like colors.setTheme(require(__dirname + '/../themes/generic-logging.js'));")};var c=function(E,P){var F=P.split("");return(F=F.map(E)).join("")};for(var w in n.trap=r(111),n.zalgo=r(112),n.maps={},n.maps.america=r(113)(n),n.maps.zebra=r(114)(n),n.maps.rainbow=r(115)(n),n.maps.random=r(116)(n),n.maps)(function(E){n[E]=function(P){return c(n.maps[E],P)}})(w);s(n,function(){var E={};return Object.keys(R).forEach(function(P){E[P]={get:function(){return u([P])}}}),E}())},function(e,t){e.exports=function(r){return r&&typeof r=="object"&&typeof r.copy=="function"&&typeof r.fill=="function"&&typeof r.readUInt8=="function"}},function(e,t){typeof Object.create=="function"?e.exports=function(r,n){r.super_=n,r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(r,n){r.super_=n;var i=function(){};i.prototype=n.prototype,r.prototype=new i,r.prototype.constructor=r}},function(e,t){var r={};e.exports=r;var n={reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],grey:[90,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],blackBG:[40,49],redBG:[41,49],greenBG:[42,49],yellowBG:[43,49],blueBG:[44,49],magentaBG:[45,49],cyanBG:[46,49],whiteBG:[47,49]};Object.keys(n).forEach(function(i){var g=n[i],s=r[i]=[];s.open="["+g[0]+"m",s.close="["+g[1]+"m"})},function(e,t,r){(function(n){var i=r(15),g=r(110),s=n.env,o=void 0;function l(u){return function(m){return m!==0&&{level:m,hasBasic:!0,has256:m>=2,has16m:m>=3}}(function(m){if(o===!1)return 0;if(g("color=16m")||g("color=full")||g("color=truecolor"))return 3;if(g("color=256"))return 2;if(m&&!m.isTTY&&o!==!0)return 0;var R=o?1:0;if(n.platform==="win32"){var y=i.release().split(".");return Number(n.versions.node.split(".")[0])>=8&&Number(y[0])>=10&&Number(y[2])>=10586?Number(y[2])>=14931?3:2:1}if("CI"in s)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(function(c){return c in s})||s.CI_NAME==="codeship"?1:R;if("TEAMCITY_VERSION"in s)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(s.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in s){var S=parseInt((s.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(s.TERM_PROGRAM){case"iTerm.app":return S>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test("xterm-256color")?2:/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test("xterm-256color")||"COLORTERM"in s?1:R}(u))}g("no-color")||g("no-colors")||g("color=false")?o=!1:(g("color")||g("colors")||g("color=true")||g("color=always"))&&(o=!0),"FORCE_COLOR"in s&&(o=s.FORCE_COLOR.length===0||parseInt(s.FORCE_COLOR,10)!==0),e.exports={supportsColor:l,stdout:l(n.stdout),stderr:l(n.stderr)}}).call(this,r(2))},function(e,t,r){(function(n){e.exports=function(i,g){var s=(g=g||n.argv).indexOf("--"),o=/^-{1,2}/.test(i)?"":"--",l=g.indexOf(o+i);return l!==-1&&(s===-1||l<s)}}).call(this,r(2))},function(e,t){e.exports=function(r,n){var i="";r=(r=r||"Run the trap, drop the bass").split("");var g={a:["@","\u0104","\u023A","\u0245","\u0394","\u039B","\u0414"],b:["\xDF","\u0181","\u0243","\u026E","\u03B2","\u0E3F"],c:["\xA9","\u023B","\u03FE"],d:["\xD0","\u018A","\u0500","\u0501","\u0502","\u0503"],e:["\xCB","\u0115","\u018E","\u0258","\u03A3","\u03BE","\u04BC","\u0A6C"],f:["\u04FA"],g:["\u0262"],h:["\u0126","\u0195","\u04A2","\u04BA","\u04C7","\u050A"],i:["\u0F0F"],j:["\u0134"],k:["\u0138","\u04A0","\u04C3","\u051E"],l:["\u0139"],m:["\u028D","\u04CD","\u04CE","\u0520","\u0521","\u0D69"],n:["\xD1","\u014B","\u019D","\u0376","\u03A0","\u048A"],o:["\xD8","\xF5","\xF8","\u01FE","\u0298","\u047A","\u05DD","\u06DD","\u0E4F"],p:["\u01F7","\u048E"],q:["\u09CD"],r:["\xAE","\u01A6","\u0210","\u024C","\u0280","\u042F"],s:["\xA7","\u03DE","\u03DF","\u03E8"],t:["\u0141","\u0166","\u0373"],u:["\u01B1","\u054D"],v:["\u05D8"],w:["\u0428","\u0460","\u047C","\u0D70"],x:["\u04B2","\u04FE","\u04FC","\u04FD"],y:["\xA5","\u04B0","\u04CB"],z:["\u01B5","\u0240"]};return r.forEach(function(s){s=s.toLowerCase();var o=g[s]||[" "],l=Math.floor(Math.random()*o.length);i+=g[s]!==void 0?g[s][l]:s}),i}},function(e,t){e.exports=function(r,n){r=r||" he is here ";var i={up:["\u030D","\u030E","\u0304","\u0305","\u033F","\u0311","\u0306","\u0310","\u0352","\u0357","\u0351","\u0307","\u0308","\u030A","\u0342","\u0313","\u0308","\u034A","\u034B","\u034C","\u0303","\u0302","\u030C","\u0350","\u0300","\u0301","\u030B","\u030F","\u0312","\u0313","\u0314","\u033D","\u0309","\u0363","\u0364","\u0365","\u0366","\u0367","\u0368","\u0369","\u036A","\u036B","\u036C","\u036D","\u036E","\u036F","\u033E","\u035B","\u0346","\u031A"],down:["\u0316","\u0317","\u0318","\u0319","\u031C","\u031D","\u031E","\u031F","\u0320","\u0324","\u0325","\u0326","\u0329","\u032A","\u032B","\u032C","\u032D","\u032E","\u032F","\u0330","\u0331","\u0332","\u0333","\u0339","\u033A","\u033B","\u033C","\u0345","\u0347","\u0348","\u0349","\u034D","\u034E","\u0353","\u0354","\u0355","\u0356","\u0359","\u035A","\u0323"],mid:["\u0315","\u031B","\u0300","\u0301","\u0358","\u0321","\u0322","\u0327","\u0328","\u0334","\u0335","\u0336","\u035C","\u035D","\u035E","\u035F","\u0360","\u0362","\u0338","\u0337","\u0361"," \u0489"]},g=[].concat(i.up,i.down,i.mid);function s(l){return Math.floor(Math.random()*l)}function o(l){var u=!1;return g.filter(function(m){u=m===l}),u}return function(l,u){var m,R,y="";for(R in(u=u||{}).up=u.up===void 0||u.up,u.mid=u.mid===void 0||u.mid,u.down=u.down===void 0||u.down,u.size=u.size!==void 0?u.size:"maxi",l=l.split(""))if(!o(R)){switch(y+=l[R],m={up:0,down:0,mid:0},u.size){case"mini":m.up=s(8),m.mid=s(2),m.down=s(8);break;case"maxi":m.up=s(16)+3,m.mid=s(4)+1,m.down=s(64)+3;break;default:m.up=s(8)+1,m.mid=s(6)/2,m.down=s(8)+1}var S=["up","mid","down"];for(var c in S)for(var w=S[c],E=0;E<=m[w];E++)u[w]&&(y+=i[w][s(i[w].length)])}return y}(r,n)}},function(e,t){e.exports=function(r){return function(n,i,g){if(n===" ")return n;switch(i%3){case 0:return r.red(n);case 1:return r.white(n);case 2:return r.blue(n)}}}},function(e,t){e.exports=function(r){return function(n,i,g){return i%2==0?n:r.inverse(n)}}},function(e,t){e.exports=function(r){var n=["red","yellow","green","blue","magenta"];return function(i,g,s){return i===" "?i:r[n[g++%n.length]](i)}}},function(e,t){e.exports=function(r){var n=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta"];return function(i,g,s){return i===" "?i:r[n[Math.round(Math.random()*(n.length-2))]](i)}}},function(e,t,r){Object.defineProperty(t,"cli",{value:r(118)}),Object.defineProperty(t,"npm",{value:r(119)}),Object.defineProperty(t,"syslog",{value:r(120)})},function(e,t,r){t.levels={error:0,warn:1,help:2,data:3,info:4,debug:5,prompt:6,verbose:7,input:8,silly:9},t.colors={error:"red",warn:"yellow",help:"cyan",data:"grey",info:"green",debug:"blue",prompt:"grey",verbose:"cyan",input:"grey",silly:"magenta"}},function(e,t,r){t.levels={error:0,warn:1,info:2,http:3,verbose:4,debug:5,silly:6},t.colors={error:"red",warn:"yellow",info:"green",http:"green",verbose:"cyan",debug:"blue",silly:"magenta"}},function(e,t,r){t.levels={emerg:0,alert:1,crit:2,error:3,warning:4,notice:5,info:6,debug:7},t.colors={emerg:"red",alert:"yellow",crit:"red",error:"red",warning:"red",notice:"yellow",info:"green",debug:"blue"}},function(e,t,r){var n=r(9);e.exports=n(function(i){return i.message=" ".concat(i.message),i})},function(e,t,r){function n(R,y){if(!(R instanceof y))throw new TypeError("Cannot call a class as a function")}function i(R,y){for(var S=0;S<y.length;S++){var c=y[S];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(R,c.key,c)}}var g=r(37).Colorizer,s=r(58).Padder,o=r(3),l=o.configs,u=o.MESSAGE,m=function(){function R(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};n(this,R),c.levels||(c.levels=l.npm.levels),this.colorizer=new g(c),this.padder=new s(c),this.options=c}var y,S;return y=R,(S=[{key:"transform",value:function(c,w){return this.colorizer.transform(this.padder.transform(c,w),w),c[u]="".concat(c.level,":").concat(c.message),c}}])&&i(y.prototype,S),R}();e.exports=function(R){return new m(R)},e.exports.Format=m},function(e,t,r){var n=r(9);function i(s){if(s.every(g))return function(o){for(var l=o,u=0;u<s.length;u++)if(!(l=s[u].transform(l,s[u].options)))return!1;return l}}function g(s){if(typeof s.transform!="function")throw new Error(["No transform function found on format. Did you create a format instance?","const myFormat = format(formatFn);","const instance = myFormat();"].join(`
|
|
36
|
+
`));return!0}e.exports=function(){for(var s=arguments.length,o=new Array(s),l=0;l<s;l++)o[l]=arguments[l];var u=n(i(o)),m=u();return m.Format=u.Format,m},e.exports.cascade=i},function(e,t,r){(function(n){var i=r(9),g=r(3).MESSAGE,s=r(31);function o(l,u){return u instanceof n?u.toString("base64"):typeof u=="bigint"?u.toString():u}e.exports=i(function(l){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return l[g]=(u.stable?s.stableStringify:s)(l,u.replacer||o,u.space),l})}).call(this,r(4).Buffer)},function(e,t,r){t.byteLength=function(R){var y=u(R),S=y[0],c=y[1];return 3*(S+c)/4-c},t.toByteArray=function(R){for(var y,S=u(R),c=S[0],w=S[1],E=new g(function(A,p,N){return 3*(p+N)/4-N}(0,c,w)),P=0,F=w>0?c-4:c,M=0;M<F;M+=4)y=i[R.charCodeAt(M)]<<18|i[R.charCodeAt(M+1)]<<12|i[R.charCodeAt(M+2)]<<6|i[R.charCodeAt(M+3)],E[P++]=y>>16&255,E[P++]=y>>8&255,E[P++]=255&y;return w===2&&(y=i[R.charCodeAt(M)]<<2|i[R.charCodeAt(M+1)]>>4,E[P++]=255&y),w===1&&(y=i[R.charCodeAt(M)]<<10|i[R.charCodeAt(M+1)]<<4|i[R.charCodeAt(M+2)]>>2,E[P++]=y>>8&255,E[P++]=255&y),E},t.fromByteArray=function(R){for(var y,S=R.length,c=S%3,w=[],E=0,P=S-c;E<P;E+=16383)w.push(m(R,E,E+16383>P?P:E+16383));return c===1?(y=R[S-1],w.push(n[y>>2]+n[y<<4&63]+"==")):c===2&&(y=(R[S-2]<<8)+R[S-1],w.push(n[y>>10]+n[y>>4&63]+n[y<<2&63]+"=")),w.join("")};for(var n=[],i=[],g=typeof Uint8Array!="undefined"?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,l=s.length;o<l;++o)n[o]=s[o],i[s.charCodeAt(o)]=o;function u(R){var y=R.length;if(y%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var S=R.indexOf("=");return S===-1&&(S=y),[S,S===y?0:4-S%4]}function m(R,y,S){for(var c,w,E=[],P=y;P<S;P+=3)c=(R[P]<<16&16711680)+(R[P+1]<<8&65280)+(255&R[P+2]),E.push(n[(w=c)>>18&63]+n[w>>12&63]+n[w>>6&63]+n[63&w]);return E.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(e,t){t.read=function(r,n,i,g,s){var o,l,u=8*s-g-1,m=(1<<u)-1,R=m>>1,y=-7,S=i?s-1:0,c=i?-1:1,w=r[n+S];for(S+=c,o=w&(1<<-y)-1,w>>=-y,y+=u;y>0;o=256*o+r[n+S],S+=c,y-=8);for(l=o&(1<<-y)-1,o>>=-y,y+=g;y>0;l=256*l+r[n+S],S+=c,y-=8);if(o===0)o=1-R;else{if(o===m)return l?NaN:1/0*(w?-1:1);l+=Math.pow(2,g),o-=R}return(w?-1:1)*l*Math.pow(2,o-g)},t.write=function(r,n,i,g,s,o){var l,u,m,R=8*o-s-1,y=(1<<R)-1,S=y>>1,c=s===23?Math.pow(2,-24)-Math.pow(2,-77):0,w=g?0:o-1,E=g?1:-1,P=n<0||n===0&&1/n<0?1:0;for(n=Math.abs(n),isNaN(n)||n===1/0?(u=isNaN(n)?1:0,l=y):(l=Math.floor(Math.log(n)/Math.LN2),n*(m=Math.pow(2,-l))<1&&(l--,m*=2),(n+=l+S>=1?c/m:c*Math.pow(2,1-S))*m>=2&&(l++,m/=2),l+S>=y?(u=0,l=y):l+S>=1?(u=(n*m-1)*Math.pow(2,s),l+=S):(u=n*Math.pow(2,S-1)*Math.pow(2,s),l=0));s>=8;r[i+w]=255&u,w+=E,u/=256,s-=8);for(l=l<<s|u,R+=s;R>0;r[i+w]=255&l,w+=E,l/=256,R-=8);r[i+w-E]|=128*P}},function(e,t,r){var n=r(9);e.exports=n(function(i,g){return g.message?(i.message="[".concat(g.label,"] ").concat(i.message),i):(i.label=g.label,i)})},function(e,t,r){var n=r(9),i=r(3).MESSAGE,g=r(31);e.exports=n(function(s){var o={};return s.message&&(o["@message"]=s.message,delete s.message),s.timestamp&&(o["@timestamp"]=s.timestamp,delete s.timestamp),o["@fields"]=s,s[i]=g(o),s})},function(e,t,r){var n=r(9);function i(s,o,l){var u,m,R,y=o.reduce(function(c,w){return c[w]=s[w],delete s[w],c},{}),S=Object.keys(s).reduce(function(c,w){return c[w]=s[w],delete s[w],c},{});return Object.assign(s,y,(R=S,(m=l)in(u={})?Object.defineProperty(u,m,{value:R,enumerable:!0,configurable:!0,writable:!0}):u[m]=R,u)),s}function g(s,o,l){return s[l]=o.reduce(function(u,m){return u[m]=s[m],delete s[m],u},{}),s}e.exports=n(function(s){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l="metadata";o.key&&(l=o.key);var u=[];return o.fillExcept||o.fillWith||(u.push("level"),u.push("message")),o.fillExcept&&(u=o.fillExcept),u.length>0?i(s,u,l):o.fillWith?g(s,o.fillWith,l):s})},function(e,t,r){var n=r(10).inspect,i=r(9),g=r(3),s=g.LEVEL,o=g.MESSAGE,l=g.SPLAT;e.exports=i(function(u){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},R=Object.assign({},u);return delete R[s],delete R[o],delete R[l],u[o]=n(R,!1,m.depth||null,m.colorize),u})},function(e,t,r){function n(s,o){for(var l=0;l<o.length;l++){var u=o[l];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(s,u.key,u)}}var i=r(3).MESSAGE,g=function(){function s(u){(function(m,R){if(!(m instanceof R))throw new TypeError("Cannot call a class as a function")})(this,s),this.template=u}var o,l;return o=s,(l=[{key:"transform",value:function(u){return u[i]=this.template(u),u}}])&&n(o.prototype,l),s}();e.exports=function(s){return new g(s)},e.exports.Printf=e.exports.Format=g},function(e,t,r){var n=r(9),i=r(3).MESSAGE,g=r(31);e.exports=n(function(s){var o=g(Object.assign({},s,{level:void 0,message:void 0,splat:void 0})),l=s.padding&&s.padding[s.level]||"";return s[i]=o!=="{}"?"".concat(s.level,":").concat(l," ").concat(s.message," ").concat(o):"".concat(s.level,":").concat(l," ").concat(s.message),s})},function(e,t,r){function n(R){return function(y){if(Array.isArray(y))return i(y)}(R)||function(y){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(y))return Array.from(y)}(R)||function(y,S){if(!!y){if(typeof y=="string")return i(y,S);var c=Object.prototype.toString.call(y).slice(8,-1);if(c==="Object"&&y.constructor&&(c=y.constructor.name),c==="Map"||c==="Set")return Array.from(y);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return i(y,S)}}(R)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
37
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function i(R,y){(y==null||y>R.length)&&(y=R.length);for(var S=0,c=new Array(y);S<y;S++)c[S]=R[S];return c}function g(R,y){for(var S=0;S<y.length;S++){var c=y[S];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(R,c.key,c)}}var s=r(10),o=r(3).SPLAT,l=/%[scdjifoO%]/g,u=/%%/g,m=function(){function R(c){(function(w,E){if(!(w instanceof E))throw new TypeError("Cannot call a class as a function")})(this,R),this.options=c}var y,S;return y=R,(S=[{key:"_splat",value:function(c,w){var E=c.message,P=c[o]||c.splat||[],F=E.match(u),M=F&&F.length||0,A=w.length-M-P.length,p=A<0?P.splice(A,-1*A):[],N=p.length;if(N)for(var $=0;$<N;$++)Object.assign(c,p[$]);return c.message=s.format.apply(s,[E].concat(n(P))),c}},{key:"transform",value:function(c){var w=c.message,E=c[o]||c.splat;if(!E||!E.length)return c;var P=w&&w.match&&w.match(l);if(!P&&(E||E.length)){var F=E.length>1?E.splice(0):E,M=F.length;if(M)for(var A=0;A<M;A++)Object.assign(c,F[A]);return c}return P?this._splat(c,P):c}}])&&g(y.prototype,S),R}();e.exports=function(R){return new m(R)}},function(e,t,r){var n=r(135),i=r(9);e.exports=i(function(g){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return s.format&&(g.timestamp=typeof s.format=="function"?s.format():n.format(new Date,s.format)),g.timestamp||(g.timestamp=new Date().toISOString()),s.alias&&(g[s.alias]=g.timestamp),g})},function(e,t,r){r.r(t),r.d(t,"assign",function(){return l}),r.d(t,"format",function(){return d}),r.d(t,"parse",function(){return O}),r.d(t,"defaultI18n",function(){return y}),r.d(t,"setGlobalDateI18n",function(){return c}),r.d(t,"setGlobalDateMasks",function(){return h});var n=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,i="[^\\s]+",g=/\[([^]*?)\]/gm;function s(x,D){for(var L=[],T=0,C=x.length;T<C;T++)L.push(x[T].substr(0,D));return L}var o=function(x){return function(D,L){var T=L[x].map(function(C){return C.toLowerCase()}).indexOf(D.toLowerCase());return T>-1?T:null}};function l(x){for(var D=[],L=1;L<arguments.length;L++)D[L-1]=arguments[L];for(var T=0,C=D;T<C.length;T++){var U=C[T];for(var b in U)x[b]=U[b]}return x}var u=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],m=["January","February","March","April","May","June","July","August","September","October","November","December"],R=s(m,3),y={dayNamesShort:s(u,3),dayNames:u,monthNamesShort:R,monthNames:m,amPm:["am","pm"],DoFn:function(x){return x+["th","st","nd","rd"][x%10>3?0:(x-x%10!=10?1:0)*x%10]}},S=l({},y),c=function(x){return S=l(S,x)},w=function(x){return x.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},E=function(x,D){for(D===void 0&&(D=2),x=String(x);x.length<D;)x="0"+x;return x},P={D:function(x){return String(x.getDate())},DD:function(x){return E(x.getDate())},Do:function(x,D){return D.DoFn(x.getDate())},d:function(x){return String(x.getDay())},dd:function(x){return E(x.getDay())},ddd:function(x,D){return D.dayNamesShort[x.getDay()]},dddd:function(x,D){return D.dayNames[x.getDay()]},M:function(x){return String(x.getMonth()+1)},MM:function(x){return E(x.getMonth()+1)},MMM:function(x,D){return D.monthNamesShort[x.getMonth()]},MMMM:function(x,D){return D.monthNames[x.getMonth()]},YY:function(x){return E(String(x.getFullYear()),4).substr(2)},YYYY:function(x){return E(x.getFullYear(),4)},h:function(x){return String(x.getHours()%12||12)},hh:function(x){return E(x.getHours()%12||12)},H:function(x){return String(x.getHours())},HH:function(x){return E(x.getHours())},m:function(x){return String(x.getMinutes())},mm:function(x){return E(x.getMinutes())},s:function(x){return String(x.getSeconds())},ss:function(x){return E(x.getSeconds())},S:function(x){return String(Math.round(x.getMilliseconds()/100))},SS:function(x){return E(Math.round(x.getMilliseconds()/10),2)},SSS:function(x){return E(x.getMilliseconds(),3)},a:function(x,D){return x.getHours()<12?D.amPm[0]:D.amPm[1]},A:function(x,D){return x.getHours()<12?D.amPm[0].toUpperCase():D.amPm[1].toUpperCase()},ZZ:function(x){var D=x.getTimezoneOffset();return(D>0?"-":"+")+E(100*Math.floor(Math.abs(D)/60)+Math.abs(D)%60,4)},Z:function(x){var D=x.getTimezoneOffset();return(D>0?"-":"+")+E(Math.floor(Math.abs(D)/60),2)+":"+E(Math.abs(D)%60,2)}},F=function(x){return+x-1},M=[null,"[1-9]\\d?"],A=[null,i],p=["isPm",i,function(x,D){var L=x.toLowerCase();return L===D.amPm[0]?0:L===D.amPm[1]?1:null}],N=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(x){var D=(x+"").match(/([+-]|\d\d)/gi);if(D){var L=60*+D[1]+parseInt(D[2],10);return D[0]==="+"?L:-L}return 0}],$={D:["day","[1-9]\\d?"],DD:["day","\\d\\d"],Do:["day","[1-9]\\d?"+i,function(x){return parseInt(x,10)}],M:["month","[1-9]\\d?",F],MM:["month","\\d\\d",F],YY:["year","\\d\\d",function(x){var D=+(""+new Date().getFullYear()).substr(0,2);return+(""+(+x>68?D-1:D)+x)}],h:["hour","[1-9]\\d?",void 0,"isPm"],hh:["hour","\\d\\d",void 0,"isPm"],H:["hour","[1-9]\\d?"],HH:["hour","\\d\\d"],m:["minute","[1-9]\\d?"],mm:["minute","\\d\\d"],s:["second","[1-9]\\d?"],ss:["second","\\d\\d"],YYYY:["year","\\d{4}"],S:["millisecond","\\d",function(x){return 100*+x}],SS:["millisecond","\\d\\d",function(x){return 10*+x}],SSS:["millisecond","\\d{3}"],d:M,dd:M,ddd:A,dddd:A,MMM:["month",i,o("monthNamesShort")],MMMM:["month",i,o("monthNames")],a:p,A:p,ZZ:N,Z:N},q={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},h=function(x){return l(q,x)},d=function(x,D,L){if(D===void 0&&(D=q.default),L===void 0&&(L={}),typeof x=="number"&&(x=new Date(x)),Object.prototype.toString.call(x)!=="[object Date]"||isNaN(x.getTime()))throw new Error("Invalid Date pass to format");var T=[];D=(D=q[D]||D).replace(g,function(U,b){return T.push(b),"@@@"});var C=l(l({},S),L);return(D=D.replace(n,function(U){return P[U](x,C)})).replace(/@@@/g,function(){return T.shift()})};function O(x,D,L){if(L===void 0&&(L={}),typeof D!="string")throw new Error("Invalid format in fecha parse");if(D=q[D]||D,x.length>1e3)return null;var T={year:new Date().getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},C=[],U=[],b=D.replace(g,function(J,re){return U.push(w(re)),"@@@"}),f={},B={};b=w(b).replace(n,function(J){var re=$[J],se=re[0],oe=re[1],z=re[3];if(f[se])throw new Error("Invalid format. "+se+" specified twice in format");return f[se]=!0,z&&(B[z]=!0),C.push(re),"("+oe+")"}),Object.keys(B).forEach(function(J){if(!f[J])throw new Error("Invalid format. "+J+" is required in specified format")}),b=b.replace(/@@@/g,function(){return U.shift()});var k=x.match(new RegExp(b,"i"));if(!k)return null;for(var Y=l(l({},S),L),K=1;K<k.length;K++){var Q=C[K-1],G=Q[0],V=Q[2],v=V?V(k[K],Y):+k[K];if(v==null)return null;T[G]=v}T.isPm===1&&T.hour!=null&&+T.hour!=12?T.hour=+T.hour+12:T.isPm===0&&+T.hour==12&&(T.hour=0);for(var j=new Date(T.year,T.month,T.day,T.hour,T.minute,T.second,T.millisecond),W=[["month","getMonth"],["day","getDate"],["hour","getHours"],["minute","getMinutes"],["second","getSeconds"]],ee=(K=0,W.length);K<ee;K++)if(f[W[K][0]]&&T[W[K][0]]!==j[W[K][1]]())return null;return T.timezoneOffset==null?j:new Date(Date.UTC(T.year,T.month,T.day,T.hour,T.minute-T.timezoneOffset,T.second,T.millisecond))}var _={format:d,parse:O,defaultI18n:y,setGlobalDateI18n:c,setGlobalDateMasks:h};t.default=_},function(e,t,r){var n=r(57),i=r(9),g=r(3).MESSAGE;e.exports=i(function(s,o){return o.level!==!1&&(s.level=n.strip(s.level)),o.message!==!1&&(s.message=n.strip(s.message)),o.raw!==!1&&s[g]&&(s[g]=n.strip(s[g])),s})},function(e){e.exports=JSON.parse('{"name":"winston","description":"A logger for just about everything.","version":"3.3.3","author":"Charlie Robbins <charlie.robbins@gmail.com>","maintainers":["Jarrett Cruger <jcrugzz@gmail.com>","Chris Alderson <chrisalderson@protonmail.com>","David Hyde <dabh@stanford.edu>"],"repository":{"type":"git","url":"https://github.com/winstonjs/winston.git"},"keywords":["winston","logger","logging","logs","sysadmin","bunyan","pino","loglevel","tools","json","stream"],"dependencies":{"async":"^3.1.0","@dabh/diagnostics":"^2.0.2","is-stream":"^2.0.0","logform":"^2.2.0","one-time":"^1.0.0","readable-stream":"^3.4.0","stack-trace":"0.0.x","triple-beam":"^1.3.0","winston-transport":"^4.4.0"},"devDependencies":{"@babel/cli":"^7.10.3","@babel/core":"^7.10.3","@babel/preset-env":"^7.10.3","@types/node":"^14.0.13","abstract-winston-transport":"^0.5.1","assume":"^2.2.0","colors":"^1.4.0","cross-spawn-async":"^2.2.5","eslint-config-populist":"^4.2.0","hock":"^1.4.1","mocha":"^8.0.1","nyc":"^15.1.0","rimraf":"^3.0.2","split2":"^3.1.1","std-mocks":"^1.0.1","through2":"^3.0.1","winston-compat":"^0.1.5"},"main":"./lib/winston","browser":"./dist/winston","types":"./index.d.ts","scripts":{"lint":"populist lib/*.js lib/winston/*.js lib/winston/**/*.js","pretest":"npm run lint","test":"nyc --reporter=text --reporter lcov npm run test:mocha","test:mocha":"mocha test/*.test.js test/**/*.test.js --exit","build":"./node_modules/.bin/rimraf dist && babel lib -d dist","prepublishOnly":"npm run build"},"engines":{"node":">= 6.4.0"},"license":"MIT"}')},function(e,t,r){Object.defineProperty(t,"Console",{configurable:!0,enumerable:!0,get:function(){return r(139)}}),Object.defineProperty(t,"File",{configurable:!0,enumerable:!0,get:function(){return r(148)}}),Object.defineProperty(t,"Http",{configurable:!0,enumerable:!0,get:function(){return r(188)}}),Object.defineProperty(t,"Stream",{configurable:!0,enumerable:!0,get:function(){return r(200)}})},function(e,t,r){(function(n){function i(E){return(i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(P){return typeof P}:function(P){return P&&typeof Symbol=="function"&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P})(E)}function g(E,P){if(!(E instanceof P))throw new TypeError("Cannot call a class as a function")}function s(E,P){for(var F=0;F<P.length;F++){var M=P[F];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(E,M.key,M)}}function o(E,P){return(o=Object.setPrototypeOf||function(F,M){return F.__proto__=M,F})(E,P)}function l(E){var P=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var F,M=m(E);if(P){var A=m(this).constructor;F=Reflect.construct(M,arguments,A)}else F=M.apply(this,arguments);return u(this,F)}}function u(E,P){return!P||i(P)!=="object"&&typeof P!="function"?function(F){if(F===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return F}(E):P}function m(E){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(P){return P.__proto__||Object.getPrototypeOf(P)})(E)}var R=r(15),y=r(3),S=y.LEVEL,c=y.MESSAGE,w=r(17);e.exports=function(E){(function(p,N){if(typeof N!="function"&&N!==null)throw new TypeError("Super expression must either be null or a function");p.prototype=Object.create(N&&N.prototype,{constructor:{value:p,writable:!0,configurable:!0}}),N&&o(p,N)})(A,E);var P,F,M=l(A);function A(){var p,N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return g(this,A),(p=M.call(this,N)).name=N.name||"console",p.stderrLevels=p._stringArrayToSet(N.stderrLevels),p.consoleWarnLevels=p._stringArrayToSet(N.consoleWarnLevels),p.eol=N.eol||R.EOL,p.setMaxListeners(30),p}return P=A,(F=[{key:"log",value:function(p,N){var $=this;return n(function(){return $.emit("logged",p)}),this.stderrLevels[p[S]]?(console._stderr?console._stderr.write("".concat(p[c]).concat(this.eol)):console.error(p[c]),void(N&&N())):this.consoleWarnLevels[p[S]]?(console._stderr?console._stderr.write("".concat(p[c]).concat(this.eol)):console.warn(p[c]),void(N&&N())):(console._stdout?console._stdout.write("".concat(p[c]).concat(this.eol)):console.log(p[c]),void(N&&N()))}},{key:"_stringArrayToSet",value:function(p,N){if(!p)return{};if(N=N||"Cannot make set from type other than Array of string elements",!Array.isArray(p))throw new Error(N);return p.reduce(function($,q){if(typeof q!="string")throw new Error(N);return $[q]=!0,$},{})}}])&&s(P.prototype,F),A}(w)}).call(this,r(12).setImmediate)},function(e,t,r){(function(n,i){(function(g,s){if(!g.setImmediate){var o,l,u,m,R,y=1,S={},c=!1,w=g.document,E=Object.getPrototypeOf&&Object.getPrototypeOf(g);E=E&&E.setTimeout?E:g,{}.toString.call(g.process)==="[object process]"?o=function(M){i.nextTick(function(){F(M)})}:function(){if(g.postMessage&&!g.importScripts){var M=!0,A=g.onmessage;return g.onmessage=function(){M=!1},g.postMessage("","*"),g.onmessage=A,M}}()?(m="setImmediate$"+Math.random()+"$",R=function(M){M.source===g&&typeof M.data=="string"&&M.data.indexOf(m)===0&&F(+M.data.slice(m.length))},g.addEventListener?g.addEventListener("message",R,!1):g.attachEvent("onmessage",R),o=function(M){g.postMessage(m+M,"*")}):g.MessageChannel?((u=new MessageChannel).port1.onmessage=function(M){F(M.data)},o=function(M){u.port2.postMessage(M)}):w&&"onreadystatechange"in w.createElement("script")?(l=w.documentElement,o=function(M){var A=w.createElement("script");A.onreadystatechange=function(){F(M),A.onreadystatechange=null,l.removeChild(A),A=null},l.appendChild(A)}):o=function(M){setTimeout(F,0,M)},E.setImmediate=function(M){typeof M!="function"&&(M=new Function(""+M));for(var A=new Array(arguments.length-1),p=0;p<A.length;p++)A[p]=arguments[p+1];var N={callback:M,args:A};return S[y]=N,o(y),y++},E.clearImmediate=P}function P(M){delete S[M]}function F(M){if(c)setTimeout(F,0,M);else{var A=S[M];if(A){c=!0;try{(function(p){var N=p.callback,$=p.args;switch($.length){case 0:N();break;case 1:N($[0]);break;case 2:N($[0],$[1]);break;case 3:N($[0],$[1],$[2]);break;default:N.apply(void 0,$)}})(A)}finally{P(M),c=!1}}}}})(typeof self=="undefined"?n===void 0?this:n:self)}).call(this,r(5),r(2))},function(e,t,r){e.exports=r(60)},function(e,t,r){(function(n,i){var g=r(13);e.exports=A;var s,o=r(38);A.ReadableState=M,r(18).EventEmitter;var l=function(b,f){return b.listeners(f).length},u=r(61),m=r(40).Buffer,R=n.Uint8Array||function(){},y=Object.create(r(14));y.inherits=r(6);var S=r(143),c=void 0;c=S&&S.debuglog?S.debuglog("stream"):function(){};var w,E=r(144),P=r(62);y.inherits(A,u);var F=["error","close","destroy","pause","resume"];function M(b,f){b=b||{};var B=f instanceof(s=s||r(32));this.objectMode=!!b.objectMode,B&&(this.objectMode=this.objectMode||!!b.readableObjectMode);var k=b.highWaterMark,Y=b.readableHighWaterMark,K=this.objectMode?16:16384;this.highWaterMark=k||k===0?k:B&&(Y||Y===0)?Y:K,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new E,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=b.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,b.encoding&&(w||(w=r(19).StringDecoder),this.decoder=new w(b.encoding),this.encoding=b.encoding)}function A(b){if(s=s||r(32),!(this instanceof A))return new A(b);this._readableState=new M(b,this),this.readable=!0,b&&(typeof b.read=="function"&&(this._read=b.read),typeof b.destroy=="function"&&(this._destroy=b.destroy)),u.call(this)}function p(b,f,B,k,Y){var K,Q=b._readableState;return f===null?(Q.reading=!1,function(G,V){if(!V.ended){if(V.decoder){var v=V.decoder.end();v&&v.length&&(V.buffer.push(v),V.length+=V.objectMode?1:v.length)}V.ended=!0,q(G)}}(b,Q)):(Y||(K=function(G,V){var v;j=V,m.isBuffer(j)||j instanceof R||typeof V=="string"||V===void 0||G.objectMode||(v=new TypeError("Invalid non-string/buffer chunk"));var j;return v}(Q,f)),K?b.emit("error",K):Q.objectMode||f&&f.length>0?(typeof f=="string"||Q.objectMode||Object.getPrototypeOf(f)===m.prototype||(f=function(G){return m.from(G)}(f)),k?Q.endEmitted?b.emit("error",new Error("stream.unshift() after end event")):N(b,Q,f,!0):Q.ended?b.emit("error",new Error("stream.push() after EOF")):(Q.reading=!1,Q.decoder&&!B?(f=Q.decoder.write(f),Q.objectMode||f.length!==0?N(b,Q,f,!1):d(b,Q)):N(b,Q,f,!1))):k||(Q.reading=!1)),function(G){return!G.ended&&(G.needReadable||G.length<G.highWaterMark||G.length===0)}(Q)}function N(b,f,B,k){f.flowing&&f.length===0&&!f.sync?(b.emit("data",B),b.read(0)):(f.length+=f.objectMode?1:B.length,k?f.buffer.unshift(B):f.buffer.push(B),f.needReadable&&q(b)),d(b,f)}Object.defineProperty(A.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(b){this._readableState&&(this._readableState.destroyed=b)}}),A.prototype.destroy=P.destroy,A.prototype._undestroy=P.undestroy,A.prototype._destroy=function(b,f){this.push(null),f(b)},A.prototype.push=function(b,f){var B,k=this._readableState;return k.objectMode?B=!0:typeof b=="string"&&((f=f||k.defaultEncoding)!==k.encoding&&(b=m.from(b,f),f=""),B=!0),p(this,b,f,!1,B)},A.prototype.unshift=function(b){return p(this,b,null,!0,!1)},A.prototype.isPaused=function(){return this._readableState.flowing===!1},A.prototype.setEncoding=function(b){return w||(w=r(19).StringDecoder),this._readableState.decoder=new w(b),this._readableState.encoding=b,this};function $(b,f){return b<=0||f.length===0&&f.ended?0:f.objectMode?1:b!=b?f.flowing&&f.length?f.buffer.head.data.length:f.length:(b>f.highWaterMark&&(f.highWaterMark=function(B){return B>=8388608?B=8388608:(B--,B|=B>>>1,B|=B>>>2,B|=B>>>4,B|=B>>>8,B|=B>>>16,B++),B}(b)),b<=f.length?b:f.ended?f.length:(f.needReadable=!0,0))}function q(b){var f=b._readableState;f.needReadable=!1,f.emittedReadable||(c("emitReadable",f.flowing),f.emittedReadable=!0,f.sync?g.nextTick(h,b):h(b))}function h(b){c("emit readable"),b.emit("readable"),D(b)}function d(b,f){f.readingMore||(f.readingMore=!0,g.nextTick(O,b,f))}function O(b,f){for(var B=f.length;!f.reading&&!f.flowing&&!f.ended&&f.length<f.highWaterMark&&(c("maybeReadMore read 0"),b.read(0),B!==f.length);)B=f.length;f.readingMore=!1}function _(b){c("readable nexttick read 0"),b.read(0)}function x(b,f){f.reading||(c("resume read 0"),b.read(0)),f.resumeScheduled=!1,f.awaitDrain=0,b.emit("resume"),D(b),f.flowing&&!f.reading&&b.read(0)}function D(b){var f=b._readableState;for(c("flow",f.flowing);f.flowing&&b.read()!==null;);}function L(b,f){return f.length===0?null:(f.objectMode?B=f.buffer.shift():!b||b>=f.length?(B=f.decoder?f.buffer.join(""):f.buffer.length===1?f.buffer.head.data:f.buffer.concat(f.length),f.buffer.clear()):B=function(k,Y,K){var Q;return k<Y.head.data.length?(Q=Y.head.data.slice(0,k),Y.head.data=Y.head.data.slice(k)):Q=k===Y.head.data.length?Y.shift():K?function(G,V){var v=V.head,j=1,W=v.data;for(G-=W.length;v=v.next;){var ee=v.data,J=G>ee.length?ee.length:G;if(J===ee.length?W+=ee:W+=ee.slice(0,G),(G-=J)==0){J===ee.length?(++j,v.next?V.head=v.next:V.head=V.tail=null):(V.head=v,v.data=ee.slice(J));break}++j}return V.length-=j,W}(k,Y):function(G,V){var v=m.allocUnsafe(G),j=V.head,W=1;for(j.data.copy(v),G-=j.data.length;j=j.next;){var ee=j.data,J=G>ee.length?ee.length:G;if(ee.copy(v,v.length-G,0,J),(G-=J)==0){J===ee.length?(++W,j.next?V.head=j.next:V.head=V.tail=null):(V.head=j,j.data=ee.slice(J));break}++W}return V.length-=W,v}(k,Y),Q}(b,f.buffer,f.decoder),B);var B}function T(b){var f=b._readableState;if(f.length>0)throw new Error('"endReadable()" called on non-empty stream');f.endEmitted||(f.ended=!0,g.nextTick(C,f,b))}function C(b,f){b.endEmitted||b.length!==0||(b.endEmitted=!0,f.readable=!1,f.emit("end"))}function U(b,f){for(var B=0,k=b.length;B<k;B++)if(b[B]===f)return B;return-1}A.prototype.read=function(b){c("read",b),b=parseInt(b,10);var f=this._readableState,B=b;if(b!==0&&(f.emittedReadable=!1),b===0&&f.needReadable&&(f.length>=f.highWaterMark||f.ended))return c("read: emitReadable",f.length,f.ended),f.length===0&&f.ended?T(this):q(this),null;if((b=$(b,f))===0&&f.ended)return f.length===0&&T(this),null;var k,Y=f.needReadable;return c("need readable",Y),(f.length===0||f.length-b<f.highWaterMark)&&c("length less than watermark",Y=!0),f.ended||f.reading?c("reading or ended",Y=!1):Y&&(c("do read"),f.reading=!0,f.sync=!0,f.length===0&&(f.needReadable=!0),this._read(f.highWaterMark),f.sync=!1,f.reading||(b=$(B,f))),(k=b>0?L(b,f):null)===null?(f.needReadable=!0,b=0):f.length-=b,f.length===0&&(f.ended||(f.needReadable=!0),B!==b&&f.ended&&T(this)),k!==null&&this.emit("data",k),k},A.prototype._read=function(b){this.emit("error",new Error("_read() is not implemented"))},A.prototype.pipe=function(b,f){var B=this,k=this._readableState;switch(k.pipesCount){case 0:k.pipes=b;break;case 1:k.pipes=[k.pipes,b];break;default:k.pipes.push(b)}k.pipesCount+=1,c("pipe count=%d opts=%j",k.pipesCount,f);var Y=(!f||f.end!==!1)&&b!==i.stdout&&b!==i.stderr?Q:re;function K(se,oe){c("onunpipe"),se===B&&oe&&oe.hasUnpiped===!1&&(oe.hasUnpiped=!0,c("cleanup"),b.removeListener("close",ee),b.removeListener("finish",J),b.removeListener("drain",G),b.removeListener("error",W),b.removeListener("unpipe",K),B.removeListener("end",Q),B.removeListener("end",re),B.removeListener("data",j),V=!0,!k.awaitDrain||b._writableState&&!b._writableState.needDrain||G())}function Q(){c("onend"),b.end()}k.endEmitted?g.nextTick(Y):B.once("end",Y),b.on("unpipe",K);var G=function(se){return function(){var oe=se._readableState;c("pipeOnDrain",oe.awaitDrain),oe.awaitDrain&&oe.awaitDrain--,oe.awaitDrain===0&&l(se,"data")&&(oe.flowing=!0,D(se))}}(B);b.on("drain",G);var V=!1,v=!1;function j(se){c("ondata"),v=!1,b.write(se)!==!1||v||((k.pipesCount===1&&k.pipes===b||k.pipesCount>1&&U(k.pipes,b)!==-1)&&!V&&(c("false write response, pause",B._readableState.awaitDrain),B._readableState.awaitDrain++,v=!0),B.pause())}function W(se){c("onerror",se),re(),b.removeListener("error",W),l(b,"error")===0&&b.emit("error",se)}function ee(){b.removeListener("finish",J),re()}function J(){c("onfinish"),b.removeListener("close",ee),re()}function re(){c("unpipe"),B.unpipe(b)}return B.on("data",j),function(se,oe,z){if(typeof se.prependListener=="function")return se.prependListener(oe,z);se._events&&se._events[oe]?o(se._events[oe])?se._events[oe].unshift(z):se._events[oe]=[z,se._events[oe]]:se.on(oe,z)}(b,"error",W),b.once("close",ee),b.once("finish",J),b.emit("pipe",B),k.flowing||(c("pipe resume"),B.resume()),b},A.prototype.unpipe=function(b){var f=this._readableState,B={hasUnpiped:!1};if(f.pipesCount===0)return this;if(f.pipesCount===1)return b&&b!==f.pipes||(b||(b=f.pipes),f.pipes=null,f.pipesCount=0,f.flowing=!1,b&&b.emit("unpipe",this,B)),this;if(!b){var k=f.pipes,Y=f.pipesCount;f.pipes=null,f.pipesCount=0,f.flowing=!1;for(var K=0;K<Y;K++)k[K].emit("unpipe",this,B);return this}var Q=U(f.pipes,b);return Q===-1||(f.pipes.splice(Q,1),f.pipesCount-=1,f.pipesCount===1&&(f.pipes=f.pipes[0]),b.emit("unpipe",this,B)),this},A.prototype.on=function(b,f){var B=u.prototype.on.call(this,b,f);if(b==="data")this._readableState.flowing!==!1&&this.resume();else if(b==="readable"){var k=this._readableState;k.endEmitted||k.readableListening||(k.readableListening=k.needReadable=!0,k.emittedReadable=!1,k.reading?k.length&&q(this):g.nextTick(_,this))}return B},A.prototype.addListener=A.prototype.on,A.prototype.resume=function(){var b=this._readableState;return b.flowing||(c("resume"),b.flowing=!0,function(f,B){B.resumeScheduled||(B.resumeScheduled=!0,g.nextTick(x,f,B))}(this,b)),this},A.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this},A.prototype.wrap=function(b){var f=this,B=this._readableState,k=!1;for(var Y in b.on("end",function(){if(c("wrapped end"),B.decoder&&!B.ended){var Q=B.decoder.end();Q&&Q.length&&f.push(Q)}f.push(null)}),b.on("data",function(Q){c("wrapped data"),B.decoder&&(Q=B.decoder.write(Q)),B.objectMode&&Q==null||(B.objectMode||Q&&Q.length)&&(f.push(Q)||(k=!0,b.pause()))}),b)this[Y]===void 0&&typeof b[Y]=="function"&&(this[Y]=function(Q){return function(){return b[Q].apply(b,arguments)}}(Y));for(var K=0;K<F.length;K++)b.on(F[K],this.emit.bind(this,F[K]));return this._read=function(Q){c("wrapped _read",Q),k&&(k=!1,b.resume())},this},Object.defineProperty(A.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),A._fromList=L}).call(this,r(5),r(2))},function(e,t){},function(e,t,r){var n=r(40).Buffer,i=r(145);e.exports=function(){function g(){(function(s,o){if(!(s instanceof o))throw new TypeError("Cannot call a class as a function")})(this,g),this.head=null,this.tail=null,this.length=0}return g.prototype.push=function(s){var o={data:s,next:null};this.length>0?this.tail.next=o:this.head=o,this.tail=o,++this.length},g.prototype.unshift=function(s){var o={data:s,next:this.head};this.length===0&&(this.tail=o),this.head=o,++this.length},g.prototype.shift=function(){if(this.length!==0){var s=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,s}},g.prototype.clear=function(){this.head=this.tail=null,this.length=0},g.prototype.join=function(s){if(this.length===0)return"";for(var o=this.head,l=""+o.data;o=o.next;)l+=s+o.data;return l},g.prototype.concat=function(s){if(this.length===0)return n.alloc(0);if(this.length===1)return this.head.data;for(var o,l,u,m=n.allocUnsafe(s>>>0),R=this.head,y=0;R;)o=R.data,l=m,u=y,o.copy(l,u),y+=R.data.length,R=R.next;return m},g}(),i&&i.inspect&&i.inspect.custom&&(e.exports.prototype[i.inspect.custom]=function(){var g=i.inspect({length:this.length});return this.constructor.name+" "+g})},function(e,t){},function(e,t,r){var n=r(4),i=n.Buffer;function g(o,l){for(var u in o)l[u]=o[u]}function s(o,l,u){return i(o,l,u)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(g(n,t),t.Buffer=s),g(i,s),s.from=function(o,l,u){if(typeof o=="number")throw new TypeError("Argument must not be a number");return i(o,l,u)},s.alloc=function(o,l,u){if(typeof o!="number")throw new TypeError("Argument must be a number");var m=i(o);return l!==void 0?typeof u=="string"?m.fill(l,u):m.fill(l):m.fill(0),m},s.allocUnsafe=function(o){if(typeof o!="number")throw new TypeError("Argument must be a number");return i(o)},s.allocUnsafeSlow=function(o){if(typeof o!="number")throw new TypeError("Argument must be a number");return n.SlowBuffer(o)}},function(e,t,r){var n=r(10),i=r(3).LEVEL,g=r(17),s=e.exports=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(g.call(this,o),!o.transport||typeof o.transport.log!="function")throw new Error("Invalid transport, must be an object with a log method.");function l(u){this.emit("error",u,this.transport)}this.transport=o.transport,this.level=this.level||o.transport.level,this.handleExceptions=this.handleExceptions||o.transport.handleExceptions,this._deprecated(),this.transport.__winstonError||(this.transport.__winstonError=l.bind(this),this.transport.on("error",this.transport.__winstonError))};n.inherits(s,g),s.prototype._write=function(o,l,u){if(this.silent||o.exception===!0&&!this.handleExceptions)return u(null);(!this.level||this.levels[this.level]>=this.levels[o[i]])&&this.transport.log(o[i],o.message,o,this._nop),u(null)},s.prototype._writev=function(o,l){for(var u=0;u<o.length;u++)this._accept(o[u])&&(this.transport.log(o[u].chunk[i],o[u].chunk.message,o[u].chunk,this._nop),o[u].callback());return l(null)},s.prototype._deprecated=function(){console.error([this.transport.name+" is a legacy winston transport. Consider upgrading: ","- Upgrade docs: https://github.com/winstonjs/winston/blob/master/UPGRADE-3.0.md"].join(`
|
|
38
|
+
`))},s.prototype.close=function(){this.transport.close&&this.transport.close(),this.transport.__winstonError&&(this.transport.removeListener("error",this.transport.__winstonError),this.transport.__winstonError=null)}},function(e,t,r){(function(n,i){function g(h){return(g=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d})(h)}function s(h,d){if(!(h instanceof d))throw new TypeError("Cannot call a class as a function")}function o(h,d){for(var O=0;O<d.length;O++){var _=d[O];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(h,_.key,_)}}function l(h,d){return(l=Object.setPrototypeOf||function(O,_){return O.__proto__=_,O})(h,d)}function u(h){var d=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var O,_=y(h);if(d){var x=y(this).constructor;O=Reflect.construct(_,arguments,x)}else O=_.apply(this,arguments);return m(this,O)}}function m(h,d){return!d||g(d)!=="object"&&typeof d!="function"?R(h):d}function R(h){if(h===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h}function y(h){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(d){return d.__proto__||Object.getPrototypeOf(d)})(h)}var S=r(63),c=r(53),w=r(149),E=r(159),P=r(3).MESSAGE,F=r(29),M=F.Stream,A=F.PassThrough,p=r(17),N=r(34)("winston:file"),$=r(15),q=r(187);e.exports=function(h){(function(D,L){if(typeof L!="function"&&L!==null)throw new TypeError("Super expression must either be null or a function");D.prototype=Object.create(L&&L.prototype,{constructor:{value:D,writable:!0,configurable:!0}}),L&&l(D,L)})(x,h);var d,O,_=u(x);function x(){var D,L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};function T(C){for(var U=arguments.length,b=new Array(U>1?U-1:0),f=1;f<U;f++)b[f-1]=arguments[f];b.slice(1).forEach(function(B){if(L[B])throw new Error("Cannot set ".concat(B," and ").concat(C," together"))})}if(s(this,x),(D=_.call(this,L)).name=L.name||"file",D._stream=new A,D._stream.setMaxListeners(30),D._onError=D._onError.bind(R(D)),L.filename||L.dirname)T("filename or dirname","stream"),D._basename=D.filename=L.filename?c.basename(L.filename):"winston.log",D.dirname=L.dirname||c.dirname(L.filename),D.options=L.options||{flags:"a"};else{if(!L.stream)throw new Error("Cannot log to file without filename or stream.");console.warn("options.stream will be removed in winston@4. Use winston.transports.Stream"),T("stream","filename","maxsize"),D._dest=D._stream.pipe(D._setupStream(L.stream)),D.dirname=c.dirname(D._dest.path)}return D.maxsize=L.maxsize||null,D.rotationFormat=L.rotationFormat||!1,D.zippedArchive=L.zippedArchive||!1,D.maxFiles=L.maxFiles||null,D.eol=L.eol||$.EOL,D.tailable=L.tailable||!1,D._size=0,D._pendingSize=0,D._created=0,D._drain=!1,D._opening=!1,D._ending=!1,D.dirname&&D._createLogDirIfNotExist(D.dirname),D.open(),D}return d=x,(O=[{key:"finishIfEnding",value:function(){var D=this;this._ending&&(this._opening?this.once("open",function(){D._stream.once("finish",function(){return D.emit("finish")}),n(function(){return D._stream.end()})}):(this._stream.once("finish",function(){return D.emit("finish")}),n(function(){return D._stream.end()})))}},{key:"log",value:function(D){var L=this,T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){};if(this.silent)return T(),!0;if(this._drain)this._stream.once("drain",function(){L._drain=!1,L.log(D,T)});else{if(!this._rotate){var C="".concat(D[P]).concat(this.eol),U=i.byteLength(C);this._pendingSize+=U,this._opening&&!this.rotatedWhileOpening&&this._needsNewFile(this._size+this._pendingSize)&&(this.rotatedWhileOpening=!0);var b=this._stream.write(C,f.bind(this));return b?T():(this._drain=!0,this._stream.once("drain",function(){L._drain=!1,T()})),N("written",b,this._drain),this.finishIfEnding(),b}this._stream.once("rotate",function(){L._rotate=!1,L.log(D,T)})}function f(){var B=this;this._size+=U,this._pendingSize-=U,N("logged %s %s",this._size,C),this.emit("logged",D),this._opening||this._needsNewFile()&&(this._rotate=!0,this._endStream(function(){return B._rotateFile()}))}}},{key:"query",value:function(D,L){typeof D=="function"&&(L=D,D={}),D=function(k){return(k=k||{}).rows=k.rows||k.limit||10,k.start=k.start||0,k.until=k.until||new Date,g(k.until)!=="object"&&(k.until=new Date(k.until)),k.from=k.from||k.until-864e5,g(k.from)!=="object"&&(k.from=new Date(k.from)),k.order=k.order||"desc",k}(D);var T=c.join(this.dirname,this.filename),C="",U=[],b=0,f=S.createReadStream(T,{encoding:"utf8"});function B(k,Y){try{var K=JSON.parse(k);(function(Q){if(Q&&g(Q)==="object"){var G=new Date(Q.timestamp);if(!(D.from&&G<D.from||D.until&&G>D.until||D.level&&D.level!==Q.level))return!0}})(K)&&function(Q){D.rows&&U.length>=D.rows&&D.order!=="desc"?f.readable&&f.destroy():(D.fields&&(Q=D.fields.reduce(function(G,V){return G[V]=Q[V],G},{})),D.order==="desc"&&U.length>=D.rows&&U.shift(),U.push(Q))}(K)}catch(Q){Y||f.emit("error",Q)}}f.on("error",function(k){if(f.readable&&f.destroy(),L)return k.code!=="ENOENT"?L(k):L(null,U)}),f.on("data",function(k){for(var Y=(k=(C+k).split(/\n+/)).length-1,K=0;K<Y;K++)(!D.start||b>=D.start)&&B(k[K]),b++;C=k[Y]}),f.on("close",function(){C&&B(C,!0),D.order==="desc"&&(U=U.reverse()),L&&L(null,U)})}},{key:"stream",value:function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},L=c.join(this.dirname,this.filename),T=new M,C={file:L,start:D.start};return T.destroy=q(C,function(U,b){if(U)return T.emit("error",U);try{T.emit("data",b),b=JSON.parse(b),T.emit("log",b)}catch(f){T.emit("error",f)}}),T}},{key:"open",value:function(){var D=this;this.filename&&(this._opening||(this._opening=!0,this.stat(function(L,T){if(L)return D.emit("error",L);N("stat done: %s { size: %s }",D.filename,T),D._size=T,D._dest=D._createStream(D._stream),D._opening=!1,D.once("open",function(){D._stream.eventNames().includes("rotate")?D._stream.emit("rotate"):D._rotate=!1})})))}},{key:"stat",value:function(D){var L=this,T=this._getFile(),C=c.join(this.dirname,T);S.stat(C,function(U,b){return U&&U.code==="ENOENT"?(N("ENOENT\xA0ok",C),L.filename=T,D(null,0)):U?(N("err ".concat(U.code," ").concat(C)),D(U)):!b||L._needsNewFile(b.size)?L._incFile(function(){return L.stat(D)}):(L.filename=T,void D(null,b.size))})}},{key:"close",value:function(D){var L=this;this._stream&&this._stream.end(function(){D&&D(),L.emit("flush"),L.emit("closed")})}},{key:"_needsNewFile",value:function(D){return D=D||this._size,this.maxsize&&D>=this.maxsize}},{key:"_onError",value:function(D){this.emit("error",D)}},{key:"_setupStream",value:function(D){return D.on("error",this._onError),D}},{key:"_cleanupStream",value:function(D){return D.removeListener("error",this._onError),D}},{key:"_rotateFile",value:function(){var D=this;this._incFile(function(){return D.open()})}},{key:"_endStream",value:function(){var D=this,L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){};this._dest?(this._stream.unpipe(this._dest),this._dest.end(function(){D._cleanupStream(D._dest),L()})):L()}},{key:"_createStream",value:function(D){var L=this,T=c.join(this.dirname,this.filename);N("create stream start",T,this.options);var C=S.createWriteStream(T,this.options).on("error",function(b){return N(b)}).on("close",function(){return N("close",C.path,C.bytesWritten)}).on("open",function(){N("file open ok",T),L.emit("open",T),D.pipe(C),L.rotatedWhileOpening&&(L._stream=new A,L._stream.setMaxListeners(30),L._rotateFile(),L.rotatedWhileOpening=!1,L._cleanupStream(C),D.end())});if(N("create stream ok",T),this.zippedArchive){var U=E.createGzip();return U.pipe(C),U}return C}},{key:"_incFile",value:function(D){N("_incFile",this.filename);var L=c.extname(this._basename),T=c.basename(this._basename,L);this.tailable?this._checkMaxFilesTailable(L,T,D):(this._created+=1,this._checkMaxFilesIncrementing(L,T,D))}},{key:"_getFile",value:function(){var D=c.extname(this._basename),L=c.basename(this._basename,D),T=this.rotationFormat?this.rotationFormat():this._created,C=!this.tailable&&this._created?"".concat(L).concat(T).concat(D):"".concat(L).concat(D);return this.zippedArchive&&!this.tailable?"".concat(C,".gz"):C}},{key:"_checkMaxFilesIncrementing",value:function(D,L,T){if(!this.maxFiles||this._created<this.maxFiles)return n(T);var C=this._created-this.maxFiles,U=C!==0?C:"",b=this.zippedArchive?".gz":"",f="".concat(L).concat(U).concat(D).concat(b),B=c.join(this.dirname,f);S.unlink(B,T)}},{key:"_checkMaxFilesTailable",value:function(D,L,T){var C=this,U=[];if(this.maxFiles){for(var b=this.zippedArchive?".gz":"",f=this.maxFiles-1;f>1;f--)U.push(function(B,k){var Y=this,K="".concat(L).concat(B-1).concat(D).concat(b),Q=c.join(this.dirname,K);S.exists(Q,function(G){if(!G)return k(null);K="".concat(L).concat(B).concat(D).concat(b),S.rename(Q,c.join(Y.dirname,K),k)})}.bind(this,f));w(U,function(){S.rename(c.join(C.dirname,"".concat(L).concat(D)),c.join(C.dirname,"".concat(L,"1").concat(D).concat(b)),T)})}}},{key:"_createLogDirIfNotExist",value:function(D){S.existsSync(D)||S.mkdirSync(D,{recursive:!0})}}])&&o(d.prototype,O),x}(p)}).call(this,r(12).setImmediate,r(4).Buffer)},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(s,o){return(0,n.default)(i.default,s,o)};var n=g(r(150)),i=g(r(154));function g(s){return s&&s.__esModule?s:{default:s}}e.exports=t.default},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=s(r(41)),i=s(r(23)),g=s(r(27));function s(o){return o&&o.__esModule?o:{default:o}}t.default=(0,g.default)((o,l,u)=>{var m=(0,n.default)(l)?[]:{};o(l,(R,y,S)=>{(0,i.default)(R)((c,...w)=>{w.length<2&&([w]=w),m[y]=w,S(c)})},R=>u(R,m))},3),e.exports=t.default},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(u){return(0,g.isAsync)(u)?function(...m){const R=m.pop();return o(u.apply(this,m),R)}:(0,n.default)(function(m,R){var y;try{y=u.apply(this,m)}catch(S){return R(S)}if(y&&typeof y.then=="function")return o(y,R);R(null,y)})};var n=s(r(152)),i=s(r(153)),g=r(23);function s(u){return u&&u.__esModule?u:{default:u}}function o(u,m){return u.then(R=>{l(m,null,R)},R=>{l(m,R&&R.message?R:new Error(R))})}function l(u,m,R){try{u(m,R)}catch(y){(0,i.default)(S=>{throw S},y)}}e.exports=t.default},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(n){return function(...i){var g=i.pop();return n.call(this,i,g)}},e.exports=t.default},function(e,t,r){(function(n,i){Object.defineProperty(t,"__esModule",{value:!0}),t.fallback=l,t.wrap=u;var g,s=t.hasSetImmediate=typeof n=="function"&&n,o=t.hasNextTick=typeof i=="object"&&typeof i.nextTick=="function";function l(m){setTimeout(m,0)}function u(m){return(R,...y)=>m(()=>R(...y))}g=s?n:o?i.nextTick:l,t.default=u(g)}).call(this,r(12).setImmediate,r(2))},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=g(r(64)),i=g(r(27));function g(s){return s&&s.__esModule?s:{default:s}}t.default=(0,i.default)(function(s,o,l){return(0,n.default)(s,1,o,l)},3),e.exports=t.default},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=u(r(65)),i=u(r(156)),g=u(r(66)),s=r(23),o=u(r(158)),l=u(r(42));function u(m){return m&&m.__esModule?m:{default:m}}t.default=m=>(R,y,S)=>{if(S=(0,n.default)(S),m<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!R)return S(null);if((0,s.isAsyncGenerator)(R))return(0,o.default)(R,m,y,S);if((0,s.isAsyncIterable)(R))return(0,o.default)(R[Symbol.asyncIterator](),m,y,S);var c=(0,i.default)(R),w=!1,E=!1,P=0,F=!1;function M(p,N){if(!E)if(P-=1,p)w=!0,S(p);else if(p===!1)w=!0,E=!0;else{if(N===l.default||w&&P<=0)return w=!0,S(null);F||A()}}function A(){for(F=!0;P<m&&!w;){var p=c();if(p===null)return w=!0,void(P<=0&&S(null));P+=1,y(p.value,p.key,(0,g.default)(M))}F=!1}A()},e.exports=t.default},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(s){if((0,n.default)(s))return function(y){var S=-1,c=y.length;return function(){return++S<c?{value:y[S],key:S}:null}}(s);var o=(0,i.default)(s);return o?function(y){var S=-1;return function(){var c=y.next();return c.done?null:(S++,{value:c.value,key:S})}}(o):(l=s,u=l?Object.keys(l):[],m=-1,R=u.length,function(){var y=u[++m];return m<R?{value:l[y],key:y}:null});var l,u,m,R};var n=g(r(41)),i=g(r(157));function g(s){return s&&s.__esModule?s:{default:s}}e.exports=t.default},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(n){return n[Symbol.iterator]&&n[Symbol.iterator]()},e.exports=t.default},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(s,o,l,u){let m=!1,R=!1,y=!1,S=0,c=0;function w(){S>=o||y||m||(y=!0,s.next().then(({value:F,done:M})=>{if(!R&&!m){if(y=!1,M)return m=!0,void(S<=0&&u(null));S++,l(F,c,E),c++,w()}}).catch(P))}function E(F,M){if(S-=1,!R)return F?P(F):F===!1?(m=!0,void(R=!0)):M===g.default||m&&S<=0?(m=!0,u(null)):void w()}function P(F){R||(y=!1,m=!0,u(F))}w()};var n,i=r(42),g=(n=i)&&n.__esModule?n:{default:n};e.exports=t.default},function(e,t,r){(function(n){var i=r(4).Buffer,g=r(160).Transform,s=r(168),o=r(10),l=r(72).ok,u=r(4).kMaxLength,m="Cannot create final Buffer. It would be larger than 0x"+u.toString(16)+" bytes";s.Z_MIN_WINDOWBITS=8,s.Z_MAX_WINDOWBITS=15,s.Z_DEFAULT_WINDOWBITS=15,s.Z_MIN_CHUNK=64,s.Z_MAX_CHUNK=1/0,s.Z_DEFAULT_CHUNK=16384,s.Z_MIN_MEMLEVEL=1,s.Z_MAX_MEMLEVEL=9,s.Z_DEFAULT_MEMLEVEL=8,s.Z_MIN_LEVEL=-1,s.Z_MAX_LEVEL=9,s.Z_DEFAULT_LEVEL=s.Z_DEFAULT_COMPRESSION;for(var R=Object.keys(s),y=0;y<R.length;y++){var S=R[y];S.match(/^Z/)&&Object.defineProperty(t,S,{enumerable:!0,value:s[S],writable:!1})}for(var c={Z_OK:s.Z_OK,Z_STREAM_END:s.Z_STREAM_END,Z_NEED_DICT:s.Z_NEED_DICT,Z_ERRNO:s.Z_ERRNO,Z_STREAM_ERROR:s.Z_STREAM_ERROR,Z_DATA_ERROR:s.Z_DATA_ERROR,Z_MEM_ERROR:s.Z_MEM_ERROR,Z_BUF_ERROR:s.Z_BUF_ERROR,Z_VERSION_ERROR:s.Z_VERSION_ERROR},w=Object.keys(c),E=0;E<w.length;E++){var P=w[E];c[c[P]]=P}function F(L,T,C){var U=[],b=0;function f(){for(var k;(k=L.read())!==null;)U.push(k),b+=k.length;L.once("readable",f)}function B(){var k,Y=null;b>=u?Y=new RangeError(m):k=i.concat(U,b),U=[],L.close(),C(Y,k)}L.on("error",function(k){L.removeListener("end",B),L.removeListener("readable",f),C(k)}),L.on("end",B),L.end(T),f()}function M(L,T){if(typeof T=="string"&&(T=i.from(T)),!i.isBuffer(T))throw new TypeError("Not a string or buffer");var C=L._finishFlushFlag;return L._processChunk(T,C)}function A(L){if(!(this instanceof A))return new A(L);_.call(this,L,s.DEFLATE)}function p(L){if(!(this instanceof p))return new p(L);_.call(this,L,s.INFLATE)}function N(L){if(!(this instanceof N))return new N(L);_.call(this,L,s.GZIP)}function $(L){if(!(this instanceof $))return new $(L);_.call(this,L,s.GUNZIP)}function q(L){if(!(this instanceof q))return new q(L);_.call(this,L,s.DEFLATERAW)}function h(L){if(!(this instanceof h))return new h(L);_.call(this,L,s.INFLATERAW)}function d(L){if(!(this instanceof d))return new d(L);_.call(this,L,s.UNZIP)}function O(L){return L===s.Z_NO_FLUSH||L===s.Z_PARTIAL_FLUSH||L===s.Z_SYNC_FLUSH||L===s.Z_FULL_FLUSH||L===s.Z_FINISH||L===s.Z_BLOCK}function _(L,T){var C=this;if(this._opts=L=L||{},this._chunkSize=L.chunkSize||t.Z_DEFAULT_CHUNK,g.call(this,L),L.flush&&!O(L.flush))throw new Error("Invalid flush flag: "+L.flush);if(L.finishFlush&&!O(L.finishFlush))throw new Error("Invalid flush flag: "+L.finishFlush);if(this._flushFlag=L.flush||s.Z_NO_FLUSH,this._finishFlushFlag=L.finishFlush!==void 0?L.finishFlush:s.Z_FINISH,L.chunkSize&&(L.chunkSize<t.Z_MIN_CHUNK||L.chunkSize>t.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+L.chunkSize);if(L.windowBits&&(L.windowBits<t.Z_MIN_WINDOWBITS||L.windowBits>t.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+L.windowBits);if(L.level&&(L.level<t.Z_MIN_LEVEL||L.level>t.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+L.level);if(L.memLevel&&(L.memLevel<t.Z_MIN_MEMLEVEL||L.memLevel>t.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+L.memLevel);if(L.strategy&&L.strategy!=t.Z_FILTERED&&L.strategy!=t.Z_HUFFMAN_ONLY&&L.strategy!=t.Z_RLE&&L.strategy!=t.Z_FIXED&&L.strategy!=t.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+L.strategy);if(L.dictionary&&!i.isBuffer(L.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._handle=new s.Zlib(T);var U=this;this._hadError=!1,this._handle.onerror=function(B,k){x(U),U._hadError=!0;var Y=new Error(B);Y.errno=k,Y.code=t.codes[k],U.emit("error",Y)};var b=t.Z_DEFAULT_COMPRESSION;typeof L.level=="number"&&(b=L.level);var f=t.Z_DEFAULT_STRATEGY;typeof L.strategy=="number"&&(f=L.strategy),this._handle.init(L.windowBits||t.Z_DEFAULT_WINDOWBITS,b,L.memLevel||t.Z_DEFAULT_MEMLEVEL,f,L.dictionary),this._buffer=i.allocUnsafe(this._chunkSize),this._offset=0,this._level=b,this._strategy=f,this.once("end",this.close),Object.defineProperty(this,"_closed",{get:function(){return!C._handle},configurable:!0,enumerable:!0})}function x(L,T){T&&n.nextTick(T),L._handle&&(L._handle.close(),L._handle=null)}function D(L){L.emit("close")}Object.defineProperty(t,"codes",{enumerable:!0,value:Object.freeze(c),writable:!1}),t.Deflate=A,t.Inflate=p,t.Gzip=N,t.Gunzip=$,t.DeflateRaw=q,t.InflateRaw=h,t.Unzip=d,t.createDeflate=function(L){return new A(L)},t.createInflate=function(L){return new p(L)},t.createDeflateRaw=function(L){return new q(L)},t.createInflateRaw=function(L){return new h(L)},t.createGzip=function(L){return new N(L)},t.createGunzip=function(L){return new $(L)},t.createUnzip=function(L){return new d(L)},t.deflate=function(L,T,C){return typeof T=="function"&&(C=T,T={}),F(new A(T),L,C)},t.deflateSync=function(L,T){return M(new A(T),L)},t.gzip=function(L,T,C){return typeof T=="function"&&(C=T,T={}),F(new N(T),L,C)},t.gzipSync=function(L,T){return M(new N(T),L)},t.deflateRaw=function(L,T,C){return typeof T=="function"&&(C=T,T={}),F(new q(T),L,C)},t.deflateRawSync=function(L,T){return M(new q(T),L)},t.unzip=function(L,T,C){return typeof T=="function"&&(C=T,T={}),F(new d(T),L,C)},t.unzipSync=function(L,T){return M(new d(T),L)},t.inflate=function(L,T,C){return typeof T=="function"&&(C=T,T={}),F(new p(T),L,C)},t.inflateSync=function(L,T){return M(new p(T),L)},t.gunzip=function(L,T,C){return typeof T=="function"&&(C=T,T={}),F(new $(T),L,C)},t.gunzipSync=function(L,T){return M(new $(T),L)},t.inflateRaw=function(L,T,C){return typeof T=="function"&&(C=T,T={}),F(new h(T),L,C)},t.inflateRawSync=function(L,T){return M(new h(T),L)},o.inherits(_,g),_.prototype.params=function(L,T,C){if(L<t.Z_MIN_LEVEL||L>t.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+L);if(T!=t.Z_FILTERED&&T!=t.Z_HUFFMAN_ONLY&&T!=t.Z_RLE&&T!=t.Z_FIXED&&T!=t.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+T);if(this._level!==L||this._strategy!==T){var U=this;this.flush(s.Z_SYNC_FLUSH,function(){l(U._handle,"zlib binding closed"),U._handle.params(L,T),U._hadError||(U._level=L,U._strategy=T,C&&C())})}else n.nextTick(C)},_.prototype.reset=function(){return l(this._handle,"zlib binding closed"),this._handle.reset()},_.prototype._flush=function(L){this._transform(i.alloc(0),"",L)},_.prototype.flush=function(L,T){var C=this,U=this._writableState;(typeof L=="function"||L===void 0&&!T)&&(T=L,L=s.Z_FULL_FLUSH),U.ended?T&&n.nextTick(T):U.ending?T&&this.once("end",T):U.needDrain?T&&this.once("drain",function(){return C.flush(L,T)}):(this._flushFlag=L,this.write(i.alloc(0),"",T))},_.prototype.close=function(L){x(this,L),n.nextTick(D,this)},_.prototype._transform=function(L,T,C){var U,b=this._writableState,f=(b.ending||b.ended)&&(!L||b.length===L.length);return L===null||i.isBuffer(L)?this._handle?(f?U=this._finishFlushFlag:(U=this._flushFlag,L.length>=b.length&&(this._flushFlag=this._opts.flush||s.Z_NO_FLUSH)),void this._processChunk(L,U,C)):C(new Error("zlib binding closed")):C(new Error("invalid input"))},_.prototype._processChunk=function(L,T,C){var U=L&&L.length,b=this._chunkSize-this._offset,f=0,B=this,k=typeof C=="function";if(!k){var Y,K=[],Q=0;this.on("error",function(W){Y=W}),l(this._handle,"zlib binding closed");do var G=this._handle.writeSync(T,L,f,U,this._buffer,this._offset,b);while(!this._hadError&&j(G[0],G[1]));if(this._hadError)throw Y;if(Q>=u)throw x(this),new RangeError(m);var V=i.concat(K,Q);return x(this),V}l(this._handle,"zlib binding closed");var v=this._handle.write(T,L,f,U,this._buffer,this._offset,b);function j(W,ee){if(this&&(this.buffer=null,this.callback=null),!B._hadError){var J=b-ee;if(l(J>=0,"have should not go down"),J>0){var re=B._buffer.slice(B._offset,B._offset+J);B._offset+=J,k?B.push(re):(K.push(re),Q+=re.length)}if((ee===0||B._offset>=B._chunkSize)&&(b=B._chunkSize,B._offset=0,B._buffer=i.allocUnsafe(B._chunkSize)),ee===0){if(f+=U-W,U=W,!k)return!0;var se=B._handle.write(T,L,f,U,B._buffer,B._offset,B._chunkSize);return se.callback=j,void(se.buffer=L)}if(!k)return!1;C()}}v.buffer=L,v.callback=j},o.inherits(A,_),o.inherits(p,_),o.inherits(N,_),o.inherits($,_),o.inherits(q,_),o.inherits(h,_),o.inherits(d,_)}).call(this,r(2))},function(e,t,r){e.exports=i;var n=r(18).EventEmitter;function i(){n.call(this)}r(6)(i,n),i.Readable=r(28),i.Writable=r(71),i.Duplex=r(165),i.Transform=r(166),i.PassThrough=r(167),i.Stream=i,i.prototype.pipe=function(g,s){var o=this;function l(w){g.writable&&g.write(w)===!1&&o.pause&&o.pause()}function u(){o.readable&&o.resume&&o.resume()}o.on("data",l),g.on("drain",u),g._isStdio||s&&s.end===!1||(o.on("end",R),o.on("close",y));var m=!1;function R(){m||(m=!0,g.end())}function y(){m||(m=!0,typeof g.destroy=="function"&&g.destroy())}function S(w){if(c(),n.listenerCount(this,"error")===0)throw w}function c(){o.removeListener("data",l),g.removeListener("drain",u),o.removeListener("end",R),o.removeListener("close",y),o.removeListener("error",S),g.removeListener("error",S),o.removeListener("end",c),o.removeListener("close",c),g.removeListener("close",c)}return o.on("error",S),g.on("error",S),o.on("end",c),o.on("close",c),g.on("close",c),g.emit("pipe",o),g}},function(e,t){},function(e,t,r){var n=r(43).Buffer,i=r(163);e.exports=function(){function g(){(function(s,o){if(!(s instanceof o))throw new TypeError("Cannot call a class as a function")})(this,g),this.head=null,this.tail=null,this.length=0}return g.prototype.push=function(s){var o={data:s,next:null};this.length>0?this.tail.next=o:this.head=o,this.tail=o,++this.length},g.prototype.unshift=function(s){var o={data:s,next:this.head};this.length===0&&(this.tail=o),this.head=o,++this.length},g.prototype.shift=function(){if(this.length!==0){var s=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,s}},g.prototype.clear=function(){this.head=this.tail=null,this.length=0},g.prototype.join=function(s){if(this.length===0)return"";for(var o=this.head,l=""+o.data;o=o.next;)l+=s+o.data;return l},g.prototype.concat=function(s){if(this.length===0)return n.alloc(0);if(this.length===1)return this.head.data;for(var o,l,u,m=n.allocUnsafe(s>>>0),R=this.head,y=0;R;)o=R.data,l=m,u=y,o.copy(l,u),y+=R.data.length,R=R.next;return m},g}(),i&&i.inspect&&i.inspect.custom&&(e.exports.prototype[i.inspect.custom]=function(){var g=i.inspect({length:this.length});return this.constructor.name+" "+g})},function(e,t){},function(e,t,r){e.exports=g;var n=r(70),i=r(14);function g(s){if(!(this instanceof g))return new g(s);n.call(this,s)}i.inherits=r(6),i.inherits(g,n),g.prototype._transform=function(s,o,l){l(null,s)}},function(e,t,r){e.exports=r(20)},function(e,t,r){e.exports=r(28).Transform},function(e,t,r){e.exports=r(28).PassThrough},function(e,t,r){(function(n,i){var g=r(72),s=r(170),o=r(171),l=r(174),u=r(177);for(var m in u)t[m]=u[m];t.NONE=0,t.DEFLATE=1,t.INFLATE=2,t.GZIP=3,t.GUNZIP=4,t.DEFLATERAW=5,t.INFLATERAW=6,t.UNZIP=7;function R(y){if(typeof y!="number"||y<t.DEFLATE||y>t.UNZIP)throw new TypeError("Bad argument");this.dictionary=null,this.err=0,this.flush=0,this.init_done=!1,this.level=0,this.memLevel=0,this.mode=y,this.strategy=0,this.windowBits=0,this.write_in_progress=!1,this.pending_close=!1,this.gzip_id_bytes_read=0}R.prototype.close=function(){this.write_in_progress?this.pending_close=!0:(this.pending_close=!1,g(this.init_done,"close before init"),g(this.mode<=t.UNZIP),this.mode===t.DEFLATE||this.mode===t.GZIP||this.mode===t.DEFLATERAW?o.deflateEnd(this.strm):this.mode!==t.INFLATE&&this.mode!==t.GUNZIP&&this.mode!==t.INFLATERAW&&this.mode!==t.UNZIP||l.inflateEnd(this.strm),this.mode=t.NONE,this.dictionary=null)},R.prototype.write=function(y,S,c,w,E,P,F){return this._write(!0,y,S,c,w,E,P,F)},R.prototype.writeSync=function(y,S,c,w,E,P,F){return this._write(!1,y,S,c,w,E,P,F)},R.prototype._write=function(y,S,c,w,E,P,F,M){if(g.equal(arguments.length,8),g(this.init_done,"write before init"),g(this.mode!==t.NONE,"already finalized"),g.equal(!1,this.write_in_progress,"write already in progress"),g.equal(!1,this.pending_close,"close is pending"),this.write_in_progress=!0,g.equal(!1,S===void 0,"must provide flush value"),this.write_in_progress=!0,S!==t.Z_NO_FLUSH&&S!==t.Z_PARTIAL_FLUSH&&S!==t.Z_SYNC_FLUSH&&S!==t.Z_FULL_FLUSH&&S!==t.Z_FINISH&&S!==t.Z_BLOCK)throw new Error("Invalid flush value");if(c==null&&(c=n.alloc(0),E=0,w=0),this.strm.avail_in=E,this.strm.input=c,this.strm.next_in=w,this.strm.avail_out=M,this.strm.output=P,this.strm.next_out=F,this.flush=S,!y)return this._process(),this._checkError()?this._afterSync():void 0;var A=this;return i.nextTick(function(){A._process(),A._after()}),this},R.prototype._afterSync=function(){var y=this.strm.avail_out,S=this.strm.avail_in;return this.write_in_progress=!1,[S,y]},R.prototype._process=function(){var y=null;switch(this.mode){case t.DEFLATE:case t.GZIP:case t.DEFLATERAW:this.err=o.deflate(this.strm,this.flush);break;case t.UNZIP:switch(this.strm.avail_in>0&&(y=this.strm.next_in),this.gzip_id_bytes_read){case 0:if(y===null)break;if(this.strm.input[y]!==31){this.mode=t.INFLATE;break}if(this.gzip_id_bytes_read=1,y++,this.strm.avail_in===1)break;case 1:if(y===null)break;this.strm.input[y]===139?(this.gzip_id_bytes_read=2,this.mode=t.GUNZIP):this.mode=t.INFLATE;break;default:throw new Error("invalid number of gzip magic number bytes read")}case t.INFLATE:case t.GUNZIP:case t.INFLATERAW:for(this.err=l.inflate(this.strm,this.flush),this.err===t.Z_NEED_DICT&&this.dictionary&&(this.err=l.inflateSetDictionary(this.strm,this.dictionary),this.err===t.Z_OK?this.err=l.inflate(this.strm,this.flush):this.err===t.Z_DATA_ERROR&&(this.err=t.Z_NEED_DICT));this.strm.avail_in>0&&this.mode===t.GUNZIP&&this.err===t.Z_STREAM_END&&this.strm.next_in[0]!==0;)this.reset(),this.err=l.inflate(this.strm,this.flush);break;default:throw new Error("Unknown mode "+this.mode)}},R.prototype._checkError=function(){switch(this.err){case t.Z_OK:case t.Z_BUF_ERROR:if(this.strm.avail_out!==0&&this.flush===t.Z_FINISH)return this._error("unexpected end of file"),!1;break;case t.Z_STREAM_END:break;case t.Z_NEED_DICT:return this.dictionary==null?this._error("Missing dictionary"):this._error("Bad dictionary"),!1;default:return this._error("Zlib error"),!1}return!0},R.prototype._after=function(){if(this._checkError()){var y=this.strm.avail_out,S=this.strm.avail_in;this.write_in_progress=!1,this.callback(S,y),this.pending_close&&this.close()}},R.prototype._error=function(y){this.strm.msg&&(y=this.strm.msg),this.onerror(y,this.err),this.write_in_progress=!1,this.pending_close&&this.close()},R.prototype.init=function(y,S,c,w,E){g(arguments.length===4||arguments.length===5,"init(windowBits, level, memLevel, strategy, [dictionary])"),g(y>=8&&y<=15,"invalid windowBits"),g(S>=-1&&S<=9,"invalid compression level"),g(c>=1&&c<=9,"invalid memlevel"),g(w===t.Z_FILTERED||w===t.Z_HUFFMAN_ONLY||w===t.Z_RLE||w===t.Z_FIXED||w===t.Z_DEFAULT_STRATEGY,"invalid strategy"),this._init(S,y,c,w,E),this._setDictionary()},R.prototype.params=function(){throw new Error("deflateParams Not supported")},R.prototype.reset=function(){this._reset(),this._setDictionary()},R.prototype._init=function(y,S,c,w,E){switch(this.level=y,this.windowBits=S,this.memLevel=c,this.strategy=w,this.flush=t.Z_NO_FLUSH,this.err=t.Z_OK,this.mode!==t.GZIP&&this.mode!==t.GUNZIP||(this.windowBits+=16),this.mode===t.UNZIP&&(this.windowBits+=32),this.mode!==t.DEFLATERAW&&this.mode!==t.INFLATERAW||(this.windowBits=-1*this.windowBits),this.strm=new s,this.mode){case t.DEFLATE:case t.GZIP:case t.DEFLATERAW:this.err=o.deflateInit2(this.strm,this.level,t.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case t.INFLATE:case t.GUNZIP:case t.INFLATERAW:case t.UNZIP:this.err=l.inflateInit2(this.strm,this.windowBits);break;default:throw new Error("Unknown mode "+this.mode)}this.err!==t.Z_OK&&this._error("Init error"),this.dictionary=E,this.write_in_progress=!1,this.init_done=!0},R.prototype._setDictionary=function(){if(this.dictionary!=null){switch(this.err=t.Z_OK,this.mode){case t.DEFLATE:case t.DEFLATERAW:this.err=o.deflateSetDictionary(this.strm,this.dictionary)}this.err!==t.Z_OK&&this._error("Failed to set dictionary")}},R.prototype._reset=function(){switch(this.err=t.Z_OK,this.mode){case t.DEFLATE:case t.DEFLATERAW:case t.GZIP:this.err=o.deflateReset(this.strm);break;case t.INFLATE:case t.INFLATERAW:case t.GUNZIP:this.err=l.inflateReset(this.strm)}this.err!==t.Z_OK&&this._error("Failed to reset stream")},t.Zlib=R}).call(this,r(4).Buffer,r(2))},function(e,t,r){var n=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,g=Object.prototype.propertyIsEnumerable;function s(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}e.exports=function(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var l={},u=0;u<10;u++)l["_"+String.fromCharCode(u)]=u;if(Object.getOwnPropertyNames(l).map(function(R){return l[R]}).join("")!=="0123456789")return!1;var m={};return"abcdefghijklmnopqrst".split("").forEach(function(R){m[R]=R}),Object.keys(Object.assign({},m)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}()?Object.assign:function(o,l){for(var u,m,R=s(o),y=1;y<arguments.length;y++){for(var S in u=Object(arguments[y]))i.call(u,S)&&(R[S]=u[S]);if(n){m=n(u);for(var c=0;c<m.length;c++)g.call(u,m[c])&&(R[m[c]]=u[m[c]])}}return R}},function(e,t,r){e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},function(e,t,r){var n,i=r(33),g=r(172),s=r(73),o=r(74),l=r(173);function u(h,d){return h.msg=l[d],d}function m(h){return(h<<1)-(h>4?9:0)}function R(h){for(var d=h.length;--d>=0;)h[d]=0}function y(h){var d=h.state,O=d.pending;O>h.avail_out&&(O=h.avail_out),O!==0&&(i.arraySet(h.output,d.pending_buf,d.pending_out,O,h.next_out),h.next_out+=O,d.pending_out+=O,h.total_out+=O,h.avail_out-=O,d.pending-=O,d.pending===0&&(d.pending_out=0))}function S(h,d){g._tr_flush_block(h,h.block_start>=0?h.block_start:-1,h.strstart-h.block_start,d),h.block_start=h.strstart,y(h.strm)}function c(h,d){h.pending_buf[h.pending++]=d}function w(h,d){h.pending_buf[h.pending++]=d>>>8&255,h.pending_buf[h.pending++]=255&d}function E(h,d){var O,_,x=h.max_chain_length,D=h.strstart,L=h.prev_length,T=h.nice_match,C=h.strstart>h.w_size-262?h.strstart-(h.w_size-262):0,U=h.window,b=h.w_mask,f=h.prev,B=h.strstart+258,k=U[D+L-1],Y=U[D+L];h.prev_length>=h.good_match&&(x>>=2),T>h.lookahead&&(T=h.lookahead);do if(U[(O=d)+L]===Y&&U[O+L-1]===k&&U[O]===U[D]&&U[++O]===U[D+1]){D+=2,O++;do;while(U[++D]===U[++O]&&U[++D]===U[++O]&&U[++D]===U[++O]&&U[++D]===U[++O]&&U[++D]===U[++O]&&U[++D]===U[++O]&&U[++D]===U[++O]&&U[++D]===U[++O]&&D<B);if(_=258-(B-D),D=B-258,_>L){if(h.match_start=d,L=_,_>=T)break;k=U[D+L-1],Y=U[D+L]}}while((d=f[d&b])>C&&--x!=0);return L<=h.lookahead?L:h.lookahead}function P(h){var d,O,_,x,D,L,T,C,U,b,f=h.w_size;do{if(x=h.window_size-h.lookahead-h.strstart,h.strstart>=f+(f-262)){i.arraySet(h.window,h.window,f,f,0),h.match_start-=f,h.strstart-=f,h.block_start-=f,d=O=h.hash_size;do _=h.head[--d],h.head[d]=_>=f?_-f:0;while(--O);d=O=f;do _=h.prev[--d],h.prev[d]=_>=f?_-f:0;while(--O);x+=f}if(h.strm.avail_in===0)break;if(L=h.strm,T=h.window,C=h.strstart+h.lookahead,U=x,b=void 0,(b=L.avail_in)>U&&(b=U),O=b===0?0:(L.avail_in-=b,i.arraySet(T,L.input,L.next_in,b,C),L.state.wrap===1?L.adler=s(L.adler,T,b,C):L.state.wrap===2&&(L.adler=o(L.adler,T,b,C)),L.next_in+=b,L.total_in+=b,b),h.lookahead+=O,h.lookahead+h.insert>=3)for(D=h.strstart-h.insert,h.ins_h=h.window[D],h.ins_h=(h.ins_h<<h.hash_shift^h.window[D+1])&h.hash_mask;h.insert&&(h.ins_h=(h.ins_h<<h.hash_shift^h.window[D+3-1])&h.hash_mask,h.prev[D&h.w_mask]=h.head[h.ins_h],h.head[h.ins_h]=D,D++,h.insert--,!(h.lookahead+h.insert<3)););}while(h.lookahead<262&&h.strm.avail_in!==0)}function F(h,d){for(var O,_;;){if(h.lookahead<262){if(P(h),h.lookahead<262&&d===0)return 1;if(h.lookahead===0)break}if(O=0,h.lookahead>=3&&(h.ins_h=(h.ins_h<<h.hash_shift^h.window[h.strstart+3-1])&h.hash_mask,O=h.prev[h.strstart&h.w_mask]=h.head[h.ins_h],h.head[h.ins_h]=h.strstart),O!==0&&h.strstart-O<=h.w_size-262&&(h.match_length=E(h,O)),h.match_length>=3)if(_=g._tr_tally(h,h.strstart-h.match_start,h.match_length-3),h.lookahead-=h.match_length,h.match_length<=h.max_lazy_match&&h.lookahead>=3){h.match_length--;do h.strstart++,h.ins_h=(h.ins_h<<h.hash_shift^h.window[h.strstart+3-1])&h.hash_mask,O=h.prev[h.strstart&h.w_mask]=h.head[h.ins_h],h.head[h.ins_h]=h.strstart;while(--h.match_length!=0);h.strstart++}else h.strstart+=h.match_length,h.match_length=0,h.ins_h=h.window[h.strstart],h.ins_h=(h.ins_h<<h.hash_shift^h.window[h.strstart+1])&h.hash_mask;else _=g._tr_tally(h,0,h.window[h.strstart]),h.lookahead--,h.strstart++;if(_&&(S(h,!1),h.strm.avail_out===0))return 1}return h.insert=h.strstart<2?h.strstart:2,d===4?(S(h,!0),h.strm.avail_out===0?3:4):h.last_lit&&(S(h,!1),h.strm.avail_out===0)?1:2}function M(h,d){for(var O,_,x;;){if(h.lookahead<262){if(P(h),h.lookahead<262&&d===0)return 1;if(h.lookahead===0)break}if(O=0,h.lookahead>=3&&(h.ins_h=(h.ins_h<<h.hash_shift^h.window[h.strstart+3-1])&h.hash_mask,O=h.prev[h.strstart&h.w_mask]=h.head[h.ins_h],h.head[h.ins_h]=h.strstart),h.prev_length=h.match_length,h.prev_match=h.match_start,h.match_length=2,O!==0&&h.prev_length<h.max_lazy_match&&h.strstart-O<=h.w_size-262&&(h.match_length=E(h,O),h.match_length<=5&&(h.strategy===1||h.match_length===3&&h.strstart-h.match_start>4096)&&(h.match_length=2)),h.prev_length>=3&&h.match_length<=h.prev_length){x=h.strstart+h.lookahead-3,_=g._tr_tally(h,h.strstart-1-h.prev_match,h.prev_length-3),h.lookahead-=h.prev_length-1,h.prev_length-=2;do++h.strstart<=x&&(h.ins_h=(h.ins_h<<h.hash_shift^h.window[h.strstart+3-1])&h.hash_mask,O=h.prev[h.strstart&h.w_mask]=h.head[h.ins_h],h.head[h.ins_h]=h.strstart);while(--h.prev_length!=0);if(h.match_available=0,h.match_length=2,h.strstart++,_&&(S(h,!1),h.strm.avail_out===0))return 1}else if(h.match_available){if((_=g._tr_tally(h,0,h.window[h.strstart-1]))&&S(h,!1),h.strstart++,h.lookahead--,h.strm.avail_out===0)return 1}else h.match_available=1,h.strstart++,h.lookahead--}return h.match_available&&(_=g._tr_tally(h,0,h.window[h.strstart-1]),h.match_available=0),h.insert=h.strstart<2?h.strstart:2,d===4?(S(h,!0),h.strm.avail_out===0?3:4):h.last_lit&&(S(h,!1),h.strm.avail_out===0)?1:2}function A(h,d,O,_,x){this.good_length=h,this.max_lazy=d,this.nice_length=O,this.max_chain=_,this.func=x}function p(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(1146),this.dyn_dtree=new i.Buf16(122),this.bl_tree=new i.Buf16(78),R(this.dyn_ltree),R(this.dyn_dtree),R(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(16),this.heap=new i.Buf16(573),R(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(573),R(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function N(h){var d;return h&&h.state?(h.total_in=h.total_out=0,h.data_type=2,(d=h.state).pending=0,d.pending_out=0,d.wrap<0&&(d.wrap=-d.wrap),d.status=d.wrap?42:113,h.adler=d.wrap===2?0:1,d.last_flush=0,g._tr_init(d),0):u(h,-2)}function $(h){var d,O=N(h);return O===0&&((d=h.state).window_size=2*d.w_size,R(d.head),d.max_lazy_match=n[d.level].max_lazy,d.good_match=n[d.level].good_length,d.nice_match=n[d.level].nice_length,d.max_chain_length=n[d.level].max_chain,d.strstart=0,d.block_start=0,d.lookahead=0,d.insert=0,d.match_length=d.prev_length=2,d.match_available=0,d.ins_h=0),O}function q(h,d,O,_,x,D){if(!h)return-2;var L=1;if(d===-1&&(d=6),_<0?(L=0,_=-_):_>15&&(L=2,_-=16),x<1||x>9||O!==8||_<8||_>15||d<0||d>9||D<0||D>4)return u(h,-2);_===8&&(_=9);var T=new p;return h.state=T,T.strm=h,T.wrap=L,T.gzhead=null,T.w_bits=_,T.w_size=1<<T.w_bits,T.w_mask=T.w_size-1,T.hash_bits=x+7,T.hash_size=1<<T.hash_bits,T.hash_mask=T.hash_size-1,T.hash_shift=~~((T.hash_bits+3-1)/3),T.window=new i.Buf8(2*T.w_size),T.head=new i.Buf16(T.hash_size),T.prev=new i.Buf16(T.w_size),T.lit_bufsize=1<<x+6,T.pending_buf_size=4*T.lit_bufsize,T.pending_buf=new i.Buf8(T.pending_buf_size),T.d_buf=1*T.lit_bufsize,T.l_buf=3*T.lit_bufsize,T.level=d,T.strategy=D,T.method=O,$(h)}n=[new A(0,0,0,0,function(h,d){var O=65535;for(O>h.pending_buf_size-5&&(O=h.pending_buf_size-5);;){if(h.lookahead<=1){if(P(h),h.lookahead===0&&d===0)return 1;if(h.lookahead===0)break}h.strstart+=h.lookahead,h.lookahead=0;var _=h.block_start+O;if((h.strstart===0||h.strstart>=_)&&(h.lookahead=h.strstart-_,h.strstart=_,S(h,!1),h.strm.avail_out===0)||h.strstart-h.block_start>=h.w_size-262&&(S(h,!1),h.strm.avail_out===0))return 1}return h.insert=0,d===4?(S(h,!0),h.strm.avail_out===0?3:4):(h.strstart>h.block_start&&(S(h,!1),h.strm.avail_out),1)}),new A(4,4,8,4,F),new A(4,5,16,8,F),new A(4,6,32,32,F),new A(4,4,16,16,M),new A(8,16,32,32,M),new A(8,16,128,128,M),new A(8,32,128,256,M),new A(32,128,258,1024,M),new A(32,258,258,4096,M)],t.deflateInit=function(h,d){return q(h,d,8,15,8,0)},t.deflateInit2=q,t.deflateReset=$,t.deflateResetKeep=N,t.deflateSetHeader=function(h,d){return h&&h.state?h.state.wrap!==2?-2:(h.state.gzhead=d,0):-2},t.deflate=function(h,d){var O,_,x,D;if(!h||!h.state||d>5||d<0)return h?u(h,-2):-2;if(_=h.state,!h.output||!h.input&&h.avail_in!==0||_.status===666&&d!==4)return u(h,h.avail_out===0?-5:-2);if(_.strm=h,O=_.last_flush,_.last_flush=d,_.status===42)if(_.wrap===2)h.adler=0,c(_,31),c(_,139),c(_,8),_.gzhead?(c(_,(_.gzhead.text?1:0)+(_.gzhead.hcrc?2:0)+(_.gzhead.extra?4:0)+(_.gzhead.name?8:0)+(_.gzhead.comment?16:0)),c(_,255&_.gzhead.time),c(_,_.gzhead.time>>8&255),c(_,_.gzhead.time>>16&255),c(_,_.gzhead.time>>24&255),c(_,_.level===9?2:_.strategy>=2||_.level<2?4:0),c(_,255&_.gzhead.os),_.gzhead.extra&&_.gzhead.extra.length&&(c(_,255&_.gzhead.extra.length),c(_,_.gzhead.extra.length>>8&255)),_.gzhead.hcrc&&(h.adler=o(h.adler,_.pending_buf,_.pending,0)),_.gzindex=0,_.status=69):(c(_,0),c(_,0),c(_,0),c(_,0),c(_,0),c(_,_.level===9?2:_.strategy>=2||_.level<2?4:0),c(_,3),_.status=113);else{var L=8+(_.w_bits-8<<4)<<8;L|=(_.strategy>=2||_.level<2?0:_.level<6?1:_.level===6?2:3)<<6,_.strstart!==0&&(L|=32),L+=31-L%31,_.status=113,w(_,L),_.strstart!==0&&(w(_,h.adler>>>16),w(_,65535&h.adler)),h.adler=1}if(_.status===69)if(_.gzhead.extra){for(x=_.pending;_.gzindex<(65535&_.gzhead.extra.length)&&(_.pending!==_.pending_buf_size||(_.gzhead.hcrc&&_.pending>x&&(h.adler=o(h.adler,_.pending_buf,_.pending-x,x)),y(h),x=_.pending,_.pending!==_.pending_buf_size));)c(_,255&_.gzhead.extra[_.gzindex]),_.gzindex++;_.gzhead.hcrc&&_.pending>x&&(h.adler=o(h.adler,_.pending_buf,_.pending-x,x)),_.gzindex===_.gzhead.extra.length&&(_.gzindex=0,_.status=73)}else _.status=73;if(_.status===73)if(_.gzhead.name){x=_.pending;do{if(_.pending===_.pending_buf_size&&(_.gzhead.hcrc&&_.pending>x&&(h.adler=o(h.adler,_.pending_buf,_.pending-x,x)),y(h),x=_.pending,_.pending===_.pending_buf_size)){D=1;break}D=_.gzindex<_.gzhead.name.length?255&_.gzhead.name.charCodeAt(_.gzindex++):0,c(_,D)}while(D!==0);_.gzhead.hcrc&&_.pending>x&&(h.adler=o(h.adler,_.pending_buf,_.pending-x,x)),D===0&&(_.gzindex=0,_.status=91)}else _.status=91;if(_.status===91)if(_.gzhead.comment){x=_.pending;do{if(_.pending===_.pending_buf_size&&(_.gzhead.hcrc&&_.pending>x&&(h.adler=o(h.adler,_.pending_buf,_.pending-x,x)),y(h),x=_.pending,_.pending===_.pending_buf_size)){D=1;break}D=_.gzindex<_.gzhead.comment.length?255&_.gzhead.comment.charCodeAt(_.gzindex++):0,c(_,D)}while(D!==0);_.gzhead.hcrc&&_.pending>x&&(h.adler=o(h.adler,_.pending_buf,_.pending-x,x)),D===0&&(_.status=103)}else _.status=103;if(_.status===103&&(_.gzhead.hcrc?(_.pending+2>_.pending_buf_size&&y(h),_.pending+2<=_.pending_buf_size&&(c(_,255&h.adler),c(_,h.adler>>8&255),h.adler=0,_.status=113)):_.status=113),_.pending!==0){if(y(h),h.avail_out===0)return _.last_flush=-1,0}else if(h.avail_in===0&&m(d)<=m(O)&&d!==4)return u(h,-5);if(_.status===666&&h.avail_in!==0)return u(h,-5);if(h.avail_in!==0||_.lookahead!==0||d!==0&&_.status!==666){var T=_.strategy===2?function(C,U){for(var b;;){if(C.lookahead===0&&(P(C),C.lookahead===0)){if(U===0)return 1;break}if(C.match_length=0,b=g._tr_tally(C,0,C.window[C.strstart]),C.lookahead--,C.strstart++,b&&(S(C,!1),C.strm.avail_out===0))return 1}return C.insert=0,U===4?(S(C,!0),C.strm.avail_out===0?3:4):C.last_lit&&(S(C,!1),C.strm.avail_out===0)?1:2}(_,d):_.strategy===3?function(C,U){for(var b,f,B,k,Y=C.window;;){if(C.lookahead<=258){if(P(C),C.lookahead<=258&&U===0)return 1;if(C.lookahead===0)break}if(C.match_length=0,C.lookahead>=3&&C.strstart>0&&(f=Y[B=C.strstart-1])===Y[++B]&&f===Y[++B]&&f===Y[++B]){k=C.strstart+258;do;while(f===Y[++B]&&f===Y[++B]&&f===Y[++B]&&f===Y[++B]&&f===Y[++B]&&f===Y[++B]&&f===Y[++B]&&f===Y[++B]&&B<k);C.match_length=258-(k-B),C.match_length>C.lookahead&&(C.match_length=C.lookahead)}if(C.match_length>=3?(b=g._tr_tally(C,1,C.match_length-3),C.lookahead-=C.match_length,C.strstart+=C.match_length,C.match_length=0):(b=g._tr_tally(C,0,C.window[C.strstart]),C.lookahead--,C.strstart++),b&&(S(C,!1),C.strm.avail_out===0))return 1}return C.insert=0,U===4?(S(C,!0),C.strm.avail_out===0?3:4):C.last_lit&&(S(C,!1),C.strm.avail_out===0)?1:2}(_,d):n[_.level].func(_,d);if(T!==3&&T!==4||(_.status=666),T===1||T===3)return h.avail_out===0&&(_.last_flush=-1),0;if(T===2&&(d===1?g._tr_align(_):d!==5&&(g._tr_stored_block(_,0,0,!1),d===3&&(R(_.head),_.lookahead===0&&(_.strstart=0,_.block_start=0,_.insert=0))),y(h),h.avail_out===0))return _.last_flush=-1,0}return d!==4?0:_.wrap<=0?1:(_.wrap===2?(c(_,255&h.adler),c(_,h.adler>>8&255),c(_,h.adler>>16&255),c(_,h.adler>>24&255),c(_,255&h.total_in),c(_,h.total_in>>8&255),c(_,h.total_in>>16&255),c(_,h.total_in>>24&255)):(w(_,h.adler>>>16),w(_,65535&h.adler)),y(h),_.wrap>0&&(_.wrap=-_.wrap),_.pending!==0?0:1)},t.deflateEnd=function(h){var d;return h&&h.state?(d=h.state.status)!==42&&d!==69&&d!==73&&d!==91&&d!==103&&d!==113&&d!==666?u(h,-2):(h.state=null,d===113?u(h,-3):0):-2},t.deflateSetDictionary=function(h,d){var O,_,x,D,L,T,C,U,b=d.length;if(!h||!h.state||(D=(O=h.state).wrap)===2||D===1&&O.status!==42||O.lookahead)return-2;for(D===1&&(h.adler=s(h.adler,d,b,0)),O.wrap=0,b>=O.w_size&&(D===0&&(R(O.head),O.strstart=0,O.block_start=0,O.insert=0),U=new i.Buf8(O.w_size),i.arraySet(U,d,b-O.w_size,O.w_size,0),d=U,b=O.w_size),L=h.avail_in,T=h.next_in,C=h.input,h.avail_in=b,h.next_in=0,h.input=d,P(O);O.lookahead>=3;){_=O.strstart,x=O.lookahead-2;do O.ins_h=(O.ins_h<<O.hash_shift^O.window[_+3-1])&O.hash_mask,O.prev[_&O.w_mask]=O.head[O.ins_h],O.head[O.ins_h]=_,_++;while(--x);O.strstart=_,O.lookahead=2,P(O)}return O.strstart+=O.lookahead,O.block_start=O.strstart,O.insert=O.lookahead,O.lookahead=0,O.match_length=O.prev_length=2,O.match_available=0,h.next_in=T,h.input=C,h.avail_in=L,O.wrap=D,0},t.deflateInfo="pako deflate (from Nodeca project)"},function(e,t,r){var n=r(33);function i(f){for(var B=f.length;--B>=0;)f[B]=0}var g=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],s=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],l=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],u=new Array(576);i(u);var m=new Array(60);i(m);var R=new Array(512);i(R);var y=new Array(256);i(y);var S=new Array(29);i(S);var c,w,E,P=new Array(30);function F(f,B,k,Y,K){this.static_tree=f,this.extra_bits=B,this.extra_base=k,this.elems=Y,this.max_length=K,this.has_stree=f&&f.length}function M(f,B){this.dyn_tree=f,this.max_code=0,this.stat_desc=B}function A(f){return f<256?R[f]:R[256+(f>>>7)]}function p(f,B){f.pending_buf[f.pending++]=255&B,f.pending_buf[f.pending++]=B>>>8&255}function N(f,B,k){f.bi_valid>16-k?(f.bi_buf|=B<<f.bi_valid&65535,p(f,f.bi_buf),f.bi_buf=B>>16-f.bi_valid,f.bi_valid+=k-16):(f.bi_buf|=B<<f.bi_valid&65535,f.bi_valid+=k)}function $(f,B,k){N(f,k[2*B],k[2*B+1])}function q(f,B){var k=0;do k|=1&f,f>>>=1,k<<=1;while(--B>0);return k>>>1}function h(f,B,k){var Y,K,Q=new Array(16),G=0;for(Y=1;Y<=15;Y++)Q[Y]=G=G+k[Y-1]<<1;for(K=0;K<=B;K++){var V=f[2*K+1];V!==0&&(f[2*K]=q(Q[V]++,V))}}function d(f){var B;for(B=0;B<286;B++)f.dyn_ltree[2*B]=0;for(B=0;B<30;B++)f.dyn_dtree[2*B]=0;for(B=0;B<19;B++)f.bl_tree[2*B]=0;f.dyn_ltree[512]=1,f.opt_len=f.static_len=0,f.last_lit=f.matches=0}function O(f){f.bi_valid>8?p(f,f.bi_buf):f.bi_valid>0&&(f.pending_buf[f.pending++]=f.bi_buf),f.bi_buf=0,f.bi_valid=0}function _(f,B,k,Y){var K=2*B,Q=2*k;return f[K]<f[Q]||f[K]===f[Q]&&Y[B]<=Y[k]}function x(f,B,k){for(var Y=f.heap[k],K=k<<1;K<=f.heap_len&&(K<f.heap_len&&_(B,f.heap[K+1],f.heap[K],f.depth)&&K++,!_(B,Y,f.heap[K],f.depth));)f.heap[k]=f.heap[K],k=K,K<<=1;f.heap[k]=Y}function D(f,B,k){var Y,K,Q,G,V=0;if(f.last_lit!==0)do Y=f.pending_buf[f.d_buf+2*V]<<8|f.pending_buf[f.d_buf+2*V+1],K=f.pending_buf[f.l_buf+V],V++,Y===0?$(f,K,B):($(f,(Q=y[K])+256+1,B),(G=g[Q])!==0&&N(f,K-=S[Q],G),$(f,Q=A(--Y),k),(G=s[Q])!==0&&N(f,Y-=P[Q],G));while(V<f.last_lit);$(f,256,B)}function L(f,B){var k,Y,K,Q=B.dyn_tree,G=B.stat_desc.static_tree,V=B.stat_desc.has_stree,v=B.stat_desc.elems,j=-1;for(f.heap_len=0,f.heap_max=573,k=0;k<v;k++)Q[2*k]!==0?(f.heap[++f.heap_len]=j=k,f.depth[k]=0):Q[2*k+1]=0;for(;f.heap_len<2;)Q[2*(K=f.heap[++f.heap_len]=j<2?++j:0)]=1,f.depth[K]=0,f.opt_len--,V&&(f.static_len-=G[2*K+1]);for(B.max_code=j,k=f.heap_len>>1;k>=1;k--)x(f,Q,k);K=v;do k=f.heap[1],f.heap[1]=f.heap[f.heap_len--],x(f,Q,1),Y=f.heap[1],f.heap[--f.heap_max]=k,f.heap[--f.heap_max]=Y,Q[2*K]=Q[2*k]+Q[2*Y],f.depth[K]=(f.depth[k]>=f.depth[Y]?f.depth[k]:f.depth[Y])+1,Q[2*k+1]=Q[2*Y+1]=K,f.heap[1]=K++,x(f,Q,1);while(f.heap_len>=2);f.heap[--f.heap_max]=f.heap[1],function(W,ee){var J,re,se,oe,z,Z,te=ee.dyn_tree,ce=ee.max_code,ae=ee.stat_desc.static_tree,he=ee.stat_desc.has_stree,de=ee.stat_desc.extra_bits,me=ee.stat_desc.extra_base,fe=ee.stat_desc.max_length,ue=0;for(oe=0;oe<=15;oe++)W.bl_count[oe]=0;for(te[2*W.heap[W.heap_max]+1]=0,J=W.heap_max+1;J<573;J++)(oe=te[2*te[2*(re=W.heap[J])+1]+1]+1)>fe&&(oe=fe,ue++),te[2*re+1]=oe,re>ce||(W.bl_count[oe]++,z=0,re>=me&&(z=de[re-me]),Z=te[2*re],W.opt_len+=Z*(oe+z),he&&(W.static_len+=Z*(ae[2*re+1]+z)));if(ue!==0){do{for(oe=fe-1;W.bl_count[oe]===0;)oe--;W.bl_count[oe]--,W.bl_count[oe+1]+=2,W.bl_count[fe]--,ue-=2}while(ue>0);for(oe=fe;oe!==0;oe--)for(re=W.bl_count[oe];re!==0;)(se=W.heap[--J])>ce||(te[2*se+1]!==oe&&(W.opt_len+=(oe-te[2*se+1])*te[2*se],te[2*se+1]=oe),re--)}}(f,B),h(Q,j,f.bl_count)}function T(f,B,k){var Y,K,Q=-1,G=B[1],V=0,v=7,j=4;for(G===0&&(v=138,j=3),B[2*(k+1)+1]=65535,Y=0;Y<=k;Y++)K=G,G=B[2*(Y+1)+1],++V<v&&K===G||(V<j?f.bl_tree[2*K]+=V:K!==0?(K!==Q&&f.bl_tree[2*K]++,f.bl_tree[32]++):V<=10?f.bl_tree[34]++:f.bl_tree[36]++,V=0,Q=K,G===0?(v=138,j=3):K===G?(v=6,j=3):(v=7,j=4))}function C(f,B,k){var Y,K,Q=-1,G=B[1],V=0,v=7,j=4;for(G===0&&(v=138,j=3),Y=0;Y<=k;Y++)if(K=G,G=B[2*(Y+1)+1],!(++V<v&&K===G)){if(V<j)do $(f,K,f.bl_tree);while(--V!=0);else K!==0?(K!==Q&&($(f,K,f.bl_tree),V--),$(f,16,f.bl_tree),N(f,V-3,2)):V<=10?($(f,17,f.bl_tree),N(f,V-3,3)):($(f,18,f.bl_tree),N(f,V-11,7));V=0,Q=K,G===0?(v=138,j=3):K===G?(v=6,j=3):(v=7,j=4)}}i(P);var U=!1;function b(f,B,k,Y){N(f,0+(Y?1:0),3),function(K,Q,G,V){O(K),V&&(p(K,G),p(K,~G)),n.arraySet(K.pending_buf,K.window,Q,G,K.pending),K.pending+=G}(f,B,k,!0)}t._tr_init=function(f){U||(function(){var B,k,Y,K,Q,G=new Array(16);for(Y=0,K=0;K<28;K++)for(S[K]=Y,B=0;B<1<<g[K];B++)y[Y++]=K;for(y[Y-1]=K,Q=0,K=0;K<16;K++)for(P[K]=Q,B=0;B<1<<s[K];B++)R[Q++]=K;for(Q>>=7;K<30;K++)for(P[K]=Q<<7,B=0;B<1<<s[K]-7;B++)R[256+Q++]=K;for(k=0;k<=15;k++)G[k]=0;for(B=0;B<=143;)u[2*B+1]=8,B++,G[8]++;for(;B<=255;)u[2*B+1]=9,B++,G[9]++;for(;B<=279;)u[2*B+1]=7,B++,G[7]++;for(;B<=287;)u[2*B+1]=8,B++,G[8]++;for(h(u,287,G),B=0;B<30;B++)m[2*B+1]=5,m[2*B]=q(B,5);c=new F(u,g,257,286,15),w=new F(m,s,0,30,15),E=new F(new Array(0),o,0,19,7)}(),U=!0),f.l_desc=new M(f.dyn_ltree,c),f.d_desc=new M(f.dyn_dtree,w),f.bl_desc=new M(f.bl_tree,E),f.bi_buf=0,f.bi_valid=0,d(f)},t._tr_stored_block=b,t._tr_flush_block=function(f,B,k,Y){var K,Q,G=0;f.level>0?(f.strm.data_type===2&&(f.strm.data_type=function(V){var v,j=4093624447;for(v=0;v<=31;v++,j>>>=1)if(1&j&&V.dyn_ltree[2*v]!==0)return 0;if(V.dyn_ltree[18]!==0||V.dyn_ltree[20]!==0||V.dyn_ltree[26]!==0)return 1;for(v=32;v<256;v++)if(V.dyn_ltree[2*v]!==0)return 1;return 0}(f)),L(f,f.l_desc),L(f,f.d_desc),G=function(V){var v;for(T(V,V.dyn_ltree,V.l_desc.max_code),T(V,V.dyn_dtree,V.d_desc.max_code),L(V,V.bl_desc),v=18;v>=3&&V.bl_tree[2*l[v]+1]===0;v--);return V.opt_len+=3*(v+1)+5+5+4,v}(f),K=f.opt_len+3+7>>>3,(Q=f.static_len+3+7>>>3)<=K&&(K=Q)):K=Q=k+5,k+4<=K&&B!==-1?b(f,B,k,Y):f.strategy===4||Q===K?(N(f,2+(Y?1:0),3),D(f,u,m)):(N(f,4+(Y?1:0),3),function(V,v,j,W){var ee;for(N(V,v-257,5),N(V,j-1,5),N(V,W-4,4),ee=0;ee<W;ee++)N(V,V.bl_tree[2*l[ee]+1],3);C(V,V.dyn_ltree,v-1),C(V,V.dyn_dtree,j-1)}(f,f.l_desc.max_code+1,f.d_desc.max_code+1,G+1),D(f,f.dyn_ltree,f.dyn_dtree)),d(f),Y&&O(f)},t._tr_tally=function(f,B,k){return f.pending_buf[f.d_buf+2*f.last_lit]=B>>>8&255,f.pending_buf[f.d_buf+2*f.last_lit+1]=255&B,f.pending_buf[f.l_buf+f.last_lit]=255&k,f.last_lit++,B===0?f.dyn_ltree[2*k]++:(f.matches++,B--,f.dyn_ltree[2*(y[k]+256+1)]++,f.dyn_dtree[2*A(B)]++),f.last_lit===f.lit_bufsize-1},t._tr_align=function(f){N(f,2,3),$(f,256,u),function(B){B.bi_valid===16?(p(B,B.bi_buf),B.bi_buf=0,B.bi_valid=0):B.bi_valid>=8&&(B.pending_buf[B.pending++]=255&B.bi_buf,B.bi_buf>>=8,B.bi_valid-=8)}(f)}},function(e,t,r){e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},function(e,t,r){var n=r(33),i=r(73),g=r(74),s=r(175),o=r(176);function l(M){return(M>>>24&255)+(M>>>8&65280)+((65280&M)<<8)+((255&M)<<24)}function u(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function m(M){var A;return M&&M.state?(A=M.state,M.total_in=M.total_out=A.total=0,M.msg="",A.wrap&&(M.adler=1&A.wrap),A.mode=1,A.last=0,A.havedict=0,A.dmax=32768,A.head=null,A.hold=0,A.bits=0,A.lencode=A.lendyn=new n.Buf32(852),A.distcode=A.distdyn=new n.Buf32(592),A.sane=1,A.back=-1,0):-2}function R(M){var A;return M&&M.state?((A=M.state).wsize=0,A.whave=0,A.wnext=0,m(M)):-2}function y(M,A){var p,N;return M&&M.state?(N=M.state,A<0?(p=0,A=-A):(p=1+(A>>4),A<48&&(A&=15)),A&&(A<8||A>15)?-2:(N.window!==null&&N.wbits!==A&&(N.window=null),N.wrap=p,N.wbits=A,R(M))):-2}function S(M,A){var p,N;return M?(N=new u,M.state=N,N.window=null,(p=y(M,A))!==0&&(M.state=null),p):-2}var c,w,E=!0;function P(M){if(E){var A;for(c=new n.Buf32(512),w=new n.Buf32(32),A=0;A<144;)M.lens[A++]=8;for(;A<256;)M.lens[A++]=9;for(;A<280;)M.lens[A++]=7;for(;A<288;)M.lens[A++]=8;for(o(1,M.lens,0,288,c,0,M.work,{bits:9}),A=0;A<32;)M.lens[A++]=5;o(2,M.lens,0,32,w,0,M.work,{bits:5}),E=!1}M.lencode=c,M.lenbits=9,M.distcode=w,M.distbits=5}function F(M,A,p,N){var $,q=M.state;return q.window===null&&(q.wsize=1<<q.wbits,q.wnext=0,q.whave=0,q.window=new n.Buf8(q.wsize)),N>=q.wsize?(n.arraySet(q.window,A,p-q.wsize,q.wsize,0),q.wnext=0,q.whave=q.wsize):(($=q.wsize-q.wnext)>N&&($=N),n.arraySet(q.window,A,p-N,$,q.wnext),(N-=$)?(n.arraySet(q.window,A,p-N,N,0),q.wnext=N,q.whave=q.wsize):(q.wnext+=$,q.wnext===q.wsize&&(q.wnext=0),q.whave<q.wsize&&(q.whave+=$))),0}t.inflateReset=R,t.inflateReset2=y,t.inflateResetKeep=m,t.inflateInit=function(M){return S(M,15)},t.inflateInit2=S,t.inflate=function(M,A){var p,N,$,q,h,d,O,_,x,D,L,T,C,U,b,f,B,k,Y,K,Q,G,V,v,j=0,W=new n.Buf8(4),ee=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!M||!M.state||!M.output||!M.input&&M.avail_in!==0)return-2;(p=M.state).mode===12&&(p.mode=13),h=M.next_out,$=M.output,O=M.avail_out,q=M.next_in,N=M.input,d=M.avail_in,_=p.hold,x=p.bits,D=d,L=O,G=0;e:for(;;)switch(p.mode){case 1:if(p.wrap===0){p.mode=13;break}for(;x<16;){if(d===0)break e;d--,_+=N[q++]<<x,x+=8}if(2&p.wrap&&_===35615){p.check=0,W[0]=255&_,W[1]=_>>>8&255,p.check=g(p.check,W,2,0),_=0,x=0,p.mode=2;break}if(p.flags=0,p.head&&(p.head.done=!1),!(1&p.wrap)||(((255&_)<<8)+(_>>8))%31){M.msg="incorrect header check",p.mode=30;break}if((15&_)!=8){M.msg="unknown compression method",p.mode=30;break}if(x-=4,Q=8+(15&(_>>>=4)),p.wbits===0)p.wbits=Q;else if(Q>p.wbits){M.msg="invalid window size",p.mode=30;break}p.dmax=1<<Q,M.adler=p.check=1,p.mode=512&_?10:12,_=0,x=0;break;case 2:for(;x<16;){if(d===0)break e;d--,_+=N[q++]<<x,x+=8}if(p.flags=_,(255&p.flags)!=8){M.msg="unknown compression method",p.mode=30;break}if(57344&p.flags){M.msg="unknown header flags set",p.mode=30;break}p.head&&(p.head.text=_>>8&1),512&p.flags&&(W[0]=255&_,W[1]=_>>>8&255,p.check=g(p.check,W,2,0)),_=0,x=0,p.mode=3;case 3:for(;x<32;){if(d===0)break e;d--,_+=N[q++]<<x,x+=8}p.head&&(p.head.time=_),512&p.flags&&(W[0]=255&_,W[1]=_>>>8&255,W[2]=_>>>16&255,W[3]=_>>>24&255,p.check=g(p.check,W,4,0)),_=0,x=0,p.mode=4;case 4:for(;x<16;){if(d===0)break e;d--,_+=N[q++]<<x,x+=8}p.head&&(p.head.xflags=255&_,p.head.os=_>>8),512&p.flags&&(W[0]=255&_,W[1]=_>>>8&255,p.check=g(p.check,W,2,0)),_=0,x=0,p.mode=5;case 5:if(1024&p.flags){for(;x<16;){if(d===0)break e;d--,_+=N[q++]<<x,x+=8}p.length=_,p.head&&(p.head.extra_len=_),512&p.flags&&(W[0]=255&_,W[1]=_>>>8&255,p.check=g(p.check,W,2,0)),_=0,x=0}else p.head&&(p.head.extra=null);p.mode=6;case 6:if(1024&p.flags&&((T=p.length)>d&&(T=d),T&&(p.head&&(Q=p.head.extra_len-p.length,p.head.extra||(p.head.extra=new Array(p.head.extra_len)),n.arraySet(p.head.extra,N,q,T,Q)),512&p.flags&&(p.check=g(p.check,N,T,q)),d-=T,q+=T,p.length-=T),p.length))break e;p.length=0,p.mode=7;case 7:if(2048&p.flags){if(d===0)break e;T=0;do Q=N[q+T++],p.head&&Q&&p.length<65536&&(p.head.name+=String.fromCharCode(Q));while(Q&&T<d);if(512&p.flags&&(p.check=g(p.check,N,T,q)),d-=T,q+=T,Q)break e}else p.head&&(p.head.name=null);p.length=0,p.mode=8;case 8:if(4096&p.flags){if(d===0)break e;T=0;do Q=N[q+T++],p.head&&Q&&p.length<65536&&(p.head.comment+=String.fromCharCode(Q));while(Q&&T<d);if(512&p.flags&&(p.check=g(p.check,N,T,q)),d-=T,q+=T,Q)break e}else p.head&&(p.head.comment=null);p.mode=9;case 9:if(512&p.flags){for(;x<16;){if(d===0)break e;d--,_+=N[q++]<<x,x+=8}if(_!==(65535&p.check)){M.msg="header crc mismatch",p.mode=30;break}_=0,x=0}p.head&&(p.head.hcrc=p.flags>>9&1,p.head.done=!0),M.adler=p.check=0,p.mode=12;break;case 10:for(;x<32;){if(d===0)break e;d--,_+=N[q++]<<x,x+=8}M.adler=p.check=l(_),_=0,x=0,p.mode=11;case 11:if(p.havedict===0)return M.next_out=h,M.avail_out=O,M.next_in=q,M.avail_in=d,p.hold=_,p.bits=x,2;M.adler=p.check=1,p.mode=12;case 12:if(A===5||A===6)break e;case 13:if(p.last){_>>>=7&x,x-=7&x,p.mode=27;break}for(;x<3;){if(d===0)break e;d--,_+=N[q++]<<x,x+=8}switch(p.last=1&_,x-=1,3&(_>>>=1)){case 0:p.mode=14;break;case 1:if(P(p),p.mode=20,A===6){_>>>=2,x-=2;break e}break;case 2:p.mode=17;break;case 3:M.msg="invalid block type",p.mode=30}_>>>=2,x-=2;break;case 14:for(_>>>=7&x,x-=7&x;x<32;){if(d===0)break e;d--,_+=N[q++]<<x,x+=8}if((65535&_)!=(_>>>16^65535)){M.msg="invalid stored block lengths",p.mode=30;break}if(p.length=65535&_,_=0,x=0,p.mode=15,A===6)break e;case 15:p.mode=16;case 16:if(T=p.length){if(T>d&&(T=d),T>O&&(T=O),T===0)break e;n.arraySet($,N,q,T,h),d-=T,q+=T,O-=T,h+=T,p.length-=T;break}p.mode=12;break;case 17:for(;x<14;){if(d===0)break e;d--,_+=N[q++]<<x,x+=8}if(p.nlen=257+(31&_),_>>>=5,x-=5,p.ndist=1+(31&_),_>>>=5,x-=5,p.ncode=4+(15&_),_>>>=4,x-=4,p.nlen>286||p.ndist>30){M.msg="too many length or distance symbols",p.mode=30;break}p.have=0,p.mode=18;case 18:for(;p.have<p.ncode;){for(;x<3;){if(d===0)break e;d--,_+=N[q++]<<x,x+=8}p.lens[ee[p.have++]]=7&_,_>>>=3,x-=3}for(;p.have<19;)p.lens[ee[p.have++]]=0;if(p.lencode=p.lendyn,p.lenbits=7,V={bits:p.lenbits},G=o(0,p.lens,0,19,p.lencode,0,p.work,V),p.lenbits=V.bits,G){M.msg="invalid code lengths set",p.mode=30;break}p.have=0,p.mode=19;case 19:for(;p.have<p.nlen+p.ndist;){for(;f=(j=p.lencode[_&(1<<p.lenbits)-1])>>>16&255,B=65535&j,!((b=j>>>24)<=x);){if(d===0)break e;d--,_+=N[q++]<<x,x+=8}if(B<16)_>>>=b,x-=b,p.lens[p.have++]=B;else{if(B===16){for(v=b+2;x<v;){if(d===0)break e;d--,_+=N[q++]<<x,x+=8}if(_>>>=b,x-=b,p.have===0){M.msg="invalid bit length repeat",p.mode=30;break}Q=p.lens[p.have-1],T=3+(3&_),_>>>=2,x-=2}else if(B===17){for(v=b+3;x<v;){if(d===0)break e;d--,_+=N[q++]<<x,x+=8}x-=b,Q=0,T=3+(7&(_>>>=b)),_>>>=3,x-=3}else{for(v=b+7;x<v;){if(d===0)break e;d--,_+=N[q++]<<x,x+=8}x-=b,Q=0,T=11+(127&(_>>>=b)),_>>>=7,x-=7}if(p.have+T>p.nlen+p.ndist){M.msg="invalid bit length repeat",p.mode=30;break}for(;T--;)p.lens[p.have++]=Q}}if(p.mode===30)break;if(p.lens[256]===0){M.msg="invalid code -- missing end-of-block",p.mode=30;break}if(p.lenbits=9,V={bits:p.lenbits},G=o(1,p.lens,0,p.nlen,p.lencode,0,p.work,V),p.lenbits=V.bits,G){M.msg="invalid literal/lengths set",p.mode=30;break}if(p.distbits=6,p.distcode=p.distdyn,V={bits:p.distbits},G=o(2,p.lens,p.nlen,p.ndist,p.distcode,0,p.work,V),p.distbits=V.bits,G){M.msg="invalid distances set",p.mode=30;break}if(p.mode=20,A===6)break e;case 20:p.mode=21;case 21:if(d>=6&&O>=258){M.next_out=h,M.avail_out=O,M.next_in=q,M.avail_in=d,p.hold=_,p.bits=x,s(M,L),h=M.next_out,$=M.output,O=M.avail_out,q=M.next_in,N=M.input,d=M.avail_in,_=p.hold,x=p.bits,p.mode===12&&(p.back=-1);break}for(p.back=0;f=(j=p.lencode[_&(1<<p.lenbits)-1])>>>16&255,B=65535&j,!((b=j>>>24)<=x);){if(d===0)break e;d--,_+=N[q++]<<x,x+=8}if(f&&(240&f)==0){for(k=b,Y=f,K=B;f=(j=p.lencode[K+((_&(1<<k+Y)-1)>>k)])>>>16&255,B=65535&j,!(k+(b=j>>>24)<=x);){if(d===0)break e;d--,_+=N[q++]<<x,x+=8}_>>>=k,x-=k,p.back+=k}if(_>>>=b,x-=b,p.back+=b,p.length=B,f===0){p.mode=26;break}if(32&f){p.back=-1,p.mode=12;break}if(64&f){M.msg="invalid literal/length code",p.mode=30;break}p.extra=15&f,p.mode=22;case 22:if(p.extra){for(v=p.extra;x<v;){if(d===0)break e;d--,_+=N[q++]<<x,x+=8}p.length+=_&(1<<p.extra)-1,_>>>=p.extra,x-=p.extra,p.back+=p.extra}p.was=p.length,p.mode=23;case 23:for(;f=(j=p.distcode[_&(1<<p.distbits)-1])>>>16&255,B=65535&j,!((b=j>>>24)<=x);){if(d===0)break e;d--,_+=N[q++]<<x,x+=8}if((240&f)==0){for(k=b,Y=f,K=B;f=(j=p.distcode[K+((_&(1<<k+Y)-1)>>k)])>>>16&255,B=65535&j,!(k+(b=j>>>24)<=x);){if(d===0)break e;d--,_+=N[q++]<<x,x+=8}_>>>=k,x-=k,p.back+=k}if(_>>>=b,x-=b,p.back+=b,64&f){M.msg="invalid distance code",p.mode=30;break}p.offset=B,p.extra=15&f,p.mode=24;case 24:if(p.extra){for(v=p.extra;x<v;){if(d===0)break e;d--,_+=N[q++]<<x,x+=8}p.offset+=_&(1<<p.extra)-1,_>>>=p.extra,x-=p.extra,p.back+=p.extra}if(p.offset>p.dmax){M.msg="invalid distance too far back",p.mode=30;break}p.mode=25;case 25:if(O===0)break e;if(T=L-O,p.offset>T){if((T=p.offset-T)>p.whave&&p.sane){M.msg="invalid distance too far back",p.mode=30;break}T>p.wnext?(T-=p.wnext,C=p.wsize-T):C=p.wnext-T,T>p.length&&(T=p.length),U=p.window}else U=$,C=h-p.offset,T=p.length;T>O&&(T=O),O-=T,p.length-=T;do $[h++]=U[C++];while(--T);p.length===0&&(p.mode=21);break;case 26:if(O===0)break e;$[h++]=p.length,O--,p.mode=21;break;case 27:if(p.wrap){for(;x<32;){if(d===0)break e;d--,_|=N[q++]<<x,x+=8}if(L-=O,M.total_out+=L,p.total+=L,L&&(M.adler=p.check=p.flags?g(p.check,$,L,h-L):i(p.check,$,L,h-L)),L=O,(p.flags?_:l(_))!==p.check){M.msg="incorrect data check",p.mode=30;break}_=0,x=0}p.mode=28;case 28:if(p.wrap&&p.flags){for(;x<32;){if(d===0)break e;d--,_+=N[q++]<<x,x+=8}if(_!==(4294967295&p.total)){M.msg="incorrect length check",p.mode=30;break}_=0,x=0}p.mode=29;case 29:G=1;break e;case 30:G=-3;break e;case 31:return-4;case 32:default:return-2}return M.next_out=h,M.avail_out=O,M.next_in=q,M.avail_in=d,p.hold=_,p.bits=x,(p.wsize||L!==M.avail_out&&p.mode<30&&(p.mode<27||A!==4))&&F(M,M.output,M.next_out,L-M.avail_out)?(p.mode=31,-4):(D-=M.avail_in,L-=M.avail_out,M.total_in+=D,M.total_out+=L,p.total+=L,p.wrap&&L&&(M.adler=p.check=p.flags?g(p.check,$,L,M.next_out-L):i(p.check,$,L,M.next_out-L)),M.data_type=p.bits+(p.last?64:0)+(p.mode===12?128:0)+(p.mode===20||p.mode===15?256:0),(D===0&&L===0||A===4)&&G===0&&(G=-5),G)},t.inflateEnd=function(M){if(!M||!M.state)return-2;var A=M.state;return A.window&&(A.window=null),M.state=null,0},t.inflateGetHeader=function(M,A){var p;return M&&M.state?(2&(p=M.state).wrap)==0?-2:(p.head=A,A.done=!1,0):-2},t.inflateSetDictionary=function(M,A){var p,N=A.length;return M&&M.state?(p=M.state).wrap!==0&&p.mode!==11?-2:p.mode===11&&i(1,A,N,0)!==p.check?-3:F(M,A,N,N)?(p.mode=31,-4):(p.havedict=1,0):-2},t.inflateInfo="pako inflate (from Nodeca project)"},function(e,t,r){e.exports=function(n,i){var g,s,o,l,u,m,R,y,S,c,w,E,P,F,M,A,p,N,$,q,h,d,O,_,x;g=n.state,s=n.next_in,_=n.input,o=s+(n.avail_in-5),l=n.next_out,x=n.output,u=l-(i-n.avail_out),m=l+(n.avail_out-257),R=g.dmax,y=g.wsize,S=g.whave,c=g.wnext,w=g.window,E=g.hold,P=g.bits,F=g.lencode,M=g.distcode,A=(1<<g.lenbits)-1,p=(1<<g.distbits)-1;e:do{P<15&&(E+=_[s++]<<P,P+=8,E+=_[s++]<<P,P+=8),N=F[E&A];t:for(;;){if(E>>>=$=N>>>24,P-=$,($=N>>>16&255)==0)x[l++]=65535&N;else{if(!(16&$)){if((64&$)==0){N=F[(65535&N)+(E&(1<<$)-1)];continue t}if(32&$){g.mode=12;break e}n.msg="invalid literal/length code",g.mode=30;break e}q=65535&N,($&=15)&&(P<$&&(E+=_[s++]<<P,P+=8),q+=E&(1<<$)-1,E>>>=$,P-=$),P<15&&(E+=_[s++]<<P,P+=8,E+=_[s++]<<P,P+=8),N=M[E&p];r:for(;;){if(E>>>=$=N>>>24,P-=$,!(16&($=N>>>16&255))){if((64&$)==0){N=M[(65535&N)+(E&(1<<$)-1)];continue r}n.msg="invalid distance code",g.mode=30;break e}if(h=65535&N,P<($&=15)&&(E+=_[s++]<<P,(P+=8)<$&&(E+=_[s++]<<P,P+=8)),(h+=E&(1<<$)-1)>R){n.msg="invalid distance too far back",g.mode=30;break e}if(E>>>=$,P-=$,h>($=l-u)){if(($=h-$)>S&&g.sane){n.msg="invalid distance too far back",g.mode=30;break e}if(d=0,O=w,c===0){if(d+=y-$,$<q){q-=$;do x[l++]=w[d++];while(--$);d=l-h,O=x}}else if(c<$){if(d+=y+c-$,($-=c)<q){q-=$;do x[l++]=w[d++];while(--$);if(d=0,c<q){q-=$=c;do x[l++]=w[d++];while(--$);d=l-h,O=x}}}else if(d+=c-$,$<q){q-=$;do x[l++]=w[d++];while(--$);d=l-h,O=x}for(;q>2;)x[l++]=O[d++],x[l++]=O[d++],x[l++]=O[d++],q-=3;q&&(x[l++]=O[d++],q>1&&(x[l++]=O[d++]))}else{d=l-h;do x[l++]=x[d++],x[l++]=x[d++],x[l++]=x[d++],q-=3;while(q>2);q&&(x[l++]=x[d++],q>1&&(x[l++]=x[d++]))}break}}break}}while(s<o&&l<m);s-=q=P>>3,E&=(1<<(P-=q<<3))-1,n.next_in=s,n.next_out=l,n.avail_in=s<o?o-s+5:5-(s-o),n.avail_out=l<m?m-l+257:257-(l-m),g.hold=E,g.bits=P}},function(e,t,r){var n=r(33),i=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],g=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],s=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],o=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];e.exports=function(l,u,m,R,y,S,c,w){var E,P,F,M,A,p,N,$,q,h=w.bits,d=0,O=0,_=0,x=0,D=0,L=0,T=0,C=0,U=0,b=0,f=null,B=0,k=new n.Buf16(16),Y=new n.Buf16(16),K=null,Q=0;for(d=0;d<=15;d++)k[d]=0;for(O=0;O<R;O++)k[u[m+O]]++;for(D=h,x=15;x>=1&&k[x]===0;x--);if(D>x&&(D=x),x===0)return y[S++]=20971520,y[S++]=20971520,w.bits=1,0;for(_=1;_<x&&k[_]===0;_++);for(D<_&&(D=_),C=1,d=1;d<=15;d++)if(C<<=1,(C-=k[d])<0)return-1;if(C>0&&(l===0||x!==1))return-1;for(Y[1]=0,d=1;d<15;d++)Y[d+1]=Y[d]+k[d];for(O=0;O<R;O++)u[m+O]!==0&&(c[Y[u[m+O]]++]=O);if(l===0?(f=K=c,p=19):l===1?(f=i,B-=257,K=g,Q-=257,p=256):(f=s,K=o,p=-1),b=0,O=0,d=_,A=S,L=D,T=0,F=-1,M=(U=1<<D)-1,l===1&&U>852||l===2&&U>592)return 1;for(;;){N=d-T,c[O]<p?($=0,q=c[O]):c[O]>p?($=K[Q+c[O]],q=f[B+c[O]]):($=96,q=0),E=1<<d-T,_=P=1<<L;do y[A+(b>>T)+(P-=E)]=N<<24|$<<16|q|0;while(P!==0);for(E=1<<d-1;b&E;)E>>=1;if(E!==0?(b&=E-1,b+=E):b=0,O++,--k[d]==0){if(d===x)break;d=u[m+c[O]]}if(d>D&&(b&M)!==F){for(T===0&&(T=D),A+=_,C=1<<(L=d-T);L+T<x&&!((C-=k[L+T])<=0);)L++,C<<=1;if(U+=1<<L,l===1&&U>852||l===2&&U>592)return 1;y[F=b&M]=D<<24|L<<16|A-S|0}}return b!==0&&(y[A+b]=d-T<<24|64<<16|0),w.bits=D,0}},function(e,t,r){e.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},function(e,t){},function(e,t,r){function n(u,m){var R=Object.keys(u);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(u);m&&(y=y.filter(function(S){return Object.getOwnPropertyDescriptor(u,S).enumerable})),R.push.apply(R,y)}return R}function i(u,m,R){return m in u?Object.defineProperty(u,m,{value:R,enumerable:!0,configurable:!0,writable:!0}):u[m]=R,u}function g(u,m){for(var R=0;R<m.length;R++){var y=m[R];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(u,y.key,y)}}var s=r(4).Buffer,o=r(180).inspect,l=o&&o.custom||"inspect";e.exports=function(){function u(){(function(y,S){if(!(y instanceof S))throw new TypeError("Cannot call a class as a function")})(this,u),this.head=null,this.tail=null,this.length=0}var m,R;return m=u,(R=[{key:"push",value:function(y){var S={data:y,next:null};this.length>0?this.tail.next=S:this.head=S,this.tail=S,++this.length}},{key:"unshift",value:function(y){var S={data:y,next:this.head};this.length===0&&(this.tail=S),this.head=S,++this.length}},{key:"shift",value:function(){if(this.length!==0){var y=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,y}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(y){if(this.length===0)return"";for(var S=this.head,c=""+S.data;S=S.next;)c+=y+S.data;return c}},{key:"concat",value:function(y){if(this.length===0)return s.alloc(0);for(var S,c,w,E=s.allocUnsafe(y>>>0),P=this.head,F=0;P;)S=P.data,c=E,w=F,s.prototype.copy.call(S,c,w),F+=P.data.length,P=P.next;return E}},{key:"consume",value:function(y,S){var c;return y<this.head.data.length?(c=this.head.data.slice(0,y),this.head.data=this.head.data.slice(y)):c=y===this.head.data.length?this.shift():S?this._getString(y):this._getBuffer(y),c}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(y){var S=this.head,c=1,w=S.data;for(y-=w.length;S=S.next;){var E=S.data,P=y>E.length?E.length:y;if(P===E.length?w+=E:w+=E.slice(0,y),(y-=P)==0){P===E.length?(++c,S.next?this.head=S.next:this.head=this.tail=null):(this.head=S,S.data=E.slice(P));break}++c}return this.length-=c,w}},{key:"_getBuffer",value:function(y){var S=s.allocUnsafe(y),c=this.head,w=1;for(c.data.copy(S),y-=c.data.length;c=c.next;){var E=c.data,P=y>E.length?E.length:y;if(E.copy(S,S.length-y,0,P),(y-=P)==0){P===E.length?(++w,c.next?this.head=c.next:this.head=this.tail=null):(this.head=c,c.data=E.slice(P));break}++w}return this.length-=w,S}},{key:l,value:function(y,S){return o(this,function(c){for(var w=1;w<arguments.length;w++){var E=arguments[w]!=null?arguments[w]:{};w%2?n(Object(E),!0).forEach(function(P){i(c,P,E[P])}):Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(E)):n(Object(E)).forEach(function(P){Object.defineProperty(c,P,Object.getOwnPropertyDescriptor(E,P))})}return c}({},S,{depth:0,customInspect:!1}))}}])&&g(m.prototype,R),u}()},function(e,t){},function(e,t,r){(function(n){var i;function g(M,A,p){return A in M?Object.defineProperty(M,A,{value:p,enumerable:!0,configurable:!0,writable:!0}):M[A]=p,M}var s=r(45),o=Symbol("lastResolve"),l=Symbol("lastReject"),u=Symbol("error"),m=Symbol("ended"),R=Symbol("lastPromise"),y=Symbol("handlePromise"),S=Symbol("stream");function c(M,A){return{value:M,done:A}}function w(M){var A=M[o];if(A!==null){var p=M[S].read();p!==null&&(M[R]=null,M[o]=null,M[l]=null,A(c(p,!1)))}}function E(M){n.nextTick(w,M)}var P=Object.getPrototypeOf(function(){}),F=Object.setPrototypeOf((g(i={get stream(){return this[S]},next:function(){var M=this,A=this[u];if(A!==null)return Promise.reject(A);if(this[m])return Promise.resolve(c(void 0,!0));if(this[S].destroyed)return new Promise(function(q,h){n.nextTick(function(){M[u]?h(M[u]):q(c(void 0,!0))})});var p,N=this[R];if(N)p=new Promise(function(q,h){return function(d,O){q.then(function(){h[m]?d(c(void 0,!0)):h[y](d,O)},O)}}(N,this));else{var $=this[S].read();if($!==null)return Promise.resolve(c($,!1));p=new Promise(this[y])}return this[R]=p,p}},Symbol.asyncIterator,function(){return this}),g(i,"return",function(){var M=this;return new Promise(function(A,p){M[S].destroy(null,function(N){N?p(N):A(c(void 0,!0))})})}),i),P);e.exports=function(M){var A,p=Object.create(F,(g(A={},S,{value:M,writable:!0}),g(A,o,{value:null,writable:!0}),g(A,l,{value:null,writable:!0}),g(A,u,{value:null,writable:!0}),g(A,m,{value:M._readableState.endEmitted,writable:!0}),g(A,y,{value:function(N,$){var q=p[S].read();q?(p[R]=null,p[o]=null,p[l]=null,N(c(q,!1))):(p[o]=N,p[l]=$)},writable:!0}),A));return p[R]=null,s(M,function(N){if(N&&N.code!=="ERR_STREAM_PREMATURE_CLOSE"){var $=p[l];return $!==null&&(p[R]=null,p[o]=null,p[l]=null,$(N)),void(p[u]=N)}var q=p[o];q!==null&&(p[R]=null,p[o]=null,p[l]=null,q(c(void 0,!0))),p[m]=!0}),M.on("readable",E.bind(null,p)),p}}).call(this,r(2))},function(e,t){e.exports=function(){throw new Error("Readable.from is not available in the browser")}},function(e,t,r){e.exports=i;var n=r(80);function i(g){if(!(this instanceof i))return new i(g);n.call(this,g)}r(6)(i,n),i.prototype._transform=function(g,s,o){o(null,g)}},function(e,t,r){var n,i=r(24).codes,g=i.ERR_MISSING_ARGS,s=i.ERR_STREAM_DESTROYED;function o(y){if(y)throw y}function l(y,S,c,w){w=function(F){var M=!1;return function(){M||(M=!0,F.apply(void 0,arguments))}}(w);var E=!1;y.on("close",function(){E=!0}),n===void 0&&(n=r(45)),n(y,{readable:S,writable:c},function(F){if(F)return w(F);E=!0,w()});var P=!1;return function(F){if(!E&&!P)return P=!0,function(M){return M.setHeader&&typeof M.abort=="function"}(y)?y.abort():typeof y.destroy=="function"?y.destroy():void w(F||new s("pipe"))}}function u(y){y()}function m(y,S){return y.pipe(S)}function R(y){return y.length?typeof y[y.length-1]!="function"?o:y.pop():o}e.exports=function(){for(var y=arguments.length,S=new Array(y),c=0;c<y;c++)S[c]=arguments[c];var w,E=R(S);if(Array.isArray(S[0])&&(S=S[0]),S.length<2)throw new g("streams");var P=S.map(function(F,M){var A=M<S.length-1;return l(F,A,M>0,function(p){w||(w=p),p&&P.forEach(u),A||(P.forEach(u),E(w))})});return S.reduce(m)}},function(e,t,r){var n=r(186)(function i(g,s){return(s=s||{}).namespace=g,s.prod=!0,s.dev=!1,s.force||i.force?i.yep(s):i.nope(s)});e.exports=n},function(e,t){var r=[],n=[],i=function(){};function g(c){return!~r.indexOf(c)&&(r.push(c),!0)}function s(c){i=c}function o(c){for(var w=[],E=0;E<r.length;E++)if(r[E].async)w.push(r[E]);else if(r[E](c))return!0;return!!w.length&&new Promise(function(P){Promise.all(w.map(function(F){return F(c)})).then(function(F){P(F.some(Boolean))})})}function l(c){return!~n.indexOf(c)&&(n.push(c),!0)}function u(){i.apply(i,arguments)}function m(c){for(var w=0;w<n.length;w++)c=n[w].apply(n[w],arguments);return c}function R(c,w){var E=Object.prototype.hasOwnProperty;for(var P in w)E.call(w,P)&&(c[P]=w[P]);return c}function y(c){return c.enabled=!1,c.modify=l,c.set=s,c.use=g,R(function(){return!1},c)}function S(c){return c.enabled=!0,c.modify=l,c.set=s,c.use=g,R(function(){var w=Array.prototype.slice.call(arguments,0);return u.call(u,c,m(w,c)),!0},c)}e.exports=function(c){return c.introduce=R,c.enabled=o,c.process=m,c.modify=l,c.write=u,c.nope=y,c.yep=S,c.set=s,c.use=g,c}},function(e,t,r){(function(n){var i=r(63),g=r(19).StringDecoder,s=r(29).Stream;function o(){}e.exports=function(l,u){var m=n.alloc(65536),R=new g("utf8"),y=new s,S="",c=0,w=0;return l.start===-1&&delete l.start,y.readable=!0,y.destroy=function(){y.destroyed=!0,y.emit("end"),y.emit("close")},i.open(l.file,"a+","0644",function(E,P){if(E)return u?u(E):y.emit("error",E),void y.destroy();(function F(){if(!y.destroyed)return i.read(P,m,0,m.length,c,function(M,A){if(M)return u?u(M):y.emit("error",M),void y.destroy();if(!A)return S&&((l.start==null||w>l.start)&&(u?u(null,S):y.emit("line",S)),w++,S=""),setTimeout(F,1e3);var p=R.write(m.slice(0,A));u||y.emit("data",p);for(var N=(p=(S+p).split(/\n+/)).length-1,$=0;$<N;$++)(l.start==null||w>l.start)&&(u?u(null,p[$]):y.emit("line",p[$])),w++;return S=p[N],c+=A,F()});i.close(P,o)})()}),u?y.destroy:y}}).call(this,r(4).Buffer)},function(e,t,r){(function(n,i){function g(M){return(g=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(A){return typeof A}:function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A})(M)}function s(M,A){var p=Object.keys(M);if(Object.getOwnPropertySymbols){var N=Object.getOwnPropertySymbols(M);A&&(N=N.filter(function($){return Object.getOwnPropertyDescriptor(M,$).enumerable})),p.push.apply(p,N)}return p}function o(M){for(var A=1;A<arguments.length;A++){var p=arguments[A]!=null?arguments[A]:{};A%2?s(Object(p),!0).forEach(function(N){l(M,N,p[N])}):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(p)):s(Object(p)).forEach(function(N){Object.defineProperty(M,N,Object.getOwnPropertyDescriptor(p,N))})}return M}function l(M,A,p){return A in M?Object.defineProperty(M,A,{value:p,enumerable:!0,configurable:!0,writable:!0}):M[A]=p,M}function u(M,A){if(!(M instanceof A))throw new TypeError("Cannot call a class as a function")}function m(M,A){for(var p=0;p<A.length;p++){var N=A[p];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(M,N.key,N)}}function R(M,A){return(R=Object.setPrototypeOf||function(p,N){return p.__proto__=N,p})(M,A)}function y(M){var A=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var p,N=c(M);if(A){var $=c(this).constructor;p=Reflect.construct(N,arguments,$)}else p=N.apply(this,arguments);return S(this,p)}}function S(M,A){return!A||g(A)!=="object"&&typeof A!="function"?function(p){if(p===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p}(M):A}function c(M){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(A){return A.__proto__||Object.getPrototypeOf(A)})(M)}var w=r(81),E=r(199),P=r(29).Stream,F=r(17);e.exports=function(M){(function(q,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function");q.prototype=Object.create(h&&h.prototype,{constructor:{value:q,writable:!0,configurable:!0}}),h&&R(q,h)})($,M);var A,p,N=y($);function $(){var q,h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return u(this,$),(q=N.call(this,h)).options=h,q.name=h.name||"http",q.ssl=!!h.ssl,q.host=h.host||"localhost",q.port=h.port,q.auth=h.auth,q.path=h.path||"",q.agent=h.agent,q.headers=h.headers||{},q.headers["content-type"]="application/json",q.port||(q.port=q.ssl?443:80),q}return A=$,(p=[{key:"log",value:function(q,h){var d=this;this._request(q,function(O,_){_&&_.statusCode!==200&&(O=new Error("Invalid HTTP Status Code: ".concat(_.statusCode))),O?d.emit("warn",O):d.emit("logged",q)}),h&&n(h)}},{key:"query",value:function(q,h){typeof q=="function"&&(h=q,q={}),(q={method:"query",params:this.normalizeQuery(q)}).params.path&&(q.path=q.params.path,delete q.params.path),q.params.auth&&(q.auth=q.params.auth,delete q.params.auth),this._request(q,function(d,O,_){if(O&&O.statusCode!==200&&(d=new Error("Invalid HTTP Status Code: ".concat(O.statusCode))),d)return h(d);if(typeof _=="string")try{_=JSON.parse(_)}catch(x){return h(x)}h(null,_)})}},{key:"stream",value:function(){var q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},h=new P;(q={method:"stream",params:q}).params.path&&(q.path=q.params.path,delete q.params.path),q.params.auth&&(q.auth=q.params.auth,delete q.params.auth);var d="",O=this._request(q);return h.destroy=function(){return O.destroy()},O.on("data",function(_){for(var x=(_=(d+_).split(/\n+/)).length-1,D=0;D<x;D++)try{h.emit("log",JSON.parse(_[D]))}catch(L){h.emit("error",L)}d=_[x]}),O.on("error",function(_){return h.emit("error",_)}),h}},{key:"_request",value:function(q,h){var d=(q=q||{}).auth||this.auth,O=q.path||this.path||"";delete q.auth,delete q.path;var _=Object.assign({},this.headers);d&&d.bearer&&(_.Authorization="Bearer ".concat(d.bearer));var x=(this.ssl?E:w).request(o(o({},this.options),{},{method:"POST",host:this.host,port:this.port,path:"/".concat(O.replace(/^\//,"")),headers:_,auth:d&&d.username&&d.password?"".concat(d.username,":").concat(d.password):"",agent:this.agent}));x.on("error",h),x.on("response",function(D){return D.on("end",function(){return h(null,D)}).resume()}),x.end(i.from(JSON.stringify(q),"utf8"))}}])&&m(A.prototype,p),$}(F)}).call(this,r(12).setImmediate,r(4).Buffer)},function(e,t,r){(function(n,i,g){var s=r(82),o=r(6),l=r(83),u=r(28),m=r(190),R=l.IncomingMessage,y=l.readyStates,S=e.exports=function(w){var E,P=this;u.Writable.call(P),P._opts=w,P._body=[],P._headers={},w.auth&&P.setHeader("Authorization","Basic "+new n(w.auth).toString("base64")),Object.keys(w.headers).forEach(function(M){P.setHeader(M,w.headers[M])});var F=!0;if(w.mode==="disable-fetch"||"requestTimeout"in w&&!s.abortController)F=!1,E=!0;else if(w.mode==="prefer-streaming")E=!1;else if(w.mode==="allow-wrong-content-type")E=!s.overrideMimeType;else{if(w.mode&&w.mode!=="default"&&w.mode!=="prefer-fast")throw new Error("Invalid value for opts.mode");E=!0}P._mode=function(M,A){return s.fetch&&A?"fetch":s.mozchunkedarraybuffer?"moz-chunked-arraybuffer":s.msstream?"ms-stream":s.arraybuffer&&M?"arraybuffer":s.vbArray&&M?"text:vbarray":"text"}(E,F),P._fetchTimer=null,P.on("finish",function(){P._onFinish()})};o(S,u.Writable),S.prototype.setHeader=function(w,E){var P=w.toLowerCase();c.indexOf(P)===-1&&(this._headers[P]={name:w,value:E})},S.prototype.getHeader=function(w){var E=this._headers[w.toLowerCase()];return E?E.value:null},S.prototype.removeHeader=function(w){delete this._headers[w.toLowerCase()]},S.prototype._onFinish=function(){var w=this;if(!w._destroyed){var E=w._opts,P=w._headers,F=null;E.method!=="GET"&&E.method!=="HEAD"&&(F=s.arraybuffer?m(n.concat(w._body)):s.blobConstructor?new i.Blob(w._body.map(function($){return m($)}),{type:(P["content-type"]||{}).value||""}):n.concat(w._body).toString());var M=[];if(Object.keys(P).forEach(function($){var q=P[$].name,h=P[$].value;Array.isArray(h)?h.forEach(function(d){M.push([q,d])}):M.push([q,h])}),w._mode==="fetch"){var A=null;if(s.abortController){var p=new AbortController;A=p.signal,w._fetchAbortController=p,"requestTimeout"in E&&E.requestTimeout!==0&&(w._fetchTimer=i.setTimeout(function(){w.emit("requestTimeout"),w._fetchAbortController&&w._fetchAbortController.abort()},E.requestTimeout))}i.fetch(w._opts.url,{method:w._opts.method,headers:M,body:F||void 0,mode:"cors",credentials:E.withCredentials?"include":"same-origin",signal:A}).then(function($){w._fetchResponse=$,w._connect()},function($){i.clearTimeout(w._fetchTimer),w._destroyed||w.emit("error",$)})}else{var N=w._xhr=new i.XMLHttpRequest;try{N.open(w._opts.method,w._opts.url,!0)}catch($){return void g.nextTick(function(){w.emit("error",$)})}"responseType"in N&&(N.responseType=w._mode.split(":")[0]),"withCredentials"in N&&(N.withCredentials=!!E.withCredentials),w._mode==="text"&&"overrideMimeType"in N&&N.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in E&&(N.timeout=E.requestTimeout,N.ontimeout=function(){w.emit("requestTimeout")}),M.forEach(function($){N.setRequestHeader($[0],$[1])}),w._response=null,N.onreadystatechange=function(){switch(N.readyState){case y.LOADING:case y.DONE:w._onXHRProgress()}},w._mode==="moz-chunked-arraybuffer"&&(N.onprogress=function(){w._onXHRProgress()}),N.onerror=function(){w._destroyed||w.emit("error",new Error("XHR error"))};try{N.send(F)}catch($){return void g.nextTick(function(){w.emit("error",$)})}}}},S.prototype._onXHRProgress=function(){(function(w){try{var E=w.status;return E!==null&&E!==0}catch{return!1}})(this._xhr)&&!this._destroyed&&(this._response||this._connect(),this._response._onXHRProgress())},S.prototype._connect=function(){var w=this;w._destroyed||(w._response=new R(w._xhr,w._fetchResponse,w._mode,w._fetchTimer),w._response.on("error",function(E){w.emit("error",E)}),w.emit("response",w._response))},S.prototype._write=function(w,E,P){this._body.push(w),P()},S.prototype.abort=S.prototype.destroy=function(){this._destroyed=!0,i.clearTimeout(this._fetchTimer),this._response&&(this._response._destroyed=!0),this._xhr?this._xhr.abort():this._fetchAbortController&&this._fetchAbortController.abort()},S.prototype.end=function(w,E,P){typeof w=="function"&&(P=w,w=void 0),u.Writable.prototype.end.call(this,w,E,P)},S.prototype.flushHeaders=function(){},S.prototype.setTimeout=function(){},S.prototype.setNoDelay=function(){},S.prototype.setSocketKeepAlive=function(){};var c=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"]}).call(this,r(4).Buffer,r(5),r(2))},function(e,t,r){var n=r(4).Buffer;e.exports=function(i){if(i instanceof Uint8Array){if(i.byteOffset===0&&i.byteLength===i.buffer.byteLength)return i.buffer;if(typeof i.buffer.slice=="function")return i.buffer.slice(i.byteOffset,i.byteOffset+i.byteLength)}if(n.isBuffer(i)){for(var g=new Uint8Array(i.length),s=i.length,o=0;o<s;o++)g[o]=i[o];return g.buffer}throw new Error("Argument must be a Buffer")}},function(e,t){e.exports=function(){for(var n={},i=0;i<arguments.length;i++){var g=arguments[i];for(var s in g)r.call(g,s)&&(n[s]=g[s])}return n};var r=Object.prototype.hasOwnProperty},function(e,t){e.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},function(e,t,r){(function(n,i){var g;(function(s){t&&t.nodeType,n&&n.nodeType;var o=typeof i=="object"&&i;o.global!==o&&o.window!==o&&o.self;var l,u=2147483647,m=/^xn--/,R=/[^\x20-\x7E]/,y=/[\x2E\u3002\uFF0E\uFF61]/g,S={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},c=Math.floor,w=String.fromCharCode;function E(h){throw new RangeError(S[h])}function P(h,d){for(var O=h.length,_=[];O--;)_[O]=d(h[O]);return _}function F(h,d){var O=h.split("@"),_="";return O.length>1&&(_=O[0]+"@",h=O[1]),_+P((h=h.replace(y,".")).split("."),d).join(".")}function M(h){for(var d,O,_=[],x=0,D=h.length;x<D;)(d=h.charCodeAt(x++))>=55296&&d<=56319&&x<D?(64512&(O=h.charCodeAt(x++)))==56320?_.push(((1023&d)<<10)+(1023&O)+65536):(_.push(d),x--):_.push(d);return _}function A(h){return P(h,function(d){var O="";return d>65535&&(O+=w((d-=65536)>>>10&1023|55296),d=56320|1023&d),O+=w(d)}).join("")}function p(h,d){return h+22+75*(h<26)-((d!=0)<<5)}function N(h,d,O){var _=0;for(h=O?c(h/700):h>>1,h+=c(h/d);h>455;_+=36)h=c(h/35);return c(_+36*h/(h+38))}function $(h){var d,O,_,x,D,L,T,C,U,b,f,B=[],k=h.length,Y=0,K=128,Q=72;for((O=h.lastIndexOf("-"))<0&&(O=0),_=0;_<O;++_)h.charCodeAt(_)>=128&&E("not-basic"),B.push(h.charCodeAt(_));for(x=O>0?O+1:0;x<k;){for(D=Y,L=1,T=36;x>=k&&E("invalid-input"),((C=(f=h.charCodeAt(x++))-48<10?f-22:f-65<26?f-65:f-97<26?f-97:36)>=36||C>c((u-Y)/L))&&E("overflow"),Y+=C*L,!(C<(U=T<=Q?1:T>=Q+26?26:T-Q));T+=36)L>c(u/(b=36-U))&&E("overflow"),L*=b;Q=N(Y-D,d=B.length+1,D==0),c(Y/d)>u-K&&E("overflow"),K+=c(Y/d),Y%=d,B.splice(Y++,0,K)}return A(B)}function q(h){var d,O,_,x,D,L,T,C,U,b,f,B,k,Y,K,Q=[];for(B=(h=M(h)).length,d=128,O=0,D=72,L=0;L<B;++L)(f=h[L])<128&&Q.push(w(f));for(_=x=Q.length,x&&Q.push("-");_<B;){for(T=u,L=0;L<B;++L)(f=h[L])>=d&&f<T&&(T=f);for(T-d>c((u-O)/(k=_+1))&&E("overflow"),O+=(T-d)*k,d=T,L=0;L<B;++L)if((f=h[L])<d&&++O>u&&E("overflow"),f==d){for(C=O,U=36;!(C<(b=U<=D?1:U>=D+26?26:U-D));U+=36)K=C-b,Y=36-b,Q.push(w(p(b+K%Y,0))),C=c(K/Y);Q.push(w(p(C,0))),D=N(O,k,_==x),O=0,++_}++O,++d}return Q.join("")}l={version:"1.4.1",ucs2:{decode:M,encode:A},decode:$,encode:q,toASCII:function(h){return F(h,function(d){return R.test(d)?"xn--"+q(d):d})},toUnicode:function(h){return F(h,function(d){return m.test(d)?$(d.slice(4).toLowerCase()):d})}},(g=function(){return l}.call(t,r,t,n))===void 0||(n.exports=g)})()}).call(this,r(194)(e),r(5))},function(e,t){e.exports=function(r){return r.webpackPolyfill||(r.deprecate=function(){},r.paths=[],r.children||(r.children=[]),Object.defineProperty(r,"loaded",{enumerable:!0,get:function(){return r.l}}),Object.defineProperty(r,"id",{enumerable:!0,get:function(){return r.i}}),r.webpackPolyfill=1),r}},function(e,t,r){e.exports={isString:function(n){return typeof n=="string"},isObject:function(n){return typeof n=="object"&&n!==null},isNull:function(n){return n===null},isNullOrUndefined:function(n){return n==null}}},function(e,t,r){t.decode=t.parse=r(197),t.encode=t.stringify=r(198)},function(e,t,r){function n(g,s){return Object.prototype.hasOwnProperty.call(g,s)}e.exports=function(g,s,o,l){s=s||"&",o=o||"=";var u={};if(typeof g!="string"||g.length===0)return u;var m=/\+/g;g=g.split(s);var R=1e3;l&&typeof l.maxKeys=="number"&&(R=l.maxKeys);var y=g.length;R>0&&y>R&&(y=R);for(var S=0;S<y;++S){var c,w,E,P,F=g[S].replace(m,"%20"),M=F.indexOf(o);M>=0?(c=F.substr(0,M),w=F.substr(M+1)):(c=F,w=""),E=decodeURIComponent(c),P=decodeURIComponent(w),n(u,E)?i(u[E])?u[E].push(P):u[E]=[u[E],P]:u[E]=P}return u};var i=Array.isArray||function(g){return Object.prototype.toString.call(g)==="[object Array]"}},function(e,t,r){var n=function(o){switch(typeof o){case"string":return o;case"boolean":return o?"true":"false";case"number":return isFinite(o)?o:"";default:return""}};e.exports=function(o,l,u,m){return l=l||"&",u=u||"=",o===null&&(o=void 0),typeof o=="object"?g(s(o),function(R){var y=encodeURIComponent(n(R))+u;return i(o[R])?g(o[R],function(S){return y+encodeURIComponent(n(S))}).join(l):y+encodeURIComponent(n(o[R]))}).join(l):m?encodeURIComponent(n(m))+u+encodeURIComponent(n(o)):""};var i=Array.isArray||function(o){return Object.prototype.toString.call(o)==="[object Array]"};function g(o,l){if(o.map)return o.map(l);for(var u=[],m=0;m<o.length;m++)u.push(l(o[m],m));return u}var s=Object.keys||function(o){var l=[];for(var u in o)Object.prototype.hasOwnProperty.call(o,u)&&l.push(u);return l}},function(e,t,r){var n=r(81),i=r(46),g=e.exports;for(var s in n)n.hasOwnProperty(s)&&(g[s]=n[s]);function o(l){if(typeof l=="string"&&(l=i.parse(l)),l.protocol||(l.protocol="https:"),l.protocol!=="https:")throw new Error('Protocol "'+l.protocol+'" not supported. Expected "https:"');return l}g.request=function(l,u){return l=o(l),n.request.call(this,l,u)},g.get=function(l,u){return l=o(l),n.get.call(this,l,u)}},function(e,t,r){(function(n){function i(w){return(i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(E){return typeof E}:function(E){return E&&typeof Symbol=="function"&&E.constructor===Symbol&&E!==Symbol.prototype?"symbol":typeof E})(w)}function g(w,E){if(!(w instanceof E))throw new TypeError("Cannot call a class as a function")}function s(w,E){for(var P=0;P<E.length;P++){var F=E[P];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(w,F.key,F)}}function o(w,E){return(o=Object.setPrototypeOf||function(P,F){return P.__proto__=F,P})(w,E)}function l(w){var E=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var P,F=m(w);if(E){var M=m(this).constructor;P=Reflect.construct(F,arguments,M)}else P=F.apply(this,arguments);return u(this,P)}}function u(w,E){return!E||i(E)!=="object"&&typeof E!="function"?function(P){if(P===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return P}(w):E}function m(w){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(E){return E.__proto__||Object.getPrototypeOf(E)})(w)}var R=r(84),y=r(3).MESSAGE,S=r(15),c=r(17);e.exports=function(w){(function(A,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(p&&p.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),p&&o(A,p)})(M,w);var E,P,F=l(M);function M(){var A,p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(g(this,M),A=F.call(this,p),!p.stream||!R(p.stream))throw new Error("options.stream is required.");return A._stream=p.stream,A._stream.setMaxListeners(1/0),A.isObjectMode=p.stream._writableState.objectMode,A.eol=p.eol||S.EOL,A}return E=M,(P=[{key:"log",value:function(A,p){var N=this;if(n(function(){return N.emit("logged",A)}),this.isObjectMode)return this._stream.write(A),void(p&&p());this._stream.write("".concat(A[y]).concat(this.eol)),p&&p()}}])&&s(E.prototype,P),M}(c)}).call(this,r(12).setImmediate)},function(e,t,r){(function(n){function i(_,x,D){return x in _?Object.defineProperty(_,x,{value:D,enumerable:!0,configurable:!0,writable:!0}):_[x]=D,_}function g(_){return(g=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(x){return typeof x}:function(x){return x&&typeof Symbol=="function"&&x.constructor===Symbol&&x!==Symbol.prototype?"symbol":typeof x})(_)}function s(_,x){for(var D=0;D<x.length;D++){var L=x[D];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(_,L.key,L)}}function o(_,x){return(o=Object.setPrototypeOf||function(D,L){return D.__proto__=L,D})(_,x)}function l(_){var x=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var D,L=m(_);if(x){var T=m(this).constructor;D=Reflect.construct(L,arguments,T)}else D=L.apply(this,arguments);return u(this,D)}}function u(_,x){return!x||g(x)!=="object"&&typeof x!="function"?function(D){if(D===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return D}(_):x}function m(_){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(x){return x.__proto__||Object.getPrototypeOf(x)})(_)}var R=r(29),y=R.Stream,S=R.Transform,c=r(48),w=r(3),E=w.LEVEL,P=w.SPLAT,F=r(84),M=r(86),A=r(90),p=r(205),N=r(206),$=r(59).warn,q=r(47),h=/%[scdjifoO%]/g,d=function(_){(function(C,U){if(typeof U!="function"&&U!==null)throw new TypeError("Super expression must either be null or a function");C.prototype=Object.create(U&&U.prototype,{constructor:{value:C,writable:!0,configurable:!0}}),U&&o(C,U)})(T,_);var x,D,L=l(T);function T(C){var U;return function(b,f){if(!(b instanceof f))throw new TypeError("Cannot call a class as a function")}(this,T),(U=L.call(this,{objectMode:!0})).configure(C),U}return x=T,(D=[{key:"child",value:function(C){var U=this;return Object.create(U,{write:{value:function(b){var f=Object.assign({},C,b);b instanceof Error&&(f.stack=b.stack,f.message=b.message),U.write(f)}}})}},{key:"configure",value:function(){var C=this,U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},b=U.silent,f=U.format,B=U.defaultMeta,k=U.levels,Y=U.level,K=Y===void 0?"info":Y,Q=U.exitOnError,G=Q===void 0||Q,V=U.transports,v=U.colors,j=U.emitErrs,W=U.formatters,ee=U.padLevels,J=U.rewriters,re=U.stripColors,se=U.exceptionHandlers,oe=U.rejectionHandlers;if(this.transports.length&&this.clear(),this.silent=b,this.format=f||this.format||r(207)(),this.defaultMeta=B||null,this.levels=k||this.levels||q.npm.levels,this.level=K,this.exceptions=new M(this),this.rejections=new A(this),this.profilers={},this.exitOnError=G,V&&(V=Array.isArray(V)?V:[V]).forEach(function(z){return C.add(z)}),v||j||W||ee||J||re)throw new Error(["{ colors, emitErrs, formatters, padLevels, rewriters, stripColors } were removed in winston@3.0.0.","Use a custom winston.format(function) instead.","See: https://github.com/winstonjs/winston/tree/master/UPGRADE-3.0.md"].join(`
|
|
39
39
|
`));se&&this.exceptions.handle(se),oe&&this.rejections.handle(oe)}},{key:"isLevelEnabled",value:function(C){var U=this,b=O(this.levels,C);if(b===null)return!1;var f=O(this.levels,this.level);return f!==null&&(this.transports&&this.transports.length!==0?this.transports.findIndex(function(B){var k=O(U.levels,B.level);return k===null&&(k=f),k>=b})!==-1:f>=b)}},{key:"log",value:function(C,U){for(var b,f,B=arguments.length,k=new Array(B>2?B-2:0),Y=2;Y<B;Y++)k[Y-2]=arguments[Y];if(arguments.length===1)return C[E]=C.level,this._addDefaultMeta(C),this.write(C),this;if(arguments.length===2)return U&&g(U)==="object"?(U[E]=U.level=C,this._addDefaultMeta(U),this.write(U),this):(this.write((i(f={},E,C),i(f,"level",C),i(f,"message",U),f)),this);var K=k[0];if(g(K)==="object"&&K!==null){var Q=U&&U.match&&U.match(h);if(!Q){var G,V=Object.assign({},this.defaultMeta,K,(i(G={},E,C),i(G,P,k),i(G,"level",C),i(G,"message",U),G));return K.message&&(V.message="".concat(V.message," ").concat(K.message)),K.stack&&(V.stack=K.stack),this.write(V),this}}return this.write(Object.assign({},this.defaultMeta,(i(b={},E,C),i(b,P,k),i(b,"level",C),i(b,"message",U),b))),this}},{key:"_transform",value:function(C,U,b){if(this.silent)return b();C[E]||(C[E]=C.level),this.levels[C[E]]||this.levels[C[E]]===0||console.error("[winston] Unknown logger level: %s",C[E]),this._readableState.pipes||console.error("[winston] Attempt to write logs with no transports %j",C);try{this.push(this.format.transform(C,this.format.options))}catch(f){throw f}finally{b()}}},{key:"_final",value:function(C){var U=this.transports.slice();c(U,function(b,f){if(!b||b.finished)return n(f);b.once("finish",f),b.end()},C)}},{key:"add",value:function(C){var U=!F(C)||C.log.length>2?new p({transport:C}):C;if(!U._writableState||!U._writableState.objectMode)throw new Error("Transports must WritableStreams in objectMode. Set { objectMode: true }.");return this._onEvent("error",U),this._onEvent("warn",U),this.pipe(U),C.handleExceptions&&this.exceptions.handle(),C.handleRejections&&this.rejections.handle(),this}},{key:"remove",value:function(C){if(!C)return this;var U=C;return(!F(C)||C.log.length>2)&&(U=this.transports.filter(function(b){return b.transport===C})[0]),U&&this.unpipe(U),this}},{key:"clear",value:function(){return this.unpipe(),this}},{key:"close",value:function(){return this.clear(),this.emit("close"),this}},{key:"setLevels",value:function(){$.deprecated("setLevels")}},{key:"query",value:function(C,U){typeof C=="function"&&(U=C,C={}),C=C||{};var b={},f=Object.assign({},C.query||{});c(this.transports.filter(function(B){return!!B.query}),function(B,k){(function(Y,K){C.query&&typeof Y.formatQuery=="function"&&(C.query=Y.formatQuery(f)),Y.query(C,function(Q,G){if(Q)return K(Q);typeof Y.formatResults=="function"&&(G=Y.formatResults(G,C.format)),K(null,G)})})(B,function(Y,K){k&&((K=Y||K)&&(b[B.name]=K),k()),k=null})},function(){return U(null,b)})}},{key:"stream",value:function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},U=new y,b=[];return U._streams=b,U.destroy=function(){for(var f=b.length;f--;)b[f].destroy()},this.transports.filter(function(f){return!!f.stream}).forEach(function(f){var B=f.stream(C);B&&(b.push(B),B.on("log",function(k){k.transport=k.transport||[],k.transport.push(f.name),U.emit("log",k)}),B.on("error",function(k){k.transport=k.transport||[],k.transport.push(f.name),U.emit("error",k)}))}),U}},{key:"startTimer",value:function(){return new N(this)}},{key:"profile",value:function(C){var U=Date.now();if(this.profilers[C]){var b=this.profilers[C];delete this.profilers[C];for(var f=arguments.length,B=new Array(f>1?f-1:0),k=1;k<f;k++)B[k-1]=arguments[k];typeof B[B.length-2]=="function"&&(console.warn("Callback function no longer supported as of winston@3.0.0"),B.pop());var Y=g(B[B.length-1])==="object"?B.pop():{};return Y.level=Y.level||"info",Y.durationMs=U-b,Y.message=Y.message||C,this.write(Y)}return this.profilers[C]=U,this}},{key:"handleExceptions",value:function(){var C;console.warn("Deprecated: .handleExceptions() will be removed in winston@4. Use .exceptions.handle()"),(C=this.exceptions).handle.apply(C,arguments)}},{key:"unhandleExceptions",value:function(){var C;console.warn("Deprecated: .unhandleExceptions() will be removed in winston@4. Use .exceptions.unhandle()"),(C=this.exceptions).unhandle.apply(C,arguments)}},{key:"cli",value:function(){throw new Error(["Logger.cli() was removed in winston@3.0.0","Use a custom winston.formats.cli() instead.","See: https://github.com/winstonjs/winston/tree/master/UPGRADE-3.0.md"].join(`
|
|
40
|
-
`))}},{key:"_onEvent",value:function(C,U){U["__winston"+C]||(U["__winston"+C]=function(b){C!=="error"||this.transports.includes(U)||this.add(U),this.emit(C,b,U)}.bind(this),U.on(C,U["__winston"+C]))}},{key:"_addDefaultMeta",value:function(C){this.defaultMeta&&Object.assign(C,this.defaultMeta)}}])&&s(x.prototype,D),T}(S);function O(_,x){var D=_[x];return D||D===0?D:null}Object.defineProperty(d.prototype,"transports",{configurable:!1,enumerable:!0,get:function(){var _=this._readableState.pipes;return Array.isArray(_)?_:[_].filter(Boolean)}}),e.exports=d}).call(this,r(12).setImmediate)},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=m(r(41)),i=m(r(42)),g=m(r(64)),s=m(r(65)),o=m(r(66)),l=m(r(23)),u=m(r(27));function m(S){return S&&S.__esModule?S:{default:S}}function R(S,c,w){w=(0,s.default)(w);var E=0,P=0,{length:F}=S,M=!1;function A(p,N){p===!1&&(M=!0),M!==!0&&(p?w(p):++P!==F&&N!==i.default||w(null))}for(F===0&&w(null);E<F;E++)c(S[E],E,(0,o.default)(A))}function y(S,c,w){return(0,g.default)(S,1/0,c,w)}t.default=(0,u.default)(function(S,c,w){return((0,n.default)(S)?R:y)(S,(0,l.default)(c),w)},3),e.exports=t.default},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(n){return(i,g,s)=>n(i,s)},e.exports=t.default},function(e,t,r){var n=Object.prototype.toString;e.exports=function(i){if(typeof i.displayName=="string"&&i.constructor.name)return i.displayName;if(typeof i.name=="string"&&i.name)return i.name;if(typeof i=="object"&&i.constructor&&typeof i.constructor.name=="string")return i.constructor.name;var g=i.toString(),s=n.call(i).slice(8,-1);return(g=s==="Function"?g.substring(g.indexOf("(")+1,g.indexOf(")")):s)||"anonymous"}},function(e,t,r){const n=r(
|
|
40
|
+
`))}},{key:"_onEvent",value:function(C,U){U["__winston"+C]||(U["__winston"+C]=function(b){C!=="error"||this.transports.includes(U)||this.add(U),this.emit(C,b,U)}.bind(this),U.on(C,U["__winston"+C]))}},{key:"_addDefaultMeta",value:function(C){this.defaultMeta&&Object.assign(C,this.defaultMeta)}}])&&s(x.prototype,D),T}(S);function O(_,x){var D=_[x];return D||D===0?D:null}Object.defineProperty(d.prototype,"transports",{configurable:!1,enumerable:!0,get:function(){var _=this._readableState.pipes;return Array.isArray(_)?_:[_].filter(Boolean)}}),e.exports=d}).call(this,r(12).setImmediate)},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=m(r(41)),i=m(r(42)),g=m(r(64)),s=m(r(65)),o=m(r(66)),l=m(r(23)),u=m(r(27));function m(S){return S&&S.__esModule?S:{default:S}}function R(S,c,w){w=(0,s.default)(w);var E=0,P=0,{length:F}=S,M=!1;function A(p,N){p===!1&&(M=!0),M!==!0&&(p?w(p):++P!==F&&N!==i.default||w(null))}for(F===0&&w(null);E<F;E++)c(S[E],E,(0,o.default)(A))}function y(S,c,w){return(0,g.default)(S,1/0,c,w)}t.default=(0,u.default)(function(S,c,w){return((0,n.default)(S)?R:y)(S,(0,l.default)(c),w)},3),e.exports=t.default},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(n){return(i,g,s)=>n(i,s)},e.exports=t.default},function(e,t,r){var n=Object.prototype.toString;e.exports=function(i){if(typeof i.displayName=="string"&&i.constructor.name)return i.displayName;if(typeof i.name=="string"&&i.name)return i.name;if(typeof i=="object"&&i.constructor&&typeof i.constructor.name=="string")return i.constructor.name;var g=i.toString(),s=n.call(i).slice(8,-1);return(g=s==="Function"?g.substring(g.indexOf("(")+1,g.indexOf(")")):s)||"anonymous"}},function(e,t,r){const n=r(10),{LEVEL:i}=r(3),g=r(17),s=e.exports=function(o={}){if(g.call(this,o),!o.transport||typeof o.transport.log!="function")throw new Error("Invalid transport, must be an object with a log method.");this.transport=o.transport,this.level=this.level||o.transport.level,this.handleExceptions=this.handleExceptions||o.transport.handleExceptions,this._deprecated(),this.transport.__winstonError||(this.transport.__winstonError=function(l){this.emit("error",l,this.transport)}.bind(this),this.transport.on("error",this.transport.__winstonError))};n.inherits(s,g),s.prototype._write=function(o,l,u){if(this.silent||o.exception===!0&&!this.handleExceptions)return u(null);(!this.level||this.levels[this.level]>=this.levels[o[i]])&&this.transport.log(o[i],o.message,o,this._nop),u(null)},s.prototype._writev=function(o,l){for(let u=0;u<o.length;u++)this._accept(o[u])&&(this.transport.log(o[u].chunk[i],o[u].chunk.message,o[u].chunk,this._nop),o[u].callback());return l(null)},s.prototype._deprecated=function(){console.error([`${this.transport.name} is a legacy winston transport. Consider upgrading: `,"- Upgrade docs: https://github.com/winstonjs/winston/blob/master/UPGRADE-3.0.md"].join(`
|
|
41
41
|
`))},s.prototype.close=function(){this.transport.close&&this.transport.close(),this.transport.__winstonError&&(this.transport.removeListener("error",this.transport.__winstonError),this.transport.__winstonError=null)}},function(e,t,r){function n(g){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s})(g)}function i(g,s){for(var o=0;o<s.length;o++){var l=s[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(g,l.key,l)}}e.exports=function(){function g(l){if(function(u,m){if(!(u instanceof m))throw new TypeError("Cannot call a class as a function")}(this,g),!l)throw new Error("Logger is required for profiling.");this.logger=l,this.start=Date.now()}var s,o;return s=g,(o=[{key:"done",value:function(){for(var l=arguments.length,u=new Array(l),m=0;m<l;m++)u[m]=arguments[m];typeof u[u.length-1]=="function"&&(console.warn("Callback function no longer supported as of winston@3.0.0"),u.pop());var R=n(u[u.length-1])==="object"?u.pop():{};return R.level=R.level||"info",R.durationMs=Date.now()-this.start,this.logger.write(R)}}])&&i(s.prototype,o),g}()},function(e,t,r){(function(n){const i=r(208),{MESSAGE:g}=r(3),s=r(31);function o(l,u){return u instanceof n?u.toString("base64"):typeof u=="bigint"?u.toString():u}e.exports=i((l,u={})=>(l[g]=(u.stable?s.stableStringify:s)(l,u.replacer||o,u.space),l))}).call(this,r(4).Buffer)},function(e,t,r){class n extends Error{constructor(g){super(`Format functions must be synchronous taking a two arguments: (info, opts)
|
|
42
42
|
Found: ${g.toString().split(`
|
|
43
43
|
`)[0]}
|
|
44
|
-
`),Error.captureStackTrace(this,n)}}e.exports=i=>{if(i.length>2)throw new n(i);function g(o={}){this.options=o}function s(o){return new g(o)}return g.prototype.transform=i,s.Format=g,s}},function(e,t,r){function n(s,o){if(!(s instanceof o))throw new TypeError("Cannot call a class as a function")}function i(s,o){for(var l=0;l<o.length;l++){var u=o[l];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(s,u.key,u)}}var g=r(85);e.exports=function(){function s(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};n(this,s),this.loggers=new Map,this.options=u}var o,l;return o=s,(l=[{key:"add",value:function(u,m){var R=this;if(!this.loggers.has(u)){var y=(m=Object.assign({},m||this.options)).transports||this.options.transports;m.transports=y?y.slice():[];var S=g(m);S.on("close",function(){return R._delete(u)}),this.loggers.set(u,S)}return this.loggers.get(u)}},{key:"get",value:function(u,m){return this.add(u,m)}},{key:"has",value:function(u){return!!this.loggers.has(u)}},{key:"close",value:function(u){var m=this;if(u)return this._removeLogger(u);this.loggers.forEach(function(R,y){return m._removeLogger(y)})}},{key:"_removeLogger",value:function(u){this.loggers.has(u)&&(this.loggers.get(u).close(),this._delete(u))}},{key:"_delete",value:function(u){this.loggers.delete(u)}}])&&i(o.prototype,l),s}()},function(e,t,r){(function(n){const i=r(49),g=/^([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{4}|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)$/;e.exports=function(s,o,l){let u,m,R=!1,y=!1;function S(E,P){let F=`"${o}" ${P}`;throw E&&(F=`${F}, but is set to "${E}"`),m&&(F=`${F}. An example of a valid value would be: ${m}`),new i(F)}function c(E){return function(){let P=s[o];if(P===void 0)if(u===void 0&&y)S(void 0,"is a required variable, but it was not set");else{if(u===void 0)return;P=u}y&&P.trim().length===0&&S(void 0,"is a required variable, but its value was empty"),R&&(P.match(g)||S(P,"should be a valid base64 string if using convertFromBase64"),P=n.from(P,"base64").toString());const F=[P].concat(Array.prototype.slice.call(arguments));try{return E.apply(E,F)}catch(M){S(P,M.message)}}}const w={asArray:c(r(211)),asBoolStrict:c(r(212)),asBool:c(r(213)),asPortNumber:c(r(214)),asEnum:c(r(215)),asFloatNegative:c(r(216)),asFloatPositive:c(r(217)),asFloat:c(r(51)),asIntNegative:c(r(218)),asIntPositive:c(r(91)),asInt:c(r(50)),asJsonArray:c(r(219)),asJsonObject:c(r(220)),asJson:c(r(52)),asString:c(r(35)),asUrlObject:c(r(92)),asUrlString:c(r(221)),convertFromBase64:function(){return R=!0,w},default:function(E){if(typeof E=="number")u=E.toString();else if(Array.isArray(E)||typeof E=="object"&&E!==null)u=JSON.stringify(E);else{if(typeof E!="string")throw new i("values passed to default() must be of Number, String, Array, or Object type");u=E}return w},required:function(E){return y=E===void 0||E,w},example:function(E){return m=E,w}};return Object.entries(l).forEach(([E,P])=>{w[E]=c(P)}),w}}).call(this,r(4).Buffer)},function(e,t,r){const n=r(35);e.exports=function(i,g){return g=g||",",i.length?n(i).split(g).filter(Boolean):[]}},function(e,t,r){e.exports=function(n){const i=n.toLowerCase();if(i!=="false"&&i!=="true")throw new Error('should be either "true", "false", "TRUE", or "FALSE"');return i!=="false"}},function(e,t,r){e.exports=function(n){const i=n.toLowerCase();if(["false","0","true","1"].indexOf(i)===-1)throw new Error('should be either "true", "false", "TRUE", "FALSE", 1, or 0');return!(i==="0"||i==="false")}},function(e,t,r){const n=r(91);e.exports=function(i){var g=n(i);if(g>65535)throw new Error("cannot assign a port number greater than 65535");return g}},function(e,t,r){const n=r(35);e.exports=function(i,g){const s=n(i);if(g.indexOf(s)<0)throw new Error(`should be one of [${g.join(", ")}]`);return s}},function(e,t,r){const n=r(51);e.exports=function(i){const g=n(i);if(g>0)throw new Error("should be a negative float");return g}},function(e,t,r){const n=r(51);e.exports=function(i){const g=n(i);if(g<0)throw new Error("should be a positive float");return g}},function(e,t,r){const n=r(50);e.exports=function(i){const g=n(i);if(g>0)throw new Error("should be a negative integer");return g}},function(e,t,r){const n=r(52);e.exports=function(i){var g=n(i);if(!Array.isArray(g))throw new Error("should be a parseable JSON Array");return g}},function(e,t,r){const n=r(52);e.exports=function(i){var g=n(i);if(Array.isArray(g))throw new Error("should be a parseable JSON Object");return g}},function(e,t,r){const n=r(92);e.exports=function(i){return n(i).toString()}},function(e,t,r){function n(o){var l=this;if(l instanceof n||(l=new n),l.tail=null,l.head=null,l.length=0,o&&typeof o.forEach=="function")o.forEach(function(R){l.push(R)});else if(arguments.length>0)for(var u=0,m=arguments.length;u<m;u++)l.push(arguments[u]);return l}function i(o,l){o.tail=new s(l,o.tail,null,o),o.head||(o.head=o.tail),o.length++}function g(o,l){o.head=new s(l,null,o.head,o),o.tail||(o.tail=o.head),o.length++}function s(o,l,u,m){if(!(this instanceof s))return new s(o,l,u,m);this.list=m,this.value=o,l?(l.next=this,this.prev=l):this.prev=null,u?(u.prev=this,this.next=u):this.next=null}e.exports=n,n.Node=s,n.create=n,n.prototype.removeNode=function(o){if(o.list!==this)throw new Error("removing node which does not belong to this list");var l=o.next,u=o.prev;l&&(l.prev=u),u&&(u.next=l),o===this.head&&(this.head=l),o===this.tail&&(this.tail=u),o.list.length--,o.next=null,o.prev=null,o.list=null},n.prototype.unshiftNode=function(o){if(o!==this.head){o.list&&o.list.removeNode(o);var l=this.head;o.list=this,o.next=l,l&&(l.prev=o),this.head=o,this.tail||(this.tail=o),this.length++}},n.prototype.pushNode=function(o){if(o!==this.tail){o.list&&o.list.removeNode(o);var l=this.tail;o.list=this,o.prev=l,l&&(l.next=o),this.tail=o,this.head||(this.head=o),this.length++}},n.prototype.push=function(){for(var o=0,l=arguments.length;o<l;o++)i(this,arguments[o]);return this.length},n.prototype.unshift=function(){for(var o=0,l=arguments.length;o<l;o++)g(this,arguments[o]);return this.length},n.prototype.pop=function(){if(this.tail){var o=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,o}},n.prototype.shift=function(){if(this.head){var o=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,o}},n.prototype.forEach=function(o,l){l=l||this;for(var u=this.head,m=0;u!==null;m++)o.call(l,u.value,m,this),u=u.next},n.prototype.forEachReverse=function(o,l){l=l||this;for(var u=this.tail,m=this.length-1;u!==null;m--)o.call(l,u.value,m,this),u=u.prev},n.prototype.get=function(o){for(var l=0,u=this.head;u!==null&&l<o;l++)u=u.next;if(l===o&&u!==null)return u.value},n.prototype.getReverse=function(o){for(var l=0,u=this.tail;u!==null&&l<o;l++)u=u.prev;if(l===o&&u!==null)return u.value},n.prototype.map=function(o,l){l=l||this;for(var u=new n,m=this.head;m!==null;)u.push(o.call(l,m.value,this)),m=m.next;return u},n.prototype.mapReverse=function(o,l){l=l||this;for(var u=new n,m=this.tail;m!==null;)u.push(o.call(l,m.value,this)),m=m.prev;return u},n.prototype.reduce=function(o,l){var u,m=this.head;if(arguments.length>1)u=l;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");m=this.head.next,u=this.head.value}for(var R=0;m!==null;R++)u=o(u,m.value,R),m=m.next;return u},n.prototype.reduceReverse=function(o,l){var u,m=this.tail;if(arguments.length>1)u=l;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");m=this.tail.prev,u=this.tail.value}for(var R=this.length-1;m!==null;R--)u=o(u,m.value,R),m=m.prev;return u},n.prototype.toArray=function(){for(var o=new Array(this.length),l=0,u=this.head;u!==null;l++)o[l]=u.value,u=u.next;return o},n.prototype.toArrayReverse=function(){for(var o=new Array(this.length),l=0,u=this.tail;u!==null;l++)o[l]=u.value,u=u.prev;return o},n.prototype.slice=function(o,l){(l=l||this.length)<0&&(l+=this.length),(o=o||0)<0&&(o+=this.length);var u=new n;if(l<o||l<0)return u;o<0&&(o=0),l>this.length&&(l=this.length);for(var m=0,R=this.head;R!==null&&m<o;m++)R=R.next;for(;R!==null&&m<l;m++,R=R.next)u.push(R.value);return u},n.prototype.sliceReverse=function(o,l){(l=l||this.length)<0&&(l+=this.length),(o=o||0)<0&&(o+=this.length);var u=new n;if(l<o||l<0)return u;o<0&&(o=0),l>this.length&&(l=this.length);for(var m=this.length,R=this.tail;R!==null&&m>l;m--)R=R.prev;for(;R!==null&&m>o;m--,R=R.prev)u.push(R.value);return u},n.prototype.reverse=function(){for(var o=this.head,l=this.tail,u=o;u!==null;u=u.prev){var m=u.prev;u.prev=u.next,u.next=m}return this.head=l,this.tail=o,this};try{r(223)(n)}catch{}},function(e,t,r){e.exports=function(n){n.prototype[Symbol.iterator]=function*(){for(let i=this.head;i;i=i.next)yield i.value}}},function(e,t,r){(function(n){(function(){var i,g,s,o,l,u;typeof performance!="undefined"&&performance!==null&&performance.now?e.exports=function(){return performance.now()}:n!=null&&n.hrtime?(e.exports=function(){return(i()-l)/1e6},g=n.hrtime,o=(i=function(){var m;return 1e9*(m=g())[0]+m[1]})(),u=1e9*n.uptime(),l=o-u):Date.now?(e.exports=function(){return Date.now()-s},s=Date.now()):(e.exports=function(){return new Date().getTime()-s},s=new Date().getTime())}).call(this)}).call(this,r(2))},function(e,t,r){var n,i,g=r(96),s=r(97),o=0,l=0;e.exports=function(u,m,R){var y=m&&R||0,S=m||[],c=(u=u||{}).node||n,w=u.clockseq!==void 0?u.clockseq:i;if(c==null||w==null){var E=g();c==null&&(c=n=[1|E[0],E[1],E[2],E[3],E[4],E[5]]),w==null&&(w=i=16383&(E[6]<<8|E[7]))}var P=u.msecs!==void 0?u.msecs:new Date().getTime(),F=u.nsecs!==void 0?u.nsecs:l+1,M=P-o+(F-l)/1e4;if(M<0&&u.clockseq===void 0&&(w=w+1&16383),(M<0||P>o)&&u.nsecs===void 0&&(F=0),F>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");o=P,l=F,i=w;var A=(1e4*(268435455&(P+=122192928e5))+F)%4294967296;S[y++]=A>>>24&255,S[y++]=A>>>16&255,S[y++]=A>>>8&255,S[y++]=255&A;var p=P/4294967296*1e4&268435455;S[y++]=p>>>8&255,S[y++]=255&p,S[y++]=p>>>24&15|16,S[y++]=p>>>16&255,S[y++]=w>>>8|128,S[y++]=255&w;for(var N=0;N<6;++N)S[y+N]=c[N];return m||s(S)}},function(e,t,r){var n=r(96),i=r(97);e.exports=function(g,s,o){var l=s&&o||0;typeof g=="string"&&(s=g==="binary"?new Array(16):null,g=null);var u=(g=g||{}).random||(g.rng||n)();if(u[6]=15&u[6]|64,u[8]=63&u[8]|128,s)for(var m=0;m<16;++m)s[l+m]=u[m];return s||i(u)}},function(e,t,r){(function(n){(function(i){function g(o){if((o=o===void 0?"utf-8":o)!=="utf-8")throw new RangeError("Failed to construct 'TextEncoder': The encoding label provided ('"+o+"') is invalid.")}function s(o,l){if(l=l===void 0?{fatal:!1}:l,(o=o===void 0?"utf-8":o)!=="utf-8")throw new RangeError("Failed to construct 'TextDecoder': The encoding label provided ('"+o+"') is invalid.");if(l.fatal)throw Error("Failed to construct 'TextDecoder': the 'fatal' option is unsupported.")}if(i.TextEncoder&&i.TextDecoder)return!1;Object.defineProperty(g.prototype,"encoding",{value:"utf-8"}),g.prototype.encode=function(o,l){if((l=l===void 0?{stream:!1}:l).stream)throw Error("Failed to encode: the 'stream' option is unsupported.");l=0;for(var u=o.length,m=0,R=Math.max(32,u+(u>>1)+7),y=new Uint8Array(R>>3<<3);l<u;){var S=o.charCodeAt(l++);if(55296<=S&&56319>=S){if(l<u){var c=o.charCodeAt(l);(64512&c)==56320&&(++l,S=((1023&S)<<10)+(1023&c)+65536)}if(55296<=S&&56319>=S)continue}if(m+4>y.length&&(R+=8,R=(R*=1+l/o.length*2)>>3<<3,(c=new Uint8Array(R)).set(y),y=c),(4294967168&S)==0)y[m++]=S;else{if((4294965248&S)==0)y[m++]=S>>6&31|192;else if((4294901760&S)==0)y[m++]=S>>12&15|224,y[m++]=S>>6&63|128;else{if((4292870144&S)!=0)continue;y[m++]=S>>18&7|240,y[m++]=S>>12&63|128,y[m++]=S>>6&63|128}y[m++]=63&S|128}}return y.slice(0,m)},Object.defineProperty(s.prototype,"encoding",{value:"utf-8"}),Object.defineProperty(s.prototype,"fatal",{value:!1}),Object.defineProperty(s.prototype,"ignoreBOM",{value:!1}),s.prototype.decode=function(o,l){if((l=l===void 0?{stream:!1}:l).stream)throw Error("Failed to decode: the 'stream' option is unsupported.");l=0;for(var u=(o=new Uint8Array(o)).length,m=[];l<u;){var R=o[l++];if(R===0)break;if((128&R)==0)m.push(R);else if((224&R)==192){var y=63&o[l++];m.push((31&R)<<6|y)}else if((240&R)==224){y=63&o[l++];var S=63&o[l++];m.push((31&R)<<12|y<<6|S)}else(248&R)==240&&(65535<(R=(7&R)<<18|(y=63&o[l++])<<12|(S=63&o[l++])<<6|63&o[l++])&&(R-=65536,m.push(R>>>10&1023|55296),R=56320|1023&R),m.push(R))}return String.fromCharCode.apply(null,m)},i.TextEncoder=g,i.TextDecoder=s})(typeof window!="undefined"?window:n!==void 0?n:this)}).call(this,r(5))},function(e,t,r){r.r(t),r.d(t,"AuthClient",function(){return g}),r.d(t,"RtcSignalingClient",function(){return o}),r.d(t,"Credentials",function(){return w}),r.d(t,"SignalingPromiseClient",function(){return E.SignalingPromiseClient}),r.d(t,"IRtcClientConfiguration",function(){}),r.d(t,"IRtcConnectConfiguration",function(){}),r.d(t,"IRtcConnectionStatsInfo",function(){}),r.d(t,"IRtcSendConfiguration",function(){}),r.d(t,"IRtcSessionMetricsMessageCounts",function(){}),r.d(t,"IRtcStreamMessage",function(){}),r.d(t,"IStreamControl",function(){}),r.d(t,"RtcClient",function(){return se});var n=r(26),i=function(oe,z,Z,te){return new(Z||(Z=Promise))(function(ce,ae){function he(fe){try{me(te.next(fe))}catch(ge){ae(ge)}}function de(fe){try{me(te.throw(fe))}catch(ge){ae(ge)}}function me(fe){var ge;fe.done?ce(fe.value):(ge=fe.value,ge instanceof Z?ge:new Z(function(_e){_e(ge)})).then(he,de)}me((te=te.apply(oe,z||[])).next())})};class g extends n.a{adminSignup(z,Z){return i(this,void 0,void 0,function*(){return yield this.fetch("auth/admin-signup",{token:Z,method:"POST",body:JSON.stringify(z)})})}login(z){return i(this,void 0,void 0,function*(){return yield this.fetch("auth/login",{method:"POST",body:JSON.stringify(z),allowUnsafeRetries:!0})})}loginWithGoogleToken(z){return i(this,void 0,void 0,function*(){return yield this.fetch("auth/login-google",{method:"POST",body:JSON.stringify(z),allowUnsafeRetries:!0})})}refresh(z,Z){return i(this,void 0,void 0,function*(){return yield this.fetch("auth/refresh",{method:"POST",body:JSON.stringify({refreshToken:z,tokenExpirationSeconds:Z}),allowUnsafeRetries:!0})})}respondToNewPasswordRequiredChallenge(z){return i(this,void 0,void 0,function*(){return yield this.fetch("auth/respond-to-new-password-required-challenge",{method:"POST",body:JSON.stringify(z)})})}forgotPassword(z){return i(this,void 0,void 0,function*(){return yield this.fetch("auth/forgot-password",{method:"POST",body:JSON.stringify({email:z})})})}confirmForgotPassword(z){return i(this,void 0,void 0,function*(){return yield this.fetch("auth/confirm-forgot-password",{method:"POST",body:JSON.stringify(z)})})}resendInvitation(z){return i(this,void 0,void 0,function*(){return yield this.fetch("auth/resend-invitation",{method:"POST",body:JSON.stringify({email:z})})})}changePassword({token:z,refreshToken:Z,currentPassword:te,newPassword:ce}){return i(this,void 0,void 0,function*(){return yield this.fetch("auth/change-password",{token:z,method:"POST",body:JSON.stringify({refreshToken:Z,currentPassword:te,newPassword:ce})})})}getDeviceCredentials(z){return i(this,void 0,void 0,function*(){return yield this.fetch("auth/device-credentials",{token:z,method:"POST",allowUnsafeRetries:!0})})}impersonate(z,Z){return i(this,void 0,void 0,function*(){return yield this.fetch("auth/impersonate",{token:z,method:"POST",allowUnsafeRetries:!0,body:JSON.stringify({userId:Z})})})}createServiceAccount(z,Z,te){return i(this,void 0,void 0,function*(){return yield this.fetch("auth/service-account",{token:z,method:"POST",allowUnsafeRetries:!0,body:JSON.stringify({name:Z,role:te})})})}sendPlanUpgradeRequest(z){return i(this,void 0,void 0,function*(){return yield this.fetch("auth/upgrade-plan",{token:z,method:"POST",allowUnsafeRetries:!0})})}}var s=function(oe,z,Z,te){return new(Z||(Z=Promise))(function(ce,ae){function he(fe){try{me(te.next(fe))}catch(ge){ae(ge)}}function de(fe){try{me(te.throw(fe))}catch(ge){ae(ge)}}function me(fe){var ge;fe.done?ce(fe.value):(ge=fe.value,ge instanceof Z?ge:new Z(function(_e){_e(ge)})).then(he,de)}me((te=te.apply(oe,z||[])).next())})};class o extends n.a{createPeer(z,Z){return s(this,void 0,void 0,function*(){return yield this.fetch("peers",{token:z,method:"POST",body:JSON.stringify(Z)})})}getPeers(z){return s(this,void 0,void 0,function*(){return(yield this.fetch("peers",{token:z})).items})}refreshPeer(z,Z){return s(this,void 0,void 0,function*(){yield this.fetch(`peers/${Z}/refresh`,{token:z,method:"POST",allowUnsafeRetries:!0})})}createSession(z,Z){return s(this,void 0,void 0,function*(){return yield this.fetch("sessions",{token:z,method:"POST",body:JSON.stringify(Z)})})}refreshSession(z,Z){return s(this,void 0,void 0,function*(){yield this.fetch(`sessions/${Z}/refresh`,{token:z,method:"POST",allowUnsafeRetries:!0})})}deleteSession(z,Z){return s(this,void 0,void 0,function*(){yield this.fetch(`sessions/${Z}`,{token:z,method:"DELETE",allowUnsafeRetries:!0})})}getSessions(z){return s(this,void 0,void 0,function*(){return(yield this.fetch("sessions",{token:z})).items})}getIceServers(z){return s(this,void 0,void 0,function*(){return(yield this.fetch("ice-servers",{token:z})).items})}addSignals(z,Z,te){return s(this,void 0,void 0,function*(){yield this.fetch(`sessions/${Z}/add-signals`,{token:z,method:"POST",body:JSON.stringify(te)})})}takeSignals(z,Z){return s(this,void 0,void 0,function*(){return(yield this.fetch(`sessions/${Z}/take-signals`,{token:z,method:"POST"})).items})}}var l=r(1),u=r(10),m=r(21),R=r(102),y=function(oe,z,Z,te){return new(Z||(Z=Promise))(function(ce,ae){function he(fe){try{me(te.next(fe))}catch(ge){ae(ge)}}function de(fe){try{me(te.throw(fe))}catch(ge){ae(ge)}}function me(fe){var ge;fe.done?ce(fe.value):(ge=fe.value,ge instanceof Z?ge:new Z(function(_e){_e(ge)})).then(he,de)}me((te=te.apply(oe,z||[])).next())})};class S extends class{constructor(z={}){this.cache=new R(z),this.stringify=z.fastStringify?JSON.stringify:m}set(z,Z,te){if(!this.cache.set(this.stringify(z),Z,te))throw Error(`Value too large (${this.cache.lengthCalculator(Z)} > ${this.cache.max})`)}get(z){return this.cache.get(this.stringify(z))}del(z){this.cache.del(this.stringify(z))}length(){return this.cache.length}reset(){this.cache.reset()}prune(){return this.cache.prune()}forEach(z){return this.cache.forEach(z)}}{constructor(z={}){if(super(z),this.expireRejectedPromiseValues=z.expireRejectedPromiseValues===void 0||z.expireRejectedPromiseValues,this.rejectedPromiseValueTtl=z.rejectedPromiseValueTtl!==void 0?z.rejectedPromiseValueTtl:l.a.second,this.rejectedPromiseValueTtl<0)throw new Error("rejectedPromiseValueTtl must not be negative")}set(z,Z,te){const ce=this.stringify(z);this.cache.set(ce,Z,te),this.expireRejectedPromiseValues&&Promise.resolve(Z).catch(()=>y(this,void 0,void 0,function*(){yield Object(u.a)(this.rejectedPromiseValueTtl),this.cache.peek(ce)===Z&&this.cache.del(ce)}))}}var c=function(oe,z,Z,te){return new(Z||(Z=Promise))(function(ce,ae){function he(fe){try{me(te.next(fe))}catch(ge){ae(ge)}}function de(fe){try{me(te.throw(fe))}catch(ge){ae(ge)}}function me(fe){var ge;fe.done?ce(fe.value):(ge=fe.value,ge instanceof Z?ge:new Z(function(_e){_e(ge)})).then(he,de)}me((te=te.apply(oe,z||[])).next())})};class w{constructor(z,Z,te){this.authClient=z,this.email=Z,this.password=te,this.tokenTtlMs=1*l.a.hour,this.tokenCache=new S({max:100,maxAge:this.tokenTtlMs-5*l.a.minute,fastStringify:!0})}getToken(){return c(this,void 0,void 0,function*(){let z=this.tokenCache.get(this.email);return z||(z=(()=>c(this,void 0,void 0,function*(){const{authentication:Z}=yield this.authClient.login({email:this.email,password:this.password,tokenExpirationSeconds:this.tokenTtlMs/l.a.second});if(!Z)throw new Error("User account not verified.");return Z.accessToken}))(),this.tokenCache.set(this.email,z)),z})}}var E=r(93),P=function(oe,z,Z,te){return new(Z||(Z=Promise))(function(ce,ae){function he(fe){try{me(te.next(fe))}catch(ge){ae(ge)}}function de(fe){try{me(te.throw(fe))}catch(ge){ae(ge)}}function me(fe){var ge;fe.done?ce(fe.value):(ge=fe.value,ge instanceof Z?ge:new Z(function(_e){_e(ge)})).then(he,de)}me((te=te.apply(oe,z||[])).next())})};function F(oe){return P(this,void 0,void 0,function*(){return(yield Promise.all(oe.map(z=>z.catch(Z=>Z)))).filter(z=>z instanceof Error)})}function M(oe){if(oe!==void 0)return oe;throw new Error("Value is undefined")}var A=r(0),p=function(oe,z,Z,te){return new(Z||(Z=Promise))(function(ce,ae){function he(fe){try{me(te.next(fe))}catch(ge){ae(ge)}}function de(fe){try{me(te.throw(fe))}catch(ge){ae(ge)}}function me(fe){var ge;fe.done?ce(fe.value):(ge=fe.value,ge instanceof Z?ge:new Z(function(_e){_e(ge)})).then(he,de)}me((te=te.apply(oe,z||[])).next())})};function N({func:oe,delay:z,immediate:Z}){let te=!1,ce=setTimeout(function he(){return p(this,void 0,void 0,function*(){if(te)return;const de=new Date().getTime();try{ae=oe(),yield ae}finally{if(!te){const me=new Date().getTime();ce=setTimeout(he,Math.max(z-(me-de),0))}}})},Z?0:z),ae=Promise.resolve();return{stop(){return p(this,void 0,void 0,function*(){te=!0,clearTimeout(ce),yield ae})}}}function $(oe,z){return Object.keys(oe).reduce((Z,te)=>Object.assign(Object.assign({},Z),{[te]:z(oe[te])}),{})}var q=function(oe,z,Z,te){return new(Z||(Z=Promise))(function(ce,ae){function he(fe){try{me(te.next(fe))}catch(ge){ae(ge)}}function de(fe){try{me(te.throw(fe))}catch(ge){ae(ge)}}function me(fe){var ge;fe.done?ce(fe.value):(ge=fe.value,ge instanceof Z?ge:new Z(function(_e){_e(ge)})).then(he,de)}me((te=te.apply(oe,z||[])).next())})};class h{constructor(z){this.message=z}send(z){return q(this,void 0,void 0,function*(){A.a.info(this.message,$(z,Z=>{const{sum:te,count:ce}=Z,ae=te/ce;return Object.assign(Object.assign({},Z),{average:ae})}))})}}var d=function(oe,z,Z,te){return new(Z||(Z=Promise))(function(ce,ae){function he(fe){try{me(te.next(fe))}catch(ge){ae(ge)}}function de(fe){try{me(te.throw(fe))}catch(ge){ae(ge)}}function me(fe){var ge;fe.done?ce(fe.value):(ge=fe.value,ge instanceof Z?ge:new Z(function(_e){_e(ge)})).then(he,de)}me((te=te.apply(oe,z||[])).next())})};const O=r(224),_=!!r(7).c,x=new class{constructor(oe=60){this.buffer={},this.metrics={},this.reporters=[],this.flushInterval=N({func:()=>this.flushStats(),delay:oe*l.a.second})}shutdown(){return d(this,void 0,void 0,function*(){yield this.flushInterval.stop(),yield this.flushStats(),yield Object(u.a)(2*l.a.second)})}aggregate(oe,z){if(this.buffer[oe]){const{min:Z,max:te,sum:ce,count:ae}=this.buffer[oe];this.buffer[oe]={min:Math.min(Z,z),max:Math.max(te,z),sum:ce+z,count:ae+1}}else this.buffer[oe]={min:z,max:z,sum:z,count:1}}increment(oe){this.aggregate(oe,1)}timer(oe,z){return d(this,void 0,void 0,function*(){const Z=O(),te=yield z(),ce=O();return this.aggregate(oe,ce-Z),te})}metric(oe,z){this.metrics[oe]=z}registerStatsReporter(oe){this.reporters.push(oe)}write(oe){return d(this,void 0,void 0,function*(){if(Object.values(oe).length===0)return;const z=yield F(this.reporters.map(Z=>Z.send(oe)));for(const Z of z)A.a.warn("Failed to write stats",{error:Z})})}flushStats(){return d(this,void 0,void 0,function*(){const oe=Object.assign(Object.assign({},this.buffer),$(this.metrics,z=>{const Z=z();return{min:Z,max:Z,sum:Z,count:1}}));Object.keys(oe).length>0&&(yield this.write(oe),this.buffer={})})}};_||x.registerStatsReporter(new h("stats"));var D=r(11),L=r(22),T=r(103),C=r(36),U=function(oe,z,Z,te){return new(Z||(Z=Promise))(function(ce,ae){function he(fe){try{me(te.next(fe))}catch(ge){ae(ge)}}function de(fe){try{me(te.throw(fe))}catch(ge){ae(ge)}}function me(fe){var ge;fe.done?ce(fe.value):(ge=fe.value,ge instanceof Z?ge:new Z(function(_e){_e(ge)})).then(he,de)}me((te=te.apply(oe,z||[])).next())})};class b extends C.a{constructor(z){super(z)}postLanRtcOffer(z){return U(this,void 0,void 0,function*(){return yield this.fetch("v1/lan-rtc-offer",{method:"POST",body:JSON.stringify(z)})})}}var f=r(55);const B={ordered:!1,maxPacketLifeTime:300*l.a.millisecond},k={ordered:!0},Y={ordered:!0},K={ordered:!1,maxRetransmits:0},Q={ordered:!1,maxRetransmits:0};function G({entityId:oe,streamName:z,streamType:Z}){return`${oe}.${z}.${Z}`}var V=function(oe,z,Z,te){return new(Z||(Z=Promise))(function(ce,ae){function he(fe){try{me(te.next(fe))}catch(ge){ae(ge)}}function de(fe){try{me(te.throw(fe))}catch(ge){ae(ge)}}function me(fe){var ge;fe.done?ce(fe.value):(ge=fe.value,ge instanceof Z?ge:new Z(function(_e){_e(ge)})).then(he,de)}me((te=te.apply(oe,z||[])).next())})};class v{constructor(z,Z){this.sessionId=z,this.connection=Z,this.counts={localSent:new Map,localReceived:new Map,remoteSent:new Map,remoteReceived:new Map},this.sessionId=z,this.connection=Z}updateRemoteMessagesCounts(z){if(z.payload.streamsInfo){this.counts.remoteSent=new Map,this.counts.remoteReceived=new Map;for(const Z of z.payload.streamsInfo.items)this.counts.remoteSent.set(Z.streamId,Z.sentCount),this.counts.remoteReceived.set(Z.streamId,Z.receivedCount)}}getLocalStreamsInfo(z){const{localSent:Z,localReceived:te}=this.counts;return{items:[...new Set([...Z.keys(),...te.keys()])].map(ce=>{var ae,he;return{streamId:ce,sentCount:(ae=Z.get(ce))!==null&&ae!==void 0?ae:0,receivedCount:(he=te.get(ce))!==null&&he!==void 0?he:0}}),timestamp:z}}incrementLocalSent(z){const{localSent:Z}=this.counts,te=G(z.header.stream);Z.set(te,(Z.get(te)||0)+1)}incrementLocalReceived(z){const{localReceived:Z}=this.counts,te=G(z.header.stream),ce=Z.get(te)||0;if(ce===0){const{streamName:ae,streamType:he}=z.header.stream;A.a.debug("RTC client received first message for stream",{streamName:ae,streamType:he})}Z.set(te,ce+1)}uploadMetrics(){return V(this,void 0,void 0,function*(){const{sessionId:z}=this,Z=yield this.connection.peerConnection.getStats(),te={};Z.forEach(fe=>te[fe.id]=fe),A.a.debug("rtc-stats",Object.assign(Object.assign({},te),{sessionId:z}));const{localSent:ce,localReceived:ae,remoteSent:he,remoteReceived:de}=this.counts,me=[...new Set([...ce.keys(),...ae.keys()])].reduce((fe,ge)=>{const _e=ce.get(ge),Se=ae.get(ge),Oe=he.get(ge),Pe=de.get(ge);return Object.assign(Object.assign({},fe),{[`local-${ge}-sent`]:_e,[`local-${ge}-received`]:Se,[`remote-${ge}-sent`]:Oe,[`remote-${ge}-received`]:Pe})},{sessionId:z});A.a.debug("rtc-message-report",Object.assign({deviceId:this.connection.getRemoteDeviceId()},me))})}}function j(oe){return new Set(["disconnected","failed","closed"]).has(oe.iceConnectionState)}var W=function(oe,z,Z,te){return new(Z||(Z=Promise))(function(ce,ae){function he(fe){try{me(te.next(fe))}catch(ge){ae(ge)}}function de(fe){try{me(te.throw(fe))}catch(ge){ae(ge)}}function me(fe){var ge;fe.done?ce(fe.value):(ge=fe.value,ge instanceof Z?ge:new Z(function(_e){_e(ge)})).then(he,de)}me((te=te.apply(oe,z||[])).next())})};class ee{constructor(z,Z,te){this.peerConnection=z,this.config=Z,this.dataChannelNotifier=te,this.connectTimeoutMs=20*l.a.second,this.iceGatheringTimeoutMs=15*l.a.second,this.pingUpdateTimeoutMs=1*l.a.second,this.streamsInfoUpdateTimeoutMs=2*l.a.second,this.reassemblyTimeoutMs=500*l.a.millisecond,this.reassemblyTableCleanupMs=1*l.a.second,this.heartbeatTimeoutMs=20*l.a.millisecond,this.streamLatestTimestamp=new Map,this.reassemblyTable=new Map,this.reassemblyTableLastTimestamp=new Map,this.closeCalled=!1,this.gotOffer=!1,this.hasIceCandidate=!1;const{isOffer:ce}=Z.baseConfig;ce?this.initializeChannels(z):z.ondatachannel=ae=>{switch(ae.channel.label){case"stream.latest-ttl":this.latestTtlStreamChannel=ae.channel;break;case"stream.reliable":this.reliableStreamChannel=ae.channel;break;case"stream.latest-reliable":this.latestReliableStreamChannel=ae.channel;break;case"stream.latest-try-once":this.latestTryOnceStreamChannel=ae.channel;break;case"heartbeat":return void(this.heartbeatChannel=ae.channel);default:return void this.dataChannelNotifier(ae.channel)}this.setupChannel(ae.channel)},this.pingUpdateTimeout=setInterval(()=>{const{reliableStreamChannel:ae}=this;ae&&this.sendSystemMessage(ae,{type:"ping"})},this.pingUpdateTimeoutMs),this.streamsInfoUpdateTimeout=setInterval(()=>{const{latestTtlStreamChannel:ae}=this;ae&&this.sendSystemMessage(ae,{type:"streams-info"})},this.streamsInfoUpdateTimeoutMs),this.reassemblyTableCleanupTimeout=setInterval(()=>{const ae=new Date().getTime();this.reassemblyTableLastTimestamp.forEach((he,de,me)=>{ae>de+this.reassemblyTimeoutMs&&this.reassemblyTable.delete(he)})},this.reassemblyTableCleanupMs),this.heartbeatTimeout=setInterval(()=>{const{heartbeatChannel:ae}=this;ae&&ae.readyState==="open"&&ae.send(new Uint8Array([1]))},this.heartbeatTimeoutMs)}handleSignal(z){return W(this,void 0,void 0,function*(){const{peerConnection:Z}=this,{track:te}=this.config.baseConfig,ce=(()=>{try{return JSON.parse(z.getPayload())}catch{return}})();if(!ce)return void A.a.error("Received unparseable signal.");A.a.debug("Handling signal",{description:ce});const{sdp:ae,type:he}=ce;if(!ae||!he)return void A.a.warn("Received non-SDP signal");const{signalingState:de,connectionState:me}=Z;if(de!=="stable"||me!=="connected")if(Z.remoteDescription)A.a.warn(`Received SDP after remote description was set: ${ae}`);else{if(he==="offer"){if(de!=="stable")return void A.a.warn("Received offer SDP when signaling is ongoing.");yield Z.setRemoteDescription(ce);const fe=yield Z.createAnswer();yield Z.setLocalDescription(fe);const ge=z.clone();return te==null||te("Answer Received",ge),ge.setPayload(JSON.stringify(fe)),ge.setReceiverId(z.getSenderId()),ge.setSenderId(z.getReceiverId()),ge}if(he==="answer"){if(de==="stable")return void A.a.warn("Received answer SDP when signaling hasn't started.");yield Z.setRemoteDescription(ce)}}else A.a.warn(`Received SDP when already connected: ${ae}`)})}send(z,Z){const te=this.getChannelFromLabel(Z.channelLabel);te?this.sendOnChannel(te,z):A.a.warn("Send called with unexpected channel label",{channelLabel:Z.channelLabel})}controlRemoteStream(z){this.sendSystemMessage(M(this.reliableStreamChannel),{type:"stream-control",streamControl:z})}isActive(){return new Set(["new","checking","connected","completed"]).has(this.peerConnection.iceConnectionState)||this.isReady()}isReady(){const{reliableStreamChannel:z,latestTtlStreamChannel:Z,latestTryOnceStreamChannel:te,latestReliableStreamChannel:ce}=this;return(z==null?void 0:z.readyState)==="open"&&(Z==null?void 0:Z.readyState)==="open"&&(te==null?void 0:te.readyState)==="open"&&(ce==null?void 0:ce.readyState)==="open"}close(){return W(this,void 0,void 0,function*(){if(this.closeCalled)return;this.closeCalled=!0,this.sessionMetrics&&(yield this.sessionMetrics.uploadMetrics()),this.pingUpdateTimeout&&clearInterval(this.pingUpdateTimeout),this.reassemblyTableCleanupTimeout&&clearInterval(this.reassemblyTableCleanupTimeout),this.streamsInfoUpdateTimeout&&clearInterval(this.streamsInfoUpdateTimeout),this.heartbeatTimeout&&clearInterval(this.heartbeatTimeout);const{peerConnection:z,reliableStreamChannel:Z,latestTtlStreamChannel:te,latestTryOnceStreamChannel:ce,latestReliableStreamChannel:ae}=this;z.close(),Z==null||Z.close(),te==null||te.close(),ce==null||ce.close(),ae==null||ae.close()})}getPing(){return this.pingTimeMs}getLastMessageTimestamp(){return this.lastMessageTimestamp}getSessionCreatedTimestamp(){var z;return(z=this.config.remoteConfig)===null||z===void 0?void 0:z.sessionCreatedTimestamp}setSessionCreatedTimestamp(z){this.config.remoteConfig&&(this.config.remoteConfig.sessionCreatedTimestamp=z)}getSessionId(){var z;return(z=this.config.remoteConfig)===null||z===void 0?void 0:z.sessionId}setSessionId(z){this.config.remoteConfig&&(this.config.remoteConfig.sessionId=z,this.sessionMetrics=new v(z,this))}getRemotePeerId(){return this.config.baseConfig.remotePeerId}getRemoteDeviceId(){var z;return(z=this.config.baseConfig)===null||z===void 0?void 0:z.remoteDeviceId}setRemoteDeviceId(z){this.config.baseConfig.remoteDeviceId=z}getSessionMetricsMessageCounts(){var z;return(z=this.sessionMetrics)===null||z===void 0?void 0:z.counts}getConnectionStatsInfo(){return W(this,void 0,void 0,function*(){const{peerConnection:z}=this;if(!z)return;const Z=yield z.getStats(null),te=[];Z.forEach(me=>{te.push(me)});const ce=te.find(me=>me.type==="transport");if(!ce)return;const ae=te.find(me=>(me.type==="candidate-pair"||me.type==="candidatepair")&&me.id===ce.selectedCandidatePairId);if(!ae)return;const he=te.find(me=>me.id===ae.localCandidateId),de=te.find(me=>me.id===ae.remoteCandidateId);return he&&de&&(he.address=he.address||he.ip,de.address=de.address||de.ip,he.address!==void 0&&de.address!==void 0)?{transport:ce,localCandidate:he,remoteCandidate:de}:void 0})}initializeChannels(z){this.heartbeatChannel=z.createDataChannel("heartbeat",Q),this.heartbeatChannel.binaryType="arraybuffer",this.latestTtlStreamChannel=z.createDataChannel("stream.latest-ttl",B),this.latestTtlStreamChannel.binaryType="arraybuffer",this.reliableStreamChannel=z.createDataChannel("stream.reliable",k),this.reliableStreamChannel.binaryType="arraybuffer",this.latestReliableStreamChannel=z.createDataChannel("stream.latest-reliable",Y),this.latestReliableStreamChannel.binaryType="arraybuffer",this.latestTryOnceStreamChannel=z.createDataChannel("stream.latest-try-once",K),this.latestTryOnceStreamChannel.binaryType="arraybuffer",this.setupChannel(this.latestTtlStreamChannel),this.setupChannel(this.reliableStreamChannel),this.setupChannel(this.latestReliableStreamChannel),this.setupChannel(this.latestTryOnceStreamChannel)}getOffer(){var z,Z,te;return W(this,void 0,void 0,function*(){const{gotOffer:ce}=this,{peerConnection:ae,config:he}=this;if(this.config.baseConfig.isLan)throw new Error('"getOffer" method can only be called with internet connections. LAN connections should call the "getLanOffer" method.');const de=(z=this.config.remoteConfig)===null||z===void 0?void 0:z.sessionId;if(ce)return void A.a.debug("Failed to generate offer because gotOffer was already called.");if(this.gotOffer=!0,j(this.peerConnection))return void A.a.debug("Failed to generate offer because the peer connection was inactive.");const me=he.baseConfig.track;ae.onicecandidate=()=>{this.hasIceCandidate=!0},ae.oniceconnectionstatechange=()=>W(this,void 0,void 0,function*(){const Oe=ae.iceConnectionState;if(Oe==="connected"||Oe==="completed"){const Pe=yield this.getConnectionStatsInfo(),Fe=Pe?function(De){const Le=De.localCandidate.candidateType,xe=De.remoteCandidate.candidateType;return Le==="host"&&xe==="host"?"local":Le==="relay"||xe==="relay"?"TURN":"STUN"}(Pe):void 0;A.a.info(`ICE connection state changed to ${Oe}`,{sessionId:de,connectionStatsInfo:Pe,iceMode:Fe}),me==null||me("ICE connection state change",{iceConnectionState:Oe,sessionId:de,connectionStatsInfo:Pe,iceMode:Fe})}}),yield ae.setLocalDescription(yield ae.createOffer());const fe=new Date().getTime();for(;;){const Oe=new Date().getTime()-fe;if(Oe>this.connectTimeoutMs)return void A.a.debug("Failed to generate offer because ICE gathering timed out.");if(Oe>this.iceGatheringTimeoutMs&&this.hasIceCandidate){A.a.debug("ICE gathering partially completed; proceeding",{iceTransportPolicy:ae.getConfiguration().iceTransportPolicy,waitTime:Oe}),me==null||me("ICE gathering partially completed",{sessionId:de,iceTransportPolicy:ae.getConfiguration().iceTransportPolicy,waitTime:Oe});break}if(ae.iceGatheringState==="complete"){A.a.debug("ICE gathering complete",{iceTransportPolicy:ae.getConfiguration().iceTransportPolicy,waitTime:Oe}),me==null||me("ICE gathering completed",{sessionId:de,iceTransportPolicy:ae.getConfiguration().iceTransportPolicy,waitTime:Oe});break}yield Object(u.a)(.1*l.a.second)}const ge=(Z=this.peerConnection.getConfiguration().iceServers)!==null&&Z!==void 0?Z:[];for(const Oe of ge)Oe.credentialType=void 0;const _e=JSON.stringify(ge),Se=new D.Signal;return Se.setPayload(JSON.stringify(ae.localDescription)),Se.setSenderId(this.config.baseConfig.localPeerId),Se.setReceiverId(this.config.baseConfig.remotePeerId),Se.setIceServers(_e),Se.setIceTransportPolicy((te=this.peerConnection.getConfiguration().iceTransportPolicy)!==null&&te!==void 0?te:"all"),A.a.debug("Sending offer signal with description",{description:Se.getPayload()}),Se})}getLanOffer(){return W(this,void 0,void 0,function*(){const{peerConnection:z,gotOffer:Z}=this;if(!this.config.baseConfig.isLan)throw new Error('"getLanOffer" method can only be used with LAN connections. Internet connections should call the "getOffer" method.');if(Z)return void A.a.debug("Failed to generate offer because gotOffer was already called.");if(this.gotOffer=!0,j(this.peerConnection))return void A.a.debug("Failed to generate offer because the peer connection was inactive.");yield z.setLocalDescription(yield z.createOffer());const te=new Date().getTime();for(;;){if(new Date().getTime()-te>this.iceGatheringTimeoutMs)return void A.a.debug("Failed to generate offer because ICE gathering timed out.");if(z.iceGatheringState==="complete")break;yield Object(u.a)(.1*l.a.second)}const ce=z.localDescription;if(ce)return A.a.debug("Sending LAN offer signal with description",{description:ce}),ce;A.a.error("Failed to generate LAN offer description")})}handleLanAnswer(z){return W(this,void 0,void 0,function*(){const{peerConnection:Z}=this;if(!this.config.baseConfig.isLan)throw new Error('"handleLanAnswer" method can only be used with LAN connections. Internet connections should call the "handleSignal" method.');yield Z.setRemoteDescription(z)})}getChannelFromLabel(z){switch(z){case"stream.latest-ttl":return this.latestTtlStreamChannel;case"stream.reliable":return this.reliableStreamChannel;case"stream.latest-reliable":return this.latestReliableStreamChannel;case"stream.latest-try-once":return this.latestTryOnceStreamChannel}}sendOnChannel(z,Z){let te;try{te=Object(f.encode)(JSON.stringify(Z))}catch(ce){return void A.a.warn("Failed to encode RTC message",{error:ce})}try{z.send(te),this.sessionMetrics&&this.sessionMetrics.incrementLocalSent(Z)}catch(ce){A.a.warn("Failed to send message to channel",{error:ce,channel:z.label})}}channelNotRecognized(z){return z!==this.latestTtlStreamChannel&&z!==this.latestReliableStreamChannel&&z!==this.latestTryOnceStreamChannel&&z!==this.reliableStreamChannel}setupChannel(z){z.onmessage=Z=>{if(this.channelNotRecognized(z))return void A.a.warn("Received message on unrecognized data channel.");let te;try{te=JSON.parse(Object(f.decode)(Z.data))}catch(ce){return void A.a.warn("Received unparseable message on RTC stream data channel",{error:ce,channel:z.label})}te.communicationType==="message-chunk"?this.receiveChannelMessageChunk(z,te):this.receiveChannelMessage(z,te)},z.onerror=Z=>{A.a.warn(`Channel error: ${Z.error}`,{error:Z.error,sessionId:this.getSessionId(),channelLabel:z.label})},z.onopen=()=>{A.a.debug("Channel opened",{sessionId:this.getSessionId(),channelLabel:z.label})},z.onclose=()=>{const Z={bufferedAmount:z.bufferedAmount,sessionId:this.getSessionId(),channelLabel:z.label};this.closeCalled===!1?A.a.debug("Unexpected channel closed",Z):A.a.debug("Channel closed",Z)}}receiveChannelMessage(z,Z){const{config:te}=this,{remotePeerId:ce}=this.config.baseConfig;this.lastMessageTimestamp=new Date().getTime(),Z=function(ae){switch(ae.header.stream.streamType){case"twist":const{twist:he}=ae.payload;if(!he)throw Error("twist not in payload of RTC message with type twist");return{header:ae.header,payload:{twist:{linear:Object.assign({x:0,y:0,z:0},he.linear),angular:Object.assign({x:0,y:0,z:0},he.angular)}}};case"pose":const{pose:de}=ae.payload;if(!de)throw Error("pose not in payload of RTC message with type pose");return{header:ae.header,payload:{pose:{translation:Object.assign({x:0,y:0,z:0},de.translation),rotation:Object.assign({x:0,y:0,z:0,w:0},de.rotation)}}};case"pose-with-covariance":const{poseWithCovariance:me}=ae.payload;if(!me)throw Error("poseWithCovariance not in payload of RTC message with type pose-with-covariance");const fe=new Array(36).fill(0);return me.covariance.forEach((_e,Se)=>{if(Se>=36)throw Error("covariance contains more than 36 elements");fe[Se]=_e}),{header:ae.header,payload:{poseWithCovariance:{pose:{translation:Object.assign({x:0,y:0,z:0},me.pose.translation),rotation:Object.assign({x:0,y:0,z:0,w:0},me.pose.rotation)},covariance:fe}}};case"point":const{point:ge}=ae.payload;if(!ge)throw Error("point not in payload of RTC message with type point");return{header:ae.header,payload:{point:Object.assign({x:0,y:0,z:0},ge)}};default:return ae}}(Z),this.sessionMetrics&&this.sessionMetrics.incrementLocalReceived(Z),this.handleSystemMessage(z,Z)||(z===this.latestTryOnceStreamChannel||z===this.latestTtlStreamChannel||z===this.latestReliableStreamChannel)&&!this.isLatestMessage(Z)||te.baseConfig.receive(ce,Z)}receiveChannelMessageChunk(z,Z){const te=this.reassemblyTable.get(Z.id)||[];if(te.push(Z),te.length===Z.total){const ce=function(ae){const he=ae.sort((de,me)=>de.seq<me.seq?-1:1).map(de=>de.part).reduce((de,me)=>de+me);try{return JSON.parse(he)}catch{return void A.a.warn("Could not reassemble RTC message chunks")}}(te);return ce&&this.receiveChannelMessage(z,ce),void this.reassemblyTable.delete(Z.id)}this.reassemblyTable.set(Z.id,te),this.reassemblyTableLastTimestamp.set(Z.id,new Date().getTime())}handleSystemMessage(z,Z){var te,ce;const{config:ae}=this,{baseConfig:he}=ae,{remotePeerId:de}=he;switch(Z.header.stream.streamType){case"ping":return this.sendSystemMessage(z,{type:"pong",timestamp:M(Z.payload.ping)}),!0;case"pong":const me=new Date().getTime()-M(Z.payload.pong);return this.pingTimeMs=me,x.aggregate("rtc-ping-time",me),!0;case"streams-info":const{sessionMetrics:fe}=this,ge=(te=Z.payload.streamsInfo)===null||te===void 0?void 0:te.timestamp;return!!ge&&(fe==null||fe.updateRemoteMessagesCounts(Z),(ce=he.onStreamsInfoUpdate)===null||ce===void 0||ce.call(he,de,ge),!0);case"stream-control":return!0;default:return!1}}sendSystemMessage(z,Z){var te;const{localUserId:ce,localPeerId:ae}=this.config.baseConfig;if(z.readyState!=="open")return;const he={entityId:ce!=null?ce:ae,streamName:`$.${Z.type}`,streamType:Z.type};let de;switch(Z.type){case"ping":de={ping:new Date().getTime()};break;case"pong":de={pong:Z.timestamp};break;case"stream-control":de={streamControl:Z.streamControl};break;case"streams-info":de={streamsInfo:(te=this.sessionMetrics)===null||te===void 0?void 0:te.getLocalStreamsInfo(new Date().getTime())}}this.sendOnChannel(z,function(me,fe){return{header:{stream:me,created:Date.now(),frameId:""},payload:fe}}(he,de))}isLatestMessage(z){const Z=G(z.header.stream),te=(this.streamLatestTimestamp.get(Z)||0)<=z.header.created;return te&&this.streamLatestTimestamp.set(Z,z.header.created),te}}function J(oe){var z,Z;return{userId:(z=oe.getUserId())===null||z===void 0?void 0:z.getValue(),deviceId:(Z=oe.getDeviceId())===null||Z===void 0?void 0:Z.getValue(),organizationId:oe.getOrganizationId(),id:oe.getPeerId(),capabilities:[],capabilitySet:{}}}var re=function(oe,z,Z,te){return new(Z||(Z=Promise))(function(ce,ae){function he(fe){try{me(te.next(fe))}catch(ge){ae(ge)}}function de(fe){try{me(te.throw(fe))}catch(ge){ae(ge)}}function me(fe){var ge;fe.done?ce(fe.value):(ge=fe.value,ge instanceof Z?ge:new Z(function(_e){_e(ge)})).then(he,de)}me((te=te.apply(oe,z||[])).next())})};class se{constructor(z){this.config=z,this.grpcCallDeadline=5*l.a.second,this.refreshIntervalDelayMs=2*l.a.second,this.iceServersTtl=30*l.a.minute,this.connections=[],this.localConnections=[],this.isConnectionInitiator=new Map,this.isOutgoingConnection=new Map,this.peerDataChannelListeners=[];const{refreshIntervalDelayMs:Z}=this;this.refreshInterval=N({func:()=>re(this,void 0,void 0,function*(){try{yield this.update()}catch(te){A.a.warn("RTC refresh failed",{error:te})}}),delay:Z,immediate:!0})}send(z,Z,te){const ce=this.getActiveConnection(z);ce?ce.isReady()?ce.send(Z,te):A.a.warn("Send called with unready connection."):A.a.warn("Send called with no connection.")}controlRemoteStream(z,Z){const te=this.getActiveConnection(z);te?te.isReady()?te.controlRemoteStream(Z):A.a.warn("controlRemoteStream called with unready connection."):A.a.warn("controlRemoteStream called with no connection.")}getLocalPeer(){return re(this,void 0,void 0,function*(){for(;!this.localPeer;)yield Object(u.a)(.1*l.a.second);return J(this.localPeer)})}connect(z,Z){var te,ce,ae;return re(this,void 0,void 0,function*(){if(this.config.lanOnlyMode===!0)throw new Error("connect method called in local only mode.");const{track:he,signalingClient:de}=this.config,{localPeer:me,receiveSignalStream:fe,iceServers:ge}=this;if(!me||!fe||!ge)return void A.a.warn("Connect called prior to local peer, receiveSignalStream, and ICE servers ready");if(this.getActiveConnection(z))return void A.a.warn("Connect called for peer with existing connection.");if(this.isOutgoingConnection.get(z))return void A.a.warn("Connect called for peer with an existing outgoing connection offer.");this.isOutgoingConnection.set(z,!0);const _e=new ee(yield this.createRTCPeerConnection(ge,Z),{baseConfig:{isOffer:!0,isLan:!1,receive:(Le,xe)=>this.config.receive(Le,xe),onStreamsInfoUpdate:this.config.onStreamsInfoUpdate?(Le,xe)=>{var Ne,Ue;return(Ue=(Ne=this.config).onStreamsInfoUpdate)===null||Ue===void 0?void 0:Ue.call(Ne,Le,xe)}:void 0,track:this.config.lanOnlyMode?void 0:this.config.track,localUserId:(te=me.getUserId())===null||te===void 0?void 0:te.getValue(),localPeerId:me.getPeerId(),remotePeerId:z},remoteConfig:{}},Le=>this.onCustomDataChannel(z,Le)),Se=yield _e.getOffer();if(!Se)return A.a.error("Failed to generate offer."),void this.isOutgoingConnection.delete(z);A.a.debug("Sending offer."),he==null||he("Sending offer",Se);const Oe=new D.SendSignalRequest;Oe.setSignal(Se);const Pe=yield(()=>re(this,void 0,void 0,function*(){try{return yield de.sendSignal(Oe,yield this.getMetadata({}))}catch(Le){A.a.warn("Error when sending signal",{error:Le})}}))();if(!this.isOutgoingConnection.get(z))return void A.a.debug("No offer set after receiving offer signal response.");A.a.debug("Offer sent.");const Fe=(ce=Pe==null?void 0:Pe.getSessionId())===null||ce===void 0?void 0:ce.getValue(),De=(ae=Pe==null?void 0:Pe.getSessionCreatedTimestamp())===null||ae===void 0?void 0:ae.getValue();return Fe&&De?(_e.setSessionId(Fe),_e.setSessionCreatedTimestamp(De),this.isOutgoingConnection.delete(z),this.connections.push(_e),this.isConnectionInitiator.set(_e,!0),this.setupHandlers(_e),Fe):(A.a.warn("No session ID or no session created timestamp on send signal response."),void this.isOutgoingConnection.delete(z))})}connectLan(z){var Z,te;return re(this,void 0,void 0,function*(){const ce=new b(z),ae=new ee(yield this.createRTCPeerConnection([]),{baseConfig:{isOffer:!0,isLan:!0,receive:(fe,ge)=>this.config.receive(fe,ge),onStreamsInfoUpdate:this.config.onStreamsInfoUpdate?(fe,ge)=>{var _e,Se;return(Se=(_e=this.config).onStreamsInfoUpdate)===null||Se===void 0?void 0:Se.call(_e,fe,ge)}:void 0,track:this.config.lanOnlyMode?void 0:this.config.track,localUserId:(te=(Z=this.localPeer)===null||Z===void 0?void 0:Z.getUserId())===null||te===void 0?void 0:te.getValue(),localPeerId:"lan_client",remotePeerId:z}},fe=>this.onCustomDataChannel(z,fe)),he=yield ae.getLanOffer();if(!he)return A.a.warn("Could not generate LAN offer"),!1;const de=yield ce.postLanRtcOffer({offer:JSON.stringify(he)}),me=new RTCSessionDescription(JSON.parse(de.answer));return yield ae.handleLanAnswer(me),this.localConnections.push(ae),Object(T.v4)()})}getConnections(){return[...this.connections,...this.localConnections]}createCustomDataChannel(z,Z,te,ce,ae){const he=this.getActiveConnection(z);if(he&&this.isConnectionInitiator.has(he)){const me=he.peerConnection.createDataChannel("custom."+Z,te);return ce&&(me.binaryType="arraybuffer"),ae(z,me),()=>{}}const de=(me,fe)=>{z===me&&fe.label==="custom."+Z&&ae(z,fe)};return this.peerDataChannelListeners.push(de),()=>{this.peerDataChannelListeners=this.peerDataChannelListeners.filter(me=>me!==de)}}onCustomDataChannel(z,Z){this.peerDataChannelListeners.forEach(te=>te(z,Z))}getConnectionStatus(z){if(this.isOutgoingConnection.get(z))return"connecting";const Z=this.getActiveConnection(z);return Z?Z.isReady()?"connected":"connecting":"disconnected"}getConnectionStatsInfo(z){return re(this,void 0,void 0,function*(){const Z=this.getActiveConnection(z);if(Z)return yield Z.getConnectionStatsInfo()})}disconnect(z){return re(this,void 0,void 0,function*(){const Z=this.getActiveConnection(z);Z&&(yield Z.close())})}getPeers(){return re(this,void 0,void 0,function*(){if(this.config.lanOnlyMode)throw new Error("getPeers method cannot be used in local-only mode.");const{signalingClient:z}=this.config,Z=yield(()=>re(this,void 0,void 0,function*(){try{return yield z.getPeers(new D.GetPeersRequest,yield this.getMetadata({}))}catch(ae){A.a.warn("Error when getting peers",{error:ae})}}))();if(!Z)return[];const te=Z.getPeersList();if(!te)return[];const ce=ae=>{var he,de;return(de=(he=ae.getPeerCreatedTimestamp())===null||he===void 0?void 0:he.getValue())!==null&&de!==void 0?de:0};return te.sort((ae,he)=>ce(he)-ce(ae)).map(ae=>J(ae))})}getPing(z){const Z=this.getActiveConnection(z);if(Z)return Z.getPing();A.a.warn("Attempted to get ping time from inactive peer.")}getLastMessageTimestamp(z){const Z=this.getActiveConnection(z);if(Z)return Z.getLastMessageTimestamp();A.a.warn("Attempted to get last message time from inactive peer.")}getSessionMetricsMessageCounts(z){const Z=this.getActiveConnection(z);if(Z)return Z.getSessionMetricsMessageCounts();A.a.warn("Attempted to get session metrics counts from inactive peer.")}isReady(){if(this.config.lanOnlyMode)return!0;const{localPeer:z,receiveSignalStream:Z,iceServers:te}=this;return!!(z&&Z&&te)}shutdown(){return re(this,void 0,void 0,function*(){A.a.info("Shutdown called on RTC client"),yield this.refreshInterval.stop(),this.receiveSignalStream&&this.receiveSignalStream.cancel();const z=this.connections;this.connections=[],yield this.closeConnections(z);const{localPeer:Z}=this;if(!Z||this.config.lanOnlyMode)return;const{signalingClient:te}=this.config;yield(()=>re(this,void 0,void 0,function*(){try{const ce=new D.DeletePeerRequest;ce.setPeerId(Z.getPeerId()),yield te.deletePeer(ce,yield this.getMetadata({}))}catch(ce){return void A.a.warn("Error deleting local peer",{error:ce})}}))()})}createPeer(){return re(this,void 0,void 0,function*(){if(this.config.lanOnlyMode)throw new Error("createPeer method cannot be used in local-only mode.");const{signalingClient:z}=this.config,Z=yield(()=>re(this,void 0,void 0,function*(){try{return yield z.createPeer(new D.CreatePeerRequest,yield this.getMetadata({}))}catch(ce){throw new Error(`Was not able to create peer: ${ce}`)}}))(),te=Z==null?void 0:Z.getPeer();if(!te)throw new Error("Response did not provide peer.");return this.localPeer=te})}createReceiveSignalStream(){return re(this,void 0,void 0,function*(){if(this.config.lanOnlyMode)throw new Error("createReceiveSignalStream method cannot be used in local-only mode.");const{signalingClient:z}=this.config,{localPeer:Z,iceServers:te}=this;if(!Z||!te)return;const{receiveSignalStream:ce}=this;ce&&ce.cancel();const ae=new D.ReceiveSignalStreamRequest;ae.setPeerId(Z.getPeerId());const he=yield(()=>re(this,void 0,void 0,function*(){try{return z.receiveSignalStream(ae,yield this.getMetadata({hasDeadline:!1}))}catch(de){throw new Error(`Unable to create receive signal stream: ${de}`)}}))();if(!he)throw new Error("Response did not provide stream.");return he.on("data",de=>re(this,void 0,void 0,function*(){var me,fe,ge,_e;const Se=de.getSignal(),Oe=(me=Se==null?void 0:Se.getSessionId())===null||me===void 0?void 0:me.getValue(),Pe=Se==null?void 0:Se.getSenderId(),Fe=Se==null?void 0:Se.getReceiverId(),De=(fe=Se==null?void 0:Se.getSessionCreatedTimestamp())===null||fe===void 0?void 0:fe.getValue();if(!(Se&&Oe&&Pe&&Fe&&De))return void A.a.warn("Received signal with missing information.");const Le=this.getActiveConnection(Pe);if(Le)if(Le.getSessionId()!==Oe){if(A.a.debug("Received signal: different session for a peer we're already connected to."),(Le.getSessionCreatedTimestamp()||0)>De)return;const xe=new ee(yield this.createRTCPeerConnection(te),{baseConfig:{isOffer:!1,isLan:!1,receive:(Ne,Ue)=>this.config.receive(Ne,Ue),onStreamsInfoUpdate:this.config.onStreamsInfoUpdate?(Ne,Ue)=>{var We,ze;return(ze=(We=this.config).onStreamsInfoUpdate)===null||ze===void 0?void 0:ze.call(We,Ne,Ue)}:void 0,track:this.config.lanOnlyMode?void 0:this.config.track,localPeerId:Z.getPeerId(),localUserId:(_e=Z.getUserId())===null||_e===void 0?void 0:_e.getValue(),remotePeerId:Pe},remoteConfig:{sessionId:Oe,sessionCreatedTimestamp:De}},Ne=>this.onCustomDataChannel(Pe,Ne));yield xe.handleSignal(Se),this.connections.push(xe)}else A.a.debug("Received signal: for an existing connection."),yield Le.handleSignal(Se);else{A.a.debug("Received signal: new connection.");const xe=new ee(yield this.createRTCPeerConnection(te),{baseConfig:{isOffer:!1,isLan:!1,receive:(Ne,Ue)=>this.config.receive(Ne,Ue),onStreamsInfoUpdate:this.config.onStreamsInfoUpdate?(Ne,Ue)=>{var We,ze;return(ze=(We=this.config).onStreamsInfoUpdate)===null||ze===void 0?void 0:ze.call(We,Ne,Ue)}:void 0,track:this.config.lanOnlyMode?void 0:this.config.track,localPeerId:Z.getPeerId(),localUserId:(ge=Z.getUserId())===null||ge===void 0?void 0:ge.getValue(),remotePeerId:Pe},remoteConfig:{sessionId:Oe,sessionCreatedTimestamp:De}},Ne=>this.onCustomDataChannel(Pe,Ne));yield xe.handleSignal(Se),this.connections.push(xe)}})),he.on("end",()=>{he.cancel(),this.receiveSignalStream=void 0}),he.on("error",de=>{switch(de.code){case L.StatusCode.CANCELLED:case L.StatusCode.UNAVAILABLE:case L.StatusCode.UNKNOWN:A.a.debug("Receive signal stream error",{error:de});break;case L.StatusCode.UNAUTHENTICATED:A.a.warn("Receive signal stream error",{error:de});break;default:A.a.error("Receive signal stream error",{error:de})}he.cancel(),this.receiveSignalStream=void 0}),this.receiveSignalStream=he})}createRTCPeerConnection(z,Z){var te;return re(this,void 0,void 0,function*(){const ce=Z==null?void 0:Z.rtcIceTransportPolicy,ae=(te=this.config.alternateRTCPeerConnection)!==null&&te!==void 0?te:window.RTCPeerConnection;if(!ae)throw new Error("RTCPeerConnection class not found. WebRTC must be enabled.");return new ae(Object.assign({iceServers:z,iceTransportPolicy:ce},Z))})}closeConnections(z){return re(this,void 0,void 0,function*(){const Z=yield F(z.map(te=>re(this,void 0,void 0,function*(){yield te.close()})));for(const te of Z)A.a.warn("Request to close session failed",{error:te})})}getActiveConnection(z){return this.getConnections().find(Z=>Z.getRemotePeerId()===z&&Z.isActive())}update(){var z;return re(this,void 0,void 0,function*(){if(this.localConnections=this.localConnections.filter(de=>de.isActive()),this.config.lanOnlyMode)return;const{signalingClient:Z}=this.config;if(!this.localPeer||!this.receiveSignalStream||!this.iceServers)return this.localPeer||(yield this.createPeer()),this.iceServers||(yield this.updateIceServers()),void(this.receiveSignalStream||(yield this.createReceiveSignalStream()));yield this.closeConnections(this.connections.filter(de=>!de.isActive())),this.connections=this.connections.filter(de=>de.isActive());const{localPeer:te}=this,ce=this.connections.filter(de=>de.getSessionId).map(de=>M(de.getSessionId()));te.setSessionIdsList(ce);const ae=new D.RefreshPeerRequest;ae.setPeer(te);try{yield Z.refreshPeer(ae,yield this.getMetadata({}))}catch(de){de.code===L.StatusCode.NOT_FOUND?(A.a.warn("Peer expired, creating new peer",{peerId:te.getPeerId()}),yield this.reset()):A.a.warn("Error calling RefreshPeer",{error:de})}const he=yield this.getPeers();for(const de of this.connections)de.setRemoteDeviceId((z=he.find(me=>me.id===de.getRemotePeerId()))===null||z===void 0?void 0:z.deviceId)})}reset(){return re(this,void 0,void 0,function*(){yield this.closeConnections(this.connections),this.connections=[],this.isOutgoingConnection=new Map,yield this.createPeer(),yield this.createReceiveSignalStream()})}updateIceServers(){return re(this,void 0,void 0,function*(){if(this.config.lanOnlyMode)return;const{iceServersLastUpdate:z,iceServersTtl:Z}=this,te=new Date().getTime();if(!z||te-z>Z)try{const ce=(yield this.config.signalingClient.getIceServers(new D.GetIceServersRequest,yield this.getMetadata({}))).getIceServers();this.iceServers=JSON.parse(ce),this.iceServersLastUpdate=te}catch(ce){A.a.warn("Error in updateIceServers",{error:ce})}})}setupHandlers(z){const{peerConnection:Z}=z,te=z.getSessionCreatedTimestamp();Z.onconnectionstatechange=()=>re(this,void 0,void 0,function*(){const ce=Z.connectionState;if(te)switch(ce){case"connected":x.aggregate("rtc-connect-time",new Date().getTime()-te);break;case"failed":x.increment("rtc-connect-failed")}})}getMetadata(z){return re(this,void 0,void 0,function*(){if(this.config.lanOnlyMode)throw new Error("getMetadata method cannot be called in local-only mode");const{getToken:Z}=this.config,{grpcCallDeadline:te}=this,{hasDeadline:ce}=z,ae=ce===!1?void 0:new Date().getTime()+te;return{authorization:yield Z(),deadline:ae}})}}},,function(e,t,r){r.r(t),r.d(t,"LogClient",function(){return g});var n=r(26),i=function(s,o,l,u){return new(l||(l=Promise))(function(m,R){function y(w){try{c(u.next(w))}catch(E){R(E)}}function S(w){try{c(u.throw(w))}catch(E){R(E)}}function c(w){var E;w.done?m(w.value):(E=w.value,E instanceof l?E:new l(function(P){P(E)})).then(y,S)}c((u=u.apply(s,o||[])).next())})};class g extends n.a{log(o){return i(this,void 0,void 0,function*(){yield this.fetch("logs",{method:"POST",body:JSON.stringify({logs:o}),allowUnsafeRetries:!0})})}}}])})})(dist);let FORMANT_API_URL="https://api.formant.io";typeof window!="undefined"&&(FORMANT_API_URL=window.FORMANT_API_URL||FORMANT_API_URL);function delay(e){return new Promise(t=>setTimeout(t,e))}function defined(e,t){if(e!==void 0)return e;throw new Error(t||"Value is undefined")}class App{static sendAppMessage(t){window.parent.postMessage(t,"*")}static getCurrentModuleContext(){let t=new URLSearchParams("");return typeof window!="undefined"&&(t=new URLSearchParams(window.location.search)),t.get("module")}static isModule(){return this.getCurrentModuleContext()!==null}static goToTime(t){this.sendAppMessage({type:"go_to_time",time:t.getTime()})}static showMessage(t){this.sendAppMessage({type:"show_message",message:t})}static requestModuleData(){const t=this.getCurrentModuleContext();if(!t)throw new Error("No module context");this.sendAppMessage({type:"request_module_data",module:t})}static setModuleDateTimeRange(t,r){const n=this.getCurrentModuleContext();if(!n)throw new Error("No module context");this.sendAppMessage({type:"set_module_data_time_range",module:n,before:t,after:r||0})}static refreshAuthToken(){const t=this.getCurrentModuleContext();if(!t)throw new Error("No module context");this.sendAppMessage({type:"refresh_auth_token",module:t})}static setupModuleMenus(t){const r=this.getCurrentModuleContext();if(!r)throw new Error("No module context");this.sendAppMessage({type:"setup_module_menus",module:r,menus:t})}static addMenuListener(t){window.addEventListener("message",r=>{const n=r.data;n.type==="module_menu_item_clicked"&&t(n.menu)})}static addAccessTokenRefreshListener(t){window.addEventListener("message",r=>{const n=r.data;n.type==="auth_token"&&t(n.token)})}static addModuleDataListener(t){window.addEventListener("message",r=>{const n=r.data;n.type==="module_data"&&t({streams:n.streams,time:n.time,queryRange:n.queryRange})})}}const Te=class{static async login(t,r){try{const n=await fetch(`${FORMANT_API_URL}/v1/admin/auth/login`,{method:"POST",body:JSON.stringify({email:t,password:r}),headers:{"Content-Type":"application/json"}}),i=await n.json();if(n.status!==200)throw new Error(i.message);return await Te.loginWithToken(i.authentication.accessToken,i.authentication.refreshToken),i.authentication}catch(n){return Te.waitingForAuth.forEach(i=>i(!1)),Te.waitingForAuth=[],Promise.reject(n)}}static async loginWithToken(t,r){const n=JSON.parse(atob(t.split(".")[1]));try{let i=n.sub;n["formant:claims"]&&n["formant:claims"].userId&&(i=n["formant:claims"].userId);const g=await fetch(`${FORMANT_API_URL}/v1/admin/users/${i}`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Bearer "+t}}),s=await g.json();if(g.status!==200)throw new Error(s.message);Te.currentUser=s,Te.token=t,Te.waitingForAuth.forEach(o=>o(!0))}catch(i){console.error(i),Te.waitingForAuth.forEach(g=>g(!1))}Te.waitingForAuth=[],r&&(Te.refreshToken=r,setInterval(async()=>{if(Te.refreshToken){const g=await(await fetch(`${FORMANT_API_URL}/v1/admin/auth/refresh`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({refreshToken:Te.refreshToken})})).json();Te.token=g.authentication.accessToken}},1e3*60*60))}static isAuthenticated(){return Te.token!==void 0}static getCurrentUser(){return Te.currentUser}static async waitTilAuthenticated(){return Te.token!==void 0?!0:new Promise(t=>{Te.waitingForAuth.push(function(r){t(r)})})}static async listenForRefresh(){App.addAccessTokenRefreshListener(t=>{this.loginWithToken(t)}),setInterval(async()=>{App.refreshAuthToken()},1e3*60*60)}};let Authentication=Te;Me(Authentication,"token"),Me(Authentication,"refreshToken"),Me(Authentication,"currentUser"),Me(Authentication,"defaultDeviceId"),Me(Authentication,"waitingForAuth",[]);class DataChannel{constructor(t){Me(this,"ready",!1);Me(this,"listeners",[]);Me(this,"binaryListeners",[]);Me(this,"error");Me(this,"decoder",new TextDecoder);this.dataChannel=t,this.dataChannel.binaryType="arraybuffer",this.dataChannel.onopen=()=>{this.ready=!0},this.dataChannel.onclose=()=>{this.ready=!1},this.dataChannel.onerror=r=>{console.error(r),this.error="An error occurred in DataChannel"},this.dataChannel.onmessage=r=>{this.listeners.forEach(n=>{const i=new Uint8Array(r.data),g=this.decoder.decode(i);n(g)}),this.binaryListeners.forEach(n=>{n(new Uint8Array(r.data))})}}async waitTilReady(){return this.ready?!0:new Promise((r,n)=>{let i=window.setInterval(()=>{this.ready&&(window.clearInterval(i),r(!0)),this.error&&n(this.error)},10)})}send(t){if(!this.ready)throw new Error("Connection has been closed");this.dataChannel.send(t)}sendBinary(t){if(!this.ready)throw new Error("Connection has been closed");this.dataChannel.send(t)}addListener(t){this.listeners.push(t)}removeListener(t){const r=this.listeners.indexOf(t);if(r===-1)throw new Error("Could not find data channel listener to remove");if(this.error)throw new Error(this.error);this.listeners.splice(r,1)}addBinaryListener(t){this.binaryListeners.push(t)}removeBinaryListener(t){const r=this.binaryListeners.indexOf(t);if(r===-1)throw new Error("Could not find data channel listener to remove");if(this.error)throw new Error(this.error);this.binaryListeners.splice(r,1)}}class CaptureStream{constructor(t){Me(this,"token");this.captureSession=t}async ingestJSON(t){if(!this.token){const n=await(await fetch(`${FORMANT_API_URL}/v1/admin/capture-sessions/${this.captureSession.code}/authenticate`,{method:"POST"})).json();this.token=n.token}await fetch(`${FORMANT_API_URL}/v1/ingest`,{method:"POST",body:JSON.stringify({deviceId:this.captureSession.deviceId,name:this.captureSession.streamName,type:"json",points:[[Date.now(),JSON.stringify(t)]]}),headers:{"Content-Type":"application/json",Authorization:"Bearer "+this.token}})}}class Manipulator{constructor(t,r){this.device=t,this.config=r}async synchronize(){this.device.addRealtimeListener((t,r)=>{console.log(r)}),this.device.startListeningToRealtimeDataStream(this.config.currentJointStateStream)}}class RequestDataChannel{constructor(t,r,n){Me(this,"channel");Me(this,"requestIdToResponseMap",new Map);this.device=t,this.channel_name=r,this.timeout=n}}class BinaryRequestDataChannel extends RequestDataChannel{constructor(){super(...arguments);Me(this,"RESPONSE_SUCCESS_BYTE",0);Me(this,"decoder",new TextDecoder)}generateBinaryId(){const t=new Uint8Array(16);for(let r=0;r<t.length;r++)t[r]=Math.floor(Math.random()*256);return t}async initialize(){this.channel=await this.device.createCustomDataChannel(this.channel_name),this.channel.addBinaryListener(t=>{const n=t.slice(0,16).toString();if(n.length===0)throw new Error("Invalid response");const i=t.slice(16);if(i.length===0)throw new Error("Invalid response");this.requestIdToResponseMap.has(n)&&this.requestIdToResponseMap.set(n,i)})}async request(t){if(this.channel||await this.initialize(),!this.channel)throw new Error("Failed to create channel");const{channel:r,requestIdToResponseMap:n,timeout:i}=this;await r.waitTilReady();const g=this.generateBinaryId(),s=g.toString();n.set(s,!0),r.sendBinary(new Uint8Array([...g,...t]));const o=new Date().getTime();for(;new Date().getTime()<o+i;)if(await delay(50),n.has(s)){const l=n.get(s);if(l!==!0){n.delete(s);const u=l[0]===this.RESPONSE_SUCCESS_BYTE,m=l.slice(1);if(u)return m;throw{name:"AdapterError",message:this.decoder.decode(m)}}}throw n.delete(s),{name:"TimeoutError",message:`Request timed out after ${i/1e3} seconds`}}}class TextRequestDataChannel extends RequestDataChannel{generateTextId(){return Math.random().toString(36).substring(2)+"-"+Math.random().toString(36).substring(2)}async initialize(){this.channel=await this.device.createCustomDataChannel(this.channel_name),this.channel.addListener(t=>{const r=JSON.parse(t),{id:n,data:i,error:g}=r;if(!n)throw new Error("Invalid response");if(!i&&!g)throw new Error("Invalid response");this.requestIdToResponseMap.has(n)&&this.requestIdToResponseMap.set(n,r)})}async request(t){if(this.channel||await this.initialize(),!this.channel)throw new Error("Failed to create channel");const{channel:r,requestIdToResponseMap:n,timeout:i}=this;await r.waitTilReady();const g=this.generateTextId();n.set(g,!0),r.send(JSON.stringify({id:g,data:t}));const s=new Date().getTime();for(;new Date().getTime()<s+i;)if(await delay(50),n.has(g)){const o=n.get(g);if(o!==!0){n.delete(g);const{data:l,error:u}=o;if(l)return l;if(u)throw{name:"AdapterError",message:u}}}throw n.delete(g),{name:"TimeoutError",message:`Request timed out after ${i/1e3} seconds`}}}class Device{constructor(t,r,n){Me(this,"rtcClient");Me(this,"realtimeListeners",[]);Me(this,"handleMessage",(t,r)=>{this.realtimeListeners.forEach(n=>n(t,r))});this.id=t,this.name=r,this.organizationId=n}async getLatestTelemetry(){return(await(await fetch(`${FORMANT_API_URL}/v1/queries/stream-current-value`,{method:"POST",body:JSON.stringify({deviceIds:[this.id]}),headers:{"Content-Type":"application/json",Authorization:"Bearer "+Authentication.token}})).json()).items}async getConfiguration(){let t=await fetch(`${FORMANT_API_URL}/v1/admin/devices/${this.id}`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Bearer "+Authentication.token}});const r=await t.json();if(!r.state.reportedConfiguration)throw new Error("Device has no configuration, has it ever been turned on?");const n=r.state.reportedConfiguration.version;return t=await fetch(`${FORMANT_API_URL}/v1/admin/devices/${this.id}/configurations/${n}`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Bearer "+Authentication.token}}),(await t.json()).document}async getFileUrl(t){return(await(await fetch(`${FORMANT_API_URL}/v1/admin/files/query`,{method:"POST",body:JSON.stringify({fileId:[t]}),headers:{"Content-Type":"application/json",Authorization:"Bearer "+Authentication.token}})).json()).fileUrls}async startRealtimeConnection(){if(this.rtcClient)throw new Error(`Already created realtime connection to device ${this.id}`);{const t=new dist.exports.RtcClient({signalingClient:new dist.exports.SignalingPromiseClient(FORMANT_API_URL,null,null),getToken:async()=>defined(Authentication.token,"Realtime when user isn't authorized"),receive:this.handleMessage});for(;!t.isReady();)await delay(100);const n=(await t.getPeers()).find(g=>g.deviceId===this.id);if(!n)throw new Error("Cannot find peer, is the robot offline?");const i=n.id;for(await t.connect(i);t.getConnectionStatus(i)!=="connected";)await delay(100);this.rtcClient=t}}addRealtimeListener(t){this.realtimeListeners.push(t)}removeRealtimeListener(t){const r=this.realtimeListeners.indexOf(t);if(r===-1)throw new Error("Could not find realtime listener to remove");this.realtimeListeners.splice(r,1)}async getRealtimeVideoStreams(){var n,i,g;const t=await this.getConfiguration(),r=[];for(const s of(n=t.teleop.hardwareStreams)!=null?n:[])s.rtcStreamType==="h264-video-frame"&&r.push({name:s.name});for(const s of(i=t.teleop.rosStreams)!=null?i:[])s.topicType=="formant/H264VideoFrame"&&r.push({name:s.topicName});for(const s of(g=t.teleop.customStreams)!=null?g:[])s.rtcStreamType==="h264-video-frame"&&r.push({name:s.name});return r}async getRealtimeManipulators(){var n;const t=await this.getConfiguration(),r=[];for(const i of(n=t.teleop.rosStreams)!=null?n:[])i.topicType=="sensor_msgs/JointState"&&r.push(new Manipulator(this,{currentJointStateStream:{name:i.topicName},plannedJointStateStream:i.plannedTopic?{name:i.plannedTopic}:void 0,planValidStream:i.planValidTopic?{name:i.planValidTopic}:void 0,endEffectorStream:i.endEffectorTopic?{name:i.endEffectorTopic}:void 0,endEffectorLinkName:i.endEffectorLinkName,baseReferenceFrame:i.baseReferenceFrame,localFrame:i.localFrame}));return r}async startListeningToRealtimeVideo(t){const r=defined(this.rtcClient,"Realtime connection has not been started"),n=await this.getRemotePeer();r.controlRemoteStream(defined(n).id,{streamName:t.name,enable:!0,pipeline:"rtc"})}async stopListeningToRealtimeVideo(t){const r=defined(this.rtcClient,"Realtime connection has not been started"),n=await this.getRemotePeer();r.controlRemoteStream(defined(n).id,{streamName:t.name,enable:!1,pipeline:"rtc"})}async startListeningToRealtimeDataStream(t){const r=defined(this.rtcClient,"Realtime connection has not been started"),n=await this.getRemotePeer();r.controlRemoteStream(defined(n).id,{streamName:t.name,enable:!0,pipeline:"rtc"})}async stopListeningToRealtimeDataStream(t){const r=defined(this.rtcClient,"Realtime connection has not been started"),n=await this.getRemotePeer();r.controlRemoteStream(defined(n).id,{streamName:t.name,enable:!1,pipeline:"rtc"})}async enableRealtimeTelemetryPriorityIngestion(t){const r=defined(this.rtcClient,"Realtime connection has not been started"),n=await this.getRemotePeer();r.controlRemoteStream(defined(n).id,{streamName:t,enablePriorityUpload:!0,pipeline:"telemetry"})}async disableRealtimeTelemetryPriorityIngestion(t){const r=defined(this.rtcClient,"Realtime connection has not been started"),n=await this.getRemotePeer();r.controlRemoteStream(defined(n).id,{streamName:t,enablePriorityUpload:!1,pipeline:"telemetry"})}async getRemotePeer(){const r=(await defined(this.rtcClient,"Realtime connection has not been started").getPeers()).find(n=>n.deviceId===this.id);return defined(r,"Could not find remote peer for device "+this.id)}async stopRealtimeConnection(){if(this.rtcClient)await this.rtcClient.disconnect(this.id);else throw new Error(`Realtime connection hasn't been started for ${this.id}`)}async getAvailableCommands(){return(await(await fetch(`${FORMANT_API_URL}/v1/admin/command-templates/`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Bearer "+Authentication.token}})).json()).items.map(n=>({name:n.name,id:n.id,command:n.command,description:n.description,parameterEnabled:n.parameterEnabled,parameterValue:n.parameterValue,parameterMeta:n.parameterMeta}))}async sendCommand(t,r,n,i){var R;const s=(await this.getAvailableCommands()).find(y=>y.name===t);if(!s)throw new Error(`Could not find command with name "${t}"`);let o;if(r===void 0)if(s.parameterEnabled&&s.parameterValue)o=s.parameterValue;else throw new Error("Command has no default parameter value, you must provide one");else o=r;let l={value:o,scrubberTime:(n||new Date).toISOString(),meta:st(st({},s.parameterMeta),i)};return(await(await fetch(`${FORMANT_API_URL}/v1/admin/commands`,{method:"POST",body:JSON.stringify({commandTemplateId:s.id,organizationId:this.organizationId,deviceId:this.id,command:s.command,parameter:l,userId:(R=Authentication.currentUser)==null?void 0:R.id}),headers:{"Content-Type":"application/json",Authorization:"Bearer "+Authentication.token}})).json()).fileUrls}async createCustomDataChannel(t,r){const n=defined(this.rtcClient,"Realtime connection has not been started"),i=await this.getRemotePeer();return new Promise(s=>{n.createCustomDataChannel(defined(i).id,t,st({ordered:!0},r),!1,(o,l)=>{const u=new DataChannel(l);s(u)})})}createCustomRequestDataChannel(t,r=3e3){return new TextRequestDataChannel(this,t,r)}createCustomBinaryRequestDataChannel(t,r=3e3){return new BinaryRequestDataChannel(this,t,r)}async createCaptureStream(t){const n=await(await fetch(`${FORMANT_API_URL}/v1/admin/capture-sessions`,{method:"POST",body:JSON.stringify({deviceId:this.id,streamName:t,tags:{}}),headers:{"Content-Type":"application/json",Authorization:"Bearer "+Authentication.token}})).json();return new CaptureStream(n)}async getTelemetry(t,r,n,i){return await Fleet.getTelemetry(this.id,t,r,n,i)}async getTelemetryStreams(){var o,l;const t=await this.getConfiguration(),r=await fetch(`${FORMANT_API_URL}/v1/queries/metadata/stream-names`,{method:"POST",body:JSON.stringify({deviceIds:[this.id]}),headers:{"Content-Type":"application/json",Authorization:"Bearer "+Authentication.token}}),n=[],i=[];return(l=(o=t.telemetry)==null?void 0:o.streams)==null||l.forEach(u=>{u.disabled!==!0&&n.push(u.name),u.onDemand===!0&&i.push(u.name)}),console.log(i),(await r.json()).items.filter(u=>!n.includes(u)).map(u=>({name:u,onDemand:i.includes(u)}))}}const Ae=class{static async setDefaultDevice(t){Ae.defaultDeviceId=t}static async getCurrentDevice(){if(!Authentication.token)throw new Error("Not authenticated");if(!Ae.defaultDeviceId)throw new Error("No known default device");const r=await(await fetch(`${FORMANT_API_URL}/v1/admin/devices/${Ae.defaultDeviceId}`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Bearer "+Authentication.token}})).json(),n=r.name,i=new Device(Ae.defaultDeviceId,n,r.organizationId);return Ae.knownContext.push(new WeakRef(i)),i}static async getDevice(t){if(!Authentication.token)throw new Error("Not authenticated");const n=await(await fetch(`${FORMANT_API_URL}/v1/admin/devices/${t}`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Bearer "+Authentication.token}})).json(),i=n.name,g=new Device(t,i,n.organizationId);return Ae.knownContext.push(new WeakRef(g)),g}static async getDevices(){if(!Authentication.token)throw new Error("Not authenticated");const r=await(await fetch(`${FORMANT_API_URL}/v1/admin/device-details/query`,{method:"POST",body:JSON.stringify({enabled:!0,type:"default"}),headers:{"Content-Type":"application/json",Authorization:"Bearer "+Authentication.token}})).json();return r.items,r.items.map(n=>new Device(n.id,n.name,n.organizationId))}static async getOnlineDevices(){if(!Authentication.token)throw new Error("Not authenticated");const n=(await(await fetch(`${FORMANT_API_URL}/v1/queries/online-devices`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Bearer "+Authentication.token}})).json()).items;return(await Ae.getDevices()).filter(g=>n.includes(g.id))}static async getRealtimeDevices(){if(!Authentication.token)throw new Error("Not authenticated");const n=(await(await fetch(`${FORMANT_API_URL}/v1/signaling/peers`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Bearer "+Authentication.token}})).json()).items.map(g=>g.deviceId);return(await Ae.getDevices()).filter(g=>n.includes(g.id))}static async getLatestTelemetry(t){let r=t;return t&&!Array.isArray(t)&&(t=[t]),(await(await fetch(`${FORMANT_API_URL}/v1/queries/stream-current-value`,{method:"POST",body:JSON.stringify({deviceIds:r}),headers:{"Content-Type":"application/json",Authorization:"Bearer "+Authentication.token}})).json()).items}static async getTelemetry(t,r,n,i,g){let s=t;Array.isArray(t)||(s=[t]);let o=r;return Array.isArray(r)||(o=[r]),(await(await fetch(`${FORMANT_API_URL}/v1/queries/queries`,{method:"POST",body:JSON.stringify({deviceIds:s,end:i.toISOString(),names:o,start:n.toISOString(),tags:g}),headers:{"Content-Type":"application/json",Authorization:"Bearer "+Authentication.token}})).json()).items}};let Fleet=Ae;Me(Fleet,"defaultDeviceId"),Me(Fleet,"knownContext",[]);class KeyValue{static async set(t,r){try{const n=await fetch(FORMANT_API_URL+"/v1/admin/key-value",{method:"POST",body:JSON.stringify({organizationId:defined(Authentication.currentUser).organizationId,key:t,value:r}),headers:{"Content-Type":"application/json",Authorization:"Bearer "+Authentication.token}}),i=await n.json();if(n.status!==200)throw new Error(i.message)}catch(n){throw n}}static async get(t){try{const r=await fetch(FORMANT_API_URL+`/v1/admin/key-value/${t}`,{method:"GET",body:JSON.stringify({organizationId:defined(Authentication.currentUser).organizationId}),headers:{"Content-Type":"application/json",Authorization:"Bearer "+Authentication.token}}),n=await r.json();if(r.status!==200)throw new Error(n.message);return n.value}catch(r){throw r}}}let urlParams=new URLSearchParams("");typeof window!="undefined"&&(urlParams=new URLSearchParams(window.location.search));const urlDevice=urlParams.get("device");urlDevice&&Fleet.setDefaultDevice(urlDevice);const urlAuth=urlParams.get("auth");urlAuth&&Authentication.loginWithToken(urlAuth);const moduleName=urlParams.get("module");moduleName&&Authentication.listenForRefresh(),exports.App=App,exports.Authentication=Authentication,exports.BinaryRequestDataChannel=BinaryRequestDataChannel,exports.CaptureStream=CaptureStream,exports.DataChannel=DataChannel,exports.Device=Device,exports.Fleet=Fleet,exports.KeyValue=KeyValue,exports.Manipulator=Manipulator,exports.TextRequestDataChannel=TextRequestDataChannel,Object.defineProperty(exports,"__esModule",{value:!0}),exports[Symbol.toStringTag]="Module"});
|
|
44
|
+
`),Error.captureStackTrace(this,n)}}e.exports=i=>{if(i.length>2)throw new n(i);function g(o={}){this.options=o}function s(o){return new g(o)}return g.prototype.transform=i,s.Format=g,s}},function(e,t,r){function n(s,o){if(!(s instanceof o))throw new TypeError("Cannot call a class as a function")}function i(s,o){for(var l=0;l<o.length;l++){var u=o[l];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(s,u.key,u)}}var g=r(85);e.exports=function(){function s(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};n(this,s),this.loggers=new Map,this.options=u}var o,l;return o=s,(l=[{key:"add",value:function(u,m){var R=this;if(!this.loggers.has(u)){var y=(m=Object.assign({},m||this.options)).transports||this.options.transports;m.transports=y?y.slice():[];var S=g(m);S.on("close",function(){return R._delete(u)}),this.loggers.set(u,S)}return this.loggers.get(u)}},{key:"get",value:function(u,m){return this.add(u,m)}},{key:"has",value:function(u){return!!this.loggers.has(u)}},{key:"close",value:function(u){var m=this;if(u)return this._removeLogger(u);this.loggers.forEach(function(R,y){return m._removeLogger(y)})}},{key:"_removeLogger",value:function(u){this.loggers.has(u)&&(this.loggers.get(u).close(),this._delete(u))}},{key:"_delete",value:function(u){this.loggers.delete(u)}}])&&i(o.prototype,l),s}()},function(e,t,r){(function(n){const i=r(49),g=/^([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{4}|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)$/;e.exports=function(s,o,l){let u,m,R=!1,y=!1;function S(E,P){let F=`"${o}" ${P}`;throw E&&(F=`${F}, but is set to "${E}"`),m&&(F=`${F}. An example of a valid value would be: ${m}`),new i(F)}function c(E){return function(){let P=s[o];if(P===void 0)if(u===void 0&&y)S(void 0,"is a required variable, but it was not set");else{if(u===void 0)return;P=u}y&&P.trim().length===0&&S(void 0,"is a required variable, but its value was empty"),R&&(P.match(g)||S(P,"should be a valid base64 string if using convertFromBase64"),P=n.from(P,"base64").toString());const F=[P].concat(Array.prototype.slice.call(arguments));try{return E.apply(E,F)}catch(M){S(P,M.message)}}}const w={asArray:c(r(211)),asBoolStrict:c(r(212)),asBool:c(r(213)),asPortNumber:c(r(214)),asEnum:c(r(215)),asFloatNegative:c(r(216)),asFloatPositive:c(r(217)),asFloat:c(r(51)),asIntNegative:c(r(218)),asIntPositive:c(r(91)),asInt:c(r(50)),asJsonArray:c(r(219)),asJsonObject:c(r(220)),asJson:c(r(52)),asString:c(r(35)),asUrlObject:c(r(92)),asUrlString:c(r(221)),convertFromBase64:function(){return R=!0,w},default:function(E){if(typeof E=="number")u=E.toString();else if(Array.isArray(E)||typeof E=="object"&&E!==null)u=JSON.stringify(E);else{if(typeof E!="string")throw new i("values passed to default() must be of Number, String, Array, or Object type");u=E}return w},required:function(E){return y=E===void 0||E,w},example:function(E){return m=E,w}};return Object.entries(l).forEach(([E,P])=>{w[E]=c(P)}),w}}).call(this,r(4).Buffer)},function(e,t,r){const n=r(35);e.exports=function(i,g){return g=g||",",i.length?n(i).split(g).filter(Boolean):[]}},function(e,t,r){e.exports=function(n){const i=n.toLowerCase();if(i!=="false"&&i!=="true")throw new Error('should be either "true", "false", "TRUE", or "FALSE"');return i!=="false"}},function(e,t,r){e.exports=function(n){const i=n.toLowerCase();if(["false","0","true","1"].indexOf(i)===-1)throw new Error('should be either "true", "false", "TRUE", "FALSE", 1, or 0');return!(i==="0"||i==="false")}},function(e,t,r){const n=r(91);e.exports=function(i){var g=n(i);if(g>65535)throw new Error("cannot assign a port number greater than 65535");return g}},function(e,t,r){const n=r(35);e.exports=function(i,g){const s=n(i);if(g.indexOf(s)<0)throw new Error(`should be one of [${g.join(", ")}]`);return s}},function(e,t,r){const n=r(51);e.exports=function(i){const g=n(i);if(g>0)throw new Error("should be a negative float");return g}},function(e,t,r){const n=r(51);e.exports=function(i){const g=n(i);if(g<0)throw new Error("should be a positive float");return g}},function(e,t,r){const n=r(50);e.exports=function(i){const g=n(i);if(g>0)throw new Error("should be a negative integer");return g}},function(e,t,r){const n=r(52);e.exports=function(i){var g=n(i);if(!Array.isArray(g))throw new Error("should be a parseable JSON Array");return g}},function(e,t,r){const n=r(52);e.exports=function(i){var g=n(i);if(Array.isArray(g))throw new Error("should be a parseable JSON Object");return g}},function(e,t,r){const n=r(92);e.exports=function(i){return n(i).toString()}},function(e,t,r){function n(o){var l=this;if(l instanceof n||(l=new n),l.tail=null,l.head=null,l.length=0,o&&typeof o.forEach=="function")o.forEach(function(R){l.push(R)});else if(arguments.length>0)for(var u=0,m=arguments.length;u<m;u++)l.push(arguments[u]);return l}function i(o,l){o.tail=new s(l,o.tail,null,o),o.head||(o.head=o.tail),o.length++}function g(o,l){o.head=new s(l,null,o.head,o),o.tail||(o.tail=o.head),o.length++}function s(o,l,u,m){if(!(this instanceof s))return new s(o,l,u,m);this.list=m,this.value=o,l?(l.next=this,this.prev=l):this.prev=null,u?(u.prev=this,this.next=u):this.next=null}e.exports=n,n.Node=s,n.create=n,n.prototype.removeNode=function(o){if(o.list!==this)throw new Error("removing node which does not belong to this list");var l=o.next,u=o.prev;l&&(l.prev=u),u&&(u.next=l),o===this.head&&(this.head=l),o===this.tail&&(this.tail=u),o.list.length--,o.next=null,o.prev=null,o.list=null},n.prototype.unshiftNode=function(o){if(o!==this.head){o.list&&o.list.removeNode(o);var l=this.head;o.list=this,o.next=l,l&&(l.prev=o),this.head=o,this.tail||(this.tail=o),this.length++}},n.prototype.pushNode=function(o){if(o!==this.tail){o.list&&o.list.removeNode(o);var l=this.tail;o.list=this,o.prev=l,l&&(l.next=o),this.tail=o,this.head||(this.head=o),this.length++}},n.prototype.push=function(){for(var o=0,l=arguments.length;o<l;o++)i(this,arguments[o]);return this.length},n.prototype.unshift=function(){for(var o=0,l=arguments.length;o<l;o++)g(this,arguments[o]);return this.length},n.prototype.pop=function(){if(this.tail){var o=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,o}},n.prototype.shift=function(){if(this.head){var o=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,o}},n.prototype.forEach=function(o,l){l=l||this;for(var u=this.head,m=0;u!==null;m++)o.call(l,u.value,m,this),u=u.next},n.prototype.forEachReverse=function(o,l){l=l||this;for(var u=this.tail,m=this.length-1;u!==null;m--)o.call(l,u.value,m,this),u=u.prev},n.prototype.get=function(o){for(var l=0,u=this.head;u!==null&&l<o;l++)u=u.next;if(l===o&&u!==null)return u.value},n.prototype.getReverse=function(o){for(var l=0,u=this.tail;u!==null&&l<o;l++)u=u.prev;if(l===o&&u!==null)return u.value},n.prototype.map=function(o,l){l=l||this;for(var u=new n,m=this.head;m!==null;)u.push(o.call(l,m.value,this)),m=m.next;return u},n.prototype.mapReverse=function(o,l){l=l||this;for(var u=new n,m=this.tail;m!==null;)u.push(o.call(l,m.value,this)),m=m.prev;return u},n.prototype.reduce=function(o,l){var u,m=this.head;if(arguments.length>1)u=l;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");m=this.head.next,u=this.head.value}for(var R=0;m!==null;R++)u=o(u,m.value,R),m=m.next;return u},n.prototype.reduceReverse=function(o,l){var u,m=this.tail;if(arguments.length>1)u=l;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");m=this.tail.prev,u=this.tail.value}for(var R=this.length-1;m!==null;R--)u=o(u,m.value,R),m=m.prev;return u},n.prototype.toArray=function(){for(var o=new Array(this.length),l=0,u=this.head;u!==null;l++)o[l]=u.value,u=u.next;return o},n.prototype.toArrayReverse=function(){for(var o=new Array(this.length),l=0,u=this.tail;u!==null;l++)o[l]=u.value,u=u.prev;return o},n.prototype.slice=function(o,l){(l=l||this.length)<0&&(l+=this.length),(o=o||0)<0&&(o+=this.length);var u=new n;if(l<o||l<0)return u;o<0&&(o=0),l>this.length&&(l=this.length);for(var m=0,R=this.head;R!==null&&m<o;m++)R=R.next;for(;R!==null&&m<l;m++,R=R.next)u.push(R.value);return u},n.prototype.sliceReverse=function(o,l){(l=l||this.length)<0&&(l+=this.length),(o=o||0)<0&&(o+=this.length);var u=new n;if(l<o||l<0)return u;o<0&&(o=0),l>this.length&&(l=this.length);for(var m=this.length,R=this.tail;R!==null&&m>l;m--)R=R.prev;for(;R!==null&&m>o;m--,R=R.prev)u.push(R.value);return u},n.prototype.reverse=function(){for(var o=this.head,l=this.tail,u=o;u!==null;u=u.prev){var m=u.prev;u.prev=u.next,u.next=m}return this.head=l,this.tail=o,this};try{r(223)(n)}catch{}},function(e,t,r){e.exports=function(n){n.prototype[Symbol.iterator]=function*(){for(let i=this.head;i;i=i.next)yield i.value}}},function(e,t,r){(function(n){(function(){var i,g,s,o,l,u;typeof performance!="undefined"&&performance!==null&&performance.now?e.exports=function(){return performance.now()}:n!=null&&n.hrtime?(e.exports=function(){return(i()-l)/1e6},g=n.hrtime,o=(i=function(){var m;return 1e9*(m=g())[0]+m[1]})(),u=1e9*n.uptime(),l=o-u):Date.now?(e.exports=function(){return Date.now()-s},s=Date.now()):(e.exports=function(){return new Date().getTime()-s},s=new Date().getTime())}).call(this)}).call(this,r(2))},function(e,t,r){var n,i,g=r(96),s=r(97),o=0,l=0;e.exports=function(u,m,R){var y=m&&R||0,S=m||[],c=(u=u||{}).node||n,w=u.clockseq!==void 0?u.clockseq:i;if(c==null||w==null){var E=g();c==null&&(c=n=[1|E[0],E[1],E[2],E[3],E[4],E[5]]),w==null&&(w=i=16383&(E[6]<<8|E[7]))}var P=u.msecs!==void 0?u.msecs:new Date().getTime(),F=u.nsecs!==void 0?u.nsecs:l+1,M=P-o+(F-l)/1e4;if(M<0&&u.clockseq===void 0&&(w=w+1&16383),(M<0||P>o)&&u.nsecs===void 0&&(F=0),F>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");o=P,l=F,i=w;var A=(1e4*(268435455&(P+=122192928e5))+F)%4294967296;S[y++]=A>>>24&255,S[y++]=A>>>16&255,S[y++]=A>>>8&255,S[y++]=255&A;var p=P/4294967296*1e4&268435455;S[y++]=p>>>8&255,S[y++]=255&p,S[y++]=p>>>24&15|16,S[y++]=p>>>16&255,S[y++]=w>>>8|128,S[y++]=255&w;for(var N=0;N<6;++N)S[y+N]=c[N];return m||s(S)}},function(e,t,r){var n=r(96),i=r(97);e.exports=function(g,s,o){var l=s&&o||0;typeof g=="string"&&(s=g==="binary"?new Array(16):null,g=null);var u=(g=g||{}).random||(g.rng||n)();if(u[6]=15&u[6]|64,u[8]=63&u[8]|128,s)for(var m=0;m<16;++m)s[l+m]=u[m];return s||i(u)}},function(e,t,r){(function(n){(function(i){function g(o){if((o=o===void 0?"utf-8":o)!=="utf-8")throw new RangeError("Failed to construct 'TextEncoder': The encoding label provided ('"+o+"') is invalid.")}function s(o,l){if(l=l===void 0?{fatal:!1}:l,(o=o===void 0?"utf-8":o)!=="utf-8")throw new RangeError("Failed to construct 'TextDecoder': The encoding label provided ('"+o+"') is invalid.");if(l.fatal)throw Error("Failed to construct 'TextDecoder': the 'fatal' option is unsupported.")}if(i.TextEncoder&&i.TextDecoder)return!1;Object.defineProperty(g.prototype,"encoding",{value:"utf-8"}),g.prototype.encode=function(o,l){if((l=l===void 0?{stream:!1}:l).stream)throw Error("Failed to encode: the 'stream' option is unsupported.");l=0;for(var u=o.length,m=0,R=Math.max(32,u+(u>>1)+7),y=new Uint8Array(R>>3<<3);l<u;){var S=o.charCodeAt(l++);if(55296<=S&&56319>=S){if(l<u){var c=o.charCodeAt(l);(64512&c)==56320&&(++l,S=((1023&S)<<10)+(1023&c)+65536)}if(55296<=S&&56319>=S)continue}if(m+4>y.length&&(R+=8,R=(R*=1+l/o.length*2)>>3<<3,(c=new Uint8Array(R)).set(y),y=c),(4294967168&S)==0)y[m++]=S;else{if((4294965248&S)==0)y[m++]=S>>6&31|192;else if((4294901760&S)==0)y[m++]=S>>12&15|224,y[m++]=S>>6&63|128;else{if((4292870144&S)!=0)continue;y[m++]=S>>18&7|240,y[m++]=S>>12&63|128,y[m++]=S>>6&63|128}y[m++]=63&S|128}}return y.slice(0,m)},Object.defineProperty(s.prototype,"encoding",{value:"utf-8"}),Object.defineProperty(s.prototype,"fatal",{value:!1}),Object.defineProperty(s.prototype,"ignoreBOM",{value:!1}),s.prototype.decode=function(o,l){if((l=l===void 0?{stream:!1}:l).stream)throw Error("Failed to decode: the 'stream' option is unsupported.");l=0;for(var u=(o=new Uint8Array(o)).length,m=[];l<u;){var R=o[l++];if(R===0)break;if((128&R)==0)m.push(R);else if((224&R)==192){var y=63&o[l++];m.push((31&R)<<6|y)}else if((240&R)==224){y=63&o[l++];var S=63&o[l++];m.push((31&R)<<12|y<<6|S)}else(248&R)==240&&(65535<(R=(7&R)<<18|(y=63&o[l++])<<12|(S=63&o[l++])<<6|63&o[l++])&&(R-=65536,m.push(R>>>10&1023|55296),R=56320|1023&R),m.push(R))}return String.fromCharCode.apply(null,m)},i.TextEncoder=g,i.TextDecoder=s})(typeof window!="undefined"?window:n!==void 0?n:this)}).call(this,r(5))},function(e,t,r){r.r(t),r.d(t,"AuthClient",function(){return g}),r.d(t,"RtcSignalingClient",function(){return o}),r.d(t,"Credentials",function(){return w}),r.d(t,"SignalingPromiseClient",function(){return E.SignalingPromiseClient}),r.d(t,"IRtcClientConfiguration",function(){}),r.d(t,"IRtcConnectConfiguration",function(){}),r.d(t,"IRtcConnectionStatsInfo",function(){}),r.d(t,"IRtcSendConfiguration",function(){}),r.d(t,"IRtcSessionMetricsMessageCounts",function(){}),r.d(t,"IRtcStreamMessage",function(){}),r.d(t,"IStreamControl",function(){}),r.d(t,"RtcClient",function(){return se});var n=r(26),i=function(oe,z,Z,te){return new(Z||(Z=Promise))(function(ce,ae){function he(fe){try{me(te.next(fe))}catch(ue){ae(ue)}}function de(fe){try{me(te.throw(fe))}catch(ue){ae(ue)}}function me(fe){var ue;fe.done?ce(fe.value):(ue=fe.value,ue instanceof Z?ue:new Z(function(_e){_e(ue)})).then(he,de)}me((te=te.apply(oe,z||[])).next())})};class g extends n.a{adminSignup(z,Z){return i(this,void 0,void 0,function*(){return yield this.fetch("auth/admin-signup",{token:Z,method:"POST",body:JSON.stringify(z)})})}login(z){return i(this,void 0,void 0,function*(){return yield this.fetch("auth/login",{method:"POST",body:JSON.stringify(z),allowUnsafeRetries:!0})})}loginWithGoogleToken(z){return i(this,void 0,void 0,function*(){return yield this.fetch("auth/login-google",{method:"POST",body:JSON.stringify(z),allowUnsafeRetries:!0})})}refresh(z,Z){return i(this,void 0,void 0,function*(){return yield this.fetch("auth/refresh",{method:"POST",body:JSON.stringify({refreshToken:z,tokenExpirationSeconds:Z}),allowUnsafeRetries:!0})})}respondToNewPasswordRequiredChallenge(z){return i(this,void 0,void 0,function*(){return yield this.fetch("auth/respond-to-new-password-required-challenge",{method:"POST",body:JSON.stringify(z)})})}forgotPassword(z){return i(this,void 0,void 0,function*(){return yield this.fetch("auth/forgot-password",{method:"POST",body:JSON.stringify({email:z})})})}confirmForgotPassword(z){return i(this,void 0,void 0,function*(){return yield this.fetch("auth/confirm-forgot-password",{method:"POST",body:JSON.stringify(z)})})}resendInvitation(z){return i(this,void 0,void 0,function*(){return yield this.fetch("auth/resend-invitation",{method:"POST",body:JSON.stringify({email:z})})})}changePassword({token:z,refreshToken:Z,currentPassword:te,newPassword:ce}){return i(this,void 0,void 0,function*(){return yield this.fetch("auth/change-password",{token:z,method:"POST",body:JSON.stringify({refreshToken:Z,currentPassword:te,newPassword:ce})})})}getDeviceCredentials(z){return i(this,void 0,void 0,function*(){return yield this.fetch("auth/device-credentials",{token:z,method:"POST",allowUnsafeRetries:!0})})}impersonate(z,Z){return i(this,void 0,void 0,function*(){return yield this.fetch("auth/impersonate",{token:z,method:"POST",allowUnsafeRetries:!0,body:JSON.stringify({userId:Z})})})}createServiceAccount(z,Z,te){return i(this,void 0,void 0,function*(){return yield this.fetch("auth/service-account",{token:z,method:"POST",allowUnsafeRetries:!0,body:JSON.stringify({name:Z,roleId:te})})})}getFeatures(z){return i(this,void 0,void 0,function*(){return(yield this.fetch("auth/features",{token:z})).features})}}var s=function(oe,z,Z,te){return new(Z||(Z=Promise))(function(ce,ae){function he(fe){try{me(te.next(fe))}catch(ue){ae(ue)}}function de(fe){try{me(te.throw(fe))}catch(ue){ae(ue)}}function me(fe){var ue;fe.done?ce(fe.value):(ue=fe.value,ue instanceof Z?ue:new Z(function(_e){_e(ue)})).then(he,de)}me((te=te.apply(oe,z||[])).next())})};class o extends n.a{createPeer(z,Z){return s(this,void 0,void 0,function*(){return yield this.fetch("peers",{token:z,method:"POST",body:JSON.stringify(Z)})})}getPeers(z){return s(this,void 0,void 0,function*(){return(yield this.fetch("peers",{token:z})).items})}refreshPeer(z,Z){return s(this,void 0,void 0,function*(){yield this.fetch(`peers/${Z}/refresh`,{token:z,method:"POST",allowUnsafeRetries:!0})})}createSession(z,Z){return s(this,void 0,void 0,function*(){return yield this.fetch("sessions",{token:z,method:"POST",body:JSON.stringify(Z)})})}refreshSession(z,Z){return s(this,void 0,void 0,function*(){yield this.fetch(`sessions/${Z}/refresh`,{token:z,method:"POST",allowUnsafeRetries:!0})})}deleteSession(z,Z){return s(this,void 0,void 0,function*(){yield this.fetch(`sessions/${Z}`,{token:z,method:"DELETE",allowUnsafeRetries:!0})})}getSessions(z){return s(this,void 0,void 0,function*(){return(yield this.fetch("sessions",{token:z})).items})}getIceServers(z){return s(this,void 0,void 0,function*(){return(yield this.fetch("ice-servers",{token:z})).items})}addSignals(z,Z,te){return s(this,void 0,void 0,function*(){yield this.fetch(`sessions/${Z}/add-signals`,{token:z,method:"POST",body:JSON.stringify(te)})})}takeSignals(z,Z){return s(this,void 0,void 0,function*(){return(yield this.fetch(`sessions/${Z}/take-signals`,{token:z,method:"POST"})).items})}}var l=r(1),u=r(11),m=r(21),R=r(102),y=function(oe,z,Z,te){return new(Z||(Z=Promise))(function(ce,ae){function he(fe){try{me(te.next(fe))}catch(ue){ae(ue)}}function de(fe){try{me(te.throw(fe))}catch(ue){ae(ue)}}function me(fe){var ue;fe.done?ce(fe.value):(ue=fe.value,ue instanceof Z?ue:new Z(function(_e){_e(ue)})).then(he,de)}me((te=te.apply(oe,z||[])).next())})};class S extends class{constructor(z={}){this.cache=new R(z),this.stringify=z.fastStringify?JSON.stringify:m}set(z,Z,te){if(!this.cache.set(this.stringify(z),Z,te))throw Error(`Value too large (${this.cache.lengthCalculator(Z)} > ${this.cache.max})`)}get(z){return this.cache.get(this.stringify(z))}del(z){this.cache.del(this.stringify(z))}length(){return this.cache.length}reset(){this.cache.reset()}prune(){return this.cache.prune()}forEach(z){return this.cache.forEach(z)}}{constructor(z={}){if(super(z),this.expireRejectedPromiseValues=z.expireRejectedPromiseValues===void 0||z.expireRejectedPromiseValues,this.rejectedPromiseValueTtl=z.rejectedPromiseValueTtl!==void 0?z.rejectedPromiseValueTtl:l.a.second,this.rejectedPromiseValueTtl<0)throw new Error("rejectedPromiseValueTtl must not be negative")}set(z,Z,te){const ce=this.stringify(z);this.cache.set(ce,Z,te),this.expireRejectedPromiseValues&&Promise.resolve(Z).catch(()=>y(this,void 0,void 0,function*(){yield Object(u.a)(this.rejectedPromiseValueTtl),this.cache.peek(ce)===Z&&this.cache.del(ce)}))}}var c=function(oe,z,Z,te){return new(Z||(Z=Promise))(function(ce,ae){function he(fe){try{me(te.next(fe))}catch(ue){ae(ue)}}function de(fe){try{me(te.throw(fe))}catch(ue){ae(ue)}}function me(fe){var ue;fe.done?ce(fe.value):(ue=fe.value,ue instanceof Z?ue:new Z(function(_e){_e(ue)})).then(he,de)}me((te=te.apply(oe,z||[])).next())})};class w{constructor(z,Z,te){this.authClient=z,this.email=Z,this.password=te,this.tokenTtlMs=1*l.a.hour,this.tokenCache=new S({max:100,maxAge:this.tokenTtlMs-5*l.a.minute,fastStringify:!0})}getToken(){return c(this,void 0,void 0,function*(){let z=this.tokenCache.get(this.email);return z||(z=(()=>c(this,void 0,void 0,function*(){const{authentication:Z}=yield this.authClient.login({email:this.email,password:this.password,tokenExpirationSeconds:this.tokenTtlMs/l.a.second});if(!Z)throw new Error("User account not verified.");return Z.accessToken}))(),this.tokenCache.set(this.email,z)),z})}}var E=r(93),P=function(oe,z,Z,te){return new(Z||(Z=Promise))(function(ce,ae){function he(fe){try{me(te.next(fe))}catch(ue){ae(ue)}}function de(fe){try{me(te.throw(fe))}catch(ue){ae(ue)}}function me(fe){var ue;fe.done?ce(fe.value):(ue=fe.value,ue instanceof Z?ue:new Z(function(_e){_e(ue)})).then(he,de)}me((te=te.apply(oe,z||[])).next())})};function F(oe){return P(this,void 0,void 0,function*(){return(yield Promise.all(oe.map(z=>z.catch(Z=>Z)))).filter(z=>z instanceof Error)})}function M(oe){if(oe!==void 0)return oe;throw new Error("Value is undefined")}var A=r(0),p=function(oe,z,Z,te){return new(Z||(Z=Promise))(function(ce,ae){function he(fe){try{me(te.next(fe))}catch(ue){ae(ue)}}function de(fe){try{me(te.throw(fe))}catch(ue){ae(ue)}}function me(fe){var ue;fe.done?ce(fe.value):(ue=fe.value,ue instanceof Z?ue:new Z(function(_e){_e(ue)})).then(he,de)}me((te=te.apply(oe,z||[])).next())})};function N({func:oe,delay:z,immediate:Z}){let te=!1,ce=setTimeout(function he(){return p(this,void 0,void 0,function*(){if(te)return;const de=new Date().getTime();try{ae=oe(),yield ae}finally{if(!te){const me=new Date().getTime();ce=setTimeout(he,Math.max(z-(me-de),0))}}})},Z?0:z),ae=Promise.resolve();return{stop(){return p(this,void 0,void 0,function*(){te=!0,clearTimeout(ce),yield ae})}}}function $(oe,z){return Object.keys(oe).reduce((Z,te)=>Object.assign(Object.assign({},Z),{[te]:z(oe[te])}),{})}var q=function(oe,z,Z,te){return new(Z||(Z=Promise))(function(ce,ae){function he(fe){try{me(te.next(fe))}catch(ue){ae(ue)}}function de(fe){try{me(te.throw(fe))}catch(ue){ae(ue)}}function me(fe){var ue;fe.done?ce(fe.value):(ue=fe.value,ue instanceof Z?ue:new Z(function(_e){_e(ue)})).then(he,de)}me((te=te.apply(oe,z||[])).next())})};class h{constructor(z){this.message=z}send(z){return q(this,void 0,void 0,function*(){A.a.info(this.message,$(z,Z=>{const{sum:te,count:ce}=Z,ae=te/ce;return Object.assign(Object.assign({},Z),{average:ae})}))})}}var d=function(oe,z,Z,te){return new(Z||(Z=Promise))(function(ce,ae){function he(fe){try{me(te.next(fe))}catch(ue){ae(ue)}}function de(fe){try{me(te.throw(fe))}catch(ue){ae(ue)}}function me(fe){var ue;fe.done?ce(fe.value):(ue=fe.value,ue instanceof Z?ue:new Z(function(_e){_e(ue)})).then(he,de)}me((te=te.apply(oe,z||[])).next())})};const O=r(224),_=!!r(7).c,x=new class{constructor(oe=60){this.buffer={},this.metrics={},this.reporters=[],this.flushInterval=N({func:()=>this.flushStats(),delay:oe*l.a.second})}shutdown(){return d(this,void 0,void 0,function*(){yield this.flushInterval.stop(),yield this.flushStats(),yield Object(u.a)(2*l.a.second)})}aggregate(oe,z){if(this.buffer[oe]){const{min:Z,max:te,sum:ce,count:ae}=this.buffer[oe];this.buffer[oe]={min:Math.min(Z,z),max:Math.max(te,z),sum:ce+z,count:ae+1}}else this.buffer[oe]={min:z,max:z,sum:z,count:1}}increment(oe){this.aggregate(oe,1)}timer(oe,z){return d(this,void 0,void 0,function*(){const Z=O(),te=yield z(),ce=O();return this.aggregate(oe,ce-Z),te})}metric(oe,z){this.metrics[oe]=z}registerStatsReporter(oe){this.reporters.push(oe)}write(oe){return d(this,void 0,void 0,function*(){if(Object.values(oe).length===0)return;const z=yield F(this.reporters.map(Z=>Z.send(oe)));for(const Z of z)A.a.warn("Failed to write stats",{error:Z})})}flushStats(){return d(this,void 0,void 0,function*(){const oe=Object.assign(Object.assign({},this.buffer),$(this.metrics,z=>{const Z=z();return{min:Z,max:Z,sum:Z,count:1}}));Object.keys(oe).length>0&&(yield this.write(oe),this.buffer={})})}};_||x.registerStatsReporter(new h("stats"));var D=r(8),L=r(22),T=r(103),C=r(36),U=function(oe,z,Z,te){return new(Z||(Z=Promise))(function(ce,ae){function he(fe){try{me(te.next(fe))}catch(ue){ae(ue)}}function de(fe){try{me(te.throw(fe))}catch(ue){ae(ue)}}function me(fe){var ue;fe.done?ce(fe.value):(ue=fe.value,ue instanceof Z?ue:new Z(function(_e){_e(ue)})).then(he,de)}me((te=te.apply(oe,z||[])).next())})};class b extends C.a{constructor(z){super(z)}postLanRtcOffer(z){return U(this,void 0,void 0,function*(){return yield this.fetch("v1/lan-rtc-offer",{method:"POST",body:JSON.stringify(z)})})}}var f=r(55);const B={ordered:!1,maxPacketLifeTime:300*l.a.millisecond},k={ordered:!0},Y={ordered:!0},K={ordered:!1,maxRetransmits:0},Q={ordered:!1,maxRetransmits:0};function G({entityId:oe,streamName:z,streamType:Z}){return`${oe}.${z}.${Z}`}var V=function(oe,z,Z,te){return new(Z||(Z=Promise))(function(ce,ae){function he(fe){try{me(te.next(fe))}catch(ue){ae(ue)}}function de(fe){try{me(te.throw(fe))}catch(ue){ae(ue)}}function me(fe){var ue;fe.done?ce(fe.value):(ue=fe.value,ue instanceof Z?ue:new Z(function(_e){_e(ue)})).then(he,de)}me((te=te.apply(oe,z||[])).next())})};class v{constructor(z,Z){this.sessionId=z,this.connection=Z,this.counts={localSent:new Map,localReceived:new Map,remoteSent:new Map,remoteReceived:new Map},this.sessionId=z,this.connection=Z}updateRemoteMessagesCounts(z){if(z.payload.streamsInfo){this.counts.remoteSent=new Map,this.counts.remoteReceived=new Map;for(const Z of z.payload.streamsInfo.items)this.counts.remoteSent.set(Z.streamId,Z.sentCount),this.counts.remoteReceived.set(Z.streamId,Z.receivedCount)}}getLocalStreamsInfo(z){const{localSent:Z,localReceived:te}=this.counts;return{items:[...new Set([...Z.keys(),...te.keys()])].map(ce=>{var ae,he;return{streamId:ce,sentCount:(ae=Z.get(ce))!==null&&ae!==void 0?ae:0,receivedCount:(he=te.get(ce))!==null&&he!==void 0?he:0}}),timestamp:z}}incrementLocalSent(z){const{localSent:Z}=this.counts,te=G(z.header.stream);Z.set(te,(Z.get(te)||0)+1)}incrementLocalReceived(z){const{localReceived:Z}=this.counts,te=G(z.header.stream),ce=Z.get(te)||0;if(ce===0){const{streamName:ae,streamType:he}=z.header.stream;A.a.debug("RTC client received first message for stream",{streamName:ae,streamType:he})}Z.set(te,ce+1)}uploadMetrics(){return V(this,void 0,void 0,function*(){const{sessionId:z}=this,Z=yield this.connection.peerConnection.getStats(),te={};Z.forEach(fe=>te[fe.id]=fe),A.a.debug("rtc-stats",Object.assign(Object.assign({},te),{sessionId:z}));const{localSent:ce,localReceived:ae,remoteSent:he,remoteReceived:de}=this.counts,me=[...new Set([...ce.keys(),...ae.keys()])].reduce((fe,ue)=>{const _e=ce.get(ue),Se=ae.get(ue),Oe=he.get(ue),Pe=de.get(ue);return Object.assign(Object.assign({},fe),{[`local-${ue}-sent`]:_e,[`local-${ue}-received`]:Se,[`remote-${ue}-sent`]:Oe,[`remote-${ue}-received`]:Pe})},{sessionId:z});A.a.debug("rtc-message-report",Object.assign({deviceId:this.connection.getRemoteDeviceId()},me))})}}function j(oe){return new Set(["disconnected","failed","closed"]).has(oe.iceConnectionState)}var W=function(oe,z,Z,te){return new(Z||(Z=Promise))(function(ce,ae){function he(fe){try{me(te.next(fe))}catch(ue){ae(ue)}}function de(fe){try{me(te.throw(fe))}catch(ue){ae(ue)}}function me(fe){var ue;fe.done?ce(fe.value):(ue=fe.value,ue instanceof Z?ue:new Z(function(_e){_e(ue)})).then(he,de)}me((te=te.apply(oe,z||[])).next())})};class ee{constructor(z,Z,te){this.peerConnection=z,this.config=Z,this.dataChannelNotifier=te,this.connectTimeoutMs=20*l.a.second,this.iceGatheringTimeoutMs=15*l.a.second,this.pingUpdateTimeoutMs=1*l.a.second,this.streamsInfoUpdateTimeoutMs=2*l.a.second,this.reassemblyTimeoutMs=500*l.a.millisecond,this.reassemblyTableCleanupMs=1*l.a.second,this.heartbeatTimeoutMs=20*l.a.millisecond,this.streamLatestTimestamp=new Map,this.reassemblyTable=new Map,this.reassemblyTableLastTimestamp=new Map,this.closeCalled=!1,this.gotOffer=!1,this.hasIceCandidate=!1;const{isOffer:ce}=Z.baseConfig;ce?this.initializeChannels(z):z.ondatachannel=ae=>{switch(ae.channel.label){case"stream.latest-ttl":this.latestTtlStreamChannel=ae.channel;break;case"stream.reliable":this.reliableStreamChannel=ae.channel;break;case"stream.latest-reliable":this.latestReliableStreamChannel=ae.channel;break;case"stream.latest-try-once":this.latestTryOnceStreamChannel=ae.channel;break;case"heartbeat":return void(this.heartbeatChannel=ae.channel);default:return void this.dataChannelNotifier(ae.channel)}this.setupChannel(ae.channel)},this.pingUpdateTimeout=setInterval(()=>{const{reliableStreamChannel:ae}=this;ae&&this.sendSystemMessage(ae,{type:"ping"})},this.pingUpdateTimeoutMs),this.streamsInfoUpdateTimeout=setInterval(()=>{const{latestTtlStreamChannel:ae}=this;ae&&this.sendSystemMessage(ae,{type:"streams-info"})},this.streamsInfoUpdateTimeoutMs),this.reassemblyTableCleanupTimeout=setInterval(()=>{const ae=new Date().getTime();this.reassemblyTableLastTimestamp.forEach((he,de,me)=>{ae>de+this.reassemblyTimeoutMs&&this.reassemblyTable.delete(he)})},this.reassemblyTableCleanupMs),this.heartbeatTimeout=setInterval(()=>{const{heartbeatChannel:ae}=this;ae&&ae.readyState==="open"&&ae.send(new Uint8Array([1]))},this.heartbeatTimeoutMs)}handleSignal(z){return W(this,void 0,void 0,function*(){const{peerConnection:Z}=this,{track:te}=this.config.baseConfig,ce=(()=>{try{return JSON.parse(z.getPayload())}catch{return}})();if(!ce)return void A.a.error("Received unparseable signal.");A.a.debug("Handling signal",{description:ce});const{sdp:ae,type:he}=ce;if(!ae||!he)return void A.a.warn("Received non-SDP signal");const{signalingState:de,connectionState:me}=Z;if(de!=="stable"||me!=="connected")if(Z.remoteDescription)A.a.warn(`Received SDP after remote description was set: ${ae}`);else{if(he==="offer"){if(de!=="stable")return void A.a.warn("Received offer SDP when signaling is ongoing.");yield Z.setRemoteDescription(ce);const fe=yield Z.createAnswer();yield Z.setLocalDescription(fe);const ue=z.clone();return te==null||te("Answer Received",ue),ue.setPayload(JSON.stringify(fe)),ue.setReceiverId(z.getSenderId()),ue.setSenderId(z.getReceiverId()),ue}if(he==="answer"){if(de==="stable")return void A.a.warn("Received answer SDP when signaling hasn't started.");yield Z.setRemoteDescription(ce)}}else A.a.warn(`Received SDP when already connected: ${ae}`)})}send(z,Z){const te=this.getChannelFromLabel(Z.channelLabel);te?this.sendOnChannel(te,z):A.a.warn("Send called with unexpected channel label",{channelLabel:Z.channelLabel})}controlRemoteStream(z){this.sendSystemMessage(M(this.reliableStreamChannel),{type:"stream-control",streamControl:z})}isActive(){return new Set(["new","checking","connected","completed"]).has(this.peerConnection.iceConnectionState)||this.isReady()}isReady(){const{reliableStreamChannel:z,latestTtlStreamChannel:Z,latestTryOnceStreamChannel:te,latestReliableStreamChannel:ce}=this;return(z==null?void 0:z.readyState)==="open"&&(Z==null?void 0:Z.readyState)==="open"&&(te==null?void 0:te.readyState)==="open"&&(ce==null?void 0:ce.readyState)==="open"}close(){return W(this,void 0,void 0,function*(){if(this.closeCalled)return;this.closeCalled=!0,this.sessionMetrics&&(yield this.sessionMetrics.uploadMetrics()),this.pingUpdateTimeout&&clearInterval(this.pingUpdateTimeout),this.reassemblyTableCleanupTimeout&&clearInterval(this.reassemblyTableCleanupTimeout),this.streamsInfoUpdateTimeout&&clearInterval(this.streamsInfoUpdateTimeout),this.heartbeatTimeout&&clearInterval(this.heartbeatTimeout);const{peerConnection:z,reliableStreamChannel:Z,latestTtlStreamChannel:te,latestTryOnceStreamChannel:ce,latestReliableStreamChannel:ae}=this;z.close(),Z==null||Z.close(),te==null||te.close(),ce==null||ce.close(),ae==null||ae.close()})}getPing(){return this.pingTimeMs}getLastMessageTimestamp(){return this.lastMessageTimestamp}getSessionCreatedTimestamp(){var z;return(z=this.config.remoteConfig)===null||z===void 0?void 0:z.sessionCreatedTimestamp}setSessionCreatedTimestamp(z){this.config.remoteConfig&&(this.config.remoteConfig.sessionCreatedTimestamp=z)}getSessionId(){var z;return(z=this.config.remoteConfig)===null||z===void 0?void 0:z.sessionId}setSessionId(z){this.config.remoteConfig&&(this.config.remoteConfig.sessionId=z,this.sessionMetrics=new v(z,this))}getRemotePeerId(){return this.config.baseConfig.remotePeerId}getRemoteDeviceId(){var z;return(z=this.config.baseConfig)===null||z===void 0?void 0:z.remoteDeviceId}setRemoteDeviceId(z){this.config.baseConfig.remoteDeviceId=z}getSessionMetricsMessageCounts(){var z;return(z=this.sessionMetrics)===null||z===void 0?void 0:z.counts}getConnectionStatsInfo(){return W(this,void 0,void 0,function*(){const{peerConnection:z}=this;if(!z)return;const Z=yield z.getStats(null),te=[];Z.forEach(me=>{te.push(me)});const ce=te.find(me=>me.type==="transport");if(!ce)return;const ae=te.find(me=>(me.type==="candidate-pair"||me.type==="candidatepair")&&me.id===ce.selectedCandidatePairId);if(!ae)return;const he=te.find(me=>me.id===ae.localCandidateId),de=te.find(me=>me.id===ae.remoteCandidateId);return he&&de&&(he.address=he.address||he.ip,de.address=de.address||de.ip,he.address!==void 0&&de.address!==void 0)?{transport:ce,localCandidate:he,remoteCandidate:de}:void 0})}initializeChannels(z){this.heartbeatChannel=z.createDataChannel("heartbeat",Q),this.heartbeatChannel.binaryType="arraybuffer",this.latestTtlStreamChannel=z.createDataChannel("stream.latest-ttl",B),this.latestTtlStreamChannel.binaryType="arraybuffer",this.reliableStreamChannel=z.createDataChannel("stream.reliable",k),this.reliableStreamChannel.binaryType="arraybuffer",this.latestReliableStreamChannel=z.createDataChannel("stream.latest-reliable",Y),this.latestReliableStreamChannel.binaryType="arraybuffer",this.latestTryOnceStreamChannel=z.createDataChannel("stream.latest-try-once",K),this.latestTryOnceStreamChannel.binaryType="arraybuffer",this.setupChannel(this.latestTtlStreamChannel),this.setupChannel(this.reliableStreamChannel),this.setupChannel(this.latestReliableStreamChannel),this.setupChannel(this.latestTryOnceStreamChannel)}getOffer(){var z,Z,te;return W(this,void 0,void 0,function*(){const{gotOffer:ce}=this,{peerConnection:ae,config:he}=this;if(this.config.baseConfig.isLan)throw new Error('"getOffer" method can only be called with internet connections. LAN connections should call the "getLanOffer" method.');const de=(z=this.config.remoteConfig)===null||z===void 0?void 0:z.sessionId;if(ce)return void A.a.debug("Failed to generate offer because gotOffer was already called.");if(this.gotOffer=!0,j(this.peerConnection))return void A.a.debug("Failed to generate offer because the peer connection was inactive.");const me=he.baseConfig.track;ae.onicecandidate=()=>{this.hasIceCandidate=!0},ae.oniceconnectionstatechange=()=>W(this,void 0,void 0,function*(){const Oe=ae.iceConnectionState;if(Oe==="connected"||Oe==="completed"){const Pe=yield this.getConnectionStatsInfo(),Fe=Pe?function(De){const Le=De.localCandidate.candidateType,xe=De.remoteCandidate.candidateType;return Le==="host"&&xe==="host"?"local":Le==="relay"||xe==="relay"?"TURN":"STUN"}(Pe):void 0;A.a.info(`ICE connection state changed to ${Oe}`,{sessionId:de,connectionStatsInfo:Pe,iceMode:Fe}),me==null||me("ICE connection state change",{iceConnectionState:Oe,sessionId:de,connectionStatsInfo:Pe,iceMode:Fe})}}),yield ae.setLocalDescription(yield ae.createOffer());const fe=new Date().getTime();for(;;){const Oe=new Date().getTime()-fe;if(Oe>this.connectTimeoutMs)return void A.a.debug("Failed to generate offer because ICE gathering timed out.");if(Oe>this.iceGatheringTimeoutMs&&this.hasIceCandidate){A.a.debug("ICE gathering partially completed; proceeding",{iceTransportPolicy:ae.getConfiguration().iceTransportPolicy,waitTime:Oe}),me==null||me("ICE gathering partially completed",{sessionId:de,iceTransportPolicy:ae.getConfiguration().iceTransportPolicy,waitTime:Oe});break}if(ae.iceGatheringState==="complete"){A.a.debug("ICE gathering complete",{iceTransportPolicy:ae.getConfiguration().iceTransportPolicy,waitTime:Oe}),me==null||me("ICE gathering completed",{sessionId:de,iceTransportPolicy:ae.getConfiguration().iceTransportPolicy,waitTime:Oe});break}yield Object(u.a)(.1*l.a.second)}const ue=(Z=this.peerConnection.getConfiguration().iceServers)!==null&&Z!==void 0?Z:[];for(const Oe of ue)Oe.credentialType=void 0;const _e=JSON.stringify(ue),Se=new D.Signal;return Se.setPayload(JSON.stringify(ae.localDescription)),Se.setSenderId(this.config.baseConfig.localPeerId),Se.setReceiverId(this.config.baseConfig.remotePeerId),Se.setIceServers(_e),Se.setIceTransportPolicy((te=this.peerConnection.getConfiguration().iceTransportPolicy)!==null&&te!==void 0?te:"all"),Se.setSessionType(D.SessionType.TELEOP),A.a.debug("Sending offer signal with description",{description:Se.getPayload()}),Se})}getLanOffer(){return W(this,void 0,void 0,function*(){const{peerConnection:z,gotOffer:Z}=this;if(!this.config.baseConfig.isLan)throw new Error('"getLanOffer" method can only be used with LAN connections. Internet connections should call the "getOffer" method.');if(Z)return void A.a.debug("Failed to generate offer because gotOffer was already called.");if(this.gotOffer=!0,j(this.peerConnection))return void A.a.debug("Failed to generate offer because the peer connection was inactive.");yield z.setLocalDescription(yield z.createOffer());const te=new Date().getTime();for(;;){if(new Date().getTime()-te>this.iceGatheringTimeoutMs)return void A.a.debug("Failed to generate offer because ICE gathering timed out.");if(z.iceGatheringState==="complete")break;yield Object(u.a)(.1*l.a.second)}const ce=z.localDescription;if(ce)return A.a.debug("Sending LAN offer signal with description",{description:ce}),ce;A.a.error("Failed to generate LAN offer description")})}handleLanAnswer(z){return W(this,void 0,void 0,function*(){const{peerConnection:Z}=this;if(!this.config.baseConfig.isLan)throw new Error('"handleLanAnswer" method can only be used with LAN connections. Internet connections should call the "handleSignal" method.');yield Z.setRemoteDescription(z)})}getChannelFromLabel(z){switch(z){case"stream.latest-ttl":return this.latestTtlStreamChannel;case"stream.reliable":return this.reliableStreamChannel;case"stream.latest-reliable":return this.latestReliableStreamChannel;case"stream.latest-try-once":return this.latestTryOnceStreamChannel}}sendOnChannel(z,Z){let te;try{te=Object(f.encode)(JSON.stringify(Z))}catch(ce){return void A.a.warn("Failed to encode RTC message",{error:ce})}try{z.send(te),this.sessionMetrics&&this.sessionMetrics.incrementLocalSent(Z)}catch(ce){A.a.warn("Failed to send message to channel",{error:ce,channel:z.label})}}channelNotRecognized(z){return z!==this.latestTtlStreamChannel&&z!==this.latestReliableStreamChannel&&z!==this.latestTryOnceStreamChannel&&z!==this.reliableStreamChannel}setupChannel(z){z.onmessage=Z=>{if(this.channelNotRecognized(z))return void A.a.warn("Received message on unrecognized data channel.");let te;try{te=JSON.parse(Object(f.decode)(Z.data))}catch(ce){return void A.a.warn("Received unparseable message on RTC stream data channel",{error:ce,channel:z.label})}te.communicationType==="message-chunk"?this.receiveChannelMessageChunk(z,te):this.receiveChannelMessage(z,te)},z.onerror=Z=>{A.a.warn(`Channel error: ${Z.error}`,{error:Z.error,sessionId:this.getSessionId(),channelLabel:z.label})},z.onopen=()=>{A.a.debug("Channel opened",{sessionId:this.getSessionId(),channelLabel:z.label})},z.onclose=()=>{const Z={bufferedAmount:z.bufferedAmount,sessionId:this.getSessionId(),channelLabel:z.label};this.closeCalled===!1?A.a.debug("Unexpected channel closed",Z):A.a.debug("Channel closed",Z)}}receiveChannelMessage(z,Z){const{config:te}=this,{remotePeerId:ce}=this.config.baseConfig;this.lastMessageTimestamp=new Date().getTime(),Z=function(ae){switch(ae.header.stream.streamType){case"twist":const{twist:he}=ae.payload;if(!he)throw Error("twist not in payload of RTC message with type twist");return{header:ae.header,payload:{twist:{linear:Object.assign({x:0,y:0,z:0},he.linear),angular:Object.assign({x:0,y:0,z:0},he.angular)}}};case"pose":const{pose:de}=ae.payload;if(!de)throw Error("pose not in payload of RTC message with type pose");return{header:ae.header,payload:{pose:{translation:Object.assign({x:0,y:0,z:0},de.translation),rotation:Object.assign({x:0,y:0,z:0,w:0},de.rotation)}}};case"pose-with-covariance":const{poseWithCovariance:me}=ae.payload;if(!me)throw Error("poseWithCovariance not in payload of RTC message with type pose-with-covariance");const fe=new Array(36).fill(0);return me.covariance.forEach((_e,Se)=>{if(Se>=36)throw Error("covariance contains more than 36 elements");fe[Se]=_e}),{header:ae.header,payload:{poseWithCovariance:{pose:{translation:Object.assign({x:0,y:0,z:0},me.pose.translation),rotation:Object.assign({x:0,y:0,z:0,w:0},me.pose.rotation)},covariance:fe}}};case"point":const{point:ue}=ae.payload;if(!ue)throw Error("point not in payload of RTC message with type point");return{header:ae.header,payload:{point:Object.assign({x:0,y:0,z:0},ue)}};default:return ae}}(Z),this.sessionMetrics&&this.sessionMetrics.incrementLocalReceived(Z),this.handleSystemMessage(z,Z)||(z===this.latestTryOnceStreamChannel||z===this.latestTtlStreamChannel||z===this.latestReliableStreamChannel)&&!this.isLatestMessage(Z)||te.baseConfig.receive(ce,Z)}receiveChannelMessageChunk(z,Z){const te=this.reassemblyTable.get(Z.id)||[];if(te.push(Z),te.length===Z.total){const ce=function(ae){const he=ae.sort((de,me)=>de.seq<me.seq?-1:1).map(de=>de.part).reduce((de,me)=>de+me);try{return JSON.parse(he)}catch{return void A.a.warn("Could not reassemble RTC message chunks")}}(te);return ce&&this.receiveChannelMessage(z,ce),void this.reassemblyTable.delete(Z.id)}this.reassemblyTable.set(Z.id,te),this.reassemblyTableLastTimestamp.set(Z.id,new Date().getTime())}handleSystemMessage(z,Z){var te,ce;const{config:ae}=this,{baseConfig:he}=ae,{remotePeerId:de}=he;switch(Z.header.stream.streamType){case"ping":return this.sendSystemMessage(z,{type:"pong",timestamp:M(Z.payload.ping)}),!0;case"pong":const me=new Date().getTime()-M(Z.payload.pong);return this.pingTimeMs=me,x.aggregate("rtc-ping-time",me),!0;case"streams-info":const{sessionMetrics:fe}=this,ue=(te=Z.payload.streamsInfo)===null||te===void 0?void 0:te.timestamp;return!!ue&&(fe==null||fe.updateRemoteMessagesCounts(Z),(ce=he.onStreamsInfoUpdate)===null||ce===void 0||ce.call(he,de,ue),!0);case"stream-control":return!0;default:return!1}}sendSystemMessage(z,Z){var te;const{localUserId:ce,localPeerId:ae}=this.config.baseConfig;if(z.readyState!=="open")return;const he={entityId:ce!=null?ce:ae,streamName:`$.${Z.type}`,streamType:Z.type};let de;switch(Z.type){case"ping":de={ping:new Date().getTime()};break;case"pong":de={pong:Z.timestamp};break;case"stream-control":de={streamControl:Z.streamControl};break;case"streams-info":de={streamsInfo:(te=this.sessionMetrics)===null||te===void 0?void 0:te.getLocalStreamsInfo(new Date().getTime())}}this.sendOnChannel(z,function(me,fe){return{header:{stream:me,created:Date.now(),frameId:""},payload:fe}}(he,de))}isLatestMessage(z){const Z=G(z.header.stream),te=(this.streamLatestTimestamp.get(Z)||0)<=z.header.created;return te&&this.streamLatestTimestamp.set(Z,z.header.created),te}}function J(oe){var z,Z;return{userId:(z=oe.getUserId())===null||z===void 0?void 0:z.getValue(),deviceId:(Z=oe.getDeviceId())===null||Z===void 0?void 0:Z.getValue(),organizationId:oe.getOrganizationId(),id:oe.getPeerId(),capabilities:[],capabilitySet:{}}}var re=function(oe,z,Z,te){return new(Z||(Z=Promise))(function(ce,ae){function he(fe){try{me(te.next(fe))}catch(ue){ae(ue)}}function de(fe){try{me(te.throw(fe))}catch(ue){ae(ue)}}function me(fe){var ue;fe.done?ce(fe.value):(ue=fe.value,ue instanceof Z?ue:new Z(function(_e){_e(ue)})).then(he,de)}me((te=te.apply(oe,z||[])).next())})};class se{constructor(z){this.config=z,this.grpcCallDeadline=5*l.a.second,this.refreshIntervalDelayMs=2*l.a.second,this.iceServersTtl=30*l.a.minute,this.connections=[],this.localConnections=[],this.isConnectionInitiator=new Map,this.isOutgoingConnection=new Map,this.peerDataChannelListeners=[];const{refreshIntervalDelayMs:Z}=this;this.refreshInterval=N({func:()=>re(this,void 0,void 0,function*(){try{yield this.update()}catch(te){A.a.warn("RTC refresh failed",{error:te})}}),delay:Z,immediate:!0})}send(z,Z,te){const ce=this.getActiveConnection(z);ce?ce.isReady()?ce.send(Z,te):A.a.warn("Send called with unready connection."):A.a.warn("Send called with no connection.")}controlRemoteStream(z,Z){const te=this.getActiveConnection(z);te?te.isReady()?te.controlRemoteStream(Z):A.a.warn("controlRemoteStream called with unready connection."):A.a.warn("controlRemoteStream called with no connection.")}getLocalPeer(){return re(this,void 0,void 0,function*(){for(;!this.localPeer;)yield Object(u.a)(.1*l.a.second);return J(this.localPeer)})}connect(z,Z){var te,ce,ae;return re(this,void 0,void 0,function*(){if(this.config.lanOnlyMode===!0)throw new Error("connect method called in local only mode.");const{track:he,signalingClient:de}=this.config,{localPeer:me,receiveSignalStream:fe,iceServers:ue}=this;if(!me||!fe||!ue)return void A.a.warn("Connect called prior to local peer, receiveSignalStream, and ICE servers ready");if(this.getActiveConnection(z))return void A.a.warn("Connect called for peer with existing connection.");if(this.isOutgoingConnection.get(z))return void A.a.warn("Connect called for peer with an existing outgoing connection offer.");this.isOutgoingConnection.set(z,!0);const _e=new ee(yield this.createRTCPeerConnection(ue,Z),{baseConfig:{isOffer:!0,isLan:!1,receive:(Le,xe)=>this.config.receive(Le,xe),onStreamsInfoUpdate:this.config.onStreamsInfoUpdate?(Le,xe)=>{var Ne,Ue;return(Ue=(Ne=this.config).onStreamsInfoUpdate)===null||Ue===void 0?void 0:Ue.call(Ne,Le,xe)}:void 0,track:this.config.lanOnlyMode?void 0:this.config.track,localUserId:(te=me.getUserId())===null||te===void 0?void 0:te.getValue(),localPeerId:me.getPeerId(),remotePeerId:z},remoteConfig:{}},Le=>this.onCustomDataChannel(z,Le)),Se=yield _e.getOffer();if(!Se)return A.a.error("Failed to generate offer."),void this.isOutgoingConnection.delete(z);A.a.debug("Sending offer."),he==null||he("Sending offer",Se);const Oe=new D.SendSignalRequest;Oe.setSignal(Se);const Pe=yield(()=>re(this,void 0,void 0,function*(){try{return yield de.sendSignal(Oe,yield this.getMetadata({}))}catch(Le){A.a.warn("Error when sending signal",{error:Le})}}))();if(!this.isOutgoingConnection.get(z))return void A.a.debug("No offer set after receiving offer signal response.");A.a.debug("Offer sent.");const Fe=(ce=Pe==null?void 0:Pe.getSessionId())===null||ce===void 0?void 0:ce.getValue(),De=(ae=Pe==null?void 0:Pe.getSessionCreatedTimestamp())===null||ae===void 0?void 0:ae.getValue();return Fe&&De?(_e.setSessionId(Fe),_e.setSessionCreatedTimestamp(De),this.isOutgoingConnection.delete(z),this.connections.push(_e),this.isConnectionInitiator.set(_e,!0),this.setupHandlers(_e),Fe):(A.a.warn("No session ID or no session created timestamp on send signal response."),void this.isOutgoingConnection.delete(z))})}connectLan(z){var Z,te;return re(this,void 0,void 0,function*(){const ce=new b(z),ae=new ee(yield this.createRTCPeerConnection([]),{baseConfig:{isOffer:!0,isLan:!0,receive:(fe,ue)=>this.config.receive(fe,ue),onStreamsInfoUpdate:this.config.onStreamsInfoUpdate?(fe,ue)=>{var _e,Se;return(Se=(_e=this.config).onStreamsInfoUpdate)===null||Se===void 0?void 0:Se.call(_e,fe,ue)}:void 0,track:this.config.lanOnlyMode?void 0:this.config.track,localUserId:(te=(Z=this.localPeer)===null||Z===void 0?void 0:Z.getUserId())===null||te===void 0?void 0:te.getValue(),localPeerId:"lan_client",remotePeerId:z}},fe=>this.onCustomDataChannel(z,fe)),he=yield ae.getLanOffer();if(!he)return A.a.warn("Could not generate LAN offer"),!1;const de=yield ce.postLanRtcOffer({offer:JSON.stringify(he)}),me=new RTCSessionDescription(JSON.parse(de.answer));return yield ae.handleLanAnswer(me),this.localConnections.push(ae),Object(T.v4)()})}getConnections(){return[...this.connections,...this.localConnections]}createCustomDataChannel(z,Z,te,ce,ae){const he=this.getActiveConnection(z);if(he&&this.isConnectionInitiator.has(he)){const me=he.peerConnection.createDataChannel("custom."+Z,te);return ce&&(me.binaryType="arraybuffer"),ae(z,me),()=>{}}const de=(me,fe)=>{z===me&&fe.label==="custom."+Z&&ae(z,fe)};return this.peerDataChannelListeners.push(de),()=>{this.peerDataChannelListeners=this.peerDataChannelListeners.filter(me=>me!==de)}}onCustomDataChannel(z,Z){this.peerDataChannelListeners.forEach(te=>te(z,Z))}getConnectionStatus(z){if(this.isOutgoingConnection.get(z))return"connecting";const Z=this.getActiveConnection(z);return Z?Z.isReady()?"connected":"connecting":"disconnected"}getConnectionStatsInfo(z){return re(this,void 0,void 0,function*(){const Z=this.getActiveConnection(z);if(Z)return yield Z.getConnectionStatsInfo()})}disconnect(z){return re(this,void 0,void 0,function*(){const Z=this.getActiveConnection(z);Z&&(yield Z.close())})}getPeers(){return re(this,void 0,void 0,function*(){if(this.config.lanOnlyMode)throw new Error("getPeers method cannot be used in local-only mode.");const{signalingClient:z}=this.config,Z=yield(()=>re(this,void 0,void 0,function*(){try{return yield z.getPeers(new D.GetPeersRequest,yield this.getMetadata({}))}catch(ae){A.a.warn("Error when getting peers",{error:ae})}}))();if(!Z)return[];const te=Z.getPeersList();if(!te)return[];const ce=ae=>{var he,de;return(de=(he=ae.getPeerCreatedTimestamp())===null||he===void 0?void 0:he.getValue())!==null&&de!==void 0?de:0};return te.sort((ae,he)=>ce(he)-ce(ae)).map(ae=>J(ae))})}getPing(z){const Z=this.getActiveConnection(z);if(Z)return Z.getPing();A.a.warn("Attempted to get ping time from inactive peer.")}getLastMessageTimestamp(z){const Z=this.getActiveConnection(z);if(Z)return Z.getLastMessageTimestamp();A.a.warn("Attempted to get last message time from inactive peer.")}getSessionMetricsMessageCounts(z){const Z=this.getActiveConnection(z);if(Z)return Z.getSessionMetricsMessageCounts();A.a.warn("Attempted to get session metrics counts from inactive peer.")}isReady(){if(this.config.lanOnlyMode)return!0;const{localPeer:z,receiveSignalStream:Z,iceServers:te}=this;return!!(z&&Z&&te)}shutdown(){return re(this,void 0,void 0,function*(){A.a.info("Shutdown called on RTC client"),yield this.refreshInterval.stop(),this.receiveSignalStream&&this.receiveSignalStream.cancel();const z=this.connections;this.connections=[],yield this.closeConnections(z);const{localPeer:Z}=this;if(!Z||this.config.lanOnlyMode)return;const{signalingClient:te}=this.config;yield(()=>re(this,void 0,void 0,function*(){try{const ce=new D.DeletePeerRequest;ce.setPeerId(Z.getPeerId()),yield te.deletePeer(ce,yield this.getMetadata({}))}catch(ce){return void A.a.warn("Error deleting local peer",{error:ce})}}))()})}createPeer(){return re(this,void 0,void 0,function*(){if(this.config.lanOnlyMode)throw new Error("createPeer method cannot be used in local-only mode.");const{signalingClient:z}=this.config,Z=yield(()=>re(this,void 0,void 0,function*(){try{return yield z.createPeer(new D.CreatePeerRequest,yield this.getMetadata({}))}catch(ce){throw new Error(`Was not able to create peer: ${ce}`)}}))(),te=Z==null?void 0:Z.getPeer();if(!te)throw new Error("Response did not provide peer.");return this.localPeer=te})}createReceiveSignalStream(){return re(this,void 0,void 0,function*(){if(this.config.lanOnlyMode)throw new Error("createReceiveSignalStream method cannot be used in local-only mode.");const{signalingClient:z}=this.config,{localPeer:Z,iceServers:te}=this;if(!Z||!te)return;const{receiveSignalStream:ce}=this;ce&&ce.cancel();const ae=new D.ReceiveSignalStreamRequest;ae.setPeerId(Z.getPeerId());const he=yield(()=>re(this,void 0,void 0,function*(){try{return z.receiveSignalStream(ae,yield this.getMetadata({hasDeadline:!1}))}catch(de){throw new Error(`Unable to create receive signal stream: ${de}`)}}))();if(!he)throw new Error("Response did not provide stream.");return he.on("data",de=>re(this,void 0,void 0,function*(){var me,fe,ue,_e;const Se=de.getSignal(),Oe=(me=Se==null?void 0:Se.getSessionId())===null||me===void 0?void 0:me.getValue(),Pe=Se==null?void 0:Se.getSenderId(),Fe=Se==null?void 0:Se.getReceiverId(),De=(fe=Se==null?void 0:Se.getSessionCreatedTimestamp())===null||fe===void 0?void 0:fe.getValue();if(!(Se&&Oe&&Pe&&Fe&&De))return void A.a.warn("Received signal with missing information.");const Le=this.getActiveConnection(Pe);if(Le)if(Le.getSessionId()!==Oe){if(A.a.debug("Received signal: different session for a peer we're already connected to."),(Le.getSessionCreatedTimestamp()||0)>De)return;const xe=new ee(yield this.createRTCPeerConnection(te),{baseConfig:{isOffer:!1,isLan:!1,receive:(Ne,Ue)=>this.config.receive(Ne,Ue),onStreamsInfoUpdate:this.config.onStreamsInfoUpdate?(Ne,Ue)=>{var We,ze;return(ze=(We=this.config).onStreamsInfoUpdate)===null||ze===void 0?void 0:ze.call(We,Ne,Ue)}:void 0,track:this.config.lanOnlyMode?void 0:this.config.track,localPeerId:Z.getPeerId(),localUserId:(_e=Z.getUserId())===null||_e===void 0?void 0:_e.getValue(),remotePeerId:Pe},remoteConfig:{sessionId:Oe,sessionCreatedTimestamp:De}},Ne=>this.onCustomDataChannel(Pe,Ne));yield xe.handleSignal(Se),this.connections.push(xe)}else A.a.debug("Received signal: for an existing connection."),yield Le.handleSignal(Se);else{A.a.debug("Received signal: new connection.");const xe=new ee(yield this.createRTCPeerConnection(te),{baseConfig:{isOffer:!1,isLan:!1,receive:(Ne,Ue)=>this.config.receive(Ne,Ue),onStreamsInfoUpdate:this.config.onStreamsInfoUpdate?(Ne,Ue)=>{var We,ze;return(ze=(We=this.config).onStreamsInfoUpdate)===null||ze===void 0?void 0:ze.call(We,Ne,Ue)}:void 0,track:this.config.lanOnlyMode?void 0:this.config.track,localPeerId:Z.getPeerId(),localUserId:(ue=Z.getUserId())===null||ue===void 0?void 0:ue.getValue(),remotePeerId:Pe},remoteConfig:{sessionId:Oe,sessionCreatedTimestamp:De}},Ne=>this.onCustomDataChannel(Pe,Ne));yield xe.handleSignal(Se),this.connections.push(xe)}})),he.on("end",()=>{he.cancel(),this.receiveSignalStream=void 0}),he.on("error",de=>{switch(de.code){case L.StatusCode.CANCELLED:case L.StatusCode.UNAVAILABLE:case L.StatusCode.UNKNOWN:A.a.debug("Receive signal stream error",{error:de});break;case L.StatusCode.UNAUTHENTICATED:A.a.warn("Receive signal stream error",{error:de});break;default:A.a.error("Receive signal stream error",{error:de})}he.cancel(),this.receiveSignalStream=void 0}),this.receiveSignalStream=he})}createRTCPeerConnection(z,Z){var te;return re(this,void 0,void 0,function*(){const ce=Z==null?void 0:Z.rtcIceTransportPolicy,ae=Z==null?void 0:Z.rtcIceServerProtocol,he=(fe,ue)=>typeof fe=="string"?fe.endsWith(`transport=${ue}`):fe.some(_e=>_e.endsWith(`transport=${ue}`)),de=z.filter(fe=>{return ce!=="relay"||(typeof(ue=fe.urls)=="string"?ue.startsWith("turn:"):ue.some(_e=>_e.startsWith("turn:")));var ue}).filter(fe=>ae!=="udp"||he(fe.urls,"udp")).filter(fe=>ae!=="tcp"||he(fe.urls,"tcp")),me=(te=this.config.alternateRTCPeerConnection)!==null&&te!==void 0?te:window.RTCPeerConnection;if(!me)throw new Error("RTCPeerConnection class not found. WebRTC must be enabled.");return new me(Object.assign({iceServers:de,iceTransportPolicy:ce},Z))})}closeConnections(z){return re(this,void 0,void 0,function*(){const Z=yield F(z.map(te=>re(this,void 0,void 0,function*(){yield te.close()})));for(const te of Z)A.a.warn("Request to close session failed",{error:te})})}getActiveConnection(z){return this.getConnections().find(Z=>Z.getRemotePeerId()===z&&Z.isActive())}update(){var z;return re(this,void 0,void 0,function*(){if(this.localConnections=this.localConnections.filter(de=>de.isActive()),this.config.lanOnlyMode)return;const{signalingClient:Z}=this.config;if(!this.localPeer||!this.receiveSignalStream||!this.iceServers)return this.localPeer||(yield this.createPeer()),this.iceServers||(yield this.updateIceServers()),void(this.receiveSignalStream||(yield this.createReceiveSignalStream()));yield this.closeConnections(this.connections.filter(de=>!de.isActive())),this.connections=this.connections.filter(de=>de.isActive());const{localPeer:te}=this,ce=this.connections.filter(de=>de.getSessionId).map(de=>M(de.getSessionId()));te.setSessionIdsList(ce);const ae=new D.RefreshPeerRequest;ae.setPeer(te);try{yield Z.refreshPeer(ae,yield this.getMetadata({}))}catch(de){de.code===L.StatusCode.NOT_FOUND?(A.a.warn("Peer expired, creating new peer",{peerId:te.getPeerId()}),yield this.reset()):A.a.warn("Error calling RefreshPeer",{error:de})}const he=yield this.getPeers();for(const de of this.connections)de.setRemoteDeviceId((z=he.find(me=>me.id===de.getRemotePeerId()))===null||z===void 0?void 0:z.deviceId)})}reset(){return re(this,void 0,void 0,function*(){yield this.closeConnections(this.connections),this.connections=[],this.isOutgoingConnection=new Map,yield this.createPeer(),yield this.createReceiveSignalStream()})}updateIceServers(){return re(this,void 0,void 0,function*(){if(this.config.lanOnlyMode)return;const{iceServersLastUpdate:z,iceServersTtl:Z}=this,te=new Date().getTime();if(!z||te-z>Z)try{const ce=(yield this.config.signalingClient.getIceServers(new D.GetIceServersRequest,yield this.getMetadata({}))).getIceServers();this.iceServers=JSON.parse(ce),this.iceServersLastUpdate=te}catch(ce){A.a.warn("Error in updateIceServers",{error:ce})}})}setupHandlers(z){const{peerConnection:Z}=z,te=z.getSessionCreatedTimestamp();Z.onconnectionstatechange=()=>re(this,void 0,void 0,function*(){const ce=Z.connectionState;if(te)switch(ce){case"connected":x.aggregate("rtc-connect-time",new Date().getTime()-te);break;case"failed":x.increment("rtc-connect-failed")}})}getMetadata(z){return re(this,void 0,void 0,function*(){if(this.config.lanOnlyMode)throw new Error("getMetadata method cannot be called in local-only mode");const{getToken:Z}=this.config,{grpcCallDeadline:te}=this,{hasDeadline:ce}=z,ae=ce===!1?void 0:new Date().getTime()+te;return{authorization:yield Z(),deadline:ae}})}}},,function(e,t,r){r.r(t),r.d(t,"LogClient",function(){return g});var n=r(26),i=function(s,o,l,u){return new(l||(l=Promise))(function(m,R){function y(w){try{c(u.next(w))}catch(E){R(E)}}function S(w){try{c(u.throw(w))}catch(E){R(E)}}function c(w){var E;w.done?m(w.value):(E=w.value,E instanceof l?E:new l(function(P){P(E)})).then(y,S)}c((u=u.apply(s,o||[])).next())})};class g extends n.a{log(o){return i(this,void 0,void 0,function*(){yield this.fetch("logs",{method:"POST",body:JSON.stringify({logs:o}),allowUnsafeRetries:!0})})}}}])})})(dist);let FORMANT_API_URL="https://api.formant.io";typeof window!="undefined"&&(FORMANT_API_URL=window.FORMANT_API_URL||FORMANT_API_URL);let urlParams$1=new URLSearchParams("");typeof window!="undefined"&&(urlParams$1=new URLSearchParams(window.location.search));const moduleName$1=urlParams$1.get("formant_dev");moduleName$1&&(FORMANT_API_URL="https://api-dev.formant.io");function delay(e){return new Promise(t=>setTimeout(t,e))}function defined(e,t){if(e!==void 0)return e;throw new Error(t||"Value is undefined")}class App{static sendAppMessage(t){window.parent.postMessage(t,"*")}static getCurrentModuleContext(){let t=new URLSearchParams("");return typeof window!="undefined"&&(t=new URLSearchParams(window.location.search)),t.get("module")}static isModule(){return this.getCurrentModuleContext()!==null}static goToTime(t){this.sendAppMessage({type:"go_to_time",time:t.getTime()})}static showMessage(t){this.sendAppMessage({type:"show_message",message:t})}static requestModuleData(){const t=this.getCurrentModuleContext();if(!t)throw new Error("No module context");this.sendAppMessage({type:"request_module_data",module:t})}static setModuleDateTimeRange(t,r){const n=this.getCurrentModuleContext();if(!n)throw new Error("No module context");this.sendAppMessage({type:"set_module_data_time_range",module:n,before:t,after:r||0})}static refreshAuthToken(){const t=this.getCurrentModuleContext();if(!t)throw new Error("No module context");this.sendAppMessage({type:"refresh_auth_token",module:t})}static setupModuleMenus(t){const r=this.getCurrentModuleContext();if(!r)throw new Error("No module context");this.sendAppMessage({type:"setup_module_menus",module:r,menus:t})}static addMenuListener(t){window.addEventListener("message",r=>{const n=r.data;n.type==="module_menu_item_clicked"&&t(n.menu)})}static addAccessTokenRefreshListener(t){window.addEventListener("message",r=>{const n=r.data;n.type==="auth_token"&&t(n.token)})}static addModuleDataListener(t){window.addEventListener("message",r=>{const n=r.data;n.type==="module_data"&&t({streams:n.streams,time:n.time,queryRange:n.queryRange})})}}const Te=class{static async login(t,r){try{const n=await fetch(`${FORMANT_API_URL}/v1/admin/auth/login`,{method:"POST",body:JSON.stringify({email:t,password:r}),headers:{"Content-Type":"application/json"}}),i=await n.json();if(n.status!==200)throw new Error(i.message);return await Te.loginWithToken(i.authentication.accessToken,i.authentication.refreshToken),i.authentication}catch(n){return Te.waitingForAuth.forEach(i=>i(!1)),Te.waitingForAuth=[],Promise.reject(n)}}static async loginWithToken(t,r){const n=JSON.parse(atob(t.split(".")[1]));try{let i=n.sub;n["formant:claims"]&&n["formant:claims"].userId&&(i=n["formant:claims"].userId);const g=await fetch(`${FORMANT_API_URL}/v1/admin/users/${i}`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Bearer "+t}}),s=await g.json();if(g.status!==200)throw new Error(s.message);Te.currentUser=s,Te.token=t,Te.waitingForAuth.forEach(o=>o(!0))}catch(i){console.error(i),Te.waitingForAuth.forEach(g=>g(!1))}Te.waitingForAuth=[],r&&(Te.refreshToken=r,setInterval(async()=>{if(Te.refreshToken){const g=await(await fetch(`${FORMANT_API_URL}/v1/admin/auth/refresh`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({refreshToken:Te.refreshToken})})).json();Te.token=g.authentication.accessToken}},1e3*60*60))}static isAuthenticated(){return Te.token!==void 0}static getCurrentUser(){return Te.currentUser}static async waitTilAuthenticated(){return Te.token!==void 0?!0:new Promise(t=>{Te.waitingForAuth.push(function(r){t(r)})})}static async listenForRefresh(){App.addAccessTokenRefreshListener(t=>{this.loginWithToken(t)}),setInterval(async()=>{App.refreshAuthToken()},1e3*60*60)}};let Authentication=Te;Me(Authentication,"token"),Me(Authentication,"refreshToken"),Me(Authentication,"currentUser"),Me(Authentication,"defaultDeviceId"),Me(Authentication,"waitingForAuth",[]);class DataChannel{constructor(t){Me(this,"ready",!1);Me(this,"listeners",[]);Me(this,"binaryListeners",[]);Me(this,"error");Me(this,"decoder",new TextDecoder);this.dataChannel=t,this.dataChannel.binaryType="arraybuffer",this.dataChannel.onopen=()=>{this.ready=!0},this.dataChannel.onclose=()=>{this.ready=!1},this.dataChannel.onerror=r=>{console.error(r),this.error="An error occurred in DataChannel"},this.dataChannel.onmessage=r=>{this.listeners.forEach(n=>{const i=new Uint8Array(r.data),g=this.decoder.decode(i);n(g)}),this.binaryListeners.forEach(n=>{n(new Uint8Array(r.data))})}}async waitTilReady(){return this.ready?!0:new Promise((r,n)=>{let i=window.setInterval(()=>{this.ready&&(window.clearInterval(i),r(!0)),this.error&&n(this.error)},10)})}send(t){if(!this.ready)throw new Error("Connection has been closed");this.dataChannel.send(t)}sendBinary(t){if(!this.ready)throw new Error("Connection has been closed");this.dataChannel.send(t)}addListener(t){this.listeners.push(t)}removeListener(t){const r=this.listeners.indexOf(t);if(r===-1)throw new Error("Could not find data channel listener to remove");if(this.error)throw new Error(this.error);this.listeners.splice(r,1)}addBinaryListener(t){this.binaryListeners.push(t)}removeBinaryListener(t){const r=this.binaryListeners.indexOf(t);if(r===-1)throw new Error("Could not find data channel listener to remove");if(this.error)throw new Error(this.error);this.binaryListeners.splice(r,1)}}class CaptureStream{constructor(t){Me(this,"token");this.captureSession=t}async ingestJSON(t){if(!this.token){const n=await(await fetch(`${FORMANT_API_URL}/v1/admin/capture-sessions/${this.captureSession.code}/authenticate`,{method:"POST"})).json();this.token=n.token}await fetch(`${FORMANT_API_URL}/v1/ingest`,{method:"POST",body:JSON.stringify({deviceId:this.captureSession.deviceId,name:this.captureSession.streamName,type:"json",points:[[Date.now(),JSON.stringify(t)]]}),headers:{"Content-Type":"application/json",Authorization:"Bearer "+this.token}})}}class Manipulator{constructor(t,r){Me(this,"currentListeners",[]);Me(this,"onRealtimeMessage",(t,r)=>{r.payload.jointState&&this.currentListeners.forEach(n=>n(r.payload.jointState))});this.device=t,this.config=r}async synchronize(){this.device.addRealtimeListener(this.onRealtimeMessage),this.device.startListeningToRealtimeDataStream(this.config.currentJointStateStream)}async desynchronize(){this.device.removeRealtimeListener(this.onRealtimeMessage),this.device.stopListeningToRealtimeDataStream(this.config.currentJointStateStream)}async addCurrentJointStateListener(t){this.currentListeners.push(t)}}class RequestDataChannel{constructor(t,r,n){Me(this,"channel");Me(this,"requestIdToResponseMap",new Map);this.device=t,this.channel_name=r,this.timeout=n}}class BinaryRequestDataChannel extends RequestDataChannel{constructor(){super(...arguments);Me(this,"RESPONSE_SUCCESS_BYTE",0);Me(this,"decoder",new TextDecoder)}generateBinaryId(){const t=new Uint8Array(16);for(let r=0;r<t.length;r++)t[r]=Math.floor(Math.random()*256);return t}async initialize(){this.channel=await this.device.createCustomDataChannel(this.channel_name),this.channel.addBinaryListener(t=>{const n=t.slice(0,16).toString();if(n.length===0)throw new Error("Invalid response");const i=t.slice(16);if(i.length===0)throw new Error("Invalid response");this.requestIdToResponseMap.has(n)&&this.requestIdToResponseMap.set(n,i)})}async request(t){if(this.channel||await this.initialize(),!this.channel)throw new Error("Failed to create channel");const{channel:r,requestIdToResponseMap:n,timeout:i}=this;await r.waitTilReady();const g=this.generateBinaryId(),s=g.toString();n.set(s,!0),r.sendBinary(new Uint8Array([...g,...t]));const o=new Date().getTime();for(;new Date().getTime()<o+i;)if(await delay(50),n.has(s)){const l=n.get(s);if(l!==!0){n.delete(s);const u=l[0]===this.RESPONSE_SUCCESS_BYTE,m=l.slice(1);if(u)return m;throw{name:"AdapterError",message:this.decoder.decode(m)}}}throw n.delete(s),{name:"TimeoutError",message:`Request timed out after ${i/1e3} seconds`}}}class TextRequestDataChannel extends RequestDataChannel{generateTextId(){return Math.random().toString(36).substring(2)+"-"+Math.random().toString(36).substring(2)}async initialize(){this.channel=await this.device.createCustomDataChannel(this.channel_name),this.channel.addListener(t=>{const r=JSON.parse(t),{id:n,data:i,error:g}=r;if(!n)throw new Error("Invalid response");if(!i&&!g)throw new Error("Invalid response");this.requestIdToResponseMap.has(n)&&this.requestIdToResponseMap.set(n,r)})}async request(t){if(this.channel||await this.initialize(),!this.channel)throw new Error("Failed to create channel");const{channel:r,requestIdToResponseMap:n,timeout:i}=this;await r.waitTilReady();const g=this.generateTextId();n.set(g,!0),r.send(JSON.stringify({id:g,data:t}));const s=new Date().getTime();for(;new Date().getTime()<s+i;)if(await delay(50),n.has(g)){const o=n.get(g);if(o!==!0){n.delete(g);const{data:l,error:u}=o;if(l)return l;if(u)throw{name:"AdapterError",message:u}}}throw n.delete(g),{name:"TimeoutError",message:`Request timed out after ${i/1e3} seconds`}}}class Device{constructor(t,r,n){Me(this,"rtcClient");Me(this,"realtimeListeners",[]);Me(this,"handleMessage",(t,r)=>{this.realtimeListeners.forEach(n=>n(t,r))});this.id=t,this.name=r,this.organizationId=n}async getLatestTelemetry(){return(await(await fetch(`${FORMANT_API_URL}/v1/queries/stream-current-value`,{method:"POST",body:JSON.stringify({deviceIds:[this.id]}),headers:{"Content-Type":"application/json",Authorization:"Bearer "+Authentication.token}})).json()).items}async getConfiguration(){let t=await fetch(`${FORMANT_API_URL}/v1/admin/devices/${this.id}`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Bearer "+Authentication.token}});const r=await t.json();if(!r.state.reportedConfiguration)throw new Error("Device has no configuration, has it ever been turned on?");const n=r.state.reportedConfiguration.version;return t=await fetch(`${FORMANT_API_URL}/v1/admin/devices/${this.id}/configurations/${n}`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Bearer "+Authentication.token}}),(await t.json()).document}async getFileUrl(t){return(await(await fetch(`${FORMANT_API_URL}/v1/admin/files/query`,{method:"POST",body:JSON.stringify({fileId:[t]}),headers:{"Content-Type":"application/json",Authorization:"Bearer "+Authentication.token}})).json()).fileUrls}async startRealtimeConnection(){if(this.rtcClient)throw new Error(`Already created realtime connection to device ${this.id}`);{const t=new dist.exports.RtcClient({signalingClient:new dist.exports.SignalingPromiseClient(FORMANT_API_URL,null,null),getToken:async()=>defined(Authentication.token,"Realtime when user isn't authorized"),receive:this.handleMessage});for(;!t.isReady();)await delay(100);const n=(await t.getPeers()).find(g=>g.deviceId===this.id);if(!n)throw new Error("Cannot find peer, is the robot offline?");const i=n.id;for(await t.connect(i);t.getConnectionStatus(i)!=="connected";)await delay(100);this.rtcClient=t}}addRealtimeListener(t){this.realtimeListeners.push(t)}removeRealtimeListener(t){const r=this.realtimeListeners.indexOf(t);if(r===-1)throw new Error("Could not find realtime listener to remove");this.realtimeListeners.splice(r,1)}async getRealtimeVideoStreams(){var n,i,g;const t=await this.getConfiguration(),r=[];for(const s of(n=t.teleop.hardwareStreams)!=null?n:[])s.rtcStreamType==="h264-video-frame"&&r.push({name:s.name});for(const s of(i=t.teleop.rosStreams)!=null?i:[])s.topicType=="formant/H264VideoFrame"&&r.push({name:s.topicName});for(const s of(g=t.teleop.customStreams)!=null?g:[])s.rtcStreamType==="h264-video-frame"&&r.push({name:s.name});return r}async getRealtimeManipulators(){var n;const t=await this.getConfiguration(),r=[];for(const i of(n=t.teleop.rosStreams)!=null?n:[])i.topicType=="sensor_msgs/JointState"&&r.push(new Manipulator(this,{currentJointStateStream:{name:i.topicName},plannedJointStateStream:i.plannedTopic?{name:i.plannedTopic}:void 0,planValidStream:i.planValidTopic?{name:i.planValidTopic}:void 0,endEffectorStream:i.endEffectorTopic?{name:i.endEffectorTopic}:void 0,endEffectorLinkName:i.endEffectorLinkName,baseReferenceFrame:i.baseReferenceFrame,localFrame:i.localFrame}));return r}async startListeningToRealtimeVideo(t){const r=defined(this.rtcClient,"Realtime connection has not been started"),n=await this.getRemotePeer();r.controlRemoteStream(defined(n).id,{streamName:t.name,enable:!0,pipeline:"rtc"})}async stopListeningToRealtimeVideo(t){const r=defined(this.rtcClient,"Realtime connection has not been started"),n=await this.getRemotePeer();r.controlRemoteStream(defined(n).id,{streamName:t.name,enable:!1,pipeline:"rtc"})}async startListeningToRealtimeDataStream(t){const r=defined(this.rtcClient,"Realtime connection has not been started"),n=await this.getRemotePeer();r.controlRemoteStream(defined(n).id,{streamName:t.name,enable:!0,pipeline:"rtc"})}async stopListeningToRealtimeDataStream(t){const r=defined(this.rtcClient,"Realtime connection has not been started"),n=await this.getRemotePeer();r.controlRemoteStream(defined(n).id,{streamName:t.name,enable:!1,pipeline:"rtc"})}async enableRealtimeTelemetryPriorityIngestion(t){const r=defined(this.rtcClient,"Realtime connection has not been started"),n=await this.getRemotePeer();r.controlRemoteStream(defined(n).id,{streamName:t,enablePriorityUpload:!0,pipeline:"telemetry"})}async disableRealtimeTelemetryPriorityIngestion(t){const r=defined(this.rtcClient,"Realtime connection has not been started"),n=await this.getRemotePeer();r.controlRemoteStream(defined(n).id,{streamName:t,enablePriorityUpload:!1,pipeline:"telemetry"})}async getRemotePeer(){const r=(await defined(this.rtcClient,"Realtime connection has not been started").getPeers()).find(n=>n.deviceId===this.id);return defined(r,"Could not find remote peer for device "+this.id)}async stopRealtimeConnection(){if(this.rtcClient)await this.rtcClient.disconnect(this.id);else throw new Error(`Realtime connection hasn't been started for ${this.id}`)}async getAvailableCommands(){return(await(await fetch(`${FORMANT_API_URL}/v1/admin/command-templates/`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Bearer "+Authentication.token}})).json()).items.map(n=>({name:n.name,id:n.id,command:n.command,description:n.description,parameterEnabled:n.parameterEnabled,parameterValue:n.parameterValue,parameterMeta:n.parameterMeta}))}async sendCommand(t,r,n,i){var R;const s=(await this.getAvailableCommands()).find(y=>y.name===t);if(!s)throw new Error(`Could not find command with name "${t}"`);let o;if(r===void 0)if(s.parameterEnabled&&s.parameterValue)o=s.parameterValue;else throw new Error("Command has no default parameter value, you must provide one");else o=r;let l={value:o,scrubberTime:(n||new Date).toISOString(),meta:st(st({},s.parameterMeta),i)};return(await(await fetch(`${FORMANT_API_URL}/v1/admin/commands`,{method:"POST",body:JSON.stringify({commandTemplateId:s.id,organizationId:this.organizationId,deviceId:this.id,command:s.command,parameter:l,userId:(R=Authentication.currentUser)==null?void 0:R.id}),headers:{"Content-Type":"application/json",Authorization:"Bearer "+Authentication.token}})).json()).fileUrls}async createCustomDataChannel(t,r){const n=defined(this.rtcClient,"Realtime connection has not been started"),i=await this.getRemotePeer();return new Promise(s=>{n.createCustomDataChannel(defined(i).id,t,st({ordered:!0},r),!1,(o,l)=>{const u=new DataChannel(l);s(u)})})}createCustomRequestDataChannel(t,r=3e3){return new TextRequestDataChannel(this,t,r)}createCustomBinaryRequestDataChannel(t,r=3e3){return new BinaryRequestDataChannel(this,t,r)}async createCaptureStream(t){const n=await(await fetch(`${FORMANT_API_URL}/v1/admin/capture-sessions`,{method:"POST",body:JSON.stringify({deviceId:this.id,streamName:t,tags:{}}),headers:{"Content-Type":"application/json",Authorization:"Bearer "+Authentication.token}})).json();return new CaptureStream(n)}async getTelemetry(t,r,n,i){return await Fleet.getTelemetry(this.id,t,r,n,i)}async getTelemetryStreams(){var o,l;const t=await this.getConfiguration(),r=await fetch(`${FORMANT_API_URL}/v1/queries/metadata/stream-names`,{method:"POST",body:JSON.stringify({deviceIds:[this.id]}),headers:{"Content-Type":"application/json",Authorization:"Bearer "+Authentication.token}}),n=[],i=[];return(l=(o=t.telemetry)==null?void 0:o.streams)==null||l.forEach(u=>{u.disabled!==!0&&n.push(u.name),u.onDemand===!0&&i.push(u.name)}),console.log(i),(await r.json()).items.filter(u=>!n.includes(u)).map(u=>({name:u,onDemand:i.includes(u)}))}}const Ae=class{static async setDefaultDevice(t){Ae.defaultDeviceId=t}static async getCurrentDevice(){if(!Authentication.token)throw new Error("Not authenticated");if(!Ae.defaultDeviceId)throw new Error("No known default device");const r=await(await fetch(`${FORMANT_API_URL}/v1/admin/devices/${Ae.defaultDeviceId}`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Bearer "+Authentication.token}})).json(),n=r.name,i=new Device(Ae.defaultDeviceId,n,r.organizationId);return Ae.knownContext.push(new WeakRef(i)),i}static async getDevice(t){if(!Authentication.token)throw new Error("Not authenticated");const n=await(await fetch(`${FORMANT_API_URL}/v1/admin/devices/${t}`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Bearer "+Authentication.token}})).json(),i=n.name,g=new Device(t,i,n.organizationId);return Ae.knownContext.push(new WeakRef(g)),g}static async getDevices(){if(!Authentication.token)throw new Error("Not authenticated");const r=await(await fetch(`${FORMANT_API_URL}/v1/admin/device-details/query`,{method:"POST",body:JSON.stringify({enabled:!0,type:"default"}),headers:{"Content-Type":"application/json",Authorization:"Bearer "+Authentication.token}})).json();return r.items,r.items.map(n=>new Device(n.id,n.name,n.organizationId))}static async getOnlineDevices(){if(!Authentication.token)throw new Error("Not authenticated");const n=(await(await fetch(`${FORMANT_API_URL}/v1/queries/online-devices`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Bearer "+Authentication.token}})).json()).items;return(await Ae.getDevices()).filter(g=>n.includes(g.id))}static async getRealtimeDevices(){if(!Authentication.token)throw new Error("Not authenticated");const n=(await(await fetch(`${FORMANT_API_URL}/v1/signaling/peers`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Bearer "+Authentication.token}})).json()).items.map(g=>g.deviceId);return(await Ae.getDevices()).filter(g=>n.includes(g.id))}static async getLatestTelemetry(t){let r=t;return t&&!Array.isArray(t)&&(t=[t]),(await(await fetch(`${FORMANT_API_URL}/v1/queries/stream-current-value`,{method:"POST",body:JSON.stringify({deviceIds:r}),headers:{"Content-Type":"application/json",Authorization:"Bearer "+Authentication.token}})).json()).items}static async getTelemetry(t,r,n,i,g){let s=t;Array.isArray(t)||(s=[t]);let o=r;return Array.isArray(r)||(o=[r]),(await(await fetch(`${FORMANT_API_URL}/v1/queries/queries`,{method:"POST",body:JSON.stringify({deviceIds:s,end:i.toISOString(),names:o,start:n.toISOString(),tags:g}),headers:{"Content-Type":"application/json",Authorization:"Bearer "+Authentication.token}})).json()).items}static async getFileUrl(t){const n=await(await fetch(`${FORMANT_API_URL}/v1/admin/files/query`,{method:"POST",body:JSON.stringify({fileIds:[t]}),headers:{"Content-Type":"application/json",Authorization:"Bearer "+Authentication.token}})).json();if(n.fileUrls.length===0)throw new Error("File not found");return n.fileUrls[0]}};let Fleet=Ae;Me(Fleet,"defaultDeviceId"),Me(Fleet,"knownContext",[]);class KeyValue{static async set(t,r){try{const n=await fetch(FORMANT_API_URL+"/v1/admin/key-value",{method:"POST",body:JSON.stringify({organizationId:defined(Authentication.currentUser).organizationId,key:t,value:r}),headers:{"Content-Type":"application/json",Authorization:"Bearer "+Authentication.token}}),i=await n.json();if(n.status!==200)throw new Error(i.message)}catch(n){throw n}}static async get(t){try{const r=await fetch(FORMANT_API_URL+`/v1/admin/key-value/${t}`,{method:"GET",body:JSON.stringify({organizationId:defined(Authentication.currentUser).organizationId}),headers:{"Content-Type":"application/json",Authorization:"Bearer "+Authentication.token}}),n=await r.json();if(r.status!==200)throw new Error(n.message);return n.value}catch(r){throw r}}}let urlParams=new URLSearchParams("");typeof window!="undefined"&&(urlParams=new URLSearchParams(window.location.search));const urlDevice=urlParams.get("device");urlDevice&&Fleet.setDefaultDevice(urlDevice);const urlAuth=urlParams.get("auth");urlAuth&&Authentication.loginWithToken(urlAuth);const moduleName=urlParams.get("module");moduleName&&Authentication.listenForRefresh(),exports.App=App,exports.Authentication=Authentication,exports.BinaryRequestDataChannel=BinaryRequestDataChannel,exports.CaptureStream=CaptureStream,exports.DataChannel=DataChannel,exports.Device=Device,exports.Fleet=Fleet,exports.KeyValue=KeyValue,exports.Manipulator=Manipulator,exports.TextRequestDataChannel=TextRequestDataChannel,Object.defineProperty(exports,"__esModule",{value:!0}),exports[Symbol.toStringTag]="Module"});
|