@formant/realtime-sdk 1.4.1 → 1.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see index.js.LICENSE.txt */
2
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.FormantRealtimeSDK=t():e.FormantRealtimeSDK=t()}(self,()=>(()=>{var e={5475:(e,t,r)=>{var n={};e.exports=n,n.themes={};var i=r(9208),o=n.styles=r(9253),s=Object.defineProperties,a=new RegExp(/[\r\n]+/g);n.supportsColor=r(3822).supportsColor,void 0===n.enabled&&(n.enabled=!1!==n.supportsColor()),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,t){if(!n.enabled)return e+"";var r=o[t];return!r&&t in n?n[t](e):r.open+e+r.close};var l=/[|\\{}()[\]^$+*?.]/g;function u(e){var t=function e(){return h.apply(e,arguments)};return t._styles=e,t.__proto__=f,t}var c,p=(c={},o.grey=o.gray,Object.keys(o).forEach((function(e){o[e].closeRe=new RegExp(function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(l,"\\$&")}(o[e].close),"g"),c[e]={get:function(){return u(this._styles.concat(e))}}})),c),f=s((function(){}),p);function h(){var e=Array.prototype.slice.call(arguments),t=e.map((function(e){return null!=e&&e.constructor===String?e:i.inspect(e)})).join(" ");if(!n.enabled||!t)return t;for(var r=-1!=t.indexOf("\n"),s=this._styles,l=s.length;l--;){var u=o[s[l]];t=u.open+t.replace(u.closeRe,u.open)+u.close,r&&(t=t.replace(a,(function(e){return u.close+e+u.open})))}return t}n.setTheme=function(e){if("string"!=typeof e)for(var t in e)!function(t){n[t]=function(r){if("object"==typeof e[t]){var i=r;for(var o in e[t])i=n[e[t][o]](i);return i}return n[e[t]](r)}}(t);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 d=function(e,t){var r=t.split("");return(r=r.map(e)).join("")};for(var g in n.trap=r(8740),n.zalgo=r(6798),n.maps={},n.maps.america=r(3427)(n),n.maps.zebra=r(8479)(n),n.maps.rainbow=r(4517)(n),n.maps.random=r(6948)(n),n.maps)!function(e){n[e]=function(t){return d(n.maps[e],t)}}(g);s(n,function(){var e={};return Object.keys(p).forEach((function(t){e[t]={get:function(){return u([t])}}})),e}())},8740:e=>{e.exports=function(e,t){var r="";e=(e=e||"Run the trap, drop the bass").split("");var n={a:["@","Ą","Ⱥ","Ʌ","Δ","Λ","Д"],b:["ß","Ɓ","Ƀ","ɮ","β","฿"],c:["©","Ȼ","Ͼ"],d:["Ð","Ɗ","Ԁ","ԁ","Ԃ","ԃ"],e:["Ë","ĕ","Ǝ","ɘ","Σ","ξ","Ҽ","੬"],f:["Ӻ"],g:["ɢ"],h:["Ħ","ƕ","Ң","Һ","Ӈ","Ԋ"],i:["༏"],j:["Ĵ"],k:["ĸ","Ҡ","Ӄ","Ԟ"],l:["Ĺ"],m:["ʍ","Ӎ","ӎ","Ԡ","ԡ","൩"],n:["Ñ","ŋ","Ɲ","Ͷ","Π","Ҋ"],o:["Ø","õ","ø","Ǿ","ʘ","Ѻ","ם","۝","๏"],p:["Ƿ","Ҏ"],q:["্"],r:["®","Ʀ","Ȑ","Ɍ","ʀ","Я"],s:["§","Ϟ","ϟ","Ϩ"],t:["Ł","Ŧ","ͳ"],u:["Ʊ","Ս"],v:["ט"],w:["Ш","Ѡ","Ѽ","൰"],x:["Ҳ","Ӿ","Ӽ","ӽ"],y:["¥","Ұ","Ӌ"],z:["Ƶ","ɀ"]};return e.forEach((function(e){e=e.toLowerCase();var t=n[e]||[" "],i=Math.floor(Math.random()*t.length);r+=void 0!==n[e]?n[e][i]:e})),r}},6798:e=>{e.exports=function(e,t){e=e||" he is here ";var r={up:["̍","̎","̄","̅","̿","̑","̆","̐","͒","͗","͑","̇","̈","̊","͂","̓","̈","͊","͋","͌","̃","̂","̌","͐","̀","́","̋","̏","̒","̓","̔","̽","̉","ͣ","ͤ","ͥ","ͦ","ͧ","ͨ","ͩ","ͪ","ͫ","ͬ","ͭ","ͮ","ͯ","̾","͛","͆","̚"],down:["̖","̗","̘","̙","̜","̝","̞","̟","̠","̤","̥","̦","̩","̪","̫","̬","̭","̮","̯","̰","̱","̲","̳","̹","̺","̻","̼","ͅ","͇","͈","͉","͍","͎","͓","͔","͕","͖","͙","͚","̣"],mid:["̕","̛","̀","́","͘","̡","̢","̧","̨","̴","̵","̶","͜","͝","͞","͟","͠","͢","̸","̷","͡"," ҉"]},n=[].concat(r.up,r.down,r.mid);function i(e){return Math.floor(Math.random()*e)}function o(e){var t=!1;return n.filter((function(r){t=r===e})),t}return function(e,t){var n,s,a="";for(s in(t=t||{}).up=void 0===t.up||t.up,t.mid=void 0===t.mid||t.mid,t.down=void 0===t.down||t.down,t.size=void 0!==t.size?t.size:"maxi",e=e.split(""))if(!o(s)){switch(a+=e[s],n={up:0,down:0,mid:0},t.size){case"mini":n.up=i(8),n.mid=i(2),n.down=i(8);break;case"maxi":n.up=i(16)+3,n.mid=i(4)+1,n.down=i(64)+3;break;default:n.up=i(8)+1,n.mid=i(6)/2,n.down=i(8)+1}var l=["up","mid","down"];for(var u in l)for(var c=l[u],p=0;p<=n[c];p++)t[c]&&(a+=r[c][i(r[c].length)])}return a}(e,t)}},3427:e=>{e.exports=function(e){return function(t,r,n){if(" "===t)return t;switch(r%3){case 0:return e.red(t);case 1:return e.white(t);case 2:return e.blue(t)}}}},4517:e=>{e.exports=function(e){var t=["red","yellow","green","blue","magenta"];return function(r,n,i){return" "===r?r:e[t[n++%t.length]](r)}}},6948:e=>{e.exports=function(e){var t=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta","brightYellow","brightRed","brightGreen","brightBlue","brightWhite","brightCyan","brightMagenta"];return function(r,n,i){return" "===r?r:e[t[Math.round(Math.random()*(t.length-2))]](r)}}},8479:e=>{e.exports=function(e){return function(t,r,n){return r%2==0?t:e.inverse(t)}}},9253:e=>{var t={};e.exports=t;var r={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],brightRed:[91,39],brightGreen:[92,39],brightYellow:[93,39],brightBlue:[94,39],brightMagenta:[95,39],brightCyan:[96,39],brightWhite:[97,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],bgGray:[100,49],bgGrey:[100,49],bgBrightRed:[101,49],bgBrightGreen:[102,49],bgBrightYellow:[103,49],bgBrightBlue:[104,49],bgBrightMagenta:[105,49],bgBrightCyan:[106,49],bgBrightWhite:[107,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(r).forEach((function(e){var n=r[e],i=t[e]=[];i.open="["+n[0]+"m",i.close="["+n[1]+"m"}))},124:e=>{"use strict";e.exports=function(e,t){var r=(t=t||process.argv||[]).indexOf("--"),n=/^-{1,2}/.test(e)?"":"--",i=t.indexOf(n+e);return-1!==i&&(-1===r||i<r)}},3822:(e,t,r)=>{"use strict";var n=r(2213),i=r(124),o=process.env,s=void 0;function a(e){return function(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}(function(e){if(!1===s)return 0;if(i("color=16m")||i("color=full")||i("color=truecolor"))return 3;if(i("color=256"))return 2;if(e&&!e.isTTY&&!0!==s)return 0;var t=s?1:0;if("win32"===process.platform){var r=n.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(r[0])>=10&&Number(r[2])>=10586?Number(r[2])>=14931?3:2:1}if("CI"in o)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((function(e){return e in o}))||"codeship"===o.CI_NAME?1:t;if("TEAMCITY_VERSION"in o)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(o.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in o){var a=parseInt((o.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(o.TERM_PROGRAM){case"iTerm.app":return a>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test("xterm")?2:/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test("xterm")||"COLORTERM"in o?1:t}(e))}i("no-color")||i("no-colors")||i("color=false")?s=!1:(i("color")||i("colors")||i("color=true")||i("color=always"))&&(s=!0),"FORCE_COLOR"in o&&(s=0===o.FORCE_COLOR.length||0!==parseInt(o.FORCE_COLOR,10)),e.exports={supportsColor:a,stdout:a(process.stdout),stderr:a(process.stderr)}},1158:(e,t,r)=>{var n=r(5475);e.exports=n},7147:(e,t,r)=>{e.exports=r(4968)},4968:(e,t,r)=>{var n=r(8636)((function e(t,r){return(r=r||{}).namespace=t,r.prod=!0,r.dev=!1,r.force||e.force?e.yep(r):e.nope(r)}));e.exports=n},8636:e=>{var t=[],r=[],n=function(){};function i(e){return!~t.indexOf(e)&&(t.push(e),!0)}function o(e){n=e}function s(e){for(var r=[],n=0;n<t.length;n++)if(t[n].async)r.push(t[n]);else if(t[n](e))return!0;return!!r.length&&new Promise((function(t){Promise.all(r.map((function(t){return t(e)}))).then((function(e){t(e.some(Boolean))}))}))}function a(e){return!~r.indexOf(e)&&(r.push(e),!0)}function l(){n.apply(n,arguments)}function u(e){for(var t=0;t<r.length;t++)e=r[t].apply(r[t],arguments);return e}function c(e,t){var r=Object.prototype.hasOwnProperty;for(var n in t)r.call(t,n)&&(e[n]=t[n]);return e}function p(e){return e.enabled=!1,e.modify=a,e.set=o,e.use=i,c((function(){return!1}),e)}function f(e){return e.enabled=!0,e.modify=a,e.set=o,e.use=i,c((function(){var t=Array.prototype.slice.call(arguments,0);return l.call(l,e,u(t,e)),!0}),e)}e.exports=function(e){return e.introduce=c,e.enabled=s,e.process=u,e.modify=a,e.write=l,e.nope=p,e.yep=f,e.set=o,e.use=i,e}},6093:(e,t,r)=>{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,(o=i.key,s=void 0,s=function(e,t){if("object"!==n(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!==n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===n(s)?s:String(s)),i)}var o,s}function o(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}var s,a,l=r(1342).codes,u=l.ERR_AMBIGUOUS_ARGUMENT,c=l.ERR_INVALID_ARG_TYPE,p=l.ERR_INVALID_ARG_VALUE,f=l.ERR_INVALID_RETURN_VALUE,h=l.ERR_MISSING_ARGS,d=r(9801),g=r(9208).inspect,y=r(9208).types,v=y.isPromise,m=y.isRegExp,b=r(3225)(),w=r(1937)(),S=r(9818)("RegExp.prototype.test");new Map;function _(){var e=r(5656);s=e.isDeepEqual,a=e.isDeepStrictEqual}var E=!1,O=e.exports=P,R={};function T(e){if(e.message instanceof Error)throw e.message;throw new d(e)}function j(e,t,r,n){if(!r){var i=!1;if(0===t)i=!0,n="No value argument passed to `assert.ok()`";else if(n instanceof Error)throw n;var o=new d({actual:r,expected:!0,message:n,operator:"==",stackStartFn:e});throw o.generatedMessage=i,o}}function P(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];j.apply(void 0,[P,t.length].concat(t))}O.fail=function e(t,r,n,i,o){var s,a=arguments.length;if(0===a)s="Failed";else if(1===a)n=t,t=void 0;else{if(!1===E){E=!0;var l=process.emitWarning?process.emitWarning:console.warn.bind(console);l("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")}2===a&&(i="!=")}if(n instanceof Error)throw n;var u={actual:t,expected:r,operator:void 0===i?"fail":i,stackStartFn:o||e};void 0!==n&&(u.message=n);var c=new d(u);throw s&&(c.message=s,c.generatedMessage=!0),c},O.AssertionError=d,O.ok=P,O.equal=function e(t,r,n){if(arguments.length<2)throw new h("actual","expected");t!=r&&T({actual:t,expected:r,message:n,operator:"==",stackStartFn:e})},O.notEqual=function e(t,r,n){if(arguments.length<2)throw new h("actual","expected");t==r&&T({actual:t,expected:r,message:n,operator:"!=",stackStartFn:e})},O.deepEqual=function e(t,r,n){if(arguments.length<2)throw new h("actual","expected");void 0===s&&_(),s(t,r)||T({actual:t,expected:r,message:n,operator:"deepEqual",stackStartFn:e})},O.notDeepEqual=function e(t,r,n){if(arguments.length<2)throw new h("actual","expected");void 0===s&&_(),s(t,r)&&T({actual:t,expected:r,message:n,operator:"notDeepEqual",stackStartFn:e})},O.deepStrictEqual=function e(t,r,n){if(arguments.length<2)throw new h("actual","expected");void 0===s&&_(),a(t,r)||T({actual:t,expected:r,message:n,operator:"deepStrictEqual",stackStartFn:e})},O.notDeepStrictEqual=function e(t,r,n){if(arguments.length<2)throw new h("actual","expected");void 0===s&&_();a(t,r)&&T({actual:t,expected:r,message:n,operator:"notDeepStrictEqual",stackStartFn:e})},O.strictEqual=function e(t,r,n){if(arguments.length<2)throw new h("actual","expected");w(t,r)||T({actual:t,expected:r,message:n,operator:"strictEqual",stackStartFn:e})},O.notStrictEqual=function e(t,r,n){if(arguments.length<2)throw new h("actual","expected");w(t,r)&&T({actual:t,expected:r,message:n,operator:"notStrictEqual",stackStartFn:e})};var x=o((function e(t,r,n){var i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),r.forEach((function(e){e in t&&(void 0!==n&&"string"==typeof n[e]&&m(t[e])&&S(t[e],n[e])?i[e]=n[e]:i[e]=t[e])}))}));function A(e,t,r,n,i,o){if(!(r in e)||!a(e[r],t[r])){if(!n){var s=new x(e,i),l=new x(t,i,e),u=new d({actual:s,expected:l,operator:"deepStrictEqual",stackStartFn:o});throw u.actual=e,u.expected=t,u.operator=o.name,u}T({actual:e,expected:t,message:n,operator:o.name,stackStartFn:o})}}function I(e,t,r,i){if("function"!=typeof t){if(m(t))return S(t,e);if(2===arguments.length)throw new c("expected",["Function","RegExp"],t);if("object"!==n(e)||null===e){var o=new d({actual:e,expected:t,message:r,operator:"deepStrictEqual",stackStartFn:i});throw o.operator=i.name,o}var a=Object.keys(t);if(t instanceof Error)a.push("name","message");else if(0===a.length)throw new p("error",t,"may not be an empty object");return void 0===s&&_(),a.forEach((function(n){"string"==typeof e[n]&&m(t[n])&&S(t[n],e[n])||A(e,t,n,r,a,i)})),!0}return void 0!==t.prototype&&e instanceof t||!Error.isPrototypeOf(t)&&!0===t.call({},e)}function C(e){if("function"!=typeof e)throw new c("fn","Function",e);try{e()}catch(e){return e}return R}function k(e){return v(e)||null!==e&&"object"===n(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function M(e){return Promise.resolve().then((function(){var t;if("function"==typeof e){if(!k(t=e()))throw new f("instance of Promise","promiseFn",t)}else{if(!k(e))throw new c("promiseFn",["Function","Promise"],e);t=e}return Promise.resolve().then((function(){return t})).then((function(){return R})).catch((function(e){return e}))}))}function F(e,t,r,i){if("string"==typeof r){if(4===arguments.length)throw new c("error",["Object","Error","Function","RegExp"],r);if("object"===n(t)&&null!==t){if(t.message===r)throw new u("error/message",'The error message "'.concat(t.message,'" is identical to the message.'))}else if(t===r)throw new u("error/message",'The error "'.concat(t,'" is identical to the message.'));i=r,r=void 0}else if(null!=r&&"object"!==n(r)&&"function"!=typeof r)throw new c("error",["Object","Error","Function","RegExp"],r);if(t===R){var o="";r&&r.name&&(o+=" (".concat(r.name,")")),o+=i?": ".concat(i):".";var s="rejects"===e.name?"rejection":"exception";T({actual:void 0,expected:r,operator:e.name,message:"Missing expected ".concat(s).concat(o),stackStartFn:e})}if(r&&!I(t,r,i,e))throw t}function B(e,t,r,n){if(t!==R){if("string"==typeof r&&(n=r,r=void 0),!r||I(t,r)){var i=n?": ".concat(n):".",o="doesNotReject"===e.name?"rejection":"exception";T({actual:t,expected:r,operator:e.name,message:"Got unwanted ".concat(o).concat(i,"\n")+'Actual message: "'.concat(t&&t.message,'"'),stackStartFn:e})}throw t}}function D(e,t,r,i,o){if(!m(t))throw new c("regexp","RegExp",t);var s="match"===o;if("string"!=typeof e||S(t,e)!==s){if(r instanceof Error)throw r;var a=!r;r=r||("string"!=typeof e?'The "string" argument must be of type string. Received type '+"".concat(n(e)," (").concat(g(e),")"):(s?"The input did not match the regular expression ":"The input was expected to not match the regular expression ")+"".concat(g(t),". Input:\n\n").concat(g(e),"\n"));var l=new d({actual:e,expected:t,message:r,operator:o,stackStartFn:i});throw l.generatedMessage=a,l}}function L(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];j.apply(void 0,[L,t.length].concat(t))}O.throws=function e(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];F.apply(void 0,[e,C(t)].concat(n))},O.rejects=function e(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return M(t).then((function(t){return F.apply(void 0,[e,t].concat(n))}))},O.doesNotThrow=function e(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];B.apply(void 0,[e,C(t)].concat(n))},O.doesNotReject=function e(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return M(t).then((function(t){return B.apply(void 0,[e,t].concat(n))}))},O.ifError=function e(t){if(null!=t){var r="ifError got unwanted exception: ";"object"===n(t)&&"string"==typeof t.message?0===t.message.length&&t.constructor?r+=t.constructor.name:r+=t.message:r+=g(t);var i=new d({actual:t,expected:null,operator:"ifError",message:r,stackStartFn:e}),o=t.stack;if("string"==typeof o){var s=o.split("\n");s.shift();for(var a=i.stack.split("\n"),l=0;l<s.length;l++){var u=a.indexOf(s[l]);if(-1!==u){a=a.slice(0,u);break}}i.stack="".concat(a.join("\n"),"\n").concat(s.join("\n"))}throw i}},O.match=function e(t,r,n){D(t,r,n,e,"match")},O.doesNotMatch=function e(t,r,n){D(t,r,n,e,"doesNotMatch")},O.strict=b(L,O,{equal:O.strictEqual,deepEqual:O.deepStrictEqual,notEqual:O.notStrictEqual,notDeepEqual:O.notDeepStrictEqual}),O.strict.strict=O.strict},9801:(e,t,r)=>{"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function o(e,t,r){return(t=a(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,a(n.key),n)}}function a(e){var t=function(e,t){if("object"!==g(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==g(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===g(t)?t:String(t)}function l(e,t){if(t&&("object"===g(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return u(e)}function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c(e){var t="function"==typeof Map?new Map:void 0;return(c=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return p(e,arguments,d(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),h(n,e)})(e)}function p(e,t,r){return(p=f()?Reflect.construct.bind():function(e,t,r){var n=[null];n.push.apply(n,t);var i=new(Function.bind.apply(e,n));return r&&h(i,r.prototype),i}).apply(null,arguments)}function f(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function h(e,t){return(h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function g(e){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var y=r(9208).inspect,v=r(1342).codes.ERR_INVALID_ARG_TYPE;function m(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}var b="",w="",S="",_="",E={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function O(e){var t=Object.keys(e),r=Object.create(Object.getPrototypeOf(e));return t.forEach((function(t){r[t]=e[t]})),Object.defineProperty(r,"message",{value:e.message}),r}function R(e){return y(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function T(e,t,r){var n="",i="",o=0,s="",a=!1,l=R(e),u=l.split("\n"),c=R(t).split("\n"),p=0,f="";if("strictEqual"===r&&"object"===g(e)&&"object"===g(t)&&null!==e&&null!==t&&(r="strictEqualObject"),1===u.length&&1===c.length&&u[0]!==c[0]){var h=u[0].length+c[0].length;if(h<=10){if(!("object"===g(e)&&null!==e||"object"===g(t)&&null!==t||0===e&&0===t))return"".concat(E[r],"\n\n")+"".concat(u[0]," !== ").concat(c[0],"\n")}else if("strictEqualObject"!==r){if(h<(process.stderr&&process.stderr.isTTY?process.stderr.columns:80)){for(;u[0][p]===c[0][p];)p++;p>2&&(f="\n ".concat(function(e,t){if(t=Math.floor(t),0==e.length||0==t)return"";var r=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+=e.substring(0,r-e.length)}(" ",p),"^"),p=0)}}}for(var d=u[u.length-1],y=c[c.length-1];d===y&&(p++<2?s="\n ".concat(d).concat(s):n=d,u.pop(),c.pop(),0!==u.length&&0!==c.length);)d=u[u.length-1],y=c[c.length-1];var v=Math.max(u.length,c.length);if(0===v){var O=l.split("\n");if(O.length>30)for(O[26]="".concat(b,"...").concat(_);O.length>27;)O.pop();return"".concat(E.notIdentical,"\n\n").concat(O.join("\n"),"\n")}p>3&&(s="\n".concat(b,"...").concat(_).concat(s),a=!0),""!==n&&(s="\n ".concat(n).concat(s),n="");var T=0,j=E[r]+"\n".concat(w,"+ actual").concat(_," ").concat(S,"- expected").concat(_),P=" ".concat(b,"...").concat(_," Lines skipped");for(p=0;p<v;p++){var x=p-o;if(u.length<p+1)x>1&&p>2&&(x>4?(i+="\n".concat(b,"...").concat(_),a=!0):x>3&&(i+="\n ".concat(c[p-2]),T++),i+="\n ".concat(c[p-1]),T++),o=p,n+="\n".concat(S,"-").concat(_," ").concat(c[p]),T++;else if(c.length<p+1)x>1&&p>2&&(x>4?(i+="\n".concat(b,"...").concat(_),a=!0):x>3&&(i+="\n ".concat(u[p-2]),T++),i+="\n ".concat(u[p-1]),T++),o=p,i+="\n".concat(w,"+").concat(_," ").concat(u[p]),T++;else{var A=c[p],I=u[p],C=I!==A&&(!m(I,",")||I.slice(0,-1)!==A);C&&m(A,",")&&A.slice(0,-1)===I&&(C=!1,I+=","),C?(x>1&&p>2&&(x>4?(i+="\n".concat(b,"...").concat(_),a=!0):x>3&&(i+="\n ".concat(u[p-2]),T++),i+="\n ".concat(u[p-1]),T++),o=p,i+="\n".concat(w,"+").concat(_," ").concat(I),n+="\n".concat(S,"-").concat(_," ").concat(A),T+=2):(i+=n,n="",1!==x&&0!==p||(i+="\n ".concat(I),T++))}if(T>20&&p<v-2)return"".concat(j).concat(P,"\n").concat(i,"\n").concat(b,"...").concat(_).concat(n,"\n")+"".concat(b,"...").concat(_)}return"".concat(j).concat(a?P:"","\n").concat(i).concat(n).concat(s).concat(f)}var j=function(e,t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(m,e);var r,n,o,a,c,p=(r=m,n=f(),function(){var e,t=d(r);if(n){var i=d(this).constructor;e=Reflect.construct(t,arguments,i)}else e=t.apply(this,arguments);return l(this,e)});function m(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,m),"object"!==g(e)||null===e)throw new v("options","Object",e);var r=e.message,n=e.operator,i=e.stackStartFn,o=e.actual,s=e.expected,a=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=r)t=p.call(this,String(r));else if(process.stderr&&process.stderr.isTTY&&(process.stderr&&process.stderr.getColorDepth&&1!==process.stderr.getColorDepth()?(b="",w="",_="",S=""):(b="",w="",_="",S="")),"object"===g(o)&&null!==o&&"object"===g(s)&&null!==s&&"stack"in o&&o instanceof Error&&"stack"in s&&s instanceof Error&&(o=O(o),s=O(s)),"deepStrictEqual"===n||"strictEqual"===n)t=p.call(this,T(o,s,n));else if("notDeepStrictEqual"===n||"notStrictEqual"===n){var c=E[n],f=R(o).split("\n");if("notStrictEqual"===n&&"object"===g(o)&&null!==o&&(c=E.notStrictEqualObject),f.length>30)for(f[26]="".concat(b,"...").concat(_);f.length>27;)f.pop();t=1===f.length?p.call(this,"".concat(c," ").concat(f[0])):p.call(this,"".concat(c,"\n\n").concat(f.join("\n"),"\n"))}else{var h=R(o),d="",y=E[n];"notDeepEqual"===n||"notEqual"===n?(h="".concat(E[n],"\n\n").concat(h)).length>1024&&(h="".concat(h.slice(0,1021),"...")):(d="".concat(R(s)),h.length>512&&(h="".concat(h.slice(0,509),"...")),d.length>512&&(d="".concat(d.slice(0,509),"...")),"deepEqual"===n||"equal"===n?h="".concat(y,"\n\n").concat(h,"\n\nshould equal\n\n"):d=" ".concat(n," ").concat(d)),t=p.call(this,"".concat(h).concat(d))}return Error.stackTraceLimit=a,t.generatedMessage=!r,Object.defineProperty(u(t),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),t.code="ERR_ASSERTION",t.actual=o,t.expected=s,t.operator=n,Error.captureStackTrace&&Error.captureStackTrace(u(t),i),t.stack,t.name="AssertionError",l(t)}return o=m,(a=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:t,value:function(e,t){return y(this,i(i({},t),{},{customInspect:!1,depth:0}))}}])&&s(o.prototype,a),c&&s(o,c),Object.defineProperty(o,"prototype",{writable:!1}),m}(c(Error),y.custom);e.exports=j},1342:(e,t,r)=>{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,(o=i.key,s=void 0,s=function(e,t){if("object"!==n(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!==n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===n(s)?s:String(s)),i)}var o,s}function o(e,t){return(o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=l(e);if(t){var i=l(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return a(this,r)}}function a(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u,c,p={};function f(e,t,r){r||(r=Error);var n=function(r){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&o(e,t)}(c,r);var n,a,l,u=s(c);function c(r,n,i){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(o=u.call(this,function(e,r,n){return"string"==typeof t?t:t(e,r,n)}(r,n,i))).code=e,o}return n=c,a&&i(n.prototype,a),l&&i(n,l),Object.defineProperty(n,"prototype",{writable:!1}),n}(r);p[e]=n}function h(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map((function(e){return String(e)})),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}f("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),f("ERR_INVALID_ARG_TYPE",(function(e,t,i){var o,s,a,l;if(void 0===u&&(u=r(6093)),u("string"==typeof e,"'name' must be a string"),"string"==typeof t&&(s="not ",t.substr(!a||a<0?0:+a,s.length)===s)?(o="must not be",t=t.replace(/^not /,"")):o="must be",function(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}(e," argument"))l="The ".concat(e," ").concat(o," ").concat(h(t,"type"));else{var c=function(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}(e,".")?"property":"argument";l='The "'.concat(e,'" ').concat(c," ").concat(o," ").concat(h(t,"type"))}return l+=". Received type ".concat(n(i))}),TypeError),f("ERR_INVALID_ARG_VALUE",(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===c&&(c=r(9208));var i=c.inspect(t);return i.length>128&&(i="".concat(i.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(n,". Received ").concat(i)}),TypeError,RangeError),f("ERR_INVALID_RETURN_VALUE",(function(e,t,r){var i;return i=r&&r.constructor&&r.constructor.name?"instance of ".concat(r.constructor.name):"type ".concat(n(r)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(i,".")}),TypeError),f("ERR_MISSING_ARGS",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];void 0===u&&(u=r(6093)),u(t.length>0,"At least one arg needs to be specified");var i="The ",o=t.length;switch(t=t.map((function(e){return'"'.concat(e,'"')})),o){case 1:i+="".concat(t[0]," argument");break;case 2:i+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:i+=t.slice(0,o-1).join(", "),i+=", and ".concat(t[o-1]," arguments")}return"".concat(i," must be specified")}),TypeError),e.exports.codes=p},5656:(e,t,r)=>{"use strict";function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,s,a=[],l=!0,u=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(a.push(n.value),a.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(u)throw i}}return a}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var s=void 0!==/a/g.flags,a=function(e){var t=[];return e.forEach((function(e){return t.push(e)})),t},l=function(e){var t=[];return e.forEach((function(e,r){return t.push([r,e])})),t},u=Object.is?Object.is:r(5968),c=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},p=Number.isNaN?Number.isNaN:r(7838);function f(e){return e.call.bind(e)}var h=f(Object.prototype.hasOwnProperty),d=f(Object.prototype.propertyIsEnumerable),g=f(Object.prototype.toString),y=r(9208).types,v=y.isAnyArrayBuffer,m=y.isArrayBufferView,b=y.isDate,w=y.isMap,S=y.isRegExp,_=y.isSet,E=y.isNativeError,O=y.isBoxedPrimitive,R=y.isNumberObject,T=y.isStringObject,j=y.isBooleanObject,P=y.isBigIntObject,x=y.isSymbolObject,A=y.isFloat32Array,I=y.isFloat64Array;function C(e){if(0===e.length||e.length>10)return!0;for(var t=0;t<e.length;t++){var r=e.charCodeAt(t);if(r<48||r>57)return!0}return 10===e.length&&e>=Math.pow(2,32)}function k(e){return Object.keys(e).filter(C).concat(c(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function M(e,t){if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0}function F(e,t,r,n){if(e===t)return 0!==e||(!r||u(e,t));if(r){if("object"!==o(e))return"number"==typeof e&&p(e)&&p(t);if("object"!==o(t)||null===e||null===t)return!1;if(Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1}else{if(null===e||"object"!==o(e))return(null===t||"object"!==o(t))&&e==t;if(null===t||"object"!==o(t))return!1}var i,a,l,c,f=g(e);if(f!==g(t))return!1;if(Array.isArray(e)){if(e.length!==t.length)return!1;var h=k(e),d=k(t);return h.length===d.length&&D(e,t,r,n,1,h)}if("[object Object]"===f&&(!w(e)&&w(t)||!_(e)&&_(t)))return!1;if(b(e)){if(!b(t)||Date.prototype.getTime.call(e)!==Date.prototype.getTime.call(t))return!1}else if(S(e)){if(!S(t)||(l=e,c=t,!(s?l.source===c.source&&l.flags===c.flags:RegExp.prototype.toString.call(l)===RegExp.prototype.toString.call(c))))return!1}else if(E(e)||e instanceof Error){if(e.message!==t.message||e.name!==t.name)return!1}else{if(m(e)){if(r||!A(e)&&!I(e)){if(!function(e,t){return e.byteLength===t.byteLength&&0===M(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}(e,t))return!1}else if(!function(e,t){if(e.byteLength!==t.byteLength)return!1;for(var r=0;r<e.byteLength;r++)if(e[r]!==t[r])return!1;return!0}(e,t))return!1;var y=k(e),C=k(t);return y.length===C.length&&D(e,t,r,n,0,y)}if(_(e))return!(!_(t)||e.size!==t.size)&&D(e,t,r,n,2);if(w(e))return!(!w(t)||e.size!==t.size)&&D(e,t,r,n,3);if(v(e)){if(a=t,(i=e).byteLength!==a.byteLength||0!==M(new Uint8Array(i),new Uint8Array(a)))return!1}else if(O(e)&&!function(e,t){return R(e)?R(t)&&u(Number.prototype.valueOf.call(e),Number.prototype.valueOf.call(t)):T(e)?T(t)&&String.prototype.valueOf.call(e)===String.prototype.valueOf.call(t):j(e)?j(t)&&Boolean.prototype.valueOf.call(e)===Boolean.prototype.valueOf.call(t):P(e)?P(t)&&BigInt.prototype.valueOf.call(e)===BigInt.prototype.valueOf.call(t):x(t)&&Symbol.prototype.valueOf.call(e)===Symbol.prototype.valueOf.call(t)}(e,t))return!1}return D(e,t,r,n,0)}function B(e,t){return t.filter((function(t){return d(e,t)}))}function D(e,t,r,n,i,o){if(5===arguments.length){o=Object.keys(e);var s=Object.keys(t);if(o.length!==s.length)return!1}for(var a=0;a<o.length;a++)if(!h(t,o[a]))return!1;if(r&&5===arguments.length){var l=c(e);if(0!==l.length){var u=0;for(a=0;a<l.length;a++){var p=l[a];if(d(e,p)){if(!d(t,p))return!1;o.push(p),u++}else if(d(t,p))return!1}var f=c(t);if(l.length!==f.length&&B(t,f).length!==u)return!1}else{var g=c(t);if(0!==g.length&&0!==B(t,g).length)return!1}}if(0===o.length&&(0===i||1===i&&0===e.length||0===e.size))return!0;if(void 0===n)n={val1:new Map,val2:new Map,position:0};else{var y=n.val1.get(e);if(void 0!==y){var v=n.val2.get(t);if(void 0!==v)return y===v}n.position++}n.val1.set(e,n.position),n.val2.set(t,n.position);var m=V(e,t,r,o,n,i);return n.val1.delete(e),n.val2.delete(t),m}function L(e,t,r,n){for(var i=a(e),o=0;o<i.length;o++){var s=i[o];if(F(t,s,r,n))return e.delete(s),!0}return!1}function N(e){switch(o(e)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":e=+e;case"number":if(p(e))return!1}return!0}function z(e,t,r){var n=N(r);return null!=n?n:t.has(n)&&!e.has(n)}function U(e,t,r,n,i){var o=N(r);if(null!=o)return o;var s=t.get(o);return!(void 0===s&&!t.has(o)||!F(n,s,!1,i))&&(!e.has(o)&&F(n,s,!1,i))}function G(e,t,r,n,i,o){for(var s=a(e),l=0;l<s.length;l++){var u=s[l];if(F(r,u,i,o)&&F(n,t.get(u),i,o))return e.delete(u),!0}return!1}function V(e,t,r,i,s,u){var c=0;if(2===u){if(!function(e,t,r,n){for(var i=null,s=a(e),l=0;l<s.length;l++){var u=s[l];if("object"===o(u)&&null!==u)null===i&&(i=new Set),i.add(u);else if(!t.has(u)){if(r)return!1;if(!z(e,t,u))return!1;null===i&&(i=new Set),i.add(u)}}if(null!==i){for(var c=a(t),p=0;p<c.length;p++){var f=c[p];if("object"===o(f)&&null!==f){if(!L(i,f,r,n))return!1}else if(!r&&!e.has(f)&&!L(i,f,r,n))return!1}return 0===i.size}return!0}(e,t,r,s))return!1}else if(3===u){if(!function(e,t,r,i){for(var s=null,a=l(e),u=0;u<a.length;u++){var c=n(a[u],2),p=c[0],f=c[1];if("object"===o(p)&&null!==p)null===s&&(s=new Set),s.add(p);else{var h=t.get(p);if(void 0===h&&!t.has(p)||!F(f,h,r,i)){if(r)return!1;if(!U(e,t,p,f,i))return!1;null===s&&(s=new Set),s.add(p)}}}if(null!==s){for(var d=l(t),g=0;g<d.length;g++){var y=n(d[g],2),v=y[0],m=y[1];if("object"===o(v)&&null!==v){if(!G(s,e,v,m,r,i))return!1}else if(!(r||e.has(v)&&F(e.get(v),m,!1,i)||G(s,e,v,m,!1,i)))return!1}return 0===s.size}return!0}(e,t,r,s))return!1}else if(1===u)for(;c<e.length;c++){if(!h(e,c)){if(h(t,c))return!1;for(var p=Object.keys(e);c<p.length;c++){var f=p[c];if(!h(t,f)||!F(e[f],t[f],r,s))return!1}return p.length===Object.keys(t).length}if(!h(t,c)||!F(e[c],t[c],r,s))return!1}for(c=0;c<i.length;c++){var d=i[c];if(!F(e[d],t[d],r,s))return!1}return!0}e.exports={isDeepEqual:function(e,t){return F(e,t,!1)},isDeepStrictEqual:function(e,t){return F(e,t,!0)}}},2530:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((0,o.isAsync)(e))return function(...t){const r=t.pop();return a(e.apply(this,t),r)};return(0,n.default)((function(t,r){var n;try{n=e.apply(this,t)}catch(e){return r(e)}if(n&&"function"==typeof n.then)return a(n,r);r(null,n)}))};var n=s(r(6172)),i=s(r(6857)),o=r(1214);function s(e){return e&&e.__esModule?e:{default:e}}function a(e,t){return e.then(e=>{l(t,null,e)},e=>{l(t,e&&(e instanceof Error||e.message)?e:new Error(e))})}function l(e,t,r){try{e(t,r)}catch(e){(0,i.default)(e=>{throw e},e)}}e.exports=t.default},108:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=c(r(7804)),i=c(r(1371)),o=c(r(7485)),s=c(r(6297)),a=c(r(6083)),l=c(r(1214)),u=c(r(6280));function c(e){return e&&e.__esModule?e:{default:e}}function p(e,t,r){r=(0,s.default)(r);var n=0,o=0,{length:l}=e,u=!1;function c(e,t){!1===e&&(u=!0),!0!==u&&(e?r(e):++o!==l&&t!==i.default||r(null))}for(0===l&&r(null);n<l;n++)t(e[n],n,(0,a.default)(c))}function f(e,t,r){return(0,o.default)(e,1/0,t,r)}t.default=(0,u.default)((function(e,t,r){return((0,n.default)(e)?p:f)(e,(0,l.default)(t),r)}),3),e.exports=t.default},7485:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=s(r(6513)),i=s(r(1214)),o=s(r(6280));function s(e){return e&&e.__esModule?e:{default:e}}t.default=(0,o.default)((function(e,t,r,o){return(0,n.default)(t)(e,(0,i.default)(r),o)}),4),e.exports=t.default},5313:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(r(7485)),i=o(r(6280));function o(e){return e&&e.__esModule?e:{default:e}}t.default=(0,i.default)((function(e,t,r){return(0,n.default)(e,1,t,r)}),3),e.exports=t.default},5236:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a(r(108)),i=a(r(4344)),o=a(r(1214)),s=a(r(6280));function a(e){return e&&e.__esModule?e:{default:e}}t.default=(0,s.default)((function(e,t,r){return(0,n.default)(e,(0,i.default)((0,o.default)(t)),r)}),3),e.exports=t.default},6959:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r,n){let i=!1,s=!1,a=!1,l=0,u=0;function c(){l>=t||a||i||(a=!0,e.next().then(({value:e,done:t})=>{if(!s&&!i){if(a=!1,t)return i=!0,void(l<=0&&n(null));l++,r(e,u,p),u++,c()}}).catch(f))}function p(e,t){if(l-=1,!s)return e?f(e):!1===e?(i=!0,void(s=!0)):t===o.default||i&&l<=0?(i=!0,n(null)):void c()}function f(e){s||(a=!1,i=!0,n(e))}c()};var n,i=r(1371),o=(n=i)&&n.__esModule?n:{default:n};e.exports=t.default},6280:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){t||(t=e.length);if(!t)throw new Error("arity is undefined");return function(...r){return"function"==typeof r[t-1]?e.apply(this,r):new Promise((n,i)=>{r[t-1]=(e,...t)=>{if(e)return i(e);n(t.length>1?t:t[0])},e.apply(this,r)})}},e.exports=t.default},1371:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={},e.exports=t.default},6513:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=u(r(6297)),i=u(r(1586)),o=u(r(6083)),s=r(1214),a=u(r(6959)),l=u(r(1371));function u(e){return e&&e.__esModule?e:{default:e}}t.default=e=>(t,r,u)=>{if(u=(0,n.default)(u),e<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!t)return u(null);if((0,s.isAsyncGenerator)(t))return(0,a.default)(t,e,r,u);if((0,s.isAsyncIterable)(t))return(0,a.default)(t[Symbol.asyncIterator](),e,r,u);var c=(0,i.default)(t),p=!1,f=!1,h=0,d=!1;function g(e,t){if(!f)if(h-=1,e)p=!0,u(e);else if(!1===e)p=!0,f=!0;else{if(t===l.default||p&&h<=0)return p=!0,u(null);d||y()}}function y(){for(d=!0;h<e&&!p;){var t=c();if(null===t)return p=!0,void(h<=0&&u(null));h+=1,r(t.value,t.key,(0,o.default)(g))}d=!1}y()},e.exports=t.default},3172:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e[Symbol.iterator]&&e[Symbol.iterator]()},e.exports=t.default},6172:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(...t){var r=t.pop();return e.call(this,t,r)}},e.exports=t.default},7804:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e&&"number"==typeof e.length&&e.length>=0&&e.length%1==0},e.exports=t.default},1586:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((0,n.default)(e))return function(e){var t=-1,r=e.length;return function(){return++t<r?{value:e[t],key:t}:null}}(e);var t=(0,i.default)(e);return t?function(e){var t=-1;return function(){var r=e.next();return r.done?null:(t++,{value:r.value,key:t})}}(t):(r=e,o=r?Object.keys(r):[],s=-1,a=o.length,function e(){var t=o[++s];return"__proto__"===t?e():s<a?{value:r[t],key:t}:null});var r,o,s,a};var n=o(r(7804)),i=o(r(3172));function o(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},6297:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){function t(...t){if(null!==e){var r=e;e=null,r.apply(this,t)}}return Object.assign(t,e),t},e.exports=t.default},6083:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(...t){if(null===e)throw new Error("Callback was already called.");var r=e;e=null,r.apply(this,t)}},e.exports=t.default},7075:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=s(r(7804)),i=s(r(1214)),o=s(r(6280));function s(e){return e&&e.__esModule?e:{default:e}}t.default=(0,o.default)((e,t,r)=>{var o=(0,n.default)(t)?[]:{};e(t,(e,t,r)=>{(0,i.default)(e)((e,...n)=>{n.length<2&&([n]=n),o[t]=n,r(e)})},e=>r(e,o))},3),e.exports=t.default},6857:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fallback=s,t.wrap=a;var r,n=t.hasQueueMicrotask="function"==typeof queueMicrotask&&queueMicrotask,i=t.hasSetImmediate="function"==typeof setImmediate&&setImmediate,o=t.hasNextTick="object"==typeof process&&"function"==typeof process.nextTick;function s(e){setTimeout(e,0)}function a(e){return(t,...r)=>e(()=>t(...r))}r=n?queueMicrotask:i?setImmediate:o?process.nextTick:s,t.default=a(r)},4344:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(t,r,n)=>e(t,n)},e.exports=t.default},1214:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isAsyncIterable=t.isAsyncGenerator=t.isAsync=void 0;var n,i=r(2530),o=(n=i)&&n.__esModule?n:{default:n};function s(e){return"AsyncFunction"===e[Symbol.toStringTag]}t.default=function(e){if("function"!=typeof e)throw new Error("expected a function");return s(e)?(0,o.default)(e):e},t.isAsync=s,t.isAsyncGenerator=function(e){return"AsyncGenerator"===e[Symbol.toStringTag]},t.isAsyncIterable=function(e){return"function"==typeof e[Symbol.asyncIterator]}},481:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,n.default)(i.default,e,t)};var n=o(r(7075)),i=o(r(5313));function o(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},7991:(e,t)=>{"use strict";t.byteLength=function(e){var t=l(e),r=t[0],n=t[1];return 3*(r+n)/4-n},t.toByteArray=function(e){var t,r,o=l(e),s=o[0],a=o[1],u=new i(function(e,t,r){return 3*(t+r)/4-r}(0,s,a)),c=0,p=a>0?s-4:s;for(r=0;r<p;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],u[c++]=t>>16&255,u[c++]=t>>8&255,u[c++]=255&t;2===a&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,u[c++]=255&t);1===a&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t);return u},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],s=0,a=n-i;s<a;s+=16383)o.push(u(e,s,s+16383>a?a:s+16383));1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return o.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,a=o.length;s<a;++s)r[s]=o[s],n[o.charCodeAt(s)]=s;function l(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function u(e,t,n){for(var i,o,s=[],a=t;a<n;a+=3)i=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),s.push(r[(o=i)>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return s.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},9811:(e,t,r)=>{"use strict";var n=r(6093),i=r(2495),o=r(6446),s=r(8142),a=r(7200);for(var l in a)t[l]=a[l];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 u(e){if("number"!=typeof e||e<t.DEFLATE||e>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=e,this.strategy=0,this.windowBits=0,this.write_in_progress=!1,this.pending_close=!1,this.gzip_id_bytes_read=0}u.prototype.close=function(){this.write_in_progress?this.pending_close=!0:(this.pending_close=!1,n(this.init_done,"close before init"),n(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||s.inflateEnd(this.strm),this.mode=t.NONE,this.dictionary=null)},u.prototype.write=function(e,t,r,n,i,o,s){return this._write(!0,e,t,r,n,i,o,s)},u.prototype.writeSync=function(e,t,r,n,i,o,s){return this._write(!1,e,t,r,n,i,o,s)},u.prototype._write=function(e,r,i,o,s,a,l,u){if(n.equal(arguments.length,8),n(this.init_done,"write before init"),n(this.mode!==t.NONE,"already finalized"),n.equal(!1,this.write_in_progress,"write already in progress"),n.equal(!1,this.pending_close,"close is pending"),this.write_in_progress=!0,n.equal(!1,void 0===r,"must provide flush value"),this.write_in_progress=!0,r!==t.Z_NO_FLUSH&&r!==t.Z_PARTIAL_FLUSH&&r!==t.Z_SYNC_FLUSH&&r!==t.Z_FULL_FLUSH&&r!==t.Z_FINISH&&r!==t.Z_BLOCK)throw new Error("Invalid flush value");if(null==i&&(i=Buffer.alloc(0),s=0,o=0),this.strm.avail_in=s,this.strm.input=i,this.strm.next_in=o,this.strm.avail_out=u,this.strm.output=a,this.strm.next_out=l,this.flush=r,!e)return this._process(),this._checkError()?this._afterSync():void 0;var c=this;return process.nextTick((function(){c._process(),c._after()})),this},u.prototype._afterSync=function(){var e=this.strm.avail_out,t=this.strm.avail_in;return this.write_in_progress=!1,[t,e]},u.prototype._process=function(){var e=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&&(e=this.strm.next_in),this.gzip_id_bytes_read){case 0:if(null===e)break;if(31!==this.strm.input[e]){this.mode=t.INFLATE;break}if(this.gzip_id_bytes_read=1,e++,1===this.strm.avail_in)break;case 1:if(null===e)break;139===this.strm.input[e]?(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=s.inflate(this.strm,this.flush),this.err===t.Z_NEED_DICT&&this.dictionary&&(this.err=s.inflateSetDictionary(this.strm,this.dictionary),this.err===t.Z_OK?this.err=s.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&&0!==this.strm.next_in[0];)this.reset(),this.err=s.inflate(this.strm,this.flush);break;default:throw new Error("Unknown mode "+this.mode)}},u.prototype._checkError=function(){switch(this.err){case t.Z_OK:case t.Z_BUF_ERROR:if(0!==this.strm.avail_out&&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 null==this.dictionary?this._error("Missing dictionary"):this._error("Bad dictionary"),!1;default:return this._error("Zlib error"),!1}return!0},u.prototype._after=function(){if(this._checkError()){var e=this.strm.avail_out,t=this.strm.avail_in;this.write_in_progress=!1,this.callback(t,e),this.pending_close&&this.close()}},u.prototype._error=function(e){this.strm.msg&&(e=this.strm.msg),this.onerror(e,this.err),this.write_in_progress=!1,this.pending_close&&this.close()},u.prototype.init=function(e,r,i,o,s){n(4===arguments.length||5===arguments.length,"init(windowBits, level, memLevel, strategy, [dictionary])"),n(e>=8&&e<=15,"invalid windowBits"),n(r>=-1&&r<=9,"invalid compression level"),n(i>=1&&i<=9,"invalid memlevel"),n(o===t.Z_FILTERED||o===t.Z_HUFFMAN_ONLY||o===t.Z_RLE||o===t.Z_FIXED||o===t.Z_DEFAULT_STRATEGY,"invalid strategy"),this._init(r,e,i,o,s),this._setDictionary()},u.prototype.params=function(){throw new Error("deflateParams Not supported")},u.prototype.reset=function(){this._reset(),this._setDictionary()},u.prototype._init=function(e,r,n,a,l){switch(this.level=e,this.windowBits=r,this.memLevel=n,this.strategy=a,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 i,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=s.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=l,this.write_in_progress=!1,this.init_done=!0},u.prototype._setDictionary=function(){if(null!=this.dictionary){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")}},u.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=s.inflateReset(this.strm)}this.err!==t.Z_OK&&this._error("Failed to reset stream")},t.Zlib=u},7946:(e,t,r)=>{"use strict";var n=r(1048).Buffer,i=r(1983).Transform,o=r(9811),s=r(9208),a=r(6093).ok,l=r(1048).kMaxLength,u="Cannot create final Buffer. It would be larger than 0x"+l.toString(16)+" bytes";o.Z_MIN_WINDOWBITS=8,o.Z_MAX_WINDOWBITS=15,o.Z_DEFAULT_WINDOWBITS=15,o.Z_MIN_CHUNK=64,o.Z_MAX_CHUNK=1/0,o.Z_DEFAULT_CHUNK=16384,o.Z_MIN_MEMLEVEL=1,o.Z_MAX_MEMLEVEL=9,o.Z_DEFAULT_MEMLEVEL=8,o.Z_MIN_LEVEL=-1,o.Z_MAX_LEVEL=9,o.Z_DEFAULT_LEVEL=o.Z_DEFAULT_COMPRESSION;for(var c=Object.keys(o),p=0;p<c.length;p++){var f=c[p];f.match(/^Z/)&&Object.defineProperty(t,f,{enumerable:!0,value:o[f],writable:!1})}for(var h={Z_OK:o.Z_OK,Z_STREAM_END:o.Z_STREAM_END,Z_NEED_DICT:o.Z_NEED_DICT,Z_ERRNO:o.Z_ERRNO,Z_STREAM_ERROR:o.Z_STREAM_ERROR,Z_DATA_ERROR:o.Z_DATA_ERROR,Z_MEM_ERROR:o.Z_MEM_ERROR,Z_BUF_ERROR:o.Z_BUF_ERROR,Z_VERSION_ERROR:o.Z_VERSION_ERROR},d=Object.keys(h),g=0;g<d.length;g++){var y=d[g];h[h[y]]=y}function v(e,t,r){var i=[],o=0;function s(){for(var t;null!==(t=e.read());)i.push(t),o+=t.length;e.once("readable",s)}function a(){var t,s=null;o>=l?s=new RangeError(u):t=n.concat(i,o),i=[],e.close(),r(s,t)}e.on("error",(function(t){e.removeListener("end",a),e.removeListener("readable",s),r(t)})),e.on("end",a),e.end(t),s()}function m(e,t){if("string"==typeof t&&(t=n.from(t)),!n.isBuffer(t))throw new TypeError("Not a string or buffer");var r=e._finishFlushFlag;return e._processChunk(t,r)}function b(e){if(!(this instanceof b))return new b(e);j.call(this,e,o.DEFLATE)}function w(e){if(!(this instanceof w))return new w(e);j.call(this,e,o.INFLATE)}function S(e){if(!(this instanceof S))return new S(e);j.call(this,e,o.GZIP)}function _(e){if(!(this instanceof _))return new _(e);j.call(this,e,o.GUNZIP)}function E(e){if(!(this instanceof E))return new E(e);j.call(this,e,o.DEFLATERAW)}function O(e){if(!(this instanceof O))return new O(e);j.call(this,e,o.INFLATERAW)}function R(e){if(!(this instanceof R))return new R(e);j.call(this,e,o.UNZIP)}function T(e){return e===o.Z_NO_FLUSH||e===o.Z_PARTIAL_FLUSH||e===o.Z_SYNC_FLUSH||e===o.Z_FULL_FLUSH||e===o.Z_FINISH||e===o.Z_BLOCK}function j(e,r){var s=this;if(this._opts=e=e||{},this._chunkSize=e.chunkSize||t.Z_DEFAULT_CHUNK,i.call(this,e),e.flush&&!T(e.flush))throw new Error("Invalid flush flag: "+e.flush);if(e.finishFlush&&!T(e.finishFlush))throw new Error("Invalid flush flag: "+e.finishFlush);if(this._flushFlag=e.flush||o.Z_NO_FLUSH,this._finishFlushFlag=void 0!==e.finishFlush?e.finishFlush:o.Z_FINISH,e.chunkSize&&(e.chunkSize<t.Z_MIN_CHUNK||e.chunkSize>t.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+e.chunkSize);if(e.windowBits&&(e.windowBits<t.Z_MIN_WINDOWBITS||e.windowBits>t.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+e.windowBits);if(e.level&&(e.level<t.Z_MIN_LEVEL||e.level>t.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+e.level);if(e.memLevel&&(e.memLevel<t.Z_MIN_MEMLEVEL||e.memLevel>t.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+e.memLevel);if(e.strategy&&e.strategy!=t.Z_FILTERED&&e.strategy!=t.Z_HUFFMAN_ONLY&&e.strategy!=t.Z_RLE&&e.strategy!=t.Z_FIXED&&e.strategy!=t.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+e.strategy);if(e.dictionary&&!n.isBuffer(e.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._handle=new o.Zlib(r);var a=this;this._hadError=!1,this._handle.onerror=function(e,r){P(a),a._hadError=!0;var n=new Error(e);n.errno=r,n.code=t.codes[r],a.emit("error",n)};var l=t.Z_DEFAULT_COMPRESSION;"number"==typeof e.level&&(l=e.level);var u=t.Z_DEFAULT_STRATEGY;"number"==typeof e.strategy&&(u=e.strategy),this._handle.init(e.windowBits||t.Z_DEFAULT_WINDOWBITS,l,e.memLevel||t.Z_DEFAULT_MEMLEVEL,u,e.dictionary),this._buffer=n.allocUnsafe(this._chunkSize),this._offset=0,this._level=l,this._strategy=u,this.once("end",this.close),Object.defineProperty(this,"_closed",{get:function(){return!s._handle},configurable:!0,enumerable:!0})}function P(e,t){t&&process.nextTick(t),e._handle&&(e._handle.close(),e._handle=null)}function x(e){e.emit("close")}Object.defineProperty(t,"codes",{enumerable:!0,value:Object.freeze(h),writable:!1}),t.Deflate=b,t.Inflate=w,t.Gzip=S,t.Gunzip=_,t.DeflateRaw=E,t.InflateRaw=O,t.Unzip=R,t.createDeflate=function(e){return new b(e)},t.createInflate=function(e){return new w(e)},t.createDeflateRaw=function(e){return new E(e)},t.createInflateRaw=function(e){return new O(e)},t.createGzip=function(e){return new S(e)},t.createGunzip=function(e){return new _(e)},t.createUnzip=function(e){return new R(e)},t.deflate=function(e,t,r){return"function"==typeof t&&(r=t,t={}),v(new b(t),e,r)},t.deflateSync=function(e,t){return m(new b(t),e)},t.gzip=function(e,t,r){return"function"==typeof t&&(r=t,t={}),v(new S(t),e,r)},t.gzipSync=function(e,t){return m(new S(t),e)},t.deflateRaw=function(e,t,r){return"function"==typeof t&&(r=t,t={}),v(new E(t),e,r)},t.deflateRawSync=function(e,t){return m(new E(t),e)},t.unzip=function(e,t,r){return"function"==typeof t&&(r=t,t={}),v(new R(t),e,r)},t.unzipSync=function(e,t){return m(new R(t),e)},t.inflate=function(e,t,r){return"function"==typeof t&&(r=t,t={}),v(new w(t),e,r)},t.inflateSync=function(e,t){return m(new w(t),e)},t.gunzip=function(e,t,r){return"function"==typeof t&&(r=t,t={}),v(new _(t),e,r)},t.gunzipSync=function(e,t){return m(new _(t),e)},t.inflateRaw=function(e,t,r){return"function"==typeof t&&(r=t,t={}),v(new O(t),e,r)},t.inflateRawSync=function(e,t){return m(new O(t),e)},s.inherits(j,i),j.prototype.params=function(e,r,n){if(e<t.Z_MIN_LEVEL||e>t.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+e);if(r!=t.Z_FILTERED&&r!=t.Z_HUFFMAN_ONLY&&r!=t.Z_RLE&&r!=t.Z_FIXED&&r!=t.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+r);if(this._level!==e||this._strategy!==r){var i=this;this.flush(o.Z_SYNC_FLUSH,(function(){a(i._handle,"zlib binding closed"),i._handle.params(e,r),i._hadError||(i._level=e,i._strategy=r,n&&n())}))}else process.nextTick(n)},j.prototype.reset=function(){return a(this._handle,"zlib binding closed"),this._handle.reset()},j.prototype._flush=function(e){this._transform(n.alloc(0),"",e)},j.prototype.flush=function(e,t){var r=this,i=this._writableState;("function"==typeof e||void 0===e&&!t)&&(t=e,e=o.Z_FULL_FLUSH),i.ended?t&&process.nextTick(t):i.ending?t&&this.once("end",t):i.needDrain?t&&this.once("drain",(function(){return r.flush(e,t)})):(this._flushFlag=e,this.write(n.alloc(0),"",t))},j.prototype.close=function(e){P(this,e),process.nextTick(x,this)},j.prototype._transform=function(e,t,r){var i,s=this._writableState,a=(s.ending||s.ended)&&(!e||s.length===e.length);return null===e||n.isBuffer(e)?this._handle?(a?i=this._finishFlushFlag:(i=this._flushFlag,e.length>=s.length&&(this._flushFlag=this._opts.flush||o.Z_NO_FLUSH)),void this._processChunk(e,i,r)):r(new Error("zlib binding closed")):r(new Error("invalid input"))},j.prototype._processChunk=function(e,t,r){var i=e&&e.length,o=this._chunkSize-this._offset,s=0,c=this,p="function"==typeof r;if(!p){var f,h=[],d=0;this.on("error",(function(e){f=e})),a(this._handle,"zlib binding closed");do{var g=this._handle.writeSync(t,e,s,i,this._buffer,this._offset,o)}while(!this._hadError&&m(g[0],g[1]));if(this._hadError)throw f;if(d>=l)throw P(this),new RangeError(u);var y=n.concat(h,d);return P(this),y}a(this._handle,"zlib binding closed");var v=this._handle.write(t,e,s,i,this._buffer,this._offset,o);function m(l,u){if(this&&(this.buffer=null,this.callback=null),!c._hadError){var f=o-u;if(a(f>=0,"have should not go down"),f>0){var g=c._buffer.slice(c._offset,c._offset+f);c._offset+=f,p?c.push(g):(h.push(g),d+=g.length)}if((0===u||c._offset>=c._chunkSize)&&(o=c._chunkSize,c._offset=0,c._buffer=n.allocUnsafe(c._chunkSize)),0===u){if(s+=i-l,i=l,!p)return!0;var y=c._handle.write(t,e,s,i,c._buffer,c._offset,c._chunkSize);return y.callback=m,void(y.buffer=e)}if(!p)return!1;r()}}v.buffer=e,v.callback=m},s.inherits(b,j),s.inherits(w,j),s.inherits(S,j),s.inherits(_,j),s.inherits(E,j),s.inherits(O,j),s.inherits(R,j)},1048:(e,t,r)=>{"use strict";const n=r(7991),i=r(9318),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=a,t.SlowBuffer=function(e){+e!=e&&(e=0);return a.alloc(+e)},t.INSPECT_MAX_BYTES=50;function s(e){if(e>2147483647)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,a.prototype),t}function a(e,t,r){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return c(e)}return l(e,t,r)}function l(e,t,r){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!a.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const r=0|d(e,t);let n=s(r);const i=n.write(e,t);i!==r&&(n=n.slice(0,i));return n}(e,t);if(ArrayBuffer.isView(e))return function(e){if($(e,Uint8Array)){const t=new Uint8Array(e);return f(t.buffer,t.byteOffset,t.byteLength)}return p(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if($(e,ArrayBuffer)||e&&$(e.buffer,ArrayBuffer))return f(e,t,r);if("undefined"!=typeof SharedArrayBuffer&&($(e,SharedArrayBuffer)||e&&$(e.buffer,SharedArrayBuffer)))return f(e,t,r);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return a.from(n,t,r);const i=function(e){if(a.isBuffer(e)){const t=0|h(e.length),r=s(t);return 0===r.length||e.copy(r,0,0,t),r}if(void 0!==e.length)return"number"!=typeof e.length||Z(e.length)?s(0):p(e);if("Buffer"===e.type&&Array.isArray(e.data))return p(e.data)}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return a.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return u(e),s(e<0?0:0|h(e))}function p(e){const t=e.length<0?0:0|h(e.length),r=s(t);for(let n=0;n<t;n+=1)r[n]=255&e[n];return r}function f(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');let n;return n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),Object.setPrototypeOf(n,a.prototype),n}function h(e){if(e>=2147483647)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+2147483647..toString(16)+" bytes");return 0|e}function d(e,t){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||$(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return W(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return q(e).length;default:if(i)return n?-1:W(e).length;t=(""+t).toLowerCase(),i=!0}}function g(e,t,r){let n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return P(this,t,r);case"utf8":case"utf-8":return R(this,t,r);case"ascii":return T(this,t,r);case"latin1":case"binary":return j(this,t,r);case"base64":return O(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function y(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function v(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),Z(r=+r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=a.from(t,n)),a.isBuffer(t))return 0===t.length?-1:m(e,t,r,n,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):m(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function m(e,t,r,n,i){let o,s=1,a=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;s=2,a/=2,l/=2,r/=2}function u(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){let n=-1;for(o=r;o<a;o++)if(u(e,o)===u(t,-1===n?0:o-n)){if(-1===n&&(n=o),o-n+1===l)return n*s}else-1!==n&&(o-=o-n),n=-1}else for(r+l>a&&(r=a-l),o=r;o>=0;o--){let r=!0;for(let n=0;n<l;n++)if(u(e,o+n)!==u(t,n)){r=!1;break}if(r)return o}return-1}function b(e,t,r,n){r=Number(r)||0;const i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;const o=t.length;let s;for(n>o/2&&(n=o/2),s=0;s<n;++s){const n=parseInt(t.substr(2*s,2),16);if(Z(n))return s;e[r+s]=n}return s}function w(e,t,r,n){return H(W(t,e.length-r),e,r,n)}function S(e,t,r,n){return H(function(e){const t=[];for(let r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function _(e,t,r,n){return H(q(t),e,r,n)}function E(e,t,r,n){return H(function(e,t){let r,n,i;const o=[];for(let s=0;s<e.length&&!((t-=2)<0);++s)r=e.charCodeAt(s),n=r>>8,i=r%256,o.push(i),o.push(n);return o}(t,e.length-r),e,r,n)}function O(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function R(e,t,r){r=Math.min(e.length,r);const n=[];let i=t;for(;i<r;){const t=e[i];let o=null,s=t>239?4:t>223?3:t>191?2:1;if(i+s<=r){let r,n,a,l;switch(s){case 1:t<128&&(o=t);break;case 2:r=e[i+1],128==(192&r)&&(l=(31&t)<<6|63&r,l>127&&(o=l));break;case 3:r=e[i+1],n=e[i+2],128==(192&r)&&128==(192&n)&&(l=(15&t)<<12|(63&r)<<6|63&n,l>2047&&(l<55296||l>57343)&&(o=l));break;case 4:r=e[i+1],n=e[i+2],a=e[i+3],128==(192&r)&&128==(192&n)&&128==(192&a)&&(l=(15&t)<<18|(63&r)<<12|(63&n)<<6|63&a,l>65535&&l<1114112&&(o=l))}}null===o?(o=65533,s=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|1023&o),n.push(o),i+=s}return function(e){const t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);let r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=4096));return r}(n)}t.kMaxLength=2147483647,a.TYPED_ARRAY_SUPPORT=function(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),a.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}}),a.poolSize=8192,a.from=function(e,t,r){return l(e,t,r)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array),a.alloc=function(e,t,r){return function(e,t,r){return u(e),e<=0?s(e):void 0!==t?"string"==typeof r?s(e).fill(t,r):s(e).fill(t):s(e)}(e,t,r)},a.allocUnsafe=function(e){return c(e)},a.allocUnsafeSlow=function(e){return c(e)},a.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==a.prototype},a.compare=function(e,t){if($(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),$(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(e)||!a.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let r=e.length,n=t.length;for(let i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0},a.isEncoding=function(e){switch(String(e).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}},a.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return a.alloc(0);let r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;const n=a.allocUnsafe(t);let i=0;for(r=0;r<e.length;++r){let t=e[r];if($(t,Uint8Array))i+t.length>n.length?(a.isBuffer(t)||(t=a.from(t)),t.copy(n,i)):Uint8Array.prototype.set.call(n,t,i);else{if(!a.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(n,i)}i+=t.length}return n},a.byteLength=d,a.prototype._isBuffer=!0,a.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)y(this,t,t+1);return this},a.prototype.swap32=function(){const e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)y(this,t,t+3),y(this,t+1,t+2);return this},a.prototype.swap64=function(){const e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)y(this,t,t+7),y(this,t+1,t+6),y(this,t+2,t+5),y(this,t+3,t+4);return this},a.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?R(this,0,e):g.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(e){if(!a.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===a.compare(this,e)},a.prototype.inspect=function(){let e="";const r=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},o&&(a.prototype[o]=a.prototype.inspect),a.prototype.compare=function(e,t,r,n,i){if($(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(this===e)return 0;let o=(i>>>=0)-(n>>>=0),s=(r>>>=0)-(t>>>=0);const l=Math.min(o,s),u=this.slice(n,i),c=e.slice(t,r);for(let e=0;e<l;++e)if(u[e]!==c[e]){o=u[e],s=c[e];break}return o<s?-1:s<o?1:0},a.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},a.prototype.indexOf=function(e,t,r){return v(this,e,t,r,!0)},a.prototype.lastIndexOf=function(e,t,r){return v(this,e,t,r,!1)},a.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}const i=this.length-t;if((void 0===r||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let o=!1;for(;;)switch(n){case"hex":return b(this,e,t,r);case"utf8":case"utf-8":return w(this,e,t,r);case"ascii":case"latin1":case"binary":return S(this,e,t,r);case"base64":return _(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function T(e,t,r){let n="";r=Math.min(e.length,r);for(let i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}function j(e,t,r){let n="";r=Math.min(e.length,r);for(let i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function P(e,t,r){const n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);let i="";for(let n=t;n<r;++n)i+=Y[e[n]];return i}function x(e,t,r){const n=e.slice(t,r);let i="";for(let e=0;e<n.length-1;e+=2)i+=String.fromCharCode(n[e]+256*n[e+1]);return i}function A(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function I(e,t,r,n,i,o){if(!a.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function C(e,t,r,n,i){z(t,n,i,e,r,7);let o=Number(t&BigInt(4294967295));e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=s,s>>=8,e[r++]=s,s>>=8,e[r++]=s,s>>=8,e[r++]=s,r}function k(e,t,r,n,i){z(t,n,i,e,r,7);let o=Number(t&BigInt(4294967295));e[r+7]=o,o>>=8,e[r+6]=o,o>>=8,e[r+5]=o,o>>=8,e[r+4]=o;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=s,s>>=8,e[r+2]=s,s>>=8,e[r+1]=s,s>>=8,e[r]=s,r+8}function M(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function F(e,t,r,n,o){return t=+t,r>>>=0,o||M(e,0,r,4),i.write(e,t,r,n,23,4),r+4}function B(e,t,r,n,o){return t=+t,r>>>=0,o||M(e,0,r,8),i.write(e,t,r,n,52,8),r+8}a.prototype.slice=function(e,t){const r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);const n=this.subarray(e,t);return Object.setPrototypeOf(n,a.prototype),n},a.prototype.readUintLE=a.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||A(e,t,this.length);let n=this[e],i=1,o=0;for(;++o<t&&(i*=256);)n+=this[e+o]*i;return n},a.prototype.readUintBE=a.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||A(e,t,this.length);let n=this[e+--t],i=1;for(;t>0&&(i*=256);)n+=this[e+--t]*i;return n},a.prototype.readUint8=a.prototype.readUInt8=function(e,t){return e>>>=0,t||A(e,1,this.length),this[e]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(e,t){return e>>>=0,t||A(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(e,t){return e>>>=0,t||A(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(e,t){return e>>>=0,t||A(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(e,t){return e>>>=0,t||A(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readBigUInt64LE=J((function(e){U(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||G(e,this.length-8);const n=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,i=this[++e]+256*this[++e]+65536*this[++e]+r*2**24;return BigInt(n)+(BigInt(i)<<BigInt(32))})),a.prototype.readBigUInt64BE=J((function(e){U(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||G(e,this.length-8);const n=t*2**24+65536*this[++e]+256*this[++e]+this[++e],i=this[++e]*2**24+65536*this[++e]+256*this[++e]+r;return(BigInt(n)<<BigInt(32))+BigInt(i)})),a.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||A(e,t,this.length);let n=this[e],i=1,o=0;for(;++o<t&&(i*=256);)n+=this[e+o]*i;return i*=128,n>=i&&(n-=Math.pow(2,8*t)),n},a.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||A(e,t,this.length);let n=t,i=1,o=this[e+--n];for(;n>0&&(i*=256);)o+=this[e+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},a.prototype.readInt8=function(e,t){return e>>>=0,t||A(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},a.prototype.readInt16LE=function(e,t){e>>>=0,t||A(e,2,this.length);const r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},a.prototype.readInt16BE=function(e,t){e>>>=0,t||A(e,2,this.length);const r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},a.prototype.readInt32LE=function(e,t){return e>>>=0,t||A(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},a.prototype.readInt32BE=function(e,t){return e>>>=0,t||A(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},a.prototype.readBigInt64LE=J((function(e){U(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||G(e,this.length-8);const n=this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24);return(BigInt(n)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)})),a.prototype.readBigInt64BE=J((function(e){U(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||G(e,this.length-8);const n=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(n)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+r)})),a.prototype.readFloatLE=function(e,t){return e>>>=0,t||A(e,4,this.length),i.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return e>>>=0,t||A(e,4,this.length),i.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return e>>>=0,t||A(e,8,this.length),i.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return e>>>=0,t||A(e,8,this.length),i.read(this,e,!1,52,8)},a.prototype.writeUintLE=a.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){I(this,e,t,r,Math.pow(2,8*r)-1,0)}let i=1,o=0;for(this[t]=255&e;++o<r&&(i*=256);)this[t+o]=e/i&255;return t+r},a.prototype.writeUintBE=a.prototype.writeUIntBE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){I(this,e,t,r,Math.pow(2,8*r)-1,0)}let i=r-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+r},a.prototype.writeUint8=a.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,1,255,0),this[t]=255&e,t+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeBigUInt64LE=J((function(e,t=0){return C(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),a.prototype.writeBigUInt64BE=J((function(e,t=0){return k(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),a.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*r-1);I(this,e,t,r,n-1,-n)}let i=0,o=1,s=0;for(this[t]=255&e;++i<r&&(o*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/o>>0)-s&255;return t+r},a.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*r-1);I(this,e,t,r,n-1,-n)}let i=r-1,o=1,s=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/o>>0)-s&255;return t+r},a.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},a.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},a.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeBigInt64LE=J((function(e,t=0){return C(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),a.prototype.writeBigInt64BE=J((function(e,t=0){return k(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),a.prototype.writeFloatLE=function(e,t,r){return F(this,e,t,!0,r)},a.prototype.writeFloatBE=function(e,t,r){return F(this,e,t,!1,r)},a.prototype.writeDoubleLE=function(e,t,r){return B(this,e,t,!0,r)},a.prototype.writeDoubleBE=function(e,t,r){return B(this,e,t,!1,r)},a.prototype.copy=function(e,t,r,n){if(!a.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);const i=n-r;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,r,n):Uint8Array.prototype.set.call(e,this.subarray(r,n),t),i},a.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!a.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===e.length){const t=e.charCodeAt(0);("utf8"===n&&t<128||"latin1"===n)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;let i;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{const o=a.isBuffer(e)?e:a.from(e,n),s=o.length;if(0===s)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<r-t;++i)this[i+t]=o[i%s]}return this};const D={};function L(e,t,r){D[e]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function N(e){let t="",r=e.length;const n="-"===e[0]?1:0;for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function z(e,t,r,n,i,o){if(e>r||e<t){const n="bigint"==typeof t?"n":"";let i;throw i=o>3?0===t||t===BigInt(0)?`>= 0${n} and < 2${n} ** ${8*(o+1)}${n}`:`>= -(2${n} ** ${8*(o+1)-1}${n}) and < 2 ** ${8*(o+1)-1}${n}`:`>= ${t}${n} and <= ${r}${n}`,new D.ERR_OUT_OF_RANGE("value",i,e)}!function(e,t,r){U(t,"offset"),void 0!==e[t]&&void 0!==e[t+r]||G(t,e.length-(r+1))}(n,i,o)}function U(e,t){if("number"!=typeof e)throw new D.ERR_INVALID_ARG_TYPE(t,"number",e)}function G(e,t,r){if(Math.floor(e)!==e)throw U(e,r),new D.ERR_OUT_OF_RANGE(r||"offset","an integer",e);if(t<0)throw new D.ERR_BUFFER_OUT_OF_BOUNDS;throw new D.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}L("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?e+" is outside of buffer bounds":"Attempt to access memory outside buffer bounds"}),RangeError),L("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),L("ERR_OUT_OF_RANGE",(function(e,t,r){let n=`The value of "${e}" is out of range.`,i=r;return Number.isInteger(r)&&Math.abs(r)>2**32?i=N(String(r)):"bigint"==typeof r&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=N(i)),i+="n"),n+=` It must be ${t}. Received ${i}`,n}),RangeError);const V=/[^+/0-9A-Za-z-_]/g;function W(e,t){let r;t=t||1/0;const n=e.length;let i=null;const o=[];for(let s=0;s<n;++s){if(r=e.charCodeAt(s),r>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(s+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function q(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(V,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function H(e,t,r,n){let i;for(i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function $(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function Z(e){return e!=e}const Y=function(){const e=new Array(256);for(let t=0;t<16;++t){const r=16*t;for(let n=0;n<16;++n)e[r+n]="0123456789abcdef"[t]+"0123456789abcdef"[n]}return e}();function J(e){return"undefined"==typeof BigInt?K:e}function K(){throw new Error("BigInt not supported")}},49:e=>{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"}},9818:(e,t,r)=>{"use strict";var n=r(528),i=r(8498),o=i(n("String.prototype.indexOf"));e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&o(e,".prototype.")>-1?i(r):r}},8498:(e,t,r)=>{"use strict";var n=r(9138),i=r(528),o=r(6108),s=r(3468),a=i("%Function.prototype.apply%"),l=i("%Function.prototype.call%"),u=i("%Reflect.apply%",!0)||n.call(l,a),c=r(4940),p=i("%Math.max%");e.exports=function(e){if("function"!=typeof e)throw new s("a function is required");var t=u(n,l,arguments);return o(t,1+p(0,e.length-(arguments.length-1)),!0)};var f=function(){return u(n,a,arguments)};c?c(e.exports,"apply",{value:f}):e.exports.apply=f},288:function(e,t){var r="undefined"!=typeof self?self:this,n=function(){function e(){this.fetch=!1,this.DOMException=r.DOMException}return e.prototype=r,new e}();!function(e){!function(t){var r="URLSearchParams"in e,n="Symbol"in e&&"iterator"in Symbol,i="FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),o="FormData"in e,s="ArrayBuffer"in e;if(s)var a=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],l=ArrayBuffer.isView||function(e){return e&&a.indexOf(Object.prototype.toString.call(e))>-1};function u(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function c(e){return"string"!=typeof e&&(e=String(e)),e}function p(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return n&&(t[Symbol.iterator]=function(){return t}),t}function f(e){this.map={},e instanceof f?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function h(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function d(e){return new Promise((function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}}))}function g(e){var t=new FileReader,r=d(t);return t.readAsArrayBuffer(e),r}function y(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function v(){return this.bodyUsed=!1,this._initBody=function(e){var t;this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:i&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:o&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:r&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():s&&i&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=y(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):s&&(ArrayBuffer.prototype.isPrototypeOf(e)||l(e))?this._bodyArrayBuffer=y(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):r&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i&&(this.blob=function(){var e=h(this);if(e)return e;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?h(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(g)}),this.text=function(){var e,t,r,n=h(this);if(n)return n;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,r=d(t),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o&&(this.formData=function(){return this.text().then(w)}),this.json=function(){return this.text().then(JSON.parse)},this}f.prototype.append=function(e,t){e=u(e),t=c(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},f.prototype.delete=function(e){delete this.map[u(e)]},f.prototype.get=function(e){return e=u(e),this.has(e)?this.map[e]:null},f.prototype.has=function(e){return this.map.hasOwnProperty(u(e))},f.prototype.set=function(e,t){this.map[u(e)]=c(t)},f.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},f.prototype.keys=function(){var e=[];return this.forEach((function(t,r){e.push(r)})),p(e)},f.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),p(e)},f.prototype.entries=function(){var e=[];return this.forEach((function(t,r){e.push([r,t])})),p(e)},n&&(f.prototype[Symbol.iterator]=f.prototype.entries);var m=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function b(e,t){var r,n,i=(t=t||{}).body;if(e instanceof b){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new f(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,i||null==e._bodyInit||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new f(t.headers)),this.method=(r=t.method||this.method||"GET",n=r.toUpperCase(),m.indexOf(n)>-1?n:r),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function w(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var r=e.split("="),n=r.shift().replace(/\+/g," "),i=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(i))}})),t}function S(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new f(t.headers),this.url=t.url||"",this._initBody(e)}b.prototype.clone=function(){return new b(this,{body:this._bodyInit})},v.call(b.prototype),v.call(S.prototype),S.prototype.clone=function(){return new S(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},S.error=function(){var e=new S(null,{status:0,statusText:""});return e.type="error",e};var _=[301,302,303,307,308];S.redirect=function(e,t){if(-1===_.indexOf(t))throw new RangeError("Invalid status code");return new S(null,{status:t,headers:{location:e}})},t.DOMException=e.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var r=Error(e);this.stack=r.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function E(e,r){return new Promise((function(n,o){var s=new b(e,r);if(s.signal&&s.signal.aborted)return o(new t.DOMException("Aborted","AbortError"));var a=new XMLHttpRequest;function l(){a.abort()}a.onload=function(){var e,t,r={status:a.status,statusText:a.statusText,headers:(e=a.getAllResponseHeaders()||"",t=new f,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var r=e.split(":"),n=r.shift().trim();if(n){var i=r.join(":").trim();t.append(n,i)}})),t)};r.url="responseURL"in a?a.responseURL:r.headers.get("X-Request-URL");var i="response"in a?a.response:a.responseText;n(new S(i,r))},a.onerror=function(){o(new TypeError("Network request failed"))},a.ontimeout=function(){o(new TypeError("Network request failed"))},a.onabort=function(){o(new t.DOMException("Aborted","AbortError"))},a.open(s.method,s.url,!0),"include"===s.credentials?a.withCredentials=!0:"omit"===s.credentials&&(a.withCredentials=!1),"responseType"in a&&i&&(a.responseType="blob"),s.headers.forEach((function(e,t){a.setRequestHeader(t,e)})),s.signal&&(s.signal.addEventListener("abort",l),a.onreadystatechange=function(){4===a.readyState&&s.signal.removeEventListener("abort",l)}),a.send(void 0===s._bodyInit?null:s._bodyInit)}))}E.polyfill=!0,e.fetch||(e.fetch=E,e.Headers=f,e.Request=b,e.Response=S),t.Headers=f,t.Request=b,t.Response=S,t.fetch=E,Object.defineProperty(t,"__esModule",{value:!0})}({})}(n),n.fetch.ponyfill=!0,delete n.fetch.polyfill;var i=n;(t=i.fetch).default=i.fetch,t.fetch=i.fetch,t.Headers=i.Headers,t.Request=i.Request,t.Response=i.Response,e.exports=t},686:(e,t,r)=>{"use strict";var n=r(4940),i=r(5731),o=r(3468),s=r(9336);e.exports=function(e,t,r){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new o("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new o("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new o("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new o("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new o("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new o("`loose`, if provided, must be a boolean");var a=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,u=arguments.length>5?arguments[5]:null,c=arguments.length>6&&arguments[6],p=!!s&&s(e,t);if(n)n(e,t,{configurable:null===u&&p?p.configurable:!u,enumerable:null===a&&p?p.enumerable:!a,value:r,writable:null===l&&p?p.writable:!l});else{if(!c&&(a||l||u))throw new i("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=r}}},1857:(e,t,r)=>{"use strict";var n=r(9228),i="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),o=Object.prototype.toString,s=Array.prototype.concat,a=r(686),l=r(7239)(),u=function(e,t,r,n){if(t in e)if(!0===n){if(e[t]===r)return}else if("function"!=typeof(i=n)||"[object Function]"!==o.call(i)||!n())return;var i;l?a(e,t,r,!0):a(e,t,r)},c=function(e,t){var r=arguments.length>2?arguments[2]:{},o=n(t);i&&(o=s.call(o,Object.getOwnPropertySymbols(t)));for(var a=0;a<o.length;a+=1)u(e,o[a],t[o[a]],r[o[a]])};c.supportsDescriptors=!!l,e.exports=c},2078:(e,t,r)=>{"use strict";const n=r(5365),i=r(5757),o=(e,t,s)=>({from:o,EnvVarError:r(5757),get:function(r){if(!r)return e;if(arguments.length>1)throw new i("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 n(e,r,t||{},s||function(){})},accessors:r(7350),logger:r(7869)(console.log,e.NODE_ENV)});e.exports=o(function(){try{return process.env}catch(e){return{}}}())},2555:(e,t,r)=>{"use strict";const n=r(6261);e.exports=function(e,t){return t=t||",",e.length?n(e).split(t).filter(Boolean):[]}},7808:e=>{"use strict";e.exports=function(e){const t=e.toLowerCase();if("false"!==t&&"true"!==t)throw new Error('should be either "true", "false", "TRUE", or "FALSE"');return"false"!==t}},3576:e=>{"use strict";e.exports=function(e){const t=e.toLowerCase();if(-1===["false","0","true","1"].indexOf(t))throw new Error('should be either "true", "false", "TRUE", "FALSE", 1, or 0');return!("0"===t||"false"===t)}},349:(e,t,r)=>{"use strict";const n=r(6261),i=/^(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\u0001-\u0008\u000b\u000c\u000e-\u001f\u0021\u0023-\u005b\u005d-\u007f]|\\[\u0001-\u0009\u000b\u000c\u000e-\u007f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9]))\.){3}(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9])|[a-z0-9-]*[a-z0-9]:(?:[\u0001-\u0008\u000b\u000c\u000e-\u001f\u0021-\u005a\u0053-\u007f]|\\[\u0001-\u0009\u000b\u000c\u000e-\u007f])+)\])$/;e.exports=function(e){const t=n(e);if(!i.test(t))throw new Error("should be a valid email address");return t}},129:(e,t,r)=>{"use strict";const n=r(6261);e.exports=function(e,t){const r=n(e);if(t.indexOf(r)<0)throw new Error(`should be one of [${t.join(", ")}]`);return r}},2222:(e,t,r)=>{"use strict";const n=r(5384);e.exports=function(e){const t=n(e);if(t>0)throw new Error("should be a negative float");return t}},3674:(e,t,r)=>{"use strict";const n=r(5384);e.exports=function(e){const t=n(e);if(t<0)throw new Error("should be a positive float");return t}},5384:e=>{"use strict";e.exports=function(e){const t=parseFloat(e);if(isNaN(t)||isNaN(e))throw new Error("should be a valid float");return t}},7350:(e,t,r)=>{e.exports={asArray:r(2555),asSet:r(7374),asBoolStrict:r(7808),asBool:r(3576),asPortNumber:r(4647),asEnum:r(129),asFloatNegative:r(2222),asFloatPositive:r(3674),asFloat:r(5384),asIntNegative:r(8455),asIntPositive:r(879),asInt:r(9799),asJsonArray:r(9974),asJsonObject:r(8124),asJson:r(3566),asRegExp:r(1045),asString:r(6261),asUrlObject:r(4531),asUrlString:r(5549),asEmailString:r(349)}},8455:(e,t,r)=>{"use strict";const n=r(9799);e.exports=function(e){const t=n(e);if(t>0)throw new Error("should be a negative integer");return t}},879:(e,t,r)=>{"use strict";const n=r(9799);e.exports=function(e){const t=n(e);if(t<0)throw new Error("should be a positive integer");return t}},9799:e=>{"use strict";e.exports=function(e){const t=parseInt(e,10);if(isNaN(t)||t.toString(10)!==e)throw new Error("should be a valid integer");return t}},9974:(e,t,r)=>{"use strict";const n=r(3566);e.exports=function(e){var t=n(e);if(!Array.isArray(t))throw new Error("should be a parseable JSON Array");return t}},8124:(e,t,r)=>{"use strict";const n=r(3566);e.exports=function(e){var t=n(e);if(Array.isArray(t))throw new Error("should be a parseable JSON Object");return t}},3566:e=>{"use strict";e.exports=function(e){try{return JSON.parse(e)}catch(e){throw new Error("should be valid (parseable) JSON")}}},4647:(e,t,r)=>{"use strict";const n=r(879);e.exports=function(e){var t=n(e);if(t>65535)throw new Error("cannot assign a port number greater than 65535");return t}},1045:e=>{"use strict";e.exports=function(e,t){try{RegExp(void 0,t)}catch(e){throw new Error("invalid regexp flags")}try{return new RegExp(e,t)}catch(e){throw new Error("should be a valid regexp")}}},7374:(e,t,r)=>{"use strict";const n=r(2555);e.exports=function(e,t){return e.length?new Set(n(e,t)):new Set}},6261:e=>{"use strict";e.exports=function(e){return e}},4531:(e,t,r)=>{"use strict";const n=r(6261);e.exports=function(e){const t=n(e);try{return new URL(t)}catch(e){throw new Error("should be a valid URL")}}},5549:(e,t,r)=>{"use strict";const n=r(4531);e.exports=function(e){return n(e).toString()}},5757:e=>{"use strict";class t extends Error{constructor(e,...r){super("env-var: "+e,...r),Error.captureStackTrace&&Error.captureStackTrace(this,t),this.name="EnvVarError"}}e.exports=t},7869:e=>{"use strict";e.exports=function(e,t){return function(r,n){t&&t.match(/prod|production/)||e(`env-var (${r}): ${n}`)}}},5365:(e,t,r)=>{"use strict";const n=r(5757),i=/^([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{4}|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)$/;e.exports=function(e,t,o,s){let a,l,u=!1,c=!1;const p=r(7350);function f(e){s(t,e)}function h(e,r){let i=`"${t}" ${r}`;throw e&&(i=""+i),l&&(i=`${i}. An example of a valid value would be: ${l}`),new n(i)}const d={convertFromBase64:function(){return f("marking for base64 conversion"),u=!0,d},default:function(e){if("number"==typeof e)a=e.toString();else if(Array.isArray(e)||"object"==typeof e&&null!==e)a=JSON.stringify(e);else{if("string"!=typeof e)throw new n("values passed to default() must be of Number, String, Array, or Object type");a=e}return f(`setting default value to "${a}"`),d},required:function(e){return void 0===e?(f("marked as required"),c=!0):(f("setting required flag to "+e),c=e),d},example:function(e){return l=e,d}};return Object.entries({...p,...o}).forEach(([r,n])=>{d[r]=function(r){return function(){let n=e[t];if(f(`will be read from the environment using "${r.name}" accessor`),void 0===n)if(void 0===a&&c)f("was not found in the environment, but is required to be set"),h(void 0,"is a required variable, but it was not set");else{if(void 0===a)return void f("was not found in the environment, but is not required. returning undefined");f(`was not found in the environment, parsing default value "${a}" instead`),n=a}c&&(f("verifying variable value is not an empty string"),0===n.trim().length&&h(void 0,"is a required variable, but its value was empty")),u&&(f("verifying variable is a valid base64 string"),n.match(i)||h(n,"should be a valid base64 string if using convertFromBase64"),f("converting from base64 to utf8 string"),n=Buffer.from(n,"base64").toString());const o=[n].concat(Array.prototype.slice.call(arguments));try{f(`passing value "${n}" to "${r.name}" accessor`);const e=r.apply(r,o);return f("parsed successfully, returning "+e),e}catch(e){h(n,e.message)}}}(n)}),d}},4940:(e,t,r)=>{"use strict";var n=r(528)("%Object.defineProperty%",!0)||!1;if(n)try{n({},"a",{value:1})}catch(e){n=!1}e.exports=n},9110:e=>{"use strict";e.exports=EvalError},9838:e=>{"use strict";e.exports=Error},1155:e=>{"use strict";e.exports=RangeError},4943:e=>{"use strict";e.exports=ReferenceError},5731:e=>{"use strict";e.exports=SyntaxError},3468:e=>{"use strict";e.exports=TypeError},2140:e=>{"use strict";e.exports=URIError},46:e=>{"use strict";var t,r="object"==typeof Reflect?Reflect:null,n=r&&"function"==typeof r.apply?r.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};t=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise((function(r,n){function i(r){e.removeListener(t,o),n(r)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",i),r([].slice.call(arguments))}g(e,t,o,{once:!0}),"error"!==t&&function(e,t,r){"function"==typeof e.on&&g(e,"error",t,r)}(e,i,{once:!0})}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var s=10;function a(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function l(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function u(e,t,r,n){var i,o,s,u;if(a(r),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),s=o[t]),void 0===s)s=o[t]=r,++e._eventsCount;else if("function"==typeof s?s=o[t]=n?[r,s]:[s,r]:n?s.unshift(r):s.push(r),(i=l(e))>0&&s.length>i&&!s.warned){s.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=s.length,u=c,console&&console.warn&&console.warn(u)}return e}function c(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=c.bind(n);return i.listener=r,n.wrapFn=i,i}function f(e,t,r){var n=e._events;if(void 0===n)return[];var i=n[t];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?function(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(i):d(i,i.length)}function h(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function d(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function g(e,t,r,n){if("function"==typeof e.on)n.once?e.once(t,r):e.on(t,r);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function i(o){n.once&&e.removeEventListener(t,i),r(o)}))}}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s=e}}),o.init=function(){void 0!==this._events&&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("number"!=typeof e||e<0||i(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 l(this)},o.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var i="error"===e,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){var s;if(t.length>0&&(s=t[0]),s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var l=o[e];if(void 0===l)return!1;if("function"==typeof l)n(l,this,t);else{var u=l.length,c=d(l,u);for(r=0;r<u;++r)n(c[r],this,t)}return!0},o.prototype.addListener=function(e,t){return u(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return u(this,e,t,!0)},o.prototype.once=function(e,t){return a(t),this.on(e,p(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return a(t),this.prependListener(e,p(this,e,t)),this},o.prototype.removeListener=function(e,t){var r,n,i,o,s;if(a(t),void 0===(n=this._events))return this;if(void 0===(r=n[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(i=-1,o=r.length-1;o>=0;o--)if(r[o]===t||r[o].listener===t){s=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,i),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,s||t)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0===arguments.length){var i,o=Object.keys(r);for(n=0;n<o.length;++n)"removeListener"!==(i=o[n])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},o.prototype.listeners=function(e){return f(this,e,!0)},o.prototype.rawListeners=function(e){return f(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):h.call(e,t)},o.prototype.listenerCount=h,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},6075:e=>{"use strict";e.exports=function(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});var r,n="boolean"==typeof t.cycles&&t.cycles,i=t.cmp&&(r=t.cmp,function(e){return function(t,n){var i={key:t,value:e[t]},o={key:n,value:e[n]};return r(i,o)}}),o=[];return function e(t){if(t&&t.toJSON&&"function"==typeof t.toJSON&&(t=t.toJSON()),void 0!==t){if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!=typeof t)return JSON.stringify(t);var r,s;if(Array.isArray(t)){for(s="[",r=0;r<t.length;r++)r&&(s+=","),s+=e(t[r])||"null";return s+"]"}if(null===t)return"null";if(-1!==o.indexOf(t)){if(n)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var a=o.push(t)-1,l=Object.keys(t).sort(i&&i(t));for(s="",r=0;r<l.length;r++){var u=l[r],c=e(t[u]);c&&(s&&(s+=","),s+=JSON.stringify(u)+":"+c)}return o.splice(a,1),"{"+s+"}"}}(e)}},3737:function(e,t,r){!function(e){"use strict";function t(e){for(var t=0,r=Math.min(65536,e.length+1),n=new Uint16Array(r),i=[],o=0;;){var s=t<e.length;if(!s||o>=r-1){var a=n.subarray(0,o);if(i.push(String.fromCharCode.apply(null,a)),!s)return i.join("");e=e.subarray(t),t=0,o=0}var l=e[t++];if(0==(128&l))n[o++]=l;else if(192==(224&l)){var u=63&e[t++];n[o++]=(31&l)<<6|u}else if(224==(240&l)){u=63&e[t++];var c=63&e[t++];n[o++]=(31&l)<<12|u<<6|c}else if(240==(248&l)){var p=(7&l)<<18|(u=63&e[t++])<<12|(c=63&e[t++])<<6|63&e[t++];p>65535&&(p-=65536,n[o++]=p>>>10&1023|55296,p=56320|1023&p),n[o++]=p}}}var r="Failed to ",n=function(e,t,n){if(e)throw new Error("".concat(r).concat(t,": the '").concat(n,"' option is unsupported."))},i="function"==typeof Buffer&&Buffer.from,o=i?function(e){return Buffer.from(e)}:function(e){for(var t=0,r=e.length,n=0,i=Math.max(32,r+(r>>>1)+7),o=new Uint8Array(i>>>3<<3);t<r;){var s=e.charCodeAt(t++);if(s>=55296&&s<=56319){if(t<r){var a=e.charCodeAt(t);56320==(64512&a)&&(++t,s=((1023&s)<<10)+(1023&a)+65536)}if(s>=55296&&s<=56319)continue}if(n+4>o.length){i+=8,i=(i*=1+t/e.length*2)>>>3<<3;var l=new Uint8Array(i);l.set(o),o=l}if(0!=(4294967168&s)){if(0==(4294965248&s))o[n++]=s>>>6&31|192;else if(0==(4294901760&s))o[n++]=s>>>12&15|224,o[n++]=s>>>6&63|128;else{if(0!=(4292870144&s))continue;o[n++]=s>>>18&7|240,o[n++]=s>>>12&63|128,o[n++]=s>>>6&63|128}o[n++]=63&s|128}else o[n++]=s}return o.slice?o.slice(0,n):o.subarray(0,n)};function s(){this.encoding="utf-8"}s.prototype.encode=function(e,t){return n(t&&t.stream,"encode","stream"),o(e)};var a=!i&&"function"==typeof Blob&&"function"==typeof URL&&"function"==typeof URL.createObjectURL,l=["utf-8","utf8","unicode-1-1-utf-8"],u=t;i?u=function(e,t){return(e instanceof Buffer?e:Buffer.from(e.buffer,e.byteOffset,e.byteLength)).toString(t)}:a&&(u=function(e){try{return function(e){var t;try{var r=new Blob([e],{type:"text/plain;charset=UTF-8"});t=URL.createObjectURL(r);var n=new XMLHttpRequest;return n.open("GET",t,!1),n.send(),n.responseText}finally{t&&URL.revokeObjectURL(t)}}(e)}catch(r){return t(e)}});var c="construct 'TextDecoder'",p="".concat(r," ").concat(c,": the ");function f(e,t){if(n(t&&t.fatal,c,"fatal"),e=e||"utf-8",!(i?Buffer.isEncoding(e):-1!==l.indexOf(e.toLowerCase())))throw new RangeError("".concat(p," encoding label provided ('").concat(e,"') is invalid."));this.encoding=e,this.fatal=!1,this.ignoreBOM=!1}f.prototype.decode=function(e,t){var r;return n(t&&t.stream,"decode","stream"),r=e instanceof Uint8Array?e:e.buffer instanceof ArrayBuffer?new Uint8Array(e.buffer):new Uint8Array(e),u(r,this.encoding)},e.TextEncoder=e.TextEncoder||s,e.TextDecoder=e.TextDecoder||f}("undefined"!=typeof window?window:void 0!==r.g?r.g:this)},4798:(e,t,r)=>{"use strict";r.r(t),r.d(t,{assign:()=>l,default:()=>P,defaultI18n:()=>f,format:()=>T,parse:()=>j,setGlobalDateI18n:()=>d,setGlobalDateMasks:()=>R});var n=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,i="[^\\s]+",o=/\[([^]*?)\]/gm;function s(e,t){for(var r=[],n=0,i=e.length;n<i;n++)r.push(e[n].substr(0,t));return r}var a=function(e){return function(t,r){var n=r[e].map((function(e){return e.toLowerCase()})).indexOf(t.toLowerCase());return n>-1?n:null}};function l(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];for(var n=0,i=t;n<i.length;n++){var o=i[n];for(var s in o)e[s]=o[s]}return e}var u=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],c=["January","February","March","April","May","June","July","August","September","October","November","December"],p=s(c,3),f={dayNamesShort:s(u,3),dayNames:u,monthNamesShort:p,monthNames:c,amPm:["am","pm"],DoFn:function(e){return e+["th","st","nd","rd"][e%10>3?0:(e-e%10!=10?1:0)*e%10]}},h=l({},f),d=function(e){return h=l(h,e)},g=function(e){return e.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},y=function(e,t){for(void 0===t&&(t=2),e=String(e);e.length<t;)e="0"+e;return e},v={D:function(e){return String(e.getDate())},DD:function(e){return y(e.getDate())},Do:function(e,t){return t.DoFn(e.getDate())},d:function(e){return String(e.getDay())},dd:function(e){return y(e.getDay())},ddd:function(e,t){return t.dayNamesShort[e.getDay()]},dddd:function(e,t){return t.dayNames[e.getDay()]},M:function(e){return String(e.getMonth()+1)},MM:function(e){return y(e.getMonth()+1)},MMM:function(e,t){return t.monthNamesShort[e.getMonth()]},MMMM:function(e,t){return t.monthNames[e.getMonth()]},YY:function(e){return y(String(e.getFullYear()),4).substr(2)},YYYY:function(e){return y(e.getFullYear(),4)},h:function(e){return String(e.getHours()%12||12)},hh:function(e){return y(e.getHours()%12||12)},H:function(e){return String(e.getHours())},HH:function(e){return y(e.getHours())},m:function(e){return String(e.getMinutes())},mm:function(e){return y(e.getMinutes())},s:function(e){return String(e.getSeconds())},ss:function(e){return y(e.getSeconds())},S:function(e){return String(Math.round(e.getMilliseconds()/100))},SS:function(e){return y(Math.round(e.getMilliseconds()/10),2)},SSS:function(e){return y(e.getMilliseconds(),3)},a:function(e,t){return e.getHours()<12?t.amPm[0]:t.amPm[1]},A:function(e,t){return e.getHours()<12?t.amPm[0].toUpperCase():t.amPm[1].toUpperCase()},ZZ:function(e){var t=e.getTimezoneOffset();return(t>0?"-":"+")+y(100*Math.floor(Math.abs(t)/60)+Math.abs(t)%60,4)},Z:function(e){var t=e.getTimezoneOffset();return(t>0?"-":"+")+y(Math.floor(Math.abs(t)/60),2)+":"+y(Math.abs(t)%60,2)}},m=function(e){return+e-1},b=[null,"\\d\\d?"],w=[null,i],S=["isPm",i,function(e,t){var r=e.toLowerCase();return r===t.amPm[0]?0:r===t.amPm[1]?1:null}],_=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(e){var t=(e+"").match(/([+-]|\d\d)/gi);if(t){var r=60*+t[1]+parseInt(t[2],10);return"+"===t[0]?r:-r}return 0}],E={D:["day","\\d\\d?"],DD:["day","\\d\\d"],Do:["day","\\d\\d?"+i,function(e){return parseInt(e,10)}],M:["month","\\d\\d?",m],MM:["month","\\d\\d",m],YY:["year","\\d\\d",function(e){var t=+(""+(new Date).getFullYear()).substr(0,2);return+(""+(+e>68?t-1:t)+e)}],h:["hour","\\d\\d?",void 0,"isPm"],hh:["hour","\\d\\d",void 0,"isPm"],H:["hour","\\d\\d?"],HH:["hour","\\d\\d"],m:["minute","\\d\\d?"],mm:["minute","\\d\\d"],s:["second","\\d\\d?"],ss:["second","\\d\\d"],YYYY:["year","\\d{4}"],S:["millisecond","\\d",function(e){return 100*+e}],SS:["millisecond","\\d\\d",function(e){return 10*+e}],SSS:["millisecond","\\d{3}"],d:b,dd:b,ddd:w,dddd:w,MMM:["month",i,a("monthNamesShort")],MMMM:["month",i,a("monthNames")],a:S,A:S,ZZ:_,Z:_},O={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"},R=function(e){return l(O,e)},T=function(e,t,r){if(void 0===t&&(t=O.default),void 0===r&&(r={}),"number"==typeof e&&(e=new Date(e)),"[object Date]"!==Object.prototype.toString.call(e)||isNaN(e.getTime()))throw new Error("Invalid Date pass to format");var i=[];t=(t=O[t]||t).replace(o,(function(e,t){return i.push(t),"@@@"}));var s=l(l({},h),r);return(t=t.replace(n,(function(t){return v[t](e,s)}))).replace(/@@@/g,(function(){return i.shift()}))};function j(e,t,r){if(void 0===r&&(r={}),"string"!=typeof t)throw new Error("Invalid format in fecha parse");if(t=O[t]||t,e.length>1e3)return null;var i={year:(new Date).getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},s=[],a=[],u=t.replace(o,(function(e,t){return a.push(g(t)),"@@@"})),c={},p={};u=g(u).replace(n,(function(e){var t=E[e],r=t[0],n=t[1],i=t[3];if(c[r])throw new Error("Invalid format. "+r+" specified twice in format");return c[r]=!0,i&&(p[i]=!0),s.push(t),"("+n+")"})),Object.keys(p).forEach((function(e){if(!c[e])throw new Error("Invalid format. "+e+" is required in specified format")})),u=u.replace(/@@@/g,(function(){return a.shift()}));var f=e.match(new RegExp(u,"i"));if(!f)return null;for(var d,y=l(l({},h),r),v=1;v<f.length;v++){var m=s[v-1],b=m[0],w=m[2],S=w?w(f[v],y):+f[v];if(null==S)return null;i[b]=S}if(1===i.isPm&&null!=i.hour&&12!=+i.hour?i.hour=+i.hour+12:0===i.isPm&&12==+i.hour&&(i.hour=0),null==i.timezoneOffset){d=new Date(i.year,i.month,i.day,i.hour,i.minute,i.second,i.millisecond);for(var _=[["month","getMonth"],["day","getDate"],["hour","getHours"],["minute","getMinutes"],["second","getSeconds"]],R=(v=0,_.length);v<R;v++)if(c[_[v][0]]&&i[_[v][0]]!==d[_[v][1]]())return null}else if(d=new Date(Date.UTC(i.year,i.month,i.day,i.hour,i.minute-i.timezoneOffset,i.second,i.millisecond)),i.month>11||i.month<0||i.day>31||i.day<1||i.hour>23||i.hour<0||i.minute>59||i.minute<0||i.second>59||i.second<0)return null;return d}const P={format:T,parse:j,defaultI18n:f,setGlobalDateI18n:d,setGlobalDateMasks:R}},9827:e=>{"use strict";var t=Object.prototype.toString;e.exports=function(e){if("string"==typeof e.displayName&&e.constructor.name)return e.displayName;if("string"==typeof e.name&&e.name)return e.name;if("object"==typeof e&&e.constructor&&"string"==typeof e.constructor.name)return e.constructor.name;var r=e.toString(),n=t.call(e).slice(8,-1);return(r="Function"===n?r.substring(r.indexOf("(")+1,r.indexOf(")")):n)||"anonymous"}},705:(e,t,r)=>{"use strict";var n=r(9617),i=Object.prototype.toString,o=Object.prototype.hasOwnProperty,s=function(e,t,r){for(var n=0,i=e.length;n<i;n++)o.call(e,n)&&(null==r?t(e[n],n,e):t.call(r,e[n],n,e))},a=function(e,t,r){for(var n=0,i=e.length;n<i;n++)null==r?t(e.charAt(n),n,e):t.call(r,e.charAt(n),n,e)},l=function(e,t,r){for(var n in e)o.call(e,n)&&(null==r?t(e[n],n,e):t.call(r,e[n],n,e))};e.exports=function(e,t,r){if(!n(t))throw new TypeError("iterator must be a function");var o;arguments.length>=3&&(o=r),"[object Array]"===i.call(e)?s(e,t,o):"string"==typeof e?a(e,t,o):l(e,t,o)}},8794:e=>{"use strict";var t="Function.prototype.bind called on incompatible ",r=Object.prototype.toString,n=Math.max,i=function(e,t){for(var r=[],n=0;n<e.length;n+=1)r[n]=e[n];for(var i=0;i<t.length;i+=1)r[i+e.length]=t[i];return r},o=function(e,t){for(var r=[],n=t||0,i=0;n<e.length;n+=1,i+=1)r[i]=e[n];return r},s=function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r};e.exports=function(e){var a=this;if("function"!=typeof a||"[object Function]"!==r.apply(a))throw new TypeError(t+a);for(var l,u=o(arguments,1),c=function(){if(this instanceof l){var t=a.apply(this,i(u,arguments));return Object(t)===t?t:this}return a.apply(e,i(u,arguments))},p=n(0,a.length-u.length),f=[],h=0;h<p;h++)f[h]="$"+h;if(l=Function("binder","return function ("+s(f,",")+"){ return binder.apply(this,arguments); }")(c),a.prototype){var d=function(){};d.prototype=a.prototype,l.prototype=new d,d.prototype=null}return l}},9138:(e,t,r)=>{"use strict";var n=r(8794);e.exports=Function.prototype.bind||n},528:(e,t,r)=>{"use strict";var n=r(9838),i=r(9110),o=r(1155),s=r(4943),a=r(5731),l=r(3468),u=r(2140),c=Function,p=function(e){try{return c('"use strict"; return ('+e+").constructor;")()}catch(e){}},f=Object.getOwnPropertyDescriptor;if(f)try{f({},"")}catch(e){f=null}var h=function(){throw new l},d=f?function(){try{return h}catch(e){try{return f(arguments,"callee").get}catch(e){return h}}}():h,g=r(3558)(),y=r(6869)(),v=Object.getPrototypeOf||(y?function(e){return e.__proto__}:null),m={},b="undefined"!=typeof Uint8Array&&v?v(Uint8Array):void 0,w={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?void 0:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayIteratorPrototype%":g&&v?v([][Symbol.iterator]()):void 0,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":m,"%AsyncGenerator%":m,"%AsyncGeneratorFunction%":m,"%AsyncIteratorPrototype%":m,"%Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"%BigInt%":"undefined"==typeof BigInt?void 0:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?void 0:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?void 0:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?void 0:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":n,"%eval%":eval,"%EvalError%":i,"%Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?void 0:FinalizationRegistry,"%Function%":c,"%GeneratorFunction%":m,"%Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":g&&v?v(v([][Symbol.iterator]())):void 0,"%JSON%":"object"==typeof JSON?JSON:void 0,"%Map%":"undefined"==typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&g&&v?v((new Map)[Symbol.iterator]()):void 0,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?void 0:Promise,"%Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"%RangeError%":o,"%ReferenceError%":s,"%Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?void 0:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&g&&v?v((new Set)[Symbol.iterator]()):void 0,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":g&&v?v(""[Symbol.iterator]()):void 0,"%Symbol%":g?Symbol:void 0,"%SyntaxError%":a,"%ThrowTypeError%":d,"%TypedArray%":b,"%TypeError%":l,"%Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"%URIError%":u,"%WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?void 0:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet};if(v)try{null.error}catch(e){var S=v(v(e));w["%Error.prototype%"]=S}var _={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},E=r(9138),O=r(8554),R=E.call(Function.call,Array.prototype.concat),T=E.call(Function.apply,Array.prototype.splice),j=E.call(Function.call,String.prototype.replace),P=E.call(Function.call,String.prototype.slice),x=E.call(Function.call,RegExp.prototype.exec),A=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,I=/\\(\\)?/g,C=function(e){var t=P(e,0,1),r=P(e,-1);if("%"===t&&"%"!==r)throw new a("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new a("invalid intrinsic syntax, expected opening `%`");var n=[];return j(e,A,(function(e,t,r,i){n[n.length]=r?j(i,I,"$1"):t||e})),n},k=function(e,t){var r,n=e;if(O(_,n)&&(n="%"+(r=_[n])[0]+"%"),O(w,n)){var i=w[n];if(i===m&&(i=function e(t){var r;if("%AsyncFunction%"===t)r=p("async function () {}");else if("%GeneratorFunction%"===t)r=p("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=p("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&v&&(r=v(i.prototype))}return w[t]=r,r}(n)),void 0===i&&!t)throw new l("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new a("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new l("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new l('"allowMissing" argument must be a boolean');if(null===x(/^%?[^%]*%?$/,e))throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=C(e),n=r.length>0?r[0]:"",i=k("%"+n+"%",t),o=i.name,s=i.value,u=!1,c=i.alias;c&&(n=c[0],T(r,R([0,1],c)));for(var p=1,h=!0;p<r.length;p+=1){var d=r[p],g=P(d,0,1),y=P(d,-1);if(('"'===g||"'"===g||"`"===g||'"'===y||"'"===y||"`"===y)&&g!==y)throw new a("property names with quotes must have matching quotes");if("constructor"!==d&&h||(u=!0),O(w,o="%"+(n+="."+d)+"%"))s=w[o];else if(null!=s){if(!(d in s)){if(!t)throw new l("base intrinsic for "+e+" exists, but the property is not available.");return}if(f&&p+1>=r.length){var v=f(s,d);s=(h=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:s[d]}else h=O(s,d),s=s[d];h&&!u&&(w[o]=s)}}return s}},7186:function(e,t,r){var n="function"==typeof Object.defineProperties?Object.defineProperty:function(e,t,r){e!=Array.prototype&&e!=Object.prototype&&(e[t]=r.value)},i="undefined"!=typeof window&&window===this?this:void 0!==r.g&&null!=r.g?r.g:this;function o(){o=function(){},i.Symbol||(i.Symbol=l)}function s(e,t){this.a=e,n(this,"description",{configurable:!0,writable:!0,value:t})}s.prototype.toString=function(){return this.a};var a,l=(a=0,function e(t){if(this instanceof e)throw new TypeError("Symbol is not a constructor");return new s("jscomp_symbol_"+(t||"")+"_"+a++,t)});function u(){o();var e=i.Symbol.iterator;e||(e=i.Symbol.iterator=i.Symbol("Symbol.iterator")),"function"!=typeof Array.prototype[e]&&n(Array.prototype,e,{configurable:!0,writable:!0,value:function(){return function(e){return u(),(e={next:e})[i.Symbol.iterator]=function(){return this},e}(function(e){var t=0;return function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}}}(this))}}),u=function(){}}!function(e,t){if(t){var r=i;e=e.split(".");for(var o=0;o<e.length-1;o++){var s=e[o];s in r||(r[s]={}),r=r[s]}(t=t(o=r[e=e[e.length-1]]))!=o&&null!=t&&n(r,e,{configurable:!0,writable:!0,value:t})}}("Array.prototype.entries",(function(e){return e||function(){return function(e,t){u(),e instanceof String&&(e+="");var r=0,n={next:function(){if(r<e.length){var i=r++;return{value:t(i,e[i]),done:!1}}return n.next=function(){return{done:!0,value:void 0}},n.next()}};return n[Symbol.iterator]=function(){return n},n}(this,(function(e,t){return[e,t]}))}}));var c=this||self;function p(e,t,r){e=e.split("."),r=r||c,e[0]in r||void 0===r.execScript||r.execScript("var "+e[0]);for(var n;e.length&&(n=e.shift());)e.length||void 0===t?r=r[n]&&r[n]!==Object.prototype[n]?r[n]:r[n]={}:r[n]=t}function f(e){var t=typeof e;if("object"==t){if(!e)return"null";if(e instanceof Array)return"array";if(e instanceof Object)return t;var r=Object.prototype.toString.call(e);if("[object Window]"==r)return"object";if("[object Array]"==r||"number"==typeof e.length&&void 0!==e.splice&&void 0!==e.propertyIsEnumerable&&!e.propertyIsEnumerable("splice"))return"array";if("[object Function]"==r||void 0!==e.call&&void 0!==e.propertyIsEnumerable&&!e.propertyIsEnumerable("call"))return"function"}else if("function"==t&&void 0===e.call)return"object";return t}function h(e){var t=typeof e;return"object"==t&&null!=e||"function"==t}var d="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");var g=Array.prototype.forEach?function(e,t){Array.prototype.forEach.call(e,t,void 0)}:function(e,t){for(var r=e.length,n="string"==typeof e?e.split(""):e,i=0;i<r;i++)i in n&&t.call(void 0,n[i],i,e)},y=Array.prototype.map?function(e,t){return Array.prototype.map.call(e,t,void 0)}:function(e,t){for(var r=e.length,n=Array(r),i="string"==typeof e?e.split(""):e,o=0;o<r;o++)o in i&&(n[o]=t.call(void 0,i[o],o,e));return n};function v(e,t,r){return 2>=arguments.length?Array.prototype.slice.call(e,t):Array.prototype.slice.call(e,t,r)}function m(e,t,r,n){var i="Assertion failed";if(r){i+=": "+r;var o=n}else e&&(i+=": "+e,o=t);throw Error(i,o||[])}function b(e,t,r){for(var n=[],i=2;i<arguments.length;++i)n[i-2]=arguments[i];return e||m("",null,t,n),e}function w(e,t){for(var r=[],n=1;n<arguments.length;++n)r[n-1]=arguments[n];throw Error("Failure"+(e?": "+e:""),r)}function S(e,t,r,n){for(var i=[],o=3;o<arguments.length;++o)i[o-3]=arguments[o];e instanceof t||m("Expected instanceof %s but got %s.",[_(t),_(e)],r,i)}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):null===e?"null":typeof e}function E(e,t){if(this.c=e,this.b=t,this.a={},this.arrClean=!0,0<this.c.length){for(e=0;e<this.c.length;e++){var r=(t=this.c[e])[0];this.a[r.toString()]=new j(r,t[1])}this.arrClean=!0}}function O(e){this.a=0,this.b=e}function R(e,t){return e.b?(t.a||(t.a=new e.b(t.value)),t.a):t.value}function T(e){e=e.a;var t,r=[];for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.push(t);return r}function j(e,t){this.key=e,this.value=t,this.a=void 0}function P(e){if(8192>=e.length)return String.fromCharCode.apply(null,e);for(var t="",r=0;r<e.length;r+=8192)t+=String.fromCharCode.apply(null,v(e,r,r+8192));return t}p("jspb.Map",E,void 0),E.prototype.g=function(){if(this.arrClean){if(this.b){var e,t=this.a;for(e in t)if(Object.prototype.hasOwnProperty.call(t,e)){var r=t[e].a;r&&r.g()}}}else{for(this.c.length=0,(t=T(this)).sort(),e=0;e<t.length;e++){var n=this.a[t[e]];(r=n.a)&&r.g(),this.c.push([n.key,n.value])}this.arrClean=!0}return this.c},E.prototype.toArray=E.prototype.g,E.prototype.Mc=function(e,t){for(var r=this.g(),n=[],i=0;i<r.length;i++){var o=this.a[r[i][0].toString()];R(this,o);var s=o.a;s?(b(t),n.push([o.key,t(e,s)])):n.push([o.key,o.value])}return n},E.prototype.toObject=E.prototype.Mc,E.fromObject=function(e,t,r){t=new E([],t);for(var n=0;n<e.length;n++){var i=e[n][0],o=r(e[n][1]);t.set(i,o)}return t},O.prototype.next=function(){return this.a<this.b.length?{done:!1,value:this.b[this.a++]}:{done:!0,value:void 0}},"undefined"!=typeof Symbol&&(O.prototype[Symbol.iterator]=function(){return this}),E.prototype.Jb=function(){return T(this).length},E.prototype.getLength=E.prototype.Jb,E.prototype.clear=function(){this.a={},this.arrClean=!1},E.prototype.clear=E.prototype.clear,E.prototype.Cb=function(e){e=e.toString();var t=this.a.hasOwnProperty(e);return delete this.a[e],this.arrClean=!1,t},E.prototype.del=E.prototype.Cb,E.prototype.Eb=function(){var e=[],t=T(this);t.sort();for(var r=0;r<t.length;r++){var n=this.a[t[r]];e.push([n.key,n.value])}return e},E.prototype.getEntryList=E.prototype.Eb,E.prototype.entries=function(){var e=[],t=T(this);t.sort();for(var r=0;r<t.length;r++){var n=this.a[t[r]];e.push([n.key,R(this,n)])}return new O(e)},E.prototype.entries=E.prototype.entries,E.prototype.keys=function(){var e=[],t=T(this);t.sort();for(var r=0;r<t.length;r++)e.push(this.a[t[r]].key);return new O(e)},E.prototype.keys=E.prototype.keys,E.prototype.values=function(){var e=[],t=T(this);t.sort();for(var r=0;r<t.length;r++)e.push(R(this,this.a[t[r]]));return new O(e)},E.prototype.values=E.prototype.values,E.prototype.forEach=function(e,t){var r=T(this);r.sort();for(var n=0;n<r.length;n++){var i=this.a[r[n]];e.call(t,R(this,i),i.key,this)}},E.prototype.forEach=E.prototype.forEach,E.prototype.set=function(e,t){var r=new j(e);return this.b?(r.a=t,r.value=t.g()):r.value=t,this.a[e.toString()]=r,this.arrClean=!1,this},E.prototype.set=E.prototype.set,E.prototype.get=function(e){if(e=this.a[e.toString()])return R(this,e)},E.prototype.get=E.prototype.get,E.prototype.has=function(e){return e.toString()in this.a},E.prototype.has=E.prototype.has,E.prototype.Jc=function(e,t,r,n,i){var o=T(this);o.sort();for(var s=0;s<o.length;s++){var a=this.a[o[s]];t.Va(e),r.call(t,1,a.key),this.b?n.call(t,2,R(this,a),i):n.call(t,2,a.value),t.Ya()}},E.prototype.serializeBinary=E.prototype.Jc,E.deserializeBinary=function(e,t,r,n,i,o,s){for(;t.oa()&&!t.bb();){var a=t.c;1==a?o=r.call(t):2==a&&(e.b?(b(i),s||(s=new e.b),n.call(t,s,i)):s=n.call(t))}b(null!=o),b(null!=s),e.set(o,s)};var x={"\0":"\\0","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\x0B",'"':'\\"',"\\":"\\\\","<":"\\u003C"},A={"'":"\\'"},I={},C=null;function k(e,t){void 0===t&&(t=0),F(),t=I[t];for(var r=[],n=0;n<e.length;n+=3){var i=e[n],o=n+1<e.length,s=o?e[n+1]:0,a=n+2<e.length,l=a?e[n+2]:0,u=i>>2;i=(3&i)<<4|s>>4,s=(15&s)<<2|l>>6,l&=63,a||(l=64,o||(s=64)),r.push(t[u],t[i],t[s]||"",t[l]||"")}return r.join("")}function M(e){var t=e.length,r=3*t/4;r%3?r=Math.floor(r):-1!="=.".indexOf(e[t-1])&&(r=-1!="=.".indexOf(e[t-2])?r-2:r-1);var n=new Uint8Array(r),i=0;return function(e,t){function r(t){for(;n<e.length;){var r=e.charAt(n++),i=C[r];if(null!=i)return i;if(!/^[\s\xa0]*$/.test(r))throw Error("Unknown base64 encoding at char: "+r)}return t}F();for(var n=0;;){var i=r(-1),o=r(0),s=r(64),a=r(64);if(64===a&&-1===i)break;t(i<<2|o>>4),64!=s&&(t(o<<4&240|s>>2),64!=a&&t(s<<6&192|a))}}(e,(function(e){n[i++]=e})),n.subarray(0,i)}function F(){if(!C){C={};for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),t=["+/=","+/","-_=","-_.","-_"],r=0;5>r;r++){var n=e.concat(t[r].split(""));I[r]=n;for(var i=0;i<n.length;i++){var o=n[i];void 0===C[o]&&(C[o]=i)}}}}p("jspb.ConstBinaryMessage",(function(){}),void 0),p("jspb.BinaryMessage",(function(){}),void 0),p("jspb.BinaryConstants.FieldType",{yb:-1,ee:1,FLOAT:2,ke:3,te:4,je:5,xb:6,wb:7,BOOL:8,re:9,ie:10,le:11,ce:12,se:13,ge:14,me:15,ne:16,oe:17,pe:18,he:30,ve:31},void 0),p("jspb.BinaryConstants.WireType",{yb:-1,ue:0,xb:1,de:2,qe:3,fe:4,wb:5},void 0),p("jspb.BinaryConstants.FieldTypeToWireType",(function(e){switch(e){case 5:case 3:case 13:case 4:case 17:case 18:case 8:case 14:case 31:return 0;case 1:case 6:case 16:case 30:return 1;case 9:case 11:case 12:return 2;case 2:case 7:case 15:return 5;default:return-1}}),void 0),p("jspb.BinaryConstants.INVALID_FIELD_NUMBER",-1,void 0),p("jspb.BinaryConstants.FLOAT32_EPS",1401298464324817e-60,void 0),p("jspb.BinaryConstants.FLOAT32_MIN",11754943508222875e-54,void 0),p("jspb.BinaryConstants.FLOAT32_MAX",34028234663852886e22,void 0),p("jspb.BinaryConstants.FLOAT64_EPS",5e-324,void 0),p("jspb.BinaryConstants.FLOAT64_MIN",22250738585072014e-324,void 0),p("jspb.BinaryConstants.FLOAT64_MAX",17976931348623157e292,void 0),p("jspb.BinaryConstants.TWO_TO_20",1048576,void 0),p("jspb.BinaryConstants.TWO_TO_23",8388608,void 0),p("jspb.BinaryConstants.TWO_TO_31",2147483648,void 0),p("jspb.BinaryConstants.TWO_TO_32",4294967296,void 0),p("jspb.BinaryConstants.TWO_TO_52",4503599627370496,void 0),p("jspb.BinaryConstants.TWO_TO_63",0x8000000000000000,void 0),p("jspb.BinaryConstants.TWO_TO_64",0x10000000000000000,void 0),p("jspb.BinaryConstants.ZERO_HASH","\0\0\0\0\0\0\0\0",void 0);var B=0,D=0;function L(e){var t=e>>>0;e=Math.floor((e-t)/4294967296)>>>0,B=t,D=e}function N(e){var t=0>e,r=(e=Math.abs(e))>>>0;e=Math.floor((e-r)/4294967296),e>>>=0,t&&(e=~e>>>0,4294967295<(r=1+(~r>>>0))&&(r=0,4294967295<++e&&(e=0))),B=r,D=e}function z(e){var t=0>e;L(e=2*Math.abs(e)),e=B;var r=D;t&&(0==e?0==r?r=e=4294967295:(r--,e=4294967295):e--),B=e,D=r}function U(e){var t=0>e?1:0;if(0===(e=t?-e:e))0<1/e?B=D=0:(D=0,B=2147483648);else if(isNaN(e))D=0,B=2147483647;else if(34028234663852886e22<e)D=0,B=(t<<31|2139095040)>>>0;else if(11754943508222875e-54>e)e=Math.round(e/Math.pow(2,-149)),D=0,B=(t<<31|e)>>>0;else{var r=Math.floor(Math.log(e)/Math.LN2);e*=Math.pow(2,-r),16777216<=(e=Math.round(8388608*e))&&++r,D=0,B=(t<<31|r+127<<23|8388607&e)>>>0}}function G(e){var t=0>e?1:0;if(0===(e=t?-e:e))D=0<1/e?0:2147483648,B=0;else if(isNaN(e))D=2147483647,B=4294967295;else if(17976931348623157e292<e)D=(t<<31|2146435072)>>>0,B=0;else if(22250738585072014e-324>e)e/=Math.pow(2,-1074),D=(t<<31|e/4294967296)>>>0,B=e>>>0;else{var r=e,n=0;if(2<=r)for(;2<=r&&1023>n;)n++,r/=2;else for(;1>r&&-1022<n;)r*=2,n--;e*=Math.pow(2,-n),D=(t<<31|n+1023<<20|1048576*e&1048575)>>>0,B=4503599627370496*e>>>0}}function V(e){var t=e.charCodeAt(4),r=e.charCodeAt(5),n=e.charCodeAt(6),i=e.charCodeAt(7);B=e.charCodeAt(0)+(e.charCodeAt(1)<<8)+(e.charCodeAt(2)<<16)+(e.charCodeAt(3)<<24)>>>0,D=t+(r<<8)+(n<<16)+(i<<24)>>>0}function W(e,t){return 4294967296*t+(e>>>0)}function q(e,t){var r=2147483648&t;return r&&(t=~t>>>0,0==(e=1+~e>>>0)&&(t=t+1>>>0)),e=W(e,t),r?-e:e}function H(e,t,r){var n=t>>31;return r(e<<1^n,(t<<1|e>>>31)^n)}function $(e,t){return Z(e,t,q)}function Z(e,t,r){var n=-(1&e);return r((e>>>1|t<<31)^n,t>>>1^n)}function Y(e){var t=2*(e>>31)+1,r=e>>>23&255;return e&=8388607,255==r?e?NaN:1/0*t:0==r?t*Math.pow(2,-149)*e:t*Math.pow(2,r-150)*(e+Math.pow(2,23))}function J(e,t){var r=2*(t>>31)+1,n=t>>>20&2047;return e=4294967296*(1048575&t)+e,2047==n?e?NaN:1/0*r:0==n?r*Math.pow(2,-1074)*e:r*Math.pow(2,n-1075)*(e+4503599627370496)}function K(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)}function X(e,t){function r(e,t){return e=e?String(e):"",t?"0000000".slice(e.length)+e:e}if(2097151>=t)return""+W(e,t);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)}function Q(e,t){var r=2147483648&t;return r&&(t=~t+(0==(e=1+~e>>>0)?1:0)>>>0),e=X(e,t),r?"-"+e:e}function ee(e,t){V(e),e=B;var r=D;return t?Q(e,r):X(e,r)}function te(e){function t(e,t){for(var r=0;8>r&&(1!==e||0<t);r++)t=e*n[r]+t,n[r]=255&t,t>>>=8}b(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)-48);return r&&(function(){for(var e=0;8>e;e++)n[e]=255&~n[e]}(),t(1,1)),P(n)}function re(e){return String.fromCharCode(10>e?48+e:87+e)}function ne(e){return 97<=e?e-97+10:e-48}function ie(e,t,r,n,i){var o=0;if(128>n)for(;t<r&&e[t++]==n;)o++,t+=i;else for(;t<r;){for(var s=n;128<s;){if(e[t++]!=(127&s|128))return o;s>>=7}if(e[t++]!=s)break;o++,t+=i}return o}function oe(e){return e.constructor===Uint8Array?e:e.constructor===ArrayBuffer||e.constructor===Array?new Uint8Array(e):e.constructor===String?M(e):e instanceof Uint8Array?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):(w("Type not convertible to Uint8Array."),new Uint8Array(0))}function se(e,t,r){this.b=null,this.a=this.c=this.h=0,this.v=!1,e&&this.H(e,t,r)}p("jspb.utils.getSplit64Low",(function(){return B}),void 0),p("jspb.utils.getSplit64High",(function(){return D}),void 0),p("jspb.utils.splitUint64",L,void 0),p("jspb.utils.splitInt64",N,void 0),p("jspb.utils.splitZigzag64",z,void 0),p("jspb.utils.splitFloat32",U,void 0),p("jspb.utils.splitFloat64",G,void 0),p("jspb.utils.splitHash64",V,void 0),p("jspb.utils.joinUint64",W,void 0),p("jspb.utils.joinInt64",q,void 0),p("jspb.utils.toZigzag64",H,void 0),p("jspb.utils.joinZigzag64",$,void 0),p("jspb.utils.fromZigzag64",Z,void 0),p("jspb.utils.joinFloat32",Y,void 0),p("jspb.utils.joinFloat64",J,void 0),p("jspb.utils.joinHash64",K,void 0),p("jspb.utils.DIGITS","0123456789abcdef".split(""),void 0),p("jspb.utils.joinUnsignedDecimalString",X,void 0),p("jspb.utils.joinSignedDecimalString",Q,void 0),p("jspb.utils.hash64ToDecimalString",ee,void 0),p("jspb.utils.hash64ArrayToDecimalStrings",(function(e,t){for(var r=Array(e.length),n=0;n<e.length;n++)r[n]=ee(e[n],t);return r}),void 0),p("jspb.utils.decimalStringToHash64",te,void 0),p("jspb.utils.splitDecimalString",(function(e){V(te(e))}),void 0),p("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]=re(n>>4),t[2*r+3]=re(15&n)}return t.join("")}),void 0),p("jspb.utils.hexStringToHash64",(function(e){b(18==(e=e.toLowerCase()).length),b("0"==e[0]),b("x"==e[1]);for(var t="",r=0;8>r;r++)t=String.fromCharCode(16*ne(e.charCodeAt(2*r+2))+ne(e.charCodeAt(2*r+3)))+t;return t}),void 0),p("jspb.utils.hash64ToNumber",(function(e,t){V(e),e=B;var r=D;return t?q(e,r):W(e,r)}),void 0),p("jspb.utils.numberToHash64",(function(e){return N(e),K(B,D)}),void 0),p("jspb.utils.countVarints",(function(e,t,r){for(var n=0,i=t;i<r;i++)n+=e[i]>>7;return r-t-n}),void 0),p("jspb.utils.countVarintFields",(function(e,t,r,n){var i=0;if(128>(n*=8))for(;t<r&&e[t++]==n;)for(i++;;){var o=e[t++];if(0==(128&o))break}else for(;t<r;){for(o=n;128<o;){if(e[t]!=(127&o|128))return i;t++,o>>=7}if(e[t++]!=o)break;for(i++;0!=(128&(o=e[t++])););}return i}),void 0),p("jspb.utils.countFixed32Fields",(function(e,t,r,n){return ie(e,t,r,8*n+5,4)}),void 0),p("jspb.utils.countFixed64Fields",(function(e,t,r,n){return ie(e,t,r,8*n+1,8)}),void 0),p("jspb.utils.countDelimitedFields",(function(e,t,r,n){var i=0;for(n=8*n+2;t<r;){for(var o=n;128<o;){if(e[t++]!=(127&o|128))return i;o>>=7}if(e[t++]!=o)break;i++;for(var s=0,a=1;s+=(127&(o=e[t++]))*a,a*=128,0!=(128&o););t+=s}return i}),void 0),p("jspb.utils.debugBytesToTextFormat",(function(e){var t='"';if(e){e=oe(e);for(var r=0;r<e.length;r++)t+="\\x",16>e[r]&&(t+="0"),t+=e[r].toString(16)}return t+'"'}),void 0),p("jspb.utils.debugScalarToTextFormat",(function(e){if("string"==typeof e){e=String(e);for(var t=['"'],r=0;r<e.length;r++){var n,i=e.charAt(r),o=i.charCodeAt(0),s=r+1;(n=x[i])||(31<o&&127>o||((o=i)in A?i=A[o]:o in x?i=A[o]=x[o]:(31<(n=o.charCodeAt(0))&&127>n?i=o:(256>n?(i="\\x",(16>n||256<n)&&(i+="0")):(i="\\u",4096>n&&(i+="0")),i+=n.toString(16).toUpperCase()),i=A[o]=i)),n=i),t[s]=n}t.push('"'),e=t.join("")}else e=e.toString();return e}),void 0),p("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}),void 0),p("jspb.utils.byteSourceToUint8Array",oe,void 0),p("jspb.BinaryDecoder",se,void 0);var ae=[];function le(e,t,r){if(ae.length){var n=ae.pop();return e&&n.H(e,t,r),n}return new se(e,t,r)}function ue(e,t,r){this.a=le(e,t,r),this.O=this.a.B(),this.b=this.c=-1,this.h=!1,this.v=null}se.getInstanceCacheLength=function(){return ae.length},se.alloc=le,se.prototype.Ca=function(){this.clear(),100>ae.length&&ae.push(this)},se.prototype.free=se.prototype.Ca,se.prototype.clone=function(){return le(this.b,this.h,this.c-this.h)},se.prototype.clone=se.prototype.clone,se.prototype.clear=function(){this.b=null,this.a=this.c=this.h=0,this.v=!1},se.prototype.clear=se.prototype.clear,se.prototype.Y=function(){return this.b},se.prototype.getBuffer=se.prototype.Y,se.prototype.H=function(e,t,r){this.b=oe(e),this.h=void 0!==t?t:0,this.c=void 0!==r?this.h+r:this.b.length,this.a=this.h},se.prototype.setBlock=se.prototype.H,se.prototype.Db=function(){return this.c},se.prototype.getEnd=se.prototype.Db,se.prototype.setEnd=function(e){this.c=e},se.prototype.setEnd=se.prototype.setEnd,se.prototype.reset=function(){this.a=this.h},se.prototype.reset=se.prototype.reset,se.prototype.B=function(){return this.a},se.prototype.getCursor=se.prototype.B,se.prototype.Ma=function(e){this.a=e},se.prototype.setCursor=se.prototype.Ma,se.prototype.advance=function(e){this.a+=e,b(this.a<=this.c)},se.prototype.advance=se.prototype.advance,se.prototype.ya=function(){return this.a==this.c},se.prototype.atEnd=se.prototype.ya,se.prototype.Qb=function(){return this.a>this.c},se.prototype.pastEnd=se.prototype.Qb,se.prototype.getError=function(){return this.v||0>this.a||this.a>this.c},se.prototype.getError=se.prototype.getError,se.prototype.w=function(e){for(var t=128,r=0,n=0,i=0;4>i&&128<=t;i++)r|=(127&(t=this.b[this.a++]))<<7*i;if(128<=t&&(r|=(127&(t=this.b[this.a++]))<<28,n|=(127&t)>>4),128<=t)for(i=0;5>i&&128<=t;i++)n|=(127&(t=this.b[this.a++]))<<7*i+3;if(128>t)return e(r>>>0,n>>>0);w("Failed to read varint, encoding is invalid."),this.v=!0},se.prototype.readSplitVarint64=se.prototype.w,se.prototype.ea=function(e){return this.w((function(t,r){return Z(t,r,e)}))},se.prototype.readSplitZigzagVarint64=se.prototype.ea,se.prototype.ta=function(e){var t=this.b,r=this.a;this.a+=8;for(var n=0,i=0,o=r+7;o>=r;o--)n=n<<8|t[o],i=i<<8|t[o+4];return e(n,i)},se.prototype.readSplitFixed64=se.prototype.ta,se.prototype.kb=function(){for(;128&this.b[this.a];)this.a++;this.a++},se.prototype.skipVarint=se.prototype.kb,se.prototype.mb=function(e){for(;128<e;)this.a--,e>>>=7;this.a--},se.prototype.unskipVarint=se.prototype.mb,se.prototype.o=function(){var e=this.b,t=e[this.a],r=127&t;return 128>t?(this.a+=1,b(this.a<=this.c),r):(r|=(127&(t=e[this.a+1]))<<7,128>t?(this.a+=2,b(this.a<=this.c),r):(r|=(127&(t=e[this.a+2]))<<14,128>t?(this.a+=3,b(this.a<=this.c),r):(r|=(127&(t=e[this.a+3]))<<21,128>t?(this.a+=4,b(this.a<=this.c),r):(r|=(15&(t=e[this.a+4]))<<28,128>t?(this.a+=5,b(this.a<=this.c),r>>>0):(this.a+=5,128<=e[this.a++]&&128<=e[this.a++]&&128<=e[this.a++]&&128<=e[this.a++]&&128<=e[this.a++]&&b(!1),b(this.a<=this.c),r)))))},se.prototype.readUnsignedVarint32=se.prototype.o,se.prototype.da=function(){return~~this.o()},se.prototype.readSignedVarint32=se.prototype.da,se.prototype.O=function(){return this.o().toString()},se.prototype.Ea=function(){return this.da().toString()},se.prototype.readSignedVarint32String=se.prototype.Ea,se.prototype.Ia=function(){var e=this.o();return e>>>1^-(1&e)},se.prototype.readZigzagVarint32=se.prototype.Ia,se.prototype.Ga=function(){return this.w(W)},se.prototype.readUnsignedVarint64=se.prototype.Ga,se.prototype.Ha=function(){return this.w(X)},se.prototype.readUnsignedVarint64String=se.prototype.Ha,se.prototype.sa=function(){return this.w(q)},se.prototype.readSignedVarint64=se.prototype.sa,se.prototype.Fa=function(){return this.w(Q)},se.prototype.readSignedVarint64String=se.prototype.Fa,se.prototype.Ja=function(){return this.w($)},se.prototype.readZigzagVarint64=se.prototype.Ja,se.prototype.fb=function(){return this.ea(K)},se.prototype.readZigzagVarintHash64=se.prototype.fb,se.prototype.Ka=function(){return this.ea(Q)},se.prototype.readZigzagVarint64String=se.prototype.Ka,se.prototype.Gc=function(){var e=this.b[this.a];return this.a+=1,b(this.a<=this.c),e},se.prototype.readUint8=se.prototype.Gc,se.prototype.Ec=function(){var e=this.b[this.a],t=this.b[this.a+1];return this.a+=2,b(this.a<=this.c),e<<0|t<<8},se.prototype.readUint16=se.prototype.Ec,se.prototype.m=function(){var e=this.b[this.a],t=this.b[this.a+1],r=this.b[this.a+2],n=this.b[this.a+3];return this.a+=4,b(this.a<=this.c),(e<<0|t<<8|r<<16|n<<24)>>>0},se.prototype.readUint32=se.prototype.m,se.prototype.ga=function(){return W(this.m(),this.m())},se.prototype.readUint64=se.prototype.ga,se.prototype.ha=function(){return X(this.m(),this.m())},se.prototype.readUint64String=se.prototype.ha,se.prototype.Xb=function(){var e=this.b[this.a];return this.a+=1,b(this.a<=this.c),e<<24>>24},se.prototype.readInt8=se.prototype.Xb,se.prototype.Vb=function(){var e=this.b[this.a],t=this.b[this.a+1];return this.a+=2,b(this.a<=this.c),(e<<0|t<<8)<<16>>16},se.prototype.readInt16=se.prototype.Vb,se.prototype.P=function(){var e=this.b[this.a],t=this.b[this.a+1],r=this.b[this.a+2],n=this.b[this.a+3];return this.a+=4,b(this.a<=this.c),e<<0|t<<8|r<<16|n<<24},se.prototype.readInt32=se.prototype.P,se.prototype.ba=function(){return q(this.m(),this.m())},se.prototype.readInt64=se.prototype.ba,se.prototype.ca=function(){return Q(this.m(),this.m())},se.prototype.readInt64String=se.prototype.ca,se.prototype.aa=function(){return Y(this.m())},se.prototype.readFloat=se.prototype.aa,se.prototype.Z=function(){return J(this.m(),this.m())},se.prototype.readDouble=se.prototype.Z,se.prototype.pa=function(){return!!this.b[this.a++]},se.prototype.readBool=se.prototype.pa,se.prototype.ra=function(){return this.da()},se.prototype.readEnum=se.prototype.ra,se.prototype.fa=function(e){var t=this.b,r=this.a;e=r+e;for(var n=[],i="";r<e;){var o=t[r++];if(128>o)n.push(o);else{if(192>o)continue;if(224>o){var s=t[r++];n.push((31&o)<<6|63&s)}else if(240>o){s=t[r++];var a=t[r++];n.push((15&o)<<12|(63&s)<<6|63&a)}else if(248>o){o=(7&o)<<18|(63&(s=t[r++]))<<12|(63&(a=t[r++]))<<6|63&t[r++],o-=65536,n.push(55296+(o>>10&1023),56320+(1023&o))}}8192<=n.length&&(i+=String.fromCharCode.apply(null,n),n.length=0)}return i+=P(n),this.a=r,i},se.prototype.readString=se.prototype.fa,se.prototype.Dc=function(){var e=this.o();return this.fa(e)},se.prototype.readStringWithLength=se.prototype.Dc,se.prototype.qa=function(e){if(0>e||this.a+e>this.b.length)return this.v=!0,w("Invalid byte length!"),new Uint8Array(0);var t=this.b.subarray(this.a,this.a+e);return this.a+=e,b(this.a<=this.c),t},se.prototype.readBytes=se.prototype.qa,se.prototype.ia=function(){return this.w(K)},se.prototype.readVarintHash64=se.prototype.ia,se.prototype.$=function(){var e=this.b,t=this.a,r=e[t],n=e[t+1],i=e[t+2],o=e[t+3],s=e[t+4],a=e[t+5],l=e[t+6];return e=e[t+7],this.a+=8,String.fromCharCode(r,n,i,o,s,a,l,e)},se.prototype.readFixedHash64=se.prototype.$,p("jspb.BinaryReader",ue,void 0);var ce=[];function pe(e,t,r){if(ce.length){var n=ce.pop();return e&&n.a.H(e,t,r),n}return new ue(e,t,r)}function fe(e,t){b(2==e.b);var r=e.a.o();r=e.a.B()+r;for(var n=[];e.a.B()<r;)n.push(t.call(e.a));return n}function he(e,t,r,n,i){this.ma=e,this.Ba=t,this.la=r,this.Na=n,this.na=i}function de(e,t,r,n,i,o){this.Za=e,this.za=t,this.Aa=r,this.Wa=n,this.Ab=i,this.Nb=o}function ge(){}ue.clearInstanceCache=function(){ce=[]},ue.getInstanceCacheLength=function(){return ce.length},ue.alloc=pe,ue.prototype.zb=pe,ue.prototype.alloc=ue.prototype.zb,ue.prototype.Ca=function(){this.a.clear(),this.b=this.c=-1,this.h=!1,this.v=null,100>ce.length&&ce.push(this)},ue.prototype.free=ue.prototype.Ca,ue.prototype.Fb=function(){return this.O},ue.prototype.getFieldCursor=ue.prototype.Fb,ue.prototype.B=function(){return this.a.B()},ue.prototype.getCursor=ue.prototype.B,ue.prototype.Y=function(){return this.a.Y()},ue.prototype.getBuffer=ue.prototype.Y,ue.prototype.Hb=function(){return this.c},ue.prototype.getFieldNumber=ue.prototype.Hb,ue.prototype.Lb=function(){return this.b},ue.prototype.getWireType=ue.prototype.Lb,ue.prototype.Mb=function(){return 2==this.b},ue.prototype.isDelimited=ue.prototype.Mb,ue.prototype.bb=function(){return 4==this.b},ue.prototype.isEndGroup=ue.prototype.bb,ue.prototype.getError=function(){return this.h||this.a.getError()},ue.prototype.getError=ue.prototype.getError,ue.prototype.H=function(e,t,r){this.a.H(e,t,r),this.b=this.c=-1},ue.prototype.setBlock=ue.prototype.H,ue.prototype.reset=function(){this.a.reset(),this.b=this.c=-1},ue.prototype.reset=ue.prototype.reset,ue.prototype.advance=function(e){this.a.advance(e)},ue.prototype.advance=ue.prototype.advance,ue.prototype.oa=function(){if(this.a.ya())return!1;if(this.getError())return w("Decoder hit an error"),!1;this.O=this.a.B();var e=this.a.o(),t=e>>>3;return 0!=(e&=7)&&5!=e&&1!=e&&2!=e&&3!=e&&4!=e?(w("Invalid wire type: %s (at position %s)",e,this.O),this.h=!0,!1):(this.c=t,this.b=e,!0)},ue.prototype.nextField=ue.prototype.oa,ue.prototype.Oa=function(){this.a.mb(this.c<<3|this.b)},ue.prototype.unskipHeader=ue.prototype.Oa,ue.prototype.Lc=function(){var e=this.c;for(this.Oa();this.oa()&&this.c==e;)this.C();this.a.ya()||this.Oa()},ue.prototype.skipMatchingFields=ue.prototype.Lc,ue.prototype.lb=function(){0!=this.b?(w("Invalid wire type for skipVarintField"),this.C()):this.a.kb()},ue.prototype.skipVarintField=ue.prototype.lb,ue.prototype.gb=function(){if(2!=this.b)w("Invalid wire type for skipDelimitedField"),this.C();else{var e=this.a.o();this.a.advance(e)}},ue.prototype.skipDelimitedField=ue.prototype.gb,ue.prototype.hb=function(){5!=this.b?(w("Invalid wire type for skipFixed32Field"),this.C()):this.a.advance(4)},ue.prototype.skipFixed32Field=ue.prototype.hb,ue.prototype.ib=function(){1!=this.b?(w("Invalid wire type for skipFixed64Field"),this.C()):this.a.advance(8)},ue.prototype.skipFixed64Field=ue.prototype.ib,ue.prototype.jb=function(){for(var e=this.c;;){if(!this.oa()){w("Unmatched start-group tag: stream EOF"),this.h=!0;break}if(4==this.b){this.c!=e&&(w("Unmatched end-group tag"),this.h=!0);break}this.C()}},ue.prototype.skipGroup=ue.prototype.jb,ue.prototype.C=function(){switch(this.b){case 0:this.lb();break;case 1:this.ib();break;case 2:this.gb();break;case 5:this.hb();break;case 3:this.jb();break;default:w("Invalid wire encoding for field.")}},ue.prototype.skipField=ue.prototype.C,ue.prototype.Hc=function(e,t){null===this.v&&(this.v={}),b(!this.v[e]),this.v[e]=t},ue.prototype.registerReadCallback=ue.prototype.Hc,ue.prototype.Ic=function(e){return b(null!==this.v),b(e=this.v[e]),e(this)},ue.prototype.runReadCallback=ue.prototype.Ic,ue.prototype.Yb=function(e,t){b(2==this.b);var r=this.a.c,n=this.a.o();n=this.a.B()+n,this.a.setEnd(n),t(e,this),this.a.Ma(n),this.a.setEnd(r)},ue.prototype.readMessage=ue.prototype.Yb,ue.prototype.Ub=function(e,t,r){b(3==this.b),b(this.c==e),r(t,this),this.h||4==this.b||(w("Group submessage did not end with an END_GROUP tag"),this.h=!0)},ue.prototype.readGroup=ue.prototype.Ub,ue.prototype.Gb=function(){b(2==this.b);var e=this.a.o(),t=this.a.B(),r=t+e;return e=le(this.a.Y(),t,e),this.a.Ma(r),e},ue.prototype.getFieldDecoder=ue.prototype.Gb,ue.prototype.P=function(){return b(0==this.b),this.a.da()},ue.prototype.readInt32=ue.prototype.P,ue.prototype.Wb=function(){return b(0==this.b),this.a.Ea()},ue.prototype.readInt32String=ue.prototype.Wb,ue.prototype.ba=function(){return b(0==this.b),this.a.sa()},ue.prototype.readInt64=ue.prototype.ba,ue.prototype.ca=function(){return b(0==this.b),this.a.Fa()},ue.prototype.readInt64String=ue.prototype.ca,ue.prototype.m=function(){return b(0==this.b),this.a.o()},ue.prototype.readUint32=ue.prototype.m,ue.prototype.Fc=function(){return b(0==this.b),this.a.O()},ue.prototype.readUint32String=ue.prototype.Fc,ue.prototype.ga=function(){return b(0==this.b),this.a.Ga()},ue.prototype.readUint64=ue.prototype.ga,ue.prototype.ha=function(){return b(0==this.b),this.a.Ha()},ue.prototype.readUint64String=ue.prototype.ha,ue.prototype.zc=function(){return b(0==this.b),this.a.Ia()},ue.prototype.readSint32=ue.prototype.zc,ue.prototype.Ac=function(){return b(0==this.b),this.a.Ja()},ue.prototype.readSint64=ue.prototype.Ac,ue.prototype.Bc=function(){return b(0==this.b),this.a.Ka()},ue.prototype.readSint64String=ue.prototype.Bc,ue.prototype.Rb=function(){return b(5==this.b),this.a.m()},ue.prototype.readFixed32=ue.prototype.Rb,ue.prototype.Sb=function(){return b(1==this.b),this.a.ga()},ue.prototype.readFixed64=ue.prototype.Sb,ue.prototype.Tb=function(){return b(1==this.b),this.a.ha()},ue.prototype.readFixed64String=ue.prototype.Tb,ue.prototype.vc=function(){return b(5==this.b),this.a.P()},ue.prototype.readSfixed32=ue.prototype.vc,ue.prototype.wc=function(){return b(5==this.b),this.a.P().toString()},ue.prototype.readSfixed32String=ue.prototype.wc,ue.prototype.xc=function(){return b(1==this.b),this.a.ba()},ue.prototype.readSfixed64=ue.prototype.xc,ue.prototype.yc=function(){return b(1==this.b),this.a.ca()},ue.prototype.readSfixed64String=ue.prototype.yc,ue.prototype.aa=function(){return b(5==this.b),this.a.aa()},ue.prototype.readFloat=ue.prototype.aa,ue.prototype.Z=function(){return b(1==this.b),this.a.Z()},ue.prototype.readDouble=ue.prototype.Z,ue.prototype.pa=function(){return b(0==this.b),!!this.a.o()},ue.prototype.readBool=ue.prototype.pa,ue.prototype.ra=function(){return b(0==this.b),this.a.sa()},ue.prototype.readEnum=ue.prototype.ra,ue.prototype.fa=function(){b(2==this.b);var e=this.a.o();return this.a.fa(e)},ue.prototype.readString=ue.prototype.fa,ue.prototype.qa=function(){b(2==this.b);var e=this.a.o();return this.a.qa(e)},ue.prototype.readBytes=ue.prototype.qa,ue.prototype.ia=function(){return b(0==this.b),this.a.ia()},ue.prototype.readVarintHash64=ue.prototype.ia,ue.prototype.Cc=function(){return b(0==this.b),this.a.fb()},ue.prototype.readSintHash64=ue.prototype.Cc,ue.prototype.w=function(e){return b(0==this.b),this.a.w(e)},ue.prototype.readSplitVarint64=ue.prototype.w,ue.prototype.ea=function(e){return b(0==this.b),this.a.w((function(t,r){return Z(t,r,e)}))},ue.prototype.readSplitZigzagVarint64=ue.prototype.ea,ue.prototype.$=function(){return b(1==this.b),this.a.$()},ue.prototype.readFixedHash64=ue.prototype.$,ue.prototype.ta=function(e){return b(1==this.b),this.a.ta(e)},ue.prototype.readSplitFixed64=ue.prototype.ta,ue.prototype.gc=function(){return fe(this,this.a.da)},ue.prototype.readPackedInt32=ue.prototype.gc,ue.prototype.hc=function(){return fe(this,this.a.Ea)},ue.prototype.readPackedInt32String=ue.prototype.hc,ue.prototype.ic=function(){return fe(this,this.a.sa)},ue.prototype.readPackedInt64=ue.prototype.ic,ue.prototype.jc=function(){return fe(this,this.a.Fa)},ue.prototype.readPackedInt64String=ue.prototype.jc,ue.prototype.qc=function(){return fe(this,this.a.o)},ue.prototype.readPackedUint32=ue.prototype.qc,ue.prototype.rc=function(){return fe(this,this.a.O)},ue.prototype.readPackedUint32String=ue.prototype.rc,ue.prototype.sc=function(){return fe(this,this.a.Ga)},ue.prototype.readPackedUint64=ue.prototype.sc,ue.prototype.tc=function(){return fe(this,this.a.Ha)},ue.prototype.readPackedUint64String=ue.prototype.tc,ue.prototype.nc=function(){return fe(this,this.a.Ia)},ue.prototype.readPackedSint32=ue.prototype.nc,ue.prototype.oc=function(){return fe(this,this.a.Ja)},ue.prototype.readPackedSint64=ue.prototype.oc,ue.prototype.pc=function(){return fe(this,this.a.Ka)},ue.prototype.readPackedSint64String=ue.prototype.pc,ue.prototype.bc=function(){return fe(this,this.a.m)},ue.prototype.readPackedFixed32=ue.prototype.bc,ue.prototype.cc=function(){return fe(this,this.a.ga)},ue.prototype.readPackedFixed64=ue.prototype.cc,ue.prototype.dc=function(){return fe(this,this.a.ha)},ue.prototype.readPackedFixed64String=ue.prototype.dc,ue.prototype.kc=function(){return fe(this,this.a.P)},ue.prototype.readPackedSfixed32=ue.prototype.kc,ue.prototype.lc=function(){return fe(this,this.a.ba)},ue.prototype.readPackedSfixed64=ue.prototype.lc,ue.prototype.mc=function(){return fe(this,this.a.ca)},ue.prototype.readPackedSfixed64String=ue.prototype.mc,ue.prototype.fc=function(){return fe(this,this.a.aa)},ue.prototype.readPackedFloat=ue.prototype.fc,ue.prototype.$b=function(){return fe(this,this.a.Z)},ue.prototype.readPackedDouble=ue.prototype.$b,ue.prototype.Zb=function(){return fe(this,this.a.pa)},ue.prototype.readPackedBool=ue.prototype.Zb,ue.prototype.ac=function(){return fe(this,this.a.ra)},ue.prototype.readPackedEnum=ue.prototype.ac,ue.prototype.uc=function(){return fe(this,this.a.ia)},ue.prototype.readPackedVarintHash64=ue.prototype.uc,ue.prototype.ec=function(){return fe(this,this.a.$)},ue.prototype.readPackedFixedHash64=ue.prototype.ec,p("jspb.ExtensionFieldInfo",he,void 0),p("jspb.ExtensionFieldBinaryInfo",de,void 0),he.prototype.F=function(){return!!this.la},he.prototype.isMessageType=he.prototype.F,p("jspb.Message",ge,void 0),ge.GENERATE_TO_OBJECT=!0,ge.GENERATE_FROM_OBJECT=!0;var ye="function"==typeof Uint8Array;ge.prototype.Ib=function(){return this.b},ge.prototype.getJsPbMessageId=ge.prototype.Ib,ge.initialize=function(e,t,r,n,i,o){if(e.f=null,t||(t=r?[r]:[]),e.b=r?String(r):void 0,e.D=0===r?-1:0,e.u=t,t=-1,!(r=e.u.length)||(t=r-1,null===(r=e.u[t])||"object"!=typeof r||Array.isArray(r)||ye&&r instanceof Uint8Array)?-1<n?(e.G=Math.max(n,t+1-e.D),e.i=null):e.G=Number.MAX_VALUE:(e.G=t-e.D,e.i=r),e.a={},i)for(n=0;n<i.length;n++)(t=i[n])<e.G?(t+=e.D,e.u[t]=e.u[t]||ve):(me(e),e.i[t]=e.i[t]||ve);if(o&&o.length)for(n=0;n<o.length;n++)Ae(e,o[n])};var ve=Object.freeze?Object.freeze([]):[];function me(e){var t=e.G+e.D;e.u[t]||(e.i=e.u[t]={})}function be(e,t,r){for(var n=[],i=0;i<e.length;i++)n[i]=t.call(e[i],r,e[i]);return n}function we(e,t){if(t<e.G){t+=e.D;var r=e.u[t];return r===ve?e.u[t]=[]:r}if(e.i)return(r=e.i[t])===ve?e.i[t]=[]:r}function Se(e,t){return null==(e=we(e,t))?e:+e}function _e(e,t){return null==(e=we(e,t))?e:!!e}function Ee(e){return null==e||"string"==typeof e?e:ye&&e instanceof Uint8Array?k(e):(w("Cannot coerce to b64 string: "+f(e)),null)}function Oe(e){return null==e||e instanceof Uint8Array?e:"string"==typeof e?M(e):(w("Cannot coerce to Uint8Array: "+f(e)),null)}function Re(e){if(e&&1<e.length){var t=f(e[0]);g(e,(function(e){f(e)!=t&&w("Inconsistent type in JSPB repeated field array. Got "+f(e)+" expected "+t)}))}}function Te(e,t,r){return null==(e=we(e,t))?r:e}function je(e,t,r){return S(e,ge),t<e.G?e.u[t+e.D]=r:(me(e),e.i[t]=r),e}function Pe(e,t,r,n){return S(e,ge),r!==n?je(e,t,r):t<e.G?e.u[t+e.D]=null:(me(e),delete e.i[t]),e}function xe(e,t,r,n){return S(e,ge),(r=Ae(e,r))&&r!==t&&void 0!==n&&(e.f&&r in e.f&&(e.f[r]=void 0),je(e,r,void 0)),je(e,t,n)}function Ae(e,t){for(var r,n,i=0;i<t.length;i++){var o=t[i],s=we(e,o);null!=s&&(r=o,n=s,je(e,o,void 0))}return r?(je(e,r,n),r):0}function Ie(e,t,r){if(e.f||(e.f={}),!e.f[r]){for(var n=we(e,r),i=[],o=0;o<n.length;o++)i[o]=new t(n[o]);e.f[r]=i}}function Ce(e){if(e.f)for(var t in e.f){var r=e.f[t];if(Array.isArray(r))for(var n=0;n<r.length;n++)r[n]&&r[n].g();else r&&r.g()}}function ke(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(!Me(e[r],t[r]))return!1;return!0}function Me(e,t){if(e==t)return!0;if(!h(e)||!h(t))return!!("number"==typeof e&&isNaN(e)||"number"==typeof t&&isNaN(t))&&String(e)==String(t);if(e.constructor!=t.constructor)return!1;if(ye&&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,o=Math.max(e.length,t.length);for(r=0;r<o;r++){var s=e[r],a=t[r];if(s&&s.constructor==Object&&(b(void 0===n),b(r===e.length-1),n=s,s=void 0),a&&a.constructor==Object&&(b(void 0===i),b(r===t.length-1),i=a,a=void 0),!Me(s,a))return!1}return!n&&!i||ke(n=n||{},i=i||{})}if(e.constructor===Object)return ke(e,t);throw Error("Invalid type in JSPB array")}function Fe(e){return new e.constructor(function e(t){if(Array.isArray(t)){for(var r=Array(t.length),n=0;n<t.length;n++){var i=t[n];null!=i&&(r[n]="object"==typeof i?e(b(i)):i)}return r}if(ye&&t instanceof Uint8Array)return new Uint8Array(t);for(n in r={},t)null!=(i=t[n])&&(r[n]="object"==typeof i?e(b(i)):i);return r}(e.g()))}ge.toObjectList=be,ge.toObjectExtension=function(e,t,r,n,i){for(var o in r){var s=r[o],a=n.call(e,s);if(null!=a){for(var l in s.Ba)if(s.Ba.hasOwnProperty(l))break;t[l]=s.Na?s.na?be(a,s.Na,i):s.Na(i,a):a}}},ge.serializeBinaryExtensions=function(e,t,r,n){for(var i in r){var o=r[i],s=o.Za;if(!o.Aa)throw Error("Message extension present that was generated without binary serialization support");var a=n.call(e,s);if(null!=a)if(s.F()){if(!o.Wa)throw Error("Message extension present holding submessage without binary support enabled, and message is being serialized to binary format");o.Aa.call(t,s.ma,a,o.Wa)}else o.Aa.call(t,s.ma,a)}},ge.readBinaryExtension=function(e,t,r,n,i){var o=r[t.c];if(o){if(r=o.Za,!o.za)throw Error("Deserializing extension whose generated code does not support binary format");if(r.F()){var s=new r.la;o.za.call(t,s,o.Ab)}else s=o.za.call(t);r.na&&!o.Nb?(t=n.call(e,r))?t.push(s):i.call(e,r,[s]):i.call(e,r,s)}else t.C()},ge.getField=we,ge.getRepeatedField=function(e,t){return we(e,t)},ge.getOptionalFloatingPointField=Se,ge.getBooleanField=_e,ge.getRepeatedFloatingPointField=function(e,t){var r=we(e,t);if(e.a||(e.a={}),!e.a[t]){for(var n=0;n<r.length;n++)r[n]=+r[n];e.a[t]=!0}return r},ge.getRepeatedBooleanField=function(e,t){var r=we(e,t);if(e.a||(e.a={}),!e.a[t]){for(var n=0;n<r.length;n++)r[n]=!!r[n];e.a[t]=!0}return r},ge.bytesAsB64=Ee,ge.bytesAsU8=Oe,ge.bytesListAsB64=function(e){return Re(e),e.length&&"string"!=typeof e[0]?y(e,Ee):e},ge.bytesListAsU8=function(e){return Re(e),!e.length||e[0]instanceof Uint8Array?e:y(e,Oe)},ge.getFieldWithDefault=Te,ge.getBooleanFieldWithDefault=function(e,t,r){return null==(e=_e(e,t))?r:e},ge.getFloatingPointFieldWithDefault=function(e,t,r){return null==(e=Se(e,t))?r:e},ge.getFieldProto3=Te,ge.getMapField=function(e,t,r,n){if(e.f||(e.f={}),t in e.f)return e.f[t];var i=we(e,t);if(!i){if(r)return;je(e,t,i=[])}return e.f[t]=new E(i,n)},ge.setField=je,ge.setProto3IntField=function(e,t,r){return Pe(e,t,r,0)},ge.setProto3FloatField=function(e,t,r){return Pe(e,t,r,0)},ge.setProto3BooleanField=function(e,t,r){return Pe(e,t,r,!1)},ge.setProto3StringField=function(e,t,r){return Pe(e,t,r,"")},ge.setProto3BytesField=function(e,t,r){return Pe(e,t,r,"")},ge.setProto3EnumField=function(e,t,r){return Pe(e,t,r,0)},ge.setProto3StringIntField=function(e,t,r){return Pe(e,t,r,"0")},ge.addToRepeatedField=function(e,t,r,n){return S(e,ge),t=we(e,t),null!=n?t.splice(n,0,r):t.push(r),e},ge.setOneofField=xe,ge.computeOneofCase=Ae,ge.getWrapperField=function(e,t,r,n){if(e.f||(e.f={}),!e.f[r]){var i=we(e,r);(n||i)&&(e.f[r]=new t(i))}return e.f[r]},ge.getRepeatedWrapperField=function(e,t,r){return Ie(e,t,r),(t=e.f[r])==ve&&(t=e.f[r]=[]),t},ge.setWrapperField=function(e,t,r){S(e,ge),e.f||(e.f={});var n=r?r.g():r;return e.f[t]=r,je(e,t,n)},ge.setOneofWrapperField=function(e,t,r,n){S(e,ge),e.f||(e.f={});var i=n?n.g():n;return e.f[t]=n,xe(e,t,r,i)},ge.setRepeatedWrapperField=function(e,t,r){S(e,ge),e.f||(e.f={}),r=r||[];for(var n=[],i=0;i<r.length;i++)n[i]=r[i].g();return e.f[t]=r,je(e,t,n)},ge.addToRepeatedWrapperField=function(e,t,r,n,i){Ie(e,n,t);var o=e.f[t];return o||(o=e.f[t]=[]),r=r||new n,e=we(e,t),null!=i?(o.splice(i,0,r),e.splice(i,0,r.g())):(o.push(r),e.push(r.g())),r},ge.toMap=function(e,t,r,n){for(var i={},o=0;o<e.length;o++)i[t.call(e[o])]=r?r.call(e[o],n,e[o]):e[o];return i},ge.prototype.g=function(){return Ce(this),this.u},ge.prototype.toArray=ge.prototype.g,ge.prototype.toString=function(){return Ce(this),this.u.toString()},ge.prototype.getExtension=function(e){if(this.i){this.f||(this.f={});var t=e.ma;if(e.na){if(e.F())return this.f[t]||(this.f[t]=y(this.i[t]||[],(function(t){return new e.la(t)}))),this.f[t]}else if(e.F())return!this.f[t]&&this.i[t]&&(this.f[t]=new e.la(this.i[t])),this.f[t];return this.i[t]}},ge.prototype.getExtension=ge.prototype.getExtension,ge.prototype.Kc=function(e,t){this.f||(this.f={}),me(this);var r=e.ma;return e.na?(t=t||[],e.F()?(this.f[r]=t,this.i[r]=y(t,(function(e){return e.g()}))):this.i[r]=t):e.F()?(this.f[r]=t,this.i[r]=t?t.g():t):this.i[r]=t,this},ge.prototype.setExtension=ge.prototype.Kc,ge.difference=function(e,t){if(!(e instanceof t.constructor))throw Error("Messages have different types.");var r=e.g();t=t.g();var n=[],i=0,o=r.length>t.length?r.length:t.length;for(e.b&&(n[0]=e.b,i=1);i<o;i++)Me(r[i],t[i])||(n[i]=t[i]);return new e.constructor(n)},ge.equals=function(e,t){return e==t||!(!e||!t)&&e instanceof t.constructor&&Me(e.g(),t.g())},ge.compareExtensions=ke,ge.compareFields=Me,ge.prototype.Bb=function(){return Fe(this)},ge.prototype.cloneMessage=ge.prototype.Bb,ge.prototype.clone=function(){return Fe(this)},ge.prototype.clone=ge.prototype.clone,ge.clone=function(e){return Fe(e)},ge.copyInto=function(e,t){S(e,ge),S(t,ge),b(e.constructor==t.constructor,"Copy source and target message should have the same type."),e=Fe(e);for(var r=t.g(),n=e.g(),i=r.length=0;i<n.length;i++)r[i]=n[i];t.f=e.f,t.i=e.i},ge.registerMessageType=function(e,t){t.we=e};var Be={dump:function(e){return S(e,ge,"jspb.Message instance expected"),b(e.getExtension,"Only unobfuscated and unoptimized compilation modes supported."),Be.X(e)}};function De(){this.a=[]}function Le(e,t){this.lo=e,this.hi=t}function Ne(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 Le(t>>>0,r>>>0)}function ze(e){for(var t=new Le(0,0),r=new Le(0,0),n=0;n<e.length;n++){if("0">e[n]||"9"<e[n])return null;r.lo=parseInt(e[n],10),t=t.eb(10).add(r)}return t}function Ue(e,t){this.lo=e,this.hi=t}function Ge(e){var t=0<e.length&&"-"==e[0];return t&&(e=e.substring(1)),null===(e=ze(e))?null:(t&&(e=new Le(0,0).sub(e)),new Ue(e.lo,e.hi))}function Ve(){this.c=[],this.b=0,this.a=new De,this.h=[]}function We(e,t){var r=e.a.end();e.c.push(r),e.c.push(t),e.b+=r.length+t.length}function qe(e,t){return $e(e,t,2),t=e.a.end(),e.c.push(t),e.b+=t.length,t.push(e.b),t}function He(e,t){var r=t.pop();for(b(0<=(r=e.b+e.a.length()-r));127<r;)t.push(127&r|128),r>>>=7,e.b++;t.push(r),e.b++}function $e(e,t,r){b(1<=t&&t==Math.floor(t)),e.a.j(8*t+r)}function Ze(e,t,r){null!=r&&($e(e,t,0),e.a.j(r))}function Ye(e,t,r){null!=r&&($e(e,t,0),e.a.M(r))}p("jspb.debug.dump",Be.dump,void 0),Be.X=function(e){var t=f(e);if("number"==t||"string"==t||"boolean"==t||"null"==t||"undefined"==t||"undefined"!=typeof Uint8Array&&e instanceof Uint8Array)return e;if("array"==t)return function(e,t,r){for(var n=[],i=2;i<arguments.length;++i)n[i-2]=arguments[i];Array.isArray(e)||m("Expected array but got %s: %s.",[f(e),e],t,n)}(e),y(e,Be.X);if(e instanceof E){for(var r={},n=(e=e.entries()).next();!n.done;n=e.next())r[n.value[0]]=Be.X(n.value[1]);return r}S(e,ge,"Only messages expected: "+e);var i={$name:(t=e.constructor).name||t.displayName};for(a in t.prototype){var o=/^get([A-Z]\w*)/.exec(a);if(o&&"getExtension"!=a&&"getJsPbMessageId"!=a){var s="has"+o[1];e[s]&&!e[s]()||(s=e[a](),i[Be.$a(o[1])]=Be.X(s))}}if(e.extensionObject_)return i.$extensions="Recursive dumping of extensions not supported in compiled code. Switch to uncompiled or dump extension object directly",i;for(n in t.extensions)if(/^\d+$/.test(n)){s=t.extensions[n];var a=e.getExtension(s);o=void 0,s=s.Ba;var l=[],u=0;for(o in s)l[u++]=o;o=l[0],null!=a&&(r||(r=i.$extensions={}),r[Be.$a(o)]=Be.X(a))}return i},Be.$a=function(e){return e.replace(/^[A-Z]/,(function(e){return e.toLowerCase()}))},p("jspb.BinaryEncoder",De,void 0),De.prototype.length=function(){return this.a.length},De.prototype.length=De.prototype.length,De.prototype.end=function(){var e=this.a;return this.a=[],e},De.prototype.end=De.prototype.end,De.prototype.l=function(e,t){for(b(e==Math.floor(e)),b(t==Math.floor(t)),b(0<=e&&4294967296>e),b(0<=t&&4294967296>t);0<t||127<e;)this.a.push(127&e|128),e=(e>>>7|t<<25)>>>0,t>>>=7;this.a.push(e)},De.prototype.writeSplitVarint64=De.prototype.l,De.prototype.A=function(e,t){b(e==Math.floor(e)),b(t==Math.floor(t)),b(0<=e&&4294967296>e),b(0<=t&&4294967296>t),this.s(e),this.s(t)},De.prototype.writeSplitFixed64=De.prototype.A,De.prototype.j=function(e){for(b(e==Math.floor(e)),b(0<=e&&4294967296>e);127<e;)this.a.push(127&e|128),e>>>=7;this.a.push(e)},De.prototype.writeUnsignedVarint32=De.prototype.j,De.prototype.M=function(e){if(b(e==Math.floor(e)),b(-2147483648<=e&&2147483648>e),0<=e)this.j(e);else{for(var t=0;9>t;t++)this.a.push(127&e|128),e>>=7;this.a.push(1)}},De.prototype.writeSignedVarint32=De.prototype.M,De.prototype.va=function(e){b(e==Math.floor(e)),b(0<=e&&0x10000000000000000>e),N(e),this.l(B,D)},De.prototype.writeUnsignedVarint64=De.prototype.va,De.prototype.ua=function(e){b(e==Math.floor(e)),b(-0x8000000000000000<=e&&0x8000000000000000>e),N(e),this.l(B,D)},De.prototype.writeSignedVarint64=De.prototype.ua,De.prototype.wa=function(e){b(e==Math.floor(e)),b(-2147483648<=e&&2147483648>e),this.j((e<<1^e>>31)>>>0)},De.prototype.writeZigzagVarint32=De.prototype.wa,De.prototype.xa=function(e){b(e==Math.floor(e)),b(-0x8000000000000000<=e&&0x8000000000000000>e),z(e),this.l(B,D)},De.prototype.writeZigzagVarint64=De.prototype.xa,De.prototype.Ta=function(e){this.W(te(e))},De.prototype.writeZigzagVarint64String=De.prototype.Ta,De.prototype.W=function(e){var t=this;V(e),H(B,D,(function(e,r){t.l(e>>>0,r>>>0)}))},De.prototype.writeZigzagVarintHash64=De.prototype.W,De.prototype.be=function(e){b(e==Math.floor(e)),b(0<=e&&256>e),this.a.push(e>>>0&255)},De.prototype.writeUint8=De.prototype.be,De.prototype.ae=function(e){b(e==Math.floor(e)),b(0<=e&&65536>e),this.a.push(e>>>0&255),this.a.push(e>>>8&255)},De.prototype.writeUint16=De.prototype.ae,De.prototype.s=function(e){b(e==Math.floor(e)),b(0<=e&&4294967296>e),this.a.push(e>>>0&255),this.a.push(e>>>8&255),this.a.push(e>>>16&255),this.a.push(e>>>24&255)},De.prototype.writeUint32=De.prototype.s,De.prototype.V=function(e){b(e==Math.floor(e)),b(0<=e&&0x10000000000000000>e),L(e),this.s(B),this.s(D)},De.prototype.writeUint64=De.prototype.V,De.prototype.Qc=function(e){b(e==Math.floor(e)),b(-128<=e&&128>e),this.a.push(e>>>0&255)},De.prototype.writeInt8=De.prototype.Qc,De.prototype.Pc=function(e){b(e==Math.floor(e)),b(-32768<=e&&32768>e),this.a.push(e>>>0&255),this.a.push(e>>>8&255)},De.prototype.writeInt16=De.prototype.Pc,De.prototype.S=function(e){b(e==Math.floor(e)),b(-2147483648<=e&&2147483648>e),this.a.push(e>>>0&255),this.a.push(e>>>8&255),this.a.push(e>>>16&255),this.a.push(e>>>24&255)},De.prototype.writeInt32=De.prototype.S,De.prototype.T=function(e){b(e==Math.floor(e)),b(-0x8000000000000000<=e&&0x8000000000000000>e),N(e),this.A(B,D)},De.prototype.writeInt64=De.prototype.T,De.prototype.ka=function(e){b(e==Math.floor(e)),b(-0x8000000000000000<=+e&&0x8000000000000000>+e),V(te(e)),this.A(B,D)},De.prototype.writeInt64String=De.prototype.ka,De.prototype.L=function(e){b(1/0===e||-1/0===e||isNaN(e)||-34028234663852886e22<=e&&34028234663852886e22>=e),U(e),this.s(B)},De.prototype.writeFloat=De.prototype.L,De.prototype.J=function(e){b(1/0===e||-1/0===e||isNaN(e)||-17976931348623157e292<=e&&17976931348623157e292>=e),G(e),this.s(B),this.s(D)},De.prototype.writeDouble=De.prototype.J,De.prototype.I=function(e){b("boolean"==typeof e||"number"==typeof e),this.a.push(e?1:0)},De.prototype.writeBool=De.prototype.I,De.prototype.R=function(e){b(e==Math.floor(e)),b(-2147483648<=e&&2147483648>e),this.M(e)},De.prototype.writeEnum=De.prototype.R,De.prototype.ja=function(e){this.a.push.apply(this.a,e)},De.prototype.writeBytes=De.prototype.ja,De.prototype.N=function(e){V(e),this.l(B,D)},De.prototype.writeVarintHash64=De.prototype.N,De.prototype.K=function(e){V(e),this.s(B),this.s(D)},De.prototype.writeFixedHash64=De.prototype.K,De.prototype.U=function(e){var t=this.a.length;!function(e,t,r){for(var n=[],i=2;i<arguments.length;++i)n[i-2]=arguments[i];"string"!=typeof e&&m("Expected string but got %s: %s.",[f(e),e],t,n)}(e);for(var r=0;r<e.length;r++){var n=e.charCodeAt(r);if(128>n)this.a.push(n);else if(2048>n)this.a.push(n>>6|192),this.a.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.a.push(n>>18|240),this.a.push(n>>12&63|128),this.a.push(n>>6&63|128),this.a.push(63&n|128),r++)}else this.a.push(n>>12|224),this.a.push(n>>6&63|128),this.a.push(63&n|128)}return this.a.length-t},De.prototype.writeString=De.prototype.U,p("jspb.arith.UInt64",Le,void 0),Le.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},Le.prototype.cmp=Le.prototype.cmp,Le.prototype.La=function(){return new Le((this.lo>>>1|(1&this.hi)<<31)>>>0,this.hi>>>1>>>0)},Le.prototype.rightShift=Le.prototype.La,Le.prototype.Da=function(){return new Le(this.lo<<1>>>0,(this.hi<<1|this.lo>>>31)>>>0)},Le.prototype.leftShift=Le.prototype.Da,Le.prototype.cb=function(){return!!(2147483648&this.hi)},Le.prototype.msb=Le.prototype.cb,Le.prototype.Ob=function(){return!!(1&this.lo)},Le.prototype.lsb=Le.prototype.Ob,Le.prototype.Ua=function(){return 0==this.lo&&0==this.hi},Le.prototype.zero=Le.prototype.Ua,Le.prototype.add=function(e){return new Le((this.lo+e.lo&4294967295)>>>0>>>0,((this.hi+e.hi&4294967295)>>>0)+(4294967296<=this.lo+e.lo?1:0)>>>0)},Le.prototype.add=Le.prototype.add,Le.prototype.sub=function(e){return new Le((this.lo-e.lo&4294967295)>>>0>>>0,((this.hi-e.hi&4294967295)>>>0)-(0>this.lo-e.lo?1:0)>>>0)},Le.prototype.sub=Le.prototype.sub,Le.mul32x32=Ne,Le.prototype.eb=function(e){var t=Ne(this.lo,e);return(e=Ne(this.hi,e)).hi=e.lo,e.lo=0,t.add(e)},Le.prototype.mul=Le.prototype.eb,Le.prototype.Xa=function(e){if(0==e)return[];var t=new Le(0,0),r=new Le(this.lo,this.hi);e=new Le(e,0);for(var n=new Le(1,0);!e.cb();)e=e.Da(),n=n.Da();for(;!n.Ua();)0>=e.cmp(r)&&(t=t.add(n),r=r.sub(e)),e=e.La(),n=n.La();return[t,r]},Le.prototype.div=Le.prototype.Xa,Le.prototype.toString=function(){for(var e="",t=this;!t.Ua();){var r=(t=t.Xa(10))[0];e=t[1].lo+e,t=r}return""==e&&(e="0"),e},Le.prototype.toString=Le.prototype.toString,Le.fromString=ze,Le.prototype.clone=function(){return new Le(this.lo,this.hi)},Le.prototype.clone=Le.prototype.clone,p("jspb.arith.Int64",Ue,void 0),Ue.prototype.add=function(e){return new Ue((this.lo+e.lo&4294967295)>>>0>>>0,((this.hi+e.hi&4294967295)>>>0)+(4294967296<=this.lo+e.lo?1:0)>>>0)},Ue.prototype.add=Ue.prototype.add,Ue.prototype.sub=function(e){return new Ue((this.lo-e.lo&4294967295)>>>0>>>0,((this.hi-e.hi&4294967295)>>>0)-(0>this.lo-e.lo?1:0)>>>0)},Ue.prototype.sub=Ue.prototype.sub,Ue.prototype.clone=function(){return new Ue(this.lo,this.hi)},Ue.prototype.clone=Ue.prototype.clone,Ue.prototype.toString=function(){var e=0!=(2147483648&this.hi),t=new Le(this.lo,this.hi);return e&&(t=new Le(0,0).sub(t)),(e?"-":"")+t.toString()},Ue.prototype.toString=Ue.prototype.toString,Ue.fromString=Ge,p("jspb.BinaryWriter",Ve,void 0),Ve.prototype.pb=function(e,t,r){We(this,e.subarray(t,r))},Ve.prototype.writeSerializedMessage=Ve.prototype.pb,Ve.prototype.Pb=function(e,t,r){null!=e&&null!=t&&null!=r&&this.pb(e,t,r)},Ve.prototype.maybeWriteSerializedMessage=Ve.prototype.Pb,Ve.prototype.reset=function(){this.c=[],this.a.end(),this.b=0,this.h=[]},Ve.prototype.reset=Ve.prototype.reset,Ve.prototype.ab=function(){b(0==this.h.length);for(var e=new Uint8Array(this.b+this.a.length()),t=this.c,r=t.length,n=0,i=0;i<r;i++){var o=t[i];e.set(o,n),n+=o.length}return t=this.a.end(),e.set(t,n),b((n+=t.length)==e.length),this.c=[e],e},Ve.prototype.getResultBuffer=Ve.prototype.ab,Ve.prototype.Kb=function(e){return k(this.ab(),e)},Ve.prototype.getResultBase64String=Ve.prototype.Kb,Ve.prototype.Va=function(e){this.h.push(qe(this,e))},Ve.prototype.beginSubMessage=Ve.prototype.Va,Ve.prototype.Ya=function(){b(0<=this.h.length),He(this,this.h.pop())},Ve.prototype.endSubMessage=Ve.prototype.Ya,Ve.prototype.Nc=function(e,t,r){switch(e){case 1:this.J(t,r);break;case 2:this.L(t,r);break;case 3:this.T(t,r);break;case 4:this.V(t,r);break;case 5:this.S(t,r);break;case 6:this.Qa(t,r);break;case 7:this.Pa(t,r);break;case 8:this.I(t,r);break;case 9:this.U(t,r);break;case 10:w("Group field type not supported in writeAny()");break;case 11:w("Message field type not supported in writeAny()");break;case 12:this.ja(t,r);break;case 13:this.s(t,r);break;case 14:this.R(t,r);break;case 15:this.Ra(t,r);break;case 16:this.Sa(t,r);break;case 17:this.rb(t,r);break;case 18:this.sb(t,r);break;case 30:this.K(t,r);break;case 31:this.N(t,r);break;default:w("Invalid field type in writeAny()")}},Ve.prototype.writeAny=Ve.prototype.Nc,Ve.prototype.S=function(e,t){null!=t&&(b(-2147483648<=t&&2147483648>t),Ye(this,e,t))},Ve.prototype.writeInt32=Ve.prototype.S,Ve.prototype.ob=function(e,t){null!=t&&(b(-2147483648<=(t=parseInt(t,10))&&2147483648>t),Ye(this,e,t))},Ve.prototype.writeInt32String=Ve.prototype.ob,Ve.prototype.T=function(e,t){null!=t&&(b(-0x8000000000000000<=t&&0x8000000000000000>t),null!=t&&($e(this,e,0),this.a.ua(t)))},Ve.prototype.writeInt64=Ve.prototype.T,Ve.prototype.ka=function(e,t){null!=t&&(t=Ge(t),$e(this,e,0),this.a.l(t.lo,t.hi))},Ve.prototype.writeInt64String=Ve.prototype.ka,Ve.prototype.s=function(e,t){null!=t&&(b(0<=t&&4294967296>t),Ze(this,e,t))},Ve.prototype.writeUint32=Ve.prototype.s,Ve.prototype.ub=function(e,t){null!=t&&(b(0<=(t=parseInt(t,10))&&4294967296>t),Ze(this,e,t))},Ve.prototype.writeUint32String=Ve.prototype.ub,Ve.prototype.V=function(e,t){null!=t&&(b(0<=t&&0x10000000000000000>t),null!=t&&($e(this,e,0),this.a.va(t)))},Ve.prototype.writeUint64=Ve.prototype.V,Ve.prototype.vb=function(e,t){null!=t&&(t=ze(t),$e(this,e,0),this.a.l(t.lo,t.hi))},Ve.prototype.writeUint64String=Ve.prototype.vb,Ve.prototype.rb=function(e,t){null!=t&&(b(-2147483648<=t&&2147483648>t),null!=t&&($e(this,e,0),this.a.wa(t)))},Ve.prototype.writeSint32=Ve.prototype.rb,Ve.prototype.sb=function(e,t){null!=t&&(b(-0x8000000000000000<=t&&0x8000000000000000>t),null!=t&&($e(this,e,0),this.a.xa(t)))},Ve.prototype.writeSint64=Ve.prototype.sb,Ve.prototype.$d=function(e,t){null!=t&&null!=t&&($e(this,e,0),this.a.W(t))},Ve.prototype.writeSintHash64=Ve.prototype.$d,Ve.prototype.Zd=function(e,t){null!=t&&null!=t&&($e(this,e,0),this.a.Ta(t))},Ve.prototype.writeSint64String=Ve.prototype.Zd,Ve.prototype.Pa=function(e,t){null!=t&&(b(0<=t&&4294967296>t),$e(this,e,5),this.a.s(t))},Ve.prototype.writeFixed32=Ve.prototype.Pa,Ve.prototype.Qa=function(e,t){null!=t&&(b(0<=t&&0x10000000000000000>t),$e(this,e,1),this.a.V(t))},Ve.prototype.writeFixed64=Ve.prototype.Qa,Ve.prototype.nb=function(e,t){null!=t&&(t=ze(t),$e(this,e,1),this.a.A(t.lo,t.hi))},Ve.prototype.writeFixed64String=Ve.prototype.nb,Ve.prototype.Ra=function(e,t){null!=t&&(b(-2147483648<=t&&2147483648>t),$e(this,e,5),this.a.S(t))},Ve.prototype.writeSfixed32=Ve.prototype.Ra,Ve.prototype.Sa=function(e,t){null!=t&&(b(-0x8000000000000000<=t&&0x8000000000000000>t),$e(this,e,1),this.a.T(t))},Ve.prototype.writeSfixed64=Ve.prototype.Sa,Ve.prototype.qb=function(e,t){null!=t&&(t=Ge(t),$e(this,e,1),this.a.A(t.lo,t.hi))},Ve.prototype.writeSfixed64String=Ve.prototype.qb,Ve.prototype.L=function(e,t){null!=t&&($e(this,e,5),this.a.L(t))},Ve.prototype.writeFloat=Ve.prototype.L,Ve.prototype.J=function(e,t){null!=t&&($e(this,e,1),this.a.J(t))},Ve.prototype.writeDouble=Ve.prototype.J,Ve.prototype.I=function(e,t){null!=t&&(b("boolean"==typeof t||"number"==typeof t),$e(this,e,0),this.a.I(t))},Ve.prototype.writeBool=Ve.prototype.I,Ve.prototype.R=function(e,t){null!=t&&(b(-2147483648<=t&&2147483648>t),$e(this,e,0),this.a.M(t))},Ve.prototype.writeEnum=Ve.prototype.R,Ve.prototype.U=function(e,t){null!=t&&(e=qe(this,e),this.a.U(t),He(this,e))},Ve.prototype.writeString=Ve.prototype.U,Ve.prototype.ja=function(e,t){null!=t&&(t=oe(t),$e(this,e,2),this.a.j(t.length),We(this,t))},Ve.prototype.writeBytes=Ve.prototype.ja,Ve.prototype.Rc=function(e,t,r){null!=t&&(e=qe(this,e),r(t,this),He(this,e))},Ve.prototype.writeMessage=Ve.prototype.Rc,Ve.prototype.Sc=function(e,t,r){null!=t&&($e(this,1,3),$e(this,2,0),this.a.M(e),e=qe(this,3),r(t,this),He(this,e),$e(this,1,4))},Ve.prototype.writeMessageSet=Ve.prototype.Sc,Ve.prototype.Oc=function(e,t,r){null!=t&&($e(this,e,3),r(t,this),$e(this,e,4))},Ve.prototype.writeGroup=Ve.prototype.Oc,Ve.prototype.K=function(e,t){null!=t&&(b(8==t.length),$e(this,e,1),this.a.K(t))},Ve.prototype.writeFixedHash64=Ve.prototype.K,Ve.prototype.N=function(e,t){null!=t&&(b(8==t.length),$e(this,e,0),this.a.N(t))},Ve.prototype.writeVarintHash64=Ve.prototype.N,Ve.prototype.A=function(e,t,r){$e(this,e,1),this.a.A(t,r)},Ve.prototype.writeSplitFixed64=Ve.prototype.A,Ve.prototype.l=function(e,t,r){$e(this,e,0),this.a.l(t,r)},Ve.prototype.writeSplitVarint64=Ve.prototype.l,Ve.prototype.tb=function(e,t,r){$e(this,e,0);var n=this.a;H(t,r,(function(e,t){n.l(e>>>0,t>>>0)}))},Ve.prototype.writeSplitZigzagVarint64=Ve.prototype.tb,Ve.prototype.Ed=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)Ye(this,e,t[r])},Ve.prototype.writeRepeatedInt32=Ve.prototype.Ed,Ve.prototype.Fd=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.ob(e,t[r])},Ve.prototype.writeRepeatedInt32String=Ve.prototype.Fd,Ve.prototype.Gd=function(e,t){if(null!=t)for(var r=0;r<t.length;r++){var n=t[r];null!=n&&($e(this,e,0),this.a.ua(n))}},Ve.prototype.writeRepeatedInt64=Ve.prototype.Gd,Ve.prototype.Qd=function(e,t,r,n){if(null!=t)for(var i=0;i<t.length;i++)this.A(e,r(t[i]),n(t[i]))},Ve.prototype.writeRepeatedSplitFixed64=Ve.prototype.Qd,Ve.prototype.Rd=function(e,t,r,n){if(null!=t)for(var i=0;i<t.length;i++)this.l(e,r(t[i]),n(t[i]))},Ve.prototype.writeRepeatedSplitVarint64=Ve.prototype.Rd,Ve.prototype.Sd=function(e,t,r,n){if(null!=t)for(var i=0;i<t.length;i++)this.tb(e,r(t[i]),n(t[i]))},Ve.prototype.writeRepeatedSplitZigzagVarint64=Ve.prototype.Sd,Ve.prototype.Hd=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.ka(e,t[r])},Ve.prototype.writeRepeatedInt64String=Ve.prototype.Hd,Ve.prototype.Ud=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)Ze(this,e,t[r])},Ve.prototype.writeRepeatedUint32=Ve.prototype.Ud,Ve.prototype.Vd=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.ub(e,t[r])},Ve.prototype.writeRepeatedUint32String=Ve.prototype.Vd,Ve.prototype.Wd=function(e,t){if(null!=t)for(var r=0;r<t.length;r++){var n=t[r];null!=n&&($e(this,e,0),this.a.va(n))}},Ve.prototype.writeRepeatedUint64=Ve.prototype.Wd,Ve.prototype.Xd=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.vb(e,t[r])},Ve.prototype.writeRepeatedUint64String=Ve.prototype.Xd,Ve.prototype.Md=function(e,t){if(null!=t)for(var r=0;r<t.length;r++){var n=t[r];null!=n&&($e(this,e,0),this.a.wa(n))}},Ve.prototype.writeRepeatedSint32=Ve.prototype.Md,Ve.prototype.Nd=function(e,t){if(null!=t)for(var r=0;r<t.length;r++){var n=t[r];null!=n&&($e(this,e,0),this.a.xa(n))}},Ve.prototype.writeRepeatedSint64=Ve.prototype.Nd,Ve.prototype.Od=function(e,t){if(null!=t)for(var r=0;r<t.length;r++){var n=t[r];null!=n&&($e(this,e,0),this.a.Ta(n))}},Ve.prototype.writeRepeatedSint64String=Ve.prototype.Od,Ve.prototype.Pd=function(e,t){if(null!=t)for(var r=0;r<t.length;r++){var n=t[r];null!=n&&($e(this,e,0),this.a.W(n))}},Ve.prototype.writeRepeatedSintHash64=Ve.prototype.Pd,Ve.prototype.yd=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.Pa(e,t[r])},Ve.prototype.writeRepeatedFixed32=Ve.prototype.yd,Ve.prototype.zd=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.Qa(e,t[r])},Ve.prototype.writeRepeatedFixed64=Ve.prototype.zd,Ve.prototype.Ad=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.nb(e,t[r])},Ve.prototype.writeRepeatedFixed64String=Ve.prototype.Ad,Ve.prototype.Jd=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.Ra(e,t[r])},Ve.prototype.writeRepeatedSfixed32=Ve.prototype.Jd,Ve.prototype.Kd=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.Sa(e,t[r])},Ve.prototype.writeRepeatedSfixed64=Ve.prototype.Kd,Ve.prototype.Ld=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.qb(e,t[r])},Ve.prototype.writeRepeatedSfixed64String=Ve.prototype.Ld,Ve.prototype.Cd=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.L(e,t[r])},Ve.prototype.writeRepeatedFloat=Ve.prototype.Cd,Ve.prototype.wd=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.J(e,t[r])},Ve.prototype.writeRepeatedDouble=Ve.prototype.wd,Ve.prototype.ud=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.I(e,t[r])},Ve.prototype.writeRepeatedBool=Ve.prototype.ud,Ve.prototype.xd=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.R(e,t[r])},Ve.prototype.writeRepeatedEnum=Ve.prototype.xd,Ve.prototype.Td=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.U(e,t[r])},Ve.prototype.writeRepeatedString=Ve.prototype.Td,Ve.prototype.vd=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.ja(e,t[r])},Ve.prototype.writeRepeatedBytes=Ve.prototype.vd,Ve.prototype.Id=function(e,t,r){if(null!=t)for(var n=0;n<t.length;n++){var i=qe(this,e);r(t[n],this),He(this,i)}},Ve.prototype.writeRepeatedMessage=Ve.prototype.Id,Ve.prototype.Dd=function(e,t,r){if(null!=t)for(var n=0;n<t.length;n++)$e(this,e,3),r(t[n],this),$e(this,e,4)},Ve.prototype.writeRepeatedGroup=Ve.prototype.Dd,Ve.prototype.Bd=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.K(e,t[r])},Ve.prototype.writeRepeatedFixedHash64=Ve.prototype.Bd,Ve.prototype.Yd=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.N(e,t[r])},Ve.prototype.writeRepeatedVarintHash64=Ve.prototype.Yd,Ve.prototype.ad=function(e,t){if(null!=t&&t.length){e=qe(this,e);for(var r=0;r<t.length;r++)this.a.M(t[r]);He(this,e)}},Ve.prototype.writePackedInt32=Ve.prototype.ad,Ve.prototype.bd=function(e,t){if(null!=t&&t.length){e=qe(this,e);for(var r=0;r<t.length;r++)this.a.M(parseInt(t[r],10));He(this,e)}},Ve.prototype.writePackedInt32String=Ve.prototype.bd,Ve.prototype.cd=function(e,t){if(null!=t&&t.length){e=qe(this,e);for(var r=0;r<t.length;r++)this.a.ua(t[r]);He(this,e)}},Ve.prototype.writePackedInt64=Ve.prototype.cd,Ve.prototype.md=function(e,t,r,n){if(null!=t){e=qe(this,e);for(var i=0;i<t.length;i++)this.a.A(r(t[i]),n(t[i]));He(this,e)}},Ve.prototype.writePackedSplitFixed64=Ve.prototype.md,Ve.prototype.nd=function(e,t,r,n){if(null!=t){e=qe(this,e);for(var i=0;i<t.length;i++)this.a.l(r(t[i]),n(t[i]));He(this,e)}},Ve.prototype.writePackedSplitVarint64=Ve.prototype.nd,Ve.prototype.od=function(e,t,r,n){if(null!=t){e=qe(this,e);for(var i=this.a,o=0;o<t.length;o++)H(r(t[o]),n(t[o]),(function(e,t){i.l(e>>>0,t>>>0)}));He(this,e)}},Ve.prototype.writePackedSplitZigzagVarint64=Ve.prototype.od,Ve.prototype.dd=function(e,t){if(null!=t&&t.length){e=qe(this,e);for(var r=0;r<t.length;r++){var n=Ge(t[r]);this.a.l(n.lo,n.hi)}He(this,e)}},Ve.prototype.writePackedInt64String=Ve.prototype.dd,Ve.prototype.pd=function(e,t){if(null!=t&&t.length){e=qe(this,e);for(var r=0;r<t.length;r++)this.a.j(t[r]);He(this,e)}},Ve.prototype.writePackedUint32=Ve.prototype.pd,Ve.prototype.qd=function(e,t){if(null!=t&&t.length){e=qe(this,e);for(var r=0;r<t.length;r++)this.a.j(parseInt(t[r],10));He(this,e)}},Ve.prototype.writePackedUint32String=Ve.prototype.qd,Ve.prototype.rd=function(e,t){if(null!=t&&t.length){e=qe(this,e);for(var r=0;r<t.length;r++)this.a.va(t[r]);He(this,e)}},Ve.prototype.writePackedUint64=Ve.prototype.rd,Ve.prototype.sd=function(e,t){if(null!=t&&t.length){e=qe(this,e);for(var r=0;r<t.length;r++){var n=ze(t[r]);this.a.l(n.lo,n.hi)}He(this,e)}},Ve.prototype.writePackedUint64String=Ve.prototype.sd,Ve.prototype.hd=function(e,t){if(null!=t&&t.length){e=qe(this,e);for(var r=0;r<t.length;r++)this.a.wa(t[r]);He(this,e)}},Ve.prototype.writePackedSint32=Ve.prototype.hd,Ve.prototype.jd=function(e,t){if(null!=t&&t.length){e=qe(this,e);for(var r=0;r<t.length;r++)this.a.xa(t[r]);He(this,e)}},Ve.prototype.writePackedSint64=Ve.prototype.jd,Ve.prototype.kd=function(e,t){if(null!=t&&t.length){e=qe(this,e);for(var r=0;r<t.length;r++)this.a.W(te(t[r]));He(this,e)}},Ve.prototype.writePackedSint64String=Ve.prototype.kd,Ve.prototype.ld=function(e,t){if(null!=t&&t.length){e=qe(this,e);for(var r=0;r<t.length;r++)this.a.W(t[r]);He(this,e)}},Ve.prototype.writePackedSintHash64=Ve.prototype.ld,Ve.prototype.Wc=function(e,t){if(null!=t&&t.length)for($e(this,e,2),this.a.j(4*t.length),e=0;e<t.length;e++)this.a.s(t[e])},Ve.prototype.writePackedFixed32=Ve.prototype.Wc,Ve.prototype.Xc=function(e,t){if(null!=t&&t.length)for($e(this,e,2),this.a.j(8*t.length),e=0;e<t.length;e++)this.a.V(t[e])},Ve.prototype.writePackedFixed64=Ve.prototype.Xc,Ve.prototype.Yc=function(e,t){if(null!=t&&t.length)for($e(this,e,2),this.a.j(8*t.length),e=0;e<t.length;e++){var r=ze(t[e]);this.a.A(r.lo,r.hi)}},Ve.prototype.writePackedFixed64String=Ve.prototype.Yc,Ve.prototype.ed=function(e,t){if(null!=t&&t.length)for($e(this,e,2),this.a.j(4*t.length),e=0;e<t.length;e++)this.a.S(t[e])},Ve.prototype.writePackedSfixed32=Ve.prototype.ed,Ve.prototype.fd=function(e,t){if(null!=t&&t.length)for($e(this,e,2),this.a.j(8*t.length),e=0;e<t.length;e++)this.a.T(t[e])},Ve.prototype.writePackedSfixed64=Ve.prototype.fd,Ve.prototype.gd=function(e,t){if(null!=t&&t.length)for($e(this,e,2),this.a.j(8*t.length),e=0;e<t.length;e++)this.a.ka(t[e])},Ve.prototype.writePackedSfixed64String=Ve.prototype.gd,Ve.prototype.$c=function(e,t){if(null!=t&&t.length)for($e(this,e,2),this.a.j(4*t.length),e=0;e<t.length;e++)this.a.L(t[e])},Ve.prototype.writePackedFloat=Ve.prototype.$c,Ve.prototype.Uc=function(e,t){if(null!=t&&t.length)for($e(this,e,2),this.a.j(8*t.length),e=0;e<t.length;e++)this.a.J(t[e])},Ve.prototype.writePackedDouble=Ve.prototype.Uc,Ve.prototype.Tc=function(e,t){if(null!=t&&t.length)for($e(this,e,2),this.a.j(t.length),e=0;e<t.length;e++)this.a.I(t[e])},Ve.prototype.writePackedBool=Ve.prototype.Tc,Ve.prototype.Vc=function(e,t){if(null!=t&&t.length){e=qe(this,e);for(var r=0;r<t.length;r++)this.a.R(t[r]);He(this,e)}},Ve.prototype.writePackedEnum=Ve.prototype.Vc,Ve.prototype.Zc=function(e,t){if(null!=t&&t.length)for($e(this,e,2),this.a.j(8*t.length),e=0;e<t.length;e++)this.a.K(t[e])},Ve.prototype.writePackedFixedHash64=Ve.prototype.Zc,Ve.prototype.td=function(e,t){if(null!=t&&t.length){e=qe(this,e);for(var r=0;r<t.length;r++)this.a.N(t[r]);He(this,e)}},Ve.prototype.writePackedVarintHash64=Ve.prototype.td,t.debug=Be,t.Map=E,t.Message=ge,t.BinaryReader=ue,t.BinaryWriter=Ve,t.ExtensionFieldInfo=he,t.ExtensionFieldBinaryInfo=de,t.exportSymbol=function(e,t,r){p(e,t,r)},t.inherits=function(e,t){function r(){}r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e},t.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 o=0;o<d.length;o++)r=d[o],Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}}},t.typeOf=f},8052:(e,t,r)=>{var n=r(7186),i=n,o="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof window&&window||void 0!==o&&o||"undefined"!=typeof self&&self||function(){return this}.call(null)||Function("return this")();i.exportSymbol("proto.google.protobuf.BoolValue",null,o),i.exportSymbol("proto.google.protobuf.BytesValue",null,o),i.exportSymbol("proto.google.protobuf.DoubleValue",null,o),i.exportSymbol("proto.google.protobuf.FloatValue",null,o),i.exportSymbol("proto.google.protobuf.Int32Value",null,o),i.exportSymbol("proto.google.protobuf.Int64Value",null,o),i.exportSymbol("proto.google.protobuf.StringValue",null,o),i.exportSymbol("proto.google.protobuf.UInt32Value",null,o),i.exportSymbol("proto.google.protobuf.UInt64Value",null,o),proto.google.protobuf.DoubleValue=function(e){n.Message.initialize(this,e,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(e){n.Message.initialize(this,e,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(e){n.Message.initialize(this,e,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(e){n.Message.initialize(this,e,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(e){n.Message.initialize(this,e,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(e){n.Message.initialize(this,e,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(e){n.Message.initialize(this,e,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(e){n.Message.initialize(this,e,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(e){n.Message.initialize(this,e,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(e){return proto.google.protobuf.DoubleValue.toObject(e,this)},proto.google.protobuf.DoubleValue.toObject=function(e,t){var r={value:n.Message.getFloatingPointFieldWithDefault(t,1,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.google.protobuf.DoubleValue.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.google.protobuf.DoubleValue;return proto.google.protobuf.DoubleValue.deserializeBinaryFromReader(r,t)},proto.google.protobuf.DoubleValue.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readDouble();e.setValue(r);break;default:t.skipField()}}return e},proto.google.protobuf.DoubleValue.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.google.protobuf.DoubleValue.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.google.protobuf.DoubleValue.serializeBinaryToWriter=function(e,t){var r;0!==(r=e.getValue())&&t.writeDouble(1,r)},proto.google.protobuf.DoubleValue.prototype.getValue=function(){return n.Message.getFloatingPointFieldWithDefault(this,1,0)},proto.google.protobuf.DoubleValue.prototype.setValue=function(e){return n.Message.setProto3FloatField(this,1,e)},n.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.FloatValue.prototype.toObject=function(e){return proto.google.protobuf.FloatValue.toObject(e,this)},proto.google.protobuf.FloatValue.toObject=function(e,t){var r={value:n.Message.getFloatingPointFieldWithDefault(t,1,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.google.protobuf.FloatValue.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.google.protobuf.FloatValue;return proto.google.protobuf.FloatValue.deserializeBinaryFromReader(r,t)},proto.google.protobuf.FloatValue.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readFloat();e.setValue(r);break;default:t.skipField()}}return e},proto.google.protobuf.FloatValue.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.google.protobuf.FloatValue.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.google.protobuf.FloatValue.serializeBinaryToWriter=function(e,t){var r;0!==(r=e.getValue())&&t.writeFloat(1,r)},proto.google.protobuf.FloatValue.prototype.getValue=function(){return n.Message.getFloatingPointFieldWithDefault(this,1,0)},proto.google.protobuf.FloatValue.prototype.setValue=function(e){return n.Message.setProto3FloatField(this,1,e)},n.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.Int64Value.prototype.toObject=function(e){return proto.google.protobuf.Int64Value.toObject(e,this)},proto.google.protobuf.Int64Value.toObject=function(e,t){var r={value:n.Message.getFieldWithDefault(t,1,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.google.protobuf.Int64Value.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.google.protobuf.Int64Value;return proto.google.protobuf.Int64Value.deserializeBinaryFromReader(r,t)},proto.google.protobuf.Int64Value.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readInt64();e.setValue(r);break;default:t.skipField()}}return e},proto.google.protobuf.Int64Value.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.google.protobuf.Int64Value.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.google.protobuf.Int64Value.serializeBinaryToWriter=function(e,t){var r;0!==(r=e.getValue())&&t.writeInt64(1,r)},proto.google.protobuf.Int64Value.prototype.getValue=function(){return n.Message.getFieldWithDefault(this,1,0)},proto.google.protobuf.Int64Value.prototype.setValue=function(e){return n.Message.setProto3IntField(this,1,e)},n.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.UInt64Value.prototype.toObject=function(e){return proto.google.protobuf.UInt64Value.toObject(e,this)},proto.google.protobuf.UInt64Value.toObject=function(e,t){var r={value:n.Message.getFieldWithDefault(t,1,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.google.protobuf.UInt64Value.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.google.protobuf.UInt64Value;return proto.google.protobuf.UInt64Value.deserializeBinaryFromReader(r,t)},proto.google.protobuf.UInt64Value.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readUint64();e.setValue(r);break;default:t.skipField()}}return e},proto.google.protobuf.UInt64Value.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.google.protobuf.UInt64Value.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.google.protobuf.UInt64Value.serializeBinaryToWriter=function(e,t){var r;0!==(r=e.getValue())&&t.writeUint64(1,r)},proto.google.protobuf.UInt64Value.prototype.getValue=function(){return n.Message.getFieldWithDefault(this,1,0)},proto.google.protobuf.UInt64Value.prototype.setValue=function(e){return n.Message.setProto3IntField(this,1,e)},n.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.Int32Value.prototype.toObject=function(e){return proto.google.protobuf.Int32Value.toObject(e,this)},proto.google.protobuf.Int32Value.toObject=function(e,t){var r={value:n.Message.getFieldWithDefault(t,1,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.google.protobuf.Int32Value.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.google.protobuf.Int32Value;return proto.google.protobuf.Int32Value.deserializeBinaryFromReader(r,t)},proto.google.protobuf.Int32Value.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readInt32();e.setValue(r);break;default:t.skipField()}}return e},proto.google.protobuf.Int32Value.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.google.protobuf.Int32Value.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.google.protobuf.Int32Value.serializeBinaryToWriter=function(e,t){var r;0!==(r=e.getValue())&&t.writeInt32(1,r)},proto.google.protobuf.Int32Value.prototype.getValue=function(){return n.Message.getFieldWithDefault(this,1,0)},proto.google.protobuf.Int32Value.prototype.setValue=function(e){return n.Message.setProto3IntField(this,1,e)},n.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.UInt32Value.prototype.toObject=function(e){return proto.google.protobuf.UInt32Value.toObject(e,this)},proto.google.protobuf.UInt32Value.toObject=function(e,t){var r={value:n.Message.getFieldWithDefault(t,1,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.google.protobuf.UInt32Value.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.google.protobuf.UInt32Value;return proto.google.protobuf.UInt32Value.deserializeBinaryFromReader(r,t)},proto.google.protobuf.UInt32Value.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readUint32();e.setValue(r);break;default:t.skipField()}}return e},proto.google.protobuf.UInt32Value.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.google.protobuf.UInt32Value.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.google.protobuf.UInt32Value.serializeBinaryToWriter=function(e,t){var r;0!==(r=e.getValue())&&t.writeUint32(1,r)},proto.google.protobuf.UInt32Value.prototype.getValue=function(){return n.Message.getFieldWithDefault(this,1,0)},proto.google.protobuf.UInt32Value.prototype.setValue=function(e){return n.Message.setProto3IntField(this,1,e)},n.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.BoolValue.prototype.toObject=function(e){return proto.google.protobuf.BoolValue.toObject(e,this)},proto.google.protobuf.BoolValue.toObject=function(e,t){var r={value:n.Message.getBooleanFieldWithDefault(t,1,!1)};return e&&(r.$jspbMessageInstance=t),r}),proto.google.protobuf.BoolValue.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.google.protobuf.BoolValue;return proto.google.protobuf.BoolValue.deserializeBinaryFromReader(r,t)},proto.google.protobuf.BoolValue.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readBool();e.setValue(r);break;default:t.skipField()}}return e},proto.google.protobuf.BoolValue.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.google.protobuf.BoolValue.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.google.protobuf.BoolValue.serializeBinaryToWriter=function(e,t){var r;(r=e.getValue())&&t.writeBool(1,r)},proto.google.protobuf.BoolValue.prototype.getValue=function(){return n.Message.getBooleanFieldWithDefault(this,1,!1)},proto.google.protobuf.BoolValue.prototype.setValue=function(e){return n.Message.setProto3BooleanField(this,1,e)},n.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.StringValue.prototype.toObject=function(e){return proto.google.protobuf.StringValue.toObject(e,this)},proto.google.protobuf.StringValue.toObject=function(e,t){var r={value:n.Message.getFieldWithDefault(t,1,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.google.protobuf.StringValue.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.google.protobuf.StringValue;return proto.google.protobuf.StringValue.deserializeBinaryFromReader(r,t)},proto.google.protobuf.StringValue.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readString();e.setValue(r);break;default:t.skipField()}}return e},proto.google.protobuf.StringValue.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.google.protobuf.StringValue.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.google.protobuf.StringValue.serializeBinaryToWriter=function(e,t){var r;(r=e.getValue()).length>0&&t.writeString(1,r)},proto.google.protobuf.StringValue.prototype.getValue=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.google.protobuf.StringValue.prototype.setValue=function(e){return n.Message.setProto3StringField(this,1,e)},n.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.BytesValue.prototype.toObject=function(e){return proto.google.protobuf.BytesValue.toObject(e,this)},proto.google.protobuf.BytesValue.toObject=function(e,t){var r={value:t.getValue_asB64()};return e&&(r.$jspbMessageInstance=t),r}),proto.google.protobuf.BytesValue.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.google.protobuf.BytesValue;return proto.google.protobuf.BytesValue.deserializeBinaryFromReader(r,t)},proto.google.protobuf.BytesValue.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readBytes();e.setValue(r);break;default:t.skipField()}}return e},proto.google.protobuf.BytesValue.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.google.protobuf.BytesValue.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.google.protobuf.BytesValue.serializeBinaryToWriter=function(e,t){var r;(r=e.getValue_asU8()).length>0&&t.writeBytes(1,r)},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(e){return n.Message.setProto3BytesField(this,1,e)},i.object.extend(t,proto.google.protobuf)},9336:(e,t,r)=>{"use strict";var n=r(528)("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},5949:function(e,t,r){var n;function i(e){var t=0;return function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}}}var o="function"==typeof Object.defineProperties?Object.defineProperty:function(e,t,r){e!=Array.prototype&&e!=Object.prototype&&(e[t]=r.value)};var s=function(e){e=["object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof r.g&&r.g,e];for(var t=0;t<e.length;++t){var n=e[t];if(n&&n.Math==Math)return n}throw Error("Cannot find global object")}(this);function a(){a=function(){},s.Symbol||(s.Symbol=c)}function l(e,t){this.a=e,o(this,"description",{configurable:!0,writable:!0,value:t})}l.prototype.toString=function(){return this.a};var u,c=(u=0,function e(t){if(this instanceof e)throw new TypeError("Symbol is not a constructor");return new l("jscomp_symbol_"+(t||"")+"_"+u++,t)});function p(){a();var e=s.Symbol.iterator;e||(e=s.Symbol.iterator=s.Symbol("Symbol.iterator")),"function"!=typeof Array.prototype[e]&&o(Array.prototype,e,{configurable:!0,writable:!0,value:function(){return function(e){return p(),(e={next:e})[s.Symbol.iterator]=function(){return this},e}(i(this))}}),p=function(){}}function f(e){var t="undefined"!=typeof Symbol&&Symbol.iterator&&e[Symbol.iterator];return t?t.call(e):{next:i(e)}}var h,d="function"==typeof Object.create?Object.create:function(e){function t(){}return t.prototype=e,new t};if("function"==typeof Object.setPrototypeOf)h=Object.setPrototypeOf;else{var g;e:{var y={};try{y.__proto__={V:!0},g=y.V;break e}catch(oe){}g=!1}h=g?function(e,t){if(e.__proto__=t,e.__proto__!==t)throw new TypeError(e+" is not extensible");return e}:null}var v=h;function m(e,t){if(e.prototype=d(t.prototype),e.prototype.constructor=e,v)v(e,t);else for(var r in t)if("prototype"!=r)if(Object.defineProperties){var n=Object.getOwnPropertyDescriptor(t,r);n&&Object.defineProperty(e,r,n)}else e[r]=t[r];e.O=t.prototype}function b(e,t){if(t){var r=s;e=e.split(".");for(var 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&&null!=t&&o(r,e,{configurable:!0,writable:!0,value:t})}}b("Array.prototype.keys",(function(e){return e||function(){return function(e,t){p(),e instanceof String&&(e+="");var r=0,n={next:function(){if(r<e.length){var i=r++;return{value:t(i,e[i]),done:!1}}return n.next=function(){return{done:!0,value:void 0}},n.next()}};return n[Symbol.iterator]=function(){return n},n}(this,(function(e){return e}))}})),b("Array.prototype.find",(function(e){return e||function(e,t){e:{var r=this;r instanceof String&&(r=String(r));for(var n=r.length,i=0;i<n;i++){var o=r[i];if(e.call(t,o,i,r)){e=o;break e}}e=void 0}return e}})),b("Object.is",(function(e){return e||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}})),b("Array.prototype.includes",(function(e){return e||function(e,t){var r=this;r instanceof String&&(r=String(r));var n=r.length;for(0>(t=t||0)&&(t=Math.max(t+n,0));t<n;t++){var i=r[t];if(i===e||Object.is(i,e))return!0}return!1}})),b("Promise",(function(e){function t(e){this.b=0,this.c=void 0,this.a=[];var t=this.f();try{e(t.resolve,t.reject)}catch(e){t.reject(e)}}function r(){this.a=null}function n(e){return e instanceof t?e:new t((function(t){t(e)}))}if(e)return e;r.prototype.b=function(e){if(null==this.a){this.a=[];var t=this;this.c((function(){t.g()}))}this.a.push(e)};var i=s.setTimeout;r.prototype.c=function(e){i(e,0)},r.prototype.g=function(){for(;this.a&&this.a.length;){var e=this.a;this.a=[];for(var t=0;t<e.length;++t){var r=e[t];e[t]=null;try{r()}catch(e){this.f(e)}}}this.a=null},r.prototype.f=function(e){this.c((function(){throw e}))},t.prototype.f=function(){function e(e){return function(n){r||(r=!0,e.call(t,n))}}var t=this,r=!1;return{resolve:e(this.s),reject:e(this.g)}},t.prototype.s=function(e){if(e===this)this.g(new TypeError("A Promise cannot resolve to itself"));else if(e instanceof t)this.v(e);else{e:switch(typeof e){case"object":var r=null!=e;break e;case"function":r=!0;break e;default:r=!1}r?this.m(e):this.h(e)}},t.prototype.m=function(e){var t=void 0;try{t=e.then}catch(e){return void this.g(e)}"function"==typeof t?this.w(t,e):this.h(e)},t.prototype.g=function(e){this.i(2,e)},t.prototype.h=function(e){this.i(1,e)},t.prototype.i=function(e,t){if(0!=this.b)throw Error("Cannot settle("+e+", "+t+"): Promise already settled in state"+this.b);this.b=e,this.c=t,this.l()},t.prototype.l=function(){if(null!=this.a){for(var e=0;e<this.a.length;++e)o.b(this.a[e]);this.a=null}};var o=new r;return t.prototype.v=function(e){var t=this.f();e.F(t.resolve,t.reject)},t.prototype.w=function(e,t){var r=this.f();try{e.call(t,r.resolve,r.reject)}catch(e){r.reject(e)}},t.prototype.then=function(e,r){function n(e,t){return"function"==typeof e?function(t){try{i(e(t))}catch(e){o(e)}}:t}var i,o,s=new t((function(e,t){i=e,o=t}));return this.F(n(e,i),n(r,o)),s},t.prototype.catch=function(e){return this.then(void 0,e)},t.prototype.F=function(e,t){function r(){switch(n.b){case 1:e(n.c);break;case 2:t(n.c);break;default:throw Error("Unexpected state: "+n.b)}}var n=this;null==this.a?o.b(r):this.a.push(r)},t.resolve=n,t.reject=function(e){return new t((function(t,r){r(e)}))},t.race=function(e){return new t((function(t,r){for(var i=f(e),o=i.next();!o.done;o=i.next())n(o.value).F(t,r)}))},t.all=function(e){var r=f(e),i=r.next();return i.done?n([]):new t((function(e,t){function o(t){return function(r){s[t]=r,0==--a&&e(s)}}var s=[],a=0;do{s.push(void 0),a++,n(i.value).F(o(s.length-1),t),i=r.next()}while(!i.done)}))},t}));var w=w||{},S=this||self;function _(e,t){e=e.split("."),t=t||S;for(var r=0;r<e.length;r++)if(null==(t=t[e[r]]))return null;return t}function E(){}function O(e){var t=typeof e;return"object"==t&&null!=e||"function"==t}var R="closure_uid_"+(1e9*Math.random()>>>0),T=0;function j(e,t,r){return e.call.apply(e.bind,arguments)}function P(e,t,r){if(!e)throw Error();if(2<arguments.length){var n=Array.prototype.slice.call(arguments,2);return function(){var r=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(r,n),e.apply(t,r)}}return function(){return e.apply(t,arguments)}}function x(e,t,r){return(x=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?j:P).apply(null,arguments)}function A(e,t){function r(){}r.prototype=t.prototype,e.O=t.prototype,e.prototype=new r,e.prototype.constructor=e}function I(e){this.a=e||{}}function C(e,t,r,n){this.f=e,this.c=t,this.b=r,this.a=n}function k(e,t,r,n){r=void 0===r?{}:r,this.c=e,this.a=r,this.b=t,this.f=void 0===n?null:n}function M(e,t,r,n,i,o){this.name=e,this.a=i,this.b=o}function F(e,t,r){r=void 0===r?{}:r;var n=void 0===n?new I:n;return new C(t,e,r,n)}function B(e,t,r){r=void 0===r?{}:r,t=Error.call(this,t),this.message=t.message,"stack"in t&&(this.stack=t.stack),this.code=e,this.metadata=r}function D(e){this.a=e}function L(e){if(Error.captureStackTrace)Error.captureStackTrace(this,L);else{var t=Error().stack;t&&(this.stack=t)}e&&(this.message=String(e))}function N(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");L.call(this,r+e[n])}function z(){this.l=null,this.i=[],this.m=0,this.b=U,this.f=this.a=this.h=0,this.c=null,this.g=0}I.prototype.get=function(e){return this.a[e]},I.prototype.G=function(){return Object.keys(this.a)},C.prototype.getRequestMessage=function(){return this.f},C.prototype.getMethodDescriptor=function(){return this.c},C.prototype.getMetadata=function(){return this.b},C.prototype.getCallOptions=function(){return this.a},k.prototype.getResponseMessage=function(){return this.c},k.prototype.getMetadata=function(){return this.a},k.prototype.getMethodDescriptor=function(){return this.b},k.prototype.getStatus=function(){return this.f},M.prototype.getName=function(){return this.name},M.prototype.getName=M.prototype.getName,m(B,Error),B.prototype.toString=function(){var e="RpcError("+(function(e){switch(e){case 0:return"OK";case 1:return"CANCELLED";case 2:return"UNKNOWN";case 3:return"INVALID_ARGUMENT";case 4:return"DEADLINE_EXCEEDED";case 5:return"NOT_FOUND";case 6:return"ALREADY_EXISTS";case 7:return"PERMISSION_DENIED";case 16:return"UNAUTHENTICATED";case 8:return"RESOURCE_EXHAUSTED";case 9:return"FAILED_PRECONDITION";case 10:return"ABORTED";case 11:return"OUT_OF_RANGE";case 12:return"UNIMPLEMENTED";case 13:return"INTERNAL";case 14:return"UNAVAILABLE";case 15:return"DATA_LOSS";default:return""}}(this.code)||String(this.code))+")";return this.message&&(e+=": "+this.message),e},B.prototype.name="RpcError",D.prototype.on=function(e,t){return"data"==e||"error"==e?this:this.a.on(e,t)},D.prototype.removeListener=function(e,t){return this.a.removeListener(e,t)},D.prototype.cancel=function(){this.a.cancel()},A(L,Error),L.prototype.name="CustomError",A(N,L),N.prototype.name="AssertionError";var U=0,G=1,V=2,W=3,q=0,H=128;function $(e,t,r,n){throw e.b=W,e.l="The stream is broken @"+e.m+"/"+r+". Error: "+n+". With input:\n"+t,Error(e.l)}var Z,Y=Array.prototype.indexOf?function(e,t){return Array.prototype.indexOf.call(e,t,void 0)}:function(e,t){if("string"==typeof e)return"string"!=typeof t||1!=t.length?-1:e.indexOf(t,0);for(var r=0;r<e.length;r++)if(r in e&&e[r]===t)return r;return-1},J=String.prototype.trim?function(e){return e.trim()}:function(e){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(e)[1]};function K(e,t){return-1!=e.indexOf(t)}function X(e,t){return e<t?-1:e>t?1:0}e:{var Q=S.navigator;if(Q){var ee=Q.userAgent;if(ee){Z=ee;break e}}Z=""}var te="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function re(e){var t=1;e=e.split(":");for(var r=[];0<t&&e.length;)r.push(e.shift()),t--;return e.length&&r.push(e.join(":")),r}function ne(e){return ne[" "](e),e}ne[" "]=E;var ie,oe,se=K(Z,"Opera"),ae=K(Z,"Trident")||K(Z,"MSIE"),le=K(Z,"Edge"),ue=K(Z,"Gecko")&&!(K(Z.toLowerCase(),"webkit")&&!K(Z,"Edge"))&&!(K(Z,"Trident")||K(Z,"MSIE"))&&!K(Z,"Edge"),ce=K(Z.toLowerCase(),"webkit")&&!K(Z,"Edge");e:{var pe="",fe=(oe=Z,ue?/rv:([^\);]+)(\)|;)/.exec(oe):le?/Edge\/([\d\.]+)/.exec(oe):ae?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(oe):ce?/WebKit\/(\S+)/.exec(oe):se?/(?:Version)[ \/]?(\S+)/.exec(oe):void 0);if(fe&&(pe=fe?fe[1]:""),ae){var he,de=S.document;if(null!=(he=de?de.documentMode:void 0)&&he>parseFloat(pe)){ie=String(he);break e}}ie=pe}var ge={};function ye(){return function(e){var t=ge;return Object.prototype.hasOwnProperty.call(t,9)?t[9]:t[9]=e(9)}((function(){for(var e=0,t=J(String(ie)).split("."),r=J("9").split("."),n=Math.max(t.length,r.length),i=0;0==e&&i<n;i++){var o=t[i]||"",s=r[i]||"";do{if(o=/(\d*)(\D*)(.*)/.exec(o)||["","","",""],s=/(\d*)(\D*)(.*)/.exec(s)||["","","",""],0==o[0].length&&0==s[0].length)break;e=X(0==o[1].length?0:parseInt(o[1],10),0==s[1].length?0:parseInt(s[1],10))||X(0==o[2].length,0==s[2].length)||X(o[2],s[2]),o=o[3],s=s[3]}while(0==e)}return 0<=e}))}function ve(){0!=me&&(Object.prototype.hasOwnProperty.call(this,R)&&this[R]||(this[R]=++T)),this.K=this.K}var me=0;ve.prototype.K=!1;var be=Object.freeze||function(e){return e};function we(e,t){this.type=e,this.a=this.target=t,this.defaultPrevented=!1}we.prototype.b=function(){this.defaultPrevented=!0};var Se=function(){if(!S.addEventListener||!Object.defineProperty)return!1;var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}});try{S.addEventListener("test",E,t),S.removeEventListener("test",E,t)}catch(e){}return e}();function _e(e,t){if(we.call(this,e?e.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,e){var r=this.type=e.type,n=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:null;if(this.target=e.target||e.srcElement,this.a=t,t=e.relatedTarget){if(ue){e:{try{ne(t.nodeName);var i=!0;break e}catch(e){}i=!1}i||(t=null)}}else"mouseover"==r?t=e.fromElement:"mouseout"==r&&(t=e.toElement);this.relatedTarget=t,n?(this.clientX=void 0!==n.clientX?n.clientX:n.pageX,this.clientY=void 0!==n.clientY?n.clientY:n.pageY,this.screenX=n.screenX||0,this.screenY=n.screenY||0):(this.clientX=void 0!==e.clientX?e.clientX:e.pageX,this.clientY=void 0!==e.clientY?e.clientY:e.pageY,this.screenX=e.screenX||0,this.screenY=e.screenY||0),this.button=e.button,this.key=e.key||"",this.ctrlKey=e.ctrlKey,this.altKey=e.altKey,this.shiftKey=e.shiftKey,this.metaKey=e.metaKey,this.pointerId=e.pointerId||0,this.pointerType="string"==typeof e.pointerType?e.pointerType:Ee[e.pointerType]||"",this.c=e,e.defaultPrevented&&_e.O.b.call(this)}}A(_e,we);var Ee=be({2:"touch",3:"pen",4:"mouse"});_e.prototype.b=function(){_e.O.b.call(this);var e=this.c;e.preventDefault?e.preventDefault():e.returnValue=!1};var Oe="closure_listenable_"+(1e6*Math.random()|0),Re=0;function Te(e,t,r,n,i){this.listener=e,this.proxy=null,this.src=t,this.type=r,this.capture=!!n,this.H=i,this.key=++Re,this.A=this.D=!1}function je(e){e.A=!0,e.listener=null,e.proxy=null,e.src=null,e.H=null}function Pe(e){this.src=e,this.a={},this.b=0}function xe(e,t){var r=t.type;if(r in e.a){var n,i=e.a[r],o=Y(i,t);(n=0<=o)&&Array.prototype.splice.call(i,o,1),n&&(je(t),0==e.a[r].length&&(delete e.a[r],e.b--))}}function Ae(e,t,r,n){for(var i=0;i<e.length;++i){var o=e[i];if(!o.A&&o.listener==t&&o.capture==!!r&&o.H==n)return i}return-1}Pe.prototype.add=function(e,t,r,n,i){var o=e.toString();(e=this.a[o])||(e=this.a[o]=[],this.b++);var s=Ae(e,t,n,i);return-1<s?(t=e[s],r||(t.D=!1)):((t=new Te(t,this.src,o,!!n,i)).D=r,e.push(t)),t},Pe.prototype.remove=function(e,t,r,n){if(!((e=e.toString())in this.a))return!1;var i=this.a[e];return-1<(t=Ae(i,t,r,n))&&(je(i[t]),Array.prototype.splice.call(i,t,1),0==i.length&&(delete this.a[e],this.b--),!0)};var Ie="closure_lm_"+(1e6*Math.random()|0),Ce={};function ke(e,t,r,n,i){if(n&&n.once)!function e(t,r,n,i,o){if(Array.isArray(r))for(var s=0;s<r.length;s++)e(t,r[s],n,i,o);else n=ze(n),t&&t[Oe]?t.f.add(String(r),n,!0,O(i)?!!i.capture:!!i,o):Me(t,r,n,!0,i,o)}(e,t,r,n,i);else if(Array.isArray(t))for(var o=0;o<t.length;o++)ke(e,t[o],r,n,i);else r=ze(r),e&&e[Oe]?e.f.add(String(t),r,!1,O(n)?!!n.capture:!!n,i):Me(e,t,r,!1,n,i)}function Me(e,t,r,n,i,o){if(!t)throw Error("Invalid event type");var s=O(i)?!!i.capture:!!i,a=Le(e);if(a||(e[Ie]=a=new Pe(e)),!(r=a.add(t,r,n,s,o)).proxy){if(n=function(){var e=De;return function t(r){return e.call(t.src,t.listener,r)}}(),r.proxy=n,n.src=e,n.listener=r,e.addEventListener)Se||(i=s),void 0===i&&(i=!1),e.addEventListener(t.toString(),n,i);else if(e.attachEvent)e.attachEvent(Be(t.toString()),n);else{if(!e.addListener||!e.removeListener)throw Error("addEventListener and attachEvent are unavailable.");e.addListener(n)}0}}function Fe(e){if("number"!=typeof e&&e&&!e.A){var t=e.src;if(t&&t[Oe])xe(t.f,e);else{var r=e.type,n=e.proxy;t.removeEventListener?t.removeEventListener(r,n,e.capture):t.detachEvent?t.detachEvent(Be(r),n):t.addListener&&t.removeListener&&t.removeListener(n),(r=Le(t))?(xe(r,e),0==r.b&&(r.src=null,t[Ie]=null)):je(e)}}}function Be(e){return e in Ce?Ce[e]:Ce[e]="on"+e}function De(e,t){if(e.A)e=!0;else{t=new _e(t,this);var r=e.listener,n=e.H||e.src;e.D&&Fe(e),e=r.call(n,t)}return e}function Le(e){return(e=e[Ie])instanceof Pe?e:null}var Ne="__closure_events_fn_"+(1e9*Math.random()>>>0);function ze(e){return"function"==typeof e?e:(e[Ne]||(e[Ne]=function(t){return e.handleEvent(t)}),e[Ne])}function Ue(){ve.call(this),this.f=new Pe(this),this.U=this}function Ge(e,t){e=e.U;var r=t.type||t;if("string"==typeof t)t=new we(t,e);else if(t instanceof we)t.target=t.target||e;else{var n=t;(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 o=0;o<te.length;o++)r=te[o],Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}})(t=new we(r,e),n)}Ve(e=t.a=e,r,!0,t),Ve(e,r,!1,t)}function Ve(e,t,r,n){if(t=e.f.a[String(t)]){t=t.concat();for(var i=!0,o=0;o<t.length;++o){var s=t[o];if(s&&!s.A&&s.capture==r){var a=s.listener,l=s.H||s.src;s.D&&xe(e.f,s),i=!1!==a.call(l,n)&&i}}}}A(Ue,ve),Ue.prototype[Oe]=!0,Ue.prototype.addEventListener=function(e,t,r,n){ke(this,e,t,r,n)},Ue.prototype.removeEventListener=function(e,t,r,n){!function e(t,r,n,i,o){if(Array.isArray(r))for(var s=0;s<r.length;s++)e(t,r[s],n,i,o);else i=O(i)?!!i.capture:!!i,n=ze(n),t&&t[Oe]?t.f.remove(String(r),n,i,o):t&&(t=Le(t))&&(r=t.a[r.toString()],t=-1,r&&(t=Ae(r,n,i,o)),(n=-1<t?r[t]:null)&&Fe(n))}(this,e,t,r,n)};var We=S;function qe(e,t,r){if("function"==typeof e)r&&(e=x(e,r));else{if(!e||"function"!=typeof e.handleEvent)throw Error("Invalid listener argument");e=x(e.handleEvent,e)}return 2147483647<Number(t)?-1:We.setTimeout(e,t||0)}function He(e,t){this.name=e,this.value=t}He.prototype.toString=function(){return this.name};var $e,Ze,Ye,Je=new He("OFF",1/0),Ke=new He("SEVERE",1e3),Xe=new He("CONFIG",700),Qe=new He("FINE",500);function et(){this.clear()}function tt(e,t,r){this.reset(e||Je,t,r,void 0,void 0)}function rt(e,t){this.a=null,this.f=[],this.b=(void 0===t?null:t)||null,this.c=[],this.g={getName:function(){return e}}}function nt(e){return e.a?e.a:e.b?nt(e.b):(function(e,t){throw new N("Failure"+(e?": "+e:""),Array.prototype.slice.call(arguments,1))}("Root logger has no level set."),Je)}function it(){this.entries={};var e=new rt("");e.a=Xe,this.entries[""]=e}function ot(e,t,r){var n=e.entries[t];if(n)return void 0!==r&&(n.a=r),n;n=ot(e,t.substr(0,t.lastIndexOf(".")));var i=new rt(t,n);return e.entries[t]=i,n.c.push(i),void 0!==r&&(i.a=r),i}function st(){return Ze||(Ze=new it),Ze}function at(e,t,r){var n;(n=e)&&(n=e&&t)&&(n=(n=t.value)>=(e?nt(ot(st(),e.getName())):Je).value);n&&(t=t||Je,n=ot(st(),e.getName()),"function"==typeof r&&(r=r()),$e||($e=new et),function(e,t){for(;e;)e.f.forEach((function(e){e(t)})),e=e.b}(n,e=new tt(t,r,e=e.getName())))}function lt(e,t){e&&at(e,Qe,t)}function ut(){}function ct(e){var t;return(t=e.a)||(t={},ht(e)&&(t[0]=!0,t[1]=!0),t=e.a=t),t}function pt(){}function ft(e){return(e=ht(e))?new ActiveXObject(e):new XMLHttpRequest}function ht(e){if(!e.b&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var t=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],r=0;r<t.length;r++){var n=t[r];try{return new ActiveXObject(n),e.b=n}catch(e){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed")}return e.b}function dt(e,t){this.b=e[S.Symbol.iterator](),this.c=t,this.f=0}et.prototype.clear=function(){},tt.prototype.reset=function(){},ut.prototype.a=null,A(pt,ut),Ye=new pt,a(),p(),dt.prototype[Symbol.iterator]=function(){return this},dt.prototype.next=function(){var e=this.b.next();return{value:e.done?void 0:this.c.call(void 0,e.value,this.f++),done:e.done}},a(),p(),a(),p();var gt="StopIteration"in S?S.StopIteration:{message:"StopIteration",stack:""};function yt(){}function vt(e){if(e instanceof bt||e instanceof wt||e instanceof St)return e;if("function"==typeof e.next)return new bt((function(){return mt(e)}));if(a(),p(),"function"==typeof e[Symbol.iterator])return a(),p(),new bt((function(){return e[Symbol.iterator]()}));if("function"==typeof e.u)return new bt((function(){return mt(e.u())}));throw Error("Not an iterator or iterable.")}function mt(e){if(!(e instanceof yt))return e;var t=!1;return{next:function(){for(var r;!t;)try{r=e.a();break}catch(e){if(e!==gt)throw e;t=!0}return{value:r,done:t}}}}function bt(e){this.b=e}function wt(e){this.b=e}function St(e){bt.call(this,(function(){return e})),this.f=e}function _t(e,t){this.o={},this.j=[],this.B=this.size=0;var r=arguments.length;if(1<r){if(r%2)throw Error("Uneven number of arguments");for(var n=0;n<r;n+=2)this.set(arguments[n],arguments[n+1])}else e&&this.addAll(e)}function Et(e){if(e.size!=e.j.length){for(var t=0,r=0;t<e.j.length;){var n=e.j[t];Ot(e.o,n)&&(e.j[r++]=n),t++}e.j.length=r}if(e.size!=e.j.length){var i={};for(r=t=0;t<e.j.length;)Ot(i,n=e.j[t])||(e.j[r++]=n,i[n]=1),t++;e.j.length=r}}function Ot(e,t){return Object.prototype.hasOwnProperty.call(e,t)}yt.prototype.next=function(){return yt.prototype.a.call(this)},yt.prototype.a=function(){throw gt},yt.prototype.u=function(){return this},a(),p(),bt.prototype.u=function(){return new wt(this.b())},bt.prototype[Symbol.iterator]=function(){return new St(this.b())},bt.prototype.c=function(){return new St(this.b())},a(),p(),m(wt,yt),wt.prototype.a=function(){var e=this.b.next();if(e.done)throw gt;return e.value},wt.prototype.next=function(){return wt.prototype.a.call(this)},wt.prototype[Symbol.iterator]=function(){return new St(this.b)},wt.prototype.c=function(){return new St(this.b)},m(St,bt),St.prototype.next=function(){return this.f.next()},(n=_t.prototype).G=function(){return Et(this),this.j.concat()},n.has=function(e){return Ot(this.o,e)},n.clear=function(){this.o={},this.B=this.size=this.j.length=0},n.remove=function(e){return this.delete(e)},n.delete=function(e){return!!Ot(this.o,e)&&(delete this.o[e],--this.size,this.B++,this.j.length>2*this.size&&Et(this),!0)},n.get=function(e,t){return Ot(this.o,e)?this.o[e]:t},n.set=function(e,t){Ot(this.o,e)||(this.size+=1,this.j.push(e),this.B++),this.o[e]=t},n.addAll=function(e){if(e instanceof _t)for(var t=e.G(),r=0;r<t.length;r++)this.set(t[r],e.get(t[r]));else for(t in e)this.set(t,e[t])},n.forEach=function(e,t){for(var r=this.G(),n=0;n<r.length;n++){var i=r[n],o=this.get(i);e.call(t,o,i,this)}},n.clone=function(){return new _t(this)},n.keys=function(){return vt(this.u(!0)).c()},n.values=function(){return vt(this.u(!1)).c()},n.entries=function(){var e=this;return function(e,t){return new dt(e,t)}(this.keys(),(function(t){return[t,e.get(t)]}))},n.u=function(e){Et(this);var t=0,r=this.B,n=this,i=new yt;return i.a=function(){if(r!=n.B)throw Error("The map has changed since the iterator was created");if(t>=n.j.length)throw gt;var i=n.j[t++];return e?i:n.o[i]},i.next=i.a.bind(i),i};var Rt=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^\\/?#]*)@)?([^\\/?#]*?)(?::([0-9]+))?(?=[\\/?#]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;function Tt(e){Ue.call(this),this.headers=new _t,this.C=e||null,this.c=!1,this.J=this.a=null,this.P=this.v="",this.g=0,this.l="",this.i=this.N=this.s=this.L=!1,this.h=0,this.w=null,this.m=jt,this.I=this.M=!1}A(Tt,Ue);var jt="";Tt.prototype.b=ot(st(),"goog.net.XhrIo",void 0).g;var Pt=/^https?$/i,xt=["POST","PUT"];function At(e,t,r){if(e.a)throw Error("[goog.net.XhrIo] Object is active with another request="+e.v+"; newUri="+t);e.v=t,e.l="",e.g=0,e.P="POST",e.L=!1,e.c=!0,e.a=e.C?ft(e.C):ft(Ye),e.J=e.C?ct(e.C):ct(Ye),e.a.onreadystatechange=x(e.R,e);try{lt(e.b,Dt(e,"Opening Xhr")),e.N=!0,e.a.open("POST",String(t),!0),e.N=!1}catch(t){return lt(e.b,Dt(e,"Error opening Xhr: "+t.message)),void It(e,t)}t=r||"";var n=(r=e.headers.clone()).G().find((function(e){return"content-type"==e.toLowerCase()})),i=S.FormData&&t instanceof S.FormData;!(0<=Y(xt,"POST"))||n||i||r.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8"),r.forEach((function(e,t){this.a.setRequestHeader(t,e)}),e),e.m&&(e.a.responseType=e.m),"withCredentials"in e.a&&e.a.withCredentials!==e.M&&(e.a.withCredentials=e.M);try{Ft(e),0<e.h&&(e.I=function(e){return ae&&ye()&&"number"==typeof e.timeout&&void 0!==e.ontimeout}(e.a),lt(e.b,Dt(e,"Will abort after "+e.h+"ms if incomplete, xhr2 "+e.I)),e.I?(e.a.timeout=e.h,e.a.ontimeout=x(e.T,e)):e.w=qe(e.T,e.h,e)),lt(e.b,Dt(e,"Sending request")),e.s=!0,e.a.send(t),e.s=!1}catch(t){lt(e.b,Dt(e,"Send error: "+t.message)),It(e,t)}}function It(e,t){e.c=!1,e.a&&(e.i=!0,e.a.abort(),e.i=!1),e.l=t,e.g=5,Ct(e),Mt(e)}function Ct(e){e.L||(e.L=!0,Ge(e,"complete"),Ge(e,"error"))}function kt(e){if(e.c&&void 0!==w)if(e.J[1]&&4==Bt(e)&&2==e.getStatus())lt(e.b,Dt(e,"Local request error detected and ignored"));else if(e.s&&4==Bt(e))qe(e.R,0,e);else if(Ge(e,"readystatechange"),4==Bt(e)){lt(e.b,Dt(e,"Request complete")),e.c=!1;try{var t,r=e.getStatus();e:switch(r){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var n=!0;break e;default:n=!1}if(!(t=n)){var i;if(i=0===r){var o=String(e.v).match(Rt)[1]||null;if(!o&&S.self&&S.self.location){var s=S.self.location.protocol;o=s.substr(0,s.length-1)}i=!Pt.test(o?o.toLowerCase():"")}t=i}if(t)Ge(e,"complete"),Ge(e,"success");else{e.g=6;try{var a=2<Bt(e)?e.a.statusText:""}catch(t){lt(e.b,"Can not get status: "+t.message),a=""}e.l=a+" ["+e.getStatus()+"]",Ct(e)}}finally{Mt(e)}}}function Mt(e){if(e.a){Ft(e);var t=e.a,r=e.J[0]?E:null;e.a=null,e.J=null,Ge(e,"ready");try{t.onreadystatechange=r}catch(t){(e=e.b)&&at(e,Ke,"Problem encountered resetting onreadystatechange: "+t.message)}}}function Ft(e){e.a&&e.I&&(e.a.ontimeout=null),e.w&&(We.clearTimeout(e.w),e.w=null)}function Bt(e){return e.a?e.a.readyState:0}function Dt(e,t){return t+" ["+e.P+" "+e.v+" "+e.getStatus()+"]"}(n=Tt.prototype).T=function(){void 0!==w&&this.a&&(this.l="Timed out after "+this.h+"ms, aborting",this.g=8,lt(this.b,Dt(this,this.l)),Ge(this,"timeout"),this.abort(8))},n.abort=function(e){this.a&&this.c&&(lt(this.b,Dt(this,"Aborting")),this.c=!1,this.i=!0,this.a.abort(),this.i=!1,this.g=e||7,Ge(this,"complete"),Ge(this,"abort"),Mt(this))},n.R=function(){this.K||(this.N||this.s||this.i?kt(this):this.W())},n.W=function(){kt(this)},n.getStatus=function(){try{return 2<Bt(this)?this.a.status:-1}catch(e){return-1}};var Lt={},Nt=null;function zt(e){var t=e.length,r=3*t/4;r%3?r=Math.floor(r):K("=.",e[t-1])&&(r=K("=.",e[t-2])?r-2:r-1);var n=new Uint8Array(r),i=0;return function(e,t){function r(t){for(;n<e.length;){var r=e.charAt(n++),i=Nt[r];if(null!=i)return i;if(!/^[\s\xa0]*$/.test(r))throw Error("Unknown base64 encoding at char: "+r)}return t}Ut();for(var n=0;;){var i=r(-1),o=r(0),s=r(64),a=r(64);if(64===a&&-1===i)break;t(i<<2|o>>4),64!=s&&(t(o<<4&240|s>>2),64!=a&&t(s<<6&192|a))}}(e,(function(e){n[i++]=e})),n.subarray(0,i)}function Ut(){if(!Nt){Nt={};for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),t=["+/=","+/","-_=","-_.","-_"],r=0;5>r;r++){var n=e.concat(t[r].split(""));Lt[r]=n;for(var i=0;i<n.length;i++){var o=n[i];void 0===Nt[o]&&(Nt[o]=i)}}}}var Gt=["content-type","grpc-status","grpc-message"];function Vt(e){this.a=e.Z,this.m=null,this.b=[],this.h=[],this.g=[],this.f=[],this.c=[],this.l=!1,this.i=0,this.s=new z;var t=this;ke(this.a,"readystatechange",(function(){var e=t.a;if(e=e.a?e.a.getResponseHeader("Content-Type"):null){if(0==(e=e.toLowerCase()).lastIndexOf("application/grpc-web-text",0)){e=t.a;try{var r=e.a?e.a.responseText:""}catch(t){lt(e.b,"Can not get responseText: "+t.message),r=""}if(r=(e=r||"").length-e.length%4,0==(e=e.substr(t.i,r-t.i)).length)return;t.i=r,e=zt(e)}else{if(0!=e.lastIndexOf("application/grpc",0))return void qt(t,new B(2,"Unknown Content-type received."));e=new Uint8Array(function(e){try{if(!e.a)return null;if("response"in e.a)return e.a.response;switch(e.m){case jt:case"text":return e.a.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in e.a)return e.a.mozResponseArrayBuffer}var t=e.b;return t&&at(t,Ke,"Response type "+e.m+" is not supported on this browser"),null}catch(t){return lt(e.b,"Can not get response: "+t.message),null}}(t.a))}r=null;try{r=function(e,t){function r(e){a.f++,a.a=(a.a<<8)+e,4==a.f&&(a.b=V,a.g=0,"undefined"!=typeof Uint8Array?a.c=new Uint8Array(a.a):a.c=Array(a.a),0==a.a&&i())}function n(e){a.c[a.g++]=e,a.g==a.a&&i()}function i(){var e={};e[a.h]=a.c,a.i.push(e),a.b=U}var o,s,a=e,l=0;for(o=t instanceof Uint8Array||t instanceof Array?t:new Uint8Array(t);l<o.length;){switch(a.b){case W:$(a,o,l,"stream already broken");break;case U:(s=o[l])==q||s==H?a.h=s:$(a,o,l,"invalid frame byte"),a.b=G,a.a=0,a.f=0;break;case G:r(o[l]);break;case V:n(o[l]);break;default:throw Error("unexpected parser state: "+a.b)}a.m++,l++}return e=a.i,a.i=[],0<e.length?e:null}(t.s,e)}catch(e){qt(t,new B(2,"Error in parsing response body"))}if(r)for(e=0;e<r.length;e++){if(q in r[e]){var n=r[e][q];if(n){var i=!1,o=void 0;try{o=t.m(n),i=!0}catch(e){qt(t,new B(13,"Error when deserializing response data; error: "+e+", response: "+o))}if(i)for(n=o,i=0;i<t.b.length;i++)t.b[i](n)}}if(H in r[e]&&0<r[e][H].length){for(n="",i=0;i<r[e][H].length;i++)n+=String.fromCharCode(r[e][H][i]);for(n=n.trim().split("\r\n"),i={},o=0;o<n.length;o++){var s=n[o].indexOf(":");i[n[o].substring(0,s).trim()]=n[o].substring(s+1).trim()}n=i,i=0,o="","grpc-status"in n&&(i=Number(n["grpc-status"]),delete n["grpc-status"]),"grpc-message"in n&&(o=n["grpc-message"],delete n["grpc-message"]),qt(t,new B(i,o,n))}}}})),ke(this.a,"complete",(function(){var e=t.a.g,r=2,n="",i={};r=function(e){var t={};e=(e.a&&4==Bt(e)&&e.a.getAllResponseHeaders()||"").split("\r\n");for(var r=0;r<e.length;r++)if(!/^[\s\xa0]*$/.test(e[r])){var n=re(e[r]),i=n[0];if("string"==typeof(n=n[1])){n=n.trim();var o=t[i]||[];t[i]=o,o.push(n)}}return function(e,t){var r,n={};for(r in e)n[r]=t.call(void 0,e[r],r,e);return n}(t,(function(e){return e.join(", ")}))}(t.a);var o={};for(s in r)r.hasOwnProperty(s)&&(o[s.toLowerCase()]=r[s]);Object.keys(o).forEach((function(e){Gt.includes(e)||(i[e]=o[e])})),function(e,t){for(var r=0;r<e.g.length;r++)e.g[r](t)}(t,i);var s=-1;if(0!=e){switch(e){case 7:r=10;break;case 8:r=4;break;case 6:r=function(e){switch(e){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}}(s=t.a.getStatus());break;default:r=14}10==r&&t.l||(n=function(e){switch(e){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"}}(e),-1!=s&&(n+=", http status code: "+s),qt(t,new B(r,n)))}else e=!1,"grpc-status"in o&&(r=Number(o["grpc-status"]),"grpc-message"in o&&(n=o["grpc-message"]),0!=r&&(qt(t,new B(r,n||"",o)),e=!0)),e||function(e){for(var t=0;t<e.c.length;t++)e.c[t]()}(t)}))}function Wt(e,t){-1<(t=e.indexOf(t))&&e.splice(t,1)}function qt(e,t){if(0!=t.code)for(var r=new B(t.code,decodeURIComponent(t.message||""),t.metadata),n=0;n<e.f.length;n++)e.f[n](r);for(t={code:t.code,details:decodeURIComponent(t.message||""),metadata:t.metadata},r=0;r<e.h.length;r++)e.h[r](t)}function Ht(e,t){e=void 0===e?{}:e,this.a=e.format||_("format",e)||"text",this.g=e.aa||_("suppressCorsPreflight",e)||!1,this.f=e.withCredentials||_("withCredentials",e)||!1,this.b=e.$||_("streamInterceptors",e)||[],this.h=e.ba||_("unaryInterceptors",e)||[],this.c=t||null}function $t(e,t,r){var n=t.getMethodDescriptor(),i=r+n.getName();(r=e.c?e.c:new Tt).M=e.f;var o=new Vt({Z:r});o.m=n.b;var s=t.getMetadata();for(a in s)r.headers.set(a,s[a]);if("text"==e.a?(r.headers.set("Content-Type","application/grpc-web-text"),r.headers.set("Accept","application/grpc-web-text")):r.headers.set("Content-Type","application/grpc-web+proto"),r.headers.set("X-User-Agent","grpc-web-javascript/0.1"),r.headers.set("X-Grpc-Web","1"),r.headers.has("deadline")){var a=Number(r.headers.get("deadline"));a=Math.ceil(a-(new Date).getTime()),r.headers.delete("deadline"),1/0===a&&(a=0),0<a&&(r.headers.set("grpc-timeout",a+"m"),r.h=Math.max(0,Math.max(1e3,Math.ceil(1.1*a))))}if(e.g){a={};for(var l=f((s=r.headers).keys()),u=l.next();!u.done;u=l.next())a[u=u.value]=s.get(u);r.headers.clear();e:{for(c in a){var c=!1;break e}c=!0}c||(a=function(e){var t="";return function(e,t){for(var r in e)t.call(void 0,e[r],r,e)}(e,(function(e,r){t+=r,t+=":",t+=e,t+="\r\n"})),t}(a),"string"==typeof i?(c=encodeURIComponent("$httpHeaders"),(c+=a=null!=a?"="+encodeURIComponent(String(a)):"")&&(0>(a=i.indexOf("#"))&&(a=i.length),0>(s=i.indexOf("?"))||s>a?(s=a,l=""):l=i.substring(s+1,a),a=(i=[i.substr(0,s),l,i.substr(a)])[1],i[1]=c?a?a+"&"+c:c:a,i=i[0]+(i[1]?"?"+i[1]:"")+i[2])):i.a("$httpHeaders",a))}for(n=(t=(0,n.a)(t.getRequestMessage())).length,c=[0,0,0,0],a=new Uint8Array(5+n),s=3;0<=s;s--)c[s]=n%256,n>>>=8;if(a.set(new Uint8Array(c),1),a.set(t,5),t=a,"text"==e.a){var p;for(e=t,void 0===p&&(p=0),Ut(),p=Lt[p],t=Array(Math.floor(e.length/3)),n=p[64]||"",c=a=0;a<e.length-2;a+=3){u=e[a];var h=e[a+1];l=e[a+2],s=p[u>>2],u=p[(3&u)<<4|h>>4],h=p[(15&h)<<2|l>>6],l=p[63&l],t[c++]=s+u+h+l}switch(s=0,l=n,e.length-a){case 2:l=p[(15&(s=e[a+1]))<<2]||n;case 1:e=e[a],t[c]=p[e>>2]+p[(3&e)<<4|s>>4]+l+n}t=t.join("")}else"binary"==e.a&&(r.m="arraybuffer");return At(r,i,t),o}function Zt(e,t,r){var n=!1,i=null,o=!1;e.on("data",(function(e){n=!0,i=e})),e.on("error",(function(e){0==e.code||o||(o=!0,t(e,null))})),e.on("status",(function(e){0==e.code||o?r&&t(null,null,e):(o=!0,t({code:e.code,message:e.details,metadata:e.metadata},null))})),r&&e.on("metadata",(function(e){t(null,null,null,e)})),e.on("end",(function(){o||(n?r?t(null,i,null,null,!0):t(null,i):t({code:2,message:"Incomplete response"})),r&&t(null,null)}))}function Yt(e,t){var r=e;return t.forEach((function(e){var t=r;r=function(r){return e.intercept(r,t)}})),r}Vt.prototype.on=function(e,t){return"data"==e?this.b.push(t):"status"==e?this.h.push(t):"metadata"==e?this.g.push(t):"end"==e?this.c.push(t):"error"==e&&this.f.push(t),this},Vt.prototype.removeListener=function(e,t){return"data"==e?Wt(this.b,t):"status"==e?Wt(this.h,t):"metadata"==e?Wt(this.g,t):"end"==e?Wt(this.c,t):"error"==e&&Wt(this.f,t),this},Vt.prototype.cancel=function(){this.l=!0,this.a.abort()},Vt.prototype.cancel=Vt.prototype.cancel,Vt.prototype.removeListener=Vt.prototype.removeListener,Vt.prototype.on=Vt.prototype.on,Ht.prototype.X=function(e,t,r,n,i){var o=this,s=e.substr(0,e.length-n.name.length);return Zt(e=Yt((function(e){return $t(o,e,s)}),this.b).call(this,F(n,t,r)),i,!1),new D(e)},Ht.prototype.S=function(e,t,r,n){var i=this,o=e.substr(0,e.length-n.name.length);return Yt((function(e){return new Promise((function(t,r){var n,s,a;Zt($t(i,e,o),(function(i,o,l,u,c){i?r(i):c?a=o:l?s=l:u?n=u:(i=e.getMethodDescriptor(),t(new k(a,i,o=void 0===(o=n)?{}:o,void 0===s?null:s)))}),!0)}))}),this.h).call(this,F(n,t,r)).then((function(e){return e.getResponseMessage()}))},Ht.prototype.unaryCall=function(e,t,r,n){return this.S(e,t,r,n)},Ht.prototype.Y=function(e,t,r,n){var i=this,o=e.substr(0,e.length-n.name.length);return Yt((function(e){return $t(i,e,o)}),this.b).call(this,F(n,t,r))},Ht.prototype.serverStreaming=Ht.prototype.Y,Ht.prototype.unaryCall=Ht.prototype.unaryCall,Ht.prototype.thenableCall=Ht.prototype.S,Ht.prototype.rpcCall=Ht.prototype.X,e.exports.CallOptions=I,e.exports.MethodDescriptor=M,e.exports.GrpcWebClientBase=Ht,e.exports.RpcError=B,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.MethodType={UNARY:"unary",SERVER_STREAMING:"server_streaming",BIDI_STREAMING:"bidi_streaming"},We="undefined"!=typeof globalThis&&globalThis||self},7239:(e,t,r)=>{"use strict";var n=r(4940),i=function(){return!!n};i.hasArrayLengthDefineBug=function(){if(!n)return null;try{return 1!==n([],"length",{value:1}).length}catch(e){return!0}},e.exports=i},6869:e=>{"use strict";var t={__proto__:null,foo:{}},r=Object;e.exports=function(){return{__proto__:t}.foo===t.foo&&!(t instanceof r)}},3558:(e,t,r)=>{"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(2908);e.exports=function(){return"function"==typeof n&&("function"==typeof Symbol&&("symbol"==typeof n("foo")&&("symbol"==typeof Symbol("bar")&&i())))}},2908:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},1913:(e,t,r)=>{"use strict";var n=r(2908);e.exports=function(){return n()&&!!Symbol.toStringTag}},8554:(e,t,r)=>{"use strict";var n=Function.prototype.call,i=Object.prototype.hasOwnProperty,o=r(9138);e.exports=o.call(n,i)},7500:(e,t,r)=>{var n=r(4865),i=r(5442),o=e.exports;for(var s in n)n.hasOwnProperty(s)&&(o[s]=n[s]);function a(e){if("string"==typeof e&&(e=i.parse(e)),e.protocol||(e.protocol="https:"),"https:"!==e.protocol)throw new Error('Protocol "'+e.protocol+'" not supported. Expected "https:"');return e}o.request=function(e,t){return e=a(e),n.request.call(this,e,t)},o.get=function(e,t){return e=a(e),n.get.call(this,e,t)}},9318:(e,t)=>{t.read=function(e,t,r,n,i){var o,s,a=8*i-n-1,l=(1<<a)-1,u=l>>1,c=-7,p=r?i-1:0,f=r?-1:1,h=e[t+p];for(p+=f,o=h&(1<<-c)-1,h>>=-c,c+=a;c>0;o=256*o+e[t+p],p+=f,c-=8);for(s=o&(1<<-c)-1,o>>=-c,c+=n;c>0;s=256*s+e[t+p],p+=f,c-=8);if(0===o)o=1-u;else{if(o===l)return s?NaN:1/0*(h?-1:1);s+=Math.pow(2,n),o-=u}return(h?-1:1)*s*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var s,a,l,u=8*o-i-1,c=(1<<u)-1,p=c>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:o-1,d=n?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=c):(s=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-s))<1&&(s--,l*=2),(t+=s+p>=1?f/l:f*Math.pow(2,1-p))*l>=2&&(s++,l/=2),s+p>=c?(a=0,s=c):s+p>=1?(a=(t*l-1)*Math.pow(2,i),s+=p):(a=t*Math.pow(2,p-1)*Math.pow(2,i),s=0));i>=8;e[r+h]=255&a,h+=d,a/=256,i-=8);for(s=s<<i|a,u+=i;u>0;e[r+h]=255&s,h+=d,s/=256,u-=8);e[r+h-d]|=128*g}},5615:e=>{"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},5387:(e,t,r)=>{"use strict";var n=r(1913)(),i=r(9818)("Object.prototype.toString"),o=function(e){return!(n&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===i(e)},s=function(e){return!!o(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==i(e)&&"[object Function]"===i(e.callee)},a=function(){return o(arguments)}();o.isLegacyArguments=s,e.exports=a?o:s},9617:e=>{"use strict";var t,r,n=Function.prototype.toString,i="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof i&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw r}}),r={},i((function(){throw 42}),null,t)}catch(e){e!==r&&(i=null)}else i=null;var o=/^\s*class\b/,s=function(e){try{var t=n.call(e);return o.test(t)}catch(e){return!1}},a=function(e){try{return!s(e)&&(n.call(e),!0)}catch(e){return!1}},l=Object.prototype.toString,u="function"==typeof Symbol&&!!Symbol.toStringTag,c=!(0 in[,]),p=function(){return!1};if("object"==typeof document){var f=document.all;l.call(f)===l.call(document.all)&&(p=function(e){if((c||!e)&&(void 0===e||"object"==typeof e))try{var t=l.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(e){}return!1})}e.exports=i?function(e){if(p(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;try{i(e,null,t)}catch(e){if(e!==r)return!1}return!s(e)&&a(e)}:function(e){if(p(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if(u)return a(e);if(s(e))return!1;var t=l.call(e);return!("[object Function]"!==t&&"[object GeneratorFunction]"!==t&&!/^\[object HTML/.test(t))&&a(e)}},2625:(e,t,r)=>{"use strict";var n,i=Object.prototype.toString,o=Function.prototype.toString,s=/^\s*(?:function)?\*/,a=r(1913)(),l=Object.getPrototypeOf;e.exports=function(e){if("function"!=typeof e)return!1;if(s.test(o.call(e)))return!0;if(!a)return"[object GeneratorFunction]"===i.call(e);if(!l)return!1;if(void 0===n){var t=function(){if(!a)return!1;try{return Function("return function*() {}")()}catch(e){}}();n=!!t&&l(t)}return l(e)===n}},8006:e=>{"use strict";e.exports=function(e){return e!=e}},7838:(e,t,r)=>{"use strict";var n=r(8498),i=r(1857),o=r(8006),s=r(1591),a=r(1641),l=n(s(),Number);i(l,{getPolyfill:s,implementation:o,shim:a}),e.exports=l},1591:(e,t,r)=>{"use strict";var n=r(8006);e.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:n}},1641:(e,t,r)=>{"use strict";var n=r(1857),i=r(1591);e.exports=function(){var e=i();return n(Number,{isNaN:e},{isNaN:function(){return Number.isNaN!==e}}),e}},6605:e=>{"use strict";const t=e=>null!==e&&"object"==typeof e&&"function"==typeof e.pipe;t.writable=e=>t(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState,t.readable=e=>t(e)&&!1!==e.readable&&"function"==typeof e._read&&"object"==typeof e._readableState,t.duplex=e=>t.writable(e)&&t.readable(e),t.transform=e=>t.duplex(e)&&"function"==typeof e._transform,e.exports=t},5943:(e,t,r)=>{"use strict";var n=r(2730);e.exports=function(e){return!!n(e)}},8311:(e,t,r)=>{r(3737),e.exports={encode:e=>(new TextEncoder).encode(e),decode:e=>(new TextDecoder).decode(e)}},8278:(e,t,r)=>{"use strict";var n=r(1616);e.exports=n((function(e){return e.message="\t".concat(e.message),e}))},8911:(e,t,r)=>{"use strict";var n=t.format=r(1616);t.levels=r(3084),Object.defineProperty(n,"align",{value:r(8278)}),Object.defineProperty(n,"cli",{value:r(8877)}),Object.defineProperty(n,"colorize",{value:r(452)}),Object.defineProperty(n,"combine",{value:r(4450)}),Object.defineProperty(n,"errors",{value:r(2244)}),Object.defineProperty(n,"json",{value:r(9181)}),Object.defineProperty(n,"label",{value:r(4673)}),Object.defineProperty(n,"logstash",{value:r(372)}),Object.defineProperty(n,"metadata",{value:r(5350)}),Object.defineProperty(n,"ms",{value:r(4659)}),Object.defineProperty(n,"padLevels",{value:r(8071)}),Object.defineProperty(n,"prettyPrint",{value:r(9121)}),Object.defineProperty(n,"printf",{value:r(7016)}),Object.defineProperty(n,"simple",{value:r(205)}),Object.defineProperty(n,"splat",{value:r(2695)}),Object.defineProperty(n,"timestamp",{value:r(8215)}),Object.defineProperty(n,"uncolorize",{value:r(1083)})},8877:(e,t,r)=>{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,s(n.key),n)}}function s(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:String(t)}var a=r(452).Colorizer,l=r(8071).Padder,u=r(4966),c=u.configs,p=u.MESSAGE,f=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i(this,e),t.levels||(t.levels=c.cli.levels),this.colorizer=new a(t),this.padder=new l(t),this.options=t}var t,r,n;return t=e,(r=[{key:"transform",value:function(e,t){return this.colorizer.transform(this.padder.transform(e,t),t),e[p]="".concat(e.level,":").concat(e.message),e}}])&&o(t.prototype,r),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();e.exports=function(e){return new f(e)},e.exports.Format=f},452:(e,t,r)=>{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,s(n.key),n)}}function s(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:String(t)}var a=r(1158),l=r(4966),u=l.LEVEL,c=l.MESSAGE;a.enabled=!0;var p=/\s+/,f=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i(this,e),t.colors&&this.addColors(t.colors),this.options=t}var t,r,n;return t=e,n=[{key:"addColors",value:function(t){var r=Object.keys(t).reduce((function(e,r){return e[r]=p.test(t[r])?t[r].split(p):t[r],e}),{});return e.allColors=Object.assign({},e.allColors||{},r),e.allColors}}],(r=[{key:"addColors",value:function(t){return e.addColors(t)}},{key:"colorize",value:function(t,r,n){if(void 0===n&&(n=r),!Array.isArray(e.allColors[t]))return a[e.allColors[t]](n);for(var i=0,o=e.allColors[t].length;i<o;i++)n=a[e.allColors[t][i]](n);return n}},{key:"transform",value:function(e,t){return t.all&&"string"==typeof e[c]&&(e[c]=this.colorize(e[u],e.level,e[c])),(t.level||t.all||!t.message)&&(e.level=this.colorize(e[u],e.level)),(t.all||t.message)&&(e.message=this.colorize(e[u],e.level,e.message)),e}}])&&o(t.prototype,r),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();e.exports=function(e){return new f(e)},e.exports.Colorizer=e.exports.Format=f},4450:(e,t,r)=>{"use strict";var n=r(1616);function i(e){if(e.every(o))return function(t){for(var r=t,n=0;n<e.length;n++)if(!(r=e[n].transform(r,e[n].options)))return!1;return r}}function o(e){if("function"!=typeof e.transform)throw new Error(["No transform function found on format. Did you create a format instance?","const myFormat = format(formatFn);","const instance = myFormat();"].join("\n"));return!0}e.exports=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var o=n(i(t)),s=o();return s.Format=o.Format,s},e.exports.cascade=i},2244:(e,t,r)=>{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t,r){var i;return i=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==n(i)?i:String(i))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o=r(1616),s=r(4966),a=s.LEVEL,l=s.MESSAGE;e.exports=o((function(e,t){var r=t.stack,n=t.cause;if(e instanceof Error){var o=Object.assign({},e,i(i(i({level:e.level},a,e[a]||e.level),"message",e.message),l,e[l]||e.message));return r&&(o.stack=e.stack),n&&(o.cause=e.cause),o}if(!(e.message instanceof Error))return e;var s=e.message;return Object.assign(e,s),e.message=s.message,e[l]=s.message,r&&(e.stack=s.stack),n&&(e.cause=s.cause),e}))},1616:e=>{"use strict";function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,n(i.key),i)}}function n(e){var r=function(e,r){if("object"!=t(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,r||"default");if("object"!=t(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}(e,"string");return"symbol"==t(r)?r:String(r)}function i(e,r){if(r&&("object"===t(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return o(e)}function o(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e){var t="function"==typeof Map?new Map:void 0;return(s=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return a(e,arguments,c(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),u(r,e)})(e)}function a(e,t,r){return(a=l()?Reflect.construct.bind():function(e,t,r){var n=[null];n.push.apply(n,t);var i=new(Function.bind.apply(e,n));return r&&u(i,r.prototype),i}).apply(null,arguments)}function l(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function u(e,t){return(u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(h,e);var t,n,s,a,p,f=(t=h,n=l(),function(){var e,r=c(t);if(n){var o=c(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return i(this,e)});function h(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h),t=f.call(this,"Format functions must be synchronous taking a two arguments: (info, opts)\nFound: ".concat(e.toString().split("\n")[0],"\n")),Error.captureStackTrace(o(t),h),t}return s=h,a&&r(s.prototype,a),p&&r(s,p),Object.defineProperty(s,"prototype",{writable:!1}),s}(s(Error));e.exports=function(e){if(e.length>2)throw new p(e);function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.options=e}function r(e){return new t(e)}return t.prototype.transform=e,r.Format=t,r}},9181:(e,t,r)=>{"use strict";var n=r(1616),i=r(4966).MESSAGE,o=r(1145);function s(e,t){return"bigint"==typeof t?t.toString():t}e.exports=n((function(e,t){var r=o.configure(t);return e[i]=r(e,t.replacer||s,t.space),e}))},4673:(e,t,r)=>{"use strict";var n=r(1616);e.exports=n((function(e,t){return t.message?(e.message="[".concat(t.label,"] ").concat(e.message),e):(e.label=t.label,e)}))},3084:(e,t,r)=>{"use strict";var n=r(452).Colorizer;e.exports=function(e){return n.addColors(e.colors||e),e}},372:(e,t,r)=>{"use strict";var n=r(1616),i=r(4966).MESSAGE,o=r(1145);e.exports=n((function(e){var t={};return e.message&&(t["@message"]=e.message,delete e.message),e.timestamp&&(t["@timestamp"]=e.timestamp,delete e.timestamp),t["@fields"]=e,e[i]=o(t),e}))},5350:(e,t,r)=>{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t,r){var i;return i=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==n(i)?i:String(i))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o=r(1616);function s(e,t,r){var n=t.reduce((function(t,r){return t[r]=e[r],delete e[r],t}),{}),o=Object.keys(e).reduce((function(t,r){return t[r]=e[r],delete e[r],t}),{});return Object.assign(e,n,i({},r,o)),e}function a(e,t,r){return e[r]=t.reduce((function(t,r){return t[r]=e[r],delete e[r],t}),{}),e}e.exports=o((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r="metadata";t.key&&(r=t.key);var n=[];return t.fillExcept||t.fillWith||(n.push("level"),n.push("message")),t.fillExcept&&(n=t.fillExcept),n.length>0?s(e,n,r):t.fillWith?a(e,t.fillWith,r):e}))},4659:(e,t,r)=>{"use strict";var n=r(1616),i=r(7250);e.exports=n((function(e){var t=+new Date;return(void 0).diff=t-((void 0).prevTime||t),(void 0).prevTime=t,e.ms="+".concat(i((void 0).diff)),e}))},8071:(e,t,r)=>{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return o(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,l(n.key),n)}}function l(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:String(t)}var u=r(4966),c=u.configs,p=u.LEVEL,f=u.MESSAGE,h=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{levels:c.npm.levels};s(this,e),this.paddings=e.paddingForLevels(t.levels,t.filler),this.options=t}var t,r,n;return t=e,n=[{key:"getLongestLevel",value:function(e){var t=Object.keys(e).map((function(e){return e.length}));return Math.max.apply(Math,i(t))}},{key:"paddingForLevel",value:function(e,t,r){var n=r+1-e.length,i=Math.floor(n/t.length);return"".concat(t).concat(t.repeat(i)).slice(0,n)}},{key:"paddingForLevels",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" ",n=e.getLongestLevel(t);return Object.keys(t).reduce((function(t,i){return t[i]=e.paddingForLevel(i,r,n),t}),{})}}],(r=[{key:"transform",value:function(e,t){return e.message="".concat(this.paddings[e[p]]).concat(e.message),e[f]&&(e[f]="".concat(this.paddings[e[p]]).concat(e[f])),e}}])&&a(t.prototype,r),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();e.exports=function(e){return new h(e)},e.exports.Padder=e.exports.Format=h},9121:(e,t,r)=>{"use strict";var n=r(9208).inspect,i=r(1616),o=r(4966),s=o.LEVEL,a=o.MESSAGE,l=o.SPLAT;e.exports=i((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=Object.assign({},e);return delete r[s],delete r[a],delete r[l],e[a]=n(r,!1,t.depth||null,t.colorize),e}))},7016:(e,t,r)=>{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,o(n.key),n)}}function o(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:String(t)}var s=r(4966).MESSAGE,a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.template=t}var t,r,n;return t=e,(r=[{key:"transform",value:function(e){return e[s]=this.template(e),e}}])&&i(t.prototype,r),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();e.exports=function(e){return new a(e)},e.exports.Printf=e.exports.Format=a},205:(e,t,r)=>{"use strict";var n=r(1616),i=r(4966).MESSAGE,o=r(1145);e.exports=n((function(e){var t=o(Object.assign({},e,{level:void 0,message:void 0,splat:void 0})),r=e.padding&&e.padding[e.level]||"";return e[i]="{}"!==t?"".concat(e.level,":").concat(r," ").concat(e.message," ").concat(t):"".concat(e.level,":").concat(r," ").concat(e.message),e}))},2695:(e,t,r)=>{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return o(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,a(n.key),n)}}function a(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:String(t)}var l=r(9208),u=r(4966).SPLAT,c=/%[scdjifoO%]/g,p=/%%/g,f=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=t}var t,r,n;return t=e,(r=[{key:"_splat",value:function(e,t){var r=e.message,n=e[u]||e.splat||[],o=r.match(p),s=o&&o.length||0,a=t.length-s-n.length,c=a<0?n.splice(a,-1*a):[],f=c.length;if(f)for(var h=0;h<f;h++)Object.assign(e,c[h]);return e.message=l.format.apply(l,[r].concat(i(n))),e}},{key:"transform",value:function(e){var t=e.message,r=e[u]||e.splat;if(!r||!r.length)return e;var n=t&&t.match&&t.match(c);if(!n&&(r||r.length)){var i=r.length>1?r.splice(0):r,o=i.length;if(o)for(var s=0;s<o;s++)Object.assign(e,i[s]);return e}return n?this._splat(e,n):e}}])&&s(t.prototype,r),n&&s(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();e.exports=function(e){return new f(e)}},8215:(e,t,r)=>{"use strict";var n=r(4798),i=r(1616);e.exports=i((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.format&&(e.timestamp="function"==typeof t.format?t.format():n.format(new Date,t.format)),e.timestamp||(e.timestamp=(new Date).toISOString()),t.alias&&(e[t.alias]=e.timestamp),e}))},1083:(e,t,r)=>{"use strict";var n=r(1158),i=r(1616),o=r(4966).MESSAGE;e.exports=i((function(e,t){return!1!==t.level&&(e.level=n.strip(e.level)),!1!==t.message&&(e.message=n.strip(String(e.message))),!1!==t.raw&&e[o]&&(e[o]=n.strip(String(e[o]))),e}))},9327:e=>{"use strict";class t extends Error{constructor(e){super(`Format functions must be synchronous taking a two arguments: (info, opts)\nFound: ${e.toString().split("\n")[0]}\n`),Error.captureStackTrace(this,t)}}e.exports=e=>{if(e.length>2)throw new t(e);function r(e={}){this.options=e}function n(e){return new r(e)}return r.prototype.transform=e,n.Format=r,n}},2598:(e,t,r)=>{"use strict";const n=r(9327),{MESSAGE:i}=r(4966),o=r(1145);function s(e,t){return"bigint"==typeof t?t.toString():t}e.exports=n((e,t)=>{const r=o.configure(t);return e[i]=r(e,t.replacer||s,t.space),e})},7250:e=>{var t=1e3,r=6e4,n=60*r,i=24*n;function o(e,t,r,n){var i=t>=1.5*r;return Math.round(e/r)+" "+n+(i?"s":"")}e.exports=function(e,s){s=s||{};var a=typeof e;if("string"===a&&e.length>0)return function(e){if((e=String(e)).length>100)return;var o=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!o)return;var s=parseFloat(o[1]);switch((o[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*s;case"weeks":case"week":case"w":return 6048e5*s;case"days":case"day":case"d":return s*i;case"hours":case"hour":case"hrs":case"hr":case"h":return s*n;case"minutes":case"minute":case"mins":case"min":case"m":return s*r;case"seconds":case"second":case"secs":case"sec":case"s":return s*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}(e);if("number"===a&&isFinite(e))return s.long?function(e){var s=Math.abs(e);if(s>=i)return o(e,s,i,"day");if(s>=n)return o(e,s,n,"hour");if(s>=r)return o(e,s,r,"minute");if(s>=t)return o(e,s,t,"second");return e+" ms"}(e):function(e){var o=Math.abs(e);if(o>=i)return Math.round(e/i)+"d";if(o>=n)return Math.round(e/n)+"h";if(o>=r)return Math.round(e/r)+"m";if(o>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},8660:(e,t,r)=>{var n="function"==typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=n&&i&&"function"==typeof i.get?i.get:null,s=n&&Map.prototype.forEach,a="function"==typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&a?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=a&&l&&"function"==typeof l.get?l.get:null,c=a&&Set.prototype.forEach,p="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,f="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,h="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,d=Boolean.prototype.valueOf,g=Object.prototype.toString,y=Function.prototype.toString,v=String.prototype.match,m=String.prototype.slice,b=String.prototype.replace,w=String.prototype.toUpperCase,S=String.prototype.toLowerCase,_=RegExp.prototype.test,E=Array.prototype.concat,O=Array.prototype.join,R=Array.prototype.slice,T=Math.floor,j="function"==typeof BigInt?BigInt.prototype.valueOf:null,P=Object.getOwnPropertySymbols,x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,A="function"==typeof Symbol&&"object"==typeof Symbol.iterator,I="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===A||"symbol")?Symbol.toStringTag:null,C=Object.prototype.propertyIsEnumerable,k=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function M(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||_.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var n=e<0?-T(-e):T(e);if(n!==e){var i=String(n),o=m.call(t,i.length+1);return b.call(i,r,"$&_")+"."+b.call(b.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(t,r,"$&_")}var F=r(6973),B=F.custom,D=G(B)?B:null;function L(e,t,r){var n="double"===(r.quoteStyle||t)?'"':"'";return n+e+n}function N(e){return b.call(String(e),/"/g,"&quot;")}function z(e){return!("[object Array]"!==q(e)||I&&"object"==typeof e&&I in e)}function U(e){return!("[object RegExp]"!==q(e)||I&&"object"==typeof e&&I in e)}function G(e){if(A)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!x)return!1;try{return x.call(e),!0}catch(e){}return!1}e.exports=function e(t,n,i,a){var l=n||{};if(W(l,"quoteStyle")&&"single"!==l.quoteStyle&&"double"!==l.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(W(l,"maxStringLength")&&("number"==typeof l.maxStringLength?l.maxStringLength<0&&l.maxStringLength!==1/0:null!==l.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var g=!W(l,"customInspect")||l.customInspect;if("boolean"!=typeof g&&"symbol"!==g)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(W(l,"indent")&&null!==l.indent&&"\t"!==l.indent&&!(parseInt(l.indent,10)===l.indent&&l.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(W(l,"numericSeparator")&&"boolean"!=typeof l.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var w=l.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return function e(t,r){if(t.length>r.maxStringLength){var n=t.length-r.maxStringLength,i="... "+n+" more character"+(n>1?"s":"");return e(m.call(t,0,r.maxStringLength),r)+i}return L(b.call(b.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,$),"single",r)}(t,l);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var _=String(t);return w?M(t,_):_}if("bigint"==typeof t){var T=String(t)+"n";return w?M(t,T):T}var P=void 0===l.depth?5:l.depth;if(void 0===i&&(i=0),i>=P&&P>0&&"object"==typeof t)return z(t)?"[Array]":"[Object]";var B=function(e,t){var r;if("\t"===e.indent)r="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;r=O.call(Array(e.indent+1)," ")}return{base:r,prev:O.call(Array(t+1),r)}}(l,i);if(void 0===a)a=[];else if(H(a,t)>=0)return"[Circular]";function V(t,r,n){if(r&&(a=R.call(a)).push(r),n){var o={depth:l.depth};return W(l,"quoteStyle")&&(o.quoteStyle=l.quoteStyle),e(t,o,i+1,a)}return e(t,l,i+1,a)}if("function"==typeof t&&!U(t)){var Q=function(e){if(e.name)return e.name;var t=v.call(y.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),ee=X(t,V);return"[Function"+(Q?": "+Q:" (anonymous)")+"]"+(ee.length>0?" { "+O.call(ee,", ")+" }":"")}if(G(t)){var te=A?b.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):x.call(t);return"object"!=typeof t||A?te:Z(te)}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(t)){for(var re="<"+S.call(String(t.nodeName)),ne=t.attributes||[],ie=0;ie<ne.length;ie++)re+=" "+ne[ie].name+"="+L(N(ne[ie].value),"double",l);return re+=">",t.childNodes&&t.childNodes.length&&(re+="..."),re+="</"+S.call(String(t.nodeName))+">"}if(z(t)){if(0===t.length)return"[]";var oe=X(t,V);return B&&!function(e){for(var t=0;t<e.length;t++)if(H(e[t],"\n")>=0)return!1;return!0}(oe)?"["+K(oe,B)+"]":"[ "+O.call(oe,", ")+" ]"}if(function(e){return!("[object Error]"!==q(e)||I&&"object"==typeof e&&I in e)}(t)){var se=X(t,V);return"cause"in Error.prototype||!("cause"in t)||C.call(t,"cause")?0===se.length?"["+String(t)+"]":"{ ["+String(t)+"] "+O.call(se,", ")+" }":"{ ["+String(t)+"] "+O.call(E.call("[cause]: "+V(t.cause),se),", ")+" }"}if("object"==typeof t&&g){if(D&&"function"==typeof t[D]&&F)return F(t,{depth:P-i});if("symbol"!==g&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!o||!e||"object"!=typeof e)return!1;try{o.call(e);try{u.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var ae=[];return s&&s.call(t,(function(e,r){ae.push(V(r,t,!0)+" => "+V(e,t))})),J("Map",o.call(t),ae,B)}if(function(e){if(!u||!e||"object"!=typeof e)return!1;try{u.call(e);try{o.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var le=[];return c&&c.call(t,(function(e){le.push(V(e,t))})),J("Set",u.call(t),le,B)}if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{p.call(e,p);try{f.call(e,f)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return Y("WeakMap");if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{f.call(e,f);try{p.call(e,p)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return Y("WeakSet");if(function(e){if(!h||!e||"object"!=typeof e)return!1;try{return h.call(e),!0}catch(e){}return!1}(t))return Y("WeakRef");if(function(e){return!("[object Number]"!==q(e)||I&&"object"==typeof e&&I in e)}(t))return Z(V(Number(t)));if(function(e){if(!e||"object"!=typeof e||!j)return!1;try{return j.call(e),!0}catch(e){}return!1}(t))return Z(V(j.call(t)));if(function(e){return!("[object Boolean]"!==q(e)||I&&"object"==typeof e&&I in e)}(t))return Z(d.call(t));if(function(e){return!("[object String]"!==q(e)||I&&"object"==typeof e&&I in e)}(t))return Z(V(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||void 0!==r.g&&t===r.g)return"{ [object globalThis] }";if(!function(e){return!("[object Date]"!==q(e)||I&&"object"==typeof e&&I in e)}(t)&&!U(t)){var ue=X(t,V),ce=k?k(t)===Object.prototype:t instanceof Object||t.constructor===Object,pe=t instanceof Object?"":"null prototype",fe=!ce&&I&&Object(t)===t&&I in t?m.call(q(t),8,-1):pe?"Object":"",he=(ce||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(fe||pe?"["+O.call(E.call([],fe||[],pe||[]),": ")+"] ":"");return 0===ue.length?he+"{}":B?he+"{"+K(ue,B)+"}":he+"{ "+O.call(ue,", ")+" }"}return String(t)};var V=Object.prototype.hasOwnProperty||function(e){return e in this};function W(e,t){return V.call(e,t)}function q(e){return g.call(e)}function H(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function $(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+w.call(t.toString(16))}function Z(e){return"Object("+e+")"}function Y(e){return e+" { ? }"}function J(e,t,r,n){return e+" ("+t+") {"+(n?K(r,n):O.call(r,", "))+"}"}function K(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+O.call(e,","+r)+"\n"+t.prev}function X(e,t){var r=z(e),n=[];if(r){n.length=e.length;for(var i=0;i<e.length;i++)n[i]=W(e,i)?t(e[i],e):""}var o,s="function"==typeof P?P(e):[];if(A){o={};for(var a=0;a<s.length;a++)o["$"+s[a]]=s[a]}for(var l in e)W(e,l)&&(r&&String(Number(l))===l&&l<e.length||A&&o["$"+l]instanceof Symbol||(_.call(/[^\w$]/,l)?n.push(t(l,e)+": "+t(e[l],e)):n.push(l+": "+t(e[l],e))));if("function"==typeof P)for(var u=0;u<s.length;u++)C.call(e,s[u])&&n.push("["+t(s[u])+"]: "+t(e[s[u]],e));return n}},2372:e=>{"use strict";var t=function(e){return e!=e};e.exports=function(e,r){return 0===e&&0===r?1/e==1/r:e===r||!(!t(e)||!t(r))}},5968:(e,t,r)=>{"use strict";var n=r(1857),i=r(8498),o=r(2372),s=r(1937),a=r(5087),l=i(s(),Object);n(l,{getPolyfill:s,implementation:o,shim:a}),e.exports=l},1937:(e,t,r)=>{"use strict";var n=r(2372);e.exports=function(){return"function"==typeof Object.is?Object.is:n}},5087:(e,t,r)=>{"use strict";var n=r(1937),i=r(1857);e.exports=function(){var e=n();return i(Object,{is:e},{is:function(){return Object.is!==e}}),e}},8160:(e,t,r)=>{"use strict";var n;if(!Object.keys){var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,s=r(968),a=Object.prototype.propertyIsEnumerable,l=!a.call({toString:null},"toString"),u=a.call((function(){}),"prototype"),c=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],p=function(e){var t=e.constructor;return t&&t.prototype===e},f={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},h=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!f["$"+e]&&i.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{p(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();n=function(e){var t=null!==e&&"object"==typeof e,r="[object Function]"===o.call(e),n=s(e),a=t&&"[object String]"===o.call(e),f=[];if(!t&&!r&&!n)throw new TypeError("Object.keys called on a non-object");var d=u&&r;if(a&&e.length>0&&!i.call(e,0))for(var g=0;g<e.length;++g)f.push(String(g));if(n&&e.length>0)for(var y=0;y<e.length;++y)f.push(String(y));else for(var v in e)d&&"prototype"===v||!i.call(e,v)||f.push(String(v));if(l)for(var m=function(e){if("undefined"==typeof window||!h)return p(e);try{return p(e)}catch(e){return!1}}(e),b=0;b<c.length;++b)m&&"constructor"===c[b]||!i.call(e,c[b])||f.push(c[b]);return f}}e.exports=n},9228:(e,t,r)=>{"use strict";var n=Array.prototype.slice,i=r(968),o=Object.keys,s=o?function(e){return o(e)}:r(8160),a=Object.keys;s.shim=function(){Object.keys?function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2)||(Object.keys=function(e){return i(e)?a(n.call(e)):a(e)}):Object.keys=s;return Object.keys||s},e.exports=s},968:e=>{"use strict";var t=Object.prototype.toString;e.exports=function(e){var r=t.call(e),n="[object Arguments]"===r;return n||(n="[object Array]"!==r&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),n}},5164:(e,t,r)=>{"use strict";var n=r(9228),i=r(2908)(),o=r(9818),s=Object,a=o("Array.prototype.push"),l=o("Object.prototype.propertyIsEnumerable"),u=i?Object.getOwnPropertySymbols:null;e.exports=function(e,t){if(null==e)throw new TypeError("target must be an object");var r=s(e);if(1===arguments.length)return r;for(var o=1;o<arguments.length;++o){var c=s(arguments[o]),p=n(c),f=i&&(Object.getOwnPropertySymbols||u);if(f)for(var h=f(c),d=0;d<h.length;++d){var g=h[d];l(c,g)&&a(p,g)}for(var y=0;y<p.length;++y){var v=p[y];if(l(c,v)){var m=c[v];r[v]=m}}}return r}},3225:(e,t,r)=>{"use strict";var n=r(5164);e.exports=function(){return Object.assign?function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),r={},n=0;n<t.length;++n)r[t[n]]=t[n];var i=Object.assign({},r),o="";for(var s in i)o+=s;return e!==o}()||function(){if(!Object.assign||!Object.preventExtensions)return!1;var e=Object.preventExtensions({1:2});try{Object.assign(e,"xy")}catch(t){return"y"===e[1]}return!1}()?n:Object.assign:n}},960:(e,t,r)=>{"use strict";var n=r(9827);e.exports=function(e){var t,r=0;function i(){return r||(r=1,t=e.apply(this,arguments),e=null),t}return i.displayName=n(e),i}},2213:(e,t)=>{t.endianness=function(){return"LE"},t.hostname=function(){return"undefined"!=typeof location?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"undefined"!=typeof navigator?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="\n",t.homedir=function(){return"/"}},1824:(e,t)=>{"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var r=t.shift();if(r){if("object"!=typeof r)throw new TypeError(r+"must be non-object");for(var i in r)n(r,i)&&(e[i]=r[i])}}return e},t.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var i={arraySet:function(e,t,r,n,i){if(t.subarray&&e.subarray)e.set(t.subarray(r,r+n),i);else for(var o=0;o<n;o++)e[i+o]=t[r+o]},flattenChunks:function(e){var t,r,n,i,o,s;for(n=0,t=0,r=e.length;t<r;t++)n+=e[t].length;for(s=new Uint8Array(n),i=0,t=0,r=e.length;t<r;t++)o=e[t],s.set(o,i),i+=o.length;return s}},o={arraySet:function(e,t,r,n,i){for(var o=0;o<n;o++)e[i+o]=t[r+o]},flattenChunks:function(e){return[].concat.apply([],e)}};t.setTyped=function(e){e?(t.Buf8=Uint8Array,t.Buf16=Uint16Array,t.Buf32=Int32Array,t.assign(t,i)):(t.Buf8=Array,t.Buf16=Array,t.Buf32=Array,t.assign(t,o))},t.setTyped(r)},6904:e=>{"use strict";e.exports=function(e,t,r,n){for(var i=65535&e|0,o=e>>>16&65535|0,s=0;0!==r;){r-=s=r>2e3?2e3:r;do{o=o+(i=i+t[n++]|0)|0}while(--s);i%=65521,o%=65521}return i|o<<16|0}},7200:e=>{"use strict";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}},2506:e=>{"use strict";var t=function(){for(var e,t=[],r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t}();e.exports=function(e,r,n,i){var o=t,s=i+n;e^=-1;for(var a=i;a<s;a++)e=e>>>8^o[255&(e^r[a])];return-1^e}},6446:(e,t,r)=>{"use strict";var n,i=r(1824),o=r(9708),s=r(6904),a=r(2506),l=r(2817);function u(e,t){return e.msg=l[t],t}function c(e){return(e<<1)-(e>4?9:0)}function p(e){for(var t=e.length;--t>=0;)e[t]=0}function f(e){var t=e.state,r=t.pending;r>e.avail_out&&(r=e.avail_out),0!==r&&(i.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,0===t.pending&&(t.pending_out=0))}function h(e,t){o._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,f(e.strm)}function d(e,t){e.pending_buf[e.pending++]=t}function g(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function y(e,t){var r,n,i=e.max_chain_length,o=e.strstart,s=e.prev_length,a=e.nice_match,l=e.strstart>e.w_size-262?e.strstart-(e.w_size-262):0,u=e.window,c=e.w_mask,p=e.prev,f=e.strstart+258,h=u[o+s-1],d=u[o+s];e.prev_length>=e.good_match&&(i>>=2),a>e.lookahead&&(a=e.lookahead);do{if(u[(r=t)+s]===d&&u[r+s-1]===h&&u[r]===u[o]&&u[++r]===u[o+1]){o+=2,r++;do{}while(u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&o<f);if(n=258-(f-o),o=f-258,n>s){if(e.match_start=t,s=n,n>=a)break;h=u[o+s-1],d=u[o+s]}}}while((t=p[t&c])>l&&0!=--i);return s<=e.lookahead?s:e.lookahead}function v(e){var t,r,n,o,l,u,c,p,f,h,d=e.w_size;do{if(o=e.window_size-e.lookahead-e.strstart,e.strstart>=d+(d-262)){i.arraySet(e.window,e.window,d,d,0),e.match_start-=d,e.strstart-=d,e.block_start-=d,t=r=e.hash_size;do{n=e.head[--t],e.head[t]=n>=d?n-d:0}while(--r);t=r=d;do{n=e.prev[--t],e.prev[t]=n>=d?n-d:0}while(--r);o+=d}if(0===e.strm.avail_in)break;if(u=e.strm,c=e.window,p=e.strstart+e.lookahead,f=o,h=void 0,(h=u.avail_in)>f&&(h=f),r=0===h?0:(u.avail_in-=h,i.arraySet(c,u.input,u.next_in,h,p),1===u.state.wrap?u.adler=s(u.adler,c,h,p):2===u.state.wrap&&(u.adler=a(u.adler,c,h,p)),u.next_in+=h,u.total_in+=h,h),e.lookahead+=r,e.lookahead+e.insert>=3)for(l=e.strstart-e.insert,e.ins_h=e.window[l],e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+3-1])&e.hash_mask,e.prev[l&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=l,l++,e.insert--,!(e.lookahead+e.insert<3)););}while(e.lookahead<262&&0!==e.strm.avail_in)}function m(e,t){for(var r,n;;){if(e.lookahead<262){if(v(e),e.lookahead<262&&0===t)return 1;if(0===e.lookahead)break}if(r=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==r&&e.strstart-r<=e.w_size-262&&(e.match_length=y(e,r)),e.match_length>=3)if(n=o._tr_tally(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){e.match_length--;do{e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart}while(0!=--e.match_length);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else n=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(n&&(h(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<2?e.strstart:2,4===t?(h(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(h(e,!1),0===e.strm.avail_out)?1:2}function b(e,t){for(var r,n,i;;){if(e.lookahead<262){if(v(e),e.lookahead<262&&0===t)return 1;if(0===e.lookahead)break}if(r=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=2,0!==r&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-262&&(e.match_length=y(e,r),e.match_length<=5&&(1===e.strategy||3===e.match_length&&e.strstart-e.match_start>4096)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-3,n=o._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=i&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)}while(0!=--e.prev_length);if(e.match_available=0,e.match_length=2,e.strstart++,n&&(h(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if((n=o._tr_tally(e,0,e.window[e.strstart-1]))&&h(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(n=o._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<2?e.strstart:2,4===t?(h(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(h(e,!1),0===e.strm.avail_out)?1:2}function w(e,t,r,n,i){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=n,this.func=i}function S(){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),p(this.dyn_ltree),p(this.dyn_dtree),p(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),p(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(573),p(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 _(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=2,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?42:113,e.adler=2===t.wrap?0:1,t.last_flush=0,o._tr_init(t),0):u(e,-2)}function E(e){var t,r=_(e);return 0===r&&((t=e.state).window_size=2*t.w_size,p(t.head),t.max_lazy_match=n[t.level].max_lazy,t.good_match=n[t.level].good_length,t.nice_match=n[t.level].nice_length,t.max_chain_length=n[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=2,t.match_available=0,t.ins_h=0),r}function O(e,t,r,n,o,s){if(!e)return-2;var a=1;if(-1===t&&(t=6),n<0?(a=0,n=-n):n>15&&(a=2,n-=16),o<1||o>9||8!==r||n<8||n>15||t<0||t>9||s<0||s>4)return u(e,-2);8===n&&(n=9);var l=new S;return e.state=l,l.strm=e,l.wrap=a,l.gzhead=null,l.w_bits=n,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=o+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+3-1)/3),l.window=new i.Buf8(2*l.w_size),l.head=new i.Buf16(l.hash_size),l.prev=new i.Buf16(l.w_size),l.lit_bufsize=1<<o+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=new i.Buf8(l.pending_buf_size),l.d_buf=1*l.lit_bufsize,l.l_buf=3*l.lit_bufsize,l.level=t,l.strategy=s,l.method=r,E(e)}n=[new w(0,0,0,0,(function(e,t){var r=65535;for(r>e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(v(e),0===e.lookahead&&0===t)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var n=e.block_start+r;if((0===e.strstart||e.strstart>=n)&&(e.lookahead=e.strstart-n,e.strstart=n,h(e,!1),0===e.strm.avail_out))return 1;if(e.strstart-e.block_start>=e.w_size-262&&(h(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(h(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(h(e,!1),e.strm.avail_out),1)})),new w(4,4,8,4,m),new w(4,5,16,8,m),new w(4,6,32,32,m),new w(4,4,16,16,b),new w(8,16,32,32,b),new w(8,16,128,128,b),new w(8,32,128,256,b),new w(32,128,258,1024,b),new w(32,258,258,4096,b)],t.deflateInit=function(e,t){return O(e,t,8,15,8,0)},t.deflateInit2=O,t.deflateReset=E,t.deflateResetKeep=_,t.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?-2:(e.state.gzhead=t,0):-2},t.deflate=function(e,t){var r,i,s,l;if(!e||!e.state||t>5||t<0)return e?u(e,-2):-2;if(i=e.state,!e.output||!e.input&&0!==e.avail_in||666===i.status&&4!==t)return u(e,0===e.avail_out?-5:-2);if(i.strm=e,r=i.last_flush,i.last_flush=t,42===i.status)if(2===i.wrap)e.adler=0,d(i,31),d(i,139),d(i,8),i.gzhead?(d(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),d(i,255&i.gzhead.time),d(i,i.gzhead.time>>8&255),d(i,i.gzhead.time>>16&255),d(i,i.gzhead.time>>24&255),d(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),d(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(d(i,255&i.gzhead.extra.length),d(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=a(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(d(i,0),d(i,0),d(i,0),d(i,0),d(i,0),d(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),d(i,3),i.status=113);else{var y=8+(i.w_bits-8<<4)<<8;y|=(i.strategy>=2||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(y|=32),y+=31-y%31,i.status=113,g(i,y),0!==i.strstart&&(g(i,e.adler>>>16),g(i,65535&e.adler)),e.adler=1}if(69===i.status)if(i.gzhead.extra){for(s=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>s&&(e.adler=a(e.adler,i.pending_buf,i.pending-s,s)),f(e),s=i.pending,i.pending!==i.pending_buf_size));)d(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>s&&(e.adler=a(e.adler,i.pending_buf,i.pending-s,s)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){s=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>s&&(e.adler=a(e.adler,i.pending_buf,i.pending-s,s)),f(e),s=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,d(i,l)}while(0!==l);i.gzhead.hcrc&&i.pending>s&&(e.adler=a(e.adler,i.pending_buf,i.pending-s,s)),0===l&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){s=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>s&&(e.adler=a(e.adler,i.pending_buf,i.pending-s,s)),f(e),s=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,d(i,l)}while(0!==l);i.gzhead.hcrc&&i.pending>s&&(e.adler=a(e.adler,i.pending_buf,i.pending-s,s)),0===l&&(i.status=103)}else i.status=103;if(103===i.status&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&f(e),i.pending+2<=i.pending_buf_size&&(d(i,255&e.adler),d(i,e.adler>>8&255),e.adler=0,i.status=113)):i.status=113),0!==i.pending){if(f(e),0===e.avail_out)return i.last_flush=-1,0}else if(0===e.avail_in&&c(t)<=c(r)&&4!==t)return u(e,-5);if(666===i.status&&0!==e.avail_in)return u(e,-5);if(0!==e.avail_in||0!==i.lookahead||0!==t&&666!==i.status){var m=2===i.strategy?function(e,t){for(var r;;){if(0===e.lookahead&&(v(e),0===e.lookahead)){if(0===t)return 1;break}if(e.match_length=0,r=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(h(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(h(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(h(e,!1),0===e.strm.avail_out)?1:2}(i,t):3===i.strategy?function(e,t){for(var r,n,i,s,a=e.window;;){if(e.lookahead<=258){if(v(e),e.lookahead<=258&&0===t)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&e.strstart>0&&(n=a[i=e.strstart-1])===a[++i]&&n===a[++i]&&n===a[++i]){s=e.strstart+258;do{}while(n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&i<s);e.match_length=258-(s-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(r=o._tr_tally(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(h(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(h(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(h(e,!1),0===e.strm.avail_out)?1:2}(i,t):n[i.level].func(i,t);if(3!==m&&4!==m||(i.status=666),1===m||3===m)return 0===e.avail_out&&(i.last_flush=-1),0;if(2===m&&(1===t?o._tr_align(i):5!==t&&(o._tr_stored_block(i,0,0,!1),3===t&&(p(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),f(e),0===e.avail_out))return i.last_flush=-1,0}return 4!==t?0:i.wrap<=0?1:(2===i.wrap?(d(i,255&e.adler),d(i,e.adler>>8&255),d(i,e.adler>>16&255),d(i,e.adler>>24&255),d(i,255&e.total_in),d(i,e.total_in>>8&255),d(i,e.total_in>>16&255),d(i,e.total_in>>24&255)):(g(i,e.adler>>>16),g(i,65535&e.adler)),f(e),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?0:1)},t.deflateEnd=function(e){var t;return e&&e.state?42!==(t=e.state.status)&&69!==t&&73!==t&&91!==t&&103!==t&&113!==t&&666!==t?u(e,-2):(e.state=null,113===t?u(e,-3):0):-2},t.deflateSetDictionary=function(e,t){var r,n,o,a,l,u,c,f,h=t.length;if(!e||!e.state)return-2;if(2===(a=(r=e.state).wrap)||1===a&&42!==r.status||r.lookahead)return-2;for(1===a&&(e.adler=s(e.adler,t,h,0)),r.wrap=0,h>=r.w_size&&(0===a&&(p(r.head),r.strstart=0,r.block_start=0,r.insert=0),f=new i.Buf8(r.w_size),i.arraySet(f,t,h-r.w_size,r.w_size,0),t=f,h=r.w_size),l=e.avail_in,u=e.next_in,c=e.input,e.avail_in=h,e.next_in=0,e.input=t,v(r);r.lookahead>=3;){n=r.strstart,o=r.lookahead-2;do{r.ins_h=(r.ins_h<<r.hash_shift^r.window[n+3-1])&r.hash_mask,r.prev[n&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=n,n++}while(--o);r.strstart=n,r.lookahead=2,v(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=2,r.match_available=0,e.next_in=u,e.input=c,e.avail_in=l,r.wrap=a,0},t.deflateInfo="pako deflate (from Nodeca project)"},2128:e=>{"use strict";e.exports=function(e,t){var r,n,i,o,s,a,l,u,c,p,f,h,d,g,y,v,m,b,w,S,_,E,O,R,T;r=e.state,n=e.next_in,R=e.input,i=n+(e.avail_in-5),o=e.next_out,T=e.output,s=o-(t-e.avail_out),a=o+(e.avail_out-257),l=r.dmax,u=r.wsize,c=r.whave,p=r.wnext,f=r.window,h=r.hold,d=r.bits,g=r.lencode,y=r.distcode,v=(1<<r.lenbits)-1,m=(1<<r.distbits)-1;e:do{d<15&&(h+=R[n++]<<d,d+=8,h+=R[n++]<<d,d+=8),b=g[h&v];t:for(;;){if(h>>>=w=b>>>24,d-=w,0===(w=b>>>16&255))T[o++]=65535&b;else{if(!(16&w)){if(0==(64&w)){b=g[(65535&b)+(h&(1<<w)-1)];continue t}if(32&w){r.mode=12;break e}e.msg="invalid literal/length code",r.mode=30;break e}S=65535&b,(w&=15)&&(d<w&&(h+=R[n++]<<d,d+=8),S+=h&(1<<w)-1,h>>>=w,d-=w),d<15&&(h+=R[n++]<<d,d+=8,h+=R[n++]<<d,d+=8),b=y[h&m];r:for(;;){if(h>>>=w=b>>>24,d-=w,!(16&(w=b>>>16&255))){if(0==(64&w)){b=y[(65535&b)+(h&(1<<w)-1)];continue r}e.msg="invalid distance code",r.mode=30;break e}if(_=65535&b,d<(w&=15)&&(h+=R[n++]<<d,(d+=8)<w&&(h+=R[n++]<<d,d+=8)),(_+=h&(1<<w)-1)>l){e.msg="invalid distance too far back",r.mode=30;break e}if(h>>>=w,d-=w,_>(w=o-s)){if((w=_-w)>c&&r.sane){e.msg="invalid distance too far back",r.mode=30;break e}if(E=0,O=f,0===p){if(E+=u-w,w<S){S-=w;do{T[o++]=f[E++]}while(--w);E=o-_,O=T}}else if(p<w){if(E+=u+p-w,(w-=p)<S){S-=w;do{T[o++]=f[E++]}while(--w);if(E=0,p<S){S-=w=p;do{T[o++]=f[E++]}while(--w);E=o-_,O=T}}}else if(E+=p-w,w<S){S-=w;do{T[o++]=f[E++]}while(--w);E=o-_,O=T}for(;S>2;)T[o++]=O[E++],T[o++]=O[E++],T[o++]=O[E++],S-=3;S&&(T[o++]=O[E++],S>1&&(T[o++]=O[E++]))}else{E=o-_;do{T[o++]=T[E++],T[o++]=T[E++],T[o++]=T[E++],S-=3}while(S>2);S&&(T[o++]=T[E++],S>1&&(T[o++]=T[E++]))}break}}break}}while(n<i&&o<a);n-=S=d>>3,h&=(1<<(d-=S<<3))-1,e.next_in=n,e.next_out=o,e.avail_in=n<i?i-n+5:5-(n-i),e.avail_out=o<a?a-o+257:257-(o-a),r.hold=h,r.bits=d}},8142:(e,t,r)=>{"use strict";var n=r(1824),i=r(6904),o=r(2506),s=r(2128),a=r(9673);function l(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<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 c(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=1,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new n.Buf32(852),t.distcode=t.distdyn=new n.Buf32(592),t.sane=1,t.back=-1,0):-2}function p(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,c(e)):-2}function f(e,t){var r,n;return e&&e.state?(n=e.state,t<0?(r=0,t=-t):(r=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?-2:(null!==n.window&&n.wbits!==t&&(n.window=null),n.wrap=r,n.wbits=t,p(e))):-2}function h(e,t){var r,n;return e?(n=new u,e.state=n,n.window=null,0!==(r=f(e,t))&&(e.state=null),r):-2}var d,g,y=!0;function v(e){if(y){var t;for(d=new n.Buf32(512),g=new n.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(a(1,e.lens,0,288,d,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;a(2,e.lens,0,32,g,0,e.work,{bits:5}),y=!1}e.lencode=d,e.lenbits=9,e.distcode=g,e.distbits=5}function m(e,t,r,i){var o,s=e.state;return null===s.window&&(s.wsize=1<<s.wbits,s.wnext=0,s.whave=0,s.window=new n.Buf8(s.wsize)),i>=s.wsize?(n.arraySet(s.window,t,r-s.wsize,s.wsize,0),s.wnext=0,s.whave=s.wsize):((o=s.wsize-s.wnext)>i&&(o=i),n.arraySet(s.window,t,r-i,o,s.wnext),(i-=o)?(n.arraySet(s.window,t,r-i,i,0),s.wnext=i,s.whave=s.wsize):(s.wnext+=o,s.wnext===s.wsize&&(s.wnext=0),s.whave<s.wsize&&(s.whave+=o))),0}t.inflateReset=p,t.inflateReset2=f,t.inflateResetKeep=c,t.inflateInit=function(e){return h(e,15)},t.inflateInit2=h,t.inflate=function(e,t){var r,u,c,p,f,h,d,g,y,b,w,S,_,E,O,R,T,j,P,x,A,I,C,k,M=0,F=new n.Buf8(4),B=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return-2;12===(r=e.state).mode&&(r.mode=13),f=e.next_out,c=e.output,d=e.avail_out,p=e.next_in,u=e.input,h=e.avail_in,g=r.hold,y=r.bits,b=h,w=d,I=0;e:for(;;)switch(r.mode){case 1:if(0===r.wrap){r.mode=13;break}for(;y<16;){if(0===h)break e;h--,g+=u[p++]<<y,y+=8}if(2&r.wrap&&35615===g){r.check=0,F[0]=255&g,F[1]=g>>>8&255,r.check=o(r.check,F,2,0),g=0,y=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&g)<<8)+(g>>8))%31){e.msg="incorrect header check",r.mode=30;break}if(8!=(15&g)){e.msg="unknown compression method",r.mode=30;break}if(y-=4,A=8+(15&(g>>>=4)),0===r.wbits)r.wbits=A;else if(A>r.wbits){e.msg="invalid window size",r.mode=30;break}r.dmax=1<<A,e.adler=r.check=1,r.mode=512&g?10:12,g=0,y=0;break;case 2:for(;y<16;){if(0===h)break e;h--,g+=u[p++]<<y,y+=8}if(r.flags=g,8!=(255&r.flags)){e.msg="unknown compression method",r.mode=30;break}if(57344&r.flags){e.msg="unknown header flags set",r.mode=30;break}r.head&&(r.head.text=g>>8&1),512&r.flags&&(F[0]=255&g,F[1]=g>>>8&255,r.check=o(r.check,F,2,0)),g=0,y=0,r.mode=3;case 3:for(;y<32;){if(0===h)break e;h--,g+=u[p++]<<y,y+=8}r.head&&(r.head.time=g),512&r.flags&&(F[0]=255&g,F[1]=g>>>8&255,F[2]=g>>>16&255,F[3]=g>>>24&255,r.check=o(r.check,F,4,0)),g=0,y=0,r.mode=4;case 4:for(;y<16;){if(0===h)break e;h--,g+=u[p++]<<y,y+=8}r.head&&(r.head.xflags=255&g,r.head.os=g>>8),512&r.flags&&(F[0]=255&g,F[1]=g>>>8&255,r.check=o(r.check,F,2,0)),g=0,y=0,r.mode=5;case 5:if(1024&r.flags){for(;y<16;){if(0===h)break e;h--,g+=u[p++]<<y,y+=8}r.length=g,r.head&&(r.head.extra_len=g),512&r.flags&&(F[0]=255&g,F[1]=g>>>8&255,r.check=o(r.check,F,2,0)),g=0,y=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&((S=r.length)>h&&(S=h),S&&(r.head&&(A=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),n.arraySet(r.head.extra,u,p,S,A)),512&r.flags&&(r.check=o(r.check,u,S,p)),h-=S,p+=S,r.length-=S),r.length))break e;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===h)break e;S=0;do{A=u[p+S++],r.head&&A&&r.length<65536&&(r.head.name+=String.fromCharCode(A))}while(A&&S<h);if(512&r.flags&&(r.check=o(r.check,u,S,p)),h-=S,p+=S,A)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=8;case 8:if(4096&r.flags){if(0===h)break e;S=0;do{A=u[p+S++],r.head&&A&&r.length<65536&&(r.head.comment+=String.fromCharCode(A))}while(A&&S<h);if(512&r.flags&&(r.check=o(r.check,u,S,p)),h-=S,p+=S,A)break e}else r.head&&(r.head.comment=null);r.mode=9;case 9:if(512&r.flags){for(;y<16;){if(0===h)break e;h--,g+=u[p++]<<y,y+=8}if(g!==(65535&r.check)){e.msg="header crc mismatch",r.mode=30;break}g=0,y=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=12;break;case 10:for(;y<32;){if(0===h)break e;h--,g+=u[p++]<<y,y+=8}e.adler=r.check=l(g),g=0,y=0,r.mode=11;case 11:if(0===r.havedict)return e.next_out=f,e.avail_out=d,e.next_in=p,e.avail_in=h,r.hold=g,r.bits=y,2;e.adler=r.check=1,r.mode=12;case 12:if(5===t||6===t)break e;case 13:if(r.last){g>>>=7&y,y-=7&y,r.mode=27;break}for(;y<3;){if(0===h)break e;h--,g+=u[p++]<<y,y+=8}switch(r.last=1&g,y-=1,3&(g>>>=1)){case 0:r.mode=14;break;case 1:if(v(r),r.mode=20,6===t){g>>>=2,y-=2;break e}break;case 2:r.mode=17;break;case 3:e.msg="invalid block type",r.mode=30}g>>>=2,y-=2;break;case 14:for(g>>>=7&y,y-=7&y;y<32;){if(0===h)break e;h--,g+=u[p++]<<y,y+=8}if((65535&g)!=(g>>>16^65535)){e.msg="invalid stored block lengths",r.mode=30;break}if(r.length=65535&g,g=0,y=0,r.mode=15,6===t)break e;case 15:r.mode=16;case 16:if(S=r.length){if(S>h&&(S=h),S>d&&(S=d),0===S)break e;n.arraySet(c,u,p,S,f),h-=S,p+=S,d-=S,f+=S,r.length-=S;break}r.mode=12;break;case 17:for(;y<14;){if(0===h)break e;h--,g+=u[p++]<<y,y+=8}if(r.nlen=257+(31&g),g>>>=5,y-=5,r.ndist=1+(31&g),g>>>=5,y-=5,r.ncode=4+(15&g),g>>>=4,y-=4,r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols",r.mode=30;break}r.have=0,r.mode=18;case 18:for(;r.have<r.ncode;){for(;y<3;){if(0===h)break e;h--,g+=u[p++]<<y,y+=8}r.lens[B[r.have++]]=7&g,g>>>=3,y-=3}for(;r.have<19;)r.lens[B[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,C={bits:r.lenbits},I=a(0,r.lens,0,19,r.lencode,0,r.work,C),r.lenbits=C.bits,I){e.msg="invalid code lengths set",r.mode=30;break}r.have=0,r.mode=19;case 19:for(;r.have<r.nlen+r.ndist;){for(;R=(M=r.lencode[g&(1<<r.lenbits)-1])>>>16&255,T=65535&M,!((O=M>>>24)<=y);){if(0===h)break e;h--,g+=u[p++]<<y,y+=8}if(T<16)g>>>=O,y-=O,r.lens[r.have++]=T;else{if(16===T){for(k=O+2;y<k;){if(0===h)break e;h--,g+=u[p++]<<y,y+=8}if(g>>>=O,y-=O,0===r.have){e.msg="invalid bit length repeat",r.mode=30;break}A=r.lens[r.have-1],S=3+(3&g),g>>>=2,y-=2}else if(17===T){for(k=O+3;y<k;){if(0===h)break e;h--,g+=u[p++]<<y,y+=8}y-=O,A=0,S=3+(7&(g>>>=O)),g>>>=3,y-=3}else{for(k=O+7;y<k;){if(0===h)break e;h--,g+=u[p++]<<y,y+=8}y-=O,A=0,S=11+(127&(g>>>=O)),g>>>=7,y-=7}if(r.have+S>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=30;break}for(;S--;)r.lens[r.have++]=A}}if(30===r.mode)break;if(0===r.lens[256]){e.msg="invalid code -- missing end-of-block",r.mode=30;break}if(r.lenbits=9,C={bits:r.lenbits},I=a(1,r.lens,0,r.nlen,r.lencode,0,r.work,C),r.lenbits=C.bits,I){e.msg="invalid literal/lengths set",r.mode=30;break}if(r.distbits=6,r.distcode=r.distdyn,C={bits:r.distbits},I=a(2,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,C),r.distbits=C.bits,I){e.msg="invalid distances set",r.mode=30;break}if(r.mode=20,6===t)break e;case 20:r.mode=21;case 21:if(h>=6&&d>=258){e.next_out=f,e.avail_out=d,e.next_in=p,e.avail_in=h,r.hold=g,r.bits=y,s(e,w),f=e.next_out,c=e.output,d=e.avail_out,p=e.next_in,u=e.input,h=e.avail_in,g=r.hold,y=r.bits,12===r.mode&&(r.back=-1);break}for(r.back=0;R=(M=r.lencode[g&(1<<r.lenbits)-1])>>>16&255,T=65535&M,!((O=M>>>24)<=y);){if(0===h)break e;h--,g+=u[p++]<<y,y+=8}if(R&&0==(240&R)){for(j=O,P=R,x=T;R=(M=r.lencode[x+((g&(1<<j+P)-1)>>j)])>>>16&255,T=65535&M,!(j+(O=M>>>24)<=y);){if(0===h)break e;h--,g+=u[p++]<<y,y+=8}g>>>=j,y-=j,r.back+=j}if(g>>>=O,y-=O,r.back+=O,r.length=T,0===R){r.mode=26;break}if(32&R){r.back=-1,r.mode=12;break}if(64&R){e.msg="invalid literal/length code",r.mode=30;break}r.extra=15&R,r.mode=22;case 22:if(r.extra){for(k=r.extra;y<k;){if(0===h)break e;h--,g+=u[p++]<<y,y+=8}r.length+=g&(1<<r.extra)-1,g>>>=r.extra,y-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;R=(M=r.distcode[g&(1<<r.distbits)-1])>>>16&255,T=65535&M,!((O=M>>>24)<=y);){if(0===h)break e;h--,g+=u[p++]<<y,y+=8}if(0==(240&R)){for(j=O,P=R,x=T;R=(M=r.distcode[x+((g&(1<<j+P)-1)>>j)])>>>16&255,T=65535&M,!(j+(O=M>>>24)<=y);){if(0===h)break e;h--,g+=u[p++]<<y,y+=8}g>>>=j,y-=j,r.back+=j}if(g>>>=O,y-=O,r.back+=O,64&R){e.msg="invalid distance code",r.mode=30;break}r.offset=T,r.extra=15&R,r.mode=24;case 24:if(r.extra){for(k=r.extra;y<k;){if(0===h)break e;h--,g+=u[p++]<<y,y+=8}r.offset+=g&(1<<r.extra)-1,g>>>=r.extra,y-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=30;break}r.mode=25;case 25:if(0===d)break e;if(S=w-d,r.offset>S){if((S=r.offset-S)>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=30;break}S>r.wnext?(S-=r.wnext,_=r.wsize-S):_=r.wnext-S,S>r.length&&(S=r.length),E=r.window}else E=c,_=f-r.offset,S=r.length;S>d&&(S=d),d-=S,r.length-=S;do{c[f++]=E[_++]}while(--S);0===r.length&&(r.mode=21);break;case 26:if(0===d)break e;c[f++]=r.length,d--,r.mode=21;break;case 27:if(r.wrap){for(;y<32;){if(0===h)break e;h--,g|=u[p++]<<y,y+=8}if(w-=d,e.total_out+=w,r.total+=w,w&&(e.adler=r.check=r.flags?o(r.check,c,w,f-w):i(r.check,c,w,f-w)),w=d,(r.flags?g:l(g))!==r.check){e.msg="incorrect data check",r.mode=30;break}g=0,y=0}r.mode=28;case 28:if(r.wrap&&r.flags){for(;y<32;){if(0===h)break e;h--,g+=u[p++]<<y,y+=8}if(g!==(4294967295&r.total)){e.msg="incorrect length check",r.mode=30;break}g=0,y=0}r.mode=29;case 29:I=1;break e;case 30:I=-3;break e;case 31:return-4;case 32:default:return-2}return e.next_out=f,e.avail_out=d,e.next_in=p,e.avail_in=h,r.hold=g,r.bits=y,(r.wsize||w!==e.avail_out&&r.mode<30&&(r.mode<27||4!==t))&&m(e,e.output,e.next_out,w-e.avail_out)?(r.mode=31,-4):(b-=e.avail_in,w-=e.avail_out,e.total_in+=b,e.total_out+=w,r.total+=w,r.wrap&&w&&(e.adler=r.check=r.flags?o(r.check,c,w,e.next_out-w):i(r.check,c,w,e.next_out-w)),e.data_type=r.bits+(r.last?64:0)+(12===r.mode?128:0)+(20===r.mode||15===r.mode?256:0),(0===b&&0===w||4===t)&&0===I&&(I=-5),I)},t.inflateEnd=function(e){if(!e||!e.state)return-2;var t=e.state;return t.window&&(t.window=null),e.state=null,0},t.inflateGetHeader=function(e,t){var r;return e&&e.state?0==(2&(r=e.state).wrap)?-2:(r.head=t,t.done=!1,0):-2},t.inflateSetDictionary=function(e,t){var r,n=t.length;return e&&e.state?0!==(r=e.state).wrap&&11!==r.mode?-2:11===r.mode&&i(1,t,n,0)!==r.check?-3:m(e,t,n,n)?(r.mode=31,-4):(r.havedict=1,0):-2},t.inflateInfo="pako inflate (from Nodeca project)"},9673:(e,t,r)=>{"use strict";var n=r(1824),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],o=[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],a=[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(e,t,r,l,u,c,p,f){var h,d,g,y,v,m,b,w,S,_=f.bits,E=0,O=0,R=0,T=0,j=0,P=0,x=0,A=0,I=0,C=0,k=null,M=0,F=new n.Buf16(16),B=new n.Buf16(16),D=null,L=0;for(E=0;E<=15;E++)F[E]=0;for(O=0;O<l;O++)F[t[r+O]]++;for(j=_,T=15;T>=1&&0===F[T];T--);if(j>T&&(j=T),0===T)return u[c++]=20971520,u[c++]=20971520,f.bits=1,0;for(R=1;R<T&&0===F[R];R++);for(j<R&&(j=R),A=1,E=1;E<=15;E++)if(A<<=1,(A-=F[E])<0)return-1;if(A>0&&(0===e||1!==T))return-1;for(B[1]=0,E=1;E<15;E++)B[E+1]=B[E]+F[E];for(O=0;O<l;O++)0!==t[r+O]&&(p[B[t[r+O]]++]=O);if(0===e?(k=D=p,m=19):1===e?(k=i,M-=257,D=o,L-=257,m=256):(k=s,D=a,m=-1),C=0,O=0,E=R,v=c,P=j,x=0,g=-1,y=(I=1<<j)-1,1===e&&I>852||2===e&&I>592)return 1;for(;;){b=E-x,p[O]<m?(w=0,S=p[O]):p[O]>m?(w=D[L+p[O]],S=k[M+p[O]]):(w=96,S=0),h=1<<E-x,R=d=1<<P;do{u[v+(C>>x)+(d-=h)]=b<<24|w<<16|S|0}while(0!==d);for(h=1<<E-1;C&h;)h>>=1;if(0!==h?(C&=h-1,C+=h):C=0,O++,0==--F[E]){if(E===T)break;E=t[r+p[O]]}if(E>j&&(C&y)!==g){for(0===x&&(x=j),v+=R,A=1<<(P=E-x);P+x<T&&!((A-=F[P+x])<=0);)P++,A<<=1;if(I+=1<<P,1===e&&I>852||2===e&&I>592)return 1;u[g=C&y]=j<<24|P<<16|v-c|0}}return 0!==C&&(u[v+C]=E-x<<24|64<<16|0),f.bits=j,0}},2817:e=>{"use strict";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"}},9708:(e,t,r)=>{"use strict";var n=r(1824);function i(e){for(var t=e.length;--t>=0;)e[t]=0}var o=[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],a=[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 c=new Array(60);i(c);var p=new Array(512);i(p);var f=new Array(256);i(f);var h=new Array(29);i(h);var d,g,y,v=new Array(30);function m(e,t,r,n,i){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=e&&e.length}function b(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function w(e){return e<256?p[e]:p[256+(e>>>7)]}function S(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function _(e,t,r){e.bi_valid>16-r?(e.bi_buf|=t<<e.bi_valid&65535,S(e,e.bi_buf),e.bi_buf=t>>16-e.bi_valid,e.bi_valid+=r-16):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)}function E(e,t,r){_(e,r[2*t],r[2*t+1])}function O(e,t){var r=0;do{r|=1&e,e>>>=1,r<<=1}while(--t>0);return r>>>1}function R(e,t,r){var n,i,o=new Array(16),s=0;for(n=1;n<=15;n++)o[n]=s=s+r[n-1]<<1;for(i=0;i<=t;i++){var a=e[2*i+1];0!==a&&(e[2*i]=O(o[a]++,a))}}function T(e){var t;for(t=0;t<286;t++)e.dyn_ltree[2*t]=0;for(t=0;t<30;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function j(e){e.bi_valid>8?S(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function P(e,t,r,n){var i=2*t,o=2*r;return e[i]<e[o]||e[i]===e[o]&&n[t]<=n[r]}function x(e,t,r){for(var n=e.heap[r],i=r<<1;i<=e.heap_len&&(i<e.heap_len&&P(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!P(t,n,e.heap[i],e.depth));)e.heap[r]=e.heap[i],r=i,i<<=1;e.heap[r]=n}function A(e,t,r){var n,i,a,l,u=0;if(0!==e.last_lit)do{n=e.pending_buf[e.d_buf+2*u]<<8|e.pending_buf[e.d_buf+2*u+1],i=e.pending_buf[e.l_buf+u],u++,0===n?E(e,i,t):(E(e,(a=f[i])+256+1,t),0!==(l=o[a])&&_(e,i-=h[a],l),E(e,a=w(--n),r),0!==(l=s[a])&&_(e,n-=v[a],l))}while(u<e.last_lit);E(e,256,t)}function I(e,t){var r,n,i,o=t.dyn_tree,s=t.stat_desc.static_tree,a=t.stat_desc.has_stree,l=t.stat_desc.elems,u=-1;for(e.heap_len=0,e.heap_max=573,r=0;r<l;r++)0!==o[2*r]?(e.heap[++e.heap_len]=u=r,e.depth[r]=0):o[2*r+1]=0;for(;e.heap_len<2;)o[2*(i=e.heap[++e.heap_len]=u<2?++u:0)]=1,e.depth[i]=0,e.opt_len--,a&&(e.static_len-=s[2*i+1]);for(t.max_code=u,r=e.heap_len>>1;r>=1;r--)x(e,o,r);i=l;do{r=e.heap[1],e.heap[1]=e.heap[e.heap_len--],x(e,o,1),n=e.heap[1],e.heap[--e.heap_max]=r,e.heap[--e.heap_max]=n,o[2*i]=o[2*r]+o[2*n],e.depth[i]=(e.depth[r]>=e.depth[n]?e.depth[r]:e.depth[n])+1,o[2*r+1]=o[2*n+1]=i,e.heap[1]=i++,x(e,o,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],function(e,t){var r,n,i,o,s,a,l=t.dyn_tree,u=t.max_code,c=t.stat_desc.static_tree,p=t.stat_desc.has_stree,f=t.stat_desc.extra_bits,h=t.stat_desc.extra_base,d=t.stat_desc.max_length,g=0;for(o=0;o<=15;o++)e.bl_count[o]=0;for(l[2*e.heap[e.heap_max]+1]=0,r=e.heap_max+1;r<573;r++)(o=l[2*l[2*(n=e.heap[r])+1]+1]+1)>d&&(o=d,g++),l[2*n+1]=o,n>u||(e.bl_count[o]++,s=0,n>=h&&(s=f[n-h]),a=l[2*n],e.opt_len+=a*(o+s),p&&(e.static_len+=a*(c[2*n+1]+s)));if(0!==g){do{for(o=d-1;0===e.bl_count[o];)o--;e.bl_count[o]--,e.bl_count[o+1]+=2,e.bl_count[d]--,g-=2}while(g>0);for(o=d;0!==o;o--)for(n=e.bl_count[o];0!==n;)(i=e.heap[--r])>u||(l[2*i+1]!==o&&(e.opt_len+=(o-l[2*i+1])*l[2*i],l[2*i+1]=o),n--)}}(e,t),R(o,u,e.bl_count)}function C(e,t,r){var n,i,o=-1,s=t[1],a=0,l=7,u=4;for(0===s&&(l=138,u=3),t[2*(r+1)+1]=65535,n=0;n<=r;n++)i=s,s=t[2*(n+1)+1],++a<l&&i===s||(a<u?e.bl_tree[2*i]+=a:0!==i?(i!==o&&e.bl_tree[2*i]++,e.bl_tree[32]++):a<=10?e.bl_tree[34]++:e.bl_tree[36]++,a=0,o=i,0===s?(l=138,u=3):i===s?(l=6,u=3):(l=7,u=4))}function k(e,t,r){var n,i,o=-1,s=t[1],a=0,l=7,u=4;for(0===s&&(l=138,u=3),n=0;n<=r;n++)if(i=s,s=t[2*(n+1)+1],!(++a<l&&i===s)){if(a<u)do{E(e,i,e.bl_tree)}while(0!=--a);else 0!==i?(i!==o&&(E(e,i,e.bl_tree),a--),E(e,16,e.bl_tree),_(e,a-3,2)):a<=10?(E(e,17,e.bl_tree),_(e,a-3,3)):(E(e,18,e.bl_tree),_(e,a-11,7));a=0,o=i,0===s?(l=138,u=3):i===s?(l=6,u=3):(l=7,u=4)}}i(v);var M=!1;function F(e,t,r,i){_(e,0+(i?1:0),3),function(e,t,r,i){j(e),i&&(S(e,r),S(e,~r)),n.arraySet(e.pending_buf,e.window,t,r,e.pending),e.pending+=r}(e,t,r,!0)}t._tr_init=function(e){M||(!function(){var e,t,r,n,i,l=new Array(16);for(r=0,n=0;n<28;n++)for(h[n]=r,e=0;e<1<<o[n];e++)f[r++]=n;for(f[r-1]=n,i=0,n=0;n<16;n++)for(v[n]=i,e=0;e<1<<s[n];e++)p[i++]=n;for(i>>=7;n<30;n++)for(v[n]=i<<7,e=0;e<1<<s[n]-7;e++)p[256+i++]=n;for(t=0;t<=15;t++)l[t]=0;for(e=0;e<=143;)u[2*e+1]=8,e++,l[8]++;for(;e<=255;)u[2*e+1]=9,e++,l[9]++;for(;e<=279;)u[2*e+1]=7,e++,l[7]++;for(;e<=287;)u[2*e+1]=8,e++,l[8]++;for(R(u,287,l),e=0;e<30;e++)c[2*e+1]=5,c[2*e]=O(e,5);d=new m(u,o,257,286,15),g=new m(c,s,0,30,15),y=new m(new Array(0),a,0,19,7)}(),M=!0),e.l_desc=new b(e.dyn_ltree,d),e.d_desc=new b(e.dyn_dtree,g),e.bl_desc=new b(e.bl_tree,y),e.bi_buf=0,e.bi_valid=0,T(e)},t._tr_stored_block=F,t._tr_flush_block=function(e,t,r,n){var i,o,s=0;e.level>0?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,r=4093624447;for(t=0;t<=31;t++,r>>>=1)if(1&r&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<256;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0}(e)),I(e,e.l_desc),I(e,e.d_desc),s=function(e){var t;for(C(e,e.dyn_ltree,e.l_desc.max_code),C(e,e.dyn_dtree,e.d_desc.max_code),I(e,e.bl_desc),t=18;t>=3&&0===e.bl_tree[2*l[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),i=e.opt_len+3+7>>>3,(o=e.static_len+3+7>>>3)<=i&&(i=o)):i=o=r+5,r+4<=i&&-1!==t?F(e,t,r,n):4===e.strategy||o===i?(_(e,2+(n?1:0),3),A(e,u,c)):(_(e,4+(n?1:0),3),function(e,t,r,n){var i;for(_(e,t-257,5),_(e,r-1,5),_(e,n-4,4),i=0;i<n;i++)_(e,e.bl_tree[2*l[i]+1],3);k(e,e.dyn_ltree,t-1),k(e,e.dyn_dtree,r-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,s+1),A(e,e.dyn_ltree,e.dyn_dtree)),T(e),n&&j(e)},t._tr_tally=function(e,t,r){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&r,e.last_lit++,0===t?e.dyn_ltree[2*r]++:(e.matches++,t--,e.dyn_ltree[2*(f[r]+256+1)]++,e.dyn_dtree[2*w(t)]++),e.last_lit===e.lit_bufsize-1},t._tr_align=function(e){_(e,2,3),E(e,256,u),function(e){16===e.bi_valid?(S(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},2495:e=>{"use strict";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}},5402:e=>{"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},8575:e=>{e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},25:(e,t,r)=>{var n=/%[sdj%]/g;t.format=function(e){if(!y(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(s(arguments[r]));return t.join(" ")}r=1;for(var i=arguments,o=i.length,a=String(e).replace(n,(function(e){if("%%"===e)return"%";if(r>=o)return e;switch(e){case"%s":return String(i[r++]);case"%d":return Number(i[r++]);case"%j":try{return JSON.stringify(i[r++])}catch(e){return"[Circular]"}default:return e}})),l=i[r];r<o;l=i[++r])d(l)||!b(l)?a+=" "+l:a+=" "+s(l);return a},t.deprecate=function(e,n){if(v(r.g.process))return function(){return t.deprecate(e,n).apply(this,arguments)};if(!0===process.noDeprecation)return e;var i=!1;return function(){if(!i){if(process.throwDeprecation)throw new Error(n);process.traceDeprecation?console.trace(n):console.error(n),i=!0}return e.apply(this,arguments)}};var i,o={};function s(e,r){var n={seen:[],stylize:l};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),h(r)?n.showHidden=r:r&&t._extend(n,r),v(n.showHidden)&&(n.showHidden=!1),v(n.depth)&&(n.depth=2),v(n.colors)&&(n.colors=!1),v(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=a),u(n,e,n.depth)}function a(e,t){var r=s.styles[t];return r?"["+s.colors[r][0]+"m"+e+"["+s.colors[r][1]+"m":e}function l(e,t){return e}function u(e,r,n){if(e.customInspect&&r&&_(r.inspect)&&r.inspect!==t.inspect&&(!r.constructor||r.constructor.prototype!==r)){var i=r.inspect(n,e);return y(i)||(i=u(e,i,n)),i}var o=function(e,t){if(v(t))return e.stylize("undefined","undefined");if(y(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(g(t))return e.stylize(""+t,"number");if(h(t))return e.stylize(""+t,"boolean");if(d(t))return e.stylize("null","null")}(e,r);if(o)return o;var s=Object.keys(r),a=function(e){var t={};return e.forEach((function(e,r){t[e]=!0})),t}(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(r)),S(r)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return c(r);if(0===s.length){if(_(r)){var l=r.name?": "+r.name:"";return e.stylize("[Function"+l+"]","special")}if(m(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(w(r))return e.stylize(Date.prototype.toString.call(r),"date");if(S(r))return c(r)}var b,E="",O=!1,R=["{","}"];(f(r)&&(O=!0,R=["[","]"]),_(r))&&(E=" [Function"+(r.name?": "+r.name:"")+"]");return m(r)&&(E=" "+RegExp.prototype.toString.call(r)),w(r)&&(E=" "+Date.prototype.toUTCString.call(r)),S(r)&&(E=" "+c(r)),0!==s.length||O&&0!=r.length?n<0?m(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),b=O?function(e,t,r,n,i){for(var o=[],s=0,a=t.length;s<a;++s)j(t,String(s))?o.push(p(e,t,r,n,String(s),!0)):o.push("");return i.forEach((function(i){i.match(/^\d+$/)||o.push(p(e,t,r,n,i,!0))})),o}(e,r,n,a,s):s.map((function(t){return p(e,r,n,a,t,O)})),e.seen.pop(),function(e,t,r){if(e.reduce((function(e,t){return t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1];return r[0]+t+" "+e.join(", ")+" "+r[1]}(b,E,R)):R[0]+E+R[1]}function c(e){return"["+Error.prototype.toString.call(e)+"]"}function p(e,t,r,n,i,o){var s,a,l;if((l=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?a=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(a=e.stylize("[Setter]","special")),j(n,i)||(s="["+i+"]"),a||(e.seen.indexOf(l.value)<0?(a=d(r)?u(e,l.value,null):u(e,l.value,r-1)).indexOf("\n")>-1&&(a=o?a.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+a.split("\n").map((function(e){return" "+e})).join("\n")):a=e.stylize("[Circular]","special")),v(s)){if(o&&i.match(/^\d+$/))return a;(s=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+a}function f(e){return Array.isArray(e)}function h(e){return"boolean"==typeof e}function d(e){return null===e}function g(e){return"number"==typeof e}function y(e){return"string"==typeof e}function v(e){return void 0===e}function m(e){return b(e)&&"[object RegExp]"===E(e)}function b(e){return"object"==typeof e&&null!==e}function w(e){return b(e)&&"[object Date]"===E(e)}function S(e){return b(e)&&("[object Error]"===E(e)||e instanceof Error)}function _(e){return"function"==typeof e}function E(e){return Object.prototype.toString.call(e)}function O(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(v(i)&&(i=process.env.NODE_DEBUG||""),e=e.toUpperCase(),!o[e])if(new RegExp("\\b"+e+"\\b","i").test(i)){var r=process.pid;o[e]=function(){var n=t.format.apply(t,arguments);console.error("%s %d: %s",e,r,n)}}else o[e]=function(){};return o[e]},t.inspect=s,s.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]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=f,t.isBoolean=h,t.isNull=d,t.isNullOrUndefined=function(e){return null==e},t.isNumber=g,t.isString=y,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=v,t.isRegExp=m,t.isObject=b,t.isDate=w,t.isError=S,t.isFunction=_,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(8575);var R=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function T(){var e=new Date,t=[O(e.getHours()),O(e.getMinutes()),O(e.getSeconds())].join(":");return[e.getDate(),R[e.getMonth()],t].join(" ")}function j(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",T(),t.format.apply(t,arguments))},t.inherits=r(5402),t._extend=function(e,t){if(!t||!b(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e}},8558:(e,t,r)=>{"use strict";var n="win32"===process.platform,i=r(25);function o(e,t){for(var r=[],n=0;n<e.length;n++){var i=e[n];i&&"."!==i&&(".."===i?r.length&&".."!==r[r.length-1]?r.pop():t&&r.push(".."):r.push(i))}return r}function s(e){for(var t=e.length-1,r=0;r<=t&&!e[r];r++);for(var n=t;n>=0&&!e[n];n--);return 0===r&&n===t?e:r>n?[]:e.slice(r,n+1)}var a=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,l=/^([\s\S]*?)((?:\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))(?:[\\\/]*)$/,u={};function c(e){var t=a.exec(e),r=(t[1]||"")+(t[2]||""),n=t[3]||"",i=l.exec(n);return[r,i[1],i[2],i[3]]}function p(e){var t=a.exec(e),r=t[1]||"",n=!!r&&":"!==r[1];return{device:r,isUnc:n,isAbsolute:n||!!t[2],tail:t[3]}}function f(e){return"\\\\"+e.replace(/^[\\\/]+/,"").replace(/[\\\/]+/g,"\\")}u.resolve=function(){for(var e="",t="",r=!1,n=arguments.length-1;n>=-1;n--){var s;if(n>=0?s=arguments[n]:e?(s=process.env["="+e])&&s.substr(0,3).toLowerCase()===e.toLowerCase()+"\\"||(s=e+"\\"):s=process.cwd(),!i.isString(s))throw new TypeError("Arguments to path.resolve must be strings");if(s){var a=p(s),l=a.device,u=a.isUnc,c=a.isAbsolute,h=a.tail;if((!l||!e||l.toLowerCase()===e.toLowerCase())&&(e||(e=l),r||(t=h+"\\"+t,r=c),e&&r))break}}return u&&(e=f(e)),e+(r?"\\":"")+(t=o(t.split(/[\\\/]+/),!r).join("\\"))||"."},u.normalize=function(e){var t=p(e),r=t.device,n=t.isUnc,i=t.isAbsolute,s=t.tail,a=/[\\\/]$/.test(s);return(s=o(s.split(/[\\\/]+/),!i).join("\\"))||i||(s="."),s&&a&&(s+="\\"),n&&(r=f(r)),r+(i?"\\":"")+s},u.isAbsolute=function(e){return p(e).isAbsolute},u.join=function(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(!i.isString(r))throw new TypeError("Arguments to path.join must be strings");r&&e.push(r)}var n=e.join("\\");return/^[\\\/]{2}[^\\\/]/.test(e[0])||(n=n.replace(/^[\\\/]{2,}/,"\\")),u.normalize(n)},u.relative=function(e,t){e=u.resolve(e),t=u.resolve(t);for(var r=e.toLowerCase(),n=t.toLowerCase(),i=s(t.split("\\")),o=s(r.split("\\")),a=s(n.split("\\")),l=Math.min(o.length,a.length),c=l,p=0;p<l;p++)if(o[p]!==a[p]){c=p;break}if(0==c)return t;var f=[];for(p=c;p<o.length;p++)f.push("..");return(f=f.concat(i.slice(c))).join("\\")},u._makeLong=function(e){if(!i.isString(e))return e;if(!e)return"";var t=u.resolve(e);return/^[a-zA-Z]\:\\/.test(t)?"\\\\?\\"+t:/^\\\\[^?.]/.test(t)?"\\\\?\\UNC\\"+t.substring(2):e},u.dirname=function(e){var t=c(e),r=t[0],n=t[1];return r||n?(n&&(n=n.substr(0,n.length-1)),r+n):"."},u.basename=function(e,t){var r=c(e)[2];return t&&r.substr(-1*t.length)===t&&(r=r.substr(0,r.length-t.length)),r},u.extname=function(e){return c(e)[3]},u.format=function(e){if(!i.isObject(e))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof e);var t=e.root||"";if(!i.isString(t))throw new TypeError("'pathObject.root' must be a string or undefined, not "+typeof e.root);var r=e.dir,n=e.base||"";return r?r[r.length-1]===u.sep?r+n:r+u.sep+n:n},u.parse=function(e){if(!i.isString(e))throw new TypeError("Parameter 'pathString' must be a string, not "+typeof e);var t=c(e);if(!t||4!==t.length)throw new TypeError("Invalid path '"+e+"'");return{root:t[0],dir:t[0]+t[1].slice(0,-1),base:t[2],ext:t[3],name:t[2].slice(0,t[2].length-t[3].length)}},u.sep="\\",u.delimiter=";";var h=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,d={};function g(e){return h.exec(e).slice(1)}d.resolve=function(){for(var e="",t=!1,r=arguments.length-1;r>=-1&&!t;r--){var n=r>=0?arguments[r]:process.cwd();if(!i.isString(n))throw new TypeError("Arguments to path.resolve must be strings");n&&(e=n+"/"+e,t="/"===n[0])}return(t?"/":"")+(e=o(e.split("/"),!t).join("/"))||"."},d.normalize=function(e){var t=d.isAbsolute(e),r=e&&"/"===e[e.length-1];return(e=o(e.split("/"),!t).join("/"))||t||(e="."),e&&r&&(e+="/"),(t?"/":"")+e},d.isAbsolute=function(e){return"/"===e.charAt(0)},d.join=function(){for(var e="",t=0;t<arguments.length;t++){var r=arguments[t];if(!i.isString(r))throw new TypeError("Arguments to path.join must be strings");r&&(e+=e?"/"+r:r)}return d.normalize(e)},d.relative=function(e,t){e=d.resolve(e).substr(1),t=d.resolve(t).substr(1);for(var r=s(e.split("/")),n=s(t.split("/")),i=Math.min(r.length,n.length),o=i,a=0;a<i;a++)if(r[a]!==n[a]){o=a;break}var l=[];for(a=o;a<r.length;a++)l.push("..");return(l=l.concat(n.slice(o))).join("/")},d._makeLong=function(e){return e},d.dirname=function(e){var t=g(e),r=t[0],n=t[1];return r||n?(n&&(n=n.substr(0,n.length-1)),r+n):"."},d.basename=function(e,t){var r=g(e)[2];return t&&r.substr(-1*t.length)===t&&(r=r.substr(0,r.length-t.length)),r},d.extname=function(e){return g(e)[3]},d.format=function(e){if(!i.isObject(e))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof e);var t=e.root||"";if(!i.isString(t))throw new TypeError("'pathObject.root' must be a string or undefined, not "+typeof e.root);return(e.dir?e.dir+d.sep:"")+(e.base||"")},d.parse=function(e){if(!i.isString(e))throw new TypeError("Parameter 'pathString' must be a string, not "+typeof e);var t=g(e);if(!t||4!==t.length)throw new TypeError("Invalid path '"+e+"'");return t[1]=t[1]||"",t[2]=t[2]||"",t[3]=t[3]||"",{root:t[0],dir:t[0]+t[1].slice(0,-1),base:t[2],ext:t[3],name:t[2].slice(0,t[2].length-t[3].length)}},d.sep="/",d.delimiter=":",e.exports=n?u:d,e.exports.posix=d,e.exports.win32=u},8758:function(e){(function(){var t,r,n,i,o,s;"undefined"!=typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:"undefined"!=typeof process&&null!==process&&process.hrtime?(e.exports=function(){return(t()-o)/1e6},r=process.hrtime,i=(t=function(){var e;return 1e9*(e=r())[0]+e[1]})(),s=1e9*process.uptime(),o=i-s):Date.now?(e.exports=function(){return Date.now()-n},n=Date.now()):(e.exports=function(){return(new Date).getTime()-n},n=(new Date).getTime())}).call(this)},9501:e=>{"use strict";e.exports=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]},1830:e=>{"use strict";var t=String.prototype.replace,r=/%20/g,n="RFC1738",i="RFC3986";e.exports={default:i,formatters:{RFC1738:function(e){return t.call(e,r,"+")},RFC3986:function(e){return String(e)}},RFC1738:n,RFC3986:i}},5810:(e,t,r)=>{"use strict";var n=r(6623),i=r(6193),o=r(1830);e.exports={formats:o,parse:i,stringify:n}},6193:(e,t,r)=>{"use strict";var n=r(1539),i=Object.prototype.hasOwnProperty,o=Array.isArray,s={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:n.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},a=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},l=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},u=function(e,t,r,n){if(e){var o=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,s=/(\[[^[\]]*])/g,a=r.depth>0&&/(\[[^[\]]*])/.exec(o),u=a?o.slice(0,a.index):o,c=[];if(u){if(!r.plainObjects&&i.call(Object.prototype,u)&&!r.allowPrototypes)return;c.push(u)}for(var p=0;r.depth>0&&null!==(a=s.exec(o))&&p<r.depth;){if(p+=1,!r.plainObjects&&i.call(Object.prototype,a[1].slice(1,-1))&&!r.allowPrototypes)return;c.push(a[1])}return a&&c.push("["+o.slice(a.index)+"]"),function(e,t,r,n){for(var i=n?t:l(t,r),o=e.length-1;o>=0;--o){var s,a=e[o];if("[]"===a&&r.parseArrays)s=r.allowEmptyArrays&&(""===i||r.strictNullHandling&&null===i)?[]:[].concat(i);else{s=r.plainObjects?Object.create(null):{};var u="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,c=r.decodeDotInKeys?u.replace(/%2E/g,"."):u,p=parseInt(c,10);r.parseArrays||""!==c?!isNaN(p)&&a!==c&&String(p)===c&&p>=0&&r.parseArrays&&p<=r.arrayLimit?(s=[])[p]=i:"__proto__"!==c&&(s[c]=i):s={0:i}}i=s}return i}(c,t,r,n)}};e.exports=function(e,t){var r=function(e){if(!e)return s;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?s.charset:e.charset,r=void 0===e.duplicates?s.duplicates:e.duplicates;if("combine"!==r&&"first"!==r&&"last"!==r)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||s.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:s.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:s.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:s.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:s.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:s.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:s.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:s.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:s.decoder,delimiter:"string"==typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:s.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:s.depth,duplicates:r,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:s.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:s.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:s.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:s.strictNullHandling}}(t);if(""===e||null==e)return r.plainObjects?Object.create(null):{};for(var c="string"==typeof e?function(e,t){var r={__proto__:null},u=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;u=u.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var c,p=t.parameterLimit===1/0?void 0:t.parameterLimit,f=u.split(t.delimiter,p),h=-1,d=t.charset;if(t.charsetSentinel)for(c=0;c<f.length;++c)0===f[c].indexOf("utf8=")&&("utf8=%E2%9C%93"===f[c]?d="utf-8":"utf8=%26%2310003%3B"===f[c]&&(d="iso-8859-1"),h=c,c=f.length);for(c=0;c<f.length;++c)if(c!==h){var g,y,v=f[c],m=v.indexOf("]="),b=-1===m?v.indexOf("="):m+1;-1===b?(g=t.decoder(v,s.decoder,d,"key"),y=t.strictNullHandling?null:""):(g=t.decoder(v.slice(0,b),s.decoder,d,"key"),y=n.maybeMap(l(v.slice(b+1),t),(function(e){return t.decoder(e,s.decoder,d,"value")}))),y&&t.interpretNumericEntities&&"iso-8859-1"===d&&(y=a(y)),v.indexOf("[]=")>-1&&(y=o(y)?[y]:y);var w=i.call(r,g);w&&"combine"===t.duplicates?r[g]=n.combine(r[g],y):w&&"last"!==t.duplicates||(r[g]=y)}return r}(e,r):e,p=r.plainObjects?Object.create(null):{},f=Object.keys(c),h=0;h<f.length;++h){var d=f[h],g=u(d,c[d],r,"string"==typeof e);p=n.merge(p,g,r)}return!0===r.allowSparse?p:n.compact(p)}},6623:(e,t,r)=>{"use strict";var n=r(7575),i=r(1539),o=r(1830),s=Object.prototype.hasOwnProperty,a={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},l=Array.isArray,u=Array.prototype.push,c=function(e,t){u.apply(e,l(t)?t:[t])},p=Date.prototype.toISOString,f=o.default,h={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:i.encode,encodeValuesOnly:!1,format:f,formatter:o.formatters[f],indices:!1,serializeDate:function(e){return p.call(e)},skipNulls:!1,strictNullHandling:!1},d={},g=function e(t,r,o,s,a,u,p,f,g,y,v,m,b,w,S,_,E,O){for(var R,T=t,j=O,P=0,x=!1;void 0!==(j=j.get(d))&&!x;){var A=j.get(t);if(P+=1,void 0!==A){if(A===P)throw new RangeError("Cyclic object value");x=!0}void 0===j.get(d)&&(P=0)}if("function"==typeof y?T=y(r,T):T instanceof Date?T=b(T):"comma"===o&&l(T)&&(T=i.maybeMap(T,(function(e){return e instanceof Date?b(e):e}))),null===T){if(u)return g&&!_?g(r,h.encoder,E,"key",w):r;T=""}if("string"==typeof(R=T)||"number"==typeof R||"boolean"==typeof R||"symbol"==typeof R||"bigint"==typeof R||i.isBuffer(T))return g?[S(_?r:g(r,h.encoder,E,"key",w))+"="+S(g(T,h.encoder,E,"value",w))]:[S(r)+"="+S(String(T))];var I,C=[];if(void 0===T)return C;if("comma"===o&&l(T))_&&g&&(T=i.maybeMap(T,g)),I=[{value:T.length>0?T.join(",")||null:void 0}];else if(l(y))I=y;else{var k=Object.keys(T);I=v?k.sort(v):k}var M=f?r.replace(/\./g,"%2E"):r,F=s&&l(T)&&1===T.length?M+"[]":M;if(a&&l(T)&&0===T.length)return F+"[]";for(var B=0;B<I.length;++B){var D=I[B],L="object"==typeof D&&void 0!==D.value?D.value:T[D];if(!p||null!==L){var N=m&&f?D.replace(/\./g,"%2E"):D,z=l(T)?"function"==typeof o?o(F,N):F:F+(m?"."+N:"["+N+"]");O.set(t,P);var U=n();U.set(d,O),c(C,e(L,z,o,s,a,u,p,f,"comma"===o&&_&&l(T)?null:g,y,v,m,b,w,S,_,E,U))}}return C};e.exports=function(e,t){var r,i=e,u=function(e){if(!e)return h;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||h.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=o.default;if(void 0!==e.format){if(!s.call(o.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var n,i=o.formatters[r],u=h.filter;if(("function"==typeof e.filter||l(e.filter))&&(u=e.filter),n=e.arrayFormat in a?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":h.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var c=void 0===e.allowDots?!0===e.encodeDotInKeys||h.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:h.addQueryPrefix,allowDots:c,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:h.allowEmptyArrays,arrayFormat:n,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:h.charsetSentinel,commaRoundTrip:e.commaRoundTrip,delimiter:void 0===e.delimiter?h.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:h.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:h.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:h.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:h.encodeValuesOnly,filter:u,format:r,formatter:i,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:h.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:h.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:h.strictNullHandling}}(t);"function"==typeof u.filter?i=(0,u.filter)("",i):l(u.filter)&&(r=u.filter);var p=[];if("object"!=typeof i||null===i)return"";var f=a[u.arrayFormat],d="comma"===f&&u.commaRoundTrip;r||(r=Object.keys(i)),u.sort&&r.sort(u.sort);for(var y=n(),v=0;v<r.length;++v){var m=r[v];u.skipNulls&&null===i[m]||c(p,g(i[m],m,f,d,u.allowEmptyArrays,u.strictNullHandling,u.skipNulls,u.encodeDotInKeys,u.encode?u.encoder:null,u.filter,u.sort,u.allowDots,u.serializeDate,u.format,u.formatter,u.encodeValuesOnly,u.charset,y))}var b=p.join(u.delimiter),w=!0===u.addQueryPrefix?"?":"";return u.charsetSentinel&&("iso-8859-1"===u.charset?w+="utf8=%26%2310003%3B&":w+="utf8=%E2%9C%93&"),b.length>0?w+b:""}},1539:(e,t,r)=>{"use strict";var n=r(1830),i=Object.prototype.hasOwnProperty,o=Array.isArray,s=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),a=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},n=0;n<e.length;++n)void 0!==e[n]&&(r[n]=e[n]);return r};e.exports={arrayToObject:a,assign:function(e,t){return Object.keys(t).reduce((function(e,r){return e[r]=t[r],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n<t.length;++n)for(var i=t[n],s=i.obj[i.prop],a=Object.keys(s),l=0;l<a.length;++l){var u=a[l],c=s[u];"object"==typeof c&&null!==c&&-1===r.indexOf(c)&&(t.push({obj:s,prop:u}),r.push(c))}return function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(o(r)){for(var n=[],i=0;i<r.length;++i)void 0!==r[i]&&n.push(r[i]);t.obj[t.prop]=n}}}(t),e},decode:function(e,t,r){var n=e.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(e){return n}},encode:function(e,t,r,i,o){if(0===e.length)return e;var a=e;if("symbol"==typeof e?a=Symbol.prototype.toString.call(e):"string"!=typeof e&&(a=String(e)),"iso-8859-1"===r)return escape(a).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var l="",u=0;u<a.length;u+=1024){for(var c=a.length>=1024?a.slice(u,u+1024):a,p=[],f=0;f<c.length;++f){var h=c.charCodeAt(f);45===h||46===h||95===h||126===h||h>=48&&h<=57||h>=65&&h<=90||h>=97&&h<=122||o===n.RFC1738&&(40===h||41===h)?p[p.length]=c.charAt(f):h<128?p[p.length]=s[h]:h<2048?p[p.length]=s[192|h>>6]+s[128|63&h]:h<55296||h>=57344?p[p.length]=s[224|h>>12]+s[128|h>>6&63]+s[128|63&h]:(f+=1,h=65536+((1023&h)<<10|1023&c.charCodeAt(f)),p[p.length]=s[240|h>>18]+s[128|h>>12&63]+s[128|h>>6&63]+s[128|63&h])}l+=p.join("")}return l},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(o(e)){for(var r=[],n=0;n<e.length;n+=1)r.push(t(e[n]));return r}return t(e)},merge:function e(t,r,n){if(!r)return t;if("object"!=typeof r){if(o(t))t.push(r);else{if(!t||"object"!=typeof t)return[t,r];(n&&(n.plainObjects||n.allowPrototypes)||!i.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(r);var s=t;return o(t)&&!o(r)&&(s=a(t,n)),o(t)&&o(r)?(r.forEach((function(r,o){if(i.call(t,o)){var s=t[o];s&&"object"==typeof s&&r&&"object"==typeof r?t[o]=e(s,r,n):t.push(r)}else t[o]=r})),t):Object.keys(r).reduce((function(t,o){var s=r[o];return i.call(t,o)?t[o]=e(t[o],s,n):t[o]=s,t}),s)}}},5699:e=>{"use strict";var t={};function r(e,r,n){n||(n=Error);var i=function(e){var t,n;function i(t,n,i){return e.call(this,function(e,t,n){return"string"==typeof r?r:r(e,t,n)}(t,n,i))||this}return n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,i}(n);i.prototype.name=n.name,i.prototype.code=e,t[e]=i}function n(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map((function(e){return String(e)})),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}r("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),r("ERR_INVALID_ARG_TYPE",(function(e,t,r){var i,o,s,a;if("string"==typeof t&&(o="not ",t.substr(!s||s<0?0:+s,o.length)===o)?(i="must not be",t=t.replace(/^not /,"")):i="must be",function(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}(e," argument"))a="The ".concat(e," ").concat(i," ").concat(n(t,"type"));else{var l=function(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}(e,".")?"property":"argument";a='The "'.concat(e,'" ').concat(l," ").concat(i," ").concat(n(t,"type"))}return a+=". Received type ".concat(typeof r)}),TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.F=t},1265:(e,t,r)=>{"use strict";var n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=u;var i=r(8199),o=r(5291);r(5615)(u,i);for(var s=n(o.prototype),a=0;a<s.length;a++){var l=s[a];u.prototype[l]||(u.prototype[l]=o.prototype[l])}function u(e){if(!(this instanceof u))return new u(e);i.call(this,e),o.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",c)))}function c(){this._writableState.ended||process.nextTick(p,this)}function p(e){e.end()}Object.defineProperty(u.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(u.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(u.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(u.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})},4421:(e,t,r)=>{"use strict";e.exports=i;var n=r(9415);function i(e){if(!(this instanceof i))return new i(e);n.call(this,e)}r(5615)(i,n),i.prototype._transform=function(e,t,r){r(null,e)}},8199:(e,t,r)=>{"use strict";var n;e.exports=O,O.ReadableState=E;r(46).EventEmitter;var i=function(e,t){return e.listeners(t).length},o=r(4856),s=r(1048).Buffer,a=(void 0!==r.g?r.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var l,u=r(3951);l=u&&u.debuglog?u.debuglog("stream"):function(){};var c,p,f,h=r(82),d=r(6527),g=r(9952).getHighWaterMark,y=r(5699).F,v=y.ERR_INVALID_ARG_TYPE,m=y.ERR_STREAM_PUSH_AFTER_EOF,b=y.ERR_METHOD_NOT_IMPLEMENTED,w=y.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r(5615)(O,o);var S=d.errorOrDestroy,_=["error","close","destroy","pause","resume"];function E(e,t,i){n=n||r(1265),e=e||{},"boolean"!=typeof i&&(i=t instanceof n),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=g(this,e,"readableHighWaterMark",i),this.buffer=new h,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=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(c||(c=r(8888).StringDecoder),this.decoder=new c(e.encoding),this.encoding=e.encoding)}function O(e){if(n=n||r(1265),!(this instanceof O))return new O(e);var t=this instanceof n;this._readableState=new E(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),o.call(this)}function R(e,t,r,n,i){l("readableAddChunk",t);var o,u=e._readableState;if(null===t)u.reading=!1,function(e,t){if(l("onEofChunk"),t.ended)return;if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?P(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,x(e)))}(e,u);else if(i||(o=function(e,t){var r;n=t,s.isBuffer(n)||n instanceof a||"string"==typeof t||void 0===t||e.objectMode||(r=new v("chunk",["string","Buffer","Uint8Array"],t));var n;return r}(u,t)),o)S(e,o);else if(u.objectMode||t&&t.length>0)if("string"==typeof t||u.objectMode||Object.getPrototypeOf(t)===s.prototype||(t=function(e){return s.from(e)}(t)),n)u.endEmitted?S(e,new w):T(e,u,t,!0);else if(u.ended)S(e,new m);else{if(u.destroyed)return!1;u.reading=!1,u.decoder&&!r?(t=u.decoder.write(t),u.objectMode||0!==t.length?T(e,u,t,!1):A(e,u)):T(e,u,t,!1)}else n||(u.reading=!1,A(e,u));return!u.ended&&(u.length<u.highWaterMark||0===u.length)}function T(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&P(e)),A(e,t)}Object.defineProperty(O.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),O.prototype.destroy=d.destroy,O.prototype._undestroy=d.undestroy,O.prototype._destroy=function(e,t){t(e)},O.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=s.from(e,t),t=""),r=!0),R(this,e,t,!1,r)},O.prototype.unshift=function(e){return R(this,e,null,!0,!1)},O.prototype.isPaused=function(){return!1===this._readableState.flowing},O.prototype.setEncoding=function(e){c||(c=r(8888).StringDecoder);var t=new c(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var n=this._readableState.buffer.head,i="";null!==n;)i+=t.write(n.data),n=n.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};function j(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=1073741824?e=1073741824:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function P(e){var t=e._readableState;l("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(l("emitReadable",t.flowing),t.emittedReadable=!0,process.nextTick(x,e))}function x(e){var t=e._readableState;l("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,F(e)}function A(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(I,e,t))}function I(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var r=t.length;if(l("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function C(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function k(e){l("readable nexttick read 0"),e.read(0)}function M(e,t){l("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),F(e),t.flowing&&!t.reading&&e.read(0)}function F(e){var t=e._readableState;for(l("flow",t.flowing);t.flowing&&null!==e.read(););}function B(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r);var r}function D(e){var t=e._readableState;l("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(L,t,e))}function L(e,t){if(l("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function N(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}O.prototype.read=function(e){l("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return l("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?D(this):P(this),null;if(0===(e=j(e,t))&&t.ended)return 0===t.length&&D(this),null;var n,i=t.needReadable;return l("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&l("length less than watermark",i=!0),t.ended||t.reading?l("reading or ended",i=!1):i&&(l("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=j(r,t))),null===(n=e>0?B(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&D(this)),null!==n&&this.emit("data",n),n},O.prototype._read=function(e){S(this,new b("_read()"))},O.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e)}n.pipesCount+=1,l("pipe count=%d opts=%j",n.pipesCount,t);var o=(!t||!1!==t.end)&&e!==process.stdout&&e!==process.stderr?a:g;function s(t,i){l("onunpipe"),t===r&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,l("cleanup"),e.removeListener("close",h),e.removeListener("finish",d),e.removeListener("drain",u),e.removeListener("error",f),e.removeListener("unpipe",s),r.removeListener("end",a),r.removeListener("end",g),r.removeListener("data",p),c=!0,!n.awaitDrain||e._writableState&&!e._writableState.needDrain||u())}function a(){l("onend"),e.end()}n.endEmitted?process.nextTick(o):r.once("end",o),e.on("unpipe",s);var u=function(e){return function(){var t=e._readableState;l("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&i(e,"data")&&(t.flowing=!0,F(e))}}(r);e.on("drain",u);var c=!1;function p(t){l("ondata");var i=e.write(t);l("dest.write",i),!1===i&&((1===n.pipesCount&&n.pipes===e||n.pipesCount>1&&-1!==N(n.pipes,e))&&!c&&(l("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function f(t){l("onerror",t),g(),e.removeListener("error",f),0===i(e,"error")&&S(e,t)}function h(){e.removeListener("finish",d),g()}function d(){l("onfinish"),e.removeListener("close",h),g()}function g(){l("unpipe"),r.unpipe(e)}return r.on("data",p),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",f),e.once("close",h),e.once("finish",d),e.emit("pipe",r),n.flowing||(l("pipe resume"),r.resume()),e},O.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var s=N(t.pipes,e);return-1===s||(t.pipes.splice(s,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},O.prototype.on=function(e,t){var r=o.prototype.on.call(this,e,t),n=this._readableState;return"data"===e?(n.readableListening=this.listenerCount("readable")>0,!1!==n.flowing&&this.resume()):"readable"===e&&(n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,l("on readable",n.length,n.reading),n.length?P(this):n.reading||process.nextTick(k,this))),r},O.prototype.addListener=O.prototype.on,O.prototype.removeListener=function(e,t){var r=o.prototype.removeListener.call(this,e,t);return"readable"===e&&process.nextTick(C,this),r},O.prototype.removeAllListeners=function(e){var t=o.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||process.nextTick(C,this),t},O.prototype.resume=function(){var e=this._readableState;return e.flowing||(l("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(M,e,t))}(this,e)),e.paused=!1,this},O.prototype.pause=function(){return l("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(l("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},O.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",(function(){if(l("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){(l("wrapped data"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==i)||(r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<_.length;o++)e.on(_[o],this.emit.bind(this,_[o]));return this._read=function(t){l("wrapped _read",t),n&&(n=!1,e.resume())},this},"function"==typeof Symbol&&(O.prototype[Symbol.asyncIterator]=function(){return void 0===p&&(p=r(534)),p(this)}),Object.defineProperty(O.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(O.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(O.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),O._fromList=B,Object.defineProperty(O.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(O.from=function(e,t){return void 0===f&&(f=r(1260)),f(O,e,t)})},9415:(e,t,r)=>{"use strict";e.exports=c;var n=r(5699).F,i=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,s=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=n.ERR_TRANSFORM_WITH_LENGTH_0,l=r(1265);function u(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new o);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function c(e){if(!(this instanceof c))return new c(e);l.call(this,e),this._transformState={afterTransform:u.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",p)}function p(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?f(this,null,null):this._flush((function(t,r){f(e,t,r)}))}function f(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new a;if(e._transformState.transforming)throw new s;return e.push(null)}r(5615)(c,l),c.prototype.push=function(e,t){return this._transformState.needTransform=!1,l.prototype.push.call(this,e,t)},c.prototype._transform=function(e,t,r){r(new i("_transform()"))},c.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},c.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},c.prototype._destroy=function(e,t){l.prototype._destroy.call(this,e,(function(e){t(e)}))}},5291:(e,t,r)=>{"use strict";function n(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;e.entry=null;for(;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree.next=e}(t,e)}}var i;e.exports=O,O.WritableState=E;var o={deprecate:r(6732)},s=r(4856),a=r(1048).Buffer,l=(void 0!==r.g?r.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var u,c=r(6527),p=r(9952).getHighWaterMark,f=r(5699).F,h=f.ERR_INVALID_ARG_TYPE,d=f.ERR_METHOD_NOT_IMPLEMENTED,g=f.ERR_MULTIPLE_CALLBACK,y=f.ERR_STREAM_CANNOT_PIPE,v=f.ERR_STREAM_DESTROYED,m=f.ERR_STREAM_NULL_VALUES,b=f.ERR_STREAM_WRITE_AFTER_END,w=f.ERR_UNKNOWN_ENCODING,S=c.errorOrDestroy;function _(){}function E(e,t,o){i=i||r(1265),e=e||{},"boolean"!=typeof o&&(o=t instanceof i),this.objectMode=!!e.objectMode,o&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=p(this,e,"writableHighWaterMark",o),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===e.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if("function"!=typeof i)throw new g;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,n,i){--t.pendingcb,r?(process.nextTick(i,n),process.nextTick(A,e,t),e._writableState.errorEmitted=!0,S(e,n)):(i(n),e._writableState.errorEmitted=!0,S(e,n),A(e,t))}(e,r,n,t,i);else{var o=P(r)||e.destroyed;o||r.corked||r.bufferProcessing||!r.bufferedRequest||j(e,r),n?process.nextTick(T,e,r,o,i):T(e,r,o,i)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new n(this)}function O(e){var t=this instanceof(i=i||r(1265));if(!t&&!u.call(O,this))return new O(e);this._writableState=new E(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),s.call(this)}function R(e,t,r,n,i,o,s){t.writelen=n,t.writecb=s,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new v("write")):r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function T(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),A(e,t)}function j(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var i=t.bufferedRequestCount,o=new Array(i),s=t.corkedRequestsFree;s.entry=r;for(var a=0,l=!0;r;)o[a]=r,r.isBuf||(l=!1),r=r.next,a+=1;o.allBuffers=l,R(e,t,!0,t.length,o,"",s.finish),t.pendingcb++,t.lastBufferedRequest=null,s.next?(t.corkedRequestsFree=s.next,s.next=null):t.corkedRequestsFree=new n(t),t.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,c=r.encoding,p=r.callback;if(R(e,t,!1,t.objectMode?1:u.length,u,c,p),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function P(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function x(e,t){e._final((function(r){t.pendingcb--,r&&S(e,r),t.prefinished=!0,e.emit("prefinish"),A(e,t)}))}function A(e,t){var r=P(t);if(r&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,process.nextTick(x,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var n=e._readableState;(!n||n.autoDestroy&&n.endEmitted)&&e.destroy()}return r}r(5615)(O,s),E.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(E.prototype,"buffer",{get:o.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(u=Function.prototype[Symbol.hasInstance],Object.defineProperty(O,Symbol.hasInstance,{value:function(e){return!!u.call(this,e)||this===O&&(e&&e._writableState instanceof E)}})):u=function(e){return e instanceof this},O.prototype.pipe=function(){S(this,new y)},O.prototype.write=function(e,t,r){var n,i=this._writableState,o=!1,s=!i.objectMode&&(n=e,a.isBuffer(n)||n instanceof l);return s&&!a.isBuffer(e)&&(e=function(e){return a.from(e)}(e)),"function"==typeof t&&(r=t,t=null),s?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof r&&(r=_),i.ending?function(e,t){var r=new b;S(e,r),process.nextTick(t,r)}(this,r):(s||function(e,t,r,n){var i;return null===r?i=new m:"string"==typeof r||t.objectMode||(i=new h("chunk",["string","Buffer"],r)),!i||(S(e,i),process.nextTick(n,i),!1)}(this,i,e,r))&&(i.pendingcb++,o=function(e,t,r,n,i,o){if(!r){var s=function(e,t,r){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=a.from(t,r));return t}(t,n,i);n!==s&&(r=!0,i="buffer",n=s)}var l=t.objectMode?1:n.length;t.length+=l;var u=t.length<t.highWaterMark;u||(t.needDrain=!0);if(t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else R(e,t,!1,l,n,i,o);return u}(this,i,s,e,t,r)),o},O.prototype.cork=function(){this._writableState.corked++},O.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||j(this,e))},O.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new w(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(O.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(O.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),O.prototype._write=function(e,t,r){r(new d("_write()"))},O.prototype._writev=null,O.prototype.end=function(e,t,r){var n=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||function(e,t,r){t.ending=!0,A(e,t),r&&(t.finished?process.nextTick(r):e.once("finish",r));t.ended=!0,e.writable=!1}(this,n,r),this},Object.defineProperty(O.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(O.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),O.prototype.destroy=c.destroy,O.prototype._undestroy=c.undestroy,O.prototype._destroy=function(e,t){t(e)}},534:(e,t,r)=>{"use strict";var n;function i(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o=r(4869),s=Symbol("lastResolve"),a=Symbol("lastReject"),l=Symbol("error"),u=Symbol("ended"),c=Symbol("lastPromise"),p=Symbol("handlePromise"),f=Symbol("stream");function h(e,t){return{value:e,done:t}}function d(e){var t=e[s];if(null!==t){var r=e[f].read();null!==r&&(e[c]=null,e[s]=null,e[a]=null,t(h(r,!1)))}}function g(e){process.nextTick(d,e)}var y=Object.getPrototypeOf((function(){})),v=Object.setPrototypeOf((i(n={get stream(){return this[f]},next:function(){var e=this,t=this[l];if(null!==t)return Promise.reject(t);if(this[u])return Promise.resolve(h(void 0,!0));if(this[f].destroyed)return new Promise((function(t,r){process.nextTick((function(){e[l]?r(e[l]):t(h(void 0,!0))}))}));var r,n=this[c];if(n)r=new Promise(function(e,t){return function(r,n){e.then((function(){t[u]?r(h(void 0,!0)):t[p](r,n)}),n)}}(n,this));else{var i=this[f].read();if(null!==i)return Promise.resolve(h(i,!1));r=new Promise(this[p])}return this[c]=r,r}},Symbol.asyncIterator,(function(){return this})),i(n,"return",(function(){var e=this;return new Promise((function(t,r){e[f].destroy(null,(function(e){e?r(e):t(h(void 0,!0))}))}))})),n),y);e.exports=function(e){var t,r=Object.create(v,(i(t={},f,{value:e,writable:!0}),i(t,s,{value:null,writable:!0}),i(t,a,{value:null,writable:!0}),i(t,l,{value:null,writable:!0}),i(t,u,{value:e._readableState.endEmitted,writable:!0}),i(t,p,{value:function(e,t){var n=r[f].read();n?(r[c]=null,r[s]=null,r[a]=null,e(h(n,!1))):(r[s]=e,r[a]=t)},writable:!0}),t));return r[c]=null,o(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[a];return null!==t&&(r[c]=null,r[s]=null,r[a]=null,t(e)),void(r[l]=e)}var n=r[s];null!==n&&(r[c]=null,r[s]=null,r[a]=null,n(h(void 0,!0))),r[u]=!0})),e.on("readable",g.bind(null,r)),r}},82:(e,t,r)=>{"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function o(e,t,r){return(t=a(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,a(n.key),n)}}function a(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var l=r(1048).Buffer,u=r(3011).inspect,c=u&&u.custom||"inspect";e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}var t,r,n;return t=e,(r=[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return l.alloc(0);for(var t,r,n,i=l.allocUnsafe(e>>>0),o=this.head,s=0;o;)t=o.data,r=i,n=s,l.prototype.copy.call(t,r,n),s+=o.data.length,o=o.next;return i}},{key:"consume",value:function(e,t){var r;return e<this.head.data.length?(r=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,r=1,n=t.data;for(e-=n.length;t=t.next;){var i=t.data,o=e>i.length?i.length:e;if(o===i.length?n+=i:n+=i.slice(0,e),0==(e-=o)){o===i.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=l.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var i=r.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),0==(e-=o)){o===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(o));break}++n}return this.length-=n,t}},{key:c,value:function(e,t){return u(this,i(i({},t),{},{depth:0,customInspect:!1}))}}])&&s(t.prototype,r),n&&s(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}()},6527:e=>{"use strict";function t(e,t){n(e,t),r(e)}function r(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function n(e,t){e.emit("error",t)}e.exports={destroy:function(e,i){var o=this,s=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return s||a?(i?i(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(n,this,e)):process.nextTick(n,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!i&&e?o._writableState?o._writableState.errorEmitted?process.nextTick(r,o):(o._writableState.errorEmitted=!0,process.nextTick(t,o,e)):process.nextTick(t,o,e):i?(process.nextTick(r,o),i(e)):process.nextTick(r,o)})),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(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}}},4869:(e,t,r)=>{"use strict";var n=r(5699).F.ERR_STREAM_PREMATURE_CLOSE;function i(){}e.exports=function e(t,r,o){if("function"==typeof r)return e(t,null,r);r||(r={}),o=function(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];e.apply(this,n)}}}(o||i);var s=r.readable||!1!==r.readable&&t.readable,a=r.writable||!1!==r.writable&&t.writable,l=function(){t.writable||c()},u=t._writableState&&t._writableState.finished,c=function(){a=!1,u=!0,s||o.call(t)},p=t._readableState&&t._readableState.endEmitted,f=function(){s=!1,p=!0,a||o.call(t)},h=function(e){o.call(t,e)},d=function(){var e;return s&&!p?(t._readableState&&t._readableState.ended||(e=new n),o.call(t,e)):a&&!u?(t._writableState&&t._writableState.ended||(e=new n),o.call(t,e)):void 0},g=function(){t.req.on("finish",c)};return!function(e){return e.setHeader&&"function"==typeof e.abort}(t)?a&&!t._writableState&&(t.on("end",l),t.on("close",l)):(t.on("complete",c),t.on("abort",d),t.req?g():t.on("request",g)),t.on("end",f),t.on("finish",c),!1!==r.error&&t.on("error",h),t.on("close",d),function(){t.removeListener("complete",c),t.removeListener("abort",d),t.removeListener("request",g),t.req&&t.req.removeListener("finish",c),t.removeListener("end",l),t.removeListener("close",l),t.removeListener("finish",c),t.removeListener("end",f),t.removeListener("error",h),t.removeListener("close",d)}}},1260:e=>{e.exports=function(){throw new Error("Readable.from is not available in the browser")}},6815:(e,t,r)=>{"use strict";var n;var i=r(5699).F,o=i.ERR_MISSING_ARGS,s=i.ERR_STREAM_DESTROYED;function a(e){if(e)throw e}function l(e,t,i,o){o=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(o);var a=!1;e.on("close",(function(){a=!0})),void 0===n&&(n=r(4869)),n(e,{readable:t,writable:i},(function(e){if(e)return o(e);a=!0,o()}));var l=!1;return function(t){if(!a&&!l)return l=!0,function(e){return e.setHeader&&"function"==typeof e.abort}(e)?e.abort():"function"==typeof e.destroy?e.destroy():void o(t||new s("pipe"))}}function u(e){e()}function c(e,t){return e.pipe(t)}function p(e){return e.length?"function"!=typeof e[e.length-1]?a:e.pop():a}e.exports=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n,i=p(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new o("streams");var s=t.map((function(e,r){var o=r<t.length-1;return l(e,o,r>0,(function(e){n||(n=e),e&&s.forEach(u),o||(s.forEach(u),i(n))}))}));return t.reduce(c)}},9952:(e,t,r)=>{"use strict";var n=r(5699).F.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,r,i){var o=function(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}(t,i,r);if(null!=o){if(!isFinite(o)||Math.floor(o)!==o||o<0)throw new n(i?r:"highWaterMark",o);return Math.floor(o)}return e.objectMode?16:16384}}},4856:(e,t,r)=>{e.exports=r(46).EventEmitter},4156:(e,t,r)=>{(t=e.exports=r(8199)).Stream=t,t.Readable=t,t.Writable=r(5291),t.Duplex=r(1265),t.Transform=r(9415),t.PassThrough=r(4421),t.finished=r(4869),t.pipeline=r(6815)},5636:(e,t,r)=>{var n=r(1048),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function s(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=s),s.prototype=Object.create(i.prototype),o(i,s),s.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},s.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},s.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},s.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},1145:(e,t)=>{"use strict";const{hasOwnProperty:r}=Object.prototype,n=d();n.configure=d,n.stringify=n,n.default=n,t.stringify=n,t.configure=d,e.exports=n;const i=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]|[\ud800-\udbff](?![\udc00-\udfff])|(?:[^\ud800-\udbff]|^)[\udc00-\udfff]/;function o(e){return e.length<5e3&&!i.test(e)?`"${e}"`:JSON.stringify(e)}function s(e){if(e.length>200)return e.sort();for(let t=1;t<e.length;t++){const r=e[t];let n=t;for(;0!==n&&e[n-1]>r;)e[n]=e[n-1],n--;e[n]=r}return e}const a=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function l(e){return void 0!==a.call(e)&&0!==e.length}function u(e,t,r){e.length<r&&(r=e.length);const n=","===t?"":" ";let i=`"0":${n}${e[0]}`;for(let o=1;o<r;o++)i+=`${t}"${o}":${n}${e[o]}`;return i}function c(e,t){let n;if(r.call(e,t)&&(n=e[t],"boolean"!=typeof n))throw new TypeError(`The "${t}" argument must be of type boolean`);return void 0===n||n}function p(e,t){let n;if(r.call(e,t)){if(n=e[t],"number"!=typeof n)throw new TypeError(`The "${t}" argument must be of type number`);if(!Number.isInteger(n))throw new TypeError(`The "${t}" argument must be an integer`);if(n<1)throw new RangeError(`The "${t}" argument must be >= 1`)}return void 0===n?1/0:n}function f(e){return 1===e?"1 item":e+" items"}function h(e){const t=new Set;for(const r of e)"string"!=typeof r&&"number"!=typeof r||t.add(String(r));return t}function d(e){const t=function(e){if(r.call(e,"strict")){const t=e.strict;if("boolean"!=typeof t)throw new TypeError('The "strict" argument must be of type boolean');if(t)return e=>{let t="Object can not safely be stringified. Received type "+typeof e;throw"function"!=typeof e&&(t+=` (${e.toString()})`),new Error(t)}}}(e={...e});t&&(void 0===e.bigint&&(e.bigint=!1),"circularValue"in e||(e.circularValue=Error));const n=function(e){if(r.call(e,"circularValue")){const t=e.circularValue;if("string"==typeof t)return`"${t}"`;if(null==t)return t;if(t===Error||t===TypeError)return{toString(){throw new TypeError("Converting circular structure to JSON")}};throw new TypeError('The "circularValue" argument must be of type string or the value null or undefined')}return'"[Circular]"'}(e),i=c(e,"bigint"),a=c(e,"deterministic"),d=p(e,"maximumDepth"),g=p(e,"maximumBreadth");function y(e,r,u,c,p,h){let v=r[e];switch("object"==typeof v&&null!==v&&"function"==typeof v.toJSON&&(v=v.toJSON(e)),v=c.call(r,e,v),typeof v){case"string":return o(v);case"object":{if(null===v)return"null";if(-1!==u.indexOf(v))return n;let e="",t=",";const r=h;if(Array.isArray(v)){if(0===v.length)return"[]";if(d<u.length+1)return'"[Array]"';u.push(v),""!==p&&(e+="\n"+(h+=p),t=",\n"+h);const n=Math.min(v.length,g);let i=0;for(;i<n-1;i++){const r=y(String(i),v,u,c,p,h);e+=void 0!==r?r:"null",e+=t}const o=y(String(i),v,u,c,p,h);if(e+=void 0!==o?o:"null",v.length-1>g){e+=`${t}"... ${f(v.length-g-1)} not stringified"`}return""!==p&&(e+="\n"+r),u.pop(),`[${e}]`}let i=Object.keys(v);const m=i.length;if(0===m)return"{}";if(d<u.length+1)return'"[Object]"';let b="",w="";""!==p&&(t=",\n"+(h+=p),b=" ");const S=Math.min(m,g);a&&!l(v)&&(i=s(i)),u.push(v);for(let r=0;r<S;r++){const n=i[r],s=y(n,v,u,c,p,h);void 0!==s&&(e+=`${w}${o(n)}:${b}${s}`,w=t)}if(m>g){e+=`${w}"...":${b}"${f(m-g)} not stringified"`,w=t}return""!==p&&w.length>1&&(e=`\n${h}${e}\n${r}`),u.pop(),`{${e}}`}case"number":return isFinite(v)?String(v):t?t(v):"null";case"boolean":return!0===v?"true":"false";case"undefined":return;case"bigint":if(i)return String(v);default:return t?t(v):void 0}}function v(e,r,s,a,l,u){switch("object"==typeof r&&null!==r&&"function"==typeof r.toJSON&&(r=r.toJSON(e)),typeof r){case"string":return o(r);case"object":{if(null===r)return"null";if(-1!==s.indexOf(r))return n;const e=u;let t="",i=",";if(Array.isArray(r)){if(0===r.length)return"[]";if(d<s.length+1)return'"[Array]"';s.push(r),""!==l&&(t+="\n"+(u+=l),i=",\n"+u);const n=Math.min(r.length,g);let o=0;for(;o<n-1;o++){const e=v(String(o),r[o],s,a,l,u);t+=void 0!==e?e:"null",t+=i}const c=v(String(o),r[o],s,a,l,u);if(t+=void 0!==c?c:"null",r.length-1>g){t+=`${i}"... ${f(r.length-g-1)} not stringified"`}return""!==l&&(t+="\n"+e),s.pop(),`[${t}]`}s.push(r);let c="";""!==l&&(i=",\n"+(u+=l),c=" ");let p="";for(const e of a){const n=v(e,r[e],s,a,l,u);void 0!==n&&(t+=`${p}${o(e)}:${c}${n}`,p=i)}return""!==l&&p.length>1&&(t=`\n${u}${t}\n${e}`),s.pop(),`{${t}}`}case"number":return isFinite(r)?String(r):t?t(r):"null";case"boolean":return!0===r?"true":"false";case"undefined":return;case"bigint":if(i)return String(r);default:return t?t(r):void 0}}function m(e,r,c,p,h){switch(typeof r){case"string":return o(r);case"object":{if(null===r)return"null";if("function"==typeof r.toJSON){if("object"!=typeof(r=r.toJSON(e)))return m(e,r,c,p,h);if(null===r)return"null"}if(-1!==c.indexOf(r))return n;const t=h;if(Array.isArray(r)){if(0===r.length)return"[]";if(d<c.length+1)return'"[Array]"';c.push(r);let e="\n"+(h+=p);const n=",\n"+h,i=Math.min(r.length,g);let o=0;for(;o<i-1;o++){const t=m(String(o),r[o],c,p,h);e+=void 0!==t?t:"null",e+=n}const s=m(String(o),r[o],c,p,h);if(e+=void 0!==s?s:"null",r.length-1>g){e+=`${n}"... ${f(r.length-g-1)} not stringified"`}return e+="\n"+t,c.pop(),`[${e}]`}let i=Object.keys(r);const y=i.length;if(0===y)return"{}";if(d<c.length+1)return'"[Object]"';const v=",\n"+(h+=p);let b="",w="",S=Math.min(y,g);l(r)&&(b+=u(r,v,g),i=i.slice(r.length),S-=r.length,w=v),a&&(i=s(i)),c.push(r);for(let e=0;e<S;e++){const t=i[e],n=m(t,r[t],c,p,h);void 0!==n&&(b+=`${w}${o(t)}: ${n}`,w=v)}if(y>g){b+=`${w}"...": "${f(y-g)} not stringified"`,w=v}return""!==w&&(b=`\n${h}${b}\n${t}`),c.pop(),`{${b}}`}case"number":return isFinite(r)?String(r):t?t(r):"null";case"boolean":return!0===r?"true":"false";case"undefined":return;case"bigint":if(i)return String(r);default:return t?t(r):void 0}}function b(e,r,c){switch(typeof r){case"string":return o(r);case"object":{if(null===r)return"null";if("function"==typeof r.toJSON){if("object"!=typeof(r=r.toJSON(e)))return b(e,r,c);if(null===r)return"null"}if(-1!==c.indexOf(r))return n;let t="";if(Array.isArray(r)){if(0===r.length)return"[]";if(d<c.length+1)return'"[Array]"';c.push(r);const e=Math.min(r.length,g);let n=0;for(;n<e-1;n++){const e=b(String(n),r[n],c);t+=void 0!==e?e:"null",t+=","}const i=b(String(n),r[n],c);if(t+=void 0!==i?i:"null",r.length-1>g){t+=`,"... ${f(r.length-g-1)} not stringified"`}return c.pop(),`[${t}]`}let i=Object.keys(r);const p=i.length;if(0===p)return"{}";if(d<c.length+1)return'"[Object]"';let h="",y=Math.min(p,g);l(r)&&(t+=u(r,",",g),i=i.slice(r.length),y-=r.length,h=","),a&&(i=s(i)),c.push(r);for(let e=0;e<y;e++){const n=i[e],s=b(n,r[n],c);void 0!==s&&(t+=`${h}${o(n)}:${s}`,h=",")}if(p>g){t+=`${h}"...":"${f(p-g)} not stringified"`}return c.pop(),`{${t}}`}case"number":return isFinite(r)?String(r):t?t(r):"null";case"boolean":return!0===r?"true":"false";case"undefined":return;case"bigint":if(i)return String(r);default:return t?t(r):void 0}}return function(e,t,r){if(arguments.length>1){let n="";if("number"==typeof r?n=" ".repeat(Math.min(r,10)):"string"==typeof r&&(n=r.slice(0,10)),null!=t){if("function"==typeof t)return y("",{"":e},[],t,n,"");if(Array.isArray(t))return v("",e,[],h(t),n,"")}if(0!==n.length)return m("",e,[],n,"")}return b("",e,[])}}},6108:(e,t,r)=>{"use strict";var n=r(528),i=r(686),o=r(7239)(),s=r(9336),a=r(3468),l=n("%Math.floor%");e.exports=function(e,t){if("function"!=typeof e)throw new a("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||l(t)!==t)throw new a("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,u=!0;if("length"in e&&s){var c=s(e,"length");c&&!c.configurable&&(n=!1),c&&!c.writable&&(u=!1)}return(n||u||!r)&&(o?i(e,"length",t,!0,!0):i(e,"length",t)),e}},7575:(e,t,r)=>{"use strict";var n=r(528),i=r(9818),o=r(8660),s=r(3468),a=n("%WeakMap%",!0),l=n("%Map%",!0),u=i("WeakMap.prototype.get",!0),c=i("WeakMap.prototype.set",!0),p=i("WeakMap.prototype.has",!0),f=i("Map.prototype.get",!0),h=i("Map.prototype.set",!0),d=i("Map.prototype.has",!0),g=function(e,t){for(var r,n=e;null!==(r=n.next);n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r};e.exports=function(){var e,t,r,n={assert:function(e){if(!n.has(e))throw new s("Side channel does not contain "+o(e))},get:function(n){if(a&&n&&("object"==typeof n||"function"==typeof n)){if(e)return u(e,n)}else if(l){if(t)return f(t,n)}else if(r)return function(e,t){var r=g(e,t);return r&&r.value}(r,n)},has:function(n){if(a&&n&&("object"==typeof n||"function"==typeof n)){if(e)return p(e,n)}else if(l){if(t)return d(t,n)}else if(r)return function(e,t){return!!g(e,t)}(r,n);return!1},set:function(n,i){a&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new a),c(e,n,i)):l?(t||(t=new l),h(t,n,i)):(r||(r={key:{},next:null}),function(e,t,r){var n=g(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}}(r,n,i))}};return n}},5082:(e,t)=>{function r(e){for(var t in e)this[t]=e[t]}t.get=function(e){var r=Error.stackTraceLimit;Error.stackTraceLimit=1/0;var n={},i=Error.prepareStackTrace;Error.prepareStackTrace=function(e,t){return t},Error.captureStackTrace(n,e||t.get);var o=n.stack;return Error.prepareStackTrace=i,Error.stackTraceLimit=r,o},t.parse=function(e){if(!e.stack)return[];var t=this;return e.stack.split("\n").slice(1).map((function(e){if(e.match(/^\s*[-]{4,}$/))return t._createParsedCallSite({fileName:e,lineNumber:null,functionName:null,typeName:null,methodName:null,columnNumber:null,native:null});var r=e.match(/at (?:(.+)\s+\()?(?:(.+?):(\d+)(?::(\d+))?|([^)]+))\)?/);if(r){var n=null,i=null,o=null,s=null,a=null,l="native"===r[5];if(r[1]){var u=(o=r[1]).lastIndexOf(".");if("."==o[u-1]&&u--,u>0){n=o.substr(0,u),i=o.substr(u+1);var c=n.indexOf(".Module");c>0&&(o=o.substr(c+1),n=n.substr(0,c))}s=null}i&&(s=n,a=i),"<anonymous>"===i&&(a=null,o=null);var p={fileName:r[2]||null,lineNumber:parseInt(r[3],10)||null,functionName:o,typeName:s,methodName:a,columnNumber:parseInt(r[4],10)||null,native:l};return t._createParsedCallSite(p)}})).filter((function(e){return!!e}))};["this","typeName","functionName","methodName","fileName","lineNumber","columnNumber","function","evalOrigin"].forEach((function(e){r.prototype[e]=null,r.prototype["get"+e[0].toUpperCase()+e.substr(1)]=function(){return this[e]}})),["topLevel","eval","native","constructor"].forEach((function(e){r.prototype[e]=!1,r.prototype["is"+e[0].toUpperCase()+e.substr(1)]=function(){return this[e]}})),t._createParsedCallSite=function(e){return new r(e)}},1983:(e,t,r)=>{e.exports=i;var n=r(46).EventEmitter;function i(){n.call(this)}r(5615)(i,n),i.Readable=r(8199),i.Writable=r(5291),i.Duplex=r(1265),i.Transform=r(9415),i.PassThrough=r(4421),i.finished=r(4869),i.pipeline=r(6815),i.Stream=i,i.prototype.pipe=function(e,t){var r=this;function i(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function o(){r.readable&&r.resume&&r.resume()}r.on("data",i),e.on("drain",o),e._isStdio||t&&!1===t.end||(r.on("end",a),r.on("close",l));var s=!1;function a(){s||(s=!0,e.end())}function l(){s||(s=!0,"function"==typeof e.destroy&&e.destroy())}function u(e){if(c(),0===n.listenerCount(this,"error"))throw e}function c(){r.removeListener("data",i),e.removeListener("drain",o),r.removeListener("end",a),r.removeListener("close",l),r.removeListener("error",u),e.removeListener("error",u),r.removeListener("end",c),r.removeListener("close",c),e.removeListener("close",c)}return r.on("error",u),e.on("error",u),r.on("end",c),r.on("close",c),e.on("close",c),e.emit("pipe",r),e}},4865:(e,t,r)=>{var n=r(6255),i=r(6846),o=r(3227),s=r(49),a=r(5442),l=t;l.request=function(e,t){e="string"==typeof e?a.parse(e):o(e);var i=-1===r.g.location.protocol.search(/^https?:$/)?"http:":"",s=e.protocol||i,l=e.hostname||e.host,u=e.port,c=e.path||"/";l&&-1!==l.indexOf(":")&&(l="["+l+"]"),e.url=(l?s+"//"+l:"")+(u?":"+u:"")+c,e.method=(e.method||"GET").toUpperCase(),e.headers=e.headers||{};var p=new n(e);return t&&p.on("response",t),p},l.get=function(e,t){var r=l.request(e,t);return r.end(),r},l.ClientRequest=n,l.IncomingMessage=i.IncomingMessage,l.Agent=function(){},l.Agent.defaultMaxSockets=4,l.globalAgent=new l.Agent,l.STATUS_CODES=s,l.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"]},2271:(e,t,r)=>{var n;function i(){if(void 0!==n)return n;if(r.g.XMLHttpRequest){n=new r.g.XMLHttpRequest;try{n.open("GET",r.g.XDomainRequest?"/":"https://example.com")}catch(e){n=null}}else n=null;return n}function o(e){var t=i();if(!t)return!1;try{return t.responseType=e,t.responseType===e}catch(e){}return!1}function s(e){return"function"==typeof e}t.fetch=s(r.g.fetch)&&s(r.g.ReadableStream),t.writableStream=s(r.g.WritableStream),t.abortController=s(r.g.AbortController),t.arraybuffer=t.fetch||o("arraybuffer"),t.msstream=!t.fetch&&o("ms-stream"),t.mozchunkedarraybuffer=!t.fetch&&o("moz-chunked-arraybuffer"),t.overrideMimeType=t.fetch||!!i()&&s(i().overrideMimeType),n=null},6255:(e,t,r)=>{var n=r(2271),i=r(5615),o=r(6846),s=r(4156),a=o.IncomingMessage,l=o.readyStates;var u=e.exports=function(e){var t,r=this;s.Writable.call(r),r._opts=e,r._body=[],r._headers={},e.auth&&r.setHeader("Authorization","Basic "+Buffer.from(e.auth).toString("base64")),Object.keys(e.headers).forEach((function(t){r.setHeader(t,e.headers[t])}));var i=!0;if("disable-fetch"===e.mode||"requestTimeout"in e&&!n.abortController)i=!1,t=!0;else if("prefer-streaming"===e.mode)t=!1;else if("allow-wrong-content-type"===e.mode)t=!n.overrideMimeType;else{if(e.mode&&"default"!==e.mode&&"prefer-fast"!==e.mode)throw new Error("Invalid value for opts.mode");t=!0}r._mode=function(e,t){return n.fetch&&t?"fetch":n.mozchunkedarraybuffer?"moz-chunked-arraybuffer":n.msstream?"ms-stream":n.arraybuffer&&e?"arraybuffer":"text"}(t,i),r._fetchTimer=null,r._socketTimeout=null,r._socketTimer=null,r.on("finish",(function(){r._onFinish()}))};i(u,s.Writable),u.prototype.setHeader=function(e,t){var r=e.toLowerCase();-1===c.indexOf(r)&&(this._headers[r]={name:e,value:t})},u.prototype.getHeader=function(e){var t=this._headers[e.toLowerCase()];return t?t.value:null},u.prototype.removeHeader=function(e){delete this._headers[e.toLowerCase()]},u.prototype._onFinish=function(){var e=this;if(!e._destroyed){var t=e._opts;"timeout"in t&&0!==t.timeout&&e.setTimeout(t.timeout);var i=e._headers,o=null;"GET"!==t.method&&"HEAD"!==t.method&&(o=new Blob(e._body,{type:(i["content-type"]||{}).value||""}));var s=[];if(Object.keys(i).forEach((function(e){var t=i[e].name,r=i[e].value;Array.isArray(r)?r.forEach((function(e){s.push([t,e])})):s.push([t,r])})),"fetch"===e._mode){var a=null;if(n.abortController){var u=new AbortController;a=u.signal,e._fetchAbortController=u,"requestTimeout"in t&&0!==t.requestTimeout&&(e._fetchTimer=r.g.setTimeout((function(){e.emit("requestTimeout"),e._fetchAbortController&&e._fetchAbortController.abort()}),t.requestTimeout))}r.g.fetch(e._opts.url,{method:e._opts.method,headers:s,body:o||void 0,mode:"cors",credentials:t.withCredentials?"include":"same-origin",signal:a}).then((function(t){e._fetchResponse=t,e._resetTimers(!1),e._connect()}),(function(t){e._resetTimers(!0),e._destroyed||e.emit("error",t)}))}else{var c=e._xhr=new r.g.XMLHttpRequest;try{c.open(e._opts.method,e._opts.url,!0)}catch(t){return void process.nextTick((function(){e.emit("error",t)}))}"responseType"in c&&(c.responseType=e._mode),"withCredentials"in c&&(c.withCredentials=!!t.withCredentials),"text"===e._mode&&"overrideMimeType"in c&&c.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in t&&(c.timeout=t.requestTimeout,c.ontimeout=function(){e.emit("requestTimeout")}),s.forEach((function(e){c.setRequestHeader(e[0],e[1])})),e._response=null,c.onreadystatechange=function(){switch(c.readyState){case l.LOADING:case l.DONE:e._onXHRProgress()}},"moz-chunked-arraybuffer"===e._mode&&(c.onprogress=function(){e._onXHRProgress()}),c.onerror=function(){e._destroyed||(e._resetTimers(!0),e.emit("error",new Error("XHR error")))};try{c.send(o)}catch(t){return void process.nextTick((function(){e.emit("error",t)}))}}}},u.prototype._onXHRProgress=function(){this._resetTimers(!1),function(e){try{var t=e.status;return null!==t&&0!==t}catch(e){return!1}}(this._xhr)&&!this._destroyed&&(this._response||this._connect(),this._response._onXHRProgress(this._resetTimers.bind(this)))},u.prototype._connect=function(){var e=this;e._destroyed||(e._response=new a(e._xhr,e._fetchResponse,e._mode,e._resetTimers.bind(e)),e._response.on("error",(function(t){e.emit("error",t)})),e.emit("response",e._response))},u.prototype._write=function(e,t,r){this._body.push(e),r()},u.prototype._resetTimers=function(e){var t=this;r.g.clearTimeout(t._socketTimer),t._socketTimer=null,e?(r.g.clearTimeout(t._fetchTimer),t._fetchTimer=null):t._socketTimeout&&(t._socketTimer=r.g.setTimeout((function(){t.emit("timeout")}),t._socketTimeout))},u.prototype.abort=u.prototype.destroy=function(e){this._destroyed=!0,this._resetTimers(!0),this._response&&(this._response._destroyed=!0),this._xhr?this._xhr.abort():this._fetchAbortController&&this._fetchAbortController.abort(),e&&this.emit("error",e)},u.prototype.end=function(e,t,r){"function"==typeof e&&(r=e,e=void 0),s.Writable.prototype.end.call(this,e,t,r)},u.prototype.setTimeout=function(e,t){t&&this.once("timeout",t),this._socketTimeout=e,this._resetTimers(!1)},u.prototype.flushHeaders=function(){},u.prototype.setNoDelay=function(){},u.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"]},6846:(e,t,r)=>{var n=r(2271),i=r(5615),o=r(4156),s=t.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},a=t.IncomingMessage=function(e,t,r,i){var s=this;if(o.Readable.call(s),s._mode=r,s.headers={},s.rawHeaders=[],s.trailers={},s.rawTrailers=[],s.on("end",(function(){process.nextTick((function(){s.emit("close")}))})),"fetch"===r){if(s._fetchResponse=t,s.url=t.url,s.statusCode=t.status,s.statusMessage=t.statusText,t.headers.forEach((function(e,t){s.headers[t.toLowerCase()]=e,s.rawHeaders.push(t,e)})),n.writableStream){var a=new WritableStream({write:function(e){return i(!1),new Promise((function(t,r){s._destroyed?r():s.push(Buffer.from(e))?t():s._resumeFetch=t}))},close:function(){i(!0),s._destroyed||s.push(null)},abort:function(e){i(!0),s._destroyed||s.emit("error",e)}});try{return void t.body.pipeTo(a).catch((function(e){i(!0),s._destroyed||s.emit("error",e)}))}catch(e){}}var l=t.body.getReader();!function e(){l.read().then((function(t){s._destroyed||(i(t.done),t.done?s.push(null):(s.push(Buffer.from(t.value)),e()))})).catch((function(e){i(!0),s._destroyed||s.emit("error",e)}))}()}else{if(s._xhr=e,s._pos=0,s.url=e.responseURL,s.statusCode=e.status,s.statusMessage=e.statusText,e.getAllResponseHeaders().split(/\r?\n/).forEach((function(e){var t=e.match(/^([^:]+):\s*(.*)/);if(t){var r=t[1].toLowerCase();"set-cookie"===r?(void 0===s.headers[r]&&(s.headers[r]=[]),s.headers[r].push(t[2])):void 0!==s.headers[r]?s.headers[r]+=", "+t[2]:s.headers[r]=t[2],s.rawHeaders.push(t[1],t[2])}})),s._charset="x-user-defined",!n.overrideMimeType){var u=s.rawHeaders["mime-type"];if(u){var c=u.match(/;\s*charset=([^;])(;|$)/);c&&(s._charset=c[1].toLowerCase())}s._charset||(s._charset="utf-8")}}};i(a,o.Readable),a.prototype._read=function(){var e=this._resumeFetch;e&&(this._resumeFetch=null,e())},a.prototype._onXHRProgress=function(e){var t=this,n=t._xhr,i=null;switch(t._mode){case"text":if((i=n.responseText).length>t._pos){var o=i.substr(t._pos);if("x-user-defined"===t._charset){for(var a=Buffer.alloc(o.length),l=0;l<o.length;l++)a[l]=255&o.charCodeAt(l);t.push(a)}else t.push(o,t._charset);t._pos=i.length}break;case"arraybuffer":if(n.readyState!==s.DONE||!n.response)break;i=n.response,t.push(Buffer.from(new Uint8Array(i)));break;case"moz-chunked-arraybuffer":if(i=n.response,n.readyState!==s.LOADING||!i)break;t.push(Buffer.from(new Uint8Array(i)));break;case"ms-stream":if(i=n.response,n.readyState!==s.LOADING)break;var u=new r.g.MSStreamReader;u.onprogress=function(){u.result.byteLength>t._pos&&(t.push(Buffer.from(new Uint8Array(u.result.slice(t._pos)))),t._pos=u.result.byteLength)},u.onload=function(){e(!0),t.push(null)},u.readAsArrayBuffer(i)}t._xhr.readyState===s.DONE&&"ms-stream"!==t._mode&&(e(!0),t.push(null))}},8888:(e,t,r)=>{"use strict";var n=r(5636).Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.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 o(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){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 e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=l,this.end=u,t=4;break;case"utf8":this.fillLast=a,t=4;break;case"base64":this.text=c,this.end=p,t=3;break;default:return this.write=f,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function s(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function a(e){var t=this.lastTotal-this.lastNeed,r=function(e,t,r){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function l(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function u(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function c(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function p(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function f(e){return e.toString(this.encoding)}function h(e){return e&&e.length?this.write(e):""}t.StringDecoder=o,o.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},o.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},o.prototype.text=function(e,t){var r=function(e,t,r){var n=t.length-1;if(n<r)return 0;var i=s(t[n]);if(i>=0)return i>0&&(e.lastNeed=i-1),i;if(--n<r||-2===i)return 0;if((i=s(t[n]))>=0)return i>0&&(e.lastNeed=i-2),i;if(--n<r||-2===i)return 0;if((i=s(t[n]))>=0)return i>0&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},9023:(e,t)=>{"use strict";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"}},2797:(e,t,r)=>{"use strict";Object.defineProperty(t,"cli",{value:r(9023)}),Object.defineProperty(t,"npm",{value:r(5828)}),Object.defineProperty(t,"syslog",{value:r(7408)})},5828:(e,t)=>{"use strict";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"}},7408:(e,t)=>{"use strict";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"}},4966:(e,t,r)=>{"use strict";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(2797)})},7396:(e,t,r)=>{"use strict";r.d(t,{V:()=>g});var n=r(288),i=r.n(n),o=r(3778);class s extends Error{constructor(e,t,r){super("Connection failure: "+e.message),this.cause=e,this.url=t,this.retryable=r,this.name="ConnectionError",Object.setPrototypeOf(this,new.target.prototype)}}var a=r(7221),l=r(6452),u=r(5413),c=r(7197);class p extends Error{constructor(e,t){super(`Invalid headers (${JSON.stringify(e)}) for response: ${t.message}`),this.validationErrors=e,this.responseError=t}}var f=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))},h=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r};const d=new Set(["GET","HEAD","PUT","QUERY","DELETE","OPTIONS","TRACE"]);class g{constructor(e,t={}){if(this.endpoint=e,this.validateHeaders=e=>t.validateHeaders?t.validateHeaders(e):{},this.verbose=!1!==t.verbose,void 0!==t.retries&&!(t.retries>=0))throw new Error("retries must be positive or zero");if(this.configuredRetries=t.retries,void 0!==t.timeoutMs&&!(t.timeoutMs>0))throw new Error("timeoutMs must be positive");if(this.timeoutMs=t.timeoutMs,void 0!==t.maxBackoffDelayMs&&!(t.maxBackoffDelayMs>0))throw new Error("maxBackoffDelayMs must be positive");this.maxBackoffDelayMs=t.maxBackoffDelayMs||30*o.p.second,this.json=!1!==t.json}getRetries(){return void 0!==this.configuredRetries?this.configuredRetries:this.getConstructor().retries}getHeaders(){return{}}fetch(e){return f(this,arguments,void 0,(function*(e,t={}){return(yield this.fetchVerbose(e,t)).body}))}fetchVerbose(e){return f(this,arguments,void 0,(function*(e,t={}){let r=100*o.p.millisecond,n=0;const i=void 0!==this.timeoutMs?(new Date).getTime()+this.timeoutMs:void 0,c=i?()=>Math.max(i-(new Date).getTime(),0):void 0;for(;;)try{return yield this.doFetch(e,t,c)}catch(e){const t=e,i=(0,u.e)(t,s);if(0===(null==c?void 0:c())||n===this.getRetries()||!i.retryable)throw i;n++,r=Math.min(...c?[c()]:[],r*(2+.1*(Math.random()-.5)),this.maxBackoffDelayMs),yield(0,a.c)(r),this.verbose&&l.vF.warn("Connection failure, retrying. Error: "+t.cause.message,{url:t.url,error:t.cause,attempt:n})}}))}doFetch(e,t,r){return f(this,void 0,void 0,(function*(){const{token:n,json:a=this.json,allowUnsafeRetries:f}=t,g=h(t,["token","json","allowUnsafeRetries"]),y=(g.method||"GET").toUpperCase(),v=void 0!==this.endpoint?`${this.endpoint}${e?"/"+e:""}`:e,m=new AbortController;let b;if(r){const e=r();e>0?b=setTimeout(()=>{m.abort()},e):m.abort()}try{let e;yield Promise.race([this.getConstructor().waitForConnectivity(),new Promise(t=>{e=setTimeout(t,r?Math.min(o.p.minute,r()):o.p.minute)})]),e&&clearTimeout(e);const t=yield i()(v,Object.assign(Object.assign(Object.assign({},g),void 0!==g.body?{body:!1!==a?JSON.stringify(g.body):g.body}:{}),{headers:Object.assign(Object.assign(Object.assign(Object.assign({},!1!==a?{"Content-Type":"application/json"}:{}),this.getHeaders()),g.headers||{}),void 0!==n?{Authorization:"Bearer "+n}:{}),signal:m.signal})),s=t.headers.get("content-type")||"",u=s&&s.startsWith("application/json"),f=u?yield t.json():yield t.text(),h=()=>new c.o(y,v,g.body,t.status,t.headers,f,f&&f.validationErrors||{});if(!t.ok)throw this.verbose&&l.vF[t.status>=500?"warn":"info"]("Response error",{method:y,url:v,statusCode:t.status}),h();const d=this.validateHeaders(t.headers);if(0!==Object.keys(d).length)throw new p(d,h());if(204===t.status)return{body:void 0,headers:t.headers};if(a&&!u)throw new Error("Response is not JSON: "+JSON.stringify(f));return{body:f,headers:t.headers}}catch(e){const t=e,r=f||d.has(y);if("Network request failed"===t.message)throw new s(t,v,r);if("system"===t.type&&["EAI_AGAIN","ECONNREFUSED","EHOSTUNREACH","ENOTFOUND"].find(e=>e===t.code))throw new s(t,v,!0);if("system"===t.type&&["ETIMEDOUT","ECONNRESET","ESOCKETTIMEDOUT","EPIPE"].find(e=>e===t.code))throw new s(t,v,r);if("AbortError"===t.name)throw new s(t,v,r);const n=(0,u.e)(t,c.o),{statusCode:i}=n;if(408===i||429===i||502===i||503===i||504===i)throw this.verbose&&!r&&l.vF.warn("Potentially unsafe retry"),new s(t,v,!0);const o=["/online-devices","/stream-current-value","/events/counts","/queries/queries"];if(500===i&&o.some(e=>v.includes(e)))throw new s(t,v,r);const a=this.validateHeaders(n.headers);if(0!==Object.keys(a).length)throw new p(a,n);throw yield this.getConstructor().onResponseError(n),t}finally{b&&clearTimeout(b)}}))}getConstructor(){return Object.getPrototypeOf(this).constructor}}g.retries=8,g.waitForConnectivity=()=>f(void 0,void 0,void 0,(function*(){})),g.onResponseError=()=>f(void 0,void 0,void 0,(function*(){}))},6331:(e,t,r)=>{"use strict";r.d(t,{S:()=>s});var n=r(7396),i=r(2273);const o={"app-id":["app-id must match formant/*"]};class s extends n.V{constructor(e,t={}){super(e,Object.assign({validateHeaders:e=>(""+e.get("app-id")).startsWith("formant/")?{}:o},t)),this.endpoint=e}getHeaders(){return Object.assign(Object.assign({},s.headers),{"App-ID":"formant/"+i.yA,"App-Version":i.rE})}}s.headers={}},4495:(e,t,r)=>{"use strict";r.r(t),r.d(t,{LogClient:()=>a});var n=r(6331),i=r(5413),o=r(7197),s=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))};class a extends n.S{log(e){return s(this,void 0,void 0,(function*(){const t=a.token;try{yield this.fetch("logs",{token:t,method:"POST",body:{logs:e},allowUnsafeRetries:!0})}catch(r){(0,i.e)(r,o.o,e=>401===e.statusCode&&void 0!==t),a.token===t&&delete a.token,yield this.log(e)}}))}}},7197:(e,t,r)=>{"use strict";r.d(t,{o:()=>i});var n=r(3563);class i extends Error{constructor(e,t,r,i,o,s,a={}){super("Response error "+JSON.stringify({method:e,url:t,requestBody:(0,n.E)(r),statusCode:i,responseHeaders:o?(0,n.E)([...o.entries()].reduce((e,[t,r])=>(e[t]=r,e),{})):{},responseBody:(0,n.E)(s)})),this.method=e,this.url=t,this.requestBody=r,this.statusCode=i,this.headers=o,this.body=s,this.validationErrors=a,this.name="ResponseError",Object.setPrototypeOf(this,new.target.prototype)}}},2273:(e,t,r)=>{"use strict";r.d(t,{IW:()=>d,MF:()=>s,NQ:()=>l,Zm:()=>p,_P:()=>f,dF:()=>c,dm:()=>u,op:()=>h,rE:()=>a,yA:()=>o});var n=r(2078);const i=n.from({ENVIRONMENT:process.env.ENV,AGGREGATE_LEVEL:process.env.AGGREGATE_LEVEL,API_ENDPOINT:process.env.API_ENDPOINT,APP:"realtime-sdk",APP_PATH:process.env.APP_PATH,BUILD_TAG:process.env.BUILD_TAG,ENABLE_SELF_SERVE:process.env.ENABLE_SELF_SERVE,ENABLE_SENTRY:process.env.ENABLE_SENTRY,ENABLE_SENTRY_PROFILING:process.env.ENABLE_SENTRY_PROFILING,GIT_COMMIT:process.env.GIT_COMMIT,JEST_WORKER_ID:process.env.JEST_WORKER_ID,LOG_API_ENDPOINT:process.env.LOG_API_ENDPOINT,LOG_JSON:"false",LOG_LEVEL:process.env.LOG_LEVEL,LOG_TO_CONSOLE:process.env.LOG_TO_CONSOLE,LOG_TO_FILE:process.env.LOG_TO_FILE,NAMESPACE:"production",SENTRY_DSN:process.env.SENTRY_DSN,SHEET_EXPORT_MAX_ROW_COUNT:process.env.SHEET_EXPORT_MAX_ROW_COUNT,STABLE_AGENT_VERSION:"1.184.3",VERSION:process.env.VERSION,AUDIT_LOGS_ENABLED:process.env.AUDIT_LOGS_ENABLED}),o=(i.get("ENVIRONMENT").default("").asString(),i.get("APP").default("").asString()),s=(i.get("APP_PATH").default("").asString(),i.get("API_ENDPOINT").default("").asString(),i.get("NAMESPACE").default("").asString()),a=i.get("VERSION").default("").asString(),l=i.get("BUILD_TAG").default("").asString(),u=(i.get("GIT_COMMIT").default("").asString(),i.get("ENABLE_SENTRY").default("false").asBool(),i.get("ENABLE_SENTRY_PROFILING").default("false").asBool(),i.get("SENTRY_DSN").default("").asString(),i.get("LOG_LEVEL").default("debug").asString()),c=i.get("LOG_JSON").default("true").asBool(),p=i.get("LOG_TO_CONSOLE").default("true").asBool(),f=(i.get("STABLE_AGENT_VERSION").default("").asString(),i.get("LOG_API_ENDPOINT").asString()),h=i.get("JEST_WORKER_ID").asString(),d=(i.get("SHEET_EXPORT_MAX_ROW_COUNT").default("10000").asIntPositive(),i.get("LOG_TO_FILE").default("false").asBoolStrict());i.get("ENABLE_SELF_SERVE").default("true").asBoolStrict(),i.get("AGGREGATE_LEVEL").default("hour").asEnum(["day","hour","minute"]),i.get("AUDIT_LOGS_ENABLED").default("true").asBoolStrict()},7221:(e,t,r)=>{"use strict";r.d(t,{c:()=>n});const n=e=>new Promise(t=>setTimeout(t,e||0))},6452:(e,t,r)=>{"use strict";r.d(t,{vF:()=>W});var n=r(2213),i=r(8558),o=r(6075),s=r.n(o),a=r(6563);Math.pow(10,8);function l(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function u(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}var c={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},p=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,f=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,h=/^([+-])(\d{2})(?::?(\d{2}))?$/;function d(e){var t,r={},n=e.split(c.dateTimeDelimiter);if(n.length>2)return r;if(/:/.test(n[0])?t=n[0]:(r.date=n[0],t=n[1],c.timeZoneDelimiter.test(r.date)&&(r.date=e.split(c.timeZoneDelimiter)[0],t=e.substr(r.date.length,e.length))),t){var i=c.timezone.exec(t);i?(r.time=t.replace(i[1],""),r.timezone=i[1]):r.time=t}return r}function g(e,t){var r=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),n=e.match(r);if(!n)return{year:NaN,restDateString:""};var i=n[1]?parseInt(n[1]):null,o=n[2]?parseInt(n[2]):null;return{year:null===o?i:100*o,restDateString:e.slice((n[1]||n[2]).length)}}function y(e,t){if(null===t)return new Date(NaN);var r=e.match(p);if(!r)return new Date(NaN);var n=!!r[4],i=v(r[1]),o=v(r[2])-1,s=v(r[3]),a=v(r[4]),l=v(r[5])-1;if(n)return function(e,t,r){return t>=1&&t<=53&&r>=0&&r<=6}(0,a,l)?function(e,t,r){var n=new Date(0);n.setUTCFullYear(e,0,4);var i=n.getUTCDay()||7,o=7*(t-1)+r+1-i;return n.setUTCDate(n.getUTCDate()+o),n}(t,a,l):new Date(NaN);var u=new Date(0);return function(e,t,r){return t>=0&&t<=11&&r>=1&&r<=(S[t]||(_(e)?29:28))}(t,o,s)&&function(e,t){return t>=1&&t<=(_(e)?366:365)}(t,i)?(u.setUTCFullYear(t,o,Math.max(i,s)),u):new Date(NaN)}function v(e){return e?parseInt(e):1}function m(e){var t=e.match(f);if(!t)return NaN;var r=b(t[1]),n=b(t[2]),i=b(t[3]);return function(e,t,r){if(24===e)return 0===t&&0===r;return r>=0&&r<60&&t>=0&&t<60&&e>=0&&e<25}(r,n,i)?36e5*r+6e4*n+1e3*i:NaN}function b(e){return e&&parseFloat(e.replace(",","."))||0}function w(e){if("Z"===e)return 0;var t=e.match(h);if(!t)return 0;var r="+"===t[1]?-1:1,n=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return function(e,t){return t>=0&&t<=59}(0,i)?r*(36e5*n+6e4*i):NaN}var S=[31,null,31,30,31,30,31,31,30,31,30,31];function _(e){return e%400==0||e%4==0&&e%100!=0}function E(e){return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function O(e){return l(1,arguments),e instanceof Date||"object"===E(e)&&"[object Date]"===Object.prototype.toString.call(e)}function R(e){l(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===E(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function T(e){const t=function(e,t){var r;l(1,arguments);var n=u(null!==(r=null==t?void 0:t.additionalDigits)&&void 0!==r?r:2);if(2!==n&&1!==n&&0!==n)throw new RangeError("additionalDigits must be 0, 1 or 2");if("string"!=typeof e&&"[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);var i,o=d(e);if(o.date){var s=g(o.date,n);i=y(s.restDateString,s.year)}if(!i||isNaN(i.getTime()))return new Date(NaN);var a,c=i.getTime(),p=0;if(o.time&&(p=m(o.time),isNaN(p)))return new Date(NaN);if(!o.timezone){var f=new Date(c+p),h=new Date(0);return h.setFullYear(f.getUTCFullYear(),f.getUTCMonth(),f.getUTCDate()),h.setHours(f.getUTCHours(),f.getUTCMinutes(),f.getUTCSeconds(),f.getUTCMilliseconds()),h}return a=w(o.timezone),isNaN(a)?new Date(NaN):new Date(c+p+a)}(e);if(!function(e){if(l(1,arguments),!O(e)&&"number"!=typeof e)return!1;var t=R(e);return!isNaN(Number(t))}(t))throw new Error(`Invalid ISO 8601 date string (${e})`);return t}Math.pow(2,0),Math.pow(2,10);const j=Math.pow(2,20),P=(Math.pow(2,30),Math.pow(10,3),Math.pow(10,6),j);Math.pow(10,9);var x=r(2273),A=r(3563);function I(e){return s()(e,{cycles:!0})}var C=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r};function k(e,t={}){const{redacted:r=!0}=t,n=e=>r?(0,A.E)(e):e;if(!e.stack)return{message:I(n(e))};const{name:i,message:o,stack:s}=e,a=C(e,["name","message","stack"]);return{name:i,message:void 0!==o?o:I(n(e)),stack:s,meta:a&&0===Object.keys(a).length?void 0:n(a)}}function M(e,t={}){const{message:r,stack:n,meta:i}=k(e,t);return`${n||r||""}${i&&Object.keys(i).length>0?" -- "+I(i):""}`}const F=(0,r(2964).A)();var B=r(6155),D=r.n(B),L=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))},N=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r};class z extends(D()){constructor(e,t){super(),this.endpoint=e,this.metadata=t,this.logClient=this.getLogClient()}getLogClient(){return L(this,void 0,void 0,(function*(){const{LogClient:e}=yield Promise.resolve().then(r.bind(r,4495));return new e(this.endpoint)}))}log(e,t){return L(this,void 0,void 0,(function*(){const{level:r,message:n,error:i}=e,o=N(e,["level","message","error"]);this.emit("logged");try{yield(yield this.logClient).log([{timestamp:(new Date).toISOString(),level:r,message:(""+n).substring(0,1e3),error:void 0!==i?k(i):void 0,meta:Object.assign(Object.assign({},o),this.metadata)}])}catch(i){console.error("Failed to log to log-api: "+M(i))}t()}))}}var U=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r};const G={app:x.yA,namespace:x.MF,buildTag:x.NQ,instanceId:F},V=x.dF?a.format.printf(e=>{var{timestamp:t,level:r,message:n,error:i}=e,o=U(e,["timestamp","level","message","error"]);const a=Object.assign(Object.assign({timestamp:t?T(t).getTime():(new Date).getTime(),level:r.toUpperCase(),message:n},i?{error:k(i)}:{}),{meta:Object.assign(Object.assign({},G),o)});return s()(a,{cycles:!0})}):a.format.printf(e=>{var{timestamp:t,level:r,message:n,error:i}=e,o=U(e,["timestamp","level","message","error"]);let a=`${t||(new Date).toISOString()} ${r.toUpperCase()}: ${n} `;return Object.keys(o).length>0&&(a+=s()(o,{cycles:!0})),i&&(a+="\n"+M(i)),a});const W=(0,a.createLogger)({level:x.dm});W.add(new a.transports.Console({format:V,level:"debug"})),W.transports.forEach(e=>{e.silent=!x.Zm}),x._P&&W.add(new z(x._P,G));if(x.IW){const e=i.resolve(n.tmpdir(),`silly-${x.yA}.log`);W.debug("Logging silly logs to file",{filename:e}),W.add(new a.transports.File({filename:e,maxsize:1*P,maxFiles:10,format:a.format.combine((q="silly",(0,a.format)(e=>e.level===q&&e)()),V),level:"silly"}))}var q},5413:(e,t,r)=>{"use strict";function n(e,t,r=(()=>!0)){if(function(e,t,r=(()=>!0)){return e instanceof t&&r(e)}(e,t,r))return e;throw e}r.d(t,{e:()=>n})},3563:(e,t,r)=>{"use strict";r.d(t,{E:()=>l,x:()=>u});const n=["query"],i=["expected one of:","maybe you meant:","in query:","while processing query","column"],o=["password","secret","token","key","buffer","authorization"],s=new Set(["email","firstName","lastName","phoneNumber","phoneNumbers"]),a=e=>o.some(t=>e.toLowerCase().includes(t.toLowerCase()))||s.has(e);function l(e,t=new WeakSet){return t.has(e)?"[ RECURSIVE ]":Array.isArray(e)?(t.add(e),e.map(e=>l(e,t))):!(r=e)||"object"!=typeof r&&"function"!=typeof r?"string"==typeof e&&!i.some(t=>e.toLowerCase().includes(t))&&a(e)?"[ REDACTED ]":e:(t.add(e),Object.keys(e).reduce((r,i)=>n.includes(i.toLowerCase())?(r[i]=e[i],r):(r[i]=a(i)?"[ REDACTED ]":l(e[i],t),r),{}));var r}const u=e=>{const t=JSON.stringify(e).replace(/\\"username\\":\\"([a-zA-Z0-9]+)\\"/gi,'\\"username\\":\\"<REDACTED>\\"').replace(/\\"credential\\":\\"([a-zA-Z0-9]+)\\"/gi,'\\"credential\\":\\"<REDACTED>\\"');return JSON.parse(t)}},3778:(e,t,r)=>{"use strict";r.d(t,{p:()=>i});const n=864e5,i={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:n,week:6048e5,month:2592e6,year:31536e6}},2113:function(e,t,r){var n;e=r.nmd(e),function(i){t&&t.nodeType,e&&e.nodeType;var o="object"==typeof r.g&&r.g;o.global!==o&&o.window!==o&&o.self;var s,a=2147483647,l=/^xn--/,u=/[^\x20-\x7E]/,c=/[\x2E\u3002\uFF0E\uFF61]/g,p={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},f=Math.floor,h=String.fromCharCode;function d(e){throw new RangeError(p[e])}function g(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function y(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+g((e=e.replace(c,".")).split("."),t).join(".")}function v(e){for(var t,r,n=[],i=0,o=e.length;i<o;)(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<o?56320==(64512&(r=e.charCodeAt(i++)))?n.push(((1023&t)<<10)+(1023&r)+65536):(n.push(t),i--):n.push(t);return n}function m(e){return g(e,(function(e){var t="";return e>65535&&(t+=h((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=h(e)})).join("")}function b(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function w(e,t,r){var n=0;for(e=r?f(e/700):e>>1,e+=f(e/t);e>455;n+=36)e=f(e/35);return f(n+36*e/(e+38))}function S(e){var t,r,n,i,o,s,l,u,c,p,h,g=[],y=e.length,v=0,b=128,S=72;for((r=e.lastIndexOf("-"))<0&&(r=0),n=0;n<r;++n)e.charCodeAt(n)>=128&&d("not-basic"),g.push(e.charCodeAt(n));for(i=r>0?r+1:0;i<y;){for(o=v,s=1,l=36;i>=y&&d("invalid-input"),((u=(h=e.charCodeAt(i++))-48<10?h-22:h-65<26?h-65:h-97<26?h-97:36)>=36||u>f((a-v)/s))&&d("overflow"),v+=u*s,!(u<(c=l<=S?1:l>=S+26?26:l-S));l+=36)s>f(a/(p=36-c))&&d("overflow"),s*=p;S=w(v-o,t=g.length+1,0==o),f(v/t)>a-b&&d("overflow"),b+=f(v/t),v%=t,g.splice(v++,0,b)}return m(g)}function _(e){var t,r,n,i,o,s,l,u,c,p,g,y,m,S,_,E=[];for(y=(e=v(e)).length,t=128,r=0,o=72,s=0;s<y;++s)(g=e[s])<128&&E.push(h(g));for(n=i=E.length,i&&E.push("-");n<y;){for(l=a,s=0;s<y;++s)(g=e[s])>=t&&g<l&&(l=g);for(l-t>f((a-r)/(m=n+1))&&d("overflow"),r+=(l-t)*m,t=l,s=0;s<y;++s)if((g=e[s])<t&&++r>a&&d("overflow"),g==t){for(u=r,c=36;!(u<(p=c<=o?1:c>=o+26?26:c-o));c+=36)_=u-p,S=36-p,E.push(h(b(p+_%S,0))),u=f(_/S);E.push(h(b(u,0))),o=w(r,m,n==i),r=0,++n}++r,++t}return E.join("")}s={version:"1.4.1",ucs2:{decode:v,encode:m},decode:S,encode:_,toASCII:function(e){return y(e,(function(e){return u.test(e)?"xn--"+_(e):e}))},toUnicode:function(e){return y(e,(function(e){return l.test(e)?S(e.slice(4).toLowerCase()):e}))}},void 0===(n=function(){return s}.call(t,r,t,e))||(e.exports=n)}()},5442:(e,t,r)=>{"use strict";var n=r(2113);function i(){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}var o=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,a=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,l=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),u=["'"].concat(l),c=["%","/","?",";","#"].concat(u),p=["/","?","#"],f=/^[+a-z0-9A-Z_-]{0,63}$/,h=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,d={javascript:!0,"javascript:":!0},g={javascript:!0,"javascript:":!0},y={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},v=r(5810);function m(e,t,r){if(e&&"object"==typeof e&&e instanceof i)return e;var n=new i;return n.parse(e,t,r),n}i.prototype.parse=function(e,t,r){if("string"!=typeof e)throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var i=e.indexOf("?"),s=-1!==i&&i<e.indexOf("#")?"?":"#",l=e.split(s);l[0]=l[0].replace(/\\/g,"/");var m=e=l.join(s);if(m=m.trim(),!r&&1===e.split("#").length){var b=a.exec(m);if(b)return this.path=m,this.href=m,this.pathname=b[1],b[2]?(this.search=b[2],this.query=t?v.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var w=o.exec(m);if(w){var S=(w=w[0]).toLowerCase();this.protocol=S,m=m.substr(w.length)}if(r||w||m.match(/^\/\/[^@/]+@[^@/]+/)){var _="//"===m.substr(0,2);!_||w&&g[w]||(m=m.substr(2),this.slashes=!0)}if(!g[w]&&(_||w&&!y[w])){for(var E,O,R=-1,T=0;T<p.length;T++){-1!==(j=m.indexOf(p[T]))&&(-1===R||j<R)&&(R=j)}-1!==(O=-1===R?m.lastIndexOf("@"):m.lastIndexOf("@",R))&&(E=m.slice(0,O),m=m.slice(O+1),this.auth=decodeURIComponent(E)),R=-1;for(T=0;T<c.length;T++){var j;-1!==(j=m.indexOf(c[T]))&&(-1===R||j<R)&&(R=j)}-1===R&&(R=m.length),this.host=m.slice(0,R),m=m.slice(R),this.parseHost(),this.hostname=this.hostname||"";var P="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!P)for(var x=this.hostname.split(/\./),A=(T=0,x.length);T<A;T++){var I=x[T];if(I&&!I.match(f)){for(var C="",k=0,M=I.length;k<M;k++)I.charCodeAt(k)>127?C+="x":C+=I[k];if(!C.match(f)){var F=x.slice(0,T),B=x.slice(T+1),D=I.match(h);D&&(F.push(D[1]),B.unshift(D[2])),B.length&&(m="/"+B.join(".")+m),this.hostname=F.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),P||(this.hostname=n.toASCII(this.hostname));var L=this.port?":"+this.port:"",N=this.hostname||"";this.host=N+L,this.href+=this.host,P&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==m[0]&&(m="/"+m))}if(!d[S])for(T=0,A=u.length;T<A;T++){var z=u[T];if(-1!==m.indexOf(z)){var U=encodeURIComponent(z);U===z&&(U=escape(z)),m=m.split(z).join(U)}}var G=m.indexOf("#");-1!==G&&(this.hash=m.substr(G),m=m.slice(0,G));var V=m.indexOf("?");if(-1!==V?(this.search=m.substr(V),this.query=m.substr(V+1),t&&(this.query=v.parse(this.query)),m=m.slice(0,V)):t&&(this.search="",this.query={}),m&&(this.pathname=m),y[S]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){L=this.pathname||"";var W=this.search||"";this.path=L+W}return this.href=this.format(),this},i.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",r=this.pathname||"",n=this.hash||"",i=!1,o="";this.host?i=e+this.host:this.hostname&&(i=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&"object"==typeof this.query&&Object.keys(this.query).length&&(o=v.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var s=this.search||o&&"?"+o||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||y[t])&&!1!==i?(i="//"+(i||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):i||(i=""),n&&"#"!==n.charAt(0)&&(n="#"+n),s&&"?"!==s.charAt(0)&&(s="?"+s),t+i+(r=r.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(s=s.replace("#","%23"))+n},i.prototype.resolve=function(e){return this.resolveObject(m(e,!1,!0)).format()},i.prototype.resolveObject=function(e){if("string"==typeof e){var t=new i;t.parse(e,!1,!0),e=t}for(var r=new i,n=Object.keys(this),o=0;o<n.length;o++){var s=n[o];r[s]=this[s]}if(r.hash=e.hash,""===e.href)return r.href=r.format(),r;if(e.slashes&&!e.protocol){for(var a=Object.keys(e),l=0;l<a.length;l++){var u=a[l];"protocol"!==u&&(r[u]=e[u])}return y[r.protocol]&&r.hostname&&!r.pathname&&(r.pathname="/",r.path=r.pathname),r.href=r.format(),r}if(e.protocol&&e.protocol!==r.protocol){if(!y[e.protocol]){for(var c=Object.keys(e),p=0;p<c.length;p++){var f=c[p];r[f]=e[f]}return r.href=r.format(),r}if(r.protocol=e.protocol,e.host||g[e.protocol])r.pathname=e.pathname;else{for(var h=(e.pathname||"").split("/");h.length&&!(e.host=h.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==h[0]&&h.unshift(""),h.length<2&&h.unshift(""),r.pathname=h.join("/")}if(r.search=e.search,r.query=e.query,r.host=e.host||"",r.auth=e.auth,r.hostname=e.hostname||e.host,r.port=e.port,r.pathname||r.search){var d=r.pathname||"",v=r.search||"";r.path=d+v}return r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var m=r.pathname&&"/"===r.pathname.charAt(0),b=e.host||e.pathname&&"/"===e.pathname.charAt(0),w=b||m||r.host&&e.pathname,S=w,_=r.pathname&&r.pathname.split("/")||[],E=(h=e.pathname&&e.pathname.split("/")||[],r.protocol&&!y[r.protocol]);if(E&&(r.hostname="",r.port=null,r.host&&(""===_[0]?_[0]=r.host:_.unshift(r.host)),r.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===h[0]?h[0]=e.host:h.unshift(e.host)),e.host=null),w=w&&(""===h[0]||""===_[0])),b)r.host=e.host||""===e.host?e.host:r.host,r.hostname=e.hostname||""===e.hostname?e.hostname:r.hostname,r.search=e.search,r.query=e.query,_=h;else if(h.length)_||(_=[]),_.pop(),_=_.concat(h),r.search=e.search,r.query=e.query;else if(null!=e.search){if(E)r.host=_.shift(),r.hostname=r.host,(P=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=P.shift(),r.hostname=P.shift(),r.host=r.hostname);return r.search=e.search,r.query=e.query,null===r.pathname&&null===r.search||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!_.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var O=_.slice(-1)[0],R=(r.host||e.host||_.length>1)&&("."===O||".."===O)||""===O,T=0,j=_.length;j>=0;j--)"."===(O=_[j])?_.splice(j,1):".."===O?(_.splice(j,1),T++):T&&(_.splice(j,1),T--);if(!w&&!S)for(;T--;T)_.unshift("..");!w||""===_[0]||_[0]&&"/"===_[0].charAt(0)||_.unshift(""),R&&"/"!==_.join("/").substr(-1)&&_.push("");var P,x=""===_[0]||_[0]&&"/"===_[0].charAt(0);E&&(r.hostname=x?"":_.length?_.shift():"",r.host=r.hostname,(P=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=P.shift(),r.hostname=P.shift(),r.host=r.hostname));return(w=w||r.host&&_.length)&&!x&&_.unshift(""),_.length>0?r.pathname=_.join("/"):(r.pathname=null,r.path=null),null===r.pathname&&null===r.search||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},i.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},t.parse=m,t.resolve=function(e,t){return m(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?m(e,!1,!0).resolveObject(t):t},t.format=function(e){return"string"==typeof e&&(e=m(e)),e instanceof i?e.format():i.prototype.format.call(e)},t.Url=i},6732:(e,t,r)=>{function n(e){try{if(!r.g.localStorage)return!1}catch(e){return!1}var t=r.g.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}e.exports=function(e,t){if(n("noDeprecation"))return e;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw new Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}}},5272:e=>{e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},1531:(e,t,r)=>{"use strict";var n=r(5387),i=r(2625),o=r(2730),s=r(5943);function a(e){return e.call.bind(e)}var l="undefined"!=typeof BigInt,u="undefined"!=typeof Symbol,c=a(Object.prototype.toString),p=a(Number.prototype.valueOf),f=a(String.prototype.valueOf),h=a(Boolean.prototype.valueOf);if(l)var d=a(BigInt.prototype.valueOf);if(u)var g=a(Symbol.prototype.valueOf);function y(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function v(e){return"[object Map]"===c(e)}function m(e){return"[object Set]"===c(e)}function b(e){return"[object WeakMap]"===c(e)}function w(e){return"[object WeakSet]"===c(e)}function S(e){return"[object ArrayBuffer]"===c(e)}function _(e){return"undefined"!=typeof ArrayBuffer&&(S.working?S(e):e instanceof ArrayBuffer)}function E(e){return"[object DataView]"===c(e)}function O(e){return"undefined"!=typeof DataView&&(E.working?E(e):e instanceof DataView)}t.isArgumentsObject=n,t.isGeneratorFunction=i,t.isTypedArray=s,t.isPromise=function(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},t.isArrayBufferView=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):s(e)||O(e)},t.isUint8Array=function(e){return"Uint8Array"===o(e)},t.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===o(e)},t.isUint16Array=function(e){return"Uint16Array"===o(e)},t.isUint32Array=function(e){return"Uint32Array"===o(e)},t.isInt8Array=function(e){return"Int8Array"===o(e)},t.isInt16Array=function(e){return"Int16Array"===o(e)},t.isInt32Array=function(e){return"Int32Array"===o(e)},t.isFloat32Array=function(e){return"Float32Array"===o(e)},t.isFloat64Array=function(e){return"Float64Array"===o(e)},t.isBigInt64Array=function(e){return"BigInt64Array"===o(e)},t.isBigUint64Array=function(e){return"BigUint64Array"===o(e)},v.working="undefined"!=typeof Map&&v(new Map),t.isMap=function(e){return"undefined"!=typeof Map&&(v.working?v(e):e instanceof Map)},m.working="undefined"!=typeof Set&&m(new Set),t.isSet=function(e){return"undefined"!=typeof Set&&(m.working?m(e):e instanceof Set)},b.working="undefined"!=typeof WeakMap&&b(new WeakMap),t.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(b.working?b(e):e instanceof WeakMap)},w.working="undefined"!=typeof WeakSet&&w(new WeakSet),t.isWeakSet=function(e){return w(e)},S.working="undefined"!=typeof ArrayBuffer&&S(new ArrayBuffer),t.isArrayBuffer=_,E.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&E(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=O;var R="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function T(e){return"[object SharedArrayBuffer]"===c(e)}function j(e){return void 0!==R&&(void 0===T.working&&(T.working=T(new R)),T.working?T(e):e instanceof R)}function P(e){return y(e,p)}function x(e){return y(e,f)}function A(e){return y(e,h)}function I(e){return l&&y(e,d)}function C(e){return u&&y(e,g)}t.isSharedArrayBuffer=j,t.isAsyncFunction=function(e){return"[object AsyncFunction]"===c(e)},t.isMapIterator=function(e){return"[object Map Iterator]"===c(e)},t.isSetIterator=function(e){return"[object Set Iterator]"===c(e)},t.isGeneratorObject=function(e){return"[object Generator]"===c(e)},t.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===c(e)},t.isNumberObject=P,t.isStringObject=x,t.isBooleanObject=A,t.isBigIntObject=I,t.isSymbolObject=C,t.isBoxedPrimitive=function(e){return P(e)||x(e)||A(e)||I(e)||C(e)},t.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(_(e)||j(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})}))},9208:(e,t,r)=>{var n=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++)r[t[n]]=Object.getOwnPropertyDescriptor(e,t[n]);return r},i=/%[sdj%]/g;t.format=function(e){if(!m(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(l(arguments[r]));return t.join(" ")}r=1;for(var n=arguments,o=n.length,s=String(e).replace(i,(function(e){if("%%"===e)return"%";if(r>=o)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}})),a=n[r];r<o;a=n[++r])y(a)||!S(a)?s+=" "+a:s+=" "+l(a);return s},t.deprecate=function(e,r){if("undefined"!=typeof process&&!0===process.noDeprecation)return e;if("undefined"==typeof process)return function(){return t.deprecate(e,r).apply(this,arguments)};var n=!1;return function(){if(!n){if(process.throwDeprecation)throw new Error(r);process.traceDeprecation?console.trace(r):console.error(r),n=!0}return e.apply(this,arguments)}};var o={},s=/^$/;if(process.env.NODE_DEBUG){var a=process.env.NODE_DEBUG;a=a.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),s=new RegExp("^"+a+"$","i")}function l(e,r){var n={seen:[],stylize:c};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),g(r)?n.showHidden=r:r&&t._extend(n,r),b(n.showHidden)&&(n.showHidden=!1),b(n.depth)&&(n.depth=2),b(n.colors)&&(n.colors=!1),b(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=u),p(n,e,n.depth)}function u(e,t){var r=l.styles[t];return r?"["+l.colors[r][0]+"m"+e+"["+l.colors[r][1]+"m":e}function c(e,t){return e}function p(e,r,n){if(e.customInspect&&r&&O(r.inspect)&&r.inspect!==t.inspect&&(!r.constructor||r.constructor.prototype!==r)){var i=r.inspect(n,e);return m(i)||(i=p(e,i,n)),i}var o=function(e,t){if(b(t))return e.stylize("undefined","undefined");if(m(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(v(t))return e.stylize(""+t,"number");if(g(t))return e.stylize(""+t,"boolean");if(y(t))return e.stylize("null","null")}(e,r);if(o)return o;var s=Object.keys(r),a=function(e){var t={};return e.forEach((function(e,r){t[e]=!0})),t}(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(r)),E(r)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return f(r);if(0===s.length){if(O(r)){var l=r.name?": "+r.name:"";return e.stylize("[Function"+l+"]","special")}if(w(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(_(r))return e.stylize(Date.prototype.toString.call(r),"date");if(E(r))return f(r)}var u,c="",S=!1,R=["{","}"];(d(r)&&(S=!0,R=["[","]"]),O(r))&&(c=" [Function"+(r.name?": "+r.name:"")+"]");return w(r)&&(c=" "+RegExp.prototype.toString.call(r)),_(r)&&(c=" "+Date.prototype.toUTCString.call(r)),E(r)&&(c=" "+f(r)),0!==s.length||S&&0!=r.length?n<0?w(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),u=S?function(e,t,r,n,i){for(var o=[],s=0,a=t.length;s<a;++s)x(t,String(s))?o.push(h(e,t,r,n,String(s),!0)):o.push("");return i.forEach((function(i){i.match(/^\d+$/)||o.push(h(e,t,r,n,i,!0))})),o}(e,r,n,a,s):s.map((function(t){return h(e,r,n,a,t,S)})),e.seen.pop(),function(e,t,r){if(e.reduce((function(e,t){return t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1];return r[0]+t+" "+e.join(", ")+" "+r[1]}(u,c,R)):R[0]+c+R[1]}function f(e){return"["+Error.prototype.toString.call(e)+"]"}function h(e,t,r,n,i,o){var s,a,l;if((l=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?a=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(a=e.stylize("[Setter]","special")),x(n,i)||(s="["+i+"]"),a||(e.seen.indexOf(l.value)<0?(a=y(r)?p(e,l.value,null):p(e,l.value,r-1)).indexOf("\n")>-1&&(a=o?a.split("\n").map((function(e){return" "+e})).join("\n").slice(2):"\n"+a.split("\n").map((function(e){return" "+e})).join("\n")):a=e.stylize("[Circular]","special")),b(s)){if(o&&i.match(/^\d+$/))return a;(s=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.slice(1,-1),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+a}function d(e){return Array.isArray(e)}function g(e){return"boolean"==typeof e}function y(e){return null===e}function v(e){return"number"==typeof e}function m(e){return"string"==typeof e}function b(e){return void 0===e}function w(e){return S(e)&&"[object RegExp]"===R(e)}function S(e){return"object"==typeof e&&null!==e}function _(e){return S(e)&&"[object Date]"===R(e)}function E(e){return S(e)&&("[object Error]"===R(e)||e instanceof Error)}function O(e){return"function"==typeof e}function R(e){return Object.prototype.toString.call(e)}function T(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(e=e.toUpperCase(),!o[e])if(s.test(e)){var r=process.pid;o[e]=function(){var n=t.format.apply(t,arguments);console.error("%s %d: %s",e,r,n)}}else o[e]=function(){};return o[e]},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.types=r(1531),t.isArray=d,t.isBoolean=g,t.isNull=y,t.isNullOrUndefined=function(e){return null==e},t.isNumber=v,t.isString=m,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=b,t.isRegExp=w,t.types.isRegExp=w,t.isObject=S,t.isDate=_,t.types.isDate=_,t.isError=E,t.types.isNativeError=E,t.isFunction=O,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(5272);var j=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function P(){var e=new Date,t=[T(e.getHours()),T(e.getMinutes()),T(e.getSeconds())].join(":");return[e.getDate(),j[e.getMonth()],t].join(" ")}function x(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",P(),t.format.apply(t,arguments))},t.inherits=r(5615),t._extend=function(e,t){if(!t||!S(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var A="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function I(e,t){if(!e){var r=new Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(A&&e[A]){var t;if("function"!=typeof(t=e[A]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,A,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,r,n=new Promise((function(e,n){t=e,r=n})),i=[],o=0;o<arguments.length;o++)i.push(arguments[o]);i.push((function(e,n){e?r(e):t(n)}));try{e.apply(this,i)}catch(e){r(e)}return n}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),A&&Object.defineProperty(t,A,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,n(e))},t.promisify.custom=A,t.callbackify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');function t(){for(var t=[],r=0;r<arguments.length;r++)t.push(arguments[r]);var n=t.pop();if("function"!=typeof n)throw new TypeError("The last argument must be of type Function");var i=this,o=function(){return n.apply(i,arguments)};e.apply(this,t).then((function(e){process.nextTick(o.bind(null,null,e))}),(function(e){process.nextTick(I.bind(null,e,o))}))}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,n(e)),t}},2964:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});const n={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let i;const o=new Uint8Array(16);function s(){if(!i&&(i="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!i))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return i(o)}const a=[];for(let e=0;e<256;++e)a.push((e+256).toString(16).slice(1));function l(e,t=0){return a[e[t+0]]+a[e[t+1]]+a[e[t+2]]+a[e[t+3]]+"-"+a[e[t+4]]+a[e[t+5]]+"-"+a[e[t+6]]+a[e[t+7]]+"-"+a[e[t+8]]+a[e[t+9]]+"-"+a[e[t+10]]+a[e[t+11]]+a[e[t+12]]+a[e[t+13]]+a[e[t+14]]+a[e[t+15]]}const u=function(e,t,r){if(n.randomUUID&&!t&&!e)return n.randomUUID();const i=(e=e||{}).random||(e.rng||s)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t){r=r||0;for(let e=0;e<16;++e)t[r+e]=i[e];return t}return l(i)}},2730:(e,t,r)=>{"use strict";var n=r(705),i=r(4834),o=r(8498),s=r(9818),a=r(9336),l=s("Object.prototype.toString"),u=r(1913)(),c="undefined"==typeof globalThis?r.g:globalThis,p=i(),f=s("String.prototype.slice"),h=Object.getPrototypeOf,d=s("Array.prototype.indexOf",!0)||function(e,t){for(var r=0;r<e.length;r+=1)if(e[r]===t)return r;return-1},g={__proto__:null};n(p,u&&a&&h?function(e){var t=new c[e];if(Symbol.toStringTag in t){var r=h(t),n=a(r,Symbol.toStringTag);if(!n){var i=h(r);n=a(i,Symbol.toStringTag)}g["$"+e]=o(n.get)}}:function(e){var t=new c[e],r=t.slice||t.set;r&&(g["$"+e]=o(r))});e.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!u){var t=f(l(e),8,-1);return d(p,t)>-1?t:"Object"===t&&function(e){var t=!1;return n(g,(function(r,n){if(!t)try{r(e),t=f(n,1)}catch(e){}})),t}(e)}return a?function(e){var t=!1;return n(g,(function(r,n){if(!t)try{"$"+r(e)===n&&(t=f(n,1))}catch(e){}})),t}(e):null}},6155:(e,t,r)=>{"use strict";e.exports=r(5700),e.exports.LegacyTransportStream=r(6668)},6668:(e,t,r)=>{"use strict";var n=r(9208),i=r(4966).LEVEL,o=r(5700),s=e.exports=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(o.call(this,e),!e.transport||"function"!=typeof e.transport.log)throw new Error("Invalid transport, must be an object with a log method.");function t(e){this.emit("error",e,this.transport)}this.transport=e.transport,this.level=this.level||e.transport.level,this.handleExceptions=this.handleExceptions||e.transport.handleExceptions,this._deprecated(),this.transport.__winstonError||(this.transport.__winstonError=t.bind(this),this.transport.on("error",this.transport.__winstonError))};n.inherits(s,o),s.prototype._write=function(e,t,r){if(this.silent||!0===e.exception&&!this.handleExceptions)return r(null);(!this.level||this.levels[this.level]>=this.levels[e[i]])&&this.transport.log(e[i],e.message,e,this._nop),r(null)},s.prototype._writev=function(e,t){for(var r=0;r<e.length;r++)this._accept(e[r])&&(this.transport.log(e[r].chunk[i],e[r].chunk.message,e[r].chunk,this._nop),e[r].callback());return t(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("\n"))},s.prototype.close=function(){this.transport.close&&this.transport.close(),this.transport.__winstonError&&(this.transport.removeListener("error",this.transport.__winstonError),this.transport.__winstonError=null)}},5700:(e,t,r)=>{"use strict";var n=r(9208),i=r(5291),o=r(4966).LEVEL,s=e.exports=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i.call(this,{objectMode:!0,highWaterMark:t.highWaterMark}),this.format=t.format,this.level=t.level,this.handleExceptions=t.handleExceptions,this.handleRejections=t.handleRejections,this.silent=t.silent,t.log&&(this.log=t.log),t.logv&&(this.logv=t.logv),t.close&&(this.close=t.close),this.once("pipe",(function(t){e.levels=t.levels,e.parent=t})),this.once("unpipe",(function(t){t===e.parent&&(e.parent=null,e.close&&e.close())}))};n.inherits(s,i),s.prototype._write=function(e,t,r){if(this.silent||!0===e.exception&&!this.handleExceptions)return r(null);var n=this.level||this.parent&&this.parent.level;if(!n||this.levels[n]>=this.levels[e[o]]){if(e&&!this.format)return this.log(e,r);var i=void 0,s=void 0;try{s=this.format.transform(Object.assign({},e),this.format.options)}catch(e){i=e}if(i||!s){if(r(),i)throw i;return}return this.log(s,r)}return this._writableState.sync=!1,r(null)},s.prototype._writev=function(e,t){if(this.logv){var r=e.filter(this._accept,this);return r.length?this.logv(r,t):t(null)}for(var n=0;n<e.length;n++)if(this._accept(e[n]))if(!e[n].chunk||this.format){var i=void 0,o=void 0;try{o=this.format.transform(Object.assign({},e[n].chunk),this.format.options)}catch(e){i=e}if(i||!o){if(e[n].callback(),i)throw t(null),i}else this.log(o,e[n].callback)}else this.log(e[n].chunk,e[n].callback);return t(null)},s.prototype._accept=function(e){var t=e.chunk;if(this.silent)return!1;var r=this.level||this.parent&&this.parent.level;return!(!0!==t.exception&&r&&!(this.levels[r]>=this.levels[t[o]])||!this.handleExceptions&&!0===t.exception)},s.prototype._nop=function(){}},1127:(e,t,r)=>{"use strict";const n=r(9208),{LEVEL:i}=r(4966),o=r(4927),s=e.exports=function(e={}){if(o.call(this,e),!e.transport||"function"!=typeof e.transport.log)throw new Error("Invalid transport, must be an object with a log method.");this.transport=e.transport,this.level=this.level||e.transport.level,this.handleExceptions=this.handleExceptions||e.transport.handleExceptions,this._deprecated(),this.transport.__winstonError||(this.transport.__winstonError=function(e){this.emit("error",e,this.transport)}.bind(this),this.transport.on("error",this.transport.__winstonError))};n.inherits(s,o),s.prototype._write=function(e,t,r){if(this.silent||!0===e.exception&&!this.handleExceptions)return r(null);(!this.level||this.levels[this.level]>=this.levels[e[i]])&&this.transport.log(e[i],e.message,e,this._nop),r(null)},s.prototype._writev=function(e,t){for(let t=0;t<e.length;t++)this._accept(e[t])&&(this.transport.log(e[t].chunk[i],e[t].chunk.message,e[t].chunk,this._nop),e[t].callback());return t(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("\n"))},s.prototype.close=function(){this.transport.close&&this.transport.close(),this.transport.__winstonError&&(this.transport.removeListener("error",this.transport.__winstonError),this.transport.__winstonError=null)}},4927:(e,t,r)=>{"use strict";const n=r(9208),i=r(5291),{LEVEL:o}=r(4966),s=e.exports=function(e={}){i.call(this,{objectMode:!0,highWaterMark:e.highWaterMark}),this.format=e.format,this.level=e.level,this.handleExceptions=e.handleExceptions,this.handleRejections=e.handleRejections,this.silent=e.silent,e.log&&(this.log=e.log),e.logv&&(this.logv=e.logv),e.close&&(this.close=e.close),this.once("pipe",e=>{this.levels=e.levels,this.parent=e}),this.once("unpipe",e=>{e===this.parent&&(this.parent=null,this.close&&this.close())})};n.inherits(s,i),s.prototype._write=function(e,t,r){if(this.silent||!0===e.exception&&!this.handleExceptions)return r(null);const n=this.level||this.parent&&this.parent.level;if(!n||this.levels[n]>=this.levels[e[o]]){if(e&&!this.format)return this.log(e,r);let t,n;try{n=this.format.transform(Object.assign({},e),this.format.options)}catch(e){t=e}if(t||!n){if(r(),t)throw t;return}return this.log(n,r)}return this._writableState.sync=!1,r(null)},s.prototype._writev=function(e,t){if(this.logv){const r=e.filter(this._accept,this);return r.length?this.logv(r,t):t(null)}for(let r=0;r<e.length;r++){if(!this._accept(e[r]))continue;if(e[r].chunk&&!this.format){this.log(e[r].chunk,e[r].callback);continue}let n,i;try{i=this.format.transform(Object.assign({},e[r].chunk),this.format.options)}catch(e){n=e}if(n||!i){if(e[r].callback(),n)throw t(null),n}else this.log(i,e[r].callback)}return t(null)},s.prototype._accept=function(e){const t=e.chunk;if(this.silent)return!1;const r=this.level||this.parent&&this.parent.level;return!(!0!==t.exception&&r&&!(this.levels[r]>=this.levels[t[o]])||!this.handleExceptions&&!0===t.exception)},s.prototype._nop=function(){}},6563:(e,t,r)=>{"use strict";var n=r(8911),i=r(1735).warn;t.version=r(7241).version,t.transports=r(3307),t.config=r(9127),t.addColors=n.levels,t.format=n.format,t.createLogger=r(8727),t.Logger=r(2162),t.ExceptionHandler=r(8624),t.RejectionHandler=r(8846),t.Container=r(9456),t.Transport=r(6155),t.loggers=new t.Container;var o=t.createLogger();Object.keys(t.config.npm.levels).concat(["log","query","stream","add","remove","clear","profile","startTimer","handleExceptions","unhandleExceptions","handleRejections","unhandleRejections","configure","child"]).forEach((function(e){return t[e]=function(){return o[e].apply(o,arguments)}})),Object.defineProperty(t,"level",{get:function(){return o.level},set:function(e){o.level=e}}),Object.defineProperty(t,"exceptions",{get:function(){return o.exceptions}}),Object.defineProperty(t,"rejections",{get:function(){return o.rejections}}),["exitOnError"].forEach((function(e){Object.defineProperty(t,e,{get:function(){return o[e]},set:function(t){o[e]=t}})})),Object.defineProperty(t,"default",{get:function(){return{exceptionHandlers:o.exceptionHandlers,rejectionHandlers:o.rejectionHandlers,transports:o.transports}}}),i.deprecated(t,"setLevels"),i.forFunctions(t,"useFormat",["cli"]),i.forProperties(t,"useFormat",["padLevels","stripColors"]),i.forFunctions(t,"deprecated",["addRewriter","addFilter","clone","extend"]),i.forProperties(t,"deprecated",["emitErrs","levelLength"])},1735:(e,t,r)=>{"use strict";var n=r(9208).format;t.warn={deprecated:function(e){return function(){throw new Error(n("{ %s } was removed in winston@3.0.0.",e))}},useFormat:function(e){return function(){throw new Error([n("{ %s } was removed in winston@3.0.0.",e),"Use a custom winston.format = winston.format(function) instead."].join("\n"))}},forFunctions:function(e,r,n){n.forEach((function(n){e[n]=t.warn[r](n)}))},forProperties:function(e,r,n){n.forEach((function(n){var i=t.warn[r](n);Object.defineProperty(e,n,{get:i,set:i})}))}}},9127:(e,t,r)=>{"use strict";var n=r(8911),i=r(4966).configs;t.cli=n.levels(i.cli),t.npm=n.levels(i.npm),t.syslog=n.levels(i.syslog),t.addColors=n.levels},9456:(e,t,r)=>{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,s(n.key),n)}}function s(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}var a=r(8727);e.exports=function(){return e=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i(this,e),this.loggers=new Map,this.options=t},(t=[{key:"add",value:function(e,t){var r=this;if(!this.loggers.has(e)){var n=(t=Object.assign({},t||this.options)).transports||this.options.transports;t.transports=n?Array.isArray(n)?n.slice():[n]:[];var i=a(t);i.on("close",(function(){return r._delete(e)})),this.loggers.set(e,i)}return this.loggers.get(e)}},{key:"get",value:function(e,t){return this.add(e,t)}},{key:"has",value:function(e){return!!this.loggers.has(e)}},{key:"close",value:function(e){var t=this;if(e)return this._removeLogger(e);this.loggers.forEach((function(e,r){return t._removeLogger(r)}))}},{key:"_removeLogger",value:function(e){this.loggers.has(e)&&(this.loggers.get(e).close(),this._delete(e))}},{key:"_delete",value:function(e){this.loggers.delete(e)}}])&&o(e.prototype,t),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}()},8727:(e,t,r)=>{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,s(n.key),n)}}function o(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function s(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t,r){return t=u(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],u(e).constructor):t.apply(e,r))}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}function p(e,t){return(p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var f=r(4966).LEVEL,h=r(9127),d=r(2162),g=r(7147)("winston:create-logger");function y(e){return"is"+e.charAt(0).toUpperCase()+e.slice(1)+"Enabled"}e.exports=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.levels=e.levels||h.npm.levels;var t=function(e){function t(e){return a(this,t),l(this,t,[e])}return c(t,e),o(t)}(d),r=new t(e);return Object.keys(e.levels).forEach((function(e){g('Define prototype method for "%s"',e),"log"!==e?(t.prototype[e]=function(){for(var t=this||r,n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];if(1===i.length){var s=i[0],a=s&&s.message&&s||{message:s};return a.level=a[f]=e,t._addDefaultMeta(a),t.write(a),this||r}return 0===i.length?(t.log(e,""),t):t.log.apply(t,[e].concat(i))},t.prototype[y(e)]=function(){return(this||r).isLevelEnabled(e)}):console.warn('Level "log" not defined: conflicts with the method "log". Use a different level name.')})),r}},8624:(e,t,r)=>{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,o(n.key),n)}}function o(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}var s=r(2213),a=r(5236),l=r(7147)("winston:exception"),u=r(960),c=r(5082),p=r(9422);e.exports=function(){return e=function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t)throw new Error("Logger is required to handle exceptions");this.logger=t,this.handlers=new Map},(t=[{key:"handle",value:function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];r.forEach((function(t){if(Array.isArray(t))return t.forEach((function(t){return e._addHandler(t)}));e._addHandler(t)})),this.catcher||(this.catcher=this._uncaughtException.bind(this),process.on("uncaughtException",this.catcher))}},{key:"unhandle",value:function(){var e=this;this.catcher&&(process.removeListener("uncaughtException",this.catcher),this.catcher=!1,Array.from(this.handlers.values()).forEach((function(t){return e.logger.unpipe(t)})))}},{key:"getAllInfo",value:function(e){var t=null;return e&&(t="string"==typeof e?e:e.message),{error:e,level:"error",message:["uncaughtException: ".concat(t||"(no error message)"),e&&e.stack||" No stack trace"].join("\n"),stack:e&&e.stack,exception:!0,date:(new Date).toString(),process:this.getProcessInfo(),os:this.getOsInfo(),trace:this.getTrace(e)}}},{key:"getProcessInfo",value:function(){return{pid:process.pid,uid:process.getuid?process.getuid():null,gid:process.getgid?process.getgid():null,cwd:process.cwd(),execPath:process.execPath,version:process.version,argv:process.argv,memoryUsage:process.memoryUsage()}}},{key:"getOsInfo",value:function(){return{loadavg:s.loadavg(),uptime:s.uptime()}}},{key:"getTrace",value:function(e){return(e?c.parse(e):c.get()).map((function(e){return{column:e.getColumnNumber(),file:e.getFileName(),function:e.getFunctionName(),line:e.getLineNumber(),method:e.getMethodName(),native:e.isNative()}}))}},{key:"_addHandler",value:function(e){if(!this.handlers.has(e)){e.handleExceptions=!0;var t=new p(e);this.handlers.set(e,t),this.logger.pipe(t)}}},{key:"_uncaughtException",value:function(e){var t,r=this.getAllInfo(e),n=this._getExceptionHandlers(),i="function"==typeof this.logger.exitOnError?this.logger.exitOnError(e):this.logger.exitOnError;function o(){l("doExit",i),l("process._exiting",process._exiting),i&&!process._exiting&&(t&&clearTimeout(t),process.exit(1))}if(!n.length&&i&&(console.warn("winston: exitOnError cannot be true with no exception handlers."),console.warn("winston: not exiting process."),i=!1),!n||0===n.length)return process.nextTick(o);a(n,(function(e,t){var r=u(t),n=e.transport||e;function i(e){return function(){l(e),r()}}n._ending=!0,n.once("finish",i("finished")),n.once("error",i("error"))}),(function(){return i&&o()})),this.logger.log(r),i&&(t=setTimeout(o,3e3))}},{key:"_getExceptionHandlers",value:function(){return this.logger.transports.filter((function(e){return(e.transport||e).handleExceptions}))}}])&&i(e.prototype,t),r&&i(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}()},9422:(e,t,r)=>{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,o(n.key),n)}}function o(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}function s(e,t,r){return t=a(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],a(e).constructor):t.apply(e,r))}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function l(e,t){return(l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var u=r(4156).Writable;e.exports=function(e){function t(e){var r;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),r=s(this,t,[{objectMode:!0}]),!e)throw new Error("ExceptionStream requires a TransportStream instance.");return r.handleExceptions=!0,r.transport=e,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(t,e),r=t,(n=[{key:"_write",value:function(e,t,r){return e.exception?this.transport.log(e,r):(r(),!0)}}])&&i(r.prototype,n),o&&i(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}(u)},2162:(e,t,r)=>{"use strict";function n(e,t,r){return(t=s(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,s(n.key),n)}}function s(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==i(t)?t:t+""}function a(e,t,r){return t=l(t),function(e,t){if(t&&("object"==i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],l(e).constructor):t.apply(e,r))}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t){return(u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var c=r(4156),p=c.Stream,f=c.Transform,h=r(5236),d=r(4966),g=d.LEVEL,y=d.SPLAT,v=r(6605),m=r(8624),b=r(8846),w=r(1127),S=r(2535),_=r(1735).warn,E=r(9127),O=/%[scdjifoO%]/g,R=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=a(this,t,[{objectMode:!0}])).configure(e),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(t,e),s=t,(l=[{key:"child",value:function(e){var t=this;return Object.create(t,{write:{value:function(r){var n=Object.assign({},e,r);r instanceof Error&&(n.stack=r.stack,n.message=r.message),t.write(n)}}})}},{key:"configure",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.silent,i=t.format,o=t.defaultMeta,s=t.levels,a=t.level,l=void 0===a?"info":a,u=t.exitOnError,c=void 0===u||u,p=t.transports,f=t.colors,h=t.emitErrs,d=t.formatters,g=t.padLevels,y=t.rewriters,v=t.stripColors,w=t.exceptionHandlers,S=t.rejectionHandlers;if(this.transports.length&&this.clear(),this.silent=n,this.format=i||this.format||r(2598)(),this.defaultMeta=o||null,this.levels=s||this.levels||E.npm.levels,this.level=l,this.exceptions&&this.exceptions.unhandle(),this.rejections&&this.rejections.unhandle(),this.exceptions=new m(this),this.rejections=new b(this),this.profilers={},this.exitOnError=c,p&&(p=Array.isArray(p)?p:[p]).forEach((function(t){return e.add(t)})),f||h||d||g||y||v)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("\n"));w&&this.exceptions.handle(w),S&&this.rejections.handle(S)}},{key:"isLevelEnabled",value:function(e){var t=this,r=T(this.levels,e);if(null===r)return!1;var n=T(this.levels,this.level);return null!==n&&(this.transports&&0!==this.transports.length?-1!==this.transports.findIndex((function(e){var i=T(t.levels,e.level);return null===i&&(i=n),i>=r})):n>=r)}},{key:"log",value:function(e,t){for(var r=arguments.length,o=new Array(r>2?r-2:0),s=2;s<r;s++)o[s-2]=arguments[s];if(1===arguments.length)return e[g]=e.level,this._addDefaultMeta(e),this.write(e),this;if(2===arguments.length)return t&&"object"===i(t)?(t[g]=t.level=e,this._addDefaultMeta(t),this.write(t),this):(t=n(n(n({},g,e),"level",e),"message",t),this._addDefaultMeta(t),this.write(t),this);var a=o[0];if("object"===i(a)&&null!==a){var l=t&&t.match&&t.match(O);if(!l){var u=Object.assign({},this.defaultMeta,a,n(n(n(n({},g,e),y,o),"level",e),"message",t));return a.message&&(u.message="".concat(u.message," ").concat(a.message)),a.stack&&(u.stack=a.stack),this.write(u),this}}return this.write(Object.assign({},this.defaultMeta,n(n(n(n({},g,e),y,o),"level",e),"message",t))),this}},{key:"_transform",value:function(e,t,r){if(this.silent)return r();e[g]||(e[g]=e.level),this.levels[e[g]]||0===this.levels[e[g]]||console.error("[winston] Unknown logger level: %s",e[g]),this._readableState.pipes||console.error("[winston] Attempt to write logs with no transports, which can increase memory usage: %j",e);try{this.push(this.format.transform(e,this.format.options))}finally{this._writableState.sync=!1,r()}}},{key:"_final",value:function(e){var t=this.transports.slice();h(t,(function(e,t){if(!e||e.finished)return setImmediate(t);e.once("finish",t),e.end()}),e)}},{key:"add",value:function(e){var t=!v(e)||e.log.length>2?new w({transport:e}):e;if(!t._writableState||!t._writableState.objectMode)throw new Error("Transports must WritableStreams in objectMode. Set { objectMode: true }.");return this._onEvent("error",t),this._onEvent("warn",t),this.pipe(t),e.handleExceptions&&this.exceptions.handle(),e.handleRejections&&this.rejections.handle(),this}},{key:"remove",value:function(e){if(!e)return this;var t=e;return(!v(e)||e.log.length>2)&&(t=this.transports.filter((function(t){return t.transport===e}))[0]),t&&this.unpipe(t),this}},{key:"clear",value:function(){return this.unpipe(),this}},{key:"close",value:function(){return this.exceptions.unhandle(),this.rejections.unhandle(),this.clear(),this.emit("close"),this}},{key:"setLevels",value:function(){_.deprecated("setLevels")}},{key:"query",value:function(e,t){"function"==typeof e&&(t=e,e={}),e=e||{};var r={},n=Object.assign({},e.query||{});h(this.transports.filter((function(e){return!!e.query})),(function(t,i){!function(t,r){e.query&&"function"==typeof t.formatQuery&&(e.query=t.formatQuery(n)),t.query(e,(function(n,i){if(n)return r(n);"function"==typeof t.formatResults&&(i=t.formatResults(i,e.format)),r(null,i)}))}(t,(function(e,n){i&&((n=e||n)&&(r[t.name]=n),i()),i=null}))}),(function(){return t(null,r)}))}},{key:"stream",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new p,r=[];return t._streams=r,t.destroy=function(){for(var e=r.length;e--;)r[e].destroy()},this.transports.filter((function(e){return!!e.stream})).forEach((function(n){var i=n.stream(e);i&&(r.push(i),i.on("log",(function(e){e.transport=e.transport||[],e.transport.push(n.name),t.emit("log",e)})),i.on("error",(function(e){e.transport=e.transport||[],e.transport.push(n.name),t.emit("error",e)})))})),t}},{key:"startTimer",value:function(){return new S(this)}},{key:"profile",value:function(e){var t=Date.now();if(this.profilers[e]){var r=this.profilers[e];delete this.profilers[e];for(var n=arguments.length,o=new Array(n>1?n-1:0),s=1;s<n;s++)o[s-1]=arguments[s];"function"==typeof o[o.length-2]&&(console.warn("Callback function no longer supported as of winston@3.0.0"),o.pop());var a="object"===i(o[o.length-1])?o.pop():{};return a.level=a.level||"info",a.durationMs=t-r,a.message=a.message||e,this.write(a)}return this.profilers[e]=t,this}},{key:"handleExceptions",value:function(){var e;console.warn("Deprecated: .handleExceptions() will be removed in winston@4. Use .exceptions.handle()"),(e=this.exceptions).handle.apply(e,arguments)}},{key:"unhandleExceptions",value:function(){var e;console.warn("Deprecated: .unhandleExceptions() will be removed in winston@4. Use .exceptions.unhandle()"),(e=this.exceptions).unhandle.apply(e,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("\n"))}},{key:"_onEvent",value:function(e,t){t["__winston"+e]||(t["__winston"+e]=function(r){"error"!==e||this.transports.includes(t)||this.add(t),this.emit(e,r,t)}.bind(this),t.on(e,t["__winston"+e]))}},{key:"_addDefaultMeta",value:function(e){this.defaultMeta&&Object.assign(e,this.defaultMeta)}}])&&o(s.prototype,l),c&&o(s,c),Object.defineProperty(s,"prototype",{writable:!1}),s;var s,l,c}(f);function T(e,t){var r=e[t];return r||0===r?r:null}Object.defineProperty(R.prototype,"transports",{configurable:!1,enumerable:!0,get:function(){var e=this._readableState.pipes;return Array.isArray(e)?e:[e].filter(Boolean)}}),e.exports=R},2535:(e,t,r)=>{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,o(n.key),n)}}function o(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}var s=function(){return e=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var i=r(2162);if("object"!==n(t)||Array.isArray(t)||!(t instanceof i))throw new Error("Logger is required for profiling");this.logger=t,this.start=Date.now()},(t=[{key:"done",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];"function"==typeof t[t.length-1]&&(console.warn("Callback function no longer supported as of winston@3.0.0"),t.pop());var i="object"===n(t[t.length-1])?t.pop():{};return i.level=i.level||"info",i.durationMs=Date.now()-this.start,this.logger.write(i)}}])&&i(e.prototype,t),o&&i(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,o}();e.exports=s},8846:(e,t,r)=>{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,o(n.key),n)}}function o(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}var s=r(2213),a=r(5236),l=r(7147)("winston:rejection"),u=r(960),c=r(5082),p=r(888);e.exports=function(){return e=function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t)throw new Error("Logger is required to handle rejections");this.logger=t,this.handlers=new Map},(t=[{key:"handle",value:function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];r.forEach((function(t){if(Array.isArray(t))return t.forEach((function(t){return e._addHandler(t)}));e._addHandler(t)})),this.catcher||(this.catcher=this._unhandledRejection.bind(this),process.on("unhandledRejection",this.catcher))}},{key:"unhandle",value:function(){var e=this;this.catcher&&(process.removeListener("unhandledRejection",this.catcher),this.catcher=!1,Array.from(this.handlers.values()).forEach((function(t){return e.logger.unpipe(t)})))}},{key:"getAllInfo",value:function(e){var t=null;return e&&(t="string"==typeof e?e:e.message),{error:e,level:"error",message:["unhandledRejection: ".concat(t||"(no error message)"),e&&e.stack||" No stack trace"].join("\n"),stack:e&&e.stack,rejection:!0,date:(new Date).toString(),process:this.getProcessInfo(),os:this.getOsInfo(),trace:this.getTrace(e)}}},{key:"getProcessInfo",value:function(){return{pid:process.pid,uid:process.getuid?process.getuid():null,gid:process.getgid?process.getgid():null,cwd:process.cwd(),execPath:process.execPath,version:process.version,argv:process.argv,memoryUsage:process.memoryUsage()}}},{key:"getOsInfo",value:function(){return{loadavg:s.loadavg(),uptime:s.uptime()}}},{key:"getTrace",value:function(e){return(e?c.parse(e):c.get()).map((function(e){return{column:e.getColumnNumber(),file:e.getFileName(),function:e.getFunctionName(),line:e.getLineNumber(),method:e.getMethodName(),native:e.isNative()}}))}},{key:"_addHandler",value:function(e){if(!this.handlers.has(e)){e.handleRejections=!0;var t=new p(e);this.handlers.set(e,t),this.logger.pipe(t)}}},{key:"_unhandledRejection",value:function(e){var t,r=this.getAllInfo(e),n=this._getRejectionHandlers(),i="function"==typeof this.logger.exitOnError?this.logger.exitOnError(e):this.logger.exitOnError;function o(){l("doExit",i),l("process._exiting",process._exiting),i&&!process._exiting&&(t&&clearTimeout(t),process.exit(1))}if(!n.length&&i&&(console.warn("winston: exitOnError cannot be true with no rejection handlers."),console.warn("winston: not exiting process."),i=!1),!n||0===n.length)return process.nextTick(o);a(n,(function(e,t){var r=u(t),n=e.transport||e;function i(e){return function(){l(e),r()}}n._ending=!0,n.once("finish",i("finished")),n.once("error",i("error"))}),(function(){return i&&o()})),this.logger.log(r),i&&(t=setTimeout(o,3e3))}},{key:"_getRejectionHandlers",value:function(){return this.logger.transports.filter((function(e){return(e.transport||e).handleRejections}))}}])&&i(e.prototype,t),r&&i(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}()},888:(e,t,r)=>{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,o(n.key),n)}}function o(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}function s(e,t,r){return t=a(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],a(e).constructor):t.apply(e,r))}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function l(e,t){return(l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var u=r(4156).Writable;e.exports=function(e){function t(e){var r;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),r=s(this,t,[{objectMode:!0}]),!e)throw new Error("RejectionStream requires a TransportStream instance.");return r.handleRejections=!0,r.transport=e,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(t,e),r=t,(n=[{key:"_write",value:function(e,t,r){return e.rejection?this.transport.log(e,r):(r(),!0)}}])&&i(r.prototype,n),o&&i(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}(u)},2879:(e,t,r)=>{"use strict";var n=r(2627),i=r(8888).StringDecoder,o=r(4156).Stream;function s(){}e.exports=function(e,t){var r=Buffer.alloc(65536),a=new i("utf8"),l=new o,u="",c=0,p=0;return-1===e.start&&delete e.start,l.readable=!0,l.destroy=function(){l.destroyed=!0,l.emit("end"),l.emit("close")},n.open(e.file,"a+","0644",(function(i,o){if(i)return t?t(i):l.emit("error",i),void l.destroy();!function i(){if(!l.destroyed)return n.read(o,r,0,r.length,c,(function(n,o){if(n)return t?t(n):l.emit("error",n),void l.destroy();if(!o)return u&&((null==e.start||p>e.start)&&(t?t(null,u):l.emit("line",u)),p++,u=""),setTimeout(i,1e3);var s=a.write(r.slice(0,o));t||l.emit("data",s);for(var f=(s=(u+s).split(/\n+/)).length-1,h=0;h<f;h++)(null==e.start||p>e.start)&&(t?t(null,s[h]):l.emit("line",s[h])),p++;return u=s[f],c+=o,i()}));n.close(o,s)}()})),t?l.destroy:l}},810:(e,t,r)=>{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,s(n.key),n)}}function s(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}function a(e,t,r){return t=l(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],l(e).constructor):t.apply(e,r))}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t){return(u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var c=r(2213),p=r(4966),f=p.LEVEL,h=p.MESSAGE,d=r(6155);e.exports=function(e){function t(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return i(this,t),(e=a(this,t,[r])).name=r.name||"console",e.stderrLevels=e._stringArrayToSet(r.stderrLevels),e.consoleWarnLevels=e._stringArrayToSet(r.consoleWarnLevels),e.eol="string"==typeof r.eol?r.eol:c.EOL,e.setMaxListeners(30),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(t,e),r=t,(n=[{key:"log",value:function(e,t){var r=this;return setImmediate((function(){return r.emit("logged",e)})),this.stderrLevels[e[f]]?(console._stderr?console._stderr.write("".concat(e[h]).concat(this.eol)):console.error(e[h]),void(t&&t())):this.consoleWarnLevels[e[f]]?(console._stderr?console._stderr.write("".concat(e[h]).concat(this.eol)):console.warn(e[h]),void(t&&t())):(console._stdout?console._stdout.write("".concat(e[h]).concat(this.eol)):console.log(e[h]),void(t&&t()))}},{key:"_stringArrayToSet",value:function(e,t){if(!e)return{};if(t=t||"Cannot make set from type other than Array of string elements",!Array.isArray(e))throw new Error(t);return e.reduce((function(e,r){if("string"!=typeof r)throw new Error(t);return e[r]=!0,e}),{})}}])&&o(r.prototype,n),s&&o(r,s),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,s}(d)},3329:(e,t,r)=>{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,s(n.key),n)}}function s(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}function a(e,t,r){return t=l(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],l(e).constructor):t.apply(e,r))}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t){return(u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var c=r(9256),p=r(8558),f=r(481),h=r(7946),d=r(4966).MESSAGE,g=r(4156),y=g.Stream,v=g.PassThrough,m=r(6155),b=r(7147)("winston:file"),w=r(2213),S=r(2879);e.exports=function(e){function t(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};function n(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];n.slice(1).forEach((function(t){if(r[t])throw new Error("Cannot set ".concat(t," and ").concat(e," together"))}))}if(i(this,t),(e=a(this,t,[r])).name=r.name||"file",e._stream=new v,e._stream.setMaxListeners(30),e._onError=e._onError.bind(e),r.filename||r.dirname)n("filename or dirname","stream"),e._basename=e.filename=r.filename?p.basename(r.filename):"winston.log",e.dirname=r.dirname||p.dirname(r.filename),e.options=r.options||{flags:"a"};else{if(!r.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"),n("stream","filename","maxsize"),e._dest=e._stream.pipe(e._setupStream(r.stream)),e.dirname=p.dirname(e._dest.path)}return e.maxsize=r.maxsize||null,e.rotationFormat=r.rotationFormat||!1,e.zippedArchive=r.zippedArchive||!1,e.maxFiles=r.maxFiles||null,e.eol="string"==typeof r.eol?r.eol:w.EOL,e.tailable=r.tailable||!1,e.lazy=r.lazy||!1,e._size=0,e._pendingSize=0,e._created=0,e._drain=!1,e._opening=!1,e._ending=!1,e._fileExist=!1,e.dirname&&e._createLogDirIfNotExist(e.dirname),e.lazy||e.open(),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(t,e),r=t,(s=[{key:"finishIfEnding",value:function(){var e=this;this._ending&&(this._opening?this.once("open",(function(){e._stream.once("finish",(function(){return e.emit("finish")})),setImmediate((function(){return e._stream.end()}))})):(this._stream.once("finish",(function(){return e.emit("finish")})),setImmediate((function(){return e._stream.end()}))))}},{key:"log",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};if(this.silent)return r(),!0;if(this._drain)this._stream.once("drain",(function(){t._drain=!1,t.log(e,r)}));else{if(!this._rotate){if(this.lazy){if(!this._fileExist)return this._opening||this.open(),void this.once("open",(function(){t._fileExist=!0,t.log(e,r)}));if(this._needsNewFile(this._pendingSize))return void this._dest.once("close",(function(){t._opening||t.open(),t.once("open",(function(){t.log(e,r)}))}))}var n="".concat(e[d]).concat(this.eol),i=Buffer.byteLength(n);this._pendingSize+=i,this._opening&&!this.rotatedWhileOpening&&this._needsNewFile(this._size+this._pendingSize)&&(this.rotatedWhileOpening=!0);var o=this._stream.write(n,s.bind(this));return o?r():(this._drain=!0,this._stream.once("drain",(function(){t._drain=!1,r()}))),b("written",o,this._drain),this.finishIfEnding(),o}this._stream.once("rotate",(function(){t._rotate=!1,t.log(e,r)}))}function s(){var t=this;this._size+=i,this._pendingSize-=i,b("logged %s %s",this._size,n),this.emit("logged",e),this._rotate||this._opening||this._needsNewFile()&&(this.lazy?this._endStream((function(){t.emit("fileclosed")})):(this._rotate=!0,this._endStream((function(){return t._rotateFile()}))))}}},{key:"query",value:function(e,t){"function"==typeof e&&(t=e,e={}),e=function(e){return(e=e||{}).rows=e.rows||e.limit||10,e.start=e.start||0,e.until=e.until||new Date,"object"!==n(e.until)&&(e.until=new Date(e.until)),e.from=e.from||e.until-864e5,"object"!==n(e.from)&&(e.from=new Date(e.from)),e.order=e.order||"desc",e}(e);var r=p.join(this.dirname,this.filename),i="",o=[],s=0,a=c.createReadStream(r,{encoding:"utf8"});function l(t,r){try{var i=JSON.parse(t);(function(t){if(t&&"object"===n(t)){var r=new Date(t.timestamp);if(!(e.from&&r<e.from||e.until&&r>e.until||e.level&&e.level!==t.level))return!0}})(i)&&function(t){e.rows&&o.length>=e.rows&&"desc"!==e.order?a.readable&&a.destroy():(e.fields&&(t=e.fields.reduce((function(e,r){return e[r]=t[r],e}),{})),"desc"===e.order&&o.length>=e.rows&&o.shift(),o.push(t))}(i)}catch(e){r||a.emit("error",e)}}a.on("error",(function(e){if(a.readable&&a.destroy(),t)return"ENOENT"!==e.code?t(e):t(null,o)})),a.on("data",(function(t){for(var r=(t=(i+t).split(/\n+/)).length-1,n=0;n<r;n++)(!e.start||s>=e.start)&&l(t[n]),s++;i=t[r]})),a.on("close",(function(){i&&l(i,!0),"desc"===e.order&&(o=o.reverse()),t&&t(null,o)}))}},{key:"stream",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=p.join(this.dirname,this.filename),r=new y,n={file:t,start:e.start};return r.destroy=S(n,(function(e,t){if(e)return r.emit("error",e);try{r.emit("data",t),t=JSON.parse(t),r.emit("log",t)}catch(e){r.emit("error",e)}})),r}},{key:"open",value:function(){var e=this;this.filename&&(this._opening||(this._opening=!0,this.stat((function(t,r){if(t)return e.emit("error",t);b("stat done: %s { size: %s }",e.filename,r),e._size=r,e._dest=e._createStream(e._stream),e._opening=!1,e.once("open",(function(){e._stream.eventNames().includes("rotate")?e._stream.emit("rotate"):e._rotate=!1}))}))))}},{key:"stat",value:function(e){var t=this,r=this._getFile(),n=p.join(this.dirname,r);c.stat(n,(function(i,o){return i&&"ENOENT"===i.code?(b("ENOENT ok",n),t.filename=r,e(null,0)):i?(b("err ".concat(i.code," ").concat(n)),e(i)):!o||t._needsNewFile(o.size)?t._incFile((function(){return t.stat(e)})):(t.filename=r,void e(null,o.size))}))}},{key:"close",value:function(e){var t=this;this._stream&&this._stream.end((function(){e&&e(),t.emit("flush"),t.emit("closed")}))}},{key:"_needsNewFile",value:function(e){return e=e||this._size,this.maxsize&&e>=this.maxsize}},{key:"_onError",value:function(e){this.emit("error",e)}},{key:"_setupStream",value:function(e){return e.on("error",this._onError),e}},{key:"_cleanupStream",value:function(e){return e.removeListener("error",this._onError),e.destroy(),e}},{key:"_rotateFile",value:function(){var e=this;this._incFile((function(){return e.open()}))}},{key:"_endStream",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){};this._dest?(this._stream.unpipe(this._dest),this._dest.end((function(){e._cleanupStream(e._dest),t()}))):t()}},{key:"_createStream",value:function(e){var t=this,r=p.join(this.dirname,this.filename);b("create stream start",r,this.options);var n=c.createWriteStream(r,this.options).on("error",(function(e){return b(e)})).on("close",(function(){return b("close",n.path,n.bytesWritten)})).on("open",(function(){b("file open ok",r),t.emit("open",r),e.pipe(n),t.rotatedWhileOpening&&(t._stream=new v,t._stream.setMaxListeners(30),t._rotateFile(),t.rotatedWhileOpening=!1,t._cleanupStream(n),e.end())}));return b("create stream ok",r),n}},{key:"_incFile",value:function(e){b("_incFile",this.filename);var t=p.extname(this._basename),r=p.basename(this._basename,t),n=[];this.zippedArchive&&n.push(function(e){var n=this._created>0&&!this.tailable?this._created:"";this._compressFile(p.join(this.dirname,"".concat(r).concat(n).concat(t)),p.join(this.dirname,"".concat(r).concat(n).concat(t,".gz")),e)}.bind(this)),n.push(function(e){this.tailable?this._checkMaxFilesTailable(t,r,e):(this._created+=1,this._checkMaxFilesIncrementing(t,r,e))}.bind(this)),f(n,e)}},{key:"_getFile",value:function(){var e=p.extname(this._basename),t=p.basename(this._basename,e),r=this.rotationFormat?this.rotationFormat():this._created;return!this.tailable&&this._created?"".concat(t).concat(r).concat(e):"".concat(t).concat(e)}},{key:"_checkMaxFilesIncrementing",value:function(e,t,r){if(!this.maxFiles||this._created<this.maxFiles)return setImmediate(r);var n=this._created-this.maxFiles,i=0!==n?n:"",o=this.zippedArchive?".gz":"",s="".concat(t).concat(i).concat(e).concat(o),a=p.join(this.dirname,s);c.unlink(a,r)}},{key:"_checkMaxFilesTailable",value:function(e,t,r){var n=this,i=[];if(this.maxFiles){for(var o=this.zippedArchive?".gz":"",s=this.maxFiles-1;s>1;s--)i.push(function(r,n){var i=this,s="".concat(t).concat(r-1).concat(e).concat(o),a=p.join(this.dirname,s);c.exists(a,(function(l){if(!l)return n(null);s="".concat(t).concat(r).concat(e).concat(o),c.rename(a,p.join(i.dirname,s),n)}))}.bind(this,s));f(i,(function(){c.rename(p.join(n.dirname,"".concat(t).concat(e).concat(o)),p.join(n.dirname,"".concat(t,"1").concat(e).concat(o)),r)}))}}},{key:"_compressFile",value:function(e,t,r){c.access(e,c.F_OK,(function(n){if(n)return r();var i=h.createGzip(),o=c.createReadStream(e),s=c.createWriteStream(t);s.on("finish",(function(){c.unlink(e,r)})),o.pipe(i).pipe(s)}))}},{key:"_createLogDirIfNotExist",value:function(e){c.existsSync(e)||c.mkdirSync(e,{recursive:!0})}}])&&o(r.prototype,s),l&&o(r,l),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,s,l}(m)},7543:(e,t,r)=>{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){s(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function s(e,t,r){return(t=u(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,u(n.key),n)}}function u(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}function c(e,t,r){return t=p(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],p(e).constructor):t.apply(e,r))}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var h=r(4865),d=r(7500),g=r(4156).Stream,y=r(6155),v=r(1145).configure;e.exports=function(e){function t(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return a(this,t),(e=c(this,t,[r])).options=r,e.name=r.name||"http",e.ssl=!!r.ssl,e.host=r.host||"localhost",e.port=r.port,e.auth=r.auth,e.path=r.path||"",e.maximumDepth=r.maximumDepth,e.agent=r.agent,e.headers=r.headers||{},e.headers["content-type"]="application/json",e.batch=r.batch||!1,e.batchInterval=r.batchInterval||5e3,e.batchCount=r.batchCount||10,e.batchOptions=[],e.batchTimeoutID=-1,e.batchCallback={},e.port||(e.port=e.ssl?443:80),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(t,e),r=t,(n=[{key:"log",value:function(e,t){var r=this;this._request(e,null,null,(function(t,n){n&&200!==n.statusCode&&(t=new Error("Invalid HTTP Status Code: ".concat(n.statusCode))),t?r.emit("warn",t):r.emit("logged",e)})),t&&setImmediate(t)}},{key:"query",value:function(e,t){"function"==typeof e&&(t=e,e={});var r=(e={method:"query",params:this.normalizeQuery(e)}).params.auth||null;delete e.params.auth;var n=e.params.path||null;delete e.params.path,this._request(e,r,n,(function(e,r,n){if(r&&200!==r.statusCode&&(e=new Error("Invalid HTTP Status Code: ".concat(r.statusCode))),e)return t(e);if("string"==typeof n)try{n=JSON.parse(n)}catch(e){return t(e)}t(null,n)}))}},{key:"stream",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new g,r=(e={method:"stream",params:e}).params.path||null;delete e.params.path;var n=e.params.auth||null;delete e.params.auth;var i="",o=this._request(e,n,r);return t.destroy=function(){return o.destroy()},o.on("data",(function(e){for(var r=(e=(i+e).split(/\n+/)).length-1,n=0;n<r;n++)try{t.emit("log",JSON.parse(e[n]))}catch(e){t.emit("error",e)}i=e[r]})),o.on("error",(function(e){return t.emit("error",e)})),t}},{key:"_request",value:function(e,t,r,n){e=e||{},t=t||this.auth,r=r||this.path||"",this.batch?this._doBatch(e,n,t,r):this._doRequest(e,n,t,r)}},{key:"_doBatch",value:function(e,t,r,n){if(this.batchOptions.push(e),1===this.batchOptions.length){var i=this;this.batchCallback=t,this.batchTimeoutID=setTimeout((function(){i.batchTimeoutID=-1,i._doBatchRequest(i.batchCallback,r,n)}),this.batchInterval)}this.batchOptions.length===this.batchCount&&this._doBatchRequest(this.batchCallback,r,n)}},{key:"_doBatchRequest",value:function(e,t,r){this.batchTimeoutID>0&&(clearTimeout(this.batchTimeoutID),this.batchTimeoutID=-1);var n=this.batchOptions.slice();this.batchOptions=[],this._doRequest(n,e,t,r)}},{key:"_doRequest",value:function(e,t,r,n){var i=Object.assign({},this.headers);r&&r.bearer&&(i.Authorization="Bearer ".concat(r.bearer));var s=(this.ssl?d:h).request(o(o({},this.options),{},{method:"POST",host:this.host,port:this.port,path:"/".concat(n.replace(/^\//,"")),headers:i,auth:r&&r.username&&r.password?"".concat(r.username,":").concat(r.password):"",agent:this.agent}));s.on("error",t),s.on("response",(function(e){return e.on("end",(function(){return t(null,e)})).resume()}));var a=v(o({},this.maximumDepth&&{maximumDepth:this.maximumDepth}));s.end(Buffer.from(a(e,this.options.replacer),"utf8"))}}])&&l(r.prototype,n),i&&l(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}(y)},3307:(e,t,r)=>{"use strict";Object.defineProperty(t,"Console",{configurable:!0,enumerable:!0,get:function(){return r(810)}}),Object.defineProperty(t,"File",{configurable:!0,enumerable:!0,get:function(){return r(3329)}}),Object.defineProperty(t,"Http",{configurable:!0,enumerable:!0,get:function(){return r(7543)}}),Object.defineProperty(t,"Stream",{configurable:!0,enumerable:!0,get:function(){return r(1292)}})},1292:(e,t,r)=>{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,s(n.key),n)}}function s(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}function a(e,t,r){return t=l(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],l(e).constructor):t.apply(e,r))}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t){return(u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var c=r(6605),p=r(4966).MESSAGE,f=r(2213),h=r(6155);e.exports=function(e){function t(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(i(this,t),e=a(this,t,[r]),!r.stream||!c(r.stream))throw new Error("options.stream is required.");return e._stream=r.stream,e._stream.setMaxListeners(1/0),e.isObjectMode=r.stream._writableState.objectMode,e.eol="string"==typeof r.eol?r.eol:f.EOL,e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(t,e),r=t,(n=[{key:"log",value:function(e,t){var r=this;if(setImmediate((function(){return r.emit("logged",e)})),this.isObjectMode)return this._stream.write(e),void(t&&t());this._stream.write("".concat(e[p]).concat(this.eol)),t&&t()}}])&&o(r.prototype,n),s&&o(r,s),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,s}(h)},3227:e=>{e.exports=function(){for(var e={},r=0;r<arguments.length;r++){var n=arguments[r];for(var i in n)t.call(n,i)&&(e[i]=n[i])}return e};var t=Object.prototype.hasOwnProperty},3804:(e,t,r)=>{const n={};n.web=r(5949);r(8052);const i={v1:{}};i.v1.signaling={},i.v1.signaling.api=r(4620),i.v1.signaling.api.SignalingClient=function(e,t,r){r||(r={}),r.format="text",this.client_=new n.web.GrpcWebClientBase(r),this.hostname_=e.replace(/\/+$/,"")},i.v1.signaling.api.SignalingPromiseClient=function(e,t,r){r||(r={}),r.format="text",this.client_=new n.web.GrpcWebClientBase(r),this.hostname_=e.replace(/\/+$/,"")};const o=new n.web.MethodDescriptor("/v1.signaling.api.Signaling/GetHealth",n.web.MethodType.UNARY,i.v1.signaling.api.GetHealthRequest,i.v1.signaling.api.GetHealthResponse,(function(e){return e.serializeBinary()}),i.v1.signaling.api.GetHealthResponse.deserializeBinary);i.v1.signaling.api.SignalingClient.prototype.getHealth=function(e,t,r){return this.client_.rpcCall(this.hostname_+"/v1.signaling.api.Signaling/GetHealth",e,t||{},o,r)},i.v1.signaling.api.SignalingPromiseClient.prototype.getHealth=function(e,t){return this.client_.unaryCall(this.hostname_+"/v1.signaling.api.Signaling/GetHealth",e,t||{},o)};const s=new n.web.MethodDescriptor("/v1.signaling.api.Signaling/CreatePeer",n.web.MethodType.UNARY,i.v1.signaling.api.CreatePeerRequest,i.v1.signaling.api.CreatePeerResponse,(function(e){return e.serializeBinary()}),i.v1.signaling.api.CreatePeerResponse.deserializeBinary);i.v1.signaling.api.SignalingClient.prototype.createPeer=function(e,t,r){return this.client_.rpcCall(this.hostname_+"/v1.signaling.api.Signaling/CreatePeer",e,t||{},s,r)},i.v1.signaling.api.SignalingPromiseClient.prototype.createPeer=function(e,t){return this.client_.unaryCall(this.hostname_+"/v1.signaling.api.Signaling/CreatePeer",e,t||{},s)};const a=new n.web.MethodDescriptor("/v1.signaling.api.Signaling/DeletePeer",n.web.MethodType.UNARY,i.v1.signaling.api.DeletePeerRequest,i.v1.signaling.api.DeletePeerResponse,(function(e){return e.serializeBinary()}),i.v1.signaling.api.DeletePeerResponse.deserializeBinary);i.v1.signaling.api.SignalingClient.prototype.deletePeer=function(e,t,r){return this.client_.rpcCall(this.hostname_+"/v1.signaling.api.Signaling/DeletePeer",e,t||{},a,r)},i.v1.signaling.api.SignalingPromiseClient.prototype.deletePeer=function(e,t){return this.client_.unaryCall(this.hostname_+"/v1.signaling.api.Signaling/DeletePeer",e,t||{},a)};const l=new n.web.MethodDescriptor("/v1.signaling.api.Signaling/RefreshPeer",n.web.MethodType.UNARY,i.v1.signaling.api.RefreshPeerRequest,i.v1.signaling.api.RefreshPeerResponse,(function(e){return e.serializeBinary()}),i.v1.signaling.api.RefreshPeerResponse.deserializeBinary);i.v1.signaling.api.SignalingClient.prototype.refreshPeer=function(e,t,r){return this.client_.rpcCall(this.hostname_+"/v1.signaling.api.Signaling/RefreshPeer",e,t||{},l,r)},i.v1.signaling.api.SignalingPromiseClient.prototype.refreshPeer=function(e,t){return this.client_.unaryCall(this.hostname_+"/v1.signaling.api.Signaling/RefreshPeer",e,t||{},l)};const u=new n.web.MethodDescriptor("/v1.signaling.api.Signaling/GetPeers",n.web.MethodType.UNARY,i.v1.signaling.api.GetPeersRequest,i.v1.signaling.api.GetPeersResponse,(function(e){return e.serializeBinary()}),i.v1.signaling.api.GetPeersResponse.deserializeBinary);i.v1.signaling.api.SignalingClient.prototype.getPeers=function(e,t,r){return this.client_.rpcCall(this.hostname_+"/v1.signaling.api.Signaling/GetPeers",e,t||{},u,r)},i.v1.signaling.api.SignalingPromiseClient.prototype.getPeers=function(e,t){return this.client_.unaryCall(this.hostname_+"/v1.signaling.api.Signaling/GetPeers",e,t||{},u)};const c=new n.web.MethodDescriptor("/v1.signaling.api.Signaling/GetIceServers",n.web.MethodType.UNARY,i.v1.signaling.api.GetIceServersRequest,i.v1.signaling.api.GetIceServersResponse,(function(e){return e.serializeBinary()}),i.v1.signaling.api.GetIceServersResponse.deserializeBinary);i.v1.signaling.api.SignalingClient.prototype.getIceServers=function(e,t,r){return this.client_.rpcCall(this.hostname_+"/v1.signaling.api.Signaling/GetIceServers",e,t||{},c,r)},i.v1.signaling.api.SignalingPromiseClient.prototype.getIceServers=function(e,t){return this.client_.unaryCall(this.hostname_+"/v1.signaling.api.Signaling/GetIceServers",e,t||{},c)};const p=new n.web.MethodDescriptor("/v1.signaling.api.Signaling/SendSignal",n.web.MethodType.UNARY,i.v1.signaling.api.SendSignalRequest,i.v1.signaling.api.SendSignalResponse,(function(e){return e.serializeBinary()}),i.v1.signaling.api.SendSignalResponse.deserializeBinary);i.v1.signaling.api.SignalingClient.prototype.sendSignal=function(e,t,r){return this.client_.rpcCall(this.hostname_+"/v1.signaling.api.Signaling/SendSignal",e,t||{},p,r)},i.v1.signaling.api.SignalingPromiseClient.prototype.sendSignal=function(e,t){return this.client_.unaryCall(this.hostname_+"/v1.signaling.api.Signaling/SendSignal",e,t||{},p)};const f=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(e){return e.serializeBinary()}),i.v1.signaling.api.ReceiveSignalStreamResponse.deserializeBinary);i.v1.signaling.api.SignalingClient.prototype.receiveSignalStream=function(e,t){return this.client_.serverStreaming(this.hostname_+"/v1.signaling.api.Signaling/ReceiveSignalStream",e,t||{},f)},i.v1.signaling.api.SignalingPromiseClient.prototype.receiveSignalStream=function(e,t){return this.client_.serverStreaming(this.hostname_+"/v1.signaling.api.Signaling/ReceiveSignalStream",e,t||{},f)};const h=new n.web.MethodDescriptor("/v1.signaling.api.Signaling/GetSessions",n.web.MethodType.UNARY,i.v1.signaling.api.GetSessionsRequest,i.v1.signaling.api.GetSessionsResponse,(function(e){return e.serializeBinary()}),i.v1.signaling.api.GetSessionsResponse.deserializeBinary);i.v1.signaling.api.SignalingClient.prototype.getSessions=function(e,t,r){return this.client_.rpcCall(this.hostname_+"/v1.signaling.api.Signaling/GetSessions",e,t||{},h,r)},i.v1.signaling.api.SignalingPromiseClient.prototype.getSessions=function(e,t){return this.client_.unaryCall(this.hostname_+"/v1.signaling.api.Signaling/GetSessions",e,t||{},h)},e.exports=i.v1.signaling.api},4620:(e,t,r)=>{var n=r(7186),i=n,o=function(){return this?this:"undefined"!=typeof window?window:void 0!==o?o:"undefined"!=typeof self?self:Function("return this")()}.call(null),s=r(8052);i.object.extend(proto,s),i.exportSymbol("proto.v1.signaling.api.CreatePeerRequest",null,o),i.exportSymbol("proto.v1.signaling.api.CreatePeerResponse",null,o),i.exportSymbol("proto.v1.signaling.api.DeletePeerRequest",null,o),i.exportSymbol("proto.v1.signaling.api.DeletePeerResponse",null,o),i.exportSymbol("proto.v1.signaling.api.GetHealthRequest",null,o),i.exportSymbol("proto.v1.signaling.api.GetHealthResponse",null,o),i.exportSymbol("proto.v1.signaling.api.GetIceServersRequest",null,o),i.exportSymbol("proto.v1.signaling.api.GetIceServersResponse",null,o),i.exportSymbol("proto.v1.signaling.api.GetPeersRequest",null,o),i.exportSymbol("proto.v1.signaling.api.GetPeersResponse",null,o),i.exportSymbol("proto.v1.signaling.api.GetSessionsRequest",null,o),i.exportSymbol("proto.v1.signaling.api.GetSessionsResponse",null,o),i.exportSymbol("proto.v1.signaling.api.Peer",null,o),i.exportSymbol("proto.v1.signaling.api.ReceiveSignalStreamRequest",null,o),i.exportSymbol("proto.v1.signaling.api.ReceiveSignalStreamResponse",null,o),i.exportSymbol("proto.v1.signaling.api.RefreshPeerRequest",null,o),i.exportSymbol("proto.v1.signaling.api.RefreshPeerResponse",null,o),i.exportSymbol("proto.v1.signaling.api.RtcSession",null,o),i.exportSymbol("proto.v1.signaling.api.SendSignalRequest",null,o),i.exportSymbol("proto.v1.signaling.api.SendSignalResponse",null,o),i.exportSymbol("proto.v1.signaling.api.SessionType",null,o),i.exportSymbol("proto.v1.signaling.api.Signal",null,o),proto.v1.signaling.api.Peer=function(e){n.Message.initialize(this,e,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(e){n.Message.initialize(this,e,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.RtcSession=function(e){n.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.v1.signaling.api.RtcSession,n.Message),i.DEBUG&&!COMPILED&&(proto.v1.signaling.api.RtcSession.displayName="proto.v1.signaling.api.RtcSession"),proto.v1.signaling.api.GetSessionsRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.v1.signaling.api.GetSessionsRequest,n.Message),i.DEBUG&&!COMPILED&&(proto.v1.signaling.api.GetSessionsRequest.displayName="proto.v1.signaling.api.GetSessionsRequest"),proto.v1.signaling.api.GetSessionsResponse=function(e){n.Message.initialize(this,e,0,-1,proto.v1.signaling.api.GetSessionsResponse.repeatedFields_,null)},i.inherits(proto.v1.signaling.api.GetSessionsResponse,n.Message),i.DEBUG&&!COMPILED&&(proto.v1.signaling.api.GetSessionsResponse.displayName="proto.v1.signaling.api.GetSessionsResponse"),proto.v1.signaling.api.GetHealthRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.v1.signaling.api.GetHealthRequest,n.Message),i.DEBUG&&!COMPILED&&(proto.v1.signaling.api.GetHealthRequest.displayName="proto.v1.signaling.api.GetHealthRequest"),proto.v1.signaling.api.GetHealthResponse=function(e){n.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.v1.signaling.api.GetHealthResponse,n.Message),i.DEBUG&&!COMPILED&&(proto.v1.signaling.api.GetHealthResponse.displayName="proto.v1.signaling.api.GetHealthResponse"),proto.v1.signaling.api.CreatePeerRequest=function(e){n.Message.initialize(this,e,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(e){n.Message.initialize(this,e,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(e){n.Message.initialize(this,e,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(e){n.Message.initialize(this,e,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(e){n.Message.initialize(this,e,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(e){n.Message.initialize(this,e,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(e){n.Message.initialize(this,e,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(e){n.Message.initialize(this,e,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(e){n.Message.initialize(this,e,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(e){n.Message.initialize(this,e,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(e){n.Message.initialize(this,e,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(e){n.Message.initialize(this,e,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(e){n.Message.initialize(this,e,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(e){n.Message.initialize(this,e,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(e){return proto.v1.signaling.api.Peer.toObject(e,this)},proto.v1.signaling.api.Peer.toObject=function(e,t){var r,i={peerId:n.Message.getFieldWithDefault(t,1,""),organizationId:n.Message.getFieldWithDefault(t,2,""),userId:(r=t.getUserId())&&s.StringValue.toObject(e,r),deviceId:(r=t.getDeviceId())&&s.StringValue.toObject(e,r),sessionIdsList:null==(r=n.Message.getRepeatedField(t,5))?void 0:r,peerCreatedTimestamp:(r=t.getPeerCreatedTimestamp())&&s.Int64Value.toObject(e,r)};return e&&(i.$jspbMessageInstance=t),i}),proto.v1.signaling.api.Peer.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.v1.signaling.api.Peer;return proto.v1.signaling.api.Peer.deserializeBinaryFromReader(r,t)},proto.v1.signaling.api.Peer.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readString();e.setPeerId(r);break;case 2:r=t.readString();e.setOrganizationId(r);break;case 3:r=new s.StringValue;t.readMessage(r,s.StringValue.deserializeBinaryFromReader),e.setUserId(r);break;case 4:r=new s.StringValue;t.readMessage(r,s.StringValue.deserializeBinaryFromReader),e.setDeviceId(r);break;case 5:r=t.readString();e.addSessionIds(r);break;case 6:r=new s.Int64Value;t.readMessage(r,s.Int64Value.deserializeBinaryFromReader),e.setPeerCreatedTimestamp(r);break;default:t.skipField()}}return e},proto.v1.signaling.api.Peer.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.v1.signaling.api.Peer.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.v1.signaling.api.Peer.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getPeerId()).length>0&&t.writeString(1,r),(r=e.getOrganizationId()).length>0&&t.writeString(2,r),null!=(r=e.getUserId())&&t.writeMessage(3,r,s.StringValue.serializeBinaryToWriter),null!=(r=e.getDeviceId())&&t.writeMessage(4,r,s.StringValue.serializeBinaryToWriter),(r=e.getSessionIdsList()).length>0&&t.writeRepeatedString(5,r),null!=(r=e.getPeerCreatedTimestamp())&&t.writeMessage(6,r,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(e){return n.Message.setProto3StringField(this,1,e)},proto.v1.signaling.api.Peer.prototype.getOrganizationId=function(){return n.Message.getFieldWithDefault(this,2,"")},proto.v1.signaling.api.Peer.prototype.setOrganizationId=function(e){return n.Message.setProto3StringField(this,2,e)},proto.v1.signaling.api.Peer.prototype.getUserId=function(){return n.Message.getWrapperField(this,s.StringValue,3)},proto.v1.signaling.api.Peer.prototype.setUserId=function(e){return n.Message.setWrapperField(this,3,e)},proto.v1.signaling.api.Peer.prototype.clearUserId=function(){return this.setUserId(void 0)},proto.v1.signaling.api.Peer.prototype.hasUserId=function(){return null!=n.Message.getField(this,3)},proto.v1.signaling.api.Peer.prototype.getDeviceId=function(){return n.Message.getWrapperField(this,s.StringValue,4)},proto.v1.signaling.api.Peer.prototype.setDeviceId=function(e){return n.Message.setWrapperField(this,4,e)},proto.v1.signaling.api.Peer.prototype.clearDeviceId=function(){return this.setDeviceId(void 0)},proto.v1.signaling.api.Peer.prototype.hasDeviceId=function(){return null!=n.Message.getField(this,4)},proto.v1.signaling.api.Peer.prototype.getSessionIdsList=function(){return n.Message.getRepeatedField(this,5)},proto.v1.signaling.api.Peer.prototype.setSessionIdsList=function(e){return n.Message.setField(this,5,e||[])},proto.v1.signaling.api.Peer.prototype.addSessionIds=function(e,t){return n.Message.addToRepeatedField(this,5,e,t)},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(e){return n.Message.setWrapperField(this,6,e)},proto.v1.signaling.api.Peer.prototype.clearPeerCreatedTimestamp=function(){return this.setPeerCreatedTimestamp(void 0)},proto.v1.signaling.api.Peer.prototype.hasPeerCreatedTimestamp=function(){return null!=n.Message.getField(this,6)},n.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.Signal.prototype.toObject=function(e){return proto.v1.signaling.api.Signal.toObject(e,this)},proto.v1.signaling.api.Signal.toObject=function(e,t){var r,i={sessionId:(r=t.getSessionId())&&s.StringValue.toObject(e,r),sessionCreatedTimestamp:(r=t.getSessionCreatedTimestamp())&&s.Int64Value.toObject(e,r),senderId:n.Message.getFieldWithDefault(t,3,""),receiverId:n.Message.getFieldWithDefault(t,4,""),payload:n.Message.getFieldWithDefault(t,5,""),iceServers:n.Message.getFieldWithDefault(t,6,""),iceTransportPolicy:n.Message.getFieldWithDefault(t,7,""),sessionType:n.Message.getFieldWithDefault(t,8,0)};return e&&(i.$jspbMessageInstance=t),i}),proto.v1.signaling.api.Signal.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.v1.signaling.api.Signal;return proto.v1.signaling.api.Signal.deserializeBinaryFromReader(r,t)},proto.v1.signaling.api.Signal.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=new s.StringValue;t.readMessage(r,s.StringValue.deserializeBinaryFromReader),e.setSessionId(r);break;case 2:r=new s.Int64Value;t.readMessage(r,s.Int64Value.deserializeBinaryFromReader),e.setSessionCreatedTimestamp(r);break;case 3:r=t.readString();e.setSenderId(r);break;case 4:r=t.readString();e.setReceiverId(r);break;case 5:r=t.readString();e.setPayload(r);break;case 6:r=t.readString();e.setIceServers(r);break;case 7:r=t.readString();e.setIceTransportPolicy(r);break;case 8:r=t.readEnum();e.setSessionType(r);break;default:t.skipField()}}return e},proto.v1.signaling.api.Signal.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.v1.signaling.api.Signal.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.v1.signaling.api.Signal.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getSessionId())&&t.writeMessage(1,r,s.StringValue.serializeBinaryToWriter),null!=(r=e.getSessionCreatedTimestamp())&&t.writeMessage(2,r,s.Int64Value.serializeBinaryToWriter),(r=e.getSenderId()).length>0&&t.writeString(3,r),(r=e.getReceiverId()).length>0&&t.writeString(4,r),(r=e.getPayload()).length>0&&t.writeString(5,r),(r=e.getIceServers()).length>0&&t.writeString(6,r),(r=e.getIceTransportPolicy()).length>0&&t.writeString(7,r),0!==(r=e.getSessionType())&&t.writeEnum(8,r)},proto.v1.signaling.api.Signal.prototype.getSessionId=function(){return n.Message.getWrapperField(this,s.StringValue,1)},proto.v1.signaling.api.Signal.prototype.setSessionId=function(e){return n.Message.setWrapperField(this,1,e)},proto.v1.signaling.api.Signal.prototype.clearSessionId=function(){return this.setSessionId(void 0)},proto.v1.signaling.api.Signal.prototype.hasSessionId=function(){return null!=n.Message.getField(this,1)},proto.v1.signaling.api.Signal.prototype.getSessionCreatedTimestamp=function(){return n.Message.getWrapperField(this,s.Int64Value,2)},proto.v1.signaling.api.Signal.prototype.setSessionCreatedTimestamp=function(e){return n.Message.setWrapperField(this,2,e)},proto.v1.signaling.api.Signal.prototype.clearSessionCreatedTimestamp=function(){return this.setSessionCreatedTimestamp(void 0)},proto.v1.signaling.api.Signal.prototype.hasSessionCreatedTimestamp=function(){return null!=n.Message.getField(this,2)},proto.v1.signaling.api.Signal.prototype.getSenderId=function(){return n.Message.getFieldWithDefault(this,3,"")},proto.v1.signaling.api.Signal.prototype.setSenderId=function(e){return n.Message.setProto3StringField(this,3,e)},proto.v1.signaling.api.Signal.prototype.getReceiverId=function(){return n.Message.getFieldWithDefault(this,4,"")},proto.v1.signaling.api.Signal.prototype.setReceiverId=function(e){return n.Message.setProto3StringField(this,4,e)},proto.v1.signaling.api.Signal.prototype.getPayload=function(){return n.Message.getFieldWithDefault(this,5,"")},proto.v1.signaling.api.Signal.prototype.setPayload=function(e){return n.Message.setProto3StringField(this,5,e)},proto.v1.signaling.api.Signal.prototype.getIceServers=function(){return n.Message.getFieldWithDefault(this,6,"")},proto.v1.signaling.api.Signal.prototype.setIceServers=function(e){return n.Message.setProto3StringField(this,6,e)},proto.v1.signaling.api.Signal.prototype.getIceTransportPolicy=function(){return n.Message.getFieldWithDefault(this,7,"")},proto.v1.signaling.api.Signal.prototype.setIceTransportPolicy=function(e){return n.Message.setProto3StringField(this,7,e)},proto.v1.signaling.api.Signal.prototype.getSessionType=function(){return n.Message.getFieldWithDefault(this,8,0)},proto.v1.signaling.api.Signal.prototype.setSessionType=function(e){return n.Message.setProto3EnumField(this,8,e)},n.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.RtcSession.prototype.toObject=function(e){return proto.v1.signaling.api.RtcSession.toObject(e,this)},proto.v1.signaling.api.RtcSession.toObject=function(e,t){var r={sessionId:n.Message.getFieldWithDefault(t,1,""),offerPeerId:n.Message.getFieldWithDefault(t,2,""),answerPeerId:n.Message.getFieldWithDefault(t,3,""),organizationId:n.Message.getFieldWithDefault(t,4,""),sessionType:n.Message.getFieldWithDefault(t,5,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.v1.signaling.api.RtcSession.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.v1.signaling.api.RtcSession;return proto.v1.signaling.api.RtcSession.deserializeBinaryFromReader(r,t)},proto.v1.signaling.api.RtcSession.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readString();e.setSessionId(r);break;case 2:r=t.readString();e.setOfferPeerId(r);break;case 3:r=t.readString();e.setAnswerPeerId(r);break;case 4:r=t.readString();e.setOrganizationId(r);break;case 5:r=t.readString();e.setSessionType(r);break;default:t.skipField()}}return e},proto.v1.signaling.api.RtcSession.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.v1.signaling.api.RtcSession.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.v1.signaling.api.RtcSession.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getSessionId()).length>0&&t.writeString(1,r),(r=e.getOfferPeerId()).length>0&&t.writeString(2,r),(r=e.getAnswerPeerId()).length>0&&t.writeString(3,r),(r=e.getOrganizationId()).length>0&&t.writeString(4,r),(r=e.getSessionType()).length>0&&t.writeString(5,r)},proto.v1.signaling.api.RtcSession.prototype.getSessionId=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.v1.signaling.api.RtcSession.prototype.setSessionId=function(e){return n.Message.setProto3StringField(this,1,e)},proto.v1.signaling.api.RtcSession.prototype.getOfferPeerId=function(){return n.Message.getFieldWithDefault(this,2,"")},proto.v1.signaling.api.RtcSession.prototype.setOfferPeerId=function(e){return n.Message.setProto3StringField(this,2,e)},proto.v1.signaling.api.RtcSession.prototype.getAnswerPeerId=function(){return n.Message.getFieldWithDefault(this,3,"")},proto.v1.signaling.api.RtcSession.prototype.setAnswerPeerId=function(e){return n.Message.setProto3StringField(this,3,e)},proto.v1.signaling.api.RtcSession.prototype.getOrganizationId=function(){return n.Message.getFieldWithDefault(this,4,"")},proto.v1.signaling.api.RtcSession.prototype.setOrganizationId=function(e){return n.Message.setProto3StringField(this,4,e)},proto.v1.signaling.api.RtcSession.prototype.getSessionType=function(){return n.Message.getFieldWithDefault(this,5,"")},proto.v1.signaling.api.RtcSession.prototype.setSessionType=function(e){return n.Message.setProto3StringField(this,5,e)},n.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.GetSessionsRequest.prototype.toObject=function(e){return proto.v1.signaling.api.GetSessionsRequest.toObject(e,this)},proto.v1.signaling.api.GetSessionsRequest.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),proto.v1.signaling.api.GetSessionsRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.v1.signaling.api.GetSessionsRequest;return proto.v1.signaling.api.GetSessionsRequest.deserializeBinaryFromReader(r,t)},proto.v1.signaling.api.GetSessionsRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){t.getFieldNumber();t.skipField()}return e},proto.v1.signaling.api.GetSessionsRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.v1.signaling.api.GetSessionsRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.v1.signaling.api.GetSessionsRequest.serializeBinaryToWriter=function(e,t){},proto.v1.signaling.api.GetSessionsResponse.repeatedFields_=[1],n.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.GetSessionsResponse.prototype.toObject=function(e){return proto.v1.signaling.api.GetSessionsResponse.toObject(e,this)},proto.v1.signaling.api.GetSessionsResponse.toObject=function(e,t){var r={sessionsList:n.Message.toObjectList(t.getSessionsList(),proto.v1.signaling.api.RtcSession.toObject,e)};return e&&(r.$jspbMessageInstance=t),r}),proto.v1.signaling.api.GetSessionsResponse.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.v1.signaling.api.GetSessionsResponse;return proto.v1.signaling.api.GetSessionsResponse.deserializeBinaryFromReader(r,t)},proto.v1.signaling.api.GetSessionsResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=new proto.v1.signaling.api.RtcSession;t.readMessage(r,proto.v1.signaling.api.RtcSession.deserializeBinaryFromReader),e.addSessions(r);break;default:t.skipField()}}return e},proto.v1.signaling.api.GetSessionsResponse.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.v1.signaling.api.GetSessionsResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.v1.signaling.api.GetSessionsResponse.serializeBinaryToWriter=function(e,t){var r;(r=e.getSessionsList()).length>0&&t.writeRepeatedMessage(1,r,proto.v1.signaling.api.RtcSession.serializeBinaryToWriter)},proto.v1.signaling.api.GetSessionsResponse.prototype.getSessionsList=function(){return n.Message.getRepeatedWrapperField(this,proto.v1.signaling.api.RtcSession,1)},proto.v1.signaling.api.GetSessionsResponse.prototype.setSessionsList=function(e){return n.Message.setRepeatedWrapperField(this,1,e)},proto.v1.signaling.api.GetSessionsResponse.prototype.addSessions=function(e,t){return n.Message.addToRepeatedWrapperField(this,1,e,proto.v1.signaling.api.RtcSession,t)},proto.v1.signaling.api.GetSessionsResponse.prototype.clearSessionsList=function(){return this.setSessionsList([])},n.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.GetHealthRequest.prototype.toObject=function(e){return proto.v1.signaling.api.GetHealthRequest.toObject(e,this)},proto.v1.signaling.api.GetHealthRequest.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),proto.v1.signaling.api.GetHealthRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.v1.signaling.api.GetHealthRequest;return proto.v1.signaling.api.GetHealthRequest.deserializeBinaryFromReader(r,t)},proto.v1.signaling.api.GetHealthRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){t.getFieldNumber();t.skipField()}return e},proto.v1.signaling.api.GetHealthRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.v1.signaling.api.GetHealthRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.v1.signaling.api.GetHealthRequest.serializeBinaryToWriter=function(e,t){},n.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.GetHealthResponse.prototype.toObject=function(e){return proto.v1.signaling.api.GetHealthResponse.toObject(e,this)},proto.v1.signaling.api.GetHealthResponse.toObject=function(e,t){var r={version:n.Message.getFieldWithDefault(t,1,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.v1.signaling.api.GetHealthResponse.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.v1.signaling.api.GetHealthResponse;return proto.v1.signaling.api.GetHealthResponse.deserializeBinaryFromReader(r,t)},proto.v1.signaling.api.GetHealthResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readString();e.setVersion(r);break;default:t.skipField()}}return e},proto.v1.signaling.api.GetHealthResponse.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.v1.signaling.api.GetHealthResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.v1.signaling.api.GetHealthResponse.serializeBinaryToWriter=function(e,t){var r;(r=e.getVersion()).length>0&&t.writeString(1,r)},proto.v1.signaling.api.GetHealthResponse.prototype.getVersion=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.v1.signaling.api.GetHealthResponse.prototype.setVersion=function(e){return n.Message.setProto3StringField(this,1,e)},n.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.CreatePeerRequest.prototype.toObject=function(e){return proto.v1.signaling.api.CreatePeerRequest.toObject(e,this)},proto.v1.signaling.api.CreatePeerRequest.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),proto.v1.signaling.api.CreatePeerRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.v1.signaling.api.CreatePeerRequest;return proto.v1.signaling.api.CreatePeerRequest.deserializeBinaryFromReader(r,t)},proto.v1.signaling.api.CreatePeerRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){t.getFieldNumber();t.skipField()}return e},proto.v1.signaling.api.CreatePeerRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.v1.signaling.api.CreatePeerRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.v1.signaling.api.CreatePeerRequest.serializeBinaryToWriter=function(e,t){},n.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.CreatePeerResponse.prototype.toObject=function(e){return proto.v1.signaling.api.CreatePeerResponse.toObject(e,this)},proto.v1.signaling.api.CreatePeerResponse.toObject=function(e,t){var r,n={peer:(r=t.getPeer())&&proto.v1.signaling.api.Peer.toObject(e,r)};return e&&(n.$jspbMessageInstance=t),n}),proto.v1.signaling.api.CreatePeerResponse.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.v1.signaling.api.CreatePeerResponse;return proto.v1.signaling.api.CreatePeerResponse.deserializeBinaryFromReader(r,t)},proto.v1.signaling.api.CreatePeerResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=new proto.v1.signaling.api.Peer;t.readMessage(r,proto.v1.signaling.api.Peer.deserializeBinaryFromReader),e.setPeer(r);break;default:t.skipField()}}return e},proto.v1.signaling.api.CreatePeerResponse.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.v1.signaling.api.CreatePeerResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.v1.signaling.api.CreatePeerResponse.serializeBinaryToWriter=function(e,t){var r;null!=(r=e.getPeer())&&t.writeMessage(1,r,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(e){return n.Message.setWrapperField(this,1,e)},proto.v1.signaling.api.CreatePeerResponse.prototype.clearPeer=function(){return this.setPeer(void 0)},proto.v1.signaling.api.CreatePeerResponse.prototype.hasPeer=function(){return null!=n.Message.getField(this,1)},n.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.DeletePeerRequest.prototype.toObject=function(e){return proto.v1.signaling.api.DeletePeerRequest.toObject(e,this)},proto.v1.signaling.api.DeletePeerRequest.toObject=function(e,t){var r={peerId:n.Message.getFieldWithDefault(t,1,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.v1.signaling.api.DeletePeerRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.v1.signaling.api.DeletePeerRequest;return proto.v1.signaling.api.DeletePeerRequest.deserializeBinaryFromReader(r,t)},proto.v1.signaling.api.DeletePeerRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readString();e.setPeerId(r);break;default:t.skipField()}}return e},proto.v1.signaling.api.DeletePeerRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.v1.signaling.api.DeletePeerRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.v1.signaling.api.DeletePeerRequest.serializeBinaryToWriter=function(e,t){var r;(r=e.getPeerId()).length>0&&t.writeString(1,r)},proto.v1.signaling.api.DeletePeerRequest.prototype.getPeerId=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.v1.signaling.api.DeletePeerRequest.prototype.setPeerId=function(e){return n.Message.setProto3StringField(this,1,e)},n.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.DeletePeerResponse.prototype.toObject=function(e){return proto.v1.signaling.api.DeletePeerResponse.toObject(e,this)},proto.v1.signaling.api.DeletePeerResponse.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),proto.v1.signaling.api.DeletePeerResponse.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.v1.signaling.api.DeletePeerResponse;return proto.v1.signaling.api.DeletePeerResponse.deserializeBinaryFromReader(r,t)},proto.v1.signaling.api.DeletePeerResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){t.getFieldNumber();t.skipField()}return e},proto.v1.signaling.api.DeletePeerResponse.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.v1.signaling.api.DeletePeerResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.v1.signaling.api.DeletePeerResponse.serializeBinaryToWriter=function(e,t){},n.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.RefreshPeerRequest.prototype.toObject=function(e){return proto.v1.signaling.api.RefreshPeerRequest.toObject(e,this)},proto.v1.signaling.api.RefreshPeerRequest.toObject=function(e,t){var r,n={peer:(r=t.getPeer())&&proto.v1.signaling.api.Peer.toObject(e,r)};return e&&(n.$jspbMessageInstance=t),n}),proto.v1.signaling.api.RefreshPeerRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.v1.signaling.api.RefreshPeerRequest;return proto.v1.signaling.api.RefreshPeerRequest.deserializeBinaryFromReader(r,t)},proto.v1.signaling.api.RefreshPeerRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=new proto.v1.signaling.api.Peer;t.readMessage(r,proto.v1.signaling.api.Peer.deserializeBinaryFromReader),e.setPeer(r);break;default:t.skipField()}}return e},proto.v1.signaling.api.RefreshPeerRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.v1.signaling.api.RefreshPeerRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.v1.signaling.api.RefreshPeerRequest.serializeBinaryToWriter=function(e,t){var r;null!=(r=e.getPeer())&&t.writeMessage(1,r,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(e){return n.Message.setWrapperField(this,1,e)},proto.v1.signaling.api.RefreshPeerRequest.prototype.clearPeer=function(){return this.setPeer(void 0)},proto.v1.signaling.api.RefreshPeerRequest.prototype.hasPeer=function(){return null!=n.Message.getField(this,1)},n.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.RefreshPeerResponse.prototype.toObject=function(e){return proto.v1.signaling.api.RefreshPeerResponse.toObject(e,this)},proto.v1.signaling.api.RefreshPeerResponse.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),proto.v1.signaling.api.RefreshPeerResponse.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.v1.signaling.api.RefreshPeerResponse;return proto.v1.signaling.api.RefreshPeerResponse.deserializeBinaryFromReader(r,t)},proto.v1.signaling.api.RefreshPeerResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){t.getFieldNumber();t.skipField()}return e},proto.v1.signaling.api.RefreshPeerResponse.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.v1.signaling.api.RefreshPeerResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.v1.signaling.api.RefreshPeerResponse.serializeBinaryToWriter=function(e,t){},n.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.GetPeersRequest.prototype.toObject=function(e){return proto.v1.signaling.api.GetPeersRequest.toObject(e,this)},proto.v1.signaling.api.GetPeersRequest.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),proto.v1.signaling.api.GetPeersRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.v1.signaling.api.GetPeersRequest;return proto.v1.signaling.api.GetPeersRequest.deserializeBinaryFromReader(r,t)},proto.v1.signaling.api.GetPeersRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){t.getFieldNumber();t.skipField()}return e},proto.v1.signaling.api.GetPeersRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.v1.signaling.api.GetPeersRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.v1.signaling.api.GetPeersRequest.serializeBinaryToWriter=function(e,t){},proto.v1.signaling.api.GetPeersResponse.repeatedFields_=[1],n.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.GetPeersResponse.prototype.toObject=function(e){return proto.v1.signaling.api.GetPeersResponse.toObject(e,this)},proto.v1.signaling.api.GetPeersResponse.toObject=function(e,t){var r={peersList:n.Message.toObjectList(t.getPeersList(),proto.v1.signaling.api.Peer.toObject,e)};return e&&(r.$jspbMessageInstance=t),r}),proto.v1.signaling.api.GetPeersResponse.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.v1.signaling.api.GetPeersResponse;return proto.v1.signaling.api.GetPeersResponse.deserializeBinaryFromReader(r,t)},proto.v1.signaling.api.GetPeersResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=new proto.v1.signaling.api.Peer;t.readMessage(r,proto.v1.signaling.api.Peer.deserializeBinaryFromReader),e.addPeers(r);break;default:t.skipField()}}return e},proto.v1.signaling.api.GetPeersResponse.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.v1.signaling.api.GetPeersResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.v1.signaling.api.GetPeersResponse.serializeBinaryToWriter=function(e,t){var r;(r=e.getPeersList()).length>0&&t.writeRepeatedMessage(1,r,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(e){return n.Message.setRepeatedWrapperField(this,1,e)},proto.v1.signaling.api.GetPeersResponse.prototype.addPeers=function(e,t){return n.Message.addToRepeatedWrapperField(this,1,e,proto.v1.signaling.api.Peer,t)},proto.v1.signaling.api.GetPeersResponse.prototype.clearPeersList=function(){return this.setPeersList([])},n.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.GetIceServersRequest.prototype.toObject=function(e){return proto.v1.signaling.api.GetIceServersRequest.toObject(e,this)},proto.v1.signaling.api.GetIceServersRequest.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),proto.v1.signaling.api.GetIceServersRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.v1.signaling.api.GetIceServersRequest;return proto.v1.signaling.api.GetIceServersRequest.deserializeBinaryFromReader(r,t)},proto.v1.signaling.api.GetIceServersRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){t.getFieldNumber();t.skipField()}return e},proto.v1.signaling.api.GetIceServersRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.v1.signaling.api.GetIceServersRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.v1.signaling.api.GetIceServersRequest.serializeBinaryToWriter=function(e,t){},n.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.GetIceServersResponse.prototype.toObject=function(e){return proto.v1.signaling.api.GetIceServersResponse.toObject(e,this)},proto.v1.signaling.api.GetIceServersResponse.toObject=function(e,t){var r={iceServers:n.Message.getFieldWithDefault(t,1,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.v1.signaling.api.GetIceServersResponse.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.v1.signaling.api.GetIceServersResponse;return proto.v1.signaling.api.GetIceServersResponse.deserializeBinaryFromReader(r,t)},proto.v1.signaling.api.GetIceServersResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readString();e.setIceServers(r);break;default:t.skipField()}}return e},proto.v1.signaling.api.GetIceServersResponse.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.v1.signaling.api.GetIceServersResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.v1.signaling.api.GetIceServersResponse.serializeBinaryToWriter=function(e,t){var r;(r=e.getIceServers()).length>0&&t.writeString(1,r)},proto.v1.signaling.api.GetIceServersResponse.prototype.getIceServers=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.v1.signaling.api.GetIceServersResponse.prototype.setIceServers=function(e){return n.Message.setProto3StringField(this,1,e)},n.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.SendSignalRequest.prototype.toObject=function(e){return proto.v1.signaling.api.SendSignalRequest.toObject(e,this)},proto.v1.signaling.api.SendSignalRequest.toObject=function(e,t){var r,n={signal:(r=t.getSignal())&&proto.v1.signaling.api.Signal.toObject(e,r)};return e&&(n.$jspbMessageInstance=t),n}),proto.v1.signaling.api.SendSignalRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.v1.signaling.api.SendSignalRequest;return proto.v1.signaling.api.SendSignalRequest.deserializeBinaryFromReader(r,t)},proto.v1.signaling.api.SendSignalRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=new proto.v1.signaling.api.Signal;t.readMessage(r,proto.v1.signaling.api.Signal.deserializeBinaryFromReader),e.setSignal(r);break;default:t.skipField()}}return e},proto.v1.signaling.api.SendSignalRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.v1.signaling.api.SendSignalRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.v1.signaling.api.SendSignalRequest.serializeBinaryToWriter=function(e,t){var r;null!=(r=e.getSignal())&&t.writeMessage(1,r,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(e){return n.Message.setWrapperField(this,1,e)},proto.v1.signaling.api.SendSignalRequest.prototype.clearSignal=function(){return this.setSignal(void 0)},proto.v1.signaling.api.SendSignalRequest.prototype.hasSignal=function(){return null!=n.Message.getField(this,1)},n.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.SendSignalResponse.prototype.toObject=function(e){return proto.v1.signaling.api.SendSignalResponse.toObject(e,this)},proto.v1.signaling.api.SendSignalResponse.toObject=function(e,t){var r,n={sessionId:(r=t.getSessionId())&&s.StringValue.toObject(e,r),sessionCreatedTimestamp:(r=t.getSessionCreatedTimestamp())&&s.Int64Value.toObject(e,r)};return e&&(n.$jspbMessageInstance=t),n}),proto.v1.signaling.api.SendSignalResponse.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.v1.signaling.api.SendSignalResponse;return proto.v1.signaling.api.SendSignalResponse.deserializeBinaryFromReader(r,t)},proto.v1.signaling.api.SendSignalResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=new s.StringValue;t.readMessage(r,s.StringValue.deserializeBinaryFromReader),e.setSessionId(r);break;case 2:r=new s.Int64Value;t.readMessage(r,s.Int64Value.deserializeBinaryFromReader),e.setSessionCreatedTimestamp(r);break;default:t.skipField()}}return e},proto.v1.signaling.api.SendSignalResponse.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.v1.signaling.api.SendSignalResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.v1.signaling.api.SendSignalResponse.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getSessionId())&&t.writeMessage(1,r,s.StringValue.serializeBinaryToWriter),null!=(r=e.getSessionCreatedTimestamp())&&t.writeMessage(2,r,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(e){return n.Message.setWrapperField(this,1,e)},proto.v1.signaling.api.SendSignalResponse.prototype.clearSessionId=function(){return this.setSessionId(void 0)},proto.v1.signaling.api.SendSignalResponse.prototype.hasSessionId=function(){return null!=n.Message.getField(this,1)},proto.v1.signaling.api.SendSignalResponse.prototype.getSessionCreatedTimestamp=function(){return n.Message.getWrapperField(this,s.Int64Value,2)},proto.v1.signaling.api.SendSignalResponse.prototype.setSessionCreatedTimestamp=function(e){return n.Message.setWrapperField(this,2,e)},proto.v1.signaling.api.SendSignalResponse.prototype.clearSessionCreatedTimestamp=function(){return this.setSessionCreatedTimestamp(void 0)},proto.v1.signaling.api.SendSignalResponse.prototype.hasSessionCreatedTimestamp=function(){return null!=n.Message.getField(this,2)},n.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.ReceiveSignalStreamRequest.prototype.toObject=function(e){return proto.v1.signaling.api.ReceiveSignalStreamRequest.toObject(e,this)},proto.v1.signaling.api.ReceiveSignalStreamRequest.toObject=function(e,t){var r={peerId:n.Message.getFieldWithDefault(t,1,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.v1.signaling.api.ReceiveSignalStreamRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.v1.signaling.api.ReceiveSignalStreamRequest;return proto.v1.signaling.api.ReceiveSignalStreamRequest.deserializeBinaryFromReader(r,t)},proto.v1.signaling.api.ReceiveSignalStreamRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readString();e.setPeerId(r);break;default:t.skipField()}}return e},proto.v1.signaling.api.ReceiveSignalStreamRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.v1.signaling.api.ReceiveSignalStreamRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.v1.signaling.api.ReceiveSignalStreamRequest.serializeBinaryToWriter=function(e,t){var r;(r=e.getPeerId()).length>0&&t.writeString(1,r)},proto.v1.signaling.api.ReceiveSignalStreamRequest.prototype.getPeerId=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.v1.signaling.api.ReceiveSignalStreamRequest.prototype.setPeerId=function(e){return n.Message.setProto3StringField(this,1,e)},n.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.ReceiveSignalStreamResponse.prototype.toObject=function(e){return proto.v1.signaling.api.ReceiveSignalStreamResponse.toObject(e,this)},proto.v1.signaling.api.ReceiveSignalStreamResponse.toObject=function(e,t){var r,n={signal:(r=t.getSignal())&&proto.v1.signaling.api.Signal.toObject(e,r)};return e&&(n.$jspbMessageInstance=t),n}),proto.v1.signaling.api.ReceiveSignalStreamResponse.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.v1.signaling.api.ReceiveSignalStreamResponse;return proto.v1.signaling.api.ReceiveSignalStreamResponse.deserializeBinaryFromReader(r,t)},proto.v1.signaling.api.ReceiveSignalStreamResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=new proto.v1.signaling.api.Signal;t.readMessage(r,proto.v1.signaling.api.Signal.deserializeBinaryFromReader),e.setSignal(r);break;default:t.skipField()}}return e},proto.v1.signaling.api.ReceiveSignalStreamResponse.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.v1.signaling.api.ReceiveSignalStreamResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.v1.signaling.api.ReceiveSignalStreamResponse.serializeBinaryToWriter=function(e,t){var r;null!=(r=e.getSignal())&&t.writeMessage(1,r,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(e){return n.Message.setWrapperField(this,1,e)},proto.v1.signaling.api.ReceiveSignalStreamResponse.prototype.clearSignal=function(){return this.setSignal(void 0)},proto.v1.signaling.api.ReceiveSignalStreamResponse.prototype.hasSignal=function(){return null!=n.Message.getField(this,1)},proto.v1.signaling.api.SessionType={UNKNOWN:0,TELEOP:1,PORT_FORWARD:2,OBSERVE:3,HEADLESS:4},i.object.extend(t,proto.v1.signaling.api)},6973:()=>{},3011:()=>{},3951:()=>{},9256:()=>{},2627:()=>{},4834:(e,t,r)=>{"use strict";var n=r(9501),i="undefined"==typeof globalThis?r.g:globalThis;e.exports=function(){for(var e=[],t=0;t<n.length;t++)"function"==typeof i[n[t]]&&(e[e.length]=n[t]);return e}},7241:e=>{"use strict";e.exports={version:"3.13.1"}}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var n={};return(()=>{"use strict";r.r(n),r.d(n,{AuthClient:()=>i,Credentials:()=>q,RtcClient:()=>Be,RtcClientV1:()=>qe,RtcSignalingClient:()=>s,SignalingPromiseClient:()=>H.SignalingPromiseClient,createRtcStreamMessage:()=>Oe});var e=r(6331),t=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))};class i extends e.S{adminSignup(e,r){return t(this,void 0,void 0,(function*(){return yield this.fetch("auth/admin-signup",{token:r,method:"POST",body:e})}))}login(e){return t(this,void 0,void 0,(function*(){return yield this.fetch("auth/login",{method:"POST",body:e,allowUnsafeRetries:!0})}))}loginWithGoogleToken(e){return t(this,void 0,void 0,(function*(){return yield this.fetch("auth/login-google",{method:"POST",body:e,allowUnsafeRetries:!0})}))}refresh(e,r){return t(this,void 0,void 0,(function*(){return yield this.fetch("auth/refresh",{method:"POST",body:{refreshToken:e,tokenExpirationSeconds:r},allowUnsafeRetries:!0})}))}respondToNewPasswordRequiredChallenge(e){return t(this,void 0,void 0,(function*(){return yield this.fetch("auth/respond-to-new-password-required-challenge",{method:"POST",body:e})}))}forgotPassword(e){return t(this,void 0,void 0,(function*(){return yield this.fetch("auth/forgot-password",{method:"POST",body:{email:e}})}))}confirmForgotPassword(e){return t(this,void 0,void 0,(function*(){return yield this.fetch("auth/confirm-forgot-password",{method:"POST",body:e})}))}resendInvitation(e){return t(this,void 0,void 0,(function*(){return yield this.fetch("auth/resend-invitation",{method:"POST",body:{email:e}})}))}changePassword(e){return t(this,arguments,void 0,(function*({token:e,refreshToken:t,currentPassword:r,newPassword:n}){return yield this.fetch("auth/change-password",{token:e,method:"POST",body:{refreshToken:t,currentPassword:r,newPassword:n}})}))}getDeviceCredentials(e){return t(this,void 0,void 0,(function*(){return yield this.fetch("auth/device-credentials",{token:e,method:"POST",allowUnsafeRetries:!0})}))}impersonate(e,r){return t(this,void 0,void 0,(function*(){return yield this.fetch("auth/impersonate",{token:e,method:"POST",allowUnsafeRetries:!0,body:{userId:r}})}))}createServiceAccount(e,r,n,i,o){return t(this,void 0,void 0,(function*(){return yield this.fetch("auth/service-account",{token:e,method:"POST",allowUnsafeRetries:!0,body:{name:r,roleId:n,tags:i,description:o}})}))}getFeatures(e){return t(this,void 0,void 0,(function*(){return(yield this.fetch("auth/features",{token:e})).features}))}checkSso(e,r){return t(this,void 0,void 0,(function*(){return yield this.fetch("auth/check-sso",{method:"POST",body:{email:e,allowUserAutoCreation:r}})}))}loginWithSso(e,r){return t(this,void 0,void 0,(function*(){return yield this.fetch("auth/login-sso",{method:"POST",body:{token:e,refreshToken:r}})}))}}var o=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))};class s extends e.S{createPeer(e,t){return o(this,void 0,void 0,(function*(){return yield this.fetch("peers",{token:e,method:"POST",body:t})}))}getPeers(e){return o(this,void 0,void 0,(function*(){return(yield this.fetch("peers",{token:e})).items}))}refreshPeer(e,t){return o(this,void 0,void 0,(function*(){yield this.fetch(`peers/${t}/refresh`,{token:e,method:"POST",allowUnsafeRetries:!0})}))}createSession(e,t){return o(this,void 0,void 0,(function*(){return yield this.fetch("sessions",{token:e,method:"POST",body:t})}))}refreshSession(e,t){return o(this,void 0,void 0,(function*(){yield this.fetch(`sessions/${t}/refresh`,{token:e,method:"POST",allowUnsafeRetries:!0})}))}deleteSession(e,t){return o(this,void 0,void 0,(function*(){yield this.fetch("sessions/"+t,{token:e,method:"DELETE",allowUnsafeRetries:!0})}))}getSessions(e){return o(this,void 0,void 0,(function*(){return(yield this.fetch("sessions",{token:e})).items}))}getIceServers(e){return o(this,void 0,void 0,(function*(){return(yield this.fetch("ice-servers",{token:e})).items}))}addSignals(e,t,r){return o(this,void 0,void 0,(function*(){yield this.fetch(`sessions/${t}/add-signals`,{token:e,method:"POST",body:r})}))}takeSignals(e,t){return o(this,void 0,void 0,(function*(){return(yield this.fetch(`sessions/${t}/take-signals`,{token:e,method:"POST"})).items}))}}var a=r(3778),l=r(7221),u=r(6075),c=r.n(u);const p="object"==typeof performance&&performance&&"function"==typeof performance.now?performance:Date,f="function"==typeof AbortController?AbortController:class{constructor(){this.signal=new g}abort(e=new Error("This operation was aborted")){this.signal.reason=this.signal.reason||e,this.signal.aborted=!0,this.signal.dispatchEvent({type:"abort",target:this.signal})}},h="function"==typeof AbortSignal,d="function"==typeof f.AbortSignal,g=h?AbortSignal:d?f.AbortController:class{constructor(){this.reason=void 0,this.aborted=!1,this._listeners=[]}dispatchEvent(e){"abort"===e.type&&(this.aborted=!0,this.onabort(e),this._listeners.forEach(t=>t(e),this))}onabort(){}addEventListener(e,t){"abort"===e&&this._listeners.push(t)}removeEventListener(e,t){"abort"===e&&(this._listeners=this._listeners.filter(e=>e!==t))}},y=new Set,v=(e,t)=>{const r="LRU_CACHE_OPTION_"+e;w(r)&&S(r,e+" option","options."+t,T)},m=(e,t)=>{const r="LRU_CACHE_METHOD_"+e;if(w(r)){const{prototype:n}=T,{get:i}=Object.getOwnPropertyDescriptor(n,e);S(r,e+" method",`cache.${t}()`,i)}},b=(...e)=>{"object"==typeof process&&process&&"function"==typeof process.emitWarning?process.emitWarning(...e):console.error(...e)},w=e=>!y.has(e),S=(e,t,r,n)=>{y.add(e);b(`The ${t} is deprecated. Please use ${r} instead.`,"DeprecationWarning",e,n)},_=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),E=e=>_(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?O:null:null;class O extends Array{constructor(e){super(e),this.fill(0)}}class R{constructor(e){if(0===e)return[];const t=E(e);this.heap=new t(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}}class T{constructor(e={}){const{max:t=0,ttl:r,ttlResolution:n=1,ttlAutopurge:i,updateAgeOnGet:o,updateAgeOnHas:s,allowStale:a,dispose:l,disposeAfter:u,noDisposeOnSet:c,noUpdateTTL:p,maxSize:f=0,maxEntrySize:h=0,sizeCalculation:d,fetchMethod:g,fetchContext:m,noDeleteOnFetchRejection:S,noDeleteOnStaleGet:O,allowStaleOnFetchRejection:j,allowStaleOnFetchAbort:P,ignoreFetchAbort:x}=e,{length:A,maxAge:I,stale:C}=e instanceof T?{}:e;if(0!==t&&!_(t))throw new TypeError("max option must be a nonnegative integer");const k=t?E(t):Array;if(!k)throw new Error("invalid max value: "+t);if(this.max=t,this.maxSize=f,this.maxEntrySize=h||this.maxSize,this.sizeCalculation=d||A,this.sizeCalculation){if(!this.maxSize&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if("function"!=typeof this.sizeCalculation)throw new TypeError("sizeCalculation set to non-function")}if(this.fetchMethod=g||null,this.fetchMethod&&"function"!=typeof this.fetchMethod)throw new TypeError("fetchMethod must be a function if specified");if(this.fetchContext=m,!this.fetchMethod&&void 0!==m)throw new TypeError("cannot set fetchContext without fetchMethod");if(this.keyMap=new Map,this.keyList=new Array(t).fill(null),this.valList=new Array(t).fill(null),this.next=new k(t),this.prev=new k(t),this.head=0,this.tail=0,this.free=new R(t),this.initialFill=1,this.size=0,"function"==typeof l&&(this.dispose=l),"function"==typeof u?(this.disposeAfter=u,this.disposed=[]):(this.disposeAfter=null,this.disposed=null),this.noDisposeOnSet=!!c,this.noUpdateTTL=!!p,this.noDeleteOnFetchRejection=!!S,this.allowStaleOnFetchRejection=!!j,this.allowStaleOnFetchAbort=!!P,this.ignoreFetchAbort=!!x,0!==this.maxEntrySize){if(0!==this.maxSize&&!_(this.maxSize))throw new TypeError("maxSize must be a positive integer if specified");if(!_(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.initializeSizeTracking()}if(this.allowStale=!!a||!!C,this.noDeleteOnStaleGet=!!O,this.updateAgeOnGet=!!o,this.updateAgeOnHas=!!s,this.ttlResolution=_(n)||0===n?n:1,this.ttlAutopurge=!!i,this.ttl=r||I||0,this.ttl){if(!_(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.initializeTTLTracking()}if(0===this.max&&0===this.ttl&&0===this.maxSize)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.max&&!this.maxSize){const e="LRU_CACHE_UNBOUNDED";if(w(e)){y.add(e);b("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",e,T)}}C&&v("stale","allowStale"),I&&v("maxAge","ttl"),A&&v("length","sizeCalculation")}getRemainingTTL(e){return this.has(e,{updateAgeOnHas:!1})?1/0:0}initializeTTLTracking(){this.ttls=new O(this.max),this.starts=new O(this.max),this.setItemTTL=(e,t,r=p.now())=>{if(this.starts[e]=0!==t?r:0,this.ttls[e]=t,0!==t&&this.ttlAutopurge){const r=setTimeout(()=>{this.isStale(e)&&this.delete(this.keyList[e])},t+1);r.unref&&r.unref()}},this.updateItemAge=e=>{this.starts[e]=0!==this.ttls[e]?p.now():0},this.statusTTL=(r,n)=>{r&&(r.ttl=this.ttls[n],r.start=this.starts[n],r.now=e||t(),r.remainingTTL=r.now+r.ttl-r.start)};let e=0;const t=()=>{const t=p.now();if(this.ttlResolution>0){e=t;const r=setTimeout(()=>e=0,this.ttlResolution);r.unref&&r.unref()}return t};this.getRemainingTTL=r=>{const n=this.keyMap.get(r);return void 0===n?0:0===this.ttls[n]||0===this.starts[n]?1/0:this.starts[n]+this.ttls[n]-(e||t())},this.isStale=r=>0!==this.ttls[r]&&0!==this.starts[r]&&(e||t())-this.starts[r]>this.ttls[r]}updateItemAge(e){}statusTTL(e,t){}setItemTTL(e,t,r){}isStale(e){return!1}initializeSizeTracking(){this.calculatedSize=0,this.sizes=new O(this.max),this.removeItemSize=e=>{this.calculatedSize-=this.sizes[e],this.sizes[e]=0},this.requireSize=(e,t,r,n)=>{if(this.isBackgroundFetch(t))return 0;if(!_(r)){if(!n)throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");if("function"!=typeof n)throw new TypeError("sizeCalculation must be a function");if(r=n(t,e),!_(r))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}return r},this.addItemSize=(e,t,r)=>{if(this.sizes[e]=t,this.maxSize){const t=this.maxSize-this.sizes[e];for(;this.calculatedSize>t;)this.evict(!0)}this.calculatedSize+=this.sizes[e],r&&(r.entrySize=t,r.totalCalculatedSize=this.calculatedSize)}}removeItemSize(e){}addItemSize(e,t){}requireSize(e,t,r,n){if(r||n)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache")}*indexes({allowStale:e=this.allowStale}={}){if(this.size)for(let t=this.tail;this.isValidIndex(t)&&(!e&&this.isStale(t)||(yield t),t!==this.head);)t=this.prev[t]}*rindexes({allowStale:e=this.allowStale}={}){if(this.size)for(let t=this.head;this.isValidIndex(t)&&(!e&&this.isStale(t)||(yield t),t!==this.tail);)t=this.next[t]}isValidIndex(e){return void 0!==e&&this.keyMap.get(this.keyList[e])===e}*entries(){for(const e of this.indexes())void 0===this.valList[e]||void 0===this.keyList[e]||this.isBackgroundFetch(this.valList[e])||(yield[this.keyList[e],this.valList[e]])}*rentries(){for(const e of this.rindexes())void 0===this.valList[e]||void 0===this.keyList[e]||this.isBackgroundFetch(this.valList[e])||(yield[this.keyList[e],this.valList[e]])}*keys(){for(const e of this.indexes())void 0===this.keyList[e]||this.isBackgroundFetch(this.valList[e])||(yield this.keyList[e])}*rkeys(){for(const e of this.rindexes())void 0===this.keyList[e]||this.isBackgroundFetch(this.valList[e])||(yield this.keyList[e])}*values(){for(const e of this.indexes())void 0===this.valList[e]||this.isBackgroundFetch(this.valList[e])||(yield this.valList[e])}*rvalues(){for(const e of this.rindexes())void 0===this.valList[e]||this.isBackgroundFetch(this.valList[e])||(yield this.valList[e])}[Symbol.iterator](){return this.entries()}find(e,t){for(const r of this.indexes()){const n=this.valList[r],i=this.isBackgroundFetch(n)?n.__staleWhileFetching:n;if(void 0!==i&&e(i,this.keyList[r],this))return this.get(this.keyList[r],t)}}forEach(e,t=this){for(const r of this.indexes()){const n=this.valList[r],i=this.isBackgroundFetch(n)?n.__staleWhileFetching:n;void 0!==i&&e.call(t,i,this.keyList[r],this)}}rforEach(e,t=this){for(const r of this.rindexes()){const n=this.valList[r],i=this.isBackgroundFetch(n)?n.__staleWhileFetching:n;void 0!==i&&e.call(t,i,this.keyList[r],this)}}get prune(){return m("prune","purgeStale"),this.purgeStale}purgeStale(){let e=!1;for(const t of this.rindexes({allowStale:!0}))this.isStale(t)&&(this.delete(this.keyList[t]),e=!0);return e}dump(){const e=[];for(const t of this.indexes({allowStale:!0})){const r=this.keyList[t],n=this.valList[t],i=this.isBackgroundFetch(n)?n.__staleWhileFetching:n;if(void 0===i)continue;const o={value:i};if(this.ttls){o.ttl=this.ttls[t];const e=p.now()-this.starts[t];o.start=Math.floor(Date.now()-e)}this.sizes&&(o.size=this.sizes[t]),e.unshift([r,o])}return e}load(e){this.clear();for(const[t,r]of e){if(r.start){const e=Date.now()-r.start;r.start=p.now()-e}this.set(t,r.value,r)}}dispose(e,t,r){}set(e,t,{ttl:r=this.ttl,start:n,noDisposeOnSet:i=this.noDisposeOnSet,size:o=0,sizeCalculation:s=this.sizeCalculation,noUpdateTTL:a=this.noUpdateTTL,status:l}={}){if(o=this.requireSize(e,t,o,s),this.maxEntrySize&&o>this.maxEntrySize)return l&&(l.set="miss",l.maxEntrySizeExceeded=!0),this.delete(e),this;let u=0===this.size?void 0:this.keyMap.get(e);if(void 0===u)u=this.newIndex(),this.keyList[u]=e,this.valList[u]=t,this.keyMap.set(e,u),this.next[this.tail]=u,this.prev[u]=this.tail,this.tail=u,this.size++,this.addItemSize(u,o,l),l&&(l.set="add"),a=!1;else{this.moveToTail(u);const r=this.valList[u];if(t!==r){if(this.isBackgroundFetch(r)?r.__abortController.abort(new Error("replaced")):i||(this.dispose(r,e,"set"),this.disposeAfter&&this.disposed.push([r,e,"set"])),this.removeItemSize(u),this.valList[u]=t,this.addItemSize(u,o,l),l){l.set="replace";const e=r&&this.isBackgroundFetch(r)?r.__staleWhileFetching:r;void 0!==e&&(l.oldValue=e)}}else l&&(l.set="update")}if(0===r||0!==this.ttl||this.ttls||this.initializeTTLTracking(),a||this.setItemTTL(u,r,n),this.statusTTL(l,u),this.disposeAfter)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift());return this}newIndex(){return 0===this.size?this.tail:this.size===this.max&&0!==this.max?this.evict(!1):0!==this.free.length?this.free.pop():this.initialFill++}pop(){if(this.size){const e=this.valList[this.head];return this.evict(!0),e}}evict(e){const t=this.head,r=this.keyList[t],n=this.valList[t];return this.isBackgroundFetch(n)?n.__abortController.abort(new Error("evicted")):(this.dispose(n,r,"evict"),this.disposeAfter&&this.disposed.push([n,r,"evict"])),this.removeItemSize(t),e&&(this.keyList[t]=null,this.valList[t]=null,this.free.push(t)),this.head=this.next[t],this.keyMap.delete(r),this.size--,t}has(e,{updateAgeOnHas:t=this.updateAgeOnHas,status:r}={}){const n=this.keyMap.get(e);if(void 0!==n){if(!this.isStale(n))return t&&this.updateItemAge(n),r&&(r.has="hit"),this.statusTTL(r,n),!0;r&&(r.has="stale",this.statusTTL(r,n))}else r&&(r.has="miss");return!1}peek(e,{allowStale:t=this.allowStale}={}){const r=this.keyMap.get(e);if(void 0!==r&&(t||!this.isStale(r))){const e=this.valList[r];return this.isBackgroundFetch(e)?e.__staleWhileFetching:e}}backgroundFetch(e,t,r,n){const i=void 0===t?void 0:this.valList[t];if(this.isBackgroundFetch(i))return i;const o=new f;r.signal&&r.signal.addEventListener("abort",()=>o.abort(r.signal.reason));const s={signal:o.signal,options:r,context:n},a=(n,i=!1)=>{const{aborted:a}=o.signal,c=r.ignoreFetchAbort&&void 0!==n;return r.status&&(a&&!i?(r.status.fetchAborted=!0,r.status.fetchError=o.signal.reason,c&&(r.status.fetchAbortIgnored=!0)):r.status.fetchResolved=!0),!a||c||i?(this.valList[t]===u&&(void 0===n?u.__staleWhileFetching?this.valList[t]=u.__staleWhileFetching:this.delete(e):(r.status&&(r.status.fetchUpdated=!0),this.set(e,n,s.options))),n):l(o.signal.reason)},l=n=>{const{aborted:i}=o.signal,s=i&&r.allowStaleOnFetchAbort,a=s||r.allowStaleOnFetchRejection,l=a||r.noDeleteOnFetchRejection;if(this.valList[t]===u){!l||void 0===u.__staleWhileFetching?this.delete(e):s||(this.valList[t]=u.__staleWhileFetching)}if(a)return r.status&&void 0!==u.__staleWhileFetching&&(r.status.returnedStale=!0),u.__staleWhileFetching;if(u.__returned===u)throw n};r.status&&(r.status.fetchDispatched=!0);const u=new Promise((t,n)=>{this.fetchMethod(e,i,s).then(e=>t(e),n),o.signal.addEventListener("abort",()=>{r.ignoreFetchAbort&&!r.allowStaleOnFetchAbort||(t(),r.allowStaleOnFetchAbort&&(t=e=>a(e,!0)))})}).then(a,e=>(r.status&&(r.status.fetchRejected=!0,r.status.fetchError=e),l(e)));return u.__abortController=o,u.__staleWhileFetching=i,u.__returned=null,void 0===t?(this.set(e,u,{...s.options,status:void 0}),t=this.keyMap.get(e)):this.valList[t]=u,u}isBackgroundFetch(e){return e&&"object"==typeof e&&"function"==typeof e.then&&Object.prototype.hasOwnProperty.call(e,"__staleWhileFetching")&&Object.prototype.hasOwnProperty.call(e,"__returned")&&(e.__returned===e||null===e.__returned)}async fetch(e,{allowStale:t=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet,noDeleteOnStaleGet:n=this.noDeleteOnStaleGet,ttl:i=this.ttl,noDisposeOnSet:o=this.noDisposeOnSet,size:s=0,sizeCalculation:a=this.sizeCalculation,noUpdateTTL:l=this.noUpdateTTL,noDeleteOnFetchRejection:u=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:c=this.allowStaleOnFetchRejection,ignoreFetchAbort:p=this.ignoreFetchAbort,allowStaleOnFetchAbort:f=this.allowStaleOnFetchAbort,fetchContext:h=this.fetchContext,forceRefresh:d=!1,status:g,signal:y}={}){if(!this.fetchMethod)return g&&(g.fetch="get"),this.get(e,{allowStale:t,updateAgeOnGet:r,noDeleteOnStaleGet:n,status:g});const v={allowStale:t,updateAgeOnGet:r,noDeleteOnStaleGet:n,ttl:i,noDisposeOnSet:o,size:s,sizeCalculation:a,noUpdateTTL:l,noDeleteOnFetchRejection:u,allowStaleOnFetchRejection:c,allowStaleOnFetchAbort:f,ignoreFetchAbort:p,status:g,signal:y};let m=this.keyMap.get(e);if(void 0===m){g&&(g.fetch="miss");const t=this.backgroundFetch(e,m,v,h);return t.__returned=t}{const n=this.valList[m];if(this.isBackgroundFetch(n)){const e=t&&void 0!==n.__staleWhileFetching;return g&&(g.fetch="inflight",e&&(g.returnedStale=!0)),e?n.__staleWhileFetching:n.__returned=n}const i=this.isStale(m);if(!d&&!i)return g&&(g.fetch="hit"),this.moveToTail(m),r&&this.updateItemAge(m),this.statusTTL(g,m),n;const o=this.backgroundFetch(e,m,v,h),s=void 0!==o.__staleWhileFetching,a=s&&t;return g&&(g.fetch=s&&i?"stale":"refresh",a&&i&&(g.returnedStale=!0)),a?o.__staleWhileFetching:o.__returned=o}}get(e,{allowStale:t=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet,noDeleteOnStaleGet:n=this.noDeleteOnStaleGet,status:i}={}){const o=this.keyMap.get(e);if(void 0!==o){const s=this.valList[o],a=this.isBackgroundFetch(s);return this.statusTTL(i,o),this.isStale(o)?(i&&(i.get="stale"),a?(i&&(i.returnedStale=t&&void 0!==s.__staleWhileFetching),t?s.__staleWhileFetching:void 0):(n||this.delete(e),i&&(i.returnedStale=t),t?s:void 0)):(i&&(i.get="hit"),a?s.__staleWhileFetching:(this.moveToTail(o),r&&this.updateItemAge(o),s))}i&&(i.get="miss")}connect(e,t){this.prev[t]=e,this.next[e]=t}moveToTail(e){e!==this.tail&&(e===this.head?this.head=this.next[e]:this.connect(this.prev[e],this.next[e]),this.connect(this.tail,e),this.tail=e)}get del(){return m("del","delete"),this.delete}delete(e){let t=!1;if(0!==this.size){const r=this.keyMap.get(e);if(void 0!==r)if(t=!0,1===this.size)this.clear();else{this.removeItemSize(r);const t=this.valList[r];this.isBackgroundFetch(t)?t.__abortController.abort(new Error("deleted")):(this.dispose(t,e,"delete"),this.disposeAfter&&this.disposed.push([t,e,"delete"])),this.keyMap.delete(e),this.keyList[r]=null,this.valList[r]=null,r===this.tail?this.tail=this.prev[r]:r===this.head?this.head=this.next[r]:(this.next[this.prev[r]]=this.next[r],this.prev[this.next[r]]=this.prev[r]),this.size--,this.free.push(r)}}if(this.disposed)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift());return t}clear(){for(const e of this.rindexes({allowStale:!0})){const t=this.valList[e];if(this.isBackgroundFetch(t))t.__abortController.abort(new Error("deleted"));else{const r=this.keyList[e];this.dispose(t,r,"delete"),this.disposeAfter&&this.disposed.push([t,r,"delete"])}}if(this.keyMap.clear(),this.valList.fill(null),this.keyList.fill(null),this.ttls&&(this.ttls.fill(0),this.starts.fill(0)),this.sizes&&this.sizes.fill(0),this.head=0,this.tail=0,this.initialFill=1,this.free.length=0,this.calculatedSize=0,this.size=0,this.disposed)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift())}get reset(){return m("reset","clear"),this.clear}get length(){return((e,t)=>{const r="LRU_CACHE_PROPERTY_"+e;if(w(r)){const{prototype:n}=T,{get:i}=Object.getOwnPropertyDescriptor(n,e);S(r,e+" property","cache."+t,i)}})("length","size"),this.size}static get AbortController(){return f}static get AbortSignal(){return g}}const j=T;var P=r(2273),x=r(6452);var A=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))};class I extends class{constructor(e,t){this.type=e,this.name=t}}{constructor(e){super("simple","LogReporter"),this.message=e}send(e){return A(this,void 0,void 0,(function*(){var t,r;x.vF.debug(this.message,(t=e.reduce((e,t)=>Object.assign(Object.assign({},e),{[t.name]:t.stat}),{}),r=e=>{const{sum:t,count:r}=e,n=t/r;return Object.assign(Object.assign({},e),{average:n})},Object.keys(t).reduce((e,n)=>Object.assign(Object.assign({},e),{[n]:r(t[n])}),{})))}))}}const C=/^[a-zA-Z0-9-_.,:?'"()@\/\\#$+ ]{1,255}$/,k=/^[*a-zA-Z0-9-_.,:?'"()@\/\\#$+ ]{1,255}$/;function M(e,t=!1){return!!(null==e?void 0:e.match(t?k:C))}var F=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))};function B({func:e,delay:t,immediate:r=!0}){let n=!1,i=setTimeout((function r(){return F(this,void 0,void 0,(function*(){if(n)return;const s=(new Date).getTime();try{o=e(),yield o}finally{if(!n){const e=(new Date).getTime();i=setTimeout(r,Math.max(t-(e-s),0))}}}))}),r?0:t),o=Promise.resolve();return{stop(){return F(this,void 0,void 0,(function*(){n=!0,clearTimeout(i),yield o}))}}}var D=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))};const L=r(8758);class N{constructor(e){this.buffer={},this.reporters=[],this.flushInterval=B({func:()=>this.flushStats(),delay:N.samplePeriodMs}),this.tags=this.filterTags((null==e?void 0:e.tags)||{app:P.yA,version:P.rE,namespace:P.MF})}shutdown(){return D(this,void 0,void 0,(function*(){yield this.flushInterval.stop(),yield this.flushStats(),yield(0,l.c)(2*a.p.second)}))}aggregate(e,t,r){this.addToBuffer(this.buffer,this.encodeKey({metric:e,tags:this.filterTags(r||{})}),"number"==typeof t?{min:t,max:t,sum:t,count:1}:t)}increment(e,t){this.aggregate(e,1,t)}timer(e,t,r){return D(this,void 0,void 0,(function*(){const n=L(),i=yield t(),o=L();return this.aggregate(e,o-n,r),i}))}registerStatsReporter(e){this.reporters.push(e)}setTag(e,t){const r=this.filterTags({[e]:t});this.tags=Object.assign(Object.assign({},this.tags),r)}addToBuffer(e,t,r){if(e[t]){const{min:n,max:i,sum:o,count:s}=e[t];e[t]={min:Math.min(n,r.min),max:Math.max(i,r.max),sum:o+r.sum,count:s+r.count}}else e[t]=r}write(e){return D(this,void 0,void 0,(function*(){yield Promise.all(this.reporters.map(t=>D(this,void 0,void 0,(function*(){let r;const n={};switch(t.type){case"simple":for(const[t,r]of Object.entries(e)){const{metric:e}=this.decodeKey(t);this.addToBuffer(n,this.encodeKey({metric:e}),r)}r=n;break;case"tagged":r=e;break;default:!function(e){throw new Error(`Unreachable type encountered (${e})`)}(t.type)}const i=Object.entries(r);if(i.length>0)return t.send(i.map(([e,t])=>{const{metric:r,tags:n}=this.decodeKey(e);return{name:r,tags:Object.assign(Object.assign({},n),this.tags),stat:t}}),N.samplePeriodMs).catch(e=>{x.vF.debug("Failed to write stats to "+t.name,{error:e})})}))))}))}flushStats(){return D(this,void 0,void 0,(function*(){yield this.write(this.buffer),this.buffer={}}))}encodeKey(e){return c()(Object.assign(Object.assign({},e),Object.keys(e.tags||{}).length>0?{tags:e.tags}:{}))}decodeKey(e){return JSON.parse(e)}filterTags(e){return Object.entries(e||{}).reduce((e,[t,r])=>(M(t)&&M(r)&&(e[t]=r),e),{})}}N.samplePeriodMs=5*a.p.minute;const z=!!P.op,U=new N;z||["local","on-prem"].includes(P.MF)||U.registerStatsReporter(new I("stats"));var G=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))};class V extends class{constructor(e){this.options=e,this.cache=new j(Object.assign(Object.assign(Object.assign({},e.dispose||e.disposeAfter?{ttlAutopurge:!0}:{}),e),{dispose:(...t)=>{var r;"evict"===t[2]&&U.increment("lru-eviction",{name:e.name}),null===(r=e.dispose)||void 0===r||r.call(e,...t)},disposeAfter:(...t)=>{var r;this.updateStats(),null===(r=e.disposeAfter)||void 0===r||r.call(e,...t)}})),this.stringify=e.fastStringify?JSON.stringify:c()}set(e,t,r){const n=this.stringify(e);if(!this.cache.set(n,t,{ttl:r})){const e=this.cache.sizeCalculation?this.cache.sizeCalculation(t,n):"unknown";throw Error(`Value too large (${e} > ${this.cache.max})`)}this.updateStats()}get(e){const{name:t}=this.options,r=this.stringify(e),n=this.cache.getRemainingTTL(r);return n<=0?U.increment("cache-miss",{name:t}):n!==1/0&&U.aggregate("cache-item-ttl",n,{name:t}),this.cache.get(r)}delete(e){this.cache.delete(this.stringify(e))}peek(e){return this.cache.peek(this.stringify(e))}size(){return this.cache.size}clear(){this.cache.clear()}forEach(e){this.cache.forEach(e)}purgeStale(){return this.cache.purgeStale()}updateStats(){const{name:e}=this.options;U.aggregate("cache-item-count",this.cache.size,{name:e}),void 0!==this.cache.calculatedSize&&U.aggregate("cache-length",this.cache.calculatedSize,{name:e})}}{constructor(e){if(super(e),this.expireRejectedPromiseValues=void 0===e.expireRejectedPromiseValues||e.expireRejectedPromiseValues,this.rejectedPromiseValueTtl=void 0!==e.rejectedPromiseValueTtl?e.rejectedPromiseValueTtl:a.p.second,this.rejectedPromiseValueTtl<0)throw new Error("rejectedPromiseValueTtl must not be negative")}set(e,t,r){super.set(e,t,r),this.expireRejectedPromiseValues&&t.catch(()=>G(this,void 0,void 0,(function*(){yield(0,l.c)(this.rejectedPromiseValueTtl),this.peek(e)===t&&this.delete(e)})))}}var W=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))};class q{constructor(e,t,r){this.authClient=e,this.email=t,this.password=r,this.tokenTtlMs=1*a.p.hour,this.tokenCache=new V({name:"Credentials-tokenCache",max:100,ttl:this.tokenTtlMs-5*a.p.minute,fastStringify:!0})}getToken(){return W(this,void 0,void 0,(function*(){let e=this.tokenCache.get(this.email);return e||(e=(()=>W(this,void 0,void 0,(function*(){const{authentication:e}=yield this.authClient.login({email:this.email,password:this.password,tokenExpirationSeconds:this.tokenTtlMs/a.p.second});if(!e)throw new Error("User account not verified.");return e.accessToken})))(),this.tokenCache.set(this.email,e)),e}))}}var H=r(3804),$=r(5949),Z=r(2964),Y=r(7396),J=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))};class K extends Y.V{constructor(e){super(e)}postLanRtcOffer(e){return J(this,void 0,void 0,(function*(){return yield this.fetch("v1/lan-rtc-offer",{method:"POST",body:e})}))}}var X=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))};function Q(e){return X(this,void 0,void 0,(function*(){return(yield Promise.all(e.map(e=>e.catch(e=>e)))).filter(e=>e instanceof Error)}))}function ee(e,t){if(void 0===e)throw new Error("Value is undefined"+(t?": "+t:""))}function te(e,t){if(null===e)throw new Error("Value is null"+(t?": "+t:""))}function re(e){return ee(e),e}function ne(e,t){const r=e.reduce((e,t)=>[...e,...t.urls],[]).filter(e=>ie(e,t)).sort(e=>oe(e,"udp")?-1:0).shift();if(r)return Object.assign(Object.assign({},re(e.find(e=>e.urls.includes(r)))),{urls:[r]})}function ie(e,t){switch(t){case"stun":return/^stuns?:/.test(e);case"turn":return/^turns?:/.test(e)}}function oe(e,t){return e.endsWith("transport="+t)}var se=r(3563),ae=r(4620);class le extends Error{constructor(e,t){super(`Deadline expired after ${e}ms + ${t}ms`)}}class ue{static withDeadline(e,t){const r=new Promise((e,r)=>{setTimeout(()=>{r(new le(t,this.grpcCallDeadlineSlopMs))},t+this.grpcCallDeadlineSlopMs)});return Promise.race([e,r])}}ue.grpcCallDeadlineSlopMs=500*a.p.millisecond;var ce=r(8311);const pe={ordered:!1,maxPacketLifeTime:300*a.p.millisecond},fe={ordered:!0},he={ordered:!0},de={ordered:!1,maxRetransmits:0},ge={ordered:!1,maxRetransmits:0},ye=e=>"received"in e&&void 0!==e.received,ve=e=>!("received"in e)||void 0===e.received,me=2*a.p.second,be=10*a.p.second;function we(e,t={}){const r=Array.from(e.values()),n=r.filter(ye),i=n.length>0,o=Math.max(...r.map(e=>e.sent)),s=Math.max(...n.map(e=>e.received));let l;if(i){const e=Date.now()-o<=a.p.millisecond?r.length-1:r.length,t=n.length>e?e:n.length,i=n.map(e=>e.received-e.sent),{standardDeviation:u,mean:c,jitter:p}=function(e){const t=e.length;if(0===t)return{mean:NaN,standardDeviation:-1,jitter:NaN};const r=e.reduce((e,t)=>e+t,0)/t,n=Math.sqrt(e.map(e=>Math.pow(e-r,2)).reduce((e,t)=>e+t)/t);if(1===t)return{mean:r,standardDeviation:n,jitter:NaN};let i=0;for(let r=1;r<t;r++)i+=Math.abs(e[r]-e[r-1]);return{mean:r,standardDeviation:n,jitter:i/(t-1)}}(i),f=r.filter(e=>e.sent<s-me),h=f.filter(ve),d=0===h.length?0:h.length/f.length;l={pingsSent:e,pongsReceived:t,average:c,standardDeviation:u,jitter:p,max:Math.max(...i),min:Math.min(...i),loss:d}}else l=null;const{temporalNow:u=Date.now()}=t,c=(i?s:u)-be;return Array.from(e.entries()).forEach(t=>{const[r,n]=t;n.sent<c&&e.delete(r)}),l}function Se({entityId:e,streamName:t,streamType:r}){return`${e}.${t}.${r}`}var _e=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))};class Ee{constructor(e,t){this.counts={localSent:new Map,localReceived:new Map,remoteSent:new Map,remoteReceived:new Map},this.sessionId=e,this.connection=t}updateRemoteMessagesCounts(e){if(e.payload.streamsInfo){this.counts.remoteSent=new Map,this.counts.remoteReceived=new Map;for(const t of e.payload.streamsInfo.items)this.counts.remoteSent.set(t.streamId,t.sentCount),this.counts.remoteReceived.set(t.streamId,t.receivedCount)}}getLocalStreamsInfo(e){const{localSent:t,localReceived:r}=this.counts;return{items:[...new Set([...t.keys(),...r.keys()])].map(e=>{var n,i;return{streamId:e,sentCount:null!==(n=t.get(e))&&void 0!==n?n:0,receivedCount:null!==(i=r.get(e))&&void 0!==i?i:0}}),timestamp:e}}incrementLocalSent(e){const{localSent:t}=this.counts,r=Se(e.header.stream);t.set(r,(t.get(r)||0)+1)}incrementLocalReceived(e){const{localReceived:t}=this.counts,r=Se(e.header.stream),n=t.get(r)||0;if(0===n){const{streamName:t,streamType:r}=e.header.stream;x.vF.debug("RTC client received first message for stream",{streamName:t,streamType:r})}t.set(r,n+1)}uploadMetrics(){return _e(this,void 0,void 0,(function*(){const{sessionId:e}=this,t=yield this.connection.peerConnection.getStats(),r={};t.forEach(e=>r[e.id]=e),x.vF.debug("rtc-stats",Object.assign(Object.assign({},r),{sessionId:e}));const{localSent:n,localReceived:i,remoteSent:o,remoteReceived:s}=this.counts,a=[...new Set([...n.keys(),...i.keys()])].reduce((e,t)=>{const r=n.get(t),a=i.get(t),l=o.get(t),u=s.get(t);return Object.assign(Object.assign({},e),{[`local-${t}-sent`]:r,[`local-${t}-received`]:a,[`remote-${t}-sent`]:l,[`remote-${t}-received`]:u})},{sessionId:e});x.vF.debug("rtc-message-report",Object.assign({deviceId:this.connection.getRemoteDeviceId()},a))}))}}function Oe(e,t,r){return{header:{stream:e,created:Date.now(),frameId:r||""},payload:t}}function Re(e){const t=e.localCandidate.candidateType,r=e.remoteCandidate.candidateType;return"host"===t&&"host"===r?"local":"relay"===t||"relay"===r?"TURN":"STUN"}function Te(e){return new Set(["disconnected","failed","closed"]).has(e.iceConnectionState)}function je(e){switch(e.header.stream.streamType){case"twist":{const{twist:t}=e.payload;if(!t)throw Error("twist not in payload of RTC message with type twist");return{header:e.header,payload:{twist:{linear:Object.assign({x:0,y:0,z:0},t.linear),angular:Object.assign({x:0,y:0,z:0},t.angular)}}}}case"pose":{const{pose:t}=e.payload;if(!t)throw Error("pose not in payload of RTC message with type pose");return{header:e.header,payload:{pose:{translation:Object.assign({x:0,y:0,z:0},t.translation),rotation:Object.assign({x:0,y:0,z:0,w:0},t.rotation)}}}}case"pose-with-covariance":{const{poseWithCovariance:t}=e.payload;if(!t)throw Error("poseWithCovariance not in payload of RTC message with type pose-with-covariance");const r=new Array(36).fill(0);return t.covariance.forEach((e,t)=>{if(t>=36)throw Error("covariance contains more than 36 elements");r[t]=e}),{header:e.header,payload:{poseWithCovariance:{pose:{translation:Object.assign({x:0,y:0,z:0},t.pose.translation),rotation:Object.assign({x:0,y:0,z:0,w:0},t.pose.rotation)},covariance:r}}}}case"point":{const{point:t}=e.payload;if(!t)throw Error("point not in payload of RTC message with type point");return{header:e.header,payload:{point:Object.assign({x:0,y:0,z:0},t)}}}default:return e}}var Pe=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))};class xe{get peerConnection(){return te(this._peerConnection,"RTCPeerConnection is closed!"),this._peerConnection}constructor(e,t,r,n){this.iceServers=t,this.config=r,this.dataChannelNotifier=n,this.connectTimeoutMs=20*a.p.second,this.iceGatheringTimeoutMs=3*a.p.second,this.pingUpdateTimeoutMs=1*a.p.second,this.pingV2UpdateTimeoutMs=250*a.p.millisecond,this.pingV2MetricsGatherTimeoutMs=1*a.p.second,this.streamsInfoUpdateTimeoutMs=2*a.p.second,this.reassemblyTimeoutMs=500*a.p.millisecond,this.reassemblyTableCleanupMs=1*a.p.second,this.heartbeatTimeoutMs=20*a.p.millisecond,this._peerConnection=null,this.heartbeatChannel=null,this.latestTtlStreamChannel=null,this.reliableStreamChannel=null,this.latestReliableStreamChannel=null,this.latestTryOnceStreamChannel=null,this.streamLatestTimestamp=new Map,this.reassemblyTable=new Map,this.reassemblyTableLastTimestamp=new Map,this.closeCalled=!1,this.gotOffer=!1,this.hasIceCandidate=!1,this.pingV2Map=new Map,this.sendPingV2=()=>{const{latestTryOnceStreamChannel:e}=this;if(!e)return;const t=(new Date).getTime(),r=(0,Z.A)();this.sendSystemMessage(e,{type:"ping-v2",payload:{timestamp:t,id:r}}),this.pingV2Map.set(r,{sent:t})},this.gatherPingV2Metrics=()=>{const e=we(this.pingV2Map);if(e){const t=this.getRemoteDeviceId();this.pingInfo=e,U.aggregate("rtc-ping-average",e.average,Object.assign({},t?{deviceId:t}:{})),U.aggregate("rtc-ping-loss",e.loss,Object.assign({},t?{deviceId:t}:{})),U.aggregate("rtc-jitter",e.jitter,Object.assign({},t?{deviceId:t}:{}))}},this._peerConnection=e;const{isOffer:i}=r.baseConfig;i?this.initializeChannels(e):e.ondatachannel=e=>{switch(e.channel.label){case"stream.latest-ttl":this.latestTtlStreamChannel=e.channel;break;case"stream.reliable":this.reliableStreamChannel=e.channel;break;case"stream.latest-reliable":this.latestReliableStreamChannel=e.channel;break;case"stream.latest-try-once":this.latestTryOnceStreamChannel=e.channel;break;case"heartbeat":return void(this.heartbeatChannel=e.channel);default:return void this.dataChannelNotifier(e.channel)}this.setupChannel(e.channel)},this.pingUpdateTimeout=setInterval(()=>{const{reliableStreamChannel:e}=this;e&&this.sendSystemMessage(e,{type:"ping"})},this.pingUpdateTimeoutMs),this.pingV2UpdateTimeout=setInterval(this.sendPingV2,this.pingV2UpdateTimeoutMs),this.pingV2MetricsGatherTimeout=setInterval(this.gatherPingV2Metrics,this.pingV2MetricsGatherTimeoutMs),this.streamsInfoUpdateTimeout=setInterval(()=>{const{latestTtlStreamChannel:e}=this;e&&this.sendSystemMessage(e,{type:"streams-info"})},this.streamsInfoUpdateTimeoutMs),this.reassemblyTableCleanupTimeout=setInterval(()=>{const e=(new Date).getTime();this.reassemblyTableLastTimestamp.forEach((t,r,n)=>{e>r+this.reassemblyTimeoutMs&&this.reassemblyTable.delete(t)})},this.reassemblyTableCleanupMs),this.heartbeatTimeout=setInterval(()=>{const{heartbeatChannel:e}=this;e&&"open"===e.readyState&&e.send(new Uint8Array([1]))},this.heartbeatTimeoutMs)}handleSignal(e){return Pe(this,void 0,void 0,(function*(){const{peerConnection:t}=this,{track:r}=this.config.baseConfig,n=(()=>{try{return JSON.parse(e.getPayload())}catch(e){return}})();if(!n)return void x.vF.error("Received unparseable signal.");x.vF.debug("Handling signal",{description:n});const{sdp:i,type:o}=n;if(!i||!o)return void x.vF.warn("Received non-SDP signal");const{signalingState:s,connectionState:a}=t;if("stable"!==s||"connected"!==a)if(t.remoteDescription)x.vF.warn("Received SDP after remote description was set: "+i);else{if("offer"===o){if("stable"!==s)return void x.vF.warn("Received offer SDP when signaling is ongoing.");yield t.setRemoteDescription(n);const i=yield t.createAnswer();yield t.setLocalDescription(i);const o=e.clone();return null==r||r("Answer Received",o),o.setPayload(JSON.stringify(i)),o.setReceiverId(e.getSenderId()),o.setSenderId(e.getReceiverId()),o}if("answer"===o){if("stable"===s)return void x.vF.warn("Received answer SDP when signaling hasn't started.");yield t.setRemoteDescription(n)}}else x.vF.warn("Received SDP when already connected: "+i)}))}send(e,t){const r=this.getChannelFromLabel(t.channelLabel);r?this.sendOnChannel(r,e):x.vF.warn("Send called with unexpected channel label",{channelLabel:t.channelLabel})}controlRemoteStream(e){var t;this.sendSystemMessage((te(t=this.reliableStreamChannel),t),{type:"stream-control",streamControl:e})}isActive(){return new Set(["new","checking","connected","completed"]).has(this.peerConnection.iceConnectionState)||this.isReady()}isReady(){const{reliableStreamChannel:e,latestTtlStreamChannel:t,latestTryOnceStreamChannel:r,latestReliableStreamChannel:n}=this;return"open"===(null==e?void 0:e.readyState)&&"open"===(null==t?void 0:t.readyState)&&"open"===(null==r?void 0:r.readyState)&&"open"===(null==n?void 0:n.readyState)}close(){return Pe(this,void 0,void 0,(function*(){var e,t,r,n,i,o,s;this.closeCalled||(this.closeCalled=!0,yield null===(e=this.sessionMetrics)||void 0===e?void 0:e.uploadMetrics(),Ae(this.pingUpdateTimeout),Ae(this.pingV2UpdateTimeout),Ae(this.pingV2MetricsGatherTimeout),Ae(this.reassemblyTableCleanupTimeout),Ae(this.streamsInfoUpdateTimeout),Ae(this.heartbeatTimeout),null===(t=this._peerConnection)||void 0===t||t.close(),null===(r=this.heartbeatChannel)||void 0===r||r.close(),null===(n=this.latestReliableStreamChannel)||void 0===n||n.close(),null===(i=this.latestTryOnceStreamChannel)||void 0===i||i.close(),null===(o=this.latestTtlStreamChannel)||void 0===o||o.close(),null===(s=this.reliableStreamChannel)||void 0===s||s.close(),this._peerConnection=null,this.heartbeatChannel=null,this.latestReliableStreamChannel=null,this.latestTryOnceStreamChannel=null,this.latestTtlStreamChannel=null,this.reliableStreamChannel=null)}))}getPing(){return this.pingTimeMs}getPingInfo(){return this.pingInfo}getLastMessageTimestamp(){return this.lastMessageTimestamp}getSessionCreatedTimestamp(){var e;return null===(e=this.config.remoteConfig)||void 0===e?void 0:e.sessionCreatedTimestamp}setSessionCreatedTimestamp(e){this.config.remoteConfig&&(this.config.remoteConfig.sessionCreatedTimestamp=e)}getSessionId(){var e;return null===(e=this.config.remoteConfig)||void 0===e?void 0:e.sessionId}setSessionId(e){this.config.remoteConfig&&(this.config.remoteConfig.sessionId=e,this.sessionMetrics=new Ee(e,this))}getRemotePeerId(){return this.config.baseConfig.remotePeerId}getRemoteDeviceId(){var e;return null===(e=this.config.baseConfig)||void 0===e?void 0:e.remoteDeviceId}setRemoteDeviceId(e){this.config.baseConfig.remoteDeviceId=e}getSessionMetricsMessageCounts(){var e;return null===(e=this.sessionMetrics)||void 0===e?void 0:e.counts}getConnectionStatsInfo(){return Pe(this,void 0,void 0,(function*(){const{peerConnection:e}=this;if(!e)return;const t=yield e.getStats(null),r=[];t.forEach(e=>{r.push(e)});const n=r.find(e=>"transport"===e.type);if(!n)return;const i=r.find(e=>("candidate-pair"===e.type||"candidatepair"===e.type)&&e.id===n.selectedCandidatePairId);if(!i)return;const o=r.find(e=>e.id===i.localCandidateId),s=r.find(e=>e.id===i.remoteCandidateId);return o&&s&&(o.address=o.address||o.ip,s.address=s.address||s.ip,void 0!==o.address&&void 0!==s.address)?{transport:n,localCandidate:o,remoteCandidate:s,candidatePair:i}:void 0}))}initializeChannels(e){this.heartbeatChannel=e.createDataChannel("heartbeat",ge),this.heartbeatChannel.binaryType="arraybuffer",this.latestTtlStreamChannel=e.createDataChannel("stream.latest-ttl",pe),this.latestTtlStreamChannel.binaryType="arraybuffer",this.reliableStreamChannel=e.createDataChannel("stream.reliable",fe),this.reliableStreamChannel.binaryType="arraybuffer",this.latestReliableStreamChannel=e.createDataChannel("stream.latest-reliable",he),this.latestReliableStreamChannel.binaryType="arraybuffer",this.latestTryOnceStreamChannel=e.createDataChannel("stream.latest-try-once",de),this.latestTryOnceStreamChannel.binaryType="arraybuffer",this.setupChannel(this.latestTtlStreamChannel),this.setupChannel(this.reliableStreamChannel),this.setupChannel(this.latestReliableStreamChannel),this.setupChannel(this.latestTryOnceStreamChannel)}getOffer(){return Pe(this,void 0,void 0,(function*(){var e,t;const{gotOffer:r}=this,{peerConnection:n,config:i}=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 o=null===(e=this.config.remoteConfig)||void 0===e?void 0:e.sessionId;if(r)return void x.vF.debug("Failed to generate offer because gotOffer was already called.");if(this.gotOffer=!0,Te(this.peerConnection))return void x.vF.debug("Failed to generate offer because the peer connection was inactive.");const s=i.baseConfig.track;n.onicecandidate=()=>{this.hasIceCandidate=!0},n.oniceconnectionstatechange=()=>Pe(this,void 0,void 0,(function*(){const e=n.iceConnectionState;if("connected"===e||"completed"===e){const t=yield this.getConnectionStatsInfo(),r=t?Re(t):void 0;x.vF.info("ICE connection state changed to "+e,{sessionId:o,connectionStatsInfo:t,iceMode:r}),null==s||s("ICE connection state change",{iceConnectionState:e,sessionId:o,connectionStatsInfo:t,iceMode:r})}})),yield n.setLocalDescription(yield n.createOffer());const u=n.getConfiguration?n.getConfiguration().iceTransportPolicy:"all",c=(new Date).getTime();for(;;){const e=(new Date).getTime()-c;if(e>this.connectTimeoutMs)return void x.vF.debug("Failed to generate offer because ICE gathering timed out.");if(e>this.iceGatheringTimeoutMs&&this.hasIceCandidate){x.vF.debug("ICE gathering partially completed; proceeding",{iceTransportPolicy:u,waitTime:e}),null==s||s("ICE gathering partially completed",{sessionId:o,iceTransportPolicy:u,waitTime:e});break}if("complete"===n.iceGatheringState){x.vF.debug("ICE gathering complete",{iceTransportPolicy:u,waitTime:e}),null==s||s("ICE gathering completed",{sessionId:o,iceTransportPolicy:u,waitTime:e});break}yield(0,l.c)(.1*a.p.second)}const p=null!==(t=this.iceServers)&&void 0!==t?t:[];for(const e of p)"credentialType"in e&&(e.credentialType=void 0);const f=JSON.stringify(p),h=new ae.Signal;return h.setPayload(JSON.stringify(n.localDescription)),h.setSenderId(this.config.baseConfig.localPeerId),h.setReceiverId(this.config.baseConfig.remotePeerId),h.setIceServers(f),h.setIceTransportPolicy(null!=u?u:"all"),void 0!==this.config.baseConfig.sessionType?h.setSessionType(this.config.baseConfig.sessionType):h.setSessionType(ae.SessionType.TELEOP),x.vF.debug("Sending offer signal with description",{description:h.getPayload()}),h}))}getLanOffer(){return Pe(this,void 0,void 0,(function*(){const{peerConnection:e,gotOffer:t}=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(t)return void x.vF.debug("Failed to generate offer because gotOffer was already called.");if(this.gotOffer=!0,Te(this.peerConnection))return void x.vF.debug("Failed to generate offer because the peer connection was inactive.");yield e.setLocalDescription(yield e.createOffer());const r=(new Date).getTime();for(;;){if((new Date).getTime()-r>this.iceGatheringTimeoutMs)return void x.vF.debug("Failed to generate offer because ICE gathering timed out.");if("complete"===e.iceGatheringState)break;yield(0,l.c)(.1*a.p.second)}const n=e.localDescription;if(n)return x.vF.debug("Sending LAN offer signal with description",{description:n}),n;x.vF.error("Failed to generate LAN offer description")}))}handleLanAnswer(e){return Pe(this,void 0,void 0,(function*(){const{peerConnection:t}=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 t.setRemoteDescription(e)}))}getChannelFromLabel(e){switch(e){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(e,t){var r;let n;try{n=(0,ce.encode)(JSON.stringify(t))}catch(e){return void x.vF.warn("Failed to encode RTC message",{error:e})}try{e.send(n),null===(r=this.sessionMetrics)||void 0===r||r.incrementLocalSent(t)}catch(t){x.vF.warn("Failed to send message to channel",{error:t,channel:e.label})}}channelNotRecognized(e){return e!==this.latestTtlStreamChannel&&e!==this.latestReliableStreamChannel&&e!==this.latestTryOnceStreamChannel&&e!==this.reliableStreamChannel}setupChannel(e){e.onmessage=t=>{if(this.channelNotRecognized(e))return void x.vF.warn("Received message on unrecognized data channel.");let r;try{r=JSON.parse((0,ce.decode)(t.data))}catch(t){return void x.vF.warn("Received unparseable message on RTC stream data channel",{error:t,channel:e.label})}"message-chunk"===r.communicationType?this.receiveChannelMessageChunk(e,r):this.receiveChannelMessage(e,r)},e.onerror=t=>{x.vF.warn("Channel error: "+t.error,{error:t.error,sessionId:this.getSessionId(),channelLabel:e.label})},e.onopen=()=>{x.vF.debug("Channel opened",{sessionId:this.getSessionId(),channelLabel:e.label})},e.onclose=()=>{const t={bufferedAmount:e.bufferedAmount,sessionId:this.getSessionId(),channelLabel:e.label};!1===this.closeCalled?x.vF.debug("Unexpected channel closed",t):x.vF.debug("Channel closed",t)}}receiveChannelMessage(e,t){var r;const{config:n}=this,{remotePeerId:i}=this.config.baseConfig;if(this.lastMessageTimestamp=(new Date).getTime(),t=je(t),null===(r=this.sessionMetrics)||void 0===r||r.incrementLocalReceived(t),this.handleSystemMessage(e,t))return;(e===this.latestTryOnceStreamChannel||e===this.latestTtlStreamChannel||e===this.latestReliableStreamChannel)&&!this.isLatestMessage(t)||n.baseConfig.receive(i,t)}receiveChannelMessageChunk(e,t){const r=this.reassemblyTable.get(t.id)||[];if(r.push(t),r.length===t.total){const n=function(e){const t=e.sort((e,t)=>e.seq<t.seq?-1:1).map(e=>e.part).reduce((e,t)=>e+t);try{return JSON.parse(t)}catch(e){return void x.vF.warn("Could not reassemble RTC message chunks")}}(r);return n&&this.receiveChannelMessage(e,n),void this.reassemblyTable.delete(t.id)}this.reassemblyTable.set(t.id,r),this.reassemblyTableLastTimestamp.set(t.id,(new Date).getTime())}handleSystemMessage(e,t){var r,n;const{config:i}=this,{baseConfig:o}=i,{remotePeerId:s,remoteDeviceId:a}=o;switch(t.header.stream.streamType){case"ping":return this.sendSystemMessage(e,{type:"pong",timestamp:re(t.payload.ping)}),!0;case"pong":{const e=(new Date).getTime()-re(t.payload.pong);return this.pingTimeMs=e,U.aggregate("rtc-ping-time",e,Object.assign({},a?{deviceId:a}:{})),!0}case"ping-v2":return this.sendPingV2(),!0;case"pong-v2":{const e=re(t.payload.pongV2),r=this.pingV2Map.get(e.id);return(null==r?void 0:r.sent)!==e.timestamp&&x.vF.warn("Pong timestamp doesn't match stored value",{currentEntry:r,pong:e}),this.pingV2Map.set(e.id,{sent:e.timestamp,received:(new Date).getTime()}),!0}case"streams-info":{const{sessionMetrics:e}=this,i=null===(r=t.payload.streamsInfo)||void 0===r?void 0:r.timestamp;return!!i&&(null==e||e.updateRemoteMessagesCounts(t),null===(n=o.onStreamsInfoUpdate)||void 0===n||n.call(o,s,i),!0)}case"stream-control":return!0;default:return!1}}sendSystemMessage(e,t){var r;const{localUserId:n,localPeerId:i}=this.config.baseConfig;if("open"!==e.readyState)return;const o={entityId:null!=n?n:i,streamName:"$."+t.type,streamType:t.type};let s;switch(t.type){case"ping":s={ping:(new Date).getTime()};break;case"pong":s={pong:t.timestamp};break;case"ping-v2":s={pingV2:t.payload};break;case"pong-v2":s={pongV2:t.payload};break;case"stream-control":s={streamControl:t.streamControl};break;case"streams-info":s={streamsInfo:null===(r=this.sessionMetrics)||void 0===r?void 0:r.getLocalStreamsInfo((new Date).getTime())}}this.sendOnChannel(e,Oe(o,s))}isLatestMessage(e){const t=Se(e.header.stream),r=(this.streamLatestTimestamp.get(t)||0)<=e.header.created;return r&&this.streamLatestTimestamp.set(t,e.header.created),r}}function Ae(e){e&&clearInterval(e)}function Ie(){x.vF.debug("forceGarbageCollection() triggered"),queueMicrotask(()=>{let e=document.createElement("img");e.src=window.URL.createObjectURL(new Blob([new ArrayBuffer(5e7)])),e.onerror=function(){window.URL.revokeObjectURL(this.src),e=null}})}function Ce(e){try{return e instanceof Error?`${e.name}: ${e.message}`:"object"==typeof e?JSON.stringify(e):String(e)}catch(e){return"Unknown error"}}function ke(e){var t,r;return{userId:null===(t=e.getUserId())||void 0===t?void 0:t.getValue(),deviceId:null===(r=e.getDeviceId())||void 0===r?void 0:r.getValue(),organizationId:e.getOrganizationId(),id:e.getPeerId(),capabilities:[],capabilitySet:{}}}var Me=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))};const Fe=e=>e.map(e=>Object.assign(Object.assign(Object.assign({},e),e.username?{username:"<REDACTED>"}:null),e.credential?{credential:"<REDACTED>"}:null));class Be{constructor(e){this.config=e,this.grpcCallDeadline=5*a.p.second,this.refreshIntervalDelayMs=2*a.p.second,this.iceServersTtl=30*a.p.minute,this.connections=[],this.localConnections=[],this.isConnectionInitiator=new WeakSet,this.isOutgoingConnection=new Set,this.peerDataChannelListeners=[],this.rtcInstancesConstructed=0,this.statsLoopsExecuted=0;const{refreshIntervalDelayMs:t}=this;this.refreshInterval=B({func:()=>Me(this,void 0,void 0,(function*(){try{yield this.update()}catch(e){x.vF.warn("RTC refresh failed",{error:e})}})),delay:t})}send(e,t,r){const n=this.getActiveConnection(e);n?n.isReady()?n.send(t,r):x.vF.warn("Send called with unready connection."):x.vF.warn("Send called with no connection.")}controlRemoteStream(e,t){const r=this.getActiveConnection(e);r?r.isReady()?r.controlRemoteStream(t):x.vF.warn("controlRemoteStream called with unready connection."):x.vF.warn("controlRemoteStream called with no connection.")}getLocalPeer(){return Me(this,void 0,void 0,(function*(){for(;!this.localPeer;)yield(0,l.c)(.1*a.p.second);return ke(this.localPeer)}))}connect(e,t){return Me(this,void 0,void 0,(function*(){var r,n,i;if(!0===this.config.lanOnlyMode)throw new Error("connect method called in local only mode.");const{track:o,signalingClient:s}=this.config,{localPeer:a,receiveSignalStream:l,iceServers:u}=this;if(!a||!l||!u)return void x.vF.warn("Connect called prior to local peer, receiveSignalStream, and ICE servers ready");if(this.getActiveConnection(e))return void x.vF.warn("Connect called for peer with existing connection.");if(this.isOutgoingConnection.has(e))return void x.vF.warn("Connect called for peer with an existing outgoing connection offer.");this.isOutgoingConnection.add(e);const c=function(e,t,r){const{rtcIceTransportPolicies:n,rtcIceServerProtocol:i,useAllServers:o}=t||{},s=e.map(e=>Object.assign(Object.assign({},e),{urls:e.urls.filter(e=>{const t=(void 0===n||n.some(t=>ie(e,t)))&&(void 0===i||oe(e,i));return t||x.vF.debug("Ignoring ICE server: "+e,{organizationId:r}),t})})).filter(({urls:e})=>e.filter(e=>e).length>0);return o?s:[ne(s,"stun"),ne(s,"turn")].filter(e=>void 0!==e).map(e=>re(e))}(u,t);x.vF.debug("Received ICE servers:",Fe(u)),x.vF.debug("Using ICE servers:",Fe(c));const p=new xe(yield this.createRTCPeerConnection(c),c,{baseConfig:{isOffer:!0,isLan:!1,receive:(e,t)=>this.config.receive(e,t),onStreamsInfoUpdate:this.config.onStreamsInfoUpdate?(e,t)=>{var r,n;return null===(n=(r=this.config).onStreamsInfoUpdate)||void 0===n?void 0:n.call(r,e,t)}:void 0,track:this.config.lanOnlyMode?void 0:this.config.track,localUserId:null===(r=a.getUserId())||void 0===r?void 0:r.getValue(),localPeerId:a.getPeerId(),remotePeerId:e,sessionType:this.config.sessionType},remoteConfig:{}},t=>this.onCustomDataChannel(e,t)),f=yield p.getOffer();if(!f)return x.vF.error("Failed to generate offer."),void this.isOutgoingConnection.delete(e);x.vF.debug("Sending offer."),null==o||o("Sending offer",(0,se.x)(f));const h=new ae.SendSignalRequest;h.setSignal(f);const d=yield(()=>Me(this,void 0,void 0,(function*(){try{return yield ue.withDeadline(s.sendSignal(h,yield this.getMetadata()),this.grpcCallDeadline)}catch(e){x.vF.warn("Error when sending signal",{error:e})}})))();if(!this.isOutgoingConnection.has(e))return void x.vF.debug("No offer set after receiving offer signal response.");x.vF.debug("Offer sent.");const g=null===(n=null==d?void 0:d.getSessionId())||void 0===n?void 0:n.getValue(),y=null===(i=null==d?void 0:d.getSessionCreatedTimestamp())||void 0===i?void 0:i.getValue();return g&&y?(p.setSessionId(g),p.setSessionCreatedTimestamp(y),this.isOutgoingConnection.delete(e),this.connections.push(p),this.isConnectionInitiator.add(p),this.setupHandlers(p),g):(x.vF.warn("No session ID or no session created timestamp on send signal response."),void this.isOutgoingConnection.delete(e))}))}connectLan(e){return Me(this,void 0,void 0,(function*(){var t,r;const n=new K(e),i=new xe(yield this.createRTCPeerConnection([]),[],{baseConfig:{isOffer:!0,isLan:!0,receive:(e,t)=>this.config.receive(e,t),onStreamsInfoUpdate:this.config.onStreamsInfoUpdate?(e,t)=>{var r,n;return null===(n=(r=this.config).onStreamsInfoUpdate)||void 0===n?void 0:n.call(r,e,t)}:void 0,track:this.config.lanOnlyMode?void 0:this.config.track,localUserId:null===(r=null===(t=this.localPeer)||void 0===t?void 0:t.getUserId())||void 0===r?void 0:r.getValue(),localPeerId:"lan_client",remotePeerId:e}},t=>this.onCustomDataChannel(e,t)),o=yield i.getLanOffer();if(!o)return x.vF.warn("Could not generate LAN offer"),!1;const s=yield n.postLanRtcOffer({offer:JSON.stringify(o)}),a=new RTCSessionDescription(JSON.parse(s.answer));return yield i.handleLanAnswer(a),this.localConnections.push(i),this.isConnectionInitiator.add(i),(0,Z.A)()}))}getConnections(){return[...this.connections,...this.localConnections]}createCustomDataChannel(e,t,r,n,i){const o=this.getActiveConnection(e);if(o&&this.isConnectionInitiator.has(o)){const s=o.peerConnection.createDataChannel("custom."+t,r);return n&&(s.binaryType="arraybuffer"),i(e,s),()=>{}}const s=(r,n)=>{e===r&&n.label==="custom."+t&&i(e,n)};return this.peerDataChannelListeners.push(s),()=>{this.peerDataChannelListeners=this.peerDataChannelListeners.filter(e=>e!==s)}}onCustomDataChannel(e,t){this.peerDataChannelListeners.forEach(r=>r(e,t))}getConnectionStatus(e){if(this.isOutgoingConnection.has(e))return"connecting";const t=this.getActiveConnection(e);return t?t.isReady()?"connected":"connecting":"disconnected"}getConnectionStatsInfo(e){return Me(this,void 0,void 0,(function*(){const t=this.getActiveConnection(e);if(t)return yield t.getConnectionStatsInfo()}))}disconnect(e){return Me(this,void 0,void 0,(function*(){const t=this.getActiveConnection(e);t&&(yield t.close(),this.connections=this.connections.filter(e=>e!==t),this.localConnections=this.localConnections.filter(e=>e!==t))}))}getPeers(){return Me(this,void 0,void 0,(function*(){if(this.config.lanOnlyMode)throw new Error("getPeers method cannot be used in local-only mode.");const{signalingClient:e}=this.config,t=yield(()=>Me(this,void 0,void 0,(function*(){try{return yield ue.withDeadline(e.getPeers(new ae.GetPeersRequest,yield this.getMetadata()),this.grpcCallDeadline)}catch(e){x.vF.warn("Error when getting peers",{error:e})}})))();if(!t)return[];const r=t.getPeersList();if(!r)return[];const n=e=>{var t,r;return null!==(r=null===(t=e.getPeerCreatedTimestamp())||void 0===t?void 0:t.getValue())&&void 0!==r?r:0};return r.sort((e,t)=>n(t)-n(e)).map(e=>ke(e))}))}getSessions(){return Me(this,void 0,void 0,(function*(){if(this.config.lanOnlyMode)throw new Error("getPeers method cannot be used in local-only mode.");const{signalingClient:e}=this.config,t=yield(()=>Me(this,void 0,void 0,(function*(){try{return yield ue.withDeadline(e.getPeers(new ae.GetPeersRequest,yield this.getMetadata()),this.grpcCallDeadline)}catch(e){x.vF.warn("Error when getting peers",{error:e})}})))();if(!t)return{};const r=t.getPeersList(),n={};for(const e of r)n[e.getPeerId()]=e.getSessionIdsList();return n}))}getPing(e){const t=this.getActiveConnection(e);if(t)return t.getPing();x.vF.warn("Attempted to get ping time from inactive peer.")}getPingInfo(e){const t=this.getActiveConnection(e);if(t)return t.getPingInfo();x.vF.warn("Attempted to get ping time from inactive peer.")}getLastMessageTimestamp(e){const t=this.getActiveConnection(e);if(t)return t.getLastMessageTimestamp();x.vF.warn("Attempted to get last message time from inactive peer.")}getSessionMetricsMessageCounts(e){const t=this.getActiveConnection(e);if(t)return t.getSessionMetricsMessageCounts();x.vF.warn("Attempted to get session metrics counts from inactive peer.")}isReady(){if(this.config.lanOnlyMode)return!0;const{localPeer:e,receiveSignalStream:t,iceServers:r}=this;return!!(e&&t&&r)}shutdown(){return Me(this,void 0,void 0,(function*(){yield this.refreshInterval.stop(),this.receiveSignalStream&&this.receiveSignalStream.cancel();const e=this.connections;this.connections=[],yield this.closeConnections(e);const t=this.localConnections;this.localConnections=[],yield this.closeConnections(t),this.isOutgoingConnection.clear(),this.peerDataChannelListeners=[];const{localPeer:r}=this;if(!r)return;if(this.config.lanOnlyMode)return;const{signalingClient:n}=this.config;yield(()=>Me(this,void 0,void 0,(function*(){try{const e=new ae.DeletePeerRequest;e.setPeerId(r.getPeerId()),yield ue.withDeadline(n.deletePeer(e,yield this.getMetadata()),this.grpcCallDeadline)}catch(e){return void x.vF.warn("Error deleting local peer",{error:e})}})))()}))}createPeer(){return Me(this,void 0,void 0,(function*(){if(this.config.lanOnlyMode)throw new Error("createPeer method cannot be used in local-only mode.");const{signalingClient:e}=this.config,t=yield(()=>Me(this,void 0,void 0,(function*(){try{return yield ue.withDeadline(e.createPeer(new ae.CreatePeerRequest,yield this.getMetadata()),this.grpcCallDeadline)}catch(e){const t=e;x.vF.debug("createPeer failed",{error:t});const r=Ce(t);throw new Error("Was not able to create peer: "+r)}})))(),r=null==t?void 0:t.getPeer();if(!r)throw new Error("Response did not provide peer.");return this.localPeer=r}))}createReceiveSignalStream(){return Me(this,void 0,void 0,(function*(){if(this.config.lanOnlyMode)throw new Error("createReceiveSignalStream method cannot be used in local-only mode.");const{signalingClient:e}=this.config,{localPeer:t,iceServers:r}=this;if(!t||!r)return;const{receiveSignalStream:n}=this;n&&n.cancel();const i=new ae.ReceiveSignalStreamRequest;i.setPeerId(t.getPeerId());const o=yield(()=>Me(this,void 0,void 0,(function*(){try{return e.receiveSignalStream(i,yield this.getMetadata({hasDeadline:!1}))}catch(e){x.vF.debug("createReceiveSignalStream failed",{error:e});const t=Ce(e);throw new Error("Unable to create receive signal stream: "+t)}})))();if(!o)throw new Error("Response did not provide stream.");return o.on("data",e=>Me(this,void 0,void 0,(function*(){var n,i,o,s;const a=e.getSignal(),l=null===(n=null==a?void 0:a.getSessionId())||void 0===n?void 0:n.getValue(),u=null==a?void 0:a.getSenderId(),c=null==a?void 0:a.getReceiverId(),p=null===(i=null==a?void 0:a.getSessionCreatedTimestamp())||void 0===i?void 0:i.getValue();if(!(a&&l&&u&&c&&p))return void x.vF.warn("Received signal with missing information.");const f=this.getActiveConnection(u);if(f)if(f.getSessionId()!==l){if(x.vF.debug("Received signal: different session for a peer we're already connected to."),(f.getSessionCreatedTimestamp()||0)>p)return;const e=new xe(yield this.createRTCPeerConnection(r),r,{baseConfig:{isOffer:!1,isLan:!1,receive:(e,t)=>this.config.receive(e,t),onStreamsInfoUpdate:this.config.onStreamsInfoUpdate?(e,t)=>{var r,n;return null===(n=(r=this.config).onStreamsInfoUpdate)||void 0===n?void 0:n.call(r,e,t)}:void 0,track:this.config.lanOnlyMode?void 0:this.config.track,localPeerId:t.getPeerId(),localUserId:null===(s=t.getUserId())||void 0===s?void 0:s.getValue(),remotePeerId:u},remoteConfig:{sessionId:l,sessionCreatedTimestamp:p}},e=>this.onCustomDataChannel(u,e));yield e.handleSignal(a),this.connections.push(e)}else x.vF.debug("Received signal: for an existing connection."),yield f.handleSignal(a);else{x.vF.debug("Received signal: new connection.");const e=new xe(yield this.createRTCPeerConnection(r),r,{baseConfig:{isOffer:!1,isLan:!1,receive:(e,t)=>this.config.receive(e,t),onStreamsInfoUpdate:this.config.onStreamsInfoUpdate?(e,t)=>{var r,n;return null===(n=(r=this.config).onStreamsInfoUpdate)||void 0===n?void 0:n.call(r,e,t)}:void 0,track:this.config.lanOnlyMode?void 0:this.config.track,localPeerId:t.getPeerId(),localUserId:null===(o=t.getUserId())||void 0===o?void 0:o.getValue(),remotePeerId:u},remoteConfig:{sessionId:l,sessionCreatedTimestamp:p}},e=>this.onCustomDataChannel(u,e));yield e.handleSignal(a),this.connections.push(e)}}))),o.on("end",()=>{o.cancel(),this.receiveSignalStream=void 0}),o.on("error",e=>{switch(e.code){case $.StatusCode.CANCELLED:case $.StatusCode.UNAVAILABLE:case $.StatusCode.UNKNOWN:x.vF.debug("Receive signal stream error",{error:e});break;case $.StatusCode.UNAUTHENTICATED:x.vF.warn("Receive signal stream error",{error:e});break;default:x.vF.error("Receive signal stream error",{error:e})}o.cancel(),this.receiveSignalStream=void 0}),this.receiveSignalStream=o}))}createRTCPeerConnection(e){return Me(this,void 0,void 0,(function*(){var t;const r=null!==(t=this.config.alternateRTCPeerConnection)&&void 0!==t?t:window.RTCPeerConnection;if(!r){if("Chrome"!==function(){if("undefined"==typeof navigator)throw new Error("not a browser");const{userAgent:e}=navigator;return e.includes("Firefox/")?"Firefox":e.includes("Edg/")?"Edge":e.includes("Chrome/")?"Chrome":e.includes("Safari/")?"Safari":e.includes("MSIE/")||e.includes("Trident/")?"IE":"Other"}())throw new Error("WebRTC is not enabled. Please try again with the latest version of Google Chrome.");throw new Error("WebRTC is not enabled. Please ensure WebRTC is not disabled by ad blocking software.")}this.rtcInstancesConstructed++,this.rtcInstancesConstructed%20||Ie();try{return new r({iceServers:e})}catch(e){throw x.vF.debug(`Failed to create RTCPeerConnection: ${this.rtcInstancesConstructed} total allocated`),e}}))}closeConnections(e){return Me(this,void 0,void 0,(function*(){const t=yield Q(e.map(e=>Me(this,void 0,void 0,(function*(){yield e.close()}))));for(const e of t)x.vF.warn("Request to close session failed",{error:e})}))}getActiveConnection(e){return this.getConnections().find(t=>t.getRemotePeerId()===e&&t.isActive())}update(){return Me(this,void 0,void 0,(function*(){var e;if(this.localConnections=this.localConnections.filter(e=>e.isActive()),this.config.lanOnlyMode)return;const{signalingClient:t}=this.config;if(!this.localPeer||!this.receiveSignalStream||!this.iceServers){const e=[];return this.localPeer||e.push(this.createPeer()),this.iceServers||e.push(this.updateIceServers()),yield Promise.all(e),void(this.receiveSignalStream||(yield this.createReceiveSignalStream()))}const[r,n]=(i=this.connections,o=e=>e.isActive(),i.reduce((e,t,r,n)=>{const[i,s]=e;return(o(t,r,n)?i:s).push(t),e},[[],[]]));var i,o;yield this.closeConnections(n),this.connections=r,this.gatherConnectionStats().catch(e=>{x.vF.warn("Error calling gatherConnectionStats",{error:e})}),this.statsLoopsExecuted++;const{localPeer:s}=this,a=this.connections.filter(e=>e.getSessionId).map(e=>re(e.getSessionId()));s.setSessionIdsList(a);const l=new ae.RefreshPeerRequest;l.setPeer(s);try{yield ue.withDeadline(t.refreshPeer(l,yield this.getMetadata()),this.grpcCallDeadline)}catch(e){e instanceof $.RpcError&&e.code===$.StatusCode.NOT_FOUND?(x.vF.warn("Peer expired, creating new peer",{peerId:s.getPeerId()}),yield this.reset()):x.vF.warn("Error calling RefreshPeer",{error:e})}const u=yield this.getPeers();for(const t of this.connections)t.setRemoteDeviceId(null===(e=u.find(e=>e.id===t.getRemotePeerId()))||void 0===e?void 0:e.deviceId)}))}gatherConnectionStats(){return Me(this,void 0,void 0,(function*(){if(this.statsLoopsExecuted%10!=0)return;if(1!==this.connections.length)return;const e=yield this.connections[0].getConnectionStatsInfo(),t=e?Re(e):void 0;t?U.setTag("rtc-connection-type",t):U.setTag("rtc-connection-type","unknown")}))}reset(){return Me(this,void 0,void 0,(function*(){yield this.closeConnections(this.connections),this.connections=[],this.isOutgoingConnection.clear(),yield this.createPeer(),yield this.createReceiveSignalStream()}))}updateIceServers(){return Me(this,void 0,void 0,(function*(){if(this.config.lanOnlyMode)return;const{iceServersLastUpdate:e,iceServersTtl:t}=this,r=(new Date).getTime();if(!e||r-e>t)try{const e=(yield ue.withDeadline(this.config.signalingClient.getIceServers(new ae.GetIceServersRequest,yield this.getMetadata()),this.grpcCallDeadline)).getIceServers();this.iceServers=JSON.parse(e),this.iceServersLastUpdate=r}catch(e){x.vF.warn("Error in updateIceServers",{error:e})}}))}setupHandlers(e){const{peerConnection:t}=e,r=e.getSessionCreatedTimestamp();t.onconnectionstatechange=()=>Me(this,void 0,void 0,(function*(){const n=t.connectionState;if(!r)return;const i=e.getRemoteDeviceId();switch(n){case"connected":U.aggregate("rtc-connect-time",(new Date).getTime()-r,Object.assign({},i?{deviceId:i}:{}));break;case"failed":U.increment("rtc-connect-failed",Object.assign({},i?{deviceId:i}:{}))}}))}getMetadata(){return Me(this,arguments,void 0,(function*(e={}){if(this.config.lanOnlyMode)throw new Error("getMetadata method cannot be called in local-only mode");const{getToken:t}=this.config,{grpcCallDeadline:r}=this,{hasDeadline:n=!0}=e,i=n?{deadline:(Date.now()+r).toString(10)}:null;try{const e=yield t();return Object.assign({authorization:e},i)}catch(e){throw x.vF.error("getToken() failed",{error:e}),new Error("Cannot get authorization token")}}))}}var De=r(5413),Le=r(7197),Ne=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))};class ze{constructor(e,t){this.sentMessagesCounts=new Map,this.receivedMessagesCounts=new Map,this.sessionId=e,this.connection=t}incrementMessageSent(e){const t=Se(e.header.stream);this.sentMessagesCounts.set(t,(this.sentMessagesCounts.get(t)||0)+1)}incrementMessageReceived(e){const t=Se(e.header.stream);this.receivedMessagesCounts.set(t,(this.receivedMessagesCounts.get(t)||0)+1)}uploadMetrics(){return Ne(this,void 0,void 0,(function*(){const{sessionId:e}=this,t=yield this.connection.peerConnection.getStats(),r={};t.forEach(e=>r[e.id]=e),x.vF.debug("rtc-stats",Object.assign(Object.assign({},r),{sessionId:e}));const n=[...new Set(Array.from(this.sentMessagesCounts.keys()).concat(Array.from(this.receivedMessagesCounts.keys())))].reduce((e,t)=>{const r=this.sentMessagesCounts.get(t),n=this.receivedMessagesCounts.get(t);return Object.assign(Object.assign({},e),{[t+"-sent"]:r,[t+"-received"]:n})},{sessionId:e});x.vF.debug("rtc-message-report",n)}))}}function Ue(e,t){return Se(e)===Se(t)}var Ge=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))};class Ve{constructor(e,t){this.peerConnection=e,this.config=t,this.connectTimeoutMs=10*a.p.second,this.gatherIceTimeoutMs=5*a.p.second,this.pingUpdateTimeoutMs=2*a.p.second,this.streamLatestTimestamp=new Map,this.closeCalled=!1,this.connectCalled=!1,this.sentOffer=!1,this.receivedIceCandidate=!1;const{isOffer:r}=t;r?this.initializeChannels(e):e.ondatachannel=e=>{switch(e.channel.label){case"stream.latest-ttl":this.latestTtlStreamChannel=e.channel;break;case"stream.reliable":this.reliableStreamChannel=e.channel;break;case"stream.latest-reliable":this.latestReliableStreamChannel=e.channel;break;case"stream.latest-try-once":this.latestTryOnceStreamChannel=e.channel}this.setupChannel(e.channel)},this.sessionMetrics=new ze(this.getSessionId(),this)}connect(){return Ge(this,void 0,void 0,(function*(){if(this.connectCalled)return;this.connectCalled=!0,this.pingUpdateTimeout=setInterval(()=>{const{reliableStreamChannel:e}=this;e&&this.sendSystemMessage(e,{type:"ping"})},this.pingUpdateTimeoutMs),this.connectTimeout=setTimeout(()=>Ge(this,void 0,void 0,(function*(){this.isReady()||(x.vF.warn("RTC connect timed out, closing connection"),yield this.close())})),this.connectTimeoutMs);const{peerConnection:e,config:{isOffer:t,sessionId:r}}=this;if(t){const t=yield e.createOffer();yield e.setLocalDescription(t)}t&&(this.gatherIceTimeout=setTimeout(()=>Ge(this,void 0,void 0,(function*(){this.sentOffer||(x.vF.warn("ICE gathering timed out"),this.receivedIceCandidate?(x.vF.warn("Attempting to connect with partial ICE candidate pool"),yield this.sendOffer()):yield this.close())})),this.gatherIceTimeoutMs),e.onicecandidate=e=>Ge(this,void 0,void 0,(function*(){e.candidate?this.receivedIceCandidate=!0:yield this.sendOffer()})),e.onicegatheringstatechange=()=>Ge(this,void 0,void 0,(function*(){"complete"===e.iceGatheringState&&(yield this.sendOffer())})),e.onnegotiationneeded=()=>{x.vF.debug("Negotiation needed",{sessionId:r})})}))}handleSignal(e){return Ge(this,void 0,void 0,(function*(){const{peerConnection:t,config:{sessionId:r,sendSignal:n}}=this,{description:i}=JSON.parse(e.payload);if(x.vF.debug("Handling signal",{sessionId:r,description:JSON.stringify(i)}),i)if("stable"!==t.signalingState||"connected"!==t.connectionState)if(t.remoteDescription)x.vF.warn("Received SDP signal during negotiation when remote description is already set: "+JSON.stringify(e));else if("offer"===i.type){yield t.setRemoteDescription(i);const e=yield t.createAnswer();yield t.setLocalDescription(e),yield n({payload:JSON.stringify({description:e})})}else"answer"===i.type&&(yield t.setRemoteDescription(i));else x.vF.warn("Received SDP signal when signaling is stable and connected: "+JSON.stringify(e));else x.vF.warn("Received non-SDP signal: "+JSON.stringify(e))}))}send(e,t){const r=this.getChannelFromLabel(t.channelLabel);r?this.sendOnChannel(r,e):x.vF.warn("Send called with unexpected channel label",{channelLabel:t.channelLabel})}controlRemoteStream(e){this.sendSystemMessage(re(this.reliableStreamChannel),{type:"stream-control",streamControl:e})}isActive(){return new Set(["new","connecting","connected"]).has(this.peerConnection.connectionState)}isReady(){const{peerConnection:e,latestTtlStreamChannel:t,reliableStreamChannel:r,latestTryOnceStreamChannel:n}=this;return!!(r&&t&&n)&&("connected"===e.connectionState&&"open"===r.readyState&&"open"===t.readyState&&"open"===n.readyState)}isClosed(){const{peerConnection:e,reliableStreamChannel:t,latestTryOnceStreamChannel:r,latestTtlStreamChannel:n}=this;return!("closed"!==e.connectionState||void 0!==t&&"closed"!==t.readyState||void 0!==r&&"closed"!==r.readyState||void 0!==n&&"closed"!==n.readyState)}needsClosing(){const{peerConnection:e,latestTtlStreamChannel:t,reliableStreamChannel:r,latestTryOnceStreamChannel:n}=this;if(this.isClosed())return!1;const i=new Set(["closing","closed"]),o=e=>e&&i.has(e.readyState);return Te(e)||o(t)||o(r)||o(n)}close(){return Ge(this,void 0,void 0,(function*(){this.closeCalled||(this.closeCalled=!0,yield this.sessionMetrics.uploadMetrics(),this.pingUpdateTimeout&&clearInterval(this.pingUpdateTimeout),this.connectTimeout&&clearTimeout(this.connectTimeout),this.gatherIceTimeout&&clearTimeout(this.gatherIceTimeout),this.peerConnection.close())}))}getPing(){return this.pingTimeMs}getLastMessageTimestamp(){return this.lastMessageTimestamp}getSessionId(){return this.config.sessionId}getRemotePeer(){return this.config.remotePeer}initializeChannels(e){this.latestTtlStreamChannel=e.createDataChannel("stream.latest-ttl",pe),this.reliableStreamChannel=e.createDataChannel("stream.reliable",fe),this.latestReliableStreamChannel=e.createDataChannel("stream.latest-reliable",he),this.latestTryOnceStreamChannel=e.createDataChannel("stream.latest-try-once",de),this.setupChannel(this.latestTtlStreamChannel),this.setupChannel(this.reliableStreamChannel),this.setupChannel(this.latestReliableStreamChannel),this.setupChannel(this.latestTryOnceStreamChannel)}sendOffer(){return Ge(this,void 0,void 0,(function*(){if(this.sentOffer)return;if(this.sentOffer=!0,Te(this.peerConnection))return;const{peerConnection:e,config:{sendSignal:t}}=this,r=yield e.createOffer();yield e.setLocalDescription(r);const n={payload:JSON.stringify({description:r})};yield t(n)}))}getChannelFromLabel(e){switch(e){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(e,t){let r;try{r=(0,ce.encode)(JSON.stringify(t))}catch(e){return void x.vF.warn("Failed to encode RTC message",{error:e})}try{e.send(r),this.sessionMetrics.incrementMessageSent(t)}catch(t){x.vF.warn("Failed to send message to channel",{error:t,channel:e.label})}}channelNotRecognized(e){return e!==this.latestTtlStreamChannel&&e!==this.latestReliableStreamChannel&&e!==this.latestTryOnceStreamChannel&&e!==this.reliableStreamChannel}setupChannel(e){e.onmessage=t=>{if(this.channelNotRecognized(e))return void x.vF.warn("Received message on unrecognized data channel.");let r;try{r=JSON.parse((0,ce.decode)(t.data))}catch(t){return void x.vF.warn("Received unparseable RTC message",{error:t,channel:e.label})}if(this.lastMessageTimestamp=(new Date).getTime(),r=je(r),this.sessionMetrics.incrementMessageReceived(r),this.handleSystemMessage(e,r))return;if(!this.hasCapabilities(r))return void x.vF.warn("Received RTC message that was not within the capability scope of the connection.");(e===this.latestTryOnceStreamChannel||e===this.latestTtlStreamChannel||e===this.latestReliableStreamChannel)&&!this.isLatestMessage(r)||this.config.receive(this.config.remotePeer.id,r)},e.onerror=t=>{x.vF.warn("Channel error: "+t.error,{error:t.error,sessionId:this.getSessionId(),channelLabel:e.label})},e.onopen=()=>{x.vF.debug("Channel opened",{sessionId:this.getSessionId(),channelLabel:e.label})},e.onclose=()=>{const t={bufferedAmount:e.bufferedAmount,sessionId:this.getSessionId(),channelLabel:e.label};!1===this.closeCalled?x.vF.debug("Unexpected channel closed",t):x.vF.debug("Channel closed",t)}}handleSystemMessage(e,t){switch(t.header.stream.streamType){case"ping":return this.sendSystemMessage(e,{type:"pong",timestamp:re(t.payload.ping)}),!0;case"pong":{const e=(new Date).getTime()-re(t.payload.pong);return this.pingTimeMs=e,U.aggregate("rtc-ping-time",e),!0}case"stream-control":return!0;default:return!1}}sendSystemMessage(e,t){if("open"!==e.readyState)return;const r={entityId:re(this.config.localPeer.deviceId||this.config.localPeer.userId),streamName:"$."+t.type,streamType:t.type};let n;switch(t.type){case"ping":n={ping:(new Date).getTime()};break;case"pong":n={pong:t.timestamp};break;case"stream-control":n={streamControl:t.streamControl}}this.sendOnChannel(e,Oe(r,n))}hasCapabilities(e){var t,r;const{localPeer:n,remotePeer:i}=this.config,o=null===(t=n.capabilitySet.streaming)||void 0===t?void 0:t.streams,s=o&&o.some(t=>t.receive&&Ue(t.stream,e.header.stream)),a=null===(r=i.capabilitySet.streaming)||void 0===r?void 0:r.streams,l=a&&a.some(t=>t.send&&Ue(t.stream,e.header.stream));return s||l}isLatestMessage(e){const t=Se(e.header.stream),r=(this.streamLatestTimestamp.get(t)||0)<=e.header.created;return r&&this.streamLatestTimestamp.set(t,e.header.created),r}}var We=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))};class qe{constructor(e){this.config=e,this.connections=[],this.connectingSessions=new Map,this.rtcInstancesConstructed=0,this.updateInterval=B({func:()=>We(this,void 0,void 0,(function*(){try{yield this.update()}catch(e){x.vF.warn("RTC update failed",{error:e})}})),delay:250*a.p.millisecond}),this.localPeer=this.createPeer()}send(e,t,r){const n=this.getActiveConnection(e);n?n.isReady()?n.send(t,r):x.vF.warn("Attempted to send with an active connection to that peer which was not yet ready."):x.vF.warn("Attempted to send with no active connection to that peer.")}controlRemoteStream(e,t){const r=this.getActiveConnection(e);r?r.isReady()?r.controlRemoteStream(t):x.vF.warn("Attempted to control remote stream with an active connection to that peer which was not yet ready."):x.vF.warn("Attempted to control remote stream with no active connection to that peer.")}connect(e){return We(this,void 0,void 0,(function*(){const t=yield this.getLocalPeer();if(this.getActiveConnection(e))return void x.vF.warn("Attempted to connect to peer with an already active connection.");let r;try{r=yield this.config.signalingClient.createSession(yield this.config.getToken(),{offerPeerId:t.id,answerPeerId:e})}catch(e){(0,De.e)(e,Le.o,e=>404===e.statusCode),x.vF.warn("Attempted to connect to peer that does not exist.")}if(r)for(this.connectingSessions.set(r.id,(new Date).getTime()),yield this.connectToSession(r);;)switch(yield(0,l.c)(.1),this.getConnectionStatus(e)){case"connecting":continue;case"connected":return r.id;case"disconnected":return}}))}getConnectionStatus(e){const t=this.getActiveConnection(e);return t?t.isReady()?"connected":"connecting":"disconnected"}getIceMode(e){const t=this.getActiveConnection(e);if(t)return t.iceMode}disconnect(e){return We(this,void 0,void 0,(function*(){const t=this.getActiveConnection(e);t&&(yield this.closeConnection(t))}))}getLocalPeer(){return We(this,void 0,void 0,(function*(){return yield this.localPeer}))}getPeers(){return We(this,void 0,void 0,(function*(){return yield this.config.signalingClient.getPeers(yield this.config.getToken())}))}getPing(e){const t=this.getActiveConnection(e);if(t)return t.getPing();x.vF.warn("Attempted to get ping time from inactive peer.")}getLastMessageTimestamp(e){const t=this.getActiveConnection(e);if(t)return t.getLastMessageTimestamp();x.vF.warn("Attempted to get ping time from inactive peer.")}shutdown(){return We(this,void 0,void 0,(function*(){yield this.updateInterval.stop();const e=this.connections;this.connections=[],yield this.closeConnections(e)}))}closeConnection(e){return We(this,void 0,void 0,(function*(){this.connectingSessions.delete(e.getSessionId()),yield e.close();try{yield this.config.signalingClient.deleteSession(yield this.config.getToken(),e.getSessionId())}catch(e){(0,De.e)(e,Le.o,e=>404===e.statusCode)}}))}getSessions(){return We(this,void 0,void 0,(function*(){const e=yield this.getLocalPeer();return(yield this.config.signalingClient.getSessions(yield this.config.getToken())).filter(t=>t.offer.peer.id===e.id||t.answer.peer.id===e.id)}))}createPeer(){return We(this,void 0,void 0,(function*(){return yield this.config.signalingClient.createPeer(yield this.config.getToken(),{capabilitySet:this.config.capabilitySet||{}})}))}createRTCPeerConnection(){return We(this,arguments,void 0,(function*(e={}){const t=this.config.alternateRTCPeerConnection||RTCPeerConnection;this.rtcInstancesConstructed++,this.rtcInstancesConstructed%20||Ie();try{return new t(Object.assign({iceServers:yield this.config.signalingClient.getIceServers(yield this.config.getToken())},e))}catch(e){throw x.vF.debug(`Failed to create RTCPeerConnection: ${this.rtcInstancesConstructed} total allocated`),e}}))}closeConnections(e){return We(this,void 0,void 0,(function*(){const t=yield Q(e.map(e=>We(this,void 0,void 0,(function*(){yield this.closeConnection(e)}))));for(const e of t)x.vF.warn("Request to close session failed",{error:e})}))}reset(){return We(this,void 0,void 0,(function*(){yield this.closeConnections(this.connections),this.connections=[],this.connectingSessions=new Map,this.localPeer=this.createPeer(),yield this.localPeer}))}getActiveConnection(e){return this.connections.find(t=>t.getRemotePeer().id===e&&t.isActive())}update(){return We(this,void 0,void 0,(function*(){const e=yield this.getLocalPeer();try{yield this.config.signalingClient.refreshPeer(yield this.config.getToken(),e.id)}catch(t){(0,De.e)(t,Le.o,e=>404===e.statusCode),x.vF.warn("Peer expired, creating new peer",{peerId:e.id}),yield this.reset()}yield this.handleSessions(yield this.getSessions())}))}handleSessions(e){return We(this,void 0,void 0,(function*(){yield this.syncConnectionsAndSessions(e);const t=e.map(e=>({session:e,connection:this.connections.find(t=>t.getSessionId()===e.id)}));yield Promise.all(t.map(e=>We(this,[e],void 0,(function*({session:e,connection:t}){return yield this.maintainConnection(e,t)}))))}))}syncConnectionsAndSessions(e){return We(this,void 0,void 0,(function*(){const t=new Set(e.map(e=>e.id)),r=e=>t.has(e.getSessionId())||this.connectingSessions.has(e.getSessionId());this.connections=this.connections.filter(e=>r(e));const n=this.connections.filter(e=>!r(e)||e.needsClosing());yield Promise.all(n.map(e=>We(this,void 0,void 0,(function*(){yield this.closeConnection(e)}))))}))}maintainConnection(e,t){return We(this,void 0,void 0,(function*(){const r=yield this.getLocalPeer(),n=e.offer.peer.id===r.id;if(t){if(t.isReady())try{yield this.config.signalingClient.refreshSession(yield this.config.getToken(),e.id)}catch(t){(0,De.e)(t,Le.o,e=>404===e.statusCode),x.vF.debug("Refresh session not found",{sessionId:e.id})}else if(t.isActive())try{yield this.consumeSignals(t)}catch(e){x.vF.warn("Failed to ingest signals, closing connection",{error:e}),yield this.closeConnection(t)}}else{if(n)return;yield this.connectToSession(e)}}))}connectToSession(e){return We(this,void 0,void 0,(function*(){const t=yield this.getLocalPeer(),r=e.offer.peer.id===t.id,n=yield this.createRTCPeerConnection(),i=new Ve(n,{localPeer:r?e.offer.peer:e.answer.peer,remotePeer:r?e.answer.peer:e.offer.peer,sessionId:e.id,isOffer:r,sendSignal:t=>this.sendSignal(e.id,t),receive:(e,t)=>this.config.receive(e,t)});if(this.connections.find(t=>t.getSessionId()===e.id))return x.vF.warn("connectToSession called on a session that already has a connection.",{sessionId:e.id}),void(yield i.close());this.setupHandlers(i),this.connections.push(i);try{yield i.connect()}catch(e){x.vF.warn("Failed to handle negotiation, closing connection",{error:e}),yield this.closeConnection(i)}}))}setupHandlers(e){const{peerConnection:t}=e,r=e.getSessionId();t.onconnectionstatechange=()=>We(this,void 0,void 0,(function*(){const n=this.connectingSessions.get(r);if(void 0===n)return;const i=t.connectionState;switch(Te(t)&&this.connectingSessions.delete(r),i){case"connected":{this.connectingSessions.delete(r);const e=(new Date).getTime()-n;U.aggregate("rtc-connect-time",e);break}case"failed":U.increment("rtc-connect-failed"),yield this.closeConnection(e)}}))}consumeSignals(e){return We(this,void 0,void 0,(function*(){let t=[];try{t=yield this.config.signalingClient.takeSignals(yield this.config.getToken(),e.getSessionId())}catch(e){(0,De.e)(e,Le.o,e=>404===e.statusCode)}for(const r of t)yield e.handleSignal(r)}))}sendSignal(e,t){return We(this,void 0,void 0,(function*(){try{yield this.config.signalingClient.addSignals(yield this.config.getToken(),e,{signals:[t]})}catch(e){(0,De.e)(e,Le.o,e=>404===e.statusCode)}}))}}})(),n})());
2
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.FormantRealtimeSDK=t():e.FormantRealtimeSDK=t()}(self,()=>(()=>{var e={5475:(e,t,r)=>{var n={};e.exports=n,n.themes={};var i=r(9208),o=n.styles=r(9253),s=Object.defineProperties,a=new RegExp(/[\r\n]+/g);n.supportsColor=r(3822).supportsColor,void 0===n.enabled&&(n.enabled=!1!==n.supportsColor()),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,t){if(!n.enabled)return e+"";var r=o[t];return!r&&t in n?n[t](e):r.open+e+r.close};var l=/[|\\{}()[\]^$+*?.]/g;function u(e){var t=function e(){return h.apply(e,arguments)};return t._styles=e,t.__proto__=f,t}var c,p=(c={},o.grey=o.gray,Object.keys(o).forEach((function(e){o[e].closeRe=new RegExp(function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(l,"\\$&")}(o[e].close),"g"),c[e]={get:function(){return u(this._styles.concat(e))}}})),c),f=s((function(){}),p);function h(){var e=Array.prototype.slice.call(arguments),t=e.map((function(e){return null!=e&&e.constructor===String?e:i.inspect(e)})).join(" ");if(!n.enabled||!t)return t;for(var r=-1!=t.indexOf("\n"),s=this._styles,l=s.length;l--;){var u=o[s[l]];t=u.open+t.replace(u.closeRe,u.open)+u.close,r&&(t=t.replace(a,(function(e){return u.close+e+u.open})))}return t}n.setTheme=function(e){if("string"!=typeof e)for(var t in e)!function(t){n[t]=function(r){if("object"==typeof e[t]){var i=r;for(var o in e[t])i=n[e[t][o]](i);return i}return n[e[t]](r)}}(t);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 d=function(e,t){var r=t.split("");return(r=r.map(e)).join("")};for(var g in n.trap=r(8740),n.zalgo=r(6798),n.maps={},n.maps.america=r(3427)(n),n.maps.zebra=r(8479)(n),n.maps.rainbow=r(4517)(n),n.maps.random=r(6948)(n),n.maps)!function(e){n[e]=function(t){return d(n.maps[e],t)}}(g);s(n,function(){var e={};return Object.keys(p).forEach((function(t){e[t]={get:function(){return u([t])}}})),e}())},8740:e=>{e.exports=function(e,t){var r="";e=(e=e||"Run the trap, drop the bass").split("");var n={a:["@","Ą","Ⱥ","Ʌ","Δ","Λ","Д"],b:["ß","Ɓ","Ƀ","ɮ","β","฿"],c:["©","Ȼ","Ͼ"],d:["Ð","Ɗ","Ԁ","ԁ","Ԃ","ԃ"],e:["Ë","ĕ","Ǝ","ɘ","Σ","ξ","Ҽ","੬"],f:["Ӻ"],g:["ɢ"],h:["Ħ","ƕ","Ң","Һ","Ӈ","Ԋ"],i:["༏"],j:["Ĵ"],k:["ĸ","Ҡ","Ӄ","Ԟ"],l:["Ĺ"],m:["ʍ","Ӎ","ӎ","Ԡ","ԡ","൩"],n:["Ñ","ŋ","Ɲ","Ͷ","Π","Ҋ"],o:["Ø","õ","ø","Ǿ","ʘ","Ѻ","ם","۝","๏"],p:["Ƿ","Ҏ"],q:["্"],r:["®","Ʀ","Ȑ","Ɍ","ʀ","Я"],s:["§","Ϟ","ϟ","Ϩ"],t:["Ł","Ŧ","ͳ"],u:["Ʊ","Ս"],v:["ט"],w:["Ш","Ѡ","Ѽ","൰"],x:["Ҳ","Ӿ","Ӽ","ӽ"],y:["¥","Ұ","Ӌ"],z:["Ƶ","ɀ"]};return e.forEach((function(e){e=e.toLowerCase();var t=n[e]||[" "],i=Math.floor(Math.random()*t.length);r+=void 0!==n[e]?n[e][i]:e})),r}},6798:e=>{e.exports=function(e,t){e=e||" he is here ";var r={up:["̍","̎","̄","̅","̿","̑","̆","̐","͒","͗","͑","̇","̈","̊","͂","̓","̈","͊","͋","͌","̃","̂","̌","͐","̀","́","̋","̏","̒","̓","̔","̽","̉","ͣ","ͤ","ͥ","ͦ","ͧ","ͨ","ͩ","ͪ","ͫ","ͬ","ͭ","ͮ","ͯ","̾","͛","͆","̚"],down:["̖","̗","̘","̙","̜","̝","̞","̟","̠","̤","̥","̦","̩","̪","̫","̬","̭","̮","̯","̰","̱","̲","̳","̹","̺","̻","̼","ͅ","͇","͈","͉","͍","͎","͓","͔","͕","͖","͙","͚","̣"],mid:["̕","̛","̀","́","͘","̡","̢","̧","̨","̴","̵","̶","͜","͝","͞","͟","͠","͢","̸","̷","͡"," ҉"]},n=[].concat(r.up,r.down,r.mid);function i(e){return Math.floor(Math.random()*e)}function o(e){var t=!1;return n.filter((function(r){t=r===e})),t}return function(e,t){var n,s,a="";for(s in(t=t||{}).up=void 0===t.up||t.up,t.mid=void 0===t.mid||t.mid,t.down=void 0===t.down||t.down,t.size=void 0!==t.size?t.size:"maxi",e=e.split(""))if(!o(s)){switch(a+=e[s],n={up:0,down:0,mid:0},t.size){case"mini":n.up=i(8),n.mid=i(2),n.down=i(8);break;case"maxi":n.up=i(16)+3,n.mid=i(4)+1,n.down=i(64)+3;break;default:n.up=i(8)+1,n.mid=i(6)/2,n.down=i(8)+1}var l=["up","mid","down"];for(var u in l)for(var c=l[u],p=0;p<=n[c];p++)t[c]&&(a+=r[c][i(r[c].length)])}return a}(e,t)}},3427:e=>{e.exports=function(e){return function(t,r,n){if(" "===t)return t;switch(r%3){case 0:return e.red(t);case 1:return e.white(t);case 2:return e.blue(t)}}}},4517:e=>{e.exports=function(e){var t=["red","yellow","green","blue","magenta"];return function(r,n,i){return" "===r?r:e[t[n++%t.length]](r)}}},6948:e=>{e.exports=function(e){var t=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta","brightYellow","brightRed","brightGreen","brightBlue","brightWhite","brightCyan","brightMagenta"];return function(r,n,i){return" "===r?r:e[t[Math.round(Math.random()*(t.length-2))]](r)}}},8479:e=>{e.exports=function(e){return function(t,r,n){return r%2==0?t:e.inverse(t)}}},9253:e=>{var t={};e.exports=t;var r={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],brightRed:[91,39],brightGreen:[92,39],brightYellow:[93,39],brightBlue:[94,39],brightMagenta:[95,39],brightCyan:[96,39],brightWhite:[97,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],bgGray:[100,49],bgGrey:[100,49],bgBrightRed:[101,49],bgBrightGreen:[102,49],bgBrightYellow:[103,49],bgBrightBlue:[104,49],bgBrightMagenta:[105,49],bgBrightCyan:[106,49],bgBrightWhite:[107,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(r).forEach((function(e){var n=r[e],i=t[e]=[];i.open="["+n[0]+"m",i.close="["+n[1]+"m"}))},124:e=>{"use strict";e.exports=function(e,t){var r=(t=t||process.argv||[]).indexOf("--"),n=/^-{1,2}/.test(e)?"":"--",i=t.indexOf(n+e);return-1!==i&&(-1===r||i<r)}},3822:(e,t,r)=>{"use strict";var n=r(2213),i=r(124),o=process.env,s=void 0;function a(e){return function(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}(function(e){if(!1===s)return 0;if(i("color=16m")||i("color=full")||i("color=truecolor"))return 3;if(i("color=256"))return 2;if(e&&!e.isTTY&&!0!==s)return 0;var t=s?1:0;if("win32"===process.platform){var r=n.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(r[0])>=10&&Number(r[2])>=10586?Number(r[2])>=14931?3:2:1}if("CI"in o)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((function(e){return e in o}))||"codeship"===o.CI_NAME?1:t;if("TEAMCITY_VERSION"in o)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(o.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in o){var a=parseInt((o.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(o.TERM_PROGRAM){case"iTerm.app":return a>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test("xterm")?2:/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test("xterm")||"COLORTERM"in o?1:t}(e))}i("no-color")||i("no-colors")||i("color=false")?s=!1:(i("color")||i("colors")||i("color=true")||i("color=always"))&&(s=!0),"FORCE_COLOR"in o&&(s=0===o.FORCE_COLOR.length||0!==parseInt(o.FORCE_COLOR,10)),e.exports={supportsColor:a,stdout:a(process.stdout),stderr:a(process.stderr)}},1158:(e,t,r)=>{var n=r(5475);e.exports=n},7147:(e,t,r)=>{e.exports=r(4968)},4968:(e,t,r)=>{var n=r(8636)((function e(t,r){return(r=r||{}).namespace=t,r.prod=!0,r.dev=!1,r.force||e.force?e.yep(r):e.nope(r)}));e.exports=n},8636:e=>{var t=[],r=[],n=function(){};function i(e){return!~t.indexOf(e)&&(t.push(e),!0)}function o(e){n=e}function s(e){for(var r=[],n=0;n<t.length;n++)if(t[n].async)r.push(t[n]);else if(t[n](e))return!0;return!!r.length&&new Promise((function(t){Promise.all(r.map((function(t){return t(e)}))).then((function(e){t(e.some(Boolean))}))}))}function a(e){return!~r.indexOf(e)&&(r.push(e),!0)}function l(){n.apply(n,arguments)}function u(e){for(var t=0;t<r.length;t++)e=r[t].apply(r[t],arguments);return e}function c(e,t){var r=Object.prototype.hasOwnProperty;for(var n in t)r.call(t,n)&&(e[n]=t[n]);return e}function p(e){return e.enabled=!1,e.modify=a,e.set=o,e.use=i,c((function(){return!1}),e)}function f(e){return e.enabled=!0,e.modify=a,e.set=o,e.use=i,c((function(){var t=Array.prototype.slice.call(arguments,0);return l.call(l,e,u(t,e)),!0}),e)}e.exports=function(e){return e.introduce=c,e.enabled=s,e.process=u,e.modify=a,e.write=l,e.nope=p,e.yep=f,e.set=o,e.use=i,e}},6093:(e,t,r)=>{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,(o=i.key,s=void 0,s=function(e,t){if("object"!==n(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!==n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===n(s)?s:String(s)),i)}var o,s}function o(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}var s,a,l=r(1342).codes,u=l.ERR_AMBIGUOUS_ARGUMENT,c=l.ERR_INVALID_ARG_TYPE,p=l.ERR_INVALID_ARG_VALUE,f=l.ERR_INVALID_RETURN_VALUE,h=l.ERR_MISSING_ARGS,d=r(9801),g=r(9208).inspect,y=r(9208).types,v=y.isPromise,m=y.isRegExp,b=r(3225)(),w=r(1937)(),S=r(9818)("RegExp.prototype.test");new Map;function _(){var e=r(5656);s=e.isDeepEqual,a=e.isDeepStrictEqual}var E=!1,O=e.exports=P,R={};function T(e){if(e.message instanceof Error)throw e.message;throw new d(e)}function j(e,t,r,n){if(!r){var i=!1;if(0===t)i=!0,n="No value argument passed to `assert.ok()`";else if(n instanceof Error)throw n;var o=new d({actual:r,expected:!0,message:n,operator:"==",stackStartFn:e});throw o.generatedMessage=i,o}}function P(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];j.apply(void 0,[P,t.length].concat(t))}O.fail=function e(t,r,n,i,o){var s,a=arguments.length;if(0===a)s="Failed";else if(1===a)n=t,t=void 0;else{if(!1===E){E=!0;var l=process.emitWarning?process.emitWarning:console.warn.bind(console);l("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")}2===a&&(i="!=")}if(n instanceof Error)throw n;var u={actual:t,expected:r,operator:void 0===i?"fail":i,stackStartFn:o||e};void 0!==n&&(u.message=n);var c=new d(u);throw s&&(c.message=s,c.generatedMessage=!0),c},O.AssertionError=d,O.ok=P,O.equal=function e(t,r,n){if(arguments.length<2)throw new h("actual","expected");t!=r&&T({actual:t,expected:r,message:n,operator:"==",stackStartFn:e})},O.notEqual=function e(t,r,n){if(arguments.length<2)throw new h("actual","expected");t==r&&T({actual:t,expected:r,message:n,operator:"!=",stackStartFn:e})},O.deepEqual=function e(t,r,n){if(arguments.length<2)throw new h("actual","expected");void 0===s&&_(),s(t,r)||T({actual:t,expected:r,message:n,operator:"deepEqual",stackStartFn:e})},O.notDeepEqual=function e(t,r,n){if(arguments.length<2)throw new h("actual","expected");void 0===s&&_(),s(t,r)&&T({actual:t,expected:r,message:n,operator:"notDeepEqual",stackStartFn:e})},O.deepStrictEqual=function e(t,r,n){if(arguments.length<2)throw new h("actual","expected");void 0===s&&_(),a(t,r)||T({actual:t,expected:r,message:n,operator:"deepStrictEqual",stackStartFn:e})},O.notDeepStrictEqual=function e(t,r,n){if(arguments.length<2)throw new h("actual","expected");void 0===s&&_();a(t,r)&&T({actual:t,expected:r,message:n,operator:"notDeepStrictEqual",stackStartFn:e})},O.strictEqual=function e(t,r,n){if(arguments.length<2)throw new h("actual","expected");w(t,r)||T({actual:t,expected:r,message:n,operator:"strictEqual",stackStartFn:e})},O.notStrictEqual=function e(t,r,n){if(arguments.length<2)throw new h("actual","expected");w(t,r)&&T({actual:t,expected:r,message:n,operator:"notStrictEqual",stackStartFn:e})};var x=o((function e(t,r,n){var i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),r.forEach((function(e){e in t&&(void 0!==n&&"string"==typeof n[e]&&m(t[e])&&S(t[e],n[e])?i[e]=n[e]:i[e]=t[e])}))}));function A(e,t,r,n,i,o){if(!(r in e)||!a(e[r],t[r])){if(!n){var s=new x(e,i),l=new x(t,i,e),u=new d({actual:s,expected:l,operator:"deepStrictEqual",stackStartFn:o});throw u.actual=e,u.expected=t,u.operator=o.name,u}T({actual:e,expected:t,message:n,operator:o.name,stackStartFn:o})}}function I(e,t,r,i){if("function"!=typeof t){if(m(t))return S(t,e);if(2===arguments.length)throw new c("expected",["Function","RegExp"],t);if("object"!==n(e)||null===e){var o=new d({actual:e,expected:t,message:r,operator:"deepStrictEqual",stackStartFn:i});throw o.operator=i.name,o}var a=Object.keys(t);if(t instanceof Error)a.push("name","message");else if(0===a.length)throw new p("error",t,"may not be an empty object");return void 0===s&&_(),a.forEach((function(n){"string"==typeof e[n]&&m(t[n])&&S(t[n],e[n])||A(e,t,n,r,a,i)})),!0}return void 0!==t.prototype&&e instanceof t||!Error.isPrototypeOf(t)&&!0===t.call({},e)}function C(e){if("function"!=typeof e)throw new c("fn","Function",e);try{e()}catch(e){return e}return R}function k(e){return v(e)||null!==e&&"object"===n(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function M(e){return Promise.resolve().then((function(){var t;if("function"==typeof e){if(!k(t=e()))throw new f("instance of Promise","promiseFn",t)}else{if(!k(e))throw new c("promiseFn",["Function","Promise"],e);t=e}return Promise.resolve().then((function(){return t})).then((function(){return R})).catch((function(e){return e}))}))}function F(e,t,r,i){if("string"==typeof r){if(4===arguments.length)throw new c("error",["Object","Error","Function","RegExp"],r);if("object"===n(t)&&null!==t){if(t.message===r)throw new u("error/message",'The error message "'.concat(t.message,'" is identical to the message.'))}else if(t===r)throw new u("error/message",'The error "'.concat(t,'" is identical to the message.'));i=r,r=void 0}else if(null!=r&&"object"!==n(r)&&"function"!=typeof r)throw new c("error",["Object","Error","Function","RegExp"],r);if(t===R){var o="";r&&r.name&&(o+=" (".concat(r.name,")")),o+=i?": ".concat(i):".";var s="rejects"===e.name?"rejection":"exception";T({actual:void 0,expected:r,operator:e.name,message:"Missing expected ".concat(s).concat(o),stackStartFn:e})}if(r&&!I(t,r,i,e))throw t}function B(e,t,r,n){if(t!==R){if("string"==typeof r&&(n=r,r=void 0),!r||I(t,r)){var i=n?": ".concat(n):".",o="doesNotReject"===e.name?"rejection":"exception";T({actual:t,expected:r,operator:e.name,message:"Got unwanted ".concat(o).concat(i,"\n")+'Actual message: "'.concat(t&&t.message,'"'),stackStartFn:e})}throw t}}function D(e,t,r,i,o){if(!m(t))throw new c("regexp","RegExp",t);var s="match"===o;if("string"!=typeof e||S(t,e)!==s){if(r instanceof Error)throw r;var a=!r;r=r||("string"!=typeof e?'The "string" argument must be of type string. Received type '+"".concat(n(e)," (").concat(g(e),")"):(s?"The input did not match the regular expression ":"The input was expected to not match the regular expression ")+"".concat(g(t),". Input:\n\n").concat(g(e),"\n"));var l=new d({actual:e,expected:t,message:r,operator:o,stackStartFn:i});throw l.generatedMessage=a,l}}function L(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];j.apply(void 0,[L,t.length].concat(t))}O.throws=function e(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];F.apply(void 0,[e,C(t)].concat(n))},O.rejects=function e(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return M(t).then((function(t){return F.apply(void 0,[e,t].concat(n))}))},O.doesNotThrow=function e(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];B.apply(void 0,[e,C(t)].concat(n))},O.doesNotReject=function e(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return M(t).then((function(t){return B.apply(void 0,[e,t].concat(n))}))},O.ifError=function e(t){if(null!=t){var r="ifError got unwanted exception: ";"object"===n(t)&&"string"==typeof t.message?0===t.message.length&&t.constructor?r+=t.constructor.name:r+=t.message:r+=g(t);var i=new d({actual:t,expected:null,operator:"ifError",message:r,stackStartFn:e}),o=t.stack;if("string"==typeof o){var s=o.split("\n");s.shift();for(var a=i.stack.split("\n"),l=0;l<s.length;l++){var u=a.indexOf(s[l]);if(-1!==u){a=a.slice(0,u);break}}i.stack="".concat(a.join("\n"),"\n").concat(s.join("\n"))}throw i}},O.match=function e(t,r,n){D(t,r,n,e,"match")},O.doesNotMatch=function e(t,r,n){D(t,r,n,e,"doesNotMatch")},O.strict=b(L,O,{equal:O.strictEqual,deepEqual:O.deepStrictEqual,notEqual:O.notStrictEqual,notDeepEqual:O.notDeepStrictEqual}),O.strict.strict=O.strict},9801:(e,t,r)=>{"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function o(e,t,r){return(t=a(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,a(n.key),n)}}function a(e){var t=function(e,t){if("object"!==g(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==g(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===g(t)?t:String(t)}function l(e,t){if(t&&("object"===g(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return u(e)}function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c(e){var t="function"==typeof Map?new Map:void 0;return(c=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return p(e,arguments,d(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),h(n,e)})(e)}function p(e,t,r){return(p=f()?Reflect.construct.bind():function(e,t,r){var n=[null];n.push.apply(n,t);var i=new(Function.bind.apply(e,n));return r&&h(i,r.prototype),i}).apply(null,arguments)}function f(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function h(e,t){return(h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function g(e){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var y=r(9208).inspect,v=r(1342).codes.ERR_INVALID_ARG_TYPE;function m(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}var b="",w="",S="",_="",E={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function O(e){var t=Object.keys(e),r=Object.create(Object.getPrototypeOf(e));return t.forEach((function(t){r[t]=e[t]})),Object.defineProperty(r,"message",{value:e.message}),r}function R(e){return y(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function T(e,t,r){var n="",i="",o=0,s="",a=!1,l=R(e),u=l.split("\n"),c=R(t).split("\n"),p=0,f="";if("strictEqual"===r&&"object"===g(e)&&"object"===g(t)&&null!==e&&null!==t&&(r="strictEqualObject"),1===u.length&&1===c.length&&u[0]!==c[0]){var h=u[0].length+c[0].length;if(h<=10){if(!("object"===g(e)&&null!==e||"object"===g(t)&&null!==t||0===e&&0===t))return"".concat(E[r],"\n\n")+"".concat(u[0]," !== ").concat(c[0],"\n")}else if("strictEqualObject"!==r){if(h<(process.stderr&&process.stderr.isTTY?process.stderr.columns:80)){for(;u[0][p]===c[0][p];)p++;p>2&&(f="\n ".concat(function(e,t){if(t=Math.floor(t),0==e.length||0==t)return"";var r=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+=e.substring(0,r-e.length)}(" ",p),"^"),p=0)}}}for(var d=u[u.length-1],y=c[c.length-1];d===y&&(p++<2?s="\n ".concat(d).concat(s):n=d,u.pop(),c.pop(),0!==u.length&&0!==c.length);)d=u[u.length-1],y=c[c.length-1];var v=Math.max(u.length,c.length);if(0===v){var O=l.split("\n");if(O.length>30)for(O[26]="".concat(b,"...").concat(_);O.length>27;)O.pop();return"".concat(E.notIdentical,"\n\n").concat(O.join("\n"),"\n")}p>3&&(s="\n".concat(b,"...").concat(_).concat(s),a=!0),""!==n&&(s="\n ".concat(n).concat(s),n="");var T=0,j=E[r]+"\n".concat(w,"+ actual").concat(_," ").concat(S,"- expected").concat(_),P=" ".concat(b,"...").concat(_," Lines skipped");for(p=0;p<v;p++){var x=p-o;if(u.length<p+1)x>1&&p>2&&(x>4?(i+="\n".concat(b,"...").concat(_),a=!0):x>3&&(i+="\n ".concat(c[p-2]),T++),i+="\n ".concat(c[p-1]),T++),o=p,n+="\n".concat(S,"-").concat(_," ").concat(c[p]),T++;else if(c.length<p+1)x>1&&p>2&&(x>4?(i+="\n".concat(b,"...").concat(_),a=!0):x>3&&(i+="\n ".concat(u[p-2]),T++),i+="\n ".concat(u[p-1]),T++),o=p,i+="\n".concat(w,"+").concat(_," ").concat(u[p]),T++;else{var A=c[p],I=u[p],C=I!==A&&(!m(I,",")||I.slice(0,-1)!==A);C&&m(A,",")&&A.slice(0,-1)===I&&(C=!1,I+=","),C?(x>1&&p>2&&(x>4?(i+="\n".concat(b,"...").concat(_),a=!0):x>3&&(i+="\n ".concat(u[p-2]),T++),i+="\n ".concat(u[p-1]),T++),o=p,i+="\n".concat(w,"+").concat(_," ").concat(I),n+="\n".concat(S,"-").concat(_," ").concat(A),T+=2):(i+=n,n="",1!==x&&0!==p||(i+="\n ".concat(I),T++))}if(T>20&&p<v-2)return"".concat(j).concat(P,"\n").concat(i,"\n").concat(b,"...").concat(_).concat(n,"\n")+"".concat(b,"...").concat(_)}return"".concat(j).concat(a?P:"","\n").concat(i).concat(n).concat(s).concat(f)}var j=function(e,t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(m,e);var r,n,o,a,c,p=(r=m,n=f(),function(){var e,t=d(r);if(n){var i=d(this).constructor;e=Reflect.construct(t,arguments,i)}else e=t.apply(this,arguments);return l(this,e)});function m(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,m),"object"!==g(e)||null===e)throw new v("options","Object",e);var r=e.message,n=e.operator,i=e.stackStartFn,o=e.actual,s=e.expected,a=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=r)t=p.call(this,String(r));else if(process.stderr&&process.stderr.isTTY&&(process.stderr&&process.stderr.getColorDepth&&1!==process.stderr.getColorDepth()?(b="",w="",_="",S=""):(b="",w="",_="",S="")),"object"===g(o)&&null!==o&&"object"===g(s)&&null!==s&&"stack"in o&&o instanceof Error&&"stack"in s&&s instanceof Error&&(o=O(o),s=O(s)),"deepStrictEqual"===n||"strictEqual"===n)t=p.call(this,T(o,s,n));else if("notDeepStrictEqual"===n||"notStrictEqual"===n){var c=E[n],f=R(o).split("\n");if("notStrictEqual"===n&&"object"===g(o)&&null!==o&&(c=E.notStrictEqualObject),f.length>30)for(f[26]="".concat(b,"...").concat(_);f.length>27;)f.pop();t=1===f.length?p.call(this,"".concat(c," ").concat(f[0])):p.call(this,"".concat(c,"\n\n").concat(f.join("\n"),"\n"))}else{var h=R(o),d="",y=E[n];"notDeepEqual"===n||"notEqual"===n?(h="".concat(E[n],"\n\n").concat(h)).length>1024&&(h="".concat(h.slice(0,1021),"...")):(d="".concat(R(s)),h.length>512&&(h="".concat(h.slice(0,509),"...")),d.length>512&&(d="".concat(d.slice(0,509),"...")),"deepEqual"===n||"equal"===n?h="".concat(y,"\n\n").concat(h,"\n\nshould equal\n\n"):d=" ".concat(n," ").concat(d)),t=p.call(this,"".concat(h).concat(d))}return Error.stackTraceLimit=a,t.generatedMessage=!r,Object.defineProperty(u(t),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),t.code="ERR_ASSERTION",t.actual=o,t.expected=s,t.operator=n,Error.captureStackTrace&&Error.captureStackTrace(u(t),i),t.stack,t.name="AssertionError",l(t)}return o=m,(a=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:t,value:function(e,t){return y(this,i(i({},t),{},{customInspect:!1,depth:0}))}}])&&s(o.prototype,a),c&&s(o,c),Object.defineProperty(o,"prototype",{writable:!1}),m}(c(Error),y.custom);e.exports=j},1342:(e,t,r)=>{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,(o=i.key,s=void 0,s=function(e,t){if("object"!==n(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!==n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===n(s)?s:String(s)),i)}var o,s}function o(e,t){return(o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=l(e);if(t){var i=l(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return a(this,r)}}function a(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u,c,p={};function f(e,t,r){r||(r=Error);var n=function(r){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&o(e,t)}(c,r);var n,a,l,u=s(c);function c(r,n,i){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(o=u.call(this,function(e,r,n){return"string"==typeof t?t:t(e,r,n)}(r,n,i))).code=e,o}return n=c,a&&i(n.prototype,a),l&&i(n,l),Object.defineProperty(n,"prototype",{writable:!1}),n}(r);p[e]=n}function h(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map((function(e){return String(e)})),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}f("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),f("ERR_INVALID_ARG_TYPE",(function(e,t,i){var o,s,a,l;if(void 0===u&&(u=r(6093)),u("string"==typeof e,"'name' must be a string"),"string"==typeof t&&(s="not ",t.substr(!a||a<0?0:+a,s.length)===s)?(o="must not be",t=t.replace(/^not /,"")):o="must be",function(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}(e," argument"))l="The ".concat(e," ").concat(o," ").concat(h(t,"type"));else{var c=function(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}(e,".")?"property":"argument";l='The "'.concat(e,'" ').concat(c," ").concat(o," ").concat(h(t,"type"))}return l+=". Received type ".concat(n(i))}),TypeError),f("ERR_INVALID_ARG_VALUE",(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===c&&(c=r(9208));var i=c.inspect(t);return i.length>128&&(i="".concat(i.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(n,". Received ").concat(i)}),TypeError,RangeError),f("ERR_INVALID_RETURN_VALUE",(function(e,t,r){var i;return i=r&&r.constructor&&r.constructor.name?"instance of ".concat(r.constructor.name):"type ".concat(n(r)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(i,".")}),TypeError),f("ERR_MISSING_ARGS",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];void 0===u&&(u=r(6093)),u(t.length>0,"At least one arg needs to be specified");var i="The ",o=t.length;switch(t=t.map((function(e){return'"'.concat(e,'"')})),o){case 1:i+="".concat(t[0]," argument");break;case 2:i+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:i+=t.slice(0,o-1).join(", "),i+=", and ".concat(t[o-1]," arguments")}return"".concat(i," must be specified")}),TypeError),e.exports.codes=p},5656:(e,t,r)=>{"use strict";function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,s,a=[],l=!0,u=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(a.push(n.value),a.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(u)throw i}}return a}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var s=void 0!==/a/g.flags,a=function(e){var t=[];return e.forEach((function(e){return t.push(e)})),t},l=function(e){var t=[];return e.forEach((function(e,r){return t.push([r,e])})),t},u=Object.is?Object.is:r(5968),c=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},p=Number.isNaN?Number.isNaN:r(7838);function f(e){return e.call.bind(e)}var h=f(Object.prototype.hasOwnProperty),d=f(Object.prototype.propertyIsEnumerable),g=f(Object.prototype.toString),y=r(9208).types,v=y.isAnyArrayBuffer,m=y.isArrayBufferView,b=y.isDate,w=y.isMap,S=y.isRegExp,_=y.isSet,E=y.isNativeError,O=y.isBoxedPrimitive,R=y.isNumberObject,T=y.isStringObject,j=y.isBooleanObject,P=y.isBigIntObject,x=y.isSymbolObject,A=y.isFloat32Array,I=y.isFloat64Array;function C(e){if(0===e.length||e.length>10)return!0;for(var t=0;t<e.length;t++){var r=e.charCodeAt(t);if(r<48||r>57)return!0}return 10===e.length&&e>=Math.pow(2,32)}function k(e){return Object.keys(e).filter(C).concat(c(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function M(e,t){if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0}function F(e,t,r,n){if(e===t)return 0!==e||(!r||u(e,t));if(r){if("object"!==o(e))return"number"==typeof e&&p(e)&&p(t);if("object"!==o(t)||null===e||null===t)return!1;if(Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1}else{if(null===e||"object"!==o(e))return(null===t||"object"!==o(t))&&e==t;if(null===t||"object"!==o(t))return!1}var i,a,l,c,f=g(e);if(f!==g(t))return!1;if(Array.isArray(e)){if(e.length!==t.length)return!1;var h=k(e),d=k(t);return h.length===d.length&&D(e,t,r,n,1,h)}if("[object Object]"===f&&(!w(e)&&w(t)||!_(e)&&_(t)))return!1;if(b(e)){if(!b(t)||Date.prototype.getTime.call(e)!==Date.prototype.getTime.call(t))return!1}else if(S(e)){if(!S(t)||(l=e,c=t,!(s?l.source===c.source&&l.flags===c.flags:RegExp.prototype.toString.call(l)===RegExp.prototype.toString.call(c))))return!1}else if(E(e)||e instanceof Error){if(e.message!==t.message||e.name!==t.name)return!1}else{if(m(e)){if(r||!A(e)&&!I(e)){if(!function(e,t){return e.byteLength===t.byteLength&&0===M(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}(e,t))return!1}else if(!function(e,t){if(e.byteLength!==t.byteLength)return!1;for(var r=0;r<e.byteLength;r++)if(e[r]!==t[r])return!1;return!0}(e,t))return!1;var y=k(e),C=k(t);return y.length===C.length&&D(e,t,r,n,0,y)}if(_(e))return!(!_(t)||e.size!==t.size)&&D(e,t,r,n,2);if(w(e))return!(!w(t)||e.size!==t.size)&&D(e,t,r,n,3);if(v(e)){if(a=t,(i=e).byteLength!==a.byteLength||0!==M(new Uint8Array(i),new Uint8Array(a)))return!1}else if(O(e)&&!function(e,t){return R(e)?R(t)&&u(Number.prototype.valueOf.call(e),Number.prototype.valueOf.call(t)):T(e)?T(t)&&String.prototype.valueOf.call(e)===String.prototype.valueOf.call(t):j(e)?j(t)&&Boolean.prototype.valueOf.call(e)===Boolean.prototype.valueOf.call(t):P(e)?P(t)&&BigInt.prototype.valueOf.call(e)===BigInt.prototype.valueOf.call(t):x(t)&&Symbol.prototype.valueOf.call(e)===Symbol.prototype.valueOf.call(t)}(e,t))return!1}return D(e,t,r,n,0)}function B(e,t){return t.filter((function(t){return d(e,t)}))}function D(e,t,r,n,i,o){if(5===arguments.length){o=Object.keys(e);var s=Object.keys(t);if(o.length!==s.length)return!1}for(var a=0;a<o.length;a++)if(!h(t,o[a]))return!1;if(r&&5===arguments.length){var l=c(e);if(0!==l.length){var u=0;for(a=0;a<l.length;a++){var p=l[a];if(d(e,p)){if(!d(t,p))return!1;o.push(p),u++}else if(d(t,p))return!1}var f=c(t);if(l.length!==f.length&&B(t,f).length!==u)return!1}else{var g=c(t);if(0!==g.length&&0!==B(t,g).length)return!1}}if(0===o.length&&(0===i||1===i&&0===e.length||0===e.size))return!0;if(void 0===n)n={val1:new Map,val2:new Map,position:0};else{var y=n.val1.get(e);if(void 0!==y){var v=n.val2.get(t);if(void 0!==v)return y===v}n.position++}n.val1.set(e,n.position),n.val2.set(t,n.position);var m=V(e,t,r,o,n,i);return n.val1.delete(e),n.val2.delete(t),m}function L(e,t,r,n){for(var i=a(e),o=0;o<i.length;o++){var s=i[o];if(F(t,s,r,n))return e.delete(s),!0}return!1}function N(e){switch(o(e)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":e=+e;case"number":if(p(e))return!1}return!0}function z(e,t,r){var n=N(r);return null!=n?n:t.has(n)&&!e.has(n)}function U(e,t,r,n,i){var o=N(r);if(null!=o)return o;var s=t.get(o);return!(void 0===s&&!t.has(o)||!F(n,s,!1,i))&&(!e.has(o)&&F(n,s,!1,i))}function G(e,t,r,n,i,o){for(var s=a(e),l=0;l<s.length;l++){var u=s[l];if(F(r,u,i,o)&&F(n,t.get(u),i,o))return e.delete(u),!0}return!1}function V(e,t,r,i,s,u){var c=0;if(2===u){if(!function(e,t,r,n){for(var i=null,s=a(e),l=0;l<s.length;l++){var u=s[l];if("object"===o(u)&&null!==u)null===i&&(i=new Set),i.add(u);else if(!t.has(u)){if(r)return!1;if(!z(e,t,u))return!1;null===i&&(i=new Set),i.add(u)}}if(null!==i){for(var c=a(t),p=0;p<c.length;p++){var f=c[p];if("object"===o(f)&&null!==f){if(!L(i,f,r,n))return!1}else if(!r&&!e.has(f)&&!L(i,f,r,n))return!1}return 0===i.size}return!0}(e,t,r,s))return!1}else if(3===u){if(!function(e,t,r,i){for(var s=null,a=l(e),u=0;u<a.length;u++){var c=n(a[u],2),p=c[0],f=c[1];if("object"===o(p)&&null!==p)null===s&&(s=new Set),s.add(p);else{var h=t.get(p);if(void 0===h&&!t.has(p)||!F(f,h,r,i)){if(r)return!1;if(!U(e,t,p,f,i))return!1;null===s&&(s=new Set),s.add(p)}}}if(null!==s){for(var d=l(t),g=0;g<d.length;g++){var y=n(d[g],2),v=y[0],m=y[1];if("object"===o(v)&&null!==v){if(!G(s,e,v,m,r,i))return!1}else if(!(r||e.has(v)&&F(e.get(v),m,!1,i)||G(s,e,v,m,!1,i)))return!1}return 0===s.size}return!0}(e,t,r,s))return!1}else if(1===u)for(;c<e.length;c++){if(!h(e,c)){if(h(t,c))return!1;for(var p=Object.keys(e);c<p.length;c++){var f=p[c];if(!h(t,f)||!F(e[f],t[f],r,s))return!1}return p.length===Object.keys(t).length}if(!h(t,c)||!F(e[c],t[c],r,s))return!1}for(c=0;c<i.length;c++){var d=i[c];if(!F(e[d],t[d],r,s))return!1}return!0}e.exports={isDeepEqual:function(e,t){return F(e,t,!1)},isDeepStrictEqual:function(e,t){return F(e,t,!0)}}},2530:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((0,o.isAsync)(e))return function(...t){const r=t.pop();return a(e.apply(this,t),r)};return(0,n.default)((function(t,r){var n;try{n=e.apply(this,t)}catch(e){return r(e)}if(n&&"function"==typeof n.then)return a(n,r);r(null,n)}))};var n=s(r(6172)),i=s(r(6857)),o=r(1214);function s(e){return e&&e.__esModule?e:{default:e}}function a(e,t){return e.then(e=>{l(t,null,e)},e=>{l(t,e&&(e instanceof Error||e.message)?e:new Error(e))})}function l(e,t,r){try{e(t,r)}catch(e){(0,i.default)(e=>{throw e},e)}}e.exports=t.default},108:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=c(r(7804)),i=c(r(1371)),o=c(r(7485)),s=c(r(6297)),a=c(r(6083)),l=c(r(1214)),u=c(r(6280));function c(e){return e&&e.__esModule?e:{default:e}}function p(e,t,r){r=(0,s.default)(r);var n=0,o=0,{length:l}=e,u=!1;function c(e,t){!1===e&&(u=!0),!0!==u&&(e?r(e):++o!==l&&t!==i.default||r(null))}for(0===l&&r(null);n<l;n++)t(e[n],n,(0,a.default)(c))}function f(e,t,r){return(0,o.default)(e,1/0,t,r)}t.default=(0,u.default)((function(e,t,r){return((0,n.default)(e)?p:f)(e,(0,l.default)(t),r)}),3),e.exports=t.default},7485:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=s(r(6513)),i=s(r(1214)),o=s(r(6280));function s(e){return e&&e.__esModule?e:{default:e}}t.default=(0,o.default)((function(e,t,r,o){return(0,n.default)(t)(e,(0,i.default)(r),o)}),4),e.exports=t.default},5313:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(r(7485)),i=o(r(6280));function o(e){return e&&e.__esModule?e:{default:e}}t.default=(0,i.default)((function(e,t,r){return(0,n.default)(e,1,t,r)}),3),e.exports=t.default},5236:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a(r(108)),i=a(r(4344)),o=a(r(1214)),s=a(r(6280));function a(e){return e&&e.__esModule?e:{default:e}}t.default=(0,s.default)((function(e,t,r){return(0,n.default)(e,(0,i.default)((0,o.default)(t)),r)}),3),e.exports=t.default},6959:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r,n){let i=!1,s=!1,a=!1,l=0,u=0;function c(){l>=t||a||i||(a=!0,e.next().then(({value:e,done:t})=>{if(!s&&!i){if(a=!1,t)return i=!0,void(l<=0&&n(null));l++,r(e,u,p),u++,c()}}).catch(f))}function p(e,t){if(l-=1,!s)return e?f(e):!1===e?(i=!0,void(s=!0)):t===o.default||i&&l<=0?(i=!0,n(null)):void c()}function f(e){s||(a=!1,i=!0,n(e))}c()};var n,i=r(1371),o=(n=i)&&n.__esModule?n:{default:n};e.exports=t.default},6280:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){t||(t=e.length);if(!t)throw new Error("arity is undefined");return function(...r){return"function"==typeof r[t-1]?e.apply(this,r):new Promise((n,i)=>{r[t-1]=(e,...t)=>{if(e)return i(e);n(t.length>1?t:t[0])},e.apply(this,r)})}},e.exports=t.default},1371:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={},e.exports=t.default},6513:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=u(r(6297)),i=u(r(1586)),o=u(r(6083)),s=r(1214),a=u(r(6959)),l=u(r(1371));function u(e){return e&&e.__esModule?e:{default:e}}t.default=e=>(t,r,u)=>{if(u=(0,n.default)(u),e<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!t)return u(null);if((0,s.isAsyncGenerator)(t))return(0,a.default)(t,e,r,u);if((0,s.isAsyncIterable)(t))return(0,a.default)(t[Symbol.asyncIterator](),e,r,u);var c=(0,i.default)(t),p=!1,f=!1,h=0,d=!1;function g(e,t){if(!f)if(h-=1,e)p=!0,u(e);else if(!1===e)p=!0,f=!0;else{if(t===l.default||p&&h<=0)return p=!0,u(null);d||y()}}function y(){for(d=!0;h<e&&!p;){var t=c();if(null===t)return p=!0,void(h<=0&&u(null));h+=1,r(t.value,t.key,(0,o.default)(g))}d=!1}y()},e.exports=t.default},3172:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e[Symbol.iterator]&&e[Symbol.iterator]()},e.exports=t.default},6172:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(...t){var r=t.pop();return e.call(this,t,r)}},e.exports=t.default},7804:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e&&"number"==typeof e.length&&e.length>=0&&e.length%1==0},e.exports=t.default},1586:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((0,n.default)(e))return function(e){var t=-1,r=e.length;return function(){return++t<r?{value:e[t],key:t}:null}}(e);var t=(0,i.default)(e);return t?function(e){var t=-1;return function(){var r=e.next();return r.done?null:(t++,{value:r.value,key:t})}}(t):(r=e,o=r?Object.keys(r):[],s=-1,a=o.length,function e(){var t=o[++s];return"__proto__"===t?e():s<a?{value:r[t],key:t}:null});var r,o,s,a};var n=o(r(7804)),i=o(r(3172));function o(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},6297:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){function t(...t){if(null!==e){var r=e;e=null,r.apply(this,t)}}return Object.assign(t,e),t},e.exports=t.default},6083:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(...t){if(null===e)throw new Error("Callback was already called.");var r=e;e=null,r.apply(this,t)}},e.exports=t.default},7075:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=s(r(7804)),i=s(r(1214)),o=s(r(6280));function s(e){return e&&e.__esModule?e:{default:e}}t.default=(0,o.default)((e,t,r)=>{var o=(0,n.default)(t)?[]:{};e(t,(e,t,r)=>{(0,i.default)(e)((e,...n)=>{n.length<2&&([n]=n),o[t]=n,r(e)})},e=>r(e,o))},3),e.exports=t.default},6857:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fallback=s,t.wrap=a;var r,n=t.hasQueueMicrotask="function"==typeof queueMicrotask&&queueMicrotask,i=t.hasSetImmediate="function"==typeof setImmediate&&setImmediate,o=t.hasNextTick="object"==typeof process&&"function"==typeof process.nextTick;function s(e){setTimeout(e,0)}function a(e){return(t,...r)=>e(()=>t(...r))}r=n?queueMicrotask:i?setImmediate:o?process.nextTick:s,t.default=a(r)},4344:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(t,r,n)=>e(t,n)},e.exports=t.default},1214:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isAsyncIterable=t.isAsyncGenerator=t.isAsync=void 0;var n,i=r(2530),o=(n=i)&&n.__esModule?n:{default:n};function s(e){return"AsyncFunction"===e[Symbol.toStringTag]}t.default=function(e){if("function"!=typeof e)throw new Error("expected a function");return s(e)?(0,o.default)(e):e},t.isAsync=s,t.isAsyncGenerator=function(e){return"AsyncGenerator"===e[Symbol.toStringTag]},t.isAsyncIterable=function(e){return"function"==typeof e[Symbol.asyncIterator]}},481:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,n.default)(i.default,e,t)};var n=o(r(7075)),i=o(r(5313));function o(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},7991:(e,t)=>{"use strict";t.byteLength=function(e){var t=l(e),r=t[0],n=t[1];return 3*(r+n)/4-n},t.toByteArray=function(e){var t,r,o=l(e),s=o[0],a=o[1],u=new i(function(e,t,r){return 3*(t+r)/4-r}(0,s,a)),c=0,p=a>0?s-4:s;for(r=0;r<p;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],u[c++]=t>>16&255,u[c++]=t>>8&255,u[c++]=255&t;2===a&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,u[c++]=255&t);1===a&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t);return u},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],s=0,a=n-i;s<a;s+=16383)o.push(u(e,s,s+16383>a?a:s+16383));1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return o.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,a=o.length;s<a;++s)r[s]=o[s],n[o.charCodeAt(s)]=s;function l(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function u(e,t,n){for(var i,o,s=[],a=t;a<n;a+=3)i=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),s.push(r[(o=i)>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return s.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},9811:(e,t,r)=>{"use strict";var n=r(6093),i=r(2495),o=r(6446),s=r(8142),a=r(7200);for(var l in a)t[l]=a[l];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 u(e){if("number"!=typeof e||e<t.DEFLATE||e>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=e,this.strategy=0,this.windowBits=0,this.write_in_progress=!1,this.pending_close=!1,this.gzip_id_bytes_read=0}u.prototype.close=function(){this.write_in_progress?this.pending_close=!0:(this.pending_close=!1,n(this.init_done,"close before init"),n(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||s.inflateEnd(this.strm),this.mode=t.NONE,this.dictionary=null)},u.prototype.write=function(e,t,r,n,i,o,s){return this._write(!0,e,t,r,n,i,o,s)},u.prototype.writeSync=function(e,t,r,n,i,o,s){return this._write(!1,e,t,r,n,i,o,s)},u.prototype._write=function(e,r,i,o,s,a,l,u){if(n.equal(arguments.length,8),n(this.init_done,"write before init"),n(this.mode!==t.NONE,"already finalized"),n.equal(!1,this.write_in_progress,"write already in progress"),n.equal(!1,this.pending_close,"close is pending"),this.write_in_progress=!0,n.equal(!1,void 0===r,"must provide flush value"),this.write_in_progress=!0,r!==t.Z_NO_FLUSH&&r!==t.Z_PARTIAL_FLUSH&&r!==t.Z_SYNC_FLUSH&&r!==t.Z_FULL_FLUSH&&r!==t.Z_FINISH&&r!==t.Z_BLOCK)throw new Error("Invalid flush value");if(null==i&&(i=Buffer.alloc(0),s=0,o=0),this.strm.avail_in=s,this.strm.input=i,this.strm.next_in=o,this.strm.avail_out=u,this.strm.output=a,this.strm.next_out=l,this.flush=r,!e)return this._process(),this._checkError()?this._afterSync():void 0;var c=this;return process.nextTick((function(){c._process(),c._after()})),this},u.prototype._afterSync=function(){var e=this.strm.avail_out,t=this.strm.avail_in;return this.write_in_progress=!1,[t,e]},u.prototype._process=function(){var e=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&&(e=this.strm.next_in),this.gzip_id_bytes_read){case 0:if(null===e)break;if(31!==this.strm.input[e]){this.mode=t.INFLATE;break}if(this.gzip_id_bytes_read=1,e++,1===this.strm.avail_in)break;case 1:if(null===e)break;139===this.strm.input[e]?(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=s.inflate(this.strm,this.flush),this.err===t.Z_NEED_DICT&&this.dictionary&&(this.err=s.inflateSetDictionary(this.strm,this.dictionary),this.err===t.Z_OK?this.err=s.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&&0!==this.strm.next_in[0];)this.reset(),this.err=s.inflate(this.strm,this.flush);break;default:throw new Error("Unknown mode "+this.mode)}},u.prototype._checkError=function(){switch(this.err){case t.Z_OK:case t.Z_BUF_ERROR:if(0!==this.strm.avail_out&&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 null==this.dictionary?this._error("Missing dictionary"):this._error("Bad dictionary"),!1;default:return this._error("Zlib error"),!1}return!0},u.prototype._after=function(){if(this._checkError()){var e=this.strm.avail_out,t=this.strm.avail_in;this.write_in_progress=!1,this.callback(t,e),this.pending_close&&this.close()}},u.prototype._error=function(e){this.strm.msg&&(e=this.strm.msg),this.onerror(e,this.err),this.write_in_progress=!1,this.pending_close&&this.close()},u.prototype.init=function(e,r,i,o,s){n(4===arguments.length||5===arguments.length,"init(windowBits, level, memLevel, strategy, [dictionary])"),n(e>=8&&e<=15,"invalid windowBits"),n(r>=-1&&r<=9,"invalid compression level"),n(i>=1&&i<=9,"invalid memlevel"),n(o===t.Z_FILTERED||o===t.Z_HUFFMAN_ONLY||o===t.Z_RLE||o===t.Z_FIXED||o===t.Z_DEFAULT_STRATEGY,"invalid strategy"),this._init(r,e,i,o,s),this._setDictionary()},u.prototype.params=function(){throw new Error("deflateParams Not supported")},u.prototype.reset=function(){this._reset(),this._setDictionary()},u.prototype._init=function(e,r,n,a,l){switch(this.level=e,this.windowBits=r,this.memLevel=n,this.strategy=a,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 i,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=s.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=l,this.write_in_progress=!1,this.init_done=!0},u.prototype._setDictionary=function(){if(null!=this.dictionary){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")}},u.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=s.inflateReset(this.strm)}this.err!==t.Z_OK&&this._error("Failed to reset stream")},t.Zlib=u},7946:(e,t,r)=>{"use strict";var n=r(1048).Buffer,i=r(1983).Transform,o=r(9811),s=r(9208),a=r(6093).ok,l=r(1048).kMaxLength,u="Cannot create final Buffer. It would be larger than 0x"+l.toString(16)+" bytes";o.Z_MIN_WINDOWBITS=8,o.Z_MAX_WINDOWBITS=15,o.Z_DEFAULT_WINDOWBITS=15,o.Z_MIN_CHUNK=64,o.Z_MAX_CHUNK=1/0,o.Z_DEFAULT_CHUNK=16384,o.Z_MIN_MEMLEVEL=1,o.Z_MAX_MEMLEVEL=9,o.Z_DEFAULT_MEMLEVEL=8,o.Z_MIN_LEVEL=-1,o.Z_MAX_LEVEL=9,o.Z_DEFAULT_LEVEL=o.Z_DEFAULT_COMPRESSION;for(var c=Object.keys(o),p=0;p<c.length;p++){var f=c[p];f.match(/^Z/)&&Object.defineProperty(t,f,{enumerable:!0,value:o[f],writable:!1})}for(var h={Z_OK:o.Z_OK,Z_STREAM_END:o.Z_STREAM_END,Z_NEED_DICT:o.Z_NEED_DICT,Z_ERRNO:o.Z_ERRNO,Z_STREAM_ERROR:o.Z_STREAM_ERROR,Z_DATA_ERROR:o.Z_DATA_ERROR,Z_MEM_ERROR:o.Z_MEM_ERROR,Z_BUF_ERROR:o.Z_BUF_ERROR,Z_VERSION_ERROR:o.Z_VERSION_ERROR},d=Object.keys(h),g=0;g<d.length;g++){var y=d[g];h[h[y]]=y}function v(e,t,r){var i=[],o=0;function s(){for(var t;null!==(t=e.read());)i.push(t),o+=t.length;e.once("readable",s)}function a(){var t,s=null;o>=l?s=new RangeError(u):t=n.concat(i,o),i=[],e.close(),r(s,t)}e.on("error",(function(t){e.removeListener("end",a),e.removeListener("readable",s),r(t)})),e.on("end",a),e.end(t),s()}function m(e,t){if("string"==typeof t&&(t=n.from(t)),!n.isBuffer(t))throw new TypeError("Not a string or buffer");var r=e._finishFlushFlag;return e._processChunk(t,r)}function b(e){if(!(this instanceof b))return new b(e);j.call(this,e,o.DEFLATE)}function w(e){if(!(this instanceof w))return new w(e);j.call(this,e,o.INFLATE)}function S(e){if(!(this instanceof S))return new S(e);j.call(this,e,o.GZIP)}function _(e){if(!(this instanceof _))return new _(e);j.call(this,e,o.GUNZIP)}function E(e){if(!(this instanceof E))return new E(e);j.call(this,e,o.DEFLATERAW)}function O(e){if(!(this instanceof O))return new O(e);j.call(this,e,o.INFLATERAW)}function R(e){if(!(this instanceof R))return new R(e);j.call(this,e,o.UNZIP)}function T(e){return e===o.Z_NO_FLUSH||e===o.Z_PARTIAL_FLUSH||e===o.Z_SYNC_FLUSH||e===o.Z_FULL_FLUSH||e===o.Z_FINISH||e===o.Z_BLOCK}function j(e,r){var s=this;if(this._opts=e=e||{},this._chunkSize=e.chunkSize||t.Z_DEFAULT_CHUNK,i.call(this,e),e.flush&&!T(e.flush))throw new Error("Invalid flush flag: "+e.flush);if(e.finishFlush&&!T(e.finishFlush))throw new Error("Invalid flush flag: "+e.finishFlush);if(this._flushFlag=e.flush||o.Z_NO_FLUSH,this._finishFlushFlag=void 0!==e.finishFlush?e.finishFlush:o.Z_FINISH,e.chunkSize&&(e.chunkSize<t.Z_MIN_CHUNK||e.chunkSize>t.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+e.chunkSize);if(e.windowBits&&(e.windowBits<t.Z_MIN_WINDOWBITS||e.windowBits>t.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+e.windowBits);if(e.level&&(e.level<t.Z_MIN_LEVEL||e.level>t.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+e.level);if(e.memLevel&&(e.memLevel<t.Z_MIN_MEMLEVEL||e.memLevel>t.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+e.memLevel);if(e.strategy&&e.strategy!=t.Z_FILTERED&&e.strategy!=t.Z_HUFFMAN_ONLY&&e.strategy!=t.Z_RLE&&e.strategy!=t.Z_FIXED&&e.strategy!=t.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+e.strategy);if(e.dictionary&&!n.isBuffer(e.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._handle=new o.Zlib(r);var a=this;this._hadError=!1,this._handle.onerror=function(e,r){P(a),a._hadError=!0;var n=new Error(e);n.errno=r,n.code=t.codes[r],a.emit("error",n)};var l=t.Z_DEFAULT_COMPRESSION;"number"==typeof e.level&&(l=e.level);var u=t.Z_DEFAULT_STRATEGY;"number"==typeof e.strategy&&(u=e.strategy),this._handle.init(e.windowBits||t.Z_DEFAULT_WINDOWBITS,l,e.memLevel||t.Z_DEFAULT_MEMLEVEL,u,e.dictionary),this._buffer=n.allocUnsafe(this._chunkSize),this._offset=0,this._level=l,this._strategy=u,this.once("end",this.close),Object.defineProperty(this,"_closed",{get:function(){return!s._handle},configurable:!0,enumerable:!0})}function P(e,t){t&&process.nextTick(t),e._handle&&(e._handle.close(),e._handle=null)}function x(e){e.emit("close")}Object.defineProperty(t,"codes",{enumerable:!0,value:Object.freeze(h),writable:!1}),t.Deflate=b,t.Inflate=w,t.Gzip=S,t.Gunzip=_,t.DeflateRaw=E,t.InflateRaw=O,t.Unzip=R,t.createDeflate=function(e){return new b(e)},t.createInflate=function(e){return new w(e)},t.createDeflateRaw=function(e){return new E(e)},t.createInflateRaw=function(e){return new O(e)},t.createGzip=function(e){return new S(e)},t.createGunzip=function(e){return new _(e)},t.createUnzip=function(e){return new R(e)},t.deflate=function(e,t,r){return"function"==typeof t&&(r=t,t={}),v(new b(t),e,r)},t.deflateSync=function(e,t){return m(new b(t),e)},t.gzip=function(e,t,r){return"function"==typeof t&&(r=t,t={}),v(new S(t),e,r)},t.gzipSync=function(e,t){return m(new S(t),e)},t.deflateRaw=function(e,t,r){return"function"==typeof t&&(r=t,t={}),v(new E(t),e,r)},t.deflateRawSync=function(e,t){return m(new E(t),e)},t.unzip=function(e,t,r){return"function"==typeof t&&(r=t,t={}),v(new R(t),e,r)},t.unzipSync=function(e,t){return m(new R(t),e)},t.inflate=function(e,t,r){return"function"==typeof t&&(r=t,t={}),v(new w(t),e,r)},t.inflateSync=function(e,t){return m(new w(t),e)},t.gunzip=function(e,t,r){return"function"==typeof t&&(r=t,t={}),v(new _(t),e,r)},t.gunzipSync=function(e,t){return m(new _(t),e)},t.inflateRaw=function(e,t,r){return"function"==typeof t&&(r=t,t={}),v(new O(t),e,r)},t.inflateRawSync=function(e,t){return m(new O(t),e)},s.inherits(j,i),j.prototype.params=function(e,r,n){if(e<t.Z_MIN_LEVEL||e>t.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+e);if(r!=t.Z_FILTERED&&r!=t.Z_HUFFMAN_ONLY&&r!=t.Z_RLE&&r!=t.Z_FIXED&&r!=t.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+r);if(this._level!==e||this._strategy!==r){var i=this;this.flush(o.Z_SYNC_FLUSH,(function(){a(i._handle,"zlib binding closed"),i._handle.params(e,r),i._hadError||(i._level=e,i._strategy=r,n&&n())}))}else process.nextTick(n)},j.prototype.reset=function(){return a(this._handle,"zlib binding closed"),this._handle.reset()},j.prototype._flush=function(e){this._transform(n.alloc(0),"",e)},j.prototype.flush=function(e,t){var r=this,i=this._writableState;("function"==typeof e||void 0===e&&!t)&&(t=e,e=o.Z_FULL_FLUSH),i.ended?t&&process.nextTick(t):i.ending?t&&this.once("end",t):i.needDrain?t&&this.once("drain",(function(){return r.flush(e,t)})):(this._flushFlag=e,this.write(n.alloc(0),"",t))},j.prototype.close=function(e){P(this,e),process.nextTick(x,this)},j.prototype._transform=function(e,t,r){var i,s=this._writableState,a=(s.ending||s.ended)&&(!e||s.length===e.length);return null===e||n.isBuffer(e)?this._handle?(a?i=this._finishFlushFlag:(i=this._flushFlag,e.length>=s.length&&(this._flushFlag=this._opts.flush||o.Z_NO_FLUSH)),void this._processChunk(e,i,r)):r(new Error("zlib binding closed")):r(new Error("invalid input"))},j.prototype._processChunk=function(e,t,r){var i=e&&e.length,o=this._chunkSize-this._offset,s=0,c=this,p="function"==typeof r;if(!p){var f,h=[],d=0;this.on("error",(function(e){f=e})),a(this._handle,"zlib binding closed");do{var g=this._handle.writeSync(t,e,s,i,this._buffer,this._offset,o)}while(!this._hadError&&m(g[0],g[1]));if(this._hadError)throw f;if(d>=l)throw P(this),new RangeError(u);var y=n.concat(h,d);return P(this),y}a(this._handle,"zlib binding closed");var v=this._handle.write(t,e,s,i,this._buffer,this._offset,o);function m(l,u){if(this&&(this.buffer=null,this.callback=null),!c._hadError){var f=o-u;if(a(f>=0,"have should not go down"),f>0){var g=c._buffer.slice(c._offset,c._offset+f);c._offset+=f,p?c.push(g):(h.push(g),d+=g.length)}if((0===u||c._offset>=c._chunkSize)&&(o=c._chunkSize,c._offset=0,c._buffer=n.allocUnsafe(c._chunkSize)),0===u){if(s+=i-l,i=l,!p)return!0;var y=c._handle.write(t,e,s,i,c._buffer,c._offset,c._chunkSize);return y.callback=m,void(y.buffer=e)}if(!p)return!1;r()}}v.buffer=e,v.callback=m},s.inherits(b,j),s.inherits(w,j),s.inherits(S,j),s.inherits(_,j),s.inherits(E,j),s.inherits(O,j),s.inherits(R,j)},1048:(e,t,r)=>{"use strict";const n=r(7991),i=r(9318),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=a,t.SlowBuffer=function(e){+e!=e&&(e=0);return a.alloc(+e)},t.INSPECT_MAX_BYTES=50;function s(e){if(e>2147483647)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,a.prototype),t}function a(e,t,r){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return c(e)}return l(e,t,r)}function l(e,t,r){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!a.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const r=0|d(e,t);let n=s(r);const i=n.write(e,t);i!==r&&(n=n.slice(0,i));return n}(e,t);if(ArrayBuffer.isView(e))return function(e){if($(e,Uint8Array)){const t=new Uint8Array(e);return f(t.buffer,t.byteOffset,t.byteLength)}return p(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if($(e,ArrayBuffer)||e&&$(e.buffer,ArrayBuffer))return f(e,t,r);if("undefined"!=typeof SharedArrayBuffer&&($(e,SharedArrayBuffer)||e&&$(e.buffer,SharedArrayBuffer)))return f(e,t,r);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return a.from(n,t,r);const i=function(e){if(a.isBuffer(e)){const t=0|h(e.length),r=s(t);return 0===r.length||e.copy(r,0,0,t),r}if(void 0!==e.length)return"number"!=typeof e.length||Z(e.length)?s(0):p(e);if("Buffer"===e.type&&Array.isArray(e.data))return p(e.data)}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return a.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return u(e),s(e<0?0:0|h(e))}function p(e){const t=e.length<0?0:0|h(e.length),r=s(t);for(let n=0;n<t;n+=1)r[n]=255&e[n];return r}function f(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');let n;return n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),Object.setPrototypeOf(n,a.prototype),n}function h(e){if(e>=2147483647)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+2147483647..toString(16)+" bytes");return 0|e}function d(e,t){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||$(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return W(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return q(e).length;default:if(i)return n?-1:W(e).length;t=(""+t).toLowerCase(),i=!0}}function g(e,t,r){let n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return P(this,t,r);case"utf8":case"utf-8":return R(this,t,r);case"ascii":return T(this,t,r);case"latin1":case"binary":return j(this,t,r);case"base64":return O(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function y(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function v(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),Z(r=+r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=a.from(t,n)),a.isBuffer(t))return 0===t.length?-1:m(e,t,r,n,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):m(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function m(e,t,r,n,i){let o,s=1,a=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;s=2,a/=2,l/=2,r/=2}function u(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){let n=-1;for(o=r;o<a;o++)if(u(e,o)===u(t,-1===n?0:o-n)){if(-1===n&&(n=o),o-n+1===l)return n*s}else-1!==n&&(o-=o-n),n=-1}else for(r+l>a&&(r=a-l),o=r;o>=0;o--){let r=!0;for(let n=0;n<l;n++)if(u(e,o+n)!==u(t,n)){r=!1;break}if(r)return o}return-1}function b(e,t,r,n){r=Number(r)||0;const i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;const o=t.length;let s;for(n>o/2&&(n=o/2),s=0;s<n;++s){const n=parseInt(t.substr(2*s,2),16);if(Z(n))return s;e[r+s]=n}return s}function w(e,t,r,n){return H(W(t,e.length-r),e,r,n)}function S(e,t,r,n){return H(function(e){const t=[];for(let r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function _(e,t,r,n){return H(q(t),e,r,n)}function E(e,t,r,n){return H(function(e,t){let r,n,i;const o=[];for(let s=0;s<e.length&&!((t-=2)<0);++s)r=e.charCodeAt(s),n=r>>8,i=r%256,o.push(i),o.push(n);return o}(t,e.length-r),e,r,n)}function O(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function R(e,t,r){r=Math.min(e.length,r);const n=[];let i=t;for(;i<r;){const t=e[i];let o=null,s=t>239?4:t>223?3:t>191?2:1;if(i+s<=r){let r,n,a,l;switch(s){case 1:t<128&&(o=t);break;case 2:r=e[i+1],128==(192&r)&&(l=(31&t)<<6|63&r,l>127&&(o=l));break;case 3:r=e[i+1],n=e[i+2],128==(192&r)&&128==(192&n)&&(l=(15&t)<<12|(63&r)<<6|63&n,l>2047&&(l<55296||l>57343)&&(o=l));break;case 4:r=e[i+1],n=e[i+2],a=e[i+3],128==(192&r)&&128==(192&n)&&128==(192&a)&&(l=(15&t)<<18|(63&r)<<12|(63&n)<<6|63&a,l>65535&&l<1114112&&(o=l))}}null===o?(o=65533,s=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|1023&o),n.push(o),i+=s}return function(e){const t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);let r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=4096));return r}(n)}t.kMaxLength=2147483647,a.TYPED_ARRAY_SUPPORT=function(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),a.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}}),a.poolSize=8192,a.from=function(e,t,r){return l(e,t,r)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array),a.alloc=function(e,t,r){return function(e,t,r){return u(e),e<=0?s(e):void 0!==t?"string"==typeof r?s(e).fill(t,r):s(e).fill(t):s(e)}(e,t,r)},a.allocUnsafe=function(e){return c(e)},a.allocUnsafeSlow=function(e){return c(e)},a.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==a.prototype},a.compare=function(e,t){if($(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),$(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(e)||!a.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let r=e.length,n=t.length;for(let i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0},a.isEncoding=function(e){switch(String(e).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}},a.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return a.alloc(0);let r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;const n=a.allocUnsafe(t);let i=0;for(r=0;r<e.length;++r){let t=e[r];if($(t,Uint8Array))i+t.length>n.length?(a.isBuffer(t)||(t=a.from(t)),t.copy(n,i)):Uint8Array.prototype.set.call(n,t,i);else{if(!a.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(n,i)}i+=t.length}return n},a.byteLength=d,a.prototype._isBuffer=!0,a.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)y(this,t,t+1);return this},a.prototype.swap32=function(){const e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)y(this,t,t+3),y(this,t+1,t+2);return this},a.prototype.swap64=function(){const e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)y(this,t,t+7),y(this,t+1,t+6),y(this,t+2,t+5),y(this,t+3,t+4);return this},a.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?R(this,0,e):g.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(e){if(!a.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===a.compare(this,e)},a.prototype.inspect=function(){let e="";const r=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},o&&(a.prototype[o]=a.prototype.inspect),a.prototype.compare=function(e,t,r,n,i){if($(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(this===e)return 0;let o=(i>>>=0)-(n>>>=0),s=(r>>>=0)-(t>>>=0);const l=Math.min(o,s),u=this.slice(n,i),c=e.slice(t,r);for(let e=0;e<l;++e)if(u[e]!==c[e]){o=u[e],s=c[e];break}return o<s?-1:s<o?1:0},a.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},a.prototype.indexOf=function(e,t,r){return v(this,e,t,r,!0)},a.prototype.lastIndexOf=function(e,t,r){return v(this,e,t,r,!1)},a.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}const i=this.length-t;if((void 0===r||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let o=!1;for(;;)switch(n){case"hex":return b(this,e,t,r);case"utf8":case"utf-8":return w(this,e,t,r);case"ascii":case"latin1":case"binary":return S(this,e,t,r);case"base64":return _(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function T(e,t,r){let n="";r=Math.min(e.length,r);for(let i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}function j(e,t,r){let n="";r=Math.min(e.length,r);for(let i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function P(e,t,r){const n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);let i="";for(let n=t;n<r;++n)i+=Y[e[n]];return i}function x(e,t,r){const n=e.slice(t,r);let i="";for(let e=0;e<n.length-1;e+=2)i+=String.fromCharCode(n[e]+256*n[e+1]);return i}function A(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function I(e,t,r,n,i,o){if(!a.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function C(e,t,r,n,i){z(t,n,i,e,r,7);let o=Number(t&BigInt(4294967295));e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=s,s>>=8,e[r++]=s,s>>=8,e[r++]=s,s>>=8,e[r++]=s,r}function k(e,t,r,n,i){z(t,n,i,e,r,7);let o=Number(t&BigInt(4294967295));e[r+7]=o,o>>=8,e[r+6]=o,o>>=8,e[r+5]=o,o>>=8,e[r+4]=o;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=s,s>>=8,e[r+2]=s,s>>=8,e[r+1]=s,s>>=8,e[r]=s,r+8}function M(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function F(e,t,r,n,o){return t=+t,r>>>=0,o||M(e,0,r,4),i.write(e,t,r,n,23,4),r+4}function B(e,t,r,n,o){return t=+t,r>>>=0,o||M(e,0,r,8),i.write(e,t,r,n,52,8),r+8}a.prototype.slice=function(e,t){const r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);const n=this.subarray(e,t);return Object.setPrototypeOf(n,a.prototype),n},a.prototype.readUintLE=a.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||A(e,t,this.length);let n=this[e],i=1,o=0;for(;++o<t&&(i*=256);)n+=this[e+o]*i;return n},a.prototype.readUintBE=a.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||A(e,t,this.length);let n=this[e+--t],i=1;for(;t>0&&(i*=256);)n+=this[e+--t]*i;return n},a.prototype.readUint8=a.prototype.readUInt8=function(e,t){return e>>>=0,t||A(e,1,this.length),this[e]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(e,t){return e>>>=0,t||A(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(e,t){return e>>>=0,t||A(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(e,t){return e>>>=0,t||A(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(e,t){return e>>>=0,t||A(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readBigUInt64LE=J((function(e){U(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||G(e,this.length-8);const n=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,i=this[++e]+256*this[++e]+65536*this[++e]+r*2**24;return BigInt(n)+(BigInt(i)<<BigInt(32))})),a.prototype.readBigUInt64BE=J((function(e){U(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||G(e,this.length-8);const n=t*2**24+65536*this[++e]+256*this[++e]+this[++e],i=this[++e]*2**24+65536*this[++e]+256*this[++e]+r;return(BigInt(n)<<BigInt(32))+BigInt(i)})),a.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||A(e,t,this.length);let n=this[e],i=1,o=0;for(;++o<t&&(i*=256);)n+=this[e+o]*i;return i*=128,n>=i&&(n-=Math.pow(2,8*t)),n},a.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||A(e,t,this.length);let n=t,i=1,o=this[e+--n];for(;n>0&&(i*=256);)o+=this[e+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},a.prototype.readInt8=function(e,t){return e>>>=0,t||A(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},a.prototype.readInt16LE=function(e,t){e>>>=0,t||A(e,2,this.length);const r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},a.prototype.readInt16BE=function(e,t){e>>>=0,t||A(e,2,this.length);const r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},a.prototype.readInt32LE=function(e,t){return e>>>=0,t||A(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},a.prototype.readInt32BE=function(e,t){return e>>>=0,t||A(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},a.prototype.readBigInt64LE=J((function(e){U(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||G(e,this.length-8);const n=this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24);return(BigInt(n)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)})),a.prototype.readBigInt64BE=J((function(e){U(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||G(e,this.length-8);const n=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(n)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+r)})),a.prototype.readFloatLE=function(e,t){return e>>>=0,t||A(e,4,this.length),i.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return e>>>=0,t||A(e,4,this.length),i.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return e>>>=0,t||A(e,8,this.length),i.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return e>>>=0,t||A(e,8,this.length),i.read(this,e,!1,52,8)},a.prototype.writeUintLE=a.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){I(this,e,t,r,Math.pow(2,8*r)-1,0)}let i=1,o=0;for(this[t]=255&e;++o<r&&(i*=256);)this[t+o]=e/i&255;return t+r},a.prototype.writeUintBE=a.prototype.writeUIntBE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){I(this,e,t,r,Math.pow(2,8*r)-1,0)}let i=r-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+r},a.prototype.writeUint8=a.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,1,255,0),this[t]=255&e,t+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeBigUInt64LE=J((function(e,t=0){return C(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),a.prototype.writeBigUInt64BE=J((function(e,t=0){return k(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),a.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*r-1);I(this,e,t,r,n-1,-n)}let i=0,o=1,s=0;for(this[t]=255&e;++i<r&&(o*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/o>>0)-s&255;return t+r},a.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*r-1);I(this,e,t,r,n-1,-n)}let i=r-1,o=1,s=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/o>>0)-s&255;return t+r},a.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},a.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},a.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeBigInt64LE=J((function(e,t=0){return C(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),a.prototype.writeBigInt64BE=J((function(e,t=0){return k(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),a.prototype.writeFloatLE=function(e,t,r){return F(this,e,t,!0,r)},a.prototype.writeFloatBE=function(e,t,r){return F(this,e,t,!1,r)},a.prototype.writeDoubleLE=function(e,t,r){return B(this,e,t,!0,r)},a.prototype.writeDoubleBE=function(e,t,r){return B(this,e,t,!1,r)},a.prototype.copy=function(e,t,r,n){if(!a.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);const i=n-r;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,r,n):Uint8Array.prototype.set.call(e,this.subarray(r,n),t),i},a.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!a.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===e.length){const t=e.charCodeAt(0);("utf8"===n&&t<128||"latin1"===n)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;let i;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{const o=a.isBuffer(e)?e:a.from(e,n),s=o.length;if(0===s)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<r-t;++i)this[i+t]=o[i%s]}return this};const D={};function L(e,t,r){D[e]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function N(e){let t="",r=e.length;const n="-"===e[0]?1:0;for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function z(e,t,r,n,i,o){if(e>r||e<t){const n="bigint"==typeof t?"n":"";let i;throw i=o>3?0===t||t===BigInt(0)?`>= 0${n} and < 2${n} ** ${8*(o+1)}${n}`:`>= -(2${n} ** ${8*(o+1)-1}${n}) and < 2 ** ${8*(o+1)-1}${n}`:`>= ${t}${n} and <= ${r}${n}`,new D.ERR_OUT_OF_RANGE("value",i,e)}!function(e,t,r){U(t,"offset"),void 0!==e[t]&&void 0!==e[t+r]||G(t,e.length-(r+1))}(n,i,o)}function U(e,t){if("number"!=typeof e)throw new D.ERR_INVALID_ARG_TYPE(t,"number",e)}function G(e,t,r){if(Math.floor(e)!==e)throw U(e,r),new D.ERR_OUT_OF_RANGE(r||"offset","an integer",e);if(t<0)throw new D.ERR_BUFFER_OUT_OF_BOUNDS;throw new D.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}L("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?e+" is outside of buffer bounds":"Attempt to access memory outside buffer bounds"}),RangeError),L("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),L("ERR_OUT_OF_RANGE",(function(e,t,r){let n=`The value of "${e}" is out of range.`,i=r;return Number.isInteger(r)&&Math.abs(r)>2**32?i=N(String(r)):"bigint"==typeof r&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=N(i)),i+="n"),n+=` It must be ${t}. Received ${i}`,n}),RangeError);const V=/[^+/0-9A-Za-z-_]/g;function W(e,t){let r;t=t||1/0;const n=e.length;let i=null;const o=[];for(let s=0;s<n;++s){if(r=e.charCodeAt(s),r>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(s+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function q(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(V,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function H(e,t,r,n){let i;for(i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function $(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function Z(e){return e!=e}const Y=function(){const e=new Array(256);for(let t=0;t<16;++t){const r=16*t;for(let n=0;n<16;++n)e[r+n]="0123456789abcdef"[t]+"0123456789abcdef"[n]}return e}();function J(e){return"undefined"==typeof BigInt?K:e}function K(){throw new Error("BigInt not supported")}},49:e=>{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"}},9818:(e,t,r)=>{"use strict";var n=r(528),i=r(8498),o=i(n("String.prototype.indexOf"));e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&o(e,".prototype.")>-1?i(r):r}},8498:(e,t,r)=>{"use strict";var n=r(9138),i=r(528),o=r(6108),s=r(3468),a=i("%Function.prototype.apply%"),l=i("%Function.prototype.call%"),u=i("%Reflect.apply%",!0)||n.call(l,a),c=r(4940),p=i("%Math.max%");e.exports=function(e){if("function"!=typeof e)throw new s("a function is required");var t=u(n,l,arguments);return o(t,1+p(0,e.length-(arguments.length-1)),!0)};var f=function(){return u(n,a,arguments)};c?c(e.exports,"apply",{value:f}):e.exports.apply=f},288:function(e,t){var r="undefined"!=typeof self?self:this,n=function(){function e(){this.fetch=!1,this.DOMException=r.DOMException}return e.prototype=r,new e}();!function(e){!function(t){var r="URLSearchParams"in e,n="Symbol"in e&&"iterator"in Symbol,i="FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),o="FormData"in e,s="ArrayBuffer"in e;if(s)var a=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],l=ArrayBuffer.isView||function(e){return e&&a.indexOf(Object.prototype.toString.call(e))>-1};function u(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function c(e){return"string"!=typeof e&&(e=String(e)),e}function p(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return n&&(t[Symbol.iterator]=function(){return t}),t}function f(e){this.map={},e instanceof f?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function h(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function d(e){return new Promise((function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}}))}function g(e){var t=new FileReader,r=d(t);return t.readAsArrayBuffer(e),r}function y(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function v(){return this.bodyUsed=!1,this._initBody=function(e){var t;this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:i&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:o&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:r&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():s&&i&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=y(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):s&&(ArrayBuffer.prototype.isPrototypeOf(e)||l(e))?this._bodyArrayBuffer=y(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):r&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i&&(this.blob=function(){var e=h(this);if(e)return e;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?h(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(g)}),this.text=function(){var e,t,r,n=h(this);if(n)return n;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,r=d(t),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o&&(this.formData=function(){return this.text().then(w)}),this.json=function(){return this.text().then(JSON.parse)},this}f.prototype.append=function(e,t){e=u(e),t=c(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},f.prototype.delete=function(e){delete this.map[u(e)]},f.prototype.get=function(e){return e=u(e),this.has(e)?this.map[e]:null},f.prototype.has=function(e){return this.map.hasOwnProperty(u(e))},f.prototype.set=function(e,t){this.map[u(e)]=c(t)},f.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},f.prototype.keys=function(){var e=[];return this.forEach((function(t,r){e.push(r)})),p(e)},f.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),p(e)},f.prototype.entries=function(){var e=[];return this.forEach((function(t,r){e.push([r,t])})),p(e)},n&&(f.prototype[Symbol.iterator]=f.prototype.entries);var m=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function b(e,t){var r,n,i=(t=t||{}).body;if(e instanceof b){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new f(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,i||null==e._bodyInit||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new f(t.headers)),this.method=(r=t.method||this.method||"GET",n=r.toUpperCase(),m.indexOf(n)>-1?n:r),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function w(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var r=e.split("="),n=r.shift().replace(/\+/g," "),i=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(i))}})),t}function S(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new f(t.headers),this.url=t.url||"",this._initBody(e)}b.prototype.clone=function(){return new b(this,{body:this._bodyInit})},v.call(b.prototype),v.call(S.prototype),S.prototype.clone=function(){return new S(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},S.error=function(){var e=new S(null,{status:0,statusText:""});return e.type="error",e};var _=[301,302,303,307,308];S.redirect=function(e,t){if(-1===_.indexOf(t))throw new RangeError("Invalid status code");return new S(null,{status:t,headers:{location:e}})},t.DOMException=e.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var r=Error(e);this.stack=r.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function E(e,r){return new Promise((function(n,o){var s=new b(e,r);if(s.signal&&s.signal.aborted)return o(new t.DOMException("Aborted","AbortError"));var a=new XMLHttpRequest;function l(){a.abort()}a.onload=function(){var e,t,r={status:a.status,statusText:a.statusText,headers:(e=a.getAllResponseHeaders()||"",t=new f,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var r=e.split(":"),n=r.shift().trim();if(n){var i=r.join(":").trim();t.append(n,i)}})),t)};r.url="responseURL"in a?a.responseURL:r.headers.get("X-Request-URL");var i="response"in a?a.response:a.responseText;n(new S(i,r))},a.onerror=function(){o(new TypeError("Network request failed"))},a.ontimeout=function(){o(new TypeError("Network request failed"))},a.onabort=function(){o(new t.DOMException("Aborted","AbortError"))},a.open(s.method,s.url,!0),"include"===s.credentials?a.withCredentials=!0:"omit"===s.credentials&&(a.withCredentials=!1),"responseType"in a&&i&&(a.responseType="blob"),s.headers.forEach((function(e,t){a.setRequestHeader(t,e)})),s.signal&&(s.signal.addEventListener("abort",l),a.onreadystatechange=function(){4===a.readyState&&s.signal.removeEventListener("abort",l)}),a.send(void 0===s._bodyInit?null:s._bodyInit)}))}E.polyfill=!0,e.fetch||(e.fetch=E,e.Headers=f,e.Request=b,e.Response=S),t.Headers=f,t.Request=b,t.Response=S,t.fetch=E,Object.defineProperty(t,"__esModule",{value:!0})}({})}(n),n.fetch.ponyfill=!0,delete n.fetch.polyfill;var i=n;(t=i.fetch).default=i.fetch,t.fetch=i.fetch,t.Headers=i.Headers,t.Request=i.Request,t.Response=i.Response,e.exports=t},686:(e,t,r)=>{"use strict";var n=r(4940),i=r(5731),o=r(3468),s=r(9336);e.exports=function(e,t,r){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new o("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new o("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new o("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new o("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new o("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new o("`loose`, if provided, must be a boolean");var a=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,u=arguments.length>5?arguments[5]:null,c=arguments.length>6&&arguments[6],p=!!s&&s(e,t);if(n)n(e,t,{configurable:null===u&&p?p.configurable:!u,enumerable:null===a&&p?p.enumerable:!a,value:r,writable:null===l&&p?p.writable:!l});else{if(!c&&(a||l||u))throw new i("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=r}}},1857:(e,t,r)=>{"use strict";var n=r(9228),i="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),o=Object.prototype.toString,s=Array.prototype.concat,a=r(686),l=r(7239)(),u=function(e,t,r,n){if(t in e)if(!0===n){if(e[t]===r)return}else if("function"!=typeof(i=n)||"[object Function]"!==o.call(i)||!n())return;var i;l?a(e,t,r,!0):a(e,t,r)},c=function(e,t){var r=arguments.length>2?arguments[2]:{},o=n(t);i&&(o=s.call(o,Object.getOwnPropertySymbols(t)));for(var a=0;a<o.length;a+=1)u(e,o[a],t[o[a]],r[o[a]])};c.supportsDescriptors=!!l,e.exports=c},2078:(e,t,r)=>{"use strict";const n=r(5365),i=r(5757),o=(e,t,s)=>({from:o,EnvVarError:r(5757),get:function(r){if(!r)return e;if(arguments.length>1)throw new i("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 n(e,r,t||{},s||function(){})},accessors:r(7350),logger:r(7869)(console.log,e.NODE_ENV)});e.exports=o(function(){try{return process.env}catch(e){return{}}}())},2555:(e,t,r)=>{"use strict";const n=r(6261);e.exports=function(e,t){return t=t||",",e.length?n(e).split(t).filter(Boolean):[]}},7808:e=>{"use strict";e.exports=function(e){const t=e.toLowerCase();if("false"!==t&&"true"!==t)throw new Error('should be either "true", "false", "TRUE", or "FALSE"');return"false"!==t}},3576:e=>{"use strict";e.exports=function(e){const t=e.toLowerCase();if(-1===["false","0","true","1"].indexOf(t))throw new Error('should be either "true", "false", "TRUE", "FALSE", 1, or 0');return!("0"===t||"false"===t)}},349:(e,t,r)=>{"use strict";const n=r(6261),i=/^(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\u0001-\u0008\u000b\u000c\u000e-\u001f\u0021\u0023-\u005b\u005d-\u007f]|\\[\u0001-\u0009\u000b\u000c\u000e-\u007f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9]))\.){3}(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9])|[a-z0-9-]*[a-z0-9]:(?:[\u0001-\u0008\u000b\u000c\u000e-\u001f\u0021-\u005a\u0053-\u007f]|\\[\u0001-\u0009\u000b\u000c\u000e-\u007f])+)\])$/;e.exports=function(e){const t=n(e);if(!i.test(t))throw new Error("should be a valid email address");return t}},129:(e,t,r)=>{"use strict";const n=r(6261);e.exports=function(e,t){const r=n(e);if(t.indexOf(r)<0)throw new Error(`should be one of [${t.join(", ")}]`);return r}},2222:(e,t,r)=>{"use strict";const n=r(5384);e.exports=function(e){const t=n(e);if(t>0)throw new Error("should be a negative float");return t}},3674:(e,t,r)=>{"use strict";const n=r(5384);e.exports=function(e){const t=n(e);if(t<0)throw new Error("should be a positive float");return t}},5384:e=>{"use strict";e.exports=function(e){const t=parseFloat(e);if(isNaN(t)||isNaN(e))throw new Error("should be a valid float");return t}},7350:(e,t,r)=>{e.exports={asArray:r(2555),asSet:r(7374),asBoolStrict:r(7808),asBool:r(3576),asPortNumber:r(4647),asEnum:r(129),asFloatNegative:r(2222),asFloatPositive:r(3674),asFloat:r(5384),asIntNegative:r(8455),asIntPositive:r(879),asInt:r(9799),asJsonArray:r(9974),asJsonObject:r(8124),asJson:r(3566),asRegExp:r(1045),asString:r(6261),asUrlObject:r(4531),asUrlString:r(5549),asEmailString:r(349)}},8455:(e,t,r)=>{"use strict";const n=r(9799);e.exports=function(e){const t=n(e);if(t>0)throw new Error("should be a negative integer");return t}},879:(e,t,r)=>{"use strict";const n=r(9799);e.exports=function(e){const t=n(e);if(t<0)throw new Error("should be a positive integer");return t}},9799:e=>{"use strict";e.exports=function(e){const t=parseInt(e,10);if(isNaN(t)||t.toString(10)!==e)throw new Error("should be a valid integer");return t}},9974:(e,t,r)=>{"use strict";const n=r(3566);e.exports=function(e){var t=n(e);if(!Array.isArray(t))throw new Error("should be a parseable JSON Array");return t}},8124:(e,t,r)=>{"use strict";const n=r(3566);e.exports=function(e){var t=n(e);if(Array.isArray(t))throw new Error("should be a parseable JSON Object");return t}},3566:e=>{"use strict";e.exports=function(e){try{return JSON.parse(e)}catch(e){throw new Error("should be valid (parseable) JSON")}}},4647:(e,t,r)=>{"use strict";const n=r(879);e.exports=function(e){var t=n(e);if(t>65535)throw new Error("cannot assign a port number greater than 65535");return t}},1045:e=>{"use strict";e.exports=function(e,t){try{RegExp(void 0,t)}catch(e){throw new Error("invalid regexp flags")}try{return new RegExp(e,t)}catch(e){throw new Error("should be a valid regexp")}}},7374:(e,t,r)=>{"use strict";const n=r(2555);e.exports=function(e,t){return e.length?new Set(n(e,t)):new Set}},6261:e=>{"use strict";e.exports=function(e){return e}},4531:(e,t,r)=>{"use strict";const n=r(6261);e.exports=function(e){const t=n(e);try{return new URL(t)}catch(e){throw new Error("should be a valid URL")}}},5549:(e,t,r)=>{"use strict";const n=r(4531);e.exports=function(e){return n(e).toString()}},5757:e=>{"use strict";class t extends Error{constructor(e,...r){super("env-var: "+e,...r),Error.captureStackTrace&&Error.captureStackTrace(this,t),this.name="EnvVarError"}}e.exports=t},7869:e=>{"use strict";e.exports=function(e,t){return function(r,n){t&&t.match(/prod|production/)||e(`env-var (${r}): ${n}`)}}},5365:(e,t,r)=>{"use strict";const n=r(5757),i=/^([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{4}|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)$/;e.exports=function(e,t,o,s){let a,l,u=!1,c=!1;const p=r(7350);function f(e){s(t,e)}function h(e,r){let i=`"${t}" ${r}`;throw e&&(i=""+i),l&&(i=`${i}. An example of a valid value would be: ${l}`),new n(i)}const d={convertFromBase64:function(){return f("marking for base64 conversion"),u=!0,d},default:function(e){if("number"==typeof e)a=e.toString();else if(Array.isArray(e)||"object"==typeof e&&null!==e)a=JSON.stringify(e);else{if("string"!=typeof e)throw new n("values passed to default() must be of Number, String, Array, or Object type");a=e}return f(`setting default value to "${a}"`),d},required:function(e){return void 0===e?(f("marked as required"),c=!0):(f("setting required flag to "+e),c=e),d},example:function(e){return l=e,d}};return Object.entries({...p,...o}).forEach(([r,n])=>{d[r]=function(r){return function(){let n=e[t];if(f(`will be read from the environment using "${r.name}" accessor`),void 0===n)if(void 0===a&&c)f("was not found in the environment, but is required to be set"),h(void 0,"is a required variable, but it was not set");else{if(void 0===a)return void f("was not found in the environment, but is not required. returning undefined");f(`was not found in the environment, parsing default value "${a}" instead`),n=a}c&&(f("verifying variable value is not an empty string"),0===n.trim().length&&h(void 0,"is a required variable, but its value was empty")),u&&(f("verifying variable is a valid base64 string"),n.match(i)||h(n,"should be a valid base64 string if using convertFromBase64"),f("converting from base64 to utf8 string"),n=Buffer.from(n,"base64").toString());const o=[n].concat(Array.prototype.slice.call(arguments));try{f(`passing value "${n}" to "${r.name}" accessor`);const e=r.apply(r,o);return f("parsed successfully, returning "+e),e}catch(e){h(n,e.message)}}}(n)}),d}},4940:(e,t,r)=>{"use strict";var n=r(528)("%Object.defineProperty%",!0)||!1;if(n)try{n({},"a",{value:1})}catch(e){n=!1}e.exports=n},9110:e=>{"use strict";e.exports=EvalError},9838:e=>{"use strict";e.exports=Error},1155:e=>{"use strict";e.exports=RangeError},4943:e=>{"use strict";e.exports=ReferenceError},5731:e=>{"use strict";e.exports=SyntaxError},3468:e=>{"use strict";e.exports=TypeError},2140:e=>{"use strict";e.exports=URIError},46:e=>{"use strict";var t,r="object"==typeof Reflect?Reflect:null,n=r&&"function"==typeof r.apply?r.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};t=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise((function(r,n){function i(r){e.removeListener(t,o),n(r)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",i),r([].slice.call(arguments))}g(e,t,o,{once:!0}),"error"!==t&&function(e,t,r){"function"==typeof e.on&&g(e,"error",t,r)}(e,i,{once:!0})}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var s=10;function a(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function l(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function u(e,t,r,n){var i,o,s,u;if(a(r),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),s=o[t]),void 0===s)s=o[t]=r,++e._eventsCount;else if("function"==typeof s?s=o[t]=n?[r,s]:[s,r]:n?s.unshift(r):s.push(r),(i=l(e))>0&&s.length>i&&!s.warned){s.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=s.length,u=c,console&&console.warn&&console.warn(u)}return e}function c(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=c.bind(n);return i.listener=r,n.wrapFn=i,i}function f(e,t,r){var n=e._events;if(void 0===n)return[];var i=n[t];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?function(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(i):d(i,i.length)}function h(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function d(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function g(e,t,r,n){if("function"==typeof e.on)n.once?e.once(t,r):e.on(t,r);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function i(o){n.once&&e.removeEventListener(t,i),r(o)}))}}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s=e}}),o.init=function(){void 0!==this._events&&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("number"!=typeof e||e<0||i(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 l(this)},o.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var i="error"===e,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){var s;if(t.length>0&&(s=t[0]),s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var l=o[e];if(void 0===l)return!1;if("function"==typeof l)n(l,this,t);else{var u=l.length,c=d(l,u);for(r=0;r<u;++r)n(c[r],this,t)}return!0},o.prototype.addListener=function(e,t){return u(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return u(this,e,t,!0)},o.prototype.once=function(e,t){return a(t),this.on(e,p(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return a(t),this.prependListener(e,p(this,e,t)),this},o.prototype.removeListener=function(e,t){var r,n,i,o,s;if(a(t),void 0===(n=this._events))return this;if(void 0===(r=n[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(i=-1,o=r.length-1;o>=0;o--)if(r[o]===t||r[o].listener===t){s=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,i),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,s||t)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0===arguments.length){var i,o=Object.keys(r);for(n=0;n<o.length;++n)"removeListener"!==(i=o[n])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},o.prototype.listeners=function(e){return f(this,e,!0)},o.prototype.rawListeners=function(e){return f(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):h.call(e,t)},o.prototype.listenerCount=h,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},6075:e=>{"use strict";e.exports=function(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});var r,n="boolean"==typeof t.cycles&&t.cycles,i=t.cmp&&(r=t.cmp,function(e){return function(t,n){var i={key:t,value:e[t]},o={key:n,value:e[n]};return r(i,o)}}),o=[];return function e(t){if(t&&t.toJSON&&"function"==typeof t.toJSON&&(t=t.toJSON()),void 0!==t){if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!=typeof t)return JSON.stringify(t);var r,s;if(Array.isArray(t)){for(s="[",r=0;r<t.length;r++)r&&(s+=","),s+=e(t[r])||"null";return s+"]"}if(null===t)return"null";if(-1!==o.indexOf(t)){if(n)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var a=o.push(t)-1,l=Object.keys(t).sort(i&&i(t));for(s="",r=0;r<l.length;r++){var u=l[r],c=e(t[u]);c&&(s&&(s+=","),s+=JSON.stringify(u)+":"+c)}return o.splice(a,1),"{"+s+"}"}}(e)}},3737:function(e,t,r){!function(e){"use strict";function t(e){for(var t=0,r=Math.min(65536,e.length+1),n=new Uint16Array(r),i=[],o=0;;){var s=t<e.length;if(!s||o>=r-1){var a=n.subarray(0,o);if(i.push(String.fromCharCode.apply(null,a)),!s)return i.join("");e=e.subarray(t),t=0,o=0}var l=e[t++];if(0==(128&l))n[o++]=l;else if(192==(224&l)){var u=63&e[t++];n[o++]=(31&l)<<6|u}else if(224==(240&l)){u=63&e[t++];var c=63&e[t++];n[o++]=(31&l)<<12|u<<6|c}else if(240==(248&l)){var p=(7&l)<<18|(u=63&e[t++])<<12|(c=63&e[t++])<<6|63&e[t++];p>65535&&(p-=65536,n[o++]=p>>>10&1023|55296,p=56320|1023&p),n[o++]=p}}}var r="Failed to ",n=function(e,t,n){if(e)throw new Error("".concat(r).concat(t,": the '").concat(n,"' option is unsupported."))},i="function"==typeof Buffer&&Buffer.from,o=i?function(e){return Buffer.from(e)}:function(e){for(var t=0,r=e.length,n=0,i=Math.max(32,r+(r>>>1)+7),o=new Uint8Array(i>>>3<<3);t<r;){var s=e.charCodeAt(t++);if(s>=55296&&s<=56319){if(t<r){var a=e.charCodeAt(t);56320==(64512&a)&&(++t,s=((1023&s)<<10)+(1023&a)+65536)}if(s>=55296&&s<=56319)continue}if(n+4>o.length){i+=8,i=(i*=1+t/e.length*2)>>>3<<3;var l=new Uint8Array(i);l.set(o),o=l}if(0!=(4294967168&s)){if(0==(4294965248&s))o[n++]=s>>>6&31|192;else if(0==(4294901760&s))o[n++]=s>>>12&15|224,o[n++]=s>>>6&63|128;else{if(0!=(4292870144&s))continue;o[n++]=s>>>18&7|240,o[n++]=s>>>12&63|128,o[n++]=s>>>6&63|128}o[n++]=63&s|128}else o[n++]=s}return o.slice?o.slice(0,n):o.subarray(0,n)};function s(){this.encoding="utf-8"}s.prototype.encode=function(e,t){return n(t&&t.stream,"encode","stream"),o(e)};var a=!i&&"function"==typeof Blob&&"function"==typeof URL&&"function"==typeof URL.createObjectURL,l=["utf-8","utf8","unicode-1-1-utf-8"],u=t;i?u=function(e,t){return(e instanceof Buffer?e:Buffer.from(e.buffer,e.byteOffset,e.byteLength)).toString(t)}:a&&(u=function(e){try{return function(e){var t;try{var r=new Blob([e],{type:"text/plain;charset=UTF-8"});t=URL.createObjectURL(r);var n=new XMLHttpRequest;return n.open("GET",t,!1),n.send(),n.responseText}finally{t&&URL.revokeObjectURL(t)}}(e)}catch(r){return t(e)}});var c="construct 'TextDecoder'",p="".concat(r," ").concat(c,": the ");function f(e,t){if(n(t&&t.fatal,c,"fatal"),e=e||"utf-8",!(i?Buffer.isEncoding(e):-1!==l.indexOf(e.toLowerCase())))throw new RangeError("".concat(p," encoding label provided ('").concat(e,"') is invalid."));this.encoding=e,this.fatal=!1,this.ignoreBOM=!1}f.prototype.decode=function(e,t){var r;return n(t&&t.stream,"decode","stream"),r=e instanceof Uint8Array?e:e.buffer instanceof ArrayBuffer?new Uint8Array(e.buffer):new Uint8Array(e),u(r,this.encoding)},e.TextEncoder=e.TextEncoder||s,e.TextDecoder=e.TextDecoder||f}("undefined"!=typeof window?window:void 0!==r.g?r.g:this)},4798:(e,t,r)=>{"use strict";r.r(t),r.d(t,{assign:()=>l,default:()=>P,defaultI18n:()=>f,format:()=>T,parse:()=>j,setGlobalDateI18n:()=>d,setGlobalDateMasks:()=>R});var n=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,i="[^\\s]+",o=/\[([^]*?)\]/gm;function s(e,t){for(var r=[],n=0,i=e.length;n<i;n++)r.push(e[n].substr(0,t));return r}var a=function(e){return function(t,r){var n=r[e].map((function(e){return e.toLowerCase()})).indexOf(t.toLowerCase());return n>-1?n:null}};function l(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];for(var n=0,i=t;n<i.length;n++){var o=i[n];for(var s in o)e[s]=o[s]}return e}var u=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],c=["January","February","March","April","May","June","July","August","September","October","November","December"],p=s(c,3),f={dayNamesShort:s(u,3),dayNames:u,monthNamesShort:p,monthNames:c,amPm:["am","pm"],DoFn:function(e){return e+["th","st","nd","rd"][e%10>3?0:(e-e%10!=10?1:0)*e%10]}},h=l({},f),d=function(e){return h=l(h,e)},g=function(e){return e.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},y=function(e,t){for(void 0===t&&(t=2),e=String(e);e.length<t;)e="0"+e;return e},v={D:function(e){return String(e.getDate())},DD:function(e){return y(e.getDate())},Do:function(e,t){return t.DoFn(e.getDate())},d:function(e){return String(e.getDay())},dd:function(e){return y(e.getDay())},ddd:function(e,t){return t.dayNamesShort[e.getDay()]},dddd:function(e,t){return t.dayNames[e.getDay()]},M:function(e){return String(e.getMonth()+1)},MM:function(e){return y(e.getMonth()+1)},MMM:function(e,t){return t.monthNamesShort[e.getMonth()]},MMMM:function(e,t){return t.monthNames[e.getMonth()]},YY:function(e){return y(String(e.getFullYear()),4).substr(2)},YYYY:function(e){return y(e.getFullYear(),4)},h:function(e){return String(e.getHours()%12||12)},hh:function(e){return y(e.getHours()%12||12)},H:function(e){return String(e.getHours())},HH:function(e){return y(e.getHours())},m:function(e){return String(e.getMinutes())},mm:function(e){return y(e.getMinutes())},s:function(e){return String(e.getSeconds())},ss:function(e){return y(e.getSeconds())},S:function(e){return String(Math.round(e.getMilliseconds()/100))},SS:function(e){return y(Math.round(e.getMilliseconds()/10),2)},SSS:function(e){return y(e.getMilliseconds(),3)},a:function(e,t){return e.getHours()<12?t.amPm[0]:t.amPm[1]},A:function(e,t){return e.getHours()<12?t.amPm[0].toUpperCase():t.amPm[1].toUpperCase()},ZZ:function(e){var t=e.getTimezoneOffset();return(t>0?"-":"+")+y(100*Math.floor(Math.abs(t)/60)+Math.abs(t)%60,4)},Z:function(e){var t=e.getTimezoneOffset();return(t>0?"-":"+")+y(Math.floor(Math.abs(t)/60),2)+":"+y(Math.abs(t)%60,2)}},m=function(e){return+e-1},b=[null,"\\d\\d?"],w=[null,i],S=["isPm",i,function(e,t){var r=e.toLowerCase();return r===t.amPm[0]?0:r===t.amPm[1]?1:null}],_=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(e){var t=(e+"").match(/([+-]|\d\d)/gi);if(t){var r=60*+t[1]+parseInt(t[2],10);return"+"===t[0]?r:-r}return 0}],E={D:["day","\\d\\d?"],DD:["day","\\d\\d"],Do:["day","\\d\\d?"+i,function(e){return parseInt(e,10)}],M:["month","\\d\\d?",m],MM:["month","\\d\\d",m],YY:["year","\\d\\d",function(e){var t=+(""+(new Date).getFullYear()).substr(0,2);return+(""+(+e>68?t-1:t)+e)}],h:["hour","\\d\\d?",void 0,"isPm"],hh:["hour","\\d\\d",void 0,"isPm"],H:["hour","\\d\\d?"],HH:["hour","\\d\\d"],m:["minute","\\d\\d?"],mm:["minute","\\d\\d"],s:["second","\\d\\d?"],ss:["second","\\d\\d"],YYYY:["year","\\d{4}"],S:["millisecond","\\d",function(e){return 100*+e}],SS:["millisecond","\\d\\d",function(e){return 10*+e}],SSS:["millisecond","\\d{3}"],d:b,dd:b,ddd:w,dddd:w,MMM:["month",i,a("monthNamesShort")],MMMM:["month",i,a("monthNames")],a:S,A:S,ZZ:_,Z:_},O={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"},R=function(e){return l(O,e)},T=function(e,t,r){if(void 0===t&&(t=O.default),void 0===r&&(r={}),"number"==typeof e&&(e=new Date(e)),"[object Date]"!==Object.prototype.toString.call(e)||isNaN(e.getTime()))throw new Error("Invalid Date pass to format");var i=[];t=(t=O[t]||t).replace(o,(function(e,t){return i.push(t),"@@@"}));var s=l(l({},h),r);return(t=t.replace(n,(function(t){return v[t](e,s)}))).replace(/@@@/g,(function(){return i.shift()}))};function j(e,t,r){if(void 0===r&&(r={}),"string"!=typeof t)throw new Error("Invalid format in fecha parse");if(t=O[t]||t,e.length>1e3)return null;var i={year:(new Date).getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},s=[],a=[],u=t.replace(o,(function(e,t){return a.push(g(t)),"@@@"})),c={},p={};u=g(u).replace(n,(function(e){var t=E[e],r=t[0],n=t[1],i=t[3];if(c[r])throw new Error("Invalid format. "+r+" specified twice in format");return c[r]=!0,i&&(p[i]=!0),s.push(t),"("+n+")"})),Object.keys(p).forEach((function(e){if(!c[e])throw new Error("Invalid format. "+e+" is required in specified format")})),u=u.replace(/@@@/g,(function(){return a.shift()}));var f=e.match(new RegExp(u,"i"));if(!f)return null;for(var d,y=l(l({},h),r),v=1;v<f.length;v++){var m=s[v-1],b=m[0],w=m[2],S=w?w(f[v],y):+f[v];if(null==S)return null;i[b]=S}if(1===i.isPm&&null!=i.hour&&12!=+i.hour?i.hour=+i.hour+12:0===i.isPm&&12==+i.hour&&(i.hour=0),null==i.timezoneOffset){d=new Date(i.year,i.month,i.day,i.hour,i.minute,i.second,i.millisecond);for(var _=[["month","getMonth"],["day","getDate"],["hour","getHours"],["minute","getMinutes"],["second","getSeconds"]],R=(v=0,_.length);v<R;v++)if(c[_[v][0]]&&i[_[v][0]]!==d[_[v][1]]())return null}else if(d=new Date(Date.UTC(i.year,i.month,i.day,i.hour,i.minute-i.timezoneOffset,i.second,i.millisecond)),i.month>11||i.month<0||i.day>31||i.day<1||i.hour>23||i.hour<0||i.minute>59||i.minute<0||i.second>59||i.second<0)return null;return d}const P={format:T,parse:j,defaultI18n:f,setGlobalDateI18n:d,setGlobalDateMasks:R}},9827:e=>{"use strict";var t=Object.prototype.toString;e.exports=function(e){if("string"==typeof e.displayName&&e.constructor.name)return e.displayName;if("string"==typeof e.name&&e.name)return e.name;if("object"==typeof e&&e.constructor&&"string"==typeof e.constructor.name)return e.constructor.name;var r=e.toString(),n=t.call(e).slice(8,-1);return(r="Function"===n?r.substring(r.indexOf("(")+1,r.indexOf(")")):n)||"anonymous"}},705:(e,t,r)=>{"use strict";var n=r(9617),i=Object.prototype.toString,o=Object.prototype.hasOwnProperty,s=function(e,t,r){for(var n=0,i=e.length;n<i;n++)o.call(e,n)&&(null==r?t(e[n],n,e):t.call(r,e[n],n,e))},a=function(e,t,r){for(var n=0,i=e.length;n<i;n++)null==r?t(e.charAt(n),n,e):t.call(r,e.charAt(n),n,e)},l=function(e,t,r){for(var n in e)o.call(e,n)&&(null==r?t(e[n],n,e):t.call(r,e[n],n,e))};e.exports=function(e,t,r){if(!n(t))throw new TypeError("iterator must be a function");var o;arguments.length>=3&&(o=r),"[object Array]"===i.call(e)?s(e,t,o):"string"==typeof e?a(e,t,o):l(e,t,o)}},8794:e=>{"use strict";var t="Function.prototype.bind called on incompatible ",r=Object.prototype.toString,n=Math.max,i=function(e,t){for(var r=[],n=0;n<e.length;n+=1)r[n]=e[n];for(var i=0;i<t.length;i+=1)r[i+e.length]=t[i];return r},o=function(e,t){for(var r=[],n=t||0,i=0;n<e.length;n+=1,i+=1)r[i]=e[n];return r},s=function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r};e.exports=function(e){var a=this;if("function"!=typeof a||"[object Function]"!==r.apply(a))throw new TypeError(t+a);for(var l,u=o(arguments,1),c=function(){if(this instanceof l){var t=a.apply(this,i(u,arguments));return Object(t)===t?t:this}return a.apply(e,i(u,arguments))},p=n(0,a.length-u.length),f=[],h=0;h<p;h++)f[h]="$"+h;if(l=Function("binder","return function ("+s(f,",")+"){ return binder.apply(this,arguments); }")(c),a.prototype){var d=function(){};d.prototype=a.prototype,l.prototype=new d,d.prototype=null}return l}},9138:(e,t,r)=>{"use strict";var n=r(8794);e.exports=Function.prototype.bind||n},528:(e,t,r)=>{"use strict";var n=r(9838),i=r(9110),o=r(1155),s=r(4943),a=r(5731),l=r(3468),u=r(2140),c=Function,p=function(e){try{return c('"use strict"; return ('+e+").constructor;")()}catch(e){}},f=Object.getOwnPropertyDescriptor;if(f)try{f({},"")}catch(e){f=null}var h=function(){throw new l},d=f?function(){try{return h}catch(e){try{return f(arguments,"callee").get}catch(e){return h}}}():h,g=r(3558)(),y=r(6869)(),v=Object.getPrototypeOf||(y?function(e){return e.__proto__}:null),m={},b="undefined"!=typeof Uint8Array&&v?v(Uint8Array):void 0,w={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?void 0:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayIteratorPrototype%":g&&v?v([][Symbol.iterator]()):void 0,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":m,"%AsyncGenerator%":m,"%AsyncGeneratorFunction%":m,"%AsyncIteratorPrototype%":m,"%Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"%BigInt%":"undefined"==typeof BigInt?void 0:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?void 0:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?void 0:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?void 0:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":n,"%eval%":eval,"%EvalError%":i,"%Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?void 0:FinalizationRegistry,"%Function%":c,"%GeneratorFunction%":m,"%Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":g&&v?v(v([][Symbol.iterator]())):void 0,"%JSON%":"object"==typeof JSON?JSON:void 0,"%Map%":"undefined"==typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&g&&v?v((new Map)[Symbol.iterator]()):void 0,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?void 0:Promise,"%Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"%RangeError%":o,"%ReferenceError%":s,"%Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?void 0:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&g&&v?v((new Set)[Symbol.iterator]()):void 0,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":g&&v?v(""[Symbol.iterator]()):void 0,"%Symbol%":g?Symbol:void 0,"%SyntaxError%":a,"%ThrowTypeError%":d,"%TypedArray%":b,"%TypeError%":l,"%Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"%URIError%":u,"%WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?void 0:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet};if(v)try{null.error}catch(e){var S=v(v(e));w["%Error.prototype%"]=S}var _={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},E=r(9138),O=r(8554),R=E.call(Function.call,Array.prototype.concat),T=E.call(Function.apply,Array.prototype.splice),j=E.call(Function.call,String.prototype.replace),P=E.call(Function.call,String.prototype.slice),x=E.call(Function.call,RegExp.prototype.exec),A=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,I=/\\(\\)?/g,C=function(e){var t=P(e,0,1),r=P(e,-1);if("%"===t&&"%"!==r)throw new a("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new a("invalid intrinsic syntax, expected opening `%`");var n=[];return j(e,A,(function(e,t,r,i){n[n.length]=r?j(i,I,"$1"):t||e})),n},k=function(e,t){var r,n=e;if(O(_,n)&&(n="%"+(r=_[n])[0]+"%"),O(w,n)){var i=w[n];if(i===m&&(i=function e(t){var r;if("%AsyncFunction%"===t)r=p("async function () {}");else if("%GeneratorFunction%"===t)r=p("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=p("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&v&&(r=v(i.prototype))}return w[t]=r,r}(n)),void 0===i&&!t)throw new l("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new a("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new l("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new l('"allowMissing" argument must be a boolean');if(null===x(/^%?[^%]*%?$/,e))throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=C(e),n=r.length>0?r[0]:"",i=k("%"+n+"%",t),o=i.name,s=i.value,u=!1,c=i.alias;c&&(n=c[0],T(r,R([0,1],c)));for(var p=1,h=!0;p<r.length;p+=1){var d=r[p],g=P(d,0,1),y=P(d,-1);if(('"'===g||"'"===g||"`"===g||'"'===y||"'"===y||"`"===y)&&g!==y)throw new a("property names with quotes must have matching quotes");if("constructor"!==d&&h||(u=!0),O(w,o="%"+(n+="."+d)+"%"))s=w[o];else if(null!=s){if(!(d in s)){if(!t)throw new l("base intrinsic for "+e+" exists, but the property is not available.");return}if(f&&p+1>=r.length){var v=f(s,d);s=(h=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:s[d]}else h=O(s,d),s=s[d];h&&!u&&(w[o]=s)}}return s}},7186:function(e,t,r){var n="function"==typeof Object.defineProperties?Object.defineProperty:function(e,t,r){e!=Array.prototype&&e!=Object.prototype&&(e[t]=r.value)},i="undefined"!=typeof window&&window===this?this:void 0!==r.g&&null!=r.g?r.g:this;function o(){o=function(){},i.Symbol||(i.Symbol=l)}function s(e,t){this.a=e,n(this,"description",{configurable:!0,writable:!0,value:t})}s.prototype.toString=function(){return this.a};var a,l=(a=0,function e(t){if(this instanceof e)throw new TypeError("Symbol is not a constructor");return new s("jscomp_symbol_"+(t||"")+"_"+a++,t)});function u(){o();var e=i.Symbol.iterator;e||(e=i.Symbol.iterator=i.Symbol("Symbol.iterator")),"function"!=typeof Array.prototype[e]&&n(Array.prototype,e,{configurable:!0,writable:!0,value:function(){return function(e){return u(),(e={next:e})[i.Symbol.iterator]=function(){return this},e}(function(e){var t=0;return function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}}}(this))}}),u=function(){}}!function(e,t){if(t){var r=i;e=e.split(".");for(var o=0;o<e.length-1;o++){var s=e[o];s in r||(r[s]={}),r=r[s]}(t=t(o=r[e=e[e.length-1]]))!=o&&null!=t&&n(r,e,{configurable:!0,writable:!0,value:t})}}("Array.prototype.entries",(function(e){return e||function(){return function(e,t){u(),e instanceof String&&(e+="");var r=0,n={next:function(){if(r<e.length){var i=r++;return{value:t(i,e[i]),done:!1}}return n.next=function(){return{done:!0,value:void 0}},n.next()}};return n[Symbol.iterator]=function(){return n},n}(this,(function(e,t){return[e,t]}))}}));var c=this||self;function p(e,t,r){e=e.split("."),r=r||c,e[0]in r||void 0===r.execScript||r.execScript("var "+e[0]);for(var n;e.length&&(n=e.shift());)e.length||void 0===t?r=r[n]&&r[n]!==Object.prototype[n]?r[n]:r[n]={}:r[n]=t}function f(e){var t=typeof e;if("object"==t){if(!e)return"null";if(e instanceof Array)return"array";if(e instanceof Object)return t;var r=Object.prototype.toString.call(e);if("[object Window]"==r)return"object";if("[object Array]"==r||"number"==typeof e.length&&void 0!==e.splice&&void 0!==e.propertyIsEnumerable&&!e.propertyIsEnumerable("splice"))return"array";if("[object Function]"==r||void 0!==e.call&&void 0!==e.propertyIsEnumerable&&!e.propertyIsEnumerable("call"))return"function"}else if("function"==t&&void 0===e.call)return"object";return t}function h(e){var t=typeof e;return"object"==t&&null!=e||"function"==t}var d="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");var g=Array.prototype.forEach?function(e,t){Array.prototype.forEach.call(e,t,void 0)}:function(e,t){for(var r=e.length,n="string"==typeof e?e.split(""):e,i=0;i<r;i++)i in n&&t.call(void 0,n[i],i,e)},y=Array.prototype.map?function(e,t){return Array.prototype.map.call(e,t,void 0)}:function(e,t){for(var r=e.length,n=Array(r),i="string"==typeof e?e.split(""):e,o=0;o<r;o++)o in i&&(n[o]=t.call(void 0,i[o],o,e));return n};function v(e,t,r){return 2>=arguments.length?Array.prototype.slice.call(e,t):Array.prototype.slice.call(e,t,r)}function m(e,t,r,n){var i="Assertion failed";if(r){i+=": "+r;var o=n}else e&&(i+=": "+e,o=t);throw Error(i,o||[])}function b(e,t,r){for(var n=[],i=2;i<arguments.length;++i)n[i-2]=arguments[i];return e||m("",null,t,n),e}function w(e,t){for(var r=[],n=1;n<arguments.length;++n)r[n-1]=arguments[n];throw Error("Failure"+(e?": "+e:""),r)}function S(e,t,r,n){for(var i=[],o=3;o<arguments.length;++o)i[o-3]=arguments[o];e instanceof t||m("Expected instanceof %s but got %s.",[_(t),_(e)],r,i)}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):null===e?"null":typeof e}function E(e,t){if(this.c=e,this.b=t,this.a={},this.arrClean=!0,0<this.c.length){for(e=0;e<this.c.length;e++){var r=(t=this.c[e])[0];this.a[r.toString()]=new j(r,t[1])}this.arrClean=!0}}function O(e){this.a=0,this.b=e}function R(e,t){return e.b?(t.a||(t.a=new e.b(t.value)),t.a):t.value}function T(e){e=e.a;var t,r=[];for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.push(t);return r}function j(e,t){this.key=e,this.value=t,this.a=void 0}function P(e){if(8192>=e.length)return String.fromCharCode.apply(null,e);for(var t="",r=0;r<e.length;r+=8192)t+=String.fromCharCode.apply(null,v(e,r,r+8192));return t}p("jspb.Map",E,void 0),E.prototype.g=function(){if(this.arrClean){if(this.b){var e,t=this.a;for(e in t)if(Object.prototype.hasOwnProperty.call(t,e)){var r=t[e].a;r&&r.g()}}}else{for(this.c.length=0,(t=T(this)).sort(),e=0;e<t.length;e++){var n=this.a[t[e]];(r=n.a)&&r.g(),this.c.push([n.key,n.value])}this.arrClean=!0}return this.c},E.prototype.toArray=E.prototype.g,E.prototype.Mc=function(e,t){for(var r=this.g(),n=[],i=0;i<r.length;i++){var o=this.a[r[i][0].toString()];R(this,o);var s=o.a;s?(b(t),n.push([o.key,t(e,s)])):n.push([o.key,o.value])}return n},E.prototype.toObject=E.prototype.Mc,E.fromObject=function(e,t,r){t=new E([],t);for(var n=0;n<e.length;n++){var i=e[n][0],o=r(e[n][1]);t.set(i,o)}return t},O.prototype.next=function(){return this.a<this.b.length?{done:!1,value:this.b[this.a++]}:{done:!0,value:void 0}},"undefined"!=typeof Symbol&&(O.prototype[Symbol.iterator]=function(){return this}),E.prototype.Jb=function(){return T(this).length},E.prototype.getLength=E.prototype.Jb,E.prototype.clear=function(){this.a={},this.arrClean=!1},E.prototype.clear=E.prototype.clear,E.prototype.Cb=function(e){e=e.toString();var t=this.a.hasOwnProperty(e);return delete this.a[e],this.arrClean=!1,t},E.prototype.del=E.prototype.Cb,E.prototype.Eb=function(){var e=[],t=T(this);t.sort();for(var r=0;r<t.length;r++){var n=this.a[t[r]];e.push([n.key,n.value])}return e},E.prototype.getEntryList=E.prototype.Eb,E.prototype.entries=function(){var e=[],t=T(this);t.sort();for(var r=0;r<t.length;r++){var n=this.a[t[r]];e.push([n.key,R(this,n)])}return new O(e)},E.prototype.entries=E.prototype.entries,E.prototype.keys=function(){var e=[],t=T(this);t.sort();for(var r=0;r<t.length;r++)e.push(this.a[t[r]].key);return new O(e)},E.prototype.keys=E.prototype.keys,E.prototype.values=function(){var e=[],t=T(this);t.sort();for(var r=0;r<t.length;r++)e.push(R(this,this.a[t[r]]));return new O(e)},E.prototype.values=E.prototype.values,E.prototype.forEach=function(e,t){var r=T(this);r.sort();for(var n=0;n<r.length;n++){var i=this.a[r[n]];e.call(t,R(this,i),i.key,this)}},E.prototype.forEach=E.prototype.forEach,E.prototype.set=function(e,t){var r=new j(e);return this.b?(r.a=t,r.value=t.g()):r.value=t,this.a[e.toString()]=r,this.arrClean=!1,this},E.prototype.set=E.prototype.set,E.prototype.get=function(e){if(e=this.a[e.toString()])return R(this,e)},E.prototype.get=E.prototype.get,E.prototype.has=function(e){return e.toString()in this.a},E.prototype.has=E.prototype.has,E.prototype.Jc=function(e,t,r,n,i){var o=T(this);o.sort();for(var s=0;s<o.length;s++){var a=this.a[o[s]];t.Va(e),r.call(t,1,a.key),this.b?n.call(t,2,R(this,a),i):n.call(t,2,a.value),t.Ya()}},E.prototype.serializeBinary=E.prototype.Jc,E.deserializeBinary=function(e,t,r,n,i,o,s){for(;t.oa()&&!t.bb();){var a=t.c;1==a?o=r.call(t):2==a&&(e.b?(b(i),s||(s=new e.b),n.call(t,s,i)):s=n.call(t))}b(null!=o),b(null!=s),e.set(o,s)};var x={"\0":"\\0","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\x0B",'"':'\\"',"\\":"\\\\","<":"\\u003C"},A={"'":"\\'"},I={},C=null;function k(e,t){void 0===t&&(t=0),F(),t=I[t];for(var r=[],n=0;n<e.length;n+=3){var i=e[n],o=n+1<e.length,s=o?e[n+1]:0,a=n+2<e.length,l=a?e[n+2]:0,u=i>>2;i=(3&i)<<4|s>>4,s=(15&s)<<2|l>>6,l&=63,a||(l=64,o||(s=64)),r.push(t[u],t[i],t[s]||"",t[l]||"")}return r.join("")}function M(e){var t=e.length,r=3*t/4;r%3?r=Math.floor(r):-1!="=.".indexOf(e[t-1])&&(r=-1!="=.".indexOf(e[t-2])?r-2:r-1);var n=new Uint8Array(r),i=0;return function(e,t){function r(t){for(;n<e.length;){var r=e.charAt(n++),i=C[r];if(null!=i)return i;if(!/^[\s\xa0]*$/.test(r))throw Error("Unknown base64 encoding at char: "+r)}return t}F();for(var n=0;;){var i=r(-1),o=r(0),s=r(64),a=r(64);if(64===a&&-1===i)break;t(i<<2|o>>4),64!=s&&(t(o<<4&240|s>>2),64!=a&&t(s<<6&192|a))}}(e,(function(e){n[i++]=e})),n.subarray(0,i)}function F(){if(!C){C={};for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),t=["+/=","+/","-_=","-_.","-_"],r=0;5>r;r++){var n=e.concat(t[r].split(""));I[r]=n;for(var i=0;i<n.length;i++){var o=n[i];void 0===C[o]&&(C[o]=i)}}}}p("jspb.ConstBinaryMessage",(function(){}),void 0),p("jspb.BinaryMessage",(function(){}),void 0),p("jspb.BinaryConstants.FieldType",{yb:-1,ee:1,FLOAT:2,ke:3,te:4,je:5,xb:6,wb:7,BOOL:8,re:9,ie:10,le:11,ce:12,se:13,ge:14,me:15,ne:16,oe:17,pe:18,he:30,ve:31},void 0),p("jspb.BinaryConstants.WireType",{yb:-1,ue:0,xb:1,de:2,qe:3,fe:4,wb:5},void 0),p("jspb.BinaryConstants.FieldTypeToWireType",(function(e){switch(e){case 5:case 3:case 13:case 4:case 17:case 18:case 8:case 14:case 31:return 0;case 1:case 6:case 16:case 30:return 1;case 9:case 11:case 12:return 2;case 2:case 7:case 15:return 5;default:return-1}}),void 0),p("jspb.BinaryConstants.INVALID_FIELD_NUMBER",-1,void 0),p("jspb.BinaryConstants.FLOAT32_EPS",1401298464324817e-60,void 0),p("jspb.BinaryConstants.FLOAT32_MIN",11754943508222875e-54,void 0),p("jspb.BinaryConstants.FLOAT32_MAX",34028234663852886e22,void 0),p("jspb.BinaryConstants.FLOAT64_EPS",5e-324,void 0),p("jspb.BinaryConstants.FLOAT64_MIN",22250738585072014e-324,void 0),p("jspb.BinaryConstants.FLOAT64_MAX",17976931348623157e292,void 0),p("jspb.BinaryConstants.TWO_TO_20",1048576,void 0),p("jspb.BinaryConstants.TWO_TO_23",8388608,void 0),p("jspb.BinaryConstants.TWO_TO_31",2147483648,void 0),p("jspb.BinaryConstants.TWO_TO_32",4294967296,void 0),p("jspb.BinaryConstants.TWO_TO_52",4503599627370496,void 0),p("jspb.BinaryConstants.TWO_TO_63",0x8000000000000000,void 0),p("jspb.BinaryConstants.TWO_TO_64",0x10000000000000000,void 0),p("jspb.BinaryConstants.ZERO_HASH","\0\0\0\0\0\0\0\0",void 0);var B=0,D=0;function L(e){var t=e>>>0;e=Math.floor((e-t)/4294967296)>>>0,B=t,D=e}function N(e){var t=0>e,r=(e=Math.abs(e))>>>0;e=Math.floor((e-r)/4294967296),e>>>=0,t&&(e=~e>>>0,4294967295<(r=1+(~r>>>0))&&(r=0,4294967295<++e&&(e=0))),B=r,D=e}function z(e){var t=0>e;L(e=2*Math.abs(e)),e=B;var r=D;t&&(0==e?0==r?r=e=4294967295:(r--,e=4294967295):e--),B=e,D=r}function U(e){var t=0>e?1:0;if(0===(e=t?-e:e))0<1/e?B=D=0:(D=0,B=2147483648);else if(isNaN(e))D=0,B=2147483647;else if(34028234663852886e22<e)D=0,B=(t<<31|2139095040)>>>0;else if(11754943508222875e-54>e)e=Math.round(e/Math.pow(2,-149)),D=0,B=(t<<31|e)>>>0;else{var r=Math.floor(Math.log(e)/Math.LN2);e*=Math.pow(2,-r),16777216<=(e=Math.round(8388608*e))&&++r,D=0,B=(t<<31|r+127<<23|8388607&e)>>>0}}function G(e){var t=0>e?1:0;if(0===(e=t?-e:e))D=0<1/e?0:2147483648,B=0;else if(isNaN(e))D=2147483647,B=4294967295;else if(17976931348623157e292<e)D=(t<<31|2146435072)>>>0,B=0;else if(22250738585072014e-324>e)e/=Math.pow(2,-1074),D=(t<<31|e/4294967296)>>>0,B=e>>>0;else{var r=e,n=0;if(2<=r)for(;2<=r&&1023>n;)n++,r/=2;else for(;1>r&&-1022<n;)r*=2,n--;e*=Math.pow(2,-n),D=(t<<31|n+1023<<20|1048576*e&1048575)>>>0,B=4503599627370496*e>>>0}}function V(e){var t=e.charCodeAt(4),r=e.charCodeAt(5),n=e.charCodeAt(6),i=e.charCodeAt(7);B=e.charCodeAt(0)+(e.charCodeAt(1)<<8)+(e.charCodeAt(2)<<16)+(e.charCodeAt(3)<<24)>>>0,D=t+(r<<8)+(n<<16)+(i<<24)>>>0}function W(e,t){return 4294967296*t+(e>>>0)}function q(e,t){var r=2147483648&t;return r&&(t=~t>>>0,0==(e=1+~e>>>0)&&(t=t+1>>>0)),e=W(e,t),r?-e:e}function H(e,t,r){var n=t>>31;return r(e<<1^n,(t<<1|e>>>31)^n)}function $(e,t){return Z(e,t,q)}function Z(e,t,r){var n=-(1&e);return r((e>>>1|t<<31)^n,t>>>1^n)}function Y(e){var t=2*(e>>31)+1,r=e>>>23&255;return e&=8388607,255==r?e?NaN:1/0*t:0==r?t*Math.pow(2,-149)*e:t*Math.pow(2,r-150)*(e+Math.pow(2,23))}function J(e,t){var r=2*(t>>31)+1,n=t>>>20&2047;return e=4294967296*(1048575&t)+e,2047==n?e?NaN:1/0*r:0==n?r*Math.pow(2,-1074)*e:r*Math.pow(2,n-1075)*(e+4503599627370496)}function K(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)}function X(e,t){function r(e,t){return e=e?String(e):"",t?"0000000".slice(e.length)+e:e}if(2097151>=t)return""+W(e,t);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)}function Q(e,t){var r=2147483648&t;return r&&(t=~t+(0==(e=1+~e>>>0)?1:0)>>>0),e=X(e,t),r?"-"+e:e}function ee(e,t){V(e),e=B;var r=D;return t?Q(e,r):X(e,r)}function te(e){function t(e,t){for(var r=0;8>r&&(1!==e||0<t);r++)t=e*n[r]+t,n[r]=255&t,t>>>=8}b(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)-48);return r&&(function(){for(var e=0;8>e;e++)n[e]=255&~n[e]}(),t(1,1)),P(n)}function re(e){return String.fromCharCode(10>e?48+e:87+e)}function ne(e){return 97<=e?e-97+10:e-48}function ie(e,t,r,n,i){var o=0;if(128>n)for(;t<r&&e[t++]==n;)o++,t+=i;else for(;t<r;){for(var s=n;128<s;){if(e[t++]!=(127&s|128))return o;s>>=7}if(e[t++]!=s)break;o++,t+=i}return o}function oe(e){return e.constructor===Uint8Array?e:e.constructor===ArrayBuffer||e.constructor===Array?new Uint8Array(e):e.constructor===String?M(e):e instanceof Uint8Array?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):(w("Type not convertible to Uint8Array."),new Uint8Array(0))}function se(e,t,r){this.b=null,this.a=this.c=this.h=0,this.v=!1,e&&this.H(e,t,r)}p("jspb.utils.getSplit64Low",(function(){return B}),void 0),p("jspb.utils.getSplit64High",(function(){return D}),void 0),p("jspb.utils.splitUint64",L,void 0),p("jspb.utils.splitInt64",N,void 0),p("jspb.utils.splitZigzag64",z,void 0),p("jspb.utils.splitFloat32",U,void 0),p("jspb.utils.splitFloat64",G,void 0),p("jspb.utils.splitHash64",V,void 0),p("jspb.utils.joinUint64",W,void 0),p("jspb.utils.joinInt64",q,void 0),p("jspb.utils.toZigzag64",H,void 0),p("jspb.utils.joinZigzag64",$,void 0),p("jspb.utils.fromZigzag64",Z,void 0),p("jspb.utils.joinFloat32",Y,void 0),p("jspb.utils.joinFloat64",J,void 0),p("jspb.utils.joinHash64",K,void 0),p("jspb.utils.DIGITS","0123456789abcdef".split(""),void 0),p("jspb.utils.joinUnsignedDecimalString",X,void 0),p("jspb.utils.joinSignedDecimalString",Q,void 0),p("jspb.utils.hash64ToDecimalString",ee,void 0),p("jspb.utils.hash64ArrayToDecimalStrings",(function(e,t){for(var r=Array(e.length),n=0;n<e.length;n++)r[n]=ee(e[n],t);return r}),void 0),p("jspb.utils.decimalStringToHash64",te,void 0),p("jspb.utils.splitDecimalString",(function(e){V(te(e))}),void 0),p("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]=re(n>>4),t[2*r+3]=re(15&n)}return t.join("")}),void 0),p("jspb.utils.hexStringToHash64",(function(e){b(18==(e=e.toLowerCase()).length),b("0"==e[0]),b("x"==e[1]);for(var t="",r=0;8>r;r++)t=String.fromCharCode(16*ne(e.charCodeAt(2*r+2))+ne(e.charCodeAt(2*r+3)))+t;return t}),void 0),p("jspb.utils.hash64ToNumber",(function(e,t){V(e),e=B;var r=D;return t?q(e,r):W(e,r)}),void 0),p("jspb.utils.numberToHash64",(function(e){return N(e),K(B,D)}),void 0),p("jspb.utils.countVarints",(function(e,t,r){for(var n=0,i=t;i<r;i++)n+=e[i]>>7;return r-t-n}),void 0),p("jspb.utils.countVarintFields",(function(e,t,r,n){var i=0;if(128>(n*=8))for(;t<r&&e[t++]==n;)for(i++;;){var o=e[t++];if(0==(128&o))break}else for(;t<r;){for(o=n;128<o;){if(e[t]!=(127&o|128))return i;t++,o>>=7}if(e[t++]!=o)break;for(i++;0!=(128&(o=e[t++])););}return i}),void 0),p("jspb.utils.countFixed32Fields",(function(e,t,r,n){return ie(e,t,r,8*n+5,4)}),void 0),p("jspb.utils.countFixed64Fields",(function(e,t,r,n){return ie(e,t,r,8*n+1,8)}),void 0),p("jspb.utils.countDelimitedFields",(function(e,t,r,n){var i=0;for(n=8*n+2;t<r;){for(var o=n;128<o;){if(e[t++]!=(127&o|128))return i;o>>=7}if(e[t++]!=o)break;i++;for(var s=0,a=1;s+=(127&(o=e[t++]))*a,a*=128,0!=(128&o););t+=s}return i}),void 0),p("jspb.utils.debugBytesToTextFormat",(function(e){var t='"';if(e){e=oe(e);for(var r=0;r<e.length;r++)t+="\\x",16>e[r]&&(t+="0"),t+=e[r].toString(16)}return t+'"'}),void 0),p("jspb.utils.debugScalarToTextFormat",(function(e){if("string"==typeof e){e=String(e);for(var t=['"'],r=0;r<e.length;r++){var n,i=e.charAt(r),o=i.charCodeAt(0),s=r+1;(n=x[i])||(31<o&&127>o||((o=i)in A?i=A[o]:o in x?i=A[o]=x[o]:(31<(n=o.charCodeAt(0))&&127>n?i=o:(256>n?(i="\\x",(16>n||256<n)&&(i+="0")):(i="\\u",4096>n&&(i+="0")),i+=n.toString(16).toUpperCase()),i=A[o]=i)),n=i),t[s]=n}t.push('"'),e=t.join("")}else e=e.toString();return e}),void 0),p("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}),void 0),p("jspb.utils.byteSourceToUint8Array",oe,void 0),p("jspb.BinaryDecoder",se,void 0);var ae=[];function le(e,t,r){if(ae.length){var n=ae.pop();return e&&n.H(e,t,r),n}return new se(e,t,r)}function ue(e,t,r){this.a=le(e,t,r),this.O=this.a.B(),this.b=this.c=-1,this.h=!1,this.v=null}se.getInstanceCacheLength=function(){return ae.length},se.alloc=le,se.prototype.Ca=function(){this.clear(),100>ae.length&&ae.push(this)},se.prototype.free=se.prototype.Ca,se.prototype.clone=function(){return le(this.b,this.h,this.c-this.h)},se.prototype.clone=se.prototype.clone,se.prototype.clear=function(){this.b=null,this.a=this.c=this.h=0,this.v=!1},se.prototype.clear=se.prototype.clear,se.prototype.Y=function(){return this.b},se.prototype.getBuffer=se.prototype.Y,se.prototype.H=function(e,t,r){this.b=oe(e),this.h=void 0!==t?t:0,this.c=void 0!==r?this.h+r:this.b.length,this.a=this.h},se.prototype.setBlock=se.prototype.H,se.prototype.Db=function(){return this.c},se.prototype.getEnd=se.prototype.Db,se.prototype.setEnd=function(e){this.c=e},se.prototype.setEnd=se.prototype.setEnd,se.prototype.reset=function(){this.a=this.h},se.prototype.reset=se.prototype.reset,se.prototype.B=function(){return this.a},se.prototype.getCursor=se.prototype.B,se.prototype.Ma=function(e){this.a=e},se.prototype.setCursor=se.prototype.Ma,se.prototype.advance=function(e){this.a+=e,b(this.a<=this.c)},se.prototype.advance=se.prototype.advance,se.prototype.ya=function(){return this.a==this.c},se.prototype.atEnd=se.prototype.ya,se.prototype.Qb=function(){return this.a>this.c},se.prototype.pastEnd=se.prototype.Qb,se.prototype.getError=function(){return this.v||0>this.a||this.a>this.c},se.prototype.getError=se.prototype.getError,se.prototype.w=function(e){for(var t=128,r=0,n=0,i=0;4>i&&128<=t;i++)r|=(127&(t=this.b[this.a++]))<<7*i;if(128<=t&&(r|=(127&(t=this.b[this.a++]))<<28,n|=(127&t)>>4),128<=t)for(i=0;5>i&&128<=t;i++)n|=(127&(t=this.b[this.a++]))<<7*i+3;if(128>t)return e(r>>>0,n>>>0);w("Failed to read varint, encoding is invalid."),this.v=!0},se.prototype.readSplitVarint64=se.prototype.w,se.prototype.ea=function(e){return this.w((function(t,r){return Z(t,r,e)}))},se.prototype.readSplitZigzagVarint64=se.prototype.ea,se.prototype.ta=function(e){var t=this.b,r=this.a;this.a+=8;for(var n=0,i=0,o=r+7;o>=r;o--)n=n<<8|t[o],i=i<<8|t[o+4];return e(n,i)},se.prototype.readSplitFixed64=se.prototype.ta,se.prototype.kb=function(){for(;128&this.b[this.a];)this.a++;this.a++},se.prototype.skipVarint=se.prototype.kb,se.prototype.mb=function(e){for(;128<e;)this.a--,e>>>=7;this.a--},se.prototype.unskipVarint=se.prototype.mb,se.prototype.o=function(){var e=this.b,t=e[this.a],r=127&t;return 128>t?(this.a+=1,b(this.a<=this.c),r):(r|=(127&(t=e[this.a+1]))<<7,128>t?(this.a+=2,b(this.a<=this.c),r):(r|=(127&(t=e[this.a+2]))<<14,128>t?(this.a+=3,b(this.a<=this.c),r):(r|=(127&(t=e[this.a+3]))<<21,128>t?(this.a+=4,b(this.a<=this.c),r):(r|=(15&(t=e[this.a+4]))<<28,128>t?(this.a+=5,b(this.a<=this.c),r>>>0):(this.a+=5,128<=e[this.a++]&&128<=e[this.a++]&&128<=e[this.a++]&&128<=e[this.a++]&&128<=e[this.a++]&&b(!1),b(this.a<=this.c),r)))))},se.prototype.readUnsignedVarint32=se.prototype.o,se.prototype.da=function(){return~~this.o()},se.prototype.readSignedVarint32=se.prototype.da,se.prototype.O=function(){return this.o().toString()},se.prototype.Ea=function(){return this.da().toString()},se.prototype.readSignedVarint32String=se.prototype.Ea,se.prototype.Ia=function(){var e=this.o();return e>>>1^-(1&e)},se.prototype.readZigzagVarint32=se.prototype.Ia,se.prototype.Ga=function(){return this.w(W)},se.prototype.readUnsignedVarint64=se.prototype.Ga,se.prototype.Ha=function(){return this.w(X)},se.prototype.readUnsignedVarint64String=se.prototype.Ha,se.prototype.sa=function(){return this.w(q)},se.prototype.readSignedVarint64=se.prototype.sa,se.prototype.Fa=function(){return this.w(Q)},se.prototype.readSignedVarint64String=se.prototype.Fa,se.prototype.Ja=function(){return this.w($)},se.prototype.readZigzagVarint64=se.prototype.Ja,se.prototype.fb=function(){return this.ea(K)},se.prototype.readZigzagVarintHash64=se.prototype.fb,se.prototype.Ka=function(){return this.ea(Q)},se.prototype.readZigzagVarint64String=se.prototype.Ka,se.prototype.Gc=function(){var e=this.b[this.a];return this.a+=1,b(this.a<=this.c),e},se.prototype.readUint8=se.prototype.Gc,se.prototype.Ec=function(){var e=this.b[this.a],t=this.b[this.a+1];return this.a+=2,b(this.a<=this.c),e<<0|t<<8},se.prototype.readUint16=se.prototype.Ec,se.prototype.m=function(){var e=this.b[this.a],t=this.b[this.a+1],r=this.b[this.a+2],n=this.b[this.a+3];return this.a+=4,b(this.a<=this.c),(e<<0|t<<8|r<<16|n<<24)>>>0},se.prototype.readUint32=se.prototype.m,se.prototype.ga=function(){return W(this.m(),this.m())},se.prototype.readUint64=se.prototype.ga,se.prototype.ha=function(){return X(this.m(),this.m())},se.prototype.readUint64String=se.prototype.ha,se.prototype.Xb=function(){var e=this.b[this.a];return this.a+=1,b(this.a<=this.c),e<<24>>24},se.prototype.readInt8=se.prototype.Xb,se.prototype.Vb=function(){var e=this.b[this.a],t=this.b[this.a+1];return this.a+=2,b(this.a<=this.c),(e<<0|t<<8)<<16>>16},se.prototype.readInt16=se.prototype.Vb,se.prototype.P=function(){var e=this.b[this.a],t=this.b[this.a+1],r=this.b[this.a+2],n=this.b[this.a+3];return this.a+=4,b(this.a<=this.c),e<<0|t<<8|r<<16|n<<24},se.prototype.readInt32=se.prototype.P,se.prototype.ba=function(){return q(this.m(),this.m())},se.prototype.readInt64=se.prototype.ba,se.prototype.ca=function(){return Q(this.m(),this.m())},se.prototype.readInt64String=se.prototype.ca,se.prototype.aa=function(){return Y(this.m())},se.prototype.readFloat=se.prototype.aa,se.prototype.Z=function(){return J(this.m(),this.m())},se.prototype.readDouble=se.prototype.Z,se.prototype.pa=function(){return!!this.b[this.a++]},se.prototype.readBool=se.prototype.pa,se.prototype.ra=function(){return this.da()},se.prototype.readEnum=se.prototype.ra,se.prototype.fa=function(e){var t=this.b,r=this.a;e=r+e;for(var n=[],i="";r<e;){var o=t[r++];if(128>o)n.push(o);else{if(192>o)continue;if(224>o){var s=t[r++];n.push((31&o)<<6|63&s)}else if(240>o){s=t[r++];var a=t[r++];n.push((15&o)<<12|(63&s)<<6|63&a)}else if(248>o){o=(7&o)<<18|(63&(s=t[r++]))<<12|(63&(a=t[r++]))<<6|63&t[r++],o-=65536,n.push(55296+(o>>10&1023),56320+(1023&o))}}8192<=n.length&&(i+=String.fromCharCode.apply(null,n),n.length=0)}return i+=P(n),this.a=r,i},se.prototype.readString=se.prototype.fa,se.prototype.Dc=function(){var e=this.o();return this.fa(e)},se.prototype.readStringWithLength=se.prototype.Dc,se.prototype.qa=function(e){if(0>e||this.a+e>this.b.length)return this.v=!0,w("Invalid byte length!"),new Uint8Array(0);var t=this.b.subarray(this.a,this.a+e);return this.a+=e,b(this.a<=this.c),t},se.prototype.readBytes=se.prototype.qa,se.prototype.ia=function(){return this.w(K)},se.prototype.readVarintHash64=se.prototype.ia,se.prototype.$=function(){var e=this.b,t=this.a,r=e[t],n=e[t+1],i=e[t+2],o=e[t+3],s=e[t+4],a=e[t+5],l=e[t+6];return e=e[t+7],this.a+=8,String.fromCharCode(r,n,i,o,s,a,l,e)},se.prototype.readFixedHash64=se.prototype.$,p("jspb.BinaryReader",ue,void 0);var ce=[];function pe(e,t,r){if(ce.length){var n=ce.pop();return e&&n.a.H(e,t,r),n}return new ue(e,t,r)}function fe(e,t){b(2==e.b);var r=e.a.o();r=e.a.B()+r;for(var n=[];e.a.B()<r;)n.push(t.call(e.a));return n}function he(e,t,r,n,i){this.ma=e,this.Ba=t,this.la=r,this.Na=n,this.na=i}function de(e,t,r,n,i,o){this.Za=e,this.za=t,this.Aa=r,this.Wa=n,this.Ab=i,this.Nb=o}function ge(){}ue.clearInstanceCache=function(){ce=[]},ue.getInstanceCacheLength=function(){return ce.length},ue.alloc=pe,ue.prototype.zb=pe,ue.prototype.alloc=ue.prototype.zb,ue.prototype.Ca=function(){this.a.clear(),this.b=this.c=-1,this.h=!1,this.v=null,100>ce.length&&ce.push(this)},ue.prototype.free=ue.prototype.Ca,ue.prototype.Fb=function(){return this.O},ue.prototype.getFieldCursor=ue.prototype.Fb,ue.prototype.B=function(){return this.a.B()},ue.prototype.getCursor=ue.prototype.B,ue.prototype.Y=function(){return this.a.Y()},ue.prototype.getBuffer=ue.prototype.Y,ue.prototype.Hb=function(){return this.c},ue.prototype.getFieldNumber=ue.prototype.Hb,ue.prototype.Lb=function(){return this.b},ue.prototype.getWireType=ue.prototype.Lb,ue.prototype.Mb=function(){return 2==this.b},ue.prototype.isDelimited=ue.prototype.Mb,ue.prototype.bb=function(){return 4==this.b},ue.prototype.isEndGroup=ue.prototype.bb,ue.prototype.getError=function(){return this.h||this.a.getError()},ue.prototype.getError=ue.prototype.getError,ue.prototype.H=function(e,t,r){this.a.H(e,t,r),this.b=this.c=-1},ue.prototype.setBlock=ue.prototype.H,ue.prototype.reset=function(){this.a.reset(),this.b=this.c=-1},ue.prototype.reset=ue.prototype.reset,ue.prototype.advance=function(e){this.a.advance(e)},ue.prototype.advance=ue.prototype.advance,ue.prototype.oa=function(){if(this.a.ya())return!1;if(this.getError())return w("Decoder hit an error"),!1;this.O=this.a.B();var e=this.a.o(),t=e>>>3;return 0!=(e&=7)&&5!=e&&1!=e&&2!=e&&3!=e&&4!=e?(w("Invalid wire type: %s (at position %s)",e,this.O),this.h=!0,!1):(this.c=t,this.b=e,!0)},ue.prototype.nextField=ue.prototype.oa,ue.prototype.Oa=function(){this.a.mb(this.c<<3|this.b)},ue.prototype.unskipHeader=ue.prototype.Oa,ue.prototype.Lc=function(){var e=this.c;for(this.Oa();this.oa()&&this.c==e;)this.C();this.a.ya()||this.Oa()},ue.prototype.skipMatchingFields=ue.prototype.Lc,ue.prototype.lb=function(){0!=this.b?(w("Invalid wire type for skipVarintField"),this.C()):this.a.kb()},ue.prototype.skipVarintField=ue.prototype.lb,ue.prototype.gb=function(){if(2!=this.b)w("Invalid wire type for skipDelimitedField"),this.C();else{var e=this.a.o();this.a.advance(e)}},ue.prototype.skipDelimitedField=ue.prototype.gb,ue.prototype.hb=function(){5!=this.b?(w("Invalid wire type for skipFixed32Field"),this.C()):this.a.advance(4)},ue.prototype.skipFixed32Field=ue.prototype.hb,ue.prototype.ib=function(){1!=this.b?(w("Invalid wire type for skipFixed64Field"),this.C()):this.a.advance(8)},ue.prototype.skipFixed64Field=ue.prototype.ib,ue.prototype.jb=function(){for(var e=this.c;;){if(!this.oa()){w("Unmatched start-group tag: stream EOF"),this.h=!0;break}if(4==this.b){this.c!=e&&(w("Unmatched end-group tag"),this.h=!0);break}this.C()}},ue.prototype.skipGroup=ue.prototype.jb,ue.prototype.C=function(){switch(this.b){case 0:this.lb();break;case 1:this.ib();break;case 2:this.gb();break;case 5:this.hb();break;case 3:this.jb();break;default:w("Invalid wire encoding for field.")}},ue.prototype.skipField=ue.prototype.C,ue.prototype.Hc=function(e,t){null===this.v&&(this.v={}),b(!this.v[e]),this.v[e]=t},ue.prototype.registerReadCallback=ue.prototype.Hc,ue.prototype.Ic=function(e){return b(null!==this.v),b(e=this.v[e]),e(this)},ue.prototype.runReadCallback=ue.prototype.Ic,ue.prototype.Yb=function(e,t){b(2==this.b);var r=this.a.c,n=this.a.o();n=this.a.B()+n,this.a.setEnd(n),t(e,this),this.a.Ma(n),this.a.setEnd(r)},ue.prototype.readMessage=ue.prototype.Yb,ue.prototype.Ub=function(e,t,r){b(3==this.b),b(this.c==e),r(t,this),this.h||4==this.b||(w("Group submessage did not end with an END_GROUP tag"),this.h=!0)},ue.prototype.readGroup=ue.prototype.Ub,ue.prototype.Gb=function(){b(2==this.b);var e=this.a.o(),t=this.a.B(),r=t+e;return e=le(this.a.Y(),t,e),this.a.Ma(r),e},ue.prototype.getFieldDecoder=ue.prototype.Gb,ue.prototype.P=function(){return b(0==this.b),this.a.da()},ue.prototype.readInt32=ue.prototype.P,ue.prototype.Wb=function(){return b(0==this.b),this.a.Ea()},ue.prototype.readInt32String=ue.prototype.Wb,ue.prototype.ba=function(){return b(0==this.b),this.a.sa()},ue.prototype.readInt64=ue.prototype.ba,ue.prototype.ca=function(){return b(0==this.b),this.a.Fa()},ue.prototype.readInt64String=ue.prototype.ca,ue.prototype.m=function(){return b(0==this.b),this.a.o()},ue.prototype.readUint32=ue.prototype.m,ue.prototype.Fc=function(){return b(0==this.b),this.a.O()},ue.prototype.readUint32String=ue.prototype.Fc,ue.prototype.ga=function(){return b(0==this.b),this.a.Ga()},ue.prototype.readUint64=ue.prototype.ga,ue.prototype.ha=function(){return b(0==this.b),this.a.Ha()},ue.prototype.readUint64String=ue.prototype.ha,ue.prototype.zc=function(){return b(0==this.b),this.a.Ia()},ue.prototype.readSint32=ue.prototype.zc,ue.prototype.Ac=function(){return b(0==this.b),this.a.Ja()},ue.prototype.readSint64=ue.prototype.Ac,ue.prototype.Bc=function(){return b(0==this.b),this.a.Ka()},ue.prototype.readSint64String=ue.prototype.Bc,ue.prototype.Rb=function(){return b(5==this.b),this.a.m()},ue.prototype.readFixed32=ue.prototype.Rb,ue.prototype.Sb=function(){return b(1==this.b),this.a.ga()},ue.prototype.readFixed64=ue.prototype.Sb,ue.prototype.Tb=function(){return b(1==this.b),this.a.ha()},ue.prototype.readFixed64String=ue.prototype.Tb,ue.prototype.vc=function(){return b(5==this.b),this.a.P()},ue.prototype.readSfixed32=ue.prototype.vc,ue.prototype.wc=function(){return b(5==this.b),this.a.P().toString()},ue.prototype.readSfixed32String=ue.prototype.wc,ue.prototype.xc=function(){return b(1==this.b),this.a.ba()},ue.prototype.readSfixed64=ue.prototype.xc,ue.prototype.yc=function(){return b(1==this.b),this.a.ca()},ue.prototype.readSfixed64String=ue.prototype.yc,ue.prototype.aa=function(){return b(5==this.b),this.a.aa()},ue.prototype.readFloat=ue.prototype.aa,ue.prototype.Z=function(){return b(1==this.b),this.a.Z()},ue.prototype.readDouble=ue.prototype.Z,ue.prototype.pa=function(){return b(0==this.b),!!this.a.o()},ue.prototype.readBool=ue.prototype.pa,ue.prototype.ra=function(){return b(0==this.b),this.a.sa()},ue.prototype.readEnum=ue.prototype.ra,ue.prototype.fa=function(){b(2==this.b);var e=this.a.o();return this.a.fa(e)},ue.prototype.readString=ue.prototype.fa,ue.prototype.qa=function(){b(2==this.b);var e=this.a.o();return this.a.qa(e)},ue.prototype.readBytes=ue.prototype.qa,ue.prototype.ia=function(){return b(0==this.b),this.a.ia()},ue.prototype.readVarintHash64=ue.prototype.ia,ue.prototype.Cc=function(){return b(0==this.b),this.a.fb()},ue.prototype.readSintHash64=ue.prototype.Cc,ue.prototype.w=function(e){return b(0==this.b),this.a.w(e)},ue.prototype.readSplitVarint64=ue.prototype.w,ue.prototype.ea=function(e){return b(0==this.b),this.a.w((function(t,r){return Z(t,r,e)}))},ue.prototype.readSplitZigzagVarint64=ue.prototype.ea,ue.prototype.$=function(){return b(1==this.b),this.a.$()},ue.prototype.readFixedHash64=ue.prototype.$,ue.prototype.ta=function(e){return b(1==this.b),this.a.ta(e)},ue.prototype.readSplitFixed64=ue.prototype.ta,ue.prototype.gc=function(){return fe(this,this.a.da)},ue.prototype.readPackedInt32=ue.prototype.gc,ue.prototype.hc=function(){return fe(this,this.a.Ea)},ue.prototype.readPackedInt32String=ue.prototype.hc,ue.prototype.ic=function(){return fe(this,this.a.sa)},ue.prototype.readPackedInt64=ue.prototype.ic,ue.prototype.jc=function(){return fe(this,this.a.Fa)},ue.prototype.readPackedInt64String=ue.prototype.jc,ue.prototype.qc=function(){return fe(this,this.a.o)},ue.prototype.readPackedUint32=ue.prototype.qc,ue.prototype.rc=function(){return fe(this,this.a.O)},ue.prototype.readPackedUint32String=ue.prototype.rc,ue.prototype.sc=function(){return fe(this,this.a.Ga)},ue.prototype.readPackedUint64=ue.prototype.sc,ue.prototype.tc=function(){return fe(this,this.a.Ha)},ue.prototype.readPackedUint64String=ue.prototype.tc,ue.prototype.nc=function(){return fe(this,this.a.Ia)},ue.prototype.readPackedSint32=ue.prototype.nc,ue.prototype.oc=function(){return fe(this,this.a.Ja)},ue.prototype.readPackedSint64=ue.prototype.oc,ue.prototype.pc=function(){return fe(this,this.a.Ka)},ue.prototype.readPackedSint64String=ue.prototype.pc,ue.prototype.bc=function(){return fe(this,this.a.m)},ue.prototype.readPackedFixed32=ue.prototype.bc,ue.prototype.cc=function(){return fe(this,this.a.ga)},ue.prototype.readPackedFixed64=ue.prototype.cc,ue.prototype.dc=function(){return fe(this,this.a.ha)},ue.prototype.readPackedFixed64String=ue.prototype.dc,ue.prototype.kc=function(){return fe(this,this.a.P)},ue.prototype.readPackedSfixed32=ue.prototype.kc,ue.prototype.lc=function(){return fe(this,this.a.ba)},ue.prototype.readPackedSfixed64=ue.prototype.lc,ue.prototype.mc=function(){return fe(this,this.a.ca)},ue.prototype.readPackedSfixed64String=ue.prototype.mc,ue.prototype.fc=function(){return fe(this,this.a.aa)},ue.prototype.readPackedFloat=ue.prototype.fc,ue.prototype.$b=function(){return fe(this,this.a.Z)},ue.prototype.readPackedDouble=ue.prototype.$b,ue.prototype.Zb=function(){return fe(this,this.a.pa)},ue.prototype.readPackedBool=ue.prototype.Zb,ue.prototype.ac=function(){return fe(this,this.a.ra)},ue.prototype.readPackedEnum=ue.prototype.ac,ue.prototype.uc=function(){return fe(this,this.a.ia)},ue.prototype.readPackedVarintHash64=ue.prototype.uc,ue.prototype.ec=function(){return fe(this,this.a.$)},ue.prototype.readPackedFixedHash64=ue.prototype.ec,p("jspb.ExtensionFieldInfo",he,void 0),p("jspb.ExtensionFieldBinaryInfo",de,void 0),he.prototype.F=function(){return!!this.la},he.prototype.isMessageType=he.prototype.F,p("jspb.Message",ge,void 0),ge.GENERATE_TO_OBJECT=!0,ge.GENERATE_FROM_OBJECT=!0;var ye="function"==typeof Uint8Array;ge.prototype.Ib=function(){return this.b},ge.prototype.getJsPbMessageId=ge.prototype.Ib,ge.initialize=function(e,t,r,n,i,o){if(e.f=null,t||(t=r?[r]:[]),e.b=r?String(r):void 0,e.D=0===r?-1:0,e.u=t,t=-1,!(r=e.u.length)||(t=r-1,null===(r=e.u[t])||"object"!=typeof r||Array.isArray(r)||ye&&r instanceof Uint8Array)?-1<n?(e.G=Math.max(n,t+1-e.D),e.i=null):e.G=Number.MAX_VALUE:(e.G=t-e.D,e.i=r),e.a={},i)for(n=0;n<i.length;n++)(t=i[n])<e.G?(t+=e.D,e.u[t]=e.u[t]||ve):(me(e),e.i[t]=e.i[t]||ve);if(o&&o.length)for(n=0;n<o.length;n++)Ae(e,o[n])};var ve=Object.freeze?Object.freeze([]):[];function me(e){var t=e.G+e.D;e.u[t]||(e.i=e.u[t]={})}function be(e,t,r){for(var n=[],i=0;i<e.length;i++)n[i]=t.call(e[i],r,e[i]);return n}function we(e,t){if(t<e.G){t+=e.D;var r=e.u[t];return r===ve?e.u[t]=[]:r}if(e.i)return(r=e.i[t])===ve?e.i[t]=[]:r}function Se(e,t){return null==(e=we(e,t))?e:+e}function _e(e,t){return null==(e=we(e,t))?e:!!e}function Ee(e){return null==e||"string"==typeof e?e:ye&&e instanceof Uint8Array?k(e):(w("Cannot coerce to b64 string: "+f(e)),null)}function Oe(e){return null==e||e instanceof Uint8Array?e:"string"==typeof e?M(e):(w("Cannot coerce to Uint8Array: "+f(e)),null)}function Re(e){if(e&&1<e.length){var t=f(e[0]);g(e,(function(e){f(e)!=t&&w("Inconsistent type in JSPB repeated field array. Got "+f(e)+" expected "+t)}))}}function Te(e,t,r){return null==(e=we(e,t))?r:e}function je(e,t,r){return S(e,ge),t<e.G?e.u[t+e.D]=r:(me(e),e.i[t]=r),e}function Pe(e,t,r,n){return S(e,ge),r!==n?je(e,t,r):t<e.G?e.u[t+e.D]=null:(me(e),delete e.i[t]),e}function xe(e,t,r,n){return S(e,ge),(r=Ae(e,r))&&r!==t&&void 0!==n&&(e.f&&r in e.f&&(e.f[r]=void 0),je(e,r,void 0)),je(e,t,n)}function Ae(e,t){for(var r,n,i=0;i<t.length;i++){var o=t[i],s=we(e,o);null!=s&&(r=o,n=s,je(e,o,void 0))}return r?(je(e,r,n),r):0}function Ie(e,t,r){if(e.f||(e.f={}),!e.f[r]){for(var n=we(e,r),i=[],o=0;o<n.length;o++)i[o]=new t(n[o]);e.f[r]=i}}function Ce(e){if(e.f)for(var t in e.f){var r=e.f[t];if(Array.isArray(r))for(var n=0;n<r.length;n++)r[n]&&r[n].g();else r&&r.g()}}function ke(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(!Me(e[r],t[r]))return!1;return!0}function Me(e,t){if(e==t)return!0;if(!h(e)||!h(t))return!!("number"==typeof e&&isNaN(e)||"number"==typeof t&&isNaN(t))&&String(e)==String(t);if(e.constructor!=t.constructor)return!1;if(ye&&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,o=Math.max(e.length,t.length);for(r=0;r<o;r++){var s=e[r],a=t[r];if(s&&s.constructor==Object&&(b(void 0===n),b(r===e.length-1),n=s,s=void 0),a&&a.constructor==Object&&(b(void 0===i),b(r===t.length-1),i=a,a=void 0),!Me(s,a))return!1}return!n&&!i||ke(n=n||{},i=i||{})}if(e.constructor===Object)return ke(e,t);throw Error("Invalid type in JSPB array")}function Fe(e){return new e.constructor(function e(t){if(Array.isArray(t)){for(var r=Array(t.length),n=0;n<t.length;n++){var i=t[n];null!=i&&(r[n]="object"==typeof i?e(b(i)):i)}return r}if(ye&&t instanceof Uint8Array)return new Uint8Array(t);for(n in r={},t)null!=(i=t[n])&&(r[n]="object"==typeof i?e(b(i)):i);return r}(e.g()))}ge.toObjectList=be,ge.toObjectExtension=function(e,t,r,n,i){for(var o in r){var s=r[o],a=n.call(e,s);if(null!=a){for(var l in s.Ba)if(s.Ba.hasOwnProperty(l))break;t[l]=s.Na?s.na?be(a,s.Na,i):s.Na(i,a):a}}},ge.serializeBinaryExtensions=function(e,t,r,n){for(var i in r){var o=r[i],s=o.Za;if(!o.Aa)throw Error("Message extension present that was generated without binary serialization support");var a=n.call(e,s);if(null!=a)if(s.F()){if(!o.Wa)throw Error("Message extension present holding submessage without binary support enabled, and message is being serialized to binary format");o.Aa.call(t,s.ma,a,o.Wa)}else o.Aa.call(t,s.ma,a)}},ge.readBinaryExtension=function(e,t,r,n,i){var o=r[t.c];if(o){if(r=o.Za,!o.za)throw Error("Deserializing extension whose generated code does not support binary format");if(r.F()){var s=new r.la;o.za.call(t,s,o.Ab)}else s=o.za.call(t);r.na&&!o.Nb?(t=n.call(e,r))?t.push(s):i.call(e,r,[s]):i.call(e,r,s)}else t.C()},ge.getField=we,ge.getRepeatedField=function(e,t){return we(e,t)},ge.getOptionalFloatingPointField=Se,ge.getBooleanField=_e,ge.getRepeatedFloatingPointField=function(e,t){var r=we(e,t);if(e.a||(e.a={}),!e.a[t]){for(var n=0;n<r.length;n++)r[n]=+r[n];e.a[t]=!0}return r},ge.getRepeatedBooleanField=function(e,t){var r=we(e,t);if(e.a||(e.a={}),!e.a[t]){for(var n=0;n<r.length;n++)r[n]=!!r[n];e.a[t]=!0}return r},ge.bytesAsB64=Ee,ge.bytesAsU8=Oe,ge.bytesListAsB64=function(e){return Re(e),e.length&&"string"!=typeof e[0]?y(e,Ee):e},ge.bytesListAsU8=function(e){return Re(e),!e.length||e[0]instanceof Uint8Array?e:y(e,Oe)},ge.getFieldWithDefault=Te,ge.getBooleanFieldWithDefault=function(e,t,r){return null==(e=_e(e,t))?r:e},ge.getFloatingPointFieldWithDefault=function(e,t,r){return null==(e=Se(e,t))?r:e},ge.getFieldProto3=Te,ge.getMapField=function(e,t,r,n){if(e.f||(e.f={}),t in e.f)return e.f[t];var i=we(e,t);if(!i){if(r)return;je(e,t,i=[])}return e.f[t]=new E(i,n)},ge.setField=je,ge.setProto3IntField=function(e,t,r){return Pe(e,t,r,0)},ge.setProto3FloatField=function(e,t,r){return Pe(e,t,r,0)},ge.setProto3BooleanField=function(e,t,r){return Pe(e,t,r,!1)},ge.setProto3StringField=function(e,t,r){return Pe(e,t,r,"")},ge.setProto3BytesField=function(e,t,r){return Pe(e,t,r,"")},ge.setProto3EnumField=function(e,t,r){return Pe(e,t,r,0)},ge.setProto3StringIntField=function(e,t,r){return Pe(e,t,r,"0")},ge.addToRepeatedField=function(e,t,r,n){return S(e,ge),t=we(e,t),null!=n?t.splice(n,0,r):t.push(r),e},ge.setOneofField=xe,ge.computeOneofCase=Ae,ge.getWrapperField=function(e,t,r,n){if(e.f||(e.f={}),!e.f[r]){var i=we(e,r);(n||i)&&(e.f[r]=new t(i))}return e.f[r]},ge.getRepeatedWrapperField=function(e,t,r){return Ie(e,t,r),(t=e.f[r])==ve&&(t=e.f[r]=[]),t},ge.setWrapperField=function(e,t,r){S(e,ge),e.f||(e.f={});var n=r?r.g():r;return e.f[t]=r,je(e,t,n)},ge.setOneofWrapperField=function(e,t,r,n){S(e,ge),e.f||(e.f={});var i=n?n.g():n;return e.f[t]=n,xe(e,t,r,i)},ge.setRepeatedWrapperField=function(e,t,r){S(e,ge),e.f||(e.f={}),r=r||[];for(var n=[],i=0;i<r.length;i++)n[i]=r[i].g();return e.f[t]=r,je(e,t,n)},ge.addToRepeatedWrapperField=function(e,t,r,n,i){Ie(e,n,t);var o=e.f[t];return o||(o=e.f[t]=[]),r=r||new n,e=we(e,t),null!=i?(o.splice(i,0,r),e.splice(i,0,r.g())):(o.push(r),e.push(r.g())),r},ge.toMap=function(e,t,r,n){for(var i={},o=0;o<e.length;o++)i[t.call(e[o])]=r?r.call(e[o],n,e[o]):e[o];return i},ge.prototype.g=function(){return Ce(this),this.u},ge.prototype.toArray=ge.prototype.g,ge.prototype.toString=function(){return Ce(this),this.u.toString()},ge.prototype.getExtension=function(e){if(this.i){this.f||(this.f={});var t=e.ma;if(e.na){if(e.F())return this.f[t]||(this.f[t]=y(this.i[t]||[],(function(t){return new e.la(t)}))),this.f[t]}else if(e.F())return!this.f[t]&&this.i[t]&&(this.f[t]=new e.la(this.i[t])),this.f[t];return this.i[t]}},ge.prototype.getExtension=ge.prototype.getExtension,ge.prototype.Kc=function(e,t){this.f||(this.f={}),me(this);var r=e.ma;return e.na?(t=t||[],e.F()?(this.f[r]=t,this.i[r]=y(t,(function(e){return e.g()}))):this.i[r]=t):e.F()?(this.f[r]=t,this.i[r]=t?t.g():t):this.i[r]=t,this},ge.prototype.setExtension=ge.prototype.Kc,ge.difference=function(e,t){if(!(e instanceof t.constructor))throw Error("Messages have different types.");var r=e.g();t=t.g();var n=[],i=0,o=r.length>t.length?r.length:t.length;for(e.b&&(n[0]=e.b,i=1);i<o;i++)Me(r[i],t[i])||(n[i]=t[i]);return new e.constructor(n)},ge.equals=function(e,t){return e==t||!(!e||!t)&&e instanceof t.constructor&&Me(e.g(),t.g())},ge.compareExtensions=ke,ge.compareFields=Me,ge.prototype.Bb=function(){return Fe(this)},ge.prototype.cloneMessage=ge.prototype.Bb,ge.prototype.clone=function(){return Fe(this)},ge.prototype.clone=ge.prototype.clone,ge.clone=function(e){return Fe(e)},ge.copyInto=function(e,t){S(e,ge),S(t,ge),b(e.constructor==t.constructor,"Copy source and target message should have the same type."),e=Fe(e);for(var r=t.g(),n=e.g(),i=r.length=0;i<n.length;i++)r[i]=n[i];t.f=e.f,t.i=e.i},ge.registerMessageType=function(e,t){t.we=e};var Be={dump:function(e){return S(e,ge,"jspb.Message instance expected"),b(e.getExtension,"Only unobfuscated and unoptimized compilation modes supported."),Be.X(e)}};function De(){this.a=[]}function Le(e,t){this.lo=e,this.hi=t}function Ne(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 Le(t>>>0,r>>>0)}function ze(e){for(var t=new Le(0,0),r=new Le(0,0),n=0;n<e.length;n++){if("0">e[n]||"9"<e[n])return null;r.lo=parseInt(e[n],10),t=t.eb(10).add(r)}return t}function Ue(e,t){this.lo=e,this.hi=t}function Ge(e){var t=0<e.length&&"-"==e[0];return t&&(e=e.substring(1)),null===(e=ze(e))?null:(t&&(e=new Le(0,0).sub(e)),new Ue(e.lo,e.hi))}function Ve(){this.c=[],this.b=0,this.a=new De,this.h=[]}function We(e,t){var r=e.a.end();e.c.push(r),e.c.push(t),e.b+=r.length+t.length}function qe(e,t){return $e(e,t,2),t=e.a.end(),e.c.push(t),e.b+=t.length,t.push(e.b),t}function He(e,t){var r=t.pop();for(b(0<=(r=e.b+e.a.length()-r));127<r;)t.push(127&r|128),r>>>=7,e.b++;t.push(r),e.b++}function $e(e,t,r){b(1<=t&&t==Math.floor(t)),e.a.j(8*t+r)}function Ze(e,t,r){null!=r&&($e(e,t,0),e.a.j(r))}function Ye(e,t,r){null!=r&&($e(e,t,0),e.a.M(r))}p("jspb.debug.dump",Be.dump,void 0),Be.X=function(e){var t=f(e);if("number"==t||"string"==t||"boolean"==t||"null"==t||"undefined"==t||"undefined"!=typeof Uint8Array&&e instanceof Uint8Array)return e;if("array"==t)return function(e,t,r){for(var n=[],i=2;i<arguments.length;++i)n[i-2]=arguments[i];Array.isArray(e)||m("Expected array but got %s: %s.",[f(e),e],t,n)}(e),y(e,Be.X);if(e instanceof E){for(var r={},n=(e=e.entries()).next();!n.done;n=e.next())r[n.value[0]]=Be.X(n.value[1]);return r}S(e,ge,"Only messages expected: "+e);var i={$name:(t=e.constructor).name||t.displayName};for(a in t.prototype){var o=/^get([A-Z]\w*)/.exec(a);if(o&&"getExtension"!=a&&"getJsPbMessageId"!=a){var s="has"+o[1];e[s]&&!e[s]()||(s=e[a](),i[Be.$a(o[1])]=Be.X(s))}}if(e.extensionObject_)return i.$extensions="Recursive dumping of extensions not supported in compiled code. Switch to uncompiled or dump extension object directly",i;for(n in t.extensions)if(/^\d+$/.test(n)){s=t.extensions[n];var a=e.getExtension(s);o=void 0,s=s.Ba;var l=[],u=0;for(o in s)l[u++]=o;o=l[0],null!=a&&(r||(r=i.$extensions={}),r[Be.$a(o)]=Be.X(a))}return i},Be.$a=function(e){return e.replace(/^[A-Z]/,(function(e){return e.toLowerCase()}))},p("jspb.BinaryEncoder",De,void 0),De.prototype.length=function(){return this.a.length},De.prototype.length=De.prototype.length,De.prototype.end=function(){var e=this.a;return this.a=[],e},De.prototype.end=De.prototype.end,De.prototype.l=function(e,t){for(b(e==Math.floor(e)),b(t==Math.floor(t)),b(0<=e&&4294967296>e),b(0<=t&&4294967296>t);0<t||127<e;)this.a.push(127&e|128),e=(e>>>7|t<<25)>>>0,t>>>=7;this.a.push(e)},De.prototype.writeSplitVarint64=De.prototype.l,De.prototype.A=function(e,t){b(e==Math.floor(e)),b(t==Math.floor(t)),b(0<=e&&4294967296>e),b(0<=t&&4294967296>t),this.s(e),this.s(t)},De.prototype.writeSplitFixed64=De.prototype.A,De.prototype.j=function(e){for(b(e==Math.floor(e)),b(0<=e&&4294967296>e);127<e;)this.a.push(127&e|128),e>>>=7;this.a.push(e)},De.prototype.writeUnsignedVarint32=De.prototype.j,De.prototype.M=function(e){if(b(e==Math.floor(e)),b(-2147483648<=e&&2147483648>e),0<=e)this.j(e);else{for(var t=0;9>t;t++)this.a.push(127&e|128),e>>=7;this.a.push(1)}},De.prototype.writeSignedVarint32=De.prototype.M,De.prototype.va=function(e){b(e==Math.floor(e)),b(0<=e&&0x10000000000000000>e),N(e),this.l(B,D)},De.prototype.writeUnsignedVarint64=De.prototype.va,De.prototype.ua=function(e){b(e==Math.floor(e)),b(-0x8000000000000000<=e&&0x8000000000000000>e),N(e),this.l(B,D)},De.prototype.writeSignedVarint64=De.prototype.ua,De.prototype.wa=function(e){b(e==Math.floor(e)),b(-2147483648<=e&&2147483648>e),this.j((e<<1^e>>31)>>>0)},De.prototype.writeZigzagVarint32=De.prototype.wa,De.prototype.xa=function(e){b(e==Math.floor(e)),b(-0x8000000000000000<=e&&0x8000000000000000>e),z(e),this.l(B,D)},De.prototype.writeZigzagVarint64=De.prototype.xa,De.prototype.Ta=function(e){this.W(te(e))},De.prototype.writeZigzagVarint64String=De.prototype.Ta,De.prototype.W=function(e){var t=this;V(e),H(B,D,(function(e,r){t.l(e>>>0,r>>>0)}))},De.prototype.writeZigzagVarintHash64=De.prototype.W,De.prototype.be=function(e){b(e==Math.floor(e)),b(0<=e&&256>e),this.a.push(e>>>0&255)},De.prototype.writeUint8=De.prototype.be,De.prototype.ae=function(e){b(e==Math.floor(e)),b(0<=e&&65536>e),this.a.push(e>>>0&255),this.a.push(e>>>8&255)},De.prototype.writeUint16=De.prototype.ae,De.prototype.s=function(e){b(e==Math.floor(e)),b(0<=e&&4294967296>e),this.a.push(e>>>0&255),this.a.push(e>>>8&255),this.a.push(e>>>16&255),this.a.push(e>>>24&255)},De.prototype.writeUint32=De.prototype.s,De.prototype.V=function(e){b(e==Math.floor(e)),b(0<=e&&0x10000000000000000>e),L(e),this.s(B),this.s(D)},De.prototype.writeUint64=De.prototype.V,De.prototype.Qc=function(e){b(e==Math.floor(e)),b(-128<=e&&128>e),this.a.push(e>>>0&255)},De.prototype.writeInt8=De.prototype.Qc,De.prototype.Pc=function(e){b(e==Math.floor(e)),b(-32768<=e&&32768>e),this.a.push(e>>>0&255),this.a.push(e>>>8&255)},De.prototype.writeInt16=De.prototype.Pc,De.prototype.S=function(e){b(e==Math.floor(e)),b(-2147483648<=e&&2147483648>e),this.a.push(e>>>0&255),this.a.push(e>>>8&255),this.a.push(e>>>16&255),this.a.push(e>>>24&255)},De.prototype.writeInt32=De.prototype.S,De.prototype.T=function(e){b(e==Math.floor(e)),b(-0x8000000000000000<=e&&0x8000000000000000>e),N(e),this.A(B,D)},De.prototype.writeInt64=De.prototype.T,De.prototype.ka=function(e){b(e==Math.floor(e)),b(-0x8000000000000000<=+e&&0x8000000000000000>+e),V(te(e)),this.A(B,D)},De.prototype.writeInt64String=De.prototype.ka,De.prototype.L=function(e){b(1/0===e||-1/0===e||isNaN(e)||-34028234663852886e22<=e&&34028234663852886e22>=e),U(e),this.s(B)},De.prototype.writeFloat=De.prototype.L,De.prototype.J=function(e){b(1/0===e||-1/0===e||isNaN(e)||-17976931348623157e292<=e&&17976931348623157e292>=e),G(e),this.s(B),this.s(D)},De.prototype.writeDouble=De.prototype.J,De.prototype.I=function(e){b("boolean"==typeof e||"number"==typeof e),this.a.push(e?1:0)},De.prototype.writeBool=De.prototype.I,De.prototype.R=function(e){b(e==Math.floor(e)),b(-2147483648<=e&&2147483648>e),this.M(e)},De.prototype.writeEnum=De.prototype.R,De.prototype.ja=function(e){this.a.push.apply(this.a,e)},De.prototype.writeBytes=De.prototype.ja,De.prototype.N=function(e){V(e),this.l(B,D)},De.prototype.writeVarintHash64=De.prototype.N,De.prototype.K=function(e){V(e),this.s(B),this.s(D)},De.prototype.writeFixedHash64=De.prototype.K,De.prototype.U=function(e){var t=this.a.length;!function(e,t,r){for(var n=[],i=2;i<arguments.length;++i)n[i-2]=arguments[i];"string"!=typeof e&&m("Expected string but got %s: %s.",[f(e),e],t,n)}(e);for(var r=0;r<e.length;r++){var n=e.charCodeAt(r);if(128>n)this.a.push(n);else if(2048>n)this.a.push(n>>6|192),this.a.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.a.push(n>>18|240),this.a.push(n>>12&63|128),this.a.push(n>>6&63|128),this.a.push(63&n|128),r++)}else this.a.push(n>>12|224),this.a.push(n>>6&63|128),this.a.push(63&n|128)}return this.a.length-t},De.prototype.writeString=De.prototype.U,p("jspb.arith.UInt64",Le,void 0),Le.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},Le.prototype.cmp=Le.prototype.cmp,Le.prototype.La=function(){return new Le((this.lo>>>1|(1&this.hi)<<31)>>>0,this.hi>>>1>>>0)},Le.prototype.rightShift=Le.prototype.La,Le.prototype.Da=function(){return new Le(this.lo<<1>>>0,(this.hi<<1|this.lo>>>31)>>>0)},Le.prototype.leftShift=Le.prototype.Da,Le.prototype.cb=function(){return!!(2147483648&this.hi)},Le.prototype.msb=Le.prototype.cb,Le.prototype.Ob=function(){return!!(1&this.lo)},Le.prototype.lsb=Le.prototype.Ob,Le.prototype.Ua=function(){return 0==this.lo&&0==this.hi},Le.prototype.zero=Le.prototype.Ua,Le.prototype.add=function(e){return new Le((this.lo+e.lo&4294967295)>>>0>>>0,((this.hi+e.hi&4294967295)>>>0)+(4294967296<=this.lo+e.lo?1:0)>>>0)},Le.prototype.add=Le.prototype.add,Le.prototype.sub=function(e){return new Le((this.lo-e.lo&4294967295)>>>0>>>0,((this.hi-e.hi&4294967295)>>>0)-(0>this.lo-e.lo?1:0)>>>0)},Le.prototype.sub=Le.prototype.sub,Le.mul32x32=Ne,Le.prototype.eb=function(e){var t=Ne(this.lo,e);return(e=Ne(this.hi,e)).hi=e.lo,e.lo=0,t.add(e)},Le.prototype.mul=Le.prototype.eb,Le.prototype.Xa=function(e){if(0==e)return[];var t=new Le(0,0),r=new Le(this.lo,this.hi);e=new Le(e,0);for(var n=new Le(1,0);!e.cb();)e=e.Da(),n=n.Da();for(;!n.Ua();)0>=e.cmp(r)&&(t=t.add(n),r=r.sub(e)),e=e.La(),n=n.La();return[t,r]},Le.prototype.div=Le.prototype.Xa,Le.prototype.toString=function(){for(var e="",t=this;!t.Ua();){var r=(t=t.Xa(10))[0];e=t[1].lo+e,t=r}return""==e&&(e="0"),e},Le.prototype.toString=Le.prototype.toString,Le.fromString=ze,Le.prototype.clone=function(){return new Le(this.lo,this.hi)},Le.prototype.clone=Le.prototype.clone,p("jspb.arith.Int64",Ue,void 0),Ue.prototype.add=function(e){return new Ue((this.lo+e.lo&4294967295)>>>0>>>0,((this.hi+e.hi&4294967295)>>>0)+(4294967296<=this.lo+e.lo?1:0)>>>0)},Ue.prototype.add=Ue.prototype.add,Ue.prototype.sub=function(e){return new Ue((this.lo-e.lo&4294967295)>>>0>>>0,((this.hi-e.hi&4294967295)>>>0)-(0>this.lo-e.lo?1:0)>>>0)},Ue.prototype.sub=Ue.prototype.sub,Ue.prototype.clone=function(){return new Ue(this.lo,this.hi)},Ue.prototype.clone=Ue.prototype.clone,Ue.prototype.toString=function(){var e=0!=(2147483648&this.hi),t=new Le(this.lo,this.hi);return e&&(t=new Le(0,0).sub(t)),(e?"-":"")+t.toString()},Ue.prototype.toString=Ue.prototype.toString,Ue.fromString=Ge,p("jspb.BinaryWriter",Ve,void 0),Ve.prototype.pb=function(e,t,r){We(this,e.subarray(t,r))},Ve.prototype.writeSerializedMessage=Ve.prototype.pb,Ve.prototype.Pb=function(e,t,r){null!=e&&null!=t&&null!=r&&this.pb(e,t,r)},Ve.prototype.maybeWriteSerializedMessage=Ve.prototype.Pb,Ve.prototype.reset=function(){this.c=[],this.a.end(),this.b=0,this.h=[]},Ve.prototype.reset=Ve.prototype.reset,Ve.prototype.ab=function(){b(0==this.h.length);for(var e=new Uint8Array(this.b+this.a.length()),t=this.c,r=t.length,n=0,i=0;i<r;i++){var o=t[i];e.set(o,n),n+=o.length}return t=this.a.end(),e.set(t,n),b((n+=t.length)==e.length),this.c=[e],e},Ve.prototype.getResultBuffer=Ve.prototype.ab,Ve.prototype.Kb=function(e){return k(this.ab(),e)},Ve.prototype.getResultBase64String=Ve.prototype.Kb,Ve.prototype.Va=function(e){this.h.push(qe(this,e))},Ve.prototype.beginSubMessage=Ve.prototype.Va,Ve.prototype.Ya=function(){b(0<=this.h.length),He(this,this.h.pop())},Ve.prototype.endSubMessage=Ve.prototype.Ya,Ve.prototype.Nc=function(e,t,r){switch(e){case 1:this.J(t,r);break;case 2:this.L(t,r);break;case 3:this.T(t,r);break;case 4:this.V(t,r);break;case 5:this.S(t,r);break;case 6:this.Qa(t,r);break;case 7:this.Pa(t,r);break;case 8:this.I(t,r);break;case 9:this.U(t,r);break;case 10:w("Group field type not supported in writeAny()");break;case 11:w("Message field type not supported in writeAny()");break;case 12:this.ja(t,r);break;case 13:this.s(t,r);break;case 14:this.R(t,r);break;case 15:this.Ra(t,r);break;case 16:this.Sa(t,r);break;case 17:this.rb(t,r);break;case 18:this.sb(t,r);break;case 30:this.K(t,r);break;case 31:this.N(t,r);break;default:w("Invalid field type in writeAny()")}},Ve.prototype.writeAny=Ve.prototype.Nc,Ve.prototype.S=function(e,t){null!=t&&(b(-2147483648<=t&&2147483648>t),Ye(this,e,t))},Ve.prototype.writeInt32=Ve.prototype.S,Ve.prototype.ob=function(e,t){null!=t&&(b(-2147483648<=(t=parseInt(t,10))&&2147483648>t),Ye(this,e,t))},Ve.prototype.writeInt32String=Ve.prototype.ob,Ve.prototype.T=function(e,t){null!=t&&(b(-0x8000000000000000<=t&&0x8000000000000000>t),null!=t&&($e(this,e,0),this.a.ua(t)))},Ve.prototype.writeInt64=Ve.prototype.T,Ve.prototype.ka=function(e,t){null!=t&&(t=Ge(t),$e(this,e,0),this.a.l(t.lo,t.hi))},Ve.prototype.writeInt64String=Ve.prototype.ka,Ve.prototype.s=function(e,t){null!=t&&(b(0<=t&&4294967296>t),Ze(this,e,t))},Ve.prototype.writeUint32=Ve.prototype.s,Ve.prototype.ub=function(e,t){null!=t&&(b(0<=(t=parseInt(t,10))&&4294967296>t),Ze(this,e,t))},Ve.prototype.writeUint32String=Ve.prototype.ub,Ve.prototype.V=function(e,t){null!=t&&(b(0<=t&&0x10000000000000000>t),null!=t&&($e(this,e,0),this.a.va(t)))},Ve.prototype.writeUint64=Ve.prototype.V,Ve.prototype.vb=function(e,t){null!=t&&(t=ze(t),$e(this,e,0),this.a.l(t.lo,t.hi))},Ve.prototype.writeUint64String=Ve.prototype.vb,Ve.prototype.rb=function(e,t){null!=t&&(b(-2147483648<=t&&2147483648>t),null!=t&&($e(this,e,0),this.a.wa(t)))},Ve.prototype.writeSint32=Ve.prototype.rb,Ve.prototype.sb=function(e,t){null!=t&&(b(-0x8000000000000000<=t&&0x8000000000000000>t),null!=t&&($e(this,e,0),this.a.xa(t)))},Ve.prototype.writeSint64=Ve.prototype.sb,Ve.prototype.$d=function(e,t){null!=t&&null!=t&&($e(this,e,0),this.a.W(t))},Ve.prototype.writeSintHash64=Ve.prototype.$d,Ve.prototype.Zd=function(e,t){null!=t&&null!=t&&($e(this,e,0),this.a.Ta(t))},Ve.prototype.writeSint64String=Ve.prototype.Zd,Ve.prototype.Pa=function(e,t){null!=t&&(b(0<=t&&4294967296>t),$e(this,e,5),this.a.s(t))},Ve.prototype.writeFixed32=Ve.prototype.Pa,Ve.prototype.Qa=function(e,t){null!=t&&(b(0<=t&&0x10000000000000000>t),$e(this,e,1),this.a.V(t))},Ve.prototype.writeFixed64=Ve.prototype.Qa,Ve.prototype.nb=function(e,t){null!=t&&(t=ze(t),$e(this,e,1),this.a.A(t.lo,t.hi))},Ve.prototype.writeFixed64String=Ve.prototype.nb,Ve.prototype.Ra=function(e,t){null!=t&&(b(-2147483648<=t&&2147483648>t),$e(this,e,5),this.a.S(t))},Ve.prototype.writeSfixed32=Ve.prototype.Ra,Ve.prototype.Sa=function(e,t){null!=t&&(b(-0x8000000000000000<=t&&0x8000000000000000>t),$e(this,e,1),this.a.T(t))},Ve.prototype.writeSfixed64=Ve.prototype.Sa,Ve.prototype.qb=function(e,t){null!=t&&(t=Ge(t),$e(this,e,1),this.a.A(t.lo,t.hi))},Ve.prototype.writeSfixed64String=Ve.prototype.qb,Ve.prototype.L=function(e,t){null!=t&&($e(this,e,5),this.a.L(t))},Ve.prototype.writeFloat=Ve.prototype.L,Ve.prototype.J=function(e,t){null!=t&&($e(this,e,1),this.a.J(t))},Ve.prototype.writeDouble=Ve.prototype.J,Ve.prototype.I=function(e,t){null!=t&&(b("boolean"==typeof t||"number"==typeof t),$e(this,e,0),this.a.I(t))},Ve.prototype.writeBool=Ve.prototype.I,Ve.prototype.R=function(e,t){null!=t&&(b(-2147483648<=t&&2147483648>t),$e(this,e,0),this.a.M(t))},Ve.prototype.writeEnum=Ve.prototype.R,Ve.prototype.U=function(e,t){null!=t&&(e=qe(this,e),this.a.U(t),He(this,e))},Ve.prototype.writeString=Ve.prototype.U,Ve.prototype.ja=function(e,t){null!=t&&(t=oe(t),$e(this,e,2),this.a.j(t.length),We(this,t))},Ve.prototype.writeBytes=Ve.prototype.ja,Ve.prototype.Rc=function(e,t,r){null!=t&&(e=qe(this,e),r(t,this),He(this,e))},Ve.prototype.writeMessage=Ve.prototype.Rc,Ve.prototype.Sc=function(e,t,r){null!=t&&($e(this,1,3),$e(this,2,0),this.a.M(e),e=qe(this,3),r(t,this),He(this,e),$e(this,1,4))},Ve.prototype.writeMessageSet=Ve.prototype.Sc,Ve.prototype.Oc=function(e,t,r){null!=t&&($e(this,e,3),r(t,this),$e(this,e,4))},Ve.prototype.writeGroup=Ve.prototype.Oc,Ve.prototype.K=function(e,t){null!=t&&(b(8==t.length),$e(this,e,1),this.a.K(t))},Ve.prototype.writeFixedHash64=Ve.prototype.K,Ve.prototype.N=function(e,t){null!=t&&(b(8==t.length),$e(this,e,0),this.a.N(t))},Ve.prototype.writeVarintHash64=Ve.prototype.N,Ve.prototype.A=function(e,t,r){$e(this,e,1),this.a.A(t,r)},Ve.prototype.writeSplitFixed64=Ve.prototype.A,Ve.prototype.l=function(e,t,r){$e(this,e,0),this.a.l(t,r)},Ve.prototype.writeSplitVarint64=Ve.prototype.l,Ve.prototype.tb=function(e,t,r){$e(this,e,0);var n=this.a;H(t,r,(function(e,t){n.l(e>>>0,t>>>0)}))},Ve.prototype.writeSplitZigzagVarint64=Ve.prototype.tb,Ve.prototype.Ed=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)Ye(this,e,t[r])},Ve.prototype.writeRepeatedInt32=Ve.prototype.Ed,Ve.prototype.Fd=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.ob(e,t[r])},Ve.prototype.writeRepeatedInt32String=Ve.prototype.Fd,Ve.prototype.Gd=function(e,t){if(null!=t)for(var r=0;r<t.length;r++){var n=t[r];null!=n&&($e(this,e,0),this.a.ua(n))}},Ve.prototype.writeRepeatedInt64=Ve.prototype.Gd,Ve.prototype.Qd=function(e,t,r,n){if(null!=t)for(var i=0;i<t.length;i++)this.A(e,r(t[i]),n(t[i]))},Ve.prototype.writeRepeatedSplitFixed64=Ve.prototype.Qd,Ve.prototype.Rd=function(e,t,r,n){if(null!=t)for(var i=0;i<t.length;i++)this.l(e,r(t[i]),n(t[i]))},Ve.prototype.writeRepeatedSplitVarint64=Ve.prototype.Rd,Ve.prototype.Sd=function(e,t,r,n){if(null!=t)for(var i=0;i<t.length;i++)this.tb(e,r(t[i]),n(t[i]))},Ve.prototype.writeRepeatedSplitZigzagVarint64=Ve.prototype.Sd,Ve.prototype.Hd=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.ka(e,t[r])},Ve.prototype.writeRepeatedInt64String=Ve.prototype.Hd,Ve.prototype.Ud=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)Ze(this,e,t[r])},Ve.prototype.writeRepeatedUint32=Ve.prototype.Ud,Ve.prototype.Vd=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.ub(e,t[r])},Ve.prototype.writeRepeatedUint32String=Ve.prototype.Vd,Ve.prototype.Wd=function(e,t){if(null!=t)for(var r=0;r<t.length;r++){var n=t[r];null!=n&&($e(this,e,0),this.a.va(n))}},Ve.prototype.writeRepeatedUint64=Ve.prototype.Wd,Ve.prototype.Xd=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.vb(e,t[r])},Ve.prototype.writeRepeatedUint64String=Ve.prototype.Xd,Ve.prototype.Md=function(e,t){if(null!=t)for(var r=0;r<t.length;r++){var n=t[r];null!=n&&($e(this,e,0),this.a.wa(n))}},Ve.prototype.writeRepeatedSint32=Ve.prototype.Md,Ve.prototype.Nd=function(e,t){if(null!=t)for(var r=0;r<t.length;r++){var n=t[r];null!=n&&($e(this,e,0),this.a.xa(n))}},Ve.prototype.writeRepeatedSint64=Ve.prototype.Nd,Ve.prototype.Od=function(e,t){if(null!=t)for(var r=0;r<t.length;r++){var n=t[r];null!=n&&($e(this,e,0),this.a.Ta(n))}},Ve.prototype.writeRepeatedSint64String=Ve.prototype.Od,Ve.prototype.Pd=function(e,t){if(null!=t)for(var r=0;r<t.length;r++){var n=t[r];null!=n&&($e(this,e,0),this.a.W(n))}},Ve.prototype.writeRepeatedSintHash64=Ve.prototype.Pd,Ve.prototype.yd=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.Pa(e,t[r])},Ve.prototype.writeRepeatedFixed32=Ve.prototype.yd,Ve.prototype.zd=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.Qa(e,t[r])},Ve.prototype.writeRepeatedFixed64=Ve.prototype.zd,Ve.prototype.Ad=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.nb(e,t[r])},Ve.prototype.writeRepeatedFixed64String=Ve.prototype.Ad,Ve.prototype.Jd=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.Ra(e,t[r])},Ve.prototype.writeRepeatedSfixed32=Ve.prototype.Jd,Ve.prototype.Kd=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.Sa(e,t[r])},Ve.prototype.writeRepeatedSfixed64=Ve.prototype.Kd,Ve.prototype.Ld=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.qb(e,t[r])},Ve.prototype.writeRepeatedSfixed64String=Ve.prototype.Ld,Ve.prototype.Cd=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.L(e,t[r])},Ve.prototype.writeRepeatedFloat=Ve.prototype.Cd,Ve.prototype.wd=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.J(e,t[r])},Ve.prototype.writeRepeatedDouble=Ve.prototype.wd,Ve.prototype.ud=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.I(e,t[r])},Ve.prototype.writeRepeatedBool=Ve.prototype.ud,Ve.prototype.xd=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.R(e,t[r])},Ve.prototype.writeRepeatedEnum=Ve.prototype.xd,Ve.prototype.Td=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.U(e,t[r])},Ve.prototype.writeRepeatedString=Ve.prototype.Td,Ve.prototype.vd=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.ja(e,t[r])},Ve.prototype.writeRepeatedBytes=Ve.prototype.vd,Ve.prototype.Id=function(e,t,r){if(null!=t)for(var n=0;n<t.length;n++){var i=qe(this,e);r(t[n],this),He(this,i)}},Ve.prototype.writeRepeatedMessage=Ve.prototype.Id,Ve.prototype.Dd=function(e,t,r){if(null!=t)for(var n=0;n<t.length;n++)$e(this,e,3),r(t[n],this),$e(this,e,4)},Ve.prototype.writeRepeatedGroup=Ve.prototype.Dd,Ve.prototype.Bd=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.K(e,t[r])},Ve.prototype.writeRepeatedFixedHash64=Ve.prototype.Bd,Ve.prototype.Yd=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.N(e,t[r])},Ve.prototype.writeRepeatedVarintHash64=Ve.prototype.Yd,Ve.prototype.ad=function(e,t){if(null!=t&&t.length){e=qe(this,e);for(var r=0;r<t.length;r++)this.a.M(t[r]);He(this,e)}},Ve.prototype.writePackedInt32=Ve.prototype.ad,Ve.prototype.bd=function(e,t){if(null!=t&&t.length){e=qe(this,e);for(var r=0;r<t.length;r++)this.a.M(parseInt(t[r],10));He(this,e)}},Ve.prototype.writePackedInt32String=Ve.prototype.bd,Ve.prototype.cd=function(e,t){if(null!=t&&t.length){e=qe(this,e);for(var r=0;r<t.length;r++)this.a.ua(t[r]);He(this,e)}},Ve.prototype.writePackedInt64=Ve.prototype.cd,Ve.prototype.md=function(e,t,r,n){if(null!=t){e=qe(this,e);for(var i=0;i<t.length;i++)this.a.A(r(t[i]),n(t[i]));He(this,e)}},Ve.prototype.writePackedSplitFixed64=Ve.prototype.md,Ve.prototype.nd=function(e,t,r,n){if(null!=t){e=qe(this,e);for(var i=0;i<t.length;i++)this.a.l(r(t[i]),n(t[i]));He(this,e)}},Ve.prototype.writePackedSplitVarint64=Ve.prototype.nd,Ve.prototype.od=function(e,t,r,n){if(null!=t){e=qe(this,e);for(var i=this.a,o=0;o<t.length;o++)H(r(t[o]),n(t[o]),(function(e,t){i.l(e>>>0,t>>>0)}));He(this,e)}},Ve.prototype.writePackedSplitZigzagVarint64=Ve.prototype.od,Ve.prototype.dd=function(e,t){if(null!=t&&t.length){e=qe(this,e);for(var r=0;r<t.length;r++){var n=Ge(t[r]);this.a.l(n.lo,n.hi)}He(this,e)}},Ve.prototype.writePackedInt64String=Ve.prototype.dd,Ve.prototype.pd=function(e,t){if(null!=t&&t.length){e=qe(this,e);for(var r=0;r<t.length;r++)this.a.j(t[r]);He(this,e)}},Ve.prototype.writePackedUint32=Ve.prototype.pd,Ve.prototype.qd=function(e,t){if(null!=t&&t.length){e=qe(this,e);for(var r=0;r<t.length;r++)this.a.j(parseInt(t[r],10));He(this,e)}},Ve.prototype.writePackedUint32String=Ve.prototype.qd,Ve.prototype.rd=function(e,t){if(null!=t&&t.length){e=qe(this,e);for(var r=0;r<t.length;r++)this.a.va(t[r]);He(this,e)}},Ve.prototype.writePackedUint64=Ve.prototype.rd,Ve.prototype.sd=function(e,t){if(null!=t&&t.length){e=qe(this,e);for(var r=0;r<t.length;r++){var n=ze(t[r]);this.a.l(n.lo,n.hi)}He(this,e)}},Ve.prototype.writePackedUint64String=Ve.prototype.sd,Ve.prototype.hd=function(e,t){if(null!=t&&t.length){e=qe(this,e);for(var r=0;r<t.length;r++)this.a.wa(t[r]);He(this,e)}},Ve.prototype.writePackedSint32=Ve.prototype.hd,Ve.prototype.jd=function(e,t){if(null!=t&&t.length){e=qe(this,e);for(var r=0;r<t.length;r++)this.a.xa(t[r]);He(this,e)}},Ve.prototype.writePackedSint64=Ve.prototype.jd,Ve.prototype.kd=function(e,t){if(null!=t&&t.length){e=qe(this,e);for(var r=0;r<t.length;r++)this.a.W(te(t[r]));He(this,e)}},Ve.prototype.writePackedSint64String=Ve.prototype.kd,Ve.prototype.ld=function(e,t){if(null!=t&&t.length){e=qe(this,e);for(var r=0;r<t.length;r++)this.a.W(t[r]);He(this,e)}},Ve.prototype.writePackedSintHash64=Ve.prototype.ld,Ve.prototype.Wc=function(e,t){if(null!=t&&t.length)for($e(this,e,2),this.a.j(4*t.length),e=0;e<t.length;e++)this.a.s(t[e])},Ve.prototype.writePackedFixed32=Ve.prototype.Wc,Ve.prototype.Xc=function(e,t){if(null!=t&&t.length)for($e(this,e,2),this.a.j(8*t.length),e=0;e<t.length;e++)this.a.V(t[e])},Ve.prototype.writePackedFixed64=Ve.prototype.Xc,Ve.prototype.Yc=function(e,t){if(null!=t&&t.length)for($e(this,e,2),this.a.j(8*t.length),e=0;e<t.length;e++){var r=ze(t[e]);this.a.A(r.lo,r.hi)}},Ve.prototype.writePackedFixed64String=Ve.prototype.Yc,Ve.prototype.ed=function(e,t){if(null!=t&&t.length)for($e(this,e,2),this.a.j(4*t.length),e=0;e<t.length;e++)this.a.S(t[e])},Ve.prototype.writePackedSfixed32=Ve.prototype.ed,Ve.prototype.fd=function(e,t){if(null!=t&&t.length)for($e(this,e,2),this.a.j(8*t.length),e=0;e<t.length;e++)this.a.T(t[e])},Ve.prototype.writePackedSfixed64=Ve.prototype.fd,Ve.prototype.gd=function(e,t){if(null!=t&&t.length)for($e(this,e,2),this.a.j(8*t.length),e=0;e<t.length;e++)this.a.ka(t[e])},Ve.prototype.writePackedSfixed64String=Ve.prototype.gd,Ve.prototype.$c=function(e,t){if(null!=t&&t.length)for($e(this,e,2),this.a.j(4*t.length),e=0;e<t.length;e++)this.a.L(t[e])},Ve.prototype.writePackedFloat=Ve.prototype.$c,Ve.prototype.Uc=function(e,t){if(null!=t&&t.length)for($e(this,e,2),this.a.j(8*t.length),e=0;e<t.length;e++)this.a.J(t[e])},Ve.prototype.writePackedDouble=Ve.prototype.Uc,Ve.prototype.Tc=function(e,t){if(null!=t&&t.length)for($e(this,e,2),this.a.j(t.length),e=0;e<t.length;e++)this.a.I(t[e])},Ve.prototype.writePackedBool=Ve.prototype.Tc,Ve.prototype.Vc=function(e,t){if(null!=t&&t.length){e=qe(this,e);for(var r=0;r<t.length;r++)this.a.R(t[r]);He(this,e)}},Ve.prototype.writePackedEnum=Ve.prototype.Vc,Ve.prototype.Zc=function(e,t){if(null!=t&&t.length)for($e(this,e,2),this.a.j(8*t.length),e=0;e<t.length;e++)this.a.K(t[e])},Ve.prototype.writePackedFixedHash64=Ve.prototype.Zc,Ve.prototype.td=function(e,t){if(null!=t&&t.length){e=qe(this,e);for(var r=0;r<t.length;r++)this.a.N(t[r]);He(this,e)}},Ve.prototype.writePackedVarintHash64=Ve.prototype.td,t.debug=Be,t.Map=E,t.Message=ge,t.BinaryReader=ue,t.BinaryWriter=Ve,t.ExtensionFieldInfo=he,t.ExtensionFieldBinaryInfo=de,t.exportSymbol=function(e,t,r){p(e,t,r)},t.inherits=function(e,t){function r(){}r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e},t.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 o=0;o<d.length;o++)r=d[o],Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}}},t.typeOf=f},8052:(e,t,r)=>{var n=r(7186),i=n,o="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof window&&window||void 0!==o&&o||"undefined"!=typeof self&&self||function(){return this}.call(null)||Function("return this")();i.exportSymbol("proto.google.protobuf.BoolValue",null,o),i.exportSymbol("proto.google.protobuf.BytesValue",null,o),i.exportSymbol("proto.google.protobuf.DoubleValue",null,o),i.exportSymbol("proto.google.protobuf.FloatValue",null,o),i.exportSymbol("proto.google.protobuf.Int32Value",null,o),i.exportSymbol("proto.google.protobuf.Int64Value",null,o),i.exportSymbol("proto.google.protobuf.StringValue",null,o),i.exportSymbol("proto.google.protobuf.UInt32Value",null,o),i.exportSymbol("proto.google.protobuf.UInt64Value",null,o),proto.google.protobuf.DoubleValue=function(e){n.Message.initialize(this,e,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(e){n.Message.initialize(this,e,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(e){n.Message.initialize(this,e,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(e){n.Message.initialize(this,e,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(e){n.Message.initialize(this,e,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(e){n.Message.initialize(this,e,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(e){n.Message.initialize(this,e,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(e){n.Message.initialize(this,e,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(e){n.Message.initialize(this,e,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(e){return proto.google.protobuf.DoubleValue.toObject(e,this)},proto.google.protobuf.DoubleValue.toObject=function(e,t){var r={value:n.Message.getFloatingPointFieldWithDefault(t,1,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.google.protobuf.DoubleValue.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.google.protobuf.DoubleValue;return proto.google.protobuf.DoubleValue.deserializeBinaryFromReader(r,t)},proto.google.protobuf.DoubleValue.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readDouble();e.setValue(r);break;default:t.skipField()}}return e},proto.google.protobuf.DoubleValue.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.google.protobuf.DoubleValue.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.google.protobuf.DoubleValue.serializeBinaryToWriter=function(e,t){var r;0!==(r=e.getValue())&&t.writeDouble(1,r)},proto.google.protobuf.DoubleValue.prototype.getValue=function(){return n.Message.getFloatingPointFieldWithDefault(this,1,0)},proto.google.protobuf.DoubleValue.prototype.setValue=function(e){return n.Message.setProto3FloatField(this,1,e)},n.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.FloatValue.prototype.toObject=function(e){return proto.google.protobuf.FloatValue.toObject(e,this)},proto.google.protobuf.FloatValue.toObject=function(e,t){var r={value:n.Message.getFloatingPointFieldWithDefault(t,1,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.google.protobuf.FloatValue.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.google.protobuf.FloatValue;return proto.google.protobuf.FloatValue.deserializeBinaryFromReader(r,t)},proto.google.protobuf.FloatValue.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readFloat();e.setValue(r);break;default:t.skipField()}}return e},proto.google.protobuf.FloatValue.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.google.protobuf.FloatValue.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.google.protobuf.FloatValue.serializeBinaryToWriter=function(e,t){var r;0!==(r=e.getValue())&&t.writeFloat(1,r)},proto.google.protobuf.FloatValue.prototype.getValue=function(){return n.Message.getFloatingPointFieldWithDefault(this,1,0)},proto.google.protobuf.FloatValue.prototype.setValue=function(e){return n.Message.setProto3FloatField(this,1,e)},n.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.Int64Value.prototype.toObject=function(e){return proto.google.protobuf.Int64Value.toObject(e,this)},proto.google.protobuf.Int64Value.toObject=function(e,t){var r={value:n.Message.getFieldWithDefault(t,1,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.google.protobuf.Int64Value.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.google.protobuf.Int64Value;return proto.google.protobuf.Int64Value.deserializeBinaryFromReader(r,t)},proto.google.protobuf.Int64Value.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readInt64();e.setValue(r);break;default:t.skipField()}}return e},proto.google.protobuf.Int64Value.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.google.protobuf.Int64Value.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.google.protobuf.Int64Value.serializeBinaryToWriter=function(e,t){var r;0!==(r=e.getValue())&&t.writeInt64(1,r)},proto.google.protobuf.Int64Value.prototype.getValue=function(){return n.Message.getFieldWithDefault(this,1,0)},proto.google.protobuf.Int64Value.prototype.setValue=function(e){return n.Message.setProto3IntField(this,1,e)},n.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.UInt64Value.prototype.toObject=function(e){return proto.google.protobuf.UInt64Value.toObject(e,this)},proto.google.protobuf.UInt64Value.toObject=function(e,t){var r={value:n.Message.getFieldWithDefault(t,1,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.google.protobuf.UInt64Value.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.google.protobuf.UInt64Value;return proto.google.protobuf.UInt64Value.deserializeBinaryFromReader(r,t)},proto.google.protobuf.UInt64Value.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readUint64();e.setValue(r);break;default:t.skipField()}}return e},proto.google.protobuf.UInt64Value.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.google.protobuf.UInt64Value.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.google.protobuf.UInt64Value.serializeBinaryToWriter=function(e,t){var r;0!==(r=e.getValue())&&t.writeUint64(1,r)},proto.google.protobuf.UInt64Value.prototype.getValue=function(){return n.Message.getFieldWithDefault(this,1,0)},proto.google.protobuf.UInt64Value.prototype.setValue=function(e){return n.Message.setProto3IntField(this,1,e)},n.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.Int32Value.prototype.toObject=function(e){return proto.google.protobuf.Int32Value.toObject(e,this)},proto.google.protobuf.Int32Value.toObject=function(e,t){var r={value:n.Message.getFieldWithDefault(t,1,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.google.protobuf.Int32Value.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.google.protobuf.Int32Value;return proto.google.protobuf.Int32Value.deserializeBinaryFromReader(r,t)},proto.google.protobuf.Int32Value.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readInt32();e.setValue(r);break;default:t.skipField()}}return e},proto.google.protobuf.Int32Value.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.google.protobuf.Int32Value.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.google.protobuf.Int32Value.serializeBinaryToWriter=function(e,t){var r;0!==(r=e.getValue())&&t.writeInt32(1,r)},proto.google.protobuf.Int32Value.prototype.getValue=function(){return n.Message.getFieldWithDefault(this,1,0)},proto.google.protobuf.Int32Value.prototype.setValue=function(e){return n.Message.setProto3IntField(this,1,e)},n.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.UInt32Value.prototype.toObject=function(e){return proto.google.protobuf.UInt32Value.toObject(e,this)},proto.google.protobuf.UInt32Value.toObject=function(e,t){var r={value:n.Message.getFieldWithDefault(t,1,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.google.protobuf.UInt32Value.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.google.protobuf.UInt32Value;return proto.google.protobuf.UInt32Value.deserializeBinaryFromReader(r,t)},proto.google.protobuf.UInt32Value.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readUint32();e.setValue(r);break;default:t.skipField()}}return e},proto.google.protobuf.UInt32Value.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.google.protobuf.UInt32Value.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.google.protobuf.UInt32Value.serializeBinaryToWriter=function(e,t){var r;0!==(r=e.getValue())&&t.writeUint32(1,r)},proto.google.protobuf.UInt32Value.prototype.getValue=function(){return n.Message.getFieldWithDefault(this,1,0)},proto.google.protobuf.UInt32Value.prototype.setValue=function(e){return n.Message.setProto3IntField(this,1,e)},n.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.BoolValue.prototype.toObject=function(e){return proto.google.protobuf.BoolValue.toObject(e,this)},proto.google.protobuf.BoolValue.toObject=function(e,t){var r={value:n.Message.getBooleanFieldWithDefault(t,1,!1)};return e&&(r.$jspbMessageInstance=t),r}),proto.google.protobuf.BoolValue.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.google.protobuf.BoolValue;return proto.google.protobuf.BoolValue.deserializeBinaryFromReader(r,t)},proto.google.protobuf.BoolValue.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readBool();e.setValue(r);break;default:t.skipField()}}return e},proto.google.protobuf.BoolValue.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.google.protobuf.BoolValue.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.google.protobuf.BoolValue.serializeBinaryToWriter=function(e,t){var r;(r=e.getValue())&&t.writeBool(1,r)},proto.google.protobuf.BoolValue.prototype.getValue=function(){return n.Message.getBooleanFieldWithDefault(this,1,!1)},proto.google.protobuf.BoolValue.prototype.setValue=function(e){return n.Message.setProto3BooleanField(this,1,e)},n.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.StringValue.prototype.toObject=function(e){return proto.google.protobuf.StringValue.toObject(e,this)},proto.google.protobuf.StringValue.toObject=function(e,t){var r={value:n.Message.getFieldWithDefault(t,1,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.google.protobuf.StringValue.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.google.protobuf.StringValue;return proto.google.protobuf.StringValue.deserializeBinaryFromReader(r,t)},proto.google.protobuf.StringValue.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readString();e.setValue(r);break;default:t.skipField()}}return e},proto.google.protobuf.StringValue.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.google.protobuf.StringValue.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.google.protobuf.StringValue.serializeBinaryToWriter=function(e,t){var r;(r=e.getValue()).length>0&&t.writeString(1,r)},proto.google.protobuf.StringValue.prototype.getValue=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.google.protobuf.StringValue.prototype.setValue=function(e){return n.Message.setProto3StringField(this,1,e)},n.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.BytesValue.prototype.toObject=function(e){return proto.google.protobuf.BytesValue.toObject(e,this)},proto.google.protobuf.BytesValue.toObject=function(e,t){var r={value:t.getValue_asB64()};return e&&(r.$jspbMessageInstance=t),r}),proto.google.protobuf.BytesValue.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.google.protobuf.BytesValue;return proto.google.protobuf.BytesValue.deserializeBinaryFromReader(r,t)},proto.google.protobuf.BytesValue.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readBytes();e.setValue(r);break;default:t.skipField()}}return e},proto.google.protobuf.BytesValue.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.google.protobuf.BytesValue.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.google.protobuf.BytesValue.serializeBinaryToWriter=function(e,t){var r;(r=e.getValue_asU8()).length>0&&t.writeBytes(1,r)},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(e){return n.Message.setProto3BytesField(this,1,e)},i.object.extend(t,proto.google.protobuf)},9336:(e,t,r)=>{"use strict";var n=r(528)("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},5949:function(e,t,r){var n;function i(e){var t=0;return function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}}}var o="function"==typeof Object.defineProperties?Object.defineProperty:function(e,t,r){e!=Array.prototype&&e!=Object.prototype&&(e[t]=r.value)};var s=function(e){e=["object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof r.g&&r.g,e];for(var t=0;t<e.length;++t){var n=e[t];if(n&&n.Math==Math)return n}throw Error("Cannot find global object")}(this);function a(){a=function(){},s.Symbol||(s.Symbol=c)}function l(e,t){this.a=e,o(this,"description",{configurable:!0,writable:!0,value:t})}l.prototype.toString=function(){return this.a};var u,c=(u=0,function e(t){if(this instanceof e)throw new TypeError("Symbol is not a constructor");return new l("jscomp_symbol_"+(t||"")+"_"+u++,t)});function p(){a();var e=s.Symbol.iterator;e||(e=s.Symbol.iterator=s.Symbol("Symbol.iterator")),"function"!=typeof Array.prototype[e]&&o(Array.prototype,e,{configurable:!0,writable:!0,value:function(){return function(e){return p(),(e={next:e})[s.Symbol.iterator]=function(){return this},e}(i(this))}}),p=function(){}}function f(e){var t="undefined"!=typeof Symbol&&Symbol.iterator&&e[Symbol.iterator];return t?t.call(e):{next:i(e)}}var h,d="function"==typeof Object.create?Object.create:function(e){function t(){}return t.prototype=e,new t};if("function"==typeof Object.setPrototypeOf)h=Object.setPrototypeOf;else{var g;e:{var y={};try{y.__proto__={V:!0},g=y.V;break e}catch(oe){}g=!1}h=g?function(e,t){if(e.__proto__=t,e.__proto__!==t)throw new TypeError(e+" is not extensible");return e}:null}var v=h;function m(e,t){if(e.prototype=d(t.prototype),e.prototype.constructor=e,v)v(e,t);else for(var r in t)if("prototype"!=r)if(Object.defineProperties){var n=Object.getOwnPropertyDescriptor(t,r);n&&Object.defineProperty(e,r,n)}else e[r]=t[r];e.O=t.prototype}function b(e,t){if(t){var r=s;e=e.split(".");for(var 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&&null!=t&&o(r,e,{configurable:!0,writable:!0,value:t})}}b("Array.prototype.keys",(function(e){return e||function(){return function(e,t){p(),e instanceof String&&(e+="");var r=0,n={next:function(){if(r<e.length){var i=r++;return{value:t(i,e[i]),done:!1}}return n.next=function(){return{done:!0,value:void 0}},n.next()}};return n[Symbol.iterator]=function(){return n},n}(this,(function(e){return e}))}})),b("Array.prototype.find",(function(e){return e||function(e,t){e:{var r=this;r instanceof String&&(r=String(r));for(var n=r.length,i=0;i<n;i++){var o=r[i];if(e.call(t,o,i,r)){e=o;break e}}e=void 0}return e}})),b("Object.is",(function(e){return e||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}})),b("Array.prototype.includes",(function(e){return e||function(e,t){var r=this;r instanceof String&&(r=String(r));var n=r.length;for(0>(t=t||0)&&(t=Math.max(t+n,0));t<n;t++){var i=r[t];if(i===e||Object.is(i,e))return!0}return!1}})),b("Promise",(function(e){function t(e){this.b=0,this.c=void 0,this.a=[];var t=this.f();try{e(t.resolve,t.reject)}catch(e){t.reject(e)}}function r(){this.a=null}function n(e){return e instanceof t?e:new t((function(t){t(e)}))}if(e)return e;r.prototype.b=function(e){if(null==this.a){this.a=[];var t=this;this.c((function(){t.g()}))}this.a.push(e)};var i=s.setTimeout;r.prototype.c=function(e){i(e,0)},r.prototype.g=function(){for(;this.a&&this.a.length;){var e=this.a;this.a=[];for(var t=0;t<e.length;++t){var r=e[t];e[t]=null;try{r()}catch(e){this.f(e)}}}this.a=null},r.prototype.f=function(e){this.c((function(){throw e}))},t.prototype.f=function(){function e(e){return function(n){r||(r=!0,e.call(t,n))}}var t=this,r=!1;return{resolve:e(this.s),reject:e(this.g)}},t.prototype.s=function(e){if(e===this)this.g(new TypeError("A Promise cannot resolve to itself"));else if(e instanceof t)this.v(e);else{e:switch(typeof e){case"object":var r=null!=e;break e;case"function":r=!0;break e;default:r=!1}r?this.m(e):this.h(e)}},t.prototype.m=function(e){var t=void 0;try{t=e.then}catch(e){return void this.g(e)}"function"==typeof t?this.w(t,e):this.h(e)},t.prototype.g=function(e){this.i(2,e)},t.prototype.h=function(e){this.i(1,e)},t.prototype.i=function(e,t){if(0!=this.b)throw Error("Cannot settle("+e+", "+t+"): Promise already settled in state"+this.b);this.b=e,this.c=t,this.l()},t.prototype.l=function(){if(null!=this.a){for(var e=0;e<this.a.length;++e)o.b(this.a[e]);this.a=null}};var o=new r;return t.prototype.v=function(e){var t=this.f();e.F(t.resolve,t.reject)},t.prototype.w=function(e,t){var r=this.f();try{e.call(t,r.resolve,r.reject)}catch(e){r.reject(e)}},t.prototype.then=function(e,r){function n(e,t){return"function"==typeof e?function(t){try{i(e(t))}catch(e){o(e)}}:t}var i,o,s=new t((function(e,t){i=e,o=t}));return this.F(n(e,i),n(r,o)),s},t.prototype.catch=function(e){return this.then(void 0,e)},t.prototype.F=function(e,t){function r(){switch(n.b){case 1:e(n.c);break;case 2:t(n.c);break;default:throw Error("Unexpected state: "+n.b)}}var n=this;null==this.a?o.b(r):this.a.push(r)},t.resolve=n,t.reject=function(e){return new t((function(t,r){r(e)}))},t.race=function(e){return new t((function(t,r){for(var i=f(e),o=i.next();!o.done;o=i.next())n(o.value).F(t,r)}))},t.all=function(e){var r=f(e),i=r.next();return i.done?n([]):new t((function(e,t){function o(t){return function(r){s[t]=r,0==--a&&e(s)}}var s=[],a=0;do{s.push(void 0),a++,n(i.value).F(o(s.length-1),t),i=r.next()}while(!i.done)}))},t}));var w=w||{},S=this||self;function _(e,t){e=e.split("."),t=t||S;for(var r=0;r<e.length;r++)if(null==(t=t[e[r]]))return null;return t}function E(){}function O(e){var t=typeof e;return"object"==t&&null!=e||"function"==t}var R="closure_uid_"+(1e9*Math.random()>>>0),T=0;function j(e,t,r){return e.call.apply(e.bind,arguments)}function P(e,t,r){if(!e)throw Error();if(2<arguments.length){var n=Array.prototype.slice.call(arguments,2);return function(){var r=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(r,n),e.apply(t,r)}}return function(){return e.apply(t,arguments)}}function x(e,t,r){return(x=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?j:P).apply(null,arguments)}function A(e,t){function r(){}r.prototype=t.prototype,e.O=t.prototype,e.prototype=new r,e.prototype.constructor=e}function I(e){this.a=e||{}}function C(e,t,r,n){this.f=e,this.c=t,this.b=r,this.a=n}function k(e,t,r,n){r=void 0===r?{}:r,this.c=e,this.a=r,this.b=t,this.f=void 0===n?null:n}function M(e,t,r,n,i,o){this.name=e,this.a=i,this.b=o}function F(e,t,r){r=void 0===r?{}:r;var n=void 0===n?new I:n;return new C(t,e,r,n)}function B(e,t,r){r=void 0===r?{}:r,t=Error.call(this,t),this.message=t.message,"stack"in t&&(this.stack=t.stack),this.code=e,this.metadata=r}function D(e){this.a=e}function L(e){if(Error.captureStackTrace)Error.captureStackTrace(this,L);else{var t=Error().stack;t&&(this.stack=t)}e&&(this.message=String(e))}function N(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");L.call(this,r+e[n])}function z(){this.l=null,this.i=[],this.m=0,this.b=U,this.f=this.a=this.h=0,this.c=null,this.g=0}I.prototype.get=function(e){return this.a[e]},I.prototype.G=function(){return Object.keys(this.a)},C.prototype.getRequestMessage=function(){return this.f},C.prototype.getMethodDescriptor=function(){return this.c},C.prototype.getMetadata=function(){return this.b},C.prototype.getCallOptions=function(){return this.a},k.prototype.getResponseMessage=function(){return this.c},k.prototype.getMetadata=function(){return this.a},k.prototype.getMethodDescriptor=function(){return this.b},k.prototype.getStatus=function(){return this.f},M.prototype.getName=function(){return this.name},M.prototype.getName=M.prototype.getName,m(B,Error),B.prototype.toString=function(){var e="RpcError("+(function(e){switch(e){case 0:return"OK";case 1:return"CANCELLED";case 2:return"UNKNOWN";case 3:return"INVALID_ARGUMENT";case 4:return"DEADLINE_EXCEEDED";case 5:return"NOT_FOUND";case 6:return"ALREADY_EXISTS";case 7:return"PERMISSION_DENIED";case 16:return"UNAUTHENTICATED";case 8:return"RESOURCE_EXHAUSTED";case 9:return"FAILED_PRECONDITION";case 10:return"ABORTED";case 11:return"OUT_OF_RANGE";case 12:return"UNIMPLEMENTED";case 13:return"INTERNAL";case 14:return"UNAVAILABLE";case 15:return"DATA_LOSS";default:return""}}(this.code)||String(this.code))+")";return this.message&&(e+=": "+this.message),e},B.prototype.name="RpcError",D.prototype.on=function(e,t){return"data"==e||"error"==e?this:this.a.on(e,t)},D.prototype.removeListener=function(e,t){return this.a.removeListener(e,t)},D.prototype.cancel=function(){this.a.cancel()},A(L,Error),L.prototype.name="CustomError",A(N,L),N.prototype.name="AssertionError";var U=0,G=1,V=2,W=3,q=0,H=128;function $(e,t,r,n){throw e.b=W,e.l="The stream is broken @"+e.m+"/"+r+". Error: "+n+". With input:\n"+t,Error(e.l)}var Z,Y=Array.prototype.indexOf?function(e,t){return Array.prototype.indexOf.call(e,t,void 0)}:function(e,t){if("string"==typeof e)return"string"!=typeof t||1!=t.length?-1:e.indexOf(t,0);for(var r=0;r<e.length;r++)if(r in e&&e[r]===t)return r;return-1},J=String.prototype.trim?function(e){return e.trim()}:function(e){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(e)[1]};function K(e,t){return-1!=e.indexOf(t)}function X(e,t){return e<t?-1:e>t?1:0}e:{var Q=S.navigator;if(Q){var ee=Q.userAgent;if(ee){Z=ee;break e}}Z=""}var te="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function re(e){var t=1;e=e.split(":");for(var r=[];0<t&&e.length;)r.push(e.shift()),t--;return e.length&&r.push(e.join(":")),r}function ne(e){return ne[" "](e),e}ne[" "]=E;var ie,oe,se=K(Z,"Opera"),ae=K(Z,"Trident")||K(Z,"MSIE"),le=K(Z,"Edge"),ue=K(Z,"Gecko")&&!(K(Z.toLowerCase(),"webkit")&&!K(Z,"Edge"))&&!(K(Z,"Trident")||K(Z,"MSIE"))&&!K(Z,"Edge"),ce=K(Z.toLowerCase(),"webkit")&&!K(Z,"Edge");e:{var pe="",fe=(oe=Z,ue?/rv:([^\);]+)(\)|;)/.exec(oe):le?/Edge\/([\d\.]+)/.exec(oe):ae?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(oe):ce?/WebKit\/(\S+)/.exec(oe):se?/(?:Version)[ \/]?(\S+)/.exec(oe):void 0);if(fe&&(pe=fe?fe[1]:""),ae){var he,de=S.document;if(null!=(he=de?de.documentMode:void 0)&&he>parseFloat(pe)){ie=String(he);break e}}ie=pe}var ge={};function ye(){return function(e){var t=ge;return Object.prototype.hasOwnProperty.call(t,9)?t[9]:t[9]=e(9)}((function(){for(var e=0,t=J(String(ie)).split("."),r=J("9").split("."),n=Math.max(t.length,r.length),i=0;0==e&&i<n;i++){var o=t[i]||"",s=r[i]||"";do{if(o=/(\d*)(\D*)(.*)/.exec(o)||["","","",""],s=/(\d*)(\D*)(.*)/.exec(s)||["","","",""],0==o[0].length&&0==s[0].length)break;e=X(0==o[1].length?0:parseInt(o[1],10),0==s[1].length?0:parseInt(s[1],10))||X(0==o[2].length,0==s[2].length)||X(o[2],s[2]),o=o[3],s=s[3]}while(0==e)}return 0<=e}))}function ve(){0!=me&&(Object.prototype.hasOwnProperty.call(this,R)&&this[R]||(this[R]=++T)),this.K=this.K}var me=0;ve.prototype.K=!1;var be=Object.freeze||function(e){return e};function we(e,t){this.type=e,this.a=this.target=t,this.defaultPrevented=!1}we.prototype.b=function(){this.defaultPrevented=!0};var Se=function(){if(!S.addEventListener||!Object.defineProperty)return!1;var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}});try{S.addEventListener("test",E,t),S.removeEventListener("test",E,t)}catch(e){}return e}();function _e(e,t){if(we.call(this,e?e.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,e){var r=this.type=e.type,n=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:null;if(this.target=e.target||e.srcElement,this.a=t,t=e.relatedTarget){if(ue){e:{try{ne(t.nodeName);var i=!0;break e}catch(e){}i=!1}i||(t=null)}}else"mouseover"==r?t=e.fromElement:"mouseout"==r&&(t=e.toElement);this.relatedTarget=t,n?(this.clientX=void 0!==n.clientX?n.clientX:n.pageX,this.clientY=void 0!==n.clientY?n.clientY:n.pageY,this.screenX=n.screenX||0,this.screenY=n.screenY||0):(this.clientX=void 0!==e.clientX?e.clientX:e.pageX,this.clientY=void 0!==e.clientY?e.clientY:e.pageY,this.screenX=e.screenX||0,this.screenY=e.screenY||0),this.button=e.button,this.key=e.key||"",this.ctrlKey=e.ctrlKey,this.altKey=e.altKey,this.shiftKey=e.shiftKey,this.metaKey=e.metaKey,this.pointerId=e.pointerId||0,this.pointerType="string"==typeof e.pointerType?e.pointerType:Ee[e.pointerType]||"",this.c=e,e.defaultPrevented&&_e.O.b.call(this)}}A(_e,we);var Ee=be({2:"touch",3:"pen",4:"mouse"});_e.prototype.b=function(){_e.O.b.call(this);var e=this.c;e.preventDefault?e.preventDefault():e.returnValue=!1};var Oe="closure_listenable_"+(1e6*Math.random()|0),Re=0;function Te(e,t,r,n,i){this.listener=e,this.proxy=null,this.src=t,this.type=r,this.capture=!!n,this.H=i,this.key=++Re,this.A=this.D=!1}function je(e){e.A=!0,e.listener=null,e.proxy=null,e.src=null,e.H=null}function Pe(e){this.src=e,this.a={},this.b=0}function xe(e,t){var r=t.type;if(r in e.a){var n,i=e.a[r],o=Y(i,t);(n=0<=o)&&Array.prototype.splice.call(i,o,1),n&&(je(t),0==e.a[r].length&&(delete e.a[r],e.b--))}}function Ae(e,t,r,n){for(var i=0;i<e.length;++i){var o=e[i];if(!o.A&&o.listener==t&&o.capture==!!r&&o.H==n)return i}return-1}Pe.prototype.add=function(e,t,r,n,i){var o=e.toString();(e=this.a[o])||(e=this.a[o]=[],this.b++);var s=Ae(e,t,n,i);return-1<s?(t=e[s],r||(t.D=!1)):((t=new Te(t,this.src,o,!!n,i)).D=r,e.push(t)),t},Pe.prototype.remove=function(e,t,r,n){if(!((e=e.toString())in this.a))return!1;var i=this.a[e];return-1<(t=Ae(i,t,r,n))&&(je(i[t]),Array.prototype.splice.call(i,t,1),0==i.length&&(delete this.a[e],this.b--),!0)};var Ie="closure_lm_"+(1e6*Math.random()|0),Ce={};function ke(e,t,r,n,i){if(n&&n.once)!function e(t,r,n,i,o){if(Array.isArray(r))for(var s=0;s<r.length;s++)e(t,r[s],n,i,o);else n=ze(n),t&&t[Oe]?t.f.add(String(r),n,!0,O(i)?!!i.capture:!!i,o):Me(t,r,n,!0,i,o)}(e,t,r,n,i);else if(Array.isArray(t))for(var o=0;o<t.length;o++)ke(e,t[o],r,n,i);else r=ze(r),e&&e[Oe]?e.f.add(String(t),r,!1,O(n)?!!n.capture:!!n,i):Me(e,t,r,!1,n,i)}function Me(e,t,r,n,i,o){if(!t)throw Error("Invalid event type");var s=O(i)?!!i.capture:!!i,a=Le(e);if(a||(e[Ie]=a=new Pe(e)),!(r=a.add(t,r,n,s,o)).proxy){if(n=function(){var e=De;return function t(r){return e.call(t.src,t.listener,r)}}(),r.proxy=n,n.src=e,n.listener=r,e.addEventListener)Se||(i=s),void 0===i&&(i=!1),e.addEventListener(t.toString(),n,i);else if(e.attachEvent)e.attachEvent(Be(t.toString()),n);else{if(!e.addListener||!e.removeListener)throw Error("addEventListener and attachEvent are unavailable.");e.addListener(n)}0}}function Fe(e){if("number"!=typeof e&&e&&!e.A){var t=e.src;if(t&&t[Oe])xe(t.f,e);else{var r=e.type,n=e.proxy;t.removeEventListener?t.removeEventListener(r,n,e.capture):t.detachEvent?t.detachEvent(Be(r),n):t.addListener&&t.removeListener&&t.removeListener(n),(r=Le(t))?(xe(r,e),0==r.b&&(r.src=null,t[Ie]=null)):je(e)}}}function Be(e){return e in Ce?Ce[e]:Ce[e]="on"+e}function De(e,t){if(e.A)e=!0;else{t=new _e(t,this);var r=e.listener,n=e.H||e.src;e.D&&Fe(e),e=r.call(n,t)}return e}function Le(e){return(e=e[Ie])instanceof Pe?e:null}var Ne="__closure_events_fn_"+(1e9*Math.random()>>>0);function ze(e){return"function"==typeof e?e:(e[Ne]||(e[Ne]=function(t){return e.handleEvent(t)}),e[Ne])}function Ue(){ve.call(this),this.f=new Pe(this),this.U=this}function Ge(e,t){e=e.U;var r=t.type||t;if("string"==typeof t)t=new we(t,e);else if(t instanceof we)t.target=t.target||e;else{var n=t;(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 o=0;o<te.length;o++)r=te[o],Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}})(t=new we(r,e),n)}Ve(e=t.a=e,r,!0,t),Ve(e,r,!1,t)}function Ve(e,t,r,n){if(t=e.f.a[String(t)]){t=t.concat();for(var i=!0,o=0;o<t.length;++o){var s=t[o];if(s&&!s.A&&s.capture==r){var a=s.listener,l=s.H||s.src;s.D&&xe(e.f,s),i=!1!==a.call(l,n)&&i}}}}A(Ue,ve),Ue.prototype[Oe]=!0,Ue.prototype.addEventListener=function(e,t,r,n){ke(this,e,t,r,n)},Ue.prototype.removeEventListener=function(e,t,r,n){!function e(t,r,n,i,o){if(Array.isArray(r))for(var s=0;s<r.length;s++)e(t,r[s],n,i,o);else i=O(i)?!!i.capture:!!i,n=ze(n),t&&t[Oe]?t.f.remove(String(r),n,i,o):t&&(t=Le(t))&&(r=t.a[r.toString()],t=-1,r&&(t=Ae(r,n,i,o)),(n=-1<t?r[t]:null)&&Fe(n))}(this,e,t,r,n)};var We=S;function qe(e,t,r){if("function"==typeof e)r&&(e=x(e,r));else{if(!e||"function"!=typeof e.handleEvent)throw Error("Invalid listener argument");e=x(e.handleEvent,e)}return 2147483647<Number(t)?-1:We.setTimeout(e,t||0)}function He(e,t){this.name=e,this.value=t}He.prototype.toString=function(){return this.name};var $e,Ze,Ye,Je=new He("OFF",1/0),Ke=new He("SEVERE",1e3),Xe=new He("CONFIG",700),Qe=new He("FINE",500);function et(){this.clear()}function tt(e,t,r){this.reset(e||Je,t,r,void 0,void 0)}function rt(e,t){this.a=null,this.f=[],this.b=(void 0===t?null:t)||null,this.c=[],this.g={getName:function(){return e}}}function nt(e){return e.a?e.a:e.b?nt(e.b):(function(e,t){throw new N("Failure"+(e?": "+e:""),Array.prototype.slice.call(arguments,1))}("Root logger has no level set."),Je)}function it(){this.entries={};var e=new rt("");e.a=Xe,this.entries[""]=e}function ot(e,t,r){var n=e.entries[t];if(n)return void 0!==r&&(n.a=r),n;n=ot(e,t.substr(0,t.lastIndexOf(".")));var i=new rt(t,n);return e.entries[t]=i,n.c.push(i),void 0!==r&&(i.a=r),i}function st(){return Ze||(Ze=new it),Ze}function at(e,t,r){var n;(n=e)&&(n=e&&t)&&(n=(n=t.value)>=(e?nt(ot(st(),e.getName())):Je).value);n&&(t=t||Je,n=ot(st(),e.getName()),"function"==typeof r&&(r=r()),$e||($e=new et),function(e,t){for(;e;)e.f.forEach((function(e){e(t)})),e=e.b}(n,e=new tt(t,r,e=e.getName())))}function lt(e,t){e&&at(e,Qe,t)}function ut(){}function ct(e){var t;return(t=e.a)||(t={},ht(e)&&(t[0]=!0,t[1]=!0),t=e.a=t),t}function pt(){}function ft(e){return(e=ht(e))?new ActiveXObject(e):new XMLHttpRequest}function ht(e){if(!e.b&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var t=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],r=0;r<t.length;r++){var n=t[r];try{return new ActiveXObject(n),e.b=n}catch(e){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed")}return e.b}function dt(e,t){this.b=e[S.Symbol.iterator](),this.c=t,this.f=0}et.prototype.clear=function(){},tt.prototype.reset=function(){},ut.prototype.a=null,A(pt,ut),Ye=new pt,a(),p(),dt.prototype[Symbol.iterator]=function(){return this},dt.prototype.next=function(){var e=this.b.next();return{value:e.done?void 0:this.c.call(void 0,e.value,this.f++),done:e.done}},a(),p(),a(),p();var gt="StopIteration"in S?S.StopIteration:{message:"StopIteration",stack:""};function yt(){}function vt(e){if(e instanceof bt||e instanceof wt||e instanceof St)return e;if("function"==typeof e.next)return new bt((function(){return mt(e)}));if(a(),p(),"function"==typeof e[Symbol.iterator])return a(),p(),new bt((function(){return e[Symbol.iterator]()}));if("function"==typeof e.u)return new bt((function(){return mt(e.u())}));throw Error("Not an iterator or iterable.")}function mt(e){if(!(e instanceof yt))return e;var t=!1;return{next:function(){for(var r;!t;)try{r=e.a();break}catch(e){if(e!==gt)throw e;t=!0}return{value:r,done:t}}}}function bt(e){this.b=e}function wt(e){this.b=e}function St(e){bt.call(this,(function(){return e})),this.f=e}function _t(e,t){this.o={},this.j=[],this.B=this.size=0;var r=arguments.length;if(1<r){if(r%2)throw Error("Uneven number of arguments");for(var n=0;n<r;n+=2)this.set(arguments[n],arguments[n+1])}else e&&this.addAll(e)}function Et(e){if(e.size!=e.j.length){for(var t=0,r=0;t<e.j.length;){var n=e.j[t];Ot(e.o,n)&&(e.j[r++]=n),t++}e.j.length=r}if(e.size!=e.j.length){var i={};for(r=t=0;t<e.j.length;)Ot(i,n=e.j[t])||(e.j[r++]=n,i[n]=1),t++;e.j.length=r}}function Ot(e,t){return Object.prototype.hasOwnProperty.call(e,t)}yt.prototype.next=function(){return yt.prototype.a.call(this)},yt.prototype.a=function(){throw gt},yt.prototype.u=function(){return this},a(),p(),bt.prototype.u=function(){return new wt(this.b())},bt.prototype[Symbol.iterator]=function(){return new St(this.b())},bt.prototype.c=function(){return new St(this.b())},a(),p(),m(wt,yt),wt.prototype.a=function(){var e=this.b.next();if(e.done)throw gt;return e.value},wt.prototype.next=function(){return wt.prototype.a.call(this)},wt.prototype[Symbol.iterator]=function(){return new St(this.b)},wt.prototype.c=function(){return new St(this.b)},m(St,bt),St.prototype.next=function(){return this.f.next()},(n=_t.prototype).G=function(){return Et(this),this.j.concat()},n.has=function(e){return Ot(this.o,e)},n.clear=function(){this.o={},this.B=this.size=this.j.length=0},n.remove=function(e){return this.delete(e)},n.delete=function(e){return!!Ot(this.o,e)&&(delete this.o[e],--this.size,this.B++,this.j.length>2*this.size&&Et(this),!0)},n.get=function(e,t){return Ot(this.o,e)?this.o[e]:t},n.set=function(e,t){Ot(this.o,e)||(this.size+=1,this.j.push(e),this.B++),this.o[e]=t},n.addAll=function(e){if(e instanceof _t)for(var t=e.G(),r=0;r<t.length;r++)this.set(t[r],e.get(t[r]));else for(t in e)this.set(t,e[t])},n.forEach=function(e,t){for(var r=this.G(),n=0;n<r.length;n++){var i=r[n],o=this.get(i);e.call(t,o,i,this)}},n.clone=function(){return new _t(this)},n.keys=function(){return vt(this.u(!0)).c()},n.values=function(){return vt(this.u(!1)).c()},n.entries=function(){var e=this;return function(e,t){return new dt(e,t)}(this.keys(),(function(t){return[t,e.get(t)]}))},n.u=function(e){Et(this);var t=0,r=this.B,n=this,i=new yt;return i.a=function(){if(r!=n.B)throw Error("The map has changed since the iterator was created");if(t>=n.j.length)throw gt;var i=n.j[t++];return e?i:n.o[i]},i.next=i.a.bind(i),i};var Rt=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^\\/?#]*)@)?([^\\/?#]*?)(?::([0-9]+))?(?=[\\/?#]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;function Tt(e){Ue.call(this),this.headers=new _t,this.C=e||null,this.c=!1,this.J=this.a=null,this.P=this.v="",this.g=0,this.l="",this.i=this.N=this.s=this.L=!1,this.h=0,this.w=null,this.m=jt,this.I=this.M=!1}A(Tt,Ue);var jt="";Tt.prototype.b=ot(st(),"goog.net.XhrIo",void 0).g;var Pt=/^https?$/i,xt=["POST","PUT"];function At(e,t,r){if(e.a)throw Error("[goog.net.XhrIo] Object is active with another request="+e.v+"; newUri="+t);e.v=t,e.l="",e.g=0,e.P="POST",e.L=!1,e.c=!0,e.a=e.C?ft(e.C):ft(Ye),e.J=e.C?ct(e.C):ct(Ye),e.a.onreadystatechange=x(e.R,e);try{lt(e.b,Dt(e,"Opening Xhr")),e.N=!0,e.a.open("POST",String(t),!0),e.N=!1}catch(t){return lt(e.b,Dt(e,"Error opening Xhr: "+t.message)),void It(e,t)}t=r||"";var n=(r=e.headers.clone()).G().find((function(e){return"content-type"==e.toLowerCase()})),i=S.FormData&&t instanceof S.FormData;!(0<=Y(xt,"POST"))||n||i||r.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8"),r.forEach((function(e,t){this.a.setRequestHeader(t,e)}),e),e.m&&(e.a.responseType=e.m),"withCredentials"in e.a&&e.a.withCredentials!==e.M&&(e.a.withCredentials=e.M);try{Ft(e),0<e.h&&(e.I=function(e){return ae&&ye()&&"number"==typeof e.timeout&&void 0!==e.ontimeout}(e.a),lt(e.b,Dt(e,"Will abort after "+e.h+"ms if incomplete, xhr2 "+e.I)),e.I?(e.a.timeout=e.h,e.a.ontimeout=x(e.T,e)):e.w=qe(e.T,e.h,e)),lt(e.b,Dt(e,"Sending request")),e.s=!0,e.a.send(t),e.s=!1}catch(t){lt(e.b,Dt(e,"Send error: "+t.message)),It(e,t)}}function It(e,t){e.c=!1,e.a&&(e.i=!0,e.a.abort(),e.i=!1),e.l=t,e.g=5,Ct(e),Mt(e)}function Ct(e){e.L||(e.L=!0,Ge(e,"complete"),Ge(e,"error"))}function kt(e){if(e.c&&void 0!==w)if(e.J[1]&&4==Bt(e)&&2==e.getStatus())lt(e.b,Dt(e,"Local request error detected and ignored"));else if(e.s&&4==Bt(e))qe(e.R,0,e);else if(Ge(e,"readystatechange"),4==Bt(e)){lt(e.b,Dt(e,"Request complete")),e.c=!1;try{var t,r=e.getStatus();e:switch(r){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var n=!0;break e;default:n=!1}if(!(t=n)){var i;if(i=0===r){var o=String(e.v).match(Rt)[1]||null;if(!o&&S.self&&S.self.location){var s=S.self.location.protocol;o=s.substr(0,s.length-1)}i=!Pt.test(o?o.toLowerCase():"")}t=i}if(t)Ge(e,"complete"),Ge(e,"success");else{e.g=6;try{var a=2<Bt(e)?e.a.statusText:""}catch(t){lt(e.b,"Can not get status: "+t.message),a=""}e.l=a+" ["+e.getStatus()+"]",Ct(e)}}finally{Mt(e)}}}function Mt(e){if(e.a){Ft(e);var t=e.a,r=e.J[0]?E:null;e.a=null,e.J=null,Ge(e,"ready");try{t.onreadystatechange=r}catch(t){(e=e.b)&&at(e,Ke,"Problem encountered resetting onreadystatechange: "+t.message)}}}function Ft(e){e.a&&e.I&&(e.a.ontimeout=null),e.w&&(We.clearTimeout(e.w),e.w=null)}function Bt(e){return e.a?e.a.readyState:0}function Dt(e,t){return t+" ["+e.P+" "+e.v+" "+e.getStatus()+"]"}(n=Tt.prototype).T=function(){void 0!==w&&this.a&&(this.l="Timed out after "+this.h+"ms, aborting",this.g=8,lt(this.b,Dt(this,this.l)),Ge(this,"timeout"),this.abort(8))},n.abort=function(e){this.a&&this.c&&(lt(this.b,Dt(this,"Aborting")),this.c=!1,this.i=!0,this.a.abort(),this.i=!1,this.g=e||7,Ge(this,"complete"),Ge(this,"abort"),Mt(this))},n.R=function(){this.K||(this.N||this.s||this.i?kt(this):this.W())},n.W=function(){kt(this)},n.getStatus=function(){try{return 2<Bt(this)?this.a.status:-1}catch(e){return-1}};var Lt={},Nt=null;function zt(e){var t=e.length,r=3*t/4;r%3?r=Math.floor(r):K("=.",e[t-1])&&(r=K("=.",e[t-2])?r-2:r-1);var n=new Uint8Array(r),i=0;return function(e,t){function r(t){for(;n<e.length;){var r=e.charAt(n++),i=Nt[r];if(null!=i)return i;if(!/^[\s\xa0]*$/.test(r))throw Error("Unknown base64 encoding at char: "+r)}return t}Ut();for(var n=0;;){var i=r(-1),o=r(0),s=r(64),a=r(64);if(64===a&&-1===i)break;t(i<<2|o>>4),64!=s&&(t(o<<4&240|s>>2),64!=a&&t(s<<6&192|a))}}(e,(function(e){n[i++]=e})),n.subarray(0,i)}function Ut(){if(!Nt){Nt={};for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),t=["+/=","+/","-_=","-_.","-_"],r=0;5>r;r++){var n=e.concat(t[r].split(""));Lt[r]=n;for(var i=0;i<n.length;i++){var o=n[i];void 0===Nt[o]&&(Nt[o]=i)}}}}var Gt=["content-type","grpc-status","grpc-message"];function Vt(e){this.a=e.Z,this.m=null,this.b=[],this.h=[],this.g=[],this.f=[],this.c=[],this.l=!1,this.i=0,this.s=new z;var t=this;ke(this.a,"readystatechange",(function(){var e=t.a;if(e=e.a?e.a.getResponseHeader("Content-Type"):null){if(0==(e=e.toLowerCase()).lastIndexOf("application/grpc-web-text",0)){e=t.a;try{var r=e.a?e.a.responseText:""}catch(t){lt(e.b,"Can not get responseText: "+t.message),r=""}if(r=(e=r||"").length-e.length%4,0==(e=e.substr(t.i,r-t.i)).length)return;t.i=r,e=zt(e)}else{if(0!=e.lastIndexOf("application/grpc",0))return void qt(t,new B(2,"Unknown Content-type received."));e=new Uint8Array(function(e){try{if(!e.a)return null;if("response"in e.a)return e.a.response;switch(e.m){case jt:case"text":return e.a.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in e.a)return e.a.mozResponseArrayBuffer}var t=e.b;return t&&at(t,Ke,"Response type "+e.m+" is not supported on this browser"),null}catch(t){return lt(e.b,"Can not get response: "+t.message),null}}(t.a))}r=null;try{r=function(e,t){function r(e){a.f++,a.a=(a.a<<8)+e,4==a.f&&(a.b=V,a.g=0,"undefined"!=typeof Uint8Array?a.c=new Uint8Array(a.a):a.c=Array(a.a),0==a.a&&i())}function n(e){a.c[a.g++]=e,a.g==a.a&&i()}function i(){var e={};e[a.h]=a.c,a.i.push(e),a.b=U}var o,s,a=e,l=0;for(o=t instanceof Uint8Array||t instanceof Array?t:new Uint8Array(t);l<o.length;){switch(a.b){case W:$(a,o,l,"stream already broken");break;case U:(s=o[l])==q||s==H?a.h=s:$(a,o,l,"invalid frame byte"),a.b=G,a.a=0,a.f=0;break;case G:r(o[l]);break;case V:n(o[l]);break;default:throw Error("unexpected parser state: "+a.b)}a.m++,l++}return e=a.i,a.i=[],0<e.length?e:null}(t.s,e)}catch(e){qt(t,new B(2,"Error in parsing response body"))}if(r)for(e=0;e<r.length;e++){if(q in r[e]){var n=r[e][q];if(n){var i=!1,o=void 0;try{o=t.m(n),i=!0}catch(e){qt(t,new B(13,"Error when deserializing response data; error: "+e+", response: "+o))}if(i)for(n=o,i=0;i<t.b.length;i++)t.b[i](n)}}if(H in r[e]&&0<r[e][H].length){for(n="",i=0;i<r[e][H].length;i++)n+=String.fromCharCode(r[e][H][i]);for(n=n.trim().split("\r\n"),i={},o=0;o<n.length;o++){var s=n[o].indexOf(":");i[n[o].substring(0,s).trim()]=n[o].substring(s+1).trim()}n=i,i=0,o="","grpc-status"in n&&(i=Number(n["grpc-status"]),delete n["grpc-status"]),"grpc-message"in n&&(o=n["grpc-message"],delete n["grpc-message"]),qt(t,new B(i,o,n))}}}})),ke(this.a,"complete",(function(){var e=t.a.g,r=2,n="",i={};r=function(e){var t={};e=(e.a&&4==Bt(e)&&e.a.getAllResponseHeaders()||"").split("\r\n");for(var r=0;r<e.length;r++)if(!/^[\s\xa0]*$/.test(e[r])){var n=re(e[r]),i=n[0];if("string"==typeof(n=n[1])){n=n.trim();var o=t[i]||[];t[i]=o,o.push(n)}}return function(e,t){var r,n={};for(r in e)n[r]=t.call(void 0,e[r],r,e);return n}(t,(function(e){return e.join(", ")}))}(t.a);var o={};for(s in r)r.hasOwnProperty(s)&&(o[s.toLowerCase()]=r[s]);Object.keys(o).forEach((function(e){Gt.includes(e)||(i[e]=o[e])})),function(e,t){for(var r=0;r<e.g.length;r++)e.g[r](t)}(t,i);var s=-1;if(0!=e){switch(e){case 7:r=10;break;case 8:r=4;break;case 6:r=function(e){switch(e){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}}(s=t.a.getStatus());break;default:r=14}10==r&&t.l||(n=function(e){switch(e){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"}}(e),-1!=s&&(n+=", http status code: "+s),qt(t,new B(r,n)))}else e=!1,"grpc-status"in o&&(r=Number(o["grpc-status"]),"grpc-message"in o&&(n=o["grpc-message"]),0!=r&&(qt(t,new B(r,n||"",o)),e=!0)),e||function(e){for(var t=0;t<e.c.length;t++)e.c[t]()}(t)}))}function Wt(e,t){-1<(t=e.indexOf(t))&&e.splice(t,1)}function qt(e,t){if(0!=t.code)for(var r=new B(t.code,decodeURIComponent(t.message||""),t.metadata),n=0;n<e.f.length;n++)e.f[n](r);for(t={code:t.code,details:decodeURIComponent(t.message||""),metadata:t.metadata},r=0;r<e.h.length;r++)e.h[r](t)}function Ht(e,t){e=void 0===e?{}:e,this.a=e.format||_("format",e)||"text",this.g=e.aa||_("suppressCorsPreflight",e)||!1,this.f=e.withCredentials||_("withCredentials",e)||!1,this.b=e.$||_("streamInterceptors",e)||[],this.h=e.ba||_("unaryInterceptors",e)||[],this.c=t||null}function $t(e,t,r){var n=t.getMethodDescriptor(),i=r+n.getName();(r=e.c?e.c:new Tt).M=e.f;var o=new Vt({Z:r});o.m=n.b;var s=t.getMetadata();for(a in s)r.headers.set(a,s[a]);if("text"==e.a?(r.headers.set("Content-Type","application/grpc-web-text"),r.headers.set("Accept","application/grpc-web-text")):r.headers.set("Content-Type","application/grpc-web+proto"),r.headers.set("X-User-Agent","grpc-web-javascript/0.1"),r.headers.set("X-Grpc-Web","1"),r.headers.has("deadline")){var a=Number(r.headers.get("deadline"));a=Math.ceil(a-(new Date).getTime()),r.headers.delete("deadline"),1/0===a&&(a=0),0<a&&(r.headers.set("grpc-timeout",a+"m"),r.h=Math.max(0,Math.max(1e3,Math.ceil(1.1*a))))}if(e.g){a={};for(var l=f((s=r.headers).keys()),u=l.next();!u.done;u=l.next())a[u=u.value]=s.get(u);r.headers.clear();e:{for(c in a){var c=!1;break e}c=!0}c||(a=function(e){var t="";return function(e,t){for(var r in e)t.call(void 0,e[r],r,e)}(e,(function(e,r){t+=r,t+=":",t+=e,t+="\r\n"})),t}(a),"string"==typeof i?(c=encodeURIComponent("$httpHeaders"),(c+=a=null!=a?"="+encodeURIComponent(String(a)):"")&&(0>(a=i.indexOf("#"))&&(a=i.length),0>(s=i.indexOf("?"))||s>a?(s=a,l=""):l=i.substring(s+1,a),a=(i=[i.substr(0,s),l,i.substr(a)])[1],i[1]=c?a?a+"&"+c:c:a,i=i[0]+(i[1]?"?"+i[1]:"")+i[2])):i.a("$httpHeaders",a))}for(n=(t=(0,n.a)(t.getRequestMessage())).length,c=[0,0,0,0],a=new Uint8Array(5+n),s=3;0<=s;s--)c[s]=n%256,n>>>=8;if(a.set(new Uint8Array(c),1),a.set(t,5),t=a,"text"==e.a){var p;for(e=t,void 0===p&&(p=0),Ut(),p=Lt[p],t=Array(Math.floor(e.length/3)),n=p[64]||"",c=a=0;a<e.length-2;a+=3){u=e[a];var h=e[a+1];l=e[a+2],s=p[u>>2],u=p[(3&u)<<4|h>>4],h=p[(15&h)<<2|l>>6],l=p[63&l],t[c++]=s+u+h+l}switch(s=0,l=n,e.length-a){case 2:l=p[(15&(s=e[a+1]))<<2]||n;case 1:e=e[a],t[c]=p[e>>2]+p[(3&e)<<4|s>>4]+l+n}t=t.join("")}else"binary"==e.a&&(r.m="arraybuffer");return At(r,i,t),o}function Zt(e,t,r){var n=!1,i=null,o=!1;e.on("data",(function(e){n=!0,i=e})),e.on("error",(function(e){0==e.code||o||(o=!0,t(e,null))})),e.on("status",(function(e){0==e.code||o?r&&t(null,null,e):(o=!0,t({code:e.code,message:e.details,metadata:e.metadata},null))})),r&&e.on("metadata",(function(e){t(null,null,null,e)})),e.on("end",(function(){o||(n?r?t(null,i,null,null,!0):t(null,i):t({code:2,message:"Incomplete response"})),r&&t(null,null)}))}function Yt(e,t){var r=e;return t.forEach((function(e){var t=r;r=function(r){return e.intercept(r,t)}})),r}Vt.prototype.on=function(e,t){return"data"==e?this.b.push(t):"status"==e?this.h.push(t):"metadata"==e?this.g.push(t):"end"==e?this.c.push(t):"error"==e&&this.f.push(t),this},Vt.prototype.removeListener=function(e,t){return"data"==e?Wt(this.b,t):"status"==e?Wt(this.h,t):"metadata"==e?Wt(this.g,t):"end"==e?Wt(this.c,t):"error"==e&&Wt(this.f,t),this},Vt.prototype.cancel=function(){this.l=!0,this.a.abort()},Vt.prototype.cancel=Vt.prototype.cancel,Vt.prototype.removeListener=Vt.prototype.removeListener,Vt.prototype.on=Vt.prototype.on,Ht.prototype.X=function(e,t,r,n,i){var o=this,s=e.substr(0,e.length-n.name.length);return Zt(e=Yt((function(e){return $t(o,e,s)}),this.b).call(this,F(n,t,r)),i,!1),new D(e)},Ht.prototype.S=function(e,t,r,n){var i=this,o=e.substr(0,e.length-n.name.length);return Yt((function(e){return new Promise((function(t,r){var n,s,a;Zt($t(i,e,o),(function(i,o,l,u,c){i?r(i):c?a=o:l?s=l:u?n=u:(i=e.getMethodDescriptor(),t(new k(a,i,o=void 0===(o=n)?{}:o,void 0===s?null:s)))}),!0)}))}),this.h).call(this,F(n,t,r)).then((function(e){return e.getResponseMessage()}))},Ht.prototype.unaryCall=function(e,t,r,n){return this.S(e,t,r,n)},Ht.prototype.Y=function(e,t,r,n){var i=this,o=e.substr(0,e.length-n.name.length);return Yt((function(e){return $t(i,e,o)}),this.b).call(this,F(n,t,r))},Ht.prototype.serverStreaming=Ht.prototype.Y,Ht.prototype.unaryCall=Ht.prototype.unaryCall,Ht.prototype.thenableCall=Ht.prototype.S,Ht.prototype.rpcCall=Ht.prototype.X,e.exports.CallOptions=I,e.exports.MethodDescriptor=M,e.exports.GrpcWebClientBase=Ht,e.exports.RpcError=B,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.MethodType={UNARY:"unary",SERVER_STREAMING:"server_streaming",BIDI_STREAMING:"bidi_streaming"},We="undefined"!=typeof globalThis&&globalThis||self},7239:(e,t,r)=>{"use strict";var n=r(4940),i=function(){return!!n};i.hasArrayLengthDefineBug=function(){if(!n)return null;try{return 1!==n([],"length",{value:1}).length}catch(e){return!0}},e.exports=i},6869:e=>{"use strict";var t={__proto__:null,foo:{}},r=Object;e.exports=function(){return{__proto__:t}.foo===t.foo&&!(t instanceof r)}},3558:(e,t,r)=>{"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(2908);e.exports=function(){return"function"==typeof n&&("function"==typeof Symbol&&("symbol"==typeof n("foo")&&("symbol"==typeof Symbol("bar")&&i())))}},2908:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},1913:(e,t,r)=>{"use strict";var n=r(2908);e.exports=function(){return n()&&!!Symbol.toStringTag}},8554:(e,t,r)=>{"use strict";var n=Function.prototype.call,i=Object.prototype.hasOwnProperty,o=r(9138);e.exports=o.call(n,i)},7500:(e,t,r)=>{var n=r(4865),i=r(5442),o=e.exports;for(var s in n)n.hasOwnProperty(s)&&(o[s]=n[s]);function a(e){if("string"==typeof e&&(e=i.parse(e)),e.protocol||(e.protocol="https:"),"https:"!==e.protocol)throw new Error('Protocol "'+e.protocol+'" not supported. Expected "https:"');return e}o.request=function(e,t){return e=a(e),n.request.call(this,e,t)},o.get=function(e,t){return e=a(e),n.get.call(this,e,t)}},9318:(e,t)=>{t.read=function(e,t,r,n,i){var o,s,a=8*i-n-1,l=(1<<a)-1,u=l>>1,c=-7,p=r?i-1:0,f=r?-1:1,h=e[t+p];for(p+=f,o=h&(1<<-c)-1,h>>=-c,c+=a;c>0;o=256*o+e[t+p],p+=f,c-=8);for(s=o&(1<<-c)-1,o>>=-c,c+=n;c>0;s=256*s+e[t+p],p+=f,c-=8);if(0===o)o=1-u;else{if(o===l)return s?NaN:1/0*(h?-1:1);s+=Math.pow(2,n),o-=u}return(h?-1:1)*s*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var s,a,l,u=8*o-i-1,c=(1<<u)-1,p=c>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:o-1,d=n?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=c):(s=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-s))<1&&(s--,l*=2),(t+=s+p>=1?f/l:f*Math.pow(2,1-p))*l>=2&&(s++,l/=2),s+p>=c?(a=0,s=c):s+p>=1?(a=(t*l-1)*Math.pow(2,i),s+=p):(a=t*Math.pow(2,p-1)*Math.pow(2,i),s=0));i>=8;e[r+h]=255&a,h+=d,a/=256,i-=8);for(s=s<<i|a,u+=i;u>0;e[r+h]=255&s,h+=d,s/=256,u-=8);e[r+h-d]|=128*g}},5615:e=>{"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},5387:(e,t,r)=>{"use strict";var n=r(1913)(),i=r(9818)("Object.prototype.toString"),o=function(e){return!(n&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===i(e)},s=function(e){return!!o(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==i(e)&&"[object Function]"===i(e.callee)},a=function(){return o(arguments)}();o.isLegacyArguments=s,e.exports=a?o:s},9617:e=>{"use strict";var t,r,n=Function.prototype.toString,i="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof i&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw r}}),r={},i((function(){throw 42}),null,t)}catch(e){e!==r&&(i=null)}else i=null;var o=/^\s*class\b/,s=function(e){try{var t=n.call(e);return o.test(t)}catch(e){return!1}},a=function(e){try{return!s(e)&&(n.call(e),!0)}catch(e){return!1}},l=Object.prototype.toString,u="function"==typeof Symbol&&!!Symbol.toStringTag,c=!(0 in[,]),p=function(){return!1};if("object"==typeof document){var f=document.all;l.call(f)===l.call(document.all)&&(p=function(e){if((c||!e)&&(void 0===e||"object"==typeof e))try{var t=l.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(e){}return!1})}e.exports=i?function(e){if(p(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;try{i(e,null,t)}catch(e){if(e!==r)return!1}return!s(e)&&a(e)}:function(e){if(p(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if(u)return a(e);if(s(e))return!1;var t=l.call(e);return!("[object Function]"!==t&&"[object GeneratorFunction]"!==t&&!/^\[object HTML/.test(t))&&a(e)}},2625:(e,t,r)=>{"use strict";var n,i=Object.prototype.toString,o=Function.prototype.toString,s=/^\s*(?:function)?\*/,a=r(1913)(),l=Object.getPrototypeOf;e.exports=function(e){if("function"!=typeof e)return!1;if(s.test(o.call(e)))return!0;if(!a)return"[object GeneratorFunction]"===i.call(e);if(!l)return!1;if(void 0===n){var t=function(){if(!a)return!1;try{return Function("return function*() {}")()}catch(e){}}();n=!!t&&l(t)}return l(e)===n}},8006:e=>{"use strict";e.exports=function(e){return e!=e}},7838:(e,t,r)=>{"use strict";var n=r(8498),i=r(1857),o=r(8006),s=r(1591),a=r(1641),l=n(s(),Number);i(l,{getPolyfill:s,implementation:o,shim:a}),e.exports=l},1591:(e,t,r)=>{"use strict";var n=r(8006);e.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:n}},1641:(e,t,r)=>{"use strict";var n=r(1857),i=r(1591);e.exports=function(){var e=i();return n(Number,{isNaN:e},{isNaN:function(){return Number.isNaN!==e}}),e}},6605:e=>{"use strict";const t=e=>null!==e&&"object"==typeof e&&"function"==typeof e.pipe;t.writable=e=>t(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState,t.readable=e=>t(e)&&!1!==e.readable&&"function"==typeof e._read&&"object"==typeof e._readableState,t.duplex=e=>t.writable(e)&&t.readable(e),t.transform=e=>t.duplex(e)&&"function"==typeof e._transform,e.exports=t},5943:(e,t,r)=>{"use strict";var n=r(2730);e.exports=function(e){return!!n(e)}},8311:(e,t,r)=>{r(3737),e.exports={encode:e=>(new TextEncoder).encode(e),decode:e=>(new TextDecoder).decode(e)}},8278:(e,t,r)=>{"use strict";var n=r(1616);e.exports=n((function(e){return e.message="\t".concat(e.message),e}))},8911:(e,t,r)=>{"use strict";var n=t.format=r(1616);t.levels=r(3084),Object.defineProperty(n,"align",{value:r(8278)}),Object.defineProperty(n,"cli",{value:r(8877)}),Object.defineProperty(n,"colorize",{value:r(452)}),Object.defineProperty(n,"combine",{value:r(4450)}),Object.defineProperty(n,"errors",{value:r(2244)}),Object.defineProperty(n,"json",{value:r(9181)}),Object.defineProperty(n,"label",{value:r(4673)}),Object.defineProperty(n,"logstash",{value:r(372)}),Object.defineProperty(n,"metadata",{value:r(5350)}),Object.defineProperty(n,"ms",{value:r(4659)}),Object.defineProperty(n,"padLevels",{value:r(8071)}),Object.defineProperty(n,"prettyPrint",{value:r(9121)}),Object.defineProperty(n,"printf",{value:r(7016)}),Object.defineProperty(n,"simple",{value:r(205)}),Object.defineProperty(n,"splat",{value:r(2695)}),Object.defineProperty(n,"timestamp",{value:r(8215)}),Object.defineProperty(n,"uncolorize",{value:r(1083)})},8877:(e,t,r)=>{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,s(n.key),n)}}function s(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:String(t)}var a=r(452).Colorizer,l=r(8071).Padder,u=r(4966),c=u.configs,p=u.MESSAGE,f=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i(this,e),t.levels||(t.levels=c.cli.levels),this.colorizer=new a(t),this.padder=new l(t),this.options=t}var t,r,n;return t=e,(r=[{key:"transform",value:function(e,t){return this.colorizer.transform(this.padder.transform(e,t),t),e[p]="".concat(e.level,":").concat(e.message),e}}])&&o(t.prototype,r),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();e.exports=function(e){return new f(e)},e.exports.Format=f},452:(e,t,r)=>{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,s(n.key),n)}}function s(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:String(t)}var a=r(1158),l=r(4966),u=l.LEVEL,c=l.MESSAGE;a.enabled=!0;var p=/\s+/,f=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i(this,e),t.colors&&this.addColors(t.colors),this.options=t}var t,r,n;return t=e,n=[{key:"addColors",value:function(t){var r=Object.keys(t).reduce((function(e,r){return e[r]=p.test(t[r])?t[r].split(p):t[r],e}),{});return e.allColors=Object.assign({},e.allColors||{},r),e.allColors}}],(r=[{key:"addColors",value:function(t){return e.addColors(t)}},{key:"colorize",value:function(t,r,n){if(void 0===n&&(n=r),!Array.isArray(e.allColors[t]))return a[e.allColors[t]](n);for(var i=0,o=e.allColors[t].length;i<o;i++)n=a[e.allColors[t][i]](n);return n}},{key:"transform",value:function(e,t){return t.all&&"string"==typeof e[c]&&(e[c]=this.colorize(e[u],e.level,e[c])),(t.level||t.all||!t.message)&&(e.level=this.colorize(e[u],e.level)),(t.all||t.message)&&(e.message=this.colorize(e[u],e.level,e.message)),e}}])&&o(t.prototype,r),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();e.exports=function(e){return new f(e)},e.exports.Colorizer=e.exports.Format=f},4450:(e,t,r)=>{"use strict";var n=r(1616);function i(e){if(e.every(o))return function(t){for(var r=t,n=0;n<e.length;n++)if(!(r=e[n].transform(r,e[n].options)))return!1;return r}}function o(e){if("function"!=typeof e.transform)throw new Error(["No transform function found on format. Did you create a format instance?","const myFormat = format(formatFn);","const instance = myFormat();"].join("\n"));return!0}e.exports=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var o=n(i(t)),s=o();return s.Format=o.Format,s},e.exports.cascade=i},2244:(e,t,r)=>{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t,r){var i;return i=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==n(i)?i:String(i))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o=r(1616),s=r(4966),a=s.LEVEL,l=s.MESSAGE;e.exports=o((function(e,t){var r=t.stack,n=t.cause;if(e instanceof Error){var o=Object.assign({},e,i(i(i({level:e.level},a,e[a]||e.level),"message",e.message),l,e[l]||e.message));return r&&(o.stack=e.stack),n&&(o.cause=e.cause),o}if(!(e.message instanceof Error))return e;var s=e.message;return Object.assign(e,s),e.message=s.message,e[l]=s.message,r&&(e.stack=s.stack),n&&(e.cause=s.cause),e}))},1616:e=>{"use strict";function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,n(i.key),i)}}function n(e){var r=function(e,r){if("object"!=t(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,r||"default");if("object"!=t(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}(e,"string");return"symbol"==t(r)?r:String(r)}function i(e,r){if(r&&("object"===t(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return o(e)}function o(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e){var t="function"==typeof Map?new Map:void 0;return(s=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return a(e,arguments,c(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),u(r,e)})(e)}function a(e,t,r){return(a=l()?Reflect.construct.bind():function(e,t,r){var n=[null];n.push.apply(n,t);var i=new(Function.bind.apply(e,n));return r&&u(i,r.prototype),i}).apply(null,arguments)}function l(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function u(e,t){return(u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(h,e);var t,n,s,a,p,f=(t=h,n=l(),function(){var e,r=c(t);if(n){var o=c(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return i(this,e)});function h(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h),t=f.call(this,"Format functions must be synchronous taking a two arguments: (info, opts)\nFound: ".concat(e.toString().split("\n")[0],"\n")),Error.captureStackTrace(o(t),h),t}return s=h,a&&r(s.prototype,a),p&&r(s,p),Object.defineProperty(s,"prototype",{writable:!1}),s}(s(Error));e.exports=function(e){if(e.length>2)throw new p(e);function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.options=e}function r(e){return new t(e)}return t.prototype.transform=e,r.Format=t,r}},9181:(e,t,r)=>{"use strict";var n=r(1616),i=r(4966).MESSAGE,o=r(1145);function s(e,t){return"bigint"==typeof t?t.toString():t}e.exports=n((function(e,t){var r=o.configure(t);return e[i]=r(e,t.replacer||s,t.space),e}))},4673:(e,t,r)=>{"use strict";var n=r(1616);e.exports=n((function(e,t){return t.message?(e.message="[".concat(t.label,"] ").concat(e.message),e):(e.label=t.label,e)}))},3084:(e,t,r)=>{"use strict";var n=r(452).Colorizer;e.exports=function(e){return n.addColors(e.colors||e),e}},372:(e,t,r)=>{"use strict";var n=r(1616),i=r(4966).MESSAGE,o=r(1145);e.exports=n((function(e){var t={};return e.message&&(t["@message"]=e.message,delete e.message),e.timestamp&&(t["@timestamp"]=e.timestamp,delete e.timestamp),t["@fields"]=e,e[i]=o(t),e}))},5350:(e,t,r)=>{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t,r){var i;return i=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==n(i)?i:String(i))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o=r(1616);function s(e,t,r){var n=t.reduce((function(t,r){return t[r]=e[r],delete e[r],t}),{}),o=Object.keys(e).reduce((function(t,r){return t[r]=e[r],delete e[r],t}),{});return Object.assign(e,n,i({},r,o)),e}function a(e,t,r){return e[r]=t.reduce((function(t,r){return t[r]=e[r],delete e[r],t}),{}),e}e.exports=o((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r="metadata";t.key&&(r=t.key);var n=[];return t.fillExcept||t.fillWith||(n.push("level"),n.push("message")),t.fillExcept&&(n=t.fillExcept),n.length>0?s(e,n,r):t.fillWith?a(e,t.fillWith,r):e}))},4659:(e,t,r)=>{"use strict";var n=r(1616),i=r(7250);e.exports=n((function(e){var t=+new Date;return(void 0).diff=t-((void 0).prevTime||t),(void 0).prevTime=t,e.ms="+".concat(i((void 0).diff)),e}))},8071:(e,t,r)=>{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return o(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,l(n.key),n)}}function l(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:String(t)}var u=r(4966),c=u.configs,p=u.LEVEL,f=u.MESSAGE,h=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{levels:c.npm.levels};s(this,e),this.paddings=e.paddingForLevels(t.levels,t.filler),this.options=t}var t,r,n;return t=e,n=[{key:"getLongestLevel",value:function(e){var t=Object.keys(e).map((function(e){return e.length}));return Math.max.apply(Math,i(t))}},{key:"paddingForLevel",value:function(e,t,r){var n=r+1-e.length,i=Math.floor(n/t.length);return"".concat(t).concat(t.repeat(i)).slice(0,n)}},{key:"paddingForLevels",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" ",n=e.getLongestLevel(t);return Object.keys(t).reduce((function(t,i){return t[i]=e.paddingForLevel(i,r,n),t}),{})}}],(r=[{key:"transform",value:function(e,t){return e.message="".concat(this.paddings[e[p]]).concat(e.message),e[f]&&(e[f]="".concat(this.paddings[e[p]]).concat(e[f])),e}}])&&a(t.prototype,r),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();e.exports=function(e){return new h(e)},e.exports.Padder=e.exports.Format=h},9121:(e,t,r)=>{"use strict";var n=r(9208).inspect,i=r(1616),o=r(4966),s=o.LEVEL,a=o.MESSAGE,l=o.SPLAT;e.exports=i((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=Object.assign({},e);return delete r[s],delete r[a],delete r[l],e[a]=n(r,!1,t.depth||null,t.colorize),e}))},7016:(e,t,r)=>{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,o(n.key),n)}}function o(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:String(t)}var s=r(4966).MESSAGE,a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.template=t}var t,r,n;return t=e,(r=[{key:"transform",value:function(e){return e[s]=this.template(e),e}}])&&i(t.prototype,r),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();e.exports=function(e){return new a(e)},e.exports.Printf=e.exports.Format=a},205:(e,t,r)=>{"use strict";var n=r(1616),i=r(4966).MESSAGE,o=r(1145);e.exports=n((function(e){var t=o(Object.assign({},e,{level:void 0,message:void 0,splat:void 0})),r=e.padding&&e.padding[e.level]||"";return e[i]="{}"!==t?"".concat(e.level,":").concat(r," ").concat(e.message," ").concat(t):"".concat(e.level,":").concat(r," ").concat(e.message),e}))},2695:(e,t,r)=>{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return o(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,a(n.key),n)}}function a(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:String(t)}var l=r(9208),u=r(4966).SPLAT,c=/%[scdjifoO%]/g,p=/%%/g,f=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=t}var t,r,n;return t=e,(r=[{key:"_splat",value:function(e,t){var r=e.message,n=e[u]||e.splat||[],o=r.match(p),s=o&&o.length||0,a=t.length-s-n.length,c=a<0?n.splice(a,-1*a):[],f=c.length;if(f)for(var h=0;h<f;h++)Object.assign(e,c[h]);return e.message=l.format.apply(l,[r].concat(i(n))),e}},{key:"transform",value:function(e){var t=e.message,r=e[u]||e.splat;if(!r||!r.length)return e;var n=t&&t.match&&t.match(c);if(!n&&(r||r.length)){var i=r.length>1?r.splice(0):r,o=i.length;if(o)for(var s=0;s<o;s++)Object.assign(e,i[s]);return e}return n?this._splat(e,n):e}}])&&s(t.prototype,r),n&&s(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();e.exports=function(e){return new f(e)}},8215:(e,t,r)=>{"use strict";var n=r(4798),i=r(1616);e.exports=i((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.format&&(e.timestamp="function"==typeof t.format?t.format():n.format(new Date,t.format)),e.timestamp||(e.timestamp=(new Date).toISOString()),t.alias&&(e[t.alias]=e.timestamp),e}))},1083:(e,t,r)=>{"use strict";var n=r(1158),i=r(1616),o=r(4966).MESSAGE;e.exports=i((function(e,t){return!1!==t.level&&(e.level=n.strip(e.level)),!1!==t.message&&(e.message=n.strip(String(e.message))),!1!==t.raw&&e[o]&&(e[o]=n.strip(String(e[o]))),e}))},9327:e=>{"use strict";class t extends Error{constructor(e){super(`Format functions must be synchronous taking a two arguments: (info, opts)\nFound: ${e.toString().split("\n")[0]}\n`),Error.captureStackTrace(this,t)}}e.exports=e=>{if(e.length>2)throw new t(e);function r(e={}){this.options=e}function n(e){return new r(e)}return r.prototype.transform=e,n.Format=r,n}},2598:(e,t,r)=>{"use strict";const n=r(9327),{MESSAGE:i}=r(4966),o=r(1145);function s(e,t){return"bigint"==typeof t?t.toString():t}e.exports=n((e,t)=>{const r=o.configure(t);return e[i]=r(e,t.replacer||s,t.space),e})},7250:e=>{var t=1e3,r=6e4,n=60*r,i=24*n;function o(e,t,r,n){var i=t>=1.5*r;return Math.round(e/r)+" "+n+(i?"s":"")}e.exports=function(e,s){s=s||{};var a=typeof e;if("string"===a&&e.length>0)return function(e){if((e=String(e)).length>100)return;var o=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!o)return;var s=parseFloat(o[1]);switch((o[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*s;case"weeks":case"week":case"w":return 6048e5*s;case"days":case"day":case"d":return s*i;case"hours":case"hour":case"hrs":case"hr":case"h":return s*n;case"minutes":case"minute":case"mins":case"min":case"m":return s*r;case"seconds":case"second":case"secs":case"sec":case"s":return s*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}(e);if("number"===a&&isFinite(e))return s.long?function(e){var s=Math.abs(e);if(s>=i)return o(e,s,i,"day");if(s>=n)return o(e,s,n,"hour");if(s>=r)return o(e,s,r,"minute");if(s>=t)return o(e,s,t,"second");return e+" ms"}(e):function(e){var o=Math.abs(e);if(o>=i)return Math.round(e/i)+"d";if(o>=n)return Math.round(e/n)+"h";if(o>=r)return Math.round(e/r)+"m";if(o>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},8660:(e,t,r)=>{var n="function"==typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=n&&i&&"function"==typeof i.get?i.get:null,s=n&&Map.prototype.forEach,a="function"==typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&a?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=a&&l&&"function"==typeof l.get?l.get:null,c=a&&Set.prototype.forEach,p="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,f="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,h="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,d=Boolean.prototype.valueOf,g=Object.prototype.toString,y=Function.prototype.toString,v=String.prototype.match,m=String.prototype.slice,b=String.prototype.replace,w=String.prototype.toUpperCase,S=String.prototype.toLowerCase,_=RegExp.prototype.test,E=Array.prototype.concat,O=Array.prototype.join,R=Array.prototype.slice,T=Math.floor,j="function"==typeof BigInt?BigInt.prototype.valueOf:null,P=Object.getOwnPropertySymbols,x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,A="function"==typeof Symbol&&"object"==typeof Symbol.iterator,I="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===A||"symbol")?Symbol.toStringTag:null,C=Object.prototype.propertyIsEnumerable,k=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function M(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||_.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var n=e<0?-T(-e):T(e);if(n!==e){var i=String(n),o=m.call(t,i.length+1);return b.call(i,r,"$&_")+"."+b.call(b.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(t,r,"$&_")}var F=r(6973),B=F.custom,D=G(B)?B:null;function L(e,t,r){var n="double"===(r.quoteStyle||t)?'"':"'";return n+e+n}function N(e){return b.call(String(e),/"/g,"&quot;")}function z(e){return!("[object Array]"!==q(e)||I&&"object"==typeof e&&I in e)}function U(e){return!("[object RegExp]"!==q(e)||I&&"object"==typeof e&&I in e)}function G(e){if(A)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!x)return!1;try{return x.call(e),!0}catch(e){}return!1}e.exports=function e(t,n,i,a){var l=n||{};if(W(l,"quoteStyle")&&"single"!==l.quoteStyle&&"double"!==l.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(W(l,"maxStringLength")&&("number"==typeof l.maxStringLength?l.maxStringLength<0&&l.maxStringLength!==1/0:null!==l.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var g=!W(l,"customInspect")||l.customInspect;if("boolean"!=typeof g&&"symbol"!==g)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(W(l,"indent")&&null!==l.indent&&"\t"!==l.indent&&!(parseInt(l.indent,10)===l.indent&&l.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(W(l,"numericSeparator")&&"boolean"!=typeof l.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var w=l.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return function e(t,r){if(t.length>r.maxStringLength){var n=t.length-r.maxStringLength,i="... "+n+" more character"+(n>1?"s":"");return e(m.call(t,0,r.maxStringLength),r)+i}return L(b.call(b.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,$),"single",r)}(t,l);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var _=String(t);return w?M(t,_):_}if("bigint"==typeof t){var T=String(t)+"n";return w?M(t,T):T}var P=void 0===l.depth?5:l.depth;if(void 0===i&&(i=0),i>=P&&P>0&&"object"==typeof t)return z(t)?"[Array]":"[Object]";var B=function(e,t){var r;if("\t"===e.indent)r="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;r=O.call(Array(e.indent+1)," ")}return{base:r,prev:O.call(Array(t+1),r)}}(l,i);if(void 0===a)a=[];else if(H(a,t)>=0)return"[Circular]";function V(t,r,n){if(r&&(a=R.call(a)).push(r),n){var o={depth:l.depth};return W(l,"quoteStyle")&&(o.quoteStyle=l.quoteStyle),e(t,o,i+1,a)}return e(t,l,i+1,a)}if("function"==typeof t&&!U(t)){var Q=function(e){if(e.name)return e.name;var t=v.call(y.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),ee=X(t,V);return"[Function"+(Q?": "+Q:" (anonymous)")+"]"+(ee.length>0?" { "+O.call(ee,", ")+" }":"")}if(G(t)){var te=A?b.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):x.call(t);return"object"!=typeof t||A?te:Z(te)}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(t)){for(var re="<"+S.call(String(t.nodeName)),ne=t.attributes||[],ie=0;ie<ne.length;ie++)re+=" "+ne[ie].name+"="+L(N(ne[ie].value),"double",l);return re+=">",t.childNodes&&t.childNodes.length&&(re+="..."),re+="</"+S.call(String(t.nodeName))+">"}if(z(t)){if(0===t.length)return"[]";var oe=X(t,V);return B&&!function(e){for(var t=0;t<e.length;t++)if(H(e[t],"\n")>=0)return!1;return!0}(oe)?"["+K(oe,B)+"]":"[ "+O.call(oe,", ")+" ]"}if(function(e){return!("[object Error]"!==q(e)||I&&"object"==typeof e&&I in e)}(t)){var se=X(t,V);return"cause"in Error.prototype||!("cause"in t)||C.call(t,"cause")?0===se.length?"["+String(t)+"]":"{ ["+String(t)+"] "+O.call(se,", ")+" }":"{ ["+String(t)+"] "+O.call(E.call("[cause]: "+V(t.cause),se),", ")+" }"}if("object"==typeof t&&g){if(D&&"function"==typeof t[D]&&F)return F(t,{depth:P-i});if("symbol"!==g&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!o||!e||"object"!=typeof e)return!1;try{o.call(e);try{u.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var ae=[];return s&&s.call(t,(function(e,r){ae.push(V(r,t,!0)+" => "+V(e,t))})),J("Map",o.call(t),ae,B)}if(function(e){if(!u||!e||"object"!=typeof e)return!1;try{u.call(e);try{o.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var le=[];return c&&c.call(t,(function(e){le.push(V(e,t))})),J("Set",u.call(t),le,B)}if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{p.call(e,p);try{f.call(e,f)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return Y("WeakMap");if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{f.call(e,f);try{p.call(e,p)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return Y("WeakSet");if(function(e){if(!h||!e||"object"!=typeof e)return!1;try{return h.call(e),!0}catch(e){}return!1}(t))return Y("WeakRef");if(function(e){return!("[object Number]"!==q(e)||I&&"object"==typeof e&&I in e)}(t))return Z(V(Number(t)));if(function(e){if(!e||"object"!=typeof e||!j)return!1;try{return j.call(e),!0}catch(e){}return!1}(t))return Z(V(j.call(t)));if(function(e){return!("[object Boolean]"!==q(e)||I&&"object"==typeof e&&I in e)}(t))return Z(d.call(t));if(function(e){return!("[object String]"!==q(e)||I&&"object"==typeof e&&I in e)}(t))return Z(V(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||void 0!==r.g&&t===r.g)return"{ [object globalThis] }";if(!function(e){return!("[object Date]"!==q(e)||I&&"object"==typeof e&&I in e)}(t)&&!U(t)){var ue=X(t,V),ce=k?k(t)===Object.prototype:t instanceof Object||t.constructor===Object,pe=t instanceof Object?"":"null prototype",fe=!ce&&I&&Object(t)===t&&I in t?m.call(q(t),8,-1):pe?"Object":"",he=(ce||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(fe||pe?"["+O.call(E.call([],fe||[],pe||[]),": ")+"] ":"");return 0===ue.length?he+"{}":B?he+"{"+K(ue,B)+"}":he+"{ "+O.call(ue,", ")+" }"}return String(t)};var V=Object.prototype.hasOwnProperty||function(e){return e in this};function W(e,t){return V.call(e,t)}function q(e){return g.call(e)}function H(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function $(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+w.call(t.toString(16))}function Z(e){return"Object("+e+")"}function Y(e){return e+" { ? }"}function J(e,t,r,n){return e+" ("+t+") {"+(n?K(r,n):O.call(r,", "))+"}"}function K(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+O.call(e,","+r)+"\n"+t.prev}function X(e,t){var r=z(e),n=[];if(r){n.length=e.length;for(var i=0;i<e.length;i++)n[i]=W(e,i)?t(e[i],e):""}var o,s="function"==typeof P?P(e):[];if(A){o={};for(var a=0;a<s.length;a++)o["$"+s[a]]=s[a]}for(var l in e)W(e,l)&&(r&&String(Number(l))===l&&l<e.length||A&&o["$"+l]instanceof Symbol||(_.call(/[^\w$]/,l)?n.push(t(l,e)+": "+t(e[l],e)):n.push(l+": "+t(e[l],e))));if("function"==typeof P)for(var u=0;u<s.length;u++)C.call(e,s[u])&&n.push("["+t(s[u])+"]: "+t(e[s[u]],e));return n}},2372:e=>{"use strict";var t=function(e){return e!=e};e.exports=function(e,r){return 0===e&&0===r?1/e==1/r:e===r||!(!t(e)||!t(r))}},5968:(e,t,r)=>{"use strict";var n=r(1857),i=r(8498),o=r(2372),s=r(1937),a=r(5087),l=i(s(),Object);n(l,{getPolyfill:s,implementation:o,shim:a}),e.exports=l},1937:(e,t,r)=>{"use strict";var n=r(2372);e.exports=function(){return"function"==typeof Object.is?Object.is:n}},5087:(e,t,r)=>{"use strict";var n=r(1937),i=r(1857);e.exports=function(){var e=n();return i(Object,{is:e},{is:function(){return Object.is!==e}}),e}},8160:(e,t,r)=>{"use strict";var n;if(!Object.keys){var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,s=r(968),a=Object.prototype.propertyIsEnumerable,l=!a.call({toString:null},"toString"),u=a.call((function(){}),"prototype"),c=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],p=function(e){var t=e.constructor;return t&&t.prototype===e},f={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},h=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!f["$"+e]&&i.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{p(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();n=function(e){var t=null!==e&&"object"==typeof e,r="[object Function]"===o.call(e),n=s(e),a=t&&"[object String]"===o.call(e),f=[];if(!t&&!r&&!n)throw new TypeError("Object.keys called on a non-object");var d=u&&r;if(a&&e.length>0&&!i.call(e,0))for(var g=0;g<e.length;++g)f.push(String(g));if(n&&e.length>0)for(var y=0;y<e.length;++y)f.push(String(y));else for(var v in e)d&&"prototype"===v||!i.call(e,v)||f.push(String(v));if(l)for(var m=function(e){if("undefined"==typeof window||!h)return p(e);try{return p(e)}catch(e){return!1}}(e),b=0;b<c.length;++b)m&&"constructor"===c[b]||!i.call(e,c[b])||f.push(c[b]);return f}}e.exports=n},9228:(e,t,r)=>{"use strict";var n=Array.prototype.slice,i=r(968),o=Object.keys,s=o?function(e){return o(e)}:r(8160),a=Object.keys;s.shim=function(){Object.keys?function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2)||(Object.keys=function(e){return i(e)?a(n.call(e)):a(e)}):Object.keys=s;return Object.keys||s},e.exports=s},968:e=>{"use strict";var t=Object.prototype.toString;e.exports=function(e){var r=t.call(e),n="[object Arguments]"===r;return n||(n="[object Array]"!==r&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),n}},5164:(e,t,r)=>{"use strict";var n=r(9228),i=r(2908)(),o=r(9818),s=Object,a=o("Array.prototype.push"),l=o("Object.prototype.propertyIsEnumerable"),u=i?Object.getOwnPropertySymbols:null;e.exports=function(e,t){if(null==e)throw new TypeError("target must be an object");var r=s(e);if(1===arguments.length)return r;for(var o=1;o<arguments.length;++o){var c=s(arguments[o]),p=n(c),f=i&&(Object.getOwnPropertySymbols||u);if(f)for(var h=f(c),d=0;d<h.length;++d){var g=h[d];l(c,g)&&a(p,g)}for(var y=0;y<p.length;++y){var v=p[y];if(l(c,v)){var m=c[v];r[v]=m}}}return r}},3225:(e,t,r)=>{"use strict";var n=r(5164);e.exports=function(){return Object.assign?function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),r={},n=0;n<t.length;++n)r[t[n]]=t[n];var i=Object.assign({},r),o="";for(var s in i)o+=s;return e!==o}()||function(){if(!Object.assign||!Object.preventExtensions)return!1;var e=Object.preventExtensions({1:2});try{Object.assign(e,"xy")}catch(t){return"y"===e[1]}return!1}()?n:Object.assign:n}},960:(e,t,r)=>{"use strict";var n=r(9827);e.exports=function(e){var t,r=0;function i(){return r||(r=1,t=e.apply(this,arguments),e=null),t}return i.displayName=n(e),i}},2213:(e,t)=>{t.endianness=function(){return"LE"},t.hostname=function(){return"undefined"!=typeof location?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"undefined"!=typeof navigator?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="\n",t.homedir=function(){return"/"}},1824:(e,t)=>{"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var r=t.shift();if(r){if("object"!=typeof r)throw new TypeError(r+"must be non-object");for(var i in r)n(r,i)&&(e[i]=r[i])}}return e},t.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var i={arraySet:function(e,t,r,n,i){if(t.subarray&&e.subarray)e.set(t.subarray(r,r+n),i);else for(var o=0;o<n;o++)e[i+o]=t[r+o]},flattenChunks:function(e){var t,r,n,i,o,s;for(n=0,t=0,r=e.length;t<r;t++)n+=e[t].length;for(s=new Uint8Array(n),i=0,t=0,r=e.length;t<r;t++)o=e[t],s.set(o,i),i+=o.length;return s}},o={arraySet:function(e,t,r,n,i){for(var o=0;o<n;o++)e[i+o]=t[r+o]},flattenChunks:function(e){return[].concat.apply([],e)}};t.setTyped=function(e){e?(t.Buf8=Uint8Array,t.Buf16=Uint16Array,t.Buf32=Int32Array,t.assign(t,i)):(t.Buf8=Array,t.Buf16=Array,t.Buf32=Array,t.assign(t,o))},t.setTyped(r)},6904:e=>{"use strict";e.exports=function(e,t,r,n){for(var i=65535&e|0,o=e>>>16&65535|0,s=0;0!==r;){r-=s=r>2e3?2e3:r;do{o=o+(i=i+t[n++]|0)|0}while(--s);i%=65521,o%=65521}return i|o<<16|0}},7200:e=>{"use strict";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}},2506:e=>{"use strict";var t=function(){for(var e,t=[],r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t}();e.exports=function(e,r,n,i){var o=t,s=i+n;e^=-1;for(var a=i;a<s;a++)e=e>>>8^o[255&(e^r[a])];return-1^e}},6446:(e,t,r)=>{"use strict";var n,i=r(1824),o=r(9708),s=r(6904),a=r(2506),l=r(2817);function u(e,t){return e.msg=l[t],t}function c(e){return(e<<1)-(e>4?9:0)}function p(e){for(var t=e.length;--t>=0;)e[t]=0}function f(e){var t=e.state,r=t.pending;r>e.avail_out&&(r=e.avail_out),0!==r&&(i.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,0===t.pending&&(t.pending_out=0))}function h(e,t){o._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,f(e.strm)}function d(e,t){e.pending_buf[e.pending++]=t}function g(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function y(e,t){var r,n,i=e.max_chain_length,o=e.strstart,s=e.prev_length,a=e.nice_match,l=e.strstart>e.w_size-262?e.strstart-(e.w_size-262):0,u=e.window,c=e.w_mask,p=e.prev,f=e.strstart+258,h=u[o+s-1],d=u[o+s];e.prev_length>=e.good_match&&(i>>=2),a>e.lookahead&&(a=e.lookahead);do{if(u[(r=t)+s]===d&&u[r+s-1]===h&&u[r]===u[o]&&u[++r]===u[o+1]){o+=2,r++;do{}while(u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&o<f);if(n=258-(f-o),o=f-258,n>s){if(e.match_start=t,s=n,n>=a)break;h=u[o+s-1],d=u[o+s]}}}while((t=p[t&c])>l&&0!=--i);return s<=e.lookahead?s:e.lookahead}function v(e){var t,r,n,o,l,u,c,p,f,h,d=e.w_size;do{if(o=e.window_size-e.lookahead-e.strstart,e.strstart>=d+(d-262)){i.arraySet(e.window,e.window,d,d,0),e.match_start-=d,e.strstart-=d,e.block_start-=d,t=r=e.hash_size;do{n=e.head[--t],e.head[t]=n>=d?n-d:0}while(--r);t=r=d;do{n=e.prev[--t],e.prev[t]=n>=d?n-d:0}while(--r);o+=d}if(0===e.strm.avail_in)break;if(u=e.strm,c=e.window,p=e.strstart+e.lookahead,f=o,h=void 0,(h=u.avail_in)>f&&(h=f),r=0===h?0:(u.avail_in-=h,i.arraySet(c,u.input,u.next_in,h,p),1===u.state.wrap?u.adler=s(u.adler,c,h,p):2===u.state.wrap&&(u.adler=a(u.adler,c,h,p)),u.next_in+=h,u.total_in+=h,h),e.lookahead+=r,e.lookahead+e.insert>=3)for(l=e.strstart-e.insert,e.ins_h=e.window[l],e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+3-1])&e.hash_mask,e.prev[l&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=l,l++,e.insert--,!(e.lookahead+e.insert<3)););}while(e.lookahead<262&&0!==e.strm.avail_in)}function m(e,t){for(var r,n;;){if(e.lookahead<262){if(v(e),e.lookahead<262&&0===t)return 1;if(0===e.lookahead)break}if(r=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==r&&e.strstart-r<=e.w_size-262&&(e.match_length=y(e,r)),e.match_length>=3)if(n=o._tr_tally(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){e.match_length--;do{e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart}while(0!=--e.match_length);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else n=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(n&&(h(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<2?e.strstart:2,4===t?(h(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(h(e,!1),0===e.strm.avail_out)?1:2}function b(e,t){for(var r,n,i;;){if(e.lookahead<262){if(v(e),e.lookahead<262&&0===t)return 1;if(0===e.lookahead)break}if(r=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=2,0!==r&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-262&&(e.match_length=y(e,r),e.match_length<=5&&(1===e.strategy||3===e.match_length&&e.strstart-e.match_start>4096)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-3,n=o._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=i&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)}while(0!=--e.prev_length);if(e.match_available=0,e.match_length=2,e.strstart++,n&&(h(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if((n=o._tr_tally(e,0,e.window[e.strstart-1]))&&h(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(n=o._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<2?e.strstart:2,4===t?(h(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(h(e,!1),0===e.strm.avail_out)?1:2}function w(e,t,r,n,i){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=n,this.func=i}function S(){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),p(this.dyn_ltree),p(this.dyn_dtree),p(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),p(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(573),p(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 _(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=2,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?42:113,e.adler=2===t.wrap?0:1,t.last_flush=0,o._tr_init(t),0):u(e,-2)}function E(e){var t,r=_(e);return 0===r&&((t=e.state).window_size=2*t.w_size,p(t.head),t.max_lazy_match=n[t.level].max_lazy,t.good_match=n[t.level].good_length,t.nice_match=n[t.level].nice_length,t.max_chain_length=n[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=2,t.match_available=0,t.ins_h=0),r}function O(e,t,r,n,o,s){if(!e)return-2;var a=1;if(-1===t&&(t=6),n<0?(a=0,n=-n):n>15&&(a=2,n-=16),o<1||o>9||8!==r||n<8||n>15||t<0||t>9||s<0||s>4)return u(e,-2);8===n&&(n=9);var l=new S;return e.state=l,l.strm=e,l.wrap=a,l.gzhead=null,l.w_bits=n,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=o+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+3-1)/3),l.window=new i.Buf8(2*l.w_size),l.head=new i.Buf16(l.hash_size),l.prev=new i.Buf16(l.w_size),l.lit_bufsize=1<<o+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=new i.Buf8(l.pending_buf_size),l.d_buf=1*l.lit_bufsize,l.l_buf=3*l.lit_bufsize,l.level=t,l.strategy=s,l.method=r,E(e)}n=[new w(0,0,0,0,(function(e,t){var r=65535;for(r>e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(v(e),0===e.lookahead&&0===t)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var n=e.block_start+r;if((0===e.strstart||e.strstart>=n)&&(e.lookahead=e.strstart-n,e.strstart=n,h(e,!1),0===e.strm.avail_out))return 1;if(e.strstart-e.block_start>=e.w_size-262&&(h(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(h(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(h(e,!1),e.strm.avail_out),1)})),new w(4,4,8,4,m),new w(4,5,16,8,m),new w(4,6,32,32,m),new w(4,4,16,16,b),new w(8,16,32,32,b),new w(8,16,128,128,b),new w(8,32,128,256,b),new w(32,128,258,1024,b),new w(32,258,258,4096,b)],t.deflateInit=function(e,t){return O(e,t,8,15,8,0)},t.deflateInit2=O,t.deflateReset=E,t.deflateResetKeep=_,t.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?-2:(e.state.gzhead=t,0):-2},t.deflate=function(e,t){var r,i,s,l;if(!e||!e.state||t>5||t<0)return e?u(e,-2):-2;if(i=e.state,!e.output||!e.input&&0!==e.avail_in||666===i.status&&4!==t)return u(e,0===e.avail_out?-5:-2);if(i.strm=e,r=i.last_flush,i.last_flush=t,42===i.status)if(2===i.wrap)e.adler=0,d(i,31),d(i,139),d(i,8),i.gzhead?(d(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),d(i,255&i.gzhead.time),d(i,i.gzhead.time>>8&255),d(i,i.gzhead.time>>16&255),d(i,i.gzhead.time>>24&255),d(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),d(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(d(i,255&i.gzhead.extra.length),d(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=a(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(d(i,0),d(i,0),d(i,0),d(i,0),d(i,0),d(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),d(i,3),i.status=113);else{var y=8+(i.w_bits-8<<4)<<8;y|=(i.strategy>=2||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(y|=32),y+=31-y%31,i.status=113,g(i,y),0!==i.strstart&&(g(i,e.adler>>>16),g(i,65535&e.adler)),e.adler=1}if(69===i.status)if(i.gzhead.extra){for(s=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>s&&(e.adler=a(e.adler,i.pending_buf,i.pending-s,s)),f(e),s=i.pending,i.pending!==i.pending_buf_size));)d(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>s&&(e.adler=a(e.adler,i.pending_buf,i.pending-s,s)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){s=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>s&&(e.adler=a(e.adler,i.pending_buf,i.pending-s,s)),f(e),s=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,d(i,l)}while(0!==l);i.gzhead.hcrc&&i.pending>s&&(e.adler=a(e.adler,i.pending_buf,i.pending-s,s)),0===l&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){s=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>s&&(e.adler=a(e.adler,i.pending_buf,i.pending-s,s)),f(e),s=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,d(i,l)}while(0!==l);i.gzhead.hcrc&&i.pending>s&&(e.adler=a(e.adler,i.pending_buf,i.pending-s,s)),0===l&&(i.status=103)}else i.status=103;if(103===i.status&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&f(e),i.pending+2<=i.pending_buf_size&&(d(i,255&e.adler),d(i,e.adler>>8&255),e.adler=0,i.status=113)):i.status=113),0!==i.pending){if(f(e),0===e.avail_out)return i.last_flush=-1,0}else if(0===e.avail_in&&c(t)<=c(r)&&4!==t)return u(e,-5);if(666===i.status&&0!==e.avail_in)return u(e,-5);if(0!==e.avail_in||0!==i.lookahead||0!==t&&666!==i.status){var m=2===i.strategy?function(e,t){for(var r;;){if(0===e.lookahead&&(v(e),0===e.lookahead)){if(0===t)return 1;break}if(e.match_length=0,r=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(h(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(h(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(h(e,!1),0===e.strm.avail_out)?1:2}(i,t):3===i.strategy?function(e,t){for(var r,n,i,s,a=e.window;;){if(e.lookahead<=258){if(v(e),e.lookahead<=258&&0===t)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&e.strstart>0&&(n=a[i=e.strstart-1])===a[++i]&&n===a[++i]&&n===a[++i]){s=e.strstart+258;do{}while(n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&i<s);e.match_length=258-(s-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(r=o._tr_tally(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(h(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(h(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(h(e,!1),0===e.strm.avail_out)?1:2}(i,t):n[i.level].func(i,t);if(3!==m&&4!==m||(i.status=666),1===m||3===m)return 0===e.avail_out&&(i.last_flush=-1),0;if(2===m&&(1===t?o._tr_align(i):5!==t&&(o._tr_stored_block(i,0,0,!1),3===t&&(p(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),f(e),0===e.avail_out))return i.last_flush=-1,0}return 4!==t?0:i.wrap<=0?1:(2===i.wrap?(d(i,255&e.adler),d(i,e.adler>>8&255),d(i,e.adler>>16&255),d(i,e.adler>>24&255),d(i,255&e.total_in),d(i,e.total_in>>8&255),d(i,e.total_in>>16&255),d(i,e.total_in>>24&255)):(g(i,e.adler>>>16),g(i,65535&e.adler)),f(e),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?0:1)},t.deflateEnd=function(e){var t;return e&&e.state?42!==(t=e.state.status)&&69!==t&&73!==t&&91!==t&&103!==t&&113!==t&&666!==t?u(e,-2):(e.state=null,113===t?u(e,-3):0):-2},t.deflateSetDictionary=function(e,t){var r,n,o,a,l,u,c,f,h=t.length;if(!e||!e.state)return-2;if(2===(a=(r=e.state).wrap)||1===a&&42!==r.status||r.lookahead)return-2;for(1===a&&(e.adler=s(e.adler,t,h,0)),r.wrap=0,h>=r.w_size&&(0===a&&(p(r.head),r.strstart=0,r.block_start=0,r.insert=0),f=new i.Buf8(r.w_size),i.arraySet(f,t,h-r.w_size,r.w_size,0),t=f,h=r.w_size),l=e.avail_in,u=e.next_in,c=e.input,e.avail_in=h,e.next_in=0,e.input=t,v(r);r.lookahead>=3;){n=r.strstart,o=r.lookahead-2;do{r.ins_h=(r.ins_h<<r.hash_shift^r.window[n+3-1])&r.hash_mask,r.prev[n&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=n,n++}while(--o);r.strstart=n,r.lookahead=2,v(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=2,r.match_available=0,e.next_in=u,e.input=c,e.avail_in=l,r.wrap=a,0},t.deflateInfo="pako deflate (from Nodeca project)"},2128:e=>{"use strict";e.exports=function(e,t){var r,n,i,o,s,a,l,u,c,p,f,h,d,g,y,v,m,b,w,S,_,E,O,R,T;r=e.state,n=e.next_in,R=e.input,i=n+(e.avail_in-5),o=e.next_out,T=e.output,s=o-(t-e.avail_out),a=o+(e.avail_out-257),l=r.dmax,u=r.wsize,c=r.whave,p=r.wnext,f=r.window,h=r.hold,d=r.bits,g=r.lencode,y=r.distcode,v=(1<<r.lenbits)-1,m=(1<<r.distbits)-1;e:do{d<15&&(h+=R[n++]<<d,d+=8,h+=R[n++]<<d,d+=8),b=g[h&v];t:for(;;){if(h>>>=w=b>>>24,d-=w,0===(w=b>>>16&255))T[o++]=65535&b;else{if(!(16&w)){if(0==(64&w)){b=g[(65535&b)+(h&(1<<w)-1)];continue t}if(32&w){r.mode=12;break e}e.msg="invalid literal/length code",r.mode=30;break e}S=65535&b,(w&=15)&&(d<w&&(h+=R[n++]<<d,d+=8),S+=h&(1<<w)-1,h>>>=w,d-=w),d<15&&(h+=R[n++]<<d,d+=8,h+=R[n++]<<d,d+=8),b=y[h&m];r:for(;;){if(h>>>=w=b>>>24,d-=w,!(16&(w=b>>>16&255))){if(0==(64&w)){b=y[(65535&b)+(h&(1<<w)-1)];continue r}e.msg="invalid distance code",r.mode=30;break e}if(_=65535&b,d<(w&=15)&&(h+=R[n++]<<d,(d+=8)<w&&(h+=R[n++]<<d,d+=8)),(_+=h&(1<<w)-1)>l){e.msg="invalid distance too far back",r.mode=30;break e}if(h>>>=w,d-=w,_>(w=o-s)){if((w=_-w)>c&&r.sane){e.msg="invalid distance too far back",r.mode=30;break e}if(E=0,O=f,0===p){if(E+=u-w,w<S){S-=w;do{T[o++]=f[E++]}while(--w);E=o-_,O=T}}else if(p<w){if(E+=u+p-w,(w-=p)<S){S-=w;do{T[o++]=f[E++]}while(--w);if(E=0,p<S){S-=w=p;do{T[o++]=f[E++]}while(--w);E=o-_,O=T}}}else if(E+=p-w,w<S){S-=w;do{T[o++]=f[E++]}while(--w);E=o-_,O=T}for(;S>2;)T[o++]=O[E++],T[o++]=O[E++],T[o++]=O[E++],S-=3;S&&(T[o++]=O[E++],S>1&&(T[o++]=O[E++]))}else{E=o-_;do{T[o++]=T[E++],T[o++]=T[E++],T[o++]=T[E++],S-=3}while(S>2);S&&(T[o++]=T[E++],S>1&&(T[o++]=T[E++]))}break}}break}}while(n<i&&o<a);n-=S=d>>3,h&=(1<<(d-=S<<3))-1,e.next_in=n,e.next_out=o,e.avail_in=n<i?i-n+5:5-(n-i),e.avail_out=o<a?a-o+257:257-(o-a),r.hold=h,r.bits=d}},8142:(e,t,r)=>{"use strict";var n=r(1824),i=r(6904),o=r(2506),s=r(2128),a=r(9673);function l(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<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 c(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=1,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new n.Buf32(852),t.distcode=t.distdyn=new n.Buf32(592),t.sane=1,t.back=-1,0):-2}function p(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,c(e)):-2}function f(e,t){var r,n;return e&&e.state?(n=e.state,t<0?(r=0,t=-t):(r=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?-2:(null!==n.window&&n.wbits!==t&&(n.window=null),n.wrap=r,n.wbits=t,p(e))):-2}function h(e,t){var r,n;return e?(n=new u,e.state=n,n.window=null,0!==(r=f(e,t))&&(e.state=null),r):-2}var d,g,y=!0;function v(e){if(y){var t;for(d=new n.Buf32(512),g=new n.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(a(1,e.lens,0,288,d,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;a(2,e.lens,0,32,g,0,e.work,{bits:5}),y=!1}e.lencode=d,e.lenbits=9,e.distcode=g,e.distbits=5}function m(e,t,r,i){var o,s=e.state;return null===s.window&&(s.wsize=1<<s.wbits,s.wnext=0,s.whave=0,s.window=new n.Buf8(s.wsize)),i>=s.wsize?(n.arraySet(s.window,t,r-s.wsize,s.wsize,0),s.wnext=0,s.whave=s.wsize):((o=s.wsize-s.wnext)>i&&(o=i),n.arraySet(s.window,t,r-i,o,s.wnext),(i-=o)?(n.arraySet(s.window,t,r-i,i,0),s.wnext=i,s.whave=s.wsize):(s.wnext+=o,s.wnext===s.wsize&&(s.wnext=0),s.whave<s.wsize&&(s.whave+=o))),0}t.inflateReset=p,t.inflateReset2=f,t.inflateResetKeep=c,t.inflateInit=function(e){return h(e,15)},t.inflateInit2=h,t.inflate=function(e,t){var r,u,c,p,f,h,d,g,y,b,w,S,_,E,O,R,T,j,P,x,A,I,C,k,M=0,F=new n.Buf8(4),B=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return-2;12===(r=e.state).mode&&(r.mode=13),f=e.next_out,c=e.output,d=e.avail_out,p=e.next_in,u=e.input,h=e.avail_in,g=r.hold,y=r.bits,b=h,w=d,I=0;e:for(;;)switch(r.mode){case 1:if(0===r.wrap){r.mode=13;break}for(;y<16;){if(0===h)break e;h--,g+=u[p++]<<y,y+=8}if(2&r.wrap&&35615===g){r.check=0,F[0]=255&g,F[1]=g>>>8&255,r.check=o(r.check,F,2,0),g=0,y=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&g)<<8)+(g>>8))%31){e.msg="incorrect header check",r.mode=30;break}if(8!=(15&g)){e.msg="unknown compression method",r.mode=30;break}if(y-=4,A=8+(15&(g>>>=4)),0===r.wbits)r.wbits=A;else if(A>r.wbits){e.msg="invalid window size",r.mode=30;break}r.dmax=1<<A,e.adler=r.check=1,r.mode=512&g?10:12,g=0,y=0;break;case 2:for(;y<16;){if(0===h)break e;h--,g+=u[p++]<<y,y+=8}if(r.flags=g,8!=(255&r.flags)){e.msg="unknown compression method",r.mode=30;break}if(57344&r.flags){e.msg="unknown header flags set",r.mode=30;break}r.head&&(r.head.text=g>>8&1),512&r.flags&&(F[0]=255&g,F[1]=g>>>8&255,r.check=o(r.check,F,2,0)),g=0,y=0,r.mode=3;case 3:for(;y<32;){if(0===h)break e;h--,g+=u[p++]<<y,y+=8}r.head&&(r.head.time=g),512&r.flags&&(F[0]=255&g,F[1]=g>>>8&255,F[2]=g>>>16&255,F[3]=g>>>24&255,r.check=o(r.check,F,4,0)),g=0,y=0,r.mode=4;case 4:for(;y<16;){if(0===h)break e;h--,g+=u[p++]<<y,y+=8}r.head&&(r.head.xflags=255&g,r.head.os=g>>8),512&r.flags&&(F[0]=255&g,F[1]=g>>>8&255,r.check=o(r.check,F,2,0)),g=0,y=0,r.mode=5;case 5:if(1024&r.flags){for(;y<16;){if(0===h)break e;h--,g+=u[p++]<<y,y+=8}r.length=g,r.head&&(r.head.extra_len=g),512&r.flags&&(F[0]=255&g,F[1]=g>>>8&255,r.check=o(r.check,F,2,0)),g=0,y=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&((S=r.length)>h&&(S=h),S&&(r.head&&(A=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),n.arraySet(r.head.extra,u,p,S,A)),512&r.flags&&(r.check=o(r.check,u,S,p)),h-=S,p+=S,r.length-=S),r.length))break e;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===h)break e;S=0;do{A=u[p+S++],r.head&&A&&r.length<65536&&(r.head.name+=String.fromCharCode(A))}while(A&&S<h);if(512&r.flags&&(r.check=o(r.check,u,S,p)),h-=S,p+=S,A)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=8;case 8:if(4096&r.flags){if(0===h)break e;S=0;do{A=u[p+S++],r.head&&A&&r.length<65536&&(r.head.comment+=String.fromCharCode(A))}while(A&&S<h);if(512&r.flags&&(r.check=o(r.check,u,S,p)),h-=S,p+=S,A)break e}else r.head&&(r.head.comment=null);r.mode=9;case 9:if(512&r.flags){for(;y<16;){if(0===h)break e;h--,g+=u[p++]<<y,y+=8}if(g!==(65535&r.check)){e.msg="header crc mismatch",r.mode=30;break}g=0,y=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=12;break;case 10:for(;y<32;){if(0===h)break e;h--,g+=u[p++]<<y,y+=8}e.adler=r.check=l(g),g=0,y=0,r.mode=11;case 11:if(0===r.havedict)return e.next_out=f,e.avail_out=d,e.next_in=p,e.avail_in=h,r.hold=g,r.bits=y,2;e.adler=r.check=1,r.mode=12;case 12:if(5===t||6===t)break e;case 13:if(r.last){g>>>=7&y,y-=7&y,r.mode=27;break}for(;y<3;){if(0===h)break e;h--,g+=u[p++]<<y,y+=8}switch(r.last=1&g,y-=1,3&(g>>>=1)){case 0:r.mode=14;break;case 1:if(v(r),r.mode=20,6===t){g>>>=2,y-=2;break e}break;case 2:r.mode=17;break;case 3:e.msg="invalid block type",r.mode=30}g>>>=2,y-=2;break;case 14:for(g>>>=7&y,y-=7&y;y<32;){if(0===h)break e;h--,g+=u[p++]<<y,y+=8}if((65535&g)!=(g>>>16^65535)){e.msg="invalid stored block lengths",r.mode=30;break}if(r.length=65535&g,g=0,y=0,r.mode=15,6===t)break e;case 15:r.mode=16;case 16:if(S=r.length){if(S>h&&(S=h),S>d&&(S=d),0===S)break e;n.arraySet(c,u,p,S,f),h-=S,p+=S,d-=S,f+=S,r.length-=S;break}r.mode=12;break;case 17:for(;y<14;){if(0===h)break e;h--,g+=u[p++]<<y,y+=8}if(r.nlen=257+(31&g),g>>>=5,y-=5,r.ndist=1+(31&g),g>>>=5,y-=5,r.ncode=4+(15&g),g>>>=4,y-=4,r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols",r.mode=30;break}r.have=0,r.mode=18;case 18:for(;r.have<r.ncode;){for(;y<3;){if(0===h)break e;h--,g+=u[p++]<<y,y+=8}r.lens[B[r.have++]]=7&g,g>>>=3,y-=3}for(;r.have<19;)r.lens[B[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,C={bits:r.lenbits},I=a(0,r.lens,0,19,r.lencode,0,r.work,C),r.lenbits=C.bits,I){e.msg="invalid code lengths set",r.mode=30;break}r.have=0,r.mode=19;case 19:for(;r.have<r.nlen+r.ndist;){for(;R=(M=r.lencode[g&(1<<r.lenbits)-1])>>>16&255,T=65535&M,!((O=M>>>24)<=y);){if(0===h)break e;h--,g+=u[p++]<<y,y+=8}if(T<16)g>>>=O,y-=O,r.lens[r.have++]=T;else{if(16===T){for(k=O+2;y<k;){if(0===h)break e;h--,g+=u[p++]<<y,y+=8}if(g>>>=O,y-=O,0===r.have){e.msg="invalid bit length repeat",r.mode=30;break}A=r.lens[r.have-1],S=3+(3&g),g>>>=2,y-=2}else if(17===T){for(k=O+3;y<k;){if(0===h)break e;h--,g+=u[p++]<<y,y+=8}y-=O,A=0,S=3+(7&(g>>>=O)),g>>>=3,y-=3}else{for(k=O+7;y<k;){if(0===h)break e;h--,g+=u[p++]<<y,y+=8}y-=O,A=0,S=11+(127&(g>>>=O)),g>>>=7,y-=7}if(r.have+S>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=30;break}for(;S--;)r.lens[r.have++]=A}}if(30===r.mode)break;if(0===r.lens[256]){e.msg="invalid code -- missing end-of-block",r.mode=30;break}if(r.lenbits=9,C={bits:r.lenbits},I=a(1,r.lens,0,r.nlen,r.lencode,0,r.work,C),r.lenbits=C.bits,I){e.msg="invalid literal/lengths set",r.mode=30;break}if(r.distbits=6,r.distcode=r.distdyn,C={bits:r.distbits},I=a(2,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,C),r.distbits=C.bits,I){e.msg="invalid distances set",r.mode=30;break}if(r.mode=20,6===t)break e;case 20:r.mode=21;case 21:if(h>=6&&d>=258){e.next_out=f,e.avail_out=d,e.next_in=p,e.avail_in=h,r.hold=g,r.bits=y,s(e,w),f=e.next_out,c=e.output,d=e.avail_out,p=e.next_in,u=e.input,h=e.avail_in,g=r.hold,y=r.bits,12===r.mode&&(r.back=-1);break}for(r.back=0;R=(M=r.lencode[g&(1<<r.lenbits)-1])>>>16&255,T=65535&M,!((O=M>>>24)<=y);){if(0===h)break e;h--,g+=u[p++]<<y,y+=8}if(R&&0==(240&R)){for(j=O,P=R,x=T;R=(M=r.lencode[x+((g&(1<<j+P)-1)>>j)])>>>16&255,T=65535&M,!(j+(O=M>>>24)<=y);){if(0===h)break e;h--,g+=u[p++]<<y,y+=8}g>>>=j,y-=j,r.back+=j}if(g>>>=O,y-=O,r.back+=O,r.length=T,0===R){r.mode=26;break}if(32&R){r.back=-1,r.mode=12;break}if(64&R){e.msg="invalid literal/length code",r.mode=30;break}r.extra=15&R,r.mode=22;case 22:if(r.extra){for(k=r.extra;y<k;){if(0===h)break e;h--,g+=u[p++]<<y,y+=8}r.length+=g&(1<<r.extra)-1,g>>>=r.extra,y-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;R=(M=r.distcode[g&(1<<r.distbits)-1])>>>16&255,T=65535&M,!((O=M>>>24)<=y);){if(0===h)break e;h--,g+=u[p++]<<y,y+=8}if(0==(240&R)){for(j=O,P=R,x=T;R=(M=r.distcode[x+((g&(1<<j+P)-1)>>j)])>>>16&255,T=65535&M,!(j+(O=M>>>24)<=y);){if(0===h)break e;h--,g+=u[p++]<<y,y+=8}g>>>=j,y-=j,r.back+=j}if(g>>>=O,y-=O,r.back+=O,64&R){e.msg="invalid distance code",r.mode=30;break}r.offset=T,r.extra=15&R,r.mode=24;case 24:if(r.extra){for(k=r.extra;y<k;){if(0===h)break e;h--,g+=u[p++]<<y,y+=8}r.offset+=g&(1<<r.extra)-1,g>>>=r.extra,y-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=30;break}r.mode=25;case 25:if(0===d)break e;if(S=w-d,r.offset>S){if((S=r.offset-S)>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=30;break}S>r.wnext?(S-=r.wnext,_=r.wsize-S):_=r.wnext-S,S>r.length&&(S=r.length),E=r.window}else E=c,_=f-r.offset,S=r.length;S>d&&(S=d),d-=S,r.length-=S;do{c[f++]=E[_++]}while(--S);0===r.length&&(r.mode=21);break;case 26:if(0===d)break e;c[f++]=r.length,d--,r.mode=21;break;case 27:if(r.wrap){for(;y<32;){if(0===h)break e;h--,g|=u[p++]<<y,y+=8}if(w-=d,e.total_out+=w,r.total+=w,w&&(e.adler=r.check=r.flags?o(r.check,c,w,f-w):i(r.check,c,w,f-w)),w=d,(r.flags?g:l(g))!==r.check){e.msg="incorrect data check",r.mode=30;break}g=0,y=0}r.mode=28;case 28:if(r.wrap&&r.flags){for(;y<32;){if(0===h)break e;h--,g+=u[p++]<<y,y+=8}if(g!==(4294967295&r.total)){e.msg="incorrect length check",r.mode=30;break}g=0,y=0}r.mode=29;case 29:I=1;break e;case 30:I=-3;break e;case 31:return-4;case 32:default:return-2}return e.next_out=f,e.avail_out=d,e.next_in=p,e.avail_in=h,r.hold=g,r.bits=y,(r.wsize||w!==e.avail_out&&r.mode<30&&(r.mode<27||4!==t))&&m(e,e.output,e.next_out,w-e.avail_out)?(r.mode=31,-4):(b-=e.avail_in,w-=e.avail_out,e.total_in+=b,e.total_out+=w,r.total+=w,r.wrap&&w&&(e.adler=r.check=r.flags?o(r.check,c,w,e.next_out-w):i(r.check,c,w,e.next_out-w)),e.data_type=r.bits+(r.last?64:0)+(12===r.mode?128:0)+(20===r.mode||15===r.mode?256:0),(0===b&&0===w||4===t)&&0===I&&(I=-5),I)},t.inflateEnd=function(e){if(!e||!e.state)return-2;var t=e.state;return t.window&&(t.window=null),e.state=null,0},t.inflateGetHeader=function(e,t){var r;return e&&e.state?0==(2&(r=e.state).wrap)?-2:(r.head=t,t.done=!1,0):-2},t.inflateSetDictionary=function(e,t){var r,n=t.length;return e&&e.state?0!==(r=e.state).wrap&&11!==r.mode?-2:11===r.mode&&i(1,t,n,0)!==r.check?-3:m(e,t,n,n)?(r.mode=31,-4):(r.havedict=1,0):-2},t.inflateInfo="pako inflate (from Nodeca project)"},9673:(e,t,r)=>{"use strict";var n=r(1824),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],o=[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],a=[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(e,t,r,l,u,c,p,f){var h,d,g,y,v,m,b,w,S,_=f.bits,E=0,O=0,R=0,T=0,j=0,P=0,x=0,A=0,I=0,C=0,k=null,M=0,F=new n.Buf16(16),B=new n.Buf16(16),D=null,L=0;for(E=0;E<=15;E++)F[E]=0;for(O=0;O<l;O++)F[t[r+O]]++;for(j=_,T=15;T>=1&&0===F[T];T--);if(j>T&&(j=T),0===T)return u[c++]=20971520,u[c++]=20971520,f.bits=1,0;for(R=1;R<T&&0===F[R];R++);for(j<R&&(j=R),A=1,E=1;E<=15;E++)if(A<<=1,(A-=F[E])<0)return-1;if(A>0&&(0===e||1!==T))return-1;for(B[1]=0,E=1;E<15;E++)B[E+1]=B[E]+F[E];for(O=0;O<l;O++)0!==t[r+O]&&(p[B[t[r+O]]++]=O);if(0===e?(k=D=p,m=19):1===e?(k=i,M-=257,D=o,L-=257,m=256):(k=s,D=a,m=-1),C=0,O=0,E=R,v=c,P=j,x=0,g=-1,y=(I=1<<j)-1,1===e&&I>852||2===e&&I>592)return 1;for(;;){b=E-x,p[O]<m?(w=0,S=p[O]):p[O]>m?(w=D[L+p[O]],S=k[M+p[O]]):(w=96,S=0),h=1<<E-x,R=d=1<<P;do{u[v+(C>>x)+(d-=h)]=b<<24|w<<16|S|0}while(0!==d);for(h=1<<E-1;C&h;)h>>=1;if(0!==h?(C&=h-1,C+=h):C=0,O++,0==--F[E]){if(E===T)break;E=t[r+p[O]]}if(E>j&&(C&y)!==g){for(0===x&&(x=j),v+=R,A=1<<(P=E-x);P+x<T&&!((A-=F[P+x])<=0);)P++,A<<=1;if(I+=1<<P,1===e&&I>852||2===e&&I>592)return 1;u[g=C&y]=j<<24|P<<16|v-c|0}}return 0!==C&&(u[v+C]=E-x<<24|64<<16|0),f.bits=j,0}},2817:e=>{"use strict";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"}},9708:(e,t,r)=>{"use strict";var n=r(1824);function i(e){for(var t=e.length;--t>=0;)e[t]=0}var o=[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],a=[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 c=new Array(60);i(c);var p=new Array(512);i(p);var f=new Array(256);i(f);var h=new Array(29);i(h);var d,g,y,v=new Array(30);function m(e,t,r,n,i){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=e&&e.length}function b(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function w(e){return e<256?p[e]:p[256+(e>>>7)]}function S(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function _(e,t,r){e.bi_valid>16-r?(e.bi_buf|=t<<e.bi_valid&65535,S(e,e.bi_buf),e.bi_buf=t>>16-e.bi_valid,e.bi_valid+=r-16):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)}function E(e,t,r){_(e,r[2*t],r[2*t+1])}function O(e,t){var r=0;do{r|=1&e,e>>>=1,r<<=1}while(--t>0);return r>>>1}function R(e,t,r){var n,i,o=new Array(16),s=0;for(n=1;n<=15;n++)o[n]=s=s+r[n-1]<<1;for(i=0;i<=t;i++){var a=e[2*i+1];0!==a&&(e[2*i]=O(o[a]++,a))}}function T(e){var t;for(t=0;t<286;t++)e.dyn_ltree[2*t]=0;for(t=0;t<30;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function j(e){e.bi_valid>8?S(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function P(e,t,r,n){var i=2*t,o=2*r;return e[i]<e[o]||e[i]===e[o]&&n[t]<=n[r]}function x(e,t,r){for(var n=e.heap[r],i=r<<1;i<=e.heap_len&&(i<e.heap_len&&P(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!P(t,n,e.heap[i],e.depth));)e.heap[r]=e.heap[i],r=i,i<<=1;e.heap[r]=n}function A(e,t,r){var n,i,a,l,u=0;if(0!==e.last_lit)do{n=e.pending_buf[e.d_buf+2*u]<<8|e.pending_buf[e.d_buf+2*u+1],i=e.pending_buf[e.l_buf+u],u++,0===n?E(e,i,t):(E(e,(a=f[i])+256+1,t),0!==(l=o[a])&&_(e,i-=h[a],l),E(e,a=w(--n),r),0!==(l=s[a])&&_(e,n-=v[a],l))}while(u<e.last_lit);E(e,256,t)}function I(e,t){var r,n,i,o=t.dyn_tree,s=t.stat_desc.static_tree,a=t.stat_desc.has_stree,l=t.stat_desc.elems,u=-1;for(e.heap_len=0,e.heap_max=573,r=0;r<l;r++)0!==o[2*r]?(e.heap[++e.heap_len]=u=r,e.depth[r]=0):o[2*r+1]=0;for(;e.heap_len<2;)o[2*(i=e.heap[++e.heap_len]=u<2?++u:0)]=1,e.depth[i]=0,e.opt_len--,a&&(e.static_len-=s[2*i+1]);for(t.max_code=u,r=e.heap_len>>1;r>=1;r--)x(e,o,r);i=l;do{r=e.heap[1],e.heap[1]=e.heap[e.heap_len--],x(e,o,1),n=e.heap[1],e.heap[--e.heap_max]=r,e.heap[--e.heap_max]=n,o[2*i]=o[2*r]+o[2*n],e.depth[i]=(e.depth[r]>=e.depth[n]?e.depth[r]:e.depth[n])+1,o[2*r+1]=o[2*n+1]=i,e.heap[1]=i++,x(e,o,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],function(e,t){var r,n,i,o,s,a,l=t.dyn_tree,u=t.max_code,c=t.stat_desc.static_tree,p=t.stat_desc.has_stree,f=t.stat_desc.extra_bits,h=t.stat_desc.extra_base,d=t.stat_desc.max_length,g=0;for(o=0;o<=15;o++)e.bl_count[o]=0;for(l[2*e.heap[e.heap_max]+1]=0,r=e.heap_max+1;r<573;r++)(o=l[2*l[2*(n=e.heap[r])+1]+1]+1)>d&&(o=d,g++),l[2*n+1]=o,n>u||(e.bl_count[o]++,s=0,n>=h&&(s=f[n-h]),a=l[2*n],e.opt_len+=a*(o+s),p&&(e.static_len+=a*(c[2*n+1]+s)));if(0!==g){do{for(o=d-1;0===e.bl_count[o];)o--;e.bl_count[o]--,e.bl_count[o+1]+=2,e.bl_count[d]--,g-=2}while(g>0);for(o=d;0!==o;o--)for(n=e.bl_count[o];0!==n;)(i=e.heap[--r])>u||(l[2*i+1]!==o&&(e.opt_len+=(o-l[2*i+1])*l[2*i],l[2*i+1]=o),n--)}}(e,t),R(o,u,e.bl_count)}function C(e,t,r){var n,i,o=-1,s=t[1],a=0,l=7,u=4;for(0===s&&(l=138,u=3),t[2*(r+1)+1]=65535,n=0;n<=r;n++)i=s,s=t[2*(n+1)+1],++a<l&&i===s||(a<u?e.bl_tree[2*i]+=a:0!==i?(i!==o&&e.bl_tree[2*i]++,e.bl_tree[32]++):a<=10?e.bl_tree[34]++:e.bl_tree[36]++,a=0,o=i,0===s?(l=138,u=3):i===s?(l=6,u=3):(l=7,u=4))}function k(e,t,r){var n,i,o=-1,s=t[1],a=0,l=7,u=4;for(0===s&&(l=138,u=3),n=0;n<=r;n++)if(i=s,s=t[2*(n+1)+1],!(++a<l&&i===s)){if(a<u)do{E(e,i,e.bl_tree)}while(0!=--a);else 0!==i?(i!==o&&(E(e,i,e.bl_tree),a--),E(e,16,e.bl_tree),_(e,a-3,2)):a<=10?(E(e,17,e.bl_tree),_(e,a-3,3)):(E(e,18,e.bl_tree),_(e,a-11,7));a=0,o=i,0===s?(l=138,u=3):i===s?(l=6,u=3):(l=7,u=4)}}i(v);var M=!1;function F(e,t,r,i){_(e,0+(i?1:0),3),function(e,t,r,i){j(e),i&&(S(e,r),S(e,~r)),n.arraySet(e.pending_buf,e.window,t,r,e.pending),e.pending+=r}(e,t,r,!0)}t._tr_init=function(e){M||(!function(){var e,t,r,n,i,l=new Array(16);for(r=0,n=0;n<28;n++)for(h[n]=r,e=0;e<1<<o[n];e++)f[r++]=n;for(f[r-1]=n,i=0,n=0;n<16;n++)for(v[n]=i,e=0;e<1<<s[n];e++)p[i++]=n;for(i>>=7;n<30;n++)for(v[n]=i<<7,e=0;e<1<<s[n]-7;e++)p[256+i++]=n;for(t=0;t<=15;t++)l[t]=0;for(e=0;e<=143;)u[2*e+1]=8,e++,l[8]++;for(;e<=255;)u[2*e+1]=9,e++,l[9]++;for(;e<=279;)u[2*e+1]=7,e++,l[7]++;for(;e<=287;)u[2*e+1]=8,e++,l[8]++;for(R(u,287,l),e=0;e<30;e++)c[2*e+1]=5,c[2*e]=O(e,5);d=new m(u,o,257,286,15),g=new m(c,s,0,30,15),y=new m(new Array(0),a,0,19,7)}(),M=!0),e.l_desc=new b(e.dyn_ltree,d),e.d_desc=new b(e.dyn_dtree,g),e.bl_desc=new b(e.bl_tree,y),e.bi_buf=0,e.bi_valid=0,T(e)},t._tr_stored_block=F,t._tr_flush_block=function(e,t,r,n){var i,o,s=0;e.level>0?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,r=4093624447;for(t=0;t<=31;t++,r>>>=1)if(1&r&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<256;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0}(e)),I(e,e.l_desc),I(e,e.d_desc),s=function(e){var t;for(C(e,e.dyn_ltree,e.l_desc.max_code),C(e,e.dyn_dtree,e.d_desc.max_code),I(e,e.bl_desc),t=18;t>=3&&0===e.bl_tree[2*l[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),i=e.opt_len+3+7>>>3,(o=e.static_len+3+7>>>3)<=i&&(i=o)):i=o=r+5,r+4<=i&&-1!==t?F(e,t,r,n):4===e.strategy||o===i?(_(e,2+(n?1:0),3),A(e,u,c)):(_(e,4+(n?1:0),3),function(e,t,r,n){var i;for(_(e,t-257,5),_(e,r-1,5),_(e,n-4,4),i=0;i<n;i++)_(e,e.bl_tree[2*l[i]+1],3);k(e,e.dyn_ltree,t-1),k(e,e.dyn_dtree,r-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,s+1),A(e,e.dyn_ltree,e.dyn_dtree)),T(e),n&&j(e)},t._tr_tally=function(e,t,r){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&r,e.last_lit++,0===t?e.dyn_ltree[2*r]++:(e.matches++,t--,e.dyn_ltree[2*(f[r]+256+1)]++,e.dyn_dtree[2*w(t)]++),e.last_lit===e.lit_bufsize-1},t._tr_align=function(e){_(e,2,3),E(e,256,u),function(e){16===e.bi_valid?(S(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},2495:e=>{"use strict";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}},5402:e=>{"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},8575:e=>{e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},25:(e,t,r)=>{var n=/%[sdj%]/g;t.format=function(e){if(!y(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(s(arguments[r]));return t.join(" ")}r=1;for(var i=arguments,o=i.length,a=String(e).replace(n,(function(e){if("%%"===e)return"%";if(r>=o)return e;switch(e){case"%s":return String(i[r++]);case"%d":return Number(i[r++]);case"%j":try{return JSON.stringify(i[r++])}catch(e){return"[Circular]"}default:return e}})),l=i[r];r<o;l=i[++r])d(l)||!b(l)?a+=" "+l:a+=" "+s(l);return a},t.deprecate=function(e,n){if(v(r.g.process))return function(){return t.deprecate(e,n).apply(this,arguments)};if(!0===process.noDeprecation)return e;var i=!1;return function(){if(!i){if(process.throwDeprecation)throw new Error(n);process.traceDeprecation?console.trace(n):console.error(n),i=!0}return e.apply(this,arguments)}};var i,o={};function s(e,r){var n={seen:[],stylize:l};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),h(r)?n.showHidden=r:r&&t._extend(n,r),v(n.showHidden)&&(n.showHidden=!1),v(n.depth)&&(n.depth=2),v(n.colors)&&(n.colors=!1),v(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=a),u(n,e,n.depth)}function a(e,t){var r=s.styles[t];return r?"["+s.colors[r][0]+"m"+e+"["+s.colors[r][1]+"m":e}function l(e,t){return e}function u(e,r,n){if(e.customInspect&&r&&_(r.inspect)&&r.inspect!==t.inspect&&(!r.constructor||r.constructor.prototype!==r)){var i=r.inspect(n,e);return y(i)||(i=u(e,i,n)),i}var o=function(e,t){if(v(t))return e.stylize("undefined","undefined");if(y(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(g(t))return e.stylize(""+t,"number");if(h(t))return e.stylize(""+t,"boolean");if(d(t))return e.stylize("null","null")}(e,r);if(o)return o;var s=Object.keys(r),a=function(e){var t={};return e.forEach((function(e,r){t[e]=!0})),t}(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(r)),S(r)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return c(r);if(0===s.length){if(_(r)){var l=r.name?": "+r.name:"";return e.stylize("[Function"+l+"]","special")}if(m(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(w(r))return e.stylize(Date.prototype.toString.call(r),"date");if(S(r))return c(r)}var b,E="",O=!1,R=["{","}"];(f(r)&&(O=!0,R=["[","]"]),_(r))&&(E=" [Function"+(r.name?": "+r.name:"")+"]");return m(r)&&(E=" "+RegExp.prototype.toString.call(r)),w(r)&&(E=" "+Date.prototype.toUTCString.call(r)),S(r)&&(E=" "+c(r)),0!==s.length||O&&0!=r.length?n<0?m(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),b=O?function(e,t,r,n,i){for(var o=[],s=0,a=t.length;s<a;++s)j(t,String(s))?o.push(p(e,t,r,n,String(s),!0)):o.push("");return i.forEach((function(i){i.match(/^\d+$/)||o.push(p(e,t,r,n,i,!0))})),o}(e,r,n,a,s):s.map((function(t){return p(e,r,n,a,t,O)})),e.seen.pop(),function(e,t,r){if(e.reduce((function(e,t){return t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1];return r[0]+t+" "+e.join(", ")+" "+r[1]}(b,E,R)):R[0]+E+R[1]}function c(e){return"["+Error.prototype.toString.call(e)+"]"}function p(e,t,r,n,i,o){var s,a,l;if((l=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?a=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(a=e.stylize("[Setter]","special")),j(n,i)||(s="["+i+"]"),a||(e.seen.indexOf(l.value)<0?(a=d(r)?u(e,l.value,null):u(e,l.value,r-1)).indexOf("\n")>-1&&(a=o?a.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+a.split("\n").map((function(e){return" "+e})).join("\n")):a=e.stylize("[Circular]","special")),v(s)){if(o&&i.match(/^\d+$/))return a;(s=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+a}function f(e){return Array.isArray(e)}function h(e){return"boolean"==typeof e}function d(e){return null===e}function g(e){return"number"==typeof e}function y(e){return"string"==typeof e}function v(e){return void 0===e}function m(e){return b(e)&&"[object RegExp]"===E(e)}function b(e){return"object"==typeof e&&null!==e}function w(e){return b(e)&&"[object Date]"===E(e)}function S(e){return b(e)&&("[object Error]"===E(e)||e instanceof Error)}function _(e){return"function"==typeof e}function E(e){return Object.prototype.toString.call(e)}function O(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(v(i)&&(i=process.env.NODE_DEBUG||""),e=e.toUpperCase(),!o[e])if(new RegExp("\\b"+e+"\\b","i").test(i)){var r=process.pid;o[e]=function(){var n=t.format.apply(t,arguments);console.error("%s %d: %s",e,r,n)}}else o[e]=function(){};return o[e]},t.inspect=s,s.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]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=f,t.isBoolean=h,t.isNull=d,t.isNullOrUndefined=function(e){return null==e},t.isNumber=g,t.isString=y,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=v,t.isRegExp=m,t.isObject=b,t.isDate=w,t.isError=S,t.isFunction=_,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(8575);var R=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function T(){var e=new Date,t=[O(e.getHours()),O(e.getMinutes()),O(e.getSeconds())].join(":");return[e.getDate(),R[e.getMonth()],t].join(" ")}function j(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",T(),t.format.apply(t,arguments))},t.inherits=r(5402),t._extend=function(e,t){if(!t||!b(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e}},8558:(e,t,r)=>{"use strict";var n="win32"===process.platform,i=r(25);function o(e,t){for(var r=[],n=0;n<e.length;n++){var i=e[n];i&&"."!==i&&(".."===i?r.length&&".."!==r[r.length-1]?r.pop():t&&r.push(".."):r.push(i))}return r}function s(e){for(var t=e.length-1,r=0;r<=t&&!e[r];r++);for(var n=t;n>=0&&!e[n];n--);return 0===r&&n===t?e:r>n?[]:e.slice(r,n+1)}var a=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,l=/^([\s\S]*?)((?:\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))(?:[\\\/]*)$/,u={};function c(e){var t=a.exec(e),r=(t[1]||"")+(t[2]||""),n=t[3]||"",i=l.exec(n);return[r,i[1],i[2],i[3]]}function p(e){var t=a.exec(e),r=t[1]||"",n=!!r&&":"!==r[1];return{device:r,isUnc:n,isAbsolute:n||!!t[2],tail:t[3]}}function f(e){return"\\\\"+e.replace(/^[\\\/]+/,"").replace(/[\\\/]+/g,"\\")}u.resolve=function(){for(var e="",t="",r=!1,n=arguments.length-1;n>=-1;n--){var s;if(n>=0?s=arguments[n]:e?(s=process.env["="+e])&&s.substr(0,3).toLowerCase()===e.toLowerCase()+"\\"||(s=e+"\\"):s=process.cwd(),!i.isString(s))throw new TypeError("Arguments to path.resolve must be strings");if(s){var a=p(s),l=a.device,u=a.isUnc,c=a.isAbsolute,h=a.tail;if((!l||!e||l.toLowerCase()===e.toLowerCase())&&(e||(e=l),r||(t=h+"\\"+t,r=c),e&&r))break}}return u&&(e=f(e)),e+(r?"\\":"")+(t=o(t.split(/[\\\/]+/),!r).join("\\"))||"."},u.normalize=function(e){var t=p(e),r=t.device,n=t.isUnc,i=t.isAbsolute,s=t.tail,a=/[\\\/]$/.test(s);return(s=o(s.split(/[\\\/]+/),!i).join("\\"))||i||(s="."),s&&a&&(s+="\\"),n&&(r=f(r)),r+(i?"\\":"")+s},u.isAbsolute=function(e){return p(e).isAbsolute},u.join=function(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(!i.isString(r))throw new TypeError("Arguments to path.join must be strings");r&&e.push(r)}var n=e.join("\\");return/^[\\\/]{2}[^\\\/]/.test(e[0])||(n=n.replace(/^[\\\/]{2,}/,"\\")),u.normalize(n)},u.relative=function(e,t){e=u.resolve(e),t=u.resolve(t);for(var r=e.toLowerCase(),n=t.toLowerCase(),i=s(t.split("\\")),o=s(r.split("\\")),a=s(n.split("\\")),l=Math.min(o.length,a.length),c=l,p=0;p<l;p++)if(o[p]!==a[p]){c=p;break}if(0==c)return t;var f=[];for(p=c;p<o.length;p++)f.push("..");return(f=f.concat(i.slice(c))).join("\\")},u._makeLong=function(e){if(!i.isString(e))return e;if(!e)return"";var t=u.resolve(e);return/^[a-zA-Z]\:\\/.test(t)?"\\\\?\\"+t:/^\\\\[^?.]/.test(t)?"\\\\?\\UNC\\"+t.substring(2):e},u.dirname=function(e){var t=c(e),r=t[0],n=t[1];return r||n?(n&&(n=n.substr(0,n.length-1)),r+n):"."},u.basename=function(e,t){var r=c(e)[2];return t&&r.substr(-1*t.length)===t&&(r=r.substr(0,r.length-t.length)),r},u.extname=function(e){return c(e)[3]},u.format=function(e){if(!i.isObject(e))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof e);var t=e.root||"";if(!i.isString(t))throw new TypeError("'pathObject.root' must be a string or undefined, not "+typeof e.root);var r=e.dir,n=e.base||"";return r?r[r.length-1]===u.sep?r+n:r+u.sep+n:n},u.parse=function(e){if(!i.isString(e))throw new TypeError("Parameter 'pathString' must be a string, not "+typeof e);var t=c(e);if(!t||4!==t.length)throw new TypeError("Invalid path '"+e+"'");return{root:t[0],dir:t[0]+t[1].slice(0,-1),base:t[2],ext:t[3],name:t[2].slice(0,t[2].length-t[3].length)}},u.sep="\\",u.delimiter=";";var h=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,d={};function g(e){return h.exec(e).slice(1)}d.resolve=function(){for(var e="",t=!1,r=arguments.length-1;r>=-1&&!t;r--){var n=r>=0?arguments[r]:process.cwd();if(!i.isString(n))throw new TypeError("Arguments to path.resolve must be strings");n&&(e=n+"/"+e,t="/"===n[0])}return(t?"/":"")+(e=o(e.split("/"),!t).join("/"))||"."},d.normalize=function(e){var t=d.isAbsolute(e),r=e&&"/"===e[e.length-1];return(e=o(e.split("/"),!t).join("/"))||t||(e="."),e&&r&&(e+="/"),(t?"/":"")+e},d.isAbsolute=function(e){return"/"===e.charAt(0)},d.join=function(){for(var e="",t=0;t<arguments.length;t++){var r=arguments[t];if(!i.isString(r))throw new TypeError("Arguments to path.join must be strings");r&&(e+=e?"/"+r:r)}return d.normalize(e)},d.relative=function(e,t){e=d.resolve(e).substr(1),t=d.resolve(t).substr(1);for(var r=s(e.split("/")),n=s(t.split("/")),i=Math.min(r.length,n.length),o=i,a=0;a<i;a++)if(r[a]!==n[a]){o=a;break}var l=[];for(a=o;a<r.length;a++)l.push("..");return(l=l.concat(n.slice(o))).join("/")},d._makeLong=function(e){return e},d.dirname=function(e){var t=g(e),r=t[0],n=t[1];return r||n?(n&&(n=n.substr(0,n.length-1)),r+n):"."},d.basename=function(e,t){var r=g(e)[2];return t&&r.substr(-1*t.length)===t&&(r=r.substr(0,r.length-t.length)),r},d.extname=function(e){return g(e)[3]},d.format=function(e){if(!i.isObject(e))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof e);var t=e.root||"";if(!i.isString(t))throw new TypeError("'pathObject.root' must be a string or undefined, not "+typeof e.root);return(e.dir?e.dir+d.sep:"")+(e.base||"")},d.parse=function(e){if(!i.isString(e))throw new TypeError("Parameter 'pathString' must be a string, not "+typeof e);var t=g(e);if(!t||4!==t.length)throw new TypeError("Invalid path '"+e+"'");return t[1]=t[1]||"",t[2]=t[2]||"",t[3]=t[3]||"",{root:t[0],dir:t[0]+t[1].slice(0,-1),base:t[2],ext:t[3],name:t[2].slice(0,t[2].length-t[3].length)}},d.sep="/",d.delimiter=":",e.exports=n?u:d,e.exports.posix=d,e.exports.win32=u},8758:function(e){(function(){var t,r,n,i,o,s;"undefined"!=typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:"undefined"!=typeof process&&null!==process&&process.hrtime?(e.exports=function(){return(t()-o)/1e6},r=process.hrtime,i=(t=function(){var e;return 1e9*(e=r())[0]+e[1]})(),s=1e9*process.uptime(),o=i-s):Date.now?(e.exports=function(){return Date.now()-n},n=Date.now()):(e.exports=function(){return(new Date).getTime()-n},n=(new Date).getTime())}).call(this)},9501:e=>{"use strict";e.exports=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]},1830:e=>{"use strict";var t=String.prototype.replace,r=/%20/g,n="RFC1738",i="RFC3986";e.exports={default:i,formatters:{RFC1738:function(e){return t.call(e,r,"+")},RFC3986:function(e){return String(e)}},RFC1738:n,RFC3986:i}},5810:(e,t,r)=>{"use strict";var n=r(6623),i=r(6193),o=r(1830);e.exports={formats:o,parse:i,stringify:n}},6193:(e,t,r)=>{"use strict";var n=r(1539),i=Object.prototype.hasOwnProperty,o=Array.isArray,s={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:n.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},a=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},l=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},u=function(e,t,r,n){if(e){var o=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,s=/(\[[^[\]]*])/g,a=r.depth>0&&/(\[[^[\]]*])/.exec(o),u=a?o.slice(0,a.index):o,c=[];if(u){if(!r.plainObjects&&i.call(Object.prototype,u)&&!r.allowPrototypes)return;c.push(u)}for(var p=0;r.depth>0&&null!==(a=s.exec(o))&&p<r.depth;){if(p+=1,!r.plainObjects&&i.call(Object.prototype,a[1].slice(1,-1))&&!r.allowPrototypes)return;c.push(a[1])}return a&&c.push("["+o.slice(a.index)+"]"),function(e,t,r,n){for(var i=n?t:l(t,r),o=e.length-1;o>=0;--o){var s,a=e[o];if("[]"===a&&r.parseArrays)s=r.allowEmptyArrays&&(""===i||r.strictNullHandling&&null===i)?[]:[].concat(i);else{s=r.plainObjects?Object.create(null):{};var u="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,c=r.decodeDotInKeys?u.replace(/%2E/g,"."):u,p=parseInt(c,10);r.parseArrays||""!==c?!isNaN(p)&&a!==c&&String(p)===c&&p>=0&&r.parseArrays&&p<=r.arrayLimit?(s=[])[p]=i:"__proto__"!==c&&(s[c]=i):s={0:i}}i=s}return i}(c,t,r,n)}};e.exports=function(e,t){var r=function(e){if(!e)return s;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?s.charset:e.charset,r=void 0===e.duplicates?s.duplicates:e.duplicates;if("combine"!==r&&"first"!==r&&"last"!==r)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||s.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:s.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:s.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:s.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:s.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:s.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:s.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:s.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:s.decoder,delimiter:"string"==typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:s.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:s.depth,duplicates:r,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:s.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:s.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:s.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:s.strictNullHandling}}(t);if(""===e||null==e)return r.plainObjects?Object.create(null):{};for(var c="string"==typeof e?function(e,t){var r={__proto__:null},u=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;u=u.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var c,p=t.parameterLimit===1/0?void 0:t.parameterLimit,f=u.split(t.delimiter,p),h=-1,d=t.charset;if(t.charsetSentinel)for(c=0;c<f.length;++c)0===f[c].indexOf("utf8=")&&("utf8=%E2%9C%93"===f[c]?d="utf-8":"utf8=%26%2310003%3B"===f[c]&&(d="iso-8859-1"),h=c,c=f.length);for(c=0;c<f.length;++c)if(c!==h){var g,y,v=f[c],m=v.indexOf("]="),b=-1===m?v.indexOf("="):m+1;-1===b?(g=t.decoder(v,s.decoder,d,"key"),y=t.strictNullHandling?null:""):(g=t.decoder(v.slice(0,b),s.decoder,d,"key"),y=n.maybeMap(l(v.slice(b+1),t),(function(e){return t.decoder(e,s.decoder,d,"value")}))),y&&t.interpretNumericEntities&&"iso-8859-1"===d&&(y=a(y)),v.indexOf("[]=")>-1&&(y=o(y)?[y]:y);var w=i.call(r,g);w&&"combine"===t.duplicates?r[g]=n.combine(r[g],y):w&&"last"!==t.duplicates||(r[g]=y)}return r}(e,r):e,p=r.plainObjects?Object.create(null):{},f=Object.keys(c),h=0;h<f.length;++h){var d=f[h],g=u(d,c[d],r,"string"==typeof e);p=n.merge(p,g,r)}return!0===r.allowSparse?p:n.compact(p)}},6623:(e,t,r)=>{"use strict";var n=r(7575),i=r(1539),o=r(1830),s=Object.prototype.hasOwnProperty,a={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},l=Array.isArray,u=Array.prototype.push,c=function(e,t){u.apply(e,l(t)?t:[t])},p=Date.prototype.toISOString,f=o.default,h={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:i.encode,encodeValuesOnly:!1,format:f,formatter:o.formatters[f],indices:!1,serializeDate:function(e){return p.call(e)},skipNulls:!1,strictNullHandling:!1},d={},g=function e(t,r,o,s,a,u,p,f,g,y,v,m,b,w,S,_,E,O){for(var R,T=t,j=O,P=0,x=!1;void 0!==(j=j.get(d))&&!x;){var A=j.get(t);if(P+=1,void 0!==A){if(A===P)throw new RangeError("Cyclic object value");x=!0}void 0===j.get(d)&&(P=0)}if("function"==typeof y?T=y(r,T):T instanceof Date?T=b(T):"comma"===o&&l(T)&&(T=i.maybeMap(T,(function(e){return e instanceof Date?b(e):e}))),null===T){if(u)return g&&!_?g(r,h.encoder,E,"key",w):r;T=""}if("string"==typeof(R=T)||"number"==typeof R||"boolean"==typeof R||"symbol"==typeof R||"bigint"==typeof R||i.isBuffer(T))return g?[S(_?r:g(r,h.encoder,E,"key",w))+"="+S(g(T,h.encoder,E,"value",w))]:[S(r)+"="+S(String(T))];var I,C=[];if(void 0===T)return C;if("comma"===o&&l(T))_&&g&&(T=i.maybeMap(T,g)),I=[{value:T.length>0?T.join(",")||null:void 0}];else if(l(y))I=y;else{var k=Object.keys(T);I=v?k.sort(v):k}var M=f?r.replace(/\./g,"%2E"):r,F=s&&l(T)&&1===T.length?M+"[]":M;if(a&&l(T)&&0===T.length)return F+"[]";for(var B=0;B<I.length;++B){var D=I[B],L="object"==typeof D&&void 0!==D.value?D.value:T[D];if(!p||null!==L){var N=m&&f?D.replace(/\./g,"%2E"):D,z=l(T)?"function"==typeof o?o(F,N):F:F+(m?"."+N:"["+N+"]");O.set(t,P);var U=n();U.set(d,O),c(C,e(L,z,o,s,a,u,p,f,"comma"===o&&_&&l(T)?null:g,y,v,m,b,w,S,_,E,U))}}return C};e.exports=function(e,t){var r,i=e,u=function(e){if(!e)return h;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||h.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=o.default;if(void 0!==e.format){if(!s.call(o.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var n,i=o.formatters[r],u=h.filter;if(("function"==typeof e.filter||l(e.filter))&&(u=e.filter),n=e.arrayFormat in a?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":h.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var c=void 0===e.allowDots?!0===e.encodeDotInKeys||h.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:h.addQueryPrefix,allowDots:c,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:h.allowEmptyArrays,arrayFormat:n,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:h.charsetSentinel,commaRoundTrip:e.commaRoundTrip,delimiter:void 0===e.delimiter?h.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:h.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:h.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:h.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:h.encodeValuesOnly,filter:u,format:r,formatter:i,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:h.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:h.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:h.strictNullHandling}}(t);"function"==typeof u.filter?i=(0,u.filter)("",i):l(u.filter)&&(r=u.filter);var p=[];if("object"!=typeof i||null===i)return"";var f=a[u.arrayFormat],d="comma"===f&&u.commaRoundTrip;r||(r=Object.keys(i)),u.sort&&r.sort(u.sort);for(var y=n(),v=0;v<r.length;++v){var m=r[v];u.skipNulls&&null===i[m]||c(p,g(i[m],m,f,d,u.allowEmptyArrays,u.strictNullHandling,u.skipNulls,u.encodeDotInKeys,u.encode?u.encoder:null,u.filter,u.sort,u.allowDots,u.serializeDate,u.format,u.formatter,u.encodeValuesOnly,u.charset,y))}var b=p.join(u.delimiter),w=!0===u.addQueryPrefix?"?":"";return u.charsetSentinel&&("iso-8859-1"===u.charset?w+="utf8=%26%2310003%3B&":w+="utf8=%E2%9C%93&"),b.length>0?w+b:""}},1539:(e,t,r)=>{"use strict";var n=r(1830),i=Object.prototype.hasOwnProperty,o=Array.isArray,s=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),a=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},n=0;n<e.length;++n)void 0!==e[n]&&(r[n]=e[n]);return r};e.exports={arrayToObject:a,assign:function(e,t){return Object.keys(t).reduce((function(e,r){return e[r]=t[r],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n<t.length;++n)for(var i=t[n],s=i.obj[i.prop],a=Object.keys(s),l=0;l<a.length;++l){var u=a[l],c=s[u];"object"==typeof c&&null!==c&&-1===r.indexOf(c)&&(t.push({obj:s,prop:u}),r.push(c))}return function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(o(r)){for(var n=[],i=0;i<r.length;++i)void 0!==r[i]&&n.push(r[i]);t.obj[t.prop]=n}}}(t),e},decode:function(e,t,r){var n=e.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(e){return n}},encode:function(e,t,r,i,o){if(0===e.length)return e;var a=e;if("symbol"==typeof e?a=Symbol.prototype.toString.call(e):"string"!=typeof e&&(a=String(e)),"iso-8859-1"===r)return escape(a).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var l="",u=0;u<a.length;u+=1024){for(var c=a.length>=1024?a.slice(u,u+1024):a,p=[],f=0;f<c.length;++f){var h=c.charCodeAt(f);45===h||46===h||95===h||126===h||h>=48&&h<=57||h>=65&&h<=90||h>=97&&h<=122||o===n.RFC1738&&(40===h||41===h)?p[p.length]=c.charAt(f):h<128?p[p.length]=s[h]:h<2048?p[p.length]=s[192|h>>6]+s[128|63&h]:h<55296||h>=57344?p[p.length]=s[224|h>>12]+s[128|h>>6&63]+s[128|63&h]:(f+=1,h=65536+((1023&h)<<10|1023&c.charCodeAt(f)),p[p.length]=s[240|h>>18]+s[128|h>>12&63]+s[128|h>>6&63]+s[128|63&h])}l+=p.join("")}return l},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(o(e)){for(var r=[],n=0;n<e.length;n+=1)r.push(t(e[n]));return r}return t(e)},merge:function e(t,r,n){if(!r)return t;if("object"!=typeof r){if(o(t))t.push(r);else{if(!t||"object"!=typeof t)return[t,r];(n&&(n.plainObjects||n.allowPrototypes)||!i.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(r);var s=t;return o(t)&&!o(r)&&(s=a(t,n)),o(t)&&o(r)?(r.forEach((function(r,o){if(i.call(t,o)){var s=t[o];s&&"object"==typeof s&&r&&"object"==typeof r?t[o]=e(s,r,n):t.push(r)}else t[o]=r})),t):Object.keys(r).reduce((function(t,o){var s=r[o];return i.call(t,o)?t[o]=e(t[o],s,n):t[o]=s,t}),s)}}},5699:e=>{"use strict";var t={};function r(e,r,n){n||(n=Error);var i=function(e){var t,n;function i(t,n,i){return e.call(this,function(e,t,n){return"string"==typeof r?r:r(e,t,n)}(t,n,i))||this}return n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,i}(n);i.prototype.name=n.name,i.prototype.code=e,t[e]=i}function n(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map((function(e){return String(e)})),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}r("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),r("ERR_INVALID_ARG_TYPE",(function(e,t,r){var i,o,s,a;if("string"==typeof t&&(o="not ",t.substr(!s||s<0?0:+s,o.length)===o)?(i="must not be",t=t.replace(/^not /,"")):i="must be",function(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}(e," argument"))a="The ".concat(e," ").concat(i," ").concat(n(t,"type"));else{var l=function(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}(e,".")?"property":"argument";a='The "'.concat(e,'" ').concat(l," ").concat(i," ").concat(n(t,"type"))}return a+=". Received type ".concat(typeof r)}),TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.F=t},1265:(e,t,r)=>{"use strict";var n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=u;var i=r(8199),o=r(5291);r(5615)(u,i);for(var s=n(o.prototype),a=0;a<s.length;a++){var l=s[a];u.prototype[l]||(u.prototype[l]=o.prototype[l])}function u(e){if(!(this instanceof u))return new u(e);i.call(this,e),o.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",c)))}function c(){this._writableState.ended||process.nextTick(p,this)}function p(e){e.end()}Object.defineProperty(u.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(u.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(u.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(u.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})},4421:(e,t,r)=>{"use strict";e.exports=i;var n=r(9415);function i(e){if(!(this instanceof i))return new i(e);n.call(this,e)}r(5615)(i,n),i.prototype._transform=function(e,t,r){r(null,e)}},8199:(e,t,r)=>{"use strict";var n;e.exports=O,O.ReadableState=E;r(46).EventEmitter;var i=function(e,t){return e.listeners(t).length},o=r(4856),s=r(1048).Buffer,a=(void 0!==r.g?r.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var l,u=r(3951);l=u&&u.debuglog?u.debuglog("stream"):function(){};var c,p,f,h=r(82),d=r(6527),g=r(9952).getHighWaterMark,y=r(5699).F,v=y.ERR_INVALID_ARG_TYPE,m=y.ERR_STREAM_PUSH_AFTER_EOF,b=y.ERR_METHOD_NOT_IMPLEMENTED,w=y.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r(5615)(O,o);var S=d.errorOrDestroy,_=["error","close","destroy","pause","resume"];function E(e,t,i){n=n||r(1265),e=e||{},"boolean"!=typeof i&&(i=t instanceof n),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=g(this,e,"readableHighWaterMark",i),this.buffer=new h,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=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(c||(c=r(8888).StringDecoder),this.decoder=new c(e.encoding),this.encoding=e.encoding)}function O(e){if(n=n||r(1265),!(this instanceof O))return new O(e);var t=this instanceof n;this._readableState=new E(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),o.call(this)}function R(e,t,r,n,i){l("readableAddChunk",t);var o,u=e._readableState;if(null===t)u.reading=!1,function(e,t){if(l("onEofChunk"),t.ended)return;if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?P(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,x(e)))}(e,u);else if(i||(o=function(e,t){var r;n=t,s.isBuffer(n)||n instanceof a||"string"==typeof t||void 0===t||e.objectMode||(r=new v("chunk",["string","Buffer","Uint8Array"],t));var n;return r}(u,t)),o)S(e,o);else if(u.objectMode||t&&t.length>0)if("string"==typeof t||u.objectMode||Object.getPrototypeOf(t)===s.prototype||(t=function(e){return s.from(e)}(t)),n)u.endEmitted?S(e,new w):T(e,u,t,!0);else if(u.ended)S(e,new m);else{if(u.destroyed)return!1;u.reading=!1,u.decoder&&!r?(t=u.decoder.write(t),u.objectMode||0!==t.length?T(e,u,t,!1):A(e,u)):T(e,u,t,!1)}else n||(u.reading=!1,A(e,u));return!u.ended&&(u.length<u.highWaterMark||0===u.length)}function T(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&P(e)),A(e,t)}Object.defineProperty(O.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),O.prototype.destroy=d.destroy,O.prototype._undestroy=d.undestroy,O.prototype._destroy=function(e,t){t(e)},O.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=s.from(e,t),t=""),r=!0),R(this,e,t,!1,r)},O.prototype.unshift=function(e){return R(this,e,null,!0,!1)},O.prototype.isPaused=function(){return!1===this._readableState.flowing},O.prototype.setEncoding=function(e){c||(c=r(8888).StringDecoder);var t=new c(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var n=this._readableState.buffer.head,i="";null!==n;)i+=t.write(n.data),n=n.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};function j(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=1073741824?e=1073741824:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function P(e){var t=e._readableState;l("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(l("emitReadable",t.flowing),t.emittedReadable=!0,process.nextTick(x,e))}function x(e){var t=e._readableState;l("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,F(e)}function A(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(I,e,t))}function I(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var r=t.length;if(l("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function C(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function k(e){l("readable nexttick read 0"),e.read(0)}function M(e,t){l("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),F(e),t.flowing&&!t.reading&&e.read(0)}function F(e){var t=e._readableState;for(l("flow",t.flowing);t.flowing&&null!==e.read(););}function B(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r);var r}function D(e){var t=e._readableState;l("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(L,t,e))}function L(e,t){if(l("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function N(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}O.prototype.read=function(e){l("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return l("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?D(this):P(this),null;if(0===(e=j(e,t))&&t.ended)return 0===t.length&&D(this),null;var n,i=t.needReadable;return l("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&l("length less than watermark",i=!0),t.ended||t.reading?l("reading or ended",i=!1):i&&(l("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=j(r,t))),null===(n=e>0?B(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&D(this)),null!==n&&this.emit("data",n),n},O.prototype._read=function(e){S(this,new b("_read()"))},O.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e)}n.pipesCount+=1,l("pipe count=%d opts=%j",n.pipesCount,t);var o=(!t||!1!==t.end)&&e!==process.stdout&&e!==process.stderr?a:g;function s(t,i){l("onunpipe"),t===r&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,l("cleanup"),e.removeListener("close",h),e.removeListener("finish",d),e.removeListener("drain",u),e.removeListener("error",f),e.removeListener("unpipe",s),r.removeListener("end",a),r.removeListener("end",g),r.removeListener("data",p),c=!0,!n.awaitDrain||e._writableState&&!e._writableState.needDrain||u())}function a(){l("onend"),e.end()}n.endEmitted?process.nextTick(o):r.once("end",o),e.on("unpipe",s);var u=function(e){return function(){var t=e._readableState;l("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&i(e,"data")&&(t.flowing=!0,F(e))}}(r);e.on("drain",u);var c=!1;function p(t){l("ondata");var i=e.write(t);l("dest.write",i),!1===i&&((1===n.pipesCount&&n.pipes===e||n.pipesCount>1&&-1!==N(n.pipes,e))&&!c&&(l("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function f(t){l("onerror",t),g(),e.removeListener("error",f),0===i(e,"error")&&S(e,t)}function h(){e.removeListener("finish",d),g()}function d(){l("onfinish"),e.removeListener("close",h),g()}function g(){l("unpipe"),r.unpipe(e)}return r.on("data",p),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",f),e.once("close",h),e.once("finish",d),e.emit("pipe",r),n.flowing||(l("pipe resume"),r.resume()),e},O.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var s=N(t.pipes,e);return-1===s||(t.pipes.splice(s,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},O.prototype.on=function(e,t){var r=o.prototype.on.call(this,e,t),n=this._readableState;return"data"===e?(n.readableListening=this.listenerCount("readable")>0,!1!==n.flowing&&this.resume()):"readable"===e&&(n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,l("on readable",n.length,n.reading),n.length?P(this):n.reading||process.nextTick(k,this))),r},O.prototype.addListener=O.prototype.on,O.prototype.removeListener=function(e,t){var r=o.prototype.removeListener.call(this,e,t);return"readable"===e&&process.nextTick(C,this),r},O.prototype.removeAllListeners=function(e){var t=o.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||process.nextTick(C,this),t},O.prototype.resume=function(){var e=this._readableState;return e.flowing||(l("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(M,e,t))}(this,e)),e.paused=!1,this},O.prototype.pause=function(){return l("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(l("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},O.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",(function(){if(l("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){(l("wrapped data"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==i)||(r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<_.length;o++)e.on(_[o],this.emit.bind(this,_[o]));return this._read=function(t){l("wrapped _read",t),n&&(n=!1,e.resume())},this},"function"==typeof Symbol&&(O.prototype[Symbol.asyncIterator]=function(){return void 0===p&&(p=r(534)),p(this)}),Object.defineProperty(O.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(O.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(O.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),O._fromList=B,Object.defineProperty(O.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(O.from=function(e,t){return void 0===f&&(f=r(1260)),f(O,e,t)})},9415:(e,t,r)=>{"use strict";e.exports=c;var n=r(5699).F,i=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,s=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=n.ERR_TRANSFORM_WITH_LENGTH_0,l=r(1265);function u(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new o);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function c(e){if(!(this instanceof c))return new c(e);l.call(this,e),this._transformState={afterTransform:u.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",p)}function p(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?f(this,null,null):this._flush((function(t,r){f(e,t,r)}))}function f(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new a;if(e._transformState.transforming)throw new s;return e.push(null)}r(5615)(c,l),c.prototype.push=function(e,t){return this._transformState.needTransform=!1,l.prototype.push.call(this,e,t)},c.prototype._transform=function(e,t,r){r(new i("_transform()"))},c.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},c.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},c.prototype._destroy=function(e,t){l.prototype._destroy.call(this,e,(function(e){t(e)}))}},5291:(e,t,r)=>{"use strict";function n(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;e.entry=null;for(;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree.next=e}(t,e)}}var i;e.exports=O,O.WritableState=E;var o={deprecate:r(6732)},s=r(4856),a=r(1048).Buffer,l=(void 0!==r.g?r.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var u,c=r(6527),p=r(9952).getHighWaterMark,f=r(5699).F,h=f.ERR_INVALID_ARG_TYPE,d=f.ERR_METHOD_NOT_IMPLEMENTED,g=f.ERR_MULTIPLE_CALLBACK,y=f.ERR_STREAM_CANNOT_PIPE,v=f.ERR_STREAM_DESTROYED,m=f.ERR_STREAM_NULL_VALUES,b=f.ERR_STREAM_WRITE_AFTER_END,w=f.ERR_UNKNOWN_ENCODING,S=c.errorOrDestroy;function _(){}function E(e,t,o){i=i||r(1265),e=e||{},"boolean"!=typeof o&&(o=t instanceof i),this.objectMode=!!e.objectMode,o&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=p(this,e,"writableHighWaterMark",o),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===e.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if("function"!=typeof i)throw new g;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,n,i){--t.pendingcb,r?(process.nextTick(i,n),process.nextTick(A,e,t),e._writableState.errorEmitted=!0,S(e,n)):(i(n),e._writableState.errorEmitted=!0,S(e,n),A(e,t))}(e,r,n,t,i);else{var o=P(r)||e.destroyed;o||r.corked||r.bufferProcessing||!r.bufferedRequest||j(e,r),n?process.nextTick(T,e,r,o,i):T(e,r,o,i)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new n(this)}function O(e){var t=this instanceof(i=i||r(1265));if(!t&&!u.call(O,this))return new O(e);this._writableState=new E(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),s.call(this)}function R(e,t,r,n,i,o,s){t.writelen=n,t.writecb=s,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new v("write")):r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function T(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),A(e,t)}function j(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var i=t.bufferedRequestCount,o=new Array(i),s=t.corkedRequestsFree;s.entry=r;for(var a=0,l=!0;r;)o[a]=r,r.isBuf||(l=!1),r=r.next,a+=1;o.allBuffers=l,R(e,t,!0,t.length,o,"",s.finish),t.pendingcb++,t.lastBufferedRequest=null,s.next?(t.corkedRequestsFree=s.next,s.next=null):t.corkedRequestsFree=new n(t),t.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,c=r.encoding,p=r.callback;if(R(e,t,!1,t.objectMode?1:u.length,u,c,p),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function P(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function x(e,t){e._final((function(r){t.pendingcb--,r&&S(e,r),t.prefinished=!0,e.emit("prefinish"),A(e,t)}))}function A(e,t){var r=P(t);if(r&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,process.nextTick(x,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var n=e._readableState;(!n||n.autoDestroy&&n.endEmitted)&&e.destroy()}return r}r(5615)(O,s),E.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(E.prototype,"buffer",{get:o.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(u=Function.prototype[Symbol.hasInstance],Object.defineProperty(O,Symbol.hasInstance,{value:function(e){return!!u.call(this,e)||this===O&&(e&&e._writableState instanceof E)}})):u=function(e){return e instanceof this},O.prototype.pipe=function(){S(this,new y)},O.prototype.write=function(e,t,r){var n,i=this._writableState,o=!1,s=!i.objectMode&&(n=e,a.isBuffer(n)||n instanceof l);return s&&!a.isBuffer(e)&&(e=function(e){return a.from(e)}(e)),"function"==typeof t&&(r=t,t=null),s?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof r&&(r=_),i.ending?function(e,t){var r=new b;S(e,r),process.nextTick(t,r)}(this,r):(s||function(e,t,r,n){var i;return null===r?i=new m:"string"==typeof r||t.objectMode||(i=new h("chunk",["string","Buffer"],r)),!i||(S(e,i),process.nextTick(n,i),!1)}(this,i,e,r))&&(i.pendingcb++,o=function(e,t,r,n,i,o){if(!r){var s=function(e,t,r){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=a.from(t,r));return t}(t,n,i);n!==s&&(r=!0,i="buffer",n=s)}var l=t.objectMode?1:n.length;t.length+=l;var u=t.length<t.highWaterMark;u||(t.needDrain=!0);if(t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else R(e,t,!1,l,n,i,o);return u}(this,i,s,e,t,r)),o},O.prototype.cork=function(){this._writableState.corked++},O.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||j(this,e))},O.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new w(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(O.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(O.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),O.prototype._write=function(e,t,r){r(new d("_write()"))},O.prototype._writev=null,O.prototype.end=function(e,t,r){var n=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||function(e,t,r){t.ending=!0,A(e,t),r&&(t.finished?process.nextTick(r):e.once("finish",r));t.ended=!0,e.writable=!1}(this,n,r),this},Object.defineProperty(O.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(O.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),O.prototype.destroy=c.destroy,O.prototype._undestroy=c.undestroy,O.prototype._destroy=function(e,t){t(e)}},534:(e,t,r)=>{"use strict";var n;function i(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o=r(4869),s=Symbol("lastResolve"),a=Symbol("lastReject"),l=Symbol("error"),u=Symbol("ended"),c=Symbol("lastPromise"),p=Symbol("handlePromise"),f=Symbol("stream");function h(e,t){return{value:e,done:t}}function d(e){var t=e[s];if(null!==t){var r=e[f].read();null!==r&&(e[c]=null,e[s]=null,e[a]=null,t(h(r,!1)))}}function g(e){process.nextTick(d,e)}var y=Object.getPrototypeOf((function(){})),v=Object.setPrototypeOf((i(n={get stream(){return this[f]},next:function(){var e=this,t=this[l];if(null!==t)return Promise.reject(t);if(this[u])return Promise.resolve(h(void 0,!0));if(this[f].destroyed)return new Promise((function(t,r){process.nextTick((function(){e[l]?r(e[l]):t(h(void 0,!0))}))}));var r,n=this[c];if(n)r=new Promise(function(e,t){return function(r,n){e.then((function(){t[u]?r(h(void 0,!0)):t[p](r,n)}),n)}}(n,this));else{var i=this[f].read();if(null!==i)return Promise.resolve(h(i,!1));r=new Promise(this[p])}return this[c]=r,r}},Symbol.asyncIterator,(function(){return this})),i(n,"return",(function(){var e=this;return new Promise((function(t,r){e[f].destroy(null,(function(e){e?r(e):t(h(void 0,!0))}))}))})),n),y);e.exports=function(e){var t,r=Object.create(v,(i(t={},f,{value:e,writable:!0}),i(t,s,{value:null,writable:!0}),i(t,a,{value:null,writable:!0}),i(t,l,{value:null,writable:!0}),i(t,u,{value:e._readableState.endEmitted,writable:!0}),i(t,p,{value:function(e,t){var n=r[f].read();n?(r[c]=null,r[s]=null,r[a]=null,e(h(n,!1))):(r[s]=e,r[a]=t)},writable:!0}),t));return r[c]=null,o(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[a];return null!==t&&(r[c]=null,r[s]=null,r[a]=null,t(e)),void(r[l]=e)}var n=r[s];null!==n&&(r[c]=null,r[s]=null,r[a]=null,n(h(void 0,!0))),r[u]=!0})),e.on("readable",g.bind(null,r)),r}},82:(e,t,r)=>{"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function o(e,t,r){return(t=a(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,a(n.key),n)}}function a(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var l=r(1048).Buffer,u=r(3011).inspect,c=u&&u.custom||"inspect";e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}var t,r,n;return t=e,(r=[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return l.alloc(0);for(var t,r,n,i=l.allocUnsafe(e>>>0),o=this.head,s=0;o;)t=o.data,r=i,n=s,l.prototype.copy.call(t,r,n),s+=o.data.length,o=o.next;return i}},{key:"consume",value:function(e,t){var r;return e<this.head.data.length?(r=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,r=1,n=t.data;for(e-=n.length;t=t.next;){var i=t.data,o=e>i.length?i.length:e;if(o===i.length?n+=i:n+=i.slice(0,e),0==(e-=o)){o===i.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=l.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var i=r.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),0==(e-=o)){o===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(o));break}++n}return this.length-=n,t}},{key:c,value:function(e,t){return u(this,i(i({},t),{},{depth:0,customInspect:!1}))}}])&&s(t.prototype,r),n&&s(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}()},6527:e=>{"use strict";function t(e,t){n(e,t),r(e)}function r(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function n(e,t){e.emit("error",t)}e.exports={destroy:function(e,i){var o=this,s=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return s||a?(i?i(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(n,this,e)):process.nextTick(n,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!i&&e?o._writableState?o._writableState.errorEmitted?process.nextTick(r,o):(o._writableState.errorEmitted=!0,process.nextTick(t,o,e)):process.nextTick(t,o,e):i?(process.nextTick(r,o),i(e)):process.nextTick(r,o)})),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(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}}},4869:(e,t,r)=>{"use strict";var n=r(5699).F.ERR_STREAM_PREMATURE_CLOSE;function i(){}e.exports=function e(t,r,o){if("function"==typeof r)return e(t,null,r);r||(r={}),o=function(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];e.apply(this,n)}}}(o||i);var s=r.readable||!1!==r.readable&&t.readable,a=r.writable||!1!==r.writable&&t.writable,l=function(){t.writable||c()},u=t._writableState&&t._writableState.finished,c=function(){a=!1,u=!0,s||o.call(t)},p=t._readableState&&t._readableState.endEmitted,f=function(){s=!1,p=!0,a||o.call(t)},h=function(e){o.call(t,e)},d=function(){var e;return s&&!p?(t._readableState&&t._readableState.ended||(e=new n),o.call(t,e)):a&&!u?(t._writableState&&t._writableState.ended||(e=new n),o.call(t,e)):void 0},g=function(){t.req.on("finish",c)};return!function(e){return e.setHeader&&"function"==typeof e.abort}(t)?a&&!t._writableState&&(t.on("end",l),t.on("close",l)):(t.on("complete",c),t.on("abort",d),t.req?g():t.on("request",g)),t.on("end",f),t.on("finish",c),!1!==r.error&&t.on("error",h),t.on("close",d),function(){t.removeListener("complete",c),t.removeListener("abort",d),t.removeListener("request",g),t.req&&t.req.removeListener("finish",c),t.removeListener("end",l),t.removeListener("close",l),t.removeListener("finish",c),t.removeListener("end",f),t.removeListener("error",h),t.removeListener("close",d)}}},1260:e=>{e.exports=function(){throw new Error("Readable.from is not available in the browser")}},6815:(e,t,r)=>{"use strict";var n;var i=r(5699).F,o=i.ERR_MISSING_ARGS,s=i.ERR_STREAM_DESTROYED;function a(e){if(e)throw e}function l(e,t,i,o){o=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(o);var a=!1;e.on("close",(function(){a=!0})),void 0===n&&(n=r(4869)),n(e,{readable:t,writable:i},(function(e){if(e)return o(e);a=!0,o()}));var l=!1;return function(t){if(!a&&!l)return l=!0,function(e){return e.setHeader&&"function"==typeof e.abort}(e)?e.abort():"function"==typeof e.destroy?e.destroy():void o(t||new s("pipe"))}}function u(e){e()}function c(e,t){return e.pipe(t)}function p(e){return e.length?"function"!=typeof e[e.length-1]?a:e.pop():a}e.exports=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n,i=p(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new o("streams");var s=t.map((function(e,r){var o=r<t.length-1;return l(e,o,r>0,(function(e){n||(n=e),e&&s.forEach(u),o||(s.forEach(u),i(n))}))}));return t.reduce(c)}},9952:(e,t,r)=>{"use strict";var n=r(5699).F.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,r,i){var o=function(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}(t,i,r);if(null!=o){if(!isFinite(o)||Math.floor(o)!==o||o<0)throw new n(i?r:"highWaterMark",o);return Math.floor(o)}return e.objectMode?16:16384}}},4856:(e,t,r)=>{e.exports=r(46).EventEmitter},4156:(e,t,r)=>{(t=e.exports=r(8199)).Stream=t,t.Readable=t,t.Writable=r(5291),t.Duplex=r(1265),t.Transform=r(9415),t.PassThrough=r(4421),t.finished=r(4869),t.pipeline=r(6815)},5636:(e,t,r)=>{var n=r(1048),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function s(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=s),s.prototype=Object.create(i.prototype),o(i,s),s.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},s.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},s.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},s.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},1145:(e,t)=>{"use strict";const{hasOwnProperty:r}=Object.prototype,n=d();n.configure=d,n.stringify=n,n.default=n,t.stringify=n,t.configure=d,e.exports=n;const i=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]|[\ud800-\udbff](?![\udc00-\udfff])|(?:[^\ud800-\udbff]|^)[\udc00-\udfff]/;function o(e){return e.length<5e3&&!i.test(e)?`"${e}"`:JSON.stringify(e)}function s(e){if(e.length>200)return e.sort();for(let t=1;t<e.length;t++){const r=e[t];let n=t;for(;0!==n&&e[n-1]>r;)e[n]=e[n-1],n--;e[n]=r}return e}const a=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function l(e){return void 0!==a.call(e)&&0!==e.length}function u(e,t,r){e.length<r&&(r=e.length);const n=","===t?"":" ";let i=`"0":${n}${e[0]}`;for(let o=1;o<r;o++)i+=`${t}"${o}":${n}${e[o]}`;return i}function c(e,t){let n;if(r.call(e,t)&&(n=e[t],"boolean"!=typeof n))throw new TypeError(`The "${t}" argument must be of type boolean`);return void 0===n||n}function p(e,t){let n;if(r.call(e,t)){if(n=e[t],"number"!=typeof n)throw new TypeError(`The "${t}" argument must be of type number`);if(!Number.isInteger(n))throw new TypeError(`The "${t}" argument must be an integer`);if(n<1)throw new RangeError(`The "${t}" argument must be >= 1`)}return void 0===n?1/0:n}function f(e){return 1===e?"1 item":e+" items"}function h(e){const t=new Set;for(const r of e)"string"!=typeof r&&"number"!=typeof r||t.add(String(r));return t}function d(e){const t=function(e){if(r.call(e,"strict")){const t=e.strict;if("boolean"!=typeof t)throw new TypeError('The "strict" argument must be of type boolean');if(t)return e=>{let t="Object can not safely be stringified. Received type "+typeof e;throw"function"!=typeof e&&(t+=` (${e.toString()})`),new Error(t)}}}(e={...e});t&&(void 0===e.bigint&&(e.bigint=!1),"circularValue"in e||(e.circularValue=Error));const n=function(e){if(r.call(e,"circularValue")){const t=e.circularValue;if("string"==typeof t)return`"${t}"`;if(null==t)return t;if(t===Error||t===TypeError)return{toString(){throw new TypeError("Converting circular structure to JSON")}};throw new TypeError('The "circularValue" argument must be of type string or the value null or undefined')}return'"[Circular]"'}(e),i=c(e,"bigint"),a=c(e,"deterministic"),d=p(e,"maximumDepth"),g=p(e,"maximumBreadth");function y(e,r,u,c,p,h){let v=r[e];switch("object"==typeof v&&null!==v&&"function"==typeof v.toJSON&&(v=v.toJSON(e)),v=c.call(r,e,v),typeof v){case"string":return o(v);case"object":{if(null===v)return"null";if(-1!==u.indexOf(v))return n;let e="",t=",";const r=h;if(Array.isArray(v)){if(0===v.length)return"[]";if(d<u.length+1)return'"[Array]"';u.push(v),""!==p&&(e+="\n"+(h+=p),t=",\n"+h);const n=Math.min(v.length,g);let i=0;for(;i<n-1;i++){const r=y(String(i),v,u,c,p,h);e+=void 0!==r?r:"null",e+=t}const o=y(String(i),v,u,c,p,h);if(e+=void 0!==o?o:"null",v.length-1>g){e+=`${t}"... ${f(v.length-g-1)} not stringified"`}return""!==p&&(e+="\n"+r),u.pop(),`[${e}]`}let i=Object.keys(v);const m=i.length;if(0===m)return"{}";if(d<u.length+1)return'"[Object]"';let b="",w="";""!==p&&(t=",\n"+(h+=p),b=" ");const S=Math.min(m,g);a&&!l(v)&&(i=s(i)),u.push(v);for(let r=0;r<S;r++){const n=i[r],s=y(n,v,u,c,p,h);void 0!==s&&(e+=`${w}${o(n)}:${b}${s}`,w=t)}if(m>g){e+=`${w}"...":${b}"${f(m-g)} not stringified"`,w=t}return""!==p&&w.length>1&&(e=`\n${h}${e}\n${r}`),u.pop(),`{${e}}`}case"number":return isFinite(v)?String(v):t?t(v):"null";case"boolean":return!0===v?"true":"false";case"undefined":return;case"bigint":if(i)return String(v);default:return t?t(v):void 0}}function v(e,r,s,a,l,u){switch("object"==typeof r&&null!==r&&"function"==typeof r.toJSON&&(r=r.toJSON(e)),typeof r){case"string":return o(r);case"object":{if(null===r)return"null";if(-1!==s.indexOf(r))return n;const e=u;let t="",i=",";if(Array.isArray(r)){if(0===r.length)return"[]";if(d<s.length+1)return'"[Array]"';s.push(r),""!==l&&(t+="\n"+(u+=l),i=",\n"+u);const n=Math.min(r.length,g);let o=0;for(;o<n-1;o++){const e=v(String(o),r[o],s,a,l,u);t+=void 0!==e?e:"null",t+=i}const c=v(String(o),r[o],s,a,l,u);if(t+=void 0!==c?c:"null",r.length-1>g){t+=`${i}"... ${f(r.length-g-1)} not stringified"`}return""!==l&&(t+="\n"+e),s.pop(),`[${t}]`}s.push(r);let c="";""!==l&&(i=",\n"+(u+=l),c=" ");let p="";for(const e of a){const n=v(e,r[e],s,a,l,u);void 0!==n&&(t+=`${p}${o(e)}:${c}${n}`,p=i)}return""!==l&&p.length>1&&(t=`\n${u}${t}\n${e}`),s.pop(),`{${t}}`}case"number":return isFinite(r)?String(r):t?t(r):"null";case"boolean":return!0===r?"true":"false";case"undefined":return;case"bigint":if(i)return String(r);default:return t?t(r):void 0}}function m(e,r,c,p,h){switch(typeof r){case"string":return o(r);case"object":{if(null===r)return"null";if("function"==typeof r.toJSON){if("object"!=typeof(r=r.toJSON(e)))return m(e,r,c,p,h);if(null===r)return"null"}if(-1!==c.indexOf(r))return n;const t=h;if(Array.isArray(r)){if(0===r.length)return"[]";if(d<c.length+1)return'"[Array]"';c.push(r);let e="\n"+(h+=p);const n=",\n"+h,i=Math.min(r.length,g);let o=0;for(;o<i-1;o++){const t=m(String(o),r[o],c,p,h);e+=void 0!==t?t:"null",e+=n}const s=m(String(o),r[o],c,p,h);if(e+=void 0!==s?s:"null",r.length-1>g){e+=`${n}"... ${f(r.length-g-1)} not stringified"`}return e+="\n"+t,c.pop(),`[${e}]`}let i=Object.keys(r);const y=i.length;if(0===y)return"{}";if(d<c.length+1)return'"[Object]"';const v=",\n"+(h+=p);let b="",w="",S=Math.min(y,g);l(r)&&(b+=u(r,v,g),i=i.slice(r.length),S-=r.length,w=v),a&&(i=s(i)),c.push(r);for(let e=0;e<S;e++){const t=i[e],n=m(t,r[t],c,p,h);void 0!==n&&(b+=`${w}${o(t)}: ${n}`,w=v)}if(y>g){b+=`${w}"...": "${f(y-g)} not stringified"`,w=v}return""!==w&&(b=`\n${h}${b}\n${t}`),c.pop(),`{${b}}`}case"number":return isFinite(r)?String(r):t?t(r):"null";case"boolean":return!0===r?"true":"false";case"undefined":return;case"bigint":if(i)return String(r);default:return t?t(r):void 0}}function b(e,r,c){switch(typeof r){case"string":return o(r);case"object":{if(null===r)return"null";if("function"==typeof r.toJSON){if("object"!=typeof(r=r.toJSON(e)))return b(e,r,c);if(null===r)return"null"}if(-1!==c.indexOf(r))return n;let t="";if(Array.isArray(r)){if(0===r.length)return"[]";if(d<c.length+1)return'"[Array]"';c.push(r);const e=Math.min(r.length,g);let n=0;for(;n<e-1;n++){const e=b(String(n),r[n],c);t+=void 0!==e?e:"null",t+=","}const i=b(String(n),r[n],c);if(t+=void 0!==i?i:"null",r.length-1>g){t+=`,"... ${f(r.length-g-1)} not stringified"`}return c.pop(),`[${t}]`}let i=Object.keys(r);const p=i.length;if(0===p)return"{}";if(d<c.length+1)return'"[Object]"';let h="",y=Math.min(p,g);l(r)&&(t+=u(r,",",g),i=i.slice(r.length),y-=r.length,h=","),a&&(i=s(i)),c.push(r);for(let e=0;e<y;e++){const n=i[e],s=b(n,r[n],c);void 0!==s&&(t+=`${h}${o(n)}:${s}`,h=",")}if(p>g){t+=`${h}"...":"${f(p-g)} not stringified"`}return c.pop(),`{${t}}`}case"number":return isFinite(r)?String(r):t?t(r):"null";case"boolean":return!0===r?"true":"false";case"undefined":return;case"bigint":if(i)return String(r);default:return t?t(r):void 0}}return function(e,t,r){if(arguments.length>1){let n="";if("number"==typeof r?n=" ".repeat(Math.min(r,10)):"string"==typeof r&&(n=r.slice(0,10)),null!=t){if("function"==typeof t)return y("",{"":e},[],t,n,"");if(Array.isArray(t))return v("",e,[],h(t),n,"")}if(0!==n.length)return m("",e,[],n,"")}return b("",e,[])}}},6108:(e,t,r)=>{"use strict";var n=r(528),i=r(686),o=r(7239)(),s=r(9336),a=r(3468),l=n("%Math.floor%");e.exports=function(e,t){if("function"!=typeof e)throw new a("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||l(t)!==t)throw new a("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,u=!0;if("length"in e&&s){var c=s(e,"length");c&&!c.configurable&&(n=!1),c&&!c.writable&&(u=!1)}return(n||u||!r)&&(o?i(e,"length",t,!0,!0):i(e,"length",t)),e}},7575:(e,t,r)=>{"use strict";var n=r(528),i=r(9818),o=r(8660),s=r(3468),a=n("%WeakMap%",!0),l=n("%Map%",!0),u=i("WeakMap.prototype.get",!0),c=i("WeakMap.prototype.set",!0),p=i("WeakMap.prototype.has",!0),f=i("Map.prototype.get",!0),h=i("Map.prototype.set",!0),d=i("Map.prototype.has",!0),g=function(e,t){for(var r,n=e;null!==(r=n.next);n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r};e.exports=function(){var e,t,r,n={assert:function(e){if(!n.has(e))throw new s("Side channel does not contain "+o(e))},get:function(n){if(a&&n&&("object"==typeof n||"function"==typeof n)){if(e)return u(e,n)}else if(l){if(t)return f(t,n)}else if(r)return function(e,t){var r=g(e,t);return r&&r.value}(r,n)},has:function(n){if(a&&n&&("object"==typeof n||"function"==typeof n)){if(e)return p(e,n)}else if(l){if(t)return d(t,n)}else if(r)return function(e,t){return!!g(e,t)}(r,n);return!1},set:function(n,i){a&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new a),c(e,n,i)):l?(t||(t=new l),h(t,n,i)):(r||(r={key:{},next:null}),function(e,t,r){var n=g(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}}(r,n,i))}};return n}},5082:(e,t)=>{function r(e){for(var t in e)this[t]=e[t]}t.get=function(e){var r=Error.stackTraceLimit;Error.stackTraceLimit=1/0;var n={},i=Error.prepareStackTrace;Error.prepareStackTrace=function(e,t){return t},Error.captureStackTrace(n,e||t.get);var o=n.stack;return Error.prepareStackTrace=i,Error.stackTraceLimit=r,o},t.parse=function(e){if(!e.stack)return[];var t=this;return e.stack.split("\n").slice(1).map((function(e){if(e.match(/^\s*[-]{4,}$/))return t._createParsedCallSite({fileName:e,lineNumber:null,functionName:null,typeName:null,methodName:null,columnNumber:null,native:null});var r=e.match(/at (?:(.+)\s+\()?(?:(.+?):(\d+)(?::(\d+))?|([^)]+))\)?/);if(r){var n=null,i=null,o=null,s=null,a=null,l="native"===r[5];if(r[1]){var u=(o=r[1]).lastIndexOf(".");if("."==o[u-1]&&u--,u>0){n=o.substr(0,u),i=o.substr(u+1);var c=n.indexOf(".Module");c>0&&(o=o.substr(c+1),n=n.substr(0,c))}s=null}i&&(s=n,a=i),"<anonymous>"===i&&(a=null,o=null);var p={fileName:r[2]||null,lineNumber:parseInt(r[3],10)||null,functionName:o,typeName:s,methodName:a,columnNumber:parseInt(r[4],10)||null,native:l};return t._createParsedCallSite(p)}})).filter((function(e){return!!e}))};["this","typeName","functionName","methodName","fileName","lineNumber","columnNumber","function","evalOrigin"].forEach((function(e){r.prototype[e]=null,r.prototype["get"+e[0].toUpperCase()+e.substr(1)]=function(){return this[e]}})),["topLevel","eval","native","constructor"].forEach((function(e){r.prototype[e]=!1,r.prototype["is"+e[0].toUpperCase()+e.substr(1)]=function(){return this[e]}})),t._createParsedCallSite=function(e){return new r(e)}},1983:(e,t,r)=>{e.exports=i;var n=r(46).EventEmitter;function i(){n.call(this)}r(5615)(i,n),i.Readable=r(8199),i.Writable=r(5291),i.Duplex=r(1265),i.Transform=r(9415),i.PassThrough=r(4421),i.finished=r(4869),i.pipeline=r(6815),i.Stream=i,i.prototype.pipe=function(e,t){var r=this;function i(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function o(){r.readable&&r.resume&&r.resume()}r.on("data",i),e.on("drain",o),e._isStdio||t&&!1===t.end||(r.on("end",a),r.on("close",l));var s=!1;function a(){s||(s=!0,e.end())}function l(){s||(s=!0,"function"==typeof e.destroy&&e.destroy())}function u(e){if(c(),0===n.listenerCount(this,"error"))throw e}function c(){r.removeListener("data",i),e.removeListener("drain",o),r.removeListener("end",a),r.removeListener("close",l),r.removeListener("error",u),e.removeListener("error",u),r.removeListener("end",c),r.removeListener("close",c),e.removeListener("close",c)}return r.on("error",u),e.on("error",u),r.on("end",c),r.on("close",c),e.on("close",c),e.emit("pipe",r),e}},4865:(e,t,r)=>{var n=r(6255),i=r(6846),o=r(3227),s=r(49),a=r(5442),l=t;l.request=function(e,t){e="string"==typeof e?a.parse(e):o(e);var i=-1===r.g.location.protocol.search(/^https?:$/)?"http:":"",s=e.protocol||i,l=e.hostname||e.host,u=e.port,c=e.path||"/";l&&-1!==l.indexOf(":")&&(l="["+l+"]"),e.url=(l?s+"//"+l:"")+(u?":"+u:"")+c,e.method=(e.method||"GET").toUpperCase(),e.headers=e.headers||{};var p=new n(e);return t&&p.on("response",t),p},l.get=function(e,t){var r=l.request(e,t);return r.end(),r},l.ClientRequest=n,l.IncomingMessage=i.IncomingMessage,l.Agent=function(){},l.Agent.defaultMaxSockets=4,l.globalAgent=new l.Agent,l.STATUS_CODES=s,l.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"]},2271:(e,t,r)=>{var n;function i(){if(void 0!==n)return n;if(r.g.XMLHttpRequest){n=new r.g.XMLHttpRequest;try{n.open("GET",r.g.XDomainRequest?"/":"https://example.com")}catch(e){n=null}}else n=null;return n}function o(e){var t=i();if(!t)return!1;try{return t.responseType=e,t.responseType===e}catch(e){}return!1}function s(e){return"function"==typeof e}t.fetch=s(r.g.fetch)&&s(r.g.ReadableStream),t.writableStream=s(r.g.WritableStream),t.abortController=s(r.g.AbortController),t.arraybuffer=t.fetch||o("arraybuffer"),t.msstream=!t.fetch&&o("ms-stream"),t.mozchunkedarraybuffer=!t.fetch&&o("moz-chunked-arraybuffer"),t.overrideMimeType=t.fetch||!!i()&&s(i().overrideMimeType),n=null},6255:(e,t,r)=>{var n=r(2271),i=r(5615),o=r(6846),s=r(4156),a=o.IncomingMessage,l=o.readyStates;var u=e.exports=function(e){var t,r=this;s.Writable.call(r),r._opts=e,r._body=[],r._headers={},e.auth&&r.setHeader("Authorization","Basic "+Buffer.from(e.auth).toString("base64")),Object.keys(e.headers).forEach((function(t){r.setHeader(t,e.headers[t])}));var i=!0;if("disable-fetch"===e.mode||"requestTimeout"in e&&!n.abortController)i=!1,t=!0;else if("prefer-streaming"===e.mode)t=!1;else if("allow-wrong-content-type"===e.mode)t=!n.overrideMimeType;else{if(e.mode&&"default"!==e.mode&&"prefer-fast"!==e.mode)throw new Error("Invalid value for opts.mode");t=!0}r._mode=function(e,t){return n.fetch&&t?"fetch":n.mozchunkedarraybuffer?"moz-chunked-arraybuffer":n.msstream?"ms-stream":n.arraybuffer&&e?"arraybuffer":"text"}(t,i),r._fetchTimer=null,r._socketTimeout=null,r._socketTimer=null,r.on("finish",(function(){r._onFinish()}))};i(u,s.Writable),u.prototype.setHeader=function(e,t){var r=e.toLowerCase();-1===c.indexOf(r)&&(this._headers[r]={name:e,value:t})},u.prototype.getHeader=function(e){var t=this._headers[e.toLowerCase()];return t?t.value:null},u.prototype.removeHeader=function(e){delete this._headers[e.toLowerCase()]},u.prototype._onFinish=function(){var e=this;if(!e._destroyed){var t=e._opts;"timeout"in t&&0!==t.timeout&&e.setTimeout(t.timeout);var i=e._headers,o=null;"GET"!==t.method&&"HEAD"!==t.method&&(o=new Blob(e._body,{type:(i["content-type"]||{}).value||""}));var s=[];if(Object.keys(i).forEach((function(e){var t=i[e].name,r=i[e].value;Array.isArray(r)?r.forEach((function(e){s.push([t,e])})):s.push([t,r])})),"fetch"===e._mode){var a=null;if(n.abortController){var u=new AbortController;a=u.signal,e._fetchAbortController=u,"requestTimeout"in t&&0!==t.requestTimeout&&(e._fetchTimer=r.g.setTimeout((function(){e.emit("requestTimeout"),e._fetchAbortController&&e._fetchAbortController.abort()}),t.requestTimeout))}r.g.fetch(e._opts.url,{method:e._opts.method,headers:s,body:o||void 0,mode:"cors",credentials:t.withCredentials?"include":"same-origin",signal:a}).then((function(t){e._fetchResponse=t,e._resetTimers(!1),e._connect()}),(function(t){e._resetTimers(!0),e._destroyed||e.emit("error",t)}))}else{var c=e._xhr=new r.g.XMLHttpRequest;try{c.open(e._opts.method,e._opts.url,!0)}catch(t){return void process.nextTick((function(){e.emit("error",t)}))}"responseType"in c&&(c.responseType=e._mode),"withCredentials"in c&&(c.withCredentials=!!t.withCredentials),"text"===e._mode&&"overrideMimeType"in c&&c.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in t&&(c.timeout=t.requestTimeout,c.ontimeout=function(){e.emit("requestTimeout")}),s.forEach((function(e){c.setRequestHeader(e[0],e[1])})),e._response=null,c.onreadystatechange=function(){switch(c.readyState){case l.LOADING:case l.DONE:e._onXHRProgress()}},"moz-chunked-arraybuffer"===e._mode&&(c.onprogress=function(){e._onXHRProgress()}),c.onerror=function(){e._destroyed||(e._resetTimers(!0),e.emit("error",new Error("XHR error")))};try{c.send(o)}catch(t){return void process.nextTick((function(){e.emit("error",t)}))}}}},u.prototype._onXHRProgress=function(){this._resetTimers(!1),function(e){try{var t=e.status;return null!==t&&0!==t}catch(e){return!1}}(this._xhr)&&!this._destroyed&&(this._response||this._connect(),this._response._onXHRProgress(this._resetTimers.bind(this)))},u.prototype._connect=function(){var e=this;e._destroyed||(e._response=new a(e._xhr,e._fetchResponse,e._mode,e._resetTimers.bind(e)),e._response.on("error",(function(t){e.emit("error",t)})),e.emit("response",e._response))},u.prototype._write=function(e,t,r){this._body.push(e),r()},u.prototype._resetTimers=function(e){var t=this;r.g.clearTimeout(t._socketTimer),t._socketTimer=null,e?(r.g.clearTimeout(t._fetchTimer),t._fetchTimer=null):t._socketTimeout&&(t._socketTimer=r.g.setTimeout((function(){t.emit("timeout")}),t._socketTimeout))},u.prototype.abort=u.prototype.destroy=function(e){this._destroyed=!0,this._resetTimers(!0),this._response&&(this._response._destroyed=!0),this._xhr?this._xhr.abort():this._fetchAbortController&&this._fetchAbortController.abort(),e&&this.emit("error",e)},u.prototype.end=function(e,t,r){"function"==typeof e&&(r=e,e=void 0),s.Writable.prototype.end.call(this,e,t,r)},u.prototype.setTimeout=function(e,t){t&&this.once("timeout",t),this._socketTimeout=e,this._resetTimers(!1)},u.prototype.flushHeaders=function(){},u.prototype.setNoDelay=function(){},u.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"]},6846:(e,t,r)=>{var n=r(2271),i=r(5615),o=r(4156),s=t.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},a=t.IncomingMessage=function(e,t,r,i){var s=this;if(o.Readable.call(s),s._mode=r,s.headers={},s.rawHeaders=[],s.trailers={},s.rawTrailers=[],s.on("end",(function(){process.nextTick((function(){s.emit("close")}))})),"fetch"===r){if(s._fetchResponse=t,s.url=t.url,s.statusCode=t.status,s.statusMessage=t.statusText,t.headers.forEach((function(e,t){s.headers[t.toLowerCase()]=e,s.rawHeaders.push(t,e)})),n.writableStream){var a=new WritableStream({write:function(e){return i(!1),new Promise((function(t,r){s._destroyed?r():s.push(Buffer.from(e))?t():s._resumeFetch=t}))},close:function(){i(!0),s._destroyed||s.push(null)},abort:function(e){i(!0),s._destroyed||s.emit("error",e)}});try{return void t.body.pipeTo(a).catch((function(e){i(!0),s._destroyed||s.emit("error",e)}))}catch(e){}}var l=t.body.getReader();!function e(){l.read().then((function(t){s._destroyed||(i(t.done),t.done?s.push(null):(s.push(Buffer.from(t.value)),e()))})).catch((function(e){i(!0),s._destroyed||s.emit("error",e)}))}()}else{if(s._xhr=e,s._pos=0,s.url=e.responseURL,s.statusCode=e.status,s.statusMessage=e.statusText,e.getAllResponseHeaders().split(/\r?\n/).forEach((function(e){var t=e.match(/^([^:]+):\s*(.*)/);if(t){var r=t[1].toLowerCase();"set-cookie"===r?(void 0===s.headers[r]&&(s.headers[r]=[]),s.headers[r].push(t[2])):void 0!==s.headers[r]?s.headers[r]+=", "+t[2]:s.headers[r]=t[2],s.rawHeaders.push(t[1],t[2])}})),s._charset="x-user-defined",!n.overrideMimeType){var u=s.rawHeaders["mime-type"];if(u){var c=u.match(/;\s*charset=([^;])(;|$)/);c&&(s._charset=c[1].toLowerCase())}s._charset||(s._charset="utf-8")}}};i(a,o.Readable),a.prototype._read=function(){var e=this._resumeFetch;e&&(this._resumeFetch=null,e())},a.prototype._onXHRProgress=function(e){var t=this,n=t._xhr,i=null;switch(t._mode){case"text":if((i=n.responseText).length>t._pos){var o=i.substr(t._pos);if("x-user-defined"===t._charset){for(var a=Buffer.alloc(o.length),l=0;l<o.length;l++)a[l]=255&o.charCodeAt(l);t.push(a)}else t.push(o,t._charset);t._pos=i.length}break;case"arraybuffer":if(n.readyState!==s.DONE||!n.response)break;i=n.response,t.push(Buffer.from(new Uint8Array(i)));break;case"moz-chunked-arraybuffer":if(i=n.response,n.readyState!==s.LOADING||!i)break;t.push(Buffer.from(new Uint8Array(i)));break;case"ms-stream":if(i=n.response,n.readyState!==s.LOADING)break;var u=new r.g.MSStreamReader;u.onprogress=function(){u.result.byteLength>t._pos&&(t.push(Buffer.from(new Uint8Array(u.result.slice(t._pos)))),t._pos=u.result.byteLength)},u.onload=function(){e(!0),t.push(null)},u.readAsArrayBuffer(i)}t._xhr.readyState===s.DONE&&"ms-stream"!==t._mode&&(e(!0),t.push(null))}},8888:(e,t,r)=>{"use strict";var n=r(5636).Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.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 o(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){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 e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=l,this.end=u,t=4;break;case"utf8":this.fillLast=a,t=4;break;case"base64":this.text=c,this.end=p,t=3;break;default:return this.write=f,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function s(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function a(e){var t=this.lastTotal-this.lastNeed,r=function(e,t,r){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function l(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function u(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function c(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function p(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function f(e){return e.toString(this.encoding)}function h(e){return e&&e.length?this.write(e):""}t.StringDecoder=o,o.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},o.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},o.prototype.text=function(e,t){var r=function(e,t,r){var n=t.length-1;if(n<r)return 0;var i=s(t[n]);if(i>=0)return i>0&&(e.lastNeed=i-1),i;if(--n<r||-2===i)return 0;if((i=s(t[n]))>=0)return i>0&&(e.lastNeed=i-2),i;if(--n<r||-2===i)return 0;if((i=s(t[n]))>=0)return i>0&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},9023:(e,t)=>{"use strict";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"}},2797:(e,t,r)=>{"use strict";Object.defineProperty(t,"cli",{value:r(9023)}),Object.defineProperty(t,"npm",{value:r(5828)}),Object.defineProperty(t,"syslog",{value:r(7408)})},5828:(e,t)=>{"use strict";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"}},7408:(e,t)=>{"use strict";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"}},4966:(e,t,r)=>{"use strict";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(2797)})},7396:(e,t,r)=>{"use strict";r.d(t,{V:()=>g});var n=r(288),i=r.n(n),o=r(3778);class s extends Error{constructor(e,t,r){super("Connection failure: "+e.message),this.cause=e,this.url=t,this.retryable=r,this.name="ConnectionError",Object.setPrototypeOf(this,new.target.prototype)}}var a=r(7221),l=r(6452),u=r(5413),c=r(7197);class p extends Error{constructor(e,t){super(`Invalid headers (${JSON.stringify(e)}) for response: ${t.message}`),this.validationErrors=e,this.responseError=t}}var f=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))},h=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r};const d=new Set(["GET","HEAD","PUT","QUERY","DELETE","OPTIONS","TRACE"]);class g{constructor(e,t={}){if(this.endpoint=e,this.validateHeaders=e=>t.validateHeaders?t.validateHeaders(e):{},this.verbose=!1!==t.verbose,void 0!==t.retries&&!(t.retries>=0))throw new Error("retries must be positive or zero");if(this.configuredRetries=t.retries,void 0!==t.timeoutMs&&!(t.timeoutMs>0))throw new Error("timeoutMs must be positive");if(this.timeoutMs=t.timeoutMs,void 0!==t.maxBackoffDelayMs&&!(t.maxBackoffDelayMs>0))throw new Error("maxBackoffDelayMs must be positive");this.maxBackoffDelayMs=t.maxBackoffDelayMs||30*o.p.second,this.json=!1!==t.json}getRetries(){return void 0!==this.configuredRetries?this.configuredRetries:this.getConstructor().retries}getHeaders(){return{}}fetch(e){return f(this,arguments,void 0,(function*(e,t={}){return(yield this.fetchVerbose(e,t)).body}))}fetchVerbose(e){return f(this,arguments,void 0,(function*(e,t={}){let r=100*o.p.millisecond,n=0;const i=void 0!==this.timeoutMs?(new Date).getTime()+this.timeoutMs:void 0,c=i?()=>Math.max(i-(new Date).getTime(),0):void 0;for(;;)try{return yield this.doFetch(e,t,c)}catch(e){const t=e,i=(0,u.e)(t,s);if(0===(null==c?void 0:c())||n===this.getRetries()||!i.retryable)throw i;n++,r=Math.min(...c?[c()]:[],r*(2+.1*(Math.random()-.5)),this.maxBackoffDelayMs),yield(0,a.c)(r),this.verbose&&l.vF.warn("Connection failure, retrying. Error: "+t.cause.message,{url:t.url,error:t.cause,attempt:n})}}))}doFetch(e,t,r){return f(this,void 0,void 0,(function*(){const{token:n,json:a=this.json,allowUnsafeRetries:f}=t,g=h(t,["token","json","allowUnsafeRetries"]),y=(g.method||"GET").toUpperCase(),v=void 0!==this.endpoint?`${this.endpoint}${e?"/"+e:""}`:e,m=new AbortController;let b;if(r){const e=r();e>0?b=setTimeout(()=>{m.abort()},e):m.abort()}try{let e;yield Promise.race([this.getConstructor().waitForConnectivity(),new Promise(t=>{e=setTimeout(t,r?Math.min(o.p.minute,r()):o.p.minute)})]),e&&clearTimeout(e);const t=yield i()(v,Object.assign(Object.assign(Object.assign({},g),void 0!==g.body?{body:!1!==a?JSON.stringify(g.body):g.body}:{}),{headers:Object.assign(Object.assign(Object.assign(Object.assign({},!1!==a?{"Content-Type":"application/json"}:{}),this.getHeaders()),g.headers||{}),void 0!==n?{Authorization:"Bearer "+n}:{}),signal:m.signal})),s=t.headers.get("content-type")||"",u=s&&s.startsWith("application/json"),f=u?yield t.json():yield t.text(),h=()=>new c.o(y,v,g.body,t.status,t.headers,f,f&&f.validationErrors||{});if(!t.ok)throw this.verbose&&l.vF[t.status>=500?"warn":"info"]("Response error",{method:y,url:v,statusCode:t.status}),h();const d=this.validateHeaders(t.headers);if(0!==Object.keys(d).length)throw new p(d,h());if(204===t.status)return{body:void 0,headers:t.headers};if(a&&!u)throw new Error("Response is not JSON: "+JSON.stringify(f));return{body:f,headers:t.headers}}catch(e){const t=e,r=f||d.has(y);if("Network request failed"===t.message)throw new s(t,v,r);if("system"===t.type&&["EAI_AGAIN","ECONNREFUSED","EHOSTUNREACH","ENOTFOUND"].find(e=>e===t.code))throw new s(t,v,!0);if("system"===t.type&&["ETIMEDOUT","ECONNRESET","ESOCKETTIMEDOUT","EPIPE"].find(e=>e===t.code))throw new s(t,v,r);if("AbortError"===t.name)throw new s(t,v,r);const n=(0,u.e)(t,c.o),{statusCode:i}=n;if(408===i||429===i||502===i||503===i||504===i)throw this.verbose&&!r&&l.vF.warn("Potentially unsafe retry"),new s(t,v,!0);const o=["/online-devices","/stream-current-value","/events/counts","/queries/queries"];if(500===i&&o.some(e=>v.includes(e)))throw new s(t,v,r);const a=this.validateHeaders(n.headers);if(0!==Object.keys(a).length)throw new p(a,n);throw yield this.getConstructor().onResponseError(n),t}finally{b&&clearTimeout(b)}}))}getConstructor(){return Object.getPrototypeOf(this).constructor}}g.retries=8,g.waitForConnectivity=()=>f(void 0,void 0,void 0,(function*(){})),g.onResponseError=()=>f(void 0,void 0,void 0,(function*(){}))},6331:(e,t,r)=>{"use strict";r.d(t,{S:()=>s});var n=r(7396),i=r(2273);const o={"app-id":["app-id must match formant/*"]};class s extends n.V{constructor(e,t={}){super(e,Object.assign({validateHeaders:e=>(""+e.get("app-id")).startsWith("formant/")?{}:o},t)),this.endpoint=e}getHeaders(){return Object.assign(Object.assign({},s.headers),{"App-ID":"formant/"+i.yA,"App-Version":i.rE})}}s.headers={}},4495:(e,t,r)=>{"use strict";r.r(t),r.d(t,{LogClient:()=>a});var n=r(6331),i=r(5413),o=r(7197),s=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))};class a extends n.S{log(e){return s(this,void 0,void 0,(function*(){const t=a.token;try{yield this.fetch("logs",{token:t,method:"POST",body:{logs:e},allowUnsafeRetries:!0})}catch(r){(0,i.e)(r,o.o,e=>401===e.statusCode&&void 0!==t),a.token===t&&delete a.token,yield this.log(e)}}))}}},7197:(e,t,r)=>{"use strict";r.d(t,{o:()=>i});var n=r(3563);class i extends Error{constructor(e,t,r,i,o,s,a={}){super("Response error "+JSON.stringify({method:e,url:t,requestBody:(0,n.E)(r),statusCode:i,responseHeaders:o?(0,n.E)([...o.entries()].reduce((e,[t,r])=>(e[t]=r,e),{})):{},responseBody:(0,n.E)(s)})),this.method=e,this.url=t,this.requestBody=r,this.statusCode=i,this.headers=o,this.body=s,this.validationErrors=a,this.name="ResponseError",Object.setPrototypeOf(this,new.target.prototype)}}},2273:(e,t,r)=>{"use strict";r.d(t,{IW:()=>d,MF:()=>s,NQ:()=>l,Zm:()=>p,_P:()=>f,dF:()=>c,dm:()=>u,op:()=>h,rE:()=>a,yA:()=>o});var n=r(2078);const i=n.from({ENVIRONMENT:process.env.ENV,AGGREGATE_LEVEL:process.env.AGGREGATE_LEVEL,API_ENDPOINT:process.env.API_ENDPOINT,APP:"realtime-sdk",APP_PATH:process.env.APP_PATH,BUILD_TAG:process.env.BUILD_TAG,ENABLE_SELF_SERVE:process.env.ENABLE_SELF_SERVE,ENABLE_SENTRY:process.env.ENABLE_SENTRY,ENABLE_SENTRY_PROFILING:process.env.ENABLE_SENTRY_PROFILING,GIT_COMMIT:process.env.GIT_COMMIT,JEST_WORKER_ID:process.env.JEST_WORKER_ID,LOG_API_ENDPOINT:process.env.LOG_API_ENDPOINT,LOG_JSON:"false",LOG_LEVEL:process.env.LOG_LEVEL,LOG_TO_CONSOLE:process.env.LOG_TO_CONSOLE,LOG_TO_FILE:process.env.LOG_TO_FILE,NAMESPACE:"production",SENTRY_DSN:process.env.SENTRY_DSN,SHEET_EXPORT_MAX_ROW_COUNT:process.env.SHEET_EXPORT_MAX_ROW_COUNT,STABLE_AGENT_VERSION:"1.184.9",VERSION:process.env.VERSION,AUDIT_LOGS_ENABLED:process.env.AUDIT_LOGS_ENABLED}),o=(i.get("ENVIRONMENT").default("").asString(),i.get("APP").default("").asString()),s=(i.get("APP_PATH").default("").asString(),i.get("API_ENDPOINT").default("").asString(),i.get("NAMESPACE").default("").asString()),a=i.get("VERSION").default("").asString(),l=i.get("BUILD_TAG").default("").asString(),u=(i.get("GIT_COMMIT").default("").asString(),i.get("ENABLE_SENTRY").default("false").asBool(),i.get("ENABLE_SENTRY_PROFILING").default("false").asBool(),i.get("SENTRY_DSN").default("").asString(),i.get("LOG_LEVEL").default("debug").asString()),c=i.get("LOG_JSON").default("true").asBool(),p=i.get("LOG_TO_CONSOLE").default("true").asBool(),f=(i.get("STABLE_AGENT_VERSION").default("").asString(),i.get("LOG_API_ENDPOINT").asString()),h=i.get("JEST_WORKER_ID").asString(),d=(i.get("SHEET_EXPORT_MAX_ROW_COUNT").default("10000").asIntPositive(),i.get("LOG_TO_FILE").default("false").asBoolStrict());i.get("ENABLE_SELF_SERVE").default("true").asBoolStrict(),i.get("AGGREGATE_LEVEL").default("hour").asEnum(["day","hour","minute"]),i.get("AUDIT_LOGS_ENABLED").default("true").asBoolStrict()},7221:(e,t,r)=>{"use strict";r.d(t,{c:()=>n});const n=e=>new Promise(t=>setTimeout(t,e||0))},6452:(e,t,r)=>{"use strict";r.d(t,{vF:()=>W});var n=r(2213),i=r(8558),o=r(6075),s=r.n(o),a=r(6563);Math.pow(10,8);function l(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function u(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}var c={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},p=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,f=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,h=/^([+-])(\d{2})(?::?(\d{2}))?$/;function d(e){var t,r={},n=e.split(c.dateTimeDelimiter);if(n.length>2)return r;if(/:/.test(n[0])?t=n[0]:(r.date=n[0],t=n[1],c.timeZoneDelimiter.test(r.date)&&(r.date=e.split(c.timeZoneDelimiter)[0],t=e.substr(r.date.length,e.length))),t){var i=c.timezone.exec(t);i?(r.time=t.replace(i[1],""),r.timezone=i[1]):r.time=t}return r}function g(e,t){var r=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),n=e.match(r);if(!n)return{year:NaN,restDateString:""};var i=n[1]?parseInt(n[1]):null,o=n[2]?parseInt(n[2]):null;return{year:null===o?i:100*o,restDateString:e.slice((n[1]||n[2]).length)}}function y(e,t){if(null===t)return new Date(NaN);var r=e.match(p);if(!r)return new Date(NaN);var n=!!r[4],i=v(r[1]),o=v(r[2])-1,s=v(r[3]),a=v(r[4]),l=v(r[5])-1;if(n)return function(e,t,r){return t>=1&&t<=53&&r>=0&&r<=6}(0,a,l)?function(e,t,r){var n=new Date(0);n.setUTCFullYear(e,0,4);var i=n.getUTCDay()||7,o=7*(t-1)+r+1-i;return n.setUTCDate(n.getUTCDate()+o),n}(t,a,l):new Date(NaN);var u=new Date(0);return function(e,t,r){return t>=0&&t<=11&&r>=1&&r<=(S[t]||(_(e)?29:28))}(t,o,s)&&function(e,t){return t>=1&&t<=(_(e)?366:365)}(t,i)?(u.setUTCFullYear(t,o,Math.max(i,s)),u):new Date(NaN)}function v(e){return e?parseInt(e):1}function m(e){var t=e.match(f);if(!t)return NaN;var r=b(t[1]),n=b(t[2]),i=b(t[3]);return function(e,t,r){if(24===e)return 0===t&&0===r;return r>=0&&r<60&&t>=0&&t<60&&e>=0&&e<25}(r,n,i)?36e5*r+6e4*n+1e3*i:NaN}function b(e){return e&&parseFloat(e.replace(",","."))||0}function w(e){if("Z"===e)return 0;var t=e.match(h);if(!t)return 0;var r="+"===t[1]?-1:1,n=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return function(e,t){return t>=0&&t<=59}(0,i)?r*(36e5*n+6e4*i):NaN}var S=[31,null,31,30,31,30,31,31,30,31,30,31];function _(e){return e%400==0||e%4==0&&e%100!=0}function E(e){return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function O(e){return l(1,arguments),e instanceof Date||"object"===E(e)&&"[object Date]"===Object.prototype.toString.call(e)}function R(e){l(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===E(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function T(e){const t=function(e,t){var r;l(1,arguments);var n=u(null!==(r=null==t?void 0:t.additionalDigits)&&void 0!==r?r:2);if(2!==n&&1!==n&&0!==n)throw new RangeError("additionalDigits must be 0, 1 or 2");if("string"!=typeof e&&"[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);var i,o=d(e);if(o.date){var s=g(o.date,n);i=y(s.restDateString,s.year)}if(!i||isNaN(i.getTime()))return new Date(NaN);var a,c=i.getTime(),p=0;if(o.time&&(p=m(o.time),isNaN(p)))return new Date(NaN);if(!o.timezone){var f=new Date(c+p),h=new Date(0);return h.setFullYear(f.getUTCFullYear(),f.getUTCMonth(),f.getUTCDate()),h.setHours(f.getUTCHours(),f.getUTCMinutes(),f.getUTCSeconds(),f.getUTCMilliseconds()),h}return a=w(o.timezone),isNaN(a)?new Date(NaN):new Date(c+p+a)}(e);if(!function(e){if(l(1,arguments),!O(e)&&"number"!=typeof e)return!1;var t=R(e);return!isNaN(Number(t))}(t))throw new Error(`Invalid ISO 8601 date string (${e})`);return t}Math.pow(2,0),Math.pow(2,10);const j=Math.pow(2,20),P=(Math.pow(2,30),Math.pow(10,3),Math.pow(10,6),j);Math.pow(10,9);var x=r(2273),A=r(3563);function I(e){return s()(e,{cycles:!0})}var C=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r};function k(e,t={}){const{redacted:r=!0}=t,n=e=>r?(0,A.E)(e):e;if(!e.stack)return{message:I(n(e))};const{name:i,message:o,stack:s}=e,a=C(e,["name","message","stack"]);return{name:i,message:void 0!==o?o:I(n(e)),stack:s,meta:a&&0===Object.keys(a).length?void 0:n(a)}}function M(e,t={}){const{message:r,stack:n,meta:i}=k(e,t);return`${n||r||""}${i&&Object.keys(i).length>0?" -- "+I(i):""}`}const F=(0,r(2964).A)();var B=r(6155),D=r.n(B),L=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))},N=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r};class z extends(D()){constructor(e,t){super(),this.endpoint=e,this.metadata=t,this.logClient=this.getLogClient()}getLogClient(){return L(this,void 0,void 0,(function*(){const{LogClient:e}=yield Promise.resolve().then(r.bind(r,4495));return new e(this.endpoint)}))}log(e,t){return L(this,void 0,void 0,(function*(){const{level:r,message:n,error:i}=e,o=N(e,["level","message","error"]);this.emit("logged");try{yield(yield this.logClient).log([{timestamp:(new Date).toISOString(),level:r,message:(""+n).substring(0,1e3),error:void 0!==i?k(i):void 0,meta:Object.assign(Object.assign({},o),this.metadata)}])}catch(i){console.error("Failed to log to log-api: "+M(i))}t()}))}}var U=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r};const G={app:x.yA,namespace:x.MF,buildTag:x.NQ,instanceId:F},V=x.dF?a.format.printf(e=>{var{timestamp:t,level:r,message:n,error:i}=e,o=U(e,["timestamp","level","message","error"]);const a=Object.assign(Object.assign({timestamp:t?T(t).getTime():(new Date).getTime(),level:r.toUpperCase(),message:n},i?{error:k(i)}:{}),{meta:Object.assign(Object.assign({},G),o)});return s()(a,{cycles:!0})}):a.format.printf(e=>{var{timestamp:t,level:r,message:n,error:i}=e,o=U(e,["timestamp","level","message","error"]);let a=`${t||(new Date).toISOString()} ${r.toUpperCase()}: ${n} `;return Object.keys(o).length>0&&(a+=s()(o,{cycles:!0})),i&&(a+="\n"+M(i)),a});const W=(0,a.createLogger)({level:x.dm});W.add(new a.transports.Console({format:V,level:"debug"})),W.transports.forEach(e=>{e.silent=!x.Zm}),x._P&&W.add(new z(x._P,G));if(x.IW){const e=i.resolve(n.tmpdir(),`silly-${x.yA}.log`);W.debug("Logging silly logs to file",{filename:e}),W.add(new a.transports.File({filename:e,maxsize:1*P,maxFiles:10,format:a.format.combine((q="silly",(0,a.format)(e=>e.level===q&&e)()),V),level:"silly"}))}var q},5413:(e,t,r)=>{"use strict";function n(e,t,r=(()=>!0)){if(function(e,t,r=(()=>!0)){return e instanceof t&&r(e)}(e,t,r))return e;throw e}r.d(t,{e:()=>n})},3563:(e,t,r)=>{"use strict";r.d(t,{E:()=>l,x:()=>u});const n=["query"],i=["expected one of:","maybe you meant:","in query:","while processing query","column"],o=["password","secret","token","key","buffer","authorization"],s=new Set(["email","firstName","lastName","phoneNumber","phoneNumbers"]),a=e=>o.some(t=>e.toLowerCase().includes(t.toLowerCase()))||s.has(e);function l(e,t=new WeakSet){return t.has(e)?"[ RECURSIVE ]":Array.isArray(e)?(t.add(e),e.map(e=>l(e,t))):!(r=e)||"object"!=typeof r&&"function"!=typeof r?"string"==typeof e&&!i.some(t=>e.toLowerCase().includes(t))&&a(e)?"[ REDACTED ]":e:(t.add(e),Object.keys(e).reduce((r,i)=>n.includes(i.toLowerCase())?(r[i]=e[i],r):(r[i]=a(i)?"[ REDACTED ]":l(e[i],t),r),{}));var r}const u=e=>{const t=JSON.stringify(e).replace(/\\"username\\":\\"([a-zA-Z0-9]+)\\"/gi,'\\"username\\":\\"<REDACTED>\\"').replace(/\\"credential\\":\\"([a-zA-Z0-9]+)\\"/gi,'\\"credential\\":\\"<REDACTED>\\"');return JSON.parse(t)}},3778:(e,t,r)=>{"use strict";r.d(t,{p:()=>i});const n=864e5,i={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:n,week:6048e5,month:2592e6,year:31536e6}},2113:function(e,t,r){var n;e=r.nmd(e),function(i){t&&t.nodeType,e&&e.nodeType;var o="object"==typeof r.g&&r.g;o.global!==o&&o.window!==o&&o.self;var s,a=2147483647,l=/^xn--/,u=/[^\x20-\x7E]/,c=/[\x2E\u3002\uFF0E\uFF61]/g,p={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},f=Math.floor,h=String.fromCharCode;function d(e){throw new RangeError(p[e])}function g(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function y(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+g((e=e.replace(c,".")).split("."),t).join(".")}function v(e){for(var t,r,n=[],i=0,o=e.length;i<o;)(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<o?56320==(64512&(r=e.charCodeAt(i++)))?n.push(((1023&t)<<10)+(1023&r)+65536):(n.push(t),i--):n.push(t);return n}function m(e){return g(e,(function(e){var t="";return e>65535&&(t+=h((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=h(e)})).join("")}function b(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function w(e,t,r){var n=0;for(e=r?f(e/700):e>>1,e+=f(e/t);e>455;n+=36)e=f(e/35);return f(n+36*e/(e+38))}function S(e){var t,r,n,i,o,s,l,u,c,p,h,g=[],y=e.length,v=0,b=128,S=72;for((r=e.lastIndexOf("-"))<0&&(r=0),n=0;n<r;++n)e.charCodeAt(n)>=128&&d("not-basic"),g.push(e.charCodeAt(n));for(i=r>0?r+1:0;i<y;){for(o=v,s=1,l=36;i>=y&&d("invalid-input"),((u=(h=e.charCodeAt(i++))-48<10?h-22:h-65<26?h-65:h-97<26?h-97:36)>=36||u>f((a-v)/s))&&d("overflow"),v+=u*s,!(u<(c=l<=S?1:l>=S+26?26:l-S));l+=36)s>f(a/(p=36-c))&&d("overflow"),s*=p;S=w(v-o,t=g.length+1,0==o),f(v/t)>a-b&&d("overflow"),b+=f(v/t),v%=t,g.splice(v++,0,b)}return m(g)}function _(e){var t,r,n,i,o,s,l,u,c,p,g,y,m,S,_,E=[];for(y=(e=v(e)).length,t=128,r=0,o=72,s=0;s<y;++s)(g=e[s])<128&&E.push(h(g));for(n=i=E.length,i&&E.push("-");n<y;){for(l=a,s=0;s<y;++s)(g=e[s])>=t&&g<l&&(l=g);for(l-t>f((a-r)/(m=n+1))&&d("overflow"),r+=(l-t)*m,t=l,s=0;s<y;++s)if((g=e[s])<t&&++r>a&&d("overflow"),g==t){for(u=r,c=36;!(u<(p=c<=o?1:c>=o+26?26:c-o));c+=36)_=u-p,S=36-p,E.push(h(b(p+_%S,0))),u=f(_/S);E.push(h(b(u,0))),o=w(r,m,n==i),r=0,++n}++r,++t}return E.join("")}s={version:"1.4.1",ucs2:{decode:v,encode:m},decode:S,encode:_,toASCII:function(e){return y(e,(function(e){return u.test(e)?"xn--"+_(e):e}))},toUnicode:function(e){return y(e,(function(e){return l.test(e)?S(e.slice(4).toLowerCase()):e}))}},void 0===(n=function(){return s}.call(t,r,t,e))||(e.exports=n)}()},5442:(e,t,r)=>{"use strict";var n=r(2113);function i(){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}var o=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,a=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,l=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),u=["'"].concat(l),c=["%","/","?",";","#"].concat(u),p=["/","?","#"],f=/^[+a-z0-9A-Z_-]{0,63}$/,h=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,d={javascript:!0,"javascript:":!0},g={javascript:!0,"javascript:":!0},y={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},v=r(5810);function m(e,t,r){if(e&&"object"==typeof e&&e instanceof i)return e;var n=new i;return n.parse(e,t,r),n}i.prototype.parse=function(e,t,r){if("string"!=typeof e)throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var i=e.indexOf("?"),s=-1!==i&&i<e.indexOf("#")?"?":"#",l=e.split(s);l[0]=l[0].replace(/\\/g,"/");var m=e=l.join(s);if(m=m.trim(),!r&&1===e.split("#").length){var b=a.exec(m);if(b)return this.path=m,this.href=m,this.pathname=b[1],b[2]?(this.search=b[2],this.query=t?v.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var w=o.exec(m);if(w){var S=(w=w[0]).toLowerCase();this.protocol=S,m=m.substr(w.length)}if(r||w||m.match(/^\/\/[^@/]+@[^@/]+/)){var _="//"===m.substr(0,2);!_||w&&g[w]||(m=m.substr(2),this.slashes=!0)}if(!g[w]&&(_||w&&!y[w])){for(var E,O,R=-1,T=0;T<p.length;T++){-1!==(j=m.indexOf(p[T]))&&(-1===R||j<R)&&(R=j)}-1!==(O=-1===R?m.lastIndexOf("@"):m.lastIndexOf("@",R))&&(E=m.slice(0,O),m=m.slice(O+1),this.auth=decodeURIComponent(E)),R=-1;for(T=0;T<c.length;T++){var j;-1!==(j=m.indexOf(c[T]))&&(-1===R||j<R)&&(R=j)}-1===R&&(R=m.length),this.host=m.slice(0,R),m=m.slice(R),this.parseHost(),this.hostname=this.hostname||"";var P="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!P)for(var x=this.hostname.split(/\./),A=(T=0,x.length);T<A;T++){var I=x[T];if(I&&!I.match(f)){for(var C="",k=0,M=I.length;k<M;k++)I.charCodeAt(k)>127?C+="x":C+=I[k];if(!C.match(f)){var F=x.slice(0,T),B=x.slice(T+1),D=I.match(h);D&&(F.push(D[1]),B.unshift(D[2])),B.length&&(m="/"+B.join(".")+m),this.hostname=F.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),P||(this.hostname=n.toASCII(this.hostname));var L=this.port?":"+this.port:"",N=this.hostname||"";this.host=N+L,this.href+=this.host,P&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==m[0]&&(m="/"+m))}if(!d[S])for(T=0,A=u.length;T<A;T++){var z=u[T];if(-1!==m.indexOf(z)){var U=encodeURIComponent(z);U===z&&(U=escape(z)),m=m.split(z).join(U)}}var G=m.indexOf("#");-1!==G&&(this.hash=m.substr(G),m=m.slice(0,G));var V=m.indexOf("?");if(-1!==V?(this.search=m.substr(V),this.query=m.substr(V+1),t&&(this.query=v.parse(this.query)),m=m.slice(0,V)):t&&(this.search="",this.query={}),m&&(this.pathname=m),y[S]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){L=this.pathname||"";var W=this.search||"";this.path=L+W}return this.href=this.format(),this},i.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",r=this.pathname||"",n=this.hash||"",i=!1,o="";this.host?i=e+this.host:this.hostname&&(i=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&"object"==typeof this.query&&Object.keys(this.query).length&&(o=v.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var s=this.search||o&&"?"+o||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||y[t])&&!1!==i?(i="//"+(i||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):i||(i=""),n&&"#"!==n.charAt(0)&&(n="#"+n),s&&"?"!==s.charAt(0)&&(s="?"+s),t+i+(r=r.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(s=s.replace("#","%23"))+n},i.prototype.resolve=function(e){return this.resolveObject(m(e,!1,!0)).format()},i.prototype.resolveObject=function(e){if("string"==typeof e){var t=new i;t.parse(e,!1,!0),e=t}for(var r=new i,n=Object.keys(this),o=0;o<n.length;o++){var s=n[o];r[s]=this[s]}if(r.hash=e.hash,""===e.href)return r.href=r.format(),r;if(e.slashes&&!e.protocol){for(var a=Object.keys(e),l=0;l<a.length;l++){var u=a[l];"protocol"!==u&&(r[u]=e[u])}return y[r.protocol]&&r.hostname&&!r.pathname&&(r.pathname="/",r.path=r.pathname),r.href=r.format(),r}if(e.protocol&&e.protocol!==r.protocol){if(!y[e.protocol]){for(var c=Object.keys(e),p=0;p<c.length;p++){var f=c[p];r[f]=e[f]}return r.href=r.format(),r}if(r.protocol=e.protocol,e.host||g[e.protocol])r.pathname=e.pathname;else{for(var h=(e.pathname||"").split("/");h.length&&!(e.host=h.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==h[0]&&h.unshift(""),h.length<2&&h.unshift(""),r.pathname=h.join("/")}if(r.search=e.search,r.query=e.query,r.host=e.host||"",r.auth=e.auth,r.hostname=e.hostname||e.host,r.port=e.port,r.pathname||r.search){var d=r.pathname||"",v=r.search||"";r.path=d+v}return r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var m=r.pathname&&"/"===r.pathname.charAt(0),b=e.host||e.pathname&&"/"===e.pathname.charAt(0),w=b||m||r.host&&e.pathname,S=w,_=r.pathname&&r.pathname.split("/")||[],E=(h=e.pathname&&e.pathname.split("/")||[],r.protocol&&!y[r.protocol]);if(E&&(r.hostname="",r.port=null,r.host&&(""===_[0]?_[0]=r.host:_.unshift(r.host)),r.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===h[0]?h[0]=e.host:h.unshift(e.host)),e.host=null),w=w&&(""===h[0]||""===_[0])),b)r.host=e.host||""===e.host?e.host:r.host,r.hostname=e.hostname||""===e.hostname?e.hostname:r.hostname,r.search=e.search,r.query=e.query,_=h;else if(h.length)_||(_=[]),_.pop(),_=_.concat(h),r.search=e.search,r.query=e.query;else if(null!=e.search){if(E)r.host=_.shift(),r.hostname=r.host,(P=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=P.shift(),r.hostname=P.shift(),r.host=r.hostname);return r.search=e.search,r.query=e.query,null===r.pathname&&null===r.search||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!_.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var O=_.slice(-1)[0],R=(r.host||e.host||_.length>1)&&("."===O||".."===O)||""===O,T=0,j=_.length;j>=0;j--)"."===(O=_[j])?_.splice(j,1):".."===O?(_.splice(j,1),T++):T&&(_.splice(j,1),T--);if(!w&&!S)for(;T--;T)_.unshift("..");!w||""===_[0]||_[0]&&"/"===_[0].charAt(0)||_.unshift(""),R&&"/"!==_.join("/").substr(-1)&&_.push("");var P,x=""===_[0]||_[0]&&"/"===_[0].charAt(0);E&&(r.hostname=x?"":_.length?_.shift():"",r.host=r.hostname,(P=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=P.shift(),r.hostname=P.shift(),r.host=r.hostname));return(w=w||r.host&&_.length)&&!x&&_.unshift(""),_.length>0?r.pathname=_.join("/"):(r.pathname=null,r.path=null),null===r.pathname&&null===r.search||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},i.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},t.parse=m,t.resolve=function(e,t){return m(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?m(e,!1,!0).resolveObject(t):t},t.format=function(e){return"string"==typeof e&&(e=m(e)),e instanceof i?e.format():i.prototype.format.call(e)},t.Url=i},6732:(e,t,r)=>{function n(e){try{if(!r.g.localStorage)return!1}catch(e){return!1}var t=r.g.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}e.exports=function(e,t){if(n("noDeprecation"))return e;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw new Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}}},5272:e=>{e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},1531:(e,t,r)=>{"use strict";var n=r(5387),i=r(2625),o=r(2730),s=r(5943);function a(e){return e.call.bind(e)}var l="undefined"!=typeof BigInt,u="undefined"!=typeof Symbol,c=a(Object.prototype.toString),p=a(Number.prototype.valueOf),f=a(String.prototype.valueOf),h=a(Boolean.prototype.valueOf);if(l)var d=a(BigInt.prototype.valueOf);if(u)var g=a(Symbol.prototype.valueOf);function y(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function v(e){return"[object Map]"===c(e)}function m(e){return"[object Set]"===c(e)}function b(e){return"[object WeakMap]"===c(e)}function w(e){return"[object WeakSet]"===c(e)}function S(e){return"[object ArrayBuffer]"===c(e)}function _(e){return"undefined"!=typeof ArrayBuffer&&(S.working?S(e):e instanceof ArrayBuffer)}function E(e){return"[object DataView]"===c(e)}function O(e){return"undefined"!=typeof DataView&&(E.working?E(e):e instanceof DataView)}t.isArgumentsObject=n,t.isGeneratorFunction=i,t.isTypedArray=s,t.isPromise=function(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},t.isArrayBufferView=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):s(e)||O(e)},t.isUint8Array=function(e){return"Uint8Array"===o(e)},t.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===o(e)},t.isUint16Array=function(e){return"Uint16Array"===o(e)},t.isUint32Array=function(e){return"Uint32Array"===o(e)},t.isInt8Array=function(e){return"Int8Array"===o(e)},t.isInt16Array=function(e){return"Int16Array"===o(e)},t.isInt32Array=function(e){return"Int32Array"===o(e)},t.isFloat32Array=function(e){return"Float32Array"===o(e)},t.isFloat64Array=function(e){return"Float64Array"===o(e)},t.isBigInt64Array=function(e){return"BigInt64Array"===o(e)},t.isBigUint64Array=function(e){return"BigUint64Array"===o(e)},v.working="undefined"!=typeof Map&&v(new Map),t.isMap=function(e){return"undefined"!=typeof Map&&(v.working?v(e):e instanceof Map)},m.working="undefined"!=typeof Set&&m(new Set),t.isSet=function(e){return"undefined"!=typeof Set&&(m.working?m(e):e instanceof Set)},b.working="undefined"!=typeof WeakMap&&b(new WeakMap),t.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(b.working?b(e):e instanceof WeakMap)},w.working="undefined"!=typeof WeakSet&&w(new WeakSet),t.isWeakSet=function(e){return w(e)},S.working="undefined"!=typeof ArrayBuffer&&S(new ArrayBuffer),t.isArrayBuffer=_,E.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&E(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=O;var R="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function T(e){return"[object SharedArrayBuffer]"===c(e)}function j(e){return void 0!==R&&(void 0===T.working&&(T.working=T(new R)),T.working?T(e):e instanceof R)}function P(e){return y(e,p)}function x(e){return y(e,f)}function A(e){return y(e,h)}function I(e){return l&&y(e,d)}function C(e){return u&&y(e,g)}t.isSharedArrayBuffer=j,t.isAsyncFunction=function(e){return"[object AsyncFunction]"===c(e)},t.isMapIterator=function(e){return"[object Map Iterator]"===c(e)},t.isSetIterator=function(e){return"[object Set Iterator]"===c(e)},t.isGeneratorObject=function(e){return"[object Generator]"===c(e)},t.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===c(e)},t.isNumberObject=P,t.isStringObject=x,t.isBooleanObject=A,t.isBigIntObject=I,t.isSymbolObject=C,t.isBoxedPrimitive=function(e){return P(e)||x(e)||A(e)||I(e)||C(e)},t.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(_(e)||j(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})}))},9208:(e,t,r)=>{var n=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++)r[t[n]]=Object.getOwnPropertyDescriptor(e,t[n]);return r},i=/%[sdj%]/g;t.format=function(e){if(!m(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(l(arguments[r]));return t.join(" ")}r=1;for(var n=arguments,o=n.length,s=String(e).replace(i,(function(e){if("%%"===e)return"%";if(r>=o)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}})),a=n[r];r<o;a=n[++r])y(a)||!S(a)?s+=" "+a:s+=" "+l(a);return s},t.deprecate=function(e,r){if("undefined"!=typeof process&&!0===process.noDeprecation)return e;if("undefined"==typeof process)return function(){return t.deprecate(e,r).apply(this,arguments)};var n=!1;return function(){if(!n){if(process.throwDeprecation)throw new Error(r);process.traceDeprecation?console.trace(r):console.error(r),n=!0}return e.apply(this,arguments)}};var o={},s=/^$/;if(process.env.NODE_DEBUG){var a=process.env.NODE_DEBUG;a=a.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),s=new RegExp("^"+a+"$","i")}function l(e,r){var n={seen:[],stylize:c};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),g(r)?n.showHidden=r:r&&t._extend(n,r),b(n.showHidden)&&(n.showHidden=!1),b(n.depth)&&(n.depth=2),b(n.colors)&&(n.colors=!1),b(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=u),p(n,e,n.depth)}function u(e,t){var r=l.styles[t];return r?"["+l.colors[r][0]+"m"+e+"["+l.colors[r][1]+"m":e}function c(e,t){return e}function p(e,r,n){if(e.customInspect&&r&&O(r.inspect)&&r.inspect!==t.inspect&&(!r.constructor||r.constructor.prototype!==r)){var i=r.inspect(n,e);return m(i)||(i=p(e,i,n)),i}var o=function(e,t){if(b(t))return e.stylize("undefined","undefined");if(m(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(v(t))return e.stylize(""+t,"number");if(g(t))return e.stylize(""+t,"boolean");if(y(t))return e.stylize("null","null")}(e,r);if(o)return o;var s=Object.keys(r),a=function(e){var t={};return e.forEach((function(e,r){t[e]=!0})),t}(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(r)),E(r)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return f(r);if(0===s.length){if(O(r)){var l=r.name?": "+r.name:"";return e.stylize("[Function"+l+"]","special")}if(w(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(_(r))return e.stylize(Date.prototype.toString.call(r),"date");if(E(r))return f(r)}var u,c="",S=!1,R=["{","}"];(d(r)&&(S=!0,R=["[","]"]),O(r))&&(c=" [Function"+(r.name?": "+r.name:"")+"]");return w(r)&&(c=" "+RegExp.prototype.toString.call(r)),_(r)&&(c=" "+Date.prototype.toUTCString.call(r)),E(r)&&(c=" "+f(r)),0!==s.length||S&&0!=r.length?n<0?w(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),u=S?function(e,t,r,n,i){for(var o=[],s=0,a=t.length;s<a;++s)x(t,String(s))?o.push(h(e,t,r,n,String(s),!0)):o.push("");return i.forEach((function(i){i.match(/^\d+$/)||o.push(h(e,t,r,n,i,!0))})),o}(e,r,n,a,s):s.map((function(t){return h(e,r,n,a,t,S)})),e.seen.pop(),function(e,t,r){if(e.reduce((function(e,t){return t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1];return r[0]+t+" "+e.join(", ")+" "+r[1]}(u,c,R)):R[0]+c+R[1]}function f(e){return"["+Error.prototype.toString.call(e)+"]"}function h(e,t,r,n,i,o){var s,a,l;if((l=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?a=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(a=e.stylize("[Setter]","special")),x(n,i)||(s="["+i+"]"),a||(e.seen.indexOf(l.value)<0?(a=y(r)?p(e,l.value,null):p(e,l.value,r-1)).indexOf("\n")>-1&&(a=o?a.split("\n").map((function(e){return" "+e})).join("\n").slice(2):"\n"+a.split("\n").map((function(e){return" "+e})).join("\n")):a=e.stylize("[Circular]","special")),b(s)){if(o&&i.match(/^\d+$/))return a;(s=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.slice(1,-1),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+a}function d(e){return Array.isArray(e)}function g(e){return"boolean"==typeof e}function y(e){return null===e}function v(e){return"number"==typeof e}function m(e){return"string"==typeof e}function b(e){return void 0===e}function w(e){return S(e)&&"[object RegExp]"===R(e)}function S(e){return"object"==typeof e&&null!==e}function _(e){return S(e)&&"[object Date]"===R(e)}function E(e){return S(e)&&("[object Error]"===R(e)||e instanceof Error)}function O(e){return"function"==typeof e}function R(e){return Object.prototype.toString.call(e)}function T(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(e=e.toUpperCase(),!o[e])if(s.test(e)){var r=process.pid;o[e]=function(){var n=t.format.apply(t,arguments);console.error("%s %d: %s",e,r,n)}}else o[e]=function(){};return o[e]},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.types=r(1531),t.isArray=d,t.isBoolean=g,t.isNull=y,t.isNullOrUndefined=function(e){return null==e},t.isNumber=v,t.isString=m,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=b,t.isRegExp=w,t.types.isRegExp=w,t.isObject=S,t.isDate=_,t.types.isDate=_,t.isError=E,t.types.isNativeError=E,t.isFunction=O,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(5272);var j=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function P(){var e=new Date,t=[T(e.getHours()),T(e.getMinutes()),T(e.getSeconds())].join(":");return[e.getDate(),j[e.getMonth()],t].join(" ")}function x(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",P(),t.format.apply(t,arguments))},t.inherits=r(5615),t._extend=function(e,t){if(!t||!S(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var A="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function I(e,t){if(!e){var r=new Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(A&&e[A]){var t;if("function"!=typeof(t=e[A]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,A,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,r,n=new Promise((function(e,n){t=e,r=n})),i=[],o=0;o<arguments.length;o++)i.push(arguments[o]);i.push((function(e,n){e?r(e):t(n)}));try{e.apply(this,i)}catch(e){r(e)}return n}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),A&&Object.defineProperty(t,A,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,n(e))},t.promisify.custom=A,t.callbackify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');function t(){for(var t=[],r=0;r<arguments.length;r++)t.push(arguments[r]);var n=t.pop();if("function"!=typeof n)throw new TypeError("The last argument must be of type Function");var i=this,o=function(){return n.apply(i,arguments)};e.apply(this,t).then((function(e){process.nextTick(o.bind(null,null,e))}),(function(e){process.nextTick(I.bind(null,e,o))}))}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,n(e)),t}},2964:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});const n={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let i;const o=new Uint8Array(16);function s(){if(!i&&(i="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!i))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return i(o)}const a=[];for(let e=0;e<256;++e)a.push((e+256).toString(16).slice(1));function l(e,t=0){return a[e[t+0]]+a[e[t+1]]+a[e[t+2]]+a[e[t+3]]+"-"+a[e[t+4]]+a[e[t+5]]+"-"+a[e[t+6]]+a[e[t+7]]+"-"+a[e[t+8]]+a[e[t+9]]+"-"+a[e[t+10]]+a[e[t+11]]+a[e[t+12]]+a[e[t+13]]+a[e[t+14]]+a[e[t+15]]}const u=function(e,t,r){if(n.randomUUID&&!t&&!e)return n.randomUUID();const i=(e=e||{}).random||(e.rng||s)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t){r=r||0;for(let e=0;e<16;++e)t[r+e]=i[e];return t}return l(i)}},2730:(e,t,r)=>{"use strict";var n=r(705),i=r(4834),o=r(8498),s=r(9818),a=r(9336),l=s("Object.prototype.toString"),u=r(1913)(),c="undefined"==typeof globalThis?r.g:globalThis,p=i(),f=s("String.prototype.slice"),h=Object.getPrototypeOf,d=s("Array.prototype.indexOf",!0)||function(e,t){for(var r=0;r<e.length;r+=1)if(e[r]===t)return r;return-1},g={__proto__:null};n(p,u&&a&&h?function(e){var t=new c[e];if(Symbol.toStringTag in t){var r=h(t),n=a(r,Symbol.toStringTag);if(!n){var i=h(r);n=a(i,Symbol.toStringTag)}g["$"+e]=o(n.get)}}:function(e){var t=new c[e],r=t.slice||t.set;r&&(g["$"+e]=o(r))});e.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!u){var t=f(l(e),8,-1);return d(p,t)>-1?t:"Object"===t&&function(e){var t=!1;return n(g,(function(r,n){if(!t)try{r(e),t=f(n,1)}catch(e){}})),t}(e)}return a?function(e){var t=!1;return n(g,(function(r,n){if(!t)try{"$"+r(e)===n&&(t=f(n,1))}catch(e){}})),t}(e):null}},6155:(e,t,r)=>{"use strict";e.exports=r(5700),e.exports.LegacyTransportStream=r(6668)},6668:(e,t,r)=>{"use strict";var n=r(9208),i=r(4966).LEVEL,o=r(5700),s=e.exports=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(o.call(this,e),!e.transport||"function"!=typeof e.transport.log)throw new Error("Invalid transport, must be an object with a log method.");function t(e){this.emit("error",e,this.transport)}this.transport=e.transport,this.level=this.level||e.transport.level,this.handleExceptions=this.handleExceptions||e.transport.handleExceptions,this._deprecated(),this.transport.__winstonError||(this.transport.__winstonError=t.bind(this),this.transport.on("error",this.transport.__winstonError))};n.inherits(s,o),s.prototype._write=function(e,t,r){if(this.silent||!0===e.exception&&!this.handleExceptions)return r(null);(!this.level||this.levels[this.level]>=this.levels[e[i]])&&this.transport.log(e[i],e.message,e,this._nop),r(null)},s.prototype._writev=function(e,t){for(var r=0;r<e.length;r++)this._accept(e[r])&&(this.transport.log(e[r].chunk[i],e[r].chunk.message,e[r].chunk,this._nop),e[r].callback());return t(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("\n"))},s.prototype.close=function(){this.transport.close&&this.transport.close(),this.transport.__winstonError&&(this.transport.removeListener("error",this.transport.__winstonError),this.transport.__winstonError=null)}},5700:(e,t,r)=>{"use strict";var n=r(9208),i=r(5291),o=r(4966).LEVEL,s=e.exports=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i.call(this,{objectMode:!0,highWaterMark:t.highWaterMark}),this.format=t.format,this.level=t.level,this.handleExceptions=t.handleExceptions,this.handleRejections=t.handleRejections,this.silent=t.silent,t.log&&(this.log=t.log),t.logv&&(this.logv=t.logv),t.close&&(this.close=t.close),this.once("pipe",(function(t){e.levels=t.levels,e.parent=t})),this.once("unpipe",(function(t){t===e.parent&&(e.parent=null,e.close&&e.close())}))};n.inherits(s,i),s.prototype._write=function(e,t,r){if(this.silent||!0===e.exception&&!this.handleExceptions)return r(null);var n=this.level||this.parent&&this.parent.level;if(!n||this.levels[n]>=this.levels[e[o]]){if(e&&!this.format)return this.log(e,r);var i=void 0,s=void 0;try{s=this.format.transform(Object.assign({},e),this.format.options)}catch(e){i=e}if(i||!s){if(r(),i)throw i;return}return this.log(s,r)}return this._writableState.sync=!1,r(null)},s.prototype._writev=function(e,t){if(this.logv){var r=e.filter(this._accept,this);return r.length?this.logv(r,t):t(null)}for(var n=0;n<e.length;n++)if(this._accept(e[n]))if(!e[n].chunk||this.format){var i=void 0,o=void 0;try{o=this.format.transform(Object.assign({},e[n].chunk),this.format.options)}catch(e){i=e}if(i||!o){if(e[n].callback(),i)throw t(null),i}else this.log(o,e[n].callback)}else this.log(e[n].chunk,e[n].callback);return t(null)},s.prototype._accept=function(e){var t=e.chunk;if(this.silent)return!1;var r=this.level||this.parent&&this.parent.level;return!(!0!==t.exception&&r&&!(this.levels[r]>=this.levels[t[o]])||!this.handleExceptions&&!0===t.exception)},s.prototype._nop=function(){}},1127:(e,t,r)=>{"use strict";const n=r(9208),{LEVEL:i}=r(4966),o=r(4927),s=e.exports=function(e={}){if(o.call(this,e),!e.transport||"function"!=typeof e.transport.log)throw new Error("Invalid transport, must be an object with a log method.");this.transport=e.transport,this.level=this.level||e.transport.level,this.handleExceptions=this.handleExceptions||e.transport.handleExceptions,this._deprecated(),this.transport.__winstonError||(this.transport.__winstonError=function(e){this.emit("error",e,this.transport)}.bind(this),this.transport.on("error",this.transport.__winstonError))};n.inherits(s,o),s.prototype._write=function(e,t,r){if(this.silent||!0===e.exception&&!this.handleExceptions)return r(null);(!this.level||this.levels[this.level]>=this.levels[e[i]])&&this.transport.log(e[i],e.message,e,this._nop),r(null)},s.prototype._writev=function(e,t){for(let t=0;t<e.length;t++)this._accept(e[t])&&(this.transport.log(e[t].chunk[i],e[t].chunk.message,e[t].chunk,this._nop),e[t].callback());return t(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("\n"))},s.prototype.close=function(){this.transport.close&&this.transport.close(),this.transport.__winstonError&&(this.transport.removeListener("error",this.transport.__winstonError),this.transport.__winstonError=null)}},4927:(e,t,r)=>{"use strict";const n=r(9208),i=r(5291),{LEVEL:o}=r(4966),s=e.exports=function(e={}){i.call(this,{objectMode:!0,highWaterMark:e.highWaterMark}),this.format=e.format,this.level=e.level,this.handleExceptions=e.handleExceptions,this.handleRejections=e.handleRejections,this.silent=e.silent,e.log&&(this.log=e.log),e.logv&&(this.logv=e.logv),e.close&&(this.close=e.close),this.once("pipe",e=>{this.levels=e.levels,this.parent=e}),this.once("unpipe",e=>{e===this.parent&&(this.parent=null,this.close&&this.close())})};n.inherits(s,i),s.prototype._write=function(e,t,r){if(this.silent||!0===e.exception&&!this.handleExceptions)return r(null);const n=this.level||this.parent&&this.parent.level;if(!n||this.levels[n]>=this.levels[e[o]]){if(e&&!this.format)return this.log(e,r);let t,n;try{n=this.format.transform(Object.assign({},e),this.format.options)}catch(e){t=e}if(t||!n){if(r(),t)throw t;return}return this.log(n,r)}return this._writableState.sync=!1,r(null)},s.prototype._writev=function(e,t){if(this.logv){const r=e.filter(this._accept,this);return r.length?this.logv(r,t):t(null)}for(let r=0;r<e.length;r++){if(!this._accept(e[r]))continue;if(e[r].chunk&&!this.format){this.log(e[r].chunk,e[r].callback);continue}let n,i;try{i=this.format.transform(Object.assign({},e[r].chunk),this.format.options)}catch(e){n=e}if(n||!i){if(e[r].callback(),n)throw t(null),n}else this.log(i,e[r].callback)}return t(null)},s.prototype._accept=function(e){const t=e.chunk;if(this.silent)return!1;const r=this.level||this.parent&&this.parent.level;return!(!0!==t.exception&&r&&!(this.levels[r]>=this.levels[t[o]])||!this.handleExceptions&&!0===t.exception)},s.prototype._nop=function(){}},6563:(e,t,r)=>{"use strict";var n=r(8911),i=r(1735).warn;t.version=r(7241).version,t.transports=r(3307),t.config=r(9127),t.addColors=n.levels,t.format=n.format,t.createLogger=r(8727),t.Logger=r(2162),t.ExceptionHandler=r(8624),t.RejectionHandler=r(8846),t.Container=r(9456),t.Transport=r(6155),t.loggers=new t.Container;var o=t.createLogger();Object.keys(t.config.npm.levels).concat(["log","query","stream","add","remove","clear","profile","startTimer","handleExceptions","unhandleExceptions","handleRejections","unhandleRejections","configure","child"]).forEach((function(e){return t[e]=function(){return o[e].apply(o,arguments)}})),Object.defineProperty(t,"level",{get:function(){return o.level},set:function(e){o.level=e}}),Object.defineProperty(t,"exceptions",{get:function(){return o.exceptions}}),Object.defineProperty(t,"rejections",{get:function(){return o.rejections}}),["exitOnError"].forEach((function(e){Object.defineProperty(t,e,{get:function(){return o[e]},set:function(t){o[e]=t}})})),Object.defineProperty(t,"default",{get:function(){return{exceptionHandlers:o.exceptionHandlers,rejectionHandlers:o.rejectionHandlers,transports:o.transports}}}),i.deprecated(t,"setLevels"),i.forFunctions(t,"useFormat",["cli"]),i.forProperties(t,"useFormat",["padLevels","stripColors"]),i.forFunctions(t,"deprecated",["addRewriter","addFilter","clone","extend"]),i.forProperties(t,"deprecated",["emitErrs","levelLength"])},1735:(e,t,r)=>{"use strict";var n=r(9208).format;t.warn={deprecated:function(e){return function(){throw new Error(n("{ %s } was removed in winston@3.0.0.",e))}},useFormat:function(e){return function(){throw new Error([n("{ %s } was removed in winston@3.0.0.",e),"Use a custom winston.format = winston.format(function) instead."].join("\n"))}},forFunctions:function(e,r,n){n.forEach((function(n){e[n]=t.warn[r](n)}))},forProperties:function(e,r,n){n.forEach((function(n){var i=t.warn[r](n);Object.defineProperty(e,n,{get:i,set:i})}))}}},9127:(e,t,r)=>{"use strict";var n=r(8911),i=r(4966).configs;t.cli=n.levels(i.cli),t.npm=n.levels(i.npm),t.syslog=n.levels(i.syslog),t.addColors=n.levels},9456:(e,t,r)=>{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,s(n.key),n)}}function s(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}var a=r(8727);e.exports=function(){return e=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i(this,e),this.loggers=new Map,this.options=t},(t=[{key:"add",value:function(e,t){var r=this;if(!this.loggers.has(e)){var n=(t=Object.assign({},t||this.options)).transports||this.options.transports;t.transports=n?Array.isArray(n)?n.slice():[n]:[];var i=a(t);i.on("close",(function(){return r._delete(e)})),this.loggers.set(e,i)}return this.loggers.get(e)}},{key:"get",value:function(e,t){return this.add(e,t)}},{key:"has",value:function(e){return!!this.loggers.has(e)}},{key:"close",value:function(e){var t=this;if(e)return this._removeLogger(e);this.loggers.forEach((function(e,r){return t._removeLogger(r)}))}},{key:"_removeLogger",value:function(e){this.loggers.has(e)&&(this.loggers.get(e).close(),this._delete(e))}},{key:"_delete",value:function(e){this.loggers.delete(e)}}])&&o(e.prototype,t),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}()},8727:(e,t,r)=>{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,s(n.key),n)}}function o(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function s(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t,r){return t=u(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],u(e).constructor):t.apply(e,r))}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}function p(e,t){return(p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var f=r(4966).LEVEL,h=r(9127),d=r(2162),g=r(7147)("winston:create-logger");function y(e){return"is"+e.charAt(0).toUpperCase()+e.slice(1)+"Enabled"}e.exports=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.levels=e.levels||h.npm.levels;var t=function(e){function t(e){return a(this,t),l(this,t,[e])}return c(t,e),o(t)}(d),r=new t(e);return Object.keys(e.levels).forEach((function(e){g('Define prototype method for "%s"',e),"log"!==e?(t.prototype[e]=function(){for(var t=this||r,n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];if(1===i.length){var s=i[0],a=s&&s.message&&s||{message:s};return a.level=a[f]=e,t._addDefaultMeta(a),t.write(a),this||r}return 0===i.length?(t.log(e,""),t):t.log.apply(t,[e].concat(i))},t.prototype[y(e)]=function(){return(this||r).isLevelEnabled(e)}):console.warn('Level "log" not defined: conflicts with the method "log". Use a different level name.')})),r}},8624:(e,t,r)=>{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,o(n.key),n)}}function o(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}var s=r(2213),a=r(5236),l=r(7147)("winston:exception"),u=r(960),c=r(5082),p=r(9422);e.exports=function(){return e=function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t)throw new Error("Logger is required to handle exceptions");this.logger=t,this.handlers=new Map},(t=[{key:"handle",value:function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];r.forEach((function(t){if(Array.isArray(t))return t.forEach((function(t){return e._addHandler(t)}));e._addHandler(t)})),this.catcher||(this.catcher=this._uncaughtException.bind(this),process.on("uncaughtException",this.catcher))}},{key:"unhandle",value:function(){var e=this;this.catcher&&(process.removeListener("uncaughtException",this.catcher),this.catcher=!1,Array.from(this.handlers.values()).forEach((function(t){return e.logger.unpipe(t)})))}},{key:"getAllInfo",value:function(e){var t=null;return e&&(t="string"==typeof e?e:e.message),{error:e,level:"error",message:["uncaughtException: ".concat(t||"(no error message)"),e&&e.stack||" No stack trace"].join("\n"),stack:e&&e.stack,exception:!0,date:(new Date).toString(),process:this.getProcessInfo(),os:this.getOsInfo(),trace:this.getTrace(e)}}},{key:"getProcessInfo",value:function(){return{pid:process.pid,uid:process.getuid?process.getuid():null,gid:process.getgid?process.getgid():null,cwd:process.cwd(),execPath:process.execPath,version:process.version,argv:process.argv,memoryUsage:process.memoryUsage()}}},{key:"getOsInfo",value:function(){return{loadavg:s.loadavg(),uptime:s.uptime()}}},{key:"getTrace",value:function(e){return(e?c.parse(e):c.get()).map((function(e){return{column:e.getColumnNumber(),file:e.getFileName(),function:e.getFunctionName(),line:e.getLineNumber(),method:e.getMethodName(),native:e.isNative()}}))}},{key:"_addHandler",value:function(e){if(!this.handlers.has(e)){e.handleExceptions=!0;var t=new p(e);this.handlers.set(e,t),this.logger.pipe(t)}}},{key:"_uncaughtException",value:function(e){var t,r=this.getAllInfo(e),n=this._getExceptionHandlers(),i="function"==typeof this.logger.exitOnError?this.logger.exitOnError(e):this.logger.exitOnError;function o(){l("doExit",i),l("process._exiting",process._exiting),i&&!process._exiting&&(t&&clearTimeout(t),process.exit(1))}if(!n.length&&i&&(console.warn("winston: exitOnError cannot be true with no exception handlers."),console.warn("winston: not exiting process."),i=!1),!n||0===n.length)return process.nextTick(o);a(n,(function(e,t){var r=u(t),n=e.transport||e;function i(e){return function(){l(e),r()}}n._ending=!0,n.once("finish",i("finished")),n.once("error",i("error"))}),(function(){return i&&o()})),this.logger.log(r),i&&(t=setTimeout(o,3e3))}},{key:"_getExceptionHandlers",value:function(){return this.logger.transports.filter((function(e){return(e.transport||e).handleExceptions}))}}])&&i(e.prototype,t),r&&i(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}()},9422:(e,t,r)=>{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,o(n.key),n)}}function o(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}function s(e,t,r){return t=a(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],a(e).constructor):t.apply(e,r))}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function l(e,t){return(l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var u=r(4156).Writable;e.exports=function(e){function t(e){var r;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),r=s(this,t,[{objectMode:!0}]),!e)throw new Error("ExceptionStream requires a TransportStream instance.");return r.handleExceptions=!0,r.transport=e,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(t,e),r=t,(n=[{key:"_write",value:function(e,t,r){return e.exception?this.transport.log(e,r):(r(),!0)}}])&&i(r.prototype,n),o&&i(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}(u)},2162:(e,t,r)=>{"use strict";function n(e,t,r){return(t=s(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,s(n.key),n)}}function s(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==i(t)?t:t+""}function a(e,t,r){return t=l(t),function(e,t){if(t&&("object"==i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],l(e).constructor):t.apply(e,r))}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t){return(u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var c=r(4156),p=c.Stream,f=c.Transform,h=r(5236),d=r(4966),g=d.LEVEL,y=d.SPLAT,v=r(6605),m=r(8624),b=r(8846),w=r(1127),S=r(2535),_=r(1735).warn,E=r(9127),O=/%[scdjifoO%]/g,R=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=a(this,t,[{objectMode:!0}])).configure(e),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(t,e),s=t,(l=[{key:"child",value:function(e){var t=this;return Object.create(t,{write:{value:function(r){var n=Object.assign({},e,r);r instanceof Error&&(n.stack=r.stack,n.message=r.message),t.write(n)}}})}},{key:"configure",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.silent,i=t.format,o=t.defaultMeta,s=t.levels,a=t.level,l=void 0===a?"info":a,u=t.exitOnError,c=void 0===u||u,p=t.transports,f=t.colors,h=t.emitErrs,d=t.formatters,g=t.padLevels,y=t.rewriters,v=t.stripColors,w=t.exceptionHandlers,S=t.rejectionHandlers;if(this.transports.length&&this.clear(),this.silent=n,this.format=i||this.format||r(2598)(),this.defaultMeta=o||null,this.levels=s||this.levels||E.npm.levels,this.level=l,this.exceptions&&this.exceptions.unhandle(),this.rejections&&this.rejections.unhandle(),this.exceptions=new m(this),this.rejections=new b(this),this.profilers={},this.exitOnError=c,p&&(p=Array.isArray(p)?p:[p]).forEach((function(t){return e.add(t)})),f||h||d||g||y||v)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("\n"));w&&this.exceptions.handle(w),S&&this.rejections.handle(S)}},{key:"isLevelEnabled",value:function(e){var t=this,r=T(this.levels,e);if(null===r)return!1;var n=T(this.levels,this.level);return null!==n&&(this.transports&&0!==this.transports.length?-1!==this.transports.findIndex((function(e){var i=T(t.levels,e.level);return null===i&&(i=n),i>=r})):n>=r)}},{key:"log",value:function(e,t){for(var r=arguments.length,o=new Array(r>2?r-2:0),s=2;s<r;s++)o[s-2]=arguments[s];if(1===arguments.length)return e[g]=e.level,this._addDefaultMeta(e),this.write(e),this;if(2===arguments.length)return t&&"object"===i(t)?(t[g]=t.level=e,this._addDefaultMeta(t),this.write(t),this):(t=n(n(n({},g,e),"level",e),"message",t),this._addDefaultMeta(t),this.write(t),this);var a=o[0];if("object"===i(a)&&null!==a){var l=t&&t.match&&t.match(O);if(!l){var u=Object.assign({},this.defaultMeta,a,n(n(n(n({},g,e),y,o),"level",e),"message",t));return a.message&&(u.message="".concat(u.message," ").concat(a.message)),a.stack&&(u.stack=a.stack),this.write(u),this}}return this.write(Object.assign({},this.defaultMeta,n(n(n(n({},g,e),y,o),"level",e),"message",t))),this}},{key:"_transform",value:function(e,t,r){if(this.silent)return r();e[g]||(e[g]=e.level),this.levels[e[g]]||0===this.levels[e[g]]||console.error("[winston] Unknown logger level: %s",e[g]),this._readableState.pipes||console.error("[winston] Attempt to write logs with no transports, which can increase memory usage: %j",e);try{this.push(this.format.transform(e,this.format.options))}finally{this._writableState.sync=!1,r()}}},{key:"_final",value:function(e){var t=this.transports.slice();h(t,(function(e,t){if(!e||e.finished)return setImmediate(t);e.once("finish",t),e.end()}),e)}},{key:"add",value:function(e){var t=!v(e)||e.log.length>2?new w({transport:e}):e;if(!t._writableState||!t._writableState.objectMode)throw new Error("Transports must WritableStreams in objectMode. Set { objectMode: true }.");return this._onEvent("error",t),this._onEvent("warn",t),this.pipe(t),e.handleExceptions&&this.exceptions.handle(),e.handleRejections&&this.rejections.handle(),this}},{key:"remove",value:function(e){if(!e)return this;var t=e;return(!v(e)||e.log.length>2)&&(t=this.transports.filter((function(t){return t.transport===e}))[0]),t&&this.unpipe(t),this}},{key:"clear",value:function(){return this.unpipe(),this}},{key:"close",value:function(){return this.exceptions.unhandle(),this.rejections.unhandle(),this.clear(),this.emit("close"),this}},{key:"setLevels",value:function(){_.deprecated("setLevels")}},{key:"query",value:function(e,t){"function"==typeof e&&(t=e,e={}),e=e||{};var r={},n=Object.assign({},e.query||{});h(this.transports.filter((function(e){return!!e.query})),(function(t,i){!function(t,r){e.query&&"function"==typeof t.formatQuery&&(e.query=t.formatQuery(n)),t.query(e,(function(n,i){if(n)return r(n);"function"==typeof t.formatResults&&(i=t.formatResults(i,e.format)),r(null,i)}))}(t,(function(e,n){i&&((n=e||n)&&(r[t.name]=n),i()),i=null}))}),(function(){return t(null,r)}))}},{key:"stream",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new p,r=[];return t._streams=r,t.destroy=function(){for(var e=r.length;e--;)r[e].destroy()},this.transports.filter((function(e){return!!e.stream})).forEach((function(n){var i=n.stream(e);i&&(r.push(i),i.on("log",(function(e){e.transport=e.transport||[],e.transport.push(n.name),t.emit("log",e)})),i.on("error",(function(e){e.transport=e.transport||[],e.transport.push(n.name),t.emit("error",e)})))})),t}},{key:"startTimer",value:function(){return new S(this)}},{key:"profile",value:function(e){var t=Date.now();if(this.profilers[e]){var r=this.profilers[e];delete this.profilers[e];for(var n=arguments.length,o=new Array(n>1?n-1:0),s=1;s<n;s++)o[s-1]=arguments[s];"function"==typeof o[o.length-2]&&(console.warn("Callback function no longer supported as of winston@3.0.0"),o.pop());var a="object"===i(o[o.length-1])?o.pop():{};return a.level=a.level||"info",a.durationMs=t-r,a.message=a.message||e,this.write(a)}return this.profilers[e]=t,this}},{key:"handleExceptions",value:function(){var e;console.warn("Deprecated: .handleExceptions() will be removed in winston@4. Use .exceptions.handle()"),(e=this.exceptions).handle.apply(e,arguments)}},{key:"unhandleExceptions",value:function(){var e;console.warn("Deprecated: .unhandleExceptions() will be removed in winston@4. Use .exceptions.unhandle()"),(e=this.exceptions).unhandle.apply(e,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("\n"))}},{key:"_onEvent",value:function(e,t){t["__winston"+e]||(t["__winston"+e]=function(r){"error"!==e||this.transports.includes(t)||this.add(t),this.emit(e,r,t)}.bind(this),t.on(e,t["__winston"+e]))}},{key:"_addDefaultMeta",value:function(e){this.defaultMeta&&Object.assign(e,this.defaultMeta)}}])&&o(s.prototype,l),c&&o(s,c),Object.defineProperty(s,"prototype",{writable:!1}),s;var s,l,c}(f);function T(e,t){var r=e[t];return r||0===r?r:null}Object.defineProperty(R.prototype,"transports",{configurable:!1,enumerable:!0,get:function(){var e=this._readableState.pipes;return Array.isArray(e)?e:[e].filter(Boolean)}}),e.exports=R},2535:(e,t,r)=>{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,o(n.key),n)}}function o(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}var s=function(){return e=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var i=r(2162);if("object"!==n(t)||Array.isArray(t)||!(t instanceof i))throw new Error("Logger is required for profiling");this.logger=t,this.start=Date.now()},(t=[{key:"done",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];"function"==typeof t[t.length-1]&&(console.warn("Callback function no longer supported as of winston@3.0.0"),t.pop());var i="object"===n(t[t.length-1])?t.pop():{};return i.level=i.level||"info",i.durationMs=Date.now()-this.start,this.logger.write(i)}}])&&i(e.prototype,t),o&&i(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,o}();e.exports=s},8846:(e,t,r)=>{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,o(n.key),n)}}function o(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}var s=r(2213),a=r(5236),l=r(7147)("winston:rejection"),u=r(960),c=r(5082),p=r(888);e.exports=function(){return e=function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t)throw new Error("Logger is required to handle rejections");this.logger=t,this.handlers=new Map},(t=[{key:"handle",value:function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];r.forEach((function(t){if(Array.isArray(t))return t.forEach((function(t){return e._addHandler(t)}));e._addHandler(t)})),this.catcher||(this.catcher=this._unhandledRejection.bind(this),process.on("unhandledRejection",this.catcher))}},{key:"unhandle",value:function(){var e=this;this.catcher&&(process.removeListener("unhandledRejection",this.catcher),this.catcher=!1,Array.from(this.handlers.values()).forEach((function(t){return e.logger.unpipe(t)})))}},{key:"getAllInfo",value:function(e){var t=null;return e&&(t="string"==typeof e?e:e.message),{error:e,level:"error",message:["unhandledRejection: ".concat(t||"(no error message)"),e&&e.stack||" No stack trace"].join("\n"),stack:e&&e.stack,rejection:!0,date:(new Date).toString(),process:this.getProcessInfo(),os:this.getOsInfo(),trace:this.getTrace(e)}}},{key:"getProcessInfo",value:function(){return{pid:process.pid,uid:process.getuid?process.getuid():null,gid:process.getgid?process.getgid():null,cwd:process.cwd(),execPath:process.execPath,version:process.version,argv:process.argv,memoryUsage:process.memoryUsage()}}},{key:"getOsInfo",value:function(){return{loadavg:s.loadavg(),uptime:s.uptime()}}},{key:"getTrace",value:function(e){return(e?c.parse(e):c.get()).map((function(e){return{column:e.getColumnNumber(),file:e.getFileName(),function:e.getFunctionName(),line:e.getLineNumber(),method:e.getMethodName(),native:e.isNative()}}))}},{key:"_addHandler",value:function(e){if(!this.handlers.has(e)){e.handleRejections=!0;var t=new p(e);this.handlers.set(e,t),this.logger.pipe(t)}}},{key:"_unhandledRejection",value:function(e){var t,r=this.getAllInfo(e),n=this._getRejectionHandlers(),i="function"==typeof this.logger.exitOnError?this.logger.exitOnError(e):this.logger.exitOnError;function o(){l("doExit",i),l("process._exiting",process._exiting),i&&!process._exiting&&(t&&clearTimeout(t),process.exit(1))}if(!n.length&&i&&(console.warn("winston: exitOnError cannot be true with no rejection handlers."),console.warn("winston: not exiting process."),i=!1),!n||0===n.length)return process.nextTick(o);a(n,(function(e,t){var r=u(t),n=e.transport||e;function i(e){return function(){l(e),r()}}n._ending=!0,n.once("finish",i("finished")),n.once("error",i("error"))}),(function(){return i&&o()})),this.logger.log(r),i&&(t=setTimeout(o,3e3))}},{key:"_getRejectionHandlers",value:function(){return this.logger.transports.filter((function(e){return(e.transport||e).handleRejections}))}}])&&i(e.prototype,t),r&&i(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}()},888:(e,t,r)=>{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,o(n.key),n)}}function o(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}function s(e,t,r){return t=a(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],a(e).constructor):t.apply(e,r))}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function l(e,t){return(l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var u=r(4156).Writable;e.exports=function(e){function t(e){var r;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),r=s(this,t,[{objectMode:!0}]),!e)throw new Error("RejectionStream requires a TransportStream instance.");return r.handleRejections=!0,r.transport=e,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(t,e),r=t,(n=[{key:"_write",value:function(e,t,r){return e.rejection?this.transport.log(e,r):(r(),!0)}}])&&i(r.prototype,n),o&&i(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}(u)},2879:(e,t,r)=>{"use strict";var n=r(2627),i=r(8888).StringDecoder,o=r(4156).Stream;function s(){}e.exports=function(e,t){var r=Buffer.alloc(65536),a=new i("utf8"),l=new o,u="",c=0,p=0;return-1===e.start&&delete e.start,l.readable=!0,l.destroy=function(){l.destroyed=!0,l.emit("end"),l.emit("close")},n.open(e.file,"a+","0644",(function(i,o){if(i)return t?t(i):l.emit("error",i),void l.destroy();!function i(){if(!l.destroyed)return n.read(o,r,0,r.length,c,(function(n,o){if(n)return t?t(n):l.emit("error",n),void l.destroy();if(!o)return u&&((null==e.start||p>e.start)&&(t?t(null,u):l.emit("line",u)),p++,u=""),setTimeout(i,1e3);var s=a.write(r.slice(0,o));t||l.emit("data",s);for(var f=(s=(u+s).split(/\n+/)).length-1,h=0;h<f;h++)(null==e.start||p>e.start)&&(t?t(null,s[h]):l.emit("line",s[h])),p++;return u=s[f],c+=o,i()}));n.close(o,s)}()})),t?l.destroy:l}},810:(e,t,r)=>{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,s(n.key),n)}}function s(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}function a(e,t,r){return t=l(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],l(e).constructor):t.apply(e,r))}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t){return(u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var c=r(2213),p=r(4966),f=p.LEVEL,h=p.MESSAGE,d=r(6155);e.exports=function(e){function t(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return i(this,t),(e=a(this,t,[r])).name=r.name||"console",e.stderrLevels=e._stringArrayToSet(r.stderrLevels),e.consoleWarnLevels=e._stringArrayToSet(r.consoleWarnLevels),e.eol="string"==typeof r.eol?r.eol:c.EOL,e.setMaxListeners(30),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(t,e),r=t,(n=[{key:"log",value:function(e,t){var r=this;return setImmediate((function(){return r.emit("logged",e)})),this.stderrLevels[e[f]]?(console._stderr?console._stderr.write("".concat(e[h]).concat(this.eol)):console.error(e[h]),void(t&&t())):this.consoleWarnLevels[e[f]]?(console._stderr?console._stderr.write("".concat(e[h]).concat(this.eol)):console.warn(e[h]),void(t&&t())):(console._stdout?console._stdout.write("".concat(e[h]).concat(this.eol)):console.log(e[h]),void(t&&t()))}},{key:"_stringArrayToSet",value:function(e,t){if(!e)return{};if(t=t||"Cannot make set from type other than Array of string elements",!Array.isArray(e))throw new Error(t);return e.reduce((function(e,r){if("string"!=typeof r)throw new Error(t);return e[r]=!0,e}),{})}}])&&o(r.prototype,n),s&&o(r,s),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,s}(d)},3329:(e,t,r)=>{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,s(n.key),n)}}function s(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}function a(e,t,r){return t=l(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],l(e).constructor):t.apply(e,r))}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t){return(u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var c=r(9256),p=r(8558),f=r(481),h=r(7946),d=r(4966).MESSAGE,g=r(4156),y=g.Stream,v=g.PassThrough,m=r(6155),b=r(7147)("winston:file"),w=r(2213),S=r(2879);e.exports=function(e){function t(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};function n(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];n.slice(1).forEach((function(t){if(r[t])throw new Error("Cannot set ".concat(t," and ").concat(e," together"))}))}if(i(this,t),(e=a(this,t,[r])).name=r.name||"file",e._stream=new v,e._stream.setMaxListeners(30),e._onError=e._onError.bind(e),r.filename||r.dirname)n("filename or dirname","stream"),e._basename=e.filename=r.filename?p.basename(r.filename):"winston.log",e.dirname=r.dirname||p.dirname(r.filename),e.options=r.options||{flags:"a"};else{if(!r.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"),n("stream","filename","maxsize"),e._dest=e._stream.pipe(e._setupStream(r.stream)),e.dirname=p.dirname(e._dest.path)}return e.maxsize=r.maxsize||null,e.rotationFormat=r.rotationFormat||!1,e.zippedArchive=r.zippedArchive||!1,e.maxFiles=r.maxFiles||null,e.eol="string"==typeof r.eol?r.eol:w.EOL,e.tailable=r.tailable||!1,e.lazy=r.lazy||!1,e._size=0,e._pendingSize=0,e._created=0,e._drain=!1,e._opening=!1,e._ending=!1,e._fileExist=!1,e.dirname&&e._createLogDirIfNotExist(e.dirname),e.lazy||e.open(),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(t,e),r=t,(s=[{key:"finishIfEnding",value:function(){var e=this;this._ending&&(this._opening?this.once("open",(function(){e._stream.once("finish",(function(){return e.emit("finish")})),setImmediate((function(){return e._stream.end()}))})):(this._stream.once("finish",(function(){return e.emit("finish")})),setImmediate((function(){return e._stream.end()}))))}},{key:"log",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};if(this.silent)return r(),!0;if(this._drain)this._stream.once("drain",(function(){t._drain=!1,t.log(e,r)}));else{if(!this._rotate){if(this.lazy){if(!this._fileExist)return this._opening||this.open(),void this.once("open",(function(){t._fileExist=!0,t.log(e,r)}));if(this._needsNewFile(this._pendingSize))return void this._dest.once("close",(function(){t._opening||t.open(),t.once("open",(function(){t.log(e,r)}))}))}var n="".concat(e[d]).concat(this.eol),i=Buffer.byteLength(n);this._pendingSize+=i,this._opening&&!this.rotatedWhileOpening&&this._needsNewFile(this._size+this._pendingSize)&&(this.rotatedWhileOpening=!0);var o=this._stream.write(n,s.bind(this));return o?r():(this._drain=!0,this._stream.once("drain",(function(){t._drain=!1,r()}))),b("written",o,this._drain),this.finishIfEnding(),o}this._stream.once("rotate",(function(){t._rotate=!1,t.log(e,r)}))}function s(){var t=this;this._size+=i,this._pendingSize-=i,b("logged %s %s",this._size,n),this.emit("logged",e),this._rotate||this._opening||this._needsNewFile()&&(this.lazy?this._endStream((function(){t.emit("fileclosed")})):(this._rotate=!0,this._endStream((function(){return t._rotateFile()}))))}}},{key:"query",value:function(e,t){"function"==typeof e&&(t=e,e={}),e=function(e){return(e=e||{}).rows=e.rows||e.limit||10,e.start=e.start||0,e.until=e.until||new Date,"object"!==n(e.until)&&(e.until=new Date(e.until)),e.from=e.from||e.until-864e5,"object"!==n(e.from)&&(e.from=new Date(e.from)),e.order=e.order||"desc",e}(e);var r=p.join(this.dirname,this.filename),i="",o=[],s=0,a=c.createReadStream(r,{encoding:"utf8"});function l(t,r){try{var i=JSON.parse(t);(function(t){if(t&&"object"===n(t)){var r=new Date(t.timestamp);if(!(e.from&&r<e.from||e.until&&r>e.until||e.level&&e.level!==t.level))return!0}})(i)&&function(t){e.rows&&o.length>=e.rows&&"desc"!==e.order?a.readable&&a.destroy():(e.fields&&(t=e.fields.reduce((function(e,r){return e[r]=t[r],e}),{})),"desc"===e.order&&o.length>=e.rows&&o.shift(),o.push(t))}(i)}catch(e){r||a.emit("error",e)}}a.on("error",(function(e){if(a.readable&&a.destroy(),t)return"ENOENT"!==e.code?t(e):t(null,o)})),a.on("data",(function(t){for(var r=(t=(i+t).split(/\n+/)).length-1,n=0;n<r;n++)(!e.start||s>=e.start)&&l(t[n]),s++;i=t[r]})),a.on("close",(function(){i&&l(i,!0),"desc"===e.order&&(o=o.reverse()),t&&t(null,o)}))}},{key:"stream",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=p.join(this.dirname,this.filename),r=new y,n={file:t,start:e.start};return r.destroy=S(n,(function(e,t){if(e)return r.emit("error",e);try{r.emit("data",t),t=JSON.parse(t),r.emit("log",t)}catch(e){r.emit("error",e)}})),r}},{key:"open",value:function(){var e=this;this.filename&&(this._opening||(this._opening=!0,this.stat((function(t,r){if(t)return e.emit("error",t);b("stat done: %s { size: %s }",e.filename,r),e._size=r,e._dest=e._createStream(e._stream),e._opening=!1,e.once("open",(function(){e._stream.eventNames().includes("rotate")?e._stream.emit("rotate"):e._rotate=!1}))}))))}},{key:"stat",value:function(e){var t=this,r=this._getFile(),n=p.join(this.dirname,r);c.stat(n,(function(i,o){return i&&"ENOENT"===i.code?(b("ENOENT ok",n),t.filename=r,e(null,0)):i?(b("err ".concat(i.code," ").concat(n)),e(i)):!o||t._needsNewFile(o.size)?t._incFile((function(){return t.stat(e)})):(t.filename=r,void e(null,o.size))}))}},{key:"close",value:function(e){var t=this;this._stream&&this._stream.end((function(){e&&e(),t.emit("flush"),t.emit("closed")}))}},{key:"_needsNewFile",value:function(e){return e=e||this._size,this.maxsize&&e>=this.maxsize}},{key:"_onError",value:function(e){this.emit("error",e)}},{key:"_setupStream",value:function(e){return e.on("error",this._onError),e}},{key:"_cleanupStream",value:function(e){return e.removeListener("error",this._onError),e.destroy(),e}},{key:"_rotateFile",value:function(){var e=this;this._incFile((function(){return e.open()}))}},{key:"_endStream",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){};this._dest?(this._stream.unpipe(this._dest),this._dest.end((function(){e._cleanupStream(e._dest),t()}))):t()}},{key:"_createStream",value:function(e){var t=this,r=p.join(this.dirname,this.filename);b("create stream start",r,this.options);var n=c.createWriteStream(r,this.options).on("error",(function(e){return b(e)})).on("close",(function(){return b("close",n.path,n.bytesWritten)})).on("open",(function(){b("file open ok",r),t.emit("open",r),e.pipe(n),t.rotatedWhileOpening&&(t._stream=new v,t._stream.setMaxListeners(30),t._rotateFile(),t.rotatedWhileOpening=!1,t._cleanupStream(n),e.end())}));return b("create stream ok",r),n}},{key:"_incFile",value:function(e){b("_incFile",this.filename);var t=p.extname(this._basename),r=p.basename(this._basename,t),n=[];this.zippedArchive&&n.push(function(e){var n=this._created>0&&!this.tailable?this._created:"";this._compressFile(p.join(this.dirname,"".concat(r).concat(n).concat(t)),p.join(this.dirname,"".concat(r).concat(n).concat(t,".gz")),e)}.bind(this)),n.push(function(e){this.tailable?this._checkMaxFilesTailable(t,r,e):(this._created+=1,this._checkMaxFilesIncrementing(t,r,e))}.bind(this)),f(n,e)}},{key:"_getFile",value:function(){var e=p.extname(this._basename),t=p.basename(this._basename,e),r=this.rotationFormat?this.rotationFormat():this._created;return!this.tailable&&this._created?"".concat(t).concat(r).concat(e):"".concat(t).concat(e)}},{key:"_checkMaxFilesIncrementing",value:function(e,t,r){if(!this.maxFiles||this._created<this.maxFiles)return setImmediate(r);var n=this._created-this.maxFiles,i=0!==n?n:"",o=this.zippedArchive?".gz":"",s="".concat(t).concat(i).concat(e).concat(o),a=p.join(this.dirname,s);c.unlink(a,r)}},{key:"_checkMaxFilesTailable",value:function(e,t,r){var n=this,i=[];if(this.maxFiles){for(var o=this.zippedArchive?".gz":"",s=this.maxFiles-1;s>1;s--)i.push(function(r,n){var i=this,s="".concat(t).concat(r-1).concat(e).concat(o),a=p.join(this.dirname,s);c.exists(a,(function(l){if(!l)return n(null);s="".concat(t).concat(r).concat(e).concat(o),c.rename(a,p.join(i.dirname,s),n)}))}.bind(this,s));f(i,(function(){c.rename(p.join(n.dirname,"".concat(t).concat(e).concat(o)),p.join(n.dirname,"".concat(t,"1").concat(e).concat(o)),r)}))}}},{key:"_compressFile",value:function(e,t,r){c.access(e,c.F_OK,(function(n){if(n)return r();var i=h.createGzip(),o=c.createReadStream(e),s=c.createWriteStream(t);s.on("finish",(function(){c.unlink(e,r)})),o.pipe(i).pipe(s)}))}},{key:"_createLogDirIfNotExist",value:function(e){c.existsSync(e)||c.mkdirSync(e,{recursive:!0})}}])&&o(r.prototype,s),l&&o(r,l),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,s,l}(m)},7543:(e,t,r)=>{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){s(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function s(e,t,r){return(t=u(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,u(n.key),n)}}function u(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}function c(e,t,r){return t=p(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],p(e).constructor):t.apply(e,r))}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var h=r(4865),d=r(7500),g=r(4156).Stream,y=r(6155),v=r(1145).configure;e.exports=function(e){function t(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return a(this,t),(e=c(this,t,[r])).options=r,e.name=r.name||"http",e.ssl=!!r.ssl,e.host=r.host||"localhost",e.port=r.port,e.auth=r.auth,e.path=r.path||"",e.maximumDepth=r.maximumDepth,e.agent=r.agent,e.headers=r.headers||{},e.headers["content-type"]="application/json",e.batch=r.batch||!1,e.batchInterval=r.batchInterval||5e3,e.batchCount=r.batchCount||10,e.batchOptions=[],e.batchTimeoutID=-1,e.batchCallback={},e.port||(e.port=e.ssl?443:80),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(t,e),r=t,(n=[{key:"log",value:function(e,t){var r=this;this._request(e,null,null,(function(t,n){n&&200!==n.statusCode&&(t=new Error("Invalid HTTP Status Code: ".concat(n.statusCode))),t?r.emit("warn",t):r.emit("logged",e)})),t&&setImmediate(t)}},{key:"query",value:function(e,t){"function"==typeof e&&(t=e,e={});var r=(e={method:"query",params:this.normalizeQuery(e)}).params.auth||null;delete e.params.auth;var n=e.params.path||null;delete e.params.path,this._request(e,r,n,(function(e,r,n){if(r&&200!==r.statusCode&&(e=new Error("Invalid HTTP Status Code: ".concat(r.statusCode))),e)return t(e);if("string"==typeof n)try{n=JSON.parse(n)}catch(e){return t(e)}t(null,n)}))}},{key:"stream",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new g,r=(e={method:"stream",params:e}).params.path||null;delete e.params.path;var n=e.params.auth||null;delete e.params.auth;var i="",o=this._request(e,n,r);return t.destroy=function(){return o.destroy()},o.on("data",(function(e){for(var r=(e=(i+e).split(/\n+/)).length-1,n=0;n<r;n++)try{t.emit("log",JSON.parse(e[n]))}catch(e){t.emit("error",e)}i=e[r]})),o.on("error",(function(e){return t.emit("error",e)})),t}},{key:"_request",value:function(e,t,r,n){e=e||{},t=t||this.auth,r=r||this.path||"",this.batch?this._doBatch(e,n,t,r):this._doRequest(e,n,t,r)}},{key:"_doBatch",value:function(e,t,r,n){if(this.batchOptions.push(e),1===this.batchOptions.length){var i=this;this.batchCallback=t,this.batchTimeoutID=setTimeout((function(){i.batchTimeoutID=-1,i._doBatchRequest(i.batchCallback,r,n)}),this.batchInterval)}this.batchOptions.length===this.batchCount&&this._doBatchRequest(this.batchCallback,r,n)}},{key:"_doBatchRequest",value:function(e,t,r){this.batchTimeoutID>0&&(clearTimeout(this.batchTimeoutID),this.batchTimeoutID=-1);var n=this.batchOptions.slice();this.batchOptions=[],this._doRequest(n,e,t,r)}},{key:"_doRequest",value:function(e,t,r,n){var i=Object.assign({},this.headers);r&&r.bearer&&(i.Authorization="Bearer ".concat(r.bearer));var s=(this.ssl?d:h).request(o(o({},this.options),{},{method:"POST",host:this.host,port:this.port,path:"/".concat(n.replace(/^\//,"")),headers:i,auth:r&&r.username&&r.password?"".concat(r.username,":").concat(r.password):"",agent:this.agent}));s.on("error",t),s.on("response",(function(e){return e.on("end",(function(){return t(null,e)})).resume()}));var a=v(o({},this.maximumDepth&&{maximumDepth:this.maximumDepth}));s.end(Buffer.from(a(e,this.options.replacer),"utf8"))}}])&&l(r.prototype,n),i&&l(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}(y)},3307:(e,t,r)=>{"use strict";Object.defineProperty(t,"Console",{configurable:!0,enumerable:!0,get:function(){return r(810)}}),Object.defineProperty(t,"File",{configurable:!0,enumerable:!0,get:function(){return r(3329)}}),Object.defineProperty(t,"Http",{configurable:!0,enumerable:!0,get:function(){return r(7543)}}),Object.defineProperty(t,"Stream",{configurable:!0,enumerable:!0,get:function(){return r(1292)}})},1292:(e,t,r)=>{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,s(n.key),n)}}function s(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}function a(e,t,r){return t=l(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],l(e).constructor):t.apply(e,r))}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t){return(u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var c=r(6605),p=r(4966).MESSAGE,f=r(2213),h=r(6155);e.exports=function(e){function t(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(i(this,t),e=a(this,t,[r]),!r.stream||!c(r.stream))throw new Error("options.stream is required.");return e._stream=r.stream,e._stream.setMaxListeners(1/0),e.isObjectMode=r.stream._writableState.objectMode,e.eol="string"==typeof r.eol?r.eol:f.EOL,e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(t,e),r=t,(n=[{key:"log",value:function(e,t){var r=this;if(setImmediate((function(){return r.emit("logged",e)})),this.isObjectMode)return this._stream.write(e),void(t&&t());this._stream.write("".concat(e[p]).concat(this.eol)),t&&t()}}])&&o(r.prototype,n),s&&o(r,s),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,s}(h)},3227:e=>{e.exports=function(){for(var e={},r=0;r<arguments.length;r++){var n=arguments[r];for(var i in n)t.call(n,i)&&(e[i]=n[i])}return e};var t=Object.prototype.hasOwnProperty},3804:(e,t,r)=>{const n={};n.web=r(5949);r(8052);const i={v1:{}};i.v1.signaling={},i.v1.signaling.api=r(4620),i.v1.signaling.api.SignalingClient=function(e,t,r){r||(r={}),r.format="text",this.client_=new n.web.GrpcWebClientBase(r),this.hostname_=e.replace(/\/+$/,"")},i.v1.signaling.api.SignalingPromiseClient=function(e,t,r){r||(r={}),r.format="text",this.client_=new n.web.GrpcWebClientBase(r),this.hostname_=e.replace(/\/+$/,"")};const o=new n.web.MethodDescriptor("/v1.signaling.api.Signaling/GetHealth",n.web.MethodType.UNARY,i.v1.signaling.api.GetHealthRequest,i.v1.signaling.api.GetHealthResponse,(function(e){return e.serializeBinary()}),i.v1.signaling.api.GetHealthResponse.deserializeBinary);i.v1.signaling.api.SignalingClient.prototype.getHealth=function(e,t,r){return this.client_.rpcCall(this.hostname_+"/v1.signaling.api.Signaling/GetHealth",e,t||{},o,r)},i.v1.signaling.api.SignalingPromiseClient.prototype.getHealth=function(e,t){return this.client_.unaryCall(this.hostname_+"/v1.signaling.api.Signaling/GetHealth",e,t||{},o)};const s=new n.web.MethodDescriptor("/v1.signaling.api.Signaling/CreatePeer",n.web.MethodType.UNARY,i.v1.signaling.api.CreatePeerRequest,i.v1.signaling.api.CreatePeerResponse,(function(e){return e.serializeBinary()}),i.v1.signaling.api.CreatePeerResponse.deserializeBinary);i.v1.signaling.api.SignalingClient.prototype.createPeer=function(e,t,r){return this.client_.rpcCall(this.hostname_+"/v1.signaling.api.Signaling/CreatePeer",e,t||{},s,r)},i.v1.signaling.api.SignalingPromiseClient.prototype.createPeer=function(e,t){return this.client_.unaryCall(this.hostname_+"/v1.signaling.api.Signaling/CreatePeer",e,t||{},s)};const a=new n.web.MethodDescriptor("/v1.signaling.api.Signaling/DeletePeer",n.web.MethodType.UNARY,i.v1.signaling.api.DeletePeerRequest,i.v1.signaling.api.DeletePeerResponse,(function(e){return e.serializeBinary()}),i.v1.signaling.api.DeletePeerResponse.deserializeBinary);i.v1.signaling.api.SignalingClient.prototype.deletePeer=function(e,t,r){return this.client_.rpcCall(this.hostname_+"/v1.signaling.api.Signaling/DeletePeer",e,t||{},a,r)},i.v1.signaling.api.SignalingPromiseClient.prototype.deletePeer=function(e,t){return this.client_.unaryCall(this.hostname_+"/v1.signaling.api.Signaling/DeletePeer",e,t||{},a)};const l=new n.web.MethodDescriptor("/v1.signaling.api.Signaling/RefreshPeer",n.web.MethodType.UNARY,i.v1.signaling.api.RefreshPeerRequest,i.v1.signaling.api.RefreshPeerResponse,(function(e){return e.serializeBinary()}),i.v1.signaling.api.RefreshPeerResponse.deserializeBinary);i.v1.signaling.api.SignalingClient.prototype.refreshPeer=function(e,t,r){return this.client_.rpcCall(this.hostname_+"/v1.signaling.api.Signaling/RefreshPeer",e,t||{},l,r)},i.v1.signaling.api.SignalingPromiseClient.prototype.refreshPeer=function(e,t){return this.client_.unaryCall(this.hostname_+"/v1.signaling.api.Signaling/RefreshPeer",e,t||{},l)};const u=new n.web.MethodDescriptor("/v1.signaling.api.Signaling/GetPeers",n.web.MethodType.UNARY,i.v1.signaling.api.GetPeersRequest,i.v1.signaling.api.GetPeersResponse,(function(e){return e.serializeBinary()}),i.v1.signaling.api.GetPeersResponse.deserializeBinary);i.v1.signaling.api.SignalingClient.prototype.getPeers=function(e,t,r){return this.client_.rpcCall(this.hostname_+"/v1.signaling.api.Signaling/GetPeers",e,t||{},u,r)},i.v1.signaling.api.SignalingPromiseClient.prototype.getPeers=function(e,t){return this.client_.unaryCall(this.hostname_+"/v1.signaling.api.Signaling/GetPeers",e,t||{},u)};const c=new n.web.MethodDescriptor("/v1.signaling.api.Signaling/GetIceServers",n.web.MethodType.UNARY,i.v1.signaling.api.GetIceServersRequest,i.v1.signaling.api.GetIceServersResponse,(function(e){return e.serializeBinary()}),i.v1.signaling.api.GetIceServersResponse.deserializeBinary);i.v1.signaling.api.SignalingClient.prototype.getIceServers=function(e,t,r){return this.client_.rpcCall(this.hostname_+"/v1.signaling.api.Signaling/GetIceServers",e,t||{},c,r)},i.v1.signaling.api.SignalingPromiseClient.prototype.getIceServers=function(e,t){return this.client_.unaryCall(this.hostname_+"/v1.signaling.api.Signaling/GetIceServers",e,t||{},c)};const p=new n.web.MethodDescriptor("/v1.signaling.api.Signaling/SendSignal",n.web.MethodType.UNARY,i.v1.signaling.api.SendSignalRequest,i.v1.signaling.api.SendSignalResponse,(function(e){return e.serializeBinary()}),i.v1.signaling.api.SendSignalResponse.deserializeBinary);i.v1.signaling.api.SignalingClient.prototype.sendSignal=function(e,t,r){return this.client_.rpcCall(this.hostname_+"/v1.signaling.api.Signaling/SendSignal",e,t||{},p,r)},i.v1.signaling.api.SignalingPromiseClient.prototype.sendSignal=function(e,t){return this.client_.unaryCall(this.hostname_+"/v1.signaling.api.Signaling/SendSignal",e,t||{},p)};const f=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(e){return e.serializeBinary()}),i.v1.signaling.api.ReceiveSignalStreamResponse.deserializeBinary);i.v1.signaling.api.SignalingClient.prototype.receiveSignalStream=function(e,t){return this.client_.serverStreaming(this.hostname_+"/v1.signaling.api.Signaling/ReceiveSignalStream",e,t||{},f)},i.v1.signaling.api.SignalingPromiseClient.prototype.receiveSignalStream=function(e,t){return this.client_.serverStreaming(this.hostname_+"/v1.signaling.api.Signaling/ReceiveSignalStream",e,t||{},f)};const h=new n.web.MethodDescriptor("/v1.signaling.api.Signaling/GetSessions",n.web.MethodType.UNARY,i.v1.signaling.api.GetSessionsRequest,i.v1.signaling.api.GetSessionsResponse,(function(e){return e.serializeBinary()}),i.v1.signaling.api.GetSessionsResponse.deserializeBinary);i.v1.signaling.api.SignalingClient.prototype.getSessions=function(e,t,r){return this.client_.rpcCall(this.hostname_+"/v1.signaling.api.Signaling/GetSessions",e,t||{},h,r)},i.v1.signaling.api.SignalingPromiseClient.prototype.getSessions=function(e,t){return this.client_.unaryCall(this.hostname_+"/v1.signaling.api.Signaling/GetSessions",e,t||{},h)},e.exports=i.v1.signaling.api},4620:(e,t,r)=>{var n=r(7186),i=n,o="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof window&&window||void 0!==o&&o||"undefined"!=typeof self&&self||function(){return this}.call(null)||Function("return this")(),s=r(8052);i.object.extend(proto,s),i.exportSymbol("proto.v1.signaling.api.CreatePeerRequest",null,o),i.exportSymbol("proto.v1.signaling.api.CreatePeerResponse",null,o),i.exportSymbol("proto.v1.signaling.api.DeletePeerRequest",null,o),i.exportSymbol("proto.v1.signaling.api.DeletePeerResponse",null,o),i.exportSymbol("proto.v1.signaling.api.GetHealthRequest",null,o),i.exportSymbol("proto.v1.signaling.api.GetHealthResponse",null,o),i.exportSymbol("proto.v1.signaling.api.GetIceServersRequest",null,o),i.exportSymbol("proto.v1.signaling.api.GetIceServersResponse",null,o),i.exportSymbol("proto.v1.signaling.api.GetPeersRequest",null,o),i.exportSymbol("proto.v1.signaling.api.GetPeersResponse",null,o),i.exportSymbol("proto.v1.signaling.api.GetSessionsRequest",null,o),i.exportSymbol("proto.v1.signaling.api.GetSessionsResponse",null,o),i.exportSymbol("proto.v1.signaling.api.Peer",null,o),i.exportSymbol("proto.v1.signaling.api.ReceiveSignalStreamRequest",null,o),i.exportSymbol("proto.v1.signaling.api.ReceiveSignalStreamResponse",null,o),i.exportSymbol("proto.v1.signaling.api.RefreshPeerRequest",null,o),i.exportSymbol("proto.v1.signaling.api.RefreshPeerResponse",null,o),i.exportSymbol("proto.v1.signaling.api.RtcSession",null,o),i.exportSymbol("proto.v1.signaling.api.SendSignalRequest",null,o),i.exportSymbol("proto.v1.signaling.api.SendSignalResponse",null,o),i.exportSymbol("proto.v1.signaling.api.SessionType",null,o),i.exportSymbol("proto.v1.signaling.api.Signal",null,o),proto.v1.signaling.api.Peer=function(e){n.Message.initialize(this,e,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(e){n.Message.initialize(this,e,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.RtcSession=function(e){n.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.v1.signaling.api.RtcSession,n.Message),i.DEBUG&&!COMPILED&&(proto.v1.signaling.api.RtcSession.displayName="proto.v1.signaling.api.RtcSession"),proto.v1.signaling.api.GetSessionsRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.v1.signaling.api.GetSessionsRequest,n.Message),i.DEBUG&&!COMPILED&&(proto.v1.signaling.api.GetSessionsRequest.displayName="proto.v1.signaling.api.GetSessionsRequest"),proto.v1.signaling.api.GetSessionsResponse=function(e){n.Message.initialize(this,e,0,-1,proto.v1.signaling.api.GetSessionsResponse.repeatedFields_,null)},i.inherits(proto.v1.signaling.api.GetSessionsResponse,n.Message),i.DEBUG&&!COMPILED&&(proto.v1.signaling.api.GetSessionsResponse.displayName="proto.v1.signaling.api.GetSessionsResponse"),proto.v1.signaling.api.GetHealthRequest=function(e){n.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.v1.signaling.api.GetHealthRequest,n.Message),i.DEBUG&&!COMPILED&&(proto.v1.signaling.api.GetHealthRequest.displayName="proto.v1.signaling.api.GetHealthRequest"),proto.v1.signaling.api.GetHealthResponse=function(e){n.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.v1.signaling.api.GetHealthResponse,n.Message),i.DEBUG&&!COMPILED&&(proto.v1.signaling.api.GetHealthResponse.displayName="proto.v1.signaling.api.GetHealthResponse"),proto.v1.signaling.api.CreatePeerRequest=function(e){n.Message.initialize(this,e,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(e){n.Message.initialize(this,e,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(e){n.Message.initialize(this,e,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(e){n.Message.initialize(this,e,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(e){n.Message.initialize(this,e,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(e){n.Message.initialize(this,e,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(e){n.Message.initialize(this,e,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(e){n.Message.initialize(this,e,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(e){n.Message.initialize(this,e,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(e){n.Message.initialize(this,e,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(e){n.Message.initialize(this,e,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(e){n.Message.initialize(this,e,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(e){n.Message.initialize(this,e,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(e){n.Message.initialize(this,e,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(e){return proto.v1.signaling.api.Peer.toObject(e,this)},proto.v1.signaling.api.Peer.toObject=function(e,t){var r,i={peerId:n.Message.getFieldWithDefault(t,1,""),organizationId:n.Message.getFieldWithDefault(t,2,""),userId:(r=t.getUserId())&&s.StringValue.toObject(e,r),deviceId:(r=t.getDeviceId())&&s.StringValue.toObject(e,r),sessionIdsList:null==(r=n.Message.getRepeatedField(t,5))?void 0:r,peerCreatedTimestamp:(r=t.getPeerCreatedTimestamp())&&s.Int64Value.toObject(e,r)};return e&&(i.$jspbMessageInstance=t),i}),proto.v1.signaling.api.Peer.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.v1.signaling.api.Peer;return proto.v1.signaling.api.Peer.deserializeBinaryFromReader(r,t)},proto.v1.signaling.api.Peer.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readString();e.setPeerId(r);break;case 2:r=t.readString();e.setOrganizationId(r);break;case 3:r=new s.StringValue;t.readMessage(r,s.StringValue.deserializeBinaryFromReader),e.setUserId(r);break;case 4:r=new s.StringValue;t.readMessage(r,s.StringValue.deserializeBinaryFromReader),e.setDeviceId(r);break;case 5:r=t.readString();e.addSessionIds(r);break;case 6:r=new s.Int64Value;t.readMessage(r,s.Int64Value.deserializeBinaryFromReader),e.setPeerCreatedTimestamp(r);break;default:t.skipField()}}return e},proto.v1.signaling.api.Peer.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.v1.signaling.api.Peer.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.v1.signaling.api.Peer.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getPeerId()).length>0&&t.writeString(1,r),(r=e.getOrganizationId()).length>0&&t.writeString(2,r),null!=(r=e.getUserId())&&t.writeMessage(3,r,s.StringValue.serializeBinaryToWriter),null!=(r=e.getDeviceId())&&t.writeMessage(4,r,s.StringValue.serializeBinaryToWriter),(r=e.getSessionIdsList()).length>0&&t.writeRepeatedString(5,r),null!=(r=e.getPeerCreatedTimestamp())&&t.writeMessage(6,r,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(e){return n.Message.setProto3StringField(this,1,e)},proto.v1.signaling.api.Peer.prototype.getOrganizationId=function(){return n.Message.getFieldWithDefault(this,2,"")},proto.v1.signaling.api.Peer.prototype.setOrganizationId=function(e){return n.Message.setProto3StringField(this,2,e)},proto.v1.signaling.api.Peer.prototype.getUserId=function(){return n.Message.getWrapperField(this,s.StringValue,3)},proto.v1.signaling.api.Peer.prototype.setUserId=function(e){return n.Message.setWrapperField(this,3,e)},proto.v1.signaling.api.Peer.prototype.clearUserId=function(){return this.setUserId(void 0)},proto.v1.signaling.api.Peer.prototype.hasUserId=function(){return null!=n.Message.getField(this,3)},proto.v1.signaling.api.Peer.prototype.getDeviceId=function(){return n.Message.getWrapperField(this,s.StringValue,4)},proto.v1.signaling.api.Peer.prototype.setDeviceId=function(e){return n.Message.setWrapperField(this,4,e)},proto.v1.signaling.api.Peer.prototype.clearDeviceId=function(){return this.setDeviceId(void 0)},proto.v1.signaling.api.Peer.prototype.hasDeviceId=function(){return null!=n.Message.getField(this,4)},proto.v1.signaling.api.Peer.prototype.getSessionIdsList=function(){return n.Message.getRepeatedField(this,5)},proto.v1.signaling.api.Peer.prototype.setSessionIdsList=function(e){return n.Message.setField(this,5,e||[])},proto.v1.signaling.api.Peer.prototype.addSessionIds=function(e,t){return n.Message.addToRepeatedField(this,5,e,t)},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(e){return n.Message.setWrapperField(this,6,e)},proto.v1.signaling.api.Peer.prototype.clearPeerCreatedTimestamp=function(){return this.setPeerCreatedTimestamp(void 0)},proto.v1.signaling.api.Peer.prototype.hasPeerCreatedTimestamp=function(){return null!=n.Message.getField(this,6)},n.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.Signal.prototype.toObject=function(e){return proto.v1.signaling.api.Signal.toObject(e,this)},proto.v1.signaling.api.Signal.toObject=function(e,t){var r,i={sessionId:(r=t.getSessionId())&&s.StringValue.toObject(e,r),sessionCreatedTimestamp:(r=t.getSessionCreatedTimestamp())&&s.Int64Value.toObject(e,r),senderId:n.Message.getFieldWithDefault(t,3,""),receiverId:n.Message.getFieldWithDefault(t,4,""),payload:n.Message.getFieldWithDefault(t,5,""),iceServers:n.Message.getFieldWithDefault(t,6,""),iceTransportPolicy:n.Message.getFieldWithDefault(t,7,""),sessionType:n.Message.getFieldWithDefault(t,8,0)};return e&&(i.$jspbMessageInstance=t),i}),proto.v1.signaling.api.Signal.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.v1.signaling.api.Signal;return proto.v1.signaling.api.Signal.deserializeBinaryFromReader(r,t)},proto.v1.signaling.api.Signal.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=new s.StringValue;t.readMessage(r,s.StringValue.deserializeBinaryFromReader),e.setSessionId(r);break;case 2:r=new s.Int64Value;t.readMessage(r,s.Int64Value.deserializeBinaryFromReader),e.setSessionCreatedTimestamp(r);break;case 3:r=t.readString();e.setSenderId(r);break;case 4:r=t.readString();e.setReceiverId(r);break;case 5:r=t.readString();e.setPayload(r);break;case 6:r=t.readString();e.setIceServers(r);break;case 7:r=t.readString();e.setIceTransportPolicy(r);break;case 8:r=t.readEnum();e.setSessionType(r);break;default:t.skipField()}}return e},proto.v1.signaling.api.Signal.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.v1.signaling.api.Signal.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.v1.signaling.api.Signal.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getSessionId())&&t.writeMessage(1,r,s.StringValue.serializeBinaryToWriter),null!=(r=e.getSessionCreatedTimestamp())&&t.writeMessage(2,r,s.Int64Value.serializeBinaryToWriter),(r=e.getSenderId()).length>0&&t.writeString(3,r),(r=e.getReceiverId()).length>0&&t.writeString(4,r),(r=e.getPayload()).length>0&&t.writeString(5,r),(r=e.getIceServers()).length>0&&t.writeString(6,r),(r=e.getIceTransportPolicy()).length>0&&t.writeString(7,r),0!==(r=e.getSessionType())&&t.writeEnum(8,r)},proto.v1.signaling.api.Signal.prototype.getSessionId=function(){return n.Message.getWrapperField(this,s.StringValue,1)},proto.v1.signaling.api.Signal.prototype.setSessionId=function(e){return n.Message.setWrapperField(this,1,e)},proto.v1.signaling.api.Signal.prototype.clearSessionId=function(){return this.setSessionId(void 0)},proto.v1.signaling.api.Signal.prototype.hasSessionId=function(){return null!=n.Message.getField(this,1)},proto.v1.signaling.api.Signal.prototype.getSessionCreatedTimestamp=function(){return n.Message.getWrapperField(this,s.Int64Value,2)},proto.v1.signaling.api.Signal.prototype.setSessionCreatedTimestamp=function(e){return n.Message.setWrapperField(this,2,e)},proto.v1.signaling.api.Signal.prototype.clearSessionCreatedTimestamp=function(){return this.setSessionCreatedTimestamp(void 0)},proto.v1.signaling.api.Signal.prototype.hasSessionCreatedTimestamp=function(){return null!=n.Message.getField(this,2)},proto.v1.signaling.api.Signal.prototype.getSenderId=function(){return n.Message.getFieldWithDefault(this,3,"")},proto.v1.signaling.api.Signal.prototype.setSenderId=function(e){return n.Message.setProto3StringField(this,3,e)},proto.v1.signaling.api.Signal.prototype.getReceiverId=function(){return n.Message.getFieldWithDefault(this,4,"")},proto.v1.signaling.api.Signal.prototype.setReceiverId=function(e){return n.Message.setProto3StringField(this,4,e)},proto.v1.signaling.api.Signal.prototype.getPayload=function(){return n.Message.getFieldWithDefault(this,5,"")},proto.v1.signaling.api.Signal.prototype.setPayload=function(e){return n.Message.setProto3StringField(this,5,e)},proto.v1.signaling.api.Signal.prototype.getIceServers=function(){return n.Message.getFieldWithDefault(this,6,"")},proto.v1.signaling.api.Signal.prototype.setIceServers=function(e){return n.Message.setProto3StringField(this,6,e)},proto.v1.signaling.api.Signal.prototype.getIceTransportPolicy=function(){return n.Message.getFieldWithDefault(this,7,"")},proto.v1.signaling.api.Signal.prototype.setIceTransportPolicy=function(e){return n.Message.setProto3StringField(this,7,e)},proto.v1.signaling.api.Signal.prototype.getSessionType=function(){return n.Message.getFieldWithDefault(this,8,0)},proto.v1.signaling.api.Signal.prototype.setSessionType=function(e){return n.Message.setProto3EnumField(this,8,e)},n.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.RtcSession.prototype.toObject=function(e){return proto.v1.signaling.api.RtcSession.toObject(e,this)},proto.v1.signaling.api.RtcSession.toObject=function(e,t){var r={sessionId:n.Message.getFieldWithDefault(t,1,""),offerPeerId:n.Message.getFieldWithDefault(t,2,""),answerPeerId:n.Message.getFieldWithDefault(t,3,""),organizationId:n.Message.getFieldWithDefault(t,4,""),sessionType:n.Message.getFieldWithDefault(t,5,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.v1.signaling.api.RtcSession.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.v1.signaling.api.RtcSession;return proto.v1.signaling.api.RtcSession.deserializeBinaryFromReader(r,t)},proto.v1.signaling.api.RtcSession.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readString();e.setSessionId(r);break;case 2:r=t.readString();e.setOfferPeerId(r);break;case 3:r=t.readString();e.setAnswerPeerId(r);break;case 4:r=t.readString();e.setOrganizationId(r);break;case 5:r=t.readString();e.setSessionType(r);break;default:t.skipField()}}return e},proto.v1.signaling.api.RtcSession.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.v1.signaling.api.RtcSession.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.v1.signaling.api.RtcSession.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getSessionId()).length>0&&t.writeString(1,r),(r=e.getOfferPeerId()).length>0&&t.writeString(2,r),(r=e.getAnswerPeerId()).length>0&&t.writeString(3,r),(r=e.getOrganizationId()).length>0&&t.writeString(4,r),(r=e.getSessionType()).length>0&&t.writeString(5,r)},proto.v1.signaling.api.RtcSession.prototype.getSessionId=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.v1.signaling.api.RtcSession.prototype.setSessionId=function(e){return n.Message.setProto3StringField(this,1,e)},proto.v1.signaling.api.RtcSession.prototype.getOfferPeerId=function(){return n.Message.getFieldWithDefault(this,2,"")},proto.v1.signaling.api.RtcSession.prototype.setOfferPeerId=function(e){return n.Message.setProto3StringField(this,2,e)},proto.v1.signaling.api.RtcSession.prototype.getAnswerPeerId=function(){return n.Message.getFieldWithDefault(this,3,"")},proto.v1.signaling.api.RtcSession.prototype.setAnswerPeerId=function(e){return n.Message.setProto3StringField(this,3,e)},proto.v1.signaling.api.RtcSession.prototype.getOrganizationId=function(){return n.Message.getFieldWithDefault(this,4,"")},proto.v1.signaling.api.RtcSession.prototype.setOrganizationId=function(e){return n.Message.setProto3StringField(this,4,e)},proto.v1.signaling.api.RtcSession.prototype.getSessionType=function(){return n.Message.getFieldWithDefault(this,5,"")},proto.v1.signaling.api.RtcSession.prototype.setSessionType=function(e){return n.Message.setProto3StringField(this,5,e)},n.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.GetSessionsRequest.prototype.toObject=function(e){return proto.v1.signaling.api.GetSessionsRequest.toObject(e,this)},proto.v1.signaling.api.GetSessionsRequest.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),proto.v1.signaling.api.GetSessionsRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.v1.signaling.api.GetSessionsRequest;return proto.v1.signaling.api.GetSessionsRequest.deserializeBinaryFromReader(r,t)},proto.v1.signaling.api.GetSessionsRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){t.getFieldNumber();t.skipField()}return e},proto.v1.signaling.api.GetSessionsRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.v1.signaling.api.GetSessionsRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.v1.signaling.api.GetSessionsRequest.serializeBinaryToWriter=function(e,t){},proto.v1.signaling.api.GetSessionsResponse.repeatedFields_=[1],n.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.GetSessionsResponse.prototype.toObject=function(e){return proto.v1.signaling.api.GetSessionsResponse.toObject(e,this)},proto.v1.signaling.api.GetSessionsResponse.toObject=function(e,t){var r={sessionsList:n.Message.toObjectList(t.getSessionsList(),proto.v1.signaling.api.RtcSession.toObject,e)};return e&&(r.$jspbMessageInstance=t),r}),proto.v1.signaling.api.GetSessionsResponse.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.v1.signaling.api.GetSessionsResponse;return proto.v1.signaling.api.GetSessionsResponse.deserializeBinaryFromReader(r,t)},proto.v1.signaling.api.GetSessionsResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=new proto.v1.signaling.api.RtcSession;t.readMessage(r,proto.v1.signaling.api.RtcSession.deserializeBinaryFromReader),e.addSessions(r);break;default:t.skipField()}}return e},proto.v1.signaling.api.GetSessionsResponse.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.v1.signaling.api.GetSessionsResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.v1.signaling.api.GetSessionsResponse.serializeBinaryToWriter=function(e,t){var r;(r=e.getSessionsList()).length>0&&t.writeRepeatedMessage(1,r,proto.v1.signaling.api.RtcSession.serializeBinaryToWriter)},proto.v1.signaling.api.GetSessionsResponse.prototype.getSessionsList=function(){return n.Message.getRepeatedWrapperField(this,proto.v1.signaling.api.RtcSession,1)},proto.v1.signaling.api.GetSessionsResponse.prototype.setSessionsList=function(e){return n.Message.setRepeatedWrapperField(this,1,e)},proto.v1.signaling.api.GetSessionsResponse.prototype.addSessions=function(e,t){return n.Message.addToRepeatedWrapperField(this,1,e,proto.v1.signaling.api.RtcSession,t)},proto.v1.signaling.api.GetSessionsResponse.prototype.clearSessionsList=function(){return this.setSessionsList([])},n.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.GetHealthRequest.prototype.toObject=function(e){return proto.v1.signaling.api.GetHealthRequest.toObject(e,this)},proto.v1.signaling.api.GetHealthRequest.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),proto.v1.signaling.api.GetHealthRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.v1.signaling.api.GetHealthRequest;return proto.v1.signaling.api.GetHealthRequest.deserializeBinaryFromReader(r,t)},proto.v1.signaling.api.GetHealthRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){t.getFieldNumber();t.skipField()}return e},proto.v1.signaling.api.GetHealthRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.v1.signaling.api.GetHealthRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.v1.signaling.api.GetHealthRequest.serializeBinaryToWriter=function(e,t){},n.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.GetHealthResponse.prototype.toObject=function(e){return proto.v1.signaling.api.GetHealthResponse.toObject(e,this)},proto.v1.signaling.api.GetHealthResponse.toObject=function(e,t){var r={version:n.Message.getFieldWithDefault(t,1,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.v1.signaling.api.GetHealthResponse.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.v1.signaling.api.GetHealthResponse;return proto.v1.signaling.api.GetHealthResponse.deserializeBinaryFromReader(r,t)},proto.v1.signaling.api.GetHealthResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readString();e.setVersion(r);break;default:t.skipField()}}return e},proto.v1.signaling.api.GetHealthResponse.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.v1.signaling.api.GetHealthResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.v1.signaling.api.GetHealthResponse.serializeBinaryToWriter=function(e,t){var r;(r=e.getVersion()).length>0&&t.writeString(1,r)},proto.v1.signaling.api.GetHealthResponse.prototype.getVersion=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.v1.signaling.api.GetHealthResponse.prototype.setVersion=function(e){return n.Message.setProto3StringField(this,1,e)},n.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.CreatePeerRequest.prototype.toObject=function(e){return proto.v1.signaling.api.CreatePeerRequest.toObject(e,this)},proto.v1.signaling.api.CreatePeerRequest.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),proto.v1.signaling.api.CreatePeerRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.v1.signaling.api.CreatePeerRequest;return proto.v1.signaling.api.CreatePeerRequest.deserializeBinaryFromReader(r,t)},proto.v1.signaling.api.CreatePeerRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){t.getFieldNumber();t.skipField()}return e},proto.v1.signaling.api.CreatePeerRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.v1.signaling.api.CreatePeerRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.v1.signaling.api.CreatePeerRequest.serializeBinaryToWriter=function(e,t){},n.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.CreatePeerResponse.prototype.toObject=function(e){return proto.v1.signaling.api.CreatePeerResponse.toObject(e,this)},proto.v1.signaling.api.CreatePeerResponse.toObject=function(e,t){var r,n={peer:(r=t.getPeer())&&proto.v1.signaling.api.Peer.toObject(e,r)};return e&&(n.$jspbMessageInstance=t),n}),proto.v1.signaling.api.CreatePeerResponse.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.v1.signaling.api.CreatePeerResponse;return proto.v1.signaling.api.CreatePeerResponse.deserializeBinaryFromReader(r,t)},proto.v1.signaling.api.CreatePeerResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=new proto.v1.signaling.api.Peer;t.readMessage(r,proto.v1.signaling.api.Peer.deserializeBinaryFromReader),e.setPeer(r);break;default:t.skipField()}}return e},proto.v1.signaling.api.CreatePeerResponse.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.v1.signaling.api.CreatePeerResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.v1.signaling.api.CreatePeerResponse.serializeBinaryToWriter=function(e,t){var r;null!=(r=e.getPeer())&&t.writeMessage(1,r,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(e){return n.Message.setWrapperField(this,1,e)},proto.v1.signaling.api.CreatePeerResponse.prototype.clearPeer=function(){return this.setPeer(void 0)},proto.v1.signaling.api.CreatePeerResponse.prototype.hasPeer=function(){return null!=n.Message.getField(this,1)},n.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.DeletePeerRequest.prototype.toObject=function(e){return proto.v1.signaling.api.DeletePeerRequest.toObject(e,this)},proto.v1.signaling.api.DeletePeerRequest.toObject=function(e,t){var r={peerId:n.Message.getFieldWithDefault(t,1,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.v1.signaling.api.DeletePeerRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.v1.signaling.api.DeletePeerRequest;return proto.v1.signaling.api.DeletePeerRequest.deserializeBinaryFromReader(r,t)},proto.v1.signaling.api.DeletePeerRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readString();e.setPeerId(r);break;default:t.skipField()}}return e},proto.v1.signaling.api.DeletePeerRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.v1.signaling.api.DeletePeerRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.v1.signaling.api.DeletePeerRequest.serializeBinaryToWriter=function(e,t){var r;(r=e.getPeerId()).length>0&&t.writeString(1,r)},proto.v1.signaling.api.DeletePeerRequest.prototype.getPeerId=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.v1.signaling.api.DeletePeerRequest.prototype.setPeerId=function(e){return n.Message.setProto3StringField(this,1,e)},n.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.DeletePeerResponse.prototype.toObject=function(e){return proto.v1.signaling.api.DeletePeerResponse.toObject(e,this)},proto.v1.signaling.api.DeletePeerResponse.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),proto.v1.signaling.api.DeletePeerResponse.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.v1.signaling.api.DeletePeerResponse;return proto.v1.signaling.api.DeletePeerResponse.deserializeBinaryFromReader(r,t)},proto.v1.signaling.api.DeletePeerResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){t.getFieldNumber();t.skipField()}return e},proto.v1.signaling.api.DeletePeerResponse.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.v1.signaling.api.DeletePeerResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.v1.signaling.api.DeletePeerResponse.serializeBinaryToWriter=function(e,t){},n.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.RefreshPeerRequest.prototype.toObject=function(e){return proto.v1.signaling.api.RefreshPeerRequest.toObject(e,this)},proto.v1.signaling.api.RefreshPeerRequest.toObject=function(e,t){var r,n={peer:(r=t.getPeer())&&proto.v1.signaling.api.Peer.toObject(e,r)};return e&&(n.$jspbMessageInstance=t),n}),proto.v1.signaling.api.RefreshPeerRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.v1.signaling.api.RefreshPeerRequest;return proto.v1.signaling.api.RefreshPeerRequest.deserializeBinaryFromReader(r,t)},proto.v1.signaling.api.RefreshPeerRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=new proto.v1.signaling.api.Peer;t.readMessage(r,proto.v1.signaling.api.Peer.deserializeBinaryFromReader),e.setPeer(r);break;default:t.skipField()}}return e},proto.v1.signaling.api.RefreshPeerRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.v1.signaling.api.RefreshPeerRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.v1.signaling.api.RefreshPeerRequest.serializeBinaryToWriter=function(e,t){var r;null!=(r=e.getPeer())&&t.writeMessage(1,r,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(e){return n.Message.setWrapperField(this,1,e)},proto.v1.signaling.api.RefreshPeerRequest.prototype.clearPeer=function(){return this.setPeer(void 0)},proto.v1.signaling.api.RefreshPeerRequest.prototype.hasPeer=function(){return null!=n.Message.getField(this,1)},n.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.RefreshPeerResponse.prototype.toObject=function(e){return proto.v1.signaling.api.RefreshPeerResponse.toObject(e,this)},proto.v1.signaling.api.RefreshPeerResponse.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),proto.v1.signaling.api.RefreshPeerResponse.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.v1.signaling.api.RefreshPeerResponse;return proto.v1.signaling.api.RefreshPeerResponse.deserializeBinaryFromReader(r,t)},proto.v1.signaling.api.RefreshPeerResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){t.getFieldNumber();t.skipField()}return e},proto.v1.signaling.api.RefreshPeerResponse.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.v1.signaling.api.RefreshPeerResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.v1.signaling.api.RefreshPeerResponse.serializeBinaryToWriter=function(e,t){},n.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.GetPeersRequest.prototype.toObject=function(e){return proto.v1.signaling.api.GetPeersRequest.toObject(e,this)},proto.v1.signaling.api.GetPeersRequest.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),proto.v1.signaling.api.GetPeersRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.v1.signaling.api.GetPeersRequest;return proto.v1.signaling.api.GetPeersRequest.deserializeBinaryFromReader(r,t)},proto.v1.signaling.api.GetPeersRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){t.getFieldNumber();t.skipField()}return e},proto.v1.signaling.api.GetPeersRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.v1.signaling.api.GetPeersRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.v1.signaling.api.GetPeersRequest.serializeBinaryToWriter=function(e,t){},proto.v1.signaling.api.GetPeersResponse.repeatedFields_=[1],n.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.GetPeersResponse.prototype.toObject=function(e){return proto.v1.signaling.api.GetPeersResponse.toObject(e,this)},proto.v1.signaling.api.GetPeersResponse.toObject=function(e,t){var r={peersList:n.Message.toObjectList(t.getPeersList(),proto.v1.signaling.api.Peer.toObject,e)};return e&&(r.$jspbMessageInstance=t),r}),proto.v1.signaling.api.GetPeersResponse.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.v1.signaling.api.GetPeersResponse;return proto.v1.signaling.api.GetPeersResponse.deserializeBinaryFromReader(r,t)},proto.v1.signaling.api.GetPeersResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=new proto.v1.signaling.api.Peer;t.readMessage(r,proto.v1.signaling.api.Peer.deserializeBinaryFromReader),e.addPeers(r);break;default:t.skipField()}}return e},proto.v1.signaling.api.GetPeersResponse.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.v1.signaling.api.GetPeersResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.v1.signaling.api.GetPeersResponse.serializeBinaryToWriter=function(e,t){var r;(r=e.getPeersList()).length>0&&t.writeRepeatedMessage(1,r,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(e){return n.Message.setRepeatedWrapperField(this,1,e)},proto.v1.signaling.api.GetPeersResponse.prototype.addPeers=function(e,t){return n.Message.addToRepeatedWrapperField(this,1,e,proto.v1.signaling.api.Peer,t)},proto.v1.signaling.api.GetPeersResponse.prototype.clearPeersList=function(){return this.setPeersList([])},n.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.GetIceServersRequest.prototype.toObject=function(e){return proto.v1.signaling.api.GetIceServersRequest.toObject(e,this)},proto.v1.signaling.api.GetIceServersRequest.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),proto.v1.signaling.api.GetIceServersRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.v1.signaling.api.GetIceServersRequest;return proto.v1.signaling.api.GetIceServersRequest.deserializeBinaryFromReader(r,t)},proto.v1.signaling.api.GetIceServersRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){t.getFieldNumber();t.skipField()}return e},proto.v1.signaling.api.GetIceServersRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.v1.signaling.api.GetIceServersRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.v1.signaling.api.GetIceServersRequest.serializeBinaryToWriter=function(e,t){},n.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.GetIceServersResponse.prototype.toObject=function(e){return proto.v1.signaling.api.GetIceServersResponse.toObject(e,this)},proto.v1.signaling.api.GetIceServersResponse.toObject=function(e,t){var r={iceServers:n.Message.getFieldWithDefault(t,1,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.v1.signaling.api.GetIceServersResponse.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.v1.signaling.api.GetIceServersResponse;return proto.v1.signaling.api.GetIceServersResponse.deserializeBinaryFromReader(r,t)},proto.v1.signaling.api.GetIceServersResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readString();e.setIceServers(r);break;default:t.skipField()}}return e},proto.v1.signaling.api.GetIceServersResponse.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.v1.signaling.api.GetIceServersResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.v1.signaling.api.GetIceServersResponse.serializeBinaryToWriter=function(e,t){var r;(r=e.getIceServers()).length>0&&t.writeString(1,r)},proto.v1.signaling.api.GetIceServersResponse.prototype.getIceServers=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.v1.signaling.api.GetIceServersResponse.prototype.setIceServers=function(e){return n.Message.setProto3StringField(this,1,e)},n.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.SendSignalRequest.prototype.toObject=function(e){return proto.v1.signaling.api.SendSignalRequest.toObject(e,this)},proto.v1.signaling.api.SendSignalRequest.toObject=function(e,t){var r,n={signal:(r=t.getSignal())&&proto.v1.signaling.api.Signal.toObject(e,r)};return e&&(n.$jspbMessageInstance=t),n}),proto.v1.signaling.api.SendSignalRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.v1.signaling.api.SendSignalRequest;return proto.v1.signaling.api.SendSignalRequest.deserializeBinaryFromReader(r,t)},proto.v1.signaling.api.SendSignalRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=new proto.v1.signaling.api.Signal;t.readMessage(r,proto.v1.signaling.api.Signal.deserializeBinaryFromReader),e.setSignal(r);break;default:t.skipField()}}return e},proto.v1.signaling.api.SendSignalRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.v1.signaling.api.SendSignalRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.v1.signaling.api.SendSignalRequest.serializeBinaryToWriter=function(e,t){var r;null!=(r=e.getSignal())&&t.writeMessage(1,r,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(e){return n.Message.setWrapperField(this,1,e)},proto.v1.signaling.api.SendSignalRequest.prototype.clearSignal=function(){return this.setSignal(void 0)},proto.v1.signaling.api.SendSignalRequest.prototype.hasSignal=function(){return null!=n.Message.getField(this,1)},n.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.SendSignalResponse.prototype.toObject=function(e){return proto.v1.signaling.api.SendSignalResponse.toObject(e,this)},proto.v1.signaling.api.SendSignalResponse.toObject=function(e,t){var r,n={sessionId:(r=t.getSessionId())&&s.StringValue.toObject(e,r),sessionCreatedTimestamp:(r=t.getSessionCreatedTimestamp())&&s.Int64Value.toObject(e,r)};return e&&(n.$jspbMessageInstance=t),n}),proto.v1.signaling.api.SendSignalResponse.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.v1.signaling.api.SendSignalResponse;return proto.v1.signaling.api.SendSignalResponse.deserializeBinaryFromReader(r,t)},proto.v1.signaling.api.SendSignalResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=new s.StringValue;t.readMessage(r,s.StringValue.deserializeBinaryFromReader),e.setSessionId(r);break;case 2:r=new s.Int64Value;t.readMessage(r,s.Int64Value.deserializeBinaryFromReader),e.setSessionCreatedTimestamp(r);break;default:t.skipField()}}return e},proto.v1.signaling.api.SendSignalResponse.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.v1.signaling.api.SendSignalResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.v1.signaling.api.SendSignalResponse.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getSessionId())&&t.writeMessage(1,r,s.StringValue.serializeBinaryToWriter),null!=(r=e.getSessionCreatedTimestamp())&&t.writeMessage(2,r,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(e){return n.Message.setWrapperField(this,1,e)},proto.v1.signaling.api.SendSignalResponse.prototype.clearSessionId=function(){return this.setSessionId(void 0)},proto.v1.signaling.api.SendSignalResponse.prototype.hasSessionId=function(){return null!=n.Message.getField(this,1)},proto.v1.signaling.api.SendSignalResponse.prototype.getSessionCreatedTimestamp=function(){return n.Message.getWrapperField(this,s.Int64Value,2)},proto.v1.signaling.api.SendSignalResponse.prototype.setSessionCreatedTimestamp=function(e){return n.Message.setWrapperField(this,2,e)},proto.v1.signaling.api.SendSignalResponse.prototype.clearSessionCreatedTimestamp=function(){return this.setSessionCreatedTimestamp(void 0)},proto.v1.signaling.api.SendSignalResponse.prototype.hasSessionCreatedTimestamp=function(){return null!=n.Message.getField(this,2)},n.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.ReceiveSignalStreamRequest.prototype.toObject=function(e){return proto.v1.signaling.api.ReceiveSignalStreamRequest.toObject(e,this)},proto.v1.signaling.api.ReceiveSignalStreamRequest.toObject=function(e,t){var r={peerId:n.Message.getFieldWithDefault(t,1,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.v1.signaling.api.ReceiveSignalStreamRequest.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.v1.signaling.api.ReceiveSignalStreamRequest;return proto.v1.signaling.api.ReceiveSignalStreamRequest.deserializeBinaryFromReader(r,t)},proto.v1.signaling.api.ReceiveSignalStreamRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readString();e.setPeerId(r);break;default:t.skipField()}}return e},proto.v1.signaling.api.ReceiveSignalStreamRequest.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.v1.signaling.api.ReceiveSignalStreamRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.v1.signaling.api.ReceiveSignalStreamRequest.serializeBinaryToWriter=function(e,t){var r;(r=e.getPeerId()).length>0&&t.writeString(1,r)},proto.v1.signaling.api.ReceiveSignalStreamRequest.prototype.getPeerId=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.v1.signaling.api.ReceiveSignalStreamRequest.prototype.setPeerId=function(e){return n.Message.setProto3StringField(this,1,e)},n.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.ReceiveSignalStreamResponse.prototype.toObject=function(e){return proto.v1.signaling.api.ReceiveSignalStreamResponse.toObject(e,this)},proto.v1.signaling.api.ReceiveSignalStreamResponse.toObject=function(e,t){var r,n={signal:(r=t.getSignal())&&proto.v1.signaling.api.Signal.toObject(e,r)};return e&&(n.$jspbMessageInstance=t),n}),proto.v1.signaling.api.ReceiveSignalStreamResponse.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.v1.signaling.api.ReceiveSignalStreamResponse;return proto.v1.signaling.api.ReceiveSignalStreamResponse.deserializeBinaryFromReader(r,t)},proto.v1.signaling.api.ReceiveSignalStreamResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=new proto.v1.signaling.api.Signal;t.readMessage(r,proto.v1.signaling.api.Signal.deserializeBinaryFromReader),e.setSignal(r);break;default:t.skipField()}}return e},proto.v1.signaling.api.ReceiveSignalStreamResponse.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.v1.signaling.api.ReceiveSignalStreamResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.v1.signaling.api.ReceiveSignalStreamResponse.serializeBinaryToWriter=function(e,t){var r;null!=(r=e.getSignal())&&t.writeMessage(1,r,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(e){return n.Message.setWrapperField(this,1,e)},proto.v1.signaling.api.ReceiveSignalStreamResponse.prototype.clearSignal=function(){return this.setSignal(void 0)},proto.v1.signaling.api.ReceiveSignalStreamResponse.prototype.hasSignal=function(){return null!=n.Message.getField(this,1)},proto.v1.signaling.api.SessionType={UNKNOWN:0,TELEOP:1,PORT_FORWARD:2,OBSERVE:3,HEADLESS:4},i.object.extend(t,proto.v1.signaling.api)},6973:()=>{},3011:()=>{},3951:()=>{},9256:()=>{},2627:()=>{},4834:(e,t,r)=>{"use strict";var n=r(9501),i="undefined"==typeof globalThis?r.g:globalThis;e.exports=function(){for(var e=[],t=0;t<n.length;t++)"function"==typeof i[n[t]]&&(e[e.length]=n[t]);return e}},7241:e=>{"use strict";e.exports={version:"3.13.1"}}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var n={};return(()=>{"use strict";r.r(n),r.d(n,{AuthClient:()=>i,Credentials:()=>q,RtcClient:()=>Be,RtcClientV1:()=>qe,RtcSignalingClient:()=>s,SignalingPromiseClient:()=>H.SignalingPromiseClient,createRtcStreamMessage:()=>Oe});var e=r(6331),t=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))};class i extends e.S{adminSignup(e,r){return t(this,void 0,void 0,(function*(){return yield this.fetch("auth/admin-signup",{token:r,method:"POST",body:e})}))}login(e){return t(this,void 0,void 0,(function*(){return yield this.fetch("auth/login",{method:"POST",body:e,allowUnsafeRetries:!0})}))}loginWithGoogleToken(e){return t(this,void 0,void 0,(function*(){return yield this.fetch("auth/login-google",{method:"POST",body:e,allowUnsafeRetries:!0})}))}refresh(e,r){return t(this,void 0,void 0,(function*(){return yield this.fetch("auth/refresh",{method:"POST",body:{refreshToken:e,tokenExpirationSeconds:r},allowUnsafeRetries:!0})}))}respondToNewPasswordRequiredChallenge(e){return t(this,void 0,void 0,(function*(){return yield this.fetch("auth/respond-to-new-password-required-challenge",{method:"POST",body:e})}))}forgotPassword(e){return t(this,void 0,void 0,(function*(){return yield this.fetch("auth/forgot-password",{method:"POST",body:{email:e}})}))}confirmForgotPassword(e){return t(this,void 0,void 0,(function*(){return yield this.fetch("auth/confirm-forgot-password",{method:"POST",body:e})}))}resendInvitation(e){return t(this,void 0,void 0,(function*(){return yield this.fetch("auth/resend-invitation",{method:"POST",body:{email:e}})}))}changePassword(e){return t(this,arguments,void 0,(function*({token:e,refreshToken:t,currentPassword:r,newPassword:n}){return yield this.fetch("auth/change-password",{token:e,method:"POST",body:{refreshToken:t,currentPassword:r,newPassword:n}})}))}getDeviceCredentials(e){return t(this,void 0,void 0,(function*(){return yield this.fetch("auth/device-credentials",{token:e,method:"POST",allowUnsafeRetries:!0})}))}impersonate(e,r){return t(this,void 0,void 0,(function*(){return yield this.fetch("auth/impersonate",{token:e,method:"POST",allowUnsafeRetries:!0,body:{userId:r}})}))}createServiceAccount(e,r,n,i,o){return t(this,void 0,void 0,(function*(){return yield this.fetch("auth/service-account",{token:e,method:"POST",allowUnsafeRetries:!0,body:{name:r,roleId:n,tags:i,description:o}})}))}getFeatures(e){return t(this,void 0,void 0,(function*(){return(yield this.fetch("auth/features",{token:e})).features}))}checkSso(e,r){return t(this,void 0,void 0,(function*(){return yield this.fetch("auth/check-sso",{method:"POST",body:{email:e,allowUserAutoCreation:r}})}))}loginWithSso(e,r){return t(this,void 0,void 0,(function*(){return yield this.fetch("auth/login-sso",{method:"POST",body:{token:e,refreshToken:r}})}))}}var o=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))};class s extends e.S{createPeer(e,t){return o(this,void 0,void 0,(function*(){return yield this.fetch("peers",{token:e,method:"POST",body:t})}))}getPeers(e){return o(this,void 0,void 0,(function*(){return(yield this.fetch("peers",{token:e})).items}))}refreshPeer(e,t){return o(this,void 0,void 0,(function*(){yield this.fetch(`peers/${t}/refresh`,{token:e,method:"POST",allowUnsafeRetries:!0})}))}createSession(e,t){return o(this,void 0,void 0,(function*(){return yield this.fetch("sessions",{token:e,method:"POST",body:t})}))}refreshSession(e,t){return o(this,void 0,void 0,(function*(){yield this.fetch(`sessions/${t}/refresh`,{token:e,method:"POST",allowUnsafeRetries:!0})}))}deleteSession(e,t){return o(this,void 0,void 0,(function*(){yield this.fetch("sessions/"+t,{token:e,method:"DELETE",allowUnsafeRetries:!0})}))}getSessions(e){return o(this,void 0,void 0,(function*(){return(yield this.fetch("sessions",{token:e})).items}))}getIceServers(e){return o(this,void 0,void 0,(function*(){return(yield this.fetch("ice-servers",{token:e})).items}))}addSignals(e,t,r){return o(this,void 0,void 0,(function*(){yield this.fetch(`sessions/${t}/add-signals`,{token:e,method:"POST",body:r})}))}takeSignals(e,t){return o(this,void 0,void 0,(function*(){return(yield this.fetch(`sessions/${t}/take-signals`,{token:e,method:"POST"})).items}))}}var a=r(3778),l=r(7221),u=r(6075),c=r.n(u);const p="object"==typeof performance&&performance&&"function"==typeof performance.now?performance:Date,f="function"==typeof AbortController?AbortController:class{constructor(){this.signal=new g}abort(e=new Error("This operation was aborted")){this.signal.reason=this.signal.reason||e,this.signal.aborted=!0,this.signal.dispatchEvent({type:"abort",target:this.signal})}},h="function"==typeof AbortSignal,d="function"==typeof f.AbortSignal,g=h?AbortSignal:d?f.AbortController:class{constructor(){this.reason=void 0,this.aborted=!1,this._listeners=[]}dispatchEvent(e){"abort"===e.type&&(this.aborted=!0,this.onabort(e),this._listeners.forEach(t=>t(e),this))}onabort(){}addEventListener(e,t){"abort"===e&&this._listeners.push(t)}removeEventListener(e,t){"abort"===e&&(this._listeners=this._listeners.filter(e=>e!==t))}},y=new Set,v=(e,t)=>{const r="LRU_CACHE_OPTION_"+e;w(r)&&S(r,e+" option","options."+t,T)},m=(e,t)=>{const r="LRU_CACHE_METHOD_"+e;if(w(r)){const{prototype:n}=T,{get:i}=Object.getOwnPropertyDescriptor(n,e);S(r,e+" method",`cache.${t}()`,i)}},b=(...e)=>{"object"==typeof process&&process&&"function"==typeof process.emitWarning?process.emitWarning(...e):console.error(...e)},w=e=>!y.has(e),S=(e,t,r,n)=>{y.add(e);b(`The ${t} is deprecated. Please use ${r} instead.`,"DeprecationWarning",e,n)},_=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),E=e=>_(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?O:null:null;class O extends Array{constructor(e){super(e),this.fill(0)}}class R{constructor(e){if(0===e)return[];const t=E(e);this.heap=new t(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}}class T{constructor(e={}){const{max:t=0,ttl:r,ttlResolution:n=1,ttlAutopurge:i,updateAgeOnGet:o,updateAgeOnHas:s,allowStale:a,dispose:l,disposeAfter:u,noDisposeOnSet:c,noUpdateTTL:p,maxSize:f=0,maxEntrySize:h=0,sizeCalculation:d,fetchMethod:g,fetchContext:m,noDeleteOnFetchRejection:S,noDeleteOnStaleGet:O,allowStaleOnFetchRejection:j,allowStaleOnFetchAbort:P,ignoreFetchAbort:x}=e,{length:A,maxAge:I,stale:C}=e instanceof T?{}:e;if(0!==t&&!_(t))throw new TypeError("max option must be a nonnegative integer");const k=t?E(t):Array;if(!k)throw new Error("invalid max value: "+t);if(this.max=t,this.maxSize=f,this.maxEntrySize=h||this.maxSize,this.sizeCalculation=d||A,this.sizeCalculation){if(!this.maxSize&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if("function"!=typeof this.sizeCalculation)throw new TypeError("sizeCalculation set to non-function")}if(this.fetchMethod=g||null,this.fetchMethod&&"function"!=typeof this.fetchMethod)throw new TypeError("fetchMethod must be a function if specified");if(this.fetchContext=m,!this.fetchMethod&&void 0!==m)throw new TypeError("cannot set fetchContext without fetchMethod");if(this.keyMap=new Map,this.keyList=new Array(t).fill(null),this.valList=new Array(t).fill(null),this.next=new k(t),this.prev=new k(t),this.head=0,this.tail=0,this.free=new R(t),this.initialFill=1,this.size=0,"function"==typeof l&&(this.dispose=l),"function"==typeof u?(this.disposeAfter=u,this.disposed=[]):(this.disposeAfter=null,this.disposed=null),this.noDisposeOnSet=!!c,this.noUpdateTTL=!!p,this.noDeleteOnFetchRejection=!!S,this.allowStaleOnFetchRejection=!!j,this.allowStaleOnFetchAbort=!!P,this.ignoreFetchAbort=!!x,0!==this.maxEntrySize){if(0!==this.maxSize&&!_(this.maxSize))throw new TypeError("maxSize must be a positive integer if specified");if(!_(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.initializeSizeTracking()}if(this.allowStale=!!a||!!C,this.noDeleteOnStaleGet=!!O,this.updateAgeOnGet=!!o,this.updateAgeOnHas=!!s,this.ttlResolution=_(n)||0===n?n:1,this.ttlAutopurge=!!i,this.ttl=r||I||0,this.ttl){if(!_(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.initializeTTLTracking()}if(0===this.max&&0===this.ttl&&0===this.maxSize)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.max&&!this.maxSize){const e="LRU_CACHE_UNBOUNDED";if(w(e)){y.add(e);b("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",e,T)}}C&&v("stale","allowStale"),I&&v("maxAge","ttl"),A&&v("length","sizeCalculation")}getRemainingTTL(e){return this.has(e,{updateAgeOnHas:!1})?1/0:0}initializeTTLTracking(){this.ttls=new O(this.max),this.starts=new O(this.max),this.setItemTTL=(e,t,r=p.now())=>{if(this.starts[e]=0!==t?r:0,this.ttls[e]=t,0!==t&&this.ttlAutopurge){const r=setTimeout(()=>{this.isStale(e)&&this.delete(this.keyList[e])},t+1);r.unref&&r.unref()}},this.updateItemAge=e=>{this.starts[e]=0!==this.ttls[e]?p.now():0},this.statusTTL=(r,n)=>{r&&(r.ttl=this.ttls[n],r.start=this.starts[n],r.now=e||t(),r.remainingTTL=r.now+r.ttl-r.start)};let e=0;const t=()=>{const t=p.now();if(this.ttlResolution>0){e=t;const r=setTimeout(()=>e=0,this.ttlResolution);r.unref&&r.unref()}return t};this.getRemainingTTL=r=>{const n=this.keyMap.get(r);return void 0===n?0:0===this.ttls[n]||0===this.starts[n]?1/0:this.starts[n]+this.ttls[n]-(e||t())},this.isStale=r=>0!==this.ttls[r]&&0!==this.starts[r]&&(e||t())-this.starts[r]>this.ttls[r]}updateItemAge(e){}statusTTL(e,t){}setItemTTL(e,t,r){}isStale(e){return!1}initializeSizeTracking(){this.calculatedSize=0,this.sizes=new O(this.max),this.removeItemSize=e=>{this.calculatedSize-=this.sizes[e],this.sizes[e]=0},this.requireSize=(e,t,r,n)=>{if(this.isBackgroundFetch(t))return 0;if(!_(r)){if(!n)throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");if("function"!=typeof n)throw new TypeError("sizeCalculation must be a function");if(r=n(t,e),!_(r))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}return r},this.addItemSize=(e,t,r)=>{if(this.sizes[e]=t,this.maxSize){const t=this.maxSize-this.sizes[e];for(;this.calculatedSize>t;)this.evict(!0)}this.calculatedSize+=this.sizes[e],r&&(r.entrySize=t,r.totalCalculatedSize=this.calculatedSize)}}removeItemSize(e){}addItemSize(e,t){}requireSize(e,t,r,n){if(r||n)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache")}*indexes({allowStale:e=this.allowStale}={}){if(this.size)for(let t=this.tail;this.isValidIndex(t)&&(!e&&this.isStale(t)||(yield t),t!==this.head);)t=this.prev[t]}*rindexes({allowStale:e=this.allowStale}={}){if(this.size)for(let t=this.head;this.isValidIndex(t)&&(!e&&this.isStale(t)||(yield t),t!==this.tail);)t=this.next[t]}isValidIndex(e){return void 0!==e&&this.keyMap.get(this.keyList[e])===e}*entries(){for(const e of this.indexes())void 0===this.valList[e]||void 0===this.keyList[e]||this.isBackgroundFetch(this.valList[e])||(yield[this.keyList[e],this.valList[e]])}*rentries(){for(const e of this.rindexes())void 0===this.valList[e]||void 0===this.keyList[e]||this.isBackgroundFetch(this.valList[e])||(yield[this.keyList[e],this.valList[e]])}*keys(){for(const e of this.indexes())void 0===this.keyList[e]||this.isBackgroundFetch(this.valList[e])||(yield this.keyList[e])}*rkeys(){for(const e of this.rindexes())void 0===this.keyList[e]||this.isBackgroundFetch(this.valList[e])||(yield this.keyList[e])}*values(){for(const e of this.indexes())void 0===this.valList[e]||this.isBackgroundFetch(this.valList[e])||(yield this.valList[e])}*rvalues(){for(const e of this.rindexes())void 0===this.valList[e]||this.isBackgroundFetch(this.valList[e])||(yield this.valList[e])}[Symbol.iterator](){return this.entries()}find(e,t){for(const r of this.indexes()){const n=this.valList[r],i=this.isBackgroundFetch(n)?n.__staleWhileFetching:n;if(void 0!==i&&e(i,this.keyList[r],this))return this.get(this.keyList[r],t)}}forEach(e,t=this){for(const r of this.indexes()){const n=this.valList[r],i=this.isBackgroundFetch(n)?n.__staleWhileFetching:n;void 0!==i&&e.call(t,i,this.keyList[r],this)}}rforEach(e,t=this){for(const r of this.rindexes()){const n=this.valList[r],i=this.isBackgroundFetch(n)?n.__staleWhileFetching:n;void 0!==i&&e.call(t,i,this.keyList[r],this)}}get prune(){return m("prune","purgeStale"),this.purgeStale}purgeStale(){let e=!1;for(const t of this.rindexes({allowStale:!0}))this.isStale(t)&&(this.delete(this.keyList[t]),e=!0);return e}dump(){const e=[];for(const t of this.indexes({allowStale:!0})){const r=this.keyList[t],n=this.valList[t],i=this.isBackgroundFetch(n)?n.__staleWhileFetching:n;if(void 0===i)continue;const o={value:i};if(this.ttls){o.ttl=this.ttls[t];const e=p.now()-this.starts[t];o.start=Math.floor(Date.now()-e)}this.sizes&&(o.size=this.sizes[t]),e.unshift([r,o])}return e}load(e){this.clear();for(const[t,r]of e){if(r.start){const e=Date.now()-r.start;r.start=p.now()-e}this.set(t,r.value,r)}}dispose(e,t,r){}set(e,t,{ttl:r=this.ttl,start:n,noDisposeOnSet:i=this.noDisposeOnSet,size:o=0,sizeCalculation:s=this.sizeCalculation,noUpdateTTL:a=this.noUpdateTTL,status:l}={}){if(o=this.requireSize(e,t,o,s),this.maxEntrySize&&o>this.maxEntrySize)return l&&(l.set="miss",l.maxEntrySizeExceeded=!0),this.delete(e),this;let u=0===this.size?void 0:this.keyMap.get(e);if(void 0===u)u=this.newIndex(),this.keyList[u]=e,this.valList[u]=t,this.keyMap.set(e,u),this.next[this.tail]=u,this.prev[u]=this.tail,this.tail=u,this.size++,this.addItemSize(u,o,l),l&&(l.set="add"),a=!1;else{this.moveToTail(u);const r=this.valList[u];if(t!==r){if(this.isBackgroundFetch(r)?r.__abortController.abort(new Error("replaced")):i||(this.dispose(r,e,"set"),this.disposeAfter&&this.disposed.push([r,e,"set"])),this.removeItemSize(u),this.valList[u]=t,this.addItemSize(u,o,l),l){l.set="replace";const e=r&&this.isBackgroundFetch(r)?r.__staleWhileFetching:r;void 0!==e&&(l.oldValue=e)}}else l&&(l.set="update")}if(0===r||0!==this.ttl||this.ttls||this.initializeTTLTracking(),a||this.setItemTTL(u,r,n),this.statusTTL(l,u),this.disposeAfter)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift());return this}newIndex(){return 0===this.size?this.tail:this.size===this.max&&0!==this.max?this.evict(!1):0!==this.free.length?this.free.pop():this.initialFill++}pop(){if(this.size){const e=this.valList[this.head];return this.evict(!0),e}}evict(e){const t=this.head,r=this.keyList[t],n=this.valList[t];return this.isBackgroundFetch(n)?n.__abortController.abort(new Error("evicted")):(this.dispose(n,r,"evict"),this.disposeAfter&&this.disposed.push([n,r,"evict"])),this.removeItemSize(t),e&&(this.keyList[t]=null,this.valList[t]=null,this.free.push(t)),this.head=this.next[t],this.keyMap.delete(r),this.size--,t}has(e,{updateAgeOnHas:t=this.updateAgeOnHas,status:r}={}){const n=this.keyMap.get(e);if(void 0!==n){if(!this.isStale(n))return t&&this.updateItemAge(n),r&&(r.has="hit"),this.statusTTL(r,n),!0;r&&(r.has="stale",this.statusTTL(r,n))}else r&&(r.has="miss");return!1}peek(e,{allowStale:t=this.allowStale}={}){const r=this.keyMap.get(e);if(void 0!==r&&(t||!this.isStale(r))){const e=this.valList[r];return this.isBackgroundFetch(e)?e.__staleWhileFetching:e}}backgroundFetch(e,t,r,n){const i=void 0===t?void 0:this.valList[t];if(this.isBackgroundFetch(i))return i;const o=new f;r.signal&&r.signal.addEventListener("abort",()=>o.abort(r.signal.reason));const s={signal:o.signal,options:r,context:n},a=(n,i=!1)=>{const{aborted:a}=o.signal,c=r.ignoreFetchAbort&&void 0!==n;return r.status&&(a&&!i?(r.status.fetchAborted=!0,r.status.fetchError=o.signal.reason,c&&(r.status.fetchAbortIgnored=!0)):r.status.fetchResolved=!0),!a||c||i?(this.valList[t]===u&&(void 0===n?u.__staleWhileFetching?this.valList[t]=u.__staleWhileFetching:this.delete(e):(r.status&&(r.status.fetchUpdated=!0),this.set(e,n,s.options))),n):l(o.signal.reason)},l=n=>{const{aborted:i}=o.signal,s=i&&r.allowStaleOnFetchAbort,a=s||r.allowStaleOnFetchRejection,l=a||r.noDeleteOnFetchRejection;if(this.valList[t]===u){!l||void 0===u.__staleWhileFetching?this.delete(e):s||(this.valList[t]=u.__staleWhileFetching)}if(a)return r.status&&void 0!==u.__staleWhileFetching&&(r.status.returnedStale=!0),u.__staleWhileFetching;if(u.__returned===u)throw n};r.status&&(r.status.fetchDispatched=!0);const u=new Promise((t,n)=>{this.fetchMethod(e,i,s).then(e=>t(e),n),o.signal.addEventListener("abort",()=>{r.ignoreFetchAbort&&!r.allowStaleOnFetchAbort||(t(),r.allowStaleOnFetchAbort&&(t=e=>a(e,!0)))})}).then(a,e=>(r.status&&(r.status.fetchRejected=!0,r.status.fetchError=e),l(e)));return u.__abortController=o,u.__staleWhileFetching=i,u.__returned=null,void 0===t?(this.set(e,u,{...s.options,status:void 0}),t=this.keyMap.get(e)):this.valList[t]=u,u}isBackgroundFetch(e){return e&&"object"==typeof e&&"function"==typeof e.then&&Object.prototype.hasOwnProperty.call(e,"__staleWhileFetching")&&Object.prototype.hasOwnProperty.call(e,"__returned")&&(e.__returned===e||null===e.__returned)}async fetch(e,{allowStale:t=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet,noDeleteOnStaleGet:n=this.noDeleteOnStaleGet,ttl:i=this.ttl,noDisposeOnSet:o=this.noDisposeOnSet,size:s=0,sizeCalculation:a=this.sizeCalculation,noUpdateTTL:l=this.noUpdateTTL,noDeleteOnFetchRejection:u=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:c=this.allowStaleOnFetchRejection,ignoreFetchAbort:p=this.ignoreFetchAbort,allowStaleOnFetchAbort:f=this.allowStaleOnFetchAbort,fetchContext:h=this.fetchContext,forceRefresh:d=!1,status:g,signal:y}={}){if(!this.fetchMethod)return g&&(g.fetch="get"),this.get(e,{allowStale:t,updateAgeOnGet:r,noDeleteOnStaleGet:n,status:g});const v={allowStale:t,updateAgeOnGet:r,noDeleteOnStaleGet:n,ttl:i,noDisposeOnSet:o,size:s,sizeCalculation:a,noUpdateTTL:l,noDeleteOnFetchRejection:u,allowStaleOnFetchRejection:c,allowStaleOnFetchAbort:f,ignoreFetchAbort:p,status:g,signal:y};let m=this.keyMap.get(e);if(void 0===m){g&&(g.fetch="miss");const t=this.backgroundFetch(e,m,v,h);return t.__returned=t}{const n=this.valList[m];if(this.isBackgroundFetch(n)){const e=t&&void 0!==n.__staleWhileFetching;return g&&(g.fetch="inflight",e&&(g.returnedStale=!0)),e?n.__staleWhileFetching:n.__returned=n}const i=this.isStale(m);if(!d&&!i)return g&&(g.fetch="hit"),this.moveToTail(m),r&&this.updateItemAge(m),this.statusTTL(g,m),n;const o=this.backgroundFetch(e,m,v,h),s=void 0!==o.__staleWhileFetching,a=s&&t;return g&&(g.fetch=s&&i?"stale":"refresh",a&&i&&(g.returnedStale=!0)),a?o.__staleWhileFetching:o.__returned=o}}get(e,{allowStale:t=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet,noDeleteOnStaleGet:n=this.noDeleteOnStaleGet,status:i}={}){const o=this.keyMap.get(e);if(void 0!==o){const s=this.valList[o],a=this.isBackgroundFetch(s);return this.statusTTL(i,o),this.isStale(o)?(i&&(i.get="stale"),a?(i&&(i.returnedStale=t&&void 0!==s.__staleWhileFetching),t?s.__staleWhileFetching:void 0):(n||this.delete(e),i&&(i.returnedStale=t),t?s:void 0)):(i&&(i.get="hit"),a?s.__staleWhileFetching:(this.moveToTail(o),r&&this.updateItemAge(o),s))}i&&(i.get="miss")}connect(e,t){this.prev[t]=e,this.next[e]=t}moveToTail(e){e!==this.tail&&(e===this.head?this.head=this.next[e]:this.connect(this.prev[e],this.next[e]),this.connect(this.tail,e),this.tail=e)}get del(){return m("del","delete"),this.delete}delete(e){let t=!1;if(0!==this.size){const r=this.keyMap.get(e);if(void 0!==r)if(t=!0,1===this.size)this.clear();else{this.removeItemSize(r);const t=this.valList[r];this.isBackgroundFetch(t)?t.__abortController.abort(new Error("deleted")):(this.dispose(t,e,"delete"),this.disposeAfter&&this.disposed.push([t,e,"delete"])),this.keyMap.delete(e),this.keyList[r]=null,this.valList[r]=null,r===this.tail?this.tail=this.prev[r]:r===this.head?this.head=this.next[r]:(this.next[this.prev[r]]=this.next[r],this.prev[this.next[r]]=this.prev[r]),this.size--,this.free.push(r)}}if(this.disposed)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift());return t}clear(){for(const e of this.rindexes({allowStale:!0})){const t=this.valList[e];if(this.isBackgroundFetch(t))t.__abortController.abort(new Error("deleted"));else{const r=this.keyList[e];this.dispose(t,r,"delete"),this.disposeAfter&&this.disposed.push([t,r,"delete"])}}if(this.keyMap.clear(),this.valList.fill(null),this.keyList.fill(null),this.ttls&&(this.ttls.fill(0),this.starts.fill(0)),this.sizes&&this.sizes.fill(0),this.head=0,this.tail=0,this.initialFill=1,this.free.length=0,this.calculatedSize=0,this.size=0,this.disposed)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift())}get reset(){return m("reset","clear"),this.clear}get length(){return((e,t)=>{const r="LRU_CACHE_PROPERTY_"+e;if(w(r)){const{prototype:n}=T,{get:i}=Object.getOwnPropertyDescriptor(n,e);S(r,e+" property","cache."+t,i)}})("length","size"),this.size}static get AbortController(){return f}static get AbortSignal(){return g}}const j=T;var P=r(2273),x=r(6452);var A=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))};class I extends class{constructor(e,t){this.type=e,this.name=t}}{constructor(e){super("simple","LogReporter"),this.message=e}send(e){return A(this,void 0,void 0,(function*(){var t,r;x.vF.debug(this.message,(t=e.reduce((e,t)=>Object.assign(Object.assign({},e),{[t.name]:t.stat}),{}),r=e=>{const{sum:t,count:r}=e,n=t/r;return Object.assign(Object.assign({},e),{average:n})},Object.keys(t).reduce((e,n)=>Object.assign(Object.assign({},e),{[n]:r(t[n])}),{})))}))}}const C=/^[a-zA-Z0-9-_.,:?'"()@\/\\#$+ ]{1,255}$/,k=/^[*a-zA-Z0-9-_.,:?'"()@\/\\#$+ ]{1,255}$/;function M(e,t=!1){return!!(null==e?void 0:e.match(t?k:C))}var F=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))};function B({func:e,delay:t,immediate:r=!0}){let n=!1,i=setTimeout((function r(){return F(this,void 0,void 0,(function*(){if(n)return;const s=(new Date).getTime();try{o=e(),yield o}finally{if(!n){const e=(new Date).getTime();i=setTimeout(r,Math.max(t-(e-s),0))}}}))}),r?0:t),o=Promise.resolve();return{stop(){return F(this,void 0,void 0,(function*(){n=!0,clearTimeout(i),yield o}))}}}var D=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))};const L=r(8758);class N{constructor(e){this.buffer={},this.reporters=[],this.flushInterval=B({func:()=>this.flushStats(),delay:N.samplePeriodMs}),this.tags=this.filterTags((null==e?void 0:e.tags)||{app:P.yA,version:P.rE,namespace:P.MF})}shutdown(){return D(this,void 0,void 0,(function*(){yield this.flushInterval.stop(),yield this.flushStats(),yield(0,l.c)(2*a.p.second)}))}aggregate(e,t,r){this.addToBuffer(this.buffer,this.encodeKey({metric:e,tags:this.filterTags(r||{})}),"number"==typeof t?{min:t,max:t,sum:t,count:1}:t)}increment(e,t){this.aggregate(e,1,t)}timer(e,t,r){return D(this,void 0,void 0,(function*(){const n=L(),i=yield t(),o=L();return this.aggregate(e,o-n,r),i}))}registerStatsReporter(e){this.reporters.push(e)}setTag(e,t){const r=this.filterTags({[e]:t});this.tags=Object.assign(Object.assign({},this.tags),r)}addToBuffer(e,t,r){if(e[t]){const{min:n,max:i,sum:o,count:s}=e[t];e[t]={min:Math.min(n,r.min),max:Math.max(i,r.max),sum:o+r.sum,count:s+r.count}}else e[t]=r}write(e){return D(this,void 0,void 0,(function*(){yield Promise.all(this.reporters.map(t=>D(this,void 0,void 0,(function*(){let r;const n={};switch(t.type){case"simple":for(const[t,r]of Object.entries(e)){const{metric:e}=this.decodeKey(t);this.addToBuffer(n,this.encodeKey({metric:e}),r)}r=n;break;case"tagged":r=e;break;default:!function(e){throw new Error(`Unreachable type encountered (${e})`)}(t.type)}const i=Object.entries(r);if(i.length>0)return t.send(i.map(([e,t])=>{const{metric:r,tags:n}=this.decodeKey(e);return{name:r,tags:Object.assign(Object.assign({},n),this.tags),stat:t}}),N.samplePeriodMs).catch(e=>{x.vF.debug("Failed to write stats to "+t.name,{error:e})})}))))}))}flushStats(){return D(this,void 0,void 0,(function*(){yield this.write(this.buffer),this.buffer={}}))}encodeKey(e){return c()(Object.assign(Object.assign({},e),Object.keys(e.tags||{}).length>0?{tags:e.tags}:{}))}decodeKey(e){return JSON.parse(e)}filterTags(e){return Object.entries(e||{}).reduce((e,[t,r])=>(M(t)&&M(r)&&(e[t]=r),e),{})}}N.samplePeriodMs=5*a.p.minute;const z=!!P.op,U=new N;z||["local","on-prem"].includes(P.MF)||U.registerStatsReporter(new I("stats"));var G=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))};class V extends class{constructor(e){this.options=e,this.cache=new j(Object.assign(Object.assign(Object.assign({},e.dispose||e.disposeAfter?{ttlAutopurge:!0}:{}),e),{dispose:(...t)=>{var r;"evict"===t[2]&&U.increment("lru-eviction",{name:e.name}),null===(r=e.dispose)||void 0===r||r.call(e,...t)},disposeAfter:(...t)=>{var r;this.updateStats(),null===(r=e.disposeAfter)||void 0===r||r.call(e,...t)}})),this.stringify=e.fastStringify?JSON.stringify:c()}set(e,t,r){const n=this.stringify(e);if(!this.cache.set(n,t,{ttl:r})){const e=this.cache.sizeCalculation?this.cache.sizeCalculation(t,n):"unknown";throw Error(`Value too large (${e} > ${this.cache.max})`)}this.updateStats()}get(e){const{name:t}=this.options,r=this.stringify(e),n=this.cache.getRemainingTTL(r);return n<=0?U.increment("cache-miss",{name:t}):n!==1/0&&U.aggregate("cache-item-ttl",n,{name:t}),this.cache.get(r)}delete(e){this.cache.delete(this.stringify(e))}peek(e){return this.cache.peek(this.stringify(e))}size(){return this.cache.size}clear(){this.cache.clear()}forEach(e){this.cache.forEach(e)}purgeStale(){return this.cache.purgeStale()}updateStats(){const{name:e}=this.options;U.aggregate("cache-item-count",this.cache.size,{name:e}),void 0!==this.cache.calculatedSize&&U.aggregate("cache-length",this.cache.calculatedSize,{name:e})}}{constructor(e){if(super(e),this.expireRejectedPromiseValues=void 0===e.expireRejectedPromiseValues||e.expireRejectedPromiseValues,this.rejectedPromiseValueTtl=void 0!==e.rejectedPromiseValueTtl?e.rejectedPromiseValueTtl:a.p.second,this.rejectedPromiseValueTtl<0)throw new Error("rejectedPromiseValueTtl must not be negative")}set(e,t,r){super.set(e,t,r),this.expireRejectedPromiseValues&&t.catch(()=>G(this,void 0,void 0,(function*(){yield(0,l.c)(this.rejectedPromiseValueTtl),this.peek(e)===t&&this.delete(e)})))}}var W=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))};class q{constructor(e,t,r){this.authClient=e,this.email=t,this.password=r,this.tokenTtlMs=1*a.p.hour,this.tokenCache=new V({name:"Credentials-tokenCache",max:100,ttl:this.tokenTtlMs-5*a.p.minute,fastStringify:!0})}getToken(){return W(this,void 0,void 0,(function*(){let e=this.tokenCache.get(this.email);return e||(e=(()=>W(this,void 0,void 0,(function*(){const{authentication:e}=yield this.authClient.login({email:this.email,password:this.password,tokenExpirationSeconds:this.tokenTtlMs/a.p.second});if(!e)throw new Error("User account not verified.");return e.accessToken})))(),this.tokenCache.set(this.email,e)),e}))}}var H=r(3804),$=r(5949),Z=r(2964),Y=r(7396),J=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))};class K extends Y.V{constructor(e){super(e)}postLanRtcOffer(e){return J(this,void 0,void 0,(function*(){return yield this.fetch("v1/lan-rtc-offer",{method:"POST",body:e})}))}}var X=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))};function Q(e){return X(this,void 0,void 0,(function*(){return(yield Promise.all(e.map(e=>e.catch(e=>e)))).filter(e=>e instanceof Error)}))}function ee(e,t){if(void 0===e)throw new Error("Value is undefined"+(t?": "+t:""))}function te(e,t){if(null===e)throw new Error("Value is null"+(t?": "+t:""))}function re(e){return ee(e),e}function ne(e,t){const r=e.reduce((e,t)=>[...e,...t.urls],[]).filter(e=>ie(e,t)).sort(e=>oe(e,"udp")?-1:0).shift();if(r)return Object.assign(Object.assign({},re(e.find(e=>e.urls.includes(r)))),{urls:[r]})}function ie(e,t){switch(t){case"stun":return/^stuns?:/.test(e);case"turn":return/^turns?:/.test(e)}}function oe(e,t){return e.endsWith("transport="+t)}var se=r(3563),ae=r(4620);class le extends Error{constructor(e,t){super(`Deadline expired after ${e}ms + ${t}ms`)}}class ue{static withDeadline(e,t){const r=new Promise((e,r)=>{setTimeout(()=>{r(new le(t,this.grpcCallDeadlineSlopMs))},t+this.grpcCallDeadlineSlopMs)});return Promise.race([e,r])}}ue.grpcCallDeadlineSlopMs=500*a.p.millisecond;var ce=r(8311);const pe={ordered:!1,maxPacketLifeTime:300*a.p.millisecond},fe={ordered:!0},he={ordered:!0},de={ordered:!1,maxRetransmits:0},ge={ordered:!1,maxRetransmits:0},ye=e=>"received"in e&&void 0!==e.received,ve=e=>!("received"in e)||void 0===e.received,me=2*a.p.second,be=10*a.p.second;function we(e,t={}){const r=Array.from(e.values()),n=r.filter(ye),i=n.length>0,o=Math.max(...r.map(e=>e.sent)),s=Math.max(...n.map(e=>e.received));let l;if(i){const e=Date.now()-o<=a.p.millisecond?r.length-1:r.length,t=n.length>e?e:n.length,i=n.map(e=>e.received-e.sent),{standardDeviation:u,mean:c,jitter:p}=function(e){const t=e.length;if(0===t)return{mean:NaN,standardDeviation:-1,jitter:NaN};const r=e.reduce((e,t)=>e+t,0)/t,n=Math.sqrt(e.map(e=>Math.pow(e-r,2)).reduce((e,t)=>e+t)/t);if(1===t)return{mean:r,standardDeviation:n,jitter:NaN};let i=0;for(let r=1;r<t;r++)i+=Math.abs(e[r]-e[r-1]);return{mean:r,standardDeviation:n,jitter:i/(t-1)}}(i),f=r.filter(e=>e.sent<s-me),h=f.filter(ve),d=0===h.length?0:h.length/f.length;l={pingsSent:e,pongsReceived:t,average:c,standardDeviation:u,jitter:p,max:Math.max(...i),min:Math.min(...i),loss:d}}else l=null;const{temporalNow:u=Date.now()}=t,c=(i?s:u)-be;return Array.from(e.entries()).forEach(t=>{const[r,n]=t;n.sent<c&&e.delete(r)}),l}function Se({entityId:e,streamName:t,streamType:r}){return`${e}.${t}.${r}`}var _e=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))};class Ee{constructor(e,t){this.counts={localSent:new Map,localReceived:new Map,remoteSent:new Map,remoteReceived:new Map},this.sessionId=e,this.connection=t}updateRemoteMessagesCounts(e){if(e.payload.streamsInfo){this.counts.remoteSent=new Map,this.counts.remoteReceived=new Map;for(const t of e.payload.streamsInfo.items)this.counts.remoteSent.set(t.streamId,t.sentCount),this.counts.remoteReceived.set(t.streamId,t.receivedCount)}}getLocalStreamsInfo(e){const{localSent:t,localReceived:r}=this.counts;return{items:[...new Set([...t.keys(),...r.keys()])].map(e=>{var n,i;return{streamId:e,sentCount:null!==(n=t.get(e))&&void 0!==n?n:0,receivedCount:null!==(i=r.get(e))&&void 0!==i?i:0}}),timestamp:e}}incrementLocalSent(e){const{localSent:t}=this.counts,r=Se(e.header.stream);t.set(r,(t.get(r)||0)+1)}incrementLocalReceived(e){const{localReceived:t}=this.counts,r=Se(e.header.stream),n=t.get(r)||0;if(0===n){const{streamName:t,streamType:r}=e.header.stream;x.vF.debug("RTC client received first message for stream",{streamName:t,streamType:r})}t.set(r,n+1)}uploadMetrics(){return _e(this,void 0,void 0,(function*(){const{sessionId:e}=this,t=yield this.connection.peerConnection.getStats(),r={};t.forEach(e=>r[e.id]=e),x.vF.debug("rtc-stats",Object.assign(Object.assign({},r),{sessionId:e}));const{localSent:n,localReceived:i,remoteSent:o,remoteReceived:s}=this.counts,a=[...new Set([...n.keys(),...i.keys()])].reduce((e,t)=>{const r=n.get(t),a=i.get(t),l=o.get(t),u=s.get(t);return Object.assign(Object.assign({},e),{[`local-${t}-sent`]:r,[`local-${t}-received`]:a,[`remote-${t}-sent`]:l,[`remote-${t}-received`]:u})},{sessionId:e});x.vF.debug("rtc-message-report",Object.assign({deviceId:this.connection.getRemoteDeviceId()},a))}))}}function Oe(e,t,r){return{header:{stream:e,created:Date.now(),frameId:r||""},payload:t}}function Re(e){const t=e.localCandidate.candidateType,r=e.remoteCandidate.candidateType;return"host"===t&&"host"===r?"local":"relay"===t||"relay"===r?"TURN":"STUN"}function Te(e){return new Set(["disconnected","failed","closed"]).has(e.iceConnectionState)}function je(e){switch(e.header.stream.streamType){case"twist":{const{twist:t}=e.payload;if(!t)throw Error("twist not in payload of RTC message with type twist");return{header:e.header,payload:{twist:{linear:Object.assign({x:0,y:0,z:0},t.linear),angular:Object.assign({x:0,y:0,z:0},t.angular)}}}}case"pose":{const{pose:t}=e.payload;if(!t)throw Error("pose not in payload of RTC message with type pose");return{header:e.header,payload:{pose:{translation:Object.assign({x:0,y:0,z:0},t.translation),rotation:Object.assign({x:0,y:0,z:0,w:0},t.rotation)}}}}case"pose-with-covariance":{const{poseWithCovariance:t}=e.payload;if(!t)throw Error("poseWithCovariance not in payload of RTC message with type pose-with-covariance");const r=new Array(36).fill(0);return t.covariance.forEach((e,t)=>{if(t>=36)throw Error("covariance contains more than 36 elements");r[t]=e}),{header:e.header,payload:{poseWithCovariance:{pose:{translation:Object.assign({x:0,y:0,z:0},t.pose.translation),rotation:Object.assign({x:0,y:0,z:0,w:0},t.pose.rotation)},covariance:r}}}}case"point":{const{point:t}=e.payload;if(!t)throw Error("point not in payload of RTC message with type point");return{header:e.header,payload:{point:Object.assign({x:0,y:0,z:0},t)}}}default:return e}}var Pe=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))};class xe{get peerConnection(){return te(this._peerConnection,"RTCPeerConnection is closed!"),this._peerConnection}constructor(e,t,r,n){this.iceServers=t,this.config=r,this.dataChannelNotifier=n,this.connectTimeoutMs=20*a.p.second,this.iceGatheringTimeoutMs=3*a.p.second,this.pingUpdateTimeoutMs=1*a.p.second,this.pingV2UpdateTimeoutMs=250*a.p.millisecond,this.pingV2MetricsGatherTimeoutMs=1*a.p.second,this.streamsInfoUpdateTimeoutMs=2*a.p.second,this.reassemblyTimeoutMs=500*a.p.millisecond,this.reassemblyTableCleanupMs=1*a.p.second,this.heartbeatTimeoutMs=20*a.p.millisecond,this._peerConnection=null,this.heartbeatChannel=null,this.latestTtlStreamChannel=null,this.reliableStreamChannel=null,this.latestReliableStreamChannel=null,this.latestTryOnceStreamChannel=null,this.streamLatestTimestamp=new Map,this.reassemblyTable=new Map,this.reassemblyTableLastTimestamp=new Map,this.closeCalled=!1,this.gotOffer=!1,this.hasIceCandidate=!1,this.pingV2Map=new Map,this.sendPingV2=()=>{const{latestTryOnceStreamChannel:e}=this;if(!e)return;const t=(new Date).getTime(),r=(0,Z.A)();this.sendSystemMessage(e,{type:"ping-v2",payload:{timestamp:t,id:r}}),this.pingV2Map.set(r,{sent:t})},this.gatherPingV2Metrics=()=>{const e=we(this.pingV2Map);if(e){const t=this.getRemoteDeviceId();this.pingInfo=e,U.aggregate("rtc-ping-average",e.average,Object.assign({},t?{deviceId:t}:{})),U.aggregate("rtc-ping-loss",e.loss,Object.assign({},t?{deviceId:t}:{})),U.aggregate("rtc-jitter",e.jitter,Object.assign({},t?{deviceId:t}:{}))}},this._peerConnection=e;const{isOffer:i}=r.baseConfig;i?this.initializeChannels(e):e.ondatachannel=e=>{switch(e.channel.label){case"stream.latest-ttl":this.latestTtlStreamChannel=e.channel;break;case"stream.reliable":this.reliableStreamChannel=e.channel;break;case"stream.latest-reliable":this.latestReliableStreamChannel=e.channel;break;case"stream.latest-try-once":this.latestTryOnceStreamChannel=e.channel;break;case"heartbeat":return void(this.heartbeatChannel=e.channel);default:return void this.dataChannelNotifier(e.channel)}this.setupChannel(e.channel)},this.pingUpdateTimeout=setInterval(()=>{const{reliableStreamChannel:e}=this;e&&this.sendSystemMessage(e,{type:"ping"})},this.pingUpdateTimeoutMs),this.pingV2UpdateTimeout=setInterval(this.sendPingV2,this.pingV2UpdateTimeoutMs),this.pingV2MetricsGatherTimeout=setInterval(this.gatherPingV2Metrics,this.pingV2MetricsGatherTimeoutMs),this.streamsInfoUpdateTimeout=setInterval(()=>{const{latestTtlStreamChannel:e}=this;e&&this.sendSystemMessage(e,{type:"streams-info"})},this.streamsInfoUpdateTimeoutMs),this.reassemblyTableCleanupTimeout=setInterval(()=>{const e=(new Date).getTime();this.reassemblyTableLastTimestamp.forEach((t,r,n)=>{e>r+this.reassemblyTimeoutMs&&this.reassemblyTable.delete(t)})},this.reassemblyTableCleanupMs),this.heartbeatTimeout=setInterval(()=>{const{heartbeatChannel:e}=this;e&&"open"===e.readyState&&e.send(new Uint8Array([1]))},this.heartbeatTimeoutMs)}handleSignal(e){return Pe(this,void 0,void 0,(function*(){const{peerConnection:t}=this,{track:r}=this.config.baseConfig,n=(()=>{try{return JSON.parse(e.getPayload())}catch(e){return}})();if(!n)return void x.vF.error("Received unparseable signal.");x.vF.debug("Handling signal",{description:n});const{sdp:i,type:o}=n;if(!i||!o)return void x.vF.warn("Received non-SDP signal");const{signalingState:s,connectionState:a}=t;if("stable"!==s||"connected"!==a)if(t.remoteDescription)x.vF.warn("Received SDP after remote description was set: "+i);else{if("offer"===o){if("stable"!==s)return void x.vF.warn("Received offer SDP when signaling is ongoing.");yield t.setRemoteDescription(n);const i=yield t.createAnswer();yield t.setLocalDescription(i);const o=e.clone();return null==r||r("Answer Received",o),o.setPayload(JSON.stringify(i)),o.setReceiverId(e.getSenderId()),o.setSenderId(e.getReceiverId()),o}if("answer"===o){if("stable"===s)return void x.vF.warn("Received answer SDP when signaling hasn't started.");yield t.setRemoteDescription(n)}}else x.vF.warn("Received SDP when already connected: "+i)}))}send(e,t){const r=this.getChannelFromLabel(t.channelLabel);r?this.sendOnChannel(r,e):x.vF.warn("Send called with unexpected channel label",{channelLabel:t.channelLabel})}controlRemoteStream(e){var t;this.sendSystemMessage((te(t=this.reliableStreamChannel),t),{type:"stream-control",streamControl:e})}isActive(){return new Set(["new","checking","connected","completed"]).has(this.peerConnection.iceConnectionState)||this.isReady()}isReady(){const{reliableStreamChannel:e,latestTtlStreamChannel:t,latestTryOnceStreamChannel:r,latestReliableStreamChannel:n}=this;return"open"===(null==e?void 0:e.readyState)&&"open"===(null==t?void 0:t.readyState)&&"open"===(null==r?void 0:r.readyState)&&"open"===(null==n?void 0:n.readyState)}close(){return Pe(this,void 0,void 0,(function*(){var e,t,r,n,i,o,s;this.closeCalled||(this.closeCalled=!0,yield null===(e=this.sessionMetrics)||void 0===e?void 0:e.uploadMetrics(),Ae(this.pingUpdateTimeout),Ae(this.pingV2UpdateTimeout),Ae(this.pingV2MetricsGatherTimeout),Ae(this.reassemblyTableCleanupTimeout),Ae(this.streamsInfoUpdateTimeout),Ae(this.heartbeatTimeout),null===(t=this._peerConnection)||void 0===t||t.close(),null===(r=this.heartbeatChannel)||void 0===r||r.close(),null===(n=this.latestReliableStreamChannel)||void 0===n||n.close(),null===(i=this.latestTryOnceStreamChannel)||void 0===i||i.close(),null===(o=this.latestTtlStreamChannel)||void 0===o||o.close(),null===(s=this.reliableStreamChannel)||void 0===s||s.close(),this._peerConnection=null,this.heartbeatChannel=null,this.latestReliableStreamChannel=null,this.latestTryOnceStreamChannel=null,this.latestTtlStreamChannel=null,this.reliableStreamChannel=null)}))}getPing(){return this.pingTimeMs}getPingInfo(){return this.pingInfo}getLastMessageTimestamp(){return this.lastMessageTimestamp}getSessionCreatedTimestamp(){var e;return null===(e=this.config.remoteConfig)||void 0===e?void 0:e.sessionCreatedTimestamp}setSessionCreatedTimestamp(e){this.config.remoteConfig&&(this.config.remoteConfig.sessionCreatedTimestamp=e)}getSessionId(){var e;return null===(e=this.config.remoteConfig)||void 0===e?void 0:e.sessionId}setSessionId(e){this.config.remoteConfig&&(this.config.remoteConfig.sessionId=e,this.sessionMetrics=new Ee(e,this))}getRemotePeerId(){return this.config.baseConfig.remotePeerId}getRemoteDeviceId(){var e;return null===(e=this.config.baseConfig)||void 0===e?void 0:e.remoteDeviceId}setRemoteDeviceId(e){this.config.baseConfig.remoteDeviceId=e}getSessionMetricsMessageCounts(){var e;return null===(e=this.sessionMetrics)||void 0===e?void 0:e.counts}getConnectionStatsInfo(){return Pe(this,void 0,void 0,(function*(){const{peerConnection:e}=this;if(!e)return;const t=yield e.getStats(null),r=[];t.forEach(e=>{r.push(e)});const n=r.find(e=>"transport"===e.type);if(!n)return;const i=r.find(e=>("candidate-pair"===e.type||"candidatepair"===e.type)&&e.id===n.selectedCandidatePairId);if(!i)return;const o=r.find(e=>e.id===i.localCandidateId),s=r.find(e=>e.id===i.remoteCandidateId);return o&&s&&(o.address=o.address||o.ip,s.address=s.address||s.ip,void 0!==o.address&&void 0!==s.address)?{transport:n,localCandidate:o,remoteCandidate:s,candidatePair:i}:void 0}))}initializeChannels(e){this.heartbeatChannel=e.createDataChannel("heartbeat",ge),this.heartbeatChannel.binaryType="arraybuffer",this.latestTtlStreamChannel=e.createDataChannel("stream.latest-ttl",pe),this.latestTtlStreamChannel.binaryType="arraybuffer",this.reliableStreamChannel=e.createDataChannel("stream.reliable",fe),this.reliableStreamChannel.binaryType="arraybuffer",this.latestReliableStreamChannel=e.createDataChannel("stream.latest-reliable",he),this.latestReliableStreamChannel.binaryType="arraybuffer",this.latestTryOnceStreamChannel=e.createDataChannel("stream.latest-try-once",de),this.latestTryOnceStreamChannel.binaryType="arraybuffer",this.setupChannel(this.latestTtlStreamChannel),this.setupChannel(this.reliableStreamChannel),this.setupChannel(this.latestReliableStreamChannel),this.setupChannel(this.latestTryOnceStreamChannel)}getOffer(){return Pe(this,void 0,void 0,(function*(){var e,t;const{gotOffer:r}=this,{peerConnection:n,config:i}=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 o=null===(e=this.config.remoteConfig)||void 0===e?void 0:e.sessionId;if(r)return void x.vF.debug("Failed to generate offer because gotOffer was already called.");if(this.gotOffer=!0,Te(this.peerConnection))return void x.vF.debug("Failed to generate offer because the peer connection was inactive.");const s=i.baseConfig.track;n.onicecandidate=()=>{this.hasIceCandidate=!0},n.oniceconnectionstatechange=()=>Pe(this,void 0,void 0,(function*(){const e=n.iceConnectionState;if("connected"===e||"completed"===e){const t=yield this.getConnectionStatsInfo(),r=t?Re(t):void 0;x.vF.info("ICE connection state changed to "+e,{sessionId:o,connectionStatsInfo:t,iceMode:r}),null==s||s("ICE connection state change",{iceConnectionState:e,sessionId:o,connectionStatsInfo:t,iceMode:r})}})),yield n.setLocalDescription(yield n.createOffer());const u=n.getConfiguration?n.getConfiguration().iceTransportPolicy:"all",c=(new Date).getTime();for(;;){const e=(new Date).getTime()-c;if(e>this.connectTimeoutMs)return void x.vF.debug("Failed to generate offer because ICE gathering timed out.");if(e>this.iceGatheringTimeoutMs&&this.hasIceCandidate){x.vF.debug("ICE gathering partially completed; proceeding",{iceTransportPolicy:u,waitTime:e}),null==s||s("ICE gathering partially completed",{sessionId:o,iceTransportPolicy:u,waitTime:e});break}if("complete"===n.iceGatheringState){x.vF.debug("ICE gathering complete",{iceTransportPolicy:u,waitTime:e}),null==s||s("ICE gathering completed",{sessionId:o,iceTransportPolicy:u,waitTime:e});break}yield(0,l.c)(.1*a.p.second)}const p=null!==(t=this.iceServers)&&void 0!==t?t:[];for(const e of p)"credentialType"in e&&(e.credentialType=void 0);const f=JSON.stringify(p),h=new ae.Signal;return h.setPayload(JSON.stringify(n.localDescription)),h.setSenderId(this.config.baseConfig.localPeerId),h.setReceiverId(this.config.baseConfig.remotePeerId),h.setIceServers(f),h.setIceTransportPolicy(null!=u?u:"all"),void 0!==this.config.baseConfig.sessionType?h.setSessionType(this.config.baseConfig.sessionType):h.setSessionType(ae.SessionType.TELEOP),x.vF.debug("Sending offer signal with description",{description:h.getPayload()}),h}))}getLanOffer(){return Pe(this,void 0,void 0,(function*(){const{peerConnection:e,gotOffer:t}=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(t)return void x.vF.debug("Failed to generate offer because gotOffer was already called.");if(this.gotOffer=!0,Te(this.peerConnection))return void x.vF.debug("Failed to generate offer because the peer connection was inactive.");yield e.setLocalDescription(yield e.createOffer());const r=(new Date).getTime();for(;;){if((new Date).getTime()-r>this.iceGatheringTimeoutMs)return void x.vF.debug("Failed to generate offer because ICE gathering timed out.");if("complete"===e.iceGatheringState)break;yield(0,l.c)(.1*a.p.second)}const n=e.localDescription;if(n)return x.vF.debug("Sending LAN offer signal with description",{description:n}),n;x.vF.error("Failed to generate LAN offer description")}))}handleLanAnswer(e){return Pe(this,void 0,void 0,(function*(){const{peerConnection:t}=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 t.setRemoteDescription(e)}))}getChannelFromLabel(e){switch(e){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(e,t){var r;let n;try{n=(0,ce.encode)(JSON.stringify(t))}catch(e){return void x.vF.warn("Failed to encode RTC message",{error:e})}try{e.send(n),null===(r=this.sessionMetrics)||void 0===r||r.incrementLocalSent(t)}catch(t){x.vF.warn("Failed to send message to channel",{error:t,channel:e.label})}}channelNotRecognized(e){return e!==this.latestTtlStreamChannel&&e!==this.latestReliableStreamChannel&&e!==this.latestTryOnceStreamChannel&&e!==this.reliableStreamChannel}setupChannel(e){e.onmessage=t=>{if(this.channelNotRecognized(e))return void x.vF.warn("Received message on unrecognized data channel.");let r;try{r=JSON.parse((0,ce.decode)(t.data))}catch(t){return void x.vF.warn("Received unparseable message on RTC stream data channel",{error:t,channel:e.label})}"message-chunk"===r.communicationType?this.receiveChannelMessageChunk(e,r):this.receiveChannelMessage(e,r)},e.onerror=t=>{x.vF.warn("Channel error: "+t.error,{error:t.error,sessionId:this.getSessionId(),channelLabel:e.label})},e.onopen=()=>{x.vF.debug("Channel opened",{sessionId:this.getSessionId(),channelLabel:e.label})},e.onclose=()=>{const t={bufferedAmount:e.bufferedAmount,sessionId:this.getSessionId(),channelLabel:e.label};!1===this.closeCalled?x.vF.debug("Unexpected channel closed",t):x.vF.debug("Channel closed",t)}}receiveChannelMessage(e,t){var r;const{config:n}=this,{remotePeerId:i}=this.config.baseConfig;if(this.lastMessageTimestamp=(new Date).getTime(),t=je(t),null===(r=this.sessionMetrics)||void 0===r||r.incrementLocalReceived(t),this.handleSystemMessage(e,t))return;(e===this.latestTryOnceStreamChannel||e===this.latestTtlStreamChannel||e===this.latestReliableStreamChannel)&&!this.isLatestMessage(t)||n.baseConfig.receive(i,t)}receiveChannelMessageChunk(e,t){const r=this.reassemblyTable.get(t.id)||[];if(r.push(t),r.length===t.total){const n=function(e){const t=e.sort((e,t)=>e.seq<t.seq?-1:1).map(e=>e.part).reduce((e,t)=>e+t);try{return JSON.parse(t)}catch(e){return void x.vF.warn("Could not reassemble RTC message chunks")}}(r);return n&&this.receiveChannelMessage(e,n),void this.reassemblyTable.delete(t.id)}this.reassemblyTable.set(t.id,r),this.reassemblyTableLastTimestamp.set(t.id,(new Date).getTime())}handleSystemMessage(e,t){var r,n;const{config:i}=this,{baseConfig:o}=i,{remotePeerId:s,remoteDeviceId:a}=o;switch(t.header.stream.streamType){case"ping":return this.sendSystemMessage(e,{type:"pong",timestamp:re(t.payload.ping)}),!0;case"pong":{const e=(new Date).getTime()-re(t.payload.pong);return this.pingTimeMs=e,U.aggregate("rtc-ping-time",e,Object.assign({},a?{deviceId:a}:{})),!0}case"ping-v2":return this.sendPingV2(),!0;case"pong-v2":{const e=re(t.payload.pongV2),r=this.pingV2Map.get(e.id);return(null==r?void 0:r.sent)!==e.timestamp&&x.vF.warn("Pong timestamp doesn't match stored value",{currentEntry:r,pong:e}),this.pingV2Map.set(e.id,{sent:e.timestamp,received:(new Date).getTime()}),!0}case"streams-info":{const{sessionMetrics:e}=this,i=null===(r=t.payload.streamsInfo)||void 0===r?void 0:r.timestamp;return!!i&&(null==e||e.updateRemoteMessagesCounts(t),null===(n=o.onStreamsInfoUpdate)||void 0===n||n.call(o,s,i),!0)}case"stream-control":return!0;default:return!1}}sendSystemMessage(e,t){var r;const{localUserId:n,localPeerId:i}=this.config.baseConfig;if("open"!==e.readyState)return;const o={entityId:null!=n?n:i,streamName:"$."+t.type,streamType:t.type};let s;switch(t.type){case"ping":s={ping:(new Date).getTime()};break;case"pong":s={pong:t.timestamp};break;case"ping-v2":s={pingV2:t.payload};break;case"pong-v2":s={pongV2:t.payload};break;case"stream-control":s={streamControl:t.streamControl};break;case"streams-info":s={streamsInfo:null===(r=this.sessionMetrics)||void 0===r?void 0:r.getLocalStreamsInfo((new Date).getTime())}}this.sendOnChannel(e,Oe(o,s))}isLatestMessage(e){const t=Se(e.header.stream),r=(this.streamLatestTimestamp.get(t)||0)<=e.header.created;return r&&this.streamLatestTimestamp.set(t,e.header.created),r}}function Ae(e){e&&clearInterval(e)}function Ie(){x.vF.debug("forceGarbageCollection() triggered"),queueMicrotask(()=>{let e=document.createElement("img");e.src=window.URL.createObjectURL(new Blob([new ArrayBuffer(5e7)])),e.onerror=function(){window.URL.revokeObjectURL(this.src),e=null}})}function Ce(e){try{return e instanceof Error?`${e.name}: ${e.message}`:"object"==typeof e?JSON.stringify(e):String(e)}catch(e){return"Unknown error"}}function ke(e){var t,r;return{userId:null===(t=e.getUserId())||void 0===t?void 0:t.getValue(),deviceId:null===(r=e.getDeviceId())||void 0===r?void 0:r.getValue(),organizationId:e.getOrganizationId(),id:e.getPeerId(),capabilities:[],capabilitySet:{}}}var Me=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))};const Fe=e=>e.map(e=>Object.assign(Object.assign(Object.assign({},e),e.username?{username:"<REDACTED>"}:null),e.credential?{credential:"<REDACTED>"}:null));class Be{constructor(e){this.config=e,this.grpcCallDeadline=5*a.p.second,this.refreshIntervalDelayMs=2*a.p.second,this.iceServersTtl=30*a.p.minute,this.connections=[],this.localConnections=[],this.isConnectionInitiator=new WeakSet,this.isOutgoingConnection=new Set,this.peerDataChannelListeners=[],this.rtcInstancesConstructed=0,this.statsLoopsExecuted=0;const{refreshIntervalDelayMs:t}=this;this.refreshInterval=B({func:()=>Me(this,void 0,void 0,(function*(){try{yield this.update()}catch(e){x.vF.warn("RTC refresh failed",{error:e})}})),delay:t})}send(e,t,r){const n=this.getActiveConnection(e);n?n.isReady()?n.send(t,r):x.vF.warn("Send called with unready connection."):x.vF.warn("Send called with no connection.")}controlRemoteStream(e,t){const r=this.getActiveConnection(e);r?r.isReady()?r.controlRemoteStream(t):x.vF.warn("controlRemoteStream called with unready connection."):x.vF.warn("controlRemoteStream called with no connection.")}getLocalPeer(){return Me(this,void 0,void 0,(function*(){for(;!this.localPeer;)yield(0,l.c)(.1*a.p.second);return ke(this.localPeer)}))}connect(e,t){return Me(this,void 0,void 0,(function*(){var r,n,i;if(!0===this.config.lanOnlyMode)throw new Error("connect method called in local only mode.");const{track:o,signalingClient:s}=this.config,{localPeer:a,receiveSignalStream:l,iceServers:u}=this;if(!a||!l||!u)return void x.vF.warn("Connect called prior to local peer, receiveSignalStream, and ICE servers ready");if(this.getActiveConnection(e))return void x.vF.warn("Connect called for peer with existing connection.");if(this.isOutgoingConnection.has(e))return void x.vF.warn("Connect called for peer with an existing outgoing connection offer.");this.isOutgoingConnection.add(e);const c=function(e,t,r){const{rtcIceTransportPolicies:n,rtcIceServerProtocol:i,useAllServers:o}=t||{},s=e.map(e=>Object.assign(Object.assign({},e),{urls:e.urls.filter(e=>{const t=(void 0===n||n.some(t=>ie(e,t)))&&(void 0===i||oe(e,i));return t||x.vF.debug("Ignoring ICE server: "+e,{organizationId:r}),t})})).filter(({urls:e})=>e.filter(e=>e).length>0);return o?s:[ne(s,"stun"),ne(s,"turn")].filter(e=>void 0!==e).map(e=>re(e))}(u,t);x.vF.debug("Received ICE servers:",Fe(u)),x.vF.debug("Using ICE servers:",Fe(c));const p=new xe(yield this.createRTCPeerConnection(c),c,{baseConfig:{isOffer:!0,isLan:!1,receive:(e,t)=>this.config.receive(e,t),onStreamsInfoUpdate:this.config.onStreamsInfoUpdate?(e,t)=>{var r,n;return null===(n=(r=this.config).onStreamsInfoUpdate)||void 0===n?void 0:n.call(r,e,t)}:void 0,track:this.config.lanOnlyMode?void 0:this.config.track,localUserId:null===(r=a.getUserId())||void 0===r?void 0:r.getValue(),localPeerId:a.getPeerId(),remotePeerId:e,sessionType:this.config.sessionType},remoteConfig:{}},t=>this.onCustomDataChannel(e,t)),f=yield p.getOffer();if(!f)return x.vF.error("Failed to generate offer."),void this.isOutgoingConnection.delete(e);x.vF.debug("Sending offer."),null==o||o("Sending offer",(0,se.x)(f));const h=new ae.SendSignalRequest;h.setSignal(f);const d=yield(()=>Me(this,void 0,void 0,(function*(){try{return yield ue.withDeadline(s.sendSignal(h,yield this.getMetadata()),this.grpcCallDeadline)}catch(e){x.vF.warn("Error when sending signal",{error:e})}})))();if(!this.isOutgoingConnection.has(e))return void x.vF.debug("No offer set after receiving offer signal response.");x.vF.debug("Offer sent.");const g=null===(n=null==d?void 0:d.getSessionId())||void 0===n?void 0:n.getValue(),y=null===(i=null==d?void 0:d.getSessionCreatedTimestamp())||void 0===i?void 0:i.getValue();return g&&y?(p.setSessionId(g),p.setSessionCreatedTimestamp(y),this.isOutgoingConnection.delete(e),this.connections.push(p),this.isConnectionInitiator.add(p),this.setupHandlers(p),g):(x.vF.warn("No session ID or no session created timestamp on send signal response."),void this.isOutgoingConnection.delete(e))}))}connectLan(e){return Me(this,void 0,void 0,(function*(){var t,r;const n=new K(e),i=new xe(yield this.createRTCPeerConnection([]),[],{baseConfig:{isOffer:!0,isLan:!0,receive:(e,t)=>this.config.receive(e,t),onStreamsInfoUpdate:this.config.onStreamsInfoUpdate?(e,t)=>{var r,n;return null===(n=(r=this.config).onStreamsInfoUpdate)||void 0===n?void 0:n.call(r,e,t)}:void 0,track:this.config.lanOnlyMode?void 0:this.config.track,localUserId:null===(r=null===(t=this.localPeer)||void 0===t?void 0:t.getUserId())||void 0===r?void 0:r.getValue(),localPeerId:"lan_client",remotePeerId:e}},t=>this.onCustomDataChannel(e,t)),o=yield i.getLanOffer();if(!o)return x.vF.warn("Could not generate LAN offer"),!1;const s=yield n.postLanRtcOffer({offer:JSON.stringify(o)}),a=new RTCSessionDescription(JSON.parse(s.answer));return yield i.handleLanAnswer(a),this.localConnections.push(i),this.isConnectionInitiator.add(i),(0,Z.A)()}))}getConnections(){return[...this.connections,...this.localConnections]}createCustomDataChannel(e,t,r,n,i){const o=this.getActiveConnection(e);if(o&&this.isConnectionInitiator.has(o)){const s=o.peerConnection.createDataChannel("custom."+t,r);return n&&(s.binaryType="arraybuffer"),i(e,s),()=>{}}const s=(r,n)=>{e===r&&n.label==="custom."+t&&i(e,n)};return this.peerDataChannelListeners.push(s),()=>{this.peerDataChannelListeners=this.peerDataChannelListeners.filter(e=>e!==s)}}onCustomDataChannel(e,t){this.peerDataChannelListeners.forEach(r=>r(e,t))}getConnectionStatus(e){if(this.isOutgoingConnection.has(e))return"connecting";const t=this.getActiveConnection(e);return t?t.isReady()?"connected":"connecting":"disconnected"}getConnectionStatsInfo(e){return Me(this,void 0,void 0,(function*(){const t=this.getActiveConnection(e);if(t)return yield t.getConnectionStatsInfo()}))}disconnect(e){return Me(this,void 0,void 0,(function*(){const t=this.getActiveConnection(e);t&&(yield t.close(),this.connections=this.connections.filter(e=>e!==t),this.localConnections=this.localConnections.filter(e=>e!==t))}))}getPeers(){return Me(this,void 0,void 0,(function*(){if(this.config.lanOnlyMode)throw new Error("getPeers method cannot be used in local-only mode.");const{signalingClient:e}=this.config,t=yield(()=>Me(this,void 0,void 0,(function*(){try{return yield ue.withDeadline(e.getPeers(new ae.GetPeersRequest,yield this.getMetadata()),this.grpcCallDeadline)}catch(e){x.vF.warn("Error when getting peers",{error:e})}})))();if(!t)return[];const r=t.getPeersList();if(!r)return[];const n=e=>{var t,r;return null!==(r=null===(t=e.getPeerCreatedTimestamp())||void 0===t?void 0:t.getValue())&&void 0!==r?r:0};return r.sort((e,t)=>n(t)-n(e)).map(e=>ke(e))}))}getSessions(){return Me(this,void 0,void 0,(function*(){if(this.config.lanOnlyMode)throw new Error("getPeers method cannot be used in local-only mode.");const{signalingClient:e}=this.config,t=yield(()=>Me(this,void 0,void 0,(function*(){try{return yield ue.withDeadline(e.getPeers(new ae.GetPeersRequest,yield this.getMetadata()),this.grpcCallDeadline)}catch(e){x.vF.warn("Error when getting peers",{error:e})}})))();if(!t)return{};const r=t.getPeersList(),n={};for(const e of r)n[e.getPeerId()]=e.getSessionIdsList();return n}))}getPing(e){const t=this.getActiveConnection(e);if(t)return t.getPing();x.vF.warn("Attempted to get ping time from inactive peer.")}getPingInfo(e){const t=this.getActiveConnection(e);if(t)return t.getPingInfo();x.vF.warn("Attempted to get ping time from inactive peer.")}getLastMessageTimestamp(e){const t=this.getActiveConnection(e);if(t)return t.getLastMessageTimestamp();x.vF.warn("Attempted to get last message time from inactive peer.")}getSessionMetricsMessageCounts(e){const t=this.getActiveConnection(e);if(t)return t.getSessionMetricsMessageCounts();x.vF.warn("Attempted to get session metrics counts from inactive peer.")}isReady(){if(this.config.lanOnlyMode)return!0;const{localPeer:e,receiveSignalStream:t,iceServers:r}=this;return!!(e&&t&&r)}shutdown(){return Me(this,void 0,void 0,(function*(){yield this.refreshInterval.stop(),this.receiveSignalStream&&this.receiveSignalStream.cancel();const e=this.connections;this.connections=[],yield this.closeConnections(e);const t=this.localConnections;this.localConnections=[],yield this.closeConnections(t),this.isOutgoingConnection.clear(),this.peerDataChannelListeners=[];const{localPeer:r}=this;if(!r)return;if(this.config.lanOnlyMode)return;const{signalingClient:n}=this.config;yield(()=>Me(this,void 0,void 0,(function*(){try{const e=new ae.DeletePeerRequest;e.setPeerId(r.getPeerId()),yield ue.withDeadline(n.deletePeer(e,yield this.getMetadata()),this.grpcCallDeadline)}catch(e){return void x.vF.warn("Error deleting local peer",{error:e})}})))()}))}createPeer(){return Me(this,void 0,void 0,(function*(){if(this.config.lanOnlyMode)throw new Error("createPeer method cannot be used in local-only mode.");const{signalingClient:e}=this.config,t=yield(()=>Me(this,void 0,void 0,(function*(){try{return yield ue.withDeadline(e.createPeer(new ae.CreatePeerRequest,yield this.getMetadata()),this.grpcCallDeadline)}catch(e){const t=e;x.vF.debug("createPeer failed",{error:t});const r=Ce(t);throw new Error("Was not able to create peer: "+r)}})))(),r=null==t?void 0:t.getPeer();if(!r)throw new Error("Response did not provide peer.");return this.localPeer=r}))}createReceiveSignalStream(){return Me(this,void 0,void 0,(function*(){if(this.config.lanOnlyMode)throw new Error("createReceiveSignalStream method cannot be used in local-only mode.");const{signalingClient:e}=this.config,{localPeer:t,iceServers:r}=this;if(!t||!r)return;const{receiveSignalStream:n}=this;n&&n.cancel();const i=new ae.ReceiveSignalStreamRequest;i.setPeerId(t.getPeerId());const o=yield(()=>Me(this,void 0,void 0,(function*(){try{return e.receiveSignalStream(i,yield this.getMetadata({hasDeadline:!1}))}catch(e){x.vF.debug("createReceiveSignalStream failed",{error:e});const t=Ce(e);throw new Error("Unable to create receive signal stream: "+t)}})))();if(!o)throw new Error("Response did not provide stream.");return o.on("data",e=>Me(this,void 0,void 0,(function*(){var n,i,o,s;const a=e.getSignal(),l=null===(n=null==a?void 0:a.getSessionId())||void 0===n?void 0:n.getValue(),u=null==a?void 0:a.getSenderId(),c=null==a?void 0:a.getReceiverId(),p=null===(i=null==a?void 0:a.getSessionCreatedTimestamp())||void 0===i?void 0:i.getValue();if(!(a&&l&&u&&c&&p))return void x.vF.warn("Received signal with missing information.");const f=this.getActiveConnection(u);if(f)if(f.getSessionId()!==l){if(x.vF.debug("Received signal: different session for a peer we're already connected to."),(f.getSessionCreatedTimestamp()||0)>p)return;const e=new xe(yield this.createRTCPeerConnection(r),r,{baseConfig:{isOffer:!1,isLan:!1,receive:(e,t)=>this.config.receive(e,t),onStreamsInfoUpdate:this.config.onStreamsInfoUpdate?(e,t)=>{var r,n;return null===(n=(r=this.config).onStreamsInfoUpdate)||void 0===n?void 0:n.call(r,e,t)}:void 0,track:this.config.lanOnlyMode?void 0:this.config.track,localPeerId:t.getPeerId(),localUserId:null===(s=t.getUserId())||void 0===s?void 0:s.getValue(),remotePeerId:u},remoteConfig:{sessionId:l,sessionCreatedTimestamp:p}},e=>this.onCustomDataChannel(u,e));yield e.handleSignal(a),this.connections.push(e)}else x.vF.debug("Received signal: for an existing connection."),yield f.handleSignal(a);else{x.vF.debug("Received signal: new connection.");const e=new xe(yield this.createRTCPeerConnection(r),r,{baseConfig:{isOffer:!1,isLan:!1,receive:(e,t)=>this.config.receive(e,t),onStreamsInfoUpdate:this.config.onStreamsInfoUpdate?(e,t)=>{var r,n;return null===(n=(r=this.config).onStreamsInfoUpdate)||void 0===n?void 0:n.call(r,e,t)}:void 0,track:this.config.lanOnlyMode?void 0:this.config.track,localPeerId:t.getPeerId(),localUserId:null===(o=t.getUserId())||void 0===o?void 0:o.getValue(),remotePeerId:u},remoteConfig:{sessionId:l,sessionCreatedTimestamp:p}},e=>this.onCustomDataChannel(u,e));yield e.handleSignal(a),this.connections.push(e)}}))),o.on("end",()=>{o.cancel(),this.receiveSignalStream=void 0}),o.on("error",e=>{switch(e.code){case $.StatusCode.CANCELLED:case $.StatusCode.UNAVAILABLE:case $.StatusCode.UNKNOWN:x.vF.debug("Receive signal stream error",{error:e});break;case $.StatusCode.UNAUTHENTICATED:x.vF.warn("Receive signal stream error",{error:e});break;default:x.vF.error("Receive signal stream error",{error:e})}o.cancel(),this.receiveSignalStream=void 0}),this.receiveSignalStream=o}))}createRTCPeerConnection(e){return Me(this,void 0,void 0,(function*(){var t;const r=null!==(t=this.config.alternateRTCPeerConnection)&&void 0!==t?t:window.RTCPeerConnection;if(!r){if("Chrome"!==function(){if("undefined"==typeof navigator)throw new Error("not a browser");const{userAgent:e}=navigator;return e.includes("Firefox/")?"Firefox":e.includes("Edg/")?"Edge":e.includes("Chrome/")?"Chrome":e.includes("Safari/")?"Safari":e.includes("MSIE/")||e.includes("Trident/")?"IE":"Other"}())throw new Error("WebRTC is not enabled. Please try again with the latest version of Google Chrome.");throw new Error("WebRTC is not enabled. Please ensure WebRTC is not disabled by ad blocking software.")}this.rtcInstancesConstructed++,this.rtcInstancesConstructed%20||Ie();try{return new r({iceServers:e})}catch(e){throw x.vF.debug(`Failed to create RTCPeerConnection: ${this.rtcInstancesConstructed} total allocated`),e}}))}closeConnections(e){return Me(this,void 0,void 0,(function*(){const t=yield Q(e.map(e=>Me(this,void 0,void 0,(function*(){yield e.close()}))));for(const e of t)x.vF.warn("Request to close session failed",{error:e})}))}getActiveConnection(e){return this.getConnections().find(t=>t.getRemotePeerId()===e&&t.isActive())}update(){return Me(this,void 0,void 0,(function*(){var e;if(this.localConnections=this.localConnections.filter(e=>e.isActive()),this.config.lanOnlyMode)return;const{signalingClient:t}=this.config;if(!this.localPeer||!this.receiveSignalStream||!this.iceServers){const e=[];return this.localPeer||e.push(this.createPeer()),this.iceServers||e.push(this.updateIceServers()),yield Promise.all(e),void(this.receiveSignalStream||(yield this.createReceiveSignalStream()))}const[r,n]=(i=this.connections,o=e=>e.isActive(),i.reduce((e,t,r,n)=>{const[i,s]=e;return(o(t,r,n)?i:s).push(t),e},[[],[]]));var i,o;yield this.closeConnections(n),this.connections=r,this.gatherConnectionStats().catch(e=>{x.vF.warn("Error calling gatherConnectionStats",{error:e})}),this.statsLoopsExecuted++;const{localPeer:s}=this,a=this.connections.filter(e=>e.getSessionId).map(e=>re(e.getSessionId()));s.setSessionIdsList(a);const l=new ae.RefreshPeerRequest;l.setPeer(s);try{yield ue.withDeadline(t.refreshPeer(l,yield this.getMetadata()),this.grpcCallDeadline)}catch(e){e instanceof $.RpcError&&e.code===$.StatusCode.NOT_FOUND?(x.vF.warn("Peer expired, creating new peer",{peerId:s.getPeerId()}),yield this.reset()):x.vF.warn("Error calling RefreshPeer",{error:e})}const u=yield this.getPeers();for(const t of this.connections)t.setRemoteDeviceId(null===(e=u.find(e=>e.id===t.getRemotePeerId()))||void 0===e?void 0:e.deviceId)}))}gatherConnectionStats(){return Me(this,void 0,void 0,(function*(){if(this.statsLoopsExecuted%10!=0)return;if(1!==this.connections.length)return;const e=yield this.connections[0].getConnectionStatsInfo(),t=e?Re(e):void 0;t?U.setTag("rtc-connection-type",t):U.setTag("rtc-connection-type","unknown")}))}reset(){return Me(this,void 0,void 0,(function*(){yield this.closeConnections(this.connections),this.connections=[],this.isOutgoingConnection.clear(),yield this.createPeer(),yield this.createReceiveSignalStream()}))}updateIceServers(){return Me(this,void 0,void 0,(function*(){if(this.config.lanOnlyMode)return;const{iceServersLastUpdate:e,iceServersTtl:t}=this,r=(new Date).getTime();if(!e||r-e>t)try{const e=(yield ue.withDeadline(this.config.signalingClient.getIceServers(new ae.GetIceServersRequest,yield this.getMetadata()),this.grpcCallDeadline)).getIceServers();this.iceServers=JSON.parse(e),this.iceServersLastUpdate=r}catch(e){x.vF.warn("Error in updateIceServers",{error:e})}}))}setupHandlers(e){const{peerConnection:t}=e,r=e.getSessionCreatedTimestamp();t.onconnectionstatechange=()=>Me(this,void 0,void 0,(function*(){const n=t.connectionState;if(!r)return;const i=e.getRemoteDeviceId();switch(n){case"connected":U.aggregate("rtc-connect-time",(new Date).getTime()-r,Object.assign({},i?{deviceId:i}:{}));break;case"failed":U.increment("rtc-connect-failed",Object.assign({},i?{deviceId:i}:{}))}}))}getMetadata(){return Me(this,arguments,void 0,(function*(e={}){if(this.config.lanOnlyMode)throw new Error("getMetadata method cannot be called in local-only mode");const{getToken:t}=this.config,{grpcCallDeadline:r}=this,{hasDeadline:n=!0}=e,i=n?{deadline:(Date.now()+r).toString(10)}:null;try{const e=yield t();return Object.assign({authorization:e},i)}catch(e){throw x.vF.error("getToken() failed",{error:e}),new Error("Cannot get authorization token")}}))}}var De=r(5413),Le=r(7197),Ne=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))};class ze{constructor(e,t){this.sentMessagesCounts=new Map,this.receivedMessagesCounts=new Map,this.sessionId=e,this.connection=t}incrementMessageSent(e){const t=Se(e.header.stream);this.sentMessagesCounts.set(t,(this.sentMessagesCounts.get(t)||0)+1)}incrementMessageReceived(e){const t=Se(e.header.stream);this.receivedMessagesCounts.set(t,(this.receivedMessagesCounts.get(t)||0)+1)}uploadMetrics(){return Ne(this,void 0,void 0,(function*(){const{sessionId:e}=this,t=yield this.connection.peerConnection.getStats(),r={};t.forEach(e=>r[e.id]=e),x.vF.debug("rtc-stats",Object.assign(Object.assign({},r),{sessionId:e}));const n=[...new Set(Array.from(this.sentMessagesCounts.keys()).concat(Array.from(this.receivedMessagesCounts.keys())))].reduce((e,t)=>{const r=this.sentMessagesCounts.get(t),n=this.receivedMessagesCounts.get(t);return Object.assign(Object.assign({},e),{[t+"-sent"]:r,[t+"-received"]:n})},{sessionId:e});x.vF.debug("rtc-message-report",n)}))}}function Ue(e,t){return Se(e)===Se(t)}var Ge=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))};class Ve{constructor(e,t){this.peerConnection=e,this.config=t,this.connectTimeoutMs=10*a.p.second,this.gatherIceTimeoutMs=5*a.p.second,this.pingUpdateTimeoutMs=2*a.p.second,this.streamLatestTimestamp=new Map,this.closeCalled=!1,this.connectCalled=!1,this.sentOffer=!1,this.receivedIceCandidate=!1;const{isOffer:r}=t;r?this.initializeChannels(e):e.ondatachannel=e=>{switch(e.channel.label){case"stream.latest-ttl":this.latestTtlStreamChannel=e.channel;break;case"stream.reliable":this.reliableStreamChannel=e.channel;break;case"stream.latest-reliable":this.latestReliableStreamChannel=e.channel;break;case"stream.latest-try-once":this.latestTryOnceStreamChannel=e.channel}this.setupChannel(e.channel)},this.sessionMetrics=new ze(this.getSessionId(),this)}connect(){return Ge(this,void 0,void 0,(function*(){if(this.connectCalled)return;this.connectCalled=!0,this.pingUpdateTimeout=setInterval(()=>{const{reliableStreamChannel:e}=this;e&&this.sendSystemMessage(e,{type:"ping"})},this.pingUpdateTimeoutMs),this.connectTimeout=setTimeout(()=>Ge(this,void 0,void 0,(function*(){this.isReady()||(x.vF.warn("RTC connect timed out, closing connection"),yield this.close())})),this.connectTimeoutMs);const{peerConnection:e,config:{isOffer:t,sessionId:r}}=this;if(t){const t=yield e.createOffer();yield e.setLocalDescription(t)}t&&(this.gatherIceTimeout=setTimeout(()=>Ge(this,void 0,void 0,(function*(){this.sentOffer||(x.vF.warn("ICE gathering timed out"),this.receivedIceCandidate?(x.vF.warn("Attempting to connect with partial ICE candidate pool"),yield this.sendOffer()):yield this.close())})),this.gatherIceTimeoutMs),e.onicecandidate=e=>Ge(this,void 0,void 0,(function*(){e.candidate?this.receivedIceCandidate=!0:yield this.sendOffer()})),e.onicegatheringstatechange=()=>Ge(this,void 0,void 0,(function*(){"complete"===e.iceGatheringState&&(yield this.sendOffer())})),e.onnegotiationneeded=()=>{x.vF.debug("Negotiation needed",{sessionId:r})})}))}handleSignal(e){return Ge(this,void 0,void 0,(function*(){const{peerConnection:t,config:{sessionId:r,sendSignal:n}}=this,{description:i}=JSON.parse(e.payload);if(x.vF.debug("Handling signal",{sessionId:r,description:JSON.stringify(i)}),i)if("stable"!==t.signalingState||"connected"!==t.connectionState)if(t.remoteDescription)x.vF.warn("Received SDP signal during negotiation when remote description is already set: "+JSON.stringify(e));else if("offer"===i.type){yield t.setRemoteDescription(i);const e=yield t.createAnswer();yield t.setLocalDescription(e),yield n({payload:JSON.stringify({description:e})})}else"answer"===i.type&&(yield t.setRemoteDescription(i));else x.vF.warn("Received SDP signal when signaling is stable and connected: "+JSON.stringify(e));else x.vF.warn("Received non-SDP signal: "+JSON.stringify(e))}))}send(e,t){const r=this.getChannelFromLabel(t.channelLabel);r?this.sendOnChannel(r,e):x.vF.warn("Send called with unexpected channel label",{channelLabel:t.channelLabel})}controlRemoteStream(e){this.sendSystemMessage(re(this.reliableStreamChannel),{type:"stream-control",streamControl:e})}isActive(){return new Set(["new","connecting","connected"]).has(this.peerConnection.connectionState)}isReady(){const{peerConnection:e,latestTtlStreamChannel:t,reliableStreamChannel:r,latestTryOnceStreamChannel:n}=this;return!!(r&&t&&n)&&("connected"===e.connectionState&&"open"===r.readyState&&"open"===t.readyState&&"open"===n.readyState)}isClosed(){const{peerConnection:e,reliableStreamChannel:t,latestTryOnceStreamChannel:r,latestTtlStreamChannel:n}=this;return!("closed"!==e.connectionState||void 0!==t&&"closed"!==t.readyState||void 0!==r&&"closed"!==r.readyState||void 0!==n&&"closed"!==n.readyState)}needsClosing(){const{peerConnection:e,latestTtlStreamChannel:t,reliableStreamChannel:r,latestTryOnceStreamChannel:n}=this;if(this.isClosed())return!1;const i=new Set(["closing","closed"]),o=e=>e&&i.has(e.readyState);return Te(e)||o(t)||o(r)||o(n)}close(){return Ge(this,void 0,void 0,(function*(){this.closeCalled||(this.closeCalled=!0,yield this.sessionMetrics.uploadMetrics(),this.pingUpdateTimeout&&clearInterval(this.pingUpdateTimeout),this.connectTimeout&&clearTimeout(this.connectTimeout),this.gatherIceTimeout&&clearTimeout(this.gatherIceTimeout),this.peerConnection.close())}))}getPing(){return this.pingTimeMs}getLastMessageTimestamp(){return this.lastMessageTimestamp}getSessionId(){return this.config.sessionId}getRemotePeer(){return this.config.remotePeer}initializeChannels(e){this.latestTtlStreamChannel=e.createDataChannel("stream.latest-ttl",pe),this.reliableStreamChannel=e.createDataChannel("stream.reliable",fe),this.latestReliableStreamChannel=e.createDataChannel("stream.latest-reliable",he),this.latestTryOnceStreamChannel=e.createDataChannel("stream.latest-try-once",de),this.setupChannel(this.latestTtlStreamChannel),this.setupChannel(this.reliableStreamChannel),this.setupChannel(this.latestReliableStreamChannel),this.setupChannel(this.latestTryOnceStreamChannel)}sendOffer(){return Ge(this,void 0,void 0,(function*(){if(this.sentOffer)return;if(this.sentOffer=!0,Te(this.peerConnection))return;const{peerConnection:e,config:{sendSignal:t}}=this,r=yield e.createOffer();yield e.setLocalDescription(r);const n={payload:JSON.stringify({description:r})};yield t(n)}))}getChannelFromLabel(e){switch(e){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(e,t){let r;try{r=(0,ce.encode)(JSON.stringify(t))}catch(e){return void x.vF.warn("Failed to encode RTC message",{error:e})}try{e.send(r),this.sessionMetrics.incrementMessageSent(t)}catch(t){x.vF.warn("Failed to send message to channel",{error:t,channel:e.label})}}channelNotRecognized(e){return e!==this.latestTtlStreamChannel&&e!==this.latestReliableStreamChannel&&e!==this.latestTryOnceStreamChannel&&e!==this.reliableStreamChannel}setupChannel(e){e.onmessage=t=>{if(this.channelNotRecognized(e))return void x.vF.warn("Received message on unrecognized data channel.");let r;try{r=JSON.parse((0,ce.decode)(t.data))}catch(t){return void x.vF.warn("Received unparseable RTC message",{error:t,channel:e.label})}if(this.lastMessageTimestamp=(new Date).getTime(),r=je(r),this.sessionMetrics.incrementMessageReceived(r),this.handleSystemMessage(e,r))return;if(!this.hasCapabilities(r))return void x.vF.warn("Received RTC message that was not within the capability scope of the connection.");(e===this.latestTryOnceStreamChannel||e===this.latestTtlStreamChannel||e===this.latestReliableStreamChannel)&&!this.isLatestMessage(r)||this.config.receive(this.config.remotePeer.id,r)},e.onerror=t=>{x.vF.warn("Channel error: "+t.error,{error:t.error,sessionId:this.getSessionId(),channelLabel:e.label})},e.onopen=()=>{x.vF.debug("Channel opened",{sessionId:this.getSessionId(),channelLabel:e.label})},e.onclose=()=>{const t={bufferedAmount:e.bufferedAmount,sessionId:this.getSessionId(),channelLabel:e.label};!1===this.closeCalled?x.vF.debug("Unexpected channel closed",t):x.vF.debug("Channel closed",t)}}handleSystemMessage(e,t){switch(t.header.stream.streamType){case"ping":return this.sendSystemMessage(e,{type:"pong",timestamp:re(t.payload.ping)}),!0;case"pong":{const e=(new Date).getTime()-re(t.payload.pong);return this.pingTimeMs=e,U.aggregate("rtc-ping-time",e),!0}case"stream-control":return!0;default:return!1}}sendSystemMessage(e,t){if("open"!==e.readyState)return;const r={entityId:re(this.config.localPeer.deviceId||this.config.localPeer.userId),streamName:"$."+t.type,streamType:t.type};let n;switch(t.type){case"ping":n={ping:(new Date).getTime()};break;case"pong":n={pong:t.timestamp};break;case"stream-control":n={streamControl:t.streamControl}}this.sendOnChannel(e,Oe(r,n))}hasCapabilities(e){var t,r;const{localPeer:n,remotePeer:i}=this.config,o=null===(t=n.capabilitySet.streaming)||void 0===t?void 0:t.streams,s=o&&o.some(t=>t.receive&&Ue(t.stream,e.header.stream)),a=null===(r=i.capabilitySet.streaming)||void 0===r?void 0:r.streams,l=a&&a.some(t=>t.send&&Ue(t.stream,e.header.stream));return s||l}isLatestMessage(e){const t=Se(e.header.stream),r=(this.streamLatestTimestamp.get(t)||0)<=e.header.created;return r&&this.streamLatestTimestamp.set(t,e.header.created),r}}var We=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))};class qe{constructor(e){this.config=e,this.connections=[],this.connectingSessions=new Map,this.rtcInstancesConstructed=0,this.updateInterval=B({func:()=>We(this,void 0,void 0,(function*(){try{yield this.update()}catch(e){x.vF.warn("RTC update failed",{error:e})}})),delay:250*a.p.millisecond}),this.localPeer=this.createPeer()}send(e,t,r){const n=this.getActiveConnection(e);n?n.isReady()?n.send(t,r):x.vF.warn("Attempted to send with an active connection to that peer which was not yet ready."):x.vF.warn("Attempted to send with no active connection to that peer.")}controlRemoteStream(e,t){const r=this.getActiveConnection(e);r?r.isReady()?r.controlRemoteStream(t):x.vF.warn("Attempted to control remote stream with an active connection to that peer which was not yet ready."):x.vF.warn("Attempted to control remote stream with no active connection to that peer.")}connect(e){return We(this,void 0,void 0,(function*(){const t=yield this.getLocalPeer();if(this.getActiveConnection(e))return void x.vF.warn("Attempted to connect to peer with an already active connection.");let r;try{r=yield this.config.signalingClient.createSession(yield this.config.getToken(),{offerPeerId:t.id,answerPeerId:e})}catch(e){(0,De.e)(e,Le.o,e=>404===e.statusCode),x.vF.warn("Attempted to connect to peer that does not exist.")}if(r)for(this.connectingSessions.set(r.id,(new Date).getTime()),yield this.connectToSession(r);;)switch(yield(0,l.c)(.1),this.getConnectionStatus(e)){case"connecting":continue;case"connected":return r.id;case"disconnected":return}}))}getConnectionStatus(e){const t=this.getActiveConnection(e);return t?t.isReady()?"connected":"connecting":"disconnected"}getIceMode(e){const t=this.getActiveConnection(e);if(t)return t.iceMode}disconnect(e){return We(this,void 0,void 0,(function*(){const t=this.getActiveConnection(e);t&&(yield this.closeConnection(t))}))}getLocalPeer(){return We(this,void 0,void 0,(function*(){return yield this.localPeer}))}getPeers(){return We(this,void 0,void 0,(function*(){return yield this.config.signalingClient.getPeers(yield this.config.getToken())}))}getPing(e){const t=this.getActiveConnection(e);if(t)return t.getPing();x.vF.warn("Attempted to get ping time from inactive peer.")}getLastMessageTimestamp(e){const t=this.getActiveConnection(e);if(t)return t.getLastMessageTimestamp();x.vF.warn("Attempted to get ping time from inactive peer.")}shutdown(){return We(this,void 0,void 0,(function*(){yield this.updateInterval.stop();const e=this.connections;this.connections=[],yield this.closeConnections(e)}))}closeConnection(e){return We(this,void 0,void 0,(function*(){this.connectingSessions.delete(e.getSessionId()),yield e.close();try{yield this.config.signalingClient.deleteSession(yield this.config.getToken(),e.getSessionId())}catch(e){(0,De.e)(e,Le.o,e=>404===e.statusCode)}}))}getSessions(){return We(this,void 0,void 0,(function*(){const e=yield this.getLocalPeer();return(yield this.config.signalingClient.getSessions(yield this.config.getToken())).filter(t=>t.offer.peer.id===e.id||t.answer.peer.id===e.id)}))}createPeer(){return We(this,void 0,void 0,(function*(){return yield this.config.signalingClient.createPeer(yield this.config.getToken(),{capabilitySet:this.config.capabilitySet||{}})}))}createRTCPeerConnection(){return We(this,arguments,void 0,(function*(e={}){const t=this.config.alternateRTCPeerConnection||RTCPeerConnection;this.rtcInstancesConstructed++,this.rtcInstancesConstructed%20||Ie();try{return new t(Object.assign({iceServers:yield this.config.signalingClient.getIceServers(yield this.config.getToken())},e))}catch(e){throw x.vF.debug(`Failed to create RTCPeerConnection: ${this.rtcInstancesConstructed} total allocated`),e}}))}closeConnections(e){return We(this,void 0,void 0,(function*(){const t=yield Q(e.map(e=>We(this,void 0,void 0,(function*(){yield this.closeConnection(e)}))));for(const e of t)x.vF.warn("Request to close session failed",{error:e})}))}reset(){return We(this,void 0,void 0,(function*(){yield this.closeConnections(this.connections),this.connections=[],this.connectingSessions=new Map,this.localPeer=this.createPeer(),yield this.localPeer}))}getActiveConnection(e){return this.connections.find(t=>t.getRemotePeer().id===e&&t.isActive())}update(){return We(this,void 0,void 0,(function*(){const e=yield this.getLocalPeer();try{yield this.config.signalingClient.refreshPeer(yield this.config.getToken(),e.id)}catch(t){(0,De.e)(t,Le.o,e=>404===e.statusCode),x.vF.warn("Peer expired, creating new peer",{peerId:e.id}),yield this.reset()}yield this.handleSessions(yield this.getSessions())}))}handleSessions(e){return We(this,void 0,void 0,(function*(){yield this.syncConnectionsAndSessions(e);const t=e.map(e=>({session:e,connection:this.connections.find(t=>t.getSessionId()===e.id)}));yield Promise.all(t.map(e=>We(this,[e],void 0,(function*({session:e,connection:t}){return yield this.maintainConnection(e,t)}))))}))}syncConnectionsAndSessions(e){return We(this,void 0,void 0,(function*(){const t=new Set(e.map(e=>e.id)),r=e=>t.has(e.getSessionId())||this.connectingSessions.has(e.getSessionId());this.connections=this.connections.filter(e=>r(e));const n=this.connections.filter(e=>!r(e)||e.needsClosing());yield Promise.all(n.map(e=>We(this,void 0,void 0,(function*(){yield this.closeConnection(e)}))))}))}maintainConnection(e,t){return We(this,void 0,void 0,(function*(){const r=yield this.getLocalPeer(),n=e.offer.peer.id===r.id;if(t){if(t.isReady())try{yield this.config.signalingClient.refreshSession(yield this.config.getToken(),e.id)}catch(t){(0,De.e)(t,Le.o,e=>404===e.statusCode),x.vF.debug("Refresh session not found",{sessionId:e.id})}else if(t.isActive())try{yield this.consumeSignals(t)}catch(e){x.vF.warn("Failed to ingest signals, closing connection",{error:e}),yield this.closeConnection(t)}}else{if(n)return;yield this.connectToSession(e)}}))}connectToSession(e){return We(this,void 0,void 0,(function*(){const t=yield this.getLocalPeer(),r=e.offer.peer.id===t.id,n=yield this.createRTCPeerConnection(),i=new Ve(n,{localPeer:r?e.offer.peer:e.answer.peer,remotePeer:r?e.answer.peer:e.offer.peer,sessionId:e.id,isOffer:r,sendSignal:t=>this.sendSignal(e.id,t),receive:(e,t)=>this.config.receive(e,t)});if(this.connections.find(t=>t.getSessionId()===e.id))return x.vF.warn("connectToSession called on a session that already has a connection.",{sessionId:e.id}),void(yield i.close());this.setupHandlers(i),this.connections.push(i);try{yield i.connect()}catch(e){x.vF.warn("Failed to handle negotiation, closing connection",{error:e}),yield this.closeConnection(i)}}))}setupHandlers(e){const{peerConnection:t}=e,r=e.getSessionId();t.onconnectionstatechange=()=>We(this,void 0,void 0,(function*(){const n=this.connectingSessions.get(r);if(void 0===n)return;const i=t.connectionState;switch(Te(t)&&this.connectingSessions.delete(r),i){case"connected":{this.connectingSessions.delete(r);const e=(new Date).getTime()-n;U.aggregate("rtc-connect-time",e);break}case"failed":U.increment("rtc-connect-failed"),yield this.closeConnection(e)}}))}consumeSignals(e){return We(this,void 0,void 0,(function*(){let t=[];try{t=yield this.config.signalingClient.takeSignals(yield this.config.getToken(),e.getSessionId())}catch(e){(0,De.e)(e,Le.o,e=>404===e.statusCode)}for(const r of t)yield e.handleSignal(r)}))}sendSignal(e,t){return We(this,void 0,void 0,(function*(){try{yield this.config.signalingClient.addSignals(yield this.config.getToken(),e,{signals:[t]})}catch(e){(0,De.e)(e,Le.o,e=>404===e.statusCode)}}))}}})(),n})());