genesys-cloud-streaming-client 14.2.1-develop.21 → 14.2.1-develop.22

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.
@@ -6,6 +6,6 @@ window.GenesysCloudStreamingClient=function(e){var t={};function n(r){if(t[r])re
6
6
  * @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
7
7
  * @license MIT
8
8
  */
9
- n(47),n(73),n(320),n(10),n(158),n(82),n(23),n(9),n(33),n(159),n(20),n(321),n(184),n(157),n(5),n(15),n(25),n(99),n(89),n(38),n(98),n(74),n(48),n(49),n(50),n(51),n(52),n(53),n(54),n(55),n(56),n(57),n(58),n(59),n(60),n(61),n(62),n(63),n(64),n(65),n(66),n(67),n(68),n(69),n(70),n(136);var r=n(322),i=n(323),a=n(324);function o(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(o()<t)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=c.prototype:(null===e&&(e=new c(t)),e.length=t),e}function c(e,t,n){if(!(c.TYPED_ARRAY_SUPPORT||this instanceof c))return new c(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return f(this,e)}return u(this,e,t,n)}function u(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);c.TYPED_ARRAY_SUPPORT?(e=t).__proto__=c.prototype:e=p(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!c.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|h(t,n),i=(e=s(e,r)).write(t,n);i!==r&&(e=e.slice(0,i));return e}(e,t,n):function(e,t){if(c.isBuffer(t)){var n=0|d(t.length);return 0===(e=s(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?s(e,0):p(e,t);if("Buffer"===t.type&&a(t.data))return p(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function l(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function f(e,t){if(l(t),e=s(e,t<0?0:0|d(t)),!c.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function p(e,t){var n=t.length<0?0:0|d(t.length);e=s(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function d(e){if(e>=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|e}function h(e,t){if(c.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return B(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return U(e).length;default:if(r)return B(e).length;t=(""+t).toLowerCase(),r=!0}}function v(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return O(this,t,n);case"utf8":case"utf-8":return j(this,t,n);case"ascii":return E(this,t,n);case"latin1":case"binary":return I(this,t,n);case"base64":return T(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function m(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function g(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=c.from(t,r)),c.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,i);if("number"==typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function y(e,t,n,r,i){var a,o=1,s=e.length,c=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;o=2,s/=2,c/=2,n/=2}function u(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var l=-1;for(a=n;a<s;a++)if(u(e,a)===u(t,-1===l?0:a-l)){if(-1===l&&(l=a),a-l+1===c)return l*o}else-1!==l&&(a-=a-l),l=-1}else for(n+c>s&&(n=s-c),a=n;a>=0;a--){for(var f=!0,p=0;p<c;p++)if(u(e,a+p)!==u(t,p)){f=!1;break}if(f)return a}return-1}function b(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var a=t.length;if(a%2!=0)throw new TypeError("Invalid hex string");r>a/2&&(r=a/2);for(var o=0;o<r;++o){var s=parseInt(t.substr(2*o,2),16);if(isNaN(s))return o;e[n+o]=s}return o}function _(e,t,n,r){return z(B(t,e.length-n),e,n,r)}function w(e,t,n,r){return z(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function S(e,t,n,r){return w(e,t,n,r)}function x(e,t,n,r){return z(U(t),e,n,r)}function k(e,t,n,r){return z(function(e,t){for(var n,r,i,a=[],o=0;o<e.length&&!((t-=2)<0);++o)n=e.charCodeAt(o),r=n>>8,i=n%256,a.push(i),a.push(r);return a}(t,e.length-n),e,n,r)}function T(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function j(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var a,o,s,c,u=e[i],l=null,f=u>239?4:u>223?3:u>191?2:1;if(i+f<=n)switch(f){case 1:u<128&&(l=u);break;case 2:128==(192&(a=e[i+1]))&&(c=(31&u)<<6|63&a)>127&&(l=c);break;case 3:a=e[i+1],o=e[i+2],128==(192&a)&&128==(192&o)&&(c=(15&u)<<12|(63&a)<<6|63&o)>2047&&(c<55296||c>57343)&&(l=c);break;case 4:a=e[i+1],o=e[i+2],s=e[i+3],128==(192&a)&&128==(192&o)&&128==(192&s)&&(c=(15&u)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&c<1114112&&(l=c)}null===l?(l=65533,f=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=f}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=4096));return n}(r)}t.Buffer=c,t.SlowBuffer=function(e){+e!=e&&(e=0);return c.alloc(+e)},t.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=o(),c.poolSize=8192,c._augment=function(e){return e.__proto__=c.prototype,e},c.from=function(e,t,n){return u(null,e,t,n)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(e,t,n){return function(e,t,n,r){return l(t),t<=0?s(e,t):void 0!==n?"string"==typeof r?s(e,t).fill(n,r):s(e,t).fill(n):s(e,t)}(null,e,t,n)},c.allocUnsafe=function(e){return f(null,e)},c.allocUnsafeSlow=function(e){return f(null,e)},c.isBuffer=function(e){return!(null==e||!e._isBuffer)},c.compare=function(e,t){if(!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,a=Math.min(n,r);i<a;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},c.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}},c.concat=function(e,t){if(!a(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=c.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var o=e[n];if(!c.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,i),i+=o.length}return r},c.byteLength=h,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)m(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)m(this,t,t+3),m(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return this},c.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?j(this,0,e):v.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},c.prototype.compare=function(e,t,n,r,i){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var a=(i>>>=0)-(r>>>=0),o=(n>>>=0)-(t>>>=0),s=Math.min(a,o),u=this.slice(r,i),l=e.slice(t,n),f=0;f<s;++f)if(u[f]!==l[f]){a=u[f],o=l[f];break}return a<o?-1:o<a?1:0},c.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},c.prototype.indexOf=function(e,t,n){return g(this,e,t,n,!0)},c.prototype.lastIndexOf=function(e,t,n){return g(this,e,t,n,!1)},c.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var a=!1;;)switch(r){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return _(this,e,t,n);case"ascii":return w(this,e,t,n);case"latin1":case"binary":return S(this,e,t,n);case"base64":return x(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,t,n);default:if(a)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),a=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function E(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function I(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function O(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",a=t;a<n;++a)i+=D(e[a]);return i}function A(e,t,n){for(var r=e.slice(t,n),i="",a=0;a<r.length;a+=2)i+=String.fromCharCode(r[a]+256*r[a+1]);return i}function R(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function N(e,t,n,r,i,a){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function C(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,a=Math.min(e.length-n,2);i<a;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function P(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,a=Math.min(e.length-n,4);i<a;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function L(e,t,n,r,i,a){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function q(e,t,n,r,a){return a||L(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function F(e,t,n,r,a){return a||L(e,0,n,8),i.write(e,t,n,r,52,8),n+8}c.prototype.slice=function(e,t){var n,r=this.length;if((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),c.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=c.prototype;else{var i=t-e;n=new c(i,void 0);for(var a=0;a<i;++a)n[a]=this[a+e]}return n},c.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||R(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r},c.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||R(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},c.prototype.readUInt8=function(e,t){return t||R(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||R(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||R(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||R(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return t||R(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||R(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},c.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||R(e,t,this.length);for(var r=t,i=1,a=this[e+--r];r>0&&(i*=256);)a+=this[e+--r]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},c.prototype.readInt8=function(e,t){return t||R(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||R(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){t||R(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return t||R(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||R(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return t||R(e,4,this.length),i.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||R(e,4,this.length),i.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||R(e,8,this.length),i.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||R(e,8,this.length),i.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||N(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,a=0;for(this[t]=255&e;++a<n&&(i*=256);)this[t+a]=e/i&255;return t+n},c.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||N(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,a=1;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+n},c.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):C(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):C(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):P(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):P(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);N(this,e,t,n,i-1,-i)}var a=0,o=1,s=0;for(this[t]=255&e;++a<n&&(o*=256);)e<0&&0===s&&0!==this[t+a-1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},c.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);N(this,e,t,n,i-1,-i)}var a=n-1,o=1,s=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):C(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):C(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):P(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):P(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,n){return q(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return q(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return F(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return F(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,a=r-n;if(this===e&&n<t&&t<r)for(i=a-1;i>=0;--i)e[i+t]=this[i+n];else if(a<1e3||!c.TYPED_ARRAY_SUPPORT)for(i=0;i<a;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+a),t);return a},c.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!c.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var a;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(a=t;a<n;++a)this[a]=e;else{var o=c.isBuffer(e)?e:B(new c(e,r).toString()),s=o.length;for(a=0;a<n-t;++a)this[a+t]=o[a%s]}return this};var M=/[^+\/0-9A-Za-z-_]/g;function D(e){return e<16?"0"+e.toString(16):e.toString(16)}function B(e,t){var n;t=t||1/0;for(var r=e.length,i=null,a=[],o=0;o<r;++o){if((n=e.charCodeAt(o))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function U(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(M,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function z(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(this,n(79))},function(e,t,n){"use strict";n(10),Object.defineProperty(t,"__esModule",{value:!0}),t.NS_AVATAR_METADATA=t.NS_AVATAR_DATA=t.NS_ROSTER_DELIMITER=t.NS_GEOLOC=t.NS_AMP=t.NS_INBAND_REGISTRATION=t.NS_REGISTER=t.NS_XHTML_IM=t.NS_XHTML=t.NS_HTTP_AUTH=t.NS_OOB_TRANSFER=t.NS_OOB=t.NS_SOCKS5=t.NS_PUBSUB_OWNER=t.NS_PUBSUB_EVENT=t.NS_PUBSUB_ERRORS=t.NS_PUBSUB=t.NS_RSM=t.NS_SEARCH=t.NS_VCARD_TEMP=t.NS_ADHOC_COMMANDS=t.NS_PRIVATE=t.NS_BOOKMARKS=t.NS_IBB=t.NS_MUC_USER=t.NS_MUC_OWNER=t.NS_MUC_ADMIN=t.NS_MUC=t.NS_ADDRESS=t.NS_DISCO_ITEMS=t.NS_DISCO_INFO=t.NS_LEGACY_CHAT_EVENTS=t.NS_PRIVACY=t.NS_LAST_ACTIVITY=t.NS_RPC=t.NS_DATAFORM=t.NS_FRAMING=t.NS_SUBSCRIPTION_PREAPPROVAL=t.NS_ROSTER_VERSIONING=t.NS_ROSTER=t.NS_STARTTLS=t.NS_STREAMS=t.NS_STREAM=t.NS_STANZAS=t.NS_SESSION=t.NS_SERVER=t.NS_SASL=t.NS_CLIENT=t.NS_BIND=t.NS_ATOM=void 0,t.NS_JINGLE_FILE_TRANSFER_4=t.NS_JINGLE_FILE_TRANSFER_3=t.NS_SOFTWARE_INFO=t.NS_BOB=t.NS_ATTENTION_0=t.NS_DATAFORM_MEDIA=t.NS_DISCO_EXTERNAL_2=t.NS_DISCO_EXTERNAL_1=t.NS_BOSH_XMPP=t.NS_DELAY=t.NS_TIME=t.NS_PING=t.NS_SMACKS_3=t.NS_BLOCKING_ERRORS=t.NS_BLOCKING=t.NS_INVISIBLE_0=t.NS_RECEIPTS=t.NS_JINGLE_RAW_UDP_1=t.NS_JINGLE_ICE_UDP_1=t.NS_NICK=t.NS_LANG_TRANS_ITEMS=t.NS_LANG_TRANS=t.NS_JINGLE_RTP_VIDEO=t.NS_JINGLE_RTP_AUDIO=t.NS_JINGLE_RTP_INFO_1=t.NS_JINGLE_RTP_ERRORS_1=t.NS_JINGLE_RTP_1=t.NS_JINGLE_ERRORS_1=t.NS_JINGLE_1=t.NS_PEP_NOTIFY=t.NS_CAPTCHA=t.NS_ALT_CONNECTIONS_XBOSH=t.NS_ALT_CONNECTIONS_WEBSOCKET=t.NS_VCARD_TEMP_UPDATE=t.NS_REACH_0=t.NS_ROSTER_NOTES=t.NS_ROSTER_EXCHANGE=t.NS_DATAFORM_LAYOUT=t.NS_COMPRESSION=t.NS_COMPRESSION_FEATURE=t.NS_SHIM=t.NS_BOSH=t.NS_DATAFORM_VALIDATION=t.NS_TUNE=t.NS_DISCO_LEGACY_CAPS=t.NS_COMPONENT=t.NS_ACTIVITY=t.NS_MOOD=t.NS_VERSION=t.NS_CHAT_STATES=void 0,t.NS_OMEMO_AXOLOTL=t.NS_SPOILER_0=t.NS_EME_0=t.NS_REFERENCE_0=t.NS_JINGLE_ICE_0=t.NS_JINGLE_HTTP_UPLOAD_0=t.NS_JINGLE_HTTP_0=t.NS_HTTP_UPLOAD_0=t.NS_SID_0=t.NS_JINGLE_PUB_1=t.NS_PUSH_0=t.NS_DELEGATION_1=t.NS_JINGLE_MSG_INITIATE_0=t.NS_CSI_0=t.NS_JINGLE_DTLS_SCTP_1=t.NS_JINGLE_RTP_SSMA_0=t.NS_JINGLE_GROUPING_0=t.NS_JSON_0=t.NS_HINTS=t.NS_CHAT_MARKERS_0=t.NS_JINGLE_DTLS_0=t.NS_IDLE_1=t.NS_HATS_0=t.NS_MAM_2=t.NS_MAM_1=t.NS_MAM_0=t.NS_MAM_TMP=t.NS_PSA=t.NS_CORRECTION_0=t.NS_MUC_UNIQUE=t.NS_RTT_0=t.NS_HASH_NAME=t.NS_HASHES_2=t.NS_HASHES_1=t.NS_FORWARD_0=t.NS_JINGLE_RTP_HDREXT_0=t.NS_JINGLE_RTP_RTCP_FB_0=t.NS_CARBONS_2=t.NS_DECLOAKING_0=t.NS_THUMBS_1=t.NS_THUMBS_0=t.NS_JINGLE_RTP_ZRTP_1=t.NS_JINGLE_IBB_1=t.NS_JINGLE_SOCKS5_1=t.NS_SEC_LABEL_ESS_0=t.NS_SEC_LABEL_CATALOG_2=t.NS_SEC_LABEL_0=t.NS_MUC_DIRECT_INVITE=t.NS_JINGLE_XML_0=t.NS_JINGLE_FILE_TRANSFER_5=void 0,t.NS_JINGLE_RTP_MSID_0=t.NS_XRD=t.NS_JSON_MESSAGE_0=t.NS_OMEMO_AXOLOTL_BUNDLE=t.NS_OMEMO_AXOLOTL_BUNDLES=t.NS_OMEMO_AXOLOTL_DEVICELIST=void 0,t.NS_ATOM="http://www.w3.org/2005/Atom",t.NS_BIND="urn:ietf:params:xml:ns:xmpp-bind",t.NS_CLIENT="jabber:client",t.NS_SASL="urn:ietf:params:xml:ns:xmpp-sasl",t.NS_SERVER="jabber:server",t.NS_SESSION="urn:ietf:params:xml:ns:xmpp-session",t.NS_STANZAS="urn:ietf:params:xml:ns:xmpp-stanzas",t.NS_STREAM="http://etherx.jabber.org/streams",t.NS_STREAMS="urn:ietf:params:xml:ns:xmpp-streams",t.NS_STARTTLS="urn:ietf:params:xml:ns:xmpp-tls",t.NS_ROSTER="jabber:iq:roster",t.NS_ROSTER_VERSIONING="urn:xmpp:features:rosterver",t.NS_SUBSCRIPTION_PREAPPROVAL="urn:xmpp:features:pre-approval",t.NS_FRAMING="urn:ietf:params:xml:ns:xmpp-framing",t.NS_DATAFORM="jabber:x:data",t.NS_RPC="jabber:iq:rpc",t.NS_LAST_ACTIVITY="jabber:iq:last",t.NS_PRIVACY="jabber:iq:privacy",t.NS_LEGACY_CHAT_EVENTS="jabber:x:event",t.NS_DISCO_INFO="http://jabber.org/protocol/disco#info",t.NS_DISCO_ITEMS="http://jabber.org/protocol/disco#items",t.NS_ADDRESS="http://jabber.org/protocol/address",t.NS_MUC="http://jabber.org/protocol/muc",t.NS_MUC_ADMIN="http://jabber.org/protocol/muc#admin",t.NS_MUC_OWNER="http://jabber.org/protocol/muc#owner",t.NS_MUC_USER="http://jabber.org/protocol/muc#user",t.NS_IBB="http://jabber.org/protocol/ibb",t.NS_BOOKMARKS="storage:bookmarks",t.NS_PRIVATE="jabber:iq:private",t.NS_ADHOC_COMMANDS="http://jabber.org/protocol/commands",t.NS_VCARD_TEMP="vcard-temp",t.NS_SEARCH="jabber:iq:search",t.NS_RSM="http://jabber.org/protocol/rsm",t.NS_PUBSUB="http://jabber.org/protocol/pubsub",t.NS_PUBSUB_ERRORS="http://jabber.org/protocol/pubsub#errors",t.NS_PUBSUB_EVENT="http://jabber.org/protocol/pubsub#event",t.NS_PUBSUB_OWNER="http://jabber.org/protocol/pubsub#owner",t.NS_SOCKS5="http://jabber.org/protocol/bytestreams",t.NS_OOB="jabber:x:oob",t.NS_OOB_TRANSFER="jabber:iq:oob",t.NS_HTTP_AUTH="http://jabber.org/protocol/http-auth",t.NS_XHTML="http://www.w3.org/1999/xhtml",t.NS_XHTML_IM="http://jabber.org/protocol/xhtml-im",t.NS_REGISTER="jabber:iq:register",t.NS_INBAND_REGISTRATION="http://jabber.org/features/iq-register",t.NS_AMP="http://jabber.org/protocol/amp",t.NS_GEOLOC="http://jabber.org/protocol/geoloc",t.NS_ROSTER_DELIMITER="roster:delimiter",t.NS_AVATAR_DATA="urn:xmpp:avatar:data",t.NS_AVATAR_METADATA="urn:xmpp:avatar:metadata",t.NS_CHAT_STATES="http://jabber.org/protocol/chatstates",t.NS_VERSION="jabber:iq:version",t.NS_MOOD="http://jabber.org/protocol/mood",t.NS_ACTIVITY="http://jabber.org/protocol/activity",t.NS_COMPONENT="jabber:component:accept",t.NS_DISCO_LEGACY_CAPS="http://jabber.org/protocol/caps",t.NS_TUNE="http://jabber.org/protocol/tune",t.NS_DATAFORM_VALIDATION="http://jabber.org/protocol/xdata-validate",t.NS_BOSH="http://jabber.org/protocol/httpbind",t.NS_SHIM="http://jabber.org/protocol/shim",t.NS_COMPRESSION_FEATURE="http://jabber.org/features/compress",t.NS_COMPRESSION="http://jabber.org/protocol/compress",t.NS_DATAFORM_LAYOUT="http://jabber.org/protocol/xdata-layout",t.NS_ROSTER_EXCHANGE="http://jabber.org/protocol/rosterx",t.NS_ROSTER_NOTES="storage:rosternotes",t.NS_REACH_0="urn:xmpp:reach:0",t.NS_VCARD_TEMP_UPDATE="vcard-temp:x:update",t.NS_ALT_CONNECTIONS_WEBSOCKET="urn:xmpp:alt-connections:websocket",t.NS_ALT_CONNECTIONS_XBOSH="urn:xmpp:alt-connections:xbosh",t.NS_CAPTCHA="urn:xmpp:captcha";t.NS_PEP_NOTIFY=function(e){return"".concat(e,"+notify")},t.NS_JINGLE_1="urn:xmpp:jingle:1",t.NS_JINGLE_ERRORS_1="urn:xmpp:jingle:errors:1",t.NS_JINGLE_RTP_1="urn:xmpp:jingle:apps:rtp:1",t.NS_JINGLE_RTP_ERRORS_1="urn:xmpp:jingle:apps:rtp:errors:1",t.NS_JINGLE_RTP_INFO_1="urn:xmpp:jingle:apps:rtp:info:1",t.NS_JINGLE_RTP_AUDIO="urn:xmpp:jingle:apps:rtp:audio",t.NS_JINGLE_RTP_VIDEO="urn:xmpp:jingle:apps:rtp:video",t.NS_LANG_TRANS="urn:xmpp:langtrans",t.NS_LANG_TRANS_ITEMS="urn:xmpp:langtrans:items",t.NS_NICK="http://jabber.org/protocol/nick",t.NS_JINGLE_ICE_UDP_1="urn:xmpp:jingle:transports:ice-udp:1",t.NS_JINGLE_RAW_UDP_1="urn:xmpp:jingle:transports:raw-udp:1",t.NS_RECEIPTS="urn:xmpp:receipts",t.NS_INVISIBLE_0="urn:xmpp:invisible:0",t.NS_BLOCKING="urn:xmpp:blocking",t.NS_BLOCKING_ERRORS="urn:xmpp:blocking:errors",t.NS_SMACKS_3="urn:xmpp:sm:3",t.NS_PING="urn:xmpp:ping",t.NS_TIME="urn:xmpp:time",t.NS_DELAY="urn:xmpp:delay",t.NS_BOSH_XMPP="urn:xmpp:xbosh",t.NS_DISCO_EXTERNAL_1="urn:xmpp:extdisco:1",t.NS_DISCO_EXTERNAL_2="urn:xmpp:extdisco:2",t.NS_DATAFORM_MEDIA="urn:xmpp:media-element",t.NS_ATTENTION_0="urn:xmpp:attention:0",t.NS_BOB="urn:xmpp:bob",t.NS_SOFTWARE_INFO="urn:xmpp:dataforms:softwareinfo",t.NS_JINGLE_FILE_TRANSFER_3="urn:xmpp:jingle:apps:file-transfer:3",t.NS_JINGLE_FILE_TRANSFER_4="urn:xmpp:jingle:apps:file-transfer:4",t.NS_JINGLE_FILE_TRANSFER_5="urn:xmpp:jingle:apps:file-transfer:5",t.NS_JINGLE_XML_0="urn:xmpp:jingle:apps:xmlstream:0",t.NS_MUC_DIRECT_INVITE="jabber:x:conference",t.NS_SEC_LABEL_0="urn:xmpp:sec-label:0",t.NS_SEC_LABEL_CATALOG_2="urn:xmpp:sec-label:catalog:2",t.NS_SEC_LABEL_ESS_0="urn:xmpp:sec-label:ess:0",t.NS_JINGLE_SOCKS5_1="urn:xmpp:jingle:transports:s5b:1",t.NS_JINGLE_IBB_1="urn:xmpp:jingle:transports:ibb:1",t.NS_JINGLE_RTP_ZRTP_1="urn:xmpp:jingle:apps:rtp:zrtp:1",t.NS_THUMBS_0="urn:xmpp:thumbs:0",t.NS_THUMBS_1="urn:xmpp:thumbs:1",t.NS_DECLOAKING_0="urn:xmpp:decloaking:0",t.NS_CARBONS_2="urn:xmpp:carbons:2",t.NS_JINGLE_RTP_RTCP_FB_0="urn:xmpp:jingle:apps:rtp:rtcp-fb:0",t.NS_JINGLE_RTP_HDREXT_0="urn:xmpp:jingle:apps:rtp:rtp-hdrext:0",t.NS_FORWARD_0="urn:xmpp:forward:0",t.NS_HASHES_1="urn:xmpp:hashes:1",t.NS_HASHES_2="urn:xmpp:hashes:2";t.NS_HASH_NAME=function(e){return"urn:xmpp:hash-function-text-names:".concat(e)},t.NS_RTT_0="urn:xmpp:rtt:0",t.NS_MUC_UNIQUE="http://jabber.org/protocol/muc#unique",t.NS_CORRECTION_0="urn:xmpp:message-correct:0",t.NS_PSA="urn:xmpp:psa",t.NS_MAM_TMP="urn:xmpp:mam:tmp",t.NS_MAM_0="urn:xmpp:mam:0",t.NS_MAM_1="urn:xmpp:mam:1",t.NS_MAM_2="urn:xmpp:mam:2",t.NS_HATS_0="urn:xmpp:hats:0",t.NS_IDLE_1="urn:xmpp:idle:1",t.NS_JINGLE_DTLS_0="urn:xmpp:jingle:apps:dtls:0",t.NS_CHAT_MARKERS_0="urn:xmpp:chat-markers:0",t.NS_HINTS="urn:xmpp:hints",t.NS_JSON_0="urn:xmpp:json:0",t.NS_JINGLE_GROUPING_0="urn:xmpp:jingle:apps:grouping:0",t.NS_JINGLE_RTP_SSMA_0="urn:xmpp:jingle:apps:rtp:ssma:0",t.NS_JINGLE_DTLS_SCTP_1="urn:xmpp:jingle:transports:dtls-sctp:1",t.NS_CSI_0="urn:xmpp:csi:0",t.NS_JINGLE_MSG_INITIATE_0="urn:xmpp:jingle:jingle-message:0",t.NS_DELEGATION_1="urn:xmpp:delegation:1",t.NS_PUSH_0="urn:xmpp:push:0",t.NS_JINGLE_PUB_1="urn:xmpp:jinglepub:1",t.NS_SID_0="urn:xmpp:sid:0",t.NS_HTTP_UPLOAD_0="urn:xmpp:http:upload:0",t.NS_JINGLE_HTTP_0="urn:xmpp:jingle:transports:http:0",t.NS_JINGLE_HTTP_UPLOAD_0="urn:xmpp:jingle:transports:http:upload:0",t.NS_JINGLE_ICE_0="urn:xmpp:jingle:transports:ice:0",t.NS_REFERENCE_0="urn:xmpp:reference:0",t.NS_EME_0="urn:xmpp:eme:0",t.NS_SPOILER_0="urn:xmpp:spoiler:0",t.NS_OMEMO_AXOLOTL="eu.siacs.conversations.axolotl",t.NS_OMEMO_AXOLOTL_DEVICELIST="eu.siacs.conversations.axolotl.devicelist",t.NS_OMEMO_AXOLOTL_BUNDLES="eu.siacs.conversations.axolotl.bundles";t.NS_OMEMO_AXOLOTL_BUNDLE=function(e){return"".concat(t.NS_OMEMO_AXOLOTL_BUNDLES,":").concat(e)},t.NS_JSON_MESSAGE_0="urn:xmpp:json-msg:0",t.NS_XRD="http://docs.oasis-open.org/ns/xri/xrd-1.0",t.NS_JINGLE_RTP_MSID_0="urn:xmpp:jingle:apps:rtp:msid:0"},function(e,t,n){var r=n(31);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},function(e,t,n){var r=n(214),i=n(34),a=n(221),o=n(35).f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});i(t,e)||o(t,e,{value:a.f(e)})}},function(e,t,n){var r=n(34),i=n(46),a=n(145),o=n(225),s=a("IE_PROTO"),c=Object.prototype;e.exports=o?Object.getPrototypeOf:function(e){return e=i(e),r(e,s)?e[s]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?c:null}},function(e,t,n){"use strict";var r=n(95),i=n(35),a=n(18),o=n(32),s=a("species");e.exports=function(e){var t=r(e),n=i.f;o&&t&&!t[s]&&n(t,s,{configurable:!0,get:function(){return this}})}},function(e,t,n){var r=n(7),i=n(256).entries;r({target:"Object",stat:!0},{entries:function(e){return i(e)}})},function(e,t,n){"use strict";n(71);var r=n(162),i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=f;var a=Object.create(n(138));a.inherits=n(139);var o=n(260),s=n(263);a.inherits(f,o);for(var c=i(s.prototype),u=0;u<c.length;u++){var l=c[u];f.prototype[l]||(f.prototype[l]=s.prototype[l])}function f(e){if(!(this instanceof f))return new f(e);o.call(this,e),s.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",p)}function p(){this.allowHalfOpen||this._writableState.ended||r.nextTick(d,this)}function d(e){e.end()}Object.defineProperty(f.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(f.prototype,"destroyed",{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)}}),f.prototype._destroy=function(e,t){this.push(null),this.end(),r.nextTick(t,e)}},function(e,t,n){"use strict";n(47),n(73),n(19),n(28),n(75);var r=n(41);function i(e,t,n,r,i){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}r.inherits(i,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var a=i.prototype,o={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(e){o[e]={value:e}})),Object.defineProperties(i,o),Object.defineProperty(a,"isAxiosError",{value:!0}),i.from=function(e,t,n,o,s,c){var u=Object.create(a);return r.toFlatObject(e,u,(function(e){return e!==Error.prototype})),i.call(u,e.message,t,n,o,s),u.name=e.name,c&&Object.assign(u,c),u},e.exports=i},function(e,t,n){"use strict";n.r(t),n.d(t,"apply",(function(){return l})),n.d(t,"applyEach",(function(){return M})),n.d(t,"applyEachSeries",(function(){return U})),n.d(t,"asyncify",(function(){return y})),n.d(t,"auto",(function(){return G})),n.d(t,"autoInject",(function(){return K})),n.d(t,"cargo",(function(){return Z})),n.d(t,"cargoQueue",(function(){return ee})),n.d(t,"compose",(function(){return re})),n.d(t,"concat",(function(){return oe})),n.d(t,"concatLimit",(function(){return ae})),n.d(t,"concatSeries",(function(){return se})),n.d(t,"constant",(function(){return ce})),n.d(t,"detect",(function(){return le})),n.d(t,"detectLimit",(function(){return fe})),n.d(t,"detectSeries",(function(){return pe})),n.d(t,"dir",(function(){return he})),n.d(t,"doUntil",(function(){return me})),n.d(t,"doWhilst",(function(){return ve})),n.d(t,"each",(function(){return ye})),n.d(t,"eachLimit",(function(){return be})),n.d(t,"eachOf",(function(){return q})),n.d(t,"eachOfLimit",(function(){return C})),n.d(t,"eachOfSeries",(function(){return D})),n.d(t,"eachSeries",(function(){return _e})),n.d(t,"ensureAsync",(function(){return we})),n.d(t,"every",(function(){return Se})),n.d(t,"everyLimit",(function(){return xe})),n.d(t,"everySeries",(function(){return ke})),n.d(t,"filter",(function(){return Ie})),n.d(t,"filterLimit",(function(){return Oe})),n.d(t,"filterSeries",(function(){return Ae})),n.d(t,"forever",(function(){return Re})),n.d(t,"groupBy",(function(){return Ce})),n.d(t,"groupByLimit",(function(){return Ne})),n.d(t,"groupBySeries",(function(){return Pe})),n.d(t,"log",(function(){return Le})),n.d(t,"map",(function(){return F})),n.d(t,"mapLimit",(function(){return ie})),n.d(t,"mapSeries",(function(){return B})),n.d(t,"mapValues",(function(){return Fe})),n.d(t,"mapValuesLimit",(function(){return qe})),n.d(t,"mapValuesSeries",(function(){return Me})),n.d(t,"memoize",(function(){return De})),n.d(t,"nextTick",(function(){return Be})),n.d(t,"parallel",(function(){return ze})),n.d(t,"parallelLimit",(function(){return Je})),n.d(t,"priorityQueue",(function(){return Qe})),n.d(t,"queue",(function(){return Ge})),n.d(t,"race",(function(){return Ke})),n.d(t,"reduce",(function(){return te})),n.d(t,"reduceRight",(function(){return Ye})),n.d(t,"reflect",(function(){return Xe})),n.d(t,"reflectAll",(function(){return $e})),n.d(t,"reject",(function(){return et})),n.d(t,"rejectLimit",(function(){return tt})),n.d(t,"rejectSeries",(function(){return nt})),n.d(t,"retry",(function(){return it})),n.d(t,"retryable",(function(){return ot})),n.d(t,"seq",(function(){return ne})),n.d(t,"series",(function(){return st})),n.d(t,"setImmediate",(function(){return g})),n.d(t,"some",(function(){return ct})),n.d(t,"someLimit",(function(){return ut})),n.d(t,"someSeries",(function(){return lt})),n.d(t,"sortBy",(function(){return ft})),n.d(t,"timeout",(function(){return pt})),n.d(t,"times",(function(){return ht})),n.d(t,"timesLimit",(function(){return dt})),n.d(t,"timesSeries",(function(){return vt})),n.d(t,"transform",(function(){return mt})),n.d(t,"tryEach",(function(){return gt})),n.d(t,"unmemoize",(function(){return yt})),n.d(t,"until",(function(){return _t})),n.d(t,"waterfall",(function(){return wt})),n.d(t,"whilst",(function(){return bt})),n.d(t,"all",(function(){return Se})),n.d(t,"allLimit",(function(){return xe})),n.d(t,"allSeries",(function(){return ke})),n.d(t,"any",(function(){return ct})),n.d(t,"anyLimit",(function(){return ut})),n.d(t,"anySeries",(function(){return lt})),n.d(t,"find",(function(){return le})),n.d(t,"findLimit",(function(){return fe})),n.d(t,"findSeries",(function(){return pe})),n.d(t,"flatMap",(function(){return oe})),n.d(t,"flatMapLimit",(function(){return ae})),n.d(t,"flatMapSeries",(function(){return se})),n.d(t,"forEach",(function(){return ye})),n.d(t,"forEachSeries",(function(){return _e})),n.d(t,"forEachLimit",(function(){return be})),n.d(t,"forEachOf",(function(){return q})),n.d(t,"forEachOfSeries",(function(){return D})),n.d(t,"forEachOfLimit",(function(){return C})),n.d(t,"inject",(function(){return te})),n.d(t,"foldl",(function(){return te})),n.d(t,"foldr",(function(){return Ye})),n.d(t,"select",(function(){return Ie})),n.d(t,"selectLimit",(function(){return Oe})),n.d(t,"selectSeries",(function(){return Ae})),n.d(t,"wrapSync",(function(){return y})),n.d(t,"during",(function(){return bt})),n.d(t,"doDuring",(function(){return ve}));n(47),n(73),n(134),n(97),n(248),n(10),n(44),n(19),n(23),n(9),n(33),n(30),n(20),n(81),n(28),n(249),n(250),n(157),n(335),n(75),n(71),n(5),n(21),n(15),n(25),n(22),n(89),n(38),n(39),n(98),n(27),n(24),n(161),n(251);var r=n(14),i=n(0),a=(n(40),n(2)),o=n(3),s=n(6),c=n(4),u=n(13);function l(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return e.apply(void 0,n.concat(r))}}function f(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n.pop();return e.call(this,n,i)}}var p="function"==typeof queueMicrotask&&queueMicrotask,d="function"==typeof setImmediate&&setImmediate,h="object"===("undefined"==typeof process?"undefined":u(process))&&"function"==typeof process.nextTick;function v(e){setTimeout(e,0)}function m(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return e((function(){return t.apply(void 0,r)}))}}var g=m(p?queueMicrotask:d?setImmediate:h?process.nextTick:v);function y(e){return w(e)?function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n.pop(),a=e.apply(this,n);return b(a,i)}:f((function(t,n){var r;try{r=e.apply(this,t)}catch(e){return n(e)}if(r&&"function"==typeof r.then)return b(r,n);n(null,r)}))}function b(e,t){return e.then((function(e){_(t,null,e)}),(function(e){_(t,e&&e.message?e:new Error(e))}))}function _(e,t,n){try{e(t,n)}catch(e){g((function(e){throw e}),e)}}function w(e){return"AsyncFunction"===e[Symbol.toStringTag]}function S(e){if("function"!=typeof e)throw new Error("expected a function");return w(e)?y(e):e}function x(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.length;if(!t)throw new Error("arity is undefined");function n(){for(var n=this,r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return"function"==typeof i[t-1]?e.apply(this,i):new Promise((function(r,a){i[t-1]=function(e){if(e)return a(e);for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];r(n.length>1?n:n[0])},e.apply(n,i)}))}return n}function k(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];var a=x((function(n){var i=this;return e(t,(function(e,t){S(e).apply(i,r.concat(t))}),n)}));return a}}function T(e,t,n,r){t=t||[];var i=[],a=0,o=S(n);return e(t,(function(e,t,n){var r=a++;o(e,(function(e,t){i[r]=t,n(e)}))}),(function(e){r(e,i)}))}function j(e){return e&&"number"==typeof e.length&&e.length>=0&&e.length%1==0}var E={};function I(e){function t(){if(null!==e){var t=e;e=null;for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];t.apply(this,r)}}return Object.assign(t,e),t}function O(e){if(j(e))return function(e){var t=-1,n=e.length;return function(){return++t<n?{value:e[t],key:t}:null}}(e);var t,n,r,i,a=function(e){return e[Symbol.iterator]&&e[Symbol.iterator]()}(e);return a?function(e){var t=-1;return function(){var n=e.next();return n.done?null:(t++,{value:n.value,key:t})}}(a):(n=(t=e)?Object.keys(t):[],r=-1,i=n.length,function e(){var a=n[++r];return"__proto__"===a?e():r<i?{value:t[a],key:a}:null})}function A(e){return function(){if(null===e)throw new Error("Callback was already called.");var t=e;e=null;for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];t.apply(this,r)}}function R(e,t,n,r){var i=!1,a=!1,o=!1,s=0,c=0;function u(){s>=t||o||i||(o=!0,e.next().then((function(e){var t=e.value,f=e.done;if(!a&&!i){if(o=!1,f)return i=!0,void(s<=0&&r(null));s++,n(t,c,l),c++,u()}})).catch(f))}function l(e,t){if(s-=1,!a)return e?f(e):!1===e?(i=!0,void(a=!0)):t===E||i&&s<=0?(i=!0,r(null)):void u()}function f(e){a||(o=!1,i=!0,r(e))}u()}var N=function(e){return function(t,n,r){if(r=I(r),e<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!t)return r(null);if("AsyncGenerator"===t[Symbol.toStringTag])return R(t,e,n,r);if(function(e){return"function"==typeof e[Symbol.asyncIterator]}(t))return R(t[Symbol.asyncIterator](),e,n,r);var i=O(t),a=!1,o=!1,s=0,c=!1;function u(e,t){if(!o)if(s-=1,e)a=!0,r(e);else if(!1===e)a=!0,o=!0;else{if(t===E||a&&s<=0)return a=!0,r(null);c||l()}}function l(){for(c=!0;s<e&&!a;){var t=i();if(null===t)return a=!0,void(s<=0&&r(null));s+=1,n(t.value,t.key,A(u))}c=!1}l()}};var C=x((function(e,t,n,r){return N(t)(e,S(n),r)}),4);function P(e,t,n){n=I(n);var r=0,i=0,a=e.length,o=!1;function s(e,t){!1===e&&(o=!0),!0!==o&&(e?n(e):++i!==a&&t!==E||n(null))}for(0===a&&n(null);r<a;r++)t(e[r],r,A(s))}function L(e,t,n){return C(e,1/0,t,n)}var q=x((function(e,t,n){return(j(e)?P:L)(e,S(t),n)}),3);var F=x((function(e,t,n){return T(q,e,t,n)}),3),M=k(F);var D=x((function(e,t,n){return C(e,1,t,n)}),3);var B=x((function(e,t,n){return T(D,e,t,n)}),3),U=k(B),z=Symbol("promiseCallback");function J(){var e,t;function n(n){if(n)return t(n);for(var r=arguments.length,i=new Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];e(i.length>1?i:i[0])}return n[z]=new Promise((function(n,r){e=n,t=r})),n}function G(e,t,n){"number"!=typeof t&&(n=t,t=null),n=I(n||J());var r=Object.keys(e).length;if(!r)return n(null);t||(t=r);var i={},a=0,o=!1,s=!1,u=Object.create(null),l=[],f=[],p={};function d(e,t){l.push((function(){return function(e,t){if(s)return;var r=A((function(t){for(var r=arguments.length,l=new Array(r>1?r-1:0),f=1;f<r;f++)l[f-1]=arguments[f];if(a--,!1!==t){if(l.length<2){var p=l,d=c(p,1);l=d[0]}if(t){var h={};if(Object.keys(i).forEach((function(e){h[e]=i[e]})),h[e]=l,s=!0,u=Object.create(null),o)return;n(t,h)}else i[e]=l,v(e)}else o=!0}));a++;var l=S(t[t.length-1]);t.length>1?l(i,r):l(r)}(e,t)}))}function h(){if(!o){if(0===l.length&&0===a)return n(null,i);for(;l.length&&a<t;){l.shift()()}}}function v(e){(u[e]||[]).forEach((function(e){return e()})),h()}function m(t){var n=[];return Object.keys(e).forEach((function(r){var i=e[r];Array.isArray(i)&&i.indexOf(t)>=0&&n.push(r)})),n}return Object.keys(e).forEach((function(t){var n=e[t];if(!Array.isArray(n))return d(t,[n]),void f.push(t);var r=n.slice(0,n.length-1),i=r.length;if(0===i)return d(t,n),void f.push(t);p[t]=i,r.forEach((function(a){if(!e[a])throw new Error("async.auto task `"+t+"` has a non-existent dependency `"+a+"` in "+r.join(", "));!function(e,t){var n=u[e];n||(n=u[e]=[]);n.push(t)}(a,(function(){0===--i&&d(t,n)}))}))})),function(){var e,t=0;for(;f.length;)e=f.pop(),t++,m(e).forEach((function(e){0==--p[e]&&f.push(e)}));if(t!==r)throw new Error("async.auto cannot execute tasks due to a recursive dependency")}(),h(),n[z]}var V=/^(?:async\s+)?(?:function)?\s*\w*\s*\(\s*([^)]+)\s*\)(?:\s*{)/,H=/^(?:async\s+)?\(?\s*([^)=]+)\s*\)?(?:\s*=>)/,W=/,/,Q=/(=.+)?(\s*)$/;function K(e,t){var n={};return Object.keys(e).forEach((function(t){var r,i=e[t],a=w(i),o=!a&&1===i.length||a&&0===i.length;if(Array.isArray(i))r=s(i),i=r.pop(),n[t]=r.concat(r.length>0?u:i);else if(o)n[t]=i;else{if(r=function(e){var t=function(e){for(var t="",n=0,r=e.indexOf("*/");n<e.length;)if("/"===e[n]&&"/"===e[n+1]){var i=e.indexOf("\n",n);n=-1===i?e.length:i}else if(-1!==r&&"/"===e[n]&&"*"===e[n+1]){var a=e.indexOf("*/",n);-1!==a?(n=a+2,r=e.indexOf("*/",n)):(t+=e[n],n++)}else t+=e[n],n++;return t}(e.toString()),n=t.match(V);if(n||(n=t.match(H)),!n)throw new Error("could not parse args in autoInject\nSource:\n"+t);return c(n,2)[1].replace(/\s/g,"").split(W).map((function(e){return e.replace(Q,"").trim()}))}(i),0===i.length&&!a&&0===r.length)throw new Error("autoInject task functions require explicit parameters.");a||r.pop(),n[t]=r.concat(u)}function u(e,t){var n=r.map((function(t){return e[t]}));n.push(t),S(i).apply(void 0,s(n))}})),G(n,t)}var Y=function(){function e(){a(this,e),this.head=this.tail=null,this.length=0}return o(e,[{key:"removeLink",value:function(e){return e.prev?e.prev.next=e.next:this.head=e.next,e.next?e.next.prev=e.prev:this.tail=e.prev,e.prev=e.next=null,this.length-=1,e}},{key:"empty",value:function(){for(;this.head;)this.shift();return this}},{key:"insertAfter",value:function(e,t){t.prev=e,t.next=e.next,e.next?e.next.prev=t:this.tail=t,e.next=t,this.length+=1}},{key:"insertBefore",value:function(e,t){t.prev=e.prev,t.next=e,e.prev?e.prev.next=t:this.head=t,e.prev=t,this.length+=1}},{key:"unshift",value:function(e){this.head?this.insertBefore(this.head,e):X(this,e)}},{key:"push",value:function(e){this.tail?this.insertAfter(this.tail,e):X(this,e)}},{key:"shift",value:function(){return this.head&&this.removeLink(this.head)}},{key:"pop",value:function(){return this.tail&&this.removeLink(this.tail)}},{key:"toArray",value:function(){return s(this)}},{key:Symbol.iterator,value:i.mark((function e(){var t;return i.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=this.head;case 1:if(!t){e.next=7;break}return e.next=4,t.data;case 4:t=t.next,e.next=1;break;case 7:case"end":return e.stop()}}),e,this)}))},{key:"remove",value:function(e){for(var t=this.head;t;){var n=t.next;e(t)&&this.removeLink(t),t=n}return this}}]),e}();function X(e,t){e.length=1,e.head=e.tail=t}function $(e,t,n){var a;if(null==t)t=1;else if(0===t)throw new RangeError("Concurrency must not be zero");var o=S(e),s=0,c=[],u={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function l(e,t){return e?t?void(u[e]=u[e].filter((function(e){return e!==t}))):u[e]=[]:Object.keys(u).forEach((function(e){return u[e]=[]}))}function f(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];u[e].forEach((function(e){return e.apply(void 0,n)}))}var p=!1;function d(e,t,n,r){if(null!=r&&"function"!=typeof r)throw new Error("task callback must be a function");var i,a;function o(e){if(e)return n?a(e):i();for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];if(r.length<=1)return i(r[0]);i(r)}b.started=!0;var s={data:e,callback:n?o:r||o};if(t?b._tasks.unshift(s):b._tasks.push(s),p||(p=!0,g((function(){p=!1,b.process()}))),n||!r)return new Promise((function(e,t){i=e,a=t}))}function h(e){return function(t){s-=1;for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];for(var a=0,o=e.length;a<o;a++){var u=e[a],l=c.indexOf(u);0===l?c.shift():l>0&&c.splice(l,1),u.callback.apply(u,[t].concat(r)),null!=t&&f("error",t,u.data)}s<=b.concurrency-b.buffer&&f("unsaturated"),b.idle()&&f("drain"),b.process()}}function v(e){return!(0!==e.length||!b.idle())&&(g((function(){return f("drain")})),!0)}var m=function(e){return function(t){if(!t)return new Promise((function(t,n){!function(e,t){u[e].push((function n(){l(e,n),t.apply(void 0,arguments)}))}(e,(function(e,r){if(e)return n(e);t(r)}))}));l(e),function(e,t){u[e].push(t)}(e,t)}},y=!1,b=(a={_tasks:new Y},r(a,Symbol.iterator,i.mark((function e(){return i.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(b._tasks[Symbol.iterator](),"t0",1);case 1:case"end":return e.stop()}}),e)}))),r(a,"concurrency",t),r(a,"payload",n),r(a,"buffer",t/4),r(a,"started",!1),r(a,"paused",!1),r(a,"push",(function(e,t){if(Array.isArray(e)){if(v(e))return;return e.map((function(e){return d(e,!1,!1,t)}))}return d(e,!1,!1,t)})),r(a,"pushAsync",(function(e,t){if(Array.isArray(e)){if(v(e))return;return e.map((function(e){return d(e,!1,!0,t)}))}return d(e,!1,!0,t)})),r(a,"kill",(function(){l(),b._tasks.empty()})),r(a,"unshift",(function(e,t){if(Array.isArray(e)){if(v(e))return;return e.map((function(e){return d(e,!0,!1,t)}))}return d(e,!0,!1,t)})),r(a,"unshiftAsync",(function(e,t){if(Array.isArray(e)){if(v(e))return;return e.map((function(e){return d(e,!0,!0,t)}))}return d(e,!0,!0,t)})),r(a,"remove",(function(e){b._tasks.remove(e)})),r(a,"process",(function(){if(!y){for(y=!0;!b.paused&&s<b.concurrency&&b._tasks.length;){var e=[],t=[],n=b._tasks.length;b.payload&&(n=Math.min(n,b.payload));for(var r=0;r<n;r++){var i=b._tasks.shift();e.push(i),c.push(i),t.push(i.data)}s+=1,0===b._tasks.length&&f("empty"),s===b.concurrency&&f("saturated");var a=A(h(e));o(t,a)}y=!1}})),r(a,"length",(function(){return b._tasks.length})),r(a,"running",(function(){return s})),r(a,"workersList",(function(){return c})),r(a,"idle",(function(){return b._tasks.length+s===0})),r(a,"pause",(function(){b.paused=!0})),r(a,"resume",(function(){!1!==b.paused&&(b.paused=!1,g(b.process))})),a);return Object.defineProperties(b,{saturated:{writable:!1,value:m("saturated")},unsaturated:{writable:!1,value:m("unsaturated")},empty:{writable:!1,value:m("empty")},drain:{writable:!1,value:m("drain")},error:{writable:!1,value:m("error")}}),b}function Z(e,t){return $(e,1,t)}function ee(e,t,n){return $(e,t,n)}var te=x((function(e,t,n,r){r=I(r);var i=S(n);return D(e,(function(e,n,r){i(t,e,(function(e,n){t=n,r(e)}))}),(function(e){return r(e,t)}))}),4);function ne(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.map(S);return function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];var a=n[n.length-1];return"function"==typeof a?n.pop():a=J(),te(r,n,(function(t,n,r){n.apply(e,t.concat((function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];r(e,n)})))}),(function(e,t){return a.apply(void 0,[e].concat(s(t)))})),a[z]}}function re(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ne.apply(void 0,s(t.reverse()))}var ie=x((function(e,t,n,r){return T(N(t),e,n,r)}),4);var ae=x((function(e,t,n,r){var i=S(n);return ie(e,t,(function(e,t){i(e,(function(e){if(e)return t(e);for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return t(e,r)}))}),(function(e,t){for(var n=[],i=0;i<t.length;i++){var a;if(t[i])n=(a=n).concat.apply(a,s(t[i]))}return r(e,n)}))}),4);var oe=x((function(e,t,n){return ae(e,1/0,t,n)}),3);var se=x((function(e,t,n){return ae(e,1,t,n)}),3);function ce(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=n.pop();return i.apply(void 0,[null].concat(t))}}function ue(e,t){return function(n,r,i,a){var o,s=!1,c=S(i);n(r,(function(n,r,i){c(n,(function(r,a){return r||!1===r?i(r):e(a)&&!o?(s=!0,o=t(!0,n),i(null,E)):void i()}))}),(function(e){if(e)return a(e);a(null,s?o:t(!1))}))}}var le=x((function(e,t,n){return ue((function(e){return e}),(function(e,t){return t}))(q,e,t,n)}),3);var fe=x((function(e,t,n,r){return ue((function(e){return e}),(function(e,t){return t}))(N(t),e,n,r)}),4);var pe=x((function(e,t,n){return ue((function(e){return e}),(function(e,t){return t}))(N(1),e,t,n)}),3);function de(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return S(t).apply(void 0,r.concat([function(t){if("object"===("undefined"==typeof console?"undefined":u(console)))if(t)console.error&&console.error(t);else if(console[e]){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];r.forEach((function(t){return console[e](t)}))}}]))}}var he=de("dir");var ve=x((function(e,t,n){n=A(n);var r,i=S(e),a=S(t);function o(e){if(e)return n(e);if(!1!==e){for(var t=arguments.length,i=new Array(t>1?t-1:0),o=1;o<t;o++)i[o-1]=arguments[o];r=i,a.apply(void 0,i.concat([c]))}}function c(e,t){return e?n(e):!1!==e?t?void i(o):n.apply(void 0,[null].concat(s(r))):void 0}return c(null,!0)}),3);function me(e,t,n){var r=S(t);return ve(e,(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t.pop();r.apply(void 0,t.concat([function(e,t){return i(e,!t)}]))}),n)}function ge(e){return function(t,n,r){return e(t,r)}}var ye=x((function(e,t,n){return q(e,ge(S(t)),n)}),3);var be=x((function(e,t,n,r){return N(t)(e,ge(S(n)),r)}),4);var _e=x((function(e,t,n){return be(e,1,t,n)}),3);function we(e){return w(e)?e:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n.pop(),a=!0;n.push((function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];a?g((function(){return i.apply(void 0,t)})):i.apply(void 0,t)})),e.apply(this,n),a=!1}}var Se=x((function(e,t,n){return ue((function(e){return!e}),(function(e){return!e}))(q,e,t,n)}),3);var xe=x((function(e,t,n,r){return ue((function(e){return!e}),(function(e){return!e}))(N(t),e,n,r)}),4);var ke=x((function(e,t,n){return ue((function(e){return!e}),(function(e){return!e}))(D,e,t,n)}),3);function Te(e,t,n,r){var i=new Array(t.length);e(t,(function(e,t,r){n(e,(function(e,n){i[t]=!!n,r(e)}))}),(function(e){if(e)return r(e);for(var n=[],a=0;a<t.length;a++)i[a]&&n.push(t[a]);r(null,n)}))}function je(e,t,n,r){var i=[];e(t,(function(e,t,r){n(e,(function(n,a){if(n)return r(n);a&&i.push({index:t,value:e}),r(n)}))}),(function(e){if(e)return r(e);r(null,i.sort((function(e,t){return e.index-t.index})).map((function(e){return e.value})))}))}function Ee(e,t,n,r){return(j(t)?Te:je)(e,t,S(n),r)}var Ie=x((function(e,t,n){return Ee(q,e,t,n)}),3);var Oe=x((function(e,t,n,r){return Ee(N(t),e,n,r)}),4);var Ae=x((function(e,t,n){return Ee(D,e,t,n)}),3);var Re=x((function(e,t){var n=A(t),r=S(we(e));return function e(t){if(t)return n(t);!1!==t&&r(e)}()}),2);var Ne=x((function(e,t,n,r){var i=S(n);return ie(e,t,(function(e,t){i(e,(function(n,r){return n?t(n):t(n,{key:r,val:e})}))}),(function(e,t){for(var n={},i=Object.prototype.hasOwnProperty,a=0;a<t.length;a++)if(t[a]){var o=t[a].key,s=t[a].val;i.call(n,o)?n[o].push(s):n[o]=[s]}return r(e,n)}))}),4);function Ce(e,t,n){return Ne(e,1/0,t,n)}function Pe(e,t,n){return Ne(e,1,t,n)}var Le=de("log");var qe=x((function(e,t,n,r){r=I(r);var i={},a=S(n);return N(t)(e,(function(e,t,n){a(e,t,(function(e,r){if(e)return n(e);i[t]=r,n(e)}))}),(function(e){return r(e,i)}))}),4);function Fe(e,t,n){return qe(e,1/0,t,n)}function Me(e,t,n){return qe(e,1,t,n)}function De(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},n=Object.create(null),r=Object.create(null),i=S(e),a=f((function(e,a){var o=t.apply(void 0,s(e));o in n?g((function(){return a.apply(void 0,[null].concat(s(n[o])))})):o in r?r[o].push(a):(r[o]=[a],i.apply(void 0,s(e).concat([function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),a=1;a<t;a++)i[a-1]=arguments[a];e||(n[o]=i);var s=r[o];delete r[o];for(var c=0,u=s.length;c<u;c++)s[c].apply(s,[e].concat(i))}])))}));return a.memo=n,a.unmemoized=e,a}var Be=m(h?process.nextTick:d?setImmediate:v),Ue=x((function(e,t,n){var r=j(t)?[]:{};e(t,(function(e,t,n){S(e)((function(e){for(var i=arguments.length,a=new Array(i>1?i-1:0),o=1;o<i;o++)a[o-1]=arguments[o];if(a.length<2){var s=a,u=c(s,1);a=u[0]}r[t]=a,n(e)}))}),(function(e){return n(e,r)}))}),3);function ze(e,t){return Ue(q,e,t)}function Je(e,t,n){return Ue(N(t),e,n)}function Ge(e,t){var n=S(e);return $((function(e,t){n(e[0],t)}),t,1)}var Ve=function(){function e(){a(this,e),this.heap=[],this.pushCount=Number.MIN_SAFE_INTEGER}return o(e,[{key:"empty",value:function(){return this.heap=[],this}},{key:"percUp",value:function(e){for(var t;e>0&&We(this.heap[e],this.heap[t=He(e)]);){var n=this.heap[e];this.heap[e]=this.heap[t],this.heap[t]=n,e=t}}},{key:"percDown",value:function(e){for(var t;(t=1+(e<<1))<this.heap.length&&(t+1<this.heap.length&&We(this.heap[t+1],this.heap[t])&&(t+=1),!We(this.heap[e],this.heap[t]));){var n=this.heap[e];this.heap[e]=this.heap[t],this.heap[t]=n,e=t}}},{key:"push",value:function(e){e.pushCount=++this.pushCount,this.heap.push(e),this.percUp(this.heap.length-1)}},{key:"unshift",value:function(e){return this.heap.push(e)}},{key:"shift",value:function(){var e=c(this.heap,1)[0];return this.heap[0]=this.heap[this.heap.length-1],this.heap.pop(),this.percDown(0),e}},{key:"toArray",value:function(){return s(this)}},{key:Symbol.iterator,value:i.mark((function e(){var t;return i.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=0;case 1:if(!(t<this.heap.length)){e.next=7;break}return e.next=4,this.heap[t].data;case 4:t++,e.next=1;break;case 7:case"end":return e.stop()}}),e,this)}))},{key:"remove",value:function(e){for(var t=0,n=0;n<this.heap.length;n++)e(this.heap[n])||(this.heap[t]=this.heap[n],t++);this.heap.splice(t);for(var r=He(this.heap.length-1);r>=0;r--)this.percDown(r);return this}},{key:"length",get:function(){return this.heap.length}}]),e}();function He(e){return(e+1>>1)-1}function We(e,t){return e.priority!==t.priority?e.priority<t.priority:e.pushCount<t.pushCount}function Qe(e,t){var n=Ge(e,t),r=!1;return n._tasks=new Ve,n.push=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};if("function"!=typeof i)throw new Error("task callback must be a function");if(n.started=!0,Array.isArray(e)||(e=[e]),0===e.length&&n.idle())return g((function(){return n.drain()}));for(var a=0,o=e.length;a<o;a++){var s={data:e[a],priority:t,callback:i};n._tasks.push(s)}r||(r=!0,g((function(){r=!1,n.process()})))},delete n.unshift,n}var Ke=x((function(e,t){if(t=I(t),!Array.isArray(e))return t(new TypeError("First argument to race must be an array of functions"));if(!e.length)return t();for(var n=0,r=e.length;n<r;n++)S(e[n])(t)}),2);function Ye(e,t,n,r){var i=s(e).reverse();return te(i,t,n,r)}function Xe(e){var t=S(e);return f((function(e,n){return e.push((function(e){var t={};e&&(t.error=e);for(var r=arguments.length,i=new Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];if(i.length>0){var o=i;i.length<=1&&(o=i[0]),t.value=o}n(null,t)})),t.apply(this,e)}))}function $e(e){var t,n=this;return Array.isArray(e)?t=e.map(Xe):(t={},Object.keys(e).forEach((function(r){t[r]=Xe.call(n,e[r])}))),t}function Ze(e,t,n,r){var i=S(n);return Ee(e,t,(function(e,t){i(e,(function(e,n){t(e,!n)}))}),r)}var et=x((function(e,t,n){return Ze(q,e,t,n)}),3);var tt=x((function(e,t,n,r){return Ze(N(t),e,n,r)}),4);var nt=x((function(e,t,n){return Ze(D,e,t,n)}),3);function rt(e){return function(){return e}}function it(e,t,n){var r={times:5,intervalFunc:rt(0)};if(arguments.length<3&&"function"==typeof e?(n=t||J(),t=e):(at(r,e),n=n||J()),"function"!=typeof t)throw new Error("Invalid arguments for async.retry");var i=S(t),a=1;function o(){i((function(e){if(!1!==e)if(e&&a++<r.times&&("function"!=typeof r.errorFilter||r.errorFilter(e)))setTimeout(o,r.intervalFunc(a-1));else{for(var t=arguments.length,i=new Array(t>1?t-1:0),s=1;s<t;s++)i[s-1]=arguments[s];n.apply(void 0,[e].concat(i))}}))}return o(),n[z]}function at(e,t){if("object"===u(t))e.times=+t.times||5,e.intervalFunc="function"==typeof t.interval?t.interval:rt(+t.interval||0),e.errorFilter=t.errorFilter;else{if("number"!=typeof t&&"string"!=typeof t)throw new Error("Invalid arguments for async.retry");e.times=+t||5}}function ot(e,t){t||(t=e,e=null);var n=e&&e.arity||t.length;w(t)&&(n+=1);var r=S(t);return f((function(t,i){function a(e){r.apply(void 0,s(t).concat([e]))}return(t.length<n-1||null==i)&&(t.push(i),i=J()),e?it(e,a,i):it(a,i),i[z]}))}function st(e,t){return Ue(D,e,t)}var ct=x((function(e,t,n){return ue(Boolean,(function(e){return e}))(q,e,t,n)}),3);var ut=x((function(e,t,n,r){return ue(Boolean,(function(e){return e}))(N(t),e,n,r)}),4);var lt=x((function(e,t,n){return ue(Boolean,(function(e){return e}))(D,e,t,n)}),3);var ft=x((function(e,t,n){var r=S(t);return F(e,(function(e,t){r(e,(function(n,r){if(n)return t(n);t(n,{value:e,criteria:r})}))}),(function(e,t){if(e)return n(e);n(null,t.sort(i).map((function(e){return e.value})))}));function i(e,t){var n=e.criteria,r=t.criteria;return n<r?-1:n>r?1:0}}),3);function pt(e,t,n){var r=S(e);return f((function(i,a){var o,c=!1;i.push((function(){c||(a.apply(void 0,arguments),clearTimeout(o))})),o=setTimeout((function(){var t=e.name||"anonymous",r=new Error('Callback function "'+t+'" timed out.');r.code="ETIMEDOUT",n&&(r.info=n),c=!0,a(r)}),t),r.apply(void 0,s(i))}))}function dt(e,t,n,r){var i=S(n);return ie(function(e){for(var t=Array(e);e--;)t[e]=e;return t}(e),t,i,r)}function ht(e,t,n){return dt(e,1/0,t,n)}function vt(e,t,n){return dt(e,1,t,n)}function mt(e,t,n,r){arguments.length<=3&&"function"==typeof t&&(r=n,n=t,t=Array.isArray(e)?[]:{}),r=I(r||J());var i=S(n);return q(e,(function(e,n,r){i(t,e,n,r)}),(function(e){return r(e,t)})),r[z]}var gt=x((function(e,t){var n,r=null;return _e(e,(function(e,t){S(e)((function(e){if(!1===e)return t(e);for(var i=arguments.length,a=new Array(i>1?i-1:0),o=1;o<i;o++)a[o-1]=arguments[o];n=a.length<2?a[0]:a,r=e,t(e?null:{})}))}),(function(){return t(r,n)}))}));function yt(e){return function(){return(e.unmemoized||e).apply(void 0,arguments)}}var bt=x((function(e,t,n){n=A(n);var r=S(t),i=S(e),a=[];function o(e){if(e)return n(e);for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];a=r,!1!==e&&i(c)}function c(e,t){return e?n(e):!1!==e?t?void r(o):n.apply(void 0,[null].concat(s(a))):void 0}return i(c)}),3);function _t(e,t,n){var r=S(e);return bt((function(e){return r((function(t,n){return e(t,!n)}))}),t,n)}var wt=x((function(e,t){if(t=I(t),!Array.isArray(e))return t(new Error("First argument to waterfall must be an array of functions"));if(!e.length)return t();var n=0;function r(t){S(e[n++]).apply(void 0,s(t).concat([A(i)]))}function i(i){if(!1!==i){for(var a=arguments.length,o=new Array(a>1?a-1:0),s=1;s<a;s++)o[s-1]=arguments[s];if(i||n===e.length)return t.apply(void 0,[i].concat(o));r(o)}}r([])})),St={apply:l,applyEach:M,applyEachSeries:U,asyncify:y,auto:G,autoInject:K,cargo:Z,cargoQueue:ee,compose:re,concat:oe,concatLimit:ae,concatSeries:se,constant:ce,detect:le,detectLimit:fe,detectSeries:pe,dir:he,doUntil:me,doWhilst:ve,each:ye,eachLimit:be,eachOf:q,eachOfLimit:C,eachOfSeries:D,eachSeries:_e,ensureAsync:we,every:Se,everyLimit:xe,everySeries:ke,filter:Ie,filterLimit:Oe,filterSeries:Ae,forever:Re,groupBy:Ce,groupByLimit:Ne,groupBySeries:Pe,log:Le,map:F,mapLimit:ie,mapSeries:B,mapValues:Fe,mapValuesLimit:qe,mapValuesSeries:Me,memoize:De,nextTick:Be,parallel:ze,parallelLimit:Je,priorityQueue:Qe,queue:Ge,race:Ke,reduce:te,reduceRight:Ye,reflect:Xe,reflectAll:$e,reject:et,rejectLimit:tt,rejectSeries:nt,retry:it,retryable:ot,seq:ne,series:st,setImmediate:g,some:ct,someLimit:ut,someSeries:lt,sortBy:ft,timeout:pt,times:ht,timesLimit:dt,timesSeries:vt,transform:mt,tryEach:gt,unmemoize:yt,until:_t,waterfall:wt,whilst:bt,all:Se,allLimit:xe,allSeries:ke,any:ct,anyLimit:ut,anySeries:lt,find:le,findLimit:fe,findSeries:pe,flatMap:oe,flatMapLimit:ae,flatMapSeries:se,forEach:ye,forEachSeries:_e,forEachLimit:be,forEachOf:q,forEachOfSeries:D,forEachOfLimit:C,inject:te,foldl:te,foldr:Ye,select:Ie,selectLimit:Oe,selectSeries:Ae,wrapSync:y,during:bt,doDuring:ve};t.default=St},function(e,t,n){var r=n(11),i=n(87),a="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?a.call(e,""):Object(e)}:Object},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+r).toString(36)}},function(e,t){e.exports={}},function(e,t,n){var r=n(84),i=n(29),a=n(105),o=function(e){return function(t,n,o){var s,c=r(t),u=i(c.length),l=a(o,u);if(e&&n!=n){for(;u>l;)if((s=c[l++])!=s)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===n)return e||l||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},function(e,t,n){var r=n(11),i=/#|\.prototype\./,a=function(e,t){var n=s[o(e)];return n==u||n!=c&&("function"==typeof t?r(t):!!t)},o=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},s=a.data={},c=a.NATIVE="N",u=a.POLYFILL="P";e.exports=a},function(e,t,n){var r=n(11),i=n(18),a=n(180),o=i("species");e.exports=function(e){return a>=51||!r((function(){var t=[];return(t.constructor={})[o]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},function(e,t,n){var r=n(181),i=n(87),a=n(18)("toStringTag"),o="Arguments"==i(function(){return arguments}());e.exports=r?i:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),a))?n:o?i(t):"Object"==(r=i(t))&&"function"==typeof t.callee?"Arguments":r}},function(e,t,n){var r=n(215),i=n(176);e.exports=Object.keys||function(e){return r(e,i)}},function(e,t){e.exports={}},function(e,t,n){var r=n(36),i=n(301);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(e){}return function(n,a){return r(n),i(a),t?e.call(n,a):n.__proto__=a,n}}():void 0)},function(e,t,n){var r=n(128),i=n(130),a=n(18)("iterator");e.exports=function(e){if(null!=e)return e[a]||e["@@iterator"]||i[r(e)]}},function(e,t,n){"use strict";var r=n(7),i=n(72).find,a=n(149),o=n(80),s=!0,c=o("find");"find"in[]&&Array(1).find((function(){s=!1})),r({target:"Array",proto:!0,forced:s||!c},{find:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),a("find")},function(e,t,n){n(115)("asyncIterator")},function(e,t,n){var r=n(7),i=n(11),a=n(46),o=n(116),s=n(225);r({target:"Object",stat:!0,forced:i((function(){o(1)})),sham:!s},{getPrototypeOf:function(e){return o(a(e))}})},function(e,t,n){"use strict";n(7)({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})},function(e,t,n){"use strict";var r,i=n(7),a=n(93).f,o=n(29),s=n(193),c=n(85),u=n(194),l=n(94),f="".startsWith,p=Math.min,d=u("startsWith");i({target:"String",proto:!0,forced:!!(l||d||(r=a(String.prototype,"startsWith"),!r||r.writable))&&!d},{startsWith:function(e){var t=String(c(this));s(e);var n=o(p(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return f?f.call(t,r,n):t.slice(n,n+r.length)===r}})},function(e,t,n){(function(e){n(5),n(25);var r=n(13);function i(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===i(e)},t.isBoolean=function(e){return"boolean"==typeof e},t.isNull=function(e){return null===e},t.isNullOrUndefined=function(e){return null==e},t.isNumber=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSymbol=function(e){return"symbol"===r(e)},t.isUndefined=function(e){return void 0===e},t.isRegExp=function(e){return"[object RegExp]"===i(e)},t.isObject=function(e){return"object"===r(e)&&null!==e},t.isDate=function(e){return"[object Date]"===i(e)},t.isError=function(e){return"[object Error]"===i(e)||e instanceof Error},t.isFunction=function(e){return"function"==typeof e},t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"===r(e)||void 0===e},t.isBuffer=e.isBuffer}).call(this,n(111).Buffer)},function(e,t){"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 n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},function(e,t,n){"use strict";var r=n(7),i=n(148).left,a=n(106),o=n(80),s=a("reduce"),c=o("reduce",{1:0});r({target:"Array",proto:!0,forced:!s||!c},{reduce:function(e){return i(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SessionTypes=void 0,function(e){e.softphone="softphone",e.collaborateVideo="collaborateVideo",e.acdScreenShare="screenShare",e.screenRecording="screenRecording",e.unknown="unknown"}(t.SessionTypes||(t.SessionTypes={}))},function(e,t,n){"use strict";n(10),n(19),n(281),n(23),n(9),n(28),n(90),n(5),n(21),n(15),n(91),n(22),n(38),n(27),n(24);var r=n(14),i=n(2),a=n(3);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}Object.defineProperty(t,"__esModule",{value:!0}),t.HttpClient=void 0;var c=n(165).__importStar(n(170)),u=n(101),l=function(){function e(){i(this,e),this._httpRetryingRequests=new Map}return a(e,[{key:"requestApiWithRetry",value:function(t,n,r){var i=this,a=u.retryPromise(this.requestApi.bind(this,t,n),(function(t){return t&&t.response&&e.retryStatusCodes.has(t.response.status)}),r,n.logger);return this._httpRetryingRequests.set(a._id,a),a.promise.then((function(){return i.cancelRetryRequest(a._id)}),(function(){return i.cancelRetryRequest(a._id)})),a}},{key:"requestApi",value:function(e,t){var n=t.logger||console,r=(new Date).getTime(),i=this._buildUri(t.host,e,t.version),a={method:t.method,url:i,data:t.data,headers:{"content-type":t.contentType||"application/json"}};t.noAuthHeader||(a.headers.Authorization="Bearer ".concat(t.authToken));var o=function(e){var i,o=(new Date).getTime(),u=o-r+"ms";if(e instanceof c.AxiosError){var l=e.response||{},f=l.status,p=null===(i=l.headers)||void 0===i?void 0:i["inin-correlation-id"],d=l.data,h=s(s({},e),{},{text:l.request.response});return n.debug("request error: ".concat(a.url),{message:e.message,now:o,elapsed:u,status:f,correlationId:p,body:d},!0),Promise.reject(h)}var v=e.status,m=e.headers["inin-correlation-id"],g=JSON.stringify(e.data);return n.debug("response: ".concat(t.method.toUpperCase()," ").concat(a.url),{now:o,status:v,elapsed:u,correlationId:m,body:g},!0),Promise.resolve(e)};return c.default(a).then(o.bind(this),o.bind(this))}},{key:"stopAllRetries",value:function(){var e=this;Array.from(this._httpRetryingRequests.keys()).forEach((function(t){return e.cancelRetryRequest(t)}))}},{key:"cancelRetryRequest",value:function(e){var t=this._httpRetryingRequests.get(e);return t&&(t.cancel(new Error("Retry request cancelled")),this._httpRetryingRequests.delete(e)),!0}},{key:"formatRequestError",value:function(e){if(this.isSuperagentNetworkError(e))return{status:e.status,method:e.method,url:e.url,crossDomain:e.crossDomain,message:e.message,name:e.name,stack:e.stack};if(this.isSuperagentResponseError(e)){var t=e.response;return{status:e.status,correlationId:t.headers["inin-correlation-id"],message:"Error making HTTP request",method:t.req.method,name:t.error.name,stack:t.error.stack}}return e}},{key:"isSuperagentNetworkError",value:function(e){return e&&e.hasOwnProperty("status")&&e.hasOwnProperty("method")&&e.hasOwnProperty("url")}},{key:"isSuperagentResponseError",value:function(e){return!!(e&&e.response&&e.response.body&&e.response.req)}},{key:"_buildUri",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"v2";return t=t.replace(/^\/+|\/+$/g,""),0===e.indexOf("http")?"".concat(e,"/api/").concat(n,"/").concat(t):"https://api.".concat(e,"/api/").concat(n,"/").concat(t)}}]),e}();t.HttpClient=l,l.retryStatusCodes=new Set([408,413,429,500,502,503,504])},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,a=i&&!r.call({1:2},1);t.f=a?function(e){var t=i(this,e);return!!t&&t.enumerable}:r},function(e,t,n){var r=n(175),i=n(123),a=r("keys");e.exports=function(e){return a[e]||(a[e]=i(e))}},function(e,t,n){var r=n(87);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){"use strict";var r=n(113),i=n(35),a=n(103);e.exports=function(e,t,n){var o=r(t);o in e?i.f(e,o,a(0,n)):e[o]=n}},function(e,t,n){var r=n(114),i=n(46),a=n(122),o=n(29),s=function(e){return function(t,n,s,c){r(n);var u=i(t),l=a(u),f=o(u.length),p=e?f-1:0,d=e?-1:1;if(s<2)for(;;){if(p in l){c=l[p],p+=d;break}if(p+=d,e?p<0:f<=p)throw TypeError("Reduce of empty array with no initial value")}for(;e?p>=0:f>p;p+=d)p in l&&(c=n(c,l[p],p,u));return c}};e.exports={left:s(!1),right:s(!0)}},function(e,t,n){var r=n(18),i=n(107),a=n(35),o=r("unscopables"),s=Array.prototype;null==s[o]&&a.f(s,o,{configurable:!0,value:i(null)}),e.exports=function(e){s[o][e]=!0}},function(e,t,n){var r=n(45);e.exports=function(e,t,n){for(var i in t)r(e,i,t[i],n);return e}},function(e,t,n){var r=n(18)("iterator"),i=!1;try{var a=0,o={next:function(){return{done:!!a++}},return:function(){i=!0}};o[r]=function(){return this},Array.from(o,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var a={};a[r]=function(){return{next:function(){return{done:n=!0}}}},e(a)}catch(e){}return n}},function(e,t,n){"use strict";var r,i,a=n(182),o=n(235),s=RegExp.prototype.exec,c=String.prototype.replace,u=s,l=(r=/a/,i=/b*/g,s.call(r,"a"),s.call(i,"a"),0!==r.lastIndex||0!==i.lastIndex),f=o.UNSUPPORTED_Y||o.BROKEN_CARET,p=void 0!==/()??/.exec("")[1];(l||p||f)&&(u=function(e){var t,n,r,i,o=this,u=f&&o.sticky,d=a.call(o),h=o.source,v=0,m=e;return u&&(-1===(d=d.replace("y","")).indexOf("g")&&(d+="g"),m=String(e).slice(o.lastIndex),o.lastIndex>0&&(!o.multiline||o.multiline&&"\n"!==e[o.lastIndex-1])&&(h="(?: "+h+")",m=" "+m,v++),n=new RegExp("^(?:"+h+")",d)),p&&(n=new RegExp("^"+h+"$(?!\\s)",d)),l&&(t=o.lastIndex),r=s.call(u?n:o,m),u?r?(r.input=r.input.slice(v),r[0]=r[0].slice(v),r.index=o.lastIndex,o.lastIndex+=r[0].length):o.lastIndex=0:l&&r&&(o.lastIndex=o.global?r.index+r[0].length:t),p&&r&&r.length>1&&c.call(r[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(r[i]=void 0)})),r}),e.exports=u},function(e,t,n){var r=n(96),i=n(85),a=function(e){return function(t,n){var a,o,s=String(i(t)),c=r(n),u=s.length;return c<0||c>=u?e?"":void 0:(a=s.charCodeAt(c))<55296||a>56319||c+1===u||(o=s.charCodeAt(c+1))<56320||o>57343?e?s.charAt(c):a:e?s.slice(c,c+2):o-56320+(a-55296<<10)+65536}};e.exports={codeAt:a(!1),charAt:a(!0)}},function(e,t,n){"use strict";n(15);var r=n(45),i=n(11),a=n(18),o=n(152),s=n(76),c=a("species"),u=!i((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),l="$0"==="a".replace(/./,"$0"),f=a("replace"),p=!!/./[f]&&""===/./[f]("a","$0"),d=!i((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));e.exports=function(e,t,n,f){var h=a(e),v=!i((function(){var t={};return t[h]=function(){return 7},7!=""[e](t)})),m=v&&!i((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[c]=function(){return n},n.flags="",n[h]=/./[h]),n.exec=function(){return t=!0,null},n[h](""),!t}));if(!v||!m||"replace"===e&&(!u||!l||p)||"split"===e&&!d){var g=/./[h],y=n(h,""[e],(function(e,t,n,r,i){return t.exec===o?v&&!i?{done:!0,value:g.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),{REPLACE_KEEPS_$0:l,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:p}),b=y[0],_=y[1];r(String.prototype,e,b),r(RegExp.prototype,h,2==t?function(e,t){return _.call(e,this,t)}:function(e){return _.call(e,this)})}f&&s(RegExp.prototype[h],"sham",!0)}},function(e,t,n){var r=n(87),i=n(152);e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var a=n.call(e,t);if("object"!=typeof a)throw TypeError("RegExp exec method returned something other than an Object or null");return a}if("RegExp"!==r(e))throw TypeError("RegExp#exec called on incompatible receiver");return i.call(e,t)}},function(e,t,n){var r=n(31),i=n(131);e.exports=function(e,t,n){var a,o;return i&&"function"==typeof(a=t.constructor)&&a!==n&&r(o=a.prototype)&&o!==n.prototype&&i(e,o),e}},function(e,t,n){"use strict";var r=n(32),i=n(12),a=n(126),o=n(45),s=n(34),c=n(87),u=n(156),l=n(113),f=n(11),p=n(107),d=n(104).f,h=n(93).f,v=n(35).f,m=n(236).trim,g=i.Number,y=g.prototype,b="Number"==c(p(y)),_=function(e){var t,n,r,i,a,o,s,c,u=l(e,!1);if("string"==typeof u&&u.length>2)if(43===(t=(u=m(u)).charCodeAt(0))||45===t){if(88===(n=u.charCodeAt(2))||120===n)return NaN}else if(48===t){switch(u.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+u}for(o=(a=u.slice(2)).length,s=0;s<o;s++)if((c=a.charCodeAt(s))<48||c>i)return NaN;return parseInt(a,r)}return+u};if(a("Number",!g(" 0o1")||!g("0b1")||g("+0x1"))){for(var w,S=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof S&&(b?f((function(){y.valueOf.call(n)})):"Number"!=c(n))?u(new g(_(t)),n,S):_(t)},x=r?d(g):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),k=0;x.length>k;k++)s(g,w=x[k])&&!s(S,w)&&v(S,w,h(g,w));S.prototype=y,y.constructor=S,o(i,"Number",S)}},function(e,t,n){var r=n(7),i=n(185),a=n(149);r({target:"Array",proto:!0},{fill:i}),a("fill")},function(e,t,n){var r=n(7),i=n(240);r({target:"Array",proto:!0,forced:i!==[].lastIndexOf},{lastIndexOf:i})},function(e,t,n){var r=n(7),i=n(105),a=String.fromCharCode,o=String.fromCodePoint;r({target:"String",stat:!0,forced:!!o&&1!=o.length},{fromCodePoint:function(e){for(var t,n=[],r=arguments.length,o=0;r>o;){if(t=+arguments[o++],i(t,1114111)!==t)throw RangeError(t+" is not a valid code point");n.push(t<65536?a(t):a(55296+((t-=65536)>>10),t%1024+56320))}return n.join("")}})},function(e,t,n){var r=n(7),i=n(12),a=n(189);r({global:!0,bind:!0,enumerable:!0,forced:!i.setImmediate||!i.clearImmediate},{setImmediate:a.set,clearImmediate:a.clear})},function(e,t,n){"use strict";(function(t){n(23),!t.version||0===t.version.indexOf("v0.")||0===t.version.indexOf("v1.")&&0!==t.version.indexOf("v1.8.")?e.exports={nextTick:function(e,n,r,i){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var a,o,s=arguments.length;switch(s){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick((function(){e.call(null,n)}));case 3:return t.nextTick((function(){e.call(null,n,r)}));case 4:return t.nextTick((function(){e.call(null,n,r,i)}));default:for(a=new Array(s-1),o=0;o<a.length;)a[o++]=arguments[o];return t.nextTick((function(){e.apply(null,a)}))}}}:e.exports=t}).call(this,n(100))},function(e,t,n){n(158);var r=n(111),i=r.Buffer;function a(e,t){for(var n in e)t[n]=e[n]}function o(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(a(r,t),t.Buffer=o),a(i,o),o.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},o.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},function(e,t,n){"use strict";n(28);var r=n(120);function i(e){r.call(this,null==e?"canceled":e,r.ERR_CANCELED),this.name="CanceledError"}n(41).inherits(i,r,{__CANCEL__:!0}),e.exports=i},function(e,t,n){"use strict";n.r(t),n.d(t,"__extends",(function(){return o})),n.d(t,"__assign",(function(){return s})),n.d(t,"__rest",(function(){return c})),n.d(t,"__decorate",(function(){return u})),n.d(t,"__param",(function(){return l})),n.d(t,"__metadata",(function(){return f})),n.d(t,"__awaiter",(function(){return p})),n.d(t,"__generator",(function(){return d})),n.d(t,"__exportStar",(function(){return h})),n.d(t,"__values",(function(){return v})),n.d(t,"__read",(function(){return m})),n.d(t,"__spread",(function(){return g})),n.d(t,"__spreadArrays",(function(){return y})),n.d(t,"__await",(function(){return b})),n.d(t,"__asyncGenerator",(function(){return _})),n.d(t,"__asyncDelegator",(function(){return w})),n.d(t,"__asyncValues",(function(){return S})),n.d(t,"__makeTemplateObject",(function(){return x})),n.d(t,"__importStar",(function(){return k})),n.d(t,"__importDefault",(function(){return T}));n(47),n(73),n(134),n(97),n(10),n(23),n(9),n(75),n(266),n(5),n(21),n(22),n(24);var r=n(13),i=n.n(r),a=function(e,t){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function o(e,t){function n(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var s=function(){return(s=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function c(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function u(e,t,n,r){var a,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":i()(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(s=(o<3?a(s):o>3?a(t,n,s):a(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s}function l(e,t){return function(n,r){t(n,r,e)}}function f(e,t){if("object"===("undefined"==typeof Reflect?"undefined":i()(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function p(e,t,n,r){return new(n||(n=Promise))((function(i,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(o,s)}c((r=r.apply(e,t||[])).next())}))}function d(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}function h(e,t){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}function v(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function m(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}function g(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(m(arguments[t]));return e}function y(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r}function b(e){return this instanceof b?(this.v=e,this):new b(e)}function _(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),a=[];return r={},o("next"),o("throw"),o("return"),r[Symbol.asyncIterator]=function(){return this},r;function o(e){i[e]&&(r[e]=function(t){return new Promise((function(n,r){a.push([e,t,n,r])>1||s(e,t)}))})}function s(e,t){try{(n=i[e](t)).value instanceof b?Promise.resolve(n.value.v).then(c,u):l(a[0][2],n)}catch(e){l(a[0][3],e)}var n}function c(e){s("next",e)}function u(e){s("throw",e)}function l(e,t){e(t),a.shift(),a.length&&s(a[0][0],a[0][1])}}function w(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:b(e[r](t)),done:"return"===r}:i?i(t):t}:i}}function S(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=v(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,i,(t=e[n](t)).done,t.value)}))}}}function x(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function k(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function T(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";n(10),n(44),n(23),n(33),n(30),n(28),n(118),n(5),n(25),n(137),n(136);var r=n(4),i=n(2),a=n(3);function o(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){c=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(c)throw a}}}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}Object.defineProperty(t,"__esModule",{value:!0});var c=n(167),u=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];i(this,e),this.name=t,this.attributes=n,this.children=[],this.optionalNamespaces={};var a,s=o(r);try{for(s.s();!(a=s.n()).done;){var c=a.value;if("string"!=typeof c){var u=new e(c.name,c.attributes,c.children);u.parent=this,this.children.push(u)}else this.children.push(c)}}catch(e){s.e(e)}finally{s.f()}}return a(e,[{key:"getName",value:function(){return this.name.indexOf(":")>=0?this.name.substr(this.name.indexOf(":")+1):this.name}},{key:"getNamespace",value:function(){if(this.name.indexOf(":")>=0){var e=this.name.substr(0,this.name.indexOf(":"));return this.findNamespaceForPrefix(e)}return this.findNamespaceForPrefix()}},{key:"getNamespaceContext",value:function(){var e={};this.parent&&(e=this.parent.getNamespaceContext());for(var t=0,n=Object.entries(this.attributes);t<n.length;t++){var i=r(n[t],2),a=i[0],o=i[1];if(a.startsWith("xmlns:")){var s=a.substr(6);e[o]=s}}return e}},{key:"getDefaultNamespace",value:function(){return this.attributes.xmlns?this.attributes.xmlns:this.parent?this.parent.getDefaultNamespace():""}},{key:"getNamespaceRoot",value:function(e){if(this.parent){var t=this.parent.getNamespaceRoot(e);if(t)return t}for(var n=0,i=Object.entries(this.attributes);n<i.length;n++){var a=r(i[n],2),o=a[0],s=a[1];if(o.startsWith("xmlns:")&&s===e)return this}if(this.optionalNamespaces[e])return this}},{key:"getAttribute",value:function(e,t){if(!t)return this.attributes[e];var n=this.getNamespaceContext();return n[t]?this.attributes[[n[t],e].join(":")]:void 0}},{key:"getChild",value:function(e,t){return this.getChildren(e,t)[0]}},{key:"getChildren",value:function(e,t){var n,r=[],i=o(this.children);try{for(i.s();!(n=i.n()).done;){var a=n.value;"string"==typeof a||a.getName()!==e||t&&a.getNamespace()!==t||r.push(a)}}catch(e){i.e(e)}finally{i.f()}return r}},{key:"getText",value:function(){var e,t="",n=o(this.children);try{for(n.s();!(e=n.n()).done;){var r=e.value;"string"==typeof r&&(t+=r)}}catch(e){n.e(e)}finally{n.f()}return t}},{key:"appendChild",value:function(e){return this.children.push(e),"string"!=typeof e&&(e.parent=this),e}},{key:"setAttribute",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.attributes[e]=t||void 0,""===t&&n&&(this.attributes[e]=t)}},{key:"addOptionalNamespace",value:function(e,t){this.optionalNamespaces[t]=e}},{key:"useNamespace",value:function(e,t){return this.optionalNamespaces[t]&&(e=this.optionalNamespaces[t]),this.setAttribute("xmlns:".concat(e),t),e}},{key:"toJSON",value:function(){for(var e=this.children.map((function(e){return"string"==typeof e?e:e?e.toJSON():void 0})).filter((function(e){return!!e})),t={},n=0,i=Object.entries(this.attributes);n<i.length;n++){var a=r(i[n],2),o=a[0],s=a[1];null!=s&&(t[o]=s)}return{attributes:t,children:e,name:this.name}}},{key:"toString",value:function(){var e=this.openTag(!0);if(this.children.length){var t,n=o(this.children);try{for(n.s();!(t=n.n()).done;){var r=t.value;"string"==typeof r?e+=c.escapeXMLText(r):r&&(e+=r.toString())}}catch(e){n.e(e)}finally{n.f()}e+=this.closeTag()}return e}},{key:"openTag",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t="";t+="<".concat(this.name);for(var n=0,i=Object.entries(this.attributes);n<i.length;n++){var a=r(i[n],2),o=a[0],s=a[1];void 0!==s&&(t+=" ".concat(o,'="').concat(c.escapeXML(s.toString()),'"'))}return e&&0===this.children.length?t+="/>":t+=">",t}},{key:"closeTag",value:function(){return"</".concat(this.name,">")}},{key:"findNamespaceForPrefix",value:function(e){if(e){var t="xmlns:"+e;if(this.attributes[t])return this.attributes[t];if(this.parent)return this.parent.findNamespaceForPrefix(e)}else{if(this.attributes.xmlns)return this.attributes.xmlns;if(this.parent)return this.parent.findNamespaceForPrefix()}return""}}]),e}();t.default=u},function(e,t,n){"use strict";function r(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){c=!0,o=e},f:function(){try{s||null==n.return||n.return()}finally{if(c)throw o}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n(9),n(159),n(30),n(5),n(15),n(91),n(160),n(22),n(38),n(137),n(24),Object.defineProperty(t,"__esModule",{value:!0}),t.basicLanguageResolver=t.escapeXMLText=t.unescapeXML=t.escapeXML=void 0;var a=n(1).__importDefault(n(201)),o={'"':"&quot;","&":"&amp;","'":"&apos;","<":"&lt;",">":"&gt;"},s={"&amp;":"&","&apos;":"'","&gt;":">","&lt;":"<","&quot;":'"'},c=/&([a-zA-Z0-9]+|#[0-9]+|#x[0-9a-fA-F]+);/g,u=/&|<|>|"|'/g,l=/&|<|>/g;function f(e){return o[e]}t.escapeXML=function(e){return e.replace(u,f)},t.unescapeXML=function(e){return e.replace(c,(function(e){return function(e){if(s[e])return s[e];var t=e.startsWith("&#x"),n=parseInt(e.substring(t?3:2,e.length-1),t?16:10);if(9===n||10===n||13===n||32<=n&&n<=55295||57344<=n&&n<=65533||65536<=n&&n<=1114111)return String.fromCodePoint(n);throw a.default.restrictedXML("Prohibited entity: "+e)}(e)}))},t.escapeXMLText=function(e){return e.replace(l,f)},t.basicLanguageResolver=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",a=new Set(e.map((function(e){return e.toLowerCase()}))),o=r(n.map((function(e){return e.toLowerCase()})));try{for(o.s();!(t=o.n()).done;){var s=t.value;if("*"!==s)for(;s.length>0;){if(a.has(s))return s;(s=s.substring(0,s.lastIndexOf("-")).toLowerCase()).lastIndexOf("-")===s.length-2&&(s=s.substring(0,s.lastIndexOf("-")))}}}catch(e){o.e(e)}finally{o.f()}return i}},function(e,t,n){"use strict";n(10),n(44),n(133),n(19),n(82),n(75),n(71),n(15),n(99),n(89),n(27);var r=n(14),i=n(13),a=n(0);n(40);var o=n(83),s=n(2),c=n(3),u=n(43),l=n(77),f=n(8),p=n(37),d=n(16);function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function m(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return g(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return g(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function y(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 n,r=d(e);if(t){var i=d(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return p(this,n)}}Object.defineProperty(t,"__esModule",{value:!0}),t.GenesysCloudMediaSession=void 0;var b=n(165),_=n(394),w=n(102),S=b.__importDefault(n(396)),x=n(42),k=n(141),T={"Discovered new ICE candidate":{skipMessage:!0}},j=function(e){f(r,e);var t,n=y(r);function r(e){var t;s(this,r),(t=n.call(this,e.options)).iceCandidatesDiscovered=0,t.iceCandidatesReceivedFromPeer=0,t.conversationId=e.conversationId,t.fromUserId=e.fromUserId,t.originalRoomJid=e.originalRoomJid,t.sessionType=k.SessionTypes[e.sessionType],t.ignoreHostCandidatesFromRemote=!!e.ignoreHostCandidatesFromRemote,t.allowIPv6=!!e.allowIPv6,t.allowTCP=!!e.allowTCP;var i=new x.EventEmitter;return Object.keys(i.__proto__).forEach((function(e){t[e]=i[e]})),e.optOutOfWebrtcStatsTelemetry||t.setupStatsGatherer(),t.pc.addEventListener("connectionstatechange",t.onConnectionStateChange.bind(u(t))),t.pc.addEventListener("icecandidateerror",t.onIceCandidateError.bind(u(t))),t}return c(r,[{key:"getLogDetails",value:function(){return{conversationId:this.conversationId,sessionId:this.sid,sessionType:this.sessionType}}},{key:"onTransportInfo",value:(t=o(a.mark((function e(t,n){var i,o,s,c,u,f,p,h;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(s=null===(i=t.contents)||void 0===i?void 0:i[0].transport,c=null==s?void 0:s.candidates,this.ignoreHostCandidatesFromRemote&&(null==(u=null==c?void 0:c.filter((function(e){return"host"!==e.type})))?void 0:u.length)!==(null===(o=null==s?void 0:s.candidates)||void 0===o?void 0:o.length)&&(this._log("info","Ignoring remote host ice candidates"),s.candidates=u),c){f=m(c);try{for(f.s();!(p=f.n()).done;)h=p.value,this._log("info","Received candidate from peer",{candidateType:h.type}),this.iceCandidatesReceivedFromPeer++}catch(e){f.e(e)}finally{f.f()}}return e.abrupt("return",l(d(r.prototype),"onTransportInfo",this).call(this,t,n));case 5:case"end":return e.stop()}}),e,this)}))),function(e,n){return t.apply(this,arguments)})},{key:"_log",value:function(e,t){if(this.parent){var n,r,a=T[t];if(null==a?void 0:a.skipMessage)return;for(var o=arguments.length,s=new Array(o>2?o-2:0),c=2;c<o;c++)s[c-2]=arguments[c];if(s.length){var u=s[0];"object"!==i(u)||Array.isArray(u)||null===u?s[0]=v(v({},this.getLogDetails()),{},{data:u}):Object.assign(s[0],this.getLogDetails())}else s.push(this.getLogDetails());(n=this.parent).emit.apply(n,["log",e,t].concat(s)),(r=this.parent).emit.apply(r,["log:"+e,t].concat(s))}}},{key:"end",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"success",n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.state="ended",this.processingQueue.kill(),"string"==typeof t&&(t={condition:t}),n||this.send("session-terminate",{reason:t}),setTimeout((function(){"connected"!==e.pc.connectionState&&"connecting"!==e.pc.connectionState||e.pc.close()}),2e3),this.parent.emit("terminated",this,t),this.parent.forgetSession(this)}},{key:"setupStatsGatherer",value:function(){this.statsGatherer=new S.default(this.pc),this.statsGatherer.on("stats",this.emit.bind(this,"stats"))}},{key:"onIceStateChange",value:function(){var e=this.pc.iceConnectionState,t=this.id,n=this.conversationId;this._log("info","ICE state changed: ",{iceState:e,sessionId:t,conversationId:n}),"connected"===e?(this._log("info","sending session-info: active"),this.send(w.JingleAction.SessionInfo,{info:{infoType:w.JINGLE_INFO_ACTIVE}}),this._setupDataChannel()):"failed"===e&&this._log("info","ICE connection failed",{candidatesDiscovered:this.iceCandidatesDiscovered,candidatesReceivedFromPeer:this.iceCandidatesReceivedFromPeer}),l(d(r.prototype),"onIceStateChange",this).call(this)}},{key:"onConnectionStateChange",value:function(){this._log("info","Connection state changed: ",{connectionState:this.pc.connectionState})}},{key:"onIceCandidateError",value:function(e){this._log("error","IceCandidateError",{errorCode:e.errorCode,errorText:e.errorText,url:e.url}),console.error("IceCandidateError",e)}},{key:"onIceCandidate",value:function(e){if(e.candidate){if(!this.allowTCP&&"tcp"===e.candidate.protocol)return;if(!this.allowIPv6){var t=/.+udp [^ ]+ ([^ ]+).*typ host/.exec(e.candidate.candidate);if(t&&!t[1].match(/\b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\b/))return void this._log("debug","Filtering out IPv6 candidate",e.candidate.candidate)}this._log("debug","Processing ice candidate",e.candidate.candidate),this._log("info","Discovered ice candidate to send to peer",{type:e.candidate.type}),this.iceCandidatesDiscovered++}return l(d(r.prototype),"onIceCandidate",this).call(this,e)}},{key:"onIceEndOfCandidates",value:function(){l(d(r.prototype),"onIceEndOfCandidates",this).call(this),this.emit("endOfCandidates")}},{key:"addTrack",value:function(e,t){var n=this;return"audio"===e.kind&&(this.includesAudio=!0),"video"===e.kind&&(this.includesVideo=!0),this.processLocal("addtrack",o(a.mark((function r(){var i;return a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!(i=n.pc.getTransceivers().find((function(t){var n;return!t.sender.track&&(null===(n=t.receiver.track)||void 0===n?void 0:n.kind)===e.kind})))){r.next=3;break}return r.abrupt("return",i.sender.replaceTrack(e));case 3:return n.pc.addTrack(e,t),r.abrupt("return");case 5:case"end":return r.stop()}}),r)}))))}},{key:"_setupDataChannel",value:function(){var e,t=this;this.dataChannel||(null===(e=this.pc.localDescription)||void 0===e?void 0:e.sdp.includes("webrtc-datachannel"))&&(this._log("info","creating data channel"),this.dataChannel=this.pc.createDataChannel("videoConferenceControl"),this.dataChannel.addEventListener("open",(function(){t._log("info","data channel opened")})),this.dataChannel.addEventListener("message",this._handleDataChannelMessage.bind(this)),this.dataChannel.addEventListener("close",(function(){t._log("info","closing data channel")})),this.dataChannel.addEventListener("error",(function(e){t._log("error","Error occurred with the data channel",e)})))}},{key:"_handleDataChannelMessage",value:function(e){this._log("debug","data channel message received",e);try{var t=JSON.parse(e.data);this.emit("dataChannelMessage",t)}catch(e){this._log("error","Failed to parse data channel message",{error:e})}}}]),r}(_.MediaSession);t.GenesysCloudMediaSession=j},function(e,t,n){"use strict";function r(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){c=!0,o=e},f:function(){try{s||null==n.return||n.return()}finally{if(c)throw o}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n(10),n(44),n(33),n(30),n(15),n(38),n(39),Object.defineProperty(t,"__esModule",{value:!0}),t.exportToSDP=t.importFromSDP=void 0;var a=n(1).__importStar(n(17));t.importFromSDP=function(e){var t=a.getMediaSections(e),n=a.getDescription(e),i={groups:[],media:[]};a.matchPrefix(n,"a=ice-lite").length>0&&(i.iceLite=!0);var o,s=r(a.matchPrefix(n,"a=group:"));try{for(s.s();!(o=s.n()).done;){var c=o.value.split(" "),u=c.shift().substr(8);i.groups.push({mids:c,semantics:u})}}catch(e){s.e(e)}finally{s.f()}var l,f=r(t);try{for(f.s();!(l=f.n()).done;){var p=l.value,d=a.getKind(p),h=a.isRejected(p),v=a.parseMLine(p),m={direction:a.getDirection(p,n),kind:d,mid:a.getMid(p),protocol:v.protocol};if(h||(m.iceParameters=a.getIceParameters(p,n),m.dtlsParameters=a.getDtlsParameters(p,n),m.setup=a.matchPrefix(p,"a=setup:")[0].substr(8),i.iceLite&&(m.iceParameters.iceLite=!0)),"audio"===d||"video"===d){m.rtpParameters=a.parseRtpParameters(p),m.rtpEncodingParameters=a.parseRtpEncodingParameters(p),m.rtcpParameters=a.parseRtcpParameters(p);var g=a.parseMsid(p);m.streams=g?[g]:[]}else"application"===d&&(m.sctp=a.parseSctpDescription(p));m.candidates=a.matchPrefix(p,"a=candidate:").map(a.parseCandidate),i.media.push(m)}}catch(e){f.e(e)}finally{f.f()}return i},t.exportToSDP=function(e){var t=[];t.push(a.writeSessionBoilerplate(e.sessionId,e.sessionVersion),"a=msid-semantic:WMS *\r\n"),(e.iceLite||e.media.filter((function(e){return e.iceParameters&&e.iceParameters.iceLite})).length>0)&&t.push("a=ice-lite\r\n");var n,i=r(e.groups||[]);try{for(i.s();!(n=i.n()).done;){var o=n.value;t.push("a=group:".concat(o.semantics," ").concat(o.mids.join(" "),"\r\n"))}}catch(e){i.e(e)}finally{i.f()}var s,c=r(e.media||[]);try{for(c.s();!(s=c.n()).done;){var u=s.value,l=!(u.iceParameters&&u.dtlsParameters);if("application"===u.kind&&u.sctp)t.push(a.writeSctpDescription(u,u.sctp));else if(u.rtpParameters){var f=a.writeRtpDescription(u.kind,u.rtpParameters);l&&(f=f.replace("m=".concat(u.kind," 9 "),"m=".concat(u.kind," 0 "))),t.push(f),t.push("a=".concat(u.direction||"sendrecv","\r\n"));var p,d=r(u.streams||[]);try{for(d.s();!(p=d.n()).done;){var h=p.value;t.push("a=msid:".concat(h.stream," ").concat(h.track,"\r\n"))}}catch(e){d.e(e)}finally{d.f()}if(u.rtcpParameters&&(t.push(a.writeRtcpParameters(u.rtcpParameters)),u.rtcpParameters.cname&&u.rtpEncodingParameters&&u.rtpEncodingParameters[0].rtx)){var v=u.rtpEncodingParameters[0];t.push("a=ssrc-group:FID ".concat(v.ssrc," ").concat(v.rtx.ssrc,"\r\n")),t.push("a=ssrc:".concat(v.rtx.ssrc," cname:").concat(u.rtcpParameters.cname,"\r\n"))}}if(void 0!==u.mid&&t.push("a=mid:".concat(u.mid,"\r\n")),u.iceParameters&&t.push(a.writeIceParameters({usernameFragment:u.iceParameters.usernameFragment,password:u.iceParameters.password})),u.dtlsParameters&&u.setup&&t.push(a.writeDtlsParameters(u.dtlsParameters,u.setup)),u.candidates&&u.candidates.length){var m,g=r(u.candidates);try{for(g.s();!(m=g.n()).done;){var y=m.value;t.push("a=".concat(a.writeCandidate(y),"\r\n"))}}catch(e){g.e(e)}finally{g.f()}}}}catch(e){c.e(e)}finally{c.f()}return t.join("")}},function(e,t,n){e.exports=n(351)},function(e,t,n){n(23),n(30),n(140),n(71),n(136);var r=n(13),i=Object.prototype.hasOwnProperty;function a(e){return"[Throws: "+(e?e.message:"?")+"]"}function o(e){var t=[];return function e(n){if(null===n||"object"!==r(n))return n;if(-1!==t.indexOf(n))return"[Circular]";if(t.push(n),"function"==typeof n.toJSON)try{var o=e(n.toJSON());return t.pop(),o}catch(e){return a(e)}if(Array.isArray(n)){var s=n.map(e);return t.pop(),s}var c=Object.keys(n).reduce((function(t,r){return t[r]=e(function(e,t){if(i.call(e,t))try{return e[t]}catch(e){return a(e)}return e[t]}(n,r)),t}),{});return t.pop(),c}(e)}e.exports=function(e,t,n){return JSON.stringify(o(e),t,n)},e.exports.ensureProperties=o},function(e,t,n){var r=n(12),i=n(31),a=r.document,o=i(a)&&i(a.createElement);e.exports=function(e){return o?a.createElement(e):{}}},function(e,t,n){var r=n(12),i=n(76);e.exports=function(e,t){try{i(r,e,t)}catch(n){r[e]=t}return t}},function(e,t,n){var r=n(211),i=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return i.call(e)}),e.exports=r.inspectSource},function(e,t,n){var r=n(94),i=n(211);(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(31),i=n(146),a=n(18)("species");e.exports=function(e,t){var n;return i(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!i(n.prototype)?r(n)&&null===(n=n[a])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},function(e,t,n){var r=n(11);e.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},function(e,t,n){var r,i,a=n(12),o=n(217),s=a.process,c=s&&s.versions,u=c&&c.v8;u?i=(r=u.split("."))[0]+r[1]:o&&(!(r=o.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=o.match(/Chrome\/(\d+)/))&&(i=r[1]),e.exports=i&&+i},function(e,t,n){var r={};r[n(18)("toStringTag")]="z",e.exports="[object z]"===String(r)},function(e,t,n){"use strict";var r=n(36);e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e,t,n){"use strict";var r=n(7),i=n(223),a=n(116),o=n(131),s=n(88),c=n(76),u=n(45),l=n(18),f=n(94),p=n(130),d=n(224),h=d.IteratorPrototype,v=d.BUGGY_SAFARI_ITERATORS,m=l("iterator"),g=function(){return this};e.exports=function(e,t,n,l,d,y,b){i(n,t,l);var _,w,S,x=function(e){if(e===d&&I)return I;if(!v&&e in j)return j[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},k=t+" Iterator",T=!1,j=e.prototype,E=j[m]||j["@@iterator"]||d&&j[d],I=!v&&E||x(d),O="Array"==t&&j.entries||E;if(O&&(_=a(O.call(new e)),h!==Object.prototype&&_.next&&(f||a(_)===h||(o?o(_,h):"function"!=typeof _[m]&&c(_,m,g)),s(_,k,!0,!0),f&&(p[k]=g))),"values"==d&&E&&"values"!==E.name&&(T=!0,I=function(){return E.call(this)}),f&&!b||j[m]===I||c(j,m,I),p[t]=I,d)if(w={values:x("values"),keys:y?I:x("keys"),entries:x("entries")},b)for(S in w)(v||T||!(S in j))&&u(j,S,w[S]);else r({target:t,proto:!0,forced:v||T},w);return w}},function(e,t,n){"use strict";var r=n(7),i=n(12),a=n(226),o=n(117),s=a.ArrayBuffer;r({global:!0,forced:i.ArrayBuffer!==s},{ArrayBuffer:s}),o("ArrayBuffer")},function(e,t,n){"use strict";var r=n(46),i=n(105),a=n(29);e.exports=function(e){for(var t=r(this),n=a(t.length),o=arguments.length,s=i(o>1?arguments[1]:void 0,n),c=o>2?arguments[2]:void 0,u=void 0===c?n:i(c,n);u>s;)t[s++]=e;return t}},function(e,t,n){var r=n(7),i=n(11),a=n(220).f;r({target:"Object",stat:!0,forced:i((function(){return!Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:a})},function(e,t,n){var r=n(36),i=n(188),a=n(29),o=n(108),s=n(132),c=n(230),u=function(e,t){this.stopped=e,this.result=t};(e.exports=function(e,t,n,l,f){var p,d,h,v,m,g,y,b=o(t,n,l?2:1);if(f)p=e;else{if("function"!=typeof(d=s(e)))throw TypeError("Target is not iterable");if(i(d)){for(h=0,v=a(e.length);v>h;h++)if((m=l?b(r(y=e[h])[0],y[1]):b(e[h]))&&m instanceof u)return m;return new u(!1)}p=d.call(e)}for(g=p.next;!(y=g.call(p)).done;)if("object"==typeof(m=c(p,b,y.value,l))&&m&&m instanceof u)return m;return new u(!1)}).stop=function(e){return new u(!0,e)}},function(e,t,n){var r=n(18),i=n(130),a=r("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||o[a]===e)}},function(e,t,n){var r,i,a,o=n(12),s=n(11),c=n(87),u=n(108),l=n(219),f=n(172),p=n(231),d=o.location,h=o.setImmediate,v=o.clearImmediate,m=o.process,g=o.MessageChannel,y=o.Dispatch,b=0,_={},w=function(e){if(_.hasOwnProperty(e)){var t=_[e];delete _[e],t()}},S=function(e){return function(){w(e)}},x=function(e){w(e.data)},k=function(e){o.postMessage(e+"",d.protocol+"//"+d.host)};h&&v||(h=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return _[++b]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},r(b),b},v=function(e){delete _[e]},"process"==c(m)?r=function(e){m.nextTick(S(e))}:y&&y.now?r=function(e){y.now(S(e))}:g&&!p?(a=(i=new g).port2,i.port1.onmessage=x,r=u(a.postMessage,a,1)):!o.addEventListener||"function"!=typeof postMessage||o.importScripts||s(k)||"file:"===d.protocol?r="onreadystatechange"in f("script")?function(e){l.appendChild(f("script")).onreadystatechange=function(){l.removeChild(this),w(e)}}:function(e){setTimeout(S(e),0)}:(r=k,o.addEventListener("message",x,!1))),e.exports={set:h,clear:v}},function(e,t,n){"use strict";var r=n(153).charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},function(e,t,n){var r=n(31),i=n(87),a=n(18)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[a])?!!t:"RegExp"==i(e))}},function(e,t,n){"use strict";n(22);var r,i=n(7),a=n(32),o=n(242),s=n(12),c=n(218),u=n(45),l=n(109),f=n(34),p=n(243),d=n(244),h=n(153).codeAt,v=n(310),m=n(88),g=n(311),y=n(86),b=s.URL,_=g.URLSearchParams,w=g.getState,S=y.set,x=y.getterFor("URL"),k=Math.floor,T=Math.pow,j=/[A-Za-z]/,E=/[\d+-.A-Za-z]/,I=/\d/,O=/^(0x|0X)/,A=/^[0-7]+$/,R=/^\d+$/,N=/^[\dA-Fa-f]+$/,C=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,P=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,L=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,q=/[\u0009\u000A\u000D]/g,F=function(e,t){var n,r,i;if("["==t.charAt(0)){if("]"!=t.charAt(t.length-1))return"Invalid host";if(!(n=D(t.slice(1,-1))))return"Invalid host";e.host=n}else if(W(e)){if(t=v(t),C.test(t))return"Invalid host";if(null===(n=M(t)))return"Invalid host";e.host=n}else{if(P.test(t))return"Invalid host";for(n="",r=d(t),i=0;i<r.length;i++)n+=V(r[i],U);e.host=n}},M=function(e){var t,n,r,i,a,o,s,c=e.split(".");if(c.length&&""==c[c.length-1]&&c.pop(),(t=c.length)>4)return e;for(n=[],r=0;r<t;r++){if(""==(i=c[r]))return e;if(a=10,i.length>1&&"0"==i.charAt(0)&&(a=O.test(i)?16:8,i=i.slice(8==a?1:2)),""===i)o=0;else{if(!(10==a?R:8==a?A:N).test(i))return e;o=parseInt(i,a)}n.push(o)}for(r=0;r<t;r++)if(o=n[r],r==t-1){if(o>=T(256,5-t))return null}else if(o>255)return null;for(s=n.pop(),r=0;r<n.length;r++)s+=n[r]*T(256,3-r);return s},D=function(e){var t,n,r,i,a,o,s,c=[0,0,0,0,0,0,0,0],u=0,l=null,f=0,p=function(){return e.charAt(f)};if(":"==p()){if(":"!=e.charAt(1))return;f+=2,l=++u}for(;p();){if(8==u)return;if(":"!=p()){for(t=n=0;n<4&&N.test(p());)t=16*t+parseInt(p(),16),f++,n++;if("."==p()){if(0==n)return;if(f-=n,u>6)return;for(r=0;p();){if(i=null,r>0){if(!("."==p()&&r<4))return;f++}if(!I.test(p()))return;for(;I.test(p());){if(a=parseInt(p(),10),null===i)i=a;else{if(0==i)return;i=10*i+a}if(i>255)return;f++}c[u]=256*c[u]+i,2!=++r&&4!=r||u++}if(4!=r)return;break}if(":"==p()){if(f++,!p())return}else if(p())return;c[u++]=t}else{if(null!==l)return;f++,l=++u}}if(null!==l)for(o=u-l,u=7;0!=u&&o>0;)s=c[u],c[u--]=c[l+o-1],c[l+--o]=s;else if(8!=u)return;return c},B=function(e){var t,n,r,i;if("number"==typeof e){for(t=[],n=0;n<4;n++)t.unshift(e%256),e=k(e/256);return t.join(".")}if("object"==typeof e){for(t="",r=function(e){for(var t=null,n=1,r=null,i=0,a=0;a<8;a++)0!==e[a]?(i>n&&(t=r,n=i),r=null,i=0):(null===r&&(r=a),++i);return i>n&&(t=r,n=i),t}(e),n=0;n<8;n++)i&&0===e[n]||(i&&(i=!1),r===n?(t+=n?":":"::",i=!0):(t+=e[n].toString(16),n<7&&(t+=":")));return"["+t+"]"}return e},U={},z=p({},U,{" ":1,'"':1,"<":1,">":1,"`":1}),J=p({},z,{"#":1,"?":1,"{":1,"}":1}),G=p({},J,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),V=function(e,t){var n=h(e,0);return n>32&&n<127&&!f(t,e)?e:encodeURIComponent(e)},H={ftp:21,file:null,http:80,https:443,ws:80,wss:443},W=function(e){return f(H,e.scheme)},Q=function(e){return""!=e.username||""!=e.password},K=function(e){return!e.host||e.cannotBeABaseURL||"file"==e.scheme},Y=function(e,t){var n;return 2==e.length&&j.test(e.charAt(0))&&(":"==(n=e.charAt(1))||!t&&"|"==n)},X=function(e){var t;return e.length>1&&Y(e.slice(0,2))&&(2==e.length||"/"===(t=e.charAt(2))||"\\"===t||"?"===t||"#"===t)},$=function(e){var t=e.path,n=t.length;!n||"file"==e.scheme&&1==n&&Y(t[0],!0)||t.pop()},Z=function(e){return"."===e||"%2e"===e.toLowerCase()},ee={},te={},ne={},re={},ie={},ae={},oe={},se={},ce={},ue={},le={},fe={},pe={},de={},he={},ve={},me={},ge={},ye={},be={},_e={},we=function(e,t,n,i){var a,o,s,c,u,l=n||ee,p=0,h="",v=!1,m=!1,g=!1;for(n||(e.scheme="",e.username="",e.password="",e.host=null,e.port=null,e.path=[],e.query=null,e.fragment=null,e.cannotBeABaseURL=!1,t=t.replace(L,"")),t=t.replace(q,""),a=d(t);p<=a.length;){switch(o=a[p],l){case ee:if(!o||!j.test(o)){if(n)return"Invalid scheme";l=ne;continue}h+=o.toLowerCase(),l=te;break;case te:if(o&&(E.test(o)||"+"==o||"-"==o||"."==o))h+=o.toLowerCase();else{if(":"!=o){if(n)return"Invalid scheme";h="",l=ne,p=0;continue}if(n&&(W(e)!=f(H,h)||"file"==h&&(Q(e)||null!==e.port)||"file"==e.scheme&&!e.host))return;if(e.scheme=h,n)return void(W(e)&&H[e.scheme]==e.port&&(e.port=null));h="","file"==e.scheme?l=de:W(e)&&i&&i.scheme==e.scheme?l=re:W(e)?l=se:"/"==a[p+1]?(l=ie,p++):(e.cannotBeABaseURL=!0,e.path.push(""),l=ye)}break;case ne:if(!i||i.cannotBeABaseURL&&"#"!=o)return"Invalid scheme";if(i.cannotBeABaseURL&&"#"==o){e.scheme=i.scheme,e.path=i.path.slice(),e.query=i.query,e.fragment="",e.cannotBeABaseURL=!0,l=_e;break}l="file"==i.scheme?de:ae;continue;case re:if("/"!=o||"/"!=a[p+1]){l=ae;continue}l=ce,p++;break;case ie:if("/"==o){l=ue;break}l=ge;continue;case ae:if(e.scheme=i.scheme,o==r)e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,e.path=i.path.slice(),e.query=i.query;else if("/"==o||"\\"==o&&W(e))l=oe;else if("?"==o)e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,e.path=i.path.slice(),e.query="",l=be;else{if("#"!=o){e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,e.path=i.path.slice(),e.path.pop(),l=ge;continue}e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,e.path=i.path.slice(),e.query=i.query,e.fragment="",l=_e}break;case oe:if(!W(e)||"/"!=o&&"\\"!=o){if("/"!=o){e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,l=ge;continue}l=ue}else l=ce;break;case se:if(l=ce,"/"!=o||"/"!=h.charAt(p+1))continue;p++;break;case ce:if("/"!=o&&"\\"!=o){l=ue;continue}break;case ue:if("@"==o){v&&(h="%40"+h),v=!0,s=d(h);for(var y=0;y<s.length;y++){var b=s[y];if(":"!=b||g){var _=V(b,G);g?e.password+=_:e.username+=_}else g=!0}h=""}else if(o==r||"/"==o||"?"==o||"#"==o||"\\"==o&&W(e)){if(v&&""==h)return"Invalid authority";p-=d(h).length+1,h="",l=le}else h+=o;break;case le:case fe:if(n&&"file"==e.scheme){l=ve;continue}if(":"!=o||m){if(o==r||"/"==o||"?"==o||"#"==o||"\\"==o&&W(e)){if(W(e)&&""==h)return"Invalid host";if(n&&""==h&&(Q(e)||null!==e.port))return;if(c=F(e,h))return c;if(h="",l=me,n)return;continue}"["==o?m=!0:"]"==o&&(m=!1),h+=o}else{if(""==h)return"Invalid host";if(c=F(e,h))return c;if(h="",l=pe,n==fe)return}break;case pe:if(!I.test(o)){if(o==r||"/"==o||"?"==o||"#"==o||"\\"==o&&W(e)||n){if(""!=h){var w=parseInt(h,10);if(w>65535)return"Invalid port";e.port=W(e)&&w===H[e.scheme]?null:w,h=""}if(n)return;l=me;continue}return"Invalid port"}h+=o;break;case de:if(e.scheme="file","/"==o||"\\"==o)l=he;else{if(!i||"file"!=i.scheme){l=ge;continue}if(o==r)e.host=i.host,e.path=i.path.slice(),e.query=i.query;else if("?"==o)e.host=i.host,e.path=i.path.slice(),e.query="",l=be;else{if("#"!=o){X(a.slice(p).join(""))||(e.host=i.host,e.path=i.path.slice(),$(e)),l=ge;continue}e.host=i.host,e.path=i.path.slice(),e.query=i.query,e.fragment="",l=_e}}break;case he:if("/"==o||"\\"==o){l=ve;break}i&&"file"==i.scheme&&!X(a.slice(p).join(""))&&(Y(i.path[0],!0)?e.path.push(i.path[0]):e.host=i.host),l=ge;continue;case ve:if(o==r||"/"==o||"\\"==o||"?"==o||"#"==o){if(!n&&Y(h))l=ge;else if(""==h){if(e.host="",n)return;l=me}else{if(c=F(e,h))return c;if("localhost"==e.host&&(e.host=""),n)return;h="",l=me}continue}h+=o;break;case me:if(W(e)){if(l=ge,"/"!=o&&"\\"!=o)continue}else if(n||"?"!=o)if(n||"#"!=o){if(o!=r&&(l=ge,"/"!=o))continue}else e.fragment="",l=_e;else e.query="",l=be;break;case ge:if(o==r||"/"==o||"\\"==o&&W(e)||!n&&("?"==o||"#"==o)){if(".."===(u=(u=h).toLowerCase())||"%2e."===u||".%2e"===u||"%2e%2e"===u?($(e),"/"==o||"\\"==o&&W(e)||e.path.push("")):Z(h)?"/"==o||"\\"==o&&W(e)||e.path.push(""):("file"==e.scheme&&!e.path.length&&Y(h)&&(e.host&&(e.host=""),h=h.charAt(0)+":"),e.path.push(h)),h="","file"==e.scheme&&(o==r||"?"==o||"#"==o))for(;e.path.length>1&&""===e.path[0];)e.path.shift();"?"==o?(e.query="",l=be):"#"==o&&(e.fragment="",l=_e)}else h+=V(o,J);break;case ye:"?"==o?(e.query="",l=be):"#"==o?(e.fragment="",l=_e):o!=r&&(e.path[0]+=V(o,U));break;case be:n||"#"!=o?o!=r&&("'"==o&&W(e)?e.query+="%27":e.query+="#"==o?"%23":V(o,U)):(e.fragment="",l=_e);break;case _e:o!=r&&(e.fragment+=V(o,z))}p++}},Se=function(e){var t,n,r=l(this,Se,"URL"),i=arguments.length>1?arguments[1]:void 0,o=String(e),s=S(r,{type:"URL"});if(void 0!==i)if(i instanceof Se)t=x(i);else if(n=we(t={},String(i)))throw TypeError(n);if(n=we(s,o,null,t))throw TypeError(n);var c=s.searchParams=new _,u=w(c);u.updateSearchParams(s.query),u.updateURL=function(){s.query=String(c)||null},a||(r.href=ke.call(r),r.origin=Te.call(r),r.protocol=je.call(r),r.username=Ee.call(r),r.password=Ie.call(r),r.host=Oe.call(r),r.hostname=Ae.call(r),r.port=Re.call(r),r.pathname=Ne.call(r),r.search=Ce.call(r),r.searchParams=Pe.call(r),r.hash=Le.call(r))},xe=Se.prototype,ke=function(){var e=x(this),t=e.scheme,n=e.username,r=e.password,i=e.host,a=e.port,o=e.path,s=e.query,c=e.fragment,u=t+":";return null!==i?(u+="//",Q(e)&&(u+=n+(r?":"+r:"")+"@"),u+=B(i),null!==a&&(u+=":"+a)):"file"==t&&(u+="//"),u+=e.cannotBeABaseURL?o[0]:o.length?"/"+o.join("/"):"",null!==s&&(u+="?"+s),null!==c&&(u+="#"+c),u},Te=function(){var e=x(this),t=e.scheme,n=e.port;if("blob"==t)try{return new URL(t.path[0]).origin}catch(e){return"null"}return"file"!=t&&W(e)?t+"://"+B(e.host)+(null!==n?":"+n:""):"null"},je=function(){return x(this).scheme+":"},Ee=function(){return x(this).username},Ie=function(){return x(this).password},Oe=function(){var e=x(this),t=e.host,n=e.port;return null===t?"":null===n?B(t):B(t)+":"+n},Ae=function(){var e=x(this).host;return null===e?"":B(e)},Re=function(){var e=x(this).port;return null===e?"":String(e)},Ne=function(){var e=x(this),t=e.path;return e.cannotBeABaseURL?t[0]:t.length?"/"+t.join("/"):""},Ce=function(){var e=x(this).query;return e?"?"+e:""},Pe=function(){return x(this).searchParams},Le=function(){var e=x(this).fragment;return e?"#"+e:""},qe=function(e,t){return{get:e,set:t,configurable:!0,enumerable:!0}};if(a&&c(xe,{href:qe(ke,(function(e){var t=x(this),n=String(e),r=we(t,n);if(r)throw TypeError(r);w(t.searchParams).updateSearchParams(t.query)})),origin:qe(Te),protocol:qe(je,(function(e){var t=x(this);we(t,String(e)+":",ee)})),username:qe(Ee,(function(e){var t=x(this),n=d(String(e));if(!K(t)){t.username="";for(var r=0;r<n.length;r++)t.username+=V(n[r],G)}})),password:qe(Ie,(function(e){var t=x(this),n=d(String(e));if(!K(t)){t.password="";for(var r=0;r<n.length;r++)t.password+=V(n[r],G)}})),host:qe(Oe,(function(e){var t=x(this);t.cannotBeABaseURL||we(t,String(e),le)})),hostname:qe(Ae,(function(e){var t=x(this);t.cannotBeABaseURL||we(t,String(e),fe)})),port:qe(Re,(function(e){var t=x(this);K(t)||(""==(e=String(e))?t.port=null:we(t,e,pe))})),pathname:qe(Ne,(function(e){var t=x(this);t.cannotBeABaseURL||(t.path=[],we(t,e+"",me))})),search:qe(Ce,(function(e){var t=x(this);""==(e=String(e))?t.query=null:("?"==e.charAt(0)&&(e=e.slice(1)),t.query="",we(t,e,be)),w(t.searchParams).updateSearchParams(t.query)})),searchParams:qe(Pe),hash:qe(Le,(function(e){var t=x(this);""!=(e=String(e))?("#"==e.charAt(0)&&(e=e.slice(1)),t.fragment="",we(t,e,_e)):t.fragment=null}))}),u(xe,"toJSON",(function(){return ke.call(this)}),{enumerable:!0}),u(xe,"toString",(function(){return ke.call(this)}),{enumerable:!0}),b){var Fe=b.createObjectURL,Me=b.revokeObjectURL;Fe&&u(Se,"createObjectURL",(function(e){return Fe.apply(b,arguments)})),Me&&u(Se,"revokeObjectURL",(function(e){return Me.apply(b,arguments)}))}m(Se,"URL"),i({global:!0,forced:!o,sham:!a},{URL:Se})},function(e,t,n){var r=n(191);e.exports=function(e){if(r(e))throw TypeError("The method doesn't accept regular expressions");return e}},function(e,t,n){var r=n(18)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(e){}}return!1}},function(e,t,n){var r=n(246);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}},function(e,t,n){var r=n(124),i=n(31),a=n(34),o=n(35).f,s=n(123),c=n(254),u=s("meta"),l=0,f=Object.isExtensible||function(){return!0},p=function(e){o(e,u,{value:{objectID:"O"+ ++l,weakData:{}}})},d=e.exports={REQUIRED:!1,fastKey:function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!a(e,u)){if(!f(e))return"F";if(!t)return"E";p(e)}return e[u].objectID},getWeakData:function(e,t){if(!a(e,u)){if(!f(e))return!0;if(!t)return!1;p(e)}return e[u].weakData},onFreeze:function(e){return c&&d.REQUIRED&&f(e)&&!a(e,u)&&p(e),e}};r[u]=!0},function(e,t,n){"use strict";var r=n(7),i=n(153).codeAt;r({target:"String",proto:!0},{codePointAt:function(e){return i(this,e)}})},function(e,t,n){"use strict";var r=n(154),i=n(36),a=n(85),o=n(328),s=n(155);r("search",1,(function(e,t,n){return[function(t){var n=a(this),r=null==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,e,this);if(r.done)return r.value;var a=i(e),c=String(this),u=a.lastIndex;o(u,0)||(a.lastIndex=0);var l=s(a,c);return o(a.lastIndex,u)||(a.lastIndex=u),null===l?-1:l.index}]}))},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,r)}e.exports=n},function(e,t,n){"use strict";(function(t){n(19),n(28),n(5),n(25),n(98),n(27);var r=n(41),i=n(356),a=n(120),o=n(272),s=n(273),c={"Content-Type":"application/x-www-form-urlencoded"};function u(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var l,f={transitional:o,adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==t&&"[object process]"===Object.prototype.toString.call(t))&&(l=n(274)),l),transformRequest:[function(e,t){if(i(t,"Accept"),i(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e))return e;if(r.isArrayBufferView(e))return e.buffer;if(r.isURLSearchParams(e))return u(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var n,a=r.isObject(e),o=t&&t["Content-Type"];if((n=r.isFileList(e))||a&&"multipart/form-data"===o){var c=this.env&&this.env.FormData;return s(n?{"files[]":e}:e,c&&new c)}return a||"application/json"===o?(u(t,"application/json"),function(e,t,n){if(r.isString(e))try{return(t||JSON.parse)(e),r.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||f.transitional,n=t&&t.silentJSONParsing,i=t&&t.forcedJSONParsing,o=!n&&"json"===this.responseType;if(o||i&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(o){if("SyntaxError"===e.name)throw a.from(e,a.ERR_BAD_RESPONSE,this,null,this.response);throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:n(365)},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){f.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){f.headers[e]=r.merge(c)})),e.exports=f}).call(this,n(100))},function(e,t,n){"use strict";var r,i=n(2),a=n(3),o=n(8),s=n(37),c=n(16),u=n(209);function l(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 n,r=c(e);if(t){var i=c(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return s(this,n)}}Object.defineProperty(t,"__esModule",{value:!0}),t.JXTErrorCondition=void 0,function(e){e.NotWellFormed="not-well-formed",e.RestrictedXML="restricted-xml",e.AlreadyClosed="already-closed",e.UnknownRoot="unknown-stream-root"}(r=t.JXTErrorCondition||(t.JXTErrorCondition={}));var f=function(e){o(n,e);var t=l(n);function n(e){var r;return i(this,n),(r=t.call(this,e.text)).isJXTError=!0,r.condition=e.condition,r.text=e.text,r}return a(n,null,[{key:"notWellFormed",value:function(e){return new n({condition:r.NotWellFormed,text:e})}},{key:"restrictedXML",value:function(e){return new n({condition:r.RestrictedXML,text:e})}},{key:"alreadyClosed",value:function(e){return new n({condition:r.AlreadyClosed,text:e})}},{key:"unknownRoot",value:function(e){return new n({condition:r.UnknownRoot,text:e})}}]),n}(u(Error));t.default=f},function(e,t,n){"use strict";(function(e){n(10),n(44),n(23),n(9),n(20),n(28),n(90),n(118),n(5),n(15),n(25),n(91),n(22),n(39),n(98),n(24),n(136);var r=n(4),i=n(14);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}Object.defineProperty(t,"__esModule",{value:!0}),t.childAlternateLanguageRawElement=t.childLanguageRawElement=t.childRawElement=t.staticValue=t.splicePath=t.multipleChildEnum=t.multipleChildAlternateLanguageText=t.childAlternateLanguageText=t.multipleChildIntegerAttribute=t.multipleChildAttribute=t.multipleChildText=t.childDoubleEnum=t.childEnum=t.deepMultipleChildText=t.deepChildBoolean=t.deepChildInteger=t.deepChildText=t.childBoolean=t.childTimezoneOffset=t.childJSON=t.childFloat=t.childInteger=t.childDate=t.childTextBuffer=t.childText=t.childLanguageAttribute=t.languageAttribute=t.textBuffer=t.textJSON=t.text=t.childDateAttribute=t.childFloatAttribute=t.childIntegerAttribute=t.childBooleanAttribute=t.childAttribute=t.namespacedDateAttribute=t.namespacedFloatAttribute=t.namespacedIntegerAttribute=t.namespacedBooleanAttribute=t.namespacedAttribute=t.dateAttribute=t.floatAttribute=t.integerAttribute=t.booleanAttribute=t.attribute=t.findOrCreate=t.findAll=t.getTargetLang=t.getLang=t.createElement=void 0,t.parameterMap=void 0;var u=n(1).__importDefault(n(166)),l=n(203);function f(e,t,n,r){if(r){e=e||r.getNamespace();var i=r.getNamespaceRoot(e);if(i){var a=i.useNamespace("",e);t="".concat(a,":").concat(t)}}var o=new u.default(t);return t.indexOf(":")<0&&(!n||e!==n)&&o.setAttribute("xmlns",e),o}function p(e,t){return(e.getAttribute("xml:lang")||t||"").toLowerCase()}function d(e,t){var n,r=[],i=s(e);try{for(i.s();!(n=i.n()).done;){var a=n.value;r.push(p(a,t.lang))}}catch(e){i.e(e)}finally{i.f()}return(t.resolveLanguage?t.resolveLanguage(r,t.acceptLanguages||[],t.lang):t.lang)||""}function h(e,t,n,r){var i=e.getChildren(n,t),a=p(e);return i.length?r?i.filter((function(e){if(p(e,a)===r)return!0})):i:[]}function v(e,t,n,r){t=t||e.getNamespace();var i=h(e,t,n,r);if(i.length)return i[0];var a=f(t,n,e.getDefaultNamespace(),e),o=p(e,r);return r&&o!==r&&a.setAttribute("xml:lang",r),e.appendChild(a),a}function m(e){return{importer:function(t){var n=t.getAttribute(e.name,e.namespace);return n?e.parseValue(n):e.dynamicDefault?e.dynamicDefault(n):e.staticDefault},exporter:function(t,n){if(void 0!==n&&n!==e.staticDefault){var r=e.writeValue(n);if(r||e.emitEmpty)if(e.namespace&&e.prefix){var i,a=t.getNamespaceRoot(e.namespace);if(a)i=a.useNamespace(e.prefix,e.namespace);else{var o=t.getNamespaceContext();o[e.namespace]||(i=t.useNamespace(e.prefix,e.namespace),o[e.namespace]=i)}t.setAttribute("".concat(i,":").concat(e.name),r,e.emitEmpty)}else t.setAttribute(e.name,r,e.emitEmpty)}}}}function g(e,t){return function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return i=o({staticDefault:r},i),m(o(o({name:n},e),t?t(i):i))}}function y(e,t){return function(n,r,i){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return s=o({staticDefault:a},s),m(o(o({name:i,namespace:r,prefix:n},e),t?t(s):s))}}function b(e){var t=e.converter||m(o(o({},e),{},{namespace:e.attributeNamespace}));return{importer:function(n,r){var i=n.getChild(e.element,e.namespace||n.getNamespace());return i?t.importer(i,r):e.dynamicDefault?e.dynamicDefault():e.staticDefault},exporter:function(n,r,i){if(void 0!==r&&r!==e.staticDefault){var a=v(n,e.namespace||n.getNamespace(),e.element);t.exporter(a,r,i)}}}}function _(e,t){return function(n,r,i){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return s=o({staticDefault:a},s),b(o(o({element:r,name:i,namespace:n},e),t?t(s):s))}}function w(e){return{importer:function(t){var n=t.getText();return n?e.parseValue(n):e.dynamicDefault?e.dynamicDefault(n):e.staticDefault},exporter:function(t,n){if(n||!e.emitEmpty){if(void 0!==n&&n!==e.staticDefault){var r=e.writeValue(n);r&&t.children.push(r)}}else t.children.push("")}}}function S(e){var t=w(e);return{importer:function(n,r){var i=h(n,e.namespace||n.getNamespace(),e.element),a=d(i,r);if(!i.length)return e.dynamicDefault?e.dynamicDefault():e.staticDefault;if(e.matchLanguage){var o,c=s(i);try{for(c.s();!(o=c.n()).done;){var u=o.value;if(p(u,r.lang)===a)return t.importer(u,r)}}catch(e){c.e(e)}finally{c.f()}}return t.importer(i[0],r)},exporter:function(n,r,i){if(r||!e.emitEmpty){if(void 0!==r&&r!==e.staticDefault){var a=v(n,e.namespace||n.getNamespace(),e.element,e.matchLanguage?i.lang:void 0);t.exporter(a,r,i)}}else v(n,e.namespace||n.getNamespace(),e.element,e.matchLanguage?i.lang:void 0)}}}t.createElement=f,t.getLang=p,t.getTargetLang=d,t.findAll=h,t.findOrCreate=v;var x={parseValue:function(e){return e},writeValue:function(e){return e}},k={parseValue:function(e){return parseInt(e,10)},writeValue:function(e){return e.toString()}},T={parseValue:function(e){return parseFloat(e)},writeValue:function(e){return e.toString()}},j={parseValue:function(e){return"true"===e||"1"===e||"false"!==e&&"0"!==e&&void 0},writeValue:function(e){return e?"1":"0"}},E={parseValue:function(e){return new Date(e)},writeValue:function(e){return"string"==typeof e?e:e.toISOString()}},I={parseValue:function(e){return JSON.parse(e)},writeValue:function(e){return JSON.stringify(e)}},O=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"utf8";return{parseValue:function(n){return"base64"===t&&"="===n&&(n=""),e.from(n.trim(),t)},writeValue:function(n){var r;return r="string"==typeof n?e.from(n).toString(t):n?n.toString(t):"","base64"===t&&(r=r||"="),r}}},A={parseValue:function(e){var t=-1;"-"===e.charAt(0)&&(t=1,e=e.slice(1));var n=e.split(":");return(60*parseInt(n[0],10)+parseInt(n[1],10))*t},writeValue:function(e){if("string"==typeof e)return e;var t="-";e<0&&(e=-e,t="+");var n=e/60,r=e%60;return t+=(n<10?"0":"")+n+":"+(r<10?"0":"")+r}};t.attribute=g(x,(function(e){return o({dynamicDefault:e.emitEmpty?function(t){return""===t?"":e.staticDefault}:void 0},e)})),t.booleanAttribute=g(j),t.integerAttribute=g(k),t.floatAttribute=g(T),t.dateAttribute=g(E),t.namespacedAttribute=y(x),t.namespacedBooleanAttribute=y(j),t.namespacedIntegerAttribute=y(k),t.namespacedFloatAttribute=y(T),t.namespacedDateAttribute=y(E),t.childAttribute=_(x),t.childBooleanAttribute=_(j),t.childIntegerAttribute=_(k),t.childFloatAttribute=_(T),t.childDateAttribute=_(E);t.text=function(e){return w(o({staticDefault:e},x))};t.textJSON=function(){return w(o({},I))};function R(){return{importer:function(e,t){return p(e,t.lang)},exporter:function(e,t,n){t&&t.toLowerCase()!==n.lang?e.setAttribute("xml:lang",t):e.setAttribute("xml:lang",void 0)}}}t.textBuffer=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"utf8";return w(o({},O(e)))},t.languageAttribute=R;t.childLanguageAttribute=function(e,t){return b(o({converter:R(),element:t,name:"xml:lang",namespace:e},x))};t.childText=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return S(o({element:t,emitEmpty:r,matchLanguage:!0,namespace:e,staticDefault:n},x))};t.childTextBuffer=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"utf8";return S(o({element:t,matchLanguage:!0,namespace:e},O(n)))};t.childDate=function(e,t){return S(o({element:t,namespace:e},E))};t.childInteger=function(e,t,n){return S(o({element:t,namespace:e,staticDefault:n},k))};t.childFloat=function(e,t,n){return S(o({element:t,namespace:e,staticDefault:n},T))};t.childJSON=function(e,t){return S(o({element:t,namespace:e},I))},t.childTimezoneOffset=function(e,t){return S(o({element:t,namespace:e,staticDefault:0},A))},t.childBoolean=function(e,t){return{importer:function(n){if(n.getChild(t,e||n.getNamespace()))return!0},exporter:function(n,r){r&&v(n,e||n.getNamespace(),t)}}};var N=function(e,t,n){if(n){var r,i=t,a=s(e);try{for(a.s();!(r=a.n()).done;){var o=r.value;i=v(i,o.namespace||i.getNamespace(),o.element)}}catch(e){a.e(e)}finally{a.f()}i.children.push(n.toString())}};t.deepChildText=function(e,t){return{importer:function(n){var r,i=n,a=s(e);try{for(a.s();!(r=a.n()).done;){var o=r.value;if(!(i=i.getChild(o.element,o.namespace||i.getNamespace())))return t}}catch(e){a.e(e)}finally{a.f()}return i.getText()||t},exporter:function(t,n){N(e,t,n)}}},t.deepChildInteger=function(e,t){return{importer:function(n){var r,i=n,a=s(e);try{for(a.s();!(r=a.n()).done;){var o=r.value;if(!(i=i.getChild(o.element,o.namespace||i.getNamespace())))return}}catch(e){a.e(e)}finally{a.f()}var c=i.getText();return c?parseInt(c,10):t||void 0},exporter:function(t,n){N(e,t,n)}}},t.deepChildBoolean=function(e){return{importer:function(t){var n,r=t,i=s(e);try{for(i.s();!(n=i.n()).done;){var a=n.value;if(!(r=r.getChild(a.element,a.namespace||r.getNamespace())))return!1}}catch(e){i.e(e)}finally{i.f()}return!0},exporter:function(t,n){if(n){var r,i=t,a=s(e);try{for(a.s();!(r=a.n()).done;){var o=r.value;i=v(i,o.namespace||i.getNamespace(),o.element)}}catch(e){a.e(e)}finally{a.f()}}}}},t.deepMultipleChildText=function(e){var t=e.pop();return{importer:function(n,r){var i,a=n,o=s(e);try{for(o.s();!(i=o.n()).done;){var c=i.value;if(!(a=a.getChild(c.element,c.namespace||a.getNamespace())))return[]}}catch(e){o.e(e)}finally{o.f()}var u,l=[],f=h(a,t.namespace||a.getNamespace(),t.element),v=d(f,r),m=s(f);try{for(m.s();!(u=m.n()).done;){var g=u.value;p(g,r.lang)===v&&l.push(g.getText())}}catch(e){m.e(e)}finally{m.f()}return l},exporter:function(n,r,i){if(r.length){var a,o=n,c=s(e);try{for(c.s();!(a=c.n()).done;){var u=a.value;o=v(o,u.namespace||o.getNamespace(),u.element)}}catch(e){c.e(e)}finally{c.f()}var l,p=t.namespace,d=t.element,h=s(r);try{for(h.s();!(l=h.n()).done;){var m=l.value,g=f(p||o.getNamespace(),d,i.namespace,o);g.children.push(m),o.appendChild(g)}}catch(e){h.e(e)}finally{h.f()}}}}},t.childEnum=function(e,t,n){var r,i=new Map,a=new Map,o=s(t);try{for(o.s();!(r=o.n()).done;){var c=r.value;"string"==typeof c?(i.set(c,c),a.set(c,c)):(i.set(c[1],c[0]),a.set(c[0],c[1]))}}catch(e){o.e(e)}finally{o.f()}return{importer:function(t){var r,a=s(t.children);try{for(a.s();!(r=a.n()).done;){var o=r.value;if("string"!=typeof o&&(o.getNamespace()===(e||t.getNamespace())&&i.has(o.getName())))return i.get(o.getName())}}catch(e){a.e(e)}finally{a.f()}return n},exporter:function(t,n){a.has(n)&&v(t,e,a.get(n))}}},t.childDoubleEnum=function(e,t,n,r){var i=new Set(t),a=new Set(n);return{importer:function(t){var n,o=s(t.children);try{for(o.s();!(n=o.n()).done;){var c=n.value;if("string"!=typeof c&&(c.getNamespace()===(e||t.getNamespace())&&i.has(c.getName()))){var u,l=s(c.children);try{for(l.s();!(u=l.n()).done;){var f=u.value;if("string"!=typeof f&&(f.getNamespace()===(e||t.getNamespace())&&a.has(f.getName())))return[c.getName(),f.getName()]}}catch(e){l.e(e)}finally{l.f()}return[c.getName()]}}}catch(e){o.e(e)}finally{o.f()}return r},exporter:function(t,n){var r=v(t,e,n[0]);n[1]&&v(r,e,n[1])}}},t.multipleChildText=function(e,t){return{importer:function(n,r){var i,a=[],o=h(n,e||n.getNamespace(),t),c=d(o,r),u=s(o);try{for(u.s();!(i=u.n()).done;){var l=i.value;p(l,r.lang)===c&&a.push(l.getText())}}catch(e){u.e(e)}finally{u.f()}return a},exporter:function(n,r,i){var a,o=s(r);try{for(o.s();!(a=o.n()).done;){var c=a.value,u=f(e||n.getNamespace(),t,i.namespace,n);u.children.push(c),n.appendChild(u)}}catch(e){o.e(e)}finally{o.f()}}}},t.multipleChildAttribute=function(e,t,n){return{importer:function(r){var i,a=[],o=s(r.getChildren(t,e||r.getNamespace()));try{for(o.s();!(i=o.n()).done;){var c=i.value.getAttribute(n);void 0!==c&&a.push(c)}}catch(e){o.e(e)}finally{o.f()}return a},exporter:function(r,i,a){var o,c=s(i);try{for(c.s();!(o=c.n()).done;){var u=o.value,l=f(e||r.getNamespace(),t,a.namespace,r);l.setAttribute(n,u),r.appendChild(l)}}catch(e){c.e(e)}finally{c.f()}}}},t.multipleChildIntegerAttribute=function(e,t,n){return{importer:function(r){var i,a=[],o=s(r.getChildren(t,e||r.getNamespace()));try{for(o.s();!(i=o.n()).done;){var c=i.value.getAttribute(n);void 0!==c&&a.push(parseInt(c,10))}}catch(e){o.e(e)}finally{o.f()}return a},exporter:function(r,i,a){var o,c=s(i);try{for(c.s();!(o=c.n()).done;){var u=o.value,l=f(e||r.getNamespace(),t,a.namespace,r);l.setAttribute(n,u.toString()),r.appendChild(l)}}catch(e){c.e(e)}finally{c.f()}}}},t.childAlternateLanguageText=function(e,t){return{importer:function(n,r){var i,a=[],o=h(n,e||n.getNamespace(),t),c=new Set,u=s(o);try{for(u.s();!(i=u.n()).done;){var l=i.value,f=l.getText();if(f){var d=p(l,r.lang);if(c.has(d))continue;a.push({lang:d,value:f}),c.add(d)}}}catch(e){u.e(e)}finally{u.f()}return c.size>0?a:void 0},exporter:function(n,r,i){var a,o=s(r);try{for(o.s();!(a=o.n()).done;){var c=a.value,u=c.value;if(u){var l=f(e||n.getNamespace(),t,i.namespace,n);c.lang!==i.lang&&l.setAttribute("xml:lang",c.lang),l.children.push(u),n.appendChild(l)}}}catch(e){o.e(e)}finally{o.f()}}}},t.multipleChildAlternateLanguageText=function(e,t){return{importer:function(n,r){var i,a=[],o=new Map,c=!1,u=s(h(n,e||n.getNamespace(),t));try{for(u.s();!(i=u.n()).done;){var l=i.value,f=l.getText();if(f){var d=p(l,r.lang),v=o.get(d);v||(v=[],o.set(d,v),a.push({lang:d,value:v})),v.push(f),c=!0}}}catch(e){u.e(e)}finally{u.f()}return c?a:void 0},exporter:function(n,r,i){var a,o=s(r);try{for(o.s();!(a=o.n()).done;){var c,u=a.value,l=s(u.value);try{for(l.s();!(c=l.n()).done;){var p=c.value,d=f(e||n.getNamespace(),t,i.namespace,n);u.lang!==i.lang&&d.setAttribute("xml:lang",u.lang),d.children.push(p),n.appendChild(d)}}catch(e){l.e(e)}finally{l.f()}}}catch(e){o.e(e)}finally{o.f()}}}},t.multipleChildEnum=function(e,t){var n,r=new Map,i=new Map,a=s(t);try{for(a.s();!(n=a.n()).done;){var o=n.value;"string"==typeof o?(r.set(o,o),i.set(o,o)):(r.set(o[1],o[0]),i.set(o[0],o[1]))}}catch(e){a.e(e)}finally{a.f()}return{importer:function(t){var n,i=[],a=s(t.children);try{for(a.s();!(n=a.n()).done;){var o=n.value;"string"!=typeof o&&(o.getNamespace()===(e||t.getNamespace())&&r.has(o.getName())&&i.push(r.get(o.getName())))}}catch(e){a.e(e)}finally{a.f()}return i},exporter:function(t,n){var r,a=s(n);try{for(a.s();!(r=a.n()).done;){var o=r.value;v(t,e,i.get(o))}}catch(e){a.e(e)}finally{a.f()}}}},t.splicePath=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return{importer:function(i,a){var o=i.getChild(t,e||i.getNamespace());if(o){var c,u=[],l=s(o.children);try{for(l.s();!(c=l.n()).done;){var f=c.value;if("string"!=typeof f&&a.registry.getImportKey(f)===n){var p=a.registry.import(f);p&&u.push(p)}}}catch(e){l.e(e)}finally{l.f()}return r?u:u[0]}},exporter:function(r,i,a){var c,u=[],l=s(Array.isArray(i)?i:[i]);try{for(l.s();!(c=l.n()).done;){var f=c.value,p=a.registry.export(n,f,o(o({},a),{},{namespace:e||r.getNamespace()||void 0}));p&&u.push(p)}}catch(e){l.e(e)}finally{l.f()}if(u.length){var d,h=v(r,e||r.getNamespace(),t),m=s(u);try{for(m.s();!(d=m.n()).done;){var g=d.value;h.appendChild(g)}}catch(e){m.e(e)}finally{m.f()}}}}},t.staticValue=function(e){return{exporter:function(){},importer:function(){return e}}},t.childRawElement=function(e,t,n){return{importer:function(r,i){if(!n||i.sanitizers&&i.sanitizers[n]){var a=r.getChild(t,e||r.getNamespace());return a?n?i.sanitizers[n](a.toJSON()):a.toJSON():void 0}},exporter:function(r,i,a){"string"==typeof i&&(i=l.parse("<".concat(t,' xmlns="').concat(e||r.getNamespace(),'">').concat(i,"</").concat(t,">")).toJSON());if(n){if(!a.sanitizers||!a.sanitizers[n])return;i=a.sanitizers[n](i)}i&&r.appendChild(new u.default(i.name,i.attributes,i.children))}}},t.childLanguageRawElement=function(e,t,n){return{importer:function(r,i){if(!n||i.sanitizers&&i.sanitizers[n]){var a,o=h(r,e||r.getNamespace(),t),c=d(o,i),u=s(o);try{for(u.s();!(a=u.n()).done;){var l=a.value;if(p(l,i.lang)===c)return n?i.sanitizers[n](l.toJSON()):l.toJSON()}}catch(e){u.e(e)}finally{u.f()}return o[0]?n?i.sanitizers[n](o[0].toJSON()):o[0].toJSON():void 0}},exporter:function(r,i,a){"string"==typeof i&&(i=l.parse("<".concat(t,' xmlns="').concat(e||r.getNamespace(),'">').concat(i,"</").concat(t,">")).toJSON());if(i&&n){if(!a.sanitizers||!a.sanitizers[n])return;i=a.sanitizers[n](i)}if(i){var o,c=v(r,e||r.getNamespace(),t,a.lang),f=s(i.children);try{for(f.s();!(o=f.n()).done;){var p=o.value;"string"==typeof p?c.appendChild(p):p&&c.appendChild(new u.default(p.name,p.attributes,p.children))}}catch(e){f.e(e)}finally{f.f()}}}}},t.childAlternateLanguageRawElement=function(e,t,n){return{importer:function(r,i){if(!n||i.sanitizers&&i.sanitizers[n]){var a,o=[],c=new Set,u=s(h(r,e||r.getNamespace(),t));try{for(u.s();!(a=u.n()).done;){var l=a.value,f=l.toJSON();if(n&&(f=i.sanitizers[n](f)),f){var d=p(l,i.lang);if(c.has(d))continue;o.push({lang:d,value:f}),c.add(d)}}}catch(e){u.e(e)}finally{u.f()}return c.size>0?o:void 0}},exporter:function(r,i,a){var o,c=s(i);try{for(c.s();!(o=c.n()).done;){var p=o.value,d=p.value;if("string"==typeof d)d=l.parse("<".concat(t,' xmlns="').concat(e||r.getNamespace(),'">').concat(d,"</").concat(t,">")).toJSON();if(d&&n){if(!a.sanitizers||!a.sanitizers[n])continue;d=a.sanitizers[n](d)}if(d){var h=f(e||r.getNamespace(),t,a.namespace,r);r.appendChild(h),p.lang!==a.lang&&h.setAttribute("xml:lang",p.lang);var v,m=s(d.children);try{for(m.s();!(v=m.n()).done;){var g=v.value;"string"==typeof g?h.appendChild(g):h.appendChild(new u.default(g.name,g.attributes,g.children))}}catch(e){m.e(e)}finally{m.f()}}}}catch(e){c.e(e)}finally{c.f()}}}},t.parameterMap=function(e,n,i,a){return{importer:function(r,o){var c,u={},l=h(r,e,n),f=t.attribute(i).importer,p=t.attribute(a).importer,d=s(l);try{for(d.s();!(c=d.n()).done;){var v=c.value;u[f(v,o)]=p(v,o)}}catch(e){d.e(e)}finally{d.f()}return u},exporter:function(o,s,c){for(var u=t.attribute(i).exporter,l=t.attribute(a).exporter,p=e||o.getNamespace(),d=0,h=Object.entries(s);d<h.length;d++){var v=r(h[d],2),m=v[0],g=v[1],y=f(p,n,c.namespace,o);u(y,m,c),s[m]&&l(y,g,c),o.appendChild(y)}}}}}).call(this,n(111).Buffer)},function(e,t,n){"use strict";n(33),n(28),n(197),n(160);var r=n(2),i=n(3),a=n(8),o=n(37),s=n(16);function c(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function l(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 n,r=s(e);if(t){var i=s(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return o(this,n)}}Object.defineProperty(t,"__esModule",{value:!0}),t.parse=void 0;var f=n(1),p=n(42),d=n(167),h=f.__importDefault(n(166)),v=f.__importDefault(n(201));function m(e){return 97<=e&&e<=122||65<=e&&e<=90||58===e||95===e}function g(e){return 192<=e&&e<=214||216<=e&&e<=246||248<=e&&e<=767||880<=e&&e<=893||895<=e&&e<=8191||8204<=e&&e<=8205||8304<=e&&e<=8591||11264<=e&&e<=12271||12289<=e&&e<=55295||65008<=e&&e<=65533||65536<=e&&e<=983039}function y(e){return m(e)||g(e)}function b(e){return m(e)||45===e||46===e||48<=e&&e<=57||183===e||768<=e&&e<=879||8255<=e&&e<=8256||g(e)}function _(e){return 32===e||10===e||13===e||9===e}var w=function(e){a(n,e);var t=l(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r(this,n),(e=t.call(this)).allowComments=!0,e.attributes={},e.state=34,e.tagName="",e.haveDeclaration=!1,e.recordBuffer=[],void 0!==i.allowComments&&(e.allowComments=i.allowComments),e}return i(n,[{key:"write",value:function(e){var t,n=c(e);try{for(n.s();!(t=n.n()).done;){var r=t.value,i=r.codePointAt(0);switch(this.state){case 34:if(60===i){var a=void 0;try{a=d.unescapeXML(this.endRecord())}catch(e){return void this.emit("error",e)}a&&this.emit("text",a),this.transition(31);continue}this.record(r);continue;case 31:if(47===i){this.transition(7);continue}if(33===i){this.transition(24);continue}if(63===i){this.haveDeclaration&&this.restrictedXML(),this.transition(25);continue}if(y(i)){this.transition(30),this.startRecord(r);continue}return this.notWellFormed();case 30:if(b(i)){this.record(r);continue}if(_(i)){this.startTag(),this.transition(32);continue}if(47===i){this.startTag(),this.transition(29);continue}if(62===i){this.startTag(),this.transition(34),this.emit("startElement",this.tagName,this.attributes);continue}return this.notWellFormed();case 29:if(62===i){this.emit("startElement",this.tagName,this.attributes),this.emit("endElement",this.tagName),this.transition(34);continue}return this.notWellFormed();case 33:if(_(i)){this.transition(32);continue}if(47===i){this.transition(29);continue}if(62===i){this.emit("startElement",this.tagName,this.attributes),this.transition(34);continue}return this.notWellFormed();case 32:if(_(i))continue;if(y(i)){this.startRecord(r),this.transition(0);continue}if(47===i){this.transition(29);continue}if(62===i){this.emit("startElement",this.tagName,this.attributes),this.transition(34);continue}return this.notWellFormed();case 7:if(y(i)){this.startRecord(r),this.transition(6);continue}return this.notWellFormed();case 6:if(b(i)){this.record(r);continue}if(_(i)){this.transition(8);continue}if(62===i){var o=this.endRecord();this.emit("endElement",o,this.attributes),this.transition(34);continue}return this.notWellFormed();case 8:if(_(i))continue;if(62===i){var s=this.endRecord();this.emit("endElement",s,this.attributes),this.transition(34);continue}return this.notWellFormed();case 0:if(b(i)){this.record(r);continue}if(61===i){this.addAttribute(),this.transition(4);continue}if(_(i)){this.addAttribute(),this.transition(3);continue}return this.notWellFormed();case 3:if(61===i){this.transition(4);continue}if(_(i))continue;return this.notWellFormed();case 4:if(34===i){this.startRecord(),this.transition(1);continue}if(39===i){this.startRecord(),this.transition(2);continue}if(_(i))continue;return this.notWellFormed();case 1:case 2:if(34===i&&1===this.state||39===i&&2===this.state){var u=this.endRecord();this.attributes[this.attributeName]=d.unescapeXML(u),this.transition(33);continue}if(60===i)return this.notWellFormed();this.record(r);continue;case 24:if(45===i){this.allowComments||this.restrictedXML(),this.transition(23);continue}if(91===i){this.transition(21);continue}return this.notWellFormed();case 23:if(45===i){this.transition(14);continue}return this.notWellFormed();case 14:45===i&&this.transition(12);continue;case 12:45===i?this.transition(11):this.transition(14);continue;case 11:62===i?this.transition(34):this.transition(14);continue;case 25:if(88===i||120===i){this.transition(28);continue}return this.notWellFormed();case 28:if(77===i||109===i){this.transition(27);continue}return this.notWellFormed();case 27:if(76===i||108===i){this.transition(26);continue}return this.notWellFormed();case 26:if(_(i)){this.haveDeclaration=!0,this.transition(15);continue}return this.notWellFormed();case 13:if(62===i){this.transition(34);continue}return this.notWellFormed();case 15:63===i&&this.transition(13);continue;case 21:this.wait(i,67,20);continue;case 20:this.wait(i,68,19);continue;case 19:this.wait(i,65,18);continue;case 18:this.wait(i,84,17);continue;case 17:this.wait(i,65,16);continue;case 16:this.wait(i,91,5);continue;case 5:if(93===i){this.transition(10);continue}this.record(r);continue;case 10:93===i?this.transition(9):(this.record(String.fromCodePoint(93)),this.record(r),this.transition(5));continue;case 9:if(62===i){var l=this.endRecord();l&&this.emit("text",l),this.transition(34)}else this.record(String.fromCodePoint(93)),this.record(String.fromCodePoint(93)),this.record(r),this.transition(5);continue}}}catch(e){n.e(e)}finally{n.f()}}},{key:"end",value:function(e){e&&this.write(e),this.write=function(){}}},{key:"record",value:function(e){this.recordBuffer.push(e)}},{key:"startRecord",value:function(e){this.recordBuffer=[],e&&this.recordBuffer.push(e)}},{key:"endRecord",value:function(){var e=this.recordBuffer;return this.recordBuffer=[],e.join("")}},{key:"startTag",value:function(){this.tagName=this.endRecord(),this.attributes={}}},{key:"addAttribute",value:function(){var e=this.endRecord();if(void 0!==this.attributes[e])return this.notWellFormed();this.attributeName=e,this.attributes[e]=""}},{key:"wait",value:function(e,t,n){if(e!==t)return this.notWellFormed();this.transition(n)}},{key:"transition",value:function(e){this.state=e,34===e&&this.startRecord()}},{key:"notWellFormed",value:function(e){this.emit("error",v.default.notWellFormed(e))}},{key:"restrictedXML",value:function(e){this.emit("error",v.default.restrictedXML(e))}}]),n}(p.EventEmitter);t.parse=function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=new w(r),a=null;if(i.on("text",(function(e){n&&n.children.push(e)})),i.on("startElement",(function(e,r){var i=new h.default(e,r);t||(t=i),n=n?n.appendChild(i):i})),i.on("endElement",(function(e){n?e===n.name?n.parent&&(n=n.parent):i.emit("error",v.default.notWellFormed("b")):i.emit("error",v.default.notWellFormed("a"))})),i.on("error",(function(e){a=e})),i.write(e),i.end(),a)throw a;return t},t.default=w},function(e,t,n){"use strict";n.r(t),function(e,r){n.d(t,"Hash",(function(){return m})),n.d(t,"Hmac",(function(){return Y})),n.d(t,"RTCPeerConnection",(function(){return ne})),n.d(t,"WebSocket",(function(){return te})),n.d(t,"createHash",(function(){return W})),n.d(t,"createHmac",(function(){return Z})),n.d(t,"fetch",(function(){return ee})),n.d(t,"getHashes",(function(){return $})),n.d(t,"randomBytes",(function(){return X}));n(10),n(158),n(9),n(90),n(5),n(21),n(25),n(22),n(74),n(48),n(49),n(50),n(51),n(52),n(53),n(54),n(55),n(56),n(57),n(58),n(59),n(60),n(61),n(62),n(63),n(64),n(65),n(66),n(67),n(68),n(69),n(70),n(24);var i=n(2),a=n.n(i),o=n(3),s=n.n(o),c=n(8),u=n.n(c),l=n(37),f=n.n(l),p=n(16),d=n.n(p),h=n(92);function v(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 n,r=d()(e);if(t){var i=d()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return f()(this,n)}}var m=function(t){u()(r,t);var n=v(r);function r(t,i){var o,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"be";return a()(this,r),(o=n.call(this))._block=e.alloc(t),o._finalSize=i,o._blockSize=t,o._bigEndian="be"===s,o._len=0,o}return s()(r,[{key:"_transform",value:function(e,t,n){var r=null;try{this.update(e,t)}catch(e){r=e}n(r)}},{key:"_flush",value:function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)}},{key:"update",value:function(t,n){"string"==typeof t&&(n=n||"utf8",t=e.from(t,n));for(var r=this._block,i=this._blockSize,a=t.length,o=this._len,s=0;s<a;){for(var c=o%i,u=Math.min(a-s,i-c),l=0;l<u;l++)r[c+l]=t[s+l];s+=u,(o+=u)%i==0&&this._update(r)}return this._len+=a,this}},{key:"digest",value:function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var n=8*this._len;if(n<=4294967295)this._bigEndian?(this._block.writeUInt32BE(0,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)):(this._block.writeUInt32LE(n,this._blockSize-8),this._block.writeUInt32LE(0,this._blockSize-4));else{var r=(4294967295&n)>>>0,i=(n-r)/4294967296;this._bigEndian?(this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(r,this._blockSize-4)):(this._block.writeUInt32LE(r,this._blockSize-8),this._block.writeUInt32LE(i,this._blockSize-4))}this._update(this._block);var a=this._hash();return e?a.toString(e):a}},{key:"_update",value:function(e){throw new Error("_update must be implemented by subclass")}},{key:"_hash",value:function(){throw new Error("_update must be implemented by subclass")}}]),r}(h.Transform);function g(e,t){return e<<t|e>>>32-t}function y(e,t,n,r,i,a,o){return g(e+(t&n|~t&r)+i+a|0,o)+t|0}function b(e,t,n,r,i,a,o){return g(e+(t&r|n&~r)+i+a|0,o)+t|0}function _(e,t,n,r,i,a,o){return g(e+(t^n^r)+i+a|0,o)+t|0}function w(e,t,n,r,i,a,o){return g(e+(n^(t|~r))+i+a|0,o)+t|0}var S=function(t){u()(r,t);var n=v(r);function r(){var e;return a()(this,r),(e=n.call(this,64,56,"le"))._a=1732584193,e._b=4023233417,e._c=2562383102,e._d=271733878,e._m=new Array(16),e}return s()(r,[{key:"_update",value:function(e){for(var t=this._m,n=0;n<16;++n)t[n]=e.readInt32LE(4*n);var r=this._a,i=this._b,a=this._c,o=this._d;r=y(r,i,a,o,t[0],3614090360,7),o=y(o,r,i,a,t[1],3905402710,12),a=y(a,o,r,i,t[2],606105819,17),i=y(i,a,o,r,t[3],3250441966,22),r=y(r,i,a,o,t[4],4118548399,7),o=y(o,r,i,a,t[5],1200080426,12),a=y(a,o,r,i,t[6],2821735955,17),i=y(i,a,o,r,t[7],4249261313,22),r=y(r,i,a,o,t[8],1770035416,7),o=y(o,r,i,a,t[9],2336552879,12),a=y(a,o,r,i,t[10],4294925233,17),i=y(i,a,o,r,t[11],2304563134,22),r=y(r,i,a,o,t[12],1804603682,7),o=y(o,r,i,a,t[13],4254626195,12),a=y(a,o,r,i,t[14],2792965006,17),r=b(r,i=y(i,a,o,r,t[15],1236535329,22),a,o,t[1],4129170786,5),o=b(o,r,i,a,t[6],3225465664,9),a=b(a,o,r,i,t[11],643717713,14),i=b(i,a,o,r,t[0],3921069994,20),r=b(r,i,a,o,t[5],3593408605,5),o=b(o,r,i,a,t[10],38016083,9),a=b(a,o,r,i,t[15],3634488961,14),i=b(i,a,o,r,t[4],3889429448,20),r=b(r,i,a,o,t[9],568446438,5),o=b(o,r,i,a,t[14],3275163606,9),a=b(a,o,r,i,t[3],4107603335,14),i=b(i,a,o,r,t[8],1163531501,20),r=b(r,i,a,o,t[13],2850285829,5),o=b(o,r,i,a,t[2],4243563512,9),a=b(a,o,r,i,t[7],1735328473,14),r=_(r,i=b(i,a,o,r,t[12],2368359562,20),a,o,t[5],4294588738,4),o=_(o,r,i,a,t[8],2272392833,11),a=_(a,o,r,i,t[11],1839030562,16),i=_(i,a,o,r,t[14],4259657740,23),r=_(r,i,a,o,t[1],2763975236,4),o=_(o,r,i,a,t[4],1272893353,11),a=_(a,o,r,i,t[7],4139469664,16),i=_(i,a,o,r,t[10],3200236656,23),r=_(r,i,a,o,t[13],681279174,4),o=_(o,r,i,a,t[0],3936430074,11),a=_(a,o,r,i,t[3],3572445317,16),i=_(i,a,o,r,t[6],76029189,23),r=_(r,i,a,o,t[9],3654602809,4),o=_(o,r,i,a,t[12],3873151461,11),a=_(a,o,r,i,t[15],530742520,16),r=w(r,i=_(i,a,o,r,t[2],3299628645,23),a,o,t[0],4096336452,6),o=w(o,r,i,a,t[7],1126891415,10),a=w(a,o,r,i,t[14],2878612391,15),i=w(i,a,o,r,t[5],4237533241,21),r=w(r,i,a,o,t[12],1700485571,6),o=w(o,r,i,a,t[3],2399980690,10),a=w(a,o,r,i,t[10],4293915773,15),i=w(i,a,o,r,t[1],2240044497,21),r=w(r,i,a,o,t[8],1873313359,6),o=w(o,r,i,a,t[15],4264355552,10),a=w(a,o,r,i,t[6],2734768916,15),i=w(i,a,o,r,t[13],1309151649,21),r=w(r,i,a,o,t[4],4149444226,6),o=w(o,r,i,a,t[11],3174756917,10),a=w(a,o,r,i,t[2],718787259,15),i=w(i,a,o,r,t[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+i|0,this._c=this._c+a|0,this._d=this._d+o|0}},{key:"_hash",value:function(){var t=e.allocUnsafe(16);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t}}]),r}(m),x=[1518500249,1859775393,-1894007588,-899497514];function k(e){return e<<5|e>>>27}function T(e){return e<<30|e>>>2}function j(e,t,n,r){return 0===e?t&n|~t&r:2===e?t&n|t&r|n&r:t^n^r}var E=function(t){u()(r,t);var n=v(r);function r(){var e;return a()(this,r),(e=n.call(this,64,56))._a=1732584193,e._b=4023233417,e._c=2562383102,e._d=271733878,e._e=3285377520,e._w=new Array(80),e}return s()(r,[{key:"_update",value:function(e){var t,n,r=this._w,i=0|this._a,a=0|this._b,o=0|this._c,s=0|this._d,c=0|this._e;for(t=0;t<16;++t)r[t]=e.readInt32BE(4*t);for(;t<80;++t)r[t]=(n=r[t-3]^r[t-8]^r[t-14]^r[t-16])<<1|n>>>31;for(var u=0;u<80;++u){var l=~~(u/20),f=k(i)+j(l,a,o,s)+c+r[u]+x[l]|0;c=s,s=o,o=T(a),a=i,i=f}this._a=i+this._a|0,this._b=a+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0}},{key:"_hash",value:function(){var t=e.allocUnsafe(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t}}]),r}(m),I=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function O(e,t,n){return n^e&(t^n)}function A(e,t,n){return e&t|n&(e|t)}function R(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function N(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function C(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}var P=function(t){u()(r,t);var n=v(r);function r(){var e;return a()(this,r),(e=n.call(this,64,56))._a=1779033703,e._b=3144134277,e._c=1013904242,e._d=2773480762,e._e=1359893119,e._f=2600822924,e._g=528734635,e._h=1541459225,e._w=new Array(64),e}return s()(r,[{key:"_update",value:function(e){var t,n,r=this._w,i=0|this._a,a=0|this._b,o=0|this._c,s=0|this._d,c=0|this._e,u=0|this._f,l=0|this._g,f=0|this._h;for(t=0;t<16;++t)r[t]=e.readInt32BE(4*t);for(;t<64;++t)r[t]=0|(((n=r[t-2])>>>17|n<<15)^(n>>>19|n<<13)^n>>>10)+r[t-7]+C(r[t-15])+r[t-16];for(var p=0;p<64;++p){var d=f+N(c)+O(c,u,l)+I[p]+r[p]|0,h=R(i)+A(i,a,o)|0;f=l,l=u,u=c,c=s+d|0,s=o,o=a,a=i,i=d+h|0}this._a=i+this._a|0,this._b=a+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0,this._f=u+this._f|0,this._g=l+this._g|0,this._h=f+this._h|0}},{key:"_hash",value:function(){var t=e.allocUnsafe(32);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t.writeInt32BE(this._h,28),t}}]),r}(m),L=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function q(e,t,n){return n^e&(t^n)}function F(e,t,n){return e&t|n&(e|t)}function M(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function D(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function B(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function U(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function z(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function J(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function G(e,t){return e>>>0<t>>>0?1:0}var V=function(t){u()(r,t);var n=v(r);function r(){var e;return a()(this,r),(e=n.call(this,128,112))._ah=1779033703,e._bh=3144134277,e._ch=1013904242,e._dh=2773480762,e._eh=1359893119,e._fh=2600822924,e._gh=528734635,e._hh=1541459225,e._al=4089235720,e._bl=2227873595,e._cl=4271175723,e._dl=1595750129,e._el=2917565137,e._fl=725511199,e._gl=4215389547,e._hl=327033209,e._w=new Array(160),e}return s()(r,[{key:"_update",value:function(e){var t,n,r=this._w,i=0|this._ah,a=0|this._bh,o=0|this._ch,s=0|this._dh,c=0|this._eh,u=0|this._fh,l=0|this._gh,f=0|this._hh,p=0|this._al,d=0|this._bl,h=0|this._cl,v=0|this._dl,m=0|this._el,g=0|this._fl,y=0|this._gl,b=0|this._hl,_=0;for(_=0;_<32;_+=2)r[_]=e.readInt32BE(4*_),r[_+1]=e.readInt32BE(4*_+4);for(;_<160;_+=2){var w=r[_-30],S=r[_-30+1],x=B(w,S),k=U(S,w),T=z(w=r[_-4],S=r[_-4+1]),j=J(S,w),E=r[_-14],I=r[_-14+1],O=r[_-32],A=r[_-32+1];t=(t=(t=x+E+G(n=k+I|0,k)|0)+T+G(n=n+j|0,j)|0)+O+G(n=n+A|0,A)|0,r[_]=t,r[_+1]=n}for(var R=0;R<160;R+=2){t=r[R],n=r[R+1];var N=F(i,a,o),C=F(p,d,h),P=M(i,p),V=M(p,i),H=D(c,m),W=D(m,c),Q=L[R],K=L[R+1],Y=q(c,u,l),X=q(m,g,y),$=b+W|0,Z=f+H+G($,b)|0;Z=(Z=(Z=Z+Y+G($=$+X|0,X)|0)+Q+G($=$+K|0,K)|0)+t+G($=$+n|0,n)|0;var ee=V+C|0,te=P+N+G(ee,V)|0;f=l,b=y,l=u,y=g,u=c,g=m,c=s+Z+G(m=v+$|0,v)|0,s=o,v=h,o=a,h=d,a=i,d=p,i=Z+te+G(p=$+ee|0,$)|0}this._al=this._al+p|0,this._bl=this._bl+d|0,this._cl=this._cl+h|0,this._dl=this._dl+v|0,this._el=this._el+m|0,this._fl=this._fl+g|0,this._gl=this._gl+y|0,this._hl=this._hl+b|0,this._ah=this._ah+i+G(this._al,p)|0,this._bh=this._bh+a+G(this._bl,d)|0,this._ch=this._ch+o+G(this._cl,h)|0,this._dh=this._dh+s+G(this._dl,v)|0,this._eh=this._eh+c+G(this._el,m)|0,this._fh=this._fh+u+G(this._fl,g)|0,this._gh=this._gh+l+G(this._gl,y)|0,this._hh=this._hh+f+G(this._hl,b)|0}},{key:"_hash",value:function(){var t=e.allocUnsafe(64);function n(e,n,r){t.writeInt32BE(e,r),t.writeInt32BE(n,r+4)}return n(this._ah,this._al,0),n(this._bh,this._bl,8),n(this._ch,this._cl,16),n(this._dh,this._dl,24),n(this._eh,this._el,32),n(this._fh,this._fl,40),n(this._gh,this._gl,48),n(this._hh,this._hl,56),t}}]),r}(m),H=new Map([["md5",S],["sha-1",E],["sha-256",P],["sha-512",V],["sha1",E],["sha256",P],["sha512",V]]);function W(e){e=e.toLowerCase();var t=H.get(e);if(t)return new t;throw new Error("Unsupported hash algorithm: "+e)}var Q,K=e.alloc(128),Y=function(t){u()(r,t);var n=v(r);function r(t,i){var o;a()(this,r),o=n.call(this),"string"==typeof i&&(i=e.from(i));var s="sha512"===t?128:64;o._alg=t,i.length>s?i=W(t).update(i).digest():i.length<s&&(i=e.concat([i,K],s)),o._ipad=e.alloc(s),o._opad=e.alloc(s);for(var c=0;c<s;c++)o._ipad[c]=54^i[c],o._opad[c]=92^i[c];return o._hash=W(t).update(o._ipad),o}return s()(r,[{key:"_transform",value:function(e,t,n){var r;try{this.update(e,t)}catch(e){r=e}finally{n(r)}}},{key:"_flush",value:function(e){var t;try{this.push(this._final())}catch(e){t=e}e(t)}},{key:"_final",value:function(){var e=this._hash.digest();return W(this._alg).update(this._opad).update(e).digest()}},{key:"update",value:function(e,t){return this._hash.update(e,t),this}},{key:"digest",value:function(t){var n=this._final()||e.alloc(0);return t?n.toString(t):n}}]),r}(h.Transform);function X(t){var n=new Uint8Array(t);return t>0&&(Q.crypto||Q.msCrypto).getRandomValues(n),e.from(n.buffer)}function $(){return["sha-1","sha-256","sha-512","md5"]}function Z(e,t){return new Y(e.toLowerCase(),t)}"undefined"!=typeof window?Q=window:void 0!==r&&(Q=r);var ee=fetch,te=WebSocket,ne=Q.RTCPeerConnection}.call(this,n(111).Buffer,n(79))},function(e,t,n){"use strict";n(133),n(19),n(9),n(30),n(28),n(5),n(21),n(22),n(27),n(24);var r=n(4),i=n(0);n(40);var a=n(83),o=n(14),s=n(2),c=n(3),u=n(43),l=n(77),f=n(8),p=n(37),d=n(16);function h(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return v(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return v(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function y(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 n,r=d(e);if(t){var i=d(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return p(this,n)}}Object.defineProperty(t,"__esModule",{value:!0});var b=n(1),_=b.__importStar(n(17)),w=n(102),S=n(112),x=n(169),k=n(206),T=function(e){f(b,e);var t,n,o,p,v,m=y(b);function b(e){var t;return s(this,b),(t=m.call(this,e)).bitrateLimit=0,t.candidateBuffer=[],t.transportType=S.NS_JINGLE_ICE_UDP_1,t.restartingIce=!1,t.usingRelay=!1,t.maxRelayBandwidth=e.maxRelayBandwidth,t.pc=t.parent.createPeerConnection(u(t),g(g({},e.config),{},{iceServers:e.iceServers})),t.pc.oniceconnectionstatechange=function(){t.onIceStateChange()},t.pc.onicecandidate=function(e){e.candidate?t.onIceCandidate(e):t.onIceEndOfCandidates()},t.restrictRelayBandwidth(),t}return c(b,[{key:"end",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"success",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.pc.close(),l(d(b.prototype),"end",this).call(this,e,t)}},{key:"restartIce",value:(v=a(i.mark((function e(){var t=this;return i.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.isInitiator){e.next=2;break}return e.abrupt("return");case 2:return void 0!==this._maybeRestartingIce&&clearTimeout(this._maybeRestartingIce),this.restartingIce=!0,e.prev=4,e.next=7,this.processLocal("restart-ice",a(i.mark((function e(){var n,r;return i.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.pc.createOffer({iceRestart:!0});case 2:return n=e.sent,r=x.importFromSDP(n.sdp),t.send(w.JingleAction.TransportInfo,{contents:r.media.map((function(e){return{creator:w.JingleSessionRole.Initiator,name:e.mid,transport:k.convertIntermediateToTransport(e,t.transportType)}})),sid:t.sid}),e.next=7,t.pc.setLocalDescription(n);case 7:case"end":return e.stop()}}),e)}))));case 7:e.next=13;break;case 9:e.prev=9,e.t0=e.catch(4),this._log("error","Could not create WebRTC offer",e.t0),this.end(w.JingleReasonCondition.FailedTransport,!0);case 13:case"end":return e.stop()}}),e,this,[[4,9]])}))),function(){return v.apply(this,arguments)})},{key:"setMaximumBitrate",value:(p=a(i.mark((function e(t){var n;return i.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.maximumBitrate&&(t=Math.min(t,this.maximumBitrate)),this.currentBitrate=t,(n=this.pc.getSenders().find((function(e){return!!e.track&&"video"===e.track.kind})))&&n.getParameters){e.next=5;break}return e.abrupt("return");case 5:return e.prev=5,e.next=8,this.processLocal("set-bitrate",a(i.mark((function e(){var r;return i.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(r=n.getParameters()).encodings&&r.encodings.length||(r.encodings=[{}]),0===t?delete r.encodings[0].maxBitrate:r.encodings[0].maxBitrate=t,e.next=5,n.setParameters(r);case 5:case"end":return e.stop()}}),e)}))));case 8:e.next=13;break;case 10:e.prev=10,e.t0=e.catch(5),this._log("error","Set maximumBitrate failed",e.t0);case 13:case"end":return e.stop()}}),e,this,[[5,10]])}))),function(e){return p.apply(this,arguments)})},{key:"onTransportInfo",value:(o=a(i.mark((function e(t,n){var o,s,c,u,l,f,p,d,v,m,g,y,b,S,T,j=this;return i.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t.contents&&t.contents[0]&&t.contents[0].transport.gatheringComplete)){e.next=18;break}if(o={sdpMid:t.contents[0].name,candidate:""},e.prev=2,"stable"!==this.pc.signalingState){e.next=8;break}return e.next=6,this.pc.addIceCandidate(o);case 6:e.next=9;break;case 8:this.candidateBuffer.push(o);case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(2),this._log("debug","Could not add null end-of-candidate");case 14:return e.prev=14,n(),e.finish(14);case 17:return e.abrupt("return");case 18:if(!this.pc.remoteDescription){e.next=51;break}if(s=this.pc.remoteDescription,c=x.importFromSDP(s.sdp),u=c.media.find((function(e){return e.mid===t.contents[0].name})),l=u.iceParameters.usernameFragment,!(f=t.contents[0].transport.usernameFragment)||l===f){e.next=51;break}p=h(t.contents.entries());try{for(p.s();!(d=p.n()).done;)v=r(d.value,2),m=v[0],g=v[1],y=g.transport,c.media[m].iceParameters={password:y.password,usernameFragment:y.usernameFragment},c.media[m].candidates=[]}catch(e){p.e(e)}finally{p.f()}return e.prev=27,e.next=30,this.pc.setRemoteDescription({type:s.type,sdp:x.exportToSDP(c)});case 30:return e.next=32,this.processBufferedCandidates();case 32:if("offer"!==s.type){e.next=42;break}return e.next=35,this.pc.createAnswer();case 35:return b=e.sent,e.next=38,this.pc.setLocalDescription(b);case 38:S=x.importFromSDP(b.sdp),this.send(w.JingleAction.TransportInfo,{contents:S.media.map((function(e){return{creator:w.JingleSessionRole.Initiator,name:e.mid,transport:k.convertIntermediateToTransport(e,j.transportType)}})),sid:this.sid}),e.next=43;break;case 42:this.restartingIce=!1;case 43:e.next=51;break;case 45:return e.prev=45,e.t1=e.catch(27),this._log("error","Could not do remote ICE restart",e.t1),n(e.t1),this.end(w.JingleReasonCondition.FailedTransport),e.abrupt("return");case 51:return T=(t.contents||[]).map((function(e){var t=e.name,n=(e.transport.candidates||[]).map(function(){var e=a(i.mark((function e(n){var r;return i.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=_.writeCandidate(k.convertCandidateToIntermediate(n)),!j.pc.remoteDescription||"stable"!==j.pc.signalingState){e.next=12;break}return e.prev=2,e.next=5,j.pc.addIceCandidate({sdpMid:t,candidate:r});case 5:e.next=10;break;case 7:e.prev=7,e.t0=e.catch(2),j._log("error","Could not add ICE candidate",e.t0);case 10:e.next=13;break;case 12:j.candidateBuffer.push({sdpMid:t,candidate:r});case 13:case"end":return e.stop()}}),e,null,[[2,7]])})));return function(t){return e.apply(this,arguments)}}());return Promise.all(n)})),e.prev=52,e.next=55,Promise.all(T);case 55:n(),e.next=62;break;case 58:e.prev=58,e.t2=e.catch(52),this._log("error","Could not process transport-info: ".concat(e.t2)),n(e.t2);case 62:case"end":return e.stop()}}),e,this,[[2,11,14,17],[27,45],[52,58]])}))),function(e,t){return o.apply(this,arguments)})},{key:"onSessionAccept",value:(n=a(i.mark((function e(t,n){var r,a;return i.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.state="active",r=k.convertRequestToIntermediate(t,this.peerRole),a=x.exportToSDP(r),e.prev=3,e.next=6,this.pc.setRemoteDescription({type:"answer",sdp:a});case 6:return e.next=8,this.processBufferedCandidates();case 8:this.parent.emit("accepted",this,void 0),n(),e.next=16;break;case 12:e.prev=12,e.t0=e.catch(3),this._log("error","Could not process WebRTC answer: ".concat(e.t0)),n({condition:"general-error"});case 16:case"end":return e.stop()}}),e,this,[[3,12]])}))),function(e,t){return n.apply(this,arguments)})},{key:"onSessionTerminate",value:function(e,t){this._log("info","Terminating session"),this.pc.close(),l(d(b.prototype),"end",this).call(this,e.reason,!0),t()}},{key:"onIceCandidate",value:function(e){if(e.candidate&&e.candidate.candidate){var t=_.parseCandidate(e.candidate.candidate),n={contents:[{creator:w.JingleSessionRole.Initiator,name:e.candidate.sdpMid,transport:{candidates:[k.convertIntermediateToCandidate(t)],transportType:this.transportType,usernameFragment:t.usernameFragment}}]};this._log("info","Discovered new ICE candidate",n),this.send(w.JingleAction.TransportInfo,n)}}},{key:"onIceEndOfCandidates",value:function(){this._log("info","ICE end of candidates");var e=x.importFromSDP(this.pc.localDescription.sdp).media[0];this.send(w.JingleAction.TransportInfo,{contents:[{creator:w.JingleSessionRole.Initiator,name:e.mid,transport:{gatheringComplete:!0,transportType:this.transportType,usernameFragment:e.iceParameters.usernameFragment}}]})}},{key:"onIceStateChange",value:function(){switch(this.pc.iceConnectionState){case"checking":this.connectionState="connecting";break;case"completed":case"connected":this.connectionState="connected";break;case"disconnected":if("stable"===this.pc.signalingState?this.connectionState="interrupted":this.connectionState="disconnected",this.restartingIce)return void this.end(w.JingleReasonCondition.FailedTransport);this.maybeRestartIce();break;case"failed":if("failed"===this.connectionState||this.restartingIce)return void this.end(w.JingleReasonCondition.FailedTransport);this.connectionState="failed",this.restartIce();break;case"closed":this.connectionState="disconnected",this.restartingIce?this.end(w.JingleReasonCondition.FailedTransport):this.end()}}},{key:"processBufferedCandidates",value:(t=a(i.mark((function e(){var t,n,r;return i.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=h(this.candidateBuffer),e.prev=1,t.s();case 3:if((n=t.n()).done){e.next=15;break}return r=n.value,e.prev=5,e.next=8,this.pc.addIceCandidate(r);case 8:e.next=13;break;case 10:e.prev=10,e.t0=e.catch(5),this._log("error","Could not add ICE candidate",e.t0);case 13:e.next=3;break;case 15:e.next=20;break;case 17:e.prev=17,e.t1=e.catch(1),t.e(e.t1);case 20:return e.prev=20,t.f(),e.finish(20);case 23:this.candidateBuffer=[];case 24:case"end":return e.stop()}}),e,this,[[1,17,20,23],[5,10]])}))),function(){return t.apply(this,arguments)})},{key:"restrictRelayBandwidth",value:function(){var e=this;this.pc.addEventListener("iceconnectionstatechange",a(i.mark((function t(){var n,r,a,o,s,c,u;return i.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("completed"===e.pc.iceConnectionState||"connected"===e.pc.iceConnectionState){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,e.pc.getStats();case 4:if((n=t.sent).forEach((function(e){"transport"===e.type&&(r=n.get(e.selectedCandidatePairId))})),r||n.forEach((function(e){"candidate-pair"===e.type&&e.selected&&(r=e)})),r){t.next=9;break}return t.abrupt("return");case 9:a=!1,o="",s="",r.remoteCandidateId&&(c=n.get(r.remoteCandidateId))&&(s=c.candidateType),r.localCandidateId&&(u=n.get(r.localCandidateId))&&(o=u.candidateType),"relay"!==o&&"relay"!==s||(a=!0),e.usingRelay=a,e.parent.emit("iceConnectionType",e,{localCandidateType:o,relayed:a,remoteCandidateType:s}),a&&void 0!==e.maxRelayBandwidth&&(e.maximumBitrate=e.maxRelayBandwidth,e.currentBitrate?e.setMaximumBitrate(Math.min(e.currentBitrate,e.maximumBitrate)):e.setMaximumBitrate(e.maximumBitrate));case 18:case"end":return t.stop()}}),t)}))))}},{key:"maybeRestartIce",value:function(){var e=this;this.isInitiator&&(void 0!==this._maybeRestartingIce&&clearTimeout(this._maybeRestartingIce),this._maybeRestartingIce=setTimeout((function(){e._maybeRestartingIce=void 0,"disconnected"===e.pc.iceConnectionState&&e.restartIce()}),2e3))}}]),b}(b.__importDefault(n(207)).default);t.default=T},function(e,t,n){"use strict";function r(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){c=!0,o=e},f:function(){try{s||null==n.return||n.return()}finally{if(c)throw o}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n(82),n(30),n(28),n(5),n(25),n(99),Object.defineProperty(t,"__esModule",{value:!0}),t.convertRequestToIntermediate=t.convertContentToIntermediate=t.convertIntermediateToRequest=t.convertIntermediateToTransport=t.convertCandidateToIntermediate=t.convertIntermediateToCandidate=t.convertIntermediateToApplication=void 0;var a=n(102),o=n(112);function s(e,t){var n=e.rtpParameters,i=e.rtcpParameters||{},s=e.rtpEncodingParameters||[],c=!1;s&&s.length&&(c=!!s[0].ssrc);var u,l={applicationType:o.NS_JINGLE_RTP_1,codecs:[],headerExtensions:[],media:e.kind,rtcpMux:i.mux,rtcpReducedSize:i.reducedSize,sourceGroups:[],sources:[],ssrc:c?s[0].ssrc.toString():void 0,streams:[]},f=r(n.headerExtensions||[]);try{for(f.s();!(u=f.n()).done;){var p=u.value,d={id:p.id,uri:p.uri};p.direction&&"sendrecv"!==p.direction&&(d.senders=a.directionToSenders(t,p.direction)),l.headerExtensions.push(d)}}catch(e){f.e(e)}finally{f.f()}i.ssrc&&i.cname&&(l.sources=[{parameters:{cname:i.cname},ssrc:i.ssrc.toString()}]),c&&s[0]&&s[0].rtx&&(l.sourceGroups=[{semantics:"FID",sources:[s[0].ssrc.toString(),s[0].rtx.ssrc.toString()]}]);var h,v=r(e.streams||[]);try{for(v.s();!(h=v.n()).done;){var m=h.value;l.streams.push({id:m.stream,track:m.track})}}catch(e){v.e(e)}finally{v.f()}var g,y=r(n.codecs||[]);try{for(y.s();!(g=y.n()).done;){var b=g.value,_={channels:b.channels,clockRate:b.clockRate,id:b.payloadType.toString(),name:b.name,parameters:b.parameters,rtcpFeedback:b.rtcpFeedback};b.maxptime&&(_.maxptime=b.maxptime),b.parameters&&b.parameters.ptime&&(_.ptime=parseInt(b.parameters.ptime,10)),l.codecs.push(_)}}catch(e){y.e(e)}finally{y.f()}return l}function c(e){return{component:"rtp"===e.component?1:"rtcp"===e.component?2:e.component,foundation:e.foundation,generation:void 0,id:void 0,ip:e.ip,network:void 0,port:e.port,priority:e.priority,protocol:e.protocol,relatedAddress:e.relatedAddress,relatedPort:e.relatedPort,tcpType:e.tcpType,type:e.type}}function u(e){return{address:e.ip,component:1===e.component?"rtp":2===e.component?"rtcp":e.component,foundation:e.foundation,ip:e.ip,port:e.port,priority:e.priority,protocol:e.protocol,relatedAddress:e.relatedAddress,relatedPort:e.relatedPort,tcpType:e.tcpType,type:e.type}}function l(e,t){var n=e.iceParameters,i=e.dtlsParameters,a={candidates:[],transportType:t};n&&(a.usernameFragment=n.usernameFragment,a.password=n.password,n.iceLite&&(a.iceLite=!0)),i&&(a.fingerprints=i.fingerprints.map((function(t){return{algorithm:t.algorithm,setup:e.setup,value:t.value}}))),e.sctp&&(a.sctp=e.sctp);var o,s=r(e.candidates||[]);try{for(s.s();!(o=s.n()).done;){var u=o.value;a.candidates.push(c(u))}}catch(e){s.e(e)}finally{s.f()}return a}function f(e,t){var n=e.application||{},i=e.transport,s=n&&n.applicationType===o.NS_JINGLE_RTP_1,c={direction:a.sendersToDirection(t,e.senders),kind:n.media||"application",mid:e.name,protocol:s?"UDP/TLS/RTP/SAVPF":"UDP/DTLS/SCTP"};if(s){if(c.rtcpParameters={compound:!n.rtcpReducedSize,mux:n.rtcpMux,reducedSize:n.rtcpReducedSize},n.sources&&n.sources.length){var l=n.sources[0];c.rtcpParameters.ssrc=parseInt(l.ssrc,10),l.parameters&&(c.rtcpParameters.cname=l.parameters.cname)}if(c.rtpParameters={codecs:[],fecMechanisms:[],headerExtensions:[],rtcp:[]},n.streams){c.streams=[];var f,p=r(n.streams);try{for(p.s();!(f=p.n()).done;){var d=f.value;c.streams.push({stream:d.id,track:d.track})}}catch(e){p.e(e)}finally{p.f()}}if(n.ssrc&&(c.rtpEncodingParameters=[{ssrc:parseInt(n.ssrc,10)}],n.sourceGroups&&n.sourceGroups.length)){var h=n.sourceGroups[0];c.rtpEncodingParameters[0].rtx={ssrc:parseInt(h.sources[1],10)}}var v,m=!1,g=!1,y=r(n.codecs||[]);try{for(y.s();!(v=y.n()).done;){var b,_=v.value,w=_.parameters||{},S=[],x=r(_.rtcpFeedback||[]);try{for(x.s();!(b=x.n()).done;){var k=b.value;S.push({parameter:k.parameter,type:k.type})}}catch(e){x.e(e)}finally{x.f()}if("red"===_.name||"ulpfec"===_.name){m=m||"red"===_.name,g=g||"ulpfec"===_.name;var T=_.name.toUpperCase();c.rtpParameters.fecMechanisms.includes(T)||c.rtpParameters.fecMechanisms.push(T)}c.rtpParameters.codecs.push({channels:_.channels,clockRate:_.clockRate,name:_.name,numChannels:_.channels,parameters:w,payloadType:parseInt(_.id,10),rtcpFeedback:S})}}catch(e){y.e(e)}finally{y.f()}var j,E=r(n.headerExtensions||[]);try{for(E.s();!(j=E.n()).done;){var I=j.value;c.rtpParameters.headerExtensions.push({direction:a.sendersToDirection(t,I.senders||"both"),id:I.id,uri:I.uri})}}catch(e){E.e(e)}finally{E.f()}}if(i){if(i.usernameFragment&&i.password&&(c.iceParameters={password:i.password,usernameFragment:i.usernameFragment},i.iceLite&&(c.iceParameters.iceLite=!0)),i.fingerprints&&i.fingerprints.length){c.dtlsParameters={fingerprints:[],role:"auto"};var O,A=r(i.fingerprints);try{for(A.s();!(O=A.n()).done;){var R=O.value;c.dtlsParameters.fingerprints.push({algorithm:R.algorithm,value:R.value})}}catch(e){A.e(e)}finally{A.f()}i.sctp&&(c.sctp=i.sctp),c.setup=i.fingerprints[0].setup}c.candidates=(i.candidates||[]).map(u)}return c}t.convertIntermediateToApplication=s,t.convertIntermediateToCandidate=c,t.convertCandidateToIntermediate=u,t.convertIntermediateToTransport=l,t.convertIntermediateToRequest=function(e,t,n){return{contents:e.media.map((function(e){return{application:"audio"===e.kind||"video"===e.kind?s(e,t):{applicationType:"datachannel",protocol:e.protocol},creator:a.JingleSessionRole.Initiator,name:e.mid,senders:a.directionToSenders(t,e.direction),transport:l(e,n)}})),groups:e.groups?e.groups.map((function(e){return{contents:e.mids,semantics:e.semantics}})):[]}},t.convertContentToIntermediate=f,t.convertRequestToIntermediate=function(e,t){var n,i={groups:[],media:[]},a=r(e.groups||[]);try{for(a.s();!(n=a.n()).done;){var o=n.value;i.groups.push({mids:o.contents,semantics:o.semantics})}}catch(e){a.e(e)}finally{a.f()}var s,c=r(e.contents||[]);try{for(c.s();!(s=c.n()).done;){var u=s.value;i.media.push(f(u,t))}}catch(e){c.e(e)}finally{c.f()}return i}},function(e,t,n){"use strict";n(10),n(9),n(28),n(5),n(21),n(91),n(22),n(24);var r=n(0);n(40);var i=n(83),a=n(2),o=n(3);Object.defineProperty(t,"__esModule",{value:!0});var s=n(121),c=n(102),u=n(285),l={condition:c.StanzaErrorCondition.BadRequest},f={condition:c.StanzaErrorCondition.FeatureNotImplemented,jingleError:c.JingleErrorCondition.UnsupportedInfo,type:"modify"},p=function(){function e(t){var n=this;a(this,e),this.parent=t.parent,this.sid=t.sid||u.uuid(),this.peerID=t.peerID,this.role=t.initiator?c.JingleSessionRole.Initiator:c.JingleSessionRole.Responder,this._sessionState="starting",this._connectionState="starting",this.pendingApplicationTypes=t.applicationTypes||[],this.pendingAction=void 0,this.processingQueue=s.priorityQueue(function(){var e=i(r.mark((function e(t,i){var a,o,s,u;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("ended"!==n.state){e.next=4;break}return"local"===t.type&&t.reject&&t.reject(new Error("Session ended")),i&&i(),e.abrupt("return");case 4:if("local"!==t.type){e.next=18;break}return n._log("debug","Processing local action:",t.name),e.prev=6,e.next=9,t.handler();case 9:a=e.sent,t.resolve(a),e.next=16;break;case 13:e.prev=13,e.t0=e.catch(6),t.reject(e.t0);case 16:return i&&i(),e.abrupt("return");case 18:return o=t.action,s=t.changes,u=t.cb,n._log("debug","Processing remote action:",o),e.abrupt("return",new Promise((function(e){var t=function(t,n){u(t,n),i&&i(),e()};switch(o){case c.JingleAction.ContentAccept:return n.onContentAccept(s,t);case c.JingleAction.ContentAdd:return n.onContentAdd(s,t);case c.JingleAction.ContentModify:return n.onContentModify(s,t);case c.JingleAction.ContentReject:return n.onContentReject(s,t);case c.JingleAction.ContentRemove:return n.onContentRemove(s,t);case c.JingleAction.DescriptionInfo:return n.onDescriptionInfo(s,t);case c.JingleAction.SecurityInfo:return n.onSecurityInfo(s,t);case c.JingleAction.SessionAccept:return n.onSessionAccept(s,t);case c.JingleAction.SessionInfo:return n.onSessionInfo(s,t);case c.JingleAction.SessionInitiate:return n.onSessionInitiate(s,t);case c.JingleAction.SessionTerminate:return n.onSessionTerminate(s,t);case c.JingleAction.TransportAccept:return n.onTransportAccept(s,t);case c.JingleAction.TransportInfo:return n.onTransportInfo(s,t);case c.JingleAction.TransportReject:return n.onTransportReject(s,t);case c.JingleAction.TransportReplace:return n.onTransportReplace(s,t);default:n._log("error","Invalid or unsupported action: "+o),t({condition:c.StanzaErrorCondition.BadRequest})}})));case 21:case"end":return e.stop()}}),e,null,[[6,13]])})));return function(t,n){return e.apply(this,arguments)}}(),1)}return o(e,[{key:"send",value:function(e,t){(t=t||{}).sid=this.sid,t.action=e,new Set([c.JingleAction.ContentAccept,c.JingleAction.ContentAdd,c.JingleAction.ContentModify,c.JingleAction.ContentReject,c.JingleAction.ContentRemove,c.JingleAction.SessionAccept,c.JingleAction.SessionInitiate,c.JingleAction.TransportAccept,c.JingleAction.TransportReject,c.JingleAction.TransportReplace]).has(e)?this.pendingAction=e:this.pendingAction=void 0,this.parent.signal(this,{id:u.uuid(),jingle:t,to:this.peerID,type:"set"})}},{key:"processLocal",value:function(e,t){var n=this;return new Promise((function(r,i){n.processingQueue.push({handler:t,name:e,reject:i,resolve:r,type:"local"},1)}))}},{key:"process",value:function(e,t,n){this.processingQueue.push({action:e,cb:n,changes:t,type:"remote"},2)}},{key:"start",value:function(e,t){this._log("error","Can not start base sessions"),this.end("unsupported-applications",!0)}},{key:"accept",value:function(e,t){this._log("error","Can not accept base sessions"),this.end("unsupported-applications")}},{key:"cancel",value:function(){this.end("cancel")}},{key:"decline",value:function(){this.end("decline")}},{key:"end",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"success",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.state="ended",this.processingQueue.kill(),"string"==typeof e&&(e={condition:e}),t||this.send("session-terminate",{reason:e}),this.parent.emit("terminated",this,e),this.parent.forgetSession(this)}},{key:"_log",value:function(e,t){if(this.parent){var n,r;t=this.sid+": "+t;for(var i=arguments.length,a=new Array(i>2?i-2:0),o=2;o<i;o++)a[o-2]=arguments[o];(n=this.parent).emit.apply(n,["log",e,t].concat(a)),(r=this.parent).emit.apply(r,["log:"+e,t].concat(a))}}},{key:"onSessionInitiate",value:function(e,t){t()}},{key:"onSessionAccept",value:function(e,t){t()}},{key:"onSessionTerminate",value:function(e,t){this.end(e.reason,!0),t()}},{key:"onSessionInfo",value:function(e,t){e.info?t(f):t()}},{key:"onSecurityInfo",value:function(e,t){t(f)}},{key:"onDescriptionInfo",value:function(e,t){t(f)}},{key:"onTransportInfo",value:function(e,t){t(f)}},{key:"onContentAdd",value:function(e,t){t(),this.send(c.JingleAction.ContentReject,{reason:{condition:c.JingleReasonCondition.FailedApplication,text:"content-add is not supported"}})}},{key:"onContentAccept",value:function(e,t){t(l)}},{key:"onContentReject",value:function(e,t){t(l)}},{key:"onContentModify",value:function(e,t){t(l)}},{key:"onContentRemove",value:function(e,t){t(l)}},{key:"onTransportReplace",value:function(e,t){t(),this.send(c.JingleAction.TransportReject,{reason:{condition:c.JingleReasonCondition.FailedTransport,text:"transport-replace is not supported"}})}},{key:"onTransportAccept",value:function(e,t){t(l)}},{key:"onTransportReject",value:function(e,t){t(l)}},{key:"isInitiator",get:function(){return this.role===c.JingleSessionRole.Initiator}},{key:"peerRole",get:function(){return this.isInitiator?c.JingleSessionRole.Responder:c.JingleSessionRole.Initiator}},{key:"state",get:function(){return this._sessionState},set:function(e){e!==this._sessionState&&(this._log("info","Changing session state to: "+e),this._sessionState=e,this.parent&&this.parent.emit("sessionState",this,e))}},{key:"connectionState",get:function(){return this._connectionState},set:function(e){e!==this._connectionState&&(this._log("info","Changing connection state to: "+e),this._connectionState=e,this.parent&&this.parent.emit("connectionState",this,e))}}]),e}();t.default=p},function(e,t,n){"use strict";n(10),n(133),n(19),n(82),n(9),n(28),n(71),n(5),n(21),n(15),n(99),n(22),n(38),n(39),n(27),n(24);var r=n(4),i=n(14),a=n(0);n(40);var o=n(83),s=n(2),c=n(3);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}Object.defineProperty(t,"__esModule",{value:!0}),t.Client=void 0;var f=n(316),p=n(319),d=n(405);n(377);var h=n(378),v=n(380),m=n(400),g=n(404),y=n(101),b=n(142),_=n(170),w={ping:g.Ping,reconnector:m.Reconnector,notifications:h.Notifications,webrtcSessions:v.WebrtcExtension};var S={connected:"session:started",_connected:"connected"},x=function(){function e(t){var n=this;s(this,e),this.connected=!1,this.connecting=!1,this.autoReconnect=!0,this.hardReconnectCount=0,this.reconnectLeakTime=6e5,this.deadChannels=[],this.backgroundAssistantMode=!1,this.isGuest=!1,this.http=new b.HttpClient;var r=p.createClient({});r.sasl.mechanisms.find((function(e){return"ANONYMOUS"===e.name})).priority=0,r.sasl.mechanisms=r.sasl.mechanisms.sort((function(e,t){return t.priority-e.priority})),this._stanzaio=r,this.reconnectOnNoLongerSubscribed=!1!==t.reconnectOnNoLongerSubscribed,this.config={host:t.host,apiHost:t.apiHost||t.host.replace("wss://streaming.",""),authToken:t.authToken,jwt:t.jwt,jid:t.jid,jidResource:t.jidResource,channelId:null,appName:t.appName,appVersion:t.appVersion},this.backgroundAssistantMode=this.checkIsBackgroundAssistant(),this.isGuest=!this.backgroundAssistantMode&&!t.authToken;var i=t.authToken||"",c="https://api.".concat(this.config.apiHost,"/api/v2/diagnostics/trace");this.backgroundAssistantMode&&(i=t.jwt,c+="/backgroundassistant"),this.logger=new d.Logger({accessToken:i,url:c,uploadDebounceTime:1e3,initializeServerLogging:!this.isGuest&&!t.optOutOfWebrtcStatsTelemetry,appVersion:e.version,appName:"streaming-client",logLevel:this.config.logLevel||"info",logger:t.logger||console,formatters:t.logFormatters,originAppName:t.appName,originAppVersion:t.appVersion,originAppId:t.appId}),this.on("disconnected",(function(){if(n._stanzaio.transport||n.connecting)n.logger.info("disconnected event received, but reconnection is in progress");else{n.connected=!1,n._ping.stop(),n.logger.info("Streaming client disconnected.");var e=n.config.channelId;n.autoReconnect&&!n.deadChannels.includes(e)&&(n.logger.info("Streaming client disconnected unexpectedly. Attempting to auto reconnect",{channelId:e}),n._reconnector.start())}})),this.on("connected",function(){var e=o(a.mark((function e(t){return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n.streamId=t.resource,n._ping.start(),n.connected=!0,n._reconnector.stop(),n.connecting=!1;case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),this.on("session:end",(function(){n._ping.stop()})),this._stanzaio.on("sasl",(function(e){if("failure"===e.type){if(n.logger.error("Authentication failed connecting to streaming service",l(l({},e),{},{channelId:n.config.channelId})),"temporary-auth-failure"!==e.condition)return n._ping.stop(),n.autoReconnect=!1,n.disconnect();n.logger.info("Temporary auth failure, continuing reconnect attempts")}})),this.on("notify:no_longer_subscribed",(function(e){n._ping.stop();var t=e.eventBody.channelId;if(n.deadChannels.push(t),t===n.config.channelId){if(n.hardReconnectCount>=2)return n.logger.error("no_longer_subscribed has been called ".concat(n.hardReconnectCount," times and the threshold is ").concat(2,", not attempting to reconnect\n channelId: ").concat(n.config.channelId)),void n.cleanupLeakTimer();if(n.logger.info("no_longer_subscribed received"),n.reconnectOnNoLongerSubscribed)return n.logger.info("streaming client attempting to reconnect on a new channel"),n.hardReconnectCount++,n.leakyReconnectTimer||(n.leakyReconnectTimer=setInterval((function(){n.hardReconnectCount>0?n.hardReconnectCount--:n.cleanupLeakTimer()}),n.reconnectLeakTime)),n._reconnector.hardReconnect();n.logger.info("`reconnectOnNoLongerSubscribed` is false, not attempting to reconnect streaming client")}else n.logger.warn("received no_longer_subscribed event for a non active channelId")})),Object.keys(w).forEach((function(e){var i=new w[e](n,t);"function"==typeof i.handleIq&&r.on("iq",i.handleIq.bind(i)),"function"==typeof i.handleMessage&&r.on("message",i.handleMessage.bind(i)),i.tokenBucket||(i.tokenBucket=new f.TokenBucket(20,25,1e3),i.tokenBucket.content=25),"function"==typeof i.on&&i.on("send",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return i.tokenBucket.removeTokens(1,(function(){return!0===t?r.sendMessage(e):r.sendIQ(e)}))})),n[e]=i.expose,n["_".concat(e)]=i}))}var t;return c(e,[{key:"checkIsBackgroundAssistant",value:function(){if(this.config.jwt){var e=y.parseJwt(this.config.jwt);return e&&"urn:purecloud:screenrecording"===e.iss}return!1}},{key:"cleanupLeakTimer",value:function(){clearInterval(this.leakyReconnectTimer),this.leakyReconnectTimer=null}},{key:"on",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i,a;S[e]?(i=this._stanzaio).on.apply(i,[S[e]].concat(n)):(a=this._stanzaio).on.apply(a,[e].concat(n));return this}},{key:"once",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i,a;S[e]?(i=this._stanzaio).once.apply(i,[S[e]].concat(n)):(a=this._stanzaio).once.apply(a,[e].concat(n));return this}},{key:"off",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i,a;S[e]?(i=this._stanzaio).off.apply(i,[S[e]].concat(n)):(a=this._stanzaio).off.apply(a,[e].concat(n));return this}},{key:"disconnect",value:function(){var e=this;return this.logger.info("streamingClient.disconnect was called"),this.stopServerLogging(),y.timeoutPromise((function(t){e._stanzaio.once("disconnected",t),e.autoReconnect=!1,e._reconnector.stop(new Error("Cancelling reconnect")),e.http.stopAllRetries(),e._stanzaio.disconnect()}),1e3,"disconnecting streaming service")}},{key:"reconnect",value:function(){var e=this;return this.logger.info("streamingClient.reconnect was called"),y.timeoutPromise((function(t){e._stanzaio.once("session:started",t),e.autoReconnect=!0,e._stanzaio.disconnect()}),1e4,"reconnecting streaming service")}},{key:"connect",value:(t=o(a.mark((function e(){var t,n,r,i=arguments;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=i.length>0&&void 0!==i[0]?i[0]:{keepTryingOnFailure:!1,retryDelay:5e3},e.prev=1,this.logger.info("streamingClient.connect was called"),e.next=5,this._tryToConnect();case 5:e.next=18;break;case 7:if(e.prev=7,e.t0=e.catch(1),r=!0,e.t0 instanceof _.AxiosError&&[401,403].includes((null===(n=e.t0.response)||void 0===n?void 0:n.status)||0)&&(r=!1),!t.keepTryingOnFailure||!this.autoReconnect){e.next=17;break}if(!r){e.next=16;break}return e.next=15,y.wait(t.retryDelay);case 15:return e.abrupt("return",this.connect(t));case 16:this.logger.error("Streaming client received and error that it can't recover from and will not attempt to reconnect",{error:e.t0});case 17:throw e.t0;case 18:case"end":return e.stop()}}),e,this,[[1,7]])}))),function(){return t.apply(this,arguments)})},{key:"_tryToConnect",value:function(){var e,t=this;if(this.startServerLogging(),this.connecting=!0,this.config.jwt)return y.timeoutPromise((function(e){t.once("connected",e);var n=function(e){var t,n=y.parseJwt(e.jwt);try{t=n.data.jid.split("@")[1].replace("conference.","")}catch(e){throw new Error("failed to parse jid")}var r=e.host.replace(/\/$/,"");return{transports:{websocket:"".concat(r,"/stream/jwt/").concat(e.jwt)},server:t,sasl:["anonymous"]}}(t.config);t._stanzaio.updateConfig(n),t._stanzaio.connect()}),1e4,"connecting to streaming service with jwt").catch((function(e){return t.connecting=!1,Promise.reject(e)}));if(this.config.jid)e=Promise.resolve(this.config.jid);else{var n={method:"get",host:this.config.apiHost,authToken:this.config.authToken,logger:this.logger};e=this.http.requestApiWithRetry("users/me",n).promise.then((function(e){return e.data.chat.jabberId}))}var i={method:"post",host:this.config.apiHost,authToken:this.config.authToken,logger:this.logger},a=this.http.requestApiWithRetry("notifications/channels?connectionType=streaming",i).promise.then((function(e){return e.data.id}));return Promise.all([e,a]).then((function(e){var n=r(e,2),i=n[0],a=n[1];return t.config.jid=i,t.config.channelId=a,t.autoReconnect=!0,y.timeoutPromise((function(e){t.once("connected",e);var n,r,i=(n=t.config,r=n.host.replace(/\/$/,""),{jid:n.jid,resource:n.jidResource,credentials:{username:n.jid,password:"authKey:".concat(n.authToken)},transports:{websocket:"".concat(r,"/stream/channels/").concat(n.channelId)}});t._stanzaio.updateConfig(i),t._stanzaio.connect()}),1e4,"connecting to streaming service",{jid:i,channelId:a})})).catch((function(e){return t.connecting=!1,Promise.reject(e)}))}},{key:"stopServerLogging",value:function(){this.logger.sendAllLogsInstantly(),this.logger.stopServerLogging(),this._webrtcSessions.flushStats()}},{key:"startServerLogging",value:function(){this.logger.startServerLogging()}},{key:"setAccessToken",value:function(e){this.config.authToken=e,this.logger.setAccessToken(e)}},{key:"version",get:function(){return e.version}}],[{key:"extend",value:function(e,t){if(w[e])throw new Error("Cannot register already existing namespace ".concat(e));w[e]=t}},{key:"version",get:function(){return"14.2.1"}}]),e}();t.Client=x},function(e,t,n){var r=n(16),i=n(199),a=n(332),o=n(333);function s(t){var n="function"==typeof Map?new Map:void 0;return e.exports=s=function(e){if(null===e||!a(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return o(e,arguments,r(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),i(t,e)},s(t)}e.exports=s},function(e,t,n){var r=n(32),i=n(11),a=n(172);e.exports=!r&&!i((function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){var r=n(12),i=n(173),a=r["__core-js_shared__"]||i("__core-js_shared__",{});e.exports=a},function(e,t,n){var r=n(34),i=n(213),a=n(93),o=n(35);e.exports=function(e,t){for(var n=i(t),s=o.f,c=a.f,u=0;u<n.length;u++){var l=n[u];r(e,l)||s(e,l,c(t,l))}}},function(e,t,n){var r=n(95),i=n(104),a=n(177),o=n(36);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(o(e)),n=a.f;return n?t.concat(n(e)):t}},function(e,t,n){var r=n(12);e.exports=r},function(e,t,n){var r=n(34),i=n(84),a=n(125).indexOf,o=n(124);e.exports=function(e,t){var n,s=i(e),c=0,u=[];for(n in s)!r(o,n)&&r(s,n)&&u.push(n);for(;t.length>c;)r(s,n=t[c++])&&(~a(u,n)||u.push(n));return u}},function(e,t,n){var r=n(179);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(e,t,n){var r=n(95);e.exports=r("navigator","userAgent")||""},function(e,t,n){var r=n(32),i=n(35),a=n(36),o=n(129);e.exports=r?Object.defineProperties:function(e,t){a(e);for(var n,r=o(t),s=r.length,c=0;s>c;)i.f(e,n=r[c++],t[n]);return e}},function(e,t,n){var r=n(95);e.exports=r("document","documentElement")},function(e,t,n){var r=n(84),i=n(104).f,a={}.toString,o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return o&&"[object Window]"==a.call(e)?function(e){try{return i(e)}catch(e){return o.slice()}}(e):i(r(e))}},function(e,t,n){var r=n(18);t.f=r},function(e,t,n){"use strict";var r=n(72).forEach,i=n(106),a=n(80),o=i("forEach"),s=a("forEach");e.exports=o&&s?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},function(e,t,n){"use strict";var r=n(224).IteratorPrototype,i=n(107),a=n(103),o=n(88),s=n(130),c=function(){return this};e.exports=function(e,t,n){var u=t+" Iterator";return e.prototype=i(r,{next:a(1,n)}),o(e,u,!1,!0),s[u]=c,e}},function(e,t,n){"use strict";var r,i,a,o=n(116),s=n(76),c=n(34),u=n(18),l=n(94),f=u("iterator"),p=!1;[].keys&&("next"in(a=[].keys())?(i=o(o(a)))!==Object.prototype&&(r=i):p=!0),null==r&&(r={}),l||c(r,f)||s(r,f,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:p}},function(e,t,n){var r=n(11);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},function(e,t,n){"use strict";var r=n(12),i=n(32),a=n(227),o=n(76),s=n(150),c=n(11),u=n(109),l=n(96),f=n(29),p=n(228),d=n(302),h=n(116),v=n(131),m=n(104).f,g=n(35).f,y=n(185),b=n(88),_=n(86),w=_.get,S=_.set,x=r.ArrayBuffer,k=x,T=r.DataView,j=T&&T.prototype,E=Object.prototype,I=r.RangeError,O=d.pack,A=d.unpack,R=function(e){return[255&e]},N=function(e){return[255&e,e>>8&255]},C=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},P=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},L=function(e){return O(e,23,4)},q=function(e){return O(e,52,8)},F=function(e,t){g(e.prototype,t,{get:function(){return w(this)[t]}})},M=function(e,t,n,r){var i=p(n),a=w(e);if(i+t>a.byteLength)throw I("Wrong index");var o=w(a.buffer).bytes,s=i+a.byteOffset,c=o.slice(s,s+t);return r?c:c.reverse()},D=function(e,t,n,r,i,a){var o=p(n),s=w(e);if(o+t>s.byteLength)throw I("Wrong index");for(var c=w(s.buffer).bytes,u=o+s.byteOffset,l=r(+i),f=0;f<t;f++)c[u+f]=l[a?f:t-f-1]};if(a){if(!c((function(){x(1)}))||!c((function(){new x(-1)}))||c((function(){return new x,new x(1.5),new x(NaN),"ArrayBuffer"!=x.name}))){for(var B,U=(k=function(e){return u(this,k),new x(p(e))}).prototype=x.prototype,z=m(x),J=0;z.length>J;)(B=z[J++])in k||o(k,B,x[B]);U.constructor=k}v&&h(j)!==E&&v(j,E);var G=new T(new k(2)),V=j.setInt8;G.setInt8(0,2147483648),G.setInt8(1,2147483649),!G.getInt8(0)&&G.getInt8(1)||s(j,{setInt8:function(e,t){V.call(this,e,t<<24>>24)},setUint8:function(e,t){V.call(this,e,t<<24>>24)}},{unsafe:!0})}else k=function(e){u(this,k,"ArrayBuffer");var t=p(e);S(this,{bytes:y.call(new Array(t),0),byteLength:t}),i||(this.byteLength=t)},T=function(e,t,n){u(this,T,"DataView"),u(e,k,"DataView");var r=w(e).byteLength,a=l(t);if(a<0||a>r)throw I("Wrong offset");if(a+(n=void 0===n?r-a:f(n))>r)throw I("Wrong length");S(this,{buffer:e,byteLength:n,byteOffset:a}),i||(this.buffer=e,this.byteLength=n,this.byteOffset=a)},i&&(F(k,"byteLength"),F(T,"buffer"),F(T,"byteLength"),F(T,"byteOffset")),s(T.prototype,{getInt8:function(e){return M(this,1,e)[0]<<24>>24},getUint8:function(e){return M(this,1,e)[0]},getInt16:function(e){var t=M(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=M(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(e){return P(M(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return P(M(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return A(M(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return A(M(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(e,t){D(this,1,e,R,t)},setUint8:function(e,t){D(this,1,e,R,t)},setInt16:function(e,t){D(this,2,e,N,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,t){D(this,2,e,N,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){D(this,4,e,C,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){D(this,4,e,C,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){D(this,4,e,L,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){D(this,8,e,q,t,arguments.length>2?arguments[2]:void 0)}});b(k,"ArrayBuffer"),b(T,"DataView"),e.exports={ArrayBuffer:k,DataView:T}},function(e,t){e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},function(e,t,n){var r=n(96),i=n(29);e.exports=function(e){if(void 0===e)return 0;var t=r(e),n=i(t);if(t!==n)throw RangeError("Wrong length or index");return n}},function(e,t,n){var r=n(12);e.exports=r.Promise},function(e,t,n){var r=n(36);e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(t){var a=e.return;throw void 0!==a&&r(a.call(e)),t}}},function(e,t,n){var r=n(217);e.exports=/(iphone|ipod|ipad).*applewebkit/i.test(r)},function(e,t,n){var r,i,a,o,s,c,u,l,f=n(12),p=n(93).f,d=n(87),h=n(189).set,v=n(231),m=f.MutationObserver||f.WebKitMutationObserver,g=f.process,y=f.Promise,b="process"==d(g),_=p(f,"queueMicrotask"),w=_&&_.value;w||(r=function(){var e,t;for(b&&(e=g.domain)&&e.exit();i;){t=i.fn,i=i.next;try{t()}catch(e){throw i?o():a=void 0,e}}a=void 0,e&&e.enter()},b?o=function(){g.nextTick(r)}:m&&!v?(s=!0,c=document.createTextNode(""),new m(r).observe(c,{characterData:!0}),o=function(){c.data=s=!s}):y&&y.resolve?(u=y.resolve(void 0),l=u.then,o=function(){l.call(u,r)}):o=function(){h.call(f,r)}),e.exports=w||function(e){var t={fn:e,next:void 0};a&&(a.next=t),i||(i=t,o()),a=t}},function(e,t,n){var r=n(36),i=n(31),a=n(234);e.exports=function(e,t){if(r(e),i(t)&&t.constructor===e)return t;var n=a.f(e);return(0,n.resolve)(t),n.promise}},function(e,t,n){"use strict";var r=n(114),i=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new i(e)}},function(e,t,n){"use strict";var r=n(11);function i(e,t){return RegExp(e,t)}t.UNSUPPORTED_Y=r((function(){var e=i("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),t.BROKEN_CARET=r((function(){var e=i("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},function(e,t,n){var r=n(85),i="["+n(237)+"]",a=RegExp("^"+i+i+"*"),o=RegExp(i+i+"*$"),s=function(e){return function(t){var n=String(r(t));return 1&e&&(n=n.replace(a,"")),2&e&&(n=n.replace(o,"")),n}};e.exports={start:s(1),end:s(2),trim:s(3)}},function(e,t){e.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},function(e,t,n){"use strict";var r=n(7),i=n(12),a=n(32),o=n(306),s=n(26),c=n(226),u=n(109),l=n(103),f=n(76),p=n(29),d=n(228),h=n(239),v=n(113),m=n(34),g=n(128),y=n(31),b=n(107),_=n(131),w=n(104).f,S=n(308),x=n(72).forEach,k=n(117),T=n(35),j=n(93),E=n(86),I=n(156),O=E.get,A=E.set,R=T.f,N=j.f,C=Math.round,P=i.RangeError,L=c.ArrayBuffer,q=c.DataView,F=s.NATIVE_ARRAY_BUFFER_VIEWS,M=s.TYPED_ARRAY_TAG,D=s.TypedArray,B=s.TypedArrayPrototype,U=s.aTypedArrayConstructor,z=s.isTypedArray,J=function(e,t){for(var n=0,r=t.length,i=new(U(e))(r);r>n;)i[n]=t[n++];return i},G=function(e,t){R(e,t,{get:function(){return O(this)[t]}})},V=function(e){var t;return e instanceof L||"ArrayBuffer"==(t=g(e))||"SharedArrayBuffer"==t},H=function(e,t){return z(e)&&"symbol"!=typeof t&&t in e&&String(+t)==String(t)},W=function(e,t){return H(e,t=v(t,!0))?l(2,e[t]):N(e,t)},Q=function(e,t,n){return!(H(e,t=v(t,!0))&&y(n)&&m(n,"value"))||m(n,"get")||m(n,"set")||n.configurable||m(n,"writable")&&!n.writable||m(n,"enumerable")&&!n.enumerable?R(e,t,n):(e[t]=n.value,e)};a?(F||(j.f=W,T.f=Q,G(B,"buffer"),G(B,"byteOffset"),G(B,"byteLength"),G(B,"length")),r({target:"Object",stat:!0,forced:!F},{getOwnPropertyDescriptor:W,defineProperty:Q}),e.exports=function(e,t,n){var a=e.match(/\d+$/)[0]/8,s=e+(n?"Clamped":"")+"Array",c="get"+e,l="set"+e,v=i[s],m=v,g=m&&m.prototype,T={},j=function(e,t){R(e,t,{get:function(){return function(e,t){var n=O(e);return n.view[c](t*a+n.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,r){var i=O(e);n&&(r=(r=C(r))<0?0:r>255?255:255&r),i.view[l](t*a+i.byteOffset,r,!0)}(this,t,e)},enumerable:!0})};F?o&&(m=t((function(e,t,n,r){return u(e,m,s),I(y(t)?V(t)?void 0!==r?new v(t,h(n,a),r):void 0!==n?new v(t,h(n,a)):new v(t):z(t)?J(m,t):S.call(m,t):new v(d(t)),e,m)})),_&&_(m,D),x(w(v),(function(e){e in m||f(m,e,v[e])})),m.prototype=g):(m=t((function(e,t,n,r){u(e,m,s);var i,o,c,l=0,f=0;if(y(t)){if(!V(t))return z(t)?J(m,t):S.call(m,t);i=t,f=h(n,a);var v=t.byteLength;if(void 0===r){if(v%a)throw P("Wrong length");if((o=v-f)<0)throw P("Wrong length")}else if((o=p(r)*a)+f>v)throw P("Wrong length");c=o/a}else c=d(t),i=new L(o=c*a);for(A(e,{buffer:i,byteOffset:f,byteLength:o,length:c,view:new q(i)});l<c;)j(e,l++)})),_&&_(m,D),g=m.prototype=b(B)),g.constructor!==m&&f(g,"constructor",m),M&&f(g,M,s),T[s]=m,r({global:!0,forced:m!=v,sham:!F},T),"BYTES_PER_ELEMENT"in m||f(m,"BYTES_PER_ELEMENT",a),"BYTES_PER_ELEMENT"in g||f(g,"BYTES_PER_ELEMENT",a),k(s)}):e.exports=function(){}},function(e,t,n){var r=n(307);e.exports=function(e,t){var n=r(e);if(n%t)throw RangeError("Wrong offset");return n}},function(e,t,n){"use strict";var r=n(84),i=n(96),a=n(29),o=n(106),s=n(80),c=Math.min,u=[].lastIndexOf,l=!!u&&1/[1].lastIndexOf(1,-0)<0,f=o("lastIndexOf"),p=s("indexOf",{ACCESSORS:!0,1:0}),d=l||!f||!p;e.exports=d?function(e){if(l)return u.apply(this,arguments)||0;var t=r(this),n=a(t.length),o=n-1;for(arguments.length>1&&(o=c(o,i(arguments[1]))),o<0&&(o=n+o);o>=0;o--)if(o in t&&t[o]===e)return o||0;return-1}:u},function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(e,t,n){var r=n(11),i=n(18),a=n(94),o=i("iterator");e.exports=!r((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n="";return e.pathname="c%20d",t.forEach((function(e,r){t.delete("b"),n+=r+e})),a&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[o]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host}))},function(e,t,n){"use strict";var r=n(32),i=n(11),a=n(129),o=n(177),s=n(144),c=n(46),u=n(122),l=Object.assign,f=Object.defineProperty;e.exports=!l||i((function(){if(r&&1!==l({b:1},l(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol();return e[n]=7,"abcdefghijklmnopqrst".split("").forEach((function(e){t[e]=e})),7!=l({},e)[n]||"abcdefghijklmnopqrst"!=a(l({},t)).join("")}))?function(e,t){for(var n=c(e),i=arguments.length,l=1,f=o.f,p=s.f;i>l;)for(var d,h=u(arguments[l++]),v=f?a(h).concat(f(h)):a(h),m=v.length,g=0;m>g;)d=v[g++],r&&!p.call(h,d)||(n[d]=h[d]);return n}:l},function(e,t,n){"use strict";var r=n(108),i=n(46),a=n(230),o=n(188),s=n(29),c=n(147),u=n(132);e.exports=function(e){var t,n,l,f,p,d,h=i(e),v="function"==typeof this?this:Array,m=arguments.length,g=m>1?arguments[1]:void 0,y=void 0!==g,b=u(h),_=0;if(y&&(g=r(g,m>2?arguments[2]:void 0,2)),null==b||v==Array&&o(b))for(n=new v(t=s(h.length));t>_;_++)d=y?g(h[_],_):h[_],c(n,_,d);else for(p=(f=b.call(h)).next,n=new v;!(l=p.call(f)).done;_++)d=y?a(f,g,[l.value,_],!0):l.value,c(n,_,d);return n.length=_,n}},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}},function(e,t){e.exports=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(e,t,n){n(115)("toStringTag")},function(e,t,n){var r=n(12);n(88)(r.JSON,"JSON",!0)},function(e,t,n){n(88)(Math,"Math",!0)},function(e,t,n){var r=n(7),i=n(12),a=n(232),o=n(87),s=i.process,c="process"==o(s);r({global:!0,enumerable:!0,noTargetGet:!0},{queueMicrotask:function(e){var t=c&&s.domain;a(t?t.bind(e):e)}})},function(e,t,n){(function(t){n(157);var r=function(e,t,n,r){if(this.bucketSize=e,this.tokensPerInterval=t,"string"==typeof n)switch(n){case"sec":case"second":this.interval=1e3;break;case"min":case"minute":this.interval=6e4;break;case"hr":case"hour":this.interval=36e5;break;case"day":this.interval=864e5;break;default:throw new Error("Invaid interval "+n)}else this.interval=n;this.parentBucket=r,this.content=0,this.lastDrip=+new Date};r.prototype={bucketSize:1,tokensPerInterval:1,interval:1e3,parentBucket:null,content:0,lastDrip:0,removeTokens:function(e,n){var r=this;return this.bucketSize?e>this.bucketSize?(t.nextTick(n.bind(null,"Requested tokens "+e+" exceeds bucket size "+this.bucketSize,null)),!1):(this.drip(),e>this.content?i():this.parentBucket?this.parentBucket.removeTokens(e,(function(t,a){return t?n(t,null):e>r.content?i():(r.content-=e,void n(null,Math.min(a,r.content)))})):(this.content-=e,t.nextTick(n.bind(null,null,this.content)),!0)):(t.nextTick(n.bind(null,null,e,Number.POSITIVE_INFINITY)),!0);function i(){var t=Math.ceil((e-r.content)*(r.interval/r.tokensPerInterval));return setTimeout((function(){r.removeTokens(e,n)}),t),!1}},tryRemoveTokens:function(e){return!this.bucketSize||!(e>this.bucketSize)&&(this.drip(),!(e>this.content)&&(!(this.parentBucket&&!this.parentBucket.tryRemoveTokens(e))&&(this.content-=e,!0)))},drip:function(){if(this.tokensPerInterval){var e=+new Date,t=Math.max(e-this.lastDrip,0);this.lastDrip=e;var n=t*(this.tokensPerInterval/this.interval);this.content=Math.min(this.content+n,this.bucketSize)}else this.content=this.bucketSize}},e.exports=r}).call(this,n(100))},function(e,t,n){"use strict";var r=n(7),i=n(12),a=n(126),o=n(45),s=n(196),c=n(187),u=n(109),l=n(31),f=n(11),p=n(151),d=n(88),h=n(156);e.exports=function(e,t,n){var v=-1!==e.indexOf("Map"),m=-1!==e.indexOf("Weak"),g=v?"set":"add",y=i[e],b=y&&y.prototype,_=y,w={},S=function(e){var t=b[e];o(b,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(m&&!l(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return m&&!l(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(m&&!l(e))&&t.call(this,0===e?0:e)}:function(e,n){return t.call(this,0===e?0:e,n),this})};if(a(e,"function"!=typeof y||!(m||b.forEach&&!f((function(){(new y).entries().next()})))))_=n.getConstructor(t,e,v,g),s.REQUIRED=!0;else if(a(e,!0)){var x=new _,k=x[g](m?{}:-0,1)!=x,T=f((function(){x.has(1)})),j=p((function(e){new y(e)})),E=!m&&f((function(){for(var e=new y,t=5;t--;)e[g](t,t);return!e.has(-0)}));j||((_=t((function(t,n){u(t,_,e);var r=h(new y,t,_);return null!=n&&c(n,r[g],r,v),r}))).prototype=b,b.constructor=_),(T||E)&&(S("delete"),S("has"),v&&S("get")),(E||k)&&S(g),m&&b.clear&&delete b.clear}return w[e]=_,r({global:!0,forced:_!=y},w),d(_,e),m||n.setStrong(_,e,v),_}},function(e,t,n){var r=n(11);e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},function(e,t,n){"use strict";var r=n(35).f,i=n(107),a=n(150),o=n(108),s=n(109),c=n(187),u=n(183),l=n(117),f=n(32),p=n(196).fastKey,d=n(86),h=d.set,v=d.getterFor;e.exports={getConstructor:function(e,t,n,u){var l=e((function(e,r){s(e,l,t),h(e,{type:t,index:i(null),first:void 0,last:void 0,size:0}),f||(e.size=0),null!=r&&c(r,e[u],e,n)})),d=v(t),m=function(e,t,n){var r,i,a=d(e),o=g(e,t);return o?o.value=n:(a.last=o={index:i=p(t,!0),key:t,value:n,previous:r=a.last,next:void 0,removed:!1},a.first||(a.first=o),r&&(r.next=o),f?a.size++:e.size++,"F"!==i&&(a.index[i]=o)),e},g=function(e,t){var n,r=d(e),i=p(t);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key==t)return n};return a(l.prototype,{clear:function(){for(var e=d(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,f?e.size=0:this.size=0},delete:function(e){var t=d(this),n=g(this,e);if(n){var r=n.next,i=n.previous;delete t.index[n.index],n.removed=!0,i&&(i.next=r),r&&(r.previous=i),t.first==n&&(t.first=r),t.last==n&&(t.last=i),f?t.size--:this.size--}return!!n},forEach:function(e){for(var t,n=d(this),r=o(e,arguments.length>1?arguments[1]:void 0,3);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!g(this,e)}}),a(l.prototype,n?{get:function(e){var t=g(this,e);return t&&t.value},set:function(e,t){return m(this,0===e?0:e,t)}}:{add:function(e){return m(this,e=0===e?0:e,e)}}),f&&r(l.prototype,"size",{get:function(){return d(this).size}}),l},setStrong:function(e,t,n){var r=t+" Iterator",i=v(t),a=v(r);u(e,t,(function(e,t){h(this,{type:r,target:e,state:i(e),kind:t,last:void 0})}),(function(){for(var e=a(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),l(t)}}},function(e,t,n){var r=n(32),i=n(129),a=n(84),o=n(144).f,s=function(e){return function(t){for(var n,s=a(t),c=i(s),u=c.length,l=0,f=[];u>l;)n=c[l++],r&&!o.call(s,n)||f.push(e?[n,s[n]]:s[n]);return f}};e.exports={entries:s(!0),values:s(!1)}},function(e,t,n){"use strict";var r,i=n(7),a=n(93).f,o=n(29),s=n(193),c=n(85),u=n(194),l=n(94),f="".endsWith,p=Math.min,d=u("endsWith");i({target:"String",proto:!0,forced:!!(l||d||(r=a(String.prototype,"endsWith"),!r||r.writable))&&!d},{endsWith:function(e){var t=String(c(this));s(e);var n=arguments.length>1?arguments[1]:void 0,r=o(t.length),i=void 0===n?r:p(o(n),r),a=String(e);return f?f.call(t,a,i):t.slice(i-a.length,i)===a}})},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},function(e,t){(function(t){e.exports=t}).call(this,{})},function(e,t,n){"use strict";(function(t,r){n(10),n(9),n(33),n(20),n(81),n(135),n(5),n(74),n(48),n(49),n(50),n(51),n(52),n(53),n(54),n(55),n(56),n(57),n(58),n(59),n(60),n(61),n(62),n(63),n(64),n(65),n(66),n(67),n(68),n(69),n(70);var i=n(162);e.exports=b;var a,o=n(339);b.ReadableState=y;n(42).EventEmitter;var s=function(e,t){return e.listeners(t).length},c=n(261),u=n(163).Buffer,l=t.Uint8Array||function(){};var f=Object.create(n(138));f.inherits=n(139);var p=n(340),d=void 0;d=p&&p.debuglog?p.debuglog("stream"):function(){};var h,v=n(341),m=n(262);f.inherits(b,c);var g=["error","close","destroy","pause","resume"];function y(e,t){e=e||{};var r=t instanceof(a=a||n(119));this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var i=e.highWaterMark,o=e.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(o||0===o)?o:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new v,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(h||(h=n(264).StringDecoder),this.decoder=new h(e.encoding),this.encoding=e.encoding)}function b(e){if(a=a||n(119),!(this instanceof b))return new b(e);this._readableState=new y(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),c.call(this)}function _(e,t,n,r,i){var a,o=e._readableState;null===t?(o.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,x(e)}(e,o)):(i||(a=function(e,t){var n;r=t,u.isBuffer(r)||r instanceof l||"string"==typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk"));var r;return n}(o,t)),a?e.emit("error",a):o.objectMode||t&&t.length>0?("string"==typeof t||o.objectMode||Object.getPrototypeOf(t)===u.prototype||(t=function(e){return u.from(e)}(t)),r?o.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):w(e,o,t,!0):o.ended?e.emit("error",new Error("stream.push() after EOF")):(o.reading=!1,o.decoder&&!n?(t=o.decoder.write(t),o.objectMode||0!==t.length?w(e,o,t,!1):T(e,o)):w(e,o,t,!1))):r||(o.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(o)}function w(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&x(e)),T(e,t)}Object.defineProperty(b.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),b.prototype.destroy=m.destroy,b.prototype._undestroy=m.undestroy,b.prototype._destroy=function(e,t){this.push(null),t(e)},b.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof e&&((t=t||r.defaultEncoding)!==r.encoding&&(e=u.from(e,t),t=""),n=!0),_(this,e,t,!1,n)},b.prototype.unshift=function(e){return _(this,e,null,!0,!1)},b.prototype.isPaused=function(){return!1===this._readableState.flowing},b.prototype.setEncoding=function(e){return h||(h=n(264).StringDecoder),this._readableState.decoder=new h(e),this._readableState.encoding=e,this};function S(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>=8388608?e=8388608:(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 x(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(d("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?i.nextTick(k,e):k(e))}function k(e){d("emit readable"),e.emit("readable"),O(e)}function T(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(j,e,t))}function j(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(d("maybeReadMore read 0"),e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}function E(e){d("readable nexttick read 0"),e.read(0)}function I(e,t){t.reading||(d("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),O(e),t.flowing&&!t.reading&&e.read(0)}function O(e){var t=e._readableState;for(d("flow",t.flowing);t.flowing&&null!==e.read(););}function A(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=function(e,t,n){var r;e<t.head.data.length?(r=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):r=e===t.head.data.length?t.shift():n?function(e,t){var n=t.head,r=1,i=n.data;e-=i.length;for(;n=n.next;){var a=n.data,o=e>a.length?a.length:e;if(o===a.length?i+=a:i+=a.slice(0,e),0===(e-=o)){o===a.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=a.slice(o));break}++r}return t.length-=r,i}(e,t):function(e,t){var n=u.allocUnsafe(e),r=t.head,i=1;r.data.copy(n),e-=r.data.length;for(;r=r.next;){var a=r.data,o=e>a.length?a.length:e;if(a.copy(n,n.length-e,0,o),0===(e-=o)){o===a.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=a.slice(o));break}++i}return t.length-=i,n}(e,t);return r}(e,t.buffer,t.decoder),n);var n}function R(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,i.nextTick(N,t,e))}function N(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function C(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}b.prototype.read=function(e){d("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return d("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?R(this):x(this),null;if(0===(e=S(e,t))&&t.ended)return 0===t.length&&R(this),null;var r,i=t.needReadable;return d("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&d("length less than watermark",i=!0),t.ended||t.reading?d("reading or ended",i=!1):i&&(d("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=S(n,t))),null===(r=e>0?A(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&R(this)),null!==r&&this.emit("data",r),r},b.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},b.prototype.pipe=function(e,t){var n=this,a=this._readableState;switch(a.pipesCount){case 0:a.pipes=e;break;case 1:a.pipes=[a.pipes,e];break;default:a.pipes.push(e)}a.pipesCount+=1,d("pipe count=%d opts=%j",a.pipesCount,t);var c=(!t||!1!==t.end)&&e!==r.stdout&&e!==r.stderr?l:b;function u(t,r){d("onunpipe"),t===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,d("cleanup"),e.removeListener("close",g),e.removeListener("finish",y),e.removeListener("drain",f),e.removeListener("error",m),e.removeListener("unpipe",u),n.removeListener("end",l),n.removeListener("end",b),n.removeListener("data",v),p=!0,!a.awaitDrain||e._writableState&&!e._writableState.needDrain||f())}function l(){d("onend"),e.end()}a.endEmitted?i.nextTick(c):n.once("end",c),e.on("unpipe",u);var f=function(e){return function(){var t=e._readableState;d("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,O(e))}}(n);e.on("drain",f);var p=!1;var h=!1;function v(t){d("ondata"),h=!1,!1!==e.write(t)||h||((1===a.pipesCount&&a.pipes===e||a.pipesCount>1&&-1!==C(a.pipes,e))&&!p&&(d("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,h=!0),n.pause())}function m(t){d("onerror",t),b(),e.removeListener("error",m),0===s(e,"error")&&e.emit("error",t)}function g(){e.removeListener("finish",y),b()}function y(){d("onfinish"),e.removeListener("close",g),b()}function b(){d("unpipe"),n.unpipe(e)}return n.on("data",v),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?o(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",m),e.once("close",g),e.once("finish",y),e.emit("pipe",n),a.flowing||(d("pipe resume"),n.resume()),e},b.prototype.unpipe=function(e){var t=this._readableState,n={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,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a<i;a++)r[a].emit("unpipe",this,n);return this}var o=C(t.pipes,e);return-1===o||(t.pipes.splice(o,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n)),this},b.prototype.on=function(e,t){var n=c.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&x(this):i.nextTick(E,this))}return n},b.prototype.addListener=b.prototype.on,b.prototype.resume=function(){var e=this._readableState;return e.flowing||(d("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(I,e,t))}(this,e)),this},b.prototype.pause=function(){return d("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(d("pause"),this._readableState.flowing=!1,this.emit("pause")),this},b.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on("end",(function(){if(d("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){(d("wrapped data"),n.decoder&&(i=n.decoder.write(i)),n.objectMode&&null==i)||(n.objectMode||i&&i.length)&&(t.push(i)||(r=!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 a=0;a<g.length;a++)e.on(g[a],this.emit.bind(this,g[a]));return this._read=function(t){d("wrapped _read",t),r&&(r=!1,e.resume())},this},Object.defineProperty(b.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),b._fromList=A}).call(this,n(79),n(100))},function(e,t,n){e.exports=n(42).EventEmitter},function(e,t,n){"use strict";var r=n(162);function i(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var n=this,a=this._readableState&&this._readableState.destroyed,o=this._writableState&&this._writableState.destroyed;return a||o?(t?t(e):!e||this._writableState&&this._writableState.errorEmitted||r.nextTick(i,this,e),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?(r.nextTick(i,n,e),n._writableState&&(n._writableState.errorEmitted=!0)):t&&t(e)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},function(e,t,n){"use strict";(function(t,r,i){n(47),n(73),n(345),n(23),n(9),n(20),n(346),n(5),n(74),n(48),n(49),n(50),n(51),n(52),n(53),n(54),n(55),n(56),n(57),n(58),n(59),n(60),n(61),n(62),n(63),n(64),n(65),n(66),n(67),n(68),n(69),n(70),n(161);var a=n(162);function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;e.entry=null;for(;r;){var i=r.callback;t.pendingcb--,i(n),r=r.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}e.exports=y;var s,c=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?r:a.nextTick;y.WritableState=g;var u=Object.create(n(138));u.inherits=n(139);var l={deprecate:n(347)},f=n(261),p=n(163).Buffer,d=i.Uint8Array||function(){};var h,v=n(262);function m(){}function g(e,t){s=s||n(119),e=e||{};var r=t instanceof s;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var i=e.highWaterMark,u=e.writableHighWaterMark,l=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(u||0===u)?u:l,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var f=!1===e.decodeStrings;this.decodeStrings=!f,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 n=e._writableState,r=n.sync,i=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,i){--t.pendingcb,n?(a.nextTick(i,r),a.nextTick(k,e,t),e._writableState.errorEmitted=!0,e.emit("error",r)):(i(r),e._writableState.errorEmitted=!0,e.emit("error",r),k(e,t))}(e,n,r,t,i);else{var o=S(n);o||n.corked||n.bufferProcessing||!n.bufferedRequest||w(e,n),r?c(_,e,n,o,i):_(e,n,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.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function y(e){if(s=s||n(119),!(h.call(y,this)||this instanceof s))return new y(e);this._writableState=new g(e,this),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)),f.call(this)}function b(e,t,n,r,i,a,o){t.writelen=r,t.writecb=o,t.writing=!0,t.sync=!0,n?e._writev(i,t.onwrite):e._write(i,a,t.onwrite),t.sync=!1}function _(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),k(e,t)}function w(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,i=new Array(r),a=t.corkedRequestsFree;a.entry=n;for(var s=0,c=!0;n;)i[s]=n,n.isBuf||(c=!1),n=n.next,s+=1;i.allBuffers=c,b(e,t,!0,t.length,i,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new o(t),t.bufferedRequestCount=0}else{for(;n;){var u=n.chunk,l=n.encoding,f=n.callback;if(b(e,t,!1,t.objectMode?1:u.length,u,l,f),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function S(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function x(e,t){e._final((function(n){t.pendingcb--,n&&e.emit("error",n),t.prefinished=!0,e.emit("prefinish"),k(e,t)}))}function k(e,t){var n=S(t);return n&&(!function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,a.nextTick(x,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),n}u.inherits(y,f),g.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(g.prototype,"buffer",{get:l.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]?(h=Function.prototype[Symbol.hasInstance],Object.defineProperty(y,Symbol.hasInstance,{value:function(e){return!!h.call(this,e)||this===y&&(e&&e._writableState instanceof g)}})):h=function(e){return e instanceof this},y.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},y.prototype.write=function(e,t,n){var r,i=this._writableState,o=!1,s=!i.objectMode&&(r=e,p.isBuffer(r)||r instanceof d);return s&&!p.isBuffer(e)&&(e=function(e){return p.from(e)}(e)),"function"==typeof t&&(n=t,t=null),s?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof n&&(n=m),i.ended?function(e,t){var n=new Error("write after end");e.emit("error",n),a.nextTick(t,n)}(this,n):(s||function(e,t,n,r){var i=!0,o=!1;return null===n?o=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||t.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(e.emit("error",o),a.nextTick(r,o),i=!1),i}(this,i,e,n))&&(i.pendingcb++,o=function(e,t,n,r,i,a){if(!n){var o=function(e,t,n){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=p.from(t,n));return t}(t,r,i);r!==o&&(n=!0,i="buffer",r=o)}var s=t.objectMode?1:r.length;t.length+=s;var c=t.length<t.highWaterMark;c||(t.needDrain=!0);if(t.writing||t.corked){var u=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:a,next:null},u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else b(e,t,!1,s,r,i,a);return c}(this,i,s,e,t,n)),o},y.prototype.cork=function(){this._writableState.corked++},y.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||w(this,e))},y.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 TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(y.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),y.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},y.prototype._writev=null,y.prototype.end=function(e,t,n){var r=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||function(e,t,n){t.ending=!0,k(e,t),n&&(t.finished?a.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,r,n)},Object.defineProperty(y.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),y.prototype.destroy=v.destroy,y.prototype._undestroy=v.undestroy,y.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,n(100),n(343).setImmediate,n(79))},function(e,t,n){"use strict";n(20),n(5),n(25);var r=n(163).Buffer,i=r.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 a(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&&(r.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=c,this.end=u,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=l,this.end=f,t=3;break;default:return this.write=p,void(this.end=d)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function o(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){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!==n?n: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 c(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}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 n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function l(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?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-n))}function f(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function p(e){return e.toString(this.encoding)}function d(e){return e&&e.length?this.write(e):""}t.StringDecoder=a,a.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||""},a.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},a.prototype.text=function(e,t){var n=function(e,t,n){var r=t.length-1;if(r<n)return 0;var i=o(t[r]);if(i>=0)return i>0&&(e.lastNeed=i-1),i;if(--r<n||-2===i)return 0;if((i=o(t[r]))>=0)return i>0&&(e.lastNeed=i-2),i;if(--r<n||-2===i)return 0;if((i=o(t[r]))>=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=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},a.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}},function(e,t,n){"use strict";e.exports=o;var r=n(119),i=Object.create(n(138));function a(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function o(e){if(!(this instanceof o))return new o(e);r.call(this,e),this._transformState={afterTransform:a.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",s)}function s(){var e=this;"function"==typeof this._flush?this._flush((function(t,n){c(e,t,n)})):c(this,null,null)}function c(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}i.inherits=n(139),i.inherits(o,r),o.prototype.push=function(e,t){return this._transformState.needTransform=!1,r.prototype.push.call(this,e,t)},o.prototype._transform=function(e,t,n){throw new Error("_transform() is not implemented")},o.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},o.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},o.prototype._destroy=function(e,t){var n=this;r.prototype._destroy.call(this,e,(function(e){t(e),n.emit("close")}))}},function(e,t,n){var r=n(7),i=n(11),a=n(84),o=n(93).f,s=n(32),c=i((function(){o(1)}));r({target:"Object",stat:!0,forced:!s||c,sham:!s},{getOwnPropertyDescriptor:function(e,t){return o(a(e),t)}})},function(e,t,n){n(9),n(5),n(74),n(48),n(49),n(50),n(51),n(52),n(53),n(54),n(55),n(56),n(57),n(58),n(59),n(60),n(61),n(62),n(63),n(64),n(65),n(66),n(67),n(68),n(69),n(70);var r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(r){var i=new Uint8Array(16);e.exports=function(){return r(i),i}}else{var a=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),a[t]=e>>>((3&t)<<3)&255;return a}}},function(e,t,n){n(33),n(5),n(25);for(var r=[],i=0;i<256;++i)r[i]=(i+256).toString(16).substr(1);e.exports=function(e,t){var n=t||0,i=r;return[i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]]].join("")}},function(e,t,n){"use strict";var r=n(7),i=n(94),a=n(229),o=n(11),s=n(95),c=n(110),u=n(233),l=n(45);r({target:"Promise",proto:!0,real:!0,forced:!!a&&o((function(){a.prototype.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=c(this,s("Promise")),n="function"==typeof e;return this.then(n?function(n){return u(t,e()).then((function(){return n}))}:e,n?function(n){return u(t,e()).then((function(){throw n}))}:e)}}),i||"function"!=typeof a||a.prototype.finally||l(a.prototype,"finally",s("Promise").prototype.finally)},function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},function(e,t,n){"use strict";n(19),n(23),n(33),n(20),n(5),n(15),n(25),n(38),n(27);var r=n(41);function i(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var a;if(n)a=n(t);else if(r.isURLSearchParams(t))a=t.toString();else{var o=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),o.push(i(t)+"="+i(e))})))})),a=o.join("&")}if(a){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}},function(e,t,n){"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},function(e,t,n){"use strict";(function(t){n(19),n(23),n(257),n(27);var r=n(13),i=n(41);e.exports=function(e,n){n=n||new FormData;var a=[];function o(e){return null===e?"":i.isDate(e)?e.toISOString():i.isArrayBuffer(e)||i.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):t.from(e):e}return function e(t,s){if(i.isPlainObject(t)||i.isArray(t)){if(-1!==a.indexOf(t))throw Error("Circular reference detected in "+s);a.push(t),i.forEach(t,(function(t,a){if(!i.isUndefined(t)){var c,u=s?s+"."+a:a;if(t&&!s&&"object"===r(t))if(i.endsWith(a,"{}"))t=JSON.stringify(t);else if(i.endsWith(a,"[]")&&(c=i.toArray(t)))return void c.forEach((function(e){!i.isUndefined(e)&&n.append(u,o(e))}));e(t,u)}})),a.pop()}else n.append(s,o(t))}(e),n}}).call(this,n(111).Buffer)},function(e,t,n){"use strict";n(19),n(23),n(5),n(21),n(27);var r=n(41),i=n(357),a=n(358),o=n(271),s=n(275),c=n(362),u=n(363),l=n(272),f=n(120),p=n(164),d=n(364);e.exports=function(e){return new Promise((function(t,n){var h,v=e.data,m=e.headers,g=e.responseType;function y(){e.cancelToken&&e.cancelToken.unsubscribe(h),e.signal&&e.signal.removeEventListener("abort",h)}r.isFormData(v)&&r.isStandardBrowserEnv()&&delete m["Content-Type"];var b=new XMLHttpRequest;if(e.auth){var _=e.auth.username||"",w=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";m.Authorization="Basic "+btoa(_+":"+w)}var S=s(e.baseURL,e.url);function x(){if(b){var r="getAllResponseHeaders"in b?c(b.getAllResponseHeaders()):null,a={data:g&&"text"!==g&&"json"!==g?b.response:b.responseText,status:b.status,statusText:b.statusText,headers:r,config:e,request:b};i((function(e){t(e),y()}),(function(e){n(e),y()}),a),b=null}}if(b.open(e.method.toUpperCase(),o(S,e.params,e.paramsSerializer),!0),b.timeout=e.timeout,"onloadend"in b?b.onloadend=x:b.onreadystatechange=function(){b&&4===b.readyState&&(0!==b.status||b.responseURL&&0===b.responseURL.indexOf("file:"))&&setTimeout(x)},b.onabort=function(){b&&(n(new f("Request aborted",f.ECONNABORTED,e,b)),b=null)},b.onerror=function(){n(new f("Network Error",f.ERR_NETWORK,e,b,b)),b=null},b.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||l;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new f(t,r.clarifyTimeoutError?f.ETIMEDOUT:f.ECONNABORTED,e,b)),b=null},r.isStandardBrowserEnv()){var k=(e.withCredentials||u(S))&&e.xsrfCookieName?a.read(e.xsrfCookieName):void 0;k&&(m[e.xsrfHeaderName]=k)}"setRequestHeader"in b&&r.forEach(m,(function(e,t){void 0===v&&"content-type"===t.toLowerCase()?delete m[t]:b.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(b.withCredentials=!!e.withCredentials),g&&"json"!==g&&(b.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&b.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&b.upload&&b.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(h=function(e){b&&(n(!e||e&&e.type?new p:e),b.abort(),b=null)},e.cancelToken&&e.cancelToken.subscribe(h),e.signal&&(e.signal.aborted?h():e.signal.addEventListener("abort",h))),v||(v=null);var T=d(S);T&&-1===["http","https","file"].indexOf(T)?n(new f("Unsupported protocol "+T+":",f.ERR_BAD_REQUEST,e)):b.send(v)}))}},function(e,t,n){"use strict";var r=n(360),i=n(361);e.exports=function(e,t){return e&&!r(t)?i(e,t):t}},function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,n){"use strict";n(10),n(19),n(20),n(71),n(27);var r=n(41);e.exports=function(e,t){t=t||{};var n={};function i(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function a(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:i(void 0,e[n]):i(e[n],t[n])}function o(e){if(!r.isUndefined(t[e]))return i(void 0,t[e])}function s(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:i(void 0,e[n]):i(void 0,t[n])}function c(n){return n in t?i(e[n],t[n]):n in e?i(void 0,e[n]):void 0}var u={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:c};return r.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=u[e]||a,i=t(e);r.isUndefined(i)&&t!==c||(n[e]=i)})),n}},function(e,t){e.exports={version:"0.27.2"}},function(e,t,n){"use strict";n(5),n(21),Object.defineProperty(t,"__esModule",{value:!0});var r=n(373),i=function(){function e(e){this.options=e,this.attempt=0}return e.prototype.apply=function(){var e=this;return new Promise((function(t){return setTimeout(t,e.jitteredDelay)}))},e.prototype.setAttemptNumber=function(e){this.attempt=e},Object.defineProperty(e.prototype,"jitteredDelay",{get:function(){return r.JitterFactory(this.options)(this.delay)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"delay",{get:function(){var e=this.options.startingDelay,t=this.options.timeMultiple,n=this.numOfDelayedAttempts,r=e*Math.pow(t,n);return Math.min(r,this.options.maxDelay)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"numOfDelayedAttempts",{get:function(){return this.attempt},enumerable:!0,configurable:!0}),e}();t.Delay=i},function(e,t,n){n(238)("Uint32",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},function(e,t,n){var r=n(7),i=n(244);r({target:"Array",stat:!0,forced:!n(151)((function(e){Array.from(e)}))},{from:i})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.define=t.XMLElement=t.Translator=t.Registry=t.StreamParser=t.parse=t.Parser=void 0;var r=n(1),i=r.__importDefault(n(166));t.XMLElement=i.default;var a=r.__importDefault(n(390));t.Registry=a.default;var o=r.__importDefault(n(283));t.Translator=o.default,r.__exportStar(n(167),t),r.__exportStar(n(202),t),r.__exportStar(n(392),t);var s=n(203);Object.defineProperty(t,"Parser",{enumerable:!0,get:function(){return r.__importDefault(s).default}}),Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return s.parse}});var c=n(393);Object.defineProperty(t,"StreamParser",{enumerable:!0,get:function(){return r.__importDefault(c).default}}),t.define=function(e){return function(t){t.define(e)}}},function(e,t,n){"use strict";n(10),n(44),n(9),n(90),n(71),n(5),n(15),n(91),n(22),n(39),n(24);var r=n(6),i=n(14),a=n(4),o=n(2),s=n(3);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}Object.defineProperty(t,"__esModule",{value:!0});var p=n(202),d=function(){function e(){o(this,e),this.parents=new Set,this.placeholder=!1,this.typeField="",this.versionField="",this.defaultType="",this.defaultVersion="",this.languageField="lang",this.typeValues=new Map,this.typeOrders=new Map,this.importers=new Map,this.exporters=new Map,this.children=new Map,this.childrenIndex=new Map,this.implicitChildren=new Set,this.contexts=new Map}return s(e,[{key:"addChild",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,o={multiple:n||!1,name:e,selector:r,translator:t},s=this.children.get(e);if(s){var c=s.translator;s.multiple=n,r&&s.selector&&r!==s.selector&&(s.selector=void 0);var u,f=l(t.importers);try{for(f.s();!(u=f.n()).done;){var p=a(u.value,2),d=p[0],h=p[1],v=(c.typeValues.get(d)||"").split("__v__"),m=a(v,2),g=m[0],y=m[1];c.updateDefinition({contexts:t.contexts,element:h.element,exporterOrdering:new Map,exporters:new Map,importerOrdering:h.fieldOrders,importers:h.fields,namespace:h.namespace,optionalNamespaces:new Map,type:g,version:y}),this.implicitChildren.has(d)||this.childrenIndex.set(d,e)}}catch(e){f.e(e)}finally{f.f()}var b,_=l(t.exporters);try{for(_.s();!(b=_.n()).done;){var w=a(b.value,2),S=w[0],x=w[1],k=S.split("__v__"),T=a(k,2),j=T[0],E=T[1];c.updateDefinition({contexts:t.contexts,element:x.element,exporterOrdering:x.fieldOrders,exporters:x.fields,importerOrdering:new Map,importers:new Map,namespace:x.namespace,optionalNamespaces:x.optionalNamespaces,type:j,version:E})}}catch(e){_.e(e)}finally{_.f()}}else{o.translator.parents.add(this),this.children.set(e,o);var I,O=l(t.importers);try{for(O.s();!(I=O.n()).done;){var A=a(I.value,1),R=A[0];this.implicitChildren.has(R)||this.childrenIndex.set(R,e)}}catch(e){O.e(e)}finally{O.f()}i&&this.implicitChildren.add(i)}}},{key:"addContext",value:function(e,t,n,r,i,a){t&&(e="".concat(e,"[").concat(t,"]"));var o=this.contexts.get(e);o||(o={typeField:"",versionField:"",typeValues:new Map}),a&&(o.impliedType=i),o.typeField=n||"",o.typeValues.set(r,i),this.contexts.set(e,o)}},{key:"getChild",value:function(e){var t=this.children.get(e);if(t)return t.translator}},{key:"getImportKey",value:function(e){return this.childrenIndex.get("{".concat(e.getNamespace(),"}").concat(e.getName()))}},{key:"updateDefinition",value:function(e){var t,n="{".concat(e.namespace,"}").concat(e.element),r=e.type||this.defaultType,i=e.version||this.defaultVersion,o=i?"".concat(r,"__v__").concat(i):r,s=this.importers.get(n)||{element:e.element,fieldOrders:new Map,fields:new Map,namespace:e.namespace},c=l(e.importers);try{for(c.s();!(t=c.n()).done;){var u=a(t.value,2),f=u[0],p=u[1];s.fields.set(f,p)}}catch(e){c.e(e)}finally{c.f()}var d,h=l(e.importerOrdering);try{for(h.s();!(d=h.n()).done;){var v=a(d.value,2),m=v[0],g=v[1];s.fieldOrders.set(m,g)}}catch(e){h.e(e)}finally{h.f()}this.importers.set(n,s);var y,b=this.exporters.get(o)||{element:e.element,fieldOrders:new Map,fields:new Map,namespace:e.namespace,optionalNamespaces:e.optionalNamespaces},_=l(e.exporters);try{for(_.s();!(y=_.n()).done;){var w=a(y.value,2),S=w[0],x=w[1];b.fields.set(S,x)}}catch(e){_.e(e)}finally{_.f()}var k,T=l(e.exporterOrdering);try{for(T.s();!(k=T.n()).done;){var j=a(k.value,2),E=j[0],I=j[1];b.fieldOrders.set(E,I)}}catch(e){T.e(e)}finally{T.f()}var O,A=l(e.optionalNamespaces);try{for(A.s();!(O=A.n()).done;){var R=a(O.value,2),N=R[0],C=R[1];b.optionalNamespaces.set(N,C)}}catch(e){A.e(e)}finally{A.f()}this.exporters.set(o,b);var P,L=l(e.contexts);try{for(L.s();!(P=L.n()).done;){var q=a(P.value,2),F=q[0],M=q[1],D=this.contexts.get(F)||{impliedType:void 0,typeField:M.typeField,versionField:M.versionField,typeValues:new Map};D.typeField||(D.typeField=M.typeField),D.versionField||(D.versionField=M.versionField),D.impliedType||(D.impliedType=M.impliedType);var B,U=l(M.typeValues);try{for(U.s();!(B=U.n()).done;){var z=a(B.value,2),J=z[0],G=z[1];D.typeValues.set(J,G)}}catch(e){U.e(e)}finally{U.f()}this.contexts.set(F,D)}}catch(e){L.e(e)}finally{L.f()}if(e.type)this.typeValues.set(n,o),e.typeOrder&&e.type&&this.typeOrders.set(e.type,e.typeOrder);else if(this.typeField&&!e.type){var V,H=l(this.importers);try{for(H.s();!(V=H.n()).done;){var W,Q=a(V.value,2)[1],K=l(e.importers);try{for(K.s();!(W=K.n()).done;){var Y=a(W.value,2),X=Y[0],$=Y[1];Q.fields.set(X,$)}}catch(e){K.e(e)}finally{K.f()}var Z,ee=l(e.importerOrdering);try{for(ee.s();!(Z=ee.n()).done;){var te=a(Z.value,2),ne=te[0],re=te[1];Q.fieldOrders.set(ne,re)}}catch(e){ee.e(e)}finally{ee.f()}}}catch(e){H.e(e)}finally{H.f()}var ie,ae=l(this.exporters);try{for(ae.s();!(ie=ae.n()).done;){var oe,se=a(ie.value,2)[1],ce=l(e.exporters);try{for(ce.s();!(oe=ce.n()).done;){var ue=a(oe.value,2),le=ue[0],fe=ue[1];se.fields.set(le,fe)}}catch(e){ce.e(e)}finally{ce.f()}var pe,de=l(e.exporterOrdering);try{for(de.s();!(pe=de.n()).done;){var he=a(pe.value,2),ve=he[0],me=he[1];se.fieldOrders.set(ve,me)}}catch(e){de.e(e)}finally{de.f()}}}catch(e){ae.e(e)}finally{ae.f()}}}},{key:"replaceWith",value:function(e){var t,n=l(this.children);try{for(n.s();!(t=n.n()).done;){var r=a(t.value,2),i=r[0],o=r[1];e.children.set(i,o)}}catch(e){n.e(e)}finally{n.f()}var s,c=l(this.childrenIndex);try{for(c.s();!(s=c.n()).done;){var u=a(s.value,2),f=u[0],p=u[1];e.childrenIndex.set(f,p)}}catch(e){c.e(e)}finally{c.f()}var d,h=l(this.contexts);try{for(h.s();!(d=h.n()).done;){var v=a(d.value,2),m=v[0],g=v[1];e.contexts.set(m,g)}}catch(e){h.e(e)}finally{h.f()}var y,b=l(this.implicitChildren);try{for(b.s();!(y=b.n()).done;){var _=y.value;e.implicitChildren.add(_)}}catch(e){b.e(e)}finally{b.f()}var w,S=l(this.parents);try{for(S.s();!(w=S.n()).done;){var x,k=l(w.value.children.values());try{for(k.s();!(x=k.n()).done;){var T=x.value;T.translator===this&&(T.translator=e)}}catch(e){k.e(e)}finally{k.f()}}}catch(e){S.e(e)}finally{S.f()}this.parents=new Set}},{key:"import",value:function(e,t){var n="{".concat(e.getNamespace(),"}").concat(e.getName()),i={},o=this.importers.get(n);if(o){var s,c=(this.typeValues.get(n)||"").split("__v__"),f=a(c,2),p=f[0],d=f[1],h=t.path||"";if(t.pathSelector&&(s=this.contexts.get("".concat(h,"[").concat(t.pathSelector,"]"))),s||(s=this.contexts.get(h)),s){if(!s.impliedType){var v=s.typeValues.get(n)||"";v&&(i[s.typeField]=v)}}else this.typeField&&p&&p!==this.defaultType&&(i[this.typeField]=p);this.versionField&&d&&d!==this.defaultVersion&&(i[this.versionField]=d);var m,g=u(u({},t),{},{data:i,importer:o,lang:(e.getAttribute("xml:lang")||t.lang||"").toLowerCase(),pathSelector:p,translator:this}),y=r(o.fieldOrders.entries()).sort((function(e,t){return e[1]>t[1]?-1:e[1]<t[1]?1:0})),b=y.filter((function(e){return e[1]>=0})),_=y.filter((function(e){return e[1]<0})),w=l(b);try{for(w.s();!(m=w.n()).done;){var S=a(m.value,1)[0],x=o.fields.get(S);g.path="".concat(t.path,".").concat(S);var k=x(e,g);null!=k&&(i[S]=k)}}catch(e){w.e(e)}finally{w.f()}var T,j=l(e.children);try{for(j.s();!(T=j.n()).done;){var E=T.value;if("string"!=typeof E){var I="{".concat(E.getNamespace(),"}").concat(E.getName()),O=this.childrenIndex.get(I);if(O){g.path="".concat(t.path,".").concat(O);var A=this.children.get(O),R=A.translator,N=A.multiple,C=A.selector;if(!C||C===p){var P=R.import(E,g);void 0!==P&&(N?(i[O]||(i[O]=[]),i[O].push(P)):i[O]?i[O]=R.resolveCollision(i[O],P):i[O]=P)}}}}}catch(e){j.e(e)}finally{j.f()}var L,q=l(_);try{for(q.s();!(L=q.n()).done;){var F=a(L.value,1)[0],M=o.fields.get(F);g.path="".concat(t.path,".").concat(F);var D=M(e,g);null!=D&&(i[F]=D)}}catch(e){q.e(e)}finally{q.f()}return i}}},{key:"export",value:function(e,t){if(e){var n,r=this.defaultType,i=this.defaultVersion,o=t.path||"";t.pathSelector&&(n=this.contexts.get("".concat(o,"[").concat(t.pathSelector,"]"))),n||(n=this.contexts.get(o)),n?r=n.impliedType||e[n.typeField]||this.defaultType:this.typeField&&(r=e[this.typeField]||this.defaultType),this.versionField&&(i=e[this.versionField]||this.defaultVersion);var s=i?"".concat(r,"__v__").concat(i):r,c=this.exporters.get(s);if(c){var f=p.createElement(c.namespace,c.element,t.namespace,t.element);t.element&&(f.parent=t.element);var d,h=l(c.optionalNamespaces);try{for(h.s();!(d=h.n()).done;){var v=a(d.value,2),m=v[0],g=v[1];f.addOptionalNamespace(m,g)}}catch(e){h.e(e)}finally{h.f()}var y=u(u({},t),{},{data:e,element:f,exporter:c,lang:(e[this.languageField]||t.lang||"").toLowerCase(),namespace:f.getDefaultNamespace(),pathSelector:r,translator:this}),b=c.fields.get(this.languageField);b&&b(f,e[this.languageField],t);var _=Object.keys(e);_.sort((function(e,t){return(c.fieldOrders.get(e)||1e5)-(c.fieldOrders.get(t)||1e5)}));for(var w=0,S=_;w<S.length;w++){var x=S[w];if(x!==this.languageField){var k=e[x],T=c.fields.get(x);if(T)T(f,k,y);else{var j=this.children.get(x);if(j){y.path="".concat(t.path?t.path+".":"").concat(x);var E=j.translator,I=j.multiple,O=j.selector;if(!O||O===r){var A,R=l(I?null!=k?k:[]:[k]);try{for(R.s();!(A=R.n()).done;){var N=A.value,C=E.export(N,y);C&&f.appendChild(C)}}catch(e){R.e(e)}finally{R.f()}}}}}}return f}}}},{key:"resolveCollision",value:function(e,t){return(this.typeOrders.get(e[this.typeField]||this.defaultType)||0)<=(this.typeOrders.get(t[this.typeField]||this.defaultType)||0)?e:t}}]),e}();t.default=d},function(e,t,n){"use strict";n(9),n(20),n(28),n(5),n(25),n(74),n(48),n(49),n(50),n(51),n(52),n(53),n(54),n(55),n(56),n(57),n(58),n(59),n(60),n(61),n(62),n(63),n(64),n(65),n(66),n(67),n(68),n(69),n(70);var r=n(0);n(40);var i=n(83),a=n(14),o=n(2),s=n(3),c=n(8),u=n(37),l=n(16);function f(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function v(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 n,r=l(e);if(t){var i=l(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return u(this,n)}}Object.defineProperty(t,"__esModule",{value:!0}),t.Receiver=t.Sender=void 0;var m=n(1),g=n(42),y=m.__importStar(n(204)),b=n(102),_=n(112),w=m.__importDefault(n(205)),S=n(169),x=n(206),k=function(e){c(n,e);var t=v(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return o(this,n),(e=t.call(this)).config=h({chunkSize:16384,hash:"sha-1"},r),e.file=void 0,e.channel=void 0,e.hash=y.createHash(e.config.hash),e}return s(n,[{key:"send",value:function(e,t){var n=this;if(!this.file||!this.channel){this.file=e,this.channel=t,this.channel.binaryType="arraybuffer";var r=new FileReader,i=0,a=!1,o=function(){if(!(a||i>=e.size)){a=!0;var t=e.slice(i,i+n.config.chunkSize);r.readAsArrayBuffer(t)}};t.bufferedAmountLowThreshold=8*this.config.chunkSize,t.onbufferedamountlow=function(){o()},r.addEventListener("load",(function(t){var r=t.target.result;a=!1,i+=r.byteLength,n.channel.send(r),n.hash.update(new Uint8Array(r)),n.emit("progress",i,e.size,r),i<e.size?n.channel.bufferedAmount<=n.channel.bufferedAmountLowThreshold&&o():(n.emit("progress",e.size,e.size,null),n.emit("sentFile",{algorithm:n.config.hash,name:e.name,size:e.size,value:n.hash.digest()}))})),o()}}}]),n}(g.EventEmitter);t.Sender=k;var T=function(e){c(n,e);var t=v(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return o(this,n),(e=t.call(this)).config=h({hash:"sha-1"},r),e.receiveBuffer=[],e.received=0,e.channel=void 0,e.hash=y.createHash(e.config.hash),e}return s(n,[{key:"receive",value:function(e,t){var n=this;this.metadata=e,this.channel=t,this.channel.binaryType="arraybuffer",this.channel.onmessage=function(e){var t=e.data.byteLength;n.received+=t,n.receiveBuffer.push(e.data),e.data&&n.hash.update(new Uint8Array(e.data)),n.emit("progress",n.received,n.metadata.size,e.data),n.received===n.metadata.size?(n.metadata.actualhash=n.hash.digest("hex"),n.emit("receivedFile",new Blob(n.receiveBuffer),n.metadata),n.receiveBuffer=[]):n.received>n.metadata.size&&(console.error("received more than expected, discarding..."),n.receiveBuffer=[])}}}]),n}(g.EventEmitter);t.Receiver=T;var j=function(e){c(l,e);var t,n,a,u=v(l);function l(e){var t;return o(this,l),(t=u.call(this,e)).sender=void 0,t.receiver=void 0,t.file=void 0,t}return s(l,[{key:"start",value:(a=i(r.mark((function e(t,n){var a=this;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=n||function(){},t&&"function"!=typeof t){e.next=3;break}throw new Error("File object required");case 3:return this.state="pending",this.role="initiator",this.file=t,this.sender=new k,this.sender.on("progress",(function(e,t){a._log("info","Send progress "+e+"/"+t)})),this.sender.on("sentFile",(function(e){a._log("info","Sent file",e.name),a.send(b.JingleAction.SessionInfo,{info:{creator:b.JingleSessionRole.Initiator,file:{hashes:[{algorithm:e.algorithm,value:e.value}]},infoType:b.JINGLE_INFO_CHECKSUM_5,name:a.contentName}}),a.parent.emit("sentFile",a,e)})),this.channel=this.pc.createDataChannel("filetransfer",{ordered:!0}),this.channel.onopen=function(){a.sender.send(a.file,a.channel)},e.prev=11,e.next=14,this.processLocal(b.JingleAction.SessionInitiate,i(r.mark((function e(){var n,i,o;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a.pc.createOffer({offerToReceiveAudio:!1,offerToReceiveVideo:!1});case 2:return n=e.sent,i=S.importFromSDP(n.sdp),o=x.convertIntermediateToRequest(i,a.role,a.transportType),a.contentName=o.contents[0].name,o.sid=a.sid,o.action=b.JingleAction.SessionInitiate,o.contents[0].application={applicationType:_.NS_JINGLE_FILE_TRANSFER_5,file:{date:t.lastModified?new Date(t.lastModified):void 0,hashesUsed:[{algorithm:"sha-1"}],name:t.name,size:t.size}},a.send("session-initiate",o),e.next=12,a.pc.setLocalDescription(n);case 12:case"end":return e.stop()}}),e)}))));case 14:n(),e.next=21;break;case 17:return e.prev=17,e.t0=e.catch(11),this._log("error","Could not create WebRTC offer",e.t0),e.abrupt("return",this.end("failed-application",!0));case 21:case"end":return e.stop()}}),e,this,[[11,17]])}))),function(e,t){return a.apply(this,arguments)})},{key:"accept",value:(n=i(r.mark((function e(t){var n=this;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._log("info","Accepted incoming session"),this.role="responder",this.state="active",t=t||function(){},e.prev=4,e.next=7,this.processLocal(b.JingleAction.SessionAccept,i(r.mark((function e(){var t,i,a,o,s;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.pc.createAnswer();case 2:t=e.sent,i=S.importFromSDP(t.sdp),(a=x.convertIntermediateToRequest(i,n.role,n.transportType)).sid=n.sid,a.action="session-accept",o=f(a.contents);try{for(o.s();!(s=o.n()).done;)s.value.creator="initiator"}catch(e){o.e(e)}finally{o.f()}return n.contentName=a.contents[0].name,n.send("session-accept",a),e.next=13,n.pc.setLocalDescription(t);case 13:return e.next=15,n.processBufferedCandidates();case 15:case"end":return e.stop()}}),e)}))));case 7:t(),e.next=14;break;case 10:e.prev=10,e.t0=e.catch(4),this._log("error","Could not create WebRTC answer",e.t0),this.end("failed-application");case 14:case"end":return e.stop()}}),e,this,[[4,10]])}))),function(e){return n.apply(this,arguments)})},{key:"onSessionInitiate",value:(t=i(r.mark((function e(t,n){var i,a,o,s,c=this;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._log("info","Initiating incoming session"),this.role="responder",this.state="pending",this.transportType=t.contents[0].transport.transportType,i=x.convertRequestToIntermediate(t,this.peerRole),a=S.exportToSDP(i),o=t.contents[0].application,s=o.file.hashesUsed?o.file.hashesUsed:o.file.hashes||[],this.receiver=new T({hash:s[0]&&s[0].algorithm}),this.receiver.on("progress",(function(e,t){c._log("info","Receive progress "+e+"/"+t)})),this.receiver.on("receivedFile",(function(e){c.receivedFile=e,c._maybeReceivedFile()})),this.receiver.metadata=o.file,this.pc.addEventListener("datachannel",(function(e){c.channel=e.channel,c.receiver.receive(c.receiver.metadata,e.channel)})),e.prev=13,e.next=16,this.pc.setRemoteDescription({type:"offer",sdp:a});case 16:return e.next=18,this.processBufferedCandidates();case 18:n(),e.next=25;break;case 21:e.prev=21,e.t0=e.catch(13),this._log("error","Could not create WebRTC answer",e.t0),n({condition:"general-error"});case 25:case"end":return e.stop()}}),e,this,[[13,21]])}))),function(e,n){return t.apply(this,arguments)})},{key:"onSessionInfo",value:function(e,t){var n=e.info;n&&n.file&&n.file.hashes&&(this.receiver.metadata.hashes=n.file.hashes,this.receiver.metadata.actualhash&&this._maybeReceivedFile(),t())}},{key:"_maybeReceivedFile",value:function(){if(this.receiver.metadata.hashes&&this.receiver.metadata.hashes.length){var e,t=f(this.receiver.metadata.hashes||[]);try{for(t.s();!(e=t.n()).done;){var n=e.value;if(n.value&&n.value.toString("hex")===this.receiver.metadata.actualhash)return this._log("info","File hash matches"),this.parent.emit("receivedFile",this,this.receivedFile,this.receiver.metadata),void this.end("success")}}catch(e){t.e(e)}finally{t.f()}this._log("error","File hash does not match"),this.end("media-error")}}}]),l}(w.default);t.default=j},function(e,t,n){"use strict";(function(e){n(9),n(33),n(5),n(21),n(25),n(91),n(22),n(24);var r=n(0);n(40);var i=n(13),a=n(83);Object.defineProperty(t,"__esModule",{value:!0}),t.reviveData=t.uuid=t.octetCompare=t.sleep=t.timeoutPromise=void 0;for(var o=n(204),s=[],c=0;c<256;++c)s[c]=(c+256).toString(16).substr(1);function u(){return(u=a(r.mark((function e(t,n){var i,a,o,s=arguments;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=s.length>2&&void 0!==s[2]?s[2]:function(){},e.next=3,Promise.race([t,new Promise((function(e,t){a=setTimeout((function(){return t(i())}),n)}))]);case 3:return o=e.sent,clearTimeout(a),e.abrupt("return",o);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function l(){return(l=a(r.mark((function e(t){return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){setTimeout((function(){return e()}),t)})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}t.timeoutPromise=function(e,t){return u.apply(this,arguments)},t.sleep=function(e){return l.apply(this,arguments)},t.octetCompare=function(t,n){var r="string"==typeof t?e.from(t,"utf8"):t,i="string"==typeof n?e.from(n,"utf8"):n;return r.compare(i)},t.uuid=function(){var e=o.randomBytes(16);e[6]=15&e[6]|64,e[8]=63&e[8]|128;var t=0;return[s[e[t++]],s[e[t++]],s[e[t++]],s[e[t++]],"-",s[e[t++]],s[e[t++]],"-",s[e[t++]],s[e[t++]],"-",s[e[t++]],s[e[t++]],"-",s[e[t++]],s[e[t++]],s[e[t++]],s[e[t++]],s[e[t++]],s[e[15]]].join("")};var f=new Set(["date","expires","httpUploadRetry","idleSince","published","since","stamp","timestamp","updated","utc"]),p=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)(?:Z|((\+|-)([\d|:]*)))?$/;t.reviveData=function(t,n){return f.has(t)&&n&&"string"==typeof n&&p.test(n)?new Date(n):n&&"object"===i(n)&&"Buffer"===n.type&&Array.isArray(n.data)?e.from(n):n}}).call(this,n(111).Buffer)},function(e,t,n){"use strict";n(10);var r=n(0);n(40);var i=n(83),a=n(2),o=n(3),s=n(77),c=n(8),u=n(37),l=n(16);function f(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function d(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 n,r=l(e);if(t){var i=l(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return u(this,n)}}Object.defineProperty(t,"__esModule",{value:!0});var h=n(1),v=n(102),m=h.__importDefault(n(205)),g=n(169),y=n(206);function b(e){var t=e.application;if(t.streams&&t.streams.length&&t.sources&&t.sources.length){var n=t.streams[0];t.sources[0].parameters.msid="".concat(n.id," ").concat(n.track),t.sourceGroups&&t.sourceGroups.length>0&&t.sources.push({parameters:{cname:t.sources[0].parameters.cname,msid:"".concat(n.id," ").concat(n.track)},ssrc:t.sourceGroups[0].sources[1]})}}var _=function(e){c(m,e);var t,n,u,p,h=d(m);function m(e){var t;if(a(this,m),(t=h.call(this,e)).includesAudio=!1,t.includesVideo=!1,t._ringing=!1,t.pc.addEventListener("track",(function(e){t.onAddTrack(e.track,e.streams[0])})),e.stream){var n,r=f(e.stream.getTracks());try{for(r.s();!(n=r.n()).done;){var i=n.value;t.addTrack(i,e.stream)}}catch(e){r.e(e)}finally{r.f()}}return t}return o(m,[{key:"start",value:(p=i(r.mark((function e(t,n){var a=this,o=arguments;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.state="pending",1===o.length&&"function"==typeof t&&(n=t,t={}),n=n||function(){},t=t||{},this.role="initiator",this.offerOptions=t,e.prev=6,e.next=9,this.processLocal(v.JingleAction.SessionInitiate,i(r.mark((function e(){var n,i,o,s,c,u;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a.pc.createOffer(t);case 2:n=e.sent,i=g.importFromSDP(n.sdp),(o=y.convertIntermediateToRequest(i,a.role,a.transportType)).sid=a.sid,o.action=v.JingleAction.SessionInitiate,s=f(o.contents||[]);try{for(s.s();!(c=s.n()).done;)(u=c.value).creator="initiator",b(u)}catch(e){s.e(e)}finally{s.f()}return e.next=11,a.pc.setLocalDescription(n);case 11:a.send("session-initiate",o);case 12:case"end":return e.stop()}}),e)}))));case 9:n(),e.next=16;break;case 12:e.prev=12,e.t0=e.catch(6),this._log("error","Could not create WebRTC offer",e.t0),this.end("failed-application",!0);case 16:case"end":return e.stop()}}),e,this,[[6,12]])}))),function(e,t){return p.apply(this,arguments)})},{key:"accept",value:(u=i(r.mark((function e(t,n){var a=this,o=arguments;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return 1===o.length&&"function"==typeof t&&(n=t,t={}),n=n||function(){},t=t||{},this._log("info","Accepted incoming session"),this.state="active",this.role="responder",e.prev=6,e.next=9,this.processLocal(v.JingleAction.SessionAccept,i(r.mark((function e(){var n,i,o,s,c;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a.pc.createAnswer(t);case 2:n=e.sent,i=g.importFromSDP(n.sdp),(o=y.convertIntermediateToRequest(i,a.role,a.transportType)).sid=a.sid,o.action=v.JingleAction.SessionAccept,s=f(o.contents||[]);try{for(s.s();!(c=s.n()).done;)c.value.creator="initiator"}catch(e){s.e(e)}finally{s.f()}return e.next=11,a.pc.setLocalDescription(n);case 11:return e.next=13,a.processBufferedCandidates();case 13:a.send("session-accept",o);case 14:case"end":return e.stop()}}),e)}))));case 9:n(),e.next=16;break;case 12:e.prev=12,e.t0=e.catch(6),this._log("error","Could not create WebRTC answer",e.t0),this.end("failed-application");case 16:case"end":return e.stop()}}),e,this,[[6,12]])}))),function(e,t){return u.apply(this,arguments)})},{key:"end",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"success",n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=f(this.pc.getReceivers());try{for(r.s();!(e=r.n()).done;){var i=e.value;this.onRemoveTrack(i.track)}}catch(e){r.e(e)}finally{r.f()}s(l(m.prototype),"end",this).call(this,t,n)}},{key:"ring",value:function(){var e=this;return this.processLocal("ring",i(r.mark((function t(){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e._log("info","Ringing on incoming session"),e.ringing=!0,e.send(v.JingleAction.SessionInfo,{info:{infoType:v.JINGLE_INFO_RINGING}});case 3:case"end":return t.stop()}}),t)}))))}},{key:"mute",value:function(e,t){var n=this;return this.processLocal("mute",i(r.mark((function i(){return r.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:n._log("info","Muting",t),n.send(v.JingleAction.SessionInfo,{info:{creator:e,infoType:v.JINGLE_INFO_MUTE,name:t}});case 2:case"end":return r.stop()}}),i)}))))}},{key:"unmute",value:function(e,t){var n=this;return this.processLocal("unmute",i(r.mark((function i(){return r.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:n._log("info","Unmuting",t),n.send(v.JingleAction.SessionInfo,{info:{creator:e,infoType:v.JINGLE_INFO_UNMUTE,name:t}});case 2:case"end":return r.stop()}}),i)}))))}},{key:"hold",value:function(){var e=this;return this.processLocal("hold",i(r.mark((function t(){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e._log("info","Placing on hold"),e.send("session-info",{info:{infoType:v.JINGLE_INFO_HOLD}});case 2:case"end":return t.stop()}}),t)}))))}},{key:"resume",value:function(){var e=this;return this.processLocal("resume",i(r.mark((function t(){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e._log("info","Resuming from hold"),e.send("session-info",{info:{infoType:v.JINGLE_INFO_ACTIVE}});case 2:case"end":return t.stop()}}),t)}))))}},{key:"addTrack",value:function(e,t,n){var a=this;return"audio"===e.kind&&(this.includesAudio=!0),"video"===e.kind&&(this.includesVideo=!0),this.processLocal("addtrack",i(r.mark((function i(){return r.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:a.pc.addTrack?a.pc.addTrack(e,t):a.pc.addStream(t),n&&n();case 2:case"end":return r.stop()}}),i)}))))}},{key:"removeTrack",value:(n=i(r.mark((function e(t,n){var a=this;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.processLocal("removetrack",i(r.mark((function e(){return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a.pc.removeTrack(t),!n){e.next=3;break}return e.abrupt("return",n());case 3:case"end":return e.stop()}}),e)})))));case 1:case"end":return e.stop()}}),e,this)}))),function(e,t){return n.apply(this,arguments)})},{key:"onAddTrack",value:function(e,t){this._log("info","Track added"),this.parent.emit("peerTrackAdded",this,e,t)}},{key:"onRemoveTrack",value:function(e){this._log("info","Track removed"),this.parent.emit("peerTrackRemoved",this,e)}},{key:"onSessionInitiate",value:(t=i(r.mark((function e(t,n){var i,a,o,s,c;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this._log("info","Initiating incoming session"),this.state="pending",this.role="responder",this.transportType=t.contents[0].transport.transportType,i=y.convertRequestToIntermediate(t,this.peerRole),a=f(i.media);try{for(a.s();!(o=a.n()).done;)"audio"===(s=o.value).kind&&(this.includesAudio=!0),"video"===s.kind&&(this.includesVideo=!0),s.streams||(s.streams=[{stream:"legacy",track:s.kind}])}catch(e){a.e(e)}finally{a.f()}return c=g.exportToSDP(i),e.prev=8,e.next=11,this.pc.setRemoteDescription({type:"offer",sdp:c});case 11:return e.next=13,this.processBufferedCandidates();case 13:return e.abrupt("return",n());case 16:return e.prev=16,e.t0=e.catch(8),this._log("error","Could not create WebRTC answer",e.t0),e.abrupt("return",n({condition:"general-error"}));case 20:case"end":return e.stop()}}),e,this,[[8,16]])}))),function(e,n){return t.apply(this,arguments)})},{key:"onSessionTerminate",value:function(e,t){var n,r=f(this.pc.getReceivers());try{for(r.s();!(n=r.n()).done;){var i=n.value;this.onRemoveTrack(i.track)}}catch(e){r.e(e)}finally{r.f()}s(l(m.prototype),"onSessionTerminate",this).call(this,e,t)}},{key:"onSessionInfo",value:function(e,t){var n=e.info||{infoType:""};switch(n.infoType){case v.JINGLE_INFO_RINGING:return this._log("info","Outgoing session is ringing"),this.ringing=!0,this.parent.emit("ringing",this),t();case v.JINGLE_INFO_HOLD:return this._log("info","On hold"),this.parent.emit("hold",this),t();case v.JINGLE_INFO_UNHOLD:case v.JINGLE_INFO_ACTIVE:return this._log("info","Resuming from hold"),this.parent.emit("resumed",this),t();case v.JINGLE_INFO_MUTE:return this._log("info","Muting",n),this.parent.emit("mute",this,n),t();case v.JINGLE_INFO_UNMUTE:return this._log("info","Unmuting",n),this.parent.emit("unmute",this,n),t()}return t()}},{key:"ringing",get:function(){return this._ringing},set:function(e){e!==this._ringing&&(this._ringing=e)}},{key:"streams",get:function(){return"closed"!==this.pc.signalingState?this.pc.getRemoteStreams():[]}}]),m}(m.default);t.default=_},function(e,t,n){var r=n(2),i=n(3),a=n(43),o=n(8),s=n(37),c=n(16);function u(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 n,r=c(e);if(t){var i=c(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return s(this,n)}}var l=function(e){"use strict";o(n,e);var t=u(n);function n(e){var i;return r(this,n),(i=t.call(this)).backoffStrategy_=e,i.maxNumberOfRetry_=-1,i.backoffNumber_=0,i.backoffDelay_=0,i.timeoutID_=-1,i.handlers={backoff:i.onBackoff_.bind(a(i))},i}return i(n,[{key:"failAfter",value:function(e){if(void 0!==e&&e<=0)throw new Error("Expected a maximum number of retry greater than 0 but got "+e);this.maxNumberOfRetry_=e}},{key:"backoff",value:function(e){if(-1!==this.timeoutID_)throw new Error("Backoff in progress");this.backoffNumber_===this.maxNumberOfRetry_?(this.emit("fail",e),this.reset()):(this.backoffDelay_=this.backoffStrategy_.next(),this.timeoutID_=setTimeout(this.handlers.backoff,this.backoffDelay_),this.emit("backoff",this.backoffNumber_,this.backoffDelay_,e))}},{key:"onBackoff_",value:function(){this.timeoutID_=-1,this.emit("ready",this.backoffNumber_,this.backoffDelay_),this.backoffNumber_++}},{key:"reset",value:function(){this.backoffNumber_=0,this.backoffStrategy_.reset(),clearTimeout(this.timeoutID_),this.timeoutID_=-1}}]),n}(n(288));e.exports=l},function(e,t,n){function r(){}n(10),n(23),n(20),n(81),n(15),n(39),e.exports=r,r.mixin=function(e){var t=e.prototype||e;t.isWildEmitter=!0,t.on=function(e,t,n){this.callbacks=this.callbacks||{};var r=3===arguments.length,i=r?arguments[1]:void 0,a=r?arguments[2]:arguments[1];return a._groupName=i,(this.callbacks[e]=this.callbacks[e]||[]).push(a),this},t.once=function(e,t,n){var r=this,i=3===arguments.length,a=i?arguments[1]:void 0,o=i?arguments[2]:arguments[1];function s(){r.off(e,s),o.apply(this,arguments)}return this.on(e,a,s),this},t.releaseGroup=function(e){var t,n,r,i;for(t in this.callbacks=this.callbacks||{},this.callbacks)for(n=0,r=(i=this.callbacks[t]).length;n<r;n++)i[n]._groupName===e&&(i.splice(n,1),n--,r--);return this},t.off=function(e,t){this.callbacks=this.callbacks||{};var n,r=this.callbacks[e];return r?1===arguments.length?(delete this.callbacks[e],this):(-1!==(n=r.indexOf(t))&&(r.splice(n,1),0===r.length&&delete this.callbacks[e]),this):this},t.emit=function(e){this.callbacks=this.callbacks||{};var t,n,r,i=[].slice.call(arguments,1),a=this.callbacks[e],o=this.getWildcardCallbacks(e);if(a)for(t=0,n=(r=a.slice()).length;t<n&&r[t];++t)r[t].apply(this,i);if(o)for(n=o.length,t=0,n=(r=o.slice()).length;t<n&&r[t];++t)r[t].apply(this,[e].concat(i));return this},t.getWildcardCallbacks=function(e){this.callbacks=this.callbacks||{};var t,n,r=[];for(t in this.callbacks)n=t.split("*"),("*"===t||2===n.length&&e.slice(0,n[0].length)===n[0])&&(r=r.concat(this.callbacks[t]));return r}},r.mixin(r)},function(e,t,n){var r=n(2),i=n(3);function a(e){return null!=e}var o=function(){"use strict";function e(t){if(r(this,e),a((t=t||{}).initialDelay)&&t.initialDelay<1)throw new Error("The initial timeout must be greater than 0.");if(a(t.maxDelay)&&t.maxDelay<1)throw new Error("The maximal timeout must be greater than 0.");if(this.initialDelay_=t.initialDelay||100,this.maxDelay_=t.maxDelay||1e4,this.maxDelay_<=this.initialDelay_)throw new Error("The maximal backoff delay must be greater than the initial backoff delay.");if(a(t.randomisationFactor)&&(t.randomisationFactor<0||t.randomisationFactor>1))throw new Error("The randomisation factor must be between 0 and 1.");this.randomisationFactor_=t.randomisationFactor||0}return i(e,[{key:"getMaxDelay",value:function(){return this.maxDelay_}},{key:"getInitialDelay",value:function(){return this.initialDelay_}},{key:"next",value:function(){var e=this.next_(),t=1+Math.random()*this.randomisationFactor_;return Math.round(e*t)}},{key:"next_",value:function(){throw new Error("Not implemented")}},{key:"reset",value:function(){this.reset_()}},{key:"reset_",value:function(){throw new Error("Not implemented")}}]),e}();e.exports=o},function(e,t,n){var r=n(2),i=n(3),a=n(8),o=n(37),s=n(16);function c(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 n,r=s(e);if(t){var i=s(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return o(this,n)}}var u=function(e){"use strict";a(n,e);var t=c(n);function n(e){var i;return r(this,n),(i=t.call(this,e)).backoffDelay_=0,i.nextBackoffDelay_=i.getInitialDelay(),i}return i(n,[{key:"next_",value:function(){var e=Math.min(this.nextBackoffDelay_,this.getMaxDelay());return this.nextBackoffDelay_+=this.backoffDelay_,this.backoffDelay_=e,e}},{key:"reset_",value:function(){this.nextBackoffDelay_=this.getInitialDelay(),this.backoffDelay_=0}}]),n}(n(289));e.exports=u},function(e,t,n){"use strict";n.r(t);n(9),n(5),n(74),n(48),n(49),n(50),n(51),n(52),n(53),n(54),n(55),n(56),n(57),n(58),n(59),n(60),n(61),n(62),n(63),n(64),n(65),n(66),n(67),n(68),n(69),n(70);var r,i=new Uint8Array(16);function a(){if(!r&&!(r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(i)}n(25);var o=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var s=function(e){return"string"==typeof e&&o.test(e)},c=[],u=0;u<256;++u)c.push((u+256).toString(16).substr(1));var l,f,p=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(c[e[t+0]]+c[e[t+1]]+c[e[t+2]]+c[e[t+3]]+"-"+c[e[t+4]]+c[e[t+5]]+"-"+c[e[t+6]]+c[e[t+7]]+"-"+c[e[t+8]]+c[e[t+9]]+"-"+c[e[t+10]]+c[e[t+11]]+c[e[t+12]]+c[e[t+13]]+c[e[t+14]]+c[e[t+15]]).toLowerCase();if(!s(n))throw TypeError("Stringified UUID is invalid");return n},d=0,h=0;var v=function(e,t,n){var r=t&&n||0,i=t||new Array(16),o=(e=e||{}).node||l,s=void 0!==e.clockseq?e.clockseq:f;if(null==o||null==s){var c=e.random||(e.rng||a)();null==o&&(o=l=[1|c[0],c[1],c[2],c[3],c[4],c[5]]),null==s&&(s=f=16383&(c[6]<<8|c[7]))}var u=void 0!==e.msecs?e.msecs:Date.now(),v=void 0!==e.nsecs?e.nsecs:h+1,m=u-d+(v-h)/1e4;if(m<0&&void 0===e.clockseq&&(s=s+1&16383),(m<0||u>d)&&void 0===e.nsecs&&(v=0),v>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");d=u,h=v,f=s;var g=(1e4*(268435455&(u+=122192928e5))+v)%4294967296;i[r++]=g>>>24&255,i[r++]=g>>>16&255,i[r++]=g>>>8&255,i[r++]=255&g;var y=u/4294967296*1e4&268435455;i[r++]=y>>>8&255,i[r++]=255&y,i[r++]=y>>>24&15|16,i[r++]=y>>>16&255,i[r++]=s>>>8|128,i[r++]=255&s;for(var b=0;b<6;++b)i[r+b]=o[b];return t||p(i)};n(28),n(20);var m=function(e){if(!s(e))throw TypeError("Invalid UUID");var t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n};var g=function(e,t,n){function r(e,r,i,a){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof r&&(r=m(r)),16!==r.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var o=new Uint8Array(16+e.length);if(o.set(r),o.set(e,r.length),(o=n(o))[6]=15&o[6]|t,o[8]=63&o[8]|128,i){a=a||0;for(var s=0;s<16;++s)i[a+s]=o[s];return i}return p(o)}try{r.name=e}catch(e){}return r.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",r.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",r};n(280);function y(e){return 14+(e+64>>>9<<4)+1}function b(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function _(e,t,n,r,i,a){return b((o=b(b(t,e),b(r,a)))<<(s=i)|o>>>32-s,n);var o,s}function w(e,t,n,r,i,a,o){return _(t&n|~t&r,e,t,i,a,o)}function S(e,t,n,r,i,a,o){return _(t&r|n&~r,e,t,i,a,o)}function x(e,t,n,r,i,a,o){return _(t^n^r,e,t,i,a,o)}function k(e,t,n,r,i,a,o){return _(n^(t|~r),e,t,i,a,o)}var T=g("v3",48,(function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return function(e){for(var t=[],n=32*e.length,r=0;r<n;r+=8){var i=e[r>>5]>>>r%32&255,a=parseInt("0123456789abcdef".charAt(i>>>4&15)+"0123456789abcdef".charAt(15&i),16);t.push(a)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[y(t)-1]=t;for(var n=1732584193,r=-271733879,i=-1732584194,a=271733878,o=0;o<e.length;o+=16){var s=n,c=r,u=i,l=a;n=w(n,r,i,a,e[o],7,-680876936),a=w(a,n,r,i,e[o+1],12,-389564586),i=w(i,a,n,r,e[o+2],17,606105819),r=w(r,i,a,n,e[o+3],22,-1044525330),n=w(n,r,i,a,e[o+4],7,-176418897),a=w(a,n,r,i,e[o+5],12,1200080426),i=w(i,a,n,r,e[o+6],17,-1473231341),r=w(r,i,a,n,e[o+7],22,-45705983),n=w(n,r,i,a,e[o+8],7,1770035416),a=w(a,n,r,i,e[o+9],12,-1958414417),i=w(i,a,n,r,e[o+10],17,-42063),r=w(r,i,a,n,e[o+11],22,-1990404162),n=w(n,r,i,a,e[o+12],7,1804603682),a=w(a,n,r,i,e[o+13],12,-40341101),i=w(i,a,n,r,e[o+14],17,-1502002290),r=w(r,i,a,n,e[o+15],22,1236535329),n=S(n,r,i,a,e[o+1],5,-165796510),a=S(a,n,r,i,e[o+6],9,-1069501632),i=S(i,a,n,r,e[o+11],14,643717713),r=S(r,i,a,n,e[o],20,-373897302),n=S(n,r,i,a,e[o+5],5,-701558691),a=S(a,n,r,i,e[o+10],9,38016083),i=S(i,a,n,r,e[o+15],14,-660478335),r=S(r,i,a,n,e[o+4],20,-405537848),n=S(n,r,i,a,e[o+9],5,568446438),a=S(a,n,r,i,e[o+14],9,-1019803690),i=S(i,a,n,r,e[o+3],14,-187363961),r=S(r,i,a,n,e[o+8],20,1163531501),n=S(n,r,i,a,e[o+13],5,-1444681467),a=S(a,n,r,i,e[o+2],9,-51403784),i=S(i,a,n,r,e[o+7],14,1735328473),r=S(r,i,a,n,e[o+12],20,-1926607734),n=x(n,r,i,a,e[o+5],4,-378558),a=x(a,n,r,i,e[o+8],11,-2022574463),i=x(i,a,n,r,e[o+11],16,1839030562),r=x(r,i,a,n,e[o+14],23,-35309556),n=x(n,r,i,a,e[o+1],4,-1530992060),a=x(a,n,r,i,e[o+4],11,1272893353),i=x(i,a,n,r,e[o+7],16,-155497632),r=x(r,i,a,n,e[o+10],23,-1094730640),n=x(n,r,i,a,e[o+13],4,681279174),a=x(a,n,r,i,e[o],11,-358537222),i=x(i,a,n,r,e[o+3],16,-722521979),r=x(r,i,a,n,e[o+6],23,76029189),n=x(n,r,i,a,e[o+9],4,-640364487),a=x(a,n,r,i,e[o+12],11,-421815835),i=x(i,a,n,r,e[o+15],16,530742520),r=x(r,i,a,n,e[o+2],23,-995338651),n=k(n,r,i,a,e[o],6,-198630844),a=k(a,n,r,i,e[o+7],10,1126891415),i=k(i,a,n,r,e[o+14],15,-1416354905),r=k(r,i,a,n,e[o+5],21,-57434055),n=k(n,r,i,a,e[o+12],6,1700485571),a=k(a,n,r,i,e[o+3],10,-1894986606),i=k(i,a,n,r,e[o+10],15,-1051523),r=k(r,i,a,n,e[o+1],21,-2054922799),n=k(n,r,i,a,e[o+8],6,1873313359),a=k(a,n,r,i,e[o+15],10,-30611744),i=k(i,a,n,r,e[o+6],15,-1560198380),r=k(r,i,a,n,e[o+13],21,1309151649),n=k(n,r,i,a,e[o+4],6,-145523070),a=k(a,n,r,i,e[o+11],10,-1120210379),i=k(i,a,n,r,e[o+2],15,718787259),r=k(r,i,a,n,e[o+9],21,-343485551),n=b(n,s),r=b(r,c),i=b(i,u),a=b(a,l)}return[n,r,i,a]}(function(e){if(0===e.length)return[];for(var t=8*e.length,n=new Uint32Array(y(t)),r=0;r<t;r+=8)n[r>>5]|=(255&e[r/8])<<r%32;return n}(e),8*e.length))}));var j=function(e,t,n){var r=(e=e||{}).random||(e.rng||a)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return p(r)};function E(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:return t^n^r;case 2:return t&n^t&r^n&r;case 3:return t^n^r}}function I(e,t){return e<<t|e>>>32-t}var O=g("v5",80,(function(e){var t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var r=unescape(encodeURIComponent(e));e=[];for(var i=0;i<r.length;++i)e.push(r.charCodeAt(i))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var a=e.length/4+2,o=Math.ceil(a/16),s=new Array(o),c=0;c<o;++c){for(var u=new Uint32Array(16),l=0;l<16;++l)u[l]=e[64*c+4*l]<<24|e[64*c+4*l+1]<<16|e[64*c+4*l+2]<<8|e[64*c+4*l+3];s[c]=u}s[o-1][14]=8*(e.length-1)/Math.pow(2,32),s[o-1][14]=Math.floor(s[o-1][14]),s[o-1][15]=8*(e.length-1)&4294967295;for(var f=0;f<o;++f){for(var p=new Uint32Array(80),d=0;d<16;++d)p[d]=s[f][d];for(var h=16;h<80;++h)p[h]=I(p[h-3]^p[h-8]^p[h-14]^p[h-16],1);for(var v=n[0],m=n[1],g=n[2],y=n[3],b=n[4],_=0;_<80;++_){var w=Math.floor(_/20),S=I(v,5)+E(w,m,g,y)+b+t[w]+p[_]>>>0;b=y,y=g,g=I(m,30)>>>0,m=v,v=S}n[0]=n[0]+v>>>0,n[1]=n[1]+m>>>0,n[2]=n[2]+g>>>0,n[3]=n[3]+y>>>0,n[4]=n[4]+b>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]}));var A=function(e){if(!s(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)};n.d(t,"v1",(function(){return v})),n.d(t,"v3",(function(){return T})),n.d(t,"v4",(function(){return j})),n.d(t,"v5",(function(){return O})),n.d(t,"NIL",(function(){return"00000000-0000-0000-0000-000000000000"})),n.d(t,"version",(function(){return A})),n.d(t,"validate",(function(){return s})),n.d(t,"stringify",(function(){return p})),n.d(t,"parse",(function(){return m}))},function(e,t,n){var r=n(245),i=n(258),a=n(195),o=n(247);e.exports=function(e){return r(e)||i(e)||a(e)||o()}},function(e,t,n){var r=n(349),i=n(350),a=i;a.v1=r,a.v4=i,e.exports=a},function(e,t,n){"use strict";n(47),n(73),n(97),n(9),n(5),n(21),n(22),n(24);var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(370),o=n(371);t.backOff=function(e,t){return void 0===t&&(t={}),r(this,void 0,void 0,(function(){var n;return i(this,(function(r){switch(r.label){case 0:return n=a.getSanitizedOptions(t),[4,new s(e,n).execute()];case 1:return[2,r.sent()]}}))}))};var s=function(){function e(e,t){this.request=e,this.options=t,this.attemptNumber=0}return e.prototype.execute=function(){return r(this,void 0,void 0,(function(){var e;return i(this,(function(t){switch(t.label){case 0:if(this.attemptLimitReached)return[3,7];t.label=1;case 1:return t.trys.push([1,4,,6]),[4,this.applyDelay()];case 2:return t.sent(),[4,this.request()];case 3:return[2,t.sent()];case 4:return e=t.sent(),this.attemptNumber++,[4,this.options.retry(e,this.attemptNumber)];case 5:if(!t.sent()||this.attemptLimitReached)throw e;return[3,6];case 6:return[3,0];case 7:throw new Error("Something went wrong.")}}))}))},Object.defineProperty(e.prototype,"attemptLimitReached",{get:function(){return this.attemptNumber>=this.options.numOfAttempts},enumerable:!0,configurable:!0}),e.prototype.applyDelay=function(){return r(this,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return[4,o.DelayFactory(this.options,this.attemptNumber).apply()];case 1:return e.sent(),[2]}}))}))},e}()},function(e,t,n){n(296),n(300),e.exports=n(313)},function(e,t,n){(function(e){var r;n(10),n(298),n(81),n(5),n(25);var i=n(13);!function(a){"use strict";for(var o=[null,0,{}],s=function(e,t){this.codepoint=e,this.feature=t},c={},u=[],l=0;l<=255;++l)u[l]=0;var f=[function(e,t,n){return t<60||13311<t&&t<42607?new s(t,o):e(t,n)},function(e,t,n){var r=c[t];return r||(r=e(t,n)).feature&&++u[t>>8&255]>10&&(c[t]=r),r},function(e,t,n){return n?e(t,n):new s(t,null)},function(e,t,n){var r;if(t<4352||4371<=t&&t<44032||55204<t)return e(t,n);if(4352<=t&&t<4371){var i={},a=21*(t-4352);for(r=0;r<21;++r)i[4449+r]=44032+28*(r+a);return new s(t,[,,i])}var o=t-44032,c=o%28,u=[];if(0!==c)u[0]=[44032+o-c,4519+c];else for(u[0]=[4352+Math.floor(o/588),4449+Math.floor(o%588/28)],u[2]={},r=1;r<28;++r)u[2][4519+r]=t+r;return new s(t,u)},function(e,t,n){var r=(s.udata[65280&t]||{})[t];return new s(t,r||o)}];s.fromCharCode=f.reduceRight((function(e,t){return function(n,r){return t(e,n,r)}}),null),s.isHighSurrogate=function(e){return e>=55296&&e<=56319},s.isLowSurrogate=function(e){return e>=56320&&e<=57343},s.prototype.prepFeature=function(){this.feature||(this.feature=s.fromCharCode(this.codepoint,!0).feature)},s.prototype.toString=function(){if(this.codepoint<65536)return String.fromCharCode(this.codepoint);var e=this.codepoint-65536;return String.fromCharCode(Math.floor(e/1024)+55296,e%1024+56320)},s.prototype.getDecomp=function(){return this.prepFeature(),this.feature[0]||null},s.prototype.isCompatibility=function(){return this.prepFeature(),!!this.feature[1]&&256&this.feature[1]},s.prototype.isExclude=function(){return this.prepFeature(),!!this.feature[1]&&512&this.feature[1]},s.prototype.getCanonicalClass=function(){return this.prepFeature(),this.feature[1]?255&this.feature[1]:0},s.prototype.getComposite=function(e){if(this.prepFeature(),!this.feature[2])return null;var t=this.feature[2][e.codepoint];return t?s.fromCharCode(t):null};var p=function(e){this.str=e,this.cursor=0};p.prototype.next=function(){if(this.str&&this.cursor<this.str.length){var e,t=this.str.charCodeAt(this.cursor++);return s.isHighSurrogate(t)&&this.cursor<this.str.length&&s.isLowSurrogate(e=this.str.charCodeAt(this.cursor))&&(t=1024*(t-55296)+(e-56320)+65536,++this.cursor),s.fromCharCode(t)}return this.str=null,null};var d=function(e,t){this.it=e,this.canonical=t,this.resBuf=[]};d.prototype.next=function(){if(0===this.resBuf.length){var e=this.it.next();if(!e)return null;this.resBuf=function e(t,n){var r=n.getDecomp();if(!r||t&&n.isCompatibility())return[n];for(var i=[],a=0;a<r.length;++a){var o=e(t,s.fromCharCode(r[a]));i=i.concat(o)}return i}(this.canonical,e)}return this.resBuf.shift()};var h=function(e){this.it=e,this.resBuf=[]};h.prototype.next=function(){var e;if(0===this.resBuf.length)do{var t=this.it.next();if(!t)break;e=t.getCanonicalClass();var n=this.resBuf.length;if(0!==e)for(;n>0;--n){if(this.resBuf[n-1].getCanonicalClass()<=e)break}this.resBuf.splice(n,0,t)}while(0!==e);return this.resBuf.shift()};var v=function(e){this.it=e,this.procBuf=[],this.resBuf=[],this.lastClass=null};v.prototype.next=function(){for(;0===this.resBuf.length;){var e=this.it.next();if(!e){this.resBuf=this.procBuf,this.procBuf=[];break}if(0===this.procBuf.length)this.lastClass=e.getCanonicalClass(),this.procBuf.push(e);else{var t=this.procBuf[0].getComposite(e),n=e.getCanonicalClass();t&&(this.lastClass<n||0===this.lastClass)?this.procBuf[0]=t:(0===n&&(this.resBuf=this.procBuf,this.procBuf=[]),this.lastClass=n,this.procBuf.push(e))}}return this.resBuf.shift()};var m=function(e,t){for(var n,r=function(e,t){switch(e){case"NFD":return new h(new d(new p(t),!0));case"NFKD":return new h(new d(new p(t),!1));case"NFC":return new v(new h(new d(new p(t),!0)));case"NFKC":return new v(new h(new d(new p(t),!1)))}throw e+" is invalid"}(e,t),i="";n=r.next();)i+=n.toString();return i};s.udata={0:{60:[,,{824:8814}],61:[,,{824:8800}],62:[,,{824:8815}],65:[,,{768:192,769:193,770:194,771:195,772:256,774:258,775:550,776:196,777:7842,778:197,780:461,783:512,785:514,803:7840,805:7680,808:260}],66:[,,{775:7682,803:7684,817:7686}],67:[,,{769:262,770:264,775:266,780:268,807:199}],68:[,,{775:7690,780:270,803:7692,807:7696,813:7698,817:7694}],69:[,,{768:200,769:201,770:202,771:7868,772:274,774:276,775:278,776:203,777:7866,780:282,783:516,785:518,803:7864,807:552,808:280,813:7704,816:7706}],70:[,,{775:7710}],71:[,,{769:500,770:284,772:7712,774:286,775:288,780:486,807:290}],72:[,,{770:292,775:7714,776:7718,780:542,803:7716,807:7720,814:7722}],73:[,,{768:204,769:205,770:206,771:296,772:298,774:300,775:304,776:207,777:7880,780:463,783:520,785:522,803:7882,808:302,816:7724}],74:[,,{770:308}],75:[,,{769:7728,780:488,803:7730,807:310,817:7732}],76:[,,{769:313,780:317,803:7734,807:315,813:7740,817:7738}],77:[,,{769:7742,775:7744,803:7746}],78:[,,{768:504,769:323,771:209,775:7748,780:327,803:7750,807:325,813:7754,817:7752}],79:[,,{768:210,769:211,770:212,771:213,772:332,774:334,775:558,776:214,777:7886,779:336,780:465,783:524,785:526,795:416,803:7884,808:490}],80:[,,{769:7764,775:7766}],82:[,,{769:340,775:7768,780:344,783:528,785:530,803:7770,807:342,817:7774}],83:[,,{769:346,770:348,775:7776,780:352,803:7778,806:536,807:350}],84:[,,{775:7786,780:356,803:7788,806:538,807:354,813:7792,817:7790}],85:[,,{768:217,769:218,770:219,771:360,772:362,774:364,776:220,777:7910,778:366,779:368,780:467,783:532,785:534,795:431,803:7908,804:7794,808:370,813:7798,816:7796}],86:[,,{771:7804,803:7806}],87:[,,{768:7808,769:7810,770:372,775:7814,776:7812,803:7816}],88:[,,{775:7818,776:7820}],89:[,,{768:7922,769:221,770:374,771:7928,772:562,775:7822,776:376,777:7926,803:7924}],90:[,,{769:377,770:7824,775:379,780:381,803:7826,817:7828}],97:[,,{768:224,769:225,770:226,771:227,772:257,774:259,775:551,776:228,777:7843,778:229,780:462,783:513,785:515,803:7841,805:7681,808:261}],98:[,,{775:7683,803:7685,817:7687}],99:[,,{769:263,770:265,775:267,780:269,807:231}],100:[,,{775:7691,780:271,803:7693,807:7697,813:7699,817:7695}],101:[,,{768:232,769:233,770:234,771:7869,772:275,774:277,775:279,776:235,777:7867,780:283,783:517,785:519,803:7865,807:553,808:281,813:7705,816:7707}],102:[,,{775:7711}],103:[,,{769:501,770:285,772:7713,774:287,775:289,780:487,807:291}],104:[,,{770:293,775:7715,776:7719,780:543,803:7717,807:7721,814:7723,817:7830}],105:[,,{768:236,769:237,770:238,771:297,772:299,774:301,776:239,777:7881,780:464,783:521,785:523,803:7883,808:303,816:7725}],106:[,,{770:309,780:496}],107:[,,{769:7729,780:489,803:7731,807:311,817:7733}],108:[,,{769:314,780:318,803:7735,807:316,813:7741,817:7739}],109:[,,{769:7743,775:7745,803:7747}],110:[,,{768:505,769:324,771:241,775:7749,780:328,803:7751,807:326,813:7755,817:7753}],111:[,,{768:242,769:243,770:244,771:245,772:333,774:335,775:559,776:246,777:7887,779:337,780:466,783:525,785:527,795:417,803:7885,808:491}],112:[,,{769:7765,775:7767}],114:[,,{769:341,775:7769,780:345,783:529,785:531,803:7771,807:343,817:7775}],115:[,,{769:347,770:349,775:7777,780:353,803:7779,806:537,807:351}],116:[,,{775:7787,776:7831,780:357,803:7789,806:539,807:355,813:7793,817:7791}],117:[,,{768:249,769:250,770:251,771:361,772:363,774:365,776:252,777:7911,778:367,779:369,780:468,783:533,785:535,795:432,803:7909,804:7795,808:371,813:7799,816:7797}],118:[,,{771:7805,803:7807}],119:[,,{768:7809,769:7811,770:373,775:7815,776:7813,778:7832,803:7817}],120:[,,{775:7819,776:7821}],121:[,,{768:7923,769:253,770:375,771:7929,772:563,775:7823,776:255,777:7927,778:7833,803:7925}],122:[,,{769:378,770:7825,775:380,780:382,803:7827,817:7829}],160:[[32],256],168:[[32,776],256,{768:8173,769:901,834:8129}],170:[[97],256],175:[[32,772],256],178:[[50],256],179:[[51],256],180:[[32,769],256],181:[[956],256],184:[[32,807],256],185:[[49],256],186:[[111],256],188:[[49,8260,52],256],189:[[49,8260,50],256],190:[[51,8260,52],256],192:[[65,768]],193:[[65,769]],194:[[65,770],,{768:7846,769:7844,771:7850,777:7848}],195:[[65,771]],196:[[65,776],,{772:478}],197:[[65,778],,{769:506}],198:[,,{769:508,772:482}],199:[[67,807],,{769:7688}],200:[[69,768]],201:[[69,769]],202:[[69,770],,{768:7872,769:7870,771:7876,777:7874}],203:[[69,776]],204:[[73,768]],205:[[73,769]],206:[[73,770]],207:[[73,776],,{769:7726}],209:[[78,771]],210:[[79,768]],211:[[79,769]],212:[[79,770],,{768:7890,769:7888,771:7894,777:7892}],213:[[79,771],,{769:7756,772:556,776:7758}],214:[[79,776],,{772:554}],216:[,,{769:510}],217:[[85,768]],218:[[85,769]],219:[[85,770]],220:[[85,776],,{768:475,769:471,772:469,780:473}],221:[[89,769]],224:[[97,768]],225:[[97,769]],226:[[97,770],,{768:7847,769:7845,771:7851,777:7849}],227:[[97,771]],228:[[97,776],,{772:479}],229:[[97,778],,{769:507}],230:[,,{769:509,772:483}],231:[[99,807],,{769:7689}],232:[[101,768]],233:[[101,769]],234:[[101,770],,{768:7873,769:7871,771:7877,777:7875}],235:[[101,776]],236:[[105,768]],237:[[105,769]],238:[[105,770]],239:[[105,776],,{769:7727}],241:[[110,771]],242:[[111,768]],243:[[111,769]],244:[[111,770],,{768:7891,769:7889,771:7895,777:7893}],245:[[111,771],,{769:7757,772:557,776:7759}],246:[[111,776],,{772:555}],248:[,,{769:511}],249:[[117,768]],250:[[117,769]],251:[[117,770]],252:[[117,776],,{768:476,769:472,772:470,780:474}],253:[[121,769]],255:[[121,776]]},256:{256:[[65,772]],257:[[97,772]],258:[[65,774],,{768:7856,769:7854,771:7860,777:7858}],259:[[97,774],,{768:7857,769:7855,771:7861,777:7859}],260:[[65,808]],261:[[97,808]],262:[[67,769]],263:[[99,769]],264:[[67,770]],265:[[99,770]],266:[[67,775]],267:[[99,775]],268:[[67,780]],269:[[99,780]],270:[[68,780]],271:[[100,780]],274:[[69,772],,{768:7700,769:7702}],275:[[101,772],,{768:7701,769:7703}],276:[[69,774]],277:[[101,774]],278:[[69,775]],279:[[101,775]],280:[[69,808]],281:[[101,808]],282:[[69,780]],283:[[101,780]],284:[[71,770]],285:[[103,770]],286:[[71,774]],287:[[103,774]],288:[[71,775]],289:[[103,775]],290:[[71,807]],291:[[103,807]],292:[[72,770]],293:[[104,770]],296:[[73,771]],297:[[105,771]],298:[[73,772]],299:[[105,772]],300:[[73,774]],301:[[105,774]],302:[[73,808]],303:[[105,808]],304:[[73,775]],306:[[73,74],256],307:[[105,106],256],308:[[74,770]],309:[[106,770]],310:[[75,807]],311:[[107,807]],313:[[76,769]],314:[[108,769]],315:[[76,807]],316:[[108,807]],317:[[76,780]],318:[[108,780]],319:[[76,183],256],320:[[108,183],256],323:[[78,769]],324:[[110,769]],325:[[78,807]],326:[[110,807]],327:[[78,780]],328:[[110,780]],329:[[700,110],256],332:[[79,772],,{768:7760,769:7762}],333:[[111,772],,{768:7761,769:7763}],334:[[79,774]],335:[[111,774]],336:[[79,779]],337:[[111,779]],340:[[82,769]],341:[[114,769]],342:[[82,807]],343:[[114,807]],344:[[82,780]],345:[[114,780]],346:[[83,769],,{775:7780}],347:[[115,769],,{775:7781}],348:[[83,770]],349:[[115,770]],350:[[83,807]],351:[[115,807]],352:[[83,780],,{775:7782}],353:[[115,780],,{775:7783}],354:[[84,807]],355:[[116,807]],356:[[84,780]],357:[[116,780]],360:[[85,771],,{769:7800}],361:[[117,771],,{769:7801}],362:[[85,772],,{776:7802}],363:[[117,772],,{776:7803}],364:[[85,774]],365:[[117,774]],366:[[85,778]],367:[[117,778]],368:[[85,779]],369:[[117,779]],370:[[85,808]],371:[[117,808]],372:[[87,770]],373:[[119,770]],374:[[89,770]],375:[[121,770]],376:[[89,776]],377:[[90,769]],378:[[122,769]],379:[[90,775]],380:[[122,775]],381:[[90,780]],382:[[122,780]],383:[[115],256,{775:7835}],416:[[79,795],,{768:7900,769:7898,771:7904,777:7902,803:7906}],417:[[111,795],,{768:7901,769:7899,771:7905,777:7903,803:7907}],431:[[85,795],,{768:7914,769:7912,771:7918,777:7916,803:7920}],432:[[117,795],,{768:7915,769:7913,771:7919,777:7917,803:7921}],439:[,,{780:494}],452:[[68,381],256],453:[[68,382],256],454:[[100,382],256],455:[[76,74],256],456:[[76,106],256],457:[[108,106],256],458:[[78,74],256],459:[[78,106],256],460:[[110,106],256],461:[[65,780]],462:[[97,780]],463:[[73,780]],464:[[105,780]],465:[[79,780]],466:[[111,780]],467:[[85,780]],468:[[117,780]],469:[[220,772]],470:[[252,772]],471:[[220,769]],472:[[252,769]],473:[[220,780]],474:[[252,780]],475:[[220,768]],476:[[252,768]],478:[[196,772]],479:[[228,772]],480:[[550,772]],481:[[551,772]],482:[[198,772]],483:[[230,772]],486:[[71,780]],487:[[103,780]],488:[[75,780]],489:[[107,780]],490:[[79,808],,{772:492}],491:[[111,808],,{772:493}],492:[[490,772]],493:[[491,772]],494:[[439,780]],495:[[658,780]],496:[[106,780]],497:[[68,90],256],498:[[68,122],256],499:[[100,122],256],500:[[71,769]],501:[[103,769]],504:[[78,768]],505:[[110,768]],506:[[197,769]],507:[[229,769]],508:[[198,769]],509:[[230,769]],510:[[216,769]],511:[[248,769]],66045:[,220]},512:{512:[[65,783]],513:[[97,783]],514:[[65,785]],515:[[97,785]],516:[[69,783]],517:[[101,783]],518:[[69,785]],519:[[101,785]],520:[[73,783]],521:[[105,783]],522:[[73,785]],523:[[105,785]],524:[[79,783]],525:[[111,783]],526:[[79,785]],527:[[111,785]],528:[[82,783]],529:[[114,783]],530:[[82,785]],531:[[114,785]],532:[[85,783]],533:[[117,783]],534:[[85,785]],535:[[117,785]],536:[[83,806]],537:[[115,806]],538:[[84,806]],539:[[116,806]],542:[[72,780]],543:[[104,780]],550:[[65,775],,{772:480}],551:[[97,775],,{772:481}],552:[[69,807],,{774:7708}],553:[[101,807],,{774:7709}],554:[[214,772]],555:[[246,772]],556:[[213,772]],557:[[245,772]],558:[[79,775],,{772:560}],559:[[111,775],,{772:561}],560:[[558,772]],561:[[559,772]],562:[[89,772]],563:[[121,772]],658:[,,{780:495}],688:[[104],256],689:[[614],256],690:[[106],256],691:[[114],256],692:[[633],256],693:[[635],256],694:[[641],256],695:[[119],256],696:[[121],256],728:[[32,774],256],729:[[32,775],256],730:[[32,778],256],731:[[32,808],256],732:[[32,771],256],733:[[32,779],256],736:[[611],256],737:[[108],256],738:[[115],256],739:[[120],256],740:[[661],256],66272:[,220]},768:{768:[,230],769:[,230],770:[,230],771:[,230],772:[,230],773:[,230],774:[,230],775:[,230],776:[,230,{769:836}],777:[,230],778:[,230],779:[,230],780:[,230],781:[,230],782:[,230],783:[,230],784:[,230],785:[,230],786:[,230],787:[,230],788:[,230],789:[,232],790:[,220],791:[,220],792:[,220],793:[,220],794:[,232],795:[,216],796:[,220],797:[,220],798:[,220],799:[,220],800:[,220],801:[,202],802:[,202],803:[,220],804:[,220],805:[,220],806:[,220],807:[,202],808:[,202],809:[,220],810:[,220],811:[,220],812:[,220],813:[,220],814:[,220],815:[,220],816:[,220],817:[,220],818:[,220],819:[,220],820:[,1],821:[,1],822:[,1],823:[,1],824:[,1],825:[,220],826:[,220],827:[,220],828:[,220],829:[,230],830:[,230],831:[,230],832:[[768],230],833:[[769],230],834:[,230],835:[[787],230],836:[[776,769],230],837:[,240],838:[,230],839:[,220],840:[,220],841:[,220],842:[,230],843:[,230],844:[,230],845:[,220],846:[,220],848:[,230],849:[,230],850:[,230],851:[,220],852:[,220],853:[,220],854:[,220],855:[,230],856:[,232],857:[,220],858:[,220],859:[,230],860:[,233],861:[,234],862:[,234],863:[,233],864:[,234],865:[,234],866:[,233],867:[,230],868:[,230],869:[,230],870:[,230],871:[,230],872:[,230],873:[,230],874:[,230],875:[,230],876:[,230],877:[,230],878:[,230],879:[,230],884:[[697]],890:[[32,837],256],894:[[59]],900:[[32,769],256],901:[[168,769]],902:[[913,769]],903:[[183]],904:[[917,769]],905:[[919,769]],906:[[921,769]],908:[[927,769]],910:[[933,769]],911:[[937,769]],912:[[970,769]],913:[,,{768:8122,769:902,772:8121,774:8120,787:7944,788:7945,837:8124}],917:[,,{768:8136,769:904,787:7960,788:7961}],919:[,,{768:8138,769:905,787:7976,788:7977,837:8140}],921:[,,{768:8154,769:906,772:8153,774:8152,776:938,787:7992,788:7993}],927:[,,{768:8184,769:908,787:8008,788:8009}],929:[,,{788:8172}],933:[,,{768:8170,769:910,772:8169,774:8168,776:939,788:8025}],937:[,,{768:8186,769:911,787:8040,788:8041,837:8188}],938:[[921,776]],939:[[933,776]],940:[[945,769],,{837:8116}],941:[[949,769]],942:[[951,769],,{837:8132}],943:[[953,769]],944:[[971,769]],945:[,,{768:8048,769:940,772:8113,774:8112,787:7936,788:7937,834:8118,837:8115}],949:[,,{768:8050,769:941,787:7952,788:7953}],951:[,,{768:8052,769:942,787:7968,788:7969,834:8134,837:8131}],953:[,,{768:8054,769:943,772:8145,774:8144,776:970,787:7984,788:7985,834:8150}],959:[,,{768:8056,769:972,787:8e3,788:8001}],961:[,,{787:8164,788:8165}],965:[,,{768:8058,769:973,772:8161,774:8160,776:971,787:8016,788:8017,834:8166}],969:[,,{768:8060,769:974,787:8032,788:8033,834:8182,837:8179}],970:[[953,776],,{768:8146,769:912,834:8151}],971:[[965,776],,{768:8162,769:944,834:8167}],972:[[959,769]],973:[[965,769]],974:[[969,769],,{837:8180}],976:[[946],256],977:[[952],256],978:[[933],256,{769:979,776:980}],979:[[978,769]],980:[[978,776]],981:[[966],256],982:[[960],256],1008:[[954],256],1009:[[961],256],1010:[[962],256],1012:[[920],256],1013:[[949],256],1017:[[931],256],66422:[,230],66423:[,230],66424:[,230],66425:[,230],66426:[,230]},1024:{1024:[[1045,768]],1025:[[1045,776]],1027:[[1043,769]],1030:[,,{776:1031}],1031:[[1030,776]],1036:[[1050,769]],1037:[[1048,768]],1038:[[1059,774]],1040:[,,{774:1232,776:1234}],1043:[,,{769:1027}],1045:[,,{768:1024,774:1238,776:1025}],1046:[,,{774:1217,776:1244}],1047:[,,{776:1246}],1048:[,,{768:1037,772:1250,774:1049,776:1252}],1049:[[1048,774]],1050:[,,{769:1036}],1054:[,,{776:1254}],1059:[,,{772:1262,774:1038,776:1264,779:1266}],1063:[,,{776:1268}],1067:[,,{776:1272}],1069:[,,{776:1260}],1072:[,,{774:1233,776:1235}],1075:[,,{769:1107}],1077:[,,{768:1104,774:1239,776:1105}],1078:[,,{774:1218,776:1245}],1079:[,,{776:1247}],1080:[,,{768:1117,772:1251,774:1081,776:1253}],1081:[[1080,774]],1082:[,,{769:1116}],1086:[,,{776:1255}],1091:[,,{772:1263,774:1118,776:1265,779:1267}],1095:[,,{776:1269}],1099:[,,{776:1273}],1101:[,,{776:1261}],1104:[[1077,768]],1105:[[1077,776]],1107:[[1075,769]],1110:[,,{776:1111}],1111:[[1110,776]],1116:[[1082,769]],1117:[[1080,768]],1118:[[1091,774]],1140:[,,{783:1142}],1141:[,,{783:1143}],1142:[[1140,783]],1143:[[1141,783]],1155:[,230],1156:[,230],1157:[,230],1158:[,230],1159:[,230],1217:[[1046,774]],1218:[[1078,774]],1232:[[1040,774]],1233:[[1072,774]],1234:[[1040,776]],1235:[[1072,776]],1238:[[1045,774]],1239:[[1077,774]],1240:[,,{776:1242}],1241:[,,{776:1243}],1242:[[1240,776]],1243:[[1241,776]],1244:[[1046,776]],1245:[[1078,776]],1246:[[1047,776]],1247:[[1079,776]],1250:[[1048,772]],1251:[[1080,772]],1252:[[1048,776]],1253:[[1080,776]],1254:[[1054,776]],1255:[[1086,776]],1256:[,,{776:1258}],1257:[,,{776:1259}],1258:[[1256,776]],1259:[[1257,776]],1260:[[1069,776]],1261:[[1101,776]],1262:[[1059,772]],1263:[[1091,772]],1264:[[1059,776]],1265:[[1091,776]],1266:[[1059,779]],1267:[[1091,779]],1268:[[1063,776]],1269:[[1095,776]],1272:[[1067,776]],1273:[[1099,776]]},1280:{1415:[[1381,1410],256],1425:[,220],1426:[,230],1427:[,230],1428:[,230],1429:[,230],1430:[,220],1431:[,230],1432:[,230],1433:[,230],1434:[,222],1435:[,220],1436:[,230],1437:[,230],1438:[,230],1439:[,230],1440:[,230],1441:[,230],1442:[,220],1443:[,220],1444:[,220],1445:[,220],1446:[,220],1447:[,220],1448:[,230],1449:[,230],1450:[,220],1451:[,230],1452:[,230],1453:[,222],1454:[,228],1455:[,230],1456:[,10],1457:[,11],1458:[,12],1459:[,13],1460:[,14],1461:[,15],1462:[,16],1463:[,17],1464:[,18],1465:[,19],1466:[,19],1467:[,20],1468:[,21],1469:[,22],1471:[,23],1473:[,24],1474:[,25],1476:[,230],1477:[,220],1479:[,18]},1536:{1552:[,230],1553:[,230],1554:[,230],1555:[,230],1556:[,230],1557:[,230],1558:[,230],1559:[,230],1560:[,30],1561:[,31],1562:[,32],1570:[[1575,1619]],1571:[[1575,1620]],1572:[[1608,1620]],1573:[[1575,1621]],1574:[[1610,1620]],1575:[,,{1619:1570,1620:1571,1621:1573}],1608:[,,{1620:1572}],1610:[,,{1620:1574}],1611:[,27],1612:[,28],1613:[,29],1614:[,30],1615:[,31],1616:[,32],1617:[,33],1618:[,34],1619:[,230],1620:[,230],1621:[,220],1622:[,220],1623:[,230],1624:[,230],1625:[,230],1626:[,230],1627:[,230],1628:[,220],1629:[,230],1630:[,230],1631:[,220],1648:[,35],1653:[[1575,1652],256],1654:[[1608,1652],256],1655:[[1735,1652],256],1656:[[1610,1652],256],1728:[[1749,1620]],1729:[,,{1620:1730}],1730:[[1729,1620]],1746:[,,{1620:1747}],1747:[[1746,1620]],1749:[,,{1620:1728}],1750:[,230],1751:[,230],1752:[,230],1753:[,230],1754:[,230],1755:[,230],1756:[,230],1759:[,230],1760:[,230],1761:[,230],1762:[,230],1763:[,220],1764:[,230],1767:[,230],1768:[,230],1770:[,220],1771:[,230],1772:[,230],1773:[,220]},1792:{1809:[,36],1840:[,230],1841:[,220],1842:[,230],1843:[,230],1844:[,220],1845:[,230],1846:[,230],1847:[,220],1848:[,220],1849:[,220],1850:[,230],1851:[,220],1852:[,220],1853:[,230],1854:[,220],1855:[,230],1856:[,230],1857:[,230],1858:[,220],1859:[,230],1860:[,220],1861:[,230],1862:[,220],1863:[,230],1864:[,220],1865:[,230],1866:[,230],2027:[,230],2028:[,230],2029:[,230],2030:[,230],2031:[,230],2032:[,230],2033:[,230],2034:[,220],2035:[,230]},2048:{2070:[,230],2071:[,230],2072:[,230],2073:[,230],2075:[,230],2076:[,230],2077:[,230],2078:[,230],2079:[,230],2080:[,230],2081:[,230],2082:[,230],2083:[,230],2085:[,230],2086:[,230],2087:[,230],2089:[,230],2090:[,230],2091:[,230],2092:[,230],2093:[,230],2137:[,220],2138:[,220],2139:[,220],2276:[,230],2277:[,230],2278:[,220],2279:[,230],2280:[,230],2281:[,220],2282:[,230],2283:[,230],2284:[,230],2285:[,220],2286:[,220],2287:[,220],2288:[,27],2289:[,28],2290:[,29],2291:[,230],2292:[,230],2293:[,230],2294:[,220],2295:[,230],2296:[,230],2297:[,220],2298:[,220],2299:[,230],2300:[,230],2301:[,230],2302:[,230],2303:[,230]},2304:{2344:[,,{2364:2345}],2345:[[2344,2364]],2352:[,,{2364:2353}],2353:[[2352,2364]],2355:[,,{2364:2356}],2356:[[2355,2364]],2364:[,7],2381:[,9],2385:[,230],2386:[,220],2387:[,230],2388:[,230],2392:[[2325,2364],512],2393:[[2326,2364],512],2394:[[2327,2364],512],2395:[[2332,2364],512],2396:[[2337,2364],512],2397:[[2338,2364],512],2398:[[2347,2364],512],2399:[[2351,2364],512],2492:[,7],2503:[,,{2494:2507,2519:2508}],2507:[[2503,2494]],2508:[[2503,2519]],2509:[,9],2524:[[2465,2492],512],2525:[[2466,2492],512],2527:[[2479,2492],512]},2560:{2611:[[2610,2620],512],2614:[[2616,2620],512],2620:[,7],2637:[,9],2649:[[2582,2620],512],2650:[[2583,2620],512],2651:[[2588,2620],512],2654:[[2603,2620],512],2748:[,7],2765:[,9],68109:[,220],68111:[,230],68152:[,230],68153:[,1],68154:[,220],68159:[,9],68325:[,230],68326:[,220]},2816:{2876:[,7],2887:[,,{2878:2891,2902:2888,2903:2892}],2888:[[2887,2902]],2891:[[2887,2878]],2892:[[2887,2903]],2893:[,9],2908:[[2849,2876],512],2909:[[2850,2876],512],2962:[,,{3031:2964}],2964:[[2962,3031]],3014:[,,{3006:3018,3031:3020}],3015:[,,{3006:3019}],3018:[[3014,3006]],3019:[[3015,3006]],3020:[[3014,3031]],3021:[,9]},3072:{3142:[,,{3158:3144}],3144:[[3142,3158]],3149:[,9],3157:[,84],3158:[,91],3260:[,7],3263:[,,{3285:3264}],3264:[[3263,3285]],3270:[,,{3266:3274,3285:3271,3286:3272}],3271:[[3270,3285]],3272:[[3270,3286]],3274:[[3270,3266],,{3285:3275}],3275:[[3274,3285]],3277:[,9]},3328:{3398:[,,{3390:3402,3415:3404}],3399:[,,{3390:3403}],3402:[[3398,3390]],3403:[[3399,3390]],3404:[[3398,3415]],3405:[,9],3530:[,9],3545:[,,{3530:3546,3535:3548,3551:3550}],3546:[[3545,3530]],3548:[[3545,3535],,{3530:3549}],3549:[[3548,3530]],3550:[[3545,3551]]},3584:{3635:[[3661,3634],256],3640:[,103],3641:[,103],3642:[,9],3656:[,107],3657:[,107],3658:[,107],3659:[,107],3763:[[3789,3762],256],3768:[,118],3769:[,118],3784:[,122],3785:[,122],3786:[,122],3787:[,122],3804:[[3755,3737],256],3805:[[3755,3745],256]},3840:{3852:[[3851],256],3864:[,220],3865:[,220],3893:[,220],3895:[,220],3897:[,216],3907:[[3906,4023],512],3917:[[3916,4023],512],3922:[[3921,4023],512],3927:[[3926,4023],512],3932:[[3931,4023],512],3945:[[3904,4021],512],3953:[,129],3954:[,130],3955:[[3953,3954],512],3956:[,132],3957:[[3953,3956],512],3958:[[4018,3968],512],3959:[[4018,3969],256],3960:[[4019,3968],512],3961:[[4019,3969],256],3962:[,130],3963:[,130],3964:[,130],3965:[,130],3968:[,130],3969:[[3953,3968],512],3970:[,230],3971:[,230],3972:[,9],3974:[,230],3975:[,230],3987:[[3986,4023],512],3997:[[3996,4023],512],4002:[[4001,4023],512],4007:[[4006,4023],512],4012:[[4011,4023],512],4025:[[3984,4021],512],4038:[,220]},4096:{4133:[,,{4142:4134}],4134:[[4133,4142]],4151:[,7],4153:[,9],4154:[,9],4237:[,220],4348:[[4316],256],69702:[,9],69759:[,9],69785:[,,{69818:69786}],69786:[[69785,69818]],69787:[,,{69818:69788}],69788:[[69787,69818]],69797:[,,{69818:69803}],69803:[[69797,69818]],69817:[,9],69818:[,7]},4352:{69888:[,230],69889:[,230],69890:[,230],69934:[[69937,69927]],69935:[[69938,69927]],69937:[,,{69927:69934}],69938:[,,{69927:69935}],69939:[,9],69940:[,9],70003:[,7],70080:[,9]},4608:{70197:[,9],70198:[,7],70377:[,7],70378:[,9]},4864:{4957:[,230],4958:[,230],4959:[,230],70460:[,7],70471:[,,{70462:70475,70487:70476}],70475:[[70471,70462]],70476:[[70471,70487]],70477:[,9],70502:[,230],70503:[,230],70504:[,230],70505:[,230],70506:[,230],70507:[,230],70508:[,230],70512:[,230],70513:[,230],70514:[,230],70515:[,230],70516:[,230]},5120:{70841:[,,{70832:70844,70842:70843,70845:70846}],70843:[[70841,70842]],70844:[[70841,70832]],70846:[[70841,70845]],70850:[,9],70851:[,7]},5376:{71096:[,,{71087:71098}],71097:[,,{71087:71099}],71098:[[71096,71087]],71099:[[71097,71087]],71103:[,9],71104:[,7]},5632:{71231:[,9],71350:[,9],71351:[,7]},5888:{5908:[,9],5940:[,9],6098:[,9],6109:[,230]},6144:{6313:[,228]},6400:{6457:[,222],6458:[,230],6459:[,220]},6656:{6679:[,230],6680:[,220],6752:[,9],6773:[,230],6774:[,230],6775:[,230],6776:[,230],6777:[,230],6778:[,230],6779:[,230],6780:[,230],6783:[,220],6832:[,230],6833:[,230],6834:[,230],6835:[,230],6836:[,230],6837:[,220],6838:[,220],6839:[,220],6840:[,220],6841:[,220],6842:[,220],6843:[,230],6844:[,230],6845:[,220]},6912:{6917:[,,{6965:6918}],6918:[[6917,6965]],6919:[,,{6965:6920}],6920:[[6919,6965]],6921:[,,{6965:6922}],6922:[[6921,6965]],6923:[,,{6965:6924}],6924:[[6923,6965]],6925:[,,{6965:6926}],6926:[[6925,6965]],6929:[,,{6965:6930}],6930:[[6929,6965]],6964:[,7],6970:[,,{6965:6971}],6971:[[6970,6965]],6972:[,,{6965:6973}],6973:[[6972,6965]],6974:[,,{6965:6976}],6975:[,,{6965:6977}],6976:[[6974,6965]],6977:[[6975,6965]],6978:[,,{6965:6979}],6979:[[6978,6965]],6980:[,9],7019:[,230],7020:[,220],7021:[,230],7022:[,230],7023:[,230],7024:[,230],7025:[,230],7026:[,230],7027:[,230],7082:[,9],7083:[,9],7142:[,7],7154:[,9],7155:[,9]},7168:{7223:[,7],7376:[,230],7377:[,230],7378:[,230],7380:[,1],7381:[,220],7382:[,220],7383:[,220],7384:[,220],7385:[,220],7386:[,230],7387:[,230],7388:[,220],7389:[,220],7390:[,220],7391:[,220],7392:[,230],7394:[,1],7395:[,1],7396:[,1],7397:[,1],7398:[,1],7399:[,1],7400:[,1],7405:[,220],7412:[,230],7416:[,230],7417:[,230]},7424:{7468:[[65],256],7469:[[198],256],7470:[[66],256],7472:[[68],256],7473:[[69],256],7474:[[398],256],7475:[[71],256],7476:[[72],256],7477:[[73],256],7478:[[74],256],7479:[[75],256],7480:[[76],256],7481:[[77],256],7482:[[78],256],7484:[[79],256],7485:[[546],256],7486:[[80],256],7487:[[82],256],7488:[[84],256],7489:[[85],256],7490:[[87],256],7491:[[97],256],7492:[[592],256],7493:[[593],256],7494:[[7426],256],7495:[[98],256],7496:[[100],256],7497:[[101],256],7498:[[601],256],7499:[[603],256],7500:[[604],256],7501:[[103],256],7503:[[107],256],7504:[[109],256],7505:[[331],256],7506:[[111],256],7507:[[596],256],7508:[[7446],256],7509:[[7447],256],7510:[[112],256],7511:[[116],256],7512:[[117],256],7513:[[7453],256],7514:[[623],256],7515:[[118],256],7516:[[7461],256],7517:[[946],256],7518:[[947],256],7519:[[948],256],7520:[[966],256],7521:[[967],256],7522:[[105],256],7523:[[114],256],7524:[[117],256],7525:[[118],256],7526:[[946],256],7527:[[947],256],7528:[[961],256],7529:[[966],256],7530:[[967],256],7544:[[1085],256],7579:[[594],256],7580:[[99],256],7581:[[597],256],7582:[[240],256],7583:[[604],256],7584:[[102],256],7585:[[607],256],7586:[[609],256],7587:[[613],256],7588:[[616],256],7589:[[617],256],7590:[[618],256],7591:[[7547],256],7592:[[669],256],7593:[[621],256],7594:[[7557],256],7595:[[671],256],7596:[[625],256],7597:[[624],256],7598:[[626],256],7599:[[627],256],7600:[[628],256],7601:[[629],256],7602:[[632],256],7603:[[642],256],7604:[[643],256],7605:[[427],256],7606:[[649],256],7607:[[650],256],7608:[[7452],256],7609:[[651],256],7610:[[652],256],7611:[[122],256],7612:[[656],256],7613:[[657],256],7614:[[658],256],7615:[[952],256],7616:[,230],7617:[,230],7618:[,220],7619:[,230],7620:[,230],7621:[,230],7622:[,230],7623:[,230],7624:[,230],7625:[,230],7626:[,220],7627:[,230],7628:[,230],7629:[,234],7630:[,214],7631:[,220],7632:[,202],7633:[,230],7634:[,230],7635:[,230],7636:[,230],7637:[,230],7638:[,230],7639:[,230],7640:[,230],7641:[,230],7642:[,230],7643:[,230],7644:[,230],7645:[,230],7646:[,230],7647:[,230],7648:[,230],7649:[,230],7650:[,230],7651:[,230],7652:[,230],7653:[,230],7654:[,230],7655:[,230],7656:[,230],7657:[,230],7658:[,230],7659:[,230],7660:[,230],7661:[,230],7662:[,230],7663:[,230],7664:[,230],7665:[,230],7666:[,230],7667:[,230],7668:[,230],7669:[,230],7676:[,233],7677:[,220],7678:[,230],7679:[,220]},7680:{7680:[[65,805]],7681:[[97,805]],7682:[[66,775]],7683:[[98,775]],7684:[[66,803]],7685:[[98,803]],7686:[[66,817]],7687:[[98,817]],7688:[[199,769]],7689:[[231,769]],7690:[[68,775]],7691:[[100,775]],7692:[[68,803]],7693:[[100,803]],7694:[[68,817]],7695:[[100,817]],7696:[[68,807]],7697:[[100,807]],7698:[[68,813]],7699:[[100,813]],7700:[[274,768]],7701:[[275,768]],7702:[[274,769]],7703:[[275,769]],7704:[[69,813]],7705:[[101,813]],7706:[[69,816]],7707:[[101,816]],7708:[[552,774]],7709:[[553,774]],7710:[[70,775]],7711:[[102,775]],7712:[[71,772]],7713:[[103,772]],7714:[[72,775]],7715:[[104,775]],7716:[[72,803]],7717:[[104,803]],7718:[[72,776]],7719:[[104,776]],7720:[[72,807]],7721:[[104,807]],7722:[[72,814]],7723:[[104,814]],7724:[[73,816]],7725:[[105,816]],7726:[[207,769]],7727:[[239,769]],7728:[[75,769]],7729:[[107,769]],7730:[[75,803]],7731:[[107,803]],7732:[[75,817]],7733:[[107,817]],7734:[[76,803],,{772:7736}],7735:[[108,803],,{772:7737}],7736:[[7734,772]],7737:[[7735,772]],7738:[[76,817]],7739:[[108,817]],7740:[[76,813]],7741:[[108,813]],7742:[[77,769]],7743:[[109,769]],7744:[[77,775]],7745:[[109,775]],7746:[[77,803]],7747:[[109,803]],7748:[[78,775]],7749:[[110,775]],7750:[[78,803]],7751:[[110,803]],7752:[[78,817]],7753:[[110,817]],7754:[[78,813]],7755:[[110,813]],7756:[[213,769]],7757:[[245,769]],7758:[[213,776]],7759:[[245,776]],7760:[[332,768]],7761:[[333,768]],7762:[[332,769]],7763:[[333,769]],7764:[[80,769]],7765:[[112,769]],7766:[[80,775]],7767:[[112,775]],7768:[[82,775]],7769:[[114,775]],7770:[[82,803],,{772:7772}],7771:[[114,803],,{772:7773}],7772:[[7770,772]],7773:[[7771,772]],7774:[[82,817]],7775:[[114,817]],7776:[[83,775]],7777:[[115,775]],7778:[[83,803],,{775:7784}],7779:[[115,803],,{775:7785}],7780:[[346,775]],7781:[[347,775]],7782:[[352,775]],7783:[[353,775]],7784:[[7778,775]],7785:[[7779,775]],7786:[[84,775]],7787:[[116,775]],7788:[[84,803]],7789:[[116,803]],7790:[[84,817]],7791:[[116,817]],7792:[[84,813]],7793:[[116,813]],7794:[[85,804]],7795:[[117,804]],7796:[[85,816]],7797:[[117,816]],7798:[[85,813]],7799:[[117,813]],7800:[[360,769]],7801:[[361,769]],7802:[[362,776]],7803:[[363,776]],7804:[[86,771]],7805:[[118,771]],7806:[[86,803]],7807:[[118,803]],7808:[[87,768]],7809:[[119,768]],7810:[[87,769]],7811:[[119,769]],7812:[[87,776]],7813:[[119,776]],7814:[[87,775]],7815:[[119,775]],7816:[[87,803]],7817:[[119,803]],7818:[[88,775]],7819:[[120,775]],7820:[[88,776]],7821:[[120,776]],7822:[[89,775]],7823:[[121,775]],7824:[[90,770]],7825:[[122,770]],7826:[[90,803]],7827:[[122,803]],7828:[[90,817]],7829:[[122,817]],7830:[[104,817]],7831:[[116,776]],7832:[[119,778]],7833:[[121,778]],7834:[[97,702],256],7835:[[383,775]],7840:[[65,803],,{770:7852,774:7862}],7841:[[97,803],,{770:7853,774:7863}],7842:[[65,777]],7843:[[97,777]],7844:[[194,769]],7845:[[226,769]],7846:[[194,768]],7847:[[226,768]],7848:[[194,777]],7849:[[226,777]],7850:[[194,771]],7851:[[226,771]],7852:[[7840,770]],7853:[[7841,770]],7854:[[258,769]],7855:[[259,769]],7856:[[258,768]],7857:[[259,768]],7858:[[258,777]],7859:[[259,777]],7860:[[258,771]],7861:[[259,771]],7862:[[7840,774]],7863:[[7841,774]],7864:[[69,803],,{770:7878}],7865:[[101,803],,{770:7879}],7866:[[69,777]],7867:[[101,777]],7868:[[69,771]],7869:[[101,771]],7870:[[202,769]],7871:[[234,769]],7872:[[202,768]],7873:[[234,768]],7874:[[202,777]],7875:[[234,777]],7876:[[202,771]],7877:[[234,771]],7878:[[7864,770]],7879:[[7865,770]],7880:[[73,777]],7881:[[105,777]],7882:[[73,803]],7883:[[105,803]],7884:[[79,803],,{770:7896}],7885:[[111,803],,{770:7897}],7886:[[79,777]],7887:[[111,777]],7888:[[212,769]],7889:[[244,769]],7890:[[212,768]],7891:[[244,768]],7892:[[212,777]],7893:[[244,777]],7894:[[212,771]],7895:[[244,771]],7896:[[7884,770]],7897:[[7885,770]],7898:[[416,769]],7899:[[417,769]],7900:[[416,768]],7901:[[417,768]],7902:[[416,777]],7903:[[417,777]],7904:[[416,771]],7905:[[417,771]],7906:[[416,803]],7907:[[417,803]],7908:[[85,803]],7909:[[117,803]],7910:[[85,777]],7911:[[117,777]],7912:[[431,769]],7913:[[432,769]],7914:[[431,768]],7915:[[432,768]],7916:[[431,777]],7917:[[432,777]],7918:[[431,771]],7919:[[432,771]],7920:[[431,803]],7921:[[432,803]],7922:[[89,768]],7923:[[121,768]],7924:[[89,803]],7925:[[121,803]],7926:[[89,777]],7927:[[121,777]],7928:[[89,771]],7929:[[121,771]]},7936:{7936:[[945,787],,{768:7938,769:7940,834:7942,837:8064}],7937:[[945,788],,{768:7939,769:7941,834:7943,837:8065}],7938:[[7936,768],,{837:8066}],7939:[[7937,768],,{837:8067}],7940:[[7936,769],,{837:8068}],7941:[[7937,769],,{837:8069}],7942:[[7936,834],,{837:8070}],7943:[[7937,834],,{837:8071}],7944:[[913,787],,{768:7946,769:7948,834:7950,837:8072}],7945:[[913,788],,{768:7947,769:7949,834:7951,837:8073}],7946:[[7944,768],,{837:8074}],7947:[[7945,768],,{837:8075}],7948:[[7944,769],,{837:8076}],7949:[[7945,769],,{837:8077}],7950:[[7944,834],,{837:8078}],7951:[[7945,834],,{837:8079}],7952:[[949,787],,{768:7954,769:7956}],7953:[[949,788],,{768:7955,769:7957}],7954:[[7952,768]],7955:[[7953,768]],7956:[[7952,769]],7957:[[7953,769]],7960:[[917,787],,{768:7962,769:7964}],7961:[[917,788],,{768:7963,769:7965}],7962:[[7960,768]],7963:[[7961,768]],7964:[[7960,769]],7965:[[7961,769]],7968:[[951,787],,{768:7970,769:7972,834:7974,837:8080}],7969:[[951,788],,{768:7971,769:7973,834:7975,837:8081}],7970:[[7968,768],,{837:8082}],7971:[[7969,768],,{837:8083}],7972:[[7968,769],,{837:8084}],7973:[[7969,769],,{837:8085}],7974:[[7968,834],,{837:8086}],7975:[[7969,834],,{837:8087}],7976:[[919,787],,{768:7978,769:7980,834:7982,837:8088}],7977:[[919,788],,{768:7979,769:7981,834:7983,837:8089}],7978:[[7976,768],,{837:8090}],7979:[[7977,768],,{837:8091}],7980:[[7976,769],,{837:8092}],7981:[[7977,769],,{837:8093}],7982:[[7976,834],,{837:8094}],7983:[[7977,834],,{837:8095}],7984:[[953,787],,{768:7986,769:7988,834:7990}],7985:[[953,788],,{768:7987,769:7989,834:7991}],7986:[[7984,768]],7987:[[7985,768]],7988:[[7984,769]],7989:[[7985,769]],7990:[[7984,834]],7991:[[7985,834]],7992:[[921,787],,{768:7994,769:7996,834:7998}],7993:[[921,788],,{768:7995,769:7997,834:7999}],7994:[[7992,768]],7995:[[7993,768]],7996:[[7992,769]],7997:[[7993,769]],7998:[[7992,834]],7999:[[7993,834]],8e3:[[959,787],,{768:8002,769:8004}],8001:[[959,788],,{768:8003,769:8005}],8002:[[8e3,768]],8003:[[8001,768]],8004:[[8e3,769]],8005:[[8001,769]],8008:[[927,787],,{768:8010,769:8012}],8009:[[927,788],,{768:8011,769:8013}],8010:[[8008,768]],8011:[[8009,768]],8012:[[8008,769]],8013:[[8009,769]],8016:[[965,787],,{768:8018,769:8020,834:8022}],8017:[[965,788],,{768:8019,769:8021,834:8023}],8018:[[8016,768]],8019:[[8017,768]],8020:[[8016,769]],8021:[[8017,769]],8022:[[8016,834]],8023:[[8017,834]],8025:[[933,788],,{768:8027,769:8029,834:8031}],8027:[[8025,768]],8029:[[8025,769]],8031:[[8025,834]],8032:[[969,787],,{768:8034,769:8036,834:8038,837:8096}],8033:[[969,788],,{768:8035,769:8037,834:8039,837:8097}],8034:[[8032,768],,{837:8098}],8035:[[8033,768],,{837:8099}],8036:[[8032,769],,{837:8100}],8037:[[8033,769],,{837:8101}],8038:[[8032,834],,{837:8102}],8039:[[8033,834],,{837:8103}],8040:[[937,787],,{768:8042,769:8044,834:8046,837:8104}],8041:[[937,788],,{768:8043,769:8045,834:8047,837:8105}],8042:[[8040,768],,{837:8106}],8043:[[8041,768],,{837:8107}],8044:[[8040,769],,{837:8108}],8045:[[8041,769],,{837:8109}],8046:[[8040,834],,{837:8110}],8047:[[8041,834],,{837:8111}],8048:[[945,768],,{837:8114}],8049:[[940]],8050:[[949,768]],8051:[[941]],8052:[[951,768],,{837:8130}],8053:[[942]],8054:[[953,768]],8055:[[943]],8056:[[959,768]],8057:[[972]],8058:[[965,768]],8059:[[973]],8060:[[969,768],,{837:8178}],8061:[[974]],8064:[[7936,837]],8065:[[7937,837]],8066:[[7938,837]],8067:[[7939,837]],8068:[[7940,837]],8069:[[7941,837]],8070:[[7942,837]],8071:[[7943,837]],8072:[[7944,837]],8073:[[7945,837]],8074:[[7946,837]],8075:[[7947,837]],8076:[[7948,837]],8077:[[7949,837]],8078:[[7950,837]],8079:[[7951,837]],8080:[[7968,837]],8081:[[7969,837]],8082:[[7970,837]],8083:[[7971,837]],8084:[[7972,837]],8085:[[7973,837]],8086:[[7974,837]],8087:[[7975,837]],8088:[[7976,837]],8089:[[7977,837]],8090:[[7978,837]],8091:[[7979,837]],8092:[[7980,837]],8093:[[7981,837]],8094:[[7982,837]],8095:[[7983,837]],8096:[[8032,837]],8097:[[8033,837]],8098:[[8034,837]],8099:[[8035,837]],8100:[[8036,837]],8101:[[8037,837]],8102:[[8038,837]],8103:[[8039,837]],8104:[[8040,837]],8105:[[8041,837]],8106:[[8042,837]],8107:[[8043,837]],8108:[[8044,837]],8109:[[8045,837]],8110:[[8046,837]],8111:[[8047,837]],8112:[[945,774]],8113:[[945,772]],8114:[[8048,837]],8115:[[945,837]],8116:[[940,837]],8118:[[945,834],,{837:8119}],8119:[[8118,837]],8120:[[913,774]],8121:[[913,772]],8122:[[913,768]],8123:[[902]],8124:[[913,837]],8125:[[32,787],256],8126:[[953]],8127:[[32,787],256,{768:8141,769:8142,834:8143}],8128:[[32,834],256],8129:[[168,834]],8130:[[8052,837]],8131:[[951,837]],8132:[[942,837]],8134:[[951,834],,{837:8135}],8135:[[8134,837]],8136:[[917,768]],8137:[[904]],8138:[[919,768]],8139:[[905]],8140:[[919,837]],8141:[[8127,768]],8142:[[8127,769]],8143:[[8127,834]],8144:[[953,774]],8145:[[953,772]],8146:[[970,768]],8147:[[912]],8150:[[953,834]],8151:[[970,834]],8152:[[921,774]],8153:[[921,772]],8154:[[921,768]],8155:[[906]],8157:[[8190,768]],8158:[[8190,769]],8159:[[8190,834]],8160:[[965,774]],8161:[[965,772]],8162:[[971,768]],8163:[[944]],8164:[[961,787]],8165:[[961,788]],8166:[[965,834]],8167:[[971,834]],8168:[[933,774]],8169:[[933,772]],8170:[[933,768]],8171:[[910]],8172:[[929,788]],8173:[[168,768]],8174:[[901]],8175:[[96]],8178:[[8060,837]],8179:[[969,837]],8180:[[974,837]],8182:[[969,834],,{837:8183}],8183:[[8182,837]],8184:[[927,768]],8185:[[908]],8186:[[937,768]],8187:[[911]],8188:[[937,837]],8189:[[180]],8190:[[32,788],256,{768:8157,769:8158,834:8159}]},8192:{8192:[[8194]],8193:[[8195]],8194:[[32],256],8195:[[32],256],8196:[[32],256],8197:[[32],256],8198:[[32],256],8199:[[32],256],8200:[[32],256],8201:[[32],256],8202:[[32],256],8209:[[8208],256],8215:[[32,819],256],8228:[[46],256],8229:[[46,46],256],8230:[[46,46,46],256],8239:[[32],256],8243:[[8242,8242],256],8244:[[8242,8242,8242],256],8246:[[8245,8245],256],8247:[[8245,8245,8245],256],8252:[[33,33],256],8254:[[32,773],256],8263:[[63,63],256],8264:[[63,33],256],8265:[[33,63],256],8279:[[8242,8242,8242,8242],256],8287:[[32],256],8304:[[48],256],8305:[[105],256],8308:[[52],256],8309:[[53],256],8310:[[54],256],8311:[[55],256],8312:[[56],256],8313:[[57],256],8314:[[43],256],8315:[[8722],256],8316:[[61],256],8317:[[40],256],8318:[[41],256],8319:[[110],256],8320:[[48],256],8321:[[49],256],8322:[[50],256],8323:[[51],256],8324:[[52],256],8325:[[53],256],8326:[[54],256],8327:[[55],256],8328:[[56],256],8329:[[57],256],8330:[[43],256],8331:[[8722],256],8332:[[61],256],8333:[[40],256],8334:[[41],256],8336:[[97],256],8337:[[101],256],8338:[[111],256],8339:[[120],256],8340:[[601],256],8341:[[104],256],8342:[[107],256],8343:[[108],256],8344:[[109],256],8345:[[110],256],8346:[[112],256],8347:[[115],256],8348:[[116],256],8360:[[82,115],256],8400:[,230],8401:[,230],8402:[,1],8403:[,1],8404:[,230],8405:[,230],8406:[,230],8407:[,230],8408:[,1],8409:[,1],8410:[,1],8411:[,230],8412:[,230],8417:[,230],8421:[,1],8422:[,1],8423:[,230],8424:[,220],8425:[,230],8426:[,1],8427:[,1],8428:[,220],8429:[,220],8430:[,220],8431:[,220],8432:[,230]},8448:{8448:[[97,47,99],256],8449:[[97,47,115],256],8450:[[67],256],8451:[[176,67],256],8453:[[99,47,111],256],8454:[[99,47,117],256],8455:[[400],256],8457:[[176,70],256],8458:[[103],256],8459:[[72],256],8460:[[72],256],8461:[[72],256],8462:[[104],256],8463:[[295],256],8464:[[73],256],8465:[[73],256],8466:[[76],256],8467:[[108],256],8469:[[78],256],8470:[[78,111],256],8473:[[80],256],8474:[[81],256],8475:[[82],256],8476:[[82],256],8477:[[82],256],8480:[[83,77],256],8481:[[84,69,76],256],8482:[[84,77],256],8484:[[90],256],8486:[[937]],8488:[[90],256],8490:[[75]],8491:[[197]],8492:[[66],256],8493:[[67],256],8495:[[101],256],8496:[[69],256],8497:[[70],256],8499:[[77],256],8500:[[111],256],8501:[[1488],256],8502:[[1489],256],8503:[[1490],256],8504:[[1491],256],8505:[[105],256],8507:[[70,65,88],256],8508:[[960],256],8509:[[947],256],8510:[[915],256],8511:[[928],256],8512:[[8721],256],8517:[[68],256],8518:[[100],256],8519:[[101],256],8520:[[105],256],8521:[[106],256],8528:[[49,8260,55],256],8529:[[49,8260,57],256],8530:[[49,8260,49,48],256],8531:[[49,8260,51],256],8532:[[50,8260,51],256],8533:[[49,8260,53],256],8534:[[50,8260,53],256],8535:[[51,8260,53],256],8536:[[52,8260,53],256],8537:[[49,8260,54],256],8538:[[53,8260,54],256],8539:[[49,8260,56],256],8540:[[51,8260,56],256],8541:[[53,8260,56],256],8542:[[55,8260,56],256],8543:[[49,8260],256],8544:[[73],256],8545:[[73,73],256],8546:[[73,73,73],256],8547:[[73,86],256],8548:[[86],256],8549:[[86,73],256],8550:[[86,73,73],256],8551:[[86,73,73,73],256],8552:[[73,88],256],8553:[[88],256],8554:[[88,73],256],8555:[[88,73,73],256],8556:[[76],256],8557:[[67],256],8558:[[68],256],8559:[[77],256],8560:[[105],256],8561:[[105,105],256],8562:[[105,105,105],256],8563:[[105,118],256],8564:[[118],256],8565:[[118,105],256],8566:[[118,105,105],256],8567:[[118,105,105,105],256],8568:[[105,120],256],8569:[[120],256],8570:[[120,105],256],8571:[[120,105,105],256],8572:[[108],256],8573:[[99],256],8574:[[100],256],8575:[[109],256],8585:[[48,8260,51],256],8592:[,,{824:8602}],8594:[,,{824:8603}],8596:[,,{824:8622}],8602:[[8592,824]],8603:[[8594,824]],8622:[[8596,824]],8653:[[8656,824]],8654:[[8660,824]],8655:[[8658,824]],8656:[,,{824:8653}],8658:[,,{824:8655}],8660:[,,{824:8654}]},8704:{8707:[,,{824:8708}],8708:[[8707,824]],8712:[,,{824:8713}],8713:[[8712,824]],8715:[,,{824:8716}],8716:[[8715,824]],8739:[,,{824:8740}],8740:[[8739,824]],8741:[,,{824:8742}],8742:[[8741,824]],8748:[[8747,8747],256],8749:[[8747,8747,8747],256],8751:[[8750,8750],256],8752:[[8750,8750,8750],256],8764:[,,{824:8769}],8769:[[8764,824]],8771:[,,{824:8772}],8772:[[8771,824]],8773:[,,{824:8775}],8775:[[8773,824]],8776:[,,{824:8777}],8777:[[8776,824]],8781:[,,{824:8813}],8800:[[61,824]],8801:[,,{824:8802}],8802:[[8801,824]],8804:[,,{824:8816}],8805:[,,{824:8817}],8813:[[8781,824]],8814:[[60,824]],8815:[[62,824]],8816:[[8804,824]],8817:[[8805,824]],8818:[,,{824:8820}],8819:[,,{824:8821}],8820:[[8818,824]],8821:[[8819,824]],8822:[,,{824:8824}],8823:[,,{824:8825}],8824:[[8822,824]],8825:[[8823,824]],8826:[,,{824:8832}],8827:[,,{824:8833}],8828:[,,{824:8928}],8829:[,,{824:8929}],8832:[[8826,824]],8833:[[8827,824]],8834:[,,{824:8836}],8835:[,,{824:8837}],8836:[[8834,824]],8837:[[8835,824]],8838:[,,{824:8840}],8839:[,,{824:8841}],8840:[[8838,824]],8841:[[8839,824]],8849:[,,{824:8930}],8850:[,,{824:8931}],8866:[,,{824:8876}],8872:[,,{824:8877}],8873:[,,{824:8878}],8875:[,,{824:8879}],8876:[[8866,824]],8877:[[8872,824]],8878:[[8873,824]],8879:[[8875,824]],8882:[,,{824:8938}],8883:[,,{824:8939}],8884:[,,{824:8940}],8885:[,,{824:8941}],8928:[[8828,824]],8929:[[8829,824]],8930:[[8849,824]],8931:[[8850,824]],8938:[[8882,824]],8939:[[8883,824]],8940:[[8884,824]],8941:[[8885,824]]},8960:{9001:[[12296]],9002:[[12297]]},9216:{9312:[[49],256],9313:[[50],256],9314:[[51],256],9315:[[52],256],9316:[[53],256],9317:[[54],256],9318:[[55],256],9319:[[56],256],9320:[[57],256],9321:[[49,48],256],9322:[[49,49],256],9323:[[49,50],256],9324:[[49,51],256],9325:[[49,52],256],9326:[[49,53],256],9327:[[49,54],256],9328:[[49,55],256],9329:[[49,56],256],9330:[[49,57],256],9331:[[50,48],256],9332:[[40,49,41],256],9333:[[40,50,41],256],9334:[[40,51,41],256],9335:[[40,52,41],256],9336:[[40,53,41],256],9337:[[40,54,41],256],9338:[[40,55,41],256],9339:[[40,56,41],256],9340:[[40,57,41],256],9341:[[40,49,48,41],256],9342:[[40,49,49,41],256],9343:[[40,49,50,41],256],9344:[[40,49,51,41],256],9345:[[40,49,52,41],256],9346:[[40,49,53,41],256],9347:[[40,49,54,41],256],9348:[[40,49,55,41],256],9349:[[40,49,56,41],256],9350:[[40,49,57,41],256],9351:[[40,50,48,41],256],9352:[[49,46],256],9353:[[50,46],256],9354:[[51,46],256],9355:[[52,46],256],9356:[[53,46],256],9357:[[54,46],256],9358:[[55,46],256],9359:[[56,46],256],9360:[[57,46],256],9361:[[49,48,46],256],9362:[[49,49,46],256],9363:[[49,50,46],256],9364:[[49,51,46],256],9365:[[49,52,46],256],9366:[[49,53,46],256],9367:[[49,54,46],256],9368:[[49,55,46],256],9369:[[49,56,46],256],9370:[[49,57,46],256],9371:[[50,48,46],256],9372:[[40,97,41],256],9373:[[40,98,41],256],9374:[[40,99,41],256],9375:[[40,100,41],256],9376:[[40,101,41],256],9377:[[40,102,41],256],9378:[[40,103,41],256],9379:[[40,104,41],256],9380:[[40,105,41],256],9381:[[40,106,41],256],9382:[[40,107,41],256],9383:[[40,108,41],256],9384:[[40,109,41],256],9385:[[40,110,41],256],9386:[[40,111,41],256],9387:[[40,112,41],256],9388:[[40,113,41],256],9389:[[40,114,41],256],9390:[[40,115,41],256],9391:[[40,116,41],256],9392:[[40,117,41],256],9393:[[40,118,41],256],9394:[[40,119,41],256],9395:[[40,120,41],256],9396:[[40,121,41],256],9397:[[40,122,41],256],9398:[[65],256],9399:[[66],256],9400:[[67],256],9401:[[68],256],9402:[[69],256],9403:[[70],256],9404:[[71],256],9405:[[72],256],9406:[[73],256],9407:[[74],256],9408:[[75],256],9409:[[76],256],9410:[[77],256],9411:[[78],256],9412:[[79],256],9413:[[80],256],9414:[[81],256],9415:[[82],256],9416:[[83],256],9417:[[84],256],9418:[[85],256],9419:[[86],256],9420:[[87],256],9421:[[88],256],9422:[[89],256],9423:[[90],256],9424:[[97],256],9425:[[98],256],9426:[[99],256],9427:[[100],256],9428:[[101],256],9429:[[102],256],9430:[[103],256],9431:[[104],256],9432:[[105],256],9433:[[106],256],9434:[[107],256],9435:[[108],256],9436:[[109],256],9437:[[110],256],9438:[[111],256],9439:[[112],256],9440:[[113],256],9441:[[114],256],9442:[[115],256],9443:[[116],256],9444:[[117],256],9445:[[118],256],9446:[[119],256],9447:[[120],256],9448:[[121],256],9449:[[122],256],9450:[[48],256]},10752:{10764:[[8747,8747,8747,8747],256],10868:[[58,58,61],256],10869:[[61,61],256],10870:[[61,61,61],256],10972:[[10973,824],512]},11264:{11388:[[106],256],11389:[[86],256],11503:[,230],11504:[,230],11505:[,230]},11520:{11631:[[11617],256],11647:[,9],11744:[,230],11745:[,230],11746:[,230],11747:[,230],11748:[,230],11749:[,230],11750:[,230],11751:[,230],11752:[,230],11753:[,230],11754:[,230],11755:[,230],11756:[,230],11757:[,230],11758:[,230],11759:[,230],11760:[,230],11761:[,230],11762:[,230],11763:[,230],11764:[,230],11765:[,230],11766:[,230],11767:[,230],11768:[,230],11769:[,230],11770:[,230],11771:[,230],11772:[,230],11773:[,230],11774:[,230],11775:[,230]},11776:{11935:[[27597],256],12019:[[40863],256]},12032:{12032:[[19968],256],12033:[[20008],256],12034:[[20022],256],12035:[[20031],256],12036:[[20057],256],12037:[[20101],256],12038:[[20108],256],12039:[[20128],256],12040:[[20154],256],12041:[[20799],256],12042:[[20837],256],12043:[[20843],256],12044:[[20866],256],12045:[[20886],256],12046:[[20907],256],12047:[[20960],256],12048:[[20981],256],12049:[[20992],256],12050:[[21147],256],12051:[[21241],256],12052:[[21269],256],12053:[[21274],256],12054:[[21304],256],12055:[[21313],256],12056:[[21340],256],12057:[[21353],256],12058:[[21378],256],12059:[[21430],256],12060:[[21448],256],12061:[[21475],256],12062:[[22231],256],12063:[[22303],256],12064:[[22763],256],12065:[[22786],256],12066:[[22794],256],12067:[[22805],256],12068:[[22823],256],12069:[[22899],256],12070:[[23376],256],12071:[[23424],256],12072:[[23544],256],12073:[[23567],256],12074:[[23586],256],12075:[[23608],256],12076:[[23662],256],12077:[[23665],256],12078:[[24027],256],12079:[[24037],256],12080:[[24049],256],12081:[[24062],256],12082:[[24178],256],12083:[[24186],256],12084:[[24191],256],12085:[[24308],256],12086:[[24318],256],12087:[[24331],256],12088:[[24339],256],12089:[[24400],256],12090:[[24417],256],12091:[[24435],256],12092:[[24515],256],12093:[[25096],256],12094:[[25142],256],12095:[[25163],256],12096:[[25903],256],12097:[[25908],256],12098:[[25991],256],12099:[[26007],256],12100:[[26020],256],12101:[[26041],256],12102:[[26080],256],12103:[[26085],256],12104:[[26352],256],12105:[[26376],256],12106:[[26408],256],12107:[[27424],256],12108:[[27490],256],12109:[[27513],256],12110:[[27571],256],12111:[[27595],256],12112:[[27604],256],12113:[[27611],256],12114:[[27663],256],12115:[[27668],256],12116:[[27700],256],12117:[[28779],256],12118:[[29226],256],12119:[[29238],256],12120:[[29243],256],12121:[[29247],256],12122:[[29255],256],12123:[[29273],256],12124:[[29275],256],12125:[[29356],256],12126:[[29572],256],12127:[[29577],256],12128:[[29916],256],12129:[[29926],256],12130:[[29976],256],12131:[[29983],256],12132:[[29992],256],12133:[[3e4],256],12134:[[30091],256],12135:[[30098],256],12136:[[30326],256],12137:[[30333],256],12138:[[30382],256],12139:[[30399],256],12140:[[30446],256],12141:[[30683],256],12142:[[30690],256],12143:[[30707],256],12144:[[31034],256],12145:[[31160],256],12146:[[31166],256],12147:[[31348],256],12148:[[31435],256],12149:[[31481],256],12150:[[31859],256],12151:[[31992],256],12152:[[32566],256],12153:[[32593],256],12154:[[32650],256],12155:[[32701],256],12156:[[32769],256],12157:[[32780],256],12158:[[32786],256],12159:[[32819],256],12160:[[32895],256],12161:[[32905],256],12162:[[33251],256],12163:[[33258],256],12164:[[33267],256],12165:[[33276],256],12166:[[33292],256],12167:[[33307],256],12168:[[33311],256],12169:[[33390],256],12170:[[33394],256],12171:[[33400],256],12172:[[34381],256],12173:[[34411],256],12174:[[34880],256],12175:[[34892],256],12176:[[34915],256],12177:[[35198],256],12178:[[35211],256],12179:[[35282],256],12180:[[35328],256],12181:[[35895],256],12182:[[35910],256],12183:[[35925],256],12184:[[35960],256],12185:[[35997],256],12186:[[36196],256],12187:[[36208],256],12188:[[36275],256],12189:[[36523],256],12190:[[36554],256],12191:[[36763],256],12192:[[36784],256],12193:[[36789],256],12194:[[37009],256],12195:[[37193],256],12196:[[37318],256],12197:[[37324],256],12198:[[37329],256],12199:[[38263],256],12200:[[38272],256],12201:[[38428],256],12202:[[38582],256],12203:[[38585],256],12204:[[38632],256],12205:[[38737],256],12206:[[38750],256],12207:[[38754],256],12208:[[38761],256],12209:[[38859],256],12210:[[38893],256],12211:[[38899],256],12212:[[38913],256],12213:[[39080],256],12214:[[39131],256],12215:[[39135],256],12216:[[39318],256],12217:[[39321],256],12218:[[39340],256],12219:[[39592],256],12220:[[39640],256],12221:[[39647],256],12222:[[39717],256],12223:[[39727],256],12224:[[39730],256],12225:[[39740],256],12226:[[39770],256],12227:[[40165],256],12228:[[40565],256],12229:[[40575],256],12230:[[40613],256],12231:[[40635],256],12232:[[40643],256],12233:[[40653],256],12234:[[40657],256],12235:[[40697],256],12236:[[40701],256],12237:[[40718],256],12238:[[40723],256],12239:[[40736],256],12240:[[40763],256],12241:[[40778],256],12242:[[40786],256],12243:[[40845],256],12244:[[40860],256],12245:[[40864],256]},12288:{12288:[[32],256],12330:[,218],12331:[,228],12332:[,232],12333:[,222],12334:[,224],12335:[,224],12342:[[12306],256],12344:[[21313],256],12345:[[21316],256],12346:[[21317],256],12358:[,,{12441:12436}],12363:[,,{12441:12364}],12364:[[12363,12441]],12365:[,,{12441:12366}],12366:[[12365,12441]],12367:[,,{12441:12368}],12368:[[12367,12441]],12369:[,,{12441:12370}],12370:[[12369,12441]],12371:[,,{12441:12372}],12372:[[12371,12441]],12373:[,,{12441:12374}],12374:[[12373,12441]],12375:[,,{12441:12376}],12376:[[12375,12441]],12377:[,,{12441:12378}],12378:[[12377,12441]],12379:[,,{12441:12380}],12380:[[12379,12441]],12381:[,,{12441:12382}],12382:[[12381,12441]],12383:[,,{12441:12384}],12384:[[12383,12441]],12385:[,,{12441:12386}],12386:[[12385,12441]],12388:[,,{12441:12389}],12389:[[12388,12441]],12390:[,,{12441:12391}],12391:[[12390,12441]],12392:[,,{12441:12393}],12393:[[12392,12441]],12399:[,,{12441:12400,12442:12401}],12400:[[12399,12441]],12401:[[12399,12442]],12402:[,,{12441:12403,12442:12404}],12403:[[12402,12441]],12404:[[12402,12442]],12405:[,,{12441:12406,12442:12407}],12406:[[12405,12441]],12407:[[12405,12442]],12408:[,,{12441:12409,12442:12410}],12409:[[12408,12441]],12410:[[12408,12442]],12411:[,,{12441:12412,12442:12413}],12412:[[12411,12441]],12413:[[12411,12442]],12436:[[12358,12441]],12441:[,8],12442:[,8],12443:[[32,12441],256],12444:[[32,12442],256],12445:[,,{12441:12446}],12446:[[12445,12441]],12447:[[12424,12426],256],12454:[,,{12441:12532}],12459:[,,{12441:12460}],12460:[[12459,12441]],12461:[,,{12441:12462}],12462:[[12461,12441]],12463:[,,{12441:12464}],12464:[[12463,12441]],12465:[,,{12441:12466}],12466:[[12465,12441]],12467:[,,{12441:12468}],12468:[[12467,12441]],12469:[,,{12441:12470}],12470:[[12469,12441]],12471:[,,{12441:12472}],12472:[[12471,12441]],12473:[,,{12441:12474}],12474:[[12473,12441]],12475:[,,{12441:12476}],12476:[[12475,12441]],12477:[,,{12441:12478}],12478:[[12477,12441]],12479:[,,{12441:12480}],12480:[[12479,12441]],12481:[,,{12441:12482}],12482:[[12481,12441]],12484:[,,{12441:12485}],12485:[[12484,12441]],12486:[,,{12441:12487}],12487:[[12486,12441]],12488:[,,{12441:12489}],12489:[[12488,12441]],12495:[,,{12441:12496,12442:12497}],12496:[[12495,12441]],12497:[[12495,12442]],12498:[,,{12441:12499,12442:12500}],12499:[[12498,12441]],12500:[[12498,12442]],12501:[,,{12441:12502,12442:12503}],12502:[[12501,12441]],12503:[[12501,12442]],12504:[,,{12441:12505,12442:12506}],12505:[[12504,12441]],12506:[[12504,12442]],12507:[,,{12441:12508,12442:12509}],12508:[[12507,12441]],12509:[[12507,12442]],12527:[,,{12441:12535}],12528:[,,{12441:12536}],12529:[,,{12441:12537}],12530:[,,{12441:12538}],12532:[[12454,12441]],12535:[[12527,12441]],12536:[[12528,12441]],12537:[[12529,12441]],12538:[[12530,12441]],12541:[,,{12441:12542}],12542:[[12541,12441]],12543:[[12467,12488],256]},12544:{12593:[[4352],256],12594:[[4353],256],12595:[[4522],256],12596:[[4354],256],12597:[[4524],256],12598:[[4525],256],12599:[[4355],256],12600:[[4356],256],12601:[[4357],256],12602:[[4528],256],12603:[[4529],256],12604:[[4530],256],12605:[[4531],256],12606:[[4532],256],12607:[[4533],256],12608:[[4378],256],12609:[[4358],256],12610:[[4359],256],12611:[[4360],256],12612:[[4385],256],12613:[[4361],256],12614:[[4362],256],12615:[[4363],256],12616:[[4364],256],12617:[[4365],256],12618:[[4366],256],12619:[[4367],256],12620:[[4368],256],12621:[[4369],256],12622:[[4370],256],12623:[[4449],256],12624:[[4450],256],12625:[[4451],256],12626:[[4452],256],12627:[[4453],256],12628:[[4454],256],12629:[[4455],256],12630:[[4456],256],12631:[[4457],256],12632:[[4458],256],12633:[[4459],256],12634:[[4460],256],12635:[[4461],256],12636:[[4462],256],12637:[[4463],256],12638:[[4464],256],12639:[[4465],256],12640:[[4466],256],12641:[[4467],256],12642:[[4468],256],12643:[[4469],256],12644:[[4448],256],12645:[[4372],256],12646:[[4373],256],12647:[[4551],256],12648:[[4552],256],12649:[[4556],256],12650:[[4558],256],12651:[[4563],256],12652:[[4567],256],12653:[[4569],256],12654:[[4380],256],12655:[[4573],256],12656:[[4575],256],12657:[[4381],256],12658:[[4382],256],12659:[[4384],256],12660:[[4386],256],12661:[[4387],256],12662:[[4391],256],12663:[[4393],256],12664:[[4395],256],12665:[[4396],256],12666:[[4397],256],12667:[[4398],256],12668:[[4399],256],12669:[[4402],256],12670:[[4406],256],12671:[[4416],256],12672:[[4423],256],12673:[[4428],256],12674:[[4593],256],12675:[[4594],256],12676:[[4439],256],12677:[[4440],256],12678:[[4441],256],12679:[[4484],256],12680:[[4485],256],12681:[[4488],256],12682:[[4497],256],12683:[[4498],256],12684:[[4500],256],12685:[[4510],256],12686:[[4513],256],12690:[[19968],256],12691:[[20108],256],12692:[[19977],256],12693:[[22235],256],12694:[[19978],256],12695:[[20013],256],12696:[[19979],256],12697:[[30002],256],12698:[[20057],256],12699:[[19993],256],12700:[[19969],256],12701:[[22825],256],12702:[[22320],256],12703:[[20154],256]},12800:{12800:[[40,4352,41],256],12801:[[40,4354,41],256],12802:[[40,4355,41],256],12803:[[40,4357,41],256],12804:[[40,4358,41],256],12805:[[40,4359,41],256],12806:[[40,4361,41],256],12807:[[40,4363,41],256],12808:[[40,4364,41],256],12809:[[40,4366,41],256],12810:[[40,4367,41],256],12811:[[40,4368,41],256],12812:[[40,4369,41],256],12813:[[40,4370,41],256],12814:[[40,4352,4449,41],256],12815:[[40,4354,4449,41],256],12816:[[40,4355,4449,41],256],12817:[[40,4357,4449,41],256],12818:[[40,4358,4449,41],256],12819:[[40,4359,4449,41],256],12820:[[40,4361,4449,41],256],12821:[[40,4363,4449,41],256],12822:[[40,4364,4449,41],256],12823:[[40,4366,4449,41],256],12824:[[40,4367,4449,41],256],12825:[[40,4368,4449,41],256],12826:[[40,4369,4449,41],256],12827:[[40,4370,4449,41],256],12828:[[40,4364,4462,41],256],12829:[[40,4363,4457,4364,4453,4523,41],256],12830:[[40,4363,4457,4370,4462,41],256],12832:[[40,19968,41],256],12833:[[40,20108,41],256],12834:[[40,19977,41],256],12835:[[40,22235,41],256],12836:[[40,20116,41],256],12837:[[40,20845,41],256],12838:[[40,19971,41],256],12839:[[40,20843,41],256],12840:[[40,20061,41],256],12841:[[40,21313,41],256],12842:[[40,26376,41],256],12843:[[40,28779,41],256],12844:[[40,27700,41],256],12845:[[40,26408,41],256],12846:[[40,37329,41],256],12847:[[40,22303,41],256],12848:[[40,26085,41],256],12849:[[40,26666,41],256],12850:[[40,26377,41],256],12851:[[40,31038,41],256],12852:[[40,21517,41],256],12853:[[40,29305,41],256],12854:[[40,36001,41],256],12855:[[40,31069,41],256],12856:[[40,21172,41],256],12857:[[40,20195,41],256],12858:[[40,21628,41],256],12859:[[40,23398,41],256],12860:[[40,30435,41],256],12861:[[40,20225,41],256],12862:[[40,36039,41],256],12863:[[40,21332,41],256],12864:[[40,31085,41],256],12865:[[40,20241,41],256],12866:[[40,33258,41],256],12867:[[40,33267,41],256],12868:[[21839],256],12869:[[24188],256],12870:[[25991],256],12871:[[31631],256],12880:[[80,84,69],256],12881:[[50,49],256],12882:[[50,50],256],12883:[[50,51],256],12884:[[50,52],256],12885:[[50,53],256],12886:[[50,54],256],12887:[[50,55],256],12888:[[50,56],256],12889:[[50,57],256],12890:[[51,48],256],12891:[[51,49],256],12892:[[51,50],256],12893:[[51,51],256],12894:[[51,52],256],12895:[[51,53],256],12896:[[4352],256],12897:[[4354],256],12898:[[4355],256],12899:[[4357],256],12900:[[4358],256],12901:[[4359],256],12902:[[4361],256],12903:[[4363],256],12904:[[4364],256],12905:[[4366],256],12906:[[4367],256],12907:[[4368],256],12908:[[4369],256],12909:[[4370],256],12910:[[4352,4449],256],12911:[[4354,4449],256],12912:[[4355,4449],256],12913:[[4357,4449],256],12914:[[4358,4449],256],12915:[[4359,4449],256],12916:[[4361,4449],256],12917:[[4363,4449],256],12918:[[4364,4449],256],12919:[[4366,4449],256],12920:[[4367,4449],256],12921:[[4368,4449],256],12922:[[4369,4449],256],12923:[[4370,4449],256],12924:[[4366,4449,4535,4352,4457],256],12925:[[4364,4462,4363,4468],256],12926:[[4363,4462],256],12928:[[19968],256],12929:[[20108],256],12930:[[19977],256],12931:[[22235],256],12932:[[20116],256],12933:[[20845],256],12934:[[19971],256],12935:[[20843],256],12936:[[20061],256],12937:[[21313],256],12938:[[26376],256],12939:[[28779],256],12940:[[27700],256],12941:[[26408],256],12942:[[37329],256],12943:[[22303],256],12944:[[26085],256],12945:[[26666],256],12946:[[26377],256],12947:[[31038],256],12948:[[21517],256],12949:[[29305],256],12950:[[36001],256],12951:[[31069],256],12952:[[21172],256],12953:[[31192],256],12954:[[30007],256],12955:[[22899],256],12956:[[36969],256],12957:[[20778],256],12958:[[21360],256],12959:[[27880],256],12960:[[38917],256],12961:[[20241],256],12962:[[20889],256],12963:[[27491],256],12964:[[19978],256],12965:[[20013],256],12966:[[19979],256],12967:[[24038],256],12968:[[21491],256],12969:[[21307],256],12970:[[23447],256],12971:[[23398],256],12972:[[30435],256],12973:[[20225],256],12974:[[36039],256],12975:[[21332],256],12976:[[22812],256],12977:[[51,54],256],12978:[[51,55],256],12979:[[51,56],256],12980:[[51,57],256],12981:[[52,48],256],12982:[[52,49],256],12983:[[52,50],256],12984:[[52,51],256],12985:[[52,52],256],12986:[[52,53],256],12987:[[52,54],256],12988:[[52,55],256],12989:[[52,56],256],12990:[[52,57],256],12991:[[53,48],256],12992:[[49,26376],256],12993:[[50,26376],256],12994:[[51,26376],256],12995:[[52,26376],256],12996:[[53,26376],256],12997:[[54,26376],256],12998:[[55,26376],256],12999:[[56,26376],256],13e3:[[57,26376],256],13001:[[49,48,26376],256],13002:[[49,49,26376],256],13003:[[49,50,26376],256],13004:[[72,103],256],13005:[[101,114,103],256],13006:[[101,86],256],13007:[[76,84,68],256],13008:[[12450],256],13009:[[12452],256],13010:[[12454],256],13011:[[12456],256],13012:[[12458],256],13013:[[12459],256],13014:[[12461],256],13015:[[12463],256],13016:[[12465],256],13017:[[12467],256],13018:[[12469],256],13019:[[12471],256],13020:[[12473],256],13021:[[12475],256],13022:[[12477],256],13023:[[12479],256],13024:[[12481],256],13025:[[12484],256],13026:[[12486],256],13027:[[12488],256],13028:[[12490],256],13029:[[12491],256],13030:[[12492],256],13031:[[12493],256],13032:[[12494],256],13033:[[12495],256],13034:[[12498],256],13035:[[12501],256],13036:[[12504],256],13037:[[12507],256],13038:[[12510],256],13039:[[12511],256],13040:[[12512],256],13041:[[12513],256],13042:[[12514],256],13043:[[12516],256],13044:[[12518],256],13045:[[12520],256],13046:[[12521],256],13047:[[12522],256],13048:[[12523],256],13049:[[12524],256],13050:[[12525],256],13051:[[12527],256],13052:[[12528],256],13053:[[12529],256],13054:[[12530],256]},13056:{13056:[[12450,12497,12540,12488],256],13057:[[12450,12523,12501,12449],256],13058:[[12450,12531,12506,12450],256],13059:[[12450,12540,12523],256],13060:[[12452,12491,12531,12464],256],13061:[[12452,12531,12481],256],13062:[[12454,12457,12531],256],13063:[[12456,12473,12463,12540,12489],256],13064:[[12456,12540,12459,12540],256],13065:[[12458,12531,12473],256],13066:[[12458,12540,12512],256],13067:[[12459,12452,12522],256],13068:[[12459,12521,12483,12488],256],13069:[[12459,12525,12522,12540],256],13070:[[12460,12525,12531],256],13071:[[12460,12531,12510],256],13072:[[12462,12460],256],13073:[[12462,12491,12540],256],13074:[[12461,12517,12522,12540],256],13075:[[12462,12523,12480,12540],256],13076:[[12461,12525],256],13077:[[12461,12525,12464,12521,12512],256],13078:[[12461,12525,12513,12540,12488,12523],256],13079:[[12461,12525,12527,12483,12488],256],13080:[[12464,12521,12512],256],13081:[[12464,12521,12512,12488,12531],256],13082:[[12463,12523,12476,12452,12525],256],13083:[[12463,12525,12540,12493],256],13084:[[12465,12540,12473],256],13085:[[12467,12523,12490],256],13086:[[12467,12540,12509],256],13087:[[12469,12452,12463,12523],256],13088:[[12469,12531,12481,12540,12512],256],13089:[[12471,12522,12531,12464],256],13090:[[12475,12531,12481],256],13091:[[12475,12531,12488],256],13092:[[12480,12540,12473],256],13093:[[12487,12471],256],13094:[[12489,12523],256],13095:[[12488,12531],256],13096:[[12490,12494],256],13097:[[12494,12483,12488],256],13098:[[12495,12452,12484],256],13099:[[12497,12540,12475,12531,12488],256],13100:[[12497,12540,12484],256],13101:[[12496,12540,12524,12523],256],13102:[[12500,12450,12473,12488,12523],256],13103:[[12500,12463,12523],256],13104:[[12500,12467],256],13105:[[12499,12523],256],13106:[[12501,12449,12521,12483,12489],256],13107:[[12501,12451,12540,12488],256],13108:[[12502,12483,12471,12455,12523],256],13109:[[12501,12521,12531],256],13110:[[12504,12463,12479,12540,12523],256],13111:[[12506,12477],256],13112:[[12506,12491,12498],256],13113:[[12504,12523,12484],256],13114:[[12506,12531,12473],256],13115:[[12506,12540,12472],256],13116:[[12505,12540,12479],256],13117:[[12509,12452,12531,12488],256],13118:[[12508,12523,12488],256],13119:[[12507,12531],256],13120:[[12509,12531,12489],256],13121:[[12507,12540,12523],256],13122:[[12507,12540,12531],256],13123:[[12510,12452,12463,12525],256],13124:[[12510,12452,12523],256],13125:[[12510,12483,12495],256],13126:[[12510,12523,12463],256],13127:[[12510,12531,12471,12519,12531],256],13128:[[12511,12463,12525,12531],256],13129:[[12511,12522],256],13130:[[12511,12522,12496,12540,12523],256],13131:[[12513,12460],256],13132:[[12513,12460,12488,12531],256],13133:[[12513,12540,12488,12523],256],13134:[[12516,12540,12489],256],13135:[[12516,12540,12523],256],13136:[[12518,12450,12531],256],13137:[[12522,12483,12488,12523],256],13138:[[12522,12521],256],13139:[[12523,12500,12540],256],13140:[[12523,12540,12502,12523],256],13141:[[12524,12512],256],13142:[[12524,12531,12488,12466,12531],256],13143:[[12527,12483,12488],256],13144:[[48,28857],256],13145:[[49,28857],256],13146:[[50,28857],256],13147:[[51,28857],256],13148:[[52,28857],256],13149:[[53,28857],256],13150:[[54,28857],256],13151:[[55,28857],256],13152:[[56,28857],256],13153:[[57,28857],256],13154:[[49,48,28857],256],13155:[[49,49,28857],256],13156:[[49,50,28857],256],13157:[[49,51,28857],256],13158:[[49,52,28857],256],13159:[[49,53,28857],256],13160:[[49,54,28857],256],13161:[[49,55,28857],256],13162:[[49,56,28857],256],13163:[[49,57,28857],256],13164:[[50,48,28857],256],13165:[[50,49,28857],256],13166:[[50,50,28857],256],13167:[[50,51,28857],256],13168:[[50,52,28857],256],13169:[[104,80,97],256],13170:[[100,97],256],13171:[[65,85],256],13172:[[98,97,114],256],13173:[[111,86],256],13174:[[112,99],256],13175:[[100,109],256],13176:[[100,109,178],256],13177:[[100,109,179],256],13178:[[73,85],256],13179:[[24179,25104],256],13180:[[26157,21644],256],13181:[[22823,27491],256],13182:[[26126,27835],256],13183:[[26666,24335,20250,31038],256],13184:[[112,65],256],13185:[[110,65],256],13186:[[956,65],256],13187:[[109,65],256],13188:[[107,65],256],13189:[[75,66],256],13190:[[77,66],256],13191:[[71,66],256],13192:[[99,97,108],256],13193:[[107,99,97,108],256],13194:[[112,70],256],13195:[[110,70],256],13196:[[956,70],256],13197:[[956,103],256],13198:[[109,103],256],13199:[[107,103],256],13200:[[72,122],256],13201:[[107,72,122],256],13202:[[77,72,122],256],13203:[[71,72,122],256],13204:[[84,72,122],256],13205:[[956,8467],256],13206:[[109,8467],256],13207:[[100,8467],256],13208:[[107,8467],256],13209:[[102,109],256],13210:[[110,109],256],13211:[[956,109],256],13212:[[109,109],256],13213:[[99,109],256],13214:[[107,109],256],13215:[[109,109,178],256],13216:[[99,109,178],256],13217:[[109,178],256],13218:[[107,109,178],256],13219:[[109,109,179],256],13220:[[99,109,179],256],13221:[[109,179],256],13222:[[107,109,179],256],13223:[[109,8725,115],256],13224:[[109,8725,115,178],256],13225:[[80,97],256],13226:[[107,80,97],256],13227:[[77,80,97],256],13228:[[71,80,97],256],13229:[[114,97,100],256],13230:[[114,97,100,8725,115],256],13231:[[114,97,100,8725,115,178],256],13232:[[112,115],256],13233:[[110,115],256],13234:[[956,115],256],13235:[[109,115],256],13236:[[112,86],256],13237:[[110,86],256],13238:[[956,86],256],13239:[[109,86],256],13240:[[107,86],256],13241:[[77,86],256],13242:[[112,87],256],13243:[[110,87],256],13244:[[956,87],256],13245:[[109,87],256],13246:[[107,87],256],13247:[[77,87],256],13248:[[107,937],256],13249:[[77,937],256],13250:[[97,46,109,46],256],13251:[[66,113],256],13252:[[99,99],256],13253:[[99,100],256],13254:[[67,8725,107,103],256],13255:[[67,111,46],256],13256:[[100,66],256],13257:[[71,121],256],13258:[[104,97],256],13259:[[72,80],256],13260:[[105,110],256],13261:[[75,75],256],13262:[[75,77],256],13263:[[107,116],256],13264:[[108,109],256],13265:[[108,110],256],13266:[[108,111,103],256],13267:[[108,120],256],13268:[[109,98],256],13269:[[109,105,108],256],13270:[[109,111,108],256],13271:[[80,72],256],13272:[[112,46,109,46],256],13273:[[80,80,77],256],13274:[[80,82],256],13275:[[115,114],256],13276:[[83,118],256],13277:[[87,98],256],13278:[[86,8725,109],256],13279:[[65,8725,109],256],13280:[[49,26085],256],13281:[[50,26085],256],13282:[[51,26085],256],13283:[[52,26085],256],13284:[[53,26085],256],13285:[[54,26085],256],13286:[[55,26085],256],13287:[[56,26085],256],13288:[[57,26085],256],13289:[[49,48,26085],256],13290:[[49,49,26085],256],13291:[[49,50,26085],256],13292:[[49,51,26085],256],13293:[[49,52,26085],256],13294:[[49,53,26085],256],13295:[[49,54,26085],256],13296:[[49,55,26085],256],13297:[[49,56,26085],256],13298:[[49,57,26085],256],13299:[[50,48,26085],256],13300:[[50,49,26085],256],13301:[[50,50,26085],256],13302:[[50,51,26085],256],13303:[[50,52,26085],256],13304:[[50,53,26085],256],13305:[[50,54,26085],256],13306:[[50,55,26085],256],13307:[[50,56,26085],256],13308:[[50,57,26085],256],13309:[[51,48,26085],256],13310:[[51,49,26085],256],13311:[[103,97,108],256]},27136:{92912:[,1],92913:[,1],92914:[,1],92915:[,1],92916:[,1]},27392:{92976:[,230],92977:[,230],92978:[,230],92979:[,230],92980:[,230],92981:[,230],92982:[,230]},42496:{42607:[,230],42612:[,230],42613:[,230],42614:[,230],42615:[,230],42616:[,230],42617:[,230],42618:[,230],42619:[,230],42620:[,230],42621:[,230],42652:[[1098],256],42653:[[1100],256],42655:[,230],42736:[,230],42737:[,230]},42752:{42864:[[42863],256],43e3:[[294],256],43001:[[339],256]},43008:{43014:[,9],43204:[,9],43232:[,230],43233:[,230],43234:[,230],43235:[,230],43236:[,230],43237:[,230],43238:[,230],43239:[,230],43240:[,230],43241:[,230],43242:[,230],43243:[,230],43244:[,230],43245:[,230],43246:[,230],43247:[,230],43248:[,230],43249:[,230]},43264:{43307:[,220],43308:[,220],43309:[,220],43347:[,9],43443:[,7],43456:[,9]},43520:{43696:[,230],43698:[,230],43699:[,230],43700:[,220],43703:[,230],43704:[,230],43710:[,230],43711:[,230],43713:[,230],43766:[,9]},43776:{43868:[[42791],256],43869:[[43831],256],43870:[[619],256],43871:[[43858],256],44013:[,9]},48128:{113822:[,1]},53504:{119134:[[119127,119141],512],119135:[[119128,119141],512],119136:[[119135,119150],512],119137:[[119135,119151],512],119138:[[119135,119152],512],119139:[[119135,119153],512],119140:[[119135,119154],512],119141:[,216],119142:[,216],119143:[,1],119144:[,1],119145:[,1],119149:[,226],119150:[,216],119151:[,216],119152:[,216],119153:[,216],119154:[,216],119163:[,220],119164:[,220],119165:[,220],119166:[,220],119167:[,220],119168:[,220],119169:[,220],119170:[,220],119173:[,230],119174:[,230],119175:[,230],119176:[,230],119177:[,230],119178:[,220],119179:[,220],119210:[,230],119211:[,230],119212:[,230],119213:[,230],119227:[[119225,119141],512],119228:[[119226,119141],512],119229:[[119227,119150],512],119230:[[119228,119150],512],119231:[[119227,119151],512],119232:[[119228,119151],512]},53760:{119362:[,230],119363:[,230],119364:[,230]},54272:{119808:[[65],256],119809:[[66],256],119810:[[67],256],119811:[[68],256],119812:[[69],256],119813:[[70],256],119814:[[71],256],119815:[[72],256],119816:[[73],256],119817:[[74],256],119818:[[75],256],119819:[[76],256],119820:[[77],256],119821:[[78],256],119822:[[79],256],119823:[[80],256],119824:[[81],256],119825:[[82],256],119826:[[83],256],119827:[[84],256],119828:[[85],256],119829:[[86],256],119830:[[87],256],119831:[[88],256],119832:[[89],256],119833:[[90],256],119834:[[97],256],119835:[[98],256],119836:[[99],256],119837:[[100],256],119838:[[101],256],119839:[[102],256],119840:[[103],256],119841:[[104],256],119842:[[105],256],119843:[[106],256],119844:[[107],256],119845:[[108],256],119846:[[109],256],119847:[[110],256],119848:[[111],256],119849:[[112],256],119850:[[113],256],119851:[[114],256],119852:[[115],256],119853:[[116],256],119854:[[117],256],119855:[[118],256],119856:[[119],256],119857:[[120],256],119858:[[121],256],119859:[[122],256],119860:[[65],256],119861:[[66],256],119862:[[67],256],119863:[[68],256],119864:[[69],256],119865:[[70],256],119866:[[71],256],119867:[[72],256],119868:[[73],256],119869:[[74],256],119870:[[75],256],119871:[[76],256],119872:[[77],256],119873:[[78],256],119874:[[79],256],119875:[[80],256],119876:[[81],256],119877:[[82],256],119878:[[83],256],119879:[[84],256],119880:[[85],256],119881:[[86],256],119882:[[87],256],119883:[[88],256],119884:[[89],256],119885:[[90],256],119886:[[97],256],119887:[[98],256],119888:[[99],256],119889:[[100],256],119890:[[101],256],119891:[[102],256],119892:[[103],256],119894:[[105],256],119895:[[106],256],119896:[[107],256],119897:[[108],256],119898:[[109],256],119899:[[110],256],119900:[[111],256],119901:[[112],256],119902:[[113],256],119903:[[114],256],119904:[[115],256],119905:[[116],256],119906:[[117],256],119907:[[118],256],119908:[[119],256],119909:[[120],256],119910:[[121],256],119911:[[122],256],119912:[[65],256],119913:[[66],256],119914:[[67],256],119915:[[68],256],119916:[[69],256],119917:[[70],256],119918:[[71],256],119919:[[72],256],119920:[[73],256],119921:[[74],256],119922:[[75],256],119923:[[76],256],119924:[[77],256],119925:[[78],256],119926:[[79],256],119927:[[80],256],119928:[[81],256],119929:[[82],256],119930:[[83],256],119931:[[84],256],119932:[[85],256],119933:[[86],256],119934:[[87],256],119935:[[88],256],119936:[[89],256],119937:[[90],256],119938:[[97],256],119939:[[98],256],119940:[[99],256],119941:[[100],256],119942:[[101],256],119943:[[102],256],119944:[[103],256],119945:[[104],256],119946:[[105],256],119947:[[106],256],119948:[[107],256],119949:[[108],256],119950:[[109],256],119951:[[110],256],119952:[[111],256],119953:[[112],256],119954:[[113],256],119955:[[114],256],119956:[[115],256],119957:[[116],256],119958:[[117],256],119959:[[118],256],119960:[[119],256],119961:[[120],256],119962:[[121],256],119963:[[122],256],119964:[[65],256],119966:[[67],256],119967:[[68],256],119970:[[71],256],119973:[[74],256],119974:[[75],256],119977:[[78],256],119978:[[79],256],119979:[[80],256],119980:[[81],256],119982:[[83],256],119983:[[84],256],119984:[[85],256],119985:[[86],256],119986:[[87],256],119987:[[88],256],119988:[[89],256],119989:[[90],256],119990:[[97],256],119991:[[98],256],119992:[[99],256],119993:[[100],256],119995:[[102],256],119997:[[104],256],119998:[[105],256],119999:[[106],256],12e4:[[107],256],120001:[[108],256],120002:[[109],256],120003:[[110],256],120005:[[112],256],120006:[[113],256],120007:[[114],256],120008:[[115],256],120009:[[116],256],120010:[[117],256],120011:[[118],256],120012:[[119],256],120013:[[120],256],120014:[[121],256],120015:[[122],256],120016:[[65],256],120017:[[66],256],120018:[[67],256],120019:[[68],256],120020:[[69],256],120021:[[70],256],120022:[[71],256],120023:[[72],256],120024:[[73],256],120025:[[74],256],120026:[[75],256],120027:[[76],256],120028:[[77],256],120029:[[78],256],120030:[[79],256],120031:[[80],256],120032:[[81],256],120033:[[82],256],120034:[[83],256],120035:[[84],256],120036:[[85],256],120037:[[86],256],120038:[[87],256],120039:[[88],256],120040:[[89],256],120041:[[90],256],120042:[[97],256],120043:[[98],256],120044:[[99],256],120045:[[100],256],120046:[[101],256],120047:[[102],256],120048:[[103],256],120049:[[104],256],120050:[[105],256],120051:[[106],256],120052:[[107],256],120053:[[108],256],120054:[[109],256],120055:[[110],256],120056:[[111],256],120057:[[112],256],120058:[[113],256],120059:[[114],256],120060:[[115],256],120061:[[116],256],120062:[[117],256],120063:[[118],256]},54528:{120064:[[119],256],120065:[[120],256],120066:[[121],256],120067:[[122],256],120068:[[65],256],120069:[[66],256],120071:[[68],256],120072:[[69],256],120073:[[70],256],120074:[[71],256],120077:[[74],256],120078:[[75],256],120079:[[76],256],120080:[[77],256],120081:[[78],256],120082:[[79],256],120083:[[80],256],120084:[[81],256],120086:[[83],256],120087:[[84],256],120088:[[85],256],120089:[[86],256],120090:[[87],256],120091:[[88],256],120092:[[89],256],120094:[[97],256],120095:[[98],256],120096:[[99],256],120097:[[100],256],120098:[[101],256],120099:[[102],256],120100:[[103],256],120101:[[104],256],120102:[[105],256],120103:[[106],256],120104:[[107],256],120105:[[108],256],120106:[[109],256],120107:[[110],256],120108:[[111],256],120109:[[112],256],120110:[[113],256],120111:[[114],256],120112:[[115],256],120113:[[116],256],120114:[[117],256],120115:[[118],256],120116:[[119],256],120117:[[120],256],120118:[[121],256],120119:[[122],256],120120:[[65],256],120121:[[66],256],120123:[[68],256],120124:[[69],256],120125:[[70],256],120126:[[71],256],120128:[[73],256],120129:[[74],256],120130:[[75],256],120131:[[76],256],120132:[[77],256],120134:[[79],256],120138:[[83],256],120139:[[84],256],120140:[[85],256],120141:[[86],256],120142:[[87],256],120143:[[88],256],120144:[[89],256],120146:[[97],256],120147:[[98],256],120148:[[99],256],120149:[[100],256],120150:[[101],256],120151:[[102],256],120152:[[103],256],120153:[[104],256],120154:[[105],256],120155:[[106],256],120156:[[107],256],120157:[[108],256],120158:[[109],256],120159:[[110],256],120160:[[111],256],120161:[[112],256],120162:[[113],256],120163:[[114],256],120164:[[115],256],120165:[[116],256],120166:[[117],256],120167:[[118],256],120168:[[119],256],120169:[[120],256],120170:[[121],256],120171:[[122],256],120172:[[65],256],120173:[[66],256],120174:[[67],256],120175:[[68],256],120176:[[69],256],120177:[[70],256],120178:[[71],256],120179:[[72],256],120180:[[73],256],120181:[[74],256],120182:[[75],256],120183:[[76],256],120184:[[77],256],120185:[[78],256],120186:[[79],256],120187:[[80],256],120188:[[81],256],120189:[[82],256],120190:[[83],256],120191:[[84],256],120192:[[85],256],120193:[[86],256],120194:[[87],256],120195:[[88],256],120196:[[89],256],120197:[[90],256],120198:[[97],256],120199:[[98],256],120200:[[99],256],120201:[[100],256],120202:[[101],256],120203:[[102],256],120204:[[103],256],120205:[[104],256],120206:[[105],256],120207:[[106],256],120208:[[107],256],120209:[[108],256],120210:[[109],256],120211:[[110],256],120212:[[111],256],120213:[[112],256],120214:[[113],256],120215:[[114],256],120216:[[115],256],120217:[[116],256],120218:[[117],256],120219:[[118],256],120220:[[119],256],120221:[[120],256],120222:[[121],256],120223:[[122],256],120224:[[65],256],120225:[[66],256],120226:[[67],256],120227:[[68],256],120228:[[69],256],120229:[[70],256],120230:[[71],256],120231:[[72],256],120232:[[73],256],120233:[[74],256],120234:[[75],256],120235:[[76],256],120236:[[77],256],120237:[[78],256],120238:[[79],256],120239:[[80],256],120240:[[81],256],120241:[[82],256],120242:[[83],256],120243:[[84],256],120244:[[85],256],120245:[[86],256],120246:[[87],256],120247:[[88],256],120248:[[89],256],120249:[[90],256],120250:[[97],256],120251:[[98],256],120252:[[99],256],120253:[[100],256],120254:[[101],256],120255:[[102],256],120256:[[103],256],120257:[[104],256],120258:[[105],256],120259:[[106],256],120260:[[107],256],120261:[[108],256],120262:[[109],256],120263:[[110],256],120264:[[111],256],120265:[[112],256],120266:[[113],256],120267:[[114],256],120268:[[115],256],120269:[[116],256],120270:[[117],256],120271:[[118],256],120272:[[119],256],120273:[[120],256],120274:[[121],256],120275:[[122],256],120276:[[65],256],120277:[[66],256],120278:[[67],256],120279:[[68],256],120280:[[69],256],120281:[[70],256],120282:[[71],256],120283:[[72],256],120284:[[73],256],120285:[[74],256],120286:[[75],256],120287:[[76],256],120288:[[77],256],120289:[[78],256],120290:[[79],256],120291:[[80],256],120292:[[81],256],120293:[[82],256],120294:[[83],256],120295:[[84],256],120296:[[85],256],120297:[[86],256],120298:[[87],256],120299:[[88],256],120300:[[89],256],120301:[[90],256],120302:[[97],256],120303:[[98],256],120304:[[99],256],120305:[[100],256],120306:[[101],256],120307:[[102],256],120308:[[103],256],120309:[[104],256],120310:[[105],256],120311:[[106],256],120312:[[107],256],120313:[[108],256],120314:[[109],256],120315:[[110],256],120316:[[111],256],120317:[[112],256],120318:[[113],256],120319:[[114],256]},54784:{120320:[[115],256],120321:[[116],256],120322:[[117],256],120323:[[118],256],120324:[[119],256],120325:[[120],256],120326:[[121],256],120327:[[122],256],120328:[[65],256],120329:[[66],256],120330:[[67],256],120331:[[68],256],120332:[[69],256],120333:[[70],256],120334:[[71],256],120335:[[72],256],120336:[[73],256],120337:[[74],256],120338:[[75],256],120339:[[76],256],120340:[[77],256],120341:[[78],256],120342:[[79],256],120343:[[80],256],120344:[[81],256],120345:[[82],256],120346:[[83],256],120347:[[84],256],120348:[[85],256],120349:[[86],256],120350:[[87],256],120351:[[88],256],120352:[[89],256],120353:[[90],256],120354:[[97],256],120355:[[98],256],120356:[[99],256],120357:[[100],256],120358:[[101],256],120359:[[102],256],120360:[[103],256],120361:[[104],256],120362:[[105],256],120363:[[106],256],120364:[[107],256],120365:[[108],256],120366:[[109],256],120367:[[110],256],120368:[[111],256],120369:[[112],256],120370:[[113],256],120371:[[114],256],120372:[[115],256],120373:[[116],256],120374:[[117],256],120375:[[118],256],120376:[[119],256],120377:[[120],256],120378:[[121],256],120379:[[122],256],120380:[[65],256],120381:[[66],256],120382:[[67],256],120383:[[68],256],120384:[[69],256],120385:[[70],256],120386:[[71],256],120387:[[72],256],120388:[[73],256],120389:[[74],256],120390:[[75],256],120391:[[76],256],120392:[[77],256],120393:[[78],256],120394:[[79],256],120395:[[80],256],120396:[[81],256],120397:[[82],256],120398:[[83],256],120399:[[84],256],120400:[[85],256],120401:[[86],256],120402:[[87],256],120403:[[88],256],120404:[[89],256],120405:[[90],256],120406:[[97],256],120407:[[98],256],120408:[[99],256],120409:[[100],256],120410:[[101],256],120411:[[102],256],120412:[[103],256],120413:[[104],256],120414:[[105],256],120415:[[106],256],120416:[[107],256],120417:[[108],256],120418:[[109],256],120419:[[110],256],120420:[[111],256],120421:[[112],256],120422:[[113],256],120423:[[114],256],120424:[[115],256],120425:[[116],256],120426:[[117],256],120427:[[118],256],120428:[[119],256],120429:[[120],256],120430:[[121],256],120431:[[122],256],120432:[[65],256],120433:[[66],256],120434:[[67],256],120435:[[68],256],120436:[[69],256],120437:[[70],256],120438:[[71],256],120439:[[72],256],120440:[[73],256],120441:[[74],256],120442:[[75],256],120443:[[76],256],120444:[[77],256],120445:[[78],256],120446:[[79],256],120447:[[80],256],120448:[[81],256],120449:[[82],256],120450:[[83],256],120451:[[84],256],120452:[[85],256],120453:[[86],256],120454:[[87],256],120455:[[88],256],120456:[[89],256],120457:[[90],256],120458:[[97],256],120459:[[98],256],120460:[[99],256],120461:[[100],256],120462:[[101],256],120463:[[102],256],120464:[[103],256],120465:[[104],256],120466:[[105],256],120467:[[106],256],120468:[[107],256],120469:[[108],256],120470:[[109],256],120471:[[110],256],120472:[[111],256],120473:[[112],256],120474:[[113],256],120475:[[114],256],120476:[[115],256],120477:[[116],256],120478:[[117],256],120479:[[118],256],120480:[[119],256],120481:[[120],256],120482:[[121],256],120483:[[122],256],120484:[[305],256],120485:[[567],256],120488:[[913],256],120489:[[914],256],120490:[[915],256],120491:[[916],256],120492:[[917],256],120493:[[918],256],120494:[[919],256],120495:[[920],256],120496:[[921],256],120497:[[922],256],120498:[[923],256],120499:[[924],256],120500:[[925],256],120501:[[926],256],120502:[[927],256],120503:[[928],256],120504:[[929],256],120505:[[1012],256],120506:[[931],256],120507:[[932],256],120508:[[933],256],120509:[[934],256],120510:[[935],256],120511:[[936],256],120512:[[937],256],120513:[[8711],256],120514:[[945],256],120515:[[946],256],120516:[[947],256],120517:[[948],256],120518:[[949],256],120519:[[950],256],120520:[[951],256],120521:[[952],256],120522:[[953],256],120523:[[954],256],120524:[[955],256],120525:[[956],256],120526:[[957],256],120527:[[958],256],120528:[[959],256],120529:[[960],256],120530:[[961],256],120531:[[962],256],120532:[[963],256],120533:[[964],256],120534:[[965],256],120535:[[966],256],120536:[[967],256],120537:[[968],256],120538:[[969],256],120539:[[8706],256],120540:[[1013],256],120541:[[977],256],120542:[[1008],256],120543:[[981],256],120544:[[1009],256],120545:[[982],256],120546:[[913],256],120547:[[914],256],120548:[[915],256],120549:[[916],256],120550:[[917],256],120551:[[918],256],120552:[[919],256],120553:[[920],256],120554:[[921],256],120555:[[922],256],120556:[[923],256],120557:[[924],256],120558:[[925],256],120559:[[926],256],120560:[[927],256],120561:[[928],256],120562:[[929],256],120563:[[1012],256],120564:[[931],256],120565:[[932],256],120566:[[933],256],120567:[[934],256],120568:[[935],256],120569:[[936],256],120570:[[937],256],120571:[[8711],256],120572:[[945],256],120573:[[946],256],120574:[[947],256],120575:[[948],256]},55040:{120576:[[949],256],120577:[[950],256],120578:[[951],256],120579:[[952],256],120580:[[953],256],120581:[[954],256],120582:[[955],256],120583:[[956],256],120584:[[957],256],120585:[[958],256],120586:[[959],256],120587:[[960],256],120588:[[961],256],120589:[[962],256],120590:[[963],256],120591:[[964],256],120592:[[965],256],120593:[[966],256],120594:[[967],256],120595:[[968],256],120596:[[969],256],120597:[[8706],256],120598:[[1013],256],120599:[[977],256],120600:[[1008],256],120601:[[981],256],120602:[[1009],256],120603:[[982],256],120604:[[913],256],120605:[[914],256],120606:[[915],256],120607:[[916],256],120608:[[917],256],120609:[[918],256],120610:[[919],256],120611:[[920],256],120612:[[921],256],120613:[[922],256],120614:[[923],256],120615:[[924],256],120616:[[925],256],120617:[[926],256],120618:[[927],256],120619:[[928],256],120620:[[929],256],120621:[[1012],256],120622:[[931],256],120623:[[932],256],120624:[[933],256],120625:[[934],256],120626:[[935],256],120627:[[936],256],120628:[[937],256],120629:[[8711],256],120630:[[945],256],120631:[[946],256],120632:[[947],256],120633:[[948],256],120634:[[949],256],120635:[[950],256],120636:[[951],256],120637:[[952],256],120638:[[953],256],120639:[[954],256],120640:[[955],256],120641:[[956],256],120642:[[957],256],120643:[[958],256],120644:[[959],256],120645:[[960],256],120646:[[961],256],120647:[[962],256],120648:[[963],256],120649:[[964],256],120650:[[965],256],120651:[[966],256],120652:[[967],256],120653:[[968],256],120654:[[969],256],120655:[[8706],256],120656:[[1013],256],120657:[[977],256],120658:[[1008],256],120659:[[981],256],120660:[[1009],256],120661:[[982],256],120662:[[913],256],120663:[[914],256],120664:[[915],256],120665:[[916],256],120666:[[917],256],120667:[[918],256],120668:[[919],256],120669:[[920],256],120670:[[921],256],120671:[[922],256],120672:[[923],256],120673:[[924],256],120674:[[925],256],120675:[[926],256],120676:[[927],256],120677:[[928],256],120678:[[929],256],120679:[[1012],256],120680:[[931],256],120681:[[932],256],120682:[[933],256],120683:[[934],256],120684:[[935],256],120685:[[936],256],120686:[[937],256],120687:[[8711],256],120688:[[945],256],120689:[[946],256],120690:[[947],256],120691:[[948],256],120692:[[949],256],120693:[[950],256],120694:[[951],256],120695:[[952],256],120696:[[953],256],120697:[[954],256],120698:[[955],256],120699:[[956],256],120700:[[957],256],120701:[[958],256],120702:[[959],256],120703:[[960],256],120704:[[961],256],120705:[[962],256],120706:[[963],256],120707:[[964],256],120708:[[965],256],120709:[[966],256],120710:[[967],256],120711:[[968],256],120712:[[969],256],120713:[[8706],256],120714:[[1013],256],120715:[[977],256],120716:[[1008],256],120717:[[981],256],120718:[[1009],256],120719:[[982],256],120720:[[913],256],120721:[[914],256],120722:[[915],256],120723:[[916],256],120724:[[917],256],120725:[[918],256],120726:[[919],256],120727:[[920],256],120728:[[921],256],120729:[[922],256],120730:[[923],256],120731:[[924],256],120732:[[925],256],120733:[[926],256],120734:[[927],256],120735:[[928],256],120736:[[929],256],120737:[[1012],256],120738:[[931],256],120739:[[932],256],120740:[[933],256],120741:[[934],256],120742:[[935],256],120743:[[936],256],120744:[[937],256],120745:[[8711],256],120746:[[945],256],120747:[[946],256],120748:[[947],256],120749:[[948],256],120750:[[949],256],120751:[[950],256],120752:[[951],256],120753:[[952],256],120754:[[953],256],120755:[[954],256],120756:[[955],256],120757:[[956],256],120758:[[957],256],120759:[[958],256],120760:[[959],256],120761:[[960],256],120762:[[961],256],120763:[[962],256],120764:[[963],256],120765:[[964],256],120766:[[965],256],120767:[[966],256],120768:[[967],256],120769:[[968],256],120770:[[969],256],120771:[[8706],256],120772:[[1013],256],120773:[[977],256],120774:[[1008],256],120775:[[981],256],120776:[[1009],256],120777:[[982],256],120778:[[988],256],120779:[[989],256],120782:[[48],256],120783:[[49],256],120784:[[50],256],120785:[[51],256],120786:[[52],256],120787:[[53],256],120788:[[54],256],120789:[[55],256],120790:[[56],256],120791:[[57],256],120792:[[48],256],120793:[[49],256],120794:[[50],256],120795:[[51],256],120796:[[52],256],120797:[[53],256],120798:[[54],256],120799:[[55],256],120800:[[56],256],120801:[[57],256],120802:[[48],256],120803:[[49],256],120804:[[50],256],120805:[[51],256],120806:[[52],256],120807:[[53],256],120808:[[54],256],120809:[[55],256],120810:[[56],256],120811:[[57],256],120812:[[48],256],120813:[[49],256],120814:[[50],256],120815:[[51],256],120816:[[52],256],120817:[[53],256],120818:[[54],256],120819:[[55],256],120820:[[56],256],120821:[[57],256],120822:[[48],256],120823:[[49],256],120824:[[50],256],120825:[[51],256],120826:[[52],256],120827:[[53],256],120828:[[54],256],120829:[[55],256],120830:[[56],256],120831:[[57],256]},59392:{125136:[,220],125137:[,220],125138:[,220],125139:[,220],125140:[,220],125141:[,220],125142:[,220]},60928:{126464:[[1575],256],126465:[[1576],256],126466:[[1580],256],126467:[[1583],256],126469:[[1608],256],126470:[[1586],256],126471:[[1581],256],126472:[[1591],256],126473:[[1610],256],126474:[[1603],256],126475:[[1604],256],126476:[[1605],256],126477:[[1606],256],126478:[[1587],256],126479:[[1593],256],126480:[[1601],256],126481:[[1589],256],126482:[[1602],256],126483:[[1585],256],126484:[[1588],256],126485:[[1578],256],126486:[[1579],256],126487:[[1582],256],126488:[[1584],256],126489:[[1590],256],126490:[[1592],256],126491:[[1594],256],126492:[[1646],256],126493:[[1722],256],126494:[[1697],256],126495:[[1647],256],126497:[[1576],256],126498:[[1580],256],126500:[[1607],256],126503:[[1581],256],126505:[[1610],256],126506:[[1603],256],126507:[[1604],256],126508:[[1605],256],126509:[[1606],256],126510:[[1587],256],126511:[[1593],256],126512:[[1601],256],126513:[[1589],256],126514:[[1602],256],126516:[[1588],256],126517:[[1578],256],126518:[[1579],256],126519:[[1582],256],126521:[[1590],256],126523:[[1594],256],126530:[[1580],256],126535:[[1581],256],126537:[[1610],256],126539:[[1604],256],126541:[[1606],256],126542:[[1587],256],126543:[[1593],256],126545:[[1589],256],126546:[[1602],256],126548:[[1588],256],126551:[[1582],256],126553:[[1590],256],126555:[[1594],256],126557:[[1722],256],126559:[[1647],256],126561:[[1576],256],126562:[[1580],256],126564:[[1607],256],126567:[[1581],256],126568:[[1591],256],126569:[[1610],256],126570:[[1603],256],126572:[[1605],256],126573:[[1606],256],126574:[[1587],256],126575:[[1593],256],126576:[[1601],256],126577:[[1589],256],126578:[[1602],256],126580:[[1588],256],126581:[[1578],256],126582:[[1579],256],126583:[[1582],256],126585:[[1590],256],126586:[[1592],256],126587:[[1594],256],126588:[[1646],256],126590:[[1697],256],126592:[[1575],256],126593:[[1576],256],126594:[[1580],256],126595:[[1583],256],126596:[[1607],256],126597:[[1608],256],126598:[[1586],256],126599:[[1581],256],126600:[[1591],256],126601:[[1610],256],126603:[[1604],256],126604:[[1605],256],126605:[[1606],256],126606:[[1587],256],126607:[[1593],256],126608:[[1601],256],126609:[[1589],256],126610:[[1602],256],126611:[[1585],256],126612:[[1588],256],126613:[[1578],256],126614:[[1579],256],126615:[[1582],256],126616:[[1584],256],126617:[[1590],256],126618:[[1592],256],126619:[[1594],256],126625:[[1576],256],126626:[[1580],256],126627:[[1583],256],126629:[[1608],256],126630:[[1586],256],126631:[[1581],256],126632:[[1591],256],126633:[[1610],256],126635:[[1604],256],126636:[[1605],256],126637:[[1606],256],126638:[[1587],256],126639:[[1593],256],126640:[[1601],256],126641:[[1589],256],126642:[[1602],256],126643:[[1585],256],126644:[[1588],256],126645:[[1578],256],126646:[[1579],256],126647:[[1582],256],126648:[[1584],256],126649:[[1590],256],126650:[[1592],256],126651:[[1594],256]},61696:{127232:[[48,46],256],127233:[[48,44],256],127234:[[49,44],256],127235:[[50,44],256],127236:[[51,44],256],127237:[[52,44],256],127238:[[53,44],256],127239:[[54,44],256],127240:[[55,44],256],127241:[[56,44],256],127242:[[57,44],256],127248:[[40,65,41],256],127249:[[40,66,41],256],127250:[[40,67,41],256],127251:[[40,68,41],256],127252:[[40,69,41],256],127253:[[40,70,41],256],127254:[[40,71,41],256],127255:[[40,72,41],256],127256:[[40,73,41],256],127257:[[40,74,41],256],127258:[[40,75,41],256],127259:[[40,76,41],256],127260:[[40,77,41],256],127261:[[40,78,41],256],127262:[[40,79,41],256],127263:[[40,80,41],256],127264:[[40,81,41],256],127265:[[40,82,41],256],127266:[[40,83,41],256],127267:[[40,84,41],256],127268:[[40,85,41],256],127269:[[40,86,41],256],127270:[[40,87,41],256],127271:[[40,88,41],256],127272:[[40,89,41],256],127273:[[40,90,41],256],127274:[[12308,83,12309],256],127275:[[67],256],127276:[[82],256],127277:[[67,68],256],127278:[[87,90],256],127280:[[65],256],127281:[[66],256],127282:[[67],256],127283:[[68],256],127284:[[69],256],127285:[[70],256],127286:[[71],256],127287:[[72],256],127288:[[73],256],127289:[[74],256],127290:[[75],256],127291:[[76],256],127292:[[77],256],127293:[[78],256],127294:[[79],256],127295:[[80],256],127296:[[81],256],127297:[[82],256],127298:[[83],256],127299:[[84],256],127300:[[85],256],127301:[[86],256],127302:[[87],256],127303:[[88],256],127304:[[89],256],127305:[[90],256],127306:[[72,86],256],127307:[[77,86],256],127308:[[83,68],256],127309:[[83,83],256],127310:[[80,80,86],256],127311:[[87,67],256],127338:[[77,67],256],127339:[[77,68],256],127376:[[68,74],256]},61952:{127488:[[12411,12363],256],127489:[[12467,12467],256],127490:[[12469],256],127504:[[25163],256],127505:[[23383],256],127506:[[21452],256],127507:[[12487],256],127508:[[20108],256],127509:[[22810],256],127510:[[35299],256],127511:[[22825],256],127512:[[20132],256],127513:[[26144],256],127514:[[28961],256],127515:[[26009],256],127516:[[21069],256],127517:[[24460],256],127518:[[20877],256],127519:[[26032],256],127520:[[21021],256],127521:[[32066],256],127522:[[29983],256],127523:[[36009],256],127524:[[22768],256],127525:[[21561],256],127526:[[28436],256],127527:[[25237],256],127528:[[25429],256],127529:[[19968],256],127530:[[19977],256],127531:[[36938],256],127532:[[24038],256],127533:[[20013],256],127534:[[21491],256],127535:[[25351],256],127536:[[36208],256],127537:[[25171],256],127538:[[31105],256],127539:[[31354],256],127540:[[21512],256],127541:[[28288],256],127542:[[26377],256],127543:[[26376],256],127544:[[30003],256],127545:[[21106],256],127546:[[21942],256],127552:[[12308,26412,12309],256],127553:[[12308,19977,12309],256],127554:[[12308,20108,12309],256],127555:[[12308,23433,12309],256],127556:[[12308,28857,12309],256],127557:[[12308,25171,12309],256],127558:[[12308,30423,12309],256],127559:[[12308,21213,12309],256],127560:[[12308,25943,12309],256],127568:[[24471],256],127569:[[21487],256]},63488:{194560:[[20029]],194561:[[20024]],194562:[[20033]],194563:[[131362]],194564:[[20320]],194565:[[20398]],194566:[[20411]],194567:[[20482]],194568:[[20602]],194569:[[20633]],194570:[[20711]],194571:[[20687]],194572:[[13470]],194573:[[132666]],194574:[[20813]],194575:[[20820]],194576:[[20836]],194577:[[20855]],194578:[[132380]],194579:[[13497]],194580:[[20839]],194581:[[20877]],194582:[[132427]],194583:[[20887]],194584:[[20900]],194585:[[20172]],194586:[[20908]],194587:[[20917]],194588:[[168415]],194589:[[20981]],194590:[[20995]],194591:[[13535]],194592:[[21051]],194593:[[21062]],194594:[[21106]],194595:[[21111]],194596:[[13589]],194597:[[21191]],194598:[[21193]],194599:[[21220]],194600:[[21242]],194601:[[21253]],194602:[[21254]],194603:[[21271]],194604:[[21321]],194605:[[21329]],194606:[[21338]],194607:[[21363]],194608:[[21373]],194609:[[21375]],194610:[[21375]],194611:[[21375]],194612:[[133676]],194613:[[28784]],194614:[[21450]],194615:[[21471]],194616:[[133987]],194617:[[21483]],194618:[[21489]],194619:[[21510]],194620:[[21662]],194621:[[21560]],194622:[[21576]],194623:[[21608]],194624:[[21666]],194625:[[21750]],194626:[[21776]],194627:[[21843]],194628:[[21859]],194629:[[21892]],194630:[[21892]],194631:[[21913]],194632:[[21931]],194633:[[21939]],194634:[[21954]],194635:[[22294]],194636:[[22022]],194637:[[22295]],194638:[[22097]],194639:[[22132]],194640:[[20999]],194641:[[22766]],194642:[[22478]],194643:[[22516]],194644:[[22541]],194645:[[22411]],194646:[[22578]],194647:[[22577]],194648:[[22700]],194649:[[136420]],194650:[[22770]],194651:[[22775]],194652:[[22790]],194653:[[22810]],194654:[[22818]],194655:[[22882]],194656:[[136872]],194657:[[136938]],194658:[[23020]],194659:[[23067]],194660:[[23079]],194661:[[23e3]],194662:[[23142]],194663:[[14062]],194664:[[14076]],194665:[[23304]],194666:[[23358]],194667:[[23358]],194668:[[137672]],194669:[[23491]],194670:[[23512]],194671:[[23527]],194672:[[23539]],194673:[[138008]],194674:[[23551]],194675:[[23558]],194676:[[24403]],194677:[[23586]],194678:[[14209]],194679:[[23648]],194680:[[23662]],194681:[[23744]],194682:[[23693]],194683:[[138724]],194684:[[23875]],194685:[[138726]],194686:[[23918]],194687:[[23915]],194688:[[23932]],194689:[[24033]],194690:[[24034]],194691:[[14383]],194692:[[24061]],194693:[[24104]],194694:[[24125]],194695:[[24169]],194696:[[14434]],194697:[[139651]],194698:[[14460]],194699:[[24240]],194700:[[24243]],194701:[[24246]],194702:[[24266]],194703:[[172946]],194704:[[24318]],194705:[[140081]],194706:[[140081]],194707:[[33281]],194708:[[24354]],194709:[[24354]],194710:[[14535]],194711:[[144056]],194712:[[156122]],194713:[[24418]],194714:[[24427]],194715:[[14563]],194716:[[24474]],194717:[[24525]],194718:[[24535]],194719:[[24569]],194720:[[24705]],194721:[[14650]],194722:[[14620]],194723:[[24724]],194724:[[141012]],194725:[[24775]],194726:[[24904]],194727:[[24908]],194728:[[24910]],194729:[[24908]],194730:[[24954]],194731:[[24974]],194732:[[25010]],194733:[[24996]],194734:[[25007]],194735:[[25054]],194736:[[25074]],194737:[[25078]],194738:[[25104]],194739:[[25115]],194740:[[25181]],194741:[[25265]],194742:[[25300]],194743:[[25424]],194744:[[142092]],194745:[[25405]],194746:[[25340]],194747:[[25448]],194748:[[25475]],194749:[[25572]],194750:[[142321]],194751:[[25634]],194752:[[25541]],194753:[[25513]],194754:[[14894]],194755:[[25705]],194756:[[25726]],194757:[[25757]],194758:[[25719]],194759:[[14956]],194760:[[25935]],194761:[[25964]],194762:[[143370]],194763:[[26083]],194764:[[26360]],194765:[[26185]],194766:[[15129]],194767:[[26257]],194768:[[15112]],194769:[[15076]],194770:[[20882]],194771:[[20885]],194772:[[26368]],194773:[[26268]],194774:[[32941]],194775:[[17369]],194776:[[26391]],194777:[[26395]],194778:[[26401]],194779:[[26462]],194780:[[26451]],194781:[[144323]],194782:[[15177]],194783:[[26618]],194784:[[26501]],194785:[[26706]],194786:[[26757]],194787:[[144493]],194788:[[26766]],194789:[[26655]],194790:[[26900]],194791:[[15261]],194792:[[26946]],194793:[[27043]],194794:[[27114]],194795:[[27304]],194796:[[145059]],194797:[[27355]],194798:[[15384]],194799:[[27425]],194800:[[145575]],194801:[[27476]],194802:[[15438]],194803:[[27506]],194804:[[27551]],194805:[[27578]],194806:[[27579]],194807:[[146061]],194808:[[138507]],194809:[[146170]],194810:[[27726]],194811:[[146620]],194812:[[27839]],194813:[[27853]],194814:[[27751]],194815:[[27926]]},63744:{63744:[[35912]],63745:[[26356]],63746:[[36554]],63747:[[36040]],63748:[[28369]],63749:[[20018]],63750:[[21477]],63751:[[40860]],63752:[[40860]],63753:[[22865]],63754:[[37329]],63755:[[21895]],63756:[[22856]],63757:[[25078]],63758:[[30313]],63759:[[32645]],63760:[[34367]],63761:[[34746]],63762:[[35064]],63763:[[37007]],63764:[[27138]],63765:[[27931]],63766:[[28889]],63767:[[29662]],63768:[[33853]],63769:[[37226]],63770:[[39409]],63771:[[20098]],63772:[[21365]],63773:[[27396]],63774:[[29211]],63775:[[34349]],63776:[[40478]],63777:[[23888]],63778:[[28651]],63779:[[34253]],63780:[[35172]],63781:[[25289]],63782:[[33240]],63783:[[34847]],63784:[[24266]],63785:[[26391]],63786:[[28010]],63787:[[29436]],63788:[[37070]],63789:[[20358]],63790:[[20919]],63791:[[21214]],63792:[[25796]],63793:[[27347]],63794:[[29200]],63795:[[30439]],63796:[[32769]],63797:[[34310]],63798:[[34396]],63799:[[36335]],63800:[[38706]],63801:[[39791]],63802:[[40442]],63803:[[30860]],63804:[[31103]],63805:[[32160]],63806:[[33737]],63807:[[37636]],63808:[[40575]],63809:[[35542]],63810:[[22751]],63811:[[24324]],63812:[[31840]],63813:[[32894]],63814:[[29282]],63815:[[30922]],63816:[[36034]],63817:[[38647]],63818:[[22744]],63819:[[23650]],63820:[[27155]],63821:[[28122]],63822:[[28431]],63823:[[32047]],63824:[[32311]],63825:[[38475]],63826:[[21202]],63827:[[32907]],63828:[[20956]],63829:[[20940]],63830:[[31260]],63831:[[32190]],63832:[[33777]],63833:[[38517]],63834:[[35712]],63835:[[25295]],63836:[[27138]],63837:[[35582]],63838:[[20025]],63839:[[23527]],63840:[[24594]],63841:[[29575]],63842:[[30064]],63843:[[21271]],63844:[[30971]],63845:[[20415]],63846:[[24489]],63847:[[19981]],63848:[[27852]],63849:[[25976]],63850:[[32034]],63851:[[21443]],63852:[[22622]],63853:[[30465]],63854:[[33865]],63855:[[35498]],63856:[[27578]],63857:[[36784]],63858:[[27784]],63859:[[25342]],63860:[[33509]],63861:[[25504]],63862:[[30053]],63863:[[20142]],63864:[[20841]],63865:[[20937]],63866:[[26753]],63867:[[31975]],63868:[[33391]],63869:[[35538]],63870:[[37327]],63871:[[21237]],63872:[[21570]],63873:[[22899]],63874:[[24300]],63875:[[26053]],63876:[[28670]],63877:[[31018]],63878:[[38317]],63879:[[39530]],63880:[[40599]],63881:[[40654]],63882:[[21147]],63883:[[26310]],63884:[[27511]],63885:[[36706]],63886:[[24180]],63887:[[24976]],63888:[[25088]],63889:[[25754]],63890:[[28451]],63891:[[29001]],63892:[[29833]],63893:[[31178]],63894:[[32244]],63895:[[32879]],63896:[[36646]],63897:[[34030]],63898:[[36899]],63899:[[37706]],63900:[[21015]],63901:[[21155]],63902:[[21693]],63903:[[28872]],63904:[[35010]],63905:[[35498]],63906:[[24265]],63907:[[24565]],63908:[[25467]],63909:[[27566]],63910:[[31806]],63911:[[29557]],63912:[[20196]],63913:[[22265]],63914:[[23527]],63915:[[23994]],63916:[[24604]],63917:[[29618]],63918:[[29801]],63919:[[32666]],63920:[[32838]],63921:[[37428]],63922:[[38646]],63923:[[38728]],63924:[[38936]],63925:[[20363]],63926:[[31150]],63927:[[37300]],63928:[[38584]],63929:[[24801]],63930:[[20102]],63931:[[20698]],63932:[[23534]],63933:[[23615]],63934:[[26009]],63935:[[27138]],63936:[[29134]],63937:[[30274]],63938:[[34044]],63939:[[36988]],63940:[[40845]],63941:[[26248]],63942:[[38446]],63943:[[21129]],63944:[[26491]],63945:[[26611]],63946:[[27969]],63947:[[28316]],63948:[[29705]],63949:[[30041]],63950:[[30827]],63951:[[32016]],63952:[[39006]],63953:[[20845]],63954:[[25134]],63955:[[38520]],63956:[[20523]],63957:[[23833]],63958:[[28138]],63959:[[36650]],63960:[[24459]],63961:[[24900]],63962:[[26647]],63963:[[29575]],63964:[[38534]],63965:[[21033]],63966:[[21519]],63967:[[23653]],63968:[[26131]],63969:[[26446]],63970:[[26792]],63971:[[27877]],63972:[[29702]],63973:[[30178]],63974:[[32633]],63975:[[35023]],63976:[[35041]],63977:[[37324]],63978:[[38626]],63979:[[21311]],63980:[[28346]],63981:[[21533]],63982:[[29136]],63983:[[29848]],63984:[[34298]],63985:[[38563]],63986:[[40023]],63987:[[40607]],63988:[[26519]],63989:[[28107]],63990:[[33256]],63991:[[31435]],63992:[[31520]],63993:[[31890]],63994:[[29376]],63995:[[28825]],63996:[[35672]],63997:[[20160]],63998:[[33590]],63999:[[21050]],194816:[[27966]],194817:[[28023]],194818:[[27969]],194819:[[28009]],194820:[[28024]],194821:[[28037]],194822:[[146718]],194823:[[27956]],194824:[[28207]],194825:[[28270]],194826:[[15667]],194827:[[28363]],194828:[[28359]],194829:[[147153]],194830:[[28153]],194831:[[28526]],194832:[[147294]],194833:[[147342]],194834:[[28614]],194835:[[28729]],194836:[[28702]],194837:[[28699]],194838:[[15766]],194839:[[28746]],194840:[[28797]],194841:[[28791]],194842:[[28845]],194843:[[132389]],194844:[[28997]],194845:[[148067]],194846:[[29084]],194847:[[148395]],194848:[[29224]],194849:[[29237]],194850:[[29264]],194851:[[149e3]],194852:[[29312]],194853:[[29333]],194854:[[149301]],194855:[[149524]],194856:[[29562]],194857:[[29579]],194858:[[16044]],194859:[[29605]],194860:[[16056]],194861:[[16056]],194862:[[29767]],194863:[[29788]],194864:[[29809]],194865:[[29829]],194866:[[29898]],194867:[[16155]],194868:[[29988]],194869:[[150582]],194870:[[30014]],194871:[[150674]],194872:[[30064]],194873:[[139679]],194874:[[30224]],194875:[[151457]],194876:[[151480]],194877:[[151620]],194878:[[16380]],194879:[[16392]],194880:[[30452]],194881:[[151795]],194882:[[151794]],194883:[[151833]],194884:[[151859]],194885:[[30494]],194886:[[30495]],194887:[[30495]],194888:[[30538]],194889:[[16441]],194890:[[30603]],194891:[[16454]],194892:[[16534]],194893:[[152605]],194894:[[30798]],194895:[[30860]],194896:[[30924]],194897:[[16611]],194898:[[153126]],194899:[[31062]],194900:[[153242]],194901:[[153285]],194902:[[31119]],194903:[[31211]],194904:[[16687]],194905:[[31296]],194906:[[31306]],194907:[[31311]],194908:[[153980]],194909:[[154279]],194910:[[154279]],194911:[[31470]],194912:[[16898]],194913:[[154539]],194914:[[31686]],194915:[[31689]],194916:[[16935]],194917:[[154752]],194918:[[31954]],194919:[[17056]],194920:[[31976]],194921:[[31971]],194922:[[32e3]],194923:[[155526]],194924:[[32099]],194925:[[17153]],194926:[[32199]],194927:[[32258]],194928:[[32325]],194929:[[17204]],194930:[[156200]],194931:[[156231]],194932:[[17241]],194933:[[156377]],194934:[[32634]],194935:[[156478]],194936:[[32661]],194937:[[32762]],194938:[[32773]],194939:[[156890]],194940:[[156963]],194941:[[32864]],194942:[[157096]],194943:[[32880]],194944:[[144223]],194945:[[17365]],194946:[[32946]],194947:[[33027]],194948:[[17419]],194949:[[33086]],194950:[[23221]],194951:[[157607]],194952:[[157621]],194953:[[144275]],194954:[[144284]],194955:[[33281]],194956:[[33284]],194957:[[36766]],194958:[[17515]],194959:[[33425]],194960:[[33419]],194961:[[33437]],194962:[[21171]],194963:[[33457]],194964:[[33459]],194965:[[33469]],194966:[[33510]],194967:[[158524]],194968:[[33509]],194969:[[33565]],194970:[[33635]],194971:[[33709]],194972:[[33571]],194973:[[33725]],194974:[[33767]],194975:[[33879]],194976:[[33619]],194977:[[33738]],194978:[[33740]],194979:[[33756]],194980:[[158774]],194981:[[159083]],194982:[[158933]],194983:[[17707]],194984:[[34033]],194985:[[34035]],194986:[[34070]],194987:[[160714]],194988:[[34148]],194989:[[159532]],194990:[[17757]],194991:[[17761]],194992:[[159665]],194993:[[159954]],194994:[[17771]],194995:[[34384]],194996:[[34396]],194997:[[34407]],194998:[[34409]],194999:[[34473]],195e3:[[34440]],195001:[[34574]],195002:[[34530]],195003:[[34681]],195004:[[34600]],195005:[[34667]],195006:[[34694]],195007:[[17879]],195008:[[34785]],195009:[[34817]],195010:[[17913]],195011:[[34912]],195012:[[34915]],195013:[[161383]],195014:[[35031]],195015:[[35038]],195016:[[17973]],195017:[[35066]],195018:[[13499]],195019:[[161966]],195020:[[162150]],195021:[[18110]],195022:[[18119]],195023:[[35488]],195024:[[35565]],195025:[[35722]],195026:[[35925]],195027:[[162984]],195028:[[36011]],195029:[[36033]],195030:[[36123]],195031:[[36215]],195032:[[163631]],195033:[[133124]],195034:[[36299]],195035:[[36284]],195036:[[36336]],195037:[[133342]],195038:[[36564]],195039:[[36664]],195040:[[165330]],195041:[[165357]],195042:[[37012]],195043:[[37105]],195044:[[37137]],195045:[[165678]],195046:[[37147]],195047:[[37432]],195048:[[37591]],195049:[[37592]],195050:[[37500]],195051:[[37881]],195052:[[37909]],195053:[[166906]],195054:[[38283]],195055:[[18837]],195056:[[38327]],195057:[[167287]],195058:[[18918]],195059:[[38595]],195060:[[23986]],195061:[[38691]],195062:[[168261]],195063:[[168474]],195064:[[19054]],195065:[[19062]],195066:[[38880]],195067:[[168970]],195068:[[19122]],195069:[[169110]],195070:[[38923]],195071:[[38923]]},64e3:{64e3:[[20999]],64001:[[24230]],64002:[[25299]],64003:[[31958]],64004:[[23429]],64005:[[27934]],64006:[[26292]],64007:[[36667]],64008:[[34892]],64009:[[38477]],64010:[[35211]],64011:[[24275]],64012:[[20800]],64013:[[21952]],64016:[[22618]],64018:[[26228]],64021:[[20958]],64022:[[29482]],64023:[[30410]],64024:[[31036]],64025:[[31070]],64026:[[31077]],64027:[[31119]],64028:[[38742]],64029:[[31934]],64030:[[32701]],64032:[[34322]],64034:[[35576]],64037:[[36920]],64038:[[37117]],64042:[[39151]],64043:[[39164]],64044:[[39208]],64045:[[40372]],64046:[[37086]],64047:[[38583]],64048:[[20398]],64049:[[20711]],64050:[[20813]],64051:[[21193]],64052:[[21220]],64053:[[21329]],64054:[[21917]],64055:[[22022]],64056:[[22120]],64057:[[22592]],64058:[[22696]],64059:[[23652]],64060:[[23662]],64061:[[24724]],64062:[[24936]],64063:[[24974]],64064:[[25074]],64065:[[25935]],64066:[[26082]],64067:[[26257]],64068:[[26757]],64069:[[28023]],64070:[[28186]],64071:[[28450]],64072:[[29038]],64073:[[29227]],64074:[[29730]],64075:[[30865]],64076:[[31038]],64077:[[31049]],64078:[[31048]],64079:[[31056]],64080:[[31062]],64081:[[31069]],64082:[[31117]],64083:[[31118]],64084:[[31296]],64085:[[31361]],64086:[[31680]],64087:[[32244]],64088:[[32265]],64089:[[32321]],64090:[[32626]],64091:[[32773]],64092:[[33261]],64093:[[33401]],64094:[[33401]],64095:[[33879]],64096:[[35088]],64097:[[35222]],64098:[[35585]],64099:[[35641]],64100:[[36051]],64101:[[36104]],64102:[[36790]],64103:[[36920]],64104:[[38627]],64105:[[38911]],64106:[[38971]],64107:[[24693]],64108:[[148206]],64109:[[33304]],64112:[[20006]],64113:[[20917]],64114:[[20840]],64115:[[20352]],64116:[[20805]],64117:[[20864]],64118:[[21191]],64119:[[21242]],64120:[[21917]],64121:[[21845]],64122:[[21913]],64123:[[21986]],64124:[[22618]],64125:[[22707]],64126:[[22852]],64127:[[22868]],64128:[[23138]],64129:[[23336]],64130:[[24274]],64131:[[24281]],64132:[[24425]],64133:[[24493]],64134:[[24792]],64135:[[24910]],64136:[[24840]],64137:[[24974]],64138:[[24928]],64139:[[25074]],64140:[[25140]],64141:[[25540]],64142:[[25628]],64143:[[25682]],64144:[[25942]],64145:[[26228]],64146:[[26391]],64147:[[26395]],64148:[[26454]],64149:[[27513]],64150:[[27578]],64151:[[27969]],64152:[[28379]],64153:[[28363]],64154:[[28450]],64155:[[28702]],64156:[[29038]],64157:[[30631]],64158:[[29237]],64159:[[29359]],64160:[[29482]],64161:[[29809]],64162:[[29958]],64163:[[30011]],64164:[[30237]],64165:[[30239]],64166:[[30410]],64167:[[30427]],64168:[[30452]],64169:[[30538]],64170:[[30528]],64171:[[30924]],64172:[[31409]],64173:[[31680]],64174:[[31867]],64175:[[32091]],64176:[[32244]],64177:[[32574]],64178:[[32773]],64179:[[33618]],64180:[[33775]],64181:[[34681]],64182:[[35137]],64183:[[35206]],64184:[[35222]],64185:[[35519]],64186:[[35576]],64187:[[35531]],64188:[[35585]],64189:[[35582]],64190:[[35565]],64191:[[35641]],64192:[[35722]],64193:[[36104]],64194:[[36664]],64195:[[36978]],64196:[[37273]],64197:[[37494]],64198:[[38524]],64199:[[38627]],64200:[[38742]],64201:[[38875]],64202:[[38911]],64203:[[38923]],64204:[[38971]],64205:[[39698]],64206:[[40860]],64207:[[141386]],64208:[[141380]],64209:[[144341]],64210:[[15261]],64211:[[16408]],64212:[[16441]],64213:[[152137]],64214:[[154832]],64215:[[163539]],64216:[[40771]],64217:[[40846]],195072:[[38953]],195073:[[169398]],195074:[[39138]],195075:[[19251]],195076:[[39209]],195077:[[39335]],195078:[[39362]],195079:[[39422]],195080:[[19406]],195081:[[170800]],195082:[[39698]],195083:[[4e4]],195084:[[40189]],195085:[[19662]],195086:[[19693]],195087:[[40295]],195088:[[172238]],195089:[[19704]],195090:[[172293]],195091:[[172558]],195092:[[172689]],195093:[[40635]],195094:[[19798]],195095:[[40697]],195096:[[40702]],195097:[[40709]],195098:[[40719]],195099:[[40726]],195100:[[40763]],195101:[[173568]]},64256:{64256:[[102,102],256],64257:[[102,105],256],64258:[[102,108],256],64259:[[102,102,105],256],64260:[[102,102,108],256],64261:[[383,116],256],64262:[[115,116],256],64275:[[1396,1398],256],64276:[[1396,1381],256],64277:[[1396,1387],256],64278:[[1406,1398],256],64279:[[1396,1389],256],64285:[[1497,1460],512],64286:[,26],64287:[[1522,1463],512],64288:[[1506],256],64289:[[1488],256],64290:[[1491],256],64291:[[1492],256],64292:[[1499],256],64293:[[1500],256],64294:[[1501],256],64295:[[1512],256],64296:[[1514],256],64297:[[43],256],64298:[[1513,1473],512],64299:[[1513,1474],512],64300:[[64329,1473],512],64301:[[64329,1474],512],64302:[[1488,1463],512],64303:[[1488,1464],512],64304:[[1488,1468],512],64305:[[1489,1468],512],64306:[[1490,1468],512],64307:[[1491,1468],512],64308:[[1492,1468],512],64309:[[1493,1468],512],64310:[[1494,1468],512],64312:[[1496,1468],512],64313:[[1497,1468],512],64314:[[1498,1468],512],64315:[[1499,1468],512],64316:[[1500,1468],512],64318:[[1502,1468],512],64320:[[1504,1468],512],64321:[[1505,1468],512],64323:[[1507,1468],512],64324:[[1508,1468],512],64326:[[1510,1468],512],64327:[[1511,1468],512],64328:[[1512,1468],512],64329:[[1513,1468],512],64330:[[1514,1468],512],64331:[[1493,1465],512],64332:[[1489,1471],512],64333:[[1499,1471],512],64334:[[1508,1471],512],64335:[[1488,1500],256],64336:[[1649],256],64337:[[1649],256],64338:[[1659],256],64339:[[1659],256],64340:[[1659],256],64341:[[1659],256],64342:[[1662],256],64343:[[1662],256],64344:[[1662],256],64345:[[1662],256],64346:[[1664],256],64347:[[1664],256],64348:[[1664],256],64349:[[1664],256],64350:[[1658],256],64351:[[1658],256],64352:[[1658],256],64353:[[1658],256],64354:[[1663],256],64355:[[1663],256],64356:[[1663],256],64357:[[1663],256],64358:[[1657],256],64359:[[1657],256],64360:[[1657],256],64361:[[1657],256],64362:[[1700],256],64363:[[1700],256],64364:[[1700],256],64365:[[1700],256],64366:[[1702],256],64367:[[1702],256],64368:[[1702],256],64369:[[1702],256],64370:[[1668],256],64371:[[1668],256],64372:[[1668],256],64373:[[1668],256],64374:[[1667],256],64375:[[1667],256],64376:[[1667],256],64377:[[1667],256],64378:[[1670],256],64379:[[1670],256],64380:[[1670],256],64381:[[1670],256],64382:[[1671],256],64383:[[1671],256],64384:[[1671],256],64385:[[1671],256],64386:[[1677],256],64387:[[1677],256],64388:[[1676],256],64389:[[1676],256],64390:[[1678],256],64391:[[1678],256],64392:[[1672],256],64393:[[1672],256],64394:[[1688],256],64395:[[1688],256],64396:[[1681],256],64397:[[1681],256],64398:[[1705],256],64399:[[1705],256],64400:[[1705],256],64401:[[1705],256],64402:[[1711],256],64403:[[1711],256],64404:[[1711],256],64405:[[1711],256],64406:[[1715],256],64407:[[1715],256],64408:[[1715],256],64409:[[1715],256],64410:[[1713],256],64411:[[1713],256],64412:[[1713],256],64413:[[1713],256],64414:[[1722],256],64415:[[1722],256],64416:[[1723],256],64417:[[1723],256],64418:[[1723],256],64419:[[1723],256],64420:[[1728],256],64421:[[1728],256],64422:[[1729],256],64423:[[1729],256],64424:[[1729],256],64425:[[1729],256],64426:[[1726],256],64427:[[1726],256],64428:[[1726],256],64429:[[1726],256],64430:[[1746],256],64431:[[1746],256],64432:[[1747],256],64433:[[1747],256],64467:[[1709],256],64468:[[1709],256],64469:[[1709],256],64470:[[1709],256],64471:[[1735],256],64472:[[1735],256],64473:[[1734],256],64474:[[1734],256],64475:[[1736],256],64476:[[1736],256],64477:[[1655],256],64478:[[1739],256],64479:[[1739],256],64480:[[1733],256],64481:[[1733],256],64482:[[1737],256],64483:[[1737],256],64484:[[1744],256],64485:[[1744],256],64486:[[1744],256],64487:[[1744],256],64488:[[1609],256],64489:[[1609],256],64490:[[1574,1575],256],64491:[[1574,1575],256],64492:[[1574,1749],256],64493:[[1574,1749],256],64494:[[1574,1608],256],64495:[[1574,1608],256],64496:[[1574,1735],256],64497:[[1574,1735],256],64498:[[1574,1734],256],64499:[[1574,1734],256],64500:[[1574,1736],256],64501:[[1574,1736],256],64502:[[1574,1744],256],64503:[[1574,1744],256],64504:[[1574,1744],256],64505:[[1574,1609],256],64506:[[1574,1609],256],64507:[[1574,1609],256],64508:[[1740],256],64509:[[1740],256],64510:[[1740],256],64511:[[1740],256]},64512:{64512:[[1574,1580],256],64513:[[1574,1581],256],64514:[[1574,1605],256],64515:[[1574,1609],256],64516:[[1574,1610],256],64517:[[1576,1580],256],64518:[[1576,1581],256],64519:[[1576,1582],256],64520:[[1576,1605],256],64521:[[1576,1609],256],64522:[[1576,1610],256],64523:[[1578,1580],256],64524:[[1578,1581],256],64525:[[1578,1582],256],64526:[[1578,1605],256],64527:[[1578,1609],256],64528:[[1578,1610],256],64529:[[1579,1580],256],64530:[[1579,1605],256],64531:[[1579,1609],256],64532:[[1579,1610],256],64533:[[1580,1581],256],64534:[[1580,1605],256],64535:[[1581,1580],256],64536:[[1581,1605],256],64537:[[1582,1580],256],64538:[[1582,1581],256],64539:[[1582,1605],256],64540:[[1587,1580],256],64541:[[1587,1581],256],64542:[[1587,1582],256],64543:[[1587,1605],256],64544:[[1589,1581],256],64545:[[1589,1605],256],64546:[[1590,1580],256],64547:[[1590,1581],256],64548:[[1590,1582],256],64549:[[1590,1605],256],64550:[[1591,1581],256],64551:[[1591,1605],256],64552:[[1592,1605],256],64553:[[1593,1580],256],64554:[[1593,1605],256],64555:[[1594,1580],256],64556:[[1594,1605],256],64557:[[1601,1580],256],64558:[[1601,1581],256],64559:[[1601,1582],256],64560:[[1601,1605],256],64561:[[1601,1609],256],64562:[[1601,1610],256],64563:[[1602,1581],256],64564:[[1602,1605],256],64565:[[1602,1609],256],64566:[[1602,1610],256],64567:[[1603,1575],256],64568:[[1603,1580],256],64569:[[1603,1581],256],64570:[[1603,1582],256],64571:[[1603,1604],256],64572:[[1603,1605],256],64573:[[1603,1609],256],64574:[[1603,1610],256],64575:[[1604,1580],256],64576:[[1604,1581],256],64577:[[1604,1582],256],64578:[[1604,1605],256],64579:[[1604,1609],256],64580:[[1604,1610],256],64581:[[1605,1580],256],64582:[[1605,1581],256],64583:[[1605,1582],256],64584:[[1605,1605],256],64585:[[1605,1609],256],64586:[[1605,1610],256],64587:[[1606,1580],256],64588:[[1606,1581],256],64589:[[1606,1582],256],64590:[[1606,1605],256],64591:[[1606,1609],256],64592:[[1606,1610],256],64593:[[1607,1580],256],64594:[[1607,1605],256],64595:[[1607,1609],256],64596:[[1607,1610],256],64597:[[1610,1580],256],64598:[[1610,1581],256],64599:[[1610,1582],256],64600:[[1610,1605],256],64601:[[1610,1609],256],64602:[[1610,1610],256],64603:[[1584,1648],256],64604:[[1585,1648],256],64605:[[1609,1648],256],64606:[[32,1612,1617],256],64607:[[32,1613,1617],256],64608:[[32,1614,1617],256],64609:[[32,1615,1617],256],64610:[[32,1616,1617],256],64611:[[32,1617,1648],256],64612:[[1574,1585],256],64613:[[1574,1586],256],64614:[[1574,1605],256],64615:[[1574,1606],256],64616:[[1574,1609],256],64617:[[1574,1610],256],64618:[[1576,1585],256],64619:[[1576,1586],256],64620:[[1576,1605],256],64621:[[1576,1606],256],64622:[[1576,1609],256],64623:[[1576,1610],256],64624:[[1578,1585],256],64625:[[1578,1586],256],64626:[[1578,1605],256],64627:[[1578,1606],256],64628:[[1578,1609],256],64629:[[1578,1610],256],64630:[[1579,1585],256],64631:[[1579,1586],256],64632:[[1579,1605],256],64633:[[1579,1606],256],64634:[[1579,1609],256],64635:[[1579,1610],256],64636:[[1601,1609],256],64637:[[1601,1610],256],64638:[[1602,1609],256],64639:[[1602,1610],256],64640:[[1603,1575],256],64641:[[1603,1604],256],64642:[[1603,1605],256],64643:[[1603,1609],256],64644:[[1603,1610],256],64645:[[1604,1605],256],64646:[[1604,1609],256],64647:[[1604,1610],256],64648:[[1605,1575],256],64649:[[1605,1605],256],64650:[[1606,1585],256],64651:[[1606,1586],256],64652:[[1606,1605],256],64653:[[1606,1606],256],64654:[[1606,1609],256],64655:[[1606,1610],256],64656:[[1609,1648],256],64657:[[1610,1585],256],64658:[[1610,1586],256],64659:[[1610,1605],256],64660:[[1610,1606],256],64661:[[1610,1609],256],64662:[[1610,1610],256],64663:[[1574,1580],256],64664:[[1574,1581],256],64665:[[1574,1582],256],64666:[[1574,1605],256],64667:[[1574,1607],256],64668:[[1576,1580],256],64669:[[1576,1581],256],64670:[[1576,1582],256],64671:[[1576,1605],256],64672:[[1576,1607],256],64673:[[1578,1580],256],64674:[[1578,1581],256],64675:[[1578,1582],256],64676:[[1578,1605],256],64677:[[1578,1607],256],64678:[[1579,1605],256],64679:[[1580,1581],256],64680:[[1580,1605],256],64681:[[1581,1580],256],64682:[[1581,1605],256],64683:[[1582,1580],256],64684:[[1582,1605],256],64685:[[1587,1580],256],64686:[[1587,1581],256],64687:[[1587,1582],256],64688:[[1587,1605],256],64689:[[1589,1581],256],64690:[[1589,1582],256],64691:[[1589,1605],256],64692:[[1590,1580],256],64693:[[1590,1581],256],64694:[[1590,1582],256],64695:[[1590,1605],256],64696:[[1591,1581],256],64697:[[1592,1605],256],64698:[[1593,1580],256],64699:[[1593,1605],256],64700:[[1594,1580],256],64701:[[1594,1605],256],64702:[[1601,1580],256],64703:[[1601,1581],256],64704:[[1601,1582],256],64705:[[1601,1605],256],64706:[[1602,1581],256],64707:[[1602,1605],256],64708:[[1603,1580],256],64709:[[1603,1581],256],64710:[[1603,1582],256],64711:[[1603,1604],256],64712:[[1603,1605],256],64713:[[1604,1580],256],64714:[[1604,1581],256],64715:[[1604,1582],256],64716:[[1604,1605],256],64717:[[1604,1607],256],64718:[[1605,1580],256],64719:[[1605,1581],256],64720:[[1605,1582],256],64721:[[1605,1605],256],64722:[[1606,1580],256],64723:[[1606,1581],256],64724:[[1606,1582],256],64725:[[1606,1605],256],64726:[[1606,1607],256],64727:[[1607,1580],256],64728:[[1607,1605],256],64729:[[1607,1648],256],64730:[[1610,1580],256],64731:[[1610,1581],256],64732:[[1610,1582],256],64733:[[1610,1605],256],64734:[[1610,1607],256],64735:[[1574,1605],256],64736:[[1574,1607],256],64737:[[1576,1605],256],64738:[[1576,1607],256],64739:[[1578,1605],256],64740:[[1578,1607],256],64741:[[1579,1605],256],64742:[[1579,1607],256],64743:[[1587,1605],256],64744:[[1587,1607],256],64745:[[1588,1605],256],64746:[[1588,1607],256],64747:[[1603,1604],256],64748:[[1603,1605],256],64749:[[1604,1605],256],64750:[[1606,1605],256],64751:[[1606,1607],256],64752:[[1610,1605],256],64753:[[1610,1607],256],64754:[[1600,1614,1617],256],64755:[[1600,1615,1617],256],64756:[[1600,1616,1617],256],64757:[[1591,1609],256],64758:[[1591,1610],256],64759:[[1593,1609],256],64760:[[1593,1610],256],64761:[[1594,1609],256],64762:[[1594,1610],256],64763:[[1587,1609],256],64764:[[1587,1610],256],64765:[[1588,1609],256],64766:[[1588,1610],256],64767:[[1581,1609],256]},64768:{64768:[[1581,1610],256],64769:[[1580,1609],256],64770:[[1580,1610],256],64771:[[1582,1609],256],64772:[[1582,1610],256],64773:[[1589,1609],256],64774:[[1589,1610],256],64775:[[1590,1609],256],64776:[[1590,1610],256],64777:[[1588,1580],256],64778:[[1588,1581],256],64779:[[1588,1582],256],64780:[[1588,1605],256],64781:[[1588,1585],256],64782:[[1587,1585],256],64783:[[1589,1585],256],64784:[[1590,1585],256],64785:[[1591,1609],256],64786:[[1591,1610],256],64787:[[1593,1609],256],64788:[[1593,1610],256],64789:[[1594,1609],256],64790:[[1594,1610],256],64791:[[1587,1609],256],64792:[[1587,1610],256],64793:[[1588,1609],256],64794:[[1588,1610],256],64795:[[1581,1609],256],64796:[[1581,1610],256],64797:[[1580,1609],256],64798:[[1580,1610],256],64799:[[1582,1609],256],64800:[[1582,1610],256],64801:[[1589,1609],256],64802:[[1589,1610],256],64803:[[1590,1609],256],64804:[[1590,1610],256],64805:[[1588,1580],256],64806:[[1588,1581],256],64807:[[1588,1582],256],64808:[[1588,1605],256],64809:[[1588,1585],256],64810:[[1587,1585],256],64811:[[1589,1585],256],64812:[[1590,1585],256],64813:[[1588,1580],256],64814:[[1588,1581],256],64815:[[1588,1582],256],64816:[[1588,1605],256],64817:[[1587,1607],256],64818:[[1588,1607],256],64819:[[1591,1605],256],64820:[[1587,1580],256],64821:[[1587,1581],256],64822:[[1587,1582],256],64823:[[1588,1580],256],64824:[[1588,1581],256],64825:[[1588,1582],256],64826:[[1591,1605],256],64827:[[1592,1605],256],64828:[[1575,1611],256],64829:[[1575,1611],256],64848:[[1578,1580,1605],256],64849:[[1578,1581,1580],256],64850:[[1578,1581,1580],256],64851:[[1578,1581,1605],256],64852:[[1578,1582,1605],256],64853:[[1578,1605,1580],256],64854:[[1578,1605,1581],256],64855:[[1578,1605,1582],256],64856:[[1580,1605,1581],256],64857:[[1580,1605,1581],256],64858:[[1581,1605,1610],256],64859:[[1581,1605,1609],256],64860:[[1587,1581,1580],256],64861:[[1587,1580,1581],256],64862:[[1587,1580,1609],256],64863:[[1587,1605,1581],256],64864:[[1587,1605,1581],256],64865:[[1587,1605,1580],256],64866:[[1587,1605,1605],256],64867:[[1587,1605,1605],256],64868:[[1589,1581,1581],256],64869:[[1589,1581,1581],256],64870:[[1589,1605,1605],256],64871:[[1588,1581,1605],256],64872:[[1588,1581,1605],256],64873:[[1588,1580,1610],256],64874:[[1588,1605,1582],256],64875:[[1588,1605,1582],256],64876:[[1588,1605,1605],256],64877:[[1588,1605,1605],256],64878:[[1590,1581,1609],256],64879:[[1590,1582,1605],256],64880:[[1590,1582,1605],256],64881:[[1591,1605,1581],256],64882:[[1591,1605,1581],256],64883:[[1591,1605,1605],256],64884:[[1591,1605,1610],256],64885:[[1593,1580,1605],256],64886:[[1593,1605,1605],256],64887:[[1593,1605,1605],256],64888:[[1593,1605,1609],256],64889:[[1594,1605,1605],256],64890:[[1594,1605,1610],256],64891:[[1594,1605,1609],256],64892:[[1601,1582,1605],256],64893:[[1601,1582,1605],256],64894:[[1602,1605,1581],256],64895:[[1602,1605,1605],256],64896:[[1604,1581,1605],256],64897:[[1604,1581,1610],256],64898:[[1604,1581,1609],256],64899:[[1604,1580,1580],256],64900:[[1604,1580,1580],256],64901:[[1604,1582,1605],256],64902:[[1604,1582,1605],256],64903:[[1604,1605,1581],256],64904:[[1604,1605,1581],256],64905:[[1605,1581,1580],256],64906:[[1605,1581,1605],256],64907:[[1605,1581,1610],256],64908:[[1605,1580,1581],256],64909:[[1605,1580,1605],256],64910:[[1605,1582,1580],256],64911:[[1605,1582,1605],256],64914:[[1605,1580,1582],256],64915:[[1607,1605,1580],256],64916:[[1607,1605,1605],256],64917:[[1606,1581,1605],256],64918:[[1606,1581,1609],256],64919:[[1606,1580,1605],256],64920:[[1606,1580,1605],256],64921:[[1606,1580,1609],256],64922:[[1606,1605,1610],256],64923:[[1606,1605,1609],256],64924:[[1610,1605,1605],256],64925:[[1610,1605,1605],256],64926:[[1576,1582,1610],256],64927:[[1578,1580,1610],256],64928:[[1578,1580,1609],256],64929:[[1578,1582,1610],256],64930:[[1578,1582,1609],256],64931:[[1578,1605,1610],256],64932:[[1578,1605,1609],256],64933:[[1580,1605,1610],256],64934:[[1580,1581,1609],256],64935:[[1580,1605,1609],256],64936:[[1587,1582,1609],256],64937:[[1589,1581,1610],256],64938:[[1588,1581,1610],256],64939:[[1590,1581,1610],256],64940:[[1604,1580,1610],256],64941:[[1604,1605,1610],256],64942:[[1610,1581,1610],256],64943:[[1610,1580,1610],256],64944:[[1610,1605,1610],256],64945:[[1605,1605,1610],256],64946:[[1602,1605,1610],256],64947:[[1606,1581,1610],256],64948:[[1602,1605,1581],256],64949:[[1604,1581,1605],256],64950:[[1593,1605,1610],256],64951:[[1603,1605,1610],256],64952:[[1606,1580,1581],256],64953:[[1605,1582,1610],256],64954:[[1604,1580,1605],256],64955:[[1603,1605,1605],256],64956:[[1604,1580,1605],256],64957:[[1606,1580,1581],256],64958:[[1580,1581,1610],256],64959:[[1581,1580,1610],256],64960:[[1605,1580,1610],256],64961:[[1601,1605,1610],256],64962:[[1576,1581,1610],256],64963:[[1603,1605,1605],256],64964:[[1593,1580,1605],256],64965:[[1589,1605,1605],256],64966:[[1587,1582,1610],256],64967:[[1606,1580,1610],256],65008:[[1589,1604,1746],256],65009:[[1602,1604,1746],256],65010:[[1575,1604,1604,1607],256],65011:[[1575,1603,1576,1585],256],65012:[[1605,1581,1605,1583],256],65013:[[1589,1604,1593,1605],256],65014:[[1585,1587,1608,1604],256],65015:[[1593,1604,1610,1607],256],65016:[[1608,1587,1604,1605],256],65017:[[1589,1604,1609],256],65018:[[1589,1604,1609,32,1575,1604,1604,1607,32,1593,1604,1610,1607,32,1608,1587,1604,1605],256],65019:[[1580,1604,32,1580,1604,1575,1604,1607],256],65020:[[1585,1740,1575,1604],256]},65024:{65040:[[44],256],65041:[[12289],256],65042:[[12290],256],65043:[[58],256],65044:[[59],256],65045:[[33],256],65046:[[63],256],65047:[[12310],256],65048:[[12311],256],65049:[[8230],256],65056:[,230],65057:[,230],65058:[,230],65059:[,230],65060:[,230],65061:[,230],65062:[,230],65063:[,220],65064:[,220],65065:[,220],65066:[,220],65067:[,220],65068:[,220],65069:[,220],65072:[[8229],256],65073:[[8212],256],65074:[[8211],256],65075:[[95],256],65076:[[95],256],65077:[[40],256],65078:[[41],256],65079:[[123],256],65080:[[125],256],65081:[[12308],256],65082:[[12309],256],65083:[[12304],256],65084:[[12305],256],65085:[[12298],256],65086:[[12299],256],65087:[[12296],256],65088:[[12297],256],65089:[[12300],256],65090:[[12301],256],65091:[[12302],256],65092:[[12303],256],65095:[[91],256],65096:[[93],256],65097:[[8254],256],65098:[[8254],256],65099:[[8254],256],65100:[[8254],256],65101:[[95],256],65102:[[95],256],65103:[[95],256],65104:[[44],256],65105:[[12289],256],65106:[[46],256],65108:[[59],256],65109:[[58],256],65110:[[63],256],65111:[[33],256],65112:[[8212],256],65113:[[40],256],65114:[[41],256],65115:[[123],256],65116:[[125],256],65117:[[12308],256],65118:[[12309],256],65119:[[35],256],65120:[[38],256],65121:[[42],256],65122:[[43],256],65123:[[45],256],65124:[[60],256],65125:[[62],256],65126:[[61],256],65128:[[92],256],65129:[[36],256],65130:[[37],256],65131:[[64],256],65136:[[32,1611],256],65137:[[1600,1611],256],65138:[[32,1612],256],65140:[[32,1613],256],65142:[[32,1614],256],65143:[[1600,1614],256],65144:[[32,1615],256],65145:[[1600,1615],256],65146:[[32,1616],256],65147:[[1600,1616],256],65148:[[32,1617],256],65149:[[1600,1617],256],65150:[[32,1618],256],65151:[[1600,1618],256],65152:[[1569],256],65153:[[1570],256],65154:[[1570],256],65155:[[1571],256],65156:[[1571],256],65157:[[1572],256],65158:[[1572],256],65159:[[1573],256],65160:[[1573],256],65161:[[1574],256],65162:[[1574],256],65163:[[1574],256],65164:[[1574],256],65165:[[1575],256],65166:[[1575],256],65167:[[1576],256],65168:[[1576],256],65169:[[1576],256],65170:[[1576],256],65171:[[1577],256],65172:[[1577],256],65173:[[1578],256],65174:[[1578],256],65175:[[1578],256],65176:[[1578],256],65177:[[1579],256],65178:[[1579],256],65179:[[1579],256],65180:[[1579],256],65181:[[1580],256],65182:[[1580],256],65183:[[1580],256],65184:[[1580],256],65185:[[1581],256],65186:[[1581],256],65187:[[1581],256],65188:[[1581],256],65189:[[1582],256],65190:[[1582],256],65191:[[1582],256],65192:[[1582],256],65193:[[1583],256],65194:[[1583],256],65195:[[1584],256],65196:[[1584],256],65197:[[1585],256],65198:[[1585],256],65199:[[1586],256],65200:[[1586],256],65201:[[1587],256],65202:[[1587],256],65203:[[1587],256],65204:[[1587],256],65205:[[1588],256],65206:[[1588],256],65207:[[1588],256],65208:[[1588],256],65209:[[1589],256],65210:[[1589],256],65211:[[1589],256],65212:[[1589],256],65213:[[1590],256],65214:[[1590],256],65215:[[1590],256],65216:[[1590],256],65217:[[1591],256],65218:[[1591],256],65219:[[1591],256],65220:[[1591],256],65221:[[1592],256],65222:[[1592],256],65223:[[1592],256],65224:[[1592],256],65225:[[1593],256],65226:[[1593],256],65227:[[1593],256],65228:[[1593],256],65229:[[1594],256],65230:[[1594],256],65231:[[1594],256],65232:[[1594],256],65233:[[1601],256],65234:[[1601],256],65235:[[1601],256],65236:[[1601],256],65237:[[1602],256],65238:[[1602],256],65239:[[1602],256],65240:[[1602],256],65241:[[1603],256],65242:[[1603],256],65243:[[1603],256],65244:[[1603],256],65245:[[1604],256],65246:[[1604],256],65247:[[1604],256],65248:[[1604],256],65249:[[1605],256],65250:[[1605],256],65251:[[1605],256],65252:[[1605],256],65253:[[1606],256],65254:[[1606],256],65255:[[1606],256],65256:[[1606],256],65257:[[1607],256],65258:[[1607],256],65259:[[1607],256],65260:[[1607],256],65261:[[1608],256],65262:[[1608],256],65263:[[1609],256],65264:[[1609],256],65265:[[1610],256],65266:[[1610],256],65267:[[1610],256],65268:[[1610],256],65269:[[1604,1570],256],65270:[[1604,1570],256],65271:[[1604,1571],256],65272:[[1604,1571],256],65273:[[1604,1573],256],65274:[[1604,1573],256],65275:[[1604,1575],256],65276:[[1604,1575],256]},65280:{65281:[[33],256],65282:[[34],256],65283:[[35],256],65284:[[36],256],65285:[[37],256],65286:[[38],256],65287:[[39],256],65288:[[40],256],65289:[[41],256],65290:[[42],256],65291:[[43],256],65292:[[44],256],65293:[[45],256],65294:[[46],256],65295:[[47],256],65296:[[48],256],65297:[[49],256],65298:[[50],256],65299:[[51],256],65300:[[52],256],65301:[[53],256],65302:[[54],256],65303:[[55],256],65304:[[56],256],65305:[[57],256],65306:[[58],256],65307:[[59],256],65308:[[60],256],65309:[[61],256],65310:[[62],256],65311:[[63],256],65312:[[64],256],65313:[[65],256],65314:[[66],256],65315:[[67],256],65316:[[68],256],65317:[[69],256],65318:[[70],256],65319:[[71],256],65320:[[72],256],65321:[[73],256],65322:[[74],256],65323:[[75],256],65324:[[76],256],65325:[[77],256],65326:[[78],256],65327:[[79],256],65328:[[80],256],65329:[[81],256],65330:[[82],256],65331:[[83],256],65332:[[84],256],65333:[[85],256],65334:[[86],256],65335:[[87],256],65336:[[88],256],65337:[[89],256],65338:[[90],256],65339:[[91],256],65340:[[92],256],65341:[[93],256],65342:[[94],256],65343:[[95],256],65344:[[96],256],65345:[[97],256],65346:[[98],256],65347:[[99],256],65348:[[100],256],65349:[[101],256],65350:[[102],256],65351:[[103],256],65352:[[104],256],65353:[[105],256],65354:[[106],256],65355:[[107],256],65356:[[108],256],65357:[[109],256],65358:[[110],256],65359:[[111],256],65360:[[112],256],65361:[[113],256],65362:[[114],256],65363:[[115],256],65364:[[116],256],65365:[[117],256],65366:[[118],256],65367:[[119],256],65368:[[120],256],65369:[[121],256],65370:[[122],256],65371:[[123],256],65372:[[124],256],65373:[[125],256],65374:[[126],256],65375:[[10629],256],65376:[[10630],256],65377:[[12290],256],65378:[[12300],256],65379:[[12301],256],65380:[[12289],256],65381:[[12539],256],65382:[[12530],256],65383:[[12449],256],65384:[[12451],256],65385:[[12453],256],65386:[[12455],256],65387:[[12457],256],65388:[[12515],256],65389:[[12517],256],65390:[[12519],256],65391:[[12483],256],65392:[[12540],256],65393:[[12450],256],65394:[[12452],256],65395:[[12454],256],65396:[[12456],256],65397:[[12458],256],65398:[[12459],256],65399:[[12461],256],65400:[[12463],256],65401:[[12465],256],65402:[[12467],256],65403:[[12469],256],65404:[[12471],256],65405:[[12473],256],65406:[[12475],256],65407:[[12477],256],65408:[[12479],256],65409:[[12481],256],65410:[[12484],256],65411:[[12486],256],65412:[[12488],256],65413:[[12490],256],65414:[[12491],256],65415:[[12492],256],65416:[[12493],256],65417:[[12494],256],65418:[[12495],256],65419:[[12498],256],65420:[[12501],256],65421:[[12504],256],65422:[[12507],256],65423:[[12510],256],65424:[[12511],256],65425:[[12512],256],65426:[[12513],256],65427:[[12514],256],65428:[[12516],256],65429:[[12518],256],65430:[[12520],256],65431:[[12521],256],65432:[[12522],256],65433:[[12523],256],65434:[[12524],256],65435:[[12525],256],65436:[[12527],256],65437:[[12531],256],65438:[[12441],256],65439:[[12442],256],65440:[[12644],256],65441:[[12593],256],65442:[[12594],256],65443:[[12595],256],65444:[[12596],256],65445:[[12597],256],65446:[[12598],256],65447:[[12599],256],65448:[[12600],256],65449:[[12601],256],65450:[[12602],256],65451:[[12603],256],65452:[[12604],256],65453:[[12605],256],65454:[[12606],256],65455:[[12607],256],65456:[[12608],256],65457:[[12609],256],65458:[[12610],256],65459:[[12611],256],65460:[[12612],256],65461:[[12613],256],65462:[[12614],256],65463:[[12615],256],65464:[[12616],256],65465:[[12617],256],65466:[[12618],256],65467:[[12619],256],65468:[[12620],256],65469:[[12621],256],65470:[[12622],256],65474:[[12623],256],65475:[[12624],256],65476:[[12625],256],65477:[[12626],256],65478:[[12627],256],65479:[[12628],256],65482:[[12629],256],65483:[[12630],256],65484:[[12631],256],65485:[[12632],256],65486:[[12633],256],65487:[[12634],256],65490:[[12635],256],65491:[[12636],256],65492:[[12637],256],65493:[[12638],256],65494:[[12639],256],65495:[[12640],256],65498:[[12641],256],65499:[[12642],256],65500:[[12643],256],65504:[[162],256],65505:[[163],256],65506:[[172],256],65507:[[175],256],65508:[[166],256],65509:[[165],256],65510:[[8361],256],65512:[[9474],256],65513:[[8592],256],65514:[[8593],256],65515:[[8594],256],65516:[[8595],256],65517:[[9632],256],65518:[[9675],256]}};var g={nfc:function(e){return m("NFC",e)},nfd:function(e){return m("NFD",e)},nfkc:function(e){return m("NFKC",e)},nfkd:function(e){return m("NFKD",e)}};"object"===i(e)?e.exports=g:void 0===(r=function(){return g}.call(t,n,t,e))||(e.exports=r),g.shimApplied=!1,String.prototype.normalize||(Object.defineProperty(String.prototype,"normalize",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=""+this,t=void 0===arguments[0]?"NFC":arguments[0];if(null==this)throw new TypeError("Cannot call method on "+Object.prototype.toString.call(this));if("NFC"===t)return g.nfc(e);if("NFD"===t)return g.nfd(e);if("NFKC"===t)return g.nfkc(e);if("NFKD"===t)return g.nfkd(e);throw new RangeError("Invalid normalization form: "+t)}}),g.shimApplied=!0)}()}).call(this,n(143)(e))},function(e,t,n){var r=n(12),i=n(174),a=r.WeakMap;e.exports="function"==typeof a&&/native code/.test(i(a))},function(e,t,n){"use strict";var r=n(7),i=n(148).right,a=n(106),o=n(80),s=a("reduceRight"),c=o("reduce",{1:0});r({target:"Array",proto:!0,forced:!s||!c},{reduceRight:function(e){return i(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var r=n(181),i=n(128);e.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},function(e,t,n){"use strict";n.r(t),n.d(t,"Headers",(function(){return m})),n.d(t,"Request",(function(){return x})),n.d(t,"Response",(function(){return T})),n.d(t,"DOMException",(function(){return E})),n.d(t,"fetch",(function(){return I}));n(47),n(73),n(97),n(19),n(23),n(9),n(33),n(30),n(20),n(184),n(28),n(186),n(5),n(21),n(15),n(25),n(22),n(38),n(39),n(98),n(74),n(48),n(49),n(50),n(51),n(52),n(53),n(54),n(55),n(56),n(57),n(58),n(59),n(60),n(61),n(62),n(63),n(64),n(65),n(66),n(67),n(68),n(69),n(70),n(27),n(24),n(192);var r=n(13),i=n.n(r),a="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==a&&a,o="URLSearchParams"in a,s="Symbol"in a&&"iterator"in Symbol,c="FileReader"in a&&"Blob"in a&&function(){try{return new Blob,!0}catch(e){return!1}}(),u="FormData"in a,l="ArrayBuffer"in a;if(l)var f=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],p=ArrayBuffer.isView||function(e){return e&&f.indexOf(Object.prototype.toString.call(e))>-1};function d(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function h(e){return"string"!=typeof e&&(e=String(e)),e}function v(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return s&&(t[Symbol.iterator]=function(){return t}),t}function m(e){this.map={},e instanceof m?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 g(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function y(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function b(e){var t=new FileReader,n=y(t);return t.readAsArrayBuffer(e),n}function _(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function w(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:c&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:u&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:o&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():l&&c&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=_(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):l&&(ArrayBuffer.prototype.isPrototypeOf(e)||p(e))?this._bodyArrayBuffer=_(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):o&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},c&&(this.blob=function(){var e=g(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(){if(this._bodyArrayBuffer){var e=g(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}return this.blob().then(b)}),this.text=function(){var e,t,n,r=g(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=y(t),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},u&&(this.formData=function(){return this.text().then(k)}),this.json=function(){return this.text().then(JSON.parse)},this}m.prototype.append=function(e,t){e=d(e),t=h(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},m.prototype.delete=function(e){delete this.map[d(e)]},m.prototype.get=function(e){return e=d(e),this.has(e)?this.map[e]:null},m.prototype.has=function(e){return this.map.hasOwnProperty(d(e))},m.prototype.set=function(e,t){this.map[d(e)]=h(t)},m.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},m.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),v(e)},m.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),v(e)},m.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),v(e)},s&&(m.prototype[Symbol.iterator]=m.prototype.entries);var S=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function x(e,t){if(!(this instanceof x))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n,r,i=(t=t||{}).body;if(e instanceof x){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new m(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 m(t.headers)),this.method=(n=t.method||this.method||"GET",r=n.toUpperCase(),S.indexOf(r)>-1?r:n),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");if(this._initBody(i),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var a=/([?&])_=[^&]*/;if(a.test(this.url))this.url=this.url.replace(a,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function k(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}})),t}function T(e,t){if(!(this instanceof T))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');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:"",this.headers=new m(t.headers),this.url=t.url||"",this._initBody(e)}x.prototype.clone=function(){return new x(this,{body:this._bodyInit})},w.call(x.prototype),w.call(T.prototype),T.prototype.clone=function(){return new T(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new m(this.headers),url:this.url})},T.error=function(){var e=new T(null,{status:0,statusText:""});return e.type="error",e};var j=[301,302,303,307,308];T.redirect=function(e,t){if(-1===j.indexOf(t))throw new RangeError("Invalid status code");return new T(null,{status:t,headers:{location:e}})};var E=a.DOMException;try{new E}catch(e){(E=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack}).prototype=Object.create(Error.prototype),E.prototype.constructor=E}function I(e,t){return new Promise((function(n,r){var o=new x(e,t);if(o.signal&&o.signal.aborted)return r(new E("Aborted","AbortError"));var s=new XMLHttpRequest;function u(){s.abort()}s.onload=function(){var e,t,r={status:s.status,statusText:s.statusText,headers:(e=s.getAllResponseHeaders()||"",t=new m,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();t.append(r,i)}})),t)};r.url="responseURL"in s?s.responseURL:r.headers.get("X-Request-URL");var i="response"in s?s.response:s.responseText;setTimeout((function(){n(new T(i,r))}),0)},s.onerror=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},s.ontimeout=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},s.onabort=function(){setTimeout((function(){r(new E("Aborted","AbortError"))}),0)},s.open(o.method,function(e){try{return""===e&&a.location.href?a.location.href:e}catch(t){return e}}(o.url),!0),"include"===o.credentials?s.withCredentials=!0:"omit"===o.credentials&&(s.withCredentials=!1),"responseType"in s&&(c?s.responseType="blob":l&&o.headers.get("Content-Type")&&-1!==o.headers.get("Content-Type").indexOf("application/octet-stream")&&(s.responseType="arraybuffer")),!t||"object"!==i()(t.headers)||t.headers instanceof m?o.headers.forEach((function(e,t){s.setRequestHeader(t,e)})):Object.getOwnPropertyNames(t.headers).forEach((function(e){s.setRequestHeader(e,h(t.headers[e]))})),o.signal&&(o.signal.addEventListener("abort",u),s.onreadystatechange=function(){4===s.readyState&&o.signal.removeEventListener("abort",u)}),s.send(void 0===o._bodyInit?null:o._bodyInit)}))}I.polyfill=!0,a.fetch||(a.fetch=I,a.Headers=m,a.Request=x,a.Response=T)},function(e,t,n){var r=n(31);e.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},function(e,t){var n=Math.abs,r=Math.pow,i=Math.floor,a=Math.log,o=Math.LN2;e.exports={pack:function(e,t,s){var c,u,l,f=new Array(s),p=8*s-t-1,d=(1<<p)-1,h=d>>1,v=23===t?r(2,-24)-r(2,-77):0,m=e<0||0===e&&1/e<0?1:0,g=0;for((e=n(e))!=e||e===1/0?(u=e!=e?1:0,c=d):(c=i(a(e)/o),e*(l=r(2,-c))<1&&(c--,l*=2),(e+=c+h>=1?v/l:v*r(2,1-h))*l>=2&&(c++,l/=2),c+h>=d?(u=0,c=d):c+h>=1?(u=(e*l-1)*r(2,t),c+=h):(u=e*r(2,h-1)*r(2,t),c=0));t>=8;f[g++]=255&u,u/=256,t-=8);for(c=c<<t|u,p+=t;p>0;f[g++]=255&c,c/=256,p-=8);return f[--g]|=128*m,f},unpack:function(e,t){var n,i=e.length,a=8*i-t-1,o=(1<<a)-1,s=o>>1,c=a-7,u=i-1,l=e[u--],f=127&l;for(l>>=7;c>0;f=256*f+e[u],u--,c-=8);for(n=f&(1<<-c)-1,f>>=-c,c+=t;c>0;n=256*n+e[u],u--,c-=8);if(0===f)f=1-s;else{if(f===o)return n?NaN:l?-1/0:1/0;n+=r(2,t),f-=s}return(l?-1:1)*n*r(2,f-t)}}},function(e,t,n){var r=n(12);e.exports=function(e,t){var n=r.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}},function(e,t){e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},function(e,t,n){var r=n(11),i=n(237);e.exports=function(e){return r((function(){return!!i[e]()||"​…᠎"!="​…᠎"[e]()||i[e].name!==e}))}},function(e,t,n){var r=n(12),i=n(11),a=n(151),o=n(26).NATIVE_ARRAY_BUFFER_VIEWS,s=r.ArrayBuffer,c=r.Int8Array;e.exports=!o||!i((function(){c(1)}))||!i((function(){new c(-1)}))||!a((function(e){new c,new c(null),new c(1.5),new c(e)}),!0)||i((function(){return 1!==new c(new s(2),1,void 0).length}))},function(e,t,n){var r=n(96);e.exports=function(e){var t=r(e);if(t<0)throw RangeError("The argument can't be less than 0");return t}},function(e,t,n){var r=n(46),i=n(29),a=n(132),o=n(188),s=n(108),c=n(26).aTypedArrayConstructor;e.exports=function(e){var t,n,u,l,f,p,d=r(e),h=arguments.length,v=h>1?arguments[1]:void 0,m=void 0!==v,g=a(d);if(null!=g&&!o(g))for(p=(f=g.call(d)).next,d=[];!(l=p.call(f)).done;)d.push(l.value);for(m&&h>2&&(v=s(v,arguments[2],2)),n=i(d.length),u=new(c(this))(n),t=0;n>t;t++)u[t]=m?v(d[t],t):d[t];return u}},function(e,t,n){"use strict";var r=n(46),i=n(105),a=n(29),o=Math.min;e.exports=[].copyWithin||function(e,t){var n=r(this),s=a(n.length),c=i(e,s),u=i(t,s),l=arguments.length>2?arguments[2]:void 0,f=o((void 0===l?s:i(l,s))-u,s-c),p=1;for(u<c&&c<u+f&&(p=-1,u+=f-1,c+=f-1);f-- >0;)u in n?n[c]=n[u]:delete n[c],c+=p,u+=p;return n}},function(e,t,n){"use strict";var r=/[^\0-\u007E]/,i=/[.\u3002\uFF0E\uFF61]/g,a="Overflow: input needs wider integers to process",o=Math.floor,s=String.fromCharCode,c=function(e){return e+22+75*(e<26)},u=function(e,t,n){var r=0;for(e=n?o(e/700):e>>1,e+=o(e/t);e>455;r+=36)e=o(e/35);return o(r+36*e/(e+38))},l=function(e){var t,n,r=[],i=(e=function(e){for(var t=[],n=0,r=e.length;n<r;){var i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var a=e.charCodeAt(n++);56320==(64512&a)?t.push(((1023&i)<<10)+(1023&a)+65536):(t.push(i),n--)}else t.push(i)}return t}(e)).length,l=128,f=0,p=72;for(t=0;t<e.length;t++)(n=e[t])<128&&r.push(s(n));var d=r.length,h=d;for(d&&r.push("-");h<i;){var v=2147483647;for(t=0;t<e.length;t++)(n=e[t])>=l&&n<v&&(v=n);var m=h+1;if(v-l>o((2147483647-f)/m))throw RangeError(a);for(f+=(v-l)*m,l=v,t=0;t<e.length;t++){if((n=e[t])<l&&++f>2147483647)throw RangeError(a);if(n==l){for(var g=f,y=36;;y+=36){var b=y<=p?1:y>=p+26?26:y-p;if(g<b)break;var _=g-b,w=36-b;r.push(s(c(b+_%w))),g=o(_/w)}r.push(s(c(g))),p=u(f,m,h==d),f=0,++h}}++f,++l}return r.join("")};e.exports=function(e){var t,n,a=[],o=e.toLowerCase().replace(i,".").split(".");for(t=0;t<o.length;t++)n=o[t],a.push(r.test(n)?"xn--"+l(n):n);return a.join(".")}},function(e,t,n){"use strict";n(9);var r=n(7),i=n(95),a=n(242),o=n(45),s=n(150),c=n(88),u=n(223),l=n(86),f=n(109),p=n(34),d=n(108),h=n(128),v=n(36),m=n(31),g=n(107),y=n(103),b=n(312),_=n(132),w=n(18),S=i("fetch"),x=i("Headers"),k=w("iterator"),T=l.set,j=l.getterFor("URLSearchParams"),E=l.getterFor("URLSearchParamsIterator"),I=/\+/g,O=Array(4),A=function(e){return O[e-1]||(O[e-1]=RegExp("((?:%[\\da-f]{2}){"+e+"})","gi"))},R=function(e){try{return decodeURIComponent(e)}catch(t){return e}},N=function(e){var t=e.replace(I," "),n=4;try{return decodeURIComponent(t)}catch(e){for(;n;)t=t.replace(A(n--),R);return t}},C=/[!'()~]|%20/g,P={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},L=function(e){return P[e]},q=function(e){return encodeURIComponent(e).replace(C,L)},F=function(e,t){if(t)for(var n,r,i=t.split("&"),a=0;a<i.length;)(n=i[a++]).length&&(r=n.split("="),e.push({key:N(r.shift()),value:N(r.join("="))}))},M=function(e){this.entries.length=0,F(this.entries,e)},D=function(e,t){if(e<t)throw TypeError("Not enough arguments")},B=u((function(e,t){T(this,{type:"URLSearchParamsIterator",iterator:b(j(e).entries),kind:t})}),"Iterator",(function(){var e=E(this),t=e.kind,n=e.iterator.next(),r=n.value;return n.done||(n.value="keys"===t?r.key:"values"===t?r.value:[r.key,r.value]),n})),U=function(){f(this,U,"URLSearchParams");var e,t,n,r,i,a,o,s,c,u=arguments.length>0?arguments[0]:void 0,l=this,d=[];if(T(l,{type:"URLSearchParams",entries:d,updateURL:function(){},updateSearchParams:M}),void 0!==u)if(m(u))if("function"==typeof(e=_(u)))for(n=(t=e.call(u)).next;!(r=n.call(t)).done;){if((o=(a=(i=b(v(r.value))).next).call(i)).done||(s=a.call(i)).done||!a.call(i).done)throw TypeError("Expected sequence with length 2");d.push({key:o.value+"",value:s.value+""})}else for(c in u)p(u,c)&&d.push({key:c,value:u[c]+""});else F(d,"string"==typeof u?"?"===u.charAt(0)?u.slice(1):u:u+"")},z=U.prototype;s(z,{append:function(e,t){D(arguments.length,2);var n=j(this);n.entries.push({key:e+"",value:t+""}),n.updateURL()},delete:function(e){D(arguments.length,1);for(var t=j(this),n=t.entries,r=e+"",i=0;i<n.length;)n[i].key===r?n.splice(i,1):i++;t.updateURL()},get:function(e){D(arguments.length,1);for(var t=j(this).entries,n=e+"",r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){D(arguments.length,1);for(var t=j(this).entries,n=e+"",r=[],i=0;i<t.length;i++)t[i].key===n&&r.push(t[i].value);return r},has:function(e){D(arguments.length,1);for(var t=j(this).entries,n=e+"",r=0;r<t.length;)if(t[r++].key===n)return!0;return!1},set:function(e,t){D(arguments.length,1);for(var n,r=j(this),i=r.entries,a=!1,o=e+"",s=t+"",c=0;c<i.length;c++)(n=i[c]).key===o&&(a?i.splice(c--,1):(a=!0,n.value=s));a||i.push({key:o,value:s}),r.updateURL()},sort:function(){var e,t,n,r=j(this),i=r.entries,a=i.slice();for(i.length=0,n=0;n<a.length;n++){for(e=a[n],t=0;t<n;t++)if(i[t].key>e.key){i.splice(t,0,e);break}t===n&&i.push(e)}r.updateURL()},forEach:function(e){for(var t,n=j(this).entries,r=d(e,arguments.length>1?arguments[1]:void 0,3),i=0;i<n.length;)r((t=n[i++]).value,t.key,this)},keys:function(){return new B(this,"keys")},values:function(){return new B(this,"values")},entries:function(){return new B(this,"entries")}},{enumerable:!0}),o(z,k,z.entries),o(z,"toString",(function(){for(var e,t=j(this).entries,n=[],r=0;r<t.length;)e=t[r++],n.push(q(e.key)+"="+q(e.value));return n.join("&")}),{enumerable:!0}),c(U,"URLSearchParams"),r({global:!0,forced:!a},{URLSearchParams:U}),a||"function"!=typeof S||"function"!=typeof x||r({global:!0,enumerable:!0,forced:!0},{fetch:function(e){var t,n,r,i=[e];return arguments.length>1&&(m(t=arguments[1])&&(n=t.body,"URLSearchParams"===h(n)&&((r=t.headers?new x(t.headers):new x).has("content-type")||r.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),t=g(t,{body:y(0,String(n)),headers:y(0,r)}))),i.push(t)),S.apply(this,i)}}),e.exports={URLSearchParams:U,getState:j}},function(e,t,n){var r=n(36),i=n(132);e.exports=function(e){var t=i(e);if("function"!=typeof t)throw TypeError(String(e)+" is not iterable");return r(t.call(e))}},function(e,t,n){"use strict";n.r(t);var r=n(208),i=n(168);for(var a in i)["HttpClient","parseJwt","default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(a);var o=n(141);for(var a in o)["HttpClient","parseJwt","default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(a);var s=n(142);n.d(t,"HttpClient",(function(){return s.HttpClient}));var c=n(101);n.d(t,"parseJwt",(function(){return c.parseJwt})),t.default=r.Client},function(e,t){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw a}}return n}}},function(e,t,n){var r=function(e){"use strict";var t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",o=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var i=t&&t.prototype instanceof f?t:f,a=Object.create(i.prototype),o=new x(r||[]);return a._invoke=function(e,t,n){var r="suspendedStart";return function(i,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw a;return T()}for(n.method=i,n.arg=a;;){var o=n.delegate;if(o){var s=_(o,n);if(s){if(s===l)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=u(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(e,n,o),a}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var l={};function f(){}function p(){}function d(){}var h={};h[i]=function(){return this};var v=Object.getPrototypeOf,m=v&&v(v(k([])));m&&m!==t&&n.call(m,i)&&(h=m);var g=d.prototype=f.prototype=Object.create(h);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){var r;this._invoke=function(i,a){function o(){return new t((function(r,o){!function r(i,a,o,s){var c=u(e[i],e,a);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,o,s)}),(function(e){r("throw",e,o,s)})):t.resolve(f).then((function(e){l.value=e,o(l)}),(function(e){return r("throw",e,o,s)}))}s(c.arg)}(i,a,r,o)}))}return r=r?r.then(o,o):o()}}function _(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=u(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function k(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:T}}function T(){return{value:void 0,done:!0}}return p.prototype=g.constructor=d,d.constructor=p,p.displayName=s(d,o,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,s(e,o,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},y(b.prototype),b.prototype[a]=function(){return this},e.AsyncIterator=b,e.async=function(t,n,r,i,a){void 0===a&&(a=Promise);var o=new b(c(t,n,r,i),a);return e.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},y(g),s(g,o,"Generator"),g[i]=function(){return this},g.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=k,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return o.type="throw",o.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method="next",this.next=a.finallyLoc,l):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;S(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:k(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}(e.exports);try{regeneratorRuntime=r}catch(e){Function("r","regeneratorRuntime = r")(r)}},function(e,t,n){t.RateLimiter=n(317),t.TokenBucket=n(252)},function(e,t,n){(function(t){var r=n(252),i=n(318),a=function(e,t,n){this.tokenBucket=new r(e,e,t,null),this.tokenBucket.content=e,this.curIntervalStart=i(),this.tokensThisInterval=0,this.fireImmediately=n};a.prototype={tokenBucket:null,curIntervalStart:0,tokensThisInterval:0,fireImmediately:!1,removeTokens:function(e,n){if(e>this.tokenBucket.bucketSize)return t.nextTick(n.bind(null,"Requested tokens "+e+" exceeds maximum tokens per interval "+this.tokenBucket.bucketSize,null)),!1;var r=this,a=i();if((a<this.curIntervalStart||a-this.curIntervalStart>=this.tokenBucket.interval)&&(this.curIntervalStart=a,this.tokensThisInterval=0),e>this.tokenBucket.tokensPerInterval-this.tokensThisInterval){if(this.fireImmediately)t.nextTick(n.bind(null,null,-1));else{var o=Math.ceil(this.curIntervalStart+this.tokenBucket.interval-a);setTimeout((function(){r.tokenBucket.removeTokens(e,s)}),o)}return!1}return this.tokenBucket.removeTokens(e,s);function s(t,i){if(t)return n(t,null);r.tokensThisInterval+=e,n(null,i)}},tryRemoveTokens:function(e){if(e>this.tokenBucket.bucketSize)return!1;var t=i();if((t<this.curIntervalStart||t-this.curIntervalStart>=this.tokenBucket.interval)&&(this.curIntervalStart=t,this.tokensThisInterval=0),e>this.tokenBucket.tokensPerInterval-this.tokensThisInterval)return!1;var n=this.tokenBucket.tryRemoveTokens(e);return n&&(this.tokensThisInterval+=e),n},getTokensRemaining:function(){return this.tokenBucket.drip(),this.tokenBucket.content}},e.exports=a}).call(this,n(100))},function(e,t,n){(function(t){e.exports=function(){if(void 0!==t&&t.hrtime){var e=t.hrtime(),n=e[0],r=e[1];return 1e3*n+Math.floor(r/1e6)}return(new Date).getTime()}}).call(this,n(100))},function(e,t,n){"use strict";n.r(t),function(e,r){n.d(t,"Client",(function(){return qc})),n.d(t,"Constants",(function(){return Va})),n.d(t,"DataForms",(function(){return _o})),n.d(t,"JID",(function(){return Ee})),n.d(t,"JXT",(function(){return Wr})),n.d(t,"Jingle",(function(){return go})),n.d(t,"Namespaces",(function(){return Lr})),n.d(t,"RSM",(function(){return zc})),n.d(t,"RTT",(function(){return Bc})),n.d(t,"SASL",(function(){return Qi})),n.d(t,"Stanzas",(function(){return Nc})),n.d(t,"Utils",(function(){return sa})),n.d(t,"VERSION",(function(){return Jc})),n.d(t,"core",(function(){return Po})),n.d(t,"createClient",(function(){return Gc})),n.d(t,"getHostMeta",(function(){return Ka}));n(47),n(73),n(134),n(10),n(158),n(44),n(133),n(19),n(82),n(23),n(9),n(33),n(159),n(30),n(20),n(325),n(81),n(28),n(90),n(75),n(118),n(326),n(71),n(5),n(327),n(21),n(15),n(25),n(91),n(197),n(257),n(160),n(99),n(22),n(89),n(38),n(198),n(39),n(137),n(98),n(74),n(48),n(49),n(50),n(51),n(52),n(53),n(54),n(55),n(56),n(57),n(58),n(59),n(60),n(61),n(62),n(63),n(64),n(65),n(66),n(67),n(68),n(69),n(70),n(27),n(24),n(192),n(136);var i=n(43),a=n.n(i),o=n(77),s=n.n(o),c=n(14),u=n.n(c),l=n(13),f=n.n(l),p=n(6),d=n.n(p),h=n(209),v=n.n(h),m=n(4),g=n.n(m),y=n(0),b=n.n(y),_=(n(40),n(2)),w=n.n(_),S=n(3),x=n.n(S),k=n(8),T=n.n(k),j=n(37),E=n.n(j),I=n(16),O=n.n(I),A=n(1),R=n(121),N=n(42),C=n(78),P=n.n(C),L=n(92),q=n(17);function F(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return M(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return M(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function M(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function D(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 n,r=O()(e);if(t){var i=O()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return E()(this,n)}}var B=Math.pow(2,32),U=function(e,t){return(e%t+t)%t},z=function(e){T()(n,e);var t=D(n);function n(){var e;return w()(this,n),(e=t.call(this)).allowResume=!0,e.lastAck=0,e.handled=0,e.unacked=[],e.inboundStarted=!1,e.outboundStarted=!1,e.id=void 0,e.jid=void 0,e.allowResume=!0,e.started=!1,e.cacheHandler=function(){},e._reset(),e}return x()(n,[{key:"load",value:function(e){var t;this.id=e.id,this.allowResume=null===(t=e.allowResume)||void 0===t||t,this.handled=e.handled,this.lastAck=e.lastAck,this.unacked=e.unacked,this.emit("prebound",e.jid)}},{key:"cache",value:function(e){this.cacheHandler=e}},{key:"bind",value:function(e){return Object(A.__awaiter)(this,void 0,void 0,b.a.mark((function t(){return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.jid=e,t.next=3,this._cache();case 3:case"end":return t.stop()}}),t,this)})))}},{key:"enable",value:function(){return Object(A.__awaiter)(this,void 0,void 0,b.a.mark((function e(){return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.emit("send",{allowResumption:this.allowResume,type:"enable"});case 1:case"end":return e.stop()}}),e,this)})))}},{key:"resume",value:function(){return Object(A.__awaiter)(this,void 0,void 0,b.a.mark((function e(){return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.emit("send",{handled:this.handled,previousSession:this.id,type:"resume"});case 1:case"end":return e.stop()}}),e,this)})))}},{key:"enabled",value:function(e){return Object(A.__awaiter)(this,void 0,void 0,b.a.mark((function t(){return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.id=e.id,this.handled=0,this.inboundStarted=!0,t.next=5,this._cache();case 5:case"end":return t.stop()}}),t,this)})))}},{key:"resumed",value:function(e){return Object(A.__awaiter)(this,void 0,void 0,b.a.mark((function t(){return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.id=e.previousSession,this.inboundStarted=!0,t.next=4,this.process(e,!0);case 4:return t.next=6,this._cache();case 6:case"end":return t.stop()}}),t,this)})))}},{key:"failed",value:function(e){return Object(A.__awaiter)(this,void 0,void 0,b.a.mark((function t(){var n,r,i,a,o;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.process(e);case 2:n=F(this.unacked);try{for(n.s();!(r=n.n()).done;)i=g()(r.value,2),a=i[0],o=i[1],this.emit("failed",{kind:a,stanza:o})}catch(e){n.e(e)}finally{n.f()}return this._reset(),t.next=7,this._cache();case 7:case"end":return t.stop()}}),t,this)})))}},{key:"ack",value:function(){this.emit("send",{handled:this.handled,type:"ack"})}},{key:"request",value:function(){this.emit("send",{type:"request"})}},{key:"process",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return Object(A.__awaiter)(this,void 0,void 0,b.a.mark((function n(){var r,i,a,o,s,c,u,l,f,p,d,h;return b.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(void 0!==e.handled){n.next=2;break}return n.abrupt("return");case 2:for(r=U(e.handled-this.lastAck,B),i=0;i<r&&this.unacked.length>0;i++)a=this.unacked.shift(),o=g()(a,2),s=o[0],c=o[1],this.emit("acked",{kind:s,stanza:c});if(this.lastAck=e.handled,t&&(u=this.unacked,this.unacked=[],u.length)){this.emit("begin-resend"),l=F(u);try{for(l.s();!(f=l.n()).done;)p=g()(f.value,2),d=p[0],h=p[1],this.emit("resend",{kind:d,stanza:h})}catch(e){l.e(e)}finally{l.f()}this.emit("end-resend")}return n.next=8,this._cache();case 8:case"end":return n.stop()}}),n,this)})))}},{key:"track",value:function(e,t){return Object(A.__awaiter)(this,void 0,void 0,b.a.mark((function n(){return b.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if("sm"!==e||"enable"!==t.type&&"resume"!==t.type){n.next=6;break}return this.handled=0,this.outboundStarted=!0,n.next=5,this._cache();case 5:return n.abrupt("return",!1);case 6:if(this.outboundStarted){n.next=8;break}return n.abrupt("return",!1);case 8:if("message"===e||"presence"===e||"iq"===e){n.next=10;break}return n.abrupt("return",!1);case 10:return this.unacked.push([e,t]),n.next=13,this._cache();case 13:return n.abrupt("return",!0);case 14:case"end":return n.stop()}}),n,this)})))}},{key:"handle",value:function(){return Object(A.__awaiter)(this,void 0,void 0,b.a.mark((function e(){return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.inboundStarted){e.next=4;break}return this.handled=U(this.handled+1,B),e.next=4,this._cache();case 4:case"end":return e.stop()}}),e,this)})))}},{key:"hibernate",value:function(){return Object(A.__awaiter)(this,void 0,void 0,b.a.mark((function e(){var t,n,r,i,a;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.resumable){e.next=2;break}return e.abrupt("return",this.shutdown());case 2:t=F(this.unacked);try{for(t.s();!(n=t.n()).done;)r=g()(n.value,2),i=r[0],a=r[1],this.emit("hibernated",{kind:i,stanza:a})}catch(e){t.e(e)}finally{t.f()}case 4:case"end":return e.stop()}}),e,this)})))}},{key:"shutdown",value:function(){return Object(A.__awaiter)(this,void 0,void 0,b.a.mark((function e(){return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.failed({type:"failed"}));case 1:case"end":return e.stop()}}),e,this)})))}},{key:"_cache",value:function(){return Object(A.__awaiter)(this,void 0,void 0,b.a.mark((function e(){return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.cacheHandler({allowResume:this.allowResume,handled:this.handled,id:this.id,jid:this.jid,lastAck:this.lastAck,unacked:this.unacked});case 3:e.next=8;break;case 5:e.prev=5,e.t0=e.catch(0),console.error("Failed to cache stream state",e.t0);case 8:case"end":return e.stop()}}),e,this,[[0,5]])})))}},{key:"_reset",value:function(){this.id="",this.inboundStarted=!1,this.outboundStarted=!1,this.lastAck=0,this.handled=0,this.unacked=[]}},{key:"started",get:function(){return this.outboundStarted&&this.inboundStarted},set:function(e){e||(this.outboundStarted=!1,this.inboundStarted=!1)}},{key:"resumable",get:function(){return this.started&&this.allowResume}}]),n}(N.EventEmitter),J={"A.1":{r:"hk:if|le:lf|nf:nv|qg:qv|rg:rj|rm:rp|rr:rt|rv:s3|vn:vv|17m:17n|17q:17v|18g:19g|1an:1ao|1cb:1cg|1e5:1ef|1fb:1ff|1fl:1gb|1gd:1gq|1gs:1gu|1hr:1hv|1im:1iv|1ne:1nf|1pd:1pf|1qb:1rv|1ti:280|29q:29r|2ae:2af|2al:2an|2bh:2c0|2cd:2ce|2ch:2ci|2dj:2dl|2dq:2dr|2e5:2e6|2e9:2ea|2ee:2em|2eo:2er|2f4:2f5|2fr:2g1|2g3:2g4|2gb:2ge|2gh:2gi|2hq:2hr|2i3:2i6|2i9:2ia|2ie:2io|2iv:2j5|2jl:2k0|2lq:2lr|2me:2mf|2mh:2mv|2n1:2n5|2ng:2o0|2od:2oe|2oh:2oi|2pk:2pl|2pq:2pr|2q4:2q6|2q9:2qa|2qe:2ql|2qo:2qr|2r2:2r5|2rh:2s1|2sb:2sd|2sm:2so|2t0:2t2|2t5:2t7|2tb:2td|2tq:2tt|2u3:2u5|2ue:2um|2uo:2v6|2vj:300|31q:31t|32e:32k|32n:32v|332:335|33g:341|35q:35t|36e:36k|36n:36t|372:375|37g:381|39q:39t|3a4:3a5|3ae:3am|3ao:3av|3b2:3b5|3bg:3c1|3cn:3cp|3du:3dv|3e7:3e9|3eb:3ee|3f0:3fh|3fl:3g0|3hr:3hu|3is:3k0|3k5:3k6|3kb:3kc|3ke:3kj|3l8:3l9|3lu:3lv|3me:3mf|3mq:3mr|3mu:3nv|3rb:3rg|3sc:3sf|3ud:3ue|3ug:3vv|41j:41l|41q:41v|42q:44v|466:46f|47p:47q|47s:47v|4aq:4au|4d3:4d7|4fq:4fv|4ie:4if|4iu:4iv|4ke:4kf|4lm:4ln|4m6:4m7|4om:4on|4qr:4r0|4rt:4sv|4vl:500|5jn:5jv|5kt:5kv|5nh:5nv|5ol:5ov|5pn:5pv|5qk:5qv|5rk:5rv|5ut:5uv|5va:5vv|60q:60v|63o:63v|65a:7fv|7ks:7kv|7nq:7nv|7om:7on|7ou:7ov|7q6:7q7|7qe:7qf|7ru:7rv|7uk:7ul|7vg:7vh|82j:82m|82o:82u|834:839|83i:83j|84f:84v|85i:86f|87b:87v|89r:89s|8ac:8ai|8c4:8cf|8uf:8vv|917:91v|92b:92v|9gk:9gl|9ju:9jv|9ka:9o0|9oa:9ob|9qj:9ql|9qv:9r0|9sl:9sn|9tv:9uf|9vc:9vf|ao0:bjv|bnk:bnv|bum:bvf|bvs:bvv|c4n:c4o|c80:c84|c9d:c9g|cdo:cff|cgt:cgv|ci4:cig|cjs:cju|cmc:cmf|crn:crq|cuu:cuv|jdm:jfv|17t6:17vv|194d:194f|1967:1avv|1lt4:1lvv|1uhe:1uhf|1ujb:1unv|1uo7:1uoi|1uoo:1uos|1uti:1uui|1va0:1vaf|1vcg:1vch|1ve8:1vef|1vft:1vfv|1vgg:1vgv|1vh4:1vhf|1vi7:1vi8|1vjc:1vjf|1vnt:1vnu|1vtv:1vu1|1vu8:1vu9|1vug:1vuh|1vuo:1vup|1vut:1vuv|1vvf:1vvo|2000:20nv|20p4:20pf|20qb:20vv|2116:2117|212e:3jvv|3k7m:3k7v|3k97:3k99|3keu:3kvv|3l50:3l51|3l53:3l54|3l57:3l58|3l8b:3l8c|3la7:3la9|3ll4:3ll7|3lua:3lud|3m00:3vvt|59mn:5tvv|5ugu:5vvt|6000:7vvt|8000:9vvt|a000:bvvt|c000:dvvt|e000:fvvt|g000:hvvt|i000:jvvt|k000:lvvt|m000:nvvt|o000:pvvt|q000:rvvt|s002:s00v|s040:tvvt",s:"9p8|9qc|9qe|9qn|9tg|147|bkq|3l2l|3l4t|3l5d|3l5q|3l5s|3l61|3l64|3l86|3l8l|3l8t|3l9q|3l9v|3la5|3lah|16f|c20|ccf|cnv|cvv|1b0|1c8|1d2|1dq|1h0|1nv|1oe|284|2c4|2d9|2dh|2dt|2eu|2h9|2hh|2hk|2hn|2ht|2it|2k4|2kc|2ke|2ki|2l9|2lh|2lk|2m6|2ma|2o4|2p9|2ph|2qu|2s4|2sh|2sr|2st|2tm|2u9|304|30d|30h|319|31k|325|329|344|34d|34h|359|35k|365|369|36v|384|38d|38h|399|3a9|3c4|3di|3ds|3el|3en|3k3|3k9|3ko|3l0|3l4|3l6|3lc|3lq|3m5|3m7|3q8|3so|3tt|412|418|41b|4g7|4i7|4i9|4in|4ip|4k7|4k9|4lf|4lh|4lv|4m1|4mf|4mn|4nf|4of|4oh|4ov|4q7|h1|5od|5rd|5rh|60f|1upn|1upt|1upv|1uq2|1uq5|1vij|1vj7|1vjl|1vo0|1vv7|20ov|7qo|7qq|7qs|7qu|7tl|7u5|7us|7vl|7vv|sb|sd|s000|t2|97v|uf|9go|9o5"},"B.1":{r:"60b:60d|80b:80d|1vg0:1vgf",s:"5d|606|1vnv|830|qf"},"B.2":{m:"5l:ts|6v:3j;3j|9g:39;o7|a9:ls;3e|bv:3j|fg:3a;oc|q5:tp|rq:10;tp|sg:tp;o8;o1|tg:u5;o8;o1|u2:u3|ug:ti|uh:to|ui:u5|uj:ud|uk:ub|ul:u6|um:u0|vg:tq|vh:u1|vi:u3|vl:tl|1c7:1b5;1c2|7km:38;ph|7kn:3k;o8|7ko:3n;oa|7kp:3p;oa|7kq:31;lu|7kr:7j1|7qg:u5;oj|7qi:u5;oj;o0|7qk:u5;oj;o1|7qm:u5;oj;q2|7s0:7o0;tp|7s1:7o1;tp|7s2:7o2;tp|7s3:7o3;tp|7s4:7o4;tp|7s5:7o5;tp|7s6:7o6;tp|7s7:7o7;tp|7s8:7o0;tp|7s9:7o1;tp|7sa:7o2;tp|7sb:7o3;tp|7sc:7o4;tp|7sd:7o5;tp|7se:7o6;tp|7sf:7o7;tp|7sg:7p0;tp|7sh:7p1;tp|7si:7p2;tp|7sj:7p3;tp|7sk:7p4;tp|7sl:7p5;tp|7sm:7p6;tp|7sn:7p7;tp|7so:7p0;tp|7sp:7p1;tp|7sq:7p2;tp|7sr:7p3;tp|7ss:7p4;tp|7st:7p5;tp|7su:7p6;tp|7sv:7p7;tp|7t0:7r0;tp|7t1:7r1;tp|7t2:7r2;tp|7t3:7r3;tp|7t4:7r4;tp|7t5:7r5;tp|7t6:7r6;tp|7t7:7r7;tp|7t8:7r0;tp|7t9:7r1;tp|7ta:7r2;tp|7tb:7r3;tp|7tc:7r4;tp|7td:7r5;tp|7te:7r6;tp|7tf:7r7;tp|7ti:7rg;tp|7tj:th;tp|7tk:tc;tp|7tm:th;q2|7tn:th;q2;tp|7ts:th;tp|7tu:tp|7u2:7rk;tp|7u3:tn;tp|7u4:te;tp|7u6:tn;q2|7u7:tn;q2;tp|7uc:tn;tp|7ui:tp;o8;o0|7uj:tp;o8;o1|7um:tp;q2|7un:tp;o8;q2|7v2:u5;o8;o0|7v3:u5;o8;o1|7v4:u1;oj|7v6:u5;q2|7v7:u5;o8;q2|7vi:7rs;tp|7vj:u9;tp|7vk:ue;tp|7vm:u9;q2|7vn:u9;q2;tp|7vs:u9;tp|858:3i;3j|882:33|883:5g;33|887:ir|889:5g;36|88b:38|88c:38|88d:38|88g:39|88h:39|88i:3c|88l:3e|88m:3e;3f|88p:3g|88q:3h|88r:3i|88s:3i|88t:3i|890:3j;3d|891:3k;35;3c|892:3k;3d|894:3q|898:3q|89c:32|89d:33|89g:35|89h:36|89j:3d|89u:tj|89v:u0|8a5:34|crh:38;3g;31|crj:31;3l|crl:3f;3m|cs0:3g;31|cs1:3e;31|cs2:ts;31|cs3:3d;31|cs4:3b;31|cs5:3b;32|cs6:3d;32|cs7:37;32|csa:3g;36|csb:3e;36|csc:ts;36|csg:38;3q|csh:3b;38;3q|csi:3d;38;3q|csj:37;38;3q|csk:3k;38;3q|ct9:3g;31|cta:3b;3g;31|ctb:3d;3g;31|ctc:37;3g;31|ctk:3g;3m|ctl:3e;3m|ctm:ts;3m|ctn:3d;3m|cto:3b;3m|ctp:3d;3m|ctq:3g;3n|ctr:3e;3n|cts:ts;3n|ctt:3d;3n|ctu:3b;3n|ctv:3d;3n|cu0:3b;u9|cu1:3d;u9|cu3:32;3h|cu6:33;8gl;3b;37|cu7:33;3f;1e|cu8:34;32|cu9:37;3p|cub:38;3g|cud:3b;3b|cue:3b;3d|cun:3g;38|cup:3g;3g;3d|cuq:3g;3i|cus:3j;3m|cut:3n;32|1uo0:36;36|1uo1:36;39|1uo2:36;3c|1uo3:36;36;39|1uo4:36;36;3c|1uo5:3j;3k|1uo6:3j;3k|1uoj:1bk;1bm|1uok:1bk;1b5|1uol:1bk;1bb|1uom:1bu;1bm|1uon:1bk;1bd|3l00:31|3l01:32|3l02:33|3l03:34|3l04:35|3l05:36|3l06:37|3l07:38|3l08:39|3l09:3a|3l0a:3b|3l0b:3c|3l0c:3d|3l0d:3e|3l0e:3f|3l0f:3g|3l0g:3h|3l0h:3i|3l0i:3j|3l0j:3k|3l0k:3l|3l0l:3m|3l0m:3n|3l0n:3o|3l0o:3p|3l0p:3q|3l1k:31|3l1l:32|3l1m:33|3l1n:34|3l1o:35|3l1p:36|3l1q:37|3l1r:38|3l1s:39|3l1t:3a|3l1u:3b|3l1v:3c|3l20:3d|3l21:3e|3l22:3f|3l23:3g|3l24:3h|3l25:3i|3l26:3j|3l27:3k|3l28:3l|3l29:3m|3l2a:3n|3l2b:3o|3l2c:3p|3l2d:3q|3l38:31|3l39:32|3l3a:33|3l3b:34|3l3c:35|3l3d:36|3l3e:37|3l3f:38|3l3g:39|3l3h:3a|3l3i:3b|3l3j:3c|3l3k:3d|3l3l:3e|3l3m:3f|3l3n:3g|3l3o:3h|3l3p:3i|3l3q:3j|3l3r:3k|3l3s:3l|3l3t:3m|3l3u:3n|3l3v:3o|3l40:3p|3l41:3q|3l4s:31|3l4u:33|3l4v:34|3l52:37|3l55:3a|3l56:3b|3l59:3e|3l5a:3f|3l5b:3g|3l5c:3h|3l5e:3j|3l5f:3k|3l5g:3l|3l5h:3m|3l5i:3n|3l5j:3o|3l5k:3p|3l5l:3q|3l6g:31|3l6h:32|3l6i:33|3l6j:34|3l6k:35|3l6l:36|3l6m:37|3l6n:38|3l6o:39|3l6p:3a|3l6q:3b|3l6r:3c|3l6s:3d|3l6t:3e|3l6u:3f|3l6v:3g|3l70:3h|3l71:3i|3l72:3j|3l73:3k|3l74:3l|3l75:3m|3l76:3n|3l77:3o|3l78:3p|3l79:3q|3l84:31|3l85:32|3l87:34|3l88:35|3l89:36|3l8a:37|3l8d:3a|3l8e:3b|3l8f:3c|3l8g:3d|3l8h:3e|3l8i:3f|3l8j:3g|3l8k:3h|3l8m:3j|3l8n:3k|3l8o:3l|3l8p:3m|3l8q:3n|3l8r:3o|3l8s:3p|3l9o:31|3l9p:32|3l9r:34|3l9s:35|3l9t:36|3l9u:37|3la0:39|3la1:3a|3la2:3b|3la3:3c|3la4:3d|3la6:3f|3laa:3j|3lab:3k|3lac:3l|3lad:3m|3lae:3n|3laf:3o|3lag:3p|3lbc:31|3lbd:32|3lbe:33|3lbf:34|3lbg:35|3lbh:36|3lbi:37|3lbj:38|3lbk:39|3lbl:3a|3lbm:3b|3lbn:3c|3lbo:3d|3lbp:3e|3lbq:3f|3lbr:3g|3lbs:3h|3lbt:3i|3lbu:3j|3lbv:3k|3lc0:3l|3lc1:3m|3lc2:3n|3lc3:3o|3lc4:3p|3lc5:3q|3ld0:31|3ld1:32|3ld2:33|3ld3:34|3ld4:35|3ld5:36|3ld6:37|3ld7:38|3ld8:39|3ld9:3a|3lda:3b|3ldb:3c|3ldc:3d|3ldd:3e|3lde:3f|3ldf:3g|3ldg:3h|3ldh:3i|3ldi:3j|3ldj:3k|3ldk:3l|3ldl:3m|3ldm:3n|3ldn:3o|3ldo:3p|3ldp:3q|3lek:31|3lel:32|3lem:33|3len:34|3leo:35|3lep:36|3leq:37|3ler:38|3les:39|3let:3a|3leu:3b|3lev:3c|3lf0:3d|3lf1:3e|3lf2:3f|3lf3:3g|3lf4:3h|3lf5:3i|3lf6:3j|3lf7:3k|3lf8:3l|3lf9:3m|3lfa:3n|3lfb:3o|3lfc:3p|3lfd:3q|3lg8:31|3lg9:32|3lga:33|3lgb:34|3lgc:35|3lgd:36|3lge:37|3lgf:38|3lgg:39|3lgh:3a|3lgi:3b|3lgj:3c|3lgk:3d|3lgl:3e|3lgm:3f|3lgn:3g|3lgo:3h|3lgp:3i|3lgq:3j|3lgr:3k|3lgs:3l|3lgt:3m|3lgu:3n|3lgv:3o|3lh0:3p|3lh1:3q|3lhs:31|3lht:32|3lhu:33|3lhv:34|3li0:35|3li1:36|3li2:37|3li3:38|3li4:39|3li5:3a|3li6:3b|3li7:3c|3li8:3d|3li9:3e|3lia:3f|3lib:3g|3lic:3h|3lid:3i|3lie:3j|3lif:3k|3lig:3l|3lih:3m|3lii:3n|3lij:3o|3lik:3p|3lil:3q|3ljg:31|3ljh:32|3lji:33|3ljj:34|3ljk:35|3ljl:36|3ljm:37|3ljn:38|3ljo:39|3ljp:3a|3ljq:3b|3ljr:3c|3ljs:3d|3ljt:3e|3lju:3f|3ljv:3g|3lk0:3h|3lk1:3i|3lk2:3j|3lk3:3k|3lk4:3l|3lk5:3m|3lk6:3n|3lk7:3o|3lk8:3p|3lk9:3q|3ll8:th|3ll9:ti|3lla:tj|3llb:tk|3llc:tl|3lld:tm|3lle:tn|3llf:to|3llg:tp|3llh:tq|3lli:tr|3llj:ts|3llk:tt|3lll:tu|3llm:tv|3lln:u0|3llo:u1|3llp:to|3llq:u3|3llr:u4|3lls:u5|3llt:u6|3llu:u7|3llv:u8|3lm0:u9|3lmj:u3|3ln2:th|3ln3:ti|3ln4:tj|3ln5:tk|3ln6:tl|3ln7:tm|3ln8:tn|3ln9:to|3lna:tp|3lnb:tq|3lnc:tr|3lnd:ts|3lne:tt|3lnf:tu|3lng:tv|3lnh:u0|3lni:u1|3lnj:to|3lnk:u3|3lnl:u4|3lnm:u5|3lnn:u6|3lno:u7|3lnp:u8|3lnq:u9|3lod:u3|3los:th|3lot:ti|3lou:tj|3lov:tk|3lp0:tl|3lp1:tm|3lp2:tn|3lp3:to|3lp4:tp|3lp5:tq|3lp6:tr|3lp7:ts|3lp8:tt|3lp9:tu|3lpa:tv|3lpb:u0|3lpc:u1|3lpd:to|3lpe:u3|3lpf:u4|3lpg:u5|3lph:u6|3lpi:u7|3lpj:u8|3lpk:u9|3lq7:u3|3lqm:th|3lqn:ti|3lqo:tj|3lqp:tk|3lqq:tl|3lqr:tm|3lqs:tn|3lqt:to|3lqu:tp|3lqv:tq|3lr0:tr|3lr1:ts|3lr2:tt|3lr3:tu|3lr4:tv|3lr5:u0|3lr6:u1|3lr7:to|3lr8:u3|3lr9:u4|3lra:u5|3lrb:u6|3lrc:u7|3lrd:u8|3lre:u9|3ls1:u3|3lsg:th|3lsh:ti|3lsi:tj|3lsj:tk|3lsk:tl|3lsl:tm|3lsm:tn|3lsn:to|3lso:tp|3lsp:tq|3lsq:tr|3lsr:ts|3lss:tt|3lst:tu|3lsu:tv|3lsv:u0|3lt0:u1|3lt1:to|3lt2:u3|3lt3:u4|3lt4:u5|3lt5:u6|3lt6:u7|3lt7:u8|3lt8:u9|3ltr:u3",r:"23:2c|2i:2k|2m:2q|60:6m|6o:6u|bo:bp|c1:c2|c6:c7|c9:cb|ce:ch|cj:ck|cm:co|cs:ct|cv:d0|d6:d7|de:df|dh:dj|dn:do|e4:e5|e7:e8|ea:eb|fh:fi|fm:fo|s8:sa|se:sf|sh:t1|t3:tb|100:11f|19h:1am|7o8:7of|7oo:7ot|7p8:7pf|7po:7pv|7q8:7qd|7r8:7rf|7to:7tr|7u8:7ub|7uo:7ur|7v8:7vc|7vo:7vr|89a:89b|8b0:8bf|95m:96f|1vp1:1vpq|2100:2115",s:"v8|va|vc|ve|vk|130|132|134|136|138|13a|13c|13e|13g|13i|13k|13m|13o|13q|13s|13u|140|14a|14c|14e|14g|14i|14k|14m|14o|14q|14s|14u|150|152|154|156|158|15a|15c|15e|15g|15i|15k|15m|15o|15q|15s|15u|161|163|165|167|169|16b|16d|16g|16i|16k|16m|16o|16q|16s|16u|170|172|174|176|178|17a|17c|17e|17g|17i|17k|17o|180|182|184|186|188|18a|18c|18e|80|82|84|86|88|8a|8c|8e|8g|8i|8k|8m|8o|8q|8s|8u|90|92|94|96|98|9a|9c|9e|9i|9k|9m|9p|9r|9t|9v|a1|a3|a5|a7|aa|ac|ae|ag|ai|ak|am|ao|aq|as|au|b0|b2|b4|b6|b8|ba|bc|be|bg|bi|bk|bm|br|bt|c4|d2|d4|d9|dc|dl|ds|ed|ef|eh|ej|el|en|ep|er|eu|f0|f2|f4|f6|f8|fa|fc|fe|fk|fq|fs|fu|g0|g2|g4|g6|g8|ga|gc|ge|gg|gi|gk|gm|go|gq|gs|gu|h0|h2|h4|h6|h8|ha|hc|he|hg|hi|21|22|7g0|7g2|7g4|7g6|7g8|7ga|7gc|7ge|7gg|7gi|2d|7gk|7gm|7go|7gq|7gs|7gu|7h0|7h2|7h4|7h6|7h8|7ha|7hc|7he|7hg|7hi|7hk|7hm|7ho|7hq|7hs|7hu|7i0|7i2|7i4|7i6|7i8|7ia|7ic|7ie|7ig|7ii|7ik|7im|7io|7iq|7is|7iu|7j0|7j2|7j4|7j6|7j8|7ja|7jc|7je|7jg|7ji|7jk|7jm|2e|7jo|7jq|7js|7ju|7k0|7k2|7k4|7k6|7k8|7ka|7kc|7ke|7kg|7ki|7kk|7l0|7l2|7l4|7l6|7l8|7la|7lc|7le|7lg|7li|7lk|7lm|7lo|7lq|7ls|7lu|7m0|7m2|7m4|7m6|7m8|7ma|7mc|7me|7mg|7mi|7mk|7mm|7mo|7mq|2f|7ms|7mu|7n0|7n2|7n4|7n6|7n8|7na|7nc|7ne|7ng|7ni|7nk|7nm|7no|2g|7qp|7qr|7qt|7qv|2h|896|2l|s6|sc|uo|uq|us|uu|v0|v2|v4|v6"},"B.3":{m:"5l:ts|6v:3j;3j|9g:39;o7|a9:ls;3e|bv:3j|fg:3a;oc|q5:tp|sg:tp;o8;o1|tg:u5;o8;o1|u2:u3|ug:ti|uh:to|ul:u6|um:u0|vg:tq|vh:u1|vi:u3|vl:tl|1c7:1b5;1c2|7km:38;ph|7kn:3k;o8|7ko:3n;oa|7kp:3p;oa|7kq:31;lu|7kr:7j1|7qg:u5;oj|7qi:u5;oj;o0|7qk:u5;oj;o1|7qm:u5;oj;q2|7s0:7o0;tp|7s1:7o1;tp|7s2:7o2;tp|7s3:7o3;tp|7s4:7o4;tp|7s5:7o5;tp|7s6:7o6;tp|7s7:7o7;tp|7s8:7o0;tp|7s9:7o1;tp|7sa:7o2;tp|7sb:7o3;tp|7sc:7o4;tp|7sd:7o5;tp|7se:7o6;tp|7sf:7o7;tp|7sg:7p0;tp|7sh:7p1;tp|7si:7p2;tp|7sj:7p3;tp|7sk:7p4;tp|7sl:7p5;tp|7sm:7p6;tp|7sn:7p7;tp|7so:7p0;tp|7sp:7p1;tp|7sq:7p2;tp|7sr:7p3;tp|7ss:7p4;tp|7st:7p5;tp|7su:7p6;tp|7sv:7p7;tp|7t0:7r0;tp|7t1:7r1;tp|7t2:7r2;tp|7t3:7r3;tp|7t4:7r4;tp|7t5:7r5;tp|7t6:7r6;tp|7t7:7r7;tp|7t8:7r0;tp|7t9:7r1;tp|7ta:7r2;tp|7tb:7r3;tp|7tc:7r4;tp|7td:7r5;tp|7te:7r6;tp|7tf:7r7;tp|7ti:7rg;tp|7tj:th;tp|7tk:tc;tp|7tm:th;q2|7tn:th;q2;tp|7ts:th;tp|7tu:tp|7u2:7rk;tp|7u3:tn;tp|7u4:te;tp|7u6:tn;q2|7u7:tn;q2;tp|7uc:tn;tp|7ui:tp;o8;o0|7uj:tp;o8;o1|7um:tp;q2|7un:tp;o8;q2|7v2:u5;o8;o0|7v3:u5;o8;o1|7v4:u1;oj|7v6:u5;q2|7v7:u5;o8;q2|7vi:7rs;tp|7vj:u9;tp|7vk:ue;tp|7vm:u9;q2|7vn:u9;q2;tp|7vs:u9;tp|1uo0:36;36|1uo1:36;39|1uo2:36;3c|1uo3:36;36;39|1uo4:36;36;3c|1uo5:3j;3k|1uo6:3j;3k|1uoj:1bk;1bm|1uok:1bk;1b5|1uol:1bk;1bb|1uom:1bu;1bm|1uon:1bk;1bd",r:"23:2c|2i:2k|2m:2q|60:6m|6o:6u|bo:bp|c1:c2|c6:c7|c9:cb|ce:ch|cj:ck|cm:co|cs:ct|cv:d0|d6:d7|de:df|dh:dj|dn:do|e4:e5|e7:e8|ea:eb|fh:fi|fm:fo|s8:sa|se:sf|sh:t1|t3:tb|100:11f|19h:1am|7o8:7of|7oo:7ot|7p8:7pf|7po:7pv|7q8:7qd|7r8:7rf|7to:7tr|7u8:7ub|7uo:7ur|7v8:7vc|7vo:7vr|89a:89b|8b0:8bf|95m:96f|1vp1:1vpq|2100:2115",s:"v8|va|vc|ve|vk|130|132|134|136|138|13a|13c|13e|13g|13i|13k|13m|13o|13q|13s|13u|140|14a|14c|14e|14g|14i|14k|14m|14o|14q|14s|14u|150|152|154|156|158|15a|15c|15e|15g|15i|15k|15m|15o|15q|15s|15u|161|163|165|167|169|16b|16d|16g|16i|16k|16m|16o|16q|16s|16u|170|172|174|176|178|17a|17c|17e|17g|17i|17k|17o|180|182|184|186|188|18a|18c|18e|80|82|84|86|88|8a|8c|8e|8g|8i|8k|8m|8o|8q|8s|8u|90|92|94|96|98|9a|9c|9e|9i|9k|9m|9p|9r|9t|9v|a1|a3|a5|a7|aa|ac|ae|ag|ai|ak|am|ao|aq|as|au|b0|b2|b4|b6|b8|ba|bc|be|bg|bi|bk|bm|br|bt|c4|d2|d4|d9|dc|dl|ds|ed|ef|eh|ej|el|en|ep|er|eu|f0|f2|f4|f6|f8|fa|fc|fe|fk|fq|fs|fu|g0|g2|g4|g6|g8|ga|gc|ge|gg|gi|gk|gm|go|gq|gs|gu|h0|h2|h4|h6|h8|ha|hc|he|hg|hi|21|22|7g0|7g2|7g4|7g6|7g8|7ga|7gc|7ge|7gg|7gi|2d|7gk|7gm|7go|7gq|7gs|7gu|7h0|7h2|7h4|7h6|7h8|7ha|7hc|7he|7hg|7hi|7hk|7hm|7ho|7hq|7hs|7hu|7i0|7i2|7i4|7i6|7i8|7ia|7ic|7ie|7ig|7ii|7ik|7im|7io|7iq|7is|7iu|7j0|7j2|7j4|7j6|7j8|7ja|7jc|7je|7jg|7ji|7jk|7jm|2e|7jo|7jq|7js|7ju|7k0|7k2|7k4|7k6|7k8|7ka|7kc|7ke|7kg|7ki|7kk|7l0|7l2|7l4|7l6|7l8|7la|7lc|7le|7lg|7li|7lk|7lm|7lo|7lq|7ls|7lu|7m0|7m2|7m4|7m6|7m8|7ma|7mc|7me|7mg|7mi|7mk|7mm|7mo|7mq|2f|7ms|7mu|7n0|7n2|7n4|7n6|7n8|7na|7nc|7ne|7ng|7ni|7nk|7nm|7no|2g|7qp|7qr|7qt|7qv|2h|896|2l|s6|sc|uo|uq|us|uu|v0|v2|v4|v6"},"C.1.1":{s:"10"},"C.1.2":{r:"800:80b",s:"c00|50|5k0|81f|82v"},"C.2.1":{r:"0:v",s:"3v"},"C.2.2":{r:"40:4v|80c:80d|818:819|830:833|83a:83f|1vvp:1vvs|3kbj:3kbq",s:"1mt|1of|60e|1vnv"},"C.3":{r:"1o00:1u7v|u000:vvvt|10000:11vvt"},"C.4":{r:"1veg:1vff|1vvu:1vvv|3vvu:3vvv|5vvu:5vvv|7vvu:7vvv|9vvu:9vvv|bvvu:bvvv|dvvu:dvvv|fvvu:fvvv|hvvu:hvvv|jvvu:jvvv|lvvu:lvvv|nvvu:nvvv|pvvu:pvvv|rvvu:rvvv|tvvu:tvvv|vvvu:vvvv|11vvu:11vvv"},"C.5":{r:"1m00:1nvv"},"C.6":{r:"1vvp:1vvt"},"C.7":{r:"bvg:bvr"},"C.8":{r:"q0:q1|80e:80f|81a:81e|83a:83f"},"C.9":{r:"s010:s03v",s:"s001"},"D.1":{r:"1eg:1fa|1fg:1fk|1h1:1hq|1i0:1ia|1jd:1jf|1jh:1ml|1n5:1n6|1nq:1nu|1o0:1od|1oi:1pc|1s0:1t5|1uov:1up8|1upa:1upm|1upo:1ups|1uq0:1uq1|1uq3:1uq4|1uq6:1uth|1uuj:1v9t|1vag:1vcf|1vci:1ve7|1vfg:1vfs|1vjg:1vjk|1vjm:1vns",s:"1du|1e0|1e3|1gr|1gv|1mt|1og|1th|1uot|1upu|80f"},"D.2":{r:"21:2q|31:3q|60:6m|6o:7m|7o:h0|h2:hj|ig:ld|lg:lo|lr:m1|mg:mh|n0:n4|s8:sa|se:t1|t3:ue|ug:vl|100:142|14a:16e|16g:17l|17o:17p|180:18f|19h:1am|1ap:1av|1b1:1c7|285:29p|29t:2a0|2a9:2ac|2ao:2b1|2b4:2bg|2c2:2c3|2c5:2cc|2cf:2cg|2cj:2d8|2da:2dg|2dm:2dp|2du:2e0|2e7:2e8|2eb:2ec|2es:2et|2ev:2f1|2f6:2fh|2fk:2fq|2g5:2ga|2gf:2gg|2gj:2h8|2ha:2hg|2hi:2hj|2hl:2hm|2ho:2hp|2hu:2i0|2ip:2is|2j6:2jf|2ji:2jk|2k5:2kb|2kf:2kh|2kj:2l8|2la:2lg|2li:2lj|2ll:2lp|2lt:2m0|2mb:2mc|2n6:2nf|2o2:2o3|2o5:2oc|2of:2og|2oj:2p8|2pa:2pg|2pi:2pj|2pm:2pp|2pt:2pu|2q7:2q8|2qb:2qc|2qs:2qt|2qv:2r1|2r6:2rg|2s5:2sa|2se:2sg|2si:2sl|2sp:2sq|2su:2sv|2t3:2t4|2t8:2ta|2te:2tl|2tn:2tp|2tu:2tv|2u1:2u2|2u6:2u8|2ua:2uc|2v7:2vi|301:303|305:30c|30e:30g|30i:318|31a:31j|31l:31p|321:324|330:331|336:33f|342:343|345:34c|34e:34g|34i:358|35a:35j|35l:35p|360:364|367:368|36a:36b|36l:36m|370:371|376:37f|382:383|385:38c|38e:38g|38i:398|39a:39p|39u:3a0|3a6:3a8|3aa:3ac|3b0:3b1|3b6:3bf|3c2:3c3|3c5:3cm|3cq:3dh|3dj:3dr|3e0:3e6|3ef:3eh|3eo:3ev|3fi:3fk|3g1:3hg|3hi:3hj|3i0:3i6|3if:3ir|3k1:3k2|3k7:3k8|3kk:3kn|3kp:3kv|3l1:3l3|3la:3lb|3ld:3lg|3li:3lj|3m0:3m4|3mg:3mp|3ms:3mt|3o0:3on|3oq:3pk|3pu:3q7|3q9:3ra|3s8:3sb|3tu:3u5|3u7:3uc|400:411|413:417|419:41a|420:42n|450:465|46g:47o|480:4ap|4av:4d2|4d8:4fp|4g0:4g6|4g8:4i6|4ia:4id|4ig:4im|4iq:4it|4j0:4k6|4ka:4kd|4kg:4le|4li:4ll|4lo:4lu|4m2:4m5|4m8:4me|4mg:4mm|4mo:4ne|4ng:4oe|4oi:4ol|4oo:4ou|4p0:4q6|4q8:4qq|4r1:4rs|4t0:4vk|501:5jm|5k1:5kq|5l0:5ng|5o0:5oc|5oe:5oh|5p0:5ph|5pl:5pm|5q0:5qh|5r0:5rc|5re:5rg|5s0:5tm|5tu:5u5|5u7:5u8|5uk:5uq|5v0:5v9|60g:60p|610:63n|640:658|7g0:7kr|7l0:7np|7o0:7ol|7oo:7ot|7p0:7q5|7q8:7qd|7qg:7qn|7qv:7rt|7s0:7tk|7tm:7ts|7u2:7u4|7u6:7uc|7ug:7uj|7um:7ur|7v0:7vc|7vi:7vk|7vm:7vs|88a:88j|88p:88t|89a:89d|89f:89h|89j:89p|89t:89v|8a5:8a9|8b0:8c3|8pm:8rq|94s:979|c05:c07|c11:c19|c1h:c1l|c1o:c1s|c21:c4m|c4t:c4v|c51:c7q|c7s:c7v|c85:c9c|c9h:cce|ccg:cdn|cfg:cgs|ch0:ci3|cj0:cjr|cjv:clg|cm0:cmb|cmg:cnu|co0:crm|crr:cut|cv0:cvu|d00:jdl|jg0:17t5|1800:194c|1b00:1lt3|1m00:1uhd|1uhg:1uja|1uo0:1uo6|1uoj:1uon|1vp1:1vpq|1vq1:1vqq|1vr6:1vtu|1vu2:1vu7|1vua:1vuf|1vui:1vun|1vuq:1vus|20o0:20ou|20p0:20p3|20pg:20qa|2100:2115|2118:212d|3k00:3k7l|3k80:3k96|3k9a:3kb6|3kba:3kbi|3kc3:3kc4|3kcc:3kd9|3kde:3ket|3l00:3l2k|3l2m:3l4s|3l4u:3l4v|3l55:3l56|3l59:3l5c|3l5e:3l5p|3l5t:3l60|3l62:3l63|3l65:3l85|3l87:3l8a|3l8d:3l8k|3l8m:3l8s|3l8u:3l9p|3l9r:3l9u|3la0:3la4|3laa:3lag|3lai:3ll3|3ll8:3lu9|4000:59mm|5u00:5ugt|u000:vvvt|10000:11vvt",s:"3l52|3l5r|3la6|1c9|5a|5l|5q|283|2ag|2di|2en|2iu|2k3|2kd|2m9|2mg|2n0|2q0|2qn|2s3|2ss|2un|35u|36u|3an|3dt|3k4|3ka|3kd|3l5|3l7|3lt|3m6|3pm|3po|3rv|3s5|3uf|41c|41h|41o|47r|4i8|4io|4k8|4lg|4m0|4og|5us|ne|7qp|7qr|7qt|7tu|80e|83h|83v|882|887|88l|894|896|898|rq|s6|sc|8sl"}},G=function(){function e(t,n){w()(this,e),this.singles=new Set,this.ranges=[],this.mappings=new Map;var r=J[t];this.name=t,r?(r.s&&(this.singles=new Set(r.s.split("|").map((function(e){return parseInt(e,32)})))),r.r&&(this.ranges=r.r.split("|").map((function(e){var t=e.split(":"),n=g()(t,2),r=n[0],i=n[1];return[parseInt(r,32),parseInt(i,32)]}))),r.m&&(this.mappings=new Map(r.m.split("|").map((function(e){var t=e.split(":"),n=g()(t,2),r=n[0],i=n[1].split(";").map((function(e){return parseInt(e,32)}));return[parseInt(r,32),i]}))))):n&&(this.singles=new Set(n))}return x()(e,[{key:"contains",value:function(e){if(this.singles.has(e))return!0;for(var t=0,n=this.ranges.length-1;t<=n;){var r=Math.floor((t+n)/2),i=this.ranges[r];if(e<i[0])n=r-1;else{if(!(e>i[1]))return!0;t=r+1}}return!1}},{key:"hasMapping",value:function(e){return this.mappings.has(e)||this.contains(e)}},{key:"map",value:function(e){return this.contains(e)&&!this.mappings.has(e)?String.fromCodePoint(e).toLowerCase().codePointAt(0):this.mappings.get(e)||null}}]),e}(),V=new G("A.1"),H=new G("B.1"),W=new G("B.2");new G("B.3");var Q=new G("C.1.1"),K=new G("C.1.2"),Y=new G("C.2.1"),X=new G("C.2.2"),$=new G("C.3"),Z=new G("C.4"),ee=new G("C.5"),te=new G("C.6"),ne=new G("C.7"),re=new G("C.8"),ie=new G("C.9"),ae=new G("D.1"),oe=new G("D.2");function se(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=P.a.ucs2.decode(r),a=[],o=F(i);try{for(o.s();!(n=o.n()).done;){var s=n.value;if(!t&&e.unassigned.contains(s))throw new Error("Unassigned code point: x"+s.toString(16));var c,u=!1,l=F(e.mappings);try{for(l.s();!(c=l.n()).done;){var f=c.value;if(f.hasMapping(s)){u=!0;var p=f.map(s);p&&(Array.isArray(p)?a=a.concat(p):a.push(p))}}}catch(e){l.e(e)}finally{l.f()}u||a.push(s)}}catch(e){o.e(e)}finally{o.f()}var d=a;if(e.normalize){var h=P.a.ucs2.encode(a),v=h.normalize("NFKC");d=P.a.ucs2.decode(v)}var m,g=!1,y=!1,b=F(d);try{for(b.s();!(m=b.n()).done;){var _,w=m.value,S=F(e.prohibited);try{for(S.s();!(_=S.n()).done;){var x=_.value;if(x.contains(w))throw new Error("Prohibited code point: x"+w.toString(16))}}catch(e){S.e(e)}finally{S.f()}if(!t&&e.unassigned.contains(w))throw new Error("Prohibited code point: x"+w.toString(16));e.bidirectional&&(g=g||ae.contains(w),y=y||oe.contains(w))}}catch(e){b.e(e)}finally{b.f()}if(e.bidirectional){if(g&&y)throw new Error("String contained both LCat and RandALCat code points");if(g&&(!ae.contains(d[0])||!ae.contains(d[d.length-1])))throw new Error("String containing RandALCat code points must start and end with RandALCat code points")}return P.a.ucs2.encode(d)}H.map=function(){return null},Q.contains=function(e){return 32===e},K.map=function(e){return K.contains(e)?32:null};var ce={bidirectional:!0,mappings:[H,W],normalize:!0,prohibited:[K,X,$,Z,ee,te,ne,re,ie],unassigned:V};var ue=new G("NodePrepProhibited",[34,38,39,47,58,60,62,64]),le={bidirectional:!0,mappings:[H,W],normalize:!0,prohibited:[Q,K,Y,X,$,Z,ee,te,ne,re,ie,ue],unassigned:V};var fe={bidirectional:!0,mappings:[H],normalize:!0,prohibited:[K,Y,X,$,Z,ee,te,ne,re,ie],unassigned:V};var pe={bidirectional:!0,mappings:[K,H],normalize:!0,prohibited:[K,Y,X,$,Z,ee,te,ne,re,ie],unassigned:V};function de(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return se(pe,t,e)}function he(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.replace(/^\s+|\s+$/g,"").replace(/\\5c/g,"\\5c5c").replace(/\\20/g,"\\5c20").replace(/\\22/g,"\\5c22").replace(/\\26/g,"\\5c26").replace(/\\27/g,"\\5c27").replace(/\\2f/g,"\\5c2f").replace(/\\3a/g,"\\5c3a").replace(/\\3c/g,"\\5c3c").replace(/\\3e/g,"\\5c3e").replace(/\\40/g,"\\5c40").replace(/ /g,"\\20").replace(/"/g,"\\22").replace(/&/g,"\\26").replace(/'/g,"\\27").replace(/\//g,"\\2f").replace(/:/g,"\\3a").replace(/</g,"\\3c").replace(/>/g,"\\3e").replace(/@/g,"\\40")}function ve(e){return e.replace(/\\20/g," ").replace(/\\22/g,'"').replace(/\\26/g,"&").replace(/\\27/g,"'").replace(/\\2f/g,"/").replace(/\\3a/g,":").replace(/\\3c/g,"<").replace(/\\3e/g,">").replace(/\\40/g,"@").replace(/\\5c/g,"\\")}function me(e){var t=e.local||"",n=e.domain,r=e.resource||"";return t&&(t=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return se(le,t,e)}(t)),r&&(r=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return se(fe,t,e)}(r)),"."===n[n.length-1]&&(n=n.slice(0,n.length-1)),{domain:n=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return se(ce,t,e)}(n.split(".").map(P.a.toUnicode).join(".")),local:t,resource:r}}function ge(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.local;t.escaped||(n=he(e.local));var r=t.prepared?e:me({local:n,domain:e.domain,resource:e.resource}),i=n?"".concat(n,"@").concat(r.domain):r.domain;return r.resource?"".concat(i,"/").concat(r.resource):i}function ye(e,t){return t?"".concat(Te(e),"/").concat(t):Te(e)}function be(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t="",n="",r=e.indexOf("/");r>0&&(n=e.slice(r+1),e=e.slice(0,r));var i=e.indexOf("@");i>0&&(t=e.slice(0,i),e=e.slice(i+1));var a=me({domain:e,local:t,resource:n});return{bare:ge({local:a.local,domain:a.domain},{escaped:!0,prepared:!0}),domain:a.domain,full:ge(a,{escaped:!0,prepared:!0}),local:ve(a.local),resource:a.resource}}function _e(e,t){var n=new Set;if(n.add(void 0),n.add(""),e){var r=be(e);n.add(r.full),n.add(r.bare),n.add(r.domain)}if(t){var i=be(t);n.add(i.domain),n.add(i.bare),n.add(i.full)}return n}function we(e,t){if(!e||!t)return!1;var n=be(e),r=be(t);return n.local===r.local&&n.domain===r.domain}function Se(e){return!!be(e).resource}function xe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return be(e).domain}function ke(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return be(e).resource}function Te(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return be(e).bare}var je,Ee=Object.freeze({__proto__:null,escapeLocal:he,unescapeLocal:ve,prepare:me,create:ge,createFull:ye,parse:be,allowedResponders:_e,equal:function(e,t){if(!e||!t)return!1;var n=be(e),r=be(t);return n.local===r.local&&n.domain===r.domain&&n.resource===r.resource},equalBare:we,isFull:Se,isBare:function(e){return!Se(e)},getLocal:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return be(e).local},getDomain:xe,getResource:ke,toBare:Te,parseURI:function(e){var t=new URL(e);if("xmpp:"!==t.protocol)throw new Error("Invalid XMPP URI, wrong protocol: "+t.protocol);var n,r=t.hostname?t.username?ge({domain:decodeURIComponent(t.hostname),local:decodeURIComponent(t.username)},{escaped:!0}):decodeURIComponent(t.hostname):void 0,i=be(decodeURIComponent(r?t.pathname.substr(1):t.pathname)).full,a=t.search&&t.search.indexOf(";")>=1,o=a?t.search.substr(t.search.indexOf(";")+1):"",s=t.search?decodeURIComponent(t.search.substr(1,a?t.search.indexOf(";")-1:void 0)):void 0,c={},u=F(o.split(";"));try{for(u.s();!(n=u.n()).done;){var l=n.value.split("=").map(decodeURIComponent),f=g()(l,2),p=f[0],d=f[1];if(c[p]){var h=c[p];Array.isArray(h)?h.push(d):c[p]=[h,d]}else c[p]=d}}catch(e){u.e(e)}finally{u.f()}return{action:s,identity:r,jid:i,parameters:c}},toURI:function(e){var t=["xmpp:"],n=function(e,n){var r=be(e);r.local&&(t.push(encodeURIComponent(he(r.local))),t.push("@")),t.push(encodeURIComponent(r.domain)),n&&r.resource&&(t.push("/"),t.push(encodeURIComponent(r.resource)))};e.identity&&(t.push("//"),n(e.identity,!1),e.jid&&t.push("/")),e.jid&&n(e.jid,!0),e.action&&(t.push("?"),t.push(encodeURIComponent(e.action)));for(var r=0,i=Object.entries(e.parameters||{});r<i.length;r++){var a,o=g()(i[r],2),s=o[0],c=o[1],u=F(Array.isArray(c)?c:[c]);try{for(u.s();!(a=u.n()).done;){var l=a.value;t.push(";"),t.push(encodeURIComponent(s)),void 0!==l&&(t.push("="),t.push(encodeURIComponent(l)))}}catch(e){u.e(e)}finally{u.f()}}return t.join("")}});!function(e){e.NotWellFormed="not-well-formed",e.RestrictedXML="restricted-xml",e.AlreadyClosed="already-closed",e.UnknownRoot="unknown-stream-root"}(je||(je={}));var Ie=function(e){T()(n,e);var t=D(n);function n(e){var r;return w()(this,n),(r=t.call(this,e.text)).isJXTError=!0,r.condition=e.condition,r.text=e.text,r}return x()(n,null,[{key:"notWellFormed",value:function(e){return new n({condition:je.NotWellFormed,text:e})}},{key:"restrictedXML",value:function(e){return new n({condition:je.RestrictedXML,text:e})}},{key:"alreadyClosed",value:function(e){return new n({condition:je.AlreadyClosed,text:e})}},{key:"unknownRoot",value:function(e){return new n({condition:je.UnknownRoot,text:e})}}]),n}(v()(Error)),Oe={'"':"&quot;","&":"&amp;","'":"&apos;","<":"&lt;",">":"&gt;"},Ae={"&amp;":"&","&apos;":"'","&gt;":">","&lt;":"<","&quot;":'"'},Re=/&([a-zA-Z0-9]+|#[0-9]+|#x[0-9a-fA-F]+);/g,Ne=/&|<|>|"|'/g,Ce=/&|<|>/g;function Pe(e){return Oe[e]}function Le(e){return e.replace(Ne,Pe)}function qe(e){return e.replace(Re,(function(e){return function(e){if(Ae[e])return Ae[e];var t=e.startsWith("&#x"),n=parseInt(e.substring(t?3:2,e.length-1),t?16:10);if(9===n||10===n||13===n||32<=n&&n<=55295||57344<=n&&n<=65533||65536<=n&&n<=1114111)return String.fromCodePoint(n);throw Ie.restrictedXML("Prohibited entity: "+e)}(e)}))}function Fe(e){return e.replace(Ce,Pe)}function Me(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=new Set(e.map((function(e){return e.toLowerCase()}))),a=F(n.map((function(e){return e.toLowerCase()})));try{for(a.s();!(t=a.n()).done;){var o=t.value;if("*"!==o)for(;o.length>0;){if(i.has(o))return o;(o=o.substring(0,o.lastIndexOf("-")).toLowerCase()).lastIndexOf("-")===o.length-2&&(o=o.substring(0,o.lastIndexOf("-")))}}}catch(e){a.e(e)}finally{a.f()}return r}var De=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];w()(this,e),this.name=t,this.attributes=n,this.children=[],this.optionalNamespaces={};var i,a=F(r);try{for(a.s();!(i=a.n()).done;){var o=i.value;if("string"!=typeof o){var s=new e(o.name,o.attributes,o.children);s.parent=this,this.children.push(s)}else this.children.push(o)}}catch(e){a.e(e)}finally{a.f()}}return x()(e,[{key:"getName",value:function(){return this.name.indexOf(":")>=0?this.name.substr(this.name.indexOf(":")+1):this.name}},{key:"getNamespace",value:function(){if(this.name.indexOf(":")>=0){var e=this.name.substr(0,this.name.indexOf(":"));return this.findNamespaceForPrefix(e)}return this.findNamespaceForPrefix()}},{key:"getNamespaceContext",value:function(){var e={};this.parent&&(e=this.parent.getNamespaceContext());for(var t=0,n=Object.entries(this.attributes);t<n.length;t++){var r=g()(n[t],2),i=r[0],a=r[1];if(i.startsWith("xmlns:")){var o=i.substr(6);e[a]=o}}return e}},{key:"getDefaultNamespace",value:function(){return this.attributes.xmlns?this.attributes.xmlns:this.parent?this.parent.getDefaultNamespace():""}},{key:"getNamespaceRoot",value:function(e){if(this.parent){var t=this.parent.getNamespaceRoot(e);if(t)return t}for(var n=0,r=Object.entries(this.attributes);n<r.length;n++){var i=g()(r[n],2),a=i[0],o=i[1];if(a.startsWith("xmlns:")&&o===e)return this}if(this.optionalNamespaces[e])return this}},{key:"getAttribute",value:function(e,t){if(!t)return this.attributes[e];var n=this.getNamespaceContext();return n[t]?this.attributes[[n[t],e].join(":")]:void 0}},{key:"getChild",value:function(e,t){return this.getChildren(e,t)[0]}},{key:"getChildren",value:function(e,t){var n,r=[],i=F(this.children);try{for(i.s();!(n=i.n()).done;){var a=n.value;"string"==typeof a||a.getName()!==e||t&&a.getNamespace()!==t||r.push(a)}}catch(e){i.e(e)}finally{i.f()}return r}},{key:"getText",value:function(){var e,t="",n=F(this.children);try{for(n.s();!(e=n.n()).done;){var r=e.value;"string"==typeof r&&(t+=r)}}catch(e){n.e(e)}finally{n.f()}return t}},{key:"appendChild",value:function(e){return this.children.push(e),"string"!=typeof e&&(e.parent=this),e}},{key:"setAttribute",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.attributes[e]=t||void 0,""===t&&n&&(this.attributes[e]=t)}},{key:"addOptionalNamespace",value:function(e,t){this.optionalNamespaces[t]=e}},{key:"useNamespace",value:function(e,t){return this.optionalNamespaces[t]&&(e=this.optionalNamespaces[t]),this.setAttribute("xmlns:".concat(e),t),e}},{key:"toJSON",value:function(){for(var e=this.children.map((function(e){return"string"==typeof e?e:e?e.toJSON():void 0})).filter((function(e){return!!e})),t={},n=0,r=Object.entries(this.attributes);n<r.length;n++){var i=g()(r[n],2),a=i[0],o=i[1];null!=o&&(t[a]=o)}return{attributes:t,children:e,name:this.name}}},{key:"toString",value:function(){var e=this.openTag(!0);if(this.children.length){var t,n=F(this.children);try{for(n.s();!(t=n.n()).done;){var r=t.value;"string"==typeof r?e+=Fe(r):r&&(e+=r.toString())}}catch(e){n.e(e)}finally{n.f()}e+=this.closeTag()}return e}},{key:"openTag",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t="";t+="<".concat(this.name);for(var n=0,r=Object.entries(this.attributes);n<r.length;n++){var i=g()(r[n],2),a=i[0],o=i[1];void 0!==o&&(t+=" ".concat(a,'="').concat(Le(o.toString()),'"'))}return e&&0===this.children.length?t+="/>":t+=">",t}},{key:"closeTag",value:function(){return"</".concat(this.name,">")}},{key:"findNamespaceForPrefix",value:function(e){if(e){var t="xmlns:"+e;if(this.attributes[t])return this.attributes[t];if(this.parent)return this.parent.findNamespaceForPrefix(e)}else{if(this.attributes.xmlns)return this.attributes.xmlns;if(this.parent)return this.parent.findNamespaceForPrefix()}return""}}]),e}(),Be=new Set(["a","blockquote","br","cite","em","img","li","ol","p","span","strong","ul"]),Ue=new Set(["style"]),ze=new Map([["a",new Set(["href","style"])],["body",new Set(["style","xml:lang"])],["blockquote",Ue],["br",Ue],["cite",Ue],["em",Ue],["img",new Set(["alt","height","src","style","width"])],["li",Ue],["ol",Ue],["p",Ue],["span",Ue],["strong",Ue],["ul",Ue]]),Je=new Map([["font-style",/normal|italic|oblique|inherit/i],["font-weight",/normal|bold|bolder|lighter|inherit|\d\d\d/i],["text-decoration",/none|underline|overline|line-through|blink|inherit/i]]),Ge=function(e){return!!e.match(/^(https?|xmpp|cid|mailto|ftps?|im|ircs?|sips?|tel|geo|bitcoin|magnet):/i)&&e},Ve=function(e){return!!e.match(/^[0-9]*$/)&&e},He={alt:function(e){return e},height:Ve,href:Ge,src:Ge,style:function(e){var t=";".concat(e).replace(/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,"").replace(/\/\*.*/,"").replace(/\\([a-fA-F0-9]{1,6})\s?/,(function(e,t){return String.fromCharCode(parseInt(t,16))})).match(/;\s*([a-z-]+)\s*:\s*([^;]*[^\s;])\s*/g),n=[];if(!t)return!1;var r,i=F(t);try{for(i.s();!(r=i.n()).done;){var a=r.value.match(/^;\s*([a-z-]+)\s*:\s*([^;]*[^\s])\s*$/);if(a){var o=Je.get(a[1]);if(o){var s=a[2].match(o);s&&n.push("".concat(a[1],":").concat(s[0]))}}}}catch(e){i.e(e)}finally{i.f()}return!!n.length&&n.join("")},width:Ve};function We(e){if("string"==typeof e)return e;if(!Be.has(e.name)){if("script"===e.name)return;return function(e){var t,n=[],r=F(e.children);try{for(r.s();!(t=r.n()).done;){var i=t.value;if("string"==typeof i)n.push(i);else{var a=We(i);a&&(Array.isArray(a)?n=n.concat(a):n.push(a))}}}catch(e){r.e(e)}finally{r.f()}return n}(e)}for(var t=e.children.map(We).filter((function(e){return void 0!==e})),n={},r=0,i=Object.entries(e.attributes);r<i.length;r++){var a=g()(i[r],2),o=a[0],s=a[1],c=ze.get(e.name);if(c&&c.has(o)&&s){var u=He[o](s);u&&(n[o]=u)}}return{attributes:n,children:t,name:e.name}}function Qe(e){if("string"!=typeof e){var t,n=[],r=F(e.children);try{for(r.s();!(t=r.n()).done;){var i=t.value;if(i)if("string"!=typeof i){var a=We(i);Array.isArray(a)?n=n.concat(a):a&&n.push(a)}else n.push(i)}}catch(e){r.e(e)}finally{r.f()}var o={};if("body"===e.name)return void 0!==e.attributes.xmlns&&(o.xmlns=e.attributes.xmlns),e.attributes.style&&(o.style=e.attributes.style),void 0!==e.attributes["xml:lang"]&&(o["xml:lang"]=e.attributes["xml:lang"]),{attributes:o,children:n,name:"body"}}}function Ke(e){return 97<=e&&e<=122||65<=e&&e<=90||58===e||95===e}function Ye(e){return 192<=e&&e<=214||216<=e&&e<=246||248<=e&&e<=767||880<=e&&e<=893||895<=e&&e<=8191||8204<=e&&e<=8205||8304<=e&&e<=8591||11264<=e&&e<=12271||12289<=e&&e<=55295||65008<=e&&e<=65533||65536<=e&&e<=983039}function Xe(e){return Ke(e)||Ye(e)}function $e(e){return Ke(e)||45===e||46===e||48<=e&&e<=57||183===e||768<=e&&e<=879||8255<=e&&e<=8256||Ye(e)}function Ze(e){return 32===e||10===e||13===e||9===e}var et=function(e){T()(n,e);var t=D(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return w()(this,n),(e=t.call(this)).allowComments=!0,e.attributes={},e.state=34,e.tagName="",e.haveDeclaration=!1,e.recordBuffer=[],void 0!==r.allowComments&&(e.allowComments=r.allowComments),e}return x()(n,[{key:"write",value:function(e){var t,n=F(e);try{for(n.s();!(t=n.n()).done;){var r=t.value,i=r.codePointAt(0);switch(this.state){case 34:if(60===i){var a=void 0;try{a=qe(this.endRecord())}catch(e){return void this.emit("error",e)}a&&this.emit("text",a),this.transition(31);continue}this.record(r);continue;case 31:if(47===i){this.transition(7);continue}if(33===i){this.transition(24);continue}if(63===i){this.haveDeclaration&&this.restrictedXML(),this.transition(25);continue}if(Xe(i)){this.transition(30),this.startRecord(r);continue}return this.notWellFormed();case 30:if($e(i)){this.record(r);continue}if(Ze(i)){this.startTag(),this.transition(32);continue}if(47===i){this.startTag(),this.transition(29);continue}if(62===i){this.startTag(),this.transition(34),this.emit("startElement",this.tagName,this.attributes);continue}return this.notWellFormed();case 29:if(62===i){this.emit("startElement",this.tagName,this.attributes),this.emit("endElement",this.tagName),this.transition(34);continue}return this.notWellFormed();case 33:if(Ze(i)){this.transition(32);continue}if(47===i){this.transition(29);continue}if(62===i){this.emit("startElement",this.tagName,this.attributes),this.transition(34);continue}return this.notWellFormed();case 32:if(Ze(i))continue;if(Xe(i)){this.startRecord(r),this.transition(0);continue}if(47===i){this.transition(29);continue}if(62===i){this.emit("startElement",this.tagName,this.attributes),this.transition(34);continue}return this.notWellFormed();case 7:if(Xe(i)){this.startRecord(r),this.transition(6);continue}return this.notWellFormed();case 6:if($e(i)){this.record(r);continue}if(Ze(i)){this.transition(8);continue}if(62===i){var o=this.endRecord();this.emit("endElement",o,this.attributes),this.transition(34);continue}return this.notWellFormed();case 8:if(Ze(i))continue;if(62===i){var s=this.endRecord();this.emit("endElement",s,this.attributes),this.transition(34);continue}return this.notWellFormed();case 0:if($e(i)){this.record(r);continue}if(61===i){this.addAttribute(),this.transition(4);continue}if(Ze(i)){this.addAttribute(),this.transition(3);continue}return this.notWellFormed();case 3:if(61===i){this.transition(4);continue}if(Ze(i))continue;return this.notWellFormed();case 4:if(34===i){this.startRecord(),this.transition(1);continue}if(39===i){this.startRecord(),this.transition(2);continue}if(Ze(i))continue;return this.notWellFormed();case 1:case 2:if(34===i&&1===this.state||39===i&&2===this.state){var c=this.endRecord();this.attributes[this.attributeName]=qe(c),this.transition(33);continue}if(60===i)return this.notWellFormed();this.record(r);continue;case 24:if(45===i){this.allowComments||this.restrictedXML(),this.transition(23);continue}if(91===i){this.transition(21);continue}return this.notWellFormed();case 23:if(45===i){this.transition(14);continue}return this.notWellFormed();case 14:45===i&&this.transition(12);continue;case 12:45===i?this.transition(11):this.transition(14);continue;case 11:62===i?this.transition(34):this.transition(14);continue;case 25:if(88===i||120===i){this.transition(28);continue}return this.notWellFormed();case 28:if(77===i||109===i){this.transition(27);continue}return this.notWellFormed();case 27:if(76===i||108===i){this.transition(26);continue}return this.notWellFormed();case 26:if(Ze(i)){this.haveDeclaration=!0,this.transition(15);continue}return this.notWellFormed();case 13:if(62===i){this.transition(34);continue}return this.notWellFormed();case 15:63===i&&this.transition(13);continue;case 21:this.wait(i,67,20);continue;case 20:this.wait(i,68,19);continue;case 19:this.wait(i,65,18);continue;case 18:this.wait(i,84,17);continue;case 17:this.wait(i,65,16);continue;case 16:this.wait(i,91,5);continue;case 5:if(93===i){this.transition(10);continue}this.record(r);continue;case 10:93===i?this.transition(9):(this.record(String.fromCodePoint(93)),this.record(r),this.transition(5));continue;case 9:if(62===i){var u=this.endRecord();u&&this.emit("text",u),this.transition(34)}else this.record(String.fromCodePoint(93)),this.record(String.fromCodePoint(93)),this.record(r),this.transition(5);continue}}}catch(e){n.e(e)}finally{n.f()}}},{key:"end",value:function(e){e&&this.write(e),this.write=function(){}}},{key:"record",value:function(e){this.recordBuffer.push(e)}},{key:"startRecord",value:function(e){this.recordBuffer=[],e&&this.recordBuffer.push(e)}},{key:"endRecord",value:function(){var e=this.recordBuffer;return this.recordBuffer=[],e.join("")}},{key:"startTag",value:function(){this.tagName=this.endRecord(),this.attributes={}}},{key:"addAttribute",value:function(){var e=this.endRecord();if(void 0!==this.attributes[e])return this.notWellFormed();this.attributeName=e,this.attributes[e]=""}},{key:"wait",value:function(e,t,n){if(e!==t)return this.notWellFormed();this.transition(n)}},{key:"transition",value:function(e){this.state=e,34===e&&this.startRecord()}},{key:"notWellFormed",value:function(e){this.emit("error",Ie.notWellFormed(e))}},{key:"restrictedXML",value:function(e){this.emit("error",Ie.restrictedXML(e))}}]),n}(N.EventEmitter);function tt(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=new et(r),a=null;if(i.on("text",(function(e){n&&n.children.push(e)})),i.on("startElement",(function(e,r){var i=new De(e,r);t||(t=i),n=n?n.appendChild(i):i})),i.on("endElement",(function(e){n?e===n.name?n.parent&&(n=n.parent):i.emit("error",Ie.notWellFormed("b")):i.emit("error",Ie.notWellFormed("a"))})),i.on("error",(function(e){a=e})),i.write(e),i.end(),a)throw a;return t}function nt(e,t,n,r){if(r){e=e||r.getNamespace();var i=r.getNamespaceRoot(e);if(i){var a=i.useNamespace("",e);t="".concat(a,":").concat(t)}}var o=new De(t);return t.indexOf(":")<0&&(!n||e!==n)&&o.setAttribute("xmlns",e),o}function rt(e,t){return(e.getAttribute("xml:lang")||t||"").toLowerCase()}function it(e,t){var n,r=[],i=F(e);try{for(i.s();!(n=i.n()).done;){var a=n.value;r.push(rt(a,t.lang))}}catch(e){i.e(e)}finally{i.f()}return(t.resolveLanguage?t.resolveLanguage(r,t.acceptLanguages||[],t.lang):t.lang)||""}function at(e,t,n,r){var i=e.getChildren(n,t),a=rt(e);return i.length?r?i.filter((function(e){if(rt(e,a)===r)return!0})):i:[]}function ot(e,t,n,r){t=t||e.getNamespace();var i=at(e,t,n,r);if(i.length)return i[0];var a=nt(t,n,e.getDefaultNamespace(),e),o=rt(e,r);return r&&o!==r&&a.setAttribute("xml:lang",r),e.appendChild(a),a}function st(e){return{importer:function(t){var n=t.getAttribute(e.name,e.namespace);return n?e.parseValue(n):e.dynamicDefault?e.dynamicDefault(n):e.staticDefault},exporter:function(t,n){if(void 0!==n&&n!==e.staticDefault){var r=e.writeValue(n);if(r||e.emitEmpty)if(e.namespace&&e.prefix){var i,a=t.getNamespaceRoot(e.namespace);if(a)i=a.useNamespace(e.prefix,e.namespace);else{var o=t.getNamespaceContext();o[e.namespace]||(i=t.useNamespace(e.prefix,e.namespace),o[e.namespace]=i)}t.setAttribute("".concat(i,":").concat(e.name),r,e.emitEmpty)}else t.setAttribute(e.name,r,e.emitEmpty)}}}}function ct(e,t){return function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return i=Object.assign({staticDefault:r},i),st(Object.assign(Object.assign({name:n},e),t?t(i):i))}}function ut(e,t){return function(n,r,i){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return o=Object.assign({staticDefault:a},o),st(Object.assign(Object.assign({name:i,namespace:r,prefix:n},e),t?t(o):o))}}function lt(e){var t=e.converter||st(Object.assign(Object.assign({},e),{namespace:e.attributeNamespace}));return{importer:function(n,r){var i=n.getChild(e.element,e.namespace||n.getNamespace());return i?t.importer(i,r):e.dynamicDefault?e.dynamicDefault():e.staticDefault},exporter:function(n,r,i){if(void 0!==r&&r!==e.staticDefault){var a=ot(n,e.namespace||n.getNamespace(),e.element);t.exporter(a,r,i)}}}}function ft(e,t){return function(n,r,i){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return o=Object.assign({staticDefault:a},o),lt(Object.assign(Object.assign({element:r,name:i,namespace:n},e),t?t(o):o))}}function pt(e){return{importer:function(t){var n=t.getText();return n?e.parseValue(n):e.dynamicDefault?e.dynamicDefault(n):e.staticDefault},exporter:function(t,n){if(n||!e.emitEmpty){if(void 0!==n&&n!==e.staticDefault){var r=e.writeValue(n);r&&t.children.push(r)}}else t.children.push("")}}}function dt(e){var t=pt(e);return{importer:function(n,r){var i=at(n,e.namespace||n.getNamespace(),e.element),a=it(i,r);if(!i.length)return e.dynamicDefault?e.dynamicDefault():e.staticDefault;if(e.matchLanguage){var o,s=F(i);try{for(s.s();!(o=s.n()).done;){var c=o.value;if(rt(c,r.lang)===a)return t.importer(c,r)}}catch(e){s.e(e)}finally{s.f()}}return t.importer(i[0],r)},exporter:function(n,r,i){if(r||!e.emitEmpty){if(void 0!==r&&r!==e.staticDefault){var a=ot(n,e.namespace||n.getNamespace(),e.element,e.matchLanguage?i.lang:void 0);t.exporter(a,r,i)}}else ot(n,e.namespace||n.getNamespace(),e.element,e.matchLanguage?i.lang:void 0)}}}var ht={parseValue:function(e){return e},writeValue:function(e){return e}},vt={parseValue:function(e){return parseInt(e,10)},writeValue:function(e){return e.toString()}},mt={parseValue:function(e){return parseFloat(e)},writeValue:function(e){return e.toString()}},gt={parseValue:function(e){return"true"===e||"1"===e||"false"!==e&&"0"!==e&&void 0},writeValue:function(e){return e?"1":"0"}},yt={parseValue:function(e){return new Date(e)},writeValue:function(e){return"string"==typeof e?e:e.toISOString()}},bt={parseValue:function(e){return JSON.parse(e)},writeValue:function(e){return JSON.stringify(e)}},_t=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"utf8";return{parseValue:function(n){return"base64"===t&&"="===n&&(n=""),e.from(n.trim(),t)},writeValue:function(n){var r;return r="string"==typeof n?e.from(n).toString(t):n?n.toString(t):"","base64"===t&&(r=r||"="),r}}},wt={parseValue:function(e){var t=-1;"-"===e.charAt(0)&&(t=1,e=e.slice(1));var n=e.split(":");return(60*parseInt(n[0],10)+parseInt(n[1],10))*t},writeValue:function(e){if("string"==typeof e)return e;var t="-";e<0&&(e=-e,t="+");var n=e/60,r=e%60;return t+=(n<10?"0":"")+n+":"+(r<10?"0":"")+r}},St=ct(ht,(function(e){return Object.assign({dynamicDefault:e.emitEmpty?function(t){return""===t?"":e.staticDefault}:void 0},e)})),xt=ct(gt),kt=ct(vt),Tt=ct(mt),jt=ct(yt),Et=ut(ht),It=ut(gt),Ot=ut(vt),At=ut(mt),Rt=ut(yt),Nt=ft(ht),Ct=ft(gt),Pt=ft(vt),Lt=ft(mt),qt=ft(yt),Ft=function(e){return pt(Object.assign({staticDefault:e},ht))},Mt=function(){return pt(Object.assign({},bt))},Dt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"utf8";return pt(Object.assign({},_t(e)))};function Bt(){return{importer:function(e,t){return rt(e,t.lang)},exporter:function(e,t,n){t&&t.toLowerCase()!==n.lang?e.setAttribute("xml:lang",t):e.setAttribute("xml:lang",void 0)}}}var Ut=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return dt(Object.assign({element:t,emitEmpty:r,matchLanguage:!0,namespace:e,staticDefault:n},ht))},zt=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"utf8";return dt(Object.assign({element:t,matchLanguage:!0,namespace:e},_t(n)))},Jt=function(e,t){return dt(Object.assign({element:t,namespace:e},yt))},Gt=function(e,t,n){return dt(Object.assign({element:t,namespace:e,staticDefault:n},vt))},Vt=function(e,t,n){return dt(Object.assign({element:t,namespace:e,staticDefault:n},mt))},Ht=function(e,t){return dt(Object.assign({element:t,namespace:e},bt))};function Wt(e,t){return dt(Object.assign({element:t,namespace:e,staticDefault:0},wt))}function Qt(e,t){return{importer:function(n){if(n.getChild(t,e||n.getNamespace()))return!0},exporter:function(n,r){r&&ot(n,e||n.getNamespace(),t)}}}var Kt=function(e,t,n){if(n){var r,i=t,a=F(e);try{for(a.s();!(r=a.n()).done;){var o=r.value;i=ot(i,o.namespace||i.getNamespace(),o.element)}}catch(e){a.e(e)}finally{a.f()}i.children.push(n.toString())}};function Yt(e,t){return{importer:function(n){var r,i=n,a=F(e);try{for(a.s();!(r=a.n()).done;){var o=r.value;if(!(i=i.getChild(o.element,o.namespace||i.getNamespace())))return t}}catch(e){a.e(e)}finally{a.f()}return i.getText()||t},exporter:function(t,n){Kt(e,t,n)}}}function Xt(e,t){return{importer:function(n){var r,i=n,a=F(e);try{for(a.s();!(r=a.n()).done;){var o=r.value;if(!(i=i.getChild(o.element,o.namespace||i.getNamespace())))return}}catch(e){a.e(e)}finally{a.f()}var s=i.getText();return s?parseInt(s,10):t||void 0},exporter:function(t,n){Kt(e,t,n)}}}function $t(e){return{importer:function(t){var n,r=t,i=F(e);try{for(i.s();!(n=i.n()).done;){var a=n.value;if(!(r=r.getChild(a.element,a.namespace||r.getNamespace())))return!1}}catch(e){i.e(e)}finally{i.f()}return!0},exporter:function(t,n){if(n){var r,i=t,a=F(e);try{for(a.s();!(r=a.n()).done;){var o=r.value;i=ot(i,o.namespace||i.getNamespace(),o.element)}}catch(e){a.e(e)}finally{a.f()}}}}}function Zt(e){var t=e.pop();return{importer:function(n,r){var i,a=n,o=F(e);try{for(o.s();!(i=o.n()).done;){var s=i.value;if(!(a=a.getChild(s.element,s.namespace||a.getNamespace())))return[]}}catch(e){o.e(e)}finally{o.f()}var c,u=[],l=at(a,t.namespace||a.getNamespace(),t.element),f=it(l,r),p=F(l);try{for(p.s();!(c=p.n()).done;){var d=c.value;rt(d,r.lang)===f&&u.push(d.getText())}}catch(e){p.e(e)}finally{p.f()}return u},exporter:function(n,r,i){if(r.length){var a,o=n,s=F(e);try{for(s.s();!(a=s.n()).done;){var c=a.value;o=ot(o,c.namespace||o.getNamespace(),c.element)}}catch(e){s.e(e)}finally{s.f()}var u,l=t.namespace,f=t.element,p=F(r);try{for(p.s();!(u=p.n()).done;){var d=u.value,h=nt(l||o.getNamespace(),f,i.namespace,o);h.children.push(d),o.appendChild(h)}}catch(e){p.e(e)}finally{p.f()}}}}}function en(e,t,n){var r,i=new Map,a=new Map,o=F(t);try{for(o.s();!(r=o.n()).done;){var s=r.value;"string"==typeof s?(i.set(s,s),a.set(s,s)):(i.set(s[1],s[0]),a.set(s[0],s[1]))}}catch(e){o.e(e)}finally{o.f()}return{importer:function(t){var r,a=F(t.children);try{for(a.s();!(r=a.n()).done;){var o=r.value;if("string"!=typeof o&&(o.getNamespace()===(e||t.getNamespace())&&i.has(o.getName())))return i.get(o.getName())}}catch(e){a.e(e)}finally{a.f()}return n},exporter:function(t,n){a.has(n)&&ot(t,e,a.get(n))}}}function tn(e,t,n,r){var i=new Set(t),a=new Set(n);return{importer:function(t){var n,o=F(t.children);try{for(o.s();!(n=o.n()).done;){var s=n.value;if("string"!=typeof s&&(s.getNamespace()===(e||t.getNamespace())&&i.has(s.getName()))){var c,u=F(s.children);try{for(u.s();!(c=u.n()).done;){var l=c.value;if("string"!=typeof l&&(l.getNamespace()===(e||t.getNamespace())&&a.has(l.getName())))return[s.getName(),l.getName()]}}catch(e){u.e(e)}finally{u.f()}return[s.getName()]}}}catch(e){o.e(e)}finally{o.f()}return r},exporter:function(t,n){var r=ot(t,e,n[0]);n[1]&&ot(r,e,n[1])}}}function nn(e,t){return{importer:function(n,r){var i,a=[],o=at(n,e||n.getNamespace(),t),s=it(o,r),c=F(o);try{for(c.s();!(i=c.n()).done;){var u=i.value;rt(u,r.lang)===s&&a.push(u.getText())}}catch(e){c.e(e)}finally{c.f()}return a},exporter:function(n,r,i){var a,o=F(r);try{for(o.s();!(a=o.n()).done;){var s=a.value,c=nt(e||n.getNamespace(),t,i.namespace,n);c.children.push(s),n.appendChild(c)}}catch(e){o.e(e)}finally{o.f()}}}}function rn(e,t,n){return{importer:function(r){var i,a=[],o=F(r.getChildren(t,e||r.getNamespace()));try{for(o.s();!(i=o.n()).done;){var s=i.value.getAttribute(n);void 0!==s&&a.push(s)}}catch(e){o.e(e)}finally{o.f()}return a},exporter:function(r,i,a){var o,s=F(i);try{for(s.s();!(o=s.n()).done;){var c=o.value,u=nt(e||r.getNamespace(),t,a.namespace,r);u.setAttribute(n,c),r.appendChild(u)}}catch(e){s.e(e)}finally{s.f()}}}}function an(e,t,n){return{importer:function(r){var i,a=[],o=F(r.getChildren(t,e||r.getNamespace()));try{for(o.s();!(i=o.n()).done;){var s=i.value.getAttribute(n);void 0!==s&&a.push(parseInt(s,10))}}catch(e){o.e(e)}finally{o.f()}return a},exporter:function(r,i,a){var o,s=F(i);try{for(s.s();!(o=s.n()).done;){var c=o.value,u=nt(e||r.getNamespace(),t,a.namespace,r);u.setAttribute(n,c.toString()),r.appendChild(u)}}catch(e){s.e(e)}finally{s.f()}}}}function on(e,t){return{importer:function(n,r){var i,a=[],o=at(n,e||n.getNamespace(),t),s=new Set,c=F(o);try{for(c.s();!(i=c.n()).done;){var u=i.value,l=u.getText();if(l){var f=rt(u,r.lang);if(s.has(f))continue;a.push({lang:f,value:l}),s.add(f)}}}catch(e){c.e(e)}finally{c.f()}return s.size>0?a:void 0},exporter:function(n,r,i){var a,o=F(r);try{for(o.s();!(a=o.n()).done;){var s=a.value,c=s.value;if(c){var u=nt(e||n.getNamespace(),t,i.namespace,n);s.lang!==i.lang&&u.setAttribute("xml:lang",s.lang),u.children.push(c),n.appendChild(u)}}}catch(e){o.e(e)}finally{o.f()}}}}function sn(e,t){var n,r=new Map,i=new Map,a=F(t);try{for(a.s();!(n=a.n()).done;){var o=n.value;"string"==typeof o?(r.set(o,o),i.set(o,o)):(r.set(o[1],o[0]),i.set(o[0],o[1]))}}catch(e){a.e(e)}finally{a.f()}return{importer:function(t){var n,i=[],a=F(t.children);try{for(a.s();!(n=a.n()).done;){var o=n.value;"string"!=typeof o&&(o.getNamespace()===(e||t.getNamespace())&&r.has(o.getName())&&i.push(r.get(o.getName())))}}catch(e){a.e(e)}finally{a.f()}return i},exporter:function(t,n){var r,a=F(n);try{for(a.s();!(r=a.n()).done;){var o=r.value;ot(t,e,i.get(o))}}catch(e){a.e(e)}finally{a.f()}}}}function cn(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return{importer:function(i,a){var o=i.getChild(t,e||i.getNamespace());if(o){var s,c=[],u=F(o.children);try{for(u.s();!(s=u.n()).done;){var l=s.value;if("string"!=typeof l&&a.registry.getImportKey(l)===n){var f=a.registry.import(l);f&&c.push(f)}}}catch(e){u.e(e)}finally{u.f()}return r?c:c[0]}},exporter:function(r,i,a){var o,s=[],c=F(Array.isArray(i)?i:[i]);try{for(c.s();!(o=c.n()).done;){var u=o.value,l=a.registry.export(n,u,Object.assign(Object.assign({},a),{namespace:e||r.getNamespace()||void 0}));l&&s.push(l)}}catch(e){c.e(e)}finally{c.f()}if(s.length){var f,p=ot(r,e||r.getNamespace(),t),d=F(s);try{for(d.s();!(f=d.n()).done;){var h=f.value;p.appendChild(h)}}catch(e){d.e(e)}finally{d.f()}}}}}function un(e){return{exporter:function(){},importer:function(){return e}}}function ln(e,t,n){return{importer:function(r,i){if(!n||i.sanitizers&&i.sanitizers[n]){var a,o=at(r,e||r.getNamespace(),t),s=it(o,i),c=F(o);try{for(c.s();!(a=c.n()).done;){var u=a.value;if(rt(u,i.lang)===s)return n?i.sanitizers[n](u.toJSON()):u.toJSON()}}catch(e){c.e(e)}finally{c.f()}return o[0]?n?i.sanitizers[n](o[0].toJSON()):o[0].toJSON():void 0}},exporter:function(r,i,a){"string"==typeof i&&(i=tt("<".concat(t,' xmlns="').concat(e||r.getNamespace(),'">').concat(i,"</").concat(t,">")).toJSON());if(i&&n){if(!a.sanitizers||!a.sanitizers[n])return;i=a.sanitizers[n](i)}if(i){var o,s=ot(r,e||r.getNamespace(),t,a.lang),c=F(i.children);try{for(c.s();!(o=c.n()).done;){var u=o.value;"string"==typeof u?s.appendChild(u):u&&s.appendChild(new De(u.name,u.attributes,u.children))}}catch(e){c.e(e)}finally{c.f()}}}}}function fn(e,t,n){return{importer:function(r,i){if(!n||i.sanitizers&&i.sanitizers[n]){var a,o=[],s=new Set,c=F(at(r,e||r.getNamespace(),t));try{for(c.s();!(a=c.n()).done;){var u=a.value,l=u.toJSON();if(n&&(l=i.sanitizers[n](l)),l){var f=rt(u,i.lang);if(s.has(f))continue;o.push({lang:f,value:l}),s.add(f)}}}catch(e){c.e(e)}finally{c.f()}return s.size>0?o:void 0}},exporter:function(r,i,a){var o,s=F(i);try{for(s.s();!(o=s.n()).done;){var c=o.value,u=c.value;if("string"==typeof u)u=tt("<".concat(t,' xmlns="').concat(e||r.getNamespace(),'">').concat(u,"</").concat(t,">")).toJSON();if(u&&n){if(!a.sanitizers||!a.sanitizers[n])continue;u=a.sanitizers[n](u)}if(u){var l=nt(e||r.getNamespace(),t,a.namespace,r);r.appendChild(l),c.lang!==a.lang&&l.setAttribute("xml:lang",c.lang);var f,p=F(u.children);try{for(p.s();!(f=p.n()).done;){var d=f.value;"string"==typeof d?l.appendChild(d):l.appendChild(new De(d.name,d.attributes,d.children))}}catch(e){p.e(e)}finally{p.f()}}}}catch(e){s.e(e)}finally{s.f()}}}}function pn(e,t,n,r){return{importer:function(i,a){var o,s={},c=at(i,e,t),u=St(n).importer,l=St(r).importer,f=F(c);try{for(f.s();!(o=f.n()).done;){var p=o.value;s[u(p,a)]=l(p,a)}}catch(e){f.e(e)}finally{f.f()}return s},exporter:function(i,a,o){for(var s=St(n).exporter,c=St(r).exporter,u=e||i.getNamespace(),l=0,f=Object.entries(a);l<f.length;l++){var p=g()(f[l],2),d=p[0],h=p[1],v=nt(u,t,o.namespace,i);s(v,d,o),a[d]&&c(v,h,o),i.appendChild(v)}}}}var dn=function(){function e(){w()(this,e),this.parents=new Set,this.placeholder=!1,this.typeField="",this.versionField="",this.defaultType="",this.defaultVersion="",this.languageField="lang",this.typeValues=new Map,this.typeOrders=new Map,this.importers=new Map,this.exporters=new Map,this.children=new Map,this.childrenIndex=new Map,this.implicitChildren=new Set,this.contexts=new Map}return x()(e,[{key:"addChild",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,a={multiple:n||!1,name:e,selector:r,translator:t},o=this.children.get(e);if(o){var s=o.translator;o.multiple=n,r&&o.selector&&r!==o.selector&&(o.selector=void 0);var c,u=F(t.importers);try{for(u.s();!(c=u.n()).done;){var l=g()(c.value,2),f=l[0],p=l[1],d=(s.typeValues.get(f)||"").split("__v__"),h=g()(d,2),v=h[0],m=h[1];s.updateDefinition({contexts:t.contexts,element:p.element,exporterOrdering:new Map,exporters:new Map,importerOrdering:p.fieldOrders,importers:p.fields,namespace:p.namespace,optionalNamespaces:new Map,type:v,version:m}),this.implicitChildren.has(f)||this.childrenIndex.set(f,e)}}catch(e){u.e(e)}finally{u.f()}var y,b=F(t.exporters);try{for(b.s();!(y=b.n()).done;){var _=g()(y.value,2),w=_[0],S=_[1],x=w.split("__v__"),k=g()(x,2),T=k[0],j=k[1];s.updateDefinition({contexts:t.contexts,element:S.element,exporterOrdering:S.fieldOrders,exporters:S.fields,importerOrdering:new Map,importers:new Map,namespace:S.namespace,optionalNamespaces:S.optionalNamespaces,type:T,version:j})}}catch(e){b.e(e)}finally{b.f()}}else{a.translator.parents.add(this),this.children.set(e,a);var E,I=F(t.importers);try{for(I.s();!(E=I.n()).done;){var O=g()(E.value,1),A=O[0];this.implicitChildren.has(A)||this.childrenIndex.set(A,e)}}catch(e){I.e(e)}finally{I.f()}i&&this.implicitChildren.add(i)}}},{key:"addContext",value:function(e,t,n,r,i,a){t&&(e="".concat(e,"[").concat(t,"]"));var o=this.contexts.get(e);o||(o={typeField:"",versionField:"",typeValues:new Map}),a&&(o.impliedType=i),o.typeField=n||"",o.typeValues.set(r,i),this.contexts.set(e,o)}},{key:"getChild",value:function(e){var t=this.children.get(e);if(t)return t.translator}},{key:"getImportKey",value:function(e){return this.childrenIndex.get("{".concat(e.getNamespace(),"}").concat(e.getName()))}},{key:"updateDefinition",value:function(e){var t,n="{".concat(e.namespace,"}").concat(e.element),r=e.type||this.defaultType,i=e.version||this.defaultVersion,a=i?"".concat(r,"__v__").concat(i):r,o=this.importers.get(n)||{element:e.element,fieldOrders:new Map,fields:new Map,namespace:e.namespace},s=F(e.importers);try{for(s.s();!(t=s.n()).done;){var c=g()(t.value,2),u=c[0],l=c[1];o.fields.set(u,l)}}catch(e){s.e(e)}finally{s.f()}var f,p=F(e.importerOrdering);try{for(p.s();!(f=p.n()).done;){var d=g()(f.value,2),h=d[0],v=d[1];o.fieldOrders.set(h,v)}}catch(e){p.e(e)}finally{p.f()}this.importers.set(n,o);var m,y=this.exporters.get(a)||{element:e.element,fieldOrders:new Map,fields:new Map,namespace:e.namespace,optionalNamespaces:e.optionalNamespaces},b=F(e.exporters);try{for(b.s();!(m=b.n()).done;){var _=g()(m.value,2),w=_[0],S=_[1];y.fields.set(w,S)}}catch(e){b.e(e)}finally{b.f()}var x,k=F(e.exporterOrdering);try{for(k.s();!(x=k.n()).done;){var T=g()(x.value,2),j=T[0],E=T[1];y.fieldOrders.set(j,E)}}catch(e){k.e(e)}finally{k.f()}var I,O=F(e.optionalNamespaces);try{for(O.s();!(I=O.n()).done;){var A=g()(I.value,2),R=A[0],N=A[1];y.optionalNamespaces.set(R,N)}}catch(e){O.e(e)}finally{O.f()}this.exporters.set(a,y);var C,P=F(e.contexts);try{for(P.s();!(C=P.n()).done;){var L=g()(C.value,2),q=L[0],M=L[1],D=this.contexts.get(q)||{impliedType:void 0,typeField:M.typeField,versionField:M.versionField,typeValues:new Map};D.typeField||(D.typeField=M.typeField),D.versionField||(D.versionField=M.versionField),D.impliedType||(D.impliedType=M.impliedType);var B,U=F(M.typeValues);try{for(U.s();!(B=U.n()).done;){var z=g()(B.value,2),J=z[0],G=z[1];D.typeValues.set(J,G)}}catch(e){U.e(e)}finally{U.f()}this.contexts.set(q,D)}}catch(e){P.e(e)}finally{P.f()}if(e.type)this.typeValues.set(n,a),e.typeOrder&&e.type&&this.typeOrders.set(e.type,e.typeOrder);else if(this.typeField&&!e.type){var V,H=F(this.importers);try{for(H.s();!(V=H.n()).done;){var W,Q=g()(V.value,2)[1],K=F(e.importers);try{for(K.s();!(W=K.n()).done;){var Y=g()(W.value,2),X=Y[0],$=Y[1];Q.fields.set(X,$)}}catch(e){K.e(e)}finally{K.f()}var Z,ee=F(e.importerOrdering);try{for(ee.s();!(Z=ee.n()).done;){var te=g()(Z.value,2),ne=te[0],re=te[1];Q.fieldOrders.set(ne,re)}}catch(e){ee.e(e)}finally{ee.f()}}}catch(e){H.e(e)}finally{H.f()}var ie,ae=F(this.exporters);try{for(ae.s();!(ie=ae.n()).done;){var oe,se=g()(ie.value,2)[1],ce=F(e.exporters);try{for(ce.s();!(oe=ce.n()).done;){var ue=g()(oe.value,2),le=ue[0],fe=ue[1];se.fields.set(le,fe)}}catch(e){ce.e(e)}finally{ce.f()}var pe,de=F(e.exporterOrdering);try{for(de.s();!(pe=de.n()).done;){var he=g()(pe.value,2),ve=he[0],me=he[1];se.fieldOrders.set(ve,me)}}catch(e){de.e(e)}finally{de.f()}}}catch(e){ae.e(e)}finally{ae.f()}}}},{key:"replaceWith",value:function(e){var t,n=F(this.children);try{for(n.s();!(t=n.n()).done;){var r=g()(t.value,2),i=r[0],a=r[1];e.children.set(i,a)}}catch(e){n.e(e)}finally{n.f()}var o,s=F(this.childrenIndex);try{for(s.s();!(o=s.n()).done;){var c=g()(o.value,2),u=c[0],l=c[1];e.childrenIndex.set(u,l)}}catch(e){s.e(e)}finally{s.f()}var f,p=F(this.contexts);try{for(p.s();!(f=p.n()).done;){var d=g()(f.value,2),h=d[0],v=d[1];e.contexts.set(h,v)}}catch(e){p.e(e)}finally{p.f()}var m,y=F(this.implicitChildren);try{for(y.s();!(m=y.n()).done;){var b=m.value;e.implicitChildren.add(b)}}catch(e){y.e(e)}finally{y.f()}var _,w=F(this.parents);try{for(w.s();!(_=w.n()).done;){var S,x=F(_.value.children.values());try{for(x.s();!(S=x.n()).done;){var k=S.value;k.translator===this&&(k.translator=e)}}catch(e){x.e(e)}finally{x.f()}}}catch(e){w.e(e)}finally{w.f()}this.parents=new Set}},{key:"import",value:function(e,t){var n="{".concat(e.getNamespace(),"}").concat(e.getName()),r={},i=this.importers.get(n);if(i){var a,o=(this.typeValues.get(n)||"").split("__v__"),s=g()(o,2),c=s[0],u=s[1],l=t.path||"";if(t.pathSelector&&(a=this.contexts.get("".concat(l,"[").concat(t.pathSelector,"]"))),a||(a=this.contexts.get(l)),a){if(!a.impliedType){var f=a.typeValues.get(n)||"";f&&(r[a.typeField]=f)}}else this.typeField&&c&&c!==this.defaultType&&(r[this.typeField]=c);this.versionField&&u&&u!==this.defaultVersion&&(r[this.versionField]=u);var p,h=Object.assign(Object.assign({},t),{data:r,importer:i,lang:(e.getAttribute("xml:lang")||t.lang||"").toLowerCase(),pathSelector:c,translator:this}),v=d()(i.fieldOrders.entries()).sort((function(e,t){return e[1]>t[1]?-1:e[1]<t[1]?1:0})),m=v.filter((function(e){return e[1]>=0})),y=v.filter((function(e){return e[1]<0})),b=F(m);try{for(b.s();!(p=b.n()).done;){var _=g()(p.value,1)[0],w=i.fields.get(_);h.path="".concat(t.path,".").concat(_);var S=w(e,h);null!=S&&(r[_]=S)}}catch(e){b.e(e)}finally{b.f()}var x,k=F(e.children);try{for(k.s();!(x=k.n()).done;){var T=x.value;if("string"!=typeof T){var j="{".concat(T.getNamespace(),"}").concat(T.getName()),E=this.childrenIndex.get(j);if(E){h.path="".concat(t.path,".").concat(E);var I=this.children.get(E),O=I.translator,A=I.multiple,R=I.selector;if(!R||R===c){var N=O.import(T,h);void 0!==N&&(A?(r[E]||(r[E]=[]),r[E].push(N)):r[E]?r[E]=O.resolveCollision(r[E],N):r[E]=N)}}}}}catch(e){k.e(e)}finally{k.f()}var C,P=F(y);try{for(P.s();!(C=P.n()).done;){var L=g()(C.value,1)[0],q=i.fields.get(L);h.path="".concat(t.path,".").concat(L);var M=q(e,h);null!=M&&(r[L]=M)}}catch(e){P.e(e)}finally{P.f()}return r}}},{key:"export",value:function(e,t){if(e){var n,r=this.defaultType,i=this.defaultVersion,a=t.path||"";t.pathSelector&&(n=this.contexts.get("".concat(a,"[").concat(t.pathSelector,"]"))),n||(n=this.contexts.get(a)),n?r=n.impliedType||e[n.typeField]||this.defaultType:this.typeField&&(r=e[this.typeField]||this.defaultType),this.versionField&&(i=e[this.versionField]||this.defaultVersion);var o=i?"".concat(r,"__v__").concat(i):r,s=this.exporters.get(o);if(s){var c=nt(s.namespace,s.element,t.namespace,t.element);t.element&&(c.parent=t.element);var u,l=F(s.optionalNamespaces);try{for(l.s();!(u=l.n()).done;){var f=g()(u.value,2),p=f[0],d=f[1];c.addOptionalNamespace(p,d)}}catch(e){l.e(e)}finally{l.f()}var h=Object.assign(Object.assign({},t),{data:e,element:c,exporter:s,lang:(e[this.languageField]||t.lang||"").toLowerCase(),namespace:c.getDefaultNamespace(),pathSelector:r,translator:this}),v=s.fields.get(this.languageField);v&&v(c,e[this.languageField],t);var m=Object.keys(e);m.sort((function(e,t){return(s.fieldOrders.get(e)||1e5)-(s.fieldOrders.get(t)||1e5)}));for(var y=0,b=m;y<b.length;y++){var _=b[y];if(_!==this.languageField){var w=e[_],S=s.fields.get(_);if(S)S(c,w,h);else{var x=this.children.get(_);if(x){h.path="".concat(t.path?t.path+".":"").concat(_);var k=x.translator,T=x.multiple,j=x.selector;if(!j||j===r){var E,I=F(T?null!=w?w:[]:[w]);try{for(I.s();!(E=I.n()).done;){var O=E.value,A=k.export(O,h);A&&c.appendChild(A)}}catch(e){I.e(e)}finally{I.f()}}}}}}return c}}}},{key:"resolveCollision",value:function(e,t){return(this.typeOrders.get(e[this.typeField]||this.defaultType)||0)<=(this.typeOrders.get(t[this.typeField]||this.defaultType)||0)?e:t}}]),e}(),hn=function(){function e(){w()(this,e),this.translators=new Map,this.root=new dn,this.setLanguageResolver(Me)}return x()(e,[{key:"setLanguageResolver",value:function(e){this.languageResolver=e}},{key:"import",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{registry:this};if(this.hasTranslator(e.getNamespace(),e.getName())){t.acceptLanguages||(t.acceptLanguages=[]),t.acceptLanguages=t.acceptLanguages.map((function(e){return e.toLowerCase()})),t.lang&&(t.lang=t.lang.toLowerCase()),t.resolveLanguage||(t.resolveLanguage=this.languageResolver),t.path=this.getImportKey(e),t.sanitizers||(t.sanitizers={xhtmlim:Qe});var n=this.getOrCreateTranslator(e.getNamespace(),e.getName());return n.import(e,Object.assign(Object.assign({},t),{registry:this}))}}},{key:"export",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{registry:this};n.acceptLanguages||(n.acceptLanguages=[]),n.acceptLanguages=n.acceptLanguages.map((function(e){return e.toLowerCase()})),n.lang&&(n.lang=n.lang.toLowerCase()),n.sanitizers||(n.sanitizers={xhtmlim:Qe}),n.path=e;var r,i=e.split(".").filter((function(e){return""!==e})),a=this.root,o=F(i);try{for(o.s();!(r=o.n()).done;){var s=r.value,c=a.getChild(s);if(!c)return;a=c}}catch(e){o.e(e)}finally{o.f()}return a.export(t,Object.assign(Object.assign({},n),{registry:this}))}},{key:"getImportKey",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=t?this.walkToTranslator(t.split(".")):this.root;if(n)return n.getImportKey(e)}},{key:"define",value:function(e){if(Array.isArray(e)){var t,n=F(e);try{for(n.s();!(t=n.n()).done;){var r=t.value;"object"===f()(r)?this.define(r):r(this)}}catch(e){n.e(e)}finally{n.f()}}else if("object"===f()(e)){var i=e;i.aliases=i.aliases||[],i.path&&!i.aliases.includes(i.path)&&i.aliases.push(i.path);var a,o=i.aliases.map((function(e){return"string"==typeof e?{path:e}:e})).sort((function(e,t){var n=e.path.split(".").length;return t.path.split(".").length-n}));if(this.hasTranslator(i.namespace,i.element)&&(a=this.getOrCreateTranslator(i.namespace,i.element)),!a){var s,c,u=F(o);try{for(u.s();!(c=u.n()).done;){var l=c.value,p=this.walkToTranslator(l.path.split("."));if(p&&!p.placeholder){a=p;break}p&&(s=p)}}catch(e){u.e(e)}finally{u.f()}s&&!a&&((a=s).placeholder=!1)}a||(a=this.getOrCreateTranslator(i.namespace,i.element)),this.indexTranslator(i.namespace,i.element,a);var d=i.fields||{},h=new Map,v=new Map,m=new Map,y=new Map;i.typeField&&(a.typeField=i.typeField),i.defaultType&&(a.defaultType=i.defaultType),i.versionField&&(a.versionField=i.versionField),i.defaultVersion&&(a.defaultVersion=i.defaultVersion),i.languageField&&(a.languageField=i.languageField);for(var b=0,_=Object.entries(d);b<_.length;b++){var w=g()(_[b],2),S=w[0],x=w[1];h.set(S,x.importer),m.set(S,x.importOrder||x.order||0),v.set(S,x.exporter),y.set(S,x.exportOrder||x.order||0)}if(i.childrenExportOrder)for(var k=0,T=Object.entries(i.childrenExportOrder);k<T.length;k++){var j=g()(T[k],2),E=j[0],I=j[1];y.set(E,I||0)}for(var O=new Map,A=0,R=Object.entries(i.optionalNamespaces||{});A<R.length;A++){var N=g()(R[A],2),C=N[0],P=N[1];O.set(C,P)}a.updateDefinition({contexts:new Map,element:i.element,exporterOrdering:y,exporters:v,importerOrdering:m,importers:h,namespace:i.namespace,optionalNamespaces:O,type:i.type,version:i.version,typeOrder:i.typeOrder});var L,q=F(o);try{for(q.s();!(L=q.n()).done;){var M=L.value;this.alias(i.namespace,i.element,M.path,M.multiple,M.selector,M.contextField,i.type,M.impliedType)}}catch(e){q.e(e)}finally{q.f()}var D,B=F(o);try{for(B.s();!(D=B.n()).done;){var U=D.value,z=this.walkToTranslator(U.path.split("."));z&&z!==a&&z.replaceWith(a)}}catch(e){B.e(e)}finally{B.f()}}else e(this)}},{key:"alias",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0,o=arguments.length>6?arguments[6]:void 0,s=arguments.length>7&&void 0!==arguments[7]&&arguments[7],c=this.getOrCreateTranslator(e,t);c.placeholder=!1;var u=n.split(".").filter((function(e){return""!==e})),l=u.pop(),f=this.walkToTranslator(u,!0),p="{".concat(e,"}").concat(t);o&&(a||s)&&c.addContext(n,i,a,p,o,s),f.addChild(l,c,r,i,p)}},{key:"walkToTranslator",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.root,i=F(e);try{for(i.s();!(t=i.n()).done;){var a=t.value,o=r.getChild(a);if(!o){if(!n)return;(o=new dn).placeholder=!0,r.addChild(a,o)}r=o}}catch(e){i.e(e)}finally{i.f()}return r}},{key:"hasTranslator",value:function(e,t){return this.translators.has("{".concat(e,"}").concat(t))}},{key:"getOrCreateTranslator",value:function(e,t){var n=this.translators.get("{".concat(e,"}").concat(t));return n||(n=new dn,this.indexTranslator(e,t,n)),n}},{key:"indexTranslator",value:function(e,t,n){this.translators.set("{".concat(e,"}").concat(t),n)}}]),e}(),vn="http://www.w3.org/2005/Atom",mn="urn:ietf:params:xml:ns:xmpp-bind",gn="jabber:client",yn="urn:ietf:params:xml:ns:xmpp-sasl",bn="urn:ietf:params:xml:ns:xmpp-session",_n="urn:ietf:params:xml:ns:xmpp-stanzas",wn="http://etherx.jabber.org/streams",Sn="urn:ietf:params:xml:ns:xmpp-streams",xn="urn:ietf:params:xml:ns:xmpp-tls",kn="urn:ietf:params:xml:ns:xmpp-framing",Tn="jabber:x:data",jn="jabber:iq:privacy",En="http://jabber.org/protocol/disco#info",In="http://jabber.org/protocol/disco#items",On="http://jabber.org/protocol/address",An="http://jabber.org/protocol/muc",Rn="http://jabber.org/protocol/muc#admin",Nn="http://jabber.org/protocol/muc#owner",Cn="http://jabber.org/protocol/muc#user",Pn="http://jabber.org/protocol/ibb",Ln="http://jabber.org/protocol/commands",qn="http://jabber.org/protocol/rsm",Fn="http://jabber.org/protocol/pubsub",Mn="http://jabber.org/protocol/pubsub#errors",Dn="http://jabber.org/protocol/pubsub#event",Bn="http://jabber.org/protocol/pubsub#owner",Un="http://jabber.org/protocol/bytestreams",zn="jabber:x:oob",Jn="http://www.w3.org/1999/xhtml",Gn="http://jabber.org/protocol/xhtml-im",Vn="http://jabber.org/protocol/geoloc",Hn="urn:xmpp:avatar:data",Wn="urn:xmpp:avatar:metadata",Qn="http://jabber.org/protocol/chatstates",Kn="http://jabber.org/protocol/mood",Yn="http://jabber.org/protocol/activity",Xn="http://jabber.org/protocol/tune",$n="http://jabber.org/protocol/xdata-validate",Zn="http://jabber.org/protocol/httpbind",er="http://jabber.org/protocol/shim",tr="http://jabber.org/protocol/compress",nr="http://jabber.org/protocol/xdata-layout",rr="http://jabber.org/protocol/rosterx",ir=function(e){return"".concat(e,"+notify")},ar="urn:xmpp:jingle:1",or="urn:xmpp:jingle:apps:rtp:1",sr="urn:xmpp:jingle:apps:rtp:info:1",cr="http://jabber.org/protocol/nick",ur="urn:xmpp:jingle:transports:ice-udp:1",lr="urn:xmpp:jingle:transports:raw-udp:1",fr="urn:xmpp:sm:3",pr="urn:xmpp:delay",dr="urn:xmpp:bob",hr="urn:xmpp:jingle:apps:file-transfer:5",vr="urn:xmpp:jingle:apps:xmlstream:0",mr="urn:xmpp:jingle:transports:s5b:1",gr="urn:xmpp:jingle:transports:ibb:1",yr="urn:xmpp:carbons:2",br="urn:xmpp:jingle:apps:rtp:rtcp-fb:0",_r="urn:xmpp:jingle:apps:rtp:rtp-hdrext:0",wr="urn:xmpp:forward:0",Sr="urn:xmpp:hashes:2",xr=function(e){return"urn:xmpp:hash-function-text-names:".concat(e)},kr="urn:xmpp:rtt:0",Tr="urn:xmpp:mam:2",jr="urn:xmpp:hats:0",Er="urn:xmpp:chat-markers:0",Ir="urn:xmpp:hints",Or="urn:xmpp:json:0",Ar="urn:xmpp:push:0",Rr="urn:xmpp:http:upload:0",Nr="urn:xmpp:jingle:transports:ice:0",Cr="eu.siacs.conversations.axolotl",Pr="http://docs.oasis-open.org/ns/xri/xrd-1.0",Lr=Object.freeze({__proto__:null,NS_ATOM:vn,NS_BIND:mn,NS_CLIENT:gn,NS_SASL:yn,NS_SERVER:"jabber:server",NS_SESSION:bn,NS_STANZAS:_n,NS_STREAM:wn,NS_STREAMS:Sn,NS_STARTTLS:xn,NS_ROSTER:"jabber:iq:roster",NS_ROSTER_VERSIONING:"urn:xmpp:features:rosterver",NS_SUBSCRIPTION_PREAPPROVAL:"urn:xmpp:features:pre-approval",NS_FRAMING:kn,NS_DATAFORM:Tn,NS_RPC:"jabber:iq:rpc",NS_LAST_ACTIVITY:"jabber:iq:last",NS_PRIVACY:jn,NS_LEGACY_CHAT_EVENTS:"jabber:x:event",NS_DISCO_INFO:En,NS_DISCO_ITEMS:In,NS_ADDRESS:On,NS_MUC:An,NS_MUC_ADMIN:Rn,NS_MUC_OWNER:Nn,NS_MUC_USER:Cn,NS_IBB:Pn,NS_BOOKMARKS:"storage:bookmarks",NS_PRIVATE:"jabber:iq:private",NS_ADHOC_COMMANDS:Ln,NS_VCARD_TEMP:"vcard-temp",NS_SEARCH:"jabber:iq:search",NS_RSM:qn,NS_PUBSUB:Fn,NS_PUBSUB_ERRORS:Mn,NS_PUBSUB_EVENT:Dn,NS_PUBSUB_OWNER:Bn,NS_SOCKS5:Un,NS_OOB:zn,NS_OOB_TRANSFER:"jabber:iq:oob",NS_HTTP_AUTH:"http://jabber.org/protocol/http-auth",NS_XHTML:Jn,NS_XHTML_IM:Gn,NS_REGISTER:"jabber:iq:register",NS_INBAND_REGISTRATION:"http://jabber.org/features/iq-register",NS_AMP:"http://jabber.org/protocol/amp",NS_GEOLOC:Vn,NS_ROSTER_DELIMITER:"roster:delimiter",NS_AVATAR_DATA:Hn,NS_AVATAR_METADATA:Wn,NS_CHAT_STATES:Qn,NS_VERSION:"jabber:iq:version",NS_MOOD:Kn,NS_ACTIVITY:Yn,NS_COMPONENT:"jabber:component:accept",NS_DISCO_LEGACY_CAPS:"http://jabber.org/protocol/caps",NS_TUNE:Xn,NS_DATAFORM_VALIDATION:$n,NS_BOSH:Zn,NS_SHIM:er,NS_COMPRESSION_FEATURE:"http://jabber.org/features/compress",NS_COMPRESSION:tr,NS_DATAFORM_LAYOUT:nr,NS_ROSTER_EXCHANGE:rr,NS_ROSTER_NOTES:"storage:rosternotes",NS_REACH_0:"urn:xmpp:reach:0",NS_VCARD_TEMP_UPDATE:"vcard-temp:x:update",NS_ALT_CONNECTIONS_WEBSOCKET:"urn:xmpp:alt-connections:websocket",NS_ALT_CONNECTIONS_XBOSH:"urn:xmpp:alt-connections:xbosh",NS_CAPTCHA:"urn:xmpp:captcha",NS_PEP_NOTIFY:ir,NS_JINGLE_1:ar,NS_JINGLE_ERRORS_1:"urn:xmpp:jingle:errors:1",NS_JINGLE_RTP_1:or,NS_JINGLE_RTP_ERRORS_1:"urn:xmpp:jingle:apps:rtp:errors:1",NS_JINGLE_RTP_INFO_1:sr,NS_JINGLE_RTP_AUDIO:"urn:xmpp:jingle:apps:rtp:audio",NS_JINGLE_RTP_VIDEO:"urn:xmpp:jingle:apps:rtp:video",NS_LANG_TRANS:"urn:xmpp:langtrans",NS_LANG_TRANS_ITEMS:"urn:xmpp:langtrans:items",NS_NICK:cr,NS_JINGLE_ICE_UDP_1:ur,NS_JINGLE_RAW_UDP_1:lr,NS_RECEIPTS:"urn:xmpp:receipts",NS_INVISIBLE_0:"urn:xmpp:invisible:0",NS_BLOCKING:"urn:xmpp:blocking",NS_BLOCKING_ERRORS:"urn:xmpp:blocking:errors",NS_SMACKS_3:fr,NS_PING:"urn:xmpp:ping",NS_TIME:"urn:xmpp:time",NS_DELAY:pr,NS_BOSH_XMPP:"urn:xmpp:xbosh",NS_DISCO_EXTERNAL_1:"urn:xmpp:extdisco:1",NS_DISCO_EXTERNAL_2:"urn:xmpp:extdisco:2",NS_DATAFORM_MEDIA:"urn:xmpp:media-element",NS_ATTENTION_0:"urn:xmpp:attention:0",NS_BOB:dr,NS_SOFTWARE_INFO:"urn:xmpp:dataforms:softwareinfo",NS_JINGLE_FILE_TRANSFER_3:"urn:xmpp:jingle:apps:file-transfer:3",NS_JINGLE_FILE_TRANSFER_4:"urn:xmpp:jingle:apps:file-transfer:4",NS_JINGLE_FILE_TRANSFER_5:hr,NS_JINGLE_XML_0:vr,NS_MUC_DIRECT_INVITE:"jabber:x:conference",NS_SEC_LABEL_0:"urn:xmpp:sec-label:0",NS_SEC_LABEL_CATALOG_2:"urn:xmpp:sec-label:catalog:2",NS_SEC_LABEL_ESS_0:"urn:xmpp:sec-label:ess:0",NS_JINGLE_SOCKS5_1:mr,NS_JINGLE_IBB_1:gr,NS_JINGLE_RTP_ZRTP_1:"urn:xmpp:jingle:apps:rtp:zrtp:1",NS_THUMBS_0:"urn:xmpp:thumbs:0",NS_THUMBS_1:"urn:xmpp:thumbs:1",NS_DECLOAKING_0:"urn:xmpp:decloaking:0",NS_CARBONS_2:yr,NS_JINGLE_RTP_RTCP_FB_0:br,NS_JINGLE_RTP_HDREXT_0:_r,NS_FORWARD_0:wr,NS_HASHES_1:"urn:xmpp:hashes:1",NS_HASHES_2:Sr,NS_HASH_NAME:xr,NS_RTT_0:kr,NS_MUC_UNIQUE:"http://jabber.org/protocol/muc#unique",NS_CORRECTION_0:"urn:xmpp:message-correct:0",NS_PSA:"urn:xmpp:psa",NS_MAM_TMP:"urn:xmpp:mam:tmp",NS_MAM_0:"urn:xmpp:mam:0",NS_MAM_1:"urn:xmpp:mam:1",NS_MAM_2:Tr,NS_HATS_0:jr,NS_IDLE_1:"urn:xmpp:idle:1",NS_JINGLE_DTLS_0:"urn:xmpp:jingle:apps:dtls:0",NS_CHAT_MARKERS_0:Er,NS_HINTS:Ir,NS_JSON_0:Or,NS_JINGLE_GROUPING_0:"urn:xmpp:jingle:apps:grouping:0",NS_JINGLE_RTP_SSMA_0:"urn:xmpp:jingle:apps:rtp:ssma:0",NS_JINGLE_DTLS_SCTP_1:"urn:xmpp:jingle:transports:dtls-sctp:1",NS_CSI_0:"urn:xmpp:csi:0",NS_JINGLE_MSG_INITIATE_0:"urn:xmpp:jingle:jingle-message:0",NS_DELEGATION_1:"urn:xmpp:delegation:1",NS_PUSH_0:Ar,NS_JINGLE_PUB_1:"urn:xmpp:jinglepub:1",NS_SID_0:"urn:xmpp:sid:0",NS_HTTP_UPLOAD_0:Rr,NS_JINGLE_HTTP_0:"urn:xmpp:jingle:transports:http:0",NS_JINGLE_HTTP_UPLOAD_0:"urn:xmpp:jingle:transports:http:upload:0",NS_JINGLE_ICE_0:Nr,NS_REFERENCE_0:"urn:xmpp:reference:0",NS_EME_0:"urn:xmpp:eme:0",NS_SPOILER_0:"urn:xmpp:spoiler:0",NS_OMEMO_AXOLOTL:Cr,NS_OMEMO_AXOLOTL_DEVICELIST:"eu.siacs.conversations.axolotl.devicelist",NS_OMEMO_AXOLOTL_BUNDLES:"eu.siacs.conversations.axolotl.bundles",NS_OMEMO_AXOLOTL_BUNDLE:function(e){return"".concat("eu.siacs.conversations.axolotl.bundles",":").concat(e)},NS_JSON_MESSAGE_0:"urn:xmpp:json-msg:0",NS_XRD:Pr,NS_JINGLE_RTP_MSID_0:"urn:xmpp:jingle:apps:rtp:msid:0"}),qr=St,Fr=Nt,Mr=Ut;function Dr(e,t,n){return{aliases:Array.isArray(n)?n:[n],element:t,fields:{},namespace:e}}function Br(e){return{element:"message",fields:e,namespace:gn}}function Ur(e){return{element:"presence",fields:e,namespace:gn}}function zr(e){return{element:"iq",fields:e,namespace:gn}}function Jr(e){return{element:"features",fields:e,namespace:wn}}function Gr(e){return{element:"error",fields:e,namespace:_n,path:"stanzaError"}}function Vr(){return[{path:"pubsubcontent",contextField:"itemType"},{path:"pubsubitem.content",contextField:"itemType"},{path:"pubsubeventitem.content",contextField:"itemType"},{path:"iq.pubsub.publish.items",contextField:"itemType"}]}var Hr=function(e){T()(n,e);var t=D(n);function n(e){var r;return w()(this,n),(r=t.call(this,{objectMode:!0})).closedStream=!1,r.wrappedStream=!1,r.registry=e.registry,r.acceptLanguages=e.acceptLanguages||[],e.wrappedStream&&(r.wrappedStream=!0,r.rootImportKey=e.rootKey),r.parser=new et({allowComments:e.allowComments}),r.parser.on("error",(function(e){r.destroy(e)})),r.parser.on("startElement",(function(e,t){if(!r.destroyed){if(r.closedStream)return r.destroy(Ie.alreadyClosed());var n=new De(e,t),i=r.registry.getImportKey(n);if(r.wrappedStream&&!r.rootElement){if(r.rootImportKey&&i!==r.rootImportKey)return r.destroy(Ie.unknownRoot());var a=r.registry.import(n,{acceptLanguages:r.acceptLanguages,lang:r.lang});return a?(r.rootElement=n,void r.push({event:"stream-start",kind:i,stanza:a,xml:n})):r.destroy(Ie.notWellFormed())}r.currentElement?r.currentElement=r.currentElement.appendChild(n):r.currentElement=n}})),r.parser.on("endElement",(function(e){if(!r.destroyed){if(r.wrappedStream&&!r.currentElement)return r.rootElement&&e===r.rootElement.name?(r.closedStream=!0,r.push({event:"stream-end",kind:r.rootImportKey,stanza:{},xml:r.rootElement}),r.end()):(r.closedStream=!0,r.destroy(Ie.notWellFormed()));if(!r.currentElement||e!==r.currentElement.name)return r.closedStream=!0,r.destroy(Ie.notWellFormed());if(r.currentElement.parent)r.currentElement=r.currentElement.parent;else{r.wrappedStream&&(r.currentElement.parent=r.rootElement);var t=r.registry.getImportKey(r.currentElement),n=r.registry.import(r.currentElement,{acceptLanguages:r.acceptLanguages,lang:r.lang});n&&r.push({kind:t,stanza:n,xml:r.currentElement}),r.currentElement=void 0}}})),r.parser.on("text",(function(e){r.currentElement&&r.currentElement.children.push(e)})),r}return x()(n,[{key:"_transform",value:function(e,t,n){this.parser.write(e.toString()),n()}}]),n}(L.Transform);var Wr=Object.freeze({__proto__:null,Registry:hn,Translator:dn,XMLElement:De,define:function(e){return function(t){t.define(e)}},Parser:et,parse:tt,StreamParser:Hr,escapeXML:Le,unescapeXML:qe,escapeXMLText:Fe,basicLanguageResolver:Me,createElement:nt,getLang:rt,getTargetLang:it,findAll:at,findOrCreate:ot,attribute:St,booleanAttribute:xt,integerAttribute:kt,floatAttribute:Tt,dateAttribute:jt,namespacedAttribute:Et,namespacedBooleanAttribute:It,namespacedIntegerAttribute:Ot,namespacedFloatAttribute:At,namespacedDateAttribute:Rt,childAttribute:Nt,childBooleanAttribute:Ct,childIntegerAttribute:Pt,childFloatAttribute:Lt,childDateAttribute:qt,text:Ft,textJSON:Mt,textBuffer:Dt,languageAttribute:Bt,childLanguageAttribute:function(e,t){return lt(Object.assign({converter:Bt(),element:t,name:"xml:lang",namespace:e},ht))},childText:Ut,childTextBuffer:zt,childDate:Jt,childInteger:Gt,childFloat:Vt,childJSON:Ht,childTimezoneOffset:Wt,childBoolean:Qt,deepChildText:Yt,deepChildInteger:Xt,deepChildBoolean:$t,deepMultipleChildText:Zt,childEnum:en,childDoubleEnum:tn,multipleChildText:nn,multipleChildAttribute:rn,multipleChildIntegerAttribute:an,childAlternateLanguageText:on,multipleChildAlternateLanguageText:function(e,t){return{importer:function(n,r){var i,a=[],o=new Map,s=!1,c=F(at(n,e||n.getNamespace(),t));try{for(c.s();!(i=c.n()).done;){var u=i.value,l=u.getText();if(l){var f=rt(u,r.lang),p=o.get(f);p||(p=[],o.set(f,p),a.push({lang:f,value:p})),p.push(l),s=!0}}}catch(e){c.e(e)}finally{c.f()}return s?a:void 0},exporter:function(n,r,i){var a,o=F(r);try{for(o.s();!(a=o.n()).done;){var s,c=a.value,u=F(c.value);try{for(u.s();!(s=u.n()).done;){var l=s.value,f=nt(e||n.getNamespace(),t,i.namespace,n);c.lang!==i.lang&&f.setAttribute("xml:lang",c.lang),f.children.push(l),n.appendChild(f)}}catch(e){u.e(e)}finally{u.f()}}}catch(e){o.e(e)}finally{o.f()}}}},multipleChildEnum:sn,splicePath:cn,staticValue:un,childRawElement:function(e,t,n){return{importer:function(r,i){if(!n||i.sanitizers&&i.sanitizers[n]){var a=r.getChild(t,e||r.getNamespace());return a?n?i.sanitizers[n](a.toJSON()):a.toJSON():void 0}},exporter:function(r,i,a){"string"==typeof i&&(i=tt("<".concat(t,' xmlns="').concat(e||r.getNamespace(),'">').concat(i,"</").concat(t,">")).toJSON());if(n){if(!a.sanitizers||!a.sanitizers[n])return;i=a.sanitizers[n](i)}i&&r.appendChild(new De(i.name,i.attributes,i.children))}}},childLanguageRawElement:ln,childAlternateLanguageRawElement:fn,parameterMap:pn,JIDAttribute:qr,childJIDAttribute:Fr,childJID:Mr,addAlias:Dr,extendMessage:Br,extendPresence:Ur,extendIQ:zr,extendStreamFeatures:Jr,extendStanzaError:Gr,pubsubItemContentAliases:Vr}),Qr=function(t){T()(r,t);var n=D(r);function r(t,i){var a,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"be";return w()(this,r),(a=n.call(this))._block=e.alloc(t),a._finalSize=i,a._blockSize=t,a._bigEndian="be"===o,a._len=0,a}return x()(r,[{key:"_transform",value:function(e,t,n){var r=null;try{this.update(e,t)}catch(e){r=e}n(r)}},{key:"_flush",value:function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)}},{key:"update",value:function(t,n){"string"==typeof t&&(n=n||"utf8",t=e.from(t,n));for(var r=this._block,i=this._blockSize,a=t.length,o=this._len,s=0;s<a;){for(var c=o%i,u=Math.min(a-s,i-c),l=0;l<u;l++)r[c+l]=t[s+l];s+=u,(o+=u)%i==0&&this._update(r)}return this._len+=a,this}},{key:"digest",value:function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var n=8*this._len;if(n<=4294967295)this._bigEndian?(this._block.writeUInt32BE(0,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)):(this._block.writeUInt32LE(n,this._blockSize-8),this._block.writeUInt32LE(0,this._blockSize-4));else{var r=(4294967295&n)>>>0,i=(n-r)/4294967296;this._bigEndian?(this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(r,this._blockSize-4)):(this._block.writeUInt32LE(r,this._blockSize-8),this._block.writeUInt32LE(i,this._blockSize-4))}this._update(this._block);var a=this._hash();return e?a.toString(e):a}},{key:"_update",value:function(e){throw new Error("_update must be implemented by subclass")}},{key:"_hash",value:function(){throw new Error("_update must be implemented by subclass")}}]),r}(L.Transform);function Kr(e,t){return e<<t|e>>>32-t}function Yr(e,t,n,r,i,a,o){return Kr(e+(t&n|~t&r)+i+a|0,o)+t|0}function Xr(e,t,n,r,i,a,o){return Kr(e+(t&r|n&~r)+i+a|0,o)+t|0}function $r(e,t,n,r,i,a,o){return Kr(e+(t^n^r)+i+a|0,o)+t|0}function Zr(e,t,n,r,i,a,o){return Kr(e+(n^(t|~r))+i+a|0,o)+t|0}var ei=function(t){T()(r,t);var n=D(r);function r(){var e;return w()(this,r),(e=n.call(this,64,56,"le"))._a=1732584193,e._b=4023233417,e._c=2562383102,e._d=271733878,e._m=new Array(16),e}return x()(r,[{key:"_update",value:function(e){for(var t=this._m,n=0;n<16;++n)t[n]=e.readInt32LE(4*n);var r=this._a,i=this._b,a=this._c,o=this._d;r=Yr(r,i,a,o,t[0],3614090360,7),o=Yr(o,r,i,a,t[1],3905402710,12),a=Yr(a,o,r,i,t[2],606105819,17),i=Yr(i,a,o,r,t[3],3250441966,22),r=Yr(r,i,a,o,t[4],4118548399,7),o=Yr(o,r,i,a,t[5],1200080426,12),a=Yr(a,o,r,i,t[6],2821735955,17),i=Yr(i,a,o,r,t[7],4249261313,22),r=Yr(r,i,a,o,t[8],1770035416,7),o=Yr(o,r,i,a,t[9],2336552879,12),a=Yr(a,o,r,i,t[10],4294925233,17),i=Yr(i,a,o,r,t[11],2304563134,22),r=Yr(r,i,a,o,t[12],1804603682,7),o=Yr(o,r,i,a,t[13],4254626195,12),a=Yr(a,o,r,i,t[14],2792965006,17),r=Xr(r,i=Yr(i,a,o,r,t[15],1236535329,22),a,o,t[1],4129170786,5),o=Xr(o,r,i,a,t[6],3225465664,9),a=Xr(a,o,r,i,t[11],643717713,14),i=Xr(i,a,o,r,t[0],3921069994,20),r=Xr(r,i,a,o,t[5],3593408605,5),o=Xr(o,r,i,a,t[10],38016083,9),a=Xr(a,o,r,i,t[15],3634488961,14),i=Xr(i,a,o,r,t[4],3889429448,20),r=Xr(r,i,a,o,t[9],568446438,5),o=Xr(o,r,i,a,t[14],3275163606,9),a=Xr(a,o,r,i,t[3],4107603335,14),i=Xr(i,a,o,r,t[8],1163531501,20),r=Xr(r,i,a,o,t[13],2850285829,5),o=Xr(o,r,i,a,t[2],4243563512,9),a=Xr(a,o,r,i,t[7],1735328473,14),r=$r(r,i=Xr(i,a,o,r,t[12],2368359562,20),a,o,t[5],4294588738,4),o=$r(o,r,i,a,t[8],2272392833,11),a=$r(a,o,r,i,t[11],1839030562,16),i=$r(i,a,o,r,t[14],4259657740,23),r=$r(r,i,a,o,t[1],2763975236,4),o=$r(o,r,i,a,t[4],1272893353,11),a=$r(a,o,r,i,t[7],4139469664,16),i=$r(i,a,o,r,t[10],3200236656,23),r=$r(r,i,a,o,t[13],681279174,4),o=$r(o,r,i,a,t[0],3936430074,11),a=$r(a,o,r,i,t[3],3572445317,16),i=$r(i,a,o,r,t[6],76029189,23),r=$r(r,i,a,o,t[9],3654602809,4),o=$r(o,r,i,a,t[12],3873151461,11),a=$r(a,o,r,i,t[15],530742520,16),r=Zr(r,i=$r(i,a,o,r,t[2],3299628645,23),a,o,t[0],4096336452,6),o=Zr(o,r,i,a,t[7],1126891415,10),a=Zr(a,o,r,i,t[14],2878612391,15),i=Zr(i,a,o,r,t[5],4237533241,21),r=Zr(r,i,a,o,t[12],1700485571,6),o=Zr(o,r,i,a,t[3],2399980690,10),a=Zr(a,o,r,i,t[10],4293915773,15),i=Zr(i,a,o,r,t[1],2240044497,21),r=Zr(r,i,a,o,t[8],1873313359,6),o=Zr(o,r,i,a,t[15],4264355552,10),a=Zr(a,o,r,i,t[6],2734768916,15),i=Zr(i,a,o,r,t[13],1309151649,21),r=Zr(r,i,a,o,t[4],4149444226,6),o=Zr(o,r,i,a,t[11],3174756917,10),a=Zr(a,o,r,i,t[2],718787259,15),i=Zr(i,a,o,r,t[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+i|0,this._c=this._c+a|0,this._d=this._d+o|0}},{key:"_hash",value:function(){var t=e.allocUnsafe(16);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t}}]),r}(Qr),ti=[1518500249,1859775393,-1894007588,-899497514];function ni(e){return e<<5|e>>>27}function ri(e){return e<<30|e>>>2}function ii(e,t,n,r){return 0===e?t&n|~t&r:2===e?t&n|t&r|n&r:t^n^r}var ai=function(t){T()(r,t);var n=D(r);function r(){var e;return w()(this,r),(e=n.call(this,64,56))._a=1732584193,e._b=4023233417,e._c=2562383102,e._d=271733878,e._e=3285377520,e._w=new Array(80),e}return x()(r,[{key:"_update",value:function(e){var t,n,r=this._w,i=0|this._a,a=0|this._b,o=0|this._c,s=0|this._d,c=0|this._e;for(t=0;t<16;++t)r[t]=e.readInt32BE(4*t);for(;t<80;++t)r[t]=(n=r[t-3]^r[t-8]^r[t-14]^r[t-16])<<1|n>>>31;for(var u=0;u<80;++u){var l=~~(u/20),f=ni(i)+ii(l,a,o,s)+c+r[u]+ti[l]|0;c=s,s=o,o=ri(a),a=i,i=f}this._a=i+this._a|0,this._b=a+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0}},{key:"_hash",value:function(){var t=e.allocUnsafe(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t}}]),r}(Qr),oi=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function si(e,t,n){return n^e&(t^n)}function ci(e,t,n){return e&t|n&(e|t)}function ui(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function li(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function fi(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}var pi=function(t){T()(r,t);var n=D(r);function r(){var e;return w()(this,r),(e=n.call(this,64,56))._a=1779033703,e._b=3144134277,e._c=1013904242,e._d=2773480762,e._e=1359893119,e._f=2600822924,e._g=528734635,e._h=1541459225,e._w=new Array(64),e}return x()(r,[{key:"_update",value:function(e){var t,n,r=this._w,i=0|this._a,a=0|this._b,o=0|this._c,s=0|this._d,c=0|this._e,u=0|this._f,l=0|this._g,f=0|this._h;for(t=0;t<16;++t)r[t]=e.readInt32BE(4*t);for(;t<64;++t)r[t]=0|(((n=r[t-2])>>>17|n<<15)^(n>>>19|n<<13)^n>>>10)+r[t-7]+fi(r[t-15])+r[t-16];for(var p=0;p<64;++p){var d=f+li(c)+si(c,u,l)+oi[p]+r[p]|0,h=ui(i)+ci(i,a,o)|0;f=l,l=u,u=c,c=s+d|0,s=o,o=a,a=i,i=d+h|0}this._a=i+this._a|0,this._b=a+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0,this._f=u+this._f|0,this._g=l+this._g|0,this._h=f+this._h|0}},{key:"_hash",value:function(){var t=e.allocUnsafe(32);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t.writeInt32BE(this._h,28),t}}]),r}(Qr),di=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function hi(e,t,n){return n^e&(t^n)}function vi(e,t,n){return e&t|n&(e|t)}function mi(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function gi(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function yi(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function bi(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function _i(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function wi(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function Si(e,t){return e>>>0<t>>>0?1:0}var xi=function(t){T()(r,t);var n=D(r);function r(){var e;return w()(this,r),(e=n.call(this,128,112))._ah=1779033703,e._bh=3144134277,e._ch=1013904242,e._dh=2773480762,e._eh=1359893119,e._fh=2600822924,e._gh=528734635,e._hh=1541459225,e._al=4089235720,e._bl=2227873595,e._cl=4271175723,e._dl=1595750129,e._el=2917565137,e._fl=725511199,e._gl=4215389547,e._hl=327033209,e._w=new Array(160),e}return x()(r,[{key:"_update",value:function(e){var t,n,r=this._w,i=0|this._ah,a=0|this._bh,o=0|this._ch,s=0|this._dh,c=0|this._eh,u=0|this._fh,l=0|this._gh,f=0|this._hh,p=0|this._al,d=0|this._bl,h=0|this._cl,v=0|this._dl,m=0|this._el,g=0|this._fl,y=0|this._gl,b=0|this._hl,_=0;for(_=0;_<32;_+=2)r[_]=e.readInt32BE(4*_),r[_+1]=e.readInt32BE(4*_+4);for(;_<160;_+=2){var w=r[_-30],S=r[_-30+1],x=yi(w,S),k=bi(S,w),T=_i(w=r[_-4],S=r[_-4+1]),j=wi(S,w),E=r[_-14],I=r[_-14+1],O=r[_-32],A=r[_-32+1];t=(t=(t=x+E+Si(n=k+I|0,k)|0)+T+Si(n=n+j|0,j)|0)+O+Si(n=n+A|0,A)|0,r[_]=t,r[_+1]=n}for(var R=0;R<160;R+=2){t=r[R],n=r[R+1];var N=vi(i,a,o),C=vi(p,d,h),P=mi(i,p),L=mi(p,i),q=gi(c,m),F=gi(m,c),M=di[R],D=di[R+1],B=hi(c,u,l),U=hi(m,g,y),z=b+F|0,J=f+q+Si(z,b)|0;J=(J=(J=J+B+Si(z=z+U|0,U)|0)+M+Si(z=z+D|0,D)|0)+t+Si(z=z+n|0,n)|0;var G=L+C|0,V=P+N+Si(G,L)|0;f=l,b=y,l=u,y=g,u=c,g=m,c=s+J+Si(m=v+z|0,v)|0,s=o,v=h,o=a,h=d,a=i,d=p,i=J+V+Si(p=z+G|0,z)|0}this._al=this._al+p|0,this._bl=this._bl+d|0,this._cl=this._cl+h|0,this._dl=this._dl+v|0,this._el=this._el+m|0,this._fl=this._fl+g|0,this._gl=this._gl+y|0,this._hl=this._hl+b|0,this._ah=this._ah+i+Si(this._al,p)|0,this._bh=this._bh+a+Si(this._bl,d)|0,this._ch=this._ch+o+Si(this._cl,h)|0,this._dh=this._dh+s+Si(this._dl,v)|0,this._eh=this._eh+c+Si(this._el,m)|0,this._fh=this._fh+u+Si(this._fl,g)|0,this._gh=this._gh+l+Si(this._gl,y)|0,this._hh=this._hh+f+Si(this._hl,b)|0}},{key:"_hash",value:function(){var t=e.allocUnsafe(64);function n(e,n,r){t.writeInt32BE(e,r),t.writeInt32BE(n,r+4)}return n(this._ah,this._al,0),n(this._bh,this._bl,8),n(this._ch,this._cl,16),n(this._dh,this._dl,24),n(this._eh,this._el,32),n(this._fh,this._fl,40),n(this._gh,this._gl,48),n(this._hh,this._hl,56),t}}]),r}(Qr),ki=new Map([["md5",ei],["sha-1",ai],["sha-256",pi],["sha-512",xi],["sha1",ai],["sha256",pi],["sha512",xi]]);function Ti(e){e=e.toLowerCase();var t=ki.get(e);if(t)return new t;throw new Error("Unsupported hash algorithm: "+e)}var ji,Ei=e.alloc(128),Ii=function(t){T()(r,t);var n=D(r);function r(t,i){var a;w()(this,r),a=n.call(this),"string"==typeof i&&(i=e.from(i));var o="sha512"===t?128:64;a._alg=t,i.length>o?i=Ti(t).update(i).digest():i.length<o&&(i=e.concat([i,Ei],o)),a._ipad=e.alloc(o),a._opad=e.alloc(o);for(var s=0;s<o;s++)a._ipad[s]=54^i[s],a._opad[s]=92^i[s];return a._hash=Ti(t).update(a._ipad),a}return x()(r,[{key:"_transform",value:function(e,t,n){var r;try{this.update(e,t)}catch(e){r=e}finally{n(r)}}},{key:"_flush",value:function(e){var t;try{this.push(this._final())}catch(e){t=e}e(t)}},{key:"_final",value:function(){var e=this._hash.digest();return Ti(this._alg).update(this._opad).update(e).digest()}},{key:"update",value:function(e,t){return this._hash.update(e,t),this}},{key:"digest",value:function(t){var n=this._final()||e.alloc(0);return t?n.toString(t):n}}]),r}(L.Transform);function Oi(t){var n=new Uint8Array(t);return t>0&&(ji.crypto||ji.msCrypto).getRandomValues(n),e.from(n.buffer)}"undefined"!=typeof window?ji=window:void 0!==r&&(ji=r);var Ai=fetch,Ri=WebSocket,Ni=ji.RTCPeerConnection,Ci=function(){function e(t){w()(this,e),this.authenticated=!1,this.mutuallyAuthenticated=!1,this.name=t}return x()(e,[{key:"getCacheableCredentials",value:function(){return null}},{key:"processChallenge",value:function(e){}},{key:"processSuccess",value:function(e){this.authenticated=!0}},{key:"finalize",value:function(){var e={authenticated:this.authenticated,mutuallyAuthenticated:this.mutuallyAuthenticated};return this.errorData&&(e.errorData=this.errorData),e}}]),e}(),Pi=function(){function e(){w()(this,e),this.mechanisms=[]}return x()(e,[{key:"register",value:function(e,t,n){this.mechanisms.push({constructor:t,name:e.toUpperCase(),priority:n}),this.mechanisms.sort((function(e,t){return t.priority-e.priority}))}},{key:"disable",value:function(e){var t=e.toUpperCase();this.mechanisms=this.mechanisms.filter((function(e){return e.name!==t}))}},{key:"createMechanism",value:function(e){var t,n=e.map((function(e){return e.toUpperCase()})),r=F(this.mechanisms);try{for(r.s();!(t=r.n()).done;){var i,a=t.value,o=F(n);try{for(o.s();!(i=o.n()).done;){if(i.value===a.name)return new a.constructor(a.name)}}catch(e){o.e(e)}finally{o.f()}}}catch(e){r.e(e)}finally{r.f()}return null}}]),e}();function Li(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32;return Oi(e).toString("hex")}function qi(t,n){for(var r=[],i=0;i<t.length;i++)r.push(t[i]^n[i]);return e.from(r)}function Fi(e,t){return Ti(t).update(e).digest()}function Mi(e,t,n){return function(e,t){return new Ii(e.toLowerCase(),t)}(n,e).update(t).digest()}function Di(t,n,r,i){for(var a=Mi(t,e.concat([n,e.from("00000001","hex")]),i),o=a,s=0;s<r-1;s++)o=qi(o,a=Mi(t,a,i));return o}function Bi(e){for(var t={},n=e.toString().split(/,(?=(?:[^"]|"[^"]*")*$)/),r=0,i=n.length;r<i;r++){var a=/(\w+)=["]?([^"]+)["]?$/.exec(n[r]);a&&(t[a[1]]=a[2])}return t}function Ui(e){var t,n=[],r=F(e);try{for(r.s();!(t=r.n()).done;){var i=t.value;","===i?n.push("=2C"):"="===i?n.push("=3D"):n.push(i)}}catch(e){r.e(e)}finally{r.f()}return n.join("")}var zi=function(t){T()(r,t);var n=D(r);function r(){return w()(this,r),n.apply(this,arguments)}return x()(r,[{key:"getExpectedCredentials",value:function(){return{optional:["trace"],required:[]}}},{key:"createResponse",value:function(t){return e.from(t.trace||"")}}]),r}(Ci),Ji=function(t){T()(r,t);var n=D(r);function r(){return w()(this,r),n.apply(this,arguments)}return x()(r,[{key:"getExpectedCredentials",value:function(){return{optional:["authzid"],required:[]}}},{key:"createResponse",value:function(t){return e.from(t.authzid||"")}}]),r}(Ci),Gi=function(t){T()(r,t);var n=D(r);function r(){return w()(this,r),n.apply(this,arguments)}return x()(r,[{key:"getExpectedCredentials",value:function(){return{optional:["authzid"],required:["username","password"]}}},{key:"createResponse",value:function(t){return e.from((t.authzid||"")+"\0"+t.username+"\0"+(t.password||t.token))}}]),r}(Ci),Vi=function(t){T()(r,t);var n=D(r);function r(e){var t;return w()(this,r),(t=n.call(this,e)).failed=!1,t.name=e,t}return x()(r,[{key:"getExpectedCredentials",value:function(){return{optional:["authzid"],required:["token"]}}},{key:"createResponse",value:function(t){if(this.failed)return e.from("");var n="n,".concat(Ui(de(t.authzid)),","),r="auth=Bearer ".concat(t.token,"");return e.from(n+""+r+"","utf8")}},{key:"processChallenge",value:function(e){this.failed=!0,this.errorData=JSON.parse(e.toString("utf8"))}}]),r}(Ci),Hi=function(t){T()(r,t);var n=D(r);function r(e){var t;return w()(this,r),(t=n.call(this,e)).providesMutualAuthentication=!1,t.state="INITIAL",t.name=e,t}return x()(r,[{key:"processChallenge",value:function(e){this.state="CHALLENGE";var t=Bi(e);this.authenticated=!!t.rspauth,this.realm=t.realm,this.nonce=t.nonce,this.charset=t.charset}},{key:"getExpectedCredentials",value:function(){return{optional:["authzid","clientNonce","realm"],required:["host","password","serviceName","serviceType","username"]}}},{key:"createResponse",value:function(t){if("INITIAL"===this.state||this.authenticated)return null;var n=t.serviceType+"/"+t.host;t.serviceName&&t.host!==t.serviceName&&(n+="/"+t.serviceName);var r=t.realm||this.realm||"",i=t.clientNonce||Li(16),a="00000001",o="";o+='username="'+t.username+'"',r&&(o+=',realm="'+r+'"'),o+=',nonce="'+this.nonce+'"',o+=',cnonce="'+i+'"',o+=",nc="+a,o+=",qop=auth",o+=',digest-uri="'+n+'"';var s=Ti("md5").update(t.username).update(":").update(r).update(":").update(t.password).digest(),c=Ti("md5").update(s).update(":").update(this.nonce).update(":").update(i);t.authzid&&c.update(":").update(t.authzid);var u=c.digest("hex"),l=Ti("md5").update("AUTHENTICATE:").update(n).digest("hex");return o+=",response="+Ti("md5").update(u).update(":").update(this.nonce).update(":").update(a).update(":").update(i).update(":").update("auth").update(":").update(l).digest("hex"),"utf-8"===this.charset&&(o+=",charset=utf-8"),t.authzid&&(o+=',authzid="'+t.authzid+'"'),e.from(o)}}]),r}(Ci),Wi=function(){function t(e){w()(this,t),this.providesMutualAuthentication=!0,this.name=e,this.state="INITIAL",this.useChannelBinding=this.name.toLowerCase().endsWith("-plus"),this.algorithm=this.name.toLowerCase().split("scram-")[1].split("-plus")[0]}return x()(t,[{key:"getExpectedCredentials",value:function(){var e=["username","password"];return this.useChannelBinding&&e.push("tlsUnique"),{optional:["authzid","clientNonce"],required:e}}},{key:"getCacheableCredentials",value:function(){return this.cache}},{key:"createResponse",value:function(e){return"INITIAL"===this.state?this.initialResponse(e):this.challengeResponse(e)}},{key:"processChallenge",value:function(t){var n=Bi(t);this.salt=e.from(n.s||"","base64"),this.iterationCount=parseInt(n.i,10),this.nonce=n.r,this.verifier=n.v,this.error=n.e,this.challenge=t}},{key:"processSuccess",value:function(e){this.processChallenge(e)}},{key:"finalize",value:function(){return this.verifier?this.serverSignature.toString("base64")!==this.verifier?{authenticated:!1,error:"Mutual authentication failed",mutuallyAuthenticated:!1}:{authenticated:!0,mutuallyAuthenticated:!0}:{authenticated:!1,error:this.error,mutuallyAuthenticated:!1}}},{key:"initialResponse",value:function(t){var n=Ui(de(t.authzid)),r=Ui(de(t.username));this.clientNonce=t.clientNonce||Li();var i="n";t.tlsUnique&&(i=this.useChannelBinding?"p=tls-unique":"y"),this.gs2Header=e.from(n?"".concat(i,",a=").concat(n,","):"".concat(i,",,")),this.clientFirstMessageBare=e.from("n=".concat(r,",r=").concat(this.clientNonce));var a=e.concat([this.gs2Header,this.clientFirstMessageBare]);return this.state="CHALLENGE",a}},{key:"challengeResponse",value:function(t){var n,r,i,a=e.from("Client Key"),o=e.from("Server Key"),s=e.concat([this.gs2Header,t.tlsUnique||e.from("")]).toString("base64"),c=e.from("c=".concat(s,",r=").concat(this.nonce)),u=t.salt&&0===e.compare(t.salt,this.salt);u&&t.clientKey&&t.serverKey?(r=e.from(t.clientKey),i=e.from(t.serverKey)):u&&t.saltedPassword?(r=Mi(n=e.from(t.saltedPassword),a,this.algorithm),i=Mi(n,o,this.algorithm)):(r=Mi(n=Di(e.from(de(t.password)),this.salt,this.iterationCount,this.algorithm),a,this.algorithm),i=Mi(n,o,this.algorithm));var l=Fi(r,this.algorithm),f=e.from(","),p=e.concat([this.clientFirstMessageBare,f,this.challenge,f,c]),d=qi(r,Mi(l,p,this.algorithm)).toString("base64");this.serverSignature=Mi(i,p,this.algorithm);var h=e.concat([c,e.from(",p=".concat(d))]);return this.state="FINAL",this.cache={clientKey:r,salt:this.salt,saltedPassword:n,serverKey:i},h}}]),t}(),Qi=Object.freeze({__proto__:null,SimpleMech:Ci,Factory:Pi,createClientNonce:Li,XOR:qi,H:Fi,HMAC:Mi,Hi:Di,ANONYMOUS:zi,EXTERNAL:Ji,PLAIN:Gi,OAUTH:Vi,DIGEST:Hi,SCRAM:Wi});function Ki(e){var t=this;e.getAccountInfo=function(n){return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){var r;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.sendIQ({account:{},to:n,type:"get"});case 2:return r=t.sent,t.abrupt("return",r.account);case 4:case"end":return t.stop()}}),t)})))},e.updateAccount=function(t,n){return e.sendIQ({account:n,to:t,type:"set"})},e.deleteAccount=function(t){return e.sendIQ({account:{remove:!0},to:t,type:"set"})},e.getPrivateData=function(n){return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){var r;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.sendIQ({privateStorage:u()({},n,{}),type:"get"});case 2:return r=t.sent,t.abrupt("return",r.privateStorage[n]);case 4:case"end":return t.stop()}}),t)})))},e.setPrivateData=function(n,r){return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e.sendIQ({privateStorage:u()({},n,r),type:"set"}));case 1:case"end":return t.stop()}}),t)})))},e.getVCard=function(n){return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){var r;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.sendIQ({to:n,type:"get",vcard:{format:"vcard-temp"}});case 2:return r=t.sent,t.abrupt("return",r.vcard);case 4:case"end":return t.stop()}}),t)})))},e.publishVCard=function(n){return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.sendIQ({type:"set",vcard:n});case 2:case"end":return t.stop()}}),t)})))},e.enableNotifications=function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return e.sendIQ({push:{action:"enable",form:{fields:[{name:"FORM_TYPE",type:"hidden",value:"http://jabber.org/protocol/pubsub#publish-options"}].concat(d()(r)),type:"submit"},jid:t,node:n},type:"set"})},e.disableNotifications=function(t,n){return e.sendIQ({push:{action:"disable",jid:t,node:n},type:"set"})}}function Yi(e){e.disco.addFeature(ir(Wn)),e.on("pubsub:published",(function(t){if(t.pubsub.items.node===Wn){var n=t.pubsub.items.published[0].content;e.emit("avatar",{avatars:n.versions||[],jid:t.from,source:"pubsub"})}})),e.on("presence",(function(t){t.vcardAvatar&&"string"==typeof t.vcardAvatar&&e.emit("avatar",{avatars:[{id:t.vcardAvatar}],jid:t.from,source:"vcard"})})),e.publishAvatar=function(t,n){return e.publish("",Hn,{data:n,itemType:Hn},t)},e.useAvatars=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.publish("",Wn,{itemType:Wn,pointers:n,versions:t},"current")},e.getAvatar=function(t,n){return e.getItem(t,Hn,n)}}function Xi(e){var t=this;e.registerFeature("bind",300,(function(n,r){return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){var i,a;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.sendIQ({bind:{resource:e.config.resource},type:"set"});case 3:return i=t.sent,e.features.negotiated.bind=!0,e.emit("session:prebind",i.bind.jid),a=!n.legacySession||n.legacySession&&n.legacySession.optional,!e.sessionStarted&&a&&e.emit("session:started",e.jid),t.abrupt("return",r());case 11:return t.prev=11,t.t0=t.catch(0),console.error(t.t0),t.abrupt("return",r("disconnect","JID binding failed"));case 15:case"end":return t.stop()}}),t,null,[[0,11]])})))})),e.registerFeature("legacySession",1e3,(function(n,r){return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(e.sessionStarted||n.legacySession&&n.legacySession.optional)){t.next=3;break}return e.features.negotiated.session=!0,t.abrupt("return",r());case 3:return t.prev=3,t.next=6,e.sendIQ({legacySession:!0,type:"set"});case 6:return e.features.negotiated.session=!0,e.sessionStarted||(e.sessionStarted=!0,e.emit("session:started",e.jid)),t.abrupt("return",r());case 11:return t.prev=11,t.t0=t.catch(3),t.abrupt("return",r("disconnect","Session requeset failed"));case 14:case"end":return t.stop()}}),t,null,[[3,11]])})))})),e.on("session:started",(function(){e.sessionStarted=!0})),e.on("session:prebind",(function(t){e.jid=t,e.emit("session:bound",e.jid)})),e.on("--reset-stream-features",(function(){e.sessionStarted=!1,e.features.negotiated.bind=!1,e.features.negotiated.session=!1}))}function $i(e){e.disco.addFeature(Ln),e.disco.addItem({name:"Ad-Hoc Commands",node:Ln}),e.getCommands=function(t){return e.getDiscoItems(t,Ln)}}for(var Zi=[],ea=0;ea<256;++ea)Zi[ea]=(ea+256).toString(16).substr(1);function ta(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};return Object(A.__awaiter)(this,void 0,void 0,b.a.mark((function r(){var i,a;return b.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,Promise.race([e,new Promise((function(e,r){i=setTimeout((function(){return r(n())}),t)}))]);case 2:return a=r.sent,clearTimeout(i),r.abrupt("return",a);case 5:case"end":return r.stop()}}),r)})))}function na(e){return Object(A.__awaiter)(this,void 0,void 0,b.a.mark((function t(){return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t){setTimeout((function(){return t()}),e)})));case 1:case"end":return t.stop()}}),t)})))}function ra(t,n){var r="string"==typeof t?e.from(t,"utf8"):t,i="string"==typeof n?e.from(n,"utf8"):n;return r.compare(i)}function ia(){var e=Oi(16);e[6]=15&e[6]|64,e[8]=63&e[8]|128;var t=0;return[Zi[e[t++]],Zi[e[t++]],Zi[e[t++]],Zi[e[t++]],"-",Zi[e[t++]],Zi[e[t++]],"-",Zi[e[t++]],Zi[e[t++]],"-",Zi[e[t++]],Zi[e[t++]],"-",Zi[e[t++]],Zi[e[t++]],Zi[e[t++]],Zi[e[t++]],Zi[e[t++]],Zi[e[15]]].join("")}var aa=new Set(["date","expires","httpUploadRetry","idleSince","published","since","stamp","timestamp","updated","utc"]),oa=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)(?:Z|((\+|-)([\d|:]*)))?$/;var sa=Object.freeze({__proto__:null,timeoutPromise:ta,sleep:na,octetCompare:ra,uuid:ia,reviveData:function(t,n){return aa.has(t)&&n&&"string"==typeof n&&oa.test(n)?new Date(n):n&&"object"===f()(n)&&"Buffer"===n.type&&Array.isArray(n.data)?e.from(n):n}});function ca(e){return Object(A.__awaiter)(this,void 0,void 0,b.a.mark((function t(){return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.sm.started){t.next=2;break}return t.abrupt("return",new Promise((function(t){e.once("stream:management:ack",(function(){return t()})),e.sm.request()})));case 2:return t.prev=2,t.next=5,e.ping();case 5:t.next=14;break;case 7:if(t.prev=7,t.t0=t.catch(2),!t.t0.error||"timeout"===t.t0.error.condition){t.next=13;break}return t.abrupt("return");case 13:throw t.t0;case 14:case"end":return t.stop()}}),t,null,[[2,7]])})))}function ua(e,t){e.features.negotiated.clientStateIndication&&e.send("csi",{type:t})}function la(e){var t=this;e.disco.addFeature("urn:xmpp:ping"),e.on("iq:get:ping",(function(t){e.sendIQResult(t)})),e.on("--reset-stream-features",(function(){e._stopKeepAliveInterval(),e.features.negotiated.streamManagement=!1,e.features.negotiated.clientStateIndication=!1})),e.markActive=function(){return ua(e,"active")},e.markInactive=function(){return ua(e,"inactive")},e.ping=function(n){return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.sendIQ({ping:!0,to:n,type:"get"});case 2:case"end":return t.stop()}}),t)})))},e.enableKeepAlive=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e._keepAliveOptions=t;var n=t.interval||300,r=t.timeout||e.config.timeout||15;function i(){return Object(A.__awaiter)(this,void 0,void 0,b.a.mark((function t(){return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.sessionStarted){t.next=10;break}return t.prev=1,t.next=4,ta(ca(e),1e3*r);case 4:t.next=10;break;case 6:t.prev=6,t.t0=t.catch(1),e.emit("stream:error",{condition:"connection-timeout",text:"Server did not respond in "+r+" seconds"}),e.transport&&(e.transport.hasStream=!1,e.transport.disconnect(!1));case 10:case"end":return t.stop()}}),t,null,[[1,6]])})))}clearInterval(e._keepAliveInterval),e._keepAliveInterval=setInterval(i,1e3*n)},e._stopKeepAliveInterval=function(){e._keepAliveInterval&&(clearInterval(e._keepAliveInterval),delete e._keepAliveInterval)},e.disableKeepAlive=function(){delete e._keepAliveOptions,e._stopKeepAliveInterval()},e.on("stream:management:resumed",(function(){e._keepAliveOptions&&e.enableKeepAlive(e._keepAliveOptions)})),e.on("stream:start",(function(){e._keepAliveOptions&&e.enableKeepAlive(e._keepAliveOptions)}));var n=function(n,r){return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){var n,i=this;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.config.useStreamManagement){t.next=2;break}return t.abrupt("return",r());case 2:if(n=function t(n){return Object(A.__awaiter)(i,void 0,void 0,b.a.mark((function i(){return b.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:i.t0=n.type,i.next="enabled"===i.t0?3:"resumed"===i.t0?8:"failed"===i.t0?17:22;break;case 3:return i.next=5,e.sm.enabled(n);case 5:return e.features.negotiated.streamManagement=!0,e.off("sm",t),i.abrupt("return",r());case 8:return i.next=10,e.sm.resumed(n);case 10:return e.features.negotiated.streamManagement=!0,e.features.negotiated.bind=!0,e.sessionStarted=!0,e.sessionStarting=!1,e.off("sm",t),e.emit("stream:management:resumed",n),i.abrupt("return",r("break"));case 17:return i.next=19,e.sm.failed(n);case 19:e.off("sm",t),e.emit("session:end"),r();case 22:case"end":return i.stop()}}),i)})))},e.on("sm",n),e.sm.id){t.next=14;break}if(!e.features.negotiated.bind){t.next=10;break}return t.next=8,e.sm.enable();case 8:t.next=12;break;case 10:e.off("sm",n),r();case 12:t.next=21;break;case 14:if(!e.sm.id||!e.sm.allowResume){t.next=19;break}return t.next=17,e.sm.resume();case 17:t.next=21;break;case 19:e.off("sm",n),r();case 21:case"end":return t.stop()}}),t)})))};e.registerFeature("streamManagement",200,n),e.registerFeature("streamManagement",500,n),e.registerFeature("clientStateIndication",400,(function(t,n){e.features.negotiated.clientStateIndication=!0,n()}))}function fa(t){return e.from(t.replace(/</g,"&lt;"),"utf-8")}function pa(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=[],r=F(t);try{for(r.s();!(e=r.n()).done;){var i=e.value;"FORM_TYPE"!==i.name&&(i.rawValues?n.push({name:fa(i.name),values:i.rawValues.map((function(e){return fa(e)})).sort(ra)}):Array.isArray(i.value)?n.push({name:fa(i.name),values:i.value.map((function(e){return fa(e)})).sort(ra)}):!0===i.value||!1===i.value?n.push({name:fa(i.name),values:[fa(i.value?"1":"0")]}):n.push({name:fa(i.name),values:[fa(i.value||"")]}))}}catch(e){r.e(e)}finally{r.f()}n.sort((function(e,t){return ra(e.name,t.name)}));for(var a=[],o=0,s=n;o<s.length;o++){var c=s[o];a.push(c.name);var u,l=F(c.values);try{for(l.s();!(u=l.n()).done;){var f=u.value;a.push(f)}}catch(e){l.e(e)}finally{l.f()}}return a}function da(t,n){var r=[],i=e.from("<","utf8"),a=function(e){r.push(e),r.push(i)},o=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=[],r=new Set,i=F(t);try{for(i.s();!(e=i.n()).done;){var a=e.value,o=a.category,s=a.type,c=a.lang,u=a.name,l="".concat(o,"/").concat(s,"/").concat(c||"","/").concat(u||"");if(r.has(l))return null;r.add(l),n.push(fa(l))}}catch(e){i.e(e)}finally{i.f()}return n.sort(ra),n}(t.identities),s=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=[],r=new Set,i=F(t);try{for(i.s();!(e=i.n()).done;){var a=e.value;if(r.has(a))return null;r.add(a),n.push(fa(a))}}catch(e){i.e(e)}finally{i.f()}return n.sort(ra),n}(t.features),c=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=[],r=new Set,i=F(t);try{for(i.s();!(e=i.n()).done;){var a,o=e.value,s=void 0,c=F(o.fields||[]);try{for(c.s();!(a=c.n()).done;){var u=a.value;if("FORM_TYPE"===u.name&&"hidden"===u.type){if(u.rawValues&&1===u.rawValues.length){s=fa(u.rawValues[0]);break}if(u.value&&"string"==typeof u.value){s=fa(u.value);break}}}}catch(e){c.e(e)}finally{c.f()}if(s){if(r.has(s.toString()))return null;r.add(s.toString()),n.push({type:s,form:o})}}}catch(e){i.e(e)}finally{i.f()}n.sort((function(e,t){return ra(e.type,t.type)}));for(var l=[],f=0,p=n;f<p.length;f++){var d=p[f];l.push(d.type);var h,v=pa(d.form.fields),m=F(v);try{for(m.s();!(h=m.n()).done;){var g=h.value;l.push(g)}}catch(e){m.e(e)}finally{m.f()}}return l}(t.extensions);if(!o||!s||!c)return null;var u,l=F(o);try{for(l.s();!(u=l.n()).done;){a(u.value)}}catch(e){l.e(e)}finally{l.f()}var f,p=F(s);try{for(p.s();!(f=p.n()).done;){a(f.value)}}catch(e){p.e(e)}finally{p.f()}var d,h=F(c);try{for(h.s();!(d=h.n()).done;){a(d.value)}}catch(e){h.e(e)}finally{h.f()}return Ti(n).update(e.concat(r)).digest("base64")}var ha=function(){function e(){w()(this,e),this.capsAlgorithms=["sha-1"],this.features=new Map,this.identities=new Map,this.extensions=new Map,this.items=new Map,this.caps=new Map,this.features.set("",new Set),this.identities.set("",[]),this.extensions.set("",[])}return x()(e,[{key:"getNodeInfo",value:function(e){return{extensions:d()(this.extensions.get(e)||[]),features:d()(this.features.get(e)||[]),identities:d()(this.identities.get(e)||[])}}},{key:"addFeature",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.features.has(t)||this.features.set(t,new Set),this.features.get(t).add(e)}},{key:"addIdentity",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.identities.has(t)||this.identities.set(t,[]),this.identities.get(t).push(e)}},{key:"addItem",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.items.has(t)||this.items.set(t,[]),this.items.get(t).push(e)}},{key:"addExtension",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.extensions.has(t)||this.extensions.set(t,[]),this.extensions.get(t).push(e)}},{key:"updateCaps",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.capsAlgorithms,r={extensions:d()(this.extensions.get("")),features:d()(this.features.get("")),identities:d()(this.identities.get("")),type:"info"},i=F(n);try{for(i.s();!(t=i.n()).done;){var a=t.value,o=da(r,a);if(o){this.caps.set(a,{algorithm:a,node:e,value:o});var s,c="".concat(e,"#").concat(o),u=F(r.features);try{for(u.s();!(s=u.n()).done;){var l=s.value;this.addFeature(l,c)}}catch(e){u.e(e)}finally{u.f()}var f,p=F(r.identities);try{for(p.s();!(f=p.n()).done;){var h=f.value;this.addIdentity(h,c)}}catch(e){p.e(e)}finally{p.f()}var v,m=F(r.extensions);try{for(m.s();!(v=m.n()).done;){var g=v.value;this.addExtension(g,c)}}catch(e){m.e(e)}finally{m.f()}this.identities.set(c,r.identities),this.features.set(c,new Set(r.features)),this.extensions.set(c,r.extensions)}else this.caps.delete(a)}}catch(e){i.e(e)}finally{i.f()}return d()(this.caps.values())}},{key:"getCaps",value:function(){return d()(this.caps.values())}}]),e}();function va(e){var t=this;e.disco=new ha,e.disco.addFeature(En),e.disco.addFeature(In),e.disco.addIdentity({category:"client",type:"web"}),e.registerFeature("caps",100,(function(t,n){var r=xe(e.jid)||e.config.server;e.emit("disco:caps",{caps:t.legacyCapabilities||[],jid:r}),e.features.negotiated.caps=!0,n()})),e.getDiscoInfo=function(n,r){return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){var i;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.sendIQ({disco:{node:r,type:"info"},to:n,type:"get"});case 2:return i=t.sent,t.abrupt("return",Object.assign({extensions:[],features:[],identities:[]},i.disco));case 4:case"end":return t.stop()}}),t)})))},e.getDiscoItems=function(n,r){return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){var i;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.sendIQ({disco:{node:r,type:"items"},to:n,type:"get"});case 2:return i=t.sent,t.abrupt("return",Object.assign({items:[]},i.disco));case 4:case"end":return t.stop()}}),t)})))},e.updateCaps=function(){var t=e.config.capsNode||"https://stanzajs.org";return e.disco.updateCaps(t)},e.getCurrentCaps=function(){var t=e.disco.getCaps();if(t){var n="".concat(t[0].node,"#").concat(t[0].value);return{info:e.disco.getNodeInfo(n),legacyCapabilities:t}}},e.on("presence",(function(t){t.legacyCapabilities&&e.emit("disco:caps",{caps:t.legacyCapabilities,jid:t.from})})),e.on("iq:get:disco",(function(t){var n=t.disco,r=n.type,i=n.node;"info"===r&&e.sendIQResult(t,{disco:Object.assign(Object.assign({},e.disco.getNodeInfo(i||"")),{node:i,type:"info"})}),"items"===r&&e.sendIQResult(t,{disco:{items:e.disco.items.get(i||"")||[],type:"items"}})}))}var ma={Bosh:Zn,Client:gn,Component:"jabber:component:accept",Server:"jabber:server"},ga={AccountDisabled:"account-disabled",CredentialsExpired:"credentials-expired",EncryptionRequired:"encryption-required",IncorrectEncoding:"incorrect-encoding",InvalidAuthzid:"invalid-authzid",InvalidMechanism:"invalid-mechanism",MalformedRequest:"malformed-request",MechanismTooWeak:"mechanism-too-weak",NotAuthorized:"not-authorized",TemporaryAuthFailure:"temporary-auth-failure"},ya={BadFormat:"bad-format",BadNamespacePrefix:"bad-namespace-prefix",Conflict:"conflict",ConnectionTimeout:"connection-timeout",HostGone:"host-gone",HostUnknown:"host-unknown",ImproperAddressing:"improper-addressing",InternalServerError:"internal-server-error",InvalidFrom:"invalid-from",InvalidId:"invalid-id",InvalidNamespace:"invalid-namespace",InvalidXML:"invalid-xml",NotAuthorized:"not-authorized",NotWellFormed:"not-well-formed",PolicyViolation:"policy-violation",RemoteConnectionFailed:"remote-connection-failed",Reset:"reset",ResourceConstraint:"resource-constraint",RestrictedXML:"restricted-xml",SeeOtherHost:"see-other-host",SystemShutdown:"system-shutdown",UndefinedCondition:"undefined-condition",UnsupportedEncoding:"unsupported-encoding",UnsupportedStanzaType:"unsupported-stanza-type",UnsupportedVersion:"unsupported-version"},ba={BadRequest:"bad-request",Conflict:"conflict",FeatureNotImplemented:"feature-not-implemented",Forbidden:"forbidden",Gone:"gone",InternalServerError:"internal-server-error",ItemNotFound:"item-not-found",JIDMalformed:"jid-malformed",NotAcceptable:"not-acceptable",NotAllowed:"not-allowed",NotAuthorized:"not-authorized",PolicyViolation:"policy-violation",RecipientUnavailable:"recipient-unavailable",Redirect:"redirect",RegistrationRequired:"registration-required",RemoteServerNotFound:"remote-server-not-found",RemoteServerTimeout:"remote-server-timeout",ResourceConstraint:"resource-constraint",ServiceUnavailable:"service-unavailable",SubscriptionRequired:"subscription-required",UndefinedCondition:"undefined-condition",UnexpectedRequest:"unexpected-request"},_a={Available:void 0,Error:"error",Probe:"probe",Subscribe:"subscribe",Subscribed:"subscribed",Unavailable:"unavailable",Unsubscribe:"unsubscribe",Unsubscribed:"unsubscribed"},wa={Boolean:"boolean",Fixed:"fixed",Hidden:"hidden",JID:"jid-single",JIDMultiple:"jid-multi",List:"list-single",ListMultiple:"list-multi",Password:"text-private",Text:"text-single",TextMultiple:"text-multi",TextPrivate:"text-private"},Sa={AffiliationChanged:"101",AffiliationLost:"321",Banned:"301",Error:"333",Kicked:"307",LoggingDisabled:"171",LoggingEnabled:"170",MembershipLost:"322",NickChanged:"303",NickChangedByService:"210",NonAnonymous:"172",NonAnonymousRoom:"100",NonPrivacyConfigurationChange:"104",RoomCreated:"201",SelfPresence:"110",SemiAnonymous:"173",Shutdown:"332",UnavailableMembersListed:"102",UnavailableMembersNotListed:"103"},xa={ClosedNode:"closed-node",ConfigurationRequired:"configuration-required",InvalidJID:"invalid-jid",InvalidOptions:"invalid-options",InvalidPayload:"invalid-payload",InvalidSubscriptionId:"invalid-subid",ItemForbidden:"item-forbidden",ItemRequired:"item-required",JIDRequired:"jid-required",MaxItemsExceeded:"max-items-exceeded",MaxNodesExceeded:"max-nodes-exceeded",NodeIdRequired:"nodeid-required",NotInRosterGroup:"not-in-roster-group",NotSubscribed:"not-subscribed",PayloadRequired:"payload-required",PayloadTooBig:"payload-too-big",PendingSubscription:"pending-subscription",PresenceSubscriptionRequired:"presence-subscription-required",SubscriptionIdRequired:"subid-required",TooManySubscriptions:"too-many-subscriptions",Unsupported:"unsupported",UnsupportedAccessModel:"unsupported-access-model"},ka={Active:"active",Composing:"composing",Gone:"gone",Inactive:"inactive",Paused:"paused"},Ta={Initiator:"initiator",Responder:"responder"},ja={Inactive:"inactive",Receive:"recvonly",Send:"sendonly",SendReceive:"sendrecv"},Ea={Both:"both",Initiator:"initiator",None:"none",Responder:"responder"},Ia={ContentAccept:"content-accept",ContentAdd:"content-add",ContentModify:"content-modify",ContentReject:"content-reject",ContentRemove:"content-remove",DescriptionInfo:"description-info",SecurityInfo:"security-info",SessionAccept:"session-accept",SessionInfo:"session-info",SessionInitiate:"session-initiate",SessionTerminate:"session-terminate",TransportAccept:"transport-accept",TransportInfo:"transport-info",TransportReject:"transport-reject",TransportReplace:"transport-replace"},Oa={OutOfOrder:"out-of-order",TieBreak:"tie-break",UnknownContent:"unknown-content",UnknownSession:"unknown-session",UnsupportedInfo:"unsupported-info"},Aa={AlternativeSession:"alternative-session",Busy:"busy",Cancel:"cancel",ConnectivityError:"connectivity-error",Decline:"decline",Expired:"expired",FailedApplication:"failed-application",FailedTransport:"failed-transport",GeneralError:"general-error",Gone:"gone",IncompatibleParameters:"incompatible-parameters",MediaError:"media-error",SecurityError:"security-error",Success:"success",Timeout:"timeout",UnsupportedApplications:"unsupported-applications",UnsupportedTransports:"unsupported-transports"},Ra=["afraid","amazed","amorous","angry","annoyed","anxious","aroused","ashamed","bored","brave","calm","cautious","cold","confident","confused","contemplative","contented","cranky","crazy","creative","curious","dejected","depressed","disappointed","disgusted","dismayed","distracted","embarrassed","envious","excited","flirtatious","frustrated","grateful","grieving","grumpy","guilty","happy","hopeful","hot","humbled","humiliated","hungry","hurt","impressed","in_awe","in_love","indignant","interested","intoxicated","invincible","jealous","lonely","lost","lucky","mean","moody","nervous","neutral","offended","outraged","playful","proud","relaxed","relieved","remorseful","restless","sad","sarcastic","satisfied","serious","shocked","shy","sick","sleepy","spontaneous","stressed","strong","surprised","thankful","thirsty","tired","undefined","weak","worried"],Na=["doing_chores","drinking","eating","exercising","grooming","having_appointment","inactive","relaxing","talking","traveling","undefined","working"],Ca=["at_the_spa","brushing_teeth","buying_groceries","cleaning","coding","commuting","cooking","cycling","cycling","dancing","day_off","doing_maintenance","doing_the_dishes","doing_the_laundry","driving","fishing","gaming","gardening","getting_a_haircut","going_out","hanging_out","having_a_beer","having_a_snack","having_breakfast","having_coffee","having_dinner","having_lunch","having_tea","hiding","hiking","in_a_car","in_a_meeting","in_real_life","jogging","on_a_bus","on_a_plane","on_a_train","on_a_trip","on_the_phone","on_vacation","on_video_phone","other","partying","playing_sports","praying","reading","rehearsing","running","running_an_errand","scheduled_holiday","shaving","shopping","skiing","sleeping","smoking","socializing","studying","sunbathing","swimming","taking_a_bath","taking_a_shower","thinking","walking","walking_the_dog","watching_a_movie","watching_tv","working_out","writing"],Pa=function(e,t){return"{".concat(e,"}").concat(t)},La=Pa(sr,"mute"),qa=Pa(sr,"unmute"),Fa=Pa(sr,"hold"),Ma=Pa(sr,"unhold"),Da=Pa(sr,"active"),Ba=Pa(sr,"ringing"),Ua=Pa(hr,"checksum"),za=Pa(hr,"received");function Ja(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ea.Both,n=e===Ta.Initiator;switch(t){case Ea.Initiator:return n?ja.Send:ja.Receive;case Ea.Responder:return n?ja.Receive:ja.Send;case Ea.Both:return ja.SendReceive}return ja.Inactive}function Ga(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ja.SendReceive,n=e===Ta.Initiator;switch(t){case ja.Send:return n?Ea.Initiator:Ea.Responder;case ja.Receive:return n?Ea.Responder:Ea.Initiator;case ja.SendReceive:return Ea.Both}return Ea.None}var Va=Object.freeze({__proto__:null,VERSION:"12.17.2",StreamType:ma,SASLFailureCondition:ga,StreamErrorCondition:ya,StanzaErrorCondition:ba,MessageType:{Chat:"chat",Error:"error",GroupChat:"groupchat",Headline:"headline",Normal:"normal"},PresenceType:_a,IQType:{Error:"error",Get:"get",Result:"result",Set:"set"},PresenceShow:{Away:"away",Chat:"chat",DoNotDisturb:"dnd",ExtendedAway:"xa"},RosterSubscription:{Both:"both",From:"from",None:"none",ReceivePresenceOnly:"to",Remove:"remove",SendAndReceivePresence:"both",SendPresenceOnly:"from",To:"to"},DataFormType:{Cancel:"cancel",Form:"form",Result:"result",Submit:"submit"},DataFormFieldType:wa,MUCAffiliation:{Admin:"admin",Banned:"outcast",Member:"member",None:"none",Outcast:"outcast",Owner:"owner"},MUCRole:{Moderator:"moderator",None:"none",Participant:"participant",Visitor:"visitor"},MUCStatusCode:Sa,PubsubErrorCondition:xa,ChatState:ka,JingleSessionRole:Ta,JingleApplicationDirection:ja,JingleContentSenders:Ea,JingleAction:Ia,JingleErrorCondition:Oa,JingleReasonCondition:Aa,USER_MOODS:Ra,USER_ACTIVITY_GENERAL:Na,USER_ACTIVITY_SPECIFIC:Ca,JINGLE_INFO:Pa,JINGLE_INFO_MUTE:La,JINGLE_INFO_UNMUTE:qa,JINGLE_INFO_HOLD:Fa,JINGLE_INFO_UNHOLD:Ma,JINGLE_INFO_ACTIVE:Da,JINGLE_INFO_RINGING:Ba,JINGLE_INFO_CHECKSUM_5:Ua,JINGLE_INFO_RECEIVED_5:za,sendersToDirection:Ja,directionToSenders:Ga});function Ha(e){var t=this;e.disco.addFeature("jid\\20escaping"),e.disco.addFeature(pr),e.disco.addFeature("urn:xmpp:eme:0"),e.disco.addFeature(wr),e.disco.addFeature(Sr),e.disco.addFeature("urn:xmpp:hashes:1"),e.disco.addFeature("urn:xmpp:idle:1"),e.disco.addFeature(Or),e.disco.addFeature(zn),e.disco.addFeature("urn:xmpp:psa"),e.disco.addFeature("urn:xmpp:reference:0"),e.disco.addFeature(er),e.disco.addFeature(Tn),e.disco.addFeature("urn:xmpp:media-element"),e.disco.addFeature($n),e.disco.addFeature(nr);var n,r=F(["sha-1","sha-256","sha-512","md5"]);try{for(r.s();!(n=r.n()).done;){var i=n.value;e.disco.addFeature(xr(i))}}catch(e){r.e(e)}finally{r.f()}e.disco.addFeature("urn:xmpp:time"),e.disco.addFeature("jabber:iq:version"),e.on("iq:get:softwareVersion",(function(t){return e.sendIQResult(t,{softwareVersion:e.config.softwareVersion||{name:"stanzajs.org",version:"12.17.2"}})})),e.on("iq:get:time",(function(t){var n=new Date;e.sendIQResult(t,{time:{tzo:n.getTimezoneOffset(),utc:n}})})),e.getSoftwareVersion=function(n){return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){var r;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.sendIQ({softwareVersion:{},to:n,type:"get"});case 2:return r=t.sent,t.abrupt("return",r.softwareVersion);case 4:case"end":return t.stop()}}),t)})))},e.getTime=function(n){return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){var r;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.sendIQ({time:{},to:n,type:"get"});case 2:return r=t.sent,t.abrupt("return",r.time);case 4:case"end":return t.stop()}}),t)})))},e.getLastActivity=function(n){return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){var r;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.sendIQ({lastActivity:{},to:n,type:"get"});case 2:return r=t.sent,t.abrupt("return",r.lastActivity);case 4:case"end":return t.stop()}}),t)})))}}function Wa(e){var t=this;e.features={handlers:Object.create(null),negotiated:Object.create(null),order:[]},e.registerFeature=function(t,n,r){this.features.order.push({name:t,priority:n}),this.features.order.sort((function(e,t){return e.priority-t.priority})),this.features.handlers[t]=r.bind(e)},e.on("features",(function(n){return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){var r,i,a,o,s,c,u,l,f,p,d,h,v;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:u=function(e){return new Promise((function(t){i[e](n,(function(e,n){t(e?{command:e,message:n}:null)}))}))},r=e.features.negotiated,i=e.features.handlers,a=[],o=F(e.features.order);try{for(o.s();!(s=o.n()).done;)c=s.value.name,n[c]&&i[c]&&!r[c]&&a.push(c)}catch(e){o.e(e)}finally{o.f()}l=0,f=a;case 7:if(!(l<f.length)){t.next=33;break}if(p=f[l],!r[p]){t.next=11;break}return t.abrupt("continue",30);case 11:return d="",h="",t.prev=13,t.next=16,u(p);case 16:(v=t.sent)&&(d=v.command,h=v.message||""),t.next=25;break;case 20:t.prev=20,t.t0=t.catch(13),d="disconnect",h=t.t0.message,console.error(t.t0);case 25:if(d){t.next=27;break}return t.abrupt("continue",30);case 27:return"restart"===d&&e.transport&&e.transport.restart(),"disconnect"===d&&(e.emit("stream:error",{condition:"policy-violation",text:"Failed to negotiate stream features: "+h}),e.disconnect()),t.abrupt("return");case 30:l++,t.next=7;break;case 33:case"end":return t.stop()}}),t,null,[[13,20]])})))}))}function Qa(e){return Object(A.__awaiter)(this,void 0,void 0,b.a.mark((function t(){var n;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Promise.all(e.map((function(e){return e.then((function(e){return Promise.reject(e)}),(function(e){return Promise.resolve(e)}))})));case 3:return n=t.sent,t.abrupt("return",Promise.reject(n));case 7:return t.prev=7,t.t0=t.catch(0),t.abrupt("return",Promise.resolve(t.t0));case 10:case"end":return t.stop()}}),t,null,[[0,7]])})))}function Ka(e,t){return Object(A.__awaiter)(this,void 0,void 0,b.a.mark((function n(){var r,i,a=this;return b.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return"string"==typeof t&&(t={host:t}),r=Object.assign({json:!0,ssl:!0,xrd:!0},t),i=r.ssl?"https://":"http://",n.abrupt("return",Qa([Ai("".concat(i).concat(r.host,"/.well-known/host-meta.json")).then((function(e){return Object(A.__awaiter)(a,void 0,void 0,b.a.mark((function t(){return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.ok){t.next=2;break}throw new Error("could-not-fetch-json");case 2:return t.abrupt("return",e.json());case 3:case"end":return t.stop()}}),t)})))})),Ai("".concat(i).concat(r.host,"/.well-known/host-meta")).then((function(t){return Object(A.__awaiter)(a,void 0,void 0,b.a.mark((function n(){var r,i;return b.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(t.ok){n.next=2;break}throw new Error("could-not-fetch-xml");case 2:return n.next=4,t.text();case 4:if(r=n.sent,!(i=tt(r))){n.next=8;break}return n.abrupt("return",e.import(i));case 8:case"end":return n.stop()}}),n)})))}))]));case 4:case"end":return n.stop()}}),n)})))}function Ya(e,t){var n=this;e.discoverBindings=function(e){return Object(A.__awaiter)(n,void 0,void 0,b.a.mark((function n(){var r,i,a,o,s,c;return b.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,Ka(t,e);case 3:r=n.sent,i={bosh:[],websocket:[]},a=r.links||[],o=F(a);try{for(o.s();!(s=o.n()).done;)(c=s.value).href&&"urn:xmpp:alt-connections:websocket"===c.rel&&i.websocket.push(c.href),c.href&&"urn:xmpp:alt-connections:xbosh"===c.rel&&i.bosh.push(c.href)}catch(e){o.e(e)}finally{o.f()}return n.abrupt("return",i);case 11:return n.prev=11,n.t0=n.catch(0),n.abrupt("return",{});case 14:case"end":return n.stop()}}),n,null,[[0,11]])})))}}function Xa(e){var t=q.getMediaSections(e),n=q.getDescription(e),r={groups:[],media:[]};q.matchPrefix(n,"a=ice-lite").length>0&&(r.iceLite=!0);var i,a=F(q.matchPrefix(n,"a=group:"));try{for(a.s();!(i=a.n()).done;){var o=i.value.split(" "),s=o.shift().substr(8);r.groups.push({mids:o,semantics:s})}}catch(e){a.e(e)}finally{a.f()}var c,u=F(t);try{for(u.s();!(c=u.n()).done;){var l=c.value,f=q.getKind(l),p=q.isRejected(l),d=q.parseMLine(l),h={direction:q.getDirection(l,n),kind:f,mid:q.getMid(l),protocol:d.protocol};if(p||(h.iceParameters=q.getIceParameters(l,n),h.dtlsParameters=q.getDtlsParameters(l,n),h.setup=q.matchPrefix(l,"a=setup:")[0].substr(8),r.iceLite&&(h.iceParameters.iceLite=!0)),"audio"===f||"video"===f){h.rtpParameters=q.parseRtpParameters(l),h.rtpEncodingParameters=q.parseRtpEncodingParameters(l),h.rtcpParameters=q.parseRtcpParameters(l);var v=q.parseMsid(l);h.streams=v?[v]:[]}else"application"===f&&(h.sctp=q.parseSctpDescription(l));h.candidates=q.matchPrefix(l,"a=candidate:").map(q.parseCandidate),r.media.push(h)}}catch(e){u.e(e)}finally{u.f()}return r}function $a(e){var t=[];t.push(q.writeSessionBoilerplate(e.sessionId,e.sessionVersion),"a=msid-semantic:WMS *\r\n"),(e.iceLite||e.media.filter((function(e){return e.iceParameters&&e.iceParameters.iceLite})).length>0)&&t.push("a=ice-lite\r\n");var n,r=F(e.groups||[]);try{for(r.s();!(n=r.n()).done;){var i=n.value;t.push("a=group:".concat(i.semantics," ").concat(i.mids.join(" "),"\r\n"))}}catch(e){r.e(e)}finally{r.f()}var a,o=F(e.media||[]);try{for(o.s();!(a=o.n()).done;){var s=a.value,c=!(s.iceParameters&&s.dtlsParameters);if("application"===s.kind&&s.sctp)t.push(q.writeSctpDescription(s,s.sctp));else if(s.rtpParameters){var u=q.writeRtpDescription(s.kind,s.rtpParameters);c&&(u=u.replace("m=".concat(s.kind," 9 "),"m=".concat(s.kind," 0 "))),t.push(u),t.push("a=".concat(s.direction||"sendrecv","\r\n"));var l,f=F(s.streams||[]);try{for(f.s();!(l=f.n()).done;){var p=l.value;t.push("a=msid:".concat(p.stream," ").concat(p.track,"\r\n"))}}catch(e){f.e(e)}finally{f.f()}if(s.rtcpParameters&&(t.push(q.writeRtcpParameters(s.rtcpParameters)),s.rtcpParameters.cname&&s.rtpEncodingParameters&&s.rtpEncodingParameters[0].rtx)){var d=s.rtpEncodingParameters[0];t.push("a=ssrc-group:FID ".concat(d.ssrc," ").concat(d.rtx.ssrc,"\r\n")),t.push("a=ssrc:".concat(d.rtx.ssrc," cname:").concat(s.rtcpParameters.cname,"\r\n"))}}if(void 0!==s.mid&&t.push("a=mid:".concat(s.mid,"\r\n")),s.iceParameters&&t.push(q.writeIceParameters({usernameFragment:s.iceParameters.usernameFragment,password:s.iceParameters.password})),s.dtlsParameters&&s.setup&&t.push(q.writeDtlsParameters(s.dtlsParameters,s.setup)),s.candidates&&s.candidates.length){var h,v=F(s.candidates);try{for(v.s();!(h=v.n()).done;){var m=h.value;t.push("a=".concat(q.writeCandidate(m),"\r\n"))}}catch(e){v.e(e)}finally{v.f()}}}}catch(e){o.e(e)}finally{o.f()}return t.join("")}function Za(e,t){var n=e.rtpParameters,r=e.rtcpParameters||{},i=e.rtpEncodingParameters||[],a=!1;i&&i.length&&(a=!!i[0].ssrc);var o,s={applicationType:or,codecs:[],headerExtensions:[],media:e.kind,rtcpMux:r.mux,rtcpReducedSize:r.reducedSize,sourceGroups:[],sources:[],ssrc:a?i[0].ssrc.toString():void 0,streams:[]},c=F(n.headerExtensions||[]);try{for(c.s();!(o=c.n()).done;){var u=o.value,l={id:u.id,uri:u.uri};u.direction&&"sendrecv"!==u.direction&&(l.senders=Ga(t,u.direction)),s.headerExtensions.push(l)}}catch(e){c.e(e)}finally{c.f()}r.ssrc&&r.cname&&(s.sources=[{parameters:{cname:r.cname},ssrc:r.ssrc.toString()}]),a&&i[0]&&i[0].rtx&&(s.sourceGroups=[{semantics:"FID",sources:[i[0].ssrc.toString(),i[0].rtx.ssrc.toString()]}]);var f,p=F(e.streams||[]);try{for(p.s();!(f=p.n()).done;){var d=f.value;s.streams.push({id:d.stream,track:d.track})}}catch(e){p.e(e)}finally{p.f()}var h,v=F(n.codecs||[]);try{for(v.s();!(h=v.n()).done;){var m=h.value,g={channels:m.channels,clockRate:m.clockRate,id:m.payloadType.toString(),name:m.name,parameters:m.parameters,rtcpFeedback:m.rtcpFeedback};m.maxptime&&(g.maxptime=m.maxptime),m.parameters&&m.parameters.ptime&&(g.ptime=parseInt(m.parameters.ptime,10)),s.codecs.push(g)}}catch(e){v.e(e)}finally{v.f()}return s}function eo(e){return{component:"rtp"===e.component?1:"rtcp"===e.component?2:e.component,foundation:e.foundation,generation:void 0,id:void 0,ip:e.ip,network:void 0,port:e.port,priority:e.priority,protocol:e.protocol,relatedAddress:e.relatedAddress,relatedPort:e.relatedPort,tcpType:e.tcpType,type:e.type}}function to(e){return{address:e.ip,component:1===e.component?"rtp":2===e.component?"rtcp":e.component,foundation:e.foundation,ip:e.ip,port:e.port,priority:e.priority,protocol:e.protocol,relatedAddress:e.relatedAddress,relatedPort:e.relatedPort,tcpType:e.tcpType,type:e.type}}function no(e,t){var n=e.iceParameters,r=e.dtlsParameters,i={candidates:[],transportType:t};n&&(i.usernameFragment=n.usernameFragment,i.password=n.password,n.iceLite&&(i.iceLite=!0)),r&&(i.fingerprints=r.fingerprints.map((function(t){return{algorithm:t.algorithm,setup:e.setup,value:t.value}}))),e.sctp&&(i.sctp=e.sctp);var a,o=F(e.candidates||[]);try{for(o.s();!(a=o.n()).done;){var s=a.value;i.candidates.push(eo(s))}}catch(e){o.e(e)}finally{o.f()}return i}function ro(e,t,n){return{contents:e.media.map((function(e){return{application:"audio"===e.kind||"video"===e.kind?Za(e,t):{applicationType:"datachannel",protocol:e.protocol},creator:Ta.Initiator,name:e.mid,senders:Ga(t,e.direction),transport:no(e,n)}})),groups:e.groups?e.groups.map((function(e){return{contents:e.mids,semantics:e.semantics}})):[]}}function io(e,t){var n=e.application||{},r=e.transport,i=n&&n.applicationType===or,a={direction:Ja(t,e.senders),kind:n.media||"application",mid:e.name,protocol:i?"UDP/TLS/RTP/SAVPF":"UDP/DTLS/SCTP"};if(i){if(a.rtcpParameters={compound:!n.rtcpReducedSize,mux:n.rtcpMux,reducedSize:n.rtcpReducedSize},n.sources&&n.sources.length){var o=n.sources[0];a.rtcpParameters.ssrc=parseInt(o.ssrc,10),o.parameters&&(a.rtcpParameters.cname=o.parameters.cname)}if(a.rtpParameters={codecs:[],fecMechanisms:[],headerExtensions:[],rtcp:[]},n.streams){a.streams=[];var s,c=F(n.streams);try{for(c.s();!(s=c.n()).done;){var u=s.value;a.streams.push({stream:u.id,track:u.track})}}catch(e){c.e(e)}finally{c.f()}}if(n.ssrc&&(a.rtpEncodingParameters=[{ssrc:parseInt(n.ssrc,10)}],n.sourceGroups&&n.sourceGroups.length)){var l=n.sourceGroups[0];a.rtpEncodingParameters[0].rtx={ssrc:parseInt(l.sources[1],10)}}var f,p=!1,d=!1,h=F(n.codecs||[]);try{for(h.s();!(f=h.n()).done;){var v,m=f.value,g=m.parameters||{},y=[],b=F(m.rtcpFeedback||[]);try{for(b.s();!(v=b.n()).done;){var _=v.value;y.push({parameter:_.parameter,type:_.type})}}catch(e){b.e(e)}finally{b.f()}if("red"===m.name||"ulpfec"===m.name){p=p||"red"===m.name,d=d||"ulpfec"===m.name;var w=m.name.toUpperCase();a.rtpParameters.fecMechanisms.includes(w)||a.rtpParameters.fecMechanisms.push(w)}a.rtpParameters.codecs.push({channels:m.channels,clockRate:m.clockRate,name:m.name,numChannels:m.channels,parameters:g,payloadType:parseInt(m.id,10),rtcpFeedback:y})}}catch(e){h.e(e)}finally{h.f()}var S,x=F(n.headerExtensions||[]);try{for(x.s();!(S=x.n()).done;){var k=S.value;a.rtpParameters.headerExtensions.push({direction:Ja(t,k.senders||"both"),id:k.id,uri:k.uri})}}catch(e){x.e(e)}finally{x.f()}}if(r){if(r.usernameFragment&&r.password&&(a.iceParameters={password:r.password,usernameFragment:r.usernameFragment},r.iceLite&&(a.iceParameters.iceLite=!0)),r.fingerprints&&r.fingerprints.length){a.dtlsParameters={fingerprints:[],role:"auto"};var T,j=F(r.fingerprints);try{for(j.s();!(T=j.n()).done;){var E=T.value;a.dtlsParameters.fingerprints.push({algorithm:E.algorithm,value:E.value})}}catch(e){j.e(e)}finally{j.f()}r.sctp&&(a.sctp=r.sctp),a.setup=r.fingerprints[0].setup}a.candidates=(r.candidates||[]).map(to)}return a}function ao(e,t){var n,r={groups:[],media:[]},i=F(e.groups||[]);try{for(i.s();!(n=i.n()).done;){var a=n.value;r.groups.push({mids:a.contents,semantics:a.semantics})}}catch(e){i.e(e)}finally{i.f()}var o,s=F(e.contents||[]);try{for(s.s();!(o=s.n()).done;){var c=o.value;r.media.push(io(c,t))}}catch(e){s.e(e)}finally{s.f()}return r}var oo={condition:ba.BadRequest},so={condition:ba.FeatureNotImplemented,jingleError:Oa.UnsupportedInfo,type:"modify"},co=function(){function e(t){var n=this;w()(this,e),this.parent=t.parent,this.sid=t.sid||ia(),this.peerID=t.peerID,this.role=t.initiator?Ta.Initiator:Ta.Responder,this._sessionState="starting",this._connectionState="starting",this.pendingApplicationTypes=t.applicationTypes||[],this.pendingAction=void 0,this.processingQueue=Object(R.priorityQueue)((function(e,t){return Object(A.__awaiter)(n,void 0,void 0,b.a.mark((function n(){var r,i,a,o,s=this;return b.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if("ended"!==this.state){n.next=4;break}return"local"===e.type&&e.reject&&e.reject(new Error("Session ended")),t&&t(),n.abrupt("return");case 4:if("local"!==e.type){n.next=18;break}return this._log("debug","Processing local action:",e.name),n.prev=6,n.next=9,e.handler();case 9:r=n.sent,e.resolve(r),n.next=16;break;case 13:n.prev=13,n.t0=n.catch(6),e.reject(n.t0);case 16:return t&&t(),n.abrupt("return");case 18:return i=e.action,a=e.changes,o=e.cb,this._log("debug","Processing remote action:",i),n.abrupt("return",new Promise((function(e){var n=function(n,r){o(n,r),t&&t(),e()};switch(i){case Ia.ContentAccept:return s.onContentAccept(a,n);case Ia.ContentAdd:return s.onContentAdd(a,n);case Ia.ContentModify:return s.onContentModify(a,n);case Ia.ContentReject:return s.onContentReject(a,n);case Ia.ContentRemove:return s.onContentRemove(a,n);case Ia.DescriptionInfo:return s.onDescriptionInfo(a,n);case Ia.SecurityInfo:return s.onSecurityInfo(a,n);case Ia.SessionAccept:return s.onSessionAccept(a,n);case Ia.SessionInfo:return s.onSessionInfo(a,n);case Ia.SessionInitiate:return s.onSessionInitiate(a,n);case Ia.SessionTerminate:return s.onSessionTerminate(a,n);case Ia.TransportAccept:return s.onTransportAccept(a,n);case Ia.TransportInfo:return s.onTransportInfo(a,n);case Ia.TransportReject:return s.onTransportReject(a,n);case Ia.TransportReplace:return s.onTransportReplace(a,n);default:s._log("error","Invalid or unsupported action: "+i),n({condition:ba.BadRequest})}})));case 21:case"end":return n.stop()}}),n,this,[[6,13]])})))}),1)}return x()(e,[{key:"send",value:function(e,t){(t=t||{}).sid=this.sid,t.action=e,new Set([Ia.ContentAccept,Ia.ContentAdd,Ia.ContentModify,Ia.ContentReject,Ia.ContentRemove,Ia.SessionAccept,Ia.SessionInitiate,Ia.TransportAccept,Ia.TransportReject,Ia.TransportReplace]).has(e)?this.pendingAction=e:this.pendingAction=void 0,this.parent.signal(this,{id:ia(),jingle:t,to:this.peerID,type:"set"})}},{key:"processLocal",value:function(e,t){var n=this;return new Promise((function(r,i){n.processingQueue.push({handler:t,name:e,reject:i,resolve:r,type:"local"},1)}))}},{key:"process",value:function(e,t,n){this.processingQueue.push({action:e,cb:n,changes:t,type:"remote"},2)}},{key:"start",value:function(e,t){this._log("error","Can not start base sessions"),this.end("unsupported-applications",!0)}},{key:"accept",value:function(e,t){this._log("error","Can not accept base sessions"),this.end("unsupported-applications")}},{key:"cancel",value:function(){this.end("cancel")}},{key:"decline",value:function(){this.end("decline")}},{key:"end",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"success",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.state="ended",this.processingQueue.kill(),"string"==typeof e&&(e={condition:e}),t||this.send("session-terminate",{reason:e}),this.parent.emit("terminated",this,e),this.parent.forgetSession(this)}},{key:"_log",value:function(e,t){if(this.parent){var n,r;t=this.sid+": "+t;for(var i=arguments.length,a=new Array(i>2?i-2:0),o=2;o<i;o++)a[o-2]=arguments[o];(n=this.parent).emit.apply(n,["log",e,t].concat(a)),(r=this.parent).emit.apply(r,["log:"+e,t].concat(a))}}},{key:"onSessionInitiate",value:function(e,t){t()}},{key:"onSessionAccept",value:function(e,t){t()}},{key:"onSessionTerminate",value:function(e,t){this.end(e.reason,!0),t()}},{key:"onSessionInfo",value:function(e,t){e.info?t(so):t()}},{key:"onSecurityInfo",value:function(e,t){t(so)}},{key:"onDescriptionInfo",value:function(e,t){t(so)}},{key:"onTransportInfo",value:function(e,t){t(so)}},{key:"onContentAdd",value:function(e,t){t(),this.send(Ia.ContentReject,{reason:{condition:Aa.FailedApplication,text:"content-add is not supported"}})}},{key:"onContentAccept",value:function(e,t){t(oo)}},{key:"onContentReject",value:function(e,t){t(oo)}},{key:"onContentModify",value:function(e,t){t(oo)}},{key:"onContentRemove",value:function(e,t){t(oo)}},{key:"onTransportReplace",value:function(e,t){t(),this.send(Ia.TransportReject,{reason:{condition:Aa.FailedTransport,text:"transport-replace is not supported"}})}},{key:"onTransportAccept",value:function(e,t){t(oo)}},{key:"onTransportReject",value:function(e,t){t(oo)}},{key:"isInitiator",get:function(){return this.role===Ta.Initiator}},{key:"peerRole",get:function(){return this.isInitiator?Ta.Responder:Ta.Initiator}},{key:"state",get:function(){return this._sessionState},set:function(e){e!==this._sessionState&&(this._log("info","Changing session state to: "+e),this._sessionState=e,this.parent&&this.parent.emit("sessionState",this,e))}},{key:"connectionState",get:function(){return this._connectionState},set:function(e){e!==this._connectionState&&(this._log("info","Changing connection state to: "+e),this._connectionState=e,this.parent&&this.parent.emit("connectionState",this,e))}}]),e}(),uo=function(e){T()(n,e);var t=D(n);function n(e){var r;return w()(this,n),(r=t.call(this,e)).bitrateLimit=0,r.candidateBuffer=[],r.transportType=ur,r.restartingIce=!1,r.usingRelay=!1,r.maxRelayBandwidth=e.maxRelayBandwidth,r.pc=r.parent.createPeerConnection(a()(r),Object.assign(Object.assign({},e.config),{iceServers:e.iceServers})),r.pc.oniceconnectionstatechange=function(){r.onIceStateChange()},r.pc.onicecandidate=function(e){e.candidate?r.onIceCandidate(e):r.onIceEndOfCandidates()},r.restrictRelayBandwidth(),r}return x()(n,[{key:"end",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"success",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.pc.close(),s()(O()(n.prototype),"end",this).call(this,e,t)}},{key:"restartIce",value:function(){return Object(A.__awaiter)(this,void 0,void 0,b.a.mark((function e(){var t=this;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.isInitiator){e.next=2;break}return e.abrupt("return");case 2:return void 0!==this._maybeRestartingIce&&clearTimeout(this._maybeRestartingIce),this.restartingIce=!0,e.prev=4,e.next=7,this.processLocal("restart-ice",(function(){return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function e(){var t,n,r=this;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.pc.createOffer({iceRestart:!0});case 2:return t=e.sent,n=Xa(t.sdp),this.send(Ia.TransportInfo,{contents:n.media.map((function(e){return{creator:Ta.Initiator,name:e.mid,transport:no(e,r.transportType)}})),sid:this.sid}),e.next=7,this.pc.setLocalDescription(t);case 7:case"end":return e.stop()}}),e,this)})))}));case 7:e.next=13;break;case 9:e.prev=9,e.t0=e.catch(4),this._log("error","Could not create WebRTC offer",e.t0),this.end(Aa.FailedTransport,!0);case 13:case"end":return e.stop()}}),e,this,[[4,9]])})))}},{key:"setMaximumBitrate",value:function(e){return Object(A.__awaiter)(this,void 0,void 0,b.a.mark((function t(){var n,r=this;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.maximumBitrate&&(e=Math.min(e,this.maximumBitrate)),this.currentBitrate=e,(n=this.pc.getSenders().find((function(e){return!!e.track&&"video"===e.track.kind})))&&n.getParameters){t.next=5;break}return t.abrupt("return");case 5:return t.prev=5,t.next=8,this.processLocal("set-bitrate",(function(){return Object(A.__awaiter)(r,void 0,void 0,b.a.mark((function t(){var r;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(r=n.getParameters()).encodings&&r.encodings.length||(r.encodings=[{}]),0===e?delete r.encodings[0].maxBitrate:r.encodings[0].maxBitrate=e,t.next=5,n.setParameters(r);case 5:case"end":return t.stop()}}),t)})))}));case 8:t.next=13;break;case 10:t.prev=10,t.t0=t.catch(5),this._log("error","Set maximumBitrate failed",t.t0);case 13:case"end":return t.stop()}}),t,this,[[5,10]])})))}},{key:"onTransportInfo",value:function(e,t){return Object(A.__awaiter)(this,void 0,void 0,b.a.mark((function n(){var r,i,a,o,s,c,u,l,f,p,d,h,v,m,y,_=this;return b.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!(e.contents&&e.contents[0]&&e.contents[0].transport.gatheringComplete)){n.next=18;break}if(r={sdpMid:e.contents[0].name,candidate:""},n.prev=2,"stable"!==this.pc.signalingState){n.next=8;break}return n.next=6,this.pc.addIceCandidate(r);case 6:n.next=9;break;case 8:this.candidateBuffer.push(r);case 9:n.next=14;break;case 11:n.prev=11,n.t0=n.catch(2),this._log("debug","Could not add null end-of-candidate");case 14:return n.prev=14,t(),n.finish(14);case 17:return n.abrupt("return");case 18:if(!this.pc.remoteDescription){n.next=51;break}if(i=this.pc.remoteDescription,a=Xa(i.sdp),o=a.media.find((function(t){return t.mid===e.contents[0].name})),s=o.iceParameters.usernameFragment,!(c=e.contents[0].transport.usernameFragment)||s===c){n.next=51;break}u=F(e.contents.entries());try{for(u.s();!(l=u.n()).done;)f=g()(l.value,2),p=f[0],d=f[1],h=d.transport,a.media[p].iceParameters={password:h.password,usernameFragment:h.usernameFragment},a.media[p].candidates=[]}catch(e){u.e(e)}finally{u.f()}return n.prev=27,n.next=30,this.pc.setRemoteDescription({type:i.type,sdp:$a(a)});case 30:return n.next=32,this.processBufferedCandidates();case 32:if("offer"!==i.type){n.next=42;break}return n.next=35,this.pc.createAnswer();case 35:return v=n.sent,n.next=38,this.pc.setLocalDescription(v);case 38:m=Xa(v.sdp),this.send(Ia.TransportInfo,{contents:m.media.map((function(e){return{creator:Ta.Initiator,name:e.mid,transport:no(e,_.transportType)}})),sid:this.sid}),n.next=43;break;case 42:this.restartingIce=!1;case 43:n.next=51;break;case 45:return n.prev=45,n.t1=n.catch(27),this._log("error","Could not do remote ICE restart",n.t1),t(n.t1),this.end(Aa.FailedTransport),n.abrupt("return");case 51:return y=(e.contents||[]).map((function(e){var t=e.name,n=(e.transport.candidates||[]).map((function(e){return Object(A.__awaiter)(_,void 0,void 0,b.a.mark((function n(){var r;return b.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=q.writeCandidate(to(e)),!this.pc.remoteDescription||"stable"!==this.pc.signalingState){n.next=12;break}return n.prev=2,n.next=5,this.pc.addIceCandidate({sdpMid:t,candidate:r});case 5:n.next=10;break;case 7:n.prev=7,n.t0=n.catch(2),this._log("error","Could not add ICE candidate",n.t0);case 10:n.next=13;break;case 12:this.candidateBuffer.push({sdpMid:t,candidate:r});case 13:case"end":return n.stop()}}),n,this,[[2,7]])})))}));return Promise.all(n)})),n.prev=52,n.next=55,Promise.all(y);case 55:t(),n.next=62;break;case 58:n.prev=58,n.t2=n.catch(52),this._log("error","Could not process transport-info: ".concat(n.t2)),t(n.t2);case 62:case"end":return n.stop()}}),n,this,[[2,11,14,17],[27,45],[52,58]])})))}},{key:"onSessionAccept",value:function(e,t){return Object(A.__awaiter)(this,void 0,void 0,b.a.mark((function n(){var r,i;return b.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return this.state="active",r=ao(e,this.peerRole),i=$a(r),n.prev=3,n.next=6,this.pc.setRemoteDescription({type:"answer",sdp:i});case 6:return n.next=8,this.processBufferedCandidates();case 8:this.parent.emit("accepted",this,void 0),t(),n.next=16;break;case 12:n.prev=12,n.t0=n.catch(3),this._log("error","Could not process WebRTC answer: ".concat(n.t0)),t({condition:"general-error"});case 16:case"end":return n.stop()}}),n,this,[[3,12]])})))}},{key:"onSessionTerminate",value:function(e,t){this._log("info","Terminating session"),this.pc.close(),s()(O()(n.prototype),"end",this).call(this,e.reason,!0),t()}},{key:"onIceCandidate",value:function(e){if(e.candidate&&e.candidate.candidate){var t=q.parseCandidate(e.candidate.candidate),n={contents:[{creator:Ta.Initiator,name:e.candidate.sdpMid,transport:{candidates:[eo(t)],transportType:this.transportType,usernameFragment:t.usernameFragment}}]};this._log("info","Discovered new ICE candidate",n),this.send(Ia.TransportInfo,n)}}},{key:"onIceEndOfCandidates",value:function(){this._log("info","ICE end of candidates");var e=Xa(this.pc.localDescription.sdp).media[0];this.send(Ia.TransportInfo,{contents:[{creator:Ta.Initiator,name:e.mid,transport:{gatheringComplete:!0,transportType:this.transportType,usernameFragment:e.iceParameters.usernameFragment}}]})}},{key:"onIceStateChange",value:function(){switch(this.pc.iceConnectionState){case"checking":this.connectionState="connecting";break;case"completed":case"connected":this.connectionState="connected";break;case"disconnected":if("stable"===this.pc.signalingState?this.connectionState="interrupted":this.connectionState="disconnected",this.restartingIce)return void this.end(Aa.FailedTransport);this.maybeRestartIce();break;case"failed":if("failed"===this.connectionState||this.restartingIce)return void this.end(Aa.FailedTransport);this.connectionState="failed",this.restartIce();break;case"closed":this.connectionState="disconnected",this.restartingIce?this.end(Aa.FailedTransport):this.end()}}},{key:"processBufferedCandidates",value:function(){return Object(A.__awaiter)(this,void 0,void 0,b.a.mark((function e(){var t,n,r;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=F(this.candidateBuffer),e.prev=1,t.s();case 3:if((n=t.n()).done){e.next=15;break}return r=n.value,e.prev=5,e.next=8,this.pc.addIceCandidate(r);case 8:e.next=13;break;case 10:e.prev=10,e.t0=e.catch(5),this._log("error","Could not add ICE candidate",e.t0);case 13:e.next=3;break;case 15:e.next=20;break;case 17:e.prev=17,e.t1=e.catch(1),t.e(e.t1);case 20:return e.prev=20,t.f(),e.finish(20);case 23:this.candidateBuffer=[];case 24:case"end":return e.stop()}}),e,this,[[1,17,20,23],[5,10]])})))}},{key:"restrictRelayBandwidth",value:function(){var e=this;this.pc.addEventListener("iceconnectionstatechange",(function(){return Object(A.__awaiter)(e,void 0,void 0,b.a.mark((function e(){var t,n,r,i,a,o,s;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("completed"===this.pc.iceConnectionState||"connected"===this.pc.iceConnectionState){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,this.pc.getStats();case 4:if((t=e.sent).forEach((function(e){"transport"===e.type&&(n=t.get(e.selectedCandidatePairId))})),n||t.forEach((function(e){"candidate-pair"===e.type&&e.selected&&(n=e)})),n){e.next=9;break}return e.abrupt("return");case 9:r=!1,i="",a="",n.remoteCandidateId&&(o=t.get(n.remoteCandidateId))&&(a=o.candidateType),n.localCandidateId&&(s=t.get(n.localCandidateId))&&(i=s.candidateType),"relay"!==i&&"relay"!==a||(r=!0),this.usingRelay=r,this.parent.emit("iceConnectionType",this,{localCandidateType:i,relayed:r,remoteCandidateType:a}),r&&void 0!==this.maxRelayBandwidth&&(this.maximumBitrate=this.maxRelayBandwidth,this.currentBitrate?this.setMaximumBitrate(Math.min(this.currentBitrate,this.maximumBitrate)):this.setMaximumBitrate(this.maximumBitrate));case 18:case"end":return e.stop()}}),e,this)})))}))}},{key:"maybeRestartIce",value:function(){var e=this;this.isInitiator&&(void 0!==this._maybeRestartingIce&&clearTimeout(this._maybeRestartingIce),this._maybeRestartingIce=setTimeout((function(){e._maybeRestartingIce=void 0,"disconnected"===e.pc.iceConnectionState&&e.restartIce()}),2e3))}}]),n}(co),lo=function(e){T()(n,e);var t=D(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return w()(this,n),(e=t.call(this)).config=Object.assign({chunkSize:16384,hash:"sha-1"},r),e.file=void 0,e.channel=void 0,e.hash=Ti(e.config.hash),e}return x()(n,[{key:"send",value:function(e,t){var n=this;if(!this.file||!this.channel){this.file=e,this.channel=t,this.channel.binaryType="arraybuffer";var r=new FileReader,i=0,a=!1,o=function(){if(!(a||i>=e.size)){a=!0;var t=e.slice(i,i+n.config.chunkSize);r.readAsArrayBuffer(t)}};t.bufferedAmountLowThreshold=8*this.config.chunkSize,t.onbufferedamountlow=function(){o()},r.addEventListener("load",(function(t){var r=t.target.result;a=!1,i+=r.byteLength,n.channel.send(r),n.hash.update(new Uint8Array(r)),n.emit("progress",i,e.size,r),i<e.size?n.channel.bufferedAmount<=n.channel.bufferedAmountLowThreshold&&o():(n.emit("progress",e.size,e.size,null),n.emit("sentFile",{algorithm:n.config.hash,name:e.name,size:e.size,value:n.hash.digest()}))})),o()}}}]),n}(N.EventEmitter),fo=function(e){T()(n,e);var t=D(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return w()(this,n),(e=t.call(this)).config=Object.assign({hash:"sha-1"},r),e.receiveBuffer=[],e.received=0,e.channel=void 0,e.hash=Ti(e.config.hash),e}return x()(n,[{key:"receive",value:function(e,t){var n=this;this.metadata=e,this.channel=t,this.channel.binaryType="arraybuffer",this.channel.onmessage=function(e){var t=e.data.byteLength;n.received+=t,n.receiveBuffer.push(e.data),e.data&&n.hash.update(new Uint8Array(e.data)),n.emit("progress",n.received,n.metadata.size,e.data),n.received===n.metadata.size?(n.metadata.actualhash=n.hash.digest("hex"),n.emit("receivedFile",new Blob(n.receiveBuffer),n.metadata),n.receiveBuffer=[]):n.received>n.metadata.size&&(console.error("received more than expected, discarding..."),n.receiveBuffer=[])}}}]),n}(N.EventEmitter),po=function(e){T()(n,e);var t=D(n);function n(e){var r;return w()(this,n),(r=t.call(this,e)).sender=void 0,r.receiver=void 0,r.file=void 0,r}return x()(n,[{key:"start",value:function(e,t){return Object(A.__awaiter)(this,void 0,void 0,b.a.mark((function n(){var r=this;return b.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(t=t||function(){},e&&"function"!=typeof e){n.next=3;break}throw new Error("File object required");case 3:return this.state="pending",this.role="initiator",this.file=e,this.sender=new lo,this.sender.on("progress",(function(e,t){r._log("info","Send progress "+e+"/"+t)})),this.sender.on("sentFile",(function(e){r._log("info","Sent file",e.name),r.send(Ia.SessionInfo,{info:{creator:Ta.Initiator,file:{hashes:[{algorithm:e.algorithm,value:e.value}]},infoType:Ua,name:r.contentName}}),r.parent.emit("sentFile",r,e)})),this.channel=this.pc.createDataChannel("filetransfer",{ordered:!0}),this.channel.onopen=function(){r.sender.send(r.file,r.channel)},n.prev=11,n.next=14,this.processLocal(Ia.SessionInitiate,(function(){return Object(A.__awaiter)(r,void 0,void 0,b.a.mark((function t(){var n,r,i;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.pc.createOffer({offerToReceiveAudio:!1,offerToReceiveVideo:!1});case 2:return n=t.sent,r=Xa(n.sdp),i=ro(r,this.role,this.transportType),this.contentName=i.contents[0].name,i.sid=this.sid,i.action=Ia.SessionInitiate,i.contents[0].application={applicationType:hr,file:{date:e.lastModified?new Date(e.lastModified):void 0,hashesUsed:[{algorithm:"sha-1"}],name:e.name,size:e.size}},this.send("session-initiate",i),t.next=12,this.pc.setLocalDescription(n);case 12:case"end":return t.stop()}}),t,this)})))}));case 14:t(),n.next=21;break;case 17:return n.prev=17,n.t0=n.catch(11),this._log("error","Could not create WebRTC offer",n.t0),n.abrupt("return",this.end("failed-application",!0));case 21:case"end":return n.stop()}}),n,this,[[11,17]])})))}},{key:"accept",value:function(e){return Object(A.__awaiter)(this,void 0,void 0,b.a.mark((function t(){var n=this;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this._log("info","Accepted incoming session"),this.role="responder",this.state="active",e=e||function(){},t.prev=4,t.next=7,this.processLocal(Ia.SessionAccept,(function(){return Object(A.__awaiter)(n,void 0,void 0,b.a.mark((function e(){var t,n,r,i,a;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.pc.createAnswer();case 2:t=e.sent,n=Xa(t.sdp),(r=ro(n,this.role,this.transportType)).sid=this.sid,r.action="session-accept",i=F(r.contents);try{for(i.s();!(a=i.n()).done;)a.value.creator="initiator"}catch(e){i.e(e)}finally{i.f()}return this.contentName=r.contents[0].name,this.send("session-accept",r),e.next=13,this.pc.setLocalDescription(t);case 13:return e.next=15,this.processBufferedCandidates();case 15:case"end":return e.stop()}}),e,this)})))}));case 7:e(),t.next=14;break;case 10:t.prev=10,t.t0=t.catch(4),this._log("error","Could not create WebRTC answer",t.t0),this.end("failed-application");case 14:case"end":return t.stop()}}),t,this,[[4,10]])})))}},{key:"onSessionInitiate",value:function(e,t){return Object(A.__awaiter)(this,void 0,void 0,b.a.mark((function n(){var r,i,a,o,s=this;return b.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return this._log("info","Initiating incoming session"),this.role="responder",this.state="pending",this.transportType=e.contents[0].transport.transportType,r=ao(e,this.peerRole),i=$a(r),a=e.contents[0].application,o=a.file.hashesUsed?a.file.hashesUsed:a.file.hashes||[],this.receiver=new fo({hash:o[0]&&o[0].algorithm}),this.receiver.on("progress",(function(e,t){s._log("info","Receive progress "+e+"/"+t)})),this.receiver.on("receivedFile",(function(e){s.receivedFile=e,s._maybeReceivedFile()})),this.receiver.metadata=a.file,this.pc.addEventListener("datachannel",(function(e){s.channel=e.channel,s.receiver.receive(s.receiver.metadata,e.channel)})),n.prev=13,n.next=16,this.pc.setRemoteDescription({type:"offer",sdp:i});case 16:return n.next=18,this.processBufferedCandidates();case 18:t(),n.next=25;break;case 21:n.prev=21,n.t0=n.catch(13),this._log("error","Could not create WebRTC answer",n.t0),t({condition:"general-error"});case 25:case"end":return n.stop()}}),n,this,[[13,21]])})))}},{key:"onSessionInfo",value:function(e,t){var n=e.info;n&&n.file&&n.file.hashes&&(this.receiver.metadata.hashes=n.file.hashes,this.receiver.metadata.actualhash&&this._maybeReceivedFile(),t())}},{key:"_maybeReceivedFile",value:function(){if(this.receiver.metadata.hashes&&this.receiver.metadata.hashes.length){var e,t=F(this.receiver.metadata.hashes||[]);try{for(t.s();!(e=t.n()).done;){var n=e.value;if(n.value&&n.value.toString("hex")===this.receiver.metadata.actualhash)return this._log("info","File hash matches"),this.parent.emit("receivedFile",this,this.receivedFile,this.receiver.metadata),void this.end("success")}}catch(e){t.e(e)}finally{t.f()}this._log("error","File hash does not match"),this.end("media-error")}}}]),n}(uo);function ho(e){var t=e.application;if(t.streams&&t.streams.length&&t.sources&&t.sources.length){var n=t.streams[0];t.sources[0].parameters.msid="".concat(n.id," ").concat(n.track),t.sourceGroups&&t.sourceGroups.length>0&&t.sources.push({parameters:{cname:t.sources[0].parameters.cname,msid:"".concat(n.id," ").concat(n.track)},ssrc:t.sourceGroups[0].sources[1]})}}var vo=function(e){T()(n,e);var t=D(n);function n(e){var r;if(w()(this,n),(r=t.call(this,e)).includesAudio=!1,r.includesVideo=!1,r._ringing=!1,r.pc.addEventListener("track",(function(e){r.onAddTrack(e.track,e.streams[0])})),e.stream){var i,a=F(e.stream.getTracks());try{for(a.s();!(i=a.n()).done;){var o=i.value;r.addTrack(o,e.stream)}}catch(e){a.e(e)}finally{a.f()}}return r}return x()(n,[{key:"start",value:function(e,t){return Object(A.__awaiter)(this,arguments,void 0,b.a.mark((function n(){var r=this,i=arguments;return b.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return this.state="pending",1===i.length&&"function"==typeof e&&(t=e,e={}),t=t||function(){},e=e||{},this.role="initiator",this.offerOptions=e,n.prev=6,n.next=9,this.processLocal(Ia.SessionInitiate,(function(){return Object(A.__awaiter)(r,void 0,void 0,b.a.mark((function t(){var n,r,i,a,o,s;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.pc.createOffer(e);case 2:n=t.sent,r=Xa(n.sdp),(i=ro(r,this.role,this.transportType)).sid=this.sid,i.action=Ia.SessionInitiate,a=F(i.contents||[]);try{for(a.s();!(o=a.n()).done;)(s=o.value).creator="initiator",ho(s)}catch(e){a.e(e)}finally{a.f()}return t.next=11,this.pc.setLocalDescription(n);case 11:this.send("session-initiate",i);case 12:case"end":return t.stop()}}),t,this)})))}));case 9:t(),n.next=16;break;case 12:n.prev=12,n.t0=n.catch(6),this._log("error","Could not create WebRTC offer",n.t0),this.end("failed-application",!0);case 16:case"end":return n.stop()}}),n,this,[[6,12]])})))}},{key:"accept",value:function(e,t){return Object(A.__awaiter)(this,arguments,void 0,b.a.mark((function n(){var r=this,i=arguments;return b.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return 1===i.length&&"function"==typeof e&&(t=e,e={}),t=t||function(){},e=e||{},this._log("info","Accepted incoming session"),this.state="active",this.role="responder",n.prev=6,n.next=9,this.processLocal(Ia.SessionAccept,(function(){return Object(A.__awaiter)(r,void 0,void 0,b.a.mark((function t(){var n,r,i,a,o;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.pc.createAnswer(e);case 2:n=t.sent,r=Xa(n.sdp),(i=ro(r,this.role,this.transportType)).sid=this.sid,i.action=Ia.SessionAccept,a=F(i.contents||[]);try{for(a.s();!(o=a.n()).done;)o.value.creator="initiator"}catch(e){a.e(e)}finally{a.f()}return t.next=11,this.pc.setLocalDescription(n);case 11:return t.next=13,this.processBufferedCandidates();case 13:this.send("session-accept",i);case 14:case"end":return t.stop()}}),t,this)})))}));case 9:t(),n.next=16;break;case 12:n.prev=12,n.t0=n.catch(6),this._log("error","Could not create WebRTC answer",n.t0),this.end("failed-application");case 16:case"end":return n.stop()}}),n,this,[[6,12]])})))}},{key:"end",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"success",r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=F(this.pc.getReceivers());try{for(i.s();!(e=i.n()).done;){var a=e.value;this.onRemoveTrack(a.track)}}catch(e){i.e(e)}finally{i.f()}s()(O()(n.prototype),"end",this).call(this,t,r)}},{key:"ring",value:function(){var e=this;return this.processLocal("ring",(function(){return Object(A.__awaiter)(e,void 0,void 0,b.a.mark((function e(){return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this._log("info","Ringing on incoming session"),this.ringing=!0,this.send(Ia.SessionInfo,{info:{infoType:Ba}});case 3:case"end":return e.stop()}}),e,this)})))}))}},{key:"mute",value:function(e,t){var n=this;return this.processLocal("mute",(function(){return Object(A.__awaiter)(n,void 0,void 0,b.a.mark((function n(){return b.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:this._log("info","Muting",t),this.send(Ia.SessionInfo,{info:{creator:e,infoType:La,name:t}});case 2:case"end":return n.stop()}}),n,this)})))}))}},{key:"unmute",value:function(e,t){var n=this;return this.processLocal("unmute",(function(){return Object(A.__awaiter)(n,void 0,void 0,b.a.mark((function n(){return b.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:this._log("info","Unmuting",t),this.send(Ia.SessionInfo,{info:{creator:e,infoType:qa,name:t}});case 2:case"end":return n.stop()}}),n,this)})))}))}},{key:"hold",value:function(){var e=this;return this.processLocal("hold",(function(){return Object(A.__awaiter)(e,void 0,void 0,b.a.mark((function e(){return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this._log("info","Placing on hold"),this.send("session-info",{info:{infoType:Fa}});case 2:case"end":return e.stop()}}),e,this)})))}))}},{key:"resume",value:function(){var e=this;return this.processLocal("resume",(function(){return Object(A.__awaiter)(e,void 0,void 0,b.a.mark((function e(){return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this._log("info","Resuming from hold"),this.send("session-info",{info:{infoType:Da}});case 2:case"end":return e.stop()}}),e,this)})))}))}},{key:"addTrack",value:function(e,t,n){var r=this;return"audio"===e.kind&&(this.includesAudio=!0),"video"===e.kind&&(this.includesVideo=!0),this.processLocal("addtrack",(function(){return Object(A.__awaiter)(r,void 0,void 0,b.a.mark((function r(){return b.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:this.pc.addTrack?this.pc.addTrack(e,t):this.pc.addStream(t),n&&n();case 2:case"end":return r.stop()}}),r,this)})))}))}},{key:"removeTrack",value:function(e,t){return Object(A.__awaiter)(this,void 0,void 0,b.a.mark((function n(){var r=this;return b.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",this.processLocal("removetrack",(function(){return Object(A.__awaiter)(r,void 0,void 0,b.a.mark((function n(){return b.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(this.pc.removeTrack(e),!t){n.next=3;break}return n.abrupt("return",t());case 3:case"end":return n.stop()}}),n,this)})))})));case 1:case"end":return n.stop()}}),n,this)})))}},{key:"onAddTrack",value:function(e,t){this._log("info","Track added"),this.parent.emit("peerTrackAdded",this,e,t)}},{key:"onRemoveTrack",value:function(e){this._log("info","Track removed"),this.parent.emit("peerTrackRemoved",this,e)}},{key:"onSessionInitiate",value:function(e,t){return Object(A.__awaiter)(this,void 0,void 0,b.a.mark((function n(){var r,i,a,o,s;return b.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:this._log("info","Initiating incoming session"),this.state="pending",this.role="responder",this.transportType=e.contents[0].transport.transportType,r=ao(e,this.peerRole),i=F(r.media);try{for(i.s();!(a=i.n()).done;)"audio"===(o=a.value).kind&&(this.includesAudio=!0),"video"===o.kind&&(this.includesVideo=!0),o.streams||(o.streams=[{stream:"legacy",track:o.kind}])}catch(e){i.e(e)}finally{i.f()}return s=$a(r),n.prev=8,n.next=11,this.pc.setRemoteDescription({type:"offer",sdp:s});case 11:return n.next=13,this.processBufferedCandidates();case 13:return n.abrupt("return",t());case 16:return n.prev=16,n.t0=n.catch(8),this._log("error","Could not create WebRTC answer",n.t0),n.abrupt("return",t({condition:"general-error"}));case 20:case"end":return n.stop()}}),n,this,[[8,16]])})))}},{key:"onSessionTerminate",value:function(e,t){var r,i=F(this.pc.getReceivers());try{for(i.s();!(r=i.n()).done;){var a=r.value;this.onRemoveTrack(a.track)}}catch(e){i.e(e)}finally{i.f()}s()(O()(n.prototype),"onSessionTerminate",this).call(this,e,t)}},{key:"onSessionInfo",value:function(e,t){var n=e.info||{infoType:""};switch(n.infoType){case Ba:return this._log("info","Outgoing session is ringing"),this.ringing=!0,this.parent.emit("ringing",this),t();case Fa:return this._log("info","On hold"),this.parent.emit("hold",this),t();case Ma:case Da:return this._log("info","Resuming from hold"),this.parent.emit("resumed",this),t();case La:return this._log("info","Muting",n),this.parent.emit("mute",this,n),t();case qa:return this._log("info","Unmuting",n),this.parent.emit("unmute",this,n),t()}return t()}},{key:"ringing",get:function(){return this._ringing},set:function(e){e!==this._ringing&&(this._ringing=e)}},{key:"streams",get:function(){return"closed"!==this.pc.signalingState?this.pc.getRemoteStreams():[]}}]),n}(uo);var mo=function(e){T()(n,e);var t=D(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return w()(this,n),r=r||{},(e=t.call(this)).selfID=r.selfID,e.sessions={},e.peers={},e.iceServers=r.iceServers||[],e.prepareSession=r.prepareSession||function(t){if(e.config.hasRTCPeerConnection)return t.applicationTypes.indexOf(or)>=0?new vo(t):t.applicationTypes.indexOf(hr)>=0?new po(t):void 0},e.performTieBreak=r.performTieBreak||function(e,t){var n=(t.jingle.contents||[]).map((function(e){if(e.application)return e.application.applicationType}));return(e.pendingApplicationTypes||[]).filter((function(e){return n.includes(e)})).length>0},e.createPeerConnection=r.createPeerConnection||function(e,t){if(Ni)return new Ni(t)},e.config=Object.assign({debug:!1,hasRTCPeerConnection:!!Ni,peerConnectionConfig:{bundlePolicy:r.bundlePolicy||"balanced",iceTransportPolicy:r.iceTransportPolicy||"all",rtcpMuxPolicy:r.rtcpMuxPolicy||"require",sdpSemantics:r.sdpSemantics},peerConnectionConstraints:{optional:[{DtlsSrtpKeyAgreement:!0},{RtpDataChannels:!1}]}},r),e}return x()(n,[{key:"addICEServer",value:function(e){if("string"!=typeof e)if((t=e).type||!t.urls&&!t.url){var t,n=e.host||"";n.indexOf(":")>=0&&(n="[".concat(n,"]"));var r="".concat(e.type,":").concat(n);e.port&&(r+=":".concat(e.port)),e.transport&&(r+="?transport=".concat(e.transport)),"turn"===e.type||"turns"===e.type?this.iceServers.push({credential:e.password,urls:[r],username:e.username}):"stun"!==e.type&&"stuns"!==e.type||this.iceServers.push({urls:[r]})}else this.iceServers.push(e);else this.iceServers.push({urls:e})}},{key:"resetICEServers",value:function(){this.iceServers=[]}},{key:"addSession",value:function(e){e.parent=this;var t=e.sid,n=e.peerID;return this.sessions[t]=e,this.peers[n]||(this.peers[n]=[]),this.peers[n].push(e),this.emit("createdSession",e),e}},{key:"forgetSession",value:function(e){var t=this.peers[e.peerID]||[];t.length&&t.splice(t.indexOf(e),1),delete this.sessions[e.sid]}},{key:"createMediaSession",value:function(e,t,n){var r=new vo({config:this.config.peerConnectionConfig,constraints:this.config.peerConnectionConstraints,iceServers:this.iceServers,initiator:!0,maxRelayBandwidth:786432,parent:this,peerID:e,sid:t,stream:n});return this.addSession(r),r}},{key:"createFileTransferSession",value:function(e,t){var n=new po({config:this.config.peerConnectionConfig,constraints:this.config.peerConnectionConstraints,iceServers:this.iceServers,initiator:!0,maxRelayBandwidth:786432,parent:this,peerID:e,sid:t});return this.addSession(n),n}},{key:"endPeerSessions",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.peers[e]||[];delete this.peers[e];var i,a=F(r);try{for(a.s();!(i=a.n()).done;){var o=i.value;o.end(t||"gone",n)}}catch(e){a.e(e)}finally{a.f()}}},{key:"endAllSessions",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=0,r=Object.keys(this.peers);n<r.length;n++){var i=r[n];this.endPeerSessions(i,e,t)}}},{key:"process",value:function(e){var t=this,n=e.jingle?e.jingle.sid:void 0,r=n?this.sessions[n]:void 0,i=e.id,a=e.from;if(a){if("error"===e.type){if(this._log("error","Received error response",e),r&&e.error&&"unknown-session"===e.error.jingleError)return r.end("gone",!0);var o=e.error&&"tie-break"===e.error.jingleError;return r&&"pending"===r.state&&o?r.end("alternative-session",!0):void(r&&(r.pendingAction=void 0))}if("result"!==e.type){var s=e.jingle.action,c=e.jingle.contents||[],u=c.map((function(e){return e.application?e.application.applicationType:void 0})),l=c.map((function(e){return e.transport?e.transport.transportType:void 0}));if(s!==Ia.SessionInitiate){if(!r)return"session-terminate"===s?void this.emit("send",{id:i,to:a,type:"result"}):(this._log("error","Unknown session",n),this._sendError(a,i,{condition:"item-not-found",jingleError:"unknown-session"}));if(r.peerID!==a||"ended"===r.state)return this._log("error","Session has ended, or action has wrong sender"),this._sendError(a,i,{condition:"item-not-found",jingleError:"unknown-session"});if("session-accept"===s&&"pending"!==r.state)return this._log("error","Tried to accept session twice",n),this._sendError(a,i,{condition:"unexpected-request",jingleError:"out-of-order"});if("session-terminate"!==s&&s===r.pendingAction&&(this._log("error","Tie break during pending request"),r.isInitiator))return this._sendError(a,i,{condition:"conflict",jingleError:"tie-break"})}else if(r){if(r.peerID!==a)return this._log("error","Duplicate sid from new sender"),this._sendError(a,i,{condition:"service-unavailable"});if("pending"!==r.state)return this._log("error","Someone is doing this wrong"),this._sendError(a,i,{condition:"unexpected-request",jingleError:"out-of-order"});if(this.selfID&&this.selfID>r.peerID&&this.performTieBreak(r,e))return this._log("error","Tie break new session because of duplicate sids"),this._sendError(a,i,{condition:"conflict",jingleError:"tie-break"})}else if(this.peers[a]&&this.peers[a].length)for(var f=0,p=this.peers[a].length;f<p;f++){var d=this.peers[a][f];if(d&&"pending"===d.state&&n&&ra(d.sid,n)>0&&this.performTieBreak(d,e))return this._log("info","Tie break session-initiate"),this._sendError(a,i,{condition:"conflict",jingleError:"tie-break"})}if("session-initiate"===s){if(!c.length)return this._sendError(a,i,{condition:"bad-request"});r=this._createIncomingSession({applicationTypes:u,config:this.config.peerConnectionConfig,constraints:this.config.peerConnectionConstraints,iceServers:this.iceServers,initiator:!1,parent:this,peerID:a,sid:n,transportTypes:l},e)}r.process(s,e.jingle,(function(n){n?(t._log("error","Could not process request",e,n),t._sendError(a,i,n)):(t.emit("send",{id:i,to:a,type:"result"}),"session-initiate"===s&&t.emit("incoming",r))}))}else r&&(r.pendingAction=void 0)}}},{key:"signal",value:function(e,t){var n=t.jingle&&t.jingle.action;e.isInitiator&&n===Ia.SessionInitiate&&this.emit("outgoing",e),this.emit("send",t)}},{key:"_createIncomingSession",value:function(e,t){var n;return this.prepareSession&&(n=this.prepareSession(e,t)),n||(n=new co(e)),this.addSession(n),n}},{key:"_sendError",value:function(e,t,n){n.type||(n.type="cancel"),this.emit("send",{error:n,id:t,to:e,type:"error"})}},{key:"_log",value:function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];this.emit.apply(this,["log",e,t].concat(r)),this.emit.apply(this,["log:"+e,t].concat(r))}}]),n}(N.EventEmitter),go=Object.freeze({__proto__:null,Session:co,ICESession:uo,MediaSession:vo,FileSession:po,SessionManager:mo,importFromSDP:Xa,exportToSDP:$a});function yo(e){var t=this,n=!!Ni,r={advertiseAudio:n,advertiseFileTransfer:n,advertiseVideo:n,bundlePolicy:"balanced",hasRTCPeerConnection:n,iceServers:[{urls:"stun:stun.l.google.com:19302"}],iceTransportPolicy:"all",rtcpMuxPolicy:"require",trickleIce:!0},i=e.config.jingle,a=Object.assign(Object.assign({},r),i),o=e.jingle=new mo(a),s=[ar];a.hasRTCPeerConnection&&(s.push(Nr,ur,"urn:xmpp:jingle:transports:dtls-sctp:1","urn:xmpp:jingle:apps:dtls:0","urn:ietf:rfc:5888"),!1===a.trickleIce&&s.push("urn:ietf:rfc:3264"),(a.advertiseAudio||a.advertiseVideo)&&s.push(or,br,_r,"urn:ietf:rfc:5576"),a.advertiseAudio&&s.push("urn:xmpp:jingle:apps:rtp:audio"),a.advertiseVideo&&s.push("urn:xmpp:jingle:apps:rtp:video"),a.advertiseFileTransfer&&s.push("urn:xmpp:jingle:apps:file-transfer:4",hr));for(var c=0,u=s;c<u.length;c++){var l=u[c];e.disco.addFeature(l)}for(var f=function(){var t=d[p];o.on(t,(function(n,r){e.emit("jingle:"+t,n,r)}))},p=0,d=["outgoing","incoming","accepted","terminated","ringing","mute","unmute","hold","resumed"];p<d.length;p++)f();o.on("createdSession",(function(t){e.emit("jingle:created",t)})),o.on("send",(function(n){return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){var r;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,"set"!==n.type){t.next=8;break}return t.next=4,e.sendIQ(n);case 4:(r=t.sent).jingle||(r.jingle={}),r.jingle.sid=n.jingle.sid,o.process(r);case 8:"result"===n.type&&e.sendIQResult({type:"set",id:n.id,from:n.to},n),"error"===n.type&&e.sendIQError({type:"set",id:n.id,from:n.to},n),t.next=17;break;case 12:t.prev=12,t.t0=t.catch(0),t.t0.jingle||(t.t0.jingle=n.jingle),t.t0.jingle.sid=n.jingle.sid,o.process(t.t0);case 17:case"end":return t.stop()}}),t,null,[[0,12]])})))})),e.on("session:bound",(function(e){o.selfID=e})),e.on("iq:set:jingle",(function(e){o.process(e)})),e.on("unavailable",(function(e){o.endPeerSessions(e.from,void 0,!0)})),e.getServices=function(n,r,i){return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){var a,o;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.sendIQ({externalServices:{type:r,version:i},to:n,type:"get"});case 2:return a=t.sent,(o=a.externalServices).services=o.services||[],t.abrupt("return",o);case 6:case"end":return t.stop()}}),t)})))},e.getServiceCredentials=function(n,r,i,a,o){return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){var s;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.sendIQ({externalServiceCredentials:{host:r,port:a,type:i,version:o},to:n,type:"get"});case 2:return s=t.sent,t.abrupt("return",s.externalServiceCredentials);case 4:case"end":return t.stop()}}),t)})))},e.discoverICEServers=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){var r,i,a,o,s,c;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.getServices(e.config.server,void 0,n.version);case 3:r=t.sent,i=r.services||[],a=[],o=F(i);try{for(o.s();!(s=o.n()).done;)c=s.value,e.jingle.addICEServer(c)}catch(e){o.e(e)}finally{o.f()}return t.abrupt("return",a);case 11:return t.prev=11,t.t0=t.catch(0),t.abrupt("return",[]);case 14:case"end":return t.stop()}}),t,null,[[0,11]])})))}}function bo(e,t){var n,r=[],i=new Map,a=F(t);try{for(a.s();!(n=a.n()).done;){var o=n.value;o.name&&i.set(o.name,o)}}catch(e){a.e(e)}finally{a.f()}var s,c=new Set,u=F(e);try{for(u.s();!(s=u.n()).done;){var l=s.value;l.name&&i.has(l.name)?(r.push(Object.assign(Object.assign({},l),i.get(l.name))),c.add(l.name)):r.push(Object.assign({},l))}}catch(e){u.e(e)}finally{u.f()}var f,p=F(t);try{for(p.s();!(f=p.n()).done;){var d=f.value;(!d.name||d.name&&!c.has(d.name))&&r.push(Object.assign({},d))}}catch(e){p.e(e)}finally{p.f()}return r}var _o=Object.freeze({__proto__:null,mergeFields:bo});function wo(e){var t=this;e.getHistorySearchForm=function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){var i;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.sendIQ({archive:{type:"query",version:r.version},to:n,type:"get"});case 2:return i=t.sent,t.abrupt("return",i.archive.form);case 4:case"end":return t.stop()}}),t)})))},e.searchHistory=function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){var i,a,o,s,c,u,l,f,p;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.nextId(),a="","string"==typeof n?a=n:(a=n.to||"",r=n),r.queryId=i,(o=r.form||{}).type="submit",s=o.fields||[],c=[{name:"FORM_TYPE",type:"hidden",value:Tr}],r.with&&c.push({name:"with",type:"text-single",value:r.with}),r.start&&c.push({name:"start",type:"text-single",value:r.start.toISOString()}),r.end&&c.push({name:"end",type:"text-single",value:r.end.toISOString()}),o.fields=bo(c,s),r.form=o,u=_e(e.jid,a),l=[],f=function(e){u.has(e.from)&&e.archive&&e.archive.queryId===i&&l.push(e.archive)},e.on("mam:item",f),t.prev=17,t.next=20,e.sendIQ({archive:r,id:i,to:a,type:"set"});case 20:return p=t.sent,t.abrupt("return",Object.assign(Object.assign({},p.archive),{results:l}));case 22:return t.prev=22,e.off("mam:item",f),t.finish(22);case 25:case"end":return t.stop()}}),t,null,[[17,,22,25]])})))},e.getHistoryPreferences=function(){return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){var n;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.sendIQ({archive:{type:"preferences"},type:"get"});case 2:return n=t.sent,t.abrupt("return",n.archive);case 4:case"end":return t.stop()}}),t)})))},e.setHistoryPreferences=function(t){return e.sendIQ({archive:Object.assign({type:"preferences"},t),type:"set"})},e.on("message",(function(t){t.archive&&e.emit("mam:item",t)}))}var So=new Set(["chat","groupchat","headline","normal"]),xo=new Set(["chat","groupchat","normal"]),ko=new Map([["markable",0],["received",1],["displayed",2],["acknowledged",3]]),To=function(e,t){var n;return e.marker&&(ko.get(e.marker.type)<ko.get(t)||"markable"===(null===(n=e.marker)||void 0===n?void 0:n.type))};function jo(e,t){return Object(A.__awaiter)(this,void 0,void 0,b.a.mark((function n(){return b.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,e.sendIQ({carbons:{action:t},type:"set"});case 2:case"end":return n.stop()}}),n)})))}function Eo(e){e.disco.addFeature("urn:xmpp:attention:0"),e.disco.addFeature(Er),e.disco.addFeature(Qn),e.disco.addFeature("urn:xmpp:message-correct:0"),e.disco.addFeature("urn:xmpp:receipts"),e.disco.addFeature(kr),e.enableCarbons=function(){return jo(e,"enable")},e.disableCarbons=function(){return jo(e,"disable")},e.markReceived=function(t){return e.sendMarker(t,"received")},e.markDisplayed=function(t){return e.sendMarker(t,"displayed")},e.markAcknowledged=function(t){return e.sendMarker(t,"acknowledged")},e.getAttention=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.sendMessage(Object.assign(Object.assign({},n),{requestingAttention:!0,to:t,type:"headline"}))},e.sendMarker=function(t,n,r){if(To(t,n)||r){var i=!1!==e.config.groupchatMarkersUseStanzaID,a=t.id;if("groupchat"===t.type&&t.stanzaIds&&i){var o=t.stanzaIds.find((function(e){return we(e.by,t.from)}));o&&(a=o.id)}e.sendMessage({marker:{id:a,type:n},to:"groupchat"===t.type?Te(t.from):t.from,type:t.type})}},e.on("message",(function(t){if(t.carbon&&we(t.from,e.jid)){var n=t.carbon.forward.message;n.delay||(n.delay=t.carbon.forward.delay||{timestamp:new Date(Date.now())}),function(e){return!!e.carbon&&"received"===e.carbon.type}(t)&&(e.emit("carbon:received",t),e.emit("message",n)),function(e){return!!e.carbon&&"sent"===e.carbon.type}(t)&&(e.emit("carbon:sent",t),e.emit("message:sent",n,!0))}(function(e){return!!e.forms&&e.forms.length>0})(t)&&e.emit("dataform",t),t.requestingAttention&&e.emit("attention",t),function(e){return!!e.rtt}(t)&&e.emit("rtt",t),function(e){return!!e.replace}(t)&&e.emit("replace",t),function(e){return!!e.chatState}(t)&&xo.has(t.type||"normal")&&e.emit("chat:state",t);var r=!1!==e.config.sendReceipts,i=!1!==e.config.sendMUCReceipts,a=!1!==e.config.chatMarkers,o=!1!==e.config.groupchatMarkersUseStanzaID,s=function(e){var t;return!!e.receipt&&"request"===e.receipt.type&&So.has(null!==(t=e.type)&&void 0!==t?t:"normal")}(t),c=To(t,"received"),u=s&&r&&("groupchat"!==t.type||i);if(u||a&&c){var l="groupchat"===t.type?Te(t.from):t.from,f=t.id;if("groupchat"===t.type&&t.stanzaIds&&o){var p=t.stanzaIds.find((function(e){return we(e.by,t.from)}));p&&(f=p.id)}e.sendMessage({receipt:u?{id:t.id,type:"received"}:void 0,marker:a&&c?{id:f,type:"received"}:void 0,to:l,type:t.type})}t.receipt&&"received"===t.receipt.type&&e.emit("receipt",t),t.marker&&"markable"!==t.marker.type&&e.emit("marker:".concat(t.marker.type),t)}))}function Io(e){var t=this;e.disco.addFeature(An),e.disco.addFeature("jabber:x:conference"),e.disco.addFeature(jr),e.joinedRooms=new Map,e.joiningRooms=new Map,e.leavingRooms=new Map,e.on("session:started",(function(){var t=e.joiningRooms;e.joiningRooms=new Map;var n,r=F(t);try{for(r.s();!(n=r.n()).done;){var i=g()(n.value,2),a=i[0],o=i[1];e.joinRoom(a,o)}}catch(e){r.e(e)}finally{r.f()}var s=e.joinedRooms;e.joinedRooms=new Map;var c,u=F(s);try{for(u.s();!(c=u.n()).done;){var l=g()(c.value,2),f=l[0],p=l[1];e.joinRoom(f,p)}}catch(e){u.e(e)}finally{u.f()}})),e.on("message",(function(t){if("groupchat"===t.type&&t.hasSubject)e.emit("muc:topic",{from:t.from,room:Te(t.from),topic:t.subject||""});else if(t.muc)if("direct-invite"===t.muc.type||!t.muc.invite&&t.legacyMUC){var n="direct-invite"===t.muc.type?t.muc:t.legacyMUC;e.emit("muc:invite",{from:t.from,password:n.password,reason:n.reason,room:n.jid,thread:n.thread,type:"direct"})}else t.muc.invite?e.emit("muc:invite",{from:t.muc.invite[0].from,password:t.muc.password,reason:t.muc.invite[0].reason,room:t.from,thread:t.muc.invite[0].thread,type:"mediated"}):t.muc.decline?e.emit("muc:declined",{from:t.muc.decline.from,reason:t.muc.decline.reason,room:t.from}):e.emit("muc:other",t)})),e.on("presence",(function(t){var n=Te(t.from);if(e.joiningRooms.has(n)&&"error"===t.type)return e.joiningRooms.delete(n),e.emit("muc:failed",t),void e.emit("muc:error",t);if(function(e){return!!e.muc}(t)){var r=t.muc.statusCodes&&t.muc.statusCodes.indexOf(Sa.SelfPresence)>=0,i=t.muc.statusCodes&&t.muc.statusCodes.indexOf(Sa.NickChanged)>=0;if("error"!==t.type){if("unavailable"===t.type)return e.emit("muc:unavailable",t),r&&(i?e.joinedRooms.set(n,t.muc.nick):(e.emit("muc:leave",t),e.joinedRooms.delete(n),e.leavingRooms.delete(n))),void(t.muc.destroy&&e.emit("muc:destroyed",{newRoom:t.muc.destroy.jid,password:t.muc.destroy.password,reason:t.muc.destroy.reason,room:n}));e.emit("muc:available",t);var a=e.joiningRooms.has(n)||!e.joinedRooms.has(n);r&&(e.joinedRooms.set(n,ke(t.from)),a&&(e.joiningRooms.delete(n),e.emit("muc:join",t)))}else e.emit("muc:error",t)}})),e.joinRoom=function(n,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=Te(n),e.joiningRooms.set(n,r||""),r){t.next=13;break}return t.prev=3,t.next=6,e.getReservedNick(n);case 6:r=t.sent,e.joiningRooms.set(n,r),t.next=13;break;case 10:throw t.prev=10,t.t0=t.catch(3),new Error("Room nick required");case 13:return t.abrupt("return",new Promise((function(t,a){function o(r){we(r.from,n)&&(e.off("muc:join",o),e.off("muc:failed",s),t(r))}function s(t){we(t.from,n)&&(e.off("muc:join",o),e.off("muc:failed",s),a(t))}e.on("muc:join",o),e.on("muc:failed",s),e.sendPresence(Object.assign(Object.assign({},i),{muc:Object.assign(Object.assign({},i.muc),{type:"join"}),to:ye(n,r)}))})));case 14:case"end":return t.stop()}}),t,null,[[3,10]])})))},e.leaveRoom=function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t=Te(t),n=n||e.joinedRooms.get(t),e.leavingRooms.set(t,n),new Promise((function(i,a){var o=r.id||ia(),s=_e(t);function c(n){we(n.from,t)&&(e.off("muc:leave",c),e.off("presence:error",u),i(n))}function u(n){n.id===o&&s.has(n.from)&&(e.joinedRooms.has(t)||e.leavingRooms.delete(t),e.off("muc:leave",c),e.off("presence:error",u),a(n))}e.on("muc:leave",c),e.on("presence:error",u),e.sendPresence(Object.assign(Object.assign({},r),{id:o,to:ye(t,n),type:"unavailable"}))}))},e.ban=function(t,n,r){return e.setRoomAffiliation(t,n,"outcast",r)},e.kick=function(t,n,r){return e.setRoomRole(t,n,"none",r)},e.invite=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];Array.isArray(n)||(n=[n]),e.sendMessage({muc:{invite:n,type:"info"},to:t})},e.directInvite=function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};e.sendMessage({muc:Object.assign(Object.assign({},r),{jid:t,type:"direct-invite"}),to:n})},e.declineInvite=function(t,n,r){e.sendMessage({muc:{decline:{reason:r,to:n},type:"info"},to:t})},e.changeNick=function(t,n){var r=ia(),i=ye(t,n),a=_e(t);return new Promise((function(t,n){function o(n){a.has(Te(n.from))&&n.muc.statusCodes&&n.muc.statusCodes.includes(Sa.SelfPresence)&&(e.off("muc:available",o),e.off("presence:id:".concat(r),s),t(n))}function s(i){a.has(Te(i.from))&&i.id===r&&(e.off("muc:available",o),e.off("presence:id:".concat(r),s),"error"===i.type?n(i):t(i))}e.on("muc:available",o),e.on("presence:id:".concat(r),s),e.sendPresence({id:r,to:i})}))},e.setSubject=function(t,n){e.sendMessage({subject:n,to:t,type:"groupchat"})},e.getReservedNick=function(n){return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){var r,i;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.getDiscoInfo(n,"x-roomuser-item");case 3:if(r=t.sent,!(i=r.identities[0]).name){t.next=9;break}return t.abrupt("return",i.name);case 9:throw new Error("No nickname reserved");case 10:t.next=15;break;case 12:throw t.prev=12,t.t0=t.catch(0),new Error("No nickname reserved");case 15:case"end":return t.stop()}}),t,null,[[0,12]])})))},e.requestRoomVoice=function(t){e.sendMessage({forms:[{fields:[{name:"FORM_TYPE",type:"hidden",value:"http://jabber.org/protocol/muc#request"},{name:"muc#role",type:"text-single",value:"participant"}],type:"submit"}],to:t})},e.setRoomAffiliation=function(t,n,r,i){return e.sendIQ({muc:{type:"user-list",users:[{affiliation:r,jid:n,reason:i}]},to:t,type:"set"})},e.setRoomRole=function(t,n,r,i){return e.sendIQ({muc:{type:"user-list",users:[{nick:n,reason:i,role:r}]},to:t,type:"set"})},e.getRoomMembers=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{affiliation:"member"};return e.sendIQ({muc:{type:"user-list",users:[n]},to:t,type:"get"})},e.getRoomConfig=function(n){return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){var r;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.sendIQ({muc:{type:"configure"},to:n,type:"get"});case 2:if((r=t.sent).muc.form){t.next=5;break}throw new Error("No configuration form returned");case 5:return t.abrupt("return",r.muc.form);case 6:case"end":return t.stop()}}),t)})))},e.configureRoom=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.sendIQ({muc:{form:Object.assign(Object.assign({},n),{type:"submit"}),type:"configure"},to:t,type:"set"})},e.destroyRoom=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.sendIQ({muc:{destroy:n,type:"configure"},to:t,type:"set"})},e.getUniqueRoomName=function(e){return Object(A.__awaiter)(this,void 0,void 0,b.a.mark((function t(){var n;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.sendIQ({muc:{type:"unique"},to:e,type:"get"});case 2:if((n=t.sent).muc.name){t.next=5;break}throw new Error("No unique name returned");case 5:return t.abrupt("return",n.muc.name);case 6:case"end":return t.stop()}}),t,this)})))},e.getBookmarks=function(){return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){var n;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.getPrivateData("bookmarks");case 2:if((n=t.sent)&&n.rooms){t.next=5;break}return t.abrupt("return",[]);case 5:return t.abrupt("return",n.rooms);case 6:case"end":return t.stop()}}),t)})))},e.setBookmarks=function(t){return e.setPrivateData("bookmarks",{rooms:t})},e.addBookmark=function(n){return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){var r,i,a,o,s,c;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.getBookmarks();case 2:r=t.sent,i=[],a=!1,o=F(r);try{for(o.s();!(s=o.n()).done;)we((c=s.value).jid,n.jid)?(i.push(Object.assign(Object.assign({},c),n)),a=!0):i.push(c)}catch(e){o.e(e)}finally{o.f()}return a||i.push(n),t.abrupt("return",e.setBookmarks(i));case 9:case"end":return t.stop()}}),t)})))},e.removeBookmark=function(n){return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){var r,i;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.getBookmarks();case 2:return r=t.sent,i=r.filter((function(e){return!we(e.jid,n)})),t.abrupt("return",e.setBookmarks(i));case 5:case"end":return t.stop()}}),t)})))}}function Oo(e){e.disco.addFeature(Yn),e.disco.addFeature(Vn),e.disco.addFeature(Kn),e.disco.addFeature(cr),e.disco.addFeature(Xn),e.disco.addFeature(ir(Yn)),e.disco.addFeature(ir(Vn)),e.disco.addFeature(ir(Kn)),e.disco.addFeature(ir(cr)),e.disco.addFeature(ir(Xn)),e.publishActivity=function(t){return e.publish("",Yn,Object.assign({itemType:Yn},t))},e.publishGeoLoc=function(t){return e.publish("",Vn,Object.assign({itemType:Vn},t))},e.publishMood=function(t){return e.publish("",Kn,Object.assign({itemType:Kn},t))},e.publishNick=function(t){return e.publish("",cr,{itemType:cr,nick:t})},e.publishTune=function(t){return e.publish("",Xn,Object.assign({itemType:Xn},t))},e.on("pubsub:published",(function(t){var n=t.pubsub.items.published[0].content;switch(t.pubsub.items.node){case Yn:return e.emit("activity",{activity:n,jid:t.from});case Vn:return e.emit("geoloc",{geoloc:n,jid:t.from});case Kn:return e.emit("mood",{jid:t.from,mood:n});case cr:return e.emit("nick",{jid:t.from,nick:n.nick});case Xn:return e.emit("tune",{jid:t.from,tune:t.pubsub.items.published[0].content})}}))}function Ao(e){var t=this;e.disco.addFeature("".concat(er,"#SubID"),er),e.on("message",(function(t){!function(e){return!!e.pubsub&&!(e.pubsub.context&&"user"!==e.pubsub.context||!e.pubsub.affiliations)}(t)?function(e){return!!e.pubsub}(t)&&(e.emit("pubsub:event",t),!function(e){return!!e.pubsub.items&&!!e.pubsub.items.published}(t)?!function(e){return!!e.pubsub.items&&!!e.pubsub.items.retracted}(t)?!function(e){return"purge"===e.pubsub.eventType}(t)?!function(e){return"delete"===e.pubsub.eventType}(t)?!function(e){return"subscription"===e.pubsub.eventType}(t)?function(e){return"configuration"===e.pubsub.eventType}(t)&&e.emit("pubsub:config",t):e.emit("pubsub:subscription",t):e.emit("pubsub:deleted",t):e.emit("pubsub:purged",t):e.emit("pubsub:retracted",t):e.emit("pubsub:published",t)):e.emit("pubsub:affiliations",t)})),e.subscribeToNode=function(n,r){return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){var i,a,o,s;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i={},"string"==typeof r?(i.node=r,i.jid=Te(e.jid)):(i.node=r.node,i.jid=r.jid||(r.useBareJID?Te(e.jid):e.jid),a=r.options),t.next=4,e.sendIQ({pubsub:{context:"user",subscribe:i,subscriptionOptions:a?{form:a}:void 0},to:n,type:"set"});case 4:return o=t.sent,s=o.pubsub.subscription||{},o.pubsub.subscriptionOptions&&(s.options=o.pubsub.subscriptionOptions.form),t.abrupt("return",s);case 8:case"end":return t.stop()}}),t)})))},e.unsubscribeFromNode=function(n,r){return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){var i,a;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i={},"string"==typeof r?(i.node=r,i.jid=Te(e.jid)):(i.node=r.node,i.subid=r.subid,i.jid=r.jid||(r.useBareJID?Te(e.jid):e.jid)),t.next=4,e.sendIQ({pubsub:{context:"user",unsubscribe:i},to:n,type:"set"});case 4:if((a=t.sent).pubsub&&a.pubsub.subscription){t.next=7;break}return t.abrupt("return",Object.assign(Object.assign({},i),{state:"none"}));case 7:return t.abrupt("return",a.pubsub.subscription);case 8:case"end":return t.stop()}}),t)})))},e.publish=function(t,n,r,i){return e.sendIQ({pubsub:{context:"user",publish:{item:{content:r,id:i},node:n}},to:t,type:"set"})},e.getItem=function(n,r,i){return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){var a;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.sendIQ({pubsub:{context:"user",fetch:{items:[{id:i}],node:r}},to:n,type:"get"});case 2:return a=t.sent,t.abrupt("return",a.pubsub.fetch.items[0]);case 4:case"end":return t.stop()}}),t)})))},e.getItems=function(n,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){var a,o;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.sendIQ({pubsub:{context:"user",fetch:{max:i.max,node:r},paging:i},to:n,type:"get"});case 2:return a=t.sent,(o=a.pubsub.fetch).paging=a.pubsub.paging,t.abrupt("return",o);case 6:case"end":return t.stop()}}),t)})))},e.retract=function(t,n,r,i){return e.sendIQ({pubsub:{context:"user",retract:{id:r,node:n,notify:i}},to:t,type:"set"})},e.purgeNode=function(t,n){return e.sendIQ({pubsub:{context:"owner",purge:n},to:t,type:"set"})},e.deleteNode=function(t,n,r){return e.sendIQ({pubsub:{context:"owner",destroy:{node:n,redirect:r}},to:t,type:"set"})},e.createNode=function(n,r,i){return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){var a;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.sendIQ({pubsub:{configure:i?{form:i}:void 0,context:"user",create:{node:r}},to:n,type:"set"});case 2:if((a=t.sent).pubsub&&a.pubsub.create){t.next=5;break}return t.abrupt("return",{node:r});case 5:return t.abrupt("return",a.pubsub.create);case 6:case"end":return t.stop()}}),t)})))},e.getSubscriptions=function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){var i;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.sendIQ({pubsub:{context:"user",subscriptions:r},to:n,type:"get"});case 2:return i=t.sent,t.abrupt("return",i.pubsub.subscriptions);case 4:case"end":return t.stop()}}),t)})))},e.getAffiliations=function(t,n){return e.sendIQ({pubsub:{affiliations:{node:n}},to:t,type:"get"})},e.getNodeSubscribers=function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return"string"==typeof n?r.node=n:r=Object.assign(Object.assign({},r),n),e.sendIQ({pubsub:{context:"owner",subscriptions:r},to:t,type:"get"})},e.updateNodeSubscriptions=function(t,n,r){return e.sendIQ({pubsub:{context:"owner",subscriptions:{items:r,node:n}},to:t,type:"set"})},e.getNodeAffiliations=function(n,r){return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){var i;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.sendIQ({pubsub:{affiliations:{node:r},context:"owner"},to:n,type:"get"});case 2:return i=t.sent,t.abrupt("return",i.pubsub.affiliations);case 4:case"end":return t.stop()}}),t)})))},e.updateNodeAffiliations=function(t,n,r){return e.sendIQ({pubsub:{affiliations:{items:r,node:n},context:"owner"},to:t,type:"set"})},e.getNodeConfig=function(n,r){return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){var i;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.sendIQ({pubsub:{configure:{node:r},context:"owner"},to:n,type:"get"});case 2:return i=t.sent,t.abrupt("return",i.pubsub.configure.form||{});case 4:case"end":return t.stop()}}),t)})))},e.getDefaultNodeConfig=function(n){return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){var r;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.sendIQ({pubsub:{context:"owner",defaultConfiguration:{}},to:n,type:"get"});case 2:return r=t.sent,t.abrupt("return",r.pubsub.defaultConfiguration.form||{});case 4:case"end":return t.stop()}}),t)})))},e.configureNode=function(n,r,i){return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e.sendIQ({pubsub:{configure:{form:i,node:r},context:"owner"},to:n,type:"set"}));case 1:case"end":return t.stop()}}),t)})))},e.getDefaultSubscriptionOptions=function(n){return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){var r;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.sendIQ({pubsub:{defaultSubscriptionOptions:{}},to:n,type:"get"});case 2:return r=t.sent,t.abrupt("return",r.pubsub.defaultSubscriptionOptions.form||{});case 4:case"end":return t.stop()}}),t)})))}}function Ro(e){var t=this;function n(t,n){return Object(A.__awaiter)(this,void 0,void 0,b.a.mark((function r(){return b.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,e.sendIQ({blockList:{action:t,jids:[n]},type:"set"});case 2:case"end":return r.stop()}}),r)})))}e.on("iq:set:roster",(function(t){if(!_e(e.jid).has(t.from))return e.sendIQError(t,{error:{condition:"service-unavailable",type:"cancel"}});e.emit("roster:update",t),e.sendIQResult(t)})),e.on("iq:set:blockList",(function(t){if(!_e(e.jid).has(t.from))return e.sendIQError(t,{error:{condition:"service-unavailable",type:"cancel"}});var n=t.blockList;e.emit(n.action,{jids:n.jids||[]}),e.sendIQResult(t)})),e.getRoster=function(){return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){var n,r;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.sendIQ({roster:{version:e.config.rosterVer},type:"get"});case 2:if(!(n=t.sent).roster){t.next=10;break}return(r=n.roster.version)&&(e.config.rosterVer=r,e.emit("roster:ver",r)),n.roster.items=n.roster.items||[],t.abrupt("return",n.roster);case 10:return t.abrupt("return",{items:[]});case 11:case"end":return t.stop()}}),t)})))},e.updateRosterItem=function(n){return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.sendIQ({roster:{items:[n]},type:"set"});case 2:case"end":return t.stop()}}),t)})))},e.removeRosterItem=function(t){return e.updateRosterItem({jid:t,subscription:"remove"})},e.subscribe=function(t){e.sendPresence({type:"subscribe",to:t})},e.unsubscribe=function(t){e.sendPresence({type:"unsubscribe",to:t})},e.acceptSubscription=function(t){e.sendPresence({type:"subscribed",to:t})},e.denySubscription=function(t){e.sendPresence({type:"unsubscribed",to:t})},e.getBlocked=function(){return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){var n;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.sendIQ({blockList:{action:"list"},type:"get"});case 2:return n=t.sent,t.abrupt("return",Object.assign({jids:[]},n.blockList));case 4:case"end":return t.stop()}}),t)})))},e.block=function(e){return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",n("block",e));case 1:case"end":return t.stop()}}),t)})))},e.unblock=function(e){return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",n("unblock",e));case 1:case"end":return t.stop()}}),t)})))},e.goInvisible=function(){var n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.sendIQ({type:"set",visiblity:{probe:n,type:"invisible"}});case 2:case"end":return t.stop()}}),t)})))},e.goVisible=function(){return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.sendIQ({type:"set",visiblity:{type:"visible"}});case 2:case"end":return t.stop()}}),t)})))}}function No(e){var t=this;e.registerFeature("sasl",100,(function(n,r){return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){var i,a,o,s=this;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=e.sasl.createMechanism(n.sasl.mechanisms),a=function t(n){return Object(A.__awaiter)(s,void 0,void 0,b.a.mark((function a(){var o,s,c;return b.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(i){a.next=2;break}return a.abrupt("return");case 2:a.t0=n.type,a.next="success"===a.t0?5:"challenge"===a.t0?11:"failure"===a.t0||"abort"===a.t0?27:31;break;case 5:return e.features.negotiated.sasl=!0,e.off("sasl",t),e.emit("auth:success",e.config.credentials),e.transport&&(e.transport.authenticated=!0),r("restart"),a.abrupt("return");case 11:return i.processChallenge(n.value),a.prev=12,a.next=15,e.getCredentials();case 15:o=a.sent,(s=i.createResponse(o))||""===s?e.send("sasl",{type:"response",value:s}):e.send("sasl",{type:"response"}),(c=i.getCacheableCredentials())&&(e.config.credentials||(e.config.credentials={}),e.config.credentials=Object.assign(Object.assign({},e.config.credentials),c),e.emit("credentials:update",e.config.credentials)),a.next=26;break;case 22:a.prev=22,a.t1=a.catch(12),console.error(a.t1),e.send("sasl",{type:"abort"});case 26:return a.abrupt("return");case 27:return e.off("sasl",t),e.emit("auth:failed"),r("disconnect","authentication failed"),a.abrupt("return");case 31:case"end":return a.stop()}}),a,null,[[12,22]])})))},i){t.next=6;break}return e.off("sasl",a),e.emit("auth:failed"),t.abrupt("return",r("disconnect","authentication failed"));case 6:return e.on("sasl",a),e.once("--reset-stream-features",(function(){e.features.negotiated.sasl=!1,e.off("sasl",a)})),t.prev=8,t.next=11,e.getCredentials();case 11:o=t.sent,e.send("sasl",{mechanism:i.name,type:"auth",value:i.createResponse(o)}),t.next=19;break;case 15:t.prev=15,t.t0=t.catch(8),console.error(t.t0),e.send("sasl",{type:"abort"});case 19:case"end":return t.stop()}}),t,null,[[8,15]])})))}))}function Co(e){var t=this;function n(t){return Object(A.__awaiter)(this,void 0,void 0,b.a.mark((function n(){var r,i,a,o,s,c,u;return b.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,e.getDiscoInfo(t);case 2:if((r=n.sent).features&&r.features.includes(Rr)){n.next=5;break}return n.abrupt("return");case 5:a=F(r.extensions||[]),n.prev=6,a.s();case 8:if((o=a.n()).done){n.next=17;break}if(s=o.value,!(c=s.fields||[]).some((function(e){return"FORM_TYPE"===e.name&&e.value===Rr}))){n.next=15;break}return(u=c.find((function(e){return"max-file-size"===e.name})))&&(i=parseInt(u.value,10)),n.abrupt("return",{jid:t,maxSize:i});case 15:n.next=8;break;case 17:n.next=22;break;case 19:n.prev=19,n.t0=n.catch(6),a.e(n.t0);case 22:return n.prev=22,a.f(),n.finish(22);case 25:case"end":return n.stop()}}),n,null,[[6,19,22,25]])})))}e.disco.addFeature(dr),e.getBits=function(n,r){return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){var i;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.sendIQ({bits:{cid:r},to:n,type:"get"});case 2:return i=t.sent,t.abrupt("return",i.bits);case 4:case"end":return t.stop()}}),t)})))},e.getUploadService=function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:xe(e.jid);return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){var i,a,o,s,c,u;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n(r);case 2:if(!(i=t.sent)){t.next=5;break}return t.abrupt("return",i);case 5:return t.next=7,e.getDiscoItems(r);case 7:a=t.sent,o=F(a.items||[]),t.prev=9,o.s();case 11:if((s=o.n()).done){t.next=22;break}if((c=s.value).jid){t.next=15;break}return t.abrupt("continue",20);case 15:return t.next=17,n(c.jid);case 17:if(!(u=t.sent)){t.next=20;break}return t.abrupt("return",u);case 20:t.next=11;break;case 22:t.next=27;break;case 24:t.prev=24,t.t0=t.catch(9),o.e(t.t0);case 27:return t.prev=27,o.f(),t.finish(27);case 30:throw new Error("No upload service discovered on: "+r);case 31:case"end":return t.stop()}}),t,null,[[9,24,27,30]])})))},e.getUploadSlot=function(n,r){return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){var i;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.sendIQ({httpUpload:Object.assign({type:"request"},r),to:n,type:"get"});case 2:return i=t.sent,t.abrupt("return",i.httpUpload);case 4:case"end":return t.stop()}}),t)})))}}function Po(e){e.use(Wa),e.use(va),e.use(Xi),e.use(la),e.use(Ya),e.use(No)}function Lo(e){e.use(Ki),e.use(Eo),e.use(Yi),e.use($i),e.use(Ha),e.use(yo),e.use(wo),e.use(Io),e.use(Oo),e.use(Ao),e.use(Ro),e.use(Co)}var qo={aliases:["features.legacySession","iq.legacySession"],element:"session",fields:{optional:Qt(null,"optional")},namespace:bn},Fo=[{aliases:["atomentry"].concat(d()([{path:"pubsubcontent",contextField:"itemType"},{path:"pubsubitem.content",contextField:"itemType"},{path:"pubsubeventitem.content",contextField:"itemType"},{path:"iq.pubsub.publish.items",contextField:"itemType"}])),element:"entry",fields:{id:Ut(null,"id"),published:Jt(null,"published"),updated:Jt(null,"updated")},namespace:vn,type:vn,typeField:"itemType"},{element:"summary",fields:{text:Ft(),type:St("type","text")},namespace:vn,path:"atomentry.summary"},{element:"title",fields:{text:Ft(),type:St("type","text")},namespace:vn,path:"atomentry.title"},{aliases:[{path:"atomentry.links",multiple:!0}],element:"link",fields:{href:St("href"),mediaType:St("type"),rel:St("rel")},namespace:vn},{aliases:[{path:"atomentry.authors",multiple:!0}],element:"author",fields:{name:Ut(null,"name"),uri:Ut(null,"uri"),email:Ut(null,"email")},namespace:vn},{aliases:[{path:"atomentry.contributors",multiple:!0}],element:"contributor",fields:{name:Ut(null,"name"),uri:Ut(null,"uri"),email:Ut(null,"email")},namespace:vn},{aliases:[{path:"atomentry.categories",multiple:!0}],element:"category",fields:{term:St("term"),scheme:St("scheme"),label:St("label")},namespace:vn},{element:"content",fields:{text:Ft(),type:St("type","text")},namespace:vn,path:"atomentry.content"},{element:"rights",fields:{text:Ft(),type:St("type","text")},namespace:vn,path:"atomentry.rights"}],Mo={defaultType:"stream",element:"stream",fields:{from:St("from"),id:St("id"),lang:Bt(),to:St("to"),version:St("version")},namespace:wn,path:"stream",type:"stream",typeField:"action"},Do={element:"features",namespace:wn,path:"features"},Bo={element:"error",fields:{alternateLanguageText:on(Sn,"text"),condition:en(Sn,Object.values(ya),ya.UndefinedCondition),seeOtherHost:Ut(Sn,ya.SeeOtherHost),text:Ut(Sn,"text")},namespace:wn,path:"streamError"},Uo=Object.values(ma).map((function(e){return{aliases:["stanzaError","message.error","presence.error","iq.error"],defaultType:gn,element:"error",fields:{alternateLanguageText:on(_n,"text"),by:qr("by"),condition:en(_n,Object.values(ba),ba.UndefinedCondition),gone:Ut(_n,ba.Gone),redirect:Ut(_n,ba.Redirect),text:Ut(_n,"text"),type:St("type")},namespace:e,type:e,typeField:"streamType"}})),zo=new Set(["from","id","lang","to","type","payloadType","error","streamType"]),Jo=Object.values(ma).map((function(e){return{childrenExportOrder:{error:2e5},defaultType:gn,element:"iq",fields:{from:qr("from"),id:St("id"),lang:Bt(),payloadType:{order:-1e4,importer:function(e,t){if("get"===t.data.type||"set"===t.data.type){if(1!==e.children.filter((function(e){return"string"!=typeof e})).length)return"invalid-payload-count";var n=Object.keys(t.data).filter((function(e){return!zo.has(e)}));return 1!==n.length?"unknown-payload":n[0]}}},to:qr("to"),type:St("type")},namespace:e,path:"iq",type:e,typeField:"streamType"}})),Go=Object.values(ma).map((function(e){return{childrenExportOrder:{error:2e5},defaultType:gn,element:"message",fields:{from:qr("from"),id:St("id"),lang:Bt(),to:qr("to")},namespace:e,path:"message",type:e,typeField:"streamType"}})),Vo=Object.values(ma).map((function(e){return{childrenExportOrder:{error:2e5},defaultType:gn,element:"presence",fields:{from:qr("from"),id:St("id"),lang:Bt(),to:qr("to")},namespace:e,path:"presence",type:e,typeField:"streamType"}})),Ho=[{element:"mechanisms",fields:{mechanisms:nn(null,"mechanism")},namespace:yn,path:"features.sasl"},{element:"abort",namespace:yn,path:"sasl",type:"abort",typeField:"type"},{element:"auth",fields:{mechanism:St("mechanism"),value:Dt("base64")},namespace:yn,path:"sasl",type:"auth",typeField:"type"},{element:"challenge",fields:{value:Dt("base64")},namespace:yn,path:"sasl",type:"challenge",typeField:"type"},{element:"response",fields:{value:Dt("base64")},namespace:yn,path:"sasl",type:"response",typeField:"type"},{element:"success",fields:{value:Dt("base64")},namespace:yn,path:"sasl",type:"success",typeField:"type"},{element:"failure",fields:{alternateLanguageText:on(yn,"text"),condition:en(yn,Object.values(ga)),text:Ut(yn,"text")},namespace:yn,path:"sasl",type:"failure",typeField:"type"}],Wo=[{aliases:["features.tls"],defaultType:"start",element:"starttls",fields:{required:Qt(null,"required")},namespace:xn,path:"tls",type:"start",typeField:"type"},{element:"proceed",namespace:xn,path:"tls",type:"proceed",typeField:"type"},{element:"failure",namespace:xn,path:"tls",type:"failure",typeField:"type"}],Qo={aliases:["features.bind","iq.bind"],element:"bind",fields:{jid:Ut(null,"jid"),resource:Ut(null,"resource")},namespace:mn},Ko=[Mo,Do,Bo].concat(d()(Uo),Ho,Wo,d()(Jo),d()(Go),d()(Vo),[Qo]),Yo=[Jr({rosterPreApproval:Qt("urn:xmpp:features:pre-approval","sub"),rosterVersioning:Qt("urn:xmpp:features:rosterver","ver")}),Br({alternateLanguageBodies:on(null,"body"),alternateLanguageSubjects:on(null,"subject"),body:Ut(null,"body"),hasSubject:Qt(null,"subject"),parentThread:Nt(null,"thread","parent"),subject:Ut(null,"subject"),thread:Ut(null,"thread"),type:St("type")}),Ur({alternateLanguageStatuses:on(null,"status"),priority:Gt(null,"priority",0),show:Ut(null,"show"),status:Ut(null,"status"),type:St("type")}),{element:"query",fields:{version:St("ver",void 0,{emitEmpty:!0})},namespace:"jabber:iq:roster",path:"iq.roster"},{aliases:[{path:"iq.roster.items",multiple:!0}],element:"item",fields:{groups:nn(null,"group"),jid:qr("jid"),name:St("name"),pending:St("ask"),preApproved:xt("approved"),subscription:St("subscription")},namespace:"jabber:iq:roster"}],Xo=[{element:"open",fields:{from:St("from"),id:St("id"),lang:Bt(),to:St("to"),version:St("version")},namespace:kn,path:"stream",type:"open"},{element:"close",fields:{seeOtherURI:St("see-other-uri")},namespace:kn,path:"stream",type:"close"}],$o=[{aliases:[{path:"message.forms",multiple:!0}],element:"x",fields:{instructions:Object.assign(Object.assign({},nn(null,"instructions")),{exportOrder:2}),reported:Object.assign(Object.assign({},cn(null,"reported","dataformField",!0)),{exportOrder:3}),title:Object.assign(Object.assign({},Ut(null,"title")),{exportOrder:1}),type:St("type")},namespace:Tn,optionalNamespaces:{xdv:$n},path:"dataform"},{aliases:[{path:"dataform.fields",multiple:!0},{path:"dataform.items.fields",multiple:!0}],element:"field",fields:{description:Ut(null,"desc"),label:St("label"),name:St("var"),rawValues:Object.assign(Object.assign({},nn(null,"value")),{exporter:function(){return null}}),required:Qt(null,"required"),type:St("type"),value:{importer:function(e,t){var n=e.getAttribute("type"),r=nn(Tn,"value").importer(e,t),i=r[0];switch(n){case wa.TextMultiple:case wa.ListMultiple:case wa.JIDMultiple:return r;case wa.Hidden:case wa.Fixed:return 1===r.length?i:r;case wa.Boolean:if(i)return"1"===i||"true"===i;break;default:return i}},exporter:function(e,t,n){var r=nn(null,"value"),i=[],a=n.data&&n.data.rawValues?n.data.rawValues[0]:void 0;if("boolean"==typeof t)i="true"===a||"false"===a?[a]:[t?"1":"0"];else if(Array.isArray(t)){var o,s=F(t);try{for(s.s();!(o=s.n()).done;){var c=o.value;i.push(c.toString())}}catch(e){s.e(e)}finally{s.f()}}else i=[t.toString()];r.exporter(e,i,Object.assign({},n,{namespace:Tn}))}}},namespace:Tn,path:"dataformField"},{aliases:[{path:"dataform.fields.options",multiple:!0}],element:"option",fields:{label:St("label"),value:Ut(null,"value")},namespace:Tn},{aliases:[{path:"dataform.items",multiple:!0}],element:"item",namespace:Tn},{element:"validate",fields:{listMax:Pt(null,"list-range","max"),listMin:Pt(null,"list-range","min"),method:en(null,["basic","open","range","regex"],"basic"),rangeMax:Nt(null,"range","max"),rangeMin:Nt(null,"range","min"),regex:Ut(null,"regex"),type:St("datatype","xs:string")},namespace:$n,path:"dataform.fields.validation"}],Zo=[{aliases:["presence.legacyLastActivity","iq.lastActivity"],element:"query",fields:{seconds:kt("seconds"),status:Ft()},namespace:"jabber:iq:last"}],es=[{element:"query",fields:{activeList:Nt(null,"active","name"),defaultList:Nt(null,"default","name")},namespace:jn,path:"iq.privacy"},{aliases:[{path:"iq.privacy.lists",multiple:!0}],element:"list",fields:{name:St("name")},namespace:jn},{aliases:[{path:"iq.privacy.lists.items",multiple:!0}],element:"item",fields:{action:St("action"),incomingPresence:Qt(null,"presence-in"),iq:Qt(null,"iq"),messages:Qt(null,"message"),order:kt("order"),outgoingPresence:Qt(null,"presence-out"),type:St("type"),value:St("value")},namespace:jn}],ts=[{aliases:["iq.disco","message.disco","features.disco"],childrenExportOrder:{identities:1,features:2,extensions:3},element:"query",fields:{features:rn(null,"feature","var"),node:St("node")},namespace:En,path:"disco",type:"info",typeField:"type"},{aliases:[{path:"disco.identities",selector:"info",multiple:!0}],element:"identity",fields:{category:St("category"),lang:Bt(),name:St("name"),type:St("type")},namespace:En},{aliases:[{path:"disco.items",multiple:!0,selector:"items"}],element:"item",fields:{jid:qr("jid"),name:St("name"),node:St("node")},namespace:In},{aliases:[{path:"disco.items",multiple:!0,selector:"info"}],element:"item",fields:{category:qr("category"),lang:Bt(),name:St("name"),type:St("type")},namespace:En},Dr(Tn,"x",[{path:"disco.extensions",multiple:!0,selector:"info"}]),Dr(qn,"set",[{path:"disco.paging",selector:"items"}]),{aliases:["iq.disco","message.disco","features.disco"],element:"query",fields:{node:St("node")},namespace:In,path:"disco",type:"items",typeField:"type"}],ns=[Br({addresses:cn(On,"addresses","extendedAddress",!0)}),Ur({addresses:cn(On,"addresses","extendedAddress",!0)}),{element:"address",fields:{alternateLanguageDescriptions:on(null,"desc"),delivered:xt("delivered"),description:St("desc"),jid:qr("jid"),node:St("node"),type:St("type"),uri:St("uri")},namespace:On,path:"extendedAddress"}],rs=[Dr(Tn,"x",[{path:"iq.muc.form",selector:"configure"}]),{defaultType:"info",element:"x",fields:{password:Ut(null,"password")},namespace:An,path:"presence.muc",type:"join",typeField:"type"},{aliases:[{path:"presence.muc.history",selector:"join"}],element:"history",fields:{maxCharacters:kt("maxchars"),maxStanzas:kt("maxstanzas"),seconds:kt("seconds"),since:jt("since")},namespace:An},{aliases:["presence.muc","message.muc"],defaultType:"info",element:"x",fields:{action:en(null,["invite","decline","destroy"]),actor:cn(null,"item","mucactor"),affiliation:Nt(null,"item","affiliation"),jid:Fr(null,"item","jid"),nick:Nt(null,"item","nick"),password:Ut(null,"password"),reason:Yt([{namespace:null,element:"item"},{namespace:null,element:"reason"}]),role:Nt(null,"item","role"),statusCodes:rn(null,"status","code")},namespace:Cn,type:"info",typeField:"type",typeOrder:1},{element:"actor",fields:{jid:qr("jid"),nick:St("nick")},namespace:Cn,path:"mucactor"},{element:"destroy",fields:{jid:qr("jid"),password:Ut(null,"password"),reason:Ut(null,"reason")},namespace:Cn,path:"presence.muc.destroy"},{aliases:[{path:"message.muc.invite",multiple:!0}],element:"invite",fields:{continue:Qt(null,"continue"),from:qr("from"),reason:Ut(null,"reason"),thread:Nt(null,"continue","thread"),to:qr("to")},namespace:Cn},{element:"decline",fields:{from:qr("from"),reason:Ut(null,"reason"),to:qr("to")},namespace:Cn,path:"message.muc",type:"decline"},{element:"query",namespace:Rn,path:"iq.muc",type:"user-list",typeField:"type"},{aliases:[{path:"iq.muc.users",multiple:!0,selector:"user-list"}],element:"item",fields:{affiliation:St("affiliation"),jid:qr("jid"),nick:St("nick"),reason:Ut(null,"reason"),role:St("role")},namespace:Rn},{aliases:["iq.muc.users.actor"],element:"actor",fields:{jid:qr("jid"),nick:St("nick")},namespace:Rn},{element:"query",namespace:Nn,path:"iq.muc",type:"configure",typeField:"type"},{aliases:[{path:"iq.muc.destroy",selector:"configure"}],element:"destroy",fields:{jid:qr("jid"),password:Ut(null,"password"),reason:Ut(null,"reason")},namespace:Nn},{element:"x",fields:{action:un("invite"),continue:xt("continue"),jid:qr("jid"),legacyReason:Ft(),password:St("password"),reason:St("reason"),thread:St("thread")},namespace:"jabber:x:conference",path:"message.muc",type:"direct-invite",typeOrder:2},{element:"unique",fields:{name:Ft()},namespace:"http://jabber.org/protocol/muc#unique",path:"iq.muc",type:"unique"},Br({legacyMUC:{exporter:function(e,t,n){var r=n.registry?n.registry.export("message.muc",Object.assign(Object.assign({},t),{type:"direct-invite"})):void 0;r&&e.appendChild(r)},exportOrder:100001,importer:function(e,t){if(at(e,Cn,"x")[0]){var n=at(e,"jabber:x:conference","x")[0];if(n)return t.registry?t.registry.import(n,Object.assign(Object.assign({},t),{path:"message"})):void 0}},importOrder:-1}})],is=[{aliases:["iq.ibb","message.ibb"],element:"open",fields:{ack:{importer:function(e,t){return"message"!==St("stanza","iq").importer(e,t)},exporter:function(e,t,n){St("stanza").exporter(e,t?"iq":"message",n)}},blockSize:kt("block-size"),sid:St("sid")},namespace:Pn,type:"open",typeField:"action"},{aliases:["iq.ibb","message.ibb"],element:"close",fields:{sid:St("sid")},namespace:Pn,type:"close",typeField:"action"},{aliases:["iq.ibb","message.ibb"],element:"data",fields:{data:Dt("base64"),seq:kt("seq"),sid:St("sid")},namespace:Pn,type:"data",typeField:"action"}],as=[{aliases:[{path:"bookmarkStorage",impliedType:!0},{path:"iq.privateStorage.bookmarks",impliedType:!0}].concat(d()([{path:"pubsubcontent",contextField:"itemType"},{path:"pubsubitem.content",contextField:"itemType"},{path:"pubsubeventitem.content",contextField:"itemType"},{path:"iq.pubsub.publish.items",contextField:"itemType"}])),element:"storage",namespace:"storage:bookmarks",type:"storage:bookmarks",typeField:"itemType"},{aliases:[{path:"bookmarkStorage.rooms",multiple:!0}],element:"conference",fields:{autoJoin:xt("autojoin"),jid:qr("jid"),name:St("name"),nick:Ut(null,"nick"),password:Ut(null,"password")},namespace:"storage:bookmarks"}],os={element:"query",namespace:"jabber:iq:private",path:"iq.privateStorage"},ss=[Dr(Tn,"x",["iq.command.form"]),Gr({commandError:en(Ln,["bad-action","bad-locale","bad-payload","bad-sessionid","malformed-action","session-expired"])}),{element:"command",fields:{action:St("action"),node:St("node"),sid:St("sessionid"),status:St("status")},namespace:Ln,path:"iq.command"},{element:"actions",fields:{complete:Qt(null,"complete"),execute:St("execute"),next:Qt(null,"next"),prev:Qt(null,"prev")},namespace:Ln,path:"iq.command.availableActions"},{aliases:[{path:"iq.command.notes",multiple:!0}],element:"note",fields:{type:St("type"),value:Ft()},namespace:Ln}],cs="vcardTemp.records";function us(e,t){return{aliases:[{multiple:!0,path:cs}],element:e,fields:{value:Ft()},namespace:"vcard-temp",type:t,typeField:"type"}}var ls,fs=[{aliases:[{path:"iq.vcard"}],defaultType:"vcard-temp",element:"vCard",fields:{fullName:Ut(null,"FN")},namespace:"vcard-temp",path:"vcardTemp",type:"vcard-temp",typeField:"format"},{element:"N",fields:{additional:Object.assign(Object.assign({},Ut(null,"MIDDLE")),{order:3}),family:Object.assign(Object.assign({},Ut(null,"FAMILY")),{order:1}),given:Object.assign(Object.assign({},Ut(null,"GIVEN")),{order:2}),prefix:Object.assign(Object.assign({},Ut(null,"PREFIX")),{order:4}),suffix:Object.assign(Object.assign({},Ut(null,"SUFFIX")),{order:5})},namespace:"vcard-temp",path:"vcardTemp.name"},us("NICKNAME","nickname"),us("BDAY","birthday"),us("JABBERID","jid"),us("TZ","timezone"),us("TITLE","title"),us("ROLE","role"),us("URL","url"),us("NOTE","note"),us("SORT-STRING","sort"),us("UID","uid"),us("REV","revision"),us("PRODID","productId"),us("DESC","description"),{aliases:[{multiple:!0,path:cs}],element:"EMAIL",fields:{preferred:Qt(null,"PREF"),types:sn(null,[["home","HOME"],["work","WORK"],["internet","INTERNET"]]),value:Ut(null,"USERID")},namespace:"vcard-temp",type:"email"},{aliases:[{path:cs,multiple:!0}],element:"ORG",fields:{units:Object.assign(Object.assign({},nn(null,"ORGUNIT")),{order:2}),value:Object.assign(Object.assign({},Ut(null,"ORGNAME")),{order:1})},namespace:"vcard-temp",type:"organization",typeField:"type"},{aliases:[{multiple:!0,path:cs}],element:"ADR",fields:{city:Ut(null,"LOCALITY"),code:Ut(null,"PCODE"),country:Ut(null,"CTRY"),pobox:Ut(null,"POBOX"),preferred:Qt(null,"PREF"),region:Ut(null,"REGION"),street:Ut(null,"STREET"),street2:Ut(null,"EXTADD"),types:sn(null,[["home","HOME"],["work","WORK"],["domestic","DOM"],["international","INTL"],["postal","POSTAL"],["parcel","PARCEL"]])},namespace:"vcard-temp",type:"address",typeField:"type"},{aliases:[{multiple:!0,path:cs}],element:"LABEL",fields:{lines:nn(null,"LINE"),preferred:Qt(null,"PREF"),types:sn(null,[["home","HOME"],["work","WORK"]])},namespace:"vcard-temp",type:"addressLabel",typeField:"type"},{aliases:[{multiple:!0,path:cs}],element:"TEL",fields:{preferred:Qt(null,"PREF"),types:sn(null,[["home","HOME"],["work","WORK"],["cell","CELL"],["fax","FAX"],["voice","VOICE"],["msg","MSG"]]),value:Ut(null,"NUMBER","",!0)},namespace:"vcard-temp",type:"tel",typeField:"type"},{aliases:[{multiple:!0,path:cs}],element:"PHOTO",fields:{data:Ut(null,"BINVAL"),mediaType:Ut(null,"TYPE"),url:Ut(null,"EXTVAL")},namespace:"vcard-temp",type:"photo",typeField:"type"},{aliases:[{multiple:!0,path:cs}],element:"LOGO",fields:{data:Ut(null,"BINVAL"),mediaType:Ut(null,"TYPE"),url:Ut(null,"EXTVAL")},namespace:"vcard-temp",type:"logo",typeField:"type"},{aliases:[{multiple:!0,path:cs}],element:"CATEGORIES",fields:{value:nn(null,"KEYWORD")},namespace:"vcard-temp",type:"categories",typeField:"type"}],ps=[Dr(Tn,"x",["iq.search.form"]),Dr(qn,"set",["iq.search.paging"]),{element:"query",fields:{email:Ut(null,"email"),familyName:Ut(null,"last"),givenName:Ut(null,"first"),instructions:Ut(null,"instructions"),nick:Ut(null,"nick")},namespace:"jabber:iq:search",path:"iq.search"},{aliases:[{path:"iq.search.items",multiple:!0}],element:"item",fields:{email:Ut(null,"email"),familyName:Ut(null,"last"),givenName:Ut(null,"first"),jid:qr("jid"),nick:Ut(null,"nick")},namespace:"jabber:iq:search"}],ds={aliases:["iq.pubsub.paging"],element:"set",fields:{after:Ut(null,"after"),before:Ut(null,"before"),count:Gt(null,"count"),first:Ut(null,"first"),firstIndex:Pt(null,"first","index"),index:Gt(null,"index"),last:Ut(null,"last"),max:Gt(null,"max")},namespace:qn,path:"paging"},hs={configurable:Qt(null,"subscribe-options"),configurationRequired:$t([{namespace:null,element:"subscribe-options"},{namespace:null,element:"required"}]),jid:qr("jid"),node:St("node"),state:St("subscription"),subid:St("subid")},vs={node:St("node")},ms=[{aliases:["pubsub","iq.pubsub","message.pubsub"],childrenExportOrder:{configure:0,create:100,publish:100,subscribe:100,subscriptionOptions:0},defaultType:"user",element:"pubsub",fields:{publishOptions:cn(null,"publish-options","dataform")},namespace:Fn,type:"user",typeField:"context"},{aliases:["pubsub","iq.pubsub","message.pubsub"],defaultType:"user",element:"pubsub",fields:{purge:Nt(null,"purge","node")},namespace:Bn,type:"owner",typeField:"context"},Dr(Tn,"x",["iq.pubsub.configure.form","iq.pubsub.defaultConfiguration.form","iq.pubsub.defaultSubscriptionOptions.form","iq.pubsub.subscriptionOptions.form","message.pubsub.configuration.form"]),Dr(qn,"set",["iq.pubsub.fetch.paging"]),Gr({pubsubError:en(Mn,Object.values(xa)),pubsubUnsupportedFeature:Nt(Mn,"unsupported","feature")}),{element:"subscribe",fields:{jid:qr("jid"),node:St("node")},namespace:Fn,path:"iq.pubsub.subscribe"},{element:"unsubscribe",fields:{jid:qr("jid"),node:St("node"),subid:St("subid")},namespace:Fn,path:"iq.pubsub.unsubscribe"},{element:"options",fields:{jid:qr("jid"),node:St("node"),subid:St("subid")},namespace:Fn,path:"iq.pubsub.subscriptionOptions"},{aliases:[{path:"iq.pubsub.subscriptions",selector:"user",impliedType:!0}],element:"subscriptions",fields:{jid:qr("jid"),node:St("node")},namespace:Fn,type:"user"},{aliases:[{path:"iq.pubsub.subscriptions",selector:"owner",impliedType:!0}],element:"subscriptions",fields:{jid:qr("jid"),node:St("node")},namespace:Bn,type:"owner"},{aliases:[{path:"iq.pubsub.subscription",selector:"owner"},{impliedType:!0,multiple:!0,path:"iq.pubsub.subscriptions.items",selector:"owner"}],element:"subscription",fields:hs,namespace:Fn},{aliases:[{path:"iq.pubsub.subscription",selector:"user"},{impliedType:!0,multiple:!0,path:"iq.pubsub.subscriptions.items",selector:"user"}],element:"subscription",fields:hs,namespace:Fn,type:"user"},{aliases:[{impliedType:!0,multiple:!0,path:"iq.pubsub.subscriptions.items",selector:"owner"}],element:"subscription",fields:hs,namespace:Bn,type:"owner"},{aliases:[{path:"iq.pubsub.affiliations",selector:"user",impliedType:!0},{path:"message.pubsub.affiliations",selector:"user",impliedType:!0}],element:"affiliations",fields:vs,namespace:Fn,type:"user"},{aliases:[{path:"iq.pubsub.affiliations",selector:"owner",impliedType:!0}],element:"affiliations",fields:vs,namespace:Bn,type:"owner"},{aliases:[{impliedType:!0,multiple:!0,path:"iq.pubsub.affiliations.items",selector:"user"},{impliedType:!0,multiple:!0,path:"message.pubsub.affiliations.items",selector:"user"}],element:"affiliation",fields:{affiliation:St("affiliation"),jid:qr("jid"),node:St("node")},namespace:Fn,type:"user"},{aliases:[{impliedType:!0,multiple:!0,path:"iq.pubsub.affiliations.items",selector:"owner"}],element:"affiliation",fields:{affiliation:St("affiliation"),jid:qr("jid"),node:St("node")},namespace:Bn,type:"owner"},{element:"create",fields:vs,namespace:Fn,path:"iq.pubsub.create"},{aliases:[{path:"iq.pubsub.destroy",selector:"owner"}],element:"delete",fields:{node:St("node"),redirect:Nt(null,"redirect","uri")},namespace:Bn},{aliases:[{path:"iq.pubsub.configure",selector:"owner",impliedType:!0}],element:"configure",fields:vs,namespace:Bn,type:"owner"},{aliases:[{path:"iq.pubsub.configure",selector:"user",impliedType:!0}],element:"configure",fields:vs,namespace:Fn,type:"user"},{element:"default",fields:{node:St("node")},namespace:Fn,path:"iq.pubsub.defaultSubscriptionOptions"},{element:"default",fields:{},namespace:Bn,path:"iq.pubsub.defaultConfiguration"},{element:"publish",fields:vs,namespace:Fn,path:"iq.pubsub.publish"},{element:"retract",fields:{id:Nt(null,"item","id"),node:St("node"),notify:xt("notify")},namespace:Fn,path:"iq.pubsub.retract"},{element:"items",fields:{max:kt("max_items"),node:St("node")},namespace:Fn,path:"iq.pubsub.fetch"},{aliases:["pubsubitem","iq.pubsub.publish.item",{multiple:!0,path:"iq.pubsub.fetch.items"}],element:"item",fields:{id:St("id"),publisher:qr("publisher")},namespace:Fn},{element:"event",fields:{eventType:en(null,["purge","delete","subscription","configuration","items"])},namespace:Dn,path:"message.pubsub",type:"event",typeField:"context"},{aliases:[{path:"message.pubsub.items.published",multiple:!0}],element:"item",fields:{id:St("id"),publisher:qr("publisher")},namespace:Dn,path:"pubsubeventitem"},{element:"purge",fields:vs,namespace:Dn,path:"message.pubsub.purge"},{element:"delete",fields:{node:St("node"),redirect:Nt(null,"redirect","uri")},namespace:Dn,path:"message.pubsub.delete"},{aliases:[{path:"message.pubsub.subscription",selector:"event",impliedType:!0}],element:"subscription",fields:{expires:(ls="expiry",{importer:function(e){var t=e.getAttribute(ls);return"presence"===t?t:t?new Date(t):void 0},exporter:function(e,t){var n;n="string"==typeof t?t:t.toISOString(),e.setAttribute(ls,n)}}),jid:qr("jid"),node:St("node"),subid:St("subid"),type:St("subscription")},namespace:Dn,type:"event"},{element:"configuration",fields:vs,namespace:Dn,path:"message.pubsub.configuration"},{element:"items",fields:{node:St("node"),retracted:rn(null,"retract","id")},namespace:Dn,path:"message.pubsub.items"}],gs=[{element:"query",fields:{activate:Ut(null,"activate"),address:St("dstaddr"),candidateUsed:Fr(null,"streamhost-used","jid"),mode:St("mode","tcp"),sid:St("sid"),udpSuccess:Nt(null,"udpsuccess","dstaddr")},namespace:Un,path:"iq.socks5"},{aliases:[{multiple:!0,path:"iq.socks5.candidates"}],element:"streamhost",fields:{host:St("host"),jid:qr("jid"),port:kt("port"),uri:St("uri")},namespace:Un}],ys=[{aliases:[{multiple:!0,path:"message.links"}],element:"x",fields:{description:Ut(null,"desc"),url:Ut(null,"url")},namespace:zn},{element:"query",fields:{description:Ut(null,"desc"),url:Ut(null,"url")},namespace:"jabber:iq:oob",path:"iq.transferLink"}],bs={element:"html",fields:{alternateLanguageBodies:fn(Jn,"body","xhtmlim"),body:ln(Jn,"body","xhtmlim")},namespace:Gn,path:"message.html"},_s=[Jr({inbandRegistration:Qt("http://jabber.org/features/iq-register","register")}),Dr(Tn,"x",["iq.account.form"]),Dr(zn,"x",["iq.account.registrationLink"]),{element:"query",fields:{address:Ut(null,"address"),date:Jt(null,"date"),email:Ut(null,"email"),familyName:Ut(null,"last"),fullName:Ut(null,"name"),givenName:Ut(null,"first"),instructions:Ut(null,"instructions"),key:Ut(null,"key"),locality:Ut(null,"city"),misc:Ut(null,"misc"),nick:Ut(null,"nick"),password:Ut(null,"password"),phone:Ut(null,"phone"),postalCode:Ut(null,"zip"),region:Ut(null,"state"),registered:Qt(null,"registered"),remove:Qt(null,"remove"),text:Ut(null,"text"),uri:Ut(null,"uri"),username:Ut(null,"username")},namespace:"jabber:iq:register",path:"iq.account"}],ws={aliases:[{path:"message.geoloc",impliedType:!0},{path:"dataform.fields.geoloc",impliedType:!0}].concat(d()([{path:"pubsubcontent",contextField:"itemType"},{path:"pubsubitem.content",contextField:"itemType"},{path:"pubsubeventitem.content",contextField:"itemType"},{path:"iq.pubsub.publish.items",contextField:"itemType"}])),element:"geoloc",fields:{accuracy:Vt(null,"accuracy"),altitude:Vt(null,"alt"),altitudeAccuracy:Vt(null,"altaccuracy"),area:Ut(null,"area"),building:Ut(null,"building"),country:Ut(null,"country"),countryCode:Ut(null,"countrycode"),datum:Ut(null,"datum"),description:Ut(null,"description"),error:Vt(null,"error"),floor:Ut(null,"floor"),heading:Vt(null,"bearing"),lang:Bt(),latitude:Vt(null,"lat"),locality:Ut(null,"locality"),longitude:Vt(null,"lon"),postalCode:Ut(null,"postalcode"),region:Ut(null,"region"),room:Ut(null,"room"),speed:Vt(null,"speed"),street:Ut(null,"street"),text:Ut(null,"text"),timestamp:Jt(null,"timestamp"),tzo:Wt(null,"tzo"),uri:Ut(null,"uri")},namespace:Vn,type:Vn},Ss=[{aliases:[{path:"pubsubcontent",contextField:"itemType"},{path:"pubsubitem.content",contextField:"itemType"},{path:"pubsubeventitem.content",contextField:"itemType"},{path:"iq.pubsub.publish.items",contextField:"itemType"}],element:"data",fields:{data:Dt("base64")},namespace:Hn,path:"avatar",type:Hn,typeField:"itemType"},{aliases:[{path:"avatar",impliedType:!0}].concat(d()([{path:"pubsubcontent",contextField:"itemType"},{path:"pubsubitem.content",contextField:"itemType"},{path:"pubsubeventitem.content",contextField:"itemType"},{path:"iq.pubsub.publish.items",contextField:"itemType"}])),element:"metadata",namespace:Wn,type:Wn,typeField:"itemType",childrenExportOrder:{versions:1,pointers:2}},{aliases:[{multiple:!0,path:"avatar.versions",selector:Wn}],element:"info",fields:{bytes:kt("bytes"),height:kt("height"),id:St("id"),mediaType:St("type"),uri:St("url"),width:kt("width")},namespace:Wn},{aliases:[{multiple:!0,path:"avatar.pointers",selector:Wn}],element:"pointer",fields:{bytes:kt("bytes"),height:kt("height"),id:St("id"),mediaType:St("type"),width:kt("width")},namespace:Wn}],xs=Br({chatState:en(Qn,Object.values(ka))}),ks={element:"query",fields:{name:Ut(null,"name"),os:Ut(null,"os"),version:Ut(null,"version")},namespace:"jabber:iq:version",path:"iq.softwareVersion"},Ts={aliases:[{path:"message.mood",impliedType:!0}].concat(d()([{path:"pubsubcontent",contextField:"itemType"},{path:"pubsubitem.content",contextField:"itemType"},{path:"pubsubeventitem.content",contextField:"itemType"},{path:"iq.pubsub.publish.items",contextField:"itemType"}])),element:"mood",fields:{alternateLanguageText:on(null,"text"),text:Ut(null,"text"),value:en(null,Ra)},namespace:Kn,type:Kn},js={aliases:[{path:"activity",impliedType:!0}].concat(d()([{path:"pubsubcontent",contextField:"itemType"},{path:"pubsubitem.content",contextField:"itemType"},{path:"pubsubeventitem.content",contextField:"itemType"},{path:"iq.pubsub.publish.items",contextField:"itemType"}])),element:"activity",fields:{activity:tn(null,Na,Ca),alternateLanguageText:on(null,"text"),text:Ut(null,"text")},namespace:Yn,type:Yn},Es={element:"handshake",fields:{value:Dt("hex")},namespace:"jabber:component:accept",path:"handshake"},Is={aliases:[{path:"presence.legacyCapabilities",multiple:!0},{path:"features.legacyCapabilities",multiple:!0}],element:"c",fields:{algorithm:St("hash"),legacy:un(!0),node:St("node"),value:St("ver")},namespace:"http://jabber.org/protocol/caps"},Os={aliases:[{impliedType:!0,path:"tune"}].concat(d()([{path:"pubsubcontent",contextField:"itemType"},{path:"pubsubitem.content",contextField:"itemType"},{path:"pubsubeventitem.content",contextField:"itemType"},{path:"iq.pubsub.publish.items",contextField:"itemType"}])),element:"tune",fields:{artist:Ut(null,"artist"),length:Gt(null,"length"),rating:Gt(null,"rating"),source:Ut(null,"source"),title:Ut(null,"title"),track:Ut(null,"track"),uri:Ut(null,"uri")},namespace:Xn,type:Xn},As=["dataformLayout",{multiple:!0,path:"dataformLayout.contents"},{multiple:!0,path:"dataform.layout.contents"}],Rs=[{aliases:[{multiple:!0,path:"dataform.layout"}],element:"page",fields:{label:St("label")},namespace:nr},{aliases:As,element:"section",fields:{label:St("label")},namespace:nr,type:"section",typeField:"type"},{aliases:As,element:"text",fields:{value:Ft()},namespace:nr,type:"text",typeField:"type"},{aliases:As,element:"fieldref",fields:{field:St("var")},namespace:nr,type:"fieldref",typeField:"type"},{aliases:As,element:"reportedref",namespace:nr,type:"reportedref",typeField:"type"}],Ns={element:"body",fields:{acceptMediaTypes:St("accept"),ack:kt("ack"),authId:St("authid"),characterSets:St("charsets"),condition:St("condition"),from:qr("from"),key:St("key"),lang:Bt(),maxClientRequests:kt("requests"),maxHoldOpen:kt("hold"),maxInactivityTime:kt("inactivity"),maxSessionPause:kt("maxpause"),maxWaitTime:kt("wait"),mediaType:St("content"),minPollingInterval:kt("polling"),newKey:St("newkey"),pauseSession:kt("pause"),report:kt("report"),rid:kt("rid"),route:St("string"),seeOtherURI:Ut(null,"uri"),sid:St("sid"),stream:St("stream"),time:kt("time"),to:qr("to"),type:St("type"),version:St("ver"),xmppRestart:It("xmpp","urn:xmpp:xbosh","restart",void 0,{writeValue:function(e){return e?"true":"false"}}),xmppRestartLogic:It("xmpp","urn:xmpp:xbosh","restartlogic",void 0,{writeValue:function(e){return e?"true":"false"}}),xmppVersion:Et("xmpp","urn:xmpp:xbosh","version")},namespace:Zn,path:"bosh"},Cs=[Br({headers:cn(er,"headers","header",!0)}),Ur({headers:cn(er,"headers","header",!0)}),{element:"header",fields:{name:St("name"),value:Ft()},namespace:er,path:"header"}],Ps=[{element:"compression",fields:{methods:nn(null,"method")},namespace:"http://jabber.org/features/compress",path:"features.compression"},{element:"compress",fields:{method:Ut(null,"method")},namespace:tr,path:"compression",type:"start",typeField:"type"},{aliases:["error.compressionError"],element:"failure",fields:{condition:en(null,["unsupported-method","setup-failed","processing-failed"])},namespace:tr,path:"compression",type:"failure",typeField:"type"},{element:"compressed",namespace:tr,path:"compression",type:"success",typeField:"type"}],Ls=[Br({rosterExchange:cn(rr,"x","rosterExchange",!0)}),zr({rosterExchange:cn(rr,"x","rosterExchange",!0)}),{element:"item",fields:{action:St("action"),groups:nn(null,"group"),jid:qr("jid"),name:St("name")},namespace:rr,path:"rosterExchange"}],qs=Ur({vcardAvatar:{importer:function(e){var t=at(e,"vcard-temp:x:update","x");if(t.length){var n=at(t[0],"vcard-temp:x:update","photo");return!n.length||n[0].getText()}},exporter:function(e,t){var n=ot(e,"vcard-temp:x:update","x");if(""===t)ot(n,"vcard-temp:x:update","photo");else{if(!0===t)return;t&&ot(n,"vcard-temp:x:update","photo").children.push(t)}}}}),Fs=[Br({captcha:cn("urn:xmpp:captcha","captcha","dataform")}),zr({captcha:cn("urn:xmpp:captcha","captcha","dataform")})],Ms=[Gr({jingleError:en("urn:xmpp:jingle:errors:1",Object.values(Oa))}),{element:"jingle",fields:{action:St("action"),initiator:qr("initiator"),responder:qr("responder"),sid:St("sid")},namespace:ar,path:"iq.jingle"},{aliases:[{multiple:!0,path:"iq.jingle.contents"}],element:"content",fields:{creator:St("creator"),disposition:St("disposition","session"),name:St("name"),senders:St("senders","both")},namespace:ar},{element:"reason",fields:{alternativeSession:Ut(null,"alternative-session"),condition:en(null,Object.values(Aa)),text:Ut(null,"text")},namespace:ar,path:"iq.jingle.reason"}];function Ds(){return{importer:function(e,t){var n,r=at(e,br,"rtcp-fb"),i=St("type").importer,a=St("subtype").importer,o=St("value").importer,s=[],c=F(r);try{for(c.s();!(n=c.n()).done;){var u=n.value,l=i(u,t),f=a(u,t);s.push(f?{type:l,parameter:f}:{type:l})}}catch(e){c.e(e)}finally{c.f()}var p,d=F(r=at(e,br,"rtcp-fb-trr-int"));try{for(d.s();!(p=d.n()).done;){var h=o(p.value,t);s.push(h?{type:"trr-int",parameter:h}:{type:"trr-int"})}}catch(e){d.e(e)}finally{d.f()}return s},exporter:function(e,t,n){var r,i=St("type").exporter,a=St("subtype").exporter,o=St("value").exporter,s=F(t);try{for(s.s();!(r=s.n()).done;){var c=r.value,u=void 0;"trr-int"===c.type?(u=nt(br,"rtcp-fb-trr-int",n.namespace,e),c.parameter&&o(u,c.parameter,n)):(i(u=nt(br,"rtcp-fb",n.namespace,e),c.type,n),c.parameter&&a(u,c.parameter,n)),e.appendChild(u)}}catch(e){s.e(e)}finally{s.f()}}}}for(var Bs="iq.jingle.info",Us=[{aliases:["iq.jingle.contents.application"],childrenExportOrder:{codecs:4,encryption:5,headerExtensions:6,sourceGroups:8,sources:7,streams:9},element:"description",fields:{media:St("media"),rtcpFeedback:Object.assign(Object.assign({},Ds()),{exportOrder:3}),rtcpMux:Object.assign(Object.assign({},Qt(null,"rtcp-mux")),{exportOrder:1}),rtcpReducedSize:Object.assign(Object.assign({},Qt(null,"rtcp-reduced-size")),{exportOrder:2}),ssrc:St("ssrc")},namespace:or,optionalNamespaces:{rtcpf:br,rtph:_r},type:or},{aliases:[{multiple:!0,path:"iq.jingle.contents.application.headerExtensions",selector:or}],element:"rtp-hdrext",fields:{id:kt("id"),senders:St("senders"),uri:St("uri")},namespace:_r},{aliases:[{multiple:!0,path:"iq.jingle.contents.application.codecs",selector:or},"rtpcodec"],element:"payload-type",fields:{channels:kt("channels"),clockRate:kt("clockrate"),id:St("id"),maxptime:kt("maxptime"),name:St("name"),parameters:pn(or,"parameter","name","value"),ptime:kt("ptime"),rtcpFeedback:Ds()},namespace:or},{aliases:[{multiple:!0,path:"iq.jingle.contents.application.sources",selector:or}],element:"source",fields:{parameters:pn("urn:xmpp:jingle:apps:rtp:ssma:0","parameter","name","value"),ssrc:St("ssrc")},namespace:"urn:xmpp:jingle:apps:rtp:ssma:0"},{aliases:[{multiple:!0,path:"iq.jingle.contents.application.sourceGroups",selector:or}],element:"ssrc-group",fields:{semantics:St("semantics"),sources:rn(null,"source","ssrc")},namespace:"urn:xmpp:jingle:apps:rtp:ssma:0"},{aliases:[{multiple:!0,path:"iq.jingle.contents.application.streams",selector:or}],element:"stream",fields:{id:St("id"),track:St("track")},namespace:"urn:xmpp:jingle:apps:rtp:msid:0"},{aliases:[{path:"iq.jingle.contents.application.encryption",selector:or}],element:"encryption",fields:{required:xt("required")},namespace:or},{aliases:[{multiple:!0,path:"iq.jingle.contents.application.encryption.sdes",selector:or}],element:"crypto",fields:{cryptoSuite:St("crypto-suite"),keyParameters:St("key-params"),sessionParameters:St("session-params"),tag:kt("tag")},namespace:or},{aliases:[{path:"iq.jingle.contents.application.encryption.zrtp",selector:or}],element:"zrtp-hash",fields:{value:Dt("hex"),version:St("version")},namespace:or},{element:"mute",fields:{creator:St("creator"),name:St("name")},namespace:sr,path:Bs,type:La},{element:"unmute",fields:{creator:St("creator"),name:St("name")},namespace:sr,path:Bs,type:qa},{element:"hold",namespace:sr,path:Bs,type:Fa},{element:"unhold",namespace:sr,path:Bs,type:Ma},{element:"active",namespace:sr,path:Bs,type:Da},{element:"ringing",namespace:sr,path:Bs,type:Ba}],zs=[Br({nick:Ut(cr,"nick")}),Ur({nick:Ut(cr,"nick")}),{aliases:[{path:"pubsubcontent",contextField:"itemType"},{path:"pubsubitem.content",contextField:"itemType"},{path:"pubsubeventitem.content",contextField:"itemType"},{path:"iq.pubsub.publish.items",contextField:"itemType"}],element:"nick",fields:{nick:Ft()},namespace:cr,type:cr}],Js=function(e){return[{element:"transport",fields:{gatheringComplete:Qt(null,"gathering-complete"),password:St("pwd"),usernameFragment:St("ufrag")},namespace:e,path:"iq.jingle.contents.transport",type:e,typeField:"transportType"},{aliases:[{impliedType:!0,path:"iq.jingle.contents.transport.remoteCandidate",selector:e}],element:"remote-candidate",fields:{component:kt("component"),ip:St("ip"),port:kt("port")},namespace:e,type:e,typeField:"transportType"},{aliases:[{impliedType:!0,multiple:!0,path:"iq.jingle.contents.transport.candidates",selector:e}],element:"candidate",fields:{component:kt("component"),foundation:St("foundation"),generation:kt("generation"),id:St("id"),ip:St("ip"),network:kt("network"),port:kt("port"),priority:kt("priority"),protocol:St("protocol"),relatedAddress:St("rel-addr"),relatedPort:St("rel-port"),tcpType:St("tcptype"),type:St("type")},namespace:e,type:e,typeField:"transportType"}]},Gs=[].concat(d()(Js(Nr)),d()(Js(ur))),Vs=[{element:"transport",fields:{gatheringComplete:Qt(null,"gathering-complete"),password:St("pwd"),usernameFragment:St("ufrag")},namespace:lr,path:"iq.jingle.contents.transport",type:lr,typeField:"transportType"},{aliases:[{impliedType:!0,multiple:!0,path:"iq.jingle.contents.transport.candidates",selector:lr}],element:"candidate",fields:{component:kt("component"),foundation:St("foundation"),generation:kt("generation"),id:St("id"),ip:St("ip"),port:kt("port"),type:St("type")},namespace:lr,type:lr,typeField:"transportType"}],Hs=[{element:"request",namespace:"urn:xmpp:receipts",path:"message.receipt",type:"request",typeField:"type"},{element:"received",fields:{id:St("id")},namespace:"urn:xmpp:receipts",path:"message.receipt",type:"received",typeField:"type"}],Ws=[{element:"invisible",fields:{probe:xt("probe")},namespace:"urn:xmpp:invisible:0",path:"iq.visibility",type:"invisible",typeField:"type"},{element:"visible",namespace:"urn:xmpp:invisible:0",path:"iq.visibility",type:"visible"}],Qs=[Gr({blocked:Qt("urn:xmpp:blocking:errors","blocked")}),{element:"blocklist",fields:{jids:rn(null,"item","jid")},namespace:"urn:xmpp:blocking",path:"iq.blockList",type:"list",typeField:"action"},{element:"block",fields:{jids:rn(null,"item","jid")},namespace:"urn:xmpp:blocking",path:"iq.blockList",type:"block",typeField:"action"},{element:"unblock",fields:{jids:rn(null,"item","jid")},namespace:"urn:xmpp:blocking",path:"iq.blockList",type:"unblock",typeField:"action"}],Ks=[Jr({streamManagement:Qt(fr,"sm")}),{element:"a",fields:{handled:kt("h")},namespace:fr,path:"sm",type:"ack",typeField:"type"},{element:"r",namespace:fr,path:"sm",type:"request",typeField:"type"},{element:"enable",fields:{allowResumption:xt("resume")},namespace:fr,path:"sm",type:"enable",typeField:"type"},{element:"enabled",fields:{id:St("id"),resume:xt("resume")},namespace:fr,path:"sm",type:"enabled",typeField:"type"},{element:"resume",fields:{handled:kt("h"),previousSession:St("previd")},namespace:fr,path:"sm",type:"resume",typeField:"type"},{element:"resumed",fields:{handled:kt("h"),previousSession:St("previd")},namespace:fr,path:"sm",type:"resumed",typeField:"type"},{element:"failed",fields:{handled:kt("h")},namespace:fr,path:"sm",type:"failed",typeField:"type"}],Ys=zr({ping:Qt("urn:xmpp:ping","ping")}),Xs={element:"time",fields:{tzo:Wt(null,"tzo"),utc:Jt(null,"utc")},namespace:"urn:xmpp:time",path:"iq.time"},$s={aliases:["message.delay","presence.delay"],element:"delay",fields:{from:qr("from"),reason:Ft(),timestamp:jt("stamp")},namespace:pr},Zs={2:"urn:xmpp:extdisco:2",1:"urn:xmpp:extdisco:1"},ec=[],tc=0,nc=Object.entries(Zs);tc<nc.length;tc++){var rc=g()(nc[tc],2),ic=rc[0],ac=rc[1];ec.push({aliases:["iq.externalServiceCredentials"],defaultType:"2",element:"credentials",fields:{expires:qt(null,"service","expires"),host:Nt(null,"service","host"),name:Nt(null,"service","name"),password:Nt(null,"service","password"),port:Pt(null,"service","port"),restricted:Ct(null,"service","restricted"),transport:Nt(null,"service","transport"),type:Nt(null,"service","type"),username:Nt(null,"service","username")},namespace:ac,type:ic,typeField:"version"},{aliases:["iq.externalServices"],defaultType:"2",element:"services",fields:{type:St("type")},namespace:ac,type:ic,typeField:"version"},{aliases:[{path:"iq.externalServices.services",multiple:!0}],defaultType:"2",element:"service",fields:{expires:jt("expires"),host:St("host"),name:St("name"),password:St("password"),port:kt("port"),restricted:xt("restricted"),transport:St("transport"),type:St("type"),username:St("username")},namespace:ac,type:ic,typeField:"version"})}for(var oc=[{element:"media",fields:{height:kt("height"),width:kt("width")},namespace:"urn:xmpp:media-element",path:"dataform.fields.media"},{aliases:[{multiple:!0,path:"dataform.fields.media.sources"}],element:"uri",fields:{mediaType:St("type"),uri:Ft()},namespace:"urn:xmpp:media-element"}],sc=Br({requestingAttention:Qt("urn:xmpp:attention:0","attention")}),cc={aliases:["iq.bits",{path:"message.bits",multiple:!0},{path:"presence.bits",multiple:!0},{path:"iq.jingle.bits",multiple:!0}],element:"data",fields:{cid:St("cid"),data:Dt("base64"),maxAge:kt("max-age"),mediaType:St("type")},namespace:dr},uc=[Dr(Sr,"hash",[{path:"file.hashes",multiple:!0},{path:"file.range.hashes",multiple:!0}]),Dr("urn:xmpp:hashes:1","hash",[{path:"file.hashes",multiple:!0},{path:"file.range.hashes",multiple:!0}]),Dr(Sr,"hash-used",[{path:"file.hashesUsed",multiple:!0}]),Dr("urn:xmpp:thumbs:1","thumbnail",[{path:"file.thumbnails",multiple:!0}])],lc=0,fc=["urn:xmpp:jingle:apps:file-transfer:4",hr];lc<fc.length;lc++){var pc=fc[lc];uc=uc.concat([{aliases:["file",{impliedType:!0,path:"iq.jingle.contents.application.file",selector:pc},{impliedType:!0,path:"iq.jingle.info.file",selector:"{".concat(pc,"}checksum")}],defaultType:hr,element:"file",fields:{date:Jt(null,"date"),description:Ut(null,"desc"),mediaType:Ut(null,"media-type"),name:Ut(null,"name"),size:Gt(null,"size")},namespace:pc,type:pc,typeField:"version"},{aliases:[{impliedType:!0,path:"file.range",selector:pc}],defaultType:hr,element:"range",fields:{length:kt("length"),offset:kt("offset",0)},namespace:pc,type:pc,typeField:"version"},{element:"description",namespace:pc,path:"iq.jingle.contents.application",type:pc,typeField:"applicationType"},{element:"received",fields:{creator:St("creator"),name:St("name")},namespace:pc,path:"iq.jingle.info",type:"{".concat(pc,"}received"),typeField:"infoType"},{element:"checksum",fields:{creator:St("creator"),name:St("name")},namespace:pc,path:"iq.jingle.info",type:"{".concat(pc,"}checksum"),typeField:"infoType"}])}for(var dc=uc,hc={element:"description",namespace:vr,path:"iq.jingle.contents.application",type:vr,typeField:"applicationType"},vc=[{element:"transport",fields:{activated:Nt(null,"activated","cid"),address:St("dstaddr"),candidateError:Qt(null,"candidate-error"),candidateUsed:Nt(null,"candidate-used","cid"),mode:St("mode","tcp"),proxyError:Qt(null,"proxy-error"),sid:St("sid")},namespace:mr,path:"iq.jingle.contents.transport",type:mr,typeField:"transportType"},{aliases:[{multiple:!0,path:"iq.jingle.contents.transport.candidates",selector:mr}],element:"candidate",fields:{cid:St("cid"),host:St("host"),jid:qr("jid"),port:kt("port"),priority:kt("priority"),type:St("type"),uri:St("uri")},namespace:mr}],mc={element:"transport",fields:{ack:{importer:function(e,t){return"message"!==St("stanza","iq").importer(e,t)},exporter:function(e,t,n){!1===t&&St("stanza").exporter(e,"message",n)}},blockSize:kt("block-size"),sid:St("sid")},namespace:gr,path:"iq.jingle.contents.transport",type:gr,typeField:"transportType"},gc=[Dr(dr,"data",[{path:"iq.jingle.bits",multiple:!0}]),{element:"thumbnail",fields:{height:kt("height"),mediaType:St("media-type"),uri:St("uri"),width:kt("width")},namespace:"urn:xmpp:thumbs:1",path:"thumbnail"}],yc=[Dr(wr,"forwarded",["message.carbon.forward"]),{element:"enable",namespace:yr,path:"iq.carbons",type:"enable",typeField:"action"},{element:"disable",namespace:yr,path:"iq.carbons",type:"disable",typeField:"action"},{element:"sent",namespace:yr,path:"message.carbon",type:"sent",typeField:"type"},{element:"received",namespace:yr,path:"message.carbon",type:"received",typeField:"type"}],bc=[].concat(d()(Object.values(ma).map((function(e){return Dr(e,"message",["forward.message"])}))),d()(Object.values(ma).map((function(e){return Dr(e,"presence",["forward.presence"])}))),d()(Object.values(ma).map((function(e){return Dr(e,"iq",["forward.iq"])}))),[Dr(pr,"delay",["forward.delay"]),{aliases:["message.forward"],element:"forwarded",namespace:wr,path:"forward"}]),_c=[{defaultType:"2",element:"hash",fields:{algorithm:St("algo"),value:Dt("base64"),version:un("2")},namespace:Sr,path:"hash",type:"2",typeField:"version"},{element:"hash-used",fields:{algorithm:St("algo"),version:un("2")},namespace:Sr,path:"hashUsed"},{element:"hash",fields:{algorithm:St("algo"),value:Dt("hex"),version:un("1")},namespace:"urn:xmpp:hashes:1",path:"hash",type:"1",typeField:"version"}],wc=[{element:"rtt",fields:{event:St("event","edit"),id:St("id"),seq:kt("seq")},namespace:kr,path:"message.rtt"},{aliases:[{path:"message.rtt.actions",multiple:!0}],element:"t",fields:{position:kt("p"),text:Ft()},namespace:kr,type:"insert",typeField:"type"},{aliases:[{path:"message.rtt.actions",multiple:!0}],element:"e",fields:{length:kt("n",1),position:kt("p")},namespace:kr,type:"erase",typeField:"type"},{aliases:[{multiple:!0,path:"message.rtt.actions"}],element:"w",fields:{duration:kt("n",0)},namespace:kr,type:"wait",typeField:"type"}],Sc=Br({replace:Nt("urn:xmpp:message-correct:0","replace","id")}),xc={2:Tr,1:"urn:xmpp:mam:1"},kc=[Dr(Tn,"x",["iq.archive.form"]),Dr(wr,"forwarded",["message.archive.item"]),Dr(qn,"set",["iq.archive.paging"])],Tc=0,jc=Object.entries(xc);Tc<jc.length;Tc++){var Ec=g()(jc[Tc],2),Ic=Ec[0],Oc=Ec[1];kc.push({defaultType:"query",defaultVersion:"2",element:"query",fields:{node:St("node"),queryId:St("queryid")},namespace:Oc,path:"iq.archive",type:"query",typeField:"type",version:Ic,versionField:"version"},{element:"fin",fields:{complete:xt("complete"),stable:xt("stable")},namespace:Oc,path:"iq.archive",type:"result",version:Ic},{element:"prefs",fields:{default:St("default"),always:Zt([{namespace:null,element:"always"},{namespace:null,element:"jid"}]),never:Zt([{namespace:null,element:"never"},{namespace:null,element:"jid"}])},namespace:Oc,path:"iq.archive",type:"preferences",version:Ic},{element:"result",defaultType:"2",fields:{id:St("id"),queryId:St("queryid")},namespace:Oc,path:"message.archive",type:Ic,typeField:"version"})}var Ac="message.marker";var Rc=[qo,Fo,Ko,Yo,Xo,$o,Zo,es,ts,ns,rs,is,as,os,ss,fs,ps,ds,ms,gs,ys,bs,_s,ws,Ss,xs,ks,Ts,js,Es,Is,Os,Ns,Cs,Ps,Rs,Ls,qs,Fs,Ms,Us,zs,Gs,Vs,Hs,Ws,Qs,Ks,Ys,Xs,$s,ec,oc,sc,cc,dc,hc,vc,mc,gc,yc,bc,_c,wc,Sc,kc,[Ur({hats:cn(jr,"hats","hat",!0)}),{element:"hat",fields:{id:St("name"),name:St("displayName")},namespace:jr,path:"hat"}],Ur({idleSince:Jt("urn:xmpp:idle:1","since")}),{aliases:[{multiple:!0,path:"iq.jingle.contents.transport.fingerprints",selector:ur},{multiple:!0,path:"iq.jingle.contents.transport.fingerprints",selector:Nr},{multiple:!0,path:"iq.jingle.contents.application.encryption.dtls",selector:or}],element:"fingerprint",fields:{algorithm:St("hash"),setup:St("setup"),value:Ft()},namespace:"urn:xmpp:jingle:apps:dtls:0"},[{element:"markable",namespace:Er,path:Ac,type:"markable",typeField:"type"},{element:"received",fields:{id:St("id")},namespace:Er,path:Ac,type:"received"},{element:"displayed",fields:{id:St("id")},namespace:Er,path:Ac,type:"displayed"},{element:"acknowledged",fields:{id:St("id")},namespace:Er,path:Ac,type:"acknowledged"}],Br({processingHints:{importer:function(e){var t,n={},r=!1,i=F(e.children);try{for(i.s();!(t=i.n()).done;){var a=t.value;if("string"!=typeof a&&a.getNamespace()===Ir)switch(a.getName()){case"no-copy":n.noCopy=!0,r=!0;break;case"no-permanent-store":n.noPermanentStore=!0,r=!0;break;case"no-store":n.noStore=!0,r=!0;break;case"store":n.store=!0,r=!0}}}catch(e){i.e(e)}finally{i.f()}return r?n:void 0},exporter:function(e,t,n){t.noCopy&&e.appendChild(nt(Ir,"no-copy",n.namespace,e)),t.noPermanentStore&&e.appendChild(nt(Ir,"no-permanent-store",n.namespace,e)),t.noStore&&e.appendChild(nt(Ir,"no-store",n.namespace,e)),t.store&&e.appendChild(nt(Ir,"store",n.namespace,e))}}}),[Br({json:Ht(Or,"json")}),{aliases:[{path:"pubsubcontent",contextField:"itemType"},{path:"pubsubitem.content",contextField:"itemType"},{path:"pubsubeventitem.content",contextField:"itemType"},{path:"iq.pubsub.publish.items",contextField:"itemType"}],element:"json",fields:{json:Mt()},namespace:Or,type:Or},{aliases:[{path:"message.jsonPayloads",multiple:!0}],element:"payload",fields:{type:St("datatype"),data:Ht(Or,"json")},namespace:"urn:xmpp:json-msg:0"}],[{aliases:[{path:"iq.jingle.groups",multiple:!0}],element:"group",fields:{contents:rn(null,"content","name"),semantics:St("semantics")},namespace:"urn:xmpp:jingle:apps:grouping:0"}],{aliases:[{path:"iq.jingle.contents.transport.sctp",selector:ur},{path:"iq.jingle.contents.transport.sctp",selector:Nr}],element:"sctpmap",fields:{port:kt("number"),protocol:St("protocol"),streams:St("streams")},namespace:"urn:xmpp:jingle:transports:dtls-sctp:1"},[{element:"active",namespace:"urn:xmpp:csi:0",path:"csi",type:"active",typeField:"state"},{element:"inactive",namespace:"urn:xmpp:csi:0",path:"csi",type:"inactive",typeField:"state"}],[Dr(Tn,"x",["iq.push.form","pushNotification.form"]),{element:"enable",fields:{jid:qr("jid"),node:St("node")},namespace:Ar,path:"iq.push",type:"enable",typeField:"action"},{element:"disable",fields:{jid:qr("jid"),node:St("node")},namespace:Ar,path:"iq.push",type:"disable",typeField:"action"},{aliases:[{path:"pubsubcontent",contextField:"itemType"},{path:"pubsubitem.content",contextField:"itemType"},{path:"pubsubeventitem.content",contextField:"itemType"},{path:"iq.pubsub.publish.items",contextField:"itemType"}],element:"notification",namespace:Ar,path:"pushNotification",type:Ar,typeField:"itemType"}],[Br({originId:Nt("urn:xmpp:sid:0","origin-id","id")}),{aliases:[{path:"message.stanzaIds",multiple:!0}],element:"stanza-id",fields:{by:qr("by"),id:St("id")},namespace:"urn:xmpp:sid:0"}],[Gr({httpUploadError:en(Rr,["file-too-large","retry"]),httpUploadMaxFileSize:Xt([{namespace:Rr,element:"file-too-large"},{namespace:Rr,element:"max-file-size"}]),httpUploadRetry:qt(Rr,"retry","stamp")}),{element:"request",fields:{mediaType:St("content-type"),name:St("filename"),size:kt("size")},namespace:Rr,path:"iq.httpUpload",type:"request",typeField:"type"},{element:"slot",fields:{download:Nt(null,"get","url")},namespace:Rr,path:"iq.httpUpload",type:"slot"},{aliases:[{path:"iq.httpUpload.upload",selector:"slot"}],element:"put",fields:{url:St("url")},namespace:Rr},{aliases:[{path:"iq.httpUpload.upload.headers",multiple:!0}],element:"header",fields:{name:St("name"),value:Ft()},namespace:Rr}],{element:"encryption",fields:{id:St("namespace"),name:St("name")},namespace:"urn:xmpp:eme:0",path:"message.encryptionMethod"},[{aliases:["message.omemo"],element:"encrypted",fields:{payload:zt(null,"payload","base64")},namespace:Cr,path:"omemo"},{element:"header",fields:{iv:zt(null,"iv","base64"),sid:kt("sid")},namespace:Cr,path:"omemo.header"},{aliases:[{path:"omemo.header.keys",multiple:!0}],element:"key",fields:{preKey:xt("prekey"),rid:kt("rid"),value:Dt("base64")},namespace:Cr},{aliases:[{path:"pubsubcontent",contextField:"itemType"},{path:"pubsubitem.content",contextField:"itemType"},{path:"pubsubeventitem.content",contextField:"itemType"},{path:"iq.pubsub.publish.items",contextField:"itemType"}],element:"list",fields:{devices:an(null,"device","id")},namespace:Cr,type:"eu.siacs.conversations.axolotl.devicelist",typeField:"itemType"},{element:"preKeyPublic",fields:{id:kt("preKeyId"),value:Dt("base64")},namespace:Cr,path:"omemoPreKey"},{element:"signedPreKeyPublic",fields:{id:kt("signedPreKeyId"),value:Dt("base64")},namespace:Cr,path:"omemoDevice.signedPreKeyPublic"},{aliases:[{path:"pubsubcontent",contextField:"itemType"},{path:"pubsubitem.content",contextField:"itemType"},{path:"pubsubeventitem.content",contextField:"itemType"},{path:"iq.pubsub.publish.items",contextField:"itemType"}],element:"bundle",fields:{identityKey:zt(null,"identityKey","base64"),preKeys:cn(null,"prekeys","omemoPreKey",!0),signedPreKeySignature:zt(null,"signedPreKeySignature","base64")},namespace:Cr,path:"omemoDevice",type:"eu.siacs.conversations.axolotl.bundles",typeField:"itemType"}],[{element:"XRD",fields:{subject:Ut(null,"Subject")},namespace:Pr,path:"xrd"},{aliases:[{path:"xrd.links",multiple:!0}],element:"Link",fields:{href:St("href"),rel:St("rel"),type:St("type")},namespace:Pr}]],Nc=Object.freeze({__proto__:null,default:Rc}),Cc=function(){function e(t){w()(this,e),this.active=!1,this.maxRetries=5,this.stream=t,this.maxTimeout=1100*this.stream.maxWaitTime}return x()(e,[{key:"send",value:function(e,t){return Object(A.__awaiter)(this,void 0,void 0,b.a.mark((function n(){var r,i,a,o;return b.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:this.rid=e,this.active=!0,r=0;case 3:if(!(r<=this.maxRetries)){n.next=35;break}return r+=1,n.prev=5,n.next=8,ta(Ai(this.stream.url,{body:t,headers:{"Content-Type":this.stream.contentType},method:"POST"}),this.maxTimeout,(function(){return new Error("Request timed out")}));case 8:if((i=n.sent).ok){n.next=11;break}throw new Error("HTTP Status Error: "+i.status);case 11:return n.next=13,i.text();case 13:return a=n.sent,this.active=!1,n.abrupt("return",a);case 18:if(n.prev=18,n.t0=n.catch(5),1!==r){n.next=24;break}return n.abrupt("continue",3);case 24:if(!(r<this.maxRetries)){n.next=31;break}return o=Math.min(this.maxTimeout,1e3*Math.pow(r,2)),n.next=28,na(o+1e3*Math.random());case 28:return n.abrupt("continue",3);case 31:throw this.active=!1,n.t0;case 33:n.next=3;break;case 35:throw new Error("Request failed");case 36:case"end":return n.stop()}}),n,this,[[5,18]])})))}}]),e}(),Pc=function(e){T()(n,e);var t=D(n);function n(e,r,i){var o;return w()(this,n),(o=t.call(this,{objectMode:!0})).rid=Math.floor(4294967295*Math.random()),o.sid="",o.maxHoldOpen=2,o.maxWaitTime=30,o.contentType="text/xml; charset=utf-8",o.channels=[new Cc(a()(o)),new Cc(a()(o))],o.activeChannelID=0,o.queue=[],o.isEnded=!1,o.client=e,o.sm=r,o.stanzas=i,o.on("data",(function(e){o.client.emit("stream:data",e.stanza,e.kind)})),o.on("end",(function(){o.isEnded=!0,clearTimeout(o.idleTimeout),o.client.transport===a()(o)&&o.client.emit("--transport-disconnected")})),o}return x()(n,[{key:"_write",value:function(e,t,n){this.queue.push([e,n]),this.scheduleRequests()}},{key:"_writev",value:function(e,t){this.queue.push([e.map((function(e){return e.chunk})).join(""),t]),this.scheduleRequests()}},{key:"_read",value:function(){}},{key:"process",value:function(e){var t=this,n=new Hr({acceptLanguages:this.config.acceptLanguages,allowComments:!1,lang:this.config.lang,registry:this.stanzas,rootKey:"bosh",wrappedStream:!0});n.on("error",(function(e){var n={condition:ya.InvalidXML};return t.client.emit("stream:error",n,e),t.send("error",n),t.disconnect()})),n.on("data",(function(e){if("stream-start"===e.event)return t.stream=e.stanza,void("terminate"===e.stanza.type?(t.hasStream=!1,t.rid=void 0,t.sid=void 0,t.isEnded||(t.isEnded=!0,t.client.emit("bosh:terminate",e.stanza),t.client.emit("stream:end"),t.push(null))):t.hasStream||(t.hasStream=!0,t.stream=e.stanza,t.sid=e.stanza.sid||t.sid,t.maxWaitTime=e.stanza.maxWaitTime||t.maxWaitTime,t.client.emit("stream:start",e.stanza)));e.event||t.push({kind:e.kind,stanza:e.stanza})})),this.client.emit("raw","incoming",e),n.write(e),this.scheduleRequests()}},{key:"connect",value:function(e){if(this.config=e,this.url=e.url,e.rid&&(this.rid=e.rid),e.sid&&(this.sid=e.sid),e.wait&&(this.maxWaitTime=e.wait),e.maxHoldOpen&&(this.maxHoldOpen=e.maxHoldOpen),this.sid)return this.hasStream=!0,this.stream={},this.client.emit("connected"),this.client.emit("session:prebind",this.config.jid),void this.client.emit("session:started");this._send({lang:e.lang,maxHoldOpen:this.maxHoldOpen,maxWaitTime:this.maxWaitTime,to:e.server,version:"1.6",xmppVersion:"1.0"})}},{key:"restart",value:function(){this.hasStream=!1,this._send({to:this.config.server,xmppRestart:!0})}},{key:"disconnect",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.hasStream&&e?this._send({type:"terminate"}):(this.stream=void 0,this.sid=void 0,this.rid=void 0,this.client.emit("--transport-disconnected"))}},{key:"send",value:function(e,t){var n;return Object(A.__awaiter)(this,void 0,void 0,b.a.mark((function r(){var i,a=this;return b.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t&&(i=null===(n=this.stanzas.export(e,t))||void 0===n?void 0:n.toString()),i){r.next=3;break}return r.abrupt("return");case 3:return r.abrupt("return",new Promise((function(e,t){a.write(i,"utf8",(function(n){return n?t(n):e()}))})));case 4:case"end":return r.stop()}}),r,this)})))}},{key:"toggleChannel",value:function(){this.activeChannelID=0===this.activeChannelID?1:0}},{key:"_send",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object(A.__awaiter)(this,void 0,void 0,b.a.mark((function n(){var r,i,a,o=this;return b.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!this.isEnded){n.next=2;break}return n.abrupt("return");case 2:r=this.rid++,i=this.stanzas.export("bosh",Object.assign(Object.assign({},e),{rid:r,sid:this.sid})),a=t?[i.openTag(),t,i.closeTag()].join(""):i.toString(),this.client.emit("raw","outgoing",a),this.sendingChannel.send(r,a).then((function(e){o.process(e)})).catch((function(e){o.end(e)})),this.toggleChannel();case 8:case"end":return n.stop()}}),n,this)})))}},{key:"_poll",value:function(){return Object(A.__awaiter)(this,void 0,void 0,b.a.mark((function e(){var t,n,r=this;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.isEnded){e.next=2;break}return e.abrupt("return");case 2:t=this.rid++,n=this.stanzas.export("bosh",{rid:t,sid:this.sid}).toString(),this.client.emit("raw","outgoing",n),this.pollingChannel.send(t,n).then((function(e){r.process(e)})).catch((function(e){r.end(e)}));case 6:case"end":return e.stop()}}),e,this)})))}},{key:"scheduleRequests",value:function(){var e=this;clearTimeout(this.idleTimeout),this.idleTimeout=setTimeout((function(){e.fireRequests()}),10)}},{key:"fireRequests",value:function(){if(!this.isEnded)if(this.queue.length)if(this.sendingChannel.active)this.scheduleRequests();else{var e=this.queue.shift(),t=g()(e,2),n=t[0],r=t[1];this._send({},n),r()}else!this.authenticated||this.channels[0].active||this.channels[1].active||this._poll()}},{key:"sendingChannel",get:function(){return this.channels[this.activeChannelID]}},{key:"pollingChannel",get:function(){return this.channels[0===this.activeChannelID?1:0]}}]),n}(L.Duplex),Lc=function(t){T()(r,t);var n=D(r);function r(e,t,i){var o;return w()(this,r),(o=n.call(this,{objectMode:!0})).sm=t,o.stanzas=i,o.closing=!1,o.client=e,o.on("data",(function(e){o.client.emit("stream:data",e.stanza,e.kind)})),o.on("error",(function(){o.end()})),o.on("end",(function(){o.client.transport===a()(o)&&o.client.emit("--transport-disconnected")})),o}return x()(r,[{key:"_read",value:function(){}},{key:"_write",value:function(t,n,r){if(!this.socket||1!==this.socket.readyState)return r(new Error("Socket closed"));var i=e.from(t,"utf8").toString();this.client.emit("raw","outgoing",i),this.socket.send(i),r()}},{key:"connect",value:function(t){var n=this;this.config=t,this.hasStream=!1,this.closing=!1,this.parser=new Hr({acceptLanguages:this.config.acceptLanguages,allowComments:!1,lang:this.config.lang,registry:this.stanzas,wrappedStream:!1}),this.parser.on("data",(function(e){var t=e.kind,r=e.stanza;if("stream"===t){if("open"===r.action)return n.hasStream=!0,n.stream=r,n.client.emit("stream:start",r);if("close"===r.action)return n.client.emit("stream:end"),n.disconnect()}n.push({kind:e.kind,stanza:e.stanza})})),this.parser.on("error",(function(e){var t={condition:ya.InvalidXML};return n.client.emit("stream:error",t,e),n.write(n.stanzas.export("error",t).toString()),n.disconnect()})),this.socket=new Ri(t.url,"xmpp"),this.socket.onopen=function(){n.emit("connect"),n.sm.started=!1,n.client.emit("connected"),n.write(n.startHeader())},this.socket.onmessage=function(t){var r=e.from(t.data,"utf8").toString();n.client.emit("raw","incoming",r),n.parser&&n.parser.write(r)},this.socket.onclose=function(){n.push(null)}}},{key:"disconnect",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.socket&&!this.closing&&this.hasStream&&e?(this.closing=!0,this.write(this.closeHeader())):(this.hasStream=!1,this.stream=void 0,this.socket&&(this.end(),this.socket.close(),this.client.transport===this&&this.client.emit("--transport-disconnected")),this.socket=void 0)}},{key:"send",value:function(e,t){var n;return Object(A.__awaiter)(this,void 0,void 0,b.a.mark((function r(){var i,a=this;return b.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t&&(i=null===(n=this.stanzas.export(e,t))||void 0===n?void 0:n.toString()),i){r.next=3;break}return r.abrupt("return");case 3:return r.abrupt("return",new Promise((function(e,t){a.write(i,"utf8",(function(n){return n?t(n):e()}))})));case 4:case"end":return r.stop()}}),r,this)})))}},{key:"restart",value:function(){this.hasStream=!1,this.write(this.startHeader())}},{key:"startHeader",value:function(){return this.stanzas.export("stream",{action:"open",lang:this.config.lang,to:this.config.server,version:"1.0"}).toString()}},{key:"closeHeader",value:function(){return this.stanzas.export("stream",{action:"close"}).toString()}}]),r}(L.Duplex),qc=function(e){T()(n,e);var t=D(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};w()(this,n),(e=t.call(this)).reconnectAttempts=0,e.setMaxListeners(100),e.off=e.removeListener,e.updateConfig(r),e.jid="",e.sasl=new Pi,e.sasl.register("EXTERNAL",Ji,1e3),e.sasl.register("SCRAM-SHA-256-PLUS",Wi,350),e.sasl.register("SCRAM-SHA-256",Wi,300),e.sasl.register("SCRAM-SHA-1-PLUS",Wi,250),e.sasl.register("SCRAM-SHA-1",Wi,200),e.sasl.register("DIGEST-MD5",Hi,100),e.sasl.register("OAUTHBEARER",Vi,100),e.sasl.register("X-OAUTH2",Gi,50),e.sasl.register("PLAIN",Gi,1),e.sasl.register("ANONYMOUS",zi,0),e.stanzas=new hn,e.stanzas.define(Rc),e.use(Po),e.sm=new z,void 0!==e.config.allowResumption&&(e.sm.allowResume=e.config.allowResumption),e.sm.on("prebound",(function(t){e.jid=t,e.emit("session:bound",t)})),e.on("session:bound",(function(t){return e.sm.bind(t)})),e.sm.on("send",(function(t){return e.send("sm",t)})),e.sm.on("acked",(function(t){return e.emit("stanza:acked",t)})),e.sm.on("failed",(function(t){return e.emit("stanza:failed",t)})),e.sm.on("hibernated",(function(t){return e.emit("stanza:hibernated",t)})),e.sm.on("begin-resend",(function(){return e.outgoingDataQueue.pause()})),e.sm.on("resend",(function(t){var n=t.kind,r=t.stanza;return e.send(n,r,!0)})),e.sm.on("end-resend",(function(){return e.outgoingDataQueue.resume()}));for(var i=function(){var t=s[o];e.on("stanza:".concat(t),(function(n){"message"===n.kind&&e.emit("message:".concat(t),n.stanza)}))},o=0,s=["acked","hibernated","failed"];o<s.length;o++)i();e.transports={bosh:Pc,websocket:Lc},e.incomingDataQueue=Object(R.priorityQueue)((function(t,n){return Object(A.__awaiter)(a()(e),void 0,void 0,b.a.mark((function e(){var r,i;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.kind,i=t.stanza,this.emit(r,i),i.id&&this.emit(r+":id:"+i.id,i),"message"!==r&&"presence"!==r&&"iq"!==r){e.next=9;break}return this.emit("stanza",i),e.next=7,this.sm.handle();case 7:e.next=15;break;case 9:if("sm"!==r){e.next=15;break}if("ack"!==i.type){e.next=14;break}return e.next=13,this.sm.process(i);case 13:this.emit("stream:management:ack",i);case 14:"request"===i.type&&this.sm.ack();case 15:n&&n();case 16:case"end":return e.stop()}}),e,this)})))}),1);var c=function(t,n){["message","presence","iq"].includes(t)&&(e.sm.started&&e.sm.resumable?e.sm.resumable&&!e.transport&&e.emit("stanza:hibernated",{kind:t,stanza:n}):e.emit("stanza:failed",{kind:t,stanza:n}))};return e.outgoingDataQueue=Object(R.priorityQueue)((function(t,n){return Object(A.__awaiter)(a()(e),void 0,void 0,b.a.mark((function e(){var r,i,a,o,s;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=t.kind,a=t.stanza,o=t.replay,e.t0=o,e.t0){e.next=6;break}return e.next=5,this.sm.track(i,a);case 5:e.t0=e.sent;case 6:if(s=e.t0,"message"===i&&(o?this.emit("message:retry",a):this.emit("message:sent",a,!1)),!this.transport){e.next=21;break}return e.prev=9,e.next=12,this.transport.send(i,a);case 12:s&&(null===(r=this.transport)||void 0===r||r.send("sm",{type:"request"})),e.next=19;break;case 15:e.prev=15,e.t1=e.catch(9),console.error(e.t1),c(i,a);case 19:e.next=22;break;case 21:c(i,a);case 22:n&&n();case 23:case"end":return e.stop()}}),e,this,[[9,15]])})))}),1),e.on("stream:data",(function(t,n){e.incomingDataQueue.push({kind:n,stanza:t},0)})),e.on("--transport-disconnected",(function(){return Object(A.__awaiter)(a()(e),void 0,void 0,b.a.mark((function e(){var t,n=this;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=[],this.incomingDataQueue.idle()||t.push(this.incomingDataQueue.drain()),this.outgoingDataQueue.idle()||t.push(this.outgoingDataQueue.drain()),e.next=5,Promise.all(t);case 5:return e.next=7,this.sm.hibernate();case 7:this.transport&&delete this.transport,this.emit("--reset-stream-features"),!this.sessionTerminating&&this.config.autoReconnect&&(this.reconnectAttempts+=1,clearTimeout(this.reconnectTimer),this.reconnectTimer=setTimeout((function(){n.connect()}),1e3*Math.min(Math.pow(2,this.reconnectAttempts)+Math.random(),this.config.maxReconnectBackoff||32))),this.emit("disconnected");case 11:case"end":return e.stop()}}),e,this)})))})),e.on("iq",(function(t){var n=t.type,r=t.payloadType,i="iq:"+n+":"+r;if("get"===n||"set"===n){if("invalid-payload-count"===r)return e.sendIQError(t,{error:{condition:"bad-request",type:"modify"}});if("unknown-payload"===r||0===e.listenerCount(i))return e.sendIQError(t,{error:{condition:"service-unavailable",type:"cancel"}});e.emit(i,t)}})),e.on("message",(function(t){var n=t.alternateLanguageBodies&&t.alternateLanguageBodies.length||t.links&&t.links.length,r=t.marker&&"markable"!==t.marker.type;n&&!r&&("chat"===t.type||"normal"===t.type?e.emit("chat",t):"groupchat"===t.type&&e.emit("groupchat",t)),"error"===t.type&&e.emit("message:error",t)})),e.on("presence",(function(t){var n=t.type||"available";"error"===n&&(n="presence:error"),e.emit(n,t)})),e.on("session:started",(function(){e.sessionStarting=!1,e.reconnectAttempts=0,e.reconnectTimer&&clearTimeout(e.reconnectTimer)})),e}return x()(n,[{key:"updateConfig",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.config||{};this.config=Object.assign(Object.assign({allowResumption:!0,jid:"",transports:{bosh:!0,websocket:!0},useStreamManagement:!0},t),e),this.config.server||(this.config.server=xe(this.config.jid)),this.config.password&&(this.config.credentials=this.config.credentials||{},this.config.credentials.password=this.config.password,delete this.config.password)}},{key:"emit",value:function(e){for(var t,r=arguments.length,i=new Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];var o,c=(t=s()(O()(n.prototype),"emit",this)).call.apply(t,[this,e].concat(i));"raw"===e?(s()(O()(n.prototype),"emit",this).call(this,"raw:".concat(i[0]),i[1]),s()(O()(n.prototype),"emit",this).call(this,"raw:*","raw:".concat(i[0]),i[1]),s()(O()(n.prototype),"emit",this).call(this,"*","raw:".concat(i[0]),i[1])):(o=s()(O()(n.prototype),"emit",this)).call.apply(o,[this,"*",e].concat(i));return c}},{key:"use",value:function(e){"function"==typeof e&&e(this,this.stanzas,this.config)}},{key:"nextId",value:function(){return ia()}},{key:"getCredentials",value:function(){return Object(A.__awaiter)(this,void 0,void 0,b.a.mark((function e(){return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this._getConfiguredCredentials());case 1:case"end":return e.stop()}}),e,this)})))}},{key:"connect",value:function(){return Object(A.__awaiter)(this,void 0,void 0,b.a.mark((function e(){var t,n,r,i,a;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.sessionTerminating=!1,this.sessionStarting=!0,this.emit("--reset-stream-features"),this.transport&&this.transport.disconnect(!1),n=0,r=["websocket","bosh"];case 6:if(!(n<r.length)){e.next=37;break}if(i=r[n],a=this.config.transports[i]){e.next=11;break}return e.abrupt("continue",34);case 11:if("string"!=typeof a){e.next=15;break}a={url:a},e.next=31;break;case 15:if(!0!==a){e.next=31;break}if(t){e.next=27;break}return e.prev=17,e.next=20,this.discoverBindings(this.config.server);case 20:t=e.sent,e.next=27;break;case 23:return e.prev=23,e.t0=e.catch(17),console.error(e.t0),e.abrupt("continue",34);case 27:if(t[i]=(t[i]||[]).filter((function(e){return e.startsWith("wss:")||e.startsWith("https:")})),t[i]&&t[i].length){e.next=30;break}return e.abrupt("continue",34);case 30:a={url:t[i][0]};case 31:return this.transport=new this.transports[i](this,this.sm,this.stanzas),this.transport.connect(Object.assign({acceptLanguages:this.config.acceptLanguages||["en"],jid:this.config.jid,lang:this.config.lang||"en",server:this.config.server,url:a.url},a)),e.abrupt("return");case 34:n++,e.next=6;break;case 37:console.error("No endpoints found for the requested transports."),this.emit("--transport-disconnected");case 39:case"end":return e.stop()}}),e,this,[[17,23]])})))}},{key:"disconnect",value:function(){return Object(A.__awaiter)(this,void 0,void 0,b.a.mark((function e(){return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.sessionTerminating=!0,clearTimeout(this.reconnectTimer),this.outgoingDataQueue.pause(),this.sessionStarted&&!this.sm.started&&this.emit("session:end"),this.emit("--reset-stream-features"),this.sessionStarted=!1,this.transport?this.transport.disconnect():this.emit("--transport-disconnected"),this.outgoingDataQueue.resume(),this.outgoingDataQueue.idle()){e.next=11;break}return e.next=11,this.outgoingDataQueue.drain();case 11:return e.next=13,this.sm.shutdown();case 13:case"end":return e.stop()}}),e,this)})))}},{key:"send",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return Object(A.__awaiter)(this,void 0,void 0,b.a.mark((function r(){var i=this;return b.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",new Promise((function(r,a){i.outgoingDataQueue.push({kind:e,stanza:t,replay:n},n?0:1,(function(e){return e?a(e):r()}))})));case 1:case"end":return r.stop()}}),r)})))}},{key:"sendMessage",value:function(e){var t=e.id||this.nextId(),n=Object.assign({id:t,originId:t},e);return this.send("message",n),n.id}},{key:"sendPresence",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.assign({id:this.nextId()},e);return this.send("presence",t),t.id}},{key:"sendIQ",value:function(e){var t=this,n=Object.assign({id:this.nextId()},e),r=_e(this.jid,e.to),i="iq:id:"+n.id,a=new Promise((function(e,n){t.on(i,(function a(o){r.has(o.from)&&("result"!==o.type&&"error"!==o.type||(t.off(i,a),"result"===o.type?e(o):n(o)))}))}));this.send("iq",n);var o=this.config.timeout||15;return ta(a,1e3*o,(function(){return Object.assign(Object.assign({},n),{to:void 0,from:void 0,error:{condition:"timeout",text:"Request timed out after ".concat(o," seconds.")},id:n.id,type:"error"})}))}},{key:"sendIQResult",value:function(e,t){this.send("iq",Object.assign(Object.assign({},t),{id:e.id,to:e.from,type:"result"}))}},{key:"sendIQError",value:function(e,t){this.send("iq",Object.assign(Object.assign({},t),{id:e.id,to:e.from,type:"error"}))}},{key:"sendStreamError",value:function(e){this.emit("stream:error",e),this.send("error",e),this.disconnect()}},{key:"_getConfiguredCredentials",value:function(){var e=this.config.credentials||{},t=be(this.config.jid||""),n=e.username||t.local,r=e.host||t.domain;return Object.assign({host:r,password:this.config.password,realm:r,serviceName:r,serviceType:"xmpp",username:n},e)}},{key:"stream",get:function(){return this.transport?this.transport.stream:void 0}}]),n}(N.EventEmitter);function Fc(e,t){var n=e.length,r=t.length,i=Math.min(n,r),a=0;for(a=0;a<i&&e[a]===t[a];a++);var o=0;for(o=0;o<i-a&&e[n-o-1]===t[r-o-1];o++);var s=a+o,c=[];if(s<n&&c.push({length:n-s,position:n-o,type:"erase"}),s<r){var u=t.slice(a,a+r-s);c.push({position:a,text:P.a.ucs2.encode(u),type:"insert"})}return c}var Mc=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];w()(this,e),this.synced=!1,this.cursorPosition=0,this.ignoreWaits=!1,this.timeDeficit=0,this.sequenceNumber=0,this.onStateChange=t||function(){},this.ignoreWaits=n,this.buffer=[],this.resetActionQueue()}return x()(e,[{key:"commit",value:function(){this.resetActionQueue()}},{key:"process",value:function(e){if("cancel"!==e.event&&"init"!==e.event){if("reset"===e.event||"new"===e.event?(this.resetActionQueue(),void 0!==e.seq&&(this.sequenceNumber=e.seq)):e.seq!==this.sequenceNumber&&(this.synced=!1),e.actions){var t,n=Date.now(),r=0,i=F(e.actions);try{for(i.s();!(t=i.n()).done;){var a=t.value;a.baseTime=n+r,"wait"===a.type&&(r+=a.duration),this.actionQueue.push(a,0)}}catch(e){i.e(e)}finally{i.f()}}this.sequenceNumber=this.sequenceNumber+1}else this.resetActionQueue()}},{key:"insert",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.buffer.length;t=t.normalize("NFC");var r=P.a.ucs2.decode(t);(e=this.buffer).splice.apply(e,[n,0].concat(d()(r))),this.cursorPosition=n+r.length,this.emitState()}},{key:"erase",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.buffer.length;t=Math.max(Math.min(t,this.buffer.length),0),e=Math.max(Math.min(e,this.text.length),0),this.buffer.splice(Math.max(t-e,0),e),this.cursorPosition=Math.max(t-e,0),this.emitState()}},{key:"emitState",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.onStateChange(Object.assign({cursorPosition:this.cursorPosition,synced:this.synced,text:this.text},e))}},{key:"resetActionQueue",value:function(){var e=this;this.actionQueue&&this.actionQueue.kill(),this.sequenceNumber=0,this.synced=!0,this.buffer=[],this.timeDeficit=0,this.actionQueue=Object(R.priorityQueue)((function(t,n){var r=Date.now();if("insert"===t.type)return e.insert(t.text,t.position),n();if("erase"===t.type)return e.erase(t.length,t.position),n();if("wait"!==t.type)return n();if(e.ignoreWaits)return n();t.duration>700&&(t.duration=700);var i=t.duration-(r-t.baseTime)+e.timeDeficit;if(i<=0)return e.timeDeficit=i,n();e.timeDeficit=0,setTimeout((function(){return n()}),i)}),1),this.emitState()}},{key:"text",get:function(){return P.a.ucs2.encode(this.buffer.slice())}}]),e}(),Dc=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];w()(this,e),this.resetInterval=1e4,this.ignoreWaits=!1,this.isStarting=!1,this.isReset=!1,this.changedBetweenResets=!1,this.onStateChange=t||function(){},this.ignoreWaits=n,this.buffer=[],this.actionQueue=[],this.sequenceNumber=0}return x()(e,[{key:"update",value:function(e){var t=[];if(void 0!==e){e=e.normalize("NFC");var n=P.a.ucs2.decode(e);t=Fc(this.buffer,n.slice()),this.buffer=n,this.emitState()}var r=Date.now();if(this.changedBetweenResets&&r-this.lastResetTime>this.resetInterval)this.actionQueue=[],this.actionQueue.push({position:0,text:this.text,type:"insert"}),this.isReset=!0,this.lastActionTime=r,this.lastResetTime=r,this.changedBetweenResets=!1;else if(t.length){var i=r-(this.lastActionTime||r);i>0&&!this.ignoreWaits&&this.actionQueue.push({duration:i,type:"wait"});var a,o=F(t);try{for(o.s();!(a=o.n()).done;){var s=a.value;this.actionQueue.push(s)}}catch(e){o.e(e)}finally{o.f()}this.lastActionTime=r,this.changedBetweenResets=!0}else this.lastActionTime=r}},{key:"start",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.resetInterval;return this.commit(),this.isStarting=!0,this.resetInterval=e,this.sequenceNumber=Math.floor(1e4*Math.random()+1),{event:"init"}}},{key:"stop",value:function(){return this.commit(),{event:"cancel"}}},{key:"diff",value:function(){if(this.update(),!this.actionQueue.length)return null;var e={actions:this.actionQueue,seq:this.sequenceNumber++};return this.isStarting?(e.event="new",this.isStarting=!1,this.lastResetTime=Date.now()):this.isReset&&(e.event="reset",this.isReset=!1),this.actionQueue=[],e}},{key:"commit",value:function(){this.sequenceNumber=0,this.lastActionTime=0,this.actionQueue=[],this.buffer=[]}},{key:"emitState",value:function(){this.onStateChange({text:this.text})}},{key:"text",get:function(){return P.a.ucs2.encode(this.buffer.slice())}}]),e}(),Bc=Object.freeze({__proto__:null,diff:Fc,DisplayBuffer:Mc,InputBuffer:Dc}),Uc=function(){function e(t){var n,r,i;w()(this,e),this.resultComplete=!1,this.fetchedCount=0,this.yieldedCount=0,this.cursor={first:t.before,last:t.after},this.query=t.query,this.direction=null!==(n=t.direction)&&void 0!==n?n:"forward",this.reverse=null!==(r=t.reverse)&&void 0!==r?r:"backward"===this.direction,this.pageSize=null!==(i=t.pageSize)&&void 0!==i?i:20}return x()(e,[{key:Symbol.asyncIterator,value:function(){return Object(A.__asyncGenerator)(this,arguments,b.a.mark((function e(){var t,n,r,i;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=[];case 1:return e.next=3,Object(A.__await)(this.fetchPage());case 3:t=e.sent,n=F(t),e.prev=5,n.s();case 7:if((r=n.n()).done){e.next=16;break}return i=r.value,this.yieldedCount+=1,e.next=12,Object(A.__await)(i);case 12:return e.next=14,e.sent;case 14:e.next=7;break;case 16:e.next=21;break;case 18:e.prev=18,e.t0=e.catch(5),n.e(e.t0);case 21:return e.prev=21,n.f(),e.finish(21);case 24:if(t.length>0){e.next=1;break}case 25:case"end":return e.stop()}}),e,this,[[5,18,21,24]])})))}},{key:"size",value:function(){return Object(A.__awaiter)(this,void 0,void 0,b.a.mark((function e(){var t,n;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===this.resultCount){e.next=2;break}return e.abrupt("return",this.resultCount);case 2:return e.next=4,this.query({max:0});case 4:return t=e.sent,n=t.paging,this.resultCount=n.count,e.abrupt("return",n.count);case 8:case"end":return e.stop()}}),e,this)})))}},{key:"queryCompleted",value:function(){return this.resultComplete}},{key:"finished",value:function(){return this.resultComplete&&this.yieldedCount===this.fetchedCount}},{key:"fetchPage",value:function(){var e;return Object(A.__awaiter)(this,void 0,void 0,b.a.mark((function t(){var n,r,i;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.query({before:"backward"===this.direction?null!==(e=this.cursor.first)&&void 0!==e?e:"":void 0,after:"forward"===this.direction?this.cursor.last:void 0,max:this.pageSize});case 2:return n=t.sent,r=n.results,i=n.paging,this.cursor=i,this.resultCount=i.count,this.fetchedCount+=r.length,(this.pageSize&&r.length<this.pageSize||this.resultCount&&this.fetchedCount===this.resultCount)&&(this.resultComplete=!0),this.reverse&&r.reverse(),t.abrupt("return",r);case 11:case"end":return t.stop()}}),t,this)})))}}]),e}();var zc=Object.freeze({__proto__:null,ResultSetPager:Uc,createPager:function(e){return new Uc(e)}}),Jc="12.17.2";function Gc(e){var t=new qc(e);return t.use(Lo),t}}.call(this,n(111).Buffer,n(79))},function(e,t,n){n(115)("species")},function(e,t,n){n(117)("Array")},function(e,t,n){"use strict";n(23),n(9),n(33),n(5),n(74),n(48),n(49),n(50),n(51),n(52),n(53),n(54),n(55),n(56),n(57),n(58),n(59),n(60),n(61),n(62),n(63),n(64),n(65),n(66),n(67),n(68),n(69),n(70),t.byteLength=function(e){var t=u(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,r=u(e),o=r[0],s=r[1],c=new a(function(e,t,n){return 3*(t+n)/4-n}(0,o,s)),l=0,f=s>0?o-4:o;for(n=0;n<f;n+=4)t=i[e.charCodeAt(n)]<<18|i[e.charCodeAt(n+1)]<<12|i[e.charCodeAt(n+2)]<<6|i[e.charCodeAt(n+3)],c[l++]=t>>16&255,c[l++]=t>>8&255,c[l++]=255&t;2===s&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,c[l++]=255&t);1===s&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,c[l++]=t>>8&255,c[l++]=255&t);return c},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,a=[],o=0,s=n-i;o<s;o+=16383)a.push(l(e,o,o+16383>s?s:o+16383));1===i?(t=e[n-1],a.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],a.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return a.join("")};for(var r=[],i=[],a="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,c=o.length;s<c;++s)r[s]=o[s],i[o.charCodeAt(s)]=s;function u(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e,t,n){for(var i,a,o=[],s=t;s<n;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),o.push(r[(a=i)>>18&63]+r[a>>12&63]+r[a>>6&63]+r[63&a]);return o.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(e,t){
9
+ n(47),n(73),n(320),n(10),n(158),n(82),n(23),n(9),n(33),n(159),n(20),n(321),n(184),n(157),n(5),n(15),n(25),n(99),n(89),n(38),n(98),n(74),n(48),n(49),n(50),n(51),n(52),n(53),n(54),n(55),n(56),n(57),n(58),n(59),n(60),n(61),n(62),n(63),n(64),n(65),n(66),n(67),n(68),n(69),n(70),n(136);var r=n(322),i=n(323),a=n(324);function o(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(o()<t)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=c.prototype:(null===e&&(e=new c(t)),e.length=t),e}function c(e,t,n){if(!(c.TYPED_ARRAY_SUPPORT||this instanceof c))return new c(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return f(this,e)}return u(this,e,t,n)}function u(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);c.TYPED_ARRAY_SUPPORT?(e=t).__proto__=c.prototype:e=p(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!c.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|h(t,n),i=(e=s(e,r)).write(t,n);i!==r&&(e=e.slice(0,i));return e}(e,t,n):function(e,t){if(c.isBuffer(t)){var n=0|d(t.length);return 0===(e=s(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?s(e,0):p(e,t);if("Buffer"===t.type&&a(t.data))return p(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function l(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function f(e,t){if(l(t),e=s(e,t<0?0:0|d(t)),!c.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function p(e,t){var n=t.length<0?0:0|d(t.length);e=s(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function d(e){if(e>=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|e}function h(e,t){if(c.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return B(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return U(e).length;default:if(r)return B(e).length;t=(""+t).toLowerCase(),r=!0}}function v(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return O(this,t,n);case"utf8":case"utf-8":return j(this,t,n);case"ascii":return E(this,t,n);case"latin1":case"binary":return I(this,t,n);case"base64":return T(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function m(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function g(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=c.from(t,r)),c.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,i);if("number"==typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function y(e,t,n,r,i){var a,o=1,s=e.length,c=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;o=2,s/=2,c/=2,n/=2}function u(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var l=-1;for(a=n;a<s;a++)if(u(e,a)===u(t,-1===l?0:a-l)){if(-1===l&&(l=a),a-l+1===c)return l*o}else-1!==l&&(a-=a-l),l=-1}else for(n+c>s&&(n=s-c),a=n;a>=0;a--){for(var f=!0,p=0;p<c;p++)if(u(e,a+p)!==u(t,p)){f=!1;break}if(f)return a}return-1}function b(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var a=t.length;if(a%2!=0)throw new TypeError("Invalid hex string");r>a/2&&(r=a/2);for(var o=0;o<r;++o){var s=parseInt(t.substr(2*o,2),16);if(isNaN(s))return o;e[n+o]=s}return o}function _(e,t,n,r){return z(B(t,e.length-n),e,n,r)}function w(e,t,n,r){return z(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function S(e,t,n,r){return w(e,t,n,r)}function x(e,t,n,r){return z(U(t),e,n,r)}function k(e,t,n,r){return z(function(e,t){for(var n,r,i,a=[],o=0;o<e.length&&!((t-=2)<0);++o)n=e.charCodeAt(o),r=n>>8,i=n%256,a.push(i),a.push(r);return a}(t,e.length-n),e,n,r)}function T(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function j(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var a,o,s,c,u=e[i],l=null,f=u>239?4:u>223?3:u>191?2:1;if(i+f<=n)switch(f){case 1:u<128&&(l=u);break;case 2:128==(192&(a=e[i+1]))&&(c=(31&u)<<6|63&a)>127&&(l=c);break;case 3:a=e[i+1],o=e[i+2],128==(192&a)&&128==(192&o)&&(c=(15&u)<<12|(63&a)<<6|63&o)>2047&&(c<55296||c>57343)&&(l=c);break;case 4:a=e[i+1],o=e[i+2],s=e[i+3],128==(192&a)&&128==(192&o)&&128==(192&s)&&(c=(15&u)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&c<1114112&&(l=c)}null===l?(l=65533,f=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=f}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=4096));return n}(r)}t.Buffer=c,t.SlowBuffer=function(e){+e!=e&&(e=0);return c.alloc(+e)},t.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=o(),c.poolSize=8192,c._augment=function(e){return e.__proto__=c.prototype,e},c.from=function(e,t,n){return u(null,e,t,n)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(e,t,n){return function(e,t,n,r){return l(t),t<=0?s(e,t):void 0!==n?"string"==typeof r?s(e,t).fill(n,r):s(e,t).fill(n):s(e,t)}(null,e,t,n)},c.allocUnsafe=function(e){return f(null,e)},c.allocUnsafeSlow=function(e){return f(null,e)},c.isBuffer=function(e){return!(null==e||!e._isBuffer)},c.compare=function(e,t){if(!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,a=Math.min(n,r);i<a;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},c.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}},c.concat=function(e,t){if(!a(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=c.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var o=e[n];if(!c.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,i),i+=o.length}return r},c.byteLength=h,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)m(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)m(this,t,t+3),m(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return this},c.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?j(this,0,e):v.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},c.prototype.compare=function(e,t,n,r,i){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var a=(i>>>=0)-(r>>>=0),o=(n>>>=0)-(t>>>=0),s=Math.min(a,o),u=this.slice(r,i),l=e.slice(t,n),f=0;f<s;++f)if(u[f]!==l[f]){a=u[f],o=l[f];break}return a<o?-1:o<a?1:0},c.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},c.prototype.indexOf=function(e,t,n){return g(this,e,t,n,!0)},c.prototype.lastIndexOf=function(e,t,n){return g(this,e,t,n,!1)},c.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var a=!1;;)switch(r){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return _(this,e,t,n);case"ascii":return w(this,e,t,n);case"latin1":case"binary":return S(this,e,t,n);case"base64":return x(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,t,n);default:if(a)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),a=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function E(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function I(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function O(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",a=t;a<n;++a)i+=D(e[a]);return i}function A(e,t,n){for(var r=e.slice(t,n),i="",a=0;a<r.length;a+=2)i+=String.fromCharCode(r[a]+256*r[a+1]);return i}function R(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function N(e,t,n,r,i,a){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function C(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,a=Math.min(e.length-n,2);i<a;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function P(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,a=Math.min(e.length-n,4);i<a;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function L(e,t,n,r,i,a){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function q(e,t,n,r,a){return a||L(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function F(e,t,n,r,a){return a||L(e,0,n,8),i.write(e,t,n,r,52,8),n+8}c.prototype.slice=function(e,t){var n,r=this.length;if((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),c.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=c.prototype;else{var i=t-e;n=new c(i,void 0);for(var a=0;a<i;++a)n[a]=this[a+e]}return n},c.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||R(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r},c.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||R(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},c.prototype.readUInt8=function(e,t){return t||R(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||R(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||R(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||R(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return t||R(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||R(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},c.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||R(e,t,this.length);for(var r=t,i=1,a=this[e+--r];r>0&&(i*=256);)a+=this[e+--r]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},c.prototype.readInt8=function(e,t){return t||R(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||R(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){t||R(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return t||R(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||R(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return t||R(e,4,this.length),i.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||R(e,4,this.length),i.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||R(e,8,this.length),i.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||R(e,8,this.length),i.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||N(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,a=0;for(this[t]=255&e;++a<n&&(i*=256);)this[t+a]=e/i&255;return t+n},c.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||N(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,a=1;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+n},c.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):C(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):C(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):P(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):P(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);N(this,e,t,n,i-1,-i)}var a=0,o=1,s=0;for(this[t]=255&e;++a<n&&(o*=256);)e<0&&0===s&&0!==this[t+a-1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},c.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);N(this,e,t,n,i-1,-i)}var a=n-1,o=1,s=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):C(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):C(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):P(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):P(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,n){return q(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return q(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return F(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return F(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,a=r-n;if(this===e&&n<t&&t<r)for(i=a-1;i>=0;--i)e[i+t]=this[i+n];else if(a<1e3||!c.TYPED_ARRAY_SUPPORT)for(i=0;i<a;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+a),t);return a},c.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!c.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var a;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(a=t;a<n;++a)this[a]=e;else{var o=c.isBuffer(e)?e:B(new c(e,r).toString()),s=o.length;for(a=0;a<n-t;++a)this[a+t]=o[a%s]}return this};var M=/[^+\/0-9A-Za-z-_]/g;function D(e){return e<16?"0"+e.toString(16):e.toString(16)}function B(e,t){var n;t=t||1/0;for(var r=e.length,i=null,a=[],o=0;o<r;++o){if((n=e.charCodeAt(o))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function U(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(M,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function z(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(this,n(79))},function(e,t,n){"use strict";n(10),Object.defineProperty(t,"__esModule",{value:!0}),t.NS_AVATAR_METADATA=t.NS_AVATAR_DATA=t.NS_ROSTER_DELIMITER=t.NS_GEOLOC=t.NS_AMP=t.NS_INBAND_REGISTRATION=t.NS_REGISTER=t.NS_XHTML_IM=t.NS_XHTML=t.NS_HTTP_AUTH=t.NS_OOB_TRANSFER=t.NS_OOB=t.NS_SOCKS5=t.NS_PUBSUB_OWNER=t.NS_PUBSUB_EVENT=t.NS_PUBSUB_ERRORS=t.NS_PUBSUB=t.NS_RSM=t.NS_SEARCH=t.NS_VCARD_TEMP=t.NS_ADHOC_COMMANDS=t.NS_PRIVATE=t.NS_BOOKMARKS=t.NS_IBB=t.NS_MUC_USER=t.NS_MUC_OWNER=t.NS_MUC_ADMIN=t.NS_MUC=t.NS_ADDRESS=t.NS_DISCO_ITEMS=t.NS_DISCO_INFO=t.NS_LEGACY_CHAT_EVENTS=t.NS_PRIVACY=t.NS_LAST_ACTIVITY=t.NS_RPC=t.NS_DATAFORM=t.NS_FRAMING=t.NS_SUBSCRIPTION_PREAPPROVAL=t.NS_ROSTER_VERSIONING=t.NS_ROSTER=t.NS_STARTTLS=t.NS_STREAMS=t.NS_STREAM=t.NS_STANZAS=t.NS_SESSION=t.NS_SERVER=t.NS_SASL=t.NS_CLIENT=t.NS_BIND=t.NS_ATOM=void 0,t.NS_JINGLE_FILE_TRANSFER_4=t.NS_JINGLE_FILE_TRANSFER_3=t.NS_SOFTWARE_INFO=t.NS_BOB=t.NS_ATTENTION_0=t.NS_DATAFORM_MEDIA=t.NS_DISCO_EXTERNAL_2=t.NS_DISCO_EXTERNAL_1=t.NS_BOSH_XMPP=t.NS_DELAY=t.NS_TIME=t.NS_PING=t.NS_SMACKS_3=t.NS_BLOCKING_ERRORS=t.NS_BLOCKING=t.NS_INVISIBLE_0=t.NS_RECEIPTS=t.NS_JINGLE_RAW_UDP_1=t.NS_JINGLE_ICE_UDP_1=t.NS_NICK=t.NS_LANG_TRANS_ITEMS=t.NS_LANG_TRANS=t.NS_JINGLE_RTP_VIDEO=t.NS_JINGLE_RTP_AUDIO=t.NS_JINGLE_RTP_INFO_1=t.NS_JINGLE_RTP_ERRORS_1=t.NS_JINGLE_RTP_1=t.NS_JINGLE_ERRORS_1=t.NS_JINGLE_1=t.NS_PEP_NOTIFY=t.NS_CAPTCHA=t.NS_ALT_CONNECTIONS_XBOSH=t.NS_ALT_CONNECTIONS_WEBSOCKET=t.NS_VCARD_TEMP_UPDATE=t.NS_REACH_0=t.NS_ROSTER_NOTES=t.NS_ROSTER_EXCHANGE=t.NS_DATAFORM_LAYOUT=t.NS_COMPRESSION=t.NS_COMPRESSION_FEATURE=t.NS_SHIM=t.NS_BOSH=t.NS_DATAFORM_VALIDATION=t.NS_TUNE=t.NS_DISCO_LEGACY_CAPS=t.NS_COMPONENT=t.NS_ACTIVITY=t.NS_MOOD=t.NS_VERSION=t.NS_CHAT_STATES=void 0,t.NS_OMEMO_AXOLOTL=t.NS_SPOILER_0=t.NS_EME_0=t.NS_REFERENCE_0=t.NS_JINGLE_ICE_0=t.NS_JINGLE_HTTP_UPLOAD_0=t.NS_JINGLE_HTTP_0=t.NS_HTTP_UPLOAD_0=t.NS_SID_0=t.NS_JINGLE_PUB_1=t.NS_PUSH_0=t.NS_DELEGATION_1=t.NS_JINGLE_MSG_INITIATE_0=t.NS_CSI_0=t.NS_JINGLE_DTLS_SCTP_1=t.NS_JINGLE_RTP_SSMA_0=t.NS_JINGLE_GROUPING_0=t.NS_JSON_0=t.NS_HINTS=t.NS_CHAT_MARKERS_0=t.NS_JINGLE_DTLS_0=t.NS_IDLE_1=t.NS_HATS_0=t.NS_MAM_2=t.NS_MAM_1=t.NS_MAM_0=t.NS_MAM_TMP=t.NS_PSA=t.NS_CORRECTION_0=t.NS_MUC_UNIQUE=t.NS_RTT_0=t.NS_HASH_NAME=t.NS_HASHES_2=t.NS_HASHES_1=t.NS_FORWARD_0=t.NS_JINGLE_RTP_HDREXT_0=t.NS_JINGLE_RTP_RTCP_FB_0=t.NS_CARBONS_2=t.NS_DECLOAKING_0=t.NS_THUMBS_1=t.NS_THUMBS_0=t.NS_JINGLE_RTP_ZRTP_1=t.NS_JINGLE_IBB_1=t.NS_JINGLE_SOCKS5_1=t.NS_SEC_LABEL_ESS_0=t.NS_SEC_LABEL_CATALOG_2=t.NS_SEC_LABEL_0=t.NS_MUC_DIRECT_INVITE=t.NS_JINGLE_XML_0=t.NS_JINGLE_FILE_TRANSFER_5=void 0,t.NS_JINGLE_RTP_MSID_0=t.NS_XRD=t.NS_JSON_MESSAGE_0=t.NS_OMEMO_AXOLOTL_BUNDLE=t.NS_OMEMO_AXOLOTL_BUNDLES=t.NS_OMEMO_AXOLOTL_DEVICELIST=void 0,t.NS_ATOM="http://www.w3.org/2005/Atom",t.NS_BIND="urn:ietf:params:xml:ns:xmpp-bind",t.NS_CLIENT="jabber:client",t.NS_SASL="urn:ietf:params:xml:ns:xmpp-sasl",t.NS_SERVER="jabber:server",t.NS_SESSION="urn:ietf:params:xml:ns:xmpp-session",t.NS_STANZAS="urn:ietf:params:xml:ns:xmpp-stanzas",t.NS_STREAM="http://etherx.jabber.org/streams",t.NS_STREAMS="urn:ietf:params:xml:ns:xmpp-streams",t.NS_STARTTLS="urn:ietf:params:xml:ns:xmpp-tls",t.NS_ROSTER="jabber:iq:roster",t.NS_ROSTER_VERSIONING="urn:xmpp:features:rosterver",t.NS_SUBSCRIPTION_PREAPPROVAL="urn:xmpp:features:pre-approval",t.NS_FRAMING="urn:ietf:params:xml:ns:xmpp-framing",t.NS_DATAFORM="jabber:x:data",t.NS_RPC="jabber:iq:rpc",t.NS_LAST_ACTIVITY="jabber:iq:last",t.NS_PRIVACY="jabber:iq:privacy",t.NS_LEGACY_CHAT_EVENTS="jabber:x:event",t.NS_DISCO_INFO="http://jabber.org/protocol/disco#info",t.NS_DISCO_ITEMS="http://jabber.org/protocol/disco#items",t.NS_ADDRESS="http://jabber.org/protocol/address",t.NS_MUC="http://jabber.org/protocol/muc",t.NS_MUC_ADMIN="http://jabber.org/protocol/muc#admin",t.NS_MUC_OWNER="http://jabber.org/protocol/muc#owner",t.NS_MUC_USER="http://jabber.org/protocol/muc#user",t.NS_IBB="http://jabber.org/protocol/ibb",t.NS_BOOKMARKS="storage:bookmarks",t.NS_PRIVATE="jabber:iq:private",t.NS_ADHOC_COMMANDS="http://jabber.org/protocol/commands",t.NS_VCARD_TEMP="vcard-temp",t.NS_SEARCH="jabber:iq:search",t.NS_RSM="http://jabber.org/protocol/rsm",t.NS_PUBSUB="http://jabber.org/protocol/pubsub",t.NS_PUBSUB_ERRORS="http://jabber.org/protocol/pubsub#errors",t.NS_PUBSUB_EVENT="http://jabber.org/protocol/pubsub#event",t.NS_PUBSUB_OWNER="http://jabber.org/protocol/pubsub#owner",t.NS_SOCKS5="http://jabber.org/protocol/bytestreams",t.NS_OOB="jabber:x:oob",t.NS_OOB_TRANSFER="jabber:iq:oob",t.NS_HTTP_AUTH="http://jabber.org/protocol/http-auth",t.NS_XHTML="http://www.w3.org/1999/xhtml",t.NS_XHTML_IM="http://jabber.org/protocol/xhtml-im",t.NS_REGISTER="jabber:iq:register",t.NS_INBAND_REGISTRATION="http://jabber.org/features/iq-register",t.NS_AMP="http://jabber.org/protocol/amp",t.NS_GEOLOC="http://jabber.org/protocol/geoloc",t.NS_ROSTER_DELIMITER="roster:delimiter",t.NS_AVATAR_DATA="urn:xmpp:avatar:data",t.NS_AVATAR_METADATA="urn:xmpp:avatar:metadata",t.NS_CHAT_STATES="http://jabber.org/protocol/chatstates",t.NS_VERSION="jabber:iq:version",t.NS_MOOD="http://jabber.org/protocol/mood",t.NS_ACTIVITY="http://jabber.org/protocol/activity",t.NS_COMPONENT="jabber:component:accept",t.NS_DISCO_LEGACY_CAPS="http://jabber.org/protocol/caps",t.NS_TUNE="http://jabber.org/protocol/tune",t.NS_DATAFORM_VALIDATION="http://jabber.org/protocol/xdata-validate",t.NS_BOSH="http://jabber.org/protocol/httpbind",t.NS_SHIM="http://jabber.org/protocol/shim",t.NS_COMPRESSION_FEATURE="http://jabber.org/features/compress",t.NS_COMPRESSION="http://jabber.org/protocol/compress",t.NS_DATAFORM_LAYOUT="http://jabber.org/protocol/xdata-layout",t.NS_ROSTER_EXCHANGE="http://jabber.org/protocol/rosterx",t.NS_ROSTER_NOTES="storage:rosternotes",t.NS_REACH_0="urn:xmpp:reach:0",t.NS_VCARD_TEMP_UPDATE="vcard-temp:x:update",t.NS_ALT_CONNECTIONS_WEBSOCKET="urn:xmpp:alt-connections:websocket",t.NS_ALT_CONNECTIONS_XBOSH="urn:xmpp:alt-connections:xbosh",t.NS_CAPTCHA="urn:xmpp:captcha";t.NS_PEP_NOTIFY=function(e){return"".concat(e,"+notify")},t.NS_JINGLE_1="urn:xmpp:jingle:1",t.NS_JINGLE_ERRORS_1="urn:xmpp:jingle:errors:1",t.NS_JINGLE_RTP_1="urn:xmpp:jingle:apps:rtp:1",t.NS_JINGLE_RTP_ERRORS_1="urn:xmpp:jingle:apps:rtp:errors:1",t.NS_JINGLE_RTP_INFO_1="urn:xmpp:jingle:apps:rtp:info:1",t.NS_JINGLE_RTP_AUDIO="urn:xmpp:jingle:apps:rtp:audio",t.NS_JINGLE_RTP_VIDEO="urn:xmpp:jingle:apps:rtp:video",t.NS_LANG_TRANS="urn:xmpp:langtrans",t.NS_LANG_TRANS_ITEMS="urn:xmpp:langtrans:items",t.NS_NICK="http://jabber.org/protocol/nick",t.NS_JINGLE_ICE_UDP_1="urn:xmpp:jingle:transports:ice-udp:1",t.NS_JINGLE_RAW_UDP_1="urn:xmpp:jingle:transports:raw-udp:1",t.NS_RECEIPTS="urn:xmpp:receipts",t.NS_INVISIBLE_0="urn:xmpp:invisible:0",t.NS_BLOCKING="urn:xmpp:blocking",t.NS_BLOCKING_ERRORS="urn:xmpp:blocking:errors",t.NS_SMACKS_3="urn:xmpp:sm:3",t.NS_PING="urn:xmpp:ping",t.NS_TIME="urn:xmpp:time",t.NS_DELAY="urn:xmpp:delay",t.NS_BOSH_XMPP="urn:xmpp:xbosh",t.NS_DISCO_EXTERNAL_1="urn:xmpp:extdisco:1",t.NS_DISCO_EXTERNAL_2="urn:xmpp:extdisco:2",t.NS_DATAFORM_MEDIA="urn:xmpp:media-element",t.NS_ATTENTION_0="urn:xmpp:attention:0",t.NS_BOB="urn:xmpp:bob",t.NS_SOFTWARE_INFO="urn:xmpp:dataforms:softwareinfo",t.NS_JINGLE_FILE_TRANSFER_3="urn:xmpp:jingle:apps:file-transfer:3",t.NS_JINGLE_FILE_TRANSFER_4="urn:xmpp:jingle:apps:file-transfer:4",t.NS_JINGLE_FILE_TRANSFER_5="urn:xmpp:jingle:apps:file-transfer:5",t.NS_JINGLE_XML_0="urn:xmpp:jingle:apps:xmlstream:0",t.NS_MUC_DIRECT_INVITE="jabber:x:conference",t.NS_SEC_LABEL_0="urn:xmpp:sec-label:0",t.NS_SEC_LABEL_CATALOG_2="urn:xmpp:sec-label:catalog:2",t.NS_SEC_LABEL_ESS_0="urn:xmpp:sec-label:ess:0",t.NS_JINGLE_SOCKS5_1="urn:xmpp:jingle:transports:s5b:1",t.NS_JINGLE_IBB_1="urn:xmpp:jingle:transports:ibb:1",t.NS_JINGLE_RTP_ZRTP_1="urn:xmpp:jingle:apps:rtp:zrtp:1",t.NS_THUMBS_0="urn:xmpp:thumbs:0",t.NS_THUMBS_1="urn:xmpp:thumbs:1",t.NS_DECLOAKING_0="urn:xmpp:decloaking:0",t.NS_CARBONS_2="urn:xmpp:carbons:2",t.NS_JINGLE_RTP_RTCP_FB_0="urn:xmpp:jingle:apps:rtp:rtcp-fb:0",t.NS_JINGLE_RTP_HDREXT_0="urn:xmpp:jingle:apps:rtp:rtp-hdrext:0",t.NS_FORWARD_0="urn:xmpp:forward:0",t.NS_HASHES_1="urn:xmpp:hashes:1",t.NS_HASHES_2="urn:xmpp:hashes:2";t.NS_HASH_NAME=function(e){return"urn:xmpp:hash-function-text-names:".concat(e)},t.NS_RTT_0="urn:xmpp:rtt:0",t.NS_MUC_UNIQUE="http://jabber.org/protocol/muc#unique",t.NS_CORRECTION_0="urn:xmpp:message-correct:0",t.NS_PSA="urn:xmpp:psa",t.NS_MAM_TMP="urn:xmpp:mam:tmp",t.NS_MAM_0="urn:xmpp:mam:0",t.NS_MAM_1="urn:xmpp:mam:1",t.NS_MAM_2="urn:xmpp:mam:2",t.NS_HATS_0="urn:xmpp:hats:0",t.NS_IDLE_1="urn:xmpp:idle:1",t.NS_JINGLE_DTLS_0="urn:xmpp:jingle:apps:dtls:0",t.NS_CHAT_MARKERS_0="urn:xmpp:chat-markers:0",t.NS_HINTS="urn:xmpp:hints",t.NS_JSON_0="urn:xmpp:json:0",t.NS_JINGLE_GROUPING_0="urn:xmpp:jingle:apps:grouping:0",t.NS_JINGLE_RTP_SSMA_0="urn:xmpp:jingle:apps:rtp:ssma:0",t.NS_JINGLE_DTLS_SCTP_1="urn:xmpp:jingle:transports:dtls-sctp:1",t.NS_CSI_0="urn:xmpp:csi:0",t.NS_JINGLE_MSG_INITIATE_0="urn:xmpp:jingle:jingle-message:0",t.NS_DELEGATION_1="urn:xmpp:delegation:1",t.NS_PUSH_0="urn:xmpp:push:0",t.NS_JINGLE_PUB_1="urn:xmpp:jinglepub:1",t.NS_SID_0="urn:xmpp:sid:0",t.NS_HTTP_UPLOAD_0="urn:xmpp:http:upload:0",t.NS_JINGLE_HTTP_0="urn:xmpp:jingle:transports:http:0",t.NS_JINGLE_HTTP_UPLOAD_0="urn:xmpp:jingle:transports:http:upload:0",t.NS_JINGLE_ICE_0="urn:xmpp:jingle:transports:ice:0",t.NS_REFERENCE_0="urn:xmpp:reference:0",t.NS_EME_0="urn:xmpp:eme:0",t.NS_SPOILER_0="urn:xmpp:spoiler:0",t.NS_OMEMO_AXOLOTL="eu.siacs.conversations.axolotl",t.NS_OMEMO_AXOLOTL_DEVICELIST="eu.siacs.conversations.axolotl.devicelist",t.NS_OMEMO_AXOLOTL_BUNDLES="eu.siacs.conversations.axolotl.bundles";t.NS_OMEMO_AXOLOTL_BUNDLE=function(e){return"".concat(t.NS_OMEMO_AXOLOTL_BUNDLES,":").concat(e)},t.NS_JSON_MESSAGE_0="urn:xmpp:json-msg:0",t.NS_XRD="http://docs.oasis-open.org/ns/xri/xrd-1.0",t.NS_JINGLE_RTP_MSID_0="urn:xmpp:jingle:apps:rtp:msid:0"},function(e,t,n){var r=n(31);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},function(e,t,n){var r=n(214),i=n(34),a=n(221),o=n(35).f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});i(t,e)||o(t,e,{value:a.f(e)})}},function(e,t,n){var r=n(34),i=n(46),a=n(145),o=n(225),s=a("IE_PROTO"),c=Object.prototype;e.exports=o?Object.getPrototypeOf:function(e){return e=i(e),r(e,s)?e[s]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?c:null}},function(e,t,n){"use strict";var r=n(95),i=n(35),a=n(18),o=n(32),s=a("species");e.exports=function(e){var t=r(e),n=i.f;o&&t&&!t[s]&&n(t,s,{configurable:!0,get:function(){return this}})}},function(e,t,n){var r=n(7),i=n(256).entries;r({target:"Object",stat:!0},{entries:function(e){return i(e)}})},function(e,t,n){"use strict";n(71);var r=n(162),i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=f;var a=Object.create(n(138));a.inherits=n(139);var o=n(260),s=n(263);a.inherits(f,o);for(var c=i(s.prototype),u=0;u<c.length;u++){var l=c[u];f.prototype[l]||(f.prototype[l]=s.prototype[l])}function f(e){if(!(this instanceof f))return new f(e);o.call(this,e),s.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",p)}function p(){this.allowHalfOpen||this._writableState.ended||r.nextTick(d,this)}function d(e){e.end()}Object.defineProperty(f.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(f.prototype,"destroyed",{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)}}),f.prototype._destroy=function(e,t){this.push(null),this.end(),r.nextTick(t,e)}},function(e,t,n){"use strict";n(47),n(73),n(19),n(28),n(75);var r=n(41);function i(e,t,n,r,i){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}r.inherits(i,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var a=i.prototype,o={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(e){o[e]={value:e}})),Object.defineProperties(i,o),Object.defineProperty(a,"isAxiosError",{value:!0}),i.from=function(e,t,n,o,s,c){var u=Object.create(a);return r.toFlatObject(e,u,(function(e){return e!==Error.prototype})),i.call(u,e.message,t,n,o,s),u.name=e.name,c&&Object.assign(u,c),u},e.exports=i},function(e,t,n){"use strict";n.r(t),n.d(t,"apply",(function(){return l})),n.d(t,"applyEach",(function(){return M})),n.d(t,"applyEachSeries",(function(){return U})),n.d(t,"asyncify",(function(){return y})),n.d(t,"auto",(function(){return G})),n.d(t,"autoInject",(function(){return K})),n.d(t,"cargo",(function(){return Z})),n.d(t,"cargoQueue",(function(){return ee})),n.d(t,"compose",(function(){return re})),n.d(t,"concat",(function(){return oe})),n.d(t,"concatLimit",(function(){return ae})),n.d(t,"concatSeries",(function(){return se})),n.d(t,"constant",(function(){return ce})),n.d(t,"detect",(function(){return le})),n.d(t,"detectLimit",(function(){return fe})),n.d(t,"detectSeries",(function(){return pe})),n.d(t,"dir",(function(){return he})),n.d(t,"doUntil",(function(){return me})),n.d(t,"doWhilst",(function(){return ve})),n.d(t,"each",(function(){return ye})),n.d(t,"eachLimit",(function(){return be})),n.d(t,"eachOf",(function(){return q})),n.d(t,"eachOfLimit",(function(){return C})),n.d(t,"eachOfSeries",(function(){return D})),n.d(t,"eachSeries",(function(){return _e})),n.d(t,"ensureAsync",(function(){return we})),n.d(t,"every",(function(){return Se})),n.d(t,"everyLimit",(function(){return xe})),n.d(t,"everySeries",(function(){return ke})),n.d(t,"filter",(function(){return Ie})),n.d(t,"filterLimit",(function(){return Oe})),n.d(t,"filterSeries",(function(){return Ae})),n.d(t,"forever",(function(){return Re})),n.d(t,"groupBy",(function(){return Ce})),n.d(t,"groupByLimit",(function(){return Ne})),n.d(t,"groupBySeries",(function(){return Pe})),n.d(t,"log",(function(){return Le})),n.d(t,"map",(function(){return F})),n.d(t,"mapLimit",(function(){return ie})),n.d(t,"mapSeries",(function(){return B})),n.d(t,"mapValues",(function(){return Fe})),n.d(t,"mapValuesLimit",(function(){return qe})),n.d(t,"mapValuesSeries",(function(){return Me})),n.d(t,"memoize",(function(){return De})),n.d(t,"nextTick",(function(){return Be})),n.d(t,"parallel",(function(){return ze})),n.d(t,"parallelLimit",(function(){return Je})),n.d(t,"priorityQueue",(function(){return Qe})),n.d(t,"queue",(function(){return Ge})),n.d(t,"race",(function(){return Ke})),n.d(t,"reduce",(function(){return te})),n.d(t,"reduceRight",(function(){return Ye})),n.d(t,"reflect",(function(){return Xe})),n.d(t,"reflectAll",(function(){return $e})),n.d(t,"reject",(function(){return et})),n.d(t,"rejectLimit",(function(){return tt})),n.d(t,"rejectSeries",(function(){return nt})),n.d(t,"retry",(function(){return it})),n.d(t,"retryable",(function(){return ot})),n.d(t,"seq",(function(){return ne})),n.d(t,"series",(function(){return st})),n.d(t,"setImmediate",(function(){return g})),n.d(t,"some",(function(){return ct})),n.d(t,"someLimit",(function(){return ut})),n.d(t,"someSeries",(function(){return lt})),n.d(t,"sortBy",(function(){return ft})),n.d(t,"timeout",(function(){return pt})),n.d(t,"times",(function(){return ht})),n.d(t,"timesLimit",(function(){return dt})),n.d(t,"timesSeries",(function(){return vt})),n.d(t,"transform",(function(){return mt})),n.d(t,"tryEach",(function(){return gt})),n.d(t,"unmemoize",(function(){return yt})),n.d(t,"until",(function(){return _t})),n.d(t,"waterfall",(function(){return wt})),n.d(t,"whilst",(function(){return bt})),n.d(t,"all",(function(){return Se})),n.d(t,"allLimit",(function(){return xe})),n.d(t,"allSeries",(function(){return ke})),n.d(t,"any",(function(){return ct})),n.d(t,"anyLimit",(function(){return ut})),n.d(t,"anySeries",(function(){return lt})),n.d(t,"find",(function(){return le})),n.d(t,"findLimit",(function(){return fe})),n.d(t,"findSeries",(function(){return pe})),n.d(t,"flatMap",(function(){return oe})),n.d(t,"flatMapLimit",(function(){return ae})),n.d(t,"flatMapSeries",(function(){return se})),n.d(t,"forEach",(function(){return ye})),n.d(t,"forEachSeries",(function(){return _e})),n.d(t,"forEachLimit",(function(){return be})),n.d(t,"forEachOf",(function(){return q})),n.d(t,"forEachOfSeries",(function(){return D})),n.d(t,"forEachOfLimit",(function(){return C})),n.d(t,"inject",(function(){return te})),n.d(t,"foldl",(function(){return te})),n.d(t,"foldr",(function(){return Ye})),n.d(t,"select",(function(){return Ie})),n.d(t,"selectLimit",(function(){return Oe})),n.d(t,"selectSeries",(function(){return Ae})),n.d(t,"wrapSync",(function(){return y})),n.d(t,"during",(function(){return bt})),n.d(t,"doDuring",(function(){return ve}));n(47),n(73),n(134),n(97),n(248),n(10),n(44),n(19),n(23),n(9),n(33),n(30),n(20),n(81),n(28),n(249),n(250),n(157),n(335),n(75),n(71),n(5),n(21),n(15),n(25),n(22),n(89),n(38),n(39),n(98),n(27),n(24),n(161),n(251);var r=n(14),i=n(0),a=(n(40),n(2)),o=n(3),s=n(6),c=n(4),u=n(13);function l(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return e.apply(void 0,n.concat(r))}}function f(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n.pop();return e.call(this,n,i)}}var p="function"==typeof queueMicrotask&&queueMicrotask,d="function"==typeof setImmediate&&setImmediate,h="object"===("undefined"==typeof process?"undefined":u(process))&&"function"==typeof process.nextTick;function v(e){setTimeout(e,0)}function m(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return e((function(){return t.apply(void 0,r)}))}}var g=m(p?queueMicrotask:d?setImmediate:h?process.nextTick:v);function y(e){return w(e)?function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n.pop(),a=e.apply(this,n);return b(a,i)}:f((function(t,n){var r;try{r=e.apply(this,t)}catch(e){return n(e)}if(r&&"function"==typeof r.then)return b(r,n);n(null,r)}))}function b(e,t){return e.then((function(e){_(t,null,e)}),(function(e){_(t,e&&e.message?e:new Error(e))}))}function _(e,t,n){try{e(t,n)}catch(e){g((function(e){throw e}),e)}}function w(e){return"AsyncFunction"===e[Symbol.toStringTag]}function S(e){if("function"!=typeof e)throw new Error("expected a function");return w(e)?y(e):e}function x(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.length;if(!t)throw new Error("arity is undefined");function n(){for(var n=this,r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return"function"==typeof i[t-1]?e.apply(this,i):new Promise((function(r,a){i[t-1]=function(e){if(e)return a(e);for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];r(n.length>1?n:n[0])},e.apply(n,i)}))}return n}function k(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];var a=x((function(n){var i=this;return e(t,(function(e,t){S(e).apply(i,r.concat(t))}),n)}));return a}}function T(e,t,n,r){t=t||[];var i=[],a=0,o=S(n);return e(t,(function(e,t,n){var r=a++;o(e,(function(e,t){i[r]=t,n(e)}))}),(function(e){r(e,i)}))}function j(e){return e&&"number"==typeof e.length&&e.length>=0&&e.length%1==0}var E={};function I(e){function t(){if(null!==e){var t=e;e=null;for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];t.apply(this,r)}}return Object.assign(t,e),t}function O(e){if(j(e))return function(e){var t=-1,n=e.length;return function(){return++t<n?{value:e[t],key:t}:null}}(e);var t,n,r,i,a=function(e){return e[Symbol.iterator]&&e[Symbol.iterator]()}(e);return a?function(e){var t=-1;return function(){var n=e.next();return n.done?null:(t++,{value:n.value,key:t})}}(a):(n=(t=e)?Object.keys(t):[],r=-1,i=n.length,function e(){var a=n[++r];return"__proto__"===a?e():r<i?{value:t[a],key:a}:null})}function A(e){return function(){if(null===e)throw new Error("Callback was already called.");var t=e;e=null;for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];t.apply(this,r)}}function R(e,t,n,r){var i=!1,a=!1,o=!1,s=0,c=0;function u(){s>=t||o||i||(o=!0,e.next().then((function(e){var t=e.value,f=e.done;if(!a&&!i){if(o=!1,f)return i=!0,void(s<=0&&r(null));s++,n(t,c,l),c++,u()}})).catch(f))}function l(e,t){if(s-=1,!a)return e?f(e):!1===e?(i=!0,void(a=!0)):t===E||i&&s<=0?(i=!0,r(null)):void u()}function f(e){a||(o=!1,i=!0,r(e))}u()}var N=function(e){return function(t,n,r){if(r=I(r),e<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!t)return r(null);if("AsyncGenerator"===t[Symbol.toStringTag])return R(t,e,n,r);if(function(e){return"function"==typeof e[Symbol.asyncIterator]}(t))return R(t[Symbol.asyncIterator](),e,n,r);var i=O(t),a=!1,o=!1,s=0,c=!1;function u(e,t){if(!o)if(s-=1,e)a=!0,r(e);else if(!1===e)a=!0,o=!0;else{if(t===E||a&&s<=0)return a=!0,r(null);c||l()}}function l(){for(c=!0;s<e&&!a;){var t=i();if(null===t)return a=!0,void(s<=0&&r(null));s+=1,n(t.value,t.key,A(u))}c=!1}l()}};var C=x((function(e,t,n,r){return N(t)(e,S(n),r)}),4);function P(e,t,n){n=I(n);var r=0,i=0,a=e.length,o=!1;function s(e,t){!1===e&&(o=!0),!0!==o&&(e?n(e):++i!==a&&t!==E||n(null))}for(0===a&&n(null);r<a;r++)t(e[r],r,A(s))}function L(e,t,n){return C(e,1/0,t,n)}var q=x((function(e,t,n){return(j(e)?P:L)(e,S(t),n)}),3);var F=x((function(e,t,n){return T(q,e,t,n)}),3),M=k(F);var D=x((function(e,t,n){return C(e,1,t,n)}),3);var B=x((function(e,t,n){return T(D,e,t,n)}),3),U=k(B),z=Symbol("promiseCallback");function J(){var e,t;function n(n){if(n)return t(n);for(var r=arguments.length,i=new Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];e(i.length>1?i:i[0])}return n[z]=new Promise((function(n,r){e=n,t=r})),n}function G(e,t,n){"number"!=typeof t&&(n=t,t=null),n=I(n||J());var r=Object.keys(e).length;if(!r)return n(null);t||(t=r);var i={},a=0,o=!1,s=!1,u=Object.create(null),l=[],f=[],p={};function d(e,t){l.push((function(){return function(e,t){if(s)return;var r=A((function(t){for(var r=arguments.length,l=new Array(r>1?r-1:0),f=1;f<r;f++)l[f-1]=arguments[f];if(a--,!1!==t){if(l.length<2){var p=l,d=c(p,1);l=d[0]}if(t){var h={};if(Object.keys(i).forEach((function(e){h[e]=i[e]})),h[e]=l,s=!0,u=Object.create(null),o)return;n(t,h)}else i[e]=l,v(e)}else o=!0}));a++;var l=S(t[t.length-1]);t.length>1?l(i,r):l(r)}(e,t)}))}function h(){if(!o){if(0===l.length&&0===a)return n(null,i);for(;l.length&&a<t;){l.shift()()}}}function v(e){(u[e]||[]).forEach((function(e){return e()})),h()}function m(t){var n=[];return Object.keys(e).forEach((function(r){var i=e[r];Array.isArray(i)&&i.indexOf(t)>=0&&n.push(r)})),n}return Object.keys(e).forEach((function(t){var n=e[t];if(!Array.isArray(n))return d(t,[n]),void f.push(t);var r=n.slice(0,n.length-1),i=r.length;if(0===i)return d(t,n),void f.push(t);p[t]=i,r.forEach((function(a){if(!e[a])throw new Error("async.auto task `"+t+"` has a non-existent dependency `"+a+"` in "+r.join(", "));!function(e,t){var n=u[e];n||(n=u[e]=[]);n.push(t)}(a,(function(){0===--i&&d(t,n)}))}))})),function(){var e,t=0;for(;f.length;)e=f.pop(),t++,m(e).forEach((function(e){0==--p[e]&&f.push(e)}));if(t!==r)throw new Error("async.auto cannot execute tasks due to a recursive dependency")}(),h(),n[z]}var V=/^(?:async\s+)?(?:function)?\s*\w*\s*\(\s*([^)]+)\s*\)(?:\s*{)/,H=/^(?:async\s+)?\(?\s*([^)=]+)\s*\)?(?:\s*=>)/,W=/,/,Q=/(=.+)?(\s*)$/;function K(e,t){var n={};return Object.keys(e).forEach((function(t){var r,i=e[t],a=w(i),o=!a&&1===i.length||a&&0===i.length;if(Array.isArray(i))r=s(i),i=r.pop(),n[t]=r.concat(r.length>0?u:i);else if(o)n[t]=i;else{if(r=function(e){var t=function(e){for(var t="",n=0,r=e.indexOf("*/");n<e.length;)if("/"===e[n]&&"/"===e[n+1]){var i=e.indexOf("\n",n);n=-1===i?e.length:i}else if(-1!==r&&"/"===e[n]&&"*"===e[n+1]){var a=e.indexOf("*/",n);-1!==a?(n=a+2,r=e.indexOf("*/",n)):(t+=e[n],n++)}else t+=e[n],n++;return t}(e.toString()),n=t.match(V);if(n||(n=t.match(H)),!n)throw new Error("could not parse args in autoInject\nSource:\n"+t);return c(n,2)[1].replace(/\s/g,"").split(W).map((function(e){return e.replace(Q,"").trim()}))}(i),0===i.length&&!a&&0===r.length)throw new Error("autoInject task functions require explicit parameters.");a||r.pop(),n[t]=r.concat(u)}function u(e,t){var n=r.map((function(t){return e[t]}));n.push(t),S(i).apply(void 0,s(n))}})),G(n,t)}var Y=function(){function e(){a(this,e),this.head=this.tail=null,this.length=0}return o(e,[{key:"removeLink",value:function(e){return e.prev?e.prev.next=e.next:this.head=e.next,e.next?e.next.prev=e.prev:this.tail=e.prev,e.prev=e.next=null,this.length-=1,e}},{key:"empty",value:function(){for(;this.head;)this.shift();return this}},{key:"insertAfter",value:function(e,t){t.prev=e,t.next=e.next,e.next?e.next.prev=t:this.tail=t,e.next=t,this.length+=1}},{key:"insertBefore",value:function(e,t){t.prev=e.prev,t.next=e,e.prev?e.prev.next=t:this.head=t,e.prev=t,this.length+=1}},{key:"unshift",value:function(e){this.head?this.insertBefore(this.head,e):X(this,e)}},{key:"push",value:function(e){this.tail?this.insertAfter(this.tail,e):X(this,e)}},{key:"shift",value:function(){return this.head&&this.removeLink(this.head)}},{key:"pop",value:function(){return this.tail&&this.removeLink(this.tail)}},{key:"toArray",value:function(){return s(this)}},{key:Symbol.iterator,value:i.mark((function e(){var t;return i.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=this.head;case 1:if(!t){e.next=7;break}return e.next=4,t.data;case 4:t=t.next,e.next=1;break;case 7:case"end":return e.stop()}}),e,this)}))},{key:"remove",value:function(e){for(var t=this.head;t;){var n=t.next;e(t)&&this.removeLink(t),t=n}return this}}]),e}();function X(e,t){e.length=1,e.head=e.tail=t}function $(e,t,n){var a;if(null==t)t=1;else if(0===t)throw new RangeError("Concurrency must not be zero");var o=S(e),s=0,c=[],u={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function l(e,t){return e?t?void(u[e]=u[e].filter((function(e){return e!==t}))):u[e]=[]:Object.keys(u).forEach((function(e){return u[e]=[]}))}function f(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];u[e].forEach((function(e){return e.apply(void 0,n)}))}var p=!1;function d(e,t,n,r){if(null!=r&&"function"!=typeof r)throw new Error("task callback must be a function");var i,a;function o(e){if(e)return n?a(e):i();for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];if(r.length<=1)return i(r[0]);i(r)}b.started=!0;var s={data:e,callback:n?o:r||o};if(t?b._tasks.unshift(s):b._tasks.push(s),p||(p=!0,g((function(){p=!1,b.process()}))),n||!r)return new Promise((function(e,t){i=e,a=t}))}function h(e){return function(t){s-=1;for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];for(var a=0,o=e.length;a<o;a++){var u=e[a],l=c.indexOf(u);0===l?c.shift():l>0&&c.splice(l,1),u.callback.apply(u,[t].concat(r)),null!=t&&f("error",t,u.data)}s<=b.concurrency-b.buffer&&f("unsaturated"),b.idle()&&f("drain"),b.process()}}function v(e){return!(0!==e.length||!b.idle())&&(g((function(){return f("drain")})),!0)}var m=function(e){return function(t){if(!t)return new Promise((function(t,n){!function(e,t){u[e].push((function n(){l(e,n),t.apply(void 0,arguments)}))}(e,(function(e,r){if(e)return n(e);t(r)}))}));l(e),function(e,t){u[e].push(t)}(e,t)}},y=!1,b=(a={_tasks:new Y},r(a,Symbol.iterator,i.mark((function e(){return i.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(b._tasks[Symbol.iterator](),"t0",1);case 1:case"end":return e.stop()}}),e)}))),r(a,"concurrency",t),r(a,"payload",n),r(a,"buffer",t/4),r(a,"started",!1),r(a,"paused",!1),r(a,"push",(function(e,t){if(Array.isArray(e)){if(v(e))return;return e.map((function(e){return d(e,!1,!1,t)}))}return d(e,!1,!1,t)})),r(a,"pushAsync",(function(e,t){if(Array.isArray(e)){if(v(e))return;return e.map((function(e){return d(e,!1,!0,t)}))}return d(e,!1,!0,t)})),r(a,"kill",(function(){l(),b._tasks.empty()})),r(a,"unshift",(function(e,t){if(Array.isArray(e)){if(v(e))return;return e.map((function(e){return d(e,!0,!1,t)}))}return d(e,!0,!1,t)})),r(a,"unshiftAsync",(function(e,t){if(Array.isArray(e)){if(v(e))return;return e.map((function(e){return d(e,!0,!0,t)}))}return d(e,!0,!0,t)})),r(a,"remove",(function(e){b._tasks.remove(e)})),r(a,"process",(function(){if(!y){for(y=!0;!b.paused&&s<b.concurrency&&b._tasks.length;){var e=[],t=[],n=b._tasks.length;b.payload&&(n=Math.min(n,b.payload));for(var r=0;r<n;r++){var i=b._tasks.shift();e.push(i),c.push(i),t.push(i.data)}s+=1,0===b._tasks.length&&f("empty"),s===b.concurrency&&f("saturated");var a=A(h(e));o(t,a)}y=!1}})),r(a,"length",(function(){return b._tasks.length})),r(a,"running",(function(){return s})),r(a,"workersList",(function(){return c})),r(a,"idle",(function(){return b._tasks.length+s===0})),r(a,"pause",(function(){b.paused=!0})),r(a,"resume",(function(){!1!==b.paused&&(b.paused=!1,g(b.process))})),a);return Object.defineProperties(b,{saturated:{writable:!1,value:m("saturated")},unsaturated:{writable:!1,value:m("unsaturated")},empty:{writable:!1,value:m("empty")},drain:{writable:!1,value:m("drain")},error:{writable:!1,value:m("error")}}),b}function Z(e,t){return $(e,1,t)}function ee(e,t,n){return $(e,t,n)}var te=x((function(e,t,n,r){r=I(r);var i=S(n);return D(e,(function(e,n,r){i(t,e,(function(e,n){t=n,r(e)}))}),(function(e){return r(e,t)}))}),4);function ne(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.map(S);return function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];var a=n[n.length-1];return"function"==typeof a?n.pop():a=J(),te(r,n,(function(t,n,r){n.apply(e,t.concat((function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];r(e,n)})))}),(function(e,t){return a.apply(void 0,[e].concat(s(t)))})),a[z]}}function re(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ne.apply(void 0,s(t.reverse()))}var ie=x((function(e,t,n,r){return T(N(t),e,n,r)}),4);var ae=x((function(e,t,n,r){var i=S(n);return ie(e,t,(function(e,t){i(e,(function(e){if(e)return t(e);for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return t(e,r)}))}),(function(e,t){for(var n=[],i=0;i<t.length;i++){var a;if(t[i])n=(a=n).concat.apply(a,s(t[i]))}return r(e,n)}))}),4);var oe=x((function(e,t,n){return ae(e,1/0,t,n)}),3);var se=x((function(e,t,n){return ae(e,1,t,n)}),3);function ce(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=n.pop();return i.apply(void 0,[null].concat(t))}}function ue(e,t){return function(n,r,i,a){var o,s=!1,c=S(i);n(r,(function(n,r,i){c(n,(function(r,a){return r||!1===r?i(r):e(a)&&!o?(s=!0,o=t(!0,n),i(null,E)):void i()}))}),(function(e){if(e)return a(e);a(null,s?o:t(!1))}))}}var le=x((function(e,t,n){return ue((function(e){return e}),(function(e,t){return t}))(q,e,t,n)}),3);var fe=x((function(e,t,n,r){return ue((function(e){return e}),(function(e,t){return t}))(N(t),e,n,r)}),4);var pe=x((function(e,t,n){return ue((function(e){return e}),(function(e,t){return t}))(N(1),e,t,n)}),3);function de(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return S(t).apply(void 0,r.concat([function(t){if("object"===("undefined"==typeof console?"undefined":u(console)))if(t)console.error&&console.error(t);else if(console[e]){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];r.forEach((function(t){return console[e](t)}))}}]))}}var he=de("dir");var ve=x((function(e,t,n){n=A(n);var r,i=S(e),a=S(t);function o(e){if(e)return n(e);if(!1!==e){for(var t=arguments.length,i=new Array(t>1?t-1:0),o=1;o<t;o++)i[o-1]=arguments[o];r=i,a.apply(void 0,i.concat([c]))}}function c(e,t){return e?n(e):!1!==e?t?void i(o):n.apply(void 0,[null].concat(s(r))):void 0}return c(null,!0)}),3);function me(e,t,n){var r=S(t);return ve(e,(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t.pop();r.apply(void 0,t.concat([function(e,t){return i(e,!t)}]))}),n)}function ge(e){return function(t,n,r){return e(t,r)}}var ye=x((function(e,t,n){return q(e,ge(S(t)),n)}),3);var be=x((function(e,t,n,r){return N(t)(e,ge(S(n)),r)}),4);var _e=x((function(e,t,n){return be(e,1,t,n)}),3);function we(e){return w(e)?e:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n.pop(),a=!0;n.push((function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];a?g((function(){return i.apply(void 0,t)})):i.apply(void 0,t)})),e.apply(this,n),a=!1}}var Se=x((function(e,t,n){return ue((function(e){return!e}),(function(e){return!e}))(q,e,t,n)}),3);var xe=x((function(e,t,n,r){return ue((function(e){return!e}),(function(e){return!e}))(N(t),e,n,r)}),4);var ke=x((function(e,t,n){return ue((function(e){return!e}),(function(e){return!e}))(D,e,t,n)}),3);function Te(e,t,n,r){var i=new Array(t.length);e(t,(function(e,t,r){n(e,(function(e,n){i[t]=!!n,r(e)}))}),(function(e){if(e)return r(e);for(var n=[],a=0;a<t.length;a++)i[a]&&n.push(t[a]);r(null,n)}))}function je(e,t,n,r){var i=[];e(t,(function(e,t,r){n(e,(function(n,a){if(n)return r(n);a&&i.push({index:t,value:e}),r(n)}))}),(function(e){if(e)return r(e);r(null,i.sort((function(e,t){return e.index-t.index})).map((function(e){return e.value})))}))}function Ee(e,t,n,r){return(j(t)?Te:je)(e,t,S(n),r)}var Ie=x((function(e,t,n){return Ee(q,e,t,n)}),3);var Oe=x((function(e,t,n,r){return Ee(N(t),e,n,r)}),4);var Ae=x((function(e,t,n){return Ee(D,e,t,n)}),3);var Re=x((function(e,t){var n=A(t),r=S(we(e));return function e(t){if(t)return n(t);!1!==t&&r(e)}()}),2);var Ne=x((function(e,t,n,r){var i=S(n);return ie(e,t,(function(e,t){i(e,(function(n,r){return n?t(n):t(n,{key:r,val:e})}))}),(function(e,t){for(var n={},i=Object.prototype.hasOwnProperty,a=0;a<t.length;a++)if(t[a]){var o=t[a].key,s=t[a].val;i.call(n,o)?n[o].push(s):n[o]=[s]}return r(e,n)}))}),4);function Ce(e,t,n){return Ne(e,1/0,t,n)}function Pe(e,t,n){return Ne(e,1,t,n)}var Le=de("log");var qe=x((function(e,t,n,r){r=I(r);var i={},a=S(n);return N(t)(e,(function(e,t,n){a(e,t,(function(e,r){if(e)return n(e);i[t]=r,n(e)}))}),(function(e){return r(e,i)}))}),4);function Fe(e,t,n){return qe(e,1/0,t,n)}function Me(e,t,n){return qe(e,1,t,n)}function De(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},n=Object.create(null),r=Object.create(null),i=S(e),a=f((function(e,a){var o=t.apply(void 0,s(e));o in n?g((function(){return a.apply(void 0,[null].concat(s(n[o])))})):o in r?r[o].push(a):(r[o]=[a],i.apply(void 0,s(e).concat([function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),a=1;a<t;a++)i[a-1]=arguments[a];e||(n[o]=i);var s=r[o];delete r[o];for(var c=0,u=s.length;c<u;c++)s[c].apply(s,[e].concat(i))}])))}));return a.memo=n,a.unmemoized=e,a}var Be=m(h?process.nextTick:d?setImmediate:v),Ue=x((function(e,t,n){var r=j(t)?[]:{};e(t,(function(e,t,n){S(e)((function(e){for(var i=arguments.length,a=new Array(i>1?i-1:0),o=1;o<i;o++)a[o-1]=arguments[o];if(a.length<2){var s=a,u=c(s,1);a=u[0]}r[t]=a,n(e)}))}),(function(e){return n(e,r)}))}),3);function ze(e,t){return Ue(q,e,t)}function Je(e,t,n){return Ue(N(t),e,n)}function Ge(e,t){var n=S(e);return $((function(e,t){n(e[0],t)}),t,1)}var Ve=function(){function e(){a(this,e),this.heap=[],this.pushCount=Number.MIN_SAFE_INTEGER}return o(e,[{key:"empty",value:function(){return this.heap=[],this}},{key:"percUp",value:function(e){for(var t;e>0&&We(this.heap[e],this.heap[t=He(e)]);){var n=this.heap[e];this.heap[e]=this.heap[t],this.heap[t]=n,e=t}}},{key:"percDown",value:function(e){for(var t;(t=1+(e<<1))<this.heap.length&&(t+1<this.heap.length&&We(this.heap[t+1],this.heap[t])&&(t+=1),!We(this.heap[e],this.heap[t]));){var n=this.heap[e];this.heap[e]=this.heap[t],this.heap[t]=n,e=t}}},{key:"push",value:function(e){e.pushCount=++this.pushCount,this.heap.push(e),this.percUp(this.heap.length-1)}},{key:"unshift",value:function(e){return this.heap.push(e)}},{key:"shift",value:function(){var e=c(this.heap,1)[0];return this.heap[0]=this.heap[this.heap.length-1],this.heap.pop(),this.percDown(0),e}},{key:"toArray",value:function(){return s(this)}},{key:Symbol.iterator,value:i.mark((function e(){var t;return i.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=0;case 1:if(!(t<this.heap.length)){e.next=7;break}return e.next=4,this.heap[t].data;case 4:t++,e.next=1;break;case 7:case"end":return e.stop()}}),e,this)}))},{key:"remove",value:function(e){for(var t=0,n=0;n<this.heap.length;n++)e(this.heap[n])||(this.heap[t]=this.heap[n],t++);this.heap.splice(t);for(var r=He(this.heap.length-1);r>=0;r--)this.percDown(r);return this}},{key:"length",get:function(){return this.heap.length}}]),e}();function He(e){return(e+1>>1)-1}function We(e,t){return e.priority!==t.priority?e.priority<t.priority:e.pushCount<t.pushCount}function Qe(e,t){var n=Ge(e,t),r=!1;return n._tasks=new Ve,n.push=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};if("function"!=typeof i)throw new Error("task callback must be a function");if(n.started=!0,Array.isArray(e)||(e=[e]),0===e.length&&n.idle())return g((function(){return n.drain()}));for(var a=0,o=e.length;a<o;a++){var s={data:e[a],priority:t,callback:i};n._tasks.push(s)}r||(r=!0,g((function(){r=!1,n.process()})))},delete n.unshift,n}var Ke=x((function(e,t){if(t=I(t),!Array.isArray(e))return t(new TypeError("First argument to race must be an array of functions"));if(!e.length)return t();for(var n=0,r=e.length;n<r;n++)S(e[n])(t)}),2);function Ye(e,t,n,r){var i=s(e).reverse();return te(i,t,n,r)}function Xe(e){var t=S(e);return f((function(e,n){return e.push((function(e){var t={};e&&(t.error=e);for(var r=arguments.length,i=new Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];if(i.length>0){var o=i;i.length<=1&&(o=i[0]),t.value=o}n(null,t)})),t.apply(this,e)}))}function $e(e){var t,n=this;return Array.isArray(e)?t=e.map(Xe):(t={},Object.keys(e).forEach((function(r){t[r]=Xe.call(n,e[r])}))),t}function Ze(e,t,n,r){var i=S(n);return Ee(e,t,(function(e,t){i(e,(function(e,n){t(e,!n)}))}),r)}var et=x((function(e,t,n){return Ze(q,e,t,n)}),3);var tt=x((function(e,t,n,r){return Ze(N(t),e,n,r)}),4);var nt=x((function(e,t,n){return Ze(D,e,t,n)}),3);function rt(e){return function(){return e}}function it(e,t,n){var r={times:5,intervalFunc:rt(0)};if(arguments.length<3&&"function"==typeof e?(n=t||J(),t=e):(at(r,e),n=n||J()),"function"!=typeof t)throw new Error("Invalid arguments for async.retry");var i=S(t),a=1;function o(){i((function(e){if(!1!==e)if(e&&a++<r.times&&("function"!=typeof r.errorFilter||r.errorFilter(e)))setTimeout(o,r.intervalFunc(a-1));else{for(var t=arguments.length,i=new Array(t>1?t-1:0),s=1;s<t;s++)i[s-1]=arguments[s];n.apply(void 0,[e].concat(i))}}))}return o(),n[z]}function at(e,t){if("object"===u(t))e.times=+t.times||5,e.intervalFunc="function"==typeof t.interval?t.interval:rt(+t.interval||0),e.errorFilter=t.errorFilter;else{if("number"!=typeof t&&"string"!=typeof t)throw new Error("Invalid arguments for async.retry");e.times=+t||5}}function ot(e,t){t||(t=e,e=null);var n=e&&e.arity||t.length;w(t)&&(n+=1);var r=S(t);return f((function(t,i){function a(e){r.apply(void 0,s(t).concat([e]))}return(t.length<n-1||null==i)&&(t.push(i),i=J()),e?it(e,a,i):it(a,i),i[z]}))}function st(e,t){return Ue(D,e,t)}var ct=x((function(e,t,n){return ue(Boolean,(function(e){return e}))(q,e,t,n)}),3);var ut=x((function(e,t,n,r){return ue(Boolean,(function(e){return e}))(N(t),e,n,r)}),4);var lt=x((function(e,t,n){return ue(Boolean,(function(e){return e}))(D,e,t,n)}),3);var ft=x((function(e,t,n){var r=S(t);return F(e,(function(e,t){r(e,(function(n,r){if(n)return t(n);t(n,{value:e,criteria:r})}))}),(function(e,t){if(e)return n(e);n(null,t.sort(i).map((function(e){return e.value})))}));function i(e,t){var n=e.criteria,r=t.criteria;return n<r?-1:n>r?1:0}}),3);function pt(e,t,n){var r=S(e);return f((function(i,a){var o,c=!1;i.push((function(){c||(a.apply(void 0,arguments),clearTimeout(o))})),o=setTimeout((function(){var t=e.name||"anonymous",r=new Error('Callback function "'+t+'" timed out.');r.code="ETIMEDOUT",n&&(r.info=n),c=!0,a(r)}),t),r.apply(void 0,s(i))}))}function dt(e,t,n,r){var i=S(n);return ie(function(e){for(var t=Array(e);e--;)t[e]=e;return t}(e),t,i,r)}function ht(e,t,n){return dt(e,1/0,t,n)}function vt(e,t,n){return dt(e,1,t,n)}function mt(e,t,n,r){arguments.length<=3&&"function"==typeof t&&(r=n,n=t,t=Array.isArray(e)?[]:{}),r=I(r||J());var i=S(n);return q(e,(function(e,n,r){i(t,e,n,r)}),(function(e){return r(e,t)})),r[z]}var gt=x((function(e,t){var n,r=null;return _e(e,(function(e,t){S(e)((function(e){if(!1===e)return t(e);for(var i=arguments.length,a=new Array(i>1?i-1:0),o=1;o<i;o++)a[o-1]=arguments[o];n=a.length<2?a[0]:a,r=e,t(e?null:{})}))}),(function(){return t(r,n)}))}));function yt(e){return function(){return(e.unmemoized||e).apply(void 0,arguments)}}var bt=x((function(e,t,n){n=A(n);var r=S(t),i=S(e),a=[];function o(e){if(e)return n(e);for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];a=r,!1!==e&&i(c)}function c(e,t){return e?n(e):!1!==e?t?void r(o):n.apply(void 0,[null].concat(s(a))):void 0}return i(c)}),3);function _t(e,t,n){var r=S(e);return bt((function(e){return r((function(t,n){return e(t,!n)}))}),t,n)}var wt=x((function(e,t){if(t=I(t),!Array.isArray(e))return t(new Error("First argument to waterfall must be an array of functions"));if(!e.length)return t();var n=0;function r(t){S(e[n++]).apply(void 0,s(t).concat([A(i)]))}function i(i){if(!1!==i){for(var a=arguments.length,o=new Array(a>1?a-1:0),s=1;s<a;s++)o[s-1]=arguments[s];if(i||n===e.length)return t.apply(void 0,[i].concat(o));r(o)}}r([])})),St={apply:l,applyEach:M,applyEachSeries:U,asyncify:y,auto:G,autoInject:K,cargo:Z,cargoQueue:ee,compose:re,concat:oe,concatLimit:ae,concatSeries:se,constant:ce,detect:le,detectLimit:fe,detectSeries:pe,dir:he,doUntil:me,doWhilst:ve,each:ye,eachLimit:be,eachOf:q,eachOfLimit:C,eachOfSeries:D,eachSeries:_e,ensureAsync:we,every:Se,everyLimit:xe,everySeries:ke,filter:Ie,filterLimit:Oe,filterSeries:Ae,forever:Re,groupBy:Ce,groupByLimit:Ne,groupBySeries:Pe,log:Le,map:F,mapLimit:ie,mapSeries:B,mapValues:Fe,mapValuesLimit:qe,mapValuesSeries:Me,memoize:De,nextTick:Be,parallel:ze,parallelLimit:Je,priorityQueue:Qe,queue:Ge,race:Ke,reduce:te,reduceRight:Ye,reflect:Xe,reflectAll:$e,reject:et,rejectLimit:tt,rejectSeries:nt,retry:it,retryable:ot,seq:ne,series:st,setImmediate:g,some:ct,someLimit:ut,someSeries:lt,sortBy:ft,timeout:pt,times:ht,timesLimit:dt,timesSeries:vt,transform:mt,tryEach:gt,unmemoize:yt,until:_t,waterfall:wt,whilst:bt,all:Se,allLimit:xe,allSeries:ke,any:ct,anyLimit:ut,anySeries:lt,find:le,findLimit:fe,findSeries:pe,flatMap:oe,flatMapLimit:ae,flatMapSeries:se,forEach:ye,forEachSeries:_e,forEachLimit:be,forEachOf:q,forEachOfSeries:D,forEachOfLimit:C,inject:te,foldl:te,foldr:Ye,select:Ie,selectLimit:Oe,selectSeries:Ae,wrapSync:y,during:bt,doDuring:ve};t.default=St},function(e,t,n){var r=n(11),i=n(87),a="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?a.call(e,""):Object(e)}:Object},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+r).toString(36)}},function(e,t){e.exports={}},function(e,t,n){var r=n(84),i=n(29),a=n(105),o=function(e){return function(t,n,o){var s,c=r(t),u=i(c.length),l=a(o,u);if(e&&n!=n){for(;u>l;)if((s=c[l++])!=s)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===n)return e||l||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},function(e,t,n){var r=n(11),i=/#|\.prototype\./,a=function(e,t){var n=s[o(e)];return n==u||n!=c&&("function"==typeof t?r(t):!!t)},o=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},s=a.data={},c=a.NATIVE="N",u=a.POLYFILL="P";e.exports=a},function(e,t,n){var r=n(11),i=n(18),a=n(180),o=i("species");e.exports=function(e){return a>=51||!r((function(){var t=[];return(t.constructor={})[o]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},function(e,t,n){var r=n(181),i=n(87),a=n(18)("toStringTag"),o="Arguments"==i(function(){return arguments}());e.exports=r?i:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),a))?n:o?i(t):"Object"==(r=i(t))&&"function"==typeof t.callee?"Arguments":r}},function(e,t,n){var r=n(215),i=n(176);e.exports=Object.keys||function(e){return r(e,i)}},function(e,t){e.exports={}},function(e,t,n){var r=n(36),i=n(301);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(e){}return function(n,a){return r(n),i(a),t?e.call(n,a):n.__proto__=a,n}}():void 0)},function(e,t,n){var r=n(128),i=n(130),a=n(18)("iterator");e.exports=function(e){if(null!=e)return e[a]||e["@@iterator"]||i[r(e)]}},function(e,t,n){"use strict";var r=n(7),i=n(72).find,a=n(149),o=n(80),s=!0,c=o("find");"find"in[]&&Array(1).find((function(){s=!1})),r({target:"Array",proto:!0,forced:s||!c},{find:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),a("find")},function(e,t,n){n(115)("asyncIterator")},function(e,t,n){var r=n(7),i=n(11),a=n(46),o=n(116),s=n(225);r({target:"Object",stat:!0,forced:i((function(){o(1)})),sham:!s},{getPrototypeOf:function(e){return o(a(e))}})},function(e,t,n){"use strict";n(7)({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})},function(e,t,n){"use strict";var r,i=n(7),a=n(93).f,o=n(29),s=n(193),c=n(85),u=n(194),l=n(94),f="".startsWith,p=Math.min,d=u("startsWith");i({target:"String",proto:!0,forced:!!(l||d||(r=a(String.prototype,"startsWith"),!r||r.writable))&&!d},{startsWith:function(e){var t=String(c(this));s(e);var n=o(p(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return f?f.call(t,r,n):t.slice(n,n+r.length)===r}})},function(e,t,n){(function(e){n(5),n(25);var r=n(13);function i(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===i(e)},t.isBoolean=function(e){return"boolean"==typeof e},t.isNull=function(e){return null===e},t.isNullOrUndefined=function(e){return null==e},t.isNumber=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSymbol=function(e){return"symbol"===r(e)},t.isUndefined=function(e){return void 0===e},t.isRegExp=function(e){return"[object RegExp]"===i(e)},t.isObject=function(e){return"object"===r(e)&&null!==e},t.isDate=function(e){return"[object Date]"===i(e)},t.isError=function(e){return"[object Error]"===i(e)||e instanceof Error},t.isFunction=function(e){return"function"==typeof e},t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"===r(e)||void 0===e},t.isBuffer=e.isBuffer}).call(this,n(111).Buffer)},function(e,t){"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 n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},function(e,t,n){"use strict";var r=n(7),i=n(148).left,a=n(106),o=n(80),s=a("reduce"),c=o("reduce",{1:0});r({target:"Array",proto:!0,forced:!s||!c},{reduce:function(e){return i(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SessionTypes=void 0,function(e){e.softphone="softphone",e.collaborateVideo="collaborateVideo",e.acdScreenShare="screenShare",e.screenRecording="screenRecording",e.unknown="unknown"}(t.SessionTypes||(t.SessionTypes={}))},function(e,t,n){"use strict";n(10),n(19),n(281),n(23),n(9),n(28),n(90),n(5),n(21),n(15),n(91),n(22),n(38),n(27),n(24);var r=n(14),i=n(2),a=n(3);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}Object.defineProperty(t,"__esModule",{value:!0}),t.HttpClient=void 0;var c=n(165).__importStar(n(170)),u=n(101),l=function(){function e(){i(this,e),this._httpRetryingRequests=new Map}return a(e,[{key:"requestApiWithRetry",value:function(t,n,r){var i=this,a=u.retryPromise(this.requestApi.bind(this,t,n),(function(t){return t&&t.response&&e.retryStatusCodes.has(t.response.status)}),r,n.logger);return this._httpRetryingRequests.set(a._id,a),a.promise.then((function(){return i.cancelRetryRequest(a._id)}),(function(){return i.cancelRetryRequest(a._id)})),a}},{key:"requestApi",value:function(e,t){var n=t.logger||console,r=(new Date).getTime(),i=this._buildUri(t.host,e,t.version),a={method:t.method,url:i,data:t.data,headers:{"content-type":t.contentType||"application/json"}};t.noAuthHeader||(a.headers.Authorization="Bearer ".concat(t.authToken));var o=function(e){var i,o=(new Date).getTime(),u=o-r+"ms";if(e instanceof c.AxiosError){var l=e.response||{},f=l.status,p=null===(i=l.headers)||void 0===i?void 0:i["inin-correlation-id"],d=l.data,h=s(s({},e),{},{text:l.request.response});return n.debug("request error: ".concat(a.url),{message:e.message,now:o,elapsed:u,status:f,correlationId:p,body:d},!0),Promise.reject(h)}var v=e.status,m=e.headers["inin-correlation-id"],g=JSON.stringify(e.data);return n.debug("response: ".concat(t.method.toUpperCase()," ").concat(a.url),{now:o,status:v,elapsed:u,correlationId:m,body:g},!0),Promise.resolve(e)};return c.default(a).then(o.bind(this),o.bind(this))}},{key:"stopAllRetries",value:function(){var e=this;Array.from(this._httpRetryingRequests.keys()).forEach((function(t){return e.cancelRetryRequest(t)}))}},{key:"cancelRetryRequest",value:function(e){var t=this._httpRetryingRequests.get(e);return t&&(t.cancel(new Error("Retry request cancelled")),this._httpRetryingRequests.delete(e)),!0}},{key:"formatRequestError",value:function(e){if(this.isSuperagentNetworkError(e))return{status:e.status,method:e.method,url:e.url,crossDomain:e.crossDomain,message:e.message,name:e.name,stack:e.stack};if(this.isSuperagentResponseError(e)){var t=e.response;return{status:e.status,correlationId:t.headers["inin-correlation-id"],message:"Error making HTTP request",method:t.req.method,name:t.error.name,stack:t.error.stack}}return e}},{key:"isSuperagentNetworkError",value:function(e){return e&&e.hasOwnProperty("status")&&e.hasOwnProperty("method")&&e.hasOwnProperty("url")}},{key:"isSuperagentResponseError",value:function(e){return!!(e&&e.response&&e.response.body&&e.response.req)}},{key:"_buildUri",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"v2";return t=t.replace(/^\/+|\/+$/g,""),0===e.indexOf("http")?"".concat(e,"/api/").concat(n,"/").concat(t):"https://api.".concat(e,"/api/").concat(n,"/").concat(t)}}]),e}();t.HttpClient=l,l.retryStatusCodes=new Set([408,413,429,500,502,503,504])},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,a=i&&!r.call({1:2},1);t.f=a?function(e){var t=i(this,e);return!!t&&t.enumerable}:r},function(e,t,n){var r=n(175),i=n(123),a=r("keys");e.exports=function(e){return a[e]||(a[e]=i(e))}},function(e,t,n){var r=n(87);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){"use strict";var r=n(113),i=n(35),a=n(103);e.exports=function(e,t,n){var o=r(t);o in e?i.f(e,o,a(0,n)):e[o]=n}},function(e,t,n){var r=n(114),i=n(46),a=n(122),o=n(29),s=function(e){return function(t,n,s,c){r(n);var u=i(t),l=a(u),f=o(u.length),p=e?f-1:0,d=e?-1:1;if(s<2)for(;;){if(p in l){c=l[p],p+=d;break}if(p+=d,e?p<0:f<=p)throw TypeError("Reduce of empty array with no initial value")}for(;e?p>=0:f>p;p+=d)p in l&&(c=n(c,l[p],p,u));return c}};e.exports={left:s(!1),right:s(!0)}},function(e,t,n){var r=n(18),i=n(107),a=n(35),o=r("unscopables"),s=Array.prototype;null==s[o]&&a.f(s,o,{configurable:!0,value:i(null)}),e.exports=function(e){s[o][e]=!0}},function(e,t,n){var r=n(45);e.exports=function(e,t,n){for(var i in t)r(e,i,t[i],n);return e}},function(e,t,n){var r=n(18)("iterator"),i=!1;try{var a=0,o={next:function(){return{done:!!a++}},return:function(){i=!0}};o[r]=function(){return this},Array.from(o,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var a={};a[r]=function(){return{next:function(){return{done:n=!0}}}},e(a)}catch(e){}return n}},function(e,t,n){"use strict";var r,i,a=n(182),o=n(235),s=RegExp.prototype.exec,c=String.prototype.replace,u=s,l=(r=/a/,i=/b*/g,s.call(r,"a"),s.call(i,"a"),0!==r.lastIndex||0!==i.lastIndex),f=o.UNSUPPORTED_Y||o.BROKEN_CARET,p=void 0!==/()??/.exec("")[1];(l||p||f)&&(u=function(e){var t,n,r,i,o=this,u=f&&o.sticky,d=a.call(o),h=o.source,v=0,m=e;return u&&(-1===(d=d.replace("y","")).indexOf("g")&&(d+="g"),m=String(e).slice(o.lastIndex),o.lastIndex>0&&(!o.multiline||o.multiline&&"\n"!==e[o.lastIndex-1])&&(h="(?: "+h+")",m=" "+m,v++),n=new RegExp("^(?:"+h+")",d)),p&&(n=new RegExp("^"+h+"$(?!\\s)",d)),l&&(t=o.lastIndex),r=s.call(u?n:o,m),u?r?(r.input=r.input.slice(v),r[0]=r[0].slice(v),r.index=o.lastIndex,o.lastIndex+=r[0].length):o.lastIndex=0:l&&r&&(o.lastIndex=o.global?r.index+r[0].length:t),p&&r&&r.length>1&&c.call(r[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(r[i]=void 0)})),r}),e.exports=u},function(e,t,n){var r=n(96),i=n(85),a=function(e){return function(t,n){var a,o,s=String(i(t)),c=r(n),u=s.length;return c<0||c>=u?e?"":void 0:(a=s.charCodeAt(c))<55296||a>56319||c+1===u||(o=s.charCodeAt(c+1))<56320||o>57343?e?s.charAt(c):a:e?s.slice(c,c+2):o-56320+(a-55296<<10)+65536}};e.exports={codeAt:a(!1),charAt:a(!0)}},function(e,t,n){"use strict";n(15);var r=n(45),i=n(11),a=n(18),o=n(152),s=n(76),c=a("species"),u=!i((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),l="$0"==="a".replace(/./,"$0"),f=a("replace"),p=!!/./[f]&&""===/./[f]("a","$0"),d=!i((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));e.exports=function(e,t,n,f){var h=a(e),v=!i((function(){var t={};return t[h]=function(){return 7},7!=""[e](t)})),m=v&&!i((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[c]=function(){return n},n.flags="",n[h]=/./[h]),n.exec=function(){return t=!0,null},n[h](""),!t}));if(!v||!m||"replace"===e&&(!u||!l||p)||"split"===e&&!d){var g=/./[h],y=n(h,""[e],(function(e,t,n,r,i){return t.exec===o?v&&!i?{done:!0,value:g.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),{REPLACE_KEEPS_$0:l,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:p}),b=y[0],_=y[1];r(String.prototype,e,b),r(RegExp.prototype,h,2==t?function(e,t){return _.call(e,this,t)}:function(e){return _.call(e,this)})}f&&s(RegExp.prototype[h],"sham",!0)}},function(e,t,n){var r=n(87),i=n(152);e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var a=n.call(e,t);if("object"!=typeof a)throw TypeError("RegExp exec method returned something other than an Object or null");return a}if("RegExp"!==r(e))throw TypeError("RegExp#exec called on incompatible receiver");return i.call(e,t)}},function(e,t,n){var r=n(31),i=n(131);e.exports=function(e,t,n){var a,o;return i&&"function"==typeof(a=t.constructor)&&a!==n&&r(o=a.prototype)&&o!==n.prototype&&i(e,o),e}},function(e,t,n){"use strict";var r=n(32),i=n(12),a=n(126),o=n(45),s=n(34),c=n(87),u=n(156),l=n(113),f=n(11),p=n(107),d=n(104).f,h=n(93).f,v=n(35).f,m=n(236).trim,g=i.Number,y=g.prototype,b="Number"==c(p(y)),_=function(e){var t,n,r,i,a,o,s,c,u=l(e,!1);if("string"==typeof u&&u.length>2)if(43===(t=(u=m(u)).charCodeAt(0))||45===t){if(88===(n=u.charCodeAt(2))||120===n)return NaN}else if(48===t){switch(u.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+u}for(o=(a=u.slice(2)).length,s=0;s<o;s++)if((c=a.charCodeAt(s))<48||c>i)return NaN;return parseInt(a,r)}return+u};if(a("Number",!g(" 0o1")||!g("0b1")||g("+0x1"))){for(var w,S=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof S&&(b?f((function(){y.valueOf.call(n)})):"Number"!=c(n))?u(new g(_(t)),n,S):_(t)},x=r?d(g):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),k=0;x.length>k;k++)s(g,w=x[k])&&!s(S,w)&&v(S,w,h(g,w));S.prototype=y,y.constructor=S,o(i,"Number",S)}},function(e,t,n){var r=n(7),i=n(185),a=n(149);r({target:"Array",proto:!0},{fill:i}),a("fill")},function(e,t,n){var r=n(7),i=n(240);r({target:"Array",proto:!0,forced:i!==[].lastIndexOf},{lastIndexOf:i})},function(e,t,n){var r=n(7),i=n(105),a=String.fromCharCode,o=String.fromCodePoint;r({target:"String",stat:!0,forced:!!o&&1!=o.length},{fromCodePoint:function(e){for(var t,n=[],r=arguments.length,o=0;r>o;){if(t=+arguments[o++],i(t,1114111)!==t)throw RangeError(t+" is not a valid code point");n.push(t<65536?a(t):a(55296+((t-=65536)>>10),t%1024+56320))}return n.join("")}})},function(e,t,n){var r=n(7),i=n(12),a=n(189);r({global:!0,bind:!0,enumerable:!0,forced:!i.setImmediate||!i.clearImmediate},{setImmediate:a.set,clearImmediate:a.clear})},function(e,t,n){"use strict";(function(t){n(23),!t.version||0===t.version.indexOf("v0.")||0===t.version.indexOf("v1.")&&0!==t.version.indexOf("v1.8.")?e.exports={nextTick:function(e,n,r,i){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var a,o,s=arguments.length;switch(s){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick((function(){e.call(null,n)}));case 3:return t.nextTick((function(){e.call(null,n,r)}));case 4:return t.nextTick((function(){e.call(null,n,r,i)}));default:for(a=new Array(s-1),o=0;o<a.length;)a[o++]=arguments[o];return t.nextTick((function(){e.apply(null,a)}))}}}:e.exports=t}).call(this,n(100))},function(e,t,n){n(158);var r=n(111),i=r.Buffer;function a(e,t){for(var n in e)t[n]=e[n]}function o(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(a(r,t),t.Buffer=o),a(i,o),o.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},o.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},function(e,t,n){"use strict";n(28);var r=n(120);function i(e){r.call(this,null==e?"canceled":e,r.ERR_CANCELED),this.name="CanceledError"}n(41).inherits(i,r,{__CANCEL__:!0}),e.exports=i},function(e,t,n){"use strict";n.r(t),n.d(t,"__extends",(function(){return o})),n.d(t,"__assign",(function(){return s})),n.d(t,"__rest",(function(){return c})),n.d(t,"__decorate",(function(){return u})),n.d(t,"__param",(function(){return l})),n.d(t,"__metadata",(function(){return f})),n.d(t,"__awaiter",(function(){return p})),n.d(t,"__generator",(function(){return d})),n.d(t,"__exportStar",(function(){return h})),n.d(t,"__values",(function(){return v})),n.d(t,"__read",(function(){return m})),n.d(t,"__spread",(function(){return g})),n.d(t,"__spreadArrays",(function(){return y})),n.d(t,"__await",(function(){return b})),n.d(t,"__asyncGenerator",(function(){return _})),n.d(t,"__asyncDelegator",(function(){return w})),n.d(t,"__asyncValues",(function(){return S})),n.d(t,"__makeTemplateObject",(function(){return x})),n.d(t,"__importStar",(function(){return k})),n.d(t,"__importDefault",(function(){return T}));n(47),n(73),n(134),n(97),n(10),n(23),n(9),n(75),n(266),n(5),n(21),n(22),n(24);var r=n(13),i=n.n(r),a=function(e,t){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function o(e,t){function n(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var s=function(){return(s=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function c(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function u(e,t,n,r){var a,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":i()(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(s=(o<3?a(s):o>3?a(t,n,s):a(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s}function l(e,t){return function(n,r){t(n,r,e)}}function f(e,t){if("object"===("undefined"==typeof Reflect?"undefined":i()(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function p(e,t,n,r){return new(n||(n=Promise))((function(i,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(o,s)}c((r=r.apply(e,t||[])).next())}))}function d(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}function h(e,t){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}function v(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function m(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}function g(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(m(arguments[t]));return e}function y(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r}function b(e){return this instanceof b?(this.v=e,this):new b(e)}function _(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),a=[];return r={},o("next"),o("throw"),o("return"),r[Symbol.asyncIterator]=function(){return this},r;function o(e){i[e]&&(r[e]=function(t){return new Promise((function(n,r){a.push([e,t,n,r])>1||s(e,t)}))})}function s(e,t){try{(n=i[e](t)).value instanceof b?Promise.resolve(n.value.v).then(c,u):l(a[0][2],n)}catch(e){l(a[0][3],e)}var n}function c(e){s("next",e)}function u(e){s("throw",e)}function l(e,t){e(t),a.shift(),a.length&&s(a[0][0],a[0][1])}}function w(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:b(e[r](t)),done:"return"===r}:i?i(t):t}:i}}function S(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=v(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,i,(t=e[n](t)).done,t.value)}))}}}function x(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function k(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function T(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";n(10),n(44),n(23),n(33),n(30),n(28),n(118),n(5),n(25),n(137),n(136);var r=n(4),i=n(2),a=n(3);function o(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){c=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(c)throw a}}}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}Object.defineProperty(t,"__esModule",{value:!0});var c=n(167),u=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];i(this,e),this.name=t,this.attributes=n,this.children=[],this.optionalNamespaces={};var a,s=o(r);try{for(s.s();!(a=s.n()).done;){var c=a.value;if("string"!=typeof c){var u=new e(c.name,c.attributes,c.children);u.parent=this,this.children.push(u)}else this.children.push(c)}}catch(e){s.e(e)}finally{s.f()}}return a(e,[{key:"getName",value:function(){return this.name.indexOf(":")>=0?this.name.substr(this.name.indexOf(":")+1):this.name}},{key:"getNamespace",value:function(){if(this.name.indexOf(":")>=0){var e=this.name.substr(0,this.name.indexOf(":"));return this.findNamespaceForPrefix(e)}return this.findNamespaceForPrefix()}},{key:"getNamespaceContext",value:function(){var e={};this.parent&&(e=this.parent.getNamespaceContext());for(var t=0,n=Object.entries(this.attributes);t<n.length;t++){var i=r(n[t],2),a=i[0],o=i[1];if(a.startsWith("xmlns:")){var s=a.substr(6);e[o]=s}}return e}},{key:"getDefaultNamespace",value:function(){return this.attributes.xmlns?this.attributes.xmlns:this.parent?this.parent.getDefaultNamespace():""}},{key:"getNamespaceRoot",value:function(e){if(this.parent){var t=this.parent.getNamespaceRoot(e);if(t)return t}for(var n=0,i=Object.entries(this.attributes);n<i.length;n++){var a=r(i[n],2),o=a[0],s=a[1];if(o.startsWith("xmlns:")&&s===e)return this}if(this.optionalNamespaces[e])return this}},{key:"getAttribute",value:function(e,t){if(!t)return this.attributes[e];var n=this.getNamespaceContext();return n[t]?this.attributes[[n[t],e].join(":")]:void 0}},{key:"getChild",value:function(e,t){return this.getChildren(e,t)[0]}},{key:"getChildren",value:function(e,t){var n,r=[],i=o(this.children);try{for(i.s();!(n=i.n()).done;){var a=n.value;"string"==typeof a||a.getName()!==e||t&&a.getNamespace()!==t||r.push(a)}}catch(e){i.e(e)}finally{i.f()}return r}},{key:"getText",value:function(){var e,t="",n=o(this.children);try{for(n.s();!(e=n.n()).done;){var r=e.value;"string"==typeof r&&(t+=r)}}catch(e){n.e(e)}finally{n.f()}return t}},{key:"appendChild",value:function(e){return this.children.push(e),"string"!=typeof e&&(e.parent=this),e}},{key:"setAttribute",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.attributes[e]=t||void 0,""===t&&n&&(this.attributes[e]=t)}},{key:"addOptionalNamespace",value:function(e,t){this.optionalNamespaces[t]=e}},{key:"useNamespace",value:function(e,t){return this.optionalNamespaces[t]&&(e=this.optionalNamespaces[t]),this.setAttribute("xmlns:".concat(e),t),e}},{key:"toJSON",value:function(){for(var e=this.children.map((function(e){return"string"==typeof e?e:e?e.toJSON():void 0})).filter((function(e){return!!e})),t={},n=0,i=Object.entries(this.attributes);n<i.length;n++){var a=r(i[n],2),o=a[0],s=a[1];null!=s&&(t[o]=s)}return{attributes:t,children:e,name:this.name}}},{key:"toString",value:function(){var e=this.openTag(!0);if(this.children.length){var t,n=o(this.children);try{for(n.s();!(t=n.n()).done;){var r=t.value;"string"==typeof r?e+=c.escapeXMLText(r):r&&(e+=r.toString())}}catch(e){n.e(e)}finally{n.f()}e+=this.closeTag()}return e}},{key:"openTag",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t="";t+="<".concat(this.name);for(var n=0,i=Object.entries(this.attributes);n<i.length;n++){var a=r(i[n],2),o=a[0],s=a[1];void 0!==s&&(t+=" ".concat(o,'="').concat(c.escapeXML(s.toString()),'"'))}return e&&0===this.children.length?t+="/>":t+=">",t}},{key:"closeTag",value:function(){return"</".concat(this.name,">")}},{key:"findNamespaceForPrefix",value:function(e){if(e){var t="xmlns:"+e;if(this.attributes[t])return this.attributes[t];if(this.parent)return this.parent.findNamespaceForPrefix(e)}else{if(this.attributes.xmlns)return this.attributes.xmlns;if(this.parent)return this.parent.findNamespaceForPrefix()}return""}}]),e}();t.default=u},function(e,t,n){"use strict";function r(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){c=!0,o=e},f:function(){try{s||null==n.return||n.return()}finally{if(c)throw o}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n(9),n(159),n(30),n(5),n(15),n(91),n(160),n(22),n(38),n(137),n(24),Object.defineProperty(t,"__esModule",{value:!0}),t.basicLanguageResolver=t.escapeXMLText=t.unescapeXML=t.escapeXML=void 0;var a=n(1).__importDefault(n(201)),o={'"':"&quot;","&":"&amp;","'":"&apos;","<":"&lt;",">":"&gt;"},s={"&amp;":"&","&apos;":"'","&gt;":">","&lt;":"<","&quot;":'"'},c=/&([a-zA-Z0-9]+|#[0-9]+|#x[0-9a-fA-F]+);/g,u=/&|<|>|"|'/g,l=/&|<|>/g;function f(e){return o[e]}t.escapeXML=function(e){return e.replace(u,f)},t.unescapeXML=function(e){return e.replace(c,(function(e){return function(e){if(s[e])return s[e];var t=e.startsWith("&#x"),n=parseInt(e.substring(t?3:2,e.length-1),t?16:10);if(9===n||10===n||13===n||32<=n&&n<=55295||57344<=n&&n<=65533||65536<=n&&n<=1114111)return String.fromCodePoint(n);throw a.default.restrictedXML("Prohibited entity: "+e)}(e)}))},t.escapeXMLText=function(e){return e.replace(l,f)},t.basicLanguageResolver=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",a=new Set(e.map((function(e){return e.toLowerCase()}))),o=r(n.map((function(e){return e.toLowerCase()})));try{for(o.s();!(t=o.n()).done;){var s=t.value;if("*"!==s)for(;s.length>0;){if(a.has(s))return s;(s=s.substring(0,s.lastIndexOf("-")).toLowerCase()).lastIndexOf("-")===s.length-2&&(s=s.substring(0,s.lastIndexOf("-")))}}}catch(e){o.e(e)}finally{o.f()}return i}},function(e,t,n){"use strict";n(10),n(44),n(133),n(19),n(82),n(75),n(71),n(15),n(99),n(89),n(27);var r=n(14),i=n(13),a=n(0);n(40);var o=n(83),s=n(2),c=n(3),u=n(43),l=n(77),f=n(8),p=n(37),d=n(16);function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function m(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return g(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return g(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function y(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 n,r=d(e);if(t){var i=d(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return p(this,n)}}Object.defineProperty(t,"__esModule",{value:!0}),t.GenesysCloudMediaSession=void 0;var b=n(165),_=n(394),w=n(102),S=b.__importDefault(n(396)),x=n(42),k=n(141),T={"Discovered new ICE candidate":{skipMessage:!0}},j=function(e){f(r,e);var t,n=y(r);function r(e){var t;s(this,r),(t=n.call(this,e.options)).iceCandidatesDiscovered=0,t.iceCandidatesReceivedFromPeer=0,t.conversationId=e.conversationId,t.fromUserId=e.fromUserId,t.originalRoomJid=e.originalRoomJid,t.sessionType=k.SessionTypes[e.sessionType],t.ignoreHostCandidatesFromRemote=!!e.ignoreHostCandidatesFromRemote,t.allowIPv6=!!e.allowIPv6,t.allowTCP=!!e.allowTCP;var i=new x.EventEmitter;return Object.keys(i.__proto__).forEach((function(e){t[e]=i[e]})),e.optOutOfWebrtcStatsTelemetry||t.setupStatsGatherer(),t.pc.addEventListener("connectionstatechange",t.onConnectionStateChange.bind(u(t))),t.pc.addEventListener("icecandidateerror",t.onIceCandidateError.bind(u(t))),t}return c(r,[{key:"getLogDetails",value:function(){return{conversationId:this.conversationId,sessionId:this.sid,sessionType:this.sessionType}}},{key:"onTransportInfo",value:(t=o(a.mark((function e(t,n){var i,o,s,c,u,f,p,h;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(s=null===(i=t.contents)||void 0===i?void 0:i[0].transport,c=null==s?void 0:s.candidates,this.ignoreHostCandidatesFromRemote&&(null==(u=null==c?void 0:c.filter((function(e){return"host"!==e.type})))?void 0:u.length)!==(null===(o=null==s?void 0:s.candidates)||void 0===o?void 0:o.length)&&(this._log("info","Ignoring remote host ice candidates"),s.candidates=u),c){f=m(c);try{for(f.s();!(p=f.n()).done;)h=p.value,this._log("info","Received candidate from peer",{candidateType:h.type}),this.iceCandidatesReceivedFromPeer++}catch(e){f.e(e)}finally{f.f()}}return e.abrupt("return",l(d(r.prototype),"onTransportInfo",this).call(this,t,n));case 5:case"end":return e.stop()}}),e,this)}))),function(e,n){return t.apply(this,arguments)})},{key:"_log",value:function(e,t){if(this.parent){var n,r,a=T[t];if(null==a?void 0:a.skipMessage)return;for(var o=arguments.length,s=new Array(o>2?o-2:0),c=2;c<o;c++)s[c-2]=arguments[c];if(s.length){var u=s[0];"object"!==i(u)||Array.isArray(u)||null===u?s[0]=v(v({},this.getLogDetails()),{},{data:u}):Object.assign(s[0],this.getLogDetails())}else s.push(this.getLogDetails());(n=this.parent).emit.apply(n,["log",e,t].concat(s)),(r=this.parent).emit.apply(r,["log:"+e,t].concat(s))}}},{key:"end",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"success",n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.state="ended",this.processingQueue.kill(),"string"==typeof t&&(t={condition:t}),n||this.send("session-terminate",{reason:t}),setTimeout((function(){"connected"!==e.pc.connectionState&&"connecting"!==e.pc.connectionState||e.pc.close()}),2e3),this.parent.emit("terminated",this,t),this.parent.forgetSession(this)}},{key:"setupStatsGatherer",value:function(){this.statsGatherer=new S.default(this.pc),this.statsGatherer.on("stats",this.emit.bind(this,"stats"))}},{key:"onIceStateChange",value:function(){var e=this.pc.iceConnectionState,t=this.id,n=this.conversationId;this._log("info","ICE state changed: ",{iceState:e,sessionId:t,conversationId:n}),"connected"===e?(this._log("info","sending session-info: active"),this.send(w.JingleAction.SessionInfo,{info:{infoType:w.JINGLE_INFO_ACTIVE}}),this._setupDataChannel()):"failed"===e&&this._log("info","ICE connection failed",{candidatesDiscovered:this.iceCandidatesDiscovered,candidatesReceivedFromPeer:this.iceCandidatesReceivedFromPeer}),l(d(r.prototype),"onIceStateChange",this).call(this)}},{key:"onConnectionStateChange",value:function(){this._log("info","Connection state changed: ",{connectionState:this.pc.connectionState})}},{key:"onIceCandidateError",value:function(e){this._log("error","IceCandidateError",{errorCode:e.errorCode,errorText:e.errorText,url:e.url}),console.error("IceCandidateError",e)}},{key:"onIceCandidate",value:function(e){if(e.candidate){if(!this.allowTCP&&"tcp"===e.candidate.protocol)return;if(!this.allowIPv6){var t=/.+udp [^ ]+ ([^ ]+).*typ host/.exec(e.candidate.candidate);if(t&&!t[1].match(/\b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\b/))return void this._log("debug","Filtering out IPv6 candidate",e.candidate.candidate)}this._log("debug","Processing ice candidate",e.candidate.candidate),this._log("info","Discovered ice candidate to send to peer",{type:e.candidate.type}),this.iceCandidatesDiscovered++}return l(d(r.prototype),"onIceCandidate",this).call(this,e)}},{key:"onIceEndOfCandidates",value:function(){l(d(r.prototype),"onIceEndOfCandidates",this).call(this),this.emit("endOfCandidates")}},{key:"addTrack",value:function(e,t){var n=this;return"audio"===e.kind&&(this.includesAudio=!0),"video"===e.kind&&(this.includesVideo=!0),this.processLocal("addtrack",o(a.mark((function r(){var i;return a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!(i=n.pc.getTransceivers().find((function(t){var n;return!t.sender.track&&(null===(n=t.receiver.track)||void 0===n?void 0:n.kind)===e.kind})))){r.next=3;break}return r.abrupt("return",i.sender.replaceTrack(e));case 3:return n.pc.addTrack(e,t),r.abrupt("return");case 5:case"end":return r.stop()}}),r)}))))}},{key:"_setupDataChannel",value:function(){var e,t=this;this.dataChannel||(null===(e=this.pc.localDescription)||void 0===e?void 0:e.sdp.includes("webrtc-datachannel"))&&(this._log("info","creating data channel"),this.dataChannel=this.pc.createDataChannel("videoConferenceControl"),this.dataChannel.addEventListener("open",(function(){t._log("info","data channel opened")})),this.dataChannel.addEventListener("message",this._handleDataChannelMessage.bind(this)),this.dataChannel.addEventListener("close",(function(){t._log("info","closing data channel")})),this.dataChannel.addEventListener("error",(function(e){t._log("error","Error occurred with the data channel",e)})))}},{key:"_handleDataChannelMessage",value:function(e){this._log("debug","data channel message received",e);try{var t=JSON.parse(e.data);this.emit("dataChannelMessage",t)}catch(e){this._log("error","Failed to parse data channel message",{error:e})}}}]),r}(_.MediaSession);t.GenesysCloudMediaSession=j},function(e,t,n){"use strict";function r(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){c=!0,o=e},f:function(){try{s||null==n.return||n.return()}finally{if(c)throw o}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n(10),n(44),n(33),n(30),n(15),n(38),n(39),Object.defineProperty(t,"__esModule",{value:!0}),t.exportToSDP=t.importFromSDP=void 0;var a=n(1).__importStar(n(17));t.importFromSDP=function(e){var t=a.getMediaSections(e),n=a.getDescription(e),i={groups:[],media:[]};a.matchPrefix(n,"a=ice-lite").length>0&&(i.iceLite=!0);var o,s=r(a.matchPrefix(n,"a=group:"));try{for(s.s();!(o=s.n()).done;){var c=o.value.split(" "),u=c.shift().substr(8);i.groups.push({mids:c,semantics:u})}}catch(e){s.e(e)}finally{s.f()}var l,f=r(t);try{for(f.s();!(l=f.n()).done;){var p=l.value,d=a.getKind(p),h=a.isRejected(p),v=a.parseMLine(p),m={direction:a.getDirection(p,n),kind:d,mid:a.getMid(p),protocol:v.protocol};if(h||(m.iceParameters=a.getIceParameters(p,n),m.dtlsParameters=a.getDtlsParameters(p,n),m.setup=a.matchPrefix(p,"a=setup:")[0].substr(8),i.iceLite&&(m.iceParameters.iceLite=!0)),"audio"===d||"video"===d){m.rtpParameters=a.parseRtpParameters(p),m.rtpEncodingParameters=a.parseRtpEncodingParameters(p),m.rtcpParameters=a.parseRtcpParameters(p);var g=a.parseMsid(p);m.streams=g?[g]:[]}else"application"===d&&(m.sctp=a.parseSctpDescription(p));m.candidates=a.matchPrefix(p,"a=candidate:").map(a.parseCandidate),i.media.push(m)}}catch(e){f.e(e)}finally{f.f()}return i},t.exportToSDP=function(e){var t=[];t.push(a.writeSessionBoilerplate(e.sessionId,e.sessionVersion),"a=msid-semantic:WMS *\r\n"),(e.iceLite||e.media.filter((function(e){return e.iceParameters&&e.iceParameters.iceLite})).length>0)&&t.push("a=ice-lite\r\n");var n,i=r(e.groups||[]);try{for(i.s();!(n=i.n()).done;){var o=n.value;t.push("a=group:".concat(o.semantics," ").concat(o.mids.join(" "),"\r\n"))}}catch(e){i.e(e)}finally{i.f()}var s,c=r(e.media||[]);try{for(c.s();!(s=c.n()).done;){var u=s.value,l=!(u.iceParameters&&u.dtlsParameters);if("application"===u.kind&&u.sctp)t.push(a.writeSctpDescription(u,u.sctp));else if(u.rtpParameters){var f=a.writeRtpDescription(u.kind,u.rtpParameters);l&&(f=f.replace("m=".concat(u.kind," 9 "),"m=".concat(u.kind," 0 "))),t.push(f),t.push("a=".concat(u.direction||"sendrecv","\r\n"));var p,d=r(u.streams||[]);try{for(d.s();!(p=d.n()).done;){var h=p.value;t.push("a=msid:".concat(h.stream," ").concat(h.track,"\r\n"))}}catch(e){d.e(e)}finally{d.f()}if(u.rtcpParameters&&(t.push(a.writeRtcpParameters(u.rtcpParameters)),u.rtcpParameters.cname&&u.rtpEncodingParameters&&u.rtpEncodingParameters[0].rtx)){var v=u.rtpEncodingParameters[0];t.push("a=ssrc-group:FID ".concat(v.ssrc," ").concat(v.rtx.ssrc,"\r\n")),t.push("a=ssrc:".concat(v.rtx.ssrc," cname:").concat(u.rtcpParameters.cname,"\r\n"))}}if(void 0!==u.mid&&t.push("a=mid:".concat(u.mid,"\r\n")),u.iceParameters&&t.push(a.writeIceParameters({usernameFragment:u.iceParameters.usernameFragment,password:u.iceParameters.password})),u.dtlsParameters&&u.setup&&t.push(a.writeDtlsParameters(u.dtlsParameters,u.setup)),u.candidates&&u.candidates.length){var m,g=r(u.candidates);try{for(g.s();!(m=g.n()).done;){var y=m.value;t.push("a=".concat(a.writeCandidate(y),"\r\n"))}}catch(e){g.e(e)}finally{g.f()}}}}catch(e){c.e(e)}finally{c.f()}return t.join("")}},function(e,t,n){e.exports=n(351)},function(e,t,n){n(23),n(30),n(140),n(71),n(136);var r=n(13),i=Object.prototype.hasOwnProperty;function a(e){return"[Throws: "+(e?e.message:"?")+"]"}function o(e){var t=[];return function e(n){if(null===n||"object"!==r(n))return n;if(-1!==t.indexOf(n))return"[Circular]";if(t.push(n),"function"==typeof n.toJSON)try{var o=e(n.toJSON());return t.pop(),o}catch(e){return a(e)}if(Array.isArray(n)){var s=n.map(e);return t.pop(),s}var c=Object.keys(n).reduce((function(t,r){return t[r]=e(function(e,t){if(i.call(e,t))try{return e[t]}catch(e){return a(e)}return e[t]}(n,r)),t}),{});return t.pop(),c}(e)}e.exports=function(e,t,n){return JSON.stringify(o(e),t,n)},e.exports.ensureProperties=o},function(e,t,n){var r=n(12),i=n(31),a=r.document,o=i(a)&&i(a.createElement);e.exports=function(e){return o?a.createElement(e):{}}},function(e,t,n){var r=n(12),i=n(76);e.exports=function(e,t){try{i(r,e,t)}catch(n){r[e]=t}return t}},function(e,t,n){var r=n(211),i=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return i.call(e)}),e.exports=r.inspectSource},function(e,t,n){var r=n(94),i=n(211);(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(31),i=n(146),a=n(18)("species");e.exports=function(e,t){var n;return i(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!i(n.prototype)?r(n)&&null===(n=n[a])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},function(e,t,n){var r=n(11);e.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},function(e,t,n){var r,i,a=n(12),o=n(217),s=a.process,c=s&&s.versions,u=c&&c.v8;u?i=(r=u.split("."))[0]+r[1]:o&&(!(r=o.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=o.match(/Chrome\/(\d+)/))&&(i=r[1]),e.exports=i&&+i},function(e,t,n){var r={};r[n(18)("toStringTag")]="z",e.exports="[object z]"===String(r)},function(e,t,n){"use strict";var r=n(36);e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e,t,n){"use strict";var r=n(7),i=n(223),a=n(116),o=n(131),s=n(88),c=n(76),u=n(45),l=n(18),f=n(94),p=n(130),d=n(224),h=d.IteratorPrototype,v=d.BUGGY_SAFARI_ITERATORS,m=l("iterator"),g=function(){return this};e.exports=function(e,t,n,l,d,y,b){i(n,t,l);var _,w,S,x=function(e){if(e===d&&I)return I;if(!v&&e in j)return j[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},k=t+" Iterator",T=!1,j=e.prototype,E=j[m]||j["@@iterator"]||d&&j[d],I=!v&&E||x(d),O="Array"==t&&j.entries||E;if(O&&(_=a(O.call(new e)),h!==Object.prototype&&_.next&&(f||a(_)===h||(o?o(_,h):"function"!=typeof _[m]&&c(_,m,g)),s(_,k,!0,!0),f&&(p[k]=g))),"values"==d&&E&&"values"!==E.name&&(T=!0,I=function(){return E.call(this)}),f&&!b||j[m]===I||c(j,m,I),p[t]=I,d)if(w={values:x("values"),keys:y?I:x("keys"),entries:x("entries")},b)for(S in w)(v||T||!(S in j))&&u(j,S,w[S]);else r({target:t,proto:!0,forced:v||T},w);return w}},function(e,t,n){"use strict";var r=n(7),i=n(12),a=n(226),o=n(117),s=a.ArrayBuffer;r({global:!0,forced:i.ArrayBuffer!==s},{ArrayBuffer:s}),o("ArrayBuffer")},function(e,t,n){"use strict";var r=n(46),i=n(105),a=n(29);e.exports=function(e){for(var t=r(this),n=a(t.length),o=arguments.length,s=i(o>1?arguments[1]:void 0,n),c=o>2?arguments[2]:void 0,u=void 0===c?n:i(c,n);u>s;)t[s++]=e;return t}},function(e,t,n){var r=n(7),i=n(11),a=n(220).f;r({target:"Object",stat:!0,forced:i((function(){return!Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:a})},function(e,t,n){var r=n(36),i=n(188),a=n(29),o=n(108),s=n(132),c=n(230),u=function(e,t){this.stopped=e,this.result=t};(e.exports=function(e,t,n,l,f){var p,d,h,v,m,g,y,b=o(t,n,l?2:1);if(f)p=e;else{if("function"!=typeof(d=s(e)))throw TypeError("Target is not iterable");if(i(d)){for(h=0,v=a(e.length);v>h;h++)if((m=l?b(r(y=e[h])[0],y[1]):b(e[h]))&&m instanceof u)return m;return new u(!1)}p=d.call(e)}for(g=p.next;!(y=g.call(p)).done;)if("object"==typeof(m=c(p,b,y.value,l))&&m&&m instanceof u)return m;return new u(!1)}).stop=function(e){return new u(!0,e)}},function(e,t,n){var r=n(18),i=n(130),a=r("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||o[a]===e)}},function(e,t,n){var r,i,a,o=n(12),s=n(11),c=n(87),u=n(108),l=n(219),f=n(172),p=n(231),d=o.location,h=o.setImmediate,v=o.clearImmediate,m=o.process,g=o.MessageChannel,y=o.Dispatch,b=0,_={},w=function(e){if(_.hasOwnProperty(e)){var t=_[e];delete _[e],t()}},S=function(e){return function(){w(e)}},x=function(e){w(e.data)},k=function(e){o.postMessage(e+"",d.protocol+"//"+d.host)};h&&v||(h=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return _[++b]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},r(b),b},v=function(e){delete _[e]},"process"==c(m)?r=function(e){m.nextTick(S(e))}:y&&y.now?r=function(e){y.now(S(e))}:g&&!p?(a=(i=new g).port2,i.port1.onmessage=x,r=u(a.postMessage,a,1)):!o.addEventListener||"function"!=typeof postMessage||o.importScripts||s(k)||"file:"===d.protocol?r="onreadystatechange"in f("script")?function(e){l.appendChild(f("script")).onreadystatechange=function(){l.removeChild(this),w(e)}}:function(e){setTimeout(S(e),0)}:(r=k,o.addEventListener("message",x,!1))),e.exports={set:h,clear:v}},function(e,t,n){"use strict";var r=n(153).charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},function(e,t,n){var r=n(31),i=n(87),a=n(18)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[a])?!!t:"RegExp"==i(e))}},function(e,t,n){"use strict";n(22);var r,i=n(7),a=n(32),o=n(242),s=n(12),c=n(218),u=n(45),l=n(109),f=n(34),p=n(243),d=n(244),h=n(153).codeAt,v=n(310),m=n(88),g=n(311),y=n(86),b=s.URL,_=g.URLSearchParams,w=g.getState,S=y.set,x=y.getterFor("URL"),k=Math.floor,T=Math.pow,j=/[A-Za-z]/,E=/[\d+-.A-Za-z]/,I=/\d/,O=/^(0x|0X)/,A=/^[0-7]+$/,R=/^\d+$/,N=/^[\dA-Fa-f]+$/,C=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,P=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,L=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,q=/[\u0009\u000A\u000D]/g,F=function(e,t){var n,r,i;if("["==t.charAt(0)){if("]"!=t.charAt(t.length-1))return"Invalid host";if(!(n=D(t.slice(1,-1))))return"Invalid host";e.host=n}else if(W(e)){if(t=v(t),C.test(t))return"Invalid host";if(null===(n=M(t)))return"Invalid host";e.host=n}else{if(P.test(t))return"Invalid host";for(n="",r=d(t),i=0;i<r.length;i++)n+=V(r[i],U);e.host=n}},M=function(e){var t,n,r,i,a,o,s,c=e.split(".");if(c.length&&""==c[c.length-1]&&c.pop(),(t=c.length)>4)return e;for(n=[],r=0;r<t;r++){if(""==(i=c[r]))return e;if(a=10,i.length>1&&"0"==i.charAt(0)&&(a=O.test(i)?16:8,i=i.slice(8==a?1:2)),""===i)o=0;else{if(!(10==a?R:8==a?A:N).test(i))return e;o=parseInt(i,a)}n.push(o)}for(r=0;r<t;r++)if(o=n[r],r==t-1){if(o>=T(256,5-t))return null}else if(o>255)return null;for(s=n.pop(),r=0;r<n.length;r++)s+=n[r]*T(256,3-r);return s},D=function(e){var t,n,r,i,a,o,s,c=[0,0,0,0,0,0,0,0],u=0,l=null,f=0,p=function(){return e.charAt(f)};if(":"==p()){if(":"!=e.charAt(1))return;f+=2,l=++u}for(;p();){if(8==u)return;if(":"!=p()){for(t=n=0;n<4&&N.test(p());)t=16*t+parseInt(p(),16),f++,n++;if("."==p()){if(0==n)return;if(f-=n,u>6)return;for(r=0;p();){if(i=null,r>0){if(!("."==p()&&r<4))return;f++}if(!I.test(p()))return;for(;I.test(p());){if(a=parseInt(p(),10),null===i)i=a;else{if(0==i)return;i=10*i+a}if(i>255)return;f++}c[u]=256*c[u]+i,2!=++r&&4!=r||u++}if(4!=r)return;break}if(":"==p()){if(f++,!p())return}else if(p())return;c[u++]=t}else{if(null!==l)return;f++,l=++u}}if(null!==l)for(o=u-l,u=7;0!=u&&o>0;)s=c[u],c[u--]=c[l+o-1],c[l+--o]=s;else if(8!=u)return;return c},B=function(e){var t,n,r,i;if("number"==typeof e){for(t=[],n=0;n<4;n++)t.unshift(e%256),e=k(e/256);return t.join(".")}if("object"==typeof e){for(t="",r=function(e){for(var t=null,n=1,r=null,i=0,a=0;a<8;a++)0!==e[a]?(i>n&&(t=r,n=i),r=null,i=0):(null===r&&(r=a),++i);return i>n&&(t=r,n=i),t}(e),n=0;n<8;n++)i&&0===e[n]||(i&&(i=!1),r===n?(t+=n?":":"::",i=!0):(t+=e[n].toString(16),n<7&&(t+=":")));return"["+t+"]"}return e},U={},z=p({},U,{" ":1,'"':1,"<":1,">":1,"`":1}),J=p({},z,{"#":1,"?":1,"{":1,"}":1}),G=p({},J,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),V=function(e,t){var n=h(e,0);return n>32&&n<127&&!f(t,e)?e:encodeURIComponent(e)},H={ftp:21,file:null,http:80,https:443,ws:80,wss:443},W=function(e){return f(H,e.scheme)},Q=function(e){return""!=e.username||""!=e.password},K=function(e){return!e.host||e.cannotBeABaseURL||"file"==e.scheme},Y=function(e,t){var n;return 2==e.length&&j.test(e.charAt(0))&&(":"==(n=e.charAt(1))||!t&&"|"==n)},X=function(e){var t;return e.length>1&&Y(e.slice(0,2))&&(2==e.length||"/"===(t=e.charAt(2))||"\\"===t||"?"===t||"#"===t)},$=function(e){var t=e.path,n=t.length;!n||"file"==e.scheme&&1==n&&Y(t[0],!0)||t.pop()},Z=function(e){return"."===e||"%2e"===e.toLowerCase()},ee={},te={},ne={},re={},ie={},ae={},oe={},se={},ce={},ue={},le={},fe={},pe={},de={},he={},ve={},me={},ge={},ye={},be={},_e={},we=function(e,t,n,i){var a,o,s,c,u,l=n||ee,p=0,h="",v=!1,m=!1,g=!1;for(n||(e.scheme="",e.username="",e.password="",e.host=null,e.port=null,e.path=[],e.query=null,e.fragment=null,e.cannotBeABaseURL=!1,t=t.replace(L,"")),t=t.replace(q,""),a=d(t);p<=a.length;){switch(o=a[p],l){case ee:if(!o||!j.test(o)){if(n)return"Invalid scheme";l=ne;continue}h+=o.toLowerCase(),l=te;break;case te:if(o&&(E.test(o)||"+"==o||"-"==o||"."==o))h+=o.toLowerCase();else{if(":"!=o){if(n)return"Invalid scheme";h="",l=ne,p=0;continue}if(n&&(W(e)!=f(H,h)||"file"==h&&(Q(e)||null!==e.port)||"file"==e.scheme&&!e.host))return;if(e.scheme=h,n)return void(W(e)&&H[e.scheme]==e.port&&(e.port=null));h="","file"==e.scheme?l=de:W(e)&&i&&i.scheme==e.scheme?l=re:W(e)?l=se:"/"==a[p+1]?(l=ie,p++):(e.cannotBeABaseURL=!0,e.path.push(""),l=ye)}break;case ne:if(!i||i.cannotBeABaseURL&&"#"!=o)return"Invalid scheme";if(i.cannotBeABaseURL&&"#"==o){e.scheme=i.scheme,e.path=i.path.slice(),e.query=i.query,e.fragment="",e.cannotBeABaseURL=!0,l=_e;break}l="file"==i.scheme?de:ae;continue;case re:if("/"!=o||"/"!=a[p+1]){l=ae;continue}l=ce,p++;break;case ie:if("/"==o){l=ue;break}l=ge;continue;case ae:if(e.scheme=i.scheme,o==r)e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,e.path=i.path.slice(),e.query=i.query;else if("/"==o||"\\"==o&&W(e))l=oe;else if("?"==o)e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,e.path=i.path.slice(),e.query="",l=be;else{if("#"!=o){e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,e.path=i.path.slice(),e.path.pop(),l=ge;continue}e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,e.path=i.path.slice(),e.query=i.query,e.fragment="",l=_e}break;case oe:if(!W(e)||"/"!=o&&"\\"!=o){if("/"!=o){e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,l=ge;continue}l=ue}else l=ce;break;case se:if(l=ce,"/"!=o||"/"!=h.charAt(p+1))continue;p++;break;case ce:if("/"!=o&&"\\"!=o){l=ue;continue}break;case ue:if("@"==o){v&&(h="%40"+h),v=!0,s=d(h);for(var y=0;y<s.length;y++){var b=s[y];if(":"!=b||g){var _=V(b,G);g?e.password+=_:e.username+=_}else g=!0}h=""}else if(o==r||"/"==o||"?"==o||"#"==o||"\\"==o&&W(e)){if(v&&""==h)return"Invalid authority";p-=d(h).length+1,h="",l=le}else h+=o;break;case le:case fe:if(n&&"file"==e.scheme){l=ve;continue}if(":"!=o||m){if(o==r||"/"==o||"?"==o||"#"==o||"\\"==o&&W(e)){if(W(e)&&""==h)return"Invalid host";if(n&&""==h&&(Q(e)||null!==e.port))return;if(c=F(e,h))return c;if(h="",l=me,n)return;continue}"["==o?m=!0:"]"==o&&(m=!1),h+=o}else{if(""==h)return"Invalid host";if(c=F(e,h))return c;if(h="",l=pe,n==fe)return}break;case pe:if(!I.test(o)){if(o==r||"/"==o||"?"==o||"#"==o||"\\"==o&&W(e)||n){if(""!=h){var w=parseInt(h,10);if(w>65535)return"Invalid port";e.port=W(e)&&w===H[e.scheme]?null:w,h=""}if(n)return;l=me;continue}return"Invalid port"}h+=o;break;case de:if(e.scheme="file","/"==o||"\\"==o)l=he;else{if(!i||"file"!=i.scheme){l=ge;continue}if(o==r)e.host=i.host,e.path=i.path.slice(),e.query=i.query;else if("?"==o)e.host=i.host,e.path=i.path.slice(),e.query="",l=be;else{if("#"!=o){X(a.slice(p).join(""))||(e.host=i.host,e.path=i.path.slice(),$(e)),l=ge;continue}e.host=i.host,e.path=i.path.slice(),e.query=i.query,e.fragment="",l=_e}}break;case he:if("/"==o||"\\"==o){l=ve;break}i&&"file"==i.scheme&&!X(a.slice(p).join(""))&&(Y(i.path[0],!0)?e.path.push(i.path[0]):e.host=i.host),l=ge;continue;case ve:if(o==r||"/"==o||"\\"==o||"?"==o||"#"==o){if(!n&&Y(h))l=ge;else if(""==h){if(e.host="",n)return;l=me}else{if(c=F(e,h))return c;if("localhost"==e.host&&(e.host=""),n)return;h="",l=me}continue}h+=o;break;case me:if(W(e)){if(l=ge,"/"!=o&&"\\"!=o)continue}else if(n||"?"!=o)if(n||"#"!=o){if(o!=r&&(l=ge,"/"!=o))continue}else e.fragment="",l=_e;else e.query="",l=be;break;case ge:if(o==r||"/"==o||"\\"==o&&W(e)||!n&&("?"==o||"#"==o)){if(".."===(u=(u=h).toLowerCase())||"%2e."===u||".%2e"===u||"%2e%2e"===u?($(e),"/"==o||"\\"==o&&W(e)||e.path.push("")):Z(h)?"/"==o||"\\"==o&&W(e)||e.path.push(""):("file"==e.scheme&&!e.path.length&&Y(h)&&(e.host&&(e.host=""),h=h.charAt(0)+":"),e.path.push(h)),h="","file"==e.scheme&&(o==r||"?"==o||"#"==o))for(;e.path.length>1&&""===e.path[0];)e.path.shift();"?"==o?(e.query="",l=be):"#"==o&&(e.fragment="",l=_e)}else h+=V(o,J);break;case ye:"?"==o?(e.query="",l=be):"#"==o?(e.fragment="",l=_e):o!=r&&(e.path[0]+=V(o,U));break;case be:n||"#"!=o?o!=r&&("'"==o&&W(e)?e.query+="%27":e.query+="#"==o?"%23":V(o,U)):(e.fragment="",l=_e);break;case _e:o!=r&&(e.fragment+=V(o,z))}p++}},Se=function(e){var t,n,r=l(this,Se,"URL"),i=arguments.length>1?arguments[1]:void 0,o=String(e),s=S(r,{type:"URL"});if(void 0!==i)if(i instanceof Se)t=x(i);else if(n=we(t={},String(i)))throw TypeError(n);if(n=we(s,o,null,t))throw TypeError(n);var c=s.searchParams=new _,u=w(c);u.updateSearchParams(s.query),u.updateURL=function(){s.query=String(c)||null},a||(r.href=ke.call(r),r.origin=Te.call(r),r.protocol=je.call(r),r.username=Ee.call(r),r.password=Ie.call(r),r.host=Oe.call(r),r.hostname=Ae.call(r),r.port=Re.call(r),r.pathname=Ne.call(r),r.search=Ce.call(r),r.searchParams=Pe.call(r),r.hash=Le.call(r))},xe=Se.prototype,ke=function(){var e=x(this),t=e.scheme,n=e.username,r=e.password,i=e.host,a=e.port,o=e.path,s=e.query,c=e.fragment,u=t+":";return null!==i?(u+="//",Q(e)&&(u+=n+(r?":"+r:"")+"@"),u+=B(i),null!==a&&(u+=":"+a)):"file"==t&&(u+="//"),u+=e.cannotBeABaseURL?o[0]:o.length?"/"+o.join("/"):"",null!==s&&(u+="?"+s),null!==c&&(u+="#"+c),u},Te=function(){var e=x(this),t=e.scheme,n=e.port;if("blob"==t)try{return new URL(t.path[0]).origin}catch(e){return"null"}return"file"!=t&&W(e)?t+"://"+B(e.host)+(null!==n?":"+n:""):"null"},je=function(){return x(this).scheme+":"},Ee=function(){return x(this).username},Ie=function(){return x(this).password},Oe=function(){var e=x(this),t=e.host,n=e.port;return null===t?"":null===n?B(t):B(t)+":"+n},Ae=function(){var e=x(this).host;return null===e?"":B(e)},Re=function(){var e=x(this).port;return null===e?"":String(e)},Ne=function(){var e=x(this),t=e.path;return e.cannotBeABaseURL?t[0]:t.length?"/"+t.join("/"):""},Ce=function(){var e=x(this).query;return e?"?"+e:""},Pe=function(){return x(this).searchParams},Le=function(){var e=x(this).fragment;return e?"#"+e:""},qe=function(e,t){return{get:e,set:t,configurable:!0,enumerable:!0}};if(a&&c(xe,{href:qe(ke,(function(e){var t=x(this),n=String(e),r=we(t,n);if(r)throw TypeError(r);w(t.searchParams).updateSearchParams(t.query)})),origin:qe(Te),protocol:qe(je,(function(e){var t=x(this);we(t,String(e)+":",ee)})),username:qe(Ee,(function(e){var t=x(this),n=d(String(e));if(!K(t)){t.username="";for(var r=0;r<n.length;r++)t.username+=V(n[r],G)}})),password:qe(Ie,(function(e){var t=x(this),n=d(String(e));if(!K(t)){t.password="";for(var r=0;r<n.length;r++)t.password+=V(n[r],G)}})),host:qe(Oe,(function(e){var t=x(this);t.cannotBeABaseURL||we(t,String(e),le)})),hostname:qe(Ae,(function(e){var t=x(this);t.cannotBeABaseURL||we(t,String(e),fe)})),port:qe(Re,(function(e){var t=x(this);K(t)||(""==(e=String(e))?t.port=null:we(t,e,pe))})),pathname:qe(Ne,(function(e){var t=x(this);t.cannotBeABaseURL||(t.path=[],we(t,e+"",me))})),search:qe(Ce,(function(e){var t=x(this);""==(e=String(e))?t.query=null:("?"==e.charAt(0)&&(e=e.slice(1)),t.query="",we(t,e,be)),w(t.searchParams).updateSearchParams(t.query)})),searchParams:qe(Pe),hash:qe(Le,(function(e){var t=x(this);""!=(e=String(e))?("#"==e.charAt(0)&&(e=e.slice(1)),t.fragment="",we(t,e,_e)):t.fragment=null}))}),u(xe,"toJSON",(function(){return ke.call(this)}),{enumerable:!0}),u(xe,"toString",(function(){return ke.call(this)}),{enumerable:!0}),b){var Fe=b.createObjectURL,Me=b.revokeObjectURL;Fe&&u(Se,"createObjectURL",(function(e){return Fe.apply(b,arguments)})),Me&&u(Se,"revokeObjectURL",(function(e){return Me.apply(b,arguments)}))}m(Se,"URL"),i({global:!0,forced:!o,sham:!a},{URL:Se})},function(e,t,n){var r=n(191);e.exports=function(e){if(r(e))throw TypeError("The method doesn't accept regular expressions");return e}},function(e,t,n){var r=n(18)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(e){}}return!1}},function(e,t,n){var r=n(246);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}},function(e,t,n){var r=n(124),i=n(31),a=n(34),o=n(35).f,s=n(123),c=n(254),u=s("meta"),l=0,f=Object.isExtensible||function(){return!0},p=function(e){o(e,u,{value:{objectID:"O"+ ++l,weakData:{}}})},d=e.exports={REQUIRED:!1,fastKey:function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!a(e,u)){if(!f(e))return"F";if(!t)return"E";p(e)}return e[u].objectID},getWeakData:function(e,t){if(!a(e,u)){if(!f(e))return!0;if(!t)return!1;p(e)}return e[u].weakData},onFreeze:function(e){return c&&d.REQUIRED&&f(e)&&!a(e,u)&&p(e),e}};r[u]=!0},function(e,t,n){"use strict";var r=n(7),i=n(153).codeAt;r({target:"String",proto:!0},{codePointAt:function(e){return i(this,e)}})},function(e,t,n){"use strict";var r=n(154),i=n(36),a=n(85),o=n(328),s=n(155);r("search",1,(function(e,t,n){return[function(t){var n=a(this),r=null==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,e,this);if(r.done)return r.value;var a=i(e),c=String(this),u=a.lastIndex;o(u,0)||(a.lastIndex=0);var l=s(a,c);return o(a.lastIndex,u)||(a.lastIndex=u),null===l?-1:l.index}]}))},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,r)}e.exports=n},function(e,t,n){"use strict";(function(t){n(19),n(28),n(5),n(25),n(98),n(27);var r=n(41),i=n(356),a=n(120),o=n(272),s=n(273),c={"Content-Type":"application/x-www-form-urlencoded"};function u(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var l,f={transitional:o,adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==t&&"[object process]"===Object.prototype.toString.call(t))&&(l=n(274)),l),transformRequest:[function(e,t){if(i(t,"Accept"),i(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e))return e;if(r.isArrayBufferView(e))return e.buffer;if(r.isURLSearchParams(e))return u(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var n,a=r.isObject(e),o=t&&t["Content-Type"];if((n=r.isFileList(e))||a&&"multipart/form-data"===o){var c=this.env&&this.env.FormData;return s(n?{"files[]":e}:e,c&&new c)}return a||"application/json"===o?(u(t,"application/json"),function(e,t,n){if(r.isString(e))try{return(t||JSON.parse)(e),r.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||f.transitional,n=t&&t.silentJSONParsing,i=t&&t.forcedJSONParsing,o=!n&&"json"===this.responseType;if(o||i&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(o){if("SyntaxError"===e.name)throw a.from(e,a.ERR_BAD_RESPONSE,this,null,this.response);throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:n(365)},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){f.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){f.headers[e]=r.merge(c)})),e.exports=f}).call(this,n(100))},function(e,t,n){"use strict";var r,i=n(2),a=n(3),o=n(8),s=n(37),c=n(16),u=n(209);function l(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 n,r=c(e);if(t){var i=c(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return s(this,n)}}Object.defineProperty(t,"__esModule",{value:!0}),t.JXTErrorCondition=void 0,function(e){e.NotWellFormed="not-well-formed",e.RestrictedXML="restricted-xml",e.AlreadyClosed="already-closed",e.UnknownRoot="unknown-stream-root"}(r=t.JXTErrorCondition||(t.JXTErrorCondition={}));var f=function(e){o(n,e);var t=l(n);function n(e){var r;return i(this,n),(r=t.call(this,e.text)).isJXTError=!0,r.condition=e.condition,r.text=e.text,r}return a(n,null,[{key:"notWellFormed",value:function(e){return new n({condition:r.NotWellFormed,text:e})}},{key:"restrictedXML",value:function(e){return new n({condition:r.RestrictedXML,text:e})}},{key:"alreadyClosed",value:function(e){return new n({condition:r.AlreadyClosed,text:e})}},{key:"unknownRoot",value:function(e){return new n({condition:r.UnknownRoot,text:e})}}]),n}(u(Error));t.default=f},function(e,t,n){"use strict";(function(e){n(10),n(44),n(23),n(9),n(20),n(28),n(90),n(118),n(5),n(15),n(25),n(91),n(22),n(39),n(98),n(24),n(136);var r=n(4),i=n(14);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}Object.defineProperty(t,"__esModule",{value:!0}),t.childAlternateLanguageRawElement=t.childLanguageRawElement=t.childRawElement=t.staticValue=t.splicePath=t.multipleChildEnum=t.multipleChildAlternateLanguageText=t.childAlternateLanguageText=t.multipleChildIntegerAttribute=t.multipleChildAttribute=t.multipleChildText=t.childDoubleEnum=t.childEnum=t.deepMultipleChildText=t.deepChildBoolean=t.deepChildInteger=t.deepChildText=t.childBoolean=t.childTimezoneOffset=t.childJSON=t.childFloat=t.childInteger=t.childDate=t.childTextBuffer=t.childText=t.childLanguageAttribute=t.languageAttribute=t.textBuffer=t.textJSON=t.text=t.childDateAttribute=t.childFloatAttribute=t.childIntegerAttribute=t.childBooleanAttribute=t.childAttribute=t.namespacedDateAttribute=t.namespacedFloatAttribute=t.namespacedIntegerAttribute=t.namespacedBooleanAttribute=t.namespacedAttribute=t.dateAttribute=t.floatAttribute=t.integerAttribute=t.booleanAttribute=t.attribute=t.findOrCreate=t.findAll=t.getTargetLang=t.getLang=t.createElement=void 0,t.parameterMap=void 0;var u=n(1).__importDefault(n(166)),l=n(203);function f(e,t,n,r){if(r){e=e||r.getNamespace();var i=r.getNamespaceRoot(e);if(i){var a=i.useNamespace("",e);t="".concat(a,":").concat(t)}}var o=new u.default(t);return t.indexOf(":")<0&&(!n||e!==n)&&o.setAttribute("xmlns",e),o}function p(e,t){return(e.getAttribute("xml:lang")||t||"").toLowerCase()}function d(e,t){var n,r=[],i=s(e);try{for(i.s();!(n=i.n()).done;){var a=n.value;r.push(p(a,t.lang))}}catch(e){i.e(e)}finally{i.f()}return(t.resolveLanguage?t.resolveLanguage(r,t.acceptLanguages||[],t.lang):t.lang)||""}function h(e,t,n,r){var i=e.getChildren(n,t),a=p(e);return i.length?r?i.filter((function(e){if(p(e,a)===r)return!0})):i:[]}function v(e,t,n,r){t=t||e.getNamespace();var i=h(e,t,n,r);if(i.length)return i[0];var a=f(t,n,e.getDefaultNamespace(),e),o=p(e,r);return r&&o!==r&&a.setAttribute("xml:lang",r),e.appendChild(a),a}function m(e){return{importer:function(t){var n=t.getAttribute(e.name,e.namespace);return n?e.parseValue(n):e.dynamicDefault?e.dynamicDefault(n):e.staticDefault},exporter:function(t,n){if(void 0!==n&&n!==e.staticDefault){var r=e.writeValue(n);if(r||e.emitEmpty)if(e.namespace&&e.prefix){var i,a=t.getNamespaceRoot(e.namespace);if(a)i=a.useNamespace(e.prefix,e.namespace);else{var o=t.getNamespaceContext();o[e.namespace]||(i=t.useNamespace(e.prefix,e.namespace),o[e.namespace]=i)}t.setAttribute("".concat(i,":").concat(e.name),r,e.emitEmpty)}else t.setAttribute(e.name,r,e.emitEmpty)}}}}function g(e,t){return function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return i=o({staticDefault:r},i),m(o(o({name:n},e),t?t(i):i))}}function y(e,t){return function(n,r,i){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return s=o({staticDefault:a},s),m(o(o({name:i,namespace:r,prefix:n},e),t?t(s):s))}}function b(e){var t=e.converter||m(o(o({},e),{},{namespace:e.attributeNamespace}));return{importer:function(n,r){var i=n.getChild(e.element,e.namespace||n.getNamespace());return i?t.importer(i,r):e.dynamicDefault?e.dynamicDefault():e.staticDefault},exporter:function(n,r,i){if(void 0!==r&&r!==e.staticDefault){var a=v(n,e.namespace||n.getNamespace(),e.element);t.exporter(a,r,i)}}}}function _(e,t){return function(n,r,i){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return s=o({staticDefault:a},s),b(o(o({element:r,name:i,namespace:n},e),t?t(s):s))}}function w(e){return{importer:function(t){var n=t.getText();return n?e.parseValue(n):e.dynamicDefault?e.dynamicDefault(n):e.staticDefault},exporter:function(t,n){if(n||!e.emitEmpty){if(void 0!==n&&n!==e.staticDefault){var r=e.writeValue(n);r&&t.children.push(r)}}else t.children.push("")}}}function S(e){var t=w(e);return{importer:function(n,r){var i=h(n,e.namespace||n.getNamespace(),e.element),a=d(i,r);if(!i.length)return e.dynamicDefault?e.dynamicDefault():e.staticDefault;if(e.matchLanguage){var o,c=s(i);try{for(c.s();!(o=c.n()).done;){var u=o.value;if(p(u,r.lang)===a)return t.importer(u,r)}}catch(e){c.e(e)}finally{c.f()}}return t.importer(i[0],r)},exporter:function(n,r,i){if(r||!e.emitEmpty){if(void 0!==r&&r!==e.staticDefault){var a=v(n,e.namespace||n.getNamespace(),e.element,e.matchLanguage?i.lang:void 0);t.exporter(a,r,i)}}else v(n,e.namespace||n.getNamespace(),e.element,e.matchLanguage?i.lang:void 0)}}}t.createElement=f,t.getLang=p,t.getTargetLang=d,t.findAll=h,t.findOrCreate=v;var x={parseValue:function(e){return e},writeValue:function(e){return e}},k={parseValue:function(e){return parseInt(e,10)},writeValue:function(e){return e.toString()}},T={parseValue:function(e){return parseFloat(e)},writeValue:function(e){return e.toString()}},j={parseValue:function(e){return"true"===e||"1"===e||"false"!==e&&"0"!==e&&void 0},writeValue:function(e){return e?"1":"0"}},E={parseValue:function(e){return new Date(e)},writeValue:function(e){return"string"==typeof e?e:e.toISOString()}},I={parseValue:function(e){return JSON.parse(e)},writeValue:function(e){return JSON.stringify(e)}},O=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"utf8";return{parseValue:function(n){return"base64"===t&&"="===n&&(n=""),e.from(n.trim(),t)},writeValue:function(n){var r;return r="string"==typeof n?e.from(n).toString(t):n?n.toString(t):"","base64"===t&&(r=r||"="),r}}},A={parseValue:function(e){var t=-1;"-"===e.charAt(0)&&(t=1,e=e.slice(1));var n=e.split(":");return(60*parseInt(n[0],10)+parseInt(n[1],10))*t},writeValue:function(e){if("string"==typeof e)return e;var t="-";e<0&&(e=-e,t="+");var n=e/60,r=e%60;return t+=(n<10?"0":"")+n+":"+(r<10?"0":"")+r}};t.attribute=g(x,(function(e){return o({dynamicDefault:e.emitEmpty?function(t){return""===t?"":e.staticDefault}:void 0},e)})),t.booleanAttribute=g(j),t.integerAttribute=g(k),t.floatAttribute=g(T),t.dateAttribute=g(E),t.namespacedAttribute=y(x),t.namespacedBooleanAttribute=y(j),t.namespacedIntegerAttribute=y(k),t.namespacedFloatAttribute=y(T),t.namespacedDateAttribute=y(E),t.childAttribute=_(x),t.childBooleanAttribute=_(j),t.childIntegerAttribute=_(k),t.childFloatAttribute=_(T),t.childDateAttribute=_(E);t.text=function(e){return w(o({staticDefault:e},x))};t.textJSON=function(){return w(o({},I))};function R(){return{importer:function(e,t){return p(e,t.lang)},exporter:function(e,t,n){t&&t.toLowerCase()!==n.lang?e.setAttribute("xml:lang",t):e.setAttribute("xml:lang",void 0)}}}t.textBuffer=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"utf8";return w(o({},O(e)))},t.languageAttribute=R;t.childLanguageAttribute=function(e,t){return b(o({converter:R(),element:t,name:"xml:lang",namespace:e},x))};t.childText=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return S(o({element:t,emitEmpty:r,matchLanguage:!0,namespace:e,staticDefault:n},x))};t.childTextBuffer=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"utf8";return S(o({element:t,matchLanguage:!0,namespace:e},O(n)))};t.childDate=function(e,t){return S(o({element:t,namespace:e},E))};t.childInteger=function(e,t,n){return S(o({element:t,namespace:e,staticDefault:n},k))};t.childFloat=function(e,t,n){return S(o({element:t,namespace:e,staticDefault:n},T))};t.childJSON=function(e,t){return S(o({element:t,namespace:e},I))},t.childTimezoneOffset=function(e,t){return S(o({element:t,namespace:e,staticDefault:0},A))},t.childBoolean=function(e,t){return{importer:function(n){if(n.getChild(t,e||n.getNamespace()))return!0},exporter:function(n,r){r&&v(n,e||n.getNamespace(),t)}}};var N=function(e,t,n){if(n){var r,i=t,a=s(e);try{for(a.s();!(r=a.n()).done;){var o=r.value;i=v(i,o.namespace||i.getNamespace(),o.element)}}catch(e){a.e(e)}finally{a.f()}i.children.push(n.toString())}};t.deepChildText=function(e,t){return{importer:function(n){var r,i=n,a=s(e);try{for(a.s();!(r=a.n()).done;){var o=r.value;if(!(i=i.getChild(o.element,o.namespace||i.getNamespace())))return t}}catch(e){a.e(e)}finally{a.f()}return i.getText()||t},exporter:function(t,n){N(e,t,n)}}},t.deepChildInteger=function(e,t){return{importer:function(n){var r,i=n,a=s(e);try{for(a.s();!(r=a.n()).done;){var o=r.value;if(!(i=i.getChild(o.element,o.namespace||i.getNamespace())))return}}catch(e){a.e(e)}finally{a.f()}var c=i.getText();return c?parseInt(c,10):t||void 0},exporter:function(t,n){N(e,t,n)}}},t.deepChildBoolean=function(e){return{importer:function(t){var n,r=t,i=s(e);try{for(i.s();!(n=i.n()).done;){var a=n.value;if(!(r=r.getChild(a.element,a.namespace||r.getNamespace())))return!1}}catch(e){i.e(e)}finally{i.f()}return!0},exporter:function(t,n){if(n){var r,i=t,a=s(e);try{for(a.s();!(r=a.n()).done;){var o=r.value;i=v(i,o.namespace||i.getNamespace(),o.element)}}catch(e){a.e(e)}finally{a.f()}}}}},t.deepMultipleChildText=function(e){var t=e.pop();return{importer:function(n,r){var i,a=n,o=s(e);try{for(o.s();!(i=o.n()).done;){var c=i.value;if(!(a=a.getChild(c.element,c.namespace||a.getNamespace())))return[]}}catch(e){o.e(e)}finally{o.f()}var u,l=[],f=h(a,t.namespace||a.getNamespace(),t.element),v=d(f,r),m=s(f);try{for(m.s();!(u=m.n()).done;){var g=u.value;p(g,r.lang)===v&&l.push(g.getText())}}catch(e){m.e(e)}finally{m.f()}return l},exporter:function(n,r,i){if(r.length){var a,o=n,c=s(e);try{for(c.s();!(a=c.n()).done;){var u=a.value;o=v(o,u.namespace||o.getNamespace(),u.element)}}catch(e){c.e(e)}finally{c.f()}var l,p=t.namespace,d=t.element,h=s(r);try{for(h.s();!(l=h.n()).done;){var m=l.value,g=f(p||o.getNamespace(),d,i.namespace,o);g.children.push(m),o.appendChild(g)}}catch(e){h.e(e)}finally{h.f()}}}}},t.childEnum=function(e,t,n){var r,i=new Map,a=new Map,o=s(t);try{for(o.s();!(r=o.n()).done;){var c=r.value;"string"==typeof c?(i.set(c,c),a.set(c,c)):(i.set(c[1],c[0]),a.set(c[0],c[1]))}}catch(e){o.e(e)}finally{o.f()}return{importer:function(t){var r,a=s(t.children);try{for(a.s();!(r=a.n()).done;){var o=r.value;if("string"!=typeof o&&(o.getNamespace()===(e||t.getNamespace())&&i.has(o.getName())))return i.get(o.getName())}}catch(e){a.e(e)}finally{a.f()}return n},exporter:function(t,n){a.has(n)&&v(t,e,a.get(n))}}},t.childDoubleEnum=function(e,t,n,r){var i=new Set(t),a=new Set(n);return{importer:function(t){var n,o=s(t.children);try{for(o.s();!(n=o.n()).done;){var c=n.value;if("string"!=typeof c&&(c.getNamespace()===(e||t.getNamespace())&&i.has(c.getName()))){var u,l=s(c.children);try{for(l.s();!(u=l.n()).done;){var f=u.value;if("string"!=typeof f&&(f.getNamespace()===(e||t.getNamespace())&&a.has(f.getName())))return[c.getName(),f.getName()]}}catch(e){l.e(e)}finally{l.f()}return[c.getName()]}}}catch(e){o.e(e)}finally{o.f()}return r},exporter:function(t,n){var r=v(t,e,n[0]);n[1]&&v(r,e,n[1])}}},t.multipleChildText=function(e,t){return{importer:function(n,r){var i,a=[],o=h(n,e||n.getNamespace(),t),c=d(o,r),u=s(o);try{for(u.s();!(i=u.n()).done;){var l=i.value;p(l,r.lang)===c&&a.push(l.getText())}}catch(e){u.e(e)}finally{u.f()}return a},exporter:function(n,r,i){var a,o=s(r);try{for(o.s();!(a=o.n()).done;){var c=a.value,u=f(e||n.getNamespace(),t,i.namespace,n);u.children.push(c),n.appendChild(u)}}catch(e){o.e(e)}finally{o.f()}}}},t.multipleChildAttribute=function(e,t,n){return{importer:function(r){var i,a=[],o=s(r.getChildren(t,e||r.getNamespace()));try{for(o.s();!(i=o.n()).done;){var c=i.value.getAttribute(n);void 0!==c&&a.push(c)}}catch(e){o.e(e)}finally{o.f()}return a},exporter:function(r,i,a){var o,c=s(i);try{for(c.s();!(o=c.n()).done;){var u=o.value,l=f(e||r.getNamespace(),t,a.namespace,r);l.setAttribute(n,u),r.appendChild(l)}}catch(e){c.e(e)}finally{c.f()}}}},t.multipleChildIntegerAttribute=function(e,t,n){return{importer:function(r){var i,a=[],o=s(r.getChildren(t,e||r.getNamespace()));try{for(o.s();!(i=o.n()).done;){var c=i.value.getAttribute(n);void 0!==c&&a.push(parseInt(c,10))}}catch(e){o.e(e)}finally{o.f()}return a},exporter:function(r,i,a){var o,c=s(i);try{for(c.s();!(o=c.n()).done;){var u=o.value,l=f(e||r.getNamespace(),t,a.namespace,r);l.setAttribute(n,u.toString()),r.appendChild(l)}}catch(e){c.e(e)}finally{c.f()}}}},t.childAlternateLanguageText=function(e,t){return{importer:function(n,r){var i,a=[],o=h(n,e||n.getNamespace(),t),c=new Set,u=s(o);try{for(u.s();!(i=u.n()).done;){var l=i.value,f=l.getText();if(f){var d=p(l,r.lang);if(c.has(d))continue;a.push({lang:d,value:f}),c.add(d)}}}catch(e){u.e(e)}finally{u.f()}return c.size>0?a:void 0},exporter:function(n,r,i){var a,o=s(r);try{for(o.s();!(a=o.n()).done;){var c=a.value,u=c.value;if(u){var l=f(e||n.getNamespace(),t,i.namespace,n);c.lang!==i.lang&&l.setAttribute("xml:lang",c.lang),l.children.push(u),n.appendChild(l)}}}catch(e){o.e(e)}finally{o.f()}}}},t.multipleChildAlternateLanguageText=function(e,t){return{importer:function(n,r){var i,a=[],o=new Map,c=!1,u=s(h(n,e||n.getNamespace(),t));try{for(u.s();!(i=u.n()).done;){var l=i.value,f=l.getText();if(f){var d=p(l,r.lang),v=o.get(d);v||(v=[],o.set(d,v),a.push({lang:d,value:v})),v.push(f),c=!0}}}catch(e){u.e(e)}finally{u.f()}return c?a:void 0},exporter:function(n,r,i){var a,o=s(r);try{for(o.s();!(a=o.n()).done;){var c,u=a.value,l=s(u.value);try{for(l.s();!(c=l.n()).done;){var p=c.value,d=f(e||n.getNamespace(),t,i.namespace,n);u.lang!==i.lang&&d.setAttribute("xml:lang",u.lang),d.children.push(p),n.appendChild(d)}}catch(e){l.e(e)}finally{l.f()}}}catch(e){o.e(e)}finally{o.f()}}}},t.multipleChildEnum=function(e,t){var n,r=new Map,i=new Map,a=s(t);try{for(a.s();!(n=a.n()).done;){var o=n.value;"string"==typeof o?(r.set(o,o),i.set(o,o)):(r.set(o[1],o[0]),i.set(o[0],o[1]))}}catch(e){a.e(e)}finally{a.f()}return{importer:function(t){var n,i=[],a=s(t.children);try{for(a.s();!(n=a.n()).done;){var o=n.value;"string"!=typeof o&&(o.getNamespace()===(e||t.getNamespace())&&r.has(o.getName())&&i.push(r.get(o.getName())))}}catch(e){a.e(e)}finally{a.f()}return i},exporter:function(t,n){var r,a=s(n);try{for(a.s();!(r=a.n()).done;){var o=r.value;v(t,e,i.get(o))}}catch(e){a.e(e)}finally{a.f()}}}},t.splicePath=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return{importer:function(i,a){var o=i.getChild(t,e||i.getNamespace());if(o){var c,u=[],l=s(o.children);try{for(l.s();!(c=l.n()).done;){var f=c.value;if("string"!=typeof f&&a.registry.getImportKey(f)===n){var p=a.registry.import(f);p&&u.push(p)}}}catch(e){l.e(e)}finally{l.f()}return r?u:u[0]}},exporter:function(r,i,a){var c,u=[],l=s(Array.isArray(i)?i:[i]);try{for(l.s();!(c=l.n()).done;){var f=c.value,p=a.registry.export(n,f,o(o({},a),{},{namespace:e||r.getNamespace()||void 0}));p&&u.push(p)}}catch(e){l.e(e)}finally{l.f()}if(u.length){var d,h=v(r,e||r.getNamespace(),t),m=s(u);try{for(m.s();!(d=m.n()).done;){var g=d.value;h.appendChild(g)}}catch(e){m.e(e)}finally{m.f()}}}}},t.staticValue=function(e){return{exporter:function(){},importer:function(){return e}}},t.childRawElement=function(e,t,n){return{importer:function(r,i){if(!n||i.sanitizers&&i.sanitizers[n]){var a=r.getChild(t,e||r.getNamespace());return a?n?i.sanitizers[n](a.toJSON()):a.toJSON():void 0}},exporter:function(r,i,a){"string"==typeof i&&(i=l.parse("<".concat(t,' xmlns="').concat(e||r.getNamespace(),'">').concat(i,"</").concat(t,">")).toJSON());if(n){if(!a.sanitizers||!a.sanitizers[n])return;i=a.sanitizers[n](i)}i&&r.appendChild(new u.default(i.name,i.attributes,i.children))}}},t.childLanguageRawElement=function(e,t,n){return{importer:function(r,i){if(!n||i.sanitizers&&i.sanitizers[n]){var a,o=h(r,e||r.getNamespace(),t),c=d(o,i),u=s(o);try{for(u.s();!(a=u.n()).done;){var l=a.value;if(p(l,i.lang)===c)return n?i.sanitizers[n](l.toJSON()):l.toJSON()}}catch(e){u.e(e)}finally{u.f()}return o[0]?n?i.sanitizers[n](o[0].toJSON()):o[0].toJSON():void 0}},exporter:function(r,i,a){"string"==typeof i&&(i=l.parse("<".concat(t,' xmlns="').concat(e||r.getNamespace(),'">').concat(i,"</").concat(t,">")).toJSON());if(i&&n){if(!a.sanitizers||!a.sanitizers[n])return;i=a.sanitizers[n](i)}if(i){var o,c=v(r,e||r.getNamespace(),t,a.lang),f=s(i.children);try{for(f.s();!(o=f.n()).done;){var p=o.value;"string"==typeof p?c.appendChild(p):p&&c.appendChild(new u.default(p.name,p.attributes,p.children))}}catch(e){f.e(e)}finally{f.f()}}}}},t.childAlternateLanguageRawElement=function(e,t,n){return{importer:function(r,i){if(!n||i.sanitizers&&i.sanitizers[n]){var a,o=[],c=new Set,u=s(h(r,e||r.getNamespace(),t));try{for(u.s();!(a=u.n()).done;){var l=a.value,f=l.toJSON();if(n&&(f=i.sanitizers[n](f)),f){var d=p(l,i.lang);if(c.has(d))continue;o.push({lang:d,value:f}),c.add(d)}}}catch(e){u.e(e)}finally{u.f()}return c.size>0?o:void 0}},exporter:function(r,i,a){var o,c=s(i);try{for(c.s();!(o=c.n()).done;){var p=o.value,d=p.value;if("string"==typeof d)d=l.parse("<".concat(t,' xmlns="').concat(e||r.getNamespace(),'">').concat(d,"</").concat(t,">")).toJSON();if(d&&n){if(!a.sanitizers||!a.sanitizers[n])continue;d=a.sanitizers[n](d)}if(d){var h=f(e||r.getNamespace(),t,a.namespace,r);r.appendChild(h),p.lang!==a.lang&&h.setAttribute("xml:lang",p.lang);var v,m=s(d.children);try{for(m.s();!(v=m.n()).done;){var g=v.value;"string"==typeof g?h.appendChild(g):h.appendChild(new u.default(g.name,g.attributes,g.children))}}catch(e){m.e(e)}finally{m.f()}}}}catch(e){c.e(e)}finally{c.f()}}}},t.parameterMap=function(e,n,i,a){return{importer:function(r,o){var c,u={},l=h(r,e,n),f=t.attribute(i).importer,p=t.attribute(a).importer,d=s(l);try{for(d.s();!(c=d.n()).done;){var v=c.value;u[f(v,o)]=p(v,o)}}catch(e){d.e(e)}finally{d.f()}return u},exporter:function(o,s,c){for(var u=t.attribute(i).exporter,l=t.attribute(a).exporter,p=e||o.getNamespace(),d=0,h=Object.entries(s);d<h.length;d++){var v=r(h[d],2),m=v[0],g=v[1],y=f(p,n,c.namespace,o);u(y,m,c),s[m]&&l(y,g,c),o.appendChild(y)}}}}}).call(this,n(111).Buffer)},function(e,t,n){"use strict";n(33),n(28),n(197),n(160);var r=n(2),i=n(3),a=n(8),o=n(37),s=n(16);function c(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function l(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 n,r=s(e);if(t){var i=s(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return o(this,n)}}Object.defineProperty(t,"__esModule",{value:!0}),t.parse=void 0;var f=n(1),p=n(42),d=n(167),h=f.__importDefault(n(166)),v=f.__importDefault(n(201));function m(e){return 97<=e&&e<=122||65<=e&&e<=90||58===e||95===e}function g(e){return 192<=e&&e<=214||216<=e&&e<=246||248<=e&&e<=767||880<=e&&e<=893||895<=e&&e<=8191||8204<=e&&e<=8205||8304<=e&&e<=8591||11264<=e&&e<=12271||12289<=e&&e<=55295||65008<=e&&e<=65533||65536<=e&&e<=983039}function y(e){return m(e)||g(e)}function b(e){return m(e)||45===e||46===e||48<=e&&e<=57||183===e||768<=e&&e<=879||8255<=e&&e<=8256||g(e)}function _(e){return 32===e||10===e||13===e||9===e}var w=function(e){a(n,e);var t=l(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r(this,n),(e=t.call(this)).allowComments=!0,e.attributes={},e.state=34,e.tagName="",e.haveDeclaration=!1,e.recordBuffer=[],void 0!==i.allowComments&&(e.allowComments=i.allowComments),e}return i(n,[{key:"write",value:function(e){var t,n=c(e);try{for(n.s();!(t=n.n()).done;){var r=t.value,i=r.codePointAt(0);switch(this.state){case 34:if(60===i){var a=void 0;try{a=d.unescapeXML(this.endRecord())}catch(e){return void this.emit("error",e)}a&&this.emit("text",a),this.transition(31);continue}this.record(r);continue;case 31:if(47===i){this.transition(7);continue}if(33===i){this.transition(24);continue}if(63===i){this.haveDeclaration&&this.restrictedXML(),this.transition(25);continue}if(y(i)){this.transition(30),this.startRecord(r);continue}return this.notWellFormed();case 30:if(b(i)){this.record(r);continue}if(_(i)){this.startTag(),this.transition(32);continue}if(47===i){this.startTag(),this.transition(29);continue}if(62===i){this.startTag(),this.transition(34),this.emit("startElement",this.tagName,this.attributes);continue}return this.notWellFormed();case 29:if(62===i){this.emit("startElement",this.tagName,this.attributes),this.emit("endElement",this.tagName),this.transition(34);continue}return this.notWellFormed();case 33:if(_(i)){this.transition(32);continue}if(47===i){this.transition(29);continue}if(62===i){this.emit("startElement",this.tagName,this.attributes),this.transition(34);continue}return this.notWellFormed();case 32:if(_(i))continue;if(y(i)){this.startRecord(r),this.transition(0);continue}if(47===i){this.transition(29);continue}if(62===i){this.emit("startElement",this.tagName,this.attributes),this.transition(34);continue}return this.notWellFormed();case 7:if(y(i)){this.startRecord(r),this.transition(6);continue}return this.notWellFormed();case 6:if(b(i)){this.record(r);continue}if(_(i)){this.transition(8);continue}if(62===i){var o=this.endRecord();this.emit("endElement",o,this.attributes),this.transition(34);continue}return this.notWellFormed();case 8:if(_(i))continue;if(62===i){var s=this.endRecord();this.emit("endElement",s,this.attributes),this.transition(34);continue}return this.notWellFormed();case 0:if(b(i)){this.record(r);continue}if(61===i){this.addAttribute(),this.transition(4);continue}if(_(i)){this.addAttribute(),this.transition(3);continue}return this.notWellFormed();case 3:if(61===i){this.transition(4);continue}if(_(i))continue;return this.notWellFormed();case 4:if(34===i){this.startRecord(),this.transition(1);continue}if(39===i){this.startRecord(),this.transition(2);continue}if(_(i))continue;return this.notWellFormed();case 1:case 2:if(34===i&&1===this.state||39===i&&2===this.state){var u=this.endRecord();this.attributes[this.attributeName]=d.unescapeXML(u),this.transition(33);continue}if(60===i)return this.notWellFormed();this.record(r);continue;case 24:if(45===i){this.allowComments||this.restrictedXML(),this.transition(23);continue}if(91===i){this.transition(21);continue}return this.notWellFormed();case 23:if(45===i){this.transition(14);continue}return this.notWellFormed();case 14:45===i&&this.transition(12);continue;case 12:45===i?this.transition(11):this.transition(14);continue;case 11:62===i?this.transition(34):this.transition(14);continue;case 25:if(88===i||120===i){this.transition(28);continue}return this.notWellFormed();case 28:if(77===i||109===i){this.transition(27);continue}return this.notWellFormed();case 27:if(76===i||108===i){this.transition(26);continue}return this.notWellFormed();case 26:if(_(i)){this.haveDeclaration=!0,this.transition(15);continue}return this.notWellFormed();case 13:if(62===i){this.transition(34);continue}return this.notWellFormed();case 15:63===i&&this.transition(13);continue;case 21:this.wait(i,67,20);continue;case 20:this.wait(i,68,19);continue;case 19:this.wait(i,65,18);continue;case 18:this.wait(i,84,17);continue;case 17:this.wait(i,65,16);continue;case 16:this.wait(i,91,5);continue;case 5:if(93===i){this.transition(10);continue}this.record(r);continue;case 10:93===i?this.transition(9):(this.record(String.fromCodePoint(93)),this.record(r),this.transition(5));continue;case 9:if(62===i){var l=this.endRecord();l&&this.emit("text",l),this.transition(34)}else this.record(String.fromCodePoint(93)),this.record(String.fromCodePoint(93)),this.record(r),this.transition(5);continue}}}catch(e){n.e(e)}finally{n.f()}}},{key:"end",value:function(e){e&&this.write(e),this.write=function(){}}},{key:"record",value:function(e){this.recordBuffer.push(e)}},{key:"startRecord",value:function(e){this.recordBuffer=[],e&&this.recordBuffer.push(e)}},{key:"endRecord",value:function(){var e=this.recordBuffer;return this.recordBuffer=[],e.join("")}},{key:"startTag",value:function(){this.tagName=this.endRecord(),this.attributes={}}},{key:"addAttribute",value:function(){var e=this.endRecord();if(void 0!==this.attributes[e])return this.notWellFormed();this.attributeName=e,this.attributes[e]=""}},{key:"wait",value:function(e,t,n){if(e!==t)return this.notWellFormed();this.transition(n)}},{key:"transition",value:function(e){this.state=e,34===e&&this.startRecord()}},{key:"notWellFormed",value:function(e){this.emit("error",v.default.notWellFormed(e))}},{key:"restrictedXML",value:function(e){this.emit("error",v.default.restrictedXML(e))}}]),n}(p.EventEmitter);t.parse=function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=new w(r),a=null;if(i.on("text",(function(e){n&&n.children.push(e)})),i.on("startElement",(function(e,r){var i=new h.default(e,r);t||(t=i),n=n?n.appendChild(i):i})),i.on("endElement",(function(e){n?e===n.name?n.parent&&(n=n.parent):i.emit("error",v.default.notWellFormed("b")):i.emit("error",v.default.notWellFormed("a"))})),i.on("error",(function(e){a=e})),i.write(e),i.end(),a)throw a;return t},t.default=w},function(e,t,n){"use strict";n.r(t),function(e,r){n.d(t,"Hash",(function(){return m})),n.d(t,"Hmac",(function(){return Y})),n.d(t,"RTCPeerConnection",(function(){return ne})),n.d(t,"WebSocket",(function(){return te})),n.d(t,"createHash",(function(){return W})),n.d(t,"createHmac",(function(){return Z})),n.d(t,"fetch",(function(){return ee})),n.d(t,"getHashes",(function(){return $})),n.d(t,"randomBytes",(function(){return X}));n(10),n(158),n(9),n(90),n(5),n(21),n(25),n(22),n(74),n(48),n(49),n(50),n(51),n(52),n(53),n(54),n(55),n(56),n(57),n(58),n(59),n(60),n(61),n(62),n(63),n(64),n(65),n(66),n(67),n(68),n(69),n(70),n(24);var i=n(2),a=n.n(i),o=n(3),s=n.n(o),c=n(8),u=n.n(c),l=n(37),f=n.n(l),p=n(16),d=n.n(p),h=n(92);function v(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 n,r=d()(e);if(t){var i=d()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return f()(this,n)}}var m=function(t){u()(r,t);var n=v(r);function r(t,i){var o,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"be";return a()(this,r),(o=n.call(this))._block=e.alloc(t),o._finalSize=i,o._blockSize=t,o._bigEndian="be"===s,o._len=0,o}return s()(r,[{key:"_transform",value:function(e,t,n){var r=null;try{this.update(e,t)}catch(e){r=e}n(r)}},{key:"_flush",value:function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)}},{key:"update",value:function(t,n){"string"==typeof t&&(n=n||"utf8",t=e.from(t,n));for(var r=this._block,i=this._blockSize,a=t.length,o=this._len,s=0;s<a;){for(var c=o%i,u=Math.min(a-s,i-c),l=0;l<u;l++)r[c+l]=t[s+l];s+=u,(o+=u)%i==0&&this._update(r)}return this._len+=a,this}},{key:"digest",value:function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var n=8*this._len;if(n<=4294967295)this._bigEndian?(this._block.writeUInt32BE(0,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)):(this._block.writeUInt32LE(n,this._blockSize-8),this._block.writeUInt32LE(0,this._blockSize-4));else{var r=(4294967295&n)>>>0,i=(n-r)/4294967296;this._bigEndian?(this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(r,this._blockSize-4)):(this._block.writeUInt32LE(r,this._blockSize-8),this._block.writeUInt32LE(i,this._blockSize-4))}this._update(this._block);var a=this._hash();return e?a.toString(e):a}},{key:"_update",value:function(e){throw new Error("_update must be implemented by subclass")}},{key:"_hash",value:function(){throw new Error("_update must be implemented by subclass")}}]),r}(h.Transform);function g(e,t){return e<<t|e>>>32-t}function y(e,t,n,r,i,a,o){return g(e+(t&n|~t&r)+i+a|0,o)+t|0}function b(e,t,n,r,i,a,o){return g(e+(t&r|n&~r)+i+a|0,o)+t|0}function _(e,t,n,r,i,a,o){return g(e+(t^n^r)+i+a|0,o)+t|0}function w(e,t,n,r,i,a,o){return g(e+(n^(t|~r))+i+a|0,o)+t|0}var S=function(t){u()(r,t);var n=v(r);function r(){var e;return a()(this,r),(e=n.call(this,64,56,"le"))._a=1732584193,e._b=4023233417,e._c=2562383102,e._d=271733878,e._m=new Array(16),e}return s()(r,[{key:"_update",value:function(e){for(var t=this._m,n=0;n<16;++n)t[n]=e.readInt32LE(4*n);var r=this._a,i=this._b,a=this._c,o=this._d;r=y(r,i,a,o,t[0],3614090360,7),o=y(o,r,i,a,t[1],3905402710,12),a=y(a,o,r,i,t[2],606105819,17),i=y(i,a,o,r,t[3],3250441966,22),r=y(r,i,a,o,t[4],4118548399,7),o=y(o,r,i,a,t[5],1200080426,12),a=y(a,o,r,i,t[6],2821735955,17),i=y(i,a,o,r,t[7],4249261313,22),r=y(r,i,a,o,t[8],1770035416,7),o=y(o,r,i,a,t[9],2336552879,12),a=y(a,o,r,i,t[10],4294925233,17),i=y(i,a,o,r,t[11],2304563134,22),r=y(r,i,a,o,t[12],1804603682,7),o=y(o,r,i,a,t[13],4254626195,12),a=y(a,o,r,i,t[14],2792965006,17),r=b(r,i=y(i,a,o,r,t[15],1236535329,22),a,o,t[1],4129170786,5),o=b(o,r,i,a,t[6],3225465664,9),a=b(a,o,r,i,t[11],643717713,14),i=b(i,a,o,r,t[0],3921069994,20),r=b(r,i,a,o,t[5],3593408605,5),o=b(o,r,i,a,t[10],38016083,9),a=b(a,o,r,i,t[15],3634488961,14),i=b(i,a,o,r,t[4],3889429448,20),r=b(r,i,a,o,t[9],568446438,5),o=b(o,r,i,a,t[14],3275163606,9),a=b(a,o,r,i,t[3],4107603335,14),i=b(i,a,o,r,t[8],1163531501,20),r=b(r,i,a,o,t[13],2850285829,5),o=b(o,r,i,a,t[2],4243563512,9),a=b(a,o,r,i,t[7],1735328473,14),r=_(r,i=b(i,a,o,r,t[12],2368359562,20),a,o,t[5],4294588738,4),o=_(o,r,i,a,t[8],2272392833,11),a=_(a,o,r,i,t[11],1839030562,16),i=_(i,a,o,r,t[14],4259657740,23),r=_(r,i,a,o,t[1],2763975236,4),o=_(o,r,i,a,t[4],1272893353,11),a=_(a,o,r,i,t[7],4139469664,16),i=_(i,a,o,r,t[10],3200236656,23),r=_(r,i,a,o,t[13],681279174,4),o=_(o,r,i,a,t[0],3936430074,11),a=_(a,o,r,i,t[3],3572445317,16),i=_(i,a,o,r,t[6],76029189,23),r=_(r,i,a,o,t[9],3654602809,4),o=_(o,r,i,a,t[12],3873151461,11),a=_(a,o,r,i,t[15],530742520,16),r=w(r,i=_(i,a,o,r,t[2],3299628645,23),a,o,t[0],4096336452,6),o=w(o,r,i,a,t[7],1126891415,10),a=w(a,o,r,i,t[14],2878612391,15),i=w(i,a,o,r,t[5],4237533241,21),r=w(r,i,a,o,t[12],1700485571,6),o=w(o,r,i,a,t[3],2399980690,10),a=w(a,o,r,i,t[10],4293915773,15),i=w(i,a,o,r,t[1],2240044497,21),r=w(r,i,a,o,t[8],1873313359,6),o=w(o,r,i,a,t[15],4264355552,10),a=w(a,o,r,i,t[6],2734768916,15),i=w(i,a,o,r,t[13],1309151649,21),r=w(r,i,a,o,t[4],4149444226,6),o=w(o,r,i,a,t[11],3174756917,10),a=w(a,o,r,i,t[2],718787259,15),i=w(i,a,o,r,t[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+i|0,this._c=this._c+a|0,this._d=this._d+o|0}},{key:"_hash",value:function(){var t=e.allocUnsafe(16);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t}}]),r}(m),x=[1518500249,1859775393,-1894007588,-899497514];function k(e){return e<<5|e>>>27}function T(e){return e<<30|e>>>2}function j(e,t,n,r){return 0===e?t&n|~t&r:2===e?t&n|t&r|n&r:t^n^r}var E=function(t){u()(r,t);var n=v(r);function r(){var e;return a()(this,r),(e=n.call(this,64,56))._a=1732584193,e._b=4023233417,e._c=2562383102,e._d=271733878,e._e=3285377520,e._w=new Array(80),e}return s()(r,[{key:"_update",value:function(e){var t,n,r=this._w,i=0|this._a,a=0|this._b,o=0|this._c,s=0|this._d,c=0|this._e;for(t=0;t<16;++t)r[t]=e.readInt32BE(4*t);for(;t<80;++t)r[t]=(n=r[t-3]^r[t-8]^r[t-14]^r[t-16])<<1|n>>>31;for(var u=0;u<80;++u){var l=~~(u/20),f=k(i)+j(l,a,o,s)+c+r[u]+x[l]|0;c=s,s=o,o=T(a),a=i,i=f}this._a=i+this._a|0,this._b=a+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0}},{key:"_hash",value:function(){var t=e.allocUnsafe(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t}}]),r}(m),I=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function O(e,t,n){return n^e&(t^n)}function A(e,t,n){return e&t|n&(e|t)}function R(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function N(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function C(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}var P=function(t){u()(r,t);var n=v(r);function r(){var e;return a()(this,r),(e=n.call(this,64,56))._a=1779033703,e._b=3144134277,e._c=1013904242,e._d=2773480762,e._e=1359893119,e._f=2600822924,e._g=528734635,e._h=1541459225,e._w=new Array(64),e}return s()(r,[{key:"_update",value:function(e){var t,n,r=this._w,i=0|this._a,a=0|this._b,o=0|this._c,s=0|this._d,c=0|this._e,u=0|this._f,l=0|this._g,f=0|this._h;for(t=0;t<16;++t)r[t]=e.readInt32BE(4*t);for(;t<64;++t)r[t]=0|(((n=r[t-2])>>>17|n<<15)^(n>>>19|n<<13)^n>>>10)+r[t-7]+C(r[t-15])+r[t-16];for(var p=0;p<64;++p){var d=f+N(c)+O(c,u,l)+I[p]+r[p]|0,h=R(i)+A(i,a,o)|0;f=l,l=u,u=c,c=s+d|0,s=o,o=a,a=i,i=d+h|0}this._a=i+this._a|0,this._b=a+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0,this._f=u+this._f|0,this._g=l+this._g|0,this._h=f+this._h|0}},{key:"_hash",value:function(){var t=e.allocUnsafe(32);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t.writeInt32BE(this._h,28),t}}]),r}(m),L=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function q(e,t,n){return n^e&(t^n)}function F(e,t,n){return e&t|n&(e|t)}function M(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function D(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function B(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function U(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function z(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function J(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function G(e,t){return e>>>0<t>>>0?1:0}var V=function(t){u()(r,t);var n=v(r);function r(){var e;return a()(this,r),(e=n.call(this,128,112))._ah=1779033703,e._bh=3144134277,e._ch=1013904242,e._dh=2773480762,e._eh=1359893119,e._fh=2600822924,e._gh=528734635,e._hh=1541459225,e._al=4089235720,e._bl=2227873595,e._cl=4271175723,e._dl=1595750129,e._el=2917565137,e._fl=725511199,e._gl=4215389547,e._hl=327033209,e._w=new Array(160),e}return s()(r,[{key:"_update",value:function(e){var t,n,r=this._w,i=0|this._ah,a=0|this._bh,o=0|this._ch,s=0|this._dh,c=0|this._eh,u=0|this._fh,l=0|this._gh,f=0|this._hh,p=0|this._al,d=0|this._bl,h=0|this._cl,v=0|this._dl,m=0|this._el,g=0|this._fl,y=0|this._gl,b=0|this._hl,_=0;for(_=0;_<32;_+=2)r[_]=e.readInt32BE(4*_),r[_+1]=e.readInt32BE(4*_+4);for(;_<160;_+=2){var w=r[_-30],S=r[_-30+1],x=B(w,S),k=U(S,w),T=z(w=r[_-4],S=r[_-4+1]),j=J(S,w),E=r[_-14],I=r[_-14+1],O=r[_-32],A=r[_-32+1];t=(t=(t=x+E+G(n=k+I|0,k)|0)+T+G(n=n+j|0,j)|0)+O+G(n=n+A|0,A)|0,r[_]=t,r[_+1]=n}for(var R=0;R<160;R+=2){t=r[R],n=r[R+1];var N=F(i,a,o),C=F(p,d,h),P=M(i,p),V=M(p,i),H=D(c,m),W=D(m,c),Q=L[R],K=L[R+1],Y=q(c,u,l),X=q(m,g,y),$=b+W|0,Z=f+H+G($,b)|0;Z=(Z=(Z=Z+Y+G($=$+X|0,X)|0)+Q+G($=$+K|0,K)|0)+t+G($=$+n|0,n)|0;var ee=V+C|0,te=P+N+G(ee,V)|0;f=l,b=y,l=u,y=g,u=c,g=m,c=s+Z+G(m=v+$|0,v)|0,s=o,v=h,o=a,h=d,a=i,d=p,i=Z+te+G(p=$+ee|0,$)|0}this._al=this._al+p|0,this._bl=this._bl+d|0,this._cl=this._cl+h|0,this._dl=this._dl+v|0,this._el=this._el+m|0,this._fl=this._fl+g|0,this._gl=this._gl+y|0,this._hl=this._hl+b|0,this._ah=this._ah+i+G(this._al,p)|0,this._bh=this._bh+a+G(this._bl,d)|0,this._ch=this._ch+o+G(this._cl,h)|0,this._dh=this._dh+s+G(this._dl,v)|0,this._eh=this._eh+c+G(this._el,m)|0,this._fh=this._fh+u+G(this._fl,g)|0,this._gh=this._gh+l+G(this._gl,y)|0,this._hh=this._hh+f+G(this._hl,b)|0}},{key:"_hash",value:function(){var t=e.allocUnsafe(64);function n(e,n,r){t.writeInt32BE(e,r),t.writeInt32BE(n,r+4)}return n(this._ah,this._al,0),n(this._bh,this._bl,8),n(this._ch,this._cl,16),n(this._dh,this._dl,24),n(this._eh,this._el,32),n(this._fh,this._fl,40),n(this._gh,this._gl,48),n(this._hh,this._hl,56),t}}]),r}(m),H=new Map([["md5",S],["sha-1",E],["sha-256",P],["sha-512",V],["sha1",E],["sha256",P],["sha512",V]]);function W(e){e=e.toLowerCase();var t=H.get(e);if(t)return new t;throw new Error("Unsupported hash algorithm: "+e)}var Q,K=e.alloc(128),Y=function(t){u()(r,t);var n=v(r);function r(t,i){var o;a()(this,r),o=n.call(this),"string"==typeof i&&(i=e.from(i));var s="sha512"===t?128:64;o._alg=t,i.length>s?i=W(t).update(i).digest():i.length<s&&(i=e.concat([i,K],s)),o._ipad=e.alloc(s),o._opad=e.alloc(s);for(var c=0;c<s;c++)o._ipad[c]=54^i[c],o._opad[c]=92^i[c];return o._hash=W(t).update(o._ipad),o}return s()(r,[{key:"_transform",value:function(e,t,n){var r;try{this.update(e,t)}catch(e){r=e}finally{n(r)}}},{key:"_flush",value:function(e){var t;try{this.push(this._final())}catch(e){t=e}e(t)}},{key:"_final",value:function(){var e=this._hash.digest();return W(this._alg).update(this._opad).update(e).digest()}},{key:"update",value:function(e,t){return this._hash.update(e,t),this}},{key:"digest",value:function(t){var n=this._final()||e.alloc(0);return t?n.toString(t):n}}]),r}(h.Transform);function X(t){var n=new Uint8Array(t);return t>0&&(Q.crypto||Q.msCrypto).getRandomValues(n),e.from(n.buffer)}function $(){return["sha-1","sha-256","sha-512","md5"]}function Z(e,t){return new Y(e.toLowerCase(),t)}"undefined"!=typeof window?Q=window:void 0!==r&&(Q=r);var ee=fetch,te=WebSocket,ne=Q.RTCPeerConnection}.call(this,n(111).Buffer,n(79))},function(e,t,n){"use strict";n(133),n(19),n(9),n(30),n(28),n(5),n(21),n(22),n(27),n(24);var r=n(4),i=n(0);n(40);var a=n(83),o=n(14),s=n(2),c=n(3),u=n(43),l=n(77),f=n(8),p=n(37),d=n(16);function h(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return v(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return v(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function y(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 n,r=d(e);if(t){var i=d(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return p(this,n)}}Object.defineProperty(t,"__esModule",{value:!0});var b=n(1),_=b.__importStar(n(17)),w=n(102),S=n(112),x=n(169),k=n(206),T=function(e){f(b,e);var t,n,o,p,v,m=y(b);function b(e){var t;return s(this,b),(t=m.call(this,e)).bitrateLimit=0,t.candidateBuffer=[],t.transportType=S.NS_JINGLE_ICE_UDP_1,t.restartingIce=!1,t.usingRelay=!1,t.maxRelayBandwidth=e.maxRelayBandwidth,t.pc=t.parent.createPeerConnection(u(t),g(g({},e.config),{},{iceServers:e.iceServers})),t.pc.oniceconnectionstatechange=function(){t.onIceStateChange()},t.pc.onicecandidate=function(e){e.candidate?t.onIceCandidate(e):t.onIceEndOfCandidates()},t.restrictRelayBandwidth(),t}return c(b,[{key:"end",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"success",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.pc.close(),l(d(b.prototype),"end",this).call(this,e,t)}},{key:"restartIce",value:(v=a(i.mark((function e(){var t=this;return i.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.isInitiator){e.next=2;break}return e.abrupt("return");case 2:return void 0!==this._maybeRestartingIce&&clearTimeout(this._maybeRestartingIce),this.restartingIce=!0,e.prev=4,e.next=7,this.processLocal("restart-ice",a(i.mark((function e(){var n,r;return i.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.pc.createOffer({iceRestart:!0});case 2:return n=e.sent,r=x.importFromSDP(n.sdp),t.send(w.JingleAction.TransportInfo,{contents:r.media.map((function(e){return{creator:w.JingleSessionRole.Initiator,name:e.mid,transport:k.convertIntermediateToTransport(e,t.transportType)}})),sid:t.sid}),e.next=7,t.pc.setLocalDescription(n);case 7:case"end":return e.stop()}}),e)}))));case 7:e.next=13;break;case 9:e.prev=9,e.t0=e.catch(4),this._log("error","Could not create WebRTC offer",e.t0),this.end(w.JingleReasonCondition.FailedTransport,!0);case 13:case"end":return e.stop()}}),e,this,[[4,9]])}))),function(){return v.apply(this,arguments)})},{key:"setMaximumBitrate",value:(p=a(i.mark((function e(t){var n;return i.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.maximumBitrate&&(t=Math.min(t,this.maximumBitrate)),this.currentBitrate=t,(n=this.pc.getSenders().find((function(e){return!!e.track&&"video"===e.track.kind})))&&n.getParameters){e.next=5;break}return e.abrupt("return");case 5:return e.prev=5,e.next=8,this.processLocal("set-bitrate",a(i.mark((function e(){var r;return i.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(r=n.getParameters()).encodings&&r.encodings.length||(r.encodings=[{}]),0===t?delete r.encodings[0].maxBitrate:r.encodings[0].maxBitrate=t,e.next=5,n.setParameters(r);case 5:case"end":return e.stop()}}),e)}))));case 8:e.next=13;break;case 10:e.prev=10,e.t0=e.catch(5),this._log("error","Set maximumBitrate failed",e.t0);case 13:case"end":return e.stop()}}),e,this,[[5,10]])}))),function(e){return p.apply(this,arguments)})},{key:"onTransportInfo",value:(o=a(i.mark((function e(t,n){var o,s,c,u,l,f,p,d,v,m,g,y,b,S,T,j=this;return i.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t.contents&&t.contents[0]&&t.contents[0].transport.gatheringComplete)){e.next=18;break}if(o={sdpMid:t.contents[0].name,candidate:""},e.prev=2,"stable"!==this.pc.signalingState){e.next=8;break}return e.next=6,this.pc.addIceCandidate(o);case 6:e.next=9;break;case 8:this.candidateBuffer.push(o);case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(2),this._log("debug","Could not add null end-of-candidate");case 14:return e.prev=14,n(),e.finish(14);case 17:return e.abrupt("return");case 18:if(!this.pc.remoteDescription){e.next=51;break}if(s=this.pc.remoteDescription,c=x.importFromSDP(s.sdp),u=c.media.find((function(e){return e.mid===t.contents[0].name})),l=u.iceParameters.usernameFragment,!(f=t.contents[0].transport.usernameFragment)||l===f){e.next=51;break}p=h(t.contents.entries());try{for(p.s();!(d=p.n()).done;)v=r(d.value,2),m=v[0],g=v[1],y=g.transport,c.media[m].iceParameters={password:y.password,usernameFragment:y.usernameFragment},c.media[m].candidates=[]}catch(e){p.e(e)}finally{p.f()}return e.prev=27,e.next=30,this.pc.setRemoteDescription({type:s.type,sdp:x.exportToSDP(c)});case 30:return e.next=32,this.processBufferedCandidates();case 32:if("offer"!==s.type){e.next=42;break}return e.next=35,this.pc.createAnswer();case 35:return b=e.sent,e.next=38,this.pc.setLocalDescription(b);case 38:S=x.importFromSDP(b.sdp),this.send(w.JingleAction.TransportInfo,{contents:S.media.map((function(e){return{creator:w.JingleSessionRole.Initiator,name:e.mid,transport:k.convertIntermediateToTransport(e,j.transportType)}})),sid:this.sid}),e.next=43;break;case 42:this.restartingIce=!1;case 43:e.next=51;break;case 45:return e.prev=45,e.t1=e.catch(27),this._log("error","Could not do remote ICE restart",e.t1),n(e.t1),this.end(w.JingleReasonCondition.FailedTransport),e.abrupt("return");case 51:return T=(t.contents||[]).map((function(e){var t=e.name,n=(e.transport.candidates||[]).map(function(){var e=a(i.mark((function e(n){var r;return i.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=_.writeCandidate(k.convertCandidateToIntermediate(n)),!j.pc.remoteDescription||"stable"!==j.pc.signalingState){e.next=12;break}return e.prev=2,e.next=5,j.pc.addIceCandidate({sdpMid:t,candidate:r});case 5:e.next=10;break;case 7:e.prev=7,e.t0=e.catch(2),j._log("error","Could not add ICE candidate",e.t0);case 10:e.next=13;break;case 12:j.candidateBuffer.push({sdpMid:t,candidate:r});case 13:case"end":return e.stop()}}),e,null,[[2,7]])})));return function(t){return e.apply(this,arguments)}}());return Promise.all(n)})),e.prev=52,e.next=55,Promise.all(T);case 55:n(),e.next=62;break;case 58:e.prev=58,e.t2=e.catch(52),this._log("error","Could not process transport-info: ".concat(e.t2)),n(e.t2);case 62:case"end":return e.stop()}}),e,this,[[2,11,14,17],[27,45],[52,58]])}))),function(e,t){return o.apply(this,arguments)})},{key:"onSessionAccept",value:(n=a(i.mark((function e(t,n){var r,a;return i.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.state="active",r=k.convertRequestToIntermediate(t,this.peerRole),a=x.exportToSDP(r),e.prev=3,e.next=6,this.pc.setRemoteDescription({type:"answer",sdp:a});case 6:return e.next=8,this.processBufferedCandidates();case 8:this.parent.emit("accepted",this,void 0),n(),e.next=16;break;case 12:e.prev=12,e.t0=e.catch(3),this._log("error","Could not process WebRTC answer: ".concat(e.t0)),n({condition:"general-error"});case 16:case"end":return e.stop()}}),e,this,[[3,12]])}))),function(e,t){return n.apply(this,arguments)})},{key:"onSessionTerminate",value:function(e,t){this._log("info","Terminating session"),this.pc.close(),l(d(b.prototype),"end",this).call(this,e.reason,!0),t()}},{key:"onIceCandidate",value:function(e){if(e.candidate&&e.candidate.candidate){var t=_.parseCandidate(e.candidate.candidate),n={contents:[{creator:w.JingleSessionRole.Initiator,name:e.candidate.sdpMid,transport:{candidates:[k.convertIntermediateToCandidate(t)],transportType:this.transportType,usernameFragment:t.usernameFragment}}]};this._log("info","Discovered new ICE candidate",n),this.send(w.JingleAction.TransportInfo,n)}}},{key:"onIceEndOfCandidates",value:function(){this._log("info","ICE end of candidates");var e=x.importFromSDP(this.pc.localDescription.sdp).media[0];this.send(w.JingleAction.TransportInfo,{contents:[{creator:w.JingleSessionRole.Initiator,name:e.mid,transport:{gatheringComplete:!0,transportType:this.transportType,usernameFragment:e.iceParameters.usernameFragment}}]})}},{key:"onIceStateChange",value:function(){switch(this.pc.iceConnectionState){case"checking":this.connectionState="connecting";break;case"completed":case"connected":this.connectionState="connected";break;case"disconnected":if("stable"===this.pc.signalingState?this.connectionState="interrupted":this.connectionState="disconnected",this.restartingIce)return void this.end(w.JingleReasonCondition.FailedTransport);this.maybeRestartIce();break;case"failed":if("failed"===this.connectionState||this.restartingIce)return void this.end(w.JingleReasonCondition.FailedTransport);this.connectionState="failed",this.restartIce();break;case"closed":this.connectionState="disconnected",this.restartingIce?this.end(w.JingleReasonCondition.FailedTransport):this.end()}}},{key:"processBufferedCandidates",value:(t=a(i.mark((function e(){var t,n,r;return i.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=h(this.candidateBuffer),e.prev=1,t.s();case 3:if((n=t.n()).done){e.next=15;break}return r=n.value,e.prev=5,e.next=8,this.pc.addIceCandidate(r);case 8:e.next=13;break;case 10:e.prev=10,e.t0=e.catch(5),this._log("error","Could not add ICE candidate",e.t0);case 13:e.next=3;break;case 15:e.next=20;break;case 17:e.prev=17,e.t1=e.catch(1),t.e(e.t1);case 20:return e.prev=20,t.f(),e.finish(20);case 23:this.candidateBuffer=[];case 24:case"end":return e.stop()}}),e,this,[[1,17,20,23],[5,10]])}))),function(){return t.apply(this,arguments)})},{key:"restrictRelayBandwidth",value:function(){var e=this;this.pc.addEventListener("iceconnectionstatechange",a(i.mark((function t(){var n,r,a,o,s,c,u;return i.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("completed"===e.pc.iceConnectionState||"connected"===e.pc.iceConnectionState){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,e.pc.getStats();case 4:if((n=t.sent).forEach((function(e){"transport"===e.type&&(r=n.get(e.selectedCandidatePairId))})),r||n.forEach((function(e){"candidate-pair"===e.type&&e.selected&&(r=e)})),r){t.next=9;break}return t.abrupt("return");case 9:a=!1,o="",s="",r.remoteCandidateId&&(c=n.get(r.remoteCandidateId))&&(s=c.candidateType),r.localCandidateId&&(u=n.get(r.localCandidateId))&&(o=u.candidateType),"relay"!==o&&"relay"!==s||(a=!0),e.usingRelay=a,e.parent.emit("iceConnectionType",e,{localCandidateType:o,relayed:a,remoteCandidateType:s}),a&&void 0!==e.maxRelayBandwidth&&(e.maximumBitrate=e.maxRelayBandwidth,e.currentBitrate?e.setMaximumBitrate(Math.min(e.currentBitrate,e.maximumBitrate)):e.setMaximumBitrate(e.maximumBitrate));case 18:case"end":return t.stop()}}),t)}))))}},{key:"maybeRestartIce",value:function(){var e=this;this.isInitiator&&(void 0!==this._maybeRestartingIce&&clearTimeout(this._maybeRestartingIce),this._maybeRestartingIce=setTimeout((function(){e._maybeRestartingIce=void 0,"disconnected"===e.pc.iceConnectionState&&e.restartIce()}),2e3))}}]),b}(b.__importDefault(n(207)).default);t.default=T},function(e,t,n){"use strict";function r(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){c=!0,o=e},f:function(){try{s||null==n.return||n.return()}finally{if(c)throw o}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n(82),n(30),n(28),n(5),n(25),n(99),Object.defineProperty(t,"__esModule",{value:!0}),t.convertRequestToIntermediate=t.convertContentToIntermediate=t.convertIntermediateToRequest=t.convertIntermediateToTransport=t.convertCandidateToIntermediate=t.convertIntermediateToCandidate=t.convertIntermediateToApplication=void 0;var a=n(102),o=n(112);function s(e,t){var n=e.rtpParameters,i=e.rtcpParameters||{},s=e.rtpEncodingParameters||[],c=!1;s&&s.length&&(c=!!s[0].ssrc);var u,l={applicationType:o.NS_JINGLE_RTP_1,codecs:[],headerExtensions:[],media:e.kind,rtcpMux:i.mux,rtcpReducedSize:i.reducedSize,sourceGroups:[],sources:[],ssrc:c?s[0].ssrc.toString():void 0,streams:[]},f=r(n.headerExtensions||[]);try{for(f.s();!(u=f.n()).done;){var p=u.value,d={id:p.id,uri:p.uri};p.direction&&"sendrecv"!==p.direction&&(d.senders=a.directionToSenders(t,p.direction)),l.headerExtensions.push(d)}}catch(e){f.e(e)}finally{f.f()}i.ssrc&&i.cname&&(l.sources=[{parameters:{cname:i.cname},ssrc:i.ssrc.toString()}]),c&&s[0]&&s[0].rtx&&(l.sourceGroups=[{semantics:"FID",sources:[s[0].ssrc.toString(),s[0].rtx.ssrc.toString()]}]);var h,v=r(e.streams||[]);try{for(v.s();!(h=v.n()).done;){var m=h.value;l.streams.push({id:m.stream,track:m.track})}}catch(e){v.e(e)}finally{v.f()}var g,y=r(n.codecs||[]);try{for(y.s();!(g=y.n()).done;){var b=g.value,_={channels:b.channels,clockRate:b.clockRate,id:b.payloadType.toString(),name:b.name,parameters:b.parameters,rtcpFeedback:b.rtcpFeedback};b.maxptime&&(_.maxptime=b.maxptime),b.parameters&&b.parameters.ptime&&(_.ptime=parseInt(b.parameters.ptime,10)),l.codecs.push(_)}}catch(e){y.e(e)}finally{y.f()}return l}function c(e){return{component:"rtp"===e.component?1:"rtcp"===e.component?2:e.component,foundation:e.foundation,generation:void 0,id:void 0,ip:e.ip,network:void 0,port:e.port,priority:e.priority,protocol:e.protocol,relatedAddress:e.relatedAddress,relatedPort:e.relatedPort,tcpType:e.tcpType,type:e.type}}function u(e){return{address:e.ip,component:1===e.component?"rtp":2===e.component?"rtcp":e.component,foundation:e.foundation,ip:e.ip,port:e.port,priority:e.priority,protocol:e.protocol,relatedAddress:e.relatedAddress,relatedPort:e.relatedPort,tcpType:e.tcpType,type:e.type}}function l(e,t){var n=e.iceParameters,i=e.dtlsParameters,a={candidates:[],transportType:t};n&&(a.usernameFragment=n.usernameFragment,a.password=n.password,n.iceLite&&(a.iceLite=!0)),i&&(a.fingerprints=i.fingerprints.map((function(t){return{algorithm:t.algorithm,setup:e.setup,value:t.value}}))),e.sctp&&(a.sctp=e.sctp);var o,s=r(e.candidates||[]);try{for(s.s();!(o=s.n()).done;){var u=o.value;a.candidates.push(c(u))}}catch(e){s.e(e)}finally{s.f()}return a}function f(e,t){var n=e.application||{},i=e.transport,s=n&&n.applicationType===o.NS_JINGLE_RTP_1,c={direction:a.sendersToDirection(t,e.senders),kind:n.media||"application",mid:e.name,protocol:s?"UDP/TLS/RTP/SAVPF":"UDP/DTLS/SCTP"};if(s){if(c.rtcpParameters={compound:!n.rtcpReducedSize,mux:n.rtcpMux,reducedSize:n.rtcpReducedSize},n.sources&&n.sources.length){var l=n.sources[0];c.rtcpParameters.ssrc=parseInt(l.ssrc,10),l.parameters&&(c.rtcpParameters.cname=l.parameters.cname)}if(c.rtpParameters={codecs:[],fecMechanisms:[],headerExtensions:[],rtcp:[]},n.streams){c.streams=[];var f,p=r(n.streams);try{for(p.s();!(f=p.n()).done;){var d=f.value;c.streams.push({stream:d.id,track:d.track})}}catch(e){p.e(e)}finally{p.f()}}if(n.ssrc&&(c.rtpEncodingParameters=[{ssrc:parseInt(n.ssrc,10)}],n.sourceGroups&&n.sourceGroups.length)){var h=n.sourceGroups[0];c.rtpEncodingParameters[0].rtx={ssrc:parseInt(h.sources[1],10)}}var v,m=!1,g=!1,y=r(n.codecs||[]);try{for(y.s();!(v=y.n()).done;){var b,_=v.value,w=_.parameters||{},S=[],x=r(_.rtcpFeedback||[]);try{for(x.s();!(b=x.n()).done;){var k=b.value;S.push({parameter:k.parameter,type:k.type})}}catch(e){x.e(e)}finally{x.f()}if("red"===_.name||"ulpfec"===_.name){m=m||"red"===_.name,g=g||"ulpfec"===_.name;var T=_.name.toUpperCase();c.rtpParameters.fecMechanisms.includes(T)||c.rtpParameters.fecMechanisms.push(T)}c.rtpParameters.codecs.push({channels:_.channels,clockRate:_.clockRate,name:_.name,numChannels:_.channels,parameters:w,payloadType:parseInt(_.id,10),rtcpFeedback:S})}}catch(e){y.e(e)}finally{y.f()}var j,E=r(n.headerExtensions||[]);try{for(E.s();!(j=E.n()).done;){var I=j.value;c.rtpParameters.headerExtensions.push({direction:a.sendersToDirection(t,I.senders||"both"),id:I.id,uri:I.uri})}}catch(e){E.e(e)}finally{E.f()}}if(i){if(i.usernameFragment&&i.password&&(c.iceParameters={password:i.password,usernameFragment:i.usernameFragment},i.iceLite&&(c.iceParameters.iceLite=!0)),i.fingerprints&&i.fingerprints.length){c.dtlsParameters={fingerprints:[],role:"auto"};var O,A=r(i.fingerprints);try{for(A.s();!(O=A.n()).done;){var R=O.value;c.dtlsParameters.fingerprints.push({algorithm:R.algorithm,value:R.value})}}catch(e){A.e(e)}finally{A.f()}i.sctp&&(c.sctp=i.sctp),c.setup=i.fingerprints[0].setup}c.candidates=(i.candidates||[]).map(u)}return c}t.convertIntermediateToApplication=s,t.convertIntermediateToCandidate=c,t.convertCandidateToIntermediate=u,t.convertIntermediateToTransport=l,t.convertIntermediateToRequest=function(e,t,n){return{contents:e.media.map((function(e){return{application:"audio"===e.kind||"video"===e.kind?s(e,t):{applicationType:"datachannel",protocol:e.protocol},creator:a.JingleSessionRole.Initiator,name:e.mid,senders:a.directionToSenders(t,e.direction),transport:l(e,n)}})),groups:e.groups?e.groups.map((function(e){return{contents:e.mids,semantics:e.semantics}})):[]}},t.convertContentToIntermediate=f,t.convertRequestToIntermediate=function(e,t){var n,i={groups:[],media:[]},a=r(e.groups||[]);try{for(a.s();!(n=a.n()).done;){var o=n.value;i.groups.push({mids:o.contents,semantics:o.semantics})}}catch(e){a.e(e)}finally{a.f()}var s,c=r(e.contents||[]);try{for(c.s();!(s=c.n()).done;){var u=s.value;i.media.push(f(u,t))}}catch(e){c.e(e)}finally{c.f()}return i}},function(e,t,n){"use strict";n(10),n(9),n(28),n(5),n(21),n(91),n(22),n(24);var r=n(0);n(40);var i=n(83),a=n(2),o=n(3);Object.defineProperty(t,"__esModule",{value:!0});var s=n(121),c=n(102),u=n(285),l={condition:c.StanzaErrorCondition.BadRequest},f={condition:c.StanzaErrorCondition.FeatureNotImplemented,jingleError:c.JingleErrorCondition.UnsupportedInfo,type:"modify"},p=function(){function e(t){var n=this;a(this,e),this.parent=t.parent,this.sid=t.sid||u.uuid(),this.peerID=t.peerID,this.role=t.initiator?c.JingleSessionRole.Initiator:c.JingleSessionRole.Responder,this._sessionState="starting",this._connectionState="starting",this.pendingApplicationTypes=t.applicationTypes||[],this.pendingAction=void 0,this.processingQueue=s.priorityQueue(function(){var e=i(r.mark((function e(t,i){var a,o,s,u;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("ended"!==n.state){e.next=4;break}return"local"===t.type&&t.reject&&t.reject(new Error("Session ended")),i&&i(),e.abrupt("return");case 4:if("local"!==t.type){e.next=18;break}return n._log("debug","Processing local action:",t.name),e.prev=6,e.next=9,t.handler();case 9:a=e.sent,t.resolve(a),e.next=16;break;case 13:e.prev=13,e.t0=e.catch(6),t.reject(e.t0);case 16:return i&&i(),e.abrupt("return");case 18:return o=t.action,s=t.changes,u=t.cb,n._log("debug","Processing remote action:",o),e.abrupt("return",new Promise((function(e){var t=function(t,n){u(t,n),i&&i(),e()};switch(o){case c.JingleAction.ContentAccept:return n.onContentAccept(s,t);case c.JingleAction.ContentAdd:return n.onContentAdd(s,t);case c.JingleAction.ContentModify:return n.onContentModify(s,t);case c.JingleAction.ContentReject:return n.onContentReject(s,t);case c.JingleAction.ContentRemove:return n.onContentRemove(s,t);case c.JingleAction.DescriptionInfo:return n.onDescriptionInfo(s,t);case c.JingleAction.SecurityInfo:return n.onSecurityInfo(s,t);case c.JingleAction.SessionAccept:return n.onSessionAccept(s,t);case c.JingleAction.SessionInfo:return n.onSessionInfo(s,t);case c.JingleAction.SessionInitiate:return n.onSessionInitiate(s,t);case c.JingleAction.SessionTerminate:return n.onSessionTerminate(s,t);case c.JingleAction.TransportAccept:return n.onTransportAccept(s,t);case c.JingleAction.TransportInfo:return n.onTransportInfo(s,t);case c.JingleAction.TransportReject:return n.onTransportReject(s,t);case c.JingleAction.TransportReplace:return n.onTransportReplace(s,t);default:n._log("error","Invalid or unsupported action: "+o),t({condition:c.StanzaErrorCondition.BadRequest})}})));case 21:case"end":return e.stop()}}),e,null,[[6,13]])})));return function(t,n){return e.apply(this,arguments)}}(),1)}return o(e,[{key:"send",value:function(e,t){(t=t||{}).sid=this.sid,t.action=e,new Set([c.JingleAction.ContentAccept,c.JingleAction.ContentAdd,c.JingleAction.ContentModify,c.JingleAction.ContentReject,c.JingleAction.ContentRemove,c.JingleAction.SessionAccept,c.JingleAction.SessionInitiate,c.JingleAction.TransportAccept,c.JingleAction.TransportReject,c.JingleAction.TransportReplace]).has(e)?this.pendingAction=e:this.pendingAction=void 0,this.parent.signal(this,{id:u.uuid(),jingle:t,to:this.peerID,type:"set"})}},{key:"processLocal",value:function(e,t){var n=this;return new Promise((function(r,i){n.processingQueue.push({handler:t,name:e,reject:i,resolve:r,type:"local"},1)}))}},{key:"process",value:function(e,t,n){this.processingQueue.push({action:e,cb:n,changes:t,type:"remote"},2)}},{key:"start",value:function(e,t){this._log("error","Can not start base sessions"),this.end("unsupported-applications",!0)}},{key:"accept",value:function(e,t){this._log("error","Can not accept base sessions"),this.end("unsupported-applications")}},{key:"cancel",value:function(){this.end("cancel")}},{key:"decline",value:function(){this.end("decline")}},{key:"end",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"success",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.state="ended",this.processingQueue.kill(),"string"==typeof e&&(e={condition:e}),t||this.send("session-terminate",{reason:e}),this.parent.emit("terminated",this,e),this.parent.forgetSession(this)}},{key:"_log",value:function(e,t){if(this.parent){var n,r;t=this.sid+": "+t;for(var i=arguments.length,a=new Array(i>2?i-2:0),o=2;o<i;o++)a[o-2]=arguments[o];(n=this.parent).emit.apply(n,["log",e,t].concat(a)),(r=this.parent).emit.apply(r,["log:"+e,t].concat(a))}}},{key:"onSessionInitiate",value:function(e,t){t()}},{key:"onSessionAccept",value:function(e,t){t()}},{key:"onSessionTerminate",value:function(e,t){this.end(e.reason,!0),t()}},{key:"onSessionInfo",value:function(e,t){e.info?t(f):t()}},{key:"onSecurityInfo",value:function(e,t){t(f)}},{key:"onDescriptionInfo",value:function(e,t){t(f)}},{key:"onTransportInfo",value:function(e,t){t(f)}},{key:"onContentAdd",value:function(e,t){t(),this.send(c.JingleAction.ContentReject,{reason:{condition:c.JingleReasonCondition.FailedApplication,text:"content-add is not supported"}})}},{key:"onContentAccept",value:function(e,t){t(l)}},{key:"onContentReject",value:function(e,t){t(l)}},{key:"onContentModify",value:function(e,t){t(l)}},{key:"onContentRemove",value:function(e,t){t(l)}},{key:"onTransportReplace",value:function(e,t){t(),this.send(c.JingleAction.TransportReject,{reason:{condition:c.JingleReasonCondition.FailedTransport,text:"transport-replace is not supported"}})}},{key:"onTransportAccept",value:function(e,t){t(l)}},{key:"onTransportReject",value:function(e,t){t(l)}},{key:"isInitiator",get:function(){return this.role===c.JingleSessionRole.Initiator}},{key:"peerRole",get:function(){return this.isInitiator?c.JingleSessionRole.Responder:c.JingleSessionRole.Initiator}},{key:"state",get:function(){return this._sessionState},set:function(e){e!==this._sessionState&&(this._log("info","Changing session state to: "+e),this._sessionState=e,this.parent&&this.parent.emit("sessionState",this,e))}},{key:"connectionState",get:function(){return this._connectionState},set:function(e){e!==this._connectionState&&(this._log("info","Changing connection state to: "+e),this._connectionState=e,this.parent&&this.parent.emit("connectionState",this,e))}}]),e}();t.default=p},function(e,t,n){"use strict";n(10),n(133),n(19),n(82),n(9),n(28),n(71),n(5),n(21),n(15),n(99),n(22),n(38),n(39),n(27),n(24);var r=n(4),i=n(14),a=n(0);n(40);var o=n(83),s=n(2),c=n(3);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}Object.defineProperty(t,"__esModule",{value:!0}),t.Client=void 0;var f=n(316),p=n(319),d=n(405);n(377);var h=n(378),v=n(380),m=n(400),g=n(404),y=n(101),b=n(142),_=n(170),w={ping:g.Ping,reconnector:m.Reconnector,notifications:h.Notifications,webrtcSessions:v.WebrtcExtension};var S={connected:"session:started",_connected:"connected"},x=function(){function e(t){var n=this;s(this,e),this.connected=!1,this.connecting=!1,this.autoReconnect=!0,this.hardReconnectCount=0,this.reconnectLeakTime=6e5,this.deadChannels=[],this.backgroundAssistantMode=!1,this.isGuest=!1,this.http=new b.HttpClient;var r=p.createClient({});r.sasl.mechanisms.find((function(e){return"ANONYMOUS"===e.name})).priority=0,r.sasl.mechanisms=r.sasl.mechanisms.sort((function(e,t){return t.priority-e.priority})),this._stanzaio=r,this.reconnectOnNoLongerSubscribed=!1!==t.reconnectOnNoLongerSubscribed,this.config={host:t.host,apiHost:t.apiHost||t.host.replace("wss://streaming.",""),authToken:t.authToken,jwt:t.jwt,jid:t.jid,jidResource:t.jidResource,channelId:null,appName:t.appName,appVersion:t.appVersion},this.backgroundAssistantMode=this.checkIsBackgroundAssistant(),this.isGuest=!this.backgroundAssistantMode&&!t.authToken;var i=t.authToken||"",c="https://api.".concat(this.config.apiHost,"/api/v2/diagnostics/trace");this.backgroundAssistantMode&&(i=t.jwt,c+="/backgroundassistant"),this.logger=new d.Logger({accessToken:i,url:c,uploadDebounceTime:1e3,initializeServerLogging:!this.isGuest&&!t.optOutOfWebrtcStatsTelemetry,appVersion:e.version,appName:"streaming-client",logLevel:this.config.logLevel||"info",logger:t.logger||console,formatters:t.logFormatters,originAppName:t.appName,originAppVersion:t.appVersion,originAppId:t.appId}),this.on("disconnected",(function(){if(n._stanzaio.transport||n.connecting)n.logger.info("disconnected event received, but reconnection is in progress");else{n.connected=!1,n._ping.stop(),n.logger.info("Streaming client disconnected.");var e=n.config.channelId;n.autoReconnect&&!n.deadChannels.includes(e)&&(n.logger.info("Streaming client disconnected unexpectedly. Attempting to auto reconnect",{channelId:e}),n._reconnector.start())}})),this.on("connected",function(){var e=o(a.mark((function e(t){return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n.streamId=t.resource,n._ping.start(),n.connected=!0,n._reconnector.stop(),n.connecting=!1;case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),this.on("session:end",(function(){n._ping.stop()})),this._stanzaio.on("sasl",(function(e){if("failure"===e.type){if(n.logger.error("Authentication failed connecting to streaming service",l(l({},e),{},{channelId:n.config.channelId})),"temporary-auth-failure"!==e.condition)return n._ping.stop(),n.autoReconnect=!1,n.disconnect();n.logger.info("Temporary auth failure, continuing reconnect attempts")}})),this.on("notify:no_longer_subscribed",(function(e){n._ping.stop();var t=e.eventBody.channelId;if(n.deadChannels.push(t),t===n.config.channelId){if(n.hardReconnectCount>=2)return n.logger.error("no_longer_subscribed has been called ".concat(n.hardReconnectCount," times and the threshold is ").concat(2,", not attempting to reconnect\n channelId: ").concat(n.config.channelId)),void n.cleanupLeakTimer();if(n.logger.info("no_longer_subscribed received"),n.reconnectOnNoLongerSubscribed)return n.logger.info("streaming client attempting to reconnect on a new channel"),n.hardReconnectCount++,n.leakyReconnectTimer||(n.leakyReconnectTimer=setInterval((function(){n.hardReconnectCount>0?n.hardReconnectCount--:n.cleanupLeakTimer()}),n.reconnectLeakTime)),n._reconnector.hardReconnect();n.logger.info("`reconnectOnNoLongerSubscribed` is false, not attempting to reconnect streaming client")}else n.logger.warn("received no_longer_subscribed event for a non active channelId")})),Object.keys(w).forEach((function(e){var i=new w[e](n,t);"function"==typeof i.handleIq&&r.on("iq",i.handleIq.bind(i)),"function"==typeof i.handleMessage&&r.on("message",i.handleMessage.bind(i)),i.tokenBucket||(i.tokenBucket=new f.TokenBucket(20,25,1e3),i.tokenBucket.content=25),"function"==typeof i.on&&i.on("send",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return i.tokenBucket.removeTokens(1,(function(){return!0===t?r.sendMessage(e):r.sendIQ(e)}))})),n[e]=i.expose,n["_".concat(e)]=i}))}var t;return c(e,[{key:"checkIsBackgroundAssistant",value:function(){if(this.config.jwt){var e=y.parseJwt(this.config.jwt);return e&&"urn:purecloud:screenrecording"===e.iss}return!1}},{key:"cleanupLeakTimer",value:function(){clearInterval(this.leakyReconnectTimer),this.leakyReconnectTimer=null}},{key:"on",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i,a;S[e]?(i=this._stanzaio).on.apply(i,[S[e]].concat(n)):(a=this._stanzaio).on.apply(a,[e].concat(n));return this}},{key:"once",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i,a;S[e]?(i=this._stanzaio).once.apply(i,[S[e]].concat(n)):(a=this._stanzaio).once.apply(a,[e].concat(n));return this}},{key:"off",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i,a;S[e]?(i=this._stanzaio).off.apply(i,[S[e]].concat(n)):(a=this._stanzaio).off.apply(a,[e].concat(n));return this}},{key:"disconnect",value:function(){var e=this;return this.logger.info("streamingClient.disconnect was called"),this.stopServerLogging(),y.timeoutPromise((function(t){e._stanzaio.once("disconnected",t),e.autoReconnect=!1,e._reconnector.stop(new Error("Cancelling reconnect")),e.http.stopAllRetries(),e._stanzaio.disconnect()}),1e3,"disconnecting streaming service")}},{key:"reconnect",value:function(){var e=this;return this.logger.info("streamingClient.reconnect was called"),y.timeoutPromise((function(t){e._stanzaio.once("session:started",t),e.autoReconnect=!0,e._stanzaio.disconnect()}),1e4,"reconnecting streaming service")}},{key:"connect",value:(t=o(a.mark((function e(){var t,n,r,i=arguments;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=i.length>0&&void 0!==i[0]?i[0]:{keepTryingOnFailure:!1,retryDelay:5e3},e.prev=1,this.logger.info("streamingClient.connect was called"),e.next=5,this._tryToConnect();case 5:e.next=18;break;case 7:if(e.prev=7,e.t0=e.catch(1),r=!0,e.t0 instanceof _.AxiosError&&[401,403].includes((null===(n=e.t0.response)||void 0===n?void 0:n.status)||0)&&(r=!1),!t.keepTryingOnFailure||!this.autoReconnect){e.next=17;break}if(!r){e.next=16;break}return e.next=15,y.wait(t.retryDelay);case 15:return e.abrupt("return",this.connect(t));case 16:this.logger.error("Streaming client received and error that it can't recover from and will not attempt to reconnect",{error:e.t0});case 17:throw e.t0;case 18:case"end":return e.stop()}}),e,this,[[1,7]])}))),function(){return t.apply(this,arguments)})},{key:"_tryToConnect",value:function(){var e,t=this;if(this.startServerLogging(),this.connecting=!0,this.config.jwt)return y.timeoutPromise((function(e){t.once("connected",e);var n=function(e){var t,n=y.parseJwt(e.jwt);try{t=n.data.jid.split("@")[1].replace("conference.","")}catch(e){throw new Error("failed to parse jid")}var r=e.host.replace(/\/$/,"");return{resource:e.jidResource,transports:{websocket:"".concat(r,"/stream/jwt/").concat(e.jwt)},server:t,sasl:["anonymous"]}}(t.config);t._stanzaio.updateConfig(n),t._stanzaio.connect()}),1e4,"connecting to streaming service with jwt").catch((function(e){return t.connecting=!1,Promise.reject(e)}));if(this.config.jid)e=Promise.resolve(this.config.jid);else{var n={method:"get",host:this.config.apiHost,authToken:this.config.authToken,logger:this.logger};e=this.http.requestApiWithRetry("users/me",n).promise.then((function(e){return e.data.chat.jabberId}))}var i={method:"post",host:this.config.apiHost,authToken:this.config.authToken,logger:this.logger},a=this.http.requestApiWithRetry("notifications/channels?connectionType=streaming",i).promise.then((function(e){return e.data.id}));return Promise.all([e,a]).then((function(e){var n=r(e,2),i=n[0],a=n[1];return t.config.jid=i,t.config.channelId=a,t.autoReconnect=!0,y.timeoutPromise((function(e){t.once("connected",e);var n,r,i=(n=t.config,r=n.host.replace(/\/$/,""),{jid:n.jid,resource:n.jidResource,credentials:{username:n.jid,password:"authKey:".concat(n.authToken)},transports:{websocket:"".concat(r,"/stream/channels/").concat(n.channelId)}});t._stanzaio.updateConfig(i),t._stanzaio.connect()}),1e4,"connecting to streaming service",{jid:i,channelId:a})})).catch((function(e){return t.connecting=!1,Promise.reject(e)}))}},{key:"stopServerLogging",value:function(){this.logger.sendAllLogsInstantly(),this.logger.stopServerLogging(),this._webrtcSessions.flushStats()}},{key:"startServerLogging",value:function(){this.logger.startServerLogging()}},{key:"setAccessToken",value:function(e){this.config.authToken=e,this.logger.setAccessToken(e)}},{key:"version",get:function(){return e.version}}],[{key:"extend",value:function(e,t){if(w[e])throw new Error("Cannot register already existing namespace ".concat(e));w[e]=t}},{key:"version",get:function(){return"14.2.1"}}]),e}();t.Client=x},function(e,t,n){var r=n(16),i=n(199),a=n(332),o=n(333);function s(t){var n="function"==typeof Map?new Map:void 0;return e.exports=s=function(e){if(null===e||!a(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return o(e,arguments,r(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),i(t,e)},s(t)}e.exports=s},function(e,t,n){var r=n(32),i=n(11),a=n(172);e.exports=!r&&!i((function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){var r=n(12),i=n(173),a=r["__core-js_shared__"]||i("__core-js_shared__",{});e.exports=a},function(e,t,n){var r=n(34),i=n(213),a=n(93),o=n(35);e.exports=function(e,t){for(var n=i(t),s=o.f,c=a.f,u=0;u<n.length;u++){var l=n[u];r(e,l)||s(e,l,c(t,l))}}},function(e,t,n){var r=n(95),i=n(104),a=n(177),o=n(36);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(o(e)),n=a.f;return n?t.concat(n(e)):t}},function(e,t,n){var r=n(12);e.exports=r},function(e,t,n){var r=n(34),i=n(84),a=n(125).indexOf,o=n(124);e.exports=function(e,t){var n,s=i(e),c=0,u=[];for(n in s)!r(o,n)&&r(s,n)&&u.push(n);for(;t.length>c;)r(s,n=t[c++])&&(~a(u,n)||u.push(n));return u}},function(e,t,n){var r=n(179);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(e,t,n){var r=n(95);e.exports=r("navigator","userAgent")||""},function(e,t,n){var r=n(32),i=n(35),a=n(36),o=n(129);e.exports=r?Object.defineProperties:function(e,t){a(e);for(var n,r=o(t),s=r.length,c=0;s>c;)i.f(e,n=r[c++],t[n]);return e}},function(e,t,n){var r=n(95);e.exports=r("document","documentElement")},function(e,t,n){var r=n(84),i=n(104).f,a={}.toString,o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return o&&"[object Window]"==a.call(e)?function(e){try{return i(e)}catch(e){return o.slice()}}(e):i(r(e))}},function(e,t,n){var r=n(18);t.f=r},function(e,t,n){"use strict";var r=n(72).forEach,i=n(106),a=n(80),o=i("forEach"),s=a("forEach");e.exports=o&&s?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},function(e,t,n){"use strict";var r=n(224).IteratorPrototype,i=n(107),a=n(103),o=n(88),s=n(130),c=function(){return this};e.exports=function(e,t,n){var u=t+" Iterator";return e.prototype=i(r,{next:a(1,n)}),o(e,u,!1,!0),s[u]=c,e}},function(e,t,n){"use strict";var r,i,a,o=n(116),s=n(76),c=n(34),u=n(18),l=n(94),f=u("iterator"),p=!1;[].keys&&("next"in(a=[].keys())?(i=o(o(a)))!==Object.prototype&&(r=i):p=!0),null==r&&(r={}),l||c(r,f)||s(r,f,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:p}},function(e,t,n){var r=n(11);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},function(e,t,n){"use strict";var r=n(12),i=n(32),a=n(227),o=n(76),s=n(150),c=n(11),u=n(109),l=n(96),f=n(29),p=n(228),d=n(302),h=n(116),v=n(131),m=n(104).f,g=n(35).f,y=n(185),b=n(88),_=n(86),w=_.get,S=_.set,x=r.ArrayBuffer,k=x,T=r.DataView,j=T&&T.prototype,E=Object.prototype,I=r.RangeError,O=d.pack,A=d.unpack,R=function(e){return[255&e]},N=function(e){return[255&e,e>>8&255]},C=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},P=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},L=function(e){return O(e,23,4)},q=function(e){return O(e,52,8)},F=function(e,t){g(e.prototype,t,{get:function(){return w(this)[t]}})},M=function(e,t,n,r){var i=p(n),a=w(e);if(i+t>a.byteLength)throw I("Wrong index");var o=w(a.buffer).bytes,s=i+a.byteOffset,c=o.slice(s,s+t);return r?c:c.reverse()},D=function(e,t,n,r,i,a){var o=p(n),s=w(e);if(o+t>s.byteLength)throw I("Wrong index");for(var c=w(s.buffer).bytes,u=o+s.byteOffset,l=r(+i),f=0;f<t;f++)c[u+f]=l[a?f:t-f-1]};if(a){if(!c((function(){x(1)}))||!c((function(){new x(-1)}))||c((function(){return new x,new x(1.5),new x(NaN),"ArrayBuffer"!=x.name}))){for(var B,U=(k=function(e){return u(this,k),new x(p(e))}).prototype=x.prototype,z=m(x),J=0;z.length>J;)(B=z[J++])in k||o(k,B,x[B]);U.constructor=k}v&&h(j)!==E&&v(j,E);var G=new T(new k(2)),V=j.setInt8;G.setInt8(0,2147483648),G.setInt8(1,2147483649),!G.getInt8(0)&&G.getInt8(1)||s(j,{setInt8:function(e,t){V.call(this,e,t<<24>>24)},setUint8:function(e,t){V.call(this,e,t<<24>>24)}},{unsafe:!0})}else k=function(e){u(this,k,"ArrayBuffer");var t=p(e);S(this,{bytes:y.call(new Array(t),0),byteLength:t}),i||(this.byteLength=t)},T=function(e,t,n){u(this,T,"DataView"),u(e,k,"DataView");var r=w(e).byteLength,a=l(t);if(a<0||a>r)throw I("Wrong offset");if(a+(n=void 0===n?r-a:f(n))>r)throw I("Wrong length");S(this,{buffer:e,byteLength:n,byteOffset:a}),i||(this.buffer=e,this.byteLength=n,this.byteOffset=a)},i&&(F(k,"byteLength"),F(T,"buffer"),F(T,"byteLength"),F(T,"byteOffset")),s(T.prototype,{getInt8:function(e){return M(this,1,e)[0]<<24>>24},getUint8:function(e){return M(this,1,e)[0]},getInt16:function(e){var t=M(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=M(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(e){return P(M(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return P(M(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return A(M(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return A(M(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(e,t){D(this,1,e,R,t)},setUint8:function(e,t){D(this,1,e,R,t)},setInt16:function(e,t){D(this,2,e,N,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,t){D(this,2,e,N,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){D(this,4,e,C,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){D(this,4,e,C,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){D(this,4,e,L,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){D(this,8,e,q,t,arguments.length>2?arguments[2]:void 0)}});b(k,"ArrayBuffer"),b(T,"DataView"),e.exports={ArrayBuffer:k,DataView:T}},function(e,t){e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},function(e,t,n){var r=n(96),i=n(29);e.exports=function(e){if(void 0===e)return 0;var t=r(e),n=i(t);if(t!==n)throw RangeError("Wrong length or index");return n}},function(e,t,n){var r=n(12);e.exports=r.Promise},function(e,t,n){var r=n(36);e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(t){var a=e.return;throw void 0!==a&&r(a.call(e)),t}}},function(e,t,n){var r=n(217);e.exports=/(iphone|ipod|ipad).*applewebkit/i.test(r)},function(e,t,n){var r,i,a,o,s,c,u,l,f=n(12),p=n(93).f,d=n(87),h=n(189).set,v=n(231),m=f.MutationObserver||f.WebKitMutationObserver,g=f.process,y=f.Promise,b="process"==d(g),_=p(f,"queueMicrotask"),w=_&&_.value;w||(r=function(){var e,t;for(b&&(e=g.domain)&&e.exit();i;){t=i.fn,i=i.next;try{t()}catch(e){throw i?o():a=void 0,e}}a=void 0,e&&e.enter()},b?o=function(){g.nextTick(r)}:m&&!v?(s=!0,c=document.createTextNode(""),new m(r).observe(c,{characterData:!0}),o=function(){c.data=s=!s}):y&&y.resolve?(u=y.resolve(void 0),l=u.then,o=function(){l.call(u,r)}):o=function(){h.call(f,r)}),e.exports=w||function(e){var t={fn:e,next:void 0};a&&(a.next=t),i||(i=t,o()),a=t}},function(e,t,n){var r=n(36),i=n(31),a=n(234);e.exports=function(e,t){if(r(e),i(t)&&t.constructor===e)return t;var n=a.f(e);return(0,n.resolve)(t),n.promise}},function(e,t,n){"use strict";var r=n(114),i=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new i(e)}},function(e,t,n){"use strict";var r=n(11);function i(e,t){return RegExp(e,t)}t.UNSUPPORTED_Y=r((function(){var e=i("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),t.BROKEN_CARET=r((function(){var e=i("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},function(e,t,n){var r=n(85),i="["+n(237)+"]",a=RegExp("^"+i+i+"*"),o=RegExp(i+i+"*$"),s=function(e){return function(t){var n=String(r(t));return 1&e&&(n=n.replace(a,"")),2&e&&(n=n.replace(o,"")),n}};e.exports={start:s(1),end:s(2),trim:s(3)}},function(e,t){e.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},function(e,t,n){"use strict";var r=n(7),i=n(12),a=n(32),o=n(306),s=n(26),c=n(226),u=n(109),l=n(103),f=n(76),p=n(29),d=n(228),h=n(239),v=n(113),m=n(34),g=n(128),y=n(31),b=n(107),_=n(131),w=n(104).f,S=n(308),x=n(72).forEach,k=n(117),T=n(35),j=n(93),E=n(86),I=n(156),O=E.get,A=E.set,R=T.f,N=j.f,C=Math.round,P=i.RangeError,L=c.ArrayBuffer,q=c.DataView,F=s.NATIVE_ARRAY_BUFFER_VIEWS,M=s.TYPED_ARRAY_TAG,D=s.TypedArray,B=s.TypedArrayPrototype,U=s.aTypedArrayConstructor,z=s.isTypedArray,J=function(e,t){for(var n=0,r=t.length,i=new(U(e))(r);r>n;)i[n]=t[n++];return i},G=function(e,t){R(e,t,{get:function(){return O(this)[t]}})},V=function(e){var t;return e instanceof L||"ArrayBuffer"==(t=g(e))||"SharedArrayBuffer"==t},H=function(e,t){return z(e)&&"symbol"!=typeof t&&t in e&&String(+t)==String(t)},W=function(e,t){return H(e,t=v(t,!0))?l(2,e[t]):N(e,t)},Q=function(e,t,n){return!(H(e,t=v(t,!0))&&y(n)&&m(n,"value"))||m(n,"get")||m(n,"set")||n.configurable||m(n,"writable")&&!n.writable||m(n,"enumerable")&&!n.enumerable?R(e,t,n):(e[t]=n.value,e)};a?(F||(j.f=W,T.f=Q,G(B,"buffer"),G(B,"byteOffset"),G(B,"byteLength"),G(B,"length")),r({target:"Object",stat:!0,forced:!F},{getOwnPropertyDescriptor:W,defineProperty:Q}),e.exports=function(e,t,n){var a=e.match(/\d+$/)[0]/8,s=e+(n?"Clamped":"")+"Array",c="get"+e,l="set"+e,v=i[s],m=v,g=m&&m.prototype,T={},j=function(e,t){R(e,t,{get:function(){return function(e,t){var n=O(e);return n.view[c](t*a+n.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,r){var i=O(e);n&&(r=(r=C(r))<0?0:r>255?255:255&r),i.view[l](t*a+i.byteOffset,r,!0)}(this,t,e)},enumerable:!0})};F?o&&(m=t((function(e,t,n,r){return u(e,m,s),I(y(t)?V(t)?void 0!==r?new v(t,h(n,a),r):void 0!==n?new v(t,h(n,a)):new v(t):z(t)?J(m,t):S.call(m,t):new v(d(t)),e,m)})),_&&_(m,D),x(w(v),(function(e){e in m||f(m,e,v[e])})),m.prototype=g):(m=t((function(e,t,n,r){u(e,m,s);var i,o,c,l=0,f=0;if(y(t)){if(!V(t))return z(t)?J(m,t):S.call(m,t);i=t,f=h(n,a);var v=t.byteLength;if(void 0===r){if(v%a)throw P("Wrong length");if((o=v-f)<0)throw P("Wrong length")}else if((o=p(r)*a)+f>v)throw P("Wrong length");c=o/a}else c=d(t),i=new L(o=c*a);for(A(e,{buffer:i,byteOffset:f,byteLength:o,length:c,view:new q(i)});l<c;)j(e,l++)})),_&&_(m,D),g=m.prototype=b(B)),g.constructor!==m&&f(g,"constructor",m),M&&f(g,M,s),T[s]=m,r({global:!0,forced:m!=v,sham:!F},T),"BYTES_PER_ELEMENT"in m||f(m,"BYTES_PER_ELEMENT",a),"BYTES_PER_ELEMENT"in g||f(g,"BYTES_PER_ELEMENT",a),k(s)}):e.exports=function(){}},function(e,t,n){var r=n(307);e.exports=function(e,t){var n=r(e);if(n%t)throw RangeError("Wrong offset");return n}},function(e,t,n){"use strict";var r=n(84),i=n(96),a=n(29),o=n(106),s=n(80),c=Math.min,u=[].lastIndexOf,l=!!u&&1/[1].lastIndexOf(1,-0)<0,f=o("lastIndexOf"),p=s("indexOf",{ACCESSORS:!0,1:0}),d=l||!f||!p;e.exports=d?function(e){if(l)return u.apply(this,arguments)||0;var t=r(this),n=a(t.length),o=n-1;for(arguments.length>1&&(o=c(o,i(arguments[1]))),o<0&&(o=n+o);o>=0;o--)if(o in t&&t[o]===e)return o||0;return-1}:u},function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(e,t,n){var r=n(11),i=n(18),a=n(94),o=i("iterator");e.exports=!r((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n="";return e.pathname="c%20d",t.forEach((function(e,r){t.delete("b"),n+=r+e})),a&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[o]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host}))},function(e,t,n){"use strict";var r=n(32),i=n(11),a=n(129),o=n(177),s=n(144),c=n(46),u=n(122),l=Object.assign,f=Object.defineProperty;e.exports=!l||i((function(){if(r&&1!==l({b:1},l(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol();return e[n]=7,"abcdefghijklmnopqrst".split("").forEach((function(e){t[e]=e})),7!=l({},e)[n]||"abcdefghijklmnopqrst"!=a(l({},t)).join("")}))?function(e,t){for(var n=c(e),i=arguments.length,l=1,f=o.f,p=s.f;i>l;)for(var d,h=u(arguments[l++]),v=f?a(h).concat(f(h)):a(h),m=v.length,g=0;m>g;)d=v[g++],r&&!p.call(h,d)||(n[d]=h[d]);return n}:l},function(e,t,n){"use strict";var r=n(108),i=n(46),a=n(230),o=n(188),s=n(29),c=n(147),u=n(132);e.exports=function(e){var t,n,l,f,p,d,h=i(e),v="function"==typeof this?this:Array,m=arguments.length,g=m>1?arguments[1]:void 0,y=void 0!==g,b=u(h),_=0;if(y&&(g=r(g,m>2?arguments[2]:void 0,2)),null==b||v==Array&&o(b))for(n=new v(t=s(h.length));t>_;_++)d=y?g(h[_],_):h[_],c(n,_,d);else for(p=(f=b.call(h)).next,n=new v;!(l=p.call(f)).done;_++)d=y?a(f,g,[l.value,_],!0):l.value,c(n,_,d);return n.length=_,n}},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}},function(e,t){e.exports=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(e,t,n){n(115)("toStringTag")},function(e,t,n){var r=n(12);n(88)(r.JSON,"JSON",!0)},function(e,t,n){n(88)(Math,"Math",!0)},function(e,t,n){var r=n(7),i=n(12),a=n(232),o=n(87),s=i.process,c="process"==o(s);r({global:!0,enumerable:!0,noTargetGet:!0},{queueMicrotask:function(e){var t=c&&s.domain;a(t?t.bind(e):e)}})},function(e,t,n){(function(t){n(157);var r=function(e,t,n,r){if(this.bucketSize=e,this.tokensPerInterval=t,"string"==typeof n)switch(n){case"sec":case"second":this.interval=1e3;break;case"min":case"minute":this.interval=6e4;break;case"hr":case"hour":this.interval=36e5;break;case"day":this.interval=864e5;break;default:throw new Error("Invaid interval "+n)}else this.interval=n;this.parentBucket=r,this.content=0,this.lastDrip=+new Date};r.prototype={bucketSize:1,tokensPerInterval:1,interval:1e3,parentBucket:null,content:0,lastDrip:0,removeTokens:function(e,n){var r=this;return this.bucketSize?e>this.bucketSize?(t.nextTick(n.bind(null,"Requested tokens "+e+" exceeds bucket size "+this.bucketSize,null)),!1):(this.drip(),e>this.content?i():this.parentBucket?this.parentBucket.removeTokens(e,(function(t,a){return t?n(t,null):e>r.content?i():(r.content-=e,void n(null,Math.min(a,r.content)))})):(this.content-=e,t.nextTick(n.bind(null,null,this.content)),!0)):(t.nextTick(n.bind(null,null,e,Number.POSITIVE_INFINITY)),!0);function i(){var t=Math.ceil((e-r.content)*(r.interval/r.tokensPerInterval));return setTimeout((function(){r.removeTokens(e,n)}),t),!1}},tryRemoveTokens:function(e){return!this.bucketSize||!(e>this.bucketSize)&&(this.drip(),!(e>this.content)&&(!(this.parentBucket&&!this.parentBucket.tryRemoveTokens(e))&&(this.content-=e,!0)))},drip:function(){if(this.tokensPerInterval){var e=+new Date,t=Math.max(e-this.lastDrip,0);this.lastDrip=e;var n=t*(this.tokensPerInterval/this.interval);this.content=Math.min(this.content+n,this.bucketSize)}else this.content=this.bucketSize}},e.exports=r}).call(this,n(100))},function(e,t,n){"use strict";var r=n(7),i=n(12),a=n(126),o=n(45),s=n(196),c=n(187),u=n(109),l=n(31),f=n(11),p=n(151),d=n(88),h=n(156);e.exports=function(e,t,n){var v=-1!==e.indexOf("Map"),m=-1!==e.indexOf("Weak"),g=v?"set":"add",y=i[e],b=y&&y.prototype,_=y,w={},S=function(e){var t=b[e];o(b,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(m&&!l(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return m&&!l(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(m&&!l(e))&&t.call(this,0===e?0:e)}:function(e,n){return t.call(this,0===e?0:e,n),this})};if(a(e,"function"!=typeof y||!(m||b.forEach&&!f((function(){(new y).entries().next()})))))_=n.getConstructor(t,e,v,g),s.REQUIRED=!0;else if(a(e,!0)){var x=new _,k=x[g](m?{}:-0,1)!=x,T=f((function(){x.has(1)})),j=p((function(e){new y(e)})),E=!m&&f((function(){for(var e=new y,t=5;t--;)e[g](t,t);return!e.has(-0)}));j||((_=t((function(t,n){u(t,_,e);var r=h(new y,t,_);return null!=n&&c(n,r[g],r,v),r}))).prototype=b,b.constructor=_),(T||E)&&(S("delete"),S("has"),v&&S("get")),(E||k)&&S(g),m&&b.clear&&delete b.clear}return w[e]=_,r({global:!0,forced:_!=y},w),d(_,e),m||n.setStrong(_,e,v),_}},function(e,t,n){var r=n(11);e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},function(e,t,n){"use strict";var r=n(35).f,i=n(107),a=n(150),o=n(108),s=n(109),c=n(187),u=n(183),l=n(117),f=n(32),p=n(196).fastKey,d=n(86),h=d.set,v=d.getterFor;e.exports={getConstructor:function(e,t,n,u){var l=e((function(e,r){s(e,l,t),h(e,{type:t,index:i(null),first:void 0,last:void 0,size:0}),f||(e.size=0),null!=r&&c(r,e[u],e,n)})),d=v(t),m=function(e,t,n){var r,i,a=d(e),o=g(e,t);return o?o.value=n:(a.last=o={index:i=p(t,!0),key:t,value:n,previous:r=a.last,next:void 0,removed:!1},a.first||(a.first=o),r&&(r.next=o),f?a.size++:e.size++,"F"!==i&&(a.index[i]=o)),e},g=function(e,t){var n,r=d(e),i=p(t);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key==t)return n};return a(l.prototype,{clear:function(){for(var e=d(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,f?e.size=0:this.size=0},delete:function(e){var t=d(this),n=g(this,e);if(n){var r=n.next,i=n.previous;delete t.index[n.index],n.removed=!0,i&&(i.next=r),r&&(r.previous=i),t.first==n&&(t.first=r),t.last==n&&(t.last=i),f?t.size--:this.size--}return!!n},forEach:function(e){for(var t,n=d(this),r=o(e,arguments.length>1?arguments[1]:void 0,3);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!g(this,e)}}),a(l.prototype,n?{get:function(e){var t=g(this,e);return t&&t.value},set:function(e,t){return m(this,0===e?0:e,t)}}:{add:function(e){return m(this,e=0===e?0:e,e)}}),f&&r(l.prototype,"size",{get:function(){return d(this).size}}),l},setStrong:function(e,t,n){var r=t+" Iterator",i=v(t),a=v(r);u(e,t,(function(e,t){h(this,{type:r,target:e,state:i(e),kind:t,last:void 0})}),(function(){for(var e=a(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),l(t)}}},function(e,t,n){var r=n(32),i=n(129),a=n(84),o=n(144).f,s=function(e){return function(t){for(var n,s=a(t),c=i(s),u=c.length,l=0,f=[];u>l;)n=c[l++],r&&!o.call(s,n)||f.push(e?[n,s[n]]:s[n]);return f}};e.exports={entries:s(!0),values:s(!1)}},function(e,t,n){"use strict";var r,i=n(7),a=n(93).f,o=n(29),s=n(193),c=n(85),u=n(194),l=n(94),f="".endsWith,p=Math.min,d=u("endsWith");i({target:"String",proto:!0,forced:!!(l||d||(r=a(String.prototype,"endsWith"),!r||r.writable))&&!d},{endsWith:function(e){var t=String(c(this));s(e);var n=arguments.length>1?arguments[1]:void 0,r=o(t.length),i=void 0===n?r:p(o(n),r),a=String(e);return f?f.call(t,a,i):t.slice(i-a.length,i)===a}})},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},function(e,t){(function(t){e.exports=t}).call(this,{})},function(e,t,n){"use strict";(function(t,r){n(10),n(9),n(33),n(20),n(81),n(135),n(5),n(74),n(48),n(49),n(50),n(51),n(52),n(53),n(54),n(55),n(56),n(57),n(58),n(59),n(60),n(61),n(62),n(63),n(64),n(65),n(66),n(67),n(68),n(69),n(70);var i=n(162);e.exports=b;var a,o=n(339);b.ReadableState=y;n(42).EventEmitter;var s=function(e,t){return e.listeners(t).length},c=n(261),u=n(163).Buffer,l=t.Uint8Array||function(){};var f=Object.create(n(138));f.inherits=n(139);var p=n(340),d=void 0;d=p&&p.debuglog?p.debuglog("stream"):function(){};var h,v=n(341),m=n(262);f.inherits(b,c);var g=["error","close","destroy","pause","resume"];function y(e,t){e=e||{};var r=t instanceof(a=a||n(119));this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var i=e.highWaterMark,o=e.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(o||0===o)?o:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new v,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(h||(h=n(264).StringDecoder),this.decoder=new h(e.encoding),this.encoding=e.encoding)}function b(e){if(a=a||n(119),!(this instanceof b))return new b(e);this._readableState=new y(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),c.call(this)}function _(e,t,n,r,i){var a,o=e._readableState;null===t?(o.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,x(e)}(e,o)):(i||(a=function(e,t){var n;r=t,u.isBuffer(r)||r instanceof l||"string"==typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk"));var r;return n}(o,t)),a?e.emit("error",a):o.objectMode||t&&t.length>0?("string"==typeof t||o.objectMode||Object.getPrototypeOf(t)===u.prototype||(t=function(e){return u.from(e)}(t)),r?o.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):w(e,o,t,!0):o.ended?e.emit("error",new Error("stream.push() after EOF")):(o.reading=!1,o.decoder&&!n?(t=o.decoder.write(t),o.objectMode||0!==t.length?w(e,o,t,!1):T(e,o)):w(e,o,t,!1))):r||(o.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(o)}function w(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&x(e)),T(e,t)}Object.defineProperty(b.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),b.prototype.destroy=m.destroy,b.prototype._undestroy=m.undestroy,b.prototype._destroy=function(e,t){this.push(null),t(e)},b.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof e&&((t=t||r.defaultEncoding)!==r.encoding&&(e=u.from(e,t),t=""),n=!0),_(this,e,t,!1,n)},b.prototype.unshift=function(e){return _(this,e,null,!0,!1)},b.prototype.isPaused=function(){return!1===this._readableState.flowing},b.prototype.setEncoding=function(e){return h||(h=n(264).StringDecoder),this._readableState.decoder=new h(e),this._readableState.encoding=e,this};function S(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>=8388608?e=8388608:(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 x(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(d("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?i.nextTick(k,e):k(e))}function k(e){d("emit readable"),e.emit("readable"),O(e)}function T(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(j,e,t))}function j(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(d("maybeReadMore read 0"),e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}function E(e){d("readable nexttick read 0"),e.read(0)}function I(e,t){t.reading||(d("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),O(e),t.flowing&&!t.reading&&e.read(0)}function O(e){var t=e._readableState;for(d("flow",t.flowing);t.flowing&&null!==e.read(););}function A(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=function(e,t,n){var r;e<t.head.data.length?(r=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):r=e===t.head.data.length?t.shift():n?function(e,t){var n=t.head,r=1,i=n.data;e-=i.length;for(;n=n.next;){var a=n.data,o=e>a.length?a.length:e;if(o===a.length?i+=a:i+=a.slice(0,e),0===(e-=o)){o===a.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=a.slice(o));break}++r}return t.length-=r,i}(e,t):function(e,t){var n=u.allocUnsafe(e),r=t.head,i=1;r.data.copy(n),e-=r.data.length;for(;r=r.next;){var a=r.data,o=e>a.length?a.length:e;if(a.copy(n,n.length-e,0,o),0===(e-=o)){o===a.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=a.slice(o));break}++i}return t.length-=i,n}(e,t);return r}(e,t.buffer,t.decoder),n);var n}function R(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,i.nextTick(N,t,e))}function N(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function C(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}b.prototype.read=function(e){d("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return d("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?R(this):x(this),null;if(0===(e=S(e,t))&&t.ended)return 0===t.length&&R(this),null;var r,i=t.needReadable;return d("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&d("length less than watermark",i=!0),t.ended||t.reading?d("reading or ended",i=!1):i&&(d("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=S(n,t))),null===(r=e>0?A(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&R(this)),null!==r&&this.emit("data",r),r},b.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},b.prototype.pipe=function(e,t){var n=this,a=this._readableState;switch(a.pipesCount){case 0:a.pipes=e;break;case 1:a.pipes=[a.pipes,e];break;default:a.pipes.push(e)}a.pipesCount+=1,d("pipe count=%d opts=%j",a.pipesCount,t);var c=(!t||!1!==t.end)&&e!==r.stdout&&e!==r.stderr?l:b;function u(t,r){d("onunpipe"),t===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,d("cleanup"),e.removeListener("close",g),e.removeListener("finish",y),e.removeListener("drain",f),e.removeListener("error",m),e.removeListener("unpipe",u),n.removeListener("end",l),n.removeListener("end",b),n.removeListener("data",v),p=!0,!a.awaitDrain||e._writableState&&!e._writableState.needDrain||f())}function l(){d("onend"),e.end()}a.endEmitted?i.nextTick(c):n.once("end",c),e.on("unpipe",u);var f=function(e){return function(){var t=e._readableState;d("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,O(e))}}(n);e.on("drain",f);var p=!1;var h=!1;function v(t){d("ondata"),h=!1,!1!==e.write(t)||h||((1===a.pipesCount&&a.pipes===e||a.pipesCount>1&&-1!==C(a.pipes,e))&&!p&&(d("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,h=!0),n.pause())}function m(t){d("onerror",t),b(),e.removeListener("error",m),0===s(e,"error")&&e.emit("error",t)}function g(){e.removeListener("finish",y),b()}function y(){d("onfinish"),e.removeListener("close",g),b()}function b(){d("unpipe"),n.unpipe(e)}return n.on("data",v),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?o(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",m),e.once("close",g),e.once("finish",y),e.emit("pipe",n),a.flowing||(d("pipe resume"),n.resume()),e},b.prototype.unpipe=function(e){var t=this._readableState,n={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,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a<i;a++)r[a].emit("unpipe",this,n);return this}var o=C(t.pipes,e);return-1===o||(t.pipes.splice(o,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n)),this},b.prototype.on=function(e,t){var n=c.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&x(this):i.nextTick(E,this))}return n},b.prototype.addListener=b.prototype.on,b.prototype.resume=function(){var e=this._readableState;return e.flowing||(d("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(I,e,t))}(this,e)),this},b.prototype.pause=function(){return d("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(d("pause"),this._readableState.flowing=!1,this.emit("pause")),this},b.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on("end",(function(){if(d("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){(d("wrapped data"),n.decoder&&(i=n.decoder.write(i)),n.objectMode&&null==i)||(n.objectMode||i&&i.length)&&(t.push(i)||(r=!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 a=0;a<g.length;a++)e.on(g[a],this.emit.bind(this,g[a]));return this._read=function(t){d("wrapped _read",t),r&&(r=!1,e.resume())},this},Object.defineProperty(b.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),b._fromList=A}).call(this,n(79),n(100))},function(e,t,n){e.exports=n(42).EventEmitter},function(e,t,n){"use strict";var r=n(162);function i(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var n=this,a=this._readableState&&this._readableState.destroyed,o=this._writableState&&this._writableState.destroyed;return a||o?(t?t(e):!e||this._writableState&&this._writableState.errorEmitted||r.nextTick(i,this,e),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?(r.nextTick(i,n,e),n._writableState&&(n._writableState.errorEmitted=!0)):t&&t(e)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},function(e,t,n){"use strict";(function(t,r,i){n(47),n(73),n(345),n(23),n(9),n(20),n(346),n(5),n(74),n(48),n(49),n(50),n(51),n(52),n(53),n(54),n(55),n(56),n(57),n(58),n(59),n(60),n(61),n(62),n(63),n(64),n(65),n(66),n(67),n(68),n(69),n(70),n(161);var a=n(162);function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;e.entry=null;for(;r;){var i=r.callback;t.pendingcb--,i(n),r=r.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}e.exports=y;var s,c=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?r:a.nextTick;y.WritableState=g;var u=Object.create(n(138));u.inherits=n(139);var l={deprecate:n(347)},f=n(261),p=n(163).Buffer,d=i.Uint8Array||function(){};var h,v=n(262);function m(){}function g(e,t){s=s||n(119),e=e||{};var r=t instanceof s;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var i=e.highWaterMark,u=e.writableHighWaterMark,l=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(u||0===u)?u:l,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var f=!1===e.decodeStrings;this.decodeStrings=!f,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 n=e._writableState,r=n.sync,i=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,i){--t.pendingcb,n?(a.nextTick(i,r),a.nextTick(k,e,t),e._writableState.errorEmitted=!0,e.emit("error",r)):(i(r),e._writableState.errorEmitted=!0,e.emit("error",r),k(e,t))}(e,n,r,t,i);else{var o=S(n);o||n.corked||n.bufferProcessing||!n.bufferedRequest||w(e,n),r?c(_,e,n,o,i):_(e,n,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.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function y(e){if(s=s||n(119),!(h.call(y,this)||this instanceof s))return new y(e);this._writableState=new g(e,this),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)),f.call(this)}function b(e,t,n,r,i,a,o){t.writelen=r,t.writecb=o,t.writing=!0,t.sync=!0,n?e._writev(i,t.onwrite):e._write(i,a,t.onwrite),t.sync=!1}function _(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),k(e,t)}function w(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,i=new Array(r),a=t.corkedRequestsFree;a.entry=n;for(var s=0,c=!0;n;)i[s]=n,n.isBuf||(c=!1),n=n.next,s+=1;i.allBuffers=c,b(e,t,!0,t.length,i,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new o(t),t.bufferedRequestCount=0}else{for(;n;){var u=n.chunk,l=n.encoding,f=n.callback;if(b(e,t,!1,t.objectMode?1:u.length,u,l,f),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function S(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function x(e,t){e._final((function(n){t.pendingcb--,n&&e.emit("error",n),t.prefinished=!0,e.emit("prefinish"),k(e,t)}))}function k(e,t){var n=S(t);return n&&(!function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,a.nextTick(x,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),n}u.inherits(y,f),g.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(g.prototype,"buffer",{get:l.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]?(h=Function.prototype[Symbol.hasInstance],Object.defineProperty(y,Symbol.hasInstance,{value:function(e){return!!h.call(this,e)||this===y&&(e&&e._writableState instanceof g)}})):h=function(e){return e instanceof this},y.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},y.prototype.write=function(e,t,n){var r,i=this._writableState,o=!1,s=!i.objectMode&&(r=e,p.isBuffer(r)||r instanceof d);return s&&!p.isBuffer(e)&&(e=function(e){return p.from(e)}(e)),"function"==typeof t&&(n=t,t=null),s?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof n&&(n=m),i.ended?function(e,t){var n=new Error("write after end");e.emit("error",n),a.nextTick(t,n)}(this,n):(s||function(e,t,n,r){var i=!0,o=!1;return null===n?o=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||t.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(e.emit("error",o),a.nextTick(r,o),i=!1),i}(this,i,e,n))&&(i.pendingcb++,o=function(e,t,n,r,i,a){if(!n){var o=function(e,t,n){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=p.from(t,n));return t}(t,r,i);r!==o&&(n=!0,i="buffer",r=o)}var s=t.objectMode?1:r.length;t.length+=s;var c=t.length<t.highWaterMark;c||(t.needDrain=!0);if(t.writing||t.corked){var u=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:a,next:null},u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else b(e,t,!1,s,r,i,a);return c}(this,i,s,e,t,n)),o},y.prototype.cork=function(){this._writableState.corked++},y.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||w(this,e))},y.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 TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(y.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),y.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},y.prototype._writev=null,y.prototype.end=function(e,t,n){var r=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||function(e,t,n){t.ending=!0,k(e,t),n&&(t.finished?a.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,r,n)},Object.defineProperty(y.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),y.prototype.destroy=v.destroy,y.prototype._undestroy=v.undestroy,y.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,n(100),n(343).setImmediate,n(79))},function(e,t,n){"use strict";n(20),n(5),n(25);var r=n(163).Buffer,i=r.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 a(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&&(r.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=c,this.end=u,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=l,this.end=f,t=3;break;default:return this.write=p,void(this.end=d)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function o(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){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!==n?n: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 c(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}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 n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function l(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?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-n))}function f(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function p(e){return e.toString(this.encoding)}function d(e){return e&&e.length?this.write(e):""}t.StringDecoder=a,a.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||""},a.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},a.prototype.text=function(e,t){var n=function(e,t,n){var r=t.length-1;if(r<n)return 0;var i=o(t[r]);if(i>=0)return i>0&&(e.lastNeed=i-1),i;if(--r<n||-2===i)return 0;if((i=o(t[r]))>=0)return i>0&&(e.lastNeed=i-2),i;if(--r<n||-2===i)return 0;if((i=o(t[r]))>=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=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},a.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}},function(e,t,n){"use strict";e.exports=o;var r=n(119),i=Object.create(n(138));function a(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function o(e){if(!(this instanceof o))return new o(e);r.call(this,e),this._transformState={afterTransform:a.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",s)}function s(){var e=this;"function"==typeof this._flush?this._flush((function(t,n){c(e,t,n)})):c(this,null,null)}function c(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}i.inherits=n(139),i.inherits(o,r),o.prototype.push=function(e,t){return this._transformState.needTransform=!1,r.prototype.push.call(this,e,t)},o.prototype._transform=function(e,t,n){throw new Error("_transform() is not implemented")},o.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},o.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},o.prototype._destroy=function(e,t){var n=this;r.prototype._destroy.call(this,e,(function(e){t(e),n.emit("close")}))}},function(e,t,n){var r=n(7),i=n(11),a=n(84),o=n(93).f,s=n(32),c=i((function(){o(1)}));r({target:"Object",stat:!0,forced:!s||c,sham:!s},{getOwnPropertyDescriptor:function(e,t){return o(a(e),t)}})},function(e,t,n){n(9),n(5),n(74),n(48),n(49),n(50),n(51),n(52),n(53),n(54),n(55),n(56),n(57),n(58),n(59),n(60),n(61),n(62),n(63),n(64),n(65),n(66),n(67),n(68),n(69),n(70);var r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(r){var i=new Uint8Array(16);e.exports=function(){return r(i),i}}else{var a=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),a[t]=e>>>((3&t)<<3)&255;return a}}},function(e,t,n){n(33),n(5),n(25);for(var r=[],i=0;i<256;++i)r[i]=(i+256).toString(16).substr(1);e.exports=function(e,t){var n=t||0,i=r;return[i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]]].join("")}},function(e,t,n){"use strict";var r=n(7),i=n(94),a=n(229),o=n(11),s=n(95),c=n(110),u=n(233),l=n(45);r({target:"Promise",proto:!0,real:!0,forced:!!a&&o((function(){a.prototype.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=c(this,s("Promise")),n="function"==typeof e;return this.then(n?function(n){return u(t,e()).then((function(){return n}))}:e,n?function(n){return u(t,e()).then((function(){throw n}))}:e)}}),i||"function"!=typeof a||a.prototype.finally||l(a.prototype,"finally",s("Promise").prototype.finally)},function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},function(e,t,n){"use strict";n(19),n(23),n(33),n(20),n(5),n(15),n(25),n(38),n(27);var r=n(41);function i(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var a;if(n)a=n(t);else if(r.isURLSearchParams(t))a=t.toString();else{var o=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),o.push(i(t)+"="+i(e))})))})),a=o.join("&")}if(a){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}},function(e,t,n){"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},function(e,t,n){"use strict";(function(t){n(19),n(23),n(257),n(27);var r=n(13),i=n(41);e.exports=function(e,n){n=n||new FormData;var a=[];function o(e){return null===e?"":i.isDate(e)?e.toISOString():i.isArrayBuffer(e)||i.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):t.from(e):e}return function e(t,s){if(i.isPlainObject(t)||i.isArray(t)){if(-1!==a.indexOf(t))throw Error("Circular reference detected in "+s);a.push(t),i.forEach(t,(function(t,a){if(!i.isUndefined(t)){var c,u=s?s+"."+a:a;if(t&&!s&&"object"===r(t))if(i.endsWith(a,"{}"))t=JSON.stringify(t);else if(i.endsWith(a,"[]")&&(c=i.toArray(t)))return void c.forEach((function(e){!i.isUndefined(e)&&n.append(u,o(e))}));e(t,u)}})),a.pop()}else n.append(s,o(t))}(e),n}}).call(this,n(111).Buffer)},function(e,t,n){"use strict";n(19),n(23),n(5),n(21),n(27);var r=n(41),i=n(357),a=n(358),o=n(271),s=n(275),c=n(362),u=n(363),l=n(272),f=n(120),p=n(164),d=n(364);e.exports=function(e){return new Promise((function(t,n){var h,v=e.data,m=e.headers,g=e.responseType;function y(){e.cancelToken&&e.cancelToken.unsubscribe(h),e.signal&&e.signal.removeEventListener("abort",h)}r.isFormData(v)&&r.isStandardBrowserEnv()&&delete m["Content-Type"];var b=new XMLHttpRequest;if(e.auth){var _=e.auth.username||"",w=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";m.Authorization="Basic "+btoa(_+":"+w)}var S=s(e.baseURL,e.url);function x(){if(b){var r="getAllResponseHeaders"in b?c(b.getAllResponseHeaders()):null,a={data:g&&"text"!==g&&"json"!==g?b.response:b.responseText,status:b.status,statusText:b.statusText,headers:r,config:e,request:b};i((function(e){t(e),y()}),(function(e){n(e),y()}),a),b=null}}if(b.open(e.method.toUpperCase(),o(S,e.params,e.paramsSerializer),!0),b.timeout=e.timeout,"onloadend"in b?b.onloadend=x:b.onreadystatechange=function(){b&&4===b.readyState&&(0!==b.status||b.responseURL&&0===b.responseURL.indexOf("file:"))&&setTimeout(x)},b.onabort=function(){b&&(n(new f("Request aborted",f.ECONNABORTED,e,b)),b=null)},b.onerror=function(){n(new f("Network Error",f.ERR_NETWORK,e,b,b)),b=null},b.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||l;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new f(t,r.clarifyTimeoutError?f.ETIMEDOUT:f.ECONNABORTED,e,b)),b=null},r.isStandardBrowserEnv()){var k=(e.withCredentials||u(S))&&e.xsrfCookieName?a.read(e.xsrfCookieName):void 0;k&&(m[e.xsrfHeaderName]=k)}"setRequestHeader"in b&&r.forEach(m,(function(e,t){void 0===v&&"content-type"===t.toLowerCase()?delete m[t]:b.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(b.withCredentials=!!e.withCredentials),g&&"json"!==g&&(b.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&b.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&b.upload&&b.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(h=function(e){b&&(n(!e||e&&e.type?new p:e),b.abort(),b=null)},e.cancelToken&&e.cancelToken.subscribe(h),e.signal&&(e.signal.aborted?h():e.signal.addEventListener("abort",h))),v||(v=null);var T=d(S);T&&-1===["http","https","file"].indexOf(T)?n(new f("Unsupported protocol "+T+":",f.ERR_BAD_REQUEST,e)):b.send(v)}))}},function(e,t,n){"use strict";var r=n(360),i=n(361);e.exports=function(e,t){return e&&!r(t)?i(e,t):t}},function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,n){"use strict";n(10),n(19),n(20),n(71),n(27);var r=n(41);e.exports=function(e,t){t=t||{};var n={};function i(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function a(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:i(void 0,e[n]):i(e[n],t[n])}function o(e){if(!r.isUndefined(t[e]))return i(void 0,t[e])}function s(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:i(void 0,e[n]):i(void 0,t[n])}function c(n){return n in t?i(e[n],t[n]):n in e?i(void 0,e[n]):void 0}var u={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:c};return r.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=u[e]||a,i=t(e);r.isUndefined(i)&&t!==c||(n[e]=i)})),n}},function(e,t){e.exports={version:"0.27.2"}},function(e,t,n){"use strict";n(5),n(21),Object.defineProperty(t,"__esModule",{value:!0});var r=n(373),i=function(){function e(e){this.options=e,this.attempt=0}return e.prototype.apply=function(){var e=this;return new Promise((function(t){return setTimeout(t,e.jitteredDelay)}))},e.prototype.setAttemptNumber=function(e){this.attempt=e},Object.defineProperty(e.prototype,"jitteredDelay",{get:function(){return r.JitterFactory(this.options)(this.delay)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"delay",{get:function(){var e=this.options.startingDelay,t=this.options.timeMultiple,n=this.numOfDelayedAttempts,r=e*Math.pow(t,n);return Math.min(r,this.options.maxDelay)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"numOfDelayedAttempts",{get:function(){return this.attempt},enumerable:!0,configurable:!0}),e}();t.Delay=i},function(e,t,n){n(238)("Uint32",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},function(e,t,n){var r=n(7),i=n(244);r({target:"Array",stat:!0,forced:!n(151)((function(e){Array.from(e)}))},{from:i})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.define=t.XMLElement=t.Translator=t.Registry=t.StreamParser=t.parse=t.Parser=void 0;var r=n(1),i=r.__importDefault(n(166));t.XMLElement=i.default;var a=r.__importDefault(n(390));t.Registry=a.default;var o=r.__importDefault(n(283));t.Translator=o.default,r.__exportStar(n(167),t),r.__exportStar(n(202),t),r.__exportStar(n(392),t);var s=n(203);Object.defineProperty(t,"Parser",{enumerable:!0,get:function(){return r.__importDefault(s).default}}),Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return s.parse}});var c=n(393);Object.defineProperty(t,"StreamParser",{enumerable:!0,get:function(){return r.__importDefault(c).default}}),t.define=function(e){return function(t){t.define(e)}}},function(e,t,n){"use strict";n(10),n(44),n(9),n(90),n(71),n(5),n(15),n(91),n(22),n(39),n(24);var r=n(6),i=n(14),a=n(4),o=n(2),s=n(3);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}Object.defineProperty(t,"__esModule",{value:!0});var p=n(202),d=function(){function e(){o(this,e),this.parents=new Set,this.placeholder=!1,this.typeField="",this.versionField="",this.defaultType="",this.defaultVersion="",this.languageField="lang",this.typeValues=new Map,this.typeOrders=new Map,this.importers=new Map,this.exporters=new Map,this.children=new Map,this.childrenIndex=new Map,this.implicitChildren=new Set,this.contexts=new Map}return s(e,[{key:"addChild",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,o={multiple:n||!1,name:e,selector:r,translator:t},s=this.children.get(e);if(s){var c=s.translator;s.multiple=n,r&&s.selector&&r!==s.selector&&(s.selector=void 0);var u,f=l(t.importers);try{for(f.s();!(u=f.n()).done;){var p=a(u.value,2),d=p[0],h=p[1],v=(c.typeValues.get(d)||"").split("__v__"),m=a(v,2),g=m[0],y=m[1];c.updateDefinition({contexts:t.contexts,element:h.element,exporterOrdering:new Map,exporters:new Map,importerOrdering:h.fieldOrders,importers:h.fields,namespace:h.namespace,optionalNamespaces:new Map,type:g,version:y}),this.implicitChildren.has(d)||this.childrenIndex.set(d,e)}}catch(e){f.e(e)}finally{f.f()}var b,_=l(t.exporters);try{for(_.s();!(b=_.n()).done;){var w=a(b.value,2),S=w[0],x=w[1],k=S.split("__v__"),T=a(k,2),j=T[0],E=T[1];c.updateDefinition({contexts:t.contexts,element:x.element,exporterOrdering:x.fieldOrders,exporters:x.fields,importerOrdering:new Map,importers:new Map,namespace:x.namespace,optionalNamespaces:x.optionalNamespaces,type:j,version:E})}}catch(e){_.e(e)}finally{_.f()}}else{o.translator.parents.add(this),this.children.set(e,o);var I,O=l(t.importers);try{for(O.s();!(I=O.n()).done;){var A=a(I.value,1),R=A[0];this.implicitChildren.has(R)||this.childrenIndex.set(R,e)}}catch(e){O.e(e)}finally{O.f()}i&&this.implicitChildren.add(i)}}},{key:"addContext",value:function(e,t,n,r,i,a){t&&(e="".concat(e,"[").concat(t,"]"));var o=this.contexts.get(e);o||(o={typeField:"",versionField:"",typeValues:new Map}),a&&(o.impliedType=i),o.typeField=n||"",o.typeValues.set(r,i),this.contexts.set(e,o)}},{key:"getChild",value:function(e){var t=this.children.get(e);if(t)return t.translator}},{key:"getImportKey",value:function(e){return this.childrenIndex.get("{".concat(e.getNamespace(),"}").concat(e.getName()))}},{key:"updateDefinition",value:function(e){var t,n="{".concat(e.namespace,"}").concat(e.element),r=e.type||this.defaultType,i=e.version||this.defaultVersion,o=i?"".concat(r,"__v__").concat(i):r,s=this.importers.get(n)||{element:e.element,fieldOrders:new Map,fields:new Map,namespace:e.namespace},c=l(e.importers);try{for(c.s();!(t=c.n()).done;){var u=a(t.value,2),f=u[0],p=u[1];s.fields.set(f,p)}}catch(e){c.e(e)}finally{c.f()}var d,h=l(e.importerOrdering);try{for(h.s();!(d=h.n()).done;){var v=a(d.value,2),m=v[0],g=v[1];s.fieldOrders.set(m,g)}}catch(e){h.e(e)}finally{h.f()}this.importers.set(n,s);var y,b=this.exporters.get(o)||{element:e.element,fieldOrders:new Map,fields:new Map,namespace:e.namespace,optionalNamespaces:e.optionalNamespaces},_=l(e.exporters);try{for(_.s();!(y=_.n()).done;){var w=a(y.value,2),S=w[0],x=w[1];b.fields.set(S,x)}}catch(e){_.e(e)}finally{_.f()}var k,T=l(e.exporterOrdering);try{for(T.s();!(k=T.n()).done;){var j=a(k.value,2),E=j[0],I=j[1];b.fieldOrders.set(E,I)}}catch(e){T.e(e)}finally{T.f()}var O,A=l(e.optionalNamespaces);try{for(A.s();!(O=A.n()).done;){var R=a(O.value,2),N=R[0],C=R[1];b.optionalNamespaces.set(N,C)}}catch(e){A.e(e)}finally{A.f()}this.exporters.set(o,b);var P,L=l(e.contexts);try{for(L.s();!(P=L.n()).done;){var q=a(P.value,2),F=q[0],M=q[1],D=this.contexts.get(F)||{impliedType:void 0,typeField:M.typeField,versionField:M.versionField,typeValues:new Map};D.typeField||(D.typeField=M.typeField),D.versionField||(D.versionField=M.versionField),D.impliedType||(D.impliedType=M.impliedType);var B,U=l(M.typeValues);try{for(U.s();!(B=U.n()).done;){var z=a(B.value,2),J=z[0],G=z[1];D.typeValues.set(J,G)}}catch(e){U.e(e)}finally{U.f()}this.contexts.set(F,D)}}catch(e){L.e(e)}finally{L.f()}if(e.type)this.typeValues.set(n,o),e.typeOrder&&e.type&&this.typeOrders.set(e.type,e.typeOrder);else if(this.typeField&&!e.type){var V,H=l(this.importers);try{for(H.s();!(V=H.n()).done;){var W,Q=a(V.value,2)[1],K=l(e.importers);try{for(K.s();!(W=K.n()).done;){var Y=a(W.value,2),X=Y[0],$=Y[1];Q.fields.set(X,$)}}catch(e){K.e(e)}finally{K.f()}var Z,ee=l(e.importerOrdering);try{for(ee.s();!(Z=ee.n()).done;){var te=a(Z.value,2),ne=te[0],re=te[1];Q.fieldOrders.set(ne,re)}}catch(e){ee.e(e)}finally{ee.f()}}}catch(e){H.e(e)}finally{H.f()}var ie,ae=l(this.exporters);try{for(ae.s();!(ie=ae.n()).done;){var oe,se=a(ie.value,2)[1],ce=l(e.exporters);try{for(ce.s();!(oe=ce.n()).done;){var ue=a(oe.value,2),le=ue[0],fe=ue[1];se.fields.set(le,fe)}}catch(e){ce.e(e)}finally{ce.f()}var pe,de=l(e.exporterOrdering);try{for(de.s();!(pe=de.n()).done;){var he=a(pe.value,2),ve=he[0],me=he[1];se.fieldOrders.set(ve,me)}}catch(e){de.e(e)}finally{de.f()}}}catch(e){ae.e(e)}finally{ae.f()}}}},{key:"replaceWith",value:function(e){var t,n=l(this.children);try{for(n.s();!(t=n.n()).done;){var r=a(t.value,2),i=r[0],o=r[1];e.children.set(i,o)}}catch(e){n.e(e)}finally{n.f()}var s,c=l(this.childrenIndex);try{for(c.s();!(s=c.n()).done;){var u=a(s.value,2),f=u[0],p=u[1];e.childrenIndex.set(f,p)}}catch(e){c.e(e)}finally{c.f()}var d,h=l(this.contexts);try{for(h.s();!(d=h.n()).done;){var v=a(d.value,2),m=v[0],g=v[1];e.contexts.set(m,g)}}catch(e){h.e(e)}finally{h.f()}var y,b=l(this.implicitChildren);try{for(b.s();!(y=b.n()).done;){var _=y.value;e.implicitChildren.add(_)}}catch(e){b.e(e)}finally{b.f()}var w,S=l(this.parents);try{for(S.s();!(w=S.n()).done;){var x,k=l(w.value.children.values());try{for(k.s();!(x=k.n()).done;){var T=x.value;T.translator===this&&(T.translator=e)}}catch(e){k.e(e)}finally{k.f()}}}catch(e){S.e(e)}finally{S.f()}this.parents=new Set}},{key:"import",value:function(e,t){var n="{".concat(e.getNamespace(),"}").concat(e.getName()),i={},o=this.importers.get(n);if(o){var s,c=(this.typeValues.get(n)||"").split("__v__"),f=a(c,2),p=f[0],d=f[1],h=t.path||"";if(t.pathSelector&&(s=this.contexts.get("".concat(h,"[").concat(t.pathSelector,"]"))),s||(s=this.contexts.get(h)),s){if(!s.impliedType){var v=s.typeValues.get(n)||"";v&&(i[s.typeField]=v)}}else this.typeField&&p&&p!==this.defaultType&&(i[this.typeField]=p);this.versionField&&d&&d!==this.defaultVersion&&(i[this.versionField]=d);var m,g=u(u({},t),{},{data:i,importer:o,lang:(e.getAttribute("xml:lang")||t.lang||"").toLowerCase(),pathSelector:p,translator:this}),y=r(o.fieldOrders.entries()).sort((function(e,t){return e[1]>t[1]?-1:e[1]<t[1]?1:0})),b=y.filter((function(e){return e[1]>=0})),_=y.filter((function(e){return e[1]<0})),w=l(b);try{for(w.s();!(m=w.n()).done;){var S=a(m.value,1)[0],x=o.fields.get(S);g.path="".concat(t.path,".").concat(S);var k=x(e,g);null!=k&&(i[S]=k)}}catch(e){w.e(e)}finally{w.f()}var T,j=l(e.children);try{for(j.s();!(T=j.n()).done;){var E=T.value;if("string"!=typeof E){var I="{".concat(E.getNamespace(),"}").concat(E.getName()),O=this.childrenIndex.get(I);if(O){g.path="".concat(t.path,".").concat(O);var A=this.children.get(O),R=A.translator,N=A.multiple,C=A.selector;if(!C||C===p){var P=R.import(E,g);void 0!==P&&(N?(i[O]||(i[O]=[]),i[O].push(P)):i[O]?i[O]=R.resolveCollision(i[O],P):i[O]=P)}}}}}catch(e){j.e(e)}finally{j.f()}var L,q=l(_);try{for(q.s();!(L=q.n()).done;){var F=a(L.value,1)[0],M=o.fields.get(F);g.path="".concat(t.path,".").concat(F);var D=M(e,g);null!=D&&(i[F]=D)}}catch(e){q.e(e)}finally{q.f()}return i}}},{key:"export",value:function(e,t){if(e){var n,r=this.defaultType,i=this.defaultVersion,o=t.path||"";t.pathSelector&&(n=this.contexts.get("".concat(o,"[").concat(t.pathSelector,"]"))),n||(n=this.contexts.get(o)),n?r=n.impliedType||e[n.typeField]||this.defaultType:this.typeField&&(r=e[this.typeField]||this.defaultType),this.versionField&&(i=e[this.versionField]||this.defaultVersion);var s=i?"".concat(r,"__v__").concat(i):r,c=this.exporters.get(s);if(c){var f=p.createElement(c.namespace,c.element,t.namespace,t.element);t.element&&(f.parent=t.element);var d,h=l(c.optionalNamespaces);try{for(h.s();!(d=h.n()).done;){var v=a(d.value,2),m=v[0],g=v[1];f.addOptionalNamespace(m,g)}}catch(e){h.e(e)}finally{h.f()}var y=u(u({},t),{},{data:e,element:f,exporter:c,lang:(e[this.languageField]||t.lang||"").toLowerCase(),namespace:f.getDefaultNamespace(),pathSelector:r,translator:this}),b=c.fields.get(this.languageField);b&&b(f,e[this.languageField],t);var _=Object.keys(e);_.sort((function(e,t){return(c.fieldOrders.get(e)||1e5)-(c.fieldOrders.get(t)||1e5)}));for(var w=0,S=_;w<S.length;w++){var x=S[w];if(x!==this.languageField){var k=e[x],T=c.fields.get(x);if(T)T(f,k,y);else{var j=this.children.get(x);if(j){y.path="".concat(t.path?t.path+".":"").concat(x);var E=j.translator,I=j.multiple,O=j.selector;if(!O||O===r){var A,R=l(I?null!=k?k:[]:[k]);try{for(R.s();!(A=R.n()).done;){var N=A.value,C=E.export(N,y);C&&f.appendChild(C)}}catch(e){R.e(e)}finally{R.f()}}}}}}return f}}}},{key:"resolveCollision",value:function(e,t){return(this.typeOrders.get(e[this.typeField]||this.defaultType)||0)<=(this.typeOrders.get(t[this.typeField]||this.defaultType)||0)?e:t}}]),e}();t.default=d},function(e,t,n){"use strict";n(9),n(20),n(28),n(5),n(25),n(74),n(48),n(49),n(50),n(51),n(52),n(53),n(54),n(55),n(56),n(57),n(58),n(59),n(60),n(61),n(62),n(63),n(64),n(65),n(66),n(67),n(68),n(69),n(70);var r=n(0);n(40);var i=n(83),a=n(14),o=n(2),s=n(3),c=n(8),u=n(37),l=n(16);function f(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function v(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 n,r=l(e);if(t){var i=l(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return u(this,n)}}Object.defineProperty(t,"__esModule",{value:!0}),t.Receiver=t.Sender=void 0;var m=n(1),g=n(42),y=m.__importStar(n(204)),b=n(102),_=n(112),w=m.__importDefault(n(205)),S=n(169),x=n(206),k=function(e){c(n,e);var t=v(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return o(this,n),(e=t.call(this)).config=h({chunkSize:16384,hash:"sha-1"},r),e.file=void 0,e.channel=void 0,e.hash=y.createHash(e.config.hash),e}return s(n,[{key:"send",value:function(e,t){var n=this;if(!this.file||!this.channel){this.file=e,this.channel=t,this.channel.binaryType="arraybuffer";var r=new FileReader,i=0,a=!1,o=function(){if(!(a||i>=e.size)){a=!0;var t=e.slice(i,i+n.config.chunkSize);r.readAsArrayBuffer(t)}};t.bufferedAmountLowThreshold=8*this.config.chunkSize,t.onbufferedamountlow=function(){o()},r.addEventListener("load",(function(t){var r=t.target.result;a=!1,i+=r.byteLength,n.channel.send(r),n.hash.update(new Uint8Array(r)),n.emit("progress",i,e.size,r),i<e.size?n.channel.bufferedAmount<=n.channel.bufferedAmountLowThreshold&&o():(n.emit("progress",e.size,e.size,null),n.emit("sentFile",{algorithm:n.config.hash,name:e.name,size:e.size,value:n.hash.digest()}))})),o()}}}]),n}(g.EventEmitter);t.Sender=k;var T=function(e){c(n,e);var t=v(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return o(this,n),(e=t.call(this)).config=h({hash:"sha-1"},r),e.receiveBuffer=[],e.received=0,e.channel=void 0,e.hash=y.createHash(e.config.hash),e}return s(n,[{key:"receive",value:function(e,t){var n=this;this.metadata=e,this.channel=t,this.channel.binaryType="arraybuffer",this.channel.onmessage=function(e){var t=e.data.byteLength;n.received+=t,n.receiveBuffer.push(e.data),e.data&&n.hash.update(new Uint8Array(e.data)),n.emit("progress",n.received,n.metadata.size,e.data),n.received===n.metadata.size?(n.metadata.actualhash=n.hash.digest("hex"),n.emit("receivedFile",new Blob(n.receiveBuffer),n.metadata),n.receiveBuffer=[]):n.received>n.metadata.size&&(console.error("received more than expected, discarding..."),n.receiveBuffer=[])}}}]),n}(g.EventEmitter);t.Receiver=T;var j=function(e){c(l,e);var t,n,a,u=v(l);function l(e){var t;return o(this,l),(t=u.call(this,e)).sender=void 0,t.receiver=void 0,t.file=void 0,t}return s(l,[{key:"start",value:(a=i(r.mark((function e(t,n){var a=this;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=n||function(){},t&&"function"!=typeof t){e.next=3;break}throw new Error("File object required");case 3:return this.state="pending",this.role="initiator",this.file=t,this.sender=new k,this.sender.on("progress",(function(e,t){a._log("info","Send progress "+e+"/"+t)})),this.sender.on("sentFile",(function(e){a._log("info","Sent file",e.name),a.send(b.JingleAction.SessionInfo,{info:{creator:b.JingleSessionRole.Initiator,file:{hashes:[{algorithm:e.algorithm,value:e.value}]},infoType:b.JINGLE_INFO_CHECKSUM_5,name:a.contentName}}),a.parent.emit("sentFile",a,e)})),this.channel=this.pc.createDataChannel("filetransfer",{ordered:!0}),this.channel.onopen=function(){a.sender.send(a.file,a.channel)},e.prev=11,e.next=14,this.processLocal(b.JingleAction.SessionInitiate,i(r.mark((function e(){var n,i,o;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a.pc.createOffer({offerToReceiveAudio:!1,offerToReceiveVideo:!1});case 2:return n=e.sent,i=S.importFromSDP(n.sdp),o=x.convertIntermediateToRequest(i,a.role,a.transportType),a.contentName=o.contents[0].name,o.sid=a.sid,o.action=b.JingleAction.SessionInitiate,o.contents[0].application={applicationType:_.NS_JINGLE_FILE_TRANSFER_5,file:{date:t.lastModified?new Date(t.lastModified):void 0,hashesUsed:[{algorithm:"sha-1"}],name:t.name,size:t.size}},a.send("session-initiate",o),e.next=12,a.pc.setLocalDescription(n);case 12:case"end":return e.stop()}}),e)}))));case 14:n(),e.next=21;break;case 17:return e.prev=17,e.t0=e.catch(11),this._log("error","Could not create WebRTC offer",e.t0),e.abrupt("return",this.end("failed-application",!0));case 21:case"end":return e.stop()}}),e,this,[[11,17]])}))),function(e,t){return a.apply(this,arguments)})},{key:"accept",value:(n=i(r.mark((function e(t){var n=this;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._log("info","Accepted incoming session"),this.role="responder",this.state="active",t=t||function(){},e.prev=4,e.next=7,this.processLocal(b.JingleAction.SessionAccept,i(r.mark((function e(){var t,i,a,o,s;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.pc.createAnswer();case 2:t=e.sent,i=S.importFromSDP(t.sdp),(a=x.convertIntermediateToRequest(i,n.role,n.transportType)).sid=n.sid,a.action="session-accept",o=f(a.contents);try{for(o.s();!(s=o.n()).done;)s.value.creator="initiator"}catch(e){o.e(e)}finally{o.f()}return n.contentName=a.contents[0].name,n.send("session-accept",a),e.next=13,n.pc.setLocalDescription(t);case 13:return e.next=15,n.processBufferedCandidates();case 15:case"end":return e.stop()}}),e)}))));case 7:t(),e.next=14;break;case 10:e.prev=10,e.t0=e.catch(4),this._log("error","Could not create WebRTC answer",e.t0),this.end("failed-application");case 14:case"end":return e.stop()}}),e,this,[[4,10]])}))),function(e){return n.apply(this,arguments)})},{key:"onSessionInitiate",value:(t=i(r.mark((function e(t,n){var i,a,o,s,c=this;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._log("info","Initiating incoming session"),this.role="responder",this.state="pending",this.transportType=t.contents[0].transport.transportType,i=x.convertRequestToIntermediate(t,this.peerRole),a=S.exportToSDP(i),o=t.contents[0].application,s=o.file.hashesUsed?o.file.hashesUsed:o.file.hashes||[],this.receiver=new T({hash:s[0]&&s[0].algorithm}),this.receiver.on("progress",(function(e,t){c._log("info","Receive progress "+e+"/"+t)})),this.receiver.on("receivedFile",(function(e){c.receivedFile=e,c._maybeReceivedFile()})),this.receiver.metadata=o.file,this.pc.addEventListener("datachannel",(function(e){c.channel=e.channel,c.receiver.receive(c.receiver.metadata,e.channel)})),e.prev=13,e.next=16,this.pc.setRemoteDescription({type:"offer",sdp:a});case 16:return e.next=18,this.processBufferedCandidates();case 18:n(),e.next=25;break;case 21:e.prev=21,e.t0=e.catch(13),this._log("error","Could not create WebRTC answer",e.t0),n({condition:"general-error"});case 25:case"end":return e.stop()}}),e,this,[[13,21]])}))),function(e,n){return t.apply(this,arguments)})},{key:"onSessionInfo",value:function(e,t){var n=e.info;n&&n.file&&n.file.hashes&&(this.receiver.metadata.hashes=n.file.hashes,this.receiver.metadata.actualhash&&this._maybeReceivedFile(),t())}},{key:"_maybeReceivedFile",value:function(){if(this.receiver.metadata.hashes&&this.receiver.metadata.hashes.length){var e,t=f(this.receiver.metadata.hashes||[]);try{for(t.s();!(e=t.n()).done;){var n=e.value;if(n.value&&n.value.toString("hex")===this.receiver.metadata.actualhash)return this._log("info","File hash matches"),this.parent.emit("receivedFile",this,this.receivedFile,this.receiver.metadata),void this.end("success")}}catch(e){t.e(e)}finally{t.f()}this._log("error","File hash does not match"),this.end("media-error")}}}]),l}(w.default);t.default=j},function(e,t,n){"use strict";(function(e){n(9),n(33),n(5),n(21),n(25),n(91),n(22),n(24);var r=n(0);n(40);var i=n(13),a=n(83);Object.defineProperty(t,"__esModule",{value:!0}),t.reviveData=t.uuid=t.octetCompare=t.sleep=t.timeoutPromise=void 0;for(var o=n(204),s=[],c=0;c<256;++c)s[c]=(c+256).toString(16).substr(1);function u(){return(u=a(r.mark((function e(t,n){var i,a,o,s=arguments;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=s.length>2&&void 0!==s[2]?s[2]:function(){},e.next=3,Promise.race([t,new Promise((function(e,t){a=setTimeout((function(){return t(i())}),n)}))]);case 3:return o=e.sent,clearTimeout(a),e.abrupt("return",o);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function l(){return(l=a(r.mark((function e(t){return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){setTimeout((function(){return e()}),t)})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}t.timeoutPromise=function(e,t){return u.apply(this,arguments)},t.sleep=function(e){return l.apply(this,arguments)},t.octetCompare=function(t,n){var r="string"==typeof t?e.from(t,"utf8"):t,i="string"==typeof n?e.from(n,"utf8"):n;return r.compare(i)},t.uuid=function(){var e=o.randomBytes(16);e[6]=15&e[6]|64,e[8]=63&e[8]|128;var t=0;return[s[e[t++]],s[e[t++]],s[e[t++]],s[e[t++]],"-",s[e[t++]],s[e[t++]],"-",s[e[t++]],s[e[t++]],"-",s[e[t++]],s[e[t++]],"-",s[e[t++]],s[e[t++]],s[e[t++]],s[e[t++]],s[e[t++]],s[e[15]]].join("")};var f=new Set(["date","expires","httpUploadRetry","idleSince","published","since","stamp","timestamp","updated","utc"]),p=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)(?:Z|((\+|-)([\d|:]*)))?$/;t.reviveData=function(t,n){return f.has(t)&&n&&"string"==typeof n&&p.test(n)?new Date(n):n&&"object"===i(n)&&"Buffer"===n.type&&Array.isArray(n.data)?e.from(n):n}}).call(this,n(111).Buffer)},function(e,t,n){"use strict";n(10);var r=n(0);n(40);var i=n(83),a=n(2),o=n(3),s=n(77),c=n(8),u=n(37),l=n(16);function f(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function d(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 n,r=l(e);if(t){var i=l(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return u(this,n)}}Object.defineProperty(t,"__esModule",{value:!0});var h=n(1),v=n(102),m=h.__importDefault(n(205)),g=n(169),y=n(206);function b(e){var t=e.application;if(t.streams&&t.streams.length&&t.sources&&t.sources.length){var n=t.streams[0];t.sources[0].parameters.msid="".concat(n.id," ").concat(n.track),t.sourceGroups&&t.sourceGroups.length>0&&t.sources.push({parameters:{cname:t.sources[0].parameters.cname,msid:"".concat(n.id," ").concat(n.track)},ssrc:t.sourceGroups[0].sources[1]})}}var _=function(e){c(m,e);var t,n,u,p,h=d(m);function m(e){var t;if(a(this,m),(t=h.call(this,e)).includesAudio=!1,t.includesVideo=!1,t._ringing=!1,t.pc.addEventListener("track",(function(e){t.onAddTrack(e.track,e.streams[0])})),e.stream){var n,r=f(e.stream.getTracks());try{for(r.s();!(n=r.n()).done;){var i=n.value;t.addTrack(i,e.stream)}}catch(e){r.e(e)}finally{r.f()}}return t}return o(m,[{key:"start",value:(p=i(r.mark((function e(t,n){var a=this,o=arguments;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.state="pending",1===o.length&&"function"==typeof t&&(n=t,t={}),n=n||function(){},t=t||{},this.role="initiator",this.offerOptions=t,e.prev=6,e.next=9,this.processLocal(v.JingleAction.SessionInitiate,i(r.mark((function e(){var n,i,o,s,c,u;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a.pc.createOffer(t);case 2:n=e.sent,i=g.importFromSDP(n.sdp),(o=y.convertIntermediateToRequest(i,a.role,a.transportType)).sid=a.sid,o.action=v.JingleAction.SessionInitiate,s=f(o.contents||[]);try{for(s.s();!(c=s.n()).done;)(u=c.value).creator="initiator",b(u)}catch(e){s.e(e)}finally{s.f()}return e.next=11,a.pc.setLocalDescription(n);case 11:a.send("session-initiate",o);case 12:case"end":return e.stop()}}),e)}))));case 9:n(),e.next=16;break;case 12:e.prev=12,e.t0=e.catch(6),this._log("error","Could not create WebRTC offer",e.t0),this.end("failed-application",!0);case 16:case"end":return e.stop()}}),e,this,[[6,12]])}))),function(e,t){return p.apply(this,arguments)})},{key:"accept",value:(u=i(r.mark((function e(t,n){var a=this,o=arguments;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return 1===o.length&&"function"==typeof t&&(n=t,t={}),n=n||function(){},t=t||{},this._log("info","Accepted incoming session"),this.state="active",this.role="responder",e.prev=6,e.next=9,this.processLocal(v.JingleAction.SessionAccept,i(r.mark((function e(){var n,i,o,s,c;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a.pc.createAnswer(t);case 2:n=e.sent,i=g.importFromSDP(n.sdp),(o=y.convertIntermediateToRequest(i,a.role,a.transportType)).sid=a.sid,o.action=v.JingleAction.SessionAccept,s=f(o.contents||[]);try{for(s.s();!(c=s.n()).done;)c.value.creator="initiator"}catch(e){s.e(e)}finally{s.f()}return e.next=11,a.pc.setLocalDescription(n);case 11:return e.next=13,a.processBufferedCandidates();case 13:a.send("session-accept",o);case 14:case"end":return e.stop()}}),e)}))));case 9:n(),e.next=16;break;case 12:e.prev=12,e.t0=e.catch(6),this._log("error","Could not create WebRTC answer",e.t0),this.end("failed-application");case 16:case"end":return e.stop()}}),e,this,[[6,12]])}))),function(e,t){return u.apply(this,arguments)})},{key:"end",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"success",n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=f(this.pc.getReceivers());try{for(r.s();!(e=r.n()).done;){var i=e.value;this.onRemoveTrack(i.track)}}catch(e){r.e(e)}finally{r.f()}s(l(m.prototype),"end",this).call(this,t,n)}},{key:"ring",value:function(){var e=this;return this.processLocal("ring",i(r.mark((function t(){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e._log("info","Ringing on incoming session"),e.ringing=!0,e.send(v.JingleAction.SessionInfo,{info:{infoType:v.JINGLE_INFO_RINGING}});case 3:case"end":return t.stop()}}),t)}))))}},{key:"mute",value:function(e,t){var n=this;return this.processLocal("mute",i(r.mark((function i(){return r.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:n._log("info","Muting",t),n.send(v.JingleAction.SessionInfo,{info:{creator:e,infoType:v.JINGLE_INFO_MUTE,name:t}});case 2:case"end":return r.stop()}}),i)}))))}},{key:"unmute",value:function(e,t){var n=this;return this.processLocal("unmute",i(r.mark((function i(){return r.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:n._log("info","Unmuting",t),n.send(v.JingleAction.SessionInfo,{info:{creator:e,infoType:v.JINGLE_INFO_UNMUTE,name:t}});case 2:case"end":return r.stop()}}),i)}))))}},{key:"hold",value:function(){var e=this;return this.processLocal("hold",i(r.mark((function t(){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e._log("info","Placing on hold"),e.send("session-info",{info:{infoType:v.JINGLE_INFO_HOLD}});case 2:case"end":return t.stop()}}),t)}))))}},{key:"resume",value:function(){var e=this;return this.processLocal("resume",i(r.mark((function t(){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e._log("info","Resuming from hold"),e.send("session-info",{info:{infoType:v.JINGLE_INFO_ACTIVE}});case 2:case"end":return t.stop()}}),t)}))))}},{key:"addTrack",value:function(e,t,n){var a=this;return"audio"===e.kind&&(this.includesAudio=!0),"video"===e.kind&&(this.includesVideo=!0),this.processLocal("addtrack",i(r.mark((function i(){return r.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:a.pc.addTrack?a.pc.addTrack(e,t):a.pc.addStream(t),n&&n();case 2:case"end":return r.stop()}}),i)}))))}},{key:"removeTrack",value:(n=i(r.mark((function e(t,n){var a=this;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.processLocal("removetrack",i(r.mark((function e(){return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a.pc.removeTrack(t),!n){e.next=3;break}return e.abrupt("return",n());case 3:case"end":return e.stop()}}),e)})))));case 1:case"end":return e.stop()}}),e,this)}))),function(e,t){return n.apply(this,arguments)})},{key:"onAddTrack",value:function(e,t){this._log("info","Track added"),this.parent.emit("peerTrackAdded",this,e,t)}},{key:"onRemoveTrack",value:function(e){this._log("info","Track removed"),this.parent.emit("peerTrackRemoved",this,e)}},{key:"onSessionInitiate",value:(t=i(r.mark((function e(t,n){var i,a,o,s,c;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this._log("info","Initiating incoming session"),this.state="pending",this.role="responder",this.transportType=t.contents[0].transport.transportType,i=y.convertRequestToIntermediate(t,this.peerRole),a=f(i.media);try{for(a.s();!(o=a.n()).done;)"audio"===(s=o.value).kind&&(this.includesAudio=!0),"video"===s.kind&&(this.includesVideo=!0),s.streams||(s.streams=[{stream:"legacy",track:s.kind}])}catch(e){a.e(e)}finally{a.f()}return c=g.exportToSDP(i),e.prev=8,e.next=11,this.pc.setRemoteDescription({type:"offer",sdp:c});case 11:return e.next=13,this.processBufferedCandidates();case 13:return e.abrupt("return",n());case 16:return e.prev=16,e.t0=e.catch(8),this._log("error","Could not create WebRTC answer",e.t0),e.abrupt("return",n({condition:"general-error"}));case 20:case"end":return e.stop()}}),e,this,[[8,16]])}))),function(e,n){return t.apply(this,arguments)})},{key:"onSessionTerminate",value:function(e,t){var n,r=f(this.pc.getReceivers());try{for(r.s();!(n=r.n()).done;){var i=n.value;this.onRemoveTrack(i.track)}}catch(e){r.e(e)}finally{r.f()}s(l(m.prototype),"onSessionTerminate",this).call(this,e,t)}},{key:"onSessionInfo",value:function(e,t){var n=e.info||{infoType:""};switch(n.infoType){case v.JINGLE_INFO_RINGING:return this._log("info","Outgoing session is ringing"),this.ringing=!0,this.parent.emit("ringing",this),t();case v.JINGLE_INFO_HOLD:return this._log("info","On hold"),this.parent.emit("hold",this),t();case v.JINGLE_INFO_UNHOLD:case v.JINGLE_INFO_ACTIVE:return this._log("info","Resuming from hold"),this.parent.emit("resumed",this),t();case v.JINGLE_INFO_MUTE:return this._log("info","Muting",n),this.parent.emit("mute",this,n),t();case v.JINGLE_INFO_UNMUTE:return this._log("info","Unmuting",n),this.parent.emit("unmute",this,n),t()}return t()}},{key:"ringing",get:function(){return this._ringing},set:function(e){e!==this._ringing&&(this._ringing=e)}},{key:"streams",get:function(){return"closed"!==this.pc.signalingState?this.pc.getRemoteStreams():[]}}]),m}(m.default);t.default=_},function(e,t,n){var r=n(2),i=n(3),a=n(43),o=n(8),s=n(37),c=n(16);function u(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 n,r=c(e);if(t){var i=c(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return s(this,n)}}var l=function(e){"use strict";o(n,e);var t=u(n);function n(e){var i;return r(this,n),(i=t.call(this)).backoffStrategy_=e,i.maxNumberOfRetry_=-1,i.backoffNumber_=0,i.backoffDelay_=0,i.timeoutID_=-1,i.handlers={backoff:i.onBackoff_.bind(a(i))},i}return i(n,[{key:"failAfter",value:function(e){if(void 0!==e&&e<=0)throw new Error("Expected a maximum number of retry greater than 0 but got "+e);this.maxNumberOfRetry_=e}},{key:"backoff",value:function(e){if(-1!==this.timeoutID_)throw new Error("Backoff in progress");this.backoffNumber_===this.maxNumberOfRetry_?(this.emit("fail",e),this.reset()):(this.backoffDelay_=this.backoffStrategy_.next(),this.timeoutID_=setTimeout(this.handlers.backoff,this.backoffDelay_),this.emit("backoff",this.backoffNumber_,this.backoffDelay_,e))}},{key:"onBackoff_",value:function(){this.timeoutID_=-1,this.emit("ready",this.backoffNumber_,this.backoffDelay_),this.backoffNumber_++}},{key:"reset",value:function(){this.backoffNumber_=0,this.backoffStrategy_.reset(),clearTimeout(this.timeoutID_),this.timeoutID_=-1}}]),n}(n(288));e.exports=l},function(e,t,n){function r(){}n(10),n(23),n(20),n(81),n(15),n(39),e.exports=r,r.mixin=function(e){var t=e.prototype||e;t.isWildEmitter=!0,t.on=function(e,t,n){this.callbacks=this.callbacks||{};var r=3===arguments.length,i=r?arguments[1]:void 0,a=r?arguments[2]:arguments[1];return a._groupName=i,(this.callbacks[e]=this.callbacks[e]||[]).push(a),this},t.once=function(e,t,n){var r=this,i=3===arguments.length,a=i?arguments[1]:void 0,o=i?arguments[2]:arguments[1];function s(){r.off(e,s),o.apply(this,arguments)}return this.on(e,a,s),this},t.releaseGroup=function(e){var t,n,r,i;for(t in this.callbacks=this.callbacks||{},this.callbacks)for(n=0,r=(i=this.callbacks[t]).length;n<r;n++)i[n]._groupName===e&&(i.splice(n,1),n--,r--);return this},t.off=function(e,t){this.callbacks=this.callbacks||{};var n,r=this.callbacks[e];return r?1===arguments.length?(delete this.callbacks[e],this):(-1!==(n=r.indexOf(t))&&(r.splice(n,1),0===r.length&&delete this.callbacks[e]),this):this},t.emit=function(e){this.callbacks=this.callbacks||{};var t,n,r,i=[].slice.call(arguments,1),a=this.callbacks[e],o=this.getWildcardCallbacks(e);if(a)for(t=0,n=(r=a.slice()).length;t<n&&r[t];++t)r[t].apply(this,i);if(o)for(n=o.length,t=0,n=(r=o.slice()).length;t<n&&r[t];++t)r[t].apply(this,[e].concat(i));return this},t.getWildcardCallbacks=function(e){this.callbacks=this.callbacks||{};var t,n,r=[];for(t in this.callbacks)n=t.split("*"),("*"===t||2===n.length&&e.slice(0,n[0].length)===n[0])&&(r=r.concat(this.callbacks[t]));return r}},r.mixin(r)},function(e,t,n){var r=n(2),i=n(3);function a(e){return null!=e}var o=function(){"use strict";function e(t){if(r(this,e),a((t=t||{}).initialDelay)&&t.initialDelay<1)throw new Error("The initial timeout must be greater than 0.");if(a(t.maxDelay)&&t.maxDelay<1)throw new Error("The maximal timeout must be greater than 0.");if(this.initialDelay_=t.initialDelay||100,this.maxDelay_=t.maxDelay||1e4,this.maxDelay_<=this.initialDelay_)throw new Error("The maximal backoff delay must be greater than the initial backoff delay.");if(a(t.randomisationFactor)&&(t.randomisationFactor<0||t.randomisationFactor>1))throw new Error("The randomisation factor must be between 0 and 1.");this.randomisationFactor_=t.randomisationFactor||0}return i(e,[{key:"getMaxDelay",value:function(){return this.maxDelay_}},{key:"getInitialDelay",value:function(){return this.initialDelay_}},{key:"next",value:function(){var e=this.next_(),t=1+Math.random()*this.randomisationFactor_;return Math.round(e*t)}},{key:"next_",value:function(){throw new Error("Not implemented")}},{key:"reset",value:function(){this.reset_()}},{key:"reset_",value:function(){throw new Error("Not implemented")}}]),e}();e.exports=o},function(e,t,n){var r=n(2),i=n(3),a=n(8),o=n(37),s=n(16);function c(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 n,r=s(e);if(t){var i=s(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return o(this,n)}}var u=function(e){"use strict";a(n,e);var t=c(n);function n(e){var i;return r(this,n),(i=t.call(this,e)).backoffDelay_=0,i.nextBackoffDelay_=i.getInitialDelay(),i}return i(n,[{key:"next_",value:function(){var e=Math.min(this.nextBackoffDelay_,this.getMaxDelay());return this.nextBackoffDelay_+=this.backoffDelay_,this.backoffDelay_=e,e}},{key:"reset_",value:function(){this.nextBackoffDelay_=this.getInitialDelay(),this.backoffDelay_=0}}]),n}(n(289));e.exports=u},function(e,t,n){"use strict";n.r(t);n(9),n(5),n(74),n(48),n(49),n(50),n(51),n(52),n(53),n(54),n(55),n(56),n(57),n(58),n(59),n(60),n(61),n(62),n(63),n(64),n(65),n(66),n(67),n(68),n(69),n(70);var r,i=new Uint8Array(16);function a(){if(!r&&!(r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(i)}n(25);var o=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var s=function(e){return"string"==typeof e&&o.test(e)},c=[],u=0;u<256;++u)c.push((u+256).toString(16).substr(1));var l,f,p=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(c[e[t+0]]+c[e[t+1]]+c[e[t+2]]+c[e[t+3]]+"-"+c[e[t+4]]+c[e[t+5]]+"-"+c[e[t+6]]+c[e[t+7]]+"-"+c[e[t+8]]+c[e[t+9]]+"-"+c[e[t+10]]+c[e[t+11]]+c[e[t+12]]+c[e[t+13]]+c[e[t+14]]+c[e[t+15]]).toLowerCase();if(!s(n))throw TypeError("Stringified UUID is invalid");return n},d=0,h=0;var v=function(e,t,n){var r=t&&n||0,i=t||new Array(16),o=(e=e||{}).node||l,s=void 0!==e.clockseq?e.clockseq:f;if(null==o||null==s){var c=e.random||(e.rng||a)();null==o&&(o=l=[1|c[0],c[1],c[2],c[3],c[4],c[5]]),null==s&&(s=f=16383&(c[6]<<8|c[7]))}var u=void 0!==e.msecs?e.msecs:Date.now(),v=void 0!==e.nsecs?e.nsecs:h+1,m=u-d+(v-h)/1e4;if(m<0&&void 0===e.clockseq&&(s=s+1&16383),(m<0||u>d)&&void 0===e.nsecs&&(v=0),v>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");d=u,h=v,f=s;var g=(1e4*(268435455&(u+=122192928e5))+v)%4294967296;i[r++]=g>>>24&255,i[r++]=g>>>16&255,i[r++]=g>>>8&255,i[r++]=255&g;var y=u/4294967296*1e4&268435455;i[r++]=y>>>8&255,i[r++]=255&y,i[r++]=y>>>24&15|16,i[r++]=y>>>16&255,i[r++]=s>>>8|128,i[r++]=255&s;for(var b=0;b<6;++b)i[r+b]=o[b];return t||p(i)};n(28),n(20);var m=function(e){if(!s(e))throw TypeError("Invalid UUID");var t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n};var g=function(e,t,n){function r(e,r,i,a){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof r&&(r=m(r)),16!==r.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var o=new Uint8Array(16+e.length);if(o.set(r),o.set(e,r.length),(o=n(o))[6]=15&o[6]|t,o[8]=63&o[8]|128,i){a=a||0;for(var s=0;s<16;++s)i[a+s]=o[s];return i}return p(o)}try{r.name=e}catch(e){}return r.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",r.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",r};n(280);function y(e){return 14+(e+64>>>9<<4)+1}function b(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function _(e,t,n,r,i,a){return b((o=b(b(t,e),b(r,a)))<<(s=i)|o>>>32-s,n);var o,s}function w(e,t,n,r,i,a,o){return _(t&n|~t&r,e,t,i,a,o)}function S(e,t,n,r,i,a,o){return _(t&r|n&~r,e,t,i,a,o)}function x(e,t,n,r,i,a,o){return _(t^n^r,e,t,i,a,o)}function k(e,t,n,r,i,a,o){return _(n^(t|~r),e,t,i,a,o)}var T=g("v3",48,(function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return function(e){for(var t=[],n=32*e.length,r=0;r<n;r+=8){var i=e[r>>5]>>>r%32&255,a=parseInt("0123456789abcdef".charAt(i>>>4&15)+"0123456789abcdef".charAt(15&i),16);t.push(a)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[y(t)-1]=t;for(var n=1732584193,r=-271733879,i=-1732584194,a=271733878,o=0;o<e.length;o+=16){var s=n,c=r,u=i,l=a;n=w(n,r,i,a,e[o],7,-680876936),a=w(a,n,r,i,e[o+1],12,-389564586),i=w(i,a,n,r,e[o+2],17,606105819),r=w(r,i,a,n,e[o+3],22,-1044525330),n=w(n,r,i,a,e[o+4],7,-176418897),a=w(a,n,r,i,e[o+5],12,1200080426),i=w(i,a,n,r,e[o+6],17,-1473231341),r=w(r,i,a,n,e[o+7],22,-45705983),n=w(n,r,i,a,e[o+8],7,1770035416),a=w(a,n,r,i,e[o+9],12,-1958414417),i=w(i,a,n,r,e[o+10],17,-42063),r=w(r,i,a,n,e[o+11],22,-1990404162),n=w(n,r,i,a,e[o+12],7,1804603682),a=w(a,n,r,i,e[o+13],12,-40341101),i=w(i,a,n,r,e[o+14],17,-1502002290),r=w(r,i,a,n,e[o+15],22,1236535329),n=S(n,r,i,a,e[o+1],5,-165796510),a=S(a,n,r,i,e[o+6],9,-1069501632),i=S(i,a,n,r,e[o+11],14,643717713),r=S(r,i,a,n,e[o],20,-373897302),n=S(n,r,i,a,e[o+5],5,-701558691),a=S(a,n,r,i,e[o+10],9,38016083),i=S(i,a,n,r,e[o+15],14,-660478335),r=S(r,i,a,n,e[o+4],20,-405537848),n=S(n,r,i,a,e[o+9],5,568446438),a=S(a,n,r,i,e[o+14],9,-1019803690),i=S(i,a,n,r,e[o+3],14,-187363961),r=S(r,i,a,n,e[o+8],20,1163531501),n=S(n,r,i,a,e[o+13],5,-1444681467),a=S(a,n,r,i,e[o+2],9,-51403784),i=S(i,a,n,r,e[o+7],14,1735328473),r=S(r,i,a,n,e[o+12],20,-1926607734),n=x(n,r,i,a,e[o+5],4,-378558),a=x(a,n,r,i,e[o+8],11,-2022574463),i=x(i,a,n,r,e[o+11],16,1839030562),r=x(r,i,a,n,e[o+14],23,-35309556),n=x(n,r,i,a,e[o+1],4,-1530992060),a=x(a,n,r,i,e[o+4],11,1272893353),i=x(i,a,n,r,e[o+7],16,-155497632),r=x(r,i,a,n,e[o+10],23,-1094730640),n=x(n,r,i,a,e[o+13],4,681279174),a=x(a,n,r,i,e[o],11,-358537222),i=x(i,a,n,r,e[o+3],16,-722521979),r=x(r,i,a,n,e[o+6],23,76029189),n=x(n,r,i,a,e[o+9],4,-640364487),a=x(a,n,r,i,e[o+12],11,-421815835),i=x(i,a,n,r,e[o+15],16,530742520),r=x(r,i,a,n,e[o+2],23,-995338651),n=k(n,r,i,a,e[o],6,-198630844),a=k(a,n,r,i,e[o+7],10,1126891415),i=k(i,a,n,r,e[o+14],15,-1416354905),r=k(r,i,a,n,e[o+5],21,-57434055),n=k(n,r,i,a,e[o+12],6,1700485571),a=k(a,n,r,i,e[o+3],10,-1894986606),i=k(i,a,n,r,e[o+10],15,-1051523),r=k(r,i,a,n,e[o+1],21,-2054922799),n=k(n,r,i,a,e[o+8],6,1873313359),a=k(a,n,r,i,e[o+15],10,-30611744),i=k(i,a,n,r,e[o+6],15,-1560198380),r=k(r,i,a,n,e[o+13],21,1309151649),n=k(n,r,i,a,e[o+4],6,-145523070),a=k(a,n,r,i,e[o+11],10,-1120210379),i=k(i,a,n,r,e[o+2],15,718787259),r=k(r,i,a,n,e[o+9],21,-343485551),n=b(n,s),r=b(r,c),i=b(i,u),a=b(a,l)}return[n,r,i,a]}(function(e){if(0===e.length)return[];for(var t=8*e.length,n=new Uint32Array(y(t)),r=0;r<t;r+=8)n[r>>5]|=(255&e[r/8])<<r%32;return n}(e),8*e.length))}));var j=function(e,t,n){var r=(e=e||{}).random||(e.rng||a)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return p(r)};function E(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:return t^n^r;case 2:return t&n^t&r^n&r;case 3:return t^n^r}}function I(e,t){return e<<t|e>>>32-t}var O=g("v5",80,(function(e){var t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var r=unescape(encodeURIComponent(e));e=[];for(var i=0;i<r.length;++i)e.push(r.charCodeAt(i))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var a=e.length/4+2,o=Math.ceil(a/16),s=new Array(o),c=0;c<o;++c){for(var u=new Uint32Array(16),l=0;l<16;++l)u[l]=e[64*c+4*l]<<24|e[64*c+4*l+1]<<16|e[64*c+4*l+2]<<8|e[64*c+4*l+3];s[c]=u}s[o-1][14]=8*(e.length-1)/Math.pow(2,32),s[o-1][14]=Math.floor(s[o-1][14]),s[o-1][15]=8*(e.length-1)&4294967295;for(var f=0;f<o;++f){for(var p=new Uint32Array(80),d=0;d<16;++d)p[d]=s[f][d];for(var h=16;h<80;++h)p[h]=I(p[h-3]^p[h-8]^p[h-14]^p[h-16],1);for(var v=n[0],m=n[1],g=n[2],y=n[3],b=n[4],_=0;_<80;++_){var w=Math.floor(_/20),S=I(v,5)+E(w,m,g,y)+b+t[w]+p[_]>>>0;b=y,y=g,g=I(m,30)>>>0,m=v,v=S}n[0]=n[0]+v>>>0,n[1]=n[1]+m>>>0,n[2]=n[2]+g>>>0,n[3]=n[3]+y>>>0,n[4]=n[4]+b>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]}));var A=function(e){if(!s(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)};n.d(t,"v1",(function(){return v})),n.d(t,"v3",(function(){return T})),n.d(t,"v4",(function(){return j})),n.d(t,"v5",(function(){return O})),n.d(t,"NIL",(function(){return"00000000-0000-0000-0000-000000000000"})),n.d(t,"version",(function(){return A})),n.d(t,"validate",(function(){return s})),n.d(t,"stringify",(function(){return p})),n.d(t,"parse",(function(){return m}))},function(e,t,n){var r=n(245),i=n(258),a=n(195),o=n(247);e.exports=function(e){return r(e)||i(e)||a(e)||o()}},function(e,t,n){var r=n(349),i=n(350),a=i;a.v1=r,a.v4=i,e.exports=a},function(e,t,n){"use strict";n(47),n(73),n(97),n(9),n(5),n(21),n(22),n(24);var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(370),o=n(371);t.backOff=function(e,t){return void 0===t&&(t={}),r(this,void 0,void 0,(function(){var n;return i(this,(function(r){switch(r.label){case 0:return n=a.getSanitizedOptions(t),[4,new s(e,n).execute()];case 1:return[2,r.sent()]}}))}))};var s=function(){function e(e,t){this.request=e,this.options=t,this.attemptNumber=0}return e.prototype.execute=function(){return r(this,void 0,void 0,(function(){var e;return i(this,(function(t){switch(t.label){case 0:if(this.attemptLimitReached)return[3,7];t.label=1;case 1:return t.trys.push([1,4,,6]),[4,this.applyDelay()];case 2:return t.sent(),[4,this.request()];case 3:return[2,t.sent()];case 4:return e=t.sent(),this.attemptNumber++,[4,this.options.retry(e,this.attemptNumber)];case 5:if(!t.sent()||this.attemptLimitReached)throw e;return[3,6];case 6:return[3,0];case 7:throw new Error("Something went wrong.")}}))}))},Object.defineProperty(e.prototype,"attemptLimitReached",{get:function(){return this.attemptNumber>=this.options.numOfAttempts},enumerable:!0,configurable:!0}),e.prototype.applyDelay=function(){return r(this,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return[4,o.DelayFactory(this.options,this.attemptNumber).apply()];case 1:return e.sent(),[2]}}))}))},e}()},function(e,t,n){n(296),n(300),e.exports=n(313)},function(e,t,n){(function(e){var r;n(10),n(298),n(81),n(5),n(25);var i=n(13);!function(a){"use strict";for(var o=[null,0,{}],s=function(e,t){this.codepoint=e,this.feature=t},c={},u=[],l=0;l<=255;++l)u[l]=0;var f=[function(e,t,n){return t<60||13311<t&&t<42607?new s(t,o):e(t,n)},function(e,t,n){var r=c[t];return r||(r=e(t,n)).feature&&++u[t>>8&255]>10&&(c[t]=r),r},function(e,t,n){return n?e(t,n):new s(t,null)},function(e,t,n){var r;if(t<4352||4371<=t&&t<44032||55204<t)return e(t,n);if(4352<=t&&t<4371){var i={},a=21*(t-4352);for(r=0;r<21;++r)i[4449+r]=44032+28*(r+a);return new s(t,[,,i])}var o=t-44032,c=o%28,u=[];if(0!==c)u[0]=[44032+o-c,4519+c];else for(u[0]=[4352+Math.floor(o/588),4449+Math.floor(o%588/28)],u[2]={},r=1;r<28;++r)u[2][4519+r]=t+r;return new s(t,u)},function(e,t,n){var r=(s.udata[65280&t]||{})[t];return new s(t,r||o)}];s.fromCharCode=f.reduceRight((function(e,t){return function(n,r){return t(e,n,r)}}),null),s.isHighSurrogate=function(e){return e>=55296&&e<=56319},s.isLowSurrogate=function(e){return e>=56320&&e<=57343},s.prototype.prepFeature=function(){this.feature||(this.feature=s.fromCharCode(this.codepoint,!0).feature)},s.prototype.toString=function(){if(this.codepoint<65536)return String.fromCharCode(this.codepoint);var e=this.codepoint-65536;return String.fromCharCode(Math.floor(e/1024)+55296,e%1024+56320)},s.prototype.getDecomp=function(){return this.prepFeature(),this.feature[0]||null},s.prototype.isCompatibility=function(){return this.prepFeature(),!!this.feature[1]&&256&this.feature[1]},s.prototype.isExclude=function(){return this.prepFeature(),!!this.feature[1]&&512&this.feature[1]},s.prototype.getCanonicalClass=function(){return this.prepFeature(),this.feature[1]?255&this.feature[1]:0},s.prototype.getComposite=function(e){if(this.prepFeature(),!this.feature[2])return null;var t=this.feature[2][e.codepoint];return t?s.fromCharCode(t):null};var p=function(e){this.str=e,this.cursor=0};p.prototype.next=function(){if(this.str&&this.cursor<this.str.length){var e,t=this.str.charCodeAt(this.cursor++);return s.isHighSurrogate(t)&&this.cursor<this.str.length&&s.isLowSurrogate(e=this.str.charCodeAt(this.cursor))&&(t=1024*(t-55296)+(e-56320)+65536,++this.cursor),s.fromCharCode(t)}return this.str=null,null};var d=function(e,t){this.it=e,this.canonical=t,this.resBuf=[]};d.prototype.next=function(){if(0===this.resBuf.length){var e=this.it.next();if(!e)return null;this.resBuf=function e(t,n){var r=n.getDecomp();if(!r||t&&n.isCompatibility())return[n];for(var i=[],a=0;a<r.length;++a){var o=e(t,s.fromCharCode(r[a]));i=i.concat(o)}return i}(this.canonical,e)}return this.resBuf.shift()};var h=function(e){this.it=e,this.resBuf=[]};h.prototype.next=function(){var e;if(0===this.resBuf.length)do{var t=this.it.next();if(!t)break;e=t.getCanonicalClass();var n=this.resBuf.length;if(0!==e)for(;n>0;--n){if(this.resBuf[n-1].getCanonicalClass()<=e)break}this.resBuf.splice(n,0,t)}while(0!==e);return this.resBuf.shift()};var v=function(e){this.it=e,this.procBuf=[],this.resBuf=[],this.lastClass=null};v.prototype.next=function(){for(;0===this.resBuf.length;){var e=this.it.next();if(!e){this.resBuf=this.procBuf,this.procBuf=[];break}if(0===this.procBuf.length)this.lastClass=e.getCanonicalClass(),this.procBuf.push(e);else{var t=this.procBuf[0].getComposite(e),n=e.getCanonicalClass();t&&(this.lastClass<n||0===this.lastClass)?this.procBuf[0]=t:(0===n&&(this.resBuf=this.procBuf,this.procBuf=[]),this.lastClass=n,this.procBuf.push(e))}}return this.resBuf.shift()};var m=function(e,t){for(var n,r=function(e,t){switch(e){case"NFD":return new h(new d(new p(t),!0));case"NFKD":return new h(new d(new p(t),!1));case"NFC":return new v(new h(new d(new p(t),!0)));case"NFKC":return new v(new h(new d(new p(t),!1)))}throw e+" is invalid"}(e,t),i="";n=r.next();)i+=n.toString();return i};s.udata={0:{60:[,,{824:8814}],61:[,,{824:8800}],62:[,,{824:8815}],65:[,,{768:192,769:193,770:194,771:195,772:256,774:258,775:550,776:196,777:7842,778:197,780:461,783:512,785:514,803:7840,805:7680,808:260}],66:[,,{775:7682,803:7684,817:7686}],67:[,,{769:262,770:264,775:266,780:268,807:199}],68:[,,{775:7690,780:270,803:7692,807:7696,813:7698,817:7694}],69:[,,{768:200,769:201,770:202,771:7868,772:274,774:276,775:278,776:203,777:7866,780:282,783:516,785:518,803:7864,807:552,808:280,813:7704,816:7706}],70:[,,{775:7710}],71:[,,{769:500,770:284,772:7712,774:286,775:288,780:486,807:290}],72:[,,{770:292,775:7714,776:7718,780:542,803:7716,807:7720,814:7722}],73:[,,{768:204,769:205,770:206,771:296,772:298,774:300,775:304,776:207,777:7880,780:463,783:520,785:522,803:7882,808:302,816:7724}],74:[,,{770:308}],75:[,,{769:7728,780:488,803:7730,807:310,817:7732}],76:[,,{769:313,780:317,803:7734,807:315,813:7740,817:7738}],77:[,,{769:7742,775:7744,803:7746}],78:[,,{768:504,769:323,771:209,775:7748,780:327,803:7750,807:325,813:7754,817:7752}],79:[,,{768:210,769:211,770:212,771:213,772:332,774:334,775:558,776:214,777:7886,779:336,780:465,783:524,785:526,795:416,803:7884,808:490}],80:[,,{769:7764,775:7766}],82:[,,{769:340,775:7768,780:344,783:528,785:530,803:7770,807:342,817:7774}],83:[,,{769:346,770:348,775:7776,780:352,803:7778,806:536,807:350}],84:[,,{775:7786,780:356,803:7788,806:538,807:354,813:7792,817:7790}],85:[,,{768:217,769:218,770:219,771:360,772:362,774:364,776:220,777:7910,778:366,779:368,780:467,783:532,785:534,795:431,803:7908,804:7794,808:370,813:7798,816:7796}],86:[,,{771:7804,803:7806}],87:[,,{768:7808,769:7810,770:372,775:7814,776:7812,803:7816}],88:[,,{775:7818,776:7820}],89:[,,{768:7922,769:221,770:374,771:7928,772:562,775:7822,776:376,777:7926,803:7924}],90:[,,{769:377,770:7824,775:379,780:381,803:7826,817:7828}],97:[,,{768:224,769:225,770:226,771:227,772:257,774:259,775:551,776:228,777:7843,778:229,780:462,783:513,785:515,803:7841,805:7681,808:261}],98:[,,{775:7683,803:7685,817:7687}],99:[,,{769:263,770:265,775:267,780:269,807:231}],100:[,,{775:7691,780:271,803:7693,807:7697,813:7699,817:7695}],101:[,,{768:232,769:233,770:234,771:7869,772:275,774:277,775:279,776:235,777:7867,780:283,783:517,785:519,803:7865,807:553,808:281,813:7705,816:7707}],102:[,,{775:7711}],103:[,,{769:501,770:285,772:7713,774:287,775:289,780:487,807:291}],104:[,,{770:293,775:7715,776:7719,780:543,803:7717,807:7721,814:7723,817:7830}],105:[,,{768:236,769:237,770:238,771:297,772:299,774:301,776:239,777:7881,780:464,783:521,785:523,803:7883,808:303,816:7725}],106:[,,{770:309,780:496}],107:[,,{769:7729,780:489,803:7731,807:311,817:7733}],108:[,,{769:314,780:318,803:7735,807:316,813:7741,817:7739}],109:[,,{769:7743,775:7745,803:7747}],110:[,,{768:505,769:324,771:241,775:7749,780:328,803:7751,807:326,813:7755,817:7753}],111:[,,{768:242,769:243,770:244,771:245,772:333,774:335,775:559,776:246,777:7887,779:337,780:466,783:525,785:527,795:417,803:7885,808:491}],112:[,,{769:7765,775:7767}],114:[,,{769:341,775:7769,780:345,783:529,785:531,803:7771,807:343,817:7775}],115:[,,{769:347,770:349,775:7777,780:353,803:7779,806:537,807:351}],116:[,,{775:7787,776:7831,780:357,803:7789,806:539,807:355,813:7793,817:7791}],117:[,,{768:249,769:250,770:251,771:361,772:363,774:365,776:252,777:7911,778:367,779:369,780:468,783:533,785:535,795:432,803:7909,804:7795,808:371,813:7799,816:7797}],118:[,,{771:7805,803:7807}],119:[,,{768:7809,769:7811,770:373,775:7815,776:7813,778:7832,803:7817}],120:[,,{775:7819,776:7821}],121:[,,{768:7923,769:253,770:375,771:7929,772:563,775:7823,776:255,777:7927,778:7833,803:7925}],122:[,,{769:378,770:7825,775:380,780:382,803:7827,817:7829}],160:[[32],256],168:[[32,776],256,{768:8173,769:901,834:8129}],170:[[97],256],175:[[32,772],256],178:[[50],256],179:[[51],256],180:[[32,769],256],181:[[956],256],184:[[32,807],256],185:[[49],256],186:[[111],256],188:[[49,8260,52],256],189:[[49,8260,50],256],190:[[51,8260,52],256],192:[[65,768]],193:[[65,769]],194:[[65,770],,{768:7846,769:7844,771:7850,777:7848}],195:[[65,771]],196:[[65,776],,{772:478}],197:[[65,778],,{769:506}],198:[,,{769:508,772:482}],199:[[67,807],,{769:7688}],200:[[69,768]],201:[[69,769]],202:[[69,770],,{768:7872,769:7870,771:7876,777:7874}],203:[[69,776]],204:[[73,768]],205:[[73,769]],206:[[73,770]],207:[[73,776],,{769:7726}],209:[[78,771]],210:[[79,768]],211:[[79,769]],212:[[79,770],,{768:7890,769:7888,771:7894,777:7892}],213:[[79,771],,{769:7756,772:556,776:7758}],214:[[79,776],,{772:554}],216:[,,{769:510}],217:[[85,768]],218:[[85,769]],219:[[85,770]],220:[[85,776],,{768:475,769:471,772:469,780:473}],221:[[89,769]],224:[[97,768]],225:[[97,769]],226:[[97,770],,{768:7847,769:7845,771:7851,777:7849}],227:[[97,771]],228:[[97,776],,{772:479}],229:[[97,778],,{769:507}],230:[,,{769:509,772:483}],231:[[99,807],,{769:7689}],232:[[101,768]],233:[[101,769]],234:[[101,770],,{768:7873,769:7871,771:7877,777:7875}],235:[[101,776]],236:[[105,768]],237:[[105,769]],238:[[105,770]],239:[[105,776],,{769:7727}],241:[[110,771]],242:[[111,768]],243:[[111,769]],244:[[111,770],,{768:7891,769:7889,771:7895,777:7893}],245:[[111,771],,{769:7757,772:557,776:7759}],246:[[111,776],,{772:555}],248:[,,{769:511}],249:[[117,768]],250:[[117,769]],251:[[117,770]],252:[[117,776],,{768:476,769:472,772:470,780:474}],253:[[121,769]],255:[[121,776]]},256:{256:[[65,772]],257:[[97,772]],258:[[65,774],,{768:7856,769:7854,771:7860,777:7858}],259:[[97,774],,{768:7857,769:7855,771:7861,777:7859}],260:[[65,808]],261:[[97,808]],262:[[67,769]],263:[[99,769]],264:[[67,770]],265:[[99,770]],266:[[67,775]],267:[[99,775]],268:[[67,780]],269:[[99,780]],270:[[68,780]],271:[[100,780]],274:[[69,772],,{768:7700,769:7702}],275:[[101,772],,{768:7701,769:7703}],276:[[69,774]],277:[[101,774]],278:[[69,775]],279:[[101,775]],280:[[69,808]],281:[[101,808]],282:[[69,780]],283:[[101,780]],284:[[71,770]],285:[[103,770]],286:[[71,774]],287:[[103,774]],288:[[71,775]],289:[[103,775]],290:[[71,807]],291:[[103,807]],292:[[72,770]],293:[[104,770]],296:[[73,771]],297:[[105,771]],298:[[73,772]],299:[[105,772]],300:[[73,774]],301:[[105,774]],302:[[73,808]],303:[[105,808]],304:[[73,775]],306:[[73,74],256],307:[[105,106],256],308:[[74,770]],309:[[106,770]],310:[[75,807]],311:[[107,807]],313:[[76,769]],314:[[108,769]],315:[[76,807]],316:[[108,807]],317:[[76,780]],318:[[108,780]],319:[[76,183],256],320:[[108,183],256],323:[[78,769]],324:[[110,769]],325:[[78,807]],326:[[110,807]],327:[[78,780]],328:[[110,780]],329:[[700,110],256],332:[[79,772],,{768:7760,769:7762}],333:[[111,772],,{768:7761,769:7763}],334:[[79,774]],335:[[111,774]],336:[[79,779]],337:[[111,779]],340:[[82,769]],341:[[114,769]],342:[[82,807]],343:[[114,807]],344:[[82,780]],345:[[114,780]],346:[[83,769],,{775:7780}],347:[[115,769],,{775:7781}],348:[[83,770]],349:[[115,770]],350:[[83,807]],351:[[115,807]],352:[[83,780],,{775:7782}],353:[[115,780],,{775:7783}],354:[[84,807]],355:[[116,807]],356:[[84,780]],357:[[116,780]],360:[[85,771],,{769:7800}],361:[[117,771],,{769:7801}],362:[[85,772],,{776:7802}],363:[[117,772],,{776:7803}],364:[[85,774]],365:[[117,774]],366:[[85,778]],367:[[117,778]],368:[[85,779]],369:[[117,779]],370:[[85,808]],371:[[117,808]],372:[[87,770]],373:[[119,770]],374:[[89,770]],375:[[121,770]],376:[[89,776]],377:[[90,769]],378:[[122,769]],379:[[90,775]],380:[[122,775]],381:[[90,780]],382:[[122,780]],383:[[115],256,{775:7835}],416:[[79,795],,{768:7900,769:7898,771:7904,777:7902,803:7906}],417:[[111,795],,{768:7901,769:7899,771:7905,777:7903,803:7907}],431:[[85,795],,{768:7914,769:7912,771:7918,777:7916,803:7920}],432:[[117,795],,{768:7915,769:7913,771:7919,777:7917,803:7921}],439:[,,{780:494}],452:[[68,381],256],453:[[68,382],256],454:[[100,382],256],455:[[76,74],256],456:[[76,106],256],457:[[108,106],256],458:[[78,74],256],459:[[78,106],256],460:[[110,106],256],461:[[65,780]],462:[[97,780]],463:[[73,780]],464:[[105,780]],465:[[79,780]],466:[[111,780]],467:[[85,780]],468:[[117,780]],469:[[220,772]],470:[[252,772]],471:[[220,769]],472:[[252,769]],473:[[220,780]],474:[[252,780]],475:[[220,768]],476:[[252,768]],478:[[196,772]],479:[[228,772]],480:[[550,772]],481:[[551,772]],482:[[198,772]],483:[[230,772]],486:[[71,780]],487:[[103,780]],488:[[75,780]],489:[[107,780]],490:[[79,808],,{772:492}],491:[[111,808],,{772:493}],492:[[490,772]],493:[[491,772]],494:[[439,780]],495:[[658,780]],496:[[106,780]],497:[[68,90],256],498:[[68,122],256],499:[[100,122],256],500:[[71,769]],501:[[103,769]],504:[[78,768]],505:[[110,768]],506:[[197,769]],507:[[229,769]],508:[[198,769]],509:[[230,769]],510:[[216,769]],511:[[248,769]],66045:[,220]},512:{512:[[65,783]],513:[[97,783]],514:[[65,785]],515:[[97,785]],516:[[69,783]],517:[[101,783]],518:[[69,785]],519:[[101,785]],520:[[73,783]],521:[[105,783]],522:[[73,785]],523:[[105,785]],524:[[79,783]],525:[[111,783]],526:[[79,785]],527:[[111,785]],528:[[82,783]],529:[[114,783]],530:[[82,785]],531:[[114,785]],532:[[85,783]],533:[[117,783]],534:[[85,785]],535:[[117,785]],536:[[83,806]],537:[[115,806]],538:[[84,806]],539:[[116,806]],542:[[72,780]],543:[[104,780]],550:[[65,775],,{772:480}],551:[[97,775],,{772:481}],552:[[69,807],,{774:7708}],553:[[101,807],,{774:7709}],554:[[214,772]],555:[[246,772]],556:[[213,772]],557:[[245,772]],558:[[79,775],,{772:560}],559:[[111,775],,{772:561}],560:[[558,772]],561:[[559,772]],562:[[89,772]],563:[[121,772]],658:[,,{780:495}],688:[[104],256],689:[[614],256],690:[[106],256],691:[[114],256],692:[[633],256],693:[[635],256],694:[[641],256],695:[[119],256],696:[[121],256],728:[[32,774],256],729:[[32,775],256],730:[[32,778],256],731:[[32,808],256],732:[[32,771],256],733:[[32,779],256],736:[[611],256],737:[[108],256],738:[[115],256],739:[[120],256],740:[[661],256],66272:[,220]},768:{768:[,230],769:[,230],770:[,230],771:[,230],772:[,230],773:[,230],774:[,230],775:[,230],776:[,230,{769:836}],777:[,230],778:[,230],779:[,230],780:[,230],781:[,230],782:[,230],783:[,230],784:[,230],785:[,230],786:[,230],787:[,230],788:[,230],789:[,232],790:[,220],791:[,220],792:[,220],793:[,220],794:[,232],795:[,216],796:[,220],797:[,220],798:[,220],799:[,220],800:[,220],801:[,202],802:[,202],803:[,220],804:[,220],805:[,220],806:[,220],807:[,202],808:[,202],809:[,220],810:[,220],811:[,220],812:[,220],813:[,220],814:[,220],815:[,220],816:[,220],817:[,220],818:[,220],819:[,220],820:[,1],821:[,1],822:[,1],823:[,1],824:[,1],825:[,220],826:[,220],827:[,220],828:[,220],829:[,230],830:[,230],831:[,230],832:[[768],230],833:[[769],230],834:[,230],835:[[787],230],836:[[776,769],230],837:[,240],838:[,230],839:[,220],840:[,220],841:[,220],842:[,230],843:[,230],844:[,230],845:[,220],846:[,220],848:[,230],849:[,230],850:[,230],851:[,220],852:[,220],853:[,220],854:[,220],855:[,230],856:[,232],857:[,220],858:[,220],859:[,230],860:[,233],861:[,234],862:[,234],863:[,233],864:[,234],865:[,234],866:[,233],867:[,230],868:[,230],869:[,230],870:[,230],871:[,230],872:[,230],873:[,230],874:[,230],875:[,230],876:[,230],877:[,230],878:[,230],879:[,230],884:[[697]],890:[[32,837],256],894:[[59]],900:[[32,769],256],901:[[168,769]],902:[[913,769]],903:[[183]],904:[[917,769]],905:[[919,769]],906:[[921,769]],908:[[927,769]],910:[[933,769]],911:[[937,769]],912:[[970,769]],913:[,,{768:8122,769:902,772:8121,774:8120,787:7944,788:7945,837:8124}],917:[,,{768:8136,769:904,787:7960,788:7961}],919:[,,{768:8138,769:905,787:7976,788:7977,837:8140}],921:[,,{768:8154,769:906,772:8153,774:8152,776:938,787:7992,788:7993}],927:[,,{768:8184,769:908,787:8008,788:8009}],929:[,,{788:8172}],933:[,,{768:8170,769:910,772:8169,774:8168,776:939,788:8025}],937:[,,{768:8186,769:911,787:8040,788:8041,837:8188}],938:[[921,776]],939:[[933,776]],940:[[945,769],,{837:8116}],941:[[949,769]],942:[[951,769],,{837:8132}],943:[[953,769]],944:[[971,769]],945:[,,{768:8048,769:940,772:8113,774:8112,787:7936,788:7937,834:8118,837:8115}],949:[,,{768:8050,769:941,787:7952,788:7953}],951:[,,{768:8052,769:942,787:7968,788:7969,834:8134,837:8131}],953:[,,{768:8054,769:943,772:8145,774:8144,776:970,787:7984,788:7985,834:8150}],959:[,,{768:8056,769:972,787:8e3,788:8001}],961:[,,{787:8164,788:8165}],965:[,,{768:8058,769:973,772:8161,774:8160,776:971,787:8016,788:8017,834:8166}],969:[,,{768:8060,769:974,787:8032,788:8033,834:8182,837:8179}],970:[[953,776],,{768:8146,769:912,834:8151}],971:[[965,776],,{768:8162,769:944,834:8167}],972:[[959,769]],973:[[965,769]],974:[[969,769],,{837:8180}],976:[[946],256],977:[[952],256],978:[[933],256,{769:979,776:980}],979:[[978,769]],980:[[978,776]],981:[[966],256],982:[[960],256],1008:[[954],256],1009:[[961],256],1010:[[962],256],1012:[[920],256],1013:[[949],256],1017:[[931],256],66422:[,230],66423:[,230],66424:[,230],66425:[,230],66426:[,230]},1024:{1024:[[1045,768]],1025:[[1045,776]],1027:[[1043,769]],1030:[,,{776:1031}],1031:[[1030,776]],1036:[[1050,769]],1037:[[1048,768]],1038:[[1059,774]],1040:[,,{774:1232,776:1234}],1043:[,,{769:1027}],1045:[,,{768:1024,774:1238,776:1025}],1046:[,,{774:1217,776:1244}],1047:[,,{776:1246}],1048:[,,{768:1037,772:1250,774:1049,776:1252}],1049:[[1048,774]],1050:[,,{769:1036}],1054:[,,{776:1254}],1059:[,,{772:1262,774:1038,776:1264,779:1266}],1063:[,,{776:1268}],1067:[,,{776:1272}],1069:[,,{776:1260}],1072:[,,{774:1233,776:1235}],1075:[,,{769:1107}],1077:[,,{768:1104,774:1239,776:1105}],1078:[,,{774:1218,776:1245}],1079:[,,{776:1247}],1080:[,,{768:1117,772:1251,774:1081,776:1253}],1081:[[1080,774]],1082:[,,{769:1116}],1086:[,,{776:1255}],1091:[,,{772:1263,774:1118,776:1265,779:1267}],1095:[,,{776:1269}],1099:[,,{776:1273}],1101:[,,{776:1261}],1104:[[1077,768]],1105:[[1077,776]],1107:[[1075,769]],1110:[,,{776:1111}],1111:[[1110,776]],1116:[[1082,769]],1117:[[1080,768]],1118:[[1091,774]],1140:[,,{783:1142}],1141:[,,{783:1143}],1142:[[1140,783]],1143:[[1141,783]],1155:[,230],1156:[,230],1157:[,230],1158:[,230],1159:[,230],1217:[[1046,774]],1218:[[1078,774]],1232:[[1040,774]],1233:[[1072,774]],1234:[[1040,776]],1235:[[1072,776]],1238:[[1045,774]],1239:[[1077,774]],1240:[,,{776:1242}],1241:[,,{776:1243}],1242:[[1240,776]],1243:[[1241,776]],1244:[[1046,776]],1245:[[1078,776]],1246:[[1047,776]],1247:[[1079,776]],1250:[[1048,772]],1251:[[1080,772]],1252:[[1048,776]],1253:[[1080,776]],1254:[[1054,776]],1255:[[1086,776]],1256:[,,{776:1258}],1257:[,,{776:1259}],1258:[[1256,776]],1259:[[1257,776]],1260:[[1069,776]],1261:[[1101,776]],1262:[[1059,772]],1263:[[1091,772]],1264:[[1059,776]],1265:[[1091,776]],1266:[[1059,779]],1267:[[1091,779]],1268:[[1063,776]],1269:[[1095,776]],1272:[[1067,776]],1273:[[1099,776]]},1280:{1415:[[1381,1410],256],1425:[,220],1426:[,230],1427:[,230],1428:[,230],1429:[,230],1430:[,220],1431:[,230],1432:[,230],1433:[,230],1434:[,222],1435:[,220],1436:[,230],1437:[,230],1438:[,230],1439:[,230],1440:[,230],1441:[,230],1442:[,220],1443:[,220],1444:[,220],1445:[,220],1446:[,220],1447:[,220],1448:[,230],1449:[,230],1450:[,220],1451:[,230],1452:[,230],1453:[,222],1454:[,228],1455:[,230],1456:[,10],1457:[,11],1458:[,12],1459:[,13],1460:[,14],1461:[,15],1462:[,16],1463:[,17],1464:[,18],1465:[,19],1466:[,19],1467:[,20],1468:[,21],1469:[,22],1471:[,23],1473:[,24],1474:[,25],1476:[,230],1477:[,220],1479:[,18]},1536:{1552:[,230],1553:[,230],1554:[,230],1555:[,230],1556:[,230],1557:[,230],1558:[,230],1559:[,230],1560:[,30],1561:[,31],1562:[,32],1570:[[1575,1619]],1571:[[1575,1620]],1572:[[1608,1620]],1573:[[1575,1621]],1574:[[1610,1620]],1575:[,,{1619:1570,1620:1571,1621:1573}],1608:[,,{1620:1572}],1610:[,,{1620:1574}],1611:[,27],1612:[,28],1613:[,29],1614:[,30],1615:[,31],1616:[,32],1617:[,33],1618:[,34],1619:[,230],1620:[,230],1621:[,220],1622:[,220],1623:[,230],1624:[,230],1625:[,230],1626:[,230],1627:[,230],1628:[,220],1629:[,230],1630:[,230],1631:[,220],1648:[,35],1653:[[1575,1652],256],1654:[[1608,1652],256],1655:[[1735,1652],256],1656:[[1610,1652],256],1728:[[1749,1620]],1729:[,,{1620:1730}],1730:[[1729,1620]],1746:[,,{1620:1747}],1747:[[1746,1620]],1749:[,,{1620:1728}],1750:[,230],1751:[,230],1752:[,230],1753:[,230],1754:[,230],1755:[,230],1756:[,230],1759:[,230],1760:[,230],1761:[,230],1762:[,230],1763:[,220],1764:[,230],1767:[,230],1768:[,230],1770:[,220],1771:[,230],1772:[,230],1773:[,220]},1792:{1809:[,36],1840:[,230],1841:[,220],1842:[,230],1843:[,230],1844:[,220],1845:[,230],1846:[,230],1847:[,220],1848:[,220],1849:[,220],1850:[,230],1851:[,220],1852:[,220],1853:[,230],1854:[,220],1855:[,230],1856:[,230],1857:[,230],1858:[,220],1859:[,230],1860:[,220],1861:[,230],1862:[,220],1863:[,230],1864:[,220],1865:[,230],1866:[,230],2027:[,230],2028:[,230],2029:[,230],2030:[,230],2031:[,230],2032:[,230],2033:[,230],2034:[,220],2035:[,230]},2048:{2070:[,230],2071:[,230],2072:[,230],2073:[,230],2075:[,230],2076:[,230],2077:[,230],2078:[,230],2079:[,230],2080:[,230],2081:[,230],2082:[,230],2083:[,230],2085:[,230],2086:[,230],2087:[,230],2089:[,230],2090:[,230],2091:[,230],2092:[,230],2093:[,230],2137:[,220],2138:[,220],2139:[,220],2276:[,230],2277:[,230],2278:[,220],2279:[,230],2280:[,230],2281:[,220],2282:[,230],2283:[,230],2284:[,230],2285:[,220],2286:[,220],2287:[,220],2288:[,27],2289:[,28],2290:[,29],2291:[,230],2292:[,230],2293:[,230],2294:[,220],2295:[,230],2296:[,230],2297:[,220],2298:[,220],2299:[,230],2300:[,230],2301:[,230],2302:[,230],2303:[,230]},2304:{2344:[,,{2364:2345}],2345:[[2344,2364]],2352:[,,{2364:2353}],2353:[[2352,2364]],2355:[,,{2364:2356}],2356:[[2355,2364]],2364:[,7],2381:[,9],2385:[,230],2386:[,220],2387:[,230],2388:[,230],2392:[[2325,2364],512],2393:[[2326,2364],512],2394:[[2327,2364],512],2395:[[2332,2364],512],2396:[[2337,2364],512],2397:[[2338,2364],512],2398:[[2347,2364],512],2399:[[2351,2364],512],2492:[,7],2503:[,,{2494:2507,2519:2508}],2507:[[2503,2494]],2508:[[2503,2519]],2509:[,9],2524:[[2465,2492],512],2525:[[2466,2492],512],2527:[[2479,2492],512]},2560:{2611:[[2610,2620],512],2614:[[2616,2620],512],2620:[,7],2637:[,9],2649:[[2582,2620],512],2650:[[2583,2620],512],2651:[[2588,2620],512],2654:[[2603,2620],512],2748:[,7],2765:[,9],68109:[,220],68111:[,230],68152:[,230],68153:[,1],68154:[,220],68159:[,9],68325:[,230],68326:[,220]},2816:{2876:[,7],2887:[,,{2878:2891,2902:2888,2903:2892}],2888:[[2887,2902]],2891:[[2887,2878]],2892:[[2887,2903]],2893:[,9],2908:[[2849,2876],512],2909:[[2850,2876],512],2962:[,,{3031:2964}],2964:[[2962,3031]],3014:[,,{3006:3018,3031:3020}],3015:[,,{3006:3019}],3018:[[3014,3006]],3019:[[3015,3006]],3020:[[3014,3031]],3021:[,9]},3072:{3142:[,,{3158:3144}],3144:[[3142,3158]],3149:[,9],3157:[,84],3158:[,91],3260:[,7],3263:[,,{3285:3264}],3264:[[3263,3285]],3270:[,,{3266:3274,3285:3271,3286:3272}],3271:[[3270,3285]],3272:[[3270,3286]],3274:[[3270,3266],,{3285:3275}],3275:[[3274,3285]],3277:[,9]},3328:{3398:[,,{3390:3402,3415:3404}],3399:[,,{3390:3403}],3402:[[3398,3390]],3403:[[3399,3390]],3404:[[3398,3415]],3405:[,9],3530:[,9],3545:[,,{3530:3546,3535:3548,3551:3550}],3546:[[3545,3530]],3548:[[3545,3535],,{3530:3549}],3549:[[3548,3530]],3550:[[3545,3551]]},3584:{3635:[[3661,3634],256],3640:[,103],3641:[,103],3642:[,9],3656:[,107],3657:[,107],3658:[,107],3659:[,107],3763:[[3789,3762],256],3768:[,118],3769:[,118],3784:[,122],3785:[,122],3786:[,122],3787:[,122],3804:[[3755,3737],256],3805:[[3755,3745],256]},3840:{3852:[[3851],256],3864:[,220],3865:[,220],3893:[,220],3895:[,220],3897:[,216],3907:[[3906,4023],512],3917:[[3916,4023],512],3922:[[3921,4023],512],3927:[[3926,4023],512],3932:[[3931,4023],512],3945:[[3904,4021],512],3953:[,129],3954:[,130],3955:[[3953,3954],512],3956:[,132],3957:[[3953,3956],512],3958:[[4018,3968],512],3959:[[4018,3969],256],3960:[[4019,3968],512],3961:[[4019,3969],256],3962:[,130],3963:[,130],3964:[,130],3965:[,130],3968:[,130],3969:[[3953,3968],512],3970:[,230],3971:[,230],3972:[,9],3974:[,230],3975:[,230],3987:[[3986,4023],512],3997:[[3996,4023],512],4002:[[4001,4023],512],4007:[[4006,4023],512],4012:[[4011,4023],512],4025:[[3984,4021],512],4038:[,220]},4096:{4133:[,,{4142:4134}],4134:[[4133,4142]],4151:[,7],4153:[,9],4154:[,9],4237:[,220],4348:[[4316],256],69702:[,9],69759:[,9],69785:[,,{69818:69786}],69786:[[69785,69818]],69787:[,,{69818:69788}],69788:[[69787,69818]],69797:[,,{69818:69803}],69803:[[69797,69818]],69817:[,9],69818:[,7]},4352:{69888:[,230],69889:[,230],69890:[,230],69934:[[69937,69927]],69935:[[69938,69927]],69937:[,,{69927:69934}],69938:[,,{69927:69935}],69939:[,9],69940:[,9],70003:[,7],70080:[,9]},4608:{70197:[,9],70198:[,7],70377:[,7],70378:[,9]},4864:{4957:[,230],4958:[,230],4959:[,230],70460:[,7],70471:[,,{70462:70475,70487:70476}],70475:[[70471,70462]],70476:[[70471,70487]],70477:[,9],70502:[,230],70503:[,230],70504:[,230],70505:[,230],70506:[,230],70507:[,230],70508:[,230],70512:[,230],70513:[,230],70514:[,230],70515:[,230],70516:[,230]},5120:{70841:[,,{70832:70844,70842:70843,70845:70846}],70843:[[70841,70842]],70844:[[70841,70832]],70846:[[70841,70845]],70850:[,9],70851:[,7]},5376:{71096:[,,{71087:71098}],71097:[,,{71087:71099}],71098:[[71096,71087]],71099:[[71097,71087]],71103:[,9],71104:[,7]},5632:{71231:[,9],71350:[,9],71351:[,7]},5888:{5908:[,9],5940:[,9],6098:[,9],6109:[,230]},6144:{6313:[,228]},6400:{6457:[,222],6458:[,230],6459:[,220]},6656:{6679:[,230],6680:[,220],6752:[,9],6773:[,230],6774:[,230],6775:[,230],6776:[,230],6777:[,230],6778:[,230],6779:[,230],6780:[,230],6783:[,220],6832:[,230],6833:[,230],6834:[,230],6835:[,230],6836:[,230],6837:[,220],6838:[,220],6839:[,220],6840:[,220],6841:[,220],6842:[,220],6843:[,230],6844:[,230],6845:[,220]},6912:{6917:[,,{6965:6918}],6918:[[6917,6965]],6919:[,,{6965:6920}],6920:[[6919,6965]],6921:[,,{6965:6922}],6922:[[6921,6965]],6923:[,,{6965:6924}],6924:[[6923,6965]],6925:[,,{6965:6926}],6926:[[6925,6965]],6929:[,,{6965:6930}],6930:[[6929,6965]],6964:[,7],6970:[,,{6965:6971}],6971:[[6970,6965]],6972:[,,{6965:6973}],6973:[[6972,6965]],6974:[,,{6965:6976}],6975:[,,{6965:6977}],6976:[[6974,6965]],6977:[[6975,6965]],6978:[,,{6965:6979}],6979:[[6978,6965]],6980:[,9],7019:[,230],7020:[,220],7021:[,230],7022:[,230],7023:[,230],7024:[,230],7025:[,230],7026:[,230],7027:[,230],7082:[,9],7083:[,9],7142:[,7],7154:[,9],7155:[,9]},7168:{7223:[,7],7376:[,230],7377:[,230],7378:[,230],7380:[,1],7381:[,220],7382:[,220],7383:[,220],7384:[,220],7385:[,220],7386:[,230],7387:[,230],7388:[,220],7389:[,220],7390:[,220],7391:[,220],7392:[,230],7394:[,1],7395:[,1],7396:[,1],7397:[,1],7398:[,1],7399:[,1],7400:[,1],7405:[,220],7412:[,230],7416:[,230],7417:[,230]},7424:{7468:[[65],256],7469:[[198],256],7470:[[66],256],7472:[[68],256],7473:[[69],256],7474:[[398],256],7475:[[71],256],7476:[[72],256],7477:[[73],256],7478:[[74],256],7479:[[75],256],7480:[[76],256],7481:[[77],256],7482:[[78],256],7484:[[79],256],7485:[[546],256],7486:[[80],256],7487:[[82],256],7488:[[84],256],7489:[[85],256],7490:[[87],256],7491:[[97],256],7492:[[592],256],7493:[[593],256],7494:[[7426],256],7495:[[98],256],7496:[[100],256],7497:[[101],256],7498:[[601],256],7499:[[603],256],7500:[[604],256],7501:[[103],256],7503:[[107],256],7504:[[109],256],7505:[[331],256],7506:[[111],256],7507:[[596],256],7508:[[7446],256],7509:[[7447],256],7510:[[112],256],7511:[[116],256],7512:[[117],256],7513:[[7453],256],7514:[[623],256],7515:[[118],256],7516:[[7461],256],7517:[[946],256],7518:[[947],256],7519:[[948],256],7520:[[966],256],7521:[[967],256],7522:[[105],256],7523:[[114],256],7524:[[117],256],7525:[[118],256],7526:[[946],256],7527:[[947],256],7528:[[961],256],7529:[[966],256],7530:[[967],256],7544:[[1085],256],7579:[[594],256],7580:[[99],256],7581:[[597],256],7582:[[240],256],7583:[[604],256],7584:[[102],256],7585:[[607],256],7586:[[609],256],7587:[[613],256],7588:[[616],256],7589:[[617],256],7590:[[618],256],7591:[[7547],256],7592:[[669],256],7593:[[621],256],7594:[[7557],256],7595:[[671],256],7596:[[625],256],7597:[[624],256],7598:[[626],256],7599:[[627],256],7600:[[628],256],7601:[[629],256],7602:[[632],256],7603:[[642],256],7604:[[643],256],7605:[[427],256],7606:[[649],256],7607:[[650],256],7608:[[7452],256],7609:[[651],256],7610:[[652],256],7611:[[122],256],7612:[[656],256],7613:[[657],256],7614:[[658],256],7615:[[952],256],7616:[,230],7617:[,230],7618:[,220],7619:[,230],7620:[,230],7621:[,230],7622:[,230],7623:[,230],7624:[,230],7625:[,230],7626:[,220],7627:[,230],7628:[,230],7629:[,234],7630:[,214],7631:[,220],7632:[,202],7633:[,230],7634:[,230],7635:[,230],7636:[,230],7637:[,230],7638:[,230],7639:[,230],7640:[,230],7641:[,230],7642:[,230],7643:[,230],7644:[,230],7645:[,230],7646:[,230],7647:[,230],7648:[,230],7649:[,230],7650:[,230],7651:[,230],7652:[,230],7653:[,230],7654:[,230],7655:[,230],7656:[,230],7657:[,230],7658:[,230],7659:[,230],7660:[,230],7661:[,230],7662:[,230],7663:[,230],7664:[,230],7665:[,230],7666:[,230],7667:[,230],7668:[,230],7669:[,230],7676:[,233],7677:[,220],7678:[,230],7679:[,220]},7680:{7680:[[65,805]],7681:[[97,805]],7682:[[66,775]],7683:[[98,775]],7684:[[66,803]],7685:[[98,803]],7686:[[66,817]],7687:[[98,817]],7688:[[199,769]],7689:[[231,769]],7690:[[68,775]],7691:[[100,775]],7692:[[68,803]],7693:[[100,803]],7694:[[68,817]],7695:[[100,817]],7696:[[68,807]],7697:[[100,807]],7698:[[68,813]],7699:[[100,813]],7700:[[274,768]],7701:[[275,768]],7702:[[274,769]],7703:[[275,769]],7704:[[69,813]],7705:[[101,813]],7706:[[69,816]],7707:[[101,816]],7708:[[552,774]],7709:[[553,774]],7710:[[70,775]],7711:[[102,775]],7712:[[71,772]],7713:[[103,772]],7714:[[72,775]],7715:[[104,775]],7716:[[72,803]],7717:[[104,803]],7718:[[72,776]],7719:[[104,776]],7720:[[72,807]],7721:[[104,807]],7722:[[72,814]],7723:[[104,814]],7724:[[73,816]],7725:[[105,816]],7726:[[207,769]],7727:[[239,769]],7728:[[75,769]],7729:[[107,769]],7730:[[75,803]],7731:[[107,803]],7732:[[75,817]],7733:[[107,817]],7734:[[76,803],,{772:7736}],7735:[[108,803],,{772:7737}],7736:[[7734,772]],7737:[[7735,772]],7738:[[76,817]],7739:[[108,817]],7740:[[76,813]],7741:[[108,813]],7742:[[77,769]],7743:[[109,769]],7744:[[77,775]],7745:[[109,775]],7746:[[77,803]],7747:[[109,803]],7748:[[78,775]],7749:[[110,775]],7750:[[78,803]],7751:[[110,803]],7752:[[78,817]],7753:[[110,817]],7754:[[78,813]],7755:[[110,813]],7756:[[213,769]],7757:[[245,769]],7758:[[213,776]],7759:[[245,776]],7760:[[332,768]],7761:[[333,768]],7762:[[332,769]],7763:[[333,769]],7764:[[80,769]],7765:[[112,769]],7766:[[80,775]],7767:[[112,775]],7768:[[82,775]],7769:[[114,775]],7770:[[82,803],,{772:7772}],7771:[[114,803],,{772:7773}],7772:[[7770,772]],7773:[[7771,772]],7774:[[82,817]],7775:[[114,817]],7776:[[83,775]],7777:[[115,775]],7778:[[83,803],,{775:7784}],7779:[[115,803],,{775:7785}],7780:[[346,775]],7781:[[347,775]],7782:[[352,775]],7783:[[353,775]],7784:[[7778,775]],7785:[[7779,775]],7786:[[84,775]],7787:[[116,775]],7788:[[84,803]],7789:[[116,803]],7790:[[84,817]],7791:[[116,817]],7792:[[84,813]],7793:[[116,813]],7794:[[85,804]],7795:[[117,804]],7796:[[85,816]],7797:[[117,816]],7798:[[85,813]],7799:[[117,813]],7800:[[360,769]],7801:[[361,769]],7802:[[362,776]],7803:[[363,776]],7804:[[86,771]],7805:[[118,771]],7806:[[86,803]],7807:[[118,803]],7808:[[87,768]],7809:[[119,768]],7810:[[87,769]],7811:[[119,769]],7812:[[87,776]],7813:[[119,776]],7814:[[87,775]],7815:[[119,775]],7816:[[87,803]],7817:[[119,803]],7818:[[88,775]],7819:[[120,775]],7820:[[88,776]],7821:[[120,776]],7822:[[89,775]],7823:[[121,775]],7824:[[90,770]],7825:[[122,770]],7826:[[90,803]],7827:[[122,803]],7828:[[90,817]],7829:[[122,817]],7830:[[104,817]],7831:[[116,776]],7832:[[119,778]],7833:[[121,778]],7834:[[97,702],256],7835:[[383,775]],7840:[[65,803],,{770:7852,774:7862}],7841:[[97,803],,{770:7853,774:7863}],7842:[[65,777]],7843:[[97,777]],7844:[[194,769]],7845:[[226,769]],7846:[[194,768]],7847:[[226,768]],7848:[[194,777]],7849:[[226,777]],7850:[[194,771]],7851:[[226,771]],7852:[[7840,770]],7853:[[7841,770]],7854:[[258,769]],7855:[[259,769]],7856:[[258,768]],7857:[[259,768]],7858:[[258,777]],7859:[[259,777]],7860:[[258,771]],7861:[[259,771]],7862:[[7840,774]],7863:[[7841,774]],7864:[[69,803],,{770:7878}],7865:[[101,803],,{770:7879}],7866:[[69,777]],7867:[[101,777]],7868:[[69,771]],7869:[[101,771]],7870:[[202,769]],7871:[[234,769]],7872:[[202,768]],7873:[[234,768]],7874:[[202,777]],7875:[[234,777]],7876:[[202,771]],7877:[[234,771]],7878:[[7864,770]],7879:[[7865,770]],7880:[[73,777]],7881:[[105,777]],7882:[[73,803]],7883:[[105,803]],7884:[[79,803],,{770:7896}],7885:[[111,803],,{770:7897}],7886:[[79,777]],7887:[[111,777]],7888:[[212,769]],7889:[[244,769]],7890:[[212,768]],7891:[[244,768]],7892:[[212,777]],7893:[[244,777]],7894:[[212,771]],7895:[[244,771]],7896:[[7884,770]],7897:[[7885,770]],7898:[[416,769]],7899:[[417,769]],7900:[[416,768]],7901:[[417,768]],7902:[[416,777]],7903:[[417,777]],7904:[[416,771]],7905:[[417,771]],7906:[[416,803]],7907:[[417,803]],7908:[[85,803]],7909:[[117,803]],7910:[[85,777]],7911:[[117,777]],7912:[[431,769]],7913:[[432,769]],7914:[[431,768]],7915:[[432,768]],7916:[[431,777]],7917:[[432,777]],7918:[[431,771]],7919:[[432,771]],7920:[[431,803]],7921:[[432,803]],7922:[[89,768]],7923:[[121,768]],7924:[[89,803]],7925:[[121,803]],7926:[[89,777]],7927:[[121,777]],7928:[[89,771]],7929:[[121,771]]},7936:{7936:[[945,787],,{768:7938,769:7940,834:7942,837:8064}],7937:[[945,788],,{768:7939,769:7941,834:7943,837:8065}],7938:[[7936,768],,{837:8066}],7939:[[7937,768],,{837:8067}],7940:[[7936,769],,{837:8068}],7941:[[7937,769],,{837:8069}],7942:[[7936,834],,{837:8070}],7943:[[7937,834],,{837:8071}],7944:[[913,787],,{768:7946,769:7948,834:7950,837:8072}],7945:[[913,788],,{768:7947,769:7949,834:7951,837:8073}],7946:[[7944,768],,{837:8074}],7947:[[7945,768],,{837:8075}],7948:[[7944,769],,{837:8076}],7949:[[7945,769],,{837:8077}],7950:[[7944,834],,{837:8078}],7951:[[7945,834],,{837:8079}],7952:[[949,787],,{768:7954,769:7956}],7953:[[949,788],,{768:7955,769:7957}],7954:[[7952,768]],7955:[[7953,768]],7956:[[7952,769]],7957:[[7953,769]],7960:[[917,787],,{768:7962,769:7964}],7961:[[917,788],,{768:7963,769:7965}],7962:[[7960,768]],7963:[[7961,768]],7964:[[7960,769]],7965:[[7961,769]],7968:[[951,787],,{768:7970,769:7972,834:7974,837:8080}],7969:[[951,788],,{768:7971,769:7973,834:7975,837:8081}],7970:[[7968,768],,{837:8082}],7971:[[7969,768],,{837:8083}],7972:[[7968,769],,{837:8084}],7973:[[7969,769],,{837:8085}],7974:[[7968,834],,{837:8086}],7975:[[7969,834],,{837:8087}],7976:[[919,787],,{768:7978,769:7980,834:7982,837:8088}],7977:[[919,788],,{768:7979,769:7981,834:7983,837:8089}],7978:[[7976,768],,{837:8090}],7979:[[7977,768],,{837:8091}],7980:[[7976,769],,{837:8092}],7981:[[7977,769],,{837:8093}],7982:[[7976,834],,{837:8094}],7983:[[7977,834],,{837:8095}],7984:[[953,787],,{768:7986,769:7988,834:7990}],7985:[[953,788],,{768:7987,769:7989,834:7991}],7986:[[7984,768]],7987:[[7985,768]],7988:[[7984,769]],7989:[[7985,769]],7990:[[7984,834]],7991:[[7985,834]],7992:[[921,787],,{768:7994,769:7996,834:7998}],7993:[[921,788],,{768:7995,769:7997,834:7999}],7994:[[7992,768]],7995:[[7993,768]],7996:[[7992,769]],7997:[[7993,769]],7998:[[7992,834]],7999:[[7993,834]],8e3:[[959,787],,{768:8002,769:8004}],8001:[[959,788],,{768:8003,769:8005}],8002:[[8e3,768]],8003:[[8001,768]],8004:[[8e3,769]],8005:[[8001,769]],8008:[[927,787],,{768:8010,769:8012}],8009:[[927,788],,{768:8011,769:8013}],8010:[[8008,768]],8011:[[8009,768]],8012:[[8008,769]],8013:[[8009,769]],8016:[[965,787],,{768:8018,769:8020,834:8022}],8017:[[965,788],,{768:8019,769:8021,834:8023}],8018:[[8016,768]],8019:[[8017,768]],8020:[[8016,769]],8021:[[8017,769]],8022:[[8016,834]],8023:[[8017,834]],8025:[[933,788],,{768:8027,769:8029,834:8031}],8027:[[8025,768]],8029:[[8025,769]],8031:[[8025,834]],8032:[[969,787],,{768:8034,769:8036,834:8038,837:8096}],8033:[[969,788],,{768:8035,769:8037,834:8039,837:8097}],8034:[[8032,768],,{837:8098}],8035:[[8033,768],,{837:8099}],8036:[[8032,769],,{837:8100}],8037:[[8033,769],,{837:8101}],8038:[[8032,834],,{837:8102}],8039:[[8033,834],,{837:8103}],8040:[[937,787],,{768:8042,769:8044,834:8046,837:8104}],8041:[[937,788],,{768:8043,769:8045,834:8047,837:8105}],8042:[[8040,768],,{837:8106}],8043:[[8041,768],,{837:8107}],8044:[[8040,769],,{837:8108}],8045:[[8041,769],,{837:8109}],8046:[[8040,834],,{837:8110}],8047:[[8041,834],,{837:8111}],8048:[[945,768],,{837:8114}],8049:[[940]],8050:[[949,768]],8051:[[941]],8052:[[951,768],,{837:8130}],8053:[[942]],8054:[[953,768]],8055:[[943]],8056:[[959,768]],8057:[[972]],8058:[[965,768]],8059:[[973]],8060:[[969,768],,{837:8178}],8061:[[974]],8064:[[7936,837]],8065:[[7937,837]],8066:[[7938,837]],8067:[[7939,837]],8068:[[7940,837]],8069:[[7941,837]],8070:[[7942,837]],8071:[[7943,837]],8072:[[7944,837]],8073:[[7945,837]],8074:[[7946,837]],8075:[[7947,837]],8076:[[7948,837]],8077:[[7949,837]],8078:[[7950,837]],8079:[[7951,837]],8080:[[7968,837]],8081:[[7969,837]],8082:[[7970,837]],8083:[[7971,837]],8084:[[7972,837]],8085:[[7973,837]],8086:[[7974,837]],8087:[[7975,837]],8088:[[7976,837]],8089:[[7977,837]],8090:[[7978,837]],8091:[[7979,837]],8092:[[7980,837]],8093:[[7981,837]],8094:[[7982,837]],8095:[[7983,837]],8096:[[8032,837]],8097:[[8033,837]],8098:[[8034,837]],8099:[[8035,837]],8100:[[8036,837]],8101:[[8037,837]],8102:[[8038,837]],8103:[[8039,837]],8104:[[8040,837]],8105:[[8041,837]],8106:[[8042,837]],8107:[[8043,837]],8108:[[8044,837]],8109:[[8045,837]],8110:[[8046,837]],8111:[[8047,837]],8112:[[945,774]],8113:[[945,772]],8114:[[8048,837]],8115:[[945,837]],8116:[[940,837]],8118:[[945,834],,{837:8119}],8119:[[8118,837]],8120:[[913,774]],8121:[[913,772]],8122:[[913,768]],8123:[[902]],8124:[[913,837]],8125:[[32,787],256],8126:[[953]],8127:[[32,787],256,{768:8141,769:8142,834:8143}],8128:[[32,834],256],8129:[[168,834]],8130:[[8052,837]],8131:[[951,837]],8132:[[942,837]],8134:[[951,834],,{837:8135}],8135:[[8134,837]],8136:[[917,768]],8137:[[904]],8138:[[919,768]],8139:[[905]],8140:[[919,837]],8141:[[8127,768]],8142:[[8127,769]],8143:[[8127,834]],8144:[[953,774]],8145:[[953,772]],8146:[[970,768]],8147:[[912]],8150:[[953,834]],8151:[[970,834]],8152:[[921,774]],8153:[[921,772]],8154:[[921,768]],8155:[[906]],8157:[[8190,768]],8158:[[8190,769]],8159:[[8190,834]],8160:[[965,774]],8161:[[965,772]],8162:[[971,768]],8163:[[944]],8164:[[961,787]],8165:[[961,788]],8166:[[965,834]],8167:[[971,834]],8168:[[933,774]],8169:[[933,772]],8170:[[933,768]],8171:[[910]],8172:[[929,788]],8173:[[168,768]],8174:[[901]],8175:[[96]],8178:[[8060,837]],8179:[[969,837]],8180:[[974,837]],8182:[[969,834],,{837:8183}],8183:[[8182,837]],8184:[[927,768]],8185:[[908]],8186:[[937,768]],8187:[[911]],8188:[[937,837]],8189:[[180]],8190:[[32,788],256,{768:8157,769:8158,834:8159}]},8192:{8192:[[8194]],8193:[[8195]],8194:[[32],256],8195:[[32],256],8196:[[32],256],8197:[[32],256],8198:[[32],256],8199:[[32],256],8200:[[32],256],8201:[[32],256],8202:[[32],256],8209:[[8208],256],8215:[[32,819],256],8228:[[46],256],8229:[[46,46],256],8230:[[46,46,46],256],8239:[[32],256],8243:[[8242,8242],256],8244:[[8242,8242,8242],256],8246:[[8245,8245],256],8247:[[8245,8245,8245],256],8252:[[33,33],256],8254:[[32,773],256],8263:[[63,63],256],8264:[[63,33],256],8265:[[33,63],256],8279:[[8242,8242,8242,8242],256],8287:[[32],256],8304:[[48],256],8305:[[105],256],8308:[[52],256],8309:[[53],256],8310:[[54],256],8311:[[55],256],8312:[[56],256],8313:[[57],256],8314:[[43],256],8315:[[8722],256],8316:[[61],256],8317:[[40],256],8318:[[41],256],8319:[[110],256],8320:[[48],256],8321:[[49],256],8322:[[50],256],8323:[[51],256],8324:[[52],256],8325:[[53],256],8326:[[54],256],8327:[[55],256],8328:[[56],256],8329:[[57],256],8330:[[43],256],8331:[[8722],256],8332:[[61],256],8333:[[40],256],8334:[[41],256],8336:[[97],256],8337:[[101],256],8338:[[111],256],8339:[[120],256],8340:[[601],256],8341:[[104],256],8342:[[107],256],8343:[[108],256],8344:[[109],256],8345:[[110],256],8346:[[112],256],8347:[[115],256],8348:[[116],256],8360:[[82,115],256],8400:[,230],8401:[,230],8402:[,1],8403:[,1],8404:[,230],8405:[,230],8406:[,230],8407:[,230],8408:[,1],8409:[,1],8410:[,1],8411:[,230],8412:[,230],8417:[,230],8421:[,1],8422:[,1],8423:[,230],8424:[,220],8425:[,230],8426:[,1],8427:[,1],8428:[,220],8429:[,220],8430:[,220],8431:[,220],8432:[,230]},8448:{8448:[[97,47,99],256],8449:[[97,47,115],256],8450:[[67],256],8451:[[176,67],256],8453:[[99,47,111],256],8454:[[99,47,117],256],8455:[[400],256],8457:[[176,70],256],8458:[[103],256],8459:[[72],256],8460:[[72],256],8461:[[72],256],8462:[[104],256],8463:[[295],256],8464:[[73],256],8465:[[73],256],8466:[[76],256],8467:[[108],256],8469:[[78],256],8470:[[78,111],256],8473:[[80],256],8474:[[81],256],8475:[[82],256],8476:[[82],256],8477:[[82],256],8480:[[83,77],256],8481:[[84,69,76],256],8482:[[84,77],256],8484:[[90],256],8486:[[937]],8488:[[90],256],8490:[[75]],8491:[[197]],8492:[[66],256],8493:[[67],256],8495:[[101],256],8496:[[69],256],8497:[[70],256],8499:[[77],256],8500:[[111],256],8501:[[1488],256],8502:[[1489],256],8503:[[1490],256],8504:[[1491],256],8505:[[105],256],8507:[[70,65,88],256],8508:[[960],256],8509:[[947],256],8510:[[915],256],8511:[[928],256],8512:[[8721],256],8517:[[68],256],8518:[[100],256],8519:[[101],256],8520:[[105],256],8521:[[106],256],8528:[[49,8260,55],256],8529:[[49,8260,57],256],8530:[[49,8260,49,48],256],8531:[[49,8260,51],256],8532:[[50,8260,51],256],8533:[[49,8260,53],256],8534:[[50,8260,53],256],8535:[[51,8260,53],256],8536:[[52,8260,53],256],8537:[[49,8260,54],256],8538:[[53,8260,54],256],8539:[[49,8260,56],256],8540:[[51,8260,56],256],8541:[[53,8260,56],256],8542:[[55,8260,56],256],8543:[[49,8260],256],8544:[[73],256],8545:[[73,73],256],8546:[[73,73,73],256],8547:[[73,86],256],8548:[[86],256],8549:[[86,73],256],8550:[[86,73,73],256],8551:[[86,73,73,73],256],8552:[[73,88],256],8553:[[88],256],8554:[[88,73],256],8555:[[88,73,73],256],8556:[[76],256],8557:[[67],256],8558:[[68],256],8559:[[77],256],8560:[[105],256],8561:[[105,105],256],8562:[[105,105,105],256],8563:[[105,118],256],8564:[[118],256],8565:[[118,105],256],8566:[[118,105,105],256],8567:[[118,105,105,105],256],8568:[[105,120],256],8569:[[120],256],8570:[[120,105],256],8571:[[120,105,105],256],8572:[[108],256],8573:[[99],256],8574:[[100],256],8575:[[109],256],8585:[[48,8260,51],256],8592:[,,{824:8602}],8594:[,,{824:8603}],8596:[,,{824:8622}],8602:[[8592,824]],8603:[[8594,824]],8622:[[8596,824]],8653:[[8656,824]],8654:[[8660,824]],8655:[[8658,824]],8656:[,,{824:8653}],8658:[,,{824:8655}],8660:[,,{824:8654}]},8704:{8707:[,,{824:8708}],8708:[[8707,824]],8712:[,,{824:8713}],8713:[[8712,824]],8715:[,,{824:8716}],8716:[[8715,824]],8739:[,,{824:8740}],8740:[[8739,824]],8741:[,,{824:8742}],8742:[[8741,824]],8748:[[8747,8747],256],8749:[[8747,8747,8747],256],8751:[[8750,8750],256],8752:[[8750,8750,8750],256],8764:[,,{824:8769}],8769:[[8764,824]],8771:[,,{824:8772}],8772:[[8771,824]],8773:[,,{824:8775}],8775:[[8773,824]],8776:[,,{824:8777}],8777:[[8776,824]],8781:[,,{824:8813}],8800:[[61,824]],8801:[,,{824:8802}],8802:[[8801,824]],8804:[,,{824:8816}],8805:[,,{824:8817}],8813:[[8781,824]],8814:[[60,824]],8815:[[62,824]],8816:[[8804,824]],8817:[[8805,824]],8818:[,,{824:8820}],8819:[,,{824:8821}],8820:[[8818,824]],8821:[[8819,824]],8822:[,,{824:8824}],8823:[,,{824:8825}],8824:[[8822,824]],8825:[[8823,824]],8826:[,,{824:8832}],8827:[,,{824:8833}],8828:[,,{824:8928}],8829:[,,{824:8929}],8832:[[8826,824]],8833:[[8827,824]],8834:[,,{824:8836}],8835:[,,{824:8837}],8836:[[8834,824]],8837:[[8835,824]],8838:[,,{824:8840}],8839:[,,{824:8841}],8840:[[8838,824]],8841:[[8839,824]],8849:[,,{824:8930}],8850:[,,{824:8931}],8866:[,,{824:8876}],8872:[,,{824:8877}],8873:[,,{824:8878}],8875:[,,{824:8879}],8876:[[8866,824]],8877:[[8872,824]],8878:[[8873,824]],8879:[[8875,824]],8882:[,,{824:8938}],8883:[,,{824:8939}],8884:[,,{824:8940}],8885:[,,{824:8941}],8928:[[8828,824]],8929:[[8829,824]],8930:[[8849,824]],8931:[[8850,824]],8938:[[8882,824]],8939:[[8883,824]],8940:[[8884,824]],8941:[[8885,824]]},8960:{9001:[[12296]],9002:[[12297]]},9216:{9312:[[49],256],9313:[[50],256],9314:[[51],256],9315:[[52],256],9316:[[53],256],9317:[[54],256],9318:[[55],256],9319:[[56],256],9320:[[57],256],9321:[[49,48],256],9322:[[49,49],256],9323:[[49,50],256],9324:[[49,51],256],9325:[[49,52],256],9326:[[49,53],256],9327:[[49,54],256],9328:[[49,55],256],9329:[[49,56],256],9330:[[49,57],256],9331:[[50,48],256],9332:[[40,49,41],256],9333:[[40,50,41],256],9334:[[40,51,41],256],9335:[[40,52,41],256],9336:[[40,53,41],256],9337:[[40,54,41],256],9338:[[40,55,41],256],9339:[[40,56,41],256],9340:[[40,57,41],256],9341:[[40,49,48,41],256],9342:[[40,49,49,41],256],9343:[[40,49,50,41],256],9344:[[40,49,51,41],256],9345:[[40,49,52,41],256],9346:[[40,49,53,41],256],9347:[[40,49,54,41],256],9348:[[40,49,55,41],256],9349:[[40,49,56,41],256],9350:[[40,49,57,41],256],9351:[[40,50,48,41],256],9352:[[49,46],256],9353:[[50,46],256],9354:[[51,46],256],9355:[[52,46],256],9356:[[53,46],256],9357:[[54,46],256],9358:[[55,46],256],9359:[[56,46],256],9360:[[57,46],256],9361:[[49,48,46],256],9362:[[49,49,46],256],9363:[[49,50,46],256],9364:[[49,51,46],256],9365:[[49,52,46],256],9366:[[49,53,46],256],9367:[[49,54,46],256],9368:[[49,55,46],256],9369:[[49,56,46],256],9370:[[49,57,46],256],9371:[[50,48,46],256],9372:[[40,97,41],256],9373:[[40,98,41],256],9374:[[40,99,41],256],9375:[[40,100,41],256],9376:[[40,101,41],256],9377:[[40,102,41],256],9378:[[40,103,41],256],9379:[[40,104,41],256],9380:[[40,105,41],256],9381:[[40,106,41],256],9382:[[40,107,41],256],9383:[[40,108,41],256],9384:[[40,109,41],256],9385:[[40,110,41],256],9386:[[40,111,41],256],9387:[[40,112,41],256],9388:[[40,113,41],256],9389:[[40,114,41],256],9390:[[40,115,41],256],9391:[[40,116,41],256],9392:[[40,117,41],256],9393:[[40,118,41],256],9394:[[40,119,41],256],9395:[[40,120,41],256],9396:[[40,121,41],256],9397:[[40,122,41],256],9398:[[65],256],9399:[[66],256],9400:[[67],256],9401:[[68],256],9402:[[69],256],9403:[[70],256],9404:[[71],256],9405:[[72],256],9406:[[73],256],9407:[[74],256],9408:[[75],256],9409:[[76],256],9410:[[77],256],9411:[[78],256],9412:[[79],256],9413:[[80],256],9414:[[81],256],9415:[[82],256],9416:[[83],256],9417:[[84],256],9418:[[85],256],9419:[[86],256],9420:[[87],256],9421:[[88],256],9422:[[89],256],9423:[[90],256],9424:[[97],256],9425:[[98],256],9426:[[99],256],9427:[[100],256],9428:[[101],256],9429:[[102],256],9430:[[103],256],9431:[[104],256],9432:[[105],256],9433:[[106],256],9434:[[107],256],9435:[[108],256],9436:[[109],256],9437:[[110],256],9438:[[111],256],9439:[[112],256],9440:[[113],256],9441:[[114],256],9442:[[115],256],9443:[[116],256],9444:[[117],256],9445:[[118],256],9446:[[119],256],9447:[[120],256],9448:[[121],256],9449:[[122],256],9450:[[48],256]},10752:{10764:[[8747,8747,8747,8747],256],10868:[[58,58,61],256],10869:[[61,61],256],10870:[[61,61,61],256],10972:[[10973,824],512]},11264:{11388:[[106],256],11389:[[86],256],11503:[,230],11504:[,230],11505:[,230]},11520:{11631:[[11617],256],11647:[,9],11744:[,230],11745:[,230],11746:[,230],11747:[,230],11748:[,230],11749:[,230],11750:[,230],11751:[,230],11752:[,230],11753:[,230],11754:[,230],11755:[,230],11756:[,230],11757:[,230],11758:[,230],11759:[,230],11760:[,230],11761:[,230],11762:[,230],11763:[,230],11764:[,230],11765:[,230],11766:[,230],11767:[,230],11768:[,230],11769:[,230],11770:[,230],11771:[,230],11772:[,230],11773:[,230],11774:[,230],11775:[,230]},11776:{11935:[[27597],256],12019:[[40863],256]},12032:{12032:[[19968],256],12033:[[20008],256],12034:[[20022],256],12035:[[20031],256],12036:[[20057],256],12037:[[20101],256],12038:[[20108],256],12039:[[20128],256],12040:[[20154],256],12041:[[20799],256],12042:[[20837],256],12043:[[20843],256],12044:[[20866],256],12045:[[20886],256],12046:[[20907],256],12047:[[20960],256],12048:[[20981],256],12049:[[20992],256],12050:[[21147],256],12051:[[21241],256],12052:[[21269],256],12053:[[21274],256],12054:[[21304],256],12055:[[21313],256],12056:[[21340],256],12057:[[21353],256],12058:[[21378],256],12059:[[21430],256],12060:[[21448],256],12061:[[21475],256],12062:[[22231],256],12063:[[22303],256],12064:[[22763],256],12065:[[22786],256],12066:[[22794],256],12067:[[22805],256],12068:[[22823],256],12069:[[22899],256],12070:[[23376],256],12071:[[23424],256],12072:[[23544],256],12073:[[23567],256],12074:[[23586],256],12075:[[23608],256],12076:[[23662],256],12077:[[23665],256],12078:[[24027],256],12079:[[24037],256],12080:[[24049],256],12081:[[24062],256],12082:[[24178],256],12083:[[24186],256],12084:[[24191],256],12085:[[24308],256],12086:[[24318],256],12087:[[24331],256],12088:[[24339],256],12089:[[24400],256],12090:[[24417],256],12091:[[24435],256],12092:[[24515],256],12093:[[25096],256],12094:[[25142],256],12095:[[25163],256],12096:[[25903],256],12097:[[25908],256],12098:[[25991],256],12099:[[26007],256],12100:[[26020],256],12101:[[26041],256],12102:[[26080],256],12103:[[26085],256],12104:[[26352],256],12105:[[26376],256],12106:[[26408],256],12107:[[27424],256],12108:[[27490],256],12109:[[27513],256],12110:[[27571],256],12111:[[27595],256],12112:[[27604],256],12113:[[27611],256],12114:[[27663],256],12115:[[27668],256],12116:[[27700],256],12117:[[28779],256],12118:[[29226],256],12119:[[29238],256],12120:[[29243],256],12121:[[29247],256],12122:[[29255],256],12123:[[29273],256],12124:[[29275],256],12125:[[29356],256],12126:[[29572],256],12127:[[29577],256],12128:[[29916],256],12129:[[29926],256],12130:[[29976],256],12131:[[29983],256],12132:[[29992],256],12133:[[3e4],256],12134:[[30091],256],12135:[[30098],256],12136:[[30326],256],12137:[[30333],256],12138:[[30382],256],12139:[[30399],256],12140:[[30446],256],12141:[[30683],256],12142:[[30690],256],12143:[[30707],256],12144:[[31034],256],12145:[[31160],256],12146:[[31166],256],12147:[[31348],256],12148:[[31435],256],12149:[[31481],256],12150:[[31859],256],12151:[[31992],256],12152:[[32566],256],12153:[[32593],256],12154:[[32650],256],12155:[[32701],256],12156:[[32769],256],12157:[[32780],256],12158:[[32786],256],12159:[[32819],256],12160:[[32895],256],12161:[[32905],256],12162:[[33251],256],12163:[[33258],256],12164:[[33267],256],12165:[[33276],256],12166:[[33292],256],12167:[[33307],256],12168:[[33311],256],12169:[[33390],256],12170:[[33394],256],12171:[[33400],256],12172:[[34381],256],12173:[[34411],256],12174:[[34880],256],12175:[[34892],256],12176:[[34915],256],12177:[[35198],256],12178:[[35211],256],12179:[[35282],256],12180:[[35328],256],12181:[[35895],256],12182:[[35910],256],12183:[[35925],256],12184:[[35960],256],12185:[[35997],256],12186:[[36196],256],12187:[[36208],256],12188:[[36275],256],12189:[[36523],256],12190:[[36554],256],12191:[[36763],256],12192:[[36784],256],12193:[[36789],256],12194:[[37009],256],12195:[[37193],256],12196:[[37318],256],12197:[[37324],256],12198:[[37329],256],12199:[[38263],256],12200:[[38272],256],12201:[[38428],256],12202:[[38582],256],12203:[[38585],256],12204:[[38632],256],12205:[[38737],256],12206:[[38750],256],12207:[[38754],256],12208:[[38761],256],12209:[[38859],256],12210:[[38893],256],12211:[[38899],256],12212:[[38913],256],12213:[[39080],256],12214:[[39131],256],12215:[[39135],256],12216:[[39318],256],12217:[[39321],256],12218:[[39340],256],12219:[[39592],256],12220:[[39640],256],12221:[[39647],256],12222:[[39717],256],12223:[[39727],256],12224:[[39730],256],12225:[[39740],256],12226:[[39770],256],12227:[[40165],256],12228:[[40565],256],12229:[[40575],256],12230:[[40613],256],12231:[[40635],256],12232:[[40643],256],12233:[[40653],256],12234:[[40657],256],12235:[[40697],256],12236:[[40701],256],12237:[[40718],256],12238:[[40723],256],12239:[[40736],256],12240:[[40763],256],12241:[[40778],256],12242:[[40786],256],12243:[[40845],256],12244:[[40860],256],12245:[[40864],256]},12288:{12288:[[32],256],12330:[,218],12331:[,228],12332:[,232],12333:[,222],12334:[,224],12335:[,224],12342:[[12306],256],12344:[[21313],256],12345:[[21316],256],12346:[[21317],256],12358:[,,{12441:12436}],12363:[,,{12441:12364}],12364:[[12363,12441]],12365:[,,{12441:12366}],12366:[[12365,12441]],12367:[,,{12441:12368}],12368:[[12367,12441]],12369:[,,{12441:12370}],12370:[[12369,12441]],12371:[,,{12441:12372}],12372:[[12371,12441]],12373:[,,{12441:12374}],12374:[[12373,12441]],12375:[,,{12441:12376}],12376:[[12375,12441]],12377:[,,{12441:12378}],12378:[[12377,12441]],12379:[,,{12441:12380}],12380:[[12379,12441]],12381:[,,{12441:12382}],12382:[[12381,12441]],12383:[,,{12441:12384}],12384:[[12383,12441]],12385:[,,{12441:12386}],12386:[[12385,12441]],12388:[,,{12441:12389}],12389:[[12388,12441]],12390:[,,{12441:12391}],12391:[[12390,12441]],12392:[,,{12441:12393}],12393:[[12392,12441]],12399:[,,{12441:12400,12442:12401}],12400:[[12399,12441]],12401:[[12399,12442]],12402:[,,{12441:12403,12442:12404}],12403:[[12402,12441]],12404:[[12402,12442]],12405:[,,{12441:12406,12442:12407}],12406:[[12405,12441]],12407:[[12405,12442]],12408:[,,{12441:12409,12442:12410}],12409:[[12408,12441]],12410:[[12408,12442]],12411:[,,{12441:12412,12442:12413}],12412:[[12411,12441]],12413:[[12411,12442]],12436:[[12358,12441]],12441:[,8],12442:[,8],12443:[[32,12441],256],12444:[[32,12442],256],12445:[,,{12441:12446}],12446:[[12445,12441]],12447:[[12424,12426],256],12454:[,,{12441:12532}],12459:[,,{12441:12460}],12460:[[12459,12441]],12461:[,,{12441:12462}],12462:[[12461,12441]],12463:[,,{12441:12464}],12464:[[12463,12441]],12465:[,,{12441:12466}],12466:[[12465,12441]],12467:[,,{12441:12468}],12468:[[12467,12441]],12469:[,,{12441:12470}],12470:[[12469,12441]],12471:[,,{12441:12472}],12472:[[12471,12441]],12473:[,,{12441:12474}],12474:[[12473,12441]],12475:[,,{12441:12476}],12476:[[12475,12441]],12477:[,,{12441:12478}],12478:[[12477,12441]],12479:[,,{12441:12480}],12480:[[12479,12441]],12481:[,,{12441:12482}],12482:[[12481,12441]],12484:[,,{12441:12485}],12485:[[12484,12441]],12486:[,,{12441:12487}],12487:[[12486,12441]],12488:[,,{12441:12489}],12489:[[12488,12441]],12495:[,,{12441:12496,12442:12497}],12496:[[12495,12441]],12497:[[12495,12442]],12498:[,,{12441:12499,12442:12500}],12499:[[12498,12441]],12500:[[12498,12442]],12501:[,,{12441:12502,12442:12503}],12502:[[12501,12441]],12503:[[12501,12442]],12504:[,,{12441:12505,12442:12506}],12505:[[12504,12441]],12506:[[12504,12442]],12507:[,,{12441:12508,12442:12509}],12508:[[12507,12441]],12509:[[12507,12442]],12527:[,,{12441:12535}],12528:[,,{12441:12536}],12529:[,,{12441:12537}],12530:[,,{12441:12538}],12532:[[12454,12441]],12535:[[12527,12441]],12536:[[12528,12441]],12537:[[12529,12441]],12538:[[12530,12441]],12541:[,,{12441:12542}],12542:[[12541,12441]],12543:[[12467,12488],256]},12544:{12593:[[4352],256],12594:[[4353],256],12595:[[4522],256],12596:[[4354],256],12597:[[4524],256],12598:[[4525],256],12599:[[4355],256],12600:[[4356],256],12601:[[4357],256],12602:[[4528],256],12603:[[4529],256],12604:[[4530],256],12605:[[4531],256],12606:[[4532],256],12607:[[4533],256],12608:[[4378],256],12609:[[4358],256],12610:[[4359],256],12611:[[4360],256],12612:[[4385],256],12613:[[4361],256],12614:[[4362],256],12615:[[4363],256],12616:[[4364],256],12617:[[4365],256],12618:[[4366],256],12619:[[4367],256],12620:[[4368],256],12621:[[4369],256],12622:[[4370],256],12623:[[4449],256],12624:[[4450],256],12625:[[4451],256],12626:[[4452],256],12627:[[4453],256],12628:[[4454],256],12629:[[4455],256],12630:[[4456],256],12631:[[4457],256],12632:[[4458],256],12633:[[4459],256],12634:[[4460],256],12635:[[4461],256],12636:[[4462],256],12637:[[4463],256],12638:[[4464],256],12639:[[4465],256],12640:[[4466],256],12641:[[4467],256],12642:[[4468],256],12643:[[4469],256],12644:[[4448],256],12645:[[4372],256],12646:[[4373],256],12647:[[4551],256],12648:[[4552],256],12649:[[4556],256],12650:[[4558],256],12651:[[4563],256],12652:[[4567],256],12653:[[4569],256],12654:[[4380],256],12655:[[4573],256],12656:[[4575],256],12657:[[4381],256],12658:[[4382],256],12659:[[4384],256],12660:[[4386],256],12661:[[4387],256],12662:[[4391],256],12663:[[4393],256],12664:[[4395],256],12665:[[4396],256],12666:[[4397],256],12667:[[4398],256],12668:[[4399],256],12669:[[4402],256],12670:[[4406],256],12671:[[4416],256],12672:[[4423],256],12673:[[4428],256],12674:[[4593],256],12675:[[4594],256],12676:[[4439],256],12677:[[4440],256],12678:[[4441],256],12679:[[4484],256],12680:[[4485],256],12681:[[4488],256],12682:[[4497],256],12683:[[4498],256],12684:[[4500],256],12685:[[4510],256],12686:[[4513],256],12690:[[19968],256],12691:[[20108],256],12692:[[19977],256],12693:[[22235],256],12694:[[19978],256],12695:[[20013],256],12696:[[19979],256],12697:[[30002],256],12698:[[20057],256],12699:[[19993],256],12700:[[19969],256],12701:[[22825],256],12702:[[22320],256],12703:[[20154],256]},12800:{12800:[[40,4352,41],256],12801:[[40,4354,41],256],12802:[[40,4355,41],256],12803:[[40,4357,41],256],12804:[[40,4358,41],256],12805:[[40,4359,41],256],12806:[[40,4361,41],256],12807:[[40,4363,41],256],12808:[[40,4364,41],256],12809:[[40,4366,41],256],12810:[[40,4367,41],256],12811:[[40,4368,41],256],12812:[[40,4369,41],256],12813:[[40,4370,41],256],12814:[[40,4352,4449,41],256],12815:[[40,4354,4449,41],256],12816:[[40,4355,4449,41],256],12817:[[40,4357,4449,41],256],12818:[[40,4358,4449,41],256],12819:[[40,4359,4449,41],256],12820:[[40,4361,4449,41],256],12821:[[40,4363,4449,41],256],12822:[[40,4364,4449,41],256],12823:[[40,4366,4449,41],256],12824:[[40,4367,4449,41],256],12825:[[40,4368,4449,41],256],12826:[[40,4369,4449,41],256],12827:[[40,4370,4449,41],256],12828:[[40,4364,4462,41],256],12829:[[40,4363,4457,4364,4453,4523,41],256],12830:[[40,4363,4457,4370,4462,41],256],12832:[[40,19968,41],256],12833:[[40,20108,41],256],12834:[[40,19977,41],256],12835:[[40,22235,41],256],12836:[[40,20116,41],256],12837:[[40,20845,41],256],12838:[[40,19971,41],256],12839:[[40,20843,41],256],12840:[[40,20061,41],256],12841:[[40,21313,41],256],12842:[[40,26376,41],256],12843:[[40,28779,41],256],12844:[[40,27700,41],256],12845:[[40,26408,41],256],12846:[[40,37329,41],256],12847:[[40,22303,41],256],12848:[[40,26085,41],256],12849:[[40,26666,41],256],12850:[[40,26377,41],256],12851:[[40,31038,41],256],12852:[[40,21517,41],256],12853:[[40,29305,41],256],12854:[[40,36001,41],256],12855:[[40,31069,41],256],12856:[[40,21172,41],256],12857:[[40,20195,41],256],12858:[[40,21628,41],256],12859:[[40,23398,41],256],12860:[[40,30435,41],256],12861:[[40,20225,41],256],12862:[[40,36039,41],256],12863:[[40,21332,41],256],12864:[[40,31085,41],256],12865:[[40,20241,41],256],12866:[[40,33258,41],256],12867:[[40,33267,41],256],12868:[[21839],256],12869:[[24188],256],12870:[[25991],256],12871:[[31631],256],12880:[[80,84,69],256],12881:[[50,49],256],12882:[[50,50],256],12883:[[50,51],256],12884:[[50,52],256],12885:[[50,53],256],12886:[[50,54],256],12887:[[50,55],256],12888:[[50,56],256],12889:[[50,57],256],12890:[[51,48],256],12891:[[51,49],256],12892:[[51,50],256],12893:[[51,51],256],12894:[[51,52],256],12895:[[51,53],256],12896:[[4352],256],12897:[[4354],256],12898:[[4355],256],12899:[[4357],256],12900:[[4358],256],12901:[[4359],256],12902:[[4361],256],12903:[[4363],256],12904:[[4364],256],12905:[[4366],256],12906:[[4367],256],12907:[[4368],256],12908:[[4369],256],12909:[[4370],256],12910:[[4352,4449],256],12911:[[4354,4449],256],12912:[[4355,4449],256],12913:[[4357,4449],256],12914:[[4358,4449],256],12915:[[4359,4449],256],12916:[[4361,4449],256],12917:[[4363,4449],256],12918:[[4364,4449],256],12919:[[4366,4449],256],12920:[[4367,4449],256],12921:[[4368,4449],256],12922:[[4369,4449],256],12923:[[4370,4449],256],12924:[[4366,4449,4535,4352,4457],256],12925:[[4364,4462,4363,4468],256],12926:[[4363,4462],256],12928:[[19968],256],12929:[[20108],256],12930:[[19977],256],12931:[[22235],256],12932:[[20116],256],12933:[[20845],256],12934:[[19971],256],12935:[[20843],256],12936:[[20061],256],12937:[[21313],256],12938:[[26376],256],12939:[[28779],256],12940:[[27700],256],12941:[[26408],256],12942:[[37329],256],12943:[[22303],256],12944:[[26085],256],12945:[[26666],256],12946:[[26377],256],12947:[[31038],256],12948:[[21517],256],12949:[[29305],256],12950:[[36001],256],12951:[[31069],256],12952:[[21172],256],12953:[[31192],256],12954:[[30007],256],12955:[[22899],256],12956:[[36969],256],12957:[[20778],256],12958:[[21360],256],12959:[[27880],256],12960:[[38917],256],12961:[[20241],256],12962:[[20889],256],12963:[[27491],256],12964:[[19978],256],12965:[[20013],256],12966:[[19979],256],12967:[[24038],256],12968:[[21491],256],12969:[[21307],256],12970:[[23447],256],12971:[[23398],256],12972:[[30435],256],12973:[[20225],256],12974:[[36039],256],12975:[[21332],256],12976:[[22812],256],12977:[[51,54],256],12978:[[51,55],256],12979:[[51,56],256],12980:[[51,57],256],12981:[[52,48],256],12982:[[52,49],256],12983:[[52,50],256],12984:[[52,51],256],12985:[[52,52],256],12986:[[52,53],256],12987:[[52,54],256],12988:[[52,55],256],12989:[[52,56],256],12990:[[52,57],256],12991:[[53,48],256],12992:[[49,26376],256],12993:[[50,26376],256],12994:[[51,26376],256],12995:[[52,26376],256],12996:[[53,26376],256],12997:[[54,26376],256],12998:[[55,26376],256],12999:[[56,26376],256],13e3:[[57,26376],256],13001:[[49,48,26376],256],13002:[[49,49,26376],256],13003:[[49,50,26376],256],13004:[[72,103],256],13005:[[101,114,103],256],13006:[[101,86],256],13007:[[76,84,68],256],13008:[[12450],256],13009:[[12452],256],13010:[[12454],256],13011:[[12456],256],13012:[[12458],256],13013:[[12459],256],13014:[[12461],256],13015:[[12463],256],13016:[[12465],256],13017:[[12467],256],13018:[[12469],256],13019:[[12471],256],13020:[[12473],256],13021:[[12475],256],13022:[[12477],256],13023:[[12479],256],13024:[[12481],256],13025:[[12484],256],13026:[[12486],256],13027:[[12488],256],13028:[[12490],256],13029:[[12491],256],13030:[[12492],256],13031:[[12493],256],13032:[[12494],256],13033:[[12495],256],13034:[[12498],256],13035:[[12501],256],13036:[[12504],256],13037:[[12507],256],13038:[[12510],256],13039:[[12511],256],13040:[[12512],256],13041:[[12513],256],13042:[[12514],256],13043:[[12516],256],13044:[[12518],256],13045:[[12520],256],13046:[[12521],256],13047:[[12522],256],13048:[[12523],256],13049:[[12524],256],13050:[[12525],256],13051:[[12527],256],13052:[[12528],256],13053:[[12529],256],13054:[[12530],256]},13056:{13056:[[12450,12497,12540,12488],256],13057:[[12450,12523,12501,12449],256],13058:[[12450,12531,12506,12450],256],13059:[[12450,12540,12523],256],13060:[[12452,12491,12531,12464],256],13061:[[12452,12531,12481],256],13062:[[12454,12457,12531],256],13063:[[12456,12473,12463,12540,12489],256],13064:[[12456,12540,12459,12540],256],13065:[[12458,12531,12473],256],13066:[[12458,12540,12512],256],13067:[[12459,12452,12522],256],13068:[[12459,12521,12483,12488],256],13069:[[12459,12525,12522,12540],256],13070:[[12460,12525,12531],256],13071:[[12460,12531,12510],256],13072:[[12462,12460],256],13073:[[12462,12491,12540],256],13074:[[12461,12517,12522,12540],256],13075:[[12462,12523,12480,12540],256],13076:[[12461,12525],256],13077:[[12461,12525,12464,12521,12512],256],13078:[[12461,12525,12513,12540,12488,12523],256],13079:[[12461,12525,12527,12483,12488],256],13080:[[12464,12521,12512],256],13081:[[12464,12521,12512,12488,12531],256],13082:[[12463,12523,12476,12452,12525],256],13083:[[12463,12525,12540,12493],256],13084:[[12465,12540,12473],256],13085:[[12467,12523,12490],256],13086:[[12467,12540,12509],256],13087:[[12469,12452,12463,12523],256],13088:[[12469,12531,12481,12540,12512],256],13089:[[12471,12522,12531,12464],256],13090:[[12475,12531,12481],256],13091:[[12475,12531,12488],256],13092:[[12480,12540,12473],256],13093:[[12487,12471],256],13094:[[12489,12523],256],13095:[[12488,12531],256],13096:[[12490,12494],256],13097:[[12494,12483,12488],256],13098:[[12495,12452,12484],256],13099:[[12497,12540,12475,12531,12488],256],13100:[[12497,12540,12484],256],13101:[[12496,12540,12524,12523],256],13102:[[12500,12450,12473,12488,12523],256],13103:[[12500,12463,12523],256],13104:[[12500,12467],256],13105:[[12499,12523],256],13106:[[12501,12449,12521,12483,12489],256],13107:[[12501,12451,12540,12488],256],13108:[[12502,12483,12471,12455,12523],256],13109:[[12501,12521,12531],256],13110:[[12504,12463,12479,12540,12523],256],13111:[[12506,12477],256],13112:[[12506,12491,12498],256],13113:[[12504,12523,12484],256],13114:[[12506,12531,12473],256],13115:[[12506,12540,12472],256],13116:[[12505,12540,12479],256],13117:[[12509,12452,12531,12488],256],13118:[[12508,12523,12488],256],13119:[[12507,12531],256],13120:[[12509,12531,12489],256],13121:[[12507,12540,12523],256],13122:[[12507,12540,12531],256],13123:[[12510,12452,12463,12525],256],13124:[[12510,12452,12523],256],13125:[[12510,12483,12495],256],13126:[[12510,12523,12463],256],13127:[[12510,12531,12471,12519,12531],256],13128:[[12511,12463,12525,12531],256],13129:[[12511,12522],256],13130:[[12511,12522,12496,12540,12523],256],13131:[[12513,12460],256],13132:[[12513,12460,12488,12531],256],13133:[[12513,12540,12488,12523],256],13134:[[12516,12540,12489],256],13135:[[12516,12540,12523],256],13136:[[12518,12450,12531],256],13137:[[12522,12483,12488,12523],256],13138:[[12522,12521],256],13139:[[12523,12500,12540],256],13140:[[12523,12540,12502,12523],256],13141:[[12524,12512],256],13142:[[12524,12531,12488,12466,12531],256],13143:[[12527,12483,12488],256],13144:[[48,28857],256],13145:[[49,28857],256],13146:[[50,28857],256],13147:[[51,28857],256],13148:[[52,28857],256],13149:[[53,28857],256],13150:[[54,28857],256],13151:[[55,28857],256],13152:[[56,28857],256],13153:[[57,28857],256],13154:[[49,48,28857],256],13155:[[49,49,28857],256],13156:[[49,50,28857],256],13157:[[49,51,28857],256],13158:[[49,52,28857],256],13159:[[49,53,28857],256],13160:[[49,54,28857],256],13161:[[49,55,28857],256],13162:[[49,56,28857],256],13163:[[49,57,28857],256],13164:[[50,48,28857],256],13165:[[50,49,28857],256],13166:[[50,50,28857],256],13167:[[50,51,28857],256],13168:[[50,52,28857],256],13169:[[104,80,97],256],13170:[[100,97],256],13171:[[65,85],256],13172:[[98,97,114],256],13173:[[111,86],256],13174:[[112,99],256],13175:[[100,109],256],13176:[[100,109,178],256],13177:[[100,109,179],256],13178:[[73,85],256],13179:[[24179,25104],256],13180:[[26157,21644],256],13181:[[22823,27491],256],13182:[[26126,27835],256],13183:[[26666,24335,20250,31038],256],13184:[[112,65],256],13185:[[110,65],256],13186:[[956,65],256],13187:[[109,65],256],13188:[[107,65],256],13189:[[75,66],256],13190:[[77,66],256],13191:[[71,66],256],13192:[[99,97,108],256],13193:[[107,99,97,108],256],13194:[[112,70],256],13195:[[110,70],256],13196:[[956,70],256],13197:[[956,103],256],13198:[[109,103],256],13199:[[107,103],256],13200:[[72,122],256],13201:[[107,72,122],256],13202:[[77,72,122],256],13203:[[71,72,122],256],13204:[[84,72,122],256],13205:[[956,8467],256],13206:[[109,8467],256],13207:[[100,8467],256],13208:[[107,8467],256],13209:[[102,109],256],13210:[[110,109],256],13211:[[956,109],256],13212:[[109,109],256],13213:[[99,109],256],13214:[[107,109],256],13215:[[109,109,178],256],13216:[[99,109,178],256],13217:[[109,178],256],13218:[[107,109,178],256],13219:[[109,109,179],256],13220:[[99,109,179],256],13221:[[109,179],256],13222:[[107,109,179],256],13223:[[109,8725,115],256],13224:[[109,8725,115,178],256],13225:[[80,97],256],13226:[[107,80,97],256],13227:[[77,80,97],256],13228:[[71,80,97],256],13229:[[114,97,100],256],13230:[[114,97,100,8725,115],256],13231:[[114,97,100,8725,115,178],256],13232:[[112,115],256],13233:[[110,115],256],13234:[[956,115],256],13235:[[109,115],256],13236:[[112,86],256],13237:[[110,86],256],13238:[[956,86],256],13239:[[109,86],256],13240:[[107,86],256],13241:[[77,86],256],13242:[[112,87],256],13243:[[110,87],256],13244:[[956,87],256],13245:[[109,87],256],13246:[[107,87],256],13247:[[77,87],256],13248:[[107,937],256],13249:[[77,937],256],13250:[[97,46,109,46],256],13251:[[66,113],256],13252:[[99,99],256],13253:[[99,100],256],13254:[[67,8725,107,103],256],13255:[[67,111,46],256],13256:[[100,66],256],13257:[[71,121],256],13258:[[104,97],256],13259:[[72,80],256],13260:[[105,110],256],13261:[[75,75],256],13262:[[75,77],256],13263:[[107,116],256],13264:[[108,109],256],13265:[[108,110],256],13266:[[108,111,103],256],13267:[[108,120],256],13268:[[109,98],256],13269:[[109,105,108],256],13270:[[109,111,108],256],13271:[[80,72],256],13272:[[112,46,109,46],256],13273:[[80,80,77],256],13274:[[80,82],256],13275:[[115,114],256],13276:[[83,118],256],13277:[[87,98],256],13278:[[86,8725,109],256],13279:[[65,8725,109],256],13280:[[49,26085],256],13281:[[50,26085],256],13282:[[51,26085],256],13283:[[52,26085],256],13284:[[53,26085],256],13285:[[54,26085],256],13286:[[55,26085],256],13287:[[56,26085],256],13288:[[57,26085],256],13289:[[49,48,26085],256],13290:[[49,49,26085],256],13291:[[49,50,26085],256],13292:[[49,51,26085],256],13293:[[49,52,26085],256],13294:[[49,53,26085],256],13295:[[49,54,26085],256],13296:[[49,55,26085],256],13297:[[49,56,26085],256],13298:[[49,57,26085],256],13299:[[50,48,26085],256],13300:[[50,49,26085],256],13301:[[50,50,26085],256],13302:[[50,51,26085],256],13303:[[50,52,26085],256],13304:[[50,53,26085],256],13305:[[50,54,26085],256],13306:[[50,55,26085],256],13307:[[50,56,26085],256],13308:[[50,57,26085],256],13309:[[51,48,26085],256],13310:[[51,49,26085],256],13311:[[103,97,108],256]},27136:{92912:[,1],92913:[,1],92914:[,1],92915:[,1],92916:[,1]},27392:{92976:[,230],92977:[,230],92978:[,230],92979:[,230],92980:[,230],92981:[,230],92982:[,230]},42496:{42607:[,230],42612:[,230],42613:[,230],42614:[,230],42615:[,230],42616:[,230],42617:[,230],42618:[,230],42619:[,230],42620:[,230],42621:[,230],42652:[[1098],256],42653:[[1100],256],42655:[,230],42736:[,230],42737:[,230]},42752:{42864:[[42863],256],43e3:[[294],256],43001:[[339],256]},43008:{43014:[,9],43204:[,9],43232:[,230],43233:[,230],43234:[,230],43235:[,230],43236:[,230],43237:[,230],43238:[,230],43239:[,230],43240:[,230],43241:[,230],43242:[,230],43243:[,230],43244:[,230],43245:[,230],43246:[,230],43247:[,230],43248:[,230],43249:[,230]},43264:{43307:[,220],43308:[,220],43309:[,220],43347:[,9],43443:[,7],43456:[,9]},43520:{43696:[,230],43698:[,230],43699:[,230],43700:[,220],43703:[,230],43704:[,230],43710:[,230],43711:[,230],43713:[,230],43766:[,9]},43776:{43868:[[42791],256],43869:[[43831],256],43870:[[619],256],43871:[[43858],256],44013:[,9]},48128:{113822:[,1]},53504:{119134:[[119127,119141],512],119135:[[119128,119141],512],119136:[[119135,119150],512],119137:[[119135,119151],512],119138:[[119135,119152],512],119139:[[119135,119153],512],119140:[[119135,119154],512],119141:[,216],119142:[,216],119143:[,1],119144:[,1],119145:[,1],119149:[,226],119150:[,216],119151:[,216],119152:[,216],119153:[,216],119154:[,216],119163:[,220],119164:[,220],119165:[,220],119166:[,220],119167:[,220],119168:[,220],119169:[,220],119170:[,220],119173:[,230],119174:[,230],119175:[,230],119176:[,230],119177:[,230],119178:[,220],119179:[,220],119210:[,230],119211:[,230],119212:[,230],119213:[,230],119227:[[119225,119141],512],119228:[[119226,119141],512],119229:[[119227,119150],512],119230:[[119228,119150],512],119231:[[119227,119151],512],119232:[[119228,119151],512]},53760:{119362:[,230],119363:[,230],119364:[,230]},54272:{119808:[[65],256],119809:[[66],256],119810:[[67],256],119811:[[68],256],119812:[[69],256],119813:[[70],256],119814:[[71],256],119815:[[72],256],119816:[[73],256],119817:[[74],256],119818:[[75],256],119819:[[76],256],119820:[[77],256],119821:[[78],256],119822:[[79],256],119823:[[80],256],119824:[[81],256],119825:[[82],256],119826:[[83],256],119827:[[84],256],119828:[[85],256],119829:[[86],256],119830:[[87],256],119831:[[88],256],119832:[[89],256],119833:[[90],256],119834:[[97],256],119835:[[98],256],119836:[[99],256],119837:[[100],256],119838:[[101],256],119839:[[102],256],119840:[[103],256],119841:[[104],256],119842:[[105],256],119843:[[106],256],119844:[[107],256],119845:[[108],256],119846:[[109],256],119847:[[110],256],119848:[[111],256],119849:[[112],256],119850:[[113],256],119851:[[114],256],119852:[[115],256],119853:[[116],256],119854:[[117],256],119855:[[118],256],119856:[[119],256],119857:[[120],256],119858:[[121],256],119859:[[122],256],119860:[[65],256],119861:[[66],256],119862:[[67],256],119863:[[68],256],119864:[[69],256],119865:[[70],256],119866:[[71],256],119867:[[72],256],119868:[[73],256],119869:[[74],256],119870:[[75],256],119871:[[76],256],119872:[[77],256],119873:[[78],256],119874:[[79],256],119875:[[80],256],119876:[[81],256],119877:[[82],256],119878:[[83],256],119879:[[84],256],119880:[[85],256],119881:[[86],256],119882:[[87],256],119883:[[88],256],119884:[[89],256],119885:[[90],256],119886:[[97],256],119887:[[98],256],119888:[[99],256],119889:[[100],256],119890:[[101],256],119891:[[102],256],119892:[[103],256],119894:[[105],256],119895:[[106],256],119896:[[107],256],119897:[[108],256],119898:[[109],256],119899:[[110],256],119900:[[111],256],119901:[[112],256],119902:[[113],256],119903:[[114],256],119904:[[115],256],119905:[[116],256],119906:[[117],256],119907:[[118],256],119908:[[119],256],119909:[[120],256],119910:[[121],256],119911:[[122],256],119912:[[65],256],119913:[[66],256],119914:[[67],256],119915:[[68],256],119916:[[69],256],119917:[[70],256],119918:[[71],256],119919:[[72],256],119920:[[73],256],119921:[[74],256],119922:[[75],256],119923:[[76],256],119924:[[77],256],119925:[[78],256],119926:[[79],256],119927:[[80],256],119928:[[81],256],119929:[[82],256],119930:[[83],256],119931:[[84],256],119932:[[85],256],119933:[[86],256],119934:[[87],256],119935:[[88],256],119936:[[89],256],119937:[[90],256],119938:[[97],256],119939:[[98],256],119940:[[99],256],119941:[[100],256],119942:[[101],256],119943:[[102],256],119944:[[103],256],119945:[[104],256],119946:[[105],256],119947:[[106],256],119948:[[107],256],119949:[[108],256],119950:[[109],256],119951:[[110],256],119952:[[111],256],119953:[[112],256],119954:[[113],256],119955:[[114],256],119956:[[115],256],119957:[[116],256],119958:[[117],256],119959:[[118],256],119960:[[119],256],119961:[[120],256],119962:[[121],256],119963:[[122],256],119964:[[65],256],119966:[[67],256],119967:[[68],256],119970:[[71],256],119973:[[74],256],119974:[[75],256],119977:[[78],256],119978:[[79],256],119979:[[80],256],119980:[[81],256],119982:[[83],256],119983:[[84],256],119984:[[85],256],119985:[[86],256],119986:[[87],256],119987:[[88],256],119988:[[89],256],119989:[[90],256],119990:[[97],256],119991:[[98],256],119992:[[99],256],119993:[[100],256],119995:[[102],256],119997:[[104],256],119998:[[105],256],119999:[[106],256],12e4:[[107],256],120001:[[108],256],120002:[[109],256],120003:[[110],256],120005:[[112],256],120006:[[113],256],120007:[[114],256],120008:[[115],256],120009:[[116],256],120010:[[117],256],120011:[[118],256],120012:[[119],256],120013:[[120],256],120014:[[121],256],120015:[[122],256],120016:[[65],256],120017:[[66],256],120018:[[67],256],120019:[[68],256],120020:[[69],256],120021:[[70],256],120022:[[71],256],120023:[[72],256],120024:[[73],256],120025:[[74],256],120026:[[75],256],120027:[[76],256],120028:[[77],256],120029:[[78],256],120030:[[79],256],120031:[[80],256],120032:[[81],256],120033:[[82],256],120034:[[83],256],120035:[[84],256],120036:[[85],256],120037:[[86],256],120038:[[87],256],120039:[[88],256],120040:[[89],256],120041:[[90],256],120042:[[97],256],120043:[[98],256],120044:[[99],256],120045:[[100],256],120046:[[101],256],120047:[[102],256],120048:[[103],256],120049:[[104],256],120050:[[105],256],120051:[[106],256],120052:[[107],256],120053:[[108],256],120054:[[109],256],120055:[[110],256],120056:[[111],256],120057:[[112],256],120058:[[113],256],120059:[[114],256],120060:[[115],256],120061:[[116],256],120062:[[117],256],120063:[[118],256]},54528:{120064:[[119],256],120065:[[120],256],120066:[[121],256],120067:[[122],256],120068:[[65],256],120069:[[66],256],120071:[[68],256],120072:[[69],256],120073:[[70],256],120074:[[71],256],120077:[[74],256],120078:[[75],256],120079:[[76],256],120080:[[77],256],120081:[[78],256],120082:[[79],256],120083:[[80],256],120084:[[81],256],120086:[[83],256],120087:[[84],256],120088:[[85],256],120089:[[86],256],120090:[[87],256],120091:[[88],256],120092:[[89],256],120094:[[97],256],120095:[[98],256],120096:[[99],256],120097:[[100],256],120098:[[101],256],120099:[[102],256],120100:[[103],256],120101:[[104],256],120102:[[105],256],120103:[[106],256],120104:[[107],256],120105:[[108],256],120106:[[109],256],120107:[[110],256],120108:[[111],256],120109:[[112],256],120110:[[113],256],120111:[[114],256],120112:[[115],256],120113:[[116],256],120114:[[117],256],120115:[[118],256],120116:[[119],256],120117:[[120],256],120118:[[121],256],120119:[[122],256],120120:[[65],256],120121:[[66],256],120123:[[68],256],120124:[[69],256],120125:[[70],256],120126:[[71],256],120128:[[73],256],120129:[[74],256],120130:[[75],256],120131:[[76],256],120132:[[77],256],120134:[[79],256],120138:[[83],256],120139:[[84],256],120140:[[85],256],120141:[[86],256],120142:[[87],256],120143:[[88],256],120144:[[89],256],120146:[[97],256],120147:[[98],256],120148:[[99],256],120149:[[100],256],120150:[[101],256],120151:[[102],256],120152:[[103],256],120153:[[104],256],120154:[[105],256],120155:[[106],256],120156:[[107],256],120157:[[108],256],120158:[[109],256],120159:[[110],256],120160:[[111],256],120161:[[112],256],120162:[[113],256],120163:[[114],256],120164:[[115],256],120165:[[116],256],120166:[[117],256],120167:[[118],256],120168:[[119],256],120169:[[120],256],120170:[[121],256],120171:[[122],256],120172:[[65],256],120173:[[66],256],120174:[[67],256],120175:[[68],256],120176:[[69],256],120177:[[70],256],120178:[[71],256],120179:[[72],256],120180:[[73],256],120181:[[74],256],120182:[[75],256],120183:[[76],256],120184:[[77],256],120185:[[78],256],120186:[[79],256],120187:[[80],256],120188:[[81],256],120189:[[82],256],120190:[[83],256],120191:[[84],256],120192:[[85],256],120193:[[86],256],120194:[[87],256],120195:[[88],256],120196:[[89],256],120197:[[90],256],120198:[[97],256],120199:[[98],256],120200:[[99],256],120201:[[100],256],120202:[[101],256],120203:[[102],256],120204:[[103],256],120205:[[104],256],120206:[[105],256],120207:[[106],256],120208:[[107],256],120209:[[108],256],120210:[[109],256],120211:[[110],256],120212:[[111],256],120213:[[112],256],120214:[[113],256],120215:[[114],256],120216:[[115],256],120217:[[116],256],120218:[[117],256],120219:[[118],256],120220:[[119],256],120221:[[120],256],120222:[[121],256],120223:[[122],256],120224:[[65],256],120225:[[66],256],120226:[[67],256],120227:[[68],256],120228:[[69],256],120229:[[70],256],120230:[[71],256],120231:[[72],256],120232:[[73],256],120233:[[74],256],120234:[[75],256],120235:[[76],256],120236:[[77],256],120237:[[78],256],120238:[[79],256],120239:[[80],256],120240:[[81],256],120241:[[82],256],120242:[[83],256],120243:[[84],256],120244:[[85],256],120245:[[86],256],120246:[[87],256],120247:[[88],256],120248:[[89],256],120249:[[90],256],120250:[[97],256],120251:[[98],256],120252:[[99],256],120253:[[100],256],120254:[[101],256],120255:[[102],256],120256:[[103],256],120257:[[104],256],120258:[[105],256],120259:[[106],256],120260:[[107],256],120261:[[108],256],120262:[[109],256],120263:[[110],256],120264:[[111],256],120265:[[112],256],120266:[[113],256],120267:[[114],256],120268:[[115],256],120269:[[116],256],120270:[[117],256],120271:[[118],256],120272:[[119],256],120273:[[120],256],120274:[[121],256],120275:[[122],256],120276:[[65],256],120277:[[66],256],120278:[[67],256],120279:[[68],256],120280:[[69],256],120281:[[70],256],120282:[[71],256],120283:[[72],256],120284:[[73],256],120285:[[74],256],120286:[[75],256],120287:[[76],256],120288:[[77],256],120289:[[78],256],120290:[[79],256],120291:[[80],256],120292:[[81],256],120293:[[82],256],120294:[[83],256],120295:[[84],256],120296:[[85],256],120297:[[86],256],120298:[[87],256],120299:[[88],256],120300:[[89],256],120301:[[90],256],120302:[[97],256],120303:[[98],256],120304:[[99],256],120305:[[100],256],120306:[[101],256],120307:[[102],256],120308:[[103],256],120309:[[104],256],120310:[[105],256],120311:[[106],256],120312:[[107],256],120313:[[108],256],120314:[[109],256],120315:[[110],256],120316:[[111],256],120317:[[112],256],120318:[[113],256],120319:[[114],256]},54784:{120320:[[115],256],120321:[[116],256],120322:[[117],256],120323:[[118],256],120324:[[119],256],120325:[[120],256],120326:[[121],256],120327:[[122],256],120328:[[65],256],120329:[[66],256],120330:[[67],256],120331:[[68],256],120332:[[69],256],120333:[[70],256],120334:[[71],256],120335:[[72],256],120336:[[73],256],120337:[[74],256],120338:[[75],256],120339:[[76],256],120340:[[77],256],120341:[[78],256],120342:[[79],256],120343:[[80],256],120344:[[81],256],120345:[[82],256],120346:[[83],256],120347:[[84],256],120348:[[85],256],120349:[[86],256],120350:[[87],256],120351:[[88],256],120352:[[89],256],120353:[[90],256],120354:[[97],256],120355:[[98],256],120356:[[99],256],120357:[[100],256],120358:[[101],256],120359:[[102],256],120360:[[103],256],120361:[[104],256],120362:[[105],256],120363:[[106],256],120364:[[107],256],120365:[[108],256],120366:[[109],256],120367:[[110],256],120368:[[111],256],120369:[[112],256],120370:[[113],256],120371:[[114],256],120372:[[115],256],120373:[[116],256],120374:[[117],256],120375:[[118],256],120376:[[119],256],120377:[[120],256],120378:[[121],256],120379:[[122],256],120380:[[65],256],120381:[[66],256],120382:[[67],256],120383:[[68],256],120384:[[69],256],120385:[[70],256],120386:[[71],256],120387:[[72],256],120388:[[73],256],120389:[[74],256],120390:[[75],256],120391:[[76],256],120392:[[77],256],120393:[[78],256],120394:[[79],256],120395:[[80],256],120396:[[81],256],120397:[[82],256],120398:[[83],256],120399:[[84],256],120400:[[85],256],120401:[[86],256],120402:[[87],256],120403:[[88],256],120404:[[89],256],120405:[[90],256],120406:[[97],256],120407:[[98],256],120408:[[99],256],120409:[[100],256],120410:[[101],256],120411:[[102],256],120412:[[103],256],120413:[[104],256],120414:[[105],256],120415:[[106],256],120416:[[107],256],120417:[[108],256],120418:[[109],256],120419:[[110],256],120420:[[111],256],120421:[[112],256],120422:[[113],256],120423:[[114],256],120424:[[115],256],120425:[[116],256],120426:[[117],256],120427:[[118],256],120428:[[119],256],120429:[[120],256],120430:[[121],256],120431:[[122],256],120432:[[65],256],120433:[[66],256],120434:[[67],256],120435:[[68],256],120436:[[69],256],120437:[[70],256],120438:[[71],256],120439:[[72],256],120440:[[73],256],120441:[[74],256],120442:[[75],256],120443:[[76],256],120444:[[77],256],120445:[[78],256],120446:[[79],256],120447:[[80],256],120448:[[81],256],120449:[[82],256],120450:[[83],256],120451:[[84],256],120452:[[85],256],120453:[[86],256],120454:[[87],256],120455:[[88],256],120456:[[89],256],120457:[[90],256],120458:[[97],256],120459:[[98],256],120460:[[99],256],120461:[[100],256],120462:[[101],256],120463:[[102],256],120464:[[103],256],120465:[[104],256],120466:[[105],256],120467:[[106],256],120468:[[107],256],120469:[[108],256],120470:[[109],256],120471:[[110],256],120472:[[111],256],120473:[[112],256],120474:[[113],256],120475:[[114],256],120476:[[115],256],120477:[[116],256],120478:[[117],256],120479:[[118],256],120480:[[119],256],120481:[[120],256],120482:[[121],256],120483:[[122],256],120484:[[305],256],120485:[[567],256],120488:[[913],256],120489:[[914],256],120490:[[915],256],120491:[[916],256],120492:[[917],256],120493:[[918],256],120494:[[919],256],120495:[[920],256],120496:[[921],256],120497:[[922],256],120498:[[923],256],120499:[[924],256],120500:[[925],256],120501:[[926],256],120502:[[927],256],120503:[[928],256],120504:[[929],256],120505:[[1012],256],120506:[[931],256],120507:[[932],256],120508:[[933],256],120509:[[934],256],120510:[[935],256],120511:[[936],256],120512:[[937],256],120513:[[8711],256],120514:[[945],256],120515:[[946],256],120516:[[947],256],120517:[[948],256],120518:[[949],256],120519:[[950],256],120520:[[951],256],120521:[[952],256],120522:[[953],256],120523:[[954],256],120524:[[955],256],120525:[[956],256],120526:[[957],256],120527:[[958],256],120528:[[959],256],120529:[[960],256],120530:[[961],256],120531:[[962],256],120532:[[963],256],120533:[[964],256],120534:[[965],256],120535:[[966],256],120536:[[967],256],120537:[[968],256],120538:[[969],256],120539:[[8706],256],120540:[[1013],256],120541:[[977],256],120542:[[1008],256],120543:[[981],256],120544:[[1009],256],120545:[[982],256],120546:[[913],256],120547:[[914],256],120548:[[915],256],120549:[[916],256],120550:[[917],256],120551:[[918],256],120552:[[919],256],120553:[[920],256],120554:[[921],256],120555:[[922],256],120556:[[923],256],120557:[[924],256],120558:[[925],256],120559:[[926],256],120560:[[927],256],120561:[[928],256],120562:[[929],256],120563:[[1012],256],120564:[[931],256],120565:[[932],256],120566:[[933],256],120567:[[934],256],120568:[[935],256],120569:[[936],256],120570:[[937],256],120571:[[8711],256],120572:[[945],256],120573:[[946],256],120574:[[947],256],120575:[[948],256]},55040:{120576:[[949],256],120577:[[950],256],120578:[[951],256],120579:[[952],256],120580:[[953],256],120581:[[954],256],120582:[[955],256],120583:[[956],256],120584:[[957],256],120585:[[958],256],120586:[[959],256],120587:[[960],256],120588:[[961],256],120589:[[962],256],120590:[[963],256],120591:[[964],256],120592:[[965],256],120593:[[966],256],120594:[[967],256],120595:[[968],256],120596:[[969],256],120597:[[8706],256],120598:[[1013],256],120599:[[977],256],120600:[[1008],256],120601:[[981],256],120602:[[1009],256],120603:[[982],256],120604:[[913],256],120605:[[914],256],120606:[[915],256],120607:[[916],256],120608:[[917],256],120609:[[918],256],120610:[[919],256],120611:[[920],256],120612:[[921],256],120613:[[922],256],120614:[[923],256],120615:[[924],256],120616:[[925],256],120617:[[926],256],120618:[[927],256],120619:[[928],256],120620:[[929],256],120621:[[1012],256],120622:[[931],256],120623:[[932],256],120624:[[933],256],120625:[[934],256],120626:[[935],256],120627:[[936],256],120628:[[937],256],120629:[[8711],256],120630:[[945],256],120631:[[946],256],120632:[[947],256],120633:[[948],256],120634:[[949],256],120635:[[950],256],120636:[[951],256],120637:[[952],256],120638:[[953],256],120639:[[954],256],120640:[[955],256],120641:[[956],256],120642:[[957],256],120643:[[958],256],120644:[[959],256],120645:[[960],256],120646:[[961],256],120647:[[962],256],120648:[[963],256],120649:[[964],256],120650:[[965],256],120651:[[966],256],120652:[[967],256],120653:[[968],256],120654:[[969],256],120655:[[8706],256],120656:[[1013],256],120657:[[977],256],120658:[[1008],256],120659:[[981],256],120660:[[1009],256],120661:[[982],256],120662:[[913],256],120663:[[914],256],120664:[[915],256],120665:[[916],256],120666:[[917],256],120667:[[918],256],120668:[[919],256],120669:[[920],256],120670:[[921],256],120671:[[922],256],120672:[[923],256],120673:[[924],256],120674:[[925],256],120675:[[926],256],120676:[[927],256],120677:[[928],256],120678:[[929],256],120679:[[1012],256],120680:[[931],256],120681:[[932],256],120682:[[933],256],120683:[[934],256],120684:[[935],256],120685:[[936],256],120686:[[937],256],120687:[[8711],256],120688:[[945],256],120689:[[946],256],120690:[[947],256],120691:[[948],256],120692:[[949],256],120693:[[950],256],120694:[[951],256],120695:[[952],256],120696:[[953],256],120697:[[954],256],120698:[[955],256],120699:[[956],256],120700:[[957],256],120701:[[958],256],120702:[[959],256],120703:[[960],256],120704:[[961],256],120705:[[962],256],120706:[[963],256],120707:[[964],256],120708:[[965],256],120709:[[966],256],120710:[[967],256],120711:[[968],256],120712:[[969],256],120713:[[8706],256],120714:[[1013],256],120715:[[977],256],120716:[[1008],256],120717:[[981],256],120718:[[1009],256],120719:[[982],256],120720:[[913],256],120721:[[914],256],120722:[[915],256],120723:[[916],256],120724:[[917],256],120725:[[918],256],120726:[[919],256],120727:[[920],256],120728:[[921],256],120729:[[922],256],120730:[[923],256],120731:[[924],256],120732:[[925],256],120733:[[926],256],120734:[[927],256],120735:[[928],256],120736:[[929],256],120737:[[1012],256],120738:[[931],256],120739:[[932],256],120740:[[933],256],120741:[[934],256],120742:[[935],256],120743:[[936],256],120744:[[937],256],120745:[[8711],256],120746:[[945],256],120747:[[946],256],120748:[[947],256],120749:[[948],256],120750:[[949],256],120751:[[950],256],120752:[[951],256],120753:[[952],256],120754:[[953],256],120755:[[954],256],120756:[[955],256],120757:[[956],256],120758:[[957],256],120759:[[958],256],120760:[[959],256],120761:[[960],256],120762:[[961],256],120763:[[962],256],120764:[[963],256],120765:[[964],256],120766:[[965],256],120767:[[966],256],120768:[[967],256],120769:[[968],256],120770:[[969],256],120771:[[8706],256],120772:[[1013],256],120773:[[977],256],120774:[[1008],256],120775:[[981],256],120776:[[1009],256],120777:[[982],256],120778:[[988],256],120779:[[989],256],120782:[[48],256],120783:[[49],256],120784:[[50],256],120785:[[51],256],120786:[[52],256],120787:[[53],256],120788:[[54],256],120789:[[55],256],120790:[[56],256],120791:[[57],256],120792:[[48],256],120793:[[49],256],120794:[[50],256],120795:[[51],256],120796:[[52],256],120797:[[53],256],120798:[[54],256],120799:[[55],256],120800:[[56],256],120801:[[57],256],120802:[[48],256],120803:[[49],256],120804:[[50],256],120805:[[51],256],120806:[[52],256],120807:[[53],256],120808:[[54],256],120809:[[55],256],120810:[[56],256],120811:[[57],256],120812:[[48],256],120813:[[49],256],120814:[[50],256],120815:[[51],256],120816:[[52],256],120817:[[53],256],120818:[[54],256],120819:[[55],256],120820:[[56],256],120821:[[57],256],120822:[[48],256],120823:[[49],256],120824:[[50],256],120825:[[51],256],120826:[[52],256],120827:[[53],256],120828:[[54],256],120829:[[55],256],120830:[[56],256],120831:[[57],256]},59392:{125136:[,220],125137:[,220],125138:[,220],125139:[,220],125140:[,220],125141:[,220],125142:[,220]},60928:{126464:[[1575],256],126465:[[1576],256],126466:[[1580],256],126467:[[1583],256],126469:[[1608],256],126470:[[1586],256],126471:[[1581],256],126472:[[1591],256],126473:[[1610],256],126474:[[1603],256],126475:[[1604],256],126476:[[1605],256],126477:[[1606],256],126478:[[1587],256],126479:[[1593],256],126480:[[1601],256],126481:[[1589],256],126482:[[1602],256],126483:[[1585],256],126484:[[1588],256],126485:[[1578],256],126486:[[1579],256],126487:[[1582],256],126488:[[1584],256],126489:[[1590],256],126490:[[1592],256],126491:[[1594],256],126492:[[1646],256],126493:[[1722],256],126494:[[1697],256],126495:[[1647],256],126497:[[1576],256],126498:[[1580],256],126500:[[1607],256],126503:[[1581],256],126505:[[1610],256],126506:[[1603],256],126507:[[1604],256],126508:[[1605],256],126509:[[1606],256],126510:[[1587],256],126511:[[1593],256],126512:[[1601],256],126513:[[1589],256],126514:[[1602],256],126516:[[1588],256],126517:[[1578],256],126518:[[1579],256],126519:[[1582],256],126521:[[1590],256],126523:[[1594],256],126530:[[1580],256],126535:[[1581],256],126537:[[1610],256],126539:[[1604],256],126541:[[1606],256],126542:[[1587],256],126543:[[1593],256],126545:[[1589],256],126546:[[1602],256],126548:[[1588],256],126551:[[1582],256],126553:[[1590],256],126555:[[1594],256],126557:[[1722],256],126559:[[1647],256],126561:[[1576],256],126562:[[1580],256],126564:[[1607],256],126567:[[1581],256],126568:[[1591],256],126569:[[1610],256],126570:[[1603],256],126572:[[1605],256],126573:[[1606],256],126574:[[1587],256],126575:[[1593],256],126576:[[1601],256],126577:[[1589],256],126578:[[1602],256],126580:[[1588],256],126581:[[1578],256],126582:[[1579],256],126583:[[1582],256],126585:[[1590],256],126586:[[1592],256],126587:[[1594],256],126588:[[1646],256],126590:[[1697],256],126592:[[1575],256],126593:[[1576],256],126594:[[1580],256],126595:[[1583],256],126596:[[1607],256],126597:[[1608],256],126598:[[1586],256],126599:[[1581],256],126600:[[1591],256],126601:[[1610],256],126603:[[1604],256],126604:[[1605],256],126605:[[1606],256],126606:[[1587],256],126607:[[1593],256],126608:[[1601],256],126609:[[1589],256],126610:[[1602],256],126611:[[1585],256],126612:[[1588],256],126613:[[1578],256],126614:[[1579],256],126615:[[1582],256],126616:[[1584],256],126617:[[1590],256],126618:[[1592],256],126619:[[1594],256],126625:[[1576],256],126626:[[1580],256],126627:[[1583],256],126629:[[1608],256],126630:[[1586],256],126631:[[1581],256],126632:[[1591],256],126633:[[1610],256],126635:[[1604],256],126636:[[1605],256],126637:[[1606],256],126638:[[1587],256],126639:[[1593],256],126640:[[1601],256],126641:[[1589],256],126642:[[1602],256],126643:[[1585],256],126644:[[1588],256],126645:[[1578],256],126646:[[1579],256],126647:[[1582],256],126648:[[1584],256],126649:[[1590],256],126650:[[1592],256],126651:[[1594],256]},61696:{127232:[[48,46],256],127233:[[48,44],256],127234:[[49,44],256],127235:[[50,44],256],127236:[[51,44],256],127237:[[52,44],256],127238:[[53,44],256],127239:[[54,44],256],127240:[[55,44],256],127241:[[56,44],256],127242:[[57,44],256],127248:[[40,65,41],256],127249:[[40,66,41],256],127250:[[40,67,41],256],127251:[[40,68,41],256],127252:[[40,69,41],256],127253:[[40,70,41],256],127254:[[40,71,41],256],127255:[[40,72,41],256],127256:[[40,73,41],256],127257:[[40,74,41],256],127258:[[40,75,41],256],127259:[[40,76,41],256],127260:[[40,77,41],256],127261:[[40,78,41],256],127262:[[40,79,41],256],127263:[[40,80,41],256],127264:[[40,81,41],256],127265:[[40,82,41],256],127266:[[40,83,41],256],127267:[[40,84,41],256],127268:[[40,85,41],256],127269:[[40,86,41],256],127270:[[40,87,41],256],127271:[[40,88,41],256],127272:[[40,89,41],256],127273:[[40,90,41],256],127274:[[12308,83,12309],256],127275:[[67],256],127276:[[82],256],127277:[[67,68],256],127278:[[87,90],256],127280:[[65],256],127281:[[66],256],127282:[[67],256],127283:[[68],256],127284:[[69],256],127285:[[70],256],127286:[[71],256],127287:[[72],256],127288:[[73],256],127289:[[74],256],127290:[[75],256],127291:[[76],256],127292:[[77],256],127293:[[78],256],127294:[[79],256],127295:[[80],256],127296:[[81],256],127297:[[82],256],127298:[[83],256],127299:[[84],256],127300:[[85],256],127301:[[86],256],127302:[[87],256],127303:[[88],256],127304:[[89],256],127305:[[90],256],127306:[[72,86],256],127307:[[77,86],256],127308:[[83,68],256],127309:[[83,83],256],127310:[[80,80,86],256],127311:[[87,67],256],127338:[[77,67],256],127339:[[77,68],256],127376:[[68,74],256]},61952:{127488:[[12411,12363],256],127489:[[12467,12467],256],127490:[[12469],256],127504:[[25163],256],127505:[[23383],256],127506:[[21452],256],127507:[[12487],256],127508:[[20108],256],127509:[[22810],256],127510:[[35299],256],127511:[[22825],256],127512:[[20132],256],127513:[[26144],256],127514:[[28961],256],127515:[[26009],256],127516:[[21069],256],127517:[[24460],256],127518:[[20877],256],127519:[[26032],256],127520:[[21021],256],127521:[[32066],256],127522:[[29983],256],127523:[[36009],256],127524:[[22768],256],127525:[[21561],256],127526:[[28436],256],127527:[[25237],256],127528:[[25429],256],127529:[[19968],256],127530:[[19977],256],127531:[[36938],256],127532:[[24038],256],127533:[[20013],256],127534:[[21491],256],127535:[[25351],256],127536:[[36208],256],127537:[[25171],256],127538:[[31105],256],127539:[[31354],256],127540:[[21512],256],127541:[[28288],256],127542:[[26377],256],127543:[[26376],256],127544:[[30003],256],127545:[[21106],256],127546:[[21942],256],127552:[[12308,26412,12309],256],127553:[[12308,19977,12309],256],127554:[[12308,20108,12309],256],127555:[[12308,23433,12309],256],127556:[[12308,28857,12309],256],127557:[[12308,25171,12309],256],127558:[[12308,30423,12309],256],127559:[[12308,21213,12309],256],127560:[[12308,25943,12309],256],127568:[[24471],256],127569:[[21487],256]},63488:{194560:[[20029]],194561:[[20024]],194562:[[20033]],194563:[[131362]],194564:[[20320]],194565:[[20398]],194566:[[20411]],194567:[[20482]],194568:[[20602]],194569:[[20633]],194570:[[20711]],194571:[[20687]],194572:[[13470]],194573:[[132666]],194574:[[20813]],194575:[[20820]],194576:[[20836]],194577:[[20855]],194578:[[132380]],194579:[[13497]],194580:[[20839]],194581:[[20877]],194582:[[132427]],194583:[[20887]],194584:[[20900]],194585:[[20172]],194586:[[20908]],194587:[[20917]],194588:[[168415]],194589:[[20981]],194590:[[20995]],194591:[[13535]],194592:[[21051]],194593:[[21062]],194594:[[21106]],194595:[[21111]],194596:[[13589]],194597:[[21191]],194598:[[21193]],194599:[[21220]],194600:[[21242]],194601:[[21253]],194602:[[21254]],194603:[[21271]],194604:[[21321]],194605:[[21329]],194606:[[21338]],194607:[[21363]],194608:[[21373]],194609:[[21375]],194610:[[21375]],194611:[[21375]],194612:[[133676]],194613:[[28784]],194614:[[21450]],194615:[[21471]],194616:[[133987]],194617:[[21483]],194618:[[21489]],194619:[[21510]],194620:[[21662]],194621:[[21560]],194622:[[21576]],194623:[[21608]],194624:[[21666]],194625:[[21750]],194626:[[21776]],194627:[[21843]],194628:[[21859]],194629:[[21892]],194630:[[21892]],194631:[[21913]],194632:[[21931]],194633:[[21939]],194634:[[21954]],194635:[[22294]],194636:[[22022]],194637:[[22295]],194638:[[22097]],194639:[[22132]],194640:[[20999]],194641:[[22766]],194642:[[22478]],194643:[[22516]],194644:[[22541]],194645:[[22411]],194646:[[22578]],194647:[[22577]],194648:[[22700]],194649:[[136420]],194650:[[22770]],194651:[[22775]],194652:[[22790]],194653:[[22810]],194654:[[22818]],194655:[[22882]],194656:[[136872]],194657:[[136938]],194658:[[23020]],194659:[[23067]],194660:[[23079]],194661:[[23e3]],194662:[[23142]],194663:[[14062]],194664:[[14076]],194665:[[23304]],194666:[[23358]],194667:[[23358]],194668:[[137672]],194669:[[23491]],194670:[[23512]],194671:[[23527]],194672:[[23539]],194673:[[138008]],194674:[[23551]],194675:[[23558]],194676:[[24403]],194677:[[23586]],194678:[[14209]],194679:[[23648]],194680:[[23662]],194681:[[23744]],194682:[[23693]],194683:[[138724]],194684:[[23875]],194685:[[138726]],194686:[[23918]],194687:[[23915]],194688:[[23932]],194689:[[24033]],194690:[[24034]],194691:[[14383]],194692:[[24061]],194693:[[24104]],194694:[[24125]],194695:[[24169]],194696:[[14434]],194697:[[139651]],194698:[[14460]],194699:[[24240]],194700:[[24243]],194701:[[24246]],194702:[[24266]],194703:[[172946]],194704:[[24318]],194705:[[140081]],194706:[[140081]],194707:[[33281]],194708:[[24354]],194709:[[24354]],194710:[[14535]],194711:[[144056]],194712:[[156122]],194713:[[24418]],194714:[[24427]],194715:[[14563]],194716:[[24474]],194717:[[24525]],194718:[[24535]],194719:[[24569]],194720:[[24705]],194721:[[14650]],194722:[[14620]],194723:[[24724]],194724:[[141012]],194725:[[24775]],194726:[[24904]],194727:[[24908]],194728:[[24910]],194729:[[24908]],194730:[[24954]],194731:[[24974]],194732:[[25010]],194733:[[24996]],194734:[[25007]],194735:[[25054]],194736:[[25074]],194737:[[25078]],194738:[[25104]],194739:[[25115]],194740:[[25181]],194741:[[25265]],194742:[[25300]],194743:[[25424]],194744:[[142092]],194745:[[25405]],194746:[[25340]],194747:[[25448]],194748:[[25475]],194749:[[25572]],194750:[[142321]],194751:[[25634]],194752:[[25541]],194753:[[25513]],194754:[[14894]],194755:[[25705]],194756:[[25726]],194757:[[25757]],194758:[[25719]],194759:[[14956]],194760:[[25935]],194761:[[25964]],194762:[[143370]],194763:[[26083]],194764:[[26360]],194765:[[26185]],194766:[[15129]],194767:[[26257]],194768:[[15112]],194769:[[15076]],194770:[[20882]],194771:[[20885]],194772:[[26368]],194773:[[26268]],194774:[[32941]],194775:[[17369]],194776:[[26391]],194777:[[26395]],194778:[[26401]],194779:[[26462]],194780:[[26451]],194781:[[144323]],194782:[[15177]],194783:[[26618]],194784:[[26501]],194785:[[26706]],194786:[[26757]],194787:[[144493]],194788:[[26766]],194789:[[26655]],194790:[[26900]],194791:[[15261]],194792:[[26946]],194793:[[27043]],194794:[[27114]],194795:[[27304]],194796:[[145059]],194797:[[27355]],194798:[[15384]],194799:[[27425]],194800:[[145575]],194801:[[27476]],194802:[[15438]],194803:[[27506]],194804:[[27551]],194805:[[27578]],194806:[[27579]],194807:[[146061]],194808:[[138507]],194809:[[146170]],194810:[[27726]],194811:[[146620]],194812:[[27839]],194813:[[27853]],194814:[[27751]],194815:[[27926]]},63744:{63744:[[35912]],63745:[[26356]],63746:[[36554]],63747:[[36040]],63748:[[28369]],63749:[[20018]],63750:[[21477]],63751:[[40860]],63752:[[40860]],63753:[[22865]],63754:[[37329]],63755:[[21895]],63756:[[22856]],63757:[[25078]],63758:[[30313]],63759:[[32645]],63760:[[34367]],63761:[[34746]],63762:[[35064]],63763:[[37007]],63764:[[27138]],63765:[[27931]],63766:[[28889]],63767:[[29662]],63768:[[33853]],63769:[[37226]],63770:[[39409]],63771:[[20098]],63772:[[21365]],63773:[[27396]],63774:[[29211]],63775:[[34349]],63776:[[40478]],63777:[[23888]],63778:[[28651]],63779:[[34253]],63780:[[35172]],63781:[[25289]],63782:[[33240]],63783:[[34847]],63784:[[24266]],63785:[[26391]],63786:[[28010]],63787:[[29436]],63788:[[37070]],63789:[[20358]],63790:[[20919]],63791:[[21214]],63792:[[25796]],63793:[[27347]],63794:[[29200]],63795:[[30439]],63796:[[32769]],63797:[[34310]],63798:[[34396]],63799:[[36335]],63800:[[38706]],63801:[[39791]],63802:[[40442]],63803:[[30860]],63804:[[31103]],63805:[[32160]],63806:[[33737]],63807:[[37636]],63808:[[40575]],63809:[[35542]],63810:[[22751]],63811:[[24324]],63812:[[31840]],63813:[[32894]],63814:[[29282]],63815:[[30922]],63816:[[36034]],63817:[[38647]],63818:[[22744]],63819:[[23650]],63820:[[27155]],63821:[[28122]],63822:[[28431]],63823:[[32047]],63824:[[32311]],63825:[[38475]],63826:[[21202]],63827:[[32907]],63828:[[20956]],63829:[[20940]],63830:[[31260]],63831:[[32190]],63832:[[33777]],63833:[[38517]],63834:[[35712]],63835:[[25295]],63836:[[27138]],63837:[[35582]],63838:[[20025]],63839:[[23527]],63840:[[24594]],63841:[[29575]],63842:[[30064]],63843:[[21271]],63844:[[30971]],63845:[[20415]],63846:[[24489]],63847:[[19981]],63848:[[27852]],63849:[[25976]],63850:[[32034]],63851:[[21443]],63852:[[22622]],63853:[[30465]],63854:[[33865]],63855:[[35498]],63856:[[27578]],63857:[[36784]],63858:[[27784]],63859:[[25342]],63860:[[33509]],63861:[[25504]],63862:[[30053]],63863:[[20142]],63864:[[20841]],63865:[[20937]],63866:[[26753]],63867:[[31975]],63868:[[33391]],63869:[[35538]],63870:[[37327]],63871:[[21237]],63872:[[21570]],63873:[[22899]],63874:[[24300]],63875:[[26053]],63876:[[28670]],63877:[[31018]],63878:[[38317]],63879:[[39530]],63880:[[40599]],63881:[[40654]],63882:[[21147]],63883:[[26310]],63884:[[27511]],63885:[[36706]],63886:[[24180]],63887:[[24976]],63888:[[25088]],63889:[[25754]],63890:[[28451]],63891:[[29001]],63892:[[29833]],63893:[[31178]],63894:[[32244]],63895:[[32879]],63896:[[36646]],63897:[[34030]],63898:[[36899]],63899:[[37706]],63900:[[21015]],63901:[[21155]],63902:[[21693]],63903:[[28872]],63904:[[35010]],63905:[[35498]],63906:[[24265]],63907:[[24565]],63908:[[25467]],63909:[[27566]],63910:[[31806]],63911:[[29557]],63912:[[20196]],63913:[[22265]],63914:[[23527]],63915:[[23994]],63916:[[24604]],63917:[[29618]],63918:[[29801]],63919:[[32666]],63920:[[32838]],63921:[[37428]],63922:[[38646]],63923:[[38728]],63924:[[38936]],63925:[[20363]],63926:[[31150]],63927:[[37300]],63928:[[38584]],63929:[[24801]],63930:[[20102]],63931:[[20698]],63932:[[23534]],63933:[[23615]],63934:[[26009]],63935:[[27138]],63936:[[29134]],63937:[[30274]],63938:[[34044]],63939:[[36988]],63940:[[40845]],63941:[[26248]],63942:[[38446]],63943:[[21129]],63944:[[26491]],63945:[[26611]],63946:[[27969]],63947:[[28316]],63948:[[29705]],63949:[[30041]],63950:[[30827]],63951:[[32016]],63952:[[39006]],63953:[[20845]],63954:[[25134]],63955:[[38520]],63956:[[20523]],63957:[[23833]],63958:[[28138]],63959:[[36650]],63960:[[24459]],63961:[[24900]],63962:[[26647]],63963:[[29575]],63964:[[38534]],63965:[[21033]],63966:[[21519]],63967:[[23653]],63968:[[26131]],63969:[[26446]],63970:[[26792]],63971:[[27877]],63972:[[29702]],63973:[[30178]],63974:[[32633]],63975:[[35023]],63976:[[35041]],63977:[[37324]],63978:[[38626]],63979:[[21311]],63980:[[28346]],63981:[[21533]],63982:[[29136]],63983:[[29848]],63984:[[34298]],63985:[[38563]],63986:[[40023]],63987:[[40607]],63988:[[26519]],63989:[[28107]],63990:[[33256]],63991:[[31435]],63992:[[31520]],63993:[[31890]],63994:[[29376]],63995:[[28825]],63996:[[35672]],63997:[[20160]],63998:[[33590]],63999:[[21050]],194816:[[27966]],194817:[[28023]],194818:[[27969]],194819:[[28009]],194820:[[28024]],194821:[[28037]],194822:[[146718]],194823:[[27956]],194824:[[28207]],194825:[[28270]],194826:[[15667]],194827:[[28363]],194828:[[28359]],194829:[[147153]],194830:[[28153]],194831:[[28526]],194832:[[147294]],194833:[[147342]],194834:[[28614]],194835:[[28729]],194836:[[28702]],194837:[[28699]],194838:[[15766]],194839:[[28746]],194840:[[28797]],194841:[[28791]],194842:[[28845]],194843:[[132389]],194844:[[28997]],194845:[[148067]],194846:[[29084]],194847:[[148395]],194848:[[29224]],194849:[[29237]],194850:[[29264]],194851:[[149e3]],194852:[[29312]],194853:[[29333]],194854:[[149301]],194855:[[149524]],194856:[[29562]],194857:[[29579]],194858:[[16044]],194859:[[29605]],194860:[[16056]],194861:[[16056]],194862:[[29767]],194863:[[29788]],194864:[[29809]],194865:[[29829]],194866:[[29898]],194867:[[16155]],194868:[[29988]],194869:[[150582]],194870:[[30014]],194871:[[150674]],194872:[[30064]],194873:[[139679]],194874:[[30224]],194875:[[151457]],194876:[[151480]],194877:[[151620]],194878:[[16380]],194879:[[16392]],194880:[[30452]],194881:[[151795]],194882:[[151794]],194883:[[151833]],194884:[[151859]],194885:[[30494]],194886:[[30495]],194887:[[30495]],194888:[[30538]],194889:[[16441]],194890:[[30603]],194891:[[16454]],194892:[[16534]],194893:[[152605]],194894:[[30798]],194895:[[30860]],194896:[[30924]],194897:[[16611]],194898:[[153126]],194899:[[31062]],194900:[[153242]],194901:[[153285]],194902:[[31119]],194903:[[31211]],194904:[[16687]],194905:[[31296]],194906:[[31306]],194907:[[31311]],194908:[[153980]],194909:[[154279]],194910:[[154279]],194911:[[31470]],194912:[[16898]],194913:[[154539]],194914:[[31686]],194915:[[31689]],194916:[[16935]],194917:[[154752]],194918:[[31954]],194919:[[17056]],194920:[[31976]],194921:[[31971]],194922:[[32e3]],194923:[[155526]],194924:[[32099]],194925:[[17153]],194926:[[32199]],194927:[[32258]],194928:[[32325]],194929:[[17204]],194930:[[156200]],194931:[[156231]],194932:[[17241]],194933:[[156377]],194934:[[32634]],194935:[[156478]],194936:[[32661]],194937:[[32762]],194938:[[32773]],194939:[[156890]],194940:[[156963]],194941:[[32864]],194942:[[157096]],194943:[[32880]],194944:[[144223]],194945:[[17365]],194946:[[32946]],194947:[[33027]],194948:[[17419]],194949:[[33086]],194950:[[23221]],194951:[[157607]],194952:[[157621]],194953:[[144275]],194954:[[144284]],194955:[[33281]],194956:[[33284]],194957:[[36766]],194958:[[17515]],194959:[[33425]],194960:[[33419]],194961:[[33437]],194962:[[21171]],194963:[[33457]],194964:[[33459]],194965:[[33469]],194966:[[33510]],194967:[[158524]],194968:[[33509]],194969:[[33565]],194970:[[33635]],194971:[[33709]],194972:[[33571]],194973:[[33725]],194974:[[33767]],194975:[[33879]],194976:[[33619]],194977:[[33738]],194978:[[33740]],194979:[[33756]],194980:[[158774]],194981:[[159083]],194982:[[158933]],194983:[[17707]],194984:[[34033]],194985:[[34035]],194986:[[34070]],194987:[[160714]],194988:[[34148]],194989:[[159532]],194990:[[17757]],194991:[[17761]],194992:[[159665]],194993:[[159954]],194994:[[17771]],194995:[[34384]],194996:[[34396]],194997:[[34407]],194998:[[34409]],194999:[[34473]],195e3:[[34440]],195001:[[34574]],195002:[[34530]],195003:[[34681]],195004:[[34600]],195005:[[34667]],195006:[[34694]],195007:[[17879]],195008:[[34785]],195009:[[34817]],195010:[[17913]],195011:[[34912]],195012:[[34915]],195013:[[161383]],195014:[[35031]],195015:[[35038]],195016:[[17973]],195017:[[35066]],195018:[[13499]],195019:[[161966]],195020:[[162150]],195021:[[18110]],195022:[[18119]],195023:[[35488]],195024:[[35565]],195025:[[35722]],195026:[[35925]],195027:[[162984]],195028:[[36011]],195029:[[36033]],195030:[[36123]],195031:[[36215]],195032:[[163631]],195033:[[133124]],195034:[[36299]],195035:[[36284]],195036:[[36336]],195037:[[133342]],195038:[[36564]],195039:[[36664]],195040:[[165330]],195041:[[165357]],195042:[[37012]],195043:[[37105]],195044:[[37137]],195045:[[165678]],195046:[[37147]],195047:[[37432]],195048:[[37591]],195049:[[37592]],195050:[[37500]],195051:[[37881]],195052:[[37909]],195053:[[166906]],195054:[[38283]],195055:[[18837]],195056:[[38327]],195057:[[167287]],195058:[[18918]],195059:[[38595]],195060:[[23986]],195061:[[38691]],195062:[[168261]],195063:[[168474]],195064:[[19054]],195065:[[19062]],195066:[[38880]],195067:[[168970]],195068:[[19122]],195069:[[169110]],195070:[[38923]],195071:[[38923]]},64e3:{64e3:[[20999]],64001:[[24230]],64002:[[25299]],64003:[[31958]],64004:[[23429]],64005:[[27934]],64006:[[26292]],64007:[[36667]],64008:[[34892]],64009:[[38477]],64010:[[35211]],64011:[[24275]],64012:[[20800]],64013:[[21952]],64016:[[22618]],64018:[[26228]],64021:[[20958]],64022:[[29482]],64023:[[30410]],64024:[[31036]],64025:[[31070]],64026:[[31077]],64027:[[31119]],64028:[[38742]],64029:[[31934]],64030:[[32701]],64032:[[34322]],64034:[[35576]],64037:[[36920]],64038:[[37117]],64042:[[39151]],64043:[[39164]],64044:[[39208]],64045:[[40372]],64046:[[37086]],64047:[[38583]],64048:[[20398]],64049:[[20711]],64050:[[20813]],64051:[[21193]],64052:[[21220]],64053:[[21329]],64054:[[21917]],64055:[[22022]],64056:[[22120]],64057:[[22592]],64058:[[22696]],64059:[[23652]],64060:[[23662]],64061:[[24724]],64062:[[24936]],64063:[[24974]],64064:[[25074]],64065:[[25935]],64066:[[26082]],64067:[[26257]],64068:[[26757]],64069:[[28023]],64070:[[28186]],64071:[[28450]],64072:[[29038]],64073:[[29227]],64074:[[29730]],64075:[[30865]],64076:[[31038]],64077:[[31049]],64078:[[31048]],64079:[[31056]],64080:[[31062]],64081:[[31069]],64082:[[31117]],64083:[[31118]],64084:[[31296]],64085:[[31361]],64086:[[31680]],64087:[[32244]],64088:[[32265]],64089:[[32321]],64090:[[32626]],64091:[[32773]],64092:[[33261]],64093:[[33401]],64094:[[33401]],64095:[[33879]],64096:[[35088]],64097:[[35222]],64098:[[35585]],64099:[[35641]],64100:[[36051]],64101:[[36104]],64102:[[36790]],64103:[[36920]],64104:[[38627]],64105:[[38911]],64106:[[38971]],64107:[[24693]],64108:[[148206]],64109:[[33304]],64112:[[20006]],64113:[[20917]],64114:[[20840]],64115:[[20352]],64116:[[20805]],64117:[[20864]],64118:[[21191]],64119:[[21242]],64120:[[21917]],64121:[[21845]],64122:[[21913]],64123:[[21986]],64124:[[22618]],64125:[[22707]],64126:[[22852]],64127:[[22868]],64128:[[23138]],64129:[[23336]],64130:[[24274]],64131:[[24281]],64132:[[24425]],64133:[[24493]],64134:[[24792]],64135:[[24910]],64136:[[24840]],64137:[[24974]],64138:[[24928]],64139:[[25074]],64140:[[25140]],64141:[[25540]],64142:[[25628]],64143:[[25682]],64144:[[25942]],64145:[[26228]],64146:[[26391]],64147:[[26395]],64148:[[26454]],64149:[[27513]],64150:[[27578]],64151:[[27969]],64152:[[28379]],64153:[[28363]],64154:[[28450]],64155:[[28702]],64156:[[29038]],64157:[[30631]],64158:[[29237]],64159:[[29359]],64160:[[29482]],64161:[[29809]],64162:[[29958]],64163:[[30011]],64164:[[30237]],64165:[[30239]],64166:[[30410]],64167:[[30427]],64168:[[30452]],64169:[[30538]],64170:[[30528]],64171:[[30924]],64172:[[31409]],64173:[[31680]],64174:[[31867]],64175:[[32091]],64176:[[32244]],64177:[[32574]],64178:[[32773]],64179:[[33618]],64180:[[33775]],64181:[[34681]],64182:[[35137]],64183:[[35206]],64184:[[35222]],64185:[[35519]],64186:[[35576]],64187:[[35531]],64188:[[35585]],64189:[[35582]],64190:[[35565]],64191:[[35641]],64192:[[35722]],64193:[[36104]],64194:[[36664]],64195:[[36978]],64196:[[37273]],64197:[[37494]],64198:[[38524]],64199:[[38627]],64200:[[38742]],64201:[[38875]],64202:[[38911]],64203:[[38923]],64204:[[38971]],64205:[[39698]],64206:[[40860]],64207:[[141386]],64208:[[141380]],64209:[[144341]],64210:[[15261]],64211:[[16408]],64212:[[16441]],64213:[[152137]],64214:[[154832]],64215:[[163539]],64216:[[40771]],64217:[[40846]],195072:[[38953]],195073:[[169398]],195074:[[39138]],195075:[[19251]],195076:[[39209]],195077:[[39335]],195078:[[39362]],195079:[[39422]],195080:[[19406]],195081:[[170800]],195082:[[39698]],195083:[[4e4]],195084:[[40189]],195085:[[19662]],195086:[[19693]],195087:[[40295]],195088:[[172238]],195089:[[19704]],195090:[[172293]],195091:[[172558]],195092:[[172689]],195093:[[40635]],195094:[[19798]],195095:[[40697]],195096:[[40702]],195097:[[40709]],195098:[[40719]],195099:[[40726]],195100:[[40763]],195101:[[173568]]},64256:{64256:[[102,102],256],64257:[[102,105],256],64258:[[102,108],256],64259:[[102,102,105],256],64260:[[102,102,108],256],64261:[[383,116],256],64262:[[115,116],256],64275:[[1396,1398],256],64276:[[1396,1381],256],64277:[[1396,1387],256],64278:[[1406,1398],256],64279:[[1396,1389],256],64285:[[1497,1460],512],64286:[,26],64287:[[1522,1463],512],64288:[[1506],256],64289:[[1488],256],64290:[[1491],256],64291:[[1492],256],64292:[[1499],256],64293:[[1500],256],64294:[[1501],256],64295:[[1512],256],64296:[[1514],256],64297:[[43],256],64298:[[1513,1473],512],64299:[[1513,1474],512],64300:[[64329,1473],512],64301:[[64329,1474],512],64302:[[1488,1463],512],64303:[[1488,1464],512],64304:[[1488,1468],512],64305:[[1489,1468],512],64306:[[1490,1468],512],64307:[[1491,1468],512],64308:[[1492,1468],512],64309:[[1493,1468],512],64310:[[1494,1468],512],64312:[[1496,1468],512],64313:[[1497,1468],512],64314:[[1498,1468],512],64315:[[1499,1468],512],64316:[[1500,1468],512],64318:[[1502,1468],512],64320:[[1504,1468],512],64321:[[1505,1468],512],64323:[[1507,1468],512],64324:[[1508,1468],512],64326:[[1510,1468],512],64327:[[1511,1468],512],64328:[[1512,1468],512],64329:[[1513,1468],512],64330:[[1514,1468],512],64331:[[1493,1465],512],64332:[[1489,1471],512],64333:[[1499,1471],512],64334:[[1508,1471],512],64335:[[1488,1500],256],64336:[[1649],256],64337:[[1649],256],64338:[[1659],256],64339:[[1659],256],64340:[[1659],256],64341:[[1659],256],64342:[[1662],256],64343:[[1662],256],64344:[[1662],256],64345:[[1662],256],64346:[[1664],256],64347:[[1664],256],64348:[[1664],256],64349:[[1664],256],64350:[[1658],256],64351:[[1658],256],64352:[[1658],256],64353:[[1658],256],64354:[[1663],256],64355:[[1663],256],64356:[[1663],256],64357:[[1663],256],64358:[[1657],256],64359:[[1657],256],64360:[[1657],256],64361:[[1657],256],64362:[[1700],256],64363:[[1700],256],64364:[[1700],256],64365:[[1700],256],64366:[[1702],256],64367:[[1702],256],64368:[[1702],256],64369:[[1702],256],64370:[[1668],256],64371:[[1668],256],64372:[[1668],256],64373:[[1668],256],64374:[[1667],256],64375:[[1667],256],64376:[[1667],256],64377:[[1667],256],64378:[[1670],256],64379:[[1670],256],64380:[[1670],256],64381:[[1670],256],64382:[[1671],256],64383:[[1671],256],64384:[[1671],256],64385:[[1671],256],64386:[[1677],256],64387:[[1677],256],64388:[[1676],256],64389:[[1676],256],64390:[[1678],256],64391:[[1678],256],64392:[[1672],256],64393:[[1672],256],64394:[[1688],256],64395:[[1688],256],64396:[[1681],256],64397:[[1681],256],64398:[[1705],256],64399:[[1705],256],64400:[[1705],256],64401:[[1705],256],64402:[[1711],256],64403:[[1711],256],64404:[[1711],256],64405:[[1711],256],64406:[[1715],256],64407:[[1715],256],64408:[[1715],256],64409:[[1715],256],64410:[[1713],256],64411:[[1713],256],64412:[[1713],256],64413:[[1713],256],64414:[[1722],256],64415:[[1722],256],64416:[[1723],256],64417:[[1723],256],64418:[[1723],256],64419:[[1723],256],64420:[[1728],256],64421:[[1728],256],64422:[[1729],256],64423:[[1729],256],64424:[[1729],256],64425:[[1729],256],64426:[[1726],256],64427:[[1726],256],64428:[[1726],256],64429:[[1726],256],64430:[[1746],256],64431:[[1746],256],64432:[[1747],256],64433:[[1747],256],64467:[[1709],256],64468:[[1709],256],64469:[[1709],256],64470:[[1709],256],64471:[[1735],256],64472:[[1735],256],64473:[[1734],256],64474:[[1734],256],64475:[[1736],256],64476:[[1736],256],64477:[[1655],256],64478:[[1739],256],64479:[[1739],256],64480:[[1733],256],64481:[[1733],256],64482:[[1737],256],64483:[[1737],256],64484:[[1744],256],64485:[[1744],256],64486:[[1744],256],64487:[[1744],256],64488:[[1609],256],64489:[[1609],256],64490:[[1574,1575],256],64491:[[1574,1575],256],64492:[[1574,1749],256],64493:[[1574,1749],256],64494:[[1574,1608],256],64495:[[1574,1608],256],64496:[[1574,1735],256],64497:[[1574,1735],256],64498:[[1574,1734],256],64499:[[1574,1734],256],64500:[[1574,1736],256],64501:[[1574,1736],256],64502:[[1574,1744],256],64503:[[1574,1744],256],64504:[[1574,1744],256],64505:[[1574,1609],256],64506:[[1574,1609],256],64507:[[1574,1609],256],64508:[[1740],256],64509:[[1740],256],64510:[[1740],256],64511:[[1740],256]},64512:{64512:[[1574,1580],256],64513:[[1574,1581],256],64514:[[1574,1605],256],64515:[[1574,1609],256],64516:[[1574,1610],256],64517:[[1576,1580],256],64518:[[1576,1581],256],64519:[[1576,1582],256],64520:[[1576,1605],256],64521:[[1576,1609],256],64522:[[1576,1610],256],64523:[[1578,1580],256],64524:[[1578,1581],256],64525:[[1578,1582],256],64526:[[1578,1605],256],64527:[[1578,1609],256],64528:[[1578,1610],256],64529:[[1579,1580],256],64530:[[1579,1605],256],64531:[[1579,1609],256],64532:[[1579,1610],256],64533:[[1580,1581],256],64534:[[1580,1605],256],64535:[[1581,1580],256],64536:[[1581,1605],256],64537:[[1582,1580],256],64538:[[1582,1581],256],64539:[[1582,1605],256],64540:[[1587,1580],256],64541:[[1587,1581],256],64542:[[1587,1582],256],64543:[[1587,1605],256],64544:[[1589,1581],256],64545:[[1589,1605],256],64546:[[1590,1580],256],64547:[[1590,1581],256],64548:[[1590,1582],256],64549:[[1590,1605],256],64550:[[1591,1581],256],64551:[[1591,1605],256],64552:[[1592,1605],256],64553:[[1593,1580],256],64554:[[1593,1605],256],64555:[[1594,1580],256],64556:[[1594,1605],256],64557:[[1601,1580],256],64558:[[1601,1581],256],64559:[[1601,1582],256],64560:[[1601,1605],256],64561:[[1601,1609],256],64562:[[1601,1610],256],64563:[[1602,1581],256],64564:[[1602,1605],256],64565:[[1602,1609],256],64566:[[1602,1610],256],64567:[[1603,1575],256],64568:[[1603,1580],256],64569:[[1603,1581],256],64570:[[1603,1582],256],64571:[[1603,1604],256],64572:[[1603,1605],256],64573:[[1603,1609],256],64574:[[1603,1610],256],64575:[[1604,1580],256],64576:[[1604,1581],256],64577:[[1604,1582],256],64578:[[1604,1605],256],64579:[[1604,1609],256],64580:[[1604,1610],256],64581:[[1605,1580],256],64582:[[1605,1581],256],64583:[[1605,1582],256],64584:[[1605,1605],256],64585:[[1605,1609],256],64586:[[1605,1610],256],64587:[[1606,1580],256],64588:[[1606,1581],256],64589:[[1606,1582],256],64590:[[1606,1605],256],64591:[[1606,1609],256],64592:[[1606,1610],256],64593:[[1607,1580],256],64594:[[1607,1605],256],64595:[[1607,1609],256],64596:[[1607,1610],256],64597:[[1610,1580],256],64598:[[1610,1581],256],64599:[[1610,1582],256],64600:[[1610,1605],256],64601:[[1610,1609],256],64602:[[1610,1610],256],64603:[[1584,1648],256],64604:[[1585,1648],256],64605:[[1609,1648],256],64606:[[32,1612,1617],256],64607:[[32,1613,1617],256],64608:[[32,1614,1617],256],64609:[[32,1615,1617],256],64610:[[32,1616,1617],256],64611:[[32,1617,1648],256],64612:[[1574,1585],256],64613:[[1574,1586],256],64614:[[1574,1605],256],64615:[[1574,1606],256],64616:[[1574,1609],256],64617:[[1574,1610],256],64618:[[1576,1585],256],64619:[[1576,1586],256],64620:[[1576,1605],256],64621:[[1576,1606],256],64622:[[1576,1609],256],64623:[[1576,1610],256],64624:[[1578,1585],256],64625:[[1578,1586],256],64626:[[1578,1605],256],64627:[[1578,1606],256],64628:[[1578,1609],256],64629:[[1578,1610],256],64630:[[1579,1585],256],64631:[[1579,1586],256],64632:[[1579,1605],256],64633:[[1579,1606],256],64634:[[1579,1609],256],64635:[[1579,1610],256],64636:[[1601,1609],256],64637:[[1601,1610],256],64638:[[1602,1609],256],64639:[[1602,1610],256],64640:[[1603,1575],256],64641:[[1603,1604],256],64642:[[1603,1605],256],64643:[[1603,1609],256],64644:[[1603,1610],256],64645:[[1604,1605],256],64646:[[1604,1609],256],64647:[[1604,1610],256],64648:[[1605,1575],256],64649:[[1605,1605],256],64650:[[1606,1585],256],64651:[[1606,1586],256],64652:[[1606,1605],256],64653:[[1606,1606],256],64654:[[1606,1609],256],64655:[[1606,1610],256],64656:[[1609,1648],256],64657:[[1610,1585],256],64658:[[1610,1586],256],64659:[[1610,1605],256],64660:[[1610,1606],256],64661:[[1610,1609],256],64662:[[1610,1610],256],64663:[[1574,1580],256],64664:[[1574,1581],256],64665:[[1574,1582],256],64666:[[1574,1605],256],64667:[[1574,1607],256],64668:[[1576,1580],256],64669:[[1576,1581],256],64670:[[1576,1582],256],64671:[[1576,1605],256],64672:[[1576,1607],256],64673:[[1578,1580],256],64674:[[1578,1581],256],64675:[[1578,1582],256],64676:[[1578,1605],256],64677:[[1578,1607],256],64678:[[1579,1605],256],64679:[[1580,1581],256],64680:[[1580,1605],256],64681:[[1581,1580],256],64682:[[1581,1605],256],64683:[[1582,1580],256],64684:[[1582,1605],256],64685:[[1587,1580],256],64686:[[1587,1581],256],64687:[[1587,1582],256],64688:[[1587,1605],256],64689:[[1589,1581],256],64690:[[1589,1582],256],64691:[[1589,1605],256],64692:[[1590,1580],256],64693:[[1590,1581],256],64694:[[1590,1582],256],64695:[[1590,1605],256],64696:[[1591,1581],256],64697:[[1592,1605],256],64698:[[1593,1580],256],64699:[[1593,1605],256],64700:[[1594,1580],256],64701:[[1594,1605],256],64702:[[1601,1580],256],64703:[[1601,1581],256],64704:[[1601,1582],256],64705:[[1601,1605],256],64706:[[1602,1581],256],64707:[[1602,1605],256],64708:[[1603,1580],256],64709:[[1603,1581],256],64710:[[1603,1582],256],64711:[[1603,1604],256],64712:[[1603,1605],256],64713:[[1604,1580],256],64714:[[1604,1581],256],64715:[[1604,1582],256],64716:[[1604,1605],256],64717:[[1604,1607],256],64718:[[1605,1580],256],64719:[[1605,1581],256],64720:[[1605,1582],256],64721:[[1605,1605],256],64722:[[1606,1580],256],64723:[[1606,1581],256],64724:[[1606,1582],256],64725:[[1606,1605],256],64726:[[1606,1607],256],64727:[[1607,1580],256],64728:[[1607,1605],256],64729:[[1607,1648],256],64730:[[1610,1580],256],64731:[[1610,1581],256],64732:[[1610,1582],256],64733:[[1610,1605],256],64734:[[1610,1607],256],64735:[[1574,1605],256],64736:[[1574,1607],256],64737:[[1576,1605],256],64738:[[1576,1607],256],64739:[[1578,1605],256],64740:[[1578,1607],256],64741:[[1579,1605],256],64742:[[1579,1607],256],64743:[[1587,1605],256],64744:[[1587,1607],256],64745:[[1588,1605],256],64746:[[1588,1607],256],64747:[[1603,1604],256],64748:[[1603,1605],256],64749:[[1604,1605],256],64750:[[1606,1605],256],64751:[[1606,1607],256],64752:[[1610,1605],256],64753:[[1610,1607],256],64754:[[1600,1614,1617],256],64755:[[1600,1615,1617],256],64756:[[1600,1616,1617],256],64757:[[1591,1609],256],64758:[[1591,1610],256],64759:[[1593,1609],256],64760:[[1593,1610],256],64761:[[1594,1609],256],64762:[[1594,1610],256],64763:[[1587,1609],256],64764:[[1587,1610],256],64765:[[1588,1609],256],64766:[[1588,1610],256],64767:[[1581,1609],256]},64768:{64768:[[1581,1610],256],64769:[[1580,1609],256],64770:[[1580,1610],256],64771:[[1582,1609],256],64772:[[1582,1610],256],64773:[[1589,1609],256],64774:[[1589,1610],256],64775:[[1590,1609],256],64776:[[1590,1610],256],64777:[[1588,1580],256],64778:[[1588,1581],256],64779:[[1588,1582],256],64780:[[1588,1605],256],64781:[[1588,1585],256],64782:[[1587,1585],256],64783:[[1589,1585],256],64784:[[1590,1585],256],64785:[[1591,1609],256],64786:[[1591,1610],256],64787:[[1593,1609],256],64788:[[1593,1610],256],64789:[[1594,1609],256],64790:[[1594,1610],256],64791:[[1587,1609],256],64792:[[1587,1610],256],64793:[[1588,1609],256],64794:[[1588,1610],256],64795:[[1581,1609],256],64796:[[1581,1610],256],64797:[[1580,1609],256],64798:[[1580,1610],256],64799:[[1582,1609],256],64800:[[1582,1610],256],64801:[[1589,1609],256],64802:[[1589,1610],256],64803:[[1590,1609],256],64804:[[1590,1610],256],64805:[[1588,1580],256],64806:[[1588,1581],256],64807:[[1588,1582],256],64808:[[1588,1605],256],64809:[[1588,1585],256],64810:[[1587,1585],256],64811:[[1589,1585],256],64812:[[1590,1585],256],64813:[[1588,1580],256],64814:[[1588,1581],256],64815:[[1588,1582],256],64816:[[1588,1605],256],64817:[[1587,1607],256],64818:[[1588,1607],256],64819:[[1591,1605],256],64820:[[1587,1580],256],64821:[[1587,1581],256],64822:[[1587,1582],256],64823:[[1588,1580],256],64824:[[1588,1581],256],64825:[[1588,1582],256],64826:[[1591,1605],256],64827:[[1592,1605],256],64828:[[1575,1611],256],64829:[[1575,1611],256],64848:[[1578,1580,1605],256],64849:[[1578,1581,1580],256],64850:[[1578,1581,1580],256],64851:[[1578,1581,1605],256],64852:[[1578,1582,1605],256],64853:[[1578,1605,1580],256],64854:[[1578,1605,1581],256],64855:[[1578,1605,1582],256],64856:[[1580,1605,1581],256],64857:[[1580,1605,1581],256],64858:[[1581,1605,1610],256],64859:[[1581,1605,1609],256],64860:[[1587,1581,1580],256],64861:[[1587,1580,1581],256],64862:[[1587,1580,1609],256],64863:[[1587,1605,1581],256],64864:[[1587,1605,1581],256],64865:[[1587,1605,1580],256],64866:[[1587,1605,1605],256],64867:[[1587,1605,1605],256],64868:[[1589,1581,1581],256],64869:[[1589,1581,1581],256],64870:[[1589,1605,1605],256],64871:[[1588,1581,1605],256],64872:[[1588,1581,1605],256],64873:[[1588,1580,1610],256],64874:[[1588,1605,1582],256],64875:[[1588,1605,1582],256],64876:[[1588,1605,1605],256],64877:[[1588,1605,1605],256],64878:[[1590,1581,1609],256],64879:[[1590,1582,1605],256],64880:[[1590,1582,1605],256],64881:[[1591,1605,1581],256],64882:[[1591,1605,1581],256],64883:[[1591,1605,1605],256],64884:[[1591,1605,1610],256],64885:[[1593,1580,1605],256],64886:[[1593,1605,1605],256],64887:[[1593,1605,1605],256],64888:[[1593,1605,1609],256],64889:[[1594,1605,1605],256],64890:[[1594,1605,1610],256],64891:[[1594,1605,1609],256],64892:[[1601,1582,1605],256],64893:[[1601,1582,1605],256],64894:[[1602,1605,1581],256],64895:[[1602,1605,1605],256],64896:[[1604,1581,1605],256],64897:[[1604,1581,1610],256],64898:[[1604,1581,1609],256],64899:[[1604,1580,1580],256],64900:[[1604,1580,1580],256],64901:[[1604,1582,1605],256],64902:[[1604,1582,1605],256],64903:[[1604,1605,1581],256],64904:[[1604,1605,1581],256],64905:[[1605,1581,1580],256],64906:[[1605,1581,1605],256],64907:[[1605,1581,1610],256],64908:[[1605,1580,1581],256],64909:[[1605,1580,1605],256],64910:[[1605,1582,1580],256],64911:[[1605,1582,1605],256],64914:[[1605,1580,1582],256],64915:[[1607,1605,1580],256],64916:[[1607,1605,1605],256],64917:[[1606,1581,1605],256],64918:[[1606,1581,1609],256],64919:[[1606,1580,1605],256],64920:[[1606,1580,1605],256],64921:[[1606,1580,1609],256],64922:[[1606,1605,1610],256],64923:[[1606,1605,1609],256],64924:[[1610,1605,1605],256],64925:[[1610,1605,1605],256],64926:[[1576,1582,1610],256],64927:[[1578,1580,1610],256],64928:[[1578,1580,1609],256],64929:[[1578,1582,1610],256],64930:[[1578,1582,1609],256],64931:[[1578,1605,1610],256],64932:[[1578,1605,1609],256],64933:[[1580,1605,1610],256],64934:[[1580,1581,1609],256],64935:[[1580,1605,1609],256],64936:[[1587,1582,1609],256],64937:[[1589,1581,1610],256],64938:[[1588,1581,1610],256],64939:[[1590,1581,1610],256],64940:[[1604,1580,1610],256],64941:[[1604,1605,1610],256],64942:[[1610,1581,1610],256],64943:[[1610,1580,1610],256],64944:[[1610,1605,1610],256],64945:[[1605,1605,1610],256],64946:[[1602,1605,1610],256],64947:[[1606,1581,1610],256],64948:[[1602,1605,1581],256],64949:[[1604,1581,1605],256],64950:[[1593,1605,1610],256],64951:[[1603,1605,1610],256],64952:[[1606,1580,1581],256],64953:[[1605,1582,1610],256],64954:[[1604,1580,1605],256],64955:[[1603,1605,1605],256],64956:[[1604,1580,1605],256],64957:[[1606,1580,1581],256],64958:[[1580,1581,1610],256],64959:[[1581,1580,1610],256],64960:[[1605,1580,1610],256],64961:[[1601,1605,1610],256],64962:[[1576,1581,1610],256],64963:[[1603,1605,1605],256],64964:[[1593,1580,1605],256],64965:[[1589,1605,1605],256],64966:[[1587,1582,1610],256],64967:[[1606,1580,1610],256],65008:[[1589,1604,1746],256],65009:[[1602,1604,1746],256],65010:[[1575,1604,1604,1607],256],65011:[[1575,1603,1576,1585],256],65012:[[1605,1581,1605,1583],256],65013:[[1589,1604,1593,1605],256],65014:[[1585,1587,1608,1604],256],65015:[[1593,1604,1610,1607],256],65016:[[1608,1587,1604,1605],256],65017:[[1589,1604,1609],256],65018:[[1589,1604,1609,32,1575,1604,1604,1607,32,1593,1604,1610,1607,32,1608,1587,1604,1605],256],65019:[[1580,1604,32,1580,1604,1575,1604,1607],256],65020:[[1585,1740,1575,1604],256]},65024:{65040:[[44],256],65041:[[12289],256],65042:[[12290],256],65043:[[58],256],65044:[[59],256],65045:[[33],256],65046:[[63],256],65047:[[12310],256],65048:[[12311],256],65049:[[8230],256],65056:[,230],65057:[,230],65058:[,230],65059:[,230],65060:[,230],65061:[,230],65062:[,230],65063:[,220],65064:[,220],65065:[,220],65066:[,220],65067:[,220],65068:[,220],65069:[,220],65072:[[8229],256],65073:[[8212],256],65074:[[8211],256],65075:[[95],256],65076:[[95],256],65077:[[40],256],65078:[[41],256],65079:[[123],256],65080:[[125],256],65081:[[12308],256],65082:[[12309],256],65083:[[12304],256],65084:[[12305],256],65085:[[12298],256],65086:[[12299],256],65087:[[12296],256],65088:[[12297],256],65089:[[12300],256],65090:[[12301],256],65091:[[12302],256],65092:[[12303],256],65095:[[91],256],65096:[[93],256],65097:[[8254],256],65098:[[8254],256],65099:[[8254],256],65100:[[8254],256],65101:[[95],256],65102:[[95],256],65103:[[95],256],65104:[[44],256],65105:[[12289],256],65106:[[46],256],65108:[[59],256],65109:[[58],256],65110:[[63],256],65111:[[33],256],65112:[[8212],256],65113:[[40],256],65114:[[41],256],65115:[[123],256],65116:[[125],256],65117:[[12308],256],65118:[[12309],256],65119:[[35],256],65120:[[38],256],65121:[[42],256],65122:[[43],256],65123:[[45],256],65124:[[60],256],65125:[[62],256],65126:[[61],256],65128:[[92],256],65129:[[36],256],65130:[[37],256],65131:[[64],256],65136:[[32,1611],256],65137:[[1600,1611],256],65138:[[32,1612],256],65140:[[32,1613],256],65142:[[32,1614],256],65143:[[1600,1614],256],65144:[[32,1615],256],65145:[[1600,1615],256],65146:[[32,1616],256],65147:[[1600,1616],256],65148:[[32,1617],256],65149:[[1600,1617],256],65150:[[32,1618],256],65151:[[1600,1618],256],65152:[[1569],256],65153:[[1570],256],65154:[[1570],256],65155:[[1571],256],65156:[[1571],256],65157:[[1572],256],65158:[[1572],256],65159:[[1573],256],65160:[[1573],256],65161:[[1574],256],65162:[[1574],256],65163:[[1574],256],65164:[[1574],256],65165:[[1575],256],65166:[[1575],256],65167:[[1576],256],65168:[[1576],256],65169:[[1576],256],65170:[[1576],256],65171:[[1577],256],65172:[[1577],256],65173:[[1578],256],65174:[[1578],256],65175:[[1578],256],65176:[[1578],256],65177:[[1579],256],65178:[[1579],256],65179:[[1579],256],65180:[[1579],256],65181:[[1580],256],65182:[[1580],256],65183:[[1580],256],65184:[[1580],256],65185:[[1581],256],65186:[[1581],256],65187:[[1581],256],65188:[[1581],256],65189:[[1582],256],65190:[[1582],256],65191:[[1582],256],65192:[[1582],256],65193:[[1583],256],65194:[[1583],256],65195:[[1584],256],65196:[[1584],256],65197:[[1585],256],65198:[[1585],256],65199:[[1586],256],65200:[[1586],256],65201:[[1587],256],65202:[[1587],256],65203:[[1587],256],65204:[[1587],256],65205:[[1588],256],65206:[[1588],256],65207:[[1588],256],65208:[[1588],256],65209:[[1589],256],65210:[[1589],256],65211:[[1589],256],65212:[[1589],256],65213:[[1590],256],65214:[[1590],256],65215:[[1590],256],65216:[[1590],256],65217:[[1591],256],65218:[[1591],256],65219:[[1591],256],65220:[[1591],256],65221:[[1592],256],65222:[[1592],256],65223:[[1592],256],65224:[[1592],256],65225:[[1593],256],65226:[[1593],256],65227:[[1593],256],65228:[[1593],256],65229:[[1594],256],65230:[[1594],256],65231:[[1594],256],65232:[[1594],256],65233:[[1601],256],65234:[[1601],256],65235:[[1601],256],65236:[[1601],256],65237:[[1602],256],65238:[[1602],256],65239:[[1602],256],65240:[[1602],256],65241:[[1603],256],65242:[[1603],256],65243:[[1603],256],65244:[[1603],256],65245:[[1604],256],65246:[[1604],256],65247:[[1604],256],65248:[[1604],256],65249:[[1605],256],65250:[[1605],256],65251:[[1605],256],65252:[[1605],256],65253:[[1606],256],65254:[[1606],256],65255:[[1606],256],65256:[[1606],256],65257:[[1607],256],65258:[[1607],256],65259:[[1607],256],65260:[[1607],256],65261:[[1608],256],65262:[[1608],256],65263:[[1609],256],65264:[[1609],256],65265:[[1610],256],65266:[[1610],256],65267:[[1610],256],65268:[[1610],256],65269:[[1604,1570],256],65270:[[1604,1570],256],65271:[[1604,1571],256],65272:[[1604,1571],256],65273:[[1604,1573],256],65274:[[1604,1573],256],65275:[[1604,1575],256],65276:[[1604,1575],256]},65280:{65281:[[33],256],65282:[[34],256],65283:[[35],256],65284:[[36],256],65285:[[37],256],65286:[[38],256],65287:[[39],256],65288:[[40],256],65289:[[41],256],65290:[[42],256],65291:[[43],256],65292:[[44],256],65293:[[45],256],65294:[[46],256],65295:[[47],256],65296:[[48],256],65297:[[49],256],65298:[[50],256],65299:[[51],256],65300:[[52],256],65301:[[53],256],65302:[[54],256],65303:[[55],256],65304:[[56],256],65305:[[57],256],65306:[[58],256],65307:[[59],256],65308:[[60],256],65309:[[61],256],65310:[[62],256],65311:[[63],256],65312:[[64],256],65313:[[65],256],65314:[[66],256],65315:[[67],256],65316:[[68],256],65317:[[69],256],65318:[[70],256],65319:[[71],256],65320:[[72],256],65321:[[73],256],65322:[[74],256],65323:[[75],256],65324:[[76],256],65325:[[77],256],65326:[[78],256],65327:[[79],256],65328:[[80],256],65329:[[81],256],65330:[[82],256],65331:[[83],256],65332:[[84],256],65333:[[85],256],65334:[[86],256],65335:[[87],256],65336:[[88],256],65337:[[89],256],65338:[[90],256],65339:[[91],256],65340:[[92],256],65341:[[93],256],65342:[[94],256],65343:[[95],256],65344:[[96],256],65345:[[97],256],65346:[[98],256],65347:[[99],256],65348:[[100],256],65349:[[101],256],65350:[[102],256],65351:[[103],256],65352:[[104],256],65353:[[105],256],65354:[[106],256],65355:[[107],256],65356:[[108],256],65357:[[109],256],65358:[[110],256],65359:[[111],256],65360:[[112],256],65361:[[113],256],65362:[[114],256],65363:[[115],256],65364:[[116],256],65365:[[117],256],65366:[[118],256],65367:[[119],256],65368:[[120],256],65369:[[121],256],65370:[[122],256],65371:[[123],256],65372:[[124],256],65373:[[125],256],65374:[[126],256],65375:[[10629],256],65376:[[10630],256],65377:[[12290],256],65378:[[12300],256],65379:[[12301],256],65380:[[12289],256],65381:[[12539],256],65382:[[12530],256],65383:[[12449],256],65384:[[12451],256],65385:[[12453],256],65386:[[12455],256],65387:[[12457],256],65388:[[12515],256],65389:[[12517],256],65390:[[12519],256],65391:[[12483],256],65392:[[12540],256],65393:[[12450],256],65394:[[12452],256],65395:[[12454],256],65396:[[12456],256],65397:[[12458],256],65398:[[12459],256],65399:[[12461],256],65400:[[12463],256],65401:[[12465],256],65402:[[12467],256],65403:[[12469],256],65404:[[12471],256],65405:[[12473],256],65406:[[12475],256],65407:[[12477],256],65408:[[12479],256],65409:[[12481],256],65410:[[12484],256],65411:[[12486],256],65412:[[12488],256],65413:[[12490],256],65414:[[12491],256],65415:[[12492],256],65416:[[12493],256],65417:[[12494],256],65418:[[12495],256],65419:[[12498],256],65420:[[12501],256],65421:[[12504],256],65422:[[12507],256],65423:[[12510],256],65424:[[12511],256],65425:[[12512],256],65426:[[12513],256],65427:[[12514],256],65428:[[12516],256],65429:[[12518],256],65430:[[12520],256],65431:[[12521],256],65432:[[12522],256],65433:[[12523],256],65434:[[12524],256],65435:[[12525],256],65436:[[12527],256],65437:[[12531],256],65438:[[12441],256],65439:[[12442],256],65440:[[12644],256],65441:[[12593],256],65442:[[12594],256],65443:[[12595],256],65444:[[12596],256],65445:[[12597],256],65446:[[12598],256],65447:[[12599],256],65448:[[12600],256],65449:[[12601],256],65450:[[12602],256],65451:[[12603],256],65452:[[12604],256],65453:[[12605],256],65454:[[12606],256],65455:[[12607],256],65456:[[12608],256],65457:[[12609],256],65458:[[12610],256],65459:[[12611],256],65460:[[12612],256],65461:[[12613],256],65462:[[12614],256],65463:[[12615],256],65464:[[12616],256],65465:[[12617],256],65466:[[12618],256],65467:[[12619],256],65468:[[12620],256],65469:[[12621],256],65470:[[12622],256],65474:[[12623],256],65475:[[12624],256],65476:[[12625],256],65477:[[12626],256],65478:[[12627],256],65479:[[12628],256],65482:[[12629],256],65483:[[12630],256],65484:[[12631],256],65485:[[12632],256],65486:[[12633],256],65487:[[12634],256],65490:[[12635],256],65491:[[12636],256],65492:[[12637],256],65493:[[12638],256],65494:[[12639],256],65495:[[12640],256],65498:[[12641],256],65499:[[12642],256],65500:[[12643],256],65504:[[162],256],65505:[[163],256],65506:[[172],256],65507:[[175],256],65508:[[166],256],65509:[[165],256],65510:[[8361],256],65512:[[9474],256],65513:[[8592],256],65514:[[8593],256],65515:[[8594],256],65516:[[8595],256],65517:[[9632],256],65518:[[9675],256]}};var g={nfc:function(e){return m("NFC",e)},nfd:function(e){return m("NFD",e)},nfkc:function(e){return m("NFKC",e)},nfkd:function(e){return m("NFKD",e)}};"object"===i(e)?e.exports=g:void 0===(r=function(){return g}.call(t,n,t,e))||(e.exports=r),g.shimApplied=!1,String.prototype.normalize||(Object.defineProperty(String.prototype,"normalize",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=""+this,t=void 0===arguments[0]?"NFC":arguments[0];if(null==this)throw new TypeError("Cannot call method on "+Object.prototype.toString.call(this));if("NFC"===t)return g.nfc(e);if("NFD"===t)return g.nfd(e);if("NFKC"===t)return g.nfkc(e);if("NFKD"===t)return g.nfkd(e);throw new RangeError("Invalid normalization form: "+t)}}),g.shimApplied=!0)}()}).call(this,n(143)(e))},function(e,t,n){var r=n(12),i=n(174),a=r.WeakMap;e.exports="function"==typeof a&&/native code/.test(i(a))},function(e,t,n){"use strict";var r=n(7),i=n(148).right,a=n(106),o=n(80),s=a("reduceRight"),c=o("reduce",{1:0});r({target:"Array",proto:!0,forced:!s||!c},{reduceRight:function(e){return i(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var r=n(181),i=n(128);e.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},function(e,t,n){"use strict";n.r(t),n.d(t,"Headers",(function(){return m})),n.d(t,"Request",(function(){return x})),n.d(t,"Response",(function(){return T})),n.d(t,"DOMException",(function(){return E})),n.d(t,"fetch",(function(){return I}));n(47),n(73),n(97),n(19),n(23),n(9),n(33),n(30),n(20),n(184),n(28),n(186),n(5),n(21),n(15),n(25),n(22),n(38),n(39),n(98),n(74),n(48),n(49),n(50),n(51),n(52),n(53),n(54),n(55),n(56),n(57),n(58),n(59),n(60),n(61),n(62),n(63),n(64),n(65),n(66),n(67),n(68),n(69),n(70),n(27),n(24),n(192);var r=n(13),i=n.n(r),a="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==a&&a,o="URLSearchParams"in a,s="Symbol"in a&&"iterator"in Symbol,c="FileReader"in a&&"Blob"in a&&function(){try{return new Blob,!0}catch(e){return!1}}(),u="FormData"in a,l="ArrayBuffer"in a;if(l)var f=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],p=ArrayBuffer.isView||function(e){return e&&f.indexOf(Object.prototype.toString.call(e))>-1};function d(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function h(e){return"string"!=typeof e&&(e=String(e)),e}function v(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return s&&(t[Symbol.iterator]=function(){return t}),t}function m(e){this.map={},e instanceof m?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 g(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function y(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function b(e){var t=new FileReader,n=y(t);return t.readAsArrayBuffer(e),n}function _(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function w(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:c&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:u&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:o&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():l&&c&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=_(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):l&&(ArrayBuffer.prototype.isPrototypeOf(e)||p(e))?this._bodyArrayBuffer=_(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):o&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},c&&(this.blob=function(){var e=g(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(){if(this._bodyArrayBuffer){var e=g(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}return this.blob().then(b)}),this.text=function(){var e,t,n,r=g(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=y(t),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},u&&(this.formData=function(){return this.text().then(k)}),this.json=function(){return this.text().then(JSON.parse)},this}m.prototype.append=function(e,t){e=d(e),t=h(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},m.prototype.delete=function(e){delete this.map[d(e)]},m.prototype.get=function(e){return e=d(e),this.has(e)?this.map[e]:null},m.prototype.has=function(e){return this.map.hasOwnProperty(d(e))},m.prototype.set=function(e,t){this.map[d(e)]=h(t)},m.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},m.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),v(e)},m.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),v(e)},m.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),v(e)},s&&(m.prototype[Symbol.iterator]=m.prototype.entries);var S=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function x(e,t){if(!(this instanceof x))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n,r,i=(t=t||{}).body;if(e instanceof x){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new m(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 m(t.headers)),this.method=(n=t.method||this.method||"GET",r=n.toUpperCase(),S.indexOf(r)>-1?r:n),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");if(this._initBody(i),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var a=/([?&])_=[^&]*/;if(a.test(this.url))this.url=this.url.replace(a,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function k(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}})),t}function T(e,t){if(!(this instanceof T))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');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:"",this.headers=new m(t.headers),this.url=t.url||"",this._initBody(e)}x.prototype.clone=function(){return new x(this,{body:this._bodyInit})},w.call(x.prototype),w.call(T.prototype),T.prototype.clone=function(){return new T(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new m(this.headers),url:this.url})},T.error=function(){var e=new T(null,{status:0,statusText:""});return e.type="error",e};var j=[301,302,303,307,308];T.redirect=function(e,t){if(-1===j.indexOf(t))throw new RangeError("Invalid status code");return new T(null,{status:t,headers:{location:e}})};var E=a.DOMException;try{new E}catch(e){(E=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack}).prototype=Object.create(Error.prototype),E.prototype.constructor=E}function I(e,t){return new Promise((function(n,r){var o=new x(e,t);if(o.signal&&o.signal.aborted)return r(new E("Aborted","AbortError"));var s=new XMLHttpRequest;function u(){s.abort()}s.onload=function(){var e,t,r={status:s.status,statusText:s.statusText,headers:(e=s.getAllResponseHeaders()||"",t=new m,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();t.append(r,i)}})),t)};r.url="responseURL"in s?s.responseURL:r.headers.get("X-Request-URL");var i="response"in s?s.response:s.responseText;setTimeout((function(){n(new T(i,r))}),0)},s.onerror=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},s.ontimeout=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},s.onabort=function(){setTimeout((function(){r(new E("Aborted","AbortError"))}),0)},s.open(o.method,function(e){try{return""===e&&a.location.href?a.location.href:e}catch(t){return e}}(o.url),!0),"include"===o.credentials?s.withCredentials=!0:"omit"===o.credentials&&(s.withCredentials=!1),"responseType"in s&&(c?s.responseType="blob":l&&o.headers.get("Content-Type")&&-1!==o.headers.get("Content-Type").indexOf("application/octet-stream")&&(s.responseType="arraybuffer")),!t||"object"!==i()(t.headers)||t.headers instanceof m?o.headers.forEach((function(e,t){s.setRequestHeader(t,e)})):Object.getOwnPropertyNames(t.headers).forEach((function(e){s.setRequestHeader(e,h(t.headers[e]))})),o.signal&&(o.signal.addEventListener("abort",u),s.onreadystatechange=function(){4===s.readyState&&o.signal.removeEventListener("abort",u)}),s.send(void 0===o._bodyInit?null:o._bodyInit)}))}I.polyfill=!0,a.fetch||(a.fetch=I,a.Headers=m,a.Request=x,a.Response=T)},function(e,t,n){var r=n(31);e.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},function(e,t){var n=Math.abs,r=Math.pow,i=Math.floor,a=Math.log,o=Math.LN2;e.exports={pack:function(e,t,s){var c,u,l,f=new Array(s),p=8*s-t-1,d=(1<<p)-1,h=d>>1,v=23===t?r(2,-24)-r(2,-77):0,m=e<0||0===e&&1/e<0?1:0,g=0;for((e=n(e))!=e||e===1/0?(u=e!=e?1:0,c=d):(c=i(a(e)/o),e*(l=r(2,-c))<1&&(c--,l*=2),(e+=c+h>=1?v/l:v*r(2,1-h))*l>=2&&(c++,l/=2),c+h>=d?(u=0,c=d):c+h>=1?(u=(e*l-1)*r(2,t),c+=h):(u=e*r(2,h-1)*r(2,t),c=0));t>=8;f[g++]=255&u,u/=256,t-=8);for(c=c<<t|u,p+=t;p>0;f[g++]=255&c,c/=256,p-=8);return f[--g]|=128*m,f},unpack:function(e,t){var n,i=e.length,a=8*i-t-1,o=(1<<a)-1,s=o>>1,c=a-7,u=i-1,l=e[u--],f=127&l;for(l>>=7;c>0;f=256*f+e[u],u--,c-=8);for(n=f&(1<<-c)-1,f>>=-c,c+=t;c>0;n=256*n+e[u],u--,c-=8);if(0===f)f=1-s;else{if(f===o)return n?NaN:l?-1/0:1/0;n+=r(2,t),f-=s}return(l?-1:1)*n*r(2,f-t)}}},function(e,t,n){var r=n(12);e.exports=function(e,t){var n=r.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}},function(e,t){e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},function(e,t,n){var r=n(11),i=n(237);e.exports=function(e){return r((function(){return!!i[e]()||"​…᠎"!="​…᠎"[e]()||i[e].name!==e}))}},function(e,t,n){var r=n(12),i=n(11),a=n(151),o=n(26).NATIVE_ARRAY_BUFFER_VIEWS,s=r.ArrayBuffer,c=r.Int8Array;e.exports=!o||!i((function(){c(1)}))||!i((function(){new c(-1)}))||!a((function(e){new c,new c(null),new c(1.5),new c(e)}),!0)||i((function(){return 1!==new c(new s(2),1,void 0).length}))},function(e,t,n){var r=n(96);e.exports=function(e){var t=r(e);if(t<0)throw RangeError("The argument can't be less than 0");return t}},function(e,t,n){var r=n(46),i=n(29),a=n(132),o=n(188),s=n(108),c=n(26).aTypedArrayConstructor;e.exports=function(e){var t,n,u,l,f,p,d=r(e),h=arguments.length,v=h>1?arguments[1]:void 0,m=void 0!==v,g=a(d);if(null!=g&&!o(g))for(p=(f=g.call(d)).next,d=[];!(l=p.call(f)).done;)d.push(l.value);for(m&&h>2&&(v=s(v,arguments[2],2)),n=i(d.length),u=new(c(this))(n),t=0;n>t;t++)u[t]=m?v(d[t],t):d[t];return u}},function(e,t,n){"use strict";var r=n(46),i=n(105),a=n(29),o=Math.min;e.exports=[].copyWithin||function(e,t){var n=r(this),s=a(n.length),c=i(e,s),u=i(t,s),l=arguments.length>2?arguments[2]:void 0,f=o((void 0===l?s:i(l,s))-u,s-c),p=1;for(u<c&&c<u+f&&(p=-1,u+=f-1,c+=f-1);f-- >0;)u in n?n[c]=n[u]:delete n[c],c+=p,u+=p;return n}},function(e,t,n){"use strict";var r=/[^\0-\u007E]/,i=/[.\u3002\uFF0E\uFF61]/g,a="Overflow: input needs wider integers to process",o=Math.floor,s=String.fromCharCode,c=function(e){return e+22+75*(e<26)},u=function(e,t,n){var r=0;for(e=n?o(e/700):e>>1,e+=o(e/t);e>455;r+=36)e=o(e/35);return o(r+36*e/(e+38))},l=function(e){var t,n,r=[],i=(e=function(e){for(var t=[],n=0,r=e.length;n<r;){var i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var a=e.charCodeAt(n++);56320==(64512&a)?t.push(((1023&i)<<10)+(1023&a)+65536):(t.push(i),n--)}else t.push(i)}return t}(e)).length,l=128,f=0,p=72;for(t=0;t<e.length;t++)(n=e[t])<128&&r.push(s(n));var d=r.length,h=d;for(d&&r.push("-");h<i;){var v=2147483647;for(t=0;t<e.length;t++)(n=e[t])>=l&&n<v&&(v=n);var m=h+1;if(v-l>o((2147483647-f)/m))throw RangeError(a);for(f+=(v-l)*m,l=v,t=0;t<e.length;t++){if((n=e[t])<l&&++f>2147483647)throw RangeError(a);if(n==l){for(var g=f,y=36;;y+=36){var b=y<=p?1:y>=p+26?26:y-p;if(g<b)break;var _=g-b,w=36-b;r.push(s(c(b+_%w))),g=o(_/w)}r.push(s(c(g))),p=u(f,m,h==d),f=0,++h}}++f,++l}return r.join("")};e.exports=function(e){var t,n,a=[],o=e.toLowerCase().replace(i,".").split(".");for(t=0;t<o.length;t++)n=o[t],a.push(r.test(n)?"xn--"+l(n):n);return a.join(".")}},function(e,t,n){"use strict";n(9);var r=n(7),i=n(95),a=n(242),o=n(45),s=n(150),c=n(88),u=n(223),l=n(86),f=n(109),p=n(34),d=n(108),h=n(128),v=n(36),m=n(31),g=n(107),y=n(103),b=n(312),_=n(132),w=n(18),S=i("fetch"),x=i("Headers"),k=w("iterator"),T=l.set,j=l.getterFor("URLSearchParams"),E=l.getterFor("URLSearchParamsIterator"),I=/\+/g,O=Array(4),A=function(e){return O[e-1]||(O[e-1]=RegExp("((?:%[\\da-f]{2}){"+e+"})","gi"))},R=function(e){try{return decodeURIComponent(e)}catch(t){return e}},N=function(e){var t=e.replace(I," "),n=4;try{return decodeURIComponent(t)}catch(e){for(;n;)t=t.replace(A(n--),R);return t}},C=/[!'()~]|%20/g,P={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},L=function(e){return P[e]},q=function(e){return encodeURIComponent(e).replace(C,L)},F=function(e,t){if(t)for(var n,r,i=t.split("&"),a=0;a<i.length;)(n=i[a++]).length&&(r=n.split("="),e.push({key:N(r.shift()),value:N(r.join("="))}))},M=function(e){this.entries.length=0,F(this.entries,e)},D=function(e,t){if(e<t)throw TypeError("Not enough arguments")},B=u((function(e,t){T(this,{type:"URLSearchParamsIterator",iterator:b(j(e).entries),kind:t})}),"Iterator",(function(){var e=E(this),t=e.kind,n=e.iterator.next(),r=n.value;return n.done||(n.value="keys"===t?r.key:"values"===t?r.value:[r.key,r.value]),n})),U=function(){f(this,U,"URLSearchParams");var e,t,n,r,i,a,o,s,c,u=arguments.length>0?arguments[0]:void 0,l=this,d=[];if(T(l,{type:"URLSearchParams",entries:d,updateURL:function(){},updateSearchParams:M}),void 0!==u)if(m(u))if("function"==typeof(e=_(u)))for(n=(t=e.call(u)).next;!(r=n.call(t)).done;){if((o=(a=(i=b(v(r.value))).next).call(i)).done||(s=a.call(i)).done||!a.call(i).done)throw TypeError("Expected sequence with length 2");d.push({key:o.value+"",value:s.value+""})}else for(c in u)p(u,c)&&d.push({key:c,value:u[c]+""});else F(d,"string"==typeof u?"?"===u.charAt(0)?u.slice(1):u:u+"")},z=U.prototype;s(z,{append:function(e,t){D(arguments.length,2);var n=j(this);n.entries.push({key:e+"",value:t+""}),n.updateURL()},delete:function(e){D(arguments.length,1);for(var t=j(this),n=t.entries,r=e+"",i=0;i<n.length;)n[i].key===r?n.splice(i,1):i++;t.updateURL()},get:function(e){D(arguments.length,1);for(var t=j(this).entries,n=e+"",r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){D(arguments.length,1);for(var t=j(this).entries,n=e+"",r=[],i=0;i<t.length;i++)t[i].key===n&&r.push(t[i].value);return r},has:function(e){D(arguments.length,1);for(var t=j(this).entries,n=e+"",r=0;r<t.length;)if(t[r++].key===n)return!0;return!1},set:function(e,t){D(arguments.length,1);for(var n,r=j(this),i=r.entries,a=!1,o=e+"",s=t+"",c=0;c<i.length;c++)(n=i[c]).key===o&&(a?i.splice(c--,1):(a=!0,n.value=s));a||i.push({key:o,value:s}),r.updateURL()},sort:function(){var e,t,n,r=j(this),i=r.entries,a=i.slice();for(i.length=0,n=0;n<a.length;n++){for(e=a[n],t=0;t<n;t++)if(i[t].key>e.key){i.splice(t,0,e);break}t===n&&i.push(e)}r.updateURL()},forEach:function(e){for(var t,n=j(this).entries,r=d(e,arguments.length>1?arguments[1]:void 0,3),i=0;i<n.length;)r((t=n[i++]).value,t.key,this)},keys:function(){return new B(this,"keys")},values:function(){return new B(this,"values")},entries:function(){return new B(this,"entries")}},{enumerable:!0}),o(z,k,z.entries),o(z,"toString",(function(){for(var e,t=j(this).entries,n=[],r=0;r<t.length;)e=t[r++],n.push(q(e.key)+"="+q(e.value));return n.join("&")}),{enumerable:!0}),c(U,"URLSearchParams"),r({global:!0,forced:!a},{URLSearchParams:U}),a||"function"!=typeof S||"function"!=typeof x||r({global:!0,enumerable:!0,forced:!0},{fetch:function(e){var t,n,r,i=[e];return arguments.length>1&&(m(t=arguments[1])&&(n=t.body,"URLSearchParams"===h(n)&&((r=t.headers?new x(t.headers):new x).has("content-type")||r.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),t=g(t,{body:y(0,String(n)),headers:y(0,r)}))),i.push(t)),S.apply(this,i)}}),e.exports={URLSearchParams:U,getState:j}},function(e,t,n){var r=n(36),i=n(132);e.exports=function(e){var t=i(e);if("function"!=typeof t)throw TypeError(String(e)+" is not iterable");return r(t.call(e))}},function(e,t,n){"use strict";n.r(t);var r=n(208),i=n(168);for(var a in i)["HttpClient","parseJwt","default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(a);var o=n(141);for(var a in o)["HttpClient","parseJwt","default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(a);var s=n(142);n.d(t,"HttpClient",(function(){return s.HttpClient}));var c=n(101);n.d(t,"parseJwt",(function(){return c.parseJwt})),t.default=r.Client},function(e,t){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw a}}return n}}},function(e,t,n){var r=function(e){"use strict";var t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",o=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var i=t&&t.prototype instanceof f?t:f,a=Object.create(i.prototype),o=new x(r||[]);return a._invoke=function(e,t,n){var r="suspendedStart";return function(i,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw a;return T()}for(n.method=i,n.arg=a;;){var o=n.delegate;if(o){var s=_(o,n);if(s){if(s===l)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=u(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(e,n,o),a}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var l={};function f(){}function p(){}function d(){}var h={};h[i]=function(){return this};var v=Object.getPrototypeOf,m=v&&v(v(k([])));m&&m!==t&&n.call(m,i)&&(h=m);var g=d.prototype=f.prototype=Object.create(h);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){var r;this._invoke=function(i,a){function o(){return new t((function(r,o){!function r(i,a,o,s){var c=u(e[i],e,a);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,o,s)}),(function(e){r("throw",e,o,s)})):t.resolve(f).then((function(e){l.value=e,o(l)}),(function(e){return r("throw",e,o,s)}))}s(c.arg)}(i,a,r,o)}))}return r=r?r.then(o,o):o()}}function _(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=u(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function k(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:T}}function T(){return{value:void 0,done:!0}}return p.prototype=g.constructor=d,d.constructor=p,p.displayName=s(d,o,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,s(e,o,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},y(b.prototype),b.prototype[a]=function(){return this},e.AsyncIterator=b,e.async=function(t,n,r,i,a){void 0===a&&(a=Promise);var o=new b(c(t,n,r,i),a);return e.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},y(g),s(g,o,"Generator"),g[i]=function(){return this},g.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=k,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return o.type="throw",o.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method="next",this.next=a.finallyLoc,l):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;S(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:k(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}(e.exports);try{regeneratorRuntime=r}catch(e){Function("r","regeneratorRuntime = r")(r)}},function(e,t,n){t.RateLimiter=n(317),t.TokenBucket=n(252)},function(e,t,n){(function(t){var r=n(252),i=n(318),a=function(e,t,n){this.tokenBucket=new r(e,e,t,null),this.tokenBucket.content=e,this.curIntervalStart=i(),this.tokensThisInterval=0,this.fireImmediately=n};a.prototype={tokenBucket:null,curIntervalStart:0,tokensThisInterval:0,fireImmediately:!1,removeTokens:function(e,n){if(e>this.tokenBucket.bucketSize)return t.nextTick(n.bind(null,"Requested tokens "+e+" exceeds maximum tokens per interval "+this.tokenBucket.bucketSize,null)),!1;var r=this,a=i();if((a<this.curIntervalStart||a-this.curIntervalStart>=this.tokenBucket.interval)&&(this.curIntervalStart=a,this.tokensThisInterval=0),e>this.tokenBucket.tokensPerInterval-this.tokensThisInterval){if(this.fireImmediately)t.nextTick(n.bind(null,null,-1));else{var o=Math.ceil(this.curIntervalStart+this.tokenBucket.interval-a);setTimeout((function(){r.tokenBucket.removeTokens(e,s)}),o)}return!1}return this.tokenBucket.removeTokens(e,s);function s(t,i){if(t)return n(t,null);r.tokensThisInterval+=e,n(null,i)}},tryRemoveTokens:function(e){if(e>this.tokenBucket.bucketSize)return!1;var t=i();if((t<this.curIntervalStart||t-this.curIntervalStart>=this.tokenBucket.interval)&&(this.curIntervalStart=t,this.tokensThisInterval=0),e>this.tokenBucket.tokensPerInterval-this.tokensThisInterval)return!1;var n=this.tokenBucket.tryRemoveTokens(e);return n&&(this.tokensThisInterval+=e),n},getTokensRemaining:function(){return this.tokenBucket.drip(),this.tokenBucket.content}},e.exports=a}).call(this,n(100))},function(e,t,n){(function(t){e.exports=function(){if(void 0!==t&&t.hrtime){var e=t.hrtime(),n=e[0],r=e[1];return 1e3*n+Math.floor(r/1e6)}return(new Date).getTime()}}).call(this,n(100))},function(e,t,n){"use strict";n.r(t),function(e,r){n.d(t,"Client",(function(){return qc})),n.d(t,"Constants",(function(){return Va})),n.d(t,"DataForms",(function(){return _o})),n.d(t,"JID",(function(){return Ee})),n.d(t,"JXT",(function(){return Wr})),n.d(t,"Jingle",(function(){return go})),n.d(t,"Namespaces",(function(){return Lr})),n.d(t,"RSM",(function(){return zc})),n.d(t,"RTT",(function(){return Bc})),n.d(t,"SASL",(function(){return Qi})),n.d(t,"Stanzas",(function(){return Nc})),n.d(t,"Utils",(function(){return sa})),n.d(t,"VERSION",(function(){return Jc})),n.d(t,"core",(function(){return Po})),n.d(t,"createClient",(function(){return Gc})),n.d(t,"getHostMeta",(function(){return Ka}));n(47),n(73),n(134),n(10),n(158),n(44),n(133),n(19),n(82),n(23),n(9),n(33),n(159),n(30),n(20),n(325),n(81),n(28),n(90),n(75),n(118),n(326),n(71),n(5),n(327),n(21),n(15),n(25),n(91),n(197),n(257),n(160),n(99),n(22),n(89),n(38),n(198),n(39),n(137),n(98),n(74),n(48),n(49),n(50),n(51),n(52),n(53),n(54),n(55),n(56),n(57),n(58),n(59),n(60),n(61),n(62),n(63),n(64),n(65),n(66),n(67),n(68),n(69),n(70),n(27),n(24),n(192),n(136);var i=n(43),a=n.n(i),o=n(77),s=n.n(o),c=n(14),u=n.n(c),l=n(13),f=n.n(l),p=n(6),d=n.n(p),h=n(209),v=n.n(h),m=n(4),g=n.n(m),y=n(0),b=n.n(y),_=(n(40),n(2)),w=n.n(_),S=n(3),x=n.n(S),k=n(8),T=n.n(k),j=n(37),E=n.n(j),I=n(16),O=n.n(I),A=n(1),R=n(121),N=n(42),C=n(78),P=n.n(C),L=n(92),q=n(17);function F(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return M(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return M(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function M(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function D(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 n,r=O()(e);if(t){var i=O()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return E()(this,n)}}var B=Math.pow(2,32),U=function(e,t){return(e%t+t)%t},z=function(e){T()(n,e);var t=D(n);function n(){var e;return w()(this,n),(e=t.call(this)).allowResume=!0,e.lastAck=0,e.handled=0,e.unacked=[],e.inboundStarted=!1,e.outboundStarted=!1,e.id=void 0,e.jid=void 0,e.allowResume=!0,e.started=!1,e.cacheHandler=function(){},e._reset(),e}return x()(n,[{key:"load",value:function(e){var t;this.id=e.id,this.allowResume=null===(t=e.allowResume)||void 0===t||t,this.handled=e.handled,this.lastAck=e.lastAck,this.unacked=e.unacked,this.emit("prebound",e.jid)}},{key:"cache",value:function(e){this.cacheHandler=e}},{key:"bind",value:function(e){return Object(A.__awaiter)(this,void 0,void 0,b.a.mark((function t(){return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.jid=e,t.next=3,this._cache();case 3:case"end":return t.stop()}}),t,this)})))}},{key:"enable",value:function(){return Object(A.__awaiter)(this,void 0,void 0,b.a.mark((function e(){return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.emit("send",{allowResumption:this.allowResume,type:"enable"});case 1:case"end":return e.stop()}}),e,this)})))}},{key:"resume",value:function(){return Object(A.__awaiter)(this,void 0,void 0,b.a.mark((function e(){return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.emit("send",{handled:this.handled,previousSession:this.id,type:"resume"});case 1:case"end":return e.stop()}}),e,this)})))}},{key:"enabled",value:function(e){return Object(A.__awaiter)(this,void 0,void 0,b.a.mark((function t(){return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.id=e.id,this.handled=0,this.inboundStarted=!0,t.next=5,this._cache();case 5:case"end":return t.stop()}}),t,this)})))}},{key:"resumed",value:function(e){return Object(A.__awaiter)(this,void 0,void 0,b.a.mark((function t(){return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.id=e.previousSession,this.inboundStarted=!0,t.next=4,this.process(e,!0);case 4:return t.next=6,this._cache();case 6:case"end":return t.stop()}}),t,this)})))}},{key:"failed",value:function(e){return Object(A.__awaiter)(this,void 0,void 0,b.a.mark((function t(){var n,r,i,a,o;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.process(e);case 2:n=F(this.unacked);try{for(n.s();!(r=n.n()).done;)i=g()(r.value,2),a=i[0],o=i[1],this.emit("failed",{kind:a,stanza:o})}catch(e){n.e(e)}finally{n.f()}return this._reset(),t.next=7,this._cache();case 7:case"end":return t.stop()}}),t,this)})))}},{key:"ack",value:function(){this.emit("send",{handled:this.handled,type:"ack"})}},{key:"request",value:function(){this.emit("send",{type:"request"})}},{key:"process",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return Object(A.__awaiter)(this,void 0,void 0,b.a.mark((function n(){var r,i,a,o,s,c,u,l,f,p,d,h;return b.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(void 0!==e.handled){n.next=2;break}return n.abrupt("return");case 2:for(r=U(e.handled-this.lastAck,B),i=0;i<r&&this.unacked.length>0;i++)a=this.unacked.shift(),o=g()(a,2),s=o[0],c=o[1],this.emit("acked",{kind:s,stanza:c});if(this.lastAck=e.handled,t&&(u=this.unacked,this.unacked=[],u.length)){this.emit("begin-resend"),l=F(u);try{for(l.s();!(f=l.n()).done;)p=g()(f.value,2),d=p[0],h=p[1],this.emit("resend",{kind:d,stanza:h})}catch(e){l.e(e)}finally{l.f()}this.emit("end-resend")}return n.next=8,this._cache();case 8:case"end":return n.stop()}}),n,this)})))}},{key:"track",value:function(e,t){return Object(A.__awaiter)(this,void 0,void 0,b.a.mark((function n(){return b.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if("sm"!==e||"enable"!==t.type&&"resume"!==t.type){n.next=6;break}return this.handled=0,this.outboundStarted=!0,n.next=5,this._cache();case 5:return n.abrupt("return",!1);case 6:if(this.outboundStarted){n.next=8;break}return n.abrupt("return",!1);case 8:if("message"===e||"presence"===e||"iq"===e){n.next=10;break}return n.abrupt("return",!1);case 10:return this.unacked.push([e,t]),n.next=13,this._cache();case 13:return n.abrupt("return",!0);case 14:case"end":return n.stop()}}),n,this)})))}},{key:"handle",value:function(){return Object(A.__awaiter)(this,void 0,void 0,b.a.mark((function e(){return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.inboundStarted){e.next=4;break}return this.handled=U(this.handled+1,B),e.next=4,this._cache();case 4:case"end":return e.stop()}}),e,this)})))}},{key:"hibernate",value:function(){return Object(A.__awaiter)(this,void 0,void 0,b.a.mark((function e(){var t,n,r,i,a;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.resumable){e.next=2;break}return e.abrupt("return",this.shutdown());case 2:t=F(this.unacked);try{for(t.s();!(n=t.n()).done;)r=g()(n.value,2),i=r[0],a=r[1],this.emit("hibernated",{kind:i,stanza:a})}catch(e){t.e(e)}finally{t.f()}case 4:case"end":return e.stop()}}),e,this)})))}},{key:"shutdown",value:function(){return Object(A.__awaiter)(this,void 0,void 0,b.a.mark((function e(){return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.failed({type:"failed"}));case 1:case"end":return e.stop()}}),e,this)})))}},{key:"_cache",value:function(){return Object(A.__awaiter)(this,void 0,void 0,b.a.mark((function e(){return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.cacheHandler({allowResume:this.allowResume,handled:this.handled,id:this.id,jid:this.jid,lastAck:this.lastAck,unacked:this.unacked});case 3:e.next=8;break;case 5:e.prev=5,e.t0=e.catch(0),console.error("Failed to cache stream state",e.t0);case 8:case"end":return e.stop()}}),e,this,[[0,5]])})))}},{key:"_reset",value:function(){this.id="",this.inboundStarted=!1,this.outboundStarted=!1,this.lastAck=0,this.handled=0,this.unacked=[]}},{key:"started",get:function(){return this.outboundStarted&&this.inboundStarted},set:function(e){e||(this.outboundStarted=!1,this.inboundStarted=!1)}},{key:"resumable",get:function(){return this.started&&this.allowResume}}]),n}(N.EventEmitter),J={"A.1":{r:"hk:if|le:lf|nf:nv|qg:qv|rg:rj|rm:rp|rr:rt|rv:s3|vn:vv|17m:17n|17q:17v|18g:19g|1an:1ao|1cb:1cg|1e5:1ef|1fb:1ff|1fl:1gb|1gd:1gq|1gs:1gu|1hr:1hv|1im:1iv|1ne:1nf|1pd:1pf|1qb:1rv|1ti:280|29q:29r|2ae:2af|2al:2an|2bh:2c0|2cd:2ce|2ch:2ci|2dj:2dl|2dq:2dr|2e5:2e6|2e9:2ea|2ee:2em|2eo:2er|2f4:2f5|2fr:2g1|2g3:2g4|2gb:2ge|2gh:2gi|2hq:2hr|2i3:2i6|2i9:2ia|2ie:2io|2iv:2j5|2jl:2k0|2lq:2lr|2me:2mf|2mh:2mv|2n1:2n5|2ng:2o0|2od:2oe|2oh:2oi|2pk:2pl|2pq:2pr|2q4:2q6|2q9:2qa|2qe:2ql|2qo:2qr|2r2:2r5|2rh:2s1|2sb:2sd|2sm:2so|2t0:2t2|2t5:2t7|2tb:2td|2tq:2tt|2u3:2u5|2ue:2um|2uo:2v6|2vj:300|31q:31t|32e:32k|32n:32v|332:335|33g:341|35q:35t|36e:36k|36n:36t|372:375|37g:381|39q:39t|3a4:3a5|3ae:3am|3ao:3av|3b2:3b5|3bg:3c1|3cn:3cp|3du:3dv|3e7:3e9|3eb:3ee|3f0:3fh|3fl:3g0|3hr:3hu|3is:3k0|3k5:3k6|3kb:3kc|3ke:3kj|3l8:3l9|3lu:3lv|3me:3mf|3mq:3mr|3mu:3nv|3rb:3rg|3sc:3sf|3ud:3ue|3ug:3vv|41j:41l|41q:41v|42q:44v|466:46f|47p:47q|47s:47v|4aq:4au|4d3:4d7|4fq:4fv|4ie:4if|4iu:4iv|4ke:4kf|4lm:4ln|4m6:4m7|4om:4on|4qr:4r0|4rt:4sv|4vl:500|5jn:5jv|5kt:5kv|5nh:5nv|5ol:5ov|5pn:5pv|5qk:5qv|5rk:5rv|5ut:5uv|5va:5vv|60q:60v|63o:63v|65a:7fv|7ks:7kv|7nq:7nv|7om:7on|7ou:7ov|7q6:7q7|7qe:7qf|7ru:7rv|7uk:7ul|7vg:7vh|82j:82m|82o:82u|834:839|83i:83j|84f:84v|85i:86f|87b:87v|89r:89s|8ac:8ai|8c4:8cf|8uf:8vv|917:91v|92b:92v|9gk:9gl|9ju:9jv|9ka:9o0|9oa:9ob|9qj:9ql|9qv:9r0|9sl:9sn|9tv:9uf|9vc:9vf|ao0:bjv|bnk:bnv|bum:bvf|bvs:bvv|c4n:c4o|c80:c84|c9d:c9g|cdo:cff|cgt:cgv|ci4:cig|cjs:cju|cmc:cmf|crn:crq|cuu:cuv|jdm:jfv|17t6:17vv|194d:194f|1967:1avv|1lt4:1lvv|1uhe:1uhf|1ujb:1unv|1uo7:1uoi|1uoo:1uos|1uti:1uui|1va0:1vaf|1vcg:1vch|1ve8:1vef|1vft:1vfv|1vgg:1vgv|1vh4:1vhf|1vi7:1vi8|1vjc:1vjf|1vnt:1vnu|1vtv:1vu1|1vu8:1vu9|1vug:1vuh|1vuo:1vup|1vut:1vuv|1vvf:1vvo|2000:20nv|20p4:20pf|20qb:20vv|2116:2117|212e:3jvv|3k7m:3k7v|3k97:3k99|3keu:3kvv|3l50:3l51|3l53:3l54|3l57:3l58|3l8b:3l8c|3la7:3la9|3ll4:3ll7|3lua:3lud|3m00:3vvt|59mn:5tvv|5ugu:5vvt|6000:7vvt|8000:9vvt|a000:bvvt|c000:dvvt|e000:fvvt|g000:hvvt|i000:jvvt|k000:lvvt|m000:nvvt|o000:pvvt|q000:rvvt|s002:s00v|s040:tvvt",s:"9p8|9qc|9qe|9qn|9tg|147|bkq|3l2l|3l4t|3l5d|3l5q|3l5s|3l61|3l64|3l86|3l8l|3l8t|3l9q|3l9v|3la5|3lah|16f|c20|ccf|cnv|cvv|1b0|1c8|1d2|1dq|1h0|1nv|1oe|284|2c4|2d9|2dh|2dt|2eu|2h9|2hh|2hk|2hn|2ht|2it|2k4|2kc|2ke|2ki|2l9|2lh|2lk|2m6|2ma|2o4|2p9|2ph|2qu|2s4|2sh|2sr|2st|2tm|2u9|304|30d|30h|319|31k|325|329|344|34d|34h|359|35k|365|369|36v|384|38d|38h|399|3a9|3c4|3di|3ds|3el|3en|3k3|3k9|3ko|3l0|3l4|3l6|3lc|3lq|3m5|3m7|3q8|3so|3tt|412|418|41b|4g7|4i7|4i9|4in|4ip|4k7|4k9|4lf|4lh|4lv|4m1|4mf|4mn|4nf|4of|4oh|4ov|4q7|h1|5od|5rd|5rh|60f|1upn|1upt|1upv|1uq2|1uq5|1vij|1vj7|1vjl|1vo0|1vv7|20ov|7qo|7qq|7qs|7qu|7tl|7u5|7us|7vl|7vv|sb|sd|s000|t2|97v|uf|9go|9o5"},"B.1":{r:"60b:60d|80b:80d|1vg0:1vgf",s:"5d|606|1vnv|830|qf"},"B.2":{m:"5l:ts|6v:3j;3j|9g:39;o7|a9:ls;3e|bv:3j|fg:3a;oc|q5:tp|rq:10;tp|sg:tp;o8;o1|tg:u5;o8;o1|u2:u3|ug:ti|uh:to|ui:u5|uj:ud|uk:ub|ul:u6|um:u0|vg:tq|vh:u1|vi:u3|vl:tl|1c7:1b5;1c2|7km:38;ph|7kn:3k;o8|7ko:3n;oa|7kp:3p;oa|7kq:31;lu|7kr:7j1|7qg:u5;oj|7qi:u5;oj;o0|7qk:u5;oj;o1|7qm:u5;oj;q2|7s0:7o0;tp|7s1:7o1;tp|7s2:7o2;tp|7s3:7o3;tp|7s4:7o4;tp|7s5:7o5;tp|7s6:7o6;tp|7s7:7o7;tp|7s8:7o0;tp|7s9:7o1;tp|7sa:7o2;tp|7sb:7o3;tp|7sc:7o4;tp|7sd:7o5;tp|7se:7o6;tp|7sf:7o7;tp|7sg:7p0;tp|7sh:7p1;tp|7si:7p2;tp|7sj:7p3;tp|7sk:7p4;tp|7sl:7p5;tp|7sm:7p6;tp|7sn:7p7;tp|7so:7p0;tp|7sp:7p1;tp|7sq:7p2;tp|7sr:7p3;tp|7ss:7p4;tp|7st:7p5;tp|7su:7p6;tp|7sv:7p7;tp|7t0:7r0;tp|7t1:7r1;tp|7t2:7r2;tp|7t3:7r3;tp|7t4:7r4;tp|7t5:7r5;tp|7t6:7r6;tp|7t7:7r7;tp|7t8:7r0;tp|7t9:7r1;tp|7ta:7r2;tp|7tb:7r3;tp|7tc:7r4;tp|7td:7r5;tp|7te:7r6;tp|7tf:7r7;tp|7ti:7rg;tp|7tj:th;tp|7tk:tc;tp|7tm:th;q2|7tn:th;q2;tp|7ts:th;tp|7tu:tp|7u2:7rk;tp|7u3:tn;tp|7u4:te;tp|7u6:tn;q2|7u7:tn;q2;tp|7uc:tn;tp|7ui:tp;o8;o0|7uj:tp;o8;o1|7um:tp;q2|7un:tp;o8;q2|7v2:u5;o8;o0|7v3:u5;o8;o1|7v4:u1;oj|7v6:u5;q2|7v7:u5;o8;q2|7vi:7rs;tp|7vj:u9;tp|7vk:ue;tp|7vm:u9;q2|7vn:u9;q2;tp|7vs:u9;tp|858:3i;3j|882:33|883:5g;33|887:ir|889:5g;36|88b:38|88c:38|88d:38|88g:39|88h:39|88i:3c|88l:3e|88m:3e;3f|88p:3g|88q:3h|88r:3i|88s:3i|88t:3i|890:3j;3d|891:3k;35;3c|892:3k;3d|894:3q|898:3q|89c:32|89d:33|89g:35|89h:36|89j:3d|89u:tj|89v:u0|8a5:34|crh:38;3g;31|crj:31;3l|crl:3f;3m|cs0:3g;31|cs1:3e;31|cs2:ts;31|cs3:3d;31|cs4:3b;31|cs5:3b;32|cs6:3d;32|cs7:37;32|csa:3g;36|csb:3e;36|csc:ts;36|csg:38;3q|csh:3b;38;3q|csi:3d;38;3q|csj:37;38;3q|csk:3k;38;3q|ct9:3g;31|cta:3b;3g;31|ctb:3d;3g;31|ctc:37;3g;31|ctk:3g;3m|ctl:3e;3m|ctm:ts;3m|ctn:3d;3m|cto:3b;3m|ctp:3d;3m|ctq:3g;3n|ctr:3e;3n|cts:ts;3n|ctt:3d;3n|ctu:3b;3n|ctv:3d;3n|cu0:3b;u9|cu1:3d;u9|cu3:32;3h|cu6:33;8gl;3b;37|cu7:33;3f;1e|cu8:34;32|cu9:37;3p|cub:38;3g|cud:3b;3b|cue:3b;3d|cun:3g;38|cup:3g;3g;3d|cuq:3g;3i|cus:3j;3m|cut:3n;32|1uo0:36;36|1uo1:36;39|1uo2:36;3c|1uo3:36;36;39|1uo4:36;36;3c|1uo5:3j;3k|1uo6:3j;3k|1uoj:1bk;1bm|1uok:1bk;1b5|1uol:1bk;1bb|1uom:1bu;1bm|1uon:1bk;1bd|3l00:31|3l01:32|3l02:33|3l03:34|3l04:35|3l05:36|3l06:37|3l07:38|3l08:39|3l09:3a|3l0a:3b|3l0b:3c|3l0c:3d|3l0d:3e|3l0e:3f|3l0f:3g|3l0g:3h|3l0h:3i|3l0i:3j|3l0j:3k|3l0k:3l|3l0l:3m|3l0m:3n|3l0n:3o|3l0o:3p|3l0p:3q|3l1k:31|3l1l:32|3l1m:33|3l1n:34|3l1o:35|3l1p:36|3l1q:37|3l1r:38|3l1s:39|3l1t:3a|3l1u:3b|3l1v:3c|3l20:3d|3l21:3e|3l22:3f|3l23:3g|3l24:3h|3l25:3i|3l26:3j|3l27:3k|3l28:3l|3l29:3m|3l2a:3n|3l2b:3o|3l2c:3p|3l2d:3q|3l38:31|3l39:32|3l3a:33|3l3b:34|3l3c:35|3l3d:36|3l3e:37|3l3f:38|3l3g:39|3l3h:3a|3l3i:3b|3l3j:3c|3l3k:3d|3l3l:3e|3l3m:3f|3l3n:3g|3l3o:3h|3l3p:3i|3l3q:3j|3l3r:3k|3l3s:3l|3l3t:3m|3l3u:3n|3l3v:3o|3l40:3p|3l41:3q|3l4s:31|3l4u:33|3l4v:34|3l52:37|3l55:3a|3l56:3b|3l59:3e|3l5a:3f|3l5b:3g|3l5c:3h|3l5e:3j|3l5f:3k|3l5g:3l|3l5h:3m|3l5i:3n|3l5j:3o|3l5k:3p|3l5l:3q|3l6g:31|3l6h:32|3l6i:33|3l6j:34|3l6k:35|3l6l:36|3l6m:37|3l6n:38|3l6o:39|3l6p:3a|3l6q:3b|3l6r:3c|3l6s:3d|3l6t:3e|3l6u:3f|3l6v:3g|3l70:3h|3l71:3i|3l72:3j|3l73:3k|3l74:3l|3l75:3m|3l76:3n|3l77:3o|3l78:3p|3l79:3q|3l84:31|3l85:32|3l87:34|3l88:35|3l89:36|3l8a:37|3l8d:3a|3l8e:3b|3l8f:3c|3l8g:3d|3l8h:3e|3l8i:3f|3l8j:3g|3l8k:3h|3l8m:3j|3l8n:3k|3l8o:3l|3l8p:3m|3l8q:3n|3l8r:3o|3l8s:3p|3l9o:31|3l9p:32|3l9r:34|3l9s:35|3l9t:36|3l9u:37|3la0:39|3la1:3a|3la2:3b|3la3:3c|3la4:3d|3la6:3f|3laa:3j|3lab:3k|3lac:3l|3lad:3m|3lae:3n|3laf:3o|3lag:3p|3lbc:31|3lbd:32|3lbe:33|3lbf:34|3lbg:35|3lbh:36|3lbi:37|3lbj:38|3lbk:39|3lbl:3a|3lbm:3b|3lbn:3c|3lbo:3d|3lbp:3e|3lbq:3f|3lbr:3g|3lbs:3h|3lbt:3i|3lbu:3j|3lbv:3k|3lc0:3l|3lc1:3m|3lc2:3n|3lc3:3o|3lc4:3p|3lc5:3q|3ld0:31|3ld1:32|3ld2:33|3ld3:34|3ld4:35|3ld5:36|3ld6:37|3ld7:38|3ld8:39|3ld9:3a|3lda:3b|3ldb:3c|3ldc:3d|3ldd:3e|3lde:3f|3ldf:3g|3ldg:3h|3ldh:3i|3ldi:3j|3ldj:3k|3ldk:3l|3ldl:3m|3ldm:3n|3ldn:3o|3ldo:3p|3ldp:3q|3lek:31|3lel:32|3lem:33|3len:34|3leo:35|3lep:36|3leq:37|3ler:38|3les:39|3let:3a|3leu:3b|3lev:3c|3lf0:3d|3lf1:3e|3lf2:3f|3lf3:3g|3lf4:3h|3lf5:3i|3lf6:3j|3lf7:3k|3lf8:3l|3lf9:3m|3lfa:3n|3lfb:3o|3lfc:3p|3lfd:3q|3lg8:31|3lg9:32|3lga:33|3lgb:34|3lgc:35|3lgd:36|3lge:37|3lgf:38|3lgg:39|3lgh:3a|3lgi:3b|3lgj:3c|3lgk:3d|3lgl:3e|3lgm:3f|3lgn:3g|3lgo:3h|3lgp:3i|3lgq:3j|3lgr:3k|3lgs:3l|3lgt:3m|3lgu:3n|3lgv:3o|3lh0:3p|3lh1:3q|3lhs:31|3lht:32|3lhu:33|3lhv:34|3li0:35|3li1:36|3li2:37|3li3:38|3li4:39|3li5:3a|3li6:3b|3li7:3c|3li8:3d|3li9:3e|3lia:3f|3lib:3g|3lic:3h|3lid:3i|3lie:3j|3lif:3k|3lig:3l|3lih:3m|3lii:3n|3lij:3o|3lik:3p|3lil:3q|3ljg:31|3ljh:32|3lji:33|3ljj:34|3ljk:35|3ljl:36|3ljm:37|3ljn:38|3ljo:39|3ljp:3a|3ljq:3b|3ljr:3c|3ljs:3d|3ljt:3e|3lju:3f|3ljv:3g|3lk0:3h|3lk1:3i|3lk2:3j|3lk3:3k|3lk4:3l|3lk5:3m|3lk6:3n|3lk7:3o|3lk8:3p|3lk9:3q|3ll8:th|3ll9:ti|3lla:tj|3llb:tk|3llc:tl|3lld:tm|3lle:tn|3llf:to|3llg:tp|3llh:tq|3lli:tr|3llj:ts|3llk:tt|3lll:tu|3llm:tv|3lln:u0|3llo:u1|3llp:to|3llq:u3|3llr:u4|3lls:u5|3llt:u6|3llu:u7|3llv:u8|3lm0:u9|3lmj:u3|3ln2:th|3ln3:ti|3ln4:tj|3ln5:tk|3ln6:tl|3ln7:tm|3ln8:tn|3ln9:to|3lna:tp|3lnb:tq|3lnc:tr|3lnd:ts|3lne:tt|3lnf:tu|3lng:tv|3lnh:u0|3lni:u1|3lnj:to|3lnk:u3|3lnl:u4|3lnm:u5|3lnn:u6|3lno:u7|3lnp:u8|3lnq:u9|3lod:u3|3los:th|3lot:ti|3lou:tj|3lov:tk|3lp0:tl|3lp1:tm|3lp2:tn|3lp3:to|3lp4:tp|3lp5:tq|3lp6:tr|3lp7:ts|3lp8:tt|3lp9:tu|3lpa:tv|3lpb:u0|3lpc:u1|3lpd:to|3lpe:u3|3lpf:u4|3lpg:u5|3lph:u6|3lpi:u7|3lpj:u8|3lpk:u9|3lq7:u3|3lqm:th|3lqn:ti|3lqo:tj|3lqp:tk|3lqq:tl|3lqr:tm|3lqs:tn|3lqt:to|3lqu:tp|3lqv:tq|3lr0:tr|3lr1:ts|3lr2:tt|3lr3:tu|3lr4:tv|3lr5:u0|3lr6:u1|3lr7:to|3lr8:u3|3lr9:u4|3lra:u5|3lrb:u6|3lrc:u7|3lrd:u8|3lre:u9|3ls1:u3|3lsg:th|3lsh:ti|3lsi:tj|3lsj:tk|3lsk:tl|3lsl:tm|3lsm:tn|3lsn:to|3lso:tp|3lsp:tq|3lsq:tr|3lsr:ts|3lss:tt|3lst:tu|3lsu:tv|3lsv:u0|3lt0:u1|3lt1:to|3lt2:u3|3lt3:u4|3lt4:u5|3lt5:u6|3lt6:u7|3lt7:u8|3lt8:u9|3ltr:u3",r:"23:2c|2i:2k|2m:2q|60:6m|6o:6u|bo:bp|c1:c2|c6:c7|c9:cb|ce:ch|cj:ck|cm:co|cs:ct|cv:d0|d6:d7|de:df|dh:dj|dn:do|e4:e5|e7:e8|ea:eb|fh:fi|fm:fo|s8:sa|se:sf|sh:t1|t3:tb|100:11f|19h:1am|7o8:7of|7oo:7ot|7p8:7pf|7po:7pv|7q8:7qd|7r8:7rf|7to:7tr|7u8:7ub|7uo:7ur|7v8:7vc|7vo:7vr|89a:89b|8b0:8bf|95m:96f|1vp1:1vpq|2100:2115",s:"v8|va|vc|ve|vk|130|132|134|136|138|13a|13c|13e|13g|13i|13k|13m|13o|13q|13s|13u|140|14a|14c|14e|14g|14i|14k|14m|14o|14q|14s|14u|150|152|154|156|158|15a|15c|15e|15g|15i|15k|15m|15o|15q|15s|15u|161|163|165|167|169|16b|16d|16g|16i|16k|16m|16o|16q|16s|16u|170|172|174|176|178|17a|17c|17e|17g|17i|17k|17o|180|182|184|186|188|18a|18c|18e|80|82|84|86|88|8a|8c|8e|8g|8i|8k|8m|8o|8q|8s|8u|90|92|94|96|98|9a|9c|9e|9i|9k|9m|9p|9r|9t|9v|a1|a3|a5|a7|aa|ac|ae|ag|ai|ak|am|ao|aq|as|au|b0|b2|b4|b6|b8|ba|bc|be|bg|bi|bk|bm|br|bt|c4|d2|d4|d9|dc|dl|ds|ed|ef|eh|ej|el|en|ep|er|eu|f0|f2|f4|f6|f8|fa|fc|fe|fk|fq|fs|fu|g0|g2|g4|g6|g8|ga|gc|ge|gg|gi|gk|gm|go|gq|gs|gu|h0|h2|h4|h6|h8|ha|hc|he|hg|hi|21|22|7g0|7g2|7g4|7g6|7g8|7ga|7gc|7ge|7gg|7gi|2d|7gk|7gm|7go|7gq|7gs|7gu|7h0|7h2|7h4|7h6|7h8|7ha|7hc|7he|7hg|7hi|7hk|7hm|7ho|7hq|7hs|7hu|7i0|7i2|7i4|7i6|7i8|7ia|7ic|7ie|7ig|7ii|7ik|7im|7io|7iq|7is|7iu|7j0|7j2|7j4|7j6|7j8|7ja|7jc|7je|7jg|7ji|7jk|7jm|2e|7jo|7jq|7js|7ju|7k0|7k2|7k4|7k6|7k8|7ka|7kc|7ke|7kg|7ki|7kk|7l0|7l2|7l4|7l6|7l8|7la|7lc|7le|7lg|7li|7lk|7lm|7lo|7lq|7ls|7lu|7m0|7m2|7m4|7m6|7m8|7ma|7mc|7me|7mg|7mi|7mk|7mm|7mo|7mq|2f|7ms|7mu|7n0|7n2|7n4|7n6|7n8|7na|7nc|7ne|7ng|7ni|7nk|7nm|7no|2g|7qp|7qr|7qt|7qv|2h|896|2l|s6|sc|uo|uq|us|uu|v0|v2|v4|v6"},"B.3":{m:"5l:ts|6v:3j;3j|9g:39;o7|a9:ls;3e|bv:3j|fg:3a;oc|q5:tp|sg:tp;o8;o1|tg:u5;o8;o1|u2:u3|ug:ti|uh:to|ul:u6|um:u0|vg:tq|vh:u1|vi:u3|vl:tl|1c7:1b5;1c2|7km:38;ph|7kn:3k;o8|7ko:3n;oa|7kp:3p;oa|7kq:31;lu|7kr:7j1|7qg:u5;oj|7qi:u5;oj;o0|7qk:u5;oj;o1|7qm:u5;oj;q2|7s0:7o0;tp|7s1:7o1;tp|7s2:7o2;tp|7s3:7o3;tp|7s4:7o4;tp|7s5:7o5;tp|7s6:7o6;tp|7s7:7o7;tp|7s8:7o0;tp|7s9:7o1;tp|7sa:7o2;tp|7sb:7o3;tp|7sc:7o4;tp|7sd:7o5;tp|7se:7o6;tp|7sf:7o7;tp|7sg:7p0;tp|7sh:7p1;tp|7si:7p2;tp|7sj:7p3;tp|7sk:7p4;tp|7sl:7p5;tp|7sm:7p6;tp|7sn:7p7;tp|7so:7p0;tp|7sp:7p1;tp|7sq:7p2;tp|7sr:7p3;tp|7ss:7p4;tp|7st:7p5;tp|7su:7p6;tp|7sv:7p7;tp|7t0:7r0;tp|7t1:7r1;tp|7t2:7r2;tp|7t3:7r3;tp|7t4:7r4;tp|7t5:7r5;tp|7t6:7r6;tp|7t7:7r7;tp|7t8:7r0;tp|7t9:7r1;tp|7ta:7r2;tp|7tb:7r3;tp|7tc:7r4;tp|7td:7r5;tp|7te:7r6;tp|7tf:7r7;tp|7ti:7rg;tp|7tj:th;tp|7tk:tc;tp|7tm:th;q2|7tn:th;q2;tp|7ts:th;tp|7tu:tp|7u2:7rk;tp|7u3:tn;tp|7u4:te;tp|7u6:tn;q2|7u7:tn;q2;tp|7uc:tn;tp|7ui:tp;o8;o0|7uj:tp;o8;o1|7um:tp;q2|7un:tp;o8;q2|7v2:u5;o8;o0|7v3:u5;o8;o1|7v4:u1;oj|7v6:u5;q2|7v7:u5;o8;q2|7vi:7rs;tp|7vj:u9;tp|7vk:ue;tp|7vm:u9;q2|7vn:u9;q2;tp|7vs:u9;tp|1uo0:36;36|1uo1:36;39|1uo2:36;3c|1uo3:36;36;39|1uo4:36;36;3c|1uo5:3j;3k|1uo6:3j;3k|1uoj:1bk;1bm|1uok:1bk;1b5|1uol:1bk;1bb|1uom:1bu;1bm|1uon:1bk;1bd",r:"23:2c|2i:2k|2m:2q|60:6m|6o:6u|bo:bp|c1:c2|c6:c7|c9:cb|ce:ch|cj:ck|cm:co|cs:ct|cv:d0|d6:d7|de:df|dh:dj|dn:do|e4:e5|e7:e8|ea:eb|fh:fi|fm:fo|s8:sa|se:sf|sh:t1|t3:tb|100:11f|19h:1am|7o8:7of|7oo:7ot|7p8:7pf|7po:7pv|7q8:7qd|7r8:7rf|7to:7tr|7u8:7ub|7uo:7ur|7v8:7vc|7vo:7vr|89a:89b|8b0:8bf|95m:96f|1vp1:1vpq|2100:2115",s:"v8|va|vc|ve|vk|130|132|134|136|138|13a|13c|13e|13g|13i|13k|13m|13o|13q|13s|13u|140|14a|14c|14e|14g|14i|14k|14m|14o|14q|14s|14u|150|152|154|156|158|15a|15c|15e|15g|15i|15k|15m|15o|15q|15s|15u|161|163|165|167|169|16b|16d|16g|16i|16k|16m|16o|16q|16s|16u|170|172|174|176|178|17a|17c|17e|17g|17i|17k|17o|180|182|184|186|188|18a|18c|18e|80|82|84|86|88|8a|8c|8e|8g|8i|8k|8m|8o|8q|8s|8u|90|92|94|96|98|9a|9c|9e|9i|9k|9m|9p|9r|9t|9v|a1|a3|a5|a7|aa|ac|ae|ag|ai|ak|am|ao|aq|as|au|b0|b2|b4|b6|b8|ba|bc|be|bg|bi|bk|bm|br|bt|c4|d2|d4|d9|dc|dl|ds|ed|ef|eh|ej|el|en|ep|er|eu|f0|f2|f4|f6|f8|fa|fc|fe|fk|fq|fs|fu|g0|g2|g4|g6|g8|ga|gc|ge|gg|gi|gk|gm|go|gq|gs|gu|h0|h2|h4|h6|h8|ha|hc|he|hg|hi|21|22|7g0|7g2|7g4|7g6|7g8|7ga|7gc|7ge|7gg|7gi|2d|7gk|7gm|7go|7gq|7gs|7gu|7h0|7h2|7h4|7h6|7h8|7ha|7hc|7he|7hg|7hi|7hk|7hm|7ho|7hq|7hs|7hu|7i0|7i2|7i4|7i6|7i8|7ia|7ic|7ie|7ig|7ii|7ik|7im|7io|7iq|7is|7iu|7j0|7j2|7j4|7j6|7j8|7ja|7jc|7je|7jg|7ji|7jk|7jm|2e|7jo|7jq|7js|7ju|7k0|7k2|7k4|7k6|7k8|7ka|7kc|7ke|7kg|7ki|7kk|7l0|7l2|7l4|7l6|7l8|7la|7lc|7le|7lg|7li|7lk|7lm|7lo|7lq|7ls|7lu|7m0|7m2|7m4|7m6|7m8|7ma|7mc|7me|7mg|7mi|7mk|7mm|7mo|7mq|2f|7ms|7mu|7n0|7n2|7n4|7n6|7n8|7na|7nc|7ne|7ng|7ni|7nk|7nm|7no|2g|7qp|7qr|7qt|7qv|2h|896|2l|s6|sc|uo|uq|us|uu|v0|v2|v4|v6"},"C.1.1":{s:"10"},"C.1.2":{r:"800:80b",s:"c00|50|5k0|81f|82v"},"C.2.1":{r:"0:v",s:"3v"},"C.2.2":{r:"40:4v|80c:80d|818:819|830:833|83a:83f|1vvp:1vvs|3kbj:3kbq",s:"1mt|1of|60e|1vnv"},"C.3":{r:"1o00:1u7v|u000:vvvt|10000:11vvt"},"C.4":{r:"1veg:1vff|1vvu:1vvv|3vvu:3vvv|5vvu:5vvv|7vvu:7vvv|9vvu:9vvv|bvvu:bvvv|dvvu:dvvv|fvvu:fvvv|hvvu:hvvv|jvvu:jvvv|lvvu:lvvv|nvvu:nvvv|pvvu:pvvv|rvvu:rvvv|tvvu:tvvv|vvvu:vvvv|11vvu:11vvv"},"C.5":{r:"1m00:1nvv"},"C.6":{r:"1vvp:1vvt"},"C.7":{r:"bvg:bvr"},"C.8":{r:"q0:q1|80e:80f|81a:81e|83a:83f"},"C.9":{r:"s010:s03v",s:"s001"},"D.1":{r:"1eg:1fa|1fg:1fk|1h1:1hq|1i0:1ia|1jd:1jf|1jh:1ml|1n5:1n6|1nq:1nu|1o0:1od|1oi:1pc|1s0:1t5|1uov:1up8|1upa:1upm|1upo:1ups|1uq0:1uq1|1uq3:1uq4|1uq6:1uth|1uuj:1v9t|1vag:1vcf|1vci:1ve7|1vfg:1vfs|1vjg:1vjk|1vjm:1vns",s:"1du|1e0|1e3|1gr|1gv|1mt|1og|1th|1uot|1upu|80f"},"D.2":{r:"21:2q|31:3q|60:6m|6o:7m|7o:h0|h2:hj|ig:ld|lg:lo|lr:m1|mg:mh|n0:n4|s8:sa|se:t1|t3:ue|ug:vl|100:142|14a:16e|16g:17l|17o:17p|180:18f|19h:1am|1ap:1av|1b1:1c7|285:29p|29t:2a0|2a9:2ac|2ao:2b1|2b4:2bg|2c2:2c3|2c5:2cc|2cf:2cg|2cj:2d8|2da:2dg|2dm:2dp|2du:2e0|2e7:2e8|2eb:2ec|2es:2et|2ev:2f1|2f6:2fh|2fk:2fq|2g5:2ga|2gf:2gg|2gj:2h8|2ha:2hg|2hi:2hj|2hl:2hm|2ho:2hp|2hu:2i0|2ip:2is|2j6:2jf|2ji:2jk|2k5:2kb|2kf:2kh|2kj:2l8|2la:2lg|2li:2lj|2ll:2lp|2lt:2m0|2mb:2mc|2n6:2nf|2o2:2o3|2o5:2oc|2of:2og|2oj:2p8|2pa:2pg|2pi:2pj|2pm:2pp|2pt:2pu|2q7:2q8|2qb:2qc|2qs:2qt|2qv:2r1|2r6:2rg|2s5:2sa|2se:2sg|2si:2sl|2sp:2sq|2su:2sv|2t3:2t4|2t8:2ta|2te:2tl|2tn:2tp|2tu:2tv|2u1:2u2|2u6:2u8|2ua:2uc|2v7:2vi|301:303|305:30c|30e:30g|30i:318|31a:31j|31l:31p|321:324|330:331|336:33f|342:343|345:34c|34e:34g|34i:358|35a:35j|35l:35p|360:364|367:368|36a:36b|36l:36m|370:371|376:37f|382:383|385:38c|38e:38g|38i:398|39a:39p|39u:3a0|3a6:3a8|3aa:3ac|3b0:3b1|3b6:3bf|3c2:3c3|3c5:3cm|3cq:3dh|3dj:3dr|3e0:3e6|3ef:3eh|3eo:3ev|3fi:3fk|3g1:3hg|3hi:3hj|3i0:3i6|3if:3ir|3k1:3k2|3k7:3k8|3kk:3kn|3kp:3kv|3l1:3l3|3la:3lb|3ld:3lg|3li:3lj|3m0:3m4|3mg:3mp|3ms:3mt|3o0:3on|3oq:3pk|3pu:3q7|3q9:3ra|3s8:3sb|3tu:3u5|3u7:3uc|400:411|413:417|419:41a|420:42n|450:465|46g:47o|480:4ap|4av:4d2|4d8:4fp|4g0:4g6|4g8:4i6|4ia:4id|4ig:4im|4iq:4it|4j0:4k6|4ka:4kd|4kg:4le|4li:4ll|4lo:4lu|4m2:4m5|4m8:4me|4mg:4mm|4mo:4ne|4ng:4oe|4oi:4ol|4oo:4ou|4p0:4q6|4q8:4qq|4r1:4rs|4t0:4vk|501:5jm|5k1:5kq|5l0:5ng|5o0:5oc|5oe:5oh|5p0:5ph|5pl:5pm|5q0:5qh|5r0:5rc|5re:5rg|5s0:5tm|5tu:5u5|5u7:5u8|5uk:5uq|5v0:5v9|60g:60p|610:63n|640:658|7g0:7kr|7l0:7np|7o0:7ol|7oo:7ot|7p0:7q5|7q8:7qd|7qg:7qn|7qv:7rt|7s0:7tk|7tm:7ts|7u2:7u4|7u6:7uc|7ug:7uj|7um:7ur|7v0:7vc|7vi:7vk|7vm:7vs|88a:88j|88p:88t|89a:89d|89f:89h|89j:89p|89t:89v|8a5:8a9|8b0:8c3|8pm:8rq|94s:979|c05:c07|c11:c19|c1h:c1l|c1o:c1s|c21:c4m|c4t:c4v|c51:c7q|c7s:c7v|c85:c9c|c9h:cce|ccg:cdn|cfg:cgs|ch0:ci3|cj0:cjr|cjv:clg|cm0:cmb|cmg:cnu|co0:crm|crr:cut|cv0:cvu|d00:jdl|jg0:17t5|1800:194c|1b00:1lt3|1m00:1uhd|1uhg:1uja|1uo0:1uo6|1uoj:1uon|1vp1:1vpq|1vq1:1vqq|1vr6:1vtu|1vu2:1vu7|1vua:1vuf|1vui:1vun|1vuq:1vus|20o0:20ou|20p0:20p3|20pg:20qa|2100:2115|2118:212d|3k00:3k7l|3k80:3k96|3k9a:3kb6|3kba:3kbi|3kc3:3kc4|3kcc:3kd9|3kde:3ket|3l00:3l2k|3l2m:3l4s|3l4u:3l4v|3l55:3l56|3l59:3l5c|3l5e:3l5p|3l5t:3l60|3l62:3l63|3l65:3l85|3l87:3l8a|3l8d:3l8k|3l8m:3l8s|3l8u:3l9p|3l9r:3l9u|3la0:3la4|3laa:3lag|3lai:3ll3|3ll8:3lu9|4000:59mm|5u00:5ugt|u000:vvvt|10000:11vvt",s:"3l52|3l5r|3la6|1c9|5a|5l|5q|283|2ag|2di|2en|2iu|2k3|2kd|2m9|2mg|2n0|2q0|2qn|2s3|2ss|2un|35u|36u|3an|3dt|3k4|3ka|3kd|3l5|3l7|3lt|3m6|3pm|3po|3rv|3s5|3uf|41c|41h|41o|47r|4i8|4io|4k8|4lg|4m0|4og|5us|ne|7qp|7qr|7qt|7tu|80e|83h|83v|882|887|88l|894|896|898|rq|s6|sc|8sl"}},G=function(){function e(t,n){w()(this,e),this.singles=new Set,this.ranges=[],this.mappings=new Map;var r=J[t];this.name=t,r?(r.s&&(this.singles=new Set(r.s.split("|").map((function(e){return parseInt(e,32)})))),r.r&&(this.ranges=r.r.split("|").map((function(e){var t=e.split(":"),n=g()(t,2),r=n[0],i=n[1];return[parseInt(r,32),parseInt(i,32)]}))),r.m&&(this.mappings=new Map(r.m.split("|").map((function(e){var t=e.split(":"),n=g()(t,2),r=n[0],i=n[1].split(";").map((function(e){return parseInt(e,32)}));return[parseInt(r,32),i]}))))):n&&(this.singles=new Set(n))}return x()(e,[{key:"contains",value:function(e){if(this.singles.has(e))return!0;for(var t=0,n=this.ranges.length-1;t<=n;){var r=Math.floor((t+n)/2),i=this.ranges[r];if(e<i[0])n=r-1;else{if(!(e>i[1]))return!0;t=r+1}}return!1}},{key:"hasMapping",value:function(e){return this.mappings.has(e)||this.contains(e)}},{key:"map",value:function(e){return this.contains(e)&&!this.mappings.has(e)?String.fromCodePoint(e).toLowerCase().codePointAt(0):this.mappings.get(e)||null}}]),e}(),V=new G("A.1"),H=new G("B.1"),W=new G("B.2");new G("B.3");var Q=new G("C.1.1"),K=new G("C.1.2"),Y=new G("C.2.1"),X=new G("C.2.2"),$=new G("C.3"),Z=new G("C.4"),ee=new G("C.5"),te=new G("C.6"),ne=new G("C.7"),re=new G("C.8"),ie=new G("C.9"),ae=new G("D.1"),oe=new G("D.2");function se(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=P.a.ucs2.decode(r),a=[],o=F(i);try{for(o.s();!(n=o.n()).done;){var s=n.value;if(!t&&e.unassigned.contains(s))throw new Error("Unassigned code point: x"+s.toString(16));var c,u=!1,l=F(e.mappings);try{for(l.s();!(c=l.n()).done;){var f=c.value;if(f.hasMapping(s)){u=!0;var p=f.map(s);p&&(Array.isArray(p)?a=a.concat(p):a.push(p))}}}catch(e){l.e(e)}finally{l.f()}u||a.push(s)}}catch(e){o.e(e)}finally{o.f()}var d=a;if(e.normalize){var h=P.a.ucs2.encode(a),v=h.normalize("NFKC");d=P.a.ucs2.decode(v)}var m,g=!1,y=!1,b=F(d);try{for(b.s();!(m=b.n()).done;){var _,w=m.value,S=F(e.prohibited);try{for(S.s();!(_=S.n()).done;){var x=_.value;if(x.contains(w))throw new Error("Prohibited code point: x"+w.toString(16))}}catch(e){S.e(e)}finally{S.f()}if(!t&&e.unassigned.contains(w))throw new Error("Prohibited code point: x"+w.toString(16));e.bidirectional&&(g=g||ae.contains(w),y=y||oe.contains(w))}}catch(e){b.e(e)}finally{b.f()}if(e.bidirectional){if(g&&y)throw new Error("String contained both LCat and RandALCat code points");if(g&&(!ae.contains(d[0])||!ae.contains(d[d.length-1])))throw new Error("String containing RandALCat code points must start and end with RandALCat code points")}return P.a.ucs2.encode(d)}H.map=function(){return null},Q.contains=function(e){return 32===e},K.map=function(e){return K.contains(e)?32:null};var ce={bidirectional:!0,mappings:[H,W],normalize:!0,prohibited:[K,X,$,Z,ee,te,ne,re,ie],unassigned:V};var ue=new G("NodePrepProhibited",[34,38,39,47,58,60,62,64]),le={bidirectional:!0,mappings:[H,W],normalize:!0,prohibited:[Q,K,Y,X,$,Z,ee,te,ne,re,ie,ue],unassigned:V};var fe={bidirectional:!0,mappings:[H],normalize:!0,prohibited:[K,Y,X,$,Z,ee,te,ne,re,ie],unassigned:V};var pe={bidirectional:!0,mappings:[K,H],normalize:!0,prohibited:[K,Y,X,$,Z,ee,te,ne,re,ie],unassigned:V};function de(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return se(pe,t,e)}function he(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.replace(/^\s+|\s+$/g,"").replace(/\\5c/g,"\\5c5c").replace(/\\20/g,"\\5c20").replace(/\\22/g,"\\5c22").replace(/\\26/g,"\\5c26").replace(/\\27/g,"\\5c27").replace(/\\2f/g,"\\5c2f").replace(/\\3a/g,"\\5c3a").replace(/\\3c/g,"\\5c3c").replace(/\\3e/g,"\\5c3e").replace(/\\40/g,"\\5c40").replace(/ /g,"\\20").replace(/"/g,"\\22").replace(/&/g,"\\26").replace(/'/g,"\\27").replace(/\//g,"\\2f").replace(/:/g,"\\3a").replace(/</g,"\\3c").replace(/>/g,"\\3e").replace(/@/g,"\\40")}function ve(e){return e.replace(/\\20/g," ").replace(/\\22/g,'"').replace(/\\26/g,"&").replace(/\\27/g,"'").replace(/\\2f/g,"/").replace(/\\3a/g,":").replace(/\\3c/g,"<").replace(/\\3e/g,">").replace(/\\40/g,"@").replace(/\\5c/g,"\\")}function me(e){var t=e.local||"",n=e.domain,r=e.resource||"";return t&&(t=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return se(le,t,e)}(t)),r&&(r=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return se(fe,t,e)}(r)),"."===n[n.length-1]&&(n=n.slice(0,n.length-1)),{domain:n=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return se(ce,t,e)}(n.split(".").map(P.a.toUnicode).join(".")),local:t,resource:r}}function ge(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.local;t.escaped||(n=he(e.local));var r=t.prepared?e:me({local:n,domain:e.domain,resource:e.resource}),i=n?"".concat(n,"@").concat(r.domain):r.domain;return r.resource?"".concat(i,"/").concat(r.resource):i}function ye(e,t){return t?"".concat(Te(e),"/").concat(t):Te(e)}function be(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t="",n="",r=e.indexOf("/");r>0&&(n=e.slice(r+1),e=e.slice(0,r));var i=e.indexOf("@");i>0&&(t=e.slice(0,i),e=e.slice(i+1));var a=me({domain:e,local:t,resource:n});return{bare:ge({local:a.local,domain:a.domain},{escaped:!0,prepared:!0}),domain:a.domain,full:ge(a,{escaped:!0,prepared:!0}),local:ve(a.local),resource:a.resource}}function _e(e,t){var n=new Set;if(n.add(void 0),n.add(""),e){var r=be(e);n.add(r.full),n.add(r.bare),n.add(r.domain)}if(t){var i=be(t);n.add(i.domain),n.add(i.bare),n.add(i.full)}return n}function we(e,t){if(!e||!t)return!1;var n=be(e),r=be(t);return n.local===r.local&&n.domain===r.domain}function Se(e){return!!be(e).resource}function xe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return be(e).domain}function ke(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return be(e).resource}function Te(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return be(e).bare}var je,Ee=Object.freeze({__proto__:null,escapeLocal:he,unescapeLocal:ve,prepare:me,create:ge,createFull:ye,parse:be,allowedResponders:_e,equal:function(e,t){if(!e||!t)return!1;var n=be(e),r=be(t);return n.local===r.local&&n.domain===r.domain&&n.resource===r.resource},equalBare:we,isFull:Se,isBare:function(e){return!Se(e)},getLocal:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return be(e).local},getDomain:xe,getResource:ke,toBare:Te,parseURI:function(e){var t=new URL(e);if("xmpp:"!==t.protocol)throw new Error("Invalid XMPP URI, wrong protocol: "+t.protocol);var n,r=t.hostname?t.username?ge({domain:decodeURIComponent(t.hostname),local:decodeURIComponent(t.username)},{escaped:!0}):decodeURIComponent(t.hostname):void 0,i=be(decodeURIComponent(r?t.pathname.substr(1):t.pathname)).full,a=t.search&&t.search.indexOf(";")>=1,o=a?t.search.substr(t.search.indexOf(";")+1):"",s=t.search?decodeURIComponent(t.search.substr(1,a?t.search.indexOf(";")-1:void 0)):void 0,c={},u=F(o.split(";"));try{for(u.s();!(n=u.n()).done;){var l=n.value.split("=").map(decodeURIComponent),f=g()(l,2),p=f[0],d=f[1];if(c[p]){var h=c[p];Array.isArray(h)?h.push(d):c[p]=[h,d]}else c[p]=d}}catch(e){u.e(e)}finally{u.f()}return{action:s,identity:r,jid:i,parameters:c}},toURI:function(e){var t=["xmpp:"],n=function(e,n){var r=be(e);r.local&&(t.push(encodeURIComponent(he(r.local))),t.push("@")),t.push(encodeURIComponent(r.domain)),n&&r.resource&&(t.push("/"),t.push(encodeURIComponent(r.resource)))};e.identity&&(t.push("//"),n(e.identity,!1),e.jid&&t.push("/")),e.jid&&n(e.jid,!0),e.action&&(t.push("?"),t.push(encodeURIComponent(e.action)));for(var r=0,i=Object.entries(e.parameters||{});r<i.length;r++){var a,o=g()(i[r],2),s=o[0],c=o[1],u=F(Array.isArray(c)?c:[c]);try{for(u.s();!(a=u.n()).done;){var l=a.value;t.push(";"),t.push(encodeURIComponent(s)),void 0!==l&&(t.push("="),t.push(encodeURIComponent(l)))}}catch(e){u.e(e)}finally{u.f()}}return t.join("")}});!function(e){e.NotWellFormed="not-well-formed",e.RestrictedXML="restricted-xml",e.AlreadyClosed="already-closed",e.UnknownRoot="unknown-stream-root"}(je||(je={}));var Ie=function(e){T()(n,e);var t=D(n);function n(e){var r;return w()(this,n),(r=t.call(this,e.text)).isJXTError=!0,r.condition=e.condition,r.text=e.text,r}return x()(n,null,[{key:"notWellFormed",value:function(e){return new n({condition:je.NotWellFormed,text:e})}},{key:"restrictedXML",value:function(e){return new n({condition:je.RestrictedXML,text:e})}},{key:"alreadyClosed",value:function(e){return new n({condition:je.AlreadyClosed,text:e})}},{key:"unknownRoot",value:function(e){return new n({condition:je.UnknownRoot,text:e})}}]),n}(v()(Error)),Oe={'"':"&quot;","&":"&amp;","'":"&apos;","<":"&lt;",">":"&gt;"},Ae={"&amp;":"&","&apos;":"'","&gt;":">","&lt;":"<","&quot;":'"'},Re=/&([a-zA-Z0-9]+|#[0-9]+|#x[0-9a-fA-F]+);/g,Ne=/&|<|>|"|'/g,Ce=/&|<|>/g;function Pe(e){return Oe[e]}function Le(e){return e.replace(Ne,Pe)}function qe(e){return e.replace(Re,(function(e){return function(e){if(Ae[e])return Ae[e];var t=e.startsWith("&#x"),n=parseInt(e.substring(t?3:2,e.length-1),t?16:10);if(9===n||10===n||13===n||32<=n&&n<=55295||57344<=n&&n<=65533||65536<=n&&n<=1114111)return String.fromCodePoint(n);throw Ie.restrictedXML("Prohibited entity: "+e)}(e)}))}function Fe(e){return e.replace(Ce,Pe)}function Me(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=new Set(e.map((function(e){return e.toLowerCase()}))),a=F(n.map((function(e){return e.toLowerCase()})));try{for(a.s();!(t=a.n()).done;){var o=t.value;if("*"!==o)for(;o.length>0;){if(i.has(o))return o;(o=o.substring(0,o.lastIndexOf("-")).toLowerCase()).lastIndexOf("-")===o.length-2&&(o=o.substring(0,o.lastIndexOf("-")))}}}catch(e){a.e(e)}finally{a.f()}return r}var De=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];w()(this,e),this.name=t,this.attributes=n,this.children=[],this.optionalNamespaces={};var i,a=F(r);try{for(a.s();!(i=a.n()).done;){var o=i.value;if("string"!=typeof o){var s=new e(o.name,o.attributes,o.children);s.parent=this,this.children.push(s)}else this.children.push(o)}}catch(e){a.e(e)}finally{a.f()}}return x()(e,[{key:"getName",value:function(){return this.name.indexOf(":")>=0?this.name.substr(this.name.indexOf(":")+1):this.name}},{key:"getNamespace",value:function(){if(this.name.indexOf(":")>=0){var e=this.name.substr(0,this.name.indexOf(":"));return this.findNamespaceForPrefix(e)}return this.findNamespaceForPrefix()}},{key:"getNamespaceContext",value:function(){var e={};this.parent&&(e=this.parent.getNamespaceContext());for(var t=0,n=Object.entries(this.attributes);t<n.length;t++){var r=g()(n[t],2),i=r[0],a=r[1];if(i.startsWith("xmlns:")){var o=i.substr(6);e[a]=o}}return e}},{key:"getDefaultNamespace",value:function(){return this.attributes.xmlns?this.attributes.xmlns:this.parent?this.parent.getDefaultNamespace():""}},{key:"getNamespaceRoot",value:function(e){if(this.parent){var t=this.parent.getNamespaceRoot(e);if(t)return t}for(var n=0,r=Object.entries(this.attributes);n<r.length;n++){var i=g()(r[n],2),a=i[0],o=i[1];if(a.startsWith("xmlns:")&&o===e)return this}if(this.optionalNamespaces[e])return this}},{key:"getAttribute",value:function(e,t){if(!t)return this.attributes[e];var n=this.getNamespaceContext();return n[t]?this.attributes[[n[t],e].join(":")]:void 0}},{key:"getChild",value:function(e,t){return this.getChildren(e,t)[0]}},{key:"getChildren",value:function(e,t){var n,r=[],i=F(this.children);try{for(i.s();!(n=i.n()).done;){var a=n.value;"string"==typeof a||a.getName()!==e||t&&a.getNamespace()!==t||r.push(a)}}catch(e){i.e(e)}finally{i.f()}return r}},{key:"getText",value:function(){var e,t="",n=F(this.children);try{for(n.s();!(e=n.n()).done;){var r=e.value;"string"==typeof r&&(t+=r)}}catch(e){n.e(e)}finally{n.f()}return t}},{key:"appendChild",value:function(e){return this.children.push(e),"string"!=typeof e&&(e.parent=this),e}},{key:"setAttribute",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.attributes[e]=t||void 0,""===t&&n&&(this.attributes[e]=t)}},{key:"addOptionalNamespace",value:function(e,t){this.optionalNamespaces[t]=e}},{key:"useNamespace",value:function(e,t){return this.optionalNamespaces[t]&&(e=this.optionalNamespaces[t]),this.setAttribute("xmlns:".concat(e),t),e}},{key:"toJSON",value:function(){for(var e=this.children.map((function(e){return"string"==typeof e?e:e?e.toJSON():void 0})).filter((function(e){return!!e})),t={},n=0,r=Object.entries(this.attributes);n<r.length;n++){var i=g()(r[n],2),a=i[0],o=i[1];null!=o&&(t[a]=o)}return{attributes:t,children:e,name:this.name}}},{key:"toString",value:function(){var e=this.openTag(!0);if(this.children.length){var t,n=F(this.children);try{for(n.s();!(t=n.n()).done;){var r=t.value;"string"==typeof r?e+=Fe(r):r&&(e+=r.toString())}}catch(e){n.e(e)}finally{n.f()}e+=this.closeTag()}return e}},{key:"openTag",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t="";t+="<".concat(this.name);for(var n=0,r=Object.entries(this.attributes);n<r.length;n++){var i=g()(r[n],2),a=i[0],o=i[1];void 0!==o&&(t+=" ".concat(a,'="').concat(Le(o.toString()),'"'))}return e&&0===this.children.length?t+="/>":t+=">",t}},{key:"closeTag",value:function(){return"</".concat(this.name,">")}},{key:"findNamespaceForPrefix",value:function(e){if(e){var t="xmlns:"+e;if(this.attributes[t])return this.attributes[t];if(this.parent)return this.parent.findNamespaceForPrefix(e)}else{if(this.attributes.xmlns)return this.attributes.xmlns;if(this.parent)return this.parent.findNamespaceForPrefix()}return""}}]),e}(),Be=new Set(["a","blockquote","br","cite","em","img","li","ol","p","span","strong","ul"]),Ue=new Set(["style"]),ze=new Map([["a",new Set(["href","style"])],["body",new Set(["style","xml:lang"])],["blockquote",Ue],["br",Ue],["cite",Ue],["em",Ue],["img",new Set(["alt","height","src","style","width"])],["li",Ue],["ol",Ue],["p",Ue],["span",Ue],["strong",Ue],["ul",Ue]]),Je=new Map([["font-style",/normal|italic|oblique|inherit/i],["font-weight",/normal|bold|bolder|lighter|inherit|\d\d\d/i],["text-decoration",/none|underline|overline|line-through|blink|inherit/i]]),Ge=function(e){return!!e.match(/^(https?|xmpp|cid|mailto|ftps?|im|ircs?|sips?|tel|geo|bitcoin|magnet):/i)&&e},Ve=function(e){return!!e.match(/^[0-9]*$/)&&e},He={alt:function(e){return e},height:Ve,href:Ge,src:Ge,style:function(e){var t=";".concat(e).replace(/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,"").replace(/\/\*.*/,"").replace(/\\([a-fA-F0-9]{1,6})\s?/,(function(e,t){return String.fromCharCode(parseInt(t,16))})).match(/;\s*([a-z-]+)\s*:\s*([^;]*[^\s;])\s*/g),n=[];if(!t)return!1;var r,i=F(t);try{for(i.s();!(r=i.n()).done;){var a=r.value.match(/^;\s*([a-z-]+)\s*:\s*([^;]*[^\s])\s*$/);if(a){var o=Je.get(a[1]);if(o){var s=a[2].match(o);s&&n.push("".concat(a[1],":").concat(s[0]))}}}}catch(e){i.e(e)}finally{i.f()}return!!n.length&&n.join("")},width:Ve};function We(e){if("string"==typeof e)return e;if(!Be.has(e.name)){if("script"===e.name)return;return function(e){var t,n=[],r=F(e.children);try{for(r.s();!(t=r.n()).done;){var i=t.value;if("string"==typeof i)n.push(i);else{var a=We(i);a&&(Array.isArray(a)?n=n.concat(a):n.push(a))}}}catch(e){r.e(e)}finally{r.f()}return n}(e)}for(var t=e.children.map(We).filter((function(e){return void 0!==e})),n={},r=0,i=Object.entries(e.attributes);r<i.length;r++){var a=g()(i[r],2),o=a[0],s=a[1],c=ze.get(e.name);if(c&&c.has(o)&&s){var u=He[o](s);u&&(n[o]=u)}}return{attributes:n,children:t,name:e.name}}function Qe(e){if("string"!=typeof e){var t,n=[],r=F(e.children);try{for(r.s();!(t=r.n()).done;){var i=t.value;if(i)if("string"!=typeof i){var a=We(i);Array.isArray(a)?n=n.concat(a):a&&n.push(a)}else n.push(i)}}catch(e){r.e(e)}finally{r.f()}var o={};if("body"===e.name)return void 0!==e.attributes.xmlns&&(o.xmlns=e.attributes.xmlns),e.attributes.style&&(o.style=e.attributes.style),void 0!==e.attributes["xml:lang"]&&(o["xml:lang"]=e.attributes["xml:lang"]),{attributes:o,children:n,name:"body"}}}function Ke(e){return 97<=e&&e<=122||65<=e&&e<=90||58===e||95===e}function Ye(e){return 192<=e&&e<=214||216<=e&&e<=246||248<=e&&e<=767||880<=e&&e<=893||895<=e&&e<=8191||8204<=e&&e<=8205||8304<=e&&e<=8591||11264<=e&&e<=12271||12289<=e&&e<=55295||65008<=e&&e<=65533||65536<=e&&e<=983039}function Xe(e){return Ke(e)||Ye(e)}function $e(e){return Ke(e)||45===e||46===e||48<=e&&e<=57||183===e||768<=e&&e<=879||8255<=e&&e<=8256||Ye(e)}function Ze(e){return 32===e||10===e||13===e||9===e}var et=function(e){T()(n,e);var t=D(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return w()(this,n),(e=t.call(this)).allowComments=!0,e.attributes={},e.state=34,e.tagName="",e.haveDeclaration=!1,e.recordBuffer=[],void 0!==r.allowComments&&(e.allowComments=r.allowComments),e}return x()(n,[{key:"write",value:function(e){var t,n=F(e);try{for(n.s();!(t=n.n()).done;){var r=t.value,i=r.codePointAt(0);switch(this.state){case 34:if(60===i){var a=void 0;try{a=qe(this.endRecord())}catch(e){return void this.emit("error",e)}a&&this.emit("text",a),this.transition(31);continue}this.record(r);continue;case 31:if(47===i){this.transition(7);continue}if(33===i){this.transition(24);continue}if(63===i){this.haveDeclaration&&this.restrictedXML(),this.transition(25);continue}if(Xe(i)){this.transition(30),this.startRecord(r);continue}return this.notWellFormed();case 30:if($e(i)){this.record(r);continue}if(Ze(i)){this.startTag(),this.transition(32);continue}if(47===i){this.startTag(),this.transition(29);continue}if(62===i){this.startTag(),this.transition(34),this.emit("startElement",this.tagName,this.attributes);continue}return this.notWellFormed();case 29:if(62===i){this.emit("startElement",this.tagName,this.attributes),this.emit("endElement",this.tagName),this.transition(34);continue}return this.notWellFormed();case 33:if(Ze(i)){this.transition(32);continue}if(47===i){this.transition(29);continue}if(62===i){this.emit("startElement",this.tagName,this.attributes),this.transition(34);continue}return this.notWellFormed();case 32:if(Ze(i))continue;if(Xe(i)){this.startRecord(r),this.transition(0);continue}if(47===i){this.transition(29);continue}if(62===i){this.emit("startElement",this.tagName,this.attributes),this.transition(34);continue}return this.notWellFormed();case 7:if(Xe(i)){this.startRecord(r),this.transition(6);continue}return this.notWellFormed();case 6:if($e(i)){this.record(r);continue}if(Ze(i)){this.transition(8);continue}if(62===i){var o=this.endRecord();this.emit("endElement",o,this.attributes),this.transition(34);continue}return this.notWellFormed();case 8:if(Ze(i))continue;if(62===i){var s=this.endRecord();this.emit("endElement",s,this.attributes),this.transition(34);continue}return this.notWellFormed();case 0:if($e(i)){this.record(r);continue}if(61===i){this.addAttribute(),this.transition(4);continue}if(Ze(i)){this.addAttribute(),this.transition(3);continue}return this.notWellFormed();case 3:if(61===i){this.transition(4);continue}if(Ze(i))continue;return this.notWellFormed();case 4:if(34===i){this.startRecord(),this.transition(1);continue}if(39===i){this.startRecord(),this.transition(2);continue}if(Ze(i))continue;return this.notWellFormed();case 1:case 2:if(34===i&&1===this.state||39===i&&2===this.state){var c=this.endRecord();this.attributes[this.attributeName]=qe(c),this.transition(33);continue}if(60===i)return this.notWellFormed();this.record(r);continue;case 24:if(45===i){this.allowComments||this.restrictedXML(),this.transition(23);continue}if(91===i){this.transition(21);continue}return this.notWellFormed();case 23:if(45===i){this.transition(14);continue}return this.notWellFormed();case 14:45===i&&this.transition(12);continue;case 12:45===i?this.transition(11):this.transition(14);continue;case 11:62===i?this.transition(34):this.transition(14);continue;case 25:if(88===i||120===i){this.transition(28);continue}return this.notWellFormed();case 28:if(77===i||109===i){this.transition(27);continue}return this.notWellFormed();case 27:if(76===i||108===i){this.transition(26);continue}return this.notWellFormed();case 26:if(Ze(i)){this.haveDeclaration=!0,this.transition(15);continue}return this.notWellFormed();case 13:if(62===i){this.transition(34);continue}return this.notWellFormed();case 15:63===i&&this.transition(13);continue;case 21:this.wait(i,67,20);continue;case 20:this.wait(i,68,19);continue;case 19:this.wait(i,65,18);continue;case 18:this.wait(i,84,17);continue;case 17:this.wait(i,65,16);continue;case 16:this.wait(i,91,5);continue;case 5:if(93===i){this.transition(10);continue}this.record(r);continue;case 10:93===i?this.transition(9):(this.record(String.fromCodePoint(93)),this.record(r),this.transition(5));continue;case 9:if(62===i){var u=this.endRecord();u&&this.emit("text",u),this.transition(34)}else this.record(String.fromCodePoint(93)),this.record(String.fromCodePoint(93)),this.record(r),this.transition(5);continue}}}catch(e){n.e(e)}finally{n.f()}}},{key:"end",value:function(e){e&&this.write(e),this.write=function(){}}},{key:"record",value:function(e){this.recordBuffer.push(e)}},{key:"startRecord",value:function(e){this.recordBuffer=[],e&&this.recordBuffer.push(e)}},{key:"endRecord",value:function(){var e=this.recordBuffer;return this.recordBuffer=[],e.join("")}},{key:"startTag",value:function(){this.tagName=this.endRecord(),this.attributes={}}},{key:"addAttribute",value:function(){var e=this.endRecord();if(void 0!==this.attributes[e])return this.notWellFormed();this.attributeName=e,this.attributes[e]=""}},{key:"wait",value:function(e,t,n){if(e!==t)return this.notWellFormed();this.transition(n)}},{key:"transition",value:function(e){this.state=e,34===e&&this.startRecord()}},{key:"notWellFormed",value:function(e){this.emit("error",Ie.notWellFormed(e))}},{key:"restrictedXML",value:function(e){this.emit("error",Ie.restrictedXML(e))}}]),n}(N.EventEmitter);function tt(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=new et(r),a=null;if(i.on("text",(function(e){n&&n.children.push(e)})),i.on("startElement",(function(e,r){var i=new De(e,r);t||(t=i),n=n?n.appendChild(i):i})),i.on("endElement",(function(e){n?e===n.name?n.parent&&(n=n.parent):i.emit("error",Ie.notWellFormed("b")):i.emit("error",Ie.notWellFormed("a"))})),i.on("error",(function(e){a=e})),i.write(e),i.end(),a)throw a;return t}function nt(e,t,n,r){if(r){e=e||r.getNamespace();var i=r.getNamespaceRoot(e);if(i){var a=i.useNamespace("",e);t="".concat(a,":").concat(t)}}var o=new De(t);return t.indexOf(":")<0&&(!n||e!==n)&&o.setAttribute("xmlns",e),o}function rt(e,t){return(e.getAttribute("xml:lang")||t||"").toLowerCase()}function it(e,t){var n,r=[],i=F(e);try{for(i.s();!(n=i.n()).done;){var a=n.value;r.push(rt(a,t.lang))}}catch(e){i.e(e)}finally{i.f()}return(t.resolveLanguage?t.resolveLanguage(r,t.acceptLanguages||[],t.lang):t.lang)||""}function at(e,t,n,r){var i=e.getChildren(n,t),a=rt(e);return i.length?r?i.filter((function(e){if(rt(e,a)===r)return!0})):i:[]}function ot(e,t,n,r){t=t||e.getNamespace();var i=at(e,t,n,r);if(i.length)return i[0];var a=nt(t,n,e.getDefaultNamespace(),e),o=rt(e,r);return r&&o!==r&&a.setAttribute("xml:lang",r),e.appendChild(a),a}function st(e){return{importer:function(t){var n=t.getAttribute(e.name,e.namespace);return n?e.parseValue(n):e.dynamicDefault?e.dynamicDefault(n):e.staticDefault},exporter:function(t,n){if(void 0!==n&&n!==e.staticDefault){var r=e.writeValue(n);if(r||e.emitEmpty)if(e.namespace&&e.prefix){var i,a=t.getNamespaceRoot(e.namespace);if(a)i=a.useNamespace(e.prefix,e.namespace);else{var o=t.getNamespaceContext();o[e.namespace]||(i=t.useNamespace(e.prefix,e.namespace),o[e.namespace]=i)}t.setAttribute("".concat(i,":").concat(e.name),r,e.emitEmpty)}else t.setAttribute(e.name,r,e.emitEmpty)}}}}function ct(e,t){return function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return i=Object.assign({staticDefault:r},i),st(Object.assign(Object.assign({name:n},e),t?t(i):i))}}function ut(e,t){return function(n,r,i){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return o=Object.assign({staticDefault:a},o),st(Object.assign(Object.assign({name:i,namespace:r,prefix:n},e),t?t(o):o))}}function lt(e){var t=e.converter||st(Object.assign(Object.assign({},e),{namespace:e.attributeNamespace}));return{importer:function(n,r){var i=n.getChild(e.element,e.namespace||n.getNamespace());return i?t.importer(i,r):e.dynamicDefault?e.dynamicDefault():e.staticDefault},exporter:function(n,r,i){if(void 0!==r&&r!==e.staticDefault){var a=ot(n,e.namespace||n.getNamespace(),e.element);t.exporter(a,r,i)}}}}function ft(e,t){return function(n,r,i){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return o=Object.assign({staticDefault:a},o),lt(Object.assign(Object.assign({element:r,name:i,namespace:n},e),t?t(o):o))}}function pt(e){return{importer:function(t){var n=t.getText();return n?e.parseValue(n):e.dynamicDefault?e.dynamicDefault(n):e.staticDefault},exporter:function(t,n){if(n||!e.emitEmpty){if(void 0!==n&&n!==e.staticDefault){var r=e.writeValue(n);r&&t.children.push(r)}}else t.children.push("")}}}function dt(e){var t=pt(e);return{importer:function(n,r){var i=at(n,e.namespace||n.getNamespace(),e.element),a=it(i,r);if(!i.length)return e.dynamicDefault?e.dynamicDefault():e.staticDefault;if(e.matchLanguage){var o,s=F(i);try{for(s.s();!(o=s.n()).done;){var c=o.value;if(rt(c,r.lang)===a)return t.importer(c,r)}}catch(e){s.e(e)}finally{s.f()}}return t.importer(i[0],r)},exporter:function(n,r,i){if(r||!e.emitEmpty){if(void 0!==r&&r!==e.staticDefault){var a=ot(n,e.namespace||n.getNamespace(),e.element,e.matchLanguage?i.lang:void 0);t.exporter(a,r,i)}}else ot(n,e.namespace||n.getNamespace(),e.element,e.matchLanguage?i.lang:void 0)}}}var ht={parseValue:function(e){return e},writeValue:function(e){return e}},vt={parseValue:function(e){return parseInt(e,10)},writeValue:function(e){return e.toString()}},mt={parseValue:function(e){return parseFloat(e)},writeValue:function(e){return e.toString()}},gt={parseValue:function(e){return"true"===e||"1"===e||"false"!==e&&"0"!==e&&void 0},writeValue:function(e){return e?"1":"0"}},yt={parseValue:function(e){return new Date(e)},writeValue:function(e){return"string"==typeof e?e:e.toISOString()}},bt={parseValue:function(e){return JSON.parse(e)},writeValue:function(e){return JSON.stringify(e)}},_t=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"utf8";return{parseValue:function(n){return"base64"===t&&"="===n&&(n=""),e.from(n.trim(),t)},writeValue:function(n){var r;return r="string"==typeof n?e.from(n).toString(t):n?n.toString(t):"","base64"===t&&(r=r||"="),r}}},wt={parseValue:function(e){var t=-1;"-"===e.charAt(0)&&(t=1,e=e.slice(1));var n=e.split(":");return(60*parseInt(n[0],10)+parseInt(n[1],10))*t},writeValue:function(e){if("string"==typeof e)return e;var t="-";e<0&&(e=-e,t="+");var n=e/60,r=e%60;return t+=(n<10?"0":"")+n+":"+(r<10?"0":"")+r}},St=ct(ht,(function(e){return Object.assign({dynamicDefault:e.emitEmpty?function(t){return""===t?"":e.staticDefault}:void 0},e)})),xt=ct(gt),kt=ct(vt),Tt=ct(mt),jt=ct(yt),Et=ut(ht),It=ut(gt),Ot=ut(vt),At=ut(mt),Rt=ut(yt),Nt=ft(ht),Ct=ft(gt),Pt=ft(vt),Lt=ft(mt),qt=ft(yt),Ft=function(e){return pt(Object.assign({staticDefault:e},ht))},Mt=function(){return pt(Object.assign({},bt))},Dt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"utf8";return pt(Object.assign({},_t(e)))};function Bt(){return{importer:function(e,t){return rt(e,t.lang)},exporter:function(e,t,n){t&&t.toLowerCase()!==n.lang?e.setAttribute("xml:lang",t):e.setAttribute("xml:lang",void 0)}}}var Ut=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return dt(Object.assign({element:t,emitEmpty:r,matchLanguage:!0,namespace:e,staticDefault:n},ht))},zt=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"utf8";return dt(Object.assign({element:t,matchLanguage:!0,namespace:e},_t(n)))},Jt=function(e,t){return dt(Object.assign({element:t,namespace:e},yt))},Gt=function(e,t,n){return dt(Object.assign({element:t,namespace:e,staticDefault:n},vt))},Vt=function(e,t,n){return dt(Object.assign({element:t,namespace:e,staticDefault:n},mt))},Ht=function(e,t){return dt(Object.assign({element:t,namespace:e},bt))};function Wt(e,t){return dt(Object.assign({element:t,namespace:e,staticDefault:0},wt))}function Qt(e,t){return{importer:function(n){if(n.getChild(t,e||n.getNamespace()))return!0},exporter:function(n,r){r&&ot(n,e||n.getNamespace(),t)}}}var Kt=function(e,t,n){if(n){var r,i=t,a=F(e);try{for(a.s();!(r=a.n()).done;){var o=r.value;i=ot(i,o.namespace||i.getNamespace(),o.element)}}catch(e){a.e(e)}finally{a.f()}i.children.push(n.toString())}};function Yt(e,t){return{importer:function(n){var r,i=n,a=F(e);try{for(a.s();!(r=a.n()).done;){var o=r.value;if(!(i=i.getChild(o.element,o.namespace||i.getNamespace())))return t}}catch(e){a.e(e)}finally{a.f()}return i.getText()||t},exporter:function(t,n){Kt(e,t,n)}}}function Xt(e,t){return{importer:function(n){var r,i=n,a=F(e);try{for(a.s();!(r=a.n()).done;){var o=r.value;if(!(i=i.getChild(o.element,o.namespace||i.getNamespace())))return}}catch(e){a.e(e)}finally{a.f()}var s=i.getText();return s?parseInt(s,10):t||void 0},exporter:function(t,n){Kt(e,t,n)}}}function $t(e){return{importer:function(t){var n,r=t,i=F(e);try{for(i.s();!(n=i.n()).done;){var a=n.value;if(!(r=r.getChild(a.element,a.namespace||r.getNamespace())))return!1}}catch(e){i.e(e)}finally{i.f()}return!0},exporter:function(t,n){if(n){var r,i=t,a=F(e);try{for(a.s();!(r=a.n()).done;){var o=r.value;i=ot(i,o.namespace||i.getNamespace(),o.element)}}catch(e){a.e(e)}finally{a.f()}}}}}function Zt(e){var t=e.pop();return{importer:function(n,r){var i,a=n,o=F(e);try{for(o.s();!(i=o.n()).done;){var s=i.value;if(!(a=a.getChild(s.element,s.namespace||a.getNamespace())))return[]}}catch(e){o.e(e)}finally{o.f()}var c,u=[],l=at(a,t.namespace||a.getNamespace(),t.element),f=it(l,r),p=F(l);try{for(p.s();!(c=p.n()).done;){var d=c.value;rt(d,r.lang)===f&&u.push(d.getText())}}catch(e){p.e(e)}finally{p.f()}return u},exporter:function(n,r,i){if(r.length){var a,o=n,s=F(e);try{for(s.s();!(a=s.n()).done;){var c=a.value;o=ot(o,c.namespace||o.getNamespace(),c.element)}}catch(e){s.e(e)}finally{s.f()}var u,l=t.namespace,f=t.element,p=F(r);try{for(p.s();!(u=p.n()).done;){var d=u.value,h=nt(l||o.getNamespace(),f,i.namespace,o);h.children.push(d),o.appendChild(h)}}catch(e){p.e(e)}finally{p.f()}}}}}function en(e,t,n){var r,i=new Map,a=new Map,o=F(t);try{for(o.s();!(r=o.n()).done;){var s=r.value;"string"==typeof s?(i.set(s,s),a.set(s,s)):(i.set(s[1],s[0]),a.set(s[0],s[1]))}}catch(e){o.e(e)}finally{o.f()}return{importer:function(t){var r,a=F(t.children);try{for(a.s();!(r=a.n()).done;){var o=r.value;if("string"!=typeof o&&(o.getNamespace()===(e||t.getNamespace())&&i.has(o.getName())))return i.get(o.getName())}}catch(e){a.e(e)}finally{a.f()}return n},exporter:function(t,n){a.has(n)&&ot(t,e,a.get(n))}}}function tn(e,t,n,r){var i=new Set(t),a=new Set(n);return{importer:function(t){var n,o=F(t.children);try{for(o.s();!(n=o.n()).done;){var s=n.value;if("string"!=typeof s&&(s.getNamespace()===(e||t.getNamespace())&&i.has(s.getName()))){var c,u=F(s.children);try{for(u.s();!(c=u.n()).done;){var l=c.value;if("string"!=typeof l&&(l.getNamespace()===(e||t.getNamespace())&&a.has(l.getName())))return[s.getName(),l.getName()]}}catch(e){u.e(e)}finally{u.f()}return[s.getName()]}}}catch(e){o.e(e)}finally{o.f()}return r},exporter:function(t,n){var r=ot(t,e,n[0]);n[1]&&ot(r,e,n[1])}}}function nn(e,t){return{importer:function(n,r){var i,a=[],o=at(n,e||n.getNamespace(),t),s=it(o,r),c=F(o);try{for(c.s();!(i=c.n()).done;){var u=i.value;rt(u,r.lang)===s&&a.push(u.getText())}}catch(e){c.e(e)}finally{c.f()}return a},exporter:function(n,r,i){var a,o=F(r);try{for(o.s();!(a=o.n()).done;){var s=a.value,c=nt(e||n.getNamespace(),t,i.namespace,n);c.children.push(s),n.appendChild(c)}}catch(e){o.e(e)}finally{o.f()}}}}function rn(e,t,n){return{importer:function(r){var i,a=[],o=F(r.getChildren(t,e||r.getNamespace()));try{for(o.s();!(i=o.n()).done;){var s=i.value.getAttribute(n);void 0!==s&&a.push(s)}}catch(e){o.e(e)}finally{o.f()}return a},exporter:function(r,i,a){var o,s=F(i);try{for(s.s();!(o=s.n()).done;){var c=o.value,u=nt(e||r.getNamespace(),t,a.namespace,r);u.setAttribute(n,c),r.appendChild(u)}}catch(e){s.e(e)}finally{s.f()}}}}function an(e,t,n){return{importer:function(r){var i,a=[],o=F(r.getChildren(t,e||r.getNamespace()));try{for(o.s();!(i=o.n()).done;){var s=i.value.getAttribute(n);void 0!==s&&a.push(parseInt(s,10))}}catch(e){o.e(e)}finally{o.f()}return a},exporter:function(r,i,a){var o,s=F(i);try{for(s.s();!(o=s.n()).done;){var c=o.value,u=nt(e||r.getNamespace(),t,a.namespace,r);u.setAttribute(n,c.toString()),r.appendChild(u)}}catch(e){s.e(e)}finally{s.f()}}}}function on(e,t){return{importer:function(n,r){var i,a=[],o=at(n,e||n.getNamespace(),t),s=new Set,c=F(o);try{for(c.s();!(i=c.n()).done;){var u=i.value,l=u.getText();if(l){var f=rt(u,r.lang);if(s.has(f))continue;a.push({lang:f,value:l}),s.add(f)}}}catch(e){c.e(e)}finally{c.f()}return s.size>0?a:void 0},exporter:function(n,r,i){var a,o=F(r);try{for(o.s();!(a=o.n()).done;){var s=a.value,c=s.value;if(c){var u=nt(e||n.getNamespace(),t,i.namespace,n);s.lang!==i.lang&&u.setAttribute("xml:lang",s.lang),u.children.push(c),n.appendChild(u)}}}catch(e){o.e(e)}finally{o.f()}}}}function sn(e,t){var n,r=new Map,i=new Map,a=F(t);try{for(a.s();!(n=a.n()).done;){var o=n.value;"string"==typeof o?(r.set(o,o),i.set(o,o)):(r.set(o[1],o[0]),i.set(o[0],o[1]))}}catch(e){a.e(e)}finally{a.f()}return{importer:function(t){var n,i=[],a=F(t.children);try{for(a.s();!(n=a.n()).done;){var o=n.value;"string"!=typeof o&&(o.getNamespace()===(e||t.getNamespace())&&r.has(o.getName())&&i.push(r.get(o.getName())))}}catch(e){a.e(e)}finally{a.f()}return i},exporter:function(t,n){var r,a=F(n);try{for(a.s();!(r=a.n()).done;){var o=r.value;ot(t,e,i.get(o))}}catch(e){a.e(e)}finally{a.f()}}}}function cn(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return{importer:function(i,a){var o=i.getChild(t,e||i.getNamespace());if(o){var s,c=[],u=F(o.children);try{for(u.s();!(s=u.n()).done;){var l=s.value;if("string"!=typeof l&&a.registry.getImportKey(l)===n){var f=a.registry.import(l);f&&c.push(f)}}}catch(e){u.e(e)}finally{u.f()}return r?c:c[0]}},exporter:function(r,i,a){var o,s=[],c=F(Array.isArray(i)?i:[i]);try{for(c.s();!(o=c.n()).done;){var u=o.value,l=a.registry.export(n,u,Object.assign(Object.assign({},a),{namespace:e||r.getNamespace()||void 0}));l&&s.push(l)}}catch(e){c.e(e)}finally{c.f()}if(s.length){var f,p=ot(r,e||r.getNamespace(),t),d=F(s);try{for(d.s();!(f=d.n()).done;){var h=f.value;p.appendChild(h)}}catch(e){d.e(e)}finally{d.f()}}}}}function un(e){return{exporter:function(){},importer:function(){return e}}}function ln(e,t,n){return{importer:function(r,i){if(!n||i.sanitizers&&i.sanitizers[n]){var a,o=at(r,e||r.getNamespace(),t),s=it(o,i),c=F(o);try{for(c.s();!(a=c.n()).done;){var u=a.value;if(rt(u,i.lang)===s)return n?i.sanitizers[n](u.toJSON()):u.toJSON()}}catch(e){c.e(e)}finally{c.f()}return o[0]?n?i.sanitizers[n](o[0].toJSON()):o[0].toJSON():void 0}},exporter:function(r,i,a){"string"==typeof i&&(i=tt("<".concat(t,' xmlns="').concat(e||r.getNamespace(),'">').concat(i,"</").concat(t,">")).toJSON());if(i&&n){if(!a.sanitizers||!a.sanitizers[n])return;i=a.sanitizers[n](i)}if(i){var o,s=ot(r,e||r.getNamespace(),t,a.lang),c=F(i.children);try{for(c.s();!(o=c.n()).done;){var u=o.value;"string"==typeof u?s.appendChild(u):u&&s.appendChild(new De(u.name,u.attributes,u.children))}}catch(e){c.e(e)}finally{c.f()}}}}}function fn(e,t,n){return{importer:function(r,i){if(!n||i.sanitizers&&i.sanitizers[n]){var a,o=[],s=new Set,c=F(at(r,e||r.getNamespace(),t));try{for(c.s();!(a=c.n()).done;){var u=a.value,l=u.toJSON();if(n&&(l=i.sanitizers[n](l)),l){var f=rt(u,i.lang);if(s.has(f))continue;o.push({lang:f,value:l}),s.add(f)}}}catch(e){c.e(e)}finally{c.f()}return s.size>0?o:void 0}},exporter:function(r,i,a){var o,s=F(i);try{for(s.s();!(o=s.n()).done;){var c=o.value,u=c.value;if("string"==typeof u)u=tt("<".concat(t,' xmlns="').concat(e||r.getNamespace(),'">').concat(u,"</").concat(t,">")).toJSON();if(u&&n){if(!a.sanitizers||!a.sanitizers[n])continue;u=a.sanitizers[n](u)}if(u){var l=nt(e||r.getNamespace(),t,a.namespace,r);r.appendChild(l),c.lang!==a.lang&&l.setAttribute("xml:lang",c.lang);var f,p=F(u.children);try{for(p.s();!(f=p.n()).done;){var d=f.value;"string"==typeof d?l.appendChild(d):l.appendChild(new De(d.name,d.attributes,d.children))}}catch(e){p.e(e)}finally{p.f()}}}}catch(e){s.e(e)}finally{s.f()}}}}function pn(e,t,n,r){return{importer:function(i,a){var o,s={},c=at(i,e,t),u=St(n).importer,l=St(r).importer,f=F(c);try{for(f.s();!(o=f.n()).done;){var p=o.value;s[u(p,a)]=l(p,a)}}catch(e){f.e(e)}finally{f.f()}return s},exporter:function(i,a,o){for(var s=St(n).exporter,c=St(r).exporter,u=e||i.getNamespace(),l=0,f=Object.entries(a);l<f.length;l++){var p=g()(f[l],2),d=p[0],h=p[1],v=nt(u,t,o.namespace,i);s(v,d,o),a[d]&&c(v,h,o),i.appendChild(v)}}}}var dn=function(){function e(){w()(this,e),this.parents=new Set,this.placeholder=!1,this.typeField="",this.versionField="",this.defaultType="",this.defaultVersion="",this.languageField="lang",this.typeValues=new Map,this.typeOrders=new Map,this.importers=new Map,this.exporters=new Map,this.children=new Map,this.childrenIndex=new Map,this.implicitChildren=new Set,this.contexts=new Map}return x()(e,[{key:"addChild",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,a={multiple:n||!1,name:e,selector:r,translator:t},o=this.children.get(e);if(o){var s=o.translator;o.multiple=n,r&&o.selector&&r!==o.selector&&(o.selector=void 0);var c,u=F(t.importers);try{for(u.s();!(c=u.n()).done;){var l=g()(c.value,2),f=l[0],p=l[1],d=(s.typeValues.get(f)||"").split("__v__"),h=g()(d,2),v=h[0],m=h[1];s.updateDefinition({contexts:t.contexts,element:p.element,exporterOrdering:new Map,exporters:new Map,importerOrdering:p.fieldOrders,importers:p.fields,namespace:p.namespace,optionalNamespaces:new Map,type:v,version:m}),this.implicitChildren.has(f)||this.childrenIndex.set(f,e)}}catch(e){u.e(e)}finally{u.f()}var y,b=F(t.exporters);try{for(b.s();!(y=b.n()).done;){var _=g()(y.value,2),w=_[0],S=_[1],x=w.split("__v__"),k=g()(x,2),T=k[0],j=k[1];s.updateDefinition({contexts:t.contexts,element:S.element,exporterOrdering:S.fieldOrders,exporters:S.fields,importerOrdering:new Map,importers:new Map,namespace:S.namespace,optionalNamespaces:S.optionalNamespaces,type:T,version:j})}}catch(e){b.e(e)}finally{b.f()}}else{a.translator.parents.add(this),this.children.set(e,a);var E,I=F(t.importers);try{for(I.s();!(E=I.n()).done;){var O=g()(E.value,1),A=O[0];this.implicitChildren.has(A)||this.childrenIndex.set(A,e)}}catch(e){I.e(e)}finally{I.f()}i&&this.implicitChildren.add(i)}}},{key:"addContext",value:function(e,t,n,r,i,a){t&&(e="".concat(e,"[").concat(t,"]"));var o=this.contexts.get(e);o||(o={typeField:"",versionField:"",typeValues:new Map}),a&&(o.impliedType=i),o.typeField=n||"",o.typeValues.set(r,i),this.contexts.set(e,o)}},{key:"getChild",value:function(e){var t=this.children.get(e);if(t)return t.translator}},{key:"getImportKey",value:function(e){return this.childrenIndex.get("{".concat(e.getNamespace(),"}").concat(e.getName()))}},{key:"updateDefinition",value:function(e){var t,n="{".concat(e.namespace,"}").concat(e.element),r=e.type||this.defaultType,i=e.version||this.defaultVersion,a=i?"".concat(r,"__v__").concat(i):r,o=this.importers.get(n)||{element:e.element,fieldOrders:new Map,fields:new Map,namespace:e.namespace},s=F(e.importers);try{for(s.s();!(t=s.n()).done;){var c=g()(t.value,2),u=c[0],l=c[1];o.fields.set(u,l)}}catch(e){s.e(e)}finally{s.f()}var f,p=F(e.importerOrdering);try{for(p.s();!(f=p.n()).done;){var d=g()(f.value,2),h=d[0],v=d[1];o.fieldOrders.set(h,v)}}catch(e){p.e(e)}finally{p.f()}this.importers.set(n,o);var m,y=this.exporters.get(a)||{element:e.element,fieldOrders:new Map,fields:new Map,namespace:e.namespace,optionalNamespaces:e.optionalNamespaces},b=F(e.exporters);try{for(b.s();!(m=b.n()).done;){var _=g()(m.value,2),w=_[0],S=_[1];y.fields.set(w,S)}}catch(e){b.e(e)}finally{b.f()}var x,k=F(e.exporterOrdering);try{for(k.s();!(x=k.n()).done;){var T=g()(x.value,2),j=T[0],E=T[1];y.fieldOrders.set(j,E)}}catch(e){k.e(e)}finally{k.f()}var I,O=F(e.optionalNamespaces);try{for(O.s();!(I=O.n()).done;){var A=g()(I.value,2),R=A[0],N=A[1];y.optionalNamespaces.set(R,N)}}catch(e){O.e(e)}finally{O.f()}this.exporters.set(a,y);var C,P=F(e.contexts);try{for(P.s();!(C=P.n()).done;){var L=g()(C.value,2),q=L[0],M=L[1],D=this.contexts.get(q)||{impliedType:void 0,typeField:M.typeField,versionField:M.versionField,typeValues:new Map};D.typeField||(D.typeField=M.typeField),D.versionField||(D.versionField=M.versionField),D.impliedType||(D.impliedType=M.impliedType);var B,U=F(M.typeValues);try{for(U.s();!(B=U.n()).done;){var z=g()(B.value,2),J=z[0],G=z[1];D.typeValues.set(J,G)}}catch(e){U.e(e)}finally{U.f()}this.contexts.set(q,D)}}catch(e){P.e(e)}finally{P.f()}if(e.type)this.typeValues.set(n,a),e.typeOrder&&e.type&&this.typeOrders.set(e.type,e.typeOrder);else if(this.typeField&&!e.type){var V,H=F(this.importers);try{for(H.s();!(V=H.n()).done;){var W,Q=g()(V.value,2)[1],K=F(e.importers);try{for(K.s();!(W=K.n()).done;){var Y=g()(W.value,2),X=Y[0],$=Y[1];Q.fields.set(X,$)}}catch(e){K.e(e)}finally{K.f()}var Z,ee=F(e.importerOrdering);try{for(ee.s();!(Z=ee.n()).done;){var te=g()(Z.value,2),ne=te[0],re=te[1];Q.fieldOrders.set(ne,re)}}catch(e){ee.e(e)}finally{ee.f()}}}catch(e){H.e(e)}finally{H.f()}var ie,ae=F(this.exporters);try{for(ae.s();!(ie=ae.n()).done;){var oe,se=g()(ie.value,2)[1],ce=F(e.exporters);try{for(ce.s();!(oe=ce.n()).done;){var ue=g()(oe.value,2),le=ue[0],fe=ue[1];se.fields.set(le,fe)}}catch(e){ce.e(e)}finally{ce.f()}var pe,de=F(e.exporterOrdering);try{for(de.s();!(pe=de.n()).done;){var he=g()(pe.value,2),ve=he[0],me=he[1];se.fieldOrders.set(ve,me)}}catch(e){de.e(e)}finally{de.f()}}}catch(e){ae.e(e)}finally{ae.f()}}}},{key:"replaceWith",value:function(e){var t,n=F(this.children);try{for(n.s();!(t=n.n()).done;){var r=g()(t.value,2),i=r[0],a=r[1];e.children.set(i,a)}}catch(e){n.e(e)}finally{n.f()}var o,s=F(this.childrenIndex);try{for(s.s();!(o=s.n()).done;){var c=g()(o.value,2),u=c[0],l=c[1];e.childrenIndex.set(u,l)}}catch(e){s.e(e)}finally{s.f()}var f,p=F(this.contexts);try{for(p.s();!(f=p.n()).done;){var d=g()(f.value,2),h=d[0],v=d[1];e.contexts.set(h,v)}}catch(e){p.e(e)}finally{p.f()}var m,y=F(this.implicitChildren);try{for(y.s();!(m=y.n()).done;){var b=m.value;e.implicitChildren.add(b)}}catch(e){y.e(e)}finally{y.f()}var _,w=F(this.parents);try{for(w.s();!(_=w.n()).done;){var S,x=F(_.value.children.values());try{for(x.s();!(S=x.n()).done;){var k=S.value;k.translator===this&&(k.translator=e)}}catch(e){x.e(e)}finally{x.f()}}}catch(e){w.e(e)}finally{w.f()}this.parents=new Set}},{key:"import",value:function(e,t){var n="{".concat(e.getNamespace(),"}").concat(e.getName()),r={},i=this.importers.get(n);if(i){var a,o=(this.typeValues.get(n)||"").split("__v__"),s=g()(o,2),c=s[0],u=s[1],l=t.path||"";if(t.pathSelector&&(a=this.contexts.get("".concat(l,"[").concat(t.pathSelector,"]"))),a||(a=this.contexts.get(l)),a){if(!a.impliedType){var f=a.typeValues.get(n)||"";f&&(r[a.typeField]=f)}}else this.typeField&&c&&c!==this.defaultType&&(r[this.typeField]=c);this.versionField&&u&&u!==this.defaultVersion&&(r[this.versionField]=u);var p,h=Object.assign(Object.assign({},t),{data:r,importer:i,lang:(e.getAttribute("xml:lang")||t.lang||"").toLowerCase(),pathSelector:c,translator:this}),v=d()(i.fieldOrders.entries()).sort((function(e,t){return e[1]>t[1]?-1:e[1]<t[1]?1:0})),m=v.filter((function(e){return e[1]>=0})),y=v.filter((function(e){return e[1]<0})),b=F(m);try{for(b.s();!(p=b.n()).done;){var _=g()(p.value,1)[0],w=i.fields.get(_);h.path="".concat(t.path,".").concat(_);var S=w(e,h);null!=S&&(r[_]=S)}}catch(e){b.e(e)}finally{b.f()}var x,k=F(e.children);try{for(k.s();!(x=k.n()).done;){var T=x.value;if("string"!=typeof T){var j="{".concat(T.getNamespace(),"}").concat(T.getName()),E=this.childrenIndex.get(j);if(E){h.path="".concat(t.path,".").concat(E);var I=this.children.get(E),O=I.translator,A=I.multiple,R=I.selector;if(!R||R===c){var N=O.import(T,h);void 0!==N&&(A?(r[E]||(r[E]=[]),r[E].push(N)):r[E]?r[E]=O.resolveCollision(r[E],N):r[E]=N)}}}}}catch(e){k.e(e)}finally{k.f()}var C,P=F(y);try{for(P.s();!(C=P.n()).done;){var L=g()(C.value,1)[0],q=i.fields.get(L);h.path="".concat(t.path,".").concat(L);var M=q(e,h);null!=M&&(r[L]=M)}}catch(e){P.e(e)}finally{P.f()}return r}}},{key:"export",value:function(e,t){if(e){var n,r=this.defaultType,i=this.defaultVersion,a=t.path||"";t.pathSelector&&(n=this.contexts.get("".concat(a,"[").concat(t.pathSelector,"]"))),n||(n=this.contexts.get(a)),n?r=n.impliedType||e[n.typeField]||this.defaultType:this.typeField&&(r=e[this.typeField]||this.defaultType),this.versionField&&(i=e[this.versionField]||this.defaultVersion);var o=i?"".concat(r,"__v__").concat(i):r,s=this.exporters.get(o);if(s){var c=nt(s.namespace,s.element,t.namespace,t.element);t.element&&(c.parent=t.element);var u,l=F(s.optionalNamespaces);try{for(l.s();!(u=l.n()).done;){var f=g()(u.value,2),p=f[0],d=f[1];c.addOptionalNamespace(p,d)}}catch(e){l.e(e)}finally{l.f()}var h=Object.assign(Object.assign({},t),{data:e,element:c,exporter:s,lang:(e[this.languageField]||t.lang||"").toLowerCase(),namespace:c.getDefaultNamespace(),pathSelector:r,translator:this}),v=s.fields.get(this.languageField);v&&v(c,e[this.languageField],t);var m=Object.keys(e);m.sort((function(e,t){return(s.fieldOrders.get(e)||1e5)-(s.fieldOrders.get(t)||1e5)}));for(var y=0,b=m;y<b.length;y++){var _=b[y];if(_!==this.languageField){var w=e[_],S=s.fields.get(_);if(S)S(c,w,h);else{var x=this.children.get(_);if(x){h.path="".concat(t.path?t.path+".":"").concat(_);var k=x.translator,T=x.multiple,j=x.selector;if(!j||j===r){var E,I=F(T?null!=w?w:[]:[w]);try{for(I.s();!(E=I.n()).done;){var O=E.value,A=k.export(O,h);A&&c.appendChild(A)}}catch(e){I.e(e)}finally{I.f()}}}}}}return c}}}},{key:"resolveCollision",value:function(e,t){return(this.typeOrders.get(e[this.typeField]||this.defaultType)||0)<=(this.typeOrders.get(t[this.typeField]||this.defaultType)||0)?e:t}}]),e}(),hn=function(){function e(){w()(this,e),this.translators=new Map,this.root=new dn,this.setLanguageResolver(Me)}return x()(e,[{key:"setLanguageResolver",value:function(e){this.languageResolver=e}},{key:"import",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{registry:this};if(this.hasTranslator(e.getNamespace(),e.getName())){t.acceptLanguages||(t.acceptLanguages=[]),t.acceptLanguages=t.acceptLanguages.map((function(e){return e.toLowerCase()})),t.lang&&(t.lang=t.lang.toLowerCase()),t.resolveLanguage||(t.resolveLanguage=this.languageResolver),t.path=this.getImportKey(e),t.sanitizers||(t.sanitizers={xhtmlim:Qe});var n=this.getOrCreateTranslator(e.getNamespace(),e.getName());return n.import(e,Object.assign(Object.assign({},t),{registry:this}))}}},{key:"export",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{registry:this};n.acceptLanguages||(n.acceptLanguages=[]),n.acceptLanguages=n.acceptLanguages.map((function(e){return e.toLowerCase()})),n.lang&&(n.lang=n.lang.toLowerCase()),n.sanitizers||(n.sanitizers={xhtmlim:Qe}),n.path=e;var r,i=e.split(".").filter((function(e){return""!==e})),a=this.root,o=F(i);try{for(o.s();!(r=o.n()).done;){var s=r.value,c=a.getChild(s);if(!c)return;a=c}}catch(e){o.e(e)}finally{o.f()}return a.export(t,Object.assign(Object.assign({},n),{registry:this}))}},{key:"getImportKey",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=t?this.walkToTranslator(t.split(".")):this.root;if(n)return n.getImportKey(e)}},{key:"define",value:function(e){if(Array.isArray(e)){var t,n=F(e);try{for(n.s();!(t=n.n()).done;){var r=t.value;"object"===f()(r)?this.define(r):r(this)}}catch(e){n.e(e)}finally{n.f()}}else if("object"===f()(e)){var i=e;i.aliases=i.aliases||[],i.path&&!i.aliases.includes(i.path)&&i.aliases.push(i.path);var a,o=i.aliases.map((function(e){return"string"==typeof e?{path:e}:e})).sort((function(e,t){var n=e.path.split(".").length;return t.path.split(".").length-n}));if(this.hasTranslator(i.namespace,i.element)&&(a=this.getOrCreateTranslator(i.namespace,i.element)),!a){var s,c,u=F(o);try{for(u.s();!(c=u.n()).done;){var l=c.value,p=this.walkToTranslator(l.path.split("."));if(p&&!p.placeholder){a=p;break}p&&(s=p)}}catch(e){u.e(e)}finally{u.f()}s&&!a&&((a=s).placeholder=!1)}a||(a=this.getOrCreateTranslator(i.namespace,i.element)),this.indexTranslator(i.namespace,i.element,a);var d=i.fields||{},h=new Map,v=new Map,m=new Map,y=new Map;i.typeField&&(a.typeField=i.typeField),i.defaultType&&(a.defaultType=i.defaultType),i.versionField&&(a.versionField=i.versionField),i.defaultVersion&&(a.defaultVersion=i.defaultVersion),i.languageField&&(a.languageField=i.languageField);for(var b=0,_=Object.entries(d);b<_.length;b++){var w=g()(_[b],2),S=w[0],x=w[1];h.set(S,x.importer),m.set(S,x.importOrder||x.order||0),v.set(S,x.exporter),y.set(S,x.exportOrder||x.order||0)}if(i.childrenExportOrder)for(var k=0,T=Object.entries(i.childrenExportOrder);k<T.length;k++){var j=g()(T[k],2),E=j[0],I=j[1];y.set(E,I||0)}for(var O=new Map,A=0,R=Object.entries(i.optionalNamespaces||{});A<R.length;A++){var N=g()(R[A],2),C=N[0],P=N[1];O.set(C,P)}a.updateDefinition({contexts:new Map,element:i.element,exporterOrdering:y,exporters:v,importerOrdering:m,importers:h,namespace:i.namespace,optionalNamespaces:O,type:i.type,version:i.version,typeOrder:i.typeOrder});var L,q=F(o);try{for(q.s();!(L=q.n()).done;){var M=L.value;this.alias(i.namespace,i.element,M.path,M.multiple,M.selector,M.contextField,i.type,M.impliedType)}}catch(e){q.e(e)}finally{q.f()}var D,B=F(o);try{for(B.s();!(D=B.n()).done;){var U=D.value,z=this.walkToTranslator(U.path.split("."));z&&z!==a&&z.replaceWith(a)}}catch(e){B.e(e)}finally{B.f()}}else e(this)}},{key:"alias",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0,o=arguments.length>6?arguments[6]:void 0,s=arguments.length>7&&void 0!==arguments[7]&&arguments[7],c=this.getOrCreateTranslator(e,t);c.placeholder=!1;var u=n.split(".").filter((function(e){return""!==e})),l=u.pop(),f=this.walkToTranslator(u,!0),p="{".concat(e,"}").concat(t);o&&(a||s)&&c.addContext(n,i,a,p,o,s),f.addChild(l,c,r,i,p)}},{key:"walkToTranslator",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.root,i=F(e);try{for(i.s();!(t=i.n()).done;){var a=t.value,o=r.getChild(a);if(!o){if(!n)return;(o=new dn).placeholder=!0,r.addChild(a,o)}r=o}}catch(e){i.e(e)}finally{i.f()}return r}},{key:"hasTranslator",value:function(e,t){return this.translators.has("{".concat(e,"}").concat(t))}},{key:"getOrCreateTranslator",value:function(e,t){var n=this.translators.get("{".concat(e,"}").concat(t));return n||(n=new dn,this.indexTranslator(e,t,n)),n}},{key:"indexTranslator",value:function(e,t,n){this.translators.set("{".concat(e,"}").concat(t),n)}}]),e}(),vn="http://www.w3.org/2005/Atom",mn="urn:ietf:params:xml:ns:xmpp-bind",gn="jabber:client",yn="urn:ietf:params:xml:ns:xmpp-sasl",bn="urn:ietf:params:xml:ns:xmpp-session",_n="urn:ietf:params:xml:ns:xmpp-stanzas",wn="http://etherx.jabber.org/streams",Sn="urn:ietf:params:xml:ns:xmpp-streams",xn="urn:ietf:params:xml:ns:xmpp-tls",kn="urn:ietf:params:xml:ns:xmpp-framing",Tn="jabber:x:data",jn="jabber:iq:privacy",En="http://jabber.org/protocol/disco#info",In="http://jabber.org/protocol/disco#items",On="http://jabber.org/protocol/address",An="http://jabber.org/protocol/muc",Rn="http://jabber.org/protocol/muc#admin",Nn="http://jabber.org/protocol/muc#owner",Cn="http://jabber.org/protocol/muc#user",Pn="http://jabber.org/protocol/ibb",Ln="http://jabber.org/protocol/commands",qn="http://jabber.org/protocol/rsm",Fn="http://jabber.org/protocol/pubsub",Mn="http://jabber.org/protocol/pubsub#errors",Dn="http://jabber.org/protocol/pubsub#event",Bn="http://jabber.org/protocol/pubsub#owner",Un="http://jabber.org/protocol/bytestreams",zn="jabber:x:oob",Jn="http://www.w3.org/1999/xhtml",Gn="http://jabber.org/protocol/xhtml-im",Vn="http://jabber.org/protocol/geoloc",Hn="urn:xmpp:avatar:data",Wn="urn:xmpp:avatar:metadata",Qn="http://jabber.org/protocol/chatstates",Kn="http://jabber.org/protocol/mood",Yn="http://jabber.org/protocol/activity",Xn="http://jabber.org/protocol/tune",$n="http://jabber.org/protocol/xdata-validate",Zn="http://jabber.org/protocol/httpbind",er="http://jabber.org/protocol/shim",tr="http://jabber.org/protocol/compress",nr="http://jabber.org/protocol/xdata-layout",rr="http://jabber.org/protocol/rosterx",ir=function(e){return"".concat(e,"+notify")},ar="urn:xmpp:jingle:1",or="urn:xmpp:jingle:apps:rtp:1",sr="urn:xmpp:jingle:apps:rtp:info:1",cr="http://jabber.org/protocol/nick",ur="urn:xmpp:jingle:transports:ice-udp:1",lr="urn:xmpp:jingle:transports:raw-udp:1",fr="urn:xmpp:sm:3",pr="urn:xmpp:delay",dr="urn:xmpp:bob",hr="urn:xmpp:jingle:apps:file-transfer:5",vr="urn:xmpp:jingle:apps:xmlstream:0",mr="urn:xmpp:jingle:transports:s5b:1",gr="urn:xmpp:jingle:transports:ibb:1",yr="urn:xmpp:carbons:2",br="urn:xmpp:jingle:apps:rtp:rtcp-fb:0",_r="urn:xmpp:jingle:apps:rtp:rtp-hdrext:0",wr="urn:xmpp:forward:0",Sr="urn:xmpp:hashes:2",xr=function(e){return"urn:xmpp:hash-function-text-names:".concat(e)},kr="urn:xmpp:rtt:0",Tr="urn:xmpp:mam:2",jr="urn:xmpp:hats:0",Er="urn:xmpp:chat-markers:0",Ir="urn:xmpp:hints",Or="urn:xmpp:json:0",Ar="urn:xmpp:push:0",Rr="urn:xmpp:http:upload:0",Nr="urn:xmpp:jingle:transports:ice:0",Cr="eu.siacs.conversations.axolotl",Pr="http://docs.oasis-open.org/ns/xri/xrd-1.0",Lr=Object.freeze({__proto__:null,NS_ATOM:vn,NS_BIND:mn,NS_CLIENT:gn,NS_SASL:yn,NS_SERVER:"jabber:server",NS_SESSION:bn,NS_STANZAS:_n,NS_STREAM:wn,NS_STREAMS:Sn,NS_STARTTLS:xn,NS_ROSTER:"jabber:iq:roster",NS_ROSTER_VERSIONING:"urn:xmpp:features:rosterver",NS_SUBSCRIPTION_PREAPPROVAL:"urn:xmpp:features:pre-approval",NS_FRAMING:kn,NS_DATAFORM:Tn,NS_RPC:"jabber:iq:rpc",NS_LAST_ACTIVITY:"jabber:iq:last",NS_PRIVACY:jn,NS_LEGACY_CHAT_EVENTS:"jabber:x:event",NS_DISCO_INFO:En,NS_DISCO_ITEMS:In,NS_ADDRESS:On,NS_MUC:An,NS_MUC_ADMIN:Rn,NS_MUC_OWNER:Nn,NS_MUC_USER:Cn,NS_IBB:Pn,NS_BOOKMARKS:"storage:bookmarks",NS_PRIVATE:"jabber:iq:private",NS_ADHOC_COMMANDS:Ln,NS_VCARD_TEMP:"vcard-temp",NS_SEARCH:"jabber:iq:search",NS_RSM:qn,NS_PUBSUB:Fn,NS_PUBSUB_ERRORS:Mn,NS_PUBSUB_EVENT:Dn,NS_PUBSUB_OWNER:Bn,NS_SOCKS5:Un,NS_OOB:zn,NS_OOB_TRANSFER:"jabber:iq:oob",NS_HTTP_AUTH:"http://jabber.org/protocol/http-auth",NS_XHTML:Jn,NS_XHTML_IM:Gn,NS_REGISTER:"jabber:iq:register",NS_INBAND_REGISTRATION:"http://jabber.org/features/iq-register",NS_AMP:"http://jabber.org/protocol/amp",NS_GEOLOC:Vn,NS_ROSTER_DELIMITER:"roster:delimiter",NS_AVATAR_DATA:Hn,NS_AVATAR_METADATA:Wn,NS_CHAT_STATES:Qn,NS_VERSION:"jabber:iq:version",NS_MOOD:Kn,NS_ACTIVITY:Yn,NS_COMPONENT:"jabber:component:accept",NS_DISCO_LEGACY_CAPS:"http://jabber.org/protocol/caps",NS_TUNE:Xn,NS_DATAFORM_VALIDATION:$n,NS_BOSH:Zn,NS_SHIM:er,NS_COMPRESSION_FEATURE:"http://jabber.org/features/compress",NS_COMPRESSION:tr,NS_DATAFORM_LAYOUT:nr,NS_ROSTER_EXCHANGE:rr,NS_ROSTER_NOTES:"storage:rosternotes",NS_REACH_0:"urn:xmpp:reach:0",NS_VCARD_TEMP_UPDATE:"vcard-temp:x:update",NS_ALT_CONNECTIONS_WEBSOCKET:"urn:xmpp:alt-connections:websocket",NS_ALT_CONNECTIONS_XBOSH:"urn:xmpp:alt-connections:xbosh",NS_CAPTCHA:"urn:xmpp:captcha",NS_PEP_NOTIFY:ir,NS_JINGLE_1:ar,NS_JINGLE_ERRORS_1:"urn:xmpp:jingle:errors:1",NS_JINGLE_RTP_1:or,NS_JINGLE_RTP_ERRORS_1:"urn:xmpp:jingle:apps:rtp:errors:1",NS_JINGLE_RTP_INFO_1:sr,NS_JINGLE_RTP_AUDIO:"urn:xmpp:jingle:apps:rtp:audio",NS_JINGLE_RTP_VIDEO:"urn:xmpp:jingle:apps:rtp:video",NS_LANG_TRANS:"urn:xmpp:langtrans",NS_LANG_TRANS_ITEMS:"urn:xmpp:langtrans:items",NS_NICK:cr,NS_JINGLE_ICE_UDP_1:ur,NS_JINGLE_RAW_UDP_1:lr,NS_RECEIPTS:"urn:xmpp:receipts",NS_INVISIBLE_0:"urn:xmpp:invisible:0",NS_BLOCKING:"urn:xmpp:blocking",NS_BLOCKING_ERRORS:"urn:xmpp:blocking:errors",NS_SMACKS_3:fr,NS_PING:"urn:xmpp:ping",NS_TIME:"urn:xmpp:time",NS_DELAY:pr,NS_BOSH_XMPP:"urn:xmpp:xbosh",NS_DISCO_EXTERNAL_1:"urn:xmpp:extdisco:1",NS_DISCO_EXTERNAL_2:"urn:xmpp:extdisco:2",NS_DATAFORM_MEDIA:"urn:xmpp:media-element",NS_ATTENTION_0:"urn:xmpp:attention:0",NS_BOB:dr,NS_SOFTWARE_INFO:"urn:xmpp:dataforms:softwareinfo",NS_JINGLE_FILE_TRANSFER_3:"urn:xmpp:jingle:apps:file-transfer:3",NS_JINGLE_FILE_TRANSFER_4:"urn:xmpp:jingle:apps:file-transfer:4",NS_JINGLE_FILE_TRANSFER_5:hr,NS_JINGLE_XML_0:vr,NS_MUC_DIRECT_INVITE:"jabber:x:conference",NS_SEC_LABEL_0:"urn:xmpp:sec-label:0",NS_SEC_LABEL_CATALOG_2:"urn:xmpp:sec-label:catalog:2",NS_SEC_LABEL_ESS_0:"urn:xmpp:sec-label:ess:0",NS_JINGLE_SOCKS5_1:mr,NS_JINGLE_IBB_1:gr,NS_JINGLE_RTP_ZRTP_1:"urn:xmpp:jingle:apps:rtp:zrtp:1",NS_THUMBS_0:"urn:xmpp:thumbs:0",NS_THUMBS_1:"urn:xmpp:thumbs:1",NS_DECLOAKING_0:"urn:xmpp:decloaking:0",NS_CARBONS_2:yr,NS_JINGLE_RTP_RTCP_FB_0:br,NS_JINGLE_RTP_HDREXT_0:_r,NS_FORWARD_0:wr,NS_HASHES_1:"urn:xmpp:hashes:1",NS_HASHES_2:Sr,NS_HASH_NAME:xr,NS_RTT_0:kr,NS_MUC_UNIQUE:"http://jabber.org/protocol/muc#unique",NS_CORRECTION_0:"urn:xmpp:message-correct:0",NS_PSA:"urn:xmpp:psa",NS_MAM_TMP:"urn:xmpp:mam:tmp",NS_MAM_0:"urn:xmpp:mam:0",NS_MAM_1:"urn:xmpp:mam:1",NS_MAM_2:Tr,NS_HATS_0:jr,NS_IDLE_1:"urn:xmpp:idle:1",NS_JINGLE_DTLS_0:"urn:xmpp:jingle:apps:dtls:0",NS_CHAT_MARKERS_0:Er,NS_HINTS:Ir,NS_JSON_0:Or,NS_JINGLE_GROUPING_0:"urn:xmpp:jingle:apps:grouping:0",NS_JINGLE_RTP_SSMA_0:"urn:xmpp:jingle:apps:rtp:ssma:0",NS_JINGLE_DTLS_SCTP_1:"urn:xmpp:jingle:transports:dtls-sctp:1",NS_CSI_0:"urn:xmpp:csi:0",NS_JINGLE_MSG_INITIATE_0:"urn:xmpp:jingle:jingle-message:0",NS_DELEGATION_1:"urn:xmpp:delegation:1",NS_PUSH_0:Ar,NS_JINGLE_PUB_1:"urn:xmpp:jinglepub:1",NS_SID_0:"urn:xmpp:sid:0",NS_HTTP_UPLOAD_0:Rr,NS_JINGLE_HTTP_0:"urn:xmpp:jingle:transports:http:0",NS_JINGLE_HTTP_UPLOAD_0:"urn:xmpp:jingle:transports:http:upload:0",NS_JINGLE_ICE_0:Nr,NS_REFERENCE_0:"urn:xmpp:reference:0",NS_EME_0:"urn:xmpp:eme:0",NS_SPOILER_0:"urn:xmpp:spoiler:0",NS_OMEMO_AXOLOTL:Cr,NS_OMEMO_AXOLOTL_DEVICELIST:"eu.siacs.conversations.axolotl.devicelist",NS_OMEMO_AXOLOTL_BUNDLES:"eu.siacs.conversations.axolotl.bundles",NS_OMEMO_AXOLOTL_BUNDLE:function(e){return"".concat("eu.siacs.conversations.axolotl.bundles",":").concat(e)},NS_JSON_MESSAGE_0:"urn:xmpp:json-msg:0",NS_XRD:Pr,NS_JINGLE_RTP_MSID_0:"urn:xmpp:jingle:apps:rtp:msid:0"}),qr=St,Fr=Nt,Mr=Ut;function Dr(e,t,n){return{aliases:Array.isArray(n)?n:[n],element:t,fields:{},namespace:e}}function Br(e){return{element:"message",fields:e,namespace:gn}}function Ur(e){return{element:"presence",fields:e,namespace:gn}}function zr(e){return{element:"iq",fields:e,namespace:gn}}function Jr(e){return{element:"features",fields:e,namespace:wn}}function Gr(e){return{element:"error",fields:e,namespace:_n,path:"stanzaError"}}function Vr(){return[{path:"pubsubcontent",contextField:"itemType"},{path:"pubsubitem.content",contextField:"itemType"},{path:"pubsubeventitem.content",contextField:"itemType"},{path:"iq.pubsub.publish.items",contextField:"itemType"}]}var Hr=function(e){T()(n,e);var t=D(n);function n(e){var r;return w()(this,n),(r=t.call(this,{objectMode:!0})).closedStream=!1,r.wrappedStream=!1,r.registry=e.registry,r.acceptLanguages=e.acceptLanguages||[],e.wrappedStream&&(r.wrappedStream=!0,r.rootImportKey=e.rootKey),r.parser=new et({allowComments:e.allowComments}),r.parser.on("error",(function(e){r.destroy(e)})),r.parser.on("startElement",(function(e,t){if(!r.destroyed){if(r.closedStream)return r.destroy(Ie.alreadyClosed());var n=new De(e,t),i=r.registry.getImportKey(n);if(r.wrappedStream&&!r.rootElement){if(r.rootImportKey&&i!==r.rootImportKey)return r.destroy(Ie.unknownRoot());var a=r.registry.import(n,{acceptLanguages:r.acceptLanguages,lang:r.lang});return a?(r.rootElement=n,void r.push({event:"stream-start",kind:i,stanza:a,xml:n})):r.destroy(Ie.notWellFormed())}r.currentElement?r.currentElement=r.currentElement.appendChild(n):r.currentElement=n}})),r.parser.on("endElement",(function(e){if(!r.destroyed){if(r.wrappedStream&&!r.currentElement)return r.rootElement&&e===r.rootElement.name?(r.closedStream=!0,r.push({event:"stream-end",kind:r.rootImportKey,stanza:{},xml:r.rootElement}),r.end()):(r.closedStream=!0,r.destroy(Ie.notWellFormed()));if(!r.currentElement||e!==r.currentElement.name)return r.closedStream=!0,r.destroy(Ie.notWellFormed());if(r.currentElement.parent)r.currentElement=r.currentElement.parent;else{r.wrappedStream&&(r.currentElement.parent=r.rootElement);var t=r.registry.getImportKey(r.currentElement),n=r.registry.import(r.currentElement,{acceptLanguages:r.acceptLanguages,lang:r.lang});n&&r.push({kind:t,stanza:n,xml:r.currentElement}),r.currentElement=void 0}}})),r.parser.on("text",(function(e){r.currentElement&&r.currentElement.children.push(e)})),r}return x()(n,[{key:"_transform",value:function(e,t,n){this.parser.write(e.toString()),n()}}]),n}(L.Transform);var Wr=Object.freeze({__proto__:null,Registry:hn,Translator:dn,XMLElement:De,define:function(e){return function(t){t.define(e)}},Parser:et,parse:tt,StreamParser:Hr,escapeXML:Le,unescapeXML:qe,escapeXMLText:Fe,basicLanguageResolver:Me,createElement:nt,getLang:rt,getTargetLang:it,findAll:at,findOrCreate:ot,attribute:St,booleanAttribute:xt,integerAttribute:kt,floatAttribute:Tt,dateAttribute:jt,namespacedAttribute:Et,namespacedBooleanAttribute:It,namespacedIntegerAttribute:Ot,namespacedFloatAttribute:At,namespacedDateAttribute:Rt,childAttribute:Nt,childBooleanAttribute:Ct,childIntegerAttribute:Pt,childFloatAttribute:Lt,childDateAttribute:qt,text:Ft,textJSON:Mt,textBuffer:Dt,languageAttribute:Bt,childLanguageAttribute:function(e,t){return lt(Object.assign({converter:Bt(),element:t,name:"xml:lang",namespace:e},ht))},childText:Ut,childTextBuffer:zt,childDate:Jt,childInteger:Gt,childFloat:Vt,childJSON:Ht,childTimezoneOffset:Wt,childBoolean:Qt,deepChildText:Yt,deepChildInteger:Xt,deepChildBoolean:$t,deepMultipleChildText:Zt,childEnum:en,childDoubleEnum:tn,multipleChildText:nn,multipleChildAttribute:rn,multipleChildIntegerAttribute:an,childAlternateLanguageText:on,multipleChildAlternateLanguageText:function(e,t){return{importer:function(n,r){var i,a=[],o=new Map,s=!1,c=F(at(n,e||n.getNamespace(),t));try{for(c.s();!(i=c.n()).done;){var u=i.value,l=u.getText();if(l){var f=rt(u,r.lang),p=o.get(f);p||(p=[],o.set(f,p),a.push({lang:f,value:p})),p.push(l),s=!0}}}catch(e){c.e(e)}finally{c.f()}return s?a:void 0},exporter:function(n,r,i){var a,o=F(r);try{for(o.s();!(a=o.n()).done;){var s,c=a.value,u=F(c.value);try{for(u.s();!(s=u.n()).done;){var l=s.value,f=nt(e||n.getNamespace(),t,i.namespace,n);c.lang!==i.lang&&f.setAttribute("xml:lang",c.lang),f.children.push(l),n.appendChild(f)}}catch(e){u.e(e)}finally{u.f()}}}catch(e){o.e(e)}finally{o.f()}}}},multipleChildEnum:sn,splicePath:cn,staticValue:un,childRawElement:function(e,t,n){return{importer:function(r,i){if(!n||i.sanitizers&&i.sanitizers[n]){var a=r.getChild(t,e||r.getNamespace());return a?n?i.sanitizers[n](a.toJSON()):a.toJSON():void 0}},exporter:function(r,i,a){"string"==typeof i&&(i=tt("<".concat(t,' xmlns="').concat(e||r.getNamespace(),'">').concat(i,"</").concat(t,">")).toJSON());if(n){if(!a.sanitizers||!a.sanitizers[n])return;i=a.sanitizers[n](i)}i&&r.appendChild(new De(i.name,i.attributes,i.children))}}},childLanguageRawElement:ln,childAlternateLanguageRawElement:fn,parameterMap:pn,JIDAttribute:qr,childJIDAttribute:Fr,childJID:Mr,addAlias:Dr,extendMessage:Br,extendPresence:Ur,extendIQ:zr,extendStreamFeatures:Jr,extendStanzaError:Gr,pubsubItemContentAliases:Vr}),Qr=function(t){T()(r,t);var n=D(r);function r(t,i){var a,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"be";return w()(this,r),(a=n.call(this))._block=e.alloc(t),a._finalSize=i,a._blockSize=t,a._bigEndian="be"===o,a._len=0,a}return x()(r,[{key:"_transform",value:function(e,t,n){var r=null;try{this.update(e,t)}catch(e){r=e}n(r)}},{key:"_flush",value:function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)}},{key:"update",value:function(t,n){"string"==typeof t&&(n=n||"utf8",t=e.from(t,n));for(var r=this._block,i=this._blockSize,a=t.length,o=this._len,s=0;s<a;){for(var c=o%i,u=Math.min(a-s,i-c),l=0;l<u;l++)r[c+l]=t[s+l];s+=u,(o+=u)%i==0&&this._update(r)}return this._len+=a,this}},{key:"digest",value:function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var n=8*this._len;if(n<=4294967295)this._bigEndian?(this._block.writeUInt32BE(0,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)):(this._block.writeUInt32LE(n,this._blockSize-8),this._block.writeUInt32LE(0,this._blockSize-4));else{var r=(4294967295&n)>>>0,i=(n-r)/4294967296;this._bigEndian?(this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(r,this._blockSize-4)):(this._block.writeUInt32LE(r,this._blockSize-8),this._block.writeUInt32LE(i,this._blockSize-4))}this._update(this._block);var a=this._hash();return e?a.toString(e):a}},{key:"_update",value:function(e){throw new Error("_update must be implemented by subclass")}},{key:"_hash",value:function(){throw new Error("_update must be implemented by subclass")}}]),r}(L.Transform);function Kr(e,t){return e<<t|e>>>32-t}function Yr(e,t,n,r,i,a,o){return Kr(e+(t&n|~t&r)+i+a|0,o)+t|0}function Xr(e,t,n,r,i,a,o){return Kr(e+(t&r|n&~r)+i+a|0,o)+t|0}function $r(e,t,n,r,i,a,o){return Kr(e+(t^n^r)+i+a|0,o)+t|0}function Zr(e,t,n,r,i,a,o){return Kr(e+(n^(t|~r))+i+a|0,o)+t|0}var ei=function(t){T()(r,t);var n=D(r);function r(){var e;return w()(this,r),(e=n.call(this,64,56,"le"))._a=1732584193,e._b=4023233417,e._c=2562383102,e._d=271733878,e._m=new Array(16),e}return x()(r,[{key:"_update",value:function(e){for(var t=this._m,n=0;n<16;++n)t[n]=e.readInt32LE(4*n);var r=this._a,i=this._b,a=this._c,o=this._d;r=Yr(r,i,a,o,t[0],3614090360,7),o=Yr(o,r,i,a,t[1],3905402710,12),a=Yr(a,o,r,i,t[2],606105819,17),i=Yr(i,a,o,r,t[3],3250441966,22),r=Yr(r,i,a,o,t[4],4118548399,7),o=Yr(o,r,i,a,t[5],1200080426,12),a=Yr(a,o,r,i,t[6],2821735955,17),i=Yr(i,a,o,r,t[7],4249261313,22),r=Yr(r,i,a,o,t[8],1770035416,7),o=Yr(o,r,i,a,t[9],2336552879,12),a=Yr(a,o,r,i,t[10],4294925233,17),i=Yr(i,a,o,r,t[11],2304563134,22),r=Yr(r,i,a,o,t[12],1804603682,7),o=Yr(o,r,i,a,t[13],4254626195,12),a=Yr(a,o,r,i,t[14],2792965006,17),r=Xr(r,i=Yr(i,a,o,r,t[15],1236535329,22),a,o,t[1],4129170786,5),o=Xr(o,r,i,a,t[6],3225465664,9),a=Xr(a,o,r,i,t[11],643717713,14),i=Xr(i,a,o,r,t[0],3921069994,20),r=Xr(r,i,a,o,t[5],3593408605,5),o=Xr(o,r,i,a,t[10],38016083,9),a=Xr(a,o,r,i,t[15],3634488961,14),i=Xr(i,a,o,r,t[4],3889429448,20),r=Xr(r,i,a,o,t[9],568446438,5),o=Xr(o,r,i,a,t[14],3275163606,9),a=Xr(a,o,r,i,t[3],4107603335,14),i=Xr(i,a,o,r,t[8],1163531501,20),r=Xr(r,i,a,o,t[13],2850285829,5),o=Xr(o,r,i,a,t[2],4243563512,9),a=Xr(a,o,r,i,t[7],1735328473,14),r=$r(r,i=Xr(i,a,o,r,t[12],2368359562,20),a,o,t[5],4294588738,4),o=$r(o,r,i,a,t[8],2272392833,11),a=$r(a,o,r,i,t[11],1839030562,16),i=$r(i,a,o,r,t[14],4259657740,23),r=$r(r,i,a,o,t[1],2763975236,4),o=$r(o,r,i,a,t[4],1272893353,11),a=$r(a,o,r,i,t[7],4139469664,16),i=$r(i,a,o,r,t[10],3200236656,23),r=$r(r,i,a,o,t[13],681279174,4),o=$r(o,r,i,a,t[0],3936430074,11),a=$r(a,o,r,i,t[3],3572445317,16),i=$r(i,a,o,r,t[6],76029189,23),r=$r(r,i,a,o,t[9],3654602809,4),o=$r(o,r,i,a,t[12],3873151461,11),a=$r(a,o,r,i,t[15],530742520,16),r=Zr(r,i=$r(i,a,o,r,t[2],3299628645,23),a,o,t[0],4096336452,6),o=Zr(o,r,i,a,t[7],1126891415,10),a=Zr(a,o,r,i,t[14],2878612391,15),i=Zr(i,a,o,r,t[5],4237533241,21),r=Zr(r,i,a,o,t[12],1700485571,6),o=Zr(o,r,i,a,t[3],2399980690,10),a=Zr(a,o,r,i,t[10],4293915773,15),i=Zr(i,a,o,r,t[1],2240044497,21),r=Zr(r,i,a,o,t[8],1873313359,6),o=Zr(o,r,i,a,t[15],4264355552,10),a=Zr(a,o,r,i,t[6],2734768916,15),i=Zr(i,a,o,r,t[13],1309151649,21),r=Zr(r,i,a,o,t[4],4149444226,6),o=Zr(o,r,i,a,t[11],3174756917,10),a=Zr(a,o,r,i,t[2],718787259,15),i=Zr(i,a,o,r,t[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+i|0,this._c=this._c+a|0,this._d=this._d+o|0}},{key:"_hash",value:function(){var t=e.allocUnsafe(16);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t}}]),r}(Qr),ti=[1518500249,1859775393,-1894007588,-899497514];function ni(e){return e<<5|e>>>27}function ri(e){return e<<30|e>>>2}function ii(e,t,n,r){return 0===e?t&n|~t&r:2===e?t&n|t&r|n&r:t^n^r}var ai=function(t){T()(r,t);var n=D(r);function r(){var e;return w()(this,r),(e=n.call(this,64,56))._a=1732584193,e._b=4023233417,e._c=2562383102,e._d=271733878,e._e=3285377520,e._w=new Array(80),e}return x()(r,[{key:"_update",value:function(e){var t,n,r=this._w,i=0|this._a,a=0|this._b,o=0|this._c,s=0|this._d,c=0|this._e;for(t=0;t<16;++t)r[t]=e.readInt32BE(4*t);for(;t<80;++t)r[t]=(n=r[t-3]^r[t-8]^r[t-14]^r[t-16])<<1|n>>>31;for(var u=0;u<80;++u){var l=~~(u/20),f=ni(i)+ii(l,a,o,s)+c+r[u]+ti[l]|0;c=s,s=o,o=ri(a),a=i,i=f}this._a=i+this._a|0,this._b=a+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0}},{key:"_hash",value:function(){var t=e.allocUnsafe(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t}}]),r}(Qr),oi=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function si(e,t,n){return n^e&(t^n)}function ci(e,t,n){return e&t|n&(e|t)}function ui(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function li(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function fi(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}var pi=function(t){T()(r,t);var n=D(r);function r(){var e;return w()(this,r),(e=n.call(this,64,56))._a=1779033703,e._b=3144134277,e._c=1013904242,e._d=2773480762,e._e=1359893119,e._f=2600822924,e._g=528734635,e._h=1541459225,e._w=new Array(64),e}return x()(r,[{key:"_update",value:function(e){var t,n,r=this._w,i=0|this._a,a=0|this._b,o=0|this._c,s=0|this._d,c=0|this._e,u=0|this._f,l=0|this._g,f=0|this._h;for(t=0;t<16;++t)r[t]=e.readInt32BE(4*t);for(;t<64;++t)r[t]=0|(((n=r[t-2])>>>17|n<<15)^(n>>>19|n<<13)^n>>>10)+r[t-7]+fi(r[t-15])+r[t-16];for(var p=0;p<64;++p){var d=f+li(c)+si(c,u,l)+oi[p]+r[p]|0,h=ui(i)+ci(i,a,o)|0;f=l,l=u,u=c,c=s+d|0,s=o,o=a,a=i,i=d+h|0}this._a=i+this._a|0,this._b=a+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0,this._f=u+this._f|0,this._g=l+this._g|0,this._h=f+this._h|0}},{key:"_hash",value:function(){var t=e.allocUnsafe(32);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t.writeInt32BE(this._h,28),t}}]),r}(Qr),di=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function hi(e,t,n){return n^e&(t^n)}function vi(e,t,n){return e&t|n&(e|t)}function mi(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function gi(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function yi(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function bi(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function _i(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function wi(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function Si(e,t){return e>>>0<t>>>0?1:0}var xi=function(t){T()(r,t);var n=D(r);function r(){var e;return w()(this,r),(e=n.call(this,128,112))._ah=1779033703,e._bh=3144134277,e._ch=1013904242,e._dh=2773480762,e._eh=1359893119,e._fh=2600822924,e._gh=528734635,e._hh=1541459225,e._al=4089235720,e._bl=2227873595,e._cl=4271175723,e._dl=1595750129,e._el=2917565137,e._fl=725511199,e._gl=4215389547,e._hl=327033209,e._w=new Array(160),e}return x()(r,[{key:"_update",value:function(e){var t,n,r=this._w,i=0|this._ah,a=0|this._bh,o=0|this._ch,s=0|this._dh,c=0|this._eh,u=0|this._fh,l=0|this._gh,f=0|this._hh,p=0|this._al,d=0|this._bl,h=0|this._cl,v=0|this._dl,m=0|this._el,g=0|this._fl,y=0|this._gl,b=0|this._hl,_=0;for(_=0;_<32;_+=2)r[_]=e.readInt32BE(4*_),r[_+1]=e.readInt32BE(4*_+4);for(;_<160;_+=2){var w=r[_-30],S=r[_-30+1],x=yi(w,S),k=bi(S,w),T=_i(w=r[_-4],S=r[_-4+1]),j=wi(S,w),E=r[_-14],I=r[_-14+1],O=r[_-32],A=r[_-32+1];t=(t=(t=x+E+Si(n=k+I|0,k)|0)+T+Si(n=n+j|0,j)|0)+O+Si(n=n+A|0,A)|0,r[_]=t,r[_+1]=n}for(var R=0;R<160;R+=2){t=r[R],n=r[R+1];var N=vi(i,a,o),C=vi(p,d,h),P=mi(i,p),L=mi(p,i),q=gi(c,m),F=gi(m,c),M=di[R],D=di[R+1],B=hi(c,u,l),U=hi(m,g,y),z=b+F|0,J=f+q+Si(z,b)|0;J=(J=(J=J+B+Si(z=z+U|0,U)|0)+M+Si(z=z+D|0,D)|0)+t+Si(z=z+n|0,n)|0;var G=L+C|0,V=P+N+Si(G,L)|0;f=l,b=y,l=u,y=g,u=c,g=m,c=s+J+Si(m=v+z|0,v)|0,s=o,v=h,o=a,h=d,a=i,d=p,i=J+V+Si(p=z+G|0,z)|0}this._al=this._al+p|0,this._bl=this._bl+d|0,this._cl=this._cl+h|0,this._dl=this._dl+v|0,this._el=this._el+m|0,this._fl=this._fl+g|0,this._gl=this._gl+y|0,this._hl=this._hl+b|0,this._ah=this._ah+i+Si(this._al,p)|0,this._bh=this._bh+a+Si(this._bl,d)|0,this._ch=this._ch+o+Si(this._cl,h)|0,this._dh=this._dh+s+Si(this._dl,v)|0,this._eh=this._eh+c+Si(this._el,m)|0,this._fh=this._fh+u+Si(this._fl,g)|0,this._gh=this._gh+l+Si(this._gl,y)|0,this._hh=this._hh+f+Si(this._hl,b)|0}},{key:"_hash",value:function(){var t=e.allocUnsafe(64);function n(e,n,r){t.writeInt32BE(e,r),t.writeInt32BE(n,r+4)}return n(this._ah,this._al,0),n(this._bh,this._bl,8),n(this._ch,this._cl,16),n(this._dh,this._dl,24),n(this._eh,this._el,32),n(this._fh,this._fl,40),n(this._gh,this._gl,48),n(this._hh,this._hl,56),t}}]),r}(Qr),ki=new Map([["md5",ei],["sha-1",ai],["sha-256",pi],["sha-512",xi],["sha1",ai],["sha256",pi],["sha512",xi]]);function Ti(e){e=e.toLowerCase();var t=ki.get(e);if(t)return new t;throw new Error("Unsupported hash algorithm: "+e)}var ji,Ei=e.alloc(128),Ii=function(t){T()(r,t);var n=D(r);function r(t,i){var a;w()(this,r),a=n.call(this),"string"==typeof i&&(i=e.from(i));var o="sha512"===t?128:64;a._alg=t,i.length>o?i=Ti(t).update(i).digest():i.length<o&&(i=e.concat([i,Ei],o)),a._ipad=e.alloc(o),a._opad=e.alloc(o);for(var s=0;s<o;s++)a._ipad[s]=54^i[s],a._opad[s]=92^i[s];return a._hash=Ti(t).update(a._ipad),a}return x()(r,[{key:"_transform",value:function(e,t,n){var r;try{this.update(e,t)}catch(e){r=e}finally{n(r)}}},{key:"_flush",value:function(e){var t;try{this.push(this._final())}catch(e){t=e}e(t)}},{key:"_final",value:function(){var e=this._hash.digest();return Ti(this._alg).update(this._opad).update(e).digest()}},{key:"update",value:function(e,t){return this._hash.update(e,t),this}},{key:"digest",value:function(t){var n=this._final()||e.alloc(0);return t?n.toString(t):n}}]),r}(L.Transform);function Oi(t){var n=new Uint8Array(t);return t>0&&(ji.crypto||ji.msCrypto).getRandomValues(n),e.from(n.buffer)}"undefined"!=typeof window?ji=window:void 0!==r&&(ji=r);var Ai=fetch,Ri=WebSocket,Ni=ji.RTCPeerConnection,Ci=function(){function e(t){w()(this,e),this.authenticated=!1,this.mutuallyAuthenticated=!1,this.name=t}return x()(e,[{key:"getCacheableCredentials",value:function(){return null}},{key:"processChallenge",value:function(e){}},{key:"processSuccess",value:function(e){this.authenticated=!0}},{key:"finalize",value:function(){var e={authenticated:this.authenticated,mutuallyAuthenticated:this.mutuallyAuthenticated};return this.errorData&&(e.errorData=this.errorData),e}}]),e}(),Pi=function(){function e(){w()(this,e),this.mechanisms=[]}return x()(e,[{key:"register",value:function(e,t,n){this.mechanisms.push({constructor:t,name:e.toUpperCase(),priority:n}),this.mechanisms.sort((function(e,t){return t.priority-e.priority}))}},{key:"disable",value:function(e){var t=e.toUpperCase();this.mechanisms=this.mechanisms.filter((function(e){return e.name!==t}))}},{key:"createMechanism",value:function(e){var t,n=e.map((function(e){return e.toUpperCase()})),r=F(this.mechanisms);try{for(r.s();!(t=r.n()).done;){var i,a=t.value,o=F(n);try{for(o.s();!(i=o.n()).done;){if(i.value===a.name)return new a.constructor(a.name)}}catch(e){o.e(e)}finally{o.f()}}}catch(e){r.e(e)}finally{r.f()}return null}}]),e}();function Li(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32;return Oi(e).toString("hex")}function qi(t,n){for(var r=[],i=0;i<t.length;i++)r.push(t[i]^n[i]);return e.from(r)}function Fi(e,t){return Ti(t).update(e).digest()}function Mi(e,t,n){return function(e,t){return new Ii(e.toLowerCase(),t)}(n,e).update(t).digest()}function Di(t,n,r,i){for(var a=Mi(t,e.concat([n,e.from("00000001","hex")]),i),o=a,s=0;s<r-1;s++)o=qi(o,a=Mi(t,a,i));return o}function Bi(e){for(var t={},n=e.toString().split(/,(?=(?:[^"]|"[^"]*")*$)/),r=0,i=n.length;r<i;r++){var a=/(\w+)=["]?([^"]+)["]?$/.exec(n[r]);a&&(t[a[1]]=a[2])}return t}function Ui(e){var t,n=[],r=F(e);try{for(r.s();!(t=r.n()).done;){var i=t.value;","===i?n.push("=2C"):"="===i?n.push("=3D"):n.push(i)}}catch(e){r.e(e)}finally{r.f()}return n.join("")}var zi=function(t){T()(r,t);var n=D(r);function r(){return w()(this,r),n.apply(this,arguments)}return x()(r,[{key:"getExpectedCredentials",value:function(){return{optional:["trace"],required:[]}}},{key:"createResponse",value:function(t){return e.from(t.trace||"")}}]),r}(Ci),Ji=function(t){T()(r,t);var n=D(r);function r(){return w()(this,r),n.apply(this,arguments)}return x()(r,[{key:"getExpectedCredentials",value:function(){return{optional:["authzid"],required:[]}}},{key:"createResponse",value:function(t){return e.from(t.authzid||"")}}]),r}(Ci),Gi=function(t){T()(r,t);var n=D(r);function r(){return w()(this,r),n.apply(this,arguments)}return x()(r,[{key:"getExpectedCredentials",value:function(){return{optional:["authzid"],required:["username","password"]}}},{key:"createResponse",value:function(t){return e.from((t.authzid||"")+"\0"+t.username+"\0"+(t.password||t.token))}}]),r}(Ci),Vi=function(t){T()(r,t);var n=D(r);function r(e){var t;return w()(this,r),(t=n.call(this,e)).failed=!1,t.name=e,t}return x()(r,[{key:"getExpectedCredentials",value:function(){return{optional:["authzid"],required:["token"]}}},{key:"createResponse",value:function(t){if(this.failed)return e.from("");var n="n,".concat(Ui(de(t.authzid)),","),r="auth=Bearer ".concat(t.token,"");return e.from(n+""+r+"","utf8")}},{key:"processChallenge",value:function(e){this.failed=!0,this.errorData=JSON.parse(e.toString("utf8"))}}]),r}(Ci),Hi=function(t){T()(r,t);var n=D(r);function r(e){var t;return w()(this,r),(t=n.call(this,e)).providesMutualAuthentication=!1,t.state="INITIAL",t.name=e,t}return x()(r,[{key:"processChallenge",value:function(e){this.state="CHALLENGE";var t=Bi(e);this.authenticated=!!t.rspauth,this.realm=t.realm,this.nonce=t.nonce,this.charset=t.charset}},{key:"getExpectedCredentials",value:function(){return{optional:["authzid","clientNonce","realm"],required:["host","password","serviceName","serviceType","username"]}}},{key:"createResponse",value:function(t){if("INITIAL"===this.state||this.authenticated)return null;var n=t.serviceType+"/"+t.host;t.serviceName&&t.host!==t.serviceName&&(n+="/"+t.serviceName);var r=t.realm||this.realm||"",i=t.clientNonce||Li(16),a="00000001",o="";o+='username="'+t.username+'"',r&&(o+=',realm="'+r+'"'),o+=',nonce="'+this.nonce+'"',o+=',cnonce="'+i+'"',o+=",nc="+a,o+=",qop=auth",o+=',digest-uri="'+n+'"';var s=Ti("md5").update(t.username).update(":").update(r).update(":").update(t.password).digest(),c=Ti("md5").update(s).update(":").update(this.nonce).update(":").update(i);t.authzid&&c.update(":").update(t.authzid);var u=c.digest("hex"),l=Ti("md5").update("AUTHENTICATE:").update(n).digest("hex");return o+=",response="+Ti("md5").update(u).update(":").update(this.nonce).update(":").update(a).update(":").update(i).update(":").update("auth").update(":").update(l).digest("hex"),"utf-8"===this.charset&&(o+=",charset=utf-8"),t.authzid&&(o+=',authzid="'+t.authzid+'"'),e.from(o)}}]),r}(Ci),Wi=function(){function t(e){w()(this,t),this.providesMutualAuthentication=!0,this.name=e,this.state="INITIAL",this.useChannelBinding=this.name.toLowerCase().endsWith("-plus"),this.algorithm=this.name.toLowerCase().split("scram-")[1].split("-plus")[0]}return x()(t,[{key:"getExpectedCredentials",value:function(){var e=["username","password"];return this.useChannelBinding&&e.push("tlsUnique"),{optional:["authzid","clientNonce"],required:e}}},{key:"getCacheableCredentials",value:function(){return this.cache}},{key:"createResponse",value:function(e){return"INITIAL"===this.state?this.initialResponse(e):this.challengeResponse(e)}},{key:"processChallenge",value:function(t){var n=Bi(t);this.salt=e.from(n.s||"","base64"),this.iterationCount=parseInt(n.i,10),this.nonce=n.r,this.verifier=n.v,this.error=n.e,this.challenge=t}},{key:"processSuccess",value:function(e){this.processChallenge(e)}},{key:"finalize",value:function(){return this.verifier?this.serverSignature.toString("base64")!==this.verifier?{authenticated:!1,error:"Mutual authentication failed",mutuallyAuthenticated:!1}:{authenticated:!0,mutuallyAuthenticated:!0}:{authenticated:!1,error:this.error,mutuallyAuthenticated:!1}}},{key:"initialResponse",value:function(t){var n=Ui(de(t.authzid)),r=Ui(de(t.username));this.clientNonce=t.clientNonce||Li();var i="n";t.tlsUnique&&(i=this.useChannelBinding?"p=tls-unique":"y"),this.gs2Header=e.from(n?"".concat(i,",a=").concat(n,","):"".concat(i,",,")),this.clientFirstMessageBare=e.from("n=".concat(r,",r=").concat(this.clientNonce));var a=e.concat([this.gs2Header,this.clientFirstMessageBare]);return this.state="CHALLENGE",a}},{key:"challengeResponse",value:function(t){var n,r,i,a=e.from("Client Key"),o=e.from("Server Key"),s=e.concat([this.gs2Header,t.tlsUnique||e.from("")]).toString("base64"),c=e.from("c=".concat(s,",r=").concat(this.nonce)),u=t.salt&&0===e.compare(t.salt,this.salt);u&&t.clientKey&&t.serverKey?(r=e.from(t.clientKey),i=e.from(t.serverKey)):u&&t.saltedPassword?(r=Mi(n=e.from(t.saltedPassword),a,this.algorithm),i=Mi(n,o,this.algorithm)):(r=Mi(n=Di(e.from(de(t.password)),this.salt,this.iterationCount,this.algorithm),a,this.algorithm),i=Mi(n,o,this.algorithm));var l=Fi(r,this.algorithm),f=e.from(","),p=e.concat([this.clientFirstMessageBare,f,this.challenge,f,c]),d=qi(r,Mi(l,p,this.algorithm)).toString("base64");this.serverSignature=Mi(i,p,this.algorithm);var h=e.concat([c,e.from(",p=".concat(d))]);return this.state="FINAL",this.cache={clientKey:r,salt:this.salt,saltedPassword:n,serverKey:i},h}}]),t}(),Qi=Object.freeze({__proto__:null,SimpleMech:Ci,Factory:Pi,createClientNonce:Li,XOR:qi,H:Fi,HMAC:Mi,Hi:Di,ANONYMOUS:zi,EXTERNAL:Ji,PLAIN:Gi,OAUTH:Vi,DIGEST:Hi,SCRAM:Wi});function Ki(e){var t=this;e.getAccountInfo=function(n){return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){var r;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.sendIQ({account:{},to:n,type:"get"});case 2:return r=t.sent,t.abrupt("return",r.account);case 4:case"end":return t.stop()}}),t)})))},e.updateAccount=function(t,n){return e.sendIQ({account:n,to:t,type:"set"})},e.deleteAccount=function(t){return e.sendIQ({account:{remove:!0},to:t,type:"set"})},e.getPrivateData=function(n){return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){var r;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.sendIQ({privateStorage:u()({},n,{}),type:"get"});case 2:return r=t.sent,t.abrupt("return",r.privateStorage[n]);case 4:case"end":return t.stop()}}),t)})))},e.setPrivateData=function(n,r){return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e.sendIQ({privateStorage:u()({},n,r),type:"set"}));case 1:case"end":return t.stop()}}),t)})))},e.getVCard=function(n){return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){var r;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.sendIQ({to:n,type:"get",vcard:{format:"vcard-temp"}});case 2:return r=t.sent,t.abrupt("return",r.vcard);case 4:case"end":return t.stop()}}),t)})))},e.publishVCard=function(n){return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.sendIQ({type:"set",vcard:n});case 2:case"end":return t.stop()}}),t)})))},e.enableNotifications=function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return e.sendIQ({push:{action:"enable",form:{fields:[{name:"FORM_TYPE",type:"hidden",value:"http://jabber.org/protocol/pubsub#publish-options"}].concat(d()(r)),type:"submit"},jid:t,node:n},type:"set"})},e.disableNotifications=function(t,n){return e.sendIQ({push:{action:"disable",jid:t,node:n},type:"set"})}}function Yi(e){e.disco.addFeature(ir(Wn)),e.on("pubsub:published",(function(t){if(t.pubsub.items.node===Wn){var n=t.pubsub.items.published[0].content;e.emit("avatar",{avatars:n.versions||[],jid:t.from,source:"pubsub"})}})),e.on("presence",(function(t){t.vcardAvatar&&"string"==typeof t.vcardAvatar&&e.emit("avatar",{avatars:[{id:t.vcardAvatar}],jid:t.from,source:"vcard"})})),e.publishAvatar=function(t,n){return e.publish("",Hn,{data:n,itemType:Hn},t)},e.useAvatars=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.publish("",Wn,{itemType:Wn,pointers:n,versions:t},"current")},e.getAvatar=function(t,n){return e.getItem(t,Hn,n)}}function Xi(e){var t=this;e.registerFeature("bind",300,(function(n,r){return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){var i,a;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.sendIQ({bind:{resource:e.config.resource},type:"set"});case 3:return i=t.sent,e.features.negotiated.bind=!0,e.emit("session:prebind",i.bind.jid),a=!n.legacySession||n.legacySession&&n.legacySession.optional,!e.sessionStarted&&a&&e.emit("session:started",e.jid),t.abrupt("return",r());case 11:return t.prev=11,t.t0=t.catch(0),console.error(t.t0),t.abrupt("return",r("disconnect","JID binding failed"));case 15:case"end":return t.stop()}}),t,null,[[0,11]])})))})),e.registerFeature("legacySession",1e3,(function(n,r){return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(e.sessionStarted||n.legacySession&&n.legacySession.optional)){t.next=3;break}return e.features.negotiated.session=!0,t.abrupt("return",r());case 3:return t.prev=3,t.next=6,e.sendIQ({legacySession:!0,type:"set"});case 6:return e.features.negotiated.session=!0,e.sessionStarted||(e.sessionStarted=!0,e.emit("session:started",e.jid)),t.abrupt("return",r());case 11:return t.prev=11,t.t0=t.catch(3),t.abrupt("return",r("disconnect","Session requeset failed"));case 14:case"end":return t.stop()}}),t,null,[[3,11]])})))})),e.on("session:started",(function(){e.sessionStarted=!0})),e.on("session:prebind",(function(t){e.jid=t,e.emit("session:bound",e.jid)})),e.on("--reset-stream-features",(function(){e.sessionStarted=!1,e.features.negotiated.bind=!1,e.features.negotiated.session=!1}))}function $i(e){e.disco.addFeature(Ln),e.disco.addItem({name:"Ad-Hoc Commands",node:Ln}),e.getCommands=function(t){return e.getDiscoItems(t,Ln)}}for(var Zi=[],ea=0;ea<256;++ea)Zi[ea]=(ea+256).toString(16).substr(1);function ta(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};return Object(A.__awaiter)(this,void 0,void 0,b.a.mark((function r(){var i,a;return b.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,Promise.race([e,new Promise((function(e,r){i=setTimeout((function(){return r(n())}),t)}))]);case 2:return a=r.sent,clearTimeout(i),r.abrupt("return",a);case 5:case"end":return r.stop()}}),r)})))}function na(e){return Object(A.__awaiter)(this,void 0,void 0,b.a.mark((function t(){return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t){setTimeout((function(){return t()}),e)})));case 1:case"end":return t.stop()}}),t)})))}function ra(t,n){var r="string"==typeof t?e.from(t,"utf8"):t,i="string"==typeof n?e.from(n,"utf8"):n;return r.compare(i)}function ia(){var e=Oi(16);e[6]=15&e[6]|64,e[8]=63&e[8]|128;var t=0;return[Zi[e[t++]],Zi[e[t++]],Zi[e[t++]],Zi[e[t++]],"-",Zi[e[t++]],Zi[e[t++]],"-",Zi[e[t++]],Zi[e[t++]],"-",Zi[e[t++]],Zi[e[t++]],"-",Zi[e[t++]],Zi[e[t++]],Zi[e[t++]],Zi[e[t++]],Zi[e[t++]],Zi[e[15]]].join("")}var aa=new Set(["date","expires","httpUploadRetry","idleSince","published","since","stamp","timestamp","updated","utc"]),oa=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)(?:Z|((\+|-)([\d|:]*)))?$/;var sa=Object.freeze({__proto__:null,timeoutPromise:ta,sleep:na,octetCompare:ra,uuid:ia,reviveData:function(t,n){return aa.has(t)&&n&&"string"==typeof n&&oa.test(n)?new Date(n):n&&"object"===f()(n)&&"Buffer"===n.type&&Array.isArray(n.data)?e.from(n):n}});function ca(e){return Object(A.__awaiter)(this,void 0,void 0,b.a.mark((function t(){return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.sm.started){t.next=2;break}return t.abrupt("return",new Promise((function(t){e.once("stream:management:ack",(function(){return t()})),e.sm.request()})));case 2:return t.prev=2,t.next=5,e.ping();case 5:t.next=14;break;case 7:if(t.prev=7,t.t0=t.catch(2),!t.t0.error||"timeout"===t.t0.error.condition){t.next=13;break}return t.abrupt("return");case 13:throw t.t0;case 14:case"end":return t.stop()}}),t,null,[[2,7]])})))}function ua(e,t){e.features.negotiated.clientStateIndication&&e.send("csi",{type:t})}function la(e){var t=this;e.disco.addFeature("urn:xmpp:ping"),e.on("iq:get:ping",(function(t){e.sendIQResult(t)})),e.on("--reset-stream-features",(function(){e._stopKeepAliveInterval(),e.features.negotiated.streamManagement=!1,e.features.negotiated.clientStateIndication=!1})),e.markActive=function(){return ua(e,"active")},e.markInactive=function(){return ua(e,"inactive")},e.ping=function(n){return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.sendIQ({ping:!0,to:n,type:"get"});case 2:case"end":return t.stop()}}),t)})))},e.enableKeepAlive=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e._keepAliveOptions=t;var n=t.interval||300,r=t.timeout||e.config.timeout||15;function i(){return Object(A.__awaiter)(this,void 0,void 0,b.a.mark((function t(){return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.sessionStarted){t.next=10;break}return t.prev=1,t.next=4,ta(ca(e),1e3*r);case 4:t.next=10;break;case 6:t.prev=6,t.t0=t.catch(1),e.emit("stream:error",{condition:"connection-timeout",text:"Server did not respond in "+r+" seconds"}),e.transport&&(e.transport.hasStream=!1,e.transport.disconnect(!1));case 10:case"end":return t.stop()}}),t,null,[[1,6]])})))}clearInterval(e._keepAliveInterval),e._keepAliveInterval=setInterval(i,1e3*n)},e._stopKeepAliveInterval=function(){e._keepAliveInterval&&(clearInterval(e._keepAliveInterval),delete e._keepAliveInterval)},e.disableKeepAlive=function(){delete e._keepAliveOptions,e._stopKeepAliveInterval()},e.on("stream:management:resumed",(function(){e._keepAliveOptions&&e.enableKeepAlive(e._keepAliveOptions)})),e.on("stream:start",(function(){e._keepAliveOptions&&e.enableKeepAlive(e._keepAliveOptions)}));var n=function(n,r){return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){var n,i=this;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.config.useStreamManagement){t.next=2;break}return t.abrupt("return",r());case 2:if(n=function t(n){return Object(A.__awaiter)(i,void 0,void 0,b.a.mark((function i(){return b.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:i.t0=n.type,i.next="enabled"===i.t0?3:"resumed"===i.t0?8:"failed"===i.t0?17:22;break;case 3:return i.next=5,e.sm.enabled(n);case 5:return e.features.negotiated.streamManagement=!0,e.off("sm",t),i.abrupt("return",r());case 8:return i.next=10,e.sm.resumed(n);case 10:return e.features.negotiated.streamManagement=!0,e.features.negotiated.bind=!0,e.sessionStarted=!0,e.sessionStarting=!1,e.off("sm",t),e.emit("stream:management:resumed",n),i.abrupt("return",r("break"));case 17:return i.next=19,e.sm.failed(n);case 19:e.off("sm",t),e.emit("session:end"),r();case 22:case"end":return i.stop()}}),i)})))},e.on("sm",n),e.sm.id){t.next=14;break}if(!e.features.negotiated.bind){t.next=10;break}return t.next=8,e.sm.enable();case 8:t.next=12;break;case 10:e.off("sm",n),r();case 12:t.next=21;break;case 14:if(!e.sm.id||!e.sm.allowResume){t.next=19;break}return t.next=17,e.sm.resume();case 17:t.next=21;break;case 19:e.off("sm",n),r();case 21:case"end":return t.stop()}}),t)})))};e.registerFeature("streamManagement",200,n),e.registerFeature("streamManagement",500,n),e.registerFeature("clientStateIndication",400,(function(t,n){e.features.negotiated.clientStateIndication=!0,n()}))}function fa(t){return e.from(t.replace(/</g,"&lt;"),"utf-8")}function pa(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=[],r=F(t);try{for(r.s();!(e=r.n()).done;){var i=e.value;"FORM_TYPE"!==i.name&&(i.rawValues?n.push({name:fa(i.name),values:i.rawValues.map((function(e){return fa(e)})).sort(ra)}):Array.isArray(i.value)?n.push({name:fa(i.name),values:i.value.map((function(e){return fa(e)})).sort(ra)}):!0===i.value||!1===i.value?n.push({name:fa(i.name),values:[fa(i.value?"1":"0")]}):n.push({name:fa(i.name),values:[fa(i.value||"")]}))}}catch(e){r.e(e)}finally{r.f()}n.sort((function(e,t){return ra(e.name,t.name)}));for(var a=[],o=0,s=n;o<s.length;o++){var c=s[o];a.push(c.name);var u,l=F(c.values);try{for(l.s();!(u=l.n()).done;){var f=u.value;a.push(f)}}catch(e){l.e(e)}finally{l.f()}}return a}function da(t,n){var r=[],i=e.from("<","utf8"),a=function(e){r.push(e),r.push(i)},o=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=[],r=new Set,i=F(t);try{for(i.s();!(e=i.n()).done;){var a=e.value,o=a.category,s=a.type,c=a.lang,u=a.name,l="".concat(o,"/").concat(s,"/").concat(c||"","/").concat(u||"");if(r.has(l))return null;r.add(l),n.push(fa(l))}}catch(e){i.e(e)}finally{i.f()}return n.sort(ra),n}(t.identities),s=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=[],r=new Set,i=F(t);try{for(i.s();!(e=i.n()).done;){var a=e.value;if(r.has(a))return null;r.add(a),n.push(fa(a))}}catch(e){i.e(e)}finally{i.f()}return n.sort(ra),n}(t.features),c=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=[],r=new Set,i=F(t);try{for(i.s();!(e=i.n()).done;){var a,o=e.value,s=void 0,c=F(o.fields||[]);try{for(c.s();!(a=c.n()).done;){var u=a.value;if("FORM_TYPE"===u.name&&"hidden"===u.type){if(u.rawValues&&1===u.rawValues.length){s=fa(u.rawValues[0]);break}if(u.value&&"string"==typeof u.value){s=fa(u.value);break}}}}catch(e){c.e(e)}finally{c.f()}if(s){if(r.has(s.toString()))return null;r.add(s.toString()),n.push({type:s,form:o})}}}catch(e){i.e(e)}finally{i.f()}n.sort((function(e,t){return ra(e.type,t.type)}));for(var l=[],f=0,p=n;f<p.length;f++){var d=p[f];l.push(d.type);var h,v=pa(d.form.fields),m=F(v);try{for(m.s();!(h=m.n()).done;){var g=h.value;l.push(g)}}catch(e){m.e(e)}finally{m.f()}}return l}(t.extensions);if(!o||!s||!c)return null;var u,l=F(o);try{for(l.s();!(u=l.n()).done;){a(u.value)}}catch(e){l.e(e)}finally{l.f()}var f,p=F(s);try{for(p.s();!(f=p.n()).done;){a(f.value)}}catch(e){p.e(e)}finally{p.f()}var d,h=F(c);try{for(h.s();!(d=h.n()).done;){a(d.value)}}catch(e){h.e(e)}finally{h.f()}return Ti(n).update(e.concat(r)).digest("base64")}var ha=function(){function e(){w()(this,e),this.capsAlgorithms=["sha-1"],this.features=new Map,this.identities=new Map,this.extensions=new Map,this.items=new Map,this.caps=new Map,this.features.set("",new Set),this.identities.set("",[]),this.extensions.set("",[])}return x()(e,[{key:"getNodeInfo",value:function(e){return{extensions:d()(this.extensions.get(e)||[]),features:d()(this.features.get(e)||[]),identities:d()(this.identities.get(e)||[])}}},{key:"addFeature",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.features.has(t)||this.features.set(t,new Set),this.features.get(t).add(e)}},{key:"addIdentity",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.identities.has(t)||this.identities.set(t,[]),this.identities.get(t).push(e)}},{key:"addItem",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.items.has(t)||this.items.set(t,[]),this.items.get(t).push(e)}},{key:"addExtension",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.extensions.has(t)||this.extensions.set(t,[]),this.extensions.get(t).push(e)}},{key:"updateCaps",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.capsAlgorithms,r={extensions:d()(this.extensions.get("")),features:d()(this.features.get("")),identities:d()(this.identities.get("")),type:"info"},i=F(n);try{for(i.s();!(t=i.n()).done;){var a=t.value,o=da(r,a);if(o){this.caps.set(a,{algorithm:a,node:e,value:o});var s,c="".concat(e,"#").concat(o),u=F(r.features);try{for(u.s();!(s=u.n()).done;){var l=s.value;this.addFeature(l,c)}}catch(e){u.e(e)}finally{u.f()}var f,p=F(r.identities);try{for(p.s();!(f=p.n()).done;){var h=f.value;this.addIdentity(h,c)}}catch(e){p.e(e)}finally{p.f()}var v,m=F(r.extensions);try{for(m.s();!(v=m.n()).done;){var g=v.value;this.addExtension(g,c)}}catch(e){m.e(e)}finally{m.f()}this.identities.set(c,r.identities),this.features.set(c,new Set(r.features)),this.extensions.set(c,r.extensions)}else this.caps.delete(a)}}catch(e){i.e(e)}finally{i.f()}return d()(this.caps.values())}},{key:"getCaps",value:function(){return d()(this.caps.values())}}]),e}();function va(e){var t=this;e.disco=new ha,e.disco.addFeature(En),e.disco.addFeature(In),e.disco.addIdentity({category:"client",type:"web"}),e.registerFeature("caps",100,(function(t,n){var r=xe(e.jid)||e.config.server;e.emit("disco:caps",{caps:t.legacyCapabilities||[],jid:r}),e.features.negotiated.caps=!0,n()})),e.getDiscoInfo=function(n,r){return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){var i;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.sendIQ({disco:{node:r,type:"info"},to:n,type:"get"});case 2:return i=t.sent,t.abrupt("return",Object.assign({extensions:[],features:[],identities:[]},i.disco));case 4:case"end":return t.stop()}}),t)})))},e.getDiscoItems=function(n,r){return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){var i;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.sendIQ({disco:{node:r,type:"items"},to:n,type:"get"});case 2:return i=t.sent,t.abrupt("return",Object.assign({items:[]},i.disco));case 4:case"end":return t.stop()}}),t)})))},e.updateCaps=function(){var t=e.config.capsNode||"https://stanzajs.org";return e.disco.updateCaps(t)},e.getCurrentCaps=function(){var t=e.disco.getCaps();if(t){var n="".concat(t[0].node,"#").concat(t[0].value);return{info:e.disco.getNodeInfo(n),legacyCapabilities:t}}},e.on("presence",(function(t){t.legacyCapabilities&&e.emit("disco:caps",{caps:t.legacyCapabilities,jid:t.from})})),e.on("iq:get:disco",(function(t){var n=t.disco,r=n.type,i=n.node;"info"===r&&e.sendIQResult(t,{disco:Object.assign(Object.assign({},e.disco.getNodeInfo(i||"")),{node:i,type:"info"})}),"items"===r&&e.sendIQResult(t,{disco:{items:e.disco.items.get(i||"")||[],type:"items"}})}))}var ma={Bosh:Zn,Client:gn,Component:"jabber:component:accept",Server:"jabber:server"},ga={AccountDisabled:"account-disabled",CredentialsExpired:"credentials-expired",EncryptionRequired:"encryption-required",IncorrectEncoding:"incorrect-encoding",InvalidAuthzid:"invalid-authzid",InvalidMechanism:"invalid-mechanism",MalformedRequest:"malformed-request",MechanismTooWeak:"mechanism-too-weak",NotAuthorized:"not-authorized",TemporaryAuthFailure:"temporary-auth-failure"},ya={BadFormat:"bad-format",BadNamespacePrefix:"bad-namespace-prefix",Conflict:"conflict",ConnectionTimeout:"connection-timeout",HostGone:"host-gone",HostUnknown:"host-unknown",ImproperAddressing:"improper-addressing",InternalServerError:"internal-server-error",InvalidFrom:"invalid-from",InvalidId:"invalid-id",InvalidNamespace:"invalid-namespace",InvalidXML:"invalid-xml",NotAuthorized:"not-authorized",NotWellFormed:"not-well-formed",PolicyViolation:"policy-violation",RemoteConnectionFailed:"remote-connection-failed",Reset:"reset",ResourceConstraint:"resource-constraint",RestrictedXML:"restricted-xml",SeeOtherHost:"see-other-host",SystemShutdown:"system-shutdown",UndefinedCondition:"undefined-condition",UnsupportedEncoding:"unsupported-encoding",UnsupportedStanzaType:"unsupported-stanza-type",UnsupportedVersion:"unsupported-version"},ba={BadRequest:"bad-request",Conflict:"conflict",FeatureNotImplemented:"feature-not-implemented",Forbidden:"forbidden",Gone:"gone",InternalServerError:"internal-server-error",ItemNotFound:"item-not-found",JIDMalformed:"jid-malformed",NotAcceptable:"not-acceptable",NotAllowed:"not-allowed",NotAuthorized:"not-authorized",PolicyViolation:"policy-violation",RecipientUnavailable:"recipient-unavailable",Redirect:"redirect",RegistrationRequired:"registration-required",RemoteServerNotFound:"remote-server-not-found",RemoteServerTimeout:"remote-server-timeout",ResourceConstraint:"resource-constraint",ServiceUnavailable:"service-unavailable",SubscriptionRequired:"subscription-required",UndefinedCondition:"undefined-condition",UnexpectedRequest:"unexpected-request"},_a={Available:void 0,Error:"error",Probe:"probe",Subscribe:"subscribe",Subscribed:"subscribed",Unavailable:"unavailable",Unsubscribe:"unsubscribe",Unsubscribed:"unsubscribed"},wa={Boolean:"boolean",Fixed:"fixed",Hidden:"hidden",JID:"jid-single",JIDMultiple:"jid-multi",List:"list-single",ListMultiple:"list-multi",Password:"text-private",Text:"text-single",TextMultiple:"text-multi",TextPrivate:"text-private"},Sa={AffiliationChanged:"101",AffiliationLost:"321",Banned:"301",Error:"333",Kicked:"307",LoggingDisabled:"171",LoggingEnabled:"170",MembershipLost:"322",NickChanged:"303",NickChangedByService:"210",NonAnonymous:"172",NonAnonymousRoom:"100",NonPrivacyConfigurationChange:"104",RoomCreated:"201",SelfPresence:"110",SemiAnonymous:"173",Shutdown:"332",UnavailableMembersListed:"102",UnavailableMembersNotListed:"103"},xa={ClosedNode:"closed-node",ConfigurationRequired:"configuration-required",InvalidJID:"invalid-jid",InvalidOptions:"invalid-options",InvalidPayload:"invalid-payload",InvalidSubscriptionId:"invalid-subid",ItemForbidden:"item-forbidden",ItemRequired:"item-required",JIDRequired:"jid-required",MaxItemsExceeded:"max-items-exceeded",MaxNodesExceeded:"max-nodes-exceeded",NodeIdRequired:"nodeid-required",NotInRosterGroup:"not-in-roster-group",NotSubscribed:"not-subscribed",PayloadRequired:"payload-required",PayloadTooBig:"payload-too-big",PendingSubscription:"pending-subscription",PresenceSubscriptionRequired:"presence-subscription-required",SubscriptionIdRequired:"subid-required",TooManySubscriptions:"too-many-subscriptions",Unsupported:"unsupported",UnsupportedAccessModel:"unsupported-access-model"},ka={Active:"active",Composing:"composing",Gone:"gone",Inactive:"inactive",Paused:"paused"},Ta={Initiator:"initiator",Responder:"responder"},ja={Inactive:"inactive",Receive:"recvonly",Send:"sendonly",SendReceive:"sendrecv"},Ea={Both:"both",Initiator:"initiator",None:"none",Responder:"responder"},Ia={ContentAccept:"content-accept",ContentAdd:"content-add",ContentModify:"content-modify",ContentReject:"content-reject",ContentRemove:"content-remove",DescriptionInfo:"description-info",SecurityInfo:"security-info",SessionAccept:"session-accept",SessionInfo:"session-info",SessionInitiate:"session-initiate",SessionTerminate:"session-terminate",TransportAccept:"transport-accept",TransportInfo:"transport-info",TransportReject:"transport-reject",TransportReplace:"transport-replace"},Oa={OutOfOrder:"out-of-order",TieBreak:"tie-break",UnknownContent:"unknown-content",UnknownSession:"unknown-session",UnsupportedInfo:"unsupported-info"},Aa={AlternativeSession:"alternative-session",Busy:"busy",Cancel:"cancel",ConnectivityError:"connectivity-error",Decline:"decline",Expired:"expired",FailedApplication:"failed-application",FailedTransport:"failed-transport",GeneralError:"general-error",Gone:"gone",IncompatibleParameters:"incompatible-parameters",MediaError:"media-error",SecurityError:"security-error",Success:"success",Timeout:"timeout",UnsupportedApplications:"unsupported-applications",UnsupportedTransports:"unsupported-transports"},Ra=["afraid","amazed","amorous","angry","annoyed","anxious","aroused","ashamed","bored","brave","calm","cautious","cold","confident","confused","contemplative","contented","cranky","crazy","creative","curious","dejected","depressed","disappointed","disgusted","dismayed","distracted","embarrassed","envious","excited","flirtatious","frustrated","grateful","grieving","grumpy","guilty","happy","hopeful","hot","humbled","humiliated","hungry","hurt","impressed","in_awe","in_love","indignant","interested","intoxicated","invincible","jealous","lonely","lost","lucky","mean","moody","nervous","neutral","offended","outraged","playful","proud","relaxed","relieved","remorseful","restless","sad","sarcastic","satisfied","serious","shocked","shy","sick","sleepy","spontaneous","stressed","strong","surprised","thankful","thirsty","tired","undefined","weak","worried"],Na=["doing_chores","drinking","eating","exercising","grooming","having_appointment","inactive","relaxing","talking","traveling","undefined","working"],Ca=["at_the_spa","brushing_teeth","buying_groceries","cleaning","coding","commuting","cooking","cycling","cycling","dancing","day_off","doing_maintenance","doing_the_dishes","doing_the_laundry","driving","fishing","gaming","gardening","getting_a_haircut","going_out","hanging_out","having_a_beer","having_a_snack","having_breakfast","having_coffee","having_dinner","having_lunch","having_tea","hiding","hiking","in_a_car","in_a_meeting","in_real_life","jogging","on_a_bus","on_a_plane","on_a_train","on_a_trip","on_the_phone","on_vacation","on_video_phone","other","partying","playing_sports","praying","reading","rehearsing","running","running_an_errand","scheduled_holiday","shaving","shopping","skiing","sleeping","smoking","socializing","studying","sunbathing","swimming","taking_a_bath","taking_a_shower","thinking","walking","walking_the_dog","watching_a_movie","watching_tv","working_out","writing"],Pa=function(e,t){return"{".concat(e,"}").concat(t)},La=Pa(sr,"mute"),qa=Pa(sr,"unmute"),Fa=Pa(sr,"hold"),Ma=Pa(sr,"unhold"),Da=Pa(sr,"active"),Ba=Pa(sr,"ringing"),Ua=Pa(hr,"checksum"),za=Pa(hr,"received");function Ja(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ea.Both,n=e===Ta.Initiator;switch(t){case Ea.Initiator:return n?ja.Send:ja.Receive;case Ea.Responder:return n?ja.Receive:ja.Send;case Ea.Both:return ja.SendReceive}return ja.Inactive}function Ga(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ja.SendReceive,n=e===Ta.Initiator;switch(t){case ja.Send:return n?Ea.Initiator:Ea.Responder;case ja.Receive:return n?Ea.Responder:Ea.Initiator;case ja.SendReceive:return Ea.Both}return Ea.None}var Va=Object.freeze({__proto__:null,VERSION:"12.17.2",StreamType:ma,SASLFailureCondition:ga,StreamErrorCondition:ya,StanzaErrorCondition:ba,MessageType:{Chat:"chat",Error:"error",GroupChat:"groupchat",Headline:"headline",Normal:"normal"},PresenceType:_a,IQType:{Error:"error",Get:"get",Result:"result",Set:"set"},PresenceShow:{Away:"away",Chat:"chat",DoNotDisturb:"dnd",ExtendedAway:"xa"},RosterSubscription:{Both:"both",From:"from",None:"none",ReceivePresenceOnly:"to",Remove:"remove",SendAndReceivePresence:"both",SendPresenceOnly:"from",To:"to"},DataFormType:{Cancel:"cancel",Form:"form",Result:"result",Submit:"submit"},DataFormFieldType:wa,MUCAffiliation:{Admin:"admin",Banned:"outcast",Member:"member",None:"none",Outcast:"outcast",Owner:"owner"},MUCRole:{Moderator:"moderator",None:"none",Participant:"participant",Visitor:"visitor"},MUCStatusCode:Sa,PubsubErrorCondition:xa,ChatState:ka,JingleSessionRole:Ta,JingleApplicationDirection:ja,JingleContentSenders:Ea,JingleAction:Ia,JingleErrorCondition:Oa,JingleReasonCondition:Aa,USER_MOODS:Ra,USER_ACTIVITY_GENERAL:Na,USER_ACTIVITY_SPECIFIC:Ca,JINGLE_INFO:Pa,JINGLE_INFO_MUTE:La,JINGLE_INFO_UNMUTE:qa,JINGLE_INFO_HOLD:Fa,JINGLE_INFO_UNHOLD:Ma,JINGLE_INFO_ACTIVE:Da,JINGLE_INFO_RINGING:Ba,JINGLE_INFO_CHECKSUM_5:Ua,JINGLE_INFO_RECEIVED_5:za,sendersToDirection:Ja,directionToSenders:Ga});function Ha(e){var t=this;e.disco.addFeature("jid\\20escaping"),e.disco.addFeature(pr),e.disco.addFeature("urn:xmpp:eme:0"),e.disco.addFeature(wr),e.disco.addFeature(Sr),e.disco.addFeature("urn:xmpp:hashes:1"),e.disco.addFeature("urn:xmpp:idle:1"),e.disco.addFeature(Or),e.disco.addFeature(zn),e.disco.addFeature("urn:xmpp:psa"),e.disco.addFeature("urn:xmpp:reference:0"),e.disco.addFeature(er),e.disco.addFeature(Tn),e.disco.addFeature("urn:xmpp:media-element"),e.disco.addFeature($n),e.disco.addFeature(nr);var n,r=F(["sha-1","sha-256","sha-512","md5"]);try{for(r.s();!(n=r.n()).done;){var i=n.value;e.disco.addFeature(xr(i))}}catch(e){r.e(e)}finally{r.f()}e.disco.addFeature("urn:xmpp:time"),e.disco.addFeature("jabber:iq:version"),e.on("iq:get:softwareVersion",(function(t){return e.sendIQResult(t,{softwareVersion:e.config.softwareVersion||{name:"stanzajs.org",version:"12.17.2"}})})),e.on("iq:get:time",(function(t){var n=new Date;e.sendIQResult(t,{time:{tzo:n.getTimezoneOffset(),utc:n}})})),e.getSoftwareVersion=function(n){return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){var r;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.sendIQ({softwareVersion:{},to:n,type:"get"});case 2:return r=t.sent,t.abrupt("return",r.softwareVersion);case 4:case"end":return t.stop()}}),t)})))},e.getTime=function(n){return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){var r;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.sendIQ({time:{},to:n,type:"get"});case 2:return r=t.sent,t.abrupt("return",r.time);case 4:case"end":return t.stop()}}),t)})))},e.getLastActivity=function(n){return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){var r;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.sendIQ({lastActivity:{},to:n,type:"get"});case 2:return r=t.sent,t.abrupt("return",r.lastActivity);case 4:case"end":return t.stop()}}),t)})))}}function Wa(e){var t=this;e.features={handlers:Object.create(null),negotiated:Object.create(null),order:[]},e.registerFeature=function(t,n,r){this.features.order.push({name:t,priority:n}),this.features.order.sort((function(e,t){return e.priority-t.priority})),this.features.handlers[t]=r.bind(e)},e.on("features",(function(n){return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){var r,i,a,o,s,c,u,l,f,p,d,h,v;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:u=function(e){return new Promise((function(t){i[e](n,(function(e,n){t(e?{command:e,message:n}:null)}))}))},r=e.features.negotiated,i=e.features.handlers,a=[],o=F(e.features.order);try{for(o.s();!(s=o.n()).done;)c=s.value.name,n[c]&&i[c]&&!r[c]&&a.push(c)}catch(e){o.e(e)}finally{o.f()}l=0,f=a;case 7:if(!(l<f.length)){t.next=33;break}if(p=f[l],!r[p]){t.next=11;break}return t.abrupt("continue",30);case 11:return d="",h="",t.prev=13,t.next=16,u(p);case 16:(v=t.sent)&&(d=v.command,h=v.message||""),t.next=25;break;case 20:t.prev=20,t.t0=t.catch(13),d="disconnect",h=t.t0.message,console.error(t.t0);case 25:if(d){t.next=27;break}return t.abrupt("continue",30);case 27:return"restart"===d&&e.transport&&e.transport.restart(),"disconnect"===d&&(e.emit("stream:error",{condition:"policy-violation",text:"Failed to negotiate stream features: "+h}),e.disconnect()),t.abrupt("return");case 30:l++,t.next=7;break;case 33:case"end":return t.stop()}}),t,null,[[13,20]])})))}))}function Qa(e){return Object(A.__awaiter)(this,void 0,void 0,b.a.mark((function t(){var n;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Promise.all(e.map((function(e){return e.then((function(e){return Promise.reject(e)}),(function(e){return Promise.resolve(e)}))})));case 3:return n=t.sent,t.abrupt("return",Promise.reject(n));case 7:return t.prev=7,t.t0=t.catch(0),t.abrupt("return",Promise.resolve(t.t0));case 10:case"end":return t.stop()}}),t,null,[[0,7]])})))}function Ka(e,t){return Object(A.__awaiter)(this,void 0,void 0,b.a.mark((function n(){var r,i,a=this;return b.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return"string"==typeof t&&(t={host:t}),r=Object.assign({json:!0,ssl:!0,xrd:!0},t),i=r.ssl?"https://":"http://",n.abrupt("return",Qa([Ai("".concat(i).concat(r.host,"/.well-known/host-meta.json")).then((function(e){return Object(A.__awaiter)(a,void 0,void 0,b.a.mark((function t(){return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.ok){t.next=2;break}throw new Error("could-not-fetch-json");case 2:return t.abrupt("return",e.json());case 3:case"end":return t.stop()}}),t)})))})),Ai("".concat(i).concat(r.host,"/.well-known/host-meta")).then((function(t){return Object(A.__awaiter)(a,void 0,void 0,b.a.mark((function n(){var r,i;return b.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(t.ok){n.next=2;break}throw new Error("could-not-fetch-xml");case 2:return n.next=4,t.text();case 4:if(r=n.sent,!(i=tt(r))){n.next=8;break}return n.abrupt("return",e.import(i));case 8:case"end":return n.stop()}}),n)})))}))]));case 4:case"end":return n.stop()}}),n)})))}function Ya(e,t){var n=this;e.discoverBindings=function(e){return Object(A.__awaiter)(n,void 0,void 0,b.a.mark((function n(){var r,i,a,o,s,c;return b.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,Ka(t,e);case 3:r=n.sent,i={bosh:[],websocket:[]},a=r.links||[],o=F(a);try{for(o.s();!(s=o.n()).done;)(c=s.value).href&&"urn:xmpp:alt-connections:websocket"===c.rel&&i.websocket.push(c.href),c.href&&"urn:xmpp:alt-connections:xbosh"===c.rel&&i.bosh.push(c.href)}catch(e){o.e(e)}finally{o.f()}return n.abrupt("return",i);case 11:return n.prev=11,n.t0=n.catch(0),n.abrupt("return",{});case 14:case"end":return n.stop()}}),n,null,[[0,11]])})))}}function Xa(e){var t=q.getMediaSections(e),n=q.getDescription(e),r={groups:[],media:[]};q.matchPrefix(n,"a=ice-lite").length>0&&(r.iceLite=!0);var i,a=F(q.matchPrefix(n,"a=group:"));try{for(a.s();!(i=a.n()).done;){var o=i.value.split(" "),s=o.shift().substr(8);r.groups.push({mids:o,semantics:s})}}catch(e){a.e(e)}finally{a.f()}var c,u=F(t);try{for(u.s();!(c=u.n()).done;){var l=c.value,f=q.getKind(l),p=q.isRejected(l),d=q.parseMLine(l),h={direction:q.getDirection(l,n),kind:f,mid:q.getMid(l),protocol:d.protocol};if(p||(h.iceParameters=q.getIceParameters(l,n),h.dtlsParameters=q.getDtlsParameters(l,n),h.setup=q.matchPrefix(l,"a=setup:")[0].substr(8),r.iceLite&&(h.iceParameters.iceLite=!0)),"audio"===f||"video"===f){h.rtpParameters=q.parseRtpParameters(l),h.rtpEncodingParameters=q.parseRtpEncodingParameters(l),h.rtcpParameters=q.parseRtcpParameters(l);var v=q.parseMsid(l);h.streams=v?[v]:[]}else"application"===f&&(h.sctp=q.parseSctpDescription(l));h.candidates=q.matchPrefix(l,"a=candidate:").map(q.parseCandidate),r.media.push(h)}}catch(e){u.e(e)}finally{u.f()}return r}function $a(e){var t=[];t.push(q.writeSessionBoilerplate(e.sessionId,e.sessionVersion),"a=msid-semantic:WMS *\r\n"),(e.iceLite||e.media.filter((function(e){return e.iceParameters&&e.iceParameters.iceLite})).length>0)&&t.push("a=ice-lite\r\n");var n,r=F(e.groups||[]);try{for(r.s();!(n=r.n()).done;){var i=n.value;t.push("a=group:".concat(i.semantics," ").concat(i.mids.join(" "),"\r\n"))}}catch(e){r.e(e)}finally{r.f()}var a,o=F(e.media||[]);try{for(o.s();!(a=o.n()).done;){var s=a.value,c=!(s.iceParameters&&s.dtlsParameters);if("application"===s.kind&&s.sctp)t.push(q.writeSctpDescription(s,s.sctp));else if(s.rtpParameters){var u=q.writeRtpDescription(s.kind,s.rtpParameters);c&&(u=u.replace("m=".concat(s.kind," 9 "),"m=".concat(s.kind," 0 "))),t.push(u),t.push("a=".concat(s.direction||"sendrecv","\r\n"));var l,f=F(s.streams||[]);try{for(f.s();!(l=f.n()).done;){var p=l.value;t.push("a=msid:".concat(p.stream," ").concat(p.track,"\r\n"))}}catch(e){f.e(e)}finally{f.f()}if(s.rtcpParameters&&(t.push(q.writeRtcpParameters(s.rtcpParameters)),s.rtcpParameters.cname&&s.rtpEncodingParameters&&s.rtpEncodingParameters[0].rtx)){var d=s.rtpEncodingParameters[0];t.push("a=ssrc-group:FID ".concat(d.ssrc," ").concat(d.rtx.ssrc,"\r\n")),t.push("a=ssrc:".concat(d.rtx.ssrc," cname:").concat(s.rtcpParameters.cname,"\r\n"))}}if(void 0!==s.mid&&t.push("a=mid:".concat(s.mid,"\r\n")),s.iceParameters&&t.push(q.writeIceParameters({usernameFragment:s.iceParameters.usernameFragment,password:s.iceParameters.password})),s.dtlsParameters&&s.setup&&t.push(q.writeDtlsParameters(s.dtlsParameters,s.setup)),s.candidates&&s.candidates.length){var h,v=F(s.candidates);try{for(v.s();!(h=v.n()).done;){var m=h.value;t.push("a=".concat(q.writeCandidate(m),"\r\n"))}}catch(e){v.e(e)}finally{v.f()}}}}catch(e){o.e(e)}finally{o.f()}return t.join("")}function Za(e,t){var n=e.rtpParameters,r=e.rtcpParameters||{},i=e.rtpEncodingParameters||[],a=!1;i&&i.length&&(a=!!i[0].ssrc);var o,s={applicationType:or,codecs:[],headerExtensions:[],media:e.kind,rtcpMux:r.mux,rtcpReducedSize:r.reducedSize,sourceGroups:[],sources:[],ssrc:a?i[0].ssrc.toString():void 0,streams:[]},c=F(n.headerExtensions||[]);try{for(c.s();!(o=c.n()).done;){var u=o.value,l={id:u.id,uri:u.uri};u.direction&&"sendrecv"!==u.direction&&(l.senders=Ga(t,u.direction)),s.headerExtensions.push(l)}}catch(e){c.e(e)}finally{c.f()}r.ssrc&&r.cname&&(s.sources=[{parameters:{cname:r.cname},ssrc:r.ssrc.toString()}]),a&&i[0]&&i[0].rtx&&(s.sourceGroups=[{semantics:"FID",sources:[i[0].ssrc.toString(),i[0].rtx.ssrc.toString()]}]);var f,p=F(e.streams||[]);try{for(p.s();!(f=p.n()).done;){var d=f.value;s.streams.push({id:d.stream,track:d.track})}}catch(e){p.e(e)}finally{p.f()}var h,v=F(n.codecs||[]);try{for(v.s();!(h=v.n()).done;){var m=h.value,g={channels:m.channels,clockRate:m.clockRate,id:m.payloadType.toString(),name:m.name,parameters:m.parameters,rtcpFeedback:m.rtcpFeedback};m.maxptime&&(g.maxptime=m.maxptime),m.parameters&&m.parameters.ptime&&(g.ptime=parseInt(m.parameters.ptime,10)),s.codecs.push(g)}}catch(e){v.e(e)}finally{v.f()}return s}function eo(e){return{component:"rtp"===e.component?1:"rtcp"===e.component?2:e.component,foundation:e.foundation,generation:void 0,id:void 0,ip:e.ip,network:void 0,port:e.port,priority:e.priority,protocol:e.protocol,relatedAddress:e.relatedAddress,relatedPort:e.relatedPort,tcpType:e.tcpType,type:e.type}}function to(e){return{address:e.ip,component:1===e.component?"rtp":2===e.component?"rtcp":e.component,foundation:e.foundation,ip:e.ip,port:e.port,priority:e.priority,protocol:e.protocol,relatedAddress:e.relatedAddress,relatedPort:e.relatedPort,tcpType:e.tcpType,type:e.type}}function no(e,t){var n=e.iceParameters,r=e.dtlsParameters,i={candidates:[],transportType:t};n&&(i.usernameFragment=n.usernameFragment,i.password=n.password,n.iceLite&&(i.iceLite=!0)),r&&(i.fingerprints=r.fingerprints.map((function(t){return{algorithm:t.algorithm,setup:e.setup,value:t.value}}))),e.sctp&&(i.sctp=e.sctp);var a,o=F(e.candidates||[]);try{for(o.s();!(a=o.n()).done;){var s=a.value;i.candidates.push(eo(s))}}catch(e){o.e(e)}finally{o.f()}return i}function ro(e,t,n){return{contents:e.media.map((function(e){return{application:"audio"===e.kind||"video"===e.kind?Za(e,t):{applicationType:"datachannel",protocol:e.protocol},creator:Ta.Initiator,name:e.mid,senders:Ga(t,e.direction),transport:no(e,n)}})),groups:e.groups?e.groups.map((function(e){return{contents:e.mids,semantics:e.semantics}})):[]}}function io(e,t){var n=e.application||{},r=e.transport,i=n&&n.applicationType===or,a={direction:Ja(t,e.senders),kind:n.media||"application",mid:e.name,protocol:i?"UDP/TLS/RTP/SAVPF":"UDP/DTLS/SCTP"};if(i){if(a.rtcpParameters={compound:!n.rtcpReducedSize,mux:n.rtcpMux,reducedSize:n.rtcpReducedSize},n.sources&&n.sources.length){var o=n.sources[0];a.rtcpParameters.ssrc=parseInt(o.ssrc,10),o.parameters&&(a.rtcpParameters.cname=o.parameters.cname)}if(a.rtpParameters={codecs:[],fecMechanisms:[],headerExtensions:[],rtcp:[]},n.streams){a.streams=[];var s,c=F(n.streams);try{for(c.s();!(s=c.n()).done;){var u=s.value;a.streams.push({stream:u.id,track:u.track})}}catch(e){c.e(e)}finally{c.f()}}if(n.ssrc&&(a.rtpEncodingParameters=[{ssrc:parseInt(n.ssrc,10)}],n.sourceGroups&&n.sourceGroups.length)){var l=n.sourceGroups[0];a.rtpEncodingParameters[0].rtx={ssrc:parseInt(l.sources[1],10)}}var f,p=!1,d=!1,h=F(n.codecs||[]);try{for(h.s();!(f=h.n()).done;){var v,m=f.value,g=m.parameters||{},y=[],b=F(m.rtcpFeedback||[]);try{for(b.s();!(v=b.n()).done;){var _=v.value;y.push({parameter:_.parameter,type:_.type})}}catch(e){b.e(e)}finally{b.f()}if("red"===m.name||"ulpfec"===m.name){p=p||"red"===m.name,d=d||"ulpfec"===m.name;var w=m.name.toUpperCase();a.rtpParameters.fecMechanisms.includes(w)||a.rtpParameters.fecMechanisms.push(w)}a.rtpParameters.codecs.push({channels:m.channels,clockRate:m.clockRate,name:m.name,numChannels:m.channels,parameters:g,payloadType:parseInt(m.id,10),rtcpFeedback:y})}}catch(e){h.e(e)}finally{h.f()}var S,x=F(n.headerExtensions||[]);try{for(x.s();!(S=x.n()).done;){var k=S.value;a.rtpParameters.headerExtensions.push({direction:Ja(t,k.senders||"both"),id:k.id,uri:k.uri})}}catch(e){x.e(e)}finally{x.f()}}if(r){if(r.usernameFragment&&r.password&&(a.iceParameters={password:r.password,usernameFragment:r.usernameFragment},r.iceLite&&(a.iceParameters.iceLite=!0)),r.fingerprints&&r.fingerprints.length){a.dtlsParameters={fingerprints:[],role:"auto"};var T,j=F(r.fingerprints);try{for(j.s();!(T=j.n()).done;){var E=T.value;a.dtlsParameters.fingerprints.push({algorithm:E.algorithm,value:E.value})}}catch(e){j.e(e)}finally{j.f()}r.sctp&&(a.sctp=r.sctp),a.setup=r.fingerprints[0].setup}a.candidates=(r.candidates||[]).map(to)}return a}function ao(e,t){var n,r={groups:[],media:[]},i=F(e.groups||[]);try{for(i.s();!(n=i.n()).done;){var a=n.value;r.groups.push({mids:a.contents,semantics:a.semantics})}}catch(e){i.e(e)}finally{i.f()}var o,s=F(e.contents||[]);try{for(s.s();!(o=s.n()).done;){var c=o.value;r.media.push(io(c,t))}}catch(e){s.e(e)}finally{s.f()}return r}var oo={condition:ba.BadRequest},so={condition:ba.FeatureNotImplemented,jingleError:Oa.UnsupportedInfo,type:"modify"},co=function(){function e(t){var n=this;w()(this,e),this.parent=t.parent,this.sid=t.sid||ia(),this.peerID=t.peerID,this.role=t.initiator?Ta.Initiator:Ta.Responder,this._sessionState="starting",this._connectionState="starting",this.pendingApplicationTypes=t.applicationTypes||[],this.pendingAction=void 0,this.processingQueue=Object(R.priorityQueue)((function(e,t){return Object(A.__awaiter)(n,void 0,void 0,b.a.mark((function n(){var r,i,a,o,s=this;return b.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if("ended"!==this.state){n.next=4;break}return"local"===e.type&&e.reject&&e.reject(new Error("Session ended")),t&&t(),n.abrupt("return");case 4:if("local"!==e.type){n.next=18;break}return this._log("debug","Processing local action:",e.name),n.prev=6,n.next=9,e.handler();case 9:r=n.sent,e.resolve(r),n.next=16;break;case 13:n.prev=13,n.t0=n.catch(6),e.reject(n.t0);case 16:return t&&t(),n.abrupt("return");case 18:return i=e.action,a=e.changes,o=e.cb,this._log("debug","Processing remote action:",i),n.abrupt("return",new Promise((function(e){var n=function(n,r){o(n,r),t&&t(),e()};switch(i){case Ia.ContentAccept:return s.onContentAccept(a,n);case Ia.ContentAdd:return s.onContentAdd(a,n);case Ia.ContentModify:return s.onContentModify(a,n);case Ia.ContentReject:return s.onContentReject(a,n);case Ia.ContentRemove:return s.onContentRemove(a,n);case Ia.DescriptionInfo:return s.onDescriptionInfo(a,n);case Ia.SecurityInfo:return s.onSecurityInfo(a,n);case Ia.SessionAccept:return s.onSessionAccept(a,n);case Ia.SessionInfo:return s.onSessionInfo(a,n);case Ia.SessionInitiate:return s.onSessionInitiate(a,n);case Ia.SessionTerminate:return s.onSessionTerminate(a,n);case Ia.TransportAccept:return s.onTransportAccept(a,n);case Ia.TransportInfo:return s.onTransportInfo(a,n);case Ia.TransportReject:return s.onTransportReject(a,n);case Ia.TransportReplace:return s.onTransportReplace(a,n);default:s._log("error","Invalid or unsupported action: "+i),n({condition:ba.BadRequest})}})));case 21:case"end":return n.stop()}}),n,this,[[6,13]])})))}),1)}return x()(e,[{key:"send",value:function(e,t){(t=t||{}).sid=this.sid,t.action=e,new Set([Ia.ContentAccept,Ia.ContentAdd,Ia.ContentModify,Ia.ContentReject,Ia.ContentRemove,Ia.SessionAccept,Ia.SessionInitiate,Ia.TransportAccept,Ia.TransportReject,Ia.TransportReplace]).has(e)?this.pendingAction=e:this.pendingAction=void 0,this.parent.signal(this,{id:ia(),jingle:t,to:this.peerID,type:"set"})}},{key:"processLocal",value:function(e,t){var n=this;return new Promise((function(r,i){n.processingQueue.push({handler:t,name:e,reject:i,resolve:r,type:"local"},1)}))}},{key:"process",value:function(e,t,n){this.processingQueue.push({action:e,cb:n,changes:t,type:"remote"},2)}},{key:"start",value:function(e,t){this._log("error","Can not start base sessions"),this.end("unsupported-applications",!0)}},{key:"accept",value:function(e,t){this._log("error","Can not accept base sessions"),this.end("unsupported-applications")}},{key:"cancel",value:function(){this.end("cancel")}},{key:"decline",value:function(){this.end("decline")}},{key:"end",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"success",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.state="ended",this.processingQueue.kill(),"string"==typeof e&&(e={condition:e}),t||this.send("session-terminate",{reason:e}),this.parent.emit("terminated",this,e),this.parent.forgetSession(this)}},{key:"_log",value:function(e,t){if(this.parent){var n,r;t=this.sid+": "+t;for(var i=arguments.length,a=new Array(i>2?i-2:0),o=2;o<i;o++)a[o-2]=arguments[o];(n=this.parent).emit.apply(n,["log",e,t].concat(a)),(r=this.parent).emit.apply(r,["log:"+e,t].concat(a))}}},{key:"onSessionInitiate",value:function(e,t){t()}},{key:"onSessionAccept",value:function(e,t){t()}},{key:"onSessionTerminate",value:function(e,t){this.end(e.reason,!0),t()}},{key:"onSessionInfo",value:function(e,t){e.info?t(so):t()}},{key:"onSecurityInfo",value:function(e,t){t(so)}},{key:"onDescriptionInfo",value:function(e,t){t(so)}},{key:"onTransportInfo",value:function(e,t){t(so)}},{key:"onContentAdd",value:function(e,t){t(),this.send(Ia.ContentReject,{reason:{condition:Aa.FailedApplication,text:"content-add is not supported"}})}},{key:"onContentAccept",value:function(e,t){t(oo)}},{key:"onContentReject",value:function(e,t){t(oo)}},{key:"onContentModify",value:function(e,t){t(oo)}},{key:"onContentRemove",value:function(e,t){t(oo)}},{key:"onTransportReplace",value:function(e,t){t(),this.send(Ia.TransportReject,{reason:{condition:Aa.FailedTransport,text:"transport-replace is not supported"}})}},{key:"onTransportAccept",value:function(e,t){t(oo)}},{key:"onTransportReject",value:function(e,t){t(oo)}},{key:"isInitiator",get:function(){return this.role===Ta.Initiator}},{key:"peerRole",get:function(){return this.isInitiator?Ta.Responder:Ta.Initiator}},{key:"state",get:function(){return this._sessionState},set:function(e){e!==this._sessionState&&(this._log("info","Changing session state to: "+e),this._sessionState=e,this.parent&&this.parent.emit("sessionState",this,e))}},{key:"connectionState",get:function(){return this._connectionState},set:function(e){e!==this._connectionState&&(this._log("info","Changing connection state to: "+e),this._connectionState=e,this.parent&&this.parent.emit("connectionState",this,e))}}]),e}(),uo=function(e){T()(n,e);var t=D(n);function n(e){var r;return w()(this,n),(r=t.call(this,e)).bitrateLimit=0,r.candidateBuffer=[],r.transportType=ur,r.restartingIce=!1,r.usingRelay=!1,r.maxRelayBandwidth=e.maxRelayBandwidth,r.pc=r.parent.createPeerConnection(a()(r),Object.assign(Object.assign({},e.config),{iceServers:e.iceServers})),r.pc.oniceconnectionstatechange=function(){r.onIceStateChange()},r.pc.onicecandidate=function(e){e.candidate?r.onIceCandidate(e):r.onIceEndOfCandidates()},r.restrictRelayBandwidth(),r}return x()(n,[{key:"end",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"success",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.pc.close(),s()(O()(n.prototype),"end",this).call(this,e,t)}},{key:"restartIce",value:function(){return Object(A.__awaiter)(this,void 0,void 0,b.a.mark((function e(){var t=this;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.isInitiator){e.next=2;break}return e.abrupt("return");case 2:return void 0!==this._maybeRestartingIce&&clearTimeout(this._maybeRestartingIce),this.restartingIce=!0,e.prev=4,e.next=7,this.processLocal("restart-ice",(function(){return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function e(){var t,n,r=this;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.pc.createOffer({iceRestart:!0});case 2:return t=e.sent,n=Xa(t.sdp),this.send(Ia.TransportInfo,{contents:n.media.map((function(e){return{creator:Ta.Initiator,name:e.mid,transport:no(e,r.transportType)}})),sid:this.sid}),e.next=7,this.pc.setLocalDescription(t);case 7:case"end":return e.stop()}}),e,this)})))}));case 7:e.next=13;break;case 9:e.prev=9,e.t0=e.catch(4),this._log("error","Could not create WebRTC offer",e.t0),this.end(Aa.FailedTransport,!0);case 13:case"end":return e.stop()}}),e,this,[[4,9]])})))}},{key:"setMaximumBitrate",value:function(e){return Object(A.__awaiter)(this,void 0,void 0,b.a.mark((function t(){var n,r=this;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.maximumBitrate&&(e=Math.min(e,this.maximumBitrate)),this.currentBitrate=e,(n=this.pc.getSenders().find((function(e){return!!e.track&&"video"===e.track.kind})))&&n.getParameters){t.next=5;break}return t.abrupt("return");case 5:return t.prev=5,t.next=8,this.processLocal("set-bitrate",(function(){return Object(A.__awaiter)(r,void 0,void 0,b.a.mark((function t(){var r;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(r=n.getParameters()).encodings&&r.encodings.length||(r.encodings=[{}]),0===e?delete r.encodings[0].maxBitrate:r.encodings[0].maxBitrate=e,t.next=5,n.setParameters(r);case 5:case"end":return t.stop()}}),t)})))}));case 8:t.next=13;break;case 10:t.prev=10,t.t0=t.catch(5),this._log("error","Set maximumBitrate failed",t.t0);case 13:case"end":return t.stop()}}),t,this,[[5,10]])})))}},{key:"onTransportInfo",value:function(e,t){return Object(A.__awaiter)(this,void 0,void 0,b.a.mark((function n(){var r,i,a,o,s,c,u,l,f,p,d,h,v,m,y,_=this;return b.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!(e.contents&&e.contents[0]&&e.contents[0].transport.gatheringComplete)){n.next=18;break}if(r={sdpMid:e.contents[0].name,candidate:""},n.prev=2,"stable"!==this.pc.signalingState){n.next=8;break}return n.next=6,this.pc.addIceCandidate(r);case 6:n.next=9;break;case 8:this.candidateBuffer.push(r);case 9:n.next=14;break;case 11:n.prev=11,n.t0=n.catch(2),this._log("debug","Could not add null end-of-candidate");case 14:return n.prev=14,t(),n.finish(14);case 17:return n.abrupt("return");case 18:if(!this.pc.remoteDescription){n.next=51;break}if(i=this.pc.remoteDescription,a=Xa(i.sdp),o=a.media.find((function(t){return t.mid===e.contents[0].name})),s=o.iceParameters.usernameFragment,!(c=e.contents[0].transport.usernameFragment)||s===c){n.next=51;break}u=F(e.contents.entries());try{for(u.s();!(l=u.n()).done;)f=g()(l.value,2),p=f[0],d=f[1],h=d.transport,a.media[p].iceParameters={password:h.password,usernameFragment:h.usernameFragment},a.media[p].candidates=[]}catch(e){u.e(e)}finally{u.f()}return n.prev=27,n.next=30,this.pc.setRemoteDescription({type:i.type,sdp:$a(a)});case 30:return n.next=32,this.processBufferedCandidates();case 32:if("offer"!==i.type){n.next=42;break}return n.next=35,this.pc.createAnswer();case 35:return v=n.sent,n.next=38,this.pc.setLocalDescription(v);case 38:m=Xa(v.sdp),this.send(Ia.TransportInfo,{contents:m.media.map((function(e){return{creator:Ta.Initiator,name:e.mid,transport:no(e,_.transportType)}})),sid:this.sid}),n.next=43;break;case 42:this.restartingIce=!1;case 43:n.next=51;break;case 45:return n.prev=45,n.t1=n.catch(27),this._log("error","Could not do remote ICE restart",n.t1),t(n.t1),this.end(Aa.FailedTransport),n.abrupt("return");case 51:return y=(e.contents||[]).map((function(e){var t=e.name,n=(e.transport.candidates||[]).map((function(e){return Object(A.__awaiter)(_,void 0,void 0,b.a.mark((function n(){var r;return b.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=q.writeCandidate(to(e)),!this.pc.remoteDescription||"stable"!==this.pc.signalingState){n.next=12;break}return n.prev=2,n.next=5,this.pc.addIceCandidate({sdpMid:t,candidate:r});case 5:n.next=10;break;case 7:n.prev=7,n.t0=n.catch(2),this._log("error","Could not add ICE candidate",n.t0);case 10:n.next=13;break;case 12:this.candidateBuffer.push({sdpMid:t,candidate:r});case 13:case"end":return n.stop()}}),n,this,[[2,7]])})))}));return Promise.all(n)})),n.prev=52,n.next=55,Promise.all(y);case 55:t(),n.next=62;break;case 58:n.prev=58,n.t2=n.catch(52),this._log("error","Could not process transport-info: ".concat(n.t2)),t(n.t2);case 62:case"end":return n.stop()}}),n,this,[[2,11,14,17],[27,45],[52,58]])})))}},{key:"onSessionAccept",value:function(e,t){return Object(A.__awaiter)(this,void 0,void 0,b.a.mark((function n(){var r,i;return b.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return this.state="active",r=ao(e,this.peerRole),i=$a(r),n.prev=3,n.next=6,this.pc.setRemoteDescription({type:"answer",sdp:i});case 6:return n.next=8,this.processBufferedCandidates();case 8:this.parent.emit("accepted",this,void 0),t(),n.next=16;break;case 12:n.prev=12,n.t0=n.catch(3),this._log("error","Could not process WebRTC answer: ".concat(n.t0)),t({condition:"general-error"});case 16:case"end":return n.stop()}}),n,this,[[3,12]])})))}},{key:"onSessionTerminate",value:function(e,t){this._log("info","Terminating session"),this.pc.close(),s()(O()(n.prototype),"end",this).call(this,e.reason,!0),t()}},{key:"onIceCandidate",value:function(e){if(e.candidate&&e.candidate.candidate){var t=q.parseCandidate(e.candidate.candidate),n={contents:[{creator:Ta.Initiator,name:e.candidate.sdpMid,transport:{candidates:[eo(t)],transportType:this.transportType,usernameFragment:t.usernameFragment}}]};this._log("info","Discovered new ICE candidate",n),this.send(Ia.TransportInfo,n)}}},{key:"onIceEndOfCandidates",value:function(){this._log("info","ICE end of candidates");var e=Xa(this.pc.localDescription.sdp).media[0];this.send(Ia.TransportInfo,{contents:[{creator:Ta.Initiator,name:e.mid,transport:{gatheringComplete:!0,transportType:this.transportType,usernameFragment:e.iceParameters.usernameFragment}}]})}},{key:"onIceStateChange",value:function(){switch(this.pc.iceConnectionState){case"checking":this.connectionState="connecting";break;case"completed":case"connected":this.connectionState="connected";break;case"disconnected":if("stable"===this.pc.signalingState?this.connectionState="interrupted":this.connectionState="disconnected",this.restartingIce)return void this.end(Aa.FailedTransport);this.maybeRestartIce();break;case"failed":if("failed"===this.connectionState||this.restartingIce)return void this.end(Aa.FailedTransport);this.connectionState="failed",this.restartIce();break;case"closed":this.connectionState="disconnected",this.restartingIce?this.end(Aa.FailedTransport):this.end()}}},{key:"processBufferedCandidates",value:function(){return Object(A.__awaiter)(this,void 0,void 0,b.a.mark((function e(){var t,n,r;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=F(this.candidateBuffer),e.prev=1,t.s();case 3:if((n=t.n()).done){e.next=15;break}return r=n.value,e.prev=5,e.next=8,this.pc.addIceCandidate(r);case 8:e.next=13;break;case 10:e.prev=10,e.t0=e.catch(5),this._log("error","Could not add ICE candidate",e.t0);case 13:e.next=3;break;case 15:e.next=20;break;case 17:e.prev=17,e.t1=e.catch(1),t.e(e.t1);case 20:return e.prev=20,t.f(),e.finish(20);case 23:this.candidateBuffer=[];case 24:case"end":return e.stop()}}),e,this,[[1,17,20,23],[5,10]])})))}},{key:"restrictRelayBandwidth",value:function(){var e=this;this.pc.addEventListener("iceconnectionstatechange",(function(){return Object(A.__awaiter)(e,void 0,void 0,b.a.mark((function e(){var t,n,r,i,a,o,s;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("completed"===this.pc.iceConnectionState||"connected"===this.pc.iceConnectionState){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,this.pc.getStats();case 4:if((t=e.sent).forEach((function(e){"transport"===e.type&&(n=t.get(e.selectedCandidatePairId))})),n||t.forEach((function(e){"candidate-pair"===e.type&&e.selected&&(n=e)})),n){e.next=9;break}return e.abrupt("return");case 9:r=!1,i="",a="",n.remoteCandidateId&&(o=t.get(n.remoteCandidateId))&&(a=o.candidateType),n.localCandidateId&&(s=t.get(n.localCandidateId))&&(i=s.candidateType),"relay"!==i&&"relay"!==a||(r=!0),this.usingRelay=r,this.parent.emit("iceConnectionType",this,{localCandidateType:i,relayed:r,remoteCandidateType:a}),r&&void 0!==this.maxRelayBandwidth&&(this.maximumBitrate=this.maxRelayBandwidth,this.currentBitrate?this.setMaximumBitrate(Math.min(this.currentBitrate,this.maximumBitrate)):this.setMaximumBitrate(this.maximumBitrate));case 18:case"end":return e.stop()}}),e,this)})))}))}},{key:"maybeRestartIce",value:function(){var e=this;this.isInitiator&&(void 0!==this._maybeRestartingIce&&clearTimeout(this._maybeRestartingIce),this._maybeRestartingIce=setTimeout((function(){e._maybeRestartingIce=void 0,"disconnected"===e.pc.iceConnectionState&&e.restartIce()}),2e3))}}]),n}(co),lo=function(e){T()(n,e);var t=D(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return w()(this,n),(e=t.call(this)).config=Object.assign({chunkSize:16384,hash:"sha-1"},r),e.file=void 0,e.channel=void 0,e.hash=Ti(e.config.hash),e}return x()(n,[{key:"send",value:function(e,t){var n=this;if(!this.file||!this.channel){this.file=e,this.channel=t,this.channel.binaryType="arraybuffer";var r=new FileReader,i=0,a=!1,o=function(){if(!(a||i>=e.size)){a=!0;var t=e.slice(i,i+n.config.chunkSize);r.readAsArrayBuffer(t)}};t.bufferedAmountLowThreshold=8*this.config.chunkSize,t.onbufferedamountlow=function(){o()},r.addEventListener("load",(function(t){var r=t.target.result;a=!1,i+=r.byteLength,n.channel.send(r),n.hash.update(new Uint8Array(r)),n.emit("progress",i,e.size,r),i<e.size?n.channel.bufferedAmount<=n.channel.bufferedAmountLowThreshold&&o():(n.emit("progress",e.size,e.size,null),n.emit("sentFile",{algorithm:n.config.hash,name:e.name,size:e.size,value:n.hash.digest()}))})),o()}}}]),n}(N.EventEmitter),fo=function(e){T()(n,e);var t=D(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return w()(this,n),(e=t.call(this)).config=Object.assign({hash:"sha-1"},r),e.receiveBuffer=[],e.received=0,e.channel=void 0,e.hash=Ti(e.config.hash),e}return x()(n,[{key:"receive",value:function(e,t){var n=this;this.metadata=e,this.channel=t,this.channel.binaryType="arraybuffer",this.channel.onmessage=function(e){var t=e.data.byteLength;n.received+=t,n.receiveBuffer.push(e.data),e.data&&n.hash.update(new Uint8Array(e.data)),n.emit("progress",n.received,n.metadata.size,e.data),n.received===n.metadata.size?(n.metadata.actualhash=n.hash.digest("hex"),n.emit("receivedFile",new Blob(n.receiveBuffer),n.metadata),n.receiveBuffer=[]):n.received>n.metadata.size&&(console.error("received more than expected, discarding..."),n.receiveBuffer=[])}}}]),n}(N.EventEmitter),po=function(e){T()(n,e);var t=D(n);function n(e){var r;return w()(this,n),(r=t.call(this,e)).sender=void 0,r.receiver=void 0,r.file=void 0,r}return x()(n,[{key:"start",value:function(e,t){return Object(A.__awaiter)(this,void 0,void 0,b.a.mark((function n(){var r=this;return b.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(t=t||function(){},e&&"function"!=typeof e){n.next=3;break}throw new Error("File object required");case 3:return this.state="pending",this.role="initiator",this.file=e,this.sender=new lo,this.sender.on("progress",(function(e,t){r._log("info","Send progress "+e+"/"+t)})),this.sender.on("sentFile",(function(e){r._log("info","Sent file",e.name),r.send(Ia.SessionInfo,{info:{creator:Ta.Initiator,file:{hashes:[{algorithm:e.algorithm,value:e.value}]},infoType:Ua,name:r.contentName}}),r.parent.emit("sentFile",r,e)})),this.channel=this.pc.createDataChannel("filetransfer",{ordered:!0}),this.channel.onopen=function(){r.sender.send(r.file,r.channel)},n.prev=11,n.next=14,this.processLocal(Ia.SessionInitiate,(function(){return Object(A.__awaiter)(r,void 0,void 0,b.a.mark((function t(){var n,r,i;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.pc.createOffer({offerToReceiveAudio:!1,offerToReceiveVideo:!1});case 2:return n=t.sent,r=Xa(n.sdp),i=ro(r,this.role,this.transportType),this.contentName=i.contents[0].name,i.sid=this.sid,i.action=Ia.SessionInitiate,i.contents[0].application={applicationType:hr,file:{date:e.lastModified?new Date(e.lastModified):void 0,hashesUsed:[{algorithm:"sha-1"}],name:e.name,size:e.size}},this.send("session-initiate",i),t.next=12,this.pc.setLocalDescription(n);case 12:case"end":return t.stop()}}),t,this)})))}));case 14:t(),n.next=21;break;case 17:return n.prev=17,n.t0=n.catch(11),this._log("error","Could not create WebRTC offer",n.t0),n.abrupt("return",this.end("failed-application",!0));case 21:case"end":return n.stop()}}),n,this,[[11,17]])})))}},{key:"accept",value:function(e){return Object(A.__awaiter)(this,void 0,void 0,b.a.mark((function t(){var n=this;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this._log("info","Accepted incoming session"),this.role="responder",this.state="active",e=e||function(){},t.prev=4,t.next=7,this.processLocal(Ia.SessionAccept,(function(){return Object(A.__awaiter)(n,void 0,void 0,b.a.mark((function e(){var t,n,r,i,a;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.pc.createAnswer();case 2:t=e.sent,n=Xa(t.sdp),(r=ro(n,this.role,this.transportType)).sid=this.sid,r.action="session-accept",i=F(r.contents);try{for(i.s();!(a=i.n()).done;)a.value.creator="initiator"}catch(e){i.e(e)}finally{i.f()}return this.contentName=r.contents[0].name,this.send("session-accept",r),e.next=13,this.pc.setLocalDescription(t);case 13:return e.next=15,this.processBufferedCandidates();case 15:case"end":return e.stop()}}),e,this)})))}));case 7:e(),t.next=14;break;case 10:t.prev=10,t.t0=t.catch(4),this._log("error","Could not create WebRTC answer",t.t0),this.end("failed-application");case 14:case"end":return t.stop()}}),t,this,[[4,10]])})))}},{key:"onSessionInitiate",value:function(e,t){return Object(A.__awaiter)(this,void 0,void 0,b.a.mark((function n(){var r,i,a,o,s=this;return b.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return this._log("info","Initiating incoming session"),this.role="responder",this.state="pending",this.transportType=e.contents[0].transport.transportType,r=ao(e,this.peerRole),i=$a(r),a=e.contents[0].application,o=a.file.hashesUsed?a.file.hashesUsed:a.file.hashes||[],this.receiver=new fo({hash:o[0]&&o[0].algorithm}),this.receiver.on("progress",(function(e,t){s._log("info","Receive progress "+e+"/"+t)})),this.receiver.on("receivedFile",(function(e){s.receivedFile=e,s._maybeReceivedFile()})),this.receiver.metadata=a.file,this.pc.addEventListener("datachannel",(function(e){s.channel=e.channel,s.receiver.receive(s.receiver.metadata,e.channel)})),n.prev=13,n.next=16,this.pc.setRemoteDescription({type:"offer",sdp:i});case 16:return n.next=18,this.processBufferedCandidates();case 18:t(),n.next=25;break;case 21:n.prev=21,n.t0=n.catch(13),this._log("error","Could not create WebRTC answer",n.t0),t({condition:"general-error"});case 25:case"end":return n.stop()}}),n,this,[[13,21]])})))}},{key:"onSessionInfo",value:function(e,t){var n=e.info;n&&n.file&&n.file.hashes&&(this.receiver.metadata.hashes=n.file.hashes,this.receiver.metadata.actualhash&&this._maybeReceivedFile(),t())}},{key:"_maybeReceivedFile",value:function(){if(this.receiver.metadata.hashes&&this.receiver.metadata.hashes.length){var e,t=F(this.receiver.metadata.hashes||[]);try{for(t.s();!(e=t.n()).done;){var n=e.value;if(n.value&&n.value.toString("hex")===this.receiver.metadata.actualhash)return this._log("info","File hash matches"),this.parent.emit("receivedFile",this,this.receivedFile,this.receiver.metadata),void this.end("success")}}catch(e){t.e(e)}finally{t.f()}this._log("error","File hash does not match"),this.end("media-error")}}}]),n}(uo);function ho(e){var t=e.application;if(t.streams&&t.streams.length&&t.sources&&t.sources.length){var n=t.streams[0];t.sources[0].parameters.msid="".concat(n.id," ").concat(n.track),t.sourceGroups&&t.sourceGroups.length>0&&t.sources.push({parameters:{cname:t.sources[0].parameters.cname,msid:"".concat(n.id," ").concat(n.track)},ssrc:t.sourceGroups[0].sources[1]})}}var vo=function(e){T()(n,e);var t=D(n);function n(e){var r;if(w()(this,n),(r=t.call(this,e)).includesAudio=!1,r.includesVideo=!1,r._ringing=!1,r.pc.addEventListener("track",(function(e){r.onAddTrack(e.track,e.streams[0])})),e.stream){var i,a=F(e.stream.getTracks());try{for(a.s();!(i=a.n()).done;){var o=i.value;r.addTrack(o,e.stream)}}catch(e){a.e(e)}finally{a.f()}}return r}return x()(n,[{key:"start",value:function(e,t){return Object(A.__awaiter)(this,arguments,void 0,b.a.mark((function n(){var r=this,i=arguments;return b.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return this.state="pending",1===i.length&&"function"==typeof e&&(t=e,e={}),t=t||function(){},e=e||{},this.role="initiator",this.offerOptions=e,n.prev=6,n.next=9,this.processLocal(Ia.SessionInitiate,(function(){return Object(A.__awaiter)(r,void 0,void 0,b.a.mark((function t(){var n,r,i,a,o,s;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.pc.createOffer(e);case 2:n=t.sent,r=Xa(n.sdp),(i=ro(r,this.role,this.transportType)).sid=this.sid,i.action=Ia.SessionInitiate,a=F(i.contents||[]);try{for(a.s();!(o=a.n()).done;)(s=o.value).creator="initiator",ho(s)}catch(e){a.e(e)}finally{a.f()}return t.next=11,this.pc.setLocalDescription(n);case 11:this.send("session-initiate",i);case 12:case"end":return t.stop()}}),t,this)})))}));case 9:t(),n.next=16;break;case 12:n.prev=12,n.t0=n.catch(6),this._log("error","Could not create WebRTC offer",n.t0),this.end("failed-application",!0);case 16:case"end":return n.stop()}}),n,this,[[6,12]])})))}},{key:"accept",value:function(e,t){return Object(A.__awaiter)(this,arguments,void 0,b.a.mark((function n(){var r=this,i=arguments;return b.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return 1===i.length&&"function"==typeof e&&(t=e,e={}),t=t||function(){},e=e||{},this._log("info","Accepted incoming session"),this.state="active",this.role="responder",n.prev=6,n.next=9,this.processLocal(Ia.SessionAccept,(function(){return Object(A.__awaiter)(r,void 0,void 0,b.a.mark((function t(){var n,r,i,a,o;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.pc.createAnswer(e);case 2:n=t.sent,r=Xa(n.sdp),(i=ro(r,this.role,this.transportType)).sid=this.sid,i.action=Ia.SessionAccept,a=F(i.contents||[]);try{for(a.s();!(o=a.n()).done;)o.value.creator="initiator"}catch(e){a.e(e)}finally{a.f()}return t.next=11,this.pc.setLocalDescription(n);case 11:return t.next=13,this.processBufferedCandidates();case 13:this.send("session-accept",i);case 14:case"end":return t.stop()}}),t,this)})))}));case 9:t(),n.next=16;break;case 12:n.prev=12,n.t0=n.catch(6),this._log("error","Could not create WebRTC answer",n.t0),this.end("failed-application");case 16:case"end":return n.stop()}}),n,this,[[6,12]])})))}},{key:"end",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"success",r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=F(this.pc.getReceivers());try{for(i.s();!(e=i.n()).done;){var a=e.value;this.onRemoveTrack(a.track)}}catch(e){i.e(e)}finally{i.f()}s()(O()(n.prototype),"end",this).call(this,t,r)}},{key:"ring",value:function(){var e=this;return this.processLocal("ring",(function(){return Object(A.__awaiter)(e,void 0,void 0,b.a.mark((function e(){return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this._log("info","Ringing on incoming session"),this.ringing=!0,this.send(Ia.SessionInfo,{info:{infoType:Ba}});case 3:case"end":return e.stop()}}),e,this)})))}))}},{key:"mute",value:function(e,t){var n=this;return this.processLocal("mute",(function(){return Object(A.__awaiter)(n,void 0,void 0,b.a.mark((function n(){return b.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:this._log("info","Muting",t),this.send(Ia.SessionInfo,{info:{creator:e,infoType:La,name:t}});case 2:case"end":return n.stop()}}),n,this)})))}))}},{key:"unmute",value:function(e,t){var n=this;return this.processLocal("unmute",(function(){return Object(A.__awaiter)(n,void 0,void 0,b.a.mark((function n(){return b.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:this._log("info","Unmuting",t),this.send(Ia.SessionInfo,{info:{creator:e,infoType:qa,name:t}});case 2:case"end":return n.stop()}}),n,this)})))}))}},{key:"hold",value:function(){var e=this;return this.processLocal("hold",(function(){return Object(A.__awaiter)(e,void 0,void 0,b.a.mark((function e(){return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this._log("info","Placing on hold"),this.send("session-info",{info:{infoType:Fa}});case 2:case"end":return e.stop()}}),e,this)})))}))}},{key:"resume",value:function(){var e=this;return this.processLocal("resume",(function(){return Object(A.__awaiter)(e,void 0,void 0,b.a.mark((function e(){return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this._log("info","Resuming from hold"),this.send("session-info",{info:{infoType:Da}});case 2:case"end":return e.stop()}}),e,this)})))}))}},{key:"addTrack",value:function(e,t,n){var r=this;return"audio"===e.kind&&(this.includesAudio=!0),"video"===e.kind&&(this.includesVideo=!0),this.processLocal("addtrack",(function(){return Object(A.__awaiter)(r,void 0,void 0,b.a.mark((function r(){return b.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:this.pc.addTrack?this.pc.addTrack(e,t):this.pc.addStream(t),n&&n();case 2:case"end":return r.stop()}}),r,this)})))}))}},{key:"removeTrack",value:function(e,t){return Object(A.__awaiter)(this,void 0,void 0,b.a.mark((function n(){var r=this;return b.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",this.processLocal("removetrack",(function(){return Object(A.__awaiter)(r,void 0,void 0,b.a.mark((function n(){return b.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(this.pc.removeTrack(e),!t){n.next=3;break}return n.abrupt("return",t());case 3:case"end":return n.stop()}}),n,this)})))})));case 1:case"end":return n.stop()}}),n,this)})))}},{key:"onAddTrack",value:function(e,t){this._log("info","Track added"),this.parent.emit("peerTrackAdded",this,e,t)}},{key:"onRemoveTrack",value:function(e){this._log("info","Track removed"),this.parent.emit("peerTrackRemoved",this,e)}},{key:"onSessionInitiate",value:function(e,t){return Object(A.__awaiter)(this,void 0,void 0,b.a.mark((function n(){var r,i,a,o,s;return b.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:this._log("info","Initiating incoming session"),this.state="pending",this.role="responder",this.transportType=e.contents[0].transport.transportType,r=ao(e,this.peerRole),i=F(r.media);try{for(i.s();!(a=i.n()).done;)"audio"===(o=a.value).kind&&(this.includesAudio=!0),"video"===o.kind&&(this.includesVideo=!0),o.streams||(o.streams=[{stream:"legacy",track:o.kind}])}catch(e){i.e(e)}finally{i.f()}return s=$a(r),n.prev=8,n.next=11,this.pc.setRemoteDescription({type:"offer",sdp:s});case 11:return n.next=13,this.processBufferedCandidates();case 13:return n.abrupt("return",t());case 16:return n.prev=16,n.t0=n.catch(8),this._log("error","Could not create WebRTC answer",n.t0),n.abrupt("return",t({condition:"general-error"}));case 20:case"end":return n.stop()}}),n,this,[[8,16]])})))}},{key:"onSessionTerminate",value:function(e,t){var r,i=F(this.pc.getReceivers());try{for(i.s();!(r=i.n()).done;){var a=r.value;this.onRemoveTrack(a.track)}}catch(e){i.e(e)}finally{i.f()}s()(O()(n.prototype),"onSessionTerminate",this).call(this,e,t)}},{key:"onSessionInfo",value:function(e,t){var n=e.info||{infoType:""};switch(n.infoType){case Ba:return this._log("info","Outgoing session is ringing"),this.ringing=!0,this.parent.emit("ringing",this),t();case Fa:return this._log("info","On hold"),this.parent.emit("hold",this),t();case Ma:case Da:return this._log("info","Resuming from hold"),this.parent.emit("resumed",this),t();case La:return this._log("info","Muting",n),this.parent.emit("mute",this,n),t();case qa:return this._log("info","Unmuting",n),this.parent.emit("unmute",this,n),t()}return t()}},{key:"ringing",get:function(){return this._ringing},set:function(e){e!==this._ringing&&(this._ringing=e)}},{key:"streams",get:function(){return"closed"!==this.pc.signalingState?this.pc.getRemoteStreams():[]}}]),n}(uo);var mo=function(e){T()(n,e);var t=D(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return w()(this,n),r=r||{},(e=t.call(this)).selfID=r.selfID,e.sessions={},e.peers={},e.iceServers=r.iceServers||[],e.prepareSession=r.prepareSession||function(t){if(e.config.hasRTCPeerConnection)return t.applicationTypes.indexOf(or)>=0?new vo(t):t.applicationTypes.indexOf(hr)>=0?new po(t):void 0},e.performTieBreak=r.performTieBreak||function(e,t){var n=(t.jingle.contents||[]).map((function(e){if(e.application)return e.application.applicationType}));return(e.pendingApplicationTypes||[]).filter((function(e){return n.includes(e)})).length>0},e.createPeerConnection=r.createPeerConnection||function(e,t){if(Ni)return new Ni(t)},e.config=Object.assign({debug:!1,hasRTCPeerConnection:!!Ni,peerConnectionConfig:{bundlePolicy:r.bundlePolicy||"balanced",iceTransportPolicy:r.iceTransportPolicy||"all",rtcpMuxPolicy:r.rtcpMuxPolicy||"require",sdpSemantics:r.sdpSemantics},peerConnectionConstraints:{optional:[{DtlsSrtpKeyAgreement:!0},{RtpDataChannels:!1}]}},r),e}return x()(n,[{key:"addICEServer",value:function(e){if("string"!=typeof e)if((t=e).type||!t.urls&&!t.url){var t,n=e.host||"";n.indexOf(":")>=0&&(n="[".concat(n,"]"));var r="".concat(e.type,":").concat(n);e.port&&(r+=":".concat(e.port)),e.transport&&(r+="?transport=".concat(e.transport)),"turn"===e.type||"turns"===e.type?this.iceServers.push({credential:e.password,urls:[r],username:e.username}):"stun"!==e.type&&"stuns"!==e.type||this.iceServers.push({urls:[r]})}else this.iceServers.push(e);else this.iceServers.push({urls:e})}},{key:"resetICEServers",value:function(){this.iceServers=[]}},{key:"addSession",value:function(e){e.parent=this;var t=e.sid,n=e.peerID;return this.sessions[t]=e,this.peers[n]||(this.peers[n]=[]),this.peers[n].push(e),this.emit("createdSession",e),e}},{key:"forgetSession",value:function(e){var t=this.peers[e.peerID]||[];t.length&&t.splice(t.indexOf(e),1),delete this.sessions[e.sid]}},{key:"createMediaSession",value:function(e,t,n){var r=new vo({config:this.config.peerConnectionConfig,constraints:this.config.peerConnectionConstraints,iceServers:this.iceServers,initiator:!0,maxRelayBandwidth:786432,parent:this,peerID:e,sid:t,stream:n});return this.addSession(r),r}},{key:"createFileTransferSession",value:function(e,t){var n=new po({config:this.config.peerConnectionConfig,constraints:this.config.peerConnectionConstraints,iceServers:this.iceServers,initiator:!0,maxRelayBandwidth:786432,parent:this,peerID:e,sid:t});return this.addSession(n),n}},{key:"endPeerSessions",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.peers[e]||[];delete this.peers[e];var i,a=F(r);try{for(a.s();!(i=a.n()).done;){var o=i.value;o.end(t||"gone",n)}}catch(e){a.e(e)}finally{a.f()}}},{key:"endAllSessions",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=0,r=Object.keys(this.peers);n<r.length;n++){var i=r[n];this.endPeerSessions(i,e,t)}}},{key:"process",value:function(e){var t=this,n=e.jingle?e.jingle.sid:void 0,r=n?this.sessions[n]:void 0,i=e.id,a=e.from;if(a){if("error"===e.type){if(this._log("error","Received error response",e),r&&e.error&&"unknown-session"===e.error.jingleError)return r.end("gone",!0);var o=e.error&&"tie-break"===e.error.jingleError;return r&&"pending"===r.state&&o?r.end("alternative-session",!0):void(r&&(r.pendingAction=void 0))}if("result"!==e.type){var s=e.jingle.action,c=e.jingle.contents||[],u=c.map((function(e){return e.application?e.application.applicationType:void 0})),l=c.map((function(e){return e.transport?e.transport.transportType:void 0}));if(s!==Ia.SessionInitiate){if(!r)return"session-terminate"===s?void this.emit("send",{id:i,to:a,type:"result"}):(this._log("error","Unknown session",n),this._sendError(a,i,{condition:"item-not-found",jingleError:"unknown-session"}));if(r.peerID!==a||"ended"===r.state)return this._log("error","Session has ended, or action has wrong sender"),this._sendError(a,i,{condition:"item-not-found",jingleError:"unknown-session"});if("session-accept"===s&&"pending"!==r.state)return this._log("error","Tried to accept session twice",n),this._sendError(a,i,{condition:"unexpected-request",jingleError:"out-of-order"});if("session-terminate"!==s&&s===r.pendingAction&&(this._log("error","Tie break during pending request"),r.isInitiator))return this._sendError(a,i,{condition:"conflict",jingleError:"tie-break"})}else if(r){if(r.peerID!==a)return this._log("error","Duplicate sid from new sender"),this._sendError(a,i,{condition:"service-unavailable"});if("pending"!==r.state)return this._log("error","Someone is doing this wrong"),this._sendError(a,i,{condition:"unexpected-request",jingleError:"out-of-order"});if(this.selfID&&this.selfID>r.peerID&&this.performTieBreak(r,e))return this._log("error","Tie break new session because of duplicate sids"),this._sendError(a,i,{condition:"conflict",jingleError:"tie-break"})}else if(this.peers[a]&&this.peers[a].length)for(var f=0,p=this.peers[a].length;f<p;f++){var d=this.peers[a][f];if(d&&"pending"===d.state&&n&&ra(d.sid,n)>0&&this.performTieBreak(d,e))return this._log("info","Tie break session-initiate"),this._sendError(a,i,{condition:"conflict",jingleError:"tie-break"})}if("session-initiate"===s){if(!c.length)return this._sendError(a,i,{condition:"bad-request"});r=this._createIncomingSession({applicationTypes:u,config:this.config.peerConnectionConfig,constraints:this.config.peerConnectionConstraints,iceServers:this.iceServers,initiator:!1,parent:this,peerID:a,sid:n,transportTypes:l},e)}r.process(s,e.jingle,(function(n){n?(t._log("error","Could not process request",e,n),t._sendError(a,i,n)):(t.emit("send",{id:i,to:a,type:"result"}),"session-initiate"===s&&t.emit("incoming",r))}))}else r&&(r.pendingAction=void 0)}}},{key:"signal",value:function(e,t){var n=t.jingle&&t.jingle.action;e.isInitiator&&n===Ia.SessionInitiate&&this.emit("outgoing",e),this.emit("send",t)}},{key:"_createIncomingSession",value:function(e,t){var n;return this.prepareSession&&(n=this.prepareSession(e,t)),n||(n=new co(e)),this.addSession(n),n}},{key:"_sendError",value:function(e,t,n){n.type||(n.type="cancel"),this.emit("send",{error:n,id:t,to:e,type:"error"})}},{key:"_log",value:function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];this.emit.apply(this,["log",e,t].concat(r)),this.emit.apply(this,["log:"+e,t].concat(r))}}]),n}(N.EventEmitter),go=Object.freeze({__proto__:null,Session:co,ICESession:uo,MediaSession:vo,FileSession:po,SessionManager:mo,importFromSDP:Xa,exportToSDP:$a});function yo(e){var t=this,n=!!Ni,r={advertiseAudio:n,advertiseFileTransfer:n,advertiseVideo:n,bundlePolicy:"balanced",hasRTCPeerConnection:n,iceServers:[{urls:"stun:stun.l.google.com:19302"}],iceTransportPolicy:"all",rtcpMuxPolicy:"require",trickleIce:!0},i=e.config.jingle,a=Object.assign(Object.assign({},r),i),o=e.jingle=new mo(a),s=[ar];a.hasRTCPeerConnection&&(s.push(Nr,ur,"urn:xmpp:jingle:transports:dtls-sctp:1","urn:xmpp:jingle:apps:dtls:0","urn:ietf:rfc:5888"),!1===a.trickleIce&&s.push("urn:ietf:rfc:3264"),(a.advertiseAudio||a.advertiseVideo)&&s.push(or,br,_r,"urn:ietf:rfc:5576"),a.advertiseAudio&&s.push("urn:xmpp:jingle:apps:rtp:audio"),a.advertiseVideo&&s.push("urn:xmpp:jingle:apps:rtp:video"),a.advertiseFileTransfer&&s.push("urn:xmpp:jingle:apps:file-transfer:4",hr));for(var c=0,u=s;c<u.length;c++){var l=u[c];e.disco.addFeature(l)}for(var f=function(){var t=d[p];o.on(t,(function(n,r){e.emit("jingle:"+t,n,r)}))},p=0,d=["outgoing","incoming","accepted","terminated","ringing","mute","unmute","hold","resumed"];p<d.length;p++)f();o.on("createdSession",(function(t){e.emit("jingle:created",t)})),o.on("send",(function(n){return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){var r;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,"set"!==n.type){t.next=8;break}return t.next=4,e.sendIQ(n);case 4:(r=t.sent).jingle||(r.jingle={}),r.jingle.sid=n.jingle.sid,o.process(r);case 8:"result"===n.type&&e.sendIQResult({type:"set",id:n.id,from:n.to},n),"error"===n.type&&e.sendIQError({type:"set",id:n.id,from:n.to},n),t.next=17;break;case 12:t.prev=12,t.t0=t.catch(0),t.t0.jingle||(t.t0.jingle=n.jingle),t.t0.jingle.sid=n.jingle.sid,o.process(t.t0);case 17:case"end":return t.stop()}}),t,null,[[0,12]])})))})),e.on("session:bound",(function(e){o.selfID=e})),e.on("iq:set:jingle",(function(e){o.process(e)})),e.on("unavailable",(function(e){o.endPeerSessions(e.from,void 0,!0)})),e.getServices=function(n,r,i){return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){var a,o;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.sendIQ({externalServices:{type:r,version:i},to:n,type:"get"});case 2:return a=t.sent,(o=a.externalServices).services=o.services||[],t.abrupt("return",o);case 6:case"end":return t.stop()}}),t)})))},e.getServiceCredentials=function(n,r,i,a,o){return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){var s;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.sendIQ({externalServiceCredentials:{host:r,port:a,type:i,version:o},to:n,type:"get"});case 2:return s=t.sent,t.abrupt("return",s.externalServiceCredentials);case 4:case"end":return t.stop()}}),t)})))},e.discoverICEServers=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){var r,i,a,o,s,c;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.getServices(e.config.server,void 0,n.version);case 3:r=t.sent,i=r.services||[],a=[],o=F(i);try{for(o.s();!(s=o.n()).done;)c=s.value,e.jingle.addICEServer(c)}catch(e){o.e(e)}finally{o.f()}return t.abrupt("return",a);case 11:return t.prev=11,t.t0=t.catch(0),t.abrupt("return",[]);case 14:case"end":return t.stop()}}),t,null,[[0,11]])})))}}function bo(e,t){var n,r=[],i=new Map,a=F(t);try{for(a.s();!(n=a.n()).done;){var o=n.value;o.name&&i.set(o.name,o)}}catch(e){a.e(e)}finally{a.f()}var s,c=new Set,u=F(e);try{for(u.s();!(s=u.n()).done;){var l=s.value;l.name&&i.has(l.name)?(r.push(Object.assign(Object.assign({},l),i.get(l.name))),c.add(l.name)):r.push(Object.assign({},l))}}catch(e){u.e(e)}finally{u.f()}var f,p=F(t);try{for(p.s();!(f=p.n()).done;){var d=f.value;(!d.name||d.name&&!c.has(d.name))&&r.push(Object.assign({},d))}}catch(e){p.e(e)}finally{p.f()}return r}var _o=Object.freeze({__proto__:null,mergeFields:bo});function wo(e){var t=this;e.getHistorySearchForm=function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){var i;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.sendIQ({archive:{type:"query",version:r.version},to:n,type:"get"});case 2:return i=t.sent,t.abrupt("return",i.archive.form);case 4:case"end":return t.stop()}}),t)})))},e.searchHistory=function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){var i,a,o,s,c,u,l,f,p;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.nextId(),a="","string"==typeof n?a=n:(a=n.to||"",r=n),r.queryId=i,(o=r.form||{}).type="submit",s=o.fields||[],c=[{name:"FORM_TYPE",type:"hidden",value:Tr}],r.with&&c.push({name:"with",type:"text-single",value:r.with}),r.start&&c.push({name:"start",type:"text-single",value:r.start.toISOString()}),r.end&&c.push({name:"end",type:"text-single",value:r.end.toISOString()}),o.fields=bo(c,s),r.form=o,u=_e(e.jid,a),l=[],f=function(e){u.has(e.from)&&e.archive&&e.archive.queryId===i&&l.push(e.archive)},e.on("mam:item",f),t.prev=17,t.next=20,e.sendIQ({archive:r,id:i,to:a,type:"set"});case 20:return p=t.sent,t.abrupt("return",Object.assign(Object.assign({},p.archive),{results:l}));case 22:return t.prev=22,e.off("mam:item",f),t.finish(22);case 25:case"end":return t.stop()}}),t,null,[[17,,22,25]])})))},e.getHistoryPreferences=function(){return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){var n;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.sendIQ({archive:{type:"preferences"},type:"get"});case 2:return n=t.sent,t.abrupt("return",n.archive);case 4:case"end":return t.stop()}}),t)})))},e.setHistoryPreferences=function(t){return e.sendIQ({archive:Object.assign({type:"preferences"},t),type:"set"})},e.on("message",(function(t){t.archive&&e.emit("mam:item",t)}))}var So=new Set(["chat","groupchat","headline","normal"]),xo=new Set(["chat","groupchat","normal"]),ko=new Map([["markable",0],["received",1],["displayed",2],["acknowledged",3]]),To=function(e,t){var n;return e.marker&&(ko.get(e.marker.type)<ko.get(t)||"markable"===(null===(n=e.marker)||void 0===n?void 0:n.type))};function jo(e,t){return Object(A.__awaiter)(this,void 0,void 0,b.a.mark((function n(){return b.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,e.sendIQ({carbons:{action:t},type:"set"});case 2:case"end":return n.stop()}}),n)})))}function Eo(e){e.disco.addFeature("urn:xmpp:attention:0"),e.disco.addFeature(Er),e.disco.addFeature(Qn),e.disco.addFeature("urn:xmpp:message-correct:0"),e.disco.addFeature("urn:xmpp:receipts"),e.disco.addFeature(kr),e.enableCarbons=function(){return jo(e,"enable")},e.disableCarbons=function(){return jo(e,"disable")},e.markReceived=function(t){return e.sendMarker(t,"received")},e.markDisplayed=function(t){return e.sendMarker(t,"displayed")},e.markAcknowledged=function(t){return e.sendMarker(t,"acknowledged")},e.getAttention=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.sendMessage(Object.assign(Object.assign({},n),{requestingAttention:!0,to:t,type:"headline"}))},e.sendMarker=function(t,n,r){if(To(t,n)||r){var i=!1!==e.config.groupchatMarkersUseStanzaID,a=t.id;if("groupchat"===t.type&&t.stanzaIds&&i){var o=t.stanzaIds.find((function(e){return we(e.by,t.from)}));o&&(a=o.id)}e.sendMessage({marker:{id:a,type:n},to:"groupchat"===t.type?Te(t.from):t.from,type:t.type})}},e.on("message",(function(t){if(t.carbon&&we(t.from,e.jid)){var n=t.carbon.forward.message;n.delay||(n.delay=t.carbon.forward.delay||{timestamp:new Date(Date.now())}),function(e){return!!e.carbon&&"received"===e.carbon.type}(t)&&(e.emit("carbon:received",t),e.emit("message",n)),function(e){return!!e.carbon&&"sent"===e.carbon.type}(t)&&(e.emit("carbon:sent",t),e.emit("message:sent",n,!0))}(function(e){return!!e.forms&&e.forms.length>0})(t)&&e.emit("dataform",t),t.requestingAttention&&e.emit("attention",t),function(e){return!!e.rtt}(t)&&e.emit("rtt",t),function(e){return!!e.replace}(t)&&e.emit("replace",t),function(e){return!!e.chatState}(t)&&xo.has(t.type||"normal")&&e.emit("chat:state",t);var r=!1!==e.config.sendReceipts,i=!1!==e.config.sendMUCReceipts,a=!1!==e.config.chatMarkers,o=!1!==e.config.groupchatMarkersUseStanzaID,s=function(e){var t;return!!e.receipt&&"request"===e.receipt.type&&So.has(null!==(t=e.type)&&void 0!==t?t:"normal")}(t),c=To(t,"received"),u=s&&r&&("groupchat"!==t.type||i);if(u||a&&c){var l="groupchat"===t.type?Te(t.from):t.from,f=t.id;if("groupchat"===t.type&&t.stanzaIds&&o){var p=t.stanzaIds.find((function(e){return we(e.by,t.from)}));p&&(f=p.id)}e.sendMessage({receipt:u?{id:t.id,type:"received"}:void 0,marker:a&&c?{id:f,type:"received"}:void 0,to:l,type:t.type})}t.receipt&&"received"===t.receipt.type&&e.emit("receipt",t),t.marker&&"markable"!==t.marker.type&&e.emit("marker:".concat(t.marker.type),t)}))}function Io(e){var t=this;e.disco.addFeature(An),e.disco.addFeature("jabber:x:conference"),e.disco.addFeature(jr),e.joinedRooms=new Map,e.joiningRooms=new Map,e.leavingRooms=new Map,e.on("session:started",(function(){var t=e.joiningRooms;e.joiningRooms=new Map;var n,r=F(t);try{for(r.s();!(n=r.n()).done;){var i=g()(n.value,2),a=i[0],o=i[1];e.joinRoom(a,o)}}catch(e){r.e(e)}finally{r.f()}var s=e.joinedRooms;e.joinedRooms=new Map;var c,u=F(s);try{for(u.s();!(c=u.n()).done;){var l=g()(c.value,2),f=l[0],p=l[1];e.joinRoom(f,p)}}catch(e){u.e(e)}finally{u.f()}})),e.on("message",(function(t){if("groupchat"===t.type&&t.hasSubject)e.emit("muc:topic",{from:t.from,room:Te(t.from),topic:t.subject||""});else if(t.muc)if("direct-invite"===t.muc.type||!t.muc.invite&&t.legacyMUC){var n="direct-invite"===t.muc.type?t.muc:t.legacyMUC;e.emit("muc:invite",{from:t.from,password:n.password,reason:n.reason,room:n.jid,thread:n.thread,type:"direct"})}else t.muc.invite?e.emit("muc:invite",{from:t.muc.invite[0].from,password:t.muc.password,reason:t.muc.invite[0].reason,room:t.from,thread:t.muc.invite[0].thread,type:"mediated"}):t.muc.decline?e.emit("muc:declined",{from:t.muc.decline.from,reason:t.muc.decline.reason,room:t.from}):e.emit("muc:other",t)})),e.on("presence",(function(t){var n=Te(t.from);if(e.joiningRooms.has(n)&&"error"===t.type)return e.joiningRooms.delete(n),e.emit("muc:failed",t),void e.emit("muc:error",t);if(function(e){return!!e.muc}(t)){var r=t.muc.statusCodes&&t.muc.statusCodes.indexOf(Sa.SelfPresence)>=0,i=t.muc.statusCodes&&t.muc.statusCodes.indexOf(Sa.NickChanged)>=0;if("error"!==t.type){if("unavailable"===t.type)return e.emit("muc:unavailable",t),r&&(i?e.joinedRooms.set(n,t.muc.nick):(e.emit("muc:leave",t),e.joinedRooms.delete(n),e.leavingRooms.delete(n))),void(t.muc.destroy&&e.emit("muc:destroyed",{newRoom:t.muc.destroy.jid,password:t.muc.destroy.password,reason:t.muc.destroy.reason,room:n}));e.emit("muc:available",t);var a=e.joiningRooms.has(n)||!e.joinedRooms.has(n);r&&(e.joinedRooms.set(n,ke(t.from)),a&&(e.joiningRooms.delete(n),e.emit("muc:join",t)))}else e.emit("muc:error",t)}})),e.joinRoom=function(n,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=Te(n),e.joiningRooms.set(n,r||""),r){t.next=13;break}return t.prev=3,t.next=6,e.getReservedNick(n);case 6:r=t.sent,e.joiningRooms.set(n,r),t.next=13;break;case 10:throw t.prev=10,t.t0=t.catch(3),new Error("Room nick required");case 13:return t.abrupt("return",new Promise((function(t,a){function o(r){we(r.from,n)&&(e.off("muc:join",o),e.off("muc:failed",s),t(r))}function s(t){we(t.from,n)&&(e.off("muc:join",o),e.off("muc:failed",s),a(t))}e.on("muc:join",o),e.on("muc:failed",s),e.sendPresence(Object.assign(Object.assign({},i),{muc:Object.assign(Object.assign({},i.muc),{type:"join"}),to:ye(n,r)}))})));case 14:case"end":return t.stop()}}),t,null,[[3,10]])})))},e.leaveRoom=function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t=Te(t),n=n||e.joinedRooms.get(t),e.leavingRooms.set(t,n),new Promise((function(i,a){var o=r.id||ia(),s=_e(t);function c(n){we(n.from,t)&&(e.off("muc:leave",c),e.off("presence:error",u),i(n))}function u(n){n.id===o&&s.has(n.from)&&(e.joinedRooms.has(t)||e.leavingRooms.delete(t),e.off("muc:leave",c),e.off("presence:error",u),a(n))}e.on("muc:leave",c),e.on("presence:error",u),e.sendPresence(Object.assign(Object.assign({},r),{id:o,to:ye(t,n),type:"unavailable"}))}))},e.ban=function(t,n,r){return e.setRoomAffiliation(t,n,"outcast",r)},e.kick=function(t,n,r){return e.setRoomRole(t,n,"none",r)},e.invite=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];Array.isArray(n)||(n=[n]),e.sendMessage({muc:{invite:n,type:"info"},to:t})},e.directInvite=function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};e.sendMessage({muc:Object.assign(Object.assign({},r),{jid:t,type:"direct-invite"}),to:n})},e.declineInvite=function(t,n,r){e.sendMessage({muc:{decline:{reason:r,to:n},type:"info"},to:t})},e.changeNick=function(t,n){var r=ia(),i=ye(t,n),a=_e(t);return new Promise((function(t,n){function o(n){a.has(Te(n.from))&&n.muc.statusCodes&&n.muc.statusCodes.includes(Sa.SelfPresence)&&(e.off("muc:available",o),e.off("presence:id:".concat(r),s),t(n))}function s(i){a.has(Te(i.from))&&i.id===r&&(e.off("muc:available",o),e.off("presence:id:".concat(r),s),"error"===i.type?n(i):t(i))}e.on("muc:available",o),e.on("presence:id:".concat(r),s),e.sendPresence({id:r,to:i})}))},e.setSubject=function(t,n){e.sendMessage({subject:n,to:t,type:"groupchat"})},e.getReservedNick=function(n){return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){var r,i;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.getDiscoInfo(n,"x-roomuser-item");case 3:if(r=t.sent,!(i=r.identities[0]).name){t.next=9;break}return t.abrupt("return",i.name);case 9:throw new Error("No nickname reserved");case 10:t.next=15;break;case 12:throw t.prev=12,t.t0=t.catch(0),new Error("No nickname reserved");case 15:case"end":return t.stop()}}),t,null,[[0,12]])})))},e.requestRoomVoice=function(t){e.sendMessage({forms:[{fields:[{name:"FORM_TYPE",type:"hidden",value:"http://jabber.org/protocol/muc#request"},{name:"muc#role",type:"text-single",value:"participant"}],type:"submit"}],to:t})},e.setRoomAffiliation=function(t,n,r,i){return e.sendIQ({muc:{type:"user-list",users:[{affiliation:r,jid:n,reason:i}]},to:t,type:"set"})},e.setRoomRole=function(t,n,r,i){return e.sendIQ({muc:{type:"user-list",users:[{nick:n,reason:i,role:r}]},to:t,type:"set"})},e.getRoomMembers=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{affiliation:"member"};return e.sendIQ({muc:{type:"user-list",users:[n]},to:t,type:"get"})},e.getRoomConfig=function(n){return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){var r;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.sendIQ({muc:{type:"configure"},to:n,type:"get"});case 2:if((r=t.sent).muc.form){t.next=5;break}throw new Error("No configuration form returned");case 5:return t.abrupt("return",r.muc.form);case 6:case"end":return t.stop()}}),t)})))},e.configureRoom=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.sendIQ({muc:{form:Object.assign(Object.assign({},n),{type:"submit"}),type:"configure"},to:t,type:"set"})},e.destroyRoom=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.sendIQ({muc:{destroy:n,type:"configure"},to:t,type:"set"})},e.getUniqueRoomName=function(e){return Object(A.__awaiter)(this,void 0,void 0,b.a.mark((function t(){var n;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.sendIQ({muc:{type:"unique"},to:e,type:"get"});case 2:if((n=t.sent).muc.name){t.next=5;break}throw new Error("No unique name returned");case 5:return t.abrupt("return",n.muc.name);case 6:case"end":return t.stop()}}),t,this)})))},e.getBookmarks=function(){return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){var n;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.getPrivateData("bookmarks");case 2:if((n=t.sent)&&n.rooms){t.next=5;break}return t.abrupt("return",[]);case 5:return t.abrupt("return",n.rooms);case 6:case"end":return t.stop()}}),t)})))},e.setBookmarks=function(t){return e.setPrivateData("bookmarks",{rooms:t})},e.addBookmark=function(n){return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){var r,i,a,o,s,c;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.getBookmarks();case 2:r=t.sent,i=[],a=!1,o=F(r);try{for(o.s();!(s=o.n()).done;)we((c=s.value).jid,n.jid)?(i.push(Object.assign(Object.assign({},c),n)),a=!0):i.push(c)}catch(e){o.e(e)}finally{o.f()}return a||i.push(n),t.abrupt("return",e.setBookmarks(i));case 9:case"end":return t.stop()}}),t)})))},e.removeBookmark=function(n){return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){var r,i;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.getBookmarks();case 2:return r=t.sent,i=r.filter((function(e){return!we(e.jid,n)})),t.abrupt("return",e.setBookmarks(i));case 5:case"end":return t.stop()}}),t)})))}}function Oo(e){e.disco.addFeature(Yn),e.disco.addFeature(Vn),e.disco.addFeature(Kn),e.disco.addFeature(cr),e.disco.addFeature(Xn),e.disco.addFeature(ir(Yn)),e.disco.addFeature(ir(Vn)),e.disco.addFeature(ir(Kn)),e.disco.addFeature(ir(cr)),e.disco.addFeature(ir(Xn)),e.publishActivity=function(t){return e.publish("",Yn,Object.assign({itemType:Yn},t))},e.publishGeoLoc=function(t){return e.publish("",Vn,Object.assign({itemType:Vn},t))},e.publishMood=function(t){return e.publish("",Kn,Object.assign({itemType:Kn},t))},e.publishNick=function(t){return e.publish("",cr,{itemType:cr,nick:t})},e.publishTune=function(t){return e.publish("",Xn,Object.assign({itemType:Xn},t))},e.on("pubsub:published",(function(t){var n=t.pubsub.items.published[0].content;switch(t.pubsub.items.node){case Yn:return e.emit("activity",{activity:n,jid:t.from});case Vn:return e.emit("geoloc",{geoloc:n,jid:t.from});case Kn:return e.emit("mood",{jid:t.from,mood:n});case cr:return e.emit("nick",{jid:t.from,nick:n.nick});case Xn:return e.emit("tune",{jid:t.from,tune:t.pubsub.items.published[0].content})}}))}function Ao(e){var t=this;e.disco.addFeature("".concat(er,"#SubID"),er),e.on("message",(function(t){!function(e){return!!e.pubsub&&!(e.pubsub.context&&"user"!==e.pubsub.context||!e.pubsub.affiliations)}(t)?function(e){return!!e.pubsub}(t)&&(e.emit("pubsub:event",t),!function(e){return!!e.pubsub.items&&!!e.pubsub.items.published}(t)?!function(e){return!!e.pubsub.items&&!!e.pubsub.items.retracted}(t)?!function(e){return"purge"===e.pubsub.eventType}(t)?!function(e){return"delete"===e.pubsub.eventType}(t)?!function(e){return"subscription"===e.pubsub.eventType}(t)?function(e){return"configuration"===e.pubsub.eventType}(t)&&e.emit("pubsub:config",t):e.emit("pubsub:subscription",t):e.emit("pubsub:deleted",t):e.emit("pubsub:purged",t):e.emit("pubsub:retracted",t):e.emit("pubsub:published",t)):e.emit("pubsub:affiliations",t)})),e.subscribeToNode=function(n,r){return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){var i,a,o,s;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i={},"string"==typeof r?(i.node=r,i.jid=Te(e.jid)):(i.node=r.node,i.jid=r.jid||(r.useBareJID?Te(e.jid):e.jid),a=r.options),t.next=4,e.sendIQ({pubsub:{context:"user",subscribe:i,subscriptionOptions:a?{form:a}:void 0},to:n,type:"set"});case 4:return o=t.sent,s=o.pubsub.subscription||{},o.pubsub.subscriptionOptions&&(s.options=o.pubsub.subscriptionOptions.form),t.abrupt("return",s);case 8:case"end":return t.stop()}}),t)})))},e.unsubscribeFromNode=function(n,r){return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){var i,a;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i={},"string"==typeof r?(i.node=r,i.jid=Te(e.jid)):(i.node=r.node,i.subid=r.subid,i.jid=r.jid||(r.useBareJID?Te(e.jid):e.jid)),t.next=4,e.sendIQ({pubsub:{context:"user",unsubscribe:i},to:n,type:"set"});case 4:if((a=t.sent).pubsub&&a.pubsub.subscription){t.next=7;break}return t.abrupt("return",Object.assign(Object.assign({},i),{state:"none"}));case 7:return t.abrupt("return",a.pubsub.subscription);case 8:case"end":return t.stop()}}),t)})))},e.publish=function(t,n,r,i){return e.sendIQ({pubsub:{context:"user",publish:{item:{content:r,id:i},node:n}},to:t,type:"set"})},e.getItem=function(n,r,i){return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){var a;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.sendIQ({pubsub:{context:"user",fetch:{items:[{id:i}],node:r}},to:n,type:"get"});case 2:return a=t.sent,t.abrupt("return",a.pubsub.fetch.items[0]);case 4:case"end":return t.stop()}}),t)})))},e.getItems=function(n,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){var a,o;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.sendIQ({pubsub:{context:"user",fetch:{max:i.max,node:r},paging:i},to:n,type:"get"});case 2:return a=t.sent,(o=a.pubsub.fetch).paging=a.pubsub.paging,t.abrupt("return",o);case 6:case"end":return t.stop()}}),t)})))},e.retract=function(t,n,r,i){return e.sendIQ({pubsub:{context:"user",retract:{id:r,node:n,notify:i}},to:t,type:"set"})},e.purgeNode=function(t,n){return e.sendIQ({pubsub:{context:"owner",purge:n},to:t,type:"set"})},e.deleteNode=function(t,n,r){return e.sendIQ({pubsub:{context:"owner",destroy:{node:n,redirect:r}},to:t,type:"set"})},e.createNode=function(n,r,i){return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){var a;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.sendIQ({pubsub:{configure:i?{form:i}:void 0,context:"user",create:{node:r}},to:n,type:"set"});case 2:if((a=t.sent).pubsub&&a.pubsub.create){t.next=5;break}return t.abrupt("return",{node:r});case 5:return t.abrupt("return",a.pubsub.create);case 6:case"end":return t.stop()}}),t)})))},e.getSubscriptions=function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){var i;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.sendIQ({pubsub:{context:"user",subscriptions:r},to:n,type:"get"});case 2:return i=t.sent,t.abrupt("return",i.pubsub.subscriptions);case 4:case"end":return t.stop()}}),t)})))},e.getAffiliations=function(t,n){return e.sendIQ({pubsub:{affiliations:{node:n}},to:t,type:"get"})},e.getNodeSubscribers=function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return"string"==typeof n?r.node=n:r=Object.assign(Object.assign({},r),n),e.sendIQ({pubsub:{context:"owner",subscriptions:r},to:t,type:"get"})},e.updateNodeSubscriptions=function(t,n,r){return e.sendIQ({pubsub:{context:"owner",subscriptions:{items:r,node:n}},to:t,type:"set"})},e.getNodeAffiliations=function(n,r){return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){var i;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.sendIQ({pubsub:{affiliations:{node:r},context:"owner"},to:n,type:"get"});case 2:return i=t.sent,t.abrupt("return",i.pubsub.affiliations);case 4:case"end":return t.stop()}}),t)})))},e.updateNodeAffiliations=function(t,n,r){return e.sendIQ({pubsub:{affiliations:{items:r,node:n},context:"owner"},to:t,type:"set"})},e.getNodeConfig=function(n,r){return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){var i;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.sendIQ({pubsub:{configure:{node:r},context:"owner"},to:n,type:"get"});case 2:return i=t.sent,t.abrupt("return",i.pubsub.configure.form||{});case 4:case"end":return t.stop()}}),t)})))},e.getDefaultNodeConfig=function(n){return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){var r;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.sendIQ({pubsub:{context:"owner",defaultConfiguration:{}},to:n,type:"get"});case 2:return r=t.sent,t.abrupt("return",r.pubsub.defaultConfiguration.form||{});case 4:case"end":return t.stop()}}),t)})))},e.configureNode=function(n,r,i){return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e.sendIQ({pubsub:{configure:{form:i,node:r},context:"owner"},to:n,type:"set"}));case 1:case"end":return t.stop()}}),t)})))},e.getDefaultSubscriptionOptions=function(n){return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){var r;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.sendIQ({pubsub:{defaultSubscriptionOptions:{}},to:n,type:"get"});case 2:return r=t.sent,t.abrupt("return",r.pubsub.defaultSubscriptionOptions.form||{});case 4:case"end":return t.stop()}}),t)})))}}function Ro(e){var t=this;function n(t,n){return Object(A.__awaiter)(this,void 0,void 0,b.a.mark((function r(){return b.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,e.sendIQ({blockList:{action:t,jids:[n]},type:"set"});case 2:case"end":return r.stop()}}),r)})))}e.on("iq:set:roster",(function(t){if(!_e(e.jid).has(t.from))return e.sendIQError(t,{error:{condition:"service-unavailable",type:"cancel"}});e.emit("roster:update",t),e.sendIQResult(t)})),e.on("iq:set:blockList",(function(t){if(!_e(e.jid).has(t.from))return e.sendIQError(t,{error:{condition:"service-unavailable",type:"cancel"}});var n=t.blockList;e.emit(n.action,{jids:n.jids||[]}),e.sendIQResult(t)})),e.getRoster=function(){return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){var n,r;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.sendIQ({roster:{version:e.config.rosterVer},type:"get"});case 2:if(!(n=t.sent).roster){t.next=10;break}return(r=n.roster.version)&&(e.config.rosterVer=r,e.emit("roster:ver",r)),n.roster.items=n.roster.items||[],t.abrupt("return",n.roster);case 10:return t.abrupt("return",{items:[]});case 11:case"end":return t.stop()}}),t)})))},e.updateRosterItem=function(n){return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.sendIQ({roster:{items:[n]},type:"set"});case 2:case"end":return t.stop()}}),t)})))},e.removeRosterItem=function(t){return e.updateRosterItem({jid:t,subscription:"remove"})},e.subscribe=function(t){e.sendPresence({type:"subscribe",to:t})},e.unsubscribe=function(t){e.sendPresence({type:"unsubscribe",to:t})},e.acceptSubscription=function(t){e.sendPresence({type:"subscribed",to:t})},e.denySubscription=function(t){e.sendPresence({type:"unsubscribed",to:t})},e.getBlocked=function(){return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){var n;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.sendIQ({blockList:{action:"list"},type:"get"});case 2:return n=t.sent,t.abrupt("return",Object.assign({jids:[]},n.blockList));case 4:case"end":return t.stop()}}),t)})))},e.block=function(e){return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",n("block",e));case 1:case"end":return t.stop()}}),t)})))},e.unblock=function(e){return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",n("unblock",e));case 1:case"end":return t.stop()}}),t)})))},e.goInvisible=function(){var n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.sendIQ({type:"set",visiblity:{probe:n,type:"invisible"}});case 2:case"end":return t.stop()}}),t)})))},e.goVisible=function(){return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.sendIQ({type:"set",visiblity:{type:"visible"}});case 2:case"end":return t.stop()}}),t)})))}}function No(e){var t=this;e.registerFeature("sasl",100,(function(n,r){return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){var i,a,o,s=this;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=e.sasl.createMechanism(n.sasl.mechanisms),a=function t(n){return Object(A.__awaiter)(s,void 0,void 0,b.a.mark((function a(){var o,s,c;return b.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(i){a.next=2;break}return a.abrupt("return");case 2:a.t0=n.type,a.next="success"===a.t0?5:"challenge"===a.t0?11:"failure"===a.t0||"abort"===a.t0?27:31;break;case 5:return e.features.negotiated.sasl=!0,e.off("sasl",t),e.emit("auth:success",e.config.credentials),e.transport&&(e.transport.authenticated=!0),r("restart"),a.abrupt("return");case 11:return i.processChallenge(n.value),a.prev=12,a.next=15,e.getCredentials();case 15:o=a.sent,(s=i.createResponse(o))||""===s?e.send("sasl",{type:"response",value:s}):e.send("sasl",{type:"response"}),(c=i.getCacheableCredentials())&&(e.config.credentials||(e.config.credentials={}),e.config.credentials=Object.assign(Object.assign({},e.config.credentials),c),e.emit("credentials:update",e.config.credentials)),a.next=26;break;case 22:a.prev=22,a.t1=a.catch(12),console.error(a.t1),e.send("sasl",{type:"abort"});case 26:return a.abrupt("return");case 27:return e.off("sasl",t),e.emit("auth:failed"),r("disconnect","authentication failed"),a.abrupt("return");case 31:case"end":return a.stop()}}),a,null,[[12,22]])})))},i){t.next=6;break}return e.off("sasl",a),e.emit("auth:failed"),t.abrupt("return",r("disconnect","authentication failed"));case 6:return e.on("sasl",a),e.once("--reset-stream-features",(function(){e.features.negotiated.sasl=!1,e.off("sasl",a)})),t.prev=8,t.next=11,e.getCredentials();case 11:o=t.sent,e.send("sasl",{mechanism:i.name,type:"auth",value:i.createResponse(o)}),t.next=19;break;case 15:t.prev=15,t.t0=t.catch(8),console.error(t.t0),e.send("sasl",{type:"abort"});case 19:case"end":return t.stop()}}),t,null,[[8,15]])})))}))}function Co(e){var t=this;function n(t){return Object(A.__awaiter)(this,void 0,void 0,b.a.mark((function n(){var r,i,a,o,s,c,u;return b.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,e.getDiscoInfo(t);case 2:if((r=n.sent).features&&r.features.includes(Rr)){n.next=5;break}return n.abrupt("return");case 5:a=F(r.extensions||[]),n.prev=6,a.s();case 8:if((o=a.n()).done){n.next=17;break}if(s=o.value,!(c=s.fields||[]).some((function(e){return"FORM_TYPE"===e.name&&e.value===Rr}))){n.next=15;break}return(u=c.find((function(e){return"max-file-size"===e.name})))&&(i=parseInt(u.value,10)),n.abrupt("return",{jid:t,maxSize:i});case 15:n.next=8;break;case 17:n.next=22;break;case 19:n.prev=19,n.t0=n.catch(6),a.e(n.t0);case 22:return n.prev=22,a.f(),n.finish(22);case 25:case"end":return n.stop()}}),n,null,[[6,19,22,25]])})))}e.disco.addFeature(dr),e.getBits=function(n,r){return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){var i;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.sendIQ({bits:{cid:r},to:n,type:"get"});case 2:return i=t.sent,t.abrupt("return",i.bits);case 4:case"end":return t.stop()}}),t)})))},e.getUploadService=function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:xe(e.jid);return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){var i,a,o,s,c,u;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n(r);case 2:if(!(i=t.sent)){t.next=5;break}return t.abrupt("return",i);case 5:return t.next=7,e.getDiscoItems(r);case 7:a=t.sent,o=F(a.items||[]),t.prev=9,o.s();case 11:if((s=o.n()).done){t.next=22;break}if((c=s.value).jid){t.next=15;break}return t.abrupt("continue",20);case 15:return t.next=17,n(c.jid);case 17:if(!(u=t.sent)){t.next=20;break}return t.abrupt("return",u);case 20:t.next=11;break;case 22:t.next=27;break;case 24:t.prev=24,t.t0=t.catch(9),o.e(t.t0);case 27:return t.prev=27,o.f(),t.finish(27);case 30:throw new Error("No upload service discovered on: "+r);case 31:case"end":return t.stop()}}),t,null,[[9,24,27,30]])})))},e.getUploadSlot=function(n,r){return Object(A.__awaiter)(t,void 0,void 0,b.a.mark((function t(){var i;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.sendIQ({httpUpload:Object.assign({type:"request"},r),to:n,type:"get"});case 2:return i=t.sent,t.abrupt("return",i.httpUpload);case 4:case"end":return t.stop()}}),t)})))}}function Po(e){e.use(Wa),e.use(va),e.use(Xi),e.use(la),e.use(Ya),e.use(No)}function Lo(e){e.use(Ki),e.use(Eo),e.use(Yi),e.use($i),e.use(Ha),e.use(yo),e.use(wo),e.use(Io),e.use(Oo),e.use(Ao),e.use(Ro),e.use(Co)}var qo={aliases:["features.legacySession","iq.legacySession"],element:"session",fields:{optional:Qt(null,"optional")},namespace:bn},Fo=[{aliases:["atomentry"].concat(d()([{path:"pubsubcontent",contextField:"itemType"},{path:"pubsubitem.content",contextField:"itemType"},{path:"pubsubeventitem.content",contextField:"itemType"},{path:"iq.pubsub.publish.items",contextField:"itemType"}])),element:"entry",fields:{id:Ut(null,"id"),published:Jt(null,"published"),updated:Jt(null,"updated")},namespace:vn,type:vn,typeField:"itemType"},{element:"summary",fields:{text:Ft(),type:St("type","text")},namespace:vn,path:"atomentry.summary"},{element:"title",fields:{text:Ft(),type:St("type","text")},namespace:vn,path:"atomentry.title"},{aliases:[{path:"atomentry.links",multiple:!0}],element:"link",fields:{href:St("href"),mediaType:St("type"),rel:St("rel")},namespace:vn},{aliases:[{path:"atomentry.authors",multiple:!0}],element:"author",fields:{name:Ut(null,"name"),uri:Ut(null,"uri"),email:Ut(null,"email")},namespace:vn},{aliases:[{path:"atomentry.contributors",multiple:!0}],element:"contributor",fields:{name:Ut(null,"name"),uri:Ut(null,"uri"),email:Ut(null,"email")},namespace:vn},{aliases:[{path:"atomentry.categories",multiple:!0}],element:"category",fields:{term:St("term"),scheme:St("scheme"),label:St("label")},namespace:vn},{element:"content",fields:{text:Ft(),type:St("type","text")},namespace:vn,path:"atomentry.content"},{element:"rights",fields:{text:Ft(),type:St("type","text")},namespace:vn,path:"atomentry.rights"}],Mo={defaultType:"stream",element:"stream",fields:{from:St("from"),id:St("id"),lang:Bt(),to:St("to"),version:St("version")},namespace:wn,path:"stream",type:"stream",typeField:"action"},Do={element:"features",namespace:wn,path:"features"},Bo={element:"error",fields:{alternateLanguageText:on(Sn,"text"),condition:en(Sn,Object.values(ya),ya.UndefinedCondition),seeOtherHost:Ut(Sn,ya.SeeOtherHost),text:Ut(Sn,"text")},namespace:wn,path:"streamError"},Uo=Object.values(ma).map((function(e){return{aliases:["stanzaError","message.error","presence.error","iq.error"],defaultType:gn,element:"error",fields:{alternateLanguageText:on(_n,"text"),by:qr("by"),condition:en(_n,Object.values(ba),ba.UndefinedCondition),gone:Ut(_n,ba.Gone),redirect:Ut(_n,ba.Redirect),text:Ut(_n,"text"),type:St("type")},namespace:e,type:e,typeField:"streamType"}})),zo=new Set(["from","id","lang","to","type","payloadType","error","streamType"]),Jo=Object.values(ma).map((function(e){return{childrenExportOrder:{error:2e5},defaultType:gn,element:"iq",fields:{from:qr("from"),id:St("id"),lang:Bt(),payloadType:{order:-1e4,importer:function(e,t){if("get"===t.data.type||"set"===t.data.type){if(1!==e.children.filter((function(e){return"string"!=typeof e})).length)return"invalid-payload-count";var n=Object.keys(t.data).filter((function(e){return!zo.has(e)}));return 1!==n.length?"unknown-payload":n[0]}}},to:qr("to"),type:St("type")},namespace:e,path:"iq",type:e,typeField:"streamType"}})),Go=Object.values(ma).map((function(e){return{childrenExportOrder:{error:2e5},defaultType:gn,element:"message",fields:{from:qr("from"),id:St("id"),lang:Bt(),to:qr("to")},namespace:e,path:"message",type:e,typeField:"streamType"}})),Vo=Object.values(ma).map((function(e){return{childrenExportOrder:{error:2e5},defaultType:gn,element:"presence",fields:{from:qr("from"),id:St("id"),lang:Bt(),to:qr("to")},namespace:e,path:"presence",type:e,typeField:"streamType"}})),Ho=[{element:"mechanisms",fields:{mechanisms:nn(null,"mechanism")},namespace:yn,path:"features.sasl"},{element:"abort",namespace:yn,path:"sasl",type:"abort",typeField:"type"},{element:"auth",fields:{mechanism:St("mechanism"),value:Dt("base64")},namespace:yn,path:"sasl",type:"auth",typeField:"type"},{element:"challenge",fields:{value:Dt("base64")},namespace:yn,path:"sasl",type:"challenge",typeField:"type"},{element:"response",fields:{value:Dt("base64")},namespace:yn,path:"sasl",type:"response",typeField:"type"},{element:"success",fields:{value:Dt("base64")},namespace:yn,path:"sasl",type:"success",typeField:"type"},{element:"failure",fields:{alternateLanguageText:on(yn,"text"),condition:en(yn,Object.values(ga)),text:Ut(yn,"text")},namespace:yn,path:"sasl",type:"failure",typeField:"type"}],Wo=[{aliases:["features.tls"],defaultType:"start",element:"starttls",fields:{required:Qt(null,"required")},namespace:xn,path:"tls",type:"start",typeField:"type"},{element:"proceed",namespace:xn,path:"tls",type:"proceed",typeField:"type"},{element:"failure",namespace:xn,path:"tls",type:"failure",typeField:"type"}],Qo={aliases:["features.bind","iq.bind"],element:"bind",fields:{jid:Ut(null,"jid"),resource:Ut(null,"resource")},namespace:mn},Ko=[Mo,Do,Bo].concat(d()(Uo),Ho,Wo,d()(Jo),d()(Go),d()(Vo),[Qo]),Yo=[Jr({rosterPreApproval:Qt("urn:xmpp:features:pre-approval","sub"),rosterVersioning:Qt("urn:xmpp:features:rosterver","ver")}),Br({alternateLanguageBodies:on(null,"body"),alternateLanguageSubjects:on(null,"subject"),body:Ut(null,"body"),hasSubject:Qt(null,"subject"),parentThread:Nt(null,"thread","parent"),subject:Ut(null,"subject"),thread:Ut(null,"thread"),type:St("type")}),Ur({alternateLanguageStatuses:on(null,"status"),priority:Gt(null,"priority",0),show:Ut(null,"show"),status:Ut(null,"status"),type:St("type")}),{element:"query",fields:{version:St("ver",void 0,{emitEmpty:!0})},namespace:"jabber:iq:roster",path:"iq.roster"},{aliases:[{path:"iq.roster.items",multiple:!0}],element:"item",fields:{groups:nn(null,"group"),jid:qr("jid"),name:St("name"),pending:St("ask"),preApproved:xt("approved"),subscription:St("subscription")},namespace:"jabber:iq:roster"}],Xo=[{element:"open",fields:{from:St("from"),id:St("id"),lang:Bt(),to:St("to"),version:St("version")},namespace:kn,path:"stream",type:"open"},{element:"close",fields:{seeOtherURI:St("see-other-uri")},namespace:kn,path:"stream",type:"close"}],$o=[{aliases:[{path:"message.forms",multiple:!0}],element:"x",fields:{instructions:Object.assign(Object.assign({},nn(null,"instructions")),{exportOrder:2}),reported:Object.assign(Object.assign({},cn(null,"reported","dataformField",!0)),{exportOrder:3}),title:Object.assign(Object.assign({},Ut(null,"title")),{exportOrder:1}),type:St("type")},namespace:Tn,optionalNamespaces:{xdv:$n},path:"dataform"},{aliases:[{path:"dataform.fields",multiple:!0},{path:"dataform.items.fields",multiple:!0}],element:"field",fields:{description:Ut(null,"desc"),label:St("label"),name:St("var"),rawValues:Object.assign(Object.assign({},nn(null,"value")),{exporter:function(){return null}}),required:Qt(null,"required"),type:St("type"),value:{importer:function(e,t){var n=e.getAttribute("type"),r=nn(Tn,"value").importer(e,t),i=r[0];switch(n){case wa.TextMultiple:case wa.ListMultiple:case wa.JIDMultiple:return r;case wa.Hidden:case wa.Fixed:return 1===r.length?i:r;case wa.Boolean:if(i)return"1"===i||"true"===i;break;default:return i}},exporter:function(e,t,n){var r=nn(null,"value"),i=[],a=n.data&&n.data.rawValues?n.data.rawValues[0]:void 0;if("boolean"==typeof t)i="true"===a||"false"===a?[a]:[t?"1":"0"];else if(Array.isArray(t)){var o,s=F(t);try{for(s.s();!(o=s.n()).done;){var c=o.value;i.push(c.toString())}}catch(e){s.e(e)}finally{s.f()}}else i=[t.toString()];r.exporter(e,i,Object.assign({},n,{namespace:Tn}))}}},namespace:Tn,path:"dataformField"},{aliases:[{path:"dataform.fields.options",multiple:!0}],element:"option",fields:{label:St("label"),value:Ut(null,"value")},namespace:Tn},{aliases:[{path:"dataform.items",multiple:!0}],element:"item",namespace:Tn},{element:"validate",fields:{listMax:Pt(null,"list-range","max"),listMin:Pt(null,"list-range","min"),method:en(null,["basic","open","range","regex"],"basic"),rangeMax:Nt(null,"range","max"),rangeMin:Nt(null,"range","min"),regex:Ut(null,"regex"),type:St("datatype","xs:string")},namespace:$n,path:"dataform.fields.validation"}],Zo=[{aliases:["presence.legacyLastActivity","iq.lastActivity"],element:"query",fields:{seconds:kt("seconds"),status:Ft()},namespace:"jabber:iq:last"}],es=[{element:"query",fields:{activeList:Nt(null,"active","name"),defaultList:Nt(null,"default","name")},namespace:jn,path:"iq.privacy"},{aliases:[{path:"iq.privacy.lists",multiple:!0}],element:"list",fields:{name:St("name")},namespace:jn},{aliases:[{path:"iq.privacy.lists.items",multiple:!0}],element:"item",fields:{action:St("action"),incomingPresence:Qt(null,"presence-in"),iq:Qt(null,"iq"),messages:Qt(null,"message"),order:kt("order"),outgoingPresence:Qt(null,"presence-out"),type:St("type"),value:St("value")},namespace:jn}],ts=[{aliases:["iq.disco","message.disco","features.disco"],childrenExportOrder:{identities:1,features:2,extensions:3},element:"query",fields:{features:rn(null,"feature","var"),node:St("node")},namespace:En,path:"disco",type:"info",typeField:"type"},{aliases:[{path:"disco.identities",selector:"info",multiple:!0}],element:"identity",fields:{category:St("category"),lang:Bt(),name:St("name"),type:St("type")},namespace:En},{aliases:[{path:"disco.items",multiple:!0,selector:"items"}],element:"item",fields:{jid:qr("jid"),name:St("name"),node:St("node")},namespace:In},{aliases:[{path:"disco.items",multiple:!0,selector:"info"}],element:"item",fields:{category:qr("category"),lang:Bt(),name:St("name"),type:St("type")},namespace:En},Dr(Tn,"x",[{path:"disco.extensions",multiple:!0,selector:"info"}]),Dr(qn,"set",[{path:"disco.paging",selector:"items"}]),{aliases:["iq.disco","message.disco","features.disco"],element:"query",fields:{node:St("node")},namespace:In,path:"disco",type:"items",typeField:"type"}],ns=[Br({addresses:cn(On,"addresses","extendedAddress",!0)}),Ur({addresses:cn(On,"addresses","extendedAddress",!0)}),{element:"address",fields:{alternateLanguageDescriptions:on(null,"desc"),delivered:xt("delivered"),description:St("desc"),jid:qr("jid"),node:St("node"),type:St("type"),uri:St("uri")},namespace:On,path:"extendedAddress"}],rs=[Dr(Tn,"x",[{path:"iq.muc.form",selector:"configure"}]),{defaultType:"info",element:"x",fields:{password:Ut(null,"password")},namespace:An,path:"presence.muc",type:"join",typeField:"type"},{aliases:[{path:"presence.muc.history",selector:"join"}],element:"history",fields:{maxCharacters:kt("maxchars"),maxStanzas:kt("maxstanzas"),seconds:kt("seconds"),since:jt("since")},namespace:An},{aliases:["presence.muc","message.muc"],defaultType:"info",element:"x",fields:{action:en(null,["invite","decline","destroy"]),actor:cn(null,"item","mucactor"),affiliation:Nt(null,"item","affiliation"),jid:Fr(null,"item","jid"),nick:Nt(null,"item","nick"),password:Ut(null,"password"),reason:Yt([{namespace:null,element:"item"},{namespace:null,element:"reason"}]),role:Nt(null,"item","role"),statusCodes:rn(null,"status","code")},namespace:Cn,type:"info",typeField:"type",typeOrder:1},{element:"actor",fields:{jid:qr("jid"),nick:St("nick")},namespace:Cn,path:"mucactor"},{element:"destroy",fields:{jid:qr("jid"),password:Ut(null,"password"),reason:Ut(null,"reason")},namespace:Cn,path:"presence.muc.destroy"},{aliases:[{path:"message.muc.invite",multiple:!0}],element:"invite",fields:{continue:Qt(null,"continue"),from:qr("from"),reason:Ut(null,"reason"),thread:Nt(null,"continue","thread"),to:qr("to")},namespace:Cn},{element:"decline",fields:{from:qr("from"),reason:Ut(null,"reason"),to:qr("to")},namespace:Cn,path:"message.muc",type:"decline"},{element:"query",namespace:Rn,path:"iq.muc",type:"user-list",typeField:"type"},{aliases:[{path:"iq.muc.users",multiple:!0,selector:"user-list"}],element:"item",fields:{affiliation:St("affiliation"),jid:qr("jid"),nick:St("nick"),reason:Ut(null,"reason"),role:St("role")},namespace:Rn},{aliases:["iq.muc.users.actor"],element:"actor",fields:{jid:qr("jid"),nick:St("nick")},namespace:Rn},{element:"query",namespace:Nn,path:"iq.muc",type:"configure",typeField:"type"},{aliases:[{path:"iq.muc.destroy",selector:"configure"}],element:"destroy",fields:{jid:qr("jid"),password:Ut(null,"password"),reason:Ut(null,"reason")},namespace:Nn},{element:"x",fields:{action:un("invite"),continue:xt("continue"),jid:qr("jid"),legacyReason:Ft(),password:St("password"),reason:St("reason"),thread:St("thread")},namespace:"jabber:x:conference",path:"message.muc",type:"direct-invite",typeOrder:2},{element:"unique",fields:{name:Ft()},namespace:"http://jabber.org/protocol/muc#unique",path:"iq.muc",type:"unique"},Br({legacyMUC:{exporter:function(e,t,n){var r=n.registry?n.registry.export("message.muc",Object.assign(Object.assign({},t),{type:"direct-invite"})):void 0;r&&e.appendChild(r)},exportOrder:100001,importer:function(e,t){if(at(e,Cn,"x")[0]){var n=at(e,"jabber:x:conference","x")[0];if(n)return t.registry?t.registry.import(n,Object.assign(Object.assign({},t),{path:"message"})):void 0}},importOrder:-1}})],is=[{aliases:["iq.ibb","message.ibb"],element:"open",fields:{ack:{importer:function(e,t){return"message"!==St("stanza","iq").importer(e,t)},exporter:function(e,t,n){St("stanza").exporter(e,t?"iq":"message",n)}},blockSize:kt("block-size"),sid:St("sid")},namespace:Pn,type:"open",typeField:"action"},{aliases:["iq.ibb","message.ibb"],element:"close",fields:{sid:St("sid")},namespace:Pn,type:"close",typeField:"action"},{aliases:["iq.ibb","message.ibb"],element:"data",fields:{data:Dt("base64"),seq:kt("seq"),sid:St("sid")},namespace:Pn,type:"data",typeField:"action"}],as=[{aliases:[{path:"bookmarkStorage",impliedType:!0},{path:"iq.privateStorage.bookmarks",impliedType:!0}].concat(d()([{path:"pubsubcontent",contextField:"itemType"},{path:"pubsubitem.content",contextField:"itemType"},{path:"pubsubeventitem.content",contextField:"itemType"},{path:"iq.pubsub.publish.items",contextField:"itemType"}])),element:"storage",namespace:"storage:bookmarks",type:"storage:bookmarks",typeField:"itemType"},{aliases:[{path:"bookmarkStorage.rooms",multiple:!0}],element:"conference",fields:{autoJoin:xt("autojoin"),jid:qr("jid"),name:St("name"),nick:Ut(null,"nick"),password:Ut(null,"password")},namespace:"storage:bookmarks"}],os={element:"query",namespace:"jabber:iq:private",path:"iq.privateStorage"},ss=[Dr(Tn,"x",["iq.command.form"]),Gr({commandError:en(Ln,["bad-action","bad-locale","bad-payload","bad-sessionid","malformed-action","session-expired"])}),{element:"command",fields:{action:St("action"),node:St("node"),sid:St("sessionid"),status:St("status")},namespace:Ln,path:"iq.command"},{element:"actions",fields:{complete:Qt(null,"complete"),execute:St("execute"),next:Qt(null,"next"),prev:Qt(null,"prev")},namespace:Ln,path:"iq.command.availableActions"},{aliases:[{path:"iq.command.notes",multiple:!0}],element:"note",fields:{type:St("type"),value:Ft()},namespace:Ln}],cs="vcardTemp.records";function us(e,t){return{aliases:[{multiple:!0,path:cs}],element:e,fields:{value:Ft()},namespace:"vcard-temp",type:t,typeField:"type"}}var ls,fs=[{aliases:[{path:"iq.vcard"}],defaultType:"vcard-temp",element:"vCard",fields:{fullName:Ut(null,"FN")},namespace:"vcard-temp",path:"vcardTemp",type:"vcard-temp",typeField:"format"},{element:"N",fields:{additional:Object.assign(Object.assign({},Ut(null,"MIDDLE")),{order:3}),family:Object.assign(Object.assign({},Ut(null,"FAMILY")),{order:1}),given:Object.assign(Object.assign({},Ut(null,"GIVEN")),{order:2}),prefix:Object.assign(Object.assign({},Ut(null,"PREFIX")),{order:4}),suffix:Object.assign(Object.assign({},Ut(null,"SUFFIX")),{order:5})},namespace:"vcard-temp",path:"vcardTemp.name"},us("NICKNAME","nickname"),us("BDAY","birthday"),us("JABBERID","jid"),us("TZ","timezone"),us("TITLE","title"),us("ROLE","role"),us("URL","url"),us("NOTE","note"),us("SORT-STRING","sort"),us("UID","uid"),us("REV","revision"),us("PRODID","productId"),us("DESC","description"),{aliases:[{multiple:!0,path:cs}],element:"EMAIL",fields:{preferred:Qt(null,"PREF"),types:sn(null,[["home","HOME"],["work","WORK"],["internet","INTERNET"]]),value:Ut(null,"USERID")},namespace:"vcard-temp",type:"email"},{aliases:[{path:cs,multiple:!0}],element:"ORG",fields:{units:Object.assign(Object.assign({},nn(null,"ORGUNIT")),{order:2}),value:Object.assign(Object.assign({},Ut(null,"ORGNAME")),{order:1})},namespace:"vcard-temp",type:"organization",typeField:"type"},{aliases:[{multiple:!0,path:cs}],element:"ADR",fields:{city:Ut(null,"LOCALITY"),code:Ut(null,"PCODE"),country:Ut(null,"CTRY"),pobox:Ut(null,"POBOX"),preferred:Qt(null,"PREF"),region:Ut(null,"REGION"),street:Ut(null,"STREET"),street2:Ut(null,"EXTADD"),types:sn(null,[["home","HOME"],["work","WORK"],["domestic","DOM"],["international","INTL"],["postal","POSTAL"],["parcel","PARCEL"]])},namespace:"vcard-temp",type:"address",typeField:"type"},{aliases:[{multiple:!0,path:cs}],element:"LABEL",fields:{lines:nn(null,"LINE"),preferred:Qt(null,"PREF"),types:sn(null,[["home","HOME"],["work","WORK"]])},namespace:"vcard-temp",type:"addressLabel",typeField:"type"},{aliases:[{multiple:!0,path:cs}],element:"TEL",fields:{preferred:Qt(null,"PREF"),types:sn(null,[["home","HOME"],["work","WORK"],["cell","CELL"],["fax","FAX"],["voice","VOICE"],["msg","MSG"]]),value:Ut(null,"NUMBER","",!0)},namespace:"vcard-temp",type:"tel",typeField:"type"},{aliases:[{multiple:!0,path:cs}],element:"PHOTO",fields:{data:Ut(null,"BINVAL"),mediaType:Ut(null,"TYPE"),url:Ut(null,"EXTVAL")},namespace:"vcard-temp",type:"photo",typeField:"type"},{aliases:[{multiple:!0,path:cs}],element:"LOGO",fields:{data:Ut(null,"BINVAL"),mediaType:Ut(null,"TYPE"),url:Ut(null,"EXTVAL")},namespace:"vcard-temp",type:"logo",typeField:"type"},{aliases:[{multiple:!0,path:cs}],element:"CATEGORIES",fields:{value:nn(null,"KEYWORD")},namespace:"vcard-temp",type:"categories",typeField:"type"}],ps=[Dr(Tn,"x",["iq.search.form"]),Dr(qn,"set",["iq.search.paging"]),{element:"query",fields:{email:Ut(null,"email"),familyName:Ut(null,"last"),givenName:Ut(null,"first"),instructions:Ut(null,"instructions"),nick:Ut(null,"nick")},namespace:"jabber:iq:search",path:"iq.search"},{aliases:[{path:"iq.search.items",multiple:!0}],element:"item",fields:{email:Ut(null,"email"),familyName:Ut(null,"last"),givenName:Ut(null,"first"),jid:qr("jid"),nick:Ut(null,"nick")},namespace:"jabber:iq:search"}],ds={aliases:["iq.pubsub.paging"],element:"set",fields:{after:Ut(null,"after"),before:Ut(null,"before"),count:Gt(null,"count"),first:Ut(null,"first"),firstIndex:Pt(null,"first","index"),index:Gt(null,"index"),last:Ut(null,"last"),max:Gt(null,"max")},namespace:qn,path:"paging"},hs={configurable:Qt(null,"subscribe-options"),configurationRequired:$t([{namespace:null,element:"subscribe-options"},{namespace:null,element:"required"}]),jid:qr("jid"),node:St("node"),state:St("subscription"),subid:St("subid")},vs={node:St("node")},ms=[{aliases:["pubsub","iq.pubsub","message.pubsub"],childrenExportOrder:{configure:0,create:100,publish:100,subscribe:100,subscriptionOptions:0},defaultType:"user",element:"pubsub",fields:{publishOptions:cn(null,"publish-options","dataform")},namespace:Fn,type:"user",typeField:"context"},{aliases:["pubsub","iq.pubsub","message.pubsub"],defaultType:"user",element:"pubsub",fields:{purge:Nt(null,"purge","node")},namespace:Bn,type:"owner",typeField:"context"},Dr(Tn,"x",["iq.pubsub.configure.form","iq.pubsub.defaultConfiguration.form","iq.pubsub.defaultSubscriptionOptions.form","iq.pubsub.subscriptionOptions.form","message.pubsub.configuration.form"]),Dr(qn,"set",["iq.pubsub.fetch.paging"]),Gr({pubsubError:en(Mn,Object.values(xa)),pubsubUnsupportedFeature:Nt(Mn,"unsupported","feature")}),{element:"subscribe",fields:{jid:qr("jid"),node:St("node")},namespace:Fn,path:"iq.pubsub.subscribe"},{element:"unsubscribe",fields:{jid:qr("jid"),node:St("node"),subid:St("subid")},namespace:Fn,path:"iq.pubsub.unsubscribe"},{element:"options",fields:{jid:qr("jid"),node:St("node"),subid:St("subid")},namespace:Fn,path:"iq.pubsub.subscriptionOptions"},{aliases:[{path:"iq.pubsub.subscriptions",selector:"user",impliedType:!0}],element:"subscriptions",fields:{jid:qr("jid"),node:St("node")},namespace:Fn,type:"user"},{aliases:[{path:"iq.pubsub.subscriptions",selector:"owner",impliedType:!0}],element:"subscriptions",fields:{jid:qr("jid"),node:St("node")},namespace:Bn,type:"owner"},{aliases:[{path:"iq.pubsub.subscription",selector:"owner"},{impliedType:!0,multiple:!0,path:"iq.pubsub.subscriptions.items",selector:"owner"}],element:"subscription",fields:hs,namespace:Fn},{aliases:[{path:"iq.pubsub.subscription",selector:"user"},{impliedType:!0,multiple:!0,path:"iq.pubsub.subscriptions.items",selector:"user"}],element:"subscription",fields:hs,namespace:Fn,type:"user"},{aliases:[{impliedType:!0,multiple:!0,path:"iq.pubsub.subscriptions.items",selector:"owner"}],element:"subscription",fields:hs,namespace:Bn,type:"owner"},{aliases:[{path:"iq.pubsub.affiliations",selector:"user",impliedType:!0},{path:"message.pubsub.affiliations",selector:"user",impliedType:!0}],element:"affiliations",fields:vs,namespace:Fn,type:"user"},{aliases:[{path:"iq.pubsub.affiliations",selector:"owner",impliedType:!0}],element:"affiliations",fields:vs,namespace:Bn,type:"owner"},{aliases:[{impliedType:!0,multiple:!0,path:"iq.pubsub.affiliations.items",selector:"user"},{impliedType:!0,multiple:!0,path:"message.pubsub.affiliations.items",selector:"user"}],element:"affiliation",fields:{affiliation:St("affiliation"),jid:qr("jid"),node:St("node")},namespace:Fn,type:"user"},{aliases:[{impliedType:!0,multiple:!0,path:"iq.pubsub.affiliations.items",selector:"owner"}],element:"affiliation",fields:{affiliation:St("affiliation"),jid:qr("jid"),node:St("node")},namespace:Bn,type:"owner"},{element:"create",fields:vs,namespace:Fn,path:"iq.pubsub.create"},{aliases:[{path:"iq.pubsub.destroy",selector:"owner"}],element:"delete",fields:{node:St("node"),redirect:Nt(null,"redirect","uri")},namespace:Bn},{aliases:[{path:"iq.pubsub.configure",selector:"owner",impliedType:!0}],element:"configure",fields:vs,namespace:Bn,type:"owner"},{aliases:[{path:"iq.pubsub.configure",selector:"user",impliedType:!0}],element:"configure",fields:vs,namespace:Fn,type:"user"},{element:"default",fields:{node:St("node")},namespace:Fn,path:"iq.pubsub.defaultSubscriptionOptions"},{element:"default",fields:{},namespace:Bn,path:"iq.pubsub.defaultConfiguration"},{element:"publish",fields:vs,namespace:Fn,path:"iq.pubsub.publish"},{element:"retract",fields:{id:Nt(null,"item","id"),node:St("node"),notify:xt("notify")},namespace:Fn,path:"iq.pubsub.retract"},{element:"items",fields:{max:kt("max_items"),node:St("node")},namespace:Fn,path:"iq.pubsub.fetch"},{aliases:["pubsubitem","iq.pubsub.publish.item",{multiple:!0,path:"iq.pubsub.fetch.items"}],element:"item",fields:{id:St("id"),publisher:qr("publisher")},namespace:Fn},{element:"event",fields:{eventType:en(null,["purge","delete","subscription","configuration","items"])},namespace:Dn,path:"message.pubsub",type:"event",typeField:"context"},{aliases:[{path:"message.pubsub.items.published",multiple:!0}],element:"item",fields:{id:St("id"),publisher:qr("publisher")},namespace:Dn,path:"pubsubeventitem"},{element:"purge",fields:vs,namespace:Dn,path:"message.pubsub.purge"},{element:"delete",fields:{node:St("node"),redirect:Nt(null,"redirect","uri")},namespace:Dn,path:"message.pubsub.delete"},{aliases:[{path:"message.pubsub.subscription",selector:"event",impliedType:!0}],element:"subscription",fields:{expires:(ls="expiry",{importer:function(e){var t=e.getAttribute(ls);return"presence"===t?t:t?new Date(t):void 0},exporter:function(e,t){var n;n="string"==typeof t?t:t.toISOString(),e.setAttribute(ls,n)}}),jid:qr("jid"),node:St("node"),subid:St("subid"),type:St("subscription")},namespace:Dn,type:"event"},{element:"configuration",fields:vs,namespace:Dn,path:"message.pubsub.configuration"},{element:"items",fields:{node:St("node"),retracted:rn(null,"retract","id")},namespace:Dn,path:"message.pubsub.items"}],gs=[{element:"query",fields:{activate:Ut(null,"activate"),address:St("dstaddr"),candidateUsed:Fr(null,"streamhost-used","jid"),mode:St("mode","tcp"),sid:St("sid"),udpSuccess:Nt(null,"udpsuccess","dstaddr")},namespace:Un,path:"iq.socks5"},{aliases:[{multiple:!0,path:"iq.socks5.candidates"}],element:"streamhost",fields:{host:St("host"),jid:qr("jid"),port:kt("port"),uri:St("uri")},namespace:Un}],ys=[{aliases:[{multiple:!0,path:"message.links"}],element:"x",fields:{description:Ut(null,"desc"),url:Ut(null,"url")},namespace:zn},{element:"query",fields:{description:Ut(null,"desc"),url:Ut(null,"url")},namespace:"jabber:iq:oob",path:"iq.transferLink"}],bs={element:"html",fields:{alternateLanguageBodies:fn(Jn,"body","xhtmlim"),body:ln(Jn,"body","xhtmlim")},namespace:Gn,path:"message.html"},_s=[Jr({inbandRegistration:Qt("http://jabber.org/features/iq-register","register")}),Dr(Tn,"x",["iq.account.form"]),Dr(zn,"x",["iq.account.registrationLink"]),{element:"query",fields:{address:Ut(null,"address"),date:Jt(null,"date"),email:Ut(null,"email"),familyName:Ut(null,"last"),fullName:Ut(null,"name"),givenName:Ut(null,"first"),instructions:Ut(null,"instructions"),key:Ut(null,"key"),locality:Ut(null,"city"),misc:Ut(null,"misc"),nick:Ut(null,"nick"),password:Ut(null,"password"),phone:Ut(null,"phone"),postalCode:Ut(null,"zip"),region:Ut(null,"state"),registered:Qt(null,"registered"),remove:Qt(null,"remove"),text:Ut(null,"text"),uri:Ut(null,"uri"),username:Ut(null,"username")},namespace:"jabber:iq:register",path:"iq.account"}],ws={aliases:[{path:"message.geoloc",impliedType:!0},{path:"dataform.fields.geoloc",impliedType:!0}].concat(d()([{path:"pubsubcontent",contextField:"itemType"},{path:"pubsubitem.content",contextField:"itemType"},{path:"pubsubeventitem.content",contextField:"itemType"},{path:"iq.pubsub.publish.items",contextField:"itemType"}])),element:"geoloc",fields:{accuracy:Vt(null,"accuracy"),altitude:Vt(null,"alt"),altitudeAccuracy:Vt(null,"altaccuracy"),area:Ut(null,"area"),building:Ut(null,"building"),country:Ut(null,"country"),countryCode:Ut(null,"countrycode"),datum:Ut(null,"datum"),description:Ut(null,"description"),error:Vt(null,"error"),floor:Ut(null,"floor"),heading:Vt(null,"bearing"),lang:Bt(),latitude:Vt(null,"lat"),locality:Ut(null,"locality"),longitude:Vt(null,"lon"),postalCode:Ut(null,"postalcode"),region:Ut(null,"region"),room:Ut(null,"room"),speed:Vt(null,"speed"),street:Ut(null,"street"),text:Ut(null,"text"),timestamp:Jt(null,"timestamp"),tzo:Wt(null,"tzo"),uri:Ut(null,"uri")},namespace:Vn,type:Vn},Ss=[{aliases:[{path:"pubsubcontent",contextField:"itemType"},{path:"pubsubitem.content",contextField:"itemType"},{path:"pubsubeventitem.content",contextField:"itemType"},{path:"iq.pubsub.publish.items",contextField:"itemType"}],element:"data",fields:{data:Dt("base64")},namespace:Hn,path:"avatar",type:Hn,typeField:"itemType"},{aliases:[{path:"avatar",impliedType:!0}].concat(d()([{path:"pubsubcontent",contextField:"itemType"},{path:"pubsubitem.content",contextField:"itemType"},{path:"pubsubeventitem.content",contextField:"itemType"},{path:"iq.pubsub.publish.items",contextField:"itemType"}])),element:"metadata",namespace:Wn,type:Wn,typeField:"itemType",childrenExportOrder:{versions:1,pointers:2}},{aliases:[{multiple:!0,path:"avatar.versions",selector:Wn}],element:"info",fields:{bytes:kt("bytes"),height:kt("height"),id:St("id"),mediaType:St("type"),uri:St("url"),width:kt("width")},namespace:Wn},{aliases:[{multiple:!0,path:"avatar.pointers",selector:Wn}],element:"pointer",fields:{bytes:kt("bytes"),height:kt("height"),id:St("id"),mediaType:St("type"),width:kt("width")},namespace:Wn}],xs=Br({chatState:en(Qn,Object.values(ka))}),ks={element:"query",fields:{name:Ut(null,"name"),os:Ut(null,"os"),version:Ut(null,"version")},namespace:"jabber:iq:version",path:"iq.softwareVersion"},Ts={aliases:[{path:"message.mood",impliedType:!0}].concat(d()([{path:"pubsubcontent",contextField:"itemType"},{path:"pubsubitem.content",contextField:"itemType"},{path:"pubsubeventitem.content",contextField:"itemType"},{path:"iq.pubsub.publish.items",contextField:"itemType"}])),element:"mood",fields:{alternateLanguageText:on(null,"text"),text:Ut(null,"text"),value:en(null,Ra)},namespace:Kn,type:Kn},js={aliases:[{path:"activity",impliedType:!0}].concat(d()([{path:"pubsubcontent",contextField:"itemType"},{path:"pubsubitem.content",contextField:"itemType"},{path:"pubsubeventitem.content",contextField:"itemType"},{path:"iq.pubsub.publish.items",contextField:"itemType"}])),element:"activity",fields:{activity:tn(null,Na,Ca),alternateLanguageText:on(null,"text"),text:Ut(null,"text")},namespace:Yn,type:Yn},Es={element:"handshake",fields:{value:Dt("hex")},namespace:"jabber:component:accept",path:"handshake"},Is={aliases:[{path:"presence.legacyCapabilities",multiple:!0},{path:"features.legacyCapabilities",multiple:!0}],element:"c",fields:{algorithm:St("hash"),legacy:un(!0),node:St("node"),value:St("ver")},namespace:"http://jabber.org/protocol/caps"},Os={aliases:[{impliedType:!0,path:"tune"}].concat(d()([{path:"pubsubcontent",contextField:"itemType"},{path:"pubsubitem.content",contextField:"itemType"},{path:"pubsubeventitem.content",contextField:"itemType"},{path:"iq.pubsub.publish.items",contextField:"itemType"}])),element:"tune",fields:{artist:Ut(null,"artist"),length:Gt(null,"length"),rating:Gt(null,"rating"),source:Ut(null,"source"),title:Ut(null,"title"),track:Ut(null,"track"),uri:Ut(null,"uri")},namespace:Xn,type:Xn},As=["dataformLayout",{multiple:!0,path:"dataformLayout.contents"},{multiple:!0,path:"dataform.layout.contents"}],Rs=[{aliases:[{multiple:!0,path:"dataform.layout"}],element:"page",fields:{label:St("label")},namespace:nr},{aliases:As,element:"section",fields:{label:St("label")},namespace:nr,type:"section",typeField:"type"},{aliases:As,element:"text",fields:{value:Ft()},namespace:nr,type:"text",typeField:"type"},{aliases:As,element:"fieldref",fields:{field:St("var")},namespace:nr,type:"fieldref",typeField:"type"},{aliases:As,element:"reportedref",namespace:nr,type:"reportedref",typeField:"type"}],Ns={element:"body",fields:{acceptMediaTypes:St("accept"),ack:kt("ack"),authId:St("authid"),characterSets:St("charsets"),condition:St("condition"),from:qr("from"),key:St("key"),lang:Bt(),maxClientRequests:kt("requests"),maxHoldOpen:kt("hold"),maxInactivityTime:kt("inactivity"),maxSessionPause:kt("maxpause"),maxWaitTime:kt("wait"),mediaType:St("content"),minPollingInterval:kt("polling"),newKey:St("newkey"),pauseSession:kt("pause"),report:kt("report"),rid:kt("rid"),route:St("string"),seeOtherURI:Ut(null,"uri"),sid:St("sid"),stream:St("stream"),time:kt("time"),to:qr("to"),type:St("type"),version:St("ver"),xmppRestart:It("xmpp","urn:xmpp:xbosh","restart",void 0,{writeValue:function(e){return e?"true":"false"}}),xmppRestartLogic:It("xmpp","urn:xmpp:xbosh","restartlogic",void 0,{writeValue:function(e){return e?"true":"false"}}),xmppVersion:Et("xmpp","urn:xmpp:xbosh","version")},namespace:Zn,path:"bosh"},Cs=[Br({headers:cn(er,"headers","header",!0)}),Ur({headers:cn(er,"headers","header",!0)}),{element:"header",fields:{name:St("name"),value:Ft()},namespace:er,path:"header"}],Ps=[{element:"compression",fields:{methods:nn(null,"method")},namespace:"http://jabber.org/features/compress",path:"features.compression"},{element:"compress",fields:{method:Ut(null,"method")},namespace:tr,path:"compression",type:"start",typeField:"type"},{aliases:["error.compressionError"],element:"failure",fields:{condition:en(null,["unsupported-method","setup-failed","processing-failed"])},namespace:tr,path:"compression",type:"failure",typeField:"type"},{element:"compressed",namespace:tr,path:"compression",type:"success",typeField:"type"}],Ls=[Br({rosterExchange:cn(rr,"x","rosterExchange",!0)}),zr({rosterExchange:cn(rr,"x","rosterExchange",!0)}),{element:"item",fields:{action:St("action"),groups:nn(null,"group"),jid:qr("jid"),name:St("name")},namespace:rr,path:"rosterExchange"}],qs=Ur({vcardAvatar:{importer:function(e){var t=at(e,"vcard-temp:x:update","x");if(t.length){var n=at(t[0],"vcard-temp:x:update","photo");return!n.length||n[0].getText()}},exporter:function(e,t){var n=ot(e,"vcard-temp:x:update","x");if(""===t)ot(n,"vcard-temp:x:update","photo");else{if(!0===t)return;t&&ot(n,"vcard-temp:x:update","photo").children.push(t)}}}}),Fs=[Br({captcha:cn("urn:xmpp:captcha","captcha","dataform")}),zr({captcha:cn("urn:xmpp:captcha","captcha","dataform")})],Ms=[Gr({jingleError:en("urn:xmpp:jingle:errors:1",Object.values(Oa))}),{element:"jingle",fields:{action:St("action"),initiator:qr("initiator"),responder:qr("responder"),sid:St("sid")},namespace:ar,path:"iq.jingle"},{aliases:[{multiple:!0,path:"iq.jingle.contents"}],element:"content",fields:{creator:St("creator"),disposition:St("disposition","session"),name:St("name"),senders:St("senders","both")},namespace:ar},{element:"reason",fields:{alternativeSession:Ut(null,"alternative-session"),condition:en(null,Object.values(Aa)),text:Ut(null,"text")},namespace:ar,path:"iq.jingle.reason"}];function Ds(){return{importer:function(e,t){var n,r=at(e,br,"rtcp-fb"),i=St("type").importer,a=St("subtype").importer,o=St("value").importer,s=[],c=F(r);try{for(c.s();!(n=c.n()).done;){var u=n.value,l=i(u,t),f=a(u,t);s.push(f?{type:l,parameter:f}:{type:l})}}catch(e){c.e(e)}finally{c.f()}var p,d=F(r=at(e,br,"rtcp-fb-trr-int"));try{for(d.s();!(p=d.n()).done;){var h=o(p.value,t);s.push(h?{type:"trr-int",parameter:h}:{type:"trr-int"})}}catch(e){d.e(e)}finally{d.f()}return s},exporter:function(e,t,n){var r,i=St("type").exporter,a=St("subtype").exporter,o=St("value").exporter,s=F(t);try{for(s.s();!(r=s.n()).done;){var c=r.value,u=void 0;"trr-int"===c.type?(u=nt(br,"rtcp-fb-trr-int",n.namespace,e),c.parameter&&o(u,c.parameter,n)):(i(u=nt(br,"rtcp-fb",n.namespace,e),c.type,n),c.parameter&&a(u,c.parameter,n)),e.appendChild(u)}}catch(e){s.e(e)}finally{s.f()}}}}for(var Bs="iq.jingle.info",Us=[{aliases:["iq.jingle.contents.application"],childrenExportOrder:{codecs:4,encryption:5,headerExtensions:6,sourceGroups:8,sources:7,streams:9},element:"description",fields:{media:St("media"),rtcpFeedback:Object.assign(Object.assign({},Ds()),{exportOrder:3}),rtcpMux:Object.assign(Object.assign({},Qt(null,"rtcp-mux")),{exportOrder:1}),rtcpReducedSize:Object.assign(Object.assign({},Qt(null,"rtcp-reduced-size")),{exportOrder:2}),ssrc:St("ssrc")},namespace:or,optionalNamespaces:{rtcpf:br,rtph:_r},type:or},{aliases:[{multiple:!0,path:"iq.jingle.contents.application.headerExtensions",selector:or}],element:"rtp-hdrext",fields:{id:kt("id"),senders:St("senders"),uri:St("uri")},namespace:_r},{aliases:[{multiple:!0,path:"iq.jingle.contents.application.codecs",selector:or},"rtpcodec"],element:"payload-type",fields:{channels:kt("channels"),clockRate:kt("clockrate"),id:St("id"),maxptime:kt("maxptime"),name:St("name"),parameters:pn(or,"parameter","name","value"),ptime:kt("ptime"),rtcpFeedback:Ds()},namespace:or},{aliases:[{multiple:!0,path:"iq.jingle.contents.application.sources",selector:or}],element:"source",fields:{parameters:pn("urn:xmpp:jingle:apps:rtp:ssma:0","parameter","name","value"),ssrc:St("ssrc")},namespace:"urn:xmpp:jingle:apps:rtp:ssma:0"},{aliases:[{multiple:!0,path:"iq.jingle.contents.application.sourceGroups",selector:or}],element:"ssrc-group",fields:{semantics:St("semantics"),sources:rn(null,"source","ssrc")},namespace:"urn:xmpp:jingle:apps:rtp:ssma:0"},{aliases:[{multiple:!0,path:"iq.jingle.contents.application.streams",selector:or}],element:"stream",fields:{id:St("id"),track:St("track")},namespace:"urn:xmpp:jingle:apps:rtp:msid:0"},{aliases:[{path:"iq.jingle.contents.application.encryption",selector:or}],element:"encryption",fields:{required:xt("required")},namespace:or},{aliases:[{multiple:!0,path:"iq.jingle.contents.application.encryption.sdes",selector:or}],element:"crypto",fields:{cryptoSuite:St("crypto-suite"),keyParameters:St("key-params"),sessionParameters:St("session-params"),tag:kt("tag")},namespace:or},{aliases:[{path:"iq.jingle.contents.application.encryption.zrtp",selector:or}],element:"zrtp-hash",fields:{value:Dt("hex"),version:St("version")},namespace:or},{element:"mute",fields:{creator:St("creator"),name:St("name")},namespace:sr,path:Bs,type:La},{element:"unmute",fields:{creator:St("creator"),name:St("name")},namespace:sr,path:Bs,type:qa},{element:"hold",namespace:sr,path:Bs,type:Fa},{element:"unhold",namespace:sr,path:Bs,type:Ma},{element:"active",namespace:sr,path:Bs,type:Da},{element:"ringing",namespace:sr,path:Bs,type:Ba}],zs=[Br({nick:Ut(cr,"nick")}),Ur({nick:Ut(cr,"nick")}),{aliases:[{path:"pubsubcontent",contextField:"itemType"},{path:"pubsubitem.content",contextField:"itemType"},{path:"pubsubeventitem.content",contextField:"itemType"},{path:"iq.pubsub.publish.items",contextField:"itemType"}],element:"nick",fields:{nick:Ft()},namespace:cr,type:cr}],Js=function(e){return[{element:"transport",fields:{gatheringComplete:Qt(null,"gathering-complete"),password:St("pwd"),usernameFragment:St("ufrag")},namespace:e,path:"iq.jingle.contents.transport",type:e,typeField:"transportType"},{aliases:[{impliedType:!0,path:"iq.jingle.contents.transport.remoteCandidate",selector:e}],element:"remote-candidate",fields:{component:kt("component"),ip:St("ip"),port:kt("port")},namespace:e,type:e,typeField:"transportType"},{aliases:[{impliedType:!0,multiple:!0,path:"iq.jingle.contents.transport.candidates",selector:e}],element:"candidate",fields:{component:kt("component"),foundation:St("foundation"),generation:kt("generation"),id:St("id"),ip:St("ip"),network:kt("network"),port:kt("port"),priority:kt("priority"),protocol:St("protocol"),relatedAddress:St("rel-addr"),relatedPort:St("rel-port"),tcpType:St("tcptype"),type:St("type")},namespace:e,type:e,typeField:"transportType"}]},Gs=[].concat(d()(Js(Nr)),d()(Js(ur))),Vs=[{element:"transport",fields:{gatheringComplete:Qt(null,"gathering-complete"),password:St("pwd"),usernameFragment:St("ufrag")},namespace:lr,path:"iq.jingle.contents.transport",type:lr,typeField:"transportType"},{aliases:[{impliedType:!0,multiple:!0,path:"iq.jingle.contents.transport.candidates",selector:lr}],element:"candidate",fields:{component:kt("component"),foundation:St("foundation"),generation:kt("generation"),id:St("id"),ip:St("ip"),port:kt("port"),type:St("type")},namespace:lr,type:lr,typeField:"transportType"}],Hs=[{element:"request",namespace:"urn:xmpp:receipts",path:"message.receipt",type:"request",typeField:"type"},{element:"received",fields:{id:St("id")},namespace:"urn:xmpp:receipts",path:"message.receipt",type:"received",typeField:"type"}],Ws=[{element:"invisible",fields:{probe:xt("probe")},namespace:"urn:xmpp:invisible:0",path:"iq.visibility",type:"invisible",typeField:"type"},{element:"visible",namespace:"urn:xmpp:invisible:0",path:"iq.visibility",type:"visible"}],Qs=[Gr({blocked:Qt("urn:xmpp:blocking:errors","blocked")}),{element:"blocklist",fields:{jids:rn(null,"item","jid")},namespace:"urn:xmpp:blocking",path:"iq.blockList",type:"list",typeField:"action"},{element:"block",fields:{jids:rn(null,"item","jid")},namespace:"urn:xmpp:blocking",path:"iq.blockList",type:"block",typeField:"action"},{element:"unblock",fields:{jids:rn(null,"item","jid")},namespace:"urn:xmpp:blocking",path:"iq.blockList",type:"unblock",typeField:"action"}],Ks=[Jr({streamManagement:Qt(fr,"sm")}),{element:"a",fields:{handled:kt("h")},namespace:fr,path:"sm",type:"ack",typeField:"type"},{element:"r",namespace:fr,path:"sm",type:"request",typeField:"type"},{element:"enable",fields:{allowResumption:xt("resume")},namespace:fr,path:"sm",type:"enable",typeField:"type"},{element:"enabled",fields:{id:St("id"),resume:xt("resume")},namespace:fr,path:"sm",type:"enabled",typeField:"type"},{element:"resume",fields:{handled:kt("h"),previousSession:St("previd")},namespace:fr,path:"sm",type:"resume",typeField:"type"},{element:"resumed",fields:{handled:kt("h"),previousSession:St("previd")},namespace:fr,path:"sm",type:"resumed",typeField:"type"},{element:"failed",fields:{handled:kt("h")},namespace:fr,path:"sm",type:"failed",typeField:"type"}],Ys=zr({ping:Qt("urn:xmpp:ping","ping")}),Xs={element:"time",fields:{tzo:Wt(null,"tzo"),utc:Jt(null,"utc")},namespace:"urn:xmpp:time",path:"iq.time"},$s={aliases:["message.delay","presence.delay"],element:"delay",fields:{from:qr("from"),reason:Ft(),timestamp:jt("stamp")},namespace:pr},Zs={2:"urn:xmpp:extdisco:2",1:"urn:xmpp:extdisco:1"},ec=[],tc=0,nc=Object.entries(Zs);tc<nc.length;tc++){var rc=g()(nc[tc],2),ic=rc[0],ac=rc[1];ec.push({aliases:["iq.externalServiceCredentials"],defaultType:"2",element:"credentials",fields:{expires:qt(null,"service","expires"),host:Nt(null,"service","host"),name:Nt(null,"service","name"),password:Nt(null,"service","password"),port:Pt(null,"service","port"),restricted:Ct(null,"service","restricted"),transport:Nt(null,"service","transport"),type:Nt(null,"service","type"),username:Nt(null,"service","username")},namespace:ac,type:ic,typeField:"version"},{aliases:["iq.externalServices"],defaultType:"2",element:"services",fields:{type:St("type")},namespace:ac,type:ic,typeField:"version"},{aliases:[{path:"iq.externalServices.services",multiple:!0}],defaultType:"2",element:"service",fields:{expires:jt("expires"),host:St("host"),name:St("name"),password:St("password"),port:kt("port"),restricted:xt("restricted"),transport:St("transport"),type:St("type"),username:St("username")},namespace:ac,type:ic,typeField:"version"})}for(var oc=[{element:"media",fields:{height:kt("height"),width:kt("width")},namespace:"urn:xmpp:media-element",path:"dataform.fields.media"},{aliases:[{multiple:!0,path:"dataform.fields.media.sources"}],element:"uri",fields:{mediaType:St("type"),uri:Ft()},namespace:"urn:xmpp:media-element"}],sc=Br({requestingAttention:Qt("urn:xmpp:attention:0","attention")}),cc={aliases:["iq.bits",{path:"message.bits",multiple:!0},{path:"presence.bits",multiple:!0},{path:"iq.jingle.bits",multiple:!0}],element:"data",fields:{cid:St("cid"),data:Dt("base64"),maxAge:kt("max-age"),mediaType:St("type")},namespace:dr},uc=[Dr(Sr,"hash",[{path:"file.hashes",multiple:!0},{path:"file.range.hashes",multiple:!0}]),Dr("urn:xmpp:hashes:1","hash",[{path:"file.hashes",multiple:!0},{path:"file.range.hashes",multiple:!0}]),Dr(Sr,"hash-used",[{path:"file.hashesUsed",multiple:!0}]),Dr("urn:xmpp:thumbs:1","thumbnail",[{path:"file.thumbnails",multiple:!0}])],lc=0,fc=["urn:xmpp:jingle:apps:file-transfer:4",hr];lc<fc.length;lc++){var pc=fc[lc];uc=uc.concat([{aliases:["file",{impliedType:!0,path:"iq.jingle.contents.application.file",selector:pc},{impliedType:!0,path:"iq.jingle.info.file",selector:"{".concat(pc,"}checksum")}],defaultType:hr,element:"file",fields:{date:Jt(null,"date"),description:Ut(null,"desc"),mediaType:Ut(null,"media-type"),name:Ut(null,"name"),size:Gt(null,"size")},namespace:pc,type:pc,typeField:"version"},{aliases:[{impliedType:!0,path:"file.range",selector:pc}],defaultType:hr,element:"range",fields:{length:kt("length"),offset:kt("offset",0)},namespace:pc,type:pc,typeField:"version"},{element:"description",namespace:pc,path:"iq.jingle.contents.application",type:pc,typeField:"applicationType"},{element:"received",fields:{creator:St("creator"),name:St("name")},namespace:pc,path:"iq.jingle.info",type:"{".concat(pc,"}received"),typeField:"infoType"},{element:"checksum",fields:{creator:St("creator"),name:St("name")},namespace:pc,path:"iq.jingle.info",type:"{".concat(pc,"}checksum"),typeField:"infoType"}])}for(var dc=uc,hc={element:"description",namespace:vr,path:"iq.jingle.contents.application",type:vr,typeField:"applicationType"},vc=[{element:"transport",fields:{activated:Nt(null,"activated","cid"),address:St("dstaddr"),candidateError:Qt(null,"candidate-error"),candidateUsed:Nt(null,"candidate-used","cid"),mode:St("mode","tcp"),proxyError:Qt(null,"proxy-error"),sid:St("sid")},namespace:mr,path:"iq.jingle.contents.transport",type:mr,typeField:"transportType"},{aliases:[{multiple:!0,path:"iq.jingle.contents.transport.candidates",selector:mr}],element:"candidate",fields:{cid:St("cid"),host:St("host"),jid:qr("jid"),port:kt("port"),priority:kt("priority"),type:St("type"),uri:St("uri")},namespace:mr}],mc={element:"transport",fields:{ack:{importer:function(e,t){return"message"!==St("stanza","iq").importer(e,t)},exporter:function(e,t,n){!1===t&&St("stanza").exporter(e,"message",n)}},blockSize:kt("block-size"),sid:St("sid")},namespace:gr,path:"iq.jingle.contents.transport",type:gr,typeField:"transportType"},gc=[Dr(dr,"data",[{path:"iq.jingle.bits",multiple:!0}]),{element:"thumbnail",fields:{height:kt("height"),mediaType:St("media-type"),uri:St("uri"),width:kt("width")},namespace:"urn:xmpp:thumbs:1",path:"thumbnail"}],yc=[Dr(wr,"forwarded",["message.carbon.forward"]),{element:"enable",namespace:yr,path:"iq.carbons",type:"enable",typeField:"action"},{element:"disable",namespace:yr,path:"iq.carbons",type:"disable",typeField:"action"},{element:"sent",namespace:yr,path:"message.carbon",type:"sent",typeField:"type"},{element:"received",namespace:yr,path:"message.carbon",type:"received",typeField:"type"}],bc=[].concat(d()(Object.values(ma).map((function(e){return Dr(e,"message",["forward.message"])}))),d()(Object.values(ma).map((function(e){return Dr(e,"presence",["forward.presence"])}))),d()(Object.values(ma).map((function(e){return Dr(e,"iq",["forward.iq"])}))),[Dr(pr,"delay",["forward.delay"]),{aliases:["message.forward"],element:"forwarded",namespace:wr,path:"forward"}]),_c=[{defaultType:"2",element:"hash",fields:{algorithm:St("algo"),value:Dt("base64"),version:un("2")},namespace:Sr,path:"hash",type:"2",typeField:"version"},{element:"hash-used",fields:{algorithm:St("algo"),version:un("2")},namespace:Sr,path:"hashUsed"},{element:"hash",fields:{algorithm:St("algo"),value:Dt("hex"),version:un("1")},namespace:"urn:xmpp:hashes:1",path:"hash",type:"1",typeField:"version"}],wc=[{element:"rtt",fields:{event:St("event","edit"),id:St("id"),seq:kt("seq")},namespace:kr,path:"message.rtt"},{aliases:[{path:"message.rtt.actions",multiple:!0}],element:"t",fields:{position:kt("p"),text:Ft()},namespace:kr,type:"insert",typeField:"type"},{aliases:[{path:"message.rtt.actions",multiple:!0}],element:"e",fields:{length:kt("n",1),position:kt("p")},namespace:kr,type:"erase",typeField:"type"},{aliases:[{multiple:!0,path:"message.rtt.actions"}],element:"w",fields:{duration:kt("n",0)},namespace:kr,type:"wait",typeField:"type"}],Sc=Br({replace:Nt("urn:xmpp:message-correct:0","replace","id")}),xc={2:Tr,1:"urn:xmpp:mam:1"},kc=[Dr(Tn,"x",["iq.archive.form"]),Dr(wr,"forwarded",["message.archive.item"]),Dr(qn,"set",["iq.archive.paging"])],Tc=0,jc=Object.entries(xc);Tc<jc.length;Tc++){var Ec=g()(jc[Tc],2),Ic=Ec[0],Oc=Ec[1];kc.push({defaultType:"query",defaultVersion:"2",element:"query",fields:{node:St("node"),queryId:St("queryid")},namespace:Oc,path:"iq.archive",type:"query",typeField:"type",version:Ic,versionField:"version"},{element:"fin",fields:{complete:xt("complete"),stable:xt("stable")},namespace:Oc,path:"iq.archive",type:"result",version:Ic},{element:"prefs",fields:{default:St("default"),always:Zt([{namespace:null,element:"always"},{namespace:null,element:"jid"}]),never:Zt([{namespace:null,element:"never"},{namespace:null,element:"jid"}])},namespace:Oc,path:"iq.archive",type:"preferences",version:Ic},{element:"result",defaultType:"2",fields:{id:St("id"),queryId:St("queryid")},namespace:Oc,path:"message.archive",type:Ic,typeField:"version"})}var Ac="message.marker";var Rc=[qo,Fo,Ko,Yo,Xo,$o,Zo,es,ts,ns,rs,is,as,os,ss,fs,ps,ds,ms,gs,ys,bs,_s,ws,Ss,xs,ks,Ts,js,Es,Is,Os,Ns,Cs,Ps,Rs,Ls,qs,Fs,Ms,Us,zs,Gs,Vs,Hs,Ws,Qs,Ks,Ys,Xs,$s,ec,oc,sc,cc,dc,hc,vc,mc,gc,yc,bc,_c,wc,Sc,kc,[Ur({hats:cn(jr,"hats","hat",!0)}),{element:"hat",fields:{id:St("name"),name:St("displayName")},namespace:jr,path:"hat"}],Ur({idleSince:Jt("urn:xmpp:idle:1","since")}),{aliases:[{multiple:!0,path:"iq.jingle.contents.transport.fingerprints",selector:ur},{multiple:!0,path:"iq.jingle.contents.transport.fingerprints",selector:Nr},{multiple:!0,path:"iq.jingle.contents.application.encryption.dtls",selector:or}],element:"fingerprint",fields:{algorithm:St("hash"),setup:St("setup"),value:Ft()},namespace:"urn:xmpp:jingle:apps:dtls:0"},[{element:"markable",namespace:Er,path:Ac,type:"markable",typeField:"type"},{element:"received",fields:{id:St("id")},namespace:Er,path:Ac,type:"received"},{element:"displayed",fields:{id:St("id")},namespace:Er,path:Ac,type:"displayed"},{element:"acknowledged",fields:{id:St("id")},namespace:Er,path:Ac,type:"acknowledged"}],Br({processingHints:{importer:function(e){var t,n={},r=!1,i=F(e.children);try{for(i.s();!(t=i.n()).done;){var a=t.value;if("string"!=typeof a&&a.getNamespace()===Ir)switch(a.getName()){case"no-copy":n.noCopy=!0,r=!0;break;case"no-permanent-store":n.noPermanentStore=!0,r=!0;break;case"no-store":n.noStore=!0,r=!0;break;case"store":n.store=!0,r=!0}}}catch(e){i.e(e)}finally{i.f()}return r?n:void 0},exporter:function(e,t,n){t.noCopy&&e.appendChild(nt(Ir,"no-copy",n.namespace,e)),t.noPermanentStore&&e.appendChild(nt(Ir,"no-permanent-store",n.namespace,e)),t.noStore&&e.appendChild(nt(Ir,"no-store",n.namespace,e)),t.store&&e.appendChild(nt(Ir,"store",n.namespace,e))}}}),[Br({json:Ht(Or,"json")}),{aliases:[{path:"pubsubcontent",contextField:"itemType"},{path:"pubsubitem.content",contextField:"itemType"},{path:"pubsubeventitem.content",contextField:"itemType"},{path:"iq.pubsub.publish.items",contextField:"itemType"}],element:"json",fields:{json:Mt()},namespace:Or,type:Or},{aliases:[{path:"message.jsonPayloads",multiple:!0}],element:"payload",fields:{type:St("datatype"),data:Ht(Or,"json")},namespace:"urn:xmpp:json-msg:0"}],[{aliases:[{path:"iq.jingle.groups",multiple:!0}],element:"group",fields:{contents:rn(null,"content","name"),semantics:St("semantics")},namespace:"urn:xmpp:jingle:apps:grouping:0"}],{aliases:[{path:"iq.jingle.contents.transport.sctp",selector:ur},{path:"iq.jingle.contents.transport.sctp",selector:Nr}],element:"sctpmap",fields:{port:kt("number"),protocol:St("protocol"),streams:St("streams")},namespace:"urn:xmpp:jingle:transports:dtls-sctp:1"},[{element:"active",namespace:"urn:xmpp:csi:0",path:"csi",type:"active",typeField:"state"},{element:"inactive",namespace:"urn:xmpp:csi:0",path:"csi",type:"inactive",typeField:"state"}],[Dr(Tn,"x",["iq.push.form","pushNotification.form"]),{element:"enable",fields:{jid:qr("jid"),node:St("node")},namespace:Ar,path:"iq.push",type:"enable",typeField:"action"},{element:"disable",fields:{jid:qr("jid"),node:St("node")},namespace:Ar,path:"iq.push",type:"disable",typeField:"action"},{aliases:[{path:"pubsubcontent",contextField:"itemType"},{path:"pubsubitem.content",contextField:"itemType"},{path:"pubsubeventitem.content",contextField:"itemType"},{path:"iq.pubsub.publish.items",contextField:"itemType"}],element:"notification",namespace:Ar,path:"pushNotification",type:Ar,typeField:"itemType"}],[Br({originId:Nt("urn:xmpp:sid:0","origin-id","id")}),{aliases:[{path:"message.stanzaIds",multiple:!0}],element:"stanza-id",fields:{by:qr("by"),id:St("id")},namespace:"urn:xmpp:sid:0"}],[Gr({httpUploadError:en(Rr,["file-too-large","retry"]),httpUploadMaxFileSize:Xt([{namespace:Rr,element:"file-too-large"},{namespace:Rr,element:"max-file-size"}]),httpUploadRetry:qt(Rr,"retry","stamp")}),{element:"request",fields:{mediaType:St("content-type"),name:St("filename"),size:kt("size")},namespace:Rr,path:"iq.httpUpload",type:"request",typeField:"type"},{element:"slot",fields:{download:Nt(null,"get","url")},namespace:Rr,path:"iq.httpUpload",type:"slot"},{aliases:[{path:"iq.httpUpload.upload",selector:"slot"}],element:"put",fields:{url:St("url")},namespace:Rr},{aliases:[{path:"iq.httpUpload.upload.headers",multiple:!0}],element:"header",fields:{name:St("name"),value:Ft()},namespace:Rr}],{element:"encryption",fields:{id:St("namespace"),name:St("name")},namespace:"urn:xmpp:eme:0",path:"message.encryptionMethod"},[{aliases:["message.omemo"],element:"encrypted",fields:{payload:zt(null,"payload","base64")},namespace:Cr,path:"omemo"},{element:"header",fields:{iv:zt(null,"iv","base64"),sid:kt("sid")},namespace:Cr,path:"omemo.header"},{aliases:[{path:"omemo.header.keys",multiple:!0}],element:"key",fields:{preKey:xt("prekey"),rid:kt("rid"),value:Dt("base64")},namespace:Cr},{aliases:[{path:"pubsubcontent",contextField:"itemType"},{path:"pubsubitem.content",contextField:"itemType"},{path:"pubsubeventitem.content",contextField:"itemType"},{path:"iq.pubsub.publish.items",contextField:"itemType"}],element:"list",fields:{devices:an(null,"device","id")},namespace:Cr,type:"eu.siacs.conversations.axolotl.devicelist",typeField:"itemType"},{element:"preKeyPublic",fields:{id:kt("preKeyId"),value:Dt("base64")},namespace:Cr,path:"omemoPreKey"},{element:"signedPreKeyPublic",fields:{id:kt("signedPreKeyId"),value:Dt("base64")},namespace:Cr,path:"omemoDevice.signedPreKeyPublic"},{aliases:[{path:"pubsubcontent",contextField:"itemType"},{path:"pubsubitem.content",contextField:"itemType"},{path:"pubsubeventitem.content",contextField:"itemType"},{path:"iq.pubsub.publish.items",contextField:"itemType"}],element:"bundle",fields:{identityKey:zt(null,"identityKey","base64"),preKeys:cn(null,"prekeys","omemoPreKey",!0),signedPreKeySignature:zt(null,"signedPreKeySignature","base64")},namespace:Cr,path:"omemoDevice",type:"eu.siacs.conversations.axolotl.bundles",typeField:"itemType"}],[{element:"XRD",fields:{subject:Ut(null,"Subject")},namespace:Pr,path:"xrd"},{aliases:[{path:"xrd.links",multiple:!0}],element:"Link",fields:{href:St("href"),rel:St("rel"),type:St("type")},namespace:Pr}]],Nc=Object.freeze({__proto__:null,default:Rc}),Cc=function(){function e(t){w()(this,e),this.active=!1,this.maxRetries=5,this.stream=t,this.maxTimeout=1100*this.stream.maxWaitTime}return x()(e,[{key:"send",value:function(e,t){return Object(A.__awaiter)(this,void 0,void 0,b.a.mark((function n(){var r,i,a,o;return b.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:this.rid=e,this.active=!0,r=0;case 3:if(!(r<=this.maxRetries)){n.next=35;break}return r+=1,n.prev=5,n.next=8,ta(Ai(this.stream.url,{body:t,headers:{"Content-Type":this.stream.contentType},method:"POST"}),this.maxTimeout,(function(){return new Error("Request timed out")}));case 8:if((i=n.sent).ok){n.next=11;break}throw new Error("HTTP Status Error: "+i.status);case 11:return n.next=13,i.text();case 13:return a=n.sent,this.active=!1,n.abrupt("return",a);case 18:if(n.prev=18,n.t0=n.catch(5),1!==r){n.next=24;break}return n.abrupt("continue",3);case 24:if(!(r<this.maxRetries)){n.next=31;break}return o=Math.min(this.maxTimeout,1e3*Math.pow(r,2)),n.next=28,na(o+1e3*Math.random());case 28:return n.abrupt("continue",3);case 31:throw this.active=!1,n.t0;case 33:n.next=3;break;case 35:throw new Error("Request failed");case 36:case"end":return n.stop()}}),n,this,[[5,18]])})))}}]),e}(),Pc=function(e){T()(n,e);var t=D(n);function n(e,r,i){var o;return w()(this,n),(o=t.call(this,{objectMode:!0})).rid=Math.floor(4294967295*Math.random()),o.sid="",o.maxHoldOpen=2,o.maxWaitTime=30,o.contentType="text/xml; charset=utf-8",o.channels=[new Cc(a()(o)),new Cc(a()(o))],o.activeChannelID=0,o.queue=[],o.isEnded=!1,o.client=e,o.sm=r,o.stanzas=i,o.on("data",(function(e){o.client.emit("stream:data",e.stanza,e.kind)})),o.on("end",(function(){o.isEnded=!0,clearTimeout(o.idleTimeout),o.client.transport===a()(o)&&o.client.emit("--transport-disconnected")})),o}return x()(n,[{key:"_write",value:function(e,t,n){this.queue.push([e,n]),this.scheduleRequests()}},{key:"_writev",value:function(e,t){this.queue.push([e.map((function(e){return e.chunk})).join(""),t]),this.scheduleRequests()}},{key:"_read",value:function(){}},{key:"process",value:function(e){var t=this,n=new Hr({acceptLanguages:this.config.acceptLanguages,allowComments:!1,lang:this.config.lang,registry:this.stanzas,rootKey:"bosh",wrappedStream:!0});n.on("error",(function(e){var n={condition:ya.InvalidXML};return t.client.emit("stream:error",n,e),t.send("error",n),t.disconnect()})),n.on("data",(function(e){if("stream-start"===e.event)return t.stream=e.stanza,void("terminate"===e.stanza.type?(t.hasStream=!1,t.rid=void 0,t.sid=void 0,t.isEnded||(t.isEnded=!0,t.client.emit("bosh:terminate",e.stanza),t.client.emit("stream:end"),t.push(null))):t.hasStream||(t.hasStream=!0,t.stream=e.stanza,t.sid=e.stanza.sid||t.sid,t.maxWaitTime=e.stanza.maxWaitTime||t.maxWaitTime,t.client.emit("stream:start",e.stanza)));e.event||t.push({kind:e.kind,stanza:e.stanza})})),this.client.emit("raw","incoming",e),n.write(e),this.scheduleRequests()}},{key:"connect",value:function(e){if(this.config=e,this.url=e.url,e.rid&&(this.rid=e.rid),e.sid&&(this.sid=e.sid),e.wait&&(this.maxWaitTime=e.wait),e.maxHoldOpen&&(this.maxHoldOpen=e.maxHoldOpen),this.sid)return this.hasStream=!0,this.stream={},this.client.emit("connected"),this.client.emit("session:prebind",this.config.jid),void this.client.emit("session:started");this._send({lang:e.lang,maxHoldOpen:this.maxHoldOpen,maxWaitTime:this.maxWaitTime,to:e.server,version:"1.6",xmppVersion:"1.0"})}},{key:"restart",value:function(){this.hasStream=!1,this._send({to:this.config.server,xmppRestart:!0})}},{key:"disconnect",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.hasStream&&e?this._send({type:"terminate"}):(this.stream=void 0,this.sid=void 0,this.rid=void 0,this.client.emit("--transport-disconnected"))}},{key:"send",value:function(e,t){var n;return Object(A.__awaiter)(this,void 0,void 0,b.a.mark((function r(){var i,a=this;return b.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t&&(i=null===(n=this.stanzas.export(e,t))||void 0===n?void 0:n.toString()),i){r.next=3;break}return r.abrupt("return");case 3:return r.abrupt("return",new Promise((function(e,t){a.write(i,"utf8",(function(n){return n?t(n):e()}))})));case 4:case"end":return r.stop()}}),r,this)})))}},{key:"toggleChannel",value:function(){this.activeChannelID=0===this.activeChannelID?1:0}},{key:"_send",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object(A.__awaiter)(this,void 0,void 0,b.a.mark((function n(){var r,i,a,o=this;return b.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!this.isEnded){n.next=2;break}return n.abrupt("return");case 2:r=this.rid++,i=this.stanzas.export("bosh",Object.assign(Object.assign({},e),{rid:r,sid:this.sid})),a=t?[i.openTag(),t,i.closeTag()].join(""):i.toString(),this.client.emit("raw","outgoing",a),this.sendingChannel.send(r,a).then((function(e){o.process(e)})).catch((function(e){o.end(e)})),this.toggleChannel();case 8:case"end":return n.stop()}}),n,this)})))}},{key:"_poll",value:function(){return Object(A.__awaiter)(this,void 0,void 0,b.a.mark((function e(){var t,n,r=this;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.isEnded){e.next=2;break}return e.abrupt("return");case 2:t=this.rid++,n=this.stanzas.export("bosh",{rid:t,sid:this.sid}).toString(),this.client.emit("raw","outgoing",n),this.pollingChannel.send(t,n).then((function(e){r.process(e)})).catch((function(e){r.end(e)}));case 6:case"end":return e.stop()}}),e,this)})))}},{key:"scheduleRequests",value:function(){var e=this;clearTimeout(this.idleTimeout),this.idleTimeout=setTimeout((function(){e.fireRequests()}),10)}},{key:"fireRequests",value:function(){if(!this.isEnded)if(this.queue.length)if(this.sendingChannel.active)this.scheduleRequests();else{var e=this.queue.shift(),t=g()(e,2),n=t[0],r=t[1];this._send({},n),r()}else!this.authenticated||this.channels[0].active||this.channels[1].active||this._poll()}},{key:"sendingChannel",get:function(){return this.channels[this.activeChannelID]}},{key:"pollingChannel",get:function(){return this.channels[0===this.activeChannelID?1:0]}}]),n}(L.Duplex),Lc=function(t){T()(r,t);var n=D(r);function r(e,t,i){var o;return w()(this,r),(o=n.call(this,{objectMode:!0})).sm=t,o.stanzas=i,o.closing=!1,o.client=e,o.on("data",(function(e){o.client.emit("stream:data",e.stanza,e.kind)})),o.on("error",(function(){o.end()})),o.on("end",(function(){o.client.transport===a()(o)&&o.client.emit("--transport-disconnected")})),o}return x()(r,[{key:"_read",value:function(){}},{key:"_write",value:function(t,n,r){if(!this.socket||1!==this.socket.readyState)return r(new Error("Socket closed"));var i=e.from(t,"utf8").toString();this.client.emit("raw","outgoing",i),this.socket.send(i),r()}},{key:"connect",value:function(t){var n=this;this.config=t,this.hasStream=!1,this.closing=!1,this.parser=new Hr({acceptLanguages:this.config.acceptLanguages,allowComments:!1,lang:this.config.lang,registry:this.stanzas,wrappedStream:!1}),this.parser.on("data",(function(e){var t=e.kind,r=e.stanza;if("stream"===t){if("open"===r.action)return n.hasStream=!0,n.stream=r,n.client.emit("stream:start",r);if("close"===r.action)return n.client.emit("stream:end"),n.disconnect()}n.push({kind:e.kind,stanza:e.stanza})})),this.parser.on("error",(function(e){var t={condition:ya.InvalidXML};return n.client.emit("stream:error",t,e),n.write(n.stanzas.export("error",t).toString()),n.disconnect()})),this.socket=new Ri(t.url,"xmpp"),this.socket.onopen=function(){n.emit("connect"),n.sm.started=!1,n.client.emit("connected"),n.write(n.startHeader())},this.socket.onmessage=function(t){var r=e.from(t.data,"utf8").toString();n.client.emit("raw","incoming",r),n.parser&&n.parser.write(r)},this.socket.onclose=function(){n.push(null)}}},{key:"disconnect",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.socket&&!this.closing&&this.hasStream&&e?(this.closing=!0,this.write(this.closeHeader())):(this.hasStream=!1,this.stream=void 0,this.socket&&(this.end(),this.socket.close(),this.client.transport===this&&this.client.emit("--transport-disconnected")),this.socket=void 0)}},{key:"send",value:function(e,t){var n;return Object(A.__awaiter)(this,void 0,void 0,b.a.mark((function r(){var i,a=this;return b.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t&&(i=null===(n=this.stanzas.export(e,t))||void 0===n?void 0:n.toString()),i){r.next=3;break}return r.abrupt("return");case 3:return r.abrupt("return",new Promise((function(e,t){a.write(i,"utf8",(function(n){return n?t(n):e()}))})));case 4:case"end":return r.stop()}}),r,this)})))}},{key:"restart",value:function(){this.hasStream=!1,this.write(this.startHeader())}},{key:"startHeader",value:function(){return this.stanzas.export("stream",{action:"open",lang:this.config.lang,to:this.config.server,version:"1.0"}).toString()}},{key:"closeHeader",value:function(){return this.stanzas.export("stream",{action:"close"}).toString()}}]),r}(L.Duplex),qc=function(e){T()(n,e);var t=D(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};w()(this,n),(e=t.call(this)).reconnectAttempts=0,e.setMaxListeners(100),e.off=e.removeListener,e.updateConfig(r),e.jid="",e.sasl=new Pi,e.sasl.register("EXTERNAL",Ji,1e3),e.sasl.register("SCRAM-SHA-256-PLUS",Wi,350),e.sasl.register("SCRAM-SHA-256",Wi,300),e.sasl.register("SCRAM-SHA-1-PLUS",Wi,250),e.sasl.register("SCRAM-SHA-1",Wi,200),e.sasl.register("DIGEST-MD5",Hi,100),e.sasl.register("OAUTHBEARER",Vi,100),e.sasl.register("X-OAUTH2",Gi,50),e.sasl.register("PLAIN",Gi,1),e.sasl.register("ANONYMOUS",zi,0),e.stanzas=new hn,e.stanzas.define(Rc),e.use(Po),e.sm=new z,void 0!==e.config.allowResumption&&(e.sm.allowResume=e.config.allowResumption),e.sm.on("prebound",(function(t){e.jid=t,e.emit("session:bound",t)})),e.on("session:bound",(function(t){return e.sm.bind(t)})),e.sm.on("send",(function(t){return e.send("sm",t)})),e.sm.on("acked",(function(t){return e.emit("stanza:acked",t)})),e.sm.on("failed",(function(t){return e.emit("stanza:failed",t)})),e.sm.on("hibernated",(function(t){return e.emit("stanza:hibernated",t)})),e.sm.on("begin-resend",(function(){return e.outgoingDataQueue.pause()})),e.sm.on("resend",(function(t){var n=t.kind,r=t.stanza;return e.send(n,r,!0)})),e.sm.on("end-resend",(function(){return e.outgoingDataQueue.resume()}));for(var i=function(){var t=s[o];e.on("stanza:".concat(t),(function(n){"message"===n.kind&&e.emit("message:".concat(t),n.stanza)}))},o=0,s=["acked","hibernated","failed"];o<s.length;o++)i();e.transports={bosh:Pc,websocket:Lc},e.incomingDataQueue=Object(R.priorityQueue)((function(t,n){return Object(A.__awaiter)(a()(e),void 0,void 0,b.a.mark((function e(){var r,i;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.kind,i=t.stanza,this.emit(r,i),i.id&&this.emit(r+":id:"+i.id,i),"message"!==r&&"presence"!==r&&"iq"!==r){e.next=9;break}return this.emit("stanza",i),e.next=7,this.sm.handle();case 7:e.next=15;break;case 9:if("sm"!==r){e.next=15;break}if("ack"!==i.type){e.next=14;break}return e.next=13,this.sm.process(i);case 13:this.emit("stream:management:ack",i);case 14:"request"===i.type&&this.sm.ack();case 15:n&&n();case 16:case"end":return e.stop()}}),e,this)})))}),1);var c=function(t,n){["message","presence","iq"].includes(t)&&(e.sm.started&&e.sm.resumable?e.sm.resumable&&!e.transport&&e.emit("stanza:hibernated",{kind:t,stanza:n}):e.emit("stanza:failed",{kind:t,stanza:n}))};return e.outgoingDataQueue=Object(R.priorityQueue)((function(t,n){return Object(A.__awaiter)(a()(e),void 0,void 0,b.a.mark((function e(){var r,i,a,o,s;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=t.kind,a=t.stanza,o=t.replay,e.t0=o,e.t0){e.next=6;break}return e.next=5,this.sm.track(i,a);case 5:e.t0=e.sent;case 6:if(s=e.t0,"message"===i&&(o?this.emit("message:retry",a):this.emit("message:sent",a,!1)),!this.transport){e.next=21;break}return e.prev=9,e.next=12,this.transport.send(i,a);case 12:s&&(null===(r=this.transport)||void 0===r||r.send("sm",{type:"request"})),e.next=19;break;case 15:e.prev=15,e.t1=e.catch(9),console.error(e.t1),c(i,a);case 19:e.next=22;break;case 21:c(i,a);case 22:n&&n();case 23:case"end":return e.stop()}}),e,this,[[9,15]])})))}),1),e.on("stream:data",(function(t,n){e.incomingDataQueue.push({kind:n,stanza:t},0)})),e.on("--transport-disconnected",(function(){return Object(A.__awaiter)(a()(e),void 0,void 0,b.a.mark((function e(){var t,n=this;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=[],this.incomingDataQueue.idle()||t.push(this.incomingDataQueue.drain()),this.outgoingDataQueue.idle()||t.push(this.outgoingDataQueue.drain()),e.next=5,Promise.all(t);case 5:return e.next=7,this.sm.hibernate();case 7:this.transport&&delete this.transport,this.emit("--reset-stream-features"),!this.sessionTerminating&&this.config.autoReconnect&&(this.reconnectAttempts+=1,clearTimeout(this.reconnectTimer),this.reconnectTimer=setTimeout((function(){n.connect()}),1e3*Math.min(Math.pow(2,this.reconnectAttempts)+Math.random(),this.config.maxReconnectBackoff||32))),this.emit("disconnected");case 11:case"end":return e.stop()}}),e,this)})))})),e.on("iq",(function(t){var n=t.type,r=t.payloadType,i="iq:"+n+":"+r;if("get"===n||"set"===n){if("invalid-payload-count"===r)return e.sendIQError(t,{error:{condition:"bad-request",type:"modify"}});if("unknown-payload"===r||0===e.listenerCount(i))return e.sendIQError(t,{error:{condition:"service-unavailable",type:"cancel"}});e.emit(i,t)}})),e.on("message",(function(t){var n=t.alternateLanguageBodies&&t.alternateLanguageBodies.length||t.links&&t.links.length,r=t.marker&&"markable"!==t.marker.type;n&&!r&&("chat"===t.type||"normal"===t.type?e.emit("chat",t):"groupchat"===t.type&&e.emit("groupchat",t)),"error"===t.type&&e.emit("message:error",t)})),e.on("presence",(function(t){var n=t.type||"available";"error"===n&&(n="presence:error"),e.emit(n,t)})),e.on("session:started",(function(){e.sessionStarting=!1,e.reconnectAttempts=0,e.reconnectTimer&&clearTimeout(e.reconnectTimer)})),e}return x()(n,[{key:"updateConfig",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.config||{};this.config=Object.assign(Object.assign({allowResumption:!0,jid:"",transports:{bosh:!0,websocket:!0},useStreamManagement:!0},t),e),this.config.server||(this.config.server=xe(this.config.jid)),this.config.password&&(this.config.credentials=this.config.credentials||{},this.config.credentials.password=this.config.password,delete this.config.password)}},{key:"emit",value:function(e){for(var t,r=arguments.length,i=new Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];var o,c=(t=s()(O()(n.prototype),"emit",this)).call.apply(t,[this,e].concat(i));"raw"===e?(s()(O()(n.prototype),"emit",this).call(this,"raw:".concat(i[0]),i[1]),s()(O()(n.prototype),"emit",this).call(this,"raw:*","raw:".concat(i[0]),i[1]),s()(O()(n.prototype),"emit",this).call(this,"*","raw:".concat(i[0]),i[1])):(o=s()(O()(n.prototype),"emit",this)).call.apply(o,[this,"*",e].concat(i));return c}},{key:"use",value:function(e){"function"==typeof e&&e(this,this.stanzas,this.config)}},{key:"nextId",value:function(){return ia()}},{key:"getCredentials",value:function(){return Object(A.__awaiter)(this,void 0,void 0,b.a.mark((function e(){return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this._getConfiguredCredentials());case 1:case"end":return e.stop()}}),e,this)})))}},{key:"connect",value:function(){return Object(A.__awaiter)(this,void 0,void 0,b.a.mark((function e(){var t,n,r,i,a;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.sessionTerminating=!1,this.sessionStarting=!0,this.emit("--reset-stream-features"),this.transport&&this.transport.disconnect(!1),n=0,r=["websocket","bosh"];case 6:if(!(n<r.length)){e.next=37;break}if(i=r[n],a=this.config.transports[i]){e.next=11;break}return e.abrupt("continue",34);case 11:if("string"!=typeof a){e.next=15;break}a={url:a},e.next=31;break;case 15:if(!0!==a){e.next=31;break}if(t){e.next=27;break}return e.prev=17,e.next=20,this.discoverBindings(this.config.server);case 20:t=e.sent,e.next=27;break;case 23:return e.prev=23,e.t0=e.catch(17),console.error(e.t0),e.abrupt("continue",34);case 27:if(t[i]=(t[i]||[]).filter((function(e){return e.startsWith("wss:")||e.startsWith("https:")})),t[i]&&t[i].length){e.next=30;break}return e.abrupt("continue",34);case 30:a={url:t[i][0]};case 31:return this.transport=new this.transports[i](this,this.sm,this.stanzas),this.transport.connect(Object.assign({acceptLanguages:this.config.acceptLanguages||["en"],jid:this.config.jid,lang:this.config.lang||"en",server:this.config.server,url:a.url},a)),e.abrupt("return");case 34:n++,e.next=6;break;case 37:console.error("No endpoints found for the requested transports."),this.emit("--transport-disconnected");case 39:case"end":return e.stop()}}),e,this,[[17,23]])})))}},{key:"disconnect",value:function(){return Object(A.__awaiter)(this,void 0,void 0,b.a.mark((function e(){return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.sessionTerminating=!0,clearTimeout(this.reconnectTimer),this.outgoingDataQueue.pause(),this.sessionStarted&&!this.sm.started&&this.emit("session:end"),this.emit("--reset-stream-features"),this.sessionStarted=!1,this.transport?this.transport.disconnect():this.emit("--transport-disconnected"),this.outgoingDataQueue.resume(),this.outgoingDataQueue.idle()){e.next=11;break}return e.next=11,this.outgoingDataQueue.drain();case 11:return e.next=13,this.sm.shutdown();case 13:case"end":return e.stop()}}),e,this)})))}},{key:"send",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return Object(A.__awaiter)(this,void 0,void 0,b.a.mark((function r(){var i=this;return b.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",new Promise((function(r,a){i.outgoingDataQueue.push({kind:e,stanza:t,replay:n},n?0:1,(function(e){return e?a(e):r()}))})));case 1:case"end":return r.stop()}}),r)})))}},{key:"sendMessage",value:function(e){var t=e.id||this.nextId(),n=Object.assign({id:t,originId:t},e);return this.send("message",n),n.id}},{key:"sendPresence",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.assign({id:this.nextId()},e);return this.send("presence",t),t.id}},{key:"sendIQ",value:function(e){var t=this,n=Object.assign({id:this.nextId()},e),r=_e(this.jid,e.to),i="iq:id:"+n.id,a=new Promise((function(e,n){t.on(i,(function a(o){r.has(o.from)&&("result"!==o.type&&"error"!==o.type||(t.off(i,a),"result"===o.type?e(o):n(o)))}))}));this.send("iq",n);var o=this.config.timeout||15;return ta(a,1e3*o,(function(){return Object.assign(Object.assign({},n),{to:void 0,from:void 0,error:{condition:"timeout",text:"Request timed out after ".concat(o," seconds.")},id:n.id,type:"error"})}))}},{key:"sendIQResult",value:function(e,t){this.send("iq",Object.assign(Object.assign({},t),{id:e.id,to:e.from,type:"result"}))}},{key:"sendIQError",value:function(e,t){this.send("iq",Object.assign(Object.assign({},t),{id:e.id,to:e.from,type:"error"}))}},{key:"sendStreamError",value:function(e){this.emit("stream:error",e),this.send("error",e),this.disconnect()}},{key:"_getConfiguredCredentials",value:function(){var e=this.config.credentials||{},t=be(this.config.jid||""),n=e.username||t.local,r=e.host||t.domain;return Object.assign({host:r,password:this.config.password,realm:r,serviceName:r,serviceType:"xmpp",username:n},e)}},{key:"stream",get:function(){return this.transport?this.transport.stream:void 0}}]),n}(N.EventEmitter);function Fc(e,t){var n=e.length,r=t.length,i=Math.min(n,r),a=0;for(a=0;a<i&&e[a]===t[a];a++);var o=0;for(o=0;o<i-a&&e[n-o-1]===t[r-o-1];o++);var s=a+o,c=[];if(s<n&&c.push({length:n-s,position:n-o,type:"erase"}),s<r){var u=t.slice(a,a+r-s);c.push({position:a,text:P.a.ucs2.encode(u),type:"insert"})}return c}var Mc=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];w()(this,e),this.synced=!1,this.cursorPosition=0,this.ignoreWaits=!1,this.timeDeficit=0,this.sequenceNumber=0,this.onStateChange=t||function(){},this.ignoreWaits=n,this.buffer=[],this.resetActionQueue()}return x()(e,[{key:"commit",value:function(){this.resetActionQueue()}},{key:"process",value:function(e){if("cancel"!==e.event&&"init"!==e.event){if("reset"===e.event||"new"===e.event?(this.resetActionQueue(),void 0!==e.seq&&(this.sequenceNumber=e.seq)):e.seq!==this.sequenceNumber&&(this.synced=!1),e.actions){var t,n=Date.now(),r=0,i=F(e.actions);try{for(i.s();!(t=i.n()).done;){var a=t.value;a.baseTime=n+r,"wait"===a.type&&(r+=a.duration),this.actionQueue.push(a,0)}}catch(e){i.e(e)}finally{i.f()}}this.sequenceNumber=this.sequenceNumber+1}else this.resetActionQueue()}},{key:"insert",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.buffer.length;t=t.normalize("NFC");var r=P.a.ucs2.decode(t);(e=this.buffer).splice.apply(e,[n,0].concat(d()(r))),this.cursorPosition=n+r.length,this.emitState()}},{key:"erase",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.buffer.length;t=Math.max(Math.min(t,this.buffer.length),0),e=Math.max(Math.min(e,this.text.length),0),this.buffer.splice(Math.max(t-e,0),e),this.cursorPosition=Math.max(t-e,0),this.emitState()}},{key:"emitState",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.onStateChange(Object.assign({cursorPosition:this.cursorPosition,synced:this.synced,text:this.text},e))}},{key:"resetActionQueue",value:function(){var e=this;this.actionQueue&&this.actionQueue.kill(),this.sequenceNumber=0,this.synced=!0,this.buffer=[],this.timeDeficit=0,this.actionQueue=Object(R.priorityQueue)((function(t,n){var r=Date.now();if("insert"===t.type)return e.insert(t.text,t.position),n();if("erase"===t.type)return e.erase(t.length,t.position),n();if("wait"!==t.type)return n();if(e.ignoreWaits)return n();t.duration>700&&(t.duration=700);var i=t.duration-(r-t.baseTime)+e.timeDeficit;if(i<=0)return e.timeDeficit=i,n();e.timeDeficit=0,setTimeout((function(){return n()}),i)}),1),this.emitState()}},{key:"text",get:function(){return P.a.ucs2.encode(this.buffer.slice())}}]),e}(),Dc=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];w()(this,e),this.resetInterval=1e4,this.ignoreWaits=!1,this.isStarting=!1,this.isReset=!1,this.changedBetweenResets=!1,this.onStateChange=t||function(){},this.ignoreWaits=n,this.buffer=[],this.actionQueue=[],this.sequenceNumber=0}return x()(e,[{key:"update",value:function(e){var t=[];if(void 0!==e){e=e.normalize("NFC");var n=P.a.ucs2.decode(e);t=Fc(this.buffer,n.slice()),this.buffer=n,this.emitState()}var r=Date.now();if(this.changedBetweenResets&&r-this.lastResetTime>this.resetInterval)this.actionQueue=[],this.actionQueue.push({position:0,text:this.text,type:"insert"}),this.isReset=!0,this.lastActionTime=r,this.lastResetTime=r,this.changedBetweenResets=!1;else if(t.length){var i=r-(this.lastActionTime||r);i>0&&!this.ignoreWaits&&this.actionQueue.push({duration:i,type:"wait"});var a,o=F(t);try{for(o.s();!(a=o.n()).done;){var s=a.value;this.actionQueue.push(s)}}catch(e){o.e(e)}finally{o.f()}this.lastActionTime=r,this.changedBetweenResets=!0}else this.lastActionTime=r}},{key:"start",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.resetInterval;return this.commit(),this.isStarting=!0,this.resetInterval=e,this.sequenceNumber=Math.floor(1e4*Math.random()+1),{event:"init"}}},{key:"stop",value:function(){return this.commit(),{event:"cancel"}}},{key:"diff",value:function(){if(this.update(),!this.actionQueue.length)return null;var e={actions:this.actionQueue,seq:this.sequenceNumber++};return this.isStarting?(e.event="new",this.isStarting=!1,this.lastResetTime=Date.now()):this.isReset&&(e.event="reset",this.isReset=!1),this.actionQueue=[],e}},{key:"commit",value:function(){this.sequenceNumber=0,this.lastActionTime=0,this.actionQueue=[],this.buffer=[]}},{key:"emitState",value:function(){this.onStateChange({text:this.text})}},{key:"text",get:function(){return P.a.ucs2.encode(this.buffer.slice())}}]),e}(),Bc=Object.freeze({__proto__:null,diff:Fc,DisplayBuffer:Mc,InputBuffer:Dc}),Uc=function(){function e(t){var n,r,i;w()(this,e),this.resultComplete=!1,this.fetchedCount=0,this.yieldedCount=0,this.cursor={first:t.before,last:t.after},this.query=t.query,this.direction=null!==(n=t.direction)&&void 0!==n?n:"forward",this.reverse=null!==(r=t.reverse)&&void 0!==r?r:"backward"===this.direction,this.pageSize=null!==(i=t.pageSize)&&void 0!==i?i:20}return x()(e,[{key:Symbol.asyncIterator,value:function(){return Object(A.__asyncGenerator)(this,arguments,b.a.mark((function e(){var t,n,r,i;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=[];case 1:return e.next=3,Object(A.__await)(this.fetchPage());case 3:t=e.sent,n=F(t),e.prev=5,n.s();case 7:if((r=n.n()).done){e.next=16;break}return i=r.value,this.yieldedCount+=1,e.next=12,Object(A.__await)(i);case 12:return e.next=14,e.sent;case 14:e.next=7;break;case 16:e.next=21;break;case 18:e.prev=18,e.t0=e.catch(5),n.e(e.t0);case 21:return e.prev=21,n.f(),e.finish(21);case 24:if(t.length>0){e.next=1;break}case 25:case"end":return e.stop()}}),e,this,[[5,18,21,24]])})))}},{key:"size",value:function(){return Object(A.__awaiter)(this,void 0,void 0,b.a.mark((function e(){var t,n;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===this.resultCount){e.next=2;break}return e.abrupt("return",this.resultCount);case 2:return e.next=4,this.query({max:0});case 4:return t=e.sent,n=t.paging,this.resultCount=n.count,e.abrupt("return",n.count);case 8:case"end":return e.stop()}}),e,this)})))}},{key:"queryCompleted",value:function(){return this.resultComplete}},{key:"finished",value:function(){return this.resultComplete&&this.yieldedCount===this.fetchedCount}},{key:"fetchPage",value:function(){var e;return Object(A.__awaiter)(this,void 0,void 0,b.a.mark((function t(){var n,r,i;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.query({before:"backward"===this.direction?null!==(e=this.cursor.first)&&void 0!==e?e:"":void 0,after:"forward"===this.direction?this.cursor.last:void 0,max:this.pageSize});case 2:return n=t.sent,r=n.results,i=n.paging,this.cursor=i,this.resultCount=i.count,this.fetchedCount+=r.length,(this.pageSize&&r.length<this.pageSize||this.resultCount&&this.fetchedCount===this.resultCount)&&(this.resultComplete=!0),this.reverse&&r.reverse(),t.abrupt("return",r);case 11:case"end":return t.stop()}}),t,this)})))}}]),e}();var zc=Object.freeze({__proto__:null,ResultSetPager:Uc,createPager:function(e){return new Uc(e)}}),Jc="12.17.2";function Gc(e){var t=new qc(e);return t.use(Lo),t}}.call(this,n(111).Buffer,n(79))},function(e,t,n){n(115)("species")},function(e,t,n){n(117)("Array")},function(e,t,n){"use strict";n(23),n(9),n(33),n(5),n(74),n(48),n(49),n(50),n(51),n(52),n(53),n(54),n(55),n(56),n(57),n(58),n(59),n(60),n(61),n(62),n(63),n(64),n(65),n(66),n(67),n(68),n(69),n(70),t.byteLength=function(e){var t=u(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,r=u(e),o=r[0],s=r[1],c=new a(function(e,t,n){return 3*(t+n)/4-n}(0,o,s)),l=0,f=s>0?o-4:o;for(n=0;n<f;n+=4)t=i[e.charCodeAt(n)]<<18|i[e.charCodeAt(n+1)]<<12|i[e.charCodeAt(n+2)]<<6|i[e.charCodeAt(n+3)],c[l++]=t>>16&255,c[l++]=t>>8&255,c[l++]=255&t;2===s&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,c[l++]=255&t);1===s&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,c[l++]=t>>8&255,c[l++]=255&t);return c},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,a=[],o=0,s=n-i;o<s;o+=16383)a.push(l(e,o,o+16383>s?s:o+16383));1===i?(t=e[n-1],a.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],a.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return a.join("")};for(var r=[],i=[],a="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,c=o.length;s<c;++s)r[s]=o[s],i[o.charCodeAt(s)]=s;function u(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e,t,n){for(var i,a,o=[],s=t;s<n;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),o.push(r[(a=i)>>18&63]+r[a>>12&63]+r[a>>6&63]+r[63&a]);return o.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(e,t){
10
10
  /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
11
11
  t.read=function(e,t,n,r,i){var a,o,s=8*i-r-1,c=(1<<s)-1,u=c>>1,l=-7,f=n?i-1:0,p=n?-1:1,d=e[t+f];for(f+=p,a=d&(1<<-l)-1,d>>=-l,l+=s;l>0;a=256*a+e[t+f],f+=p,l-=8);for(o=a&(1<<-l)-1,a>>=-l,l+=r;l>0;o=256*o+e[t+f],f+=p,l-=8);if(0===a)a=1-u;else{if(a===c)return o?NaN:1/0*(d?-1:1);o+=Math.pow(2,r),a-=u}return(d?-1:1)*o*Math.pow(2,a-r)},t.write=function(e,t,n,r,i,a){var o,s,c,u=8*a-i-1,l=(1<<u)-1,f=l>>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:a-1,h=r?1:-1,v=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=l):(o=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-o))<1&&(o--,c*=2),(t+=o+f>=1?p/c:p*Math.pow(2,1-f))*c>=2&&(o++,c/=2),o+f>=l?(s=0,o=l):o+f>=1?(s=(t*c-1)*Math.pow(2,i),o+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),o=0));i>=8;e[n+d]=255&s,d+=h,s/=256,i-=8);for(o=o<<i|s,u+=i;u>0;e[n+d]=255&o,d+=h,o/=256,u-=8);e[n+d-h]|=128*v}},function(e,t,n){n(5);var r={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},function(e,t,n){"use strict";var r=n(7),i=n(72).some,a=n(106),o=n(80),s=a("some"),c=o("some");r({target:"Array",proto:!0,forced:!s||!c},{some:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var r=n(7),i=n(254),a=n(11),o=n(31),s=n(196).onFreeze,c=Object.freeze;r({target:"Object",stat:!0,forced:a((function(){c(1)})),sham:!i},{freeze:function(e){return c&&o(e)?c(s(e)):e}})},function(e,t,n){var r=n(7),i=n(256).values;r({target:"Object",stat:!0},{values:function(e){return i(e)}})},function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},function(e,t,n){var r=n(16);e.exports=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=r(e)););return e}},function(e,t,n){var r=n(246);e.exports=function(e){if(Array.isArray(e))return r(e)}},function(e,t){e.exports=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(e,t){e.exports=function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}},function(e,t,n){var r=n(199),i=n(334);function a(t,n,o){return i()?e.exports=a=Reflect.construct:e.exports=a=function(e,t,n){var i=[null];i.push.apply(i,t);var a=new(Function.bind.apply(e,i));return n&&r(a,n.prototype),a},a.apply(null,arguments)}e.exports=a},function(e,t){e.exports=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}},function(e,t,n){n(7)({target:"Number",stat:!0},{MIN_SAFE_INTEGER:-9007199254740991})},function(e,t,n){n(7)({target:"Number",stat:!0},{isNaN:function(e){return e!=e}})},function(e,t,n){var r=n(7),i=n(95),a=n(114),o=n(36),s=n(11),c=i("Reflect","apply"),u=Function.apply;r({target:"Reflect",stat:!0,forced:!s((function(){c((function(){}))}))},{apply:function(e,t,n){return a(e),o(n),c?c(e,t,n):u.call(e,t,n)}})},function(e,t,n){n(7)({target:"Reflect",stat:!0},{ownKeys:n(213)})},function(e,t,n){n(5);var r={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},function(e,t){},function(e,t,n){"use strict";n(10),n(33),n(28);var r=n(163).Buffer,i=n(342);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}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=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}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},e.prototype.concat=function(e){if(0===this.length)return r.alloc(0);if(1===this.length)return this.head.data;for(var t,n,i,a=r.allocUnsafe(e>>>0),o=this.head,s=0;o;)t=o.data,n=a,i=s,t.copy(n,i),s+=o.data.length,o=o.next;return a},e}(),i&&i.inspect&&i.inspect.custom&&(e.exports.prototype[i.inspect.custom]=function(){var e=i.inspect({length:this.length});return this.constructor.name+" "+e})},function(e,t){},function(e,t,n){(function(e){n(161);var r=void 0!==e&&e||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function a(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new a(i.call(setTimeout,r,arguments),clearTimeout)},t.setInterval=function(){return new a(i.call(setInterval,r,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},a.prototype.unref=a.prototype.ref=function(){},a.prototype.close=function(){this._clearFn.call(r,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n(344),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n(79))},function(e,t,n){(function(e,t){n(23),n(20),n(135),n(5),n(161),function(e,n){"use strict";if(!e.setImmediate){var r,i,a,o,s,c=1,u={},l=!1,f=e.document,p=Object.getPrototypeOf&&Object.getPrototypeOf(e);p=p&&p.setTimeout?p:e,"[object process]"==={}.toString.call(e.process)?r=function(e){t.nextTick((function(){h(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((a=new MessageChannel).port1.onmessage=function(e){h(e.data)},r=function(e){a.port2.postMessage(e)}):f&&"onreadystatechange"in f.createElement("script")?(i=f.documentElement,r=function(e){var t=f.createElement("script");t.onreadystatechange=function(){h(e),t.onreadystatechange=null,i.removeChild(t),t=null},i.appendChild(t)}):r=function(e){setTimeout(h,0,e)}:(o="setImmediate$"+Math.random()+"$",s=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(o)&&h(+t.data.slice(o.length))},e.addEventListener?e.addEventListener("message",s,!1):e.attachEvent("onmessage",s),r=function(t){e.postMessage(o+t,"*")}),p.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var i={callback:e,args:t};return u[c]=i,r(c),c++},p.clearImmediate=d}function d(e){delete u[e]}function h(e){if(l)setTimeout(h,0,e);else{var t=u[e];if(t){l=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(void 0,n)}}(t)}finally{d(e),l=!1}}}}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,n(79),n(100))},function(e,t,n){n(115)("hasInstance")},function(e,t,n){"use strict";var r=n(31),i=n(35),a=n(116),o=n(18)("hasInstance"),s=Function.prototype;o in s||i.f(s,o,{value:function(e){if("function"!=typeof this||!r(e))return!1;if(!r(this.prototype))return e instanceof this;for(;e=a(e);)if(this.prototype===e)return!0;return!1}})},function(e,t,n){(function(t){function n(e){try{if(!t.localStorage)return!1}catch(e){return!1}var n=t.localStorage[e];return null!=n&&"true"===String(n).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)}}}).call(this,n(79))},function(e,t,n){"use strict";e.exports=a;var r=n(265),i=Object.create(n(138));function a(e){if(!(this instanceof a))return new a(e);r.call(this,e)}i.inherits=n(139),i.inherits(a,r),a.prototype._transform=function(e,t,n){n(null,e)}},function(e,t,n){var r,i,a=n(267),o=n(268),s=0,c=0;e.exports=function(e,t,n){var u=t&&n||0,l=t||[],f=(e=e||{}).node||r,p=void 0!==e.clockseq?e.clockseq:i;if(null==f||null==p){var d=a();null==f&&(f=r=[1|d[0],d[1],d[2],d[3],d[4],d[5]]),null==p&&(p=i=16383&(d[6]<<8|d[7]))}var h=void 0!==e.msecs?e.msecs:(new Date).getTime(),v=void 0!==e.nsecs?e.nsecs:c+1,m=h-s+(v-c)/1e4;if(m<0&&void 0===e.clockseq&&(p=p+1&16383),(m<0||h>s)&&void 0===e.nsecs&&(v=0),v>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");s=h,c=v,i=p;var g=(1e4*(268435455&(h+=122192928e5))+v)%4294967296;l[u++]=g>>>24&255,l[u++]=g>>>16&255,l[u++]=g>>>8&255,l[u++]=255&g;var y=h/4294967296*1e4&268435455;l[u++]=y>>>8&255,l[u++]=255&y,l[u++]=y>>>24&15|16,l[u++]=y>>>16&255,l[u++]=p>>>8|128,l[u++]=255&p;for(var b=0;b<6;++b)l[u+b]=f[b];return t||o(l)}},function(e,t,n){var r=n(267),i=n(268);e.exports=function(e,t,n){var a=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var o=(e=e||{}).random||(e.rng||r)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t)for(var s=0;s<16;++s)t[a+s]=o[s];return t||i(o)}},function(e,t,n){"use strict";n(9),n(5),n(21),n(22),n(24);var r=n(41),i=n(270),a=n(352),o=n(277);var s=function e(t){var n=new a(t),s=i(a.prototype.request,n);return r.extend(s,a.prototype,n),r.extend(s,n),s.create=function(n){return e(o(t,n))},s}(n(200));s.Axios=a,s.CanceledError=n(164),s.CancelToken=n(367),s.isCancel=n(276),s.VERSION=n(278).version,s.toFormData=n(273),s.AxiosError=n(120),s.Cancel=s.CanceledError,s.all=function(e){return Promise.all(e)},s.spread=n(368),s.isAxiosError=n(369),e.exports=s,e.exports.default=s},function(e,t,n){"use strict";n(10),n(19),n(5),n(21),n(27);var r=n(41),i=n(271),a=n(353),o=n(354),s=n(277),c=n(275),u=n(366),l=u.validators;function f(e){this.defaults=e,this.interceptors={request:new a,response:new a}}f.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=s(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n=t.transitional;void 0!==n&&u.assertOptions(n,{silentJSONParsing:l.transitional(l.boolean),forcedJSONParsing:l.transitional(l.boolean),clarifyTimeoutError:l.transitional(l.boolean)},!1);var r=[],i=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(i=i&&e.synchronous,r.unshift(e.fulfilled,e.rejected))}));var a,c=[];if(this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)})),!i){var f=[o,void 0];for(Array.prototype.unshift.apply(f,r),f=f.concat(c),a=Promise.resolve(t);f.length;)a=a.then(f.shift(),f.shift());return a}for(var p=t;r.length;){var d=r.shift(),h=r.shift();try{p=d(p)}catch(e){h(e);break}}try{a=o(p)}catch(e){return Promise.reject(e)}for(;c.length;)a=a.then(c.shift(),c.shift());return a},f.prototype.getUri=function(e){e=s(this.defaults,e);var t=c(e.baseURL,e.url);return i(t,e.params,e.paramsSerializer)},r.forEach(["delete","get","head","options"],(function(e){f.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,i){return this.request(s(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}f.prototype[e]=t(),f.prototype[e+"Form"]=t(!0)})),e.exports=f},function(e,t,n){"use strict";n(19),n(27);var r=n(41);function i(){this.handlers=[]}i.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=i},function(e,t,n){"use strict";n(19),n(5),n(21),n(27);var r=n(41),i=n(355),a=n(276),o=n(200),s=n(164);function c(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new s}e.exports=function(e){return c(e),e.headers=e.headers||{},e.data=i.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||o.adapter)(e).then((function(t){return c(e),t.data=i.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return a(t)||(c(e),t&&t.response&&(t.response.data=i.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},function(e,t,n){"use strict";n(19),n(27);var r=n(41),i=n(200);e.exports=function(e,t,n){var a=this||i;return r.forEach(n,(function(n){e=n.call(a,e,t)})),e}},function(e,t,n){"use strict";n(19),n(27);var r=n(41);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},function(e,t,n){"use strict";var r=n(120);e.exports=function(e,t,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(new r("Request failed with status code "+n.status,[r.ERR_BAD_REQUEST,r.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}},function(e,t,n){"use strict";n(33),n(359),n(15),n(25),n(89);var r=n(41);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,i,a,o){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(i)&&s.push("path="+i),r.isString(a)&&s.push("domain="+a),!0===o&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(e,t,n){var r=n(32),i=n(12),a=n(126),o=n(156),s=n(35).f,c=n(104).f,u=n(191),l=n(182),f=n(235),p=n(45),d=n(11),h=n(86).set,v=n(117),m=n(18)("match"),g=i.RegExp,y=g.prototype,b=/a/g,_=/a/g,w=new g(b)!==b,S=f.UNSUPPORTED_Y;if(r&&a("RegExp",!w||S||d((function(){return _[m]=!1,g(b)!=b||g(_)==_||"/a/i"!=g(b,"i")})))){for(var x=function(e,t){var n,r=this instanceof x,i=u(e),a=void 0===t;if(!r&&i&&e.constructor===x&&a)return e;w?i&&!a&&(e=e.source):e instanceof x&&(a&&(t=l.call(e)),e=e.source),S&&(n=!!t&&t.indexOf("y")>-1)&&(t=t.replace(/y/g,""));var s=o(w?new g(e,t):g(e,t),r?this:y,x);return S&&n&&h(s,{sticky:n}),s},k=function(e){e in x||s(x,e,{configurable:!0,get:function(){return g[e]},set:function(t){g[e]=t}})},T=c(g),j=0;T.length>j;)k(T[j++]);y.constructor=x,x.prototype=y,p(i,"RegExp",x)}v("RegExp")},function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},function(e,t,n){"use strict";n(15),n(38),e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,n){"use strict";n(10),n(19),n(23),n(15),n(39),n(98),n(27);var r=n(41),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,a,o={};return e?(r.forEach(e.split("\n"),(function(e){if(a=e.indexOf(":"),t=r.trim(e.substr(0,a)).toLowerCase(),n=r.trim(e.substr(a+1)),t){if(o[t]&&i.indexOf(t)>=0)return;o[t]="set-cookie"===t?(o[t]?o[t]:[]).concat([n]):o[t]?o[t]+", "+n:n}})),o):o}},function(e,t,n){"use strict";n(15),n(38),n(198);var r=n(41);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=i(window.location.href),function(t){var n=r.isString(t)?i(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},function(e,t,n){"use strict";n(15),e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},function(e,t){e.exports=null},function(e,t,n){"use strict";n(19),n(71);var r=n(13),i=n(278).version,a=n(120),o={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){o[e]=function(n){return r(n)===e||"a"+(t<1?"n ":" ")+e}}));var s={};o.transitional=function(e,t,n){function r(e,t){return"[Axios v"+i+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,i,o){if(!1===e)throw new a(r(i," has been removed"+(t?" in "+t:"")),a.ERR_DEPRECATED);return t&&!s[i]&&(s[i]=!0,console.warn(r(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,o)}},e.exports={assertOptions:function(e,t,n){if("object"!==r(e))throw new a("options must be an object",a.ERR_BAD_OPTION_VALUE);for(var i=Object.keys(e),o=i.length;o-- >0;){var s=i[o],c=t[s];if(c){var u=e[s],l=void 0===u||c(u,s,e);if(!0!==l)throw new a("option "+s+" must be "+l,a.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new a("Unknown option "+s,a.ERR_BAD_OPTION)}},validators:o}},function(e,t,n){"use strict";n(23),n(81),n(5),n(21);var r=n(164);function i(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t<r;t++)n._listeners[t](e);n._listeners=null}})),this.promise.then=function(e){var t,r=new Promise((function(e){n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},i.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},i.source=function(){var e;return{token:new i((function(t){e=t})),cancel:e}},e.exports=i},function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t,n){"use strict";var r=n(41);e.exports=function(e){return r.isObject(e)&&!0===e.isAxiosError}},function(e,t,n){"use strict";n(75);var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var i={delayFirstAttempt:!1,jitter:"none",maxDelay:1/0,numOfAttempts:10,retry:function(){return!0},startingDelay:100,timeMultiple:2};t.getSanitizedOptions=function(e){var t=r(r({},i),e);return t.numOfAttempts<1&&(t.numOfAttempts=1),t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(372),i=n(376);t.DelayFactory=function(e,t){var n=function(e){if(!e.delayFirstAttempt)return new r.SkipFirstDelay(e);return new i.AlwaysDelay(e)}(e);return n.setAttemptNumber(t),n}},function(e,t,n){"use strict";n(47),n(73),n(97),n(9),n(5),n(21),n(22),n(24);var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}};Object.defineProperty(t,"__esModule",{value:!0});var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.apply=function(){return a(this,void 0,void 0,(function(){return o(this,(function(t){return[2,!!this.isFirstAttempt||e.prototype.apply.call(this)]}))}))},Object.defineProperty(t.prototype,"isFirstAttempt",{get:function(){return 0===this.attempt},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"numOfDelayedAttempts",{get:function(){return this.attempt-1},enumerable:!0,configurable:!0}),t}(n(279).Delay);t.SkipFirstDelay=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(374),i=n(375);t.JitterFactory=function(e){switch(e.jitter){case"full":return r.fullJitter;case"none":default:return i.noJitter}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fullJitter=function(e){var t=Math.random()*e;return Math.round(t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.noJitter=function(e){return e}},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t}(n(279).Delay);t.AlwaysDelay=a},function(e,t,n){"use strict";(function(e){e||Object.defineProperty(window,"crypto",{value:window.crypto||window.msCrypto,writable:!1,configurable:!1})}).call(this,n(79))},function(e,t,n){"use strict";n(10),n(44),n(19),n(82),n(23),n(33),n(30),n(140),n(20),n(81),n(71),n(5),n(21),n(15),n(99),n(38),n(39),n(27);var r=n(14),i=n(0);n(40);var a=n(83),o=n(2),s=n(3),c=n(6);Object.defineProperty(t,"__esModule",{value:!0}),t.Notifications=void 0;var u=n(379),l=n(101);function f(e,t){return[].concat(c(e),c(t)).filter((function(e,t,n){return n.indexOf(e)===t}))}var p=function(){function e(t){o(this,e),this.subscriptions={},this.bulkSubscriptions={},this.topicPriorities={},this.client=t,t.on("pubsub:event",this.pubsubEvent.bind(this)),t.on("connected",this.subscriptionsKeepAlive.bind(this)),this.debouncedResubscribe=u(this.resubscribe.bind(this),100)}var t,n;return s(e,[{key:"topicHandlers",value:function(e){return this.subscriptions[e]||(this.subscriptions[e]=[]),this.subscriptions[e]}},{key:"pubsubEvent",value:function(e){var t=e.pubsub,n=t.items.node;n.includes("no_longer_subscribed")&&(n="no_longer_subscribed");var r=t.items.published[0].content.json,i=this.topicHandlers(n);this.client._stanzaio.emit("notify",{topic:n,data:r}),this.client._stanzaio.emit("notify:".concat(n),r),i.forEach((function(e){e(r)}))}},{key:"xmppSubscribe",value:(n=a(i.mark((function e(t){var n,r=this;return i.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0===this.topicHandlers(t).length&&!this.bulkSubscriptions[t]){e.next=2;break}return e.abrupt("return",Promise.resolve());case 2:if(n=function(){return r.client._stanzaio.subscribeToNode(r.pubsubHost,t)},!this.client.connected){e.next=7;break}return e.abrupt("return",n());case 7:return e.abrupt("return",new Promise((function(e,t){r.client.once("connected",(function(){return n().then(e,t)}))})));case 8:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"xmppUnsubscribe",value:function(e){var t=this;if(0!==this.topicHandlers(e).length||this.bulkSubscriptions[e])return Promise.resolve();var n=function(){return t.client._stanzaio.unsubscribeFromNode(t.pubsubHost,e)};return this.client.connected?n():new Promise((function(e,r){t.client.once("connected",(function(){return n().then(e,r)}))}))}},{key:"mapCombineTopics",value:function(e){var t=this,n={},r=[],i=[];e.forEach((function(e){e.includes("?")?r.push({id:e}):i.push(e)})),i.map((function(e){var t=e.split("."),n=t.splice(t.length-1);return{prefix:t.join("."),postfix:n}})).forEach((function(e){n[e.prefix]?n[e.prefix].push(e.postfix):n[e.prefix]=[e.postfix]}));var a=[];Object.keys(n).forEach((function(e){!function e(n,r){var i=1===r.length?".":"?",o="".concat(n).concat(i).concat(r.join("&"));o.length<200?a.push({id:o}):1===r.length?t.client.logger.error("Refusing to attempt topic with length > 200",o):(e(n,r.slice(0,r.length/2)),e(n,r.slice(r.length/2)))}(e,n[e])}));var o=a.concat(r);return this.truncateTopicList(this.prioritizeTopicList(o))}},{key:"prioritizeTopicList",value:function(e){var t=this;return e.sort((function(e,n){return t.getTopicPriority(n.id)-t.getTopicPriority(e.id)})),e}},{key:"getTopicPriority",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.getTopicParts(e),r=n.prefix,i=n.postfixes,a=this.topicPriorities[r],o=a&&Object.keys(a).filter((function(e){return i.includes(e)})).map((function(e){return a[e]})),s=o&&o.length&&o.reduce((function(e,t){return t>e?t:e}));return t?s||0:s}},{key:"truncateTopicList",value:function(e){var t=e.slice(0,1e3);if(e.length>1e3){var n=e.slice(1e3);if(n.length>20){var r=n.length-20;(n=n.slice(20)).push("...and ".concat(r," more"))}this.client.logger.warn("Too many topics to subscribe to; truncating extra topics",{droppedTopics:n})}return t}},{key:"makeBulkSubscribeRequest",value:function(e,t){var n={method:t.replace?"put":"post",host:this.client.config.apiHost,authToken:this.client.config.authToken,data:JSON.stringify(this.mapCombineTopics(e)),logger:this.client.logger},r=this.client.config.channelId;return this.client.http.requestApi("notifications/channels/".concat(r,"/subscriptions"),n)}},{key:"createSubscription",value:function(e,t){var n=this;l.splitIntoIndividualTopics(e).forEach((function(e){var r=n.topicHandlers(e);r.includes(t)||r.push(t)}))}},{key:"removeSubscription",value:function(e,t){var n=this;l.splitIntoIndividualTopics(e).forEach((function(e){var r=n.topicHandlers(e),i=r.indexOf(t);i>-1&&r.splice(i,1),r.length||delete n.subscriptions[e]}))}},{key:"removeTopicPriority",value:function(e){var t=this;if(this.getTopicPriority(e,!1)){var n=this.getTopicParts(e),r=n.prefix;n.postfixes.forEach((function(e){delete t.topicPriorities[r][e]})),Object.keys(this.topicPriorities[r]).length||delete this.topicPriorities[r]}}},{key:"getActiveIndividualTopics",value:function(){var e=this,t=[];return Object.keys(this.subscriptions).forEach((function(n){"streaming-subscriptions-expiring"!==n&&(e.topicHandlers(n).length>0&&t.push(n))})),t}},{key:"resubscribe",value:function(){var e=Object.keys(this.bulkSubscriptions);return e.length+this.getActiveIndividualTopics().length===0?Promise.resolve():this.bulkSubscribe(e,{replace:!0})}},{key:"subscriptionsKeepAlive",value:function(){var e=this,t="streaming-subscriptions-expiring";0===this.topicHandlers(t).length&&this.createSubscription(t,(function(){e.client.logger.info("".concat(t," - Triggering resubscribe."),{channelId:e.client.config.channelId}),e.resubscribe().catch((function(t){var n="Error resubscribing to topics";e.client.logger.error(n,t),e.client._stanzaio.emit("pubsub:error",{msg:n,err:t})}))}))}},{key:"getTopicParts",value:function(e){var t=e.includes("?"),n=t?"?":".",r=e.split(n),i=t?r[1]:r.splice(r.length-1);return{prefix:t?r[0]:r.join("."),postfixes:t?i.split("&"):i}}},{key:"setTopicPriorities",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object.keys(t).forEach((function(n){var r=e.getTopicParts(n),i=e.topicPriorities[r.prefix],a=t[n];if(i)r.postfixes.forEach((function(e){var t=i[e];(t&&t<a||!t)&&(i[e]=a)}));else{var o=r.postfixes.reduce((function(e,t){return e[t]=a,e}),{});e.topicPriorities[r.prefix]=o}}))}},{key:"subscribe",value:function(e,t,n,i){var a;return i&&this.setTopicPriorities(r({},e,i)),a=n?this.xmppSubscribe(e):this.debouncedResubscribe(),t?this.createSubscription(e,t):this.bulkSubscriptions[e]=!0,a}},{key:"unsubscribe",value:function(e,t,n){return t?this.removeSubscription(e,t):(delete this.bulkSubscriptions[e],delete this.subscriptions[e]),this.removeTopicPriority(e),n?this.xmppUnsubscribe(e):this.debouncedResubscribe()}},{key:"bulkSubscribe",value:(t=a(i.mark((function e(t){var n,r,a,o=this,s=arguments;return i.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=s.length>1&&void 0!==s[1]?s[1]:{replace:!1,force:!1},r=s.length>2&&void 0!==s[2]?s[2]:{},this.setTopicPriorities(r),a=f(t,[]),n.replace&&!n.force?a=f(a,this.getActiveIndividualTopics()):n.force&&(this.subscriptions={}),e.next=7,this.makeBulkSubscribeRequest(a,n);case 7:n.replace&&(this.bulkSubscriptions={}),t.forEach((function(e){o.bulkSubscriptions[e]=!0}));case 9:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"pubsubHost",get:function(){try{var e=this.client.config.apiHost.replace(/http(s?):\/\//,"");return"notifications.".concat(e)}catch(e){return"notifications.mypurecloud.com"}}},{key:"expose",get:function(){return{subscribe:this.subscribe.bind(this),unsubscribe:this.unsubscribe.bind(this),bulkSubscribe:this.bulkSubscribe.bind(this)}}}]),e}();t.Notifications=p},function(e,t,n){"use strict";function r(e){return"function"==typeof e?e():e}function i(){var e={};return e.promise=new Promise((function(t,n){e.resolve=t,e.reject=n})),e}n(10),n(5),n(21),e.exports=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=void 0,o=void 0,s=void 0,c=[];return function(){var l=r(t),f=(new Date).getTime(),p=!a||f-a>l;a=f;for(var d=arguments.length,h=Array(d),v=0;v<d;v++)h[v]=arguments[v];if(p&&n.leading)return n.accumulate?Promise.resolve(e.call(this,[h])).then((function(e){return e[0]})):Promise.resolve(e.call.apply(e,[this].concat(h)));if(o?clearTimeout(s):o=i(),c.push(h),s=setTimeout(u.bind(this),l),n.accumulate){var m=c.length-1;return o.promise.then((function(e){return e[m]}))}return o.promise};function u(){var t=o;clearTimeout(s),Promise.resolve(n.accumulate?e.call(this,c):e.apply(this,c[c.length-1])).then(t.resolve,t.reject),c=[],o=null}}},function(e,t,n){"use strict";n(10),n(44),n(281),n(82),n(9),n(30),n(140),n(81),n(75),n(5),n(21),n(269),n(15),n(22),n(89),n(24);var r=n(4),i=n(14),a=n(0),o=n(6);n(40);var s=n(83),c=n(2),u=n(3),l=n(43),f=n(8),p=n(37),d=n(16);function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function m(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return g(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return g(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function y(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 n,r=d(e);if(t){var i=d(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return p(this,n)}}Object.defineProperty(t,"__esModule",{value:!0}),t.WebrtcExtension=void 0;var b=n(165),_=n(42),w=n(381),S=b.__importDefault(n(384)),x=n(102),k=n(291),T=b.__importDefault(n(387)),j=n(388),E=n(389),I=n(168),O=n(101),A=b.__importDefault(n(398)),R=n(399),N=n(141),C="requestIncomingRtcSession",P="cancelIncomingRtcSession",L="handledIncomingRtcSession",q="incomingRtcSession",F="outgoingRtcSession",M="rtcSessionError",D=function(e){f(B,e);var t,n,i,p,d,h,g,b,_,D=y(B);function B(e,t){var n;return c(this,B),(n=D.call(this)).ignoredSessions=new S.default({max:10,maxAge:216e3}),n.pendingSessions={},n.statsArr=[],n.throttleSendStatsInterval=25e3,n.currentMaxStatSize=15e3,n.statsSizeDecreaseAmount=3e3,n.statBuffer=0,n.discoRetries=0,n.client=e,n.config={allowIPv6:!0===t.allowIPv6,optOutOfWebrtcStatsTelemetry:t.optOutOfWebrtcStatsTelemetry},n.logger=e.logger,e._stanzaio.stanzas.define(E.definitions),e._stanzaio.jingle.prepareSession=n.prepareSession.bind(l(n)),n.jingleJs=e._stanzaio.jingle,n.addEventListeners(),n.proxyEvents(),n.configureStanzaJingle(),n.throttledSendStats=T.default(n.sendStats.bind(l(n)),n.throttleSendStatsInterval,{leading:!1,trailing:!0}),n}return u(B,[{key:"configureStanzaJingle",value:function(){Object.assign(this.client._stanzaio.jingle.config.peerConnectionConfig,{sdpSemantics:"unified-plan"}),this.client._stanzaio.jingle.config.iceServers=[],this.setIceServers([])}},{key:"prepareSession",value:function(e){var t=this.pendingSessions[e.sid];t&&delete this.pendingSessions[t.sessionId];var n="relay"===this.getIceTransportPolicy()&&j.isFirefox,r={options:e,optOutOfWebrtcStatsTelemetry:!!this.config.optOutOfWebrtcStatsTelemetry,conversationId:null==t?void 0:t.conversationId,fromUserId:null==t?void 0:t.fromJid,originalRoomJid:null==t?void 0:t.originalRoomJid,sessionType:null==t?void 0:t.sessionType,allowIPv6:this.config.allowIPv6,ignoreHostCandidatesFromRemote:n},i=new I.GenesysCloudMediaSession(r);return this.proxyStatsForSession(i),i}},{key:"proxyStatsForSession",value:function(e){var t=this;e.on("stats",(function(n){if(!t.client.logger.stopReason){var r=JSON.parse(JSON.stringify(n)),i={conference:e.conversationId,session:e.sid,sessionType:e.sessionType},a=R.formatStatsEvent(r,i),o=O.calculatePayloadSize(a),s=t.statBuffer+o>t.currentMaxStatSize;t.statsArr.push(a),t.statBuffer+=o,s?t.flushStats():t.throttledSendStats()}}))}},{key:"getLogDetailsForPendingSessionId",value:function(e){var t={sessionId:e},n=this.pendingSessions[e];return n&&(t.sessionType=n.sessionType,t.conversationId=n.conversationId),t}},{key:"flushStats",value:function(){this.throttledSendStats.flush()}},{key:"sendStats",value:(_=s(a.mark((function e(){var t,n,r,i,s,c,u,l,f,p;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=[],n=0,r=m(this.statsArr),e.prev=3,r.s();case 5:if((i=r.n()).done){e.next=16;break}if(s=i.value,c=O.calculatePayloadSize(s),!(n+c<this.currentMaxStatSize)){e.next=13;break}t.push(s),n+=c,e.next=14;break;case 13:return e.abrupt("break",16);case 14:e.next=5;break;case 16:e.next=21;break;case 18:e.prev=18,e.t0=e.catch(3),r.e(e.t0);case 21:return e.prev=21,r.f(),e.finish(21);case 24:if(this.statsArr.splice(0,t.length),this.statBuffer=this.statsArr.reduce((function(e,t){return e+O.calculatePayloadSize(t)}),0),t.length&&!this.client.isGuest){e.next=28;break}return e.abrupt("return");case 28:return u={appName:"streamingclient",appVersion:A.default.version,originAppName:this.client.config.appName,originAppVersion:this.client.config.appVersion,actions:t},e.prev=29,l=this.client.config.authToken,f="diagnostics/newrelic/insights",this.client.backgroundAssistantMode&&(l=this.client.config.jwt,f+="/backgroundassistant"),e.next=35,this.client.http.requestApi(f,{method:"post",host:this.client.config.apiHost,authToken:l,logger:this.client.logger,data:u});case 35:this.currentMaxStatSize=15e3,e.next=51;break;case 38:if(e.prev=38,e.t1=e.catch(29),413!==e.t1.status){e.next=50;break}return p=this.currentMaxStatSize,this.currentMaxStatSize-=this.statsSizeDecreaseAmount,this.statsArr=[].concat(t,o(this.statsArr)),this.statBuffer=this.statsArr.reduce((function(e,t){return e+O.calculatePayloadSize(t)}),0),this.logger.info("Failed to send stats due to 413, retrying with smaller set",{attemptedPayloadSize:p,newPayloadSize:this.currentMaxStatSize}),e.next=48,this.sendStats();case 48:e.next=51;break;case 50:this.logger.error("Failed to send stats",{err:e.t1,numberOfFailedStats:t.length});case 51:case"end":return e.stop()}}),e,this,[[3,18,21,24],[29,38]])}))),function(){return _.apply(this,arguments)})},{key:"addEventListeners",value:function(){var e=this;this.client.on("connected",(function(){return e.refreshIceServersTimer&&(clearInterval(e.refreshIceServersTimer),e.refreshIceServersTimer=null),e.refreshIceServersTimer=setInterval(e.refreshIceServers.bind(e),216e5),e.refreshIceServers().catch((function(t){return e.logger.error("Error fetching ice servers after streaming-client connected",{error:t,channelId:e.client.config.channelId})}))})),this.client.on("disconnected",(function(){clearInterval(e.refreshIceServersTimer),e.refreshIceServersTimer=null})),this.client._stanzaio.jingle.on("log",(function(t,n,r){e.logger[t](n,r)})),this.client._stanzaio.on("message",function(){var t=s(a.mark((function t(n){return a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!n.propose){t.next=5;break}return t.next=3,e.handlePropose(n);case 3:t.next=6;break;case 5:n.retract?e.handleRetract(n.retract.sessionId):n.accept&&e.handledIncomingRtcSession(n.accept.sessionId);case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())}},{key:"proxyEvents",value:function(){var e=this;this.client._stanzaio.on("jingle:outgoing",(function(t){return e.emit(F,t)})),this.client._stanzaio.on("jingle:incoming",(function(t){return e.emit(q,t)}));for(var t=function(){var t=r[n];e.client._stanzaio.jingle.on(t,(function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];e.emit.apply(e,[t].concat(r))}))},n=0,r=["iceConnectionType","peerTrackAdded","peerTrackRemoved","mute","unmute","sessionState","connectionState","terminated","stats","endOfCandidates"];n<r.length;n++)t()}},{key:"handlePropose",value:(b=s(a.mark((function e(t){var n,r,i,o,s,c,u;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.from!==this.jid){e.next=2;break}return e.abrupt("return");case 2:if(n=t.propose.sessionId,r=this.pendingSessions[n],i=!!r,o=this.getSessionTypeByJid(t.from),s={sessionId:n,conversationId:t.propose.conversationId,sessionType:o,isDuplicatePropose:i},this.logger.info("propose received",s),i||(c=t.from,u=c,t.propose.originalRoomJid=t.propose.originalRoomJid||u,r=v(v({},t.propose),{},{toJid:t.to,fromJid:c,sessionType:o,roomJid:u,id:n}),this.pendingSessions[n]=r),!r.accepted){e.next=14;break}return this.logger.info("proceed already sent for this session, but sending another",s),e.next=13,this.acceptRtcSession(n);case 13:return e.abrupt("return");case 14:this.emit(C,Object.assign(r));case 15:case"end":return e.stop()}}),e,this)}))),function(e){return b.apply(this,arguments)})},{key:"handleRetract",value:function(e){return this.logger.info("retract received",this.getLogDetailsForPendingSessionId(e)),delete this.pendingSessions[e],this.emit(P,e)}},{key:"handledIncomingRtcSession",value:function(e){return this.logger.info("accept received",this.getLogDetailsForPendingSessionId(e)),this.emit(L,e)}},{key:"initiateRtcSession",value:(g=s(a.mark((function e(t){var n,r,i,o,s,c,u,l,f;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n={to:t.jid,propose:{id:k.v4(),descriptions:[]}},t.stream)for(r=0,i=Array.from(t.stream.getTracks());r<i.length;r++)o=i[r],n.propose.descriptions.push({media:o.kind});if(t.provideVideo&&(n.propose.descriptions.filter((function(e){return"video"===e.media})).length>0||n.propose.descriptions.push({media:"video"})),t.provideAudio&&(n.propose.descriptions.filter((function(e){return"audio"===e.media})).length>0||n.propose.descriptions.push({media:"audio"})),t.mediaPurpose&&n.propose.descriptions.push({media:t.mediaPurpose}),!t.jid||!t.jid.match(/@conference/)){e.next=15;break}0===(s=n.propose.descriptions).length&&(s=[{media:"listener"}]),c={type:"upgradeMedia",to:t.jid,id:k.v4(),from:this.jid,media:{conversationId:t.conversationId,sourceCommunicationId:t.sourceCommunicationId}},u=m(s);try{for(u.s();!(l=u.n()).done;)f=l.value,c.media[f.media]=!0}catch(e){u.e(e)}finally{u.f()}return e.next=13,this.client._stanzaio.send("presence",c);case 13:e.next=18;break;case 15:return e.next=17,this.client._stanzaio.send("message",n);case 17:this.pendingSessions[n.propose.id]=n;case 18:return e.abrupt("return",n.propose.id);case 19:case"end":return e.stop()}}),e,this)}))),function(e){return g.apply(this,arguments)})},{key:"acceptRtcSession",value:(h=s(a.mark((function e(t){var n,r,i;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this.pendingSessions[t]){e.next=4;break}return this.emit(M,"Cannot accept session because it is not pending or does not exist"),e.abrupt("return");case 4:return r={to:n.fromJid,proceed:{sessionId:t}},n.accepted=!0,i=this.getLogDetailsForPendingSessionId(t),this.logger.info("sending jingle proceed",i),e.next=10,this.client._stanzaio.send("message",r);case 10:this.logger.info("sent jingle proceed",i);case 11:case"end":return e.stop()}}),e,this)}))),function(e){return h.apply(this,arguments)})},{key:"rejectRtcSession",value:(d=s(a.mark((function e(t){var n,r,i,o,s,c,u,l=arguments;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=l.length>1&&void 0!==l[1]&&l[1],r=this.getLogDetailsForPendingSessionId(t),i=this.pendingSessions[t]){e.next=6;break}return this.emit(M,"Cannot reject session because it is not pending or does not exist"),e.abrupt("return");case 6:if(delete this.pendingSessions[t],!n){e.next=11;break}this.ignoredSessions.set(t,!0),e.next=19;break;case 11:return o={to:w.toBare(this.jid),reject:{sessionId:t}},s=this.client._stanzaio.send("message",o),c={to:i.fromJid,reject:{sessionId:t}},u=this.client._stanzaio.send("message",c),this.logger.info("sending jingle reject",r),e.next=18,Promise.all([s,u]);case 18:this.logger.info("sent jingle reject",r);case 19:case"end":return e.stop()}}),e,this)}))),function(e){return d.apply(this,arguments)})},{key:"rtcSessionAccepted",value:(p=s(a.mark((function e(t){var n,r;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.pendingSessions[t],n=this.getLogDetailsForPendingSessionId(t),r={to:w.toBare(this.jid),accept:{sessionId:t}},this.logger.info("sending session-info:accept",n),e.next=6,this.client._stanzaio.send("message",r);case 6:this.logger.info("sent session-info:accept",n);case 7:case"end":return e.stop()}}),e,this)}))),function(e){return p.apply(this,arguments)})},{key:"notifyScreenShareStart",value:function(e){return this.client._stanzaio.send("iq",{to:"".concat(e.peerID),from:this.jid,type:"set",jingle:{action:x.JingleAction.SessionInfo,sid:e.sid,screenstart:{}}})}},{key:"notifyScreenShareStop",value:function(e){return this.client._stanzaio.send("iq",{to:"".concat(e.peerID),from:this.jid,type:"set",jingle:{action:x.JingleAction.SessionInfo,sid:e.sid,screenstop:{}}})}},{key:"cancelRtcSession",value:(i=s(a.mark((function e(t){var n,r,i;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this.pendingSessions[t],r=this.getLogDetailsForPendingSessionId(t),n){e.next=5;break}return this.emit(M,"Cannot cancel session because it is not pending or does not exist"),e.abrupt("return");case 5:return i={to:n.toJid,retract:{sessionId:t}},delete this.pendingSessions[t],this.logger.info("sending jingle retract",r),e.next=10,this.client._stanzaio.send("message",i);case 10:this.logger.info("sent jingle retract",r);case 11:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})},{key:"refreshIceServers",value:(n=s(a.mark((function e(){var t=this;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.refreshIceServersRetryPromise||(this.refreshIceServersRetryPromise=O.retryPromise(this._refreshIceServers.bind(this),(function(e){return++t.discoRetries>2?(t.logger.warn("fetching ice servers failed. max retries reached.",{retryAttempt:t.discoRetries,MAX_DISCO_RETRIES:2,error:e,channelId:t.client.config.channelId}),!1):(t.logger.warn("fetching ice servers failed. retrying",{retryAttempt:t.discoRetries,error:e,channelId:t.client.config.channelId}),!0)}),0,this.client.logger)),e.abrupt("return",this.refreshIceServersRetryPromise.promise.finally((function(){t.discoRetries=0,t.refreshIceServersRetryPromise=void 0})));case 2:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"_refreshIceServers",value:(t=s(a.mark((function e(){var t,n,i,s,c,u,l,f,p;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.client._stanzaio.config.server,n=this.client._stanzaio.getServices(t,"turn","1"),i=this.client._stanzaio.getServices(t,"stun","1"),s=new Promise((function(e,t){setTimeout((function(){t(new Error("Timeout waiting for refresh ice servers to finish"))}),15e3),Promise.all([n,i]).then((function(t){var n=r(t,2),i=n[0],a=n[1];e([i,a])})).catch(t)})),e.next=6,s;case 6:return c=e.sent,u=r(c,2),l=u[0],f=u[1],this.logger.debug("STUN/TURN server discovery result",{turnServers:l,stunServers:f}),p=[].concat(o(l.services),o(f.services)).map((function(e){var t=e.port?":".concat(e.port):"",n={type:e.type,urls:"".concat(e.type,":").concat(e.host).concat(t)};return["turn","turns"].includes(e.type)&&(e.transport&&"udp"!==e.transport&&(n.urls+="?transport=".concat(e.transport)),e.username&&(n.username=e.username),e.password&&(n.credential=e.password)),n})),this.setIceServers(p),f.services.length?this.setIceTransportPolicy("all"):(this.logger.info('No stun servers received, setting iceTransportPolicy to "relay"'),this.setIceTransportPolicy("relay")),e.abrupt("return",p);case 15:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"setIceServers",value:function(e){this.client._stanzaio.jingle.iceServers=e}},{key:"getIceTransportPolicy",value:function(){return this.client._stanzaio.jingle.config.peerConnectionConfig.iceTransportPolicy}},{key:"setIceTransportPolicy",value:function(e){this.client._stanzaio.jingle.config.peerConnectionConfig.iceTransportPolicy=e}},{key:"getSessionTypeByJid",value:function(e){return O.isAcdJid(e)?N.SessionTypes.acdScreenShare:O.isScreenRecordingJid(e)?N.SessionTypes.screenRecording:O.isSoftphoneJid(e)?N.SessionTypes.softphone:O.isVideoJid(e)?N.SessionTypes.collaborateVideo:N.SessionTypes.unknown}},{key:"jid",get:function(){return this.client._stanzaio.jid}},{key:"expose",get:function(){return{on:this.on.bind(this),once:this.once.bind(this),off:this.off.bind(this),removeAllListeners:this.removeAllListeners.bind(this),removeListener:this.removeListener.bind(this),refreshIceServers:this.refreshIceServers.bind(this),acceptRtcSession:this.acceptRtcSession.bind(this),rejectRtcSession:this.rejectRtcSession.bind(this),cancelRtcSession:this.cancelRtcSession.bind(this),notifyScreenShareStart:this.notifyScreenShareStart.bind(this),notifyScreenShareStop:this.notifyScreenShareStop.bind(this),rtcSessionAccepted:this.rtcSessionAccepted.bind(this),initiateRtcSession:this.initiateRtcSession.bind(this),getSessionTypeByJid:this.getSessionTypeByJid.bind(this),jingle:this.client._stanzaio.jingle}}}]),B}(_.EventEmitter);t.WebrtcExtension=D},function(e,t,n){"use strict";n(10),n(23),n(9),n(33),n(30),n(20),n(118),n(5),n(15),n(91),n(22),n(38),n(198),n(39),n(24),n(192);var r=n(4);function i(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){c=!0,o=e},f:function(){try{s||null==n.return||n.return()}finally{if(c)throw o}}}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}Object.defineProperty(t,"__esModule",{value:!0}),t.toURI=t.parseURI=t.toBare=t.getResource=t.getDomain=t.getLocal=t.isBare=t.isFull=t.equalBare=t.equal=t.allowedResponders=t.parse=t.createFull=t.create=t.prepare=t.unescapeLocal=t.escapeLocal=void 0;var o=n(1).__importDefault(n(78)),s=n(382);function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.replace(/^\s+|\s+$/g,"").replace(/\\5c/g,"\\5c5c").replace(/\\20/g,"\\5c20").replace(/\\22/g,"\\5c22").replace(/\\26/g,"\\5c26").replace(/\\27/g,"\\5c27").replace(/\\2f/g,"\\5c2f").replace(/\\3a/g,"\\5c3a").replace(/\\3c/g,"\\5c3c").replace(/\\3e/g,"\\5c3e").replace(/\\40/g,"\\5c40").replace(/ /g,"\\20").replace(/"/g,"\\22").replace(/&/g,"\\26").replace(/'/g,"\\27").replace(/\//g,"\\2f").replace(/:/g,"\\3a").replace(/</g,"\\3c").replace(/>/g,"\\3e").replace(/@/g,"\\40")}function u(e){return e.replace(/\\20/g," ").replace(/\\22/g,'"').replace(/\\26/g,"&").replace(/\\27/g,"'").replace(/\\2f/g,"/").replace(/\\3a/g,":").replace(/\\3c/g,"<").replace(/\\3e/g,">").replace(/\\40/g,"@").replace(/\\5c/g,"\\")}function l(e){var t=e.local||"",n=e.domain,r=e.resource||"";return t&&(t=s.nodeprep(t)),r&&(r=s.resourceprep(r)),"."===n[n.length-1]&&(n=n.slice(0,n.length-1)),{domain:n=s.nameprep(n.split(".").map(o.default.toUnicode).join(".")),local:t,resource:r}}function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.local;t.escaped||(n=c(e.local));var r=t.prepared?e:l({local:n,domain:e.domain,resource:e.resource}),i=n?"".concat(n,"@").concat(r.domain):r.domain;return r.resource?"".concat(i,"/").concat(r.resource):i}function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t="",n="",r=e.indexOf("/");r>0&&(n=e.slice(r+1),e=e.slice(0,r));var i=e.indexOf("@");i>0&&(t=e.slice(0,i),e=e.slice(i+1));var a=l({domain:e,local:t,resource:n});return{bare:f({local:a.local,domain:a.domain},{escaped:!0,prepared:!0}),domain:a.domain,full:f(a,{escaped:!0,prepared:!0}),local:u(a.local),resource:a.resource}}function d(e){return!!p(e).resource}function h(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return p(e).bare}t.escapeLocal=c,t.unescapeLocal=u,t.prepare=l,t.create=f,t.createFull=function(e,t){return t?"".concat(h(e),"/").concat(t):h(e)},t.parse=p,t.allowedResponders=function(e,t){var n=new Set;if(n.add(void 0),n.add(""),e){var r=p(e);n.add(r.full),n.add(r.bare),n.add(r.domain)}if(t){var i=p(t);n.add(i.domain),n.add(i.bare),n.add(i.full)}return n},t.equal=function(e,t){if(!e||!t)return!1;var n=p(e),r=p(t);return n.local===r.local&&n.domain===r.domain&&n.resource===r.resource},t.equalBare=function(e,t){if(!e||!t)return!1;var n=p(e),r=p(t);return n.local===r.local&&n.domain===r.domain},t.isFull=d,t.isBare=function(e){return!d(e)},t.getLocal=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return p(e).local},t.getDomain=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return p(e).domain},t.getResource=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return p(e).resource},t.toBare=h,t.parseURI=function(e){var t=new URL(e);if("xmpp:"!==t.protocol)throw new Error("Invalid XMPP URI, wrong protocol: "+t.protocol);var n,a=t.hostname?t.username?f({domain:decodeURIComponent(t.hostname),local:decodeURIComponent(t.username)},{escaped:!0}):decodeURIComponent(t.hostname):void 0,o=p(decodeURIComponent(a?t.pathname.substr(1):t.pathname)).full,s=t.search&&t.search.indexOf(";")>=1,c=s?t.search.substr(t.search.indexOf(";")+1):"",u=t.search?decodeURIComponent(t.search.substr(1,s?t.search.indexOf(";")-1:void 0)):void 0,l={},d=i(c.split(";"));try{for(d.s();!(n=d.n()).done;){var h=n.value.split("=").map(decodeURIComponent),v=r(h,2),m=v[0],g=v[1];if(l[m]){var y=l[m];Array.isArray(y)?y.push(g):l[m]=[y,g]}else l[m]=g}}catch(e){d.e(e)}finally{d.f()}return{action:u,identity:a,jid:o,parameters:l}},t.toURI=function(e){var t=["xmpp:"],n=function(e,n){var r=p(e);r.local&&(t.push(encodeURIComponent(c(r.local))),t.push("@")),t.push(encodeURIComponent(r.domain)),n&&r.resource&&(t.push("/"),t.push(encodeURIComponent(r.resource)))};e.identity&&(t.push("//"),n(e.identity,!1),e.jid&&t.push("/")),e.jid&&n(e.jid,!0),e.action&&(t.push("?"),t.push(encodeURIComponent(e.action)));for(var a=0,o=Object.entries(e.parameters||{});a<o.length;a++){var s,u=r(o[a],2),l=u[0],f=u[1],d=i(Array.isArray(f)?f:[f]);try{for(d.s();!(s=d.n()).done;){var h=s.value;t.push(";"),t.push(encodeURIComponent(l)),void 0!==h&&(t.push("="),t.push(encodeURIComponent(h)))}}catch(e){d.e(e)}finally{d.f()}}return t.join("")}},function(e,t,n){"use strict";n(10),n(9),n(30),n(28),n(90),n(5),n(15),n(25),n(91),n(197),n(160),n(22),n(39),n(24);var r=n(4),i=n(2),a=n(3);function o(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){c=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(c)throw a}}}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}Object.defineProperty(t,"__esModule",{value:!0}),t.saslprep=t.resourceprep=t.nodeprep=t.NodePrepProhibited=t.nameprep=t.prepare=t.D2=t.D1=t.C9=t.C8=t.C7=t.C6=t.C5=t.C4=t.C3=t.C22=t.C21=t.C12=t.C11=t.B3=t.B2=t.B1=t.A1=t.Table=void 0;var c=n(1).__importDefault(n(78)),u=n(383),l=function(){function e(t,n){i(this,e),this.singles=new Set,this.ranges=[],this.mappings=new Map;var a=u.TABLE_DATA[t];this.name=t,a?(a.s&&(this.singles=new Set(a.s.split("|").map((function(e){return parseInt(e,32)})))),a.r&&(this.ranges=a.r.split("|").map((function(e){var t=e.split(":"),n=r(t,2),i=n[0],a=n[1];return[parseInt(i,32),parseInt(a,32)]}))),a.m&&(this.mappings=new Map(a.m.split("|").map((function(e){var t=e.split(":"),n=r(t,2),i=n[0],a=n[1].split(";").map((function(e){return parseInt(e,32)}));return[parseInt(i,32),a]}))))):n&&(this.singles=new Set(n))}return a(e,[{key:"contains",value:function(e){if(this.singles.has(e))return!0;for(var t=0,n=this.ranges.length-1;t<=n;){var r=Math.floor((t+n)/2),i=this.ranges[r];if(e<i[0])n=r-1;else{if(!(e>i[1]))return!0;t=r+1}}return!1}},{key:"hasMapping",value:function(e){return this.mappings.has(e)||this.contains(e)}},{key:"map",value:function(e){return this.contains(e)&&!this.mappings.has(e)?String.fromCodePoint(e).toLowerCase().codePointAt(0):this.mappings.get(e)||null}}]),e}();function f(e,n){var r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",a=c.default.ucs2.decode(i),s=[],u=o(a);try{for(u.s();!(r=u.n()).done;){var l=r.value;if(!n&&e.unassigned.contains(l))throw new Error("Unassigned code point: x"+l.toString(16));var f,p=!1,d=o(e.mappings);try{for(d.s();!(f=d.n()).done;){var h=f.value;if(h.hasMapping(l)){p=!0;var v=h.map(l);v&&(Array.isArray(v)?s=s.concat(v):s.push(v))}}}catch(e){d.e(e)}finally{d.f()}p||s.push(l)}}catch(e){u.e(e)}finally{u.f()}var m=s;if(e.normalize){var g=c.default.ucs2.encode(s),y=g.normalize("NFKC");m=c.default.ucs2.decode(y)}var b,_=!1,w=!1,S=o(m);try{for(S.s();!(b=S.n()).done;){var x,k=b.value,T=o(e.prohibited);try{for(T.s();!(x=T.n()).done;){var j=x.value;if(j.contains(k))throw new Error("Prohibited code point: x"+k.toString(16))}}catch(e){T.e(e)}finally{T.f()}if(!n&&e.unassigned.contains(k))throw new Error("Prohibited code point: x"+k.toString(16));e.bidirectional&&(_=_||t.D1.contains(k),w=w||t.D2.contains(k))}}catch(e){S.e(e)}finally{S.f()}if(e.bidirectional){if(_&&w)throw new Error("String contained both LCat and RandALCat code points");if(_&&(!t.D1.contains(m[0])||!t.D1.contains(m[m.length-1])))throw new Error("String containing RandALCat code points must start and end with RandALCat code points")}return c.default.ucs2.encode(m)}t.Table=l,t.A1=new l("A.1"),t.B1=new l("B.1"),t.B2=new l("B.2"),t.B3=new l("B.3"),t.C11=new l("C.1.1"),t.C12=new l("C.1.2"),t.C21=new l("C.2.1"),t.C22=new l("C.2.2"),t.C3=new l("C.3"),t.C4=new l("C.4"),t.C5=new l("C.5"),t.C6=new l("C.6"),t.C7=new l("C.7"),t.C8=new l("C.8"),t.C9=new l("C.9"),t.D1=new l("D.1"),t.D2=new l("D.2"),t.B1.map=function(){return null},t.C11.contains=function(e){return 32===e},t.C12.map=function(e){return t.C12.contains(e)?32:null},t.prepare=f;var p={bidirectional:!0,mappings:[t.B1,t.B2],normalize:!0,prohibited:[t.C12,t.C22,t.C3,t.C4,t.C5,t.C6,t.C7,t.C8,t.C9],unassigned:t.A1};t.nameprep=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return f(p,t,e)},t.NodePrepProhibited=new l("NodePrepProhibited",[34,38,39,47,58,60,62,64]);var d={bidirectional:!0,mappings:[t.B1,t.B2],normalize:!0,prohibited:[t.C11,t.C12,t.C21,t.C22,t.C3,t.C4,t.C5,t.C6,t.C7,t.C8,t.C9,t.NodePrepProhibited],unassigned:t.A1};t.nodeprep=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return f(d,t,e)};var h={bidirectional:!0,mappings:[t.B1],normalize:!0,prohibited:[t.C12,t.C21,t.C22,t.C3,t.C4,t.C5,t.C6,t.C7,t.C8,t.C9],unassigned:t.A1};t.resourceprep=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return f(h,t,e)};var v={bidirectional:!0,mappings:[t.C12,t.B1],normalize:!0,prohibited:[t.C12,t.C21,t.C22,t.C3,t.C4,t.C5,t.C6,t.C7,t.C8,t.C9],unassigned:t.A1};t.saslprep=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return f(v,t,e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TABLE_DATA=void 0,t.TABLE_DATA={"A.1":{r:"hk:if|le:lf|nf:nv|qg:qv|rg:rj|rm:rp|rr:rt|rv:s3|vn:vv|17m:17n|17q:17v|18g:19g|1an:1ao|1cb:1cg|1e5:1ef|1fb:1ff|1fl:1gb|1gd:1gq|1gs:1gu|1hr:1hv|1im:1iv|1ne:1nf|1pd:1pf|1qb:1rv|1ti:280|29q:29r|2ae:2af|2al:2an|2bh:2c0|2cd:2ce|2ch:2ci|2dj:2dl|2dq:2dr|2e5:2e6|2e9:2ea|2ee:2em|2eo:2er|2f4:2f5|2fr:2g1|2g3:2g4|2gb:2ge|2gh:2gi|2hq:2hr|2i3:2i6|2i9:2ia|2ie:2io|2iv:2j5|2jl:2k0|2lq:2lr|2me:2mf|2mh:2mv|2n1:2n5|2ng:2o0|2od:2oe|2oh:2oi|2pk:2pl|2pq:2pr|2q4:2q6|2q9:2qa|2qe:2ql|2qo:2qr|2r2:2r5|2rh:2s1|2sb:2sd|2sm:2so|2t0:2t2|2t5:2t7|2tb:2td|2tq:2tt|2u3:2u5|2ue:2um|2uo:2v6|2vj:300|31q:31t|32e:32k|32n:32v|332:335|33g:341|35q:35t|36e:36k|36n:36t|372:375|37g:381|39q:39t|3a4:3a5|3ae:3am|3ao:3av|3b2:3b5|3bg:3c1|3cn:3cp|3du:3dv|3e7:3e9|3eb:3ee|3f0:3fh|3fl:3g0|3hr:3hu|3is:3k0|3k5:3k6|3kb:3kc|3ke:3kj|3l8:3l9|3lu:3lv|3me:3mf|3mq:3mr|3mu:3nv|3rb:3rg|3sc:3sf|3ud:3ue|3ug:3vv|41j:41l|41q:41v|42q:44v|466:46f|47p:47q|47s:47v|4aq:4au|4d3:4d7|4fq:4fv|4ie:4if|4iu:4iv|4ke:4kf|4lm:4ln|4m6:4m7|4om:4on|4qr:4r0|4rt:4sv|4vl:500|5jn:5jv|5kt:5kv|5nh:5nv|5ol:5ov|5pn:5pv|5qk:5qv|5rk:5rv|5ut:5uv|5va:5vv|60q:60v|63o:63v|65a:7fv|7ks:7kv|7nq:7nv|7om:7on|7ou:7ov|7q6:7q7|7qe:7qf|7ru:7rv|7uk:7ul|7vg:7vh|82j:82m|82o:82u|834:839|83i:83j|84f:84v|85i:86f|87b:87v|89r:89s|8ac:8ai|8c4:8cf|8uf:8vv|917:91v|92b:92v|9gk:9gl|9ju:9jv|9ka:9o0|9oa:9ob|9qj:9ql|9qv:9r0|9sl:9sn|9tv:9uf|9vc:9vf|ao0:bjv|bnk:bnv|bum:bvf|bvs:bvv|c4n:c4o|c80:c84|c9d:c9g|cdo:cff|cgt:cgv|ci4:cig|cjs:cju|cmc:cmf|crn:crq|cuu:cuv|jdm:jfv|17t6:17vv|194d:194f|1967:1avv|1lt4:1lvv|1uhe:1uhf|1ujb:1unv|1uo7:1uoi|1uoo:1uos|1uti:1uui|1va0:1vaf|1vcg:1vch|1ve8:1vef|1vft:1vfv|1vgg:1vgv|1vh4:1vhf|1vi7:1vi8|1vjc:1vjf|1vnt:1vnu|1vtv:1vu1|1vu8:1vu9|1vug:1vuh|1vuo:1vup|1vut:1vuv|1vvf:1vvo|2000:20nv|20p4:20pf|20qb:20vv|2116:2117|212e:3jvv|3k7m:3k7v|3k97:3k99|3keu:3kvv|3l50:3l51|3l53:3l54|3l57:3l58|3l8b:3l8c|3la7:3la9|3ll4:3ll7|3lua:3lud|3m00:3vvt|59mn:5tvv|5ugu:5vvt|6000:7vvt|8000:9vvt|a000:bvvt|c000:dvvt|e000:fvvt|g000:hvvt|i000:jvvt|k000:lvvt|m000:nvvt|o000:pvvt|q000:rvvt|s002:s00v|s040:tvvt",s:"9p8|9qc|9qe|9qn|9tg|147|bkq|3l2l|3l4t|3l5d|3l5q|3l5s|3l61|3l64|3l86|3l8l|3l8t|3l9q|3l9v|3la5|3lah|16f|c20|ccf|cnv|cvv|1b0|1c8|1d2|1dq|1h0|1nv|1oe|284|2c4|2d9|2dh|2dt|2eu|2h9|2hh|2hk|2hn|2ht|2it|2k4|2kc|2ke|2ki|2l9|2lh|2lk|2m6|2ma|2o4|2p9|2ph|2qu|2s4|2sh|2sr|2st|2tm|2u9|304|30d|30h|319|31k|325|329|344|34d|34h|359|35k|365|369|36v|384|38d|38h|399|3a9|3c4|3di|3ds|3el|3en|3k3|3k9|3ko|3l0|3l4|3l6|3lc|3lq|3m5|3m7|3q8|3so|3tt|412|418|41b|4g7|4i7|4i9|4in|4ip|4k7|4k9|4lf|4lh|4lv|4m1|4mf|4mn|4nf|4of|4oh|4ov|4q7|h1|5od|5rd|5rh|60f|1upn|1upt|1upv|1uq2|1uq5|1vij|1vj7|1vjl|1vo0|1vv7|20ov|7qo|7qq|7qs|7qu|7tl|7u5|7us|7vl|7vv|sb|sd|s000|t2|97v|uf|9go|9o5"},"B.1":{r:"60b:60d|80b:80d|1vg0:1vgf",s:"5d|606|1vnv|830|qf"},"B.2":{m:"5l:ts|6v:3j;3j|9g:39;o7|a9:ls;3e|bv:3j|fg:3a;oc|q5:tp|rq:10;tp|sg:tp;o8;o1|tg:u5;o8;o1|u2:u3|ug:ti|uh:to|ui:u5|uj:ud|uk:ub|ul:u6|um:u0|vg:tq|vh:u1|vi:u3|vl:tl|1c7:1b5;1c2|7km:38;ph|7kn:3k;o8|7ko:3n;oa|7kp:3p;oa|7kq:31;lu|7kr:7j1|7qg:u5;oj|7qi:u5;oj;o0|7qk:u5;oj;o1|7qm:u5;oj;q2|7s0:7o0;tp|7s1:7o1;tp|7s2:7o2;tp|7s3:7o3;tp|7s4:7o4;tp|7s5:7o5;tp|7s6:7o6;tp|7s7:7o7;tp|7s8:7o0;tp|7s9:7o1;tp|7sa:7o2;tp|7sb:7o3;tp|7sc:7o4;tp|7sd:7o5;tp|7se:7o6;tp|7sf:7o7;tp|7sg:7p0;tp|7sh:7p1;tp|7si:7p2;tp|7sj:7p3;tp|7sk:7p4;tp|7sl:7p5;tp|7sm:7p6;tp|7sn:7p7;tp|7so:7p0;tp|7sp:7p1;tp|7sq:7p2;tp|7sr:7p3;tp|7ss:7p4;tp|7st:7p5;tp|7su:7p6;tp|7sv:7p7;tp|7t0:7r0;tp|7t1:7r1;tp|7t2:7r2;tp|7t3:7r3;tp|7t4:7r4;tp|7t5:7r5;tp|7t6:7r6;tp|7t7:7r7;tp|7t8:7r0;tp|7t9:7r1;tp|7ta:7r2;tp|7tb:7r3;tp|7tc:7r4;tp|7td:7r5;tp|7te:7r6;tp|7tf:7r7;tp|7ti:7rg;tp|7tj:th;tp|7tk:tc;tp|7tm:th;q2|7tn:th;q2;tp|7ts:th;tp|7tu:tp|7u2:7rk;tp|7u3:tn;tp|7u4:te;tp|7u6:tn;q2|7u7:tn;q2;tp|7uc:tn;tp|7ui:tp;o8;o0|7uj:tp;o8;o1|7um:tp;q2|7un:tp;o8;q2|7v2:u5;o8;o0|7v3:u5;o8;o1|7v4:u1;oj|7v6:u5;q2|7v7:u5;o8;q2|7vi:7rs;tp|7vj:u9;tp|7vk:ue;tp|7vm:u9;q2|7vn:u9;q2;tp|7vs:u9;tp|858:3i;3j|882:33|883:5g;33|887:ir|889:5g;36|88b:38|88c:38|88d:38|88g:39|88h:39|88i:3c|88l:3e|88m:3e;3f|88p:3g|88q:3h|88r:3i|88s:3i|88t:3i|890:3j;3d|891:3k;35;3c|892:3k;3d|894:3q|898:3q|89c:32|89d:33|89g:35|89h:36|89j:3d|89u:tj|89v:u0|8a5:34|crh:38;3g;31|crj:31;3l|crl:3f;3m|cs0:3g;31|cs1:3e;31|cs2:ts;31|cs3:3d;31|cs4:3b;31|cs5:3b;32|cs6:3d;32|cs7:37;32|csa:3g;36|csb:3e;36|csc:ts;36|csg:38;3q|csh:3b;38;3q|csi:3d;38;3q|csj:37;38;3q|csk:3k;38;3q|ct9:3g;31|cta:3b;3g;31|ctb:3d;3g;31|ctc:37;3g;31|ctk:3g;3m|ctl:3e;3m|ctm:ts;3m|ctn:3d;3m|cto:3b;3m|ctp:3d;3m|ctq:3g;3n|ctr:3e;3n|cts:ts;3n|ctt:3d;3n|ctu:3b;3n|ctv:3d;3n|cu0:3b;u9|cu1:3d;u9|cu3:32;3h|cu6:33;8gl;3b;37|cu7:33;3f;1e|cu8:34;32|cu9:37;3p|cub:38;3g|cud:3b;3b|cue:3b;3d|cun:3g;38|cup:3g;3g;3d|cuq:3g;3i|cus:3j;3m|cut:3n;32|1uo0:36;36|1uo1:36;39|1uo2:36;3c|1uo3:36;36;39|1uo4:36;36;3c|1uo5:3j;3k|1uo6:3j;3k|1uoj:1bk;1bm|1uok:1bk;1b5|1uol:1bk;1bb|1uom:1bu;1bm|1uon:1bk;1bd|3l00:31|3l01:32|3l02:33|3l03:34|3l04:35|3l05:36|3l06:37|3l07:38|3l08:39|3l09:3a|3l0a:3b|3l0b:3c|3l0c:3d|3l0d:3e|3l0e:3f|3l0f:3g|3l0g:3h|3l0h:3i|3l0i:3j|3l0j:3k|3l0k:3l|3l0l:3m|3l0m:3n|3l0n:3o|3l0o:3p|3l0p:3q|3l1k:31|3l1l:32|3l1m:33|3l1n:34|3l1o:35|3l1p:36|3l1q:37|3l1r:38|3l1s:39|3l1t:3a|3l1u:3b|3l1v:3c|3l20:3d|3l21:3e|3l22:3f|3l23:3g|3l24:3h|3l25:3i|3l26:3j|3l27:3k|3l28:3l|3l29:3m|3l2a:3n|3l2b:3o|3l2c:3p|3l2d:3q|3l38:31|3l39:32|3l3a:33|3l3b:34|3l3c:35|3l3d:36|3l3e:37|3l3f:38|3l3g:39|3l3h:3a|3l3i:3b|3l3j:3c|3l3k:3d|3l3l:3e|3l3m:3f|3l3n:3g|3l3o:3h|3l3p:3i|3l3q:3j|3l3r:3k|3l3s:3l|3l3t:3m|3l3u:3n|3l3v:3o|3l40:3p|3l41:3q|3l4s:31|3l4u:33|3l4v:34|3l52:37|3l55:3a|3l56:3b|3l59:3e|3l5a:3f|3l5b:3g|3l5c:3h|3l5e:3j|3l5f:3k|3l5g:3l|3l5h:3m|3l5i:3n|3l5j:3o|3l5k:3p|3l5l:3q|3l6g:31|3l6h:32|3l6i:33|3l6j:34|3l6k:35|3l6l:36|3l6m:37|3l6n:38|3l6o:39|3l6p:3a|3l6q:3b|3l6r:3c|3l6s:3d|3l6t:3e|3l6u:3f|3l6v:3g|3l70:3h|3l71:3i|3l72:3j|3l73:3k|3l74:3l|3l75:3m|3l76:3n|3l77:3o|3l78:3p|3l79:3q|3l84:31|3l85:32|3l87:34|3l88:35|3l89:36|3l8a:37|3l8d:3a|3l8e:3b|3l8f:3c|3l8g:3d|3l8h:3e|3l8i:3f|3l8j:3g|3l8k:3h|3l8m:3j|3l8n:3k|3l8o:3l|3l8p:3m|3l8q:3n|3l8r:3o|3l8s:3p|3l9o:31|3l9p:32|3l9r:34|3l9s:35|3l9t:36|3l9u:37|3la0:39|3la1:3a|3la2:3b|3la3:3c|3la4:3d|3la6:3f|3laa:3j|3lab:3k|3lac:3l|3lad:3m|3lae:3n|3laf:3o|3lag:3p|3lbc:31|3lbd:32|3lbe:33|3lbf:34|3lbg:35|3lbh:36|3lbi:37|3lbj:38|3lbk:39|3lbl:3a|3lbm:3b|3lbn:3c|3lbo:3d|3lbp:3e|3lbq:3f|3lbr:3g|3lbs:3h|3lbt:3i|3lbu:3j|3lbv:3k|3lc0:3l|3lc1:3m|3lc2:3n|3lc3:3o|3lc4:3p|3lc5:3q|3ld0:31|3ld1:32|3ld2:33|3ld3:34|3ld4:35|3ld5:36|3ld6:37|3ld7:38|3ld8:39|3ld9:3a|3lda:3b|3ldb:3c|3ldc:3d|3ldd:3e|3lde:3f|3ldf:3g|3ldg:3h|3ldh:3i|3ldi:3j|3ldj:3k|3ldk:3l|3ldl:3m|3ldm:3n|3ldn:3o|3ldo:3p|3ldp:3q|3lek:31|3lel:32|3lem:33|3len:34|3leo:35|3lep:36|3leq:37|3ler:38|3les:39|3let:3a|3leu:3b|3lev:3c|3lf0:3d|3lf1:3e|3lf2:3f|3lf3:3g|3lf4:3h|3lf5:3i|3lf6:3j|3lf7:3k|3lf8:3l|3lf9:3m|3lfa:3n|3lfb:3o|3lfc:3p|3lfd:3q|3lg8:31|3lg9:32|3lga:33|3lgb:34|3lgc:35|3lgd:36|3lge:37|3lgf:38|3lgg:39|3lgh:3a|3lgi:3b|3lgj:3c|3lgk:3d|3lgl:3e|3lgm:3f|3lgn:3g|3lgo:3h|3lgp:3i|3lgq:3j|3lgr:3k|3lgs:3l|3lgt:3m|3lgu:3n|3lgv:3o|3lh0:3p|3lh1:3q|3lhs:31|3lht:32|3lhu:33|3lhv:34|3li0:35|3li1:36|3li2:37|3li3:38|3li4:39|3li5:3a|3li6:3b|3li7:3c|3li8:3d|3li9:3e|3lia:3f|3lib:3g|3lic:3h|3lid:3i|3lie:3j|3lif:3k|3lig:3l|3lih:3m|3lii:3n|3lij:3o|3lik:3p|3lil:3q|3ljg:31|3ljh:32|3lji:33|3ljj:34|3ljk:35|3ljl:36|3ljm:37|3ljn:38|3ljo:39|3ljp:3a|3ljq:3b|3ljr:3c|3ljs:3d|3ljt:3e|3lju:3f|3ljv:3g|3lk0:3h|3lk1:3i|3lk2:3j|3lk3:3k|3lk4:3l|3lk5:3m|3lk6:3n|3lk7:3o|3lk8:3p|3lk9:3q|3ll8:th|3ll9:ti|3lla:tj|3llb:tk|3llc:tl|3lld:tm|3lle:tn|3llf:to|3llg:tp|3llh:tq|3lli:tr|3llj:ts|3llk:tt|3lll:tu|3llm:tv|3lln:u0|3llo:u1|3llp:to|3llq:u3|3llr:u4|3lls:u5|3llt:u6|3llu:u7|3llv:u8|3lm0:u9|3lmj:u3|3ln2:th|3ln3:ti|3ln4:tj|3ln5:tk|3ln6:tl|3ln7:tm|3ln8:tn|3ln9:to|3lna:tp|3lnb:tq|3lnc:tr|3lnd:ts|3lne:tt|3lnf:tu|3lng:tv|3lnh:u0|3lni:u1|3lnj:to|3lnk:u3|3lnl:u4|3lnm:u5|3lnn:u6|3lno:u7|3lnp:u8|3lnq:u9|3lod:u3|3los:th|3lot:ti|3lou:tj|3lov:tk|3lp0:tl|3lp1:tm|3lp2:tn|3lp3:to|3lp4:tp|3lp5:tq|3lp6:tr|3lp7:ts|3lp8:tt|3lp9:tu|3lpa:tv|3lpb:u0|3lpc:u1|3lpd:to|3lpe:u3|3lpf:u4|3lpg:u5|3lph:u6|3lpi:u7|3lpj:u8|3lpk:u9|3lq7:u3|3lqm:th|3lqn:ti|3lqo:tj|3lqp:tk|3lqq:tl|3lqr:tm|3lqs:tn|3lqt:to|3lqu:tp|3lqv:tq|3lr0:tr|3lr1:ts|3lr2:tt|3lr3:tu|3lr4:tv|3lr5:u0|3lr6:u1|3lr7:to|3lr8:u3|3lr9:u4|3lra:u5|3lrb:u6|3lrc:u7|3lrd:u8|3lre:u9|3ls1:u3|3lsg:th|3lsh:ti|3lsi:tj|3lsj:tk|3lsk:tl|3lsl:tm|3lsm:tn|3lsn:to|3lso:tp|3lsp:tq|3lsq:tr|3lsr:ts|3lss:tt|3lst:tu|3lsu:tv|3lsv:u0|3lt0:u1|3lt1:to|3lt2:u3|3lt3:u4|3lt4:u5|3lt5:u6|3lt6:u7|3lt7:u8|3lt8:u9|3ltr:u3",r:"23:2c|2i:2k|2m:2q|60:6m|6o:6u|bo:bp|c1:c2|c6:c7|c9:cb|ce:ch|cj:ck|cm:co|cs:ct|cv:d0|d6:d7|de:df|dh:dj|dn:do|e4:e5|e7:e8|ea:eb|fh:fi|fm:fo|s8:sa|se:sf|sh:t1|t3:tb|100:11f|19h:1am|7o8:7of|7oo:7ot|7p8:7pf|7po:7pv|7q8:7qd|7r8:7rf|7to:7tr|7u8:7ub|7uo:7ur|7v8:7vc|7vo:7vr|89a:89b|8b0:8bf|95m:96f|1vp1:1vpq|2100:2115",s:"v8|va|vc|ve|vk|130|132|134|136|138|13a|13c|13e|13g|13i|13k|13m|13o|13q|13s|13u|140|14a|14c|14e|14g|14i|14k|14m|14o|14q|14s|14u|150|152|154|156|158|15a|15c|15e|15g|15i|15k|15m|15o|15q|15s|15u|161|163|165|167|169|16b|16d|16g|16i|16k|16m|16o|16q|16s|16u|170|172|174|176|178|17a|17c|17e|17g|17i|17k|17o|180|182|184|186|188|18a|18c|18e|80|82|84|86|88|8a|8c|8e|8g|8i|8k|8m|8o|8q|8s|8u|90|92|94|96|98|9a|9c|9e|9i|9k|9m|9p|9r|9t|9v|a1|a3|a5|a7|aa|ac|ae|ag|ai|ak|am|ao|aq|as|au|b0|b2|b4|b6|b8|ba|bc|be|bg|bi|bk|bm|br|bt|c4|d2|d4|d9|dc|dl|ds|ed|ef|eh|ej|el|en|ep|er|eu|f0|f2|f4|f6|f8|fa|fc|fe|fk|fq|fs|fu|g0|g2|g4|g6|g8|ga|gc|ge|gg|gi|gk|gm|go|gq|gs|gu|h0|h2|h4|h6|h8|ha|hc|he|hg|hi|21|22|7g0|7g2|7g4|7g6|7g8|7ga|7gc|7ge|7gg|7gi|2d|7gk|7gm|7go|7gq|7gs|7gu|7h0|7h2|7h4|7h6|7h8|7ha|7hc|7he|7hg|7hi|7hk|7hm|7ho|7hq|7hs|7hu|7i0|7i2|7i4|7i6|7i8|7ia|7ic|7ie|7ig|7ii|7ik|7im|7io|7iq|7is|7iu|7j0|7j2|7j4|7j6|7j8|7ja|7jc|7je|7jg|7ji|7jk|7jm|2e|7jo|7jq|7js|7ju|7k0|7k2|7k4|7k6|7k8|7ka|7kc|7ke|7kg|7ki|7kk|7l0|7l2|7l4|7l6|7l8|7la|7lc|7le|7lg|7li|7lk|7lm|7lo|7lq|7ls|7lu|7m0|7m2|7m4|7m6|7m8|7ma|7mc|7me|7mg|7mi|7mk|7mm|7mo|7mq|2f|7ms|7mu|7n0|7n2|7n4|7n6|7n8|7na|7nc|7ne|7ng|7ni|7nk|7nm|7no|2g|7qp|7qr|7qt|7qv|2h|896|2l|s6|sc|uo|uq|us|uu|v0|v2|v4|v6"},"B.3":{m:"5l:ts|6v:3j;3j|9g:39;o7|a9:ls;3e|bv:3j|fg:3a;oc|q5:tp|sg:tp;o8;o1|tg:u5;o8;o1|u2:u3|ug:ti|uh:to|ul:u6|um:u0|vg:tq|vh:u1|vi:u3|vl:tl|1c7:1b5;1c2|7km:38;ph|7kn:3k;o8|7ko:3n;oa|7kp:3p;oa|7kq:31;lu|7kr:7j1|7qg:u5;oj|7qi:u5;oj;o0|7qk:u5;oj;o1|7qm:u5;oj;q2|7s0:7o0;tp|7s1:7o1;tp|7s2:7o2;tp|7s3:7o3;tp|7s4:7o4;tp|7s5:7o5;tp|7s6:7o6;tp|7s7:7o7;tp|7s8:7o0;tp|7s9:7o1;tp|7sa:7o2;tp|7sb:7o3;tp|7sc:7o4;tp|7sd:7o5;tp|7se:7o6;tp|7sf:7o7;tp|7sg:7p0;tp|7sh:7p1;tp|7si:7p2;tp|7sj:7p3;tp|7sk:7p4;tp|7sl:7p5;tp|7sm:7p6;tp|7sn:7p7;tp|7so:7p0;tp|7sp:7p1;tp|7sq:7p2;tp|7sr:7p3;tp|7ss:7p4;tp|7st:7p5;tp|7su:7p6;tp|7sv:7p7;tp|7t0:7r0;tp|7t1:7r1;tp|7t2:7r2;tp|7t3:7r3;tp|7t4:7r4;tp|7t5:7r5;tp|7t6:7r6;tp|7t7:7r7;tp|7t8:7r0;tp|7t9:7r1;tp|7ta:7r2;tp|7tb:7r3;tp|7tc:7r4;tp|7td:7r5;tp|7te:7r6;tp|7tf:7r7;tp|7ti:7rg;tp|7tj:th;tp|7tk:tc;tp|7tm:th;q2|7tn:th;q2;tp|7ts:th;tp|7tu:tp|7u2:7rk;tp|7u3:tn;tp|7u4:te;tp|7u6:tn;q2|7u7:tn;q2;tp|7uc:tn;tp|7ui:tp;o8;o0|7uj:tp;o8;o1|7um:tp;q2|7un:tp;o8;q2|7v2:u5;o8;o0|7v3:u5;o8;o1|7v4:u1;oj|7v6:u5;q2|7v7:u5;o8;q2|7vi:7rs;tp|7vj:u9;tp|7vk:ue;tp|7vm:u9;q2|7vn:u9;q2;tp|7vs:u9;tp|1uo0:36;36|1uo1:36;39|1uo2:36;3c|1uo3:36;36;39|1uo4:36;36;3c|1uo5:3j;3k|1uo6:3j;3k|1uoj:1bk;1bm|1uok:1bk;1b5|1uol:1bk;1bb|1uom:1bu;1bm|1uon:1bk;1bd",r:"23:2c|2i:2k|2m:2q|60:6m|6o:6u|bo:bp|c1:c2|c6:c7|c9:cb|ce:ch|cj:ck|cm:co|cs:ct|cv:d0|d6:d7|de:df|dh:dj|dn:do|e4:e5|e7:e8|ea:eb|fh:fi|fm:fo|s8:sa|se:sf|sh:t1|t3:tb|100:11f|19h:1am|7o8:7of|7oo:7ot|7p8:7pf|7po:7pv|7q8:7qd|7r8:7rf|7to:7tr|7u8:7ub|7uo:7ur|7v8:7vc|7vo:7vr|89a:89b|8b0:8bf|95m:96f|1vp1:1vpq|2100:2115",s:"v8|va|vc|ve|vk|130|132|134|136|138|13a|13c|13e|13g|13i|13k|13m|13o|13q|13s|13u|140|14a|14c|14e|14g|14i|14k|14m|14o|14q|14s|14u|150|152|154|156|158|15a|15c|15e|15g|15i|15k|15m|15o|15q|15s|15u|161|163|165|167|169|16b|16d|16g|16i|16k|16m|16o|16q|16s|16u|170|172|174|176|178|17a|17c|17e|17g|17i|17k|17o|180|182|184|186|188|18a|18c|18e|80|82|84|86|88|8a|8c|8e|8g|8i|8k|8m|8o|8q|8s|8u|90|92|94|96|98|9a|9c|9e|9i|9k|9m|9p|9r|9t|9v|a1|a3|a5|a7|aa|ac|ae|ag|ai|ak|am|ao|aq|as|au|b0|b2|b4|b6|b8|ba|bc|be|bg|bi|bk|bm|br|bt|c4|d2|d4|d9|dc|dl|ds|ed|ef|eh|ej|el|en|ep|er|eu|f0|f2|f4|f6|f8|fa|fc|fe|fk|fq|fs|fu|g0|g2|g4|g6|g8|ga|gc|ge|gg|gi|gk|gm|go|gq|gs|gu|h0|h2|h4|h6|h8|ha|hc|he|hg|hi|21|22|7g0|7g2|7g4|7g6|7g8|7ga|7gc|7ge|7gg|7gi|2d|7gk|7gm|7go|7gq|7gs|7gu|7h0|7h2|7h4|7h6|7h8|7ha|7hc|7he|7hg|7hi|7hk|7hm|7ho|7hq|7hs|7hu|7i0|7i2|7i4|7i6|7i8|7ia|7ic|7ie|7ig|7ii|7ik|7im|7io|7iq|7is|7iu|7j0|7j2|7j4|7j6|7j8|7ja|7jc|7je|7jg|7ji|7jk|7jm|2e|7jo|7jq|7js|7ju|7k0|7k2|7k4|7k6|7k8|7ka|7kc|7ke|7kg|7ki|7kk|7l0|7l2|7l4|7l6|7l8|7la|7lc|7le|7lg|7li|7lk|7lm|7lo|7lq|7ls|7lu|7m0|7m2|7m4|7m6|7m8|7ma|7mc|7me|7mg|7mi|7mk|7mm|7mo|7mq|2f|7ms|7mu|7n0|7n2|7n4|7n6|7n8|7na|7nc|7ne|7ng|7ni|7nk|7nm|7no|2g|7qp|7qr|7qt|7qv|2h|896|2l|s6|sc|uo|uq|us|uu|v0|v2|v4|v6"},"C.1.1":{s:"10"},"C.1.2":{r:"800:80b",s:"c00|50|5k0|81f|82v"},"C.2.1":{r:"0:v",s:"3v"},"C.2.2":{r:"40:4v|80c:80d|818:819|830:833|83a:83f|1vvp:1vvs|3kbj:3kbq",s:"1mt|1of|60e|1vnv"},"C.3":{r:"1o00:1u7v|u000:vvvt|10000:11vvt"},"C.4":{r:"1veg:1vff|1vvu:1vvv|3vvu:3vvv|5vvu:5vvv|7vvu:7vvv|9vvu:9vvv|bvvu:bvvv|dvvu:dvvv|fvvu:fvvv|hvvu:hvvv|jvvu:jvvv|lvvu:lvvv|nvvu:nvvv|pvvu:pvvv|rvvu:rvvv|tvvu:tvvv|vvvu:vvvv|11vvu:11vvv"},"C.5":{r:"1m00:1nvv"},"C.6":{r:"1vvp:1vvt"},"C.7":{r:"bvg:bvr"},"C.8":{r:"q0:q1|80e:80f|81a:81e|83a:83f"},"C.9":{r:"s010:s03v",s:"s001"},"D.1":{r:"1eg:1fa|1fg:1fk|1h1:1hq|1i0:1ia|1jd:1jf|1jh:1ml|1n5:1n6|1nq:1nu|1o0:1od|1oi:1pc|1s0:1t5|1uov:1up8|1upa:1upm|1upo:1ups|1uq0:1uq1|1uq3:1uq4|1uq6:1uth|1uuj:1v9t|1vag:1vcf|1vci:1ve7|1vfg:1vfs|1vjg:1vjk|1vjm:1vns",s:"1du|1e0|1e3|1gr|1gv|1mt|1og|1th|1uot|1upu|80f"},"D.2":{r:"21:2q|31:3q|60:6m|6o:7m|7o:h0|h2:hj|ig:ld|lg:lo|lr:m1|mg:mh|n0:n4|s8:sa|se:t1|t3:ue|ug:vl|100:142|14a:16e|16g:17l|17o:17p|180:18f|19h:1am|1ap:1av|1b1:1c7|285:29p|29t:2a0|2a9:2ac|2ao:2b1|2b4:2bg|2c2:2c3|2c5:2cc|2cf:2cg|2cj:2d8|2da:2dg|2dm:2dp|2du:2e0|2e7:2e8|2eb:2ec|2es:2et|2ev:2f1|2f6:2fh|2fk:2fq|2g5:2ga|2gf:2gg|2gj:2h8|2ha:2hg|2hi:2hj|2hl:2hm|2ho:2hp|2hu:2i0|2ip:2is|2j6:2jf|2ji:2jk|2k5:2kb|2kf:2kh|2kj:2l8|2la:2lg|2li:2lj|2ll:2lp|2lt:2m0|2mb:2mc|2n6:2nf|2o2:2o3|2o5:2oc|2of:2og|2oj:2p8|2pa:2pg|2pi:2pj|2pm:2pp|2pt:2pu|2q7:2q8|2qb:2qc|2qs:2qt|2qv:2r1|2r6:2rg|2s5:2sa|2se:2sg|2si:2sl|2sp:2sq|2su:2sv|2t3:2t4|2t8:2ta|2te:2tl|2tn:2tp|2tu:2tv|2u1:2u2|2u6:2u8|2ua:2uc|2v7:2vi|301:303|305:30c|30e:30g|30i:318|31a:31j|31l:31p|321:324|330:331|336:33f|342:343|345:34c|34e:34g|34i:358|35a:35j|35l:35p|360:364|367:368|36a:36b|36l:36m|370:371|376:37f|382:383|385:38c|38e:38g|38i:398|39a:39p|39u:3a0|3a6:3a8|3aa:3ac|3b0:3b1|3b6:3bf|3c2:3c3|3c5:3cm|3cq:3dh|3dj:3dr|3e0:3e6|3ef:3eh|3eo:3ev|3fi:3fk|3g1:3hg|3hi:3hj|3i0:3i6|3if:3ir|3k1:3k2|3k7:3k8|3kk:3kn|3kp:3kv|3l1:3l3|3la:3lb|3ld:3lg|3li:3lj|3m0:3m4|3mg:3mp|3ms:3mt|3o0:3on|3oq:3pk|3pu:3q7|3q9:3ra|3s8:3sb|3tu:3u5|3u7:3uc|400:411|413:417|419:41a|420:42n|450:465|46g:47o|480:4ap|4av:4d2|4d8:4fp|4g0:4g6|4g8:4i6|4ia:4id|4ig:4im|4iq:4it|4j0:4k6|4ka:4kd|4kg:4le|4li:4ll|4lo:4lu|4m2:4m5|4m8:4me|4mg:4mm|4mo:4ne|4ng:4oe|4oi:4ol|4oo:4ou|4p0:4q6|4q8:4qq|4r1:4rs|4t0:4vk|501:5jm|5k1:5kq|5l0:5ng|5o0:5oc|5oe:5oh|5p0:5ph|5pl:5pm|5q0:5qh|5r0:5rc|5re:5rg|5s0:5tm|5tu:5u5|5u7:5u8|5uk:5uq|5v0:5v9|60g:60p|610:63n|640:658|7g0:7kr|7l0:7np|7o0:7ol|7oo:7ot|7p0:7q5|7q8:7qd|7qg:7qn|7qv:7rt|7s0:7tk|7tm:7ts|7u2:7u4|7u6:7uc|7ug:7uj|7um:7ur|7v0:7vc|7vi:7vk|7vm:7vs|88a:88j|88p:88t|89a:89d|89f:89h|89j:89p|89t:89v|8a5:8a9|8b0:8c3|8pm:8rq|94s:979|c05:c07|c11:c19|c1h:c1l|c1o:c1s|c21:c4m|c4t:c4v|c51:c7q|c7s:c7v|c85:c9c|c9h:cce|ccg:cdn|cfg:cgs|ch0:ci3|cj0:cjr|cjv:clg|cm0:cmb|cmg:cnu|co0:crm|crr:cut|cv0:cvu|d00:jdl|jg0:17t5|1800:194c|1b00:1lt3|1m00:1uhd|1uhg:1uja|1uo0:1uo6|1uoj:1uon|1vp1:1vpq|1vq1:1vqq|1vr6:1vtu|1vu2:1vu7|1vua:1vuf|1vui:1vun|1vuq:1vus|20o0:20ou|20p0:20p3|20pg:20qa|2100:2115|2118:212d|3k00:3k7l|3k80:3k96|3k9a:3kb6|3kba:3kbi|3kc3:3kc4|3kcc:3kd9|3kde:3ket|3l00:3l2k|3l2m:3l4s|3l4u:3l4v|3l55:3l56|3l59:3l5c|3l5e:3l5p|3l5t:3l60|3l62:3l63|3l65:3l85|3l87:3l8a|3l8d:3l8k|3l8m:3l8s|3l8u:3l9p|3l9r:3l9u|3la0:3la4|3laa:3lag|3lai:3ll3|3ll8:3lu9|4000:59mm|5u00:5ugt|u000:vvvt|10000:11vvt",s:"3l52|3l5r|3la6|1c9|5a|5l|5q|283|2ag|2di|2en|2iu|2k3|2kd|2m9|2mg|2n0|2q0|2qn|2s3|2ss|2un|35u|36u|3an|3dt|3k4|3ka|3kd|3l5|3l7|3lt|3m6|3pm|3po|3rv|3s5|3uf|41c|41h|41o|47r|4i8|4io|4k8|4lg|4m0|4og|5us|ne|7qp|7qr|7qt|7tu|80e|83h|83v|882|887|88l|894|896|898|rq|s6|sc|8sl"}}},function(e,t,n){"use strict";n(47),n(73),n(44),n(19),n(9),n(30),n(90),n(5),n(22),n(27),n(24);var r=n(2),i=n(3),a=n(385),o=Symbol("max"),s=Symbol("length"),c=Symbol("lengthCalculator"),u=Symbol("allowStale"),l=Symbol("maxAge"),f=Symbol("dispose"),p=Symbol("noDisposeOnSet"),d=Symbol("lruList"),h=Symbol("cache"),v=Symbol("updateAgeOnGet"),m=function(){return 1},g=function(){function e(t){if(r(this,e),"number"==typeof t&&(t={max:t}),t||(t={}),t.max&&("number"!=typeof t.max||t.max<0))throw new TypeError("max must be a non-negative number");this[o]=t.max||1/0;var n=t.length||m;if(this[c]="function"!=typeof n?m:n,this[u]=t.stale||!1,t.maxAge&&"number"!=typeof t.maxAge)throw new TypeError("maxAge must be a number");this[l]=t.maxAge||0,this[f]=t.dispose,this[p]=t.noDisposeOnSet||!1,this[v]=t.updateAgeOnGet||!1,this.reset()}return i(e,[{key:"rforEach",value:function(e,t){t=t||this;for(var n=this[d].tail;null!==n;){var r=n.prev;x(this,e,n,t),n=r}}},{key:"forEach",value:function(e,t){t=t||this;for(var n=this[d].head;null!==n;){var r=n.next;x(this,e,n,t),n=r}}},{key:"keys",value:function(){return this[d].toArray().map((function(e){return e.key}))}},{key:"values",value:function(){return this[d].toArray().map((function(e){return e.value}))}},{key:"reset",value:function(){var e=this;this[f]&&this[d]&&this[d].length&&this[d].forEach((function(t){return e[f](t.key,t.value)})),this[h]=new Map,this[d]=new a,this[s]=0}},{key:"dump",value:function(){var e=this;return this[d].map((function(t){return!b(e,t)&&{k:t.key,v:t.value,e:t.now+(t.maxAge||0)}})).toArray().filter((function(e){return e}))}},{key:"dumpLru",value:function(){return this[d]}},{key:"set",value:function(e,t,n){if((n=n||this[l])&&"number"!=typeof n)throw new TypeError("maxAge must be a number");var r=n?Date.now():0,i=this[c](t,e);if(this[h].has(e)){if(i>this[o])return w(this,this[h].get(e)),!1;var a=this[h].get(e).value;return this[f]&&(this[p]||this[f](e,a.value)),a.now=r,a.maxAge=n,a.value=t,this[s]+=i-a.length,a.length=i,this.get(e),_(this),!0}var u=new S(e,t,i,r,n);return u.length>this[o]?(this[f]&&this[f](e,t),!1):(this[s]+=u.length,this[d].unshift(u),this[h].set(e,this[d].head),_(this),!0)}},{key:"has",value:function(e){if(!this[h].has(e))return!1;var t=this[h].get(e).value;return!b(this,t)}},{key:"get",value:function(e){return y(this,e,!0)}},{key:"peek",value:function(e){return y(this,e,!1)}},{key:"pop",value:function(){var e=this[d].tail;return e?(w(this,e),e.value):null}},{key:"del",value:function(e){w(this,this[h].get(e))}},{key:"load",value:function(e){this.reset();for(var t=Date.now(),n=e.length-1;n>=0;n--){var r=e[n],i=r.e||0;if(0===i)this.set(r.k,r.v);else{var a=i-t;a>0&&this.set(r.k,r.v,a)}}}},{key:"prune",value:function(){var e=this;this[h].forEach((function(t,n){return y(e,n,!1)}))}},{key:"max",set:function(e){if("number"!=typeof e||e<0)throw new TypeError("max must be a non-negative number");this[o]=e||1/0,_(this)},get:function(){return this[o]}},{key:"allowStale",set:function(e){this[u]=!!e},get:function(){return this[u]}},{key:"maxAge",set:function(e){if("number"!=typeof e)throw new TypeError("maxAge must be a non-negative number");this[l]=e,_(this)},get:function(){return this[l]}},{key:"lengthCalculator",set:function(e){var t=this;"function"!=typeof e&&(e=m),e!==this[c]&&(this[c]=e,this[s]=0,this[d].forEach((function(e){e.length=t[c](e.value,e.key),t[s]+=e.length}))),_(this)},get:function(){return this[c]}},{key:"length",get:function(){return this[s]}},{key:"itemCount",get:function(){return this[d].length}}]),e}(),y=function(e,t,n){var r=e[h].get(t);if(r){var i=r.value;if(b(e,i)){if(w(e,r),!e[u])return}else n&&(e[v]&&(r.value.now=Date.now()),e[d].unshiftNode(r));return i.value}},b=function(e,t){if(!t||!t.maxAge&&!e[l])return!1;var n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[l]&&n>e[l]},_=function(e){if(e[s]>e[o])for(var t=e[d].tail;e[s]>e[o]&&null!==t;){var n=t.prev;w(e,t),t=n}},w=function(e,t){if(t){var n=t.value;e[f]&&e[f](n.key,n.value),e[s]-=n.length,e[h].delete(n.key),e[d].removeNode(t)}},S=function e(t,n,i,a,o){r(this,e),this.key=t,this.value=n,this.length=i,this.now=a,this.maxAge=o||0},x=function(e,t,n,r){var i=n.value;b(e,i)&&(w(e,n),e[u]||(i=void 0)),i&&t.call(r,i.value,i.key,e)};e.exports=g},function(e,t,n){"use strict";function r(e){var t=this;if(t instanceof r||(t=new r),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach((function(e){t.push(e)}));else if(arguments.length>0)for(var n=0,i=arguments.length;n<i;n++)t.push(arguments[n]);return t}function i(e,t,n){var r=t===e.head?new s(n,null,t,e):new s(n,t,t.next,e);return null===r.next&&(e.tail=r),null===r.prev&&(e.head=r),e.length++,r}function a(e,t){e.tail=new s(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function o(e,t){e.head=new s(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function s(e,t,n,r){if(!(this instanceof s))return new s(e,t,n,r);this.list=r,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,n?(n.prev=this,this.next=n):this.next=null}n(19),n(30),n(140),n(20),n(81),n(27),e.exports=r,r.Node=s,r.create=r,r.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,n=e.prev;return t&&(t.prev=n),n&&(n.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=n),e.list.length--,e.next=null,e.prev=null,e.list=null,t},r.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}},r.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}},r.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)a(this,arguments[e]);return this.length},r.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)o(this,arguments[e]);return this.length},r.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}},r.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}},r.prototype.forEach=function(e,t){t=t||this;for(var n=this.head,r=0;null!==n;r++)e.call(t,n.value,r,this),n=n.next},r.prototype.forEachReverse=function(e,t){t=t||this;for(var n=this.tail,r=this.length-1;null!==n;r--)e.call(t,n.value,r,this),n=n.prev},r.prototype.get=function(e){for(var t=0,n=this.head;null!==n&&t<e;t++)n=n.next;if(t===e&&null!==n)return n.value},r.prototype.getReverse=function(e){for(var t=0,n=this.tail;null!==n&&t<e;t++)n=n.prev;if(t===e&&null!==n)return n.value},r.prototype.map=function(e,t){t=t||this;for(var n=new r,i=this.head;null!==i;)n.push(e.call(t,i.value,this)),i=i.next;return n},r.prototype.mapReverse=function(e,t){t=t||this;for(var n=new r,i=this.tail;null!==i;)n.push(e.call(t,i.value,this)),i=i.prev;return n},r.prototype.reduce=function(e,t){var n,r=this.head;if(arguments.length>1)n=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");r=this.head.next,n=this.head.value}for(var i=0;null!==r;i++)n=e(n,r.value,i),r=r.next;return n},r.prototype.reduceReverse=function(e,t){var n,r=this.tail;if(arguments.length>1)n=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");r=this.tail.prev,n=this.tail.value}for(var i=this.length-1;null!==r;i--)n=e(n,r.value,i),r=r.prev;return n},r.prototype.toArray=function(){for(var e=new Array(this.length),t=0,n=this.head;null!==n;t++)e[t]=n.value,n=n.next;return e},r.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,n=this.tail;null!==n;t++)e[t]=n.value,n=n.prev;return e},r.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new r;if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var i=0,a=this.head;null!==a&&i<e;i++)a=a.next;for(;null!==a&&i<t;i++,a=a.next)n.push(a.value);return n},r.prototype.sliceReverse=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new r;if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var i=this.length,a=this.tail;null!==a&&i>t;i--)a=a.prev;for(;null!==a&&i>e;i--,a=a.prev)n.push(a.value);return n},r.prototype.splice=function(e,t){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var n=0,r=this.head;null!==r&&n<e;n++)r=r.next;var a=[];for(n=0;r&&n<t;n++)a.push(r.value),r=this.removeNode(r);null===r&&(r=this.tail),r!==this.head&&r!==this.tail&&(r=r.prev);for(n=0;n<(arguments.length<=2?0:arguments.length-2);n++)r=i(this,r,n+2<2||arguments.length<=n+2?void 0:arguments[n+2]);return a},r.prototype.reverse=function(){for(var e=this.head,t=this.tail,n=e;null!==n;n=n.prev){var r=n.prev;n.prev=n.next,n.next=r}return this.head=t,this.tail=e,this};try{n(386)(r)}catch(e){}},function(e,t,n){"use strict";n(47),n(73),n(97),n(9),n(5),n(22),n(24);var r=n(0);n(40),e.exports=function(e){e.prototype[Symbol.iterator]=r.mark((function e(){var t;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=this.head;case 1:if(!t){e.next=7;break}return e.next=4,t.value;case 4:t=t.next,e.next=1;break;case 7:case"end":return e.stop()}}),e,this)}))}},function(e,t,n){(function(t){n(20),n(5),n(15),n(25),n(38);var r=n(13),i=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,s=/^0o[0-7]+$/i,c=parseInt,u="object"==(void 0===t?"undefined":r(t))&&t&&t.Object===Object&&t,l="object"==("undefined"==typeof self?"undefined":r(self))&&self&&self.Object===Object&&self,f=u||l||Function("return this")(),p=Object.prototype.toString,d=Math.max,h=Math.min,v=function(){return f.Date.now()};function m(e,t,n){var r,i,a,o,s,c,u=0,l=!1,f=!1,p=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function m(t){var n=r,a=i;return r=i=void 0,u=t,o=e.apply(a,n)}function y(e){return u=e,s=setTimeout(w,t),l?m(e):o}function _(e){var n=e-c;return void 0===c||n>=t||n<0||f&&e-u>=a}function w(){var e=v();if(_(e))return S(e);s=setTimeout(w,function(e){var n=t-(e-c);return f?h(n,a-(e-u)):n}(e))}function S(e){return s=void 0,p&&r?m(e):(r=i=void 0,o)}function x(){var e=v(),n=_(e);if(r=arguments,i=this,c=e,n){if(void 0===s)return y(c);if(f)return s=setTimeout(w,t),m(c)}return void 0===s&&(s=setTimeout(w,t)),o}return t=b(t)||0,g(n)&&(l=!!n.leading,a=(f="maxWait"in n)?d(b(n.maxWait)||0,t):a,p="trailing"in n?!!n.trailing:p),x.cancel=function(){void 0!==s&&clearTimeout(s),u=0,r=c=i=s=void 0},x.flush=function(){return void 0===s?o:S(v())},x}function g(e){var t=r(e);return!!e&&("object"==t||"function"==t)}function y(e){return"symbol"==r(e)||function(e){return!!e&&"object"==r(e)}(e)&&"[object Symbol]"==p.call(e)}function b(e){if("number"==typeof e)return e;if(y(e))return NaN;if(g(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=g(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var n=o.test(e);return n||s.test(e)?c(e.slice(2),n?2:8):a.test(e)?NaN:+e}e.exports=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return g(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),m(e,t,{leading:r,maxWait:t,trailing:i})}}).call(this,n(79))},function(e,t,n){var r,i;n(23),n(5),n(15),n(25),n(89);var a=n(13);!function(o,s){"object"==a(t)&&void 0!==e?e.exports=s():void 0===(i="function"==typeof(r=s)?r.call(t,n,t,e):r)||(e.exports=i)}(0,(function(){"use strict";var e="undefined"==typeof window,t=!1,n=!1,r=!1,i=!1,a=!1,o=!1,s=!1,c=!1,u=!1,l=!1;return e||(t="undefined"!=typeof InstallTrigger,n=!!window.chrome,r=!(!window.chrome||!window.navigator||!window.navigator.plugins||!window.navigator.plugins.namedItem("Chrome PDF Plugin")&&!window.chrome.runtime),i=n&&!window.chrome.webstore&&!window.chrome.runtime,a=0<Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor")||window.safari&&window.safari.pushNotification,o=!!window.opr&&!!window.opr.addons||!!window.opera,s=!!window.StyleMedia,c=n&&!!navigator.userAgent.match(/edg/i),u=(r||o)&&!!window.CSS,l=!(n||a||t||o||!document.documentMode)),{get isChrome(){return r},get isChromeOrChromium(){return n},get isChromium(){return i},get isFirefox(){return t},get isSafari(){return a},get isOpera(){return o},get isEdge(){return s},get isEdgeChromium(){return c},get isIE(){return l},get isBlink(){return u}}}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.definitions=void 0;var r=n(282),i=n(112),a={aliases:["message.propose"],element:"propose",fields:{conversationId:r.attribute("inin-cid"),persistentConversationId:r.attribute("inin-persistent-cid"),originalRoomJid:r.attribute("inin-ofrom"),autoAnswer:r.booleanAttribute("inin-autoanswer"),fromUserId:r.attribute("inin-user-id"),sessionId:r.attribute("id")},namespace:"urn:xmpp:jingle-message:0"},o={aliases:["message.proceed"],element:"proceed",fields:{sessionId:r.attribute("id")},namespace:"urn:xmpp:jingle-message:0"},s={aliases:["message.accept"],element:"accept",fields:{sessionId:r.attribute("id")},namespace:"urn:xmpp:jingle-message:0"},c={aliases:["message.reject"],element:"reject",fields:{sessionId:r.attribute("id")},namespace:"urn:xmpp:jingle-message:0"},u={aliases:["message.retract"],element:"retract",fields:{sessionId:r.attribute("id")},namespace:"urn:xmpp:jingle-message:0"},l={aliases:["iq.jingle.screenstart"],element:"screen-start",namespace:i.NS_JINGLE_RTP_INFO_1},f={aliases:["iq.jingle.screenstop"],element:"screen-stop",namespace:i.NS_JINGLE_RTP_INFO_1},p={aliases:["presence.media"],element:"x",fields:{conversationId:r.attribute("conversationId"),sourceCommunicationId:r.attribute("sourceCommunicationId"),screenShare:r.childAttribute(null,"mediastream","screenShare"),video:r.childAttribute(null,"mediastream","video"),audio:r.childAttribute(null,"mediastream","audio"),listener:r.childAttribute(null,"mediastream","listener"),screenRecording:r.childAttribute(null,"mediastream","screenRecording")},namespace:"orgspan:mediastream"};t.definitions=[a,o,s,c,u,l,f,p]},function(e,t,n){"use strict";n(10),n(44),n(82),n(9),n(30),n(90),n(118),n(5),n(15),n(99),n(22),n(39),n(24);var r=n(4),i=n(13),a=n(14),o=n(2),s=n(3);function c(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}Object.defineProperty(t,"__esModule",{value:!0});var p=n(1),d=n(167),h=p.__importDefault(n(391)),v=p.__importDefault(n(283)),m=function(){function e(){o(this,e),this.translators=new Map,this.root=new v.default,this.setLanguageResolver(d.basicLanguageResolver)}return s(e,[{key:"setLanguageResolver",value:function(e){this.languageResolver=e}},{key:"import",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{registry:this};if(this.hasTranslator(e.getNamespace(),e.getName())){t.acceptLanguages||(t.acceptLanguages=[]),t.acceptLanguages=t.acceptLanguages.map((function(e){return e.toLowerCase()})),t.lang&&(t.lang=t.lang.toLowerCase()),t.resolveLanguage||(t.resolveLanguage=this.languageResolver),t.path=this.getImportKey(e),t.sanitizers||(t.sanitizers={xhtmlim:h.default});var n=this.getOrCreateTranslator(e.getNamespace(),e.getName());return n.import(e,f(f({},t),{},{registry:this}))}}},{key:"export",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{registry:this};n.acceptLanguages||(n.acceptLanguages=[]),n.acceptLanguages=n.acceptLanguages.map((function(e){return e.toLowerCase()})),n.lang&&(n.lang=n.lang.toLowerCase()),n.sanitizers||(n.sanitizers={xhtmlim:h.default}),n.path=e;var r,i=e.split(".").filter((function(e){return""!==e})),a=this.root,o=c(i);try{for(o.s();!(r=o.n()).done;){var s=r.value,u=a.getChild(s);if(!u)return;a=u}}catch(e){o.e(e)}finally{o.f()}return a.export(t,f(f({},n),{},{registry:this}))}},{key:"getImportKey",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=t?this.walkToTranslator(t.split(".")):this.root;if(n)return n.getImportKey(e)}},{key:"define",value:function(e){if(Array.isArray(e)){var t,n=c(e);try{for(n.s();!(t=n.n()).done;){var a=t.value;"object"===i(a)?this.define(a):a(this)}}catch(e){n.e(e)}finally{n.f()}}else if("object"===i(e)){var o=e;o.aliases=o.aliases||[],o.path&&!o.aliases.includes(o.path)&&o.aliases.push(o.path);var s,u=o.aliases.map((function(e){return"string"==typeof e?{path:e}:e})).sort((function(e,t){var n=e.path.split(".").length;return t.path.split(".").length-n}));if(this.hasTranslator(o.namespace,o.element)&&(s=this.getOrCreateTranslator(o.namespace,o.element)),!s){var l,f,p=c(u);try{for(p.s();!(f=p.n()).done;){var d=f.value,h=this.walkToTranslator(d.path.split("."));if(h&&!h.placeholder){s=h;break}h&&(l=h)}}catch(e){p.e(e)}finally{p.f()}l&&!s&&((s=l).placeholder=!1)}s||(s=this.getOrCreateTranslator(o.namespace,o.element)),this.indexTranslator(o.namespace,o.element,s);var v=o.fields||{},m=new Map,g=new Map,y=new Map,b=new Map;o.typeField&&(s.typeField=o.typeField),o.defaultType&&(s.defaultType=o.defaultType),o.versionField&&(s.versionField=o.versionField),o.defaultVersion&&(s.defaultVersion=o.defaultVersion),o.languageField&&(s.languageField=o.languageField);for(var _=0,w=Object.entries(v);_<w.length;_++){var S=r(w[_],2),x=S[0],k=S[1];m.set(x,k.importer),y.set(x,k.importOrder||k.order||0),g.set(x,k.exporter),b.set(x,k.exportOrder||k.order||0)}if(o.childrenExportOrder)for(var T=0,j=Object.entries(o.childrenExportOrder);T<j.length;T++){var E=r(j[T],2),I=E[0],O=E[1];b.set(I,O||0)}for(var A=new Map,R=0,N=Object.entries(o.optionalNamespaces||{});R<N.length;R++){var C=r(N[R],2),P=C[0],L=C[1];A.set(P,L)}s.updateDefinition({contexts:new Map,element:o.element,exporterOrdering:b,exporters:g,importerOrdering:y,importers:m,namespace:o.namespace,optionalNamespaces:A,type:o.type,version:o.version,typeOrder:o.typeOrder});var q,F=c(u);try{for(F.s();!(q=F.n()).done;){var M=q.value;this.alias(o.namespace,o.element,M.path,M.multiple,M.selector,M.contextField,o.type,M.impliedType)}}catch(e){F.e(e)}finally{F.f()}var D,B=c(u);try{for(B.s();!(D=B.n()).done;){var U=D.value,z=this.walkToTranslator(U.path.split("."));z&&z!==s&&z.replaceWith(s)}}catch(e){B.e(e)}finally{B.f()}}else e(this)}},{key:"alias",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0,o=arguments.length>6?arguments[6]:void 0,s=arguments.length>7&&void 0!==arguments[7]&&arguments[7],c=this.getOrCreateTranslator(e,t);c.placeholder=!1;var u=n.split(".").filter((function(e){return""!==e})),l=u.pop(),f=this.walkToTranslator(u,!0),p="{".concat(e,"}").concat(t);o&&(a||s)&&c.addContext(n,i,a,p,o,s),f.addChild(l,c,r,i,p)}},{key:"walkToTranslator",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.root,i=c(e);try{for(i.s();!(t=i.n()).done;){var a=t.value,o=r.getChild(a);if(!o){if(!n)return;(o=new v.default).placeholder=!0,r.addChild(a,o)}r=o}}catch(e){i.e(e)}finally{i.f()}return r}},{key:"hasTranslator",value:function(e,t){return this.translators.has("{".concat(e,"}").concat(t))}},{key:"getOrCreateTranslator",value:function(e,t){var n=this.translators.get("{".concat(e,"}").concat(t));return n||(n=new v.default,this.indexTranslator(e,t,n)),n}},{key:"indexTranslator",value:function(e,t,n){this.translators.set("{".concat(e,"}").concat(t),n)}}]),e}();t.default=m},function(e,t,n){"use strict";n(10),n(44),n(9),n(33),n(30),n(28),n(90),n(118),n(5),n(15),n(91),n(22),n(89),n(38),n(24);var r=n(4);function i(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){c=!0,o=e},f:function(){try{s||null==n.return||n.return()}finally{if(c)throw o}}}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}Object.defineProperty(t,"__esModule",{value:!0});var o=new Set(["a","blockquote","br","cite","em","img","li","ol","p","span","strong","ul"]),s=new Set(["style"]),c=new Map([["a",new Set(["href","style"])],["body",new Set(["style","xml:lang"])],["blockquote",s],["br",s],["cite",s],["em",s],["img",new Set(["alt","height","src","style","width"])],["li",s],["ol",s],["p",s],["span",s],["strong",s],["ul",s]]),u=new Map([["font-style",/normal|italic|oblique|inherit/i],["font-weight",/normal|bold|bolder|lighter|inherit|\d\d\d/i],["text-decoration",/none|underline|overline|line-through|blink|inherit/i]]),l=function(e){return!!e.match(/^(https?|xmpp|cid|mailto|ftps?|im|ircs?|sips?|tel|geo|bitcoin|magnet):/i)&&e},f=function(e){return!!e.match(/^[0-9]*$/)&&e},p={alt:function(e){return e},height:f,href:l,src:l,style:function(e){var t=";".concat(e).replace(/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,"").replace(/\/\*.*/,"").replace(/\\([a-fA-F0-9]{1,6})\s?/,(function(e,t){return String.fromCharCode(parseInt(t,16))})).match(/;\s*([a-z-]+)\s*:\s*([^;]*[^\s;])\s*/g),n=[];if(!t)return!1;var r,a=i(t);try{for(a.s();!(r=a.n()).done;){var o=r.value.match(/^;\s*([a-z-]+)\s*:\s*([^;]*[^\s])\s*$/);if(o){var s=u.get(o[1]);if(s){var c=o[2].match(s);c&&n.push("".concat(o[1],":").concat(c[0]))}}}}catch(e){a.e(e)}finally{a.f()}return!!n.length&&n.join("")},width:f};function d(e){if("string"==typeof e)return e;if(!o.has(e.name)){if("script"===e.name)return;return function(e){var t,n=[],r=i(e.children);try{for(r.s();!(t=r.n()).done;){var a=t.value;if("string"==typeof a)n.push(a);else{var o=d(a);o&&(Array.isArray(o)?n=n.concat(o):n.push(o))}}}catch(e){r.e(e)}finally{r.f()}return n}(e)}for(var t=e.children.map(d).filter((function(e){return void 0!==e})),n={},a=0,s=Object.entries(e.attributes);a<s.length;a++){var u=r(s[a],2),l=u[0],f=u[1],h=c.get(e.name);if(h&&h.has(l)&&f){var v=p[l](f);v&&(n[l]=v)}}return{attributes:n,children:t,name:e.name}}t.default=function(e){if("string"!=typeof e){var t,n=[],r=i(e.children);try{for(r.s();!(t=r.n()).done;){var a=t.value;if(a)if("string"!=typeof a){var o=d(a);Array.isArray(o)?n=n.concat(o):o&&n.push(o)}else n.push(a)}}catch(e){r.e(e)}finally{r.f()}var s={};if("body"===e.name)return void 0!==e.attributes.xmlns&&(s.xmlns=e.attributes.xmlns),e.attributes.style&&(s.style=e.attributes.style),void 0!==e.attributes["xml:lang"]&&(s["xml:lang"]=e.attributes["xml:lang"]),{attributes:s,children:n,name:"body"}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pubsubItemContentAliases=t.extendStanzaError=t.extendStreamFeatures=t.extendIQ=t.extendPresence=t.extendMessage=t.addAlias=t.childJID=t.childJIDAttribute=t.JIDAttribute=void 0;var r=n(112),i=n(202);t.JIDAttribute=i.attribute,t.childJIDAttribute=i.childAttribute,t.childJID=i.childText,t.addAlias=function(e,t,n){return{aliases:Array.isArray(n)?n:[n],element:t,fields:{},namespace:e}},t.extendMessage=function(e){return{element:"message",fields:e,namespace:r.NS_CLIENT}},t.extendPresence=function(e){return{element:"presence",fields:e,namespace:r.NS_CLIENT}},t.extendIQ=function(e){return{element:"iq",fields:e,namespace:r.NS_CLIENT}},t.extendStreamFeatures=function(e){return{element:"features",fields:e,namespace:r.NS_STREAM}},t.extendStanzaError=function(e){return{element:"error",fields:e,namespace:r.NS_STANZAS,path:"stanzaError"}},t.pubsubItemContentAliases=function(){return[{path:"pubsubcontent",contextField:"itemType"},{path:"pubsubitem.content",contextField:"itemType"},{path:"pubsubeventitem.content",contextField:"itemType"},{path:"iq.pubsub.publish.items",contextField:"itemType"}]}},function(e,t,n){"use strict";n(28),n(5),n(25);var r=n(2),i=n(3),a=n(8),o=n(37),s=n(16);function c(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 n,r=s(e);if(t){var i=s(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return o(this,n)}}Object.defineProperty(t,"__esModule",{value:!0});var u=n(1),l=n(92),f=u.__importDefault(n(166)),p=u.__importDefault(n(201)),d=u.__importDefault(n(203)),h=function(e){a(n,e);var t=c(n);function n(e){var i;return r(this,n),(i=t.call(this,{objectMode:!0})).closedStream=!1,i.wrappedStream=!1,i.registry=e.registry,i.acceptLanguages=e.acceptLanguages||[],e.wrappedStream&&(i.wrappedStream=!0,i.rootImportKey=e.rootKey),i.parser=new d.default({allowComments:e.allowComments}),i.parser.on("error",(function(e){i.destroy(e)})),i.parser.on("startElement",(function(e,t){if(!i.destroyed){if(i.closedStream)return i.destroy(p.default.alreadyClosed());var n=new f.default(e,t),r=i.registry.getImportKey(n);if(i.wrappedStream&&!i.rootElement){if(i.rootImportKey&&r!==i.rootImportKey)return i.destroy(p.default.unknownRoot());var a=i.registry.import(n,{acceptLanguages:i.acceptLanguages,lang:i.lang});return a?(i.rootElement=n,void i.push({event:"stream-start",kind:r,stanza:a,xml:n})):i.destroy(p.default.notWellFormed())}i.currentElement?i.currentElement=i.currentElement.appendChild(n):i.currentElement=n}})),i.parser.on("endElement",(function(e){if(!i.destroyed){if(i.wrappedStream&&!i.currentElement)return i.rootElement&&e===i.rootElement.name?(i.closedStream=!0,i.push({event:"stream-end",kind:i.rootImportKey,stanza:{},xml:i.rootElement}),i.end()):(i.closedStream=!0,i.destroy(p.default.notWellFormed()));if(!i.currentElement||e!==i.currentElement.name)return i.closedStream=!0,i.destroy(p.default.notWellFormed());if(i.currentElement.parent)i.currentElement=i.currentElement.parent;else{i.wrappedStream&&(i.currentElement.parent=i.rootElement);var t=i.registry.getImportKey(i.currentElement),n=i.registry.import(i.currentElement,{acceptLanguages:i.acceptLanguages,lang:i.lang});n&&i.push({kind:t,stanza:n,xml:i.currentElement}),i.currentElement=void 0}}})),i.parser.on("text",(function(e){i.currentElement&&i.currentElement.children.push(e)})),i}return i(n,[{key:"_transform",value:function(e,t,n){this.parser.write(e.toString()),n()}}]),n}(l.Transform);t.default=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SessionManager=t.FileSession=t.MediaSession=t.ICESession=t.Session=t.exportToSDP=t.importFromSDP=void 0;var r=n(1),i=r.__importDefault(n(284));t.FileSession=i.default;var a=r.__importDefault(n(205));t.ICESession=a.default;var o=r.__importDefault(n(286));t.MediaSession=o.default;var s=r.__importDefault(n(207));t.Session=s.default;var c=r.__importDefault(n(395));t.SessionManager=c.default;var u=n(169);Object.defineProperty(t,"importFromSDP",{enumerable:!0,get:function(){return u.importFromSDP}}),Object.defineProperty(t,"exportToSDP",{enumerable:!0,get:function(){return u.exportToSDP}})},function(e,t,n){"use strict";n(10),n(44),n(82),n(23),n(30),n(81),n(71),n(99);var r=n(14),i=n(2),a=n(3),o=n(8),s=n(37),c=n(16);function u(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(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 n,r=c(e);if(t){var i=c(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return s(this,n)}}Object.defineProperty(t,"__esModule",{value:!0});var h=n(1),v=n(42),m=n(204),g=n(102),y=n(112),b=n(285),_=h.__importDefault(n(284)),w=h.__importDefault(n(286)),S=h.__importDefault(n(207));var x=function(e){o(n,e);var t=d(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return i(this,n),r=r||{},(e=t.call(this)).selfID=r.selfID,e.sessions={},e.peers={},e.iceServers=r.iceServers||[],e.prepareSession=r.prepareSession||function(t){if(e.config.hasRTCPeerConnection)return t.applicationTypes.indexOf(y.NS_JINGLE_RTP_1)>=0?new w.default(t):t.applicationTypes.indexOf(y.NS_JINGLE_FILE_TRANSFER_5)>=0?new _.default(t):void 0},e.performTieBreak=r.performTieBreak||function(e,t){var n=(t.jingle.contents||[]).map((function(e){if(e.application)return e.application.applicationType}));return(e.pendingApplicationTypes||[]).filter((function(e){return n.includes(e)})).length>0},e.createPeerConnection=r.createPeerConnection||function(e,t){if(m.RTCPeerConnection)return new m.RTCPeerConnection(t)},e.config=p({debug:!1,hasRTCPeerConnection:!!m.RTCPeerConnection,peerConnectionConfig:{bundlePolicy:r.bundlePolicy||"balanced",iceTransportPolicy:r.iceTransportPolicy||"all",rtcpMuxPolicy:r.rtcpMuxPolicy||"require",sdpSemantics:r.sdpSemantics},peerConnectionConstraints:{optional:[{DtlsSrtpKeyAgreement:!0},{RtpDataChannels:!1}]}},r),e}return a(n,[{key:"addICEServer",value:function(e){if("string"!=typeof e)if((t=e).type||!t.urls&&!t.url){var t,n=e.host||"";n.indexOf(":")>=0&&(n="[".concat(n,"]"));var r="".concat(e.type,":").concat(n);e.port&&(r+=":".concat(e.port)),e.transport&&(r+="?transport=".concat(e.transport)),"turn"===e.type||"turns"===e.type?this.iceServers.push({credential:e.password,urls:[r],username:e.username}):"stun"!==e.type&&"stuns"!==e.type||this.iceServers.push({urls:[r]})}else this.iceServers.push(e);else this.iceServers.push({urls:e})}},{key:"resetICEServers",value:function(){this.iceServers=[]}},{key:"addSession",value:function(e){e.parent=this;var t=e.sid,n=e.peerID;return this.sessions[t]=e,this.peers[n]||(this.peers[n]=[]),this.peers[n].push(e),this.emit("createdSession",e),e}},{key:"forgetSession",value:function(e){var t=this.peers[e.peerID]||[];t.length&&t.splice(t.indexOf(e),1),delete this.sessions[e.sid]}},{key:"createMediaSession",value:function(e,t,n){var r=new w.default({config:this.config.peerConnectionConfig,constraints:this.config.peerConnectionConstraints,iceServers:this.iceServers,initiator:!0,maxRelayBandwidth:786432,parent:this,peerID:e,sid:t,stream:n});return this.addSession(r),r}},{key:"createFileTransferSession",value:function(e,t){var n=new _.default({config:this.config.peerConnectionConfig,constraints:this.config.peerConnectionConstraints,iceServers:this.iceServers,initiator:!0,maxRelayBandwidth:786432,parent:this,peerID:e,sid:t});return this.addSession(n),n}},{key:"endPeerSessions",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.peers[e]||[];delete this.peers[e];var i,a=u(r);try{for(a.s();!(i=a.n()).done;){var o=i.value;o.end(t||"gone",n)}}catch(e){a.e(e)}finally{a.f()}}},{key:"endAllSessions",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=0,r=Object.keys(this.peers);n<r.length;n++){var i=r[n];this.endPeerSessions(i,e,t)}}},{key:"process",value:function(e){var t=this,n=e.jingle?e.jingle.sid:void 0,r=n?this.sessions[n]:void 0,i=e.id,a=e.from;if(a){if("error"===e.type){if(this._log("error","Received error response",e),r&&e.error&&"unknown-session"===e.error.jingleError)return r.end("gone",!0);var o=e.error&&"tie-break"===e.error.jingleError;return r&&"pending"===r.state&&o?r.end("alternative-session",!0):void(r&&(r.pendingAction=void 0))}if("result"!==e.type){var s=e.jingle.action,c=e.jingle.contents||[],u=c.map((function(e){return e.application?e.application.applicationType:void 0})),l=c.map((function(e){return e.transport?e.transport.transportType:void 0}));if(s!==g.JingleAction.SessionInitiate){if(!r)return"session-terminate"===s?void this.emit("send",{id:i,to:a,type:"result"}):(this._log("error","Unknown session",n),this._sendError(a,i,{condition:"item-not-found",jingleError:"unknown-session"}));if(r.peerID!==a||"ended"===r.state)return this._log("error","Session has ended, or action has wrong sender"),this._sendError(a,i,{condition:"item-not-found",jingleError:"unknown-session"});if("session-accept"===s&&"pending"!==r.state)return this._log("error","Tried to accept session twice",n),this._sendError(a,i,{condition:"unexpected-request",jingleError:"out-of-order"});if("session-terminate"!==s&&s===r.pendingAction&&(this._log("error","Tie break during pending request"),r.isInitiator))return this._sendError(a,i,{condition:"conflict",jingleError:"tie-break"})}else if(r){if(r.peerID!==a)return this._log("error","Duplicate sid from new sender"),this._sendError(a,i,{condition:"service-unavailable"});if("pending"!==r.state)return this._log("error","Someone is doing this wrong"),this._sendError(a,i,{condition:"unexpected-request",jingleError:"out-of-order"});if(this.selfID&&this.selfID>r.peerID&&this.performTieBreak(r,e))return this._log("error","Tie break new session because of duplicate sids"),this._sendError(a,i,{condition:"conflict",jingleError:"tie-break"})}else if(this.peers[a]&&this.peers[a].length)for(var f=0,p=this.peers[a].length;f<p;f++){var d=this.peers[a][f];if(d&&"pending"===d.state&&n&&b.octetCompare(d.sid,n)>0&&this.performTieBreak(d,e))return this._log("info","Tie break session-initiate"),this._sendError(a,i,{condition:"conflict",jingleError:"tie-break"})}if("session-initiate"===s){if(!c.length)return this._sendError(a,i,{condition:"bad-request"});r=this._createIncomingSession({applicationTypes:u,config:this.config.peerConnectionConfig,constraints:this.config.peerConnectionConstraints,iceServers:this.iceServers,initiator:!1,parent:this,peerID:a,sid:n,transportTypes:l},e)}r.process(s,e.jingle,(function(n){n?(t._log("error","Could not process request",e,n),t._sendError(a,i,n)):(t.emit("send",{id:i,to:a,type:"result"}),"session-initiate"===s&&t.emit("incoming",r))}))}else r&&(r.pendingAction=void 0)}}},{key:"signal",value:function(e,t){var n=t.jingle&&t.jingle.action;e.isInitiator&&n===g.JingleAction.SessionInitiate&&this.emit("outgoing",e),this.emit("send",t)}},{key:"_createIncomingSession",value:function(e,t){var n;return this.prepareSession&&(n=this.prepareSession(e,t)),n||(n=new S.default(e)),this.addSession(n),n}},{key:"_sendError",value:function(e,t,n){n.type||(n.type="cancel"),this.emit("send",{error:n,id:t,to:e,type:"error"})}},{key:"_log",value:function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];this.emit.apply(this,["log",e,t].concat(r)),this.emit.apply(this,["log:"+e,t].concat(r))}}]),n}(v.EventEmitter);t.default=x},function(e,t,n){"use strict";n(47),n(73),n(97),n(44),n(133),n(19),n(82),n(23),n(9),n(71),n(5),n(21),n(15),n(22),n(39),n(27),n(24);var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||a(t,e,n)},s=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},c=this&&this.__generator||function(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}};Object.defineProperty(t,"__esModule",{value:!0});var u,l=n(42);o(n(397),t);var f=function(e){function t(t,n){void 0===n&&(n={});var r=e.call(this)||this;return r.peerConnection=t,r.haveConnectionMetrics=!1,u="undefined"!=typeof window,r.session=n.session,r.initiator=n.initiator,r.conference=n.conference,r.statsInterval=1e3*(n.interval||5),r.logger=n.logger||console,["new","checking"].includes(t.iceConnectionState)&&("checking"===t.iceConnectionState&&(r.logger.warn("iceConnectionState is already in checking state so ice connect time may not be accurate"),r.handleIceStateChange()),t.addEventListener("iceconnectionstatechange",r.handleIceStateChange.bind(r))),t.addEventListener("connectionstatechange",r.handleConnectionStateChange.bind(r)),"connected"===t.connectionState&&r.pollForStats(),r}return i(t,e),t.prototype.handleIceStateChange=function(){var e=this,t=this.peerConnection.iceConnectionState;if("checking"===t&&u&&(this.iceStartTime=window.performance.now()),"connected"===t){if(this.haveConnectionMetrics)return;this.haveConnectionMetrics=!0;var n=void 0,r=void 0,i=void 0;u&&(this.iceConnectionTime=window.performance.now()-this.iceStartTime,n=window.navigator.userAgent,r=window.navigator.platform,i=window.navigator.hardwareConcurrency);var a={name:"connect",userAgent:n,platform:r,cores:i,session:this.session,conference:this.conference,connectTime:this.iceConnectionTime};return this.waitForSelectedCandidatePair().then((function(t){e.gatherSelectedCandidateInfo(t,a),e.emit("stats",a)}))}if("failed"===t)return u&&(this.iceFailedTime=window.performance.now()-this.iceStartTime),this.gatherStats().then((function(t){var n={name:"failure",session:e.session,initiator:e.initiator,conference:e.conference,failTime:e.iceFailedTime,iceRW:0,numLocalHostCandidates:0,numLocalSrflxCandidates:0,numLocalRelayCandidates:0,numRemoteHostCandidates:0,numRemoteSrflxCandidates:0,numRemoteRelayCandidates:0},r=e.peerConnection.localDescription.sdp.split("\r\n").filter((function(e){return e.indexOf("a=candidate:")>-1})),i=e.peerConnection.remoteDescription.sdp.split("\r\n").filter((function(e){return e.indexOf("a=candidate:")>-1}));["Host","Srflx","Relay"].forEach((function(e){n["numLocal"+e+"Candidates"]=r.filter((function(t){return t.split(" ")[7]===e.toLowerCase()})).length,n["numRemote"+e+"Candidates"]=i.filter((function(t){return t.split(" ")[7]===e.toLowerCase()})).length})),e.emit("stats",n)}))},t.prototype.waitForSelectedCandidatePair=function(e,t){var n=this;return void 0===e&&(e=300),void 0===t&&(t=1),this.gatherStats().then((function(r){return n.getSelectedCandidatePair(r)?r:t>3?Promise.reject(new Error("Max wait attempts for connected candidate info reached")):new Promise((function(r,i){setTimeout((function(){return n.waitForSelectedCandidatePair(e,t+1).then(r,i)}),e)}))}))},t.prototype.getSelectedCandidatePair=function(e){var t=null;return e.forEach((function(e){var n=e.value;"candidate-pair"===n.type&&n.nominated&&"succeeded"===n.state&&(t=n)})),t},t.prototype.gatherSelectedCandidateInfo=function(e,t){var n=this.getSelectedCandidatePair(e);if(n){var r,i,a=n.localCandidateId,o=n.remoteCandidateId;if(e.forEach((function(e){e.key;var n=e.value;a&&"local-candidate"===n.type&&n.id===a&&(r=n,t.localCandidateType=n.candidateType),o&&"remote-candidate"===n.type&&n.id===o&&(i=n,t.remoteCandidateType=n.candidateType)})),r&&i&&(t.candidatePair=r.candidateType+";"+i.candidateType,t.candidatePairDetails={local:r,remote:i,pair:n}),r){if(t.transport=r.transport||r.protocol,r.priority){var s=parseInt(r.priority,10);t.turnType={2:"udp",1:"tcp",0:"tls"}[s>>24],t.networkType=r.networkType}t.usingIPv6=r.ipAddress&&0===r.ipAddress.indexOf("[")}}},t.prototype.handleConnectionStateChange=function(){return s(this,void 0,void 0,(function(){var e,t=this;return c(this,(function(n){if("connected"===(e=this.peerConnection.connectionState))this.pollForStats();else{if("disconnected"===e)return"stable"!==this.peerConnection.signalingState?[2]:[2,this.gatherStats().then((function(e){var n=t.createStatsReport(e);n.type="disconnected",t.emit("stats",n)}))];"closed"===e&&this.pollingInterval&&(u&&window.clearInterval(this.pollingInterval),this.pollingInterval=null)}return[2]}))}))},t.prototype.pollForStats=function(){var e=this;if(!this.pollingInterval){var t=function(){return e.gatherStats().then((function(t){var n=e.createStatsReport(t,!0);(n.tracks.length>0||n.remoteTracks.length>0)&&e.emit("stats",n)}))};u&&(window.setTimeout(t,0),this.pollingInterval=window.setInterval(t,this.statsInterval))}},t.prototype.polyFillStats=function(e){if(!e)return[];if(Array.isArray(e))return e;var t=[];if(this.isNativeStatsReport(e))e.forEach((function(e,n){t.push({key:n,value:e})}));else{if(!(Object.keys(e).length>0))return this.logger.warn("Unknown stats results format, returning unmodified",e),[];Object.keys(e).forEach((function(n){t.push({key:n,value:e[n]})}))}return t},t.prototype.isNativeStatsReport=function(e){return void 0!==window.RTCStatsReport&&e instanceof window.RTCStatsReport},t.prototype.gatherStats=function(){return s(this,void 0,void 0,(function(){var e;return c(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,this.peerConnection.getStats(null).then(this.polyFillStats.bind(this))];case 1:return[2,t.sent()];case 2:return e=t.sent(),this.logger.error("Failed to gather stats. Are you using RTCPeerConnection as your connection? {expect peerconnection.getStats}",{peerConnection:this.peerConnection,err:e}),[2,Promise.reject(e)];case 3:return[2]}}))}))},t.prototype.createStatsReport=function(e,t){var n=this;void 0===t&&(t=!0);var r={name:"getStats",session:this.session,initiator:this.initiator,conference:this.conference,tracks:[],remoteTracks:[]};e.filter((function(e){return["inbound-rtp","outbound-rtp"].indexOf(e.value.type)>-1})).forEach((function(t){n.processSource({source:t.value,event:r,results:e})}));var i=e.find((function(e){return"candidate-pair"===e.value.type&&"succeeded"===e.value.state&&!0===e.value.nominated}));return i&&this.processSelectedCandidatePair({report:i.value,event:r,results:e}),t&&(this.lastResult=e),r},t.prototype.processSource=function(e){var t,n,r,i,a,o,s,c=e.source,u=e.results,l=e.event,f=new Date(c.timestamp),d=this.lastResult&&this.lastResult.find((function(e){return e.key===c.id}));(d=d&&d.value)&&(t=(t=this.lastResult&&this.lastResult.find((function(e){return e.value.localId===d.id})))&&t.value),u.forEach((function(e){e.value.localId===c.id?n=e.value:e.key===c.transportId?r=e.value:e.key===c.trackId?a=e.value:e.key===c.mediaSourceId?o=e.value:e.key===c.codecId&&(s=e.value)})),r&&(i=(i=u.find((function(e){return e.key===r.selectedCandidatePairId})))&&i.value),i&&(l.candidatePairHadActiveSource=!0);var h=c.kind||c.mediaType,v="outbound-rtp"===c.type,m={track:a&&a.trackIdentifier,kind:h,jitter:p("jitter",c,n),roundTripTime:p("roundTripTime",c,n),packetsLost:p("packetsLost",c,n)||0,packetLoss:0,bytes:parseInt(v?c.bytesSent:c.bytesReceived,10)||0};if(s&&(m.codec=s.payloadType+" "+s.mimeType+" "+s.clockRate),d){var g=parseInt(v?d.bytesSent:d.bytesReceived,10)||0,y=f.getTime()-new Date(d.timestamp).getTime();m.bitrate=Math.floor(8*(m.bytes-g)/y)}var b=p("packetsLost",d,t);v?(m.packetsSent=c.packetsSent,m.packetLoss=m.packetsLost/(m.packetsSent||1)*100,d&&(m.intervalPacketsSent=m.packetsSent-(d.packetsSent||0),m.intervalPacketsLost=m.packetsLost-(b||0),m.intervalPacketLoss=m.intervalPacketsLost/(m.intervalPacketsSent||1)*100),m.retransmittedBytesSent=c.retransmittedBytesSent,m.retransmittedPacketsSent=c.retransmittedPacketsSent):(m.packetsReceived=c.packetsReceived,m.packetLoss=m.packetsLost/(100*m.packetsReceived||1),d&&(m.intervalPacketsReceived=m.packetsReceived-d.packetsReceived,m.intervalPacketsLost=m.packetsLost-b,m.intervalPacketLoss=m.intervalPacketsLost/(m.intervalPacketsReceived||1)*100)),a&&"audio"===h&&(a.remoteSource?(m.audioLevel=a.audioLevel,m.totalAudioEnergy=a.totalAudioEnergy):(m.echoReturnLoss=a.echoReturnLoss,m.echoReturnLossEnhancement=a.echoReturnLossEnhancement)),"audio"!==h||!o||a&&a.remoteSource||(m.audioLevel=o.audioLevel,m.totalAudioEnergy=o.totalAudioEnergy),Object.keys(m).forEach((function(e){return void 0===m[e]&&delete m[e]})),v?l.tracks.push(m):l.remoteTracks.push(m)},t.prototype.processSelectedCandidatePair=function(e){var t=this,n=e.report,r=e.event,i=e.results,a=n.localCandidateId,o=n.remoteCandidateId;r.localCandidateChanged=!!this.lastActiveLocalCandidate&&a!==this.lastActiveLocalCandidate.id,r.remoteCandidateChanged=!!this.lastActiveRemoteCandidate&&o!==this.lastActiveRemoteCandidate.id,(!this.lastActiveLocalCandidate||r.localCandidateChanged||r.remoteCandidateChanged)&&i.forEach((function(e){t.checkLastActiveCandidate({localId:a,remoteId:o,key:e.key,report:e.value})})),this.lastActiveLocalCandidate&&(r.networkType=this.lastActiveLocalCandidate.networkType,this.lastActiveRemoteCandidate&&(r.candidatePair=this.lastActiveLocalCandidate.candidateType+";"+this.lastActiveRemoteCandidate.candidateType)),r.bytesSent=n.bytesSent,r.bytesReceived=n.bytesReceived,r.requestsReceived=n.requestsReceived,r.requestsSent=n.requestsSent,r.responsesReceived=n.responsesReceived,r.responsesSent=n.responsesSent,r.consentRequestsSent=n.consentRequestsSent,r.totalRoundTripTime=n.totalRoundTripTime},t.prototype.checkLastActiveCandidate=function(e){var t=e.localId,n=e.remoteId,r=(e.key,e.report);t&&"local-candidate"===r.type&&r.id===t&&(this.lastActiveLocalCandidate=r),n&&"remote-candidate"===r.type&&r.id===n&&(this.lastActiveRemoteCandidate=r)},t}(l.EventEmitter);function p(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=t.find((function(t){return t&&(t[e]||0===t[e])}));return r&&r[e]}t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseJwt=t.HttpClient=void 0;var r=n(165),i=n(208);r.__exportStar(n(168),t),r.__exportStar(n(141),t);var a=n(142);Object.defineProperty(t,"HttpClient",{enumerable:!0,get:function(){return a.HttpClient}});var o=n(101);Object.defineProperty(t,"parseJwt",{enumerable:!0,get:function(){return o.parseJwt}}),t.default=i.Client},function(e,t,n){"use strict";n(10),n(44),n(19),n(28),n(75),n(71),n(27);var r=n(13);function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n={};if(Array.isArray(e))for(var a=0;a<e.length;a++)Object.assign(n,i(e[a],"".concat(t,"_[").concat(a,"]")));else"object"!==r(e)?n[t]=e:Object.keys(e).filter((function(e){return"ip"!==e.toLowerCase()})).forEach((function(a){var o=e[a],s=t?"".concat(t,"_").concat(a):a;"object"===r(o)||Array.isArray(o)?Object.assign(n,i(o,s)):n[s]=o}));return n}Object.defineProperty(t,"__esModule",{value:!0}),t.deepFlatten=t.formatStatsEvent=void 0,t.formatStatsEvent=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.name;if("connect"===e.name){var a=e;t=a,Object.assign(t,i(a.candidatePairDetails,"candidatePairDetails")),delete t.candidatePairDetails}else if("getStats"===e.name){var o=e;t=o,Object.assign(t,i(o.tracks,"localTrack")),delete t.tracks,Object.assign(t,i(o.remoteTracks,"remoteTrack")),delete t.remoteTracks}else t={},e.name,Object.assign(t,i(e));delete t.name,Object.assign(t,n,{_eventType:r}),Object.keys(t).forEach((function(e){var n=t[e];"boolean"==typeof n&&(t[e]="".concat(n))}));var s={actionName:"WebrtcStats",actionDate:Date.now(),details:t};return s},t.deepFlatten=i},function(e,t,n){"use strict";n(137);var r=n(0);n(40);var i=n(83),a=n(2),o=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.Reconnector=t.CXFRDefinition=void 0;var s=n(401),c=n(282),u=n(101),l=n(142);t.CXFRDefinition={aliases:["iq.cxfr"],element:"query",fields:{domain:c.childText(null,"domain"),server:c.childText(null,"server")},namespace:"urn:xmpp:cxfr"};var f=function(){function e(n){var r=this;a(this,e),this._hasConnected=!1,this._backoffActive=!1,this._hardReconnectRetryInfo=null,this.client=n,this.backoff=s.exponential({randomisationFactor:.2,initialDelay:250,maxDelay:5e3,factor:2}),this.backoff.failAfter(10),this.backoff.on("ready",(function(e,t){var n;if(r.client.connected)r.client.logger.debug("Backoff ready, client already connected");else{if(null===(n=r.client._stanzaio.transport)||void 0===n?void 0:n.hasStream)return r.client.logger.debug("Backoff ready, connection is pending"),void r.backoff.backoff();r.client.logger.debug("Backoff ready, attempting reconnect"),r.client.connecting=!0,r.client._stanzaio.connect(),r.backoff.backoff()}})),this.backoff.on("fail",(function(){return r.hardReconnect()})),this.client.on("connected",(function(){r._hasConnected=!0,r.stop()})),this.client._stanzaio.on("sasl",(function(e){if("failure"===e.type){var t="temporary-auth-failure"===e.condition;if(r._hasConnected&&"not-authorized"===e.condition)return r.hardReconnect();if(!t){var n="Critical error reconnecting; stopping automatic reconnect";r.client.logger.error(n,e),r.stop(new Error(n))}}})),this.client._stanzaio.stanzas.define(t.CXFRDefinition),this.client._stanzaio.on("iq:set:cxfr",(function(e){var t=setTimeout(r.client.reconnect,6e5),n=setTimeout((function(){return clearTimeout(t),r.client.reconnect()}),1e3);r.client._stanzaio.emit("requestReconnect",(function(e){if(!0===e.pending&&clearTimeout(n),e.done)return clearTimeout(n),clearTimeout(t),r.client.reconnect()}))})),this._backoffActive=!1}var n,c;return o(e,[{key:"hardReconnect",value:(c=i(r.mark((function e(){return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._hardReconnectRetryInfo){e.next=2;break}return e.abrupt("return",this._hardReconnectRetryInfo.promise);case 2:return this.cleanupReconnect(),this._hasConnected=!1,this._hardReconnectRetryInfo=u.retryPromise(this._attemptHardReconnect.bind(this),this._shouldRetryError.bind(this),15e3,this.client.logger),e.prev=5,e.next=8,this._hardReconnectRetryInfo.promise;case 8:this._stopHardReconnect(),e.next=15;break;case 11:throw e.prev=11,e.t0=e.catch(5),this._stopHardReconnect(e.t0),e.t0;case 15:case"end":return e.stop()}}),e,this,[[5,11]])}))),function(){return c.apply(this,arguments)})},{key:"cleanupReconnect",value:function(){this.backoff.reset(),this._backoffActive=!1}},{key:"start",value:function(){this._backoffActive||(this.backoff.backoff(),this._backoffActive=!0)}},{key:"stop",value:function(e){this.cleanupReconnect(),this._stopHardReconnect(e)}},{key:"_stopHardReconnect",value:function(e){this._hardReconnectRetryInfo&&(e?("string"==typeof e&&(e=new Error(e)),this._hardReconnectRetryInfo.cancel(e)):this._hardReconnectRetryInfo.complete(),this._hardReconnectRetryInfo=null)}},{key:"_attemptHardReconnect",value:(n=i(r.mark((function e(){return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(navigator.onLine){e.next=2;break}throw new Error("OFFLINE_ERROR");case 2:return this.client.logger.info("Attempting to reconnect with new channel."),e.next=5,this.client.connect();case 5:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"_shouldRetryError",value:function(e){return"OFFLINE_ERROR"===e.message?(this.client.logger.debug("Browser is offline. Not attempting to reconnect with new channel."),!0):e.message.startsWith("Request has been terminated")?(this.client.logger.debug("request offline. attempting reconnect again",e),!0):e.message.startsWith("Timeout: ")?(this.client.logger.debug('Streaming-client timed out. attempting reconnect again: "'.concat(e.message,'"')),!0):!(!e||!l.HttpClient.retryStatusCodes.has(e.status))&&(this.client.logger.debug("Received HTTP status code eligible for retry. attempting reconnect again",e),!0)}}]),e}();t.Reconnector=f},function(e,t,n){n(20);var r=n(287),i=n(402),a=n(290),o=n(403);e.exports.Backoff=r,e.exports.FunctionCall=o,e.exports.FibonacciStrategy=a,e.exports.ExponentialStrategy=i,e.exports.fibonacci=function(e){return new r(new a(e))},e.exports.exponential=function(e){return new r(new i(e))},e.exports.call=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],i=t.slice(1,t.length-1),a=t[t.length-1];return new o(r,i,a)}},function(e,t,n){var r=n(2),i=n(3),a=n(8),o=n(37),s=n(16);function c(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 n,r=s(e);if(t){var i=s(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return o(this,n)}}var u=function(e){"use strict";a(n,e);var t=c(n);function n(e){var i;if(r(this,n),(i=t.call(this,e)).backoffDelay_=0,i.nextBackoffDelay_=i.getInitialDelay(),i.factor_=n.DEFAULT_FACTOR,e&&void 0!==e.factor){if(e.factor<1)throw new Error("Exponential factor should be greater than 1 but got %s.");i.factor_=e.factor}return i}return i(n,[{key:"next_",value:function(){return this.backoffDelay_=Math.min(this.nextBackoffDelay_,this.getMaxDelay()),this.nextBackoffDelay_=this.backoffDelay_*this.factor_,this.backoffDelay_}},{key:"reset_",value:function(){this.backoffDelay_=0,this.nextBackoffDelay_=this.getInitialDelay()}}]),n}(n(289));u.DEFAULT_FACTOR=2,e.exports=u},function(e,t,n){n(10),n(20);var r=n(6),i=n(2),a=n(3),o=n(8),s=n(37),c=n(16);function u(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 n,r=c(e);if(t){var i=c(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return s(this,n)}}var l=n(288),f=n(287),p=n(290),d=function(e){"use strict";o(n,e);var t=u(n);function n(e,r,a){var o;if(i(this,n),o=t.call(this),"function"!=typeof e)throw new Error("Expected first argument to be a function");if(!Array.isArray(r))throw new Error("Expected second argument to be an array");if("function"!=typeof a)throw new Error("Expected third (last) arugment to be a function");return o.function_=e,o.arguments_=r,o.callback_=a,o.lastResult_=[],o.numRetries_=0,o.backoff_=null,o.strategy_=null,o.failAfter_=-1,o.retryPredicate_=n.DEFAULT_RETRY_PREDICATE_,o.state_=n.State_.PENDING,o}return a(n,[{key:"isPending",value:function(){return this.state_===n.State_.PENDING}},{key:"isRunning",value:function(){return this.state_===n.State_.RUNNING}},{key:"isCompleted",value:function(){return this.state_===n.State_.COMPLETED}},{key:"isAborted",value:function(){return this.state_===n.State_.ABORTED}},{key:"setStrategy",value:function(e){if(!this.isPending())throw new Error("FunctionCall is in progress");return this.strategy_=e,this}},{key:"retryIf",value:function(e){if(!this.isPending())throw new Error("FunctionCall in progress");return this.retryPredicate_=e,this}},{key:"getLastResult",value:function(){return this.lastResult_.concat()}},{key:"getNumRetries",value:function(){return this.numRetries_}},{key:"failAfter",value:function(e){if(!this.isPending())throw new Error("FunctionCall in progress");return this.failAfter_=e,this}},{key:"abort",value:function(){this.isCompleted()||this.isAborted()||(this.isRunning()&&this.backoff_.reset(),this.state_=n.State_.ABORTED,this.lastResult_=[new Error("Backoff aborted.")],this.emit("abort"),this.doCallback_())}},{key:"start",value:function(e){if(this.isAborted())throw new Error("FunctionCall is aborted");if(!this.isPending())throw new Error("FunctionCall already started");var t=this.strategy_||new p;this.backoff_=e?e(t):new f(t),this.backoff_.on("ready",this.doCall_.bind(this,!0)),this.backoff_.on("fail",this.doCallback_.bind(this)),this.backoff_.on("backoff",this.handleBackoff_.bind(this)),this.failAfter_>0&&this.backoff_.failAfter(this.failAfter_),this.state_=n.State_.RUNNING,this.doCall_(!1)}},{key:"doCall_",value:function(e){var t;e&&this.numRetries_++,this.emit.apply(this,["call"].concat(r(this.arguments_)));var n=this.handleFunctionCallback_.bind(this);(t=this.function_).call.apply(t,[null].concat(r(this.arguments_),[n]))}},{key:"doCallback_",value:function(){this.callback_.apply(null,this.lastResult_)}},{key:"handleFunctionCallback_",value:function(){if(!this.isAborted()){var e=Array.prototype.slice.call(arguments);this.lastResult_=e,this.emit.apply(this,["callback"].concat(r(e)));var t=e[0];t&&this.retryPredicate_(t)?this.backoff_.backoff(t):(this.state_=n.State_.COMPLETED,this.doCallback_())}}},{key:"handleBackoff_",value:function(e,t,n){this.emit("backoff",e,t,n)}}]),n}(l);d.State_={PENDING:0,RUNNING:1,COMPLETED:2,ABORTED:3},d.DEFAULT_RETRY_PREDICATE_=function(){return!0},e.exports=d},function(e,t,n){"use strict";n(75);var r=n(0);n(40);var i=n(83),a=n(2),o=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.Ping=void 0;var s=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};a(this,e),this.client=t,this.options=n,this.pingInterval=n.pingInterval||15e3,this.failedPingsBeforeDisconnect=n.failedPingsBeforeDisconnect||1,this.numberOfFailedPings=0,this.nextPingTimeoutId=null}var t;return o(e,[{key:"start",value:function(){this.nextPingTimeoutId||this.queueNextPing()}},{key:"stop",value:function(){clearTimeout(this.nextPingTimeoutId),this.nextPingTimeoutId=null,this.numberOfFailedPings=0}},{key:"performPing",value:(t=i(r.mark((function e(){var t;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.client._stanzaio.ping(this.options.jid);case 3:this.numberOfFailedPings=0,this.queueNextPing(),e.next=12;break;case 7:e.prev=7,e.t0=e.catch(0),t={channelId:this.client.config.channelId,jid:this.client._stanzaio.jid},this.client.logger.warn("Missed a ping.",Object.assign({error:e.t0},t)),++this.numberOfFailedPings>this.failedPingsBeforeDisconnect?(this.stop(),this.client.logger.error("Missed too many pings, disconnecting",Object.assign({numberOfFailedPings:this.numberOfFailedPings},t)),this.client._stanzaio.sendStreamError({text:"too many missed pongs",condition:"connection-timeout"})):this.queueNextPing();case 12:case"end":return e.stop()}}),e,this,[[0,7]])}))),function(){return t.apply(this,arguments)})},{key:"queueNextPing",value:function(){this.nextPingTimeoutId=setTimeout(this.performPing.bind(this),this.pingInterval)}}]),e}();t.Ping=s},function(e,t,n){"use strict";n.r(t);n(10),n(20),n(75);var r=n(292),i=n.n(r),a=n(6),o=n.n(a),s=n(2),c=n.n(s),u=n(3),l=n.n(u),f=n(43),p=n.n(f),d=n(8),h=n.n(d),v=n(37),m=n.n(v),g=n(16),y=n.n(g),b=n(42),_=n(293),w=n(171),S=n.n(w),x=(n(82),n(30),n(81),n(5),n(21),n(0)),k=n.n(x),T=n(4),j=n.n(T),E=(n(40),n(140),n(15),n(89),n(13)),I=n.n(E),O=function(e){var t=JSON.stringify(e),n=encodeURIComponent(t).match(/%[89ABab]/g);return t.length+(n?n.length:0)},A=function e(t){if(t){if(Array.isArray(t)){for(var n=[],r=0;r<t.length;r++)n[r]=e(t[r]);return n}if("object"===I()(t)){var i=Object.assign({},t);for(var a in t)i[a]=e(t[a]);return i}}return t},R=(n(9),n(90),n(269),n(22),n(24),n(170)),N=n.n(R),C=n(294),P=function(e,t,n,r){return new(n||(n=Promise))((function(i,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},L=new Map,q=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];c()(this,e),this.url=t,this.debugMode=n,this.sendQueue=[],this.hasPendingRequest=!1}return l()(e,[{key:"postLogsToEndpoint",value:function(e){var t,n,r={promise:new Promise((function(e,r){t=e,n=r})),resolve:t,reject:n};return this.sendQueue.push({requestParams:e,deferred:r}),this.sendNextQueuedLogToServer(),this.debug("adding requestParams to sendQueue",{requestParams:e,updatedSendQueue:this.sendQueue.map((function(e){return e.requestParams})),hasPendingRequest:this.hasPendingRequest}),r.promise}},{key:"postLogsToEndpointInstantly",value:function(e){return this.debug("sending request instantly",{requestParams:e,sendQueue:this.sendQueue.map((function(e){return e.requestParams}))}),this.sendPostRequest(e)}},{key:"sendEntireQueue",value:function(){this.debug("sending all queued requests instantly to clear out sendQueue",{sendQueue:this.sendQueue.map((function(e){return e.requestParams}))});for(var e,t=[];e=this.sendQueue.shift();)t.push(this.postLogsToEndpointInstantly(e.requestParams));return t}},{key:"resetSendQueue",value:function(){this.debug("reseting send queue without sending currently queued data",{queueLength:this.sendQueue.length}),this.sendQueue=[]}},{key:"sendNextQueuedLogToServer",value:function(){return P(this,void 0,void 0,k.a.mark((function e(){var t,n=this;return k.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.hasPendingRequest&&0!==this.sendQueue.length){e.next=3;break}return this.debug("sendNextQueuedLogToServer() but not sending request",{hasPendingRequest:this.hasPendingRequest,sendQueueLength:this.sendQueue.length}),e.abrupt("return");case 3:return(t=this.sendQueue.shift()).deferred.promise.finally((function(){n.debug("queue item completed. removing from queue and resetting send queue",{queueItemRequestParams:t.requestParams,updatedSendQueue:n.sendQueue.map((function(e){return e.requestParams}))}),n.hasPendingRequest=!1,n.sendNextQueuedLogToServer()})),this.hasPendingRequest=!0,this.debug("sending logs to server",{queueItem:t.requestParams,sendQueue:this.sendQueue.map((function(e){return e.requestParams}))}),e.abrupt("return",Object(C.backOff)((function(){return n.sendPostRequest(t.requestParams)}),{retry:function(e){return!(!e||429!==e.status)},numOfAttempts:10,startingDelay:0,delayFirstAttempt:!1,maxDelay:15e3}).then((function(e){n.debug("successfully sent logs to server",{requestParams:t.requestParams,response:e}),t.deferred.resolve(e)})).catch((function(e){return n.debug("ERROR sending logs to server",{requestParams:t.requestParams,error:e}),t.deferred.reject(e)})));case 8:case"end":return e.stop()}}),e,this)})))}},{key:"sendPostRequest",value:function(e){this.debug("issuing POST request",{requestParams:e});var t=Object.assign({},e);return delete t.accessToken,N()({method:"post",url:this.url,headers:{authorization:"Bearer ".concat(e.accessToken),"content-type":"application/json; charset=UTF-8"},data:t})}},{key:"debug",value:function(e,t){this.debugMode&&console.log("%c [DEBUG:log-uploader] ".concat(e),"color: #32a0a8",A(t))}}]),e}(),F=function(e,t,n,r){return new(n||(n=Promise))((function(i,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},M=function(){function e(t){var n=this;if(c()(this,e),this.isInitialized=!1,this.logBuffer=[],this.debounceTimer=null,this.logger=t,!t.config.url||!t.config.appVersion){var r="Missing `url` and/or `appVersion` config options to set up server logging. Not sending logs to server for this logger instance";throw this.logger.error(r,{providedConfig:t.config},{skipServer:!0}),new Error(r)}this.isInitialized=!0,this.debounceLogUploadTime=t.config.uploadDebounceTime||4e3,this.logUploader=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=L.get(e);return n||(n=new q(e,t),L.set(e,n)),n}(t.config.url,t.config.debugMode),window.addEventListener("unload",this.sendAllLogsInstantly.bind(this)),this.logger.on("onStop",(function(e){n.debug("`onStop` received. Clearing logBuffer and sendQueue",{logBuffer:n.logBuffer,sendQueue:n.logUploader.sendQueue}),n.logBuffer=[],n.logUploader.resetSendQueue()}))}return l()(e,[{key:"addLogToSend",value:function(e,t,n){if(this.isInitialized){var r=this.convertToLogMessage(t,n),i=this.convertToTrace(e,r),a=O(i);if(a>14500){var o=this.truncateLog(e,r);if(null===o)return void this.logger.error("truncated message is too large to send to server. not sending message",{originalTrace:i,originalTraceSize:O(i),truncatedTrace:o,truncatedTraceSize:O(o)},{skipServer:!0});a=O(o),i=o}var s,c=!this.logBuffer.length;if((s=c?{size:0,traces:[]}:this.logBuffer[this.logBuffer.length-1]).size+a>14500)return this.debug("`exceedsMaxLogSize` was `true`",{logBuffer:this.logBuffer,bufferItem:s,incomingTrace:i,incomingTraceSize:a,maxAllowedTraceSize:14500}),this.logBuffer.push({size:a,traces:[i]}),this.debug("calling sendLogsToServer(true)",{logBuffer:this.logBuffer}),void this.sendLogsToServer(!0);s.size+=a,s.traces.push(i),c&&(this.debug("`this.logBuffer` was empty. pushing new buffer item",{logBuffer:this.logBuffer,bufferItem:s}),this.logBuffer.push(s)),this.debug("calling sendLogsToServer()",{logBuffer:this.logBuffer}),this.sendLogsToServer()}}},{key:"sendAllLogsInstantly",value:function(){var e=this;return this.logUploader.sendEntireQueue().concat(this.logBuffer.map((function(t){return e.logUploader.postLogsToEndpointInstantly(e.convertToRequestParams(t.traces.reverse()))})))}},{key:"sendLogsToServer",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return F(this,void 0,void 0,k.a.mark((function t(){var n,r,i,a,o=this;return k.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.logBuffer.length){t.next=5;break}return clearTimeout(this.debounceTimer),this.debounceTimer=null,this.debug("buffer empty, not sending http request"),t.abrupt("return");case 5:if(e){t.next=8;break}return this.debounceTimer?this.debug("sendLogsToServer() 'immediate' is false. 'debounceTimer' is already running"):(this.debug("sendLogsToServer() 'immediate' is false. setting up 'debounceTimer' to ".concat(this.debounceLogUploadTime,"ms")),this.debounceTimer=setTimeout((function(){return o.sendLogsToServer(!0)}),this.debounceLogUploadTime)),t.abrupt("return");case 8:return clearTimeout(this.debounceTimer),this.debounceTimer=null,n=this.logBuffer.splice(0,1),r=j()(n,1),i=r[0],t.prev=11,this.debug("calling logUploader.postLogsToEndpoint() with",{bufferItem:i,newLogBuffer:this.logBuffer}),t.next=15,this.logUploader.postLogsToEndpoint(this.convertToRequestParams(i.traces.reverse()));case 15:t.next=23;break;case 17:t.prev=17,t.t0=t.catch(11),this.logger.emit("onError",t.t0),this.logger.error("Error sending logs to server",t.t0,{skipServer:!0}),a="".concat(null===t.t0||void 0===t.t0?void 0:t.t0.status),["401","404"].includes(a)&&(this.debug("received a ".concat(a," from logUploader. stopping logging to server")),this.logger.stopServerLogging(a));case 23:return t.prev=23,this.sendLogsToServer(),t.finish(23);case 26:case"end":return t.stop()}}),t,this,[[11,17,23,26]])})))}},{key:"truncateLog",value:function(e,t){var n,r,i=O(this.convertToTrace(e,t)),a=A(t);return a.details="[[TRUNCATED]]",n=this.convertToTrace(e,a),(r=O(n))<=14500?(this.logger.warn("message too large to send to server. truncated log details",{originalLog:t,truncatedLog:a,originalTraceSize:i,truncatedTraceSize:r,maxAllowedTraceSize:14500},{skipServer:!0}),n):(a.message="".concat(a.message.substr(0,150),"... ").concat("[[TRUNCATED]]"),n=this.convertToTrace(e,a),(r=O(n))<=14500?(this.logger.warn("message too large to send to server. truncated log details & log message",{originalLog:t,truncatedLog:a,originalTraceSize:i,truncatedTraceSize:r,maxAllowedTraceSize:14500},{skipServer:!0}),n):null)}},{key:"convertToLogMessage",value:function(e,t){var n={clientTime:(new Date).toISOString(),clientId:this.logger.clientId,message:e,details:t},r=this.logger.config,i=r.originAppName,a=r.originAppVersion,o=r.originAppId;return i&&(n.originAppName=i,n.originAppVersion=a,n.originAppId=o),n}},{key:"convertToTrace",value:function(e,t){return{topic:this.logger.config.appName,level:e.toUpperCase(),message:S()(t)}}},{key:"convertToRequestParams",value:function(e){return{accessToken:this.logger.config.accessToken,app:{appId:this.logger.config.appName,appVersion:this.logger.config.appVersion},traces:e}}},{key:"debug",value:function(e,t){this.logger.config.debugMode&&console.log("%c [DEBUG:".concat(this.logger.config.appName,"] ").concat(e),"color: #32a852",A(t))}}]),e}();function D(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 n,r=y()(e);if(t){var i=y()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return m()(this,n)}}var B=function(e){h()(n,e);var t=D(n);function n(e){var r;return c()(this,n),(r=t.call(this)).defaultFormatter=function(e,t,n,i,a){if(i.skipDefaultFormatter)return a();t instanceof Error&&(n=n||t,t=t.message);var o=r.config.appName?"[".concat(r.config.appName,"] "):"";a(e,t="".concat(o).concat(t),n,i)},r.logMessage=function(e,t,n,i){if(!i.skipSecondaryLogger)try{var a=[t];void 0!==n&&a.push(r.config.stringify?S()(n):n),r.secondaryLogger[e].apply(r.secondaryLogger,a)}catch(e){console.error("Error logging using custom logger passed into `genesys-cloud-client-logger`",{error:e,secondaryLogger:r.secondaryLogger,message:t,details:n,messageOptions:i})}!i.skipServer&&!r.stopReason&&r.serverLogger&&r.logRank(e)>=r.logRank(r.config.logLevel)&&r.serverLogger.addLogToSend(e,t,n)},Object.defineProperty(p()(r),"clientId",{value:Object(_.v4)(),writable:!1}),r.config=Object.assign({},e),r.secondaryLogger=r.config.logger||console,delete r.config.logger,-1===r.logRank(r.config.logLevel)&&(e.logLevel&&r.warn('Invalid log level: "'.concat(e.logLevel,'". Default "info" will be used instead.'),null,{skipServer:!0}),r.config.logLevel="info"),!e.appName&&e.logTopic&&(r.warn("`logTopic` has been renamed to `appName`. Please use `appName`",null,{skipServer:!0}),r.config.appName=e.logTopic),!1!==r.config.initializeServerLogging&&(r.serverLogger=new M(p()(r))),r.config.startServerLoggingPaused&&r.stopServerLogging(),r}return l()(n,[{key:"setAccessToken",value:function(e){this.config.accessToken=e,"401"===this.stopReason&&this.startServerLogging()}},{key:"log",value:function(e,t,n){this.formatMessage("log",e,t,n)}},{key:"debug",value:function(e,t,n){this.formatMessage("debug",e,t,n)}},{key:"info",value:function(e,t,n){this.formatMessage("info",e,t,n)}},{key:"warn",value:function(e,t,n){this.formatMessage("warn",e,t,n)}},{key:"error",value:function(e,t,n){this.formatMessage("error",e,t,n)}},{key:"startServerLogging",value:function(){if(this.stopReason=void 0,!this.serverLogger)return this.warn("`startServerLogging` called but the logger instance is not configured to send logs to the server. Ignoring call to start sending logs to server.",void 0,{skipServer:!0});this.emit("onStart")}},{key:"stopServerLogging",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"force";"force"===this.stopReason&&"force"!==e||(this.stopReason=e,this.emit("onStop",e))}},{key:"sendAllLogsInstantly",value:function(){var e;return(null===(e=this.serverLogger)||void 0===e?void 0:e.sendAllLogsInstantly())||[]}},{key:"formatMessage",value:function(e,t,n,r){var i=[this.defaultFormatter.bind(this)];this.config.formatters&&(i=[].concat(o()(this.config.formatters),[this.defaultFormatter.bind(this)])),this.callNextFormatter(i,e,t,n,r)}},{key:"callNextFormatter",value:function(e,t,n,r){var a=this,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},s=i()(e),c=s[0],u=s.slice(1);if(!c)return this.logMessage(t,n,r,o);var l=function(e,i,s,c){void 0!==e?a.callNextFormatter(u,e,i,s,c):a.callNextFormatter(u,t,n,r,o)};c(t,n,r,o,l)}},{key:"logRank",value:function(e){switch(e){case"log":return 0;case"debug":return 1;case"info":return 2;case"warn":return 3;case"error":return 4;default:return-1}}},{key:"VERSION",get:function(){return n.VERSION}}]),n}(b.EventEmitter);B.VERSION="4.1.1",n.d(t,"Logger",(function(){return B}));t.default=B}]).default;