genesys-cloud-streaming-client 18.0.1-develop.124 → 18.0.1-develop.126

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.
@@ -19,7 +19,7 @@ MERCHANTABLITY OR NON-INFRINGEMENT.
19
19
  See the Apache Version 2.0 License for specific language governing permissions
20
20
  and limitations under the License.
21
21
  ***************************************************************************** */
22
- var i=function(e,t){return(i=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 r(e,t){function n(){this.constructor=e}i(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,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function o(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n}function a(e,t,n,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o}function c(e,t){return function(n,i){t(n,i,e)}}function l(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function u(e,t,n,i){return new(n||(n=Promise))((function(r,s){function o(e){try{c(i.next(e))}catch(e){s(e)}}function a(e){try{c(i.throw(e))}catch(e){s(e)}}function c(e){e.done?r(e.value):new n((function(t){t(e.value)})).then(o,a)}c((i=i.apply(e,t||[])).next())}))}function d(e,t){var n,i,r,s,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,i&&(r=2&s[0]?i.return:s[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,s[1])).done)return r;switch(i=0,r&&(s=[2&s[0],r.value]),s[0]){case 0:case 1:r=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,i=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]<r[3])){o.label=s[1];break}if(6===s[0]&&o.label<r[1]){o.label=r[1],r=s;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(s);break}r[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],i=0}finally{n=r=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,a])}}}function h(e,t){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}function p(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 f(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,r,s=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(i=s.next()).done;)o.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}return o}function m(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(f(arguments[t]));return e}function g(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),r=0;for(t=0;t<n;t++)for(var s=arguments[t],o=0,a=s.length;o<a;o++,r++)i[r]=s[o];return i}function y(e){return this instanceof y?(this.v=e,this):new y(e)}function v(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,r=n.apply(e,t||[]),s=[];return i={},o("next"),o("throw"),o("return"),i[Symbol.asyncIterator]=function(){return this},i;function o(e){r[e]&&(i[e]=function(t){return new Promise((function(n,i){s.push([e,t,n,i])>1||a(e,t)}))})}function a(e,t){try{(n=r[e](t)).value instanceof y?Promise.resolve(n.value.v).then(c,l):u(s[0][2],n)}catch(e){u(s[0][3],e)}var n}function c(e){a("next",e)}function l(e){a("throw",e)}function u(e,t){e(t),s.shift(),s.length&&a(s[0][0],s[0][1])}}function b(e){var t,n;return t={},i("next"),i("throw",(function(e){throw e})),i("return"),t[Symbol.iterator]=function(){return this},t;function i(i,r){t[i]=e[i]?function(t){return(n=!n)?{value:y(e[i](t)),done:"return"===i}:r?r(t):t}:r}}function _(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=p(e),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(n){t[n]=e[n]&&function(t){return new Promise((function(i,r){(function(e,t,n,i){Promise.resolve(i).then((function(t){e({value:t,done:n})}),t)})(i,r,(t=e[n](t)).done,t.value)}))}}}function S(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function w(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";var i=n(36),r=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=d;var s=Object.create(n(32)),o=n(94),a=n(96);s.inherits(d,o);for(var c=r(a.prototype),l=0;l<c.length;l++){var u=c[l];d.prototype[u]||(d.prototype[u]=a.prototype[u])}function d(e){if(!(this instanceof d))return new d(e);o.call(this,e),a.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",h)}function h(){this.allowHalfOpen||this._writableState.ended||i.nextTick(p,this)}function p(e){e.end()}Object.defineProperty(d.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(d.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)}}),d.prototype._destroy=function(e,t){this.push(null),this.end(),i.nextTick(t,e)}},function(e,t,n){"use strict";n.r(t);var i=n(43),r=n(20);let s,o,a=0,c=0;var l=function(e,t,n){let l=t&&n||0;const u=t||new Array(16);let d=(e=e||{}).node||s,h=void 0!==e.clockseq?e.clockseq:o;if(null==d||null==h){const t=e.random||(e.rng||i.a)();null==d&&(d=s=[1|t[0],t[1],t[2],t[3],t[4],t[5]]),null==h&&(h=o=16383&(t[6]<<8|t[7]))}let p=void 0!==e.msecs?e.msecs:Date.now(),f=void 0!==e.nsecs?e.nsecs:c+1;const m=p-a+(f-c)/1e4;if(m<0&&void 0===e.clockseq&&(h=h+1&16383),(m<0||p>a)&&void 0===e.nsecs&&(f=0),f>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");a=p,c=f,o=h,p+=122192928e5;const g=(1e4*(268435455&p)+f)%4294967296;u[l++]=g>>>24&255,u[l++]=g>>>16&255,u[l++]=g>>>8&255,u[l++]=255&g;const y=p/4294967296*1e4&268435455;u[l++]=y>>>8&255,u[l++]=255&y,u[l++]=y>>>24&15|16,u[l++]=y>>>16&255,u[l++]=h>>>8|128,u[l++]=255&h;for(let e=0;e<6;++e)u[l+e]=d[e];return t||Object(r.b)(u)},u=(n(9),n(21));var d=function(e){if(!Object(u.a)(e))throw TypeError("Invalid UUID");let t;const 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};function h(e,t,n){function i(e,i,s,o){var a;if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));const t=[];for(let n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof i&&(i=d(i)),16!==(null===(a=i)||void 0===a?void 0:a.length))throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let c=new Uint8Array(16+e.length);if(c.set(i),c.set(e,i.length),c=n(c),c[6]=15&c[6]|t,c[8]=63&c[8]|128,s){o=o||0;for(let e=0;e<16;++e)s[o+e]=c[e];return s}return Object(r.b)(c)}try{i.name=e}catch(e){}return i.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",i.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",i}function p(e){return 14+(e+64>>>9<<4)+1}function f(e,t){const n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function m(e,t,n,i,r,s){return f((o=f(f(t,e),f(i,s)))<<(a=r)|o>>>32-a,n);var o,a}function g(e,t,n,i,r,s,o){return m(t&n|~t&i,e,t,r,s,o)}function y(e,t,n,i,r,s,o){return m(t&i|n&~i,e,t,r,s,o)}function v(e,t,n,i,r,s,o){return m(t^n^i,e,t,r,s,o)}function b(e,t,n,i,r,s,o){return m(n^(t|~i),e,t,r,s,o)}var _=h("v3",48,(function(e){if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(let n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return function(e){const t=[],n=32*e.length;for(let i=0;i<n;i+=8){const n=e[i>>5]>>>i%32&255,r=parseInt("0123456789abcdef".charAt(n>>>4&15)+"0123456789abcdef".charAt(15&n),16);t.push(r)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[p(t)-1]=t;let n=1732584193,i=-271733879,r=-1732584194,s=271733878;for(let t=0;t<e.length;t+=16){const o=n,a=i,c=r,l=s;n=g(n,i,r,s,e[t],7,-680876936),s=g(s,n,i,r,e[t+1],12,-389564586),r=g(r,s,n,i,e[t+2],17,606105819),i=g(i,r,s,n,e[t+3],22,-1044525330),n=g(n,i,r,s,e[t+4],7,-176418897),s=g(s,n,i,r,e[t+5],12,1200080426),r=g(r,s,n,i,e[t+6],17,-1473231341),i=g(i,r,s,n,e[t+7],22,-45705983),n=g(n,i,r,s,e[t+8],7,1770035416),s=g(s,n,i,r,e[t+9],12,-1958414417),r=g(r,s,n,i,e[t+10],17,-42063),i=g(i,r,s,n,e[t+11],22,-1990404162),n=g(n,i,r,s,e[t+12],7,1804603682),s=g(s,n,i,r,e[t+13],12,-40341101),r=g(r,s,n,i,e[t+14],17,-1502002290),i=g(i,r,s,n,e[t+15],22,1236535329),n=y(n,i,r,s,e[t+1],5,-165796510),s=y(s,n,i,r,e[t+6],9,-1069501632),r=y(r,s,n,i,e[t+11],14,643717713),i=y(i,r,s,n,e[t],20,-373897302),n=y(n,i,r,s,e[t+5],5,-701558691),s=y(s,n,i,r,e[t+10],9,38016083),r=y(r,s,n,i,e[t+15],14,-660478335),i=y(i,r,s,n,e[t+4],20,-405537848),n=y(n,i,r,s,e[t+9],5,568446438),s=y(s,n,i,r,e[t+14],9,-1019803690),r=y(r,s,n,i,e[t+3],14,-187363961),i=y(i,r,s,n,e[t+8],20,1163531501),n=y(n,i,r,s,e[t+13],5,-1444681467),s=y(s,n,i,r,e[t+2],9,-51403784),r=y(r,s,n,i,e[t+7],14,1735328473),i=y(i,r,s,n,e[t+12],20,-1926607734),n=v(n,i,r,s,e[t+5],4,-378558),s=v(s,n,i,r,e[t+8],11,-2022574463),r=v(r,s,n,i,e[t+11],16,1839030562),i=v(i,r,s,n,e[t+14],23,-35309556),n=v(n,i,r,s,e[t+1],4,-1530992060),s=v(s,n,i,r,e[t+4],11,1272893353),r=v(r,s,n,i,e[t+7],16,-155497632),i=v(i,r,s,n,e[t+10],23,-1094730640),n=v(n,i,r,s,e[t+13],4,681279174),s=v(s,n,i,r,e[t],11,-358537222),r=v(r,s,n,i,e[t+3],16,-722521979),i=v(i,r,s,n,e[t+6],23,76029189),n=v(n,i,r,s,e[t+9],4,-640364487),s=v(s,n,i,r,e[t+12],11,-421815835),r=v(r,s,n,i,e[t+15],16,530742520),i=v(i,r,s,n,e[t+2],23,-995338651),n=b(n,i,r,s,e[t],6,-198630844),s=b(s,n,i,r,e[t+7],10,1126891415),r=b(r,s,n,i,e[t+14],15,-1416354905),i=b(i,r,s,n,e[t+5],21,-57434055),n=b(n,i,r,s,e[t+12],6,1700485571),s=b(s,n,i,r,e[t+3],10,-1894986606),r=b(r,s,n,i,e[t+10],15,-1051523),i=b(i,r,s,n,e[t+1],21,-2054922799),n=b(n,i,r,s,e[t+8],6,1873313359),s=b(s,n,i,r,e[t+15],10,-30611744),r=b(r,s,n,i,e[t+6],15,-1560198380),i=b(i,r,s,n,e[t+13],21,1309151649),n=b(n,i,r,s,e[t+4],6,-145523070),s=b(s,n,i,r,e[t+11],10,-1120210379),r=b(r,s,n,i,e[t+2],15,718787259),i=b(i,r,s,n,e[t+9],21,-343485551),n=f(n,o),i=f(i,a),r=f(r,c),s=f(s,l)}return[n,i,r,s]}(function(e){if(0===e.length)return[];const t=8*e.length,n=new Uint32Array(p(t));for(let i=0;i<t;i+=8)n[i>>5]|=(255&e[i/8])<<i%32;return n}(e),8*e.length))})),S=n(208);function w(e,t,n,i){switch(e){case 0:return t&n^~t&i;case 1:return t^n^i;case 2:return t&n^t&i^n&i;case 3:return t^n^i}}function T(e,t){return e<<t|e>>>32-t}var I=h("v5",80,(function(e){const t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=[];for(let n=0;n<t.length;++n)e.push(t.charCodeAt(n))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);const i=e.length/4+2,r=Math.ceil(i/16),s=new Array(r);for(let t=0;t<r;++t){const n=new Uint32Array(16);for(let i=0;i<16;++i)n[i]=e[64*t+4*i]<<24|e[64*t+4*i+1]<<16|e[64*t+4*i+2]<<8|e[64*t+4*i+3];s[t]=n}s[r-1][14]=8*(e.length-1)/Math.pow(2,32),s[r-1][14]=Math.floor(s[r-1][14]),s[r-1][15]=8*(e.length-1)&4294967295;for(let e=0;e<r;++e){const i=new Uint32Array(80);for(let t=0;t<16;++t)i[t]=s[e][t];for(let e=16;e<80;++e)i[e]=T(i[e-3]^i[e-8]^i[e-14]^i[e-16],1);let r=n[0],o=n[1],a=n[2],c=n[3],l=n[4];for(let e=0;e<80;++e){const n=Math.floor(e/20),s=T(r,5)+w(n,o,a,c)+l+t[n]+i[e]>>>0;l=c,c=a,a=T(o,30)>>>0,o=r,r=s}n[0]=n[0]+r>>>0,n[1]=n[1]+o>>>0,n[2]=n[2]+a>>>0,n[3]=n[3]+c>>>0,n[4]=n[4]+l>>>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(!Object(u.a)(e))throw TypeError("Invalid UUID");return parseInt(e.slice(14,15),16)};n.d(t,"v1",(function(){return l})),n.d(t,"v3",(function(){return _})),n.d(t,"v4",(function(){return S.a})),n.d(t,"v5",(function(){return I})),n.d(t,"NIL",(function(){return"00000000-0000-0000-0000-000000000000"})),n.d(t,"version",(function(){return A})),n.d(t,"validate",(function(){return u.a})),n.d(t,"stringify",(function(){return r.a})),n.d(t,"parse",(function(){return d}))},function(e,t,n){var i=n(18);e.exports=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(e,t,n){var i=n(29),r=n(46),s=n(76);e.exports=i?function(e,t,n){return r.f(e,t,s(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(14),r=n(56);class s extends r.Transform{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"be";super(),this._block=i.Buffer.alloc(e),this._finalSize=t,this._blockSize=e,this._bigEndian="be"===n,this._len=0}_transform(e,t,n){let i=null;try{this.update(e,t)}catch(e){i=e}n(i)}_flush(e){let t=null;try{this.push(this.digest())}catch(e){t=e}e(t)}update(e,t){"string"==typeof e&&(t=t||"utf8",e=i.Buffer.from(e,t));const n=this._block,r=this._blockSize,s=e.length;let o=this._len;for(let t=0;t<s;){const i=o%r,a=Math.min(s-t,r-i);for(let r=0;r<a;r++)n[i+r]=e[t+r];o+=a,t+=a,o%r==0&&this._update(n)}return this._len+=s,this}digest(e){const 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));const 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{const e=(4294967295&n)>>>0,t=(n-e)/4294967296;this._bigEndian?(this._block.writeUInt32BE(t,this._blockSize-8),this._block.writeUInt32BE(e,this._blockSize-4)):(this._block.writeUInt32LE(e,this._blockSize-8),this._block.writeUInt32LE(t,this._blockSize-4))}this._update(this._block);const i=this._hash();return e?i.toString(e):i}_update(e){throw new Error("_update must be implemented by subclass")}_hash(){throw new Error("_update must be implemented by subclass")}}t.default=s},function(e,t,n){"use strict";t.inherits=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}},function(e,t,n){var i=n(238),r=n(11),s=n(251);i({global:!0,bind:!0,enumerable:!0,forced:!r.setImmediate||!r.clearImmediate},{setImmediate:s.set,clearImmediate:s.clear})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(35);class r{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];this.name=e,this.attributes=t,this.children=[],this.optionalNamespaces={};for(const e of n)if("string"!=typeof e){const t=new r(e.name,e.attributes,e.children);t.parent=this,this.children.push(t)}else this.children.push(e)}getName(){return this.name.indexOf(":")>=0?this.name.substr(this.name.indexOf(":")+1):this.name}getNamespace(){if(this.name.indexOf(":")>=0){const e=this.name.substr(0,this.name.indexOf(":"));return this.findNamespaceForPrefix(e)}return this.findNamespaceForPrefix()}getNamespaceContext(){let e={};this.parent&&(e=this.parent.getNamespaceContext());for(const[t,n]of Object.entries(this.attributes))if(t.startsWith("xmlns:")){const i=t.substr(6);e[n]=i}return e}getDefaultNamespace(){return this.attributes.xmlns?this.attributes.xmlns:this.parent?this.parent.getDefaultNamespace():""}getNamespaceRoot(e){if(this.parent){const t=this.parent.getNamespaceRoot(e);if(t)return t}for(const[t,n]of Object.entries(this.attributes))if(t.startsWith("xmlns:")&&n===e)return this;if(this.optionalNamespaces[e])return this}getAttribute(e,t){if(!t)return this.attributes[e];const n=this.getNamespaceContext();return n[t]?this.attributes[[n[t],e].join(":")]:void 0}getChild(e,t){return this.getChildren(e,t)[0]}getChildren(e,t){const n=[];for(const i of this.children)"string"==typeof i||i.getName()!==e||t&&i.getNamespace()!==t||n.push(i);return n}getText(){let e="";for(const t of this.children)"string"==typeof t&&(e+=t);return e}appendChild(e){return this.children.push(e),"string"!=typeof e&&(e.parent=this),e}setAttribute(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.attributes[e]=t||void 0,""===t&&n&&(this.attributes[e]=t)}addOptionalNamespace(e,t){this.optionalNamespaces[t]=e}useNamespace(e,t){return this.optionalNamespaces[t]&&(e=this.optionalNamespaces[t]),this.setAttribute("xmlns:"+e,t),e}toJSON(){const e=this.children.map(e=>"string"==typeof e?e:e?e.toJSON():void 0).filter(e=>!!e),t={};for(const[e,n]of Object.entries(this.attributes))null!=n&&(t[e]=n);return{attributes:t,children:e,name:this.name}}toString(){let e=this.openTag(!0);if(this.children.length){for(const t of this.children)"string"==typeof t?e+=(0,i.escapeXMLText)(t):t&&(e+=t.toString());e+=this.closeTag()}return e}openTag(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t="";t+="<"+this.name;for(const[e,n]of Object.entries(this.attributes))void 0!==n&&(t+=` ${e}="${(0,i.escapeXML)(n.toString())}"`);return e&&0===this.children.length?t+="/>":t+=">",t}closeTag(){return`</${this.name}>`}findNamespaceForPrefix(e){if(e){const 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""}}t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.basicLanguageResolver=t.escapeXMLText=t.unescapeXML=t.escapeXML=void 0;const i=(0,n(6).__importDefault)(n(54)),r={'"':"&quot;","&":"&amp;","'":"&apos;","<":"&lt;",">":"&gt;"},s={"&amp;":"&","&apos;":"'","&gt;":">","&lt;":"<","&quot;":'"'},o=/&([a-zA-Z0-9]+|#[0-9]+|#x[0-9a-fA-F]+);/g,a=/&|<|>|"|'/g,c=/&|<|>/g;function l(e){return r[e]}t.escapeXML=function(e){return e.replace(a,l)},t.unescapeXML=function(e){return e.replace(o,e=>function(e){if(s[e])return s[e];const 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 i.default.restrictedXML("Prohibited entity: "+e)}(e))},t.escapeXMLText=function(e){return e.replace(c,l)},t.basicLanguageResolver=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";const i=new Set(e.map(e=>e.toLowerCase()));for(let e of t.map(e=>e.toLowerCase()))if("*"!==e)for(;e.length>0;){if(i.has(e))return e;e=e.substring(0,e.lastIndexOf("-")).toLowerCase(),e.lastIndexOf("-")===e.length-2&&(e=e.substring(0,e.lastIndexOf("-")))}return n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nextTick=void 0,t.nextTick=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];queueMicrotask(()=>e(...n))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.exportToSDP=t.importFromSDP=void 0;const i=(0,n(6).__importStar)(n(100));t.importFromSDP=function(e){const t=i.getMediaSections(e),n=i.getDescription(e),r={groups:[],media:[]};i.matchPrefix(n,"a=ice-lite").length>0&&(r.iceLite=!0);for(const e of i.matchPrefix(n,"a=group:")){const t=e.split(" "),n=t.shift().substr(8);r.groups.push({mids:t,semantics:n})}for(const e of t){const t=i.getKind(e),s=i.isRejected(e),o=i.parseMLine(e),a={direction:i.getDirection(e,n),kind:t,mid:i.getMid(e),protocol:o.protocol};if(s||(a.iceParameters=i.getIceParameters(e,n),a.dtlsParameters=i.getDtlsParameters(e,n),a.setup=i.matchPrefix(e,"a=setup:")[0].substr(8),r.iceLite&&(a.iceParameters.iceLite=!0)),"audio"===t||"video"===t){a.rtpParameters=i.parseRtpParameters(e),a.rtpEncodingParameters=i.parseRtpEncodingParameters(e),a.rtcpParameters=i.parseRtcpParameters(e);const t=i.parseMsid(e);a.streams=t?[t]:[]}else"application"===t&&(a.sctp=i.parseSctpDescription(e));a.candidates=i.matchPrefix(e,"a=candidate:").map(i.parseCandidate),r.media.push(a)}return r},t.exportToSDP=function(e){const t=[];t.push(i.writeSessionBoilerplate(e.sessionId,e.sessionVersion),"a=msid-semantic:WMS *\r\n"),(e.iceLite||e.media.filter(e=>e.iceParameters&&e.iceParameters.iceLite).length>0)&&t.push("a=ice-lite\r\n");for(const n of e.groups||[])t.push(`a=group:${n.semantics} ${n.mids.join(" ")}\r\n`);for(const n of e.media||[]){const e=!(n.iceParameters&&n.dtlsParameters);if("application"===n.kind&&n.sctp)t.push(i.writeSctpDescription(n,n.sctp));else if(n.rtpParameters){let r=i.writeRtpDescription(n.kind,n.rtpParameters);e&&(r=r.replace(`m=${n.kind} 9 `,`m=${n.kind} 0 `)),t.push(r),t.push(`a=${n.direction||"sendrecv"}\r\n`);for(const e of n.streams||[])t.push(`a=msid:${e.stream} ${e.track}\r\n`);if(n.rtcpParameters&&(t.push(i.writeRtcpParameters(n.rtcpParameters)),n.rtcpParameters.cname&&n.rtpEncodingParameters&&n.rtpEncodingParameters[0].rtx)){const e=n.rtpEncodingParameters[0];t.push(`a=ssrc-group:FID ${e.ssrc} ${e.rtx.ssrc}\r\n`),t.push(`a=ssrc:${e.rtx.ssrc} cname:${n.rtcpParameters.cname}\r\n`)}}if(void 0!==n.mid&&t.push(`a=mid:${n.mid}\r\n`),n.iceParameters&&t.push(i.writeIceParameters({usernameFragment:n.iceParameters.usernameFragment,password:n.iceParameters.password})),n.dtlsParameters&&n.setup&&t.push(i.writeDtlsParameters(n.dtlsParameters,n.setup)),n.candidates&&n.candidates.length)for(const e of n.candidates)t.push(`a=${i.writeCandidate(e)}\r\n`)}return t.join("")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HttpClient=void 0;const i=n(26).__importStar(n(103)),r=n(16);class s{constructor(){this._httpRetryingRequests=new Map}requestApiWithRetry(e,t,n){const i=r.retryPromise(this.requestApi.bind(this,e,t),e=>{var n,i,r;let o=!1;if(null==e?void 0:e.response){o=s.retryStatusCodes.has(e.response.status||0);const a=(null===(n=e.response.headers)||void 0===n?void 0:n["retry-after"])||(null===(r=(i=e.response).getResponseHeader)||void 0===r?void 0:r.call(i,"retry-after"));a&&((t.logger||console).debug("retry-after header found on response. setting retry delay",{retryAfter:a}),o=1e3*parseInt(a,10))}return o},n,t.logger);return this._httpRetryingRequests.set(i._id,i),i.promise.then(()=>this.cancelRetryRequest(i._id),()=>this.cancelRetryRequest(i._id)),i}requestApi(e,t){const n=t.logger||console,r=(new Date).getTime(),s=this._buildUri(t.host,e,t.version),o={"content-type":t.contentType||"application/json",...t.customHeaders||{}},a={method:t.method,url:s,data:t.data,responseType:t.responseType,timeout:t.requestTimeout||3e4,headers:o};t.noAuthHeader||(a.headers.Authorization="Bearer "+t.authToken);const c=this.handleResponse.bind(this,n,r,a);return i.default(a).then(c,c)}handleResponse(e,t,n,r){var s,o,a;let c=(new Date).getTime(),l=c-t+"ms";if(r instanceof i.AxiosError){if((null===(o=null===(s=r.config)||void 0===s?void 0:s.headers)||void 0===o?void 0:o.Authorization)&&(r.config.headers.Authorization="redacted"),"ECONNABORTED"===r.code)return e.debug("request error: "+n.url,{message:r.message,now:c,elapsed:l},{skipServer:!0}),Promise.reject(r);const t=r.response||{};let i=t.status,u=t.headers&&t.headers["inin-correlation-id"],d=t.data,h={...r,text:null===(a=t.request)||void 0===a?void 0:a.response};return e.debug("request error: "+n.url,{message:r.message,now:c,elapsed:l,status:i,correlationId:u,body:d},{skipServer:!0}),Promise.reject(h)}let u=r.status,d=r.headers["inin-correlation-id"],h=JSON.stringify(r.data);return e.debug(`response: ${n.method.toUpperCase()} ${n.url}`,{now:c,status:u,elapsed:l,correlationId:d,body:h},{skipServer:!0}),Promise.resolve(r)}stopAllRetries(){Array.from(this._httpRetryingRequests.keys()).forEach(e=>this.cancelRetryRequest(e))}cancelRetryRequest(e){const t=this._httpRetryingRequests.get(e);return t&&(t.cancel(new Error("Retry request cancelled")),this._httpRetryingRequests.delete(e)),!0}formatRequestError(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)){const 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}isSuperagentNetworkError(e){return e&&e.hasOwnProperty("status")&&e.hasOwnProperty("method")&&e.hasOwnProperty("url")}isSuperagentResponseError(e){return!!(e&&e.response&&e.response.body&&e.response.req)}_buildUri(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"v2";return t=t.replace(/^\/+|\/+$/g,""),0===e.indexOf("http")?`${e}/api/${n}/${t}`:`https://api.${e}/api/${n}/${t}`}}t.HttpClient=s,s.retryStatusCodes=new Set([408,413,429,500,502,503,504])},function(e,t){var n=Object.prototype.hasOwnProperty;function i(e){return"[Throws: "+(e?e.message:"?")+"]"}function r(e){var t=[];return function e(r){if(null===r||"object"!=typeof r)return r;if(-1!==t.indexOf(r))return"[Circular]";if(t.push(r),"function"==typeof r.toJSON)try{var s=e(r.toJSON());return t.pop(),s}catch(e){return i(e)}if(Array.isArray(r)){var o=r.map(e);return t.pop(),o}var a=Object.keys(r).reduce((function(t,s){return t[s]=e(function(e,t){if(n.call(e,t))try{return e[t]}catch(e){return i(e)}return e[t]}(r,s)),t}),{});return t.pop(),a}(e)}e.exports=function(e,t,n){return JSON.stringify(r(e),t,n)},e.exports.ensureProperties=r},function(e,t,n){"use strict";function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,"a",(function(){return i}))},function(e,t,n){"use strict";function i(e,t){return function(){return e.apply(t,arguments)}}n.d(t,"a",(function(){return i}))},function(e,t,n){"use strict";t.a=null},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));n(9);let i;const r=new Uint8Array(16);function s(){if(!i&&(i="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!i))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return i(r)}},function(e,t,n){var i=n(11),r=n(71),s=n(19),o=n(48),a=n(77),c=n(217),l=r("wks"),u=i.Symbol,d=c?u:u&&u.withoutSetter||o;e.exports=function(e){return s(l,e)||(a&&s(u,e)?l[e]=u[e]:l[e]=d("Symbol."+e)),l[e]}},function(e,t,n){var i=n(11),r=n(30);e.exports=function(e,t){try{r(i,e,t)}catch(n){i[e]=t}return t}},function(e,t,n){var i=n(29),r=n(73),s=n(47),o=n(75),a=Object.defineProperty;t.f=i?a:function(e,t,n){if(s(e),t=o(t,!0),s(n),r)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var i=n(25);e.exports=function(e){if(!i(e))throw TypeError(String(e)+" is not an object");return e}},function(e,t){var n=0,i=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+i).toString(36)}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){var n=Math.ceil,i=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?i:n)(e)}},function(e,t,n){var i=n(240),r=n(83);e.exports=function(e){return i(r(e))}},function(e,t,n){var i=n(243),r=n(11),s=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?s(i[e])||s(r[e]):i[e]&&i[e][t]||r[e]&&r[e][t]}},function(e,t,n){(function(e,i){var r;/*! https://mths.be/punycode v1.4.1 by @mathias */!function(s){t&&t.nodeType,e&&e.nodeType;var o="object"==typeof i&&i;o.global!==o&&o.window!==o&&o.self;var a,c=2147483647,l=/^xn--/,u=/[^\x20-\x7E]/,d=/[\x2E\u3002\uFF0E\uFF61]/g,h={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},p=Math.floor,f=String.fromCharCode;function m(e){throw new RangeError(h[e])}function g(e,t){for(var n=e.length,i=[];n--;)i[n]=t(e[n]);return i}function y(e,t){var n=e.split("@"),i="";return n.length>1&&(i=n[0]+"@",e=n[1]),i+g((e=e.replace(d,".")).split("."),t).join(".")}function v(e){for(var t,n,i=[],r=0,s=e.length;r<s;)(t=e.charCodeAt(r++))>=55296&&t<=56319&&r<s?56320==(64512&(n=e.charCodeAt(r++)))?i.push(((1023&t)<<10)+(1023&n)+65536):(i.push(t),r--):i.push(t);return i}function b(e){return g(e,(function(e){var t="";return e>65535&&(t+=f((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=f(e)})).join("")}function _(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function S(e,t,n){var i=0;for(e=n?p(e/700):e>>1,e+=p(e/t);e>455;i+=36)e=p(e/35);return p(i+36*e/(e+38))}function w(e){var t,n,i,r,s,o,a,l,u,d,h,f=[],g=e.length,y=0,v=128,_=72;for((n=e.lastIndexOf("-"))<0&&(n=0),i=0;i<n;++i)e.charCodeAt(i)>=128&&m("not-basic"),f.push(e.charCodeAt(i));for(r=n>0?n+1:0;r<g;){for(s=y,o=1,a=36;r>=g&&m("invalid-input"),((l=(h=e.charCodeAt(r++))-48<10?h-22:h-65<26?h-65:h-97<26?h-97:36)>=36||l>p((c-y)/o))&&m("overflow"),y+=l*o,!(l<(u=a<=_?1:a>=_+26?26:a-_));a+=36)o>p(c/(d=36-u))&&m("overflow"),o*=d;_=S(y-s,t=f.length+1,0==s),p(y/t)>c-v&&m("overflow"),v+=p(y/t),y%=t,f.splice(y++,0,v)}return b(f)}function T(e){var t,n,i,r,s,o,a,l,u,d,h,g,y,b,w,T=[];for(g=(e=v(e)).length,t=128,n=0,s=72,o=0;o<g;++o)(h=e[o])<128&&T.push(f(h));for(i=r=T.length,r&&T.push("-");i<g;){for(a=c,o=0;o<g;++o)(h=e[o])>=t&&h<a&&(a=h);for(a-t>p((c-n)/(y=i+1))&&m("overflow"),n+=(a-t)*y,t=a,o=0;o<g;++o)if((h=e[o])<t&&++n>c&&m("overflow"),h==t){for(l=n,u=36;!(l<(d=u<=s?1:u>=s+26?26:u-s));u+=36)w=l-d,b=36-d,T.push(f(_(d+w%b,0))),l=p(w/b);T.push(f(_(l,0))),s=S(n,y,i==r),n=0,++i}++n,++t}return T.join("")}a={version:"1.4.1",ucs2:{decode:v,encode:b},decode:w,encode:T,toASCII:function(e){return y(e,(function(e){return u.test(e)?"xn--"+T(e):e}))},toUnicode:function(e){return y(e,(function(e){return l.test(e)?w(e.slice(4).toLowerCase()):e}))}},void 0===(r=function(){return a}.call(t,n,t,e))||(e.exports=r)}()}).call(this,n(266)(e),n(15))},function(e,t,n){"use strict";var i;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"}(i=t.JXTErrorCondition||(t.JXTErrorCondition={}));class r extends Error{constructor(e){super(e.text),this.isJXTError=!0,this.condition=e.condition,this.text=e.text}static notWellFormed(e){return new r({condition:i.NotWellFormed,text:e})}static restrictedXML(e){return new r({condition:i.RestrictedXML,text:e})}static alreadyClosed(e){return new r({condition:i.AlreadyClosed,text:e})}static unknownRoot(e){return new r({condition:i.UnknownRoot,text:e})}}t.default=r},function(e,t,n){"use strict";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;const i=n(6),r=n(12),s=(0,i.__importDefault)(n(34)),o=n(57);function a(e,t,n,i){if(i){e=e||i.getNamespace();const n=i.getNamespaceRoot(e);if(n){t=`${n.useNamespace("",e)}:${t}`}}const r=new s.default(t);return t.indexOf(":")<0&&(!n||e!==n)&&r.setAttribute("xmlns",e),r}function c(e,t){return(e.getAttribute("xml:lang")||t||"").toLowerCase()}function l(e,t){const n=[];for(const i of e)n.push(c(i,t.lang));let i;return i=t.resolveLanguage?t.resolveLanguage(n,t.acceptLanguages||[],t.lang):t.lang,i||""}function u(e,t,n,i){const r=e.getChildren(n,t),s=c(e);return r.length?i?r.filter(e=>{if(c(e,s)===i)return!0}):r:[]}function d(e,t,n,i){t=t||e.getNamespace();const r=u(e,t,n,i);if(r.length)return r[0];const s=a(t,n,e.getDefaultNamespace(),e),o=c(e,i);return i&&o!==i&&s.setAttribute("xml:lang",i),e.appendChild(s),s}function h(e){return{importer(t){const n=t.getAttribute(e.name,e.namespace);return n?e.parseValue(n):e.dynamicDefault?e.dynamicDefault(n):e.staticDefault},exporter(t,n){if(void 0===n||n===e.staticDefault)return;const i=e.writeValue(n);if(i||e.emitEmpty)if(e.namespace&&e.prefix){let n;const r=t.getNamespaceRoot(e.namespace);if(r)n=r.useNamespace(e.prefix,e.namespace);else{const i=t.getNamespaceContext();i[e.namespace]||(n=t.useNamespace(e.prefix,e.namespace),i[e.namespace]=n)}t.setAttribute(`${n}:${e.name}`,i,e.emitEmpty)}else t.setAttribute(e.name,i,e.emitEmpty)}}}function p(e,t){return function(n){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return r={staticDefault:i,...r},h({name:n,...e,...t?t(r):r})}}function f(e,t){return function(n,i,r){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return o={staticDefault:s,...o},h({name:r,namespace:i,prefix:n,...e,...t?t(o):o})}}function m(e){const t=e.converter||h({...e,namespace:e.attributeNamespace});return{importer(n,i){const r=n.getChild(e.element,e.namespace||n.getNamespace());return r?t.importer(r,i):e.dynamicDefault?e.dynamicDefault():e.staticDefault},exporter(n,i,r){if(void 0!==i&&i!==e.staticDefault){const s=d(n,e.namespace||n.getNamespace(),e.element);t.exporter(s,i,r)}}}}function g(e,t){return function(n,i,r){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return o={staticDefault:s,...o},m({element:i,name:r,namespace:n,...e,...t?t(o):o})}}function y(e){return{importer(t){const n=t.getText();return n?e.parseValue(n):e.dynamicDefault?e.dynamicDefault(n):e.staticDefault},exporter(t,n){if(!n&&e.emitEmpty)return void t.children.push("");if(void 0===n||n===e.staticDefault)return;const i=e.writeValue(n);i&&t.children.push(i)}}}function v(e){const t=y(e);return{importer(n,i){const r=u(n,e.namespace||n.getNamespace(),e.element),s=l(r,i);if(!r.length)return e.dynamicDefault?e.dynamicDefault():e.staticDefault;if(e.matchLanguage)for(const e of r)if(c(e,i.lang)===s)return t.importer(e,i);return t.importer(r[0],i)},exporter(n,i,r){if(i||!e.emitEmpty){if(void 0!==i&&i!==e.staticDefault){const s=d(n,e.namespace||n.getNamespace(),e.element,e.matchLanguage?r.lang:void 0);t.exporter(s,i,r)}}else d(n,e.namespace||n.getNamespace(),e.element,e.matchLanguage?r.lang:void 0)}}}t.createElement=a,t.getLang=c,t.getTargetLang=l,t.findAll=u,t.findOrCreate=d;const b={parseValue:e=>e,writeValue:e=>e},_={parseValue:e=>parseInt(e,10),writeValue:e=>e.toString()},S={parseValue:e=>parseFloat(e),writeValue:e=>e.toString()},w={parseValue:e=>"true"===e||"1"===e||"false"!==e&&"0"!==e&&void 0,writeValue:e=>e?"1":"0"},T={parseValue:e=>new Date(e),writeValue:e=>"string"==typeof e?e:e.toISOString()},I={parseValue:e=>JSON.parse(e),writeValue:e=>JSON.stringify(e)},A=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"utf8";return{parseValue:t=>("base64"===e&&"="===t&&(t=""),r.Buffer.from(t.trim(),e)),writeValue:t=>{let n;return n="string"==typeof t?r.Buffer.from(t).toString(e):t?t.toString(e):"","base64"===e&&(n=n||"="),n}}},E={parseValue:e=>{let t=-1;"-"===e.charAt(0)&&(t=1,e=e.slice(1));const n=e.split(":");return(60*parseInt(n[0],10)+parseInt(n[1],10))*t},writeValue:e=>{if("string"==typeof e)return e;{let t="-";e<0&&(e=-e,t="+");const n=e/60,i=e%60;return t+=(n<10?"0":"")+n+":"+(i<10?"0":"")+i,t}}};t.attribute=p(b,e=>({dynamicDefault:e.emitEmpty?t=>""===t?"":e.staticDefault:void 0,...e})),t.booleanAttribute=p(w),t.integerAttribute=p(_),t.floatAttribute=p(S),t.dateAttribute=p(T),t.namespacedAttribute=f(b),t.namespacedBooleanAttribute=f(w),t.namespacedIntegerAttribute=f(_),t.namespacedFloatAttribute=f(S),t.namespacedDateAttribute=f(T),t.childAttribute=g(b),t.childBooleanAttribute=g(w),t.childIntegerAttribute=g(_),t.childFloatAttribute=g(S),t.childDateAttribute=g(T);t.text=e=>y({staticDefault:e,...b});t.textJSON=()=>y({...I});function N(){return{importer:(e,t)=>c(e,t.lang),exporter(e,t,n){t&&t.toLowerCase()!==n.lang?e.setAttribute("xml:lang",t):e.setAttribute("xml:lang",void 0)}}}t.textBuffer=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"utf8";return y({...A(e)})},t.languageAttribute=N;t.childLanguageAttribute=(e,t)=>m({converter:N(),element:t,name:"xml:lang",namespace:e,...b});t.childText=function(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return v({element:t,emitEmpty:i,matchLanguage:!0,namespace:e,staticDefault:n,...b})};t.childTextBuffer=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"utf8";return v({element:t,matchLanguage:!0,namespace:e,...A(n)})};t.childDate=(e,t)=>v({element:t,namespace:e,...T});t.childInteger=(e,t,n)=>v({element:t,namespace:e,staticDefault:n,..._});t.childFloat=(e,t,n)=>v({element:t,namespace:e,staticDefault:n,...S});t.childJSON=(e,t)=>v({element:t,namespace:e,...I}),t.childTimezoneOffset=function(e,t){return v({element:t,namespace:e,staticDefault:0,...E})},t.childBoolean=function(e,t){return{importer(n){if(n.getChild(t,e||n.getNamespace()))return!0},exporter(n,i){i&&d(n,e||n.getNamespace(),t)}}};const x=(e,t,n)=>{if(!n)return;let i=t;for(const t of e)i=d(i,t.namespace||i.getNamespace(),t.element);i.children.push(n.toString())};t.deepChildText=function(e,t){return{importer(n){let i=n;for(const n of e)if(i=i.getChild(n.element,n.namespace||i.getNamespace()),!i)return t;return i.getText()||t},exporter(t,n){x(e,t,n)}}},t.deepChildInteger=function(e,t){return{importer(n){let i=n;for(const t of e)if(i=i.getChild(t.element,t.namespace||i.getNamespace()),!i)return;const r=i.getText();return r?parseInt(r,10):t||void 0},exporter(t,n){x(e,t,n)}}},t.deepChildBoolean=function(e){return{importer(t){let n=t;for(const t of e)if(n=n.getChild(t.element,t.namespace||n.getNamespace()),!n)return!1;return!0},exporter(t,n){if(!n)return;let i=t;for(const t of e)i=d(i,t.namespace||i.getNamespace(),t.element)}}},t.deepMultipleChildText=function(e){const t=e.pop();return{importer(n,i){let r=n;for(const t of e)if(r=r.getChild(t.element,t.namespace||r.getNamespace()),!r)return[];const s=[],o=u(r,t.namespace||r.getNamespace(),t.element),a=l(o,i);for(const e of o)c(e,i.lang)===a&&s.push(e.getText());return s},exporter(n,i,r){if(!i.length)return;let s=n;for(const t of e)s=d(s,t.namespace||s.getNamespace(),t.element);const{namespace:o,element:c}=t;for(const e of i){const t=a(o||s.getNamespace(),c,r.namespace,s);t.children.push(e),s.appendChild(t)}}}},t.childEnum=function(e,t,n){const i=new Map,r=new Map;for(const e of t)"string"==typeof e?(i.set(e,e),r.set(e,e)):(i.set(e[1],e[0]),r.set(e[0],e[1]));return{importer(t){for(const n of t.children)if("string"!=typeof n&&n.getNamespace()===(e||t.getNamespace())&&i.has(n.getName()))return i.get(n.getName());return n},exporter(t,n){r.has(n)&&d(t,e,r.get(n))}}},t.childDoubleEnum=function(e,t,n,i){const r=new Set(t),s=new Set(n);return{importer(t){for(const n of t.children)if("string"!=typeof n&&n.getNamespace()===(e||t.getNamespace())&&r.has(n.getName())){for(const i of n.children)if("string"!=typeof i&&i.getNamespace()===(e||t.getNamespace())&&s.has(i.getName()))return[n.getName(),i.getName()];return[n.getName()]}return i},exporter(t,n){const i=d(t,e,n[0]);n[1]&&d(i,e,n[1])}}},t.multipleChildText=function(e,t){return{importer(n,i){const r=[],s=u(n,e||n.getNamespace(),t),o=l(s,i);for(const e of s)c(e,i.lang)===o&&r.push(e.getText());return r},exporter(n,i,r){for(const s of i){const i=a(e||n.getNamespace(),t,r.namespace,n);i.children.push(s),n.appendChild(i)}}}},t.multipleChildAttribute=function(e,t,n){return{importer(i){const r=[],s=i.getChildren(t,e||i.getNamespace());for(const e of s){const t=e.getAttribute(n);void 0!==t&&r.push(t)}return r},exporter(i,r,s){for(const o of r){const r=a(e||i.getNamespace(),t,s.namespace,i);r.setAttribute(n,o),i.appendChild(r)}}}},t.multipleChildIntegerAttribute=function(e,t,n){return{importer(i){const r=[],s=i.getChildren(t,e||i.getNamespace());for(const e of s){const t=e.getAttribute(n);void 0!==t&&r.push(parseInt(t,10))}return r},exporter(i,r,s){for(const o of r){const r=a(e||i.getNamespace(),t,s.namespace,i);r.setAttribute(n,o.toString()),i.appendChild(r)}}}},t.childAlternateLanguageText=function(e,t){return{importer(n,i){const r=[],s=u(n,e||n.getNamespace(),t),o=new Set;for(const e of s){const t=e.getText();if(t){const n=c(e,i.lang);if(o.has(n))continue;r.push({lang:n,value:t}),o.add(n)}}return o.size>0?r:void 0},exporter(n,i,r){for(const s of i){const i=s.value;if(i){const o=a(e||n.getNamespace(),t,r.namespace,n);s.lang!==r.lang&&o.setAttribute("xml:lang",s.lang),o.children.push(i),n.appendChild(o)}}}}},t.multipleChildAlternateLanguageText=function(e,t){return{importer(n,i){const r=[],s=new Map;let o=!1;const a=u(n,e||n.getNamespace(),t);for(const e of a){const t=e.getText();if(t){const n=c(e,i.lang);let a=s.get(n);a||(a=[],s.set(n,a),r.push({lang:n,value:a})),a.push(t),o=!0}}return o?r:void 0},exporter(n,i,r){for(const s of i)for(const i of s.value){const o=a(e||n.getNamespace(),t,r.namespace,n);s.lang!==r.lang&&o.setAttribute("xml:lang",s.lang),o.children.push(i),n.appendChild(o)}}}},t.multipleChildEnum=function(e,t){const n=new Map,i=new Map;for(const e of t)"string"==typeof e?(n.set(e,e),i.set(e,e)):(n.set(e[1],e[0]),i.set(e[0],e[1]));return{importer(t){const i=[];for(const r of t.children)"string"!=typeof r&&r.getNamespace()===(e||t.getNamespace())&&n.has(r.getName())&&i.push(n.get(r.getName()));return i},exporter(t,n){for(const r of n)d(t,e,i.get(r))}}},t.splicePath=function(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return{importer(r,s){const o=r.getChild(t,e||r.getNamespace());if(!o)return;const a=[];for(const e of o.children)if("string"!=typeof e&&s.registry.getImportKey(e)===n){const t=s.registry.import(e);t&&a.push(t)}return i?a:a[0]},exporter(i,r,s){let o=[];o=Array.isArray(r)?r:[r];const a=[];for(const t of o){const r=s.registry.export(n,t,{...s,namespace:e||i.getNamespace()||void 0});r&&a.push(r)}if(a.length){const n=d(i,e||i.getNamespace(),t);for(const e of a)n.appendChild(e)}}}},t.staticValue=function(e){return{exporter:()=>{},importer:()=>e}},t.childRawElement=function(e,t,n){return{importer(i,r){if(n&&(!r.sanitizers||!r.sanitizers[n]))return;const s=i.getChild(t,e||i.getNamespace());return s?n?r.sanitizers[n](s.toJSON()):s.toJSON():void 0},exporter(i,r,a){if("string"==typeof r){r=(0,o.parse)(`<${t} xmlns="${e||i.getNamespace()}">${r}</${t}>`).toJSON()}if(n){if(!a.sanitizers||!a.sanitizers[n])return;r=a.sanitizers[n](r)}r&&i.appendChild(new s.default(r.name,r.attributes,r.children))}}},t.childLanguageRawElement=function(e,t,n){return{importer(i,r){if(n&&(!r.sanitizers||!r.sanitizers[n]))return;const s=u(i,e||i.getNamespace(),t),o=l(s,r);for(const e of s)if(c(e,r.lang)===o)return n?r.sanitizers[n](e.toJSON()):e.toJSON();return s[0]?n?r.sanitizers[n](s[0].toJSON()):s[0].toJSON():void 0},exporter(i,r,a){if("string"==typeof r){r=(0,o.parse)(`<${t} xmlns="${e||i.getNamespace()}">${r}</${t}>`).toJSON()}if(r&&n){if(!a.sanitizers||!a.sanitizers[n])return;r=a.sanitizers[n](r)}if(!r)return;const c=d(i,e||i.getNamespace(),t,a.lang);for(const e of r.children)"string"==typeof e?c.appendChild(e):e&&c.appendChild(new s.default(e.name,e.attributes,e.children))}}},t.childAlternateLanguageRawElement=function(e,t,n){return{importer(i,r){if(n&&(!r.sanitizers||!r.sanitizers[n]))return;const s=[],o=new Set,a=u(i,e||i.getNamespace(),t);for(const e of a){let t=e.toJSON();if(n&&(t=r.sanitizers[n](t)),t){const n=c(e,r.lang);if(o.has(n))continue;s.push({lang:n,value:t}),o.add(n)}}return o.size>0?s:void 0},exporter(i,r,c){for(const l of r){let r=l.value;if("string"==typeof r){r=(0,o.parse)(`<${t} xmlns="${e||i.getNamespace()}">${r}</${t}>`).toJSON()}if(r&&n){if(!c.sanitizers||!c.sanitizers[n])continue;r=c.sanitizers[n](r)}if(r){const n=a(e||i.getNamespace(),t,c.namespace,i);i.appendChild(n),l.lang!==c.lang&&n.setAttribute("xml:lang",l.lang);for(const e of r.children)"string"==typeof e?n.appendChild(e):n.appendChild(new s.default(e.name,e.attributes,e.children))}}}}},t.parameterMap=function(e,n,i,r){return{importer(s,o){const a={},c=u(s,e,n),l=(0,t.attribute)(i).importer,d=(0,t.attribute)(r).importer;for(const e of c)a[l(e,o)]=d(e,o);return a},exporter(s,o,c){const l=(0,t.attribute)(i).exporter,u=(0,t.attribute)(r).exporter,d=e||s.getNamespace();for(const[e,t]of Object.entries(o)){const i=a(d,n,c.namespace,s);l(i,e,c),o[e]&&u(i,t,c),s.appendChild(i)}}}}},function(e,t,n){"use strict";t.Readable=n(94),t.Writable=n(96),t.Duplex=n(27),t.Transform=n(98),t.PassThrough=n(281)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parse=void 0;const i=n(6),r=n(10),s=n(35),o=(0,i.__importDefault)(n(34)),a=(0,i.__importDefault)(n(54));function c(e){return 97<=e&&e<=122||65<=e&&e<=90||58===e||95===e}function l(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 u(e){return c(e)||l(e)}function d(e){return c(e)||45===e||46===e||48<=e&&e<=57||183===e||768<=e&&e<=879||8255<=e&&e<=8256||l(e)}function h(e){return 32===e||10===e||13===e||9===e}class p extends r.EventEmitter{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(),this.allowComments=!0,this.attributes={},this.state=34,this.tagName="",this.haveDeclaration=!1,this.recordBuffer=[],void 0!==e.allowComments&&(this.allowComments=e.allowComments)}write(e){for(const t of e){const e=t.codePointAt(0);switch(this.state){case 34:if(60===e){let e;try{e=(0,s.unescapeXML)(this.endRecord())}catch(e){return void this.emit("error",e)}e&&this.emit("text",e),this.transition(31);continue}this.record(t);continue;case 31:if(47===e){this.transition(7);continue}if(33===e){this.transition(24);continue}if(63===e){if(this.haveDeclaration)return this.restrictedXML();this.transition(25);continue}if(u(e)){this.transition(30),this.startRecord(t);continue}return this.notWellFormed();case 30:if(d(e)){this.record(t);continue}if(h(e)){this.startTag(),this.transition(32);continue}if(47===e){this.startTag(),this.transition(29);continue}if(62===e){this.startTag(),this.transition(34),this.emit("startElement",this.tagName,this.attributes);continue}return this.notWellFormed();case 29:if(62===e){this.emit("startElement",this.tagName,this.attributes),this.emit("endElement",this.tagName),this.transition(34);continue}return this.notWellFormed();case 33:if(h(e)){this.transition(32);continue}if(47===e){this.transition(29);continue}if(62===e){this.emit("startElement",this.tagName,this.attributes),this.transition(34);continue}return this.notWellFormed();case 32:if(h(e))continue;if(u(e)){this.startRecord(t),this.transition(0);continue}if(47===e){this.transition(29);continue}if(62===e){this.emit("startElement",this.tagName,this.attributes),this.transition(34);continue}return this.notWellFormed();case 7:if(u(e)){this.startRecord(t),this.transition(6);continue}return this.notWellFormed();case 6:if(d(e)){this.record(t);continue}if(h(e)){this.transition(8);continue}if(62===e){const e=this.endRecord();this.emit("endElement",e,this.attributes),this.transition(34);continue}return this.notWellFormed();case 8:if(h(e))continue;if(62===e){const e=this.endRecord();this.emit("endElement",e,this.attributes),this.transition(34);continue}return this.notWellFormed();case 0:if(d(e)){this.record(t);continue}if(61===e){this.addAttribute(),this.transition(4);continue}if(h(e)){this.addAttribute(),this.transition(3);continue}return this.notWellFormed();case 3:if(61===e){this.transition(4);continue}if(h(e))continue;return this.notWellFormed();case 4:if(34===e){this.startRecord(),this.transition(1);continue}if(39===e){this.startRecord(),this.transition(2);continue}if(h(e))continue;return this.notWellFormed();case 1:case 2:if(34===e&&1===this.state||39===e&&2===this.state){const e=this.endRecord();this.attributes[this.attributeName]=(0,s.unescapeXML)(e),this.transition(33);continue}if(60===e)return this.notWellFormed();this.record(t);continue;case 24:if(45===e){if(!this.allowComments)return this.restrictedXML();this.transition(23);continue}if(91===e){this.transition(21);continue}return this.notWellFormed();case 23:if(45===e){this.transition(14);continue}return this.notWellFormed();case 14:45===e&&this.transition(12);continue;case 12:45===e?this.transition(11):this.transition(14);continue;case 11:62===e?this.transition(34):this.transition(14);continue;case 25:if(88===e||120===e){this.transition(28);continue}return this.notWellFormed();case 28:if(77===e||109===e){this.transition(27);continue}return this.notWellFormed();case 27:if(76===e||108===e){this.transition(26);continue}return this.notWellFormed();case 26:if(h(e)){this.haveDeclaration=!0,this.transition(15);continue}return this.notWellFormed();case 13:if(62===e){this.transition(34);continue}return this.notWellFormed();case 15:63===e&&this.transition(13);continue;case 21:this.wait(e,67,20);continue;case 20:this.wait(e,68,19);continue;case 19:this.wait(e,65,18);continue;case 18:this.wait(e,84,17);continue;case 17:this.wait(e,65,16);continue;case 16:this.wait(e,91,5);continue;case 5:if(93===e){this.transition(10);continue}this.record(t);continue;case 10:93===e?this.transition(9):(this.record(String.fromCodePoint(93)),this.record(t),this.transition(5));continue;case 9:if(62===e){const e=this.endRecord();e&&this.emit("text",e),this.transition(34)}else this.record(String.fromCodePoint(93)),this.record(String.fromCodePoint(93)),this.record(t),this.transition(5);continue}}}end(e){e&&this.write(e),this.write=()=>{}}record(e){this.recordBuffer.push(e)}startRecord(e){this.recordBuffer=[],e&&this.recordBuffer.push(e)}endRecord(){const e=this.recordBuffer;return this.recordBuffer=[],e.join("")}startTag(){this.tagName=this.endRecord(),this.attributes={}}addAttribute(){const e=this.endRecord();if(void 0!==this.attributes[e])return this.notWellFormed();this.attributeName=e,this.attributes[e]=""}wait(e,t,n){if(e!==t)return this.notWellFormed();this.transition(n)}transition(e){this.state=e,34===e&&this.startRecord()}notWellFormed(e){this.emit("error",a.default.notWellFormed(e))}restrictedXML(e){this.emit("error",a.default.restrictedXML(e))}}t.parse=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=new p(t);let i,r,s=null;if(n.on("text",e=>{r&&r.children.push(e)}),n.on("startElement",(e,t)=>{const n=new o.default(e,t);i||(i=n),r=r?r.appendChild(n):n}),n.on("endElement",e=>{r?e===r.name?r.parent&&(r=r.parent):n.emit("error",a.default.notWellFormed("b")):n.emit("error",a.default.notWellFormed("a"))}),n.on("error",e=>{s=e}),n.write(e),n.end(),s)throw s;return i},t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StanzaMediaSession=void 0;const i=n(26),r=i.__importDefault(n(10)),s=n(59),o=n(8),a=i.__importDefault(n(102)),c=n(24),l={"Discovered new ICE candidate":{skipMessage:!0}};class u extends s.MediaSession{constructor(e){super(e.options),this.iceCandidatesDiscovered=0,this.iceCandidatesReceivedFromPeer=0,this.reinvite=!1,this.logger=e.logger,this.conversationId=e.conversationId,this.peerConnection=this.pc,this.fromUserId=e.fromUserId,this.meetingId=e.meetingId,this.id=this.sid,this.originalRoomJid=e.originalRoomJid,this.sessionType=c.SessionTypes[e.sessionType],this.ignoreHostCandidatesFromRemote=!!e.ignoreHostCandidatesFromRemote,this.allowIPv6=!!e.allowIPv6,this.allowTCP=!!e.allowTCP,this.privAnswerMode=e.privAnswerMode;const t=new r.default;Object.keys(t.__proto__).forEach(e=>{this[e]=t[e]}),e.optOutOfWebrtcStatsTelemetry||this.setupStatsGatherer(),this.pc.addEventListener("connectionstatechange",this.onConnectionStateChange.bind(this)),this.pc.addEventListener("icecandidateerror",this.onIceCandidateError.bind(this))}getLogDetails(){return{conversationId:this.conversationId,sessionId:this.id,sessionType:this.sessionType}}async onTransportInfo(e,t){var n,i;const r=null===(n=e.contents)||void 0===n?void 0:n[0].transport,s=null==r?void 0:r.candidates;if(this.ignoreHostCandidatesFromRemote){const e=null==s?void 0:s.filter(e=>"host"!==e.type);(null==e?void 0:e.length)!==(null===(i=null==r?void 0:r.candidates)||void 0===i?void 0:i.length)&&(this._log("info","Ignoring remote host ice candidates"),r.candidates=e)}if(s)for(const e of s)this._log("info","Received candidate from peer",{candidateType:e.type}),this.iceCandidatesReceivedFromPeer++;return super.onTransportInfo(e,t)}_log(e,t){const n=l[t];if(null==n?void 0:n.skipMessage)return;let i;for(var r=arguments.length,s=new Array(r>2?r-2:0),o=2;o<r;o++)s[o-2]=arguments[o];if(s.length){const e=s[0];"object"!=typeof e||Array.isArray(e)||null===e?i={...this.getLogDetails(),data:e}:(Object.assign(s[0],this.getLogDetails()),i=s)}else i=[...s,this.getLogDetails()];this.logger[e](t,i)}async end(){let 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._log("info","sending jingle session-terminate"),this.send("session-terminate",{reason:e})),setTimeout(()=>{"connected"!==this.pc.connectionState&&"connecting"!==this.pc.connectionState||this.pc.close()},2e3),this.parent.emit("terminated",this,e),this.parent.forgetSession(this)}setupStatsGatherer(){this.statsGatherer=new a.default(this.pc),this.statsGatherer.on("stats",this.emit.bind(this,"stats"))}onIceStateChange(){const e=this.pc.iceConnectionState,t=this.id,n=this.conversationId,i=this.sessionType;this._log("info","ICE state changed: ",{iceState:e,sessionId:t,conversationId:n}),"disconnected"===e?"stable"===this.pc.signalingState&&(this.interruptionStart=new Date,this._log("info","Connection state is interrupted",{sessionId:t,conversationId:n,sessionType:i})):"connected"===e?(this._log("info","sending session-info: active"),this.send(o.JingleAction.SessionInfo,{info:{infoType:o.JINGLE_INFO_ACTIVE}}),this._setupDataChannel()):"failed"===e&&this._log("info","ICE connection failed",{candidatesDiscovered:this.iceCandidatesDiscovered,candidatesReceivedFromPeer:this.iceCandidatesReceivedFromPeer}),super.onIceStateChange()}onConnectionStateChange(){const e=this.pc.connectionState,t=this.id,n=this.conversationId,i=this.sessionType;if(this._log("info","Connection state changed: ",{connectionState:e,sessionId:t,conversationId:n,sessionType:i}),this.interruptionStart)if("connected"===e){const e=(new Date).getTime()-this.interruptionStart.getTime();this._log("info","Connection was interrupted but was successfully recovered/connected",{sessionId:t,conversationId:n,sessionType:i,timeToRecover:e}),this.interruptionStart=void 0}else"failed"===e&&this._log("info","Connection was interrupted and failed to recover",{sessionId:t,conversationId:n,sessionType:i})}onIceCandidateError(e){const t=e;this._log("error","IceCandidateError",{errorCode:t.errorCode,errorText:t.errorText,url:t.url}),console.error("IceCandidateError",t)}onIceCandidate(e){if(e.candidate){if(!this.allowTCP&&"tcp"===e.candidate.protocol)return;if(!this.allowIPv6){const t=/.+udp [^ ]+ ([^ ]+).*typ host/.exec(e.candidate.candidate),n=/\b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\b/;if(t&&!t[1].match(n))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 super.onIceCandidate(e)}onIceEndOfCandidates(){super.onIceEndOfCandidates(),this.emit("endOfCandidates")}addTrack(e,t){return"audio"===e.kind&&(this.includesAudio=!0),"video"===e.kind&&(this.includesVideo=!0),this.processLocal("addtrack",async()=>{const n=this.pc.getTransceivers().find(t=>{var n;return!t.sender.track&&(null===(n=t.receiver.track)||void 0===n?void 0:n.kind)===e.kind});if(n)return n.sender.replaceTrack(e);this.pc.addTrack(e,t)})}_setupDataChannel(){var e;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",()=>{this._log("info","data channel opened")}),this.dataChannel.addEventListener("message",this._handleDataChannelMessage.bind(this)),this.dataChannel.addEventListener("close",()=>{this._log("info","closing data channel")}),this.dataChannel.addEventListener("error",e=>{this._log("error","Error occurred with the data channel",e)}))}_handleDataChannelMessage(e){try{const t=JSON.parse(e.data);this.emit("dataChannelMessage",t)}catch(e){this._log("error","Failed to parse data channel message",{error:e})}}}t.StanzaMediaSession=u},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;const i=n(6),r=(0,i.__importDefault)(n(99));t.FileSession=r.default;const s=(0,i.__importDefault)(n(60));t.ICESession=s.default;const o=(0,i.__importDefault)(n(101));t.MediaSession=o.default;const a=(0,i.__importDefault)(n(62));t.Session=a.default;const c=(0,i.__importDefault)(n(290));t.SessionManager=c.default;var l=n(37);Object.defineProperty(t,"importFromSDP",{enumerable:!0,get:function(){return l.importFromSDP}}),Object.defineProperty(t,"exportToSDP",{enumerable:!0,get:function(){return l.exportToSDP}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(6),r=(0,i.__importStar)(n(100)),s=n(8),o=n(2),a=n(37),c=n(61),l=(0,i.__importDefault)(n(62));class u extends l.default{constructor(e){super(e),this.bitrateLimit=0,this.candidateBuffer=[],this.transportType=o.NS_JINGLE_ICE_UDP_1,this.restartingIce=!1,this.usingRelay=!1,this.maxRelayBandwidth=e.maxRelayBandwidth,this.pc=this.parent.createPeerConnection(this,{...e.config,iceServers:e.iceServers}),this.pc.oniceconnectionstatechange=()=>{this.onIceStateChange()},this.pc.onicecandidate=e=>{e.candidate?this.onIceCandidate(e):this.onIceEndOfCandidates()},this.restrictRelayBandwidth()}end(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"success",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.pc.close(),super.end(e,t)}async restartIce(){if(this.isInitiator){void 0!==this._maybeRestartingIce&&clearTimeout(this._maybeRestartingIce),this.restartingIce=!0;try{await this.processLocal("restart-ice",async()=>{const e=await this.pc.createOffer({iceRestart:!0}),t=(0,a.importFromSDP)(e.sdp);this.send(s.JingleAction.TransportInfo,{contents:t.media.map(e=>({creator:s.JingleSessionRole.Initiator,name:e.mid,transport:(0,c.convertIntermediateToTransport)(e,this.transportType)})),sid:this.sid}),await this.pc.setLocalDescription(e)})}catch(e){this._log("error","Could not create WebRTC offer",e),this.end(s.JingleReasonCondition.FailedTransport,!0)}}}async setMaximumBitrate(e){this.maximumBitrate&&(e=Math.min(e,this.maximumBitrate)),this.currentBitrate=e;const t=this.pc.getSenders().find(e=>!!e.track&&"video"===e.track.kind);if(t&&t.getParameters)try{await this.processLocal("set-bitrate",async()=>{const n=t.getParameters();n.encodings&&n.encodings.length||(n.encodings=[{}]),0===e?delete n.encodings[0].maxBitrate:n.encodings[0].maxBitrate=e,await t.setParameters(n)})}catch(e){this._log("error","Set maximumBitrate failed",e)}}async onTransportInfo(e,t){if(e.contents&&e.contents[0]&&e.contents[0].transport.gatheringComplete){const n={sdpMid:e.contents[0].name,candidate:""};try{"stable"===this.pc.signalingState?await this.pc.addIceCandidate(n):this.candidateBuffer.push(n)}catch(e){this._log("debug","Could not add null end-of-candidate")}finally{t()}return}if(this.pc.remoteDescription){const n=this.pc.remoteDescription,i=(0,a.importFromSDP)(n.sdp),r=i.media.find(t=>t.mid===e.contents[0].name).iceParameters.usernameFragment,o=e.contents[0].transport.usernameFragment;if(o&&r!==o){for(const[t,n]of e.contents.entries()){const e=n.transport;i.media[t].iceParameters={password:e.password,usernameFragment:e.usernameFragment},i.media[t].candidates=[]}try{if(await this.pc.setRemoteDescription({type:n.type,sdp:(0,a.exportToSDP)(i)}),await this.processBufferedCandidates(),"offer"===n.type){const e=await this.pc.createAnswer();await this.pc.setLocalDescription(e);const t=(0,a.importFromSDP)(e.sdp);this.send(s.JingleAction.TransportInfo,{contents:t.media.map(e=>({creator:s.JingleSessionRole.Initiator,name:e.mid,transport:(0,c.convertIntermediateToTransport)(e,this.transportType)})),sid:this.sid})}else this.restartingIce=!1}catch(e){return this._log("error","Could not do remote ICE restart",e),t(e),void this.end(s.JingleReasonCondition.FailedTransport)}}}const n=(e.contents||[]).map(e=>{const t=e.name,n=(e.transport.candidates||[]).map(async e=>{const n=r.writeCandidate((0,c.convertCandidateToIntermediate)(e));if(this.pc.remoteDescription&&"stable"===this.pc.signalingState)try{await this.pc.addIceCandidate({sdpMid:t,candidate:n})}catch(e){this._log("error","Could not add ICE candidate",e)}else this.candidateBuffer.push({sdpMid:t,candidate:n})});return Promise.all(n)});try{await Promise.all(n),t()}catch(e){this._log("error","Could not process transport-info: "+e),t(e)}}async onSessionAccept(e,t){this.state="active";const n=(0,c.convertRequestToIntermediate)(e,this.peerRole),i=(0,a.exportToSDP)(n);try{await this.pc.setRemoteDescription({type:"answer",sdp:i}),await this.processBufferedCandidates(),this.parent.emit("accepted",this,void 0),t()}catch(e){this._log("error","Could not process WebRTC answer: "+e),t({condition:"general-error"})}}onSessionTerminate(e,t){this._log("info","Terminating session"),this.pc.close(),super.end(e.reason,!0),t()}onIceCandidate(e){if(!e.candidate||!e.candidate.candidate)return;const t=r.parseCandidate(e.candidate.candidate),n={contents:[{creator:s.JingleSessionRole.Initiator,name:e.candidate.sdpMid,transport:{candidates:[(0,c.convertIntermediateToCandidate)(t)],transportType:this.transportType,usernameFragment:t.usernameFragment}}]};this._log("info","Discovered new ICE candidate",n),this.send(s.JingleAction.TransportInfo,n)}onIceEndOfCandidates(){this._log("info","ICE end of candidates");const e=(0,a.importFromSDP)(this.pc.localDescription.sdp).media[0];this.send(s.JingleAction.TransportInfo,{contents:[{creator:s.JingleSessionRole.Initiator,name:e.mid,transport:{gatheringComplete:!0,transportType:this.transportType,usernameFragment:e.iceParameters.usernameFragment}}]})}onIceStateChange(){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(s.JingleReasonCondition.FailedTransport);this.maybeRestartIce();break;case"failed":if("failed"===this.connectionState||this.restartingIce)return void this.end(s.JingleReasonCondition.FailedTransport);this.connectionState="failed",this.restartIce();break;case"closed":this.connectionState="disconnected",this.restartingIce?this.end(s.JingleReasonCondition.FailedTransport):this.end()}}async processBufferedCandidates(){for(const e of this.candidateBuffer)try{await this.pc.addIceCandidate(e)}catch(e){this._log("error","Could not add ICE candidate",e)}this.candidateBuffer=[]}restrictRelayBandwidth(){this.pc.addEventListener("iceconnectionstatechange",async()=>{if("completed"!==this.pc.iceConnectionState&&"connected"!==this.pc.iceConnectionState)return;const e=await this.pc.getStats();let t;if(e.forEach(n=>{"transport"===n.type&&(t=e.get(n.selectedCandidatePairId))}),t||e.forEach(e=>{"candidate-pair"===e.type&&e.selected&&(t=e)}),!t)return;let n=!1,i="",r="";if(t.remoteCandidateId){const n=e.get(t.remoteCandidateId);n&&(r=n.candidateType)}if(t.localCandidateId){const n=e.get(t.localCandidateId);n&&(i=n.candidateType)}"relay"!==i&&"relay"!==r||(n=!0),this.usingRelay=n,this.parent.emit("iceConnectionType",this,{localCandidateType:i,relayed:n,remoteCandidateType:r}),n&&void 0!==this.maxRelayBandwidth&&(this.maximumBitrate=this.maxRelayBandwidth,this.currentBitrate?this.setMaximumBitrate(Math.min(this.currentBitrate,this.maximumBitrate)):this.setMaximumBitrate(this.maximumBitrate))})}maybeRestartIce(){this.isInitiator&&(void 0!==this._maybeRestartingIce&&clearTimeout(this._maybeRestartingIce),this._maybeRestartingIce=setTimeout(()=>{this._maybeRestartingIce=void 0,"disconnected"===this.pc.iceConnectionState&&this.restartIce()},2e3))}}t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.convertRequestToIntermediate=t.convertContentToIntermediate=t.convertIntermediateToRequest=t.convertIntermediateToTransport=t.convertCandidateToIntermediate=t.convertIntermediateToCandidate=t.convertIntermediateToApplication=void 0;const i=n(8),r=n(2);function s(e,t){const n=e.rtpParameters,s=e.rtcpParameters||{},o=e.rtpEncodingParameters||[];let a=!1;o&&o.length&&(a=!!o[0].ssrc);const c={applicationType:r.NS_JINGLE_RTP_1,codecs:[],headerExtensions:[],media:e.kind,rtcpMux:s.mux,rtcpReducedSize:s.reducedSize,sourceGroups:[],sources:[],ssrc:a?o[0].ssrc.toString():void 0,streams:[]};for(const e of n.headerExtensions||[]){const n={id:e.id,uri:e.uri};e.direction&&"sendrecv"!==e.direction&&(n.senders=(0,i.directionToSenders)(t,e.direction)),c.headerExtensions.push(n)}s.ssrc&&s.cname&&(c.sources=[{parameters:{cname:s.cname},ssrc:s.ssrc.toString()}]),a&&o[0]&&o[0].rtx&&(c.sourceGroups=[{semantics:"FID",sources:[o[0].ssrc.toString(),o[0].rtx.ssrc.toString()]}]);for(const t of e.streams||[])c.streams.push({id:t.stream,track:t.track});for(const e of n.codecs||[]){const t={channels:e.channels,clockRate:e.clockRate,id:e.payloadType.toString(),name:e.name,parameters:e.parameters,rtcpFeedback:e.rtcpFeedback};e.maxptime&&(t.maxptime=e.maxptime),e.parameters&&e.parameters.ptime&&(t.ptime=parseInt(e.parameters.ptime,10)),c.codecs.push(t)}return c}function o(e){let t;return t="rtp"===e.component?1:"rtcp"===e.component?2:e.component,{component:t,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 a(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 c(e,t){const n=e.iceParameters,i=e.dtlsParameters,r={candidates:[],transportType:t};n&&(r.usernameFragment=n.usernameFragment,r.password=n.password,n.iceLite&&(r.iceLite=!0)),i&&(r.fingerprints=i.fingerprints.map(t=>({algorithm:t.algorithm,setup:e.setup,value:t.value}))),e.sctp&&(r.sctp=e.sctp);for(const t of e.candidates||[])r.candidates.push(o(t));return r}function l(e,t){const n=e.application||{},s=e.transport,o=n&&n.applicationType===r.NS_JINGLE_RTP_1,c={direction:(0,i.sendersToDirection)(t,e.senders),kind:n.media||"application",mid:e.name,protocol:o?"UDP/TLS/RTP/SAVPF":"UDP/DTLS/SCTP"};if(o){if(c.rtcpParameters={compound:!n.rtcpReducedSize,mux:n.rtcpMux,reducedSize:n.rtcpReducedSize},n.sources&&n.sources.length){const e=n.sources[0];c.rtcpParameters.ssrc=parseInt(e.ssrc,10),e.parameters&&(c.rtcpParameters.cname=e.parameters.cname)}if(c.rtpParameters={codecs:[],fecMechanisms:[],headerExtensions:[],rtcp:[]},n.streams){c.streams=[];for(const e of n.streams)c.streams.push({stream:e.id,track:e.track})}if(n.ssrc&&(c.rtpEncodingParameters=[{ssrc:parseInt(n.ssrc,10)}],n.sourceGroups&&n.sourceGroups.length)){const e=n.sourceGroups[0];c.rtpEncodingParameters[0].rtx={ssrc:parseInt(e.sources[1],10)}}let e=!1,r=!1;for(const t of n.codecs||[]){const n=t.parameters||{},i=[];for(const e of t.rtcpFeedback||[])i.push({parameter:e.parameter,type:e.type});if("red"===t.name||"ulpfec"===t.name){e=e||"red"===t.name,r=r||"ulpfec"===t.name;const n=t.name.toUpperCase();c.rtpParameters.fecMechanisms.includes(n)||c.rtpParameters.fecMechanisms.push(n)}c.rtpParameters.codecs.push({channels:t.channels,clockRate:t.clockRate,name:t.name,numChannels:t.channels,parameters:n,payloadType:parseInt(t.id,10),rtcpFeedback:i})}for(const e of n.headerExtensions||[])c.rtpParameters.headerExtensions.push({direction:(0,i.sendersToDirection)(t,e.senders||"both"),id:e.id,uri:e.uri,attributes:void 0})}if(s){if(s.usernameFragment&&s.password&&(c.iceParameters={password:s.password,usernameFragment:s.usernameFragment},s.iceLite&&(c.iceParameters.iceLite=!0)),s.fingerprints&&s.fingerprints.length){c.dtlsParameters={fingerprints:[],role:"auto"};for(const e of s.fingerprints)c.dtlsParameters.fingerprints.push({algorithm:e.algorithm,value:e.value});s.sctp&&(c.sctp=s.sctp),c.setup=s.fingerprints[0].setup}c.candidates=(s.candidates||[]).map(a)}return c}t.convertIntermediateToApplication=s,t.convertIntermediateToCandidate=o,t.convertCandidateToIntermediate=a,t.convertIntermediateToTransport=c,t.convertIntermediateToRequest=function(e,t,n){return{contents:e.media.map(e=>({application:"audio"===e.kind||"video"===e.kind?s(e,t):{applicationType:"datachannel",protocol:e.protocol},creator:i.JingleSessionRole.Initiator,name:e.mid,senders:(0,i.directionToSenders)(t,e.direction),transport:c(e,n)})),groups:e.groups?e.groups.map(e=>({contents:e.mids,semantics:e.semantics})):[]}},t.convertContentToIntermediate=l,t.convertRequestToIntermediate=function(e,t){const n={groups:[],media:[]};for(const t of e.groups||[])n.groups.push({mids:t.contents,semantics:t.semantics});for(const i of e.contents||[])n.media.push(l(i,t));return n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(63),r=n(8),s=n(17),o={condition:r.StanzaErrorCondition.BadRequest},a={condition:r.StanzaErrorCondition.FeatureNotImplemented,jingleError:r.JingleErrorCondition.UnsupportedInfo,type:"modify"};t.default=class{constructor(e){this.parent=e.parent,this.sid=e.sid||(0,s.uuid)(),this.peerID=e.peerID,this.role=e.initiator?r.JingleSessionRole.Initiator:r.JingleSessionRole.Responder,this._sessionState="starting",this._connectionState="starting",this.pendingApplicationTypes=e.applicationTypes||[],this.pendingAction=void 0,this.processingQueue=(0,i.priorityQueue)(async(e,t)=>{if("ended"===this.state)return"local"===e.type&&e.reject&&e.reject(new Error("Session ended")),void(t&&t());if("local"===e.type){this._log("debug","Processing local action:",e.name);try{const t=await e.handler();e.resolve(t)}catch(t){e.reject(t)}return void(t&&t())}const{action:n,changes:i,cb:s}=e;return this._log("debug","Processing remote action:",n),new Promise(e=>{const o=(n,i)=>{s(n,i),t&&t(),e()};switch(n){case r.JingleAction.ContentAccept:return this.onContentAccept(i,o);case r.JingleAction.ContentAdd:return this.onContentAdd(i,o);case r.JingleAction.ContentModify:return this.onContentModify(i,o);case r.JingleAction.ContentReject:return this.onContentReject(i,o);case r.JingleAction.ContentRemove:return this.onContentRemove(i,o);case r.JingleAction.DescriptionInfo:return this.onDescriptionInfo(i,o);case r.JingleAction.SecurityInfo:return this.onSecurityInfo(i,o);case r.JingleAction.SessionAccept:return this.onSessionAccept(i,o);case r.JingleAction.SessionInfo:return this.onSessionInfo(i,o);case r.JingleAction.SessionInitiate:return this.onSessionInitiate(i,o);case r.JingleAction.SessionTerminate:return this.onSessionTerminate(i,o);case r.JingleAction.TransportAccept:return this.onTransportAccept(i,o);case r.JingleAction.TransportInfo:return this.onTransportInfo(i,o);case r.JingleAction.TransportReject:return this.onTransportReject(i,o);case r.JingleAction.TransportReplace:return this.onTransportReplace(i,o);default:this._log("error","Invalid or unsupported action: "+n),o({condition:r.StanzaErrorCondition.BadRequest})}})},1)}get isInitiator(){return this.role===r.JingleSessionRole.Initiator}get peerRole(){return this.isInitiator?r.JingleSessionRole.Responder:r.JingleSessionRole.Initiator}get state(){return this._sessionState}set state(e){e!==this._sessionState&&(this._log("info","Changing session state to: "+e),this._sessionState=e,this.parent&&this.parent.emit("sessionState",this,e))}get connectionState(){return this._connectionState}set connectionState(e){e!==this._connectionState&&(this._log("info","Changing connection state to: "+e),this._connectionState=e,this.parent&&this.parent.emit("connectionState",this,e))}send(e,t){(t=t||{}).sid=this.sid,t.action=e;new Set([r.JingleAction.ContentAccept,r.JingleAction.ContentAdd,r.JingleAction.ContentModify,r.JingleAction.ContentReject,r.JingleAction.ContentRemove,r.JingleAction.SessionAccept,r.JingleAction.SessionInitiate,r.JingleAction.TransportAccept,r.JingleAction.TransportReject,r.JingleAction.TransportReplace]).has(e)?this.pendingAction=e:this.pendingAction=void 0,this.parent.signal(this,{id:(0,s.uuid)(),jingle:t,to:this.peerID,type:"set"})}processLocal(e,t){return new Promise((n,i)=>{this.processingQueue.push({handler:t,name:e,reject:i,resolve:n,type:"local"},1)})}process(e,t,n){this.processingQueue.push({action:e,cb:n,changes:t,type:"remote"},2)}start(e,t){this._log("error","Can not start base sessions"),this.end("unsupported-applications",!0)}accept(e,t){this._log("error","Can not accept base sessions"),this.end("unsupported-applications")}cancel(){this.end("cancel")}decline(){this.end("decline")}end(){let 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)}_log(e,t){if(this.parent){t=this.sid+": "+t;for(var n=arguments.length,i=new Array(n>2?n-2:0),r=2;r<n;r++)i[r-2]=arguments[r];this.parent.emit("log",e,t,...i),this.parent.emit("log:"+e,t,...i)}}onSessionInitiate(e,t){t()}onSessionAccept(e,t){t()}onSessionTerminate(e,t){this.end(e.reason,!0),t()}onSessionInfo(e,t){e.info?t(a):t()}onSecurityInfo(e,t){t(a)}onDescriptionInfo(e,t){t(a)}onTransportInfo(e,t){t(a)}onContentAdd(e,t){t(),this.send(r.JingleAction.ContentReject,{reason:{condition:r.JingleReasonCondition.FailedApplication,text:"content-add is not supported"}})}onContentAccept(e,t){t(o)}onContentReject(e,t){t(o)}onContentModify(e,t){t(o)}onContentRemove(e,t){t(o)}onTransportReplace(e,t){t(),this.send(r.JingleAction.TransportReject,{reason:{condition:r.JingleReasonCondition.FailedTransport,text:"transport-replace is not supported"}})}onTransportAccept(e,t){t(o)}onTransportReject(e,t){t(o)}}},function(e,t,n){"use strict";n.r(t),n.d(t,"all",(function(){return me})),n.d(t,"allLimit",(function(){return ge})),n.d(t,"allSeries",(function(){return ye})),n.d(t,"any",(function(){return tt})),n.d(t,"anyLimit",(function(){return nt})),n.d(t,"anySeries",(function(){return it})),n.d(t,"apply",(function(){return i})),n.d(t,"applyEach",(function(){return O})),n.d(t,"applyEachSeries",(function(){return j})),n.d(t,"asyncify",(function(){return d})),n.d(t,"auto",(function(){return D})),n.d(t,"autoInject",(function(){return z})),n.d(t,"cargo",(function(){return V})),n.d(t,"cargoQueue",(function(){return W})),n.d(t,"compose",(function(){return K})),n.d(t,"concat",(function(){return Z})),n.d(t,"concatLimit",(function(){return X})),n.d(t,"concatSeries",(function(){return ee})),n.d(t,"constant",(function(){return te})),n.d(t,"default",(function(){return mt})),n.d(t,"detect",(function(){return ie})),n.d(t,"detectLimit",(function(){return re})),n.d(t,"detectSeries",(function(){return se})),n.d(t,"dir",(function(){return ae})),n.d(t,"doDuring",(function(){return ce})),n.d(t,"doUntil",(function(){return le})),n.d(t,"doWhilst",(function(){return ce})),n.d(t,"during",(function(){return ht})),n.d(t,"each",(function(){return de})),n.d(t,"eachLimit",(function(){return he})),n.d(t,"eachOf",(function(){return C})),n.d(t,"eachOfLimit",(function(){return E})),n.d(t,"eachOfSeries",(function(){return k})),n.d(t,"eachSeries",(function(){return pe})),n.d(t,"ensureAsync",(function(){return fe})),n.d(t,"every",(function(){return me})),n.d(t,"everyLimit",(function(){return ge})),n.d(t,"everySeries",(function(){return ye})),n.d(t,"filter",(function(){return Se})),n.d(t,"filterLimit",(function(){return we})),n.d(t,"filterSeries",(function(){return Te})),n.d(t,"find",(function(){return ie})),n.d(t,"findLimit",(function(){return re})),n.d(t,"findSeries",(function(){return se})),n.d(t,"flatMap",(function(){return Z})),n.d(t,"flatMapLimit",(function(){return X})),n.d(t,"flatMapSeries",(function(){return ee})),n.d(t,"foldl",(function(){return $})),n.d(t,"foldr",(function(){return Je})),n.d(t,"forEach",(function(){return de})),n.d(t,"forEachLimit",(function(){return he})),n.d(t,"forEachOf",(function(){return C})),n.d(t,"forEachOfLimit",(function(){return E})),n.d(t,"forEachOfSeries",(function(){return k})),n.d(t,"forEachSeries",(function(){return pe})),n.d(t,"forever",(function(){return Ie})),n.d(t,"groupBy",(function(){return Ee})),n.d(t,"groupByLimit",(function(){return Ae})),n.d(t,"groupBySeries",(function(){return Ne})),n.d(t,"inject",(function(){return $})),n.d(t,"log",(function(){return xe})),n.d(t,"map",(function(){return R})),n.d(t,"mapLimit",(function(){return Y})),n.d(t,"mapSeries",(function(){return P})),n.d(t,"mapValues",(function(){return Re})),n.d(t,"mapValuesLimit",(function(){return Ce})),n.d(t,"mapValuesSeries",(function(){return Oe})),n.d(t,"memoize",(function(){return ke})),n.d(t,"nextTick",(function(){return Pe})),n.d(t,"parallel",(function(){return Me})),n.d(t,"parallelLimit",(function(){return Le})),n.d(t,"priorityQueue",(function(){return Ue})),n.d(t,"queue",(function(){return De})),n.d(t,"race",(function(){return ze})),n.d(t,"reduce",(function(){return $})),n.d(t,"reduceRight",(function(){return Je})),n.d(t,"reflect",(function(){return Ge})),n.d(t,"reflectAll",(function(){return He})),n.d(t,"reject",(function(){return We})),n.d(t,"rejectLimit",(function(){return $e})),n.d(t,"rejectSeries",(function(){return Qe})),n.d(t,"retry",(function(){return Ye})),n.d(t,"retryable",(function(){return Ze})),n.d(t,"select",(function(){return Se})),n.d(t,"selectLimit",(function(){return we})),n.d(t,"selectSeries",(function(){return Te})),n.d(t,"seq",(function(){return Q})),n.d(t,"series",(function(){return et})),n.d(t,"setImmediate",(function(){return u})),n.d(t,"some",(function(){return tt})),n.d(t,"someLimit",(function(){return nt})),n.d(t,"someSeries",(function(){return it})),n.d(t,"sortBy",(function(){return rt})),n.d(t,"timeout",(function(){return st})),n.d(t,"times",(function(){return at})),n.d(t,"timesLimit",(function(){return ot})),n.d(t,"timesSeries",(function(){return ct})),n.d(t,"transform",(function(){return lt})),n.d(t,"tryEach",(function(){return ut})),n.d(t,"unmemoize",(function(){return dt})),n.d(t,"until",(function(){return pt})),n.d(t,"waterfall",(function(){return ft})),n.d(t,"whilst",(function(){return ht})),n.d(t,"wrapSync",(function(){return d}));n(33);function i(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return function(){for(var t=arguments.length,i=new Array(t),r=0;r<t;r++)i[r]=arguments[r];return e(...n,...i)}}function r(e){return function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];var r=n.pop();return e.call(this,n,r)}}var s="function"==typeof queueMicrotask&&queueMicrotask,o="function"==typeof setImmediate&&setImmediate,a="object"==typeof process&&"function"==typeof process.nextTick;function c(e){setTimeout(e,0)}function l(e){return function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return e(()=>t(...i))}}var u=l(s?queueMicrotask:o?setImmediate:a?process.nextTick:c);function d(e){return f(e)?function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];const r=n.pop(),s=e.apply(this,n);return h(s,r)}:r((function(t,n){var i;try{i=e.apply(this,t)}catch(e){return n(e)}if(i&&"function"==typeof i.then)return h(i,n);n(null,i)}))}function h(e,t){return e.then(e=>{p(t,null,e)},e=>{p(t,e&&(e instanceof Error||e.message)?e:new Error(e))})}function p(e,t,n){try{e(t,n)}catch(e){u(e=>{throw e},e)}}function f(e){return"AsyncFunction"===e[Symbol.toStringTag]}function m(e){if("function"!=typeof e)throw new Error("expected a function");return f(e)?d(e):e}function g(e,t){if(t||(t=e.length),!t)throw new Error("arity is undefined");return function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return"function"==typeof i[t-1]?e.apply(this,i):new Promise((n,r)=>{i[t-1]=function(e){if(e)return r(e);for(var t=arguments.length,i=new Array(t>1?t-1:0),s=1;s<t;s++)i[s-1]=arguments[s];n(i.length>1?i:i[0])},e.apply(this,i)})}}function y(e){return function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];const s=g((function(n){var r=this;return e(t,(e,t)=>{m(e).apply(r,i.concat(t))},n)}));return s}}function v(e,t,n,i){t=t||[];var r=[],s=0,o=m(n);return e(t,(e,t,n)=>{var i=s++;o(e,(e,t)=>{r[i]=t,n(e)})},e=>{i(e,r)})}function b(e){return e&&"number"==typeof e.length&&e.length>=0&&e.length%1==0}var _={};function S(e){function t(){if(null!==e){var t=e;e=null;for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];t.apply(this,i)}}return Object.assign(t,e),t}function w(e){if(b(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,i,r,s=function(e){return e[Symbol.iterator]&&e[Symbol.iterator]()}(e);return s?function(e){var t=-1;return function(){var n=e.next();return n.done?null:(t++,{value:n.value,key:t})}}(s):(n=(t=e)?Object.keys(t):[],i=-1,r=n.length,function e(){var s=n[++i];return"__proto__"===s?e():i<r?{value:t[s],key:s}:null})}function T(e){return function(){if(null===e)throw new Error("Callback was already called.");var t=e;e=null;for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];t.apply(this,i)}}function I(e,t,n,i){let r=!1,s=!1,o=!1,a=0,c=0;function l(){a>=t||o||r||(o=!0,e.next().then(e=>{let{value:t,done:d}=e;if(!s&&!r){if(o=!1,d)return r=!0,void(a<=0&&i(null));a++,n(t,c,u),c++,l()}}).catch(d))}function u(e,t){if(a-=1,!s)return e?d(e):!1===e?(r=!0,void(s=!0)):t===_||r&&a<=0?(r=!0,i(null)):void l()}function d(e){s||(o=!1,r=!0,i(e))}l()}var A=e=>(t,n,i)=>{if(i=S(i),e<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!t)return i(null);if("AsyncGenerator"===t[Symbol.toStringTag])return I(t,e,n,i);if(function(e){return"function"==typeof e[Symbol.asyncIterator]}(t))return I(t[Symbol.asyncIterator](),e,n,i);var r=w(t),s=!1,o=!1,a=0,c=!1;function l(e,t){if(!o)if(a-=1,e)s=!0,i(e);else if(!1===e)s=!0,o=!0;else{if(t===_||s&&a<=0)return s=!0,i(null);c||u()}}function u(){for(c=!0;a<e&&!s;){var t=r();if(null===t)return s=!0,void(a<=0&&i(null));a+=1,n(t.value,t.key,T(l))}c=!1}u()};var E=g((function(e,t,n,i){return A(t)(e,m(n),i)}),4);function N(e,t,n){n=S(n);var i=0,r=0,{length:s}=e,o=!1;function a(e,t){!1===e&&(o=!0),!0!==o&&(e?n(e):++r!==s&&t!==_||n(null))}for(0===s&&n(null);i<s;i++)t(e[i],i,T(a))}function x(e,t,n){return E(e,1/0,t,n)}var C=g((function(e,t,n){return(b(e)?N:x)(e,m(t),n)}),3);var R=g((function(e,t,n){return v(C,e,t,n)}),3),O=y(R);var k=g((function(e,t,n){return E(e,1,t,n)}),3);var P=g((function(e,t,n){return v(k,e,t,n)}),3),j=y(P);const M=Symbol("promiseCallback");function L(){let e,t;function n(n){if(n)return t(n);for(var i=arguments.length,r=new Array(i>1?i-1:0),s=1;s<i;s++)r[s-1]=arguments[s];e(r.length>1?r:r[0])}return n[M]=new Promise((n,i)=>{e=n,t=i}),n}function D(e,t,n){"number"!=typeof t&&(n=t,t=null),n=S(n||L());var i=Object.keys(e).length;if(!i)return n(null);t||(t=i);var r={},s=0,o=!1,a=!1,c=Object.create(null),l=[],u=[],d={};function h(e,t){l.push(()=>function(e,t){if(a)return;var i=T((function(t){for(var i=arguments.length,l=new Array(i>1?i-1:0),u=1;u<i;u++)l[u-1]=arguments[u];if(s--,!1!==t)if(l.length<2&&([l]=l),t){var d={};if(Object.keys(r).forEach(e=>{d[e]=r[e]}),d[e]=l,a=!0,c=Object.create(null),o)return;n(t,d)}else r[e]=l,f(e);else o=!0}));s++;var l=m(t[t.length-1]);t.length>1?l(r,i):l(i)}(e,t))}function p(){if(!o){if(0===l.length&&0===s)return n(null,r);for(;l.length&&s<t;){l.shift()()}}}function f(e){(c[e]||[]).forEach(e=>e()),p()}function g(t){var n=[];return Object.keys(e).forEach(i=>{const r=e[i];Array.isArray(r)&&r.indexOf(t)>=0&&n.push(i)}),n}return Object.keys(e).forEach(t=>{var n=e[t];if(!Array.isArray(n))return h(t,[n]),void u.push(t);var i=n.slice(0,n.length-1),r=i.length;if(0===r)return h(t,n),void u.push(t);d[t]=r,i.forEach(s=>{if(!e[s])throw new Error("async.auto task `"+t+"` has a non-existent dependency `"+s+"` in "+i.join(", "));!function(e,t){var n=c[e];n||(n=c[e]=[]);n.push(t)}(s,()=>{0===--r&&h(t,n)})})}),function(){var e,t=0;for(;u.length;)e=u.pop(),t++,g(e).forEach(e=>{0==--d[e]&&u.push(e)});if(t!==i)throw new Error("async.auto cannot execute tasks due to a recursive dependency")}(),p(),n[M]}var F=/^(?:async\s+)?(?:function)?\s*\w*\s*\(\s*([^)]+)\s*\)(?:\s*{)/,B=/^(?:async\s+)?\(?\s*([^)=]+)\s*\)?(?:\s*=>)/,q=/,/,U=/(=.+)?(\s*)$/;function z(e,t){var n={};return Object.keys(e).forEach(t=>{var i,r=e[t],s=f(r),o=!s&&1===r.length||s&&0===r.length;if(Array.isArray(r))i=[...r],r=i.pop(),n[t]=i.concat(i.length>0?a:r);else if(o)n[t]=r;else{if(i=function(e){const t=function(e){let t="",n=0,i=e.indexOf("*/");for(;n<e.length;)if("/"===e[n]&&"/"===e[n+1]){let t=e.indexOf("\n",n);n=-1===t?e.length:t}else if(-1!==i&&"/"===e[n]&&"*"===e[n+1]){let r=e.indexOf("*/",n);-1!==r?(n=r+2,i=e.indexOf("*/",n)):(t+=e[n],n++)}else t+=e[n],n++;return t}(e.toString());let n=t.match(F);if(n||(n=t.match(B)),!n)throw new Error("could not parse args in autoInject\nSource:\n"+t);let[,i]=n;return i.replace(/\s/g,"").split(q).map(e=>e.replace(U,"").trim())}(r),0===r.length&&!s&&0===i.length)throw new Error("autoInject task functions require explicit parameters.");s||i.pop(),n[t]=i.concat(a)}function a(e,t){var n=i.map(t=>e[t]);n.push(t),m(r)(...n)}}),D(n,t)}class J{constructor(){this.head=this.tail=null,this.length=0}removeLink(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}empty(){for(;this.head;)this.shift();return this}insertAfter(e,t){t.prev=e,t.next=e.next,e.next?e.next.prev=t:this.tail=t,e.next=t,this.length+=1}insertBefore(e,t){t.prev=e.prev,t.next=e,e.prev?e.prev.next=t:this.head=t,e.prev=t,this.length+=1}unshift(e){this.head?this.insertBefore(this.head,e):G(this,e)}push(e){this.tail?this.insertAfter(this.tail,e):G(this,e)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var e=this.head;e;)yield e.data,e=e.next}remove(e){for(var t=this.head;t;){var{next:n}=t;e(t)&&this.removeLink(t),t=n}return this}}function G(e,t){e.length=1,e.head=e.tail=t}function H(e,t,n){if(null==t)t=1;else if(0===t)throw new RangeError("Concurrency must not be zero");var i=m(e),r=0,s=[];const o={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function a(e,t){return e?t?void(o[e]=o[e].filter(e=>e!==t)):o[e]=[]:Object.keys(o).forEach(e=>o[e]=[])}function c(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];o[e].forEach(e=>e(...n))}var l=!1;function d(e,t,n,i){if(null!=i&&"function"!=typeof i)throw new Error("task callback must be a function");var r,s;function o(e){if(e)return n?s(e):r();for(var t=arguments.length,i=new Array(t>1?t-1:0),o=1;o<t;o++)i[o-1]=arguments[o];if(i.length<=1)return r(i[0]);r(i)}y.started=!0;var a=y._createTaskItem(e,n?o:i||o);if(t?y._tasks.unshift(a):y._tasks.push(a),l||(l=!0,u(()=>{l=!1,y.process()})),n||!i)return new Promise((e,t)=>{r=e,s=t})}function h(e){return function(t){r-=1;for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];for(var a=0,l=e.length;a<l;a++){var u=e[a],d=s.indexOf(u);0===d?s.shift():d>0&&s.splice(d,1),u.callback(t,...i),null!=t&&c("error",t,u.data)}r<=y.concurrency-y.buffer&&c("unsaturated"),y.idle()&&c("drain"),y.process()}}function p(e){return!(0!==e.length||!y.idle())&&(u(()=>c("drain")),!0)}const f=e=>t=>{if(!t)return new Promise((t,n)=>{!function(e,t){const n=function(){a(e,n),t(...arguments)};o[e].push(n)}(e,(e,i)=>{if(e)return n(e);t(i)})});a(e),function(e,t){o[e].push(t)}(e,t)};var g=!1,y={_tasks:new J,_createTaskItem:(e,t)=>({data:e,callback:t}),*[Symbol.iterator](){yield*y._tasks[Symbol.iterator]()},concurrency:t,payload:n,buffer:t/4,started:!1,paused:!1,push(e,t){if(Array.isArray(e)){if(p(e))return;return e.map(e=>d(e,!1,!1,t))}return d(e,!1,!1,t)},pushAsync(e,t){if(Array.isArray(e)){if(p(e))return;return e.map(e=>d(e,!1,!0,t))}return d(e,!1,!0,t)},kill(){a(),y._tasks.empty()},unshift(e,t){if(Array.isArray(e)){if(p(e))return;return e.map(e=>d(e,!0,!1,t))}return d(e,!0,!1,t)},unshiftAsync(e,t){if(Array.isArray(e)){if(p(e))return;return e.map(e=>d(e,!0,!0,t))}return d(e,!0,!0,t)},remove(e){y._tasks.remove(e)},process(){if(!g){for(g=!0;!y.paused&&r<y.concurrency&&y._tasks.length;){var e=[],t=[],n=y._tasks.length;y.payload&&(n=Math.min(n,y.payload));for(var o=0;o<n;o++){var a=y._tasks.shift();e.push(a),s.push(a),t.push(a.data)}r+=1,0===y._tasks.length&&c("empty"),r===y.concurrency&&c("saturated");var l=T(h(e));i(t,l)}g=!1}},length:()=>y._tasks.length,running:()=>r,workersList:()=>s,idle:()=>y._tasks.length+r===0,pause(){y.paused=!0},resume(){!1!==y.paused&&(y.paused=!1,u(y.process))}};return Object.defineProperties(y,{saturated:{writable:!1,value:f("saturated")},unsaturated:{writable:!1,value:f("unsaturated")},empty:{writable:!1,value:f("empty")},drain:{writable:!1,value:f("drain")},error:{writable:!1,value:f("error")}}),y}function V(e,t){return H(e,1,t)}function W(e,t,n){return H(e,t,n)}var $=g((function(e,t,n,i){i=S(i);var r=m(n);return k(e,(e,n,i)=>{r(t,e,(e,n)=>{t=n,i(e)})},e=>i(e,t))}),4);function Q(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t.map(m);return function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var s=n[n.length-1];return"function"==typeof s?n.pop():s=L(),$(i,n,(t,n,i)=>{n.apply(e,t.concat((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];i(e,n)})))},(e,t)=>s(e,...t)),s[M]}}function K(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Q(...t.reverse())}var Y=g((function(e,t,n,i){return v(A(t),e,n,i)}),4);var X=g((function(e,t,n,i){var r=m(n);return Y(e,t,(e,t)=>{r(e,(function(e){if(e)return t(e);for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return t(e,i)}))},(e,t)=>{for(var n=[],r=0;r<t.length;r++)t[r]&&(n=n.concat(...t[r]));return i(e,n)})}),4);var Z=g((function(e,t,n){return X(e,1/0,t,n)}),3);var ee=g((function(e,t,n){return X(e,1,t,n)}),3);function te(){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),i=0;i<e;i++)n[i]=arguments[i];var r=n.pop();return r(null,...t)}}function ne(e,t){return(n,i,r,s)=>{var o,a=!1;const c=m(r);n(i,(n,i,r)=>{c(n,(i,s)=>i||!1===i?r(i):e(s)&&!o?(a=!0,o=t(!0,n),r(null,_)):void r())},e=>{if(e)return s(e);s(null,a?o:t(!1))})}}var ie=g((function(e,t,n){return ne(e=>e,(e,t)=>t)(C,e,t,n)}),3);var re=g((function(e,t,n,i){return ne(e=>e,(e,t)=>t)(A(t),e,n,i)}),4);var se=g((function(e,t,n){return ne(e=>e,(e,t)=>t)(A(1),e,t,n)}),3);function oe(e){return function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return m(t)(...i,(function(t){if("object"==typeof console)if(t)console.error&&console.error(t);else if(console[e]){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];i.forEach(t=>console[e](t))}}))}}var ae=oe("dir");var ce=g((function(e,t,n){n=T(n);var i,r=m(e),s=m(t);function o(e){if(e)return n(e);if(!1!==e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];i=r,s(...r,a)}}function a(e,t){return e?n(e):!1!==e?t?void r(o):n(null,...i):void 0}return a(null,!0)}),3);function le(e,t,n){const i=m(t);return ce(e,(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=t.pop();i(...t,(e,t)=>r(e,!t))}),n)}function ue(e){return(t,n,i)=>e(t,i)}var de=g((function(e,t,n){return C(e,ue(m(t)),n)}),3);var he=g((function(e,t,n,i){return A(t)(e,ue(m(n)),i)}),4);var pe=g((function(e,t,n){return he(e,1,t,n)}),3);function fe(e){return f(e)?e:function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];var r=n.pop(),s=!0;n.push((function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];s?u(()=>r(...t)):r(...t)})),e.apply(this,n),s=!1}}var me=g((function(e,t,n){return ne(e=>!e,e=>!e)(C,e,t,n)}),3);var ge=g((function(e,t,n,i){return ne(e=>!e,e=>!e)(A(t),e,n,i)}),4);var ye=g((function(e,t,n){return ne(e=>!e,e=>!e)(k,e,t,n)}),3);function ve(e,t,n,i){var r=new Array(t.length);e(t,(e,t,i)=>{n(e,(e,n)=>{r[t]=!!n,i(e)})},e=>{if(e)return i(e);for(var n=[],s=0;s<t.length;s++)r[s]&&n.push(t[s]);i(null,n)})}function be(e,t,n,i){var r=[];e(t,(e,t,i)=>{n(e,(n,s)=>{if(n)return i(n);s&&r.push({index:t,value:e}),i(n)})},e=>{if(e)return i(e);i(null,r.sort((e,t)=>e.index-t.index).map(e=>e.value))})}function _e(e,t,n,i){return(b(t)?ve:be)(e,t,m(n),i)}var Se=g((function(e,t,n){return _e(C,e,t,n)}),3);var we=g((function(e,t,n,i){return _e(A(t),e,n,i)}),4);var Te=g((function(e,t,n){return _e(k,e,t,n)}),3);var Ie=g((function(e,t){var n=T(t),i=m(fe(e));return function e(t){if(t)return n(t);!1!==t&&i(e)}()}),2);var Ae=g((function(e,t,n,i){var r=m(n);return Y(e,t,(e,t)=>{r(e,(n,i)=>n?t(n):t(n,{key:i,val:e}))},(e,t)=>{for(var n={},{hasOwnProperty:r}=Object.prototype,s=0;s<t.length;s++)if(t[s]){var{key:o}=t[s],{val:a}=t[s];r.call(n,o)?n[o].push(a):n[o]=[a]}return i(e,n)})}),4);function Ee(e,t,n){return Ae(e,1/0,t,n)}function Ne(e,t,n){return Ae(e,1,t,n)}var xe=oe("log");var Ce=g((function(e,t,n,i){i=S(i);var r={},s=m(n);return A(t)(e,(e,t,n)=>{s(e,t,(e,i)=>{if(e)return n(e);r[t]=i,n(e)})},e=>i(e,r))}),4);function Re(e,t,n){return Ce(e,1/0,t,n)}function Oe(e,t,n){return Ce(e,1,t,n)}function ke(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e;var n=Object.create(null),i=Object.create(null),s=m(e),o=r((e,r)=>{var o=t(...e);o in n?u(()=>r(null,...n[o])):o in i?i[o].push(r):(i[o]=[r],s(...e,(function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),s=1;s<t;s++)r[s-1]=arguments[s];e||(n[o]=r);var a=i[o];delete i[o];for(var c=0,l=a.length;c<l;c++)a[c](e,...r)})))});return o.memo=n,o.unmemoized=e,o}var Pe=l(a?process.nextTick:o?setImmediate:c),je=g((e,t,n)=>{var i=b(t)?[]:{};e(t,(e,t,n)=>{m(e)((function(e){for(var r=arguments.length,s=new Array(r>1?r-1:0),o=1;o<r;o++)s[o-1]=arguments[o];s.length<2&&([s]=s),i[t]=s,n(e)}))},e=>n(e,i))},3);function Me(e,t){return je(C,e,t)}function Le(e,t,n){return je(A(t),e,n)}function De(e,t){var n=m(e);return H((e,t)=>{n(e[0],t)},t,1)}class Fe{constructor(){this.heap=[],this.pushCount=Number.MIN_SAFE_INTEGER}get length(){return this.heap.length}empty(){return this.heap=[],this}percUp(e){let t;for(;e>0&&qe(this.heap[e],this.heap[t=Be(e)]);){let n=this.heap[e];this.heap[e]=this.heap[t],this.heap[t]=n,e=t}}percDown(e){let t;for(;(t=1+(e<<1))<this.heap.length&&(t+1<this.heap.length&&qe(this.heap[t+1],this.heap[t])&&(t+=1),!qe(this.heap[e],this.heap[t]));){let n=this.heap[e];this.heap[e]=this.heap[t],this.heap[t]=n,e=t}}push(e){e.pushCount=++this.pushCount,this.heap.push(e),this.percUp(this.heap.length-1)}unshift(e){return this.heap.push(e)}shift(){let[e]=this.heap;return this.heap[0]=this.heap[this.heap.length-1],this.heap.pop(),this.percDown(0),e}toArray(){return[...this]}*[Symbol.iterator](){for(let e=0;e<this.heap.length;e++)yield this.heap[e].data}remove(e){let t=0;for(let n=0;n<this.heap.length;n++)e(this.heap[n])||(this.heap[t]=this.heap[n],t++);this.heap.splice(t);for(let e=Be(this.heap.length-1);e>=0;e--)this.percDown(e);return this}}function Be(e){return(e+1>>1)-1}function qe(e,t){return e.priority!==t.priority?e.priority<t.priority:e.pushCount<t.pushCount}function Ue(e,t){var n=De(e,t),{push:i,pushAsync:r}=n;function s(e,t){return Array.isArray(e)?e.map(e=>({data:e,priority:t})):{data:e,priority:t}}return n._tasks=new Fe,n._createTaskItem=(e,t)=>{let{data:n,priority:i}=e;return{data:n,priority:i,callback:t}},n.push=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return i(s(e,t),n)},n.pushAsync=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return r(s(e,t),n)},delete n.unshift,delete n.unshiftAsync,n}var ze=g((function(e,t){if(t=S(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,i=e.length;n<i;n++)m(e[n])(t)}),2);function Je(e,t,n,i){var r=[...e].reverse();return $(r,t,n,i)}function Ge(e){var t=m(e);return r((function(e,n){return e.push((function(e){let t={};e&&(t.error=e);for(var i=arguments.length,r=new Array(i>1?i-1:0),s=1;s<i;s++)r[s-1]=arguments[s];if(r.length>0){var o=r;r.length<=1&&([o]=r),t.value=o}n(null,t)})),t.apply(this,e)}))}function He(e){var t;return Array.isArray(e)?t=e.map(Ge):(t={},Object.keys(e).forEach(n=>{t[n]=Ge.call(this,e[n])})),t}function Ve(e,t,n,i){const r=m(n);return _e(e,t,(e,t)=>{r(e,(e,n)=>{t(e,!n)})},i)}var We=g((function(e,t,n){return Ve(C,e,t,n)}),3);var $e=g((function(e,t,n,i){return Ve(A(t),e,n,i)}),4);var Qe=g((function(e,t,n){return Ve(k,e,t,n)}),3);function Ke(e){return function(){return e}}function Ye(e,t,n){var i={times:5,intervalFunc:Ke(0)};if(arguments.length<3&&"function"==typeof e?(n=t||L(),t=e):(Xe(i,e),n=n||L()),"function"!=typeof t)throw new Error("Invalid arguments for async.retry");var r=m(t),s=1;function o(){r((function(e){if(!1!==e)if(e&&s++<i.times&&("function"!=typeof i.errorFilter||i.errorFilter(e)))setTimeout(o,i.intervalFunc(s-1));else{for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a<t;a++)r[a-1]=arguments[a];n(e,...r)}}))}return o(),n[M]}function Xe(e,t){if("object"==typeof t)e.times=+t.times||5,e.intervalFunc="function"==typeof t.interval?t.interval:Ke(+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 Ze(e,t){t||(t=e,e=null);let n=e&&e.arity||t.length;f(t)&&(n+=1);var i=m(t);return r((t,r)=>{function s(e){i(...t,e)}return(t.length<n-1||null==r)&&(t.push(r),r=L()),e?Ye(e,s,r):Ye(s,r),r[M]})}function et(e,t){return je(k,e,t)}var tt=g((function(e,t,n){return ne(Boolean,e=>e)(C,e,t,n)}),3);var nt=g((function(e,t,n,i){return ne(Boolean,e=>e)(A(t),e,n,i)}),4);var it=g((function(e,t,n){return ne(Boolean,e=>e)(k,e,t,n)}),3);var rt=g((function(e,t,n){var i=m(t);return R(e,(e,t)=>{i(e,(n,i)=>{if(n)return t(n);t(n,{value:e,criteria:i})})},(e,t)=>{if(e)return n(e);n(null,t.sort(r).map(e=>e.value))});function r(e,t){var n=e.criteria,i=t.criteria;return n<i?-1:n>i?1:0}}),3);function st(e,t,n){var i=m(e);return r((r,s)=>{var o,a=!1;r.push((function(){a||(s(...arguments),clearTimeout(o))})),o=setTimeout((function(){var t=e.name||"anonymous",i=new Error('Callback function "'+t+'" timed out.');i.code="ETIMEDOUT",n&&(i.info=n),a=!0,s(i)}),t),i(...r)})}function ot(e,t,n,i){var r=m(n);return Y(function(e){for(var t=Array(e);e--;)t[e]=e;return t}(e),t,r,i)}function at(e,t,n){return ot(e,1/0,t,n)}function ct(e,t,n){return ot(e,1,t,n)}function lt(e,t,n,i){arguments.length<=3&&"function"==typeof t&&(i=n,n=t,t=Array.isArray(e)?[]:{}),i=S(i||L());var r=m(n);return C(e,(e,n,i)=>{r(t,e,n,i)},e=>i(e,t)),i[M]}var ut=g((function(e,t){var n,i=null;return pe(e,(e,t)=>{m(e)((function(e){if(!1===e)return t(e);for(var r=arguments.length,s=new Array(r>1?r-1:0),o=1;o<r;o++)s[o-1]=arguments[o];s.length<2?[n]=s:n=s,i=e,t(e?null:{})}))},()=>t(i,n))}));function dt(e){return function(){return(e.unmemoized||e)(...arguments)}}var ht=g((function(e,t,n){n=T(n);var i=m(t),r=m(e),s=[];function o(e){if(e)return n(e);for(var t=arguments.length,i=new Array(t>1?t-1:0),o=1;o<t;o++)i[o-1]=arguments[o];s=i,!1!==e&&r(a)}function a(e,t){return e?n(e):!1!==e?t?void i(o):n(null,...s):void 0}return r(a)}),3);function pt(e,t,n){const i=m(e);return ht(e=>i((t,n)=>e(t,!n)),t,n)}var ft=g((function(e,t){if(t=S(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 i(t){m(e[n++])(...t,T(r))}function r(r){if(!1!==r){for(var s=arguments.length,o=new Array(s>1?s-1:0),a=1;a<s;a++)o[a-1]=arguments[a];if(r||n===e.length)return t(r,...o);i(o)}}i([])})),mt={apply:i,applyEach:O,applyEachSeries:j,asyncify:d,auto:D,autoInject:z,cargo:V,cargoQueue:W,compose:K,concat:Z,concatLimit:X,concatSeries:ee,constant:te,detect:ie,detectLimit:re,detectSeries:se,dir:ae,doUntil:le,doWhilst:ce,each:de,eachLimit:he,eachOf:C,eachOfLimit:E,eachOfSeries:k,eachSeries:pe,ensureAsync:fe,every:me,everyLimit:ge,everySeries:ye,filter:Se,filterLimit:we,filterSeries:Te,forever:Ie,groupBy:Ee,groupByLimit:Ae,groupBySeries:Ne,log:xe,map:R,mapLimit:Y,mapSeries:P,mapValues:Re,mapValuesLimit:Ce,mapValuesSeries:Oe,memoize:ke,nextTick:Pe,parallel:Me,parallelLimit:Le,priorityQueue:Ue,queue:De,race:ze,reduce:$,reduceRight:Je,reflect:Ge,reflectAll:He,reject:We,rejectLimit:$e,rejectSeries:Qe,retry:Ye,retryable:Ze,seq:Q,series:et,setImmediate:u,some:tt,someLimit:nt,someSeries:it,sortBy:rt,timeout:st,times:at,timesLimit:ot,timesSeries:ct,transform:lt,tryEach:ut,unmemoize:dt,until:pt,waterfall:ft,whilst:ht,all:me,allLimit:ge,allSeries:ye,any:tt,anyLimit:nt,anySeries:it,find:ie,findLimit:re,findSeries:se,flatMap:Z,flatMapLimit:X,flatMapSeries:ee,forEach:de,forEachSeries:pe,forEachLimit:he,forEachOf:C,forEachOfSeries:k,forEachOfLimit:E,inject:$,foldl:$,foldr:Je,select:Se,selectLimit:we,selectSeries:Te,wrapSync:d,during:ht,doDuring:ce}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GenesysCloudMediaSession=void 0;const i=n(26).__importDefault(n(102)),r=n(10),s=n(28),o=n(16),a=n(24);t.GenesysCloudMediaSession=class{constructor(e,t){this.webrtcExtension=e,this.iceCandidatesDiscovered=0,this.iceCandidatesReceivedFromPeer=0,this.state="pending",this.connectionState="starting",this.id=t.id,this.fromJid=t.fromJid,this.peerID=t.peerID,this.logger=t.logger,this.conversationId=t.conversationId,this.fromUserId=t.fromUserId,this.pc=this.peerConnection=new RTCPeerConnection({iceServers:t.iceServers,iceTransportPolicy:t.iceTransportPolicy}),this.originalRoomJid=t.originalRoomJid,this.sessionType=a.SessionTypes[t.sessionType],this.ignoreHostCandidatesFromRemote=!!t.ignoreHostCandidatesFromRemote,this.allowIPv6=!!t.allowIPv6,this.allowTCP=!!t.allowTCP,this.reinvite=!!t.reinvite,this.privAnswerMode=t.privAnswerMode;const n=new r.EventEmitter;Object.keys(n.__proto__).forEach(e=>{this[e]=n[e]}),t.optOutOfWebrtcStatsTelemetry||this.setupStatsGatherer(),this.peerConnection.addEventListener("icecandidate",this.onIceCandidate.bind(this)),this.peerConnection.addEventListener("iceconnectionstatechange",this.onIceStateChange.bind(this)),this.peerConnection.addEventListener("connectionstatechange",this.onConnectionStateChange.bind(this)),this.peerConnection.addEventListener("icecandidateerror",this.onIceCandidateError.bind(this))}keepStateInSyncWithPeerConnection(){this.stateSyncTimeout&&(clearTimeout(this.stateSyncTimeout),this.stateSyncTimeout=void 0);const e=Date.now();this.stateSyncTimeout=setTimeout(()=>{Date.now()-e>4e3&&(this.log("warn","MediaSession detected timer anomally. Reasons include taxed resources or system sleep."),"ended"!==this.state&&["failed","closed"].includes(this.peerConnection.connectionState)&&(this.log("warn","state mismatch between session.state and peerConnection.connectionState, manually terminating the session",{sessionId:this.id,conversationId:this.conversationId,sessionType:this.sessionType}),this.state="ended",this.onSessionTerminate())),"ended"!==this.state&&this.keepStateInSyncWithPeerConnection()},2e3)}async setRemoteDescription(e){return this.peerConnection.setRemoteDescription({sdp:e,type:"offer"})}getLogDetails(){return{conversationId:this.conversationId,sessionId:this.id,sessionType:this.sessionType}}log(e,t,n,i){n||(n={});const r={...n,...this.getLogDetails()};this.logger[e](t,r,i)}async sendGenesysWebrtc(e){e.id=e.id||s.v4(),e.jsonrpc=e.jsonrpc||"2.0";const t={type:"set",genesysWebrtc:e,from:this.webrtcExtension.jid,to:this.peerID};return this.webrtcExtension.sendIq(t)}async end(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"success",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.state="ended";const n={sessionId:this.id,reason:e.condition||e};t||await o.timeoutPromise((e,t)=>{this.log("info","sending sdp terminate"),this.sendGenesysWebrtc({jsonrpc:"2.0",method:"terminate",params:n}).then(e,t)},2e3,"Timeout waiting for response to termination request",{sessionId:this.id,conversationId:this.conversationId,sessionType:this.sessionType}).catch(e=>this.logger.error(e)),this.onSessionTerminate(n.reason)}setupStatsGatherer(){this.statsGatherer=new i.default(this.peerConnection),this.statsGatherer.on("stats",this.emit.bind(this,"stats"))}async onIceStateChange(){const e=this.peerConnection.iceConnectionState,t=this.id,n=this.conversationId,i=this.sessionType;if(this.log("info","ICE state changed: ",{iceState:e,sessionId:t,conversationId:n}),"disconnected"===e)"stable"===this.peerConnection.signalingState&&(this.interruptionStart=new Date,this.log("info","Connection state is interrupted",{sessionId:t,conversationId:n,sessionType:i}));else if("connected"===e){this.log("info","sending session-info: active");const e={sessionId:this.id,status:"active"};await this.sendGenesysWebrtc({jsonrpc:"2.0",params:e,method:"info"}),this._setupDataChannel()}else"failed"===e&&this.log("info","ICE connection failed",{candidatesDiscovered:this.iceCandidatesDiscovered,candidatesReceivedFromPeer:this.iceCandidatesReceivedFromPeer})}onConnectionStateChange(){const e=this.connectionState=this.peerConnection.connectionState,t=this.id,n=this.conversationId,i=this.sessionType;if("connected"===e&&this.keepStateInSyncWithPeerConnection(),this.log("info","Connection state changed: ",{connectionState:e,sessionId:t,conversationId:n,sessionType:i}),this.interruptionStart)if("connected"===e){const e=(new Date).getTime()-this.interruptionStart.getTime();this.log("info","Connection was interrupted but was successfully recovered/connected",{sessionId:t,conversationId:n,sessionType:i,timeToRecover:e}),this.interruptionStart=void 0}else"failed"===e&&(this.log("info","Connection was interrupted and failed to recover, cleaning up",{sessionId:t,conversationId:n,sessionType:i}),this.state="ended",this.onSessionTerminate())}onIceCandidateError(e){const t=e;this.log("error","IceCandidateError",{errorCode:t.errorCode,errorText:t.errorText,url:t.url})}createIceCandidate(e,t){return new RTCIceCandidate({sdpMid:e,candidate:t})}async addRemoteIceCandidate(e){const t=e.match(/m=([^\s]+)/)[1],n=e.match(/a=([^\\\r]+)/)[1],i=this.createIceCandidate(t,n);await this.peerConnection.addIceCandidate(i)}onIceCandidate(e){var t,n;let i,r=null===(t=e.candidate)||void 0===t?void 0:t.candidate,s=null===(n=e.candidate)||void 0===n?void 0:n.sdpMid;if(e.candidate){if(!this.allowTCP&&"tcp"===e.candidate.protocol)return;if(!this.allowIPv6){const t=/.+udp [^ ]+ ([^ ]+).*typ host/.exec(e.candidate.candidate),n=/\b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\b/;if(t&&!t[1].match(n))return void this.log("debug","Filtering out IPv6 candidate",e.candidate.candidate)}this.log("debug","Processing ice candidate",e.candidate),this.log("info","Discovered ice candidate to send to peer",{type:e.candidate.type}),this.iceCandidatesDiscovered++,i=`m=${s} 9 RTP/AVP 0\r\na=${r}`}else i="a=end-of-candidates",this.emit("endOfCandidates");return this.sendGenesysWebrtc({jsonrpc:"2.0",method:"iceCandidate",params:{sessionId:this.id,sdp:i}})}onSessionTerminate(e){this.peerConnection&&this.peerConnection.close(),this.logger.info("emitting sdp media-session (terminate)"),this.emit("terminated",{condition:e||"success"})}async addTrack(e,t){const n=this.peerConnection.getTransceivers().find(t=>{var n;return!t.sender.track&&(null===(n=t.receiver.track)||void 0===n?void 0:n.kind)===e.kind});if(n)return n.sender.replaceTrack(e);this.peerConnection.addTrack(e,t)}_setupDataChannel(){var e;this.dataChannel||(null===(e=this.peerConnection.remoteDescription)||void 0===e?void 0:e.sdp.includes("webrtc-datachannel"))&&(this.log("info","creating data channel"),this.dataChannel=this.peerConnection.createDataChannel("videoConferenceControl"),this.dataChannel.addEventListener("open",()=>{this.log("info","data channel opened")}),this.dataChannel.addEventListener("message",this._handleDataChannelMessage.bind(this)),this.dataChannel.addEventListener("close",()=>{this.log("info","closing data channel")}),this.dataChannel.addEventListener("error",e=>{this.log("error","Error occurred with the data channel",e)}))}_handleDataChannelMessage(e){try{const t=JSON.parse(e.data);this.emit("dataChannelMessage",t)}catch(e){this.log("error","Failed to parse data channel message",{error:e})}}async accept(){this.state="active";const e=await this.peerConnection.createAnswer();await this.peerConnection.setLocalDescription(e);const t={sdp:e.sdp,sessionId:this.id};return this.logger.info("sending sdp answer",t),this.sendGenesysWebrtc({jsonrpc:"2.0",method:"answer",params:t})}async mute(e,t){const n={sessionId:this.id,type:t};return this.sendGenesysWebrtc({jsonrpc:"2.0",method:"mute",params:n})}async unmute(e,t){const n={sessionId:this.id,type:t};return this.sendGenesysWebrtc({jsonrpc:"2.0",method:"unmute",params:n})}async removeTrack(){throw new Error("Not Implemented")}async hold(){throw new Error("Not Implemented")}async resume(){throw new Error("Not Implemented")}toString(){return{connectionState:this.connectionState,state:this.state,sessionType:this.sessionType,fromJid:this.fromJid,conversationId:this.conversationId,id:this.id,peerConnection:this.peerConnection}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.core=void 0;const i=n(6);(0,i.__exportStar)(n(106),t),(0,i.__exportStar)(n(107),t),(0,i.__exportStar)(n(108),t),(0,i.__exportStar)(n(109),t),(0,i.__exportStar)(n(110),t),(0,i.__exportStar)(n(111),t),(0,i.__exportStar)(n(112),t),(0,i.__exportStar)(n(113),t),(0,i.__exportStar)(n(114),t),(0,i.__exportStar)(n(115),t),(0,i.__exportStar)(n(116),t),(0,i.__exportStar)(n(118),t),(0,i.__exportStar)(n(119),t),(0,i.__exportStar)(n(120),t),(0,i.__exportStar)(n(121),t),(0,i.__exportStar)(n(122),t),(0,i.__exportStar)(n(123),t),(0,i.__exportStar)(n(124),t);const r=(0,i.__importDefault)(n(106)),s=(0,i.__importDefault)(n(107)),o=(0,i.__importDefault)(n(108)),a=(0,i.__importDefault)(n(109)),c=(0,i.__importDefault)(n(110)),l=(0,i.__importDefault)(n(111)),u=(0,i.__importDefault)(n(112)),d=(0,i.__importDefault)(n(113)),h=(0,i.__importDefault)(n(114)),p=(0,i.__importDefault)(n(115)),f=(0,i.__importDefault)(n(116)),m=(0,i.__importDefault)(n(118)),g=(0,i.__importDefault)(n(119)),y=(0,i.__importDefault)(n(120)),v=(0,i.__importDefault)(n(121)),b=(0,i.__importDefault)(n(122)),_=(0,i.__importDefault)(n(123)),S=(0,i.__importDefault)(n(124));t.core=function(e){e.use(d.default),e.use(l.default),e.use(o.default),e.use(c.default),e.use(h.default),e.use(_.default)},t.default=function(e){e.use(r.default),e.use(m.default),e.use(s.default),e.use(a.default),e.use(u.default),e.use(p.default),e.use(f.default),e.use(g.default),e.use(y.default),e.use(v.default),e.use(b.default),e.use(S.default)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s=[{element:"XRD",fields:{subject:(0,i.childText)(null,"Subject")},namespace:r.NS_XRD,path:"xrd"},{aliases:[{path:"xrd.links",multiple:!0}],element:"Link",fields:{href:(0,i.attribute)("href"),rel:(0,i.attribute)("rel"),type:(0,i.attribute)("type")},namespace:r.NS_XRD}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MessengerExtension=void 0;const i=n(305),r=n(13),s=n(28);class o extends i.Emitter{constructor(e,t){super(),this.client=e,this.stanzaInstance=t}get bareJid(){return r.toBare(this.stanzaInstance.jid)}handleStanzaInstanceChange(e){this.stanzaInstance=e}isMediaMessage(e){return!!e.mediaMessage}handleMessage(e){if(!this.isMediaMessage(e))return;const t=e.from===this.stanzaInstance.jid,n=r.toBare(e.from)===this.bareJid;this.emit("mediaMessage",{...e,fromMyClient:t,fromMyUser:n})}async broadcastMessage(e){const t=s.v4();return e.id=t,e.from=this.stanzaInstance.jid,e.to||(e.to=this.bareJid),await this.stanzaInstance.send("message",e),t}get expose(){return{broadcastMessage:this.broadcastMessage.bind(this),on:this.on.bind(this),once:this.once.bind(this),off:this.off.bind(this),removeListener:this.removeListener.bind(this),addListener:this.addListener.bind(this)}}}t.MessengerExtension=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Client=void 0;const i=n(26),r=n(227),s=n(306);n(262);const o=n(263),a=n(265),c=n(292),l=n(293),u=n(16),d=n(38),h=n(24),p=i.__importDefault(n(10)),f=n(294),m=n(69),g=i.__importDefault(n(304)),y=i.__importDefault(n(206)),v=n(88),b=n(67);let _={notifications:o.Notifications,webrtcSessions:a.WebrtcExtension,messenger:b.MessengerExtension};class S extends p.default{constructor(e){super(),this.connected=!1,this.connecting=!1,this.hardReconnectRequired=!0,this.isGuest=!1,this.backgroundAssistantMode=!1,this.autoReconnect=!0,this.extensions=[],this.channelReuses=0,this.hasMadeInitialAttempt=!1,this.http=new d.HttpClient,this.reconnectOnNoLongerSubscribed=!1!==e.reconnectOnNoLongerSubscribed,this.useServerSidePings=!1!==e.useServerSidePings,this.config={host:e.host,apiHost:e.apiHost||e.host.replace("wss://streaming.",""),authToken:e.authToken,jwt:e.jwt,jid:e.jid,jidResource:e.jidResource,channelId:null,appName:e.appName,appVersion:e.appVersion,appId:e.appId,customHeaders:e.customHeaders},this.backgroundAssistantMode=this.checkIsBackgroundAssistant(),this.isGuest=!this.backgroundAssistantMode&&!e.authToken;let t=e.authToken||"",n=`https://api.${this.config.apiHost}/api/v2/diagnostics/trace`;this.backgroundAssistantMode&&(t=e.jwt,n+="/backgroundassistant"),this.logger=new s.Logger({accessToken:t,url:n,uploadDebounceTime:1e3,initializeServerLogging:!this.isGuest&&!e.optOutOfWebrtcStatsTelemetry,appVersion:S.version,appName:"streaming-client",logLevel:this.config.logLevel||"info",logger:e.logger||console,formatters:e.logFormatters,originAppName:e.appName,originAppVersion:e.appVersion,originAppId:e.appId,customHeaders:e.customHeaders}),this.connectionManager=new f.ConnectionManager(this.logger,this.config),Object.keys(_).forEach(t=>{const n=new _[t](this,e);this.extensions.push(n),n.tokenBucket||(n.tokenBucket=new r.TokenBucket(20,25,1e3),n.tokenBucket.content=25),"function"==typeof n.on&&n.on("send",this.handleSendEventFromExtension.bind(this,n)),this[t]=n.expose,this["_"+t]=n})}handleSendEventFromExtension(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e.tokenBucket.removeTokens(1,()=>{const e=this.activeStanzaInstance;return e?!0===n?e.sendMessage(t):e.sendIQ(t):this.logger.warn("cannot send message, no active stanza client",{data:t,message:n},{skipServer:!0})})}checkIsBackgroundAssistant(){if(this.config.jwt){const e=u.parseJwt(this.config.jwt);return e&&"urn:purecloud:screenrecording"===e.iss}return!1}addInateEventHandlers(e){this.removeStanzaBoundEventHandlers(),this.boundStanzaDisconnect=this.handleStanzaDisconnectedEvent.bind(this,e),this.boundStanzaNoLongerSubscribed=this.handleNoLongerSubscribed.bind(this,e),this.boundStanzaDuplicateId=this.handleDuplicateId.bind(this,e),this.on("stanzaDisconnected",this.boundStanzaDisconnect),this.on("notify:no_longer_subscribed",this.boundStanzaNoLongerSubscribed),this.on("notify:duplicate_id",this.boundStanzaDuplicateId),this.extensions.forEach(t=>{"function"==typeof t.handleIq&&e.on("iq",t.handleIq.bind(t)),"function"==typeof t.handleMessage&&e.on("message",t.handleMessage.bind(t))})}removeStanzaBoundEventHandlers(){this.boundStanzaDisconnect&&(this.off("stanzaDisconnected",this.boundStanzaDisconnect),this.boundStanzaDisconnect=void 0),this.boundStanzaNoLongerSubscribed&&(this.off("notify:no_longer_subscribed",this.boundStanzaNoLongerSubscribed),this.boundStanzaNoLongerSubscribed=void 0),this.boundStanzaDuplicateId&&(this.off("notify:duplicate_id",this.boundStanzaDuplicateId),this.boundStanzaDuplicateId=void 0)}proxyStanzaEvents(e){var t=this;e.originalEmitter=e.emit,e.emit=function(n){for(var i=arguments.length,r=new Array(i>1?i-1:0),s=1;s<i;s++)r[s-1]=arguments[s];const o=e.originalEmitter(n,...r);return"connected"===n?o:("disconnected"===n&&(n="stanzaDisconnected"),t.emit(n,...r))}}async handleStanzaDisconnectedEvent(e){var t,n;if(this.logger.info("stanzaDisconnected event received",{stanzaInstanceId:e.id,channelId:e.channelId}),this.connected=!1,this.connecting=!1,null===(t=e.pinger)||void 0===t||t.stop(),null===(n=e.serverMonitor)||void 0===n||n.stop(),this.removeAllListeners("stanzaDisconnected"),this.removeAllListeners("notify:no_longer_subscribed"),e.originalEmitter&&(e.emit=e.originalEmitter),this.activeStanzaInstance=void 0,this.emit("disconnected",{reconnecting:this.autoReconnect}),this.autoReconnect)return this.connect({keepTryingOnFailure:!0})}handleNoLongerSubscribed(e){var t,n;this.logger.warn("noLongerSubscribed event received",{stanzaInstanceId:e.id,channelId:e.channelId}),null===(t=e.pinger)||void 0===t||t.stop(),null===(n=e.serverMonitor)||void 0===n||n.stop(),this.hardReconnectRequired=!0,this.reconnectOnNoLongerSubscribed||(this.autoReconnect=!1)}handleDuplicateId(e){var t,n;this.logger.warn("duplicate_id event received, forcing hard reconnect",{stanzaInstanceId:e.id,channelId:e.channelId}),null===(t=e.pinger)||void 0===t||t.stop(),null===(n=e.serverMonitor)||void 0===n||n.stop(),this.hardReconnectRequired=!0}async disconnect(){if(this.logger.info("streamingClient.disconnect was called"),this.activeStanzaInstance)return u.timeoutPromise(e=>(this.autoReconnect=!1,this.http.stopAllRetries(),this.activeStanzaInstance.disconnect().then(e)),5e3,"disconnecting streaming service")}getSessionStoreKey(){return"sc_connectionData_"+(this.config.appName||this.logger.clientId)}getConnectionData(){const e=sessionStorage.getItem(this.getSessionStoreKey()),t={currentDelayMs:0};if(e)try{return JSON.parse(e)}catch(e){return this.logger.warn("failed to parse streaming client connection data"),t}return t}setConnectionData(e){sessionStorage.setItem(this.getSessionStoreKey(),JSON.stringify(e))}increaseBackoff(){const e=this.getConnectionData(),t=Math.max(2*e.currentDelayMs,4e3),n={currentDelayMs:t,delayMsAfterNextReduction:t/2,nextDelayReductionTime:(new Date).getTime()+5*t,timeOfTotalReset:(new Date).getTime()+36e5};return this.setConnectionData(n),n}decreaseBackoff(e){const t=this.getConnectionData(),n=5*e,i={currentDelayMs:e,delayMsAfterNextReduction:e/2,nextDelayReductionTime:(new Date).getTime()+n,timeOfTotalReset:t.timeOfTotalReset};if(t.timeOfTotalReset&&t.timeOfTotalReset<(new Date).getTime()||e<2e3)return this.logger.debug("decreaseBackoff() called, but timeOfTotalReset has elasped or next delay is below 2s. Resetting backoff"),this.setConnectionData({currentDelayMs:0});this.setConnectionData(i),clearTimeout(this.backoffReductionTimer),this.logger.debug("Setting timer for next backoff reduction since we haven't reached total reset",{msUntilReduction:n,delayMsAfterNextReduction:i.delayMsAfterNextReduction}),this.backoffReductionTimer=setTimeout(()=>this.decreaseBackoff(i.delayMsAfterNextReduction),n)}getStartingDelay(e,t){const n=Math.max(e.currentDelayMs,2e3);return e.timeOfTotalReset&&e.timeOfTotalReset<(new Date).getTime()?2e3:Math.min(n,t)}async connect(e){var t;if(this.connecting){const e=new Error("Already trying to connect streaming client");return this.logger.warn(e)}this.connecting=!0;const n=(null==e?void 0:e.maxDelayBetweenConnectionAttempts)||9e4;let i=(null==e?void 0:e.maxConnectionAttempts)||1;(null==e?void 0:e.keepTryingOnFailure)&&(i=1/0),clearTimeout(this.backoffReductionTimer);const r=this.getConnectionData(),s=this.getStartingDelay(r,n),o=this.hasMadeInitialAttempt;this.hasMadeInitialAttempt=!0,r.currentDelayMs&&this.logger.debug("streamingClient.connect was called, but backoff is remembered",{currentDelayMs:r.currentDelayMs,delayingThisAttempt:o,clientId:this.logger.clientId,appName:this.config.appName});try{await m.backOff(async()=>{const e=this.getConnectionData();if(await this.makeConnectionAttempt(),e.nextDelayReductionTime){const t=e.nextDelayReductionTime-(new Date).getTime();this.logger.debug("Setting timer for next backoff reduction",{msUntilReduction:t,delayMsAfterNextReduction:e.delayMsAfterNextReduction}),this.backoffReductionTimer=setTimeout(()=>this.decreaseBackoff(e.delayMsAfterNextReduction||0),t)}},{jitter:"none",maxDelay:n,numOfAttempts:i,startingDelay:s,delayFirstAttempt:o,retry:this.backoffConnectRetryHandler.bind(this,{maxConnectionAttempts:i})})}catch(e){let n,i=e;if(e)if("AxiosError"===e.name){const r=e,s=r.config||{url:void 0,method:void 0};i={config:{url:s.url,method:s.method},status:null===(t=r.response)||void 0===t?void 0:t.status,code:r.code,name:r.name,message:r.message},n=new u.StreamingClientError(h.StreamingClientErrorTypes.generic,"Failed to connect streaming client due to network error",e),this.networkErrorNeedsAuth(e)&&(n=new u.StreamingClientError(h.StreamingClientErrorTypes.invalid_token,"Failed to connect streaming client due to invalid token",e))}else e instanceof y.default?(n=new u.StreamingClientError(h.StreamingClientErrorTypes.invalid_token,"Failed to connect streaming client due to invalid token",e),this.saslErrorIsRetryable(e)&&(n=new u.StreamingClientError(h.StreamingClientErrorTypes.generic,"Streaming client connection attempted and received a SASL error",e))):n=new u.StreamingClientError(h.StreamingClientErrorTypes.generic,"Streaming client connection attempted and received an unknown error",e);else n=new u.StreamingClientError(h.StreamingClientErrorTypes.generic,"Streaming client connection attempted and received an undefined error"),i=n;throw this.logger.error("Failed to connect streaming client",{error:i}),n}}async backoffConnectRetryHandler(e,t,n){var i,r,s,o;if(n>=e.maxConnectionAttempts)return!1;const a={connectionAttempt:n,error:t};if(t){if("AxiosError"===t.name){const e=t,n=e.config||{url:void 0,method:void 0};let r={config:{url:n.url,method:n.method},status:null===(i=e.response)||void 0===i?void 0:i.status,code:e.code,name:e.name,message:e.message};if(a.error=r,this.networkErrorNeedsAuth(t))return this.logger.error("Streaming client received an error that it can't recover from and will not attempt to reconnect",a),!1}}else a.error=new Error("streaming client backoff handler received undefined error");if(t instanceof y.default){if(!this.saslErrorIsRetryable(t))return a.error=t.condition,this.logger.error("Streaming-client received a SASL error that it can't recover from and will not attempt to reconnect",a),!1;this.logger.info("hardReconnectRequired set to true due to sasl error"),this.hardReconnectRequired=!0,Object.assign(a,{channelId:t.channelId,stanzaInstanceId:t.stanzaInstanceId})}if(t instanceof v.TimeoutError){a.error=t.message;const e=t.details;e&&(a.details=e)}if(null==t?void 0:t.response){const e=(null===(r=t.response.headers)||void 0===r?void 0:r["retry-after"])||(null===(o=(s=t.response).getResponseHeader)||void 0===o?void 0:o.call(s,"retry-after"));if(e){let n=1e3*parseInt(e,10);return a.retryDelay=n,this.logger.error("Failed streaming client connection attempt, respecting retry-after header and will retry afterwards.",a,{skipServer:t instanceof g.default}),await u.delay(n),this.logger.debug("finished waiting for retry-after"),!0}}const c=this.increaseBackoff();return this.logger.error("Failed streaming client connection attempt, retrying",a,{skipServer:t instanceof g.default}),this.logger.debug("debug: retry info",{expectedRetryInMs:c.currentDelayMs,appName:this.config.appName,clientId:this.logger.clientId}),!0}networkErrorNeedsAuth(e){var t;return[401,403].includes((null===(t=e.response)||void 0===t?void 0:t.status)||0)}saslErrorIsRetryable(e){return["encryption-required","incorrect-encoding","invalid-mechanism","malformed-request","mechanism-too-weak"].includes(e.condition)}async makeConnectionAttempt(){var e,t;if(!navigator.onLine)throw new g.default("Browser is offline, skipping connection attempt");let n,i=this.connecting;try{await this.prepareForConnect(),n=await this.connectionManager.getNewStanzaConnection(),this.connected=!0,this.connecting=!1,this.addInateEventHandlers(n),this.proxyStanzaEvents(n);for(const e of this.extensions)e.configureNewStanzaInstance&&await e.configureNewStanzaInstance(n);for(const e of this.extensions)e.handleStanzaInstanceChange(n);this.activeStanzaInstance=n,await this.setupConnectionMonitoring(n),this.emit("connected")}catch(r){throw n&&(this.logger.error("Error occurred in connection attempt, but after websocket connected. Cleaning up connection so backoff is respected",{stanzaInstanceId:n.id,channelId:n.channelId}),this.removeStanzaBoundEventHandlers(),null===(e=n.pinger)||void 0===e||e.stop(),null===(t=n.serverMonitor)||void 0===t||t.stop(),await n.disconnect(),this.connected=!1,this.connecting=i),r}}async setupConnectionMonitoring(e){const t=t=>{const n=t+", falling back to client-side pinging";this.logger.warn(n,{stanzaInstanceId:e.id,channelId:e.channelId}),e.pinger=new c.Ping(this,e)};if(this.useServerSidePings)try{await e.subscribeToNode(this._notifications.pubsubHost,"enable.server.side.pings"),e.serverMonitor=new l.ServerMonitor(this,e)}catch(e){t("failed to establish server-side pinging")}else t("client configured to not use server-side pinging")}async prepareForConnect(){if(this.config.jwt)return this.hardReconnectRequired=!1,this.connectionManager.setConfig(this.config);if(this.hardReconnectRequired||(this.channelReuses++,this.channelReuses>=10&&(this.logger.warn("Forcing a hard reconnect due to max channel reuses",{channelId:this.config.channelId,channelReuses:this.channelReuses}),this.channelReuses=0,this.hardReconnectRequired=!0)),this.hardReconnectRequired){let e;if(this.config.jid)e=Promise.resolve(this.config.jid);else{const t={method:"get",host:this.config.apiHost,authToken:this.config.authToken,logger:this.logger,customHeaders:this.config.customHeaders};e=this.http.requestApi("users/me",t).then(e=>e.data.chat.jabberId)}const t={method:"post",host:this.config.apiHost,authToken:this.config.authToken,logger:this.logger,customHeaders:this.config.customHeaders},n=this.http.requestApi("notifications/channels?connectionType=streaming",t).then(e=>e.data.id),[i,r]=await Promise.all([e,n]);this.config.jid=i,this.config.channelId=r,this.autoReconnect=!0,this.logger.info("attempting to connect streaming client on channel",{channelId:r}),this.connectionManager.setConfig(this.config),this.hardReconnectRequired=!1}}stopServerLogging(){this.logger.sendAllLogsInstantly(),this.logger.stopServerLogging()}startServerLogging(){this.logger.startServerLogging()}setAccessToken(e){this.config.authToken=e,this.logger.setAccessToken(e)}static extend(e,t){if(_[e])throw new Error("Cannot register already existing namespace "+e);_[e]=t}get version(){return S.version}static get version(){return"18.0.1"}}t.Client=S},function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,s){function o(e){try{c(i.next(e))}catch(e){s(e)}}function a(e){try{c(i.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,a)}c((i=i.apply(e,t||[])).next())}))},r=this&&this.__generator||function(e,t){var n,i,r,s,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,i&&(r=2&s[0]?i.return:s[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,s[1])).done)return r;switch(i=0,r&&(s=[2&s[0],r.value]),s[0]){case 0:case 1:r=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,i=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]<r[3])){o.label=s[1];break}if(6===s[0]&&o.label<r[1]){o.label=r[1],r=s;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(s);break}r[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],i=0}finally{n=r=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,a])}}};Object.defineProperty(t,"__esModule",{value:!0});var s=n(230),o=n(231);t.backOff=function(e,t){return void 0===t&&(t={}),i(this,void 0,void 0,(function(){var n;return r(this,(function(i){switch(i.label){case 0:return n=s.getSanitizedOptions(t),[4,new a(e,n).execute()];case 1:return[2,i.sent()]}}))}))};var a=function(){function e(e,t){this.request=e,this.options=t,this.attemptNumber=0}return e.prototype.execute=function(){return i(this,void 0,void 0,(function(){var e;return r(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 i(this,void 0,void 0,(function(){return r(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){"use strict";var i={};n.r(i),n.d(i,"hasBrowserEnv",(function(){return y})),n.d(i,"hasStandardBrowserWebWorkerEnv",(function(){return _})),n.d(i,"hasStandardBrowserEnv",(function(){return v})),n.d(i,"origin",(function(){return S}));var r=n(1),s=n(41),o=n(22);function a(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function c(e,t){this._pairs=[],e&&Object(o.a)(e,this,t)}const l=c.prototype;l.append=function(e,t){this._pairs.push([e,t])},l.toString=function(e){const t=e?function(t){return e.call(this,t,a)}:a;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var u=c;function d(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function h(e,t,n){if(!t)return e;const i=n&&n.encode||d,s=n&&n.serialize;let o;if(o=s?s(t,n):r.a.isURLSearchParams(t)?t.toString():new u(t,n).toString(i),o){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}var p=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){r.a.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},f=n(5),m={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},g={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:u,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const y="undefined"!=typeof window&&"undefined"!=typeof document,v=(b="undefined"!=typeof navigator&&navigator.product,y&&["ReactNative","NativeScript","NS"].indexOf(b)<0);var b;const _="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,S=y&&window.location.href||"http://localhost";var w={...i,...g};var T=function(e){function t(e,n,i,s){let o=e[s++];if("__proto__"===o)return!0;const a=Number.isFinite(+o),c=s>=e.length;if(o=!o&&r.a.isArray(i)?i.length:o,c)return r.a.hasOwnProp(i,o)?i[o]=[i[o],n]:i[o]=n,!a;i[o]&&r.a.isObject(i[o])||(i[o]=[]);return t(e,n,i[o],s)&&r.a.isArray(i[o])&&(i[o]=function(e){const t={},n=Object.keys(e);let i;const r=n.length;let s;for(i=0;i<r;i++)s=n[i],t[s]=e[s];return t}(i[o])),!a}if(r.a.isFormData(e)&&r.a.isFunction(e.entries)){const n={};return r.a.forEachEntry(e,(e,i)=>{t(function(e){return r.a.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),i,n,0)}),n}return null};const I={transitional:m,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",i=n.indexOf("application/json")>-1,s=r.a.isObject(e);s&&r.a.isHTMLForm(e)&&(e=new FormData(e));if(r.a.isFormData(e))return i?JSON.stringify(T(e)):e;if(r.a.isArrayBuffer(e)||r.a.isBuffer(e)||r.a.isStream(e)||r.a.isFile(e)||r.a.isBlob(e)||r.a.isReadableStream(e))return e;if(r.a.isArrayBufferView(e))return e.buffer;if(r.a.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(s){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Object(o.a)(e,new w.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,i){return w.isNode&&r.a.isBuffer(e)?(this.append(t,e.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((a=r.a.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Object(o.a)(a?{"files[]":e}:e,t&&new t,this.formSerializer)}}return s||i?(t.setContentType("application/json",!1),function(e,t,n){if(r.a.isString(e))try{return(t||JSON.parse)(e),r.a.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||I.transitional,n=t&&t.forcedJSONParsing,i="json"===this.responseType;if(r.a.isResponse(e)||r.a.isReadableStream(e))return e;if(e&&r.a.isString(e)&&(n&&!this.responseType||i)){const n=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw f.a.from(e,f.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:w.classes.FormData,Blob:w.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};r.a.forEach(["delete","get","head","post","put","patch"],e=>{I.headers[e]={}});var A=I;const E=r.a.toObjectSet(["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"]);const N=Symbol("internals");function x(e){return e&&String(e).trim().toLowerCase()}function C(e){return!1===e||null==e?e:r.a.isArray(e)?e.map(C):String(e)}function R(e,t,n,i,s){return r.a.isFunction(i)?i.call(this,t,n):(s&&(t=n),r.a.isString(t)?r.a.isString(i)?-1!==t.indexOf(i):r.a.isRegExp(i)?i.test(t):void 0:void 0)}class O{constructor(e){e&&this.set(e)}set(e,t,n){const i=this;function s(e,t,n){const s=x(t);if(!s)throw new Error("header name must be a non-empty string");const o=r.a.findKey(i,s);(!o||void 0===i[o]||!0===n||void 0===n&&!1!==i[o])&&(i[o||t]=C(e))}const o=(e,t)=>r.a.forEach(e,(e,n)=>s(e,n,t));if(r.a.isPlainObject(e)||e instanceof this.constructor)o(e,t);else if(r.a.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))o((e=>{const t={};let n,i,r;return e&&e.split("\n").forEach((function(e){r=e.indexOf(":"),n=e.substring(0,r).trim().toLowerCase(),i=e.substring(r+1).trim(),!n||t[n]&&E[n]||("set-cookie"===n?t[n]?t[n].push(i):t[n]=[i]:t[n]=t[n]?t[n]+", "+i:i)})),t})(e),t);else if(r.a.isHeaders(e))for(const[t,i]of e.entries())s(i,t,n);else null!=e&&s(t,e,n);return this}get(e,t){if(e=x(e)){const n=r.a.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=n.exec(e);)t[i[1]]=i[2];return t}(e);if(r.a.isFunction(t))return t.call(this,e,n);if(r.a.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=x(e)){const n=r.a.findKey(this,e);return!(!n||void 0===this[n]||t&&!R(0,this[n],n,t))}return!1}delete(e,t){const n=this;let i=!1;function s(e){if(e=x(e)){const s=r.a.findKey(n,e);!s||t&&!R(0,n[s],s,t)||(delete n[s],i=!0)}}return r.a.isArray(e)?e.forEach(s):s(e),i}clear(e){const t=Object.keys(this);let n=t.length,i=!1;for(;n--;){const r=t[n];e&&!R(0,this[r],r,e,!0)||(delete this[r],i=!0)}return i}normalize(e){const t=this,n={};return r.a.forEach(this,(i,s)=>{const o=r.a.findKey(n,s);if(o)return t[o]=C(i),void delete t[s];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(s):String(s).trim();a!==s&&delete t[s],t[a]=C(i),n[a]=!0}),this}concat(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.constructor.concat(this,...t)}toJSON(e){const t=Object.create(null);return r.a.forEach(this,(n,i)=>{null!=n&&!1!==n&&(t[i]=e&&r.a.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(e=>{let[t,n]=e;return t+": "+n}).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e){const t=new this(e);for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return i.forEach(e=>t.set(e)),t}static accessor(e){const t=(this[N]=this[N]={accessors:{}}).accessors,n=this.prototype;function i(e){const i=x(e);t[i]||(!function(e,t){const n=r.a.toCamelCase(" "+t);["get","set","has"].forEach(i=>{Object.defineProperty(e,i+n,{value:function(e,n,r){return this[i].call(this,t,e,n,r)},configurable:!0})})}(n,e),t[i]=!0)}return r.a.isArray(e)?e.forEach(i):i(e),this}}O.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),r.a.reduceDescriptors(O.prototype,(e,t)=>{let{value:n}=e,i=t[0].toUpperCase()+t.slice(1);return{get:()=>n,set(e){this[i]=e}}}),r.a.freezeMethods(O);var k=O;function P(e,t){const n=this||A,i=t||n,s=k.from(i.headers);let o=i.data;return r.a.forEach(e,(function(e){o=e.call(n,o,s.normalize(),t?t.status:void 0)})),s.normalize(),o}function j(e){return!(!e||!e.__CANCEL__)}function M(e,t,n){f.a.call(this,null==e?"canceled":e,f.a.ERR_CANCELED,t,n),this.name="CanceledError"}r.a.inherits(M,f.a,{__CANCEL__:!0});var L=M,D=n(42);function F(e,t,n){const i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(new f.a("Request failed with status code "+n.status,[f.a.ERR_BAD_REQUEST,f.a.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}var B=function(e,t){e=e||10;const n=new Array(e),i=new Array(e);let r,s=0,o=0;return t=void 0!==t?t:1e3,function(a){const c=Date.now(),l=i[o];r||(r=c),n[s]=a,i[s]=c;let u=o,d=0;for(;u!==s;)d+=n[u++],u%=e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),c-r<t)return;const h=l&&c-l;return h?Math.round(1e3*d/h):void 0}};var q=function(e,t){let n,i,r=0,s=1e3/t;const o=function(t){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now();r=s,n=null,i&&(clearTimeout(i),i=null),e.apply(null,t)};return[function(){const e=Date.now(),t=e-r;for(var a=arguments.length,c=new Array(a),l=0;l<a;l++)c[l]=arguments[l];t>=s?o(c,e):(n=c,i||(i=setTimeout(()=>{i=null,o(n)},s-t)))},()=>n&&o(n)]};const U=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,i=0;const r=B(50,250);return q(n=>{const s=n.loaded,o=n.lengthComputable?n.total:void 0,a=s-i,c=r(a);i=s;e({loaded:s,total:o,progress:o?s/o:void 0,bytes:a,rate:c||void 0,estimated:c&&o&&s<=o?(o-s)/c:void 0,event:n,lengthComputable:null!=o,[t?"download":"upload"]:!0})},n)},z=(e,t)=>{const n=null!=e;return[i=>t[0]({lengthComputable:n,total:e,loaded:i}),t[1]]},J=e=>function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return r.a.asap(()=>e(...n))};var G=w.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function i(n){let i=n;return e&&(t.setAttribute("href",i),i=t.href),t.setAttribute("href",i),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=i(window.location.href),function(e){const t=r.a.isString(e)?i(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0},H=w.hasStandardBrowserEnv?{write(e,t,n,i,s,o){const a=[e+"="+encodeURIComponent(t)];r.a.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),r.a.isString(i)&&a.push("path="+i),r.a.isString(s)&&a.push("domain="+s),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function V(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const W=e=>e instanceof k?{...e}:e;function $(e,t){t=t||{};const n={};function i(e,t,n){return r.a.isPlainObject(e)&&r.a.isPlainObject(t)?r.a.merge.call({caseless:n},e,t):r.a.isPlainObject(t)?r.a.merge({},t):r.a.isArray(t)?t.slice():t}function s(e,t,n){return r.a.isUndefined(t)?r.a.isUndefined(e)?void 0:i(void 0,e,n):i(e,t,n)}function o(e,t){if(!r.a.isUndefined(t))return i(void 0,t)}function a(e,t){return r.a.isUndefined(t)?r.a.isUndefined(e)?void 0:i(void 0,e):i(void 0,t)}function c(n,r,s){return s in t?i(n,r):s in e?i(void 0,n):void 0}const l={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:c,headers:(e,t)=>s(W(e),W(t),!0)};return r.a.forEach(Object.keys(Object.assign({},e,t)),(function(i){const o=l[i]||s,a=o(e[i],t[i],i);r.a.isUndefined(a)&&o!==c||(n[i]=a)})),n}var Q=e=>{const t=$({},e);let n,{data:i,withXSRFToken:s,xsrfHeaderName:o,xsrfCookieName:a,headers:c,auth:l}=t;if(t.headers=c=k.from(c),t.url=h(V(t.baseURL,t.url),e.params,e.paramsSerializer),l&&c.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),r.a.isFormData(i))if(w.hasStandardBrowserEnv||w.hasStandardBrowserWebWorkerEnv)c.setContentType(void 0);else if(!1!==(n=c.getContentType())){const[e,...t]=n?n.split(";").map(e=>e.trim()).filter(Boolean):[];c.setContentType([e||"multipart/form-data",...t].join("; "))}if(w.hasStandardBrowserEnv&&(s&&r.a.isFunction(s)&&(s=s(t)),s||!1!==s&&G(t.url))){const e=o&&a&&H.read(a);e&&c.set(o,e)}return t};var K="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const i=Q(e);let s=i.data;const o=k.from(i.headers).normalize();let a,c,l,u,d,{responseType:h,onUploadProgress:p,onDownloadProgress:g}=i;function y(){u&&u(),d&&d(),i.cancelToken&&i.cancelToken.unsubscribe(a),i.signal&&i.signal.removeEventListener("abort",a)}let v=new XMLHttpRequest;function b(){if(!v)return;const i=k.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders());F((function(e){t(e),y()}),(function(e){n(e),y()}),{data:h&&"text"!==h&&"json"!==h?v.response:v.responseText,status:v.status,statusText:v.statusText,headers:i,config:e,request:v}),v=null}v.open(i.method.toUpperCase(),i.url,!0),v.timeout=i.timeout,"onloadend"in v?v.onloadend=b:v.onreadystatechange=function(){v&&4===v.readyState&&(0!==v.status||v.responseURL&&0===v.responseURL.indexOf("file:"))&&setTimeout(b)},v.onabort=function(){v&&(n(new f.a("Request aborted",f.a.ECONNABORTED,e,v)),v=null)},v.onerror=function(){n(new f.a("Network Error",f.a.ERR_NETWORK,e,v)),v=null},v.ontimeout=function(){let t=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const r=i.transitional||m;i.timeoutErrorMessage&&(t=i.timeoutErrorMessage),n(new f.a(t,r.clarifyTimeoutError?f.a.ETIMEDOUT:f.a.ECONNABORTED,e,v)),v=null},void 0===s&&o.setContentType(null),"setRequestHeader"in v&&r.a.forEach(o.toJSON(),(function(e,t){v.setRequestHeader(t,e)})),r.a.isUndefined(i.withCredentials)||(v.withCredentials=!!i.withCredentials),h&&"json"!==h&&(v.responseType=i.responseType),g&&([l,d]=U(g,!0),v.addEventListener("progress",l)),p&&v.upload&&([c,u]=U(p),v.upload.addEventListener("progress",c),v.upload.addEventListener("loadend",u)),(i.cancelToken||i.signal)&&(a=t=>{v&&(n(!t||t.type?new L(null,e,v):t),v.abort(),v=null)},i.cancelToken&&i.cancelToken.subscribe(a),i.signal&&(i.signal.aborted?a():i.signal.addEventListener("abort",a)));const _=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(i.url);_&&-1===w.protocols.indexOf(_)?n(new f.a("Unsupported protocol "+_+":",f.a.ERR_BAD_REQUEST,e)):v.send(s||null)}))};n(9);var Y=(e,t)=>{let n,i=new AbortController;const r=function(e){if(!n){n=!0,o();const t=e instanceof Error?e:this.reason;i.abort(t instanceof f.a?t:new L(t instanceof Error?t.message:t))}};let s=t&&setTimeout(()=>{r(new f.a(`timeout ${t} of ms exceeded`,f.a.ETIMEDOUT))},t);const o=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(e=>{e&&(e.removeEventListener?e.removeEventListener("abort",r):e.unsubscribe(r))}),e=null)};e.forEach(e=>e&&e.addEventListener&&e.addEventListener("abort",r));const{signal:a}=i;return a.unsubscribe=o,[a,()=>{s&&clearTimeout(s),s=null}]};const X=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let i,r=0;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},Z=(e,t,n,i,r)=>{const s=async function*(e,t,n){for await(const i of e)yield*X(ArrayBuffer.isView(i)?i:await n(String(i)),t)}(e,t,r);let o,a=0,c=e=>{o||(o=!0,i&&i(e))};return new ReadableStream({async pull(e){try{const{done:t,value:i}=await s.next();if(t)return c(),void e.close();let r=i.byteLength;if(n){let e=a+=r;n(e)}e.enqueue(new Uint8Array(i))}catch(e){throw c(e),e}},cancel:e=>(c(e),s.return())},{highWaterMark:2})},ee="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,te=ee&&"function"==typeof ReadableStream,ne=ee&&("function"==typeof TextEncoder?(ie=new TextEncoder,e=>ie.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var ie;const re=function(e){try{for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return!!e(...n)}catch(e){return!1}},se=te&&re(()=>{let e=!1;const t=new Request(w.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),oe=te&&re(()=>r.a.isReadableStream(new Response("").body)),ae={stream:oe&&(e=>e.body)};var ce;ee&&(ce=new Response,["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!ae[e]&&(ae[e]=r.a.isFunction(ce[e])?t=>t[e]():(t,n)=>{throw new f.a(`Response type '${e}' is not supported`,f.a.ERR_NOT_SUPPORT,n)})}));const le=async(e,t)=>{const n=r.a.toFiniteNumber(e.getContentLength());return null==n?(async e=>null==e?0:r.a.isBlob(e)?e.size:r.a.isSpecCompliantForm(e)?(await new Request(e).arrayBuffer()).byteLength:r.a.isArrayBufferView(e)||r.a.isArrayBuffer(e)?e.byteLength:(r.a.isURLSearchParams(e)&&(e+=""),r.a.isString(e)?(await ne(e)).byteLength:void 0))(t):n};var ue=ee&&(async e=>{let{url:t,method:n,data:i,signal:s,cancelToken:o,timeout:a,onDownloadProgress:c,onUploadProgress:l,responseType:u,headers:d,withCredentials:h="same-origin",fetchOptions:p}=Q(e);u=u?(u+"").toLowerCase():"text";let m,g,[y,v]=s||o||a?Y([s,o],a):[];const b=()=>{!m&&setTimeout(()=>{y&&y.unsubscribe()}),m=!0};let _;try{if(l&&se&&"get"!==n&&"head"!==n&&0!==(_=await le(d,i))){let e,n=new Request(t,{method:"POST",body:i,duplex:"half"});if(r.a.isFormData(i)&&(e=n.headers.get("content-type"))&&d.setContentType(e),n.body){const[e,t]=z(_,U(J(l)));i=Z(n.body,65536,e,t,ne)}}r.a.isString(h)||(h=h?"include":"omit"),g=new Request(t,{...p,signal:y,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:i,duplex:"half",credentials:h});let s=await fetch(g);const o=oe&&("stream"===u||"response"===u);if(oe&&(c||o)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=s[t]});const t=r.a.toFiniteNumber(s.headers.get("content-length")),[n,i]=c&&z(t,U(J(c),!0))||[];s=new Response(Z(s.body,65536,n,()=>{i&&i(),o&&b()},ne),e)}u=u||"text";let a=await ae[r.a.findKey(ae,u)||"text"](s,e);return!o&&b(),v&&v(),await new Promise((t,n)=>{F(t,n,{data:a,headers:k.from(s.headers),status:s.status,statusText:s.statusText,config:e,request:g})})}catch(t){if(b(),t&&"TypeError"===t.name&&/fetch/i.test(t.message))throw Object.assign(new f.a("Network Error",f.a.ERR_NETWORK,e,g),{cause:t.cause||t});throw f.a.from(t,t&&t.code,e,g)}});const de={http:D.a,xhr:K,fetch:ue};r.a.forEach(de,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});const he=e=>"- "+e,pe=e=>r.a.isFunction(e)||null===e||!1===e;var fe=e=>{e=r.a.isArray(e)?e:[e];const{length:t}=e;let n,i;const s={};for(let r=0;r<t;r++){let t;if(n=e[r],i=n,!pe(n)&&(i=de[(t=String(n)).toLowerCase()],void 0===i))throw new f.a(`Unknown adapter '${t}'`);if(i)break;s[t||"#"+r]=i}if(!i){const e=Object.entries(s).map(e=>{let[t,n]=e;return`adapter ${t} `+(!1===n?"is not supported by the environment":"is not available in the build")});let n=t?e.length>1?"since :\n"+e.map(he).join("\n"):" "+he(e[0]):"as no adapter specified";throw new f.a("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return i};function me(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new L(null,e)}function ge(e){me(e),e.headers=k.from(e.headers),e.data=P.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return fe(e.adapter||A.adapter)(e).then((function(t){return me(e),t.data=P.call(e,e.transformResponse,t),t.headers=k.from(t.headers),t}),(function(t){return j(t)||(me(e),t&&t.response&&(t.response.data=P.call(e,e.transformResponse,t.response),t.response.headers=k.from(t.response.headers))),Promise.reject(t)}))}const ye={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ye[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const ve={};ye.transitional=function(e,t,n){function i(e,t){return"[Axios v1.7.4] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,r,s)=>{if(!1===e)throw new f.a(i(r," has been removed"+(t?" in "+t:"")),f.a.ERR_DEPRECATED);return t&&!ve[r]&&(ve[r]=!0,console.warn(i(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,s)}};var be={assertOptions:function(e,t,n){if("object"!=typeof e)throw new f.a("options must be an object",f.a.ERR_BAD_OPTION_VALUE);const i=Object.keys(e);let r=i.length;for(;r-- >0;){const s=i[r],o=t[s];if(o){const t=e[s],n=void 0===t||o(t,s,e);if(!0!==n)throw new f.a("option "+s+" must be "+n,f.a.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new f.a("Unknown option "+s,f.a.ERR_BAD_OPTION)}},validators:ye};const _e=be.validators;class Se{constructor(e){this.defaults=e,this.interceptors={request:new p,response:new p}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t;Error.captureStackTrace?Error.captureStackTrace(t={}):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=$(this.defaults,t);const{transitional:n,paramsSerializer:i,headers:s}=t;void 0!==n&&be.assertOptions(n,{silentJSONParsing:_e.transitional(_e.boolean),forcedJSONParsing:_e.transitional(_e.boolean),clarifyTimeoutError:_e.transitional(_e.boolean)},!1),null!=i&&(r.a.isFunction(i)?t.paramsSerializer={serialize:i}:be.assertOptions(i,{encode:_e.function,serialize:_e.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=s&&r.a.merge(s.common,s[t.method]);s&&r.a.forEach(["delete","get","head","post","put","patch","common"],e=>{delete s[e]}),t.headers=k.concat(o,s);const a=[];let c=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(c=c&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const l=[];let u;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let d,h=0;if(!c){const e=[ge.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,l),d=e.length,u=Promise.resolve(t);h<d;)u=u.then(e[h++],e[h++]);return u}d=a.length;let p=t;for(h=0;h<d;){const e=a[h++],t=a[h++];try{p=e(p)}catch(e){t.call(this,e);break}}try{u=ge.call(this,p)}catch(e){return Promise.reject(e)}for(h=0,d=l.length;h<d;)u=u.then(l[h++],l[h++]);return u}getUri(e){return h(V((e=$(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}r.a.forEach(["delete","get","head","options"],(function(e){Se.prototype[e]=function(t,n){return this.request($(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.a.forEach(["post","put","patch"],(function(e){function t(t){return function(n,i,r){return this.request($(r||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}Se.prototype[e]=t(),Se.prototype[e+"Form"]=t(!0)}));var we=Se;class Te{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const i=new Promise(e=>{n.subscribe(e),t=e}).then(e);return i.cancel=function(){n.unsubscribe(t)},i},e((function(e,i,r){n.reason||(n.reason=new L(e,i,r),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new Te((function(t){e=t})),cancel:e}}}var Ie=Te;const Ae={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ae).forEach(e=>{let[t,n]=e;Ae[n]=t});var Ee=Ae;const Ne=function e(t){const n=new we(t),i=Object(s.a)(we.prototype.request,n);return r.a.extend(i,we.prototype,n,{allOwnKeys:!0}),r.a.extend(i,n,null,{allOwnKeys:!0}),i.create=function(n){return e($(t,n))},i}(A);Ne.Axios=we,Ne.CanceledError=L,Ne.CancelToken=Ie,Ne.isCancel=j,Ne.VERSION="1.7.4",Ne.toFormData=o.a,Ne.AxiosError=f.a,Ne.Cancel=Ne.CanceledError,Ne.all=function(e){return Promise.all(e)},Ne.spread=function(e){return function(t){return e.apply(null,t)}},Ne.isAxiosError=function(e){return r.a.isObject(e)&&!0===e.isAxiosError},Ne.mergeConfig=$,Ne.AxiosHeaders=k,Ne.formToJSON=e=>T(r.a.isHTMLForm(e)?new FormData(e):e),Ne.getAdapter=fe,Ne.HttpStatusCode=Ee,Ne.default=Ne;t.a=Ne},function(e,t,n){var i=n(216),r=n(72);(e.exports=function(e,t){return r[e]||(r[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:i?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(e,t,n){var i=n(11),r=n(45),s=i["__core-js_shared__"]||r("__core-js_shared__",{});e.exports=s},function(e,t,n){var i=n(29),r=n(18),s=n(74);e.exports=!i&&!r((function(){return 7!=Object.defineProperty(s("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){var i=n(11),r=n(25),s=i.document,o=r(s)&&r(s.createElement);e.exports=function(e){return o?s.createElement(e):{}}},function(e,t,n){var i=n(25);e.exports=function(e,t){if(!i(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!i(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var i=n(18);e.exports=!!Object.getOwnPropertySymbols&&!i((function(){return!String(Symbol())}))},function(e,t,n){var i=n(11),r=n(30),s=n(19),o=n(45),a=n(79),c=n(218),l=c.get,u=c.enforce,d=String(String).split("String");(e.exports=function(e,t,n,a){var c=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,h=!!a&&!!a.noTargetGet;"function"==typeof n&&("string"!=typeof t||s(n,"name")||r(n,"name",t),u(n).source=d.join("string"==typeof t?t:"")),e!==i?(c?!h&&e[t]&&(l=!0):delete e[t],l?e[t]=n:r(e,t,n)):l?e[t]=n:o(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&l(this).source||a(this)}))},function(e,t,n){var i=n(72),r=Function.toString;"function"!=typeof i.inspectSource&&(i.inspectSource=function(e){return r.call(e)}),e.exports=i.inspectSource},function(e,t,n){var i=n(71),r=n(48),s=i("keys");e.exports=function(e){return s[e]||(s[e]=r(e))}},function(e,t){e.exports={}},function(e,t,n){var i=n(83);e.exports=function(e){return Object(i(e))}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var i=n(50),r=Math.min;e.exports=function(e){return e>0?r(i(e),9007199254740991):0}},function(e,t,n){(function(t){var n=function(e,t,n,i){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=i,this.content=0,this.lastDrip=+new Date};n.prototype={bucketSize:1,tokensPerInterval:1,interval:1e3,parentBucket:null,content:0,lastDrip:0,removeTokens:function(e,n){var i=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?r():this.parentBucket?this.parentBucket.removeTokens(e,(function(t,s){return t?n(t,null):e>i.content?r():(i.content-=e,void n(null,Math.min(s,i.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 r(){var t=Math.ceil((e-i.content)*(i.interval/i.tokensPerInterval));return setTimeout((function(){i.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=n}).call(this,n(23))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(233),r=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 i.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,i=e*Math.pow(t,n);return Math.min(i,this.options.maxDelay)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"numOfDelayedAttempts",{get:function(){return this.attempt},enumerable:!0,configurable:!0}),e}();t.Delay=r},function(e,t,n){var i=n(29),r=n(239),s=n(76),o=n(51),a=n(75),c=n(19),l=n(73),u=Object.getOwnPropertyDescriptor;t.f=i?u:function(e,t){if(e=o(e),t=a(t,!0),l)try{return u(e,t)}catch(e){}if(c(e,t))return s(!r.f.call(e,t),e[t])}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TimeoutError=void 0;class i extends Error{constructor(e){super(e)}}t.TimeoutError=i},function(e,t,n){"use strict";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;const i=(0,n(6).__importDefault)(n(53)),r=n(267);class s{constructor(e,t){this.singles=new Set,this.ranges=[],this.mappings=new Map;const n=r.TABLE_DATA[e];this.name=e,n?(n.s&&(this.singles=new Set(n.s.split("|").map(e=>parseInt(e,32)))),n.r&&(this.ranges=n.r.split("|").map(e=>{const[t,n]=e.split(":");return[parseInt(t,32),parseInt(n,32)]})),n.m&&(this.mappings=new Map(n.m.split("|").map(e=>{const[t,n]=e.split(":"),i=n.split(";").map(e=>parseInt(e,32));return[parseInt(t,32),i]})))):t&&(this.singles=new Set(t))}contains(e){if(this.singles.has(e))return!0;let t=0,n=this.ranges.length-1;for(;t<=n;){const i=Math.floor((t+n)/2),r=this.ranges[i];if(e<r[0])n=i-1;else{if(!(e>r[1]))return!0;t=i+1}}return!1}hasMapping(e){return this.mappings.has(e)||this.contains(e)}map(e){return this.contains(e)&&!this.mappings.has(e)?String.fromCodePoint(e).toLowerCase().codePointAt(0):this.mappings.get(e)||null}}function o(e,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";const s=i.default.ucs2.decode(r);let o=[];for(const t of s){if(!n&&e.unassigned.contains(t))throw new Error("Unassigned code point: x"+t.toString(16));let i=!1;for(const n of e.mappings){if(!n.hasMapping(t))continue;i=!0;const e=n.map(t);e&&(Array.isArray(e)?o=o.concat(e):o.push(e))}i||o.push(t)}let a=o;if(e.normalize){const e=i.default.ucs2.encode(o).normalize("NFKC");a=i.default.ucs2.decode(e)}let c=!1,l=!1;for(const i of a){for(const t of e.prohibited)if(t.contains(i))throw new Error("Prohibited code point: x"+i.toString(16));if(!n&&e.unassigned.contains(i))throw new Error("Prohibited code point: x"+i.toString(16));e.bidirectional&&(c=c||t.D1.contains(i),l=l||t.D2.contains(i))}if(e.bidirectional){if(c&&l)throw new Error("String contained both LCat and RandALCat code points");if(c&&(!t.D1.contains(a[0])||!t.D1.contains(a[a.length-1])))throw new Error("String containing RandALCat code points must start and end with RandALCat code points")}return i.default.ucs2.encode(a)}t.Table=s,t.A1=new s("A.1"),t.B1=new s("B.1"),t.B2=new s("B.2"),t.B3=new s("B.3"),t.C11=new s("C.1.1"),t.C12=new s("C.1.2"),t.C21=new s("C.2.1"),t.C22=new s("C.2.2"),t.C3=new s("C.3"),t.C4=new s("C.4"),t.C5=new s("C.5"),t.C6=new s("C.6"),t.C7=new s("C.7"),t.C8=new s("C.8"),t.C9=new s("C.9"),t.D1=new s("D.1"),t.D2=new s("D.2"),t.B1.map=()=>null,t.C11.contains=e=>32===e,t.C12.map=e=>t.C12.contains(e)?32:null,t.prepare=o;const a={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){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return o(a,t,e)},t.NodePrepProhibited=new s("NodePrepProhibited",[34,38,39,47,58,60,62,64]);const c={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){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return o(c,t,e)};const l={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){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return o(l,t,e)};const u={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){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return o(u,t,e)}},function(e,t){e.exports=function(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){function n(t){return e.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(55);t.default=class{constructor(){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}addChild(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0,r=arguments.length>4?arguments[4]:void 0;const s={multiple:n||!1,name:e,selector:i,translator:t},o=this.children.get(e);if(!o){s.translator.parents.add(this),this.children.set(e,s);for(const[n]of t.importers)this.implicitChildren.has(n)||this.childrenIndex.set(n,e);return void(r&&this.implicitChildren.add(r))}const a=o.translator;o.multiple=n,i&&o.selector&&i!==o.selector&&(o.selector=void 0);for(const[n,i]of t.importers){const[r,s]=(a.typeValues.get(n)||"").split("__v__");a.updateDefinition({contexts:t.contexts,element:i.element,exporterOrdering:new Map,exporters:new Map,importerOrdering:i.fieldOrders,importers:i.fields,namespace:i.namespace,optionalNamespaces:new Map,type:r,version:s}),this.implicitChildren.has(n)||this.childrenIndex.set(n,e)}for(const[e,n]of t.exporters){const[i,r]=e.split("__v__");a.updateDefinition({contexts:t.contexts,element:n.element,exporterOrdering:n.fieldOrders,exporters:n.fields,importerOrdering:new Map,importers:new Map,namespace:n.namespace,optionalNamespaces:n.optionalNamespaces,type:i,version:r})}}addContext(e,t,n,i,r,s){t&&(e=`${e}[${t}]`);let o=this.contexts.get(e);o||(o={typeField:"",versionField:"",typeValues:new Map}),s&&(o.impliedType=r),o.typeField=n||"",o.typeValues.set(i,r),this.contexts.set(e,o)}getChild(e){const t=this.children.get(e);if(t)return t.translator}getImportKey(e){return this.childrenIndex.get(`{${e.getNamespace()}}${e.getName()}`)}updateDefinition(e){const t=`{${e.namespace}}${e.element}`,n=e.type||this.defaultType,i=e.version||this.defaultVersion,r=i?`${n}__v__${i}`:n,s=this.importers.get(t)||{element:e.element,fieldOrders:new Map,fields:new Map,namespace:e.namespace};for(const[t,n]of e.importers)s.fields.set(t,n);for(const[t,n]of e.importerOrdering)s.fieldOrders.set(t,n);this.importers.set(t,s);const o=this.exporters.get(r)||{element:e.element,fieldOrders:new Map,fields:new Map,namespace:e.namespace,optionalNamespaces:e.optionalNamespaces};for(const[t,n]of e.exporters)o.fields.set(t,n);for(const[t,n]of e.exporterOrdering)o.fieldOrders.set(t,n);for(const[t,n]of e.optionalNamespaces)o.optionalNamespaces.set(t,n);this.exporters.set(r,o);for(const[t,n]of e.contexts){const e=this.contexts.get(t)||{impliedType:void 0,typeField:n.typeField,versionField:n.versionField,typeValues:new Map};e.typeField||(e.typeField=n.typeField),e.versionField||(e.versionField=n.versionField),e.impliedType||(e.impliedType=n.impliedType);for(const[t,i]of n.typeValues)e.typeValues.set(t,i);this.contexts.set(t,e)}if(e.type)this.typeValues.set(t,r),e.typeOrder&&e.type&&this.typeOrders.set(e.type,e.typeOrder);else if(this.typeField&&!e.type){for(const[,t]of this.importers){for(const[n,i]of e.importers)t.fields.set(n,i);for(const[n,i]of e.importerOrdering)t.fieldOrders.set(n,i)}for(const[,t]of this.exporters){for(const[n,i]of e.exporters)t.fields.set(n,i);for(const[n,i]of e.exporterOrdering)t.fieldOrders.set(n,i)}}}replaceWith(e){for(const[t,n]of this.children)e.children.set(t,n);for(const[t,n]of this.childrenIndex)e.childrenIndex.set(t,n);for(const[t,n]of this.contexts)e.contexts.set(t,n);for(const t of this.implicitChildren)e.implicitChildren.add(t);for(const t of this.parents)for(const n of t.children.values())n.translator===this&&(n.translator=e);this.parents=new Set}import(e,t){const n=`{${e.getNamespace()}}${e.getName()}`,i={},r=this.importers.get(n);if(!r)return;const s=this.typeValues.get(n)||"",[o,a]=s.split("__v__"),c=t.path||"";let l;if(t.pathSelector&&(l=this.contexts.get(`${c}[${t.pathSelector}]`)),l||(l=this.contexts.get(c)),l){if(!l.impliedType){const e=l.typeValues.get(n)||"";e&&(i[l.typeField]=e)}}else this.typeField&&o&&o!==this.defaultType&&(i[this.typeField]=o);this.versionField&&a&&a!==this.defaultVersion&&(i[this.versionField]=a);const u={...t,data:i,importer:r,lang:(e.getAttribute("xml:lang")||t.lang||"").toLowerCase(),pathSelector:o,translator:this},d=[...r.fieldOrders.entries()].sort((e,t)=>e[1]>t[1]?-1:e[1]<t[1]?1:0),h=d.filter(e=>e[1]>=0),p=d.filter(e=>e[1]<0);for(const[n]of h){const s=r.fields.get(n);u.path=`${t.path}.${n}`;const o=s(e,u);null!=o&&(i[n]=o)}for(const n of e.children){if("string"==typeof n)continue;const e=`{${n.getNamespace()}}${n.getName()}`,r=this.childrenIndex.get(e);if(!r)continue;u.path=`${t.path}.${r}`;const{translator:s,multiple:a,selector:c}=this.children.get(r);if(!c||c===o){const e=s.import(n,u);void 0!==e&&(a?(i[r]||(i[r]=[]),i[r].push(e)):i[r]?i[r]=s.resolveCollision(i[r],e):i[r]=e)}}for(const[n]of p){const s=r.fields.get(n);u.path=`${t.path}.${n}`;const o=s(e,u);null!=o&&(i[n]=o)}return i}export(e,t){if(!e)return;let n=this.defaultType,r=this.defaultVersion;const s=t.path||"";let o;t.pathSelector&&(o=this.contexts.get(`${s}[${t.pathSelector}]`)),o||(o=this.contexts.get(s)),o?n=o.impliedType||e[o.typeField]||this.defaultType:this.typeField&&(n=e[this.typeField]||this.defaultType),this.versionField&&(r=e[this.versionField]||this.defaultVersion);const a=r?`${n}__v__${r}`:n,c=this.exporters.get(a);if(!c)return;const l=(0,i.createElement)(c.namespace,c.element,t.namespace,t.element);t.element&&(l.parent=t.element);for(const[e,t]of c.optionalNamespaces)l.addOptionalNamespace(e,t);const u={...t,data:e,element:l,exporter:c,lang:(e[this.languageField]||t.lang||"").toLowerCase(),namespace:l.getDefaultNamespace(),pathSelector:n,translator:this},d=c.fields.get(this.languageField);d&&d(l,e[this.languageField],t);const h=Object.keys(e);h.sort((e,t)=>(c.fieldOrders.get(e)||1e5)-(c.fieldOrders.get(t)||1e5));for(const i of h){if(i===this.languageField)continue;const r=e[i],s=c.fields.get(i);if(s){s(l,r,u);continue}const o=this.children.get(i);if(!o)continue;u.path=`${t.path?t.path+".":""}${i}`;const{translator:a,multiple:d,selector:h}=o;if(!h||h===n){let e;e=d?null!=r?r:[]:[r];for(const t of e){const e=a.export(t,u);e&&l.appendChild(e)}}}return l}resolveCollision(e,t){return(this.typeOrders.get(e[this.typeField]||this.defaultType)||0)<=(this.typeOrders.get(t[this.typeField]||this.defaultType)||0)?e:t}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Hash=void 0;const i=n(6),r=(0,i.__importDefault)(n(31));t.Hash=r.default;const s=(0,i.__importDefault)(n(282)),o=(0,i.__importDefault)(n(283)),a=(0,i.__importDefault)(n(284)),c=(0,i.__importDefault)(n(285)),l=new Map([["md5",s.default],["sha-1",o.default],["sha-256",a.default],["sha-512",c.default],["sha1",o.default],["sha256",a.default],["sha512",c.default]]);t.default=function(e){e=e.toLowerCase();const t=l.get(e);if(t)return new t;throw new Error("Unsupported hash algorithm: "+e)}},function(e,t,n){"use strict";(function(t,i){n(9);var r,s=n(36);e.exports=g,g.ReadableState=m;n(10).EventEmitter;var o=function(e,t){return e.listeners(t).length},a=n(10).EventEmitter,c=n(14).Buffer,l=t.Uint8Array||function(){};var u,d=Object.create(n(32)),h=n(280).BufferList,p=n(95);d.inherits(g,a);var f=["error","close","destroy","pause","resume"];function m(e,t){e=e||{};var i=t instanceof(r=r||n(27));this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var s=e.highWaterMark,o=e.readableHighWaterMark,a=this.objectMode?16:16384;this.highWaterMark=s||0===s?s:i&&(o||0===o)?o:a,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new h,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(u||(u=n(97).StringDecoder),this.decoder=new u(e.encoding),this.encoding=e.encoding)}function g(e){if(r=r||n(27),!(this instanceof g))return new g(e);this._readableState=new m(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),a.call(this)}function y(e,t,n,i,r){var s,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,_(e)}(e,o)):(r||(s=function(e,t){var n;i=t,c.isBuffer(i)||i instanceof l||"string"==typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk"));var i;return n}(o,t)),s?e.emit("error",s):o.objectMode||t&&t.length>0?("string"==typeof t||o.objectMode||Object.getPrototypeOf(t)===c.prototype||(t=function(e){return c.from(e)}(t)),i?o.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):v(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?v(e,o,t,!1):w(e,o)):v(e,o,t,!1))):i||(o.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(o)}function v(e,t,n,i){t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,i?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&_(e)),w(e,t)}Object.defineProperty(g.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),g.prototype.destroy=p.destroy,g.prototype._undestroy=p.undestroy,g.prototype._destroy=function(e,t){this.push(null),t(e)},g.prototype.push=function(e,t){var n,i=this._readableState;return i.objectMode?n=!0:"string"==typeof e&&((t=t||i.defaultEncoding)!==i.encoding&&(e=c.from(e,t),t=""),n=!0),y(this,e,t,!1,n)},g.prototype.unshift=function(e){return y(this,e,null,!0,!1)},g.prototype.isPaused=function(){return!1===this._readableState.flowing},g.prototype.setEncoding=function(e){return u||(u=n(97).StringDecoder),this._readableState.decoder=new u(e),this._readableState.encoding=e,this};function b(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 _(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(t.flowing,t.emittedReadable=!0,t.sync?s.nextTick(S,e):S(e))}function S(e){e.emit("readable"),E(e)}function w(e,t){t.readingMore||(t.readingMore=!0,s.nextTick(T,e,t))}function T(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}function I(e){e.read(0)}function A(e,t){t.reading||e.read(0),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),E(e),t.flowing&&!t.reading&&e.read(0)}function E(e){var t=e._readableState;for(t.flowing;t.flowing&&null!==e.read(););}function N(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 i;e<t.head.data.length?(i=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):i=e===t.head.data.length?t.shift():n?function(e,t){var n=t.head,i=1,r=n.data;e-=r.length;for(;n=n.next;){var s=n.data,o=e>s.length?s.length:e;if(o===s.length?r+=s:r+=s.slice(0,e),0===(e-=o)){o===s.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=s.slice(o));break}++i}return t.length-=i,r}(e,t):function(e,t){var n=c.allocUnsafe(e),i=t.head,r=1;i.data.copy(n),e-=i.data.length;for(;i=i.next;){var s=i.data,o=e>s.length?s.length:e;if(s.copy(n,n.length-e,0,o),0===(e-=o)){o===s.length?(++r,i.next?t.head=i.next:t.head=t.tail=null):(t.head=i,i.data=s.slice(o));break}++r}return t.length-=r,n}(e,t);return i}(e,t.buffer,t.decoder),n);var n}function x(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,s.nextTick(C,t,e))}function C(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function R(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1}g.prototype.read=function(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 t.length,t.ended,0===t.length&&t.ended?x(this):_(this),null;if(0===(e=b(e,t))&&t.ended)return 0===t.length&&x(this),null;var i,r=t.needReadable;return(0===t.length||t.length-e<t.highWaterMark)&&(r=!0),t.ended||t.reading?r=!1:r&&(t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=b(n,t))),null===(i=e>0?N(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&x(this)),null!==i&&this.emit("data",i),i},g.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},g.prototype.pipe=function(e,t){var n=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=e;break;case 1:r.pipes=[r.pipes,e];break;default:r.pipes.push(e)}r.pipesCount+=1,r.pipesCount;var a=(!t||!1!==t.end)&&e!==i.stdout&&e!==i.stderr?l:y;function c(t,i){t===n&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,e.removeListener("close",m),e.removeListener("finish",g),e.removeListener("drain",u),e.removeListener("error",f),e.removeListener("unpipe",c),n.removeListener("end",l),n.removeListener("end",y),n.removeListener("data",p),d=!0,!r.awaitDrain||e._writableState&&!e._writableState.needDrain||u())}function l(){e.end()}r.endEmitted?s.nextTick(a):n.once("end",a),e.on("unpipe",c);var u=function(e){return function(){var t=e._readableState;t.awaitDrain,t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&o(e,"data")&&(t.flowing=!0,E(e))}}(n);e.on("drain",u);var d=!1;var h=!1;function p(t){h=!1,!1!==e.write(t)||h||((1===r.pipesCount&&r.pipes===e||r.pipesCount>1&&-1!==R(r.pipes,e))&&!d&&(n._readableState.awaitDrain,n._readableState.awaitDrain++,h=!0),n.pause())}function f(t){y(),e.removeListener("error",f),0===o(e,"error")&&e.emit("error",t)}function m(){e.removeListener("finish",g),y()}function g(){e.removeListener("close",m),y()}function y(){n.unpipe(e)}return n.on("data",p),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",f),e.once("close",m),e.once("finish",g),e.emit("pipe",n),r.flowing||n.resume(),e},g.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 i=t.pipes,r=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var s=0;s<r;s++)i[s].emit("unpipe",this,n);return this}var o=R(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},g.prototype.on=function(e,t){var n=a.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var i=this._readableState;i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.emittedReadable=!1,i.reading?i.length&&_(this):s.nextTick(I,this))}return n},g.prototype.addListener=g.prototype.on,g.prototype.resume=function(){var e=this._readableState;return e.flowing||(e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,s.nextTick(A,e,t))}(this,e)),this},g.prototype.pause=function(){return this._readableState.flowing,!1!==this._readableState.flowing&&(this._readableState.flowing=!1,this.emit("pause")),this},g.prototype.wrap=function(e){var t=this,n=this._readableState,i=!1;for(var r in e.on("end",(function(){if(n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(r){(n.decoder&&(r=n.decoder.write(r)),n.objectMode&&null==r)||(n.objectMode||r&&r.length)&&(t.push(r)||(i=!0,e.pause()))})),e)void 0===this[r]&&"function"==typeof e[r]&&(this[r]=function(t){return function(){return e[t].apply(e,arguments)}}(r));for(var s=0;s<f.length;s++)e.on(f[s],this.emit.bind(this,f[s]));return this._read=function(t){i&&(i=!1,e.resume())},this},Object.defineProperty(g.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),g._fromList=N}).call(this,n(15),n(23))},function(e,t,n){"use strict";var i=n(36);function r(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var n=this,s=this._readableState&&this._readableState.destroyed,o=this._writableState&&this._writableState.destroyed;return s||o?(t?t(e):!e||this._writableState&&this._writableState.errorEmitted||i.nextTick(r,this,e),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?(i.nextTick(r,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){n(9);var i=n(36);function r(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var i=e.entry;e.entry=null;for(;i;){var r=i.callback;t.pendingcb--,r(n),i=i.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}e.exports=m;var s,o=i.nextTick;m.WritableState=f;var a=Object.create(n(32)),c=n(10).EventEmitter,l=n(14).Buffer,u=t.Uint8Array||function(){};var d,h=n(95);function p(){}function f(e,t){s=s||n(27),e=e||{};var a=t instanceof s;this.objectMode=!!e.objectMode,a&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var c=e.highWaterMark,l=e.writableHighWaterMark,u=this.objectMode?16:16384;this.highWaterMark=c||0===c?c:a&&(l||0===l)?l:u,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 d=!1===e.decodeStrings;this.decodeStrings=!d,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,s=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,s){--t.pendingcb,n?(i.nextTick(s,r),i.nextTick(S,e,t),e._writableState.errorEmitted=!0,e.emit("error",r)):(s(r),e._writableState.errorEmitted=!0,e.emit("error",r),S(e,t))}(e,n,r,t,s);else{var a=b(n);a||n.corked||n.bufferProcessing||!n.bufferedRequest||v(e,n),r?o(y,e,n,a,s):y(e,n,a,s)}}(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 r(this)}function m(e){if(s=s||n(27),!(d.call(m,this)||this instanceof s))return new m(e);this._writableState=new f(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)),c.call(this)}function g(e,t,n,i,r,s,o){t.writelen=i,t.writecb=o,t.writing=!0,t.sync=!0,n?e._writev(r,t.onwrite):e._write(r,s,t.onwrite),t.sync=!1}function y(e,t,n,i){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,i(),S(e,t)}function v(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var i=t.bufferedRequestCount,s=new Array(i),o=t.corkedRequestsFree;o.entry=n;for(var a=0,c=!0;n;)s[a]=n,n.isBuf||(c=!1),n=n.next,a+=1;s.allBuffers=c,g(e,t,!0,t.length,s,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new r(t),t.bufferedRequestCount=0}else{for(;n;){var l=n.chunk,u=n.encoding,d=n.callback;if(g(e,t,!1,t.objectMode?1:l.length,l,u,d),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function b(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function _(e,t){e._final((function(n){t.pendingcb--,n&&e.emit("error",n),t.prefinished=!0,e.emit("prefinish"),S(e,t)}))}function S(e,t){var n=b(t);return n&&(!function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,i.nextTick(_,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),n}a.inherits(m,c),f.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(f.prototype,"buffer",{get:function(){return this.getBuffer()}})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(d=Function.prototype[Symbol.hasInstance],Object.defineProperty(m,Symbol.hasInstance,{value:function(e){return!!d.call(this,e)||this===m&&(e&&e._writableState instanceof f)}})):d=function(e){return e instanceof this},m.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},m.prototype.write=function(e,t,n){var r,s=this._writableState,o=!1,a=!s.objectMode&&(r=e,l.isBuffer(r)||r instanceof u);return a&&!l.isBuffer(e)&&(e=function(e){return l.from(e)}(e)),"function"==typeof t&&(n=t,t=null),a?t="buffer":t||(t=s.defaultEncoding),"function"!=typeof n&&(n=p),s.ended?function(e,t){var n=new Error("write after end");e.emit("error",n),i.nextTick(t,n)}(this,n):(a||function(e,t,n,r){var s=!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),i.nextTick(r,o),s=!1),s}(this,s,e,n))&&(s.pendingcb++,o=function(e,t,n,i,r,s){if(!n){var o=function(e,t,n){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=l.from(t,n));return t}(t,i,r);i!==o&&(n=!0,r="buffer",i=o)}var a=t.objectMode?1:i.length;t.length+=a;var c=t.length<t.highWaterMark;c||(t.needDrain=!0);if(t.writing||t.corked){var u=t.lastBufferedRequest;t.lastBufferedRequest={chunk:i,encoding:r,isBuf:n,callback:s,next:null},u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else g(e,t,!1,a,i,r,s);return c}(this,s,a,e,t,n)),o},m.prototype.cork=function(){this._writableState.corked++},m.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||v(this,e))},m.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(m.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),m.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},m.prototype._writev=null,m.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,S(e,t),n&&(t.finished?i.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,r,n)},Object.defineProperty(m.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),m.prototype.destroy=h.destroy,m.prototype._undestroy=h.undestroy,m.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,n(15))},function(e,t,n){"use strict";var i=n(14).Buffer,r=i.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 s(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&&(i.isEncoding===r||!r(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=c,this.end=l,t=4;break;case"utf8":this.fillLast=a,t=4;break;case"base64":this.text=u,this.end=d,t=3;break;default:return this.write=h,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=i.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 a(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 i=n.charCodeAt(n.length-1);if(i>=55296&&i<=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 l(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 u(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 d(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function h(e){return e.toString(this.encoding)}function p(e){return e&&e.length?this.write(e):""}t.StringDecoder=s,s.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||""},s.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},s.prototype.text=function(e,t){var n=function(e,t,n){var i=t.length-1;if(i<n)return 0;var r=o(t[i]);if(r>=0)return r>0&&(e.lastNeed=r-1),r;if(--i<n||-2===r)return 0;if((r=o(t[i]))>=0)return r>0&&(e.lastNeed=r-2),r;if(--i<n||-2===r)return 0;if((r=o(t[i]))>=0)return r>0&&(2===r?r=0:e.lastNeed=r-3),r;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var i=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,i),e.toString("utf8",t,i)},s.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=s;var i=n(27);function r(e,t){var n=this._transformState;n.transforming=!1;var i=n.writecb;if(!i)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=t&&this.push(t),i(e);var r=this._readableState;r.reading=!1,(r.needReadable||r.length<r.highWaterMark)&&this._read(r.highWaterMark)}function s(e){if(!(this instanceof s))return new s(e);i.call(this,e),this._transformState={afterTransform:r.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",o)}function o(){var e=this;"function"==typeof this._flush?this._flush((function(t,n){a(e,t,n)})):a(this,null,null)}function a(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)}Object.create(n(32)).inherits(s,i),s.prototype.push=function(e,t){return this._transformState.needTransform=!1,i.prototype.push.call(this,e,t)},s.prototype._transform=function(e,t,n){throw new Error("_transform() is not implemented")},s.prototype._write=function(e,t,n){var i=this._transformState;if(i.writecb=n,i.writechunk=e,i.writeencoding=t,!i.transforming){var r=this._readableState;(i.needTransform||r.needReadable||r.length<r.highWaterMark)&&this._read(r.highWaterMark)}},s.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},s.prototype._destroy=function(e,t){var n=this;i.prototype._destroy.call(this,e,(function(e){t(e),n.emit("close")}))}},function(e,t,n){"use strict";n(9),Object.defineProperty(t,"__esModule",{value:!0}),t.Receiver=t.Sender=void 0;const i=n(6),r=n(10),s=(0,i.__importStar)(n(12)),o=n(8),a=n(2),c=(0,i.__importDefault)(n(60)),l=n(37),u=n(61);class d extends r.EventEmitter{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(),this.config={chunkSize:16384,hash:"sha-1",...e},this.file=void 0,this.channel=void 0,this.hash=s.createHash(this.config.hash)}send(e,t){if(this.file&&this.channel)return;this.file=e,this.channel=t,this.channel.binaryType="arraybuffer";const n=new FileReader;let i=0,r=!1;const s=()=>{if(r||i>=e.size)return;r=!0;const t=e.slice(i,i+this.config.chunkSize);n.readAsArrayBuffer(t)};t.bufferedAmountLowThreshold=8*this.config.chunkSize,t.onbufferedamountlow=()=>{s()},n.addEventListener("load",t=>{const n=t.target.result;r=!1,i+=n.byteLength,this.channel.send(n),this.hash.update(new Uint8Array(n)),this.emit("progress",i,e.size,n),i<e.size?this.channel.bufferedAmount<=this.channel.bufferedAmountLowThreshold&&s():(this.emit("progress",e.size,e.size,null),this.emit("sentFile",{algorithm:this.config.hash,name:e.name,size:e.size,value:this.hash.digest()}))}),s()}}t.Sender=d;class h extends r.EventEmitter{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(),this.config={hash:"sha-1",...e},this.receiveBuffer=[],this.received=0,this.channel=void 0,this.hash=s.createHash(this.config.hash)}receive(e,t){this.metadata=e,this.channel=t,this.channel.binaryType="arraybuffer",this.channel.onmessage=e=>{const t=e.data.byteLength;this.received+=t,this.receiveBuffer.push(e.data),e.data&&this.hash.update(new Uint8Array(e.data)),this.emit("progress",this.received,this.metadata.size,e.data),this.received===this.metadata.size?(this.metadata.actualhash=this.hash.digest("hex"),this.emit("receivedFile",new Blob(this.receiveBuffer),this.metadata),this.receiveBuffer=[]):this.received>this.metadata.size&&(console.error("received more than expected, discarding..."),this.receiveBuffer=[])}}}t.Receiver=h;class p extends c.default{constructor(e){super(e),this.sender=void 0,this.receiver=void 0,this.file=void 0}async start(e,t){if(t=t||(()=>{}),!e||"function"==typeof e)throw new Error("File object required");this.state="pending",this.role="initiator",this.file=e,this.sender=new d,this.sender.on("progress",(e,t)=>{this._log("info","Send progress "+e+"/"+t)}),this.sender.on("sentFile",e=>{this._log("info","Sent file",e.name),this.send(o.JingleAction.SessionInfo,{info:{creator:o.JingleSessionRole.Initiator,file:{hashes:[{algorithm:e.algorithm,value:e.value}]},infoType:o.JINGLE_INFO_CHECKSUM_5,name:this.contentName}}),this.parent.emit("sentFile",this,e)}),this.channel=this.pc.createDataChannel("filetransfer",{ordered:!0}),this.channel.onopen=()=>{this.sender.send(this.file,this.channel)};try{await this.processLocal(o.JingleAction.SessionInitiate,async()=>{const t=await this.pc.createOffer({offerToReceiveAudio:!1,offerToReceiveVideo:!1}),n=(0,l.importFromSDP)(t.sdp),i=(0,u.convertIntermediateToRequest)(n,this.role,this.transportType);this.contentName=i.contents[0].name,i.sid=this.sid,i.action=o.JingleAction.SessionInitiate,i.contents[0].application={applicationType:a.NS_JINGLE_FILE_TRANSFER_5,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),await this.pc.setLocalDescription(t)}),t()}catch(e){return this._log("error","Could not create WebRTC offer",e),this.end("failed-application",!0)}}async accept(e){this._log("info","Accepted incoming session"),this.role="responder",this.state="active",e=e||(()=>{});try{await this.processLocal(o.JingleAction.SessionAccept,async()=>{const e=await this.pc.createAnswer(),t=(0,l.importFromSDP)(e.sdp),n=(0,u.convertIntermediateToRequest)(t,this.role,this.transportType);n.sid=this.sid,n.action="session-accept";for(const e of n.contents)e.creator="initiator";this.contentName=n.contents[0].name,this.send("session-accept",n),await this.pc.setLocalDescription(e),await this.processBufferedCandidates()}),e()}catch(e){this._log("error","Could not create WebRTC answer",e),this.end("failed-application")}}async onSessionInitiate(e,t){this._log("info","Initiating incoming session"),this.role="responder",this.state="pending",this.transportType=e.contents[0].transport.transportType;const n=(0,u.convertRequestToIntermediate)(e,this.peerRole),i=(0,l.exportToSDP)(n),r=e.contents[0].application,s=r.file.hashesUsed?r.file.hashesUsed:r.file.hashes||[];this.receiver=new h({hash:s[0]&&s[0].algorithm}),this.receiver.on("progress",(e,t)=>{this._log("info","Receive progress "+e+"/"+t)}),this.receiver.on("receivedFile",e=>{this.receivedFile=e,this._maybeReceivedFile()}),this.receiver.metadata=r.file,this.pc.addEventListener("datachannel",e=>{this.channel=e.channel,this.receiver.receive(this.receiver.metadata,e.channel)});try{await this.pc.setRemoteDescription({type:"offer",sdp:i}),await this.processBufferedCandidates(),t()}catch(e){this._log("error","Could not create WebRTC answer",e),t({condition:"general-error"})}}onSessionInfo(e,t){const n=e.info;n&&n.file&&n.file.hashes&&(this.receiver.metadata.hashes=n.file.hashes,this.receiver.metadata.actualhash&&this._maybeReceivedFile(),t())}_maybeReceivedFile(){if(this.receiver.metadata.hashes&&this.receiver.metadata.hashes.length){for(const e of this.receiver.metadata.hashes||[])if(e.value&&e.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");this._log("error","File hash does not match"),this.end("media-error")}}}t.default=p},function(e,t,n){"use strict";const i={generateIdentifier:function(){return Math.random().toString(36).substring(2,12)}};i.localCName=i.generateIdentifier(),i.splitLines=function(e){return e.trim().split("\n").map(e=>e.trim())},i.splitSections=function(e){return e.split("\nm=").map((e,t)=>(t>0?"m="+e:e).trim()+"\r\n")},i.getDescription=function(e){const t=i.splitSections(e);return t&&t[0]},i.getMediaSections=function(e){const t=i.splitSections(e);return t.shift(),t},i.matchPrefix=function(e,t){return i.splitLines(e).filter(e=>0===e.indexOf(t))},i.parseCandidate=function(e){let t;t=0===e.indexOf("a=candidate:")?e.substring(12).split(" "):e.substring(10).split(" ");const n={foundation:t[0],component:{1:"rtp",2:"rtcp"}[t[1]]||t[1],protocol:t[2].toLowerCase(),priority:parseInt(t[3],10),ip:t[4],address:t[4],port:parseInt(t[5],10),type:t[7]};for(let e=8;e<t.length;e+=2)switch(t[e]){case"raddr":n.relatedAddress=t[e+1];break;case"rport":n.relatedPort=parseInt(t[e+1],10);break;case"tcptype":n.tcpType=t[e+1];break;case"ufrag":n.ufrag=t[e+1],n.usernameFragment=t[e+1];break;default:void 0===n[t[e]]&&(n[t[e]]=t[e+1])}return n},i.writeCandidate=function(e){const t=[];t.push(e.foundation);const n=e.component;"rtp"===n?t.push(1):"rtcp"===n?t.push(2):t.push(n),t.push(e.protocol.toUpperCase()),t.push(e.priority),t.push(e.address||e.ip),t.push(e.port);const i=e.type;return t.push("typ"),t.push(i),"host"!==i&&e.relatedAddress&&e.relatedPort&&(t.push("raddr"),t.push(e.relatedAddress),t.push("rport"),t.push(e.relatedPort)),e.tcpType&&"tcp"===e.protocol.toLowerCase()&&(t.push("tcptype"),t.push(e.tcpType)),(e.usernameFragment||e.ufrag)&&(t.push("ufrag"),t.push(e.usernameFragment||e.ufrag)),"candidate:"+t.join(" ")},i.parseIceOptions=function(e){return e.substring(14).split(" ")},i.parseRtpMap=function(e){let t=e.substring(9).split(" ");const n={payloadType:parseInt(t.shift(),10)};return t=t[0].split("/"),n.name=t[0],n.clockRate=parseInt(t[1],10),n.channels=3===t.length?parseInt(t[2],10):1,n.numChannels=n.channels,n},i.writeRtpMap=function(e){let t=e.payloadType;void 0!==e.preferredPayloadType&&(t=e.preferredPayloadType);const n=e.channels||e.numChannels||1;return"a=rtpmap:"+t+" "+e.name+"/"+e.clockRate+(1!==n?"/"+n:"")+"\r\n"},i.parseExtmap=function(e){const t=e.substring(9).split(" ");return{id:parseInt(t[0],10),direction:t[0].indexOf("/")>0?t[0].split("/")[1]:"sendrecv",uri:t[1],attributes:t.slice(2).join(" ")}},i.writeExtmap=function(e){return"a=extmap:"+(e.id||e.preferredId)+(e.direction&&"sendrecv"!==e.direction?"/"+e.direction:"")+" "+e.uri+(e.attributes?" "+e.attributes:"")+"\r\n"},i.parseFmtp=function(e){const t={};let n;const i=e.substring(e.indexOf(" ")+1).split(";");for(let e=0;e<i.length;e++)n=i[e].trim().split("="),t[n[0].trim()]=n[1];return t},i.writeFmtp=function(e){let t="",n=e.payloadType;if(void 0!==e.preferredPayloadType&&(n=e.preferredPayloadType),e.parameters&&Object.keys(e.parameters).length){const i=[];Object.keys(e.parameters).forEach(t=>{void 0!==e.parameters[t]?i.push(t+"="+e.parameters[t]):i.push(t)}),t+="a=fmtp:"+n+" "+i.join(";")+"\r\n"}return t},i.parseRtcpFb=function(e){const t=e.substring(e.indexOf(" ")+1).split(" ");return{type:t.shift(),parameter:t.join(" ")}},i.writeRtcpFb=function(e){let t="",n=e.payloadType;return void 0!==e.preferredPayloadType&&(n=e.preferredPayloadType),e.rtcpFeedback&&e.rtcpFeedback.length&&e.rtcpFeedback.forEach(e=>{t+="a=rtcp-fb:"+n+" "+e.type+(e.parameter&&e.parameter.length?" "+e.parameter:"")+"\r\n"}),t},i.parseSsrcMedia=function(e){const t=e.indexOf(" "),n={ssrc:parseInt(e.substring(7,t),10)},i=e.indexOf(":",t);return i>-1?(n.attribute=e.substring(t+1,i),n.value=e.substring(i+1)):n.attribute=e.substring(t+1),n},i.parseSsrcGroup=function(e){const t=e.substring(13).split(" ");return{semantics:t.shift(),ssrcs:t.map(e=>parseInt(e,10))}},i.getMid=function(e){const t=i.matchPrefix(e,"a=mid:")[0];if(t)return t.substring(6)},i.parseFingerprint=function(e){const t=e.substring(14).split(" ");return{algorithm:t[0].toLowerCase(),value:t[1].toUpperCase()}},i.getDtlsParameters=function(e,t){return{role:"auto",fingerprints:i.matchPrefix(e+t,"a=fingerprint:").map(i.parseFingerprint)}},i.writeDtlsParameters=function(e,t){let n="a=setup:"+t+"\r\n";return e.fingerprints.forEach(e=>{n+="a=fingerprint:"+e.algorithm+" "+e.value+"\r\n"}),n},i.parseCryptoLine=function(e){const t=e.substring(9).split(" ");return{tag:parseInt(t[0],10),cryptoSuite:t[1],keyParams:t[2],sessionParams:t.slice(3)}},i.writeCryptoLine=function(e){return"a=crypto:"+e.tag+" "+e.cryptoSuite+" "+("object"==typeof e.keyParams?i.writeCryptoKeyParams(e.keyParams):e.keyParams)+(e.sessionParams?" "+e.sessionParams.join(" "):"")+"\r\n"},i.parseCryptoKeyParams=function(e){if(0!==e.indexOf("inline:"))return null;const t=e.substring(7).split("|");return{keyMethod:"inline",keySalt:t[0],lifeTime:t[1],mkiValue:t[2]?t[2].split(":")[0]:void 0,mkiLength:t[2]?t[2].split(":")[1]:void 0}},i.writeCryptoKeyParams=function(e){return e.keyMethod+":"+e.keySalt+(e.lifeTime?"|"+e.lifeTime:"")+(e.mkiValue&&e.mkiLength?"|"+e.mkiValue+":"+e.mkiLength:"")},i.getCryptoParameters=function(e,t){return i.matchPrefix(e+t,"a=crypto:").map(i.parseCryptoLine)},i.getIceParameters=function(e,t){const n=i.matchPrefix(e+t,"a=ice-ufrag:")[0],r=i.matchPrefix(e+t,"a=ice-pwd:")[0];return n&&r?{usernameFragment:n.substring(12),password:r.substring(10)}:null},i.writeIceParameters=function(e){let t="a=ice-ufrag:"+e.usernameFragment+"\r\na=ice-pwd:"+e.password+"\r\n";return e.iceLite&&(t+="a=ice-lite\r\n"),t},i.parseRtpParameters=function(e){const t={codecs:[],headerExtensions:[],fecMechanisms:[],rtcp:[]},n=i.splitLines(e)[0].split(" ");t.profile=n[2];for(let r=3;r<n.length;r++){const s=n[r],o=i.matchPrefix(e,"a=rtpmap:"+s+" ")[0];if(o){const n=i.parseRtpMap(o),r=i.matchPrefix(e,"a=fmtp:"+s+" ");switch(n.parameters=r.length?i.parseFmtp(r[0]):{},n.rtcpFeedback=i.matchPrefix(e,"a=rtcp-fb:"+s+" ").map(i.parseRtcpFb),t.codecs.push(n),n.name.toUpperCase()){case"RED":case"ULPFEC":t.fecMechanisms.push(n.name.toUpperCase())}}}i.matchPrefix(e,"a=extmap:").forEach(e=>{t.headerExtensions.push(i.parseExtmap(e))});const r=i.matchPrefix(e,"a=rtcp-fb:* ").map(i.parseRtcpFb);return t.codecs.forEach(e=>{r.forEach(t=>{e.rtcpFeedback.find(e=>e.type===t.type&&e.parameter===t.parameter)||e.rtcpFeedback.push(t)})}),t},i.writeRtpDescription=function(e,t){let n="";n+="m="+e+" ",n+=t.codecs.length>0?"9":"0",n+=" "+(t.profile||"UDP/TLS/RTP/SAVPF")+" ",n+=t.codecs.map(e=>void 0!==e.preferredPayloadType?e.preferredPayloadType:e.payloadType).join(" ")+"\r\n",n+="c=IN IP4 0.0.0.0\r\n",n+="a=rtcp:9 IN IP4 0.0.0.0\r\n",t.codecs.forEach(e=>{n+=i.writeRtpMap(e),n+=i.writeFmtp(e),n+=i.writeRtcpFb(e)});let r=0;return t.codecs.forEach(e=>{e.maxptime>r&&(r=e.maxptime)}),r>0&&(n+="a=maxptime:"+r+"\r\n"),t.headerExtensions&&t.headerExtensions.forEach(e=>{n+=i.writeExtmap(e)}),n},i.parseRtpEncodingParameters=function(e){const t=[],n=i.parseRtpParameters(e),r=-1!==n.fecMechanisms.indexOf("RED"),s=-1!==n.fecMechanisms.indexOf("ULPFEC"),o=i.matchPrefix(e,"a=ssrc:").map(e=>i.parseSsrcMedia(e)).filter(e=>"cname"===e.attribute),a=o.length>0&&o[0].ssrc;let c;const l=i.matchPrefix(e,"a=ssrc-group:FID").map(e=>e.substring(17).split(" ").map(e=>parseInt(e,10)));l.length>0&&l[0].length>1&&l[0][0]===a&&(c=l[0][1]),n.codecs.forEach(e=>{if("RTX"===e.name.toUpperCase()&&e.parameters.apt){let n={ssrc:a,codecPayloadType:parseInt(e.parameters.apt,10)};a&&c&&(n.rtx={ssrc:c}),t.push(n),r&&(n=JSON.parse(JSON.stringify(n)),n.fec={ssrc:a,mechanism:s?"red+ulpfec":"red"},t.push(n))}}),0===t.length&&a&&t.push({ssrc:a});let u=i.matchPrefix(e,"b=");return u.length&&(u=0===u[0].indexOf("b=TIAS:")?parseInt(u[0].substring(7),10):0===u[0].indexOf("b=AS:")?1e3*parseInt(u[0].substring(5),10)*.95-16e3:void 0,t.forEach(e=>{e.maxBitrate=u})),t},i.parseRtcpParameters=function(e){const t={},n=i.matchPrefix(e,"a=ssrc:").map(e=>i.parseSsrcMedia(e)).filter(e=>"cname"===e.attribute)[0];n&&(t.cname=n.value,t.ssrc=n.ssrc);const r=i.matchPrefix(e,"a=rtcp-rsize");t.reducedSize=r.length>0,t.compound=0===r.length;const s=i.matchPrefix(e,"a=rtcp-mux");return t.mux=s.length>0,t},i.writeRtcpParameters=function(e){let t="";return e.reducedSize&&(t+="a=rtcp-rsize\r\n"),e.mux&&(t+="a=rtcp-mux\r\n"),void 0!==e.ssrc&&e.cname&&(t+="a=ssrc:"+e.ssrc+" cname:"+e.cname+"\r\n"),t},i.parseMsid=function(e){let t;const n=i.matchPrefix(e,"a=msid:");if(1===n.length)return t=n[0].substring(7).split(" "),{stream:t[0],track:t[1]};const r=i.matchPrefix(e,"a=ssrc:").map(e=>i.parseSsrcMedia(e)).filter(e=>"msid"===e.attribute);return r.length>0?(t=r[0].value.split(" "),{stream:t[0],track:t[1]}):void 0},i.parseSctpDescription=function(e){const t=i.parseMLine(e),n=i.matchPrefix(e,"a=max-message-size:");let r;n.length>0&&(r=parseInt(n[0].substring(19),10)),isNaN(r)&&(r=65536);const s=i.matchPrefix(e,"a=sctp-port:");if(s.length>0)return{port:parseInt(s[0].substring(12),10),protocol:t.fmt,maxMessageSize:r};const o=i.matchPrefix(e,"a=sctpmap:");if(o.length>0){const e=o[0].substring(10).split(" ");return{port:parseInt(e[0],10),protocol:e[1],maxMessageSize:r}}},i.writeSctpDescription=function(e,t){let n=[];return n="DTLS/SCTP"!==e.protocol?["m="+e.kind+" 9 "+e.protocol+" "+t.protocol+"\r\n","c=IN IP4 0.0.0.0\r\n","a=sctp-port:"+t.port+"\r\n"]:["m="+e.kind+" 9 "+e.protocol+" "+t.port+"\r\n","c=IN IP4 0.0.0.0\r\n","a=sctpmap:"+t.port+" "+t.protocol+" 65535\r\n"],void 0!==t.maxMessageSize&&n.push("a=max-message-size:"+t.maxMessageSize+"\r\n"),n.join("")},i.generateSessionId=function(){return Math.random().toString().substr(2,22)},i.writeSessionBoilerplate=function(e,t,n){let r;const s=void 0!==t?t:2;r=e||i.generateSessionId();return"v=0\r\no="+(n||"thisisadapterortc")+" "+r+" "+s+" IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\n"},i.getDirection=function(e,t){const n=i.splitLines(e);for(let e=0;e<n.length;e++)switch(n[e]){case"a=sendrecv":case"a=sendonly":case"a=recvonly":case"a=inactive":return n[e].substring(2)}return t?i.getDirection(t):"sendrecv"},i.getKind=function(e){return i.splitLines(e)[0].split(" ")[0].substring(2)},i.isRejected=function(e){return"0"===e.split(" ",2)[1]},i.parseMLine=function(e){const t=i.splitLines(e)[0].substring(2).split(" ");return{kind:t[0],port:parseInt(t[1],10),protocol:t[2],fmt:t.slice(3).join(" ")}},i.parseOLine=function(e){const t=i.matchPrefix(e,"o=")[0].substring(2).split(" ");return{username:t[0],sessionId:t[1],sessionVersion:parseInt(t[2],10),netType:t[3],addressType:t[4],address:t[5]}},i.isValidSDP=function(e){if("string"!=typeof e||0===e.length)return!1;const t=i.splitLines(e);for(let e=0;e<t.length;e++)if(t[e].length<2||"="!==t[e].charAt(1))return!1;return!0},e.exports=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(6),r=n(8),s=(0,i.__importDefault)(n(60)),o=n(37),a=n(61);function c(e){const t=e.application;if(t.streams&&t.streams.length&&t.sources&&t.sources.length){const e=t.streams[0];t.sources[0].parameters.msid=`${e.id} ${e.track}`,t.sourceGroups&&t.sourceGroups.length>0&&t.sources.push({parameters:{cname:t.sources[0].parameters.cname,msid:`${e.id} ${e.track}`},ssrc:t.sourceGroups[0].sources[1]})}}class l extends s.default{constructor(e){if(super(e),this.includesAudio=!1,this.includesVideo=!1,this._ringing=!1,this.pc.addEventListener("track",e=>{this.onAddTrack(e.track,e.streams[0])}),e.stream)for(const t of e.stream.getTracks())this.addTrack(t,e.stream)}get ringing(){return this._ringing}set ringing(e){e!==this._ringing&&(this._ringing=e)}get streams(){return"closed"!==this.pc.signalingState?this.pc.getRemoteStreams():[]}async start(e,t){this.state="pending",1===arguments.length&&"function"==typeof e&&(t=e,e={}),t=t||(()=>{}),e=e||{},this.role="initiator",this.offerOptions=e;try{await this.processLocal(r.JingleAction.SessionInitiate,async()=>{const t=await this.pc.createOffer(e),n=(0,o.importFromSDP)(t.sdp),i=(0,a.convertIntermediateToRequest)(n,this.role,this.transportType);i.sid=this.sid,i.action=r.JingleAction.SessionInitiate;for(const e of i.contents||[])e.creator="initiator",c(e);await this.pc.setLocalDescription(t),this.send("session-initiate",i)}),t()}catch(e){this._log("error","Could not create WebRTC offer",e),this.end("failed-application",!0)}}async accept(e,t){1===arguments.length&&"function"==typeof e&&(t=e,e={}),t=t||(()=>{}),e=e||{},this._log("info","Accepted incoming session"),this.state="active",this.role="responder";try{await this.processLocal(r.JingleAction.SessionAccept,async()=>{const t=await this.pc.createAnswer(e),n=(0,o.importFromSDP)(t.sdp),i=(0,a.convertIntermediateToRequest)(n,this.role,this.transportType);i.sid=this.sid,i.action=r.JingleAction.SessionAccept;for(const e of i.contents||[])e.creator="initiator";await this.pc.setLocalDescription(t),await this.processBufferedCandidates(),this.send("session-accept",i)}),t()}catch(e){this._log("error","Could not create WebRTC answer",e),this.end("failed-application")}}end(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"success",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];for(const e of this.pc.getReceivers())this.onRemoveTrack(e.track);super.end(e,t)}ring(){return this.processLocal("ring",async()=>{this._log("info","Ringing on incoming session"),this.ringing=!0,this.send(r.JingleAction.SessionInfo,{info:{infoType:r.JINGLE_INFO_RINGING}})})}mute(e,t){return this.processLocal("mute",async()=>{this._log("info","Muting",t),this.send(r.JingleAction.SessionInfo,{info:{creator:e,infoType:r.JINGLE_INFO_MUTE,name:t}})})}unmute(e,t){return this.processLocal("unmute",async()=>{this._log("info","Unmuting",t),this.send(r.JingleAction.SessionInfo,{info:{creator:e,infoType:r.JINGLE_INFO_UNMUTE,name:t}})})}hold(){return this.processLocal("hold",async()=>{this._log("info","Placing on hold"),this.send("session-info",{info:{infoType:r.JINGLE_INFO_HOLD}})})}resume(){return this.processLocal("resume",async()=>{this._log("info","Resuming from hold"),this.send("session-info",{info:{infoType:r.JINGLE_INFO_ACTIVE}})})}addTrack(e,t,n){return"audio"===e.kind&&(this.includesAudio=!0),"video"===e.kind&&(this.includesVideo=!0),this.processLocal("addtrack",async()=>{this.pc.addTrack?this.pc.addTrack(e,t):this.pc.addStream(t),n&&n()})}async removeTrack(e,t){return this.processLocal("removetrack",async()=>{if(this.pc.removeTrack(e),t)return t()})}onAddTrack(e,t){this._log("info","Track added"),this.parent.emit("peerTrackAdded",this,e,t)}onRemoveTrack(e){this._log("info","Track removed"),this.parent.emit("peerTrackRemoved",this,e)}async onSessionInitiate(e,t){this._log("info","Initiating incoming session"),this.state="pending",this.role="responder",this.transportType=e.contents[0].transport.transportType;const n=(0,a.convertRequestToIntermediate)(e,this.peerRole);for(const e of n.media)"audio"===e.kind&&(this.includesAudio=!0),"video"===e.kind&&(this.includesVideo=!0),e.streams||(e.streams=[{stream:"legacy",track:e.kind}]);const i=(0,o.exportToSDP)(n);try{return await this.pc.setRemoteDescription({type:"offer",sdp:i}),await this.processBufferedCandidates(),t()}catch(e){return this._log("error","Could not create WebRTC answer",e),t({condition:"general-error"})}}onSessionTerminate(e,t){for(const e of this.pc.getReceivers())this.onRemoveTrack(e.track);super.onSessionTerminate(e,t)}onSessionInfo(e,t){const n=e.info||{infoType:""};switch(n.infoType){case r.JINGLE_INFO_RINGING:return this._log("info","Outgoing session is ringing"),this.ringing=!0,this.parent.emit("ringing",this),t();case r.JINGLE_INFO_HOLD:return this._log("info","On hold"),this.parent.emit("hold",this),t();case r.JINGLE_INFO_UNHOLD:case r.JINGLE_INFO_ACTIVE:return this._log("info","Resuming from hold"),this.parent.emit("resumed",this),t();case r.JINGLE_INFO_MUTE:return this._log("info","Muting",n),this.parent.emit("mute",this,n),t();case r.JINGLE_INFO_UNMUTE:return this._log("info","Unmuting",n),this.parent.emit("unmute",this,n),t()}return t()}}t.default=l},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=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){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||s(t,e,n)},a=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,s){function o(e){try{c(i.next(e))}catch(e){s(e)}}function a(e){try{c(i.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,a)}c((i=i.apply(e,t||[])).next())}))},c=this&&this.__generator||function(e,t){var n,i,r,s,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(o=0)),o;)try{if(n=1,i&&(r=2&a[0]?i.return:a[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,a[1])).done)return r;switch(i=0,r&&(a=[2&a[0],r.value]),a[0]){case 0:case 1:r=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,i=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]<r[3])){o.label=a[1];break}if(6===a[0]&&o.label<r[1]){o.label=r[1],r=a;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(a);break}r[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],i=0}finally{n=r=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(t,"__esModule",{value:!0});var l,u=n(10);o(n(291),t);var d=function(e){function t(t,n){void 0===n&&(n={});var i=e.call(this)||this;return i.peerConnection=t,i.haveConnectionMetrics=!1,i.statsArr=[],l="undefined"!=typeof window,i.session=n.session,i.initiator=n.initiator,i.conference=n.conference,i.statsInterval=1e3*(n.interval||5),i.logger=n.logger||console,["new","checking"].includes(t.iceConnectionState)&&("checking"===t.iceConnectionState&&(i.logger.warn("iceConnectionState is already in checking state so ice connect time may not be accurate"),i.handleIceStateChange()),t.addEventListener("iceconnectionstatechange",i.handleIceStateChange.bind(i))),t.addEventListener("connectionstatechange",i.handleConnectionStateChange.bind(i)),"connected"===t.connectionState&&i.pollForStats(),i}return r(t,e),t.prototype.handleIceStateChange=function(){var e=this,t=this.peerConnection.iceConnectionState;if("checking"===t&&l&&(this.iceStartTime=window.performance.now()),"connected"===t){if(this.haveConnectionMetrics)return;this.haveConnectionMetrics=!0;var n=void 0,i=void 0,r=void 0;l&&(this.iceConnectionTime=window.performance.now()-this.iceStartTime,n=window.navigator.userAgent,i=window.navigator.platform,r=window.navigator.hardwareConcurrency);var s={name:"connect",userAgent:n,platform:i,cores:r,session:this.session,conference:this.conference,connectTime:this.iceConnectionTime};return this.waitForSelectedCandidatePair().then((function(t){e.gatherSelectedCandidateInfo(t,s),e.emit("stats",s)}))}if("failed"===t)return l&&(this.iceFailedTime=window.performance.now()-this.iceStartTime),this.gatherStats().then((function(){var t={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},n=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){t["numLocal"+e+"Candidates"]=n.filter((function(t){return t.split(" ")[7]===e.toLowerCase()})).length,t["numRemote"+e+"Candidates"]=i.filter((function(t){return t.split(" ")[7]===e.toLowerCase()})).length})),e.emit("stats",t)}))},t.prototype.waitForSelectedCandidatePair=function(e,t){var n=this;return void 0===e&&(e=300),void 0===t&&(t=1),this.gatherStats().then((function(i){return n.getSelectedCandidatePair(i)?i:t>3?Promise.reject(new Error("Max wait attempts for connected candidate info reached")):new Promise((function(i,r){setTimeout((function(){return n.waitForSelectedCandidatePair(e,t+1).then(i,r)}),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 i,r,s=n.localCandidateId,o=n.remoteCandidateId;if(e.forEach((function(e){var n=e.value;s&&"local-candidate"===n.type&&n.id===s&&(i=n,t.localCandidateType=n.candidateType),o&&"remote-candidate"===n.type&&n.id===o&&(r=n,t.remoteCandidateType=n.candidateType)})),i&&r&&(t.candidatePair=i.candidateType+";"+r.candidateType,t.candidatePairDetails={local:i,remote:r,pair:n}),i){if(t.transport=i.transport||i.protocol,i.priority){var a=parseInt(i.priority,10);t.turnType={2:"udp",1:"tcp",0:"tls"}[a>>24],t.networkType=i.networkType}t.usingIPv6=i.ipAddress&&0===i.ipAddress.indexOf("[")}}},t.prototype.handleConnectionStateChange=function(){return a(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","failed"].includes(e)&&this.pollingInterval&&(l&&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){if(0!==t.length){var n=e.createStatsReport(t,!0);(n.tracks.length>0||n.remoteTracks.length>0)&&e.checkBitrate(n)&&e.emit("stats",n)}else e.logger.warn("Empty stats gathered, ignoring and not emitting stats")}))};l&&(window.setTimeout(t,0),this.pollingInterval=window.setInterval(t,this.statsInterval))}},t.prototype.checkBitrate=function(e){var t;return e.remoteTracks.length&&0!==(null===(t=e.remoteTracks[0])||void 0===t?void 0:t.bitrate)?(this.statsArr=[],!0):!(this.statsArr.length>=5)&&(this.statsArr.push(e),!0)},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 a(this,void 0,void 0,(function(){var e;return c(this,(function(t){switch(t.label){case 0:return t.trys.push([0,4,,5]),["connecting","connected"].includes(this.peerConnection.connectionState)?[4,this.peerConnection.getStats(null).then(this.polyFillStats.bind(this))]:[3,2];case 1:return[2,t.sent()];case 2:return"closed"===this.peerConnection.connectionState?(this.pollingInterval&&(l&&window.clearInterval(this.pollingInterval),this.pollingInterval=null),[2,[]]):[2,[]];case 3:return[3,5];case 4: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 5:return[2]}}))}))},t.prototype.createStatsReport=function(e,t){var n=this;void 0===t&&(t=!0);var i={name:"getStats",session:this.session,initiator:this.initiator,conference:this.conference,tracks:[],remoteTracks:[]};if(0===e.length)return i;e.filter((function(e){return["inbound-rtp","outbound-rtp"].indexOf(e.value.type)>-1})).forEach((function(t){n.processSource({source:t.value,event:i,results:e})}));var r=e.find((function(e){return"candidate-pair"===e.value.type&&"succeeded"===e.value.state&&!0===e.value.nominated}));return r&&this.processSelectedCandidatePair({report:r.value,event:i,results:e}),t&&(this.lastResult=e),i},t.prototype.processSource=function(e){var t,n,i,r,s,o,a,c=e.source,l=e.results,u=e.event,d=new Date(c.timestamp),p=this.lastResult&&this.lastResult.find((function(e){return e.key===c.id}));(p=p&&p.value)&&(t=(t=this.lastResult&&this.lastResult.find((function(e){return e.value.localId===p.id})))&&t.value),l.forEach((function(e){e.value.localId===c.id?n=e.value:e.key===c.transportId?i=e.value:e.key===c.trackId?s=e.value:e.key===c.mediaSourceId?o=e.value:e.key===c.codecId&&(a=e.value)})),i&&(r=(r=l.find((function(e){return e.key===i.selectedCandidatePairId})))&&r.value),r&&(u.candidatePairHadActiveSource=!0);var f=c.kind||c.mediaType,m="outbound-rtp"===c.type,g={track:s&&s.trackIdentifier,kind:f,jitter:h("jitter",c,n),roundTripTime:h("roundTripTime",c,n),packetsLost:h("packetsLost",c,n)||0,packetLoss:0,bytes:parseInt(m?c.bytesSent:c.bytesReceived,10)||0};if(a&&(g.codec="".concat(a.payloadType," ").concat(a.mimeType," ").concat(a.clockRate)),p){var y=parseInt(m?p.bytesSent:p.bytesReceived,10)||0,v=d.getTime()-new Date(p.timestamp).getTime();g.bitrate=Math.floor(8*(g.bytes-y)/v)}var b=h("packetsLost",p,t);m?(g.packetsSent=c.packetsSent,g.packetLoss=g.packetsLost/(g.packetsSent||1)*100,p&&(g.intervalPacketsSent=g.packetsSent-(p.packetsSent||0),g.intervalPacketsLost=g.packetsLost-(b||0),g.intervalPacketLoss=g.intervalPacketsLost/(g.intervalPacketsSent||1)*100),g.retransmittedBytesSent=c.retransmittedBytesSent,g.retransmittedPacketsSent=c.retransmittedPacketsSent):(g.packetsReceived=c.packetsReceived,g.packetLoss=g.packetsLost/(g.packetsReceived||1)*100,p&&(g.intervalPacketsReceived=g.packetsReceived-p.packetsReceived,g.intervalPacketsLost=g.packetsLost-b,g.intervalPacketLoss=g.intervalPacketsLost/(g.intervalPacketsReceived||1)*100)),s&&"audio"===f&&(s.remoteSource?(g.audioLevel=s.audioLevel,g.totalAudioEnergy=s.totalAudioEnergy):(g.echoReturnLoss=s.echoReturnLoss,g.echoReturnLossEnhancement=s.echoReturnLossEnhancement)),"audio"!==f||!o||s&&s.remoteSource||(g.audioLevel=o.audioLevel,g.totalAudioEnergy=o.totalAudioEnergy),Object.keys(g).forEach((function(e){return void 0===g[e]&&delete g[e]})),m?u.tracks.push(g):u.remoteTracks.push(g)},t.prototype.processSelectedCandidatePair=function(e){var t=this,n=e.report,i=e.event,r=e.results,s=n.localCandidateId,o=n.remoteCandidateId;i.localCandidateChanged=!!this.lastActiveLocalCandidate&&s!==this.lastActiveLocalCandidate.id,i.remoteCandidateChanged=!!this.lastActiveRemoteCandidate&&o!==this.lastActiveRemoteCandidate.id,(!this.lastActiveLocalCandidate||i.localCandidateChanged||i.remoteCandidateChanged)&&r.forEach((function(e){t.checkLastActiveCandidate({localId:s,remoteId:o,report:e.value})})),this.lastActiveLocalCandidate&&(i.networkType=this.lastActiveLocalCandidate.networkType,this.lastActiveRemoteCandidate&&(i.candidatePair=this.lastActiveLocalCandidate.candidateType+";"+this.lastActiveRemoteCandidate.candidateType)),i.bytesSent=n.bytesSent,i.bytesReceived=n.bytesReceived,i.requestsReceived=n.requestsReceived,i.requestsSent=n.requestsSent,i.responsesReceived=n.responsesReceived,i.responsesSent=n.responsesSent,i.consentRequestsSent=n.consentRequestsSent,i.totalRoundTripTime=n.totalRoundTripTime},t.prototype.checkLastActiveCandidate=function(e){var t=e.localId,n=e.remoteId,i=e.report;t&&"local-candidate"===i.type&&i.id===t&&(this.lastActiveLocalCandidate=i),n&&"remote-candidate"===i.type&&i.id===n&&(this.lastActiveRemoteCandidate=i)},t}(u.EventEmitter);function h(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var i=t.find((function(t){return t&&(t[e]||0===t[e])}));return i&&i[e]}t.default=d},function(e,t,n){"use strict";n.r(t),n.d(t,"Axios",(function(){return r})),n.d(t,"AxiosError",(function(){return s})),n.d(t,"CanceledError",(function(){return o})),n.d(t,"isCancel",(function(){return a})),n.d(t,"CancelToken",(function(){return c})),n.d(t,"VERSION",(function(){return l})),n.d(t,"all",(function(){return u})),n.d(t,"Cancel",(function(){return d})),n.d(t,"isAxiosError",(function(){return h})),n.d(t,"spread",(function(){return p})),n.d(t,"toFormData",(function(){return f})),n.d(t,"AxiosHeaders",(function(){return m})),n.d(t,"HttpStatusCode",(function(){return g})),n.d(t,"formToJSON",(function(){return y})),n.d(t,"getAdapter",(function(){return v})),n.d(t,"mergeConfig",(function(){return b}));var i=n(70);n.d(t,"default",(function(){return i.a}));const{Axios:r,AxiosError:s,CanceledError:o,isCancel:a,CancelToken:c,VERSION:l,all:u,Cancel:d,isAxiosError:h,spread:p,toFormData:f,AxiosHeaders:m,HttpStatusCode:g,formToJSON:y,getAdapter:v,mergeConfig:b}=i.a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(10),r=Math.pow(2,32),s=(e,t)=>(e%t+t)%t;class o extends i.EventEmitter{constructor(){super(),this.allowResume=!0,this.lastAck=0,this.handled=0,this.unacked=[],this.inboundStarted=!1,this.outboundStarted=!1,this.id=void 0,this.jid=void 0,this.allowResume=!0,this.started=!1,this.cacheHandler=()=>{},this._reset()}get started(){return this.outboundStarted&&this.inboundStarted}set started(e){e||(this.outboundStarted=!1,this.inboundStarted=!1)}get resumable(){return this.started&&this.allowResume}load(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)}cache(e){this.cacheHandler=e}async bind(e){this.jid=e,await this._cache()}async enable(){this.emit("send",{allowResumption:this.allowResume,type:"enable"})}async resume(){this.emit("send",{handled:this.handled,previousSession:this.id,type:"resume"})}async enabled(e){this.id=e.id,this.allowResume=e.resume||!1,this.handled=0,this.inboundStarted=!0,await this._cache()}async resumed(e){this.id=e.previousSession,this.inboundStarted=!0,await this.process(e,!0),await this._cache()}async failed(e){await this.process(e);for(const[e,t]of this.unacked)this.emit("failed",{kind:e,stanza:t});this._reset(),await this._cache()}ack(){this.emit("send",{handled:this.handled,type:"ack"})}request(){this.emit("send",{type:"request"})}async process(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(void 0===e.handled)return;const n=s(e.handled-this.lastAck,r);for(let e=0;e<n&&this.unacked.length>0;e++){const[e,t]=this.unacked.shift();this.emit("acked",{kind:e,stanza:t})}if(this.lastAck=e.handled,t){const e=this.unacked;if(this.unacked=[],e.length){this.emit("begin-resend");for(const[t,n]of e)this.emit("resend",{kind:t,stanza:n});this.emit("end-resend")}}await this._cache()}async track(e,t){const n="enable"===t.type;return"sm"!==e||!n&&"resume"!==t.type?!!this.outboundStarted&&(("message"===e||"presence"===e||"iq"===e)&&(this.unacked.push([e,t]),await this._cache(),!0)):(n&&(this.handled=0),this.outboundStarted=!0,await this._cache(),!1)}async handle(){this.inboundStarted&&(this.handled=s(this.handled+1,r),await this._cache())}async hibernate(){if(!this.resumable)return this.shutdown();for(const[e,t]of this.unacked)this.emit("hibernated",{kind:e,stanza:t})}async shutdown(){return this.failed({type:"failed"})}async _cache(){try{await this.cacheHandler({allowResume:this.allowResume,handled:this.handled,id:this.id,jid:this.jid,lastAck:this.lastAck,unacked:this.unacked})}catch(e){console.error("Failed to cache stream state",e)}}_reset(){this.id="",this.inboundStarted=!1,this.outboundStarted=!1,this.lastAck=0,this.handled=0,this.unacked=[]}}t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SCRAM=t.DIGEST=t.OAUTH=t.PLAIN=t.EXTERNAL=t.ANONYMOUS=t.Hi=t.HMAC=t.H=t.XOR=t.createClientNonce=t.Factory=t.SimpleMech=void 0;const i=n(12),r=n(89);class s{constructor(e){this.authenticated=!1,this.mutuallyAuthenticated=!1,this.name=e}getCacheableCredentials(){return null}processChallenge(e){}processSuccess(e){this.authenticated=!0}finalize(){const e={authenticated:this.authenticated,mutuallyAuthenticated:this.mutuallyAuthenticated};return this.errorData&&(e.errorData=this.errorData),e}}t.SimpleMech=s;function o(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32;return(0,i.randomBytes)(e).toString("hex")}function a(e,t){const n=[];for(let i=0;i<e.length;i++)n.push(e[i]^t[i]);return i.Buffer.from(n)}function c(e,t){return(0,i.createHash)(t).update(e).digest()}function l(e,t,n){return(0,i.createHmac)(n,e).update(t).digest()}function u(e,t,n,r){let s=l(e,i.Buffer.concat([t,i.Buffer.from("00000001","hex")]),r),o=s;for(let t=0;t<n-1;t++)s=l(e,s,r),o=a(o,s);return o}function d(e){const t={},n=e.toString().split(/,(?=(?:[^"]|"[^"]*")*$)/);for(let e=0,i=n.length;e<i;e++){const i=/(\w+)=["]?([^"]+)["]?$/.exec(n[e]);i&&(t[i[1]]=i[2])}return t}function h(e){const t=[];for(const n of e)","===n?t.push("=2C"):"="===n?t.push("=3D"):t.push(n);return t.join("")}t.Factory=class{constructor(){this.mechanisms=[]}register(e,t,n){this.mechanisms.push({constructor:t,name:e.toUpperCase(),priority:n}),this.mechanisms.sort((e,t)=>t.priority-e.priority)}disable(e){const t=e.toUpperCase();this.mechanisms=this.mechanisms.filter(e=>e.name!==t)}createMechanism(e){const t=e.map(e=>e.toUpperCase());for(const e of this.mechanisms)for(const n of t)if(n===e.name)return new e.constructor(e.name);return null}},t.createClientNonce=o,t.XOR=a,t.H=c,t.HMAC=l,t.Hi=u;t.ANONYMOUS=class extends s{getExpectedCredentials(){return{optional:["trace"],required:[]}}createResponse(e){return i.Buffer.from(e.trace||"")}};t.EXTERNAL=class extends s{getExpectedCredentials(){return{optional:["authzid"],required:[]}}createResponse(e){return i.Buffer.from(e.authzid||"")}};t.PLAIN=class extends s{getExpectedCredentials(){return{optional:["authzid"],required:["username","password"]}}createResponse(e){return i.Buffer.from((e.authzid||"")+"\0"+e.username+"\0"+(e.password||e.token))}};t.OAUTH=class extends s{constructor(e){super(e),this.failed=!1,this.name=e}getExpectedCredentials(){return{optional:["authzid"],required:["token"]}}createResponse(e){if(this.failed)return i.Buffer.from("");const t=`n,${h((0,r.saslprep)(e.authzid))},`,n=`auth=Bearer ${e.token}`;return i.Buffer.from(t+""+n+"","utf8")}processChallenge(e){this.failed=!0,this.errorData=JSON.parse(e.toString("utf8"))}};t.DIGEST=class extends s{constructor(e){super(e),this.providesMutualAuthentication=!1,this.state="INITIAL",this.name=e}processChallenge(e){this.state="CHALLENGE";const t=d(e);this.authenticated=!!t.rspauth,this.realm=t.realm,this.nonce=t.nonce,this.charset=t.charset}getExpectedCredentials(){return{optional:["authzid","clientNonce","realm"],required:["host","password","serviceName","serviceType","username"]}}createResponse(e){if("INITIAL"===this.state||this.authenticated)return null;let t=e.serviceType+"/"+e.host;e.serviceName&&e.host!==e.serviceName&&(t+="/"+e.serviceName);const n=e.realm||this.realm||"",r=e.clientNonce||o(16),s="00000001";let a="";a+='username="'+e.username+'"',n&&(a+=',realm="'+n+'"'),a+=',nonce="'+this.nonce+'"',a+=',cnonce="'+r+'"',a+=",nc="+s,a+=",qop=auth",a+=',digest-uri="'+t+'"';const c=(0,i.createHash)("md5").update(e.username).update(":").update(n).update(":").update(e.password).digest(),l=(0,i.createHash)("md5").update(c).update(":").update(this.nonce).update(":").update(r);e.authzid&&l.update(":").update(e.authzid);const u=l.digest("hex"),d=(0,i.createHash)("md5").update("AUTHENTICATE:").update(t).digest("hex");return a+=",response="+(0,i.createHash)("md5").update(u).update(":").update(this.nonce).update(":").update(s).update(":").update(r).update(":").update("auth").update(":").update(d).digest("hex"),"utf-8"===this.charset&&(a+=",charset=utf-8"),e.authzid&&(a+=',authzid="'+e.authzid+'"'),i.Buffer.from(a)}};t.SCRAM=class{constructor(e){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]}getExpectedCredentials(){const e=["username","password"];return this.useChannelBinding&&e.push("tlsUnique"),{optional:["authzid","clientNonce"],required:e}}getCacheableCredentials(){return this.cache}createResponse(e){return"INITIAL"===this.state?this.initialResponse(e):this.challengeResponse(e)}processChallenge(e){const t=d(e);this.salt=i.Buffer.from(t.s||"","base64"),this.iterationCount=parseInt(t.i,10),this.nonce=t.r,this.verifier=t.v,this.error=t.e,this.challenge=e}processSuccess(e){this.processChallenge(e)}finalize(){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}}initialResponse(e){const t=h((0,r.saslprep)(e.authzid)),n=h((0,r.saslprep)(e.username));this.clientNonce=e.clientNonce||o();let s="n";e.tlsUnique&&(s=this.useChannelBinding?"p=tls-unique":"y"),this.gs2Header=i.Buffer.from(t?`${s},a=${t},`:s+",,"),this.clientFirstMessageBare=i.Buffer.from(`n=${n},r=${this.clientNonce}`);const a=i.Buffer.concat([this.gs2Header,this.clientFirstMessageBare]);return this.state="CHALLENGE",a}challengeResponse(e){const t=i.Buffer.from("Client Key"),n=i.Buffer.from("Server Key"),s=i.Buffer.concat([this.gs2Header,e.tlsUnique||i.Buffer.from("")]).toString("base64"),o=i.Buffer.from(`c=${s},r=${this.nonce}`);let d,h,p;const f=e.salt&&0===i.Buffer.compare(e.salt,this.salt);f&&e.clientKey&&e.serverKey?(h=i.Buffer.from(e.clientKey),p=i.Buffer.from(e.serverKey)):f&&e.saltedPassword?(d=i.Buffer.from(e.saltedPassword),h=l(d,t,this.algorithm),p=l(d,n,this.algorithm)):(d=u(i.Buffer.from((0,r.saslprep)(e.password)),this.salt,this.iterationCount,this.algorithm),h=l(d,t,this.algorithm),p=l(d,n,this.algorithm));const m=c(h,this.algorithm),g=i.Buffer.from(","),y=i.Buffer.concat([this.clientFirstMessageBare,g,this.challenge,g,o]),v=a(h,l(m,y,this.algorithm)).toString("base64");this.serverSignature=l(p,y,this.algorithm);const b=i.Buffer.concat([o,i.Buffer.from(",p="+v)]);return this.state="FINAL",this.cache={clientKey:h,salt:this.salt,saltedPassword:d,serverKey:p},b}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(2);t.default=function(e){e.getAccountInfo=async t=>(await e.sendIQ({account:{},to:t,type:"get"})).account,e.updateAccount=(t,n)=>e.sendIQ({account:n,to:t,type:"set"}),e.deleteAccount=t=>e.sendIQ({account:{remove:!0},to:t,type:"set"}),e.getPrivateData=async t=>(await e.sendIQ({privateStorage:{[t]:{}},type:"get"})).privateStorage[t],e.setPrivateData=async(t,n)=>e.sendIQ({privateStorage:{[t]:n},type:"set"}),e.getVCard=async t=>(await e.sendIQ({to:t,type:"get",vcard:{format:i.NS_VCARD_TEMP}})).vcard,e.publishVCard=async t=>{await e.sendIQ({type:"set",vcard:t})},e.enableNotifications=function(t,n){let i=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"},...i],type:"submit"},jid:t,node:n},type:"set"})},e.disableNotifications=(t,n)=>e.sendIQ({push:{action:"disable",jid:t,node:n},type:"set"})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(2);t.default=function(e){e.disco.addFeature((0,i.NS_PEP_NOTIFY)(i.NS_AVATAR_METADATA)),e.on("pubsub:published",t=>{if(t.pubsub.items.node!==i.NS_AVATAR_METADATA)return;const n=t.pubsub.items.published[0].content;e.emit("avatar",{avatars:n.versions||[],jid:t.from,source:"pubsub"})}),e.on("presence",t=>{t.vcardAvatar&&"string"==typeof t.vcardAvatar&&e.emit("avatar",{avatars:[{id:t.vcardAvatar}],jid:t.from,source:"vcard"})}),e.publishAvatar=(t,n)=>e.publish("",i.NS_AVATAR_DATA,{data:n,itemType:i.NS_AVATAR_DATA},t),e.useAvatars=function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.publish("",i.NS_AVATAR_METADATA,{itemType:i.NS_AVATAR_METADATA,pointers:n,versions:t},"current")},e.getAvatar=(t,n)=>e.getItem(t,i.NS_AVATAR_DATA,n)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){e.registerFeature("bind",300,async(t,n)=>{try{const i=await e.sendIQ({bind:{resource:e.config.resource},type:"set"});e.features.negotiated.bind=!0,e.emit("session:prebind",i.bind.jid);const r=!t.legacySession||t.legacySession&&t.legacySession.optional;return!e.sessionStarted&&r&&e.emit("session:started",e.jid),n()}catch(e){return console.error(e),n("disconnect","JID binding failed")}}),e.registerFeature("legacySession",1e3,async(t,n)=>{if(e.sessionStarted||t.legacySession&&t.legacySession.optional)return e.features.negotiated.session=!0,n();try{return await e.sendIQ({legacySession:!0,type:"set"}),e.features.negotiated.session=!0,e.sessionStarted||(e.sessionStarted=!0,e.emit("session:started",e.jid)),n()}catch(e){return n("disconnect","Session requeset failed")}}),e.on("session:started",()=>{e.sessionStarted=!0}),e.on("session:prebind",t=>{e.jid=t,e.emit("session:bound",e.jid)}),e.on("--reset-stream-features",()=>{e.sessionStarted=!1,e.features.negotiated.bind=!1,e.features.negotiated.session=!1})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(2);t.default=function(e){e.disco.addFeature(i.NS_ADHOC_COMMANDS),e.disco.addItem({name:"Ad-Hoc Commands",node:i.NS_ADHOC_COMMANDS}),e.getCommands=t=>e.getDiscoItems(t,i.NS_ADHOC_COMMANDS)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(2),r=n(17);async function s(e){if(e.sm.started)return new Promise(t=>{e.once("stream:management:ack",()=>t()),e.sm.request()});try{await e.ping()}catch(e){if(e.error&&"timeout"!==e.error.condition)return;throw e}}function o(e,t){e.features.negotiated.clientStateIndication&&e.send("csi",{type:t})}t.default=function(e){e.disco.addFeature(i.NS_PING),e.on("iq:get:ping",t=>{e.sendIQResult(t)}),e.on("--reset-stream-features",()=>{e._stopKeepAliveInterval(),e.features.negotiated.streamManagement=!1,e.features.negotiated.clientStateIndication=!1}),e.markActive=()=>o(e,"active"),e.markInactive=()=>o(e,"inactive"),e.ping=async t=>{await e.sendIQ({ping:!0,to:t,type:"get"})},e.enableKeepAlive=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e._keepAliveOptions=t;const n=t.interval||300,i=t.timeout||e.config.timeout||15;async function o(){if(e.sessionStarted)try{await(0,r.timeoutPromise)(s(e),1e3*i)}catch(t){e.emit("stream:error",{condition:"connection-timeout",text:"Server did not respond in "+i+" seconds"}),e.transport&&(e.transport.hasStream=!1,e.transport.disconnect(!1))}}clearInterval(e._keepAliveInterval),e._keepAliveInterval=setInterval(o,1e3*n)},e._stopKeepAliveInterval=()=>{e._keepAliveInterval&&(clearInterval(e._keepAliveInterval),delete e._keepAliveInterval)},e.disableKeepAlive=()=>{delete e._keepAliveOptions,e._stopKeepAliveInterval()},e.on("stream:management:resumed",()=>{e._keepAliveOptions&&e.enableKeepAlive(e._keepAliveOptions)}),e.on("stream:start",()=>{e._keepAliveOptions&&e.enableKeepAlive(e._keepAliveOptions)});const t=async(t,n)=>{if(!e.config.useStreamManagement)return n();const i=async t=>{switch(t.type){case"enabled":return await e.sm.enabled(t),e.features.negotiated.streamManagement=!0,e.off("sm",i),n();case"resumed":return await e.sm.resumed(t),e.features.negotiated.streamManagement=!0,e.features.negotiated.bind=!0,e.sessionStarted=!0,e.sessionStarting=!1,e.off("sm",i),e.emit("stream:management:resumed",t),n("break");case"failed":await e.sm.failed(t),e.off("sm",i),e.emit("session:end"),n()}};e.on("sm",i),e.sm.id?e.sm.id&&e.sm.allowResume?await e.sm.resume():(e.off("sm",i),n()):e.features.negotiated.bind?await e.sm.enable():(e.off("sm",i),n())};e.registerFeature("streamManagement",200,t),e.registerFeature("streamManagement",500,t),e.registerFeature("clientStateIndication",400,(t,n)=>{e.features.negotiated.clientStateIndication=!0,n()})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(6),r=(0,i.__importDefault)(n(297)),s=(0,i.__importStar)(n(13)),o=n(2);t.default=function(e){e.disco=new r.default,e.disco.addFeature(o.NS_DISCO_INFO),e.disco.addFeature(o.NS_DISCO_ITEMS),e.disco.addIdentity({category:"client",type:"web"}),e.registerFeature("caps",100,(t,n)=>{const i=s.getDomain(e.jid)||e.config.server;e.emit("disco:caps",{caps:t.legacyCapabilities||[],jid:i}),e.features.negotiated.caps=!0,n()}),e.getDiscoInfo=async(t,n)=>({extensions:[],features:[],identities:[],...(await e.sendIQ({disco:{node:n,type:"info"},to:t,type:"get"})).disco}),e.getDiscoItems=async(t,n)=>({items:[],...(await e.sendIQ({disco:{node:n,type:"items"},to:t,type:"get"})).disco}),e.updateCaps=()=>{const t=e.config.capsNode||"https://stanzajs.org";return e.disco.updateCaps(t)},e.getCurrentCaps=()=>{const t=e.disco.getCaps();if(!t)return;const n=`${t[0].node}#${t[0].value}`;return{info:e.disco.getNodeInfo(n),legacyCapabilities:t}},e.on("presence",t=>{t.legacyCapabilities&&e.emit("disco:caps",{caps:t.legacyCapabilities,jid:t.from})}),e.on("iq:get:disco",t=>{const{type:n,node:i}=t.disco;"info"===n&&e.sendIQResult(t,{disco:{...e.disco.getNodeInfo(i||""),node:i,type:"info"}}),"items"===n&&e.sendIQResult(t,{disco:{items:e.disco.items.get(i||"")||[],type:"items"}})})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(6),r=n(8),s=n(2),o=(0,i.__importStar)(n(12));t.default=function(e){e.disco.addFeature("jid\\20escaping"),e.disco.addFeature(s.NS_DELAY),e.disco.addFeature(s.NS_EME_0),e.disco.addFeature(s.NS_FORWARD_0),e.disco.addFeature(s.NS_HASHES_2),e.disco.addFeature(s.NS_HASHES_1),e.disco.addFeature(s.NS_IDLE_1),e.disco.addFeature(s.NS_JSON_0),e.disco.addFeature(s.NS_OOB),e.disco.addFeature(s.NS_PSA),e.disco.addFeature(s.NS_REFERENCE_0),e.disco.addFeature(s.NS_SHIM),e.disco.addFeature(s.NS_DATAFORM),e.disco.addFeature(s.NS_DATAFORM_MEDIA),e.disco.addFeature(s.NS_DATAFORM_VALIDATION),e.disco.addFeature(s.NS_DATAFORM_LAYOUT);const t=o.getHashes();for(const n of t)e.disco.addFeature((0,s.NS_HASH_NAME)(n));e.disco.addFeature(s.NS_TIME),e.disco.addFeature(s.NS_VERSION),e.on("iq:get:softwareVersion",t=>e.sendIQResult(t,{softwareVersion:e.config.softwareVersion||{name:"stanzajs.org",version:r.VERSION}})),e.on("iq:get:time",t=>{const n=new Date;e.sendIQResult(t,{time:{tzo:n.getTimezoneOffset(),utc:n}})}),e.getSoftwareVersion=async t=>(await e.sendIQ({softwareVersion:{},to:t,type:"get"})).softwareVersion,e.getTime=async t=>(await e.sendIQ({time:{},to:t,type:"get"})).time,e.getLastActivity=async t=>(await e.sendIQ({lastActivity:{},to:t,type:"get"})).lastActivity}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){e.features={handlers:Object.create(null),negotiated:Object.create(null),order:[]},e.registerFeature=function(t,n,i){this.features.order.push({name:t,priority:n}),this.features.order.sort((e,t)=>e.priority-t.priority),this.features.handlers[t]=i.bind(e)},e.on("features",async t=>{const n=e.features.negotiated,i=e.features.handlers,r=[];for(const{name:s}of e.features.order)t[s]&&i[s]&&!n[s]&&r.push(s);function s(e){return new Promise(n=>{i[e](t,(e,t)=>{n(e?{command:e,message:t}:null)})})}for(const t of r){if(n[t])continue;let i="",r="";try{const e=await s(t);e&&(i=e.command,r=e.message||"")}catch(e){i="disconnect",r=e.message,console.error(e)}if(i)return"restart"===i&&e.transport&&e.transport.restart(),void("disconnect"===i&&(e.emit("stream:error",{condition:"policy-violation",text:"Failed to negotiate stream features: "+r}),e.disconnect()))}})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(2);t.default=function(e){e.discoverBindings=async t=>{const n=new Set,r=new Set,s=e.resolver.getHostMeta(t).then(e=>{var t;for(const s of null!==(t=e.links)&&void 0!==t?t:[])s.href&&s.rel===i.NS_ALT_CONNECTIONS_WEBSOCKET&&r.add(s.href),s.href&&s.rel===i.NS_ALT_CONNECTIONS_XBOSH&&n.add(s.href)}).catch(e=>console.error(e)),o=e.config.allowAlternateDNSDiscovery?e.resolver.resolveTXT("_xmppconnect."+t).then(e=>{for(const t of e)for(const e of t){if(e.startsWith("_xmpp-client-websocket=")){const t=e.substring(e.indexOf("=")+1);t&&r.add(t)}if(e.startsWith("_xmpp-client-xbosh=")){const t=e.substring(e.indexOf("=")+1);t&&n.add(t)}}}).catch(e=>console.error(e)):Promise.resolve();return await Promise.all([s,o]).catch(e=>console.error(e)),{bosh:[...n].filter(e=>e.startsWith("https://")),websocket:[...r].filter(e=>e.startsWith("wss://"))}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(6),r=n(12),s=(0,i.__importStar)(n(59)),o=n(2);t.default=function(e){const t=!!r.RTCPeerConnection,n={...{advertiseAudio:t,advertiseFileTransfer:t,advertiseVideo:t,bundlePolicy:"balanced",hasRTCPeerConnection:t,iceServers:[{urls:"stun:stun.l.google.com:19302"}],iceTransportPolicy:"all",rtcpMuxPolicy:"require",trickleIce:!0},...e.config.jingle},i=e.jingle=new s.SessionManager(n),a=[o.NS_JINGLE_1];n.hasRTCPeerConnection&&(a.push(o.NS_JINGLE_ICE_0,o.NS_JINGLE_ICE_UDP_1,o.NS_JINGLE_DTLS_SCTP_1,o.NS_JINGLE_DTLS_0,"urn:ietf:rfc:5888"),!1===n.trickleIce&&a.push("urn:ietf:rfc:3264"),(n.advertiseAudio||n.advertiseVideo)&&a.push(o.NS_JINGLE_RTP_1,o.NS_JINGLE_RTP_RTCP_FB_0,o.NS_JINGLE_RTP_HDREXT_0,"urn:ietf:rfc:5576"),n.advertiseAudio&&a.push(o.NS_JINGLE_RTP_AUDIO),n.advertiseVideo&&a.push(o.NS_JINGLE_RTP_VIDEO),n.advertiseFileTransfer&&a.push(o.NS_JINGLE_FILE_TRANSFER_4,o.NS_JINGLE_FILE_TRANSFER_5));for(const t of a)e.disco.addFeature(t);const c=["outgoing","incoming","accepted","terminated","ringing","mute","unmute","hold","resumed"];for(const t of c)i.on(t,(n,i)=>{e.emit("jingle:"+t,n,i)});i.on("createdSession",t=>{e.emit("jingle:created",t)}),i.on("send",async t=>{try{if("set"===t.type){const n=await e.sendIQ(t);n.jingle||(n.jingle={}),n.jingle.sid=t.jingle.sid,i.process(n)}"result"===t.type&&e.sendIQResult({type:"set",id:t.id,from:t.to},t),"error"===t.type&&e.sendIQError({type:"set",id:t.id,from:t.to},t)}catch(e){e.jingle||(e.jingle=t.jingle),e.jingle.sid=t.jingle.sid,i.process(e)}}),e.on("session:bound",e=>{i.selfID=e}),e.on("iq:set:jingle",e=>{i.process(e)}),e.on("unavailable",e=>{i.endPeerSessions(e.from,void 0,!0)}),e.getServices=async(t,n,i)=>{const r=(await e.sendIQ({externalServices:{type:n,version:i},to:t,type:"get"})).externalServices;return r.services=r.services||[],r},e.getServiceCredentials=async(t,n,i,r,s)=>(await e.sendIQ({externalServiceCredentials:{host:n,port:r,type:i,version:s},to:t,type:"get"})).externalServiceCredentials,e.discoverICEServers=async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};try{const n=(await e.getServices(e.config.server,void 0,t.version)).services||[],i=[];for(const t of n)e.jingle.addICEServer(t);return i}catch(e){return[]}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(6),r=n(117),s=(0,i.__importStar)(n(13)),o=n(2);t.default=function(e){e.getHistorySearchForm=async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=await e.sendIQ({archive:{type:"query",version:n.version},to:t,type:"get"});return i.archive.form},e.searchHistory=async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=e.nextId();let a="";"string"==typeof t?a=t:(a=t.to||"",n=t),n.queryId=i;const c=n.form||{};c.type="submit";const l=c.fields||[],u=[{name:"FORM_TYPE",type:"hidden",value:o.NS_MAM_2}];n.with&&u.push({name:"with",type:"text-single",value:n.with}),n.start&&u.push({name:"start",type:"text-single",value:n.start.toISOString()}),n.end&&u.push({name:"end",type:"text-single",value:n.end.toISOString()}),c.fields=(0,r.mergeFields)(u,l),n.form=c;const d=s.allowedResponders(e.jid,a),h=[],p=e=>{d.has(e.from)&&e.archive&&e.archive.queryId===i&&h.push(e.archive)};e.on("mam:item",p);try{return{...(await e.sendIQ({archive:n,id:i,to:a,type:"set"})).archive,results:h}}finally{e.off("mam:item",p)}},e.getHistoryPreferences=async()=>(await e.sendIQ({archive:{type:"preferences"},type:"get"})).archive,e.setHistoryPreferences=t=>e.sendIQ({archive:{type:"preferences",...t},type:"set"}),e.on("message",t=>{t.archive&&e.emit("mam:item",t)})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeFields=void 0,t.mergeFields=function(e,t){const n=[],i=new Map;for(const e of t)e.name&&i.set(e.name,e);const r=new Set;for(const t of e)t.name&&i.has(t.name)?(n.push({...t,...i.get(t.name)}),r.add(t.name)):n.push({...t});for(const e of t)(!e.name||e.name&&!r.has(e.name))&&n.push({...e});return n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=(0,n(6).__importStar)(n(13)),r=n(2),s=new Set(["chat","groupchat","headline","normal"]),o=new Set(["chat","groupchat","normal"]),a=new Map([["markable",0],["received",1],["displayed",2],["acknowledged",3]]),c=(e,t)=>{var n;return e.marker&&(a.get(e.marker.type)<a.get(t)||"markable"===(null===(n=e.marker)||void 0===n?void 0:n.type))};async function l(e,t){await e.sendIQ({carbons:{action:t},type:"set"})}t.default=function(e){e.disco.addFeature(r.NS_ATTENTION_0),e.disco.addFeature(r.NS_CHAT_MARKERS_0),e.disco.addFeature(r.NS_CHAT_STATES),e.disco.addFeature(r.NS_CORRECTION_0),e.disco.addFeature(r.NS_RECEIPTS),e.disco.addFeature(r.NS_RTT_0),e.enableCarbons=()=>l(e,"enable"),e.disableCarbons=()=>l(e,"disable"),e.markReceived=t=>e.sendMarker(t,"received"),e.markDisplayed=t=>e.sendMarker(t,"displayed"),e.markAcknowledged=t=>e.sendMarker(t,"acknowledged"),e.getAttention=function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.sendMessage({...n,requestingAttention:!0,to:t,type:"headline"})},e.sendMarker=(t,n,r)=>{if(!c(t,n)&&!r)return;const s=!1!==e.config.groupchatMarkersUseStanzaID;let o=t.id;if("groupchat"===t.type&&t.stanzaIds&&s){const e=t.stanzaIds.find(e=>i.equalBare(e.by,t.from));e&&(o=e.id)}e.sendMessage({marker:{id:o,type:n},to:"groupchat"===t.type?i.toBare(t.from):t.from,type:t.type})},e.on("message",t=>{if(t.carbon&&i.equalBare(t.from,e.jid)){const n=t.carbon.forward.message;n.delay||(n.delay=t.carbon.forward.delay||{timestamp:new Date(Date.now())}),(e=>!!e.carbon&&"received"===e.carbon.type)(t)&&(e.emit("carbon:received",t),e.emit("message",n)),(e=>!!e.carbon&&"sent"===e.carbon.type)(t)&&(e.emit("carbon:sent",t),e.emit("message:sent",n,!0))}(e=>!!e.forms&&e.forms.length>0)(t)&&e.emit("dataform",t),t.requestingAttention&&e.emit("attention",t),(e=>!!e.rtt)(t)&&e.emit("rtt",t),(e=>!!e.replace)(t)&&e.emit("replace",t),(e=>!!e.chatState)(t)&&o.has(t.type||"normal")&&e.emit("chat:state",t);const n=!1!==e.config.sendReceipts,r=!1!==e.config.sendMUCReceipts,a=!1!==e.config.chatMarkers,l=!1!==e.config.groupchatMarkersUseStanzaID,u=(e=>{var t;return!!e.receipt&&"request"===e.receipt.type&&s.has(null!==(t=e.type)&&void 0!==t?t:"normal")})(t),d=c(t,"received"),h=u&&n&&("groupchat"!==t.type||r);if(h||a&&d){const n="groupchat"===t.type?i.toBare(t.from):t.from;let r=t.id;if("groupchat"===t.type&&t.stanzaIds&&l){const e=t.stanzaIds.find(e=>i.equalBare(e.by,t.from));e&&(r=e.id)}e.sendMessage({receipt:h?{id:t.id,type:"received"}:void 0,marker:a&&d?{id:r,type:"received"}:void 0,to:n,type:t.type})}t.receipt&&"received"===t.receipt.type&&e.emit("receipt",t),t.marker&&"markable"!==t.marker.type&&e.emit("marker:"+t.marker.type,t)})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(6),r=n(8),s=(0,i.__importStar)(n(13)),o=n(2),a=n(17);t.default=function(e){e.disco.addFeature(o.NS_MUC),e.disco.addFeature(o.NS_MUC_DIRECT_INVITE),e.disco.addFeature(o.NS_HATS_0),e.joinedRooms=new Map,e.joiningRooms=new Map,e.leavingRooms=new Map,e.on("session:started",(function(){const t=e.joiningRooms;e.joiningRooms=new Map;for(const[n,i]of t)e.joinRoom(n,i);const n=e.joinedRooms;e.joinedRooms=new Map;for(const[t,i]of n)e.joinRoom(t,i)})),e.on("message",t=>{if("groupchat"!==t.type||!t.hasSubject||t.body){if(t.muc)if("direct-invite"===t.muc.type||!t.muc.invite&&t.legacyMUC){const 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)}else e.emit("muc:topic",{from:t.from,room:s.toBare(t.from),topic:t.subject||""})}),e.on("presence",t=>{const n=s.toBare(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))return;const i=t.muc.statusCodes&&t.muc.statusCodes.indexOf(r.MUCStatusCode.SelfPresence)>=0,o=t.muc.statusCodes&&t.muc.statusCodes.indexOf(r.MUCStatusCode.NickChanged)>=0;if("error"===t.type)return void e.emit("muc:error",t);if("unavailable"===t.type)return e.emit("muc:unavailable",t),i&&(o?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);const a=e.joiningRooms.has(n)||!e.joinedRooms.has(n);i&&(e.joinedRooms.set(n,s.getResource(t.from)),a&&(e.joiningRooms.delete(n),e.emit("muc:join",t)))}),e.joinRoom=async function(t,n){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t=s.toBare(t),e.joiningRooms.set(t,n||""),!n)try{n=await e.getReservedNick(t),e.joiningRooms.set(t,n)}catch(e){throw new Error("Room nick required")}return new Promise((r,o)=>{function a(n){s.equalBare(n.from,t)&&(e.off("muc:join",a),e.off("muc:failed",c),r(n))}function c(n){s.equalBare(n.from,t)&&(e.off("muc:join",a),e.off("muc:failed",c),o(n))}e.on("muc:join",a),e.on("muc:failed",c),e.sendPresence({...i,muc:{...i.muc,type:"join"},to:s.createFull(t,n)})})},e.leaveRoom=function(t,n){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t=s.toBare(t),n=n||e.joinedRooms.get(t),e.leavingRooms.set(t,n),new Promise((r,o)=>{const c=i.id||(0,a.uuid)(),l=s.allowedResponders(t);function u(n){s.equalBare(n.from,t)&&(e.off("muc:leave",u),e.off("presence:error",d),r(n))}function d(n){n.id===c&&l.has(n.from)&&(e.joinedRooms.has(t)||e.leavingRooms.delete(t),e.off("muc:leave",u),e.off("presence:error",d),o(n))}e.on("muc:leave",u),e.on("presence:error",d),e.sendPresence({...i,id:c,to:s.createFull(t,n),type:"unavailable"})})},e.ban=(t,n,i)=>e.setRoomAffiliation(t,n,"outcast",i),e.kick=(t,n,i)=>e.setRoomRole(t,n,"none",i),e.invite=function(t){let 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){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};e.sendMessage({muc:{...i,jid:t,type:"direct-invite"},to:n})},e.declineInvite=(t,n,i)=>{e.sendMessage({muc:{decline:{reason:i,to:n},type:"info"},to:t})},e.changeNick=(t,n)=>{const i=(0,a.uuid)(),o=s.createFull(t,n),c=s.allowedResponders(t);return new Promise((t,n)=>{function a(n){c.has(s.toBare(n.from))&&n.muc.statusCodes&&n.muc.statusCodes.includes(r.MUCStatusCode.SelfPresence)&&(e.off("muc:available",a),e.off("presence:id:"+i,l),t(n))}function l(r){c.has(s.toBare(r.from))&&r.id===i&&(e.off("muc:available",a),e.off("presence:id:"+i,l),"error"===r.type?n(r):t(r))}e.on("muc:available",a),e.on("presence:id:"+i,l),e.sendPresence({id:i,to:o})})},e.setSubject=(t,n)=>{e.sendMessage({subject:n,to:t,type:"groupchat"})},e.getReservedNick=async t=>{try{const n=(await e.getDiscoInfo(t,"x-roomuser-item")).identities[0];if(n.name)return n.name;throw new Error("No nickname reserved")}catch(e){throw new Error("No nickname reserved")}},e.requestRoomVoice=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=(t,n,i,r)=>e.sendIQ({muc:{type:"user-list",users:[{affiliation:i,jid:n,reason:r}]},to:t,type:"set"}),e.setRoomRole=(t,n,i,r)=>e.sendIQ({muc:{type:"user-list",users:[{nick:n,reason:r,role:i}]},to:t,type:"set"}),e.getRoomMembers=function(t){let 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=async t=>{const n=await e.sendIQ({muc:{type:"configure"},to:t,type:"get"});if(!n.muc.form)throw new Error("No configuration form returned");return n.muc.form},e.configureRoom=function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.sendIQ({muc:{form:{...n,type:"submit"},type:"configure"},to:t,type:"set"})},e.destroyRoom=function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.sendIQ({muc:{destroy:n,type:"configure"},to:t,type:"set"})},e.getUniqueRoomName=async function(e){const t=await this.sendIQ({muc:{type:"unique"},to:e,type:"get"});if(!t.muc.name)throw new Error("No unique name returned");return t.muc.name},e.getBookmarks=async()=>{const t=await e.getPrivateData("bookmarks");return t&&t.rooms?t.rooms:[]},e.setBookmarks=t=>e.setPrivateData("bookmarks",{rooms:t}),e.addBookmark=async t=>{const n=await e.getBookmarks(),i=[];let r=!1;for(const e of n)s.equalBare(e.jid,t.jid)?(i.push({...e,...t}),r=!0):i.push(e);return r||i.push(t),e.setBookmarks(i)},e.removeBookmark=async t=>{const n=(await e.getBookmarks()).filter(e=>!s.equalBare(e.jid,t));return e.setBookmarks(n)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(2);t.default=function(e){e.disco.addFeature(i.NS_ACTIVITY),e.disco.addFeature(i.NS_GEOLOC),e.disco.addFeature(i.NS_MOOD),e.disco.addFeature(i.NS_NICK),e.disco.addFeature(i.NS_TUNE),e.disco.addFeature((0,i.NS_PEP_NOTIFY)(i.NS_ACTIVITY)),e.disco.addFeature((0,i.NS_PEP_NOTIFY)(i.NS_GEOLOC)),e.disco.addFeature((0,i.NS_PEP_NOTIFY)(i.NS_MOOD)),e.disco.addFeature((0,i.NS_PEP_NOTIFY)(i.NS_NICK)),e.disco.addFeature((0,i.NS_PEP_NOTIFY)(i.NS_TUNE)),e.publishActivity=t=>e.publish("",i.NS_ACTIVITY,{itemType:i.NS_ACTIVITY,...t}),e.publishGeoLoc=t=>e.publish("",i.NS_GEOLOC,{itemType:i.NS_GEOLOC,...t}),e.publishMood=t=>e.publish("",i.NS_MOOD,{itemType:i.NS_MOOD,...t}),e.publishNick=t=>e.publish("",i.NS_NICK,{itemType:i.NS_NICK,nick:t}),e.publishTune=t=>e.publish("",i.NS_TUNE,{itemType:i.NS_TUNE,...t}),e.on("pubsub:published",t=>{const n=t.pubsub.items.published[0].content;switch(t.pubsub.items.node){case i.NS_ACTIVITY:return e.emit("activity",{activity:n,jid:t.from});case i.NS_GEOLOC:return e.emit("geoloc",{geoloc:n,jid:t.from});case i.NS_MOOD:return e.emit("mood",{jid:t.from,mood:n});case i.NS_NICK:return e.emit("nick",{jid:t.from,nick:n.nick});case i.NS_TUNE:return e.emit("tune",{jid:t.from,tune:t.pubsub.items.published[0].content})}})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=(0,n(6).__importStar)(n(13)),r=n(2);t.default=function(e){e.disco.addFeature(r.NS_SHIM+"#SubID",r.NS_SHIM),e.on("message",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=async(t,n)=>{const r={};let s;"string"==typeof n?(r.node=n,r.jid=i.toBare(e.jid)):(r.node=n.node,r.jid=n.jid||(n.useBareJID?i.toBare(e.jid):e.jid),s=n.options);const o=await e.sendIQ({pubsub:{context:"user",subscribe:r,subscriptionOptions:s?{form:s}:void 0},to:t,type:"set"}),a=o.pubsub.subscription||{};return o.pubsub.subscriptionOptions&&(a.options=o.pubsub.subscriptionOptions.form),a},e.unsubscribeFromNode=async(t,n)=>{const r={};"string"==typeof n?(r.node=n,r.jid=i.toBare(e.jid)):(r.node=n.node,r.subid=n.subid,r.jid=n.jid||(n.useBareJID?i.toBare(e.jid):e.jid));const s=await e.sendIQ({pubsub:{context:"user",unsubscribe:r},to:t,type:"set"});return s.pubsub&&s.pubsub.subscription?s.pubsub.subscription:{...r,state:"none"}},e.publish=(t,n,i,r)=>e.sendIQ({pubsub:{context:"user",publish:{item:{content:i,id:r},node:n}},to:t,type:"set"}),e.getItem=async(t,n,i)=>(await e.sendIQ({pubsub:{context:"user",fetch:{items:[{id:i}],node:n}},to:t,type:"get"})).pubsub.fetch.items[0],e.getItems=async function(t,n){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=await e.sendIQ({pubsub:{context:"user",fetch:{max:i.max,node:n},paging:i},to:t,type:"get"}),s=r.pubsub.fetch;return s.paging=r.pubsub.paging,s},e.retract=(t,n,i,r)=>e.sendIQ({pubsub:{context:"user",retract:{id:i,node:n,notify:r}},to:t,type:"set"}),e.purgeNode=(t,n)=>e.sendIQ({pubsub:{context:"owner",purge:n},to:t,type:"set"}),e.deleteNode=(t,n,i)=>e.sendIQ({pubsub:{context:"owner",destroy:{node:n,redirect:i}},to:t,type:"set"}),e.createNode=async(t,n,i)=>{const r=await e.sendIQ({pubsub:{configure:i?{form:i}:void 0,context:"user",create:{node:n}},to:t,type:"set"});return r.pubsub&&r.pubsub.create?r.pubsub.create:{node:n}},e.getSubscriptions=async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=await e.sendIQ({pubsub:{context:"user",subscriptions:n},to:t,type:"get"});return i.pubsub.subscriptions},e.getAffiliations=(t,n)=>e.sendIQ({pubsub:{affiliations:{node:n}},to:t,type:"get"}),e.getNodeSubscribers=function(t,n){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return"string"==typeof n?i.node=n:i={...i,...n},e.sendIQ({pubsub:{context:"owner",subscriptions:i},to:t,type:"get"})},e.updateNodeSubscriptions=(t,n,i)=>e.sendIQ({pubsub:{context:"owner",subscriptions:{items:i,node:n}},to:t,type:"set"}),e.getNodeAffiliations=async(t,n)=>(await e.sendIQ({pubsub:{affiliations:{node:n},context:"owner"},to:t,type:"get"})).pubsub.affiliations,e.updateNodeAffiliations=(t,n,i)=>e.sendIQ({pubsub:{affiliations:{items:i,node:n},context:"owner"},to:t,type:"set"}),e.getNodeConfig=async(t,n)=>(await e.sendIQ({pubsub:{configure:{node:n},context:"owner"},to:t,type:"get"})).pubsub.configure.form||{},e.getDefaultNodeConfig=async t=>(await e.sendIQ({pubsub:{context:"owner",defaultConfiguration:{}},to:t,type:"get"})).pubsub.defaultConfiguration.form||{},e.configureNode=async(t,n,i)=>e.sendIQ({pubsub:{configure:{form:i,node:n},context:"owner"},to:t,type:"set"}),e.getDefaultSubscriptionOptions=async t=>(await e.sendIQ({pubsub:{defaultSubscriptionOptions:{}},to:t,type:"get"})).pubsub.defaultSubscriptionOptions.form||{}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=(0,n(6).__importStar)(n(13));t.default=function(e){async function t(t,n){await e.sendIQ({blockList:{action:t,jids:[n]},type:"set"})}e.on("iq:set:roster",t=>{if(!i.allowedResponders(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",t=>{if(!i.allowedResponders(e.jid).has(t.from))return e.sendIQError(t,{error:{condition:"service-unavailable",type:"cancel"}});const n=t.blockList;e.emit(n.action,{jids:n.jids||[]}),e.sendIQResult(t)}),e.getRoster=async()=>{const t=await e.sendIQ({roster:{version:e.config.rosterVer},type:"get"});if(t.roster){const n=t.roster.version;return n&&(e.config.rosterVer=n,e.emit("roster:ver",n)),t.roster.items=t.roster.items||[],t.roster}return{items:[]}},e.updateRosterItem=async t=>{await e.sendIQ({roster:{items:[t]},type:"set"})},e.removeRosterItem=t=>e.updateRosterItem({jid:t,subscription:"remove"}),e.subscribe=t=>{e.sendPresence({type:"subscribe",to:t})},e.unsubscribe=t=>{e.sendPresence({type:"unsubscribe",to:t})},e.acceptSubscription=t=>{e.sendPresence({type:"subscribed",to:t})},e.denySubscription=t=>{e.sendPresence({type:"unsubscribed",to:t})},e.getBlocked=async()=>({jids:[],...(await e.sendIQ({blockList:{action:"list"},type:"get"})).blockList}),e.block=async e=>t("block",e),e.unblock=async e=>t("unblock",e),e.goInvisible=async function(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];await e.sendIQ({type:"set",visiblity:{probe:t,type:"invisible"}})},e.goVisible=async()=>{await e.sendIQ({type:"set",visiblity:{type:"visible"}})}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){e.registerFeature("sasl",100,async(t,n)=>{const i=e.sasl.createMechanism(t.sasl.mechanisms),r=async t=>{if(i)switch(t.type){case"success":return e.features.negotiated.sasl=!0,e.off("sasl",r),e.emit("auth:success",e.config.credentials),e.transport&&(e.transport.authenticated=!0),void n("restart");case"challenge":i.processChallenge(t.value);try{const t=await e.getCredentials(),n=i.createResponse(t);n||""===n?e.send("sasl",{type:"response",value:n}):e.send("sasl",{type:"response"});const r=i.getCacheableCredentials();r&&(e.config.credentials||(e.config.credentials={}),e.config.credentials={...e.config.credentials,...r},e.emit("credentials:update",e.config.credentials))}catch(t){console.error(t),e.send("sasl",{type:"abort"})}return;case"failure":case"abort":return e.off("sasl",r),e.emit("auth:failed"),void n("disconnect","authentication failed")}};if(!i)return e.off("sasl",r),e.emit("auth:failed"),n("disconnect","authentication failed");e.on("sasl",r),e.once("--reset-stream-features",()=>{e.features.negotiated.sasl=!1,e.off("sasl",r)});try{const t=await e.getCredentials();e.send("sasl",{mechanism:i.name,type:"auth",value:i.createResponse(t)})}catch(t){console.error(t),e.send("sasl",{type:"abort"})}})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=(0,n(6).__importStar)(n(13)),r=n(2);t.default=function(e){async function t(t){const n=await e.getDiscoInfo(t);if(!n.features||!n.features.includes(r.NS_HTTP_UPLOAD_0))return;let i;for(const e of n.extensions||[]){const n=e.fields||[];if(n.some(e=>"FORM_TYPE"===e.name&&e.value===r.NS_HTTP_UPLOAD_0)){const e=n.find(e=>"max-file-size"===e.name);return e&&(i=parseInt(e.value,10)),{jid:t,maxSize:i}}}}e.disco.addFeature(r.NS_BOB),e.getBits=async(t,n)=>(await e.sendIQ({bits:{cid:n},to:t,type:"get"})).bits,e.getUploadService=async function(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.getDomain(e.jid);const r=await t(n);if(r)return r;const s=await e.getDiscoItems(n);for(const e of s.items||[]){if(!e.jid)continue;const n=await t(e.jid);if(n)return n}throw new Error("No upload service discovered on: "+n)},e.getUploadSlot=async(t,n)=>(await e.sendIQ({httpUpload:{type:"request",...n},to:t,type:"get"})).httpUpload}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(6);(0,i.__exportStar)(n(126),t),(0,i.__exportStar)(n(127),t),(0,i.__exportStar)(n(128),t),(0,i.__exportStar)(n(129),t),(0,i.__exportStar)(n(130),t),(0,i.__exportStar)(n(131),t),(0,i.__exportStar)(n(132),t),(0,i.__exportStar)(n(133),t),(0,i.__exportStar)(n(134),t),(0,i.__exportStar)(n(135),t),(0,i.__exportStar)(n(136),t),(0,i.__exportStar)(n(137),t),(0,i.__exportStar)(n(138),t),(0,i.__exportStar)(n(139),t),(0,i.__exportStar)(n(140),t),(0,i.__exportStar)(n(141),t),(0,i.__exportStar)(n(142),t),(0,i.__exportStar)(n(143),t),(0,i.__exportStar)(n(144),t),(0,i.__exportStar)(n(145),t),(0,i.__exportStar)(n(146),t),(0,i.__exportStar)(n(147),t),(0,i.__exportStar)(n(148),t),(0,i.__exportStar)(n(149),t),(0,i.__exportStar)(n(150),t),(0,i.__exportStar)(n(151),t),(0,i.__exportStar)(n(152),t),(0,i.__exportStar)(n(153),t),(0,i.__exportStar)(n(154),t),(0,i.__exportStar)(n(155),t),(0,i.__exportStar)(n(156),t),(0,i.__exportStar)(n(157),t),(0,i.__exportStar)(n(158),t),(0,i.__exportStar)(n(159),t),(0,i.__exportStar)(n(160),t),(0,i.__exportStar)(n(161),t),(0,i.__exportStar)(n(162),t),(0,i.__exportStar)(n(163),t),(0,i.__exportStar)(n(164),t),(0,i.__exportStar)(n(165),t),(0,i.__exportStar)(n(166),t),(0,i.__exportStar)(n(167),t),(0,i.__exportStar)(n(168),t),(0,i.__exportStar)(n(169),t),(0,i.__exportStar)(n(170),t),(0,i.__exportStar)(n(171),t),(0,i.__exportStar)(n(172),t),(0,i.__exportStar)(n(173),t),(0,i.__exportStar)(n(174),t),(0,i.__exportStar)(n(175),t),(0,i.__exportStar)(n(176),t),(0,i.__exportStar)(n(177),t),(0,i.__exportStar)(n(178),t),(0,i.__exportStar)(n(179),t),(0,i.__exportStar)(n(180),t),(0,i.__exportStar)(n(181),t),(0,i.__exportStar)(n(182),t),(0,i.__exportStar)(n(183),t),(0,i.__exportStar)(n(184),t),(0,i.__exportStar)(n(185),t),(0,i.__exportStar)(n(186),t),(0,i.__exportStar)(n(187),t),(0,i.__exportStar)(n(188),t),(0,i.__exportStar)(n(189),t),(0,i.__exportStar)(n(190),t),(0,i.__exportStar)(n(191),t),(0,i.__exportStar)(n(192),t),(0,i.__exportStar)(n(193),t),(0,i.__exportStar)(n(194),t),(0,i.__exportStar)(n(195),t),(0,i.__exportStar)(n(196),t),(0,i.__exportStar)(n(197),t),(0,i.__exportStar)(n(198),t),(0,i.__exportStar)(n(199),t),(0,i.__exportStar)(n(200),t),(0,i.__exportStar)(n(201),t),(0,i.__exportStar)(n(202),t),(0,i.__exportStar)(n(203),t),(0,i.__exportStar)(n(204),t),(0,i.__exportStar)(n(205),t),(0,i.__exportStar)(n(66),t);const r=(0,i.__importDefault)(n(126)),s=(0,i.__importDefault)(n(127)),o=(0,i.__importDefault)(n(128)),a=(0,i.__importDefault)(n(129)),c=(0,i.__importDefault)(n(130)),l=(0,i.__importDefault)(n(131)),u=(0,i.__importDefault)(n(132)),d=(0,i.__importDefault)(n(133)),h=(0,i.__importDefault)(n(134)),p=(0,i.__importDefault)(n(135)),f=(0,i.__importDefault)(n(136)),m=(0,i.__importDefault)(n(137)),g=(0,i.__importDefault)(n(138)),y=(0,i.__importDefault)(n(139)),v=(0,i.__importDefault)(n(140)),b=(0,i.__importDefault)(n(141)),_=(0,i.__importDefault)(n(142)),S=(0,i.__importDefault)(n(143)),w=(0,i.__importDefault)(n(144)),T=(0,i.__importDefault)(n(145)),I=(0,i.__importDefault)(n(146)),A=(0,i.__importDefault)(n(147)),E=(0,i.__importDefault)(n(148)),N=(0,i.__importDefault)(n(149)),x=(0,i.__importDefault)(n(150)),C=(0,i.__importDefault)(n(151)),R=(0,i.__importDefault)(n(152)),O=(0,i.__importDefault)(n(153)),k=(0,i.__importDefault)(n(154)),P=(0,i.__importDefault)(n(155)),j=(0,i.__importDefault)(n(156)),M=(0,i.__importDefault)(n(157)),L=(0,i.__importDefault)(n(159)),D=(0,i.__importDefault)(n(160)),F=(0,i.__importDefault)(n(161)),B=(0,i.__importDefault)(n(158)),q=(0,i.__importDefault)(n(162)),U=(0,i.__importDefault)(n(163)),z=(0,i.__importDefault)(n(164)),J=(0,i.__importDefault)(n(165)),G=(0,i.__importDefault)(n(166)),H=(0,i.__importDefault)(n(167)),V=(0,i.__importDefault)(n(168)),W=(0,i.__importDefault)(n(169)),$=(0,i.__importDefault)(n(170)),Q=(0,i.__importDefault)(n(171)),K=(0,i.__importDefault)(n(172)),Y=(0,i.__importDefault)(n(173)),X=(0,i.__importDefault)(n(174)),Z=(0,i.__importDefault)(n(175)),ee=(0,i.__importDefault)(n(176)),te=(0,i.__importDefault)(n(177)),ne=(0,i.__importDefault)(n(178)),ie=(0,i.__importDefault)(n(179)),re=(0,i.__importDefault)(n(180)),se=(0,i.__importDefault)(n(181)),oe=(0,i.__importDefault)(n(182)),ae=(0,i.__importDefault)(n(183)),ce=(0,i.__importDefault)(n(184)),le=(0,i.__importDefault)(n(185)),ue=(0,i.__importDefault)(n(186)),de=(0,i.__importDefault)(n(187)),he=(0,i.__importDefault)(n(188)),pe=(0,i.__importDefault)(n(189)),fe=(0,i.__importDefault)(n(190)),me=(0,i.__importDefault)(n(191)),ge=(0,i.__importDefault)(n(192)),ye=(0,i.__importDefault)(n(193)),ve=(0,i.__importDefault)(n(194)),be=(0,i.__importDefault)(n(195)),_e=(0,i.__importDefault)(n(196)),Se=(0,i.__importDefault)(n(197)),we=(0,i.__importDefault)(n(198)),Te=(0,i.__importDefault)(n(199)),Ie=(0,i.__importDefault)(n(200)),Ae=(0,i.__importDefault)(n(201)),Ee=(0,i.__importDefault)(n(202)),Ne=(0,i.__importDefault)(n(203)),xe=(0,i.__importDefault)(n(204)),Ce=(0,i.__importDefault)(n(205)),Re=(0,i.__importDefault)(n(66)),Oe=[r.default,s.default,o.default,a.default,c.default,l.default,u.default,d.default,h.default,p.default,f.default,m.default,g.default,y.default,v.default,b.default,_.default,S.default,w.default,T.default,I.default,A.default,E.default,N.default,x.default,C.default,R.default,O.default,k.default,P.default,j.default,M.default,L.default,D.default,F.default,B.default,q.default,U.default,z.default,J.default,G.default,H.default,V.default,W.default,$.default,Q.default,K.default,Y.default,X.default,Z.default,ee.default,te.default,ne.default,ie.default,re.default,se.default,oe.default,ae.default,ce.default,le.default,ue.default,de.default,he.default,pe.default,fe.default,me.default,ge.default,ye.default,ve.default,be.default,_e.default,Se.default,we.default,Te.default,Ie.default,Ae.default,Ee.default,Ne.default,xe.default,Ce.default,Re.default];t.default=Oe},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s={aliases:["features.legacySession","iq.legacySession"],element:"session",fields:{optional:(0,i.childBoolean)(null,"optional")},namespace:r.NS_SESSION};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s=[{aliases:["atomentry",...(0,i.pubsubItemContentAliases)()],element:"entry",fields:{id:(0,i.childText)(null,"id"),published:(0,i.childDate)(null,"published"),updated:(0,i.childDate)(null,"updated")},namespace:r.NS_ATOM,type:r.NS_ATOM,typeField:"itemType"},{element:"summary",fields:{text:(0,i.text)(),type:(0,i.attribute)("type","text")},namespace:r.NS_ATOM,path:"atomentry.summary"},{element:"title",fields:{text:(0,i.text)(),type:(0,i.attribute)("type","text")},namespace:r.NS_ATOM,path:"atomentry.title"},{aliases:[{path:"atomentry.links",multiple:!0}],element:"link",fields:{href:(0,i.attribute)("href"),mediaType:(0,i.attribute)("type"),rel:(0,i.attribute)("rel")},namespace:r.NS_ATOM},{aliases:[{path:"atomentry.authors",multiple:!0}],element:"author",fields:{name:(0,i.childText)(null,"name"),uri:(0,i.childText)(null,"uri"),email:(0,i.childText)(null,"email")},namespace:r.NS_ATOM},{aliases:[{path:"atomentry.contributors",multiple:!0}],element:"contributor",fields:{name:(0,i.childText)(null,"name"),uri:(0,i.childText)(null,"uri"),email:(0,i.childText)(null,"email")},namespace:r.NS_ATOM},{aliases:[{path:"atomentry.categories",multiple:!0}],element:"category",fields:{term:(0,i.attribute)("term"),scheme:(0,i.attribute)("scheme"),label:(0,i.attribute)("label")},namespace:r.NS_ATOM},{element:"content",fields:{text:(0,i.text)(),type:(0,i.attribute)("type","text")},namespace:r.NS_ATOM,path:"atomentry.content"},{element:"rights",fields:{text:(0,i.text)(),type:(0,i.attribute)("type","text")},namespace:r.NS_ATOM,path:"atomentry.rights"}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(8),r=n(3),s=n(2),o={defaultType:"stream",element:"stream",fields:{from:(0,r.attribute)("from"),id:(0,r.attribute)("id"),lang:(0,r.languageAttribute)(),to:(0,r.attribute)("to"),version:(0,r.attribute)("version")},namespace:s.NS_STREAM,path:"stream",type:"stream",typeField:"action"},a={element:"features",namespace:s.NS_STREAM,path:"features"},c={element:"error",fields:{alternateLanguageText:(0,r.childAlternateLanguageText)(s.NS_STREAMS,"text"),condition:(0,r.childEnum)(s.NS_STREAMS,Object.values(i.StreamErrorCondition),i.StreamErrorCondition.UndefinedCondition),seeOtherHost:(0,r.childText)(s.NS_STREAMS,i.StreamErrorCondition.SeeOtherHost),text:(0,r.childText)(s.NS_STREAMS,"text")},namespace:s.NS_STREAM,path:"streamError"},l=Object.values(i.StreamType).map(e=>({aliases:["stanzaError","message.error","presence.error","iq.error"],defaultType:s.NS_CLIENT,element:"error",fields:{alternateLanguageText:(0,r.childAlternateLanguageText)(s.NS_STANZAS,"text"),by:(0,r.JIDAttribute)("by"),condition:(0,r.childEnum)(s.NS_STANZAS,Object.values(i.StanzaErrorCondition),i.StanzaErrorCondition.UndefinedCondition),gone:(0,r.childText)(s.NS_STANZAS,i.StanzaErrorCondition.Gone),redirect:(0,r.childText)(s.NS_STANZAS,i.StanzaErrorCondition.Redirect),text:(0,r.childText)(s.NS_STANZAS,"text"),type:(0,r.attribute)("type")},namespace:e,type:e,typeField:"streamType"})),u=new Set(["from","id","lang","to","type","payloadType","error","streamType"]),d=Object.values(i.StreamType).map(e=>({childrenExportOrder:{error:2e5},defaultType:s.NS_CLIENT,element:"iq",fields:{from:(0,r.JIDAttribute)("from"),id:(0,r.attribute)("id"),lang:(0,r.languageAttribute)(),payloadType:{order:-1e4,importer(e,t){if("get"!==t.data.type&&"set"!==t.data.type)return;if(1!==e.children.filter(e=>"string"!=typeof e).length)return"invalid-payload-count";const n=Object.keys(t.data).filter(e=>!u.has(e));return 1!==n.length?"unknown-payload":n[0]}},to:(0,r.JIDAttribute)("to"),type:(0,r.attribute)("type")},namespace:e,path:"iq",type:e,typeField:"streamType"})),h=Object.values(i.StreamType).map(e=>({childrenExportOrder:{error:2e5},defaultType:s.NS_CLIENT,element:"message",fields:{from:(0,r.JIDAttribute)("from"),id:(0,r.attribute)("id"),lang:(0,r.languageAttribute)(),to:(0,r.JIDAttribute)("to")},namespace:e,path:"message",type:e,typeField:"streamType"})),p=Object.values(i.StreamType).map(e=>({childrenExportOrder:{error:2e5},defaultType:s.NS_CLIENT,element:"presence",fields:{from:(0,r.JIDAttribute)("from"),id:(0,r.attribute)("id"),lang:(0,r.languageAttribute)(),to:(0,r.JIDAttribute)("to")},namespace:e,path:"presence",type:e,typeField:"streamType"})),f=[o,a,c,...l,...[{element:"mechanisms",fields:{mechanisms:(0,r.multipleChildText)(null,"mechanism")},namespace:s.NS_SASL,path:"features.sasl"},{element:"abort",namespace:s.NS_SASL,path:"sasl",type:"abort",typeField:"type"},{element:"auth",fields:{mechanism:(0,r.attribute)("mechanism"),value:(0,r.textBuffer)("base64")},namespace:s.NS_SASL,path:"sasl",type:"auth",typeField:"type"},{element:"challenge",fields:{value:(0,r.textBuffer)("base64")},namespace:s.NS_SASL,path:"sasl",type:"challenge",typeField:"type"},{element:"response",fields:{value:(0,r.textBuffer)("base64")},namespace:s.NS_SASL,path:"sasl",type:"response",typeField:"type"},{element:"success",fields:{value:(0,r.textBuffer)("base64")},namespace:s.NS_SASL,path:"sasl",type:"success",typeField:"type"},{element:"failure",fields:{alternateLanguageText:(0,r.childAlternateLanguageText)(s.NS_SASL,"text"),condition:(0,r.childEnum)(s.NS_SASL,Object.values(i.SASLFailureCondition)),text:(0,r.childText)(s.NS_SASL,"text")},namespace:s.NS_SASL,path:"sasl",type:"failure",typeField:"type"}],...[{aliases:["features.tls"],defaultType:"start",element:"starttls",fields:{required:(0,r.childBoolean)(null,"required")},namespace:s.NS_STARTTLS,path:"tls",type:"start",typeField:"type"},{element:"proceed",namespace:s.NS_STARTTLS,path:"tls",type:"proceed",typeField:"type"},{element:"failure",namespace:s.NS_STARTTLS,path:"tls",type:"failure",typeField:"type"}],...d,...h,...p,{aliases:["features.bind","iq.bind"],element:"bind",fields:{jid:(0,r.childText)(null,"jid"),resource:(0,r.childText)(null,"resource")},namespace:s.NS_BIND}];t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s=[(0,i.extendStreamFeatures)({rosterPreApproval:(0,i.childBoolean)(r.NS_SUBSCRIPTION_PREAPPROVAL,"sub"),rosterVersioning:(0,i.childBoolean)(r.NS_ROSTER_VERSIONING,"ver")}),(0,i.extendMessage)({alternateLanguageBodies:(0,i.childAlternateLanguageText)(null,"body"),alternateLanguageSubjects:(0,i.childAlternateLanguageText)(null,"subject"),body:(0,i.childText)(null,"body"),hasSubject:(0,i.childBoolean)(null,"subject"),parentThread:(0,i.childAttribute)(null,"thread","parent"),subject:(0,i.childText)(null,"subject"),thread:(0,i.childText)(null,"thread"),type:(0,i.attribute)("type")}),(0,i.extendPresence)({alternateLanguageStatuses:(0,i.childAlternateLanguageText)(null,"status"),priority:(0,i.childInteger)(null,"priority",0),show:(0,i.childText)(null,"show"),status:(0,i.childText)(null,"status"),type:(0,i.attribute)("type")}),{element:"query",fields:{version:(0,i.attribute)("ver",void 0,{emitEmpty:!0})},namespace:r.NS_ROSTER,path:"iq.roster"},{aliases:[{path:"iq.roster.items",multiple:!0}],element:"item",fields:{groups:(0,i.multipleChildText)(null,"group"),jid:(0,i.JIDAttribute)("jid"),name:(0,i.attribute)("name"),pending:(0,i.attribute)("ask"),preApproved:(0,i.booleanAttribute)("approved"),subscription:(0,i.attribute)("subscription")},namespace:r.NS_ROSTER}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s=[{element:"open",fields:{from:(0,i.attribute)("from"),id:(0,i.attribute)("id"),lang:(0,i.languageAttribute)(),to:(0,i.attribute)("to"),version:(0,i.attribute)("version")},namespace:r.NS_FRAMING,path:"stream",type:"open"},{element:"close",fields:{seeOtherURI:(0,i.attribute)("see-other-uri")},namespace:r.NS_FRAMING,path:"stream",type:"close"}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(8),r=n(3),s=n(2),o=[{aliases:[{path:"message.forms",multiple:!0}],element:"x",fields:{instructions:{...(0,r.multipleChildText)(null,"instructions"),exportOrder:2},reported:{...(0,r.splicePath)(null,"reported","dataformField",!0),exportOrder:3},title:{...(0,r.childText)(null,"title"),exportOrder:1},type:(0,r.attribute)("type")},namespace:s.NS_DATAFORM,optionalNamespaces:{xdv:s.NS_DATAFORM_VALIDATION},path:"dataform"},{aliases:[{path:"dataform.fields",multiple:!0},{path:"dataform.items.fields",multiple:!0}],element:"field",fields:{description:(0,r.childText)(null,"desc"),label:(0,r.attribute)("label"),name:(0,r.attribute)("var"),rawValues:{...(0,r.multipleChildText)(null,"value"),exporter:()=>null},required:(0,r.childBoolean)(null,"required"),type:(0,r.attribute)("type"),value:{importer(e,t){const n=e.getAttribute("type"),o=(0,r.multipleChildText)(s.NS_DATAFORM,"value").importer(e,t),a=o[0];switch(n){case i.DataFormFieldType.TextMultiple:case i.DataFormFieldType.ListMultiple:case i.DataFormFieldType.JIDMultiple:return o;case i.DataFormFieldType.Hidden:case i.DataFormFieldType.Fixed:return 1===o.length?a:o;case i.DataFormFieldType.Boolean:if(a)return"1"===a||"true"===a;break;default:return a}},exporter(e,t,n){const i=(0,r.multipleChildText)(null,"value");let o=[];const a=n.data&&n.data.rawValues?n.data.rawValues[0]:void 0;if("boolean"==typeof t)o="true"===a||"false"===a?[a]:[t?"1":"0"];else if(Array.isArray(t))for(const e of t)o.push(e.toString());else o=[t.toString()];i.exporter(e,o,Object.assign({},n,{namespace:s.NS_DATAFORM}))}}},namespace:s.NS_DATAFORM,path:"dataformField"},{aliases:[{path:"dataform.fields.options",multiple:!0}],element:"option",fields:{label:(0,r.attribute)("label"),value:(0,r.childText)(null,"value")},namespace:s.NS_DATAFORM},{aliases:[{path:"dataform.items",multiple:!0}],element:"item",namespace:s.NS_DATAFORM},{element:"validate",fields:{listMax:(0,r.childIntegerAttribute)(null,"list-range","max"),listMin:(0,r.childIntegerAttribute)(null,"list-range","min"),method:(0,r.childEnum)(null,["basic","open","range","regex"],"basic"),rangeMax:(0,r.childAttribute)(null,"range","max"),rangeMin:(0,r.childAttribute)(null,"range","min"),regex:(0,r.childText)(null,"regex"),type:(0,r.attribute)("datatype","xs:string")},namespace:s.NS_DATAFORM_VALIDATION,path:"dataform.fields.validation"}];t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s=[{aliases:["presence.legacyLastActivity","iq.lastActivity"],element:"query",fields:{seconds:(0,i.integerAttribute)("seconds"),status:(0,i.text)()},namespace:r.NS_LAST_ACTIVITY}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s=[{element:"query",fields:{activeList:(0,i.childAttribute)(null,"active","name"),defaultList:(0,i.childAttribute)(null,"default","name")},namespace:r.NS_PRIVACY,path:"iq.privacy"},{aliases:[{path:"iq.privacy.lists",multiple:!0}],element:"list",fields:{name:(0,i.attribute)("name")},namespace:r.NS_PRIVACY},{aliases:[{path:"iq.privacy.lists.items",multiple:!0}],element:"item",fields:{action:(0,i.attribute)("action"),incomingPresence:(0,i.childBoolean)(null,"presence-in"),iq:(0,i.childBoolean)(null,"iq"),messages:(0,i.childBoolean)(null,"message"),order:(0,i.integerAttribute)("order"),outgoingPresence:(0,i.childBoolean)(null,"presence-out"),type:(0,i.attribute)("type"),value:(0,i.attribute)("value")},namespace:r.NS_PRIVACY}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s=[{aliases:["iq.disco","message.disco","features.disco"],childrenExportOrder:{identities:1,features:2,extensions:3},element:"query",fields:{features:(0,i.multipleChildAttribute)(null,"feature","var"),node:(0,i.attribute)("node")},namespace:r.NS_DISCO_INFO,path:"disco",type:"info",typeField:"type"},{aliases:[{path:"disco.identities",selector:"info",multiple:!0}],element:"identity",fields:{category:(0,i.attribute)("category"),lang:(0,i.languageAttribute)(),name:(0,i.attribute)("name"),type:(0,i.attribute)("type")},namespace:r.NS_DISCO_INFO},{aliases:[{path:"disco.items",multiple:!0,selector:"items"}],element:"item",fields:{jid:(0,i.JIDAttribute)("jid"),name:(0,i.attribute)("name"),node:(0,i.attribute)("node")},namespace:r.NS_DISCO_ITEMS},{aliases:[{path:"disco.items",multiple:!0,selector:"info"}],element:"item",fields:{category:(0,i.JIDAttribute)("category"),lang:(0,i.languageAttribute)(),name:(0,i.attribute)("name"),type:(0,i.attribute)("type")},namespace:r.NS_DISCO_INFO},(0,i.addAlias)(r.NS_DATAFORM,"x",[{path:"disco.extensions",multiple:!0,selector:"info"}]),(0,i.addAlias)(r.NS_RSM,"set",[{path:"disco.paging",selector:"items"}]),{aliases:["iq.disco","message.disco","features.disco"],element:"query",fields:{node:(0,i.attribute)("node")},namespace:r.NS_DISCO_ITEMS,path:"disco",type:"items",typeField:"type"}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s=[(0,i.extendMessage)({addresses:(0,i.splicePath)(r.NS_ADDRESS,"addresses","extendedAddress",!0)}),(0,i.extendPresence)({addresses:(0,i.splicePath)(r.NS_ADDRESS,"addresses","extendedAddress",!0)}),{element:"address",fields:{alternateLanguageDescriptions:(0,i.childAlternateLanguageText)(null,"desc"),delivered:(0,i.booleanAttribute)("delivered"),description:(0,i.attribute)("desc"),jid:(0,i.JIDAttribute)("jid"),node:(0,i.attribute)("node"),type:(0,i.attribute)("type"),uri:(0,i.attribute)("uri")},namespace:r.NS_ADDRESS,path:"extendedAddress"}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s=[(0,i.addAlias)(r.NS_DATAFORM,"x",[{path:"iq.muc.form",selector:"configure"}]),{defaultType:"info",element:"x",fields:{password:(0,i.childText)(null,"password")},namespace:r.NS_MUC,path:"presence.muc",type:"join",typeField:"type"},{aliases:[{path:"presence.muc.history",selector:"join"}],element:"history",fields:{maxCharacters:(0,i.integerAttribute)("maxchars"),maxStanzas:(0,i.integerAttribute)("maxstanzas"),seconds:(0,i.integerAttribute)("seconds"),since:(0,i.dateAttribute)("since")},namespace:r.NS_MUC},{aliases:["presence.muc","message.muc"],defaultType:"info",element:"x",fields:{action:(0,i.childEnum)(null,["invite","decline","destroy"]),actor:(0,i.splicePath)(null,"item","mucactor"),affiliation:(0,i.childAttribute)(null,"item","affiliation"),jid:(0,i.childJIDAttribute)(null,"item","jid"),nick:(0,i.childAttribute)(null,"item","nick"),password:(0,i.childText)(null,"password"),reason:(0,i.deepChildText)([{namespace:null,element:"item"},{namespace:null,element:"reason"}]),role:(0,i.childAttribute)(null,"item","role"),statusCodes:(0,i.multipleChildAttribute)(null,"status","code")},namespace:r.NS_MUC_USER,type:"info",typeField:"type",typeOrder:1},{element:"actor",fields:{jid:(0,i.JIDAttribute)("jid"),nick:(0,i.attribute)("nick")},namespace:r.NS_MUC_USER,path:"mucactor"},{element:"destroy",fields:{jid:(0,i.JIDAttribute)("jid"),password:(0,i.childText)(null,"password"),reason:(0,i.childText)(null,"reason")},namespace:r.NS_MUC_USER,path:"presence.muc.destroy"},{aliases:[{path:"message.muc.invite",multiple:!0}],element:"invite",fields:{continue:(0,i.childBoolean)(null,"continue"),from:(0,i.JIDAttribute)("from"),reason:(0,i.childText)(null,"reason"),thread:(0,i.childAttribute)(null,"continue","thread"),to:(0,i.JIDAttribute)("to")},namespace:r.NS_MUC_USER},{element:"decline",fields:{from:(0,i.JIDAttribute)("from"),reason:(0,i.childText)(null,"reason"),to:(0,i.JIDAttribute)("to")},namespace:r.NS_MUC_USER,path:"message.muc",type:"decline"},{element:"query",namespace:r.NS_MUC_ADMIN,path:"iq.muc",type:"user-list",typeField:"type"},{aliases:[{path:"iq.muc.users",multiple:!0,selector:"user-list"}],element:"item",fields:{affiliation:(0,i.attribute)("affiliation"),jid:(0,i.JIDAttribute)("jid"),nick:(0,i.attribute)("nick"),reason:(0,i.childText)(null,"reason"),role:(0,i.attribute)("role")},namespace:r.NS_MUC_ADMIN},{aliases:["iq.muc.users.actor"],element:"actor",fields:{jid:(0,i.JIDAttribute)("jid"),nick:(0,i.attribute)("nick")},namespace:r.NS_MUC_ADMIN},{element:"query",namespace:r.NS_MUC_OWNER,path:"iq.muc",type:"configure",typeField:"type"},{aliases:[{path:"iq.muc.destroy",selector:"configure"}],element:"destroy",fields:{jid:(0,i.JIDAttribute)("jid"),password:(0,i.childText)(null,"password"),reason:(0,i.childText)(null,"reason")},namespace:r.NS_MUC_OWNER},{element:"x",fields:{action:(0,i.staticValue)("invite"),continue:(0,i.booleanAttribute)("continue"),jid:(0,i.JIDAttribute)("jid"),legacyReason:(0,i.text)(),password:(0,i.attribute)("password"),reason:(0,i.attribute)("reason"),thread:(0,i.attribute)("thread")},namespace:r.NS_MUC_DIRECT_INVITE,path:"message.muc",type:"direct-invite",typeOrder:2},{element:"unique",fields:{name:(0,i.text)()},namespace:r.NS_MUC_UNIQUE,path:"iq.muc",type:"unique"},(0,i.extendMessage)({legacyMUC:{exporter(e,t,n){const i=n.registry?n.registry.export("message.muc",{...t,type:"direct-invite"}):void 0;i&&e.appendChild(i)},exportOrder:100001,importer(e,t){if(!(0,i.findAll)(e,r.NS_MUC_USER,"x")[0])return;const n=(0,i.findAll)(e,r.NS_MUC_DIRECT_INVITE,"x")[0];return n&&t.registry?t.registry.import(n,{...t,path:"message"}):void 0},importOrder:-1}})];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s=[{aliases:["iq.ibb","message.ibb"],element:"open",fields:{ack:{importer:(e,t)=>"message"!==(0,i.attribute)("stanza","iq").importer(e,t),exporter(e,t,n){(0,i.attribute)("stanza").exporter(e,t?"iq":"message",n)}},blockSize:(0,i.integerAttribute)("block-size"),sid:(0,i.attribute)("sid")},namespace:r.NS_IBB,type:"open",typeField:"action"},{aliases:["iq.ibb","message.ibb"],element:"close",fields:{sid:(0,i.attribute)("sid")},namespace:r.NS_IBB,type:"close",typeField:"action"},{aliases:["iq.ibb","message.ibb"],element:"data",fields:{data:(0,i.textBuffer)("base64"),seq:(0,i.integerAttribute)("seq"),sid:(0,i.attribute)("sid")},namespace:r.NS_IBB,type:"data",typeField:"action"}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s=[{aliases:[{path:"bookmarkStorage",impliedType:!0},{path:"iq.privateStorage.bookmarks",impliedType:!0},...(0,i.pubsubItemContentAliases)()],element:"storage",namespace:r.NS_BOOKMARKS,type:r.NS_BOOKMARKS,typeField:"itemType"},{aliases:[{path:"bookmarkStorage.rooms",multiple:!0}],element:"conference",fields:{autoJoin:(0,i.booleanAttribute)("autojoin"),jid:(0,i.JIDAttribute)("jid"),name:(0,i.attribute)("name"),nick:(0,i.childText)(null,"nick"),password:(0,i.childText)(null,"password")},namespace:r.NS_BOOKMARKS}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i={element:"query",namespace:n(2).NS_PRIVATE,path:"iq.privateStorage"};t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s=[(0,i.addAlias)(r.NS_DATAFORM,"x",["iq.command.form"]),(0,i.extendStanzaError)({commandError:(0,i.childEnum)(r.NS_ADHOC_COMMANDS,["bad-action","bad-locale","bad-payload","bad-sessionid","malformed-action","session-expired"])}),{element:"command",fields:{action:(0,i.attribute)("action"),node:(0,i.attribute)("node"),sid:(0,i.attribute)("sessionid"),status:(0,i.attribute)("status")},namespace:r.NS_ADHOC_COMMANDS,path:"iq.command"},{element:"actions",fields:{complete:(0,i.childBoolean)(null,"complete"),execute:(0,i.attribute)("execute"),next:(0,i.childBoolean)(null,"next"),prev:(0,i.childBoolean)(null,"prev")},namespace:r.NS_ADHOC_COMMANDS,path:"iq.command.availableActions"},{aliases:[{path:"iq.command.notes",multiple:!0}],element:"note",fields:{type:(0,i.attribute)("type"),value:(0,i.text)()},namespace:r.NS_ADHOC_COMMANDS}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s="vcardTemp.records";function o(e,t){return{aliases:[{multiple:!0,path:s}],element:e,fields:{value:(0,i.text)()},namespace:r.NS_VCARD_TEMP,type:t,typeField:"type"}}const a=[{aliases:[{path:"iq.vcard"}],defaultType:r.NS_VCARD_TEMP,element:"vCard",fields:{fullName:(0,i.childText)(null,"FN")},namespace:r.NS_VCARD_TEMP,path:"vcardTemp",type:r.NS_VCARD_TEMP,typeField:"format"},{element:"N",fields:{additional:{...(0,i.childText)(null,"MIDDLE"),order:3},family:{...(0,i.childText)(null,"FAMILY"),order:1},given:{...(0,i.childText)(null,"GIVEN"),order:2},prefix:{...(0,i.childText)(null,"PREFIX"),order:4},suffix:{...(0,i.childText)(null,"SUFFIX"),order:5}},namespace:r.NS_VCARD_TEMP,path:"vcardTemp.name"},o("NICKNAME","nickname"),o("BDAY","birthday"),o("JABBERID","jid"),o("TZ","timezone"),o("TITLE","title"),o("ROLE","role"),o("URL","url"),o("NOTE","note"),o("SORT-STRING","sort"),o("UID","uid"),o("REV","revision"),o("PRODID","productId"),o("DESC","description"),{aliases:[{multiple:!0,path:s}],element:"EMAIL",fields:{preferred:(0,i.childBoolean)(null,"PREF"),types:(0,i.multipleChildEnum)(null,[["home","HOME"],["work","WORK"],["internet","INTERNET"]]),value:(0,i.childText)(null,"USERID")},namespace:r.NS_VCARD_TEMP,type:"email"},{aliases:[{path:s,multiple:!0}],element:"ORG",fields:{units:{...(0,i.multipleChildText)(null,"ORGUNIT"),order:2},value:{...(0,i.childText)(null,"ORGNAME"),order:1}},namespace:r.NS_VCARD_TEMP,type:"organization",typeField:"type"},{aliases:[{multiple:!0,path:s}],element:"ADR",fields:{city:(0,i.childText)(null,"LOCALITY"),code:(0,i.childText)(null,"PCODE"),country:(0,i.childText)(null,"CTRY"),pobox:(0,i.childText)(null,"POBOX"),preferred:(0,i.childBoolean)(null,"PREF"),region:(0,i.childText)(null,"REGION"),street:(0,i.childText)(null,"STREET"),street2:(0,i.childText)(null,"EXTADD"),types:(0,i.multipleChildEnum)(null,[["home","HOME"],["work","WORK"],["domestic","DOM"],["international","INTL"],["postal","POSTAL"],["parcel","PARCEL"]])},namespace:r.NS_VCARD_TEMP,type:"address",typeField:"type"},{aliases:[{multiple:!0,path:s}],element:"LABEL",fields:{lines:(0,i.multipleChildText)(null,"LINE"),preferred:(0,i.childBoolean)(null,"PREF"),types:(0,i.multipleChildEnum)(null,[["home","HOME"],["work","WORK"]])},namespace:r.NS_VCARD_TEMP,type:"addressLabel",typeField:"type"},{aliases:[{multiple:!0,path:s}],element:"TEL",fields:{preferred:(0,i.childBoolean)(null,"PREF"),types:(0,i.multipleChildEnum)(null,[["home","HOME"],["work","WORK"],["cell","CELL"],["fax","FAX"],["voice","VOICE"],["msg","MSG"]]),value:(0,i.childText)(null,"NUMBER","",!0)},namespace:r.NS_VCARD_TEMP,type:"tel",typeField:"type"},{aliases:[{multiple:!0,path:s}],element:"PHOTO",fields:{data:(0,i.childText)(null,"BINVAL"),mediaType:(0,i.childText)(null,"TYPE"),url:(0,i.childText)(null,"EXTVAL")},namespace:r.NS_VCARD_TEMP,type:"photo",typeField:"type"},{aliases:[{multiple:!0,path:s}],element:"LOGO",fields:{data:(0,i.childText)(null,"BINVAL"),mediaType:(0,i.childText)(null,"TYPE"),url:(0,i.childText)(null,"EXTVAL")},namespace:r.NS_VCARD_TEMP,type:"logo",typeField:"type"},{aliases:[{multiple:!0,path:s}],element:"CATEGORIES",fields:{value:(0,i.multipleChildText)(null,"KEYWORD")},namespace:r.NS_VCARD_TEMP,type:"categories",typeField:"type"}];t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s=[(0,i.addAlias)(r.NS_DATAFORM,"x",["iq.search.form"]),(0,i.addAlias)(r.NS_RSM,"set",["iq.search.paging"]),{element:"query",fields:{email:(0,i.childText)(null,"email"),familyName:(0,i.childText)(null,"last"),givenName:(0,i.childText)(null,"first"),instructions:(0,i.childText)(null,"instructions"),nick:(0,i.childText)(null,"nick")},namespace:r.NS_SEARCH,path:"iq.search"},{aliases:[{path:"iq.search.items",multiple:!0}],element:"item",fields:{email:(0,i.childText)(null,"email"),familyName:(0,i.childText)(null,"last"),givenName:(0,i.childText)(null,"first"),jid:(0,i.JIDAttribute)("jid"),nick:(0,i.childText)(null,"nick")},namespace:r.NS_SEARCH}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s={aliases:["iq.pubsub.paging"],element:"set",fields:{after:(0,i.childText)(null,"after"),before:(0,i.childText)(null,"before"),count:(0,i.childInteger)(null,"count"),first:(0,i.childText)(null,"first"),firstIndex:(0,i.childIntegerAttribute)(null,"first","index"),index:(0,i.childInteger)(null,"index"),last:(0,i.childText)(null,"last"),max:(0,i.childInteger)(null,"max")},namespace:r.NS_RSM,path:"paging"};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(8),r=n(3),s=n(2),o={configurable:(0,r.childBoolean)(null,"subscribe-options"),configurationRequired:(0,r.deepChildBoolean)([{namespace:null,element:"subscribe-options"},{namespace:null,element:"required"}]),jid:(0,r.JIDAttribute)("jid"),node:(0,r.attribute)("node"),state:(0,r.attribute)("subscription"),subid:(0,r.attribute)("subid")},a={node:(0,r.attribute)("node")},c=[{aliases:["pubsub","iq.pubsub","message.pubsub"],childrenExportOrder:{configure:0,create:100,publish:100,subscribe:100,subscriptionOptions:0},defaultType:"user",element:"pubsub",fields:{publishOptions:(0,r.splicePath)(null,"publish-options","dataform")},namespace:s.NS_PUBSUB,type:"user",typeField:"context"},{aliases:["pubsub","iq.pubsub","message.pubsub"],defaultType:"user",element:"pubsub",fields:{purge:(0,r.childAttribute)(null,"purge","node")},namespace:s.NS_PUBSUB_OWNER,type:"owner",typeField:"context"},(0,r.addAlias)(s.NS_DATAFORM,"x",["iq.pubsub.configure.form","iq.pubsub.defaultConfiguration.form","iq.pubsub.defaultSubscriptionOptions.form","iq.pubsub.subscriptionOptions.form","message.pubsub.configuration.form"]),(0,r.addAlias)(s.NS_RSM,"set",["iq.pubsub.fetch.paging"]),(0,r.extendStanzaError)({pubsubError:(0,r.childEnum)(s.NS_PUBSUB_ERRORS,Object.values(i.PubsubErrorCondition)),pubsubUnsupportedFeature:(0,r.childAttribute)(s.NS_PUBSUB_ERRORS,"unsupported","feature")}),{element:"subscribe",fields:{jid:(0,r.JIDAttribute)("jid"),node:(0,r.attribute)("node")},namespace:s.NS_PUBSUB,path:"iq.pubsub.subscribe"},{element:"unsubscribe",fields:{jid:(0,r.JIDAttribute)("jid"),node:(0,r.attribute)("node"),subid:(0,r.attribute)("subid")},namespace:s.NS_PUBSUB,path:"iq.pubsub.unsubscribe"},{element:"options",fields:{jid:(0,r.JIDAttribute)("jid"),node:(0,r.attribute)("node"),subid:(0,r.attribute)("subid")},namespace:s.NS_PUBSUB,path:"iq.pubsub.subscriptionOptions"},{aliases:[{path:"iq.pubsub.subscriptions",selector:"user",impliedType:!0}],element:"subscriptions",fields:{jid:(0,r.JIDAttribute)("jid"),node:(0,r.attribute)("node")},namespace:s.NS_PUBSUB,type:"user"},{aliases:[{path:"iq.pubsub.subscriptions",selector:"owner",impliedType:!0}],element:"subscriptions",fields:{jid:(0,r.JIDAttribute)("jid"),node:(0,r.attribute)("node")},namespace:s.NS_PUBSUB_OWNER,type:"owner"},{aliases:[{path:"iq.pubsub.subscription",selector:"owner"},{impliedType:!0,multiple:!0,path:"iq.pubsub.subscriptions.items",selector:"owner"}],element:"subscription",fields:o,namespace:s.NS_PUBSUB},{aliases:[{path:"iq.pubsub.subscription",selector:"user"},{impliedType:!0,multiple:!0,path:"iq.pubsub.subscriptions.items",selector:"user"}],element:"subscription",fields:o,namespace:s.NS_PUBSUB,type:"user"},{aliases:[{impliedType:!0,multiple:!0,path:"iq.pubsub.subscriptions.items",selector:"owner"}],element:"subscription",fields:o,namespace:s.NS_PUBSUB_OWNER,type:"owner"},{aliases:[{path:"iq.pubsub.affiliations",selector:"user",impliedType:!0},{path:"message.pubsub.affiliations",selector:"user",impliedType:!0}],element:"affiliations",fields:a,namespace:s.NS_PUBSUB,type:"user"},{aliases:[{path:"iq.pubsub.affiliations",selector:"owner",impliedType:!0}],element:"affiliations",fields:a,namespace:s.NS_PUBSUB_OWNER,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:(0,r.attribute)("affiliation"),jid:(0,r.JIDAttribute)("jid"),node:(0,r.attribute)("node")},namespace:s.NS_PUBSUB,type:"user"},{aliases:[{impliedType:!0,multiple:!0,path:"iq.pubsub.affiliations.items",selector:"owner"}],element:"affiliation",fields:{affiliation:(0,r.attribute)("affiliation"),jid:(0,r.JIDAttribute)("jid"),node:(0,r.attribute)("node")},namespace:s.NS_PUBSUB_OWNER,type:"owner"},{element:"create",fields:a,namespace:s.NS_PUBSUB,path:"iq.pubsub.create"},{aliases:[{path:"iq.pubsub.destroy",selector:"owner"}],element:"delete",fields:{node:(0,r.attribute)("node"),redirect:(0,r.childAttribute)(null,"redirect","uri")},namespace:s.NS_PUBSUB_OWNER},{aliases:[{path:"iq.pubsub.configure",selector:"owner",impliedType:!0}],element:"configure",fields:a,namespace:s.NS_PUBSUB_OWNER,type:"owner"},{aliases:[{path:"iq.pubsub.configure",selector:"user",impliedType:!0}],element:"configure",fields:a,namespace:s.NS_PUBSUB,type:"user"},{element:"default",fields:{node:(0,r.attribute)("node")},namespace:s.NS_PUBSUB,path:"iq.pubsub.defaultSubscriptionOptions"},{element:"default",fields:{},namespace:s.NS_PUBSUB_OWNER,path:"iq.pubsub.defaultConfiguration"},{element:"publish",fields:a,namespace:s.NS_PUBSUB,path:"iq.pubsub.publish"},{element:"retract",fields:{id:(0,r.childAttribute)(null,"item","id"),node:(0,r.attribute)("node"),notify:(0,r.booleanAttribute)("notify")},namespace:s.NS_PUBSUB,path:"iq.pubsub.retract"},{element:"items",fields:{max:(0,r.integerAttribute)("max_items"),node:(0,r.attribute)("node")},namespace:s.NS_PUBSUB,path:"iq.pubsub.fetch"},{aliases:["pubsubitem","iq.pubsub.publish.item",{multiple:!0,path:"iq.pubsub.fetch.items"}],element:"item",fields:{id:(0,r.attribute)("id"),publisher:(0,r.JIDAttribute)("publisher")},namespace:s.NS_PUBSUB},{element:"event",fields:{eventType:(0,r.childEnum)(null,["purge","delete","subscription","configuration","items"])},namespace:s.NS_PUBSUB_EVENT,path:"message.pubsub",type:"event",typeField:"context"},{aliases:[{path:"message.pubsub.items.published",multiple:!0}],element:"item",fields:{id:(0,r.attribute)("id"),publisher:(0,r.JIDAttribute)("publisher")},namespace:s.NS_PUBSUB_EVENT,path:"pubsubeventitem"},{element:"purge",fields:a,namespace:s.NS_PUBSUB_EVENT,path:"message.pubsub.purge"},{element:"delete",fields:{node:(0,r.attribute)("node"),redirect:(0,r.childAttribute)(null,"redirect","uri")},namespace:s.NS_PUBSUB_EVENT,path:"message.pubsub.delete"},{aliases:[{path:"message.pubsub.subscription",selector:"event",impliedType:!0}],element:"subscription",fields:{expires:(l="expiry",{importer(e){const t=e.getAttribute(l);return"presence"===t?t:t?new Date(t):void 0},exporter(e,t){let n;n="string"==typeof t?t:t.toISOString(),e.setAttribute(l,n)}}),jid:(0,r.JIDAttribute)("jid"),node:(0,r.attribute)("node"),subid:(0,r.attribute)("subid"),type:(0,r.attribute)("subscription")},namespace:s.NS_PUBSUB_EVENT,type:"event"},{element:"configuration",fields:a,namespace:s.NS_PUBSUB_EVENT,path:"message.pubsub.configuration"},{element:"items",fields:{node:(0,r.attribute)("node"),retracted:(0,r.multipleChildAttribute)(null,"retract","id")},namespace:s.NS_PUBSUB_EVENT,path:"message.pubsub.items"}];var l;t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s=[{element:"query",fields:{activate:(0,i.childText)(null,"activate"),address:(0,i.attribute)("dstaddr"),candidateUsed:(0,i.childJIDAttribute)(null,"streamhost-used","jid"),mode:(0,i.attribute)("mode","tcp"),sid:(0,i.attribute)("sid"),udpSuccess:(0,i.childAttribute)(null,"udpsuccess","dstaddr")},namespace:r.NS_SOCKS5,path:"iq.socks5"},{aliases:[{multiple:!0,path:"iq.socks5.candidates"}],element:"streamhost",fields:{host:(0,i.attribute)("host"),jid:(0,i.JIDAttribute)("jid"),port:(0,i.integerAttribute)("port"),uri:(0,i.attribute)("uri")},namespace:r.NS_SOCKS5}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s=[{aliases:[{multiple:!0,path:"message.links"}],element:"x",fields:{description:(0,i.childText)(null,"desc"),url:(0,i.childText)(null,"url")},namespace:r.NS_OOB},{element:"query",fields:{description:(0,i.childText)(null,"desc"),url:(0,i.childText)(null,"url")},namespace:r.NS_OOB_TRANSFER,path:"iq.transferLink"}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s={element:"html",fields:{alternateLanguageBodies:(0,i.childAlternateLanguageRawElement)(r.NS_XHTML,"body","xhtmlim"),body:(0,i.childLanguageRawElement)(r.NS_XHTML,"body","xhtmlim")},namespace:r.NS_XHTML_IM,path:"message.html"};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s=[(0,i.extendStreamFeatures)({inbandRegistration:(0,i.childBoolean)(r.NS_INBAND_REGISTRATION,"register")}),(0,i.addAlias)(r.NS_DATAFORM,"x",["iq.account.form"]),(0,i.addAlias)(r.NS_OOB,"x",["iq.account.registrationLink"]),{element:"query",fields:{address:(0,i.childText)(null,"address"),date:(0,i.childDate)(null,"date"),email:(0,i.childText)(null,"email"),familyName:(0,i.childText)(null,"last"),fullName:(0,i.childText)(null,"name"),givenName:(0,i.childText)(null,"first"),instructions:(0,i.childText)(null,"instructions"),key:(0,i.childText)(null,"key"),locality:(0,i.childText)(null,"city"),misc:(0,i.childText)(null,"misc"),nick:(0,i.childText)(null,"nick"),password:(0,i.childText)(null,"password"),phone:(0,i.childText)(null,"phone"),postalCode:(0,i.childText)(null,"zip"),region:(0,i.childText)(null,"state"),registered:(0,i.childBoolean)(null,"registered"),remove:(0,i.childBoolean)(null,"remove"),text:(0,i.childText)(null,"text"),uri:(0,i.childText)(null,"uri"),username:(0,i.childText)(null,"username")},namespace:r.NS_REGISTER,path:"iq.account"}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s={aliases:[{path:"message.geoloc",impliedType:!0},{path:"dataform.fields.geoloc",impliedType:!0},...(0,i.pubsubItemContentAliases)()],element:"geoloc",fields:{accuracy:(0,i.childFloat)(null,"accuracy"),altitude:(0,i.childFloat)(null,"alt"),altitudeAccuracy:(0,i.childFloat)(null,"altaccuracy"),area:(0,i.childText)(null,"area"),building:(0,i.childText)(null,"building"),country:(0,i.childText)(null,"country"),countryCode:(0,i.childText)(null,"countrycode"),datum:(0,i.childText)(null,"datum"),description:(0,i.childText)(null,"description"),error:(0,i.childFloat)(null,"error"),floor:(0,i.childText)(null,"floor"),heading:(0,i.childFloat)(null,"bearing"),lang:(0,i.languageAttribute)(),latitude:(0,i.childFloat)(null,"lat"),locality:(0,i.childText)(null,"locality"),longitude:(0,i.childFloat)(null,"lon"),postalCode:(0,i.childText)(null,"postalcode"),region:(0,i.childText)(null,"region"),room:(0,i.childText)(null,"room"),speed:(0,i.childFloat)(null,"speed"),street:(0,i.childText)(null,"street"),text:(0,i.childText)(null,"text"),timestamp:(0,i.childDate)(null,"timestamp"),tzo:(0,i.childTimezoneOffset)(null,"tzo"),uri:(0,i.childText)(null,"uri")},namespace:r.NS_GEOLOC,type:r.NS_GEOLOC};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s=[{aliases:(0,i.pubsubItemContentAliases)(),element:"data",fields:{data:(0,i.textBuffer)("base64")},namespace:r.NS_AVATAR_DATA,path:"avatar",type:r.NS_AVATAR_DATA,typeField:"itemType"},{aliases:[{path:"avatar",impliedType:!0},...(0,i.pubsubItemContentAliases)()],element:"metadata",namespace:r.NS_AVATAR_METADATA,type:r.NS_AVATAR_METADATA,typeField:"itemType",childrenExportOrder:{versions:1,pointers:2}},{aliases:[{multiple:!0,path:"avatar.versions",selector:r.NS_AVATAR_METADATA}],element:"info",fields:{bytes:(0,i.integerAttribute)("bytes"),height:(0,i.integerAttribute)("height"),id:(0,i.attribute)("id"),mediaType:(0,i.attribute)("type"),uri:(0,i.attribute)("url"),width:(0,i.integerAttribute)("width")},namespace:r.NS_AVATAR_METADATA},{aliases:[{multiple:!0,path:"avatar.pointers",selector:r.NS_AVATAR_METADATA}],element:"pointer",fields:{bytes:(0,i.integerAttribute)("bytes"),height:(0,i.integerAttribute)("height"),id:(0,i.attribute)("id"),mediaType:(0,i.attribute)("type"),width:(0,i.integerAttribute)("width")},namespace:r.NS_AVATAR_METADATA}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(8),r=n(3),s=n(2);t.default=(0,r.extendMessage)({chatState:(0,r.childEnum)(s.NS_CHAT_STATES,Object.values(i.ChatState))})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s={element:"query",fields:{name:(0,i.childText)(null,"name"),os:(0,i.childText)(null,"os"),version:(0,i.childText)(null,"version")},namespace:r.NS_VERSION,path:"iq.softwareVersion"};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(8),r=n(3),s=n(2),o={aliases:[{path:"message.mood",impliedType:!0},...(0,r.pubsubItemContentAliases)()],element:"mood",fields:{alternateLanguageText:(0,r.childAlternateLanguageText)(null,"text"),text:(0,r.childText)(null,"text"),value:(0,r.childEnum)(null,i.USER_MOODS)},namespace:s.NS_MOOD,type:s.NS_MOOD};t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(8),r=n(3),s=n(2),o={aliases:[{path:"activity",impliedType:!0},...(0,r.pubsubItemContentAliases)()],element:"activity",fields:{activity:(0,r.childDoubleEnum)(null,i.USER_ACTIVITY_GENERAL,i.USER_ACTIVITY_SPECIFIC),alternateLanguageText:(0,r.childAlternateLanguageText)(null,"text"),text:(0,r.childText)(null,"text")},namespace:s.NS_ACTIVITY,type:s.NS_ACTIVITY};t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s={element:"handshake",fields:{value:(0,i.textBuffer)("hex")},namespace:r.NS_COMPONENT,path:"handshake"};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s={aliases:[{path:"presence.legacyCapabilities",multiple:!0},{path:"features.legacyCapabilities",multiple:!0}],element:"c",fields:{algorithm:(0,i.attribute)("hash"),legacy:(0,i.staticValue)(!0),node:(0,i.attribute)("node"),value:(0,i.attribute)("ver")},namespace:r.NS_DISCO_LEGACY_CAPS};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s={aliases:[{impliedType:!0,path:"tune"},...(0,i.pubsubItemContentAliases)()],element:"tune",fields:{artist:(0,i.childText)(null,"artist"),length:(0,i.childInteger)(null,"length"),rating:(0,i.childInteger)(null,"rating"),source:(0,i.childText)(null,"source"),title:(0,i.childText)(null,"title"),track:(0,i.childText)(null,"track"),uri:(0,i.childText)(null,"uri")},namespace:r.NS_TUNE,type:r.NS_TUNE};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s=["dataformLayout",{multiple:!0,path:"dataformLayout.contents"},{multiple:!0,path:"dataform.layout.contents"}],o=[{aliases:[{multiple:!0,path:"dataform.layout"}],element:"page",fields:{label:(0,i.attribute)("label")},namespace:r.NS_DATAFORM_LAYOUT},{aliases:s,element:"section",fields:{label:(0,i.attribute)("label")},namespace:r.NS_DATAFORM_LAYOUT,type:"section",typeField:"type"},{aliases:s,element:"text",fields:{value:(0,i.text)()},namespace:r.NS_DATAFORM_LAYOUT,type:"text",typeField:"type"},{aliases:s,element:"fieldref",fields:{field:(0,i.attribute)("var")},namespace:r.NS_DATAFORM_LAYOUT,type:"fieldref",typeField:"type"},{aliases:s,element:"reportedref",namespace:r.NS_DATAFORM_LAYOUT,type:"reportedref",typeField:"type"}];t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s={element:"body",fields:{acceptMediaTypes:(0,i.attribute)("accept"),ack:(0,i.integerAttribute)("ack"),authId:(0,i.attribute)("authid"),characterSets:(0,i.attribute)("charsets"),condition:(0,i.attribute)("condition"),from:(0,i.JIDAttribute)("from"),key:(0,i.attribute)("key"),lang:(0,i.languageAttribute)(),maxClientRequests:(0,i.integerAttribute)("requests"),maxHoldOpen:(0,i.integerAttribute)("hold"),maxInactivityTime:(0,i.integerAttribute)("inactivity"),maxSessionPause:(0,i.integerAttribute)("maxpause"),maxWaitTime:(0,i.integerAttribute)("wait"),mediaType:(0,i.attribute)("content"),minPollingInterval:(0,i.integerAttribute)("polling"),newKey:(0,i.attribute)("newkey"),pauseSession:(0,i.integerAttribute)("pause"),report:(0,i.integerAttribute)("report"),rid:(0,i.integerAttribute)("rid"),route:(0,i.attribute)("string"),seeOtherURI:(0,i.childText)(null,"uri"),sid:(0,i.attribute)("sid"),stream:(0,i.attribute)("stream"),time:(0,i.integerAttribute)("time"),to:(0,i.JIDAttribute)("to"),type:(0,i.attribute)("type"),version:(0,i.attribute)("ver"),xmppRestart:(0,i.namespacedBooleanAttribute)("xmpp",r.NS_BOSH_XMPP,"restart",void 0,{writeValue:e=>e?"true":"false"}),xmppRestartLogic:(0,i.namespacedBooleanAttribute)("xmpp",r.NS_BOSH_XMPP,"restartlogic",void 0,{writeValue:e=>e?"true":"false"}),xmppVersion:(0,i.namespacedAttribute)("xmpp",r.NS_BOSH_XMPP,"version")},namespace:r.NS_BOSH,path:"bosh"};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s=[(0,i.extendMessage)({headers:(0,i.splicePath)(r.NS_SHIM,"headers","header",!0)}),(0,i.extendPresence)({headers:(0,i.splicePath)(r.NS_SHIM,"headers","header",!0)}),{element:"header",fields:{name:(0,i.attribute)("name"),value:(0,i.text)()},namespace:r.NS_SHIM,path:"header"}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s=[{element:"compression",fields:{methods:(0,i.multipleChildText)(null,"method")},namespace:r.NS_COMPRESSION_FEATURE,path:"features.compression"},{element:"compress",fields:{method:(0,i.childText)(null,"method")},namespace:r.NS_COMPRESSION,path:"compression",type:"start",typeField:"type"},{aliases:["error.compressionError"],element:"failure",fields:{condition:(0,i.childEnum)(null,["unsupported-method","setup-failed","processing-failed"])},namespace:r.NS_COMPRESSION,path:"compression",type:"failure",typeField:"type"},{element:"compressed",namespace:r.NS_COMPRESSION,path:"compression",type:"success",typeField:"type"}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s=[(0,i.extendMessage)({rosterExchange:(0,i.splicePath)(r.NS_ROSTER_EXCHANGE,"x","rosterExchange",!0)}),(0,i.extendIQ)({rosterExchange:(0,i.splicePath)(r.NS_ROSTER_EXCHANGE,"x","rosterExchange",!0)}),{element:"item",fields:{action:(0,i.attribute)("action"),groups:(0,i.multipleChildText)(null,"group"),jid:(0,i.JIDAttribute)("jid"),name:(0,i.attribute)("name")},namespace:r.NS_ROSTER_EXCHANGE,path:"rosterExchange"}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2);t.default=(0,i.extendPresence)({vcardAvatar:{importer(e){const t=(0,i.findAll)(e,r.NS_VCARD_TEMP_UPDATE,"x");if(!t.length)return;const n=(0,i.findAll)(t[0],r.NS_VCARD_TEMP_UPDATE,"photo");return!n.length||n[0].getText()},exporter(e,t){const n=(0,i.findOrCreate)(e,r.NS_VCARD_TEMP_UPDATE,"x");if(""===t)(0,i.findOrCreate)(n,r.NS_VCARD_TEMP_UPDATE,"photo");else{if(!0===t)return;if(t){(0,i.findOrCreate)(n,r.NS_VCARD_TEMP_UPDATE,"photo").children.push(t)}}}}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s=[(0,i.extendMessage)({captcha:(0,i.splicePath)(r.NS_CAPTCHA,"captcha","dataform")}),(0,i.extendIQ)({captcha:(0,i.splicePath)(r.NS_CAPTCHA,"captcha","dataform")})];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(8),r=n(3),s=n(2),o=[(0,r.extendStanzaError)({jingleError:(0,r.childEnum)(s.NS_JINGLE_ERRORS_1,Object.values(i.JingleErrorCondition))}),{element:"jingle",fields:{action:(0,r.attribute)("action"),initiator:(0,r.JIDAttribute)("initiator"),responder:(0,r.JIDAttribute)("responder"),sid:(0,r.attribute)("sid")},namespace:s.NS_JINGLE_1,path:"iq.jingle"},{aliases:[{multiple:!0,path:"iq.jingle.contents"}],element:"content",fields:{creator:(0,r.attribute)("creator"),disposition:(0,r.attribute)("disposition","session"),name:(0,r.attribute)("name"),senders:(0,r.attribute)("senders","both")},namespace:s.NS_JINGLE_1},{element:"reason",fields:{alternativeSession:(0,r.childText)(null,"alternative-session"),condition:(0,r.childEnum)(null,Object.values(i.JingleReasonCondition)),text:(0,r.childText)(null,"text")},namespace:s.NS_JINGLE_1,path:"iq.jingle.reason"}];t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(8),r=n(3),s=n(2);function o(){return{importer(e,t){let n=(0,r.findAll)(e,s.NS_JINGLE_RTP_RTCP_FB_0,"rtcp-fb");const i=(0,r.attribute)("type").importer,o=(0,r.attribute)("subtype").importer,a=(0,r.attribute)("value").importer,c=[];for(const e of n){const n=i(e,t),r=o(e,t);c.push(r?{type:n,parameter:r}:{type:n})}n=(0,r.findAll)(e,s.NS_JINGLE_RTP_RTCP_FB_0,"rtcp-fb-trr-int");for(const e of n){const n=a(e,t);c.push(n?{type:"trr-int",parameter:n}:{type:"trr-int"})}return c},exporter(e,t,n){const i=(0,r.attribute)("type").exporter,o=(0,r.attribute)("subtype").exporter,a=(0,r.attribute)("value").exporter;for(const c of t){let t;"trr-int"===c.type?(t=(0,r.createElement)(s.NS_JINGLE_RTP_RTCP_FB_0,"rtcp-fb-trr-int",n.namespace,e),c.parameter&&a(t,c.parameter,n)):(t=(0,r.createElement)(s.NS_JINGLE_RTP_RTCP_FB_0,"rtcp-fb",n.namespace,e),i(t,c.type,n),c.parameter&&o(t,c.parameter,n)),e.appendChild(t)}}}}const a="iq.jingle.info",c=[{aliases:["iq.jingle.contents.application"],childrenExportOrder:{codecs:4,encryption:5,headerExtensions:6,sourceGroups:8,sources:7,streams:9},element:"description",fields:{media:(0,r.attribute)("media"),rtcpFeedback:{...o(),exportOrder:3},rtcpMux:{...(0,r.childBoolean)(null,"rtcp-mux"),exportOrder:1},rtcpReducedSize:{...(0,r.childBoolean)(null,"rtcp-reduced-size"),exportOrder:2},ssrc:(0,r.attribute)("ssrc")},namespace:s.NS_JINGLE_RTP_1,optionalNamespaces:{rtcpf:s.NS_JINGLE_RTP_RTCP_FB_0,rtph:s.NS_JINGLE_RTP_HDREXT_0},type:s.NS_JINGLE_RTP_1},{aliases:[{multiple:!0,path:"iq.jingle.contents.application.headerExtensions",selector:s.NS_JINGLE_RTP_1}],element:"rtp-hdrext",fields:{id:(0,r.integerAttribute)("id"),senders:(0,r.attribute)("senders"),uri:(0,r.attribute)("uri")},namespace:s.NS_JINGLE_RTP_HDREXT_0},{aliases:[{multiple:!0,path:"iq.jingle.contents.application.codecs",selector:s.NS_JINGLE_RTP_1},"rtpcodec"],element:"payload-type",fields:{channels:(0,r.integerAttribute)("channels"),clockRate:(0,r.integerAttribute)("clockrate"),id:(0,r.attribute)("id"),maxptime:(0,r.integerAttribute)("maxptime"),name:(0,r.attribute)("name"),parameters:(0,r.parameterMap)(s.NS_JINGLE_RTP_1,"parameter","name","value"),ptime:(0,r.integerAttribute)("ptime"),rtcpFeedback:o()},namespace:s.NS_JINGLE_RTP_1},{aliases:[{multiple:!0,path:"iq.jingle.contents.application.sources",selector:s.NS_JINGLE_RTP_1}],element:"source",fields:{parameters:(0,r.parameterMap)(s.NS_JINGLE_RTP_SSMA_0,"parameter","name","value"),ssrc:(0,r.attribute)("ssrc")},namespace:s.NS_JINGLE_RTP_SSMA_0},{aliases:[{multiple:!0,path:"iq.jingle.contents.application.sourceGroups",selector:s.NS_JINGLE_RTP_1}],element:"ssrc-group",fields:{semantics:(0,r.attribute)("semantics"),sources:(0,r.multipleChildAttribute)(null,"source","ssrc")},namespace:s.NS_JINGLE_RTP_SSMA_0},{aliases:[{multiple:!0,path:"iq.jingle.contents.application.streams",selector:s.NS_JINGLE_RTP_1}],element:"stream",fields:{id:(0,r.attribute)("id"),track:(0,r.attribute)("track")},namespace:s.NS_JINGLE_RTP_MSID_0},{aliases:[{path:"iq.jingle.contents.application.encryption",selector:s.NS_JINGLE_RTP_1}],element:"encryption",fields:{required:(0,r.booleanAttribute)("required")},namespace:s.NS_JINGLE_RTP_1},{aliases:[{multiple:!0,path:"iq.jingle.contents.application.encryption.sdes",selector:s.NS_JINGLE_RTP_1}],element:"crypto",fields:{cryptoSuite:(0,r.attribute)("crypto-suite"),keyParameters:(0,r.attribute)("key-params"),sessionParameters:(0,r.attribute)("session-params"),tag:(0,r.integerAttribute)("tag")},namespace:s.NS_JINGLE_RTP_1},{aliases:[{path:"iq.jingle.contents.application.encryption.zrtp",selector:s.NS_JINGLE_RTP_1}],element:"zrtp-hash",fields:{value:(0,r.textBuffer)("hex"),version:(0,r.attribute)("version")},namespace:s.NS_JINGLE_RTP_1},{element:"mute",fields:{creator:(0,r.attribute)("creator"),name:(0,r.attribute)("name")},namespace:s.NS_JINGLE_RTP_INFO_1,path:a,type:i.JINGLE_INFO_MUTE},{element:"unmute",fields:{creator:(0,r.attribute)("creator"),name:(0,r.attribute)("name")},namespace:s.NS_JINGLE_RTP_INFO_1,path:a,type:i.JINGLE_INFO_UNMUTE},{element:"hold",namespace:s.NS_JINGLE_RTP_INFO_1,path:a,type:i.JINGLE_INFO_HOLD},{element:"unhold",namespace:s.NS_JINGLE_RTP_INFO_1,path:a,type:i.JINGLE_INFO_UNHOLD},{element:"active",namespace:s.NS_JINGLE_RTP_INFO_1,path:a,type:i.JINGLE_INFO_ACTIVE},{element:"ringing",namespace:s.NS_JINGLE_RTP_INFO_1,path:a,type:i.JINGLE_INFO_RINGING}];t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s=[(0,i.extendMessage)({nick:(0,i.childText)(r.NS_NICK,"nick")}),(0,i.extendPresence)({nick:(0,i.childText)(r.NS_NICK,"nick")}),{aliases:(0,i.pubsubItemContentAliases)(),element:"nick",fields:{nick:(0,i.text)()},namespace:r.NS_NICK,type:r.NS_NICK}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s=e=>[{element:"transport",fields:{gatheringComplete:(0,i.childBoolean)(null,"gathering-complete"),password:(0,i.attribute)("pwd"),usernameFragment:(0,i.attribute)("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:(0,i.integerAttribute)("component"),ip:(0,i.attribute)("ip"),port:(0,i.integerAttribute)("port")},namespace:e,type:e,typeField:"transportType"},{aliases:[{impliedType:!0,multiple:!0,path:"iq.jingle.contents.transport.candidates",selector:e}],element:"candidate",fields:{component:(0,i.integerAttribute)("component"),foundation:(0,i.attribute)("foundation"),generation:(0,i.integerAttribute)("generation"),id:(0,i.attribute)("id"),ip:(0,i.attribute)("ip"),network:(0,i.integerAttribute)("network"),port:(0,i.integerAttribute)("port"),priority:(0,i.integerAttribute)("priority"),protocol:(0,i.attribute)("protocol"),relatedAddress:(0,i.attribute)("rel-addr"),relatedPort:(0,i.attribute)("rel-port"),tcpType:(0,i.attribute)("tcptype"),type:(0,i.attribute)("type")},namespace:e,type:e,typeField:"transportType"}],o=[...s(r.NS_JINGLE_ICE_0),...s(r.NS_JINGLE_ICE_UDP_1)];t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s=[{element:"transport",fields:{gatheringComplete:(0,i.childBoolean)(null,"gathering-complete"),password:(0,i.attribute)("pwd"),usernameFragment:(0,i.attribute)("ufrag")},namespace:r.NS_JINGLE_RAW_UDP_1,path:"iq.jingle.contents.transport",type:r.NS_JINGLE_RAW_UDP_1,typeField:"transportType"},{aliases:[{impliedType:!0,multiple:!0,path:"iq.jingle.contents.transport.candidates",selector:r.NS_JINGLE_RAW_UDP_1}],element:"candidate",fields:{component:(0,i.integerAttribute)("component"),foundation:(0,i.attribute)("foundation"),generation:(0,i.integerAttribute)("generation"),id:(0,i.attribute)("id"),ip:(0,i.attribute)("ip"),port:(0,i.integerAttribute)("port"),type:(0,i.attribute)("type")},namespace:r.NS_JINGLE_RAW_UDP_1,type:r.NS_JINGLE_RAW_UDP_1,typeField:"transportType"}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s=[{element:"request",namespace:r.NS_RECEIPTS,path:"message.receipt",type:"request",typeField:"type"},{element:"received",fields:{id:(0,i.attribute)("id")},namespace:r.NS_RECEIPTS,path:"message.receipt",type:"received",typeField:"type"}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s=[{element:"invisible",fields:{probe:(0,i.booleanAttribute)("probe")},namespace:r.NS_INVISIBLE_0,path:"iq.visibility",type:"invisible",typeField:"type"},{element:"visible",namespace:r.NS_INVISIBLE_0,path:"iq.visibility",type:"visible"}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s=[(0,i.extendStanzaError)({blocked:(0,i.childBoolean)(r.NS_BLOCKING_ERRORS,"blocked")}),{element:"blocklist",fields:{jids:(0,i.multipleChildAttribute)(null,"item","jid")},namespace:r.NS_BLOCKING,path:"iq.blockList",type:"list",typeField:"action"},{element:"block",fields:{jids:(0,i.multipleChildAttribute)(null,"item","jid")},namespace:r.NS_BLOCKING,path:"iq.blockList",type:"block",typeField:"action"},{element:"unblock",fields:{jids:(0,i.multipleChildAttribute)(null,"item","jid")},namespace:r.NS_BLOCKING,path:"iq.blockList",type:"unblock",typeField:"action"}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s=[(0,i.extendStreamFeatures)({streamManagement:(0,i.childBoolean)(r.NS_SMACKS_3,"sm")}),{element:"a",fields:{handled:(0,i.integerAttribute)("h")},namespace:r.NS_SMACKS_3,path:"sm",type:"ack",typeField:"type"},{element:"r",namespace:r.NS_SMACKS_3,path:"sm",type:"request",typeField:"type"},{element:"enable",fields:{allowResumption:(0,i.booleanAttribute)("resume")},namespace:r.NS_SMACKS_3,path:"sm",type:"enable",typeField:"type"},{element:"enabled",fields:{id:(0,i.attribute)("id"),resume:(0,i.booleanAttribute)("resume")},namespace:r.NS_SMACKS_3,path:"sm",type:"enabled",typeField:"type"},{element:"resume",fields:{handled:(0,i.integerAttribute)("h"),previousSession:(0,i.attribute)("previd")},namespace:r.NS_SMACKS_3,path:"sm",type:"resume",typeField:"type"},{element:"resumed",fields:{handled:(0,i.integerAttribute)("h"),previousSession:(0,i.attribute)("previd")},namespace:r.NS_SMACKS_3,path:"sm",type:"resumed",typeField:"type"},{element:"failed",fields:{handled:(0,i.integerAttribute)("h")},namespace:r.NS_SMACKS_3,path:"sm",type:"failed",typeField:"type"}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2);t.default=(0,i.extendIQ)({ping:(0,i.childBoolean)(r.NS_PING,"ping")})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s={element:"time",fields:{tzo:(0,i.childTimezoneOffset)(null,"tzo"),utc:(0,i.childDate)(null,"utc")},namespace:r.NS_TIME,path:"iq.time"};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s={aliases:["message.delay","presence.delay"],element:"delay",fields:{from:(0,i.JIDAttribute)("from"),reason:(0,i.text)(),timestamp:(0,i.dateAttribute)("stamp")},namespace:r.NS_DELAY};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s={2:r.NS_DISCO_EXTERNAL_2,1:r.NS_DISCO_EXTERNAL_1},o=[];for(const[e,t]of Object.entries(s))o.push({aliases:["iq.externalServiceCredentials"],defaultType:"2",element:"credentials",fields:{expires:(0,i.childDateAttribute)(null,"service","expires"),host:(0,i.childAttribute)(null,"service","host"),name:(0,i.childAttribute)(null,"service","name"),password:(0,i.childAttribute)(null,"service","password"),port:(0,i.childIntegerAttribute)(null,"service","port"),restricted:(0,i.childBooleanAttribute)(null,"service","restricted"),transport:(0,i.childAttribute)(null,"service","transport"),type:(0,i.childAttribute)(null,"service","type"),username:(0,i.childAttribute)(null,"service","username")},namespace:t,type:e,typeField:"version"},{aliases:["iq.externalServices"],defaultType:"2",element:"services",fields:{type:(0,i.attribute)("type")},namespace:t,type:e,typeField:"version"},{aliases:[{path:"iq.externalServices.services",multiple:!0}],defaultType:"2",element:"service",fields:{expires:(0,i.dateAttribute)("expires"),host:(0,i.attribute)("host"),name:(0,i.attribute)("name"),password:(0,i.attribute)("password"),port:(0,i.integerAttribute)("port"),restricted:(0,i.booleanAttribute)("restricted"),transport:(0,i.attribute)("transport"),type:(0,i.attribute)("type"),username:(0,i.attribute)("username")},namespace:t,type:e,typeField:"version"});t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s=[{element:"media",fields:{height:(0,i.integerAttribute)("height"),width:(0,i.integerAttribute)("width")},namespace:r.NS_DATAFORM_MEDIA,path:"dataform.fields.media"},{aliases:[{multiple:!0,path:"dataform.fields.media.sources"}],element:"uri",fields:{mediaType:(0,i.attribute)("type"),uri:(0,i.text)()},namespace:r.NS_DATAFORM_MEDIA}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2);t.default=(0,i.extendMessage)({requestingAttention:(0,i.childBoolean)(r.NS_ATTENTION_0,"attention")})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s={aliases:["iq.bits",{path:"message.bits",multiple:!0},{path:"presence.bits",multiple:!0},{path:"iq.jingle.bits",multiple:!0}],element:"data",fields:{cid:(0,i.attribute)("cid"),data:(0,i.textBuffer)("base64"),maxAge:(0,i.integerAttribute)("max-age"),mediaType:(0,i.attribute)("type")},namespace:r.NS_BOB};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2);let s=[(0,i.addAlias)(r.NS_HASHES_2,"hash",[{path:"file.hashes",multiple:!0},{path:"file.range.hashes",multiple:!0}]),(0,i.addAlias)(r.NS_HASHES_1,"hash",[{path:"file.hashes",multiple:!0},{path:"file.range.hashes",multiple:!0}]),(0,i.addAlias)(r.NS_HASHES_2,"hash-used",[{path:"file.hashesUsed",multiple:!0}]),(0,i.addAlias)(r.NS_THUMBS_1,"thumbnail",[{path:"file.thumbnails",multiple:!0}])];for(const e of[r.NS_JINGLE_FILE_TRANSFER_4,r.NS_JINGLE_FILE_TRANSFER_5])s=s.concat([{aliases:["file",{impliedType:!0,path:"iq.jingle.contents.application.file",selector:e},{impliedType:!0,path:"iq.jingle.info.file",selector:`{${e}}checksum`}],defaultType:r.NS_JINGLE_FILE_TRANSFER_5,element:"file",fields:{date:(0,i.childDate)(null,"date"),description:(0,i.childText)(null,"desc"),mediaType:(0,i.childText)(null,"media-type"),name:(0,i.childText)(null,"name"),size:(0,i.childInteger)(null,"size")},namespace:e,type:e,typeField:"version"},{aliases:[{impliedType:!0,path:"file.range",selector:e}],defaultType:r.NS_JINGLE_FILE_TRANSFER_5,element:"range",fields:{length:(0,i.integerAttribute)("length"),offset:(0,i.integerAttribute)("offset",0)},namespace:e,type:e,typeField:"version"},{element:"description",namespace:e,path:"iq.jingle.contents.application",type:e,typeField:"applicationType"},{element:"received",fields:{creator:(0,i.attribute)("creator"),name:(0,i.attribute)("name")},namespace:e,path:"iq.jingle.info",type:`{${e}}received`,typeField:"infoType"},{element:"checksum",fields:{creator:(0,i.attribute)("creator"),name:(0,i.attribute)("name")},namespace:e,path:"iq.jingle.info",type:`{${e}}checksum`,typeField:"infoType"}]);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(2),r={element:"description",namespace:i.NS_JINGLE_XML_0,path:"iq.jingle.contents.application",type:i.NS_JINGLE_XML_0,typeField:"applicationType"};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s=[{element:"transport",fields:{activated:(0,i.childAttribute)(null,"activated","cid"),address:(0,i.attribute)("dstaddr"),candidateError:(0,i.childBoolean)(null,"candidate-error"),candidateUsed:(0,i.childAttribute)(null,"candidate-used","cid"),mode:(0,i.attribute)("mode","tcp"),proxyError:(0,i.childBoolean)(null,"proxy-error"),sid:(0,i.attribute)("sid")},namespace:r.NS_JINGLE_SOCKS5_1,path:"iq.jingle.contents.transport",type:r.NS_JINGLE_SOCKS5_1,typeField:"transportType"},{aliases:[{multiple:!0,path:"iq.jingle.contents.transport.candidates",selector:r.NS_JINGLE_SOCKS5_1}],element:"candidate",fields:{cid:(0,i.attribute)("cid"),host:(0,i.attribute)("host"),jid:(0,i.JIDAttribute)("jid"),port:(0,i.integerAttribute)("port"),priority:(0,i.integerAttribute)("priority"),type:(0,i.attribute)("type"),uri:(0,i.attribute)("uri")},namespace:r.NS_JINGLE_SOCKS5_1}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s={element:"transport",fields:{ack:{importer:(e,t)=>"message"!==(0,i.attribute)("stanza","iq").importer(e,t),exporter(e,t,n){!1===t&&(0,i.attribute)("stanza").exporter(e,"message",n)}},blockSize:(0,i.integerAttribute)("block-size"),sid:(0,i.attribute)("sid")},namespace:r.NS_JINGLE_IBB_1,path:"iq.jingle.contents.transport",type:r.NS_JINGLE_IBB_1,typeField:"transportType"};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s=[(0,i.addAlias)(r.NS_BOB,"data",[{path:"iq.jingle.bits",multiple:!0}]),{element:"thumbnail",fields:{height:(0,i.integerAttribute)("height"),mediaType:(0,i.attribute)("media-type"),uri:(0,i.attribute)("uri"),width:(0,i.integerAttribute)("width")},namespace:r.NS_THUMBS_1,path:"thumbnail"}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s=[(0,i.addAlias)(r.NS_FORWARD_0,"forwarded",["message.carbon.forward"]),{element:"enable",namespace:r.NS_CARBONS_2,path:"iq.carbons",type:"enable",typeField:"action"},{element:"disable",namespace:r.NS_CARBONS_2,path:"iq.carbons",type:"disable",typeField:"action"},{element:"sent",namespace:r.NS_CARBONS_2,path:"message.carbon",type:"sent",typeField:"type"},{element:"received",namespace:r.NS_CARBONS_2,path:"message.carbon",type:"received",typeField:"type"}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(8),s=n(2),o=[...Object.values(r.StreamType).map(e=>(0,i.addAlias)(e,"message",["forward.message"])),...Object.values(r.StreamType).map(e=>(0,i.addAlias)(e,"presence",["forward.presence"])),...Object.values(r.StreamType).map(e=>(0,i.addAlias)(e,"iq",["forward.iq"])),(0,i.addAlias)(s.NS_DELAY,"delay",["forward.delay"]),{aliases:["message.forward"],element:"forwarded",namespace:s.NS_FORWARD_0,path:"forward"}];t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s=[{defaultType:"2",element:"hash",fields:{algorithm:(0,i.attribute)("algo"),value:(0,i.textBuffer)("base64"),version:(0,i.staticValue)("2")},namespace:r.NS_HASHES_2,path:"hash",type:"2",typeField:"version"},{element:"hash-used",fields:{algorithm:(0,i.attribute)("algo"),version:(0,i.staticValue)("2")},namespace:r.NS_HASHES_2,path:"hashUsed"},{element:"hash",fields:{algorithm:(0,i.attribute)("algo"),value:(0,i.textBuffer)("hex"),version:(0,i.staticValue)("1")},namespace:r.NS_HASHES_1,path:"hash",type:"1",typeField:"version"}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s=[{element:"rtt",fields:{event:(0,i.attribute)("event","edit"),id:(0,i.attribute)("id"),seq:(0,i.integerAttribute)("seq")},namespace:r.NS_RTT_0,path:"message.rtt"},{aliases:[{path:"message.rtt.actions",multiple:!0}],element:"t",fields:{position:(0,i.integerAttribute)("p"),text:(0,i.text)()},namespace:r.NS_RTT_0,type:"insert",typeField:"type"},{aliases:[{path:"message.rtt.actions",multiple:!0}],element:"e",fields:{length:(0,i.integerAttribute)("n",1),position:(0,i.integerAttribute)("p")},namespace:r.NS_RTT_0,type:"erase",typeField:"type"},{aliases:[{multiple:!0,path:"message.rtt.actions"}],element:"w",fields:{duration:(0,i.integerAttribute)("n",0)},namespace:r.NS_RTT_0,type:"wait",typeField:"type"}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2);t.default=(0,i.extendMessage)({replace:(0,i.childAttribute)(r.NS_CORRECTION_0,"replace","id")})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s={2:r.NS_MAM_2,1:r.NS_MAM_1},o=[(0,i.addAlias)(r.NS_DATAFORM,"x",["iq.archive.form"]),(0,i.addAlias)(r.NS_FORWARD_0,"forwarded",["message.archive.item"]),(0,i.addAlias)(r.NS_RSM,"set",["iq.archive.paging"])];for(const[e,t]of Object.entries(s))o.push({defaultType:"query",defaultVersion:"2",element:"query",fields:{node:(0,i.attribute)("node"),queryId:(0,i.attribute)("queryid")},namespace:t,path:"iq.archive",type:"query",typeField:"type",version:e,versionField:"version"},{element:"fin",fields:{complete:(0,i.booleanAttribute)("complete"),stable:(0,i.booleanAttribute)("stable")},namespace:t,path:"iq.archive",type:"result",version:e},{element:"prefs",fields:{default:(0,i.attribute)("default"),always:(0,i.deepMultipleChildText)([{namespace:null,element:"always"},{namespace:null,element:"jid"}]),never:(0,i.deepMultipleChildText)([{namespace:null,element:"never"},{namespace:null,element:"jid"}])},namespace:t,path:"iq.archive",type:"preferences",version:e},{element:"result",defaultType:"2",fields:{id:(0,i.attribute)("id"),queryId:(0,i.attribute)("queryid")},namespace:t,path:"message.archive",type:e,typeField:"version"});t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s=[(0,i.extendPresence)({hats:(0,i.splicePath)(r.NS_HATS_0,"hats","hat",!0)}),{element:"hat",fields:{id:(0,i.attribute)("name"),name:(0,i.attribute)("displayName")},namespace:r.NS_HATS_0,path:"hat"}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2);t.default=(0,i.extendPresence)({idleSince:(0,i.childDate)(r.NS_IDLE_1,"since")})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s={aliases:[{multiple:!0,path:"iq.jingle.contents.transport.fingerprints",selector:r.NS_JINGLE_ICE_UDP_1},{multiple:!0,path:"iq.jingle.contents.transport.fingerprints",selector:r.NS_JINGLE_ICE_0},{multiple:!0,path:"iq.jingle.contents.application.encryption.dtls",selector:r.NS_JINGLE_RTP_1}],element:"fingerprint",fields:{algorithm:(0,i.attribute)("hash"),setup:(0,i.attribute)("setup"),value:(0,i.text)()},namespace:r.NS_JINGLE_DTLS_0};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s="message.marker",o=[{element:"markable",namespace:r.NS_CHAT_MARKERS_0,path:s,type:"markable",typeField:"type"},{element:"received",fields:{id:(0,i.attribute)("id")},namespace:r.NS_CHAT_MARKERS_0,path:s,type:"received"},{element:"displayed",fields:{id:(0,i.attribute)("id")},namespace:r.NS_CHAT_MARKERS_0,path:s,type:"displayed"},{element:"acknowledged",fields:{id:(0,i.attribute)("id")},namespace:r.NS_CHAT_MARKERS_0,path:s,type:"acknowledged"}];t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2);t.default=(0,i.extendMessage)({processingHints:{importer(e){const t={};let n=!1;for(const i of e.children)if("string"!=typeof i&&i.getNamespace()===r.NS_HINTS)switch(i.getName()){case"no-copy":t.noCopy=!0,n=!0;break;case"no-permanent-store":t.noPermanentStore=!0,n=!0;break;case"no-store":t.noStore=!0,n=!0;break;case"store":t.store=!0,n=!0}return n?t:void 0},exporter(e,t,n){t.noCopy&&e.appendChild((0,i.createElement)(r.NS_HINTS,"no-copy",n.namespace,e)),t.noPermanentStore&&e.appendChild((0,i.createElement)(r.NS_HINTS,"no-permanent-store",n.namespace,e)),t.noStore&&e.appendChild((0,i.createElement)(r.NS_HINTS,"no-store",n.namespace,e)),t.store&&e.appendChild((0,i.createElement)(r.NS_HINTS,"store",n.namespace,e))}}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s=[(0,i.extendMessage)({json:(0,i.childJSON)(r.NS_JSON_0,"json")}),{aliases:(0,i.pubsubItemContentAliases)(),element:"json",fields:{json:(0,i.textJSON)()},namespace:r.NS_JSON_0,type:r.NS_JSON_0},{aliases:[{path:"message.jsonPayloads",multiple:!0}],element:"payload",fields:{type:(0,i.attribute)("datatype"),data:(0,i.childJSON)(r.NS_JSON_0,"json")},namespace:r.NS_JSON_MESSAGE_0}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s=[{aliases:[{path:"iq.jingle.groups",multiple:!0}],element:"group",fields:{contents:(0,i.multipleChildAttribute)(null,"content","name"),semantics:(0,i.attribute)("semantics")},namespace:r.NS_JINGLE_GROUPING_0}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s={aliases:[{path:"iq.jingle.contents.transport.sctp",selector:r.NS_JINGLE_ICE_UDP_1},{path:"iq.jingle.contents.transport.sctp",selector:r.NS_JINGLE_ICE_0}],element:"sctpmap",fields:{port:(0,i.integerAttribute)("number"),protocol:(0,i.attribute)("protocol"),streams:(0,i.attribute)("streams")},namespace:r.NS_JINGLE_DTLS_SCTP_1};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(2),r=[{element:"active",namespace:i.NS_CSI_0,path:"csi",type:"active",typeField:"state"},{element:"inactive",namespace:i.NS_CSI_0,path:"csi",type:"inactive",typeField:"state"}];t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s=[(0,i.addAlias)(r.NS_DATAFORM,"x",["iq.push.form","pushNotification.form"]),{element:"enable",fields:{jid:(0,i.JIDAttribute)("jid"),node:(0,i.attribute)("node")},namespace:r.NS_PUSH_0,path:"iq.push",type:"enable",typeField:"action"},{element:"disable",fields:{jid:(0,i.JIDAttribute)("jid"),node:(0,i.attribute)("node")},namespace:r.NS_PUSH_0,path:"iq.push",type:"disable",typeField:"action"},{aliases:(0,i.pubsubItemContentAliases)(),element:"notification",namespace:r.NS_PUSH_0,path:"pushNotification",type:r.NS_PUSH_0,typeField:"itemType"}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s=[(0,i.extendMessage)({originId:(0,i.childAttribute)(r.NS_SID_0,"origin-id","id")}),{aliases:[{path:"message.stanzaIds",multiple:!0}],element:"stanza-id",fields:{by:(0,i.JIDAttribute)("by"),id:(0,i.attribute)("id")},namespace:r.NS_SID_0}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s=[(0,i.extendStanzaError)({httpUploadError:(0,i.childEnum)(r.NS_HTTP_UPLOAD_0,["file-too-large","retry"]),httpUploadMaxFileSize:(0,i.deepChildInteger)([{namespace:r.NS_HTTP_UPLOAD_0,element:"file-too-large"},{namespace:r.NS_HTTP_UPLOAD_0,element:"max-file-size"}]),httpUploadRetry:(0,i.childDateAttribute)(r.NS_HTTP_UPLOAD_0,"retry","stamp")}),{element:"request",fields:{mediaType:(0,i.attribute)("content-type"),name:(0,i.attribute)("filename"),size:(0,i.integerAttribute)("size")},namespace:r.NS_HTTP_UPLOAD_0,path:"iq.httpUpload",type:"request",typeField:"type"},{element:"slot",fields:{download:(0,i.childAttribute)(null,"get","url")},namespace:r.NS_HTTP_UPLOAD_0,path:"iq.httpUpload",type:"slot"},{aliases:[{path:"iq.httpUpload.upload",selector:"slot"}],element:"put",fields:{url:(0,i.attribute)("url")},namespace:r.NS_HTTP_UPLOAD_0},{aliases:[{path:"iq.httpUpload.upload.headers",multiple:!0}],element:"header",fields:{name:(0,i.attribute)("name"),value:(0,i.text)()},namespace:r.NS_HTTP_UPLOAD_0}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s={element:"encryption",fields:{id:(0,i.attribute)("namespace"),name:(0,i.attribute)("name")},namespace:r.NS_EME_0,path:"message.encryptionMethod"};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s=[{aliases:["message.omemo"],element:"encrypted",fields:{payload:(0,i.childTextBuffer)(null,"payload","base64")},namespace:r.NS_OMEMO_AXOLOTL,path:"omemo"},{element:"header",fields:{iv:(0,i.childTextBuffer)(null,"iv","base64"),sid:(0,i.integerAttribute)("sid")},namespace:r.NS_OMEMO_AXOLOTL,path:"omemo.header"},{aliases:[{path:"omemo.header.keys",multiple:!0}],element:"key",fields:{preKey:(0,i.booleanAttribute)("prekey"),rid:(0,i.integerAttribute)("rid"),value:(0,i.textBuffer)("base64")},namespace:r.NS_OMEMO_AXOLOTL},{aliases:(0,i.pubsubItemContentAliases)(),element:"list",fields:{devices:(0,i.multipleChildIntegerAttribute)(null,"device","id")},namespace:r.NS_OMEMO_AXOLOTL,type:r.NS_OMEMO_AXOLOTL_DEVICELIST,typeField:"itemType"},{element:"preKeyPublic",fields:{id:(0,i.integerAttribute)("preKeyId"),value:(0,i.textBuffer)("base64")},namespace:r.NS_OMEMO_AXOLOTL,path:"omemoPreKey"},{element:"signedPreKeyPublic",fields:{id:(0,i.integerAttribute)("signedPreKeyId"),value:(0,i.textBuffer)("base64")},namespace:r.NS_OMEMO_AXOLOTL,path:"omemoDevice.signedPreKeyPublic"},{aliases:(0,i.pubsubItemContentAliases)(),element:"bundle",fields:{identityKey:(0,i.childTextBuffer)(null,"identityKey","base64"),preKeys:(0,i.splicePath)(null,"prekeys","omemoPreKey",!0),signedPreKeySignature:(0,i.childTextBuffer)(null,"signedPreKeySignature","base64")},namespace:r.NS_OMEMO_AXOLOTL,path:"omemoDevice",type:r.NS_OMEMO_AXOLOTL_BUNDLES,typeField:"itemType"}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class i extends Error{constructor(e,t,n){super(),this.condition=e,this.channelId=t,this.stanzaInstanceId=n,this.name="SaslError"}}t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,n){"use strict";var i={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)},r=n(43),s=n(20);t.a=function(e,t,n){if(i.randomUUID&&!t&&!e)return i.randomUUID();const o=(e=e||{}).random||(e.rng||r.a)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=o[e];return t}return Object(s.b)(o)}},function(e,t,n){n(210),n(211),e.exports=n(226)},function(e,t,n){!function(t){"use strict";for(var n=[null,0,{}],i=function(e,t){this.codepoint=e,this.feature=t},r={},s=[],o=0;o<=255;++o)s[o]=0;var a=[function(e,t,r){return t<60||13311<t&&t<42607?new i(t,n):e(t,r)},function(e,t,n){var i=r[t];return i||(i=e(t,n)).feature&&++s[t>>8&255]>10&&(r[t]=i),i},function(e,t,n){return n?e(t,n):new i(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 s={},o=21*(t-4352);for(r=0;r<21;++r)s[4449+r]=44032+28*(r+o);return new i(t,[,,s])}var a=t-44032,c=a%28,l=[];if(0!==c)l[0]=[44032+a-c,4519+c];else for(l[0]=[4352+Math.floor(a/588),4449+Math.floor(a%588/28)],l[2]={},r=1;r<28;++r)l[2][4519+r]=t+r;return new i(t,l)},function(e,t,r){var s=(i.udata[65280&t]||{})[t];return new i(t,s||n)}];i.fromCharCode=a.reduceRight((function(e,t){return function(n,i){return t(e,n,i)}}),null),i.isHighSurrogate=function(e){return e>=55296&&e<=56319},i.isLowSurrogate=function(e){return e>=56320&&e<=57343},i.prototype.prepFeature=function(){this.feature||(this.feature=i.fromCharCode(this.codepoint,!0).feature)},i.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)},i.prototype.getDecomp=function(){return this.prepFeature(),this.feature[0]||null},i.prototype.isCompatibility=function(){return this.prepFeature(),!!this.feature[1]&&256&this.feature[1]},i.prototype.isExclude=function(){return this.prepFeature(),!!this.feature[1]&&512&this.feature[1]},i.prototype.getCanonicalClass=function(){return this.prepFeature(),this.feature[1]?255&this.feature[1]:0},i.prototype.getComposite=function(e){if(this.prepFeature(),!this.feature[2])return null;var t=this.feature[2][e.codepoint];return t?i.fromCharCode(t):null};var c=function(e){this.str=e,this.cursor=0};c.prototype.next=function(){if(this.str&&this.cursor<this.str.length){var e,t=this.str.charCodeAt(this.cursor++);return i.isHighSurrogate(t)&&this.cursor<this.str.length&&i.isLowSurrogate(e=this.str.charCodeAt(this.cursor))&&(t=1024*(t-55296)+(e-56320)+65536,++this.cursor),i.fromCharCode(t)}return this.str=null,null};var l=function(e,t){this.it=e,this.canonical=t,this.resBuf=[]};l.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 s=[],o=0;o<r.length;++o){var a=e(t,i.fromCharCode(r[o]));s=s.concat(a)}return s}(this.canonical,e)}return this.resBuf.shift()};var u=function(e){this.it=e,this.resBuf=[]};u.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 d=function(e){this.it=e,this.procBuf=[],this.resBuf=[],this.lastClass=null};d.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 h=function(e,t){for(var n,i=function(e,t){switch(e){case"NFD":return new u(new l(new c(t),!0));case"NFKD":return new u(new l(new c(t),!1));case"NFC":return new d(new u(new l(new c(t),!0)));case"NFKC":return new d(new u(new l(new c(t),!1)))}throw e+" is invalid"}(e,t),r="";n=i.next();)r+=n.toString();return r};i.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 p={nfc:function(e){return h("NFC",e)},nfd:function(e){return h("NFD",e)},nfkc:function(e){return h("NFKC",e)},nfkd:function(e){return h("NFKD",e)}};e.exports=p,p.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 p.nfc(e);if("NFD"===t)return p.nfd(e);if("NFKC"===t)return p.nfkc(e);if("NFKD"===t)return p.nfkd(e);throw new RangeError("Invalid normalization form: "+t)}}),p.shimApplied=!0)}()},function(e,t,n){"use strict";n.r(t),n.d(t,"Headers",(function(){return f})),n.d(t,"Request",(function(){return S})),n.d(t,"Response",(function(){return T})),n.d(t,"DOMException",(function(){return A})),n.d(t,"fetch",(function(){return E}));n(9);var i="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==i&&i,r="URLSearchParams"in i,s="Symbol"in i&&"iterator"in Symbol,o="FileReader"in i&&"Blob"in i&&function(){try{return new Blob,!0}catch(e){return!1}}(),a="FormData"in i,c="ArrayBuffer"in i;if(c)var l=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=ArrayBuffer.isView||function(e){return e&&l.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 p(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 f(e){this.map={},e instanceof f?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function m(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function g(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function y(e){var t=new FileReader,n=g(t);return t.readAsArrayBuffer(e),n}function v(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function b(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:o&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:a&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:r&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():c&&o&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=v(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):c&&(ArrayBuffer.prototype.isPrototypeOf(e)||u(e))?this._bodyArrayBuffer=v(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):r&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o&&(this.blob=function(){var e=m(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=m(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(y)}),this.text=function(){var e,t,n,i=m(this);if(i)return i;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=g(t),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),i=0;i<t.length;i++)n[i]=String.fromCharCode(t[i]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},a&&(this.formData=function(){return this.text().then(w)}),this.json=function(){return this.text().then(JSON.parse)},this}f.prototype.append=function(e,t){e=d(e),t=h(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},f.prototype.delete=function(e){delete this.map[d(e)]},f.prototype.get=function(e){return e=d(e),this.has(e)?this.map[e]:null},f.prototype.has=function(e){return this.map.hasOwnProperty(d(e))},f.prototype.set=function(e,t){this.map[d(e)]=h(t)},f.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},f.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),p(e)},f.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),p(e)},f.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),p(e)},s&&(f.prototype[Symbol.iterator]=f.prototype.entries);var _=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function S(e,t){if(!(this instanceof S))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n,i,r=(t=t||{}).body;if(e instanceof S){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new f(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,r||null==e._bodyInit||(r=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new f(t.headers)),this.method=(n=t.method||this.method||"GET",i=n.toUpperCase(),_.indexOf(i)>-1?i:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(r),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var s=/([?&])_=[^&]*/;if(s.test(this.url))this.url=this.url.replace(s,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function w(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),i=n.shift().replace(/\+/g," "),r=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(i),decodeURIComponent(r))}})),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 f(t.headers),this.url=t.url||"",this._initBody(e)}S.prototype.clone=function(){return new S(this,{body:this._bodyInit})},b.call(S.prototype),b.call(T.prototype),T.prototype.clone=function(){return new T(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},T.error=function(){var e=new T(null,{status:0,statusText:""});return e.type="error",e};var I=[301,302,303,307,308];T.redirect=function(e,t){if(-1===I.indexOf(t))throw new RangeError("Invalid status code");return new T(null,{status:t,headers:{location:e}})};var A=i.DOMException;try{new A}catch(e){(A=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack}).prototype=Object.create(Error.prototype),A.prototype.constructor=A}function E(e,t){return new Promise((function(n,r){var s=new S(e,t);if(s.signal&&s.signal.aborted)return r(new A("Aborted","AbortError"));var a=new XMLHttpRequest;function l(){a.abort()}a.onload=function(){var e,t,i={status:a.status,statusText:a.statusText,headers:(e=a.getAllResponseHeaders()||"",t=new f,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var n=e.split(":"),i=n.shift().trim();if(i){var r=n.join(":").trim();t.append(i,r)}})),t)};i.url="responseURL"in a?a.responseURL:i.headers.get("X-Request-URL");var r="response"in a?a.response:a.responseText;setTimeout((function(){n(new T(r,i))}),0)},a.onerror=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},a.ontimeout=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},a.onabort=function(){setTimeout((function(){r(new A("Aborted","AbortError"))}),0)},a.open(s.method,function(e){try{return""===e&&i.location.href?i.location.href:e}catch(t){return e}}(s.url),!0),"include"===s.credentials?a.withCredentials=!0:"omit"===s.credentials&&(a.withCredentials=!1),"responseType"in a&&(o?a.responseType="blob":c&&s.headers.get("Content-Type")&&-1!==s.headers.get("Content-Type").indexOf("application/octet-stream")&&(a.responseType="arraybuffer")),!t||"object"!=typeof t.headers||t.headers instanceof f?s.headers.forEach((function(e,t){a.setRequestHeader(t,e)})):Object.getOwnPropertyNames(t.headers).forEach((function(e){a.setRequestHeader(e,h(t.headers[e]))})),s.signal&&(s.signal.addEventListener("abort",l),a.onreadystatechange=function(){4===a.readyState&&s.signal.removeEventListener("abort",l)}),a.send(void 0===s._bodyInit?null:s._bodyInit)}))}E.polyfill=!0,i.fetch||(i.fetch=E,i.Headers=f,i.Request=S,i.Response=T)},function(e,t,n){"use strict";var i,r=n(213),s=n(29),o=n(11),a=n(25),c=n(19),l=n(214),u=n(30),d=n(78),h=n(46).f,p=n(220),f=n(222),m=n(44),g=n(48),y=o.Int8Array,v=y&&y.prototype,b=o.Uint8ClampedArray,_=b&&b.prototype,S=y&&p(y),w=v&&p(v),T=Object.prototype,I=T.isPrototypeOf,A=m("toStringTag"),E=g("TYPED_ARRAY_TAG"),N=r&&!!f&&"Opera"!==l(o.opera),x=!1,C={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},R=function(e){return a(e)&&c(C,l(e))};for(i in C)o[i]||(N=!1);if((!N||"function"!=typeof S||S===Function.prototype)&&(S=function(){throw TypeError("Incorrect invocation")},N))for(i in C)o[i]&&f(o[i],S);if((!N||!w||w===T)&&(w=S.prototype,N))for(i in C)o[i]&&f(o[i].prototype,w);if(N&&p(_)!==w&&f(_,w),s&&!c(w,A))for(i in x=!0,h(w,A,{get:function(){return a(this)?this[E]:void 0}}),C)o[i]&&u(o[i],E,i);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:N,TYPED_ARRAY_TAG:x&&E,aTypedArray:function(e){if(R(e))return e;throw TypeError("Target is not a typed array")},aTypedArrayConstructor:function(e){if(f){if(I.call(S,e))return e}else for(var t in C)if(c(C,i)){var n=o[t];if(n&&(e===n||I.call(n,e)))return e}throw TypeError("Target is not a typed array constructor")},exportTypedArrayMethod:function(e,t,n){if(s){if(n)for(var i in C){var r=o[i];r&&c(r.prototype,e)&&delete r.prototype[e]}w[e]&&!n||d(w,e,n?t:N&&v[e]||t)}},exportTypedArrayStaticMethod:function(e,t,n){var i,r;if(s){if(f){if(n)for(i in C)(r=o[i])&&c(r,e)&&delete r[e];if(S[e]&&!n)return;try{return d(S,e,n?t:N&&y[e]||t)}catch(e){}}for(i in C)!(r=o[i])||r[e]&&!n||d(r,e,t)}},isView:function(e){var t=l(e);return"DataView"===t||c(C,t)},isTypedArray:R,TypedArray:S,TypedArrayPrototype:w}},function(e,t){e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},function(e,t,n){var i=n(215),r=n(49),s=n(44)("toStringTag"),o="Arguments"==r(function(){return arguments}());e.exports=i?r:function(e){var t,n,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),s))?n:o?r(t):"Object"==(i=r(t))&&"function"==typeof t.callee?"Arguments":i}},function(e,t,n){var i={};i[n(44)("toStringTag")]="z",e.exports="[object z]"===String(i)},function(e,t){e.exports=!1},function(e,t,n){var i=n(77);e.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(e,t,n){var i,r,s,o=n(219),a=n(11),c=n(25),l=n(30),u=n(19),d=n(80),h=n(81),p=a.WeakMap;if(o){var f=new p,m=f.get,g=f.has,y=f.set;i=function(e,t){return y.call(f,e,t),t},r=function(e){return m.call(f,e)||{}},s=function(e){return g.call(f,e)}}else{var v=d("state");h[v]=!0,i=function(e,t){return l(e,v,t),t},r=function(e){return u(e,v)?e[v]:{}},s=function(e){return u(e,v)}}e.exports={set:i,get:r,has:s,enforce:function(e){return s(e)?r(e):i(e,{})},getterFor:function(e){return function(t){var n;if(!c(t)||(n=r(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},function(e,t,n){var i=n(11),r=n(79),s=i.WeakMap;e.exports="function"==typeof s&&/native code/.test(r(s))},function(e,t,n){var i=n(19),r=n(82),s=n(80),o=n(221),a=s("IE_PROTO"),c=Object.prototype;e.exports=o?Object.getPrototypeOf:function(e){return e=r(e),i(e,a)?e[a]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?c:null}},function(e,t,n){var i=n(18);e.exports=!i((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},function(e,t,n){var i=n(47),r=n(223);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,s){return i(n),r(s),t?e.call(n,s):n.__proto__=s,n}}():void 0)},function(e,t,n){var i=n(25);e.exports=function(e){if(!i(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},function(e,t,n){var i=n(225);e.exports=function(e,t){var n=i(e);if(n%t)throw RangeError("Wrong offset");return n}},function(e,t,n){var i=n(50);e.exports=function(e){var t=i(e);if(t<0)throw RangeError("The argument can't be less than 0");return t}},function(e,t,n){"use strict";n.r(t);var i=n(68),r=n(64);for(var s in r)["HttpClient","StreamingClientError","parseJwt","default"].indexOf(s)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(s);var o=n(58);for(var s in o)["HttpClient","StreamingClientError","parseJwt","default"].indexOf(s)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(s);var a=n(207);for(var s in a)["HttpClient","StreamingClientError","parseJwt","default"].indexOf(s)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(s);var c=n(24);for(var s in c)["HttpClient","StreamingClientError","parseJwt","default"].indexOf(s)<0&&function(e){n.d(t,e,(function(){return c[e]}))}(s);var l=n(67);for(var s in l)["HttpClient","StreamingClientError","parseJwt","default"].indexOf(s)<0&&function(e){n.d(t,e,(function(){return l[e]}))}(s);var u=n(38);n.d(t,"HttpClient",(function(){return u.HttpClient}));var d=n(16);n.d(t,"StreamingClientError",(function(){return d.StreamingClientError})),n.d(t,"parseJwt",(function(){return d.parseJwt})),t.default=i.Client},function(e,t,n){t.RateLimiter=n(228),t.TokenBucket=n(85)},function(e,t,n){(function(t){var i=n(85),r=n(229),s=function(e,t,n){this.tokenBucket=new i(e,e,t,null),this.tokenBucket.content=e,this.curIntervalStart=r(),this.tokensThisInterval=0,this.fireImmediately=n};s.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 i=this,s=r();if((s<this.curIntervalStart||s-this.curIntervalStart>=this.tokenBucket.interval)&&(this.curIntervalStart=s,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-s);setTimeout((function(){i.tokenBucket.removeTokens(e,a)}),o)}return!1}return this.tokenBucket.removeTokens(e,a);function a(t,r){if(t)return n(t,null);i.tokensThisInterval+=e,n(null,r)}},tryRemoveTokens:function(e){if(e>this.tokenBucket.bucketSize)return!1;var t=r();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=s}).call(this,n(23))},function(e,t,n){(function(t){e.exports=function(){if(void 0!==t&&t.hrtime){var e=t.hrtime(),n=e[0],i=e[1];return 1e3*n+Math.floor(i/1e6)}return(new Date).getTime()}}).call(this,n(23))},function(e,t,n){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var r={delayFirstAttempt:!1,jitter:"none",maxDelay:1/0,numOfAttempts:10,retry:function(){return!0},startingDelay:100,timeMultiple:2};t.getSanitizedOptions=function(e){var t=i(i({},r),e);return t.numOfAttempts<1&&(t.numOfAttempts=1),t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(232),r=n(236);t.DelayFactory=function(e,t){var n=function(e){if(!e.delayFirstAttempt)return new i.SkipFirstDelay(e);return new r.AlwaysDelay(e)}(e);return n.setAttemptNumber(t),n}},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=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}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,s){function o(e){try{c(i.next(e))}catch(e){s(e)}}function a(e){try{c(i.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,a)}c((i=i.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,i,r,s,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,i&&(r=2&s[0]?i.return:s[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,s[1])).done)return r;switch(i=0,r&&(s=[2&s[0],r.value]),s[0]){case 0:case 1:r=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,i=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]<r[3])){o.label=s[1];break}if(6===s[0]&&o.label<r[1]){o.label=r[1],r=s;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(s);break}r[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],i=0}finally{n=r=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,a])}}};Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.apply=function(){return s(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(86).Delay);t.SkipFirstDelay=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(234),r=n(235);t.JitterFactory=function(e){switch(e.jitter){case"full":return i.fullJitter;case"none":default:return r.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 i,r=this&&this.__extends||(i=function(e,t){return(i=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}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(n(86).Delay);t.AlwaysDelay=s},function(e,t,n){(function(e){n(33);var i=void 0!==e&&e||"undefined"!=typeof self&&self||window,r=Function.prototype.apply;function s(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new s(r.call(setTimeout,i,arguments),clearTimeout)},t.setInterval=function(){return new s(r.call(setInterval,i,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},s.prototype.unref=s.prototype.ref=function(){},s.prototype.close=function(){this._clearFn.call(i,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(257),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(15))},function(e,t,n){var i=n(11),r=n(87).f,s=n(30),o=n(78),a=n(45),c=n(241),l=n(250);e.exports=function(e,t){var n,u,d,h,p,f=e.target,m=e.global,g=e.stat;if(n=m?i:g?i[f]||a(f,{}):(i[f]||{}).prototype)for(u in t){if(h=t[u],d=e.noTargetGet?(p=r(n,u))&&p.value:n[u],!l(m?u:f+(g?".":"#")+u,e.forced)&&void 0!==d){if(typeof h==typeof d)continue;c(h,d)}(e.sham||d&&d.sham)&&s(h,"sham",!0),o(n,u,h,e)}}},function(e,t,n){"use strict";var i={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,s=r&&!i.call({1:2},1);t.f=s?function(e){var t=r(this,e);return!!t&&t.enumerable}:i},function(e,t,n){var i=n(18),r=n(49),s="".split;e.exports=i((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==r(e)?s.call(e,""):Object(e)}:Object},function(e,t,n){var i=n(19),r=n(242),s=n(87),o=n(46);e.exports=function(e,t){for(var n=r(t),a=o.f,c=s.f,l=0;l<n.length;l++){var u=n[l];i(e,u)||a(e,u,c(t,u))}}},function(e,t,n){var i=n(52),r=n(244),s=n(249),o=n(47);e.exports=i("Reflect","ownKeys")||function(e){var t=r.f(o(e)),n=s.f;return n?t.concat(n(e)):t}},function(e,t,n){var i=n(11);e.exports=i},function(e,t,n){var i=n(245),r=n(248).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,r)}},function(e,t,n){var i=n(19),r=n(51),s=n(246).indexOf,o=n(81);e.exports=function(e,t){var n,a=r(e),c=0,l=[];for(n in a)!i(o,n)&&i(a,n)&&l.push(n);for(;t.length>c;)i(a,n=t[c++])&&(~s(l,n)||l.push(n));return l}},function(e,t,n){var i=n(51),r=n(84),s=n(247),o=function(e){return function(t,n,o){var a,c=i(t),l=r(c.length),u=s(o,l);if(e&&n!=n){for(;l>u;)if((a=c[u++])!=a)return!0}else for(;l>u;u++)if((e||u in c)&&c[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},function(e,t,n){var i=n(50),r=Math.max,s=Math.min;e.exports=function(e,t){var n=i(e);return n<0?r(n+t,0):s(n,t)}},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var i=n(18),r=/#|\.prototype\./,s=function(e,t){var n=a[o(e)];return n==l||n!=c&&("function"==typeof t?i(t):!!t)},o=s.normalize=function(e){return String(e).replace(r,".").toLowerCase()},a=s.data={},c=s.NATIVE="N",l=s.POLYFILL="P";e.exports=s},function(e,t,n){var i,r,s,o=n(11),a=n(18),c=n(49),l=n(252),u=n(254),d=n(74),h=n(255),p=o.location,f=o.setImmediate,m=o.clearImmediate,g=o.process,y=o.MessageChannel,v=o.Dispatch,b=0,_={},S=function(e){if(_.hasOwnProperty(e)){var t=_[e];delete _[e],t()}},w=function(e){return function(){S(e)}},T=function(e){S(e.data)},I=function(e){o.postMessage(e+"",p.protocol+"//"+p.host)};f&&m||(f=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)},i(b),b},m=function(e){delete _[e]},"process"==c(g)?i=function(e){g.nextTick(w(e))}:v&&v.now?i=function(e){v.now(w(e))}:y&&!h?(s=(r=new y).port2,r.port1.onmessage=T,i=l(s.postMessage,s,1)):!o.addEventListener||"function"!=typeof postMessage||o.importScripts||a(I)||"file:"===p.protocol?i="onreadystatechange"in d("script")?function(e){u.appendChild(d("script")).onreadystatechange=function(){u.removeChild(this),S(e)}}:function(e){setTimeout(w(e),0)}:(i=I,o.addEventListener("message",T,!1))),e.exports={set:f,clear:m}},function(e,t,n){var i=n(253);e.exports=function(e,t,n){if(i(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,r){return e.call(t,n,i,r)}}return function(){return e.apply(t,arguments)}}},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 i=n(52);e.exports=i("document","documentElement")},function(e,t,n){var i=n(256);e.exports=/(iphone|ipod|ipad).*applewebkit/i.test(i)},function(e,t,n){var i=n(52);e.exports=i("navigator","userAgent")||""},function(e,t,n){(function(e,t){n(33),function(e,n){"use strict";if(!e.setImmediate){var i,r,s,o,a,c=1,l={},u=!1,d=e.document,h=Object.getPrototypeOf&&Object.getPrototypeOf(e);h=h&&h.setTimeout?h:e,"[object process]"==={}.toString.call(e.process)?i=function(e){t.nextTick((function(){f(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?((s=new MessageChannel).port1.onmessage=function(e){f(e.data)},i=function(e){s.port2.postMessage(e)}):d&&"onreadystatechange"in d.createElement("script")?(r=d.documentElement,i=function(e){var t=d.createElement("script");t.onreadystatechange=function(){f(e),t.onreadystatechange=null,r.removeChild(t),t=null},r.appendChild(t)}):i=function(e){setTimeout(f,0,e)}:(o="setImmediate$"+Math.random()+"$",a=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(o)&&f(+t.data.slice(o.length))},e.addEventListener?e.addEventListener("message",a,!1):e.attachEvent("onmessage",a),i=function(t){e.postMessage(o+t,"*")}),h.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 r={callback:e,args:t};return l[c]=r,i(c),c++},h.clearImmediate=p}function p(e){delete l[e]}function f(e){if(u)setTimeout(f,0,e);else{var t=l[e];if(t){u=!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{p(e),u=!1}}}}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,n(15),n(23))},function(e,t,n){"use strict";(function(e){
22
+ var i=function(e,t){return(i=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 r(e,t){function n(){this.constructor=e}i(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,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function o(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n}function a(e,t,n,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o}function c(e,t){return function(n,i){t(n,i,e)}}function l(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function u(e,t,n,i){return new(n||(n=Promise))((function(r,s){function o(e){try{c(i.next(e))}catch(e){s(e)}}function a(e){try{c(i.throw(e))}catch(e){s(e)}}function c(e){e.done?r(e.value):new n((function(t){t(e.value)})).then(o,a)}c((i=i.apply(e,t||[])).next())}))}function d(e,t){var n,i,r,s,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,i&&(r=2&s[0]?i.return:s[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,s[1])).done)return r;switch(i=0,r&&(s=[2&s[0],r.value]),s[0]){case 0:case 1:r=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,i=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]<r[3])){o.label=s[1];break}if(6===s[0]&&o.label<r[1]){o.label=r[1],r=s;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(s);break}r[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],i=0}finally{n=r=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,a])}}}function h(e,t){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}function p(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 f(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,r,s=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(i=s.next()).done;)o.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}return o}function m(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(f(arguments[t]));return e}function g(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),r=0;for(t=0;t<n;t++)for(var s=arguments[t],o=0,a=s.length;o<a;o++,r++)i[r]=s[o];return i}function y(e){return this instanceof y?(this.v=e,this):new y(e)}function v(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,r=n.apply(e,t||[]),s=[];return i={},o("next"),o("throw"),o("return"),i[Symbol.asyncIterator]=function(){return this},i;function o(e){r[e]&&(i[e]=function(t){return new Promise((function(n,i){s.push([e,t,n,i])>1||a(e,t)}))})}function a(e,t){try{(n=r[e](t)).value instanceof y?Promise.resolve(n.value.v).then(c,l):u(s[0][2],n)}catch(e){u(s[0][3],e)}var n}function c(e){a("next",e)}function l(e){a("throw",e)}function u(e,t){e(t),s.shift(),s.length&&a(s[0][0],s[0][1])}}function b(e){var t,n;return t={},i("next"),i("throw",(function(e){throw e})),i("return"),t[Symbol.iterator]=function(){return this},t;function i(i,r){t[i]=e[i]?function(t){return(n=!n)?{value:y(e[i](t)),done:"return"===i}:r?r(t):t}:r}}function _(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=p(e),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(n){t[n]=e[n]&&function(t){return new Promise((function(i,r){(function(e,t,n,i){Promise.resolve(i).then((function(t){e({value:t,done:n})}),t)})(i,r,(t=e[n](t)).done,t.value)}))}}}function S(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function w(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";var i=n(36),r=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=d;var s=Object.create(n(32)),o=n(94),a=n(96);s.inherits(d,o);for(var c=r(a.prototype),l=0;l<c.length;l++){var u=c[l];d.prototype[u]||(d.prototype[u]=a.prototype[u])}function d(e){if(!(this instanceof d))return new d(e);o.call(this,e),a.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",h)}function h(){this.allowHalfOpen||this._writableState.ended||i.nextTick(p,this)}function p(e){e.end()}Object.defineProperty(d.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(d.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)}}),d.prototype._destroy=function(e,t){this.push(null),this.end(),i.nextTick(t,e)}},function(e,t,n){"use strict";n.r(t);var i=n(43),r=n(20);let s,o,a=0,c=0;var l=function(e,t,n){let l=t&&n||0;const u=t||new Array(16);let d=(e=e||{}).node||s,h=void 0!==e.clockseq?e.clockseq:o;if(null==d||null==h){const t=e.random||(e.rng||i.a)();null==d&&(d=s=[1|t[0],t[1],t[2],t[3],t[4],t[5]]),null==h&&(h=o=16383&(t[6]<<8|t[7]))}let p=void 0!==e.msecs?e.msecs:Date.now(),f=void 0!==e.nsecs?e.nsecs:c+1;const m=p-a+(f-c)/1e4;if(m<0&&void 0===e.clockseq&&(h=h+1&16383),(m<0||p>a)&&void 0===e.nsecs&&(f=0),f>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");a=p,c=f,o=h,p+=122192928e5;const g=(1e4*(268435455&p)+f)%4294967296;u[l++]=g>>>24&255,u[l++]=g>>>16&255,u[l++]=g>>>8&255,u[l++]=255&g;const y=p/4294967296*1e4&268435455;u[l++]=y>>>8&255,u[l++]=255&y,u[l++]=y>>>24&15|16,u[l++]=y>>>16&255,u[l++]=h>>>8|128,u[l++]=255&h;for(let e=0;e<6;++e)u[l+e]=d[e];return t||Object(r.b)(u)},u=(n(9),n(21));var d=function(e){if(!Object(u.a)(e))throw TypeError("Invalid UUID");let t;const 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};function h(e,t,n){function i(e,i,s,o){var a;if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));const t=[];for(let n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof i&&(i=d(i)),16!==(null===(a=i)||void 0===a?void 0:a.length))throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let c=new Uint8Array(16+e.length);if(c.set(i),c.set(e,i.length),c=n(c),c[6]=15&c[6]|t,c[8]=63&c[8]|128,s){o=o||0;for(let e=0;e<16;++e)s[o+e]=c[e];return s}return Object(r.b)(c)}try{i.name=e}catch(e){}return i.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",i.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",i}function p(e){return 14+(e+64>>>9<<4)+1}function f(e,t){const n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function m(e,t,n,i,r,s){return f((o=f(f(t,e),f(i,s)))<<(a=r)|o>>>32-a,n);var o,a}function g(e,t,n,i,r,s,o){return m(t&n|~t&i,e,t,r,s,o)}function y(e,t,n,i,r,s,o){return m(t&i|n&~i,e,t,r,s,o)}function v(e,t,n,i,r,s,o){return m(t^n^i,e,t,r,s,o)}function b(e,t,n,i,r,s,o){return m(n^(t|~i),e,t,r,s,o)}var _=h("v3",48,(function(e){if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(let n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return function(e){const t=[],n=32*e.length;for(let i=0;i<n;i+=8){const n=e[i>>5]>>>i%32&255,r=parseInt("0123456789abcdef".charAt(n>>>4&15)+"0123456789abcdef".charAt(15&n),16);t.push(r)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[p(t)-1]=t;let n=1732584193,i=-271733879,r=-1732584194,s=271733878;for(let t=0;t<e.length;t+=16){const o=n,a=i,c=r,l=s;n=g(n,i,r,s,e[t],7,-680876936),s=g(s,n,i,r,e[t+1],12,-389564586),r=g(r,s,n,i,e[t+2],17,606105819),i=g(i,r,s,n,e[t+3],22,-1044525330),n=g(n,i,r,s,e[t+4],7,-176418897),s=g(s,n,i,r,e[t+5],12,1200080426),r=g(r,s,n,i,e[t+6],17,-1473231341),i=g(i,r,s,n,e[t+7],22,-45705983),n=g(n,i,r,s,e[t+8],7,1770035416),s=g(s,n,i,r,e[t+9],12,-1958414417),r=g(r,s,n,i,e[t+10],17,-42063),i=g(i,r,s,n,e[t+11],22,-1990404162),n=g(n,i,r,s,e[t+12],7,1804603682),s=g(s,n,i,r,e[t+13],12,-40341101),r=g(r,s,n,i,e[t+14],17,-1502002290),i=g(i,r,s,n,e[t+15],22,1236535329),n=y(n,i,r,s,e[t+1],5,-165796510),s=y(s,n,i,r,e[t+6],9,-1069501632),r=y(r,s,n,i,e[t+11],14,643717713),i=y(i,r,s,n,e[t],20,-373897302),n=y(n,i,r,s,e[t+5],5,-701558691),s=y(s,n,i,r,e[t+10],9,38016083),r=y(r,s,n,i,e[t+15],14,-660478335),i=y(i,r,s,n,e[t+4],20,-405537848),n=y(n,i,r,s,e[t+9],5,568446438),s=y(s,n,i,r,e[t+14],9,-1019803690),r=y(r,s,n,i,e[t+3],14,-187363961),i=y(i,r,s,n,e[t+8],20,1163531501),n=y(n,i,r,s,e[t+13],5,-1444681467),s=y(s,n,i,r,e[t+2],9,-51403784),r=y(r,s,n,i,e[t+7],14,1735328473),i=y(i,r,s,n,e[t+12],20,-1926607734),n=v(n,i,r,s,e[t+5],4,-378558),s=v(s,n,i,r,e[t+8],11,-2022574463),r=v(r,s,n,i,e[t+11],16,1839030562),i=v(i,r,s,n,e[t+14],23,-35309556),n=v(n,i,r,s,e[t+1],4,-1530992060),s=v(s,n,i,r,e[t+4],11,1272893353),r=v(r,s,n,i,e[t+7],16,-155497632),i=v(i,r,s,n,e[t+10],23,-1094730640),n=v(n,i,r,s,e[t+13],4,681279174),s=v(s,n,i,r,e[t],11,-358537222),r=v(r,s,n,i,e[t+3],16,-722521979),i=v(i,r,s,n,e[t+6],23,76029189),n=v(n,i,r,s,e[t+9],4,-640364487),s=v(s,n,i,r,e[t+12],11,-421815835),r=v(r,s,n,i,e[t+15],16,530742520),i=v(i,r,s,n,e[t+2],23,-995338651),n=b(n,i,r,s,e[t],6,-198630844),s=b(s,n,i,r,e[t+7],10,1126891415),r=b(r,s,n,i,e[t+14],15,-1416354905),i=b(i,r,s,n,e[t+5],21,-57434055),n=b(n,i,r,s,e[t+12],6,1700485571),s=b(s,n,i,r,e[t+3],10,-1894986606),r=b(r,s,n,i,e[t+10],15,-1051523),i=b(i,r,s,n,e[t+1],21,-2054922799),n=b(n,i,r,s,e[t+8],6,1873313359),s=b(s,n,i,r,e[t+15],10,-30611744),r=b(r,s,n,i,e[t+6],15,-1560198380),i=b(i,r,s,n,e[t+13],21,1309151649),n=b(n,i,r,s,e[t+4],6,-145523070),s=b(s,n,i,r,e[t+11],10,-1120210379),r=b(r,s,n,i,e[t+2],15,718787259),i=b(i,r,s,n,e[t+9],21,-343485551),n=f(n,o),i=f(i,a),r=f(r,c),s=f(s,l)}return[n,i,r,s]}(function(e){if(0===e.length)return[];const t=8*e.length,n=new Uint32Array(p(t));for(let i=0;i<t;i+=8)n[i>>5]|=(255&e[i/8])<<i%32;return n}(e),8*e.length))})),S=n(208);function w(e,t,n,i){switch(e){case 0:return t&n^~t&i;case 1:return t^n^i;case 2:return t&n^t&i^n&i;case 3:return t^n^i}}function T(e,t){return e<<t|e>>>32-t}var I=h("v5",80,(function(e){const t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=[];for(let n=0;n<t.length;++n)e.push(t.charCodeAt(n))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);const i=e.length/4+2,r=Math.ceil(i/16),s=new Array(r);for(let t=0;t<r;++t){const n=new Uint32Array(16);for(let i=0;i<16;++i)n[i]=e[64*t+4*i]<<24|e[64*t+4*i+1]<<16|e[64*t+4*i+2]<<8|e[64*t+4*i+3];s[t]=n}s[r-1][14]=8*(e.length-1)/Math.pow(2,32),s[r-1][14]=Math.floor(s[r-1][14]),s[r-1][15]=8*(e.length-1)&4294967295;for(let e=0;e<r;++e){const i=new Uint32Array(80);for(let t=0;t<16;++t)i[t]=s[e][t];for(let e=16;e<80;++e)i[e]=T(i[e-3]^i[e-8]^i[e-14]^i[e-16],1);let r=n[0],o=n[1],a=n[2],c=n[3],l=n[4];for(let e=0;e<80;++e){const n=Math.floor(e/20),s=T(r,5)+w(n,o,a,c)+l+t[n]+i[e]>>>0;l=c,c=a,a=T(o,30)>>>0,o=r,r=s}n[0]=n[0]+r>>>0,n[1]=n[1]+o>>>0,n[2]=n[2]+a>>>0,n[3]=n[3]+c>>>0,n[4]=n[4]+l>>>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(!Object(u.a)(e))throw TypeError("Invalid UUID");return parseInt(e.slice(14,15),16)};n.d(t,"v1",(function(){return l})),n.d(t,"v3",(function(){return _})),n.d(t,"v4",(function(){return S.a})),n.d(t,"v5",(function(){return I})),n.d(t,"NIL",(function(){return"00000000-0000-0000-0000-000000000000"})),n.d(t,"version",(function(){return A})),n.d(t,"validate",(function(){return u.a})),n.d(t,"stringify",(function(){return r.a})),n.d(t,"parse",(function(){return d}))},function(e,t,n){var i=n(18);e.exports=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(e,t,n){var i=n(29),r=n(46),s=n(76);e.exports=i?function(e,t,n){return r.f(e,t,s(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(14),r=n(56);class s extends r.Transform{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"be";super(),this._block=i.Buffer.alloc(e),this._finalSize=t,this._blockSize=e,this._bigEndian="be"===n,this._len=0}_transform(e,t,n){let i=null;try{this.update(e,t)}catch(e){i=e}n(i)}_flush(e){let t=null;try{this.push(this.digest())}catch(e){t=e}e(t)}update(e,t){"string"==typeof e&&(t=t||"utf8",e=i.Buffer.from(e,t));const n=this._block,r=this._blockSize,s=e.length;let o=this._len;for(let t=0;t<s;){const i=o%r,a=Math.min(s-t,r-i);for(let r=0;r<a;r++)n[i+r]=e[t+r];o+=a,t+=a,o%r==0&&this._update(n)}return this._len+=s,this}digest(e){const 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));const 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{const e=(4294967295&n)>>>0,t=(n-e)/4294967296;this._bigEndian?(this._block.writeUInt32BE(t,this._blockSize-8),this._block.writeUInt32BE(e,this._blockSize-4)):(this._block.writeUInt32LE(e,this._blockSize-8),this._block.writeUInt32LE(t,this._blockSize-4))}this._update(this._block);const i=this._hash();return e?i.toString(e):i}_update(e){throw new Error("_update must be implemented by subclass")}_hash(){throw new Error("_update must be implemented by subclass")}}t.default=s},function(e,t,n){"use strict";t.inherits=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}},function(e,t,n){var i=n(238),r=n(11),s=n(251);i({global:!0,bind:!0,enumerable:!0,forced:!r.setImmediate||!r.clearImmediate},{setImmediate:s.set,clearImmediate:s.clear})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(35);class r{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];this.name=e,this.attributes=t,this.children=[],this.optionalNamespaces={};for(const e of n)if("string"!=typeof e){const t=new r(e.name,e.attributes,e.children);t.parent=this,this.children.push(t)}else this.children.push(e)}getName(){return this.name.indexOf(":")>=0?this.name.substr(this.name.indexOf(":")+1):this.name}getNamespace(){if(this.name.indexOf(":")>=0){const e=this.name.substr(0,this.name.indexOf(":"));return this.findNamespaceForPrefix(e)}return this.findNamespaceForPrefix()}getNamespaceContext(){let e={};this.parent&&(e=this.parent.getNamespaceContext());for(const[t,n]of Object.entries(this.attributes))if(t.startsWith("xmlns:")){const i=t.substr(6);e[n]=i}return e}getDefaultNamespace(){return this.attributes.xmlns?this.attributes.xmlns:this.parent?this.parent.getDefaultNamespace():""}getNamespaceRoot(e){if(this.parent){const t=this.parent.getNamespaceRoot(e);if(t)return t}for(const[t,n]of Object.entries(this.attributes))if(t.startsWith("xmlns:")&&n===e)return this;if(this.optionalNamespaces[e])return this}getAttribute(e,t){if(!t)return this.attributes[e];const n=this.getNamespaceContext();return n[t]?this.attributes[[n[t],e].join(":")]:void 0}getChild(e,t){return this.getChildren(e,t)[0]}getChildren(e,t){const n=[];for(const i of this.children)"string"==typeof i||i.getName()!==e||t&&i.getNamespace()!==t||n.push(i);return n}getText(){let e="";for(const t of this.children)"string"==typeof t&&(e+=t);return e}appendChild(e){return this.children.push(e),"string"!=typeof e&&(e.parent=this),e}setAttribute(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.attributes[e]=t||void 0,""===t&&n&&(this.attributes[e]=t)}addOptionalNamespace(e,t){this.optionalNamespaces[t]=e}useNamespace(e,t){return this.optionalNamespaces[t]&&(e=this.optionalNamespaces[t]),this.setAttribute("xmlns:"+e,t),e}toJSON(){const e=this.children.map(e=>"string"==typeof e?e:e?e.toJSON():void 0).filter(e=>!!e),t={};for(const[e,n]of Object.entries(this.attributes))null!=n&&(t[e]=n);return{attributes:t,children:e,name:this.name}}toString(){let e=this.openTag(!0);if(this.children.length){for(const t of this.children)"string"==typeof t?e+=(0,i.escapeXMLText)(t):t&&(e+=t.toString());e+=this.closeTag()}return e}openTag(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t="";t+="<"+this.name;for(const[e,n]of Object.entries(this.attributes))void 0!==n&&(t+=` ${e}="${(0,i.escapeXML)(n.toString())}"`);return e&&0===this.children.length?t+="/>":t+=">",t}closeTag(){return`</${this.name}>`}findNamespaceForPrefix(e){if(e){const 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""}}t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.basicLanguageResolver=t.escapeXMLText=t.unescapeXML=t.escapeXML=void 0;const i=(0,n(6).__importDefault)(n(54)),r={'"':"&quot;","&":"&amp;","'":"&apos;","<":"&lt;",">":"&gt;"},s={"&amp;":"&","&apos;":"'","&gt;":">","&lt;":"<","&quot;":'"'},o=/&([a-zA-Z0-9]+|#[0-9]+|#x[0-9a-fA-F]+);/g,a=/&|<|>|"|'/g,c=/&|<|>/g;function l(e){return r[e]}t.escapeXML=function(e){return e.replace(a,l)},t.unescapeXML=function(e){return e.replace(o,e=>function(e){if(s[e])return s[e];const 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 i.default.restrictedXML("Prohibited entity: "+e)}(e))},t.escapeXMLText=function(e){return e.replace(c,l)},t.basicLanguageResolver=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";const i=new Set(e.map(e=>e.toLowerCase()));for(let e of t.map(e=>e.toLowerCase()))if("*"!==e)for(;e.length>0;){if(i.has(e))return e;e=e.substring(0,e.lastIndexOf("-")).toLowerCase(),e.lastIndexOf("-")===e.length-2&&(e=e.substring(0,e.lastIndexOf("-")))}return n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nextTick=void 0,t.nextTick=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];queueMicrotask(()=>e(...n))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.exportToSDP=t.importFromSDP=void 0;const i=(0,n(6).__importStar)(n(100));t.importFromSDP=function(e){const t=i.getMediaSections(e),n=i.getDescription(e),r={groups:[],media:[]};i.matchPrefix(n,"a=ice-lite").length>0&&(r.iceLite=!0);for(const e of i.matchPrefix(n,"a=group:")){const t=e.split(" "),n=t.shift().substr(8);r.groups.push({mids:t,semantics:n})}for(const e of t){const t=i.getKind(e),s=i.isRejected(e),o=i.parseMLine(e),a={direction:i.getDirection(e,n),kind:t,mid:i.getMid(e),protocol:o.protocol};if(s||(a.iceParameters=i.getIceParameters(e,n),a.dtlsParameters=i.getDtlsParameters(e,n),a.setup=i.matchPrefix(e,"a=setup:")[0].substr(8),r.iceLite&&(a.iceParameters.iceLite=!0)),"audio"===t||"video"===t){a.rtpParameters=i.parseRtpParameters(e),a.rtpEncodingParameters=i.parseRtpEncodingParameters(e),a.rtcpParameters=i.parseRtcpParameters(e);const t=i.parseMsid(e);a.streams=t?[t]:[]}else"application"===t&&(a.sctp=i.parseSctpDescription(e));a.candidates=i.matchPrefix(e,"a=candidate:").map(i.parseCandidate),r.media.push(a)}return r},t.exportToSDP=function(e){const t=[];t.push(i.writeSessionBoilerplate(e.sessionId,e.sessionVersion),"a=msid-semantic:WMS *\r\n"),(e.iceLite||e.media.filter(e=>e.iceParameters&&e.iceParameters.iceLite).length>0)&&t.push("a=ice-lite\r\n");for(const n of e.groups||[])t.push(`a=group:${n.semantics} ${n.mids.join(" ")}\r\n`);for(const n of e.media||[]){const e=!(n.iceParameters&&n.dtlsParameters);if("application"===n.kind&&n.sctp)t.push(i.writeSctpDescription(n,n.sctp));else if(n.rtpParameters){let r=i.writeRtpDescription(n.kind,n.rtpParameters);e&&(r=r.replace(`m=${n.kind} 9 `,`m=${n.kind} 0 `)),t.push(r),t.push(`a=${n.direction||"sendrecv"}\r\n`);for(const e of n.streams||[])t.push(`a=msid:${e.stream} ${e.track}\r\n`);if(n.rtcpParameters&&(t.push(i.writeRtcpParameters(n.rtcpParameters)),n.rtcpParameters.cname&&n.rtpEncodingParameters&&n.rtpEncodingParameters[0].rtx)){const e=n.rtpEncodingParameters[0];t.push(`a=ssrc-group:FID ${e.ssrc} ${e.rtx.ssrc}\r\n`),t.push(`a=ssrc:${e.rtx.ssrc} cname:${n.rtcpParameters.cname}\r\n`)}}if(void 0!==n.mid&&t.push(`a=mid:${n.mid}\r\n`),n.iceParameters&&t.push(i.writeIceParameters({usernameFragment:n.iceParameters.usernameFragment,password:n.iceParameters.password})),n.dtlsParameters&&n.setup&&t.push(i.writeDtlsParameters(n.dtlsParameters,n.setup)),n.candidates&&n.candidates.length)for(const e of n.candidates)t.push(`a=${i.writeCandidate(e)}\r\n`)}return t.join("")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HttpClient=void 0;const i=n(26).__importStar(n(103)),r=n(16);class s{constructor(){this._httpRetryingRequests=new Map}requestApiWithRetry(e,t,n){const i=r.retryPromise(this.requestApi.bind(this,e,t),e=>{var n,i,r;let o=!1;if(null==e?void 0:e.response){o=s.retryStatusCodes.has(e.response.status||0);const a=(null===(n=e.response.headers)||void 0===n?void 0:n["retry-after"])||(null===(r=(i=e.response).getResponseHeader)||void 0===r?void 0:r.call(i,"retry-after"));a&&((t.logger||console).debug("retry-after header found on response. setting retry delay",{retryAfter:a}),o=1e3*parseInt(a,10))}return o},n,t.logger);return this._httpRetryingRequests.set(i._id,i),i.promise.then(()=>this.cancelRetryRequest(i._id),()=>this.cancelRetryRequest(i._id)),i}requestApi(e,t){const n=t.logger||console,r=(new Date).getTime(),s=this._buildUri(t.host,e,t.version),o={"content-type":t.contentType||"application/json",...t.customHeaders||{}},a={method:t.method,url:s,data:t.data,responseType:t.responseType,timeout:t.requestTimeout||3e4,headers:o};t.noAuthHeader||(a.headers.Authorization="Bearer "+t.authToken);const c=this.handleResponse.bind(this,n,r,a);return i.default(a).then(c,c)}handleResponse(e,t,n,r){var s,o,a;let c=(new Date).getTime(),l=c-t+"ms";if(r instanceof i.AxiosError){if((null===(o=null===(s=r.config)||void 0===s?void 0:s.headers)||void 0===o?void 0:o.Authorization)&&(r.config.headers.Authorization="redacted"),"ECONNABORTED"===r.code)return e.debug("request error: "+n.url,{message:r.message,now:c,elapsed:l},{skipServer:!0}),Promise.reject(r);const t=r.response||{};let i=t.status,u=t.headers&&t.headers["inin-correlation-id"],d=t.data,h={...r,text:null===(a=t.request)||void 0===a?void 0:a.response};return e.debug("request error: "+n.url,{message:r.message,now:c,elapsed:l,status:i,correlationId:u,body:d},{skipServer:!0}),Promise.reject(h)}let u=r.status,d=r.headers["inin-correlation-id"],h=JSON.stringify(r.data);return e.debug(`response: ${n.method.toUpperCase()} ${n.url}`,{now:c,status:u,elapsed:l,correlationId:d,body:h},{skipServer:!0}),Promise.resolve(r)}stopAllRetries(){Array.from(this._httpRetryingRequests.keys()).forEach(e=>this.cancelRetryRequest(e))}cancelRetryRequest(e){const t=this._httpRetryingRequests.get(e);return t&&(t.cancel(new Error("Retry request cancelled")),this._httpRetryingRequests.delete(e)),!0}formatRequestError(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)){const 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}isSuperagentNetworkError(e){return e&&e.hasOwnProperty("status")&&e.hasOwnProperty("method")&&e.hasOwnProperty("url")}isSuperagentResponseError(e){return!!(e&&e.response&&e.response.body&&e.response.req)}_buildUri(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"v2";return t=t.replace(/^\/+|\/+$/g,""),0===e.indexOf("http")?`${e}/api/${n}/${t}`:`https://api.${e}/api/${n}/${t}`}}t.HttpClient=s,s.retryStatusCodes=new Set([408,413,429,500,502,503,504])},function(e,t){var n=Object.prototype.hasOwnProperty;function i(e){return"[Throws: "+(e?e.message:"?")+"]"}function r(e){var t=[];return function e(r){if(null===r||"object"!=typeof r)return r;if(-1!==t.indexOf(r))return"[Circular]";if(t.push(r),"function"==typeof r.toJSON)try{var s=e(r.toJSON());return t.pop(),s}catch(e){return i(e)}if(Array.isArray(r)){var o=r.map(e);return t.pop(),o}var a=Object.keys(r).reduce((function(t,s){return t[s]=e(function(e,t){if(n.call(e,t))try{return e[t]}catch(e){return i(e)}return e[t]}(r,s)),t}),{});return t.pop(),a}(e)}e.exports=function(e,t,n){return JSON.stringify(r(e),t,n)},e.exports.ensureProperties=r},function(e,t,n){"use strict";function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,"a",(function(){return i}))},function(e,t,n){"use strict";function i(e,t){return function(){return e.apply(t,arguments)}}n.d(t,"a",(function(){return i}))},function(e,t,n){"use strict";t.a=null},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));n(9);let i;const r=new Uint8Array(16);function s(){if(!i&&(i="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!i))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return i(r)}},function(e,t,n){var i=n(11),r=n(71),s=n(19),o=n(48),a=n(77),c=n(217),l=r("wks"),u=i.Symbol,d=c?u:u&&u.withoutSetter||o;e.exports=function(e){return s(l,e)||(a&&s(u,e)?l[e]=u[e]:l[e]=d("Symbol."+e)),l[e]}},function(e,t,n){var i=n(11),r=n(30);e.exports=function(e,t){try{r(i,e,t)}catch(n){i[e]=t}return t}},function(e,t,n){var i=n(29),r=n(73),s=n(47),o=n(75),a=Object.defineProperty;t.f=i?a:function(e,t,n){if(s(e),t=o(t,!0),s(n),r)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var i=n(25);e.exports=function(e){if(!i(e))throw TypeError(String(e)+" is not an object");return e}},function(e,t){var n=0,i=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+i).toString(36)}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){var n=Math.ceil,i=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?i:n)(e)}},function(e,t,n){var i=n(240),r=n(83);e.exports=function(e){return i(r(e))}},function(e,t,n){var i=n(243),r=n(11),s=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?s(i[e])||s(r[e]):i[e]&&i[e][t]||r[e]&&r[e][t]}},function(e,t,n){(function(e,i){var r;/*! https://mths.be/punycode v1.4.1 by @mathias */!function(s){t&&t.nodeType,e&&e.nodeType;var o="object"==typeof i&&i;o.global!==o&&o.window!==o&&o.self;var a,c=2147483647,l=/^xn--/,u=/[^\x20-\x7E]/,d=/[\x2E\u3002\uFF0E\uFF61]/g,h={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},p=Math.floor,f=String.fromCharCode;function m(e){throw new RangeError(h[e])}function g(e,t){for(var n=e.length,i=[];n--;)i[n]=t(e[n]);return i}function y(e,t){var n=e.split("@"),i="";return n.length>1&&(i=n[0]+"@",e=n[1]),i+g((e=e.replace(d,".")).split("."),t).join(".")}function v(e){for(var t,n,i=[],r=0,s=e.length;r<s;)(t=e.charCodeAt(r++))>=55296&&t<=56319&&r<s?56320==(64512&(n=e.charCodeAt(r++)))?i.push(((1023&t)<<10)+(1023&n)+65536):(i.push(t),r--):i.push(t);return i}function b(e){return g(e,(function(e){var t="";return e>65535&&(t+=f((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=f(e)})).join("")}function _(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function S(e,t,n){var i=0;for(e=n?p(e/700):e>>1,e+=p(e/t);e>455;i+=36)e=p(e/35);return p(i+36*e/(e+38))}function w(e){var t,n,i,r,s,o,a,l,u,d,h,f=[],g=e.length,y=0,v=128,_=72;for((n=e.lastIndexOf("-"))<0&&(n=0),i=0;i<n;++i)e.charCodeAt(i)>=128&&m("not-basic"),f.push(e.charCodeAt(i));for(r=n>0?n+1:0;r<g;){for(s=y,o=1,a=36;r>=g&&m("invalid-input"),((l=(h=e.charCodeAt(r++))-48<10?h-22:h-65<26?h-65:h-97<26?h-97:36)>=36||l>p((c-y)/o))&&m("overflow"),y+=l*o,!(l<(u=a<=_?1:a>=_+26?26:a-_));a+=36)o>p(c/(d=36-u))&&m("overflow"),o*=d;_=S(y-s,t=f.length+1,0==s),p(y/t)>c-v&&m("overflow"),v+=p(y/t),y%=t,f.splice(y++,0,v)}return b(f)}function T(e){var t,n,i,r,s,o,a,l,u,d,h,g,y,b,w,T=[];for(g=(e=v(e)).length,t=128,n=0,s=72,o=0;o<g;++o)(h=e[o])<128&&T.push(f(h));for(i=r=T.length,r&&T.push("-");i<g;){for(a=c,o=0;o<g;++o)(h=e[o])>=t&&h<a&&(a=h);for(a-t>p((c-n)/(y=i+1))&&m("overflow"),n+=(a-t)*y,t=a,o=0;o<g;++o)if((h=e[o])<t&&++n>c&&m("overflow"),h==t){for(l=n,u=36;!(l<(d=u<=s?1:u>=s+26?26:u-s));u+=36)w=l-d,b=36-d,T.push(f(_(d+w%b,0))),l=p(w/b);T.push(f(_(l,0))),s=S(n,y,i==r),n=0,++i}++n,++t}return T.join("")}a={version:"1.4.1",ucs2:{decode:v,encode:b},decode:w,encode:T,toASCII:function(e){return y(e,(function(e){return u.test(e)?"xn--"+T(e):e}))},toUnicode:function(e){return y(e,(function(e){return l.test(e)?w(e.slice(4).toLowerCase()):e}))}},void 0===(r=function(){return a}.call(t,n,t,e))||(e.exports=r)}()}).call(this,n(266)(e),n(15))},function(e,t,n){"use strict";var i;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"}(i=t.JXTErrorCondition||(t.JXTErrorCondition={}));class r extends Error{constructor(e){super(e.text),this.isJXTError=!0,this.condition=e.condition,this.text=e.text}static notWellFormed(e){return new r({condition:i.NotWellFormed,text:e})}static restrictedXML(e){return new r({condition:i.RestrictedXML,text:e})}static alreadyClosed(e){return new r({condition:i.AlreadyClosed,text:e})}static unknownRoot(e){return new r({condition:i.UnknownRoot,text:e})}}t.default=r},function(e,t,n){"use strict";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;const i=n(6),r=n(12),s=(0,i.__importDefault)(n(34)),o=n(57);function a(e,t,n,i){if(i){e=e||i.getNamespace();const n=i.getNamespaceRoot(e);if(n){t=`${n.useNamespace("",e)}:${t}`}}const r=new s.default(t);return t.indexOf(":")<0&&(!n||e!==n)&&r.setAttribute("xmlns",e),r}function c(e,t){return(e.getAttribute("xml:lang")||t||"").toLowerCase()}function l(e,t){const n=[];for(const i of e)n.push(c(i,t.lang));let i;return i=t.resolveLanguage?t.resolveLanguage(n,t.acceptLanguages||[],t.lang):t.lang,i||""}function u(e,t,n,i){const r=e.getChildren(n,t),s=c(e);return r.length?i?r.filter(e=>{if(c(e,s)===i)return!0}):r:[]}function d(e,t,n,i){t=t||e.getNamespace();const r=u(e,t,n,i);if(r.length)return r[0];const s=a(t,n,e.getDefaultNamespace(),e),o=c(e,i);return i&&o!==i&&s.setAttribute("xml:lang",i),e.appendChild(s),s}function h(e){return{importer(t){const n=t.getAttribute(e.name,e.namespace);return n?e.parseValue(n):e.dynamicDefault?e.dynamicDefault(n):e.staticDefault},exporter(t,n){if(void 0===n||n===e.staticDefault)return;const i=e.writeValue(n);if(i||e.emitEmpty)if(e.namespace&&e.prefix){let n;const r=t.getNamespaceRoot(e.namespace);if(r)n=r.useNamespace(e.prefix,e.namespace);else{const i=t.getNamespaceContext();i[e.namespace]||(n=t.useNamespace(e.prefix,e.namespace),i[e.namespace]=n)}t.setAttribute(`${n}:${e.name}`,i,e.emitEmpty)}else t.setAttribute(e.name,i,e.emitEmpty)}}}function p(e,t){return function(n){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return r={staticDefault:i,...r},h({name:n,...e,...t?t(r):r})}}function f(e,t){return function(n,i,r){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return o={staticDefault:s,...o},h({name:r,namespace:i,prefix:n,...e,...t?t(o):o})}}function m(e){const t=e.converter||h({...e,namespace:e.attributeNamespace});return{importer(n,i){const r=n.getChild(e.element,e.namespace||n.getNamespace());return r?t.importer(r,i):e.dynamicDefault?e.dynamicDefault():e.staticDefault},exporter(n,i,r){if(void 0!==i&&i!==e.staticDefault){const s=d(n,e.namespace||n.getNamespace(),e.element);t.exporter(s,i,r)}}}}function g(e,t){return function(n,i,r){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return o={staticDefault:s,...o},m({element:i,name:r,namespace:n,...e,...t?t(o):o})}}function y(e){return{importer(t){const n=t.getText();return n?e.parseValue(n):e.dynamicDefault?e.dynamicDefault(n):e.staticDefault},exporter(t,n){if(!n&&e.emitEmpty)return void t.children.push("");if(void 0===n||n===e.staticDefault)return;const i=e.writeValue(n);i&&t.children.push(i)}}}function v(e){const t=y(e);return{importer(n,i){const r=u(n,e.namespace||n.getNamespace(),e.element),s=l(r,i);if(!r.length)return e.dynamicDefault?e.dynamicDefault():e.staticDefault;if(e.matchLanguage)for(const e of r)if(c(e,i.lang)===s)return t.importer(e,i);return t.importer(r[0],i)},exporter(n,i,r){if(i||!e.emitEmpty){if(void 0!==i&&i!==e.staticDefault){const s=d(n,e.namespace||n.getNamespace(),e.element,e.matchLanguage?r.lang:void 0);t.exporter(s,i,r)}}else d(n,e.namespace||n.getNamespace(),e.element,e.matchLanguage?r.lang:void 0)}}}t.createElement=a,t.getLang=c,t.getTargetLang=l,t.findAll=u,t.findOrCreate=d;const b={parseValue:e=>e,writeValue:e=>e},_={parseValue:e=>parseInt(e,10),writeValue:e=>e.toString()},S={parseValue:e=>parseFloat(e),writeValue:e=>e.toString()},w={parseValue:e=>"true"===e||"1"===e||"false"!==e&&"0"!==e&&void 0,writeValue:e=>e?"1":"0"},T={parseValue:e=>new Date(e),writeValue:e=>"string"==typeof e?e:e.toISOString()},I={parseValue:e=>JSON.parse(e),writeValue:e=>JSON.stringify(e)},A=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"utf8";return{parseValue:t=>("base64"===e&&"="===t&&(t=""),r.Buffer.from(t.trim(),e)),writeValue:t=>{let n;return n="string"==typeof t?r.Buffer.from(t).toString(e):t?t.toString(e):"","base64"===e&&(n=n||"="),n}}},E={parseValue:e=>{let t=-1;"-"===e.charAt(0)&&(t=1,e=e.slice(1));const n=e.split(":");return(60*parseInt(n[0],10)+parseInt(n[1],10))*t},writeValue:e=>{if("string"==typeof e)return e;{let t="-";e<0&&(e=-e,t="+");const n=e/60,i=e%60;return t+=(n<10?"0":"")+n+":"+(i<10?"0":"")+i,t}}};t.attribute=p(b,e=>({dynamicDefault:e.emitEmpty?t=>""===t?"":e.staticDefault:void 0,...e})),t.booleanAttribute=p(w),t.integerAttribute=p(_),t.floatAttribute=p(S),t.dateAttribute=p(T),t.namespacedAttribute=f(b),t.namespacedBooleanAttribute=f(w),t.namespacedIntegerAttribute=f(_),t.namespacedFloatAttribute=f(S),t.namespacedDateAttribute=f(T),t.childAttribute=g(b),t.childBooleanAttribute=g(w),t.childIntegerAttribute=g(_),t.childFloatAttribute=g(S),t.childDateAttribute=g(T);t.text=e=>y({staticDefault:e,...b});t.textJSON=()=>y({...I});function N(){return{importer:(e,t)=>c(e,t.lang),exporter(e,t,n){t&&t.toLowerCase()!==n.lang?e.setAttribute("xml:lang",t):e.setAttribute("xml:lang",void 0)}}}t.textBuffer=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"utf8";return y({...A(e)})},t.languageAttribute=N;t.childLanguageAttribute=(e,t)=>m({converter:N(),element:t,name:"xml:lang",namespace:e,...b});t.childText=function(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return v({element:t,emitEmpty:i,matchLanguage:!0,namespace:e,staticDefault:n,...b})};t.childTextBuffer=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"utf8";return v({element:t,matchLanguage:!0,namespace:e,...A(n)})};t.childDate=(e,t)=>v({element:t,namespace:e,...T});t.childInteger=(e,t,n)=>v({element:t,namespace:e,staticDefault:n,..._});t.childFloat=(e,t,n)=>v({element:t,namespace:e,staticDefault:n,...S});t.childJSON=(e,t)=>v({element:t,namespace:e,...I}),t.childTimezoneOffset=function(e,t){return v({element:t,namespace:e,staticDefault:0,...E})},t.childBoolean=function(e,t){return{importer(n){if(n.getChild(t,e||n.getNamespace()))return!0},exporter(n,i){i&&d(n,e||n.getNamespace(),t)}}};const x=(e,t,n)=>{if(!n)return;let i=t;for(const t of e)i=d(i,t.namespace||i.getNamespace(),t.element);i.children.push(n.toString())};t.deepChildText=function(e,t){return{importer(n){let i=n;for(const n of e)if(i=i.getChild(n.element,n.namespace||i.getNamespace()),!i)return t;return i.getText()||t},exporter(t,n){x(e,t,n)}}},t.deepChildInteger=function(e,t){return{importer(n){let i=n;for(const t of e)if(i=i.getChild(t.element,t.namespace||i.getNamespace()),!i)return;const r=i.getText();return r?parseInt(r,10):t||void 0},exporter(t,n){x(e,t,n)}}},t.deepChildBoolean=function(e){return{importer(t){let n=t;for(const t of e)if(n=n.getChild(t.element,t.namespace||n.getNamespace()),!n)return!1;return!0},exporter(t,n){if(!n)return;let i=t;for(const t of e)i=d(i,t.namespace||i.getNamespace(),t.element)}}},t.deepMultipleChildText=function(e){const t=e.pop();return{importer(n,i){let r=n;for(const t of e)if(r=r.getChild(t.element,t.namespace||r.getNamespace()),!r)return[];const s=[],o=u(r,t.namespace||r.getNamespace(),t.element),a=l(o,i);for(const e of o)c(e,i.lang)===a&&s.push(e.getText());return s},exporter(n,i,r){if(!i.length)return;let s=n;for(const t of e)s=d(s,t.namespace||s.getNamespace(),t.element);const{namespace:o,element:c}=t;for(const e of i){const t=a(o||s.getNamespace(),c,r.namespace,s);t.children.push(e),s.appendChild(t)}}}},t.childEnum=function(e,t,n){const i=new Map,r=new Map;for(const e of t)"string"==typeof e?(i.set(e,e),r.set(e,e)):(i.set(e[1],e[0]),r.set(e[0],e[1]));return{importer(t){for(const n of t.children)if("string"!=typeof n&&n.getNamespace()===(e||t.getNamespace())&&i.has(n.getName()))return i.get(n.getName());return n},exporter(t,n){r.has(n)&&d(t,e,r.get(n))}}},t.childDoubleEnum=function(e,t,n,i){const r=new Set(t),s=new Set(n);return{importer(t){for(const n of t.children)if("string"!=typeof n&&n.getNamespace()===(e||t.getNamespace())&&r.has(n.getName())){for(const i of n.children)if("string"!=typeof i&&i.getNamespace()===(e||t.getNamespace())&&s.has(i.getName()))return[n.getName(),i.getName()];return[n.getName()]}return i},exporter(t,n){const i=d(t,e,n[0]);n[1]&&d(i,e,n[1])}}},t.multipleChildText=function(e,t){return{importer(n,i){const r=[],s=u(n,e||n.getNamespace(),t),o=l(s,i);for(const e of s)c(e,i.lang)===o&&r.push(e.getText());return r},exporter(n,i,r){for(const s of i){const i=a(e||n.getNamespace(),t,r.namespace,n);i.children.push(s),n.appendChild(i)}}}},t.multipleChildAttribute=function(e,t,n){return{importer(i){const r=[],s=i.getChildren(t,e||i.getNamespace());for(const e of s){const t=e.getAttribute(n);void 0!==t&&r.push(t)}return r},exporter(i,r,s){for(const o of r){const r=a(e||i.getNamespace(),t,s.namespace,i);r.setAttribute(n,o),i.appendChild(r)}}}},t.multipleChildIntegerAttribute=function(e,t,n){return{importer(i){const r=[],s=i.getChildren(t,e||i.getNamespace());for(const e of s){const t=e.getAttribute(n);void 0!==t&&r.push(parseInt(t,10))}return r},exporter(i,r,s){for(const o of r){const r=a(e||i.getNamespace(),t,s.namespace,i);r.setAttribute(n,o.toString()),i.appendChild(r)}}}},t.childAlternateLanguageText=function(e,t){return{importer(n,i){const r=[],s=u(n,e||n.getNamespace(),t),o=new Set;for(const e of s){const t=e.getText();if(t){const n=c(e,i.lang);if(o.has(n))continue;r.push({lang:n,value:t}),o.add(n)}}return o.size>0?r:void 0},exporter(n,i,r){for(const s of i){const i=s.value;if(i){const o=a(e||n.getNamespace(),t,r.namespace,n);s.lang!==r.lang&&o.setAttribute("xml:lang",s.lang),o.children.push(i),n.appendChild(o)}}}}},t.multipleChildAlternateLanguageText=function(e,t){return{importer(n,i){const r=[],s=new Map;let o=!1;const a=u(n,e||n.getNamespace(),t);for(const e of a){const t=e.getText();if(t){const n=c(e,i.lang);let a=s.get(n);a||(a=[],s.set(n,a),r.push({lang:n,value:a})),a.push(t),o=!0}}return o?r:void 0},exporter(n,i,r){for(const s of i)for(const i of s.value){const o=a(e||n.getNamespace(),t,r.namespace,n);s.lang!==r.lang&&o.setAttribute("xml:lang",s.lang),o.children.push(i),n.appendChild(o)}}}},t.multipleChildEnum=function(e,t){const n=new Map,i=new Map;for(const e of t)"string"==typeof e?(n.set(e,e),i.set(e,e)):(n.set(e[1],e[0]),i.set(e[0],e[1]));return{importer(t){const i=[];for(const r of t.children)"string"!=typeof r&&r.getNamespace()===(e||t.getNamespace())&&n.has(r.getName())&&i.push(n.get(r.getName()));return i},exporter(t,n){for(const r of n)d(t,e,i.get(r))}}},t.splicePath=function(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return{importer(r,s){const o=r.getChild(t,e||r.getNamespace());if(!o)return;const a=[];for(const e of o.children)if("string"!=typeof e&&s.registry.getImportKey(e)===n){const t=s.registry.import(e);t&&a.push(t)}return i?a:a[0]},exporter(i,r,s){let o=[];o=Array.isArray(r)?r:[r];const a=[];for(const t of o){const r=s.registry.export(n,t,{...s,namespace:e||i.getNamespace()||void 0});r&&a.push(r)}if(a.length){const n=d(i,e||i.getNamespace(),t);for(const e of a)n.appendChild(e)}}}},t.staticValue=function(e){return{exporter:()=>{},importer:()=>e}},t.childRawElement=function(e,t,n){return{importer(i,r){if(n&&(!r.sanitizers||!r.sanitizers[n]))return;const s=i.getChild(t,e||i.getNamespace());return s?n?r.sanitizers[n](s.toJSON()):s.toJSON():void 0},exporter(i,r,a){if("string"==typeof r){r=(0,o.parse)(`<${t} xmlns="${e||i.getNamespace()}">${r}</${t}>`).toJSON()}if(n){if(!a.sanitizers||!a.sanitizers[n])return;r=a.sanitizers[n](r)}r&&i.appendChild(new s.default(r.name,r.attributes,r.children))}}},t.childLanguageRawElement=function(e,t,n){return{importer(i,r){if(n&&(!r.sanitizers||!r.sanitizers[n]))return;const s=u(i,e||i.getNamespace(),t),o=l(s,r);for(const e of s)if(c(e,r.lang)===o)return n?r.sanitizers[n](e.toJSON()):e.toJSON();return s[0]?n?r.sanitizers[n](s[0].toJSON()):s[0].toJSON():void 0},exporter(i,r,a){if("string"==typeof r){r=(0,o.parse)(`<${t} xmlns="${e||i.getNamespace()}">${r}</${t}>`).toJSON()}if(r&&n){if(!a.sanitizers||!a.sanitizers[n])return;r=a.sanitizers[n](r)}if(!r)return;const c=d(i,e||i.getNamespace(),t,a.lang);for(const e of r.children)"string"==typeof e?c.appendChild(e):e&&c.appendChild(new s.default(e.name,e.attributes,e.children))}}},t.childAlternateLanguageRawElement=function(e,t,n){return{importer(i,r){if(n&&(!r.sanitizers||!r.sanitizers[n]))return;const s=[],o=new Set,a=u(i,e||i.getNamespace(),t);for(const e of a){let t=e.toJSON();if(n&&(t=r.sanitizers[n](t)),t){const n=c(e,r.lang);if(o.has(n))continue;s.push({lang:n,value:t}),o.add(n)}}return o.size>0?s:void 0},exporter(i,r,c){for(const l of r){let r=l.value;if("string"==typeof r){r=(0,o.parse)(`<${t} xmlns="${e||i.getNamespace()}">${r}</${t}>`).toJSON()}if(r&&n){if(!c.sanitizers||!c.sanitizers[n])continue;r=c.sanitizers[n](r)}if(r){const n=a(e||i.getNamespace(),t,c.namespace,i);i.appendChild(n),l.lang!==c.lang&&n.setAttribute("xml:lang",l.lang);for(const e of r.children)"string"==typeof e?n.appendChild(e):n.appendChild(new s.default(e.name,e.attributes,e.children))}}}}},t.parameterMap=function(e,n,i,r){return{importer(s,o){const a={},c=u(s,e,n),l=(0,t.attribute)(i).importer,d=(0,t.attribute)(r).importer;for(const e of c)a[l(e,o)]=d(e,o);return a},exporter(s,o,c){const l=(0,t.attribute)(i).exporter,u=(0,t.attribute)(r).exporter,d=e||s.getNamespace();for(const[e,t]of Object.entries(o)){const i=a(d,n,c.namespace,s);l(i,e,c),o[e]&&u(i,t,c),s.appendChild(i)}}}}},function(e,t,n){"use strict";t.Readable=n(94),t.Writable=n(96),t.Duplex=n(27),t.Transform=n(98),t.PassThrough=n(281)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parse=void 0;const i=n(6),r=n(10),s=n(35),o=(0,i.__importDefault)(n(34)),a=(0,i.__importDefault)(n(54));function c(e){return 97<=e&&e<=122||65<=e&&e<=90||58===e||95===e}function l(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 u(e){return c(e)||l(e)}function d(e){return c(e)||45===e||46===e||48<=e&&e<=57||183===e||768<=e&&e<=879||8255<=e&&e<=8256||l(e)}function h(e){return 32===e||10===e||13===e||9===e}class p extends r.EventEmitter{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(),this.allowComments=!0,this.attributes={},this.state=34,this.tagName="",this.haveDeclaration=!1,this.recordBuffer=[],void 0!==e.allowComments&&(this.allowComments=e.allowComments)}write(e){for(const t of e){const e=t.codePointAt(0);switch(this.state){case 34:if(60===e){let e;try{e=(0,s.unescapeXML)(this.endRecord())}catch(e){return void this.emit("error",e)}e&&this.emit("text",e),this.transition(31);continue}this.record(t);continue;case 31:if(47===e){this.transition(7);continue}if(33===e){this.transition(24);continue}if(63===e){if(this.haveDeclaration)return this.restrictedXML();this.transition(25);continue}if(u(e)){this.transition(30),this.startRecord(t);continue}return this.notWellFormed();case 30:if(d(e)){this.record(t);continue}if(h(e)){this.startTag(),this.transition(32);continue}if(47===e){this.startTag(),this.transition(29);continue}if(62===e){this.startTag(),this.transition(34),this.emit("startElement",this.tagName,this.attributes);continue}return this.notWellFormed();case 29:if(62===e){this.emit("startElement",this.tagName,this.attributes),this.emit("endElement",this.tagName),this.transition(34);continue}return this.notWellFormed();case 33:if(h(e)){this.transition(32);continue}if(47===e){this.transition(29);continue}if(62===e){this.emit("startElement",this.tagName,this.attributes),this.transition(34);continue}return this.notWellFormed();case 32:if(h(e))continue;if(u(e)){this.startRecord(t),this.transition(0);continue}if(47===e){this.transition(29);continue}if(62===e){this.emit("startElement",this.tagName,this.attributes),this.transition(34);continue}return this.notWellFormed();case 7:if(u(e)){this.startRecord(t),this.transition(6);continue}return this.notWellFormed();case 6:if(d(e)){this.record(t);continue}if(h(e)){this.transition(8);continue}if(62===e){const e=this.endRecord();this.emit("endElement",e,this.attributes),this.transition(34);continue}return this.notWellFormed();case 8:if(h(e))continue;if(62===e){const e=this.endRecord();this.emit("endElement",e,this.attributes),this.transition(34);continue}return this.notWellFormed();case 0:if(d(e)){this.record(t);continue}if(61===e){this.addAttribute(),this.transition(4);continue}if(h(e)){this.addAttribute(),this.transition(3);continue}return this.notWellFormed();case 3:if(61===e){this.transition(4);continue}if(h(e))continue;return this.notWellFormed();case 4:if(34===e){this.startRecord(),this.transition(1);continue}if(39===e){this.startRecord(),this.transition(2);continue}if(h(e))continue;return this.notWellFormed();case 1:case 2:if(34===e&&1===this.state||39===e&&2===this.state){const e=this.endRecord();this.attributes[this.attributeName]=(0,s.unescapeXML)(e),this.transition(33);continue}if(60===e)return this.notWellFormed();this.record(t);continue;case 24:if(45===e){if(!this.allowComments)return this.restrictedXML();this.transition(23);continue}if(91===e){this.transition(21);continue}return this.notWellFormed();case 23:if(45===e){this.transition(14);continue}return this.notWellFormed();case 14:45===e&&this.transition(12);continue;case 12:45===e?this.transition(11):this.transition(14);continue;case 11:62===e?this.transition(34):this.transition(14);continue;case 25:if(88===e||120===e){this.transition(28);continue}return this.notWellFormed();case 28:if(77===e||109===e){this.transition(27);continue}return this.notWellFormed();case 27:if(76===e||108===e){this.transition(26);continue}return this.notWellFormed();case 26:if(h(e)){this.haveDeclaration=!0,this.transition(15);continue}return this.notWellFormed();case 13:if(62===e){this.transition(34);continue}return this.notWellFormed();case 15:63===e&&this.transition(13);continue;case 21:this.wait(e,67,20);continue;case 20:this.wait(e,68,19);continue;case 19:this.wait(e,65,18);continue;case 18:this.wait(e,84,17);continue;case 17:this.wait(e,65,16);continue;case 16:this.wait(e,91,5);continue;case 5:if(93===e){this.transition(10);continue}this.record(t);continue;case 10:93===e?this.transition(9):(this.record(String.fromCodePoint(93)),this.record(t),this.transition(5));continue;case 9:if(62===e){const e=this.endRecord();e&&this.emit("text",e),this.transition(34)}else this.record(String.fromCodePoint(93)),this.record(String.fromCodePoint(93)),this.record(t),this.transition(5);continue}}}end(e){e&&this.write(e),this.write=()=>{}}record(e){this.recordBuffer.push(e)}startRecord(e){this.recordBuffer=[],e&&this.recordBuffer.push(e)}endRecord(){const e=this.recordBuffer;return this.recordBuffer=[],e.join("")}startTag(){this.tagName=this.endRecord(),this.attributes={}}addAttribute(){const e=this.endRecord();if(void 0!==this.attributes[e])return this.notWellFormed();this.attributeName=e,this.attributes[e]=""}wait(e,t,n){if(e!==t)return this.notWellFormed();this.transition(n)}transition(e){this.state=e,34===e&&this.startRecord()}notWellFormed(e){this.emit("error",a.default.notWellFormed(e))}restrictedXML(e){this.emit("error",a.default.restrictedXML(e))}}t.parse=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=new p(t);let i,r,s=null;if(n.on("text",e=>{r&&r.children.push(e)}),n.on("startElement",(e,t)=>{const n=new o.default(e,t);i||(i=n),r=r?r.appendChild(n):n}),n.on("endElement",e=>{r?e===r.name?r.parent&&(r=r.parent):n.emit("error",a.default.notWellFormed("b")):n.emit("error",a.default.notWellFormed("a"))}),n.on("error",e=>{s=e}),n.write(e),n.end(),s)throw s;return i},t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StanzaMediaSession=void 0;const i=n(26),r=i.__importDefault(n(10)),s=n(59),o=n(8),a=i.__importDefault(n(102)),c=n(24),l={"Discovered new ICE candidate":{skipMessage:!0}};class u extends s.MediaSession{constructor(e){super(e.options),this.iceCandidatesDiscovered=0,this.iceCandidatesReceivedFromPeer=0,this.reinvite=!1,this.logger=e.logger,this.conversationId=e.conversationId,this.peerConnection=this.pc,this.fromUserId=e.fromUserId,this.meetingId=e.meetingId,this.id=this.sid,this.originalRoomJid=e.originalRoomJid,this.sessionType=c.SessionTypes[e.sessionType],this.ignoreHostCandidatesFromRemote=!!e.ignoreHostCandidatesFromRemote,this.allowIPv6=!!e.allowIPv6,this.allowTCP=!!e.allowTCP,this.privAnswerMode=e.privAnswerMode;const t=new r.default;Object.keys(t.__proto__).forEach(e=>{this[e]=t[e]}),e.optOutOfWebrtcStatsTelemetry||this.setupStatsGatherer(),this.pc.addEventListener("connectionstatechange",this.onConnectionStateChange.bind(this)),this.pc.addEventListener("icecandidateerror",this.onIceCandidateError.bind(this))}getLogDetails(){return{conversationId:this.conversationId,sessionId:this.id,sessionType:this.sessionType}}async onTransportInfo(e,t){var n,i;const r=null===(n=e.contents)||void 0===n?void 0:n[0].transport,s=null==r?void 0:r.candidates;if(this.ignoreHostCandidatesFromRemote){const e=null==s?void 0:s.filter(e=>"host"!==e.type);(null==e?void 0:e.length)!==(null===(i=null==r?void 0:r.candidates)||void 0===i?void 0:i.length)&&(this._log("info","Ignoring remote host ice candidates"),r.candidates=e)}if(s)for(const e of s)this._log("info","Received candidate from peer",{candidateType:e.type}),this.iceCandidatesReceivedFromPeer++;return super.onTransportInfo(e,t)}_log(e,t){const n=l[t];if(null==n?void 0:n.skipMessage)return;let i;for(var r=arguments.length,s=new Array(r>2?r-2:0),o=2;o<r;o++)s[o-2]=arguments[o];if(s.length){const e=s[0];"object"!=typeof e||Array.isArray(e)||null===e?i={...this.getLogDetails(),data:e}:(Object.assign(s[0],this.getLogDetails()),i=s)}else i=[...s,this.getLogDetails()];this.logger[e](t,i)}async end(){let 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._log("info","sending jingle session-terminate"),this.send("session-terminate",{reason:e})),setTimeout(()=>{"connected"!==this.pc.connectionState&&"connecting"!==this.pc.connectionState||this.pc.close()},2e3),this.parent.emit("terminated",this,e),this.parent.forgetSession(this)}setupStatsGatherer(){this.statsGatherer=new a.default(this.pc),this.statsGatherer.on("stats",this.emit.bind(this,"stats"))}onIceStateChange(){const e=this.pc.iceConnectionState,t=this.id,n=this.conversationId,i=this.sessionType;this._log("info","ICE state changed: ",{iceState:e,sessionId:t,conversationId:n}),"disconnected"===e?"stable"===this.pc.signalingState&&(this.interruptionStart=new Date,this._log("info","Connection state is interrupted",{sessionId:t,conversationId:n,sessionType:i})):"connected"===e?(this._log("info","sending session-info: active"),this.send(o.JingleAction.SessionInfo,{info:{infoType:o.JINGLE_INFO_ACTIVE}}),this._setupDataChannel()):"failed"===e&&this._log("info","ICE connection failed",{candidatesDiscovered:this.iceCandidatesDiscovered,candidatesReceivedFromPeer:this.iceCandidatesReceivedFromPeer}),super.onIceStateChange()}onConnectionStateChange(){const e=this.pc.connectionState,t=this.id,n=this.conversationId,i=this.sessionType;if(this._log("info","Connection state changed: ",{connectionState:e,sessionId:t,conversationId:n,sessionType:i}),this.interruptionStart)if("connected"===e){const e=(new Date).getTime()-this.interruptionStart.getTime();this._log("info","Connection was interrupted but was successfully recovered/connected",{sessionId:t,conversationId:n,sessionType:i,timeToRecover:e}),this.interruptionStart=void 0}else"failed"===e&&this._log("info","Connection was interrupted and failed to recover",{sessionId:t,conversationId:n,sessionType:i})}onIceCandidateError(e){const t=e;this._log("error","IceCandidateError",{errorCode:t.errorCode,errorText:t.errorText,url:t.url}),console.error("IceCandidateError",t)}onIceCandidate(e){if(e.candidate){if(!this.allowTCP&&"tcp"===e.candidate.protocol)return;if(!this.allowIPv6){const t=/.+udp [^ ]+ ([^ ]+).*typ host/.exec(e.candidate.candidate),n=/\b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\b/;if(t&&!t[1].match(n))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 super.onIceCandidate(e)}onIceEndOfCandidates(){super.onIceEndOfCandidates(),this.emit("endOfCandidates")}addTrack(e,t){return"audio"===e.kind&&(this.includesAudio=!0),"video"===e.kind&&(this.includesVideo=!0),this.processLocal("addtrack",async()=>{const n=this.pc.getTransceivers().find(t=>{var n;return!t.sender.track&&(null===(n=t.receiver.track)||void 0===n?void 0:n.kind)===e.kind});if(n)return n.sender.replaceTrack(e);this.pc.addTrack(e,t)})}_setupDataChannel(){var e;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",()=>{this._log("info","data channel opened")}),this.dataChannel.addEventListener("message",this._handleDataChannelMessage.bind(this)),this.dataChannel.addEventListener("close",()=>{this._log("info","closing data channel")}),this.dataChannel.addEventListener("error",e=>{this._log("error","Error occurred with the data channel",e)}))}_handleDataChannelMessage(e){try{const t=JSON.parse(e.data);this.emit("dataChannelMessage",t)}catch(e){this._log("error","Failed to parse data channel message",{error:e})}}}t.StanzaMediaSession=u},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;const i=n(6),r=(0,i.__importDefault)(n(99));t.FileSession=r.default;const s=(0,i.__importDefault)(n(60));t.ICESession=s.default;const o=(0,i.__importDefault)(n(101));t.MediaSession=o.default;const a=(0,i.__importDefault)(n(62));t.Session=a.default;const c=(0,i.__importDefault)(n(290));t.SessionManager=c.default;var l=n(37);Object.defineProperty(t,"importFromSDP",{enumerable:!0,get:function(){return l.importFromSDP}}),Object.defineProperty(t,"exportToSDP",{enumerable:!0,get:function(){return l.exportToSDP}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(6),r=(0,i.__importStar)(n(100)),s=n(8),o=n(2),a=n(37),c=n(61),l=(0,i.__importDefault)(n(62));class u extends l.default{constructor(e){super(e),this.bitrateLimit=0,this.candidateBuffer=[],this.transportType=o.NS_JINGLE_ICE_UDP_1,this.restartingIce=!1,this.usingRelay=!1,this.maxRelayBandwidth=e.maxRelayBandwidth,this.pc=this.parent.createPeerConnection(this,{...e.config,iceServers:e.iceServers}),this.pc.oniceconnectionstatechange=()=>{this.onIceStateChange()},this.pc.onicecandidate=e=>{e.candidate?this.onIceCandidate(e):this.onIceEndOfCandidates()},this.restrictRelayBandwidth()}end(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"success",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.pc.close(),super.end(e,t)}async restartIce(){if(this.isInitiator){void 0!==this._maybeRestartingIce&&clearTimeout(this._maybeRestartingIce),this.restartingIce=!0;try{await this.processLocal("restart-ice",async()=>{const e=await this.pc.createOffer({iceRestart:!0}),t=(0,a.importFromSDP)(e.sdp);this.send(s.JingleAction.TransportInfo,{contents:t.media.map(e=>({creator:s.JingleSessionRole.Initiator,name:e.mid,transport:(0,c.convertIntermediateToTransport)(e,this.transportType)})),sid:this.sid}),await this.pc.setLocalDescription(e)})}catch(e){this._log("error","Could not create WebRTC offer",e),this.end(s.JingleReasonCondition.FailedTransport,!0)}}}async setMaximumBitrate(e){this.maximumBitrate&&(e=Math.min(e,this.maximumBitrate)),this.currentBitrate=e;const t=this.pc.getSenders().find(e=>!!e.track&&"video"===e.track.kind);if(t&&t.getParameters)try{await this.processLocal("set-bitrate",async()=>{const n=t.getParameters();n.encodings&&n.encodings.length||(n.encodings=[{}]),0===e?delete n.encodings[0].maxBitrate:n.encodings[0].maxBitrate=e,await t.setParameters(n)})}catch(e){this._log("error","Set maximumBitrate failed",e)}}async onTransportInfo(e,t){if(e.contents&&e.contents[0]&&e.contents[0].transport.gatheringComplete){const n={sdpMid:e.contents[0].name,candidate:""};try{"stable"===this.pc.signalingState?await this.pc.addIceCandidate(n):this.candidateBuffer.push(n)}catch(e){this._log("debug","Could not add null end-of-candidate")}finally{t()}return}if(this.pc.remoteDescription){const n=this.pc.remoteDescription,i=(0,a.importFromSDP)(n.sdp),r=i.media.find(t=>t.mid===e.contents[0].name).iceParameters.usernameFragment,o=e.contents[0].transport.usernameFragment;if(o&&r!==o){for(const[t,n]of e.contents.entries()){const e=n.transport;i.media[t].iceParameters={password:e.password,usernameFragment:e.usernameFragment},i.media[t].candidates=[]}try{if(await this.pc.setRemoteDescription({type:n.type,sdp:(0,a.exportToSDP)(i)}),await this.processBufferedCandidates(),"offer"===n.type){const e=await this.pc.createAnswer();await this.pc.setLocalDescription(e);const t=(0,a.importFromSDP)(e.sdp);this.send(s.JingleAction.TransportInfo,{contents:t.media.map(e=>({creator:s.JingleSessionRole.Initiator,name:e.mid,transport:(0,c.convertIntermediateToTransport)(e,this.transportType)})),sid:this.sid})}else this.restartingIce=!1}catch(e){return this._log("error","Could not do remote ICE restart",e),t(e),void this.end(s.JingleReasonCondition.FailedTransport)}}}const n=(e.contents||[]).map(e=>{const t=e.name,n=(e.transport.candidates||[]).map(async e=>{const n=r.writeCandidate((0,c.convertCandidateToIntermediate)(e));if(this.pc.remoteDescription&&"stable"===this.pc.signalingState)try{await this.pc.addIceCandidate({sdpMid:t,candidate:n})}catch(e){this._log("error","Could not add ICE candidate",e)}else this.candidateBuffer.push({sdpMid:t,candidate:n})});return Promise.all(n)});try{await Promise.all(n),t()}catch(e){this._log("error","Could not process transport-info: "+e),t(e)}}async onSessionAccept(e,t){this.state="active";const n=(0,c.convertRequestToIntermediate)(e,this.peerRole),i=(0,a.exportToSDP)(n);try{await this.pc.setRemoteDescription({type:"answer",sdp:i}),await this.processBufferedCandidates(),this.parent.emit("accepted",this,void 0),t()}catch(e){this._log("error","Could not process WebRTC answer: "+e),t({condition:"general-error"})}}onSessionTerminate(e,t){this._log("info","Terminating session"),this.pc.close(),super.end(e.reason,!0),t()}onIceCandidate(e){if(!e.candidate||!e.candidate.candidate)return;const t=r.parseCandidate(e.candidate.candidate),n={contents:[{creator:s.JingleSessionRole.Initiator,name:e.candidate.sdpMid,transport:{candidates:[(0,c.convertIntermediateToCandidate)(t)],transportType:this.transportType,usernameFragment:t.usernameFragment}}]};this._log("info","Discovered new ICE candidate",n),this.send(s.JingleAction.TransportInfo,n)}onIceEndOfCandidates(){this._log("info","ICE end of candidates");const e=(0,a.importFromSDP)(this.pc.localDescription.sdp).media[0];this.send(s.JingleAction.TransportInfo,{contents:[{creator:s.JingleSessionRole.Initiator,name:e.mid,transport:{gatheringComplete:!0,transportType:this.transportType,usernameFragment:e.iceParameters.usernameFragment}}]})}onIceStateChange(){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(s.JingleReasonCondition.FailedTransport);this.maybeRestartIce();break;case"failed":if("failed"===this.connectionState||this.restartingIce)return void this.end(s.JingleReasonCondition.FailedTransport);this.connectionState="failed",this.restartIce();break;case"closed":this.connectionState="disconnected",this.restartingIce?this.end(s.JingleReasonCondition.FailedTransport):this.end()}}async processBufferedCandidates(){for(const e of this.candidateBuffer)try{await this.pc.addIceCandidate(e)}catch(e){this._log("error","Could not add ICE candidate",e)}this.candidateBuffer=[]}restrictRelayBandwidth(){this.pc.addEventListener("iceconnectionstatechange",async()=>{if("completed"!==this.pc.iceConnectionState&&"connected"!==this.pc.iceConnectionState)return;const e=await this.pc.getStats();let t;if(e.forEach(n=>{"transport"===n.type&&(t=e.get(n.selectedCandidatePairId))}),t||e.forEach(e=>{"candidate-pair"===e.type&&e.selected&&(t=e)}),!t)return;let n=!1,i="",r="";if(t.remoteCandidateId){const n=e.get(t.remoteCandidateId);n&&(r=n.candidateType)}if(t.localCandidateId){const n=e.get(t.localCandidateId);n&&(i=n.candidateType)}"relay"!==i&&"relay"!==r||(n=!0),this.usingRelay=n,this.parent.emit("iceConnectionType",this,{localCandidateType:i,relayed:n,remoteCandidateType:r}),n&&void 0!==this.maxRelayBandwidth&&(this.maximumBitrate=this.maxRelayBandwidth,this.currentBitrate?this.setMaximumBitrate(Math.min(this.currentBitrate,this.maximumBitrate)):this.setMaximumBitrate(this.maximumBitrate))})}maybeRestartIce(){this.isInitiator&&(void 0!==this._maybeRestartingIce&&clearTimeout(this._maybeRestartingIce),this._maybeRestartingIce=setTimeout(()=>{this._maybeRestartingIce=void 0,"disconnected"===this.pc.iceConnectionState&&this.restartIce()},2e3))}}t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.convertRequestToIntermediate=t.convertContentToIntermediate=t.convertIntermediateToRequest=t.convertIntermediateToTransport=t.convertCandidateToIntermediate=t.convertIntermediateToCandidate=t.convertIntermediateToApplication=void 0;const i=n(8),r=n(2);function s(e,t){const n=e.rtpParameters,s=e.rtcpParameters||{},o=e.rtpEncodingParameters||[];let a=!1;o&&o.length&&(a=!!o[0].ssrc);const c={applicationType:r.NS_JINGLE_RTP_1,codecs:[],headerExtensions:[],media:e.kind,rtcpMux:s.mux,rtcpReducedSize:s.reducedSize,sourceGroups:[],sources:[],ssrc:a?o[0].ssrc.toString():void 0,streams:[]};for(const e of n.headerExtensions||[]){const n={id:e.id,uri:e.uri};e.direction&&"sendrecv"!==e.direction&&(n.senders=(0,i.directionToSenders)(t,e.direction)),c.headerExtensions.push(n)}s.ssrc&&s.cname&&(c.sources=[{parameters:{cname:s.cname},ssrc:s.ssrc.toString()}]),a&&o[0]&&o[0].rtx&&(c.sourceGroups=[{semantics:"FID",sources:[o[0].ssrc.toString(),o[0].rtx.ssrc.toString()]}]);for(const t of e.streams||[])c.streams.push({id:t.stream,track:t.track});for(const e of n.codecs||[]){const t={channels:e.channels,clockRate:e.clockRate,id:e.payloadType.toString(),name:e.name,parameters:e.parameters,rtcpFeedback:e.rtcpFeedback};e.maxptime&&(t.maxptime=e.maxptime),e.parameters&&e.parameters.ptime&&(t.ptime=parseInt(e.parameters.ptime,10)),c.codecs.push(t)}return c}function o(e){let t;return t="rtp"===e.component?1:"rtcp"===e.component?2:e.component,{component:t,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 a(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 c(e,t){const n=e.iceParameters,i=e.dtlsParameters,r={candidates:[],transportType:t};n&&(r.usernameFragment=n.usernameFragment,r.password=n.password,n.iceLite&&(r.iceLite=!0)),i&&(r.fingerprints=i.fingerprints.map(t=>({algorithm:t.algorithm,setup:e.setup,value:t.value}))),e.sctp&&(r.sctp=e.sctp);for(const t of e.candidates||[])r.candidates.push(o(t));return r}function l(e,t){const n=e.application||{},s=e.transport,o=n&&n.applicationType===r.NS_JINGLE_RTP_1,c={direction:(0,i.sendersToDirection)(t,e.senders),kind:n.media||"application",mid:e.name,protocol:o?"UDP/TLS/RTP/SAVPF":"UDP/DTLS/SCTP"};if(o){if(c.rtcpParameters={compound:!n.rtcpReducedSize,mux:n.rtcpMux,reducedSize:n.rtcpReducedSize},n.sources&&n.sources.length){const e=n.sources[0];c.rtcpParameters.ssrc=parseInt(e.ssrc,10),e.parameters&&(c.rtcpParameters.cname=e.parameters.cname)}if(c.rtpParameters={codecs:[],fecMechanisms:[],headerExtensions:[],rtcp:[]},n.streams){c.streams=[];for(const e of n.streams)c.streams.push({stream:e.id,track:e.track})}if(n.ssrc&&(c.rtpEncodingParameters=[{ssrc:parseInt(n.ssrc,10)}],n.sourceGroups&&n.sourceGroups.length)){const e=n.sourceGroups[0];c.rtpEncodingParameters[0].rtx={ssrc:parseInt(e.sources[1],10)}}let e=!1,r=!1;for(const t of n.codecs||[]){const n=t.parameters||{},i=[];for(const e of t.rtcpFeedback||[])i.push({parameter:e.parameter,type:e.type});if("red"===t.name||"ulpfec"===t.name){e=e||"red"===t.name,r=r||"ulpfec"===t.name;const n=t.name.toUpperCase();c.rtpParameters.fecMechanisms.includes(n)||c.rtpParameters.fecMechanisms.push(n)}c.rtpParameters.codecs.push({channels:t.channels,clockRate:t.clockRate,name:t.name,numChannels:t.channels,parameters:n,payloadType:parseInt(t.id,10),rtcpFeedback:i})}for(const e of n.headerExtensions||[])c.rtpParameters.headerExtensions.push({direction:(0,i.sendersToDirection)(t,e.senders||"both"),id:e.id,uri:e.uri,attributes:void 0})}if(s){if(s.usernameFragment&&s.password&&(c.iceParameters={password:s.password,usernameFragment:s.usernameFragment},s.iceLite&&(c.iceParameters.iceLite=!0)),s.fingerprints&&s.fingerprints.length){c.dtlsParameters={fingerprints:[],role:"auto"};for(const e of s.fingerprints)c.dtlsParameters.fingerprints.push({algorithm:e.algorithm,value:e.value});s.sctp&&(c.sctp=s.sctp),c.setup=s.fingerprints[0].setup}c.candidates=(s.candidates||[]).map(a)}return c}t.convertIntermediateToApplication=s,t.convertIntermediateToCandidate=o,t.convertCandidateToIntermediate=a,t.convertIntermediateToTransport=c,t.convertIntermediateToRequest=function(e,t,n){return{contents:e.media.map(e=>({application:"audio"===e.kind||"video"===e.kind?s(e,t):{applicationType:"datachannel",protocol:e.protocol},creator:i.JingleSessionRole.Initiator,name:e.mid,senders:(0,i.directionToSenders)(t,e.direction),transport:c(e,n)})),groups:e.groups?e.groups.map(e=>({contents:e.mids,semantics:e.semantics})):[]}},t.convertContentToIntermediate=l,t.convertRequestToIntermediate=function(e,t){const n={groups:[],media:[]};for(const t of e.groups||[])n.groups.push({mids:t.contents,semantics:t.semantics});for(const i of e.contents||[])n.media.push(l(i,t));return n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(63),r=n(8),s=n(17),o={condition:r.StanzaErrorCondition.BadRequest},a={condition:r.StanzaErrorCondition.FeatureNotImplemented,jingleError:r.JingleErrorCondition.UnsupportedInfo,type:"modify"};t.default=class{constructor(e){this.parent=e.parent,this.sid=e.sid||(0,s.uuid)(),this.peerID=e.peerID,this.role=e.initiator?r.JingleSessionRole.Initiator:r.JingleSessionRole.Responder,this._sessionState="starting",this._connectionState="starting",this.pendingApplicationTypes=e.applicationTypes||[],this.pendingAction=void 0,this.processingQueue=(0,i.priorityQueue)(async(e,t)=>{if("ended"===this.state)return"local"===e.type&&e.reject&&e.reject(new Error("Session ended")),void(t&&t());if("local"===e.type){this._log("debug","Processing local action:",e.name);try{const t=await e.handler();e.resolve(t)}catch(t){e.reject(t)}return void(t&&t())}const{action:n,changes:i,cb:s}=e;return this._log("debug","Processing remote action:",n),new Promise(e=>{const o=(n,i)=>{s(n,i),t&&t(),e()};switch(n){case r.JingleAction.ContentAccept:return this.onContentAccept(i,o);case r.JingleAction.ContentAdd:return this.onContentAdd(i,o);case r.JingleAction.ContentModify:return this.onContentModify(i,o);case r.JingleAction.ContentReject:return this.onContentReject(i,o);case r.JingleAction.ContentRemove:return this.onContentRemove(i,o);case r.JingleAction.DescriptionInfo:return this.onDescriptionInfo(i,o);case r.JingleAction.SecurityInfo:return this.onSecurityInfo(i,o);case r.JingleAction.SessionAccept:return this.onSessionAccept(i,o);case r.JingleAction.SessionInfo:return this.onSessionInfo(i,o);case r.JingleAction.SessionInitiate:return this.onSessionInitiate(i,o);case r.JingleAction.SessionTerminate:return this.onSessionTerminate(i,o);case r.JingleAction.TransportAccept:return this.onTransportAccept(i,o);case r.JingleAction.TransportInfo:return this.onTransportInfo(i,o);case r.JingleAction.TransportReject:return this.onTransportReject(i,o);case r.JingleAction.TransportReplace:return this.onTransportReplace(i,o);default:this._log("error","Invalid or unsupported action: "+n),o({condition:r.StanzaErrorCondition.BadRequest})}})},1)}get isInitiator(){return this.role===r.JingleSessionRole.Initiator}get peerRole(){return this.isInitiator?r.JingleSessionRole.Responder:r.JingleSessionRole.Initiator}get state(){return this._sessionState}set state(e){e!==this._sessionState&&(this._log("info","Changing session state to: "+e),this._sessionState=e,this.parent&&this.parent.emit("sessionState",this,e))}get connectionState(){return this._connectionState}set connectionState(e){e!==this._connectionState&&(this._log("info","Changing connection state to: "+e),this._connectionState=e,this.parent&&this.parent.emit("connectionState",this,e))}send(e,t){(t=t||{}).sid=this.sid,t.action=e;new Set([r.JingleAction.ContentAccept,r.JingleAction.ContentAdd,r.JingleAction.ContentModify,r.JingleAction.ContentReject,r.JingleAction.ContentRemove,r.JingleAction.SessionAccept,r.JingleAction.SessionInitiate,r.JingleAction.TransportAccept,r.JingleAction.TransportReject,r.JingleAction.TransportReplace]).has(e)?this.pendingAction=e:this.pendingAction=void 0,this.parent.signal(this,{id:(0,s.uuid)(),jingle:t,to:this.peerID,type:"set"})}processLocal(e,t){return new Promise((n,i)=>{this.processingQueue.push({handler:t,name:e,reject:i,resolve:n,type:"local"},1)})}process(e,t,n){this.processingQueue.push({action:e,cb:n,changes:t,type:"remote"},2)}start(e,t){this._log("error","Can not start base sessions"),this.end("unsupported-applications",!0)}accept(e,t){this._log("error","Can not accept base sessions"),this.end("unsupported-applications")}cancel(){this.end("cancel")}decline(){this.end("decline")}end(){let 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)}_log(e,t){if(this.parent){t=this.sid+": "+t;for(var n=arguments.length,i=new Array(n>2?n-2:0),r=2;r<n;r++)i[r-2]=arguments[r];this.parent.emit("log",e,t,...i),this.parent.emit("log:"+e,t,...i)}}onSessionInitiate(e,t){t()}onSessionAccept(e,t){t()}onSessionTerminate(e,t){this.end(e.reason,!0),t()}onSessionInfo(e,t){e.info?t(a):t()}onSecurityInfo(e,t){t(a)}onDescriptionInfo(e,t){t(a)}onTransportInfo(e,t){t(a)}onContentAdd(e,t){t(),this.send(r.JingleAction.ContentReject,{reason:{condition:r.JingleReasonCondition.FailedApplication,text:"content-add is not supported"}})}onContentAccept(e,t){t(o)}onContentReject(e,t){t(o)}onContentModify(e,t){t(o)}onContentRemove(e,t){t(o)}onTransportReplace(e,t){t(),this.send(r.JingleAction.TransportReject,{reason:{condition:r.JingleReasonCondition.FailedTransport,text:"transport-replace is not supported"}})}onTransportAccept(e,t){t(o)}onTransportReject(e,t){t(o)}}},function(e,t,n){"use strict";n.r(t),n.d(t,"all",(function(){return me})),n.d(t,"allLimit",(function(){return ge})),n.d(t,"allSeries",(function(){return ye})),n.d(t,"any",(function(){return tt})),n.d(t,"anyLimit",(function(){return nt})),n.d(t,"anySeries",(function(){return it})),n.d(t,"apply",(function(){return i})),n.d(t,"applyEach",(function(){return O})),n.d(t,"applyEachSeries",(function(){return j})),n.d(t,"asyncify",(function(){return d})),n.d(t,"auto",(function(){return D})),n.d(t,"autoInject",(function(){return z})),n.d(t,"cargo",(function(){return V})),n.d(t,"cargoQueue",(function(){return W})),n.d(t,"compose",(function(){return K})),n.d(t,"concat",(function(){return Z})),n.d(t,"concatLimit",(function(){return X})),n.d(t,"concatSeries",(function(){return ee})),n.d(t,"constant",(function(){return te})),n.d(t,"default",(function(){return mt})),n.d(t,"detect",(function(){return ie})),n.d(t,"detectLimit",(function(){return re})),n.d(t,"detectSeries",(function(){return se})),n.d(t,"dir",(function(){return ae})),n.d(t,"doDuring",(function(){return ce})),n.d(t,"doUntil",(function(){return le})),n.d(t,"doWhilst",(function(){return ce})),n.d(t,"during",(function(){return ht})),n.d(t,"each",(function(){return de})),n.d(t,"eachLimit",(function(){return he})),n.d(t,"eachOf",(function(){return C})),n.d(t,"eachOfLimit",(function(){return E})),n.d(t,"eachOfSeries",(function(){return k})),n.d(t,"eachSeries",(function(){return pe})),n.d(t,"ensureAsync",(function(){return fe})),n.d(t,"every",(function(){return me})),n.d(t,"everyLimit",(function(){return ge})),n.d(t,"everySeries",(function(){return ye})),n.d(t,"filter",(function(){return Se})),n.d(t,"filterLimit",(function(){return we})),n.d(t,"filterSeries",(function(){return Te})),n.d(t,"find",(function(){return ie})),n.d(t,"findLimit",(function(){return re})),n.d(t,"findSeries",(function(){return se})),n.d(t,"flatMap",(function(){return Z})),n.d(t,"flatMapLimit",(function(){return X})),n.d(t,"flatMapSeries",(function(){return ee})),n.d(t,"foldl",(function(){return $})),n.d(t,"foldr",(function(){return Je})),n.d(t,"forEach",(function(){return de})),n.d(t,"forEachLimit",(function(){return he})),n.d(t,"forEachOf",(function(){return C})),n.d(t,"forEachOfLimit",(function(){return E})),n.d(t,"forEachOfSeries",(function(){return k})),n.d(t,"forEachSeries",(function(){return pe})),n.d(t,"forever",(function(){return Ie})),n.d(t,"groupBy",(function(){return Ee})),n.d(t,"groupByLimit",(function(){return Ae})),n.d(t,"groupBySeries",(function(){return Ne})),n.d(t,"inject",(function(){return $})),n.d(t,"log",(function(){return xe})),n.d(t,"map",(function(){return R})),n.d(t,"mapLimit",(function(){return Y})),n.d(t,"mapSeries",(function(){return P})),n.d(t,"mapValues",(function(){return Re})),n.d(t,"mapValuesLimit",(function(){return Ce})),n.d(t,"mapValuesSeries",(function(){return Oe})),n.d(t,"memoize",(function(){return ke})),n.d(t,"nextTick",(function(){return Pe})),n.d(t,"parallel",(function(){return Me})),n.d(t,"parallelLimit",(function(){return Le})),n.d(t,"priorityQueue",(function(){return Ue})),n.d(t,"queue",(function(){return De})),n.d(t,"race",(function(){return ze})),n.d(t,"reduce",(function(){return $})),n.d(t,"reduceRight",(function(){return Je})),n.d(t,"reflect",(function(){return Ge})),n.d(t,"reflectAll",(function(){return He})),n.d(t,"reject",(function(){return We})),n.d(t,"rejectLimit",(function(){return $e})),n.d(t,"rejectSeries",(function(){return Qe})),n.d(t,"retry",(function(){return Ye})),n.d(t,"retryable",(function(){return Ze})),n.d(t,"select",(function(){return Se})),n.d(t,"selectLimit",(function(){return we})),n.d(t,"selectSeries",(function(){return Te})),n.d(t,"seq",(function(){return Q})),n.d(t,"series",(function(){return et})),n.d(t,"setImmediate",(function(){return u})),n.d(t,"some",(function(){return tt})),n.d(t,"someLimit",(function(){return nt})),n.d(t,"someSeries",(function(){return it})),n.d(t,"sortBy",(function(){return rt})),n.d(t,"timeout",(function(){return st})),n.d(t,"times",(function(){return at})),n.d(t,"timesLimit",(function(){return ot})),n.d(t,"timesSeries",(function(){return ct})),n.d(t,"transform",(function(){return lt})),n.d(t,"tryEach",(function(){return ut})),n.d(t,"unmemoize",(function(){return dt})),n.d(t,"until",(function(){return pt})),n.d(t,"waterfall",(function(){return ft})),n.d(t,"whilst",(function(){return ht})),n.d(t,"wrapSync",(function(){return d}));n(33);function i(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return function(){for(var t=arguments.length,i=new Array(t),r=0;r<t;r++)i[r]=arguments[r];return e(...n,...i)}}function r(e){return function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];var r=n.pop();return e.call(this,n,r)}}var s="function"==typeof queueMicrotask&&queueMicrotask,o="function"==typeof setImmediate&&setImmediate,a="object"==typeof process&&"function"==typeof process.nextTick;function c(e){setTimeout(e,0)}function l(e){return function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return e(()=>t(...i))}}var u=l(s?queueMicrotask:o?setImmediate:a?process.nextTick:c);function d(e){return f(e)?function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];const r=n.pop(),s=e.apply(this,n);return h(s,r)}:r((function(t,n){var i;try{i=e.apply(this,t)}catch(e){return n(e)}if(i&&"function"==typeof i.then)return h(i,n);n(null,i)}))}function h(e,t){return e.then(e=>{p(t,null,e)},e=>{p(t,e&&(e instanceof Error||e.message)?e:new Error(e))})}function p(e,t,n){try{e(t,n)}catch(e){u(e=>{throw e},e)}}function f(e){return"AsyncFunction"===e[Symbol.toStringTag]}function m(e){if("function"!=typeof e)throw new Error("expected a function");return f(e)?d(e):e}function g(e,t){if(t||(t=e.length),!t)throw new Error("arity is undefined");return function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return"function"==typeof i[t-1]?e.apply(this,i):new Promise((n,r)=>{i[t-1]=function(e){if(e)return r(e);for(var t=arguments.length,i=new Array(t>1?t-1:0),s=1;s<t;s++)i[s-1]=arguments[s];n(i.length>1?i:i[0])},e.apply(this,i)})}}function y(e){return function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];const s=g((function(n){var r=this;return e(t,(e,t)=>{m(e).apply(r,i.concat(t))},n)}));return s}}function v(e,t,n,i){t=t||[];var r=[],s=0,o=m(n);return e(t,(e,t,n)=>{var i=s++;o(e,(e,t)=>{r[i]=t,n(e)})},e=>{i(e,r)})}function b(e){return e&&"number"==typeof e.length&&e.length>=0&&e.length%1==0}var _={};function S(e){function t(){if(null!==e){var t=e;e=null;for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];t.apply(this,i)}}return Object.assign(t,e),t}function w(e){if(b(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,i,r,s=function(e){return e[Symbol.iterator]&&e[Symbol.iterator]()}(e);return s?function(e){var t=-1;return function(){var n=e.next();return n.done?null:(t++,{value:n.value,key:t})}}(s):(n=(t=e)?Object.keys(t):[],i=-1,r=n.length,function e(){var s=n[++i];return"__proto__"===s?e():i<r?{value:t[s],key:s}:null})}function T(e){return function(){if(null===e)throw new Error("Callback was already called.");var t=e;e=null;for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];t.apply(this,i)}}function I(e,t,n,i){let r=!1,s=!1,o=!1,a=0,c=0;function l(){a>=t||o||r||(o=!0,e.next().then(e=>{let{value:t,done:d}=e;if(!s&&!r){if(o=!1,d)return r=!0,void(a<=0&&i(null));a++,n(t,c,u),c++,l()}}).catch(d))}function u(e,t){if(a-=1,!s)return e?d(e):!1===e?(r=!0,void(s=!0)):t===_||r&&a<=0?(r=!0,i(null)):void l()}function d(e){s||(o=!1,r=!0,i(e))}l()}var A=e=>(t,n,i)=>{if(i=S(i),e<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!t)return i(null);if("AsyncGenerator"===t[Symbol.toStringTag])return I(t,e,n,i);if(function(e){return"function"==typeof e[Symbol.asyncIterator]}(t))return I(t[Symbol.asyncIterator](),e,n,i);var r=w(t),s=!1,o=!1,a=0,c=!1;function l(e,t){if(!o)if(a-=1,e)s=!0,i(e);else if(!1===e)s=!0,o=!0;else{if(t===_||s&&a<=0)return s=!0,i(null);c||u()}}function u(){for(c=!0;a<e&&!s;){var t=r();if(null===t)return s=!0,void(a<=0&&i(null));a+=1,n(t.value,t.key,T(l))}c=!1}u()};var E=g((function(e,t,n,i){return A(t)(e,m(n),i)}),4);function N(e,t,n){n=S(n);var i=0,r=0,{length:s}=e,o=!1;function a(e,t){!1===e&&(o=!0),!0!==o&&(e?n(e):++r!==s&&t!==_||n(null))}for(0===s&&n(null);i<s;i++)t(e[i],i,T(a))}function x(e,t,n){return E(e,1/0,t,n)}var C=g((function(e,t,n){return(b(e)?N:x)(e,m(t),n)}),3);var R=g((function(e,t,n){return v(C,e,t,n)}),3),O=y(R);var k=g((function(e,t,n){return E(e,1,t,n)}),3);var P=g((function(e,t,n){return v(k,e,t,n)}),3),j=y(P);const M=Symbol("promiseCallback");function L(){let e,t;function n(n){if(n)return t(n);for(var i=arguments.length,r=new Array(i>1?i-1:0),s=1;s<i;s++)r[s-1]=arguments[s];e(r.length>1?r:r[0])}return n[M]=new Promise((n,i)=>{e=n,t=i}),n}function D(e,t,n){"number"!=typeof t&&(n=t,t=null),n=S(n||L());var i=Object.keys(e).length;if(!i)return n(null);t||(t=i);var r={},s=0,o=!1,a=!1,c=Object.create(null),l=[],u=[],d={};function h(e,t){l.push(()=>function(e,t){if(a)return;var i=T((function(t){for(var i=arguments.length,l=new Array(i>1?i-1:0),u=1;u<i;u++)l[u-1]=arguments[u];if(s--,!1!==t)if(l.length<2&&([l]=l),t){var d={};if(Object.keys(r).forEach(e=>{d[e]=r[e]}),d[e]=l,a=!0,c=Object.create(null),o)return;n(t,d)}else r[e]=l,f(e);else o=!0}));s++;var l=m(t[t.length-1]);t.length>1?l(r,i):l(i)}(e,t))}function p(){if(!o){if(0===l.length&&0===s)return n(null,r);for(;l.length&&s<t;){l.shift()()}}}function f(e){(c[e]||[]).forEach(e=>e()),p()}function g(t){var n=[];return Object.keys(e).forEach(i=>{const r=e[i];Array.isArray(r)&&r.indexOf(t)>=0&&n.push(i)}),n}return Object.keys(e).forEach(t=>{var n=e[t];if(!Array.isArray(n))return h(t,[n]),void u.push(t);var i=n.slice(0,n.length-1),r=i.length;if(0===r)return h(t,n),void u.push(t);d[t]=r,i.forEach(s=>{if(!e[s])throw new Error("async.auto task `"+t+"` has a non-existent dependency `"+s+"` in "+i.join(", "));!function(e,t){var n=c[e];n||(n=c[e]=[]);n.push(t)}(s,()=>{0===--r&&h(t,n)})})}),function(){var e,t=0;for(;u.length;)e=u.pop(),t++,g(e).forEach(e=>{0==--d[e]&&u.push(e)});if(t!==i)throw new Error("async.auto cannot execute tasks due to a recursive dependency")}(),p(),n[M]}var F=/^(?:async\s+)?(?:function)?\s*\w*\s*\(\s*([^)]+)\s*\)(?:\s*{)/,B=/^(?:async\s+)?\(?\s*([^)=]+)\s*\)?(?:\s*=>)/,q=/,/,U=/(=.+)?(\s*)$/;function z(e,t){var n={};return Object.keys(e).forEach(t=>{var i,r=e[t],s=f(r),o=!s&&1===r.length||s&&0===r.length;if(Array.isArray(r))i=[...r],r=i.pop(),n[t]=i.concat(i.length>0?a:r);else if(o)n[t]=r;else{if(i=function(e){const t=function(e){let t="",n=0,i=e.indexOf("*/");for(;n<e.length;)if("/"===e[n]&&"/"===e[n+1]){let t=e.indexOf("\n",n);n=-1===t?e.length:t}else if(-1!==i&&"/"===e[n]&&"*"===e[n+1]){let r=e.indexOf("*/",n);-1!==r?(n=r+2,i=e.indexOf("*/",n)):(t+=e[n],n++)}else t+=e[n],n++;return t}(e.toString());let n=t.match(F);if(n||(n=t.match(B)),!n)throw new Error("could not parse args in autoInject\nSource:\n"+t);let[,i]=n;return i.replace(/\s/g,"").split(q).map(e=>e.replace(U,"").trim())}(r),0===r.length&&!s&&0===i.length)throw new Error("autoInject task functions require explicit parameters.");s||i.pop(),n[t]=i.concat(a)}function a(e,t){var n=i.map(t=>e[t]);n.push(t),m(r)(...n)}}),D(n,t)}class J{constructor(){this.head=this.tail=null,this.length=0}removeLink(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}empty(){for(;this.head;)this.shift();return this}insertAfter(e,t){t.prev=e,t.next=e.next,e.next?e.next.prev=t:this.tail=t,e.next=t,this.length+=1}insertBefore(e,t){t.prev=e.prev,t.next=e,e.prev?e.prev.next=t:this.head=t,e.prev=t,this.length+=1}unshift(e){this.head?this.insertBefore(this.head,e):G(this,e)}push(e){this.tail?this.insertAfter(this.tail,e):G(this,e)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var e=this.head;e;)yield e.data,e=e.next}remove(e){for(var t=this.head;t;){var{next:n}=t;e(t)&&this.removeLink(t),t=n}return this}}function G(e,t){e.length=1,e.head=e.tail=t}function H(e,t,n){if(null==t)t=1;else if(0===t)throw new RangeError("Concurrency must not be zero");var i=m(e),r=0,s=[];const o={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function a(e,t){return e?t?void(o[e]=o[e].filter(e=>e!==t)):o[e]=[]:Object.keys(o).forEach(e=>o[e]=[])}function c(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];o[e].forEach(e=>e(...n))}var l=!1;function d(e,t,n,i){if(null!=i&&"function"!=typeof i)throw new Error("task callback must be a function");var r,s;function o(e){if(e)return n?s(e):r();for(var t=arguments.length,i=new Array(t>1?t-1:0),o=1;o<t;o++)i[o-1]=arguments[o];if(i.length<=1)return r(i[0]);r(i)}y.started=!0;var a=y._createTaskItem(e,n?o:i||o);if(t?y._tasks.unshift(a):y._tasks.push(a),l||(l=!0,u(()=>{l=!1,y.process()})),n||!i)return new Promise((e,t)=>{r=e,s=t})}function h(e){return function(t){r-=1;for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];for(var a=0,l=e.length;a<l;a++){var u=e[a],d=s.indexOf(u);0===d?s.shift():d>0&&s.splice(d,1),u.callback(t,...i),null!=t&&c("error",t,u.data)}r<=y.concurrency-y.buffer&&c("unsaturated"),y.idle()&&c("drain"),y.process()}}function p(e){return!(0!==e.length||!y.idle())&&(u(()=>c("drain")),!0)}const f=e=>t=>{if(!t)return new Promise((t,n)=>{!function(e,t){const n=function(){a(e,n),t(...arguments)};o[e].push(n)}(e,(e,i)=>{if(e)return n(e);t(i)})});a(e),function(e,t){o[e].push(t)}(e,t)};var g=!1,y={_tasks:new J,_createTaskItem:(e,t)=>({data:e,callback:t}),*[Symbol.iterator](){yield*y._tasks[Symbol.iterator]()},concurrency:t,payload:n,buffer:t/4,started:!1,paused:!1,push(e,t){if(Array.isArray(e)){if(p(e))return;return e.map(e=>d(e,!1,!1,t))}return d(e,!1,!1,t)},pushAsync(e,t){if(Array.isArray(e)){if(p(e))return;return e.map(e=>d(e,!1,!0,t))}return d(e,!1,!0,t)},kill(){a(),y._tasks.empty()},unshift(e,t){if(Array.isArray(e)){if(p(e))return;return e.map(e=>d(e,!0,!1,t))}return d(e,!0,!1,t)},unshiftAsync(e,t){if(Array.isArray(e)){if(p(e))return;return e.map(e=>d(e,!0,!0,t))}return d(e,!0,!0,t)},remove(e){y._tasks.remove(e)},process(){if(!g){for(g=!0;!y.paused&&r<y.concurrency&&y._tasks.length;){var e=[],t=[],n=y._tasks.length;y.payload&&(n=Math.min(n,y.payload));for(var o=0;o<n;o++){var a=y._tasks.shift();e.push(a),s.push(a),t.push(a.data)}r+=1,0===y._tasks.length&&c("empty"),r===y.concurrency&&c("saturated");var l=T(h(e));i(t,l)}g=!1}},length:()=>y._tasks.length,running:()=>r,workersList:()=>s,idle:()=>y._tasks.length+r===0,pause(){y.paused=!0},resume(){!1!==y.paused&&(y.paused=!1,u(y.process))}};return Object.defineProperties(y,{saturated:{writable:!1,value:f("saturated")},unsaturated:{writable:!1,value:f("unsaturated")},empty:{writable:!1,value:f("empty")},drain:{writable:!1,value:f("drain")},error:{writable:!1,value:f("error")}}),y}function V(e,t){return H(e,1,t)}function W(e,t,n){return H(e,t,n)}var $=g((function(e,t,n,i){i=S(i);var r=m(n);return k(e,(e,n,i)=>{r(t,e,(e,n)=>{t=n,i(e)})},e=>i(e,t))}),4);function Q(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t.map(m);return function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var s=n[n.length-1];return"function"==typeof s?n.pop():s=L(),$(i,n,(t,n,i)=>{n.apply(e,t.concat((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];i(e,n)})))},(e,t)=>s(e,...t)),s[M]}}function K(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Q(...t.reverse())}var Y=g((function(e,t,n,i){return v(A(t),e,n,i)}),4);var X=g((function(e,t,n,i){var r=m(n);return Y(e,t,(e,t)=>{r(e,(function(e){if(e)return t(e);for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return t(e,i)}))},(e,t)=>{for(var n=[],r=0;r<t.length;r++)t[r]&&(n=n.concat(...t[r]));return i(e,n)})}),4);var Z=g((function(e,t,n){return X(e,1/0,t,n)}),3);var ee=g((function(e,t,n){return X(e,1,t,n)}),3);function te(){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),i=0;i<e;i++)n[i]=arguments[i];var r=n.pop();return r(null,...t)}}function ne(e,t){return(n,i,r,s)=>{var o,a=!1;const c=m(r);n(i,(n,i,r)=>{c(n,(i,s)=>i||!1===i?r(i):e(s)&&!o?(a=!0,o=t(!0,n),r(null,_)):void r())},e=>{if(e)return s(e);s(null,a?o:t(!1))})}}var ie=g((function(e,t,n){return ne(e=>e,(e,t)=>t)(C,e,t,n)}),3);var re=g((function(e,t,n,i){return ne(e=>e,(e,t)=>t)(A(t),e,n,i)}),4);var se=g((function(e,t,n){return ne(e=>e,(e,t)=>t)(A(1),e,t,n)}),3);function oe(e){return function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return m(t)(...i,(function(t){if("object"==typeof console)if(t)console.error&&console.error(t);else if(console[e]){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];i.forEach(t=>console[e](t))}}))}}var ae=oe("dir");var ce=g((function(e,t,n){n=T(n);var i,r=m(e),s=m(t);function o(e){if(e)return n(e);if(!1!==e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];i=r,s(...r,a)}}function a(e,t){return e?n(e):!1!==e?t?void r(o):n(null,...i):void 0}return a(null,!0)}),3);function le(e,t,n){const i=m(t);return ce(e,(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=t.pop();i(...t,(e,t)=>r(e,!t))}),n)}function ue(e){return(t,n,i)=>e(t,i)}var de=g((function(e,t,n){return C(e,ue(m(t)),n)}),3);var he=g((function(e,t,n,i){return A(t)(e,ue(m(n)),i)}),4);var pe=g((function(e,t,n){return he(e,1,t,n)}),3);function fe(e){return f(e)?e:function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];var r=n.pop(),s=!0;n.push((function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];s?u(()=>r(...t)):r(...t)})),e.apply(this,n),s=!1}}var me=g((function(e,t,n){return ne(e=>!e,e=>!e)(C,e,t,n)}),3);var ge=g((function(e,t,n,i){return ne(e=>!e,e=>!e)(A(t),e,n,i)}),4);var ye=g((function(e,t,n){return ne(e=>!e,e=>!e)(k,e,t,n)}),3);function ve(e,t,n,i){var r=new Array(t.length);e(t,(e,t,i)=>{n(e,(e,n)=>{r[t]=!!n,i(e)})},e=>{if(e)return i(e);for(var n=[],s=0;s<t.length;s++)r[s]&&n.push(t[s]);i(null,n)})}function be(e,t,n,i){var r=[];e(t,(e,t,i)=>{n(e,(n,s)=>{if(n)return i(n);s&&r.push({index:t,value:e}),i(n)})},e=>{if(e)return i(e);i(null,r.sort((e,t)=>e.index-t.index).map(e=>e.value))})}function _e(e,t,n,i){return(b(t)?ve:be)(e,t,m(n),i)}var Se=g((function(e,t,n){return _e(C,e,t,n)}),3);var we=g((function(e,t,n,i){return _e(A(t),e,n,i)}),4);var Te=g((function(e,t,n){return _e(k,e,t,n)}),3);var Ie=g((function(e,t){var n=T(t),i=m(fe(e));return function e(t){if(t)return n(t);!1!==t&&i(e)}()}),2);var Ae=g((function(e,t,n,i){var r=m(n);return Y(e,t,(e,t)=>{r(e,(n,i)=>n?t(n):t(n,{key:i,val:e}))},(e,t)=>{for(var n={},{hasOwnProperty:r}=Object.prototype,s=0;s<t.length;s++)if(t[s]){var{key:o}=t[s],{val:a}=t[s];r.call(n,o)?n[o].push(a):n[o]=[a]}return i(e,n)})}),4);function Ee(e,t,n){return Ae(e,1/0,t,n)}function Ne(e,t,n){return Ae(e,1,t,n)}var xe=oe("log");var Ce=g((function(e,t,n,i){i=S(i);var r={},s=m(n);return A(t)(e,(e,t,n)=>{s(e,t,(e,i)=>{if(e)return n(e);r[t]=i,n(e)})},e=>i(e,r))}),4);function Re(e,t,n){return Ce(e,1/0,t,n)}function Oe(e,t,n){return Ce(e,1,t,n)}function ke(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e;var n=Object.create(null),i=Object.create(null),s=m(e),o=r((e,r)=>{var o=t(...e);o in n?u(()=>r(null,...n[o])):o in i?i[o].push(r):(i[o]=[r],s(...e,(function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),s=1;s<t;s++)r[s-1]=arguments[s];e||(n[o]=r);var a=i[o];delete i[o];for(var c=0,l=a.length;c<l;c++)a[c](e,...r)})))});return o.memo=n,o.unmemoized=e,o}var Pe=l(a?process.nextTick:o?setImmediate:c),je=g((e,t,n)=>{var i=b(t)?[]:{};e(t,(e,t,n)=>{m(e)((function(e){for(var r=arguments.length,s=new Array(r>1?r-1:0),o=1;o<r;o++)s[o-1]=arguments[o];s.length<2&&([s]=s),i[t]=s,n(e)}))},e=>n(e,i))},3);function Me(e,t){return je(C,e,t)}function Le(e,t,n){return je(A(t),e,n)}function De(e,t){var n=m(e);return H((e,t)=>{n(e[0],t)},t,1)}class Fe{constructor(){this.heap=[],this.pushCount=Number.MIN_SAFE_INTEGER}get length(){return this.heap.length}empty(){return this.heap=[],this}percUp(e){let t;for(;e>0&&qe(this.heap[e],this.heap[t=Be(e)]);){let n=this.heap[e];this.heap[e]=this.heap[t],this.heap[t]=n,e=t}}percDown(e){let t;for(;(t=1+(e<<1))<this.heap.length&&(t+1<this.heap.length&&qe(this.heap[t+1],this.heap[t])&&(t+=1),!qe(this.heap[e],this.heap[t]));){let n=this.heap[e];this.heap[e]=this.heap[t],this.heap[t]=n,e=t}}push(e){e.pushCount=++this.pushCount,this.heap.push(e),this.percUp(this.heap.length-1)}unshift(e){return this.heap.push(e)}shift(){let[e]=this.heap;return this.heap[0]=this.heap[this.heap.length-1],this.heap.pop(),this.percDown(0),e}toArray(){return[...this]}*[Symbol.iterator](){for(let e=0;e<this.heap.length;e++)yield this.heap[e].data}remove(e){let t=0;for(let n=0;n<this.heap.length;n++)e(this.heap[n])||(this.heap[t]=this.heap[n],t++);this.heap.splice(t);for(let e=Be(this.heap.length-1);e>=0;e--)this.percDown(e);return this}}function Be(e){return(e+1>>1)-1}function qe(e,t){return e.priority!==t.priority?e.priority<t.priority:e.pushCount<t.pushCount}function Ue(e,t){var n=De(e,t),{push:i,pushAsync:r}=n;function s(e,t){return Array.isArray(e)?e.map(e=>({data:e,priority:t})):{data:e,priority:t}}return n._tasks=new Fe,n._createTaskItem=(e,t)=>{let{data:n,priority:i}=e;return{data:n,priority:i,callback:t}},n.push=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return i(s(e,t),n)},n.pushAsync=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return r(s(e,t),n)},delete n.unshift,delete n.unshiftAsync,n}var ze=g((function(e,t){if(t=S(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,i=e.length;n<i;n++)m(e[n])(t)}),2);function Je(e,t,n,i){var r=[...e].reverse();return $(r,t,n,i)}function Ge(e){var t=m(e);return r((function(e,n){return e.push((function(e){let t={};e&&(t.error=e);for(var i=arguments.length,r=new Array(i>1?i-1:0),s=1;s<i;s++)r[s-1]=arguments[s];if(r.length>0){var o=r;r.length<=1&&([o]=r),t.value=o}n(null,t)})),t.apply(this,e)}))}function He(e){var t;return Array.isArray(e)?t=e.map(Ge):(t={},Object.keys(e).forEach(n=>{t[n]=Ge.call(this,e[n])})),t}function Ve(e,t,n,i){const r=m(n);return _e(e,t,(e,t)=>{r(e,(e,n)=>{t(e,!n)})},i)}var We=g((function(e,t,n){return Ve(C,e,t,n)}),3);var $e=g((function(e,t,n,i){return Ve(A(t),e,n,i)}),4);var Qe=g((function(e,t,n){return Ve(k,e,t,n)}),3);function Ke(e){return function(){return e}}function Ye(e,t,n){var i={times:5,intervalFunc:Ke(0)};if(arguments.length<3&&"function"==typeof e?(n=t||L(),t=e):(Xe(i,e),n=n||L()),"function"!=typeof t)throw new Error("Invalid arguments for async.retry");var r=m(t),s=1;function o(){r((function(e){if(!1!==e)if(e&&s++<i.times&&("function"!=typeof i.errorFilter||i.errorFilter(e)))setTimeout(o,i.intervalFunc(s-1));else{for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a<t;a++)r[a-1]=arguments[a];n(e,...r)}}))}return o(),n[M]}function Xe(e,t){if("object"==typeof t)e.times=+t.times||5,e.intervalFunc="function"==typeof t.interval?t.interval:Ke(+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 Ze(e,t){t||(t=e,e=null);let n=e&&e.arity||t.length;f(t)&&(n+=1);var i=m(t);return r((t,r)=>{function s(e){i(...t,e)}return(t.length<n-1||null==r)&&(t.push(r),r=L()),e?Ye(e,s,r):Ye(s,r),r[M]})}function et(e,t){return je(k,e,t)}var tt=g((function(e,t,n){return ne(Boolean,e=>e)(C,e,t,n)}),3);var nt=g((function(e,t,n,i){return ne(Boolean,e=>e)(A(t),e,n,i)}),4);var it=g((function(e,t,n){return ne(Boolean,e=>e)(k,e,t,n)}),3);var rt=g((function(e,t,n){var i=m(t);return R(e,(e,t)=>{i(e,(n,i)=>{if(n)return t(n);t(n,{value:e,criteria:i})})},(e,t)=>{if(e)return n(e);n(null,t.sort(r).map(e=>e.value))});function r(e,t){var n=e.criteria,i=t.criteria;return n<i?-1:n>i?1:0}}),3);function st(e,t,n){var i=m(e);return r((r,s)=>{var o,a=!1;r.push((function(){a||(s(...arguments),clearTimeout(o))})),o=setTimeout((function(){var t=e.name||"anonymous",i=new Error('Callback function "'+t+'" timed out.');i.code="ETIMEDOUT",n&&(i.info=n),a=!0,s(i)}),t),i(...r)})}function ot(e,t,n,i){var r=m(n);return Y(function(e){for(var t=Array(e);e--;)t[e]=e;return t}(e),t,r,i)}function at(e,t,n){return ot(e,1/0,t,n)}function ct(e,t,n){return ot(e,1,t,n)}function lt(e,t,n,i){arguments.length<=3&&"function"==typeof t&&(i=n,n=t,t=Array.isArray(e)?[]:{}),i=S(i||L());var r=m(n);return C(e,(e,n,i)=>{r(t,e,n,i)},e=>i(e,t)),i[M]}var ut=g((function(e,t){var n,i=null;return pe(e,(e,t)=>{m(e)((function(e){if(!1===e)return t(e);for(var r=arguments.length,s=new Array(r>1?r-1:0),o=1;o<r;o++)s[o-1]=arguments[o];s.length<2?[n]=s:n=s,i=e,t(e?null:{})}))},()=>t(i,n))}));function dt(e){return function(){return(e.unmemoized||e)(...arguments)}}var ht=g((function(e,t,n){n=T(n);var i=m(t),r=m(e),s=[];function o(e){if(e)return n(e);for(var t=arguments.length,i=new Array(t>1?t-1:0),o=1;o<t;o++)i[o-1]=arguments[o];s=i,!1!==e&&r(a)}function a(e,t){return e?n(e):!1!==e?t?void i(o):n(null,...s):void 0}return r(a)}),3);function pt(e,t,n){const i=m(e);return ht(e=>i((t,n)=>e(t,!n)),t,n)}var ft=g((function(e,t){if(t=S(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 i(t){m(e[n++])(...t,T(r))}function r(r){if(!1!==r){for(var s=arguments.length,o=new Array(s>1?s-1:0),a=1;a<s;a++)o[a-1]=arguments[a];if(r||n===e.length)return t(r,...o);i(o)}}i([])})),mt={apply:i,applyEach:O,applyEachSeries:j,asyncify:d,auto:D,autoInject:z,cargo:V,cargoQueue:W,compose:K,concat:Z,concatLimit:X,concatSeries:ee,constant:te,detect:ie,detectLimit:re,detectSeries:se,dir:ae,doUntil:le,doWhilst:ce,each:de,eachLimit:he,eachOf:C,eachOfLimit:E,eachOfSeries:k,eachSeries:pe,ensureAsync:fe,every:me,everyLimit:ge,everySeries:ye,filter:Se,filterLimit:we,filterSeries:Te,forever:Ie,groupBy:Ee,groupByLimit:Ae,groupBySeries:Ne,log:xe,map:R,mapLimit:Y,mapSeries:P,mapValues:Re,mapValuesLimit:Ce,mapValuesSeries:Oe,memoize:ke,nextTick:Pe,parallel:Me,parallelLimit:Le,priorityQueue:Ue,queue:De,race:ze,reduce:$,reduceRight:Je,reflect:Ge,reflectAll:He,reject:We,rejectLimit:$e,rejectSeries:Qe,retry:Ye,retryable:Ze,seq:Q,series:et,setImmediate:u,some:tt,someLimit:nt,someSeries:it,sortBy:rt,timeout:st,times:at,timesLimit:ot,timesSeries:ct,transform:lt,tryEach:ut,unmemoize:dt,until:pt,waterfall:ft,whilst:ht,all:me,allLimit:ge,allSeries:ye,any:tt,anyLimit:nt,anySeries:it,find:ie,findLimit:re,findSeries:se,flatMap:Z,flatMapLimit:X,flatMapSeries:ee,forEach:de,forEachSeries:pe,forEachLimit:he,forEachOf:C,forEachOfSeries:k,forEachOfLimit:E,inject:$,foldl:$,foldr:Je,select:Se,selectLimit:we,selectSeries:Te,wrapSync:d,during:ht,doDuring:ce}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GenesysCloudMediaSession=void 0;const i=n(26).__importDefault(n(102)),r=n(10),s=n(28),o=n(16),a=n(24);t.GenesysCloudMediaSession=class{constructor(e,t){this.webrtcExtension=e,this.iceCandidatesDiscovered=0,this.iceCandidatesReceivedFromPeer=0,this.state="pending",this.connectionState="starting",this.id=t.id,this.fromJid=t.fromJid,this.peerID=t.peerID,this.logger=t.logger,this.conversationId=t.conversationId,this.fromUserId=t.fromUserId,this.pc=this.peerConnection=new RTCPeerConnection({iceServers:t.iceServers,iceTransportPolicy:t.iceTransportPolicy}),this.originalRoomJid=t.originalRoomJid,this.sessionType=a.SessionTypes[t.sessionType],this.ignoreHostCandidatesFromRemote=!!t.ignoreHostCandidatesFromRemote,this.allowIPv6=!!t.allowIPv6,this.allowTCP=!!t.allowTCP,this.reinvite=!!t.reinvite,this.privAnswerMode=t.privAnswerMode,this.meetingId=t.meetingId;const n=new r.EventEmitter;Object.keys(n.__proto__).forEach(e=>{this[e]=n[e]}),t.optOutOfWebrtcStatsTelemetry||this.setupStatsGatherer(),this.peerConnection.addEventListener("icecandidate",this.onIceCandidate.bind(this)),this.peerConnection.addEventListener("iceconnectionstatechange",this.onIceStateChange.bind(this)),this.peerConnection.addEventListener("connectionstatechange",this.onConnectionStateChange.bind(this)),this.peerConnection.addEventListener("icecandidateerror",this.onIceCandidateError.bind(this))}keepStateInSyncWithPeerConnection(){this.stateSyncTimeout&&(clearTimeout(this.stateSyncTimeout),this.stateSyncTimeout=void 0);const e=Date.now();this.stateSyncTimeout=setTimeout(()=>{Date.now()-e>4e3&&(this.log("warn","MediaSession detected timer anomally. Reasons include taxed resources or system sleep."),"ended"!==this.state&&["failed","closed"].includes(this.peerConnection.connectionState)&&(this.log("warn","state mismatch between session.state and peerConnection.connectionState, manually terminating the session",{sessionId:this.id,conversationId:this.conversationId,sessionType:this.sessionType}),this.state="ended",this.onSessionTerminate())),"ended"!==this.state&&this.keepStateInSyncWithPeerConnection()},2e3)}async setRemoteDescription(e){return this.peerConnection.setRemoteDescription({sdp:e,type:"offer"})}getLogDetails(){return{conversationId:this.conversationId,sessionId:this.id,sessionType:this.sessionType}}log(e,t,n,i){n||(n={});const r={...n,...this.getLogDetails()};this.logger[e](t,r,i)}async sendGenesysWebrtc(e){e.id=e.id||s.v4(),e.jsonrpc=e.jsonrpc||"2.0";const t={type:"set",genesysWebrtc:e,from:this.webrtcExtension.jid,to:this.peerID};return this.webrtcExtension.sendIq(t)}async end(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"success",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.state="ended";const n={sessionId:this.id,reason:e.condition||e};t||await o.timeoutPromise((e,t)=>{this.log("info","sending sdp terminate"),this.sendGenesysWebrtc({jsonrpc:"2.0",method:"terminate",params:n}).then(e,t)},2e3,"Timeout waiting for response to termination request",{sessionId:this.id,conversationId:this.conversationId,sessionType:this.sessionType}).catch(e=>this.logger.error(e)),this.onSessionTerminate(n.reason)}setupStatsGatherer(){this.statsGatherer=new i.default(this.peerConnection),this.statsGatherer.on("stats",this.emit.bind(this,"stats"))}async onIceStateChange(){const e=this.peerConnection.iceConnectionState,t=this.id,n=this.conversationId,i=this.sessionType;if(this.log("info","ICE state changed: ",{iceState:e,sessionId:t,conversationId:n}),"disconnected"===e)"stable"===this.peerConnection.signalingState&&(this.interruptionStart=new Date,this.log("info","Connection state is interrupted",{sessionId:t,conversationId:n,sessionType:i}));else if("connected"===e){this.log("info","sending session-info: active");const e={sessionId:this.id,status:"active"};await this.sendGenesysWebrtc({jsonrpc:"2.0",params:e,method:"info"}),this._setupDataChannel()}else"failed"===e&&this.log("info","ICE connection failed",{candidatesDiscovered:this.iceCandidatesDiscovered,candidatesReceivedFromPeer:this.iceCandidatesReceivedFromPeer})}onConnectionStateChange(){const e=this.connectionState=this.peerConnection.connectionState,t=this.id,n=this.conversationId,i=this.sessionType;if("connected"===e&&this.keepStateInSyncWithPeerConnection(),this.log("info","Connection state changed: ",{connectionState:e,sessionId:t,conversationId:n,sessionType:i}),this.interruptionStart)if("connected"===e){const e=(new Date).getTime()-this.interruptionStart.getTime();this.log("info","Connection was interrupted but was successfully recovered/connected",{sessionId:t,conversationId:n,sessionType:i,timeToRecover:e}),this.interruptionStart=void 0}else"failed"===e&&(this.log("info","Connection was interrupted and failed to recover, cleaning up",{sessionId:t,conversationId:n,sessionType:i}),this.state="ended",this.onSessionTerminate())}onIceCandidateError(e){const t=e;this.log("error","IceCandidateError",{errorCode:t.errorCode,errorText:t.errorText,url:t.url})}createIceCandidate(e,t){return new RTCIceCandidate({sdpMid:e,candidate:t})}async addRemoteIceCandidate(e){const t=e.match(/m=([^\s]+)/)[1],n=e.match(/a=([^\\\r]+)/)[1],i=this.createIceCandidate(t,n);await this.peerConnection.addIceCandidate(i)}onIceCandidate(e){var t,n;let i,r=null===(t=e.candidate)||void 0===t?void 0:t.candidate,s=null===(n=e.candidate)||void 0===n?void 0:n.sdpMid;if(e.candidate){if(!this.allowTCP&&"tcp"===e.candidate.protocol)return;if(!this.allowIPv6){const t=/.+udp [^ ]+ ([^ ]+).*typ host/.exec(e.candidate.candidate),n=/\b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\b/;if(t&&!t[1].match(n))return void this.log("debug","Filtering out IPv6 candidate",e.candidate.candidate)}this.log("debug","Processing ice candidate",e.candidate),this.log("info","Discovered ice candidate to send to peer",{type:e.candidate.type}),this.iceCandidatesDiscovered++,i=`m=${s} 9 RTP/AVP 0\r\na=${r}`}else i="a=end-of-candidates",this.emit("endOfCandidates");return this.sendGenesysWebrtc({jsonrpc:"2.0",method:"iceCandidate",params:{sessionId:this.id,sdp:i}})}onSessionTerminate(e){this.peerConnection&&this.peerConnection.close(),this.logger.info("emitting sdp media-session (terminate)"),this.emit("terminated",{condition:e||"success"})}async addTrack(e,t){const n=this.peerConnection.getTransceivers().find(t=>{var n;return!t.sender.track&&(null===(n=t.receiver.track)||void 0===n?void 0:n.kind)===e.kind});if(n)return n.sender.replaceTrack(e);this.peerConnection.addTrack(e,t)}_setupDataChannel(){var e;this.dataChannel||(null===(e=this.peerConnection.remoteDescription)||void 0===e?void 0:e.sdp.includes("webrtc-datachannel"))&&(this.log("info","creating data channel"),this.dataChannel=this.peerConnection.createDataChannel("videoConferenceControl"),this.dataChannel.addEventListener("open",()=>{this.log("info","data channel opened")}),this.dataChannel.addEventListener("message",this._handleDataChannelMessage.bind(this)),this.dataChannel.addEventListener("close",()=>{this.log("info","closing data channel")}),this.dataChannel.addEventListener("error",e=>{this.log("error","Error occurred with the data channel",e)}))}_handleDataChannelMessage(e){try{const t=JSON.parse(e.data);this.emit("dataChannelMessage",t)}catch(e){this.log("error","Failed to parse data channel message",{error:e})}}async accept(){this.state="active";const e=await this.peerConnection.createAnswer();await this.peerConnection.setLocalDescription(e);const t={sdp:e.sdp,sessionId:this.id};return this.logger.info("sending sdp answer",t),this.sendGenesysWebrtc({jsonrpc:"2.0",method:"answer",params:t})}async mute(e,t){const n={sessionId:this.id,type:t};return this.sendGenesysWebrtc({jsonrpc:"2.0",method:"mute",params:n})}async unmute(e,t){const n={sessionId:this.id,type:t};return this.sendGenesysWebrtc({jsonrpc:"2.0",method:"unmute",params:n})}async removeTrack(){throw new Error("Not Implemented")}async hold(){throw new Error("Not Implemented")}async resume(){throw new Error("Not Implemented")}toString(){return{connectionState:this.connectionState,state:this.state,sessionType:this.sessionType,fromJid:this.fromJid,conversationId:this.conversationId,id:this.id,peerConnection:this.peerConnection}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.core=void 0;const i=n(6);(0,i.__exportStar)(n(106),t),(0,i.__exportStar)(n(107),t),(0,i.__exportStar)(n(108),t),(0,i.__exportStar)(n(109),t),(0,i.__exportStar)(n(110),t),(0,i.__exportStar)(n(111),t),(0,i.__exportStar)(n(112),t),(0,i.__exportStar)(n(113),t),(0,i.__exportStar)(n(114),t),(0,i.__exportStar)(n(115),t),(0,i.__exportStar)(n(116),t),(0,i.__exportStar)(n(118),t),(0,i.__exportStar)(n(119),t),(0,i.__exportStar)(n(120),t),(0,i.__exportStar)(n(121),t),(0,i.__exportStar)(n(122),t),(0,i.__exportStar)(n(123),t),(0,i.__exportStar)(n(124),t);const r=(0,i.__importDefault)(n(106)),s=(0,i.__importDefault)(n(107)),o=(0,i.__importDefault)(n(108)),a=(0,i.__importDefault)(n(109)),c=(0,i.__importDefault)(n(110)),l=(0,i.__importDefault)(n(111)),u=(0,i.__importDefault)(n(112)),d=(0,i.__importDefault)(n(113)),h=(0,i.__importDefault)(n(114)),p=(0,i.__importDefault)(n(115)),f=(0,i.__importDefault)(n(116)),m=(0,i.__importDefault)(n(118)),g=(0,i.__importDefault)(n(119)),y=(0,i.__importDefault)(n(120)),v=(0,i.__importDefault)(n(121)),b=(0,i.__importDefault)(n(122)),_=(0,i.__importDefault)(n(123)),S=(0,i.__importDefault)(n(124));t.core=function(e){e.use(d.default),e.use(l.default),e.use(o.default),e.use(c.default),e.use(h.default),e.use(_.default)},t.default=function(e){e.use(r.default),e.use(m.default),e.use(s.default),e.use(a.default),e.use(u.default),e.use(p.default),e.use(f.default),e.use(g.default),e.use(y.default),e.use(v.default),e.use(b.default),e.use(S.default)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s=[{element:"XRD",fields:{subject:(0,i.childText)(null,"Subject")},namespace:r.NS_XRD,path:"xrd"},{aliases:[{path:"xrd.links",multiple:!0}],element:"Link",fields:{href:(0,i.attribute)("href"),rel:(0,i.attribute)("rel"),type:(0,i.attribute)("type")},namespace:r.NS_XRD}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MessengerExtension=void 0;const i=n(305),r=n(13),s=n(28);class o extends i.Emitter{constructor(e,t){super(),this.client=e,this.stanzaInstance=t}get bareJid(){return r.toBare(this.stanzaInstance.jid)}handleStanzaInstanceChange(e){this.stanzaInstance=e}isMediaMessage(e){return!!e.mediaMessage}handleMessage(e){if(!this.isMediaMessage(e))return;const t=e.from===this.stanzaInstance.jid,n=r.toBare(e.from)===this.bareJid;this.emit("mediaMessage",{...e,fromMyClient:t,fromMyUser:n})}async broadcastMessage(e){const t=s.v4();return e.id=t,e.from=this.stanzaInstance.jid,e.to||(e.to=this.bareJid),await this.stanzaInstance.send("message",e),t}get expose(){return{broadcastMessage:this.broadcastMessage.bind(this),on:this.on.bind(this),once:this.once.bind(this),off:this.off.bind(this),removeListener:this.removeListener.bind(this),addListener:this.addListener.bind(this)}}}t.MessengerExtension=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Client=void 0;const i=n(26),r=n(227),s=n(306);n(262);const o=n(263),a=n(265),c=n(292),l=n(293),u=n(16),d=n(38),h=n(24),p=i.__importDefault(n(10)),f=n(294),m=n(69),g=i.__importDefault(n(304)),y=i.__importDefault(n(206)),v=n(88),b=n(67);let _={notifications:o.Notifications,webrtcSessions:a.WebrtcExtension,messenger:b.MessengerExtension};class S extends p.default{constructor(e){super(),this.connected=!1,this.connecting=!1,this.hardReconnectRequired=!0,this.isGuest=!1,this.backgroundAssistantMode=!1,this.autoReconnect=!0,this.extensions=[],this.channelReuses=0,this.hasMadeInitialAttempt=!1,this.http=new d.HttpClient,this.reconnectOnNoLongerSubscribed=!1!==e.reconnectOnNoLongerSubscribed,this.useServerSidePings=!1!==e.useServerSidePings,this.config={host:e.host,apiHost:e.apiHost||e.host.replace("wss://streaming.",""),authToken:e.authToken,jwt:e.jwt,jid:e.jid,jidResource:e.jidResource,channelId:null,appName:e.appName,appVersion:e.appVersion,appId:e.appId,customHeaders:e.customHeaders},this.backgroundAssistantMode=this.checkIsBackgroundAssistant(),this.isGuest=!this.backgroundAssistantMode&&!e.authToken;let t=e.authToken||"",n=`https://api.${this.config.apiHost}/api/v2/diagnostics/trace`;this.backgroundAssistantMode&&(t=e.jwt,n+="/backgroundassistant"),this.logger=new s.Logger({accessToken:t,url:n,uploadDebounceTime:1e3,initializeServerLogging:!this.isGuest&&!e.optOutOfWebrtcStatsTelemetry,appVersion:S.version,appName:"streaming-client",logLevel:this.config.logLevel||"info",logger:e.logger||console,formatters:e.logFormatters,originAppName:e.appName,originAppVersion:e.appVersion,originAppId:e.appId,customHeaders:e.customHeaders}),this.connectionManager=new f.ConnectionManager(this.logger,this.config),Object.keys(_).forEach(t=>{const n=new _[t](this,e);this.extensions.push(n),n.tokenBucket||(n.tokenBucket=new r.TokenBucket(20,25,1e3),n.tokenBucket.content=25),"function"==typeof n.on&&n.on("send",this.handleSendEventFromExtension.bind(this,n)),this[t]=n.expose,this["_"+t]=n})}handleSendEventFromExtension(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e.tokenBucket.removeTokens(1,()=>{const e=this.activeStanzaInstance;return e?!0===n?e.sendMessage(t):e.sendIQ(t):this.logger.warn("cannot send message, no active stanza client",{data:t,message:n},{skipServer:!0})})}checkIsBackgroundAssistant(){if(this.config.jwt){const e=u.parseJwt(this.config.jwt);return e&&"urn:purecloud:screenrecording"===e.iss}return!1}addInateEventHandlers(e){this.removeStanzaBoundEventHandlers(),this.boundStanzaDisconnect=this.handleStanzaDisconnectedEvent.bind(this,e),this.boundStanzaNoLongerSubscribed=this.handleNoLongerSubscribed.bind(this,e),this.boundStanzaDuplicateId=this.handleDuplicateId.bind(this,e),this.on("stanzaDisconnected",this.boundStanzaDisconnect),this.on("notify:no_longer_subscribed",this.boundStanzaNoLongerSubscribed),this.on("notify:duplicate_id",this.boundStanzaDuplicateId),this.extensions.forEach(t=>{"function"==typeof t.handleIq&&e.on("iq",t.handleIq.bind(t)),"function"==typeof t.handleMessage&&e.on("message",t.handleMessage.bind(t))})}removeStanzaBoundEventHandlers(){this.boundStanzaDisconnect&&(this.off("stanzaDisconnected",this.boundStanzaDisconnect),this.boundStanzaDisconnect=void 0),this.boundStanzaNoLongerSubscribed&&(this.off("notify:no_longer_subscribed",this.boundStanzaNoLongerSubscribed),this.boundStanzaNoLongerSubscribed=void 0),this.boundStanzaDuplicateId&&(this.off("notify:duplicate_id",this.boundStanzaDuplicateId),this.boundStanzaDuplicateId=void 0)}proxyStanzaEvents(e){var t=this;e.originalEmitter=e.emit,e.emit=function(n){for(var i=arguments.length,r=new Array(i>1?i-1:0),s=1;s<i;s++)r[s-1]=arguments[s];const o=e.originalEmitter(n,...r);return"connected"===n?o:("disconnected"===n&&(n="stanzaDisconnected"),t.emit(n,...r))}}async handleStanzaDisconnectedEvent(e){var t,n;if(this.logger.info("stanzaDisconnected event received",{stanzaInstanceId:e.id,channelId:e.channelId}),this.connected=!1,this.connecting=!1,null===(t=e.pinger)||void 0===t||t.stop(),null===(n=e.serverMonitor)||void 0===n||n.stop(),this.removeAllListeners("stanzaDisconnected"),this.removeAllListeners("notify:no_longer_subscribed"),e.originalEmitter&&(e.emit=e.originalEmitter),this.activeStanzaInstance=void 0,this.emit("disconnected",{reconnecting:this.autoReconnect}),this.autoReconnect)return this.connect({keepTryingOnFailure:!0})}handleNoLongerSubscribed(e){var t,n;this.logger.warn("noLongerSubscribed event received",{stanzaInstanceId:e.id,channelId:e.channelId}),null===(t=e.pinger)||void 0===t||t.stop(),null===(n=e.serverMonitor)||void 0===n||n.stop(),this.hardReconnectRequired=!0,this.reconnectOnNoLongerSubscribed||(this.autoReconnect=!1)}handleDuplicateId(e){var t,n;this.logger.warn("duplicate_id event received, forcing hard reconnect",{stanzaInstanceId:e.id,channelId:e.channelId}),null===(t=e.pinger)||void 0===t||t.stop(),null===(n=e.serverMonitor)||void 0===n||n.stop(),this.hardReconnectRequired=!0}async disconnect(){if(this.logger.info("streamingClient.disconnect was called"),this.activeStanzaInstance)return u.timeoutPromise(e=>(this.autoReconnect=!1,this.http.stopAllRetries(),this.activeStanzaInstance.disconnect().then(e)),5e3,"disconnecting streaming service")}getSessionStoreKey(){return"sc_connectionData_"+(this.config.appName||this.logger.clientId)}getConnectionData(){const e=sessionStorage.getItem(this.getSessionStoreKey()),t={currentDelayMs:0};if(e)try{return JSON.parse(e)}catch(e){return this.logger.warn("failed to parse streaming client connection data"),t}return t}setConnectionData(e){sessionStorage.setItem(this.getSessionStoreKey(),JSON.stringify(e))}increaseBackoff(){const e=this.getConnectionData(),t=Math.max(2*e.currentDelayMs,4e3),n={currentDelayMs:t,delayMsAfterNextReduction:t/2,nextDelayReductionTime:(new Date).getTime()+5*t,timeOfTotalReset:(new Date).getTime()+36e5};return this.setConnectionData(n),n}decreaseBackoff(e){const t=this.getConnectionData(),n=5*e,i={currentDelayMs:e,delayMsAfterNextReduction:e/2,nextDelayReductionTime:(new Date).getTime()+n,timeOfTotalReset:t.timeOfTotalReset};if(t.timeOfTotalReset&&t.timeOfTotalReset<(new Date).getTime()||e<2e3)return this.logger.debug("decreaseBackoff() called, but timeOfTotalReset has elasped or next delay is below 2s. Resetting backoff"),this.setConnectionData({currentDelayMs:0});this.setConnectionData(i),clearTimeout(this.backoffReductionTimer),this.logger.debug("Setting timer for next backoff reduction since we haven't reached total reset",{msUntilReduction:n,delayMsAfterNextReduction:i.delayMsAfterNextReduction}),this.backoffReductionTimer=setTimeout(()=>this.decreaseBackoff(i.delayMsAfterNextReduction),n)}getStartingDelay(e,t){const n=Math.max(e.currentDelayMs,2e3);return e.timeOfTotalReset&&e.timeOfTotalReset<(new Date).getTime()?2e3:Math.min(n,t)}async connect(e){var t;if(this.connecting){const e=new Error("Already trying to connect streaming client");return this.logger.warn(e)}this.connecting=!0;const n=(null==e?void 0:e.maxDelayBetweenConnectionAttempts)||9e4;let i=(null==e?void 0:e.maxConnectionAttempts)||1;(null==e?void 0:e.keepTryingOnFailure)&&(i=1/0),clearTimeout(this.backoffReductionTimer);const r=this.getConnectionData(),s=this.getStartingDelay(r,n),o=this.hasMadeInitialAttempt;this.hasMadeInitialAttempt=!0,r.currentDelayMs&&this.logger.debug("streamingClient.connect was called, but backoff is remembered",{currentDelayMs:r.currentDelayMs,delayingThisAttempt:o,clientId:this.logger.clientId,appName:this.config.appName});try{await m.backOff(async()=>{const e=this.getConnectionData();if(await this.makeConnectionAttempt(),e.nextDelayReductionTime){const t=e.nextDelayReductionTime-(new Date).getTime();this.logger.debug("Setting timer for next backoff reduction",{msUntilReduction:t,delayMsAfterNextReduction:e.delayMsAfterNextReduction}),this.backoffReductionTimer=setTimeout(()=>this.decreaseBackoff(e.delayMsAfterNextReduction||0),t)}},{jitter:"none",maxDelay:n,numOfAttempts:i,startingDelay:s,delayFirstAttempt:o,retry:this.backoffConnectRetryHandler.bind(this,{maxConnectionAttempts:i})})}catch(e){let n,i=e;if(e)if("AxiosError"===e.name){const r=e,s=r.config||{url:void 0,method:void 0};i={config:{url:s.url,method:s.method},status:null===(t=r.response)||void 0===t?void 0:t.status,code:r.code,name:r.name,message:r.message},n=new u.StreamingClientError(h.StreamingClientErrorTypes.generic,"Failed to connect streaming client due to network error",e),this.networkErrorNeedsAuth(e)&&(n=new u.StreamingClientError(h.StreamingClientErrorTypes.invalid_token,"Failed to connect streaming client due to invalid token",e))}else e instanceof y.default?(n=new u.StreamingClientError(h.StreamingClientErrorTypes.invalid_token,"Failed to connect streaming client due to invalid token",e),this.saslErrorIsRetryable(e)&&(n=new u.StreamingClientError(h.StreamingClientErrorTypes.generic,"Streaming client connection attempted and received a SASL error",e))):n=new u.StreamingClientError(h.StreamingClientErrorTypes.generic,"Streaming client connection attempted and received an unknown error",e);else n=new u.StreamingClientError(h.StreamingClientErrorTypes.generic,"Streaming client connection attempted and received an undefined error"),i=n;throw this.logger.error("Failed to connect streaming client",{error:i}),n}}async backoffConnectRetryHandler(e,t,n){var i,r,s,o;if(n>=e.maxConnectionAttempts)return!1;const a={connectionAttempt:n,error:t};if(t){if("AxiosError"===t.name){const e=t,n=e.config||{url:void 0,method:void 0};let r={config:{url:n.url,method:n.method},status:null===(i=e.response)||void 0===i?void 0:i.status,code:e.code,name:e.name,message:e.message};if(a.error=r,this.networkErrorNeedsAuth(t))return this.logger.error("Streaming client received an error that it can't recover from and will not attempt to reconnect",a),!1}}else a.error=new Error("streaming client backoff handler received undefined error");if(t instanceof y.default){if(!this.saslErrorIsRetryable(t))return a.error=t.condition,this.logger.error("Streaming-client received a SASL error that it can't recover from and will not attempt to reconnect",a),!1;this.logger.info("hardReconnectRequired set to true due to sasl error"),this.hardReconnectRequired=!0,Object.assign(a,{channelId:t.channelId,stanzaInstanceId:t.stanzaInstanceId})}if(t instanceof v.TimeoutError){a.error=t.message;const e=t.details;e&&(a.details=e)}if(null==t?void 0:t.response){const e=(null===(r=t.response.headers)||void 0===r?void 0:r["retry-after"])||(null===(o=(s=t.response).getResponseHeader)||void 0===o?void 0:o.call(s,"retry-after"));if(e){let n=1e3*parseInt(e,10);return a.retryDelay=n,this.logger.error("Failed streaming client connection attempt, respecting retry-after header and will retry afterwards.",a,{skipServer:t instanceof g.default}),await u.delay(n),this.logger.debug("finished waiting for retry-after"),!0}}const c=this.increaseBackoff();return this.logger.error("Failed streaming client connection attempt, retrying",a,{skipServer:t instanceof g.default}),this.logger.debug("debug: retry info",{expectedRetryInMs:c.currentDelayMs,appName:this.config.appName,clientId:this.logger.clientId}),!0}networkErrorNeedsAuth(e){var t;return[401,403].includes((null===(t=e.response)||void 0===t?void 0:t.status)||0)}saslErrorIsRetryable(e){return["encryption-required","incorrect-encoding","invalid-mechanism","malformed-request","mechanism-too-weak"].includes(e.condition)}async makeConnectionAttempt(){var e,t;if(!navigator.onLine)throw new g.default("Browser is offline, skipping connection attempt");let n,i=this.connecting;try{await this.prepareForConnect(),n=await this.connectionManager.getNewStanzaConnection(),this.connected=!0,this.connecting=!1,this.addInateEventHandlers(n),this.proxyStanzaEvents(n);for(const e of this.extensions)e.configureNewStanzaInstance&&await e.configureNewStanzaInstance(n);for(const e of this.extensions)e.handleStanzaInstanceChange(n);this.activeStanzaInstance=n,await this.setupConnectionMonitoring(n),this.emit("connected")}catch(r){throw n&&(this.logger.error("Error occurred in connection attempt, but after websocket connected. Cleaning up connection so backoff is respected",{stanzaInstanceId:n.id,channelId:n.channelId}),this.removeStanzaBoundEventHandlers(),null===(e=n.pinger)||void 0===e||e.stop(),null===(t=n.serverMonitor)||void 0===t||t.stop(),await n.disconnect(),this.connected=!1,this.connecting=i),r}}async setupConnectionMonitoring(e){const t=t=>{const n=t+", falling back to client-side pinging";this.logger.warn(n,{stanzaInstanceId:e.id,channelId:e.channelId}),e.pinger=new c.Ping(this,e)};if(this.useServerSidePings)try{await e.subscribeToNode(this._notifications.pubsubHost,"enable.server.side.pings"),e.serverMonitor=new l.ServerMonitor(this,e)}catch(e){t("failed to establish server-side pinging")}else t("client configured to not use server-side pinging")}async prepareForConnect(){if(this.config.jwt)return this.hardReconnectRequired=!1,this.connectionManager.setConfig(this.config);if(this.hardReconnectRequired||(this.channelReuses++,this.channelReuses>=10&&(this.logger.warn("Forcing a hard reconnect due to max channel reuses",{channelId:this.config.channelId,channelReuses:this.channelReuses}),this.channelReuses=0,this.hardReconnectRequired=!0)),this.hardReconnectRequired){let e;if(this.config.jid)e=Promise.resolve(this.config.jid);else{const t={method:"get",host:this.config.apiHost,authToken:this.config.authToken,logger:this.logger,customHeaders:this.config.customHeaders};e=this.http.requestApi("users/me",t).then(e=>e.data.chat.jabberId)}const t={method:"post",host:this.config.apiHost,authToken:this.config.authToken,logger:this.logger,customHeaders:this.config.customHeaders},n=this.http.requestApi("notifications/channels?connectionType=streaming",t).then(e=>e.data.id),[i,r]=await Promise.all([e,n]);this.config.jid=i,this.config.channelId=r,this.autoReconnect=!0,this.logger.info("attempting to connect streaming client on channel",{channelId:r}),this.connectionManager.setConfig(this.config),this.hardReconnectRequired=!1}}stopServerLogging(){this.logger.sendAllLogsInstantly(),this.logger.stopServerLogging()}startServerLogging(){this.logger.startServerLogging()}setAccessToken(e){this.config.authToken=e,this.logger.setAccessToken(e)}static extend(e,t){if(_[e])throw new Error("Cannot register already existing namespace "+e);_[e]=t}get version(){return S.version}static get version(){return"18.0.1"}}t.Client=S},function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,s){function o(e){try{c(i.next(e))}catch(e){s(e)}}function a(e){try{c(i.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,a)}c((i=i.apply(e,t||[])).next())}))},r=this&&this.__generator||function(e,t){var n,i,r,s,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,i&&(r=2&s[0]?i.return:s[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,s[1])).done)return r;switch(i=0,r&&(s=[2&s[0],r.value]),s[0]){case 0:case 1:r=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,i=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]<r[3])){o.label=s[1];break}if(6===s[0]&&o.label<r[1]){o.label=r[1],r=s;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(s);break}r[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],i=0}finally{n=r=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,a])}}};Object.defineProperty(t,"__esModule",{value:!0});var s=n(230),o=n(231);t.backOff=function(e,t){return void 0===t&&(t={}),i(this,void 0,void 0,(function(){var n;return r(this,(function(i){switch(i.label){case 0:return n=s.getSanitizedOptions(t),[4,new a(e,n).execute()];case 1:return[2,i.sent()]}}))}))};var a=function(){function e(e,t){this.request=e,this.options=t,this.attemptNumber=0}return e.prototype.execute=function(){return i(this,void 0,void 0,(function(){var e;return r(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 i(this,void 0,void 0,(function(){return r(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){"use strict";var i={};n.r(i),n.d(i,"hasBrowserEnv",(function(){return y})),n.d(i,"hasStandardBrowserWebWorkerEnv",(function(){return _})),n.d(i,"hasStandardBrowserEnv",(function(){return v})),n.d(i,"origin",(function(){return S}));var r=n(1),s=n(41),o=n(22);function a(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function c(e,t){this._pairs=[],e&&Object(o.a)(e,this,t)}const l=c.prototype;l.append=function(e,t){this._pairs.push([e,t])},l.toString=function(e){const t=e?function(t){return e.call(this,t,a)}:a;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var u=c;function d(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function h(e,t,n){if(!t)return e;const i=n&&n.encode||d,s=n&&n.serialize;let o;if(o=s?s(t,n):r.a.isURLSearchParams(t)?t.toString():new u(t,n).toString(i),o){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}var p=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){r.a.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},f=n(5),m={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},g={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:u,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const y="undefined"!=typeof window&&"undefined"!=typeof document,v=(b="undefined"!=typeof navigator&&navigator.product,y&&["ReactNative","NativeScript","NS"].indexOf(b)<0);var b;const _="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,S=y&&window.location.href||"http://localhost";var w={...i,...g};var T=function(e){function t(e,n,i,s){let o=e[s++];if("__proto__"===o)return!0;const a=Number.isFinite(+o),c=s>=e.length;if(o=!o&&r.a.isArray(i)?i.length:o,c)return r.a.hasOwnProp(i,o)?i[o]=[i[o],n]:i[o]=n,!a;i[o]&&r.a.isObject(i[o])||(i[o]=[]);return t(e,n,i[o],s)&&r.a.isArray(i[o])&&(i[o]=function(e){const t={},n=Object.keys(e);let i;const r=n.length;let s;for(i=0;i<r;i++)s=n[i],t[s]=e[s];return t}(i[o])),!a}if(r.a.isFormData(e)&&r.a.isFunction(e.entries)){const n={};return r.a.forEachEntry(e,(e,i)=>{t(function(e){return r.a.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),i,n,0)}),n}return null};const I={transitional:m,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",i=n.indexOf("application/json")>-1,s=r.a.isObject(e);s&&r.a.isHTMLForm(e)&&(e=new FormData(e));if(r.a.isFormData(e))return i?JSON.stringify(T(e)):e;if(r.a.isArrayBuffer(e)||r.a.isBuffer(e)||r.a.isStream(e)||r.a.isFile(e)||r.a.isBlob(e)||r.a.isReadableStream(e))return e;if(r.a.isArrayBufferView(e))return e.buffer;if(r.a.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(s){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Object(o.a)(e,new w.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,i){return w.isNode&&r.a.isBuffer(e)?(this.append(t,e.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((a=r.a.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Object(o.a)(a?{"files[]":e}:e,t&&new t,this.formSerializer)}}return s||i?(t.setContentType("application/json",!1),function(e,t,n){if(r.a.isString(e))try{return(t||JSON.parse)(e),r.a.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||I.transitional,n=t&&t.forcedJSONParsing,i="json"===this.responseType;if(r.a.isResponse(e)||r.a.isReadableStream(e))return e;if(e&&r.a.isString(e)&&(n&&!this.responseType||i)){const n=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw f.a.from(e,f.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:w.classes.FormData,Blob:w.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};r.a.forEach(["delete","get","head","post","put","patch"],e=>{I.headers[e]={}});var A=I;const E=r.a.toObjectSet(["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"]);const N=Symbol("internals");function x(e){return e&&String(e).trim().toLowerCase()}function C(e){return!1===e||null==e?e:r.a.isArray(e)?e.map(C):String(e)}function R(e,t,n,i,s){return r.a.isFunction(i)?i.call(this,t,n):(s&&(t=n),r.a.isString(t)?r.a.isString(i)?-1!==t.indexOf(i):r.a.isRegExp(i)?i.test(t):void 0:void 0)}class O{constructor(e){e&&this.set(e)}set(e,t,n){const i=this;function s(e,t,n){const s=x(t);if(!s)throw new Error("header name must be a non-empty string");const o=r.a.findKey(i,s);(!o||void 0===i[o]||!0===n||void 0===n&&!1!==i[o])&&(i[o||t]=C(e))}const o=(e,t)=>r.a.forEach(e,(e,n)=>s(e,n,t));if(r.a.isPlainObject(e)||e instanceof this.constructor)o(e,t);else if(r.a.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))o((e=>{const t={};let n,i,r;return e&&e.split("\n").forEach((function(e){r=e.indexOf(":"),n=e.substring(0,r).trim().toLowerCase(),i=e.substring(r+1).trim(),!n||t[n]&&E[n]||("set-cookie"===n?t[n]?t[n].push(i):t[n]=[i]:t[n]=t[n]?t[n]+", "+i:i)})),t})(e),t);else if(r.a.isHeaders(e))for(const[t,i]of e.entries())s(i,t,n);else null!=e&&s(t,e,n);return this}get(e,t){if(e=x(e)){const n=r.a.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=n.exec(e);)t[i[1]]=i[2];return t}(e);if(r.a.isFunction(t))return t.call(this,e,n);if(r.a.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=x(e)){const n=r.a.findKey(this,e);return!(!n||void 0===this[n]||t&&!R(0,this[n],n,t))}return!1}delete(e,t){const n=this;let i=!1;function s(e){if(e=x(e)){const s=r.a.findKey(n,e);!s||t&&!R(0,n[s],s,t)||(delete n[s],i=!0)}}return r.a.isArray(e)?e.forEach(s):s(e),i}clear(e){const t=Object.keys(this);let n=t.length,i=!1;for(;n--;){const r=t[n];e&&!R(0,this[r],r,e,!0)||(delete this[r],i=!0)}return i}normalize(e){const t=this,n={};return r.a.forEach(this,(i,s)=>{const o=r.a.findKey(n,s);if(o)return t[o]=C(i),void delete t[s];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(s):String(s).trim();a!==s&&delete t[s],t[a]=C(i),n[a]=!0}),this}concat(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.constructor.concat(this,...t)}toJSON(e){const t=Object.create(null);return r.a.forEach(this,(n,i)=>{null!=n&&!1!==n&&(t[i]=e&&r.a.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(e=>{let[t,n]=e;return t+": "+n}).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e){const t=new this(e);for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return i.forEach(e=>t.set(e)),t}static accessor(e){const t=(this[N]=this[N]={accessors:{}}).accessors,n=this.prototype;function i(e){const i=x(e);t[i]||(!function(e,t){const n=r.a.toCamelCase(" "+t);["get","set","has"].forEach(i=>{Object.defineProperty(e,i+n,{value:function(e,n,r){return this[i].call(this,t,e,n,r)},configurable:!0})})}(n,e),t[i]=!0)}return r.a.isArray(e)?e.forEach(i):i(e),this}}O.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),r.a.reduceDescriptors(O.prototype,(e,t)=>{let{value:n}=e,i=t[0].toUpperCase()+t.slice(1);return{get:()=>n,set(e){this[i]=e}}}),r.a.freezeMethods(O);var k=O;function P(e,t){const n=this||A,i=t||n,s=k.from(i.headers);let o=i.data;return r.a.forEach(e,(function(e){o=e.call(n,o,s.normalize(),t?t.status:void 0)})),s.normalize(),o}function j(e){return!(!e||!e.__CANCEL__)}function M(e,t,n){f.a.call(this,null==e?"canceled":e,f.a.ERR_CANCELED,t,n),this.name="CanceledError"}r.a.inherits(M,f.a,{__CANCEL__:!0});var L=M,D=n(42);function F(e,t,n){const i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(new f.a("Request failed with status code "+n.status,[f.a.ERR_BAD_REQUEST,f.a.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}var B=function(e,t){e=e||10;const n=new Array(e),i=new Array(e);let r,s=0,o=0;return t=void 0!==t?t:1e3,function(a){const c=Date.now(),l=i[o];r||(r=c),n[s]=a,i[s]=c;let u=o,d=0;for(;u!==s;)d+=n[u++],u%=e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),c-r<t)return;const h=l&&c-l;return h?Math.round(1e3*d/h):void 0}};var q=function(e,t){let n,i,r=0,s=1e3/t;const o=function(t){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now();r=s,n=null,i&&(clearTimeout(i),i=null),e.apply(null,t)};return[function(){const e=Date.now(),t=e-r;for(var a=arguments.length,c=new Array(a),l=0;l<a;l++)c[l]=arguments[l];t>=s?o(c,e):(n=c,i||(i=setTimeout(()=>{i=null,o(n)},s-t)))},()=>n&&o(n)]};const U=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,i=0;const r=B(50,250);return q(n=>{const s=n.loaded,o=n.lengthComputable?n.total:void 0,a=s-i,c=r(a);i=s;e({loaded:s,total:o,progress:o?s/o:void 0,bytes:a,rate:c||void 0,estimated:c&&o&&s<=o?(o-s)/c:void 0,event:n,lengthComputable:null!=o,[t?"download":"upload"]:!0})},n)},z=(e,t)=>{const n=null!=e;return[i=>t[0]({lengthComputable:n,total:e,loaded:i}),t[1]]},J=e=>function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return r.a.asap(()=>e(...n))};var G=w.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function i(n){let i=n;return e&&(t.setAttribute("href",i),i=t.href),t.setAttribute("href",i),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=i(window.location.href),function(e){const t=r.a.isString(e)?i(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0},H=w.hasStandardBrowserEnv?{write(e,t,n,i,s,o){const a=[e+"="+encodeURIComponent(t)];r.a.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),r.a.isString(i)&&a.push("path="+i),r.a.isString(s)&&a.push("domain="+s),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function V(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const W=e=>e instanceof k?{...e}:e;function $(e,t){t=t||{};const n={};function i(e,t,n){return r.a.isPlainObject(e)&&r.a.isPlainObject(t)?r.a.merge.call({caseless:n},e,t):r.a.isPlainObject(t)?r.a.merge({},t):r.a.isArray(t)?t.slice():t}function s(e,t,n){return r.a.isUndefined(t)?r.a.isUndefined(e)?void 0:i(void 0,e,n):i(e,t,n)}function o(e,t){if(!r.a.isUndefined(t))return i(void 0,t)}function a(e,t){return r.a.isUndefined(t)?r.a.isUndefined(e)?void 0:i(void 0,e):i(void 0,t)}function c(n,r,s){return s in t?i(n,r):s in e?i(void 0,n):void 0}const l={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:c,headers:(e,t)=>s(W(e),W(t),!0)};return r.a.forEach(Object.keys(Object.assign({},e,t)),(function(i){const o=l[i]||s,a=o(e[i],t[i],i);r.a.isUndefined(a)&&o!==c||(n[i]=a)})),n}var Q=e=>{const t=$({},e);let n,{data:i,withXSRFToken:s,xsrfHeaderName:o,xsrfCookieName:a,headers:c,auth:l}=t;if(t.headers=c=k.from(c),t.url=h(V(t.baseURL,t.url),e.params,e.paramsSerializer),l&&c.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),r.a.isFormData(i))if(w.hasStandardBrowserEnv||w.hasStandardBrowserWebWorkerEnv)c.setContentType(void 0);else if(!1!==(n=c.getContentType())){const[e,...t]=n?n.split(";").map(e=>e.trim()).filter(Boolean):[];c.setContentType([e||"multipart/form-data",...t].join("; "))}if(w.hasStandardBrowserEnv&&(s&&r.a.isFunction(s)&&(s=s(t)),s||!1!==s&&G(t.url))){const e=o&&a&&H.read(a);e&&c.set(o,e)}return t};var K="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const i=Q(e);let s=i.data;const o=k.from(i.headers).normalize();let a,c,l,u,d,{responseType:h,onUploadProgress:p,onDownloadProgress:g}=i;function y(){u&&u(),d&&d(),i.cancelToken&&i.cancelToken.unsubscribe(a),i.signal&&i.signal.removeEventListener("abort",a)}let v=new XMLHttpRequest;function b(){if(!v)return;const i=k.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders());F((function(e){t(e),y()}),(function(e){n(e),y()}),{data:h&&"text"!==h&&"json"!==h?v.response:v.responseText,status:v.status,statusText:v.statusText,headers:i,config:e,request:v}),v=null}v.open(i.method.toUpperCase(),i.url,!0),v.timeout=i.timeout,"onloadend"in v?v.onloadend=b:v.onreadystatechange=function(){v&&4===v.readyState&&(0!==v.status||v.responseURL&&0===v.responseURL.indexOf("file:"))&&setTimeout(b)},v.onabort=function(){v&&(n(new f.a("Request aborted",f.a.ECONNABORTED,e,v)),v=null)},v.onerror=function(){n(new f.a("Network Error",f.a.ERR_NETWORK,e,v)),v=null},v.ontimeout=function(){let t=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const r=i.transitional||m;i.timeoutErrorMessage&&(t=i.timeoutErrorMessage),n(new f.a(t,r.clarifyTimeoutError?f.a.ETIMEDOUT:f.a.ECONNABORTED,e,v)),v=null},void 0===s&&o.setContentType(null),"setRequestHeader"in v&&r.a.forEach(o.toJSON(),(function(e,t){v.setRequestHeader(t,e)})),r.a.isUndefined(i.withCredentials)||(v.withCredentials=!!i.withCredentials),h&&"json"!==h&&(v.responseType=i.responseType),g&&([l,d]=U(g,!0),v.addEventListener("progress",l)),p&&v.upload&&([c,u]=U(p),v.upload.addEventListener("progress",c),v.upload.addEventListener("loadend",u)),(i.cancelToken||i.signal)&&(a=t=>{v&&(n(!t||t.type?new L(null,e,v):t),v.abort(),v=null)},i.cancelToken&&i.cancelToken.subscribe(a),i.signal&&(i.signal.aborted?a():i.signal.addEventListener("abort",a)));const _=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(i.url);_&&-1===w.protocols.indexOf(_)?n(new f.a("Unsupported protocol "+_+":",f.a.ERR_BAD_REQUEST,e)):v.send(s||null)}))};n(9);var Y=(e,t)=>{let n,i=new AbortController;const r=function(e){if(!n){n=!0,o();const t=e instanceof Error?e:this.reason;i.abort(t instanceof f.a?t:new L(t instanceof Error?t.message:t))}};let s=t&&setTimeout(()=>{r(new f.a(`timeout ${t} of ms exceeded`,f.a.ETIMEDOUT))},t);const o=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(e=>{e&&(e.removeEventListener?e.removeEventListener("abort",r):e.unsubscribe(r))}),e=null)};e.forEach(e=>e&&e.addEventListener&&e.addEventListener("abort",r));const{signal:a}=i;return a.unsubscribe=o,[a,()=>{s&&clearTimeout(s),s=null}]};const X=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let i,r=0;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},Z=(e,t,n,i,r)=>{const s=async function*(e,t,n){for await(const i of e)yield*X(ArrayBuffer.isView(i)?i:await n(String(i)),t)}(e,t,r);let o,a=0,c=e=>{o||(o=!0,i&&i(e))};return new ReadableStream({async pull(e){try{const{done:t,value:i}=await s.next();if(t)return c(),void e.close();let r=i.byteLength;if(n){let e=a+=r;n(e)}e.enqueue(new Uint8Array(i))}catch(e){throw c(e),e}},cancel:e=>(c(e),s.return())},{highWaterMark:2})},ee="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,te=ee&&"function"==typeof ReadableStream,ne=ee&&("function"==typeof TextEncoder?(ie=new TextEncoder,e=>ie.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var ie;const re=function(e){try{for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return!!e(...n)}catch(e){return!1}},se=te&&re(()=>{let e=!1;const t=new Request(w.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),oe=te&&re(()=>r.a.isReadableStream(new Response("").body)),ae={stream:oe&&(e=>e.body)};var ce;ee&&(ce=new Response,["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!ae[e]&&(ae[e]=r.a.isFunction(ce[e])?t=>t[e]():(t,n)=>{throw new f.a(`Response type '${e}' is not supported`,f.a.ERR_NOT_SUPPORT,n)})}));const le=async(e,t)=>{const n=r.a.toFiniteNumber(e.getContentLength());return null==n?(async e=>null==e?0:r.a.isBlob(e)?e.size:r.a.isSpecCompliantForm(e)?(await new Request(e).arrayBuffer()).byteLength:r.a.isArrayBufferView(e)||r.a.isArrayBuffer(e)?e.byteLength:(r.a.isURLSearchParams(e)&&(e+=""),r.a.isString(e)?(await ne(e)).byteLength:void 0))(t):n};var ue=ee&&(async e=>{let{url:t,method:n,data:i,signal:s,cancelToken:o,timeout:a,onDownloadProgress:c,onUploadProgress:l,responseType:u,headers:d,withCredentials:h="same-origin",fetchOptions:p}=Q(e);u=u?(u+"").toLowerCase():"text";let m,g,[y,v]=s||o||a?Y([s,o],a):[];const b=()=>{!m&&setTimeout(()=>{y&&y.unsubscribe()}),m=!0};let _;try{if(l&&se&&"get"!==n&&"head"!==n&&0!==(_=await le(d,i))){let e,n=new Request(t,{method:"POST",body:i,duplex:"half"});if(r.a.isFormData(i)&&(e=n.headers.get("content-type"))&&d.setContentType(e),n.body){const[e,t]=z(_,U(J(l)));i=Z(n.body,65536,e,t,ne)}}r.a.isString(h)||(h=h?"include":"omit"),g=new Request(t,{...p,signal:y,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:i,duplex:"half",credentials:h});let s=await fetch(g);const o=oe&&("stream"===u||"response"===u);if(oe&&(c||o)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=s[t]});const t=r.a.toFiniteNumber(s.headers.get("content-length")),[n,i]=c&&z(t,U(J(c),!0))||[];s=new Response(Z(s.body,65536,n,()=>{i&&i(),o&&b()},ne),e)}u=u||"text";let a=await ae[r.a.findKey(ae,u)||"text"](s,e);return!o&&b(),v&&v(),await new Promise((t,n)=>{F(t,n,{data:a,headers:k.from(s.headers),status:s.status,statusText:s.statusText,config:e,request:g})})}catch(t){if(b(),t&&"TypeError"===t.name&&/fetch/i.test(t.message))throw Object.assign(new f.a("Network Error",f.a.ERR_NETWORK,e,g),{cause:t.cause||t});throw f.a.from(t,t&&t.code,e,g)}});const de={http:D.a,xhr:K,fetch:ue};r.a.forEach(de,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});const he=e=>"- "+e,pe=e=>r.a.isFunction(e)||null===e||!1===e;var fe=e=>{e=r.a.isArray(e)?e:[e];const{length:t}=e;let n,i;const s={};for(let r=0;r<t;r++){let t;if(n=e[r],i=n,!pe(n)&&(i=de[(t=String(n)).toLowerCase()],void 0===i))throw new f.a(`Unknown adapter '${t}'`);if(i)break;s[t||"#"+r]=i}if(!i){const e=Object.entries(s).map(e=>{let[t,n]=e;return`adapter ${t} `+(!1===n?"is not supported by the environment":"is not available in the build")});let n=t?e.length>1?"since :\n"+e.map(he).join("\n"):" "+he(e[0]):"as no adapter specified";throw new f.a("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return i};function me(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new L(null,e)}function ge(e){me(e),e.headers=k.from(e.headers),e.data=P.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return fe(e.adapter||A.adapter)(e).then((function(t){return me(e),t.data=P.call(e,e.transformResponse,t),t.headers=k.from(t.headers),t}),(function(t){return j(t)||(me(e),t&&t.response&&(t.response.data=P.call(e,e.transformResponse,t.response),t.response.headers=k.from(t.response.headers))),Promise.reject(t)}))}const ye={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ye[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const ve={};ye.transitional=function(e,t,n){function i(e,t){return"[Axios v1.7.4] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,r,s)=>{if(!1===e)throw new f.a(i(r," has been removed"+(t?" in "+t:"")),f.a.ERR_DEPRECATED);return t&&!ve[r]&&(ve[r]=!0,console.warn(i(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,s)}};var be={assertOptions:function(e,t,n){if("object"!=typeof e)throw new f.a("options must be an object",f.a.ERR_BAD_OPTION_VALUE);const i=Object.keys(e);let r=i.length;for(;r-- >0;){const s=i[r],o=t[s];if(o){const t=e[s],n=void 0===t||o(t,s,e);if(!0!==n)throw new f.a("option "+s+" must be "+n,f.a.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new f.a("Unknown option "+s,f.a.ERR_BAD_OPTION)}},validators:ye};const _e=be.validators;class Se{constructor(e){this.defaults=e,this.interceptors={request:new p,response:new p}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t;Error.captureStackTrace?Error.captureStackTrace(t={}):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=$(this.defaults,t);const{transitional:n,paramsSerializer:i,headers:s}=t;void 0!==n&&be.assertOptions(n,{silentJSONParsing:_e.transitional(_e.boolean),forcedJSONParsing:_e.transitional(_e.boolean),clarifyTimeoutError:_e.transitional(_e.boolean)},!1),null!=i&&(r.a.isFunction(i)?t.paramsSerializer={serialize:i}:be.assertOptions(i,{encode:_e.function,serialize:_e.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=s&&r.a.merge(s.common,s[t.method]);s&&r.a.forEach(["delete","get","head","post","put","patch","common"],e=>{delete s[e]}),t.headers=k.concat(o,s);const a=[];let c=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(c=c&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const l=[];let u;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let d,h=0;if(!c){const e=[ge.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,l),d=e.length,u=Promise.resolve(t);h<d;)u=u.then(e[h++],e[h++]);return u}d=a.length;let p=t;for(h=0;h<d;){const e=a[h++],t=a[h++];try{p=e(p)}catch(e){t.call(this,e);break}}try{u=ge.call(this,p)}catch(e){return Promise.reject(e)}for(h=0,d=l.length;h<d;)u=u.then(l[h++],l[h++]);return u}getUri(e){return h(V((e=$(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}r.a.forEach(["delete","get","head","options"],(function(e){Se.prototype[e]=function(t,n){return this.request($(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.a.forEach(["post","put","patch"],(function(e){function t(t){return function(n,i,r){return this.request($(r||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}Se.prototype[e]=t(),Se.prototype[e+"Form"]=t(!0)}));var we=Se;class Te{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const i=new Promise(e=>{n.subscribe(e),t=e}).then(e);return i.cancel=function(){n.unsubscribe(t)},i},e((function(e,i,r){n.reason||(n.reason=new L(e,i,r),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new Te((function(t){e=t})),cancel:e}}}var Ie=Te;const Ae={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ae).forEach(e=>{let[t,n]=e;Ae[n]=t});var Ee=Ae;const Ne=function e(t){const n=new we(t),i=Object(s.a)(we.prototype.request,n);return r.a.extend(i,we.prototype,n,{allOwnKeys:!0}),r.a.extend(i,n,null,{allOwnKeys:!0}),i.create=function(n){return e($(t,n))},i}(A);Ne.Axios=we,Ne.CanceledError=L,Ne.CancelToken=Ie,Ne.isCancel=j,Ne.VERSION="1.7.4",Ne.toFormData=o.a,Ne.AxiosError=f.a,Ne.Cancel=Ne.CanceledError,Ne.all=function(e){return Promise.all(e)},Ne.spread=function(e){return function(t){return e.apply(null,t)}},Ne.isAxiosError=function(e){return r.a.isObject(e)&&!0===e.isAxiosError},Ne.mergeConfig=$,Ne.AxiosHeaders=k,Ne.formToJSON=e=>T(r.a.isHTMLForm(e)?new FormData(e):e),Ne.getAdapter=fe,Ne.HttpStatusCode=Ee,Ne.default=Ne;t.a=Ne},function(e,t,n){var i=n(216),r=n(72);(e.exports=function(e,t){return r[e]||(r[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:i?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(e,t,n){var i=n(11),r=n(45),s=i["__core-js_shared__"]||r("__core-js_shared__",{});e.exports=s},function(e,t,n){var i=n(29),r=n(18),s=n(74);e.exports=!i&&!r((function(){return 7!=Object.defineProperty(s("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){var i=n(11),r=n(25),s=i.document,o=r(s)&&r(s.createElement);e.exports=function(e){return o?s.createElement(e):{}}},function(e,t,n){var i=n(25);e.exports=function(e,t){if(!i(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!i(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var i=n(18);e.exports=!!Object.getOwnPropertySymbols&&!i((function(){return!String(Symbol())}))},function(e,t,n){var i=n(11),r=n(30),s=n(19),o=n(45),a=n(79),c=n(218),l=c.get,u=c.enforce,d=String(String).split("String");(e.exports=function(e,t,n,a){var c=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,h=!!a&&!!a.noTargetGet;"function"==typeof n&&("string"!=typeof t||s(n,"name")||r(n,"name",t),u(n).source=d.join("string"==typeof t?t:"")),e!==i?(c?!h&&e[t]&&(l=!0):delete e[t],l?e[t]=n:r(e,t,n)):l?e[t]=n:o(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&l(this).source||a(this)}))},function(e,t,n){var i=n(72),r=Function.toString;"function"!=typeof i.inspectSource&&(i.inspectSource=function(e){return r.call(e)}),e.exports=i.inspectSource},function(e,t,n){var i=n(71),r=n(48),s=i("keys");e.exports=function(e){return s[e]||(s[e]=r(e))}},function(e,t){e.exports={}},function(e,t,n){var i=n(83);e.exports=function(e){return Object(i(e))}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var i=n(50),r=Math.min;e.exports=function(e){return e>0?r(i(e),9007199254740991):0}},function(e,t,n){(function(t){var n=function(e,t,n,i){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=i,this.content=0,this.lastDrip=+new Date};n.prototype={bucketSize:1,tokensPerInterval:1,interval:1e3,parentBucket:null,content:0,lastDrip:0,removeTokens:function(e,n){var i=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?r():this.parentBucket?this.parentBucket.removeTokens(e,(function(t,s){return t?n(t,null):e>i.content?r():(i.content-=e,void n(null,Math.min(s,i.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 r(){var t=Math.ceil((e-i.content)*(i.interval/i.tokensPerInterval));return setTimeout((function(){i.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=n}).call(this,n(23))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(233),r=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 i.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,i=e*Math.pow(t,n);return Math.min(i,this.options.maxDelay)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"numOfDelayedAttempts",{get:function(){return this.attempt},enumerable:!0,configurable:!0}),e}();t.Delay=r},function(e,t,n){var i=n(29),r=n(239),s=n(76),o=n(51),a=n(75),c=n(19),l=n(73),u=Object.getOwnPropertyDescriptor;t.f=i?u:function(e,t){if(e=o(e),t=a(t,!0),l)try{return u(e,t)}catch(e){}if(c(e,t))return s(!r.f.call(e,t),e[t])}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TimeoutError=void 0;class i extends Error{constructor(e){super(e)}}t.TimeoutError=i},function(e,t,n){"use strict";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;const i=(0,n(6).__importDefault)(n(53)),r=n(267);class s{constructor(e,t){this.singles=new Set,this.ranges=[],this.mappings=new Map;const n=r.TABLE_DATA[e];this.name=e,n?(n.s&&(this.singles=new Set(n.s.split("|").map(e=>parseInt(e,32)))),n.r&&(this.ranges=n.r.split("|").map(e=>{const[t,n]=e.split(":");return[parseInt(t,32),parseInt(n,32)]})),n.m&&(this.mappings=new Map(n.m.split("|").map(e=>{const[t,n]=e.split(":"),i=n.split(";").map(e=>parseInt(e,32));return[parseInt(t,32),i]})))):t&&(this.singles=new Set(t))}contains(e){if(this.singles.has(e))return!0;let t=0,n=this.ranges.length-1;for(;t<=n;){const i=Math.floor((t+n)/2),r=this.ranges[i];if(e<r[0])n=i-1;else{if(!(e>r[1]))return!0;t=i+1}}return!1}hasMapping(e){return this.mappings.has(e)||this.contains(e)}map(e){return this.contains(e)&&!this.mappings.has(e)?String.fromCodePoint(e).toLowerCase().codePointAt(0):this.mappings.get(e)||null}}function o(e,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";const s=i.default.ucs2.decode(r);let o=[];for(const t of s){if(!n&&e.unassigned.contains(t))throw new Error("Unassigned code point: x"+t.toString(16));let i=!1;for(const n of e.mappings){if(!n.hasMapping(t))continue;i=!0;const e=n.map(t);e&&(Array.isArray(e)?o=o.concat(e):o.push(e))}i||o.push(t)}let a=o;if(e.normalize){const e=i.default.ucs2.encode(o).normalize("NFKC");a=i.default.ucs2.decode(e)}let c=!1,l=!1;for(const i of a){for(const t of e.prohibited)if(t.contains(i))throw new Error("Prohibited code point: x"+i.toString(16));if(!n&&e.unassigned.contains(i))throw new Error("Prohibited code point: x"+i.toString(16));e.bidirectional&&(c=c||t.D1.contains(i),l=l||t.D2.contains(i))}if(e.bidirectional){if(c&&l)throw new Error("String contained both LCat and RandALCat code points");if(c&&(!t.D1.contains(a[0])||!t.D1.contains(a[a.length-1])))throw new Error("String containing RandALCat code points must start and end with RandALCat code points")}return i.default.ucs2.encode(a)}t.Table=s,t.A1=new s("A.1"),t.B1=new s("B.1"),t.B2=new s("B.2"),t.B3=new s("B.3"),t.C11=new s("C.1.1"),t.C12=new s("C.1.2"),t.C21=new s("C.2.1"),t.C22=new s("C.2.2"),t.C3=new s("C.3"),t.C4=new s("C.4"),t.C5=new s("C.5"),t.C6=new s("C.6"),t.C7=new s("C.7"),t.C8=new s("C.8"),t.C9=new s("C.9"),t.D1=new s("D.1"),t.D2=new s("D.2"),t.B1.map=()=>null,t.C11.contains=e=>32===e,t.C12.map=e=>t.C12.contains(e)?32:null,t.prepare=o;const a={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){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return o(a,t,e)},t.NodePrepProhibited=new s("NodePrepProhibited",[34,38,39,47,58,60,62,64]);const c={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){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return o(c,t,e)};const l={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){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return o(l,t,e)};const u={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){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return o(u,t,e)}},function(e,t){e.exports=function(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){function n(t){return e.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(55);t.default=class{constructor(){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}addChild(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0,r=arguments.length>4?arguments[4]:void 0;const s={multiple:n||!1,name:e,selector:i,translator:t},o=this.children.get(e);if(!o){s.translator.parents.add(this),this.children.set(e,s);for(const[n]of t.importers)this.implicitChildren.has(n)||this.childrenIndex.set(n,e);return void(r&&this.implicitChildren.add(r))}const a=o.translator;o.multiple=n,i&&o.selector&&i!==o.selector&&(o.selector=void 0);for(const[n,i]of t.importers){const[r,s]=(a.typeValues.get(n)||"").split("__v__");a.updateDefinition({contexts:t.contexts,element:i.element,exporterOrdering:new Map,exporters:new Map,importerOrdering:i.fieldOrders,importers:i.fields,namespace:i.namespace,optionalNamespaces:new Map,type:r,version:s}),this.implicitChildren.has(n)||this.childrenIndex.set(n,e)}for(const[e,n]of t.exporters){const[i,r]=e.split("__v__");a.updateDefinition({contexts:t.contexts,element:n.element,exporterOrdering:n.fieldOrders,exporters:n.fields,importerOrdering:new Map,importers:new Map,namespace:n.namespace,optionalNamespaces:n.optionalNamespaces,type:i,version:r})}}addContext(e,t,n,i,r,s){t&&(e=`${e}[${t}]`);let o=this.contexts.get(e);o||(o={typeField:"",versionField:"",typeValues:new Map}),s&&(o.impliedType=r),o.typeField=n||"",o.typeValues.set(i,r),this.contexts.set(e,o)}getChild(e){const t=this.children.get(e);if(t)return t.translator}getImportKey(e){return this.childrenIndex.get(`{${e.getNamespace()}}${e.getName()}`)}updateDefinition(e){const t=`{${e.namespace}}${e.element}`,n=e.type||this.defaultType,i=e.version||this.defaultVersion,r=i?`${n}__v__${i}`:n,s=this.importers.get(t)||{element:e.element,fieldOrders:new Map,fields:new Map,namespace:e.namespace};for(const[t,n]of e.importers)s.fields.set(t,n);for(const[t,n]of e.importerOrdering)s.fieldOrders.set(t,n);this.importers.set(t,s);const o=this.exporters.get(r)||{element:e.element,fieldOrders:new Map,fields:new Map,namespace:e.namespace,optionalNamespaces:e.optionalNamespaces};for(const[t,n]of e.exporters)o.fields.set(t,n);for(const[t,n]of e.exporterOrdering)o.fieldOrders.set(t,n);for(const[t,n]of e.optionalNamespaces)o.optionalNamespaces.set(t,n);this.exporters.set(r,o);for(const[t,n]of e.contexts){const e=this.contexts.get(t)||{impliedType:void 0,typeField:n.typeField,versionField:n.versionField,typeValues:new Map};e.typeField||(e.typeField=n.typeField),e.versionField||(e.versionField=n.versionField),e.impliedType||(e.impliedType=n.impliedType);for(const[t,i]of n.typeValues)e.typeValues.set(t,i);this.contexts.set(t,e)}if(e.type)this.typeValues.set(t,r),e.typeOrder&&e.type&&this.typeOrders.set(e.type,e.typeOrder);else if(this.typeField&&!e.type){for(const[,t]of this.importers){for(const[n,i]of e.importers)t.fields.set(n,i);for(const[n,i]of e.importerOrdering)t.fieldOrders.set(n,i)}for(const[,t]of this.exporters){for(const[n,i]of e.exporters)t.fields.set(n,i);for(const[n,i]of e.exporterOrdering)t.fieldOrders.set(n,i)}}}replaceWith(e){for(const[t,n]of this.children)e.children.set(t,n);for(const[t,n]of this.childrenIndex)e.childrenIndex.set(t,n);for(const[t,n]of this.contexts)e.contexts.set(t,n);for(const t of this.implicitChildren)e.implicitChildren.add(t);for(const t of this.parents)for(const n of t.children.values())n.translator===this&&(n.translator=e);this.parents=new Set}import(e,t){const n=`{${e.getNamespace()}}${e.getName()}`,i={},r=this.importers.get(n);if(!r)return;const s=this.typeValues.get(n)||"",[o,a]=s.split("__v__"),c=t.path||"";let l;if(t.pathSelector&&(l=this.contexts.get(`${c}[${t.pathSelector}]`)),l||(l=this.contexts.get(c)),l){if(!l.impliedType){const e=l.typeValues.get(n)||"";e&&(i[l.typeField]=e)}}else this.typeField&&o&&o!==this.defaultType&&(i[this.typeField]=o);this.versionField&&a&&a!==this.defaultVersion&&(i[this.versionField]=a);const u={...t,data:i,importer:r,lang:(e.getAttribute("xml:lang")||t.lang||"").toLowerCase(),pathSelector:o,translator:this},d=[...r.fieldOrders.entries()].sort((e,t)=>e[1]>t[1]?-1:e[1]<t[1]?1:0),h=d.filter(e=>e[1]>=0),p=d.filter(e=>e[1]<0);for(const[n]of h){const s=r.fields.get(n);u.path=`${t.path}.${n}`;const o=s(e,u);null!=o&&(i[n]=o)}for(const n of e.children){if("string"==typeof n)continue;const e=`{${n.getNamespace()}}${n.getName()}`,r=this.childrenIndex.get(e);if(!r)continue;u.path=`${t.path}.${r}`;const{translator:s,multiple:a,selector:c}=this.children.get(r);if(!c||c===o){const e=s.import(n,u);void 0!==e&&(a?(i[r]||(i[r]=[]),i[r].push(e)):i[r]?i[r]=s.resolveCollision(i[r],e):i[r]=e)}}for(const[n]of p){const s=r.fields.get(n);u.path=`${t.path}.${n}`;const o=s(e,u);null!=o&&(i[n]=o)}return i}export(e,t){if(!e)return;let n=this.defaultType,r=this.defaultVersion;const s=t.path||"";let o;t.pathSelector&&(o=this.contexts.get(`${s}[${t.pathSelector}]`)),o||(o=this.contexts.get(s)),o?n=o.impliedType||e[o.typeField]||this.defaultType:this.typeField&&(n=e[this.typeField]||this.defaultType),this.versionField&&(r=e[this.versionField]||this.defaultVersion);const a=r?`${n}__v__${r}`:n,c=this.exporters.get(a);if(!c)return;const l=(0,i.createElement)(c.namespace,c.element,t.namespace,t.element);t.element&&(l.parent=t.element);for(const[e,t]of c.optionalNamespaces)l.addOptionalNamespace(e,t);const u={...t,data:e,element:l,exporter:c,lang:(e[this.languageField]||t.lang||"").toLowerCase(),namespace:l.getDefaultNamespace(),pathSelector:n,translator:this},d=c.fields.get(this.languageField);d&&d(l,e[this.languageField],t);const h=Object.keys(e);h.sort((e,t)=>(c.fieldOrders.get(e)||1e5)-(c.fieldOrders.get(t)||1e5));for(const i of h){if(i===this.languageField)continue;const r=e[i],s=c.fields.get(i);if(s){s(l,r,u);continue}const o=this.children.get(i);if(!o)continue;u.path=`${t.path?t.path+".":""}${i}`;const{translator:a,multiple:d,selector:h}=o;if(!h||h===n){let e;e=d?null!=r?r:[]:[r];for(const t of e){const e=a.export(t,u);e&&l.appendChild(e)}}}return l}resolveCollision(e,t){return(this.typeOrders.get(e[this.typeField]||this.defaultType)||0)<=(this.typeOrders.get(t[this.typeField]||this.defaultType)||0)?e:t}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Hash=void 0;const i=n(6),r=(0,i.__importDefault)(n(31));t.Hash=r.default;const s=(0,i.__importDefault)(n(282)),o=(0,i.__importDefault)(n(283)),a=(0,i.__importDefault)(n(284)),c=(0,i.__importDefault)(n(285)),l=new Map([["md5",s.default],["sha-1",o.default],["sha-256",a.default],["sha-512",c.default],["sha1",o.default],["sha256",a.default],["sha512",c.default]]);t.default=function(e){e=e.toLowerCase();const t=l.get(e);if(t)return new t;throw new Error("Unsupported hash algorithm: "+e)}},function(e,t,n){"use strict";(function(t,i){n(9);var r,s=n(36);e.exports=g,g.ReadableState=m;n(10).EventEmitter;var o=function(e,t){return e.listeners(t).length},a=n(10).EventEmitter,c=n(14).Buffer,l=t.Uint8Array||function(){};var u,d=Object.create(n(32)),h=n(280).BufferList,p=n(95);d.inherits(g,a);var f=["error","close","destroy","pause","resume"];function m(e,t){e=e||{};var i=t instanceof(r=r||n(27));this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var s=e.highWaterMark,o=e.readableHighWaterMark,a=this.objectMode?16:16384;this.highWaterMark=s||0===s?s:i&&(o||0===o)?o:a,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new h,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(u||(u=n(97).StringDecoder),this.decoder=new u(e.encoding),this.encoding=e.encoding)}function g(e){if(r=r||n(27),!(this instanceof g))return new g(e);this._readableState=new m(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),a.call(this)}function y(e,t,n,i,r){var s,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,_(e)}(e,o)):(r||(s=function(e,t){var n;i=t,c.isBuffer(i)||i instanceof l||"string"==typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk"));var i;return n}(o,t)),s?e.emit("error",s):o.objectMode||t&&t.length>0?("string"==typeof t||o.objectMode||Object.getPrototypeOf(t)===c.prototype||(t=function(e){return c.from(e)}(t)),i?o.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):v(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?v(e,o,t,!1):w(e,o)):v(e,o,t,!1))):i||(o.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(o)}function v(e,t,n,i){t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,i?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&_(e)),w(e,t)}Object.defineProperty(g.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),g.prototype.destroy=p.destroy,g.prototype._undestroy=p.undestroy,g.prototype._destroy=function(e,t){this.push(null),t(e)},g.prototype.push=function(e,t){var n,i=this._readableState;return i.objectMode?n=!0:"string"==typeof e&&((t=t||i.defaultEncoding)!==i.encoding&&(e=c.from(e,t),t=""),n=!0),y(this,e,t,!1,n)},g.prototype.unshift=function(e){return y(this,e,null,!0,!1)},g.prototype.isPaused=function(){return!1===this._readableState.flowing},g.prototype.setEncoding=function(e){return u||(u=n(97).StringDecoder),this._readableState.decoder=new u(e),this._readableState.encoding=e,this};function b(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 _(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(t.flowing,t.emittedReadable=!0,t.sync?s.nextTick(S,e):S(e))}function S(e){e.emit("readable"),E(e)}function w(e,t){t.readingMore||(t.readingMore=!0,s.nextTick(T,e,t))}function T(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}function I(e){e.read(0)}function A(e,t){t.reading||e.read(0),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),E(e),t.flowing&&!t.reading&&e.read(0)}function E(e){var t=e._readableState;for(t.flowing;t.flowing&&null!==e.read(););}function N(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 i;e<t.head.data.length?(i=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):i=e===t.head.data.length?t.shift():n?function(e,t){var n=t.head,i=1,r=n.data;e-=r.length;for(;n=n.next;){var s=n.data,o=e>s.length?s.length:e;if(o===s.length?r+=s:r+=s.slice(0,e),0===(e-=o)){o===s.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=s.slice(o));break}++i}return t.length-=i,r}(e,t):function(e,t){var n=c.allocUnsafe(e),i=t.head,r=1;i.data.copy(n),e-=i.data.length;for(;i=i.next;){var s=i.data,o=e>s.length?s.length:e;if(s.copy(n,n.length-e,0,o),0===(e-=o)){o===s.length?(++r,i.next?t.head=i.next:t.head=t.tail=null):(t.head=i,i.data=s.slice(o));break}++r}return t.length-=r,n}(e,t);return i}(e,t.buffer,t.decoder),n);var n}function x(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,s.nextTick(C,t,e))}function C(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function R(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1}g.prototype.read=function(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 t.length,t.ended,0===t.length&&t.ended?x(this):_(this),null;if(0===(e=b(e,t))&&t.ended)return 0===t.length&&x(this),null;var i,r=t.needReadable;return(0===t.length||t.length-e<t.highWaterMark)&&(r=!0),t.ended||t.reading?r=!1:r&&(t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=b(n,t))),null===(i=e>0?N(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&x(this)),null!==i&&this.emit("data",i),i},g.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},g.prototype.pipe=function(e,t){var n=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=e;break;case 1:r.pipes=[r.pipes,e];break;default:r.pipes.push(e)}r.pipesCount+=1,r.pipesCount;var a=(!t||!1!==t.end)&&e!==i.stdout&&e!==i.stderr?l:y;function c(t,i){t===n&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,e.removeListener("close",m),e.removeListener("finish",g),e.removeListener("drain",u),e.removeListener("error",f),e.removeListener("unpipe",c),n.removeListener("end",l),n.removeListener("end",y),n.removeListener("data",p),d=!0,!r.awaitDrain||e._writableState&&!e._writableState.needDrain||u())}function l(){e.end()}r.endEmitted?s.nextTick(a):n.once("end",a),e.on("unpipe",c);var u=function(e){return function(){var t=e._readableState;t.awaitDrain,t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&o(e,"data")&&(t.flowing=!0,E(e))}}(n);e.on("drain",u);var d=!1;var h=!1;function p(t){h=!1,!1!==e.write(t)||h||((1===r.pipesCount&&r.pipes===e||r.pipesCount>1&&-1!==R(r.pipes,e))&&!d&&(n._readableState.awaitDrain,n._readableState.awaitDrain++,h=!0),n.pause())}function f(t){y(),e.removeListener("error",f),0===o(e,"error")&&e.emit("error",t)}function m(){e.removeListener("finish",g),y()}function g(){e.removeListener("close",m),y()}function y(){n.unpipe(e)}return n.on("data",p),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",f),e.once("close",m),e.once("finish",g),e.emit("pipe",n),r.flowing||n.resume(),e},g.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 i=t.pipes,r=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var s=0;s<r;s++)i[s].emit("unpipe",this,n);return this}var o=R(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},g.prototype.on=function(e,t){var n=a.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var i=this._readableState;i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.emittedReadable=!1,i.reading?i.length&&_(this):s.nextTick(I,this))}return n},g.prototype.addListener=g.prototype.on,g.prototype.resume=function(){var e=this._readableState;return e.flowing||(e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,s.nextTick(A,e,t))}(this,e)),this},g.prototype.pause=function(){return this._readableState.flowing,!1!==this._readableState.flowing&&(this._readableState.flowing=!1,this.emit("pause")),this},g.prototype.wrap=function(e){var t=this,n=this._readableState,i=!1;for(var r in e.on("end",(function(){if(n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(r){(n.decoder&&(r=n.decoder.write(r)),n.objectMode&&null==r)||(n.objectMode||r&&r.length)&&(t.push(r)||(i=!0,e.pause()))})),e)void 0===this[r]&&"function"==typeof e[r]&&(this[r]=function(t){return function(){return e[t].apply(e,arguments)}}(r));for(var s=0;s<f.length;s++)e.on(f[s],this.emit.bind(this,f[s]));return this._read=function(t){i&&(i=!1,e.resume())},this},Object.defineProperty(g.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),g._fromList=N}).call(this,n(15),n(23))},function(e,t,n){"use strict";var i=n(36);function r(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var n=this,s=this._readableState&&this._readableState.destroyed,o=this._writableState&&this._writableState.destroyed;return s||o?(t?t(e):!e||this._writableState&&this._writableState.errorEmitted||i.nextTick(r,this,e),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?(i.nextTick(r,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){n(9);var i=n(36);function r(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var i=e.entry;e.entry=null;for(;i;){var r=i.callback;t.pendingcb--,r(n),i=i.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}e.exports=m;var s,o=i.nextTick;m.WritableState=f;var a=Object.create(n(32)),c=n(10).EventEmitter,l=n(14).Buffer,u=t.Uint8Array||function(){};var d,h=n(95);function p(){}function f(e,t){s=s||n(27),e=e||{};var a=t instanceof s;this.objectMode=!!e.objectMode,a&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var c=e.highWaterMark,l=e.writableHighWaterMark,u=this.objectMode?16:16384;this.highWaterMark=c||0===c?c:a&&(l||0===l)?l:u,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 d=!1===e.decodeStrings;this.decodeStrings=!d,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,s=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,s){--t.pendingcb,n?(i.nextTick(s,r),i.nextTick(S,e,t),e._writableState.errorEmitted=!0,e.emit("error",r)):(s(r),e._writableState.errorEmitted=!0,e.emit("error",r),S(e,t))}(e,n,r,t,s);else{var a=b(n);a||n.corked||n.bufferProcessing||!n.bufferedRequest||v(e,n),r?o(y,e,n,a,s):y(e,n,a,s)}}(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 r(this)}function m(e){if(s=s||n(27),!(d.call(m,this)||this instanceof s))return new m(e);this._writableState=new f(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)),c.call(this)}function g(e,t,n,i,r,s,o){t.writelen=i,t.writecb=o,t.writing=!0,t.sync=!0,n?e._writev(r,t.onwrite):e._write(r,s,t.onwrite),t.sync=!1}function y(e,t,n,i){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,i(),S(e,t)}function v(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var i=t.bufferedRequestCount,s=new Array(i),o=t.corkedRequestsFree;o.entry=n;for(var a=0,c=!0;n;)s[a]=n,n.isBuf||(c=!1),n=n.next,a+=1;s.allBuffers=c,g(e,t,!0,t.length,s,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new r(t),t.bufferedRequestCount=0}else{for(;n;){var l=n.chunk,u=n.encoding,d=n.callback;if(g(e,t,!1,t.objectMode?1:l.length,l,u,d),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function b(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function _(e,t){e._final((function(n){t.pendingcb--,n&&e.emit("error",n),t.prefinished=!0,e.emit("prefinish"),S(e,t)}))}function S(e,t){var n=b(t);return n&&(!function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,i.nextTick(_,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),n}a.inherits(m,c),f.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(f.prototype,"buffer",{get:function(){return this.getBuffer()}})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(d=Function.prototype[Symbol.hasInstance],Object.defineProperty(m,Symbol.hasInstance,{value:function(e){return!!d.call(this,e)||this===m&&(e&&e._writableState instanceof f)}})):d=function(e){return e instanceof this},m.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},m.prototype.write=function(e,t,n){var r,s=this._writableState,o=!1,a=!s.objectMode&&(r=e,l.isBuffer(r)||r instanceof u);return a&&!l.isBuffer(e)&&(e=function(e){return l.from(e)}(e)),"function"==typeof t&&(n=t,t=null),a?t="buffer":t||(t=s.defaultEncoding),"function"!=typeof n&&(n=p),s.ended?function(e,t){var n=new Error("write after end");e.emit("error",n),i.nextTick(t,n)}(this,n):(a||function(e,t,n,r){var s=!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),i.nextTick(r,o),s=!1),s}(this,s,e,n))&&(s.pendingcb++,o=function(e,t,n,i,r,s){if(!n){var o=function(e,t,n){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=l.from(t,n));return t}(t,i,r);i!==o&&(n=!0,r="buffer",i=o)}var a=t.objectMode?1:i.length;t.length+=a;var c=t.length<t.highWaterMark;c||(t.needDrain=!0);if(t.writing||t.corked){var u=t.lastBufferedRequest;t.lastBufferedRequest={chunk:i,encoding:r,isBuf:n,callback:s,next:null},u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else g(e,t,!1,a,i,r,s);return c}(this,s,a,e,t,n)),o},m.prototype.cork=function(){this._writableState.corked++},m.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||v(this,e))},m.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(m.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),m.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},m.prototype._writev=null,m.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,S(e,t),n&&(t.finished?i.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,r,n)},Object.defineProperty(m.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),m.prototype.destroy=h.destroy,m.prototype._undestroy=h.undestroy,m.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,n(15))},function(e,t,n){"use strict";var i=n(14).Buffer,r=i.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 s(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&&(i.isEncoding===r||!r(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=c,this.end=l,t=4;break;case"utf8":this.fillLast=a,t=4;break;case"base64":this.text=u,this.end=d,t=3;break;default:return this.write=h,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=i.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 a(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 i=n.charCodeAt(n.length-1);if(i>=55296&&i<=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 l(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 u(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 d(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function h(e){return e.toString(this.encoding)}function p(e){return e&&e.length?this.write(e):""}t.StringDecoder=s,s.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||""},s.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},s.prototype.text=function(e,t){var n=function(e,t,n){var i=t.length-1;if(i<n)return 0;var r=o(t[i]);if(r>=0)return r>0&&(e.lastNeed=r-1),r;if(--i<n||-2===r)return 0;if((r=o(t[i]))>=0)return r>0&&(e.lastNeed=r-2),r;if(--i<n||-2===r)return 0;if((r=o(t[i]))>=0)return r>0&&(2===r?r=0:e.lastNeed=r-3),r;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var i=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,i),e.toString("utf8",t,i)},s.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=s;var i=n(27);function r(e,t){var n=this._transformState;n.transforming=!1;var i=n.writecb;if(!i)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=t&&this.push(t),i(e);var r=this._readableState;r.reading=!1,(r.needReadable||r.length<r.highWaterMark)&&this._read(r.highWaterMark)}function s(e){if(!(this instanceof s))return new s(e);i.call(this,e),this._transformState={afterTransform:r.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",o)}function o(){var e=this;"function"==typeof this._flush?this._flush((function(t,n){a(e,t,n)})):a(this,null,null)}function a(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)}Object.create(n(32)).inherits(s,i),s.prototype.push=function(e,t){return this._transformState.needTransform=!1,i.prototype.push.call(this,e,t)},s.prototype._transform=function(e,t,n){throw new Error("_transform() is not implemented")},s.prototype._write=function(e,t,n){var i=this._transformState;if(i.writecb=n,i.writechunk=e,i.writeencoding=t,!i.transforming){var r=this._readableState;(i.needTransform||r.needReadable||r.length<r.highWaterMark)&&this._read(r.highWaterMark)}},s.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},s.prototype._destroy=function(e,t){var n=this;i.prototype._destroy.call(this,e,(function(e){t(e),n.emit("close")}))}},function(e,t,n){"use strict";n(9),Object.defineProperty(t,"__esModule",{value:!0}),t.Receiver=t.Sender=void 0;const i=n(6),r=n(10),s=(0,i.__importStar)(n(12)),o=n(8),a=n(2),c=(0,i.__importDefault)(n(60)),l=n(37),u=n(61);class d extends r.EventEmitter{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(),this.config={chunkSize:16384,hash:"sha-1",...e},this.file=void 0,this.channel=void 0,this.hash=s.createHash(this.config.hash)}send(e,t){if(this.file&&this.channel)return;this.file=e,this.channel=t,this.channel.binaryType="arraybuffer";const n=new FileReader;let i=0,r=!1;const s=()=>{if(r||i>=e.size)return;r=!0;const t=e.slice(i,i+this.config.chunkSize);n.readAsArrayBuffer(t)};t.bufferedAmountLowThreshold=8*this.config.chunkSize,t.onbufferedamountlow=()=>{s()},n.addEventListener("load",t=>{const n=t.target.result;r=!1,i+=n.byteLength,this.channel.send(n),this.hash.update(new Uint8Array(n)),this.emit("progress",i,e.size,n),i<e.size?this.channel.bufferedAmount<=this.channel.bufferedAmountLowThreshold&&s():(this.emit("progress",e.size,e.size,null),this.emit("sentFile",{algorithm:this.config.hash,name:e.name,size:e.size,value:this.hash.digest()}))}),s()}}t.Sender=d;class h extends r.EventEmitter{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(),this.config={hash:"sha-1",...e},this.receiveBuffer=[],this.received=0,this.channel=void 0,this.hash=s.createHash(this.config.hash)}receive(e,t){this.metadata=e,this.channel=t,this.channel.binaryType="arraybuffer",this.channel.onmessage=e=>{const t=e.data.byteLength;this.received+=t,this.receiveBuffer.push(e.data),e.data&&this.hash.update(new Uint8Array(e.data)),this.emit("progress",this.received,this.metadata.size,e.data),this.received===this.metadata.size?(this.metadata.actualhash=this.hash.digest("hex"),this.emit("receivedFile",new Blob(this.receiveBuffer),this.metadata),this.receiveBuffer=[]):this.received>this.metadata.size&&(console.error("received more than expected, discarding..."),this.receiveBuffer=[])}}}t.Receiver=h;class p extends c.default{constructor(e){super(e),this.sender=void 0,this.receiver=void 0,this.file=void 0}async start(e,t){if(t=t||(()=>{}),!e||"function"==typeof e)throw new Error("File object required");this.state="pending",this.role="initiator",this.file=e,this.sender=new d,this.sender.on("progress",(e,t)=>{this._log("info","Send progress "+e+"/"+t)}),this.sender.on("sentFile",e=>{this._log("info","Sent file",e.name),this.send(o.JingleAction.SessionInfo,{info:{creator:o.JingleSessionRole.Initiator,file:{hashes:[{algorithm:e.algorithm,value:e.value}]},infoType:o.JINGLE_INFO_CHECKSUM_5,name:this.contentName}}),this.parent.emit("sentFile",this,e)}),this.channel=this.pc.createDataChannel("filetransfer",{ordered:!0}),this.channel.onopen=()=>{this.sender.send(this.file,this.channel)};try{await this.processLocal(o.JingleAction.SessionInitiate,async()=>{const t=await this.pc.createOffer({offerToReceiveAudio:!1,offerToReceiveVideo:!1}),n=(0,l.importFromSDP)(t.sdp),i=(0,u.convertIntermediateToRequest)(n,this.role,this.transportType);this.contentName=i.contents[0].name,i.sid=this.sid,i.action=o.JingleAction.SessionInitiate,i.contents[0].application={applicationType:a.NS_JINGLE_FILE_TRANSFER_5,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),await this.pc.setLocalDescription(t)}),t()}catch(e){return this._log("error","Could not create WebRTC offer",e),this.end("failed-application",!0)}}async accept(e){this._log("info","Accepted incoming session"),this.role="responder",this.state="active",e=e||(()=>{});try{await this.processLocal(o.JingleAction.SessionAccept,async()=>{const e=await this.pc.createAnswer(),t=(0,l.importFromSDP)(e.sdp),n=(0,u.convertIntermediateToRequest)(t,this.role,this.transportType);n.sid=this.sid,n.action="session-accept";for(const e of n.contents)e.creator="initiator";this.contentName=n.contents[0].name,this.send("session-accept",n),await this.pc.setLocalDescription(e),await this.processBufferedCandidates()}),e()}catch(e){this._log("error","Could not create WebRTC answer",e),this.end("failed-application")}}async onSessionInitiate(e,t){this._log("info","Initiating incoming session"),this.role="responder",this.state="pending",this.transportType=e.contents[0].transport.transportType;const n=(0,u.convertRequestToIntermediate)(e,this.peerRole),i=(0,l.exportToSDP)(n),r=e.contents[0].application,s=r.file.hashesUsed?r.file.hashesUsed:r.file.hashes||[];this.receiver=new h({hash:s[0]&&s[0].algorithm}),this.receiver.on("progress",(e,t)=>{this._log("info","Receive progress "+e+"/"+t)}),this.receiver.on("receivedFile",e=>{this.receivedFile=e,this._maybeReceivedFile()}),this.receiver.metadata=r.file,this.pc.addEventListener("datachannel",e=>{this.channel=e.channel,this.receiver.receive(this.receiver.metadata,e.channel)});try{await this.pc.setRemoteDescription({type:"offer",sdp:i}),await this.processBufferedCandidates(),t()}catch(e){this._log("error","Could not create WebRTC answer",e),t({condition:"general-error"})}}onSessionInfo(e,t){const n=e.info;n&&n.file&&n.file.hashes&&(this.receiver.metadata.hashes=n.file.hashes,this.receiver.metadata.actualhash&&this._maybeReceivedFile(),t())}_maybeReceivedFile(){if(this.receiver.metadata.hashes&&this.receiver.metadata.hashes.length){for(const e of this.receiver.metadata.hashes||[])if(e.value&&e.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");this._log("error","File hash does not match"),this.end("media-error")}}}t.default=p},function(e,t,n){"use strict";const i={generateIdentifier:function(){return Math.random().toString(36).substring(2,12)}};i.localCName=i.generateIdentifier(),i.splitLines=function(e){return e.trim().split("\n").map(e=>e.trim())},i.splitSections=function(e){return e.split("\nm=").map((e,t)=>(t>0?"m="+e:e).trim()+"\r\n")},i.getDescription=function(e){const t=i.splitSections(e);return t&&t[0]},i.getMediaSections=function(e){const t=i.splitSections(e);return t.shift(),t},i.matchPrefix=function(e,t){return i.splitLines(e).filter(e=>0===e.indexOf(t))},i.parseCandidate=function(e){let t;t=0===e.indexOf("a=candidate:")?e.substring(12).split(" "):e.substring(10).split(" ");const n={foundation:t[0],component:{1:"rtp",2:"rtcp"}[t[1]]||t[1],protocol:t[2].toLowerCase(),priority:parseInt(t[3],10),ip:t[4],address:t[4],port:parseInt(t[5],10),type:t[7]};for(let e=8;e<t.length;e+=2)switch(t[e]){case"raddr":n.relatedAddress=t[e+1];break;case"rport":n.relatedPort=parseInt(t[e+1],10);break;case"tcptype":n.tcpType=t[e+1];break;case"ufrag":n.ufrag=t[e+1],n.usernameFragment=t[e+1];break;default:void 0===n[t[e]]&&(n[t[e]]=t[e+1])}return n},i.writeCandidate=function(e){const t=[];t.push(e.foundation);const n=e.component;"rtp"===n?t.push(1):"rtcp"===n?t.push(2):t.push(n),t.push(e.protocol.toUpperCase()),t.push(e.priority),t.push(e.address||e.ip),t.push(e.port);const i=e.type;return t.push("typ"),t.push(i),"host"!==i&&e.relatedAddress&&e.relatedPort&&(t.push("raddr"),t.push(e.relatedAddress),t.push("rport"),t.push(e.relatedPort)),e.tcpType&&"tcp"===e.protocol.toLowerCase()&&(t.push("tcptype"),t.push(e.tcpType)),(e.usernameFragment||e.ufrag)&&(t.push("ufrag"),t.push(e.usernameFragment||e.ufrag)),"candidate:"+t.join(" ")},i.parseIceOptions=function(e){return e.substring(14).split(" ")},i.parseRtpMap=function(e){let t=e.substring(9).split(" ");const n={payloadType:parseInt(t.shift(),10)};return t=t[0].split("/"),n.name=t[0],n.clockRate=parseInt(t[1],10),n.channels=3===t.length?parseInt(t[2],10):1,n.numChannels=n.channels,n},i.writeRtpMap=function(e){let t=e.payloadType;void 0!==e.preferredPayloadType&&(t=e.preferredPayloadType);const n=e.channels||e.numChannels||1;return"a=rtpmap:"+t+" "+e.name+"/"+e.clockRate+(1!==n?"/"+n:"")+"\r\n"},i.parseExtmap=function(e){const t=e.substring(9).split(" ");return{id:parseInt(t[0],10),direction:t[0].indexOf("/")>0?t[0].split("/")[1]:"sendrecv",uri:t[1],attributes:t.slice(2).join(" ")}},i.writeExtmap=function(e){return"a=extmap:"+(e.id||e.preferredId)+(e.direction&&"sendrecv"!==e.direction?"/"+e.direction:"")+" "+e.uri+(e.attributes?" "+e.attributes:"")+"\r\n"},i.parseFmtp=function(e){const t={};let n;const i=e.substring(e.indexOf(" ")+1).split(";");for(let e=0;e<i.length;e++)n=i[e].trim().split("="),t[n[0].trim()]=n[1];return t},i.writeFmtp=function(e){let t="",n=e.payloadType;if(void 0!==e.preferredPayloadType&&(n=e.preferredPayloadType),e.parameters&&Object.keys(e.parameters).length){const i=[];Object.keys(e.parameters).forEach(t=>{void 0!==e.parameters[t]?i.push(t+"="+e.parameters[t]):i.push(t)}),t+="a=fmtp:"+n+" "+i.join(";")+"\r\n"}return t},i.parseRtcpFb=function(e){const t=e.substring(e.indexOf(" ")+1).split(" ");return{type:t.shift(),parameter:t.join(" ")}},i.writeRtcpFb=function(e){let t="",n=e.payloadType;return void 0!==e.preferredPayloadType&&(n=e.preferredPayloadType),e.rtcpFeedback&&e.rtcpFeedback.length&&e.rtcpFeedback.forEach(e=>{t+="a=rtcp-fb:"+n+" "+e.type+(e.parameter&&e.parameter.length?" "+e.parameter:"")+"\r\n"}),t},i.parseSsrcMedia=function(e){const t=e.indexOf(" "),n={ssrc:parseInt(e.substring(7,t),10)},i=e.indexOf(":",t);return i>-1?(n.attribute=e.substring(t+1,i),n.value=e.substring(i+1)):n.attribute=e.substring(t+1),n},i.parseSsrcGroup=function(e){const t=e.substring(13).split(" ");return{semantics:t.shift(),ssrcs:t.map(e=>parseInt(e,10))}},i.getMid=function(e){const t=i.matchPrefix(e,"a=mid:")[0];if(t)return t.substring(6)},i.parseFingerprint=function(e){const t=e.substring(14).split(" ");return{algorithm:t[0].toLowerCase(),value:t[1].toUpperCase()}},i.getDtlsParameters=function(e,t){return{role:"auto",fingerprints:i.matchPrefix(e+t,"a=fingerprint:").map(i.parseFingerprint)}},i.writeDtlsParameters=function(e,t){let n="a=setup:"+t+"\r\n";return e.fingerprints.forEach(e=>{n+="a=fingerprint:"+e.algorithm+" "+e.value+"\r\n"}),n},i.parseCryptoLine=function(e){const t=e.substring(9).split(" ");return{tag:parseInt(t[0],10),cryptoSuite:t[1],keyParams:t[2],sessionParams:t.slice(3)}},i.writeCryptoLine=function(e){return"a=crypto:"+e.tag+" "+e.cryptoSuite+" "+("object"==typeof e.keyParams?i.writeCryptoKeyParams(e.keyParams):e.keyParams)+(e.sessionParams?" "+e.sessionParams.join(" "):"")+"\r\n"},i.parseCryptoKeyParams=function(e){if(0!==e.indexOf("inline:"))return null;const t=e.substring(7).split("|");return{keyMethod:"inline",keySalt:t[0],lifeTime:t[1],mkiValue:t[2]?t[2].split(":")[0]:void 0,mkiLength:t[2]?t[2].split(":")[1]:void 0}},i.writeCryptoKeyParams=function(e){return e.keyMethod+":"+e.keySalt+(e.lifeTime?"|"+e.lifeTime:"")+(e.mkiValue&&e.mkiLength?"|"+e.mkiValue+":"+e.mkiLength:"")},i.getCryptoParameters=function(e,t){return i.matchPrefix(e+t,"a=crypto:").map(i.parseCryptoLine)},i.getIceParameters=function(e,t){const n=i.matchPrefix(e+t,"a=ice-ufrag:")[0],r=i.matchPrefix(e+t,"a=ice-pwd:")[0];return n&&r?{usernameFragment:n.substring(12),password:r.substring(10)}:null},i.writeIceParameters=function(e){let t="a=ice-ufrag:"+e.usernameFragment+"\r\na=ice-pwd:"+e.password+"\r\n";return e.iceLite&&(t+="a=ice-lite\r\n"),t},i.parseRtpParameters=function(e){const t={codecs:[],headerExtensions:[],fecMechanisms:[],rtcp:[]},n=i.splitLines(e)[0].split(" ");t.profile=n[2];for(let r=3;r<n.length;r++){const s=n[r],o=i.matchPrefix(e,"a=rtpmap:"+s+" ")[0];if(o){const n=i.parseRtpMap(o),r=i.matchPrefix(e,"a=fmtp:"+s+" ");switch(n.parameters=r.length?i.parseFmtp(r[0]):{},n.rtcpFeedback=i.matchPrefix(e,"a=rtcp-fb:"+s+" ").map(i.parseRtcpFb),t.codecs.push(n),n.name.toUpperCase()){case"RED":case"ULPFEC":t.fecMechanisms.push(n.name.toUpperCase())}}}i.matchPrefix(e,"a=extmap:").forEach(e=>{t.headerExtensions.push(i.parseExtmap(e))});const r=i.matchPrefix(e,"a=rtcp-fb:* ").map(i.parseRtcpFb);return t.codecs.forEach(e=>{r.forEach(t=>{e.rtcpFeedback.find(e=>e.type===t.type&&e.parameter===t.parameter)||e.rtcpFeedback.push(t)})}),t},i.writeRtpDescription=function(e,t){let n="";n+="m="+e+" ",n+=t.codecs.length>0?"9":"0",n+=" "+(t.profile||"UDP/TLS/RTP/SAVPF")+" ",n+=t.codecs.map(e=>void 0!==e.preferredPayloadType?e.preferredPayloadType:e.payloadType).join(" ")+"\r\n",n+="c=IN IP4 0.0.0.0\r\n",n+="a=rtcp:9 IN IP4 0.0.0.0\r\n",t.codecs.forEach(e=>{n+=i.writeRtpMap(e),n+=i.writeFmtp(e),n+=i.writeRtcpFb(e)});let r=0;return t.codecs.forEach(e=>{e.maxptime>r&&(r=e.maxptime)}),r>0&&(n+="a=maxptime:"+r+"\r\n"),t.headerExtensions&&t.headerExtensions.forEach(e=>{n+=i.writeExtmap(e)}),n},i.parseRtpEncodingParameters=function(e){const t=[],n=i.parseRtpParameters(e),r=-1!==n.fecMechanisms.indexOf("RED"),s=-1!==n.fecMechanisms.indexOf("ULPFEC"),o=i.matchPrefix(e,"a=ssrc:").map(e=>i.parseSsrcMedia(e)).filter(e=>"cname"===e.attribute),a=o.length>0&&o[0].ssrc;let c;const l=i.matchPrefix(e,"a=ssrc-group:FID").map(e=>e.substring(17).split(" ").map(e=>parseInt(e,10)));l.length>0&&l[0].length>1&&l[0][0]===a&&(c=l[0][1]),n.codecs.forEach(e=>{if("RTX"===e.name.toUpperCase()&&e.parameters.apt){let n={ssrc:a,codecPayloadType:parseInt(e.parameters.apt,10)};a&&c&&(n.rtx={ssrc:c}),t.push(n),r&&(n=JSON.parse(JSON.stringify(n)),n.fec={ssrc:a,mechanism:s?"red+ulpfec":"red"},t.push(n))}}),0===t.length&&a&&t.push({ssrc:a});let u=i.matchPrefix(e,"b=");return u.length&&(u=0===u[0].indexOf("b=TIAS:")?parseInt(u[0].substring(7),10):0===u[0].indexOf("b=AS:")?1e3*parseInt(u[0].substring(5),10)*.95-16e3:void 0,t.forEach(e=>{e.maxBitrate=u})),t},i.parseRtcpParameters=function(e){const t={},n=i.matchPrefix(e,"a=ssrc:").map(e=>i.parseSsrcMedia(e)).filter(e=>"cname"===e.attribute)[0];n&&(t.cname=n.value,t.ssrc=n.ssrc);const r=i.matchPrefix(e,"a=rtcp-rsize");t.reducedSize=r.length>0,t.compound=0===r.length;const s=i.matchPrefix(e,"a=rtcp-mux");return t.mux=s.length>0,t},i.writeRtcpParameters=function(e){let t="";return e.reducedSize&&(t+="a=rtcp-rsize\r\n"),e.mux&&(t+="a=rtcp-mux\r\n"),void 0!==e.ssrc&&e.cname&&(t+="a=ssrc:"+e.ssrc+" cname:"+e.cname+"\r\n"),t},i.parseMsid=function(e){let t;const n=i.matchPrefix(e,"a=msid:");if(1===n.length)return t=n[0].substring(7).split(" "),{stream:t[0],track:t[1]};const r=i.matchPrefix(e,"a=ssrc:").map(e=>i.parseSsrcMedia(e)).filter(e=>"msid"===e.attribute);return r.length>0?(t=r[0].value.split(" "),{stream:t[0],track:t[1]}):void 0},i.parseSctpDescription=function(e){const t=i.parseMLine(e),n=i.matchPrefix(e,"a=max-message-size:");let r;n.length>0&&(r=parseInt(n[0].substring(19),10)),isNaN(r)&&(r=65536);const s=i.matchPrefix(e,"a=sctp-port:");if(s.length>0)return{port:parseInt(s[0].substring(12),10),protocol:t.fmt,maxMessageSize:r};const o=i.matchPrefix(e,"a=sctpmap:");if(o.length>0){const e=o[0].substring(10).split(" ");return{port:parseInt(e[0],10),protocol:e[1],maxMessageSize:r}}},i.writeSctpDescription=function(e,t){let n=[];return n="DTLS/SCTP"!==e.protocol?["m="+e.kind+" 9 "+e.protocol+" "+t.protocol+"\r\n","c=IN IP4 0.0.0.0\r\n","a=sctp-port:"+t.port+"\r\n"]:["m="+e.kind+" 9 "+e.protocol+" "+t.port+"\r\n","c=IN IP4 0.0.0.0\r\n","a=sctpmap:"+t.port+" "+t.protocol+" 65535\r\n"],void 0!==t.maxMessageSize&&n.push("a=max-message-size:"+t.maxMessageSize+"\r\n"),n.join("")},i.generateSessionId=function(){return Math.random().toString().substr(2,22)},i.writeSessionBoilerplate=function(e,t,n){let r;const s=void 0!==t?t:2;r=e||i.generateSessionId();return"v=0\r\no="+(n||"thisisadapterortc")+" "+r+" "+s+" IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\n"},i.getDirection=function(e,t){const n=i.splitLines(e);for(let e=0;e<n.length;e++)switch(n[e]){case"a=sendrecv":case"a=sendonly":case"a=recvonly":case"a=inactive":return n[e].substring(2)}return t?i.getDirection(t):"sendrecv"},i.getKind=function(e){return i.splitLines(e)[0].split(" ")[0].substring(2)},i.isRejected=function(e){return"0"===e.split(" ",2)[1]},i.parseMLine=function(e){const t=i.splitLines(e)[0].substring(2).split(" ");return{kind:t[0],port:parseInt(t[1],10),protocol:t[2],fmt:t.slice(3).join(" ")}},i.parseOLine=function(e){const t=i.matchPrefix(e,"o=")[0].substring(2).split(" ");return{username:t[0],sessionId:t[1],sessionVersion:parseInt(t[2],10),netType:t[3],addressType:t[4],address:t[5]}},i.isValidSDP=function(e){if("string"!=typeof e||0===e.length)return!1;const t=i.splitLines(e);for(let e=0;e<t.length;e++)if(t[e].length<2||"="!==t[e].charAt(1))return!1;return!0},e.exports=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(6),r=n(8),s=(0,i.__importDefault)(n(60)),o=n(37),a=n(61);function c(e){const t=e.application;if(t.streams&&t.streams.length&&t.sources&&t.sources.length){const e=t.streams[0];t.sources[0].parameters.msid=`${e.id} ${e.track}`,t.sourceGroups&&t.sourceGroups.length>0&&t.sources.push({parameters:{cname:t.sources[0].parameters.cname,msid:`${e.id} ${e.track}`},ssrc:t.sourceGroups[0].sources[1]})}}class l extends s.default{constructor(e){if(super(e),this.includesAudio=!1,this.includesVideo=!1,this._ringing=!1,this.pc.addEventListener("track",e=>{this.onAddTrack(e.track,e.streams[0])}),e.stream)for(const t of e.stream.getTracks())this.addTrack(t,e.stream)}get ringing(){return this._ringing}set ringing(e){e!==this._ringing&&(this._ringing=e)}get streams(){return"closed"!==this.pc.signalingState?this.pc.getRemoteStreams():[]}async start(e,t){this.state="pending",1===arguments.length&&"function"==typeof e&&(t=e,e={}),t=t||(()=>{}),e=e||{},this.role="initiator",this.offerOptions=e;try{await this.processLocal(r.JingleAction.SessionInitiate,async()=>{const t=await this.pc.createOffer(e),n=(0,o.importFromSDP)(t.sdp),i=(0,a.convertIntermediateToRequest)(n,this.role,this.transportType);i.sid=this.sid,i.action=r.JingleAction.SessionInitiate;for(const e of i.contents||[])e.creator="initiator",c(e);await this.pc.setLocalDescription(t),this.send("session-initiate",i)}),t()}catch(e){this._log("error","Could not create WebRTC offer",e),this.end("failed-application",!0)}}async accept(e,t){1===arguments.length&&"function"==typeof e&&(t=e,e={}),t=t||(()=>{}),e=e||{},this._log("info","Accepted incoming session"),this.state="active",this.role="responder";try{await this.processLocal(r.JingleAction.SessionAccept,async()=>{const t=await this.pc.createAnswer(e),n=(0,o.importFromSDP)(t.sdp),i=(0,a.convertIntermediateToRequest)(n,this.role,this.transportType);i.sid=this.sid,i.action=r.JingleAction.SessionAccept;for(const e of i.contents||[])e.creator="initiator";await this.pc.setLocalDescription(t),await this.processBufferedCandidates(),this.send("session-accept",i)}),t()}catch(e){this._log("error","Could not create WebRTC answer",e),this.end("failed-application")}}end(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"success",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];for(const e of this.pc.getReceivers())this.onRemoveTrack(e.track);super.end(e,t)}ring(){return this.processLocal("ring",async()=>{this._log("info","Ringing on incoming session"),this.ringing=!0,this.send(r.JingleAction.SessionInfo,{info:{infoType:r.JINGLE_INFO_RINGING}})})}mute(e,t){return this.processLocal("mute",async()=>{this._log("info","Muting",t),this.send(r.JingleAction.SessionInfo,{info:{creator:e,infoType:r.JINGLE_INFO_MUTE,name:t}})})}unmute(e,t){return this.processLocal("unmute",async()=>{this._log("info","Unmuting",t),this.send(r.JingleAction.SessionInfo,{info:{creator:e,infoType:r.JINGLE_INFO_UNMUTE,name:t}})})}hold(){return this.processLocal("hold",async()=>{this._log("info","Placing on hold"),this.send("session-info",{info:{infoType:r.JINGLE_INFO_HOLD}})})}resume(){return this.processLocal("resume",async()=>{this._log("info","Resuming from hold"),this.send("session-info",{info:{infoType:r.JINGLE_INFO_ACTIVE}})})}addTrack(e,t,n){return"audio"===e.kind&&(this.includesAudio=!0),"video"===e.kind&&(this.includesVideo=!0),this.processLocal("addtrack",async()=>{this.pc.addTrack?this.pc.addTrack(e,t):this.pc.addStream(t),n&&n()})}async removeTrack(e,t){return this.processLocal("removetrack",async()=>{if(this.pc.removeTrack(e),t)return t()})}onAddTrack(e,t){this._log("info","Track added"),this.parent.emit("peerTrackAdded",this,e,t)}onRemoveTrack(e){this._log("info","Track removed"),this.parent.emit("peerTrackRemoved",this,e)}async onSessionInitiate(e,t){this._log("info","Initiating incoming session"),this.state="pending",this.role="responder",this.transportType=e.contents[0].transport.transportType;const n=(0,a.convertRequestToIntermediate)(e,this.peerRole);for(const e of n.media)"audio"===e.kind&&(this.includesAudio=!0),"video"===e.kind&&(this.includesVideo=!0),e.streams||(e.streams=[{stream:"legacy",track:e.kind}]);const i=(0,o.exportToSDP)(n);try{return await this.pc.setRemoteDescription({type:"offer",sdp:i}),await this.processBufferedCandidates(),t()}catch(e){return this._log("error","Could not create WebRTC answer",e),t({condition:"general-error"})}}onSessionTerminate(e,t){for(const e of this.pc.getReceivers())this.onRemoveTrack(e.track);super.onSessionTerminate(e,t)}onSessionInfo(e,t){const n=e.info||{infoType:""};switch(n.infoType){case r.JINGLE_INFO_RINGING:return this._log("info","Outgoing session is ringing"),this.ringing=!0,this.parent.emit("ringing",this),t();case r.JINGLE_INFO_HOLD:return this._log("info","On hold"),this.parent.emit("hold",this),t();case r.JINGLE_INFO_UNHOLD:case r.JINGLE_INFO_ACTIVE:return this._log("info","Resuming from hold"),this.parent.emit("resumed",this),t();case r.JINGLE_INFO_MUTE:return this._log("info","Muting",n),this.parent.emit("mute",this,n),t();case r.JINGLE_INFO_UNMUTE:return this._log("info","Unmuting",n),this.parent.emit("unmute",this,n),t()}return t()}}t.default=l},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=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){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||s(t,e,n)},a=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,s){function o(e){try{c(i.next(e))}catch(e){s(e)}}function a(e){try{c(i.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,a)}c((i=i.apply(e,t||[])).next())}))},c=this&&this.__generator||function(e,t){var n,i,r,s,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(o=0)),o;)try{if(n=1,i&&(r=2&a[0]?i.return:a[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,a[1])).done)return r;switch(i=0,r&&(a=[2&a[0],r.value]),a[0]){case 0:case 1:r=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,i=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]<r[3])){o.label=a[1];break}if(6===a[0]&&o.label<r[1]){o.label=r[1],r=a;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(a);break}r[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],i=0}finally{n=r=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(t,"__esModule",{value:!0});var l,u=n(10);o(n(291),t);var d=function(e){function t(t,n){void 0===n&&(n={});var i=e.call(this)||this;return i.peerConnection=t,i.haveConnectionMetrics=!1,i.statsArr=[],l="undefined"!=typeof window,i.session=n.session,i.initiator=n.initiator,i.conference=n.conference,i.statsInterval=1e3*(n.interval||5),i.logger=n.logger||console,["new","checking"].includes(t.iceConnectionState)&&("checking"===t.iceConnectionState&&(i.logger.warn("iceConnectionState is already in checking state so ice connect time may not be accurate"),i.handleIceStateChange()),t.addEventListener("iceconnectionstatechange",i.handleIceStateChange.bind(i))),t.addEventListener("connectionstatechange",i.handleConnectionStateChange.bind(i)),"connected"===t.connectionState&&i.pollForStats(),i}return r(t,e),t.prototype.handleIceStateChange=function(){var e=this,t=this.peerConnection.iceConnectionState;if("checking"===t&&l&&(this.iceStartTime=window.performance.now()),"connected"===t){if(this.haveConnectionMetrics)return;this.haveConnectionMetrics=!0;var n=void 0,i=void 0,r=void 0;l&&(this.iceConnectionTime=window.performance.now()-this.iceStartTime,n=window.navigator.userAgent,i=window.navigator.platform,r=window.navigator.hardwareConcurrency);var s={name:"connect",userAgent:n,platform:i,cores:r,session:this.session,conference:this.conference,connectTime:this.iceConnectionTime};return this.waitForSelectedCandidatePair().then((function(t){e.gatherSelectedCandidateInfo(t,s),e.emit("stats",s)}))}if("failed"===t)return l&&(this.iceFailedTime=window.performance.now()-this.iceStartTime),this.gatherStats().then((function(){var t={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},n=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){t["numLocal"+e+"Candidates"]=n.filter((function(t){return t.split(" ")[7]===e.toLowerCase()})).length,t["numRemote"+e+"Candidates"]=i.filter((function(t){return t.split(" ")[7]===e.toLowerCase()})).length})),e.emit("stats",t)}))},t.prototype.waitForSelectedCandidatePair=function(e,t){var n=this;return void 0===e&&(e=300),void 0===t&&(t=1),this.gatherStats().then((function(i){return n.getSelectedCandidatePair(i)?i:t>3?Promise.reject(new Error("Max wait attempts for connected candidate info reached")):new Promise((function(i,r){setTimeout((function(){return n.waitForSelectedCandidatePair(e,t+1).then(i,r)}),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 i,r,s=n.localCandidateId,o=n.remoteCandidateId;if(e.forEach((function(e){var n=e.value;s&&"local-candidate"===n.type&&n.id===s&&(i=n,t.localCandidateType=n.candidateType),o&&"remote-candidate"===n.type&&n.id===o&&(r=n,t.remoteCandidateType=n.candidateType)})),i&&r&&(t.candidatePair=i.candidateType+";"+r.candidateType,t.candidatePairDetails={local:i,remote:r,pair:n}),i){if(t.transport=i.transport||i.protocol,i.priority){var a=parseInt(i.priority,10);t.turnType={2:"udp",1:"tcp",0:"tls"}[a>>24],t.networkType=i.networkType}t.usingIPv6=i.ipAddress&&0===i.ipAddress.indexOf("[")}}},t.prototype.handleConnectionStateChange=function(){return a(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","failed"].includes(e)&&this.pollingInterval&&(l&&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){if(0!==t.length){var n=e.createStatsReport(t,!0);(n.tracks.length>0||n.remoteTracks.length>0)&&e.checkBitrate(n)&&e.emit("stats",n)}else e.logger.warn("Empty stats gathered, ignoring and not emitting stats")}))};l&&(window.setTimeout(t,0),this.pollingInterval=window.setInterval(t,this.statsInterval))}},t.prototype.checkBitrate=function(e){var t;return e.remoteTracks.length&&0!==(null===(t=e.remoteTracks[0])||void 0===t?void 0:t.bitrate)?(this.statsArr=[],!0):!(this.statsArr.length>=5)&&(this.statsArr.push(e),!0)},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 a(this,void 0,void 0,(function(){var e;return c(this,(function(t){switch(t.label){case 0:return t.trys.push([0,4,,5]),["connecting","connected"].includes(this.peerConnection.connectionState)?[4,this.peerConnection.getStats(null).then(this.polyFillStats.bind(this))]:[3,2];case 1:return[2,t.sent()];case 2:return"closed"===this.peerConnection.connectionState?(this.pollingInterval&&(l&&window.clearInterval(this.pollingInterval),this.pollingInterval=null),[2,[]]):[2,[]];case 3:return[3,5];case 4: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 5:return[2]}}))}))},t.prototype.createStatsReport=function(e,t){var n=this;void 0===t&&(t=!0);var i={name:"getStats",session:this.session,initiator:this.initiator,conference:this.conference,tracks:[],remoteTracks:[]};if(0===e.length)return i;e.filter((function(e){return["inbound-rtp","outbound-rtp"].indexOf(e.value.type)>-1})).forEach((function(t){n.processSource({source:t.value,event:i,results:e})}));var r=e.find((function(e){return"candidate-pair"===e.value.type&&"succeeded"===e.value.state&&!0===e.value.nominated}));return r&&this.processSelectedCandidatePair({report:r.value,event:i,results:e}),t&&(this.lastResult=e),i},t.prototype.processSource=function(e){var t,n,i,r,s,o,a,c=e.source,l=e.results,u=e.event,d=new Date(c.timestamp),p=this.lastResult&&this.lastResult.find((function(e){return e.key===c.id}));(p=p&&p.value)&&(t=(t=this.lastResult&&this.lastResult.find((function(e){return e.value.localId===p.id})))&&t.value),l.forEach((function(e){e.value.localId===c.id?n=e.value:e.key===c.transportId?i=e.value:e.key===c.trackId?s=e.value:e.key===c.mediaSourceId?o=e.value:e.key===c.codecId&&(a=e.value)})),i&&(r=(r=l.find((function(e){return e.key===i.selectedCandidatePairId})))&&r.value),r&&(u.candidatePairHadActiveSource=!0);var f=c.kind||c.mediaType,m="outbound-rtp"===c.type,g={track:s&&s.trackIdentifier,kind:f,jitter:h("jitter",c,n),roundTripTime:h("roundTripTime",c,n),packetsLost:h("packetsLost",c,n)||0,packetLoss:0,bytes:parseInt(m?c.bytesSent:c.bytesReceived,10)||0};if(a&&(g.codec="".concat(a.payloadType," ").concat(a.mimeType," ").concat(a.clockRate)),p){var y=parseInt(m?p.bytesSent:p.bytesReceived,10)||0,v=d.getTime()-new Date(p.timestamp).getTime();g.bitrate=Math.floor(8*(g.bytes-y)/v)}var b=h("packetsLost",p,t);m?(g.packetsSent=c.packetsSent,g.packetLoss=g.packetsLost/(g.packetsSent||1)*100,p&&(g.intervalPacketsSent=g.packetsSent-(p.packetsSent||0),g.intervalPacketsLost=g.packetsLost-(b||0),g.intervalPacketLoss=g.intervalPacketsLost/(g.intervalPacketsSent||1)*100),g.retransmittedBytesSent=c.retransmittedBytesSent,g.retransmittedPacketsSent=c.retransmittedPacketsSent):(g.packetsReceived=c.packetsReceived,g.packetLoss=g.packetsLost/(g.packetsReceived||1)*100,p&&(g.intervalPacketsReceived=g.packetsReceived-p.packetsReceived,g.intervalPacketsLost=g.packetsLost-b,g.intervalPacketLoss=g.intervalPacketsLost/(g.intervalPacketsReceived||1)*100)),s&&"audio"===f&&(s.remoteSource?(g.audioLevel=s.audioLevel,g.totalAudioEnergy=s.totalAudioEnergy):(g.echoReturnLoss=s.echoReturnLoss,g.echoReturnLossEnhancement=s.echoReturnLossEnhancement)),"audio"!==f||!o||s&&s.remoteSource||(g.audioLevel=o.audioLevel,g.totalAudioEnergy=o.totalAudioEnergy),Object.keys(g).forEach((function(e){return void 0===g[e]&&delete g[e]})),m?u.tracks.push(g):u.remoteTracks.push(g)},t.prototype.processSelectedCandidatePair=function(e){var t=this,n=e.report,i=e.event,r=e.results,s=n.localCandidateId,o=n.remoteCandidateId;i.localCandidateChanged=!!this.lastActiveLocalCandidate&&s!==this.lastActiveLocalCandidate.id,i.remoteCandidateChanged=!!this.lastActiveRemoteCandidate&&o!==this.lastActiveRemoteCandidate.id,(!this.lastActiveLocalCandidate||i.localCandidateChanged||i.remoteCandidateChanged)&&r.forEach((function(e){t.checkLastActiveCandidate({localId:s,remoteId:o,report:e.value})})),this.lastActiveLocalCandidate&&(i.networkType=this.lastActiveLocalCandidate.networkType,this.lastActiveRemoteCandidate&&(i.candidatePair=this.lastActiveLocalCandidate.candidateType+";"+this.lastActiveRemoteCandidate.candidateType)),i.bytesSent=n.bytesSent,i.bytesReceived=n.bytesReceived,i.requestsReceived=n.requestsReceived,i.requestsSent=n.requestsSent,i.responsesReceived=n.responsesReceived,i.responsesSent=n.responsesSent,i.consentRequestsSent=n.consentRequestsSent,i.totalRoundTripTime=n.totalRoundTripTime},t.prototype.checkLastActiveCandidate=function(e){var t=e.localId,n=e.remoteId,i=e.report;t&&"local-candidate"===i.type&&i.id===t&&(this.lastActiveLocalCandidate=i),n&&"remote-candidate"===i.type&&i.id===n&&(this.lastActiveRemoteCandidate=i)},t}(u.EventEmitter);function h(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var i=t.find((function(t){return t&&(t[e]||0===t[e])}));return i&&i[e]}t.default=d},function(e,t,n){"use strict";n.r(t),n.d(t,"Axios",(function(){return r})),n.d(t,"AxiosError",(function(){return s})),n.d(t,"CanceledError",(function(){return o})),n.d(t,"isCancel",(function(){return a})),n.d(t,"CancelToken",(function(){return c})),n.d(t,"VERSION",(function(){return l})),n.d(t,"all",(function(){return u})),n.d(t,"Cancel",(function(){return d})),n.d(t,"isAxiosError",(function(){return h})),n.d(t,"spread",(function(){return p})),n.d(t,"toFormData",(function(){return f})),n.d(t,"AxiosHeaders",(function(){return m})),n.d(t,"HttpStatusCode",(function(){return g})),n.d(t,"formToJSON",(function(){return y})),n.d(t,"getAdapter",(function(){return v})),n.d(t,"mergeConfig",(function(){return b}));var i=n(70);n.d(t,"default",(function(){return i.a}));const{Axios:r,AxiosError:s,CanceledError:o,isCancel:a,CancelToken:c,VERSION:l,all:u,Cancel:d,isAxiosError:h,spread:p,toFormData:f,AxiosHeaders:m,HttpStatusCode:g,formToJSON:y,getAdapter:v,mergeConfig:b}=i.a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(10),r=Math.pow(2,32),s=(e,t)=>(e%t+t)%t;class o extends i.EventEmitter{constructor(){super(),this.allowResume=!0,this.lastAck=0,this.handled=0,this.unacked=[],this.inboundStarted=!1,this.outboundStarted=!1,this.id=void 0,this.jid=void 0,this.allowResume=!0,this.started=!1,this.cacheHandler=()=>{},this._reset()}get started(){return this.outboundStarted&&this.inboundStarted}set started(e){e||(this.outboundStarted=!1,this.inboundStarted=!1)}get resumable(){return this.started&&this.allowResume}load(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)}cache(e){this.cacheHandler=e}async bind(e){this.jid=e,await this._cache()}async enable(){this.emit("send",{allowResumption:this.allowResume,type:"enable"})}async resume(){this.emit("send",{handled:this.handled,previousSession:this.id,type:"resume"})}async enabled(e){this.id=e.id,this.allowResume=e.resume||!1,this.handled=0,this.inboundStarted=!0,await this._cache()}async resumed(e){this.id=e.previousSession,this.inboundStarted=!0,await this.process(e,!0),await this._cache()}async failed(e){await this.process(e);for(const[e,t]of this.unacked)this.emit("failed",{kind:e,stanza:t});this._reset(),await this._cache()}ack(){this.emit("send",{handled:this.handled,type:"ack"})}request(){this.emit("send",{type:"request"})}async process(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(void 0===e.handled)return;const n=s(e.handled-this.lastAck,r);for(let e=0;e<n&&this.unacked.length>0;e++){const[e,t]=this.unacked.shift();this.emit("acked",{kind:e,stanza:t})}if(this.lastAck=e.handled,t){const e=this.unacked;if(this.unacked=[],e.length){this.emit("begin-resend");for(const[t,n]of e)this.emit("resend",{kind:t,stanza:n});this.emit("end-resend")}}await this._cache()}async track(e,t){const n="enable"===t.type;return"sm"!==e||!n&&"resume"!==t.type?!!this.outboundStarted&&(("message"===e||"presence"===e||"iq"===e)&&(this.unacked.push([e,t]),await this._cache(),!0)):(n&&(this.handled=0),this.outboundStarted=!0,await this._cache(),!1)}async handle(){this.inboundStarted&&(this.handled=s(this.handled+1,r),await this._cache())}async hibernate(){if(!this.resumable)return this.shutdown();for(const[e,t]of this.unacked)this.emit("hibernated",{kind:e,stanza:t})}async shutdown(){return this.failed({type:"failed"})}async _cache(){try{await this.cacheHandler({allowResume:this.allowResume,handled:this.handled,id:this.id,jid:this.jid,lastAck:this.lastAck,unacked:this.unacked})}catch(e){console.error("Failed to cache stream state",e)}}_reset(){this.id="",this.inboundStarted=!1,this.outboundStarted=!1,this.lastAck=0,this.handled=0,this.unacked=[]}}t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SCRAM=t.DIGEST=t.OAUTH=t.PLAIN=t.EXTERNAL=t.ANONYMOUS=t.Hi=t.HMAC=t.H=t.XOR=t.createClientNonce=t.Factory=t.SimpleMech=void 0;const i=n(12),r=n(89);class s{constructor(e){this.authenticated=!1,this.mutuallyAuthenticated=!1,this.name=e}getCacheableCredentials(){return null}processChallenge(e){}processSuccess(e){this.authenticated=!0}finalize(){const e={authenticated:this.authenticated,mutuallyAuthenticated:this.mutuallyAuthenticated};return this.errorData&&(e.errorData=this.errorData),e}}t.SimpleMech=s;function o(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32;return(0,i.randomBytes)(e).toString("hex")}function a(e,t){const n=[];for(let i=0;i<e.length;i++)n.push(e[i]^t[i]);return i.Buffer.from(n)}function c(e,t){return(0,i.createHash)(t).update(e).digest()}function l(e,t,n){return(0,i.createHmac)(n,e).update(t).digest()}function u(e,t,n,r){let s=l(e,i.Buffer.concat([t,i.Buffer.from("00000001","hex")]),r),o=s;for(let t=0;t<n-1;t++)s=l(e,s,r),o=a(o,s);return o}function d(e){const t={},n=e.toString().split(/,(?=(?:[^"]|"[^"]*")*$)/);for(let e=0,i=n.length;e<i;e++){const i=/(\w+)=["]?([^"]+)["]?$/.exec(n[e]);i&&(t[i[1]]=i[2])}return t}function h(e){const t=[];for(const n of e)","===n?t.push("=2C"):"="===n?t.push("=3D"):t.push(n);return t.join("")}t.Factory=class{constructor(){this.mechanisms=[]}register(e,t,n){this.mechanisms.push({constructor:t,name:e.toUpperCase(),priority:n}),this.mechanisms.sort((e,t)=>t.priority-e.priority)}disable(e){const t=e.toUpperCase();this.mechanisms=this.mechanisms.filter(e=>e.name!==t)}createMechanism(e){const t=e.map(e=>e.toUpperCase());for(const e of this.mechanisms)for(const n of t)if(n===e.name)return new e.constructor(e.name);return null}},t.createClientNonce=o,t.XOR=a,t.H=c,t.HMAC=l,t.Hi=u;t.ANONYMOUS=class extends s{getExpectedCredentials(){return{optional:["trace"],required:[]}}createResponse(e){return i.Buffer.from(e.trace||"")}};t.EXTERNAL=class extends s{getExpectedCredentials(){return{optional:["authzid"],required:[]}}createResponse(e){return i.Buffer.from(e.authzid||"")}};t.PLAIN=class extends s{getExpectedCredentials(){return{optional:["authzid"],required:["username","password"]}}createResponse(e){return i.Buffer.from((e.authzid||"")+"\0"+e.username+"\0"+(e.password||e.token))}};t.OAUTH=class extends s{constructor(e){super(e),this.failed=!1,this.name=e}getExpectedCredentials(){return{optional:["authzid"],required:["token"]}}createResponse(e){if(this.failed)return i.Buffer.from("");const t=`n,${h((0,r.saslprep)(e.authzid))},`,n=`auth=Bearer ${e.token}`;return i.Buffer.from(t+""+n+"","utf8")}processChallenge(e){this.failed=!0,this.errorData=JSON.parse(e.toString("utf8"))}};t.DIGEST=class extends s{constructor(e){super(e),this.providesMutualAuthentication=!1,this.state="INITIAL",this.name=e}processChallenge(e){this.state="CHALLENGE";const t=d(e);this.authenticated=!!t.rspauth,this.realm=t.realm,this.nonce=t.nonce,this.charset=t.charset}getExpectedCredentials(){return{optional:["authzid","clientNonce","realm"],required:["host","password","serviceName","serviceType","username"]}}createResponse(e){if("INITIAL"===this.state||this.authenticated)return null;let t=e.serviceType+"/"+e.host;e.serviceName&&e.host!==e.serviceName&&(t+="/"+e.serviceName);const n=e.realm||this.realm||"",r=e.clientNonce||o(16),s="00000001";let a="";a+='username="'+e.username+'"',n&&(a+=',realm="'+n+'"'),a+=',nonce="'+this.nonce+'"',a+=',cnonce="'+r+'"',a+=",nc="+s,a+=",qop=auth",a+=',digest-uri="'+t+'"';const c=(0,i.createHash)("md5").update(e.username).update(":").update(n).update(":").update(e.password).digest(),l=(0,i.createHash)("md5").update(c).update(":").update(this.nonce).update(":").update(r);e.authzid&&l.update(":").update(e.authzid);const u=l.digest("hex"),d=(0,i.createHash)("md5").update("AUTHENTICATE:").update(t).digest("hex");return a+=",response="+(0,i.createHash)("md5").update(u).update(":").update(this.nonce).update(":").update(s).update(":").update(r).update(":").update("auth").update(":").update(d).digest("hex"),"utf-8"===this.charset&&(a+=",charset=utf-8"),e.authzid&&(a+=',authzid="'+e.authzid+'"'),i.Buffer.from(a)}};t.SCRAM=class{constructor(e){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]}getExpectedCredentials(){const e=["username","password"];return this.useChannelBinding&&e.push("tlsUnique"),{optional:["authzid","clientNonce"],required:e}}getCacheableCredentials(){return this.cache}createResponse(e){return"INITIAL"===this.state?this.initialResponse(e):this.challengeResponse(e)}processChallenge(e){const t=d(e);this.salt=i.Buffer.from(t.s||"","base64"),this.iterationCount=parseInt(t.i,10),this.nonce=t.r,this.verifier=t.v,this.error=t.e,this.challenge=e}processSuccess(e){this.processChallenge(e)}finalize(){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}}initialResponse(e){const t=h((0,r.saslprep)(e.authzid)),n=h((0,r.saslprep)(e.username));this.clientNonce=e.clientNonce||o();let s="n";e.tlsUnique&&(s=this.useChannelBinding?"p=tls-unique":"y"),this.gs2Header=i.Buffer.from(t?`${s},a=${t},`:s+",,"),this.clientFirstMessageBare=i.Buffer.from(`n=${n},r=${this.clientNonce}`);const a=i.Buffer.concat([this.gs2Header,this.clientFirstMessageBare]);return this.state="CHALLENGE",a}challengeResponse(e){const t=i.Buffer.from("Client Key"),n=i.Buffer.from("Server Key"),s=i.Buffer.concat([this.gs2Header,e.tlsUnique||i.Buffer.from("")]).toString("base64"),o=i.Buffer.from(`c=${s},r=${this.nonce}`);let d,h,p;const f=e.salt&&0===i.Buffer.compare(e.salt,this.salt);f&&e.clientKey&&e.serverKey?(h=i.Buffer.from(e.clientKey),p=i.Buffer.from(e.serverKey)):f&&e.saltedPassword?(d=i.Buffer.from(e.saltedPassword),h=l(d,t,this.algorithm),p=l(d,n,this.algorithm)):(d=u(i.Buffer.from((0,r.saslprep)(e.password)),this.salt,this.iterationCount,this.algorithm),h=l(d,t,this.algorithm),p=l(d,n,this.algorithm));const m=c(h,this.algorithm),g=i.Buffer.from(","),y=i.Buffer.concat([this.clientFirstMessageBare,g,this.challenge,g,o]),v=a(h,l(m,y,this.algorithm)).toString("base64");this.serverSignature=l(p,y,this.algorithm);const b=i.Buffer.concat([o,i.Buffer.from(",p="+v)]);return this.state="FINAL",this.cache={clientKey:h,salt:this.salt,saltedPassword:d,serverKey:p},b}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(2);t.default=function(e){e.getAccountInfo=async t=>(await e.sendIQ({account:{},to:t,type:"get"})).account,e.updateAccount=(t,n)=>e.sendIQ({account:n,to:t,type:"set"}),e.deleteAccount=t=>e.sendIQ({account:{remove:!0},to:t,type:"set"}),e.getPrivateData=async t=>(await e.sendIQ({privateStorage:{[t]:{}},type:"get"})).privateStorage[t],e.setPrivateData=async(t,n)=>e.sendIQ({privateStorage:{[t]:n},type:"set"}),e.getVCard=async t=>(await e.sendIQ({to:t,type:"get",vcard:{format:i.NS_VCARD_TEMP}})).vcard,e.publishVCard=async t=>{await e.sendIQ({type:"set",vcard:t})},e.enableNotifications=function(t,n){let i=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"},...i],type:"submit"},jid:t,node:n},type:"set"})},e.disableNotifications=(t,n)=>e.sendIQ({push:{action:"disable",jid:t,node:n},type:"set"})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(2);t.default=function(e){e.disco.addFeature((0,i.NS_PEP_NOTIFY)(i.NS_AVATAR_METADATA)),e.on("pubsub:published",t=>{if(t.pubsub.items.node!==i.NS_AVATAR_METADATA)return;const n=t.pubsub.items.published[0].content;e.emit("avatar",{avatars:n.versions||[],jid:t.from,source:"pubsub"})}),e.on("presence",t=>{t.vcardAvatar&&"string"==typeof t.vcardAvatar&&e.emit("avatar",{avatars:[{id:t.vcardAvatar}],jid:t.from,source:"vcard"})}),e.publishAvatar=(t,n)=>e.publish("",i.NS_AVATAR_DATA,{data:n,itemType:i.NS_AVATAR_DATA},t),e.useAvatars=function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.publish("",i.NS_AVATAR_METADATA,{itemType:i.NS_AVATAR_METADATA,pointers:n,versions:t},"current")},e.getAvatar=(t,n)=>e.getItem(t,i.NS_AVATAR_DATA,n)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){e.registerFeature("bind",300,async(t,n)=>{try{const i=await e.sendIQ({bind:{resource:e.config.resource},type:"set"});e.features.negotiated.bind=!0,e.emit("session:prebind",i.bind.jid);const r=!t.legacySession||t.legacySession&&t.legacySession.optional;return!e.sessionStarted&&r&&e.emit("session:started",e.jid),n()}catch(e){return console.error(e),n("disconnect","JID binding failed")}}),e.registerFeature("legacySession",1e3,async(t,n)=>{if(e.sessionStarted||t.legacySession&&t.legacySession.optional)return e.features.negotiated.session=!0,n();try{return await e.sendIQ({legacySession:!0,type:"set"}),e.features.negotiated.session=!0,e.sessionStarted||(e.sessionStarted=!0,e.emit("session:started",e.jid)),n()}catch(e){return n("disconnect","Session requeset failed")}}),e.on("session:started",()=>{e.sessionStarted=!0}),e.on("session:prebind",t=>{e.jid=t,e.emit("session:bound",e.jid)}),e.on("--reset-stream-features",()=>{e.sessionStarted=!1,e.features.negotiated.bind=!1,e.features.negotiated.session=!1})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(2);t.default=function(e){e.disco.addFeature(i.NS_ADHOC_COMMANDS),e.disco.addItem({name:"Ad-Hoc Commands",node:i.NS_ADHOC_COMMANDS}),e.getCommands=t=>e.getDiscoItems(t,i.NS_ADHOC_COMMANDS)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(2),r=n(17);async function s(e){if(e.sm.started)return new Promise(t=>{e.once("stream:management:ack",()=>t()),e.sm.request()});try{await e.ping()}catch(e){if(e.error&&"timeout"!==e.error.condition)return;throw e}}function o(e,t){e.features.negotiated.clientStateIndication&&e.send("csi",{type:t})}t.default=function(e){e.disco.addFeature(i.NS_PING),e.on("iq:get:ping",t=>{e.sendIQResult(t)}),e.on("--reset-stream-features",()=>{e._stopKeepAliveInterval(),e.features.negotiated.streamManagement=!1,e.features.negotiated.clientStateIndication=!1}),e.markActive=()=>o(e,"active"),e.markInactive=()=>o(e,"inactive"),e.ping=async t=>{await e.sendIQ({ping:!0,to:t,type:"get"})},e.enableKeepAlive=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e._keepAliveOptions=t;const n=t.interval||300,i=t.timeout||e.config.timeout||15;async function o(){if(e.sessionStarted)try{await(0,r.timeoutPromise)(s(e),1e3*i)}catch(t){e.emit("stream:error",{condition:"connection-timeout",text:"Server did not respond in "+i+" seconds"}),e.transport&&(e.transport.hasStream=!1,e.transport.disconnect(!1))}}clearInterval(e._keepAliveInterval),e._keepAliveInterval=setInterval(o,1e3*n)},e._stopKeepAliveInterval=()=>{e._keepAliveInterval&&(clearInterval(e._keepAliveInterval),delete e._keepAliveInterval)},e.disableKeepAlive=()=>{delete e._keepAliveOptions,e._stopKeepAliveInterval()},e.on("stream:management:resumed",()=>{e._keepAliveOptions&&e.enableKeepAlive(e._keepAliveOptions)}),e.on("stream:start",()=>{e._keepAliveOptions&&e.enableKeepAlive(e._keepAliveOptions)});const t=async(t,n)=>{if(!e.config.useStreamManagement)return n();const i=async t=>{switch(t.type){case"enabled":return await e.sm.enabled(t),e.features.negotiated.streamManagement=!0,e.off("sm",i),n();case"resumed":return await e.sm.resumed(t),e.features.negotiated.streamManagement=!0,e.features.negotiated.bind=!0,e.sessionStarted=!0,e.sessionStarting=!1,e.off("sm",i),e.emit("stream:management:resumed",t),n("break");case"failed":await e.sm.failed(t),e.off("sm",i),e.emit("session:end"),n()}};e.on("sm",i),e.sm.id?e.sm.id&&e.sm.allowResume?await e.sm.resume():(e.off("sm",i),n()):e.features.negotiated.bind?await e.sm.enable():(e.off("sm",i),n())};e.registerFeature("streamManagement",200,t),e.registerFeature("streamManagement",500,t),e.registerFeature("clientStateIndication",400,(t,n)=>{e.features.negotiated.clientStateIndication=!0,n()})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(6),r=(0,i.__importDefault)(n(297)),s=(0,i.__importStar)(n(13)),o=n(2);t.default=function(e){e.disco=new r.default,e.disco.addFeature(o.NS_DISCO_INFO),e.disco.addFeature(o.NS_DISCO_ITEMS),e.disco.addIdentity({category:"client",type:"web"}),e.registerFeature("caps",100,(t,n)=>{const i=s.getDomain(e.jid)||e.config.server;e.emit("disco:caps",{caps:t.legacyCapabilities||[],jid:i}),e.features.negotiated.caps=!0,n()}),e.getDiscoInfo=async(t,n)=>({extensions:[],features:[],identities:[],...(await e.sendIQ({disco:{node:n,type:"info"},to:t,type:"get"})).disco}),e.getDiscoItems=async(t,n)=>({items:[],...(await e.sendIQ({disco:{node:n,type:"items"},to:t,type:"get"})).disco}),e.updateCaps=()=>{const t=e.config.capsNode||"https://stanzajs.org";return e.disco.updateCaps(t)},e.getCurrentCaps=()=>{const t=e.disco.getCaps();if(!t)return;const n=`${t[0].node}#${t[0].value}`;return{info:e.disco.getNodeInfo(n),legacyCapabilities:t}},e.on("presence",t=>{t.legacyCapabilities&&e.emit("disco:caps",{caps:t.legacyCapabilities,jid:t.from})}),e.on("iq:get:disco",t=>{const{type:n,node:i}=t.disco;"info"===n&&e.sendIQResult(t,{disco:{...e.disco.getNodeInfo(i||""),node:i,type:"info"}}),"items"===n&&e.sendIQResult(t,{disco:{items:e.disco.items.get(i||"")||[],type:"items"}})})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(6),r=n(8),s=n(2),o=(0,i.__importStar)(n(12));t.default=function(e){e.disco.addFeature("jid\\20escaping"),e.disco.addFeature(s.NS_DELAY),e.disco.addFeature(s.NS_EME_0),e.disco.addFeature(s.NS_FORWARD_0),e.disco.addFeature(s.NS_HASHES_2),e.disco.addFeature(s.NS_HASHES_1),e.disco.addFeature(s.NS_IDLE_1),e.disco.addFeature(s.NS_JSON_0),e.disco.addFeature(s.NS_OOB),e.disco.addFeature(s.NS_PSA),e.disco.addFeature(s.NS_REFERENCE_0),e.disco.addFeature(s.NS_SHIM),e.disco.addFeature(s.NS_DATAFORM),e.disco.addFeature(s.NS_DATAFORM_MEDIA),e.disco.addFeature(s.NS_DATAFORM_VALIDATION),e.disco.addFeature(s.NS_DATAFORM_LAYOUT);const t=o.getHashes();for(const n of t)e.disco.addFeature((0,s.NS_HASH_NAME)(n));e.disco.addFeature(s.NS_TIME),e.disco.addFeature(s.NS_VERSION),e.on("iq:get:softwareVersion",t=>e.sendIQResult(t,{softwareVersion:e.config.softwareVersion||{name:"stanzajs.org",version:r.VERSION}})),e.on("iq:get:time",t=>{const n=new Date;e.sendIQResult(t,{time:{tzo:n.getTimezoneOffset(),utc:n}})}),e.getSoftwareVersion=async t=>(await e.sendIQ({softwareVersion:{},to:t,type:"get"})).softwareVersion,e.getTime=async t=>(await e.sendIQ({time:{},to:t,type:"get"})).time,e.getLastActivity=async t=>(await e.sendIQ({lastActivity:{},to:t,type:"get"})).lastActivity}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){e.features={handlers:Object.create(null),negotiated:Object.create(null),order:[]},e.registerFeature=function(t,n,i){this.features.order.push({name:t,priority:n}),this.features.order.sort((e,t)=>e.priority-t.priority),this.features.handlers[t]=i.bind(e)},e.on("features",async t=>{const n=e.features.negotiated,i=e.features.handlers,r=[];for(const{name:s}of e.features.order)t[s]&&i[s]&&!n[s]&&r.push(s);function s(e){return new Promise(n=>{i[e](t,(e,t)=>{n(e?{command:e,message:t}:null)})})}for(const t of r){if(n[t])continue;let i="",r="";try{const e=await s(t);e&&(i=e.command,r=e.message||"")}catch(e){i="disconnect",r=e.message,console.error(e)}if(i)return"restart"===i&&e.transport&&e.transport.restart(),void("disconnect"===i&&(e.emit("stream:error",{condition:"policy-violation",text:"Failed to negotiate stream features: "+r}),e.disconnect()))}})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(2);t.default=function(e){e.discoverBindings=async t=>{const n=new Set,r=new Set,s=e.resolver.getHostMeta(t).then(e=>{var t;for(const s of null!==(t=e.links)&&void 0!==t?t:[])s.href&&s.rel===i.NS_ALT_CONNECTIONS_WEBSOCKET&&r.add(s.href),s.href&&s.rel===i.NS_ALT_CONNECTIONS_XBOSH&&n.add(s.href)}).catch(e=>console.error(e)),o=e.config.allowAlternateDNSDiscovery?e.resolver.resolveTXT("_xmppconnect."+t).then(e=>{for(const t of e)for(const e of t){if(e.startsWith("_xmpp-client-websocket=")){const t=e.substring(e.indexOf("=")+1);t&&r.add(t)}if(e.startsWith("_xmpp-client-xbosh=")){const t=e.substring(e.indexOf("=")+1);t&&n.add(t)}}}).catch(e=>console.error(e)):Promise.resolve();return await Promise.all([s,o]).catch(e=>console.error(e)),{bosh:[...n].filter(e=>e.startsWith("https://")),websocket:[...r].filter(e=>e.startsWith("wss://"))}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(6),r=n(12),s=(0,i.__importStar)(n(59)),o=n(2);t.default=function(e){const t=!!r.RTCPeerConnection,n={...{advertiseAudio:t,advertiseFileTransfer:t,advertiseVideo:t,bundlePolicy:"balanced",hasRTCPeerConnection:t,iceServers:[{urls:"stun:stun.l.google.com:19302"}],iceTransportPolicy:"all",rtcpMuxPolicy:"require",trickleIce:!0},...e.config.jingle},i=e.jingle=new s.SessionManager(n),a=[o.NS_JINGLE_1];n.hasRTCPeerConnection&&(a.push(o.NS_JINGLE_ICE_0,o.NS_JINGLE_ICE_UDP_1,o.NS_JINGLE_DTLS_SCTP_1,o.NS_JINGLE_DTLS_0,"urn:ietf:rfc:5888"),!1===n.trickleIce&&a.push("urn:ietf:rfc:3264"),(n.advertiseAudio||n.advertiseVideo)&&a.push(o.NS_JINGLE_RTP_1,o.NS_JINGLE_RTP_RTCP_FB_0,o.NS_JINGLE_RTP_HDREXT_0,"urn:ietf:rfc:5576"),n.advertiseAudio&&a.push(o.NS_JINGLE_RTP_AUDIO),n.advertiseVideo&&a.push(o.NS_JINGLE_RTP_VIDEO),n.advertiseFileTransfer&&a.push(o.NS_JINGLE_FILE_TRANSFER_4,o.NS_JINGLE_FILE_TRANSFER_5));for(const t of a)e.disco.addFeature(t);const c=["outgoing","incoming","accepted","terminated","ringing","mute","unmute","hold","resumed"];for(const t of c)i.on(t,(n,i)=>{e.emit("jingle:"+t,n,i)});i.on("createdSession",t=>{e.emit("jingle:created",t)}),i.on("send",async t=>{try{if("set"===t.type){const n=await e.sendIQ(t);n.jingle||(n.jingle={}),n.jingle.sid=t.jingle.sid,i.process(n)}"result"===t.type&&e.sendIQResult({type:"set",id:t.id,from:t.to},t),"error"===t.type&&e.sendIQError({type:"set",id:t.id,from:t.to},t)}catch(e){e.jingle||(e.jingle=t.jingle),e.jingle.sid=t.jingle.sid,i.process(e)}}),e.on("session:bound",e=>{i.selfID=e}),e.on("iq:set:jingle",e=>{i.process(e)}),e.on("unavailable",e=>{i.endPeerSessions(e.from,void 0,!0)}),e.getServices=async(t,n,i)=>{const r=(await e.sendIQ({externalServices:{type:n,version:i},to:t,type:"get"})).externalServices;return r.services=r.services||[],r},e.getServiceCredentials=async(t,n,i,r,s)=>(await e.sendIQ({externalServiceCredentials:{host:n,port:r,type:i,version:s},to:t,type:"get"})).externalServiceCredentials,e.discoverICEServers=async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};try{const n=(await e.getServices(e.config.server,void 0,t.version)).services||[],i=[];for(const t of n)e.jingle.addICEServer(t);return i}catch(e){return[]}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(6),r=n(117),s=(0,i.__importStar)(n(13)),o=n(2);t.default=function(e){e.getHistorySearchForm=async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=await e.sendIQ({archive:{type:"query",version:n.version},to:t,type:"get"});return i.archive.form},e.searchHistory=async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=e.nextId();let a="";"string"==typeof t?a=t:(a=t.to||"",n=t),n.queryId=i;const c=n.form||{};c.type="submit";const l=c.fields||[],u=[{name:"FORM_TYPE",type:"hidden",value:o.NS_MAM_2}];n.with&&u.push({name:"with",type:"text-single",value:n.with}),n.start&&u.push({name:"start",type:"text-single",value:n.start.toISOString()}),n.end&&u.push({name:"end",type:"text-single",value:n.end.toISOString()}),c.fields=(0,r.mergeFields)(u,l),n.form=c;const d=s.allowedResponders(e.jid,a),h=[],p=e=>{d.has(e.from)&&e.archive&&e.archive.queryId===i&&h.push(e.archive)};e.on("mam:item",p);try{return{...(await e.sendIQ({archive:n,id:i,to:a,type:"set"})).archive,results:h}}finally{e.off("mam:item",p)}},e.getHistoryPreferences=async()=>(await e.sendIQ({archive:{type:"preferences"},type:"get"})).archive,e.setHistoryPreferences=t=>e.sendIQ({archive:{type:"preferences",...t},type:"set"}),e.on("message",t=>{t.archive&&e.emit("mam:item",t)})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeFields=void 0,t.mergeFields=function(e,t){const n=[],i=new Map;for(const e of t)e.name&&i.set(e.name,e);const r=new Set;for(const t of e)t.name&&i.has(t.name)?(n.push({...t,...i.get(t.name)}),r.add(t.name)):n.push({...t});for(const e of t)(!e.name||e.name&&!r.has(e.name))&&n.push({...e});return n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=(0,n(6).__importStar)(n(13)),r=n(2),s=new Set(["chat","groupchat","headline","normal"]),o=new Set(["chat","groupchat","normal"]),a=new Map([["markable",0],["received",1],["displayed",2],["acknowledged",3]]),c=(e,t)=>{var n;return e.marker&&(a.get(e.marker.type)<a.get(t)||"markable"===(null===(n=e.marker)||void 0===n?void 0:n.type))};async function l(e,t){await e.sendIQ({carbons:{action:t},type:"set"})}t.default=function(e){e.disco.addFeature(r.NS_ATTENTION_0),e.disco.addFeature(r.NS_CHAT_MARKERS_0),e.disco.addFeature(r.NS_CHAT_STATES),e.disco.addFeature(r.NS_CORRECTION_0),e.disco.addFeature(r.NS_RECEIPTS),e.disco.addFeature(r.NS_RTT_0),e.enableCarbons=()=>l(e,"enable"),e.disableCarbons=()=>l(e,"disable"),e.markReceived=t=>e.sendMarker(t,"received"),e.markDisplayed=t=>e.sendMarker(t,"displayed"),e.markAcknowledged=t=>e.sendMarker(t,"acknowledged"),e.getAttention=function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.sendMessage({...n,requestingAttention:!0,to:t,type:"headline"})},e.sendMarker=(t,n,r)=>{if(!c(t,n)&&!r)return;const s=!1!==e.config.groupchatMarkersUseStanzaID;let o=t.id;if("groupchat"===t.type&&t.stanzaIds&&s){const e=t.stanzaIds.find(e=>i.equalBare(e.by,t.from));e&&(o=e.id)}e.sendMessage({marker:{id:o,type:n},to:"groupchat"===t.type?i.toBare(t.from):t.from,type:t.type})},e.on("message",t=>{if(t.carbon&&i.equalBare(t.from,e.jid)){const n=t.carbon.forward.message;n.delay||(n.delay=t.carbon.forward.delay||{timestamp:new Date(Date.now())}),(e=>!!e.carbon&&"received"===e.carbon.type)(t)&&(e.emit("carbon:received",t),e.emit("message",n)),(e=>!!e.carbon&&"sent"===e.carbon.type)(t)&&(e.emit("carbon:sent",t),e.emit("message:sent",n,!0))}(e=>!!e.forms&&e.forms.length>0)(t)&&e.emit("dataform",t),t.requestingAttention&&e.emit("attention",t),(e=>!!e.rtt)(t)&&e.emit("rtt",t),(e=>!!e.replace)(t)&&e.emit("replace",t),(e=>!!e.chatState)(t)&&o.has(t.type||"normal")&&e.emit("chat:state",t);const n=!1!==e.config.sendReceipts,r=!1!==e.config.sendMUCReceipts,a=!1!==e.config.chatMarkers,l=!1!==e.config.groupchatMarkersUseStanzaID,u=(e=>{var t;return!!e.receipt&&"request"===e.receipt.type&&s.has(null!==(t=e.type)&&void 0!==t?t:"normal")})(t),d=c(t,"received"),h=u&&n&&("groupchat"!==t.type||r);if(h||a&&d){const n="groupchat"===t.type?i.toBare(t.from):t.from;let r=t.id;if("groupchat"===t.type&&t.stanzaIds&&l){const e=t.stanzaIds.find(e=>i.equalBare(e.by,t.from));e&&(r=e.id)}e.sendMessage({receipt:h?{id:t.id,type:"received"}:void 0,marker:a&&d?{id:r,type:"received"}:void 0,to:n,type:t.type})}t.receipt&&"received"===t.receipt.type&&e.emit("receipt",t),t.marker&&"markable"!==t.marker.type&&e.emit("marker:"+t.marker.type,t)})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(6),r=n(8),s=(0,i.__importStar)(n(13)),o=n(2),a=n(17);t.default=function(e){e.disco.addFeature(o.NS_MUC),e.disco.addFeature(o.NS_MUC_DIRECT_INVITE),e.disco.addFeature(o.NS_HATS_0),e.joinedRooms=new Map,e.joiningRooms=new Map,e.leavingRooms=new Map,e.on("session:started",(function(){const t=e.joiningRooms;e.joiningRooms=new Map;for(const[n,i]of t)e.joinRoom(n,i);const n=e.joinedRooms;e.joinedRooms=new Map;for(const[t,i]of n)e.joinRoom(t,i)})),e.on("message",t=>{if("groupchat"!==t.type||!t.hasSubject||t.body){if(t.muc)if("direct-invite"===t.muc.type||!t.muc.invite&&t.legacyMUC){const 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)}else e.emit("muc:topic",{from:t.from,room:s.toBare(t.from),topic:t.subject||""})}),e.on("presence",t=>{const n=s.toBare(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))return;const i=t.muc.statusCodes&&t.muc.statusCodes.indexOf(r.MUCStatusCode.SelfPresence)>=0,o=t.muc.statusCodes&&t.muc.statusCodes.indexOf(r.MUCStatusCode.NickChanged)>=0;if("error"===t.type)return void e.emit("muc:error",t);if("unavailable"===t.type)return e.emit("muc:unavailable",t),i&&(o?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);const a=e.joiningRooms.has(n)||!e.joinedRooms.has(n);i&&(e.joinedRooms.set(n,s.getResource(t.from)),a&&(e.joiningRooms.delete(n),e.emit("muc:join",t)))}),e.joinRoom=async function(t,n){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t=s.toBare(t),e.joiningRooms.set(t,n||""),!n)try{n=await e.getReservedNick(t),e.joiningRooms.set(t,n)}catch(e){throw new Error("Room nick required")}return new Promise((r,o)=>{function a(n){s.equalBare(n.from,t)&&(e.off("muc:join",a),e.off("muc:failed",c),r(n))}function c(n){s.equalBare(n.from,t)&&(e.off("muc:join",a),e.off("muc:failed",c),o(n))}e.on("muc:join",a),e.on("muc:failed",c),e.sendPresence({...i,muc:{...i.muc,type:"join"},to:s.createFull(t,n)})})},e.leaveRoom=function(t,n){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t=s.toBare(t),n=n||e.joinedRooms.get(t),e.leavingRooms.set(t,n),new Promise((r,o)=>{const c=i.id||(0,a.uuid)(),l=s.allowedResponders(t);function u(n){s.equalBare(n.from,t)&&(e.off("muc:leave",u),e.off("presence:error",d),r(n))}function d(n){n.id===c&&l.has(n.from)&&(e.joinedRooms.has(t)||e.leavingRooms.delete(t),e.off("muc:leave",u),e.off("presence:error",d),o(n))}e.on("muc:leave",u),e.on("presence:error",d),e.sendPresence({...i,id:c,to:s.createFull(t,n),type:"unavailable"})})},e.ban=(t,n,i)=>e.setRoomAffiliation(t,n,"outcast",i),e.kick=(t,n,i)=>e.setRoomRole(t,n,"none",i),e.invite=function(t){let 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){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};e.sendMessage({muc:{...i,jid:t,type:"direct-invite"},to:n})},e.declineInvite=(t,n,i)=>{e.sendMessage({muc:{decline:{reason:i,to:n},type:"info"},to:t})},e.changeNick=(t,n)=>{const i=(0,a.uuid)(),o=s.createFull(t,n),c=s.allowedResponders(t);return new Promise((t,n)=>{function a(n){c.has(s.toBare(n.from))&&n.muc.statusCodes&&n.muc.statusCodes.includes(r.MUCStatusCode.SelfPresence)&&(e.off("muc:available",a),e.off("presence:id:"+i,l),t(n))}function l(r){c.has(s.toBare(r.from))&&r.id===i&&(e.off("muc:available",a),e.off("presence:id:"+i,l),"error"===r.type?n(r):t(r))}e.on("muc:available",a),e.on("presence:id:"+i,l),e.sendPresence({id:i,to:o})})},e.setSubject=(t,n)=>{e.sendMessage({subject:n,to:t,type:"groupchat"})},e.getReservedNick=async t=>{try{const n=(await e.getDiscoInfo(t,"x-roomuser-item")).identities[0];if(n.name)return n.name;throw new Error("No nickname reserved")}catch(e){throw new Error("No nickname reserved")}},e.requestRoomVoice=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=(t,n,i,r)=>e.sendIQ({muc:{type:"user-list",users:[{affiliation:i,jid:n,reason:r}]},to:t,type:"set"}),e.setRoomRole=(t,n,i,r)=>e.sendIQ({muc:{type:"user-list",users:[{nick:n,reason:r,role:i}]},to:t,type:"set"}),e.getRoomMembers=function(t){let 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=async t=>{const n=await e.sendIQ({muc:{type:"configure"},to:t,type:"get"});if(!n.muc.form)throw new Error("No configuration form returned");return n.muc.form},e.configureRoom=function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.sendIQ({muc:{form:{...n,type:"submit"},type:"configure"},to:t,type:"set"})},e.destroyRoom=function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.sendIQ({muc:{destroy:n,type:"configure"},to:t,type:"set"})},e.getUniqueRoomName=async function(e){const t=await this.sendIQ({muc:{type:"unique"},to:e,type:"get"});if(!t.muc.name)throw new Error("No unique name returned");return t.muc.name},e.getBookmarks=async()=>{const t=await e.getPrivateData("bookmarks");return t&&t.rooms?t.rooms:[]},e.setBookmarks=t=>e.setPrivateData("bookmarks",{rooms:t}),e.addBookmark=async t=>{const n=await e.getBookmarks(),i=[];let r=!1;for(const e of n)s.equalBare(e.jid,t.jid)?(i.push({...e,...t}),r=!0):i.push(e);return r||i.push(t),e.setBookmarks(i)},e.removeBookmark=async t=>{const n=(await e.getBookmarks()).filter(e=>!s.equalBare(e.jid,t));return e.setBookmarks(n)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(2);t.default=function(e){e.disco.addFeature(i.NS_ACTIVITY),e.disco.addFeature(i.NS_GEOLOC),e.disco.addFeature(i.NS_MOOD),e.disco.addFeature(i.NS_NICK),e.disco.addFeature(i.NS_TUNE),e.disco.addFeature((0,i.NS_PEP_NOTIFY)(i.NS_ACTIVITY)),e.disco.addFeature((0,i.NS_PEP_NOTIFY)(i.NS_GEOLOC)),e.disco.addFeature((0,i.NS_PEP_NOTIFY)(i.NS_MOOD)),e.disco.addFeature((0,i.NS_PEP_NOTIFY)(i.NS_NICK)),e.disco.addFeature((0,i.NS_PEP_NOTIFY)(i.NS_TUNE)),e.publishActivity=t=>e.publish("",i.NS_ACTIVITY,{itemType:i.NS_ACTIVITY,...t}),e.publishGeoLoc=t=>e.publish("",i.NS_GEOLOC,{itemType:i.NS_GEOLOC,...t}),e.publishMood=t=>e.publish("",i.NS_MOOD,{itemType:i.NS_MOOD,...t}),e.publishNick=t=>e.publish("",i.NS_NICK,{itemType:i.NS_NICK,nick:t}),e.publishTune=t=>e.publish("",i.NS_TUNE,{itemType:i.NS_TUNE,...t}),e.on("pubsub:published",t=>{const n=t.pubsub.items.published[0].content;switch(t.pubsub.items.node){case i.NS_ACTIVITY:return e.emit("activity",{activity:n,jid:t.from});case i.NS_GEOLOC:return e.emit("geoloc",{geoloc:n,jid:t.from});case i.NS_MOOD:return e.emit("mood",{jid:t.from,mood:n});case i.NS_NICK:return e.emit("nick",{jid:t.from,nick:n.nick});case i.NS_TUNE:return e.emit("tune",{jid:t.from,tune:t.pubsub.items.published[0].content})}})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=(0,n(6).__importStar)(n(13)),r=n(2);t.default=function(e){e.disco.addFeature(r.NS_SHIM+"#SubID",r.NS_SHIM),e.on("message",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=async(t,n)=>{const r={};let s;"string"==typeof n?(r.node=n,r.jid=i.toBare(e.jid)):(r.node=n.node,r.jid=n.jid||(n.useBareJID?i.toBare(e.jid):e.jid),s=n.options);const o=await e.sendIQ({pubsub:{context:"user",subscribe:r,subscriptionOptions:s?{form:s}:void 0},to:t,type:"set"}),a=o.pubsub.subscription||{};return o.pubsub.subscriptionOptions&&(a.options=o.pubsub.subscriptionOptions.form),a},e.unsubscribeFromNode=async(t,n)=>{const r={};"string"==typeof n?(r.node=n,r.jid=i.toBare(e.jid)):(r.node=n.node,r.subid=n.subid,r.jid=n.jid||(n.useBareJID?i.toBare(e.jid):e.jid));const s=await e.sendIQ({pubsub:{context:"user",unsubscribe:r},to:t,type:"set"});return s.pubsub&&s.pubsub.subscription?s.pubsub.subscription:{...r,state:"none"}},e.publish=(t,n,i,r)=>e.sendIQ({pubsub:{context:"user",publish:{item:{content:i,id:r},node:n}},to:t,type:"set"}),e.getItem=async(t,n,i)=>(await e.sendIQ({pubsub:{context:"user",fetch:{items:[{id:i}],node:n}},to:t,type:"get"})).pubsub.fetch.items[0],e.getItems=async function(t,n){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=await e.sendIQ({pubsub:{context:"user",fetch:{max:i.max,node:n},paging:i},to:t,type:"get"}),s=r.pubsub.fetch;return s.paging=r.pubsub.paging,s},e.retract=(t,n,i,r)=>e.sendIQ({pubsub:{context:"user",retract:{id:i,node:n,notify:r}},to:t,type:"set"}),e.purgeNode=(t,n)=>e.sendIQ({pubsub:{context:"owner",purge:n},to:t,type:"set"}),e.deleteNode=(t,n,i)=>e.sendIQ({pubsub:{context:"owner",destroy:{node:n,redirect:i}},to:t,type:"set"}),e.createNode=async(t,n,i)=>{const r=await e.sendIQ({pubsub:{configure:i?{form:i}:void 0,context:"user",create:{node:n}},to:t,type:"set"});return r.pubsub&&r.pubsub.create?r.pubsub.create:{node:n}},e.getSubscriptions=async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=await e.sendIQ({pubsub:{context:"user",subscriptions:n},to:t,type:"get"});return i.pubsub.subscriptions},e.getAffiliations=(t,n)=>e.sendIQ({pubsub:{affiliations:{node:n}},to:t,type:"get"}),e.getNodeSubscribers=function(t,n){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return"string"==typeof n?i.node=n:i={...i,...n},e.sendIQ({pubsub:{context:"owner",subscriptions:i},to:t,type:"get"})},e.updateNodeSubscriptions=(t,n,i)=>e.sendIQ({pubsub:{context:"owner",subscriptions:{items:i,node:n}},to:t,type:"set"}),e.getNodeAffiliations=async(t,n)=>(await e.sendIQ({pubsub:{affiliations:{node:n},context:"owner"},to:t,type:"get"})).pubsub.affiliations,e.updateNodeAffiliations=(t,n,i)=>e.sendIQ({pubsub:{affiliations:{items:i,node:n},context:"owner"},to:t,type:"set"}),e.getNodeConfig=async(t,n)=>(await e.sendIQ({pubsub:{configure:{node:n},context:"owner"},to:t,type:"get"})).pubsub.configure.form||{},e.getDefaultNodeConfig=async t=>(await e.sendIQ({pubsub:{context:"owner",defaultConfiguration:{}},to:t,type:"get"})).pubsub.defaultConfiguration.form||{},e.configureNode=async(t,n,i)=>e.sendIQ({pubsub:{configure:{form:i,node:n},context:"owner"},to:t,type:"set"}),e.getDefaultSubscriptionOptions=async t=>(await e.sendIQ({pubsub:{defaultSubscriptionOptions:{}},to:t,type:"get"})).pubsub.defaultSubscriptionOptions.form||{}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=(0,n(6).__importStar)(n(13));t.default=function(e){async function t(t,n){await e.sendIQ({blockList:{action:t,jids:[n]},type:"set"})}e.on("iq:set:roster",t=>{if(!i.allowedResponders(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",t=>{if(!i.allowedResponders(e.jid).has(t.from))return e.sendIQError(t,{error:{condition:"service-unavailable",type:"cancel"}});const n=t.blockList;e.emit(n.action,{jids:n.jids||[]}),e.sendIQResult(t)}),e.getRoster=async()=>{const t=await e.sendIQ({roster:{version:e.config.rosterVer},type:"get"});if(t.roster){const n=t.roster.version;return n&&(e.config.rosterVer=n,e.emit("roster:ver",n)),t.roster.items=t.roster.items||[],t.roster}return{items:[]}},e.updateRosterItem=async t=>{await e.sendIQ({roster:{items:[t]},type:"set"})},e.removeRosterItem=t=>e.updateRosterItem({jid:t,subscription:"remove"}),e.subscribe=t=>{e.sendPresence({type:"subscribe",to:t})},e.unsubscribe=t=>{e.sendPresence({type:"unsubscribe",to:t})},e.acceptSubscription=t=>{e.sendPresence({type:"subscribed",to:t})},e.denySubscription=t=>{e.sendPresence({type:"unsubscribed",to:t})},e.getBlocked=async()=>({jids:[],...(await e.sendIQ({blockList:{action:"list"},type:"get"})).blockList}),e.block=async e=>t("block",e),e.unblock=async e=>t("unblock",e),e.goInvisible=async function(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];await e.sendIQ({type:"set",visiblity:{probe:t,type:"invisible"}})},e.goVisible=async()=>{await e.sendIQ({type:"set",visiblity:{type:"visible"}})}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){e.registerFeature("sasl",100,async(t,n)=>{const i=e.sasl.createMechanism(t.sasl.mechanisms),r=async t=>{if(i)switch(t.type){case"success":return e.features.negotiated.sasl=!0,e.off("sasl",r),e.emit("auth:success",e.config.credentials),e.transport&&(e.transport.authenticated=!0),void n("restart");case"challenge":i.processChallenge(t.value);try{const t=await e.getCredentials(),n=i.createResponse(t);n||""===n?e.send("sasl",{type:"response",value:n}):e.send("sasl",{type:"response"});const r=i.getCacheableCredentials();r&&(e.config.credentials||(e.config.credentials={}),e.config.credentials={...e.config.credentials,...r},e.emit("credentials:update",e.config.credentials))}catch(t){console.error(t),e.send("sasl",{type:"abort"})}return;case"failure":case"abort":return e.off("sasl",r),e.emit("auth:failed"),void n("disconnect","authentication failed")}};if(!i)return e.off("sasl",r),e.emit("auth:failed"),n("disconnect","authentication failed");e.on("sasl",r),e.once("--reset-stream-features",()=>{e.features.negotiated.sasl=!1,e.off("sasl",r)});try{const t=await e.getCredentials();e.send("sasl",{mechanism:i.name,type:"auth",value:i.createResponse(t)})}catch(t){console.error(t),e.send("sasl",{type:"abort"})}})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=(0,n(6).__importStar)(n(13)),r=n(2);t.default=function(e){async function t(t){const n=await e.getDiscoInfo(t);if(!n.features||!n.features.includes(r.NS_HTTP_UPLOAD_0))return;let i;for(const e of n.extensions||[]){const n=e.fields||[];if(n.some(e=>"FORM_TYPE"===e.name&&e.value===r.NS_HTTP_UPLOAD_0)){const e=n.find(e=>"max-file-size"===e.name);return e&&(i=parseInt(e.value,10)),{jid:t,maxSize:i}}}}e.disco.addFeature(r.NS_BOB),e.getBits=async(t,n)=>(await e.sendIQ({bits:{cid:n},to:t,type:"get"})).bits,e.getUploadService=async function(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.getDomain(e.jid);const r=await t(n);if(r)return r;const s=await e.getDiscoItems(n);for(const e of s.items||[]){if(!e.jid)continue;const n=await t(e.jid);if(n)return n}throw new Error("No upload service discovered on: "+n)},e.getUploadSlot=async(t,n)=>(await e.sendIQ({httpUpload:{type:"request",...n},to:t,type:"get"})).httpUpload}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(6);(0,i.__exportStar)(n(126),t),(0,i.__exportStar)(n(127),t),(0,i.__exportStar)(n(128),t),(0,i.__exportStar)(n(129),t),(0,i.__exportStar)(n(130),t),(0,i.__exportStar)(n(131),t),(0,i.__exportStar)(n(132),t),(0,i.__exportStar)(n(133),t),(0,i.__exportStar)(n(134),t),(0,i.__exportStar)(n(135),t),(0,i.__exportStar)(n(136),t),(0,i.__exportStar)(n(137),t),(0,i.__exportStar)(n(138),t),(0,i.__exportStar)(n(139),t),(0,i.__exportStar)(n(140),t),(0,i.__exportStar)(n(141),t),(0,i.__exportStar)(n(142),t),(0,i.__exportStar)(n(143),t),(0,i.__exportStar)(n(144),t),(0,i.__exportStar)(n(145),t),(0,i.__exportStar)(n(146),t),(0,i.__exportStar)(n(147),t),(0,i.__exportStar)(n(148),t),(0,i.__exportStar)(n(149),t),(0,i.__exportStar)(n(150),t),(0,i.__exportStar)(n(151),t),(0,i.__exportStar)(n(152),t),(0,i.__exportStar)(n(153),t),(0,i.__exportStar)(n(154),t),(0,i.__exportStar)(n(155),t),(0,i.__exportStar)(n(156),t),(0,i.__exportStar)(n(157),t),(0,i.__exportStar)(n(158),t),(0,i.__exportStar)(n(159),t),(0,i.__exportStar)(n(160),t),(0,i.__exportStar)(n(161),t),(0,i.__exportStar)(n(162),t),(0,i.__exportStar)(n(163),t),(0,i.__exportStar)(n(164),t),(0,i.__exportStar)(n(165),t),(0,i.__exportStar)(n(166),t),(0,i.__exportStar)(n(167),t),(0,i.__exportStar)(n(168),t),(0,i.__exportStar)(n(169),t),(0,i.__exportStar)(n(170),t),(0,i.__exportStar)(n(171),t),(0,i.__exportStar)(n(172),t),(0,i.__exportStar)(n(173),t),(0,i.__exportStar)(n(174),t),(0,i.__exportStar)(n(175),t),(0,i.__exportStar)(n(176),t),(0,i.__exportStar)(n(177),t),(0,i.__exportStar)(n(178),t),(0,i.__exportStar)(n(179),t),(0,i.__exportStar)(n(180),t),(0,i.__exportStar)(n(181),t),(0,i.__exportStar)(n(182),t),(0,i.__exportStar)(n(183),t),(0,i.__exportStar)(n(184),t),(0,i.__exportStar)(n(185),t),(0,i.__exportStar)(n(186),t),(0,i.__exportStar)(n(187),t),(0,i.__exportStar)(n(188),t),(0,i.__exportStar)(n(189),t),(0,i.__exportStar)(n(190),t),(0,i.__exportStar)(n(191),t),(0,i.__exportStar)(n(192),t),(0,i.__exportStar)(n(193),t),(0,i.__exportStar)(n(194),t),(0,i.__exportStar)(n(195),t),(0,i.__exportStar)(n(196),t),(0,i.__exportStar)(n(197),t),(0,i.__exportStar)(n(198),t),(0,i.__exportStar)(n(199),t),(0,i.__exportStar)(n(200),t),(0,i.__exportStar)(n(201),t),(0,i.__exportStar)(n(202),t),(0,i.__exportStar)(n(203),t),(0,i.__exportStar)(n(204),t),(0,i.__exportStar)(n(205),t),(0,i.__exportStar)(n(66),t);const r=(0,i.__importDefault)(n(126)),s=(0,i.__importDefault)(n(127)),o=(0,i.__importDefault)(n(128)),a=(0,i.__importDefault)(n(129)),c=(0,i.__importDefault)(n(130)),l=(0,i.__importDefault)(n(131)),u=(0,i.__importDefault)(n(132)),d=(0,i.__importDefault)(n(133)),h=(0,i.__importDefault)(n(134)),p=(0,i.__importDefault)(n(135)),f=(0,i.__importDefault)(n(136)),m=(0,i.__importDefault)(n(137)),g=(0,i.__importDefault)(n(138)),y=(0,i.__importDefault)(n(139)),v=(0,i.__importDefault)(n(140)),b=(0,i.__importDefault)(n(141)),_=(0,i.__importDefault)(n(142)),S=(0,i.__importDefault)(n(143)),w=(0,i.__importDefault)(n(144)),T=(0,i.__importDefault)(n(145)),I=(0,i.__importDefault)(n(146)),A=(0,i.__importDefault)(n(147)),E=(0,i.__importDefault)(n(148)),N=(0,i.__importDefault)(n(149)),x=(0,i.__importDefault)(n(150)),C=(0,i.__importDefault)(n(151)),R=(0,i.__importDefault)(n(152)),O=(0,i.__importDefault)(n(153)),k=(0,i.__importDefault)(n(154)),P=(0,i.__importDefault)(n(155)),j=(0,i.__importDefault)(n(156)),M=(0,i.__importDefault)(n(157)),L=(0,i.__importDefault)(n(159)),D=(0,i.__importDefault)(n(160)),F=(0,i.__importDefault)(n(161)),B=(0,i.__importDefault)(n(158)),q=(0,i.__importDefault)(n(162)),U=(0,i.__importDefault)(n(163)),z=(0,i.__importDefault)(n(164)),J=(0,i.__importDefault)(n(165)),G=(0,i.__importDefault)(n(166)),H=(0,i.__importDefault)(n(167)),V=(0,i.__importDefault)(n(168)),W=(0,i.__importDefault)(n(169)),$=(0,i.__importDefault)(n(170)),Q=(0,i.__importDefault)(n(171)),K=(0,i.__importDefault)(n(172)),Y=(0,i.__importDefault)(n(173)),X=(0,i.__importDefault)(n(174)),Z=(0,i.__importDefault)(n(175)),ee=(0,i.__importDefault)(n(176)),te=(0,i.__importDefault)(n(177)),ne=(0,i.__importDefault)(n(178)),ie=(0,i.__importDefault)(n(179)),re=(0,i.__importDefault)(n(180)),se=(0,i.__importDefault)(n(181)),oe=(0,i.__importDefault)(n(182)),ae=(0,i.__importDefault)(n(183)),ce=(0,i.__importDefault)(n(184)),le=(0,i.__importDefault)(n(185)),ue=(0,i.__importDefault)(n(186)),de=(0,i.__importDefault)(n(187)),he=(0,i.__importDefault)(n(188)),pe=(0,i.__importDefault)(n(189)),fe=(0,i.__importDefault)(n(190)),me=(0,i.__importDefault)(n(191)),ge=(0,i.__importDefault)(n(192)),ye=(0,i.__importDefault)(n(193)),ve=(0,i.__importDefault)(n(194)),be=(0,i.__importDefault)(n(195)),_e=(0,i.__importDefault)(n(196)),Se=(0,i.__importDefault)(n(197)),we=(0,i.__importDefault)(n(198)),Te=(0,i.__importDefault)(n(199)),Ie=(0,i.__importDefault)(n(200)),Ae=(0,i.__importDefault)(n(201)),Ee=(0,i.__importDefault)(n(202)),Ne=(0,i.__importDefault)(n(203)),xe=(0,i.__importDefault)(n(204)),Ce=(0,i.__importDefault)(n(205)),Re=(0,i.__importDefault)(n(66)),Oe=[r.default,s.default,o.default,a.default,c.default,l.default,u.default,d.default,h.default,p.default,f.default,m.default,g.default,y.default,v.default,b.default,_.default,S.default,w.default,T.default,I.default,A.default,E.default,N.default,x.default,C.default,R.default,O.default,k.default,P.default,j.default,M.default,L.default,D.default,F.default,B.default,q.default,U.default,z.default,J.default,G.default,H.default,V.default,W.default,$.default,Q.default,K.default,Y.default,X.default,Z.default,ee.default,te.default,ne.default,ie.default,re.default,se.default,oe.default,ae.default,ce.default,le.default,ue.default,de.default,he.default,pe.default,fe.default,me.default,ge.default,ye.default,ve.default,be.default,_e.default,Se.default,we.default,Te.default,Ie.default,Ae.default,Ee.default,Ne.default,xe.default,Ce.default,Re.default];t.default=Oe},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s={aliases:["features.legacySession","iq.legacySession"],element:"session",fields:{optional:(0,i.childBoolean)(null,"optional")},namespace:r.NS_SESSION};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s=[{aliases:["atomentry",...(0,i.pubsubItemContentAliases)()],element:"entry",fields:{id:(0,i.childText)(null,"id"),published:(0,i.childDate)(null,"published"),updated:(0,i.childDate)(null,"updated")},namespace:r.NS_ATOM,type:r.NS_ATOM,typeField:"itemType"},{element:"summary",fields:{text:(0,i.text)(),type:(0,i.attribute)("type","text")},namespace:r.NS_ATOM,path:"atomentry.summary"},{element:"title",fields:{text:(0,i.text)(),type:(0,i.attribute)("type","text")},namespace:r.NS_ATOM,path:"atomentry.title"},{aliases:[{path:"atomentry.links",multiple:!0}],element:"link",fields:{href:(0,i.attribute)("href"),mediaType:(0,i.attribute)("type"),rel:(0,i.attribute)("rel")},namespace:r.NS_ATOM},{aliases:[{path:"atomentry.authors",multiple:!0}],element:"author",fields:{name:(0,i.childText)(null,"name"),uri:(0,i.childText)(null,"uri"),email:(0,i.childText)(null,"email")},namespace:r.NS_ATOM},{aliases:[{path:"atomentry.contributors",multiple:!0}],element:"contributor",fields:{name:(0,i.childText)(null,"name"),uri:(0,i.childText)(null,"uri"),email:(0,i.childText)(null,"email")},namespace:r.NS_ATOM},{aliases:[{path:"atomentry.categories",multiple:!0}],element:"category",fields:{term:(0,i.attribute)("term"),scheme:(0,i.attribute)("scheme"),label:(0,i.attribute)("label")},namespace:r.NS_ATOM},{element:"content",fields:{text:(0,i.text)(),type:(0,i.attribute)("type","text")},namespace:r.NS_ATOM,path:"atomentry.content"},{element:"rights",fields:{text:(0,i.text)(),type:(0,i.attribute)("type","text")},namespace:r.NS_ATOM,path:"atomentry.rights"}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(8),r=n(3),s=n(2),o={defaultType:"stream",element:"stream",fields:{from:(0,r.attribute)("from"),id:(0,r.attribute)("id"),lang:(0,r.languageAttribute)(),to:(0,r.attribute)("to"),version:(0,r.attribute)("version")},namespace:s.NS_STREAM,path:"stream",type:"stream",typeField:"action"},a={element:"features",namespace:s.NS_STREAM,path:"features"},c={element:"error",fields:{alternateLanguageText:(0,r.childAlternateLanguageText)(s.NS_STREAMS,"text"),condition:(0,r.childEnum)(s.NS_STREAMS,Object.values(i.StreamErrorCondition),i.StreamErrorCondition.UndefinedCondition),seeOtherHost:(0,r.childText)(s.NS_STREAMS,i.StreamErrorCondition.SeeOtherHost),text:(0,r.childText)(s.NS_STREAMS,"text")},namespace:s.NS_STREAM,path:"streamError"},l=Object.values(i.StreamType).map(e=>({aliases:["stanzaError","message.error","presence.error","iq.error"],defaultType:s.NS_CLIENT,element:"error",fields:{alternateLanguageText:(0,r.childAlternateLanguageText)(s.NS_STANZAS,"text"),by:(0,r.JIDAttribute)("by"),condition:(0,r.childEnum)(s.NS_STANZAS,Object.values(i.StanzaErrorCondition),i.StanzaErrorCondition.UndefinedCondition),gone:(0,r.childText)(s.NS_STANZAS,i.StanzaErrorCondition.Gone),redirect:(0,r.childText)(s.NS_STANZAS,i.StanzaErrorCondition.Redirect),text:(0,r.childText)(s.NS_STANZAS,"text"),type:(0,r.attribute)("type")},namespace:e,type:e,typeField:"streamType"})),u=new Set(["from","id","lang","to","type","payloadType","error","streamType"]),d=Object.values(i.StreamType).map(e=>({childrenExportOrder:{error:2e5},defaultType:s.NS_CLIENT,element:"iq",fields:{from:(0,r.JIDAttribute)("from"),id:(0,r.attribute)("id"),lang:(0,r.languageAttribute)(),payloadType:{order:-1e4,importer(e,t){if("get"!==t.data.type&&"set"!==t.data.type)return;if(1!==e.children.filter(e=>"string"!=typeof e).length)return"invalid-payload-count";const n=Object.keys(t.data).filter(e=>!u.has(e));return 1!==n.length?"unknown-payload":n[0]}},to:(0,r.JIDAttribute)("to"),type:(0,r.attribute)("type")},namespace:e,path:"iq",type:e,typeField:"streamType"})),h=Object.values(i.StreamType).map(e=>({childrenExportOrder:{error:2e5},defaultType:s.NS_CLIENT,element:"message",fields:{from:(0,r.JIDAttribute)("from"),id:(0,r.attribute)("id"),lang:(0,r.languageAttribute)(),to:(0,r.JIDAttribute)("to")},namespace:e,path:"message",type:e,typeField:"streamType"})),p=Object.values(i.StreamType).map(e=>({childrenExportOrder:{error:2e5},defaultType:s.NS_CLIENT,element:"presence",fields:{from:(0,r.JIDAttribute)("from"),id:(0,r.attribute)("id"),lang:(0,r.languageAttribute)(),to:(0,r.JIDAttribute)("to")},namespace:e,path:"presence",type:e,typeField:"streamType"})),f=[o,a,c,...l,...[{element:"mechanisms",fields:{mechanisms:(0,r.multipleChildText)(null,"mechanism")},namespace:s.NS_SASL,path:"features.sasl"},{element:"abort",namespace:s.NS_SASL,path:"sasl",type:"abort",typeField:"type"},{element:"auth",fields:{mechanism:(0,r.attribute)("mechanism"),value:(0,r.textBuffer)("base64")},namespace:s.NS_SASL,path:"sasl",type:"auth",typeField:"type"},{element:"challenge",fields:{value:(0,r.textBuffer)("base64")},namespace:s.NS_SASL,path:"sasl",type:"challenge",typeField:"type"},{element:"response",fields:{value:(0,r.textBuffer)("base64")},namespace:s.NS_SASL,path:"sasl",type:"response",typeField:"type"},{element:"success",fields:{value:(0,r.textBuffer)("base64")},namespace:s.NS_SASL,path:"sasl",type:"success",typeField:"type"},{element:"failure",fields:{alternateLanguageText:(0,r.childAlternateLanguageText)(s.NS_SASL,"text"),condition:(0,r.childEnum)(s.NS_SASL,Object.values(i.SASLFailureCondition)),text:(0,r.childText)(s.NS_SASL,"text")},namespace:s.NS_SASL,path:"sasl",type:"failure",typeField:"type"}],...[{aliases:["features.tls"],defaultType:"start",element:"starttls",fields:{required:(0,r.childBoolean)(null,"required")},namespace:s.NS_STARTTLS,path:"tls",type:"start",typeField:"type"},{element:"proceed",namespace:s.NS_STARTTLS,path:"tls",type:"proceed",typeField:"type"},{element:"failure",namespace:s.NS_STARTTLS,path:"tls",type:"failure",typeField:"type"}],...d,...h,...p,{aliases:["features.bind","iq.bind"],element:"bind",fields:{jid:(0,r.childText)(null,"jid"),resource:(0,r.childText)(null,"resource")},namespace:s.NS_BIND}];t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s=[(0,i.extendStreamFeatures)({rosterPreApproval:(0,i.childBoolean)(r.NS_SUBSCRIPTION_PREAPPROVAL,"sub"),rosterVersioning:(0,i.childBoolean)(r.NS_ROSTER_VERSIONING,"ver")}),(0,i.extendMessage)({alternateLanguageBodies:(0,i.childAlternateLanguageText)(null,"body"),alternateLanguageSubjects:(0,i.childAlternateLanguageText)(null,"subject"),body:(0,i.childText)(null,"body"),hasSubject:(0,i.childBoolean)(null,"subject"),parentThread:(0,i.childAttribute)(null,"thread","parent"),subject:(0,i.childText)(null,"subject"),thread:(0,i.childText)(null,"thread"),type:(0,i.attribute)("type")}),(0,i.extendPresence)({alternateLanguageStatuses:(0,i.childAlternateLanguageText)(null,"status"),priority:(0,i.childInteger)(null,"priority",0),show:(0,i.childText)(null,"show"),status:(0,i.childText)(null,"status"),type:(0,i.attribute)("type")}),{element:"query",fields:{version:(0,i.attribute)("ver",void 0,{emitEmpty:!0})},namespace:r.NS_ROSTER,path:"iq.roster"},{aliases:[{path:"iq.roster.items",multiple:!0}],element:"item",fields:{groups:(0,i.multipleChildText)(null,"group"),jid:(0,i.JIDAttribute)("jid"),name:(0,i.attribute)("name"),pending:(0,i.attribute)("ask"),preApproved:(0,i.booleanAttribute)("approved"),subscription:(0,i.attribute)("subscription")},namespace:r.NS_ROSTER}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s=[{element:"open",fields:{from:(0,i.attribute)("from"),id:(0,i.attribute)("id"),lang:(0,i.languageAttribute)(),to:(0,i.attribute)("to"),version:(0,i.attribute)("version")},namespace:r.NS_FRAMING,path:"stream",type:"open"},{element:"close",fields:{seeOtherURI:(0,i.attribute)("see-other-uri")},namespace:r.NS_FRAMING,path:"stream",type:"close"}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(8),r=n(3),s=n(2),o=[{aliases:[{path:"message.forms",multiple:!0}],element:"x",fields:{instructions:{...(0,r.multipleChildText)(null,"instructions"),exportOrder:2},reported:{...(0,r.splicePath)(null,"reported","dataformField",!0),exportOrder:3},title:{...(0,r.childText)(null,"title"),exportOrder:1},type:(0,r.attribute)("type")},namespace:s.NS_DATAFORM,optionalNamespaces:{xdv:s.NS_DATAFORM_VALIDATION},path:"dataform"},{aliases:[{path:"dataform.fields",multiple:!0},{path:"dataform.items.fields",multiple:!0}],element:"field",fields:{description:(0,r.childText)(null,"desc"),label:(0,r.attribute)("label"),name:(0,r.attribute)("var"),rawValues:{...(0,r.multipleChildText)(null,"value"),exporter:()=>null},required:(0,r.childBoolean)(null,"required"),type:(0,r.attribute)("type"),value:{importer(e,t){const n=e.getAttribute("type"),o=(0,r.multipleChildText)(s.NS_DATAFORM,"value").importer(e,t),a=o[0];switch(n){case i.DataFormFieldType.TextMultiple:case i.DataFormFieldType.ListMultiple:case i.DataFormFieldType.JIDMultiple:return o;case i.DataFormFieldType.Hidden:case i.DataFormFieldType.Fixed:return 1===o.length?a:o;case i.DataFormFieldType.Boolean:if(a)return"1"===a||"true"===a;break;default:return a}},exporter(e,t,n){const i=(0,r.multipleChildText)(null,"value");let o=[];const a=n.data&&n.data.rawValues?n.data.rawValues[0]:void 0;if("boolean"==typeof t)o="true"===a||"false"===a?[a]:[t?"1":"0"];else if(Array.isArray(t))for(const e of t)o.push(e.toString());else o=[t.toString()];i.exporter(e,o,Object.assign({},n,{namespace:s.NS_DATAFORM}))}}},namespace:s.NS_DATAFORM,path:"dataformField"},{aliases:[{path:"dataform.fields.options",multiple:!0}],element:"option",fields:{label:(0,r.attribute)("label"),value:(0,r.childText)(null,"value")},namespace:s.NS_DATAFORM},{aliases:[{path:"dataform.items",multiple:!0}],element:"item",namespace:s.NS_DATAFORM},{element:"validate",fields:{listMax:(0,r.childIntegerAttribute)(null,"list-range","max"),listMin:(0,r.childIntegerAttribute)(null,"list-range","min"),method:(0,r.childEnum)(null,["basic","open","range","regex"],"basic"),rangeMax:(0,r.childAttribute)(null,"range","max"),rangeMin:(0,r.childAttribute)(null,"range","min"),regex:(0,r.childText)(null,"regex"),type:(0,r.attribute)("datatype","xs:string")},namespace:s.NS_DATAFORM_VALIDATION,path:"dataform.fields.validation"}];t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s=[{aliases:["presence.legacyLastActivity","iq.lastActivity"],element:"query",fields:{seconds:(0,i.integerAttribute)("seconds"),status:(0,i.text)()},namespace:r.NS_LAST_ACTIVITY}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s=[{element:"query",fields:{activeList:(0,i.childAttribute)(null,"active","name"),defaultList:(0,i.childAttribute)(null,"default","name")},namespace:r.NS_PRIVACY,path:"iq.privacy"},{aliases:[{path:"iq.privacy.lists",multiple:!0}],element:"list",fields:{name:(0,i.attribute)("name")},namespace:r.NS_PRIVACY},{aliases:[{path:"iq.privacy.lists.items",multiple:!0}],element:"item",fields:{action:(0,i.attribute)("action"),incomingPresence:(0,i.childBoolean)(null,"presence-in"),iq:(0,i.childBoolean)(null,"iq"),messages:(0,i.childBoolean)(null,"message"),order:(0,i.integerAttribute)("order"),outgoingPresence:(0,i.childBoolean)(null,"presence-out"),type:(0,i.attribute)("type"),value:(0,i.attribute)("value")},namespace:r.NS_PRIVACY}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s=[{aliases:["iq.disco","message.disco","features.disco"],childrenExportOrder:{identities:1,features:2,extensions:3},element:"query",fields:{features:(0,i.multipleChildAttribute)(null,"feature","var"),node:(0,i.attribute)("node")},namespace:r.NS_DISCO_INFO,path:"disco",type:"info",typeField:"type"},{aliases:[{path:"disco.identities",selector:"info",multiple:!0}],element:"identity",fields:{category:(0,i.attribute)("category"),lang:(0,i.languageAttribute)(),name:(0,i.attribute)("name"),type:(0,i.attribute)("type")},namespace:r.NS_DISCO_INFO},{aliases:[{path:"disco.items",multiple:!0,selector:"items"}],element:"item",fields:{jid:(0,i.JIDAttribute)("jid"),name:(0,i.attribute)("name"),node:(0,i.attribute)("node")},namespace:r.NS_DISCO_ITEMS},{aliases:[{path:"disco.items",multiple:!0,selector:"info"}],element:"item",fields:{category:(0,i.JIDAttribute)("category"),lang:(0,i.languageAttribute)(),name:(0,i.attribute)("name"),type:(0,i.attribute)("type")},namespace:r.NS_DISCO_INFO},(0,i.addAlias)(r.NS_DATAFORM,"x",[{path:"disco.extensions",multiple:!0,selector:"info"}]),(0,i.addAlias)(r.NS_RSM,"set",[{path:"disco.paging",selector:"items"}]),{aliases:["iq.disco","message.disco","features.disco"],element:"query",fields:{node:(0,i.attribute)("node")},namespace:r.NS_DISCO_ITEMS,path:"disco",type:"items",typeField:"type"}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s=[(0,i.extendMessage)({addresses:(0,i.splicePath)(r.NS_ADDRESS,"addresses","extendedAddress",!0)}),(0,i.extendPresence)({addresses:(0,i.splicePath)(r.NS_ADDRESS,"addresses","extendedAddress",!0)}),{element:"address",fields:{alternateLanguageDescriptions:(0,i.childAlternateLanguageText)(null,"desc"),delivered:(0,i.booleanAttribute)("delivered"),description:(0,i.attribute)("desc"),jid:(0,i.JIDAttribute)("jid"),node:(0,i.attribute)("node"),type:(0,i.attribute)("type"),uri:(0,i.attribute)("uri")},namespace:r.NS_ADDRESS,path:"extendedAddress"}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s=[(0,i.addAlias)(r.NS_DATAFORM,"x",[{path:"iq.muc.form",selector:"configure"}]),{defaultType:"info",element:"x",fields:{password:(0,i.childText)(null,"password")},namespace:r.NS_MUC,path:"presence.muc",type:"join",typeField:"type"},{aliases:[{path:"presence.muc.history",selector:"join"}],element:"history",fields:{maxCharacters:(0,i.integerAttribute)("maxchars"),maxStanzas:(0,i.integerAttribute)("maxstanzas"),seconds:(0,i.integerAttribute)("seconds"),since:(0,i.dateAttribute)("since")},namespace:r.NS_MUC},{aliases:["presence.muc","message.muc"],defaultType:"info",element:"x",fields:{action:(0,i.childEnum)(null,["invite","decline","destroy"]),actor:(0,i.splicePath)(null,"item","mucactor"),affiliation:(0,i.childAttribute)(null,"item","affiliation"),jid:(0,i.childJIDAttribute)(null,"item","jid"),nick:(0,i.childAttribute)(null,"item","nick"),password:(0,i.childText)(null,"password"),reason:(0,i.deepChildText)([{namespace:null,element:"item"},{namespace:null,element:"reason"}]),role:(0,i.childAttribute)(null,"item","role"),statusCodes:(0,i.multipleChildAttribute)(null,"status","code")},namespace:r.NS_MUC_USER,type:"info",typeField:"type",typeOrder:1},{element:"actor",fields:{jid:(0,i.JIDAttribute)("jid"),nick:(0,i.attribute)("nick")},namespace:r.NS_MUC_USER,path:"mucactor"},{element:"destroy",fields:{jid:(0,i.JIDAttribute)("jid"),password:(0,i.childText)(null,"password"),reason:(0,i.childText)(null,"reason")},namespace:r.NS_MUC_USER,path:"presence.muc.destroy"},{aliases:[{path:"message.muc.invite",multiple:!0}],element:"invite",fields:{continue:(0,i.childBoolean)(null,"continue"),from:(0,i.JIDAttribute)("from"),reason:(0,i.childText)(null,"reason"),thread:(0,i.childAttribute)(null,"continue","thread"),to:(0,i.JIDAttribute)("to")},namespace:r.NS_MUC_USER},{element:"decline",fields:{from:(0,i.JIDAttribute)("from"),reason:(0,i.childText)(null,"reason"),to:(0,i.JIDAttribute)("to")},namespace:r.NS_MUC_USER,path:"message.muc",type:"decline"},{element:"query",namespace:r.NS_MUC_ADMIN,path:"iq.muc",type:"user-list",typeField:"type"},{aliases:[{path:"iq.muc.users",multiple:!0,selector:"user-list"}],element:"item",fields:{affiliation:(0,i.attribute)("affiliation"),jid:(0,i.JIDAttribute)("jid"),nick:(0,i.attribute)("nick"),reason:(0,i.childText)(null,"reason"),role:(0,i.attribute)("role")},namespace:r.NS_MUC_ADMIN},{aliases:["iq.muc.users.actor"],element:"actor",fields:{jid:(0,i.JIDAttribute)("jid"),nick:(0,i.attribute)("nick")},namespace:r.NS_MUC_ADMIN},{element:"query",namespace:r.NS_MUC_OWNER,path:"iq.muc",type:"configure",typeField:"type"},{aliases:[{path:"iq.muc.destroy",selector:"configure"}],element:"destroy",fields:{jid:(0,i.JIDAttribute)("jid"),password:(0,i.childText)(null,"password"),reason:(0,i.childText)(null,"reason")},namespace:r.NS_MUC_OWNER},{element:"x",fields:{action:(0,i.staticValue)("invite"),continue:(0,i.booleanAttribute)("continue"),jid:(0,i.JIDAttribute)("jid"),legacyReason:(0,i.text)(),password:(0,i.attribute)("password"),reason:(0,i.attribute)("reason"),thread:(0,i.attribute)("thread")},namespace:r.NS_MUC_DIRECT_INVITE,path:"message.muc",type:"direct-invite",typeOrder:2},{element:"unique",fields:{name:(0,i.text)()},namespace:r.NS_MUC_UNIQUE,path:"iq.muc",type:"unique"},(0,i.extendMessage)({legacyMUC:{exporter(e,t,n){const i=n.registry?n.registry.export("message.muc",{...t,type:"direct-invite"}):void 0;i&&e.appendChild(i)},exportOrder:100001,importer(e,t){if(!(0,i.findAll)(e,r.NS_MUC_USER,"x")[0])return;const n=(0,i.findAll)(e,r.NS_MUC_DIRECT_INVITE,"x")[0];return n&&t.registry?t.registry.import(n,{...t,path:"message"}):void 0},importOrder:-1}})];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s=[{aliases:["iq.ibb","message.ibb"],element:"open",fields:{ack:{importer:(e,t)=>"message"!==(0,i.attribute)("stanza","iq").importer(e,t),exporter(e,t,n){(0,i.attribute)("stanza").exporter(e,t?"iq":"message",n)}},blockSize:(0,i.integerAttribute)("block-size"),sid:(0,i.attribute)("sid")},namespace:r.NS_IBB,type:"open",typeField:"action"},{aliases:["iq.ibb","message.ibb"],element:"close",fields:{sid:(0,i.attribute)("sid")},namespace:r.NS_IBB,type:"close",typeField:"action"},{aliases:["iq.ibb","message.ibb"],element:"data",fields:{data:(0,i.textBuffer)("base64"),seq:(0,i.integerAttribute)("seq"),sid:(0,i.attribute)("sid")},namespace:r.NS_IBB,type:"data",typeField:"action"}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s=[{aliases:[{path:"bookmarkStorage",impliedType:!0},{path:"iq.privateStorage.bookmarks",impliedType:!0},...(0,i.pubsubItemContentAliases)()],element:"storage",namespace:r.NS_BOOKMARKS,type:r.NS_BOOKMARKS,typeField:"itemType"},{aliases:[{path:"bookmarkStorage.rooms",multiple:!0}],element:"conference",fields:{autoJoin:(0,i.booleanAttribute)("autojoin"),jid:(0,i.JIDAttribute)("jid"),name:(0,i.attribute)("name"),nick:(0,i.childText)(null,"nick"),password:(0,i.childText)(null,"password")},namespace:r.NS_BOOKMARKS}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i={element:"query",namespace:n(2).NS_PRIVATE,path:"iq.privateStorage"};t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s=[(0,i.addAlias)(r.NS_DATAFORM,"x",["iq.command.form"]),(0,i.extendStanzaError)({commandError:(0,i.childEnum)(r.NS_ADHOC_COMMANDS,["bad-action","bad-locale","bad-payload","bad-sessionid","malformed-action","session-expired"])}),{element:"command",fields:{action:(0,i.attribute)("action"),node:(0,i.attribute)("node"),sid:(0,i.attribute)("sessionid"),status:(0,i.attribute)("status")},namespace:r.NS_ADHOC_COMMANDS,path:"iq.command"},{element:"actions",fields:{complete:(0,i.childBoolean)(null,"complete"),execute:(0,i.attribute)("execute"),next:(0,i.childBoolean)(null,"next"),prev:(0,i.childBoolean)(null,"prev")},namespace:r.NS_ADHOC_COMMANDS,path:"iq.command.availableActions"},{aliases:[{path:"iq.command.notes",multiple:!0}],element:"note",fields:{type:(0,i.attribute)("type"),value:(0,i.text)()},namespace:r.NS_ADHOC_COMMANDS}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s="vcardTemp.records";function o(e,t){return{aliases:[{multiple:!0,path:s}],element:e,fields:{value:(0,i.text)()},namespace:r.NS_VCARD_TEMP,type:t,typeField:"type"}}const a=[{aliases:[{path:"iq.vcard"}],defaultType:r.NS_VCARD_TEMP,element:"vCard",fields:{fullName:(0,i.childText)(null,"FN")},namespace:r.NS_VCARD_TEMP,path:"vcardTemp",type:r.NS_VCARD_TEMP,typeField:"format"},{element:"N",fields:{additional:{...(0,i.childText)(null,"MIDDLE"),order:3},family:{...(0,i.childText)(null,"FAMILY"),order:1},given:{...(0,i.childText)(null,"GIVEN"),order:2},prefix:{...(0,i.childText)(null,"PREFIX"),order:4},suffix:{...(0,i.childText)(null,"SUFFIX"),order:5}},namespace:r.NS_VCARD_TEMP,path:"vcardTemp.name"},o("NICKNAME","nickname"),o("BDAY","birthday"),o("JABBERID","jid"),o("TZ","timezone"),o("TITLE","title"),o("ROLE","role"),o("URL","url"),o("NOTE","note"),o("SORT-STRING","sort"),o("UID","uid"),o("REV","revision"),o("PRODID","productId"),o("DESC","description"),{aliases:[{multiple:!0,path:s}],element:"EMAIL",fields:{preferred:(0,i.childBoolean)(null,"PREF"),types:(0,i.multipleChildEnum)(null,[["home","HOME"],["work","WORK"],["internet","INTERNET"]]),value:(0,i.childText)(null,"USERID")},namespace:r.NS_VCARD_TEMP,type:"email"},{aliases:[{path:s,multiple:!0}],element:"ORG",fields:{units:{...(0,i.multipleChildText)(null,"ORGUNIT"),order:2},value:{...(0,i.childText)(null,"ORGNAME"),order:1}},namespace:r.NS_VCARD_TEMP,type:"organization",typeField:"type"},{aliases:[{multiple:!0,path:s}],element:"ADR",fields:{city:(0,i.childText)(null,"LOCALITY"),code:(0,i.childText)(null,"PCODE"),country:(0,i.childText)(null,"CTRY"),pobox:(0,i.childText)(null,"POBOX"),preferred:(0,i.childBoolean)(null,"PREF"),region:(0,i.childText)(null,"REGION"),street:(0,i.childText)(null,"STREET"),street2:(0,i.childText)(null,"EXTADD"),types:(0,i.multipleChildEnum)(null,[["home","HOME"],["work","WORK"],["domestic","DOM"],["international","INTL"],["postal","POSTAL"],["parcel","PARCEL"]])},namespace:r.NS_VCARD_TEMP,type:"address",typeField:"type"},{aliases:[{multiple:!0,path:s}],element:"LABEL",fields:{lines:(0,i.multipleChildText)(null,"LINE"),preferred:(0,i.childBoolean)(null,"PREF"),types:(0,i.multipleChildEnum)(null,[["home","HOME"],["work","WORK"]])},namespace:r.NS_VCARD_TEMP,type:"addressLabel",typeField:"type"},{aliases:[{multiple:!0,path:s}],element:"TEL",fields:{preferred:(0,i.childBoolean)(null,"PREF"),types:(0,i.multipleChildEnum)(null,[["home","HOME"],["work","WORK"],["cell","CELL"],["fax","FAX"],["voice","VOICE"],["msg","MSG"]]),value:(0,i.childText)(null,"NUMBER","",!0)},namespace:r.NS_VCARD_TEMP,type:"tel",typeField:"type"},{aliases:[{multiple:!0,path:s}],element:"PHOTO",fields:{data:(0,i.childText)(null,"BINVAL"),mediaType:(0,i.childText)(null,"TYPE"),url:(0,i.childText)(null,"EXTVAL")},namespace:r.NS_VCARD_TEMP,type:"photo",typeField:"type"},{aliases:[{multiple:!0,path:s}],element:"LOGO",fields:{data:(0,i.childText)(null,"BINVAL"),mediaType:(0,i.childText)(null,"TYPE"),url:(0,i.childText)(null,"EXTVAL")},namespace:r.NS_VCARD_TEMP,type:"logo",typeField:"type"},{aliases:[{multiple:!0,path:s}],element:"CATEGORIES",fields:{value:(0,i.multipleChildText)(null,"KEYWORD")},namespace:r.NS_VCARD_TEMP,type:"categories",typeField:"type"}];t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s=[(0,i.addAlias)(r.NS_DATAFORM,"x",["iq.search.form"]),(0,i.addAlias)(r.NS_RSM,"set",["iq.search.paging"]),{element:"query",fields:{email:(0,i.childText)(null,"email"),familyName:(0,i.childText)(null,"last"),givenName:(0,i.childText)(null,"first"),instructions:(0,i.childText)(null,"instructions"),nick:(0,i.childText)(null,"nick")},namespace:r.NS_SEARCH,path:"iq.search"},{aliases:[{path:"iq.search.items",multiple:!0}],element:"item",fields:{email:(0,i.childText)(null,"email"),familyName:(0,i.childText)(null,"last"),givenName:(0,i.childText)(null,"first"),jid:(0,i.JIDAttribute)("jid"),nick:(0,i.childText)(null,"nick")},namespace:r.NS_SEARCH}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s={aliases:["iq.pubsub.paging"],element:"set",fields:{after:(0,i.childText)(null,"after"),before:(0,i.childText)(null,"before"),count:(0,i.childInteger)(null,"count"),first:(0,i.childText)(null,"first"),firstIndex:(0,i.childIntegerAttribute)(null,"first","index"),index:(0,i.childInteger)(null,"index"),last:(0,i.childText)(null,"last"),max:(0,i.childInteger)(null,"max")},namespace:r.NS_RSM,path:"paging"};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(8),r=n(3),s=n(2),o={configurable:(0,r.childBoolean)(null,"subscribe-options"),configurationRequired:(0,r.deepChildBoolean)([{namespace:null,element:"subscribe-options"},{namespace:null,element:"required"}]),jid:(0,r.JIDAttribute)("jid"),node:(0,r.attribute)("node"),state:(0,r.attribute)("subscription"),subid:(0,r.attribute)("subid")},a={node:(0,r.attribute)("node")},c=[{aliases:["pubsub","iq.pubsub","message.pubsub"],childrenExportOrder:{configure:0,create:100,publish:100,subscribe:100,subscriptionOptions:0},defaultType:"user",element:"pubsub",fields:{publishOptions:(0,r.splicePath)(null,"publish-options","dataform")},namespace:s.NS_PUBSUB,type:"user",typeField:"context"},{aliases:["pubsub","iq.pubsub","message.pubsub"],defaultType:"user",element:"pubsub",fields:{purge:(0,r.childAttribute)(null,"purge","node")},namespace:s.NS_PUBSUB_OWNER,type:"owner",typeField:"context"},(0,r.addAlias)(s.NS_DATAFORM,"x",["iq.pubsub.configure.form","iq.pubsub.defaultConfiguration.form","iq.pubsub.defaultSubscriptionOptions.form","iq.pubsub.subscriptionOptions.form","message.pubsub.configuration.form"]),(0,r.addAlias)(s.NS_RSM,"set",["iq.pubsub.fetch.paging"]),(0,r.extendStanzaError)({pubsubError:(0,r.childEnum)(s.NS_PUBSUB_ERRORS,Object.values(i.PubsubErrorCondition)),pubsubUnsupportedFeature:(0,r.childAttribute)(s.NS_PUBSUB_ERRORS,"unsupported","feature")}),{element:"subscribe",fields:{jid:(0,r.JIDAttribute)("jid"),node:(0,r.attribute)("node")},namespace:s.NS_PUBSUB,path:"iq.pubsub.subscribe"},{element:"unsubscribe",fields:{jid:(0,r.JIDAttribute)("jid"),node:(0,r.attribute)("node"),subid:(0,r.attribute)("subid")},namespace:s.NS_PUBSUB,path:"iq.pubsub.unsubscribe"},{element:"options",fields:{jid:(0,r.JIDAttribute)("jid"),node:(0,r.attribute)("node"),subid:(0,r.attribute)("subid")},namespace:s.NS_PUBSUB,path:"iq.pubsub.subscriptionOptions"},{aliases:[{path:"iq.pubsub.subscriptions",selector:"user",impliedType:!0}],element:"subscriptions",fields:{jid:(0,r.JIDAttribute)("jid"),node:(0,r.attribute)("node")},namespace:s.NS_PUBSUB,type:"user"},{aliases:[{path:"iq.pubsub.subscriptions",selector:"owner",impliedType:!0}],element:"subscriptions",fields:{jid:(0,r.JIDAttribute)("jid"),node:(0,r.attribute)("node")},namespace:s.NS_PUBSUB_OWNER,type:"owner"},{aliases:[{path:"iq.pubsub.subscription",selector:"owner"},{impliedType:!0,multiple:!0,path:"iq.pubsub.subscriptions.items",selector:"owner"}],element:"subscription",fields:o,namespace:s.NS_PUBSUB},{aliases:[{path:"iq.pubsub.subscription",selector:"user"},{impliedType:!0,multiple:!0,path:"iq.pubsub.subscriptions.items",selector:"user"}],element:"subscription",fields:o,namespace:s.NS_PUBSUB,type:"user"},{aliases:[{impliedType:!0,multiple:!0,path:"iq.pubsub.subscriptions.items",selector:"owner"}],element:"subscription",fields:o,namespace:s.NS_PUBSUB_OWNER,type:"owner"},{aliases:[{path:"iq.pubsub.affiliations",selector:"user",impliedType:!0},{path:"message.pubsub.affiliations",selector:"user",impliedType:!0}],element:"affiliations",fields:a,namespace:s.NS_PUBSUB,type:"user"},{aliases:[{path:"iq.pubsub.affiliations",selector:"owner",impliedType:!0}],element:"affiliations",fields:a,namespace:s.NS_PUBSUB_OWNER,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:(0,r.attribute)("affiliation"),jid:(0,r.JIDAttribute)("jid"),node:(0,r.attribute)("node")},namespace:s.NS_PUBSUB,type:"user"},{aliases:[{impliedType:!0,multiple:!0,path:"iq.pubsub.affiliations.items",selector:"owner"}],element:"affiliation",fields:{affiliation:(0,r.attribute)("affiliation"),jid:(0,r.JIDAttribute)("jid"),node:(0,r.attribute)("node")},namespace:s.NS_PUBSUB_OWNER,type:"owner"},{element:"create",fields:a,namespace:s.NS_PUBSUB,path:"iq.pubsub.create"},{aliases:[{path:"iq.pubsub.destroy",selector:"owner"}],element:"delete",fields:{node:(0,r.attribute)("node"),redirect:(0,r.childAttribute)(null,"redirect","uri")},namespace:s.NS_PUBSUB_OWNER},{aliases:[{path:"iq.pubsub.configure",selector:"owner",impliedType:!0}],element:"configure",fields:a,namespace:s.NS_PUBSUB_OWNER,type:"owner"},{aliases:[{path:"iq.pubsub.configure",selector:"user",impliedType:!0}],element:"configure",fields:a,namespace:s.NS_PUBSUB,type:"user"},{element:"default",fields:{node:(0,r.attribute)("node")},namespace:s.NS_PUBSUB,path:"iq.pubsub.defaultSubscriptionOptions"},{element:"default",fields:{},namespace:s.NS_PUBSUB_OWNER,path:"iq.pubsub.defaultConfiguration"},{element:"publish",fields:a,namespace:s.NS_PUBSUB,path:"iq.pubsub.publish"},{element:"retract",fields:{id:(0,r.childAttribute)(null,"item","id"),node:(0,r.attribute)("node"),notify:(0,r.booleanAttribute)("notify")},namespace:s.NS_PUBSUB,path:"iq.pubsub.retract"},{element:"items",fields:{max:(0,r.integerAttribute)("max_items"),node:(0,r.attribute)("node")},namespace:s.NS_PUBSUB,path:"iq.pubsub.fetch"},{aliases:["pubsubitem","iq.pubsub.publish.item",{multiple:!0,path:"iq.pubsub.fetch.items"}],element:"item",fields:{id:(0,r.attribute)("id"),publisher:(0,r.JIDAttribute)("publisher")},namespace:s.NS_PUBSUB},{element:"event",fields:{eventType:(0,r.childEnum)(null,["purge","delete","subscription","configuration","items"])},namespace:s.NS_PUBSUB_EVENT,path:"message.pubsub",type:"event",typeField:"context"},{aliases:[{path:"message.pubsub.items.published",multiple:!0}],element:"item",fields:{id:(0,r.attribute)("id"),publisher:(0,r.JIDAttribute)("publisher")},namespace:s.NS_PUBSUB_EVENT,path:"pubsubeventitem"},{element:"purge",fields:a,namespace:s.NS_PUBSUB_EVENT,path:"message.pubsub.purge"},{element:"delete",fields:{node:(0,r.attribute)("node"),redirect:(0,r.childAttribute)(null,"redirect","uri")},namespace:s.NS_PUBSUB_EVENT,path:"message.pubsub.delete"},{aliases:[{path:"message.pubsub.subscription",selector:"event",impliedType:!0}],element:"subscription",fields:{expires:(l="expiry",{importer(e){const t=e.getAttribute(l);return"presence"===t?t:t?new Date(t):void 0},exporter(e,t){let n;n="string"==typeof t?t:t.toISOString(),e.setAttribute(l,n)}}),jid:(0,r.JIDAttribute)("jid"),node:(0,r.attribute)("node"),subid:(0,r.attribute)("subid"),type:(0,r.attribute)("subscription")},namespace:s.NS_PUBSUB_EVENT,type:"event"},{element:"configuration",fields:a,namespace:s.NS_PUBSUB_EVENT,path:"message.pubsub.configuration"},{element:"items",fields:{node:(0,r.attribute)("node"),retracted:(0,r.multipleChildAttribute)(null,"retract","id")},namespace:s.NS_PUBSUB_EVENT,path:"message.pubsub.items"}];var l;t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s=[{element:"query",fields:{activate:(0,i.childText)(null,"activate"),address:(0,i.attribute)("dstaddr"),candidateUsed:(0,i.childJIDAttribute)(null,"streamhost-used","jid"),mode:(0,i.attribute)("mode","tcp"),sid:(0,i.attribute)("sid"),udpSuccess:(0,i.childAttribute)(null,"udpsuccess","dstaddr")},namespace:r.NS_SOCKS5,path:"iq.socks5"},{aliases:[{multiple:!0,path:"iq.socks5.candidates"}],element:"streamhost",fields:{host:(0,i.attribute)("host"),jid:(0,i.JIDAttribute)("jid"),port:(0,i.integerAttribute)("port"),uri:(0,i.attribute)("uri")},namespace:r.NS_SOCKS5}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s=[{aliases:[{multiple:!0,path:"message.links"}],element:"x",fields:{description:(0,i.childText)(null,"desc"),url:(0,i.childText)(null,"url")},namespace:r.NS_OOB},{element:"query",fields:{description:(0,i.childText)(null,"desc"),url:(0,i.childText)(null,"url")},namespace:r.NS_OOB_TRANSFER,path:"iq.transferLink"}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s={element:"html",fields:{alternateLanguageBodies:(0,i.childAlternateLanguageRawElement)(r.NS_XHTML,"body","xhtmlim"),body:(0,i.childLanguageRawElement)(r.NS_XHTML,"body","xhtmlim")},namespace:r.NS_XHTML_IM,path:"message.html"};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s=[(0,i.extendStreamFeatures)({inbandRegistration:(0,i.childBoolean)(r.NS_INBAND_REGISTRATION,"register")}),(0,i.addAlias)(r.NS_DATAFORM,"x",["iq.account.form"]),(0,i.addAlias)(r.NS_OOB,"x",["iq.account.registrationLink"]),{element:"query",fields:{address:(0,i.childText)(null,"address"),date:(0,i.childDate)(null,"date"),email:(0,i.childText)(null,"email"),familyName:(0,i.childText)(null,"last"),fullName:(0,i.childText)(null,"name"),givenName:(0,i.childText)(null,"first"),instructions:(0,i.childText)(null,"instructions"),key:(0,i.childText)(null,"key"),locality:(0,i.childText)(null,"city"),misc:(0,i.childText)(null,"misc"),nick:(0,i.childText)(null,"nick"),password:(0,i.childText)(null,"password"),phone:(0,i.childText)(null,"phone"),postalCode:(0,i.childText)(null,"zip"),region:(0,i.childText)(null,"state"),registered:(0,i.childBoolean)(null,"registered"),remove:(0,i.childBoolean)(null,"remove"),text:(0,i.childText)(null,"text"),uri:(0,i.childText)(null,"uri"),username:(0,i.childText)(null,"username")},namespace:r.NS_REGISTER,path:"iq.account"}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s={aliases:[{path:"message.geoloc",impliedType:!0},{path:"dataform.fields.geoloc",impliedType:!0},...(0,i.pubsubItemContentAliases)()],element:"geoloc",fields:{accuracy:(0,i.childFloat)(null,"accuracy"),altitude:(0,i.childFloat)(null,"alt"),altitudeAccuracy:(0,i.childFloat)(null,"altaccuracy"),area:(0,i.childText)(null,"area"),building:(0,i.childText)(null,"building"),country:(0,i.childText)(null,"country"),countryCode:(0,i.childText)(null,"countrycode"),datum:(0,i.childText)(null,"datum"),description:(0,i.childText)(null,"description"),error:(0,i.childFloat)(null,"error"),floor:(0,i.childText)(null,"floor"),heading:(0,i.childFloat)(null,"bearing"),lang:(0,i.languageAttribute)(),latitude:(0,i.childFloat)(null,"lat"),locality:(0,i.childText)(null,"locality"),longitude:(0,i.childFloat)(null,"lon"),postalCode:(0,i.childText)(null,"postalcode"),region:(0,i.childText)(null,"region"),room:(0,i.childText)(null,"room"),speed:(0,i.childFloat)(null,"speed"),street:(0,i.childText)(null,"street"),text:(0,i.childText)(null,"text"),timestamp:(0,i.childDate)(null,"timestamp"),tzo:(0,i.childTimezoneOffset)(null,"tzo"),uri:(0,i.childText)(null,"uri")},namespace:r.NS_GEOLOC,type:r.NS_GEOLOC};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s=[{aliases:(0,i.pubsubItemContentAliases)(),element:"data",fields:{data:(0,i.textBuffer)("base64")},namespace:r.NS_AVATAR_DATA,path:"avatar",type:r.NS_AVATAR_DATA,typeField:"itemType"},{aliases:[{path:"avatar",impliedType:!0},...(0,i.pubsubItemContentAliases)()],element:"metadata",namespace:r.NS_AVATAR_METADATA,type:r.NS_AVATAR_METADATA,typeField:"itemType",childrenExportOrder:{versions:1,pointers:2}},{aliases:[{multiple:!0,path:"avatar.versions",selector:r.NS_AVATAR_METADATA}],element:"info",fields:{bytes:(0,i.integerAttribute)("bytes"),height:(0,i.integerAttribute)("height"),id:(0,i.attribute)("id"),mediaType:(0,i.attribute)("type"),uri:(0,i.attribute)("url"),width:(0,i.integerAttribute)("width")},namespace:r.NS_AVATAR_METADATA},{aliases:[{multiple:!0,path:"avatar.pointers",selector:r.NS_AVATAR_METADATA}],element:"pointer",fields:{bytes:(0,i.integerAttribute)("bytes"),height:(0,i.integerAttribute)("height"),id:(0,i.attribute)("id"),mediaType:(0,i.attribute)("type"),width:(0,i.integerAttribute)("width")},namespace:r.NS_AVATAR_METADATA}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(8),r=n(3),s=n(2);t.default=(0,r.extendMessage)({chatState:(0,r.childEnum)(s.NS_CHAT_STATES,Object.values(i.ChatState))})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s={element:"query",fields:{name:(0,i.childText)(null,"name"),os:(0,i.childText)(null,"os"),version:(0,i.childText)(null,"version")},namespace:r.NS_VERSION,path:"iq.softwareVersion"};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(8),r=n(3),s=n(2),o={aliases:[{path:"message.mood",impliedType:!0},...(0,r.pubsubItemContentAliases)()],element:"mood",fields:{alternateLanguageText:(0,r.childAlternateLanguageText)(null,"text"),text:(0,r.childText)(null,"text"),value:(0,r.childEnum)(null,i.USER_MOODS)},namespace:s.NS_MOOD,type:s.NS_MOOD};t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(8),r=n(3),s=n(2),o={aliases:[{path:"activity",impliedType:!0},...(0,r.pubsubItemContentAliases)()],element:"activity",fields:{activity:(0,r.childDoubleEnum)(null,i.USER_ACTIVITY_GENERAL,i.USER_ACTIVITY_SPECIFIC),alternateLanguageText:(0,r.childAlternateLanguageText)(null,"text"),text:(0,r.childText)(null,"text")},namespace:s.NS_ACTIVITY,type:s.NS_ACTIVITY};t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s={element:"handshake",fields:{value:(0,i.textBuffer)("hex")},namespace:r.NS_COMPONENT,path:"handshake"};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s={aliases:[{path:"presence.legacyCapabilities",multiple:!0},{path:"features.legacyCapabilities",multiple:!0}],element:"c",fields:{algorithm:(0,i.attribute)("hash"),legacy:(0,i.staticValue)(!0),node:(0,i.attribute)("node"),value:(0,i.attribute)("ver")},namespace:r.NS_DISCO_LEGACY_CAPS};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s={aliases:[{impliedType:!0,path:"tune"},...(0,i.pubsubItemContentAliases)()],element:"tune",fields:{artist:(0,i.childText)(null,"artist"),length:(0,i.childInteger)(null,"length"),rating:(0,i.childInteger)(null,"rating"),source:(0,i.childText)(null,"source"),title:(0,i.childText)(null,"title"),track:(0,i.childText)(null,"track"),uri:(0,i.childText)(null,"uri")},namespace:r.NS_TUNE,type:r.NS_TUNE};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s=["dataformLayout",{multiple:!0,path:"dataformLayout.contents"},{multiple:!0,path:"dataform.layout.contents"}],o=[{aliases:[{multiple:!0,path:"dataform.layout"}],element:"page",fields:{label:(0,i.attribute)("label")},namespace:r.NS_DATAFORM_LAYOUT},{aliases:s,element:"section",fields:{label:(0,i.attribute)("label")},namespace:r.NS_DATAFORM_LAYOUT,type:"section",typeField:"type"},{aliases:s,element:"text",fields:{value:(0,i.text)()},namespace:r.NS_DATAFORM_LAYOUT,type:"text",typeField:"type"},{aliases:s,element:"fieldref",fields:{field:(0,i.attribute)("var")},namespace:r.NS_DATAFORM_LAYOUT,type:"fieldref",typeField:"type"},{aliases:s,element:"reportedref",namespace:r.NS_DATAFORM_LAYOUT,type:"reportedref",typeField:"type"}];t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s={element:"body",fields:{acceptMediaTypes:(0,i.attribute)("accept"),ack:(0,i.integerAttribute)("ack"),authId:(0,i.attribute)("authid"),characterSets:(0,i.attribute)("charsets"),condition:(0,i.attribute)("condition"),from:(0,i.JIDAttribute)("from"),key:(0,i.attribute)("key"),lang:(0,i.languageAttribute)(),maxClientRequests:(0,i.integerAttribute)("requests"),maxHoldOpen:(0,i.integerAttribute)("hold"),maxInactivityTime:(0,i.integerAttribute)("inactivity"),maxSessionPause:(0,i.integerAttribute)("maxpause"),maxWaitTime:(0,i.integerAttribute)("wait"),mediaType:(0,i.attribute)("content"),minPollingInterval:(0,i.integerAttribute)("polling"),newKey:(0,i.attribute)("newkey"),pauseSession:(0,i.integerAttribute)("pause"),report:(0,i.integerAttribute)("report"),rid:(0,i.integerAttribute)("rid"),route:(0,i.attribute)("string"),seeOtherURI:(0,i.childText)(null,"uri"),sid:(0,i.attribute)("sid"),stream:(0,i.attribute)("stream"),time:(0,i.integerAttribute)("time"),to:(0,i.JIDAttribute)("to"),type:(0,i.attribute)("type"),version:(0,i.attribute)("ver"),xmppRestart:(0,i.namespacedBooleanAttribute)("xmpp",r.NS_BOSH_XMPP,"restart",void 0,{writeValue:e=>e?"true":"false"}),xmppRestartLogic:(0,i.namespacedBooleanAttribute)("xmpp",r.NS_BOSH_XMPP,"restartlogic",void 0,{writeValue:e=>e?"true":"false"}),xmppVersion:(0,i.namespacedAttribute)("xmpp",r.NS_BOSH_XMPP,"version")},namespace:r.NS_BOSH,path:"bosh"};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s=[(0,i.extendMessage)({headers:(0,i.splicePath)(r.NS_SHIM,"headers","header",!0)}),(0,i.extendPresence)({headers:(0,i.splicePath)(r.NS_SHIM,"headers","header",!0)}),{element:"header",fields:{name:(0,i.attribute)("name"),value:(0,i.text)()},namespace:r.NS_SHIM,path:"header"}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s=[{element:"compression",fields:{methods:(0,i.multipleChildText)(null,"method")},namespace:r.NS_COMPRESSION_FEATURE,path:"features.compression"},{element:"compress",fields:{method:(0,i.childText)(null,"method")},namespace:r.NS_COMPRESSION,path:"compression",type:"start",typeField:"type"},{aliases:["error.compressionError"],element:"failure",fields:{condition:(0,i.childEnum)(null,["unsupported-method","setup-failed","processing-failed"])},namespace:r.NS_COMPRESSION,path:"compression",type:"failure",typeField:"type"},{element:"compressed",namespace:r.NS_COMPRESSION,path:"compression",type:"success",typeField:"type"}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s=[(0,i.extendMessage)({rosterExchange:(0,i.splicePath)(r.NS_ROSTER_EXCHANGE,"x","rosterExchange",!0)}),(0,i.extendIQ)({rosterExchange:(0,i.splicePath)(r.NS_ROSTER_EXCHANGE,"x","rosterExchange",!0)}),{element:"item",fields:{action:(0,i.attribute)("action"),groups:(0,i.multipleChildText)(null,"group"),jid:(0,i.JIDAttribute)("jid"),name:(0,i.attribute)("name")},namespace:r.NS_ROSTER_EXCHANGE,path:"rosterExchange"}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2);t.default=(0,i.extendPresence)({vcardAvatar:{importer(e){const t=(0,i.findAll)(e,r.NS_VCARD_TEMP_UPDATE,"x");if(!t.length)return;const n=(0,i.findAll)(t[0],r.NS_VCARD_TEMP_UPDATE,"photo");return!n.length||n[0].getText()},exporter(e,t){const n=(0,i.findOrCreate)(e,r.NS_VCARD_TEMP_UPDATE,"x");if(""===t)(0,i.findOrCreate)(n,r.NS_VCARD_TEMP_UPDATE,"photo");else{if(!0===t)return;if(t){(0,i.findOrCreate)(n,r.NS_VCARD_TEMP_UPDATE,"photo").children.push(t)}}}}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s=[(0,i.extendMessage)({captcha:(0,i.splicePath)(r.NS_CAPTCHA,"captcha","dataform")}),(0,i.extendIQ)({captcha:(0,i.splicePath)(r.NS_CAPTCHA,"captcha","dataform")})];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(8),r=n(3),s=n(2),o=[(0,r.extendStanzaError)({jingleError:(0,r.childEnum)(s.NS_JINGLE_ERRORS_1,Object.values(i.JingleErrorCondition))}),{element:"jingle",fields:{action:(0,r.attribute)("action"),initiator:(0,r.JIDAttribute)("initiator"),responder:(0,r.JIDAttribute)("responder"),sid:(0,r.attribute)("sid")},namespace:s.NS_JINGLE_1,path:"iq.jingle"},{aliases:[{multiple:!0,path:"iq.jingle.contents"}],element:"content",fields:{creator:(0,r.attribute)("creator"),disposition:(0,r.attribute)("disposition","session"),name:(0,r.attribute)("name"),senders:(0,r.attribute)("senders","both")},namespace:s.NS_JINGLE_1},{element:"reason",fields:{alternativeSession:(0,r.childText)(null,"alternative-session"),condition:(0,r.childEnum)(null,Object.values(i.JingleReasonCondition)),text:(0,r.childText)(null,"text")},namespace:s.NS_JINGLE_1,path:"iq.jingle.reason"}];t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(8),r=n(3),s=n(2);function o(){return{importer(e,t){let n=(0,r.findAll)(e,s.NS_JINGLE_RTP_RTCP_FB_0,"rtcp-fb");const i=(0,r.attribute)("type").importer,o=(0,r.attribute)("subtype").importer,a=(0,r.attribute)("value").importer,c=[];for(const e of n){const n=i(e,t),r=o(e,t);c.push(r?{type:n,parameter:r}:{type:n})}n=(0,r.findAll)(e,s.NS_JINGLE_RTP_RTCP_FB_0,"rtcp-fb-trr-int");for(const e of n){const n=a(e,t);c.push(n?{type:"trr-int",parameter:n}:{type:"trr-int"})}return c},exporter(e,t,n){const i=(0,r.attribute)("type").exporter,o=(0,r.attribute)("subtype").exporter,a=(0,r.attribute)("value").exporter;for(const c of t){let t;"trr-int"===c.type?(t=(0,r.createElement)(s.NS_JINGLE_RTP_RTCP_FB_0,"rtcp-fb-trr-int",n.namespace,e),c.parameter&&a(t,c.parameter,n)):(t=(0,r.createElement)(s.NS_JINGLE_RTP_RTCP_FB_0,"rtcp-fb",n.namespace,e),i(t,c.type,n),c.parameter&&o(t,c.parameter,n)),e.appendChild(t)}}}}const a="iq.jingle.info",c=[{aliases:["iq.jingle.contents.application"],childrenExportOrder:{codecs:4,encryption:5,headerExtensions:6,sourceGroups:8,sources:7,streams:9},element:"description",fields:{media:(0,r.attribute)("media"),rtcpFeedback:{...o(),exportOrder:3},rtcpMux:{...(0,r.childBoolean)(null,"rtcp-mux"),exportOrder:1},rtcpReducedSize:{...(0,r.childBoolean)(null,"rtcp-reduced-size"),exportOrder:2},ssrc:(0,r.attribute)("ssrc")},namespace:s.NS_JINGLE_RTP_1,optionalNamespaces:{rtcpf:s.NS_JINGLE_RTP_RTCP_FB_0,rtph:s.NS_JINGLE_RTP_HDREXT_0},type:s.NS_JINGLE_RTP_1},{aliases:[{multiple:!0,path:"iq.jingle.contents.application.headerExtensions",selector:s.NS_JINGLE_RTP_1}],element:"rtp-hdrext",fields:{id:(0,r.integerAttribute)("id"),senders:(0,r.attribute)("senders"),uri:(0,r.attribute)("uri")},namespace:s.NS_JINGLE_RTP_HDREXT_0},{aliases:[{multiple:!0,path:"iq.jingle.contents.application.codecs",selector:s.NS_JINGLE_RTP_1},"rtpcodec"],element:"payload-type",fields:{channels:(0,r.integerAttribute)("channels"),clockRate:(0,r.integerAttribute)("clockrate"),id:(0,r.attribute)("id"),maxptime:(0,r.integerAttribute)("maxptime"),name:(0,r.attribute)("name"),parameters:(0,r.parameterMap)(s.NS_JINGLE_RTP_1,"parameter","name","value"),ptime:(0,r.integerAttribute)("ptime"),rtcpFeedback:o()},namespace:s.NS_JINGLE_RTP_1},{aliases:[{multiple:!0,path:"iq.jingle.contents.application.sources",selector:s.NS_JINGLE_RTP_1}],element:"source",fields:{parameters:(0,r.parameterMap)(s.NS_JINGLE_RTP_SSMA_0,"parameter","name","value"),ssrc:(0,r.attribute)("ssrc")},namespace:s.NS_JINGLE_RTP_SSMA_0},{aliases:[{multiple:!0,path:"iq.jingle.contents.application.sourceGroups",selector:s.NS_JINGLE_RTP_1}],element:"ssrc-group",fields:{semantics:(0,r.attribute)("semantics"),sources:(0,r.multipleChildAttribute)(null,"source","ssrc")},namespace:s.NS_JINGLE_RTP_SSMA_0},{aliases:[{multiple:!0,path:"iq.jingle.contents.application.streams",selector:s.NS_JINGLE_RTP_1}],element:"stream",fields:{id:(0,r.attribute)("id"),track:(0,r.attribute)("track")},namespace:s.NS_JINGLE_RTP_MSID_0},{aliases:[{path:"iq.jingle.contents.application.encryption",selector:s.NS_JINGLE_RTP_1}],element:"encryption",fields:{required:(0,r.booleanAttribute)("required")},namespace:s.NS_JINGLE_RTP_1},{aliases:[{multiple:!0,path:"iq.jingle.contents.application.encryption.sdes",selector:s.NS_JINGLE_RTP_1}],element:"crypto",fields:{cryptoSuite:(0,r.attribute)("crypto-suite"),keyParameters:(0,r.attribute)("key-params"),sessionParameters:(0,r.attribute)("session-params"),tag:(0,r.integerAttribute)("tag")},namespace:s.NS_JINGLE_RTP_1},{aliases:[{path:"iq.jingle.contents.application.encryption.zrtp",selector:s.NS_JINGLE_RTP_1}],element:"zrtp-hash",fields:{value:(0,r.textBuffer)("hex"),version:(0,r.attribute)("version")},namespace:s.NS_JINGLE_RTP_1},{element:"mute",fields:{creator:(0,r.attribute)("creator"),name:(0,r.attribute)("name")},namespace:s.NS_JINGLE_RTP_INFO_1,path:a,type:i.JINGLE_INFO_MUTE},{element:"unmute",fields:{creator:(0,r.attribute)("creator"),name:(0,r.attribute)("name")},namespace:s.NS_JINGLE_RTP_INFO_1,path:a,type:i.JINGLE_INFO_UNMUTE},{element:"hold",namespace:s.NS_JINGLE_RTP_INFO_1,path:a,type:i.JINGLE_INFO_HOLD},{element:"unhold",namespace:s.NS_JINGLE_RTP_INFO_1,path:a,type:i.JINGLE_INFO_UNHOLD},{element:"active",namespace:s.NS_JINGLE_RTP_INFO_1,path:a,type:i.JINGLE_INFO_ACTIVE},{element:"ringing",namespace:s.NS_JINGLE_RTP_INFO_1,path:a,type:i.JINGLE_INFO_RINGING}];t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s=[(0,i.extendMessage)({nick:(0,i.childText)(r.NS_NICK,"nick")}),(0,i.extendPresence)({nick:(0,i.childText)(r.NS_NICK,"nick")}),{aliases:(0,i.pubsubItemContentAliases)(),element:"nick",fields:{nick:(0,i.text)()},namespace:r.NS_NICK,type:r.NS_NICK}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s=e=>[{element:"transport",fields:{gatheringComplete:(0,i.childBoolean)(null,"gathering-complete"),password:(0,i.attribute)("pwd"),usernameFragment:(0,i.attribute)("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:(0,i.integerAttribute)("component"),ip:(0,i.attribute)("ip"),port:(0,i.integerAttribute)("port")},namespace:e,type:e,typeField:"transportType"},{aliases:[{impliedType:!0,multiple:!0,path:"iq.jingle.contents.transport.candidates",selector:e}],element:"candidate",fields:{component:(0,i.integerAttribute)("component"),foundation:(0,i.attribute)("foundation"),generation:(0,i.integerAttribute)("generation"),id:(0,i.attribute)("id"),ip:(0,i.attribute)("ip"),network:(0,i.integerAttribute)("network"),port:(0,i.integerAttribute)("port"),priority:(0,i.integerAttribute)("priority"),protocol:(0,i.attribute)("protocol"),relatedAddress:(0,i.attribute)("rel-addr"),relatedPort:(0,i.attribute)("rel-port"),tcpType:(0,i.attribute)("tcptype"),type:(0,i.attribute)("type")},namespace:e,type:e,typeField:"transportType"}],o=[...s(r.NS_JINGLE_ICE_0),...s(r.NS_JINGLE_ICE_UDP_1)];t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s=[{element:"transport",fields:{gatheringComplete:(0,i.childBoolean)(null,"gathering-complete"),password:(0,i.attribute)("pwd"),usernameFragment:(0,i.attribute)("ufrag")},namespace:r.NS_JINGLE_RAW_UDP_1,path:"iq.jingle.contents.transport",type:r.NS_JINGLE_RAW_UDP_1,typeField:"transportType"},{aliases:[{impliedType:!0,multiple:!0,path:"iq.jingle.contents.transport.candidates",selector:r.NS_JINGLE_RAW_UDP_1}],element:"candidate",fields:{component:(0,i.integerAttribute)("component"),foundation:(0,i.attribute)("foundation"),generation:(0,i.integerAttribute)("generation"),id:(0,i.attribute)("id"),ip:(0,i.attribute)("ip"),port:(0,i.integerAttribute)("port"),type:(0,i.attribute)("type")},namespace:r.NS_JINGLE_RAW_UDP_1,type:r.NS_JINGLE_RAW_UDP_1,typeField:"transportType"}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s=[{element:"request",namespace:r.NS_RECEIPTS,path:"message.receipt",type:"request",typeField:"type"},{element:"received",fields:{id:(0,i.attribute)("id")},namespace:r.NS_RECEIPTS,path:"message.receipt",type:"received",typeField:"type"}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s=[{element:"invisible",fields:{probe:(0,i.booleanAttribute)("probe")},namespace:r.NS_INVISIBLE_0,path:"iq.visibility",type:"invisible",typeField:"type"},{element:"visible",namespace:r.NS_INVISIBLE_0,path:"iq.visibility",type:"visible"}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s=[(0,i.extendStanzaError)({blocked:(0,i.childBoolean)(r.NS_BLOCKING_ERRORS,"blocked")}),{element:"blocklist",fields:{jids:(0,i.multipleChildAttribute)(null,"item","jid")},namespace:r.NS_BLOCKING,path:"iq.blockList",type:"list",typeField:"action"},{element:"block",fields:{jids:(0,i.multipleChildAttribute)(null,"item","jid")},namespace:r.NS_BLOCKING,path:"iq.blockList",type:"block",typeField:"action"},{element:"unblock",fields:{jids:(0,i.multipleChildAttribute)(null,"item","jid")},namespace:r.NS_BLOCKING,path:"iq.blockList",type:"unblock",typeField:"action"}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s=[(0,i.extendStreamFeatures)({streamManagement:(0,i.childBoolean)(r.NS_SMACKS_3,"sm")}),{element:"a",fields:{handled:(0,i.integerAttribute)("h")},namespace:r.NS_SMACKS_3,path:"sm",type:"ack",typeField:"type"},{element:"r",namespace:r.NS_SMACKS_3,path:"sm",type:"request",typeField:"type"},{element:"enable",fields:{allowResumption:(0,i.booleanAttribute)("resume")},namespace:r.NS_SMACKS_3,path:"sm",type:"enable",typeField:"type"},{element:"enabled",fields:{id:(0,i.attribute)("id"),resume:(0,i.booleanAttribute)("resume")},namespace:r.NS_SMACKS_3,path:"sm",type:"enabled",typeField:"type"},{element:"resume",fields:{handled:(0,i.integerAttribute)("h"),previousSession:(0,i.attribute)("previd")},namespace:r.NS_SMACKS_3,path:"sm",type:"resume",typeField:"type"},{element:"resumed",fields:{handled:(0,i.integerAttribute)("h"),previousSession:(0,i.attribute)("previd")},namespace:r.NS_SMACKS_3,path:"sm",type:"resumed",typeField:"type"},{element:"failed",fields:{handled:(0,i.integerAttribute)("h")},namespace:r.NS_SMACKS_3,path:"sm",type:"failed",typeField:"type"}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2);t.default=(0,i.extendIQ)({ping:(0,i.childBoolean)(r.NS_PING,"ping")})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s={element:"time",fields:{tzo:(0,i.childTimezoneOffset)(null,"tzo"),utc:(0,i.childDate)(null,"utc")},namespace:r.NS_TIME,path:"iq.time"};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s={aliases:["message.delay","presence.delay"],element:"delay",fields:{from:(0,i.JIDAttribute)("from"),reason:(0,i.text)(),timestamp:(0,i.dateAttribute)("stamp")},namespace:r.NS_DELAY};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s={2:r.NS_DISCO_EXTERNAL_2,1:r.NS_DISCO_EXTERNAL_1},o=[];for(const[e,t]of Object.entries(s))o.push({aliases:["iq.externalServiceCredentials"],defaultType:"2",element:"credentials",fields:{expires:(0,i.childDateAttribute)(null,"service","expires"),host:(0,i.childAttribute)(null,"service","host"),name:(0,i.childAttribute)(null,"service","name"),password:(0,i.childAttribute)(null,"service","password"),port:(0,i.childIntegerAttribute)(null,"service","port"),restricted:(0,i.childBooleanAttribute)(null,"service","restricted"),transport:(0,i.childAttribute)(null,"service","transport"),type:(0,i.childAttribute)(null,"service","type"),username:(0,i.childAttribute)(null,"service","username")},namespace:t,type:e,typeField:"version"},{aliases:["iq.externalServices"],defaultType:"2",element:"services",fields:{type:(0,i.attribute)("type")},namespace:t,type:e,typeField:"version"},{aliases:[{path:"iq.externalServices.services",multiple:!0}],defaultType:"2",element:"service",fields:{expires:(0,i.dateAttribute)("expires"),host:(0,i.attribute)("host"),name:(0,i.attribute)("name"),password:(0,i.attribute)("password"),port:(0,i.integerAttribute)("port"),restricted:(0,i.booleanAttribute)("restricted"),transport:(0,i.attribute)("transport"),type:(0,i.attribute)("type"),username:(0,i.attribute)("username")},namespace:t,type:e,typeField:"version"});t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s=[{element:"media",fields:{height:(0,i.integerAttribute)("height"),width:(0,i.integerAttribute)("width")},namespace:r.NS_DATAFORM_MEDIA,path:"dataform.fields.media"},{aliases:[{multiple:!0,path:"dataform.fields.media.sources"}],element:"uri",fields:{mediaType:(0,i.attribute)("type"),uri:(0,i.text)()},namespace:r.NS_DATAFORM_MEDIA}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2);t.default=(0,i.extendMessage)({requestingAttention:(0,i.childBoolean)(r.NS_ATTENTION_0,"attention")})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s={aliases:["iq.bits",{path:"message.bits",multiple:!0},{path:"presence.bits",multiple:!0},{path:"iq.jingle.bits",multiple:!0}],element:"data",fields:{cid:(0,i.attribute)("cid"),data:(0,i.textBuffer)("base64"),maxAge:(0,i.integerAttribute)("max-age"),mediaType:(0,i.attribute)("type")},namespace:r.NS_BOB};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2);let s=[(0,i.addAlias)(r.NS_HASHES_2,"hash",[{path:"file.hashes",multiple:!0},{path:"file.range.hashes",multiple:!0}]),(0,i.addAlias)(r.NS_HASHES_1,"hash",[{path:"file.hashes",multiple:!0},{path:"file.range.hashes",multiple:!0}]),(0,i.addAlias)(r.NS_HASHES_2,"hash-used",[{path:"file.hashesUsed",multiple:!0}]),(0,i.addAlias)(r.NS_THUMBS_1,"thumbnail",[{path:"file.thumbnails",multiple:!0}])];for(const e of[r.NS_JINGLE_FILE_TRANSFER_4,r.NS_JINGLE_FILE_TRANSFER_5])s=s.concat([{aliases:["file",{impliedType:!0,path:"iq.jingle.contents.application.file",selector:e},{impliedType:!0,path:"iq.jingle.info.file",selector:`{${e}}checksum`}],defaultType:r.NS_JINGLE_FILE_TRANSFER_5,element:"file",fields:{date:(0,i.childDate)(null,"date"),description:(0,i.childText)(null,"desc"),mediaType:(0,i.childText)(null,"media-type"),name:(0,i.childText)(null,"name"),size:(0,i.childInteger)(null,"size")},namespace:e,type:e,typeField:"version"},{aliases:[{impliedType:!0,path:"file.range",selector:e}],defaultType:r.NS_JINGLE_FILE_TRANSFER_5,element:"range",fields:{length:(0,i.integerAttribute)("length"),offset:(0,i.integerAttribute)("offset",0)},namespace:e,type:e,typeField:"version"},{element:"description",namespace:e,path:"iq.jingle.contents.application",type:e,typeField:"applicationType"},{element:"received",fields:{creator:(0,i.attribute)("creator"),name:(0,i.attribute)("name")},namespace:e,path:"iq.jingle.info",type:`{${e}}received`,typeField:"infoType"},{element:"checksum",fields:{creator:(0,i.attribute)("creator"),name:(0,i.attribute)("name")},namespace:e,path:"iq.jingle.info",type:`{${e}}checksum`,typeField:"infoType"}]);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(2),r={element:"description",namespace:i.NS_JINGLE_XML_0,path:"iq.jingle.contents.application",type:i.NS_JINGLE_XML_0,typeField:"applicationType"};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s=[{element:"transport",fields:{activated:(0,i.childAttribute)(null,"activated","cid"),address:(0,i.attribute)("dstaddr"),candidateError:(0,i.childBoolean)(null,"candidate-error"),candidateUsed:(0,i.childAttribute)(null,"candidate-used","cid"),mode:(0,i.attribute)("mode","tcp"),proxyError:(0,i.childBoolean)(null,"proxy-error"),sid:(0,i.attribute)("sid")},namespace:r.NS_JINGLE_SOCKS5_1,path:"iq.jingle.contents.transport",type:r.NS_JINGLE_SOCKS5_1,typeField:"transportType"},{aliases:[{multiple:!0,path:"iq.jingle.contents.transport.candidates",selector:r.NS_JINGLE_SOCKS5_1}],element:"candidate",fields:{cid:(0,i.attribute)("cid"),host:(0,i.attribute)("host"),jid:(0,i.JIDAttribute)("jid"),port:(0,i.integerAttribute)("port"),priority:(0,i.integerAttribute)("priority"),type:(0,i.attribute)("type"),uri:(0,i.attribute)("uri")},namespace:r.NS_JINGLE_SOCKS5_1}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s={element:"transport",fields:{ack:{importer:(e,t)=>"message"!==(0,i.attribute)("stanza","iq").importer(e,t),exporter(e,t,n){!1===t&&(0,i.attribute)("stanza").exporter(e,"message",n)}},blockSize:(0,i.integerAttribute)("block-size"),sid:(0,i.attribute)("sid")},namespace:r.NS_JINGLE_IBB_1,path:"iq.jingle.contents.transport",type:r.NS_JINGLE_IBB_1,typeField:"transportType"};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s=[(0,i.addAlias)(r.NS_BOB,"data",[{path:"iq.jingle.bits",multiple:!0}]),{element:"thumbnail",fields:{height:(0,i.integerAttribute)("height"),mediaType:(0,i.attribute)("media-type"),uri:(0,i.attribute)("uri"),width:(0,i.integerAttribute)("width")},namespace:r.NS_THUMBS_1,path:"thumbnail"}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s=[(0,i.addAlias)(r.NS_FORWARD_0,"forwarded",["message.carbon.forward"]),{element:"enable",namespace:r.NS_CARBONS_2,path:"iq.carbons",type:"enable",typeField:"action"},{element:"disable",namespace:r.NS_CARBONS_2,path:"iq.carbons",type:"disable",typeField:"action"},{element:"sent",namespace:r.NS_CARBONS_2,path:"message.carbon",type:"sent",typeField:"type"},{element:"received",namespace:r.NS_CARBONS_2,path:"message.carbon",type:"received",typeField:"type"}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(8),s=n(2),o=[...Object.values(r.StreamType).map(e=>(0,i.addAlias)(e,"message",["forward.message"])),...Object.values(r.StreamType).map(e=>(0,i.addAlias)(e,"presence",["forward.presence"])),...Object.values(r.StreamType).map(e=>(0,i.addAlias)(e,"iq",["forward.iq"])),(0,i.addAlias)(s.NS_DELAY,"delay",["forward.delay"]),{aliases:["message.forward"],element:"forwarded",namespace:s.NS_FORWARD_0,path:"forward"}];t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s=[{defaultType:"2",element:"hash",fields:{algorithm:(0,i.attribute)("algo"),value:(0,i.textBuffer)("base64"),version:(0,i.staticValue)("2")},namespace:r.NS_HASHES_2,path:"hash",type:"2",typeField:"version"},{element:"hash-used",fields:{algorithm:(0,i.attribute)("algo"),version:(0,i.staticValue)("2")},namespace:r.NS_HASHES_2,path:"hashUsed"},{element:"hash",fields:{algorithm:(0,i.attribute)("algo"),value:(0,i.textBuffer)("hex"),version:(0,i.staticValue)("1")},namespace:r.NS_HASHES_1,path:"hash",type:"1",typeField:"version"}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s=[{element:"rtt",fields:{event:(0,i.attribute)("event","edit"),id:(0,i.attribute)("id"),seq:(0,i.integerAttribute)("seq")},namespace:r.NS_RTT_0,path:"message.rtt"},{aliases:[{path:"message.rtt.actions",multiple:!0}],element:"t",fields:{position:(0,i.integerAttribute)("p"),text:(0,i.text)()},namespace:r.NS_RTT_0,type:"insert",typeField:"type"},{aliases:[{path:"message.rtt.actions",multiple:!0}],element:"e",fields:{length:(0,i.integerAttribute)("n",1),position:(0,i.integerAttribute)("p")},namespace:r.NS_RTT_0,type:"erase",typeField:"type"},{aliases:[{multiple:!0,path:"message.rtt.actions"}],element:"w",fields:{duration:(0,i.integerAttribute)("n",0)},namespace:r.NS_RTT_0,type:"wait",typeField:"type"}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2);t.default=(0,i.extendMessage)({replace:(0,i.childAttribute)(r.NS_CORRECTION_0,"replace","id")})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s={2:r.NS_MAM_2,1:r.NS_MAM_1},o=[(0,i.addAlias)(r.NS_DATAFORM,"x",["iq.archive.form"]),(0,i.addAlias)(r.NS_FORWARD_0,"forwarded",["message.archive.item"]),(0,i.addAlias)(r.NS_RSM,"set",["iq.archive.paging"])];for(const[e,t]of Object.entries(s))o.push({defaultType:"query",defaultVersion:"2",element:"query",fields:{node:(0,i.attribute)("node"),queryId:(0,i.attribute)("queryid")},namespace:t,path:"iq.archive",type:"query",typeField:"type",version:e,versionField:"version"},{element:"fin",fields:{complete:(0,i.booleanAttribute)("complete"),stable:(0,i.booleanAttribute)("stable")},namespace:t,path:"iq.archive",type:"result",version:e},{element:"prefs",fields:{default:(0,i.attribute)("default"),always:(0,i.deepMultipleChildText)([{namespace:null,element:"always"},{namespace:null,element:"jid"}]),never:(0,i.deepMultipleChildText)([{namespace:null,element:"never"},{namespace:null,element:"jid"}])},namespace:t,path:"iq.archive",type:"preferences",version:e},{element:"result",defaultType:"2",fields:{id:(0,i.attribute)("id"),queryId:(0,i.attribute)("queryid")},namespace:t,path:"message.archive",type:e,typeField:"version"});t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s=[(0,i.extendPresence)({hats:(0,i.splicePath)(r.NS_HATS_0,"hats","hat",!0)}),{element:"hat",fields:{id:(0,i.attribute)("name"),name:(0,i.attribute)("displayName")},namespace:r.NS_HATS_0,path:"hat"}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2);t.default=(0,i.extendPresence)({idleSince:(0,i.childDate)(r.NS_IDLE_1,"since")})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s={aliases:[{multiple:!0,path:"iq.jingle.contents.transport.fingerprints",selector:r.NS_JINGLE_ICE_UDP_1},{multiple:!0,path:"iq.jingle.contents.transport.fingerprints",selector:r.NS_JINGLE_ICE_0},{multiple:!0,path:"iq.jingle.contents.application.encryption.dtls",selector:r.NS_JINGLE_RTP_1}],element:"fingerprint",fields:{algorithm:(0,i.attribute)("hash"),setup:(0,i.attribute)("setup"),value:(0,i.text)()},namespace:r.NS_JINGLE_DTLS_0};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s="message.marker",o=[{element:"markable",namespace:r.NS_CHAT_MARKERS_0,path:s,type:"markable",typeField:"type"},{element:"received",fields:{id:(0,i.attribute)("id")},namespace:r.NS_CHAT_MARKERS_0,path:s,type:"received"},{element:"displayed",fields:{id:(0,i.attribute)("id")},namespace:r.NS_CHAT_MARKERS_0,path:s,type:"displayed"},{element:"acknowledged",fields:{id:(0,i.attribute)("id")},namespace:r.NS_CHAT_MARKERS_0,path:s,type:"acknowledged"}];t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2);t.default=(0,i.extendMessage)({processingHints:{importer(e){const t={};let n=!1;for(const i of e.children)if("string"!=typeof i&&i.getNamespace()===r.NS_HINTS)switch(i.getName()){case"no-copy":t.noCopy=!0,n=!0;break;case"no-permanent-store":t.noPermanentStore=!0,n=!0;break;case"no-store":t.noStore=!0,n=!0;break;case"store":t.store=!0,n=!0}return n?t:void 0},exporter(e,t,n){t.noCopy&&e.appendChild((0,i.createElement)(r.NS_HINTS,"no-copy",n.namespace,e)),t.noPermanentStore&&e.appendChild((0,i.createElement)(r.NS_HINTS,"no-permanent-store",n.namespace,e)),t.noStore&&e.appendChild((0,i.createElement)(r.NS_HINTS,"no-store",n.namespace,e)),t.store&&e.appendChild((0,i.createElement)(r.NS_HINTS,"store",n.namespace,e))}}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s=[(0,i.extendMessage)({json:(0,i.childJSON)(r.NS_JSON_0,"json")}),{aliases:(0,i.pubsubItemContentAliases)(),element:"json",fields:{json:(0,i.textJSON)()},namespace:r.NS_JSON_0,type:r.NS_JSON_0},{aliases:[{path:"message.jsonPayloads",multiple:!0}],element:"payload",fields:{type:(0,i.attribute)("datatype"),data:(0,i.childJSON)(r.NS_JSON_0,"json")},namespace:r.NS_JSON_MESSAGE_0}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s=[{aliases:[{path:"iq.jingle.groups",multiple:!0}],element:"group",fields:{contents:(0,i.multipleChildAttribute)(null,"content","name"),semantics:(0,i.attribute)("semantics")},namespace:r.NS_JINGLE_GROUPING_0}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s={aliases:[{path:"iq.jingle.contents.transport.sctp",selector:r.NS_JINGLE_ICE_UDP_1},{path:"iq.jingle.contents.transport.sctp",selector:r.NS_JINGLE_ICE_0}],element:"sctpmap",fields:{port:(0,i.integerAttribute)("number"),protocol:(0,i.attribute)("protocol"),streams:(0,i.attribute)("streams")},namespace:r.NS_JINGLE_DTLS_SCTP_1};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(2),r=[{element:"active",namespace:i.NS_CSI_0,path:"csi",type:"active",typeField:"state"},{element:"inactive",namespace:i.NS_CSI_0,path:"csi",type:"inactive",typeField:"state"}];t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s=[(0,i.addAlias)(r.NS_DATAFORM,"x",["iq.push.form","pushNotification.form"]),{element:"enable",fields:{jid:(0,i.JIDAttribute)("jid"),node:(0,i.attribute)("node")},namespace:r.NS_PUSH_0,path:"iq.push",type:"enable",typeField:"action"},{element:"disable",fields:{jid:(0,i.JIDAttribute)("jid"),node:(0,i.attribute)("node")},namespace:r.NS_PUSH_0,path:"iq.push",type:"disable",typeField:"action"},{aliases:(0,i.pubsubItemContentAliases)(),element:"notification",namespace:r.NS_PUSH_0,path:"pushNotification",type:r.NS_PUSH_0,typeField:"itemType"}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s=[(0,i.extendMessage)({originId:(0,i.childAttribute)(r.NS_SID_0,"origin-id","id")}),{aliases:[{path:"message.stanzaIds",multiple:!0}],element:"stanza-id",fields:{by:(0,i.JIDAttribute)("by"),id:(0,i.attribute)("id")},namespace:r.NS_SID_0}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s=[(0,i.extendStanzaError)({httpUploadError:(0,i.childEnum)(r.NS_HTTP_UPLOAD_0,["file-too-large","retry"]),httpUploadMaxFileSize:(0,i.deepChildInteger)([{namespace:r.NS_HTTP_UPLOAD_0,element:"file-too-large"},{namespace:r.NS_HTTP_UPLOAD_0,element:"max-file-size"}]),httpUploadRetry:(0,i.childDateAttribute)(r.NS_HTTP_UPLOAD_0,"retry","stamp")}),{element:"request",fields:{mediaType:(0,i.attribute)("content-type"),name:(0,i.attribute)("filename"),size:(0,i.integerAttribute)("size")},namespace:r.NS_HTTP_UPLOAD_0,path:"iq.httpUpload",type:"request",typeField:"type"},{element:"slot",fields:{download:(0,i.childAttribute)(null,"get","url")},namespace:r.NS_HTTP_UPLOAD_0,path:"iq.httpUpload",type:"slot"},{aliases:[{path:"iq.httpUpload.upload",selector:"slot"}],element:"put",fields:{url:(0,i.attribute)("url")},namespace:r.NS_HTTP_UPLOAD_0},{aliases:[{path:"iq.httpUpload.upload.headers",multiple:!0}],element:"header",fields:{name:(0,i.attribute)("name"),value:(0,i.text)()},namespace:r.NS_HTTP_UPLOAD_0}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s={element:"encryption",fields:{id:(0,i.attribute)("namespace"),name:(0,i.attribute)("name")},namespace:r.NS_EME_0,path:"message.encryptionMethod"};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),r=n(2),s=[{aliases:["message.omemo"],element:"encrypted",fields:{payload:(0,i.childTextBuffer)(null,"payload","base64")},namespace:r.NS_OMEMO_AXOLOTL,path:"omemo"},{element:"header",fields:{iv:(0,i.childTextBuffer)(null,"iv","base64"),sid:(0,i.integerAttribute)("sid")},namespace:r.NS_OMEMO_AXOLOTL,path:"omemo.header"},{aliases:[{path:"omemo.header.keys",multiple:!0}],element:"key",fields:{preKey:(0,i.booleanAttribute)("prekey"),rid:(0,i.integerAttribute)("rid"),value:(0,i.textBuffer)("base64")},namespace:r.NS_OMEMO_AXOLOTL},{aliases:(0,i.pubsubItemContentAliases)(),element:"list",fields:{devices:(0,i.multipleChildIntegerAttribute)(null,"device","id")},namespace:r.NS_OMEMO_AXOLOTL,type:r.NS_OMEMO_AXOLOTL_DEVICELIST,typeField:"itemType"},{element:"preKeyPublic",fields:{id:(0,i.integerAttribute)("preKeyId"),value:(0,i.textBuffer)("base64")},namespace:r.NS_OMEMO_AXOLOTL,path:"omemoPreKey"},{element:"signedPreKeyPublic",fields:{id:(0,i.integerAttribute)("signedPreKeyId"),value:(0,i.textBuffer)("base64")},namespace:r.NS_OMEMO_AXOLOTL,path:"omemoDevice.signedPreKeyPublic"},{aliases:(0,i.pubsubItemContentAliases)(),element:"bundle",fields:{identityKey:(0,i.childTextBuffer)(null,"identityKey","base64"),preKeys:(0,i.splicePath)(null,"prekeys","omemoPreKey",!0),signedPreKeySignature:(0,i.childTextBuffer)(null,"signedPreKeySignature","base64")},namespace:r.NS_OMEMO_AXOLOTL,path:"omemoDevice",type:r.NS_OMEMO_AXOLOTL_BUNDLES,typeField:"itemType"}];t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class i extends Error{constructor(e,t,n){super(),this.condition=e,this.channelId=t,this.stanzaInstanceId=n,this.name="SaslError"}}t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,n){"use strict";var i={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)},r=n(43),s=n(20);t.a=function(e,t,n){if(i.randomUUID&&!t&&!e)return i.randomUUID();const o=(e=e||{}).random||(e.rng||r.a)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=o[e];return t}return Object(s.b)(o)}},function(e,t,n){n(210),n(211),e.exports=n(226)},function(e,t,n){!function(t){"use strict";for(var n=[null,0,{}],i=function(e,t){this.codepoint=e,this.feature=t},r={},s=[],o=0;o<=255;++o)s[o]=0;var a=[function(e,t,r){return t<60||13311<t&&t<42607?new i(t,n):e(t,r)},function(e,t,n){var i=r[t];return i||(i=e(t,n)).feature&&++s[t>>8&255]>10&&(r[t]=i),i},function(e,t,n){return n?e(t,n):new i(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 s={},o=21*(t-4352);for(r=0;r<21;++r)s[4449+r]=44032+28*(r+o);return new i(t,[,,s])}var a=t-44032,c=a%28,l=[];if(0!==c)l[0]=[44032+a-c,4519+c];else for(l[0]=[4352+Math.floor(a/588),4449+Math.floor(a%588/28)],l[2]={},r=1;r<28;++r)l[2][4519+r]=t+r;return new i(t,l)},function(e,t,r){var s=(i.udata[65280&t]||{})[t];return new i(t,s||n)}];i.fromCharCode=a.reduceRight((function(e,t){return function(n,i){return t(e,n,i)}}),null),i.isHighSurrogate=function(e){return e>=55296&&e<=56319},i.isLowSurrogate=function(e){return e>=56320&&e<=57343},i.prototype.prepFeature=function(){this.feature||(this.feature=i.fromCharCode(this.codepoint,!0).feature)},i.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)},i.prototype.getDecomp=function(){return this.prepFeature(),this.feature[0]||null},i.prototype.isCompatibility=function(){return this.prepFeature(),!!this.feature[1]&&256&this.feature[1]},i.prototype.isExclude=function(){return this.prepFeature(),!!this.feature[1]&&512&this.feature[1]},i.prototype.getCanonicalClass=function(){return this.prepFeature(),this.feature[1]?255&this.feature[1]:0},i.prototype.getComposite=function(e){if(this.prepFeature(),!this.feature[2])return null;var t=this.feature[2][e.codepoint];return t?i.fromCharCode(t):null};var c=function(e){this.str=e,this.cursor=0};c.prototype.next=function(){if(this.str&&this.cursor<this.str.length){var e,t=this.str.charCodeAt(this.cursor++);return i.isHighSurrogate(t)&&this.cursor<this.str.length&&i.isLowSurrogate(e=this.str.charCodeAt(this.cursor))&&(t=1024*(t-55296)+(e-56320)+65536,++this.cursor),i.fromCharCode(t)}return this.str=null,null};var l=function(e,t){this.it=e,this.canonical=t,this.resBuf=[]};l.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 s=[],o=0;o<r.length;++o){var a=e(t,i.fromCharCode(r[o]));s=s.concat(a)}return s}(this.canonical,e)}return this.resBuf.shift()};var u=function(e){this.it=e,this.resBuf=[]};u.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 d=function(e){this.it=e,this.procBuf=[],this.resBuf=[],this.lastClass=null};d.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 h=function(e,t){for(var n,i=function(e,t){switch(e){case"NFD":return new u(new l(new c(t),!0));case"NFKD":return new u(new l(new c(t),!1));case"NFC":return new d(new u(new l(new c(t),!0)));case"NFKC":return new d(new u(new l(new c(t),!1)))}throw e+" is invalid"}(e,t),r="";n=i.next();)r+=n.toString();return r};i.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 p={nfc:function(e){return h("NFC",e)},nfd:function(e){return h("NFD",e)},nfkc:function(e){return h("NFKC",e)},nfkd:function(e){return h("NFKD",e)}};e.exports=p,p.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 p.nfc(e);if("NFD"===t)return p.nfd(e);if("NFKC"===t)return p.nfkc(e);if("NFKD"===t)return p.nfkd(e);throw new RangeError("Invalid normalization form: "+t)}}),p.shimApplied=!0)}()},function(e,t,n){"use strict";n.r(t),n.d(t,"Headers",(function(){return f})),n.d(t,"Request",(function(){return S})),n.d(t,"Response",(function(){return T})),n.d(t,"DOMException",(function(){return A})),n.d(t,"fetch",(function(){return E}));n(9);var i="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==i&&i,r="URLSearchParams"in i,s="Symbol"in i&&"iterator"in Symbol,o="FileReader"in i&&"Blob"in i&&function(){try{return new Blob,!0}catch(e){return!1}}(),a="FormData"in i,c="ArrayBuffer"in i;if(c)var l=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=ArrayBuffer.isView||function(e){return e&&l.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 p(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 f(e){this.map={},e instanceof f?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function m(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function g(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function y(e){var t=new FileReader,n=g(t);return t.readAsArrayBuffer(e),n}function v(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function b(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:o&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:a&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:r&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():c&&o&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=v(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):c&&(ArrayBuffer.prototype.isPrototypeOf(e)||u(e))?this._bodyArrayBuffer=v(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):r&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o&&(this.blob=function(){var e=m(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=m(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(y)}),this.text=function(){var e,t,n,i=m(this);if(i)return i;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=g(t),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),i=0;i<t.length;i++)n[i]=String.fromCharCode(t[i]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},a&&(this.formData=function(){return this.text().then(w)}),this.json=function(){return this.text().then(JSON.parse)},this}f.prototype.append=function(e,t){e=d(e),t=h(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},f.prototype.delete=function(e){delete this.map[d(e)]},f.prototype.get=function(e){return e=d(e),this.has(e)?this.map[e]:null},f.prototype.has=function(e){return this.map.hasOwnProperty(d(e))},f.prototype.set=function(e,t){this.map[d(e)]=h(t)},f.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},f.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),p(e)},f.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),p(e)},f.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),p(e)},s&&(f.prototype[Symbol.iterator]=f.prototype.entries);var _=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function S(e,t){if(!(this instanceof S))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n,i,r=(t=t||{}).body;if(e instanceof S){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new f(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,r||null==e._bodyInit||(r=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new f(t.headers)),this.method=(n=t.method||this.method||"GET",i=n.toUpperCase(),_.indexOf(i)>-1?i:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(r),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var s=/([?&])_=[^&]*/;if(s.test(this.url))this.url=this.url.replace(s,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function w(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),i=n.shift().replace(/\+/g," "),r=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(i),decodeURIComponent(r))}})),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 f(t.headers),this.url=t.url||"",this._initBody(e)}S.prototype.clone=function(){return new S(this,{body:this._bodyInit})},b.call(S.prototype),b.call(T.prototype),T.prototype.clone=function(){return new T(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},T.error=function(){var e=new T(null,{status:0,statusText:""});return e.type="error",e};var I=[301,302,303,307,308];T.redirect=function(e,t){if(-1===I.indexOf(t))throw new RangeError("Invalid status code");return new T(null,{status:t,headers:{location:e}})};var A=i.DOMException;try{new A}catch(e){(A=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack}).prototype=Object.create(Error.prototype),A.prototype.constructor=A}function E(e,t){return new Promise((function(n,r){var s=new S(e,t);if(s.signal&&s.signal.aborted)return r(new A("Aborted","AbortError"));var a=new XMLHttpRequest;function l(){a.abort()}a.onload=function(){var e,t,i={status:a.status,statusText:a.statusText,headers:(e=a.getAllResponseHeaders()||"",t=new f,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var n=e.split(":"),i=n.shift().trim();if(i){var r=n.join(":").trim();t.append(i,r)}})),t)};i.url="responseURL"in a?a.responseURL:i.headers.get("X-Request-URL");var r="response"in a?a.response:a.responseText;setTimeout((function(){n(new T(r,i))}),0)},a.onerror=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},a.ontimeout=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},a.onabort=function(){setTimeout((function(){r(new A("Aborted","AbortError"))}),0)},a.open(s.method,function(e){try{return""===e&&i.location.href?i.location.href:e}catch(t){return e}}(s.url),!0),"include"===s.credentials?a.withCredentials=!0:"omit"===s.credentials&&(a.withCredentials=!1),"responseType"in a&&(o?a.responseType="blob":c&&s.headers.get("Content-Type")&&-1!==s.headers.get("Content-Type").indexOf("application/octet-stream")&&(a.responseType="arraybuffer")),!t||"object"!=typeof t.headers||t.headers instanceof f?s.headers.forEach((function(e,t){a.setRequestHeader(t,e)})):Object.getOwnPropertyNames(t.headers).forEach((function(e){a.setRequestHeader(e,h(t.headers[e]))})),s.signal&&(s.signal.addEventListener("abort",l),a.onreadystatechange=function(){4===a.readyState&&s.signal.removeEventListener("abort",l)}),a.send(void 0===s._bodyInit?null:s._bodyInit)}))}E.polyfill=!0,i.fetch||(i.fetch=E,i.Headers=f,i.Request=S,i.Response=T)},function(e,t,n){"use strict";var i,r=n(213),s=n(29),o=n(11),a=n(25),c=n(19),l=n(214),u=n(30),d=n(78),h=n(46).f,p=n(220),f=n(222),m=n(44),g=n(48),y=o.Int8Array,v=y&&y.prototype,b=o.Uint8ClampedArray,_=b&&b.prototype,S=y&&p(y),w=v&&p(v),T=Object.prototype,I=T.isPrototypeOf,A=m("toStringTag"),E=g("TYPED_ARRAY_TAG"),N=r&&!!f&&"Opera"!==l(o.opera),x=!1,C={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},R=function(e){return a(e)&&c(C,l(e))};for(i in C)o[i]||(N=!1);if((!N||"function"!=typeof S||S===Function.prototype)&&(S=function(){throw TypeError("Incorrect invocation")},N))for(i in C)o[i]&&f(o[i],S);if((!N||!w||w===T)&&(w=S.prototype,N))for(i in C)o[i]&&f(o[i].prototype,w);if(N&&p(_)!==w&&f(_,w),s&&!c(w,A))for(i in x=!0,h(w,A,{get:function(){return a(this)?this[E]:void 0}}),C)o[i]&&u(o[i],E,i);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:N,TYPED_ARRAY_TAG:x&&E,aTypedArray:function(e){if(R(e))return e;throw TypeError("Target is not a typed array")},aTypedArrayConstructor:function(e){if(f){if(I.call(S,e))return e}else for(var t in C)if(c(C,i)){var n=o[t];if(n&&(e===n||I.call(n,e)))return e}throw TypeError("Target is not a typed array constructor")},exportTypedArrayMethod:function(e,t,n){if(s){if(n)for(var i in C){var r=o[i];r&&c(r.prototype,e)&&delete r.prototype[e]}w[e]&&!n||d(w,e,n?t:N&&v[e]||t)}},exportTypedArrayStaticMethod:function(e,t,n){var i,r;if(s){if(f){if(n)for(i in C)(r=o[i])&&c(r,e)&&delete r[e];if(S[e]&&!n)return;try{return d(S,e,n?t:N&&y[e]||t)}catch(e){}}for(i in C)!(r=o[i])||r[e]&&!n||d(r,e,t)}},isView:function(e){var t=l(e);return"DataView"===t||c(C,t)},isTypedArray:R,TypedArray:S,TypedArrayPrototype:w}},function(e,t){e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},function(e,t,n){var i=n(215),r=n(49),s=n(44)("toStringTag"),o="Arguments"==r(function(){return arguments}());e.exports=i?r:function(e){var t,n,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),s))?n:o?r(t):"Object"==(i=r(t))&&"function"==typeof t.callee?"Arguments":i}},function(e,t,n){var i={};i[n(44)("toStringTag")]="z",e.exports="[object z]"===String(i)},function(e,t){e.exports=!1},function(e,t,n){var i=n(77);e.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(e,t,n){var i,r,s,o=n(219),a=n(11),c=n(25),l=n(30),u=n(19),d=n(80),h=n(81),p=a.WeakMap;if(o){var f=new p,m=f.get,g=f.has,y=f.set;i=function(e,t){return y.call(f,e,t),t},r=function(e){return m.call(f,e)||{}},s=function(e){return g.call(f,e)}}else{var v=d("state");h[v]=!0,i=function(e,t){return l(e,v,t),t},r=function(e){return u(e,v)?e[v]:{}},s=function(e){return u(e,v)}}e.exports={set:i,get:r,has:s,enforce:function(e){return s(e)?r(e):i(e,{})},getterFor:function(e){return function(t){var n;if(!c(t)||(n=r(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},function(e,t,n){var i=n(11),r=n(79),s=i.WeakMap;e.exports="function"==typeof s&&/native code/.test(r(s))},function(e,t,n){var i=n(19),r=n(82),s=n(80),o=n(221),a=s("IE_PROTO"),c=Object.prototype;e.exports=o?Object.getPrototypeOf:function(e){return e=r(e),i(e,a)?e[a]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?c:null}},function(e,t,n){var i=n(18);e.exports=!i((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},function(e,t,n){var i=n(47),r=n(223);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,s){return i(n),r(s),t?e.call(n,s):n.__proto__=s,n}}():void 0)},function(e,t,n){var i=n(25);e.exports=function(e){if(!i(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},function(e,t,n){var i=n(225);e.exports=function(e,t){var n=i(e);if(n%t)throw RangeError("Wrong offset");return n}},function(e,t,n){var i=n(50);e.exports=function(e){var t=i(e);if(t<0)throw RangeError("The argument can't be less than 0");return t}},function(e,t,n){"use strict";n.r(t);var i=n(68),r=n(64);for(var s in r)["HttpClient","StreamingClientError","parseJwt","default"].indexOf(s)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(s);var o=n(58);for(var s in o)["HttpClient","StreamingClientError","parseJwt","default"].indexOf(s)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(s);var a=n(207);for(var s in a)["HttpClient","StreamingClientError","parseJwt","default"].indexOf(s)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(s);var c=n(24);for(var s in c)["HttpClient","StreamingClientError","parseJwt","default"].indexOf(s)<0&&function(e){n.d(t,e,(function(){return c[e]}))}(s);var l=n(67);for(var s in l)["HttpClient","StreamingClientError","parseJwt","default"].indexOf(s)<0&&function(e){n.d(t,e,(function(){return l[e]}))}(s);var u=n(38);n.d(t,"HttpClient",(function(){return u.HttpClient}));var d=n(16);n.d(t,"StreamingClientError",(function(){return d.StreamingClientError})),n.d(t,"parseJwt",(function(){return d.parseJwt})),t.default=i.Client},function(e,t,n){t.RateLimiter=n(228),t.TokenBucket=n(85)},function(e,t,n){(function(t){var i=n(85),r=n(229),s=function(e,t,n){this.tokenBucket=new i(e,e,t,null),this.tokenBucket.content=e,this.curIntervalStart=r(),this.tokensThisInterval=0,this.fireImmediately=n};s.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 i=this,s=r();if((s<this.curIntervalStart||s-this.curIntervalStart>=this.tokenBucket.interval)&&(this.curIntervalStart=s,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-s);setTimeout((function(){i.tokenBucket.removeTokens(e,a)}),o)}return!1}return this.tokenBucket.removeTokens(e,a);function a(t,r){if(t)return n(t,null);i.tokensThisInterval+=e,n(null,r)}},tryRemoveTokens:function(e){if(e>this.tokenBucket.bucketSize)return!1;var t=r();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=s}).call(this,n(23))},function(e,t,n){(function(t){e.exports=function(){if(void 0!==t&&t.hrtime){var e=t.hrtime(),n=e[0],i=e[1];return 1e3*n+Math.floor(i/1e6)}return(new Date).getTime()}}).call(this,n(23))},function(e,t,n){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var r={delayFirstAttempt:!1,jitter:"none",maxDelay:1/0,numOfAttempts:10,retry:function(){return!0},startingDelay:100,timeMultiple:2};t.getSanitizedOptions=function(e){var t=i(i({},r),e);return t.numOfAttempts<1&&(t.numOfAttempts=1),t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(232),r=n(236);t.DelayFactory=function(e,t){var n=function(e){if(!e.delayFirstAttempt)return new i.SkipFirstDelay(e);return new r.AlwaysDelay(e)}(e);return n.setAttemptNumber(t),n}},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=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}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,s){function o(e){try{c(i.next(e))}catch(e){s(e)}}function a(e){try{c(i.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,a)}c((i=i.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,i,r,s,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,i&&(r=2&s[0]?i.return:s[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,s[1])).done)return r;switch(i=0,r&&(s=[2&s[0],r.value]),s[0]){case 0:case 1:r=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,i=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]<r[3])){o.label=s[1];break}if(6===s[0]&&o.label<r[1]){o.label=r[1],r=s;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(s);break}r[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],i=0}finally{n=r=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,a])}}};Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.apply=function(){return s(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(86).Delay);t.SkipFirstDelay=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(234),r=n(235);t.JitterFactory=function(e){switch(e.jitter){case"full":return i.fullJitter;case"none":default:return r.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 i,r=this&&this.__extends||(i=function(e,t){return(i=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}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(n(86).Delay);t.AlwaysDelay=s},function(e,t,n){(function(e){n(33);var i=void 0!==e&&e||"undefined"!=typeof self&&self||window,r=Function.prototype.apply;function s(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new s(r.call(setTimeout,i,arguments),clearTimeout)},t.setInterval=function(){return new s(r.call(setInterval,i,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},s.prototype.unref=s.prototype.ref=function(){},s.prototype.close=function(){this._clearFn.call(i,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(257),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(15))},function(e,t,n){var i=n(11),r=n(87).f,s=n(30),o=n(78),a=n(45),c=n(241),l=n(250);e.exports=function(e,t){var n,u,d,h,p,f=e.target,m=e.global,g=e.stat;if(n=m?i:g?i[f]||a(f,{}):(i[f]||{}).prototype)for(u in t){if(h=t[u],d=e.noTargetGet?(p=r(n,u))&&p.value:n[u],!l(m?u:f+(g?".":"#")+u,e.forced)&&void 0!==d){if(typeof h==typeof d)continue;c(h,d)}(e.sham||d&&d.sham)&&s(h,"sham",!0),o(n,u,h,e)}}},function(e,t,n){"use strict";var i={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,s=r&&!i.call({1:2},1);t.f=s?function(e){var t=r(this,e);return!!t&&t.enumerable}:i},function(e,t,n){var i=n(18),r=n(49),s="".split;e.exports=i((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==r(e)?s.call(e,""):Object(e)}:Object},function(e,t,n){var i=n(19),r=n(242),s=n(87),o=n(46);e.exports=function(e,t){for(var n=r(t),a=o.f,c=s.f,l=0;l<n.length;l++){var u=n[l];i(e,u)||a(e,u,c(t,u))}}},function(e,t,n){var i=n(52),r=n(244),s=n(249),o=n(47);e.exports=i("Reflect","ownKeys")||function(e){var t=r.f(o(e)),n=s.f;return n?t.concat(n(e)):t}},function(e,t,n){var i=n(11);e.exports=i},function(e,t,n){var i=n(245),r=n(248).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,r)}},function(e,t,n){var i=n(19),r=n(51),s=n(246).indexOf,o=n(81);e.exports=function(e,t){var n,a=r(e),c=0,l=[];for(n in a)!i(o,n)&&i(a,n)&&l.push(n);for(;t.length>c;)i(a,n=t[c++])&&(~s(l,n)||l.push(n));return l}},function(e,t,n){var i=n(51),r=n(84),s=n(247),o=function(e){return function(t,n,o){var a,c=i(t),l=r(c.length),u=s(o,l);if(e&&n!=n){for(;l>u;)if((a=c[u++])!=a)return!0}else for(;l>u;u++)if((e||u in c)&&c[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},function(e,t,n){var i=n(50),r=Math.max,s=Math.min;e.exports=function(e,t){var n=i(e);return n<0?r(n+t,0):s(n,t)}},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var i=n(18),r=/#|\.prototype\./,s=function(e,t){var n=a[o(e)];return n==l||n!=c&&("function"==typeof t?i(t):!!t)},o=s.normalize=function(e){return String(e).replace(r,".").toLowerCase()},a=s.data={},c=s.NATIVE="N",l=s.POLYFILL="P";e.exports=s},function(e,t,n){var i,r,s,o=n(11),a=n(18),c=n(49),l=n(252),u=n(254),d=n(74),h=n(255),p=o.location,f=o.setImmediate,m=o.clearImmediate,g=o.process,y=o.MessageChannel,v=o.Dispatch,b=0,_={},S=function(e){if(_.hasOwnProperty(e)){var t=_[e];delete _[e],t()}},w=function(e){return function(){S(e)}},T=function(e){S(e.data)},I=function(e){o.postMessage(e+"",p.protocol+"//"+p.host)};f&&m||(f=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)},i(b),b},m=function(e){delete _[e]},"process"==c(g)?i=function(e){g.nextTick(w(e))}:v&&v.now?i=function(e){v.now(w(e))}:y&&!h?(s=(r=new y).port2,r.port1.onmessage=T,i=l(s.postMessage,s,1)):!o.addEventListener||"function"!=typeof postMessage||o.importScripts||a(I)||"file:"===p.protocol?i="onreadystatechange"in d("script")?function(e){u.appendChild(d("script")).onreadystatechange=function(){u.removeChild(this),S(e)}}:function(e){setTimeout(w(e),0)}:(i=I,o.addEventListener("message",T,!1))),e.exports={set:f,clear:m}},function(e,t,n){var i=n(253);e.exports=function(e,t,n){if(i(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,r){return e.call(t,n,i,r)}}return function(){return e.apply(t,arguments)}}},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 i=n(52);e.exports=i("document","documentElement")},function(e,t,n){var i=n(256);e.exports=/(iphone|ipod|ipad).*applewebkit/i.test(i)},function(e,t,n){var i=n(52);e.exports=i("navigator","userAgent")||""},function(e,t,n){(function(e,t){n(33),function(e,n){"use strict";if(!e.setImmediate){var i,r,s,o,a,c=1,l={},u=!1,d=e.document,h=Object.getPrototypeOf&&Object.getPrototypeOf(e);h=h&&h.setTimeout?h:e,"[object process]"==={}.toString.call(e.process)?i=function(e){t.nextTick((function(){f(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?((s=new MessageChannel).port1.onmessage=function(e){f(e.data)},i=function(e){s.port2.postMessage(e)}):d&&"onreadystatechange"in d.createElement("script")?(r=d.documentElement,i=function(e){var t=d.createElement("script");t.onreadystatechange=function(){f(e),t.onreadystatechange=null,r.removeChild(t),t=null},r.appendChild(t)}):i=function(e){setTimeout(f,0,e)}:(o="setImmediate$"+Math.random()+"$",a=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(o)&&f(+t.data.slice(o.length))},e.addEventListener?e.addEventListener("message",a,!1):e.attachEvent("onmessage",a),i=function(t){e.postMessage(o+t,"*")}),h.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 r={callback:e,args:t};return l[c]=r,i(c),c++},h.clearImmediate=p}function p(e){delete l[e]}function f(e){if(u)setTimeout(f,0,e);else{var t=l[e];if(t){u=!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{p(e),u=!1}}}}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,n(15),n(23))},function(e,t,n){"use strict";(function(e){
23
23
  /*!
24
24
  * The buffer module from node.js, for the browser.
25
25
  *
@@ -28,5 +28,5 @@ var i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Arr
28
28
  */
29
29
  n(9);var i=n(259),r=n(260),s=n(261);function o(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(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 d(this,e)}return l(this,e,t,n)}function l(e,t,n,i){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,i){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(i||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===i?new Uint8Array(t):void 0===i?new Uint8Array(t,n):new Uint8Array(t,n,i);c.TYPED_ARRAY_SUPPORT?(e=t).__proto__=c.prototype:e=h(e,t);return e}(e,t,n,i):"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 i=0|f(t,n),r=(e=a(e,i)).write(t,n);r!==i&&(e=e.slice(0,r));return e}(e,t,n):function(e,t){if(c.isBuffer(t)){var n=0|p(t.length);return 0===(e=a(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||(i=t.length)!=i?a(e,0):h(e,t);if("Buffer"===t.type&&s(t.data))return h(e,t.data)}var i;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function u(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 d(e,t){if(u(t),e=a(e,t<0?0:0|p(t)),!c.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function h(e,t){var n=t.length<0?0:0|p(t.length);e=a(e,n);for(var i=0;i<n;i+=1)e[i]=255&t[i];return e}function p(e){if(e>=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|e}function f(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 i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return q(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(i)return q(e).length;t=(""+t).toLowerCase(),i=!0}}function m(e,t,n){var i=!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 C(this,t,n);case"utf8":case"utf-8":return E(this,t,n);case"ascii":return N(this,t,n);case"latin1":case"binary":return x(this,t,n);case"base64":return A(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,t,n);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}function g(e,t,n){var i=e[t];e[t]=e[n],e[n]=i}function y(e,t,n,i,r){if(0===e.length)return-1;if("string"==typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=r?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(r)return-1;n=e.length-1}else if(n<0){if(!r)return-1;n=0}if("string"==typeof t&&(t=c.from(t,i)),c.isBuffer(t))return 0===t.length?-1:v(e,t,n,i,r);if("number"==typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):v(e,[t],n,i,r);throw new TypeError("val must be string, number or Buffer")}function v(e,t,n,i,r){var s,o=1,a=e.length,c=t.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return-1;o=2,a/=2,c/=2,n/=2}function l(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(r){var u=-1;for(s=n;s<a;s++)if(l(e,s)===l(t,-1===u?0:s-u)){if(-1===u&&(u=s),s-u+1===c)return u*o}else-1!==u&&(s-=s-u),u=-1}else for(n+c>a&&(n=a-c),s=n;s>=0;s--){for(var d=!0,h=0;h<c;h++)if(l(e,s+h)!==l(t,h)){d=!1;break}if(d)return s}return-1}function b(e,t,n,i){n=Number(n)||0;var r=e.length-n;i?(i=Number(i))>r&&(i=r):i=r;var s=t.length;if(s%2!=0)throw new TypeError("Invalid hex string");i>s/2&&(i=s/2);for(var o=0;o<i;++o){var a=parseInt(t.substr(2*o,2),16);if(isNaN(a))return o;e[n+o]=a}return o}function _(e,t,n,i){return z(q(t,e.length-n),e,n,i)}function S(e,t,n,i){return z(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,i)}function w(e,t,n,i){return S(e,t,n,i)}function T(e,t,n,i){return z(U(t),e,n,i)}function I(e,t,n,i){return z(function(e,t){for(var n,i,r,s=[],o=0;o<e.length&&!((t-=2)<0);++o)n=e.charCodeAt(o),i=n>>8,r=n%256,s.push(r),s.push(i);return s}(t,e.length-n),e,n,i)}function A(e,t,n){return 0===t&&n===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,n))}function E(e,t,n){n=Math.min(e.length,n);for(var i=[],r=t;r<n;){var s,o,a,c,l=e[r],u=null,d=l>239?4:l>223?3:l>191?2:1;if(r+d<=n)switch(d){case 1:l<128&&(u=l);break;case 2:128==(192&(s=e[r+1]))&&(c=(31&l)<<6|63&s)>127&&(u=c);break;case 3:s=e[r+1],o=e[r+2],128==(192&s)&&128==(192&o)&&(c=(15&l)<<12|(63&s)<<6|63&o)>2047&&(c<55296||c>57343)&&(u=c);break;case 4:s=e[r+1],o=e[r+2],a=e[r+3],128==(192&s)&&128==(192&o)&&128==(192&a)&&(c=(15&l)<<18|(63&s)<<12|(63&o)<<6|63&a)>65535&&c<1114112&&(u=c)}null===u?(u=65533,d=1):u>65535&&(u-=65536,i.push(u>>>10&1023|55296),u=56320|1023&u),i.push(u),r+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var n="",i=0;for(;i<t;)n+=String.fromCharCode.apply(String,e.slice(i,i+=4096));return n}(i)}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 l(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,i){return u(t),t<=0?a(e,t):void 0!==n?"string"==typeof i?a(e,t).fill(n,i):a(e,t).fill(n):a(e,t)}(null,e,t,n)},c.allocUnsafe=function(e){return d(null,e)},c.allocUnsafeSlow=function(e){return d(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,i=t.length,r=0,s=Math.min(n,i);r<s;++r)if(e[r]!==t[r]){n=e[r],i=t[r];break}return n<i?-1:i<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(!s(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 i=c.allocUnsafe(t),r=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(i,r),r+=o.length}return i},c.byteLength=f,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)g(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)g(this,t,t+3),g(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)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},c.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?E(this,0,e):m.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,i,r){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===i&&(i=0),void 0===r&&(r=this.length),t<0||n>e.length||i<0||r>this.length)throw new RangeError("out of range index");if(i>=r&&t>=n)return 0;if(i>=r)return-1;if(t>=n)return 1;if(this===e)return 0;for(var s=(r>>>=0)-(i>>>=0),o=(n>>>=0)-(t>>>=0),a=Math.min(s,o),l=this.slice(i,r),u=e.slice(t,n),d=0;d<a;++d)if(l[d]!==u[d]){s=l[d],o=u[d];break}return s<o?-1:o<s?1:0},c.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},c.prototype.indexOf=function(e,t,n){return y(this,e,t,n,!0)},c.prototype.lastIndexOf=function(e,t,n){return y(this,e,t,n,!1)},c.prototype.write=function(e,t,n,i){if(void 0===t)i="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)i=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===i&&(i="utf8")):(i=n,n=void 0)}var r=this.length-t;if((void 0===n||n>r)&&(n=r),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var s=!1;;)switch(i){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return _(this,e,t,n);case"ascii":return S(this,e,t,n);case"latin1":case"binary":return w(this,e,t,n);case"base64":return T(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,e,t,n);default:if(s)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),s=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function N(e,t,n){var i="";n=Math.min(e.length,n);for(var r=t;r<n;++r)i+=String.fromCharCode(127&e[r]);return i}function x(e,t,n){var i="";n=Math.min(e.length,n);for(var r=t;r<n;++r)i+=String.fromCharCode(e[r]);return i}function C(e,t,n){var i=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>i)&&(n=i);for(var r="",s=t;s<n;++s)r+=B(e[s]);return r}function R(e,t,n){for(var i=e.slice(t,n),r="",s=0;s<i.length;s+=2)r+=String.fromCharCode(i[s]+256*i[s+1]);return r}function O(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 k(e,t,n,i,r,s){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>r||t<s)throw new RangeError('"value" argument is out of bounds');if(n+i>e.length)throw new RangeError("Index out of range")}function P(e,t,n,i){t<0&&(t=65535+t+1);for(var r=0,s=Math.min(e.length-n,2);r<s;++r)e[n+r]=(t&255<<8*(i?r:1-r))>>>8*(i?r:1-r)}function j(e,t,n,i){t<0&&(t=4294967295+t+1);for(var r=0,s=Math.min(e.length-n,4);r<s;++r)e[n+r]=t>>>8*(i?r:3-r)&255}function M(e,t,n,i,r,s){if(n+i>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function L(e,t,n,i,s){return s||M(e,0,n,4),r.write(e,t,n,i,23,4),n+4}function D(e,t,n,i,s){return s||M(e,0,n,8),r.write(e,t,n,i,52,8),n+8}c.prototype.slice=function(e,t){var n,i=this.length;if((e=~~e)<0?(e+=i)<0&&(e=0):e>i&&(e=i),(t=void 0===t?i:~~t)<0?(t+=i)<0&&(t=0):t>i&&(t=i),t<e&&(t=e),c.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=c.prototype;else{var r=t-e;n=new c(r,void 0);for(var s=0;s<r;++s)n[s]=this[s+e]}return n},c.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||O(e,t,this.length);for(var i=this[e],r=1,s=0;++s<t&&(r*=256);)i+=this[e+s]*r;return i},c.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||O(e,t,this.length);for(var i=this[e+--t],r=1;t>0&&(r*=256);)i+=this[e+--t]*r;return i},c.prototype.readUInt8=function(e,t){return t||O(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||O(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||O(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||O(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||O(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||O(e,t,this.length);for(var i=this[e],r=1,s=0;++s<t&&(r*=256);)i+=this[e+s]*r;return i>=(r*=128)&&(i-=Math.pow(2,8*t)),i},c.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||O(e,t,this.length);for(var i=t,r=1,s=this[e+--i];i>0&&(r*=256);)s+=this[e+--i]*r;return s>=(r*=128)&&(s-=Math.pow(2,8*t)),s},c.prototype.readInt8=function(e,t){return t||O(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||O(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||O(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||O(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||O(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||O(e,4,this.length),r.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||O(e,4,this.length),r.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||O(e,8,this.length),r.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||O(e,8,this.length),r.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,n,i){(e=+e,t|=0,n|=0,i)||k(this,e,t,n,Math.pow(2,8*n)-1,0);var r=1,s=0;for(this[t]=255&e;++s<n&&(r*=256);)this[t+s]=e/r&255;return t+n},c.prototype.writeUIntBE=function(e,t,n,i){(e=+e,t|=0,n|=0,i)||k(this,e,t,n,Math.pow(2,8*n)-1,0);var r=n-1,s=1;for(this[t+r]=255&e;--r>=0&&(s*=256);)this[t+r]=e/s&255;return t+n},c.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||k(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||k(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):P(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||k(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):P(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||k(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):j(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||k(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):j(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,n,i){if(e=+e,t|=0,!i){var r=Math.pow(2,8*n-1);k(this,e,t,n,r-1,-r)}var s=0,o=1,a=0;for(this[t]=255&e;++s<n&&(o*=256);)e<0&&0===a&&0!==this[t+s-1]&&(a=1),this[t+s]=(e/o>>0)-a&255;return t+n},c.prototype.writeIntBE=function(e,t,n,i){if(e=+e,t|=0,!i){var r=Math.pow(2,8*n-1);k(this,e,t,n,r-1,-r)}var s=n-1,o=1,a=0;for(this[t+s]=255&e;--s>=0&&(o*=256);)e<0&&0===a&&0!==this[t+s+1]&&(a=1),this[t+s]=(e/o>>0)-a&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||k(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||k(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):P(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||k(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):P(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||k(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):j(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||k(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):j(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,n){return L(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return L(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return D(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return D(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,i){if(n||(n=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i<n&&(i=n),i===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(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t<i-n&&(i=e.length-t+n);var r,s=i-n;if(this===e&&n<t&&t<i)for(r=s-1;r>=0;--r)e[r+t]=this[r+n];else if(s<1e3||!c.TYPED_ARRAY_SUPPORT)for(r=0;r<s;++r)e[r+t]=this[r+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+s),t);return s},c.prototype.fill=function(e,t,n,i){if("string"==typeof e){if("string"==typeof t?(i=t,t=0,n=this.length):"string"==typeof n&&(i=n,n=this.length),1===e.length){var r=e.charCodeAt(0);r<256&&(e=r)}if(void 0!==i&&"string"!=typeof i)throw new TypeError("encoding must be a string");if("string"==typeof i&&!c.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}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 s;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(s=t;s<n;++s)this[s]=e;else{var o=c.isBuffer(e)?e:q(new c(e,i).toString()),a=o.length;for(s=0;s<n-t;++s)this[s+t]=o[s%a]}return this};var F=/[^+\/0-9A-Za-z-_]/g;function B(e){return e<16?"0"+e.toString(16):e.toString(16)}function q(e,t){var n;t=t||1/0;for(var i=e.length,r=null,s=[],o=0;o<i;++o){if((n=e.charCodeAt(o))>55295&&n<57344){if(!r){if(n>56319){(t-=3)>-1&&s.push(239,191,189);continue}if(o+1===i){(t-=3)>-1&&s.push(239,191,189);continue}r=n;continue}if(n<56320){(t-=3)>-1&&s.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(t-=3)>-1&&s.push(239,191,189);if(r=null,n<128){if((t-=1)<0)break;s.push(n)}else if(n<2048){if((t-=2)<0)break;s.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;s.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;s.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return s}function U(e){return i.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(F,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function z(e,t,n,i){for(var r=0;r<i&&!(r+n>=t.length||r>=e.length);++r)t[r+n]=e[r];return r}}).call(this,n(15))},function(e,t,n){"use strict";n(9),t.byteLength=function(e){var t=l(e),n=t[0],i=t[1];return 3*(n+i)/4-i},t.toByteArray=function(e){var t,n,i=l(e),o=i[0],a=i[1],c=new s(function(e,t,n){return 3*(t+n)/4-n}(0,o,a)),u=0,d=a>0?o-4:o;for(n=0;n<d;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],c[u++]=t>>16&255,c[u++]=t>>8&255,c[u++]=255&t;2===a&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,c[u++]=255&t);1===a&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t);return c},t.fromByteArray=function(e){for(var t,n=e.length,r=n%3,s=[],o=0,a=n-r;o<a;o+=16383)s.push(u(e,o,o+16383>a?a:o+16383));1===r?(t=e[n-1],s.push(i[t>>2]+i[t<<4&63]+"==")):2===r&&(t=(e[n-2]<<8)+e[n-1],s.push(i[t>>10]+i[t>>4&63]+i[t<<2&63]+"="));return s.join("")};for(var i=[],r=[],s="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,c=o.length;a<c;++a)i[a]=o[a],r[o.charCodeAt(a)]=a;function l(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 u(e,t,n){for(var r,s,o=[],a=t;a<n;a+=3)r=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),o.push(i[(s=r)>>18&63]+i[s>>12&63]+i[s>>6&63]+i[63&s]);return o.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},function(e,t){
30
30
  /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
31
- t.read=function(e,t,n,i,r){var s,o,a=8*r-i-1,c=(1<<a)-1,l=c>>1,u=-7,d=n?r-1:0,h=n?-1:1,p=e[t+d];for(d+=h,s=p&(1<<-u)-1,p>>=-u,u+=a;u>0;s=256*s+e[t+d],d+=h,u-=8);for(o=s&(1<<-u)-1,s>>=-u,u+=i;u>0;o=256*o+e[t+d],d+=h,u-=8);if(0===s)s=1-l;else{if(s===c)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,i),s-=l}return(p?-1:1)*o*Math.pow(2,s-i)},t.write=function(e,t,n,i,r,s){var o,a,c,l=8*s-r-1,u=(1<<l)-1,d=u>>1,h=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,p=i?0:s-1,f=i?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-o))<1&&(o--,c*=2),(t+=o+d>=1?h/c:h*Math.pow(2,1-d))*c>=2&&(o++,c/=2),o+d>=u?(a=0,o=u):o+d>=1?(a=(t*c-1)*Math.pow(2,r),o+=d):(a=t*Math.pow(2,d-1)*Math.pow(2,r),o=0));r>=8;e[n+p]=255&a,p+=f,a/=256,r-=8);for(o=o<<r|a,l+=r;l>0;e[n+p]=255&o,p+=f,o/=256,l-=8);e[n+p-f]|=128*m}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},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(15))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Notifications=void 0;const i=n(264),r=n(16);function s(e,t){return[...e,...t].filter((e,t,n)=>n.indexOf(e)===t)}t.Notifications=class{constructor(e){this.subscriptions={},this.bulkSubscriptions={},this.topicPriorities={},this.client=e,e.on("pubsub:event",this.pubsubEvent.bind(this)),e.on("connected",this.subscriptionsKeepAlive.bind(this)),this.debouncedResubscribe=i(this.resubscribe.bind(this),100)}get pubsubHost(){try{return"notifications."+this.client.config.apiHost.replace(/http(s?):\/\//,"")}catch(e){return"notifications.mypurecloud.com"}}handleStanzaInstanceChange(e){const t=this.stanzaInstance&&this.stanzaInstance.id!==e.id&&this.stanzaInstance.channelId!==e.channelId;this.stanzaInstance=e,t&&(this.client.logger.info("resubscribing due to hard reconnect"),this.debouncedResubscribe())}topicHandlers(e){return this.subscriptions[e]||(this.subscriptions[e]=[]),this.subscriptions[e]}pubsubEvent(e){let{pubsub:t}=e,n=t.items.node;n.includes("no_longer_subscribed")?n="no_longer_subscribed":n.includes("duplicate_id")&&(n="duplicate_id");const i=t.items.published[0].content.json,r=this.topicHandlers(n);this.client.emit("notify",{topic:n,data:i}),this.client.emit("notify:"+n,i),r.forEach(e=>{e(i)})}async xmppSubscribe(e){if(0!==this.topicHandlers(e).length||this.bulkSubscriptions[e])return Promise.resolve();const t=()=>this.stanzaInstance.subscribeToNode(this.pubsubHost,e);return this.client.connected?t():new Promise((e,n)=>{this.client.once("connected",()=>t().then(e,n))})}xmppUnsubscribe(e){if(0!==this.topicHandlers(e).length||this.bulkSubscriptions[e])return Promise.resolve();const t=()=>this.stanzaInstance.unsubscribeFromNode(this.pubsubHost,e);return this.client.connected?t():new Promise((e,n)=>{this.client.once("connected",()=>t().then(e,n))})}mapCombineTopics(e){const t={},n=[],i=[];e.forEach(e=>{e.includes("?")?n.push({id:e}):i.push(e)}),i.map(e=>{const t=e.split("."),n=t.splice(t.length-1);return{prefix:t.join("."),postfix:n}}).forEach(e=>{t[e.prefix]?t[e.prefix].push(e.postfix):t[e.prefix]=[e.postfix]});let r=[];const s=(e,t)=>{const n=`${e}${1===t.length?".":"?"}${t.join("&")}`;n.length<200?r.push({id:n}):1===t.length?this.client.logger.error("Refusing to attempt topic with length > 200",n):(s(e,t.slice(0,t.length/2)),s(e,t.slice(t.length/2)))};Object.keys(t).forEach(e=>{const n=t[e];s(e,n)});const o=r.concat(n);return this.truncateTopicList(this.prioritizeTopicList(o))}prioritizeTopicList(e){return e.sort((e,t)=>this.getTopicPriority(t.id)-this.getTopicPriority(e.id)),e}getTopicPriority(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const{prefix:n,postfixes:i}=this.getTopicParts(e),r=this.topicPriorities[n],s=r&&Object.keys(r).filter(e=>i.includes(e)).map(e=>r[e]),o=s&&s.length&&s.reduce((e,t)=>t>e?t:e);return t?o||0:o}truncateTopicList(e){const t=e.slice(0,1e3);if(e.length>1e3){let t=e.slice(1e3);if(t.length>20){const e=t.length-20;t=t.slice(20),t.push(`...and ${e} more`)}this.client.logger.warn("Too many topics to subscribe to; truncating extra topics",{droppedTopics:t})}return t}makeBulkSubscribeRequest(e,t){const 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},i=this.stanzaInstance.channelId;return this.client.http.requestApi(`notifications/channels/${i}/subscriptions`,n)}createSubscription(e,t){r.splitIntoIndividualTopics(e).forEach(e=>{let n=this.topicHandlers(e);n.includes(t)||n.push(t)})}removeSubscription(e,t){r.splitIntoIndividualTopics(e).forEach(e=>{let n=this.topicHandlers(e),i=n.indexOf(t);i>-1&&n.splice(i,1),n.length||delete this.subscriptions[e]})}removeTopicPriority(e){if(this.getTopicPriority(e,!1)){const{prefix:t,postfixes:n}=this.getTopicParts(e);n.forEach(e=>{delete this.topicPriorities[t][e]}),Object.keys(this.topicPriorities[t]).length||delete this.topicPriorities[t]}}getActiveIndividualTopics(){const e=[];return Object.keys(this.subscriptions).forEach(t=>{if("streaming-subscriptions-expiring"===t)return;this.topicHandlers(t).length>0&&e.push(t)}),e}resubscribe(){const e=Object.keys(this.bulkSubscriptions);return e.length+this.getActiveIndividualTopics().length===0?Promise.resolve():this.bulkSubscribe(e,{replace:!0})}subscriptionsKeepAlive(){const e="streaming-subscriptions-expiring";0===this.topicHandlers(e).length&&this.createSubscription(e,()=>{this.client.logger.info(e+" - Triggering resubscribe.",{channelId:this.client.config.channelId}),this.debouncedResubscribe().catch(e=>{const t="Error resubscribing to topics";this.client.logger.error(t,e),this.client.emit("pubsub:error",{msg:t,err:e})})})}getTopicParts(e){const t=e.includes("?"),n=t?"?":".",i=e.split(n),r=t?i[1]:i.splice(i.length-1),s=t?i[0]:i.join(".");let o=[];return o=t?r.split("&"):r,{prefix:s,postfixes:o}}setTopicPriorities(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object.keys(e).forEach(t=>{const n=this.getTopicParts(t),i=this.topicPriorities[n.prefix],r=e[t];if(i)n.postfixes.forEach(e=>{const t=i[e];(t&&t<r||!t)&&(i[e]=r)});else{const e=n.postfixes.reduce((e,t)=>(e[t]=r,e),{});this.topicPriorities[n.prefix]=e}})}subscribe(e,t,n,i){let r;return i&&this.setTopicPriorities({[e]:i}),r=n?this.xmppSubscribe(e):this.debouncedResubscribe(),t?this.createSubscription(e,t):this.bulkSubscriptions[e]=!0,r}unsubscribe(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()}async bulkSubscribe(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{replace:!1,force:!1},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.setTopicPriorities(n);let i=s(e,[]);t.replace&&!t.force?i=s(i,this.getActiveIndividualTopics()):t.force&&(this.subscriptions={}),await this.makeBulkSubscribeRequest(i,t),t.replace&&(this.bulkSubscriptions={}),e.forEach(e=>{this.bulkSubscriptions[e]=!0})}get expose(){return{subscribe:this.subscribe.bind(this),unsubscribe:this.unsubscribe.bind(this),bulkSubscribe:this.bulkSubscribe.bind(this)}}}},function(e,t,n){"use strict";function i(e){return"function"==typeof e?e():e}function r(){var e={};return e.promise=new Promise((function(t,n){e.resolve=t,e.reject=n})),e}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]:{},s=void 0,o=void 0,a=void 0,c=[];return function(){var u=i(t),d=(new Date).getTime(),h=!s||d-s>u;s=d;for(var p=arguments.length,f=Array(p),m=0;m<p;m++)f[m]=arguments[m];if(h&&n.leading)return n.accumulate?Promise.resolve(e.call(this,[f])).then((function(e){return e[0]})):Promise.resolve(e.call.apply(e,[this].concat(f)));if(o?clearTimeout(a):o=r(),c.push(f),a=setTimeout(l.bind(this),u),n.accumulate){var g=c.length-1;return o.promise.then((function(e){return e[g]}))}return o.promise};function l(){var t=o;clearTimeout(a),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";Object.defineProperty(t,"__esModule",{value:!0}),t.WebrtcExtension=void 0;const i=n(26),r=n(10),s=n(13),o=n(268),a=n(8),c=n(28),l=i.__importDefault(n(273)),u=n(274),d=n(275),h=n(16),p=n(68),f=n(289),m=n(24),g=n(58),y=n(64),v=n(38),b="requestIncomingRtcSession",_="cancelIncomingRtcSession",S="handledIncomingRtcSession",w="incomingRtcSession",T="outgoingRtcSession",I="rtcSessionError";class A extends r.EventEmitter{constructor(e,t){super(),this.ignoredSessions=new o.LRUCache({max:10,ttl:216e3}),this.earlyIceCandidates=new o.LRUCache({max:10,ttl:6e4,ttlAutopurge:!0}),this.pendingSessions={},this.statsArr=[],this.throttleSendStatsInterval=25e3,this.currentMaxStatSize=15e3,this.statsSizeDecreaseAmount=3e3,this.statBuffer=0,this.discoRetries=0,this.iceServers=[],this.webrtcSessions=[],this.client=e,this.config={allowIPv6:!0===t.allowIPv6,optOutOfWebrtcStatsTelemetry:t.optOutOfWebrtcStatsTelemetry},this.logger=e.logger,this.addEventListeners(),this.throttledSendStats=l.default(this.sendStats.bind(this),this.throttleSendStatsInterval,{leading:!1,trailing:!0}),this.client.on("jingle:outgoing",e=>(this.logger.info("Emitting jingle:outgoing media-session (session-init)",e.sid),this.emit(T,e))),this.client.on("jingle:incoming",e=>(this.logger.info("Emitting jingle:incoming media-session (session-init)",e.sid),this.emit(w,e))),this.client.on("jingle:created",e=>{e instanceof g.StanzaMediaSession||e.end("cancel",!0)}),window.addEventListener("offline",()=>this.onOnlineStatusChange(!1)),window.addEventListener("online",()=>this.onOnlineStatusChange(!0))}get jid(){var e;return null===(e=this.stanzaInstance)||void 0===e?void 0:e.jid}onOnlineStatusChange(e){this.addStatToQueue({actionName:"WebrtcStats",details:{_eventType:"onlineStatus",_eventTimestamp:(new Date).getTime(),online:e}})}async handleStanzaInstanceChange(e){this.stanzaInstance=e,this.refreshIceServersTimer&&(clearInterval(this.refreshIceServersTimer),this.refreshIceServersTimer=null),e.on("iq:set:genesysWebrtc",this.handleGenesysWebrtcStanza.bind(this)),this.refreshIceServersTimer=setInterval(this.refreshIceServers.bind(this),216e5),this.client.emit("sessionManagerChange",e)}async configureNewStanzaInstance(e){Object.assign(e.jingle.config.peerConnectionConfig,{sdpSemantics:"unified-plan"}),await this.configureStanzaIceServers(e),e.stanzas.define(d.definitions),e.jingle.prepareSession=this.prepareSession.bind(this),e.jingle.on("log",(e,t,n)=>{this.logger[e](t,n)});const t=["iceConnectionType","peerTrackAdded","peerTrackRemoved","mute","unmute","sessionState","connectionState","terminated","stats","endOfCandidates"];for(const n of t)e.jingle.on(n,(function(e){if(e instanceof g.StanzaMediaSession){for(var t=arguments.length,i=new Array(t>1?t-1:0),r=1;r<t;r++)i[r-1]=arguments[r];e.emit(n,...i)}}))}configureStanzaIceServers(e){return e.jingle.config.iceServers=[],this.setIceServers([],e),this._refreshIceServers(e)}async handleGenesysOffer(e){const t=e.genesysWebrtc.params,n="relay"===this.getIceTransportPolicy()&&u.isFirefox,i={id:t.sessionId,logger:this.logger,peerID:e.from,fromJid:e.from,sessionType:this.getSessionTypeByJid(e.from),conversationId:t.conversationId,ignoreHostCandidatesFromRemote:n,optOutOfWebrtcStatsTelemetry:!!this.config.optOutOfWebrtcStatsTelemetry,allowIPv6:this.config.allowIPv6,iceServers:this.iceServers,reinvite:!!t.reinvite,iceTransportPolicy:this.getIceTransportPolicy()};let r;const s=this.pendingSessions[t.sessionId];r=s?{...i,meetingId:s.meetingId,fromUserId:s.fromUserId,originalRoomJid:s.originalRoomJid,privAnswerMode:s.privAnswerMode}:i;const o=this.webrtcSessions.find(e=>e.id===r.id);if(this.logger.info("offer received",{existingSession:!!o,mediaSessionParams:r}),o&&(o.conversationId=t.conversationId,!h.iceIsDifferent(o.peerConnection.remoteDescription.sdp,t.sdp)))return this.handleGenesysRenegotiate(o,t.sdp);const a=new y.GenesysCloudMediaSession(this,r);return await a.setRemoteDescription(t.sdp),this.proxyStatsForSession(a),a.on("sendIq",e=>{var t;return null===(t=this.stanzaInstance)||void 0===t?void 0:t.sendIQ(e)}),a.on("terminated",()=>{this.webrtcSessions=this.webrtcSessions.filter(e=>e.id!==a.id)}),this.webrtcSessions.push(a),this.logger.info("emitting sdp media-session (offer"),this.applyEarlyIceCandidates(a),this.emit(w,a)}applyEarlyIceCandidates(e){const t=this.earlyIceCandidates.get(e.id);if(t){this.earlyIceCandidates.delete(e.id);for(const n of t)e.addRemoteIceCandidate(n)}}async handleGenesysRenegotiate(e,t){await e.peerConnection.setRemoteDescription({sdp:t,type:"offer"}),await e.accept()}async handleGenesysIceCandidate(e){const t=e.genesysWebrtc.params,n=this.getSessionById(t.sessionId,!0);if(n)await n.addRemoteIceCandidate(t.sdp);else{const e=this.earlyIceCandidates.get(t.sessionId);e?this.earlyIceCandidates.set(t.sessionId,[...e,t.sdp]):this.earlyIceCandidates.set(t.sessionId,[t.sdp])}}async handleGenesysTerminate(e){const t=e.genesysWebrtc.params;this.getSessionById(t.sessionId).onSessionTerminate(t.reason)}getSessionById(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=this.getAllSessions().find(t=>t.id===e);if(!n&&!t){const t=new Error("Failed to find session by id");throw this.logger.error(t,{sessionId:e}),t}return n}async sendIq(e){if(!this.stanzaInstance)throw new Error("Failed to send iq because there was no stanza instance");return this.stanzaInstance.sendIQ(e)}async handleMessage(e){e.propose?await this.handlePropose(e):e.retract?this.handleRetract(e.retract.sessionId):e.accept?this.handledIncomingRtcSession(e.accept.sessionId,e):e.reject&&this.handledIncomingRtcSession(e.reject.sessionId,e)}async handleGenesysWebrtcStanza(e){const t=e.genesysWebrtc;return"offer"===t.method?this.handleGenesysOffer(e):"iceCandidate"===t.method?this.handleGenesysIceCandidate(e):"terminate"===t.method?this.handleGenesysTerminate(e):void 0}prepareSession(e){const t=this.pendingSessions[e.sid];if(t&&delete this.pendingSessions[t.sessionId],null==t?void 0:t.sdpOverXmpp)return void this.logger.debug("skipping creation of jingle webrtc session due to sdpOverXmpp on the pendingSession");const n="relay"===this.getIceTransportPolicy()&&u.isFirefox,i={options:e,logger:this.logger,id:e.sid,fromJid:e.peerID,peerID:e.peerID,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,meetingId:null==t?void 0:t.meetingId},r=new g.StanzaMediaSession(i);return this.proxyStatsForSession(r),r}proxyStatsForSession(e){e.on("stats",t=>{const n=JSON.parse(JSON.stringify(t)),i={conversationId:e.conversationId,sessionId:e.id,sessionType:e.sessionType},r=f.formatStatsEvent(n,i);this.addStatToQueue(r)})}addStatToQueue(e){if(this.config.optOutOfWebrtcStatsTelemetry)return;e.details._appId||(e.details._appId=this.logger.clientId,e.details._appName="streamingclient",e.details._appVersion=p.Client.version),e.details._originAppId=this.client.config.appId;const t=f.deepFlatten(e.details);Object.keys(t).forEach(e=>{const n=t[e];"boolean"==typeof n&&(t[e]=""+n)});const n={...e,details:t},i=h.calculatePayloadSize(n),r=this.statBuffer+i>this.currentMaxStatSize;this.statsArr.push(n),this.statBuffer+=i,r?this.sendStatsImmediately():this.throttledSendStats()}getLogDetailsForPendingSessionId(e){const t={sessionId:e},n=this.pendingSessions[e];return n&&(t.sessionType=n.sessionType,t.conversationId=n.conversationId),t}sendStatsImmediately(){this.throttledSendStats(),this.throttledSendStats.flush()}async sendStats(){var e,t;if(!navigator.onLine)return;const n=[];let i=0;for(const e of this.statsArr){const t=h.calculatePayloadSize(e);if(!(i+t<this.currentMaxStatSize))break;n.push(e),i+=t}if(this.statsArr.splice(0,n.length),this.statBuffer=this.statsArr.reduce((e,t)=>e+h.calculatePayloadSize(t),0),!n.length||this.client.isGuest)return;const r={appName:"streamingclient",appVersion:p.Client.version,originAppName:this.client.config.appName,originAppVersion:this.client.config.appVersion,actions:n};try{let e=this.client.config.authToken,t="diagnostics/newrelic/insights";this.client.backgroundAssistantMode&&(e=this.client.config.jwt,t+="/backgroundassistant"),await this.client.http.requestApi(t,{method:"post",responseType:"text",host:this.client.config.apiHost,authToken:e,logger:this.client.logger,data:r}),this.currentMaxStatSize=15e3}catch(i){if(!v.HttpClient.retryStatusCodes.has(null===(e=i.response)||void 0===e?void 0:e.status)&&navigator.onLine||(this.statsArr=[...n,...this.statsArr],this.statBuffer=this.statsArr.reduce((e,t)=>e+h.calculatePayloadSize(t),0)),413===(null===(t=i.response)||void 0===t?void 0:t.status)){const e=this.currentMaxStatSize;this.currentMaxStatSize-=this.statsSizeDecreaseAmount,this.logger.info("Failed to send stats due to 413, retrying with smaller set",{attemptedPayloadSize:e,newPayloadSize:this.currentMaxStatSize}),await this.sendStats()}else this.logger.error("Failed to send stats",{err:i,numberOfFailedStats:n.length},{skipServer:!navigator.onLine})}}addEventListeners(){this.client.on("connected",()=>(this.refreshIceServersTimer&&(clearInterval(this.refreshIceServersTimer),this.refreshIceServersTimer=null),this.refreshIceServersTimer=setInterval(this.refreshIceServers.bind(this),216e5),this.refreshIceServers().catch(e=>this.logger.error("Error fetching ice servers after streaming-client connected",{error:e,channelId:this.client.config.channelId})))),this.client.on("disconnected",()=>{clearInterval(this.refreshIceServersTimer),this.refreshIceServersTimer=null})}async handlePropose(e){if(e.from===this.jid)return;const t=e.propose.sessionId;let n=this.pendingSessions[t];const i=!!n,r=this.getSessionTypeByJid(e.from),s={sessionId:t,conversationId:e.propose.conversationId,sessionType:r,isDuplicatePropose:i};if(this.logger.info("propose received",s),!i){const{appId:i}=this.client.config,o={actionName:"WebrtcStats",details:{_eventTimestamp:(new Date).getTime(),_eventType:"firstPropose",conversationId:s.conversationId,sdpViaXmppRequested:!!e.propose.sdpOverXmpp,sessionId:t,sessionType:r}};this.addStatToQueue(o);const a=e.from,c=a;e.propose.originalRoomJid=e.propose.originalRoomJid||c,n={...e.propose,toJid:e.to,fromJid:a,sessionType:r,roomJid:c,id:t,sdpOverXmpp:e.propose.sdpOverXmpp,privAnswerMode:e.propose.privAnswerMode},this.pendingSessions[t]=n}if(n.accepted)return this.logger.info("proceed already sent for this session, but sending another",s),void await this.acceptRtcSession(t);this.emit(b,Object.assign(n))}handleRetract(e){return this.logger.info("retract received",this.getLogDetailsForPendingSessionId(e)),delete this.pendingSessions[e],this.emit(_,e)}handledIncomingRtcSession(e,t){let n=t.accept?"accept":"reject";return this.logger.info(n+" received",this.getLogDetailsForPendingSessionId(e)),this.emit(S,e)}async initiateRtcSession(e){const t={to:e.jid,propose:{id:c.v4(),descriptions:[]}};if(e.stream)for(let n of Array.from(e.stream.getTracks()))t.propose.descriptions.push({media:n.kind});if(e.provideVideo){t.propose.descriptions.filter(e=>"video"===e.media).length>0||t.propose.descriptions.push({media:"video"})}if(e.provideAudio){t.propose.descriptions.filter(e=>"audio"===e.media).length>0||t.propose.descriptions.push({media:"audio"})}if(e.mediaPurpose&&t.propose.descriptions.push({media:e.mediaPurpose}),e.jid&&e.jid.match(/@conference/)){let n=t.propose.descriptions;0===n.length&&(n=[{media:"listener"}]);const i={type:"upgradeMedia",to:e.jid,id:c.v4(),from:this.jid,media:{conversationId:e.conversationId,sourceCommunicationId:e.sourceCommunicationId}};for(const e of n)i.media[e.media]=!0;await this.stanzaInstance.send("presence",i)}else await this.stanzaInstance.send("message",t),this.pendingSessions[t.propose.id]=t;return t.propose.id}async acceptRtcSession(e){const t=this.pendingSessions[e];if(!t)return void this.emit(I,"Cannot accept session because it is not pending or does not exist");const n={to:t.fromJid,proceed:{sessionId:e}};t.accepted=!0;const i=this.getLogDetailsForPendingSessionId(e);this.logger.info("sending jingle proceed",i),await this.stanzaInstance.send("message",n),this.logger.info("sent jingle proceed",i)}async rejectRtcSession(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=this.getLogDetailsForPendingSessionId(e),i=this.pendingSessions[e];if(i)if(delete this.pendingSessions[e],t)this.ignoredSessions.set(e,!0);else{const t={to:s.toBare(this.jid),reject:{sessionId:e}},r=this.stanzaInstance.send("message",t),o={to:i.fromJid,reject:{sessionId:e}},a=this.stanzaInstance.send("message",o);this.logger.info("sending jingle reject",n),await Promise.all([r,a]),this.logger.info("sent jingle reject",n)}else this.emit(I,"Cannot reject session because it is not pending or does not exist")}async rtcSessionAccepted(e){this.pendingSessions[e];const t=this.getLogDetailsForPendingSessionId(e),n={to:s.toBare(this.jid),accept:{sessionId:e}};this.logger.info("sending session-info:accept",t),await this.stanzaInstance.send("message",n),this.logger.info("sent session-info:accept",t)}async notifyScreenShareStart(e){return this.stanzaInstance.send("iq",{to:""+e.peerID,from:this.jid,type:"set",jingle:{action:a.JingleAction.SessionInfo,sid:e.id,screenstart:{}}})}async notifyScreenShareStop(e){return this.stanzaInstance.send("iq",{to:""+e.peerID,from:this.jid,type:"set",jingle:{action:a.JingleAction.SessionInfo,sid:e.id,screenstop:{}}})}async cancelRtcSession(e){const t=this.pendingSessions[e],n=this.getLogDetailsForPendingSessionId(e);if(!t)return void this.emit(I,"Cannot cancel session because it is not pending or does not exist");const i={to:t.toJid,retract:{sessionId:e}};delete this.pendingSessions[e],this.logger.info("sending jingle retract",n),await this.stanzaInstance.send("message",i),this.logger.info("sent jingle retract",n)}async refreshIceServers(){return this.refreshIceServersRetryPromise||(this.refreshIceServersRetryPromise=h.retryPromise(this._refreshIceServers.bind(this,this.stanzaInstance),e=>++this.discoRetries>2?(this.logger.warn("fetching ice servers failed. max retries reached.",{retryAttempt:this.discoRetries,MAX_DISCO_RETRIES:2,error:e,channelId:this.client.config.channelId}),!1):(this.logger.warn("fetching ice servers failed. retrying",{retryAttempt:this.discoRetries,error:e,channelId:this.client.config.channelId}),!0),0,this.client.logger)),this.refreshIceServersRetryPromise.promise.finally(()=>{this.discoRetries=0,this.refreshIceServersRetryPromise=void 0})}async _refreshIceServers(e){if(!e)throw new Error("No stanza instance to refresh ice servers");const t=e.config.server,n=e.getServices(t,"turn","1"),i=e.getServices(t,"stun","1"),r=new Promise((e,t)=>{setTimeout(()=>{t(new Error("Timeout waiting for refresh ice servers to finish"))},15e3),Promise.all([n,i]).then(t=>{let[n,i]=t;e([n,i])}).catch(t)}),[s,o]=await r,a=[...s.services,...o.services].map(e=>{const t=e.port?":"+e.port:"",n={type:e.type,urls:`${e.type}:${e.host}${t}`};return["turn","turns"].includes(e.type)&&(e.transport&&"udp"!==e.transport&&(n.urls+="?transport="+e.transport),e.username&&(n.username=e.username),e.password&&(n.credential=e.password)),n});return this.setIceServers(a,e),o.services.length?this.setIceTransportPolicy("all",e):(this.logger.info('No stun servers received, setting iceTransportPolicy to "relay"'),this.setIceTransportPolicy("relay",e)),a}setIceServers(e,t){t.jingle.iceServers=e,this.iceServers=e}getIceTransportPolicy(){var e;return null===(e=this.stanzaInstance)||void 0===e?void 0:e.jingle.config.peerConnectionConfig.iceTransportPolicy}setIceTransportPolicy(e,t){t.jingle.config.peerConnectionConfig.iceTransportPolicy=e}getSessionTypeByJid(e){return h.isAcdJid(e)?m.SessionTypes.acdScreenShare:h.isScreenRecordingJid(e)?m.SessionTypes.screenRecording:h.isSoftphoneJid(e)?m.SessionTypes.softphone:h.isVideoJid(e)?m.SessionTypes.collaborateVideo:m.SessionTypes.unknown}getSessionManager(){var e;return null===(e=this.stanzaInstance)||void 0===e?void 0:e.jingle}getAllSessions(){var e;const t=null===(e=this.stanzaInstance)||void 0===e?void 0:e.jingle.sessions;return[...t&&Object.values(t)||[],...this.webrtcSessions]}proxyNRStat(e){this.addStatToQueue(e)}get expose(){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),getSessionManager:this.getSessionManager.bind(this),getAllSessions:this.getAllSessions.bind(this),proxyNRStat:this.proxyNRStat.bind(this)}}}t.WebrtcExtension=A},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";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.r(t),function(e){n.d(t,"LRUCache",(function(){return ge}));n(9);var i=n(4),r=n.n(i),s=n(0),o=n.n(s),a=n(7),c=n.n(a);function l(e,t){d(e,t),t.add(e)}function u(e,t,n){d(e,t),t.set(e,n)}function d(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function h(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}function p(e,t,n,i){return m(e,t),f(n,"set"),function(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}(e,n,i),i}function f(e,t){if(void 0===e)throw new TypeError("attempted to "+t+" private static field before its declaration")}function m(e,t){if(e!==t)throw new TypeError("Private static access of wrong provenance")}const g="object"==typeof performance&&performance&&"function"==typeof performance.now?performance:Date,y=new Set,v="object"==typeof e&&e?e:{},b=(e,t,n,i)=>{"function"==typeof v.emitWarning?v.emitWarning(e,t,n,i):console.error(`[${n}] ${t}: ${e}`)};let _=globalThis.AbortController,S=globalThis.AbortSignal;if(void 0===_){var w;S=class{constructor(){c()(this,"onabort",void 0),c()(this,"_onabort",[]),c()(this,"reason",void 0),c()(this,"aborted",!1)}addEventListener(e,t){this._onabort.push(t)}},_=class{constructor(){c()(this,"signal",new S),t()}abort(e){var t,n;if(!this.signal.aborted){this.signal.reason=e,this.signal.aborted=!0;for(const t of this.signal._onabort)t(e);null===(t=(n=this.signal).onabort)||void 0===t||t.call(n,e)}}};let e="1"!==(null===(w=v.env)||void 0===w?void 0:w.LRU_CACHE_IGNORE_AC_WARNING);const t=()=>{e&&(e=!1,b("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",t))}}Symbol("type");const T=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),I=e=>T(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?A:null:null;class A extends Array{constructor(e){super(e),this.fill(0)}}class E{static create(e){const t=I(e);if(!t)return[];p(E,E,N,!0);const n=new E(e,t);return p(E,E,N,!1),n}constructor(e,t){if(c()(this,"heap",void 0),c()(this,"length",void 0),i=N,m(n=E,E),f(i,"get"),!function(e,t){return t.get?t.get.call(e):t.value}(n,i))throw new TypeError("instantiate Stack using Stack.create(n)");var n,i;this.heap=new t(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}}var N={writable:!0,value:!1},x=new WeakMap,C=new WeakMap,R=new WeakMap,O=new WeakMap,k=new WeakMap,P=new WeakMap,j=new WeakMap,M=new WeakMap,L=new WeakMap,D=new WeakMap,F=new WeakMap,B=new WeakMap,q=new WeakMap,U=new WeakMap,z=new WeakMap,J=new WeakMap,G=new WeakMap,H=new WeakMap,V=new WeakMap,W=new WeakMap,$=new WeakMap,Q=new WeakMap,K=new WeakMap,Y=new WeakSet,X=new WeakMap,Z=new WeakMap,ee=new WeakMap,te=new WeakMap,ne=new WeakSet,ie=new WeakMap,re=new WeakMap,se=new WeakMap,oe=new WeakSet,ae=new WeakSet,ce=new WeakSet,le=new WeakSet,ue=new WeakSet,de=new WeakSet,he=new WeakSet,pe=new WeakSet,fe=new WeakSet,me=new WeakSet;class ge{static unsafeExposeInternals(e){return{starts:o()(e,V),ttls:o()(e,W),sizes:o()(e,H),keyMap:o()(e,L),keyList:o()(e,D),valList:o()(e,F),next:o()(e,B),prev:o()(e,q),get head(){return o()(e,U)},get tail(){return o()(e,z)},free:o()(e,J),isBackgroundFetch:t=>h(e,de,Ie).call(e,t),backgroundFetch:(t,n,i,r)=>h(e,ue,Te).call(e,t,n,i,r),moveToTail:t=>h(e,pe,Ee).call(e,t),indexes:t=>h(e,oe,be).call(e,t),rindexes:t=>h(e,ae,_e).call(e,t),isStale:t=>o()(e,te).call(e,t)}}get max(){return o()(this,x)}get maxSize(){return o()(this,C)}get calculatedSize(){return o()(this,M)}get size(){return o()(this,j)}get fetchMethod(){return o()(this,k)}get memoMethod(){return o()(this,P)}get dispose(){return o()(this,R)}get disposeAfter(){return o()(this,O)}constructor(e){l(this,me),l(this,fe),l(this,pe),l(this,he),l(this,de),l(this,ue),l(this,le),l(this,ce),l(this,ae),l(this,oe),l(this,ne),l(this,Y),u(this,x,{writable:!0,value:void 0}),u(this,C,{writable:!0,value:void 0}),u(this,R,{writable:!0,value:void 0}),u(this,O,{writable:!0,value:void 0}),u(this,k,{writable:!0,value:void 0}),u(this,P,{writable:!0,value:void 0}),c()(this,"ttl",void 0),c()(this,"ttlResolution",void 0),c()(this,"ttlAutopurge",void 0),c()(this,"updateAgeOnGet",void 0),c()(this,"updateAgeOnHas",void 0),c()(this,"allowStale",void 0),c()(this,"noDisposeOnSet",void 0),c()(this,"noUpdateTTL",void 0),c()(this,"maxEntrySize",void 0),c()(this,"sizeCalculation",void 0),c()(this,"noDeleteOnFetchRejection",void 0),c()(this,"noDeleteOnStaleGet",void 0),c()(this,"allowStaleOnFetchAbort",void 0),c()(this,"allowStaleOnFetchRejection",void 0),c()(this,"ignoreFetchAbort",void 0),u(this,j,{writable:!0,value:void 0}),u(this,M,{writable:!0,value:void 0}),u(this,L,{writable:!0,value:void 0}),u(this,D,{writable:!0,value:void 0}),u(this,F,{writable:!0,value:void 0}),u(this,B,{writable:!0,value:void 0}),u(this,q,{writable:!0,value:void 0}),u(this,U,{writable:!0,value:void 0}),u(this,z,{writable:!0,value:void 0}),u(this,J,{writable:!0,value:void 0}),u(this,G,{writable:!0,value:void 0}),u(this,H,{writable:!0,value:void 0}),u(this,V,{writable:!0,value:void 0}),u(this,W,{writable:!0,value:void 0}),u(this,$,{writable:!0,value:void 0}),u(this,Q,{writable:!0,value:void 0}),u(this,K,{writable:!0,value:void 0}),u(this,X,{writable:!0,value:()=>{}}),u(this,Z,{writable:!0,value:()=>{}}),u(this,ee,{writable:!0,value:()=>{}}),u(this,te,{writable:!0,value:()=>!1}),u(this,ie,{writable:!0,value:e=>{}}),u(this,re,{writable:!0,value:(e,t,n)=>{}}),u(this,se,{writable:!0,value:(e,t,n,i)=>{if(n||i)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0}}),c()(this,Symbol.toStringTag,"LRUCache");const{max:t=0,ttl:n,ttlResolution:i=1,ttlAutopurge:s,updateAgeOnGet:a,updateAgeOnHas:d,allowStale:p,dispose:f,disposeAfter:m,noDisposeOnSet:g,noUpdateTTL:v,maxSize:_=0,maxEntrySize:S=0,sizeCalculation:w,fetchMethod:A,memoMethod:N,noDeleteOnFetchRejection:be,noDeleteOnStaleGet:_e,allowStaleOnFetchRejection:Se,allowStaleOnFetchAbort:we,ignoreFetchAbort:Te}=e;if(0!==t&&!T(t))throw new TypeError("max option must be a nonnegative integer");const Ie=t?I(t):Array;if(!Ie)throw new Error("invalid max value: "+t);if(r()(this,x,t),r()(this,C,_),this.maxEntrySize=S||o()(this,C),this.sizeCalculation=w,this.sizeCalculation){if(!o()(this,C)&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if("function"!=typeof this.sizeCalculation)throw new TypeError("sizeCalculation set to non-function")}if(void 0!==N&&"function"!=typeof N)throw new TypeError("memoMethod must be a function if defined");if(r()(this,P,N),void 0!==A&&"function"!=typeof A)throw new TypeError("fetchMethod must be a function if specified");if(r()(this,k,A),r()(this,Q,!!A),r()(this,L,new Map),r()(this,D,new Array(t).fill(void 0)),r()(this,F,new Array(t).fill(void 0)),r()(this,B,new Ie(t)),r()(this,q,new Ie(t)),r()(this,U,0),r()(this,z,0),r()(this,J,E.create(t)),r()(this,j,0),r()(this,M,0),"function"==typeof f&&r()(this,R,f),"function"==typeof m?(r()(this,O,m),r()(this,G,[])):(r()(this,O,void 0),r()(this,G,void 0)),r()(this,$,!!o()(this,R)),r()(this,K,!!o()(this,O)),this.noDisposeOnSet=!!g,this.noUpdateTTL=!!v,this.noDeleteOnFetchRejection=!!be,this.allowStaleOnFetchRejection=!!Se,this.allowStaleOnFetchAbort=!!we,this.ignoreFetchAbort=!!Te,0!==this.maxEntrySize){if(0!==o()(this,C)&&!T(o()(this,C)))throw new TypeError("maxSize must be a positive integer if specified");if(!T(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");h(this,ne,ve).call(this)}if(this.allowStale=!!p,this.noDeleteOnStaleGet=!!_e,this.updateAgeOnGet=!!a,this.updateAgeOnHas=!!d,this.ttlResolution=T(i)||0===i?i:1,this.ttlAutopurge=!!s,this.ttl=n||0,this.ttl){if(!T(this.ttl))throw new TypeError("ttl must be a positive integer if specified");h(this,Y,ye).call(this)}if(0===o()(this,x)&&0===this.ttl&&0===o()(this,C))throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!o()(this,x)&&!o()(this,C)){const e="LRU_CACHE_UNBOUNDED";if((e=>!y.has(e))(e)){y.add(e);b("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",e,ge)}}}getRemainingTTL(e){return o()(this,L).has(e)?1/0:0}*entries(){for(const e of h(this,oe,be).call(this))void 0===o()(this,F)[e]||void 0===o()(this,D)[e]||h(this,de,Ie).call(this,o()(this,F)[e])||(yield[o()(this,D)[e],o()(this,F)[e]])}*rentries(){for(const e of h(this,ae,_e).call(this))void 0===o()(this,F)[e]||void 0===o()(this,D)[e]||h(this,de,Ie).call(this,o()(this,F)[e])||(yield[o()(this,D)[e],o()(this,F)[e]])}*keys(){for(const e of h(this,oe,be).call(this)){const t=o()(this,D)[e];void 0===t||h(this,de,Ie).call(this,o()(this,F)[e])||(yield t)}}*rkeys(){for(const e of h(this,ae,_e).call(this)){const t=o()(this,D)[e];void 0===t||h(this,de,Ie).call(this,o()(this,F)[e])||(yield t)}}*values(){for(const e of h(this,oe,be).call(this)){void 0===o()(this,F)[e]||h(this,de,Ie).call(this,o()(this,F)[e])||(yield o()(this,F)[e])}}*rvalues(){for(const e of h(this,ae,_e).call(this)){void 0===o()(this,F)[e]||h(this,de,Ie).call(this,o()(this,F)[e])||(yield o()(this,F)[e])}}[Symbol.iterator](){return this.entries()}find(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(const n of h(this,oe,be).call(this)){const i=o()(this,F)[n],r=h(this,de,Ie).call(this,i)?i.__staleWhileFetching:i;if(void 0!==r&&e(r,o()(this,D)[n],this))return this.get(o()(this,D)[n],t)}}forEach(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;for(const n of h(this,oe,be).call(this)){const i=o()(this,F)[n],r=h(this,de,Ie).call(this,i)?i.__staleWhileFetching:i;void 0!==r&&e.call(t,r,o()(this,D)[n],this)}}rforEach(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;for(const n of h(this,ae,_e).call(this)){const i=o()(this,F)[n],r=h(this,de,Ie).call(this,i)?i.__staleWhileFetching:i;void 0!==r&&e.call(t,r,o()(this,D)[n],this)}}purgeStale(){let e=!1;for(const t of h(this,ae,_e).call(this,{allowStale:!0}))o()(this,te).call(this,t)&&(h(this,fe,Ne).call(this,o()(this,D)[t],"expire"),e=!0);return e}info(e){const t=o()(this,L).get(e);if(void 0===t)return;const n=o()(this,F)[t],i=h(this,de,Ie).call(this,n)?n.__staleWhileFetching:n;if(void 0===i)return;const r={value:i};if(o()(this,W)&&o()(this,V)){const e=o()(this,W)[t],n=o()(this,V)[t];if(e&&n){const t=e-(g.now()-n);r.ttl=t,r.start=Date.now()}}return o()(this,H)&&(r.size=o()(this,H)[t]),r}dump(){const e=[];for(const t of h(this,oe,be).call(this,{allowStale:!0})){const n=o()(this,D)[t],i=o()(this,F)[t],r=h(this,de,Ie).call(this,i)?i.__staleWhileFetching:i;if(void 0===r||void 0===n)continue;const s={value:r};if(o()(this,W)&&o()(this,V)){s.ttl=o()(this,W)[t];const e=g.now()-o()(this,V)[t];s.start=Math.floor(Date.now()-e)}o()(this,H)&&(s.size=o()(this,H)[t]),e.unshift([n,s])}return e}load(e){this.clear();for(const[t,n]of e){if(n.start){const e=Date.now()-n.start;n.start=g.now()-e}this.set(t,n.value,n)}}set(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(void 0===t)return this.delete(e),this;const{ttl:i=this.ttl,start:s,noDisposeOnSet:a=this.noDisposeOnSet,sizeCalculation:c=this.sizeCalculation,status:l}=n;let{noUpdateTTL:u=this.noUpdateTTL}=n;const d=o()(this,se).call(this,e,t,n.size||0,c);if(this.maxEntrySize&&d>this.maxEntrySize)return l&&(l.set="miss",l.maxEntrySizeExceeded=!0),h(this,fe,Ne).call(this,e,"set"),this;let p=0===o()(this,j)?void 0:o()(this,L).get(e);if(void 0===p){var f;p=0===o()(this,j)?o()(this,z):0!==o()(this,J).length?o()(this,J).pop():o()(this,j)===o()(this,x)?h(this,le,we).call(this,!1):o()(this,j),o()(this,D)[p]=e,o()(this,F)[p]=t,o()(this,L).set(e,p),o()(this,B)[o()(this,z)]=p,o()(this,q)[p]=o()(this,z),r()(this,z,p),r()(this,j,(f=o()(this,j),f++,f)),o()(this,re).call(this,p,d,l),l&&(l.set="add"),u=!1}else{h(this,pe,Ee).call(this,p);const n=o()(this,F)[p];if(t!==n){if(o()(this,Q)&&h(this,de,Ie).call(this,n)){n.__abortController.abort(new Error("replaced"));const{__staleWhileFetching:t}=n;if(void 0!==t&&!a){var m,g;if(o()(this,$))null===(m=o()(this,R))||void 0===m||m.call(this,t,e,"set");if(o()(this,K))null===(g=o()(this,G))||void 0===g||g.push([t,e,"set"])}}else if(!a){var y,v;if(o()(this,$))null===(y=o()(this,R))||void 0===y||y.call(this,n,e,"set");if(o()(this,K))null===(v=o()(this,G))||void 0===v||v.push([n,e,"set"])}if(o()(this,ie).call(this,p),o()(this,re).call(this,p,d,l),o()(this,F)[p]=t,l){l.set="replace";const e=n&&h(this,de,Ie).call(this,n)?n.__staleWhileFetching:n;void 0!==e&&(l.oldValue=e)}}else l&&(l.set="update")}if(0===i||o()(this,W)||h(this,Y,ye).call(this),o()(this,W)&&(u||o()(this,ee).call(this,p,i,s),l&&o()(this,Z).call(this,l,p)),!a&&o()(this,K)&&o()(this,G)){const e=o()(this,G);let t;for(;t=null==e?void 0:e.shift();){var b;null===(b=o()(this,O))||void 0===b||b.call(this,...t)}}return this}pop(){try{for(;o()(this,j);){const e=o()(this,F)[o()(this,U)];if(h(this,le,we).call(this,!0),h(this,de,Ie).call(this,e)){if(e.__staleWhileFetching)return e.__staleWhileFetching}else if(void 0!==e)return e}}finally{if(o()(this,K)&&o()(this,G)){const t=o()(this,G);let n;for(;n=null==t?void 0:t.shift();){var e;null===(e=o()(this,O))||void 0===e||e.call(this,...n)}}}}has(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{updateAgeOnHas:n=this.updateAgeOnHas,status:i}=t,r=o()(this,L).get(e);if(void 0!==r){const e=o()(this,F)[r];if(h(this,de,Ie).call(this,e)&&void 0===e.__staleWhileFetching)return!1;if(!o()(this,te).call(this,r))return n&&o()(this,X).call(this,r),i&&(i.has="hit",o()(this,Z).call(this,i,r)),!0;i&&(i.has="stale",o()(this,Z).call(this,i,r))}else i&&(i.has="miss");return!1}peek(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{allowStale:n=this.allowStale}=t,i=o()(this,L).get(e);if(void 0===i||!n&&o()(this,te).call(this,i))return;const r=o()(this,F)[i];return h(this,de,Ie).call(this,r)?r.__staleWhileFetching:r}async fetch(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{allowStale:n=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:r=this.noDeleteOnStaleGet,ttl:s=this.ttl,noDisposeOnSet:a=this.noDisposeOnSet,size:c=0,sizeCalculation:l=this.sizeCalculation,noUpdateTTL:u=this.noUpdateTTL,noDeleteOnFetchRejection:d=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:p=this.allowStaleOnFetchRejection,ignoreFetchAbort:f=this.ignoreFetchAbort,allowStaleOnFetchAbort:m=this.allowStaleOnFetchAbort,context:g,forceRefresh:y=!1,status:v,signal:b}=t;if(!o()(this,Q))return v&&(v.fetch="get"),this.get(e,{allowStale:n,updateAgeOnGet:i,noDeleteOnStaleGet:r,status:v});const _={allowStale:n,updateAgeOnGet:i,noDeleteOnStaleGet:r,ttl:s,noDisposeOnSet:a,size:c,sizeCalculation:l,noUpdateTTL:u,noDeleteOnFetchRejection:d,allowStaleOnFetchRejection:p,allowStaleOnFetchAbort:m,ignoreFetchAbort:f,status:v,signal:b};let S=o()(this,L).get(e);if(void 0===S){v&&(v.fetch="miss");const t=h(this,ue,Te).call(this,e,S,_,g);return t.__returned=t}{const t=o()(this,F)[S];if(h(this,de,Ie).call(this,t)){const e=n&&void 0!==t.__staleWhileFetching;return v&&(v.fetch="inflight",e&&(v.returnedStale=!0)),e?t.__staleWhileFetching:t.__returned=t}const r=o()(this,te).call(this,S);if(!y&&!r)return v&&(v.fetch="hit"),h(this,pe,Ee).call(this,S),i&&o()(this,X).call(this,S),v&&o()(this,Z).call(this,v,S),t;const s=h(this,ue,Te).call(this,e,S,_,g),a=void 0!==s.__staleWhileFetching&&n;return v&&(v.fetch=r?"stale":"refresh",a&&r&&(v.returnedStale=!0)),a?s.__staleWhileFetching:s.__returned=s}}async forceFetch(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=await this.fetch(e,t);if(void 0===n)throw new Error("fetch() returned undefined");return n}memo(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=o()(this,P);if(!n)throw new Error("no memoMethod provided to constructor");const{context:i,forceRefresh:r,...s}=t,a=this.get(e,s);if(!r&&void 0!==a)return a;const c=n(e,a,{options:s,context:i});return this.set(e,c,s),c}get(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{allowStale:n=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:r=this.noDeleteOnStaleGet,status:s}=t,a=o()(this,L).get(e);if(void 0!==a){const t=o()(this,F)[a],c=h(this,de,Ie).call(this,t);return s&&o()(this,Z).call(this,s,a),o()(this,te).call(this,a)?(s&&(s.get="stale"),c?(s&&n&&void 0!==t.__staleWhileFetching&&(s.returnedStale=!0),n?t.__staleWhileFetching:void 0):(r||h(this,fe,Ne).call(this,e,"expire"),s&&n&&(s.returnedStale=!0),n?t:void 0)):(s&&(s.get="hit"),c?t.__staleWhileFetching:(h(this,pe,Ee).call(this,a),i&&o()(this,X).call(this,a),t))}s&&(s.get="miss")}delete(e){return h(this,fe,Ne).call(this,e,"delete")}clear(){return h(this,me,xe).call(this,"delete")}}function ye(){var e=this;const t=new A(o()(this,x)),n=new A(o()(this,x));r()(this,W,t),r()(this,V,n),r()(this,ee,(function(i,r){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:g.now();if(n[i]=0!==r?s:0,t[i]=r,0!==r&&e.ttlAutopurge){const t=setTimeout(()=>{o()(e,te).call(e,i)&&h(e,fe,Ne).call(e,o()(e,D)[i],"expire")},r+1);t.unref&&t.unref()}})),r()(this,X,e=>{n[e]=0!==t[e]?g.now():0}),r()(this,Z,(e,r)=>{if(t[r]){const o=t[r],a=n[r];if(!o||!a)return;e.ttl=o,e.start=a,e.now=i||s();const c=e.now-a;e.remainingTTL=o-c}});let i=0;const s=()=>{const e=g.now();if(this.ttlResolution>0){i=e;const t=setTimeout(()=>i=0,this.ttlResolution);t.unref&&t.unref()}return e};this.getRemainingTTL=e=>{const r=o()(this,L).get(e);if(void 0===r)return 0;const a=t[r],c=n[r];if(!a||!c)return 1/0;return a-((i||s())-c)},r()(this,te,e=>{const r=n[e],o=t[e];return!!o&&!!r&&(i||s())-r>o})}function ve(){const e=new A(o()(this,x));r()(this,M,0),r()(this,H,e),r()(this,ie,t=>{r()(this,M,o()(this,M)-e[t]),e[t]=0}),r()(this,se,(e,t,n,i)=>{if(h(this,de,Ie).call(this,t))return 0;if(!T(n)){if(!i)throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");if("function"!=typeof i)throw new TypeError("sizeCalculation must be a function");if(n=i(t,e),!T(n))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}return n}),r()(this,re,(t,n,i)=>{if(e[t]=n,o()(this,C)){const n=o()(this,C)-e[t];for(;o()(this,M)>n;)h(this,le,we).call(this,!0)}r()(this,M,o()(this,M)+e[t]),i&&(i.entrySize=n,i.totalCalculatedSize=o()(this,M))})}function*be(){let{allowStale:e=this.allowStale}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(o()(this,j))for(let t=o()(this,z);h(this,ce,Se).call(this,t)&&(!e&&o()(this,te).call(this,t)||(yield t),t!==o()(this,U));)t=o()(this,q)[t]}function*_e(){let{allowStale:e=this.allowStale}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(o()(this,j))for(let t=o()(this,U);h(this,ce,Se).call(this,t)&&(!e&&o()(this,te).call(this,t)||(yield t),t!==o()(this,z));)t=o()(this,B)[t]}function Se(e){return void 0!==e&&o()(this,L).get(o()(this,D)[e])===e}function we(e){var t;const n=o()(this,U),i=o()(this,D)[n],s=o()(this,F)[n];if(o()(this,Q)&&h(this,de,Ie).call(this,s))s.__abortController.abort(new Error("evicted"));else if(o()(this,$)||o()(this,K)){var a,c;if(o()(this,$))null===(a=o()(this,R))||void 0===a||a.call(this,s,i,"evict");if(o()(this,K))null===(c=o()(this,G))||void 0===c||c.push([s,i,"evict"])}return o()(this,ie).call(this,n),e&&(o()(this,D)[n]=void 0,o()(this,F)[n]=void 0,o()(this,J).push(n)),1===o()(this,j)?(r()(this,U,r()(this,z,0)),o()(this,J).length=0):r()(this,U,o()(this,B)[n]),o()(this,L).delete(i),r()(this,j,(t=o()(this,j),t--,t)),n}function Te(e,t,n,i){var r=this;const s=void 0===t?void 0:o()(this,F)[t];if(h(this,de,Ie).call(this,s))return s;const a=new _,{signal:c}=n;null==c||c.addEventListener("abort",()=>a.abort(c.reason),{signal:a.signal});const l={signal:a.signal,options:n,context:i},u=function(i){let s=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{aborted:c}=a.signal,u=n.ignoreFetchAbort&&void 0!==i;if(n.status&&(c&&!s?(n.status.fetchAborted=!0,n.status.fetchError=a.signal.reason,u&&(n.status.fetchAbortIgnored=!0)):n.status.fetchResolved=!0),c&&!u&&!s)return d(a.signal.reason);const f=p;return o()(r,F)[t]===p&&(void 0===i?f.__staleWhileFetching?o()(r,F)[t]=f.__staleWhileFetching:h(r,fe,Ne).call(r,e,"fetch"):(n.status&&(n.status.fetchUpdated=!0),r.set(e,i,l.options))),i},d=i=>{const{aborted:r}=a.signal,s=r&&n.allowStaleOnFetchAbort,c=s||n.allowStaleOnFetchRejection,l=c||n.noDeleteOnFetchRejection,u=p;if(o()(this,F)[t]===p){!l||void 0===u.__staleWhileFetching?h(this,fe,Ne).call(this,e,"fetch"):s||(o()(this,F)[t]=u.__staleWhileFetching)}if(c)return n.status&&void 0!==u.__staleWhileFetching&&(n.status.returnedStale=!0),u.__staleWhileFetching;if(u.__returned===u)throw i};n.status&&(n.status.fetchDispatched=!0);const p=new Promise((t,i)=>{var r;const c=null===(r=o()(this,k))||void 0===r?void 0:r.call(this,e,s,l);c&&c instanceof Promise&&c.then(e=>t(void 0===e?void 0:e),i),a.signal.addEventListener("abort",()=>{n.ignoreFetchAbort&&!n.allowStaleOnFetchAbort||(t(void 0),n.allowStaleOnFetchAbort&&(t=e=>u(e,!0)))})}).then(u,e=>(n.status&&(n.status.fetchRejected=!0,n.status.fetchError=e),d(e))),f=Object.assign(p,{__abortController:a,__staleWhileFetching:s,__returned:void 0});return void 0===t?(this.set(e,f,{...l.options,status:void 0}),t=o()(this,L).get(e)):o()(this,F)[t]=f,f}function Ie(e){if(!o()(this,Q))return!1;const t=e;return!!t&&t instanceof Promise&&t.hasOwnProperty("__staleWhileFetching")&&t.__abortController instanceof _}function Ae(e,t){o()(this,q)[t]=e,o()(this,B)[e]=t}function Ee(e){e!==o()(this,z)&&(e===o()(this,U)?r()(this,U,o()(this,B)[e]):h(this,he,Ae).call(this,o()(this,q)[e],o()(this,B)[e]),h(this,he,Ae).call(this,o()(this,z),e),r()(this,z,e))}function Ne(e,t){var n;let i=!1;if(0!==o()(this,j)){const n=o()(this,L).get(e);if(void 0!==n)if(i=!0,1===o()(this,j))h(this,me,xe).call(this,t);else{var s;o()(this,ie).call(this,n);const i=o()(this,F)[n];if(h(this,de,Ie).call(this,i))i.__abortController.abort(new Error("deleted"));else if(o()(this,$)||o()(this,K)){var a,c;if(o()(this,$))null===(a=o()(this,R))||void 0===a||a.call(this,i,e,t);if(o()(this,K))null===(c=o()(this,G))||void 0===c||c.push([i,e,t])}if(o()(this,L).delete(e),o()(this,D)[n]=void 0,o()(this,F)[n]=void 0,n===o()(this,z))r()(this,z,o()(this,q)[n]);else if(n===o()(this,U))r()(this,U,o()(this,B)[n]);else{const e=o()(this,q)[n];o()(this,B)[e]=o()(this,B)[n];const t=o()(this,B)[n];o()(this,q)[t]=o()(this,q)[n]}r()(this,j,(s=o()(this,j),s--,s)),o()(this,J).push(n)}}if(o()(this,K)&&(null===(n=o()(this,G))||void 0===n?void 0:n.length)){const e=o()(this,G);let t;for(;t=null==e?void 0:e.shift();){var l;null===(l=o()(this,O))||void 0===l||l.call(this,...t)}}return i}function xe(e){for(const i of h(this,ae,_e).call(this,{allowStale:!0})){const r=o()(this,F)[i];if(h(this,de,Ie).call(this,r))r.__abortController.abort(new Error("deleted"));else{const s=o()(this,D)[i];var t,n;if(o()(this,$))null===(t=o()(this,R))||void 0===t||t.call(this,r,s,e);if(o()(this,K))null===(n=o()(this,G))||void 0===n||n.push([r,s,e])}}if(o()(this,L).clear(),o()(this,F).fill(void 0),o()(this,D).fill(void 0),o()(this,W)&&o()(this,V)&&(o()(this,W).fill(0),o()(this,V).fill(0)),o()(this,H)&&o()(this,H).fill(0),r()(this,U,0),r()(this,z,0),o()(this,J).length=0,r()(this,M,0),r()(this,j,0),o()(this,K)&&o()(this,G)){const e=o()(this,G);let t;for(;t=null==e?void 0:e.shift();){var i;null===(i=o()(this,O))||void 0===i||i.call(this,...t)}}}}.call(this,n(23))},function(e,t){e.exports=function(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e,t){return t.get?t.get.call(e):t.value},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var i=n(91).default,r=n(272);e.exports=function(e){var t=r(e,"string");return"symbol"===i(t)?t:String(t)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var i=n(91).default;e.exports=function(e,t){if("object"!==i(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){(function(t){var n=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,r=/^0b[01]+$/i,s=/^0o[0-7]+$/i,o=parseInt,a="object"==typeof t&&t&&t.Object===Object&&t,c="object"==typeof self&&self&&self.Object===Object&&self,l=a||c||Function("return this")(),u=Object.prototype.toString,d=Math.max,h=Math.min,p=function(){return l.Date.now()};function f(e,t,n){var i,r,s,o,a,c,l=0,u=!1,f=!1,y=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function v(t){var n=i,s=r;return i=r=void 0,l=t,o=e.apply(s,n)}function b(e){return l=e,a=setTimeout(S,t),u?v(e):o}function _(e){var n=e-c;return void 0===c||n>=t||n<0||f&&e-l>=s}function S(){var e=p();if(_(e))return w(e);a=setTimeout(S,function(e){var n=t-(e-c);return f?h(n,s-(e-l)):n}(e))}function w(e){return a=void 0,y&&i?v(e):(i=r=void 0,o)}function T(){var e=p(),n=_(e);if(i=arguments,r=this,c=e,n){if(void 0===a)return b(c);if(f)return a=setTimeout(S,t),v(c)}return void 0===a&&(a=setTimeout(S,t)),o}return t=g(t)||0,m(n)&&(u=!!n.leading,s=(f="maxWait"in n)?d(g(n.maxWait)||0,t):s,y="trailing"in n?!!n.trailing:y),T.cancel=function(){void 0!==a&&clearTimeout(a),l=0,i=c=r=a=void 0},T.flush=function(){return void 0===a?o:w(p())},T}function m(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function g(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==u.call(e)}(e))return NaN;if(m(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=m(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(n,"");var a=r.test(e);return a||s.test(e)?o(e.slice(2),a?2:8):i.test(e)?NaN:+e}e.exports=function(e,t,n){var i=!0,r=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return m(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),f(e,t,{leading:i,maxWait:t,trailing:r})}}).call(this,n(15))},function(e,t,n){e.exports=function(){"use strict";var e="undefined"==typeof window,t=!1,n=!1,i=!1,r=!1,s=!1,o=!1,a=!1,c=!1,l=!1,u=!1;return e||(t="undefined"!=typeof InstallTrigger,n=!!window.chrome,i=!(!window.chrome||!window.navigator||!window.navigator.plugins||!window.navigator.plugins.namedItem("Chrome PDF Plugin")&&!window.chrome.runtime),r=n&&!window.chrome.webstore&&!window.chrome.runtime,s=0<Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor")||window.safari&&window.safari.pushNotification,o=!!window.opr&&!!window.opr.addons||!!window.opera,a=!!window.StyleMedia,c=n&&!!navigator.userAgent.match(/edg/i),l=(i||o)&&!!window.CSS,u=!(n||s||t||o||!document.documentMode)),{get isChrome(){return i},get isChromeOrChromium(){return n},get isChromium(){return r},get isFirefox(){return t},get isSafari(){return s},get isOpera(){return o},get isEdge(){return a},get isEdgeChromium(){return c},get isIE(){return u},get isBlink(){return l}}}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.definitions=void 0;const i=n(3),r=n(2),s={aliases:["message.propose"],element:"propose",fields:{conversationId:i.attribute("inin-cid"),persistentConversationId:i.attribute("inin-persistent-cid"),sdpOverXmpp:i.booleanAttribute("inin-sdp-over-xmpp"),privAnswerMode:i.attribute("inin-priv-answer-mode"),originalRoomJid:i.attribute("inin-ofrom"),autoAnswer:i.booleanAttribute("inin-autoanswer"),fromUserId:i.attribute("inin-user-id"),sessionId:i.attribute("id"),meetingId:i.attribute("inin-meeting-id")},namespace:"urn:xmpp:jingle-message:0"},o={aliases:["message.proceed"],element:"proceed",fields:{sessionId:i.attribute("id")},namespace:"urn:xmpp:jingle-message:0"},a={aliases:["message.accept"],element:"accept",fields:{sessionId:i.attribute("id")},namespace:"urn:xmpp:jingle-message:0"},c={aliases:["message.reject"],element:"reject",fields:{sessionId:i.attribute("id")},namespace:"urn:xmpp:jingle-message:0"},l={aliases:["message.retract"],element:"retract",fields:{sessionId:i.attribute("id")},namespace:"urn:xmpp:jingle-message:0"},u={aliases:["iq.jingle.screenstart"],element:"screen-start",namespace:r.NS_JINGLE_RTP_INFO_1},d={aliases:["iq.jingle.screenstop"],element:"screen-stop",namespace:r.NS_JINGLE_RTP_INFO_1},h={path:"iq",namespace:r.NS_CLIENT,element:"iq",fields:{genesysWebrtc:i.childJSON("genesys","genesys-webrtc")}},p={path:"message",namespace:r.NS_CLIENT,element:"message",fields:{mediaMessage:i.childJSON("genesys","media-message")}},f={aliases:["presence.media"],element:"x",fields:{conversationId:i.attribute("conversationId"),sourceCommunicationId:i.attribute("sourceCommunicationId"),screenShare:i.childAttribute(null,"mediastream","screenShare"),video:i.childAttribute(null,"mediastream","video"),audio:i.childAttribute(null,"mediastream","audio"),listener:i.childAttribute(null,"mediastream","listener"),screenRecording:i.childAttribute(null,"mediastream","screenRecording")},namespace:"orgspan:mediastream"};t.definitions=[s,o,a,c,l,u,d,f,h,p]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(6),r=n(35),s=(0,i.__importDefault)(n(277)),o=(0,i.__importDefault)(n(92));t.default=class{constructor(){this.translators=new Map,this.root=new o.default,this.setLanguageResolver(r.basicLanguageResolver)}setLanguageResolver(e){this.languageResolver=e}import(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{registry:this};if(!this.hasTranslator(e.getNamespace(),e.getName()))return;t.acceptLanguages||(t.acceptLanguages=[]),t.acceptLanguages=t.acceptLanguages.map(e=>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:s.default});return this.getOrCreateTranslator(e.getNamespace(),e.getName()).import(e,{...t,registry:this})}export(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{registry:this};n.acceptLanguages||(n.acceptLanguages=[]),n.acceptLanguages=n.acceptLanguages.map(e=>e.toLowerCase()),n.lang&&(n.lang=n.lang.toLowerCase()),n.sanitizers||(n.sanitizers={xhtmlim:s.default}),n.path=e;const i=e.split(".").filter(e=>""!==e);let r=this.root;for(const e of i){const t=r.getChild(e);if(!t)return;r=t}return r.export(t,{...n,registry:this})}getImportKey(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=t?this.walkToTranslator(t.split(".")):this.root;if(n)return n.getImportKey(e)}define(e){if(Array.isArray(e)){for(const t of e)"object"==typeof t?this.define(t):t(this);return}if("object"!=typeof e)return void e(this);const t=e;t.aliases=t.aliases||[],t.path&&!t.aliases.includes(t.path)&&t.aliases.push(t.path);const n=t.aliases.map(e=>"string"==typeof e?{path:e}:e).sort((e,t)=>{const n=e.path.split(".").length;return t.path.split(".").length-n});let i;if(this.hasTranslator(t.namespace,t.element)&&(i=this.getOrCreateTranslator(t.namespace,t.element)),!i){let e;for(const t of n){const n=this.walkToTranslator(t.path.split("."));if(n&&!n.placeholder){i=n;break}n&&(e=n)}e&&!i&&(i=e,i.placeholder=!1)}i||(i=this.getOrCreateTranslator(t.namespace,t.element)),this.indexTranslator(t.namespace,t.element,i);const r=t.fields||{},s=new Map,o=new Map,a=new Map,c=new Map;t.typeField&&(i.typeField=t.typeField),t.defaultType&&(i.defaultType=t.defaultType),t.versionField&&(i.versionField=t.versionField),t.defaultVersion&&(i.defaultVersion=t.defaultVersion),t.languageField&&(i.languageField=t.languageField);for(const[e,t]of Object.entries(r))s.set(e,t.importer),a.set(e,t.importOrder||t.order||0),o.set(e,t.exporter),c.set(e,t.exportOrder||t.order||0);if(t.childrenExportOrder)for(const[e,n]of Object.entries(t.childrenExportOrder))c.set(e,n||0);const l=new Map;for(const[e,n]of Object.entries(t.optionalNamespaces||{}))l.set(e,n);i.updateDefinition({contexts:new Map,element:t.element,exporterOrdering:c,exporters:o,importerOrdering:a,importers:s,namespace:t.namespace,optionalNamespaces:l,type:t.type,version:t.version,typeOrder:t.typeOrder});for(const e of n)this.alias(t.namespace,t.element,e.path,e.multiple,e.selector,e.contextField,t.type,e.impliedType);for(const e of n){const t=this.walkToTranslator(e.path.split("."));t&&t!==i&&t.replaceWith(i)}}alias(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6?arguments[6]:void 0,a=arguments.length>7&&void 0!==arguments[7]&&arguments[7];const c=this.getOrCreateTranslator(e,t);c.placeholder=!1;const l=n.split(".").filter(e=>""!==e),u=l.pop(),d=this.walkToTranslator(l,!0),h=`{${e}}${t}`;o&&(s||a)&&c.addContext(n,r,s,h,o,a),d.addChild(u,c,i,r,h)}walkToTranslator(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.root;for(const i of e){let e=n.getChild(i);if(!e){if(!t)return;e=new o.default,e.placeholder=!0,n.addChild(i,e)}n=e}return n}hasTranslator(e,t){return this.translators.has(`{${e}}${t}`)}getOrCreateTranslator(e,t){let n=this.translators.get(`{${e}}${t}`);return n||(n=new o.default,this.indexTranslator(e,t,n)),n}indexTranslator(e,t,n){this.translators.set(`{${e}}${t}`,n)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=new Set(["a","blockquote","br","cite","em","img","li","ol","p","span","strong","ul"]),r=new Set(["style"]),s=new Map([["a",new Set(["href","style"])],["body",new Set(["style","xml:lang"])],["blockquote",r],["br",r],["cite",r],["em",r],["img",new Set(["alt","height","src","style","width"])],["li",r],["ol",r],["p",r],["span",r],["strong",r],["ul",r]]),o=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]]),a=e=>!!e.match(/^(https?|xmpp|cid|mailto|ftps?|im|ircs?|sips?|tel|geo|bitcoin|magnet):/i)&&e,c=e=>!!e.match(/^[0-9]*$/)&&e,l={alt:e=>e,height:c,href:a,src:a,style:e=>{const t=(";"+e).replace(/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,"").replace(/\/\*.*/,"").replace(/\\([a-fA-F0-9]{1,6})\s?/,(e,t)=>String.fromCharCode(parseInt(t,16))).match(/;\s*([a-z-]+)\s*:\s*([^;]*[^\s;])\s*/g),n=[];if(!t)return!1;for(const e of t){const t=e.match(/^;\s*([a-z-]+)\s*:\s*([^;]*[^\s])\s*$/);if(!t)continue;const i=o.get(t[1]);if(i){const e=t[2].match(i);e&&n.push(`${t[1]}:${e[0]}`)}}return!!n.length&&n.join("")},width:c};function u(e){if("string"==typeof e)return e;if(!i.has(e.name)){if("script"===e.name)return;return function(e){let t=[];for(const n of e.children)if("string"==typeof n)t.push(n);else{const e=u(n);e&&(Array.isArray(e)?t=t.concat(e):t.push(e))}return t}(e)}const t=e.children.map(u).filter(e=>void 0!==e),n={};for(const[t,i]of Object.entries(e.attributes)){const r=s.get(e.name);if(!r||!r.has(t))continue;if(!i)continue;const o=l[t](i);o&&(n[t]=o)}return{attributes:n,children:t,name:e.name}}t.default=function(e){if("string"==typeof e)return;let t=[];for(const n of e.children){if(!n)continue;if("string"==typeof n){t.push(n);continue}const e=u(n);Array.isArray(e)?t=t.concat(e):e&&t.push(e)}const n={};return"body"===e.name?(void 0!==e.attributes.xmlns&&(n.xmlns=e.attributes.xmlns),e.attributes.style&&(n.style=e.attributes.style),void 0!==e.attributes["xml:lang"]&&(n["xml:lang"]=e.attributes["xml:lang"]),{attributes:n,children:t,name:"body"}):void 0}},function(e,t,n){"use strict";n(9),t.byteLength=function(e){var t=l(e),n=t[0],i=t[1];return 3*(n+i)/4-i},t.toByteArray=function(e){var t,n,i=l(e),o=i[0],a=i[1],c=new s(function(e,t,n){return 3*(t+n)/4-n}(0,o,a)),u=0,d=a>0?o-4:o;for(n=0;n<d;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],c[u++]=t>>16&255,c[u++]=t>>8&255,c[u++]=255&t;2===a&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,c[u++]=255&t);1===a&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t);return c},t.fromByteArray=function(e){for(var t,n=e.length,r=n%3,s=[],o=0,a=n-r;o<a;o+=16383)s.push(u(e,o,o+16383>a?a:o+16383));1===r?(t=e[n-1],s.push(i[t>>2]+i[t<<4&63]+"==")):2===r&&(t=(e[n-2]<<8)+e[n-1],s.push(i[t>>10]+i[t>>4&63]+i[t<<2&63]+"="));return s.join("")};for(var i=[],r=[],s="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,c=o.length;a<c;++a)i[a]=o[a],r[o.charCodeAt(a)]=a;function l(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 u(e,t,n){for(var r,s,o=[],a=t;a<n;a+=3)r=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),o.push(i[(s=r)>>18&63]+i[s>>12&63]+i[s>>6&63]+i[63&s]);return o.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},function(e,t,n){"use strict";
31
+ t.read=function(e,t,n,i,r){var s,o,a=8*r-i-1,c=(1<<a)-1,l=c>>1,u=-7,d=n?r-1:0,h=n?-1:1,p=e[t+d];for(d+=h,s=p&(1<<-u)-1,p>>=-u,u+=a;u>0;s=256*s+e[t+d],d+=h,u-=8);for(o=s&(1<<-u)-1,s>>=-u,u+=i;u>0;o=256*o+e[t+d],d+=h,u-=8);if(0===s)s=1-l;else{if(s===c)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,i),s-=l}return(p?-1:1)*o*Math.pow(2,s-i)},t.write=function(e,t,n,i,r,s){var o,a,c,l=8*s-r-1,u=(1<<l)-1,d=u>>1,h=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,p=i?0:s-1,f=i?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-o))<1&&(o--,c*=2),(t+=o+d>=1?h/c:h*Math.pow(2,1-d))*c>=2&&(o++,c/=2),o+d>=u?(a=0,o=u):o+d>=1?(a=(t*c-1)*Math.pow(2,r),o+=d):(a=t*Math.pow(2,d-1)*Math.pow(2,r),o=0));r>=8;e[n+p]=255&a,p+=f,a/=256,r-=8);for(o=o<<r|a,l+=r;l>0;e[n+p]=255&o,p+=f,o/=256,l-=8);e[n+p-f]|=128*m}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},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(15))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Notifications=void 0;const i=n(264),r=n(16);function s(e,t){return[...e,...t].filter((e,t,n)=>n.indexOf(e)===t)}t.Notifications=class{constructor(e){this.subscriptions={},this.bulkSubscriptions={},this.topicPriorities={},this.client=e,e.on("pubsub:event",this.pubsubEvent.bind(this)),e.on("connected",this.subscriptionsKeepAlive.bind(this)),this.debouncedResubscribe=i(this.resubscribe.bind(this),100)}get pubsubHost(){try{return"notifications."+this.client.config.apiHost.replace(/http(s?):\/\//,"")}catch(e){return"notifications.mypurecloud.com"}}handleStanzaInstanceChange(e){const t=this.stanzaInstance&&this.stanzaInstance.id!==e.id&&this.stanzaInstance.channelId!==e.channelId;this.stanzaInstance=e,t&&(this.client.logger.info("resubscribing due to hard reconnect"),this.debouncedResubscribe())}topicHandlers(e){return this.subscriptions[e]||(this.subscriptions[e]=[]),this.subscriptions[e]}pubsubEvent(e){let{pubsub:t}=e,n=t.items.node;n.includes("no_longer_subscribed")?n="no_longer_subscribed":n.includes("duplicate_id")&&(n="duplicate_id");const i=t.items.published[0].content.json,r=this.topicHandlers(n);this.client.emit("notify",{topic:n,data:i}),this.client.emit("notify:"+n,i),r.forEach(e=>{e(i)})}async xmppSubscribe(e){if(0!==this.topicHandlers(e).length||this.bulkSubscriptions[e])return Promise.resolve();const t=()=>this.stanzaInstance.subscribeToNode(this.pubsubHost,e);return this.client.connected?t():new Promise((e,n)=>{this.client.once("connected",()=>t().then(e,n))})}xmppUnsubscribe(e){if(0!==this.topicHandlers(e).length||this.bulkSubscriptions[e])return Promise.resolve();const t=()=>this.stanzaInstance.unsubscribeFromNode(this.pubsubHost,e);return this.client.connected?t():new Promise((e,n)=>{this.client.once("connected",()=>t().then(e,n))})}mapCombineTopics(e){const t={},n=[],i=[];e.forEach(e=>{e.includes("?")?n.push({id:e}):i.push(e)}),i.map(e=>{const t=e.split("."),n=t.splice(t.length-1);return{prefix:t.join("."),postfix:n}}).forEach(e=>{t[e.prefix]?t[e.prefix].push(e.postfix):t[e.prefix]=[e.postfix]});let r=[];const s=(e,t)=>{const n=`${e}${1===t.length?".":"?"}${t.join("&")}`;n.length<200?r.push({id:n}):1===t.length?this.client.logger.error("Refusing to attempt topic with length > 200",n):(s(e,t.slice(0,t.length/2)),s(e,t.slice(t.length/2)))};Object.keys(t).forEach(e=>{const n=t[e];s(e,n)});const o=r.concat(n);return this.truncateTopicList(this.prioritizeTopicList(o))}prioritizeTopicList(e){return e.sort((e,t)=>this.getTopicPriority(t.id)-this.getTopicPriority(e.id)),e}getTopicPriority(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const{prefix:n,postfixes:i}=this.getTopicParts(e),r=this.topicPriorities[n],s=r&&Object.keys(r).filter(e=>i.includes(e)).map(e=>r[e]),o=s&&s.length&&s.reduce((e,t)=>t>e?t:e);return t?o||0:o}truncateTopicList(e){const t=e.slice(0,1e3);if(e.length>1e3){let t=e.slice(1e3);if(t.length>20){const e=t.length-20;t=t.slice(20),t.push(`...and ${e} more`)}this.client.logger.warn("Too many topics to subscribe to; truncating extra topics",{droppedTopics:t})}return t}makeBulkSubscribeRequest(e,t){const 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},i=this.stanzaInstance.channelId;return this.client.http.requestApi(`notifications/channels/${i}/subscriptions`,n)}createSubscription(e,t){r.splitIntoIndividualTopics(e).forEach(e=>{let n=this.topicHandlers(e);n.includes(t)||n.push(t)})}removeSubscription(e,t){r.splitIntoIndividualTopics(e).forEach(e=>{let n=this.topicHandlers(e),i=n.indexOf(t);i>-1&&n.splice(i,1),n.length||delete this.subscriptions[e]})}removeTopicPriority(e){if(this.getTopicPriority(e,!1)){const{prefix:t,postfixes:n}=this.getTopicParts(e);n.forEach(e=>{delete this.topicPriorities[t][e]}),Object.keys(this.topicPriorities[t]).length||delete this.topicPriorities[t]}}getActiveIndividualTopics(){const e=[];return Object.keys(this.subscriptions).forEach(t=>{if("streaming-subscriptions-expiring"===t)return;this.topicHandlers(t).length>0&&e.push(t)}),e}resubscribe(){const e=Object.keys(this.bulkSubscriptions);return e.length+this.getActiveIndividualTopics().length===0?Promise.resolve():this.bulkSubscribe(e,{replace:!0})}subscriptionsKeepAlive(){const e="streaming-subscriptions-expiring";0===this.topicHandlers(e).length&&this.createSubscription(e,()=>{this.client.logger.info(e+" - Triggering resubscribe.",{channelId:this.client.config.channelId}),this.debouncedResubscribe().catch(e=>{const t="Error resubscribing to topics";this.client.logger.error(t,e),this.client.emit("pubsub:error",{msg:t,err:e})})})}getTopicParts(e){const t=e.includes("?"),n=t?"?":".",i=e.split(n),r=t?i[1]:i.splice(i.length-1),s=t?i[0]:i.join(".");let o=[];return o=t?r.split("&"):r,{prefix:s,postfixes:o}}setTopicPriorities(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object.keys(e).forEach(t=>{const n=this.getTopicParts(t),i=this.topicPriorities[n.prefix],r=e[t];if(i)n.postfixes.forEach(e=>{const t=i[e];(t&&t<r||!t)&&(i[e]=r)});else{const e=n.postfixes.reduce((e,t)=>(e[t]=r,e),{});this.topicPriorities[n.prefix]=e}})}subscribe(e,t,n,i){let r;return i&&this.setTopicPriorities({[e]:i}),r=n?this.xmppSubscribe(e):this.debouncedResubscribe(),t?this.createSubscription(e,t):this.bulkSubscriptions[e]=!0,r}unsubscribe(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()}async bulkSubscribe(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{replace:!1,force:!1},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.setTopicPriorities(n);let i=s(e,[]);t.replace&&!t.force?i=s(i,this.getActiveIndividualTopics()):t.force&&(this.subscriptions={}),await this.makeBulkSubscribeRequest(i,t),t.replace&&(this.bulkSubscriptions={}),e.forEach(e=>{this.bulkSubscriptions[e]=!0})}get expose(){return{subscribe:this.subscribe.bind(this),unsubscribe:this.unsubscribe.bind(this),bulkSubscribe:this.bulkSubscribe.bind(this)}}}},function(e,t,n){"use strict";function i(e){return"function"==typeof e?e():e}function r(){var e={};return e.promise=new Promise((function(t,n){e.resolve=t,e.reject=n})),e}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]:{},s=void 0,o=void 0,a=void 0,c=[];return function(){var u=i(t),d=(new Date).getTime(),h=!s||d-s>u;s=d;for(var p=arguments.length,f=Array(p),m=0;m<p;m++)f[m]=arguments[m];if(h&&n.leading)return n.accumulate?Promise.resolve(e.call(this,[f])).then((function(e){return e[0]})):Promise.resolve(e.call.apply(e,[this].concat(f)));if(o?clearTimeout(a):o=r(),c.push(f),a=setTimeout(l.bind(this),u),n.accumulate){var g=c.length-1;return o.promise.then((function(e){return e[g]}))}return o.promise};function l(){var t=o;clearTimeout(a),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";Object.defineProperty(t,"__esModule",{value:!0}),t.WebrtcExtension=void 0;const i=n(26),r=n(10),s=n(13),o=n(268),a=n(8),c=n(28),l=i.__importDefault(n(273)),u=n(274),d=n(275),h=n(16),p=n(68),f=n(289),m=n(24),g=n(58),y=n(64),v=n(38),b="requestIncomingRtcSession",_="cancelIncomingRtcSession",S="handledIncomingRtcSession",w="incomingRtcSession",T="outgoingRtcSession",I="rtcSessionError";class A extends r.EventEmitter{constructor(e,t){super(),this.ignoredSessions=new o.LRUCache({max:10,ttl:216e3}),this.earlyIceCandidates=new o.LRUCache({max:10,ttl:6e4,ttlAutopurge:!0}),this.pendingSessions={},this.statsArr=[],this.throttleSendStatsInterval=25e3,this.currentMaxStatSize=15e3,this.statsSizeDecreaseAmount=3e3,this.statBuffer=0,this.discoRetries=0,this.iceServers=[],this.webrtcSessions=[],this.reinviteCache=new o.LRUCache({max:5,ttl:18e4}),this.client=e,this.config={allowIPv6:!0===t.allowIPv6,optOutOfWebrtcStatsTelemetry:t.optOutOfWebrtcStatsTelemetry},this.logger=e.logger,this.addEventListeners(),this.throttledSendStats=l.default(this.sendStats.bind(this),this.throttleSendStatsInterval,{leading:!1,trailing:!0}),this.client.on("jingle:outgoing",e=>(this.logger.info("Emitting jingle:outgoing media-session (session-init)",e.sid),this.emit(T,e))),this.client.on("jingle:incoming",e=>(this.logger.info("Emitting jingle:incoming media-session (session-init)",e.sid),this.emit(w,e))),this.client.on("jingle:created",e=>{e instanceof g.StanzaMediaSession||e.end("cancel",!0)}),window.addEventListener("offline",()=>this.onOnlineStatusChange(!1)),window.addEventListener("online",()=>this.onOnlineStatusChange(!0))}get jid(){var e;return null===(e=this.stanzaInstance)||void 0===e?void 0:e.jid}onOnlineStatusChange(e){this.addStatToQueue({actionName:"WebrtcStats",details:{_eventType:"onlineStatus",_eventTimestamp:(new Date).getTime(),online:e}})}async handleStanzaInstanceChange(e){this.stanzaInstance=e,this.refreshIceServersTimer&&(clearInterval(this.refreshIceServersTimer),this.refreshIceServersTimer=null),e.on("iq:set:genesysWebrtc",this.handleGenesysWebrtcStanza.bind(this)),this.refreshIceServersTimer=setInterval(this.refreshIceServers.bind(this),216e5),this.client.emit("sessionManagerChange",e)}async configureNewStanzaInstance(e){Object.assign(e.jingle.config.peerConnectionConfig,{sdpSemantics:"unified-plan"}),await this.configureStanzaIceServers(e),e.stanzas.define(d.definitions),e.jingle.prepareSession=this.prepareSession.bind(this),e.jingle.on("log",(e,t,n)=>{this.logger[e](t,n)});const t=["iceConnectionType","peerTrackAdded","peerTrackRemoved","mute","unmute","sessionState","connectionState","terminated","stats","endOfCandidates"];for(const n of t)e.jingle.on(n,(function(e){if(e instanceof g.StanzaMediaSession){for(var t=arguments.length,i=new Array(t>1?t-1:0),r=1;r<t;r++)i[r-1]=arguments[r];e.emit(n,...i)}}))}configureStanzaIceServers(e){return e.jingle.config.iceServers=[],this.setIceServers([],e),this._refreshIceServers(e)}async handleGenesysOffer(e){const t=e.genesysWebrtc,n=t.params;if(n.reinvite&&this.reinviteCache.get(t.id))return void this.logger.info("Ignoring duplicate reinvite offer",t.id);n.reinvite&&this.reinviteCache.set(t.id,!0);const i="relay"===this.getIceTransportPolicy()&&u.isFirefox,r={id:n.sessionId,logger:this.logger,peerID:e.from,fromJid:e.from,sessionType:this.getSessionTypeByJid(e.from),conversationId:n.conversationId,ignoreHostCandidatesFromRemote:i,optOutOfWebrtcStatsTelemetry:!!this.config.optOutOfWebrtcStatsTelemetry,allowIPv6:this.config.allowIPv6,iceServers:this.iceServers,reinvite:!!n.reinvite,iceTransportPolicy:this.getIceTransportPolicy()};let s;const o=this.pendingSessions[n.sessionId];o?(s={...r,meetingId:o.meetingId,fromUserId:o.fromUserId,originalRoomJid:o.originalRoomJid,privAnswerMode:o.privAnswerMode},delete this.pendingSessions[o.sessionId]):s=r;const a=this.webrtcSessions.find(e=>e.id===s.id);if(this.logger.info("offer received",{existingSession:!!a,mediaSessionParams:s}),a&&(a.conversationId=n.conversationId,!h.iceIsDifferent(a.peerConnection.remoteDescription.sdp,n.sdp)))return this.handleGenesysRenegotiate(a,n.sdp);const c=new y.GenesysCloudMediaSession(this,s);return await c.setRemoteDescription(n.sdp),this.proxyStatsForSession(c),c.on("sendIq",e=>{var t;return null===(t=this.stanzaInstance)||void 0===t?void 0:t.sendIQ(e)}),c.on("terminated",()=>{this.webrtcSessions=this.webrtcSessions.filter(e=>e.id!==c.id)}),this.webrtcSessions.push(c),this.logger.info("emitting sdp media-session (offer"),this.applyEarlyIceCandidates(c),this.emit(w,c)}applyEarlyIceCandidates(e){const t=this.earlyIceCandidates.get(e.id);if(t){this.earlyIceCandidates.delete(e.id);for(const n of t)e.addRemoteIceCandidate(n)}}async handleGenesysRenegotiate(e,t){await e.peerConnection.setRemoteDescription({sdp:t,type:"offer"}),await e.accept()}async handleGenesysIceCandidate(e){const t=e.genesysWebrtc.params,n=this.getSessionById(t.sessionId,!0);if(n)await n.addRemoteIceCandidate(t.sdp);else{const e=this.earlyIceCandidates.get(t.sessionId);e?this.earlyIceCandidates.set(t.sessionId,[...e,t.sdp]):this.earlyIceCandidates.set(t.sessionId,[t.sdp])}}async handleGenesysTerminate(e){const t=e.genesysWebrtc.params;this.getSessionById(t.sessionId).onSessionTerminate(t.reason)}getSessionById(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=this.getAllSessions().find(t=>t.id===e);if(!n&&!t){const t=new Error("Failed to find session by id");throw this.logger.error(t,{sessionId:e}),t}return n}async sendIq(e){if(!this.stanzaInstance)throw new Error("Failed to send iq because there was no stanza instance");return this.stanzaInstance.sendIQ(e)}async handleMessage(e){e.propose?await this.handlePropose(e):e.retract?this.handleRetract(e.retract.sessionId):e.accept?this.handledIncomingRtcSession(e.accept.sessionId,e):e.reject&&this.handledIncomingRtcSession(e.reject.sessionId,e)}async handleGenesysWebrtcStanza(e){const t=e.genesysWebrtc;return"offer"===t.method?this.handleGenesysOffer(e):"iceCandidate"===t.method?this.handleGenesysIceCandidate(e):"terminate"===t.method?this.handleGenesysTerminate(e):void 0}prepareSession(e){const t=this.pendingSessions[e.sid];if(null==t?void 0:t.sdpOverXmpp)return void this.logger.debug("skipping creation of jingle webrtc session due to sdpOverXmpp on the pendingSession");t&&delete this.pendingSessions[t.sessionId];const n="relay"===this.getIceTransportPolicy()&&u.isFirefox,i={options:e,logger:this.logger,id:e.sid,fromJid:e.peerID,peerID:e.peerID,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,meetingId:null==t?void 0:t.meetingId},r=new g.StanzaMediaSession(i);return this.proxyStatsForSession(r),r}proxyStatsForSession(e){e.on("stats",t=>{const n=JSON.parse(JSON.stringify(t)),i={conversationId:e.conversationId,sessionId:e.id,sessionType:e.sessionType},r=f.formatStatsEvent(n,i);this.addStatToQueue(r)})}addStatToQueue(e){if(this.config.optOutOfWebrtcStatsTelemetry)return;e.details._appId||(e.details._appId=this.logger.clientId,e.details._appName="streamingclient",e.details._appVersion=p.Client.version),e.details._originAppId=this.client.config.appId;const t=f.deepFlatten(e.details);Object.keys(t).forEach(e=>{const n=t[e];"boolean"==typeof n&&(t[e]=""+n)});const n={...e,details:t},i=h.calculatePayloadSize(n),r=this.statBuffer+i>this.currentMaxStatSize;this.statsArr.push(n),this.statBuffer+=i,r?this.sendStatsImmediately():this.throttledSendStats()}getLogDetailsForPendingSessionId(e){const t={sessionId:e},n=this.pendingSessions[e];return n&&(t.sessionType=n.sessionType,t.conversationId=n.conversationId),t}sendStatsImmediately(){this.throttledSendStats(),this.throttledSendStats.flush()}async sendStats(){var e,t;if(!navigator.onLine)return;const n=[];let i=0;for(const e of this.statsArr){const t=h.calculatePayloadSize(e);if(!(i+t<this.currentMaxStatSize))break;n.push(e),i+=t}if(this.statsArr.splice(0,n.length),this.statBuffer=this.statsArr.reduce((e,t)=>e+h.calculatePayloadSize(t),0),!n.length||this.client.isGuest)return;const r={appName:"streamingclient",appVersion:p.Client.version,originAppName:this.client.config.appName,originAppVersion:this.client.config.appVersion,actions:n};try{let e=this.client.config.authToken,t="diagnostics/newrelic/insights";this.client.backgroundAssistantMode&&(e=this.client.config.jwt,t+="/backgroundassistant"),await this.client.http.requestApi(t,{method:"post",responseType:"text",host:this.client.config.apiHost,authToken:e,logger:this.client.logger,data:r}),this.currentMaxStatSize=15e3}catch(i){if(!v.HttpClient.retryStatusCodes.has(null===(e=i.response)||void 0===e?void 0:e.status)&&navigator.onLine||(this.statsArr=[...n,...this.statsArr],this.statBuffer=this.statsArr.reduce((e,t)=>e+h.calculatePayloadSize(t),0)),413===(null===(t=i.response)||void 0===t?void 0:t.status)){const e=this.currentMaxStatSize;this.currentMaxStatSize-=this.statsSizeDecreaseAmount,this.logger.info("Failed to send stats due to 413, retrying with smaller set",{attemptedPayloadSize:e,newPayloadSize:this.currentMaxStatSize}),await this.sendStats()}else this.logger.error("Failed to send stats",{err:i,numberOfFailedStats:n.length},{skipServer:!navigator.onLine})}}addEventListeners(){this.client.on("connected",()=>(this.refreshIceServersTimer&&(clearInterval(this.refreshIceServersTimer),this.refreshIceServersTimer=null),this.refreshIceServersTimer=setInterval(this.refreshIceServers.bind(this),216e5),this.refreshIceServers().catch(e=>this.logger.error("Error fetching ice servers after streaming-client connected",{error:e,channelId:this.client.config.channelId})))),this.client.on("disconnected",()=>{clearInterval(this.refreshIceServersTimer),this.refreshIceServersTimer=null})}async handlePropose(e){if(e.from===this.jid)return;const t=e.propose.sessionId;let n=this.pendingSessions[t];const i=!!n,r=this.getSessionTypeByJid(e.from),s={sessionId:t,conversationId:e.propose.conversationId,sessionType:r,isDuplicatePropose:i};if(this.logger.info("propose received",s),!i){const{appId:i}=this.client.config,o={actionName:"WebrtcStats",details:{_eventTimestamp:(new Date).getTime(),_eventType:"firstPropose",conversationId:s.conversationId,sdpViaXmppRequested:!!e.propose.sdpOverXmpp,sessionId:t,sessionType:r}};this.addStatToQueue(o);const a=e.from,c=a;e.propose.originalRoomJid=e.propose.originalRoomJid||c,n={...e.propose,toJid:e.to,fromJid:a,sessionType:r,roomJid:c,id:t,sdpOverXmpp:e.propose.sdpOverXmpp,privAnswerMode:e.propose.privAnswerMode},this.pendingSessions[t]=n}if(n.accepted)return this.logger.info("proceed already sent for this session, but sending another",s),void await this.acceptRtcSession(t);this.emit(b,Object.assign(n))}handleRetract(e){return this.logger.info("retract received",this.getLogDetailsForPendingSessionId(e)),delete this.pendingSessions[e],this.emit(_,e)}handledIncomingRtcSession(e,t){let n=t.accept?"accept":"reject";return this.logger.info(n+" received",this.getLogDetailsForPendingSessionId(e)),this.emit(S,e)}async initiateRtcSession(e){const t={to:e.jid,propose:{id:c.v4(),descriptions:[]}};if(e.stream)for(let n of Array.from(e.stream.getTracks()))t.propose.descriptions.push({media:n.kind});if(e.provideVideo){t.propose.descriptions.filter(e=>"video"===e.media).length>0||t.propose.descriptions.push({media:"video"})}if(e.provideAudio){t.propose.descriptions.filter(e=>"audio"===e.media).length>0||t.propose.descriptions.push({media:"audio"})}if(e.mediaPurpose&&t.propose.descriptions.push({media:e.mediaPurpose}),e.jid&&e.jid.match(/@conference/)){let n=t.propose.descriptions;0===n.length&&(n=[{media:"listener"}]);const i={type:"upgradeMedia",to:e.jid,id:c.v4(),from:this.jid,media:{conversationId:e.conversationId,sourceCommunicationId:e.sourceCommunicationId}};for(const e of n)i.media[e.media]=!0;await this.stanzaInstance.send("presence",i)}else await this.stanzaInstance.send("message",t),this.pendingSessions[t.propose.id]=t;return t.propose.id}async acceptRtcSession(e){const t=this.pendingSessions[e];if(!t)return void this.emit(I,"Cannot accept session because it is not pending or does not exist");const n={to:t.fromJid,proceed:{sessionId:e}};t.accepted=!0;const i=this.getLogDetailsForPendingSessionId(e);this.logger.info("sending jingle proceed",i),await this.stanzaInstance.send("message",n),this.logger.info("sent jingle proceed",i)}async rejectRtcSession(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=this.getLogDetailsForPendingSessionId(e),i=this.pendingSessions[e];if(i)if(delete this.pendingSessions[e],t)this.ignoredSessions.set(e,!0);else{const t={to:s.toBare(this.jid),reject:{sessionId:e}},r=this.stanzaInstance.send("message",t),o={to:i.fromJid,reject:{sessionId:e}},a=this.stanzaInstance.send("message",o);this.logger.info("sending jingle reject",n),await Promise.all([r,a]),this.logger.info("sent jingle reject",n)}else this.emit(I,"Cannot reject session because it is not pending or does not exist")}async rtcSessionAccepted(e){this.pendingSessions[e];const t=this.getLogDetailsForPendingSessionId(e),n={to:s.toBare(this.jid),accept:{sessionId:e}};this.logger.info("sending session-info:accept",t),await this.stanzaInstance.send("message",n),this.logger.info("sent session-info:accept",t)}async notifyScreenShareStart(e){return this.stanzaInstance.send("iq",{to:""+e.peerID,from:this.jid,type:"set",jingle:{action:a.JingleAction.SessionInfo,sid:e.id,screenstart:{}}})}async notifyScreenShareStop(e){return this.stanzaInstance.send("iq",{to:""+e.peerID,from:this.jid,type:"set",jingle:{action:a.JingleAction.SessionInfo,sid:e.id,screenstop:{}}})}async cancelRtcSession(e){const t=this.pendingSessions[e],n=this.getLogDetailsForPendingSessionId(e);if(!t)return void this.emit(I,"Cannot cancel session because it is not pending or does not exist");const i={to:t.toJid,retract:{sessionId:e}};delete this.pendingSessions[e],this.logger.info("sending jingle retract",n),await this.stanzaInstance.send("message",i),this.logger.info("sent jingle retract",n)}async refreshIceServers(){return this.refreshIceServersRetryPromise||(this.refreshIceServersRetryPromise=h.retryPromise(this._refreshIceServers.bind(this,this.stanzaInstance),e=>++this.discoRetries>2?(this.logger.warn("fetching ice servers failed. max retries reached.",{retryAttempt:this.discoRetries,MAX_DISCO_RETRIES:2,error:e,channelId:this.client.config.channelId}),!1):(this.logger.warn("fetching ice servers failed. retrying",{retryAttempt:this.discoRetries,error:e,channelId:this.client.config.channelId}),!0),0,this.client.logger)),this.refreshIceServersRetryPromise.promise.finally(()=>{this.discoRetries=0,this.refreshIceServersRetryPromise=void 0})}async _refreshIceServers(e){if(!e)throw new Error("No stanza instance to refresh ice servers");const t=e.config.server,n=e.getServices(t,"turn","1"),i=e.getServices(t,"stun","1"),r=new Promise((e,t)=>{setTimeout(()=>{t(new Error("Timeout waiting for refresh ice servers to finish"))},15e3),Promise.all([n,i]).then(t=>{let[n,i]=t;e([n,i])}).catch(t)}),[s,o]=await r,a=[...s.services,...o.services].map(e=>{const t=e.port?":"+e.port:"",n={type:e.type,urls:`${e.type}:${e.host}${t}`};return["turn","turns"].includes(e.type)&&(e.transport&&"udp"!==e.transport&&(n.urls+="?transport="+e.transport),e.username&&(n.username=e.username),e.password&&(n.credential=e.password)),n});return this.setIceServers(a,e),o.services.length?this.setIceTransportPolicy("all",e):(this.logger.info('No stun servers received, setting iceTransportPolicy to "relay"'),this.setIceTransportPolicy("relay",e)),a}setIceServers(e,t){t.jingle.iceServers=e,this.iceServers=e}getIceTransportPolicy(){var e;return null===(e=this.stanzaInstance)||void 0===e?void 0:e.jingle.config.peerConnectionConfig.iceTransportPolicy}setIceTransportPolicy(e,t){t.jingle.config.peerConnectionConfig.iceTransportPolicy=e}getSessionTypeByJid(e){return h.isAcdJid(e)?m.SessionTypes.acdScreenShare:h.isScreenRecordingJid(e)?m.SessionTypes.screenRecording:h.isSoftphoneJid(e)?m.SessionTypes.softphone:h.isVideoJid(e)?m.SessionTypes.collaborateVideo:m.SessionTypes.unknown}getSessionManager(){var e;return null===(e=this.stanzaInstance)||void 0===e?void 0:e.jingle}getAllSessions(){var e;const t=null===(e=this.stanzaInstance)||void 0===e?void 0:e.jingle.sessions;return[...t&&Object.values(t)||[],...this.webrtcSessions]}proxyNRStat(e){this.addStatToQueue(e)}get expose(){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),getSessionManager:this.getSessionManager.bind(this),getAllSessions:this.getAllSessions.bind(this),proxyNRStat:this.proxyNRStat.bind(this)}}}t.WebrtcExtension=A},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";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.r(t),function(e){n.d(t,"LRUCache",(function(){return ge}));n(9);var i=n(4),r=n.n(i),s=n(0),o=n.n(s),a=n(7),c=n.n(a);function l(e,t){d(e,t),t.add(e)}function u(e,t,n){d(e,t),t.set(e,n)}function d(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function h(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}function p(e,t,n,i){return m(e,t),f(n,"set"),function(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}(e,n,i),i}function f(e,t){if(void 0===e)throw new TypeError("attempted to "+t+" private static field before its declaration")}function m(e,t){if(e!==t)throw new TypeError("Private static access of wrong provenance")}const g="object"==typeof performance&&performance&&"function"==typeof performance.now?performance:Date,y=new Set,v="object"==typeof e&&e?e:{},b=(e,t,n,i)=>{"function"==typeof v.emitWarning?v.emitWarning(e,t,n,i):console.error(`[${n}] ${t}: ${e}`)};let _=globalThis.AbortController,S=globalThis.AbortSignal;if(void 0===_){var w;S=class{constructor(){c()(this,"onabort",void 0),c()(this,"_onabort",[]),c()(this,"reason",void 0),c()(this,"aborted",!1)}addEventListener(e,t){this._onabort.push(t)}},_=class{constructor(){c()(this,"signal",new S),t()}abort(e){var t,n;if(!this.signal.aborted){this.signal.reason=e,this.signal.aborted=!0;for(const t of this.signal._onabort)t(e);null===(t=(n=this.signal).onabort)||void 0===t||t.call(n,e)}}};let e="1"!==(null===(w=v.env)||void 0===w?void 0:w.LRU_CACHE_IGNORE_AC_WARNING);const t=()=>{e&&(e=!1,b("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",t))}}Symbol("type");const T=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),I=e=>T(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?A:null:null;class A extends Array{constructor(e){super(e),this.fill(0)}}class E{static create(e){const t=I(e);if(!t)return[];p(E,E,N,!0);const n=new E(e,t);return p(E,E,N,!1),n}constructor(e,t){if(c()(this,"heap",void 0),c()(this,"length",void 0),i=N,m(n=E,E),f(i,"get"),!function(e,t){return t.get?t.get.call(e):t.value}(n,i))throw new TypeError("instantiate Stack using Stack.create(n)");var n,i;this.heap=new t(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}}var N={writable:!0,value:!1},x=new WeakMap,C=new WeakMap,R=new WeakMap,O=new WeakMap,k=new WeakMap,P=new WeakMap,j=new WeakMap,M=new WeakMap,L=new WeakMap,D=new WeakMap,F=new WeakMap,B=new WeakMap,q=new WeakMap,U=new WeakMap,z=new WeakMap,J=new WeakMap,G=new WeakMap,H=new WeakMap,V=new WeakMap,W=new WeakMap,$=new WeakMap,Q=new WeakMap,K=new WeakMap,Y=new WeakSet,X=new WeakMap,Z=new WeakMap,ee=new WeakMap,te=new WeakMap,ne=new WeakSet,ie=new WeakMap,re=new WeakMap,se=new WeakMap,oe=new WeakSet,ae=new WeakSet,ce=new WeakSet,le=new WeakSet,ue=new WeakSet,de=new WeakSet,he=new WeakSet,pe=new WeakSet,fe=new WeakSet,me=new WeakSet;class ge{static unsafeExposeInternals(e){return{starts:o()(e,V),ttls:o()(e,W),sizes:o()(e,H),keyMap:o()(e,L),keyList:o()(e,D),valList:o()(e,F),next:o()(e,B),prev:o()(e,q),get head(){return o()(e,U)},get tail(){return o()(e,z)},free:o()(e,J),isBackgroundFetch:t=>h(e,de,Ie).call(e,t),backgroundFetch:(t,n,i,r)=>h(e,ue,Te).call(e,t,n,i,r),moveToTail:t=>h(e,pe,Ee).call(e,t),indexes:t=>h(e,oe,be).call(e,t),rindexes:t=>h(e,ae,_e).call(e,t),isStale:t=>o()(e,te).call(e,t)}}get max(){return o()(this,x)}get maxSize(){return o()(this,C)}get calculatedSize(){return o()(this,M)}get size(){return o()(this,j)}get fetchMethod(){return o()(this,k)}get memoMethod(){return o()(this,P)}get dispose(){return o()(this,R)}get disposeAfter(){return o()(this,O)}constructor(e){l(this,me),l(this,fe),l(this,pe),l(this,he),l(this,de),l(this,ue),l(this,le),l(this,ce),l(this,ae),l(this,oe),l(this,ne),l(this,Y),u(this,x,{writable:!0,value:void 0}),u(this,C,{writable:!0,value:void 0}),u(this,R,{writable:!0,value:void 0}),u(this,O,{writable:!0,value:void 0}),u(this,k,{writable:!0,value:void 0}),u(this,P,{writable:!0,value:void 0}),c()(this,"ttl",void 0),c()(this,"ttlResolution",void 0),c()(this,"ttlAutopurge",void 0),c()(this,"updateAgeOnGet",void 0),c()(this,"updateAgeOnHas",void 0),c()(this,"allowStale",void 0),c()(this,"noDisposeOnSet",void 0),c()(this,"noUpdateTTL",void 0),c()(this,"maxEntrySize",void 0),c()(this,"sizeCalculation",void 0),c()(this,"noDeleteOnFetchRejection",void 0),c()(this,"noDeleteOnStaleGet",void 0),c()(this,"allowStaleOnFetchAbort",void 0),c()(this,"allowStaleOnFetchRejection",void 0),c()(this,"ignoreFetchAbort",void 0),u(this,j,{writable:!0,value:void 0}),u(this,M,{writable:!0,value:void 0}),u(this,L,{writable:!0,value:void 0}),u(this,D,{writable:!0,value:void 0}),u(this,F,{writable:!0,value:void 0}),u(this,B,{writable:!0,value:void 0}),u(this,q,{writable:!0,value:void 0}),u(this,U,{writable:!0,value:void 0}),u(this,z,{writable:!0,value:void 0}),u(this,J,{writable:!0,value:void 0}),u(this,G,{writable:!0,value:void 0}),u(this,H,{writable:!0,value:void 0}),u(this,V,{writable:!0,value:void 0}),u(this,W,{writable:!0,value:void 0}),u(this,$,{writable:!0,value:void 0}),u(this,Q,{writable:!0,value:void 0}),u(this,K,{writable:!0,value:void 0}),u(this,X,{writable:!0,value:()=>{}}),u(this,Z,{writable:!0,value:()=>{}}),u(this,ee,{writable:!0,value:()=>{}}),u(this,te,{writable:!0,value:()=>!1}),u(this,ie,{writable:!0,value:e=>{}}),u(this,re,{writable:!0,value:(e,t,n)=>{}}),u(this,se,{writable:!0,value:(e,t,n,i)=>{if(n||i)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0}}),c()(this,Symbol.toStringTag,"LRUCache");const{max:t=0,ttl:n,ttlResolution:i=1,ttlAutopurge:s,updateAgeOnGet:a,updateAgeOnHas:d,allowStale:p,dispose:f,disposeAfter:m,noDisposeOnSet:g,noUpdateTTL:v,maxSize:_=0,maxEntrySize:S=0,sizeCalculation:w,fetchMethod:A,memoMethod:N,noDeleteOnFetchRejection:be,noDeleteOnStaleGet:_e,allowStaleOnFetchRejection:Se,allowStaleOnFetchAbort:we,ignoreFetchAbort:Te}=e;if(0!==t&&!T(t))throw new TypeError("max option must be a nonnegative integer");const Ie=t?I(t):Array;if(!Ie)throw new Error("invalid max value: "+t);if(r()(this,x,t),r()(this,C,_),this.maxEntrySize=S||o()(this,C),this.sizeCalculation=w,this.sizeCalculation){if(!o()(this,C)&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if("function"!=typeof this.sizeCalculation)throw new TypeError("sizeCalculation set to non-function")}if(void 0!==N&&"function"!=typeof N)throw new TypeError("memoMethod must be a function if defined");if(r()(this,P,N),void 0!==A&&"function"!=typeof A)throw new TypeError("fetchMethod must be a function if specified");if(r()(this,k,A),r()(this,Q,!!A),r()(this,L,new Map),r()(this,D,new Array(t).fill(void 0)),r()(this,F,new Array(t).fill(void 0)),r()(this,B,new Ie(t)),r()(this,q,new Ie(t)),r()(this,U,0),r()(this,z,0),r()(this,J,E.create(t)),r()(this,j,0),r()(this,M,0),"function"==typeof f&&r()(this,R,f),"function"==typeof m?(r()(this,O,m),r()(this,G,[])):(r()(this,O,void 0),r()(this,G,void 0)),r()(this,$,!!o()(this,R)),r()(this,K,!!o()(this,O)),this.noDisposeOnSet=!!g,this.noUpdateTTL=!!v,this.noDeleteOnFetchRejection=!!be,this.allowStaleOnFetchRejection=!!Se,this.allowStaleOnFetchAbort=!!we,this.ignoreFetchAbort=!!Te,0!==this.maxEntrySize){if(0!==o()(this,C)&&!T(o()(this,C)))throw new TypeError("maxSize must be a positive integer if specified");if(!T(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");h(this,ne,ve).call(this)}if(this.allowStale=!!p,this.noDeleteOnStaleGet=!!_e,this.updateAgeOnGet=!!a,this.updateAgeOnHas=!!d,this.ttlResolution=T(i)||0===i?i:1,this.ttlAutopurge=!!s,this.ttl=n||0,this.ttl){if(!T(this.ttl))throw new TypeError("ttl must be a positive integer if specified");h(this,Y,ye).call(this)}if(0===o()(this,x)&&0===this.ttl&&0===o()(this,C))throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!o()(this,x)&&!o()(this,C)){const e="LRU_CACHE_UNBOUNDED";if((e=>!y.has(e))(e)){y.add(e);b("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",e,ge)}}}getRemainingTTL(e){return o()(this,L).has(e)?1/0:0}*entries(){for(const e of h(this,oe,be).call(this))void 0===o()(this,F)[e]||void 0===o()(this,D)[e]||h(this,de,Ie).call(this,o()(this,F)[e])||(yield[o()(this,D)[e],o()(this,F)[e]])}*rentries(){for(const e of h(this,ae,_e).call(this))void 0===o()(this,F)[e]||void 0===o()(this,D)[e]||h(this,de,Ie).call(this,o()(this,F)[e])||(yield[o()(this,D)[e],o()(this,F)[e]])}*keys(){for(const e of h(this,oe,be).call(this)){const t=o()(this,D)[e];void 0===t||h(this,de,Ie).call(this,o()(this,F)[e])||(yield t)}}*rkeys(){for(const e of h(this,ae,_e).call(this)){const t=o()(this,D)[e];void 0===t||h(this,de,Ie).call(this,o()(this,F)[e])||(yield t)}}*values(){for(const e of h(this,oe,be).call(this)){void 0===o()(this,F)[e]||h(this,de,Ie).call(this,o()(this,F)[e])||(yield o()(this,F)[e])}}*rvalues(){for(const e of h(this,ae,_e).call(this)){void 0===o()(this,F)[e]||h(this,de,Ie).call(this,o()(this,F)[e])||(yield o()(this,F)[e])}}[Symbol.iterator](){return this.entries()}find(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(const n of h(this,oe,be).call(this)){const i=o()(this,F)[n],r=h(this,de,Ie).call(this,i)?i.__staleWhileFetching:i;if(void 0!==r&&e(r,o()(this,D)[n],this))return this.get(o()(this,D)[n],t)}}forEach(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;for(const n of h(this,oe,be).call(this)){const i=o()(this,F)[n],r=h(this,de,Ie).call(this,i)?i.__staleWhileFetching:i;void 0!==r&&e.call(t,r,o()(this,D)[n],this)}}rforEach(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;for(const n of h(this,ae,_e).call(this)){const i=o()(this,F)[n],r=h(this,de,Ie).call(this,i)?i.__staleWhileFetching:i;void 0!==r&&e.call(t,r,o()(this,D)[n],this)}}purgeStale(){let e=!1;for(const t of h(this,ae,_e).call(this,{allowStale:!0}))o()(this,te).call(this,t)&&(h(this,fe,Ne).call(this,o()(this,D)[t],"expire"),e=!0);return e}info(e){const t=o()(this,L).get(e);if(void 0===t)return;const n=o()(this,F)[t],i=h(this,de,Ie).call(this,n)?n.__staleWhileFetching:n;if(void 0===i)return;const r={value:i};if(o()(this,W)&&o()(this,V)){const e=o()(this,W)[t],n=o()(this,V)[t];if(e&&n){const t=e-(g.now()-n);r.ttl=t,r.start=Date.now()}}return o()(this,H)&&(r.size=o()(this,H)[t]),r}dump(){const e=[];for(const t of h(this,oe,be).call(this,{allowStale:!0})){const n=o()(this,D)[t],i=o()(this,F)[t],r=h(this,de,Ie).call(this,i)?i.__staleWhileFetching:i;if(void 0===r||void 0===n)continue;const s={value:r};if(o()(this,W)&&o()(this,V)){s.ttl=o()(this,W)[t];const e=g.now()-o()(this,V)[t];s.start=Math.floor(Date.now()-e)}o()(this,H)&&(s.size=o()(this,H)[t]),e.unshift([n,s])}return e}load(e){this.clear();for(const[t,n]of e){if(n.start){const e=Date.now()-n.start;n.start=g.now()-e}this.set(t,n.value,n)}}set(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(void 0===t)return this.delete(e),this;const{ttl:i=this.ttl,start:s,noDisposeOnSet:a=this.noDisposeOnSet,sizeCalculation:c=this.sizeCalculation,status:l}=n;let{noUpdateTTL:u=this.noUpdateTTL}=n;const d=o()(this,se).call(this,e,t,n.size||0,c);if(this.maxEntrySize&&d>this.maxEntrySize)return l&&(l.set="miss",l.maxEntrySizeExceeded=!0),h(this,fe,Ne).call(this,e,"set"),this;let p=0===o()(this,j)?void 0:o()(this,L).get(e);if(void 0===p){var f;p=0===o()(this,j)?o()(this,z):0!==o()(this,J).length?o()(this,J).pop():o()(this,j)===o()(this,x)?h(this,le,we).call(this,!1):o()(this,j),o()(this,D)[p]=e,o()(this,F)[p]=t,o()(this,L).set(e,p),o()(this,B)[o()(this,z)]=p,o()(this,q)[p]=o()(this,z),r()(this,z,p),r()(this,j,(f=o()(this,j),f++,f)),o()(this,re).call(this,p,d,l),l&&(l.set="add"),u=!1}else{h(this,pe,Ee).call(this,p);const n=o()(this,F)[p];if(t!==n){if(o()(this,Q)&&h(this,de,Ie).call(this,n)){n.__abortController.abort(new Error("replaced"));const{__staleWhileFetching:t}=n;if(void 0!==t&&!a){var m,g;if(o()(this,$))null===(m=o()(this,R))||void 0===m||m.call(this,t,e,"set");if(o()(this,K))null===(g=o()(this,G))||void 0===g||g.push([t,e,"set"])}}else if(!a){var y,v;if(o()(this,$))null===(y=o()(this,R))||void 0===y||y.call(this,n,e,"set");if(o()(this,K))null===(v=o()(this,G))||void 0===v||v.push([n,e,"set"])}if(o()(this,ie).call(this,p),o()(this,re).call(this,p,d,l),o()(this,F)[p]=t,l){l.set="replace";const e=n&&h(this,de,Ie).call(this,n)?n.__staleWhileFetching:n;void 0!==e&&(l.oldValue=e)}}else l&&(l.set="update")}if(0===i||o()(this,W)||h(this,Y,ye).call(this),o()(this,W)&&(u||o()(this,ee).call(this,p,i,s),l&&o()(this,Z).call(this,l,p)),!a&&o()(this,K)&&o()(this,G)){const e=o()(this,G);let t;for(;t=null==e?void 0:e.shift();){var b;null===(b=o()(this,O))||void 0===b||b.call(this,...t)}}return this}pop(){try{for(;o()(this,j);){const e=o()(this,F)[o()(this,U)];if(h(this,le,we).call(this,!0),h(this,de,Ie).call(this,e)){if(e.__staleWhileFetching)return e.__staleWhileFetching}else if(void 0!==e)return e}}finally{if(o()(this,K)&&o()(this,G)){const t=o()(this,G);let n;for(;n=null==t?void 0:t.shift();){var e;null===(e=o()(this,O))||void 0===e||e.call(this,...n)}}}}has(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{updateAgeOnHas:n=this.updateAgeOnHas,status:i}=t,r=o()(this,L).get(e);if(void 0!==r){const e=o()(this,F)[r];if(h(this,de,Ie).call(this,e)&&void 0===e.__staleWhileFetching)return!1;if(!o()(this,te).call(this,r))return n&&o()(this,X).call(this,r),i&&(i.has="hit",o()(this,Z).call(this,i,r)),!0;i&&(i.has="stale",o()(this,Z).call(this,i,r))}else i&&(i.has="miss");return!1}peek(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{allowStale:n=this.allowStale}=t,i=o()(this,L).get(e);if(void 0===i||!n&&o()(this,te).call(this,i))return;const r=o()(this,F)[i];return h(this,de,Ie).call(this,r)?r.__staleWhileFetching:r}async fetch(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{allowStale:n=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:r=this.noDeleteOnStaleGet,ttl:s=this.ttl,noDisposeOnSet:a=this.noDisposeOnSet,size:c=0,sizeCalculation:l=this.sizeCalculation,noUpdateTTL:u=this.noUpdateTTL,noDeleteOnFetchRejection:d=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:p=this.allowStaleOnFetchRejection,ignoreFetchAbort:f=this.ignoreFetchAbort,allowStaleOnFetchAbort:m=this.allowStaleOnFetchAbort,context:g,forceRefresh:y=!1,status:v,signal:b}=t;if(!o()(this,Q))return v&&(v.fetch="get"),this.get(e,{allowStale:n,updateAgeOnGet:i,noDeleteOnStaleGet:r,status:v});const _={allowStale:n,updateAgeOnGet:i,noDeleteOnStaleGet:r,ttl:s,noDisposeOnSet:a,size:c,sizeCalculation:l,noUpdateTTL:u,noDeleteOnFetchRejection:d,allowStaleOnFetchRejection:p,allowStaleOnFetchAbort:m,ignoreFetchAbort:f,status:v,signal:b};let S=o()(this,L).get(e);if(void 0===S){v&&(v.fetch="miss");const t=h(this,ue,Te).call(this,e,S,_,g);return t.__returned=t}{const t=o()(this,F)[S];if(h(this,de,Ie).call(this,t)){const e=n&&void 0!==t.__staleWhileFetching;return v&&(v.fetch="inflight",e&&(v.returnedStale=!0)),e?t.__staleWhileFetching:t.__returned=t}const r=o()(this,te).call(this,S);if(!y&&!r)return v&&(v.fetch="hit"),h(this,pe,Ee).call(this,S),i&&o()(this,X).call(this,S),v&&o()(this,Z).call(this,v,S),t;const s=h(this,ue,Te).call(this,e,S,_,g),a=void 0!==s.__staleWhileFetching&&n;return v&&(v.fetch=r?"stale":"refresh",a&&r&&(v.returnedStale=!0)),a?s.__staleWhileFetching:s.__returned=s}}async forceFetch(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=await this.fetch(e,t);if(void 0===n)throw new Error("fetch() returned undefined");return n}memo(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=o()(this,P);if(!n)throw new Error("no memoMethod provided to constructor");const{context:i,forceRefresh:r,...s}=t,a=this.get(e,s);if(!r&&void 0!==a)return a;const c=n(e,a,{options:s,context:i});return this.set(e,c,s),c}get(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{allowStale:n=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:r=this.noDeleteOnStaleGet,status:s}=t,a=o()(this,L).get(e);if(void 0!==a){const t=o()(this,F)[a],c=h(this,de,Ie).call(this,t);return s&&o()(this,Z).call(this,s,a),o()(this,te).call(this,a)?(s&&(s.get="stale"),c?(s&&n&&void 0!==t.__staleWhileFetching&&(s.returnedStale=!0),n?t.__staleWhileFetching:void 0):(r||h(this,fe,Ne).call(this,e,"expire"),s&&n&&(s.returnedStale=!0),n?t:void 0)):(s&&(s.get="hit"),c?t.__staleWhileFetching:(h(this,pe,Ee).call(this,a),i&&o()(this,X).call(this,a),t))}s&&(s.get="miss")}delete(e){return h(this,fe,Ne).call(this,e,"delete")}clear(){return h(this,me,xe).call(this,"delete")}}function ye(){var e=this;const t=new A(o()(this,x)),n=new A(o()(this,x));r()(this,W,t),r()(this,V,n),r()(this,ee,(function(i,r){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:g.now();if(n[i]=0!==r?s:0,t[i]=r,0!==r&&e.ttlAutopurge){const t=setTimeout(()=>{o()(e,te).call(e,i)&&h(e,fe,Ne).call(e,o()(e,D)[i],"expire")},r+1);t.unref&&t.unref()}})),r()(this,X,e=>{n[e]=0!==t[e]?g.now():0}),r()(this,Z,(e,r)=>{if(t[r]){const o=t[r],a=n[r];if(!o||!a)return;e.ttl=o,e.start=a,e.now=i||s();const c=e.now-a;e.remainingTTL=o-c}});let i=0;const s=()=>{const e=g.now();if(this.ttlResolution>0){i=e;const t=setTimeout(()=>i=0,this.ttlResolution);t.unref&&t.unref()}return e};this.getRemainingTTL=e=>{const r=o()(this,L).get(e);if(void 0===r)return 0;const a=t[r],c=n[r];if(!a||!c)return 1/0;return a-((i||s())-c)},r()(this,te,e=>{const r=n[e],o=t[e];return!!o&&!!r&&(i||s())-r>o})}function ve(){const e=new A(o()(this,x));r()(this,M,0),r()(this,H,e),r()(this,ie,t=>{r()(this,M,o()(this,M)-e[t]),e[t]=0}),r()(this,se,(e,t,n,i)=>{if(h(this,de,Ie).call(this,t))return 0;if(!T(n)){if(!i)throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");if("function"!=typeof i)throw new TypeError("sizeCalculation must be a function");if(n=i(t,e),!T(n))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}return n}),r()(this,re,(t,n,i)=>{if(e[t]=n,o()(this,C)){const n=o()(this,C)-e[t];for(;o()(this,M)>n;)h(this,le,we).call(this,!0)}r()(this,M,o()(this,M)+e[t]),i&&(i.entrySize=n,i.totalCalculatedSize=o()(this,M))})}function*be(){let{allowStale:e=this.allowStale}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(o()(this,j))for(let t=o()(this,z);h(this,ce,Se).call(this,t)&&(!e&&o()(this,te).call(this,t)||(yield t),t!==o()(this,U));)t=o()(this,q)[t]}function*_e(){let{allowStale:e=this.allowStale}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(o()(this,j))for(let t=o()(this,U);h(this,ce,Se).call(this,t)&&(!e&&o()(this,te).call(this,t)||(yield t),t!==o()(this,z));)t=o()(this,B)[t]}function Se(e){return void 0!==e&&o()(this,L).get(o()(this,D)[e])===e}function we(e){var t;const n=o()(this,U),i=o()(this,D)[n],s=o()(this,F)[n];if(o()(this,Q)&&h(this,de,Ie).call(this,s))s.__abortController.abort(new Error("evicted"));else if(o()(this,$)||o()(this,K)){var a,c;if(o()(this,$))null===(a=o()(this,R))||void 0===a||a.call(this,s,i,"evict");if(o()(this,K))null===(c=o()(this,G))||void 0===c||c.push([s,i,"evict"])}return o()(this,ie).call(this,n),e&&(o()(this,D)[n]=void 0,o()(this,F)[n]=void 0,o()(this,J).push(n)),1===o()(this,j)?(r()(this,U,r()(this,z,0)),o()(this,J).length=0):r()(this,U,o()(this,B)[n]),o()(this,L).delete(i),r()(this,j,(t=o()(this,j),t--,t)),n}function Te(e,t,n,i){var r=this;const s=void 0===t?void 0:o()(this,F)[t];if(h(this,de,Ie).call(this,s))return s;const a=new _,{signal:c}=n;null==c||c.addEventListener("abort",()=>a.abort(c.reason),{signal:a.signal});const l={signal:a.signal,options:n,context:i},u=function(i){let s=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{aborted:c}=a.signal,u=n.ignoreFetchAbort&&void 0!==i;if(n.status&&(c&&!s?(n.status.fetchAborted=!0,n.status.fetchError=a.signal.reason,u&&(n.status.fetchAbortIgnored=!0)):n.status.fetchResolved=!0),c&&!u&&!s)return d(a.signal.reason);const f=p;return o()(r,F)[t]===p&&(void 0===i?f.__staleWhileFetching?o()(r,F)[t]=f.__staleWhileFetching:h(r,fe,Ne).call(r,e,"fetch"):(n.status&&(n.status.fetchUpdated=!0),r.set(e,i,l.options))),i},d=i=>{const{aborted:r}=a.signal,s=r&&n.allowStaleOnFetchAbort,c=s||n.allowStaleOnFetchRejection,l=c||n.noDeleteOnFetchRejection,u=p;if(o()(this,F)[t]===p){!l||void 0===u.__staleWhileFetching?h(this,fe,Ne).call(this,e,"fetch"):s||(o()(this,F)[t]=u.__staleWhileFetching)}if(c)return n.status&&void 0!==u.__staleWhileFetching&&(n.status.returnedStale=!0),u.__staleWhileFetching;if(u.__returned===u)throw i};n.status&&(n.status.fetchDispatched=!0);const p=new Promise((t,i)=>{var r;const c=null===(r=o()(this,k))||void 0===r?void 0:r.call(this,e,s,l);c&&c instanceof Promise&&c.then(e=>t(void 0===e?void 0:e),i),a.signal.addEventListener("abort",()=>{n.ignoreFetchAbort&&!n.allowStaleOnFetchAbort||(t(void 0),n.allowStaleOnFetchAbort&&(t=e=>u(e,!0)))})}).then(u,e=>(n.status&&(n.status.fetchRejected=!0,n.status.fetchError=e),d(e))),f=Object.assign(p,{__abortController:a,__staleWhileFetching:s,__returned:void 0});return void 0===t?(this.set(e,f,{...l.options,status:void 0}),t=o()(this,L).get(e)):o()(this,F)[t]=f,f}function Ie(e){if(!o()(this,Q))return!1;const t=e;return!!t&&t instanceof Promise&&t.hasOwnProperty("__staleWhileFetching")&&t.__abortController instanceof _}function Ae(e,t){o()(this,q)[t]=e,o()(this,B)[e]=t}function Ee(e){e!==o()(this,z)&&(e===o()(this,U)?r()(this,U,o()(this,B)[e]):h(this,he,Ae).call(this,o()(this,q)[e],o()(this,B)[e]),h(this,he,Ae).call(this,o()(this,z),e),r()(this,z,e))}function Ne(e,t){var n;let i=!1;if(0!==o()(this,j)){const n=o()(this,L).get(e);if(void 0!==n)if(i=!0,1===o()(this,j))h(this,me,xe).call(this,t);else{var s;o()(this,ie).call(this,n);const i=o()(this,F)[n];if(h(this,de,Ie).call(this,i))i.__abortController.abort(new Error("deleted"));else if(o()(this,$)||o()(this,K)){var a,c;if(o()(this,$))null===(a=o()(this,R))||void 0===a||a.call(this,i,e,t);if(o()(this,K))null===(c=o()(this,G))||void 0===c||c.push([i,e,t])}if(o()(this,L).delete(e),o()(this,D)[n]=void 0,o()(this,F)[n]=void 0,n===o()(this,z))r()(this,z,o()(this,q)[n]);else if(n===o()(this,U))r()(this,U,o()(this,B)[n]);else{const e=o()(this,q)[n];o()(this,B)[e]=o()(this,B)[n];const t=o()(this,B)[n];o()(this,q)[t]=o()(this,q)[n]}r()(this,j,(s=o()(this,j),s--,s)),o()(this,J).push(n)}}if(o()(this,K)&&(null===(n=o()(this,G))||void 0===n?void 0:n.length)){const e=o()(this,G);let t;for(;t=null==e?void 0:e.shift();){var l;null===(l=o()(this,O))||void 0===l||l.call(this,...t)}}return i}function xe(e){for(const i of h(this,ae,_e).call(this,{allowStale:!0})){const r=o()(this,F)[i];if(h(this,de,Ie).call(this,r))r.__abortController.abort(new Error("deleted"));else{const s=o()(this,D)[i];var t,n;if(o()(this,$))null===(t=o()(this,R))||void 0===t||t.call(this,r,s,e);if(o()(this,K))null===(n=o()(this,G))||void 0===n||n.push([r,s,e])}}if(o()(this,L).clear(),o()(this,F).fill(void 0),o()(this,D).fill(void 0),o()(this,W)&&o()(this,V)&&(o()(this,W).fill(0),o()(this,V).fill(0)),o()(this,H)&&o()(this,H).fill(0),r()(this,U,0),r()(this,z,0),o()(this,J).length=0,r()(this,M,0),r()(this,j,0),o()(this,K)&&o()(this,G)){const e=o()(this,G);let t;for(;t=null==e?void 0:e.shift();){var i;null===(i=o()(this,O))||void 0===i||i.call(this,...t)}}}}.call(this,n(23))},function(e,t){e.exports=function(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e,t){return t.get?t.get.call(e):t.value},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var i=n(91).default,r=n(272);e.exports=function(e){var t=r(e,"string");return"symbol"===i(t)?t:String(t)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var i=n(91).default;e.exports=function(e,t){if("object"!==i(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){(function(t){var n=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,r=/^0b[01]+$/i,s=/^0o[0-7]+$/i,o=parseInt,a="object"==typeof t&&t&&t.Object===Object&&t,c="object"==typeof self&&self&&self.Object===Object&&self,l=a||c||Function("return this")(),u=Object.prototype.toString,d=Math.max,h=Math.min,p=function(){return l.Date.now()};function f(e,t,n){var i,r,s,o,a,c,l=0,u=!1,f=!1,y=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function v(t){var n=i,s=r;return i=r=void 0,l=t,o=e.apply(s,n)}function b(e){return l=e,a=setTimeout(S,t),u?v(e):o}function _(e){var n=e-c;return void 0===c||n>=t||n<0||f&&e-l>=s}function S(){var e=p();if(_(e))return w(e);a=setTimeout(S,function(e){var n=t-(e-c);return f?h(n,s-(e-l)):n}(e))}function w(e){return a=void 0,y&&i?v(e):(i=r=void 0,o)}function T(){var e=p(),n=_(e);if(i=arguments,r=this,c=e,n){if(void 0===a)return b(c);if(f)return a=setTimeout(S,t),v(c)}return void 0===a&&(a=setTimeout(S,t)),o}return t=g(t)||0,m(n)&&(u=!!n.leading,s=(f="maxWait"in n)?d(g(n.maxWait)||0,t):s,y="trailing"in n?!!n.trailing:y),T.cancel=function(){void 0!==a&&clearTimeout(a),l=0,i=c=r=a=void 0},T.flush=function(){return void 0===a?o:w(p())},T}function m(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function g(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==u.call(e)}(e))return NaN;if(m(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=m(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(n,"");var a=r.test(e);return a||s.test(e)?o(e.slice(2),a?2:8):i.test(e)?NaN:+e}e.exports=function(e,t,n){var i=!0,r=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return m(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),f(e,t,{leading:i,maxWait:t,trailing:r})}}).call(this,n(15))},function(e,t,n){e.exports=function(){"use strict";var e="undefined"==typeof window,t=!1,n=!1,i=!1,r=!1,s=!1,o=!1,a=!1,c=!1,l=!1,u=!1;return e||(t="undefined"!=typeof InstallTrigger,n=!!window.chrome,i=!(!window.chrome||!window.navigator||!window.navigator.plugins||!window.navigator.plugins.namedItem("Chrome PDF Plugin")&&!window.chrome.runtime),r=n&&!window.chrome.webstore&&!window.chrome.runtime,s=0<Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor")||window.safari&&window.safari.pushNotification,o=!!window.opr&&!!window.opr.addons||!!window.opera,a=!!window.StyleMedia,c=n&&!!navigator.userAgent.match(/edg/i),l=(i||o)&&!!window.CSS,u=!(n||s||t||o||!document.documentMode)),{get isChrome(){return i},get isChromeOrChromium(){return n},get isChromium(){return r},get isFirefox(){return t},get isSafari(){return s},get isOpera(){return o},get isEdge(){return a},get isEdgeChromium(){return c},get isIE(){return u},get isBlink(){return l}}}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.definitions=void 0;const i=n(3),r=n(2),s={aliases:["message.propose"],element:"propose",fields:{conversationId:i.attribute("inin-cid"),persistentConversationId:i.attribute("inin-persistent-cid"),sdpOverXmpp:i.booleanAttribute("inin-sdp-over-xmpp"),privAnswerMode:i.attribute("inin-priv-answer-mode"),originalRoomJid:i.attribute("inin-ofrom"),autoAnswer:i.booleanAttribute("inin-autoanswer"),fromUserId:i.attribute("inin-user-id"),sessionId:i.attribute("id"),meetingId:i.attribute("inin-meeting-id")},namespace:"urn:xmpp:jingle-message:0"},o={aliases:["message.proceed"],element:"proceed",fields:{sessionId:i.attribute("id")},namespace:"urn:xmpp:jingle-message:0"},a={aliases:["message.accept"],element:"accept",fields:{sessionId:i.attribute("id")},namespace:"urn:xmpp:jingle-message:0"},c={aliases:["message.reject"],element:"reject",fields:{sessionId:i.attribute("id")},namespace:"urn:xmpp:jingle-message:0"},l={aliases:["message.retract"],element:"retract",fields:{sessionId:i.attribute("id")},namespace:"urn:xmpp:jingle-message:0"},u={aliases:["iq.jingle.screenstart"],element:"screen-start",namespace:r.NS_JINGLE_RTP_INFO_1},d={aliases:["iq.jingle.screenstop"],element:"screen-stop",namespace:r.NS_JINGLE_RTP_INFO_1},h={path:"iq",namespace:r.NS_CLIENT,element:"iq",fields:{genesysWebrtc:i.childJSON("genesys","genesys-webrtc")}},p={path:"message",namespace:r.NS_CLIENT,element:"message",fields:{mediaMessage:i.childJSON("genesys","media-message")}},f={aliases:["presence.media"],element:"x",fields:{conversationId:i.attribute("conversationId"),sourceCommunicationId:i.attribute("sourceCommunicationId"),screenShare:i.childAttribute(null,"mediastream","screenShare"),video:i.childAttribute(null,"mediastream","video"),audio:i.childAttribute(null,"mediastream","audio"),listener:i.childAttribute(null,"mediastream","listener"),screenRecording:i.childAttribute(null,"mediastream","screenRecording")},namespace:"orgspan:mediastream"};t.definitions=[s,o,a,c,l,u,d,f,h,p]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(6),r=n(35),s=(0,i.__importDefault)(n(277)),o=(0,i.__importDefault)(n(92));t.default=class{constructor(){this.translators=new Map,this.root=new o.default,this.setLanguageResolver(r.basicLanguageResolver)}setLanguageResolver(e){this.languageResolver=e}import(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{registry:this};if(!this.hasTranslator(e.getNamespace(),e.getName()))return;t.acceptLanguages||(t.acceptLanguages=[]),t.acceptLanguages=t.acceptLanguages.map(e=>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:s.default});return this.getOrCreateTranslator(e.getNamespace(),e.getName()).import(e,{...t,registry:this})}export(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{registry:this};n.acceptLanguages||(n.acceptLanguages=[]),n.acceptLanguages=n.acceptLanguages.map(e=>e.toLowerCase()),n.lang&&(n.lang=n.lang.toLowerCase()),n.sanitizers||(n.sanitizers={xhtmlim:s.default}),n.path=e;const i=e.split(".").filter(e=>""!==e);let r=this.root;for(const e of i){const t=r.getChild(e);if(!t)return;r=t}return r.export(t,{...n,registry:this})}getImportKey(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=t?this.walkToTranslator(t.split(".")):this.root;if(n)return n.getImportKey(e)}define(e){if(Array.isArray(e)){for(const t of e)"object"==typeof t?this.define(t):t(this);return}if("object"!=typeof e)return void e(this);const t=e;t.aliases=t.aliases||[],t.path&&!t.aliases.includes(t.path)&&t.aliases.push(t.path);const n=t.aliases.map(e=>"string"==typeof e?{path:e}:e).sort((e,t)=>{const n=e.path.split(".").length;return t.path.split(".").length-n});let i;if(this.hasTranslator(t.namespace,t.element)&&(i=this.getOrCreateTranslator(t.namespace,t.element)),!i){let e;for(const t of n){const n=this.walkToTranslator(t.path.split("."));if(n&&!n.placeholder){i=n;break}n&&(e=n)}e&&!i&&(i=e,i.placeholder=!1)}i||(i=this.getOrCreateTranslator(t.namespace,t.element)),this.indexTranslator(t.namespace,t.element,i);const r=t.fields||{},s=new Map,o=new Map,a=new Map,c=new Map;t.typeField&&(i.typeField=t.typeField),t.defaultType&&(i.defaultType=t.defaultType),t.versionField&&(i.versionField=t.versionField),t.defaultVersion&&(i.defaultVersion=t.defaultVersion),t.languageField&&(i.languageField=t.languageField);for(const[e,t]of Object.entries(r))s.set(e,t.importer),a.set(e,t.importOrder||t.order||0),o.set(e,t.exporter),c.set(e,t.exportOrder||t.order||0);if(t.childrenExportOrder)for(const[e,n]of Object.entries(t.childrenExportOrder))c.set(e,n||0);const l=new Map;for(const[e,n]of Object.entries(t.optionalNamespaces||{}))l.set(e,n);i.updateDefinition({contexts:new Map,element:t.element,exporterOrdering:c,exporters:o,importerOrdering:a,importers:s,namespace:t.namespace,optionalNamespaces:l,type:t.type,version:t.version,typeOrder:t.typeOrder});for(const e of n)this.alias(t.namespace,t.element,e.path,e.multiple,e.selector,e.contextField,t.type,e.impliedType);for(const e of n){const t=this.walkToTranslator(e.path.split("."));t&&t!==i&&t.replaceWith(i)}}alias(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6?arguments[6]:void 0,a=arguments.length>7&&void 0!==arguments[7]&&arguments[7];const c=this.getOrCreateTranslator(e,t);c.placeholder=!1;const l=n.split(".").filter(e=>""!==e),u=l.pop(),d=this.walkToTranslator(l,!0),h=`{${e}}${t}`;o&&(s||a)&&c.addContext(n,r,s,h,o,a),d.addChild(u,c,i,r,h)}walkToTranslator(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.root;for(const i of e){let e=n.getChild(i);if(!e){if(!t)return;e=new o.default,e.placeholder=!0,n.addChild(i,e)}n=e}return n}hasTranslator(e,t){return this.translators.has(`{${e}}${t}`)}getOrCreateTranslator(e,t){let n=this.translators.get(`{${e}}${t}`);return n||(n=new o.default,this.indexTranslator(e,t,n)),n}indexTranslator(e,t,n){this.translators.set(`{${e}}${t}`,n)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=new Set(["a","blockquote","br","cite","em","img","li","ol","p","span","strong","ul"]),r=new Set(["style"]),s=new Map([["a",new Set(["href","style"])],["body",new Set(["style","xml:lang"])],["blockquote",r],["br",r],["cite",r],["em",r],["img",new Set(["alt","height","src","style","width"])],["li",r],["ol",r],["p",r],["span",r],["strong",r],["ul",r]]),o=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]]),a=e=>!!e.match(/^(https?|xmpp|cid|mailto|ftps?|im|ircs?|sips?|tel|geo|bitcoin|magnet):/i)&&e,c=e=>!!e.match(/^[0-9]*$/)&&e,l={alt:e=>e,height:c,href:a,src:a,style:e=>{const t=(";"+e).replace(/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,"").replace(/\/\*.*/,"").replace(/\\([a-fA-F0-9]{1,6})\s?/,(e,t)=>String.fromCharCode(parseInt(t,16))).match(/;\s*([a-z-]+)\s*:\s*([^;]*[^\s;])\s*/g),n=[];if(!t)return!1;for(const e of t){const t=e.match(/^;\s*([a-z-]+)\s*:\s*([^;]*[^\s])\s*$/);if(!t)continue;const i=o.get(t[1]);if(i){const e=t[2].match(i);e&&n.push(`${t[1]}:${e[0]}`)}}return!!n.length&&n.join("")},width:c};function u(e){if("string"==typeof e)return e;if(!i.has(e.name)){if("script"===e.name)return;return function(e){let t=[];for(const n of e.children)if("string"==typeof n)t.push(n);else{const e=u(n);e&&(Array.isArray(e)?t=t.concat(e):t.push(e))}return t}(e)}const t=e.children.map(u).filter(e=>void 0!==e),n={};for(const[t,i]of Object.entries(e.attributes)){const r=s.get(e.name);if(!r||!r.has(t))continue;if(!i)continue;const o=l[t](i);o&&(n[t]=o)}return{attributes:n,children:t,name:e.name}}t.default=function(e){if("string"==typeof e)return;let t=[];for(const n of e.children){if(!n)continue;if("string"==typeof n){t.push(n);continue}const e=u(n);Array.isArray(e)?t=t.concat(e):e&&t.push(e)}const n={};return"body"===e.name?(void 0!==e.attributes.xmlns&&(n.xmlns=e.attributes.xmlns),e.attributes.style&&(n.style=e.attributes.style),void 0!==e.attributes["xml:lang"]&&(n["xml:lang"]=e.attributes["xml:lang"]),{attributes:n,children:t,name:"body"}):void 0}},function(e,t,n){"use strict";n(9),t.byteLength=function(e){var t=l(e),n=t[0],i=t[1];return 3*(n+i)/4-i},t.toByteArray=function(e){var t,n,i=l(e),o=i[0],a=i[1],c=new s(function(e,t,n){return 3*(t+n)/4-n}(0,o,a)),u=0,d=a>0?o-4:o;for(n=0;n<d;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],c[u++]=t>>16&255,c[u++]=t>>8&255,c[u++]=255&t;2===a&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,c[u++]=255&t);1===a&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t);return c},t.fromByteArray=function(e){for(var t,n=e.length,r=n%3,s=[],o=0,a=n-r;o<a;o+=16383)s.push(u(e,o,o+16383>a?a:o+16383));1===r?(t=e[n-1],s.push(i[t>>2]+i[t<<4&63]+"==")):2===r&&(t=(e[n-2]<<8)+e[n-1],s.push(i[t>>10]+i[t>>4&63]+i[t<<2&63]+"="));return s.join("")};for(var i=[],r=[],s="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,c=o.length;a<c;++a)i[a]=o[a],r[o.charCodeAt(a)]=a;function l(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 u(e,t,n){for(var r,s,o=[],a=t;a<n;a+=3)r=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),o.push(i[(s=r)>>18&63]+i[s>>12&63]+i[s>>6&63]+i[63&s]);return o.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},function(e,t,n){"use strict";
32
32
  /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */t.read=function(e,t,n,i,r){var s,o,a=8*r-i-1,c=(1<<a)-1,l=c>>1,u=-7,d=n?r-1:0,h=n?-1:1,p=e[t+d];for(d+=h,s=p&(1<<-u)-1,p>>=-u,u+=a;u>0;s=256*s+e[t+d],d+=h,u-=8);for(o=s&(1<<-u)-1,s>>=-u,u+=i;u>0;o=256*o+e[t+d],d+=h,u-=8);if(0===s)s=1-l;else{if(s===c)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,i),s-=l}return(p?-1:1)*o*Math.pow(2,s-i)},t.write=function(e,t,n,i,r,s){var o,a,c,l=8*s-r-1,u=(1<<l)-1,d=u>>1,h=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,p=i?0:s-1,f=i?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-o))<1&&(o--,c*=2),(t+=o+d>=1?h/c:h*Math.pow(2,1-d))*c>=2&&(o++,c/=2),o+d>=u?(a=0,o=u):o+d>=1?(a=(t*c-1)*Math.pow(2,r),o+=d):(a=t*Math.pow(2,d-1)*Math.pow(2,r),o=0));r>=8;e[n+p]=255&a,p+=f,a/=256,r-=8);for(o=o<<r|a,l+=r;l>0;e[n+p]=255&o,p+=f,o/=256,l-=8);e[n+p-f]|=128*m}},function(e,t,n){"use strict";var i=n(14).Buffer;t.BufferList=class{constructor(){this.head=null,this.tail=null,this.length=0}push(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}unshift(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}shift(){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}}clear(){this.head=this.tail=null,this.length=0}join(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n}concat(e){if(0===this.length)return i.alloc(0);if(1===this.length)return this.head.data;for(var t,n,r,s=i.allocUnsafe(e>>>0),o=this.head,a=0;o;)t=o.data,n=s,r=a,t.copy(n,r),a+=o.data.length,o=o.next;return s}}},function(e,t,n){"use strict";e.exports=r;var i=n(98);function r(e){if(!(this instanceof r))return new r(e);i.call(this,e)}Object.create(n(32)).inherits(r,i),r.prototype._transform=function(e,t,n){n(null,e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(6),r=n(14),s=(0,i.__importDefault)(n(31));function o(e,t){return e<<t|e>>>32-t}function a(e,t,n,i,r,s,a){return o(e+(t&n|~t&i)+r+s|0,a)+t|0}function c(e,t,n,i,r,s,a){return o(e+(t&i|n&~i)+r+s|0,a)+t|0}function l(e,t,n,i,r,s,a){return o(e+(t^n^i)+r+s|0,a)+t|0}function u(e,t,n,i,r,s,a){return o(e+(n^(t|~i))+r+s|0,a)+t|0}class d extends s.default{constructor(){super(64,56,"le"),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._m=new Array(16)}_update(e){const t=this._m;for(let n=0;n<16;++n)t[n]=e.readInt32LE(4*n);let n=this._a,i=this._b,r=this._c,s=this._d;n=a(n,i,r,s,t[0],3614090360,7),s=a(s,n,i,r,t[1],3905402710,12),r=a(r,s,n,i,t[2],606105819,17),i=a(i,r,s,n,t[3],3250441966,22),n=a(n,i,r,s,t[4],4118548399,7),s=a(s,n,i,r,t[5],1200080426,12),r=a(r,s,n,i,t[6],2821735955,17),i=a(i,r,s,n,t[7],4249261313,22),n=a(n,i,r,s,t[8],1770035416,7),s=a(s,n,i,r,t[9],2336552879,12),r=a(r,s,n,i,t[10],4294925233,17),i=a(i,r,s,n,t[11],2304563134,22),n=a(n,i,r,s,t[12],1804603682,7),s=a(s,n,i,r,t[13],4254626195,12),r=a(r,s,n,i,t[14],2792965006,17),i=a(i,r,s,n,t[15],1236535329,22),n=c(n,i,r,s,t[1],4129170786,5),s=c(s,n,i,r,t[6],3225465664,9),r=c(r,s,n,i,t[11],643717713,14),i=c(i,r,s,n,t[0],3921069994,20),n=c(n,i,r,s,t[5],3593408605,5),s=c(s,n,i,r,t[10],38016083,9),r=c(r,s,n,i,t[15],3634488961,14),i=c(i,r,s,n,t[4],3889429448,20),n=c(n,i,r,s,t[9],568446438,5),s=c(s,n,i,r,t[14],3275163606,9),r=c(r,s,n,i,t[3],4107603335,14),i=c(i,r,s,n,t[8],1163531501,20),n=c(n,i,r,s,t[13],2850285829,5),s=c(s,n,i,r,t[2],4243563512,9),r=c(r,s,n,i,t[7],1735328473,14),i=c(i,r,s,n,t[12],2368359562,20),n=l(n,i,r,s,t[5],4294588738,4),s=l(s,n,i,r,t[8],2272392833,11),r=l(r,s,n,i,t[11],1839030562,16),i=l(i,r,s,n,t[14],4259657740,23),n=l(n,i,r,s,t[1],2763975236,4),s=l(s,n,i,r,t[4],1272893353,11),r=l(r,s,n,i,t[7],4139469664,16),i=l(i,r,s,n,t[10],3200236656,23),n=l(n,i,r,s,t[13],681279174,4),s=l(s,n,i,r,t[0],3936430074,11),r=l(r,s,n,i,t[3],3572445317,16),i=l(i,r,s,n,t[6],76029189,23),n=l(n,i,r,s,t[9],3654602809,4),s=l(s,n,i,r,t[12],3873151461,11),r=l(r,s,n,i,t[15],530742520,16),i=l(i,r,s,n,t[2],3299628645,23),n=u(n,i,r,s,t[0],4096336452,6),s=u(s,n,i,r,t[7],1126891415,10),r=u(r,s,n,i,t[14],2878612391,15),i=u(i,r,s,n,t[5],4237533241,21),n=u(n,i,r,s,t[12],1700485571,6),s=u(s,n,i,r,t[3],2399980690,10),r=u(r,s,n,i,t[10],4293915773,15),i=u(i,r,s,n,t[1],2240044497,21),n=u(n,i,r,s,t[8],1873313359,6),s=u(s,n,i,r,t[15],4264355552,10),r=u(r,s,n,i,t[6],2734768916,15),i=u(i,r,s,n,t[13],1309151649,21),n=u(n,i,r,s,t[4],4149444226,6),s=u(s,n,i,r,t[11],3174756917,10),r=u(r,s,n,i,t[2],718787259,15),i=u(i,r,s,n,t[9],3951481745,21),this._a=this._a+n|0,this._b=this._b+i|0,this._c=this._c+r|0,this._d=this._d+s|0}_hash(){const e=r.Buffer.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e}}t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(6),r=n(14),s=(0,i.__importDefault)(n(31)),o=[1518500249,1859775393,-1894007588,-899497514];function a(e){return e<<5|e>>>27}function c(e){return e<<30|e>>>2}function l(e,t,n,i){return 0===e?t&n|~t&i:2===e?t&n|t&i|n&i:t^n^i}class u extends s.default{constructor(){super(64,56),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this._w=new Array(80)}_update(e){const t=this._w;let n,i=0|this._a,r=0|this._b,s=0|this._c,u=0|this._d,d=0|this._e;for(n=0;n<16;++n)t[n]=e.readInt32BE(4*n);for(;n<80;++n)t[n]=(h=t[n-3]^t[n-8]^t[n-14]^t[n-16])<<1|h>>>31;var h;for(let e=0;e<80;++e){const n=~~(e/20),h=a(i)+l(n,r,s,u)+d+t[e]+o[n]|0;d=u,u=s,s=c(r),r=i,i=h}this._a=i+this._a|0,this._b=r+this._b|0,this._c=s+this._c|0,this._d=u+this._d|0,this._e=d+this._e|0}_hash(){const e=r.Buffer.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e}}t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(6),r=n(14),s=(0,i.__importDefault)(n(31)),o=[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 a(e,t,n){return n^e&(t^n)}function c(e,t,n){return e&t|n&(e|t)}function l(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function u(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function d(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}class h extends s.default{constructor(){super(64,56),this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this._w=new Array(64)}_update(e){const t=this._w;let n,i=0|this._a,r=0|this._b,s=0|this._c,h=0|this._d,p=0|this._e,f=0|this._f,m=0|this._g,g=0|this._h;for(n=0;n<16;++n)t[n]=e.readInt32BE(4*n);for(;n<64;++n)t[n]=0|(((y=t[n-2])>>>17|y<<15)^(y>>>19|y<<13)^y>>>10)+t[n-7]+d(t[n-15])+t[n-16];var y;for(let e=0;e<64;++e){const n=g+u(p)+a(p,f,m)+o[e]+t[e]|0,d=l(i)+c(i,r,s)|0;g=m,m=f,f=p,p=h+n|0,h=s,s=r,r=i,i=n+d|0}this._a=i+this._a|0,this._b=r+this._b|0,this._c=s+this._c|0,this._d=h+this._d|0,this._e=p+this._e|0,this._f=f+this._f|0,this._g=m+this._g|0,this._h=g+this._h|0}_hash(){const e=r.Buffer.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e}}t.default=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(6),r=n(14),s=(0,i.__importDefault)(n(31)),o=[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 a(e,t,n){return n^e&(t^n)}function c(e,t,n){return e&t|n&(e|t)}function l(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function u(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function d(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function h(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function p(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function f(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function m(e,t){return e>>>0<t>>>0?1:0}class g extends s.default{constructor(){super(128,112),this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this._w=new Array(160)}_update(e){const t=this._w;let n,i,r=0|this._ah,s=0|this._bh,g=0|this._ch,y=0|this._dh,v=0|this._eh,b=0|this._fh,_=0|this._gh,S=0|this._hh,w=0|this._al,T=0|this._bl,I=0|this._cl,A=0|this._dl,E=0|this._el,N=0|this._fl,x=0|this._gl,C=0|this._hl,R=0;for(R=0;R<32;R+=2)t[R]=e.readInt32BE(4*R),t[R+1]=e.readInt32BE(4*R+4);for(;R<160;R+=2){let e=t[R-30],r=t[R-30+1];const s=d(e,r),o=h(r,e);e=t[R-4],r=t[R-4+1];const a=p(e,r),c=f(r,e),l=t[R-14],u=t[R-14+1],g=t[R-32],y=t[R-32+1];i=o+u|0,n=s+l+m(i,o)|0,i=i+c|0,n=n+a+m(i,c)|0,i=i+y|0,n=n+g+m(i,y)|0,t[R]=n,t[R+1]=i}for(let e=0;e<160;e+=2){n=t[e],i=t[e+1];const d=c(r,s,g),h=c(w,T,I),p=l(r,w),f=l(w,r),R=u(v,E),O=u(E,v),k=o[e],P=o[e+1],j=a(v,b,_),M=a(E,N,x);let L=C+O|0,D=S+R+m(L,C)|0;L=L+M|0,D=D+j+m(L,M)|0,L=L+P|0,D=D+k+m(L,P)|0,L=L+i|0,D=D+n+m(L,i)|0;const F=f+h|0,B=p+d+m(F,f)|0;S=_,C=x,_=b,x=N,b=v,N=E,E=A+L|0,v=y+D+m(E,A)|0,y=g,A=I,g=s,I=T,s=r,T=w,w=L+F|0,r=D+B+m(w,L)|0}this._al=this._al+w|0,this._bl=this._bl+T|0,this._cl=this._cl+I|0,this._dl=this._dl+A|0,this._el=this._el+E|0,this._fl=this._fl+N|0,this._gl=this._gl+x|0,this._hl=this._hl+C|0,this._ah=this._ah+r+m(this._al,w)|0,this._bh=this._bh+s+m(this._bl,T)|0,this._ch=this._ch+g+m(this._cl,I)|0,this._dh=this._dh+y+m(this._dl,A)|0,this._eh=this._eh+v+m(this._el,E)|0,this._fh=this._fh+b+m(this._fl,N)|0,this._gh=this._gh+_+m(this._gl,x)|0,this._hh=this._hh+S+m(this._hl,C)|0}_hash(){const e=r.Buffer.allocUnsafe(64);function t(t,n,i){e.writeInt32BE(t,i),e.writeInt32BE(n,i+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e}}t.default=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(6),r=n(14),s=n(56),o=(0,i.__importDefault)(n(93)),a=r.Buffer.alloc(128);class c extends s.Transform{constructor(e,t){super(),"string"==typeof t&&(t=r.Buffer.from(t));const n="sha512"===e?128:64;this._alg=e,t.length>n?t=(0,o.default)(e).update(t).digest():t.length<n&&(t=r.Buffer.concat([t,a],n)),this._ipad=r.Buffer.alloc(n),this._opad=r.Buffer.alloc(n);for(let e=0;e<n;e++)this._ipad[e]=54^t[e],this._opad[e]=92^t[e];this._hash=(0,o.default)(e).update(this._ipad)}_transform(e,t,n){let i;try{this.update(e,t)}catch(e){i=e}finally{n(i)}}_flush(e){let t;try{this.push(this._final())}catch(e){t=e}e(t)}_final(){const e=this._hash.digest();return(0,o.default)(this._alg).update(this._opad).update(e).digest()}update(e,t){return this._hash.update(e,t),this}digest(e){const t=this._final()||r.Buffer.alloc(0);return e?t.toString(e):t}}t.default=c},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;const i=n(2),r=n(55);t.JIDAttribute=r.attribute,t.childJIDAttribute=r.childAttribute,t.childJID=r.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:i.NS_CLIENT}},t.extendPresence=function(e){return{element:"presence",fields:e,namespace:i.NS_CLIENT}},t.extendIQ=function(e){return{element:"iq",fields:e,namespace:i.NS_CLIENT}},t.extendStreamFeatures=function(e){return{element:"features",fields:e,namespace:i.NS_STREAM}},t.extendStanzaError=function(e){return{element:"error",fields:e,namespace:i.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";Object.defineProperty(t,"__esModule",{value:!0});const i=n(6),r=n(12),s=(0,i.__importDefault)(n(34)),o=(0,i.__importDefault)(n(54)),a=(0,i.__importDefault)(n(57));class c extends r.Transform{constructor(e){super({objectMode:!0}),this.closedStream=!1,this.wrappedStream=!1,this.registry=e.registry,this.acceptLanguages=e.acceptLanguages||[],e.wrappedStream&&(this.wrappedStream=!0,this.rootImportKey=e.rootKey),this.parser=new a.default({allowComments:e.allowComments}),this.parser.on("error",e=>{this.destroy(e)}),this.parser.on("startElement",(e,t)=>{if(this.destroyed)return;if(this.closedStream)return this.destroy(o.default.alreadyClosed());const n=new s.default(e,t),i=this.registry.getImportKey(n);if(this.wrappedStream&&!this.rootElement){if(this.rootImportKey&&i!==this.rootImportKey)return this.destroy(o.default.unknownRoot());const e=this.registry.import(n,{acceptLanguages:this.acceptLanguages,lang:this.lang});return e?(this.rootElement=n,void this.push({event:"stream-start",kind:i,stanza:e,xml:n})):this.destroy(o.default.notWellFormed())}this.currentElement?this.currentElement=this.currentElement.appendChild(n):this.currentElement=n}),this.parser.on("endElement",e=>{if(!this.destroyed){if(this.wrappedStream&&!this.currentElement)return this.rootElement&&e===this.rootElement.name?(this.closedStream=!0,this.push({event:"stream-end",kind:this.rootImportKey,stanza:{},xml:this.rootElement}),this.end()):(this.closedStream=!0,this.destroy(o.default.notWellFormed()));if(!this.currentElement||e!==this.currentElement.name)return this.closedStream=!0,this.destroy(o.default.notWellFormed());if(this.currentElement.parent)this.currentElement=this.currentElement.parent;else{this.wrappedStream&&(this.currentElement.parent=this.rootElement);const e=this.registry.getImportKey(this.currentElement),t=this.registry.import(this.currentElement,{acceptLanguages:this.acceptLanguages,lang:this.lang});t&&this.push({kind:e,stanza:t,xml:this.currentElement}),this.currentElement=void 0}}}),this.parser.on("text",e=>{this.currentElement&&this.currentElement.children.push(e)})}_transform(e,t,n){this.parser.write(e.toString()),n()}}t.default=c},function(e,t,n){"use strict";function i(e){return"getStats"===e.name}function r(e){let t={};return Object.assign(t,s(e.tracks,"localTrack")),delete e.tracks,Object.assign(t,s(e.remoteTracks,"remoteTrack")),delete e.remoteTracks,t}function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n={};if(Array.isArray(e))for(let i=0;i<e.length;i++)Object.assign(n,s(e[i],`${t}_[${i}]`));else"object"!=typeof e?n[t]=e:Object.keys(e).filter(e=>"ip"!==e.toLowerCase()).forEach(i=>{const r=e[i],o=t?`${t}_${i}`:i;"object"==typeof r||Array.isArray(r)?Object.assign(n,s(r,o)):n[o]=r});return n}Object.defineProperty(t,"__esModule",{value:!0}),t.deepFlatten=t.formatStatsEvent=void 0,t.formatStatsEvent=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n={_eventType:e.name,_eventTimestamp:(new Date).getTime(),...t};i(e)&&Object.assign(n,r(e)),Object.assign(n,s(e)),delete n.name;const o={actionName:"WebrtcStats",details:n};return o},t.deepFlatten=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(6),r=n(10),s=n(8),o=n(2),a=n(12),c=n(17),l=(0,i.__importDefault)(n(99)),u=(0,i.__importDefault)(n(101)),d=(0,i.__importDefault)(n(62));class h extends r.EventEmitter{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(),e=e||{},this.selfID=e.selfID,this.sessions={},this.peers={},this.iceServers=e.iceServers||[],this.prepareSession=e.prepareSession||(e=>{if(this.config.hasRTCPeerConnection)return e.applicationTypes.indexOf(o.NS_JINGLE_RTP_1)>=0?new u.default(e):e.applicationTypes.indexOf(o.NS_JINGLE_FILE_TRANSFER_5)>=0?new l.default(e):void 0}),this.performTieBreak=e.performTieBreak||((e,t)=>{const n=(t.jingle.contents||[]).map(e=>{if(e.application)return e.application.applicationType});return(e.pendingApplicationTypes||[]).filter(e=>n.includes(e)).length>0}),this.createPeerConnection=e.createPeerConnection||((e,t)=>{if(a.RTCPeerConnection)return new a.RTCPeerConnection(t)}),this.config={debug:!1,hasRTCPeerConnection:!!a.RTCPeerConnection,peerConnectionConfig:{bundlePolicy:e.bundlePolicy||"balanced",iceTransportPolicy:e.iceTransportPolicy||"all",rtcpMuxPolicy:e.rtcpMuxPolicy||"require",sdpSemantics:e.sdpSemantics},peerConnectionConstraints:{optional:[{DtlsSrtpKeyAgreement:!0},{RtpDataChannels:!1}]},...e}}addICEServer(e){if("string"==typeof e)return void this.iceServers.push({urls:e});if(!(t=e).type&&(t.urls||t.url))return void this.iceServers.push(e);var t;let n=e.host||"";n.indexOf(":")>=0&&(n=`[${n}]`);let i=`${e.type}:${n}`;e.port&&(i+=":"+e.port),e.transport&&(i+="?transport="+e.transport),"turn"===e.type||"turns"===e.type?this.iceServers.push({credential:e.password,urls:[i],username:e.username}):"stun"!==e.type&&"stuns"!==e.type||this.iceServers.push({urls:[i]})}resetICEServers(){this.iceServers=[]}addSession(e){e.parent=this;const 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}forgetSession(e){const t=this.peers[e.peerID]||[];t.length&&t.splice(t.indexOf(e),1),delete this.sessions[e.sid]}createMediaSession(e,t,n){const i=new u.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(i),i}createFileTransferSession(e,t){const n=new l.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}endPeerSessions(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const i=this.peers[e]||[];delete this.peers[e];for(const e of i)e.end(t||"gone",n)}endAllSessions(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];for(const n of Object.keys(this.peers))this.endPeerSessions(n,e,t)}process(e){const t=e.jingle?e.jingle.sid:void 0;let n=t?this.sessions[t]:void 0;const i=e.id,r=e.from;if(!r)return;if("error"===e.type){if(this._log("error","Received error response",e),n&&e.error&&"unknown-session"===e.error.jingleError)return n.end("gone",!0);const t=e.error&&"tie-break"===e.error.jingleError;return n&&"pending"===n.state&&t?n.end("alternative-session",!0):void(n&&(n.pendingAction=void 0))}if("result"===e.type)return void(n&&(n.pendingAction=void 0));const o=e.jingle.action,a=e.jingle.contents||[],l=a.map(e=>e.application?e.application.applicationType:void 0),u=a.map(e=>e.transport?e.transport.transportType:void 0);if(o!==s.JingleAction.SessionInitiate){if(!n)return"session-terminate"===o?void this.emit("send",{id:i,to:r,type:"result"}):(this._log("error","Unknown session",t),this._sendError(r,i,{condition:"item-not-found",jingleError:"unknown-session"}));if(n.peerID!==r||"ended"===n.state)return this._log("error","Session has ended, or action has wrong sender"),this._sendError(r,i,{condition:"item-not-found",jingleError:"unknown-session"});if("session-accept"===o&&"pending"!==n.state)return this._log("error","Tried to accept session twice",t),this._sendError(r,i,{condition:"unexpected-request",jingleError:"out-of-order"});if("session-terminate"!==o&&o===n.pendingAction&&(this._log("error","Tie break during pending request"),n.isInitiator))return this._sendError(r,i,{condition:"conflict",jingleError:"tie-break"})}else if(n){if(n.peerID!==r)return this._log("error","Duplicate sid from new sender"),this._sendError(r,i,{condition:"service-unavailable"});if("pending"!==n.state)return this._log("error","Someone is doing this wrong"),this._sendError(r,i,{condition:"unexpected-request",jingleError:"out-of-order"});if(this.selfID&&this.selfID>n.peerID&&this.performTieBreak(n,e))return this._log("error","Tie break new session because of duplicate sids"),this._sendError(r,i,{condition:"conflict",jingleError:"tie-break"})}else if(this.peers[r]&&this.peers[r].length)for(let n=0,s=this.peers[r].length;n<s;n++){const s=this.peers[r][n];if(s&&"pending"===s.state&&t&&(0,c.octetCompare)(s.sid,t)>0&&this.performTieBreak(s,e))return this._log("info","Tie break session-initiate"),this._sendError(r,i,{condition:"conflict",jingleError:"tie-break"})}if("session-initiate"===o){if(!a.length)return this._sendError(r,i,{condition:"bad-request"});n=this._createIncomingSession({applicationTypes:l,config:this.config.peerConnectionConfig,constraints:this.config.peerConnectionConstraints,iceServers:this.iceServers,initiator:!1,parent:this,peerID:r,sid:t,transportTypes:u},e)}n.process(o,e.jingle,t=>{t?(this._log("error","Could not process request",e,t),this._sendError(r,i,t)):(this.emit("send",{id:i,to:r,type:"result"}),"session-initiate"===o&&this.emit("incoming",n))})}signal(e,t){const n=t.jingle&&t.jingle.action;e.isInitiator&&n===s.JingleAction.SessionInitiate&&this.emit("outgoing",e),this.emit("send",t)}_createIncomingSession(e,t){let n;return this.prepareSession&&(n=this.prepareSession(e,t)),n||(n=new d.default(e)),this.addSession(n),n}_sendError(e,t,n){n.type||(n.type="cancel"),this.emit("send",{error:n,id:t,to:e,type:"error"})}_log(e,t){for(var n=arguments.length,i=new Array(n>2?n-2:0),r=2;r<n;r++)i[r-2]=arguments[r];this.emit("log",e,t,...i),this.emit("log:"+e,t,...i)}}t.default=h},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.Ping=void 0;t.Ping=class{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.client=e,this.stanzaInstance=t,this.options=n,this.pingInterval=n.pingInterval||14e3,this.failedPingsBeforeDisconnect=n.failedPingsBeforeDisconnect||1,this.numberOfFailedPings=0,this.nextPingTimeoutId=void 0,this.start()}start(){this.nextPingTimeoutId||(this.nextPingTimeoutId=-1,this.queueNextPing())}stop(){clearTimeout(this.nextPingTimeoutId),this.nextPingTimeoutId=void 0,this.numberOfFailedPings=0}async performPing(){var e;try{await this.stanzaInstance.ping(this.options.jid),this.numberOfFailedPings=0,this.queueNextPing()}catch(t){const n={channelId:this.client.config.channelId,jid:this.stanzaInstance.jid,stanzaInstanceId:this.stanzaInstance.id};this.client.logger.warn("Missed a ping.",Object.assign({error:t},n)),++this.numberOfFailedPings>this.failedPingsBeforeDisconnect?(this.client.logger.error("Missed too many pings, disconnecting",Object.assign({numberOfFailedPings:this.numberOfFailedPings},n)),this.stanzaInstance.sendStreamError({text:"too many missed pongs",condition:"connection-timeout"}),this.stop(),null===(e=this.stanzaInstance.transport)||void 0===e||e.disconnect(!1)):this.queueNextPing()}}queueNextPing(){this.nextPingTimeoutId&&(this.nextPingTimeoutId=setTimeout(this.performPing.bind(this),this.pingInterval))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ServerMonitor=void 0;t.ServerMonitor=class{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.client=e,this.stanzaInstance=t,this.stanzaTimeout=n.stanzaTimeout||7e4,this.timeoutId=void 0,this.start()}start(){this.boundSetupStanzaTimeout=this.setupStanzaTimeout.bind(this),this.client.on("connected",this.boundSetupStanzaTimeout),this.stanzaInstance.on("raw:incoming",this.boundSetupStanzaTimeout)}stop(){clearTimeout(this.timeoutId),this.timeoutId=void 0,this.boundSetupStanzaTimeout&&(this.client.off("connected",this.boundSetupStanzaTimeout),this.stanzaInstance.off("raw:incoming",this.boundSetupStanzaTimeout),this.boundSetupStanzaTimeout=void 0)}setupStanzaTimeout(){clearTimeout(this.timeoutId),this.timeoutId=setTimeout(()=>{var e;const t={channelId:this.client.config.channelId,jid:this.stanzaInstance.jid,stanzaInstanceId:this.stanzaInstance.id,timeout:this.stanzaTimeout};this.client.logger.error("Time between XMPP stanzas exceeded timeout, disconnecting",t),this.stanzaInstance.sendStreamError({text:"time between stanzas exceeded timeout",condition:"connection-timeout"}),this.stop(),null===(e=this.stanzaInstance.transport)||void 0===e||e.disconnect(!1)},this.stanzaTimeout)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectionManager=void 0;const i=n(26),r=n(295),s=n(28),o=i.__importDefault(n(206)),a=n(16);t.ConnectionManager=class{constructor(e,t){this.logger=e,this.config=t}setConfig(e){this.config=e}async getNewStanzaConnection(){const e=this.getStanzaOptions(),t=r.createClient({});t.sasl.mechanisms.find(e=>"ANONYMOUS"===e.name).priority=0,t.sasl.mechanisms=t.sasl.mechanisms.sort((e,t)=>t.priority-e.priority),t.id=s.v4();const n=t.channelId=this.config.channelId;let i,o,c,l;const u=a.timeoutPromise((n,r)=>{i=this.checkForErrorStanza.bind(this,t),t.on("raw:incoming",i),o=this.handleSessionStarted.bind(this,t,n),t.on("session:started",o),c=this.handleSessionSasl.bind(this,t,r),t.on("sasl",c),l=this.handleSessionDisconnected.bind(this,t,r),t.on("disconnected",l),t.updateConfig(e),t.connect()},15e3,"connecting to streaming service",{channelId:n,stanzaInstanceId:t.id});return u.catch(()=>t.disconnect()),u.finally(()=>{t.off("raw:incoming",i),t.off("session:started",o),t.off("sasl",c),t.off("disconnected",l)})}handleSessionStarted(e,t){this.logger.info("new stanza instance connected",{stanzaInstanceId:e.id,channelId:e.channelId}),t(e)}handleSessionSasl(e,t,n){"failure"===n.type&&t(new o.default(n.condition,e.channelId,e.id))}handleSessionDisconnected(e,t){this.logger.error("stanza disconnected",{stanzaInstanceId:e.id,channelId:e.channelId}),t()}checkForErrorStanza(e,t){t.includes("error")&&this.logger.error("Received a stanza during setup that tripped the error filter",{rawStanza:t,stanzaInstanceId:e.id,channelId:e.channelId})}getStanzaOptions(){return this.config.jwt?this.getJwtOptions():this.getStandardOptions()}getJwtOptions(){const e=this.config,t=a.parseJwt(e.jwt);let n;try{n=t.data.jid.split("@")[1].replace("conference.","")}catch(e){throw new Error("failed to parse jid")}let i=e.host.replace(/\/$/,"");return{resource:e.jidResource,transports:{websocket:`${i}/stream/jwt/${e.jwt}`},server:n}}getStandardOptions(){const e=this.config;let t=e.host.replace(/\/$/,"");return{jid:e.jid,resource:e.jidResource,credentials:{username:e.jid,password:"authKey:"+e.authToken},transports:{websocket:`${t}/stream/channels/${e.channelId}`}}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createClient=t.VERSION=t.Platform=t.SASL=t.RTT=t.RSM=t.Utils=t.Jingle=t.Stanzas=t.Namespaces=t.JID=t.JXT=t.DataForms=t.Constants=t.Client=void 0;const i=n(6),r=(0,i.__importDefault)(n(296));t.Client=r.default;const s=(0,i.__importStar)(n(8));t.Constants=s;const o=(0,i.__importStar)(n(302));t.RTT=o;const a=(0,i.__importStar)(n(13));t.JID=a;const c=(0,i.__importStar)(n(59));t.Jingle=c;const l=(0,i.__importStar)(n(3));t.JXT=l;const u=(0,i.__importStar)(n(105));t.SASL=u;const d=(0,i.__importStar)(n(2));t.Namespaces=d;const h=(0,i.__importStar)(n(125));t.Stanzas=h;const p=(0,i.__importStar)(n(17));t.Utils=p;const f=(0,i.__importStar)(n(12));t.Platform=f,(0,i.__exportStar)(n(104),t);const m=(0,i.__importStar)(n(303));t.RSM=m;const g=(0,i.__importStar)(n(117));t.DataForms=g,t.VERSION=s.VERSION;const y=(0,i.__importDefault)(n(65));(0,i.__exportStar)(n(65),t),t.createClient=function(e){const t=new r.default(e);return t.use(y.default),t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(6),r=n(63),s=n(10),o=(0,i.__importDefault)(n(104)),a=(0,i.__importStar)(n(13)),c=(0,i.__importStar)(n(3)),l=(0,i.__importStar)(n(105)),u=n(65),d=(0,i.__importDefault)(n(125)),h=(0,i.__importDefault)(n(299)),p=(0,i.__importDefault)(n(300)),f=n(17),m=(0,i.__importDefault)(n(301));class g extends s.EventEmitter{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(),this.reconnectAttempts=0,this.setMaxListeners(100),this.off=this.removeListener,this.updateConfig(e),this.jid="",this.sasl=new l.Factory,this.sasl.register("EXTERNAL",l.EXTERNAL,1e3),this.sasl.register("SCRAM-SHA-256-PLUS",l.SCRAM,350),this.sasl.register("SCRAM-SHA-256",l.SCRAM,300),this.sasl.register("SCRAM-SHA-1-PLUS",l.SCRAM,250),this.sasl.register("SCRAM-SHA-1",l.SCRAM,200),this.sasl.register("DIGEST-MD5",l.DIGEST,100),this.sasl.register("OAUTHBEARER",l.OAUTH,100),this.sasl.register("X-OAUTH2",l.PLAIN,50),this.sasl.register("PLAIN",l.PLAIN,1),this.sasl.register("ANONYMOUS",l.ANONYMOUS,0),this.stanzas=new c.Registry,this.stanzas.define(d.default),this.resolver=new m.default,this.use(u.core),this.sm=new o.default,void 0!==this.config.allowResumption&&(this.sm.allowResume=this.config.allowResumption),this.sm.on("prebound",e=>{this.jid=e,this.emit("session:bound",e)}),this.on("session:bound",e=>this.sm.bind(e)),this.sm.on("send",e=>this.send("sm",e)),this.sm.on("acked",e=>this.emit("stanza:acked",e)),this.sm.on("failed",e=>this.emit("stanza:failed",e)),this.sm.on("hibernated",e=>this.emit("stanza:hibernated",e)),this.sm.on("begin-resend",()=>this.outgoingDataQueue.pause()),this.sm.on("resend",e=>{let{kind:t,stanza:n}=e;return this.send(t,n,!0)}),this.sm.on("end-resend",()=>this.outgoingDataQueue.resume());for(const e of["acked","hibernated","failed"])this.on("stanza:"+e,t=>{"message"===t.kind&&this.emit("message:"+e,t.stanza)});this.transports={bosh:h.default,websocket:p.default},this.incomingDataQueue=(0,r.priorityQueue)(async(e,t)=>{const{kind:n,stanza:i}=e;this.emit(n,i),i.id&&this.emit(n+":id:"+i.id,i),"message"===n||"presence"===n||"iq"===n?(this.emit("stanza",i),await this.sm.handle()):"sm"===n&&("ack"===i.type&&(await this.sm.process(i),this.emit("stream:management:ack",i)),"request"===i.type&&this.sm.ack()),t&&t()},1);const t=(e,t)=>{["message","presence","iq"].includes(e)&&(this.sm.started&&this.sm.resumable?this.sm.resumable&&!this.transport&&this.emit("stanza:hibernated",{kind:e,stanza:t}):this.emit("stanza:failed",{kind:e,stanza:t}))};this.outgoingDataQueue=(0,r.priorityQueue)(async(e,n)=>{var i;const{kind:r,stanza:s,replay:o}=e,a=o||await this.sm.track(r,s);if("message"===r&&(o?this.emit("message:retry",s):this.emit("message:sent",s,!1)),this.transport)try{await this.transport.send(r,s),a&&(null===(i=this.transport)||void 0===i||i.send("sm",{type:"request"}))}catch(e){console.error(e),t(r,s)}else t(r,s);n&&n()},1),this.on("stream:data",(e,t)=>{this.incomingDataQueue.push({kind:t,stanza:e},0)}),this.on("--transport-disconnected",async()=>{const e=[];this.incomingDataQueue.idle()||e.push(this.incomingDataQueue.drain()),this.outgoingDataQueue.idle()||e.push(this.outgoingDataQueue.drain()),await Promise.all(e),await this.sm.hibernate(),this.transport&&delete this.transport,this.emit("--reset-stream-features"),!this.sessionTerminating&&this.config.autoReconnect&&(this.reconnectAttempts+=1,clearTimeout(this.reconnectTimer),this.reconnectTimer=setTimeout(()=>{this.connect()},1e3*Math.min(Math.pow(2,this.reconnectAttempts)+Math.random(),this.config.maxReconnectBackoff||32))),this.emit("disconnected")}),this.on("iq",e=>{const t=e.type,n=e.payloadType,i="iq:"+t+":"+n;if("get"===t||"set"===t){if("invalid-payload-count"===n)return this.sendIQError(e,{error:{condition:"bad-request",type:"modify"}});if("unknown-payload"===n||0===this.listenerCount(i))return this.sendIQError(e,{error:{condition:"service-unavailable",type:"cancel"}});this.emit(i,e)}}),this.on("message",e=>{const t=e.alternateLanguageBodies&&e.alternateLanguageBodies.length||e.links&&e.links.length,n=e.marker&&"markable"!==e.marker.type;t&&!n&&("chat"===e.type||"normal"===e.type?this.emit("chat",e):"groupchat"===e.type&&this.emit("groupchat",e)),"error"===e.type&&this.emit("message:error",e)}),this.on("presence",e=>{let t=e.type||"available";"error"===t&&(t="presence:error"),this.emit(t,e)}),this.on("session:started",()=>{this.sessionStarting=!1,this.reconnectAttempts=0,this.reconnectTimer&&clearTimeout(this.reconnectTimer)})}updateConfig(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var t;const n=this.config||{};this.config={allowResumption:!0,jid:"",transports:{bosh:!0,websocket:!0},useStreamManagement:!0,transportPreferenceOrder:["websocket","bosh"],...n,...e},this.config.server||(this.config.server=a.getDomain(this.config.jid)),this.config.password&&(this.config.credentials=this.config.credentials||{},this.config.credentials.password=this.config.password,delete this.config.password),this.config.transportPreferenceOrder||(this.config.transportPreferenceOrder=Object.keys(null!==(t=this.config.transports)&&void 0!==t?t:{}))}get stream(){return this.transport?this.transport.stream:void 0}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];const r=super.emit(e,...n);return"raw"===e?(super.emit("raw:"+n[0],n[1]),super.emit("raw:*","raw:"+n[0],n[1]),super.emit("*","raw:"+n[0],n[1])):super.emit("*",e,...n),r}use(e){"function"==typeof e&&e(this,this.stanzas,this.config)}nextId(){return(0,f.uuid)()}async getCredentials(){return this._getConfiguredCredentials()}async connect(){var e,t,n;this.sessionTerminating=!1,this.sessionStarting=!0,this.emit("--reset-stream-features"),this.transport&&this.transport.disconnect(!1);const i=null!==(e=this.config.transportPreferenceOrder)&&void 0!==e?e:[];let r;for(const e of i){const i=this.config.transports[e];if(!i||!this.transports[e])continue;let s={acceptLanguages:this.config.acceptLanguages||[null!==(t=this.config.lang)&&void 0!==t?t:"en"],jid:this.config.jid,lang:null!==(n=this.config.lang)&&void 0!==n?n:"en",server:this.config.server};const o=new this.transports[e](this,this.sm,this.stanzas);if("string"==typeof i)s.url=i;else if(1==i)if(o.discoverBindings){const e=await o.discoverBindings(this.config.server);if(!e)continue;s={...s,...e}}else{if(!r)try{r=await this.discoverBindings(this.config.server)}catch(e){console.error(e);continue}if(r[e]=(r[e]||[]).filter(e=>e.startsWith("wss:")||e.startsWith("https:")),!r[e]||!r[e].length)continue;s.url=r[e][0]}return this.transport=o,void this.transport.connect(s)}console.error("No endpoints found for the requested transports."),this.emit("--transport-disconnected")}async disconnect(){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()||await this.outgoingDataQueue.drain(),await this.sm.shutdown()}async send(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return new Promise((i,r)=>{this.outgoingDataQueue.push({kind:e,stanza:t,replay:n},n?0:1,e=>e?r(e):i())})}sendMessage(e){const t=e.id||this.nextId(),n={id:t,originId:t,...e};return this.send("message",n),n.id}sendPresence(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t={id:this.nextId(),...e};return this.send("presence",t),t.id}sendIQ(e){const t={id:this.nextId(),...e},n=a.allowedResponders(this.jid,e.to),i="iq:id:"+t.id,r=new Promise((e,t)=>{const r=s=>{n.has(s.from)&&("result"!==s.type&&"error"!==s.type||(this.off(i,r),"result"===s.type?e(s):t(s)))};this.on(i,r)});this.send("iq",t);const s=this.config.timeout||15;return(0,f.timeoutPromise)(r,1e3*s,()=>({...t,to:void 0,from:void 0,error:{condition:"timeout",text:`Request timed out after ${s} seconds.`},id:t.id,type:"error"}))}sendIQResult(e,t){this.send("iq",{...t,id:e.id,to:e.from,type:"result"})}sendIQError(e,t){this.send("iq",{...t,id:e.id,to:e.from,type:"error"})}sendStreamError(e){this.emit("stream:error",e),this.send("error",e),this.disconnect()}_getConfiguredCredentials(){const e=this.config.credentials||{},t=a.parse(this.config.jid||""),n=e.username||t.local,i=e.host||t.domain;return{host:i,password:this.config.password,realm:i,serviceName:i,serviceType:"xmpp",username:n,...e}}}t.default=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=(0,n(6).__importStar)(n(298));t.default=class{constructor(){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("",[])}getNodeInfo(e){return{extensions:[...this.extensions.get(e)||[]],features:[...this.features.get(e)||[]],identities:[...this.identities.get(e)||[]]}}addFeature(e){let 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)}addIdentity(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.identities.has(t)||this.identities.set(t,[]),this.identities.get(t).push(e)}addItem(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.items.has(t)||this.items.set(t,[]),this.items.get(t).push(e)}addExtension(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.extensions.has(t)||this.extensions.set(t,[]),this.extensions.get(t).push(e)}updateCaps(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.capsAlgorithms;const n={extensions:[...this.extensions.get("")],features:[...this.features.get("")],identities:[...this.identities.get("")],type:"info"};for(const r of t){const t=i.generate(n,r);if(!t){this.caps.delete(r);continue}this.caps.set(r,{algorithm:r,node:e,value:t});const s=`${e}#${t}`;for(const e of n.features)this.addFeature(e,s);for(const e of n.identities)this.addIdentity(e,s);for(const e of n.extensions)this.addExtension(e,s);this.identities.set(s,n.identities),this.features.set(s,new Set(n.features)),this.extensions.set(s,n.extensions)}return[...this.caps.values()]}getCaps(){return[...this.caps.values()]}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.verify=t.generate=void 0;const i=n(12),r=n(17);function s(e){return i.Buffer.from(e.replace(/</g,"&lt;"),"utf-8")}function o(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const t=[];for(const n of e)"FORM_TYPE"!==n.name&&(n.rawValues?t.push({name:s(n.name),values:n.rawValues.map(e=>s(e)).sort(r.octetCompare)}):Array.isArray(n.value)?t.push({name:s(n.name),values:n.value.map(e=>s(e)).sort(r.octetCompare)}):!0===n.value||!1===n.value?t.push({name:s(n.name),values:[s(n.value?"1":"0")]}):t.push({name:s(n.name),values:[s(n.value||"")]}));t.sort((e,t)=>(0,r.octetCompare)(e.name,t.name));const n=[];for(const e of t){n.push(e.name);for(const t of e.values)n.push(t)}return n}function a(e,t){const n=[],a=i.Buffer.from("<","utf8"),c=e=>{n.push(e),n.push(a)},l=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const t=[],n=new Set;for(const{category:i,type:r,lang:o,name:a}of e){const e=`${i}/${r}/${o||""}/${a||""}`;if(n.has(e))return null;n.add(e),t.push(s(e))}return t.sort(r.octetCompare),t}(e.identities),u=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const t=[],n=new Set;for(const i of e){if(n.has(i))return null;n.add(i),t.push(s(i))}return t.sort(r.octetCompare),t}(e.features),d=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const t=[],n=new Set;for(const i of e){let e;for(const t of i.fields||[])if("FORM_TYPE"===t.name&&"hidden"===t.type){if(t.rawValues&&1===t.rawValues.length){e=s(t.rawValues[0]);break}if(t.value&&"string"==typeof t.value){e=s(t.value);break}}if(e){if(n.has(e.toString()))return null;n.add(e.toString()),t.push({type:e,form:i})}}t.sort((e,t)=>(0,r.octetCompare)(e.type,t.type));const i=[];for(const e of t){i.push(e.type);const t=o(e.form.fields);for(const e of t)i.push(e)}return i}(e.extensions);if(!l||!u||!d)return null;for(const e of l)c(e);for(const e of u)c(e);for(const e of d)c(e);return(0,i.createHash)(t).update(i.Buffer.concat(n)).digest("base64")}t.generate=a,t.verify=function(e,t,n){const i=a(e,t);return!!i&&i===n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(8),r=n(12),s=n(3),o=n(17);class a{constructor(e){this.active=!1,this.maxRetries=5,this.stream=e,this.maxTimeout=1100*this.stream.maxWaitTime}async send(e,t){this.rid=e,this.active=!0;let n=0;for(;n<=this.maxRetries;){n+=1;try{const e=await(0,o.timeoutPromise)((0,r.fetch)(this.stream.url,{body:t,headers:{"Content-Type":this.stream.contentType},method:"POST"}),this.maxTimeout,()=>new Error("Request timed out"));if(!e.ok)throw new Error("HTTP Status Error: "+e.status);const n=await e.text();return this.active=!1,n}catch(e){if(1===n)continue;if(n<this.maxRetries){const e=Math.min(this.maxTimeout,1e3*Math.pow(n,2));await(0,o.sleep)(e+1e3*Math.random());continue}throw this.active=!1,e}}throw new Error("Request failed")}}class c extends r.Duplex{constructor(e,t,n){super({objectMode:!0}),this.rid=Math.floor(4294967295*Math.random()),this.sid="",this.maxHoldOpen=2,this.maxWaitTime=30,this.contentType="text/xml; charset=utf-8",this.channels=[new a(this),new a(this)],this.activeChannelID=0,this.queue=[],this.isEnded=!1,this.client=e,this.sm=t,this.stanzas=n,this.on("data",e=>{this.client.emit("stream:data",e.stanza,e.kind)}),this.on("end",()=>{this.isEnded=!0,clearTimeout(this.idleTimeout),this.client.transport===this&&this.client.emit("--transport-disconnected")})}_write(e,t,n){this.queue.push([e,n]),this.scheduleRequests()}_writev(e,t){this.queue.push([e.map(e=>e.chunk).join(""),t]),this.scheduleRequests()}_read(){}process(e){const t=new s.StreamParser({acceptLanguages:this.config.acceptLanguages,allowComments:!1,lang:this.config.lang,registry:this.stanzas,rootKey:"bosh",wrappedStream:!0});t.on("error",e=>{const t={condition:i.StreamErrorCondition.InvalidXML};return this.client.emit("stream:error",t,e),this.send("error",t),this.disconnect()}),t.on("data",e=>{if("stream-start"===e.event)return this.stream=e.stanza,void("terminate"===e.stanza.type?(this.hasStream=!1,this.rid=void 0,this.sid=void 0,this.isEnded||(this.isEnded=!0,this.client.emit("bosh:terminate",e.stanza),this.client.emit("stream:end"),this.push(null))):this.hasStream||(this.hasStream=!0,this.stream=e.stanza,this.sid=e.stanza.sid||this.sid,this.maxWaitTime=e.stanza.maxWaitTime||this.maxWaitTime,this.client.emit("stream:start",e.stanza)));e.event||this.push({kind:e.kind,stanza:e.stanza})}),this.client.emit("raw","incoming",e),t.write(e),this.scheduleRequests()}connect(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"})}restart(){this.hasStream=!1,this._send({to:this.config.server,xmppRestart:!0})}disconnect(){let 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"))}async send(e,t){var n;let i;if(t&&(i=null===(n=this.stanzas.export(e,t))||void 0===n?void 0:n.toString()),i)return new Promise((e,t)=>{this.write(i,"utf8",n=>n?t(n):e())})}get sendingChannel(){return this.channels[this.activeChannelID]}get pollingChannel(){return this.channels[0===this.activeChannelID?1:0]}toggleChannel(){this.activeChannelID=0===this.activeChannelID?1:0}async _send(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(this.isEnded)return;const n=this.rid++,i=this.stanzas.export("bosh",{...e,rid:n,sid:this.sid});let r;r=t?[i.openTag(),t,i.closeTag()].join(""):i.toString(),this.client.emit("raw","outgoing",r),this.sendingChannel.send(n,r).then(e=>{this.process(e)}).catch(e=>{this.end(e)}),this.toggleChannel()}async _poll(){if(this.isEnded)return;const e=this.rid++,t=this.stanzas.export("bosh",{rid:e,sid:this.sid}).toString();this.client.emit("raw","outgoing",t),this.pollingChannel.send(e,t).then(e=>{this.process(e)}).catch(e=>{this.end(e)})}scheduleRequests(){clearTimeout(this.idleTimeout),this.idleTimeout=setTimeout(()=>{this.fireRequests()},10)}fireRequests(){if(!this.isEnded)if(this.queue.length)if(this.sendingChannel.active)this.scheduleRequests();else{const[e,t]=this.queue.shift();this._send({},e),t()}else!this.authenticated||this.channels[0].active||this.channels[1].active||this._poll()}}t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(8),r=n(3),s=n(12);class o extends s.Duplex{constructor(e,t,n){super({objectMode:!0}),this.sm=t,this.stanzas=n,this.closing=!1,this.client=e,this.on("data",e=>{this.client.emit("stream:data",e.stanza,e.kind)}),this.on("error",()=>{this.end()}),this.on("end",()=>{this.client.transport===this&&this.client.emit("--transport-disconnected")})}_read(){}_write(e,t,n){if(!this.socket||1!==this.socket.readyState)return n(new Error("Socket closed"));const i=s.Buffer.from(e,"utf8").toString();this.client.emit("raw","outgoing",i),this.socket.send(i),n()}connect(e){this.config=e,this.hasStream=!1,this.closing=!1,this.parser=new r.StreamParser({acceptLanguages:this.config.acceptLanguages,allowComments:!1,lang:this.config.lang,registry:this.stanzas,wrappedStream:!1}),this.parser.on("data",e=>{const t=e.kind,n=e.stanza;if("stream"===t){if("open"===n.action)return this.hasStream=!0,this.stream=n,this.client.emit("stream:start",n);if("close"===n.action)return this.client.emit("stream:end"),this.disconnect()}this.push({kind:e.kind,stanza:e.stanza})}),this.parser.on("error",e=>{const t={condition:i.StreamErrorCondition.InvalidXML};return this.client.emit("stream:error",t,e),this.write(this.stanzas.export("error",t).toString()),this.disconnect()}),this.socket=new s.WebSocket(e.url,"xmpp"),this.socket.onopen=()=>{this.emit("connect"),this.sm.started=!1,this.client.emit("connected"),this.write(this.startHeader())},this.socket.onmessage=e=>{const t=s.Buffer.from(e.data,"utf8").toString();this.client.emit("raw","incoming",t),this.parser&&this.parser.write(t)},this.socket.onclose=()=>{this.push(null)},this.socket.onerror=e=>{console.error(e),this.push(null)}}disconnect(){let 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)}async send(e,t){var n;let i;if(t&&(i=null===(n=this.stanzas.export(e,t))||void 0===n?void 0:n.toString()),i)return new Promise((e,t)=>{this.write(i,"utf8",n=>n?t(n):e())})}restart(){this.hasStream=!1,this.write(this.startHeader())}startHeader(){return this.stanzas.export("stream",{action:"open",lang:this.config.lang,to:this.config.server,version:"1.0"}).toString()}closeHeader(){return this.stanzas.export("stream",{action:"close"}).toString()}}t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(6),r=n(12),s=n(17),o=n(3),a=(0,i.__importDefault)(n(66));t.default=class{constructor(){this.hostMetaCache=new Map,this.hostMetaTTL=3e4,this.resolver=(0,r.createResolver)(),this.registry=new o.Registry,this.registry.define(a.default)}async getHostMeta(e){const t=this.hostMetaCache.get(e);if(t){if(t.created+this.hostMetaTTL<Date.now())return t.hostmeta;this.hostMetaCache.delete(e)}const n=(0,s.promiseAny)([(0,r.fetch)(`https://${e}/.well-known/host-meta.json`).then(async e=>{if(!e.ok)throw new Error("could-not-fetch-json");return e.json()}),(0,r.fetch)(`https://${e}/.well-known/host-meta`).then(async e=>{if(!e.ok)throw new Error("could-not-fetch-xml");const t=await e.text(),n=(0,o.parse)(t);if(n)return this.registry.import(n);throw new Error("could-not-import-xml")})]);return this.hostMetaCache.set(e,{created:Date.now(),hostmeta:n}),n.catch(()=>{this.hostMetaCache.delete(e)}),n}async resolveTXT(e){var t,n;return null!==(n=null===(t=this.resolver)||void 0===t?void 0:t.resolveTxt(e))&&void 0!==n?n:[]}async resolve(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!this.resolver)return[];let i=[],r=!0;if(n.srvType){const t=await this.resolveWeightedSRV(e,n.srvType,n.srvTypeSecure);r=t.allowFallback,i=t.records.map(e=>({host:e.name,port:e.port,secure:e.secure}))}return r&&i.push({host:e,port:t}),i}async resolveWeightedSRV(e,t,n){const[i,r]=await Promise.all([this.resolveSRV(e,t),n?this.resolveSRV(e,n,!0):Promise.resolve({records:[],allowFallback:!1})]),o=[...i.records,...r.records],a=new Map;let c=0;for(const e of o){e.id=c++,e.runningSum=0,a.has(e.priority)||a.set(e.priority,[]);a.get(e.priority).push(e)}const l=e=>{const t=[];for(;t.length<e.length;){const n=(0,s.shuffle)(e.filter(e=>0===e.weight&&!e.used)),i=(0,s.shuffle)(e.filter(e=>0!==e.weight&&!e.used));let r=0;for(const e of i)r+=e.weight,e.runningSum=r,n.push(e);const o=Math.floor(Math.random()*(r+1));for(const e of n)if(e.runningSum>=o){e.used=!0,t.push(e);break}}return t};let u=[];for(const e of Array.from(a.keys()).sort((e,t)=>e<t?-1:e>t?1:0)){const t=a.get(e);u=u.concat(l(t))}return{records:u,allowFallback:i.allowFallback}}async resolveSRV(e,t,n){var i,r;try{const s=null!==(r=await(null===(i=this.resolver)||void 0===i?void 0:i.resolveSrv(`${t}.${e}`)))&&void 0!==r?r:[];return 1!==s.length||"."!==s[0].name&&""!==s[0].name?{records:s.map(e=>({secure:n,...e})).filter(e=>""!==e.name&&"."!==e.name),allowFallback:!1}:{records:[],allowFallback:!1}}catch(e){return{records:[],allowFallback:!0}}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InputBuffer=t.DisplayBuffer=t.diff=void 0;const i=n(6),r=n(63),s=(0,i.__importDefault)(n(53));function o(e,t){const n=e.length,i=t.length,r=Math.min(n,i);let o=0;for(o=0;o<r&&e[o]===t[o];o++);let a=0;for(a=0;a<r-o&&e[n-a-1]===t[i-a-1];a++);const c=o+a,l=[];if(c<n&&l.push({length:n-c,position:n-a,type:"erase"}),c<i){const e=t.slice(o,o+i-c);l.push({position:o,text:s.default.ucs2.encode(e),type:"insert"})}return l}t.diff=o;t.DisplayBuffer=class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.synced=!1,this.cursorPosition=0,this.ignoreWaits=!1,this.timeDeficit=0,this.sequenceNumber=0,this.onStateChange=e||function(){},this.ignoreWaits=t,this.buffer=[],this.resetActionQueue()}get text(){return s.default.ucs2.encode(this.buffer.slice())}commit(){this.resetActionQueue()}process(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){const t=Date.now();let n=0;for(const i of e.actions)i.baseTime=t+n,"wait"===i.type&&(n+=i.duration),this.actionQueue.push(i,0)}this.sequenceNumber=this.sequenceNumber+1}else this.resetActionQueue()}insert(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.buffer.length;e=e.normalize("NFC");const n=s.default.ucs2.decode(e);this.buffer.splice(t,0,...n),this.cursorPosition=t+n.length,this.emitState()}erase(){let 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()}emitState(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.onStateChange({cursorPosition:this.cursorPosition,synced:this.synced,text:this.text,...e})}resetActionQueue(){this.actionQueue&&this.actionQueue.kill(),this.sequenceNumber=0,this.synced=!0,this.buffer=[],this.timeDeficit=0,this.actionQueue=(0,r.priorityQueue)((e,t)=>{const n=Date.now();if("insert"===e.type)return this.insert(e.text,e.position),t();if("erase"===e.type)return this.erase(e.length,e.position),t();if("wait"!==e.type)return t();{if(this.ignoreWaits)return t();e.duration>700&&(e.duration=700);const i=e.duration-(n-e.baseTime)+this.timeDeficit;if(i<=0)return this.timeDeficit=i,t();this.timeDeficit=0,setTimeout(()=>t(),i)}},1),this.emitState()}};t.InputBuffer=class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.resetInterval=1e4,this.ignoreWaits=!1,this.isStarting=!1,this.isReset=!1,this.changedBetweenResets=!1,this.onStateChange=e||function(){},this.ignoreWaits=t,this.buffer=[],this.actionQueue=[],this.sequenceNumber=0}get text(){return s.default.ucs2.encode(this.buffer.slice())}update(e){let t=[];if(void 0!==e){e=e.normalize("NFC");const n=s.default.ucs2.decode(e);t=o(this.buffer,n.slice()),this.buffer=n,this.emitState()}const n=Date.now();if(this.changedBetweenResets&&n-this.lastResetTime>this.resetInterval)this.actionQueue=[],this.actionQueue.push({position:0,text:this.text,type:"insert"}),this.isReset=!0,this.lastActionTime=n,this.lastResetTime=n,this.changedBetweenResets=!1;else if(t.length){const e=n-(this.lastActionTime||n);e>0&&!this.ignoreWaits&&this.actionQueue.push({duration:e,type:"wait"});for(const e of t)this.actionQueue.push(e);this.lastActionTime=n,this.changedBetweenResets=!0}else this.lastActionTime=n}start(){let 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"}}stop(){return this.commit(),{event:"cancel"}}diff(){if(this.update(),!this.actionQueue.length)return null;const 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}commit(){this.sequenceNumber=0,this.lastActionTime=0,this.actionQueue=[],this.buffer=[]}emitState(){this.onStateChange({text:this.text})}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createPager=t.ResultSetPager=void 0;class i{constructor(e){var t,n,i;this.resultComplete=!1,this.fetchedCount=0,this.yieldedCount=0,this.cursor={first:e.before,last:e.after},this.query=e.query,this.direction=null!==(t=e.direction)&&void 0!==t?t:"forward",this.reverse=null!==(n=e.reverse)&&void 0!==n?n:"backward"===this.direction,this.pageSize=null!==(i=e.pageSize)&&void 0!==i?i:20}async*[Symbol.asyncIterator](){let e=[];do{e=await this.fetchPage();for(const t of e)this.yieldedCount+=1,yield t}while(e.length>0)}async size(){if(void 0!==this.resultCount)return this.resultCount;const{paging:e}=await this.query({max:0});return this.resultCount=e.count,e.count}queryCompleted(){return this.resultComplete}finished(){return this.resultComplete&&this.yieldedCount===this.fetchedCount}async fetchPage(){var e;const{results:t,paging:n}=await 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});return this.cursor=n,this.resultCount=n.count,this.fetchedCount+=t.length,(this.pageSize&&t.length<this.pageSize||this.resultCount&&this.fetchedCount===this.resultCount)&&(this.resultComplete=!0),this.reverse&&t.reverse(),t}}t.ResultSetPager=i,t.createPager=function(e){return new i(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class i extends Error{}t.default=i},function(e,t,n){"use strict";n.r(t),n.d(t,"Emitter",(function(){return s})),n.d(t,"MemoryLeakError",(function(){return i}));var i=class extends Error{constructor(e,t,n){super(`Possible EventEmitter memory leak detected. ${n} ${t.toString()} listeners added. Use emitter.setMaxListeners() to increase limit`),this.emitter=e,this.type=t,this.count=n,this.name="MaxListenersExceededWarning"}},r=class{static listenerCount(e,t){return e.listenerCount(t)}constructor(){this.events=new Map,this.maxListeners=r.defaultMaxListeners,this.hasWarnedAboutPotentialMemoryLeak=!1}_emitInternalEvent(e,t,n){this.emit(e,t,n)}_getListeners(e){return this.events.get(e)||[]}_removeListener(e,t){const n=e.indexOf(t);return n>-1&&e.splice(n,1),[]}_wrapOnceListener(e,t){var n=this;const i=function(){n.removeListener(e,i);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];t.apply(n,s)};return i}setMaxListeners(e){return this.maxListeners=e,this}getMaxListeners(){return this.maxListeners}eventNames(){return Array.from(this.events.keys())}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];const r=this._getListeners(e);return r.forEach(e=>{e.apply(this,n)}),r.length>0}addListener(e,t){this._emitInternalEvent("newListener",e,t);const n=this._getListeners(e).concat(t);if(this.events.set(e,n),this.maxListeners>0&&this.listenerCount(e)>this.maxListeners&&!this.hasWarnedAboutPotentialMemoryLeak){this.hasWarnedAboutPotentialMemoryLeak=!0;const t=new i(this,e,this.listenerCount(e));console.warn(t)}return this}on(e,t){return this.addListener(e,t)}once(e,t){return this.addListener(e,this._wrapOnceListener(e,t))}prependListener(e,t){const n=this._getListeners(e);if(n.length>0){const i=[t].concat(n);this.events.set(e,i)}else this.events.set(e,n.concat(t));return this}prependOnceListener(e,t){return this.prependListener(e,this._wrapOnceListener(e,t))}removeListener(e,t){const n=this._getListeners(e);return n.length>0&&(this._removeListener(n,t),this.events.set(e,n),this._emitInternalEvent("removeListener",e,t)),this}off(e,t){return this.removeListener(e,t)}removeAllListeners(e){return e?this.events.delete(e):this.events.clear(),this}listeners(e){return Array.from(this._getListeners(e))}listenerCount(e){return this._getListeners(e).length}rawListeners(e){return this.listeners(e)}},s=r;s.defaultMaxListeners=10},function(e,t,n){"use strict";n.r(t);var i=n(10),r=n(208),s=n(39),o=n.n(s);const a=function(e){const t=JSON.stringify(e),n=encodeURIComponent(t).match(/%[89ABab]/g);return t.length+(n?n.length:0)},c=function e(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;if(0===n)return null;if(t){if(Array.isArray(t)){const i=[];for(let r=0;r<t.length;r++)i[r]=e(t[r],n-1);return i}if("object"==typeof t){const i=Object.assign({},t);for(const r in t)try{i[r]=e(t[r],n-1)}catch(e){console.debug("WARN: Failed cloning key on object, ignoring",{key:r,object:t})}return i}}return t};var l=n(70),u=n(69),d=n(40);function h(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function p(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function f(e){p(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===Object(d.a)(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function m(e,t){p(2,arguments);var n=f(e),i=h(t);return isNaN(i)?new Date(NaN):i?(n.setDate(n.getDate()+i),n):n}function g(e,t){p(2,arguments);var n=f(e),i=h(t);if(isNaN(i))return new Date(NaN);if(!i)return n;var r=n.getDate(),s=new Date(n.getTime());s.setMonth(n.getMonth()+i+1,0);var o=s.getDate();return r>=o?s:(n.setFullYear(s.getFullYear(),s.getMonth(),r),n)}function y(e,t){p(2,arguments);var n=f(e),i=f(t);return n.getTime()>i.getTime()}var v=function(e,t,n,i){return new(n||(n=Promise))((function(r,s){function o(e){try{c(i.next(e))}catch(e){s(e)}}function a(e){try{c(i.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,a)}c((i=i.apply(e,t||[])).next())}))};const b=[408,429,500,503,504],_=[401],S=new Map;class w{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2?arguments[2]:void 0;this.url=e,this.debugMode=t,this.customHeaders=n,this.sendQueue=[]}postLogsToEndpoint(e){const t=(()=>{let e,t;return{promise:new Promise((n,i)=>{e=n,t=i}),resolve:e,reject:t}})();return this.sendQueue.push({requestParams:e,deferred:t}),this.sendNextQueuedLogToServer(),this.debug("adding requestParams to sendQueue",{requestParams:e,updatedSendQueue:this.sendQueue.map(e=>e.requestParams),hasPendingRequest:!!this.pendingRequest}),t.promise}postLogsToEndpointInstantly(e,t){return v(this,void 0,void 0,(function*(){if(this.debug("sending request instantly",{requestParams:e,sendQueue:this.sendQueue.map(e=>e.requestParams)}),!navigator.onLine)return this.saveRequestForLater(e);try{yield this.sendPostRequest(e)}catch(n){throw(null==t?void 0:t.saveOnFailure)&&this.saveRequestForLater(e),n}}))}saveRequestForLater(e){const t=this.getSavedRequests()||[],n=Object.assign({},e);delete n.accessToken,t.push(n),window.localStorage.setItem("gc_logger_requests",JSON.stringify(t))}getSavedRequests(){const e=window.localStorage.getItem("gc_logger_requests");if(e)try{return JSON.parse(e)}catch(t){console.error("Failed to parse saved messages, ignoring",{savedMessagesStr:e})}}sendEntireQueue(){this.debug("sending all queued requests instantly to clear out sendQueue",{sendQueue:this.sendQueue.map(e=>e.requestParams)});const e=[];let t;for(;t=this.sendQueue.shift();)e.push(this.postLogsToEndpointInstantly(t.requestParams,{saveOnFailure:!0}));return e}resetSendQueue(){this.debug("reseting send queue without sending currently queued data",{queueLength:this.sendQueue.length}),this.sendQueue=[]}sendNextQueuedLogToServer(){return v(this,void 0,void 0,(function*(){if(this.pendingRequest||0===this.sendQueue.length)return void this.debug("sendNextQueuedLogToServer() but not sending request",{hasPendingRequest:!!this.pendingRequest,sendQueueLength:this.sendQueue.length});const e=this.sendQueue.shift();return e.deferred.promise.finally(()=>{this.debug("queue item completed. removing from queue and resetting send queue",{queueItemRequestParams:e.requestParams,updatedSendQueue:this.sendQueue.map(e=>e.requestParams)}),this.pendingRequest=void 0,this.sendNextQueuedLogToServer()}),this.pendingRequest=e,this.debug("sending logs to server",{queueItem:e.requestParams,sendQueue:this.sendQueue.map(e=>e.requestParams)}),Object(u.backOff)(()=>this.backoffFn(e.requestParams),{retry:e=>{var t,n,i,r,s;const o=null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.status,a=null==e?void 0:e.code,c=(null===(i=null===(n=e.response)||void 0===n?void 0:n.headers)||void 0===i?void 0:i["retry-after"])||(null===(s=null===(r=e.response)||void 0===r?void 0:r.getResponseHeader)||void 0===s?void 0:s.call(r,"retry-after"));if(c){const e=function(e,t){if(p(2,arguments),!t||"object"!==Object(d.a)(t))return new Date(NaN);var n=t.years?h(t.years):0,i=t.months?h(t.months):0,r=t.weeks?h(t.weeks):0,s=t.days?h(t.days):0,o=t.hours?h(t.hours):0,a=t.minutes?h(t.minutes):0,c=t.seconds?h(t.seconds):0,l=f(e),u=i||n?g(l,i+12*n):l,y=s||r?m(u,s+7*r):u,v=a+60*o,b=c+60*v,_=1e3*b,S=new Date(y.getTime()+_);return S}(new Date,{seconds:parseInt(c,10)});this.retryAfter&&!y(e,this.retryAfter)||(this.retryAfter=e)}return navigator.onLine&&(o&&b.includes(o)||"ERR_NETWORK"===a)},numOfAttempts:10,startingDelay:0,delayFirstAttempt:!1,maxDelay:15e3}).then(t=>{this.debug("successfully sent logs to server",{requestParams:e.requestParams,response:t}),e.deferred.resolve(t)}).catch(this.handleBackoffError.bind(this,e))}))}handleBackoffError(e,t){var n;const i=null===(n=t.response)||void 0===n?void 0:n.status;i&&b.includes(i)||_.includes(i)||"ERR_NETWORK"===t.code?(this.debug("Failed to sends logs to the server, moving request to the end of the queue",{requestParams:e.requestParams,error:t}),this.saveRequestForLater(e.requestParams)):this.debug("ERROR sending logs to server",{requestParams:e.requestParams,error:t}),e.deferred.reject(Object.assign(Object.assign({},t),{id:"rejectionSpot1"}))}retryAfterTimerCheck(){return v(this,void 0,void 0,(function*(){if(this.retryAfter){if(!y(Date.now(),this.retryAfter)){const e=function(e,t){return p(2,arguments),f(e).getTime()-f(t).getTime()}(this.retryAfter,Date.now());return this.debug('Respecting "retry-after" response header, waiting to send request',{millisecondsToWait:e}),yield new Promise(t=>{setTimeout(()=>{t(null)},e)}),this.retryAfterTimerCheck()}this.retryAfter=void 0}}))}backoffFn(e){return v(this,void 0,void 0,(function*(){yield this.retryAfterTimerCheck();const t=e.accessToken,n=yield this.sendPostRequest(e),i=this.getSavedRequests();return i&&(window.localStorage.removeItem("gc_logger_requests"),i.map(e=>{const n=Object.assign({accessToken:t},e);this.postLogsToEndpoint(n)})),n}))}sendPostRequest(e){this.debug("issuing POST request",{requestParams:e});const t=Object.assign({},e);delete t.accessToken;const n=Object.assign({authorization:"Bearer "+e.accessToken,"content-type":"application/json; charset=UTF-8"},this.customHeaders||{});return Object(l.a)({method:"post",url:this.url,responseType:"text",data:t,headers:n})}debug(e,t){this.debugMode&&console.log("%c [DEBUG:log-uploader] "+e,"color: #32a0a8",c(t))}}var T=function(e,t,n,i){return new(n||(n=Promise))((function(r,s){function o(e){try{c(i.next(e))}catch(e){s(e)}}function a(e){try{c(i.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,a)}c((i=i.apply(e,t||[])).next())}))};class I{constructor(e){if(this.isInitialized=!1,this.logBuffer=[],this.debounceTimer=null,this.logger=e,!e.config.url||!e.config.appVersion){const t="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(t,{providedConfig:e.config},{skipServer:!0}),new Error(t)}this.isInitialized=!0,this.debounceLogUploadTime=e.config.uploadDebounceTime||4e3,this.logUploader=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0;if(n)return new w(e,t,i);let r=S.get(e);return r||(r=new w(e,t,i),S.set(e,r)),r}(e.config.url,e.config.debugMode,e.config.useUniqueLogUploader,e.config.customHeaders),window.addEventListener("unload",this.sendAllLogsInstantly.bind(this)),this.logger.on("onStop",e=>{this.debug("`onStop` received. Clearing logBuffer and sendQueue",{logBuffer:this.logBuffer,sendQueue:this.logUploader.sendQueue}),this.logBuffer=[],this.logUploader.resetSendQueue()})}addLogToSend(e,t,n){if(!this.isInitialized)return;const i=this.convertToLogMessage(t,n);let r=this.convertToTrace(e,i),s=a(r);if(s>14500){const t=this.truncateLog(e,i);if(null===t)return void this.logger.error("truncated message is too large to send to server. not sending message",{originalTrace:r,originalTraceSize:a(r),truncatedTrace:t,truncatedTraceSize:a(t)},{skipServer:!0});s=a(t),r=t}const o=!this.logBuffer.length;let c;c=o?{size:0,traces:[]}:this.logBuffer[this.logBuffer.length-1];if(c.size+s>14500)return this.debug("`exceedsMaxLogSize` was `true`",{logBuffer:this.logBuffer,bufferItem:c,incomingTrace:r,incomingTraceSize:s,maxAllowedTraceSize:14500}),this.logBuffer.push({size:s,traces:[r]}),this.debug("calling sendLogsToServer(true)",{logBuffer:this.logBuffer}),void this.sendLogsToServer(!0);c.size+=s,c.traces.push(r),o&&(this.debug("`this.logBuffer` was empty. pushing new buffer item",{logBuffer:this.logBuffer,bufferItem:c}),this.logBuffer.push(c)),this.debug("calling sendLogsToServer()",{logBuffer:this.logBuffer}),this.sendLogsToServer()}sendAllLogsInstantly(){return this.logUploader.sendEntireQueue().concat(this.logBuffer.map(e=>this.logUploader.postLogsToEndpointInstantly(this.convertToRequestParams(e.traces.reverse()),{saveOnFailure:!0})))}sendLogsToServer(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];var t;return T(this,void 0,void 0,(function*(){if(!this.logBuffer.length)return clearTimeout(this.debounceTimer),this.debounceTimer=null,void this.debug("buffer empty, not sending http request");if(!e)return void(this.debounceTimer?this.debug("sendLogsToServer() 'immediate' is false. 'debounceTimer' is already running"):(this.debug(`sendLogsToServer() 'immediate' is false. setting up 'debounceTimer' to ${this.debounceLogUploadTime}ms`),this.debounceTimer=setTimeout(()=>this.sendLogsToServer(!0),this.debounceLogUploadTime)));clearTimeout(this.debounceTimer),this.debounceTimer=null;const[n]=this.logBuffer.splice(0,1);try{this.debug("calling logUploader.postLogsToEndpoint() with",{bufferItem:n,newLogBuffer:this.logBuffer}),yield this.logUploader.postLogsToEndpoint(this.convertToRequestParams(n.traces.reverse()))}catch(e){this.logger.emit("onError",e),this.logger.error("Error sending logs to server",e,{skipServer:!0});const n=(null==e?void 0:e.status)?parseInt(e.status,10):parseInt(null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.status,10);[401,403,404].includes(n)&&(this.logger.warn(`received a ${n} from logUploader. stopping logging to server`),this.logger.stopServerLogging())}finally{this.sendLogsToServer()}}))}truncateLog(e,t){let n,i;const r=a(this.convertToTrace(e,t)),s=c(t);return s?(s.details="[[TRUNCATED]]",n=this.convertToTrace(e,s),i=a(n),i<=14500?(this.logger.warn("message too large to send to server. truncated log details",{originalLog:t,truncatedLog:s,originalTraceSize:r,truncatedTraceSize:i,maxAllowedTraceSize:14500},{skipServer:!0}),n):(s.message=s.message.substr(0,150)+"... [[TRUNCATED]]",n=this.convertToTrace(e,s),i=a(n),i<=14500?(this.logger.warn("message too large to send to server. truncated log details & log message",{originalLog:t,truncatedLog:s,originalTraceSize:r,truncatedTraceSize:i,maxAllowedTraceSize:14500},{skipServer:!0}),n):null)):null}convertToLogMessage(e,t){const n={clientTime:(new Date).toISOString(),clientId:this.logger.clientId,message:e,details:t},{originAppName:i,originAppVersion:r,originAppId:s}=this.logger.config;return i&&(n.originAppName=i,n.originAppVersion=r,n.originAppId=s),n}convertToTrace(e,t){return{topic:this.logger.config.appName,level:e.toUpperCase(),message:o()(t)}}convertToRequestParams(e){return{accessToken:this.logger.config.accessToken,app:{appId:this.logger.config.appName,appVersion:this.logger.config.appVersion},traces:e}}debug(e,t){this.logger.config.debugMode&&console.log(`%c [DEBUG:${this.logger.config.appName}] ${e}`,"color: #32a852",c(t))}}class A extends i.EventEmitter{constructor(e){super(),this.defaultFormatter=(e,t,n,i,r)=>{if(i.skipDefaultFormatter)return r();t instanceof Error&&(n=n||t,t=t.message);r(e,t=`${this.config.appName?`[${this.config.appName}] `:""}${t}`,n,i)},this.logMessage=(e,t,n,i)=>{if(!i.skipSecondaryLogger)try{const i=[t];void 0!==n&&i.push(this.config.stringify?o()(n):n),this.secondaryLogger[e].apply(this.secondaryLogger,i)}catch(e){console.error("Error logging using custom logger passed into `genesys-cloud-client-logger`",{error:e,secondaryLogger:this.secondaryLogger,message:t,details:n,messageOptions:i})}!i.skipServer&&!this.stopReason&&this.serverLogger&&this.logRank(e)>=this.logRank(this.config.logLevel)&&this.serverLogger.addLogToSend(e,t,n)},Object.defineProperty(this,"clientId",{value:Object(r.a)(),writable:!1}),this.config=Object.assign({},e),this.secondaryLogger=this.config.logger||console,delete this.config.logger,-1===this.logRank(this.config.logLevel)&&(e.logLevel&&this.warn(`Invalid log level: "${e.logLevel}". Default "info" will be used instead.`,null,{skipServer:!0}),this.config.logLevel="info"),!e.appName&&e.logTopic&&(this.warn("`logTopic` has been renamed to `appName`. Please use `appName`",null,{skipServer:!0}),this.config.appName=e.logTopic),!1!==this.config.initializeServerLogging&&(this.serverLogger=new I(this)),this.config.startServerLoggingPaused&&this.stopServerLogging()}get VERSION(){return A.VERSION}setAccessToken(e){this.config.accessToken=e,401==this.stopReason&&this.startServerLogging()}log(e,t,n){this.formatMessage("log",e,t,n)}debug(e,t,n){this.formatMessage("debug",e,t,n)}info(e,t,n){this.formatMessage("info",e,t,n)}warn(e,t,n){this.formatMessage("warn",e,t,n)}error(e,t,n){this.formatMessage("error",e,t,n)}startServerLogging(){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")}stopServerLogging(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"force";"force"===this.stopReason&&"force"!==e||(this.stopReason=e,this.emit("onStop",e))}sendAllLogsInstantly(){var e;return(null===(e=this.serverLogger)||void 0===e?void 0:e.sendAllLogsInstantly())||[]}formatMessage(e,t,n,i){let r=[this.defaultFormatter.bind(this)];this.config.formatters&&(r=[...this.config.formatters,this.defaultFormatter.bind(this)]),this.callNextFormatter(r,e,t,n,i)}callNextFormatter(e,t,n,i){let r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};const[s,...o]=e;if(!s)return this.logMessage(t,n,i,r);s(t,n,i,r,(e,s,a,c)=>{void 0!==e?this.callNextFormatter(o,e,s,a,c):this.callNextFormatter(o,t,n,i,r)})}logRank(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}}}A.VERSION="4.2.13",n.d(t,"Logger",(function(){return A}));t.default=A}]).default;