videomail-client 9.3.2 → 9.3.3

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.
@@ -12,7 +12,7 @@ t.exports=function(e){var t,n=String.prototype.split,r=/()??/.exec("")[1]===e;re
12
12
  * @author Feross Aboukhadijeh <https://feross.org>
13
13
  * @license MIT
14
14
  */
15
- "use strict";var t=e("base64-js"),r=e("ieee754");n.Buffer=a,n.SlowBuffer=function(e){+e!=e&&(e=0);return a.alloc(+e)},n.INSPECT_MAX_BYTES=50;var i=2147483647;function o(e){if(e>i)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return t.__proto__=a.prototype,t}function a(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return c(e)}return s(e,t,n)}function s(e,t,n){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!a.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var n=0|d(e,t),r=o(n),i=r.write(e,t);i!==n&&(r=r.slice(0,i));return r}(e,t);if(ArrayBuffer.isView(e))return l(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(F(e,ArrayBuffer)||e&&F(e.buffer,ArrayBuffer))return function(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');var r;r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n);return r.__proto__=a.prototype,r}(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return a.from(r,t,n);var i=function(e){if(a.isBuffer(e)){var t=0|f(e.length),n=o(t);return 0===n.length||e.copy(n,0,0,t),n}if(void 0!==e.length)return"number"!=typeof e.length||q(e.length)?o(0):l(e);if("Buffer"===e.type&&Array.isArray(e.data))return l(e.data)}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return a.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return u(e),o(e<0?0:0|f(e))}function l(e){for(var t=e.length<0?0:0|f(e.length),n=o(t),r=0;r<t;r+=1)n[r]=255&e[r];return n}function f(e){if(e>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return 0|e}function d(e,t){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||F(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return P(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return B(e).length;default:if(i)return r?-1:P(e).length;t=(""+t).toLowerCase(),i=!0}}function h(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return T(this,t,n);case"utf8":case"utf-8":return S(this,t,n);case"ascii":return O(this,t,n);case"latin1":case"binary":return k(this,t,n);case"base64":return R(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function p(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function m(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),q(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=a.from(t,r)),a.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function y(e,t,n,r,i){var o,a=1,s=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var l=-1;for(o=n;o<s;o++)if(c(e,o)===c(t,-1===l?0:o-l)){if(-1===l&&(l=o),o-l+1===u)return l*a}else-1!==l&&(o-=o-l),l=-1}else for(n+u>s&&(n=s-u),o=n;o>=0;o--){for(var f=!0,d=0;d<u;d++)if(c(e,o+d)!==c(t,d)){f=!1;break}if(f)return o}return-1}function b(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;r>o/2&&(r=o/2);for(var a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(q(s))return a;e[n+a]=s}return a}function g(e,t,n,r){return U(P(t,e.length-n),e,n,r)}function v(e,t,n,r){return U(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function w(e,t,n,r){return v(e,t,n,r)}function E(e,t,n,r){return U(B(t),e,n,r)}function _(e,t,n,r){return U(function(e,t){for(var n,r,i,o=[],a=0;a<e.length&&!((t-=2)<0);++a)r=(n=e.charCodeAt(a))>>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function R(e,n,r){return 0===n&&r===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(n,r))}function S(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o,a,s,u,c=e[i],l=null,f=c>239?4:c>223?3:c>191?2:1;if(i+f<=n)switch(f){case 1:c<128&&(l=c);break;case 2:128==(192&(o=e[i+1]))&&(u=(31&c)<<6|63&o)>127&&(l=u);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(u=(15&c)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(u=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(l=u)}null===l?(l=65533,f=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=f}return function(e){var t=e.length;if(t<=A)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=A));return n}(r)}n.kMaxLength=i,a.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()}catch(e){return!1}}(),a.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}}),"undefined"!=typeof Symbol&&null!=Symbol.species&&a[Symbol.species]===a&&Object.defineProperty(a,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),a.poolSize=8192,a.from=function(e,t,n){return s(e,t,n)},a.prototype.__proto__=Uint8Array.prototype,a.__proto__=Uint8Array,a.alloc=function(e,t,n){return function(e,t,n){return u(e),e<=0?o(e):void 0!==t?"string"==typeof n?o(e).fill(t,n):o(e).fill(t):o(e)}(e,t,n)},a.allocUnsafe=function(e){return c(e)},a.allocUnsafeSlow=function(e){return c(e)},a.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==a.prototype},a.compare=function(e,t){if(F(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),F(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(e)||!a.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},a.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return a.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=a.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var o=e[n];if(F(o,Uint8Array)&&(o=a.from(o)),!a.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,i),i+=o.length}return r},a.byteLength=d,a.prototype._isBuffer=!0,a.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)p(this,t,t+1);return this},a.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)p(this,t,t+3),p(this,t+1,t+2);return this},a.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)p(this,t,t+7),p(this,t+1,t+6),p(this,t+2,t+5),p(this,t+3,t+4);return this},a.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?S(this,0,e):h.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(e){if(!a.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===a.compare(this,e)},a.prototype.inspect=function(){var e="",t=n.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"},a.prototype.compare=function(e,t,n,r,i){if(F(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),s=(n>>>=0)-(t>>>=0),u=Math.min(o,s),c=this.slice(r,i),l=e.slice(t,n),f=0;f<u;++f)if(c[f]!==l[f]){o=c[f],s=l[f];break}return o<s?-1:s<o?1:0},a.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},a.prototype.indexOf=function(e,t,n){return m(this,e,t,n,!0)},a.prototype.lastIndexOf=function(e,t,n){return m(this,e,t,n,!1)},a.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return g(this,e,t,n);case"ascii":return v(this,e,t,n);case"latin1":case"binary":return w(this,e,t,n);case"base64":return E(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var A=4096;function O(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function k(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function T(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o<n;++o)i+=L(e[o]);return i}function x(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function j(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 D(e,t,n,r,i,o){if(!a.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function M(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function C(e,t,n,i,o){return t=+t,n>>>=0,o||M(e,0,n,4),r.write(e,t,n,i,23,4),n+4}function I(e,t,n,i,o){return t=+t,n>>>=0,o||M(e,0,n,8),r.write(e,t,n,i,52,8),n+8}a.prototype.slice=function(e,t){var n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);var r=this.subarray(e,t);return r.__proto__=a.prototype,r},a.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||j(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r},a.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||j(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},a.prototype.readUInt8=function(e,t){return e>>>=0,t||j(e,1,this.length),this[e]},a.prototype.readUInt16LE=function(e,t){return e>>>=0,t||j(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUInt16BE=function(e,t){return e>>>=0,t||j(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUInt32LE=function(e,t){return e>>>=0,t||j(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},a.prototype.readUInt32BE=function(e,t){return e>>>=0,t||j(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||j(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},a.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||j(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},a.prototype.readInt8=function(e,t){return e>>>=0,t||j(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},a.prototype.readInt16LE=function(e,t){e>>>=0,t||j(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},a.prototype.readInt16BE=function(e,t){e>>>=0,t||j(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},a.prototype.readInt32LE=function(e,t){return e>>>=0,t||j(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},a.prototype.readInt32BE=function(e,t){return e>>>=0,t||j(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},a.prototype.readFloatLE=function(e,t){return e>>>=0,t||j(e,4,this.length),r.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return e>>>=0,t||j(e,4,this.length),r.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return e>>>=0,t||j(e,8,this.length),r.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return e>>>=0,t||j(e,8,this.length),r.read(this,e,!1,52,8)},a.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t>>>=0,n>>>=0,r)||D(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},a.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t>>>=0,n>>>=0,r)||D(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},a.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,1,255,0),this[t]=255&e,t+1},a.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},a.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);D(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o<n&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a|0)-s&255;return t+n},a.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);D(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a|0)-s&255;return t+n},a.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},a.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},a.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeFloatLE=function(e,t,n){return C(this,e,t,!0,n)},a.prototype.writeFloatBE=function(e,t,n){return C(this,e,t,!1,n)},a.prototype.writeDoubleLE=function(e,t,n){return I(this,e,t,!0,n)},a.prototype.writeDoubleBE=function(e,t,n){return I(this,e,t,!1,n)},a.prototype.copy=function(e,t,n,r){if(!a.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i=r-n;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,n,r);else if(this===e&&n<t&&t<r)for(var o=i-1;o>=0;--o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,r),t);return i},a.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!a.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){var i=e.charCodeAt(0);("utf8"===r&&i<128||"latin1"===r)&&(e=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 o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{var s=a.isBuffer(e)?e:a.from(e,r),u=s.length;if(0===u)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<n-t;++o)this[o+t]=s[o%u]}return this};var N=/[^+/0-9A-Za-z-_]/g;function L(e){return e<16?"0"+e.toString(16):e.toString(16)}function P(e,t){var n;t=t||1/0;for(var r=e.length,i=null,o=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.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;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function B(e){return t.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(N,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function U(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function F(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function q(e){return e!=e}}).call(this)}).call(this,e("buffer").Buffer)},{"base64-js":15,buffer:18,ieee754:64}],19:[function(e,t,n){"use strict";var r=e("get-intrinsic"),i=e("./"),o=i(r("String.prototype.indexOf"));t.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&o(e,".prototype.")>-1?i(n):n}},{"./":20,"get-intrinsic":51}],20:[function(e,t,n){"use strict";var r=e("function-bind"),i=e("get-intrinsic"),o=e("set-function-length"),a=e("es-errors/type"),s=i("%Function.prototype.apply%"),u=i("%Function.prototype.call%"),c=i("%Reflect.apply%",!0)||r.call(u,s),l=e("es-define-property"),f=i("%Math.max%");t.exports=function(e){if("function"!=typeof e)throw new a("a function is required");var t=c(r,u,arguments);return o(t,1+f(0,e.length-(arguments.length-1)),!0)};var d=function(){return c(r,s,arguments)};l?l(t.exports,"apply",{value:d}):t.exports.apply=d},{"es-define-property":36,"es-errors/type":42,"function-bind":49,"get-intrinsic":51,"set-function-length":100}],21:[function(e,t,n){function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i,o=r(e("typedarray-to-buffer")),a="undefined"!=typeof document&&"function"==typeof document.createElement,s=a?["webp","jpeg"]:["png"],u=function(){function e(e,t,n){if(void 0===t&&(t=s),void 0===n&&(n=.5),this.quality=void 0,this.types=void 0,this.canvas=void 0,t.length>2)throw new Error("Too many image types are specified!");this.canvas=e,this.quality=n,this.types=t}var t=e.prototype;return t.composeMimeType=function(e){var t;return this.types[e]&&(t="image/"+this.types[e]),t},t.isMatch=function(e,t){return e.match(t)},t.getTestCanvas=function(){var e;return a?(e=document.createElement("canvas")).width=e.height=1:e=this.canvas,e},t.canvasSupportsMimeType=function(e){try{var t=this.getTestCanvas(),n=t.toDataURL&&t.toDataURL(e);return this.isMatch(n,e)}catch(e){return!1}},t.figureMimeType=function(){var e=this.composeMimeType(0);return e&&this.canvasSupportsMimeType(e)||(this.types[1]?(e=this.composeMimeType(1))&&!this.canvasSupportsMimeType(e)&&(e=void 0):e=void 0),e},t.uriToBuffer=function(t){var n,r=t.split(",")[1];if(!r)throw new Error("Empty uri string given!");if(!(n=a?window.atob(r):null==e.atob?void 0:e.atob(r)))throw new Error("Byte are empty, something within atob went wrong.");for(var i=new Uint8Array(n.length),s=0,u=n.length;s<u;s++)i[s]=n.charCodeAt(s);return o.default(i)},t.toBuffer=function(){var e,t=this.getMimeType();if(t){var n=this.canvas.toDataURL(t,this.quality);e=this.uriToBuffer(n)}return e},t.getMimeType=function(){return i&&a||(i=this.figureMimeType()),i},e}();u.atob=void 0,t.exports=u},{"typedarray-to-buffer":109}],22:[function(e,t,n){var r=e("indexof");function i(e){return!!e}t.exports=function(e){var t=e.classList;if(t)return t;var n={add:o,remove:a,contains:s,toggle:function(e){return s(e)?(a(e),!1):(o(e),!0)},toString:function(){return e.className},length:0,item:function(e){return u()[e]||null}};return n;function o(e){var t=u();r(t,e)>-1||(t.push(e),c(t))}function a(e){var t=u(),n=r(t,e);-1!==n&&(t.splice(n,1),c(t))}function s(e){return r(u(),e)>-1}function u(){return function(e,t){for(var n=[],r=0;r<e.length;r++)t(e[r])&&n.push(e[r]);return n}(e.className.split(" "),i)}function c(t){var r=t.length;e.className=t.join(" "),n.length=r;for(var i=0;i<t.length;i++)n[i]=t[i];delete t[r]}}},{indexof:65}],23:[function(e,t,n){
15
+ "use strict";var t=e("base64-js"),r=e("ieee754");n.Buffer=a,n.SlowBuffer=function(e){+e!=e&&(e=0);return a.alloc(+e)},n.INSPECT_MAX_BYTES=50;var i=2147483647;function o(e){if(e>i)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return t.__proto__=a.prototype,t}function a(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return c(e)}return s(e,t,n)}function s(e,t,n){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!a.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var n=0|d(e,t),r=o(n),i=r.write(e,t);i!==n&&(r=r.slice(0,i));return r}(e,t);if(ArrayBuffer.isView(e))return l(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(F(e,ArrayBuffer)||e&&F(e.buffer,ArrayBuffer))return function(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');var r;r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n);return r.__proto__=a.prototype,r}(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return a.from(r,t,n);var i=function(e){if(a.isBuffer(e)){var t=0|f(e.length),n=o(t);return 0===n.length||e.copy(n,0,0,t),n}if(void 0!==e.length)return"number"!=typeof e.length||q(e.length)?o(0):l(e);if("Buffer"===e.type&&Array.isArray(e.data))return l(e.data)}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return a.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return u(e),o(e<0?0:0|f(e))}function l(e){for(var t=e.length<0?0:0|f(e.length),n=o(t),r=0;r<t;r+=1)n[r]=255&e[r];return n}function f(e){if(e>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return 0|e}function d(e,t){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||F(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return P(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return B(e).length;default:if(i)return r?-1:P(e).length;t=(""+t).toLowerCase(),i=!0}}function h(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return T(this,t,n);case"utf8":case"utf-8":return S(this,t,n);case"ascii":return k(this,t,n);case"latin1":case"binary":return O(this,t,n);case"base64":return R(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function p(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function m(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),q(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=a.from(t,r)),a.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function y(e,t,n,r,i){var o,a=1,s=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var l=-1;for(o=n;o<s;o++)if(c(e,o)===c(t,-1===l?0:o-l)){if(-1===l&&(l=o),o-l+1===u)return l*a}else-1!==l&&(o-=o-l),l=-1}else for(n+u>s&&(n=s-u),o=n;o>=0;o--){for(var f=!0,d=0;d<u;d++)if(c(e,o+d)!==c(t,d)){f=!1;break}if(f)return o}return-1}function b(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;r>o/2&&(r=o/2);for(var a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(q(s))return a;e[n+a]=s}return a}function g(e,t,n,r){return U(P(t,e.length-n),e,n,r)}function v(e,t,n,r){return U(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function w(e,t,n,r){return v(e,t,n,r)}function E(e,t,n,r){return U(B(t),e,n,r)}function _(e,t,n,r){return U(function(e,t){for(var n,r,i,o=[],a=0;a<e.length&&!((t-=2)<0);++a)r=(n=e.charCodeAt(a))>>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function R(e,n,r){return 0===n&&r===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(n,r))}function S(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o,a,s,u,c=e[i],l=null,f=c>239?4:c>223?3:c>191?2:1;if(i+f<=n)switch(f){case 1:c<128&&(l=c);break;case 2:128==(192&(o=e[i+1]))&&(u=(31&c)<<6|63&o)>127&&(l=u);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(u=(15&c)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(u=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(l=u)}null===l?(l=65533,f=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=f}return function(e){var t=e.length;if(t<=A)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=A));return n}(r)}n.kMaxLength=i,a.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()}catch(e){return!1}}(),a.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}}),"undefined"!=typeof Symbol&&null!=Symbol.species&&a[Symbol.species]===a&&Object.defineProperty(a,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),a.poolSize=8192,a.from=function(e,t,n){return s(e,t,n)},a.prototype.__proto__=Uint8Array.prototype,a.__proto__=Uint8Array,a.alloc=function(e,t,n){return function(e,t,n){return u(e),e<=0?o(e):void 0!==t?"string"==typeof n?o(e).fill(t,n):o(e).fill(t):o(e)}(e,t,n)},a.allocUnsafe=function(e){return c(e)},a.allocUnsafeSlow=function(e){return c(e)},a.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==a.prototype},a.compare=function(e,t){if(F(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),F(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(e)||!a.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},a.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return a.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=a.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var o=e[n];if(F(o,Uint8Array)&&(o=a.from(o)),!a.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,i),i+=o.length}return r},a.byteLength=d,a.prototype._isBuffer=!0,a.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)p(this,t,t+1);return this},a.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)p(this,t,t+3),p(this,t+1,t+2);return this},a.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)p(this,t,t+7),p(this,t+1,t+6),p(this,t+2,t+5),p(this,t+3,t+4);return this},a.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?S(this,0,e):h.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(e){if(!a.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===a.compare(this,e)},a.prototype.inspect=function(){var e="",t=n.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"},a.prototype.compare=function(e,t,n,r,i){if(F(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),s=(n>>>=0)-(t>>>=0),u=Math.min(o,s),c=this.slice(r,i),l=e.slice(t,n),f=0;f<u;++f)if(c[f]!==l[f]){o=c[f],s=l[f];break}return o<s?-1:s<o?1:0},a.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},a.prototype.indexOf=function(e,t,n){return m(this,e,t,n,!0)},a.prototype.lastIndexOf=function(e,t,n){return m(this,e,t,n,!1)},a.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return g(this,e,t,n);case"ascii":return v(this,e,t,n);case"latin1":case"binary":return w(this,e,t,n);case"base64":return E(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var A=4096;function k(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function O(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function T(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o<n;++o)i+=L(e[o]);return i}function x(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function j(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 D(e,t,n,r,i,o){if(!a.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function M(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function C(e,t,n,i,o){return t=+t,n>>>=0,o||M(e,0,n,4),r.write(e,t,n,i,23,4),n+4}function N(e,t,n,i,o){return t=+t,n>>>=0,o||M(e,0,n,8),r.write(e,t,n,i,52,8),n+8}a.prototype.slice=function(e,t){var n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);var r=this.subarray(e,t);return r.__proto__=a.prototype,r},a.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||j(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r},a.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||j(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},a.prototype.readUInt8=function(e,t){return e>>>=0,t||j(e,1,this.length),this[e]},a.prototype.readUInt16LE=function(e,t){return e>>>=0,t||j(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUInt16BE=function(e,t){return e>>>=0,t||j(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUInt32LE=function(e,t){return e>>>=0,t||j(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},a.prototype.readUInt32BE=function(e,t){return e>>>=0,t||j(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||j(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},a.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||j(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},a.prototype.readInt8=function(e,t){return e>>>=0,t||j(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},a.prototype.readInt16LE=function(e,t){e>>>=0,t||j(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},a.prototype.readInt16BE=function(e,t){e>>>=0,t||j(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},a.prototype.readInt32LE=function(e,t){return e>>>=0,t||j(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},a.prototype.readInt32BE=function(e,t){return e>>>=0,t||j(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},a.prototype.readFloatLE=function(e,t){return e>>>=0,t||j(e,4,this.length),r.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return e>>>=0,t||j(e,4,this.length),r.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return e>>>=0,t||j(e,8,this.length),r.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return e>>>=0,t||j(e,8,this.length),r.read(this,e,!1,52,8)},a.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t>>>=0,n>>>=0,r)||D(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},a.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t>>>=0,n>>>=0,r)||D(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},a.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,1,255,0),this[t]=255&e,t+1},a.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},a.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);D(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o<n&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a|0)-s&255;return t+n},a.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);D(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a|0)-s&255;return t+n},a.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},a.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},a.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeFloatLE=function(e,t,n){return C(this,e,t,!0,n)},a.prototype.writeFloatBE=function(e,t,n){return C(this,e,t,!1,n)},a.prototype.writeDoubleLE=function(e,t,n){return N(this,e,t,!0,n)},a.prototype.writeDoubleBE=function(e,t,n){return N(this,e,t,!1,n)},a.prototype.copy=function(e,t,n,r){if(!a.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i=r-n;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,n,r);else if(this===e&&n<t&&t<r)for(var o=i-1;o>=0;--o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,r),t);return i},a.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!a.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){var i=e.charCodeAt(0);("utf8"===r&&i<128||"latin1"===r)&&(e=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 o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{var s=a.isBuffer(e)?e:a.from(e,r),u=s.length;if(0===u)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<n-t;++o)this[o+t]=s[o%u]}return this};var I=/[^+/0-9A-Za-z-_]/g;function L(e){return e<16?"0"+e.toString(16):e.toString(16)}function P(e,t){var n;t=t||1/0;for(var r=e.length,i=null,o=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.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;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function B(e){return t.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(I,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function U(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function F(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function q(e){return e!=e}}).call(this)}).call(this,e("buffer").Buffer)},{"base64-js":15,buffer:18,ieee754:64}],19:[function(e,t,n){"use strict";var r=e("get-intrinsic"),i=e("./"),o=i(r("String.prototype.indexOf"));t.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&o(e,".prototype.")>-1?i(n):n}},{"./":20,"get-intrinsic":51}],20:[function(e,t,n){"use strict";var r=e("function-bind"),i=e("get-intrinsic"),o=e("set-function-length"),a=e("es-errors/type"),s=i("%Function.prototype.apply%"),u=i("%Function.prototype.call%"),c=i("%Reflect.apply%",!0)||r.call(u,s),l=e("es-define-property"),f=i("%Math.max%");t.exports=function(e){if("function"!=typeof e)throw new a("a function is required");var t=c(r,u,arguments);return o(t,1+f(0,e.length-(arguments.length-1)),!0)};var d=function(){return c(r,s,arguments)};l?l(t.exports,"apply",{value:d}):t.exports.apply=d},{"es-define-property":36,"es-errors/type":42,"function-bind":49,"get-intrinsic":51,"set-function-length":100}],21:[function(e,t,n){function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i,o=r(e("typedarray-to-buffer")),a="undefined"!=typeof document&&"function"==typeof document.createElement,s=a?["webp","jpeg"]:["png"],u=function(){function e(e,t,n){if(void 0===t&&(t=s),void 0===n&&(n=.5),this.quality=void 0,this.types=void 0,this.canvas=void 0,t.length>2)throw new Error("Too many image types are specified!");this.canvas=e,this.quality=n,this.types=t}var t=e.prototype;return t.composeMimeType=function(e){var t;return this.types[e]&&(t="image/"+this.types[e]),t},t.isMatch=function(e,t){return e.match(t)},t.getTestCanvas=function(){var e;return a?(e=document.createElement("canvas")).width=e.height=1:e=this.canvas,e},t.canvasSupportsMimeType=function(e){try{var t=this.getTestCanvas(),n=t.toDataURL&&t.toDataURL(e);return this.isMatch(n,e)}catch(e){return!1}},t.figureMimeType=function(){var e=this.composeMimeType(0);return e&&this.canvasSupportsMimeType(e)||(this.types[1]?(e=this.composeMimeType(1))&&!this.canvasSupportsMimeType(e)&&(e=void 0):e=void 0),e},t.uriToBuffer=function(t){var n,r=t.split(",")[1];if(!r)throw new Error("Empty uri string given!");if(!(n=a?window.atob(r):null==e.atob?void 0:e.atob(r)))throw new Error("Byte are empty, something within atob went wrong.");for(var i=new Uint8Array(n.length),s=0,u=n.length;s<u;s++)i[s]=n.charCodeAt(s);return o.default(i)},t.toBuffer=function(){var e,t=this.getMimeType();if(t){var n=this.canvas.toDataURL(t,this.quality);e=this.uriToBuffer(n)}return e},t.getMimeType=function(){return i&&a||(i=this.figureMimeType()),i},e}();u.atob=void 0,t.exports=u},{"typedarray-to-buffer":109}],22:[function(e,t,n){var r=e("indexof");function i(e){return!!e}t.exports=function(e){var t=e.classList;if(t)return t;var n={add:o,remove:a,contains:s,toggle:function(e){return s(e)?(a(e),!1):(o(e),!0)},toString:function(){return e.className},length:0,item:function(e){return u()[e]||null}};return n;function o(e){var t=u();r(t,e)>-1||(t.push(e),c(t))}function a(e){var t=u(),n=r(t,e);-1!==n&&(t.splice(n,1),c(t))}function s(e){return r(u(),e)>-1}function u(){return function(e,t){for(var n=[],r=0;r<e.length;r++)t(e[r])&&n.push(e[r]);return n}(e.className.split(" "),i)}function c(t){var r=t.length;e.className=t.join(" "),n.length=r;for(var i=0;i<t.length;i++)n[i]=t[i];delete t[r]}}},{indexof:65}],23:[function(e,t,n){
16
16
  /*! @source http://purl.eligrey.com/github/classList.js/blob/master/classList.js */
17
17
  "document"in self&&(!("classList"in document.createElement("_"))||document.createElementNS&&!("classList"in document.createElementNS("http://www.w3.org/2000/svg","g"))?function(e){"use strict";if("Element"in e){var t="classList",n="prototype",r=e.Element[n],i=Object,o=String[n].trim||function(){return this.replace(/^\s+|\s+$/g,"")},a=Array[n].indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(t in this&&this[t]===e)return t;return-1},s=function(e,t){this.name=e,this.code=DOMException[e],this.message=t},u=function(e,t){if(""===t)throw new s("SYNTAX_ERR","An invalid or illegal string was specified");if(/\s/.test(t))throw new s("INVALID_CHARACTER_ERR","String contains an invalid character");return a.call(e,t)},c=function(e){for(var t=o.call(e.getAttribute("class")||""),n=t?t.split(/\s+/):[],r=0,i=n.length;r<i;r++)this.push(n[r]);this._updateClassName=function(){e.setAttribute("class",this.toString())}},l=c[n]=[],f=function(){return new c(this)};if(s[n]=Error[n],l.item=function(e){return this[e]||null},l.contains=function(e){return-1!==u(this,e+="")},l.add=function(){var e,t=arguments,n=0,r=t.length,i=!1;do{-1===u(this,e=t[n]+"")&&(this.push(e),i=!0)}while(++n<r);i&&this._updateClassName()},l.remove=function(){var e,t,n=arguments,r=0,i=n.length,o=!1;do{for(t=u(this,e=n[r]+"");-1!==t;)this.splice(t,1),o=!0,t=u(this,e)}while(++r<i);o&&this._updateClassName()},l.toggle=function(e,t){e+="";var n=this.contains(e),r=n?!0!==t&&"remove":!1!==t&&"add";return r&&this[r](e),!0===t||!1===t?t:!n},l.toString=function(){return this.join(" ")},i.defineProperty){var d={get:f,enumerable:!0,configurable:!0};try{i.defineProperty(r,t,d)}catch(e){-2146823252===e.number&&(d.enumerable=!1,i.defineProperty(r,t,d))}}else i[n].__defineGetter__&&r.__defineGetter__(t,f)}}(self):function(){"use strict";var e=document.createElement("_");if(e.classList.add("c1","c2"),!e.classList.contains("c2")){var t=function(e){var t=DOMTokenList.prototype[e];DOMTokenList.prototype[e]=function(e){var n,r=arguments.length;for(n=0;n<r;n++)e=arguments[n],t.call(this,e)}};t("add"),t("remove")}if(e.classList.toggle("c3",!1),e.classList.contains("c3")){var n=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,t){return 1 in arguments&&!this.contains(e)==!t?t:n.call(this,e)}}e=null}())},{}],24:[function(e,t,n){function r(e){if(e)return function(e){for(var t in r.prototype)e[t]=r.prototype[t];return e}(e)}void 0!==t&&(t.exports=r),r.prototype.on=r.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},r.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var i=0;i<r.length;i++)if((n=r[i])===t||n.fn===t){r.splice(i,1);break}return 0===r.length&&delete this._callbacks["$"+e],this},r.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){r=0;for(var i=(n=n.slice(0)).length;r<i;++r)n[r].apply(this,t)}return this},r.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},r.prototype.hasListeners=function(e){return!!this.listeners(e).length}},{}],25:[function(e,t,n){t.exports=function(e,t){if(e.contains)return e.contains(t);var n=e.compareDocumentPosition(t);return 0===n||16&n}},{}],26:[function(e,t,n){function r(e){return Object.prototype.toString.call(e)}n.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===r(e)},n.isBoolean=function(e){return"boolean"==typeof e},n.isNull=function(e){return null===e},n.isNullOrUndefined=function(e){return null==e},n.isNumber=function(e){return"number"==typeof e},n.isString=function(e){return"string"==typeof e},n.isSymbol=function(e){return"symbol"==typeof e},n.isUndefined=function(e){return void 0===e},n.isRegExp=function(e){return"[object RegExp]"===r(e)},n.isObject=function(e){return"object"==typeof e&&null!==e},n.isDate=function(e){return"[object Date]"===r(e)},n.isError=function(e){return"[object Error]"===r(e)||e instanceof Error},n.isFunction=function(e){return"function"==typeof e},n.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},n.isBuffer=e("buffer").Buffer.isBuffer},{buffer:18}],27:[function(e,t,n){!function(){"use strict";!function(e){if("object"==typeof n)t.exports=e();else{var r=this,i=r.createError,o=r.createError=e();o.noConflict=function(){return r.createError=i,o}}}((function(){var e=Object.prototype.toString;return function(){for(var e=new Array(arguments.length),r=0;r<e.length;++r)e[r]=arguments[r];var i=function(e){return 0===e.length?"":t(e[0])?e[1]||"":e[0]}(e),o=function(e){return 0===e.length?Error:t(e[0])?e[0]:Error}(e),a=function(e){return 0===e.length?null:t(e[0])?e[2]:e[1]}(e);function s(e,t){n(this,a),n(this,t),this.message=e||this.message,e instanceof Error?(this.message=e.message,this.stack=e.stack):Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}function u(){this.constructor=s}return u.prototype=o.prototype,s.prototype=new u,s.prototype.name=""+i||"CustomError",s};function t(e){return"function"==typeof e}function n(t,n){if((s=n)&&"object"==typeof s&&"[object Object]"===e.call(s))for(var i=function(e){var t=[];for(var n in e)t.push(n);return t}(n),o=0,a=i.length;o<a;++o)t[i[o]]=r(n[i[o]]);var s}function r(e){if(null==e||"object"!=typeof e)return e;var t=e.constructor?e.constructor():Object.create(null);for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}}))}()},{}],28:[function(e,t,n){"use strict";var r=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===i}(e)}(e)};var i="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function o(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function a(e,t,n){return e.concat(t).map((function(e){return o(e,n)}))}function s(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function u(e,t){try{return t in e}catch(e){return!1}}function c(e,t,n){var r={};return n.isMergeableObject(e)&&s(e).forEach((function(t){r[t]=o(e[t],n)})),s(t).forEach((function(i){(function(e,t){return u(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(u(e,i)&&n.isMergeableObject(t[i])?r[i]=function(e,t){if(!t.customMerge)return l;var n=t.customMerge(e);return"function"==typeof n?n:l}(i,n)(e[i],t[i],n):r[i]=o(t[i],n))})),r}function l(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||a,n.isMergeableObject=n.isMergeableObject||r,n.cloneUnlessOtherwiseSpecified=o;var i=Array.isArray(t);return i===Array.isArray(e)?i?n.arrayMerge(e,t,n):c(e,t,n):o(t,n)}l.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return l(e,n,t)}),{})};var f=l;t.exports=f},{}],29:[function(e,t,n){"use strict";var r=e("es-define-property"),i=e("es-errors/syntax"),o=e("es-errors/type"),a=e("gopd");t.exports=function(e,t,n){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new o("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new o("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new o("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new o("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new o("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new o("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,u=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,l=arguments.length>6&&arguments[6],f=!!a&&a(e,t);if(r)r(e,t,{configurable:null===c&&f?f.configurable:!c,enumerable:null===s&&f?f.enumerable:!s,value:n,writable:null===u&&f?f.writable:!u});else{if(!l&&(s||u||c))throw new i("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=n}}},{"es-define-property":36,"es-errors/syntax":41,"es-errors/type":42,gopd:55}],30:[function(e,t,n){"use strict";t.exports=function(){for(var e=0;e<arguments.length;e++)if(void 0!==arguments[e])return arguments[e]}},{}],31:[function(e,t,n){var r,i=e("inherits"),o=e("global"),a=e("events");t.exports=(i(r=function(){if(o._singletonDespotInstance)return o._singletonDespotInstance;o._singletonDespotInstance=this,a.call(this)},a),new r)},{events:44,global:54,inherits:66}],32:[function(e,t,n){"use strict";var r=e("global/document"),i=e("geval"),o=e("./keys");function a(){}t.exports=function(){var e=o(r);return e?{visible:t,onChange:i((function(n){r.addEventListener(e.event,(function(){n(t())}))}))}:function(){return{visible:function(){return!0},onChange:a}}();function t(){return!r[e.hidden]}}},{"./keys":33,geval:53,"global/document":34}],33:[function(e,t,n){"use strict";t.exports=function(e){var t=function(e){if(null!=e.hidden)return"";if(null!=e.mozHidden)return"moz";if(null!=e.msHidden)return"ms";if(null!=e.webkitHidden)return"webkit"}(e);if(null==t)return;return{hidden:(n=t+"Hidden",n.substring(0,1).toLowerCase()+n.substring(1)),event:t+"visibilitychange"};var n}},{}],34:[function(e,t,n){(function(n){(function(){var r,i=void 0!==n?n:"undefined"!=typeof window?window:{},o=e("min-document");"undefined"!=typeof document?r=document:(r=i["__GLOBAL_DOCUMENT_CACHE@4"])||(r=i["__GLOBAL_DOCUMENT_CACHE@4"]=o),t.exports=r}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"min-document":16}],35:[function(e,t,n){(function(n){(function(){var r=e("once"),i=function(){},o=function(e,t,a){if("function"==typeof t)return o(e,null,t);t||(t={}),a=r(a||i);var s=e._writableState,u=e._readableState,c=t.readable||!1!==t.readable&&e.readable,l=t.writable||!1!==t.writable&&e.writable,f=!1,d=function(){e.writable||h()},h=function(){l=!1,c||a.call(e)},p=function(){c=!1,l||a.call(e)},m=function(t){a.call(e,t?new Error("exited with error code: "+t):null)},y=function(t){a.call(e,t)},b=function(){n.nextTick(g)},g=function(){if(!f)return(!c||u&&u.ended&&!u.destroyed)&&(!l||s&&s.ended&&!s.destroyed)?void 0:a.call(e,new Error("premature close"))},v=function(){e.req.on("finish",h)};return!function(e){return e.setHeader&&"function"==typeof e.abort}(e)?l&&!s&&(e.on("end",d),e.on("close",d)):(e.on("complete",h),e.on("abort",b),e.req?v():e.on("request",v)),function(e){return e.stdio&&Array.isArray(e.stdio)&&3===e.stdio.length}(e)&&e.on("exit",m),e.on("end",p),e.on("finish",h),!1!==t.error&&e.on("error",y),e.on("close",b),function(){f=!0,e.removeListener("complete",h),e.removeListener("abort",b),e.removeListener("request",v),e.req&&e.req.removeListener("finish",h),e.removeListener("end",d),e.removeListener("close",d),e.removeListener("finish",h),e.removeListener("exit",m),e.removeListener("end",p),e.removeListener("error",y),e.removeListener("close",b)}};t.exports=o}).call(this)}).call(this,e("_process"))},{_process:79,once:76}],36:[function(e,t,n){"use strict";var r=e("get-intrinsic")("%Object.defineProperty%",!0)||!1;if(r)try{r({},"a",{value:1})}catch(e){r=!1}t.exports=r},{"get-intrinsic":51}],37:[function(e,t,n){"use strict";t.exports=EvalError},{}],38:[function(e,t,n){"use strict";t.exports=Error},{}],39:[function(e,t,n){"use strict";t.exports=RangeError},{}],40:[function(e,t,n){"use strict";t.exports=ReferenceError},{}],41:[function(e,t,n){"use strict";t.exports=SyntaxError},{}],42:[function(e,t,n){"use strict";t.exports=TypeError},{}],43:[function(e,t,n){"use strict";t.exports=URIError},{}],44:[function(e,t,n){"use strict";var r,i="object"==typeof Reflect?Reflect:null,o=i&&"function"==typeof i.apply?i.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};r=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!=e};function s(){s.init.call(this)}t.exports=s,t.exports.once=function(e,t){return new Promise((function(n,r){function i(n){e.removeListener(t,o),r(n)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",i),n([].slice.call(arguments))}b(e,t,o,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&b(e,"error",t,n)}(e,i,{once:!0})}))},s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var u=10;function c(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function l(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function f(e,t,n,r){var i,o,a,s;if(c(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),a=o[t]),void 0===a)a=o[t]=n,++e._eventsCount;else if("function"==typeof a?a=o[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(i=l(e))>0&&a.length>i&&!a.warned){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,s=u,console&&console.warn&&console.warn(s)}return e}function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function h(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=d.bind(r);return i.listener=n,r.wrapFn=i,i}function p(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):y(i,i.length)}function m(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function y(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function b(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function i(o){r.once&&e.removeEventListener(t,i),n(o)}))}}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return u},set:function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");u=e}}),s.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},s.prototype.getMaxListeners=function(){return l(this)},s.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,i=this._events;if(void 0!==i)r=r&&void 0===i.error;else if(!r)return!1;if(r){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=i[e];if(void 0===u)return!1;if("function"==typeof u)o(u,this,t);else{var c=u.length,l=y(u,c);for(n=0;n<c;++n)o(l[n],this,t)}return!0},s.prototype.addListener=function(e,t){return f(this,e,t,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(e,t){return f(this,e,t,!0)},s.prototype.once=function(e,t){return c(t),this.on(e,h(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){return c(t),this.prependListener(e,h(this,e,t)),this},s.prototype.removeListener=function(e,t){var n,r,i,o,a;if(c(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},s.prototype.listeners=function(e){return p(this,e,!0)},s.prototype.rawListeners=function(e){return p(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):m.call(e,t)},s.prototype.listenerCount=m,s.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},{}],45:[function(e,t,n){t.exports=u,u.default=u,u.stable=d,u.stableStringify=d;var r="[...]",i="[Circular]",o=[],a=[];function s(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function u(e,t,n,r){var i;void 0===r&&(r=s()),l(e,"",0,[],void 0,0,r);try{i=0===a.length?JSON.stringify(e,t,n):JSON.stringify(e,p(t),n)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==o.length;){var u=o.pop();4===u.length?Object.defineProperty(u[0],u[1],u[3]):u[0][u[1]]=u[2]}}return i}function c(e,t,n,r){var i=Object.getOwnPropertyDescriptor(r,n);void 0!==i.get?i.configurable?(Object.defineProperty(r,n,{value:e}),o.push([r,n,t,i])):a.push([t,n,e]):(r[n]=e,o.push([r,n,t]))}function l(e,t,n,o,a,s,u){var f;if(s+=1,"object"==typeof e&&null!==e){for(f=0;f<o.length;f++)if(o[f]===e)return void c(i,e,t,a);if(void 0!==u.depthLimit&&s>u.depthLimit)return void c(r,e,t,a);if(void 0!==u.edgesLimit&&n+1>u.edgesLimit)return void c(r,e,t,a);if(o.push(e),Array.isArray(e))for(f=0;f<e.length;f++)l(e[f],f,f,o,e,s,u);else{var d=Object.keys(e);for(f=0;f<d.length;f++){var h=d[f];l(e[h],h,f,o,e,s,u)}}o.pop()}}function f(e,t){return e<t?-1:e>t?1:0}function d(e,t,n,r){void 0===r&&(r=s());var i,u=h(e,"",0,[],void 0,0,r)||e;try{i=0===a.length?JSON.stringify(u,t,n):JSON.stringify(u,p(t),n)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==o.length;){var c=o.pop();4===c.length?Object.defineProperty(c[0],c[1],c[3]):c[0][c[1]]=c[2]}}return i}function h(e,t,n,a,s,u,l){var d;if(u+=1,"object"==typeof e&&null!==e){for(d=0;d<a.length;d++)if(a[d]===e)return void c(i,e,t,s);try{if("function"==typeof e.toJSON)return}catch(e){return}if(void 0!==l.depthLimit&&u>l.depthLimit)return void c(r,e,t,s);if(void 0!==l.edgesLimit&&n+1>l.edgesLimit)return void c(r,e,t,s);if(a.push(e),Array.isArray(e))for(d=0;d<e.length;d++)h(e[d],d,d,a,e,u,l);else{var p={},m=Object.keys(e).sort(f);for(d=0;d<m.length;d++){var y=m[d];h(e[y],y,d,a,e,u,l),p[y]=e[y]}if(void 0===s)return p;o.push([s,t,e]),s[t]=p}a.pop()}}function p(e){return e=void 0!==e?e:function(e,t){return t},function(t,n){if(a.length>0)for(var r=0;r<a.length;r++){var i=a[r];if(i[1]===t&&i[0]===n){n=i[2],a.splice(r,1);break}}return e.call(this,t,n)}}},{}],46:[function(e,t,n){
18
18
  /**
@@ -22,13 +22,13 @@ t.exports=function(e){var t,n=String.prototype.split,r=/()??/.exec("")[1]===e;re
22
22
  * @license BSD-3-Clause
23
23
  * @version 10.1.6
24
24
  */
25
- "use strict";const r="array",i="bit",o="bits",a="byte",s="bytes",u="",c="exponent",l="function",f="iec",d="Invalid number",h="Invalid rounding method",p="jedec",m="object",y=".",b="round",g="s",v="si",w="kbit",E="kB",_=" ",R="string",S="0",A={symbol:{iec:{bits:["bit","Kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],bytes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},jedec:{bits:["bit","Kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],bytes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}},fullform:{iec:["","kibi","mebi","gibi","tebi","pebi","exbi","zebi","yobi"],jedec:["","kilo","mega","giga","tera","peta","exa","zetta","yotta"]}};function O(e,{bits:t=!1,pad:n=!1,base:O=-1,round:k=2,locale:T=u,localeOptions:x={},separator:j=u,spacer:D=_,symbols:M={},standard:C=u,output:I=R,fullform:N=!1,fullforms:L=[],exponent:P=-1,roundingMethod:B=b,precision:U=0}={}){let F=P,q=Number(e),W=[],H=0,V=u;C===v?(O=10,C=p):C===f||C===p?O=2:2===O?C=f:(O=10,C=p);const z=10===O?1e3:1024,G=!0===N,$=q<0,Y=Math[B];if("bigint"!=typeof e&&isNaN(e))throw new TypeError(d);if(typeof Y!==l)throw new TypeError(h);if($&&(q=-q),(-1===F||isNaN(F))&&(F=Math.floor(Math.log(q)/Math.log(z)),F<0&&(F=0)),F>8&&(U>0&&(U+=8-F),F=8),I===c)return F;if(0===q)W[0]=0,V=W[1]=A.symbol[C][t?o:s][F];else{H=q/(2===O?Math.pow(2,10*F):Math.pow(1e3,F)),t&&(H*=8,H>=z&&F<8&&(H/=z,F++));const e=Math.pow(10,F>0?k:0);W[0]=Y(H*e)/e,W[0]===z&&F<8&&-1===P&&(W[0]=1,F++),V=W[1]=10===O&&1===F?t?w:E:A.symbol[C][t?o:s][F]}if($&&(W[0]=-W[0]),U>0&&(W[0]=W[0].toPrecision(U)),W[1]=M[W[1]]||W[1],!0===T?W[0]=W[0].toLocaleString():T.length>0?W[0]=W[0].toLocaleString(T,x):j.length>0&&(W[0]=W[0].toString().replace(y,j)),n&&k>0){const e=W[0].toString(),t=j||(e.match(/(\D)/g)||[]).pop()||y,n=e.toString().split(t),r=n[1]||u,i=r.length,o=k-i;W[0]=`${n[0]}${t}${r.padEnd(i+o,S)}`}return G&&(W[1]=L[F]?L[F]:A.fullform[C][F]+(t?i:a)+(1===W[0]?u:g)),I===r?W:I===m?{value:W[0],symbol:W[1],exponent:F,unit:V}:W.join(D)}n.filesize=O,n.partial=function({bits:e=!1,pad:t=!1,base:n=-1,round:r=2,locale:i=u,localeOptions:o={},separator:a=u,spacer:s=_,symbols:c={},standard:l=u,output:f=R,fullform:d=!1,fullforms:h=[],exponent:p=-1,roundingMethod:m=b,precision:y=0}={}){return u=>O(u,{bits:e,pad:t,base:n,round:r,locale:i,localeOptions:o,separator:a,spacer:s,symbols:c,standard:l,output:f,fullform:d,fullforms:h,exponent:p,roundingMethod:m,precision:y})}},{}],47:[function(e,t,n){t.exports=function(e){var t=Array.prototype.slice.call(arguments,1);return t.length&&(e=e.replace(/(%?)(%([jds]))/g,(function(e,n,r,i){var o=t.shift();switch(i){case"s":o=""+o;break;case"d":o=Number(o);break;case"j":o=JSON.stringify(o)}return n?(t.unshift(o),e):o}))),t.length&&(e+=" "+t.join(" ")),""+(e=e.replace(/%{2,2}/g,"%"))}},{}],48:[function(e,t,n){"use strict";var r=Object.prototype.toString,i=Math.max,o=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var i=0;i<t.length;i+=1)n[i+e.length]=t[i];return n};t.exports=function(e){var t=this;if("function"!=typeof t||"[object Function]"!==r.apply(t))throw new TypeError("Function.prototype.bind called on incompatible "+t);for(var n,a=function(e,t){for(var n=[],r=t||0,i=0;r<e.length;r+=1,i+=1)n[i]=e[r];return n}(arguments,1),s=i(0,t.length-a.length),u=[],c=0;c<s;c++)u[c]="$"+c;if(n=Function("binder","return function ("+function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n}(u,",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof n){var r=t.apply(this,o(a,arguments));return Object(r)===r?r:this}return t.apply(e,o(a,arguments))})),t.prototype){var l=function(){};l.prototype=t.prototype,n.prototype=new l,l.prototype=null}return n}},{}],49:[function(e,t,n){"use strict";var r=e("./implementation");t.exports=Function.prototype.bind||r},{"./implementation":48}],50:[function(e,t,n){"use strict";function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.__esModule=!0,n.default=l,n.getFieldData=f;var i={"[object HTMLCollection]":!0,"[object NodeList]":!0,"[object RadioNodeList]":!0},o={button:!0,fieldset:!0,reset:!0,submit:!0},a={checkbox:!0,radio:!0},s=/^\s+|\s+$/g,u=Array.prototype.slice,c=Object.prototype.toString;function l(e,t){if(!e)throw new Error("A form is required by getFormData, was given form="+e);t=r({includeDisabled:!1,trim:!1},t);for(var n,i={},a=[],s={},u=0,c=e.elements.length;u<c;u++){var l=e.elements[u];o[l.type]||l.disabled&&!t.includeDisabled||(n=l.name||l.id)&&!s[n]&&(a.push(n),s[n]=!0)}for(var d=0,h=a.length;d<h;d++){var p=f(e,n=a[d],t);null!=p&&(i[n]=p)}return i}function f(e,t,n){if(!e)throw new Error("A form is required by getFieldData, was given form="+e);if(!t&&"[object String]"!==c.call(t))throw new Error("A field name is required by getFieldData, was given fieldName="+t);n=r({includeDisabled:!1,trim:!1},n);var o=e.elements[t];if(!o||o.disabled&&!n.includeDisabled)return null;if(!i[c.call(o)])return d(o,n.trim);for(var a=[],s=!0,u=0,l=o.length;u<l;u++)if(!o[u].disabled||n.includeDisabled){s&&"radio"!==o[u].type&&(s=!1);var f=d(o[u],n.trim);null!=f&&(a=a.concat(f))}return s&&1===a.length?a[0]:a.length>0?a:null}function d(e,t){var n=null,r=e.type;if("select-one"===r)return e.options.length&&(n=e.options[e.selectedIndex].value),n;if("select-multiple"===r){n=[];for(var i=0,o=e.options.length;i<o;i++)e.options[i].selected&&n.push(e.options[i].value);return 0===n.length&&(n=null),n}return"file"===r&&"files"in e?(e.multiple?0===(n=u.call(e.files)).length&&(n=null):n=e.files[0],n):(a[r]?e.checked&&(n="checkbox"===r&&!e.hasAttribute("value")||e.value):n=t?e.value.replace(s,""):e.value,n)}l.getFieldData=f},{}],51:[function(e,t,n){"use strict";var r,i=e("es-errors"),o=e("es-errors/eval"),a=e("es-errors/range"),s=e("es-errors/ref"),u=e("es-errors/syntax"),c=e("es-errors/type"),l=e("es-errors/uri"),f=Function,d=function(e){try{return f('"use strict"; return ('+e+").constructor;")()}catch(e){}},h=Object.getOwnPropertyDescriptor;if(h)try{h({},"")}catch(e){h=null}var p=function(){throw new c},m=h?function(){try{return p}catch(e){try{return h(arguments,"callee").get}catch(e){return p}}}():p,y=e("has-symbols")(),b=e("has-proto")(),g=Object.getPrototypeOf||(b?function(e){return e.__proto__}:null),v={},w="undefined"!=typeof Uint8Array&&g?g(Uint8Array):r,E={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":y&&g?g([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":v,"%AsyncGenerator%":v,"%AsyncGeneratorFunction%":v,"%AsyncIteratorPrototype%":v,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":o,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":f,"%GeneratorFunction%":v,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":y&&g?g(g([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&y&&g?g((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":a,"%ReferenceError%":s,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&y&&g?g((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":y&&g?g(""[Symbol.iterator]()):r,"%Symbol%":y?Symbol:r,"%SyntaxError%":u,"%ThrowTypeError%":m,"%TypedArray%":w,"%TypeError%":c,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":l,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet};if(g)try{null.error}catch(e){var _=g(g(e));E["%Error.prototype%"]=_}var R=function e(t){var n;if("%AsyncFunction%"===t)n=d("async function () {}");else if("%GeneratorFunction%"===t)n=d("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=d("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&g&&(n=g(i.prototype))}return E[t]=n,n},S={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},A=e("function-bind"),O=e("hasown"),k=A.call(Function.call,Array.prototype.concat),T=A.call(Function.apply,Array.prototype.splice),x=A.call(Function.call,String.prototype.replace),j=A.call(Function.call,String.prototype.slice),D=A.call(Function.call,RegExp.prototype.exec),M=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,C=/\\(\\)?/g,I=function(e,t){var n,r=e;if(O(S,r)&&(r="%"+(n=S[r])[0]+"%"),O(E,r)){var i=E[r];if(i===v&&(i=R(r)),void 0===i&&!t)throw new c("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:i}}throw new u("intrinsic "+e+" does not exist!")};t.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new c('"allowMissing" argument must be a boolean');if(null===D(/^%?[^%]*%?$/,e))throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=j(e,0,1),n=j(e,-1);if("%"===t&&"%"!==n)throw new u("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new u("invalid intrinsic syntax, expected opening `%`");var r=[];return x(e,M,(function(e,t,n,i){r[r.length]=n?x(i,C,"$1"):t||e})),r}(e),r=n.length>0?n[0]:"",i=I("%"+r+"%",t),o=i.name,a=i.value,s=!1,l=i.alias;l&&(r=l[0],T(n,k([0,1],l)));for(var f=1,d=!0;f<n.length;f+=1){var p=n[f],m=j(p,0,1),y=j(p,-1);if(('"'===m||"'"===m||"`"===m||'"'===y||"'"===y||"`"===y)&&m!==y)throw new u("property names with quotes must have matching quotes");if("constructor"!==p&&d||(s=!0),O(E,o="%"+(r+="."+p)+"%"))a=E[o];else if(null!=a){if(!(p in a)){if(!t)throw new c("base intrinsic for "+e+" exists, but the property is not available.");return}if(h&&f+1>=n.length){var b=h(a,p);a=(d=!!b)&&"get"in b&&!("originalValue"in b.get)?b.get:a[p]}else d=O(a,p),a=a[p];d&&!s&&(E[o]=a)}}return a}},{"es-errors":38,"es-errors/eval":37,"es-errors/range":39,"es-errors/ref":40,"es-errors/syntax":41,"es-errors/type":42,"es-errors/uri":43,"function-bind":49,"has-proto":57,"has-symbols":58,hasown:60}],52:[function(e,t,n){t.exports=function(){var e=[];return{broadcast:function(t){for(var n=0;n<e.length;n++)e[n](t)},listen:function(t){return e.push(t),n;function n(){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}}}}},{}],53:[function(e,t,n){var r=e("./event.js");t.exports=function(e){var t=r();return e(t.broadcast),t.listen}},{"./event.js":52}],54:[function(e,t,n){(function(e){(function(){var n;n="undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},t.exports=n}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],55:[function(e,t,n){"use strict";var r=e("get-intrinsic")("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch(e){r=null}t.exports=r},{"get-intrinsic":51}],56:[function(e,t,n){"use strict";var r=e("es-define-property"),i=function(){return!!r};i.hasArrayLengthDefineBug=function(){if(!r)return null;try{return 1!==r([],"length",{value:1}).length}catch(e){return!0}},t.exports=i},{"es-define-property":36}],57:[function(e,t,n){"use strict";var r={__proto__:null,foo:{}},i=Object;t.exports=function(){return{__proto__:r}.foo===r.foo&&!(r instanceof i)}},{}],58:[function(e,t,n){"use strict";var r="undefined"!=typeof Symbol&&Symbol,i=e("./shams");t.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&i())))}},{"./shams":59}],59:[function(e,t,n){"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},{}],60:[function(e,t,n){"use strict";var r=Function.prototype.call,i=Object.prototype.hasOwnProperty,o=e("function-bind");t.exports=o.call(r,i)},{"function-bind":49}],61:[function(e,t,n){t.exports=function(e,t){if(void 0===t)return"none"===e.style.display;e.style.display=t?"none":""}},{}],62:[function(e,t,n){!function(){var e=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])d(t,r)&&(e[r]=t[r]);return e},n=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},r=o((function(e){return 1===e?"χρόνος":"χρόνια"}),(function(e){return 1===e?"μήνας":"μήνες"}),(function(e){return 1===e?"εβδομάδα":"εβδομάδες"}),(function(e){return 1===e?"μέρα":"μέρες"}),(function(e){return 1===e?"ώρα":"ώρες"}),(function(e){return 1===e?"λεπτό":"λεπτά"}),(function(e){return 1===e?"δευτερόλεπτο":"δευτερόλεπτα"}),(function(e){return(1===e?"χιλιοστό":"χιλιοστά")+" του δευτερολέπτου"}),","),i={af:o("jaar",(function(e){return"maand"+(1===e?"":"e")}),(function(e){return 1===e?"week":"weke"}),(function(e){return 1===e?"dag":"dae"}),(function(e){return 1===e?"uur":"ure"}),(function(e){return 1===e?"minuut":"minute"}),(function(e){return"sekonde"+(1===e?"":"s")}),(function(e){return"millisekonde"+(1===e?"":"s")}),","),am:o("ዓመት","ወር","ሳምንት","ቀን","ሰዓት","ደቂቃ","ሰከንድ","ሚሊሰከንድ"),ar:e(o((function(e){return["سنة","سنتان","سنوات"][a(e)]}),(function(e){return["شهر","شهران","أشهر"][a(e)]}),(function(e){return["أسبوع","أسبوعين","أسابيع"][a(e)]}),(function(e){return["يوم","يومين","أيام"][a(e)]}),(function(e){return["ساعة","ساعتين","ساعات"][a(e)]}),(function(e){return["دقيقة","دقيقتان","دقائق"][a(e)]}),(function(e){return["ثانية","ثانيتان","ثواني"][a(e)]}),(function(e){return["جزء من الثانية","جزآن من الثانية","أجزاء من الثانية"][a(e)]}),","),{delimiter:" ﻭ ",_hideCountIf2:!0,_digitReplacements:["۰","١","٢","٣","٤","٥","٦","٧","٨","٩"]}),bg:o((function(e){return["години","година","години"][u(e)]}),(function(e){return["месеца","месец","месеца"][u(e)]}),(function(e){return["седмици","седмица","седмици"][u(e)]}),(function(e){return["дни","ден","дни"][u(e)]}),(function(e){return["часа","час","часа"][u(e)]}),(function(e){return["минути","минута","минути"][u(e)]}),(function(e){return["секунди","секунда","секунди"][u(e)]}),(function(e){return["милисекунди","милисекунда","милисекунди"][u(e)]}),","),bn:o("বছর","মাস","সপ্তাহ","দিন","ঘন্টা","মিনিট","সেকেন্ড","মিলিসেকেন্ড"),ca:o((function(e){return"any"+(1===e?"":"s")}),(function(e){return"mes"+(1===e?"":"os")}),(function(e){return"setman"+(1===e?"a":"es")}),(function(e){return"di"+(1===e?"a":"es")}),(function(e){return"hor"+(1===e?"a":"es")}),(function(e){return"minut"+(1===e?"":"s")}),(function(e){return"segon"+(1===e?"":"s")}),(function(e){return"milisegon"+(1===e?"":"s")}),","),ckb:o("ساڵ","مانگ","هەفتە","ڕۆژ","کاژێر","خولەک","چرکە","میلی چرکە","."),cs:o((function(e){return["rok","roku","roky","let"][c(e)]}),(function(e){return["měsíc","měsíce","měsíce","měsíců"][c(e)]}),(function(e){return["týden","týdne","týdny","týdnů"][c(e)]}),(function(e){return["den","dne","dny","dní"][c(e)]}),(function(e){return["hodina","hodiny","hodiny","hodin"][c(e)]}),(function(e){return["minuta","minuty","minuty","minut"][c(e)]}),(function(e){return["sekunda","sekundy","sekundy","sekund"][c(e)]}),(function(e){return["milisekunda","milisekundy","milisekundy","milisekund"][c(e)]}),","),cy:o("flwyddyn","mis","wythnos","diwrnod","awr","munud","eiliad","milieiliad"),da:o("år",(function(e){return"måned"+(1===e?"":"er")}),(function(e){return"uge"+(1===e?"":"r")}),(function(e){return"dag"+(1===e?"":"e")}),(function(e){return"time"+(1===e?"":"r")}),(function(e){return"minut"+(1===e?"":"ter")}),(function(e){return"sekund"+(1===e?"":"er")}),(function(e){return"millisekund"+(1===e?"":"er")}),","),de:o((function(e){return"Jahr"+(1===e?"":"e")}),(function(e){return"Monat"+(1===e?"":"e")}),(function(e){return"Woche"+(1===e?"":"n")}),(function(e){return"Tag"+(1===e?"":"e")}),(function(e){return"Stunde"+(1===e?"":"n")}),(function(e){return"Minute"+(1===e?"":"n")}),(function(e){return"Sekunde"+(1===e?"":"n")}),(function(e){return"Millisekunde"+(1===e?"":"n")}),","),el:r,en:o((function(e){return"year"+(1===e?"":"s")}),(function(e){return"month"+(1===e?"":"s")}),(function(e){return"week"+(1===e?"":"s")}),(function(e){return"day"+(1===e?"":"s")}),(function(e){return"hour"+(1===e?"":"s")}),(function(e){return"minute"+(1===e?"":"s")}),(function(e){return"second"+(1===e?"":"s")}),(function(e){return"millisecond"+(1===e?"":"s")})),eo:o((function(e){return"jaro"+(1===e?"":"j")}),(function(e){return"monato"+(1===e?"":"j")}),(function(e){return"semajno"+(1===e?"":"j")}),(function(e){return"tago"+(1===e?"":"j")}),(function(e){return"horo"+(1===e?"":"j")}),(function(e){return"minuto"+(1===e?"":"j")}),(function(e){return"sekundo"+(1===e?"":"j")}),(function(e){return"milisekundo"+(1===e?"":"j")}),","),es:o((function(e){return"año"+(1===e?"":"s")}),(function(e){return"mes"+(1===e?"":"es")}),(function(e){return"semana"+(1===e?"":"s")}),(function(e){return"día"+(1===e?"":"s")}),(function(e){return"hora"+(1===e?"":"s")}),(function(e){return"minuto"+(1===e?"":"s")}),(function(e){return"segundo"+(1===e?"":"s")}),(function(e){return"milisegundo"+(1===e?"":"s")}),","),et:o((function(e){return"aasta"+(1===e?"":"t")}),(function(e){return"kuu"+(1===e?"":"d")}),(function(e){return"nädal"+(1===e?"":"at")}),(function(e){return"päev"+(1===e?"":"a")}),(function(e){return"tund"+(1===e?"":"i")}),(function(e){return"minut"+(1===e?"":"it")}),(function(e){return"sekund"+(1===e?"":"it")}),(function(e){return"millisekund"+(1===e?"":"it")}),","),eu:o("urte","hilabete","aste","egun","ordu","minutu","segundo","milisegundo",","),fa:o("سال","ماه","هفته","روز","ساعت","دقیقه","ثانیه","میلی ثانیه"),fi:o((function(e){return 1===e?"vuosi":"vuotta"}),(function(e){return 1===e?"kuukausi":"kuukautta"}),(function(e){return"viikko"+(1===e?"":"a")}),(function(e){return"päivä"+(1===e?"":"ä")}),(function(e){return"tunti"+(1===e?"":"a")}),(function(e){return"minuutti"+(1===e?"":"a")}),(function(e){return"sekunti"+(1===e?"":"a")}),(function(e){return"millisekunti"+(1===e?"":"a")}),","),fo:o("ár",(function(e){return 1===e?"mánaður":"mánaðir"}),(function(e){return 1===e?"vika":"vikur"}),(function(e){return 1===e?"dagur":"dagar"}),(function(e){return 1===e?"tími":"tímar"}),(function(e){return 1===e?"minuttur":"minuttir"}),"sekund","millisekund",","),fr:o((function(e){return"an"+(e>=2?"s":"")}),"mois",(function(e){return"semaine"+(e>=2?"s":"")}),(function(e){return"jour"+(e>=2?"s":"")}),(function(e){return"heure"+(e>=2?"s":"")}),(function(e){return"minute"+(e>=2?"s":"")}),(function(e){return"seconde"+(e>=2?"s":"")}),(function(e){return"milliseconde"+(e>=2?"s":"")}),","),gr:r,he:o((function(e){return 1===e?"שנה":"שנים"}),(function(e){return 1===e?"חודש":"חודשים"}),(function(e){return 1===e?"שבוע":"שבועות"}),(function(e){return 1===e?"יום":"ימים"}),(function(e){return 1===e?"שעה":"שעות"}),(function(e){return 1===e?"דקה":"דקות"}),(function(e){return 1===e?"שניה":"שניות"}),(function(e){return 1===e?"מילישנייה":"מילישניות"})),hr:o((function(e){return e%10==2||e%10==3||e%10==4?"godine":"godina"}),(function(e){return 1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci"}),(function(e){return e%10==1&&11!==e?"tjedan":"tjedna"}),(function(e){return 1===e?"dan":"dana"}),(function(e){return 1===e?"sat":2===e||3===e||4===e?"sata":"sati"}),(function(e){var t=e%10;return 2!==t&&3!==t&&4!==t||!(e<10||e>14)?"minuta":"minute"}),(function(e){var t=e%10;return 5===t||Math.floor(e)===e&&e>=10&&e<=19?"sekundi":1===t?"sekunda":2===t||3===t||4===t?"sekunde":"sekundi"}),(function(e){return 1===e?"milisekunda":e%10==2||e%10==3||e%10==4?"milisekunde":"milisekundi"}),","),hi:o("साल",(function(e){return 1===e?"महीना":"महीने"}),(function(e){return 1===e?"हफ़्ता":"हफ्ते"}),"दिन",(function(e){return 1===e?"घंटा":"घंटे"}),"मिनट","सेकंड","मिलीसेकंड"),hu:o("év","hónap","hét","nap","óra","perc","másodperc","ezredmásodperc",","),id:o("tahun","bulan","minggu","hari","jam","menit","detik","milidetik"),is:o("ár",(function(e){return"mánuð"+(1===e?"ur":"ir")}),(function(e){return"vik"+(1===e?"a":"ur")}),(function(e){return"dag"+(1===e?"ur":"ar")}),(function(e){return"klukkutím"+(1===e?"i":"ar")}),(function(e){return"mínút"+(1===e?"a":"ur")}),(function(e){return"sekúnd"+(1===e?"a":"ur")}),(function(e){return"millisekúnd"+(1===e?"a":"ur")})),it:o((function(e){return"ann"+(1===e?"o":"i")}),(function(e){return"mes"+(1===e?"e":"i")}),(function(e){return"settiman"+(1===e?"a":"e")}),(function(e){return"giorn"+(1===e?"o":"i")}),(function(e){return"or"+(1===e?"a":"e")}),(function(e){return"minut"+(1===e?"o":"i")}),(function(e){return"second"+(1===e?"o":"i")}),(function(e){return"millisecond"+(1===e?"o":"i")}),","),ja:o("年","ヶ月","週","日","時間","分","秒","ミリ秒"),km:o("ឆ្នាំ","ខែ","សប្តាហ៍","ថ្ងៃ","ម៉ោង","នាទី","វិនាទី","មិល្លីវិនាទី"),kn:o((function(e){return 1===e?"ವರ್ಷ":"ವರ್ಷಗಳು"}),(function(e){return 1===e?"ತಿಂಗಳು":"ತಿಂಗಳುಗಳು"}),(function(e){return 1===e?"ವಾರ":"ವಾರಗಳು"}),(function(e){return 1===e?"ದಿನ":"ದಿನಗಳು"}),(function(e){return 1===e?"ಗಂಟೆ":"ಗಂಟೆಗಳು"}),(function(e){return 1===e?"ನಿಮಿಷ":"ನಿಮಿಷಗಳು"}),(function(e){return 1===e?"ಸೆಕೆಂಡ್":"ಸೆಕೆಂಡುಗಳು"}),(function(e){return 1===e?"ಮಿಲಿಸೆಕೆಂಡ್":"ಮಿಲಿಸೆಕೆಂಡುಗಳು"})),ko:o("년","개월","주일","일","시간","분","초","밀리 초"),ku:o("sal","meh","hefte","roj","seet","deqe","saniye","mîlîçirk",","),lo:o("ປີ","ເດືອນ","ອາທິດ","ມື້","ຊົ່ວໂມງ","ນາທີ","ວິນາທີ","ມິນລິວິນາທີ",","),lt:o((function(e){return e%10==0||e%100>=10&&e%100<=20?"metų":"metai"}),(function(e){return["mėnuo","mėnesiai","mėnesių"][l(e)]}),(function(e){return["savaitė","savaitės","savaičių"][l(e)]}),(function(e){return["diena","dienos","dienų"][l(e)]}),(function(e){return["valanda","valandos","valandų"][l(e)]}),(function(e){return["minutė","minutės","minučių"][l(e)]}),(function(e){return["sekundė","sekundės","sekundžių"][l(e)]}),(function(e){return["milisekundė","milisekundės","milisekundžių"][l(e)]}),","),lv:o((function(e){return f(e)?"gads":"gadi"}),(function(e){return f(e)?"mēnesis":"mēneši"}),(function(e){return f(e)?"nedēļa":"nedēļas"}),(function(e){return f(e)?"diena":"dienas"}),(function(e){return f(e)?"stunda":"stundas"}),(function(e){return f(e)?"minūte":"minūtes"}),(function(e){return f(e)?"sekunde":"sekundes"}),(function(e){return f(e)?"milisekunde":"milisekundes"}),","),mk:o((function(e){return 1===e?"година":"години"}),(function(e){return 1===e?"месец":"месеци"}),(function(e){return 1===e?"недела":"недели"}),(function(e){return 1===e?"ден":"дена"}),(function(e){return 1===e?"час":"часа"}),(function(e){return 1===e?"минута":"минути"}),(function(e){return 1===e?"секунда":"секунди"}),(function(e){return 1===e?"милисекунда":"милисекунди"}),","),mn:o("жил","сар","долоо хоног","өдөр","цаг","минут","секунд","миллисекунд"),mr:o((function(e){return 1===e?"वर्ष":"वर्षे"}),(function(e){return 1===e?"महिना":"महिने"}),(function(e){return 1===e?"आठवडा":"आठवडे"}),"दिवस","तास",(function(e){return 1===e?"मिनिट":"मिनिटे"}),"सेकंद","मिलिसेकंद"),ms:o("tahun","bulan","minggu","hari","jam","minit","saat","milisaat"),nl:o("jaar",(function(e){return 1===e?"maand":"maanden"}),(function(e){return 1===e?"week":"weken"}),(function(e){return 1===e?"dag":"dagen"}),"uur",(function(e){return 1===e?"minuut":"minuten"}),(function(e){return 1===e?"seconde":"seconden"}),(function(e){return 1===e?"milliseconde":"milliseconden"}),","),no:o("år",(function(e){return"måned"+(1===e?"":"er")}),(function(e){return"uke"+(1===e?"":"r")}),(function(e){return"dag"+(1===e?"":"er")}),(function(e){return"time"+(1===e?"":"r")}),(function(e){return"minutt"+(1===e?"":"er")}),(function(e){return"sekund"+(1===e?"":"er")}),(function(e){return"millisekund"+(1===e?"":"er")}),","),pl:o((function(e){return["rok","roku","lata","lat"][s(e)]}),(function(e){return["miesiąc","miesiąca","miesiące","miesięcy"][s(e)]}),(function(e){return["tydzień","tygodnia","tygodnie","tygodni"][s(e)]}),(function(e){return["dzień","dnia","dni","dni"][s(e)]}),(function(e){return["godzina","godziny","godziny","godzin"][s(e)]}),(function(e){return["minuta","minuty","minuty","minut"][s(e)]}),(function(e){return["sekunda","sekundy","sekundy","sekund"][s(e)]}),(function(e){return["milisekunda","milisekundy","milisekundy","milisekund"][s(e)]}),","),pt:o((function(e){return"ano"+(1===e?"":"s")}),(function(e){return 1===e?"mês":"meses"}),(function(e){return"semana"+(1===e?"":"s")}),(function(e){return"dia"+(1===e?"":"s")}),(function(e){return"hora"+(1===e?"":"s")}),(function(e){return"minuto"+(1===e?"":"s")}),(function(e){return"segundo"+(1===e?"":"s")}),(function(e){return"milissegundo"+(1===e?"":"s")}),","),ro:o((function(e){return 1===e?"an":"ani"}),(function(e){return 1===e?"lună":"luni"}),(function(e){return 1===e?"săptămână":"săptămâni"}),(function(e){return 1===e?"zi":"zile"}),(function(e){return 1===e?"oră":"ore"}),(function(e){return 1===e?"minut":"minute"}),(function(e){return 1===e?"secundă":"secunde"}),(function(e){return 1===e?"milisecundă":"milisecunde"}),","),ru:o((function(e){return["лет","год","года"][u(e)]}),(function(e){return["месяцев","месяц","месяца"][u(e)]}),(function(e){return["недель","неделя","недели"][u(e)]}),(function(e){return["дней","день","дня"][u(e)]}),(function(e){return["часов","час","часа"][u(e)]}),(function(e){return["минут","минута","минуты"][u(e)]}),(function(e){return["секунд","секунда","секунды"][u(e)]}),(function(e){return["миллисекунд","миллисекунда","миллисекунды"][u(e)]}),","),sq:o((function(e){return 1===e?"vit":"vjet"}),"muaj","javë","ditë","orë",(function(e){return"minut"+(1===e?"ë":"a")}),(function(e){return"sekond"+(1===e?"ë":"a")}),(function(e){return"milisekond"+(1===e?"ë":"a")}),","),sr:o((function(e){return["години","година","године"][u(e)]}),(function(e){return["месеци","месец","месеца"][u(e)]}),(function(e){return["недељи","недеља","недеље"][u(e)]}),(function(e){return["дани","дан","дана"][u(e)]}),(function(e){return["сати","сат","сата"][u(e)]}),(function(e){return["минута","минут","минута"][u(e)]}),(function(e){return["секунди","секунда","секунде"][u(e)]}),(function(e){return["милисекунди","милисекунда","милисекунде"][u(e)]}),","),ta:o((function(e){return 1===e?"வருடம்":"ஆண்டுகள்"}),(function(e){return 1===e?"மாதம்":"மாதங்கள்"}),(function(e){return 1===e?"வாரம்":"வாரங்கள்"}),(function(e){return 1===e?"நாள்":"நாட்கள்"}),(function(e){return 1===e?"மணி":"மணிநேரம்"}),(function(e){return"நிமிட"+(1===e?"ம்":"ங்கள்")}),(function(e){return"வினாடி"+(1===e?"":"கள்")}),(function(e){return"மில்லி விநாடி"+(1===e?"":"கள்")})),te:o((function(e){return"సంవత్స"+(1===e?"రం":"రాల")}),(function(e){return"నెల"+(1===e?"":"ల")}),(function(e){return 1===e?"వారం":"వారాలు"}),(function(e){return"రోజు"+(1===e?"":"లు")}),(function(e){return"గంట"+(1===e?"":"లు")}),(function(e){return 1===e?"నిమిషం":"నిమిషాలు"}),(function(e){return 1===e?"సెకను":"సెకన్లు"}),(function(e){return 1===e?"మిల్లీసెకన్":"మిల్లీసెకన్లు"})),uk:o((function(e){return["років","рік","роки"][u(e)]}),(function(e){return["місяців","місяць","місяці"][u(e)]}),(function(e){return["тижнів","тиждень","тижні"][u(e)]}),(function(e){return["днів","день","дні"][u(e)]}),(function(e){return["годин","година","години"][u(e)]}),(function(e){return["хвилин","хвилина","хвилини"][u(e)]}),(function(e){return["секунд","секунда","секунди"][u(e)]}),(function(e){return["мілісекунд","мілісекунда","мілісекунди"][u(e)]}),","),ur:o("سال",(function(e){return 1===e?"مہینہ":"مہینے"}),(function(e){return 1===e?"ہفتہ":"ہفتے"}),"دن",(function(e){return 1===e?"گھنٹہ":"گھنٹے"}),"منٹ","سیکنڈ","ملی سیکنڈ"),sk:o((function(e){return["rok","roky","roky","rokov"][c(e)]}),(function(e){return["mesiac","mesiace","mesiace","mesiacov"][c(e)]}),(function(e){return["týždeň","týždne","týždne","týždňov"][c(e)]}),(function(e){return["deň","dni","dni","dní"][c(e)]}),(function(e){return["hodina","hodiny","hodiny","hodín"][c(e)]}),(function(e){return["minúta","minúty","minúty","minút"][c(e)]}),(function(e){return["sekunda","sekundy","sekundy","sekúnd"][c(e)]}),(function(e){return["milisekunda","milisekundy","milisekundy","milisekúnd"][c(e)]}),","),sl:o((function(e){return e%10==1?"leto":e%100==2?"leti":e%100==3||e%100==4||Math.floor(e)!==e&&e%100<=5?"leta":"let"}),(function(e){return e%10==1?"mesec":e%100==2||Math.floor(e)!==e&&e%100<=5?"meseca":e%10==3||e%10==4?"mesece":"mesecev"}),(function(e){return e%10==1?"teden":e%10==2||Math.floor(e)!==e&&e%100<=4?"tedna":e%10==3||e%10==4?"tedne":"tednov"}),(function(e){return e%100==1?"dan":"dni"}),(function(e){return e%10==1?"ura":e%100==2?"uri":e%10==3||e%10==4||Math.floor(e)!==e?"ure":"ur"}),(function(e){return e%10==1?"minuta":e%10==2?"minuti":e%10==3||e%10==4||Math.floor(e)!==e&&e%100<=4?"minute":"minut"}),(function(e){return e%10==1?"sekunda":e%100==2?"sekundi":e%100==3||e%100==4||Math.floor(e)!==e?"sekunde":"sekund"}),(function(e){return e%10==1?"milisekunda":e%100==2?"milisekundi":e%100==3||e%100==4||Math.floor(e)!==e?"milisekunde":"milisekund"}),","),sv:o("år",(function(e){return"månad"+(1===e?"":"er")}),(function(e){return"veck"+(1===e?"a":"or")}),(function(e){return"dag"+(1===e?"":"ar")}),(function(e){return"timm"+(1===e?"e":"ar")}),(function(e){return"minut"+(1===e?"":"er")}),(function(e){return"sekund"+(1===e?"":"er")}),(function(e){return"millisekund"+(1===e?"":"er")}),","),sw:e(o((function(e){return 1===e?"mwaka":"miaka"}),(function(e){return 1===e?"mwezi":"miezi"}),"wiki",(function(e){return 1===e?"siku":"masiku"}),(function(e){return 1===e?"saa":"masaa"}),"dakika","sekunde","milisekunde"),{_numberFirst:!0}),tr:o("yıl","ay","hafta","gün","saat","dakika","saniye","milisaniye",","),th:o("ปี","เดือน","สัปดาห์","วัน","ชั่วโมง","นาที","วินาที","มิลลิวินาที"),uz:o("yil","oy","hafta","kun","soat","minut","sekund","millisekund"),uz_CYR:o("йил","ой","ҳафта","кун","соат","минут","секунд","миллисекунд"),vi:o("năm","tháng","tuần","ngày","giờ","phút","giây","mili giây",","),zh_CN:o("年","个月","周","天","小时","分钟","秒","毫秒"),zh_TW:o("年","個月","周","天","小時","分鐘","秒","毫秒")};function o(e,t,n,r,i,o,a,s,u){var c={y:e,mo:t,w:n,d:r,h:i,m:o,s:a,ms:s};return void 0!==u&&(c.decimal=u),c}function a(e){return 2===e?1:e>2&&e<11?2:0}function s(e){return 1===e?0:Math.floor(e)!==e?1:e%10>=2&&e%10<=4&&!(e%100>10&&e%100<20)?2:3}function u(e){return Math.floor(e)!==e?2:e%100>=5&&e%100<=20||e%10>=5&&e%10<=9||e%10==0?0:e%10==1?1:e>1?2:0}function c(e){return 1===e?0:Math.floor(e)!==e?1:e%10>=2&&e%10<=4&&e%100<10?2:3}function l(e){return 1===e||e%10==1&&e%100>20?0:Math.floor(e)!==e||e%10>=2&&e%100>20||e%10>=2&&e%100<10?1:2}function f(e){return e%10==1&&e%100!=11}function d(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function h(e,t,n){var r,i,o,a=e.unitName,s=e.unitCount,u=n.spacer,c=n.maxDecimalPoints;r=d(n,"decimal")?n.decimal:d(t,"decimal")?t.decimal:".","digitReplacements"in n?i=n.digitReplacements:"_digitReplacements"in t&&(i=t._digitReplacements);var l=(void 0===c?s:Math.floor(s*Math.pow(10,c))/Math.pow(10,c)).toString();if(t._hideCountIf2&&2===s)o="",u="";else if(i){o="";for(var f=0;f<l.length;f++){var h=l[f];o+="."===h?r:i[h]}}else o=l.replace(".",r);var p,m=t[a];return p="function"==typeof m?m(s):m,t._numberFirst?p+u+o:o+u+p}function p(e,t){var r=function(e){var t=[e.language];if(d(e,"fallbacks")){if(!n(e.fallbacks)||!e.fallbacks.length)throw new Error("fallbacks must be an array with at least one element");t=t.concat(e.fallbacks)}for(var r=0;r<t.length;r++){var o=t[r];if(d(e.languages,o))return e.languages[o];if(d(i,o))return i[o]}throw new Error("No language found.")}(t);if(!e.length){var o=t.units;return h({unitName:o[o.length-1],unitCount:0},r,t)}var a,s=t.conjunction,u=t.serialComma;a=d(t,"delimiter")?t.delimiter:d(r,"delimiter")?r.delimiter:", ";for(var c=[],l=0;l<e.length;l++)c.push(h(e[l],r,t));return s&&1!==e.length?2===e.length?c.join(s):c.slice(0,-1).join(a)+(u?",":"")+s+c.slice(-1):c.join(a)}function m(t){var n=function(t,r){t=Math.abs(t);var i=e({},n,r||{}),o=function(e,t){var n,r,i,o,a=t.units,s=t.unitMeasures,u="largest"in t?t.largest:1/0;if(!a.length)return[];var c={};for(o=e,r=0;r<a.length;r++){var l=s[n=a[r]];i=r===a.length-1?o/l:Math.floor(o/l),c[n]=i,o-=i*l}if(t.round){var f=u;for(r=0;r<a.length;r++)if(0!==(i=c[n=a[r]])&&0==--f){for(var d=r+1;d<a.length;d++){var h=a[d],p=c[h];c[n]+=p*s[h]/s[n],c[h]=0}break}for(r=a.length-1;r>=0;r--)if(0!==(i=c[n=a[r]])){var m=Math.round(i);if(c[n]=m,0===r)break;var y=a[r-1],b=s[y],g=Math.floor(m*s[n]/b);if(!g)break;c[y]+=g,c[n]=0}}var v=[];for(r=0;r<a.length&&v.length<u;r++)(i=c[n=a[r]])&&v.push({unitName:n,unitCount:i});return v}(t,i);return p(o,i)};return e(n,{language:"en",spacer:" ",conjunction:"",serialComma:!0,units:["y","mo","w","d","h","m","s"],languages:{},round:!1,unitMeasures:{y:315576e5,mo:26298e5,w:6048e5,d:864e5,h:36e5,m:6e4,s:1e3,ms:1}},t)}var y=e(m({}),{getSupportedLanguages:function(){var e=[];for(var t in i)d(i,t)&&"gr"!==t&&e.push(t);return e},humanizer:m});void 0!==t&&t.exports?t.exports=y:this.humanizeDuration=y}()},{}],63:[function(e,t,n){var r=e("browser-split"),i=e("class-list"),o="undefined"==typeof window?e("html-element"):window,a=o.document,s=o.Text;function u(){var e=[];function t(){var t=[].slice.call(arguments),n=null;function o(t){var u,f,d;if(null==t);else if("string"==typeof t)n?n.appendChild(u=a.createTextNode(t)):(d=r(t,/([\.#]?[^\s#.]+)/),/^\.|#/.test(d[1])&&(n=a.createElement("div")),l(d,(function(e){var t=e.substring(1,e.length);e&&(n?"."===e[0]?i(n).add(t):"#"===e[0]&&n.setAttribute("id",t):n=a.createElement(e))})));else if("number"==typeof t||"boolean"==typeof t||t instanceof Date||t instanceof RegExp)n.appendChild(u=a.createTextNode(t.toString()));else if(f=t,"[object Array]"==Object.prototype.toString.call(f))l(t,o);else if(c(t))n.appendChild(u=t);else if(t instanceof s)n.appendChild(u=t);else if("object"==typeof t)for(var h in t)if("function"==typeof t[h])/^on\w+/.test(h)?function(t,r){n.addEventListener?(n.addEventListener(t.substring(2),r[t],!1),e.push((function(){n.removeEventListener(t.substring(2),r[t],!1)}))):(n.attachEvent(t,r[t]),e.push((function(){n.detachEvent(t,r[t])})))}(h,t):(n[h]=t[h](),e.push(t[h]((function(e){n[h]=e}))));else if("style"===h)if("string"==typeof t[h])n.style.cssText=t[h];else for(var p in t[h])!function(r,i){if("function"==typeof i)n.style.setProperty(r,i()),e.push(i((function(e){n.style.setProperty(r,e)})));else var o=t[h][r].match(/(.*)\W+!important\W*$/);o?n.style.setProperty(r,o[1],"important"):n.style.setProperty(r,t[h][r])}(p,t[h][p]);else if("attrs"===h)for(var m in t[h])n.setAttribute(m,t[h][m]);else"data-"===h.substr(0,5)?n.setAttribute(h,t[h]):n[h]=t[h];else if("function"==typeof t){m=t();n.appendChild(u=c(m)?m:a.createTextNode(m)),e.push(t((function(e){c(e)&&u.parentElement?(u.parentElement.replaceChild(e,u),u=e):u.textContent=e})))}return u}for(;t.length;)o(t.shift());return n}return t.cleanup=function(){for(var t=0;t<e.length;t++)e[t]();e.length=0},t}function c(e){return e&&e.nodeName&&e.nodeType}function l(e,t){if(e.forEach)return e.forEach(t);for(var n=0;n<e.length;n++)t(e[n],n)}(t.exports=u()).context=u},{"browser-split":17,"class-list":22,"html-element":16}],64:[function(e,t,n){
25
+ "use strict";const r="array",i="bit",o="bits",a="byte",s="bytes",u="",c="exponent",l="function",f="iec",d="Invalid number",h="Invalid rounding method",p="jedec",m="object",y=".",b="round",g="s",v="si",w="kbit",E="kB",_=" ",R="string",S="0",A={symbol:{iec:{bits:["bit","Kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],bytes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},jedec:{bits:["bit","Kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],bytes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}},fullform:{iec:["","kibi","mebi","gibi","tebi","pebi","exbi","zebi","yobi"],jedec:["","kilo","mega","giga","tera","peta","exa","zetta","yotta"]}};function k(e,{bits:t=!1,pad:n=!1,base:k=-1,round:O=2,locale:T=u,localeOptions:x={},separator:j=u,spacer:D=_,symbols:M={},standard:C=u,output:N=R,fullform:I=!1,fullforms:L=[],exponent:P=-1,roundingMethod:B=b,precision:U=0}={}){let F=P,q=Number(e),W=[],H=0,V=u;C===v?(k=10,C=p):C===f||C===p?k=2:2===k?C=f:(k=10,C=p);const z=10===k?1e3:1024,G=!0===I,$=q<0,Y=Math[B];if("bigint"!=typeof e&&isNaN(e))throw new TypeError(d);if(typeof Y!==l)throw new TypeError(h);if($&&(q=-q),(-1===F||isNaN(F))&&(F=Math.floor(Math.log(q)/Math.log(z)),F<0&&(F=0)),F>8&&(U>0&&(U+=8-F),F=8),N===c)return F;if(0===q)W[0]=0,V=W[1]=A.symbol[C][t?o:s][F];else{H=q/(2===k?Math.pow(2,10*F):Math.pow(1e3,F)),t&&(H*=8,H>=z&&F<8&&(H/=z,F++));const e=Math.pow(10,F>0?O:0);W[0]=Y(H*e)/e,W[0]===z&&F<8&&-1===P&&(W[0]=1,F++),V=W[1]=10===k&&1===F?t?w:E:A.symbol[C][t?o:s][F]}if($&&(W[0]=-W[0]),U>0&&(W[0]=W[0].toPrecision(U)),W[1]=M[W[1]]||W[1],!0===T?W[0]=W[0].toLocaleString():T.length>0?W[0]=W[0].toLocaleString(T,x):j.length>0&&(W[0]=W[0].toString().replace(y,j)),n&&O>0){const e=W[0].toString(),t=j||(e.match(/(\D)/g)||[]).pop()||y,n=e.toString().split(t),r=n[1]||u,i=r.length,o=O-i;W[0]=`${n[0]}${t}${r.padEnd(i+o,S)}`}return G&&(W[1]=L[F]?L[F]:A.fullform[C][F]+(t?i:a)+(1===W[0]?u:g)),N===r?W:N===m?{value:W[0],symbol:W[1],exponent:F,unit:V}:W.join(D)}n.filesize=k,n.partial=function({bits:e=!1,pad:t=!1,base:n=-1,round:r=2,locale:i=u,localeOptions:o={},separator:a=u,spacer:s=_,symbols:c={},standard:l=u,output:f=R,fullform:d=!1,fullforms:h=[],exponent:p=-1,roundingMethod:m=b,precision:y=0}={}){return u=>k(u,{bits:e,pad:t,base:n,round:r,locale:i,localeOptions:o,separator:a,spacer:s,symbols:c,standard:l,output:f,fullform:d,fullforms:h,exponent:p,roundingMethod:m,precision:y})}},{}],47:[function(e,t,n){t.exports=function(e){var t=Array.prototype.slice.call(arguments,1);return t.length&&(e=e.replace(/(%?)(%([jds]))/g,(function(e,n,r,i){var o=t.shift();switch(i){case"s":o=""+o;break;case"d":o=Number(o);break;case"j":o=JSON.stringify(o)}return n?(t.unshift(o),e):o}))),t.length&&(e+=" "+t.join(" ")),""+(e=e.replace(/%{2,2}/g,"%"))}},{}],48:[function(e,t,n){"use strict";var r=Object.prototype.toString,i=Math.max,o=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var i=0;i<t.length;i+=1)n[i+e.length]=t[i];return n};t.exports=function(e){var t=this;if("function"!=typeof t||"[object Function]"!==r.apply(t))throw new TypeError("Function.prototype.bind called on incompatible "+t);for(var n,a=function(e,t){for(var n=[],r=t||0,i=0;r<e.length;r+=1,i+=1)n[i]=e[r];return n}(arguments,1),s=i(0,t.length-a.length),u=[],c=0;c<s;c++)u[c]="$"+c;if(n=Function("binder","return function ("+function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n}(u,",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof n){var r=t.apply(this,o(a,arguments));return Object(r)===r?r:this}return t.apply(e,o(a,arguments))})),t.prototype){var l=function(){};l.prototype=t.prototype,n.prototype=new l,l.prototype=null}return n}},{}],49:[function(e,t,n){"use strict";var r=e("./implementation");t.exports=Function.prototype.bind||r},{"./implementation":48}],50:[function(e,t,n){"use strict";function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.__esModule=!0,n.default=l,n.getFieldData=f;var i={"[object HTMLCollection]":!0,"[object NodeList]":!0,"[object RadioNodeList]":!0},o={button:!0,fieldset:!0,reset:!0,submit:!0},a={checkbox:!0,radio:!0},s=/^\s+|\s+$/g,u=Array.prototype.slice,c=Object.prototype.toString;function l(e,t){if(!e)throw new Error("A form is required by getFormData, was given form="+e);t=r({includeDisabled:!1,trim:!1},t);for(var n,i={},a=[],s={},u=0,c=e.elements.length;u<c;u++){var l=e.elements[u];o[l.type]||l.disabled&&!t.includeDisabled||(n=l.name||l.id)&&!s[n]&&(a.push(n),s[n]=!0)}for(var d=0,h=a.length;d<h;d++){var p=f(e,n=a[d],t);null!=p&&(i[n]=p)}return i}function f(e,t,n){if(!e)throw new Error("A form is required by getFieldData, was given form="+e);if(!t&&"[object String]"!==c.call(t))throw new Error("A field name is required by getFieldData, was given fieldName="+t);n=r({includeDisabled:!1,trim:!1},n);var o=e.elements[t];if(!o||o.disabled&&!n.includeDisabled)return null;if(!i[c.call(o)])return d(o,n.trim);for(var a=[],s=!0,u=0,l=o.length;u<l;u++)if(!o[u].disabled||n.includeDisabled){s&&"radio"!==o[u].type&&(s=!1);var f=d(o[u],n.trim);null!=f&&(a=a.concat(f))}return s&&1===a.length?a[0]:a.length>0?a:null}function d(e,t){var n=null,r=e.type;if("select-one"===r)return e.options.length&&(n=e.options[e.selectedIndex].value),n;if("select-multiple"===r){n=[];for(var i=0,o=e.options.length;i<o;i++)e.options[i].selected&&n.push(e.options[i].value);return 0===n.length&&(n=null),n}return"file"===r&&"files"in e?(e.multiple?0===(n=u.call(e.files)).length&&(n=null):n=e.files[0],n):(a[r]?e.checked&&(n="checkbox"===r&&!e.hasAttribute("value")||e.value):n=t?e.value.replace(s,""):e.value,n)}l.getFieldData=f},{}],51:[function(e,t,n){"use strict";var r,i=e("es-errors"),o=e("es-errors/eval"),a=e("es-errors/range"),s=e("es-errors/ref"),u=e("es-errors/syntax"),c=e("es-errors/type"),l=e("es-errors/uri"),f=Function,d=function(e){try{return f('"use strict"; return ('+e+").constructor;")()}catch(e){}},h=Object.getOwnPropertyDescriptor;if(h)try{h({},"")}catch(e){h=null}var p=function(){throw new c},m=h?function(){try{return p}catch(e){try{return h(arguments,"callee").get}catch(e){return p}}}():p,y=e("has-symbols")(),b=e("has-proto")(),g=Object.getPrototypeOf||(b?function(e){return e.__proto__}:null),v={},w="undefined"!=typeof Uint8Array&&g?g(Uint8Array):r,E={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":y&&g?g([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":v,"%AsyncGenerator%":v,"%AsyncGeneratorFunction%":v,"%AsyncIteratorPrototype%":v,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":o,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":f,"%GeneratorFunction%":v,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":y&&g?g(g([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&y&&g?g((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":a,"%ReferenceError%":s,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&y&&g?g((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":y&&g?g(""[Symbol.iterator]()):r,"%Symbol%":y?Symbol:r,"%SyntaxError%":u,"%ThrowTypeError%":m,"%TypedArray%":w,"%TypeError%":c,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":l,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet};if(g)try{null.error}catch(e){var _=g(g(e));E["%Error.prototype%"]=_}var R=function e(t){var n;if("%AsyncFunction%"===t)n=d("async function () {}");else if("%GeneratorFunction%"===t)n=d("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=d("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&g&&(n=g(i.prototype))}return E[t]=n,n},S={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},A=e("function-bind"),k=e("hasown"),O=A.call(Function.call,Array.prototype.concat),T=A.call(Function.apply,Array.prototype.splice),x=A.call(Function.call,String.prototype.replace),j=A.call(Function.call,String.prototype.slice),D=A.call(Function.call,RegExp.prototype.exec),M=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,C=/\\(\\)?/g,N=function(e,t){var n,r=e;if(k(S,r)&&(r="%"+(n=S[r])[0]+"%"),k(E,r)){var i=E[r];if(i===v&&(i=R(r)),void 0===i&&!t)throw new c("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:i}}throw new u("intrinsic "+e+" does not exist!")};t.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new c('"allowMissing" argument must be a boolean');if(null===D(/^%?[^%]*%?$/,e))throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=j(e,0,1),n=j(e,-1);if("%"===t&&"%"!==n)throw new u("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new u("invalid intrinsic syntax, expected opening `%`");var r=[];return x(e,M,(function(e,t,n,i){r[r.length]=n?x(i,C,"$1"):t||e})),r}(e),r=n.length>0?n[0]:"",i=N("%"+r+"%",t),o=i.name,a=i.value,s=!1,l=i.alias;l&&(r=l[0],T(n,O([0,1],l)));for(var f=1,d=!0;f<n.length;f+=1){var p=n[f],m=j(p,0,1),y=j(p,-1);if(('"'===m||"'"===m||"`"===m||'"'===y||"'"===y||"`"===y)&&m!==y)throw new u("property names with quotes must have matching quotes");if("constructor"!==p&&d||(s=!0),k(E,o="%"+(r+="."+p)+"%"))a=E[o];else if(null!=a){if(!(p in a)){if(!t)throw new c("base intrinsic for "+e+" exists, but the property is not available.");return}if(h&&f+1>=n.length){var b=h(a,p);a=(d=!!b)&&"get"in b&&!("originalValue"in b.get)?b.get:a[p]}else d=k(a,p),a=a[p];d&&!s&&(E[o]=a)}}return a}},{"es-errors":38,"es-errors/eval":37,"es-errors/range":39,"es-errors/ref":40,"es-errors/syntax":41,"es-errors/type":42,"es-errors/uri":43,"function-bind":49,"has-proto":57,"has-symbols":58,hasown:60}],52:[function(e,t,n){t.exports=function(){var e=[];return{broadcast:function(t){for(var n=0;n<e.length;n++)e[n](t)},listen:function(t){return e.push(t),n;function n(){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}}}}},{}],53:[function(e,t,n){var r=e("./event.js");t.exports=function(e){var t=r();return e(t.broadcast),t.listen}},{"./event.js":52}],54:[function(e,t,n){(function(e){(function(){var n;n="undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},t.exports=n}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],55:[function(e,t,n){"use strict";var r=e("get-intrinsic")("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch(e){r=null}t.exports=r},{"get-intrinsic":51}],56:[function(e,t,n){"use strict";var r=e("es-define-property"),i=function(){return!!r};i.hasArrayLengthDefineBug=function(){if(!r)return null;try{return 1!==r([],"length",{value:1}).length}catch(e){return!0}},t.exports=i},{"es-define-property":36}],57:[function(e,t,n){"use strict";var r={__proto__:null,foo:{}},i=Object;t.exports=function(){return{__proto__:r}.foo===r.foo&&!(r instanceof i)}},{}],58:[function(e,t,n){"use strict";var r="undefined"!=typeof Symbol&&Symbol,i=e("./shams");t.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&i())))}},{"./shams":59}],59:[function(e,t,n){"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},{}],60:[function(e,t,n){"use strict";var r=Function.prototype.call,i=Object.prototype.hasOwnProperty,o=e("function-bind");t.exports=o.call(r,i)},{"function-bind":49}],61:[function(e,t,n){t.exports=function(e,t){if(void 0===t)return"none"===e.style.display;e.style.display=t?"none":""}},{}],62:[function(e,t,n){!function(){var e=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])d(t,r)&&(e[r]=t[r]);return e},n=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},r=o((function(e){return 1===e?"χρόνος":"χρόνια"}),(function(e){return 1===e?"μήνας":"μήνες"}),(function(e){return 1===e?"εβδομάδα":"εβδομάδες"}),(function(e){return 1===e?"μέρα":"μέρες"}),(function(e){return 1===e?"ώρα":"ώρες"}),(function(e){return 1===e?"λεπτό":"λεπτά"}),(function(e){return 1===e?"δευτερόλεπτο":"δευτερόλεπτα"}),(function(e){return(1===e?"χιλιοστό":"χιλιοστά")+" του δευτερολέπτου"}),","),i={af:o("jaar",(function(e){return"maand"+(1===e?"":"e")}),(function(e){return 1===e?"week":"weke"}),(function(e){return 1===e?"dag":"dae"}),(function(e){return 1===e?"uur":"ure"}),(function(e){return 1===e?"minuut":"minute"}),(function(e){return"sekonde"+(1===e?"":"s")}),(function(e){return"millisekonde"+(1===e?"":"s")}),","),am:o("ዓመት","ወር","ሳምንት","ቀን","ሰዓት","ደቂቃ","ሰከንድ","ሚሊሰከንድ"),ar:e(o((function(e){return["سنة","سنتان","سنوات"][a(e)]}),(function(e){return["شهر","شهران","أشهر"][a(e)]}),(function(e){return["أسبوع","أسبوعين","أسابيع"][a(e)]}),(function(e){return["يوم","يومين","أيام"][a(e)]}),(function(e){return["ساعة","ساعتين","ساعات"][a(e)]}),(function(e){return["دقيقة","دقيقتان","دقائق"][a(e)]}),(function(e){return["ثانية","ثانيتان","ثواني"][a(e)]}),(function(e){return["جزء من الثانية","جزآن من الثانية","أجزاء من الثانية"][a(e)]}),","),{delimiter:" ﻭ ",_hideCountIf2:!0,_digitReplacements:["۰","١","٢","٣","٤","٥","٦","٧","٨","٩"]}),bg:o((function(e){return["години","година","години"][u(e)]}),(function(e){return["месеца","месец","месеца"][u(e)]}),(function(e){return["седмици","седмица","седмици"][u(e)]}),(function(e){return["дни","ден","дни"][u(e)]}),(function(e){return["часа","час","часа"][u(e)]}),(function(e){return["минути","минута","минути"][u(e)]}),(function(e){return["секунди","секунда","секунди"][u(e)]}),(function(e){return["милисекунди","милисекунда","милисекунди"][u(e)]}),","),bn:o("বছর","মাস","সপ্তাহ","দিন","ঘন্টা","মিনিট","সেকেন্ড","মিলিসেকেন্ড"),ca:o((function(e){return"any"+(1===e?"":"s")}),(function(e){return"mes"+(1===e?"":"os")}),(function(e){return"setman"+(1===e?"a":"es")}),(function(e){return"di"+(1===e?"a":"es")}),(function(e){return"hor"+(1===e?"a":"es")}),(function(e){return"minut"+(1===e?"":"s")}),(function(e){return"segon"+(1===e?"":"s")}),(function(e){return"milisegon"+(1===e?"":"s")}),","),ckb:o("ساڵ","مانگ","هەفتە","ڕۆژ","کاژێر","خولەک","چرکە","میلی چرکە","."),cs:o((function(e){return["rok","roku","roky","let"][c(e)]}),(function(e){return["měsíc","měsíce","měsíce","měsíců"][c(e)]}),(function(e){return["týden","týdne","týdny","týdnů"][c(e)]}),(function(e){return["den","dne","dny","dní"][c(e)]}),(function(e){return["hodina","hodiny","hodiny","hodin"][c(e)]}),(function(e){return["minuta","minuty","minuty","minut"][c(e)]}),(function(e){return["sekunda","sekundy","sekundy","sekund"][c(e)]}),(function(e){return["milisekunda","milisekundy","milisekundy","milisekund"][c(e)]}),","),cy:o("flwyddyn","mis","wythnos","diwrnod","awr","munud","eiliad","milieiliad"),da:o("år",(function(e){return"måned"+(1===e?"":"er")}),(function(e){return"uge"+(1===e?"":"r")}),(function(e){return"dag"+(1===e?"":"e")}),(function(e){return"time"+(1===e?"":"r")}),(function(e){return"minut"+(1===e?"":"ter")}),(function(e){return"sekund"+(1===e?"":"er")}),(function(e){return"millisekund"+(1===e?"":"er")}),","),de:o((function(e){return"Jahr"+(1===e?"":"e")}),(function(e){return"Monat"+(1===e?"":"e")}),(function(e){return"Woche"+(1===e?"":"n")}),(function(e){return"Tag"+(1===e?"":"e")}),(function(e){return"Stunde"+(1===e?"":"n")}),(function(e){return"Minute"+(1===e?"":"n")}),(function(e){return"Sekunde"+(1===e?"":"n")}),(function(e){return"Millisekunde"+(1===e?"":"n")}),","),el:r,en:o((function(e){return"year"+(1===e?"":"s")}),(function(e){return"month"+(1===e?"":"s")}),(function(e){return"week"+(1===e?"":"s")}),(function(e){return"day"+(1===e?"":"s")}),(function(e){return"hour"+(1===e?"":"s")}),(function(e){return"minute"+(1===e?"":"s")}),(function(e){return"second"+(1===e?"":"s")}),(function(e){return"millisecond"+(1===e?"":"s")})),eo:o((function(e){return"jaro"+(1===e?"":"j")}),(function(e){return"monato"+(1===e?"":"j")}),(function(e){return"semajno"+(1===e?"":"j")}),(function(e){return"tago"+(1===e?"":"j")}),(function(e){return"horo"+(1===e?"":"j")}),(function(e){return"minuto"+(1===e?"":"j")}),(function(e){return"sekundo"+(1===e?"":"j")}),(function(e){return"milisekundo"+(1===e?"":"j")}),","),es:o((function(e){return"año"+(1===e?"":"s")}),(function(e){return"mes"+(1===e?"":"es")}),(function(e){return"semana"+(1===e?"":"s")}),(function(e){return"día"+(1===e?"":"s")}),(function(e){return"hora"+(1===e?"":"s")}),(function(e){return"minuto"+(1===e?"":"s")}),(function(e){return"segundo"+(1===e?"":"s")}),(function(e){return"milisegundo"+(1===e?"":"s")}),","),et:o((function(e){return"aasta"+(1===e?"":"t")}),(function(e){return"kuu"+(1===e?"":"d")}),(function(e){return"nädal"+(1===e?"":"at")}),(function(e){return"päev"+(1===e?"":"a")}),(function(e){return"tund"+(1===e?"":"i")}),(function(e){return"minut"+(1===e?"":"it")}),(function(e){return"sekund"+(1===e?"":"it")}),(function(e){return"millisekund"+(1===e?"":"it")}),","),eu:o("urte","hilabete","aste","egun","ordu","minutu","segundo","milisegundo",","),fa:o("سال","ماه","هفته","روز","ساعت","دقیقه","ثانیه","میلی ثانیه"),fi:o((function(e){return 1===e?"vuosi":"vuotta"}),(function(e){return 1===e?"kuukausi":"kuukautta"}),(function(e){return"viikko"+(1===e?"":"a")}),(function(e){return"päivä"+(1===e?"":"ä")}),(function(e){return"tunti"+(1===e?"":"a")}),(function(e){return"minuutti"+(1===e?"":"a")}),(function(e){return"sekunti"+(1===e?"":"a")}),(function(e){return"millisekunti"+(1===e?"":"a")}),","),fo:o("ár",(function(e){return 1===e?"mánaður":"mánaðir"}),(function(e){return 1===e?"vika":"vikur"}),(function(e){return 1===e?"dagur":"dagar"}),(function(e){return 1===e?"tími":"tímar"}),(function(e){return 1===e?"minuttur":"minuttir"}),"sekund","millisekund",","),fr:o((function(e){return"an"+(e>=2?"s":"")}),"mois",(function(e){return"semaine"+(e>=2?"s":"")}),(function(e){return"jour"+(e>=2?"s":"")}),(function(e){return"heure"+(e>=2?"s":"")}),(function(e){return"minute"+(e>=2?"s":"")}),(function(e){return"seconde"+(e>=2?"s":"")}),(function(e){return"milliseconde"+(e>=2?"s":"")}),","),gr:r,he:o((function(e){return 1===e?"שנה":"שנים"}),(function(e){return 1===e?"חודש":"חודשים"}),(function(e){return 1===e?"שבוע":"שבועות"}),(function(e){return 1===e?"יום":"ימים"}),(function(e){return 1===e?"שעה":"שעות"}),(function(e){return 1===e?"דקה":"דקות"}),(function(e){return 1===e?"שניה":"שניות"}),(function(e){return 1===e?"מילישנייה":"מילישניות"})),hr:o((function(e){return e%10==2||e%10==3||e%10==4?"godine":"godina"}),(function(e){return 1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci"}),(function(e){return e%10==1&&11!==e?"tjedan":"tjedna"}),(function(e){return 1===e?"dan":"dana"}),(function(e){return 1===e?"sat":2===e||3===e||4===e?"sata":"sati"}),(function(e){var t=e%10;return 2!==t&&3!==t&&4!==t||!(e<10||e>14)?"minuta":"minute"}),(function(e){var t=e%10;return 5===t||Math.floor(e)===e&&e>=10&&e<=19?"sekundi":1===t?"sekunda":2===t||3===t||4===t?"sekunde":"sekundi"}),(function(e){return 1===e?"milisekunda":e%10==2||e%10==3||e%10==4?"milisekunde":"milisekundi"}),","),hi:o("साल",(function(e){return 1===e?"महीना":"महीने"}),(function(e){return 1===e?"हफ़्ता":"हफ्ते"}),"दिन",(function(e){return 1===e?"घंटा":"घंटे"}),"मिनट","सेकंड","मिलीसेकंड"),hu:o("év","hónap","hét","nap","óra","perc","másodperc","ezredmásodperc",","),id:o("tahun","bulan","minggu","hari","jam","menit","detik","milidetik"),is:o("ár",(function(e){return"mánuð"+(1===e?"ur":"ir")}),(function(e){return"vik"+(1===e?"a":"ur")}),(function(e){return"dag"+(1===e?"ur":"ar")}),(function(e){return"klukkutím"+(1===e?"i":"ar")}),(function(e){return"mínút"+(1===e?"a":"ur")}),(function(e){return"sekúnd"+(1===e?"a":"ur")}),(function(e){return"millisekúnd"+(1===e?"a":"ur")})),it:o((function(e){return"ann"+(1===e?"o":"i")}),(function(e){return"mes"+(1===e?"e":"i")}),(function(e){return"settiman"+(1===e?"a":"e")}),(function(e){return"giorn"+(1===e?"o":"i")}),(function(e){return"or"+(1===e?"a":"e")}),(function(e){return"minut"+(1===e?"o":"i")}),(function(e){return"second"+(1===e?"o":"i")}),(function(e){return"millisecond"+(1===e?"o":"i")}),","),ja:o("年","ヶ月","週","日","時間","分","秒","ミリ秒"),km:o("ឆ្នាំ","ខែ","សប្តាហ៍","ថ្ងៃ","ម៉ោង","នាទី","វិនាទី","មិល្លីវិនាទី"),kn:o((function(e){return 1===e?"ವರ್ಷ":"ವರ್ಷಗಳು"}),(function(e){return 1===e?"ತಿಂಗಳು":"ತಿಂಗಳುಗಳು"}),(function(e){return 1===e?"ವಾರ":"ವಾರಗಳು"}),(function(e){return 1===e?"ದಿನ":"ದಿನಗಳು"}),(function(e){return 1===e?"ಗಂಟೆ":"ಗಂಟೆಗಳು"}),(function(e){return 1===e?"ನಿಮಿಷ":"ನಿಮಿಷಗಳು"}),(function(e){return 1===e?"ಸೆಕೆಂಡ್":"ಸೆಕೆಂಡುಗಳು"}),(function(e){return 1===e?"ಮಿಲಿಸೆಕೆಂಡ್":"ಮಿಲಿಸೆಕೆಂಡುಗಳು"})),ko:o("년","개월","주일","일","시간","분","초","밀리 초"),ku:o("sal","meh","hefte","roj","seet","deqe","saniye","mîlîçirk",","),lo:o("ປີ","ເດືອນ","ອາທິດ","ມື້","ຊົ່ວໂມງ","ນາທີ","ວິນາທີ","ມິນລິວິນາທີ",","),lt:o((function(e){return e%10==0||e%100>=10&&e%100<=20?"metų":"metai"}),(function(e){return["mėnuo","mėnesiai","mėnesių"][l(e)]}),(function(e){return["savaitė","savaitės","savaičių"][l(e)]}),(function(e){return["diena","dienos","dienų"][l(e)]}),(function(e){return["valanda","valandos","valandų"][l(e)]}),(function(e){return["minutė","minutės","minučių"][l(e)]}),(function(e){return["sekundė","sekundės","sekundžių"][l(e)]}),(function(e){return["milisekundė","milisekundės","milisekundžių"][l(e)]}),","),lv:o((function(e){return f(e)?"gads":"gadi"}),(function(e){return f(e)?"mēnesis":"mēneši"}),(function(e){return f(e)?"nedēļa":"nedēļas"}),(function(e){return f(e)?"diena":"dienas"}),(function(e){return f(e)?"stunda":"stundas"}),(function(e){return f(e)?"minūte":"minūtes"}),(function(e){return f(e)?"sekunde":"sekundes"}),(function(e){return f(e)?"milisekunde":"milisekundes"}),","),mk:o((function(e){return 1===e?"година":"години"}),(function(e){return 1===e?"месец":"месеци"}),(function(e){return 1===e?"недела":"недели"}),(function(e){return 1===e?"ден":"дена"}),(function(e){return 1===e?"час":"часа"}),(function(e){return 1===e?"минута":"минути"}),(function(e){return 1===e?"секунда":"секунди"}),(function(e){return 1===e?"милисекунда":"милисекунди"}),","),mn:o("жил","сар","долоо хоног","өдөр","цаг","минут","секунд","миллисекунд"),mr:o((function(e){return 1===e?"वर्ष":"वर्षे"}),(function(e){return 1===e?"महिना":"महिने"}),(function(e){return 1===e?"आठवडा":"आठवडे"}),"दिवस","तास",(function(e){return 1===e?"मिनिट":"मिनिटे"}),"सेकंद","मिलिसेकंद"),ms:o("tahun","bulan","minggu","hari","jam","minit","saat","milisaat"),nl:o("jaar",(function(e){return 1===e?"maand":"maanden"}),(function(e){return 1===e?"week":"weken"}),(function(e){return 1===e?"dag":"dagen"}),"uur",(function(e){return 1===e?"minuut":"minuten"}),(function(e){return 1===e?"seconde":"seconden"}),(function(e){return 1===e?"milliseconde":"milliseconden"}),","),no:o("år",(function(e){return"måned"+(1===e?"":"er")}),(function(e){return"uke"+(1===e?"":"r")}),(function(e){return"dag"+(1===e?"":"er")}),(function(e){return"time"+(1===e?"":"r")}),(function(e){return"minutt"+(1===e?"":"er")}),(function(e){return"sekund"+(1===e?"":"er")}),(function(e){return"millisekund"+(1===e?"":"er")}),","),pl:o((function(e){return["rok","roku","lata","lat"][s(e)]}),(function(e){return["miesiąc","miesiąca","miesiące","miesięcy"][s(e)]}),(function(e){return["tydzień","tygodnia","tygodnie","tygodni"][s(e)]}),(function(e){return["dzień","dnia","dni","dni"][s(e)]}),(function(e){return["godzina","godziny","godziny","godzin"][s(e)]}),(function(e){return["minuta","minuty","minuty","minut"][s(e)]}),(function(e){return["sekunda","sekundy","sekundy","sekund"][s(e)]}),(function(e){return["milisekunda","milisekundy","milisekundy","milisekund"][s(e)]}),","),pt:o((function(e){return"ano"+(1===e?"":"s")}),(function(e){return 1===e?"mês":"meses"}),(function(e){return"semana"+(1===e?"":"s")}),(function(e){return"dia"+(1===e?"":"s")}),(function(e){return"hora"+(1===e?"":"s")}),(function(e){return"minuto"+(1===e?"":"s")}),(function(e){return"segundo"+(1===e?"":"s")}),(function(e){return"milissegundo"+(1===e?"":"s")}),","),ro:o((function(e){return 1===e?"an":"ani"}),(function(e){return 1===e?"lună":"luni"}),(function(e){return 1===e?"săptămână":"săptămâni"}),(function(e){return 1===e?"zi":"zile"}),(function(e){return 1===e?"oră":"ore"}),(function(e){return 1===e?"minut":"minute"}),(function(e){return 1===e?"secundă":"secunde"}),(function(e){return 1===e?"milisecundă":"milisecunde"}),","),ru:o((function(e){return["лет","год","года"][u(e)]}),(function(e){return["месяцев","месяц","месяца"][u(e)]}),(function(e){return["недель","неделя","недели"][u(e)]}),(function(e){return["дней","день","дня"][u(e)]}),(function(e){return["часов","час","часа"][u(e)]}),(function(e){return["минут","минута","минуты"][u(e)]}),(function(e){return["секунд","секунда","секунды"][u(e)]}),(function(e){return["миллисекунд","миллисекунда","миллисекунды"][u(e)]}),","),sq:o((function(e){return 1===e?"vit":"vjet"}),"muaj","javë","ditë","orë",(function(e){return"minut"+(1===e?"ë":"a")}),(function(e){return"sekond"+(1===e?"ë":"a")}),(function(e){return"milisekond"+(1===e?"ë":"a")}),","),sr:o((function(e){return["години","година","године"][u(e)]}),(function(e){return["месеци","месец","месеца"][u(e)]}),(function(e){return["недељи","недеља","недеље"][u(e)]}),(function(e){return["дани","дан","дана"][u(e)]}),(function(e){return["сати","сат","сата"][u(e)]}),(function(e){return["минута","минут","минута"][u(e)]}),(function(e){return["секунди","секунда","секунде"][u(e)]}),(function(e){return["милисекунди","милисекунда","милисекунде"][u(e)]}),","),ta:o((function(e){return 1===e?"வருடம்":"ஆண்டுகள்"}),(function(e){return 1===e?"மாதம்":"மாதங்கள்"}),(function(e){return 1===e?"வாரம்":"வாரங்கள்"}),(function(e){return 1===e?"நாள்":"நாட்கள்"}),(function(e){return 1===e?"மணி":"மணிநேரம்"}),(function(e){return"நிமிட"+(1===e?"ம்":"ங்கள்")}),(function(e){return"வினாடி"+(1===e?"":"கள்")}),(function(e){return"மில்லி விநாடி"+(1===e?"":"கள்")})),te:o((function(e){return"సంవత్స"+(1===e?"రం":"రాల")}),(function(e){return"నెల"+(1===e?"":"ల")}),(function(e){return 1===e?"వారం":"వారాలు"}),(function(e){return"రోజు"+(1===e?"":"లు")}),(function(e){return"గంట"+(1===e?"":"లు")}),(function(e){return 1===e?"నిమిషం":"నిమిషాలు"}),(function(e){return 1===e?"సెకను":"సెకన్లు"}),(function(e){return 1===e?"మిల్లీసెకన్":"మిల్లీసెకన్లు"})),uk:o((function(e){return["років","рік","роки"][u(e)]}),(function(e){return["місяців","місяць","місяці"][u(e)]}),(function(e){return["тижнів","тиждень","тижні"][u(e)]}),(function(e){return["днів","день","дні"][u(e)]}),(function(e){return["годин","година","години"][u(e)]}),(function(e){return["хвилин","хвилина","хвилини"][u(e)]}),(function(e){return["секунд","секунда","секунди"][u(e)]}),(function(e){return["мілісекунд","мілісекунда","мілісекунди"][u(e)]}),","),ur:o("سال",(function(e){return 1===e?"مہینہ":"مہینے"}),(function(e){return 1===e?"ہفتہ":"ہفتے"}),"دن",(function(e){return 1===e?"گھنٹہ":"گھنٹے"}),"منٹ","سیکنڈ","ملی سیکنڈ"),sk:o((function(e){return["rok","roky","roky","rokov"][c(e)]}),(function(e){return["mesiac","mesiace","mesiace","mesiacov"][c(e)]}),(function(e){return["týždeň","týždne","týždne","týždňov"][c(e)]}),(function(e){return["deň","dni","dni","dní"][c(e)]}),(function(e){return["hodina","hodiny","hodiny","hodín"][c(e)]}),(function(e){return["minúta","minúty","minúty","minút"][c(e)]}),(function(e){return["sekunda","sekundy","sekundy","sekúnd"][c(e)]}),(function(e){return["milisekunda","milisekundy","milisekundy","milisekúnd"][c(e)]}),","),sl:o((function(e){return e%10==1?"leto":e%100==2?"leti":e%100==3||e%100==4||Math.floor(e)!==e&&e%100<=5?"leta":"let"}),(function(e){return e%10==1?"mesec":e%100==2||Math.floor(e)!==e&&e%100<=5?"meseca":e%10==3||e%10==4?"mesece":"mesecev"}),(function(e){return e%10==1?"teden":e%10==2||Math.floor(e)!==e&&e%100<=4?"tedna":e%10==3||e%10==4?"tedne":"tednov"}),(function(e){return e%100==1?"dan":"dni"}),(function(e){return e%10==1?"ura":e%100==2?"uri":e%10==3||e%10==4||Math.floor(e)!==e?"ure":"ur"}),(function(e){return e%10==1?"minuta":e%10==2?"minuti":e%10==3||e%10==4||Math.floor(e)!==e&&e%100<=4?"minute":"minut"}),(function(e){return e%10==1?"sekunda":e%100==2?"sekundi":e%100==3||e%100==4||Math.floor(e)!==e?"sekunde":"sekund"}),(function(e){return e%10==1?"milisekunda":e%100==2?"milisekundi":e%100==3||e%100==4||Math.floor(e)!==e?"milisekunde":"milisekund"}),","),sv:o("år",(function(e){return"månad"+(1===e?"":"er")}),(function(e){return"veck"+(1===e?"a":"or")}),(function(e){return"dag"+(1===e?"":"ar")}),(function(e){return"timm"+(1===e?"e":"ar")}),(function(e){return"minut"+(1===e?"":"er")}),(function(e){return"sekund"+(1===e?"":"er")}),(function(e){return"millisekund"+(1===e?"":"er")}),","),sw:e(o((function(e){return 1===e?"mwaka":"miaka"}),(function(e){return 1===e?"mwezi":"miezi"}),"wiki",(function(e){return 1===e?"siku":"masiku"}),(function(e){return 1===e?"saa":"masaa"}),"dakika","sekunde","milisekunde"),{_numberFirst:!0}),tr:o("yıl","ay","hafta","gün","saat","dakika","saniye","milisaniye",","),th:o("ปี","เดือน","สัปดาห์","วัน","ชั่วโมง","นาที","วินาที","มิลลิวินาที"),uz:o("yil","oy","hafta","kun","soat","minut","sekund","millisekund"),uz_CYR:o("йил","ой","ҳафта","кун","соат","минут","секунд","миллисекунд"),vi:o("năm","tháng","tuần","ngày","giờ","phút","giây","mili giây",","),zh_CN:o("年","个月","周","天","小时","分钟","秒","毫秒"),zh_TW:o("年","個月","周","天","小時","分鐘","秒","毫秒")};function o(e,t,n,r,i,o,a,s,u){var c={y:e,mo:t,w:n,d:r,h:i,m:o,s:a,ms:s};return void 0!==u&&(c.decimal=u),c}function a(e){return 2===e?1:e>2&&e<11?2:0}function s(e){return 1===e?0:Math.floor(e)!==e?1:e%10>=2&&e%10<=4&&!(e%100>10&&e%100<20)?2:3}function u(e){return Math.floor(e)!==e?2:e%100>=5&&e%100<=20||e%10>=5&&e%10<=9||e%10==0?0:e%10==1?1:e>1?2:0}function c(e){return 1===e?0:Math.floor(e)!==e?1:e%10>=2&&e%10<=4&&e%100<10?2:3}function l(e){return 1===e||e%10==1&&e%100>20?0:Math.floor(e)!==e||e%10>=2&&e%100>20||e%10>=2&&e%100<10?1:2}function f(e){return e%10==1&&e%100!=11}function d(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function h(e,t,n){var r,i,o,a=e.unitName,s=e.unitCount,u=n.spacer,c=n.maxDecimalPoints;r=d(n,"decimal")?n.decimal:d(t,"decimal")?t.decimal:".","digitReplacements"in n?i=n.digitReplacements:"_digitReplacements"in t&&(i=t._digitReplacements);var l=(void 0===c?s:Math.floor(s*Math.pow(10,c))/Math.pow(10,c)).toString();if(t._hideCountIf2&&2===s)o="",u="";else if(i){o="";for(var f=0;f<l.length;f++){var h=l[f];o+="."===h?r:i[h]}}else o=l.replace(".",r);var p,m=t[a];return p="function"==typeof m?m(s):m,t._numberFirst?p+u+o:o+u+p}function p(e,t){var r=function(e){var t=[e.language];if(d(e,"fallbacks")){if(!n(e.fallbacks)||!e.fallbacks.length)throw new Error("fallbacks must be an array with at least one element");t=t.concat(e.fallbacks)}for(var r=0;r<t.length;r++){var o=t[r];if(d(e.languages,o))return e.languages[o];if(d(i,o))return i[o]}throw new Error("No language found.")}(t);if(!e.length){var o=t.units;return h({unitName:o[o.length-1],unitCount:0},r,t)}var a,s=t.conjunction,u=t.serialComma;a=d(t,"delimiter")?t.delimiter:d(r,"delimiter")?r.delimiter:", ";for(var c=[],l=0;l<e.length;l++)c.push(h(e[l],r,t));return s&&1!==e.length?2===e.length?c.join(s):c.slice(0,-1).join(a)+(u?",":"")+s+c.slice(-1):c.join(a)}function m(t){var n=function(t,r){t=Math.abs(t);var i=e({},n,r||{}),o=function(e,t){var n,r,i,o,a=t.units,s=t.unitMeasures,u="largest"in t?t.largest:1/0;if(!a.length)return[];var c={};for(o=e,r=0;r<a.length;r++){var l=s[n=a[r]];i=r===a.length-1?o/l:Math.floor(o/l),c[n]=i,o-=i*l}if(t.round){var f=u;for(r=0;r<a.length;r++)if(0!==(i=c[n=a[r]])&&0==--f){for(var d=r+1;d<a.length;d++){var h=a[d],p=c[h];c[n]+=p*s[h]/s[n],c[h]=0}break}for(r=a.length-1;r>=0;r--)if(0!==(i=c[n=a[r]])){var m=Math.round(i);if(c[n]=m,0===r)break;var y=a[r-1],b=s[y],g=Math.floor(m*s[n]/b);if(!g)break;c[y]+=g,c[n]=0}}var v=[];for(r=0;r<a.length&&v.length<u;r++)(i=c[n=a[r]])&&v.push({unitName:n,unitCount:i});return v}(t,i);return p(o,i)};return e(n,{language:"en",spacer:" ",conjunction:"",serialComma:!0,units:["y","mo","w","d","h","m","s"],languages:{},round:!1,unitMeasures:{y:315576e5,mo:26298e5,w:6048e5,d:864e5,h:36e5,m:6e4,s:1e3,ms:1}},t)}var y=e(m({}),{getSupportedLanguages:function(){var e=[];for(var t in i)d(i,t)&&"gr"!==t&&e.push(t);return e},humanizer:m});void 0!==t&&t.exports?t.exports=y:this.humanizeDuration=y}()},{}],63:[function(e,t,n){var r=e("browser-split"),i=e("class-list"),o="undefined"==typeof window?e("html-element"):window,a=o.document,s=o.Text;function u(){var e=[];function t(){var t=[].slice.call(arguments),n=null;function o(t){var u,f,d;if(null==t);else if("string"==typeof t)n?n.appendChild(u=a.createTextNode(t)):(d=r(t,/([\.#]?[^\s#.]+)/),/^\.|#/.test(d[1])&&(n=a.createElement("div")),l(d,(function(e){var t=e.substring(1,e.length);e&&(n?"."===e[0]?i(n).add(t):"#"===e[0]&&n.setAttribute("id",t):n=a.createElement(e))})));else if("number"==typeof t||"boolean"==typeof t||t instanceof Date||t instanceof RegExp)n.appendChild(u=a.createTextNode(t.toString()));else if(f=t,"[object Array]"==Object.prototype.toString.call(f))l(t,o);else if(c(t))n.appendChild(u=t);else if(t instanceof s)n.appendChild(u=t);else if("object"==typeof t)for(var h in t)if("function"==typeof t[h])/^on\w+/.test(h)?function(t,r){n.addEventListener?(n.addEventListener(t.substring(2),r[t],!1),e.push((function(){n.removeEventListener(t.substring(2),r[t],!1)}))):(n.attachEvent(t,r[t]),e.push((function(){n.detachEvent(t,r[t])})))}(h,t):(n[h]=t[h](),e.push(t[h]((function(e){n[h]=e}))));else if("style"===h)if("string"==typeof t[h])n.style.cssText=t[h];else for(var p in t[h])!function(r,i){if("function"==typeof i)n.style.setProperty(r,i()),e.push(i((function(e){n.style.setProperty(r,e)})));else var o=t[h][r].match(/(.*)\W+!important\W*$/);o?n.style.setProperty(r,o[1],"important"):n.style.setProperty(r,t[h][r])}(p,t[h][p]);else if("attrs"===h)for(var m in t[h])n.setAttribute(m,t[h][m]);else"data-"===h.substr(0,5)?n.setAttribute(h,t[h]):n[h]=t[h];else if("function"==typeof t){m=t();n.appendChild(u=c(m)?m:a.createTextNode(m)),e.push(t((function(e){c(e)&&u.parentElement?(u.parentElement.replaceChild(e,u),u=e):u.textContent=e})))}return u}for(;t.length;)o(t.shift());return n}return t.cleanup=function(){for(var t=0;t<e.length;t++)e[t]();e.length=0},t}function c(e){return e&&e.nodeName&&e.nodeType}function l(e,t){if(e.forEach)return e.forEach(t);for(var n=0;n<e.length;n++)t(e[n],n)}(t.exports=u()).context=u},{"browser-split":17,"class-list":22,"html-element":16}],64:[function(e,t,n){
26
26
  /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
27
27
  n.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,u=(1<<s)-1,c=u>>1,l=-7,f=n?i-1:0,d=n?-1:1,h=e[t+f];for(f+=d,o=h&(1<<-l)-1,h>>=-l,l+=s;l>0;o=256*o+e[t+f],f+=d,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=r;l>0;a=256*a+e[t+f],f+=d,l-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),o-=c}return(h?-1:1)*a*Math.pow(2,o-r)},n.write=function(e,t,n,r,i,o){var a,s,u,c=8*o-i-1,l=(1<<c)-1,f=l>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:o-1,p=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+f>=1?d/u:d*Math.pow(2,1-f))*u>=2&&(a++,u/=2),a+f>=l?(s=0,a=l):a+f>=1?(s=(t*u-1)*Math.pow(2,i),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;e[n+h]=255&s,h+=p,s/=256,i-=8);for(a=a<<i|s,c+=i;c>0;e[n+h]=255&a,h+=p,a/=256,c-=8);e[n+h-p]|=128*m}},{}],65:[function(e,t,n){var r=[].indexOf;t.exports=function(e,t){if(r)return e.indexOf(t);for(var n=0;n<e.length;++n)if(e[n]===t)return n;return-1}},{}],66:[function(e,t,n){"function"==typeof Object.create?t.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},{}],67:[function(e,t,n){var r=[],i=[];function o(e,t){if(t=t||{},void 0===e)throw new Error("insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).");var n,o=!0===t.prepend?"prepend":"append",a=void 0!==t.container?t.container:document.querySelector("head"),s=r.indexOf(a);return-1===s&&(s=r.push(a)-1,i[s]={}),void 0!==i[s]&&void 0!==i[s][o]?n=i[s][o]:(n=i[s][o]=function(){var e=document.createElement("style");return e.setAttribute("type","text/css"),e}(),"prepend"===o?a.insertBefore(n,a.childNodes[0]):a.appendChild(n)),65279===e.charCodeAt(0)&&(e=e.substr(1,e.length)),n.styleSheet?n.styleSheet.cssText+=e:n.textContent+=e,n}t.exports=o,t.exports.insertCss=o},{}],68:[function(e,t,n){
28
28
  /*! npm.im/intervalometer */
29
29
  "use strict";function r(e,t,n,r){var i,o;function a(n){i=t(a,r),e(n-(o||n)),o=n}return{start:function(){i||a(0)},stop:function(){n(i),i=null,o=0}}}Object.defineProperty(n,"__esModule",{value:!0}),n.intervalometer=r,n.frameIntervalometer=function(e){return r(e,requestAnimationFrame,cancelAnimationFrame)},n.timerIntervalometer=function(e,t){return r(e,setTimeout,clearTimeout,t)}},{}],69:[function(e,t,n){
30
30
  /*! npm.im/iphone-inline-video 2.2.2 */
31
- "use strict";var r=e("intervalometer");function i(e,t,n){function r(r){n&&!n(e,t)||r.stopImmediatePropagation()}return e.addEventListener(t,r),r}function o(e,t,n,r){function i(e){n[t]=e}r&&i(e[t]),Object.defineProperty(e,t,{get:function(){return n[t]},set:i})}function a(e,t,n){n.addEventListener(t,(function(){return e.dispatchEvent(new Event(t))}))}function s(e,t){Promise.resolve().then((function(){e.dispatchEvent(new Event(t))}))}var u="object"==typeof document&&"object-fit"in document.head.style&&!matchMedia("(-webkit-video-playable-inline)").matches,c="bfred-it:iphone-inline-video",l="bfred-it:iphone-inline-video:event",f="bfred-it:iphone-inline-video:nativeplay",d="bfred-it:iphone-inline-video:nativepause";var h,p=[],m=0;function y(e,t,n){(h||0)+200<Date.now()&&(e[l]=!0,h=Date.now()),n||(e.currentTime=t),p[++m%3]=100*t|0}function b(e){return e.driver.currentTime>=e.video.duration}function g(e){var t=this;t.video.readyState>=t.video.HAVE_FUTURE_DATA?(t.hasAudio||(t.driver.currentTime=t.video.currentTime+e*t.video.playbackRate/1e3,t.video.loop&&b(t)&&(t.driver.currentTime=0)),y(t.video,t.driver.currentTime)):t.video.networkState===t.video.NETWORK_IDLE&&0===t.video.buffered.length&&t.video.load(),t.video.ended&&(delete t.video[l],t.video.pause(!0))}function v(){var e=this,t=e[c];e.webkitDisplayingFullscreen?e[f]():("data:"!==t.driver.src&&t.driver.src!==e.src&&(y(e,0,!0),t.driver.src=e.src),e.paused&&(t.paused=!1,0===e.buffered.length&&e.load(),t.driver.play(),t.updater.start(),t.hasAudio||(s(e,"play"),t.video.readyState>=t.video.HAVE_ENOUGH_DATA&&s(e,"playing"))))}function w(e){var t=this,n=t[c];n.driver.pause(),n.updater.stop(),t.webkitDisplayingFullscreen&&t[d](),n.paused&&!e||(n.paused=!0,n.hasAudio||s(t,"pause"),t.ended&&!t.webkitDisplayingFullscreen&&(t[l]=!0,s(t,"ended")))}function E(e,t){var n={};e[c]=n,n.paused=!0,n.hasAudio=t,n.video=e,n.updater=r.frameIntervalometer(g.bind(n)),t?n.driver=function(e){var t=new Audio;return a(e,"play",t),a(e,"playing",t),a(e,"pause",t),t.crossOrigin=e.crossOrigin,t.src=e.src||e.currentSrc||"data:",t}(e):(e.addEventListener("canplay",(function(){e.paused||s(e,"playing")})),n.driver={src:e.src||e.currentSrc||"data:",muted:!0,paused:!0,pause:function(){n.driver.paused=!0},play:function(){n.driver.paused=!1,b(n)&&y(e,0)},get ended(){return b(n)}}),e.addEventListener("emptied",(function(){var r=!n.driver.src||"data:"===n.driver.src;n.driver.src&&n.driver.src!==e.src&&(y(e,0,!0),n.driver.src=e.src,r||!t&&e.autoplay?n.driver.play():n.updater.stop())}),!1),e.addEventListener("webkitbeginfullscreen",(function(){e.paused?t&&0===n.driver.buffered.length&&n.driver.load():(e.pause(),e[f]())})),t&&(e.addEventListener("webkitendfullscreen",(function(){n.driver.currentTime=e.currentTime})),e.addEventListener("seeking",(function(){p.indexOf(100*e.currentTime|0)<0&&(n.driver.currentTime=e.currentTime)})))}function _(e){var t=e[l];return delete e[l],!e.webkitDisplayingFullscreen&&!t}t.exports=function(e,t){if(void 0===t&&(t={}),!e[c]){if(!t.everywhere){if(!u)return;if(!(t.iPad||t.ipad?/iPhone|iPod|iPad/:/iPhone|iPod/).test(navigator.userAgent))return}e.pause();var n=e.autoplay;e.autoplay=!1,E(e,!e.muted),function(e){var t=e[c];e[f]=e.play,e[d]=e.pause,e.play=v,e.pause=w,o(e,"paused",t.driver),o(e,"muted",t.driver,!0),o(e,"playbackRate",t.driver,!0),o(e,"ended",t.driver),o(e,"loop",t.driver,!0),i(e,"seeking",(function(e){return!e.webkitDisplayingFullscreen})),i(e,"seeked",(function(e){return!e.webkitDisplayingFullscreen})),i(e,"timeupdate",_),i(e,"ended",_)}(e),e.classList.add("IIV"),e.muted&&n&&(e.play(),e.addEventListener("playing",(function t(){e.autoplay=!0,e.removeEventListener("playing",t)}))),/iPhone|iPod|iPad/.test(navigator.platform)||console.warn("iphone-inline-video is not guaranteed to work in emulated environments")}}},{intervalometer:68}],70:[function(e,t,n){"use strict";t.exports=Number.isFinite||function(e){return!("number"!=typeof e||e!=e||e===1/0||e===-1/0)}},{}],71:[function(e,t,n){t.exports=function(e){return 0!==e&&!(e&e-1)}},{}],72:[function(e,t,n){var r={}.toString;t.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},{}],73:[function(e,t,n){"use strict";t.exports=function(e){var t,n={};if(!(e instanceof Object)||Array.isArray(e))throw new Error("keyMirror(...): Argument must be an object.");for(t in e)e.hasOwnProperty(t)&&(n[t]=t);return n}},{}],74:[function(e,t,n){"use strict";var r=e("is-finite");t.exports=Number.isInteger||function(e){return r(e)&&Math.floor(e)===e}},{"is-finite":70}],75:[function(e,t,n){(function(n){(function(){var r="function"==typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=r&&i&&"function"==typeof i.get?i.get:null,a=r&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,u=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=s&&u&&"function"==typeof u.get?u.get:null,l=s&&Set.prototype.forEach,f="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,d="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,h="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,p=Boolean.prototype.valueOf,m=Object.prototype.toString,y=Function.prototype.toString,b=String.prototype.match,g=String.prototype.slice,v=String.prototype.replace,w=String.prototype.toUpperCase,E=String.prototype.toLowerCase,_=RegExp.prototype.test,R=Array.prototype.concat,S=Array.prototype.join,A=Array.prototype.slice,O=Math.floor,k="function"==typeof BigInt?BigInt.prototype.valueOf:null,T=Object.getOwnPropertySymbols,x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,j="function"==typeof Symbol&&"object"==typeof Symbol.iterator,D="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===j||"symbol")?Symbol.toStringTag:null,M=Object.prototype.propertyIsEnumerable,C=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function I(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||_.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var r=e<0?-O(-e):O(e);if(r!==e){var i=String(r),o=g.call(t,i.length+1);return v.call(i,n,"$&_")+"."+v.call(v.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return v.call(t,n,"$&_")}var N=e("./util.inspect"),L=N.custom,P=W(L)?L:null;function B(e,t,n){var r="double"===(n.quoteStyle||t)?'"':"'";return r+e+r}function U(e){return v.call(String(e),/"/g,"&quot;")}function F(e){return!("[object Array]"!==z(e)||D&&"object"==typeof e&&D in e)}function q(e){return!("[object RegExp]"!==z(e)||D&&"object"==typeof e&&D in e)}function W(e){if(j)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!x)return!1;try{return x.call(e),!0}catch(e){}return!1}t.exports=function e(t,r,i,s){var u=r||{};if(V(u,"quoteStyle")&&"single"!==u.quoteStyle&&"double"!==u.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(V(u,"maxStringLength")&&("number"==typeof u.maxStringLength?u.maxStringLength<0&&u.maxStringLength!==1/0:null!==u.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var m=!V(u,"customInspect")||u.customInspect;if("boolean"!=typeof m&&"symbol"!==m)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(V(u,"indent")&&null!==u.indent&&"\t"!==u.indent&&!(parseInt(u.indent,10)===u.indent&&u.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(V(u,"numericSeparator")&&"boolean"!=typeof u.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var w=u.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return $(t,u);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var _=String(t);return w?I(t,_):_}if("bigint"==typeof t){var O=String(t)+"n";return w?I(t,O):O}var T=void 0===u.depth?5:u.depth;if(void 0===i&&(i=0),i>=T&&T>0&&"object"==typeof t)return F(t)?"[Array]":"[Object]";var L=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=S.call(Array(e.indent+1)," ")}return{base:n,prev:S.call(Array(t+1),n)}}(u,i);if(void 0===s)s=[];else if(G(s,t)>=0)return"[Circular]";function H(t,n,r){if(n&&(s=A.call(s)).push(n),r){var o={depth:u.depth};return V(u,"quoteStyle")&&(o.quoteStyle=u.quoteStyle),e(t,o,i+1,s)}return e(t,u,i+1,s)}if("function"==typeof t&&!q(t)){var Y=function(e){if(e.name)return e.name;var t=b.call(y.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),ee=Z(t,H);return"[Function"+(Y?": "+Y:" (anonymous)")+"]"+(ee.length>0?" { "+S.call(ee,", ")+" }":"")}if(W(t)){var te=j?v.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):x.call(t);return"object"!=typeof t||j?te:K(te)}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(t)){for(var ne="<"+E.call(String(t.nodeName)),re=t.attributes||[],ie=0;ie<re.length;ie++)ne+=" "+re[ie].name+"="+B(U(re[ie].value),"double",u);return ne+=">",t.childNodes&&t.childNodes.length&&(ne+="..."),ne+="</"+E.call(String(t.nodeName))+">"}if(F(t)){if(0===t.length)return"[]";var oe=Z(t,H);return L&&!function(e){for(var t=0;t<e.length;t++)if(G(e[t],"\n")>=0)return!1;return!0}(oe)?"["+Q(oe,L)+"]":"[ "+S.call(oe,", ")+" ]"}if(function(e){return!("[object Error]"!==z(e)||D&&"object"==typeof e&&D in e)}(t)){var ae=Z(t,H);return"cause"in Error.prototype||!("cause"in t)||M.call(t,"cause")?0===ae.length?"["+String(t)+"]":"{ ["+String(t)+"] "+S.call(ae,", ")+" }":"{ ["+String(t)+"] "+S.call(R.call("[cause]: "+H(t.cause),ae),", ")+" }"}if("object"==typeof t&&m){if(P&&"function"==typeof t[P]&&N)return N(t,{depth:T-i});if("symbol"!==m&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!o||!e||"object"!=typeof e)return!1;try{o.call(e);try{c.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var se=[];return a&&a.call(t,(function(e,n){se.push(H(n,t,!0)+" => "+H(e,t))})),X("Map",o.call(t),se,L)}if(function(e){if(!c||!e||"object"!=typeof e)return!1;try{c.call(e);try{o.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var ue=[];return l&&l.call(t,(function(e){ue.push(H(e,t))})),X("Set",c.call(t),ue,L)}if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{f.call(e,f);try{d.call(e,d)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return J("WeakMap");if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{d.call(e,d);try{f.call(e,f)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return J("WeakSet");if(function(e){if(!h||!e||"object"!=typeof e)return!1;try{return h.call(e),!0}catch(e){}return!1}(t))return J("WeakRef");if(function(e){return!("[object Number]"!==z(e)||D&&"object"==typeof e&&D in e)}(t))return K(H(Number(t)));if(function(e){if(!e||"object"!=typeof e||!k)return!1;try{return k.call(e),!0}catch(e){}return!1}(t))return K(H(k.call(t)));if(function(e){return!("[object Boolean]"!==z(e)||D&&"object"==typeof e&&D in e)}(t))return K(p.call(t));if(function(e){return!("[object String]"!==z(e)||D&&"object"==typeof e&&D in e)}(t))return K(H(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||void 0!==n&&t===n)return"{ [object globalThis] }";if(!function(e){return!("[object Date]"!==z(e)||D&&"object"==typeof e&&D in e)}(t)&&!q(t)){var ce=Z(t,H),le=C?C(t)===Object.prototype:t instanceof Object||t.constructor===Object,fe=t instanceof Object?"":"null prototype",de=!le&&D&&Object(t)===t&&D in t?g.call(z(t),8,-1):fe?"Object":"",he=(le||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(de||fe?"["+S.call(R.call([],de||[],fe||[]),": ")+"] ":"");return 0===ce.length?he+"{}":L?he+"{"+Q(ce,L)+"}":he+"{ "+S.call(ce,", ")+" }"}return String(t)};var H=Object.prototype.hasOwnProperty||function(e){return e in this};function V(e,t){return H.call(e,t)}function z(e){return m.call(e)}function G(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function $(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return $(g.call(e,0,t.maxStringLength),t)+r}return B(v.call(v.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Y),"single",t)}function Y(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+w.call(t.toString(16))}function K(e){return"Object("+e+")"}function J(e){return e+" { ? }"}function X(e,t,n,r){return e+" ("+t+") {"+(r?Q(n,r):S.call(n,", "))+"}"}function Q(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+S.call(e,","+n)+"\n"+t.prev}function Z(e,t){var n=F(e),r=[];if(n){r.length=e.length;for(var i=0;i<e.length;i++)r[i]=V(e,i)?t(e[i],e):""}var o,a="function"==typeof T?T(e):[];if(j){o={};for(var s=0;s<a.length;s++)o["$"+a[s]]=a[s]}for(var u in e)V(e,u)&&(n&&String(Number(u))===u&&u<e.length||j&&o["$"+u]instanceof Symbol||(_.call(/[^\w$]/,u)?r.push(t(u,e)+": "+t(e[u],e)):r.push(u+": "+t(e[u],e))));if("function"==typeof T)for(var c=0;c<a.length;c++)M.call(e,a[c])&&r.push("["+t(a[c])+"]: "+t(e[a[c]],e));return r}}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./util.inspect":16}],76:[function(e,t,n){var r=e("wrappy");function i(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function o(e){var t=function(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},n=e.name||"Function wrapped with `once`";return t.onceError=n+" shouldn't be called more than once",t.called=!1,t}t.exports=r(i),t.exports.strict=r(o),i.proto=i((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return i(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return o(this)},configurable:!0})}))},{wrappy:115}],77:[function(e,t,n){(function(e){(function(){(function(){var n,r,i,o,a,s;"undefined"!=typeof performance&&null!==performance&&performance.now?t.exports=function(){return performance.now()}:null!=e&&e.hrtime?(t.exports=function(){return(n()-a)/1e6},r=e.hrtime,o=(n=function(){var e;return 1e9*(e=r())[0]+e[1]})(),s=1e9*e.uptime(),a=o-s):Date.now?(t.exports=function(){return Date.now()-i},i=Date.now()):(t.exports=function(){return(new Date).getTime()-i},i=(new Date).getTime())}).call(this)}).call(this)}).call(this,e("_process"))},{_process:79}],78:[function(e,t,n){(function(e){(function(){"use strict";void 0===e||!e.version||0===e.version.indexOf("v0.")||0===e.version.indexOf("v1.")&&0!==e.version.indexOf("v1.8.")?t.exports={nextTick:function(t,n,r,i){if("function"!=typeof t)throw new TypeError('"callback" argument must be a function');var o,a,s=arguments.length;switch(s){case 0:case 1:return e.nextTick(t);case 2:return e.nextTick((function(){t.call(null,n)}));case 3:return e.nextTick((function(){t.call(null,n,r)}));case 4:return e.nextTick((function(){t.call(null,n,r,i)}));default:for(o=new Array(s-1),a=0;a<o.length;)o[a++]=arguments[a];return e.nextTick((function(){t.apply(null,o)}))}}}:t.exports=e}).call(this)}).call(this,e("_process"))},{_process:79}],79:[function(e,t,n){var r,i,o=t.exports={};function a(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function u(e){if(r===setTimeout)return setTimeout(e,0);if((r===a||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:a}catch(e){r=a}try{i="function"==typeof clearTimeout?clearTimeout:s}catch(e){i=s}}();var c,l=[],f=!1,d=-1;function h(){f&&c&&(f=!1,c.length?l=c.concat(l):d=-1,l.length&&p())}function p(){if(!f){var e=u(h);f=!0;for(var t=l.length;t;){for(c=l,l=[];++d<t;)c&&c[d].run();d=-1,t=l.length}c=null,f=!1,function(e){if(i===clearTimeout)return clearTimeout(e);if((i===s||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(e);try{return i(e)}catch(t){try{return i.call(null,e)}catch(t){return i.call(this,e)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function y(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new m(e,t)),1!==l.length||f||u(p)},m.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=y,o.addListener=y,o.once=y,o.off=y,o.removeListener=y,o.removeAllListeners=y,o.emit=y,o.prependListener=y,o.prependOnceListener=y,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},{}],80:[function(e,t,n){"use strict";var r=String.prototype.replace,i=/%20/g,o="RFC1738",a="RFC3986";t.exports={default:a,formatters:{RFC1738:function(e){return r.call(e,i,"+")},RFC3986:function(e){return String(e)}},RFC1738:o,RFC3986:a}},{}],81:[function(e,t,n){"use strict";var r=e("./stringify"),i=e("./parse"),o=e("./formats");t.exports={formats:o,parse:i,stringify:r}},{"./formats":80,"./parse":82,"./stringify":83}],82:[function(e,t,n){"use strict";var r=e("./utils"),i=Object.prototype.hasOwnProperty,o=Array.isArray,a={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:r.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},s=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},u=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},c=function(e,t,n,r){if(e){var o=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,s=n.depth>0&&/(\[[^[\]]*])/.exec(o),c=s?o.slice(0,s.index):o,l=[];if(c){if(!n.plainObjects&&i.call(Object.prototype,c)&&!n.allowPrototypes)return;l.push(c)}for(var f=0;n.depth>0&&null!==(s=a.exec(o))&&f<n.depth;){if(f+=1,!n.plainObjects&&i.call(Object.prototype,s[1].slice(1,-1))&&!n.allowPrototypes)return;l.push(s[1])}if(s){if(!0===n.strictDepth)throw new RangeError("Input depth exceeded depth option of "+n.depth+" and strictDepth is true");l.push("["+o.slice(s.index)+"]")}return function(e,t,n,r){for(var i=r?t:u(t,n),o=e.length-1;o>=0;--o){var a,s=e[o];if("[]"===s&&n.parseArrays)a=n.allowEmptyArrays&&(""===i||n.strictNullHandling&&null===i)?[]:[].concat(i);else{a=n.plainObjects?Object.create(null):{};var c="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,l=n.decodeDotInKeys?c.replace(/%2E/g,"."):c,f=parseInt(l,10);n.parseArrays||""!==l?!isNaN(f)&&s!==l&&String(f)===l&&f>=0&&n.parseArrays&&f<=n.arrayLimit?(a=[])[f]=i:"__proto__"!==l&&(a[l]=i):a={0:i}}i=a}return i}(l,t,n,r)}};t.exports=function(e,t){var n=function(e){if(!e)return a;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?a.charset:e.charset,n=void 0===e.duplicates?a.duplicates:e.duplicates;if("combine"!==n&&"first"!==n&&"last"!==n)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||a.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:a.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:a.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,duplicates:n,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:a.strictDepth,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var l="string"==typeof e?function(e,t){var n={__proto__:null},c=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;c=c.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var l,f=t.parameterLimit===1/0?void 0:t.parameterLimit,d=c.split(t.delimiter,f),h=-1,p=t.charset;if(t.charsetSentinel)for(l=0;l<d.length;++l)0===d[l].indexOf("utf8=")&&("utf8=%E2%9C%93"===d[l]?p="utf-8":"utf8=%26%2310003%3B"===d[l]&&(p="iso-8859-1"),h=l,l=d.length);for(l=0;l<d.length;++l)if(l!==h){var m,y,b=d[l],g=b.indexOf("]="),v=-1===g?b.indexOf("="):g+1;-1===v?(m=t.decoder(b,a.decoder,p,"key"),y=t.strictNullHandling?null:""):(m=t.decoder(b.slice(0,v),a.decoder,p,"key"),y=r.maybeMap(u(b.slice(v+1),t),(function(e){return t.decoder(e,a.decoder,p,"value")}))),y&&t.interpretNumericEntities&&"iso-8859-1"===p&&(y=s(y)),b.indexOf("[]=")>-1&&(y=o(y)?[y]:y);var w=i.call(n,m);w&&"combine"===t.duplicates?n[m]=r.combine(n[m],y):w&&"last"!==t.duplicates||(n[m]=y)}return n}(e,n):e,f=n.plainObjects?Object.create(null):{},d=Object.keys(l),h=0;h<d.length;++h){var p=d[h],m=c(p,l[p],n,"string"==typeof e);f=r.merge(f,m,n)}return!0===n.allowSparse?f:r.compact(f)}},{"./utils":84}],83:[function(e,t,n){"use strict";var r=e("side-channel"),i=e("./utils"),o=e("./formats"),a=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},u=Array.isArray,c=Array.prototype.push,l=function(e,t){c.apply(e,u(t)?t:[t])},f=Date.prototype.toISOString,d=o.default,h={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:i.encode,encodeValuesOnly:!1,format:d,formatter:o.formatters[d],indices:!1,serializeDate:function(e){return f.call(e)},skipNulls:!1,strictNullHandling:!1},p={},m=function e(t,n,o,a,s,c,f,d,m,y,b,g,v,w,E,_,R,S){for(var A,O=t,k=S,T=0,x=!1;void 0!==(k=k.get(p))&&!x;){var j=k.get(t);if(T+=1,void 0!==j){if(j===T)throw new RangeError("Cyclic object value");x=!0}void 0===k.get(p)&&(T=0)}if("function"==typeof y?O=y(n,O):O instanceof Date?O=v(O):"comma"===o&&u(O)&&(O=i.maybeMap(O,(function(e){return e instanceof Date?v(e):e}))),null===O){if(c)return m&&!_?m(n,h.encoder,R,"key",w):n;O=""}if("string"==typeof(A=O)||"number"==typeof A||"boolean"==typeof A||"symbol"==typeof A||"bigint"==typeof A||i.isBuffer(O))return m?[E(_?n:m(n,h.encoder,R,"key",w))+"="+E(m(O,h.encoder,R,"value",w))]:[E(n)+"="+E(String(O))];var D,M=[];if(void 0===O)return M;if("comma"===o&&u(O))_&&m&&(O=i.maybeMap(O,m)),D=[{value:O.length>0?O.join(",")||null:void 0}];else if(u(y))D=y;else{var C=Object.keys(O);D=b?C.sort(b):C}var I=d?n.replace(/\./g,"%2E"):n,N=a&&u(O)&&1===O.length?I+"[]":I;if(s&&u(O)&&0===O.length)return N+"[]";for(var L=0;L<D.length;++L){var P=D[L],B="object"==typeof P&&void 0!==P.value?P.value:O[P];if(!f||null!==B){var U=g&&d?P.replace(/\./g,"%2E"):P,F=u(O)?"function"==typeof o?o(N,U):N:N+(g?"."+U:"["+U+"]");S.set(t,T);var q=r();q.set(p,S),l(M,e(B,F,o,a,s,c,f,d,"comma"===o&&_&&u(O)?null:m,y,b,g,v,w,E,_,R,q))}}return M};t.exports=function(e,t){var n,i=e,c=function(e){if(!e)return h;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||h.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=o.default;if(void 0!==e.format){if(!a.call(o.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r,i=o.formatters[n],c=h.filter;if(("function"==typeof e.filter||u(e.filter))&&(c=e.filter),r=e.arrayFormat in s?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":h.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var l=void 0===e.allowDots?!0===e.encodeDotInKeys||h.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:h.addQueryPrefix,allowDots:l,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:h.allowEmptyArrays,arrayFormat:r,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:h.charsetSentinel,commaRoundTrip:e.commaRoundTrip,delimiter:void 0===e.delimiter?h.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:h.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:h.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:h.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:h.encodeValuesOnly,filter:c,format:n,formatter:i,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:h.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:h.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:h.strictNullHandling}}(t);"function"==typeof c.filter?i=(0,c.filter)("",i):u(c.filter)&&(n=c.filter);var f=[];if("object"!=typeof i||null===i)return"";var d=s[c.arrayFormat],p="comma"===d&&c.commaRoundTrip;n||(n=Object.keys(i)),c.sort&&n.sort(c.sort);for(var y=r(),b=0;b<n.length;++b){var g=n[b];c.skipNulls&&null===i[g]||l(f,m(i[g],g,d,p,c.allowEmptyArrays,c.strictNullHandling,c.skipNulls,c.encodeDotInKeys,c.encode?c.encoder:null,c.filter,c.sort,c.allowDots,c.serializeDate,c.format,c.formatter,c.encodeValuesOnly,c.charset,y))}var v=f.join(c.delimiter),w=!0===c.addQueryPrefix?"?":"";return c.charsetSentinel&&("iso-8859-1"===c.charset?w+="utf8=%26%2310003%3B&":w+="utf8=%E2%9C%93&"),v.length>0?w+v:""}},{"./formats":80,"./utils":84,"side-channel":101}],84:[function(e,t,n){"use strict";var r=e("./formats"),i=Object.prototype.hasOwnProperty,o=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n},u=1024;t.exports={arrayToObject:s,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var i=t[r],a=i.obj[i.prop],s=Object.keys(a),u=0;u<s.length;++u){var c=s[u],l=a[c];"object"==typeof l&&null!==l&&-1===n.indexOf(l)&&(t.push({obj:a,prop:c}),n.push(l))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(o(n)){for(var r=[],i=0;i<n.length;++i)void 0!==n[i]&&r.push(n[i]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(e){return r}},encode:function(e,t,n,i,o){if(0===e.length)return e;var s=e;if("symbol"==typeof e?s=Symbol.prototype.toString.call(e):"string"!=typeof e&&(s=String(e)),"iso-8859-1"===n)return escape(s).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var c="",l=0;l<s.length;l+=u){for(var f=s.length>=u?s.slice(l,l+u):s,d=[],h=0;h<f.length;++h){var p=f.charCodeAt(h);45===p||46===p||95===p||126===p||p>=48&&p<=57||p>=65&&p<=90||p>=97&&p<=122||o===r.RFC1738&&(40===p||41===p)?d[d.length]=f.charAt(h):p<128?d[d.length]=a[p]:p<2048?d[d.length]=a[192|p>>6]+a[128|63&p]:p<55296||p>=57344?d[d.length]=a[224|p>>12]+a[128|p>>6&63]+a[128|63&p]:(h+=1,p=65536+((1023&p)<<10|1023&f.charCodeAt(h)),d[d.length]=a[240|p>>18]+a[128|p>>12&63]+a[128|p>>6&63]+a[128|63&p])}c+=d.join("")}return c},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(o(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},merge:function e(t,n,r){if(!n)return t;if("object"!=typeof n){if(o(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(r&&(r.plainObjects||r.allowPrototypes)||!i.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var a=t;return o(t)&&!o(n)&&(a=s(t,r)),o(t)&&o(n)?(n.forEach((function(n,o){if(i.call(t,o)){var a=t[o];a&&"object"==typeof a&&n&&"object"==typeof n?t[o]=e(a,n,r):t.push(n)}else t[o]=n})),t):Object.keys(n).reduce((function(t,o){var a=n[o];return i.call(t,o)?t[o]=e(t[o],a,r):t[o]=a,t}),a)}}},{"./formats":80}],85:[function(e,t,n){(function(n){(function(){for(var r=e("performance-now"),i="undefined"==typeof window?n:window,o=["moz","webkit"],a="AnimationFrame",s=i["request"+a],u=i["cancel"+a]||i["cancelRequest"+a],c=0;!s&&c<o.length;c++)s=i[o[c]+"Request"+a],u=i[o[c]+"Cancel"+a]||i[o[c]+"CancelRequest"+a];if(!s||!u){var l=0,f=0,d=[],h=1e3/60;s=function(e){if(0===d.length){var t=r(),n=Math.max(0,h-(t-l));l=n+t,setTimeout((function(){var e=d.slice(0);d.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(l)}catch(e){setTimeout((function(){throw e}),0)}}),Math.round(n))}return d.push({handle:++f,callback:e,cancelled:!1}),f},u=function(e){for(var t=0;t<d.length;t++)d[t].handle===e&&(d[t].cancelled=!0)}}t.exports=function(e){return s.call(i,e)},t.exports.cancel=function(){u.apply(i,arguments)},t.exports.polyfill=function(e){e||(e=i),e.requestAnimationFrame=s,e.cancelAnimationFrame=u}}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"performance-now":77}],86:[function(e,t,n){"use strict";var r=e("process-nextick-args"),i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};t.exports=f;var o=Object.create(e("core-util-is"));o.inherits=e("inherits");var a=e("./_stream_readable"),s=e("./_stream_writable");o.inherits(f,a);for(var u=i(s.prototype),c=0;c<u.length;c++){var l=u[c];f.prototype[l]||(f.prototype[l]=s.prototype[l])}function f(e){if(!(this instanceof f))return new f(e);a.call(this,e),s.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",d)}function d(){this.allowHalfOpen||this._writableState.ended||r.nextTick(h,this)}function h(e){e.end()}Object.defineProperty(f.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(f.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),f.prototype._destroy=function(e,t){this.push(null),this.end(),r.nextTick(t,e)}},{"./_stream_readable":88,"./_stream_writable":90,"core-util-is":26,inherits:66,"process-nextick-args":78}],87:[function(e,t,n){"use strict";t.exports=o;var r=e("./_stream_transform"),i=Object.create(e("core-util-is"));function o(e){if(!(this instanceof o))return new o(e);r.call(this,e)}i.inherits=e("inherits"),i.inherits(o,r),o.prototype._transform=function(e,t,n){n(null,e)}},{"./_stream_transform":89,"core-util-is":26,inherits:66}],88:[function(e,t,n){(function(n,r){(function(){"use strict";var i=e("process-nextick-args");t.exports=v;var o,a=e("isarray");v.ReadableState=g;e("events").EventEmitter;var s=function(e,t){return e.listeners(t).length},u=e("./internal/streams/stream"),c=e("safe-buffer").Buffer,l=(void 0!==r?r:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var f=Object.create(e("core-util-is"));f.inherits=e("inherits");var d=e("util"),h=void 0;h=d&&d.debuglog?d.debuglog("stream"):function(){};var p,m=e("./internal/streams/BufferList"),y=e("./internal/streams/destroy");f.inherits(v,u);var b=["error","close","destroy","pause","resume"];function g(t,n){t=t||{};var r=n instanceof(o=o||e("./_stream_duplex"));this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var i=t.highWaterMark,a=t.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(a||0===a)?a:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new m,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=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(p||(p=e("string_decoder/").StringDecoder),this.decoder=new p(t.encoding),this.encoding=t.encoding)}function v(t){if(o=o||e("./_stream_duplex"),!(this instanceof v))return new v(t);this._readableState=new g(t,this),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),u.call(this)}function w(e,t,n,r,i){var o,a=e._readableState;null===t?(a.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,S(e)}(e,a)):(i||(o=function(e,t){var n;r=t,c.isBuffer(r)||r instanceof l||"string"==typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk"));var r;return n}(a,t)),o?e.emit("error",o):a.objectMode||t&&t.length>0?("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===c.prototype||(t=function(e){return c.from(e)}(t)),r?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):E(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!n?(t=a.decoder.write(t),a.objectMode||0!==t.length?E(e,a,t,!1):O(e,a)):E(e,a,t,!1))):r||(a.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(a)}function E(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&S(e)),O(e,t)}Object.defineProperty(v.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),v.prototype.destroy=y.destroy,v.prototype._undestroy=y.undestroy,v.prototype._destroy=function(e,t){this.push(null),t(e)},v.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof e&&((t=t||r.defaultEncoding)!==r.encoding&&(e=c.from(e,t),t=""),n=!0),w(this,e,t,!1,n)},v.prototype.unshift=function(e){return w(this,e,null,!0,!1)},v.prototype.isPaused=function(){return!1===this._readableState.flowing},v.prototype.setEncoding=function(t){return p||(p=e("string_decoder/").StringDecoder),this._readableState.decoder=new p(t),this._readableState.encoding=t,this};var _=8388608;function R(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>=_?e=_:(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 S(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(h("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?i.nextTick(A,e):A(e))}function A(e){h("emit readable"),e.emit("readable"),j(e)}function O(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(k,e,t))}function k(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(h("maybeReadMore read 0"),e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}function T(e){h("readable nexttick read 0"),e.read(0)}function x(e,t){t.reading||(h("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),j(e),t.flowing&&!t.reading&&e.read(0)}function j(e){var t=e._readableState;for(h("flow",t.flowing);t.flowing&&null!==e.read(););}function D(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=function(e,t,n){var r;e<t.head.data.length?(r=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):r=e===t.head.data.length?t.shift():n?function(e,t){var n=t.head,r=1,i=n.data;e-=i.length;for(;n=n.next;){var o=n.data,a=e>o.length?o.length:e;if(a===o.length?i+=o:i+=o.slice(0,e),0===(e-=a)){a===o.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(a));break}++r}return t.length-=r,i}(e,t):function(e,t){var n=c.allocUnsafe(e),r=t.head,i=1;r.data.copy(n),e-=r.data.length;for(;r=r.next;){var o=r.data,a=e>o.length?o.length:e;if(o.copy(n,n.length-e,0,a),0===(e-=a)){a===o.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(a));break}++i}return t.length-=i,n}(e,t);return r}(e,t.buffer,t.decoder),n);var n}function M(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,i.nextTick(C,t,e))}function C(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function I(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}v.prototype.read=function(e){h("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return h("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?M(this):S(this),null;if(0===(e=R(e,t))&&t.ended)return 0===t.length&&M(this),null;var r,i=t.needReadable;return h("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&h("length less than watermark",i=!0),t.ended||t.reading?h("reading or ended",i=!1):i&&(h("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=R(n,t))),null===(r=e>0?D(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&M(this)),null!==r&&this.emit("data",r),r},v.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},v.prototype.pipe=function(e,t){var r=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,h("pipe count=%d opts=%j",o.pipesCount,t);var u=(!t||!1!==t.end)&&e!==n.stdout&&e!==n.stderr?l:v;function c(t,n){h("onunpipe"),t===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,h("cleanup"),e.removeListener("close",b),e.removeListener("finish",g),e.removeListener("drain",f),e.removeListener("error",y),e.removeListener("unpipe",c),r.removeListener("end",l),r.removeListener("end",v),r.removeListener("data",m),d=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||f())}function l(){h("onend"),e.end()}o.endEmitted?i.nextTick(u):r.once("end",u),e.on("unpipe",c);var f=function(e){return function(){var t=e._readableState;h("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,j(e))}}(r);e.on("drain",f);var d=!1;var p=!1;function m(t){h("ondata"),p=!1,!1!==e.write(t)||p||((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==I(o.pipes,e))&&!d&&(h("false write response, pause",o.awaitDrain),o.awaitDrain++,p=!0),r.pause())}function y(t){h("onerror",t),v(),e.removeListener("error",y),0===s(e,"error")&&e.emit("error",t)}function b(){e.removeListener("finish",g),v()}function g(){h("onfinish"),e.removeListener("close",b),v()}function v(){h("unpipe"),r.unpipe(e)}return r.on("data",m),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?a(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",y),e.once("close",b),e.once("finish",g),e.emit("pipe",r),o.flowing||(h("pipe resume"),r.resume()),e},v.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)r[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=I(t.pipes,e);return-1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n)),this},v.prototype.on=function(e,t){var n=u.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&S(this):i.nextTick(T,this))}return n},v.prototype.addListener=v.prototype.on,v.prototype.resume=function(){var e=this._readableState;return e.flowing||(h("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(x,e,t))}(this,e)),this},v.prototype.pause=function(){return h("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(h("pause"),this._readableState.flowing=!1,this.emit("pause")),this},v.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on("end",(function(){if(h("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){(h("wrapped data"),n.decoder&&(i=n.decoder.write(i)),n.objectMode&&null==i)||(n.objectMode||i&&i.length)&&(t.push(i)||(r=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<b.length;o++)e.on(b[o],this.emit.bind(this,b[o]));return this._read=function(t){h("wrapped _read",t),r&&(r=!1,e.resume())},this},Object.defineProperty(v.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),v._fromList=D}).call(this)}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./_stream_duplex":86,"./internal/streams/BufferList":91,"./internal/streams/destroy":92,"./internal/streams/stream":93,_process:79,"core-util-is":26,events:44,inherits:66,isarray:72,"process-nextick-args":78,"safe-buffer":94,"string_decoder/":95,util:16}],89:[function(e,t,n){"use strict";t.exports=a;var r=e("./_stream_duplex"),i=Object.create(e("core-util-is"));function o(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function a(e){if(!(this instanceof a))return new a(e);r.call(this,e),this._transformState={afterTransform:o.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",s)}function s(){var e=this;"function"==typeof this._flush?this._flush((function(t,n){u(e,t,n)})):u(this,null,null)}function u(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}i.inherits=e("inherits"),i.inherits(a,r),a.prototype.push=function(e,t){return this._transformState.needTransform=!1,r.prototype.push.call(this,e,t)},a.prototype._transform=function(e,t,n){throw new Error("_transform() is not implemented")},a.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},a.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},a.prototype._destroy=function(e,t){var n=this;r.prototype._destroy.call(this,e,(function(e){t(e),n.emit("close")}))}},{"./_stream_duplex":86,"core-util-is":26,inherits:66}],90:[function(e,t,n){(function(n,r,i){(function(){"use strict";var o=e("process-nextick-args");function a(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;e.entry=null;for(;r;){var i=r.callback;t.pendingcb--,i(n),r=r.next}t.corkedRequestsFree.next=e}(t,e)}}t.exports=g;var s,u=!n.browser&&["v0.10","v0.9."].indexOf(n.version.slice(0,5))>-1?i:o.nextTick;g.WritableState=b;var c=Object.create(e("core-util-is"));c.inherits=e("inherits");var l={deprecate:e("util-deprecate")},f=e("./internal/streams/stream"),d=e("safe-buffer").Buffer,h=(void 0!==r?r:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var p,m=e("./internal/streams/destroy");function y(){}function b(t,n){s=s||e("./_stream_duplex"),t=t||{};var r=n instanceof s;this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var i=t.highWaterMark,c=t.writableHighWaterMark,l=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(c||0===c)?c:l,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var f=!1===t.decodeStrings;this.decodeStrings=!f,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,i=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,i){--t.pendingcb,n?(o.nextTick(i,r),o.nextTick(S,e,t),e._writableState.errorEmitted=!0,e.emit("error",r)):(i(r),e._writableState.errorEmitted=!0,e.emit("error",r),S(e,t))}(e,n,r,t,i);else{var a=_(n);a||n.corked||n.bufferProcessing||!n.bufferedRequest||E(e,n),r?u(w,e,n,a,i):w(e,n,a,i)}}(n,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 a(this)}function g(t){if(s=s||e("./_stream_duplex"),!(p.call(g,this)||this instanceof s))return new g(t);this._writableState=new b(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),f.call(this)}function v(e,t,n,r,i,o,a){t.writelen=r,t.writecb=a,t.writing=!0,t.sync=!0,n?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function w(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),S(e,t)}function E(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,i=new Array(r),o=t.corkedRequestsFree;o.entry=n;for(var s=0,u=!0;n;)i[s]=n,n.isBuf||(u=!1),n=n.next,s+=1;i.allBuffers=u,v(e,t,!0,t.length,i,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new a(t),t.bufferedRequestCount=0}else{for(;n;){var c=n.chunk,l=n.encoding,f=n.callback;if(v(e,t,!1,t.objectMode?1:c.length,c,l,f),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function _(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function R(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=_(t);return n&&(!function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,o.nextTick(R,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),n}c.inherits(g,f),b.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(b.prototype,"buffer",{get:l.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(p=Function.prototype[Symbol.hasInstance],Object.defineProperty(g,Symbol.hasInstance,{value:function(e){return!!p.call(this,e)||this===g&&(e&&e._writableState instanceof b)}})):p=function(e){return e instanceof this},g.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},g.prototype.write=function(e,t,n){var r,i=this._writableState,a=!1,s=!i.objectMode&&(r=e,d.isBuffer(r)||r instanceof h);return s&&!d.isBuffer(e)&&(e=function(e){return d.from(e)}(e)),"function"==typeof t&&(n=t,t=null),s?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof n&&(n=y),i.ended?function(e,t){var n=new Error("write after end");e.emit("error",n),o.nextTick(t,n)}(this,n):(s||function(e,t,n,r){var i=!0,a=!1;return null===n?a=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||t.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),o.nextTick(r,a),i=!1),i}(this,i,e,n))&&(i.pendingcb++,a=function(e,t,n,r,i,o){if(!n){var a=function(e,t,n){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=d.from(t,n));return t}(t,r,i);r!==a&&(n=!0,i="buffer",r=a)}var s=t.objectMode?1:r.length;t.length+=s;var u=t.length<t.highWaterMark;u||(t.needDrain=!0);if(t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:o,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else v(e,t,!1,s,r,i,o);return u}(this,i,s,e,t,n)),a},g.prototype.cork=function(){this._writableState.corked++},g.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||E(this,e))},g.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(g.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),g.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},g.prototype._writev=null,g.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||function(e,t,n){t.ending=!0,S(e,t),n&&(t.finished?o.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,r,n)},Object.defineProperty(g.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),g.prototype.destroy=m.destroy,g.prototype._undestroy=m.undestroy,g.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this)}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("timers").setImmediate)},{"./_stream_duplex":86,"./internal/streams/destroy":92,"./internal/streams/stream":93,_process:79,"core-util-is":26,inherits:66,"process-nextick-args":78,"safe-buffer":94,timers:108,"util-deprecate":111}],91:[function(e,t,n){"use strict";var r=e("safe-buffer").Buffer,i=e("util");t.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},e.prototype.concat=function(e){if(0===this.length)return r.alloc(0);for(var t,n,i,o=r.allocUnsafe(e>>>0),a=this.head,s=0;a;)t=a.data,n=o,i=s,t.copy(n,i),s+=a.data.length,a=a.next;return o},e}(),i&&i.inspect&&i.inspect.custom&&(t.exports.prototype[i.inspect.custom]=function(){var e=i.inspect({length:this.length});return this.constructor.name+" "+e})},{"safe-buffer":94,util:16}],92:[function(e,t,n){"use strict";var r=e("process-nextick-args");function i(e,t){e.emit("error",t)}t.exports={destroy:function(e,t){var n=this,o=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return o||a?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,r.nextTick(i,this,e)):r.nextTick(i,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?n._writableState?n._writableState.errorEmitted||(n._writableState.errorEmitted=!0,r.nextTick(i,n,e)):r.nextTick(i,n,e):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.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},{"process-nextick-args":78}],93:[function(e,t,n){t.exports=e("events").EventEmitter},{events:44}],94:[function(e,t,n){var r=e("buffer"),i=r.Buffer;function o(e,t){for(var n in e)t[n]=e[n]}function a(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=r:(o(r,n),n.Buffer=a),o(i,a),a.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},a.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},{buffer:18}],95:[function(e,t,n){"use strict";var r=e("safe-buffer").Buffer,i=r.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(r.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=u,this.end=c,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=l,this.end=f,t=3;break;default:return this.write=d,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,n=function(e,t){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 u(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function c(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function l(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function f(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function d(e){return e.toString(this.encoding)}function h(e){return e&&e.length?this.write(e):""}n.StringDecoder=o,o.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||""},o.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},o.prototype.text=function(e,t){var n=function(e,t,n){var r=t.length-1;if(r<n)return 0;var i=a(t[r]);if(i>=0)return i>0&&(e.lastNeed=i-1),i;if(--r<n||-2===i)return 0;if(i=a(t[r]),i>=0)return i>0&&(e.lastNeed=i-2),i;if(--r<n||-2===i)return 0;if(i=a(t[r]),i>=0)return i>0&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},{"safe-buffer":94}],96:[function(e,t,n){(n=t.exports=e("./lib/_stream_readable.js")).Stream=n,n.Readable=n,n.Writable=e("./lib/_stream_writable.js"),n.Duplex=e("./lib/_stream_duplex.js"),n.Transform=e("./lib/_stream_transform.js"),n.PassThrough=e("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":86,"./lib/_stream_passthrough.js":87,"./lib/_stream_readable.js":88,"./lib/_stream_transform.js":89,"./lib/_stream_writable.js":90}],97:[function(e,t,n){
31
+ "use strict";var r=e("intervalometer");function i(e,t,n){function r(r){n&&!n(e,t)||r.stopImmediatePropagation()}return e.addEventListener(t,r),r}function o(e,t,n,r){function i(e){n[t]=e}r&&i(e[t]),Object.defineProperty(e,t,{get:function(){return n[t]},set:i})}function a(e,t,n){n.addEventListener(t,(function(){return e.dispatchEvent(new Event(t))}))}function s(e,t){Promise.resolve().then((function(){e.dispatchEvent(new Event(t))}))}var u="object"==typeof document&&"object-fit"in document.head.style&&!matchMedia("(-webkit-video-playable-inline)").matches,c="bfred-it:iphone-inline-video",l="bfred-it:iphone-inline-video:event",f="bfred-it:iphone-inline-video:nativeplay",d="bfred-it:iphone-inline-video:nativepause";var h,p=[],m=0;function y(e,t,n){(h||0)+200<Date.now()&&(e[l]=!0,h=Date.now()),n||(e.currentTime=t),p[++m%3]=100*t|0}function b(e){return e.driver.currentTime>=e.video.duration}function g(e){var t=this;t.video.readyState>=t.video.HAVE_FUTURE_DATA?(t.hasAudio||(t.driver.currentTime=t.video.currentTime+e*t.video.playbackRate/1e3,t.video.loop&&b(t)&&(t.driver.currentTime=0)),y(t.video,t.driver.currentTime)):t.video.networkState===t.video.NETWORK_IDLE&&0===t.video.buffered.length&&t.video.load(),t.video.ended&&(delete t.video[l],t.video.pause(!0))}function v(){var e=this,t=e[c];e.webkitDisplayingFullscreen?e[f]():("data:"!==t.driver.src&&t.driver.src!==e.src&&(y(e,0,!0),t.driver.src=e.src),e.paused&&(t.paused=!1,0===e.buffered.length&&e.load(),t.driver.play(),t.updater.start(),t.hasAudio||(s(e,"play"),t.video.readyState>=t.video.HAVE_ENOUGH_DATA&&s(e,"playing"))))}function w(e){var t=this,n=t[c];n.driver.pause(),n.updater.stop(),t.webkitDisplayingFullscreen&&t[d](),n.paused&&!e||(n.paused=!0,n.hasAudio||s(t,"pause"),t.ended&&!t.webkitDisplayingFullscreen&&(t[l]=!0,s(t,"ended")))}function E(e,t){var n={};e[c]=n,n.paused=!0,n.hasAudio=t,n.video=e,n.updater=r.frameIntervalometer(g.bind(n)),t?n.driver=function(e){var t=new Audio;return a(e,"play",t),a(e,"playing",t),a(e,"pause",t),t.crossOrigin=e.crossOrigin,t.src=e.src||e.currentSrc||"data:",t}(e):(e.addEventListener("canplay",(function(){e.paused||s(e,"playing")})),n.driver={src:e.src||e.currentSrc||"data:",muted:!0,paused:!0,pause:function(){n.driver.paused=!0},play:function(){n.driver.paused=!1,b(n)&&y(e,0)},get ended(){return b(n)}}),e.addEventListener("emptied",(function(){var r=!n.driver.src||"data:"===n.driver.src;n.driver.src&&n.driver.src!==e.src&&(y(e,0,!0),n.driver.src=e.src,r||!t&&e.autoplay?n.driver.play():n.updater.stop())}),!1),e.addEventListener("webkitbeginfullscreen",(function(){e.paused?t&&0===n.driver.buffered.length&&n.driver.load():(e.pause(),e[f]())})),t&&(e.addEventListener("webkitendfullscreen",(function(){n.driver.currentTime=e.currentTime})),e.addEventListener("seeking",(function(){p.indexOf(100*e.currentTime|0)<0&&(n.driver.currentTime=e.currentTime)})))}function _(e){var t=e[l];return delete e[l],!e.webkitDisplayingFullscreen&&!t}t.exports=function(e,t){if(void 0===t&&(t={}),!e[c]){if(!t.everywhere){if(!u)return;if(!(t.iPad||t.ipad?/iPhone|iPod|iPad/:/iPhone|iPod/).test(navigator.userAgent))return}e.pause();var n=e.autoplay;e.autoplay=!1,E(e,!e.muted),function(e){var t=e[c];e[f]=e.play,e[d]=e.pause,e.play=v,e.pause=w,o(e,"paused",t.driver),o(e,"muted",t.driver,!0),o(e,"playbackRate",t.driver,!0),o(e,"ended",t.driver),o(e,"loop",t.driver,!0),i(e,"seeking",(function(e){return!e.webkitDisplayingFullscreen})),i(e,"seeked",(function(e){return!e.webkitDisplayingFullscreen})),i(e,"timeupdate",_),i(e,"ended",_)}(e),e.classList.add("IIV"),e.muted&&n&&(e.play(),e.addEventListener("playing",(function t(){e.autoplay=!0,e.removeEventListener("playing",t)}))),/iPhone|iPod|iPad/.test(navigator.platform)||console.warn("iphone-inline-video is not guaranteed to work in emulated environments")}}},{intervalometer:68}],70:[function(e,t,n){"use strict";t.exports=Number.isFinite||function(e){return!("number"!=typeof e||e!=e||e===1/0||e===-1/0)}},{}],71:[function(e,t,n){t.exports=function(e){return 0!==e&&!(e&e-1)}},{}],72:[function(e,t,n){var r={}.toString;t.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},{}],73:[function(e,t,n){"use strict";t.exports=function(e){var t,n={};if(!(e instanceof Object)||Array.isArray(e))throw new Error("keyMirror(...): Argument must be an object.");for(t in e)e.hasOwnProperty(t)&&(n[t]=t);return n}},{}],74:[function(e,t,n){"use strict";var r=e("is-finite");t.exports=Number.isInteger||function(e){return r(e)&&Math.floor(e)===e}},{"is-finite":70}],75:[function(e,t,n){(function(n){(function(){var r="function"==typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=r&&i&&"function"==typeof i.get?i.get:null,a=r&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,u=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=s&&u&&"function"==typeof u.get?u.get:null,l=s&&Set.prototype.forEach,f="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,d="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,h="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,p=Boolean.prototype.valueOf,m=Object.prototype.toString,y=Function.prototype.toString,b=String.prototype.match,g=String.prototype.slice,v=String.prototype.replace,w=String.prototype.toUpperCase,E=String.prototype.toLowerCase,_=RegExp.prototype.test,R=Array.prototype.concat,S=Array.prototype.join,A=Array.prototype.slice,k=Math.floor,O="function"==typeof BigInt?BigInt.prototype.valueOf:null,T=Object.getOwnPropertySymbols,x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,j="function"==typeof Symbol&&"object"==typeof Symbol.iterator,D="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===j||"symbol")?Symbol.toStringTag:null,M=Object.prototype.propertyIsEnumerable,C=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function N(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||_.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var r=e<0?-k(-e):k(e);if(r!==e){var i=String(r),o=g.call(t,i.length+1);return v.call(i,n,"$&_")+"."+v.call(v.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return v.call(t,n,"$&_")}var I=e("./util.inspect"),L=I.custom,P=W(L)?L:null;function B(e,t,n){var r="double"===(n.quoteStyle||t)?'"':"'";return r+e+r}function U(e){return v.call(String(e),/"/g,"&quot;")}function F(e){return!("[object Array]"!==z(e)||D&&"object"==typeof e&&D in e)}function q(e){return!("[object RegExp]"!==z(e)||D&&"object"==typeof e&&D in e)}function W(e){if(j)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!x)return!1;try{return x.call(e),!0}catch(e){}return!1}t.exports=function e(t,r,i,s){var u=r||{};if(V(u,"quoteStyle")&&"single"!==u.quoteStyle&&"double"!==u.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(V(u,"maxStringLength")&&("number"==typeof u.maxStringLength?u.maxStringLength<0&&u.maxStringLength!==1/0:null!==u.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var m=!V(u,"customInspect")||u.customInspect;if("boolean"!=typeof m&&"symbol"!==m)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(V(u,"indent")&&null!==u.indent&&"\t"!==u.indent&&!(parseInt(u.indent,10)===u.indent&&u.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(V(u,"numericSeparator")&&"boolean"!=typeof u.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var w=u.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return $(t,u);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var _=String(t);return w?N(t,_):_}if("bigint"==typeof t){var k=String(t)+"n";return w?N(t,k):k}var T=void 0===u.depth?5:u.depth;if(void 0===i&&(i=0),i>=T&&T>0&&"object"==typeof t)return F(t)?"[Array]":"[Object]";var L=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=S.call(Array(e.indent+1)," ")}return{base:n,prev:S.call(Array(t+1),n)}}(u,i);if(void 0===s)s=[];else if(G(s,t)>=0)return"[Circular]";function H(t,n,r){if(n&&(s=A.call(s)).push(n),r){var o={depth:u.depth};return V(u,"quoteStyle")&&(o.quoteStyle=u.quoteStyle),e(t,o,i+1,s)}return e(t,u,i+1,s)}if("function"==typeof t&&!q(t)){var Y=function(e){if(e.name)return e.name;var t=b.call(y.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),ee=Z(t,H);return"[Function"+(Y?": "+Y:" (anonymous)")+"]"+(ee.length>0?" { "+S.call(ee,", ")+" }":"")}if(W(t)){var te=j?v.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):x.call(t);return"object"!=typeof t||j?te:K(te)}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(t)){for(var ne="<"+E.call(String(t.nodeName)),re=t.attributes||[],ie=0;ie<re.length;ie++)ne+=" "+re[ie].name+"="+B(U(re[ie].value),"double",u);return ne+=">",t.childNodes&&t.childNodes.length&&(ne+="..."),ne+="</"+E.call(String(t.nodeName))+">"}if(F(t)){if(0===t.length)return"[]";var oe=Z(t,H);return L&&!function(e){for(var t=0;t<e.length;t++)if(G(e[t],"\n")>=0)return!1;return!0}(oe)?"["+Q(oe,L)+"]":"[ "+S.call(oe,", ")+" ]"}if(function(e){return!("[object Error]"!==z(e)||D&&"object"==typeof e&&D in e)}(t)){var ae=Z(t,H);return"cause"in Error.prototype||!("cause"in t)||M.call(t,"cause")?0===ae.length?"["+String(t)+"]":"{ ["+String(t)+"] "+S.call(ae,", ")+" }":"{ ["+String(t)+"] "+S.call(R.call("[cause]: "+H(t.cause),ae),", ")+" }"}if("object"==typeof t&&m){if(P&&"function"==typeof t[P]&&I)return I(t,{depth:T-i});if("symbol"!==m&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!o||!e||"object"!=typeof e)return!1;try{o.call(e);try{c.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var se=[];return a&&a.call(t,(function(e,n){se.push(H(n,t,!0)+" => "+H(e,t))})),X("Map",o.call(t),se,L)}if(function(e){if(!c||!e||"object"!=typeof e)return!1;try{c.call(e);try{o.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var ue=[];return l&&l.call(t,(function(e){ue.push(H(e,t))})),X("Set",c.call(t),ue,L)}if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{f.call(e,f);try{d.call(e,d)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return J("WeakMap");if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{d.call(e,d);try{f.call(e,f)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return J("WeakSet");if(function(e){if(!h||!e||"object"!=typeof e)return!1;try{return h.call(e),!0}catch(e){}return!1}(t))return J("WeakRef");if(function(e){return!("[object Number]"!==z(e)||D&&"object"==typeof e&&D in e)}(t))return K(H(Number(t)));if(function(e){if(!e||"object"!=typeof e||!O)return!1;try{return O.call(e),!0}catch(e){}return!1}(t))return K(H(O.call(t)));if(function(e){return!("[object Boolean]"!==z(e)||D&&"object"==typeof e&&D in e)}(t))return K(p.call(t));if(function(e){return!("[object String]"!==z(e)||D&&"object"==typeof e&&D in e)}(t))return K(H(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||void 0!==n&&t===n)return"{ [object globalThis] }";if(!function(e){return!("[object Date]"!==z(e)||D&&"object"==typeof e&&D in e)}(t)&&!q(t)){var ce=Z(t,H),le=C?C(t)===Object.prototype:t instanceof Object||t.constructor===Object,fe=t instanceof Object?"":"null prototype",de=!le&&D&&Object(t)===t&&D in t?g.call(z(t),8,-1):fe?"Object":"",he=(le||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(de||fe?"["+S.call(R.call([],de||[],fe||[]),": ")+"] ":"");return 0===ce.length?he+"{}":L?he+"{"+Q(ce,L)+"}":he+"{ "+S.call(ce,", ")+" }"}return String(t)};var H=Object.prototype.hasOwnProperty||function(e){return e in this};function V(e,t){return H.call(e,t)}function z(e){return m.call(e)}function G(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function $(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return $(g.call(e,0,t.maxStringLength),t)+r}return B(v.call(v.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Y),"single",t)}function Y(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+w.call(t.toString(16))}function K(e){return"Object("+e+")"}function J(e){return e+" { ? }"}function X(e,t,n,r){return e+" ("+t+") {"+(r?Q(n,r):S.call(n,", "))+"}"}function Q(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+S.call(e,","+n)+"\n"+t.prev}function Z(e,t){var n=F(e),r=[];if(n){r.length=e.length;for(var i=0;i<e.length;i++)r[i]=V(e,i)?t(e[i],e):""}var o,a="function"==typeof T?T(e):[];if(j){o={};for(var s=0;s<a.length;s++)o["$"+a[s]]=a[s]}for(var u in e)V(e,u)&&(n&&String(Number(u))===u&&u<e.length||j&&o["$"+u]instanceof Symbol||(_.call(/[^\w$]/,u)?r.push(t(u,e)+": "+t(e[u],e)):r.push(u+": "+t(e[u],e))));if("function"==typeof T)for(var c=0;c<a.length;c++)M.call(e,a[c])&&r.push("["+t(a[c])+"]: "+t(e[a[c]],e));return r}}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./util.inspect":16}],76:[function(e,t,n){var r=e("wrappy");function i(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function o(e){var t=function(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},n=e.name||"Function wrapped with `once`";return t.onceError=n+" shouldn't be called more than once",t.called=!1,t}t.exports=r(i),t.exports.strict=r(o),i.proto=i((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return i(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return o(this)},configurable:!0})}))},{wrappy:115}],77:[function(e,t,n){(function(e){(function(){(function(){var n,r,i,o,a,s;"undefined"!=typeof performance&&null!==performance&&performance.now?t.exports=function(){return performance.now()}:null!=e&&e.hrtime?(t.exports=function(){return(n()-a)/1e6},r=e.hrtime,o=(n=function(){var e;return 1e9*(e=r())[0]+e[1]})(),s=1e9*e.uptime(),a=o-s):Date.now?(t.exports=function(){return Date.now()-i},i=Date.now()):(t.exports=function(){return(new Date).getTime()-i},i=(new Date).getTime())}).call(this)}).call(this)}).call(this,e("_process"))},{_process:79}],78:[function(e,t,n){(function(e){(function(){"use strict";void 0===e||!e.version||0===e.version.indexOf("v0.")||0===e.version.indexOf("v1.")&&0!==e.version.indexOf("v1.8.")?t.exports={nextTick:function(t,n,r,i){if("function"!=typeof t)throw new TypeError('"callback" argument must be a function');var o,a,s=arguments.length;switch(s){case 0:case 1:return e.nextTick(t);case 2:return e.nextTick((function(){t.call(null,n)}));case 3:return e.nextTick((function(){t.call(null,n,r)}));case 4:return e.nextTick((function(){t.call(null,n,r,i)}));default:for(o=new Array(s-1),a=0;a<o.length;)o[a++]=arguments[a];return e.nextTick((function(){t.apply(null,o)}))}}}:t.exports=e}).call(this)}).call(this,e("_process"))},{_process:79}],79:[function(e,t,n){var r,i,o=t.exports={};function a(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function u(e){if(r===setTimeout)return setTimeout(e,0);if((r===a||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:a}catch(e){r=a}try{i="function"==typeof clearTimeout?clearTimeout:s}catch(e){i=s}}();var c,l=[],f=!1,d=-1;function h(){f&&c&&(f=!1,c.length?l=c.concat(l):d=-1,l.length&&p())}function p(){if(!f){var e=u(h);f=!0;for(var t=l.length;t;){for(c=l,l=[];++d<t;)c&&c[d].run();d=-1,t=l.length}c=null,f=!1,function(e){if(i===clearTimeout)return clearTimeout(e);if((i===s||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(e);try{return i(e)}catch(t){try{return i.call(null,e)}catch(t){return i.call(this,e)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function y(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new m(e,t)),1!==l.length||f||u(p)},m.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=y,o.addListener=y,o.once=y,o.off=y,o.removeListener=y,o.removeAllListeners=y,o.emit=y,o.prependListener=y,o.prependOnceListener=y,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},{}],80:[function(e,t,n){"use strict";var r=String.prototype.replace,i=/%20/g,o="RFC1738",a="RFC3986";t.exports={default:a,formatters:{RFC1738:function(e){return r.call(e,i,"+")},RFC3986:function(e){return String(e)}},RFC1738:o,RFC3986:a}},{}],81:[function(e,t,n){"use strict";var r=e("./stringify"),i=e("./parse"),o=e("./formats");t.exports={formats:o,parse:i,stringify:r}},{"./formats":80,"./parse":82,"./stringify":83}],82:[function(e,t,n){"use strict";var r=e("./utils"),i=Object.prototype.hasOwnProperty,o=Array.isArray,a={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:r.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},s=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},u=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},c=function(e,t,n,r){if(e){var o=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,s=n.depth>0&&/(\[[^[\]]*])/.exec(o),c=s?o.slice(0,s.index):o,l=[];if(c){if(!n.plainObjects&&i.call(Object.prototype,c)&&!n.allowPrototypes)return;l.push(c)}for(var f=0;n.depth>0&&null!==(s=a.exec(o))&&f<n.depth;){if(f+=1,!n.plainObjects&&i.call(Object.prototype,s[1].slice(1,-1))&&!n.allowPrototypes)return;l.push(s[1])}if(s){if(!0===n.strictDepth)throw new RangeError("Input depth exceeded depth option of "+n.depth+" and strictDepth is true");l.push("["+o.slice(s.index)+"]")}return function(e,t,n,r){for(var i=r?t:u(t,n),o=e.length-1;o>=0;--o){var a,s=e[o];if("[]"===s&&n.parseArrays)a=n.allowEmptyArrays&&(""===i||n.strictNullHandling&&null===i)?[]:[].concat(i);else{a=n.plainObjects?Object.create(null):{};var c="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,l=n.decodeDotInKeys?c.replace(/%2E/g,"."):c,f=parseInt(l,10);n.parseArrays||""!==l?!isNaN(f)&&s!==l&&String(f)===l&&f>=0&&n.parseArrays&&f<=n.arrayLimit?(a=[])[f]=i:"__proto__"!==l&&(a[l]=i):a={0:i}}i=a}return i}(l,t,n,r)}};t.exports=function(e,t){var n=function(e){if(!e)return a;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?a.charset:e.charset,n=void 0===e.duplicates?a.duplicates:e.duplicates;if("combine"!==n&&"first"!==n&&"last"!==n)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||a.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:a.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:a.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,duplicates:n,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:a.strictDepth,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var l="string"==typeof e?function(e,t){var n={__proto__:null},c=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;c=c.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var l,f=t.parameterLimit===1/0?void 0:t.parameterLimit,d=c.split(t.delimiter,f),h=-1,p=t.charset;if(t.charsetSentinel)for(l=0;l<d.length;++l)0===d[l].indexOf("utf8=")&&("utf8=%E2%9C%93"===d[l]?p="utf-8":"utf8=%26%2310003%3B"===d[l]&&(p="iso-8859-1"),h=l,l=d.length);for(l=0;l<d.length;++l)if(l!==h){var m,y,b=d[l],g=b.indexOf("]="),v=-1===g?b.indexOf("="):g+1;-1===v?(m=t.decoder(b,a.decoder,p,"key"),y=t.strictNullHandling?null:""):(m=t.decoder(b.slice(0,v),a.decoder,p,"key"),y=r.maybeMap(u(b.slice(v+1),t),(function(e){return t.decoder(e,a.decoder,p,"value")}))),y&&t.interpretNumericEntities&&"iso-8859-1"===p&&(y=s(y)),b.indexOf("[]=")>-1&&(y=o(y)?[y]:y);var w=i.call(n,m);w&&"combine"===t.duplicates?n[m]=r.combine(n[m],y):w&&"last"!==t.duplicates||(n[m]=y)}return n}(e,n):e,f=n.plainObjects?Object.create(null):{},d=Object.keys(l),h=0;h<d.length;++h){var p=d[h],m=c(p,l[p],n,"string"==typeof e);f=r.merge(f,m,n)}return!0===n.allowSparse?f:r.compact(f)}},{"./utils":84}],83:[function(e,t,n){"use strict";var r=e("side-channel"),i=e("./utils"),o=e("./formats"),a=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},u=Array.isArray,c=Array.prototype.push,l=function(e,t){c.apply(e,u(t)?t:[t])},f=Date.prototype.toISOString,d=o.default,h={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:i.encode,encodeValuesOnly:!1,format:d,formatter:o.formatters[d],indices:!1,serializeDate:function(e){return f.call(e)},skipNulls:!1,strictNullHandling:!1},p={},m=function e(t,n,o,a,s,c,f,d,m,y,b,g,v,w,E,_,R,S){for(var A,k=t,O=S,T=0,x=!1;void 0!==(O=O.get(p))&&!x;){var j=O.get(t);if(T+=1,void 0!==j){if(j===T)throw new RangeError("Cyclic object value");x=!0}void 0===O.get(p)&&(T=0)}if("function"==typeof y?k=y(n,k):k instanceof Date?k=v(k):"comma"===o&&u(k)&&(k=i.maybeMap(k,(function(e){return e instanceof Date?v(e):e}))),null===k){if(c)return m&&!_?m(n,h.encoder,R,"key",w):n;k=""}if("string"==typeof(A=k)||"number"==typeof A||"boolean"==typeof A||"symbol"==typeof A||"bigint"==typeof A||i.isBuffer(k))return m?[E(_?n:m(n,h.encoder,R,"key",w))+"="+E(m(k,h.encoder,R,"value",w))]:[E(n)+"="+E(String(k))];var D,M=[];if(void 0===k)return M;if("comma"===o&&u(k))_&&m&&(k=i.maybeMap(k,m)),D=[{value:k.length>0?k.join(",")||null:void 0}];else if(u(y))D=y;else{var C=Object.keys(k);D=b?C.sort(b):C}var N=d?n.replace(/\./g,"%2E"):n,I=a&&u(k)&&1===k.length?N+"[]":N;if(s&&u(k)&&0===k.length)return I+"[]";for(var L=0;L<D.length;++L){var P=D[L],B="object"==typeof P&&void 0!==P.value?P.value:k[P];if(!f||null!==B){var U=g&&d?P.replace(/\./g,"%2E"):P,F=u(k)?"function"==typeof o?o(I,U):I:I+(g?"."+U:"["+U+"]");S.set(t,T);var q=r();q.set(p,S),l(M,e(B,F,o,a,s,c,f,d,"comma"===o&&_&&u(k)?null:m,y,b,g,v,w,E,_,R,q))}}return M};t.exports=function(e,t){var n,i=e,c=function(e){if(!e)return h;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||h.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=o.default;if(void 0!==e.format){if(!a.call(o.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r,i=o.formatters[n],c=h.filter;if(("function"==typeof e.filter||u(e.filter))&&(c=e.filter),r=e.arrayFormat in s?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":h.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var l=void 0===e.allowDots?!0===e.encodeDotInKeys||h.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:h.addQueryPrefix,allowDots:l,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:h.allowEmptyArrays,arrayFormat:r,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:h.charsetSentinel,commaRoundTrip:e.commaRoundTrip,delimiter:void 0===e.delimiter?h.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:h.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:h.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:h.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:h.encodeValuesOnly,filter:c,format:n,formatter:i,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:h.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:h.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:h.strictNullHandling}}(t);"function"==typeof c.filter?i=(0,c.filter)("",i):u(c.filter)&&(n=c.filter);var f=[];if("object"!=typeof i||null===i)return"";var d=s[c.arrayFormat],p="comma"===d&&c.commaRoundTrip;n||(n=Object.keys(i)),c.sort&&n.sort(c.sort);for(var y=r(),b=0;b<n.length;++b){var g=n[b];c.skipNulls&&null===i[g]||l(f,m(i[g],g,d,p,c.allowEmptyArrays,c.strictNullHandling,c.skipNulls,c.encodeDotInKeys,c.encode?c.encoder:null,c.filter,c.sort,c.allowDots,c.serializeDate,c.format,c.formatter,c.encodeValuesOnly,c.charset,y))}var v=f.join(c.delimiter),w=!0===c.addQueryPrefix?"?":"";return c.charsetSentinel&&("iso-8859-1"===c.charset?w+="utf8=%26%2310003%3B&":w+="utf8=%E2%9C%93&"),v.length>0?w+v:""}},{"./formats":80,"./utils":84,"side-channel":101}],84:[function(e,t,n){"use strict";var r=e("./formats"),i=Object.prototype.hasOwnProperty,o=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n},u=1024;t.exports={arrayToObject:s,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var i=t[r],a=i.obj[i.prop],s=Object.keys(a),u=0;u<s.length;++u){var c=s[u],l=a[c];"object"==typeof l&&null!==l&&-1===n.indexOf(l)&&(t.push({obj:a,prop:c}),n.push(l))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(o(n)){for(var r=[],i=0;i<n.length;++i)void 0!==n[i]&&r.push(n[i]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(e){return r}},encode:function(e,t,n,i,o){if(0===e.length)return e;var s=e;if("symbol"==typeof e?s=Symbol.prototype.toString.call(e):"string"!=typeof e&&(s=String(e)),"iso-8859-1"===n)return escape(s).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var c="",l=0;l<s.length;l+=u){for(var f=s.length>=u?s.slice(l,l+u):s,d=[],h=0;h<f.length;++h){var p=f.charCodeAt(h);45===p||46===p||95===p||126===p||p>=48&&p<=57||p>=65&&p<=90||p>=97&&p<=122||o===r.RFC1738&&(40===p||41===p)?d[d.length]=f.charAt(h):p<128?d[d.length]=a[p]:p<2048?d[d.length]=a[192|p>>6]+a[128|63&p]:p<55296||p>=57344?d[d.length]=a[224|p>>12]+a[128|p>>6&63]+a[128|63&p]:(h+=1,p=65536+((1023&p)<<10|1023&f.charCodeAt(h)),d[d.length]=a[240|p>>18]+a[128|p>>12&63]+a[128|p>>6&63]+a[128|63&p])}c+=d.join("")}return c},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(o(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},merge:function e(t,n,r){if(!n)return t;if("object"!=typeof n){if(o(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(r&&(r.plainObjects||r.allowPrototypes)||!i.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var a=t;return o(t)&&!o(n)&&(a=s(t,r)),o(t)&&o(n)?(n.forEach((function(n,o){if(i.call(t,o)){var a=t[o];a&&"object"==typeof a&&n&&"object"==typeof n?t[o]=e(a,n,r):t.push(n)}else t[o]=n})),t):Object.keys(n).reduce((function(t,o){var a=n[o];return i.call(t,o)?t[o]=e(t[o],a,r):t[o]=a,t}),a)}}},{"./formats":80}],85:[function(e,t,n){(function(n){(function(){for(var r=e("performance-now"),i="undefined"==typeof window?n:window,o=["moz","webkit"],a="AnimationFrame",s=i["request"+a],u=i["cancel"+a]||i["cancelRequest"+a],c=0;!s&&c<o.length;c++)s=i[o[c]+"Request"+a],u=i[o[c]+"Cancel"+a]||i[o[c]+"CancelRequest"+a];if(!s||!u){var l=0,f=0,d=[],h=1e3/60;s=function(e){if(0===d.length){var t=r(),n=Math.max(0,h-(t-l));l=n+t,setTimeout((function(){var e=d.slice(0);d.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(l)}catch(e){setTimeout((function(){throw e}),0)}}),Math.round(n))}return d.push({handle:++f,callback:e,cancelled:!1}),f},u=function(e){for(var t=0;t<d.length;t++)d[t].handle===e&&(d[t].cancelled=!0)}}t.exports=function(e){return s.call(i,e)},t.exports.cancel=function(){u.apply(i,arguments)},t.exports.polyfill=function(e){e||(e=i),e.requestAnimationFrame=s,e.cancelAnimationFrame=u}}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"performance-now":77}],86:[function(e,t,n){"use strict";var r=e("process-nextick-args"),i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};t.exports=f;var o=Object.create(e("core-util-is"));o.inherits=e("inherits");var a=e("./_stream_readable"),s=e("./_stream_writable");o.inherits(f,a);for(var u=i(s.prototype),c=0;c<u.length;c++){var l=u[c];f.prototype[l]||(f.prototype[l]=s.prototype[l])}function f(e){if(!(this instanceof f))return new f(e);a.call(this,e),s.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",d)}function d(){this.allowHalfOpen||this._writableState.ended||r.nextTick(h,this)}function h(e){e.end()}Object.defineProperty(f.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(f.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),f.prototype._destroy=function(e,t){this.push(null),this.end(),r.nextTick(t,e)}},{"./_stream_readable":88,"./_stream_writable":90,"core-util-is":26,inherits:66,"process-nextick-args":78}],87:[function(e,t,n){"use strict";t.exports=o;var r=e("./_stream_transform"),i=Object.create(e("core-util-is"));function o(e){if(!(this instanceof o))return new o(e);r.call(this,e)}i.inherits=e("inherits"),i.inherits(o,r),o.prototype._transform=function(e,t,n){n(null,e)}},{"./_stream_transform":89,"core-util-is":26,inherits:66}],88:[function(e,t,n){(function(n,r){(function(){"use strict";var i=e("process-nextick-args");t.exports=v;var o,a=e("isarray");v.ReadableState=g;e("events").EventEmitter;var s=function(e,t){return e.listeners(t).length},u=e("./internal/streams/stream"),c=e("safe-buffer").Buffer,l=(void 0!==r?r:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var f=Object.create(e("core-util-is"));f.inherits=e("inherits");var d=e("util"),h=void 0;h=d&&d.debuglog?d.debuglog("stream"):function(){};var p,m=e("./internal/streams/BufferList"),y=e("./internal/streams/destroy");f.inherits(v,u);var b=["error","close","destroy","pause","resume"];function g(t,n){t=t||{};var r=n instanceof(o=o||e("./_stream_duplex"));this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var i=t.highWaterMark,a=t.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(a||0===a)?a:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new m,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=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(p||(p=e("string_decoder/").StringDecoder),this.decoder=new p(t.encoding),this.encoding=t.encoding)}function v(t){if(o=o||e("./_stream_duplex"),!(this instanceof v))return new v(t);this._readableState=new g(t,this),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),u.call(this)}function w(e,t,n,r,i){var o,a=e._readableState;null===t?(a.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,S(e)}(e,a)):(i||(o=function(e,t){var n;r=t,c.isBuffer(r)||r instanceof l||"string"==typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk"));var r;return n}(a,t)),o?e.emit("error",o):a.objectMode||t&&t.length>0?("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===c.prototype||(t=function(e){return c.from(e)}(t)),r?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):E(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!n?(t=a.decoder.write(t),a.objectMode||0!==t.length?E(e,a,t,!1):k(e,a)):E(e,a,t,!1))):r||(a.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(a)}function E(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&S(e)),k(e,t)}Object.defineProperty(v.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),v.prototype.destroy=y.destroy,v.prototype._undestroy=y.undestroy,v.prototype._destroy=function(e,t){this.push(null),t(e)},v.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof e&&((t=t||r.defaultEncoding)!==r.encoding&&(e=c.from(e,t),t=""),n=!0),w(this,e,t,!1,n)},v.prototype.unshift=function(e){return w(this,e,null,!0,!1)},v.prototype.isPaused=function(){return!1===this._readableState.flowing},v.prototype.setEncoding=function(t){return p||(p=e("string_decoder/").StringDecoder),this._readableState.decoder=new p(t),this._readableState.encoding=t,this};var _=8388608;function R(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>=_?e=_:(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 S(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(h("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?i.nextTick(A,e):A(e))}function A(e){h("emit readable"),e.emit("readable"),j(e)}function k(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(O,e,t))}function O(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(h("maybeReadMore read 0"),e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}function T(e){h("readable nexttick read 0"),e.read(0)}function x(e,t){t.reading||(h("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),j(e),t.flowing&&!t.reading&&e.read(0)}function j(e){var t=e._readableState;for(h("flow",t.flowing);t.flowing&&null!==e.read(););}function D(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=function(e,t,n){var r;e<t.head.data.length?(r=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):r=e===t.head.data.length?t.shift():n?function(e,t){var n=t.head,r=1,i=n.data;e-=i.length;for(;n=n.next;){var o=n.data,a=e>o.length?o.length:e;if(a===o.length?i+=o:i+=o.slice(0,e),0===(e-=a)){a===o.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(a));break}++r}return t.length-=r,i}(e,t):function(e,t){var n=c.allocUnsafe(e),r=t.head,i=1;r.data.copy(n),e-=r.data.length;for(;r=r.next;){var o=r.data,a=e>o.length?o.length:e;if(o.copy(n,n.length-e,0,a),0===(e-=a)){a===o.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(a));break}++i}return t.length-=i,n}(e,t);return r}(e,t.buffer,t.decoder),n);var n}function M(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,i.nextTick(C,t,e))}function C(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function N(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}v.prototype.read=function(e){h("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return h("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?M(this):S(this),null;if(0===(e=R(e,t))&&t.ended)return 0===t.length&&M(this),null;var r,i=t.needReadable;return h("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&h("length less than watermark",i=!0),t.ended||t.reading?h("reading or ended",i=!1):i&&(h("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=R(n,t))),null===(r=e>0?D(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&M(this)),null!==r&&this.emit("data",r),r},v.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},v.prototype.pipe=function(e,t){var r=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,h("pipe count=%d opts=%j",o.pipesCount,t);var u=(!t||!1!==t.end)&&e!==n.stdout&&e!==n.stderr?l:v;function c(t,n){h("onunpipe"),t===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,h("cleanup"),e.removeListener("close",b),e.removeListener("finish",g),e.removeListener("drain",f),e.removeListener("error",y),e.removeListener("unpipe",c),r.removeListener("end",l),r.removeListener("end",v),r.removeListener("data",m),d=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||f())}function l(){h("onend"),e.end()}o.endEmitted?i.nextTick(u):r.once("end",u),e.on("unpipe",c);var f=function(e){return function(){var t=e._readableState;h("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,j(e))}}(r);e.on("drain",f);var d=!1;var p=!1;function m(t){h("ondata"),p=!1,!1!==e.write(t)||p||((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==N(o.pipes,e))&&!d&&(h("false write response, pause",o.awaitDrain),o.awaitDrain++,p=!0),r.pause())}function y(t){h("onerror",t),v(),e.removeListener("error",y),0===s(e,"error")&&e.emit("error",t)}function b(){e.removeListener("finish",g),v()}function g(){h("onfinish"),e.removeListener("close",b),v()}function v(){h("unpipe"),r.unpipe(e)}return r.on("data",m),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?a(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",y),e.once("close",b),e.once("finish",g),e.emit("pipe",r),o.flowing||(h("pipe resume"),r.resume()),e},v.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)r[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=N(t.pipes,e);return-1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n)),this},v.prototype.on=function(e,t){var n=u.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&S(this):i.nextTick(T,this))}return n},v.prototype.addListener=v.prototype.on,v.prototype.resume=function(){var e=this._readableState;return e.flowing||(h("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(x,e,t))}(this,e)),this},v.prototype.pause=function(){return h("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(h("pause"),this._readableState.flowing=!1,this.emit("pause")),this},v.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on("end",(function(){if(h("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){(h("wrapped data"),n.decoder&&(i=n.decoder.write(i)),n.objectMode&&null==i)||(n.objectMode||i&&i.length)&&(t.push(i)||(r=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<b.length;o++)e.on(b[o],this.emit.bind(this,b[o]));return this._read=function(t){h("wrapped _read",t),r&&(r=!1,e.resume())},this},Object.defineProperty(v.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),v._fromList=D}).call(this)}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./_stream_duplex":86,"./internal/streams/BufferList":91,"./internal/streams/destroy":92,"./internal/streams/stream":93,_process:79,"core-util-is":26,events:44,inherits:66,isarray:72,"process-nextick-args":78,"safe-buffer":94,"string_decoder/":95,util:16}],89:[function(e,t,n){"use strict";t.exports=a;var r=e("./_stream_duplex"),i=Object.create(e("core-util-is"));function o(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function a(e){if(!(this instanceof a))return new a(e);r.call(this,e),this._transformState={afterTransform:o.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",s)}function s(){var e=this;"function"==typeof this._flush?this._flush((function(t,n){u(e,t,n)})):u(this,null,null)}function u(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}i.inherits=e("inherits"),i.inherits(a,r),a.prototype.push=function(e,t){return this._transformState.needTransform=!1,r.prototype.push.call(this,e,t)},a.prototype._transform=function(e,t,n){throw new Error("_transform() is not implemented")},a.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},a.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},a.prototype._destroy=function(e,t){var n=this;r.prototype._destroy.call(this,e,(function(e){t(e),n.emit("close")}))}},{"./_stream_duplex":86,"core-util-is":26,inherits:66}],90:[function(e,t,n){(function(n,r,i){(function(){"use strict";var o=e("process-nextick-args");function a(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;e.entry=null;for(;r;){var i=r.callback;t.pendingcb--,i(n),r=r.next}t.corkedRequestsFree.next=e}(t,e)}}t.exports=g;var s,u=!n.browser&&["v0.10","v0.9."].indexOf(n.version.slice(0,5))>-1?i:o.nextTick;g.WritableState=b;var c=Object.create(e("core-util-is"));c.inherits=e("inherits");var l={deprecate:e("util-deprecate")},f=e("./internal/streams/stream"),d=e("safe-buffer").Buffer,h=(void 0!==r?r:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var p,m=e("./internal/streams/destroy");function y(){}function b(t,n){s=s||e("./_stream_duplex"),t=t||{};var r=n instanceof s;this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var i=t.highWaterMark,c=t.writableHighWaterMark,l=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(c||0===c)?c:l,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var f=!1===t.decodeStrings;this.decodeStrings=!f,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,i=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,i){--t.pendingcb,n?(o.nextTick(i,r),o.nextTick(S,e,t),e._writableState.errorEmitted=!0,e.emit("error",r)):(i(r),e._writableState.errorEmitted=!0,e.emit("error",r),S(e,t))}(e,n,r,t,i);else{var a=_(n);a||n.corked||n.bufferProcessing||!n.bufferedRequest||E(e,n),r?u(w,e,n,a,i):w(e,n,a,i)}}(n,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 a(this)}function g(t){if(s=s||e("./_stream_duplex"),!(p.call(g,this)||this instanceof s))return new g(t);this._writableState=new b(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),f.call(this)}function v(e,t,n,r,i,o,a){t.writelen=r,t.writecb=a,t.writing=!0,t.sync=!0,n?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function w(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),S(e,t)}function E(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,i=new Array(r),o=t.corkedRequestsFree;o.entry=n;for(var s=0,u=!0;n;)i[s]=n,n.isBuf||(u=!1),n=n.next,s+=1;i.allBuffers=u,v(e,t,!0,t.length,i,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new a(t),t.bufferedRequestCount=0}else{for(;n;){var c=n.chunk,l=n.encoding,f=n.callback;if(v(e,t,!1,t.objectMode?1:c.length,c,l,f),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function _(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function R(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=_(t);return n&&(!function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,o.nextTick(R,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),n}c.inherits(g,f),b.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(b.prototype,"buffer",{get:l.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(p=Function.prototype[Symbol.hasInstance],Object.defineProperty(g,Symbol.hasInstance,{value:function(e){return!!p.call(this,e)||this===g&&(e&&e._writableState instanceof b)}})):p=function(e){return e instanceof this},g.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},g.prototype.write=function(e,t,n){var r,i=this._writableState,a=!1,s=!i.objectMode&&(r=e,d.isBuffer(r)||r instanceof h);return s&&!d.isBuffer(e)&&(e=function(e){return d.from(e)}(e)),"function"==typeof t&&(n=t,t=null),s?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof n&&(n=y),i.ended?function(e,t){var n=new Error("write after end");e.emit("error",n),o.nextTick(t,n)}(this,n):(s||function(e,t,n,r){var i=!0,a=!1;return null===n?a=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||t.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),o.nextTick(r,a),i=!1),i}(this,i,e,n))&&(i.pendingcb++,a=function(e,t,n,r,i,o){if(!n){var a=function(e,t,n){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=d.from(t,n));return t}(t,r,i);r!==a&&(n=!0,i="buffer",r=a)}var s=t.objectMode?1:r.length;t.length+=s;var u=t.length<t.highWaterMark;u||(t.needDrain=!0);if(t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:o,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else v(e,t,!1,s,r,i,o);return u}(this,i,s,e,t,n)),a},g.prototype.cork=function(){this._writableState.corked++},g.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||E(this,e))},g.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(g.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),g.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},g.prototype._writev=null,g.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||function(e,t,n){t.ending=!0,S(e,t),n&&(t.finished?o.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,r,n)},Object.defineProperty(g.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),g.prototype.destroy=m.destroy,g.prototype._undestroy=m.undestroy,g.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this)}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("timers").setImmediate)},{"./_stream_duplex":86,"./internal/streams/destroy":92,"./internal/streams/stream":93,_process:79,"core-util-is":26,inherits:66,"process-nextick-args":78,"safe-buffer":94,timers:108,"util-deprecate":111}],91:[function(e,t,n){"use strict";var r=e("safe-buffer").Buffer,i=e("util");t.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},e.prototype.concat=function(e){if(0===this.length)return r.alloc(0);for(var t,n,i,o=r.allocUnsafe(e>>>0),a=this.head,s=0;a;)t=a.data,n=o,i=s,t.copy(n,i),s+=a.data.length,a=a.next;return o},e}(),i&&i.inspect&&i.inspect.custom&&(t.exports.prototype[i.inspect.custom]=function(){var e=i.inspect({length:this.length});return this.constructor.name+" "+e})},{"safe-buffer":94,util:16}],92:[function(e,t,n){"use strict";var r=e("process-nextick-args");function i(e,t){e.emit("error",t)}t.exports={destroy:function(e,t){var n=this,o=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return o||a?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,r.nextTick(i,this,e)):r.nextTick(i,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?n._writableState?n._writableState.errorEmitted||(n._writableState.errorEmitted=!0,r.nextTick(i,n,e)):r.nextTick(i,n,e):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.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},{"process-nextick-args":78}],93:[function(e,t,n){t.exports=e("events").EventEmitter},{events:44}],94:[function(e,t,n){var r=e("buffer"),i=r.Buffer;function o(e,t){for(var n in e)t[n]=e[n]}function a(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=r:(o(r,n),n.Buffer=a),o(i,a),a.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},a.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},{buffer:18}],95:[function(e,t,n){"use strict";var r=e("safe-buffer").Buffer,i=r.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(r.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=u,this.end=c,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=l,this.end=f,t=3;break;default:return this.write=d,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,n=function(e,t){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 u(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function c(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function l(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function f(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function d(e){return e.toString(this.encoding)}function h(e){return e&&e.length?this.write(e):""}n.StringDecoder=o,o.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||""},o.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},o.prototype.text=function(e,t){var n=function(e,t,n){var r=t.length-1;if(r<n)return 0;var i=a(t[r]);if(i>=0)return i>0&&(e.lastNeed=i-1),i;if(--r<n||-2===i)return 0;if(i=a(t[r]),i>=0)return i>0&&(e.lastNeed=i-2),i;if(--r<n||-2===i)return 0;if(i=a(t[r]),i>=0)return i>0&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},{"safe-buffer":94}],96:[function(e,t,n){(n=t.exports=e("./lib/_stream_readable.js")).Stream=n,n.Readable=n,n.Writable=e("./lib/_stream_writable.js"),n.Duplex=e("./lib/_stream_duplex.js"),n.Transform=e("./lib/_stream_transform.js"),n.PassThrough=e("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":86,"./lib/_stream_passthrough.js":87,"./lib/_stream_readable.js":88,"./lib/_stream_transform.js":89,"./lib/_stream_writable.js":90}],97:[function(e,t,n){
32
32
  /**
33
33
  * request-frame - requestAnimationFrame & cancelAnimationFrame polyfill for optimal cross-browser development.
34
34
  * @version v1.5.3
@@ -45,7 +45,7 @@ n.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,u=(1<<s)-1,c=u>>1,l=-7,f=n?i-1:0,d=
45
45
  */
46
46
  function f(){var e,t,n,r,i,o=window.webkitRequestAnimationFrame,a=window.requestAnimationFrame,s=screen.width<=768,u=!(o&&a),c=!window.performance;return e="setTimeout is being used as a substitiue for \n requestAnimationFrame due to a bug within iOS 6 builds",t=o,n=a,!(!(u&&s&&c)||(r=n,i=e,!t&&!r||(console.warn(i),0)))}function d(e){clearTimeout(e)}function h(e){var t=Date.now(),n=Math.max(l+16,t);return setTimeout((function(){e(l=n)}),n-t)}function p(){return Array.prototype.filter?(t=window["request"+o]||window[i.filter((function(e){if(void 0!==window[e+a])return e}))+a]||h,f()?h:t):h}function m(){var e=[];if(!Array.prototype.map)return d;return i.map((function(t){return["Cancel","CancelRequest"].map((function(n){e.push(t+n+o)}))})),n=window["cancel"+o]||function(e,t){for(var n=void 0;t<e.length;t++)if(window[e[t]]){n=window[e[t]];break}return n}(e,0)||d,f()?d:n}switch(Date.now||(Date.now=function(){return(new Date).getTime()}),e){case"request":case"":r=c?h:p();break;case"cancel":r=m();break;case"native":c?(window.requestAnimationFrame=h,window.cancelAnimationFrame=d):(window.requestAnimationFrame=p(),window.cancelAnimationFrame=m());break;default:throw new Error("RequestFrame parameter is not a type.")}return r}}))},{}],98:[function(e,t,n){
47
47
  /*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
48
- var r=e("buffer"),i=r.Buffer;function o(e,t){for(var n in e)t[n]=e[n]}function a(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=r:(o(r,n),n.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},a.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},{buffer:18}],99:[function(e,t,n){var r=Object.prototype.hasOwnProperty;function i(e){return"[Throws: "+(e?e.message:"?")+"]"}function o(e){var t=[];return function e(n){if(null===n||"object"!=typeof n)return n;if(-1!==t.indexOf(n))return"[Circular]";if(t.push(n),"function"==typeof n.toJSON)try{var o=e(n.toJSON());return t.pop(),o}catch(e){return i(e)}if(Array.isArray(n)){var a=n.map(e);return t.pop(),a}var s=Object.keys(n).reduce((function(t,o){return t[o]=e(function(e,t){if(r.call(e,t))try{return e[t]}catch(e){return i(e)}return e[t]}(n,o)),t}),{});return t.pop(),s}(e)}t.exports=function(e,t,n){return JSON.stringify(o(e),t,n)},t.exports.ensureProperties=o},{}],100:[function(e,t,n){"use strict";var r=e("get-intrinsic"),i=e("define-data-property"),o=e("has-property-descriptors")(),a=e("gopd"),s=e("es-errors/type"),u=r("%Math.floor%");t.exports=function(e,t){if("function"!=typeof e)throw new s("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||u(t)!==t)throw new s("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],r=!0,c=!0;if("length"in e&&a){var l=a(e,"length");l&&!l.configurable&&(r=!1),l&&!l.writable&&(c=!1)}return(r||c||!n)&&(o?i(e,"length",t,!0,!0):i(e,"length",t)),e}},{"define-data-property":29,"es-errors/type":42,"get-intrinsic":51,gopd:55,"has-property-descriptors":56}],101:[function(e,t,n){"use strict";var r=e("get-intrinsic"),i=e("call-bind/callBound"),o=e("object-inspect"),a=e("es-errors/type"),s=r("%WeakMap%",!0),u=r("%Map%",!0),c=i("WeakMap.prototype.get",!0),l=i("WeakMap.prototype.set",!0),f=i("WeakMap.prototype.has",!0),d=i("Map.prototype.get",!0),h=i("Map.prototype.set",!0),p=i("Map.prototype.has",!0),m=function(e,t){for(var n,r=e;null!==(n=r.next);r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n};t.exports=function(){var e,t,n,r={assert:function(e){if(!r.has(e))throw new a("Side channel does not contain "+o(e))},get:function(r){if(s&&r&&("object"==typeof r||"function"==typeof r)){if(e)return c(e,r)}else if(u){if(t)return d(t,r)}else if(n)return function(e,t){var n=m(e,t);return n&&n.value}(n,r)},has:function(r){if(s&&r&&("object"==typeof r||"function"==typeof r)){if(e)return f(e,r)}else if(u){if(t)return p(t,r)}else if(n)return function(e,t){return!!m(e,t)}(n,r);return!1},set:function(r,i){s&&r&&("object"==typeof r||"function"==typeof r)?(e||(e=new s),l(e,r,i)):u?(t||(t=new u),h(t,r,i)):(n||(n={key:{},next:null}),function(e,t,n){var r=m(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}}(n,r,i))}};return r}},{"call-bind/callBound":19,"es-errors/type":42,"get-intrinsic":51,"object-inspect":75}],102:[function(e,t,n){t.exports=function(e){var t=e._readableState;return t?t.objectMode||"number"==typeof e._duplexState?e.read():e.read(function(e){if(e.buffer.length){var t=e.bufferIndex||0;if(e.buffer.head)return e.buffer.head.data.length;if(e.buffer.length-t>0&&e.buffer[t])return e.buffer[t].length}return e.length}(t)):null}},{}],103:[function(e,t,n){"use strict";function r(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function o(){this._defaults=[]}for(var a=0,s=["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert","disableTLSCerts"];a<s.length;a++){const e=s[a];o.prototype[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this._defaults.push({fn:e,args:n}),this}}o.prototype._setDefaults=function(e){var t,n=r(this._defaults);try{for(n.s();!(t=n.n()).done;){const n=t.value;e[n.fn](...n.args)}}catch(e){n.e(e)}finally{n.f()}},t.exports=o},{}],104:[function(e,t,n){"use strict";function r(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}let o;"undefined"!=typeof window?o=window:"undefined"==typeof self?(console.warn("Using browser-only version of superagent in non-browser environment"),o=void 0):o=self;const a=e("component-emitter"),s=e("fast-safe-stringify"),u=e("qs"),c=e("./request-base"),l=e("./utils"),f=l.isObject,d=l.mixin,h=l.hasOwn,p=e("./response-base"),m=e("./agent-base");function y(){}t.exports=function(e,t){return"function"==typeof t?new n.Request("GET",e).end(t):1===arguments.length?new n.Request("GET",e):new n.Request(e,t)};const b=n=t.exports;n.Request=S,b.getXHR=()=>{if(o.XMLHttpRequest)return new o.XMLHttpRequest;throw new Error("Browser-only version of superagent could not find XHR")};const g="".trim?e=>e.trim():e=>e.replace(/(^\s*|\s*$)/g,"");function v(e){if(!f(e))return e;const t=[];for(const n in e)h(e,n)&&w(t,n,e[n]);return t.join("&")}function w(e,t,n){if(void 0!==n)if(null!==n)if(Array.isArray(n)){var i,o=r(n);try{for(o.s();!(i=o.n()).done;){w(e,t,i.value)}}catch(e){o.e(e)}finally{o.f()}}else if(f(n))for(const r in n)h(n,r)&&w(e,`${t}[${r}]`,n[r]);else e.push(encodeURI(t)+"="+encodeURIComponent(n));else e.push(encodeURI(t))}function E(e){const t={},n=e.split("&");let r,i;for(let e=0,o=n.length;e<o;++e)r=n[e],i=r.indexOf("="),-1===i?t[decodeURIComponent(r)]="":t[decodeURIComponent(r.slice(0,i))]=decodeURIComponent(r.slice(i+1));return t}function _(e){return/[/+]json($|[^-\w])/i.test(e)}function R(e){this.req=e,this.xhr=this.req.xhr,this.text="HEAD"!==this.req.method&&(""===this.xhr.responseType||"text"===this.xhr.responseType)||void 0===this.xhr.responseType?this.xhr.responseText:null,this.statusText=this.req.xhr.statusText;let t=this.xhr.status;1223===t&&(t=204),this._setStatusProperties(t),this.headers=function(e){const t=e.split(/\r?\n/),n={};let r,i,o,a;for(let e=0,s=t.length;e<s;++e)i=t[e],r=i.indexOf(":"),-1!==r&&(o=i.slice(0,r).toLowerCase(),a=g(i.slice(r+1)),n[o]=a);return n}(this.xhr.getAllResponseHeaders()),this.header=this.headers,this.header["content-type"]=this.xhr.getResponseHeader("content-type"),this._setHeaderProperties(this.header),null===this.text&&e._responseType?this.body=this.xhr.response:this.body="HEAD"===this.req.method?null:this._parseBody(this.text?this.text:this.xhr.response)}function S(e,t){const n=this;this._query=this._query||[],this.method=e,this.url=t,this.header={},this._header={},this.on("end",(()=>{let e,t=null,r=null;try{r=new R(n)}catch(e){return t=new Error("Parser is unable to parse the response"),t.parse=!0,t.original=e,n.xhr?(t.rawResponse=void 0===n.xhr.responseType?n.xhr.responseText:n.xhr.response,t.status=n.xhr.status?n.xhr.status:null,t.statusCode=t.status):(t.rawResponse=null,t.status=null),n.callback(t)}n.emit("response",r);try{n._isResponseOK(r)||(e=new Error(r.statusText||r.text||"Unsuccessful HTTP response"))}catch(t){e=t}e?(e.original=t,e.response=r,e.status=e.status||r.status,n.callback(e,r)):n.callback(null,r)}))}b.serializeObject=v,b.parseString=E,b.types={html:"text/html",json:"application/json",xml:"text/xml",urlencoded:"application/x-www-form-urlencoded",form:"application/x-www-form-urlencoded","form-data":"application/x-www-form-urlencoded"},b.serialize={"application/x-www-form-urlencoded":u.stringify,"application/json":s},b.parse={"application/x-www-form-urlencoded":E,"application/json":JSON.parse},d(R.prototype,p.prototype),R.prototype._parseBody=function(e){let t=b.parse[this.type];return this.req._parser?this.req._parser(this,e):(!t&&_(this.type)&&(t=b.parse["application/json"]),t&&e&&(e.length>0||e instanceof Object)?t(e):null)},R.prototype.toError=function(){const e=this.req,t=e.method,n=e.url,r=`cannot ${t} ${n} (${this.status})`,i=new Error(r);return i.status=this.status,i.method=t,i.url=n,i},b.Response=R,a(S.prototype),d(S.prototype,c.prototype),S.prototype.type=function(e){return this.set("Content-Type",b.types[e]||e),this},S.prototype.accept=function(e){return this.set("Accept",b.types[e]||e),this},S.prototype.auth=function(e,t,n){1===arguments.length&&(t=""),"object"==typeof t&&null!==t&&(n=t,t=""),n||(n={type:"function"==typeof btoa?"basic":"auto"});const r=n.encoder?n.encoder:e=>{if("function"==typeof btoa)return btoa(e);throw new Error("Cannot use basic auth, btoa is not a function")};return this._auth(e,t,n,r)},S.prototype.query=function(e){return"string"!=typeof e&&(e=v(e)),e&&this._query.push(e),this},S.prototype.attach=function(e,t,n){if(t){if(this._data)throw new Error("superagent can't mix .send() and .attach()");this._getFormData().append(e,t,n||t.name)}return this},S.prototype._getFormData=function(){return this._formData||(this._formData=new o.FormData),this._formData},S.prototype.callback=function(e,t){if(this._shouldRetry(e,t))return this._retry();const n=this._callback;this.clearTimeout(),e&&(this._maxRetries&&(e.retries=this._retries-1),this.emit("error",e)),n(e,t)},S.prototype.crossDomainError=function(){const e=new Error("Request has been terminated\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.");e.crossDomain=!0,e.status=this.status,e.method=this.method,e.url=this.url,this.callback(e)},S.prototype.agent=function(){return console.warn("This is not supported in browser version of superagent"),this},S.prototype.ca=S.prototype.agent,S.prototype.buffer=S.prototype.ca,S.prototype.write=()=>{throw new Error("Streaming is not supported in browser version of superagent")},S.prototype.pipe=S.prototype.write,S.prototype._isHost=function(e){return e&&"object"==typeof e&&!Array.isArray(e)&&"[object Object]"!==Object.prototype.toString.call(e)},S.prototype.end=function(e){this._endCalled&&console.warn("Warning: .end() was called twice. This is not supported in superagent"),this._endCalled=!0,this._callback=e||y,this._finalizeQueryString(),this._end()},S.prototype._setUploadTimeout=function(){const e=this;this._uploadTimeout&&!this._uploadTimeoutTimer&&(this._uploadTimeoutTimer=setTimeout((()=>{e._timeoutError("Upload timeout of ",e._uploadTimeout,"ETIMEDOUT")}),this._uploadTimeout))},S.prototype._end=function(){if(this._aborted)return this.callback(new Error("The request has been aborted even before .end() was called"));const e=this;this.xhr=b.getXHR();const t=this.xhr;let n=this._formData||this._data;this._setTimeouts(),t.addEventListener("readystatechange",(()=>{const n=t.readyState;if(n>=2&&e._responseTimeoutTimer&&clearTimeout(e._responseTimeoutTimer),4!==n)return;let r;try{r=t.status}catch(e){r=0}if(!r){if(e.timedout||e._aborted)return;return e.crossDomainError()}e.emit("end")}));const r=(t,n)=>{n.total>0&&(n.percent=n.loaded/n.total*100,100===n.percent&&clearTimeout(e._uploadTimeoutTimer)),n.direction=t,e.emit("progress",n)};if(this.hasListeners("progress"))try{t.addEventListener("progress",r.bind(null,"download")),t.upload&&t.upload.addEventListener("progress",r.bind(null,"upload"))}catch(e){}t.upload&&this._setUploadTimeout();try{this.username&&this.password?t.open(this.method,this.url,!0,this.username,this.password):t.open(this.method,this.url,!0)}catch(e){return this.callback(e)}if(this._withCredentials&&(t.withCredentials=!0),!this._formData&&"GET"!==this.method&&"HEAD"!==this.method&&"string"!=typeof n&&!this._isHost(n)){const e=this._header["content-type"];let t=this._serializer||b.serialize[e?e.split(";")[0]:""];!t&&_(e)&&(t=b.serialize["application/json"]),t&&(n=t(n))}for(const e in this.header)null!==this.header[e]&&h(this.header,e)&&t.setRequestHeader(e,this.header[e]);this._responseType&&(t.responseType=this._responseType),this.emit("request",this),t.send(void 0===n?null:n)},b.agent=()=>new m;for(var A=0,O=["GET","POST","OPTIONS","PATCH","PUT","DELETE"];A<O.length;A++){const e=O[A];m.prototype[e.toLowerCase()]=function(t,n){const r=new b.Request(e,t);return this._setDefaults(r),n&&r.end(n),r}}function k(e,t,n){const r=b("DELETE",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r}m.prototype.del=m.prototype.delete,b.get=(e,t,n)=>{const r=b("GET",e);return"function"==typeof t&&(n=t,t=null),t&&r.query(t),n&&r.end(n),r},b.head=(e,t,n)=>{const r=b("HEAD",e);return"function"==typeof t&&(n=t,t=null),t&&r.query(t),n&&r.end(n),r},b.options=(e,t,n)=>{const r=b("OPTIONS",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},b.del=k,b.delete=k,b.patch=(e,t,n)=>{const r=b("PATCH",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},b.post=(e,t,n)=>{const r=b("POST",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},b.put=(e,t,n)=>{const r=b("PUT",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r}},{"./agent-base":103,"./request-base":105,"./response-base":106,"./utils":107,"component-emitter":24,"fast-safe-stringify":45,qs:81}],105:[function(e,t,n){(function(n){(function(){"use strict";const r=e("semver"),i=e("./utils"),o=i.isObject,a=i.hasOwn;function s(){}t.exports=s,s.prototype.clearTimeout=function(){return clearTimeout(this._timer),clearTimeout(this._responseTimeoutTimer),clearTimeout(this._uploadTimeoutTimer),delete this._timer,delete this._responseTimeoutTimer,delete this._uploadTimeoutTimer,this},s.prototype.parse=function(e){return this._parser=e,this},s.prototype.responseType=function(e){return this._responseType=e,this},s.prototype.serialize=function(e){return this._serializer=e,this},s.prototype.timeout=function(e){if(!e||"object"!=typeof e)return this._timeout=e,this._responseTimeout=0,this._uploadTimeout=0,this;for(const t in e)if(a(e,t))switch(t){case"deadline":this._timeout=e.deadline;break;case"response":this._responseTimeout=e.response;break;case"upload":this._uploadTimeout=e.upload;break;default:console.warn("Unknown timeout option",t)}return this},s.prototype.retry=function(e,t){return 0!==arguments.length&&!0!==e||(e=1),e<=0&&(e=0),this._maxRetries=e,this._retries=0,this._retryCallback=t,this};const u=new Set(["ETIMEDOUT","ECONNRESET","EADDRINUSE","ECONNREFUSED","EPIPE","ENOTFOUND","ENETUNREACH","EAI_AGAIN"]),c=new Set([408,413,429,500,502,503,504,521,522,524]);s.prototype._shouldRetry=function(e,t){if(!this._maxRetries||this._retries++>=this._maxRetries)return!1;if(this._retryCallback)try{const n=this._retryCallback(e,t);if(!0===n)return!0;if(!1===n)return!1}catch(e){console.error(e)}if(t&&t.status&&c.has(t.status))return!0;if(e){if(e.code&&u.has(e.code))return!0;if(e.timeout&&"ECONNABORTED"===e.code)return!0;if(e.crossDomain)return!0}return!1},s.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this.timedoutError=null,this._end()},s.prototype.then=function(e,t){if(!this._fullfilledPromise){const e=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise(((t,n)=>{e.on("abort",(()=>{if(this._maxRetries&&this._maxRetries>this._retries)return;if(this.timedout&&this.timedoutError)return void n(this.timedoutError);const e=new Error("Aborted");e.code="ABORTED",e.status=this.status,e.method=this.method,e.url=this.url,n(e)})),e.end(((e,r)=>{e?n(e):t(r)}))}))}return this._fullfilledPromise.then(e,t)},s.prototype.catch=function(e){return this.then(void 0,e)},s.prototype.use=function(e){return e(this),this},s.prototype.ok=function(e){if("function"!=typeof e)throw new Error("Callback required");return this._okCallback=e,this},s.prototype._isResponseOK=function(e){return!!e&&(this._okCallback?this._okCallback(e):e.status>=200&&e.status<300)},s.prototype.get=function(e){return this._header[e.toLowerCase()]},s.prototype.getHeader=s.prototype.get,s.prototype.set=function(e,t){if(o(e)){for(const t in e)a(e,t)&&this.set(t,e[t]);return this}return this._header[e.toLowerCase()]=t,this.header[e]=t,this},s.prototype.unset=function(e){return delete this._header[e.toLowerCase()],delete this.header[e],this},s.prototype.field=function(e,t,n){if(null==e)throw new Error(".field(name, val) name can not be empty");if(this._data)throw new Error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()");if(o(e)){for(const t in e)a(e,t)&&this.field(t,e[t]);return this}if(Array.isArray(t)){for(const n in t)a(t,n)&&this.field(e,t[n]);return this}if(null==t)throw new Error(".field(name, val) val can not be empty");return"boolean"==typeof t&&(t=String(t)),n?this._getFormData().append(e,t,n):this._getFormData().append(e,t),this},s.prototype.abort=function(){if(this._aborted)return this;if(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req){if(r.gte(n.version,"v13.0.0")&&r.lt(n.version,"v14.0.0"))throw new Error("Superagent does not work in v13 properly with abort() due to Node.js core changes");this.req.abort()}return this.clearTimeout(),this.emit("abort"),this},s.prototype._auth=function(e,t,n,r){switch(n.type){case"basic":this.set("Authorization",`Basic ${r(`${e}:${t}`)}`);break;case"auto":this.username=e,this.password=t;break;case"bearer":this.set("Authorization",`Bearer ${e}`)}return this},s.prototype.withCredentials=function(e){return void 0===e&&(e=!0),this._withCredentials=e,this},s.prototype.redirects=function(e){return this._maxRedirects=e,this},s.prototype.maxResponseSize=function(e){if("number"!=typeof e)throw new TypeError("Invalid argument");return this._maxResponseSize=e,this},s.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},s.prototype.send=function(e){const t=o(e);let n=this._header["content-type"];if(this._formData)throw new Error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()");if(t&&!this._data)Array.isArray(e)?this._data=[]:this._isHost(e)||(this._data={});else if(e&&this._data&&this._isHost(this._data))throw new Error("Can't merge these send calls");if(t&&o(this._data))for(const t in e){if("bigint"==typeof e[t]&&!e[t].toJSON)throw new Error("Cannot serialize BigInt value to json");a(e,t)&&(this._data[t]=e[t])}else{if("bigint"==typeof e)throw new Error("Cannot send value of type BigInt");"string"==typeof e?(n||this.type("form"),n=this._header["content-type"],n&&(n=n.toLowerCase().trim()),this._data="application/x-www-form-urlencoded"===n?this._data?`${this._data}&${e}`:e:(this._data||"")+e):this._data=e}return!t||this._isHost(e)||n||this.type("json"),this},s.prototype.sortQuery=function(e){return this._sort=void 0===e||e,this},s.prototype._finalizeQueryString=function(){const e=this._query.join("&");if(e&&(this.url+=(this.url.includes("?")?"&":"?")+e),this._query.length=0,this._sort){const e=this.url.indexOf("?");if(e>=0){const t=this.url.slice(e+1).split("&");"function"==typeof this._sort?t.sort(this._sort):t.sort(),this.url=this.url.slice(0,e)+"?"+t.join("&")}}},s.prototype._appendQueryString=()=>{console.warn("Unsupported")},s.prototype._timeoutError=function(e,t,n){if(this._aborted)return;const r=new Error(`${e+t}ms exceeded`);r.timeout=t,r.code="ECONNABORTED",r.errno=n,this.timedout=!0,this.timedoutError=r,this.abort(),this.callback(r)},s.prototype._setTimeouts=function(){const e=this;this._timeout&&!this._timer&&(this._timer=setTimeout((()=>{e._timeoutError("Timeout of ",e._timeout,"ETIME")}),this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout((()=>{e._timeoutError("Response timeout of ",e._responseTimeout,"ETIMEDOUT")}),this._responseTimeout))}}).call(this)}).call(this,e("_process"))},{"./utils":107,_process:79,semver:16}],106:[function(e,t,n){"use strict";const r=e("./utils");function i(){}t.exports=i,i.prototype.get=function(e){return this.header[e.toLowerCase()]},i.prototype._setHeaderProperties=function(e){const t=e["content-type"]||"";this.type=r.type(t);const n=r.params(t);for(const e in n)Object.prototype.hasOwnProperty.call(n,e)&&(this[e]=n[e]);this.links={};try{e.link&&(this.links=r.parseLinks(e.link))}catch(e){}},i.prototype._setStatusProperties=function(e){const t=Math.trunc(e/100);this.statusCode=e,this.status=this.statusCode,this.statusType=t,this.info=1===t,this.ok=2===t,this.redirect=3===t,this.clientError=4===t,this.serverError=5===t,this.error=(4===t||5===t)&&this.toError(),this.created=201===e,this.accepted=202===e,this.noContent=204===e,this.badRequest=400===e,this.unauthorized=401===e,this.notAcceptable=406===e,this.forbidden=403===e,this.notFound=404===e,this.unprocessableEntity=422===e}},{"./utils":107}],107:[function(e,t,n){"use strict";function r(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.type=e=>e.split(/ *; */).shift(),n.params=e=>{const t={};var n,i=r(e.split(/ *; */));try{for(i.s();!(n=i.n()).done;){const e=n.value.split(/ *= */),r=e.shift(),i=e.shift();r&&i&&(t[r]=i)}}catch(e){i.e(e)}finally{i.f()}return t},n.parseLinks=e=>{const t={};var n,i=r(e.split(/ *, */));try{for(i.s();!(n=i.n()).done;){const e=n.value.split(/ *; */),r=e[0].slice(1,-1);t[e[1].split(/ *= */)[1].slice(1,-1)]=r}}catch(e){i.e(e)}finally{i.f()}return t},n.cleanHeader=(e,t)=>(delete e["content-type"],delete e["content-length"],delete e["transfer-encoding"],delete e.host,t&&(delete e.authorization,delete e.cookie),e),n.isObject=e=>null!==e&&"object"==typeof e,n.hasOwn=Object.hasOwn||function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(new Object(e),t)},n.mixin=(e,t)=>{for(const r in t)n.hasOwn(t,r)&&(e[r]=t[r])}},{}],108:[function(e,t,n){(function(t,r){(function(){var i=e("process/browser.js").nextTick,o=Function.prototype.apply,a=Array.prototype.slice,s={},u=0;function c(e,t){this._id=e,this._clearFn=t}n.setTimeout=function(){return new c(o.call(setTimeout,window,arguments),clearTimeout)},n.setInterval=function(){return new c(o.call(setInterval,window,arguments),clearInterval)},n.clearTimeout=n.clearInterval=function(e){e.close()},c.prototype.unref=c.prototype.ref=function(){},c.prototype.close=function(){this._clearFn.call(window,this._id)},n.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},n.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},n._unrefActive=n.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n.setImmediate="function"==typeof t?t:function(e){var t=u++,r=!(arguments.length<2)&&a.call(arguments,1);return s[t]=!0,i((function(){s[t]&&(r?e.apply(null,r):e.call(null),n.clearImmediate(t))})),t},n.clearImmediate="function"==typeof r?r:function(e){delete s[e]}}).call(this)}).call(this,e("timers").setImmediate,e("timers").clearImmediate)},{"process/browser.js":79,timers:108}],109:[function(e,t,n){(function(e){(function(){
48
+ var r=e("buffer"),i=r.Buffer;function o(e,t){for(var n in e)t[n]=e[n]}function a(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=r:(o(r,n),n.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},a.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},{buffer:18}],99:[function(e,t,n){var r=Object.prototype.hasOwnProperty;function i(e){return"[Throws: "+(e?e.message:"?")+"]"}function o(e){var t=[];return function e(n){if(null===n||"object"!=typeof n)return n;if(-1!==t.indexOf(n))return"[Circular]";if(t.push(n),"function"==typeof n.toJSON)try{var o=e(n.toJSON());return t.pop(),o}catch(e){return i(e)}if(Array.isArray(n)){var a=n.map(e);return t.pop(),a}var s=Object.keys(n).reduce((function(t,o){return t[o]=e(function(e,t){if(r.call(e,t))try{return e[t]}catch(e){return i(e)}return e[t]}(n,o)),t}),{});return t.pop(),s}(e)}t.exports=function(e,t,n){return JSON.stringify(o(e),t,n)},t.exports.ensureProperties=o},{}],100:[function(e,t,n){"use strict";var r=e("get-intrinsic"),i=e("define-data-property"),o=e("has-property-descriptors")(),a=e("gopd"),s=e("es-errors/type"),u=r("%Math.floor%");t.exports=function(e,t){if("function"!=typeof e)throw new s("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||u(t)!==t)throw new s("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],r=!0,c=!0;if("length"in e&&a){var l=a(e,"length");l&&!l.configurable&&(r=!1),l&&!l.writable&&(c=!1)}return(r||c||!n)&&(o?i(e,"length",t,!0,!0):i(e,"length",t)),e}},{"define-data-property":29,"es-errors/type":42,"get-intrinsic":51,gopd:55,"has-property-descriptors":56}],101:[function(e,t,n){"use strict";var r=e("get-intrinsic"),i=e("call-bind/callBound"),o=e("object-inspect"),a=e("es-errors/type"),s=r("%WeakMap%",!0),u=r("%Map%",!0),c=i("WeakMap.prototype.get",!0),l=i("WeakMap.prototype.set",!0),f=i("WeakMap.prototype.has",!0),d=i("Map.prototype.get",!0),h=i("Map.prototype.set",!0),p=i("Map.prototype.has",!0),m=function(e,t){for(var n,r=e;null!==(n=r.next);r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n};t.exports=function(){var e,t,n,r={assert:function(e){if(!r.has(e))throw new a("Side channel does not contain "+o(e))},get:function(r){if(s&&r&&("object"==typeof r||"function"==typeof r)){if(e)return c(e,r)}else if(u){if(t)return d(t,r)}else if(n)return function(e,t){var n=m(e,t);return n&&n.value}(n,r)},has:function(r){if(s&&r&&("object"==typeof r||"function"==typeof r)){if(e)return f(e,r)}else if(u){if(t)return p(t,r)}else if(n)return function(e,t){return!!m(e,t)}(n,r);return!1},set:function(r,i){s&&r&&("object"==typeof r||"function"==typeof r)?(e||(e=new s),l(e,r,i)):u?(t||(t=new u),h(t,r,i)):(n||(n={key:{},next:null}),function(e,t,n){var r=m(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}}(n,r,i))}};return r}},{"call-bind/callBound":19,"es-errors/type":42,"get-intrinsic":51,"object-inspect":75}],102:[function(e,t,n){t.exports=function(e){var t=e._readableState;return t?t.objectMode||"number"==typeof e._duplexState?e.read():e.read(function(e){if(e.buffer.length){var t=e.bufferIndex||0;if(e.buffer.head)return e.buffer.head.data.length;if(e.buffer.length-t>0&&e.buffer[t])return e.buffer[t].length}return e.length}(t)):null}},{}],103:[function(e,t,n){"use strict";const r=["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert","disableTLSCerts"];class i{constructor(){this._defaults=[]}_setDefaults(e){for(const t of this._defaults)e[t.fn](...t.args)}}for(const e of r)i.prototype[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this._defaults.push({fn:e,args:n}),this};t.exports=i},{}],104:[function(e,t,n){"use strict";let r;"undefined"!=typeof window?r=window:"undefined"==typeof self?(console.warn("Using browser-only version of superagent in non-browser environment"),r=void 0):r=self;const i=e("component-emitter"),o=e("fast-safe-stringify"),a=e("qs"),s=e("./request-base"),{isObject:u,mixin:c,hasOwn:l}=e("./utils"),f=e("./response-base"),d=e("./agent-base");function h(){}t.exports=function(e,t){return"function"==typeof t?new n.Request("GET",e).end(t):1===arguments.length?new n.Request("GET",e):new n.Request(e,t)};const p=n=t.exports;n.Request=E,p.getXHR=()=>{if(r.XMLHttpRequest)return new r.XMLHttpRequest;throw new Error("Browser-only version of superagent could not find XHR")};const m="".trim?e=>e.trim():e=>e.replace(/(^\s*|\s*$)/g,"");function y(e){if(!u(e))return e;const t=[];for(const n in e)l(e,n)&&b(t,n,e[n]);return t.join("&")}function b(e,t,n){if(void 0!==n)if(null!==n)if(Array.isArray(n))for(const r of n)b(e,t,r);else if(u(n))for(const r in n)l(n,r)&&b(e,`${t}[${r}]`,n[r]);else e.push(encodeURI(t)+"="+encodeURIComponent(n));else e.push(encodeURI(t))}function g(e){const t={},n=e.split("&");let r,i;for(let e=0,o=n.length;e<o;++e)r=n[e],i=r.indexOf("="),-1===i?t[decodeURIComponent(r)]="":t[decodeURIComponent(r.slice(0,i))]=decodeURIComponent(r.slice(i+1));return t}function v(e){return/[/+]json($|[^-\w])/i.test(e)}function w(e){this.req=e,this.xhr=this.req.xhr,this.text="HEAD"!==this.req.method&&(""===this.xhr.responseType||"text"===this.xhr.responseType)||void 0===this.xhr.responseType?this.xhr.responseText:null,this.statusText=this.req.xhr.statusText;let{status:t}=this.xhr;1223===t&&(t=204),this._setStatusProperties(t),this.headers=function(e){const t=e.split(/\r?\n/),n={};let r,i,o,a;for(let e=0,s=t.length;e<s;++e)i=t[e],r=i.indexOf(":"),-1!==r&&(o=i.slice(0,r).toLowerCase(),a=m(i.slice(r+1)),n[o]=a);return n}(this.xhr.getAllResponseHeaders()),this.header=this.headers,this.header["content-type"]=this.xhr.getResponseHeader("content-type"),this._setHeaderProperties(this.header),null===this.text&&e._responseType?this.body=this.xhr.response:this.body="HEAD"===this.req.method?null:this._parseBody(this.text?this.text:this.xhr.response)}function E(e,t){const n=this;this._query=this._query||[],this.method=e,this.url=t,this.header={},this._header={},this.on("end",(()=>{let e,t=null,r=null;try{r=new w(n)}catch(e){return t=new Error("Parser is unable to parse the response"),t.parse=!0,t.original=e,n.xhr?(t.rawResponse=void 0===n.xhr.responseType?n.xhr.responseText:n.xhr.response,t.status=n.xhr.status?n.xhr.status:null,t.statusCode=t.status):(t.rawResponse=null,t.status=null),n.callback(t)}n.emit("response",r);try{n._isResponseOK(r)||(e=new Error(r.statusText||r.text||"Unsuccessful HTTP response"))}catch(t){e=t}e?(e.original=t,e.response=r,e.status=e.status||r.status,n.callback(e,r)):n.callback(null,r)}))}p.serializeObject=y,p.parseString=g,p.types={html:"text/html",json:"application/json",xml:"text/xml",urlencoded:"application/x-www-form-urlencoded",form:"application/x-www-form-urlencoded","form-data":"application/x-www-form-urlencoded"},p.serialize={"application/x-www-form-urlencoded":e=>a.stringify(e,{indices:!1,strictNullHandling:!0}),"application/json":o},p.parse={"application/x-www-form-urlencoded":g,"application/json":JSON.parse},c(w.prototype,f.prototype),w.prototype._parseBody=function(e){let t=p.parse[this.type];return this.req._parser?this.req._parser(this,e):(!t&&v(this.type)&&(t=p.parse["application/json"]),t&&e&&(e.length>0||e instanceof Object)?t(e):null)},w.prototype.toError=function(){const{req:e}=this,{method:t}=e,{url:n}=e,r=`cannot ${t} ${n} (${this.status})`,i=new Error(r);return i.status=this.status,i.method=t,i.url=n,i},p.Response=w,i(E.prototype),c(E.prototype,s.prototype),E.prototype.type=function(e){return this.set("Content-Type",p.types[e]||e),this},E.prototype.accept=function(e){return this.set("Accept",p.types[e]||e),this},E.prototype.auth=function(e,t,n){1===arguments.length&&(t=""),"object"==typeof t&&null!==t&&(n=t,t=""),n||(n={type:"function"==typeof btoa?"basic":"auto"});const r=n.encoder?n.encoder:e=>{if("function"==typeof btoa)return btoa(e);throw new Error("Cannot use basic auth, btoa is not a function")};return this._auth(e,t,n,r)},E.prototype.query=function(e){return"string"!=typeof e&&(e=y(e)),e&&this._query.push(e),this},E.prototype.attach=function(e,t,n){if(t){if(this._data)throw new Error("superagent can't mix .send() and .attach()");this._getFormData().append(e,t,n||t.name)}return this},E.prototype._getFormData=function(){return this._formData||(this._formData=new r.FormData),this._formData},E.prototype.callback=function(e,t){if(this._shouldRetry(e,t))return this._retry();const n=this._callback;this.clearTimeout(),e&&(this._maxRetries&&(e.retries=this._retries-1),this.emit("error",e)),n(e,t)},E.prototype.crossDomainError=function(){const e=new Error("Request has been terminated\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.");e.crossDomain=!0,e.status=this.status,e.method=this.method,e.url=this.url,this.callback(e)},E.prototype.agent=function(){return console.warn("This is not supported in browser version of superagent"),this},E.prototype.ca=E.prototype.agent,E.prototype.buffer=E.prototype.ca,E.prototype.write=()=>{throw new Error("Streaming is not supported in browser version of superagent")},E.prototype.pipe=E.prototype.write,E.prototype._isHost=function(e){return e&&"object"==typeof e&&!Array.isArray(e)&&"[object Object]"!==Object.prototype.toString.call(e)},E.prototype.end=function(e){this._endCalled&&console.warn("Warning: .end() was called twice. This is not supported in superagent"),this._endCalled=!0,this._callback=e||h,this._finalizeQueryString(),this._end()},E.prototype._setUploadTimeout=function(){const e=this;this._uploadTimeout&&!this._uploadTimeoutTimer&&(this._uploadTimeoutTimer=setTimeout((()=>{e._timeoutError("Upload timeout of ",e._uploadTimeout,"ETIMEDOUT")}),this._uploadTimeout))},E.prototype._end=function(){if(this._aborted)return this.callback(new Error("The request has been aborted even before .end() was called"));const e=this;this.xhr=p.getXHR();const{xhr:t}=this;let n=this._formData||this._data;this._setTimeouts(),t.addEventListener("readystatechange",(()=>{const{readyState:n}=t;if(n>=2&&e._responseTimeoutTimer&&clearTimeout(e._responseTimeoutTimer),4!==n)return;let r;try{r=t.status}catch(e){r=0}if(!r){if(e.timedout||e._aborted)return;return e.crossDomainError()}e.emit("end")}));const r=(t,n)=>{n.total>0&&(n.percent=n.loaded/n.total*100,100===n.percent&&clearTimeout(e._uploadTimeoutTimer)),n.direction=t,e.emit("progress",n)};if(this.hasListeners("progress"))try{t.addEventListener("progress",r.bind(null,"download")),t.upload&&t.upload.addEventListener("progress",r.bind(null,"upload"))}catch(e){}t.upload&&this._setUploadTimeout();try{this.username&&this.password?t.open(this.method,this.url,!0,this.username,this.password):t.open(this.method,this.url,!0)}catch(e){return this.callback(e)}if(this._withCredentials&&(t.withCredentials=!0),!this._formData&&"GET"!==this.method&&"HEAD"!==this.method&&"string"!=typeof n&&!this._isHost(n)){const e=this._header["content-type"];let t=this._serializer||p.serialize[e?e.split(";")[0]:""];!t&&v(e)&&(t=p.serialize["application/json"]),t&&(n=t(n))}for(const e in this.header)null!==this.header[e]&&l(this.header,e)&&t.setRequestHeader(e,this.header[e]);this._responseType&&(t.responseType=this._responseType),this.emit("request",this),t.send(void 0===n?null:n)},p.agent=()=>new d;for(const e of["GET","POST","OPTIONS","PATCH","PUT","DELETE"])d.prototype[e.toLowerCase()]=function(t,n){const r=new p.Request(e,t);return this._setDefaults(r),n&&r.end(n),r};function _(e,t,n){const r=p("DELETE",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r}d.prototype.del=d.prototype.delete,p.get=(e,t,n)=>{const r=p("GET",e);return"function"==typeof t&&(n=t,t=null),t&&r.query(t),n&&r.end(n),r},p.head=(e,t,n)=>{const r=p("HEAD",e);return"function"==typeof t&&(n=t,t=null),t&&r.query(t),n&&r.end(n),r},p.options=(e,t,n)=>{const r=p("OPTIONS",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},p.del=_,p.delete=_,p.patch=(e,t,n)=>{const r=p("PATCH",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},p.post=(e,t,n)=>{const r=p("POST",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},p.put=(e,t,n)=>{const r=p("PUT",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r}},{"./agent-base":103,"./request-base":105,"./response-base":106,"./utils":107,"component-emitter":24,"fast-safe-stringify":45,qs:81}],105:[function(e,t,n){"use strict";const{isObject:r,hasOwn:i}=e("./utils");function o(){}t.exports=o,o.prototype.clearTimeout=function(){return clearTimeout(this._timer),clearTimeout(this._responseTimeoutTimer),clearTimeout(this._uploadTimeoutTimer),delete this._timer,delete this._responseTimeoutTimer,delete this._uploadTimeoutTimer,this},o.prototype.parse=function(e){return this._parser=e,this},o.prototype.responseType=function(e){return this._responseType=e,this},o.prototype.serialize=function(e){return this._serializer=e,this},o.prototype.timeout=function(e){if(!e||"object"!=typeof e)return this._timeout=e,this._responseTimeout=0,this._uploadTimeout=0,this;for(const t in e)if(i(e,t))switch(t){case"deadline":this._timeout=e.deadline;break;case"response":this._responseTimeout=e.response;break;case"upload":this._uploadTimeout=e.upload;break;default:console.warn("Unknown timeout option",t)}return this},o.prototype.retry=function(e,t){return 0!==arguments.length&&!0!==e||(e=1),e<=0&&(e=0),this._maxRetries=e,this._retries=0,this._retryCallback=t,this};const a=new Set(["ETIMEDOUT","ECONNRESET","EADDRINUSE","ECONNREFUSED","EPIPE","ENOTFOUND","ENETUNREACH","EAI_AGAIN"]),s=new Set([408,413,429,500,502,503,504,521,522,524]);o.prototype._shouldRetry=function(e,t){if(!this._maxRetries||this._retries++>=this._maxRetries)return!1;if(this._retryCallback)try{const n=this._retryCallback(e,t);if(!0===n)return!0;if(!1===n)return!1}catch(e){console.error(e)}if(t&&t.status&&s.has(t.status))return!0;if(e){if(e.code&&a.has(e.code))return!0;if(e.timeout&&"ECONNABORTED"===e.code)return!0;if(e.crossDomain)return!0}return!1},o.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this.timedoutError=null,this._end()},o.prototype.then=function(e,t){if(!this._fullfilledPromise){const e=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise(((t,n)=>{e.on("abort",(()=>{if(this._maxRetries&&this._maxRetries>this._retries)return;if(this.timedout&&this.timedoutError)return void n(this.timedoutError);const e=new Error("Aborted");e.code="ABORTED",e.status=this.status,e.method=this.method,e.url=this.url,n(e)})),e.end(((e,r)=>{e?n(e):t(r)}))}))}return this._fullfilledPromise.then(e,t)},o.prototype.catch=function(e){return this.then(void 0,e)},o.prototype.use=function(e){return e(this),this},o.prototype.ok=function(e){if("function"!=typeof e)throw new Error("Callback required");return this._okCallback=e,this},o.prototype._isResponseOK=function(e){return!!e&&(this._okCallback?this._okCallback(e):e.status>=200&&e.status<300)},o.prototype.get=function(e){return this._header[e.toLowerCase()]},o.prototype.getHeader=o.prototype.get,o.prototype.set=function(e,t){if(r(e)){for(const t in e)i(e,t)&&this.set(t,e[t]);return this}return this._header[e.toLowerCase()]=t,this.header[e]=t,this},o.prototype.unset=function(e){return delete this._header[e.toLowerCase()],delete this.header[e],this},o.prototype.field=function(e,t,n){if(null==e)throw new Error(".field(name, val) name can not be empty");if(this._data)throw new Error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()");if(r(e)){for(const t in e)i(e,t)&&this.field(t,e[t]);return this}if(Array.isArray(t)){for(const n in t)i(t,n)&&this.field(e,t[n]);return this}if(null==t)throw new Error(".field(name, val) val can not be empty");return"boolean"==typeof t&&(t=String(t)),n?this._getFormData().append(e,t,n):this._getFormData().append(e,t),this},o.prototype.abort=function(){return this._aborted||(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort")),this},o.prototype._auth=function(e,t,n,r){switch(n.type){case"basic":this.set("Authorization",`Basic ${r(`${e}:${t}`)}`);break;case"auto":this.username=e,this.password=t;break;case"bearer":this.set("Authorization",`Bearer ${e}`)}return this},o.prototype.withCredentials=function(e){return void 0===e&&(e=!0),this._withCredentials=e,this},o.prototype.redirects=function(e){return this._maxRedirects=e,this},o.prototype.maxResponseSize=function(e){if("number"!=typeof e)throw new TypeError("Invalid argument");return this._maxResponseSize=e,this},o.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},o.prototype.send=function(e){const t=r(e);let n=this._header["content-type"];if(this._formData)throw new Error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()");if(t&&!this._data)Array.isArray(e)?this._data=[]:this._isHost(e)||(this._data={});else if(e&&this._data&&this._isHost(this._data))throw new Error("Can't merge these send calls");if(t&&r(this._data))for(const t in e){if("bigint"==typeof e[t]&&!e[t].toJSON)throw new Error("Cannot serialize BigInt value to json");i(e,t)&&(this._data[t]=e[t])}else{if("bigint"==typeof e)throw new Error("Cannot send value of type BigInt");"string"==typeof e?(n||this.type("form"),n=this._header["content-type"],n&&(n=n.toLowerCase().trim()),this._data="application/x-www-form-urlencoded"===n?this._data?`${this._data}&${e}`:e:(this._data||"")+e):this._data=e}return!t||this._isHost(e)||n||this.type("json"),this},o.prototype.sortQuery=function(e){return this._sort=void 0===e||e,this},o.prototype._finalizeQueryString=function(){const e=this._query.join("&");if(e&&(this.url+=(this.url.includes("?")?"&":"?")+e),this._query.length=0,this._sort){const e=this.url.indexOf("?");if(e>=0){const t=this.url.slice(e+1).split("&");"function"==typeof this._sort?t.sort(this._sort):t.sort(),this.url=this.url.slice(0,e)+"?"+t.join("&")}}},o.prototype._appendQueryString=()=>{console.warn("Unsupported")},o.prototype._timeoutError=function(e,t,n){if(this._aborted)return;const r=new Error(`${e+t}ms exceeded`);r.timeout=t,r.code="ECONNABORTED",r.errno=n,this.timedout=!0,this.timedoutError=r,this.abort(),this.callback(r)},o.prototype._setTimeouts=function(){const e=this;this._timeout&&!this._timer&&(this._timer=setTimeout((()=>{e._timeoutError("Timeout of ",e._timeout,"ETIME")}),this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout((()=>{e._timeoutError("Response timeout of ",e._responseTimeout,"ETIMEDOUT")}),this._responseTimeout))}},{"./utils":107}],106:[function(e,t,n){"use strict";const r=e("./utils");function i(){}t.exports=i,i.prototype.get=function(e){return this.header[e.toLowerCase()]},i.prototype._setHeaderProperties=function(e){const t=e["content-type"]||"";this.type=r.type(t);const n=r.params(t);for(const e in n)Object.prototype.hasOwnProperty.call(n,e)&&(this[e]=n[e]);this.links={};try{e.link&&(this.links=r.parseLinks(e.link))}catch(e){}},i.prototype._setStatusProperties=function(e){const t=Math.trunc(e/100);this.statusCode=e,this.status=this.statusCode,this.statusType=t,this.info=1===t,this.ok=2===t,this.redirect=3===t,this.clientError=4===t,this.serverError=5===t,this.error=(4===t||5===t)&&this.toError(),this.created=201===e,this.accepted=202===e,this.noContent=204===e,this.badRequest=400===e,this.unauthorized=401===e,this.notAcceptable=406===e,this.forbidden=403===e,this.notFound=404===e,this.unprocessableEntity=422===e}},{"./utils":107}],107:[function(e,t,n){"use strict";n.type=e=>e.split(/ *; */).shift(),n.params=e=>{const t={};for(const n of e.split(/ *; */)){const e=n.split(/ *= */),r=e.shift(),i=e.shift();r&&i&&(t[r]=i)}return t},n.parseLinks=e=>{const t={};for(const n of e.split(/ *, */)){const e=n.split(/ *; */),r=e[0].slice(1,-1);t[e[1].split(/ *= */)[1].slice(1,-1)]=r}return t},n.cleanHeader=(e,t)=>(delete e["content-type"],delete e["content-length"],delete e["transfer-encoding"],delete e.host,t&&(delete e.authorization,delete e.cookie),e),n.isObject=e=>null!==e&&"object"==typeof e,n.hasOwn=Object.hasOwn||function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(new Object(e),t)},n.mixin=(e,t)=>{for(const r in t)n.hasOwn(t,r)&&(e[r]=t[r])},n.isGzipOrDeflateEncoding=e=>new RegExp(/^\s*(?:deflate|gzip)\s*$/).test(e.headers["content-encoding"]),n.isBrotliEncoding=e=>new RegExp(/^\s*(?:br)\s*$/).test(e.headers["content-encoding"])},{}],108:[function(e,t,n){(function(t,r){(function(){var i=e("process/browser.js").nextTick,o=Function.prototype.apply,a=Array.prototype.slice,s={},u=0;function c(e,t){this._id=e,this._clearFn=t}n.setTimeout=function(){return new c(o.call(setTimeout,window,arguments),clearTimeout)},n.setInterval=function(){return new c(o.call(setInterval,window,arguments),clearInterval)},n.clearTimeout=n.clearInterval=function(e){e.close()},c.prototype.unref=c.prototype.ref=function(){},c.prototype.close=function(){this._clearFn.call(window,this._id)},n.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},n.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},n._unrefActive=n.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n.setImmediate="function"==typeof t?t:function(e){var t=u++,r=!(arguments.length<2)&&a.call(arguments,1);return s[t]=!0,i((function(){s[t]&&(r?e.apply(null,r):e.call(null),n.clearImmediate(t))})),t},n.clearImmediate="function"==typeof r?r:function(e){delete s[e]}}).call(this)}).call(this,e("timers").setImmediate,e("timers").clearImmediate)},{"process/browser.js":79,timers:108}],109:[function(e,t,n){(function(e){(function(){
49
49
  /*! typedarray-to-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
50
- t.exports=function(t){return ArrayBuffer.isView(t)?e.from(t.buffer,t.byteOffset,t.byteLength):e.from(t)}}).call(this)}).call(this,e("buffer").Buffer)},{buffer:18}],110:[function(e,t,n){!function(e,r){"use strict";var i="function",o="undefined",a="object",s="string",u="major",c="model",l="name",f="type",d="vendor",h="version",p="architecture",m="console",y="mobile",b="tablet",g="smarttv",v="wearable",w="embedded",E="Amazon",_="Apple",R="ASUS",S="BlackBerry",A="Browser",O="Chrome",k="Firefox",T="Google",x="Huawei",j="LG",D="Microsoft",M="Motorola",C="Opera",I="Samsung",N="Sharp",L="Sony",P="Xiaomi",B="Zebra",U="Facebook",F="Chromium OS",q="Mac OS",W=" Browser",H=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},V=function(e,t){return typeof e===s&&-1!==z(t).indexOf(z(e))},z=function(e){return e.toLowerCase()},G=function(e,t){if(typeof e===s)return e=e.replace(/^\s\s*/,""),typeof t===o?e:e.substring(0,500)},$=function(e,t){for(var n,o,s,u,c,l,f=0;f<t.length&&!c;){var d=t[f],h=t[f+1];for(n=o=0;n<d.length&&!c&&d[n];)if(c=d[n++].exec(e))for(s=0;s<h.length;s++)l=c[++o],typeof(u=h[s])===a&&u.length>0?2===u.length?typeof u[1]==i?this[u[0]]=u[1].call(this,l):this[u[0]]=u[1]:3===u.length?typeof u[1]!==i||u[1].exec&&u[1].test?this[u[0]]=l?l.replace(u[1],u[2]):r:this[u[0]]=l?u[1].call(this,l,u[2]):r:4===u.length&&(this[u[0]]=l?u[3].call(this,l.replace(u[1],u[2])):r):this[u]=l||r;f+=2}},Y=function(e,t){for(var n in t)if(typeof t[n]===a&&t[n].length>0){for(var i=0;i<t[n].length;i++)if(V(t[n][i],e))return"?"===n?r:n}else if(V(t[n],e))return"?"===n?r:n;return t.hasOwnProperty("*")?t["*"]:e},K={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},J={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[h,[l,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[h,[l,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[l,h],[/opios[\/ ]+([\w\.]+)/i],[h,[l,C+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[h,[l,C+" GX"]],[/\bopr\/([\w\.]+)/i],[h,[l,C]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[h,[l,"Baidu"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[l,h],[/quark(?:pc)?\/([-\w\.]+)/i],[h,[l,"Quark"]],[/\bddg\/([\w\.]+)/i],[h,[l,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[h,[l,"UC"+A]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[h,[l,"WeChat"]],[/konqueror\/([\w\.]+)/i],[h,[l,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[h,[l,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[h,[l,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[h,[l,"Smart Lenovo "+A]],[/(avast|avg)\/([\w\.]+)/i],[[l,/(.+)/,"$1 Secure "+A],h],[/\bfocus\/([\w\.]+)/i],[h,[l,k+" Focus"]],[/\bopt\/([\w\.]+)/i],[h,[l,C+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[h,[l,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[h,[l,"Dolphin"]],[/coast\/([\w\.]+)/i],[h,[l,C+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[h,[l,"MIUI "+A]],[/fxios\/([-\w\.]+)/i],[h,[l,k]],[/\bqihu|(qi?ho?o?|360)browser/i],[[l,"360"+W]],[/\b(qq)\/([\w\.]+)/i],[[l,/(.+)/,"$1Browser"],h],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[l,/(.+)/,"$1"+W],h],[/samsungbrowser\/([\w\.]+)/i],[h,[l,I+" Internet"]],[/(comodo_dragon)\/([\w\.]+)/i],[[l,/_/g," "],h],[/metasr[\/ ]?([\d\.]+)/i],[h,[l,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[l,"Sogou Mobile"],h],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[l,h],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[l],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[l,U],h],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[l,h],[/\bgsa\/([\w\.]+) .*safari\//i],[h,[l,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[h,[l,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[h,[l,O+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[l,O+" WebView"],h],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[h,[l,"Android "+A]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[l,h],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[h,[l,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[h,l],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[l,[h,Y,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[l,h],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[l,"Netscape"],h],[/(wolvic)\/([\w\.]+)/i],[l,h],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[h,[l,k+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[l,[h,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[l,[h,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[p,"amd64"]],[/(ia32(?=;))/i],[[p,z]],[/((?:i[346]|x)86)[;\)]/i],[[p,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[p,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[p,"armhf"]],[/windows (ce|mobile); ppc;/i],[[p,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[p,/ower/,"",z]],[/(sun4\w)[;\)]/i],[[p,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[p,z]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[c,[d,I],[f,b]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[c,[d,I],[f,y]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[c,[d,_],[f,y]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[c,[d,_],[f,b]],[/(macintosh);/i],[c,[d,_]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[c,[d,N],[f,y]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[c,[d,x],[f,b]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[c,[d,x],[f,y]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i],[[c,/_/g," "],[d,P],[f,y]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[c,/_/g," "],[d,P],[f,b]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[c,[d,"OPPO"],[f,y]],[/\b(opd2\d{3}a?) bui/i],[c,[d,"OPPO"],[f,b]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[c,[d,"Vivo"],[f,y]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[c,[d,"Realme"],[f,y]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[c,[d,M],[f,y]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[c,[d,M],[f,b]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[c,[d,j],[f,b]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[c,[d,j],[f,y]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[c,[d,"Lenovo"],[f,b]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[c,/_/g," "],[d,"Nokia"],[f,y]],[/(pixel c)\b/i],[c,[d,T],[f,b]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[c,[d,T],[f,y]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[c,[d,L],[f,y]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[c,"Xperia Tablet"],[d,L],[f,b]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[c,[d,"OnePlus"],[f,y]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[c,[d,E],[f,b]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[c,/(.+)/g,"Fire Phone $1"],[d,E],[f,y]],[/(playbook);[-\w\),; ]+(rim)/i],[c,d,[f,b]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[c,[d,S],[f,y]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[c,[d,R],[f,b]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[c,[d,R],[f,y]],[/(nexus 9)/i],[c,[d,"HTC"],[f,b]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[d,[c,/_/g," "],[f,y]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[c,[d,"TCL"],[f,b]],[/(itel) ((\w+))/i],[[d,z],c,[f,Y,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[c,[d,"Acer"],[f,b]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[c,[d,"Meizu"],[f,y]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[c,[d,"Ulefone"],[f,y]],[/droid.+; (a(?:015|06[35]|142p?))/i],[c,[d,"Nothing"],[f,y]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[d,c,[f,y]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[d,c,[f,b]],[/(surface duo)/i],[c,[d,D],[f,b]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[c,[d,"Fairphone"],[f,y]],[/(u304aa)/i],[c,[d,"AT&T"],[f,y]],[/\bsie-(\w*)/i],[c,[d,"Siemens"],[f,y]],[/\b(rct\w+) b/i],[c,[d,"RCA"],[f,b]],[/\b(venue[\d ]{2,7}) b/i],[c,[d,"Dell"],[f,b]],[/\b(q(?:mv|ta)\w+) b/i],[c,[d,"Verizon"],[f,b]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[c,[d,"Barnes & Noble"],[f,b]],[/\b(tm\d{3}\w+) b/i],[c,[d,"NuVision"],[f,b]],[/\b(k88) b/i],[c,[d,"ZTE"],[f,b]],[/\b(nx\d{3}j) b/i],[c,[d,"ZTE"],[f,y]],[/\b(gen\d{3}) b.+49h/i],[c,[d,"Swiss"],[f,y]],[/\b(zur\d{3}) b/i],[c,[d,"Swiss"],[f,b]],[/\b((zeki)?tb.*\b) b/i],[c,[d,"Zeki"],[f,b]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[d,"Dragon Touch"],c,[f,b]],[/\b(ns-?\w{0,9}) b/i],[c,[d,"Insignia"],[f,b]],[/\b((nxa|next)-?\w{0,9}) b/i],[c,[d,"NextBook"],[f,b]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[d,"Voice"],c,[f,y]],[/\b(lvtel\-)?(v1[12]) b/i],[[d,"LvTel"],c,[f,y]],[/\b(ph-1) /i],[c,[d,"Essential"],[f,y]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[c,[d,"Envizen"],[f,b]],[/\b(trio[-\w\. ]+) b/i],[c,[d,"MachSpeed"],[f,b]],[/\btu_(1491) b/i],[c,[d,"Rotor"],[f,b]],[/(shield[\w ]+) b/i],[c,[d,"Nvidia"],[f,b]],[/(sprint) (\w+)/i],[d,c,[f,y]],[/(kin\.[onetw]{3})/i],[[c,/\./g," "],[d,D],[f,y]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[c,[d,B],[f,b]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[c,[d,B],[f,y]],[/smart-tv.+(samsung)/i],[d,[f,g]],[/hbbtv.+maple;(\d+)/i],[[c,/^/,"SmartTV"],[d,I],[f,g]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[d,j],[f,g]],[/(apple) ?tv/i],[d,[c,_+" TV"],[f,g]],[/crkey/i],[[c,O+"cast"],[d,T],[f,g]],[/droid.+aft(\w+)( bui|\))/i],[c,[d,E],[f,g]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[c,[d,N],[f,g]],[/(bravia[\w ]+)( bui|\))/i],[c,[d,L],[f,g]],[/(mitv-\w{5}) bui/i],[c,[d,P],[f,g]],[/Hbbtv.*(technisat) (.*);/i],[d,c,[f,g]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[d,G],[c,G],[f,g]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[f,g]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[d,c,[f,m]],[/droid.+; (shield) bui/i],[c,[d,"Nvidia"],[f,m]],[/(playstation [345portablevi]+)/i],[c,[d,L],[f,m]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[c,[d,D],[f,m]],[/\b(sm-[lr]\d\d[05][fnuw]?s?)\b/i],[c,[d,I],[f,v]],[/((pebble))app/i],[d,c,[f,v]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[c,[d,_],[f,v]],[/droid.+; (glass) \d/i],[c,[d,T],[f,v]],[/droid.+; (wt63?0{2,3})\)/i],[c,[d,B],[f,v]],[/(quest( \d| pro)?)/i],[c,[d,U],[f,v]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[d,[f,w]],[/(aeobc)\b/i],[c,[d,E],[f,w]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[c,[f,y]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[c,[f,b]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[f,b]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[f,y]],[/(android[-\w\. ]{0,9});.+buil/i],[c,[d,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[h,[l,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[h,[l,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[l,h],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[h,l]],os:[[/microsoft (windows) (vista|xp)/i],[l,h],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[l,[h,Y,K]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[h,Y,K],[l,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[h,/_/g,"."],[l,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[l,q],[h,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[h,l],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[l,h],[/\(bb(10);/i],[h,[l,S]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[h,[l,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[h,[l,k+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[h,[l,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[h,[l,"watchOS"]],[/crkey\/([\d\.]+)/i],[h,[l,O+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[l,F],h],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[l,h],[/(sunos) ?([\w\.\d]*)/i],[[l,"Solaris"],h],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[l,h]]},X=function(t,n){if(typeof t===a&&(n=t,t=r),!(this instanceof X))return new X(t,n).getResult();var m=typeof e!==o&&e.navigator?e.navigator:r,g=t||(m&&m.userAgent?m.userAgent:""),v=m&&m.userAgentData?m.userAgentData:r,w=n?function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n}(J,n):J,E=m&&m.userAgent==g;return this.getBrowser=function(){var e,t={};return t[l]=r,t[h]=r,$.call(t,g,w.browser),t[u]=typeof(e=t[h])===s?e.replace(/[^\d\.]/g,"").split(".")[0]:r,E&&m&&m.brave&&typeof m.brave.isBrave==i&&(t[l]="Brave"),t},this.getCPU=function(){var e={};return e[p]=r,$.call(e,g,w.cpu),e},this.getDevice=function(){var e={};return e[d]=r,e[c]=r,e[f]=r,$.call(e,g,w.device),E&&!e[f]&&v&&v.mobile&&(e[f]=y),E&&"Macintosh"==e[c]&&m&&typeof m.standalone!==o&&m.maxTouchPoints&&m.maxTouchPoints>2&&(e[c]="iPad",e[f]=b),e},this.getEngine=function(){var e={};return e[l]=r,e[h]=r,$.call(e,g,w.engine),e},this.getOS=function(){var e={};return e[l]=r,e[h]=r,$.call(e,g,w.os),E&&!e[l]&&v&&v.platform&&"Unknown"!=v.platform&&(e[l]=v.platform.replace(/chrome os/i,F).replace(/macos/i,q)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return g},this.setUA=function(e){return g=typeof e===s&&e.length>500?G(e,500):e,this},this.setUA(g),this};X.VERSION="1.0.39",X.BROWSER=H([l,h,u]),X.CPU=H([p]),X.DEVICE=H([c,d,f,m,y,g,b,v,w]),X.ENGINE=X.OS=H([l,h]),typeof n!==o?(typeof t!==o&&t.exports&&(n=t.exports=X),n.UAParser=X):typeof e!==o&&(e.UAParser=X);var Q=typeof e!==o&&(e.jQuery||e.Zepto);if(Q&&!Q.ua){var Z=new X;Q.ua=Z.getResult(),Q.ua.get=function(){return Z.getUA()},Q.ua.set=function(e){Z.setUA(e);var t=Z.getResult();for(var n in t)Q.ua[n]=t[n]}}}("object"==typeof window?window:this)},{}],111:[function(e,t,n){(function(e){(function(){function n(t){try{if(!e.localStorage)return!1}catch(e){return!1}var n=e.localStorage[t];return null!=n&&"true"===String(n).toLowerCase()}t.exports=function(e,t){if(n("noDeprecation"))return e;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw new Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}}}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],112:[function(e,t,n){(function(n,r){(function(){var i=e("readable-stream"),o=e("end-of-stream"),a=e("inherits"),s=e("stream-shift"),u=r.from&&r.from!==Uint8Array.from?r.from([0]):new r([0]),c=function(e,t){e._corked?e.once("uncork",t):t()},l=function(e,t){return function(n){n?function(e,t){e._autoDestroy&&e.destroy(t)}(e,"premature close"===n.message?null:n):t&&!e._ended&&e.end()}},f=function(e,t,n){if(!(this instanceof f))return new f(e,t,n);i.Duplex.call(this,n),this._writable=null,this._readable=null,this._readable2=null,this._autoDestroy=!n||!1!==n.autoDestroy,this._forwardDestroy=!n||!1!==n.destroy,this._forwardEnd=!n||!1!==n.end,this._corked=1,this._ondrain=null,this._drained=!1,this._forwarding=!1,this._unwrite=null,this._unread=null,this._ended=!1,this.destroyed=!1,e&&this.setWritable(e),t&&this.setReadable(t)};a(f,i.Duplex),f.obj=function(e,t,n){return n||(n={}),n.objectMode=!0,n.highWaterMark=16,new f(e,t,n)},f.prototype.cork=function(){1==++this._corked&&this.emit("cork")},f.prototype.uncork=function(){this._corked&&0==--this._corked&&this.emit("uncork")},f.prototype.setWritable=function(e){if(this._unwrite&&this._unwrite(),this.destroyed)e&&e.destroy&&e.destroy();else if(null!==e&&!1!==e){var t=this,r=o(e,{writable:!0,readable:!1},l(this,this._forwardEnd)),i=function(){var e=t._ondrain;t._ondrain=null,e&&e()};this._unwrite&&n.nextTick(i),this._writable=e,this._writable.on("drain",i),this._unwrite=function(){t._writable.removeListener("drain",i),r()},this.uncork()}else this.end()},f.prototype.setReadable=function(e){if(this._unread&&this._unread(),this.destroyed)e&&e.destroy&&e.destroy();else{if(null===e||!1===e)return this.push(null),void this.resume();var t,n=this,r=o(e,{writable:!1,readable:!0},l(this)),a=function(){n._forward()},s=function(){n.push(null)};this._drained=!0,this._readable=e,this._readable2=e._readableState?e:(t=e,new i.Readable({objectMode:!0,highWaterMark:16}).wrap(t)),this._readable2.on("readable",a),this._readable2.on("end",s),this._unread=function(){n._readable2.removeListener("readable",a),n._readable2.removeListener("end",s),r()},this._forward()}},f.prototype._read=function(){this._drained=!0,this._forward()},f.prototype._forward=function(){if(!this._forwarding&&this._readable2&&this._drained){var e;for(this._forwarding=!0;this._drained&&null!==(e=s(this._readable2));)this.destroyed||(this._drained=this.push(e));this._forwarding=!1}},f.prototype.destroy=function(e){if(!this.destroyed){this.destroyed=!0;var t=this;n.nextTick((function(){t._destroy(e)}))}},f.prototype._destroy=function(e){if(e){var t=this._ondrain;this._ondrain=null,t?t(e):this.emit("error",e)}this._forwardDestroy&&(this._readable&&this._readable.destroy&&this._readable.destroy(),this._writable&&this._writable.destroy&&this._writable.destroy()),this.emit("close")},f.prototype._write=function(e,t,n){return this.destroyed?n():this._corked?c(this,this._write.bind(this,e,t,n)):e===u?this._finish(n):this._writable?void(!1===this._writable.write(e)?this._ondrain=n:n()):n()},f.prototype._finish=function(e){var t=this;this.emit("preend"),c(this,(function(){var n,r;n=t._forwardEnd&&t._writable,r=function(){!1===t._writableState.prefinished&&(t._writableState.prefinished=!0),t.emit("prefinish"),c(t,e)},n?n._writableState&&n._writableState.finished?r():n._writableState?n.end(r):(n.end(),r()):r()}))},f.prototype.end=function(e,t,n){return"function"==typeof e?this.end(null,null,e):"function"==typeof t?this.end(e,null,t):(this._ended=!0,e&&this.write(e),this._writableState.ending||this.write(u),i.Writable.prototype.end.call(this,n))},t.exports=f}).call(this)}).call(this,e("_process"),e("buffer").Buffer)},{_process:79,buffer:18,"end-of-stream":35,inherits:66,"readable-stream":96,"stream-shift":102}],113:[function(e,t,n){(function(n,r){(function(){"use strict";var i=e("readable-stream").Transform,o=e("duplexify"),a=e("ws"),s=e("safe-buffer").Buffer;t.exports=function(e,t,u){var c,l,f="browser"===n.title,d=!!r.WebSocket,h=f?function e(t,n,r){if(l.bufferedAmount>m)return void setTimeout(e,y,t,n,r);g&&"string"==typeof t&&(t=s.from(t,"utf8"));try{l.send(t)}catch(e){return r(e)}r()}:function(e,t,n){if(l.readyState!==l.OPEN)return void n();g&&"string"==typeof e&&(e=s.from(e,"utf8"));l.send(e,n)};t&&!Array.isArray(t)&&"object"==typeof t&&(u=t,t=null,("string"==typeof u.protocol||Array.isArray(u.protocol))&&(t=u.protocol));u||(u={});void 0===u.objectMode&&(u.objectMode=!(!0===u.binary||void 0===u.binary));var p=function(e,t,n){var r=new i({objectMode:e.objectMode});return r._write=t,r._flush=n,r}(u,h,(function(e){l.close(),e()}));u.objectMode||(p._writev=R);var m=u.browserBufferSize||524288,y=u.browserBufferTimeout||1e3;"object"==typeof e?l=e:(l=d&&f?new a(e,t):new a(e,t,u)).binaryType="arraybuffer";var b=void 0===l.addEventListener;l.readyState===l.OPEN?c=p:(c=c=o(void 0,void 0,u),u.objectMode||(c._writev=R),b?l.addEventListener("open",v):l.onopen=v);c.socket=l,b?(l.addEventListener("close",w),l.addEventListener("error",E),l.addEventListener("message",_)):(l.onclose=w,l.onerror=E,l.onmessage=_);p.on("close",(function(){l.close()}));var g=!u.objectMode;function v(){c.setReadable(p),c.setWritable(p),c.emit("connect")}function w(){c.end(),c.destroy()}function E(e){c.destroy(e)}function _(e){var t=e.data;t=t instanceof ArrayBuffer?s.from(t):s.from(t,"utf8"),p.push(t)}function R(e,t){for(var n=new Array(e.length),r=0;r<e.length;r++)"string"==typeof e[r].chunk?n[r]=s.from(e[r],"utf8"):n[r]=e[r].chunk;this._write(s.concat(n),"binary",t)}return c}}).call(this)}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:79,duplexify:112,"readable-stream":96,"safe-buffer":98,ws:114}],114:[function(e,t,n){var r=null;"undefined"!=typeof WebSocket?r=WebSocket:"undefined"!=typeof MozWebSocket?r=MozWebSocket:"undefined"!=typeof window&&(r=window.WebSocket||window.MozWebSocket),t.exports=r},{}],115:[function(e,t,n){t.exports=function e(t,n){if(t&&n)return e(t)(n);if("function"!=typeof t)throw new TypeError("need wrapper function");return Object.keys(t).forEach((function(e){r[e]=t[e]})),r;function r(){for(var e=new Array(arguments.length),n=0;n<e.length;n++)e[n]=arguments[n];var r=t.apply(this,e),i=e[e.length-1];return"function"==typeof r&&r!==i&&Object.keys(i).forEach((function(e){r[e]=i[e]})),r}}},{}],116:[function(e,t,n){t.exports={name:"videomail-client",version:"9.3.2",description:"A wicked npm package to record videos directly in the browser, wohooo!",keywords:["webcam","video","videomail","encoder","getusermedia","audio","recorder"],homepage:"https://videomail.io",repository:{type:"git",url:"git+https://github.com/binarykitchen/videomail-client.git"},license:"CC0-1.0",author:"Michael Heuberger <michael.heuberger@binarykitchen.com>",contributors:[{name:"Michael Heuberger",email:"michael.heuberger@binarykitchen.com"}],main:"prototype/js/videomail-client.js",scripts:{audit:"npx audit-ci --config audit-ci.json",build:"gulp build",clean:"rm -rf node_modules && rm -rf package-lock.json",lint:"eslint --color ./src ./test ./gulpfile.js","lint:fix":"npm --silent run lint -- --fix",major:"./env/dev/release.sh --importance=major",minor:"./env/dev/release.sh --importance=minor",patch:"./env/dev/release.sh --importance=patch",prettier:"prettier --check ./src ./test ./prototype/*.html gulpfile.js","prettier:fix":"prettier --write ./src ./test ./prototype/*.html gulpfile.js",test:"gulp test",watch:"NODE_NO_HTTP2=1 gulp watch"},prettier:"./prettier.config.cjs",dependencies:{"@babel/core":"7.25.2","add-eventlistener-with-options":"1.25.5",animitter:"3.0.0","audio-sample":"4.1.0","canvas-to-buffer":"4.1.0","classlist.js":"1.1.20150312",contains:"0.1.1","core-js":"3.38.1","create-error":"0.3.1",deepmerge:"4.3.1",defined:"1.0.1",despot:"2.1.0","document-visibility":"1.0.1",filesize:"10.1.6","format-util":"1.0.5","get-form-data":"3.0.0",hidden:"1.1.1","humanize-duration":"3.32.1",hyperscript:"2.0.2",inherits:"2.0.4","insert-css":"2.0.0","iphone-inline-video":"2.2.2","is-power-of-two":"1.0.0",keymirror:"0.1.1","number-is-integer":"2.0.0","request-frame":"1.5.3","safe-json-stringify":"1.2.0",superagent:"8.1.2","ua-parser-js":"1.0.39","websocket-stream":"5.5.2"},devDependencies:{"@babel/eslint-parser":"7.25.1","@babel/plugin-transform-runtime":"7.25.4","@babel/preset-env":"7.25.4","audit-ci":"7.1.0",autoprefixer:"10.4.20",babelify:"10.0.0","body-parser":"1.20.3",browserify:"17.0.0","connect-send-json":"1.0.0",cssnano:"6.0.5",del:"6.1.1",eslint:"8.57.0","eslint-config-prettier":"9.1.0","eslint-plugin-import":"2.30.0","eslint-plugin-node":"11.1.0","eslint-plugin-promise":"6.2.0","fancy-log":"2.0.0",glob:"10.4.2",gulp:"4.0.2","gulp-bump":"3.2.0","gulp-bytediff":"1.0.0","gulp-concat":"2.6.1","gulp-connect":"5.7.0","gulp-derequire":"3.0.0","gulp-if":"3.0.0","gulp-inject-string":"1.1.2","gulp-load-plugins":"2.0.8","gulp-plumber":"1.2.1","gulp-postcss":"10.0.0","gulp-rename":"2.0.0","gulp-sourcemaps":"3.0.0","gulp-stylus":"3.0.1","gulp-terser":"2.1.0",minimist:"1.2.8",nib:"1.2.0",postcss:"8.4.47",prettier:"3.3.3","prettier-plugin-curly":"0.2.2","prettier-plugin-organize-imports":"4.0.0","prettier-plugin-packagejson":"2.5.2","prettier-plugin-sh":"0.14.0",router:"1.3.8",tape:"5.9.0","tape-catch":"1.0.6","tape-run":"11.0.0","vinyl-buffer":"1.0.1","vinyl-source-stream":"2.0.0",watchify:"4.0.0"},engines:{node:">=20.16.0",npm:">=10.8.1"},readmeFilename:"README.md"}},{}],117:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i,o,a=r(e("deepmerge")),s=r(e("inherits")),u=r(e("./constants")),c=r(e("./events")),l=r(e("./options")),f=r(e("./resource")),d=r(e("./util/browser")),h=r(e("./util/collectLogger")),p=r(e("./util/eventEmitter")),m=r(e("./wrappers/container")),y=r(e("./util/addOptionsFunctions"));var b=function(e){var t=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,a.default)(l.default,e,{arrayMerge:function(e,t){return t}});return i||(i=new h.default(t)),t.logger=i,t.debug=t.logger.debug,(0,y.default)(t)}(e),n=new m.default(t),r=t.debug;this.events=c.default,p.default.call(this,t,"VideomailClient"),this.build=function(){var e=!1;e||n.isBuilt()||(r("Client: build()"),e=!0,n.build(),e=!1)},this.show=function(){n.isBuilt()||this.build(),n.show()},this.replay=function(e,t){n.isBuilt()||n.build(!0,t),e&&(e=n.addPlayerDimensions(e)),n.buildForm(),n.loadForm(e),this.once(c.default.REPLAY_SHOWN,(function(){n.showReplayOnly()})),n.getReplay().setVideomail(e)},this.startOver=function(e){var t=n.getReplay();t&&(t.hide(),t.reset()),n.startOver(e)},this.unload=function(e){this.removeAllListeners(),n.unload(e)},this.hide=function(){n.hide()},this.getByAlias=function(e,r){new f.default(t).getByAlias(e,(function(e,t){e?r(e):r(null,n.addPlayerDimensions(t))}))},this.get=this.getByAlias,this.getByKey=function(e,r){new f.default(t).getByKey(e,(function(e,t){e?r(e):r(null,n.addPlayerDimensions(t))}))},this.canRecord=function(){return function(e){return o||(o=new d.default(e)),o}(t).canRecord()},this.isDirty=function(){return n.isDirty()},this.isBuilt=function(){return n.isBuilt()},this.isRecording=function(){return n.isRecording()},this.submit=function(){n.submit()},this.getLogLines=function(){if(t.logger&&t.logger.getLines)return t.logger.getLines()}};(0,s.default)(b,p.default),Object.keys(u.default.public).forEach((function(e){b[e]=u.default.public[e]})),b.Events=c.default;n.default=b},{"./constants":118,"./events":119,"./options":120,"./resource":121,"./util/addOptionsFunctions":122,"./util/browser":124,"./util/collectLogger":125,"./util/eventEmitter":126,"./wrappers/container":133,"@babel/runtime/helpers/interopRequireDefault":4,deepmerge:28,inherits:66}],118:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;n.default={SITE_NAME_LABEL:"x-videomail-site-name",VERSION_LABEL:"videomailClientVersion",public:{ENC_TYPE_APP_JSON:"application/json",ENC_TYPE_FORM:"application/x-www-form-urlencoded"}}},{}],119:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(e("keymirror"));n.default=(0,i.default)({BUILT:null,FORM_READY:null,LOADING_USER_MEDIA:null,USER_MEDIA_READY:null,CONNECTING:null,CONNECTED:null,DISCONNECTED:null,COUNTDOWN:null,RECORDING:null,STOPPING:null,STOPPED:null,PROGRESS:null,BEGIN_AUDIO_ENCODING:null,BEGIN_VIDEO_ENCODING:null,RESETTING:null,PAUSED:null,RESUMING:null,PREVIEW:null,PREVIEW_SHOWN:null,REPLAY_SHOWN:null,INVALID:null,VALIDATING:null,VALID:null,SUBMITTING:null,SUBMITTED:null,ERROR:null,BLOCKING:null,SENDING_FIRST_FRAME:null,FIRST_FRAME_SENT:null,HIDE:null,NOTIFYING:null,ENABLING_AUDIO:null,DISABLING_AUDIO:null,LOADED_META_DATA:null,EVENT_EMITTED:null,GOING_BACK:null,STARTING_OVER:null,ASKING_WEBCAM_PERMISSION:null,VISIBLE:null,INVISIBLE:null,SWITCH_FACING_MODE:null,SERVER_READY:null,UNLOADING:null})},{"@babel/runtime/helpers/interopRequireDefault":4,keymirror:73}],120:[function(e,t,n){(function(t){(function(){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=e("../../package.json"),o=r(e("./util/addOptionsFunctions")),a={logger:null,logStackSize:30,verbose:!("production"===t.env.NODE_ENV),baseUrl:"https://videomail.io",socketUrl:"wss://videomail.io",siteName:"videomail-client-demo",insertCss:!0,enablePause:!0,enableAutoPause:!0,enableSpace:!0,submitWithVideomail:!1,disableSubmit:!1,enableAutoValidation:!0,enableAutoUnload:!0,enableAutoSubmission:!0,enctype:"application/json",selectors:{containerId:"videomail",containerClass:"videomail",replayClass:"replay",userMediaClass:"userMedia",visualsClass:"visuals",buttonClass:null,buttonsClass:"buttons",recordButtonClass:"record",pauseButtonClass:"pause",resumeButtonClass:"resume",previewButtonClass:"preview",recordAgainButtonClass:"recordAgain",submitButtonClass:"submit",subjectInputName:"subject",fromInputName:"from",toInputName:"to",ccInputName:"cc",bccInputName:"bcc",bodyInputName:"body",sendCopyInputName:"sendCopy",keyInputName:"videomail_key",parentKeyInputName:"videomail_parent_key",formId:null,submitButtonId:null,submitButtonSelector:null},audio:{enabled:!1,switch:!1,volume:.2,bufferSize:"auto"},video:{fps:15,limitSeconds:30,countdown:3,width:"auto",height:"auto",facingMode:"user",facingModeButton:!1,stretch:!1},image:{quality:.42,types:["webp","jpeg"]},text:{pausedHeader:"Paused",pausedHint:null,sending:"Teleporting",encoding:"Encoding",limitReached:"Limit reached",audioOff:"Audio off",audioOn:"Audio on",buttons:{record:"Record video",recordAgain:"Record again",resume:"Resume",pause:"Pause",preview:"Preview"}},notifier:{entertain:!1,entertainClass:"bg",entertainLimit:6,entertainInterval:9e3},timeouts:{userMedia:2e4,connection:1e4,pingInterval:3e4},loadUserMediaOnRecord:!1,callbacks:{adjustFormDataBeforePosting:null},defaults:{from:null,to:null,cc:null,bcc:null,subject:null,body:null},displayErrors:!0,adjustFormOnBrowserError:!1,reportErrors:!1,fakeUaString:null,version:i.version},s=(0,o.default)(a);n.default=s}).call(this)}).call(this,e("_process"))},{"../../package.json":116,"./util/addOptionsFunctions":122,"@babel/runtime/helpers/interopRequireDefault":4,_process:79}],121:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){function t(t,n){return e.defaults[n]&&!t[n]&&(t[n]=e.defaults[n]),t}function n(e,t,n){Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0})}function r(e,t){if(t&&t.body&&t.body.error){var r=t.body.error,i=new Error;return n(i,"name",r.name),n(i,"type",r.type),n(i,"message",r.message||t.statusText),n(i,"cause",r.cause),n(i,"status",r.status),n(i,"code",r.code),n(i,"errno",r.errno),n(i,"details",r.details),n(i,"stack",r.stack),i}return e}function s(t,n,s){var u="".concat(e.baseUrl,"/videomail/").concat(t,"/").concat(n,"/snapshot");(0,i.default)("get",u).type("json").set("Accept","application/json").set("Timezone-Id",a).set(o.default.SITE_NAME_LABEL,e.siteName).timeout(e.timeouts.connection).end((function(e,t){if(e){var n=r(e,t);s(n)}else{var i=t.body?t.body:null;s(null,i)}}))}function u(t,n,s,u){u||(u=s,s=null);var c={},l="".concat(e.baseUrl,"/videomail/");s&&(l+=s);var f=(0,i.default)(t,l);c[o.default.SITE_NAME_LABEL]=e.siteName,f.query(c).set("Timezone-Id",a).send(n).timeout(e.timeout).end((function(e,t){if(e){var n=r(e,t);u(n)}else{var i=t.body&&t.body.videomail?t.body.videomail:null;u(null,i,t.body)}}))}this.getByAlias=function(e,t){s("alias",e,t)},this.getByKey=function(e,t){s("key",e,t)},this.reportError=function(t,n){var a={},s="".concat(e.baseUrl,"/client-error/"),u=(0,i.default)("post",s);a[o.default.SITE_NAME_LABEL]=e.siteName,u.query(a).send(t).timeout(e.timeout).end((function(e,t){if(e){var i=r(e,t);n&&n(i)}else n&&n()}))},this.post=function(n,r){(n=function(n){return e.defaults&&(n=t(n,"from"),n=t(n,"to"),n=t(n,"cc"),n=t(n,"bcc"),n=t(n,"subject"),n=t(n,"body")),n}(n))[o.default.VERSION_LABEL]=e.version,e.callbacks.adjustFormDataBeforePosting?e.callbacks.adjustFormDataBeforePosting(n,(function(e,t){e?r(e):u("post",t,r)})):u("post",n,r)},this.put=function(e,t){u("put",e,e.key,t)},this.form=function(t,n,s){var u;switch(e.enctype){case o.default.public.ENC_TYPE_APP_JSON:u="json";break;case o.default.public.ENC_TYPE_FORM:u="form";break;default:setTimeout((function(){s(new Error("Invalid enctype given: ".concat(e.enctype)))}),0)}u&&i.default.post(n).type(u).set("Timezone-Id",a).send(t).timeout(e.timeout).end((function(e,t){if(e){var n=r(e,t);s(n)}else s(null,t)}))}};var i=r(e("superagent")),o=r(e("./constants")),a=Intl.DateTimeFormat().resolvedOptions().timeZone},{"./constants":118,"@babel/runtime/helpers/interopRequireDefault":4,superagent:104}],122:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;n.default=function(e){var t=e.audio&&e.audio.enabled;return e.hasDefinedWidth=function(){return this.video.width&&"auto"!==this.video.width},e.hasDefinedHeight=function(){return this.video.height&&"auto"!==this.video.height},e.hasDefinedDimension=function(){return this.hasDefinedWidth()||this.hasDefinedHeight()},e.hasDefinedDimensions=function(){return this.hasDefinedWidth()&&this.hasDefinedHeight()},e.getRatio=function(){var e=1,t=this.videoHeight&&this.videoWidth;return this.hasDefinedDimensions()?e=t&&(this.videoHeight<this.video.height||this.videoWidth<this.video.width)?this.videoHeight/this.videoWidth:this.video.height/this.video.width:t&&(e=this.videoHeight/this.videoWidth),e},e.isAudioEnabled=function(){return t},e.setAudioEnabled=function(e){t=e},e.isAutoPauseEnabled=function(){return this.enableAutoPause&&this.enablePause},e}},{}],123:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,t){var n,r,c,l=new a.default(t);function f(){return window.AudioContext||window.webkitAudioContext}function d(){return Boolean(f())&&Boolean(h())}function h(){if(!c){var e=f();c=new e}return c}this.init=function(e){t.debug("AudioRecorder: init()");var i=h().createGain();try{r=h().createMediaStreamSource(e)}catch(e){throw s.default.create("Webcam has no audio",e.toString(),t)}var a=t.audio.bufferSize;if("auto"===a&&(a=l.isFirefox()?512:2048),!(0,o.default)(a))throw s.default.create("Audio buffer size must be a power of two.",t);if(!t.audio.volume||t.audio.volume>1)throw s.default.create("Audio volume must be between zero and one.",t);i.gain.value=t.audio.volume,n=h().createScriptProcessor(a,u,u),r.connect(n),n.connect(h().destination),r.connect(i),i.connect(n)},this.record=function(r){t.debug("AudioRecorder: record()"),n.onaudioprocess=function(t){!function(t,n){if(e.isRecording()&&!e.isPaused()){var r=t.inputBuffer.getChannelData(0);n(new i.default(r))}}(t,r)}},this.stop=function(){t.debug("AudioRecorder: stop()"),n&&(n.onaudioprocess=void 0),r&&r.disconnect(),d()&&(h().close?h().close().then((function(){t.debug("AudioRecorder: audio context is closed"),c=null})).catch((function(e){throw s.default.create(e,t)})):c=null)},this.getSampleRate=function(){return d()?h().sampleRate:-1}};var i=r(e("audio-sample")),o=r(e("is-power-of-two")),a=r(e("./browser")),s=r(e("./videomailError")),u=1},{"./browser":124,"./videomailError":131,"@babel/runtime/helpers/interopRequireDefault":4,"audio-sample":14,"is-power-of-two":71}],124:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(e("@babel/runtime/helpers/typeof")),o=r(e("defined")),a=r(e("ua-parser-js")),s=r(e("./videomailError"));n.default=function(e){e||(e={});var t,n="http://www.mozilla.org/firefox/update/",r="https://www.microsoft.com/en-us/download/details.aspx?id=48126",u="http://www.google.com/chrome/",c="http://www.chromium.org/getting-involved/download-chromium",l=(0,o.default)(e.fakeUaString,"undefined"!=typeof window&&window.navigator&&window.navigator.userAgent,""),f=new a.default(l).getResult(),d="iOS"===f.os.name,h=parseFloat(f.browser.version),p="Chrome"===f.browser.name,m="Brave"===f.browser.name,y="Chromium"===f.browser.name,b="Firefox"===f.browser.name,g=parseFloat(f.os.version),v="Windows"===f.os.name,w="Edge"===f.browser.name||v&&g>=10,E=/Safari/.test(f.browser.name),_=/Opera/.test(f.browser.name),R=/Android/.test(f.os.name),S=p||y,A="Facebook"===f.browser.name,O=d||R,k=E&&h>=11,T=d&&g>=11,x=d&&g<11,j=e.fakeHttps||"https:"===window.location.protocol,D=S||b||R||_||w||k||T||m,M=this;function C(){var e;return(e=x?"On iPads or iPhones below iOS v11 this camera feature is missing.<br/><br/>For now, we recommend you to upgrade iOS or to use an Android device.":function(){var e;return b?e=d?"Firefox on iOS is not ready for cameras yet. Hopefully in near future ...":'Probably you need to <a href="'.concat(n,'" target="_blank">')+"upgrade Firefox</a> to fix this.":p?e=d?"Use Safari instead. Apple doesn't give Chrome access to iPhone cameras (booo).":'Probably you need to <a href="'.concat(u,'" target="_blank">')+"upgrade Chrome</a> to fix this.":y?e='Probably you need to <a href="'.concat(c,'" target="_blank">')+"upgrade Chromium</a> to fix this.":k?e="Probably you need to shut down Safari and restart it, this for correct webcam access.":E&&(e="Safari below version 11 has no webcam support.<br/>Better upgrade Safari or pick"+' <a href="'.concat(u,'" target="_blank">Chrome</a>,')+' <a href="'.concat(n,'" target="_blank">Firefox</a> or Android.')),e}())||(e=M.isChromeBased()||M.isFirefox()||E?"For the webcam feature, your browser needs an upgrade.":A?"Hence we recommend you to use a real browser like "+'<a href="'.concat(u,'" target="_blank">Chrome</a>, ')+'<a href="'.concat(n,'" target="_blank">Firefox</a> or ')+'<a href="'.concat(r,'" target="_blank">Edge</a>.'):"Hence we recommend you to use either "+'<a href="'.concat(u,'" target="_blank">Chrome</a>, ')+'<a href="'.concat(n,'" target="_blank">Firefox</a>, ')+'<a href="'.concat(r,'" target="_blank">Edge</a> or Android.')),e}function I(e,t){var n;return e&&e.canPlayType&&(n=e.canPlayType("video/".concat(t))),""!==n&&n}this.canRecord=function(){var e="undefined"!=typeof navigator,t=!1;e&&navigator.mediaDevices&&navigator.mediaDevices.getUserMedia?t=!0:t="function"===(e&&(0,i.default)(navigator.getUserMedia_));return t},this.checkRecordingCapabilities=function(){var t;if(j){if(!D||!this.canRecord()){var n,r=[];x?r.push(s.default.IOS_PROBLEM):r.push(s.default.BROWSER_PROBLEM),n=D?O?A?"Sorry, the Facebook app cannot record from your mobile camera":"Sorry, your browser cannot record from your mobile camera":"Sorry, your browser cannot record from webcams":O?"Sorry, your browser is unable to use your mobile camera":"Sorry, your browser is unable to use webcams",x&&(e.reportErrors=!1),t=s.default.create(n,C(),e,{classList:r})}}else t=s.default.create("Sorry, your page is insecure","Please switch to HTTPS to ensure all is encrypted.",e,{classList:[s.default.BROWSER_PROBLEM]});return t},this.checkBufferTypes=function(){var t;return"undefined"==typeof window||void 0===window.atob?t=s.default.create("atob is not supported",e):void 0===window.ArrayBuffer?t=s.default.create("ArrayBuffers are not supported",e):void 0===window.Uint8Array&&(t=s.default.create("Uint8Arrays are not supported",e)),t},this.getVideoType=function(e){return!t&&e&&(I(e,"mp4")?t="mp4":I(e,"webm")&&(t="webm")),"webm"!==t&&"mp4"!==t&&(t="mp4"),t&&""!==t||(t="mp4"),t},this.getNoAccessIssue=function(){var t;return t=this.isChromeBased()?"Click on the allow button to grant access to your webcam":this.isFirefox()?"Please grant Firefox access to your webcam":"Your system does not let your browser access your webcam",s.default.create("Unable to access webcam",t,e)},this.isChromeBased=function(){return S},this.isFirefox=function(){return b},this.isEdge=function(){return w},this.isAndroid=function(){return R},this.isMobile=function(){return"mobile"===f.device.type},this.isOkSafari=function(){return k},this.isIOS=function(){return d},this.getUsefulData=function(){return{browser:f.browser,cpu:f.cpu.architecture?f.cpu:void 0,device:f.device.type?f.device:void 0,engine:f.engine,os:f.os.name&&f.os.version?f.os:void 0}}}},{"./videomailError":131,"@babel/runtime/helpers/interopRequireDefault":4,"@babel/runtime/helpers/typeof":10,defined:30,"ua-parser-js":110}],125:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new a.default(e),n=e.logger||console,r=e.selectors&&e.selectors.containerId||"undefined container id",s=[];function u(t,n){var r=o.default.apply(void 0,(0,i.default)(n));return s.length>e.logStackSize&&s.pop(),s.push("[".concat(t,"] ").concat(r)),r}function c(e){return"#".concat(r," [").concat((new Date).toLocaleTimeString(),"] > ").concat(e)}this.debug=function(){var r=[].slice.call(arguments,0);r[0]=c(r[0]);var i=u("debug",r);e.verbose&&(t.isFirefox()?n.debug(i):n.groupCollapsed?(n.groupCollapsed(i),n.trace("Trace"),n.groupEnd()):n.debug?n.debug(i):console.log(i))},this.error=function(){var e=[].slice.call(arguments,0);e[0]=c(e[0]),n.error(u("error",e))},this.warn=function(){var e=[].slice.call(arguments,0);e[0]=c(e[0]),n.warn(u("warn",e))},this.getLines=function(){return s}};var i=r(e("@babel/runtime/helpers/toConsumableArray")),o=r(e("format-util")),a=r(e("./browser"))},{"./browser":124,"@babel/runtime/helpers/interopRequireDefault":4,"@babel/runtime/helpers/toConsumableArray":7,"format-util":47}],126:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,t){this.emit=function(n){var r,u=Array.prototype.slice.call(arguments,0);if(!n)throw s.default.create("You cannot emit without an event.",e);if(n===a.default.ERROR){var c=u[1];c=s.default.create(c,e),u[1]=c}e.debug&&("removeListener"!==n&&"newListener"!==n&&(u[1]&&(r=u.slice(1)),r?e.debug("".concat(t," emits ").concat(n," with ").concat((0,o.default)(r))):e.debug("".concat(t," emits ").concat(n))));return i.default.emit.apply(i.default,u)},this.on=function(e,t){return i.default.on(e,t)},this.once=function(e,t){return i.default.once(e,t)},this.listeners=function(e){return i.default.listeners(e)},this.removeListener=function(e,t){return i.default.removeListener(e,t)},this.removeAllListeners=function(){i.default.removeAllListeners()}};var i=r(e("despot")),o=r(e("safe-json-stringify")),a=r(e("./../events")),s=r(e("./videomailError"))},{"./../events":119,"./videomailError":131,"@babel/runtime/helpers/interopRequireDefault":4,despot:31,"safe-json-stringify":99}],127:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=e("filesize"),o=r(e("humanize-duration"));n.default={filesize:function(e,t){return(0,i.filesize)(e,{round:t})},toTime:function(e){return(0,o.default)(e)}}},{"@babel/runtime/helpers/interopRequireDefault":4,filesize:46,"humanize-duration":62}],128:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;n.default=["loadstart","suspend","progress","abort","emptied","stalled","pause","loadeddata","waiting","playing","canplay","canplaythrough","seeking","seeked","ended","ratechange","durationchange","volumechange"]},{}],129:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,t){if(null===e)return"null";if(void 0===e)return"undefined";if("string"==typeof e)return e;if(Array.isArray(e))return function(e){if(e&&e.length>0){var t=[];return e.forEach((function(e){e&&t.push((0,o.default)(e))})),a+t.join(s)}}(e);if("object"===(0,i.default)(e))return function(e,t){var n,r=Object.getOwnPropertyNames(e),i=t&&t.excludes||[],u=[];if(i.push("stack"),r&&r.length>0){var c=!1;r.forEach((function(t){i&&(c=i.indexOf(t)>=0),!c&&e[t]&&u.push((0,o.default)(e[t]))}))}1===u.length?n=u.join():u.length>1&&(n=a+u.join(s));return n}(e,t);return e.toString()};var i=r(e("@babel/runtime/helpers/typeof")),o=r(e("safe-json-stringify")),a="- ",s="<br/>".concat(a)},{"@babel/runtime/helpers/interopRequireDefault":4,"@babel/runtime/helpers/typeof":10,"safe-json-stringify":99}],130:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.screen||(e.screen={});(0,i.default)("native"),t.mediaDevices&&t.mediaDevices.getUserMedia||(t.getUserMedia_=t.getUserMedia||t.webkitGetUserMedia||t.mozGetUserMedia||t.msGetUserMedia);!e.AudioContext&&e.webkitAudioContext&&(e.AudioContext=e.webkitAudioContext);e.URL||(e.URL=e.webkitURL||e.mozURL||e.msURL);t.connection||(t.connection=t.mozConnection||t.webkitConnection);var n,r=["debug","groupCollapsed","groupEnd","error","exception","info","log","trace","warn"],o={};e.console?o=e.console:e.console=function(){};var a=r.length;for(;a--;)o[n=r[a]]||(o[n]=function(){})},e("classlist.js");var i=r(e("request-frame"))},{"@babel/runtime/helpers/interopRequireDefault":4,"classlist.js":23,"request-frame":97}],131:[function(e,t,n){(function(t){(function(){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(e("@babel/runtime/helpers/typeof")),o=r(e("./../resource")),a=r(e("create-error")),s=r(e("safe-json-stringify")),u=r(e("./pretty")),c="Videomail Error",l=(0,a.default)(Error,c,{title:void 0,message:void 0,explanation:void 0,logLines:void 0,siteName:void 0,cookie:void 0,location:void 0,err:void 0,promise:void 0,cause:void 0,reason:void 0,browser:void 0,cpu:void 0,device:void 0,engine:void 0,os:void 0,screen:void 0,orientation:void 0}),f=function(e){return(0,u.default)(e,{excludes:["stack"]})};l.PERMISSION_DENIED="PERMISSION_DENIED",l.NOT_ALLOWED_ERROR="NotAllowedError",l.NOT_CONNECTED="Not connected",l.DOM_EXCEPTION="DOMException",l.STARTING_FAILED="Starting video failed",l.MEDIA_DEVICE_NOT_SUPPORTED="MediaDeviceNotSupported",l.BROWSER_PROBLEM="browser-problem",l.WEBCAM_PROBLEM="webcam-problem",l.IOS_PROBLEM="ios-problem",l.OVERCONSTRAINED="OverconstrainedError",l.NOT_FOUND_ERROR="NotFoundError",l.NOT_READABLE_ERROR="NotReadableError",l.SECURITY_ERROR="SecurityError",l.TRACK_START_ERROR="TrackStartError",l.INVALID_STATE_ERROR="InvalidStateError",l.create=function(n,r,a,u){var d;if(n&&n.name===c)return n;!a&&r&&(a=r,r=void 0),a||(a={}),u||(u={});var h,p,m=a&&a.isAudioEnabled&&a.isAudioEnabled(),y=u.classList||[],b=new(0,e("./browser").default)(a);switch("object"===(0,i.default)(n)?n.name===l.TRACK_START_ERROR?h=l.TRACK_START_ERROR:n.name===l.SECURITY_ERROR?h=l.SECURITY_ERROR:8===n.code&&n.name===l.NotFoundError?h=l.NotFoundError:35===n.code||n.name===l.NOT_ALLOWED_ERROR?h=l.NOT_ALLOWED_ERROR:1===n.code&&1===n.PERMISSION_DENIED?h=l.PERMISSION_DENIED:n.constructor&&n.constructor.name===l.DOM_EXCEPTION?h=n.name===l.NOT_READABLE_ERROR?l.NOT_READABLE_ERROR:l.DOM_EXCEPTION:n.constructor&&n.constructor.name===l.OVERCONSTRAINED?h=l.OVERCONSTRAINED:n.explanation===l.STARTING_FAILED?h=n.explanation:n.name?h=n.name:"error"===n.type&&0===n.target.bufferedAmount&&(h=l.NOT_CONNECTED):h=n===l.NOT_CONNECTED?l.NOT_CONNECTED:n,h){case l.SECURITY_ERROR:p="The operation was insecure",r="Probably you have disallowed Cookies for this page?",y.push(l.BROWSER_PROBLEM);break;case l.OVERCONSTRAINED:p="Invalid webcam constraints",r=n.constraint?"width"===n.constraint?"Your webcam does not meet the width requirement.":"Unmet constraint: ".concat(n.constraint):n.toString();break;case"MediaDeviceFailedDueToShutdown":p="Webcam is shutting down",r="This happens your webcam is already switching off and not giving you permission to use it.";break;case"SourceUnavailableError":p="Source of your webcam cannot be accessed",r="Probably it is locked from another process or has a hardware error.",n.explanation&&(n.explanation+=" Details: ".concat(n.explanation));break;case l.NOT_FOUND_ERROR:case"NO_DEVICES_FOUND":m?(p="No webcam nor microphone found",r="Your browser cannot find a webcam with microphone attached to your machine."):(p="No webcam found",r="Your browser cannot find a webcam attached to your machine."),y.push(l.WEBCAM_PROBLEM);break;case"PermissionDismissedError":p="Ooops, you didn't give me any permissions?",r="Looks like you skipped the webcam permission dialogue.<br/>Please grant access next time the dialogue appears.",y.push(l.WEBCAM_PROBLEM);break;case l.NOT_ALLOWED_ERROR:case l.PERMISSION_DENIED:case"PermissionDeniedError":p="Permission denied",r="Cannot access your webcam. This can have two reasons:<br/>a) you blocked access to webcam; or<br/>b) your webcam is already in use.",y.push(l.WEBCAM_PROBLEM);break;case"HARDWARE_UNAVAILABLE":p="Webcam is unavailable",r="Maybe it is already busy in another window?",(b.isChromeBased()||b.isFirefox())&&(r+=" Or you have to allow access above?"),y.push(l.WEBCAM_PROBLEM);break;case l.NOT_CONNECTED:p="Unable to connect",r="Either the videomail server or your connection is down. Trying to reconnect every few seconds …";break;case"NO_VIDEO_FEED":p="No video feed found!",r="Your webcam is already used in another browser.",y.push(l.WEBCAM_PROBLEM);break;case l.STARTING_FAILED:p="Starting video failed",r="Most likely this happens when the webcam is already active in another browser",y.push(l.WEBCAM_PROBLEM);break;case"DevicesNotFoundError":p="No available webcam could be found",r="Looks like you do not have any webcam attached to your machine; or the one you plugged in is already used.",y.push(l.WEBCAM_PROBLEM);break;case l.NOT_READABLE_ERROR:case l.TRACK_START_ERROR:p="No access to webcam",r="A hardware error occurred which prevented access to your webcam",y.push(l.WEBCAM_PROBLEM);break;case l.INVALID_STATE_ERROR:p="Invalid state",r="Video recording stream from your webcam already has finished",y.push(l.WEBCAM_PROBLEM);break;case l.DOM_EXCEPTION:switch(n.code){case 8:p="Requested webcam not found",r="A webcam is needed but could not be found",y.push(l.WEBCAM_PROBLEM);break;case 9:var g="https:".concat(window.location.href.substring(window.location.protocol.length));p="Security upgrade needed",r='Click <a href="'.concat(g,'">here</a> to switch to HTTPs which is more safe ')+" and enables encrypted videomail transfers.",y.push(l.BROWSER_PROBLEM);break;case 11:p="Invalid State",r="The object is in an invalid, unusable state",y.push(l.BROWSER_PROBLEM);break;default:p="DOM Exception",r=f(n),y.push(l.BROWSER_PROBLEM)}break;case l.MEDIA_DEVICE_NOT_SUPPORTED:p="Media device not supported",r=f(n);break;default:var v=r;if(r&&"object"===(0,i.default)(r)&&(r=f(r)),!r&&v&&(r=v.explanation?v.explanation:"Inspected: ".concat((0,s.default)(v))),n)if("string"==typeof n)p=n;else if(n.message&&(p=f(n.message)+" (pretty)"),n.explanation&&(r?r+=";<br/>".concat(f(n.explanation)):r=f(n.explanation)),n.details){var w=f(n.details);r?w&&(r+=";<br/>".concat(w)):r=w}p||(h&&(p=h+" (weird)"),!r&&n&&(r=f(n)),f(p)===r&&(r=void 0))}var E=null;a.logger&&a.logger.getLines&&(E=a.logger.getLines()),(a&&a.debug||console.log)("VideomailError: create()",p,r||"(no explanation set)");var _,R=b.getUsefulData(),S=t.document.cookie.split("; "),A={title:"videomail-client error",message:p,explanation:r,logLines:E,siteName:a.siteName,browser:R.browser,cpu:R.cpu,device:R.device,engine:R.engine,os:R.os,location:window.location.href,cookie:S.length>0?S.join(",\n"):void 0,screen:[screen.width,screen.height,screen.colorDepth].join("×"),orientation:"string"==typeof screen.orientation?screen.orientation:screen.orientation.type.toString(),errNo:null==n?void 0:n.errno,errCode:null==n?void 0:n.code,errName:null==n?void 0:n.name,errType:null==n?void 0:n.type,errConstraint:null==n?void 0:n.constraint,errConstructorName:null==n||null===(d=n.constructor)||void 0===d?void 0:d.name},O=new l(n instanceof Error?n:p,A),k=!1;function T(e){return y.indexOf(e)>=0}return a.reportErrors&&(k="function"==typeof a.reportErrors?a.reportErrors(O):a.reportErrors),k&&(_=new o.default(a)),_&&_.reportError(O,(function(e){e&&console.error("Unable to report error",e)})),O.getClassList=function(){return y},O.removeDimensions=function(){return T(l.IOS_PROBLEM)||b.isMobile()},O.hideButtons=function(){return T(l.BROWSER_PROBLEM)||u.browserProblem||T(l.IOS_PROBLEM)},O.hideForm=function(){return T(l.IOS_PROBLEM)},O};n.default=l}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./../resource":121,"./browser":124,"./pretty":129,"@babel/runtime/helpers/interopRequireDefault":4,"@babel/runtime/helpers/typeof":10,"create-error":27,"safe-json-stringify":99}],132:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(e("contains")),o=r(e("hidden")),a=r(e("hyperscript")),s=r(e("inherits")),u=r(e("../events")),c=r(e("../util/eventEmitter")),l=function(e,t){c.default.call(this,t,"Buttons");var n,r,s,l,f,d,h,p,m,y,b=this,g=t.debug;function v(e){e&&!Array.isArray(e)&&(e=[e]),e&&e.forEach((function(e){(0,o.default)(e,!0)}))}function w(e){e&&!Array.isArray(e)&&(e=[e]),e&&e.forEach((function(e){(0,o.default)(e,!1)}))}function E(e){var t=e&&!0;return e&&!Array.isArray(e)&&(e=[e]),e&&e.forEach((function(e){t&&(t=e&&!(0,o.default)(e))})),t}function _(e){e&&!Array.isArray(e)&&(e=[e]),e&&e.forEach((function(e){e&&("INPUT"===e.tagName||"BUTTON"===e.tagName?e.disabled=!0:e.classList.add("disabled"))}))}function R(e){e&&!Array.isArray(e)&&(e=[e]),e&&e.forEach((function(e){e&&("INPUT"===e.tagName||"BUTTON"===e.tagName?e.disabled=!1:e.classList.remove("disabled"))}))}function S(e,t,n,r){return r&&_(e),n?e.type=n:e.type||(e.type="button"),!t&&v(e),e}function A(e,t){e.onclick=function(e){e&&e.preventDefault();try{t({event:e})}catch(e){b.emit(u.default.ERROR,e)}}}function O(e){var t,r;return e.id&&(t=document.getElementById(e.id)),t||(t=(0,a.default)("input#".concat(e.id),{type:"radio",name:e.name,value:e.value,checked:e.checked}),r=(0,a.default)("span.radioGroup",t,(0,a.default)("label",{htmlFor:e.id},e.label)),h&&(0,i.default)(n,h)?n.insertBefore(r,h):n.appendChild(r)),e.changeHandler&&(t.onchange=e.changeHandler),_(t),t}function k(e,r,o,s,u,c,l){var f,d=!(arguments.length>7&&void 0!==arguments[7])||arguments[7];return(f=u?document.getElementById(u):l?document.querySelector(l):n.querySelector(".".concat(e)))?f=S(f,s,c,d):(t.selectors.buttonClass&&(e+=".".concat(t.selectors.buttonClass)),(f=S(f=(0,a.default)("button.".concat(e)),s,c,d)).innerHTML=r,h&&(0,i.default)(n,h)?n.insertBefore(f,h):n.appendChild(f)),o&&A(f,o),f}function T(e){E(d)||e.paused||w(r),e.paused||(_(f),v(f)),t.enableAutoValidation||R(h)}function x(){v(r),v(d),s&&(w(s),R(s)),R(f),w(f)}function j(){_(d),e.beginWaiting(),e.recordAgain()}function D(){e.submit()}function M(t){_(r),e.record(t)}function C(){g("Buttons: initEvents()"),b.on(u.default.USER_MEDIA_READY,(function(e){e.switchingFacingMode||function(e){T(e),E(r)&&!e.recordWhenReady&&R(r),t.enableAutoValidation&&_(h),e.recordWhenReady||(E(p)&&R(p),E(m)&&R(m))}(e)})).on(u.default.PREVIEW,(function(){v(r),v(f),_(p),_(m),w(d),R(d),t.enableAutoValidation||R(h)})).on(u.default.PAUSED,(function(){b.adjustButtonsForPause()})).on(u.default.RECORDING,(function(e){!function(e){e>1?x():(_(m),_(p),_(d),_(r))}(e)})).on(u.default.FIRST_FRAME_SENT,(function(){x()})).on(u.default.RESUMING,(function(){v(l),v(r),s&&(R(s),w(s))})).on(u.default.STOPPING,(function(){_(f),_(r),v(s),v(l)})).on(u.default.COUNTDOWN,(function(){_(r),_(m),_(p)})).on(u.default.SUBMITTING,(function(){g("Buttons: onSubmitting()"),_(h),_(d)})).on(u.default.RESETTING,(function(){_(h),b.reset()})).on(u.default.INVALID,(function(){t.enableAutoValidation&&_(h)})).on(u.default.VALID,(function(){t.enableAutoValidation&&R(h)})).on(u.default.SUBMITTED,(function(){_(f),_(d),_(r),_(h)})).on(u.default.HIDE,(function(){v(r),v(f),v(d),v(l),v(p),v(m)})).on(u.default.FORM_READY,(function(e){T(e)})).on(u.default.REPLAY_SHOWN,(function(){b.hide()})).on(u.default.GOING_BACK,(function(){v(d),w(r),w(h)})).on(u.default.ENABLING_AUDIO,(function(){g("Buttons: onEnablingAudio()"),_(r),_(p),_(m)})).on(u.default.DISABLING_AUDIO,(function(){g("Buttons: onDisablingAudio()"),_(r),_(p),_(m)})).on(u.default.STARTING_OVER,(function(){w(h)})).on(u.default.CONNECTED,(function(){t.loadUserMediaOnRecord&&E(r)&&R(r)})).on(u.default.DISCONNECTED,(function(){_(r),_(p),_(m)})).on(u.default.ERROR,(function(e){e.hideButtons&&e.hideButtons()&&t.adjustFormOnBrowserError&&b.hide()}))}this.enableSubmit=function(){R(h)},this.adjustButtonsForPause=function(){b.isCountingDown()||(s&&v(s),w(l),R(l),v(r),w(f),R(f))},this.reset=function(){t.debug("Buttons: reset()"),_(s),_(l),_(r),_(f),_(d),_(p),_(m)},this.isRecordAgainButtonEnabled=function(){return!d.disabled},this.isReady=function(){return!!r&&this.isRecordButtonEnabled()},this.isRecordButtonEnabled=function(){return!r.disabled},this.setSubmitButton=function(e){h=e},this.getSubmitButton=function(){return h},this.build=function(){(n=e.querySelector(".".concat(t.selectors.buttonsClass)))||(n=(0,a.default)("div.".concat(t.selectors.buttonsClass)),e.appendChild(n)),t.disableSubmit||(h?_(h):h=k(t.selectors.submitButtonClass,"Submit",null,!0,t.selectors.submitButtonId,"submit",t.selectors.submitButtonSelector,t.enableAutoValidation),!e.hasForm()&&h&&A(h,D)),r=k(t.selectors.recordButtonClass,t.text.buttons.record,M,!1),t.enablePause&&(s=k(t.selectors.pauseButtonClass,t.text.buttons.pause,e.pause,!1)),t.enablePause&&(l=k(t.selectors.resumeButtonClass,t.text.buttons.resume,e.resume,!1)),f=k(t.selectors.previewButtonClass,t.text.buttons.preview,e.stop,!1),d=k(t.selectors.recordAgainButtonClass,t.text.buttons.recordAgain,j,!1),t.audio&&t.audio.switch&&(m=O({id:"audioOffOption",name:"audio",value:"off",label:t.text.audioOff,checked:!t.isAudioEnabled(),changeHandler:function(){e.disableAudio()}}),p=O({id:"audioOnOption",name:"audio",value:"on",label:t.text.audioOn,checked:t.isAudioEnabled(),changeHandler:function(){e.enableAudio()}})),!y&&C(),y=!0},this.unload=function(){y&&(b.reset(),g("Buttons: unload()"),b.removeAllListeners(),y=!1)},this.hide=function(e){v(n),e&&e.deep&&(v(r),v(s),v(l),v(f),v(d),v(h),v(p),v(m))},this.show=function(){w(n)},this.isCountingDown=function(){return e.isCountingDown()}};(0,s.default)(l,c.default);n.default=l},{"../events":119,"../util/eventEmitter":126,"@babel/runtime/helpers/interopRequireDefault":4,contains:25,hidden:61,hyperscript:63,inherits:66}],133:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(e("@babel/runtime/helpers/defineProperty")),o=r(e("document-visibility")),a=r(e("hidden")),s=r(e("insert-css")),u=r(e("safe-json-stringify")),c=r(e("inherits")),l=r(e("../../styles/css/main.min.css.js")),f=r(e("../events")),d=r(e("../resource")),h=r(e("../util/eventEmitter")),p=r(e("../util/videomailError")),m=r(e("./buttons")),y=r(e("./dimension")),b=r(e("./form")),g=r(e("./optionsWrapper")),v=r(e("./visuals")),w=function(e){h.default.call(this,e,"Container");var t,n,r,c=this,w=(0,o.default)(),E=new v.default(this,e),_=new m.default(this,e),R=new d.default(e),S=document.querySelector("html"),A=e.debug,O=!1,k=!1,T=!1;function x(){return t&&"FORM"===t.tagName?t:e.selectors.formId?document.getElementById(e.selectors.formId):function(){if(t)return t.closest("form")}()}function j(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];A("Container: initEvents (playerOnly = ".concat(t,")")),e.enableAutoUnload&&window.addEventListener("beforeunload",(function(e){c.unload(e)}),{once:!0}),t||w.onChange((function(t){n&&(t?(e.isAutoPauseEnabled()&&c.isCountingDown()&&c.resume(),c.emit(f.default.VISIBLE)):(e.isAutoPauseEnabled()&&(c.isCountingDown()||c.isRecording())&&c.pause("document invisible"),c.emit(f.default.INVISIBLE)))})),e.enableSpace&&(t||window.addEventListener("keypress",(function(t){var n=t.target.tagName;t.target.isContentEditable||"true"===t.target.contentEditable||!0===t.target.contentEditable||"INPUT"===n||"TEXTAREA"===n||32===t.code&&(t.preventDefault(),e.enablePause?E.pauseOrResume():E.recordOrStop())}))),c.on(f.default.ERROR,(function(t){!function(t){O=!0,t.stack?e.logger.error(t.stack):e.logger.error(t),e.displayErrors?E.error(t):E.reset()}(t),C(t),t.removeDimensions&&t.removeDimensions()&&M()})),t||c.on(f.default.LOADED_META_DATA,(function(){D()}))}function D(){if(e.video.stretch)M();else if(t){var n=E.getRecorderWidth(!0);if(n<1)throw p.default.create("Recorder width cannot be less than 1!",e);t.style.width="".concat(n,"px")}}function M(){t&&(t.style.width="auto")}function C(e){E.unload(e),_.unload(),r&&(r.unload(),r=void 0),c.endWaiting()}function I(t,n,r,i){r&&""!==r||(r=e.baseUrl),n&&e.submitWithVideomail&&(t.videomail=n.videomail),R.form(t,r,i)}function N(e,t,n,r,i){c.endWaiting(),e?c.emit(f.default.ERROR,e):(k=!0,r&&i&&i.body&&Object.keys(i.body).forEach((function(e){r[e]=i.body[e]})),c.emit(f.default.SUBMITTED,n,r||i),i&&"text/html"===i.type&&i.text&&(document.body.innerHTML=i.text))}function L(e){return e&&"POST"===e.toUpperCase()}!function(){if(e.hasDefinedWidth()&&e.video.width%2!=0)throw p.default.create("Width must be divisible by two.",e);if(e.hasDefinedHeight()&&e.video.height%2!=0)throw p.default.create("Height must be divisible by two.",e)}(),this.buildForm=function(){if(!r){var t=x();if(t){var n=(r=new b.default(c,t,e)).findSubmitButton();n&&_.setSubmitButton(n),r.build()}}},this.addPlayerDimensions=function(e){try{if(!e)throw new Error("Videomail data is missing for attaching player dimensions");var t=c.getReplay().getParentElement();return e.playerHeight=c.calculateHeight({responsive:!0,videoWidth:e.width,ratio:e.height/e.width},t),e.playerWidth=c.calculateWidth({responsive:!0,videoHeight:e.playerHeight,ratio:e.height/e.width}),e}catch(e){c.emit(f.default.ERROR,e)}},this.limitWidth=function(n){return y.default.limitWidth(t,n,e)},this.limitHeight=function(t){return y.default.limitHeight(t,e)},this.calculateWidth=function(t){return y.default.calculateWidth(g.default.merge(e,t))},this.calculateHeight=function(n,r){return r||(r=t||document.body),y.default.calculateHeight(r,g.default.merge(e,n))},this.hasElement=function(){return Boolean(t)},this.build=function(){var r=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=arguments.length>1?arguments[1]:void 0;A("Container: build (playerOnly = ".concat(r).concat(i?', replayParentElement="'.concat(i,'"'):"",")"));try{var o;if(e.insertCss&&(0,s.default)(l.default,{prepend:!0}),!(t=document.getElementById(e.selectors.containerId))&&i)"string"==typeof i&&(i=document.getElementById(i)),null!==(o=i)&&void 0!==o&&o.classList.contains(e.selectors.containerClass)&&(t=i);!n&&j(r),D(),c.buildForm(),function(){var n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=arguments.length>1?arguments[1]:void 0;A("Container: buildChildren (playerOnly = ".concat(n).concat(r?', replayParentElement="'.concat(r,'"'):"",")")),t&&t.classList.add(e.selectors.containerClass),n||_.build(),E.build(n,r)}(r,t?void 0:i),O?A("Container: building failed due to an error."):(A("Container: built."),n=!0,c.emit(f.default.BUILT))}catch(e){c.emit(f.default.ERROR,e)}},this.getSubmitButton=function(){return _.getSubmitButton()},this.querySelector=function(e){if(t)return t.querySelector(e)},this.beginWaiting=function(){S.classList&&S.classList.add("wait")},this.endWaiting=function(){S.classList&&S.classList.remove("wait")},this.appendChild=function(e){t&&t.appendChild(e)},this.insertBefore=function(e,n){t&&t.insertBefore(e,n)},this.unload=function(e){try{if(!n)return;A("Container: unload(".concat(e?(0,u.default)(e):"",")")),c.emit(f.default.UNLOADING),C(e),c.removeAllListeners(),n=k=!1}catch(e){c.emit(f.default.ERROR,e)}},this.show=function(){if(t&&((0,a.default)(t,!1),E.show(),!O)){var e=c.isPaused();e&&_.adjustButtonsForPause(),_.show(),c.isReplayShown()?c.emit(f.default.PREVIEW):c.emit(f.default.FORM_READY,{paused:e})}},this.hide=function(){A("Container: hide()"),O=!1,c.isRecording()&&c.pause(),E.hide(),k&&(_.hide(),(0,a.default)(t,!0))},this.startOver=function(e){try{c.emit(f.default.STARTING_OVER),k=!1,r.show(),E.back(e,(function(){e&&e.keepHidden?c.enableForm():c.show(e)}))}catch(e){c.emit(f.default.ERROR,e)}},this.showReplayOnly=function(){O=!1,c.isRecording()&&c.pause(),E.showReplayOnly(),k&&_.hide()},this.isNotifying=function(){return E.isNotifying()},this.isPaused=function(){return E.isPaused()},this.pause=function(e){E.pause(e)},this.validate=function(t,n){var o=!0,a=!0;if(e.enableAutoValidation?n?o=n:c.isNotifying()?o=!1:E.isConnected()?o=E.isUserMediaLoaded()||E.isReplayShown():E.isConnecting()&&(o=!1):(o=!1,T=!0),o){var s,u=null==t||null===(s=t.target)||void 0===s?void 0:s.name;u?c.emit(f.default.VALIDATING,{targetName:u}):c.emit(f.default.VALIDATING,t);var l,d,h=E.validate()&&_.isRecordAgainButtonEnabled();if(r){var p=r.getInvalidElement();if(p?(a=!1,l='Input "'.concat(p.name,'" seems wrong 🤔'),d=(0,i.default)({},p.name,p.value)):E.isHidden()||h||(_.isReady()||c.isRecording()||c.isPaused()||c.isCountingDown())&&(a=!1,l="Don't forget to record a video 😉",d={key:void 0}),a){var m,y,b,g=r.getRecipients(),v="to"in g,w="cc"in g,R="bcc"in g,S=(null===(m=g.to)||void 0===m?void 0:m.length)>0,A=(null===(y=g.cc)||void 0===y?void 0:y.length)>0,O=(null===(b=g.bcc)||void 0===b?void 0:b.length)>0;v?S||(w&&R?A||O||(a=!1):w?A||(a=!1):R&&O||(a=!1)):w&&(A||R&&!O&&(a=!1)),a||(l="At least one recipient is required")}}else a=h;a?c.emit(f.default.VALID):d?c.emit(f.default.INVALID,l,d):c.emit(f.default.INVALID,l),T=a}return a},this.disableForm=function(e){r&&r.disable(e)},this.enableForm=function(e){r&&r.enable(e)},this.hasForm=function(){return Boolean(r)},this.submitAll=function(t,n,i){A("Container: submitAll(".concat(n,': "').concat(i,'")'));var o=L(n);function a(){c.beginWaiting(),c.disableForm(!0),c.emit(f.default.SUBMITTING)}Boolean(t[e.selectors.keyInputName])?(a(),function(e,t,n){var i=r.transformFormData(e);L(t)||!t?(i.recordingStats=E.getRecordingStats(),i.width=E.getRecorderWidth(!0),i.height=E.getRecorderHeight(!0),navigator.connection&&(i.connection={downlink:"".concat(navigator.connection.downlink," Mbit/s"),effectiveType:navigator.connection.effectiveType,rtt:navigator.connection.rtt,type:navigator.connection.type}),R.post(i,n)):function(e){return e&&"PUT"===e.toUpperCase()}(t)&&R.put(i,n)}(t,n,(function(e,n,r){e?N(e,0,n,r):o?I(t,r,i,(function(e,t){N(e,0,n,r,t)})):N(null,0,n,r)}))):e.enableAutoSubmission&&(a(),I(t,null,i,(function(e,t){N(e,0,null,null,t)})))},this.isBuilt=function(){return n},this.isReplayShown=function(){return E.isReplayShown()},this.isDirty=function(){var e=!1;return r&&(E.isRecorderUnloaded()||k?e=!1:(c.isReplayShown()||c.isPaused())&&(e=!0)),e},this.getReplay=function(){return E.getReplay()},this.isOutsideElementOf=function(e){return e.parentNode!==t&&e!==t},this.hideForm=function(e){r&&r.hide(),_&&_.hide(e)},this.loadForm=function(e){r&&(r.loadVideomail(e),c.validate())},this.enableAudio=function(){e.setAudioEnabled(!0),c.emit(f.default.ENABLING_AUDIO)},this.disableAudio=function(){e.setAudioEnabled(!1),c.emit(f.default.DISABLING_AUDIO)},this.submit=function(){A("Container: submit()"),T&&r&&r.doTheSubmit()},this.isCountingDown=E.isCountingDown.bind(E),this.isRecording=E.isRecording.bind(E),this.record=E.record.bind(E),this.resume=E.resume.bind(E),this.stop=E.stop.bind(E),this.recordAgain=E.recordAgain.bind(E)};(0,c.default)(w,h.default);n.default=w},{"../../styles/css/main.min.css.js":148,"../events":119,"../resource":121,"../util/eventEmitter":126,"../util/videomailError":131,"./buttons":132,"./dimension":134,"./form":135,"./optionsWrapper":136,"./visuals":137,"@babel/runtime/helpers/defineProperty":3,"@babel/runtime/helpers/interopRequireDefault":4,"document-visibility":32,hidden:61,inherits:66,"insert-css":67,"safe-json-stringify":99}],134:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(e("number-is-integer")),o=r(e("./../util/videomailError"));function a(e,t){if(t.hasDefinedHeight()&&(e=e?Math.min(t.video.height,e):t.video.height),(0,i.default)(e)&&e<1)throw o.default.create("Got a video height less than 1 (".concat(e,") while figuring out the minimum!"),t);return e}n.default={limitWidth:function(e,t,n){if(!e)return t;var r,a=function(e){var t=0,n=e.getBoundingClientRect();return n&&(t=n.right-n.left),t<1&&(t=(n=document.body.getBoundingClientRect()).right-n.left),t}(e);if(r=t?a>0&&a<t?a:t:a,(0,i.default)(r)&&r<1)throw o.default.create("Limited width cannot be less than 1!",n);return r},limitHeight:function(e,t){if((0,i.default)(e)&&e<1)throw o.default.create("Passed limit-height argument cannot be less than 1!",t);var n=Math.min(e,document.documentElement.clientHeight);if(n<1)throw o.default.create("Limited height cannot be less than 1!",t);return n},calculateWidth:function(e){var t=e.videoHeight||null,n=e.ratio||e.getRatio();if(t=a(t,e),e.responsive&&(t=this.limitHeight(t,e)),(0,i.default)(t)&&t<1)throw o.default.create("Height cannot be smaller than 1 when calculating width.",e);var r=parseInt(t/n);if(r<1)throw o.default.create("Calculated width cannot be smaller than 1!",e);return r},calculateHeight:function(e,t){var n,r=t.videoWidth||null,s=t.ratio||t.getRatio();if(t.hasDefinedWidth()&&(r=t.video.width),(0,i.default)(r)&&r<1)throw o.default.create("Unable to calculate height when width is less than 1.",t);if(t.responsive&&(r=this.limitWidth(e,r,t)),r&&(n=parseInt(r*s)),(0,i.default)(n)&&n<1)throw o.default.create("Just calculated a height less than 1 which is wrong.",t);return a(n,t)}}},{"./../util/videomailError":131,"@babel/runtime/helpers/interopRequireDefault":4,"number-is-integer":74}],135:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(e("get-form-data")),o=r(e("hidden")),a=r(e("hyperscript")),s=r(e("inherits")),u=r(e("safe-json-stringify")),c=r(e("../events")),l=r(e("../util/eventEmitter")),f=r(e("../util/videomailError"));function d(e){return e.replace(/(^[,\s]+)|([,\s]+$)/g,"")}var h=function(e,t,n){l.default.call(this,n,"Form");var r,s=n.debug,h=this,p={subject:n.selectors.subjectInputName,from:n.selectors.fromInputName,to:n.selectors.toInputName,cc:n.selectors.ccInputName,bcc:n.selectors.bccInputName,body:n.selectors.bodyInputName,key:n.selectors.keyInputName,parentKey:n.selectors.parentKeyInputName,sendCopy:n.selectors.sendCopyInputName};function m(){return(0,i.default)(t,{includeDisabled:!0})}function y(e,n){for(var r,i=t.elements.length,o=0;o<i;o++)(n||!n&&("BUTTON"!==(r=t.elements[o]).tagName&&"submit"!==r.type))&&(t.elements[o].disabled=e)}function b(e){var t=e.name;return Object.values(p).includes(t)}function g(){for(var e=t.querySelectorAll("input, textarea, select"),n=[],r=0;r<e.length;r++){var i=e[r];b(i)&&n.push(i)}return n}this.transformFormData=function(e){var t={};return Object.keys(p).forEach((function(n){var r=p[n];if(r in e){var i=e[r];void 0===i||(t[n]=i)}})),t.from&&(t.from=d(t.from)),t.to&&(t.to=d(t.to)),t.cc&&(t.cc=d(t.cc)),t.bcc&&(t.bcc=d(t.bcc)),t},this.getRecipients=function(){var e=this.transformFormData(m()),t={};return"to"in e&&(t.to=e.to),"cc"in e&&(t.cc=e.cc),"bcc"in e&&(t.bcc=e.bcc),t},this.loadVideomail=function(e){s("Form: loadVideomail()");for(var r,i,o=t.elements.length,a=0;a<o;a++)e[i=(r=t.elements[a]).name]&&(r.value=e[i]),i!==n.selectors.subjectInputName&&i!==n.selectors.bodyInputName||(r.disabled=!0);t.setAttribute("method","put")},this.disable=function(e){y(!0,e)},this.enable=function(e){y(!1,e)},this.build=function(){if(s("Form: build()"),(r=t.querySelector('input[name="'.concat(n.selectors.keyInputName,'"]')))||(r=(0,a.default)("input",{name:n.selectors.keyInputName,type:"hidden"}),t.appendChild(r)),n.enableAutoValidation)for(var i=g(),u=0,l=i.length;u<l;u++){var d=i[u],p=d.type;"radio"===p||"select"===p?d.addEventListener("change",e.validate):d.addEventListener("input",e.validate)}this.on(c.default.PREVIEW,(function(e){e||r.value?e&&(r.value=e,r.dispatchEvent(new Event("input",{bubbles:!0}))):h.emit(c.default.ERROR,f.default.create("Videomail key for preview is missing!",n))})),this.on(c.default.GOING_BACK,(function(){r.value=null,r.dispatchEvent(new Event("input",{bubbles:!0}))})),this.on(c.default.INVALID,(function(){t.classList.add("invalid")})),this.on(c.default.VALID,(function(){t.classList.remove("invalid")})),this.on(c.default.ERROR,(function(e){var r;e.hideForm&&e.hideForm()&&n.adjustFormOnBrowserError?function(){for(var e=t.elements.length,n=0;n<e;n++)(0,o.default)(t.elements[n],!0);(0,o.default)(t,!0)}():e.hideButtons&&e.hideButtons()&&n.adjustFormOnBrowserError&&(r=h.findSubmitButton(),(0,o.default)(r,!0))})),this.on(c.default.BUILT,(function(){e.getSubmitButton().onclick=h.doTheSubmit.bind(h)}))},this.unload=function(){s("Form: unload()"),function(){for(var t=g(),n=0,r=t.length;n<r;n++){var i=t[n],o=i.type;"radio"===o||"select"===o?i.removeEventListener("change",e.validate):i.removeEventListener("input",e.validate)}}(),this.removeAllListeners(),e.getSubmitButton().onclick=null},this.doTheSubmit=function(n){return n?(s("Form: doTheSubmit(".concat((0,u.default)(n),")")),n.preventDefault()):s("Form: doTheSubmit()"),e.hasElement()&&e.submitAll(m(),t.getAttribute("method"),t.getAttribute("action")),!1},this.getInvalidElement=function(){for(var e=g(),t=0,n=e.length;t<n;t++)if(!e[t].validity.valid)return e[t];return null},this.findSubmitButton=function(){return t.querySelector("[type='submit']")},this.hide=function(){t&&(0,o.default)(t,!0)},this.show=function(){t&&(0,o.default)(t,!1)}};(0,s.default)(h,l.default);n.default=h},{"../events":119,"../util/eventEmitter":126,"../util/videomailError":131,"@babel/runtime/helpers/interopRequireDefault":4,"get-form-data":50,hidden:61,hyperscript:63,inherits:66,"safe-json-stringify":99}],136:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(e("deepmerge"));n.default={merge:function(e,t){return(0,i.default)(e,t,{arrayMerge:function(e,t){return t}})}}},{"@babel/runtime/helpers/interopRequireDefault":4,deepmerge:28}],137:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(e("hidden")),o=r(e("hyperscript")),a=r(e("inherits")),s=r(e("safe-json-stringify")),u=r(e("../events")),c=r(e("../util/eventEmitter")),l=r(e("./visuals/inside/recorderInsides")),f=r(e("./visuals/notifier")),d=r(e("./visuals/recorder")),h=r(e("./visuals/replay")),p=function(e,t){c.default.call(this,t,"Visuals");var n,r,a=this,p=new h.default(this,t),m=new d.default(this,p,t),y=new l.default(this,t),b=new f.default(this,t),g=t.debug;function v(){var t,r=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=arguments.length>1?arguments[1]:void 0;g("Visuals: buildChildren (playerOnly = ".concat(r).concat(i?', replayParentElement="'.concat(i,'"'):"",")")),(t=e.querySelector("noscript"))&&((t=(0,o.default)("noscript")).innerHTML="Please enable Javascript",n.appendChild(t)),r||(b.build(),y.build()),p.build(i)}function w(){t.video.stretch?E():n&&m&&(n.style.width="".concat(a.getRecorderWidth(!0),"px"),n.style.height="".concat(a.getRecorderHeight(!0),"px"))}function E(){n&&(n.style.width="auto",n.style.height="auto")}function _(){return!a.isNotifying()&&!p.isShown()&&!a.isCountingDown()}this.getRatio=function(){return n.clientWidth?n.clientHeight/n.clientWidth:0},this.isCountingDown=function(){return y.isCountingDown()},this.build=function(){var i=arguments.length>0&&void 0!==arguments[0]&&arguments[0],s=arguments.length>1?arguments[1]:void 0;if(e){if(!(n=e.querySelector(".".concat(t.selectors.visualsClass)))){n=(0,o.default)("div.".concat(t.selectors.visualsClass));var c=e.querySelector(".".concat(t.selectors.buttonsClass));c&&!e.isOutsideElementOf(c)?e.insertBefore(n,c):e.appendChild(n)}n.classList.add("visuals")}w(),!r&&function(){var n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];n||(g("Visuals: initEvents (playerOnly = ".concat(n,")")),a.on(u.default.USER_MEDIA_READY,(function(){r=!0,a.endWaiting(),e.enableForm(!1)})).on(u.default.PREVIEW,(function(){a.endWaiting()})).on(u.default.BLOCKING,(function(n){(n.hideForm||t.adjustFormOnBrowserError)&&e.disableForm(!0)})).on(u.default.PREVIEW_SHOWN,(function(){e.validate(void 0,!0)})).on(u.default.LOADED_META_DATA,(function(){w()})).on(u.default.ERROR,(function(e){e.removeDimensions&&e.removeDimensions()&&E()})))}(i),v(i,s),r=!0},this.querySelector=function(e){return n&&n.querySelector(e)},this.appendChild=function(e){n&&n.appendChild(e)},this.removeChild=function(e){n.removeChild(e)},this.reset=function(){this.endWaiting(),m.reset()},this.beginWaiting=function(){e.beginWaiting()},this.endWaiting=function(){e.endWaiting()},this.stop=function(e){m.stop(e),y.hidePause()},this.back=function(e,t){!t&&e&&(t=e,e={}),p.hide(),b.hide(),e&&e.keepHidden?(m.hide(),t&&t()):m.back(t)},this.recordAgain=function(){this.back((function(){t.loadUserMediaOnRecord?a.once(u.default.SERVER_READY,(function(){a.record()})):a.once(u.default.USER_MEDIA_READY,(function(){a.record()}))}))},this.unload=function(e){try{if(!r)return;g("Visuals: unload(".concat(e?(0,s.default)(e):"",")")),a.removeAllListeners(),m.unload(e),y.unload(e),p.unload(),r=!1}catch(e){this.emit(u.default.ERROR,e)}},this.isNotifying=function(){return b.isVisible()},this.isReplayShown=function(){return p.isShown()},this.pause=function(e){m.pause(e),y.showPause()},this.resume=function(){y.isCountingDown()?y.resumeCountdown():m.resume(),y.hidePause()},this.pauseOrResume=function(){_.call(this)&&(this.isRecording()?this.pause():m.isPaused()?this.resume():m.isReady()&&this.record())},this.recordOrStop=function(){_()&&(this.isRecording()?this.stop():m.isReady()&&this.record())},this.record=function(){t.video.countdown?(this.emit(u.default.COUNTDOWN),y.startCountdown(m.record.bind(m))):m.record()},this.getRecorder=function(){return m},this.getReplay=function(){return p},this.validate=function(){return m.validate()&&this.isReplayShown()},this.getRecordingStats=function(){return m.getRecordingStats()},this.getAudioSampleRate=function(){return m.getAudioSampleRate()},this.isPaused=function(){return m.isPaused()},this.error=function(e){b.error(e)},this.hide=function(){n&&((0,i.default)(n,!0),this.emit(u.default.HIDE))},this.isHidden=function(){return!r||(n?(0,i.default)(n):void 0)},this.showVisuals=function(){n&&(0,i.default)(n,!1)},this.show=function(){!this.isReplayShown()&&n&&m.build(),this.showVisuals()},this.showReplayOnly=function(){p.show(),this.show(),m.hide(),b.hide()},this.isRecorderUnloaded=function(){return m.isUnloaded()},this.isConnecting=function(){return m.isConnecting()},this.getRecorderWidth=function(e){return m.getRecorderWidth(e)},this.getRecorderHeight=function(e,t){return m.getRecorderHeight(e,t)},this.limitWidth=function(n){return e.limitWidth(n,t)},this.limitHeight=function(t){return e.limitHeight(t)},this.calculateWidth=function(t){return e.calculateWidth(t)},this.calculateHeight=function(t){return e.calculateHeight(t)},this.getReplay=function(){return p},this.getBoundingClientRect=function(){return n&&n.getBoundingClientRect()},this.checkTimer=function(e){y.checkTimer(e)},this.isNotifierBuilt=function(){return b&&b.isBuilt()},this.isReplayShown=p.isShown.bind(p),this.hideReplay=p.hide.bind(p),this.hideRecorder=m.hide.bind(m),this.isRecording=m.isRecording.bind(m),this.isUserMediaLoaded=m.isUserMediaLoaded.bind(m),this.isConnected=m.isConnected.bind(m)};(0,a.default)(p,c.default);n.default=p},{"../events":119,"../util/eventEmitter":126,"./visuals/inside/recorderInsides":143,"./visuals/notifier":144,"./visuals/recorder":145,"./visuals/replay":146,"@babel/runtime/helpers/interopRequireDefault":4,hidden:61,hyperscript:63,inherits:66,"safe-json-stringify":99}],138:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,t){var n,r,a,s,u=this;function c(e){s||(t.debug("Countdown",a),--a<1?function(e){u.unload(),u.hide(),setTimeout((function(){e()}),0)}(e):n.innerHTML=a)}this.start=function(e){n.innerHTML=a=t.video.countdown,this.show(),r=setInterval(c.bind(this,e),950)},this.pause=function(){s=!0},this.resume=function(){s=!1},this.build=function(){(n=e.querySelector(".countdown"))?this.hide():(n=(0,o.default)("p.countdown"),this.hide(),e.appendChild(n))},this.show=function(){(0,i.default)(n,!1)},this.isCountingDown=function(){return Boolean(r)},this.unload=function(){clearInterval(r),s=!1,r=null},this.hide=function(){(0,i.default)(n,!0),this.unload()}};var i=r(e("hidden")),o=r(e("hyperscript"))},{"@babel/runtime/helpers/interopRequireDefault":4,hidden:61,hyperscript:63}],139:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,t){s.default.call(this,t,"Facing Mode");var n,r=this;this.build=function(){(n=e.querySelector(".facingMode"))?this.hide():((n=(0,o.default)("button.facingMode")).innerHTML="⤾",n.onclick=function(e){e&&e.preventDefault();try{r.emit(a.default.SWITCH_FACING_MODE)}catch(e){r.emit(a.default.ERROR,e)}},this.hide(),e.appendChild(n)),r.on(a.default.ERROR,(function(){r.hide()}))},this.hide=function(){(0,i.default)(n,!0)},this.show=function(){(0,i.default)(n,!1)}};var i=r(e("hidden")),o=r(e("hyperscript")),a=r(e("./../../../../events")),s=r(e("./../../../../util/eventEmitter"))},{"./../../../../events":119,"./../../../../util/eventEmitter":126,"@babel/runtime/helpers/interopRequireDefault":4,hidden:61,hyperscript:63}],140:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,t){if(!t.text.pausedHeader)throw a.default.create("Paused header cannot be empty",t);var n,r,s;function u(){return t.text.pausedHint}this.build=function(){n=e.querySelector(".paused"),(r=e.querySelector(".pausedHeader"))?(this.hide(),r.innerHTML=t.text.pausedHeader,u()&&(s.innerHTML=t.text.pausedHint)):(n=(0,o.default)("div.paused"),r=(0,o.default)("p.pausedHeader"),this.hide(),r.innerHTML=t.text.pausedHeader,n.appendChild(r),u()&&(s=e.querySelector(".pausedHint"),(s=(0,o.default)("p.pausedHint")).innerHTML=t.text.pausedHint,n.appendChild(s)),e.appendChild(n))},this.hide=function(){(0,i.default)(n,!0)},this.show=function(){(0,i.default)(n,!1)}};var i=r(e("hidden")),o=r(e("hyperscript")),a=r(e("./../../../../util/videomailError"))},{"./../../../../util/videomailError":131,"@babel/runtime/helpers/interopRequireDefault":4,hidden:61,hyperscript:63}],141:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var t;this.build=function(){(t=e.querySelector(".recordNote"))?this.hide():(t=(0,o.default)("p.recordNote"),this.hide(),e.appendChild(t))},this.stop=function(){this.hide(),t.classList.remove("near"),t.classList.remove("nigh")},this.setNear=function(){t.classList.add("near")},this.setNigh=function(){t.classList.add("nigh")},this.hide=function(){(0,i.default)(t,!0)},this.show=function(){(0,i.default)(t,!1)}};var i=r(e("hidden")),o=r(e("hyperscript"))},{"@babel/runtime/helpers/interopRequireDefault":4,hidden:61,hyperscript:63}],142:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,t,n){var r,a,s,u=!1,c=!1;function l(e,t){return e>=n.video.limitSeconds*t}function f(){var e,i=parseInt(s/60,10),o=s-60*i;if(!u||!c){var a=n.video.limitSeconds-s;!function(e){return!(u||!l(e,.6)||(u=!0,0))}(a)?function(e){return!(c||!l(e,.8)||(c=!0,0))}(a)&&(t.setNigh(),r.classList.add("nigh"),n.debug("End is nigh, ".concat(s," seconds to go"))):(t.setNear(),r.classList.add("near"),n.debug("End is near, ".concat(s," seconds to go")))}r.innerHTML="".concat(i,":").concat((e=o)<10?"0".concat(e):e)}function d(){(0,i.default)(r,!0)}function h(){return n.video.limitSeconds}this.check=function(t){var n=h()-Math.floor(t.intervalSum/1e3);n!==s&&(s=n,f(),s<1&&e.stop(!0))},this.start=function(){s=h(),u=c=!1,a=!0,f(),r.classList.remove("near"),r.classList.remove("nigh"),(0,i.default)(r,!1)},this.pause=function(){t.hide()},this.resume=function(){t.show()},this.stop=function(){null!==s&&a&&(n.debug("Stopping record timer. Was recording for about ~".concat(h()-s," seconds.")),d(),t.stop(),s=null,a=!1)},this.build=function(){(r=e.querySelector(".recordTimer"))?d():(r=(0,o.default)("p.recordTimer"),d(),e.appendChild(r))}};var i=r(e("hidden")),o=r(e("hyperscript"))},{"@babel/runtime/helpers/interopRequireDefault":4,hidden:61,hyperscript:63}],143:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(e("inherits")),o=r(e("./../../../events")),a=r(e("./../../../util/browser")),s=r(e("./../../../util/eventEmitter")),u=r(e("./recorder/countdown")),c=r(e("./recorder/facingMode")),l=r(e("./recorder/pausedNote")),f=r(e("./recorder/recordNote")),d=r(e("./recorder/recordTimer")),h=function(e,t){s.default.call(this,t,"RecorderInsides");var n,r,i,h,p=this,m=t.debug,y=new f.default(e),b=new d.default(e,y,t),g=new a.default(t);function v(){p.hidePause(),p.hideCountdown(),b.stop(),h&&h.hide()}function w(){m("RecorderInsides: initEvents()"),p.on(o.default.USER_MEDIA_READY,(function(){h&&h.show()})).on(o.default.RECORDING,(function(){b.start()})).on(o.default.RESUMING,(function(){b.resume()})).on(o.default.STOPPING,(function(){b.stop()})).on(o.default.PAUSED,(function(){p.isCountingDown()?n.pause():b.pause()})).on(o.default.ERROR,v).on(o.default.RESETTING,v).on(o.default.HIDE,(function(){p.hideCountdown()}))}t.video.countdown&&(n=new u.default(e,t)),t.video.facingModeButton&&g.isMobile()&&(h=new c.default(e,t)),t.enablePause&&(r=new l.default(e,t)),this.build=function(){m("RecorderInsides: build()"),n&&n.build(),r&&r.build(),h&&h.build(),y.build(),b.build(),!i&&w(),i=!0},this.unload=function(){n&&n.unload(),i=!1},this.showPause=function(){r&&r.show()},this.hidePause=function(){r&&r.hide()},this.hideCountdown=function(){n&&n.hide()},this.startCountdown=function(e){n&&n.start(e)},this.resumeCountdown=function(){n&&n.resume()},this.isCountingDown=function(){return n&&n.isCountingDown()},this.checkTimer=function(e){b.check(e)}};(0,i.default)(h,s.default);n.default=h},{"./../../../events":119,"./../../../util/browser":124,"./../../../util/eventEmitter":126,"./recorder/countdown":138,"./recorder/facingMode":139,"./recorder/pausedNote":140,"./recorder/recordNote":141,"./recorder/recordTimer":142,"@babel/runtime/helpers/interopRequireDefault":4,inherits:66}],144:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(e("hidden")),o=r(e("hyperscript")),a=r(e("inherits")),s=r(e("../../events")),u=r(e("../../util/eventEmitter")),c="notifierMessage",l=function(e,t){u.default.call(this,t,"Notifier");var n,r,a,l,f,d=this,h=t&&t.debug;function p(){h("Notifier: initEvents()"),d.on(s.default.CONNECTING,(function(){d.notify("Connecting …")})).on(s.default.LOADING_USER_MEDIA,(function(){d.notify("Loading webcam …")})).on(s.default.USER_MEDIA_READY,(function(){t.video.stretch?(n.style.width="auto",n.style.height="".concat(e.getRecorderHeight(!0,!0),"px")):(n.style.width="".concat(e.getRecorderWidth(!0),"px"),n.style.height="".concat(e.getRecorderHeight(!0),"px")),d.hide()})).on(s.default.LOADED_META_DATA,(function(){})).on(s.default.PREVIEW,(function(){d.hide()})).on(s.default.STOPPING,(function(n){!function(n){var r="";e.beginWaiting(),n&&(h("Limit reached"),r+="".concat(t.text.limitReached,".<br/>")),r+="".concat(t.text.sending," …"),d.notify(r,null,{stillWait:!0,entertain:t.notifier.entertain})}(n)})).on(s.default.PROGRESS,(function(e,n){!function(e,n){var r;t.isAudioEnabled()?(r="Video: ".concat(e),n&&(r+=", Audio: ".concat(n))):r=e,d.setExplanation(r)}(e,n)})).on(s.default.BEGIN_VIDEO_ENCODING,(function(){!function(){e.beginWaiting();var n="".concat(t.text.encoding," …");d.notify(n,null,{stillWait:!0,entertain:t.notifier.entertain}),b()}()})).on(s.default.UNLOADING,(function(){d.notify("Unloading …")})).on(s.default.DISCONNECTED,(function(){d.notify("Disconnected")})).on(s.default.CONNECTED,(function(){d.notify("Connected"),t.loadUserMediaOnRecord&&d.hide()}))}function m(){if(t.notifier.entertain){if(!l){var e=Math.floor(Math.random()*t.notifier.entertainLimit+1);n.className="notifier entertain ".concat(t.notifier.entertainClass).concat(e),a=setTimeout(m,t.notifier.entertainInterval),l=!0}}else y()}function y(){n&&n.classList.remove("entertain"),clearTimeout(a),a=null,l=!1}function b(){r&&(0,i.default)(r,!0)}function g(){return document.getElementById(c)}this.error=function(e){var n=e.message?e.message.toString():e.toString(),r=e.explanation?e.explanation.toString():null;n||t.debug("Weird empty error message generated for error",e),d.notify(n,r,{blocking:!0,problem:!0,hideForm:e.hideForm&&e.hideForm(),classList:e.getClassList&&e.getClassList(),removeDimensions:e.removeDimensions&&e.removeDimensions()})},this.setExplanation=function(e){r||(r=(0,o.default)("p",{className:"explanation"}),n?n.appendChild(r):t.logger.warn("Unable to show explanation because notifyElement is empty:",e)),r.innerHTML=e,(0,i.default)(r,!1)},this.build=function(){t.debug("Notifier: build()"),(n=e.querySelector(".notifier"))?this.hide():(n=(0,o.default)(".notifier"),this.hide(),e.appendChild(n)),!f&&p(),f=!0},this.hide=function(){var e;y(),n&&((0,i.default)(n,!0),n.classList.remove("blocking")),(e=g())&&(0,i.default)(e,!0),b()},this.isVisible=function(){return!!f&&(n&&!(0,i.default)(n))},this.isBuilt=function(){return f},this.notify=function(a,u){var l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},f=[a,u].filter(Boolean);t.debug("Notifier: notify(".concat(f.join(", "),")"));var d=!!l.stillWait&&l.stillWait,h=!!l.entertain&&l.entertain,p=!!l.blocking&&l.blocking,b=!!l.hideForm&&l.hideForm,v=!!l.classList&&l.classList,w=!!l.removeDimensions&&l.removeDimensions,E=g();if(!E&&n){var _=(0,o.default)("h2",{id:c});n.appendChild(_)}E=g(),n&&E&&r&&n.insertBefore(E,r),n&&(h||(n.className="notifier"),v&&v.forEach((function(e){n.classList.add(e)})),w&&(n.style.width="auto",n.style.height="auto")),p?(n&&n.classList.add("blocking"),this.emit(s.default.BLOCKING,{hideForm:b})):this.emit(s.default.NOTIFYING),e.hideReplay(),e.hideRecorder(),function(e,n){var r=g();if(r){if(t.debug("Notifier: setMessage(".concat(e,")")),e.length>0){var o=!!n.problem&&n.problem;r.innerHTML=(o?"&#x2639; ":"")+e}else t.logger.warn("Not going to update notifierMessage element because message is empty",e);(0,i.default)(r,!1)}}(a,l),u&&u.length>0&&this.setExplanation(u),h?m():y(),e.showVisuals(),n&&(0,i.default)(n,!1),!d&&e.endWaiting()}};(0,a.default)(l,u.default);n.default=l},{"../../events":119,"../../util/eventEmitter":126,"@babel/runtime/helpers/interopRequireDefault":4,hidden:61,hyperscript:63,inherits:66}],145:[function(e,t,n){(function(t){(function(){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(e("animitter")),o=r(e("canvas-to-buffer")),a=r(e("deepmerge")),s=r(e("hidden")),u=r(e("hyperscript")),c=r(e("inherits")),l=r(e("safe-json-stringify")),f=r(e("websocket-stream")),d=r(e("../../constants")),h=r(e("../../events")),p=r(e("../../util/browser")),m=r(e("../../util/eventEmitter")),y=r(e("../../util/humanize")),b=r(e("../../util/pretty")),g=r(e("../../util/videomailError")),v=r(e("./userMedia")),w="°º¤ø,¸¸,ø¤º°`°º¤ø,¸,ø¤°º¤ø,¸¸,ø¤º°`°º¤ø,¸ ",E=function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};m.default.call(this,r,"Recorder");var c=new p.default(r),E=(0,a.default)(r,{image:{quality:c.isMobile()?r.image.quality-.05:r.image.quality}});if(!E.video||!E.video.fps)throw g.default.create("FPS must be defined",E);var _,R,S,A,O,k,T,x,j,D,M,C,I,N,L,P,B,U,F,q,W,H,V,z,G,$,Y=this,K=E.debug,J=null,X=0,Q=0,Z=E.video.facingMode,ee={},te=0,ne=0;function re(e,t){if(P)if(P.destroyed)ie(),Y.emit(h.default.ERROR,g.default.create("Already disconnected","Sorry, connection to the server has been destroyed. Please reload.",E));else{var n=t&&t.onFlushedCallback;try{P.write(e,(function(){if(n)try{n(t)}catch(e){Y.emit(h.default.ERROR,g.default.create("Failed to write stream buffer","stream.write() failed because of ".concat((0,b.default)(e)),E))}}))}catch(e){Y.emit(h.default.ERROR,g.default.create("Failed writing to server","stream.write() failed because of ".concat((0,b.default)(e)),E))}}}function ie(){clearInterval(V)}function oe(e){X++,re(e.toBuffer())}function ae(){R&&(0,s.default)(R,!1)}function se(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};try{K("Recorder: onUserMediaReady()",(0,l.default)(t));var n=t.switchingFacingMode;C=F=N=I=!1,M=!0,n||(e=(0,i.default)({fps:E.video.fps},Ae),_=e.getRequestAnimationFrameObject(),J=e),ae(),t.recordWhenReady&&Y.record(),Y.emit(h.default.USER_MEDIA_READY,{switchingFacingMode:t.switchingFacingMode,paused:Y.isPaused(),recordWhenReady:t.recordWhenReady})}catch(e){Y.emit(h.default.ERROR,e)}}function ue(){return"".concat((te/(Q||1)*100).toFixed(2),"%")}function ce(){return"".concat((ne/(X||1)*100).toFixed(2),"%")}function le(){T||(T=ue()),x||(x=ce()),Y.emit(h.default.PROGRESS,T,x)}function fe(e){if(!U){B=!0,K("Recorder: initializing web socket to %s",E.socketUrl),Y.emit(h.default.CONNECTING);var t="".concat(E.socketUrl,"?").concat(encodeURIComponent(d.default.SITE_NAME_LABEL),"=").concat(encodeURIComponent(E.siteName));try{P=(0,f.default)(t,{perMessageDeflate:!1,objectMode:!0})}catch(e){var n;B=U=!1,n=void 0===f.default?g.default.create("There is no websocket","Cause: ".concat((0,b.default)(e)),E):g.default.create("Failed to connect to server","Please upgrade your browser. Your current version does not seem to support websockets.",E,{browserProblem:!0}),Y.emit(h.default.ERROR,n)}P&&(P.on("close",(function(e){K("".concat(w,"Stream has closed")),B=U=!1,e?Y.emit(h.default.ERROR,e||"Unhandled websocket error"):fe()})),P.on("connect",(function(){K("".concat(w,"Stream *connect* event emitted"));var t=this.socket.readyState===WebSocket.CLOSING;U||t||N||(U=!0,B=N=!1,Y.emit(h.default.CONNECTED),e&&e())})),P.on("data",(function(e){var t;K("".concat(w,"Stream *data* event emitted"));try{t=JSON.parse(e.toString())}catch(t){K("Failed to parse command:",t),Y.emit(h.default.ERROR,g.default.create("Invalid server command","Contact us asap. Bad command was ".concat(e.toString(),". "),E))}finally{ye.call(Y,t)}})),P.on("error",(function(e){K("".concat(w,"Stream *error* event emitted: ").concat((0,l.default)(e)))})),P.on("drain",(function(){K("".concat(w,"Stream *drain* event emitted (should not happen!)"))})),P.on("preend",(function(){K("".concat(w,"Stream *preend* event emitted"))})),P.on("end",(function(){K("".concat(w,"Stream *end* event emitted"))})),P.on("drain",(function(){K("".concat(w,"Stream *drain* event emitted"))})),P.on("pipe",(function(){K("".concat(w,"Stream *pipe* event emitted"))})),P.on("unpipe",(function(){K("".concat(w,"Stream *unpipe* event emitted"))})),P.on("resume",(function(){K("".concat(w,"Stream *resume* event emitted"))})),P.on("uncork",(function(){K("".concat(w,"Stream *uncork* event emitted"))})),P.on("readable",(function(){K("".concat(w,"Stream *preend* event emitted"))})),P.on("prefinish",(function(){K("".concat(w,"Stream *preend* event emitted"))})),P.on("finish",(function(){K("".concat(w,"Stream *preend* event emitted"))})))}}function de(e){C=!1,Re(),K("Recorder: userMediaErrorCallback(), name: ".concat(e.name,", message: ").concat(e.message," and Webcam characteristics: ").concat((0,l.default)(S.getCharacteristics())));var t=Y.listeners(h.default.ERROR);if(t&&t.length)e.name!==g.default.MEDIA_DEVICE_NOT_SUPPORTED?Y.emit(h.default.ERROR,g.default.create(e,E)):K("Recorder: ignore user media error",e),O=setTimeout(fe,E.timeouts.userMedia);else{if(!N)throw K("Recorder: no error listeners attached but throwing error",e),g.default.create(e,"Unable to process this error since there are no error listeners anymore.",E);K("Recorder: already unloaded. Not going to throw error",e)}}function he(e,t){if(K("Recorder: getUserMediaCallback()",(0,l.default)(t)),U&&(be()||!ge()||F))try{Re(),S.init(e,(function(){se(t)}),oe.bind(Y),(function(e){Y.emit(h.default.ERROR,e)}),t)}catch(e){Y.emit(h.default.ERROR,e)}}function pe(e){if(!navigator)throw new Error("Navigator is missing!");if(K("Recorder: loadGenuineUserMedia()"),Y.emit(h.default.ASKING_WEBCAM_PERMISSION),navigator.mediaDevices&&navigator.mediaDevices.getUserMedia){var t={video:{facingMode:Z,frameRate:{ideal:E.video.fps}},audio:E.isAudioEnabled()};c.isOkSafari()||(E.hasDefinedWidth()?t.video.width={ideal:E.video.width}:t.video.width={ideal:Y.limitWidth()},E.hasDefinedHeight()&&(t.video.height={ideal:E.video.height})),K("Recorder: navigator.mediaDevices.getUserMedia()",(0,l.default)(t)),navigator.mediaDevices.getSupportedConstraints&&K("Recorder: navigator.mediaDevices.getSupportedConstraints()",(0,l.default)(navigator.mediaDevices.getSupportedConstraints()));var n=navigator.mediaDevices.getUserMedia(t);if(!n)throw g.default.create("Sorry, your browser is unable to use cameras.","Try a different browser with better user media functionalities.",E);n.then((function(t){he(t,e)})).catch(de)}else K("Recorder: navigator.getUserMedia()"),navigator.getUserMedia_({video:!0,audio:E.isAudioEnabled()},he,de)}function me(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(M)return K("Recorder: skipping loadUserMedia() because it is already loaded"),se(e),!1;if(C)return K("Recorder: skipping loadUserMedia() because it is already asking for permission"),!1;K("Recorder: loadUserMedia(".concat((0,l.default)(e),")")),Y.emit(h.default.LOADING_USER_MEDIA);try{A=setTimeout((function(){Y.isReady()||Y.emit(h.default.ERROR,c.getNoAccessIssue())}),E.timeouts.userMedia),C=!0,pe(e)}catch(e){if(K("Recorder: failed to load genuine user media"),C=!1,!Y.listeners(h.default.ERROR).length)throw K("Recorder: no error listeners attached but throwing exception",e),e;Y.emit(h.default.ERROR,e)}}function ye(e){var t;if(!N)try{switch(e.args?K("Server commanded: ".concat(e.command," with ").concat((0,l.default)(e.args))):K("Server commanded: ".concat(e.command)),e.command){case"ready":this.emit(h.default.SERVER_READY),A||(E.loadUserMediaOnRecord?ae():me());break;case"preview":!function(e){te=ne=X=Q=0,x=T=null,W=e.key,e.mp4&&n.setMp4Source("".concat(e.mp4+d.default.SITE_NAME_LABEL,"/").concat(E.siteName,"/videomail.mp4"),!0),e.webm&&n.setWebMSource("".concat(e.webm+d.default.SITE_NAME_LABEL,"/").concat(E.siteName,"/videomail.webm"),!0),Y.hide();var t=Y.getRecorderWidth(!0),r=Y.getRecorderHeight(!0);Y.emit(h.default.PREVIEW,W,t,r),H=Date.now()-L,ee.waitingTime=H,E.debug&&K("While recording, %s have been transferred and waiting time was %s",y.default.filesize(k,2),y.default.toTime(H))}(e.args);break;case"error":this.emit(h.default.ERROR,g.default.create("Oh no, server error!",e.args.err.toString()||"(No message given)",E));break;case"confirmFrame":t=e.args,te=t.frame?t.frame:te,T=ue(),le();break;case"confirmSample":!function(e){ne=e.sample?e.sample:ne,x=ce(),le()}(e.args);break;case"beginAudioEncoding":this.emit(h.default.BEGIN_AUDIO_ENCODING);break;case"beginVideoEncoding":this.emit(h.default.BEGIN_VIDEO_ENCODING);break;default:this.emit(h.default.ERROR,"Unknown server command: ".concat(e.command))}}catch(e){Y.emit(h.default.ERROR,e)}}function be(){return e.isNotifying()}function ge(){return!R||(0,s.default)(R)}function ve(e,n,r){if(!r&&n&&n.constructor===Function&&(r=n,n=null),U){if(P){K(n?"$ ".concat(e," with ").concat((0,l.default)(n)):"$ ".concat(e));var i={command:e,args:n};re(t.from((0,l.default)(i))),r&&setTimeout((function(){r()}),0)}}else K("Reconnecting for the command",e,"…"),fe((function(){ve(e,n),r&&r()}))}function we(){return J.getElapsedTime()}function Ee(){if(0!==we())return Q/we()*1e3}function _e(){K("Recorder: reInitializeAudio()"),Re(),S&&S.stop(),M=W=j=D=null,me()}function Re(){A&&(K("Recorder: clearUserMediaTimeout()"),A&&clearTimeout(A),A=null)}function Se(e){1===(e&&e.frameNumber)&&Y.emit(h.default.FIRST_FRAME_SENT)}function Ae(n,r){try{if(!Y.isPaused()&&P&&D){if(0===Q&&Y.emit(h.default.SENDING_FIRST_FRAME),Q++,D.drawImage(S.getRawVisuals(),0,0,j.width,j.height),$=z.toBuffer(),(G=$.length)<1)throw g.default.create("Failed to extract webcam data.",E);k+=G;var i=t.from((0,l.default)({frameNumber:Q}));re(t.concat([$,i]),{frameNumber:Q,onFlushedCallback:Se}),e.checkTimer({intervalSum:r})}}catch(e){Y.emit(h.default.ERROR,e)}}function Oe(e){if(J){var t=Y.isRecording();J.stop(),J.setRequestAnimationFrameObject(e),t&&J.start()}}function ke(){E.hasDefinedWidth()&&(R.width=Y.getRecorderWidth(!0)),E.hasDefinedHeight()&&(R.height=Y.getRecorderHeight(!0))}function Te(){K("Recorder: initEvents()"),Y.on(h.default.SUBMITTING,(function(){I=!0})).on(h.default.SUBMITTED,(function(){I=!1})).on(h.default.BLOCKING,(function(){F=!0,Re()})).on(h.default.HIDE,(function(){Y.hide()})).on(h.default.LOADED_META_DATA,(function(){ke()})).on(h.default.DISABLING_AUDIO,(function(){_e()})).on(h.default.ENABLING_AUDIO,(function(){_e()})).on(h.default.INVISIBLE,(function(){!function(){K("Recorder: loopWithTimeouts()");var e,t=1e3/E.video.fps,n=0;Oe({requestAnimationFrame:function(r){return setTimeout((function(){e=Date.now(),r(),n=Date.now()-e}),t-n)},cancelAnimationFrame:function(e){clearTimeout(e)}})}()})).on(h.default.VISIBLE,(function(){K("Recorder: restoreAnimationFrameObject()"),Oe(_)})).on(h.default.SWITCH_FACING_MODE,(function(){!function(){if(!c.isMobile())return!1;"user"===Z?Z="environment":"environment"===Z?Z="user":K("Recorder: unsupported facing mode",Z),pe({switchingFacingMode:!0})}()}))}function xe(){var t;if(S){var n=S.getVideoWidth();t=n<1?e.getRatio():S.getVideoHeight()/n}else t=E.getRatio();return t}this.getRecordingStats=function(){return ee},this.getAudioSampleRate=function(){return S.getAudioSampleRate()},this.stop=function(e){K("stop(".concat((0,l.default)(e),")"));var t=e.limitReached;this.emit(h.default.STOPPING,t),J.complete();var r=this;setTimeout((function(){L=Date.now(),ee={avgFps:Ee(),wantedFps:E.video.fps,avgInterval:we()/Q,wantedInterval:1e3/E.video.fps,intervalSum:we(),framesCount:Q,videoType:n.getVideoType()},E.isAudioEnabled()&&(ee.samplesCount=X,ee.sampleRate=S.getAudioSampleRate()),ve("stop",ee,(function(){r.emit(h.default.STOPPED,{recordingStats:ee})})),r.reset()}),60)},this.back=function(e){this.emit(h.default.GOING_BACK),ae(),this.reset(),ve("back",e)},this.unload=function(e){var t;!N&&q&&(e&&(t=e.name||e.statusText||e.toString()),K("Recorder: unload()".concat(t?", cause: ".concat(t):"")),this.reset(),Re(),S&&S.unloadRemainingEventListeners(),I||P&&(K("Recorder: ending stream ..."),P.destroy(),P=void 0),N=!0,q=B=U=!1)},this.reset=function(){N||(K("Recorder: reset()"),this.emit(h.default.RESETTING),J&&J.dispose(),S&&S.stop(),n.reset(),M=W=j=D=$=G=null)},this.validate=function(){return U&&null===j},this.isReady=function(){return S.isReady()},this.pause=function(e){var n=e&&e.event;n instanceof window.Event&&(e.eventType=n.type),K(e?"pause() at frame ".concat(Q," with ").concat((0,l.default)(e)):"pause() at frame ".concat(Q)),S.pause(),J.stop(),this.emit(h.default.PAUSED),V=window.setInterval((function(){K("Recorder: pinging..."),re(t.from(""))}),E.timeouts.pingInterval)},this.isPaused=function(){return S&&S.isPaused()},this.resume=function(){K("Recorder: resume() with frame ".concat(Q)),ie(),this.emit(h.default.RESUMING),S.resume(),J.start()},this.record=function(){if(N)return!1;if(!U)return K("Recorder: reconnecting before recording ..."),fe((function(){Y.once(h.default.USER_MEDIA_READY,Y.record)})),!1;if(!M)return E.loadUserMediaOnRecord?me({recordWhenReady:!0}):Y.emit(h.default.ERROR,g.default.create("Load and enable your camera first",E)),!1;try{j=S.createCanvas()}catch(e){return Y.emit(h.default.ERROR,g.default.create(e,E)),!1}return D=j.getContext("2d"),j.width?j.height?(k=0,z=new o.default(j,E.image.types,E.image.quality),K("Recorder: record()"),S.record(),Y.emit(h.default.RECORDING,Q),J.on("update",(function(e,t){var n=void 0;n=0!==t?Math.round(Q/t*1e3):void 0,K("Recorder: avgFps = ".concat(n,", framesCount = ").concat(Q))})),void J.start()):(Y.emit(h.default.ERROR,g.default.create("Canvas has an invalid height.",E)),!1):(Y.emit(h.default.ERROR,g.default.create("Canvas has an invalid width.",E)),!1)},this.build=function(){var t=c.checkRecordingCapabilities();t||(t=c.checkBufferTypes()),t?this.emit(h.default.ERROR,t):((R=e.querySelector("video.".concat(E.selectors.userMediaClass)))||(R=(0,u.default)("video.".concat(E.selectors.userMediaClass)),e.appendChild(R)),ke(),R.muted=!0,R.setAttribute("playsinline",!0),R.setAttribute("webkit-playsinline","webkit-playsinline"),R.style.transform="rotateY(180deg)",R.style["-webkit-transform"]="rotateY(180deg)",R.style["-moz-transform"]="rotateY(180deg)",E.video.stretch&&(R.style.width="100%"),S||(S=new v.default(this,E)),ae(),q?E.loadUserMediaOnRecord&&me():(Te(),U?E.loadUserMediaOnRecord||me():fe()),q=!0)},this.isPaused=function(){return S&&S.isPaused()&&!J.isRunning()},this.isRecording=function(){return J&&J.isRunning()&&!this.isPaused()&&!be()&&P&&!P.destroyed},this.hide=function(){ge()||(R&&(0,s.default)(R,!0),Re(),O&&(K("Recorder: clearRetryTimeout()"),clearTimeout(O),O=null))},this.isUnloaded=function(){return N},this.getRecorderWidth=function(e){return S&&S.hasVideoWidth()?S.getRawWidth(e):e&&E.hasDefinedWidth()?this.limitWidth(E.video.width):void 0},this.getRecorderHeight=function(e,t){return R&&t?R.getBoundingClientRect().height:S?S.getRawHeight(e):e&&E.hasDefinedHeight()?this.calculateHeight(e):void 0},this.calculateWidth=function(t){var n;return S?n=S.getVideoHeight():R&&(n=R.videoHeight||R.height),e.calculateWidth({responsive:t,ratio:xe(),videoHeight:n})},this.calculateHeight=function(t){var n;return S?n=S.getVideoWidth():R&&(n=R.videoWidth||R.width),e.calculateHeight({responsive:t,ratio:xe(),videoWidth:n})},this.getRawVisualUserMedia=function(){return R},this.isConnected=function(){return U},this.isConnecting=function(){return B},this.limitWidth=function(t){return e.limitWidth(t)},this.limitHeight=function(t){return e.limitHeight(t)},this.isUserMediaLoaded=function(){return M}};(0,c.default)(E,m.default);n.default=E}).call(this)}).call(this,e("buffer").Buffer)},{"../../constants":118,"../../events":119,"../../util/browser":124,"../../util/eventEmitter":126,"../../util/humanize":127,"../../util/pretty":129,"../../util/videomailError":131,"./userMedia":147,"@babel/runtime/helpers/interopRequireDefault":4,animitter:13,buffer:18,"canvas-to-buffer":21,deepmerge:28,hidden:61,hyperscript:63,inherits:66,"safe-json-stringify":99,"websocket-stream":113}],146:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(e("add-eventlistener-with-options")),o=r(e("hidden")),a=r(e("hyperscript")),s=r(e("inherits")),u=r(e("iphone-inline-video")),c=r(e("../../events")),l=r(e("../../util/browser")),f=r(e("../../util/eventEmitter")),d=function(e,t){f.default.call(this,t,"Replay");var n,r,s,d=this,h=new l.default(t),p=t.debug;function m(){return"HTMLDivElement"===e.constructor.name}function y(e,n,i){var o=d.getVideoSource(e);if(n&&i&&(n+="?".concat(Date.now())),o)n?o.setAttribute("src",n):r.removeChild(o);else if(n){var s=1/t.video.fps*2;o=(0,a.default)("source",{src:"".concat(n,"#t=").concat(s),type:"video/".concat(e)}),r.appendChild(o)}}function b(e){setTimeout((function(){try{r&&r.pause()}catch(e){t.logger.warn(e)}e&&e()}),15)}function g(){if(r&&r.play){var e;try{e=r.play()}catch(e){t.logger.warn("Caught replay exception:",e)}e&&"undefined"!=typeof Promise&&e instanceof Promise&&e.catch((function(e){t.logger.warn("Caught pending replay promise exception: %s",e)}))}}this.setVideomail=function(t){(s=t)&&(s.mp4&&this.setMp4Source(s.mp4),s.webm&&this.setWebMSource(s.webm),s.poster&&r.setAttribute("poster",s.poster),function(t){var n;Object.keys(t).forEach((function(r){(n=e.querySelector(".".concat(r)))&&(!n.innerHTML||n.innerHTML.length<1)&&(n.innerHTML=t[r])}))}(s));var n=s&&s.recordingStats&&s.recordingStats.sampleRate>0;this.show(s&&s.width,s&&s.height,n)},this.show=function(n,i,a){r&&(d.isShown()||(p("Replay: show()"),s&&function(t){var n,i;s&&s.playerWidth?i=s.playerWidth:e.calculateWidth&&(i=e.calculateWidth(t)),s&&s.playerHeight?n=s.playerHeight:e.calculateHeight&&(n=e.calculateHeight(t)),r.style.width=i>0?"".concat(i,"px"):"auto",r.style.height=n>0?"".concat(n,"px"):"auto"}({responsive:!0,videoWidth:n||r.videoWidth,videoHeight:i||r.videoHeight}),(0,o.default)(r,!1),e&&(e.style?(0,o.default)(e,!1):e.show&&e.show()),a?r.setAttribute("volume",1):t.isAudioEnabled()||r.setAttribute("muted",!0),u.default&&(0,u.default)(r,{iPad:!0}),r.load(),s?r.addEventListener("canplaythrough",(function(){d.emit(c.default.REPLAY_SHOWN)}),{once:!0}):r.addEventListener("canplaythrough",(function(){d.emit(c.default.PREVIEW_SHOWN)}),{once:!0})))},this.build=function(o){p("Replay: build (".concat(o?'replayParentElement="'.concat(o,'"'):"",")")),(r=e.querySelector("video.".concat(t.selectors.replayClass)))||function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e;if(r=(0,a.default)("video.".concat(t.selectors.replayClass)),"string"==typeof n&&!(n=document.getElementById(n)))throw new Error("No replay parent element container with ID ".concat(n," found."));n.appendChild(r)}(o),this.hide(),r.setAttribute("autoplay",!0),r.setAttribute("autostart",!0),r.setAttribute("autobuffer",!0),r.setAttribute("playsinline",!0),r.setAttribute("webkit-playsinline","webkit-playsinline"),r.setAttribute("controls","controls"),r.setAttribute("preload","auto"),n||(m()||this.on(c.default.PREVIEW,(function(e,t,n){d.show(t,n)})),(0,i.default)(r,"touchstart",(function(e){try{e&&e.preventDefault()}catch(e){}this.paused?g():b()})),r.onclick=function(e){e&&e.preventDefault(),this.paused?g():b()}),n=!0,p("Replay: built.")},this.unload=function(){p("Replay: unload()"),d.removeAllListeners(),r.remove(),r=void 0,s=void 0,n=!1},this.getVideoSource=function(e){if(r){var t,n,i=r.getElementsByTagName("source"),o=i&&i.length,a="video/".concat(e);if(o)for(n=0;n<o&&!t;n++)i[n].getAttribute("type")===a&&(t=i[n]);return t}},this.setMp4Source=function(e,t){y("mp4",e,t)},this.setWebMSource=function(e,t){y("webm",e,t)},this.getVideoType=function(){return h.getVideoType(r)},this.reset=function(e){b((function(){r&&(d.setMp4Source(null),d.setWebMSource(null)),e&&e()}))},this.hide=function(){m()?(0,o.default)(e,!0):r&&(0,o.default)(r,!0)},this.isShown=function(){return r&&!(0,o.default)(r)},this.getParentElement=function(){return e}};(0,s.default)(d,f.default);n.default=d},{"../../events":119,"../../util/browser":124,"../../util/eventEmitter":126,"@babel/runtime/helpers/interopRequireDefault":4,"add-eventlistener-with-options":12,hidden:61,hyperscript:63,inherits:66,"iphone-inline-video":69}],147:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,t){c.default.call(this,t,"UserMedia");var n,r,p=e&&e.getRawVisualUserMedia(),m=new u.default(t),y=this,b=!1,g=!1;function v(e){e?function(e){if(r=e,void 0!==p.srcObject)p.srcObject=e;else{if(void 0===p.src)throw d.default.create("Error attaching stream to element.","Contact the developer about this",t);var n=window.URL||window.webkitURL;p.src=n.createObjectURL(e)||e}}(e):(p.removeAttribute("srcObject"),p.removeAttribute("src"),r=null)}function w(){return p.mozSrcObject?p.mozSrcObject:p.srcObject?p.srcObject:r}function E(){if(p.ended)return p.ended;var e=w();return e&&e.ended}function _(){if(p.videoWidth&&p.videoWidth<3||p.height&&p.height<3)return!0}function R(e,n){t.debug("UserMedia: ...",h,"event",e,(0,o.default)(n))}function S(e){R(e.type,{readyState:p.readyState}),p.removeEventListener&&p.removeEventListener(e.type,S)}this.unloadRemainingEventListeners=function(){t.debug("UserMedia: unloadRemainingEventListeners()"),l.default.forEach((function(e){p.removeEventListener(e,S)}))},this.init=function(e,r,i,o){var u=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};this.stop(e,{aboutToInitialize:!0,switchingFacingMode:u.switchingFacingMode});var c=!1,h=!1,b=!1;function g(){y.removeListener(a.default.SENDING_FIRST_FRAME,g),n&&n.record(i)}function w(){t.debug("UserMedia: unloadAllEventListeners()"),y.unloadRemainingEventListeners(),y.removeListener(a.default.SENDING_FIRST_FRAME,g),p.removeEventListener&&p.removeEventListener("play",k),p.removeEventListener&&p.removeEventListener("loadedmetadata",T)}function A(){try{if(p.load(),p.paused){var e;t.debug("UserMedia: play()","media.readyState=".concat(p.readyState),"media.paused=".concat(p.paused),"media.ended=".concat(p.ended),"media.played=".concat((0,f.default)(p.played)));try{e=p.play()}catch(e){t.logger.warn("Caught raw usermedia play exception:",e)}(n=e)&&"undefined"!=typeof Promise&&n instanceof Promise&&e.then((function(){b||(t.debug("UserMedia: play promise successful. Playing now."),b=!0)})).catch((function(e){t.logger.warn("Caught pending usermedia promise exception: %s",e.toString())}))}}catch(e){w(),o(e)}var n}function O(){var s=p.readyState;if(t.debug("UserMedia: fireCallbacks("+"readyState=".concat(s,", ")+"onPlayReached=".concat(c,", ")+"onLoadedMetaDataReached=".concat(h,")")),c&&h&&(r(),n&&i))try{n.init(e),y.on(a.default.SENDING_FIRST_FRAME,g)}catch(e){w(),o(e)}}function k(){try{R("play",{readyState:p.readyState,audio:t.isAudioEnabled(),width:p.width,height:p.height,videoWidth:p.videoWidth,videoHeight:p.videoHeight}),p.removeEventListener&&p.removeEventListener("play",k),E()||_()?o(d.default.create("Already busy","Probably another browser window is using your webcam?",t)):(c=!0,O())}catch(e){w(),o(e)}}function T(){R("loadedmetadata",{readyState:p.readyState,paused:p.paused,width:p.width,height:p.height,videoWidth:p.videoWidth,videoHeight:p.videoHeight}),p.removeEventListener&&p.removeEventListener("loadedmetadata",T),E()||_()||(y.emit(a.default.LOADED_META_DATA),m.isAndroid()&&A(),h=!0,O())}t&&t.isAudioEnabled()&&(n||(n=new s.default(this,t)));try{var x=function(e){var t,n=function(e){var t;return e&&e.getVideoTracks&&(t=e.getVideoTracks()),t}(e);return n&&n[0]&&(t=n[0]),t}(e);if(x){if(!x.enabled)throw d.default.create("Webcam is disabled","The video track seems to be disabled. Enable it in your system.",t);var j;x.label&&x.label.length>0&&(j=x.label),j+=" with enabled=".concat(x.enabled),j+=", muted=".concat(x.muted),j+=", remote=".concat(x.remote),j+=", readyState=".concat(x.readyState),j+=", error=".concat(x.error),t.debug("UserMedia: ".concat(x.kind," detected."),j||"")}else t.debug("UserMedia: detected (but no video tracks exist");l.default.forEach((function(e){p.addEventListener(e,S,!1)})),p.addEventListener("loadedmetadata",T),p.addEventListener("play",k),p.addEventListener("error",(function(e){t.logger.warn("Caught video element error event: %s",(0,f.default)(e))})),v(e),A()}catch(e){y.emit(a.default.ERROR,e)}},this.isReady=function(){return Boolean(p.src)},this.stop=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{var r=t.aboutToInitialize,i=t.switchingFacingMode;if(!r){e||(e=w());var o=function(e){var t;return e&&e.getTracks&&(t=e.getTracks()),t}(e),s=!1;o&&o.forEach((function(e){e.stop&&(s=!0,e.stop())})),!s&&e&&e.stop&&e.stop(),v(null),n&&n.stop(),n=null}i||(b=g=!1)}catch(e){y.emit(a.default.ERROR,e)}},this.createCanvas=function(){return(0,i.default)("canvas",{width:this.getRawWidth(!0),height:this.getRawHeight(!0)})},this.getVideoHeight=function(){return p.videoHeight},this.getVideoWidth=function(){return p.videoWidth},this.hasVideoWidth=function(){return this.getVideoWidth()>0},this.getRawWidth=function(n){var r=this.getVideoWidth(),i=t.hasDefinedWidth();return(i||t.hasDefinedHeight())&&(r=!n&&i?t.video.width:e.calculateWidth(n)),n&&(r=e.limitWidth(r)),r},this.getRawHeight=function(n){var r;if(t.hasDefinedDimension()){if((r=e.calculateHeight(n))<1)throw d.default.create("Bad dimensions","Calculated raw height cannot be less than 1!",t)}else if((r=this.getVideoHeight())<1)throw d.default.create("Bad dimensions","Raw video height from DOM element cannot be less than 1!",t);return n&&(r=e.limitHeight(r)),r},this.getRawVisuals=function(){return p},this.pause=function(){b=!0},this.isPaused=function(){return b},this.resume=function(){b=!1},this.record=function(){g=!0},this.isRecording=function(){return g},this.getAudioSampleRate=function(){return n?n.getSampleRate():-1},this.getCharacteristics=function(){return{audioSampleRate:this.getAudioSampleRate(),muted:p&&p.muted,width:p&&p.width,height:p&&p.height,videoWidth:p&&p.videoWidth,videoHeight:p&&p.videoHeight}}};var i=r(e("hyperscript")),o=r(e("safe-json-stringify")),a=r(e("./../../events")),s=r(e("./../../util/audioRecorder")),u=r(e("./../../util/browser")),c=r(e("./../../util/eventEmitter")),l=r(e("./../../util/mediaEvents")),f=r(e("./../../util/pretty")),d=r(e("./../../util/videomailError")),h="|—O—|"},{"./../../events":119,"./../../util/audioRecorder":123,"./../../util/browser":124,"./../../util/eventEmitter":126,"./../../util/mediaEvents":128,"./../../util/pretty":129,"./../../util/videomailError":131,"@babel/runtime/helpers/interopRequireDefault":4,hyperscript:63,"safe-json-stringify":99}],148:[function(e,t,n){"use strict";t.exports='@-webkit-keyframes blink{0%{opacity:.9}35%{opacity:.9}50%{opacity:.1}85%{opacity:.1}to{opacity:.9}}@keyframes blink{0%{opacity:.9}35%{opacity:.9}50%{opacity:.1}85%{opacity:.1}to{opacity:.9}}.IIV::-webkit-media-controls-play-button,.IIV::-webkit-media-controls-start-playback-button{opacity:0;pointer-events:none;width:5px}.videomail .visuals{position:relative}.videomail .visuals video.replay{height:100%;width:100%}.videomail .countdown,.videomail .pausedHeader,.videomail .pausedHint,.videomail .recordNote,.videomail .recordTimer{height:auto;margin:0}.videomail .countdown,.videomail .facingMode,.videomail .paused,.videomail .recordNote,.videomail .recordTimer,.videomail noscript{position:absolute;z-index:100}.videomail .countdown,.videomail .pausedHeader,.videomail .pausedHint,.videomail .recordNote,.videomail .recordTimer,.videomail noscript{font-weight:700}.videomail .countdown,.videomail .paused,.videomail noscript{top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:100%}.videomail .countdown,.videomail .pausedHeader,.videomail .pausedHint{letter-spacing:4px;text-align:center;text-shadow:-2px 0 #fff,0 2px #fff,2px 0 #fff,0 -2px #fff}.videomail .countdown,.videomail .pausedHeader{font-size:460%;opacity:.9}.videomail .pausedHint{font-size:150%}.videomail .facingMode{background:rgba(30,30,30,.5);border:none;bottom:.6em;color:hsla(0,0%,96%,.9);font-family:monospace;font-size:1.2em;outline:none;padding:.1em .3em;right:.7em;-webkit-transition:all .2s ease;transition:all .2s ease;z-index:10}.videomail .facingMode:hover{background:rgba(50,50,50,.7);cursor:pointer}.videomail .recordNote,.videomail .recordTimer{background:hsla(0,0%,4%,.8);color:#00d814;font-family:monospace;opacity:.9;padding:.3em .4em;right:.7em;-webkit-transition:all 1s ease;transition:all 1s ease}.videomail .recordNote.near,.videomail .recordTimer.near{color:#eb9369}.videomail .recordNote.nigh,.videomail .recordTimer.nigh{color:#ea4b2a}.videomail .recordTimer{top:.7em}.videomail .recordNote{top:3.6em}.videomail .recordNote:before{-webkit-animation:blink 1s infinite;animation:blink 1s infinite;content:"REC"}.videomail .notifier{-webkit-box-sizing:border-box;box-sizing:border-box;height:100%;overflow:hidden}.videomail .radioGroup{display:block}.videomail video{margin-bottom:0}.videomail video.userMedia{background-color:rgba(50,50,50,.1)}'},{}],"videomail-client":[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(e("./client"));(0,r(e("./util/standardize")).default)(window,navigator);n.default=i.default},{"./client":117,"./util/standardize":130,"@babel/runtime/helpers/interopRequireDefault":4}]},{},["videomail-client"])("videomail-client")}));
50
+ t.exports=function(t){return ArrayBuffer.isView(t)?e.from(t.buffer,t.byteOffset,t.byteLength):e.from(t)}}).call(this)}).call(this,e("buffer").Buffer)},{buffer:18}],110:[function(e,t,n){!function(e,r){"use strict";var i="function",o="undefined",a="object",s="string",u="major",c="model",l="name",f="type",d="vendor",h="version",p="architecture",m="console",y="mobile",b="tablet",g="smarttv",v="wearable",w="embedded",E="Amazon",_="Apple",R="ASUS",S="BlackBerry",A="Browser",k="Chrome",O="Firefox",T="Google",x="Huawei",j="LG",D="Microsoft",M="Motorola",C="Opera",N="Samsung",I="Sharp",L="Sony",P="Xiaomi",B="Zebra",U="Facebook",F="Chromium OS",q="Mac OS",W=" Browser",H=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},V=function(e,t){return typeof e===s&&-1!==z(t).indexOf(z(e))},z=function(e){return e.toLowerCase()},G=function(e,t){if(typeof e===s)return e=e.replace(/^\s\s*/,""),typeof t===o?e:e.substring(0,500)},$=function(e,t){for(var n,o,s,u,c,l,f=0;f<t.length&&!c;){var d=t[f],h=t[f+1];for(n=o=0;n<d.length&&!c&&d[n];)if(c=d[n++].exec(e))for(s=0;s<h.length;s++)l=c[++o],typeof(u=h[s])===a&&u.length>0?2===u.length?typeof u[1]==i?this[u[0]]=u[1].call(this,l):this[u[0]]=u[1]:3===u.length?typeof u[1]!==i||u[1].exec&&u[1].test?this[u[0]]=l?l.replace(u[1],u[2]):r:this[u[0]]=l?u[1].call(this,l,u[2]):r:4===u.length&&(this[u[0]]=l?u[3].call(this,l.replace(u[1],u[2])):r):this[u]=l||r;f+=2}},Y=function(e,t){for(var n in t)if(typeof t[n]===a&&t[n].length>0){for(var i=0;i<t[n].length;i++)if(V(t[n][i],e))return"?"===n?r:n}else if(V(t[n],e))return"?"===n?r:n;return t.hasOwnProperty("*")?t["*"]:e},K={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},J={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[h,[l,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[h,[l,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[l,h],[/opios[\/ ]+([\w\.]+)/i],[h,[l,C+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[h,[l,C+" GX"]],[/\bopr\/([\w\.]+)/i],[h,[l,C]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[h,[l,"Baidu"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[l,h],[/quark(?:pc)?\/([-\w\.]+)/i],[h,[l,"Quark"]],[/\bddg\/([\w\.]+)/i],[h,[l,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[h,[l,"UC"+A]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[h,[l,"WeChat"]],[/konqueror\/([\w\.]+)/i],[h,[l,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[h,[l,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[h,[l,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[h,[l,"Smart Lenovo "+A]],[/(avast|avg)\/([\w\.]+)/i],[[l,/(.+)/,"$1 Secure "+A],h],[/\bfocus\/([\w\.]+)/i],[h,[l,O+" Focus"]],[/\bopt\/([\w\.]+)/i],[h,[l,C+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[h,[l,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[h,[l,"Dolphin"]],[/coast\/([\w\.]+)/i],[h,[l,C+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[h,[l,"MIUI "+A]],[/fxios\/([-\w\.]+)/i],[h,[l,O]],[/\bqihu|(qi?ho?o?|360)browser/i],[[l,"360"+W]],[/\b(qq)\/([\w\.]+)/i],[[l,/(.+)/,"$1Browser"],h],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[l,/(.+)/,"$1"+W],h],[/samsungbrowser\/([\w\.]+)/i],[h,[l,N+" Internet"]],[/(comodo_dragon)\/([\w\.]+)/i],[[l,/_/g," "],h],[/metasr[\/ ]?([\d\.]+)/i],[h,[l,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[l,"Sogou Mobile"],h],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[l,h],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[l],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[l,U],h],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[l,h],[/\bgsa\/([\w\.]+) .*safari\//i],[h,[l,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[h,[l,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[h,[l,k+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[l,k+" WebView"],h],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[h,[l,"Android "+A]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[l,h],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[h,[l,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[h,l],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[l,[h,Y,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[l,h],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[l,"Netscape"],h],[/(wolvic)\/([\w\.]+)/i],[l,h],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[h,[l,O+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[l,[h,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[l,[h,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[p,"amd64"]],[/(ia32(?=;))/i],[[p,z]],[/((?:i[346]|x)86)[;\)]/i],[[p,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[p,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[p,"armhf"]],[/windows (ce|mobile); ppc;/i],[[p,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[p,/ower/,"",z]],[/(sun4\w)[;\)]/i],[[p,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[p,z]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[c,[d,N],[f,b]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[c,[d,N],[f,y]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[c,[d,_],[f,y]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[c,[d,_],[f,b]],[/(macintosh);/i],[c,[d,_]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[c,[d,I],[f,y]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[c,[d,x],[f,b]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[c,[d,x],[f,y]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i],[[c,/_/g," "],[d,P],[f,y]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[c,/_/g," "],[d,P],[f,b]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[c,[d,"OPPO"],[f,y]],[/\b(opd2\d{3}a?) bui/i],[c,[d,"OPPO"],[f,b]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[c,[d,"Vivo"],[f,y]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[c,[d,"Realme"],[f,y]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[c,[d,M],[f,y]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[c,[d,M],[f,b]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[c,[d,j],[f,b]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[c,[d,j],[f,y]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[c,[d,"Lenovo"],[f,b]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[c,/_/g," "],[d,"Nokia"],[f,y]],[/(pixel c)\b/i],[c,[d,T],[f,b]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[c,[d,T],[f,y]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[c,[d,L],[f,y]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[c,"Xperia Tablet"],[d,L],[f,b]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[c,[d,"OnePlus"],[f,y]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[c,[d,E],[f,b]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[c,/(.+)/g,"Fire Phone $1"],[d,E],[f,y]],[/(playbook);[-\w\),; ]+(rim)/i],[c,d,[f,b]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[c,[d,S],[f,y]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[c,[d,R],[f,b]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[c,[d,R],[f,y]],[/(nexus 9)/i],[c,[d,"HTC"],[f,b]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[d,[c,/_/g," "],[f,y]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[c,[d,"TCL"],[f,b]],[/(itel) ((\w+))/i],[[d,z],c,[f,Y,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[c,[d,"Acer"],[f,b]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[c,[d,"Meizu"],[f,y]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[c,[d,"Ulefone"],[f,y]],[/droid.+; (a(?:015|06[35]|142p?))/i],[c,[d,"Nothing"],[f,y]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[d,c,[f,y]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[d,c,[f,b]],[/(surface duo)/i],[c,[d,D],[f,b]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[c,[d,"Fairphone"],[f,y]],[/(u304aa)/i],[c,[d,"AT&T"],[f,y]],[/\bsie-(\w*)/i],[c,[d,"Siemens"],[f,y]],[/\b(rct\w+) b/i],[c,[d,"RCA"],[f,b]],[/\b(venue[\d ]{2,7}) b/i],[c,[d,"Dell"],[f,b]],[/\b(q(?:mv|ta)\w+) b/i],[c,[d,"Verizon"],[f,b]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[c,[d,"Barnes & Noble"],[f,b]],[/\b(tm\d{3}\w+) b/i],[c,[d,"NuVision"],[f,b]],[/\b(k88) b/i],[c,[d,"ZTE"],[f,b]],[/\b(nx\d{3}j) b/i],[c,[d,"ZTE"],[f,y]],[/\b(gen\d{3}) b.+49h/i],[c,[d,"Swiss"],[f,y]],[/\b(zur\d{3}) b/i],[c,[d,"Swiss"],[f,b]],[/\b((zeki)?tb.*\b) b/i],[c,[d,"Zeki"],[f,b]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[d,"Dragon Touch"],c,[f,b]],[/\b(ns-?\w{0,9}) b/i],[c,[d,"Insignia"],[f,b]],[/\b((nxa|next)-?\w{0,9}) b/i],[c,[d,"NextBook"],[f,b]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[d,"Voice"],c,[f,y]],[/\b(lvtel\-)?(v1[12]) b/i],[[d,"LvTel"],c,[f,y]],[/\b(ph-1) /i],[c,[d,"Essential"],[f,y]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[c,[d,"Envizen"],[f,b]],[/\b(trio[-\w\. ]+) b/i],[c,[d,"MachSpeed"],[f,b]],[/\btu_(1491) b/i],[c,[d,"Rotor"],[f,b]],[/(shield[\w ]+) b/i],[c,[d,"Nvidia"],[f,b]],[/(sprint) (\w+)/i],[d,c,[f,y]],[/(kin\.[onetw]{3})/i],[[c,/\./g," "],[d,D],[f,y]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[c,[d,B],[f,b]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[c,[d,B],[f,y]],[/smart-tv.+(samsung)/i],[d,[f,g]],[/hbbtv.+maple;(\d+)/i],[[c,/^/,"SmartTV"],[d,N],[f,g]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[d,j],[f,g]],[/(apple) ?tv/i],[d,[c,_+" TV"],[f,g]],[/crkey/i],[[c,k+"cast"],[d,T],[f,g]],[/droid.+aft(\w+)( bui|\))/i],[c,[d,E],[f,g]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[c,[d,I],[f,g]],[/(bravia[\w ]+)( bui|\))/i],[c,[d,L],[f,g]],[/(mitv-\w{5}) bui/i],[c,[d,P],[f,g]],[/Hbbtv.*(technisat) (.*);/i],[d,c,[f,g]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[d,G],[c,G],[f,g]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[f,g]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[d,c,[f,m]],[/droid.+; (shield) bui/i],[c,[d,"Nvidia"],[f,m]],[/(playstation [345portablevi]+)/i],[c,[d,L],[f,m]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[c,[d,D],[f,m]],[/\b(sm-[lr]\d\d[05][fnuw]?s?)\b/i],[c,[d,N],[f,v]],[/((pebble))app/i],[d,c,[f,v]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[c,[d,_],[f,v]],[/droid.+; (glass) \d/i],[c,[d,T],[f,v]],[/droid.+; (wt63?0{2,3})\)/i],[c,[d,B],[f,v]],[/(quest( \d| pro)?)/i],[c,[d,U],[f,v]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[d,[f,w]],[/(aeobc)\b/i],[c,[d,E],[f,w]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[c,[f,y]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[c,[f,b]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[f,b]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[f,y]],[/(android[-\w\. ]{0,9});.+buil/i],[c,[d,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[h,[l,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[h,[l,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[l,h],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[h,l]],os:[[/microsoft (windows) (vista|xp)/i],[l,h],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[l,[h,Y,K]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[h,Y,K],[l,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[h,/_/g,"."],[l,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[l,q],[h,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[h,l],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[l,h],[/\(bb(10);/i],[h,[l,S]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[h,[l,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[h,[l,O+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[h,[l,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[h,[l,"watchOS"]],[/crkey\/([\d\.]+)/i],[h,[l,k+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[l,F],h],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[l,h],[/(sunos) ?([\w\.\d]*)/i],[[l,"Solaris"],h],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[l,h]]},X=function(t,n){if(typeof t===a&&(n=t,t=r),!(this instanceof X))return new X(t,n).getResult();var m=typeof e!==o&&e.navigator?e.navigator:r,g=t||(m&&m.userAgent?m.userAgent:""),v=m&&m.userAgentData?m.userAgentData:r,w=n?function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n}(J,n):J,E=m&&m.userAgent==g;return this.getBrowser=function(){var e,t={};return t[l]=r,t[h]=r,$.call(t,g,w.browser),t[u]=typeof(e=t[h])===s?e.replace(/[^\d\.]/g,"").split(".")[0]:r,E&&m&&m.brave&&typeof m.brave.isBrave==i&&(t[l]="Brave"),t},this.getCPU=function(){var e={};return e[p]=r,$.call(e,g,w.cpu),e},this.getDevice=function(){var e={};return e[d]=r,e[c]=r,e[f]=r,$.call(e,g,w.device),E&&!e[f]&&v&&v.mobile&&(e[f]=y),E&&"Macintosh"==e[c]&&m&&typeof m.standalone!==o&&m.maxTouchPoints&&m.maxTouchPoints>2&&(e[c]="iPad",e[f]=b),e},this.getEngine=function(){var e={};return e[l]=r,e[h]=r,$.call(e,g,w.engine),e},this.getOS=function(){var e={};return e[l]=r,e[h]=r,$.call(e,g,w.os),E&&!e[l]&&v&&v.platform&&"Unknown"!=v.platform&&(e[l]=v.platform.replace(/chrome os/i,F).replace(/macos/i,q)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return g},this.setUA=function(e){return g=typeof e===s&&e.length>500?G(e,500):e,this},this.setUA(g),this};X.VERSION="1.0.39",X.BROWSER=H([l,h,u]),X.CPU=H([p]),X.DEVICE=H([c,d,f,m,y,g,b,v,w]),X.ENGINE=X.OS=H([l,h]),typeof n!==o?(typeof t!==o&&t.exports&&(n=t.exports=X),n.UAParser=X):typeof e!==o&&(e.UAParser=X);var Q=typeof e!==o&&(e.jQuery||e.Zepto);if(Q&&!Q.ua){var Z=new X;Q.ua=Z.getResult(),Q.ua.get=function(){return Z.getUA()},Q.ua.set=function(e){Z.setUA(e);var t=Z.getResult();for(var n in t)Q.ua[n]=t[n]}}}("object"==typeof window?window:this)},{}],111:[function(e,t,n){(function(e){(function(){function n(t){try{if(!e.localStorage)return!1}catch(e){return!1}var n=e.localStorage[t];return null!=n&&"true"===String(n).toLowerCase()}t.exports=function(e,t){if(n("noDeprecation"))return e;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw new Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}}}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],112:[function(e,t,n){(function(n,r){(function(){var i=e("readable-stream"),o=e("end-of-stream"),a=e("inherits"),s=e("stream-shift"),u=r.from&&r.from!==Uint8Array.from?r.from([0]):new r([0]),c=function(e,t){e._corked?e.once("uncork",t):t()},l=function(e,t){return function(n){n?function(e,t){e._autoDestroy&&e.destroy(t)}(e,"premature close"===n.message?null:n):t&&!e._ended&&e.end()}},f=function(e,t,n){if(!(this instanceof f))return new f(e,t,n);i.Duplex.call(this,n),this._writable=null,this._readable=null,this._readable2=null,this._autoDestroy=!n||!1!==n.autoDestroy,this._forwardDestroy=!n||!1!==n.destroy,this._forwardEnd=!n||!1!==n.end,this._corked=1,this._ondrain=null,this._drained=!1,this._forwarding=!1,this._unwrite=null,this._unread=null,this._ended=!1,this.destroyed=!1,e&&this.setWritable(e),t&&this.setReadable(t)};a(f,i.Duplex),f.obj=function(e,t,n){return n||(n={}),n.objectMode=!0,n.highWaterMark=16,new f(e,t,n)},f.prototype.cork=function(){1==++this._corked&&this.emit("cork")},f.prototype.uncork=function(){this._corked&&0==--this._corked&&this.emit("uncork")},f.prototype.setWritable=function(e){if(this._unwrite&&this._unwrite(),this.destroyed)e&&e.destroy&&e.destroy();else if(null!==e&&!1!==e){var t=this,r=o(e,{writable:!0,readable:!1},l(this,this._forwardEnd)),i=function(){var e=t._ondrain;t._ondrain=null,e&&e()};this._unwrite&&n.nextTick(i),this._writable=e,this._writable.on("drain",i),this._unwrite=function(){t._writable.removeListener("drain",i),r()},this.uncork()}else this.end()},f.prototype.setReadable=function(e){if(this._unread&&this._unread(),this.destroyed)e&&e.destroy&&e.destroy();else{if(null===e||!1===e)return this.push(null),void this.resume();var t,n=this,r=o(e,{writable:!1,readable:!0},l(this)),a=function(){n._forward()},s=function(){n.push(null)};this._drained=!0,this._readable=e,this._readable2=e._readableState?e:(t=e,new i.Readable({objectMode:!0,highWaterMark:16}).wrap(t)),this._readable2.on("readable",a),this._readable2.on("end",s),this._unread=function(){n._readable2.removeListener("readable",a),n._readable2.removeListener("end",s),r()},this._forward()}},f.prototype._read=function(){this._drained=!0,this._forward()},f.prototype._forward=function(){if(!this._forwarding&&this._readable2&&this._drained){var e;for(this._forwarding=!0;this._drained&&null!==(e=s(this._readable2));)this.destroyed||(this._drained=this.push(e));this._forwarding=!1}},f.prototype.destroy=function(e){if(!this.destroyed){this.destroyed=!0;var t=this;n.nextTick((function(){t._destroy(e)}))}},f.prototype._destroy=function(e){if(e){var t=this._ondrain;this._ondrain=null,t?t(e):this.emit("error",e)}this._forwardDestroy&&(this._readable&&this._readable.destroy&&this._readable.destroy(),this._writable&&this._writable.destroy&&this._writable.destroy()),this.emit("close")},f.prototype._write=function(e,t,n){return this.destroyed?n():this._corked?c(this,this._write.bind(this,e,t,n)):e===u?this._finish(n):this._writable?void(!1===this._writable.write(e)?this._ondrain=n:n()):n()},f.prototype._finish=function(e){var t=this;this.emit("preend"),c(this,(function(){var n,r;n=t._forwardEnd&&t._writable,r=function(){!1===t._writableState.prefinished&&(t._writableState.prefinished=!0),t.emit("prefinish"),c(t,e)},n?n._writableState&&n._writableState.finished?r():n._writableState?n.end(r):(n.end(),r()):r()}))},f.prototype.end=function(e,t,n){return"function"==typeof e?this.end(null,null,e):"function"==typeof t?this.end(e,null,t):(this._ended=!0,e&&this.write(e),this._writableState.ending||this.write(u),i.Writable.prototype.end.call(this,n))},t.exports=f}).call(this)}).call(this,e("_process"),e("buffer").Buffer)},{_process:79,buffer:18,"end-of-stream":35,inherits:66,"readable-stream":96,"stream-shift":102}],113:[function(e,t,n){(function(n,r){(function(){"use strict";var i=e("readable-stream").Transform,o=e("duplexify"),a=e("ws"),s=e("safe-buffer").Buffer;t.exports=function(e,t,u){var c,l,f="browser"===n.title,d=!!r.WebSocket,h=f?function e(t,n,r){if(l.bufferedAmount>m)return void setTimeout(e,y,t,n,r);g&&"string"==typeof t&&(t=s.from(t,"utf8"));try{l.send(t)}catch(e){return r(e)}r()}:function(e,t,n){if(l.readyState!==l.OPEN)return void n();g&&"string"==typeof e&&(e=s.from(e,"utf8"));l.send(e,n)};t&&!Array.isArray(t)&&"object"==typeof t&&(u=t,t=null,("string"==typeof u.protocol||Array.isArray(u.protocol))&&(t=u.protocol));u||(u={});void 0===u.objectMode&&(u.objectMode=!(!0===u.binary||void 0===u.binary));var p=function(e,t,n){var r=new i({objectMode:e.objectMode});return r._write=t,r._flush=n,r}(u,h,(function(e){l.close(),e()}));u.objectMode||(p._writev=R);var m=u.browserBufferSize||524288,y=u.browserBufferTimeout||1e3;"object"==typeof e?l=e:(l=d&&f?new a(e,t):new a(e,t,u)).binaryType="arraybuffer";var b=void 0===l.addEventListener;l.readyState===l.OPEN?c=p:(c=c=o(void 0,void 0,u),u.objectMode||(c._writev=R),b?l.addEventListener("open",v):l.onopen=v);c.socket=l,b?(l.addEventListener("close",w),l.addEventListener("error",E),l.addEventListener("message",_)):(l.onclose=w,l.onerror=E,l.onmessage=_);p.on("close",(function(){l.close()}));var g=!u.objectMode;function v(){c.setReadable(p),c.setWritable(p),c.emit("connect")}function w(){c.end(),c.destroy()}function E(e){c.destroy(e)}function _(e){var t=e.data;t=t instanceof ArrayBuffer?s.from(t):s.from(t,"utf8"),p.push(t)}function R(e,t){for(var n=new Array(e.length),r=0;r<e.length;r++)"string"==typeof e[r].chunk?n[r]=s.from(e[r],"utf8"):n[r]=e[r].chunk;this._write(s.concat(n),"binary",t)}return c}}).call(this)}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:79,duplexify:112,"readable-stream":96,"safe-buffer":98,ws:114}],114:[function(e,t,n){var r=null;"undefined"!=typeof WebSocket?r=WebSocket:"undefined"!=typeof MozWebSocket?r=MozWebSocket:"undefined"!=typeof window&&(r=window.WebSocket||window.MozWebSocket),t.exports=r},{}],115:[function(e,t,n){t.exports=function e(t,n){if(t&&n)return e(t)(n);if("function"!=typeof t)throw new TypeError("need wrapper function");return Object.keys(t).forEach((function(e){r[e]=t[e]})),r;function r(){for(var e=new Array(arguments.length),n=0;n<e.length;n++)e[n]=arguments[n];var r=t.apply(this,e),i=e[e.length-1];return"function"==typeof r&&r!==i&&Object.keys(i).forEach((function(e){r[e]=i[e]})),r}}},{}],116:[function(e,t,n){t.exports={name:"videomail-client",version:"9.3.3",description:"A wicked npm package to record videos directly in the browser, wohooo!",keywords:["webcam","video","videomail","encoder","getusermedia","audio","recorder"],homepage:"https://videomail.io",repository:{type:"git",url:"git+https://github.com/binarykitchen/videomail-client.git"},license:"CC0-1.0",author:"Michael Heuberger <michael.heuberger@binarykitchen.com>",contributors:[{name:"Michael Heuberger",email:"michael.heuberger@binarykitchen.com"}],main:"prototype/js/videomail-client.js",scripts:{audit:"npx audit-ci --config audit-ci.json",build:"gulp build",clean:"rm -rf node_modules && rm -rf package-lock.json",lint:"eslint --color ./src ./test ./gulpfile.js","lint:fix":"npm --silent run lint -- --fix",major:"./env/dev/release.sh --importance=major",minor:"./env/dev/release.sh --importance=minor",patch:"./env/dev/release.sh --importance=patch",prettier:"prettier --check ./src ./test ./prototype/*.html gulpfile.js","prettier:fix":"prettier --write ./src ./test ./prototype/*.html gulpfile.js",test:"gulp test",watch:"NODE_NO_HTTP2=1 gulp watch"},prettier:"./prettier.config.cjs",dependencies:{"@babel/core":"7.25.2","add-eventlistener-with-options":"1.25.5",animitter:"3.0.0","audio-sample":"4.1.0","canvas-to-buffer":"4.1.0","classlist.js":"1.1.20150312",contains:"0.1.1","core-js":"3.38.1","create-error":"0.3.1",deepmerge:"4.3.1",defined:"1.0.1",despot:"2.1.0","document-visibility":"1.0.1",filesize:"10.1.6","format-util":"1.0.5","get-form-data":"3.0.0",hidden:"1.1.1","humanize-duration":"3.32.1",hyperscript:"2.0.2",inherits:"2.0.4","insert-css":"2.0.0","iphone-inline-video":"2.2.2","is-power-of-two":"1.0.0",keymirror:"0.1.1","number-is-integer":"2.0.0","request-frame":"1.5.3","safe-json-stringify":"1.2.0",superagent:"10.1.0","ua-parser-js":"1.0.39","websocket-stream":"5.5.2"},devDependencies:{"@babel/eslint-parser":"7.25.1","@babel/plugin-transform-runtime":"7.25.4","@babel/preset-env":"7.25.4","audit-ci":"7.1.0",autoprefixer:"10.4.20",babelify:"10.0.0","body-parser":"1.20.3",browserify:"17.0.0","connect-send-json":"1.0.0",cssnano:"6.0.5",del:"6.1.1",eslint:"8.57.0","eslint-config-prettier":"9.1.0","eslint-plugin-import":"2.30.0","eslint-plugin-node":"11.1.0","eslint-plugin-promise":"6.2.0","fancy-log":"2.0.0",glob:"10.4.2",gulp:"4.0.2","gulp-bump":"3.2.0","gulp-bytediff":"1.0.0","gulp-concat":"2.6.1","gulp-connect":"5.7.0","gulp-derequire":"3.0.0","gulp-if":"3.0.0","gulp-inject-string":"1.1.2","gulp-load-plugins":"2.0.8","gulp-plumber":"1.2.1","gulp-postcss":"10.0.0","gulp-rename":"2.0.0","gulp-sourcemaps":"3.0.0","gulp-stylus":"3.0.1","gulp-terser":"2.1.0",minimist:"1.2.8",nib:"1.2.0",postcss:"8.4.47",prettier:"3.3.3","prettier-plugin-curly":"0.2.2","prettier-plugin-organize-imports":"4.1.0","prettier-plugin-packagejson":"2.5.2","prettier-plugin-sh":"0.14.0",router:"1.3.8",tape:"5.9.0","tape-catch":"1.0.6","tape-run":"11.0.0","vinyl-buffer":"1.0.1","vinyl-source-stream":"2.0.0",watchify:"4.0.0"},engines:{node:">=20.16.0",npm:">=10.8.1"},readmeFilename:"README.md"}},{}],117:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i,o,a=r(e("deepmerge")),s=r(e("inherits")),u=r(e("./constants")),c=r(e("./events")),l=r(e("./options")),f=r(e("./resource")),d=r(e("./util/browser")),h=r(e("./util/collectLogger")),p=r(e("./util/eventEmitter")),m=r(e("./wrappers/container")),y=r(e("./util/addOptionsFunctions"));var b=function(e){var t=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,a.default)(l.default,e,{arrayMerge:function(e,t){return t}});return i||(i=new h.default(t)),t.logger=i,t.debug=t.logger.debug,(0,y.default)(t)}(e),n=new m.default(t),r=t.debug;this.events=c.default,p.default.call(this,t,"VideomailClient"),this.build=function(){var e=!1;e||n.isBuilt()||(r("Client: build()"),e=!0,n.build(),e=!1)},this.show=function(){n.isBuilt()||this.build(),n.show()},this.replay=function(e,t){n.isBuilt()||n.build(!0,t),e&&(e=n.addPlayerDimensions(e)),n.buildForm(),n.loadForm(e),this.once(c.default.REPLAY_SHOWN,(function(){n.showReplayOnly()})),n.getReplay().setVideomail(e)},this.startOver=function(e){var t=n.getReplay();t&&(t.hide(),t.reset()),n.startOver(e)},this.unload=function(e){this.removeAllListeners(),n.unload(e)},this.hide=function(){n.hide()},this.getByAlias=function(e,r){new f.default(t).getByAlias(e,(function(e,t){e?r(e):r(null,n.addPlayerDimensions(t))}))},this.get=this.getByAlias,this.getByKey=function(e,r){new f.default(t).getByKey(e,(function(e,t){e?r(e):r(null,n.addPlayerDimensions(t))}))},this.canRecord=function(){return function(e){return o||(o=new d.default(e)),o}(t).canRecord()},this.isDirty=function(){return n.isDirty()},this.isBuilt=function(){return n.isBuilt()},this.isRecording=function(){return n.isRecording()},this.submit=function(){n.submit()},this.getLogLines=function(){if(t.logger&&t.logger.getLines)return t.logger.getLines()}};(0,s.default)(b,p.default),Object.keys(u.default.public).forEach((function(e){b[e]=u.default.public[e]})),b.Events=c.default;n.default=b},{"./constants":118,"./events":119,"./options":120,"./resource":121,"./util/addOptionsFunctions":122,"./util/browser":124,"./util/collectLogger":125,"./util/eventEmitter":126,"./wrappers/container":133,"@babel/runtime/helpers/interopRequireDefault":4,deepmerge:28,inherits:66}],118:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;n.default={SITE_NAME_LABEL:"x-videomail-site-name",VERSION_LABEL:"videomailClientVersion",public:{ENC_TYPE_APP_JSON:"application/json",ENC_TYPE_FORM:"application/x-www-form-urlencoded"}}},{}],119:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(e("keymirror"));n.default=(0,i.default)({BUILT:null,FORM_READY:null,LOADING_USER_MEDIA:null,USER_MEDIA_READY:null,CONNECTING:null,CONNECTED:null,DISCONNECTED:null,COUNTDOWN:null,RECORDING:null,STOPPING:null,STOPPED:null,PROGRESS:null,BEGIN_AUDIO_ENCODING:null,BEGIN_VIDEO_ENCODING:null,RESETTING:null,PAUSED:null,RESUMING:null,PREVIEW:null,PREVIEW_SHOWN:null,REPLAY_SHOWN:null,INVALID:null,VALIDATING:null,VALID:null,SUBMITTING:null,SUBMITTED:null,ERROR:null,BLOCKING:null,SENDING_FIRST_FRAME:null,FIRST_FRAME_SENT:null,HIDE:null,NOTIFYING:null,ENABLING_AUDIO:null,DISABLING_AUDIO:null,LOADED_META_DATA:null,EVENT_EMITTED:null,GOING_BACK:null,STARTING_OVER:null,ASKING_WEBCAM_PERMISSION:null,VISIBLE:null,INVISIBLE:null,SWITCH_FACING_MODE:null,SERVER_READY:null,UNLOADING:null})},{"@babel/runtime/helpers/interopRequireDefault":4,keymirror:73}],120:[function(e,t,n){(function(t){(function(){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=e("../../package.json"),o=r(e("./util/addOptionsFunctions")),a={logger:null,logStackSize:30,verbose:!("production"===t.env.NODE_ENV),baseUrl:"https://videomail.io",socketUrl:"wss://videomail.io",siteName:"videomail-client-demo",insertCss:!0,enablePause:!0,enableAutoPause:!0,enableSpace:!0,submitWithVideomail:!1,disableSubmit:!1,enableAutoValidation:!0,enableAutoUnload:!0,enableAutoSubmission:!0,enctype:"application/json",selectors:{containerId:"videomail",containerClass:"videomail",replayClass:"replay",userMediaClass:"userMedia",visualsClass:"visuals",buttonClass:null,buttonsClass:"buttons",recordButtonClass:"record",pauseButtonClass:"pause",resumeButtonClass:"resume",previewButtonClass:"preview",recordAgainButtonClass:"recordAgain",submitButtonClass:"submit",subjectInputName:"subject",fromInputName:"from",toInputName:"to",ccInputName:"cc",bccInputName:"bcc",bodyInputName:"body",sendCopyInputName:"sendCopy",keyInputName:"videomail_key",parentKeyInputName:"videomail_parent_key",formId:null,submitButtonId:null,submitButtonSelector:null},audio:{enabled:!1,switch:!1,volume:.2,bufferSize:"auto"},video:{fps:15,limitSeconds:30,countdown:3,width:"auto",height:"auto",facingMode:"user",facingModeButton:!1,stretch:!1},image:{quality:.42,types:["webp","jpeg"]},text:{pausedHeader:"Paused",pausedHint:null,sending:"Teleporting",encoding:"Encoding",limitReached:"Limit reached",audioOff:"Audio off",audioOn:"Audio on",buttons:{record:"Record video",recordAgain:"Record again",resume:"Resume",pause:"Pause",preview:"Preview"}},notifier:{entertain:!1,entertainClass:"bg",entertainLimit:6,entertainInterval:9e3},timeouts:{userMedia:2e4,connection:1e4,pingInterval:3e4},loadUserMediaOnRecord:!1,callbacks:{adjustFormDataBeforePosting:null},defaults:{from:null,to:null,cc:null,bcc:null,subject:null,body:null},displayErrors:!0,adjustFormOnBrowserError:!1,reportErrors:!1,fakeUaString:null,version:i.version},s=(0,o.default)(a);n.default=s}).call(this)}).call(this,e("_process"))},{"../../package.json":116,"./util/addOptionsFunctions":122,"@babel/runtime/helpers/interopRequireDefault":4,_process:79}],121:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){function t(t,n){return e.defaults[n]&&!t[n]&&(t[n]=e.defaults[n]),t}function n(e,t,n){Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0})}function r(e,t){if(t&&t.body&&t.body.error){var r=t.body.error,i=new Error;return n(i,"name",r.name),n(i,"type",r.type),n(i,"message",r.message||t.statusText),n(i,"cause",r.cause),n(i,"status",r.status),n(i,"code",r.code),n(i,"errno",r.errno),n(i,"details",r.details),n(i,"stack",r.stack),i}return e}function s(t,n,s){var u="".concat(e.baseUrl,"/videomail/").concat(t,"/").concat(n,"/snapshot");(0,i.default)("get",u).type("json").set("Accept","application/json").set("Timezone-Id",a).set(o.default.SITE_NAME_LABEL,e.siteName).timeout(e.timeouts.connection).end((function(e,t){if(e){var n=r(e,t);s(n)}else{var i=t.body?t.body:null;s(null,i)}}))}function u(t,n,s,u){u||(u=s,s=null);var c={},l="".concat(e.baseUrl,"/videomail/");s&&(l+=s);var f=(0,i.default)(t,l);c[o.default.SITE_NAME_LABEL]=e.siteName,f.query(c).set("Timezone-Id",a).send(n).timeout(e.timeout).end((function(e,t){if(e){var n=r(e,t);u(n)}else{var i=t.body&&t.body.videomail?t.body.videomail:null;u(null,i,t.body)}}))}this.getByAlias=function(e,t){s("alias",e,t)},this.getByKey=function(e,t){s("key",e,t)},this.reportError=function(t,n){var a={},s="".concat(e.baseUrl,"/client-error/"),u=(0,i.default)("post",s);a[o.default.SITE_NAME_LABEL]=e.siteName,u.query(a).send(t).timeout(e.timeout).end((function(e,t){if(e){var i=r(e,t);n&&n(i)}else n&&n()}))},this.post=function(n,r){(n=function(n){return e.defaults&&(n=t(n,"from"),n=t(n,"to"),n=t(n,"cc"),n=t(n,"bcc"),n=t(n,"subject"),n=t(n,"body")),n}(n))[o.default.VERSION_LABEL]=e.version,e.callbacks.adjustFormDataBeforePosting?e.callbacks.adjustFormDataBeforePosting(n,(function(e,t){e?r(e):u("post",t,r)})):u("post",n,r)},this.put=function(e,t){u("put",e,e.key,t)},this.form=function(t,n,s){var u;switch(e.enctype){case o.default.public.ENC_TYPE_APP_JSON:u="json";break;case o.default.public.ENC_TYPE_FORM:u="form";break;default:setTimeout((function(){s(new Error("Invalid enctype given: ".concat(e.enctype)))}),0)}u&&i.default.post(n).type(u).set("Timezone-Id",a).send(t).timeout(e.timeout).end((function(e,t){if(e){var n=r(e,t);s(n)}else s(null,t)}))}};var i=r(e("superagent")),o=r(e("./constants")),a=Intl.DateTimeFormat().resolvedOptions().timeZone},{"./constants":118,"@babel/runtime/helpers/interopRequireDefault":4,superagent:104}],122:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;n.default=function(e){var t=e.audio&&e.audio.enabled;return e.hasDefinedWidth=function(){return this.video.width&&"auto"!==this.video.width},e.hasDefinedHeight=function(){return this.video.height&&"auto"!==this.video.height},e.hasDefinedDimension=function(){return this.hasDefinedWidth()||this.hasDefinedHeight()},e.hasDefinedDimensions=function(){return this.hasDefinedWidth()&&this.hasDefinedHeight()},e.getRatio=function(){var e=1,t=this.videoHeight&&this.videoWidth;return this.hasDefinedDimensions()?e=t&&(this.videoHeight<this.video.height||this.videoWidth<this.video.width)?this.videoHeight/this.videoWidth:this.video.height/this.video.width:t&&(e=this.videoHeight/this.videoWidth),e},e.isAudioEnabled=function(){return t},e.setAudioEnabled=function(e){t=e},e.isAutoPauseEnabled=function(){return this.enableAutoPause&&this.enablePause},e}},{}],123:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,t){var n,r,c,l=new a.default(t);function f(){return window.AudioContext||window.webkitAudioContext}function d(){return Boolean(f())&&Boolean(h())}function h(){if(!c){var e=f();c=new e}return c}this.init=function(e){t.debug("AudioRecorder: init()");var i=h().createGain();try{r=h().createMediaStreamSource(e)}catch(e){throw s.default.create("Webcam has no audio",e.toString(),t)}var a=t.audio.bufferSize;if("auto"===a&&(a=l.isFirefox()?512:2048),!(0,o.default)(a))throw s.default.create("Audio buffer size must be a power of two.",t);if(!t.audio.volume||t.audio.volume>1)throw s.default.create("Audio volume must be between zero and one.",t);i.gain.value=t.audio.volume,n=h().createScriptProcessor(a,u,u),r.connect(n),n.connect(h().destination),r.connect(i),i.connect(n)},this.record=function(r){t.debug("AudioRecorder: record()"),n.onaudioprocess=function(t){!function(t,n){if(e.isRecording()&&!e.isPaused()){var r=t.inputBuffer.getChannelData(0);n(new i.default(r))}}(t,r)}},this.stop=function(){t.debug("AudioRecorder: stop()"),n&&(n.onaudioprocess=void 0),r&&r.disconnect(),d()&&(h().close?h().close().then((function(){t.debug("AudioRecorder: audio context is closed"),c=null})).catch((function(e){throw s.default.create(e,t)})):c=null)},this.getSampleRate=function(){return d()?h().sampleRate:-1}};var i=r(e("audio-sample")),o=r(e("is-power-of-two")),a=r(e("./browser")),s=r(e("./videomailError")),u=1},{"./browser":124,"./videomailError":131,"@babel/runtime/helpers/interopRequireDefault":4,"audio-sample":14,"is-power-of-two":71}],124:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(e("@babel/runtime/helpers/typeof")),o=r(e("defined")),a=r(e("ua-parser-js")),s=r(e("./videomailError"));n.default=function(e){e||(e={});var t,n="http://www.mozilla.org/firefox/update/",r="https://www.microsoft.com/en-us/download/details.aspx?id=48126",u="http://www.google.com/chrome/",c="http://www.chromium.org/getting-involved/download-chromium",l=(0,o.default)(e.fakeUaString,"undefined"!=typeof window&&window.navigator&&window.navigator.userAgent,""),f=new a.default(l).getResult(),d="iOS"===f.os.name,h=parseFloat(f.browser.version),p="Chrome"===f.browser.name,m="Brave"===f.browser.name,y="Chromium"===f.browser.name,b="Firefox"===f.browser.name,g=parseFloat(f.os.version),v="Windows"===f.os.name,w="Edge"===f.browser.name||v&&g>=10,E=/Safari/.test(f.browser.name),_=/Opera/.test(f.browser.name),R=/Android/.test(f.os.name),S=p||y,A="Facebook"===f.browser.name,k=d||R,O=E&&h>=11,T=d&&g>=11,x=d&&g<11,j=e.fakeHttps||"https:"===window.location.protocol,D=S||b||R||_||w||O||T||m,M=this;function C(){var e;return(e=x?"On iPads or iPhones below iOS v11 this camera feature is missing.<br/><br/>For now, we recommend you to upgrade iOS or to use an Android device.":function(){var e;return b?e=d?"Firefox on iOS is not ready for cameras yet. Hopefully in near future ...":'Probably you need to <a href="'.concat(n,'" target="_blank">')+"upgrade Firefox</a> to fix this.":p?e=d?"Use Safari instead. Apple doesn't give Chrome access to iPhone cameras (booo).":'Probably you need to <a href="'.concat(u,'" target="_blank">')+"upgrade Chrome</a> to fix this.":y?e='Probably you need to <a href="'.concat(c,'" target="_blank">')+"upgrade Chromium</a> to fix this.":O?e="Probably you need to shut down Safari and restart it, this for correct webcam access.":E&&(e="Safari below version 11 has no webcam support.<br/>Better upgrade Safari or pick"+' <a href="'.concat(u,'" target="_blank">Chrome</a>,')+' <a href="'.concat(n,'" target="_blank">Firefox</a> or Android.')),e}())||(e=M.isChromeBased()||M.isFirefox()||E?"For the webcam feature, your browser needs an upgrade.":A?"Hence we recommend you to use a real browser like "+'<a href="'.concat(u,'" target="_blank">Chrome</a>, ')+'<a href="'.concat(n,'" target="_blank">Firefox</a> or ')+'<a href="'.concat(r,'" target="_blank">Edge</a>.'):"Hence we recommend you to use either "+'<a href="'.concat(u,'" target="_blank">Chrome</a>, ')+'<a href="'.concat(n,'" target="_blank">Firefox</a>, ')+'<a href="'.concat(r,'" target="_blank">Edge</a> or Android.')),e}function N(e,t){var n;return e&&e.canPlayType&&(n=e.canPlayType("video/".concat(t))),""!==n&&n}this.canRecord=function(){var e="undefined"!=typeof navigator,t=!1;e&&navigator.mediaDevices&&navigator.mediaDevices.getUserMedia?t=!0:t="function"===(e&&(0,i.default)(navigator.getUserMedia_));return t},this.checkRecordingCapabilities=function(){var t;if(j){if(!D||!this.canRecord()){var n,r=[];x?r.push(s.default.IOS_PROBLEM):r.push(s.default.BROWSER_PROBLEM),n=D?k?A?"Sorry, the Facebook app cannot record from your mobile camera":"Sorry, your browser cannot record from your mobile camera":"Sorry, your browser cannot record from webcams":k?"Sorry, your browser is unable to use your mobile camera":"Sorry, your browser is unable to use webcams",x&&(e.reportErrors=!1),t=s.default.create(n,C(),e,{classList:r})}}else t=s.default.create("Sorry, your page is insecure","Please switch to HTTPS to ensure all is encrypted.",e,{classList:[s.default.BROWSER_PROBLEM]});return t},this.checkBufferTypes=function(){var t;return"undefined"==typeof window||void 0===window.atob?t=s.default.create("atob is not supported",e):void 0===window.ArrayBuffer?t=s.default.create("ArrayBuffers are not supported",e):void 0===window.Uint8Array&&(t=s.default.create("Uint8Arrays are not supported",e)),t},this.getVideoType=function(e){return!t&&e&&(N(e,"mp4")?t="mp4":N(e,"webm")&&(t="webm")),"webm"!==t&&"mp4"!==t&&(t="mp4"),t&&""!==t||(t="mp4"),t},this.getNoAccessIssue=function(){var t;return t=this.isChromeBased()?"Click on the allow button to grant access to your webcam":this.isFirefox()?"Please grant Firefox access to your webcam":"Your system does not let your browser access your webcam",s.default.create("Unable to access webcam",t,e)},this.isChromeBased=function(){return S},this.isFirefox=function(){return b},this.isEdge=function(){return w},this.isAndroid=function(){return R},this.isMobile=function(){return"mobile"===f.device.type},this.isOkSafari=function(){return O},this.isIOS=function(){return d},this.getUsefulData=function(){return{browser:f.browser,cpu:f.cpu.architecture?f.cpu:void 0,device:f.device.type?f.device:void 0,engine:f.engine,os:f.os.name&&f.os.version?f.os:void 0}}}},{"./videomailError":131,"@babel/runtime/helpers/interopRequireDefault":4,"@babel/runtime/helpers/typeof":10,defined:30,"ua-parser-js":110}],125:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new a.default(e),n=e.logger||console,r=e.selectors&&e.selectors.containerId||"undefined container id",s=[];function u(t,n){var r=o.default.apply(void 0,(0,i.default)(n));return s.length>e.logStackSize&&s.pop(),s.push("[".concat(t,"] ").concat(r)),r}function c(e){return"#".concat(r," [").concat((new Date).toLocaleTimeString(),"] > ").concat(e)}this.debug=function(){var r=[].slice.call(arguments,0);r[0]=c(r[0]);var i=u("debug",r);e.verbose&&(t.isFirefox()?n.debug(i):n.groupCollapsed?(n.groupCollapsed(i),n.trace("Trace"),n.groupEnd()):n.debug?n.debug(i):console.log(i))},this.error=function(){var e=[].slice.call(arguments,0);e[0]=c(e[0]),n.error(u("error",e))},this.warn=function(){var e=[].slice.call(arguments,0);e[0]=c(e[0]),n.warn(u("warn",e))},this.getLines=function(){return s}};var i=r(e("@babel/runtime/helpers/toConsumableArray")),o=r(e("format-util")),a=r(e("./browser"))},{"./browser":124,"@babel/runtime/helpers/interopRequireDefault":4,"@babel/runtime/helpers/toConsumableArray":7,"format-util":47}],126:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,t){this.emit=function(n){var r,u=Array.prototype.slice.call(arguments,0);if(!n)throw s.default.create("You cannot emit without an event.",e);if(n===a.default.ERROR){var c=u[1];c=s.default.create(c,e),u[1]=c}e.debug&&("removeListener"!==n&&"newListener"!==n&&(u[1]&&(r=u.slice(1)),r?e.debug("".concat(t," emits ").concat(n," with ").concat((0,o.default)(r))):e.debug("".concat(t," emits ").concat(n))));return i.default.emit.apply(i.default,u)},this.on=function(e,t){return i.default.on(e,t)},this.once=function(e,t){return i.default.once(e,t)},this.listeners=function(e){return i.default.listeners(e)},this.removeListener=function(e,t){return i.default.removeListener(e,t)},this.removeAllListeners=function(){i.default.removeAllListeners()}};var i=r(e("despot")),o=r(e("safe-json-stringify")),a=r(e("./../events")),s=r(e("./videomailError"))},{"./../events":119,"./videomailError":131,"@babel/runtime/helpers/interopRequireDefault":4,despot:31,"safe-json-stringify":99}],127:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=e("filesize"),o=r(e("humanize-duration"));n.default={filesize:function(e,t){return(0,i.filesize)(e,{round:t})},toTime:function(e){return(0,o.default)(e)}}},{"@babel/runtime/helpers/interopRequireDefault":4,filesize:46,"humanize-duration":62}],128:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;n.default=["loadstart","suspend","progress","abort","emptied","stalled","pause","loadeddata","waiting","playing","canplay","canplaythrough","seeking","seeked","ended","ratechange","durationchange","volumechange"]},{}],129:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,t){if(null===e)return"null";if(void 0===e)return"undefined";if("string"==typeof e)return e;if(Array.isArray(e))return function(e){if(e&&e.length>0){var t=[];return e.forEach((function(e){e&&t.push((0,o.default)(e))})),a+t.join(s)}}(e);if("object"===(0,i.default)(e))return function(e,t){var n,r=Object.getOwnPropertyNames(e),i=t&&t.excludes||[],u=[];if(i.push("stack"),r&&r.length>0){var c=!1;r.forEach((function(t){i&&(c=i.indexOf(t)>=0),!c&&e[t]&&u.push((0,o.default)(e[t]))}))}1===u.length?n=u.join():u.length>1&&(n=a+u.join(s));return n}(e,t);return e.toString()};var i=r(e("@babel/runtime/helpers/typeof")),o=r(e("safe-json-stringify")),a="- ",s="<br/>".concat(a)},{"@babel/runtime/helpers/interopRequireDefault":4,"@babel/runtime/helpers/typeof":10,"safe-json-stringify":99}],130:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.screen||(e.screen={});(0,i.default)("native"),t.mediaDevices&&t.mediaDevices.getUserMedia||(t.getUserMedia_=t.getUserMedia||t.webkitGetUserMedia||t.mozGetUserMedia||t.msGetUserMedia);!e.AudioContext&&e.webkitAudioContext&&(e.AudioContext=e.webkitAudioContext);e.URL||(e.URL=e.webkitURL||e.mozURL||e.msURL);t.connection||(t.connection=t.mozConnection||t.webkitConnection);var n,r=["debug","groupCollapsed","groupEnd","error","exception","info","log","trace","warn"],o={};e.console?o=e.console:e.console=function(){};var a=r.length;for(;a--;)o[n=r[a]]||(o[n]=function(){})},e("classlist.js");var i=r(e("request-frame"))},{"@babel/runtime/helpers/interopRequireDefault":4,"classlist.js":23,"request-frame":97}],131:[function(e,t,n){(function(t){(function(){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(e("@babel/runtime/helpers/typeof")),o=r(e("./../resource")),a=r(e("create-error")),s=r(e("safe-json-stringify")),u=r(e("./pretty")),c="Videomail Error",l=(0,a.default)(Error,c,{title:void 0,message:void 0,explanation:void 0,logLines:void 0,siteName:void 0,cookie:void 0,location:void 0,err:void 0,promise:void 0,cause:void 0,reason:void 0,browser:void 0,cpu:void 0,device:void 0,engine:void 0,os:void 0,screen:void 0,orientation:void 0}),f=function(e){return(0,u.default)(e,{excludes:["stack"]})};l.PERMISSION_DENIED="PERMISSION_DENIED",l.NOT_ALLOWED_ERROR="NotAllowedError",l.NOT_CONNECTED="Not connected",l.DOM_EXCEPTION="DOMException",l.STARTING_FAILED="Starting video failed",l.MEDIA_DEVICE_NOT_SUPPORTED="MediaDeviceNotSupported",l.BROWSER_PROBLEM="browser-problem",l.WEBCAM_PROBLEM="webcam-problem",l.IOS_PROBLEM="ios-problem",l.OVERCONSTRAINED="OverconstrainedError",l.NOT_FOUND_ERROR="NotFoundError",l.NOT_READABLE_ERROR="NotReadableError",l.SECURITY_ERROR="SecurityError",l.TRACK_START_ERROR="TrackStartError",l.INVALID_STATE_ERROR="InvalidStateError",l.create=function(n,r,a,u){var d;if(n&&n.name===c)return n;!a&&r&&(a=r,r=void 0),a||(a={}),u||(u={});var h,p,m=a&&a.isAudioEnabled&&a.isAudioEnabled(),y=u.classList||[],b=new(0,e("./browser").default)(a);switch("object"===(0,i.default)(n)?n.name===l.TRACK_START_ERROR?h=l.TRACK_START_ERROR:n.name===l.SECURITY_ERROR?h=l.SECURITY_ERROR:8===n.code&&n.name===l.NotFoundError?h=l.NotFoundError:35===n.code||n.name===l.NOT_ALLOWED_ERROR?h=l.NOT_ALLOWED_ERROR:1===n.code&&1===n.PERMISSION_DENIED?h=l.PERMISSION_DENIED:n.constructor&&n.constructor.name===l.DOM_EXCEPTION?h=n.name===l.NOT_READABLE_ERROR?l.NOT_READABLE_ERROR:l.DOM_EXCEPTION:n.constructor&&n.constructor.name===l.OVERCONSTRAINED?h=l.OVERCONSTRAINED:n.explanation===l.STARTING_FAILED?h=n.explanation:n.name?h=n.name:"error"===n.type&&0===n.target.bufferedAmount&&(h=l.NOT_CONNECTED):h=n===l.NOT_CONNECTED?l.NOT_CONNECTED:n,h){case l.SECURITY_ERROR:p="The operation was insecure",r="Probably you have disallowed Cookies for this page?",y.push(l.BROWSER_PROBLEM);break;case l.OVERCONSTRAINED:p="Invalid webcam constraints",r=n.constraint?"width"===n.constraint?"Your webcam does not meet the width requirement.":"Unmet constraint: ".concat(n.constraint):n.toString();break;case"MediaDeviceFailedDueToShutdown":p="Webcam is shutting down",r="This happens your webcam is already switching off and not giving you permission to use it.";break;case"SourceUnavailableError":p="Source of your webcam cannot be accessed",r="Probably it is locked from another process or has a hardware error.",n.explanation&&(n.explanation+=" Details: ".concat(n.explanation));break;case l.NOT_FOUND_ERROR:case"NO_DEVICES_FOUND":m?(p="No webcam nor microphone found",r="Your browser cannot find a webcam with microphone attached to your machine."):(p="No webcam found",r="Your browser cannot find a webcam attached to your machine."),y.push(l.WEBCAM_PROBLEM);break;case"PermissionDismissedError":p="Ooops, you didn't give me any permissions?",r="Looks like you skipped the webcam permission dialogue.<br/>Please grant access next time the dialogue appears.",y.push(l.WEBCAM_PROBLEM);break;case l.NOT_ALLOWED_ERROR:case l.PERMISSION_DENIED:case"PermissionDeniedError":p="Permission denied",r="Cannot access your webcam. This can have two reasons:<br/>a) you blocked access to webcam; or<br/>b) your webcam is already in use.",y.push(l.WEBCAM_PROBLEM);break;case"HARDWARE_UNAVAILABLE":p="Webcam is unavailable",r="Maybe it is already busy in another window?",(b.isChromeBased()||b.isFirefox())&&(r+=" Or you have to allow access above?"),y.push(l.WEBCAM_PROBLEM);break;case l.NOT_CONNECTED:p="Unable to connect",r="Either the videomail server or your connection is down. Trying to reconnect every few seconds …";break;case"NO_VIDEO_FEED":p="No video feed found!",r="Your webcam is already used in another browser.",y.push(l.WEBCAM_PROBLEM);break;case l.STARTING_FAILED:p="Starting video failed",r="Most likely this happens when the webcam is already active in another browser",y.push(l.WEBCAM_PROBLEM);break;case"DevicesNotFoundError":p="No available webcam could be found",r="Looks like you do not have any webcam attached to your machine; or the one you plugged in is already used.",y.push(l.WEBCAM_PROBLEM);break;case l.NOT_READABLE_ERROR:case l.TRACK_START_ERROR:p="No access to webcam",r="A hardware error occurred which prevented access to your webcam",y.push(l.WEBCAM_PROBLEM);break;case l.INVALID_STATE_ERROR:p="Invalid state",r="Video recording stream from your webcam already has finished",y.push(l.WEBCAM_PROBLEM);break;case l.DOM_EXCEPTION:switch(n.code){case 8:p="Requested webcam not found",r="A webcam is needed but could not be found",y.push(l.WEBCAM_PROBLEM);break;case 9:var g="https:".concat(window.location.href.substring(window.location.protocol.length));p="Security upgrade needed",r='Click <a href="'.concat(g,'">here</a> to switch to HTTPs which is more safe ')+" and enables encrypted videomail transfers.",y.push(l.BROWSER_PROBLEM);break;case 11:p="Invalid State",r="The object is in an invalid, unusable state",y.push(l.BROWSER_PROBLEM);break;default:p="DOM Exception",r=f(n),y.push(l.BROWSER_PROBLEM)}break;case l.MEDIA_DEVICE_NOT_SUPPORTED:p="Media device not supported",r=f(n);break;default:var v=r;if(r&&"object"===(0,i.default)(r)&&(r=f(r)),!r&&v&&(r=v.explanation?v.explanation:"Inspected: ".concat((0,s.default)(v))),n)if("string"==typeof n)p=n;else if(n.message&&(p=f(n.message)+" (pretty)"),n.explanation&&(r?r+=";<br/>".concat(f(n.explanation)):r=f(n.explanation)),n.details){var w=f(n.details);r?w&&(r+=";<br/>".concat(w)):r=w}p||(h&&(p=h+" (weird)"),!r&&n&&(r=f(n)),f(p)===r&&(r=void 0))}var E=null;a.logger&&a.logger.getLines&&(E=a.logger.getLines()),(a&&a.debug||console.log)("VideomailError: create()",p,r||"(no explanation set)");var _,R=b.getUsefulData(),S=t.document.cookie.split("; "),A={title:"videomail-client error",message:p,explanation:r,logLines:E,siteName:a.siteName,browser:R.browser,cpu:R.cpu,device:R.device,engine:R.engine,os:R.os,location:window.location.href,cookie:S.length>0?S.join(",\n"):void 0,screen:[screen.width,screen.height,screen.colorDepth].join("×"),orientation:"string"==typeof screen.orientation?screen.orientation:screen.orientation.type.toString(),errNo:null==n?void 0:n.errno,errCode:null==n?void 0:n.code,errName:null==n?void 0:n.name,errType:null==n?void 0:n.type,errConstraint:null==n?void 0:n.constraint,errConstructorName:null==n||null===(d=n.constructor)||void 0===d?void 0:d.name},k=new l(n instanceof Error?n:p,A),O=!1;function T(e){return y.indexOf(e)>=0}return a.reportErrors&&(O="function"==typeof a.reportErrors?a.reportErrors(k):a.reportErrors),O&&(_=new o.default(a)),_&&_.reportError(k,(function(e){e&&console.error("Unable to report error",e)})),k.getClassList=function(){return y},k.removeDimensions=function(){return T(l.IOS_PROBLEM)||b.isMobile()},k.hideButtons=function(){return T(l.BROWSER_PROBLEM)||u.browserProblem||T(l.IOS_PROBLEM)},k.hideForm=function(){return T(l.IOS_PROBLEM)},k};n.default=l}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./../resource":121,"./browser":124,"./pretty":129,"@babel/runtime/helpers/interopRequireDefault":4,"@babel/runtime/helpers/typeof":10,"create-error":27,"safe-json-stringify":99}],132:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(e("contains")),o=r(e("hidden")),a=r(e("hyperscript")),s=r(e("inherits")),u=r(e("../events")),c=r(e("../util/eventEmitter")),l=function(e,t){c.default.call(this,t,"Buttons");var n,r,s,l,f,d,h,p,m,y,b=this,g=t.debug;function v(e){e&&!Array.isArray(e)&&(e=[e]),e&&e.forEach((function(e){(0,o.default)(e,!0)}))}function w(e){e&&!Array.isArray(e)&&(e=[e]),e&&e.forEach((function(e){(0,o.default)(e,!1)}))}function E(e){var t=e&&!0;return e&&!Array.isArray(e)&&(e=[e]),e&&e.forEach((function(e){t&&(t=e&&!(0,o.default)(e))})),t}function _(e){e&&!Array.isArray(e)&&(e=[e]),e&&e.forEach((function(e){e&&("INPUT"===e.tagName||"BUTTON"===e.tagName?e.disabled=!0:e.classList.add("disabled"))}))}function R(e){e&&!Array.isArray(e)&&(e=[e]),e&&e.forEach((function(e){e&&("INPUT"===e.tagName||"BUTTON"===e.tagName?e.disabled=!1:e.classList.remove("disabled"))}))}function S(e,t,n,r){return r&&_(e),n?e.type=n:e.type||(e.type="button"),!t&&v(e),e}function A(e,t){e.onclick=function(e){e&&e.preventDefault();try{t({event:e})}catch(e){b.emit(u.default.ERROR,e)}}}function k(e){var t,r;return e.id&&(t=document.getElementById(e.id)),t||(t=(0,a.default)("input#".concat(e.id),{type:"radio",name:e.name,value:e.value,checked:e.checked}),r=(0,a.default)("span.radioGroup",t,(0,a.default)("label",{htmlFor:e.id},e.label)),h&&(0,i.default)(n,h)?n.insertBefore(r,h):n.appendChild(r)),e.changeHandler&&(t.onchange=e.changeHandler),_(t),t}function O(e,r,o,s,u,c,l){var f,d=!(arguments.length>7&&void 0!==arguments[7])||arguments[7];return(f=u?document.getElementById(u):l?document.querySelector(l):n.querySelector(".".concat(e)))?f=S(f,s,c,d):(t.selectors.buttonClass&&(e+=".".concat(t.selectors.buttonClass)),(f=S(f=(0,a.default)("button.".concat(e)),s,c,d)).innerHTML=r,h&&(0,i.default)(n,h)?n.insertBefore(f,h):n.appendChild(f)),o&&A(f,o),f}function T(e){E(d)||e.paused||w(r),e.paused||(_(f),v(f)),t.enableAutoValidation||R(h)}function x(){v(r),v(d),s&&(w(s),R(s)),R(f),w(f)}function j(){_(d),e.beginWaiting(),e.recordAgain()}function D(){e.submit()}function M(t){_(r),e.record(t)}function C(){g("Buttons: initEvents()"),b.on(u.default.USER_MEDIA_READY,(function(e){e.switchingFacingMode||function(e){T(e),E(r)&&!e.recordWhenReady&&R(r),t.enableAutoValidation&&_(h),e.recordWhenReady||(E(p)&&R(p),E(m)&&R(m))}(e)})).on(u.default.PREVIEW,(function(){v(r),v(f),_(p),_(m),w(d),R(d),t.enableAutoValidation||R(h)})).on(u.default.PAUSED,(function(){b.adjustButtonsForPause()})).on(u.default.RECORDING,(function(e){!function(e){e>1?x():(_(m),_(p),_(d),_(r))}(e)})).on(u.default.FIRST_FRAME_SENT,(function(){x()})).on(u.default.RESUMING,(function(){v(l),v(r),s&&(R(s),w(s))})).on(u.default.STOPPING,(function(){_(f),_(r),v(s),v(l)})).on(u.default.COUNTDOWN,(function(){_(r),_(m),_(p)})).on(u.default.SUBMITTING,(function(){g("Buttons: onSubmitting()"),_(h),_(d)})).on(u.default.RESETTING,(function(){_(h),b.reset()})).on(u.default.INVALID,(function(){t.enableAutoValidation&&_(h)})).on(u.default.VALID,(function(){t.enableAutoValidation&&R(h)})).on(u.default.SUBMITTED,(function(){_(f),_(d),_(r),_(h)})).on(u.default.HIDE,(function(){v(r),v(f),v(d),v(l),v(p),v(m)})).on(u.default.FORM_READY,(function(e){T(e)})).on(u.default.REPLAY_SHOWN,(function(){b.hide()})).on(u.default.GOING_BACK,(function(){v(d),w(r),w(h)})).on(u.default.ENABLING_AUDIO,(function(){g("Buttons: onEnablingAudio()"),_(r),_(p),_(m)})).on(u.default.DISABLING_AUDIO,(function(){g("Buttons: onDisablingAudio()"),_(r),_(p),_(m)})).on(u.default.STARTING_OVER,(function(){w(h)})).on(u.default.CONNECTED,(function(){t.loadUserMediaOnRecord&&E(r)&&R(r)})).on(u.default.DISCONNECTED,(function(){_(r),_(p),_(m)})).on(u.default.ERROR,(function(e){e.hideButtons&&e.hideButtons()&&t.adjustFormOnBrowserError&&b.hide()}))}this.enableSubmit=function(){R(h)},this.adjustButtonsForPause=function(){b.isCountingDown()||(s&&v(s),w(l),R(l),v(r),w(f),R(f))},this.reset=function(){t.debug("Buttons: reset()"),_(s),_(l),_(r),_(f),_(d),_(p),_(m)},this.isRecordAgainButtonEnabled=function(){return!d.disabled},this.isReady=function(){return!!r&&this.isRecordButtonEnabled()},this.isRecordButtonEnabled=function(){return!r.disabled},this.setSubmitButton=function(e){h=e},this.getSubmitButton=function(){return h},this.build=function(){(n=e.querySelector(".".concat(t.selectors.buttonsClass)))||(n=(0,a.default)("div.".concat(t.selectors.buttonsClass)),e.appendChild(n)),t.disableSubmit||(h?_(h):h=O(t.selectors.submitButtonClass,"Submit",null,!0,t.selectors.submitButtonId,"submit",t.selectors.submitButtonSelector,t.enableAutoValidation),!e.hasForm()&&h&&A(h,D)),r=O(t.selectors.recordButtonClass,t.text.buttons.record,M,!1),t.enablePause&&(s=O(t.selectors.pauseButtonClass,t.text.buttons.pause,e.pause,!1)),t.enablePause&&(l=O(t.selectors.resumeButtonClass,t.text.buttons.resume,e.resume,!1)),f=O(t.selectors.previewButtonClass,t.text.buttons.preview,e.stop,!1),d=O(t.selectors.recordAgainButtonClass,t.text.buttons.recordAgain,j,!1),t.audio&&t.audio.switch&&(m=k({id:"audioOffOption",name:"audio",value:"off",label:t.text.audioOff,checked:!t.isAudioEnabled(),changeHandler:function(){e.disableAudio()}}),p=k({id:"audioOnOption",name:"audio",value:"on",label:t.text.audioOn,checked:t.isAudioEnabled(),changeHandler:function(){e.enableAudio()}})),!y&&C(),y=!0},this.unload=function(){y&&(b.reset(),g("Buttons: unload()"),b.removeAllListeners(),y=!1)},this.hide=function(e){v(n),e&&e.deep&&(v(r),v(s),v(l),v(f),v(d),v(h),v(p),v(m))},this.show=function(){w(n)},this.isCountingDown=function(){return e.isCountingDown()}};(0,s.default)(l,c.default);n.default=l},{"../events":119,"../util/eventEmitter":126,"@babel/runtime/helpers/interopRequireDefault":4,contains:25,hidden:61,hyperscript:63,inherits:66}],133:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(e("@babel/runtime/helpers/defineProperty")),o=r(e("document-visibility")),a=r(e("hidden")),s=r(e("insert-css")),u=r(e("safe-json-stringify")),c=r(e("inherits")),l=r(e("../../styles/css/main.min.css.js")),f=r(e("../events")),d=r(e("../resource")),h=r(e("../util/eventEmitter")),p=r(e("../util/videomailError")),m=r(e("./buttons")),y=r(e("./dimension")),b=r(e("./form")),g=r(e("./optionsWrapper")),v=r(e("./visuals")),w=function(e){h.default.call(this,e,"Container");var t,n,r,c=this,w=(0,o.default)(),E=new v.default(this,e),_=new m.default(this,e),R=new d.default(e),S=document.querySelector("html"),A=e.debug,k=!1,O=!1,T=!1;function x(){return t&&"FORM"===t.tagName?t:e.selectors.formId?document.getElementById(e.selectors.formId):function(){if(t)return t.closest("form")}()}function j(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];A("Container: initEvents (playerOnly = ".concat(t,")")),e.enableAutoUnload&&window.addEventListener("beforeunload",(function(e){c.unload(e)}),{once:!0}),t||w.onChange((function(t){n&&(t?(e.isAutoPauseEnabled()&&c.isCountingDown()&&c.resume(),c.emit(f.default.VISIBLE)):(e.isAutoPauseEnabled()&&(c.isCountingDown()||c.isRecording())&&c.pause("document invisible"),c.emit(f.default.INVISIBLE)))})),e.enableSpace&&(t||window.addEventListener("keypress",(function(t){var n=t.target.tagName;t.target.isContentEditable||"true"===t.target.contentEditable||!0===t.target.contentEditable||"INPUT"===n||"TEXTAREA"===n||32===t.code&&(t.preventDefault(),e.enablePause?E.pauseOrResume():E.recordOrStop())}))),c.on(f.default.ERROR,(function(t){!function(t){k=!0,t.stack?e.logger.error(t.stack):e.logger.error(t),e.displayErrors?E.error(t):E.reset()}(t),C(t),t.removeDimensions&&t.removeDimensions()&&M()})),t||c.on(f.default.LOADED_META_DATA,(function(){D()}))}function D(){if(e.video.stretch)M();else if(t){var n=E.getRecorderWidth(!0);if(n<1)throw p.default.create("Recorder width cannot be less than 1!",e);t.style.width="".concat(n,"px")}}function M(){t&&(t.style.width="auto")}function C(e){E.unload(e),_.unload(),r&&(r.unload(),r=void 0),c.endWaiting()}function N(t,n,r,i){r&&""!==r||(r=e.baseUrl),n&&e.submitWithVideomail&&(t.videomail=n.videomail),R.form(t,r,i)}function I(e,t,n,r,i){c.endWaiting(),e?c.emit(f.default.ERROR,e):(O=!0,r&&i&&i.body&&Object.keys(i.body).forEach((function(e){r[e]=i.body[e]})),c.emit(f.default.SUBMITTED,n,r||i),i&&"text/html"===i.type&&i.text&&(document.body.innerHTML=i.text))}function L(e){return e&&"POST"===e.toUpperCase()}!function(){if(e.hasDefinedWidth()&&e.video.width%2!=0)throw p.default.create("Width must be divisible by two.",e);if(e.hasDefinedHeight()&&e.video.height%2!=0)throw p.default.create("Height must be divisible by two.",e)}(),this.buildForm=function(){if(!r){var t=x();if(t){var n=(r=new b.default(c,t,e)).findSubmitButton();n&&_.setSubmitButton(n),r.build()}}},this.addPlayerDimensions=function(e){try{if(!e)throw new Error("Videomail data is missing for attaching player dimensions");var t=c.getReplay().getParentElement();return e.playerHeight=c.calculateHeight({responsive:!0,videoWidth:e.width,ratio:e.height/e.width},t),e.playerWidth=c.calculateWidth({responsive:!0,videoHeight:e.playerHeight,ratio:e.height/e.width}),e}catch(e){c.emit(f.default.ERROR,e)}},this.limitWidth=function(n){return y.default.limitWidth(t,n,e)},this.limitHeight=function(t){return y.default.limitHeight(t,e)},this.calculateWidth=function(t){return y.default.calculateWidth(g.default.merge(e,t))},this.calculateHeight=function(n,r){return r||(r=t||document.body),y.default.calculateHeight(r,g.default.merge(e,n))},this.hasElement=function(){return Boolean(t)},this.build=function(){var r=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=arguments.length>1?arguments[1]:void 0;A("Container: build (playerOnly = ".concat(r).concat(i?', replayParentElement="'.concat(i,'"'):"",")"));try{var o;if(e.insertCss&&(0,s.default)(l.default,{prepend:!0}),!(t=document.getElementById(e.selectors.containerId))&&i)"string"==typeof i&&(i=document.getElementById(i)),null!==(o=i)&&void 0!==o&&o.classList.contains(e.selectors.containerClass)&&(t=i);!n&&j(r),D(),c.buildForm(),function(){var n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=arguments.length>1?arguments[1]:void 0;A("Container: buildChildren (playerOnly = ".concat(n).concat(r?', replayParentElement="'.concat(r,'"'):"",")")),t&&t.classList.add(e.selectors.containerClass),n||_.build(),E.build(n,r)}(r,t?void 0:i),k?A("Container: building failed due to an error."):(A("Container: built."),n=!0,c.emit(f.default.BUILT))}catch(e){c.emit(f.default.ERROR,e)}},this.getSubmitButton=function(){return _.getSubmitButton()},this.querySelector=function(e){if(t)return t.querySelector(e)},this.beginWaiting=function(){S.classList&&S.classList.add("wait")},this.endWaiting=function(){S.classList&&S.classList.remove("wait")},this.appendChild=function(e){t&&t.appendChild(e)},this.insertBefore=function(e,n){t&&t.insertBefore(e,n)},this.unload=function(e){try{if(!n)return;A("Container: unload(".concat(e?(0,u.default)(e):"",")")),c.emit(f.default.UNLOADING),C(e),c.removeAllListeners(),n=O=!1}catch(e){c.emit(f.default.ERROR,e)}},this.show=function(){if(t&&((0,a.default)(t,!1),E.show(),!k)){var e=c.isPaused();e&&_.adjustButtonsForPause(),_.show(),c.isReplayShown()?c.emit(f.default.PREVIEW):c.emit(f.default.FORM_READY,{paused:e})}},this.hide=function(){A("Container: hide()"),k=!1,c.isRecording()&&c.pause(),E.hide(),O&&(_.hide(),(0,a.default)(t,!0))},this.startOver=function(e){try{c.emit(f.default.STARTING_OVER),O=!1,r.show(),E.back(e,(function(){e&&e.keepHidden?c.enableForm():c.show(e)}))}catch(e){c.emit(f.default.ERROR,e)}},this.showReplayOnly=function(){k=!1,c.isRecording()&&c.pause(),E.showReplayOnly(),O&&_.hide()},this.isNotifying=function(){return E.isNotifying()},this.isPaused=function(){return E.isPaused()},this.pause=function(e){E.pause(e)},this.validate=function(t,n){var o=!0,a=!0;if(e.enableAutoValidation?n?o=n:c.isNotifying()?o=!1:E.isConnected()?o=E.isUserMediaLoaded()||E.isReplayShown():E.isConnecting()&&(o=!1):(o=!1,T=!0),o){var s,u=null==t||null===(s=t.target)||void 0===s?void 0:s.name;u?c.emit(f.default.VALIDATING,{targetName:u}):c.emit(f.default.VALIDATING,t);var l,d,h=E.validate()&&_.isRecordAgainButtonEnabled();if(r){var p=r.getInvalidElement();if(p?(a=!1,l='Input "'.concat(p.name,'" seems wrong 🤔'),d=(0,i.default)({},p.name,p.value)):E.isHidden()||h||(_.isReady()||c.isRecording()||c.isPaused()||c.isCountingDown())&&(a=!1,l="Don't forget to record a video 😉",d={key:void 0}),a){var m,y,b,g=r.getRecipients(),v="to"in g,w="cc"in g,R="bcc"in g,S=(null===(m=g.to)||void 0===m?void 0:m.length)>0,A=(null===(y=g.cc)||void 0===y?void 0:y.length)>0,k=(null===(b=g.bcc)||void 0===b?void 0:b.length)>0;v?S||(w&&R?A||k||(a=!1):w?A||(a=!1):R&&k||(a=!1)):w&&(A||R&&!k&&(a=!1)),a||(l="At least one recipient is required")}}else a=h;a?c.emit(f.default.VALID):d?c.emit(f.default.INVALID,l,d):c.emit(f.default.INVALID,l),T=a}return a},this.disableForm=function(e){r&&r.disable(e)},this.enableForm=function(e){r&&r.enable(e)},this.hasForm=function(){return Boolean(r)},this.submitAll=function(t,n,i){A("Container: submitAll(".concat(n,': "').concat(i,'")'));var o=L(n);function a(){c.beginWaiting(),c.disableForm(!0),c.emit(f.default.SUBMITTING)}Boolean(t[e.selectors.keyInputName])?(a(),function(e,t,n){var i=r.transformFormData(e);L(t)||!t?(i.recordingStats=E.getRecordingStats(),i.width=E.getRecorderWidth(!0),i.height=E.getRecorderHeight(!0),navigator.connection&&(i.connection={downlink:"".concat(navigator.connection.downlink," Mbit/s"),effectiveType:navigator.connection.effectiveType,rtt:navigator.connection.rtt,type:navigator.connection.type}),R.post(i,n)):function(e){return e&&"PUT"===e.toUpperCase()}(t)&&R.put(i,n)}(t,n,(function(e,n,r){e?I(e,0,n,r):o?N(t,r,i,(function(e,t){I(e,0,n,r,t)})):I(null,0,n,r)}))):e.enableAutoSubmission&&(a(),N(t,null,i,(function(e,t){I(e,0,null,null,t)})))},this.isBuilt=function(){return n},this.isReplayShown=function(){return E.isReplayShown()},this.isDirty=function(){var e=!1;return r&&(E.isRecorderUnloaded()||O?e=!1:(c.isReplayShown()||c.isPaused())&&(e=!0)),e},this.getReplay=function(){return E.getReplay()},this.isOutsideElementOf=function(e){return e.parentNode!==t&&e!==t},this.hideForm=function(e){r&&r.hide(),_&&_.hide(e)},this.loadForm=function(e){r&&(r.loadVideomail(e),c.validate())},this.enableAudio=function(){e.setAudioEnabled(!0),c.emit(f.default.ENABLING_AUDIO)},this.disableAudio=function(){e.setAudioEnabled(!1),c.emit(f.default.DISABLING_AUDIO)},this.submit=function(){A("Container: submit()"),T&&r&&r.doTheSubmit()},this.isCountingDown=E.isCountingDown.bind(E),this.isRecording=E.isRecording.bind(E),this.record=E.record.bind(E),this.resume=E.resume.bind(E),this.stop=E.stop.bind(E),this.recordAgain=E.recordAgain.bind(E)};(0,c.default)(w,h.default);n.default=w},{"../../styles/css/main.min.css.js":148,"../events":119,"../resource":121,"../util/eventEmitter":126,"../util/videomailError":131,"./buttons":132,"./dimension":134,"./form":135,"./optionsWrapper":136,"./visuals":137,"@babel/runtime/helpers/defineProperty":3,"@babel/runtime/helpers/interopRequireDefault":4,"document-visibility":32,hidden:61,inherits:66,"insert-css":67,"safe-json-stringify":99}],134:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(e("number-is-integer")),o=r(e("./../util/videomailError"));function a(e,t){if(t.hasDefinedHeight()&&(e=e?Math.min(t.video.height,e):t.video.height),(0,i.default)(e)&&e<1)throw o.default.create("Got a video height less than 1 (".concat(e,") while figuring out the minimum!"),t);return e}n.default={limitWidth:function(e,t,n){if(!e)return t;var r,a=function(e){var t=0,n=e.getBoundingClientRect();return n&&(t=n.right-n.left),t<1&&(t=(n=document.body.getBoundingClientRect()).right-n.left),t}(e);if(r=t?a>0&&a<t?a:t:a,(0,i.default)(r)&&r<1)throw o.default.create("Limited width cannot be less than 1!",n);return r},limitHeight:function(e,t){if((0,i.default)(e)&&e<1)throw o.default.create("Passed limit-height argument cannot be less than 1!",t);var n=Math.min(e,document.documentElement.clientHeight);if(n<1)throw o.default.create("Limited height cannot be less than 1!",t);return n},calculateWidth:function(e){var t=e.videoHeight||null,n=e.ratio||e.getRatio();if(t=a(t,e),e.responsive&&(t=this.limitHeight(t,e)),(0,i.default)(t)&&t<1)throw o.default.create("Height cannot be smaller than 1 when calculating width.",e);var r=parseInt(t/n);if(r<1)throw o.default.create("Calculated width cannot be smaller than 1!",e);return r},calculateHeight:function(e,t){var n,r=t.videoWidth||null,s=t.ratio||t.getRatio();if(t.hasDefinedWidth()&&(r=t.video.width),(0,i.default)(r)&&r<1)throw o.default.create("Unable to calculate height when width is less than 1.",t);if(t.responsive&&(r=this.limitWidth(e,r,t)),r&&(n=parseInt(r*s)),(0,i.default)(n)&&n<1)throw o.default.create("Just calculated a height less than 1 which is wrong.",t);return a(n,t)}}},{"./../util/videomailError":131,"@babel/runtime/helpers/interopRequireDefault":4,"number-is-integer":74}],135:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(e("get-form-data")),o=r(e("hidden")),a=r(e("hyperscript")),s=r(e("inherits")),u=r(e("safe-json-stringify")),c=r(e("../events")),l=r(e("../util/eventEmitter")),f=r(e("../util/videomailError"));function d(e){return e.replace(/(^[,\s]+)|([,\s]+$)/g,"")}var h=function(e,t,n){l.default.call(this,n,"Form");var r,s=n.debug,h=this,p={subject:n.selectors.subjectInputName,from:n.selectors.fromInputName,to:n.selectors.toInputName,cc:n.selectors.ccInputName,bcc:n.selectors.bccInputName,body:n.selectors.bodyInputName,key:n.selectors.keyInputName,parentKey:n.selectors.parentKeyInputName,sendCopy:n.selectors.sendCopyInputName};function m(){return(0,i.default)(t,{includeDisabled:!0})}function y(e,n){for(var r,i=t.elements.length,o=0;o<i;o++)(n||!n&&("BUTTON"!==(r=t.elements[o]).tagName&&"submit"!==r.type))&&(t.elements[o].disabled=e)}function b(e){var t=e.name;return Object.values(p).includes(t)}function g(){for(var e=t.querySelectorAll("input, textarea, select"),n=[],r=0;r<e.length;r++){var i=e[r];b(i)&&n.push(i)}return n}this.transformFormData=function(e){var t={};return Object.keys(p).forEach((function(n){var r=p[n];if(r in e){var i=e[r];void 0===i||(t[n]=i)}})),t.from&&(t.from=d(t.from)),t.to&&(t.to=d(t.to)),t.cc&&(t.cc=d(t.cc)),t.bcc&&(t.bcc=d(t.bcc)),t},this.getRecipients=function(){var e=this.transformFormData(m()),t={};return"to"in e&&(t.to=e.to),"cc"in e&&(t.cc=e.cc),"bcc"in e&&(t.bcc=e.bcc),t},this.loadVideomail=function(e){s("Form: loadVideomail()");for(var r,i,o=t.elements.length,a=0;a<o;a++)e[i=(r=t.elements[a]).name]&&(r.value=e[i]),i!==n.selectors.subjectInputName&&i!==n.selectors.bodyInputName||(r.disabled=!0);t.setAttribute("method","put")},this.disable=function(e){y(!0,e)},this.enable=function(e){y(!1,e)},this.build=function(){if(s("Form: build()"),(r=t.querySelector('input[name="'.concat(n.selectors.keyInputName,'"]')))||(r=(0,a.default)("input",{name:n.selectors.keyInputName,type:"hidden"}),t.appendChild(r)),n.enableAutoValidation)for(var i=g(),u=0,l=i.length;u<l;u++){var d=i[u],p=d.type;"radio"===p||"select"===p?d.addEventListener("change",e.validate):d.addEventListener("input",e.validate)}this.on(c.default.PREVIEW,(function(e){e||r.value?e&&(r.value=e,r.dispatchEvent(new Event("input",{bubbles:!0}))):h.emit(c.default.ERROR,f.default.create("Videomail key for preview is missing!",n))})),this.on(c.default.GOING_BACK,(function(){r.value=null,r.dispatchEvent(new Event("input",{bubbles:!0}))})),this.on(c.default.INVALID,(function(){t.classList.add("invalid")})),this.on(c.default.VALID,(function(){t.classList.remove("invalid")})),this.on(c.default.ERROR,(function(e){var r;e.hideForm&&e.hideForm()&&n.adjustFormOnBrowserError?function(){for(var e=t.elements.length,n=0;n<e;n++)(0,o.default)(t.elements[n],!0);(0,o.default)(t,!0)}():e.hideButtons&&e.hideButtons()&&n.adjustFormOnBrowserError&&(r=h.findSubmitButton(),(0,o.default)(r,!0))})),this.on(c.default.BUILT,(function(){e.getSubmitButton().onclick=h.doTheSubmit.bind(h)}))},this.unload=function(){s("Form: unload()"),function(){for(var t=g(),n=0,r=t.length;n<r;n++){var i=t[n],o=i.type;"radio"===o||"select"===o?i.removeEventListener("change",e.validate):i.removeEventListener("input",e.validate)}}(),this.removeAllListeners(),e.getSubmitButton().onclick=null},this.doTheSubmit=function(n){return n?(s("Form: doTheSubmit(".concat((0,u.default)(n),")")),n.preventDefault()):s("Form: doTheSubmit()"),e.hasElement()&&e.submitAll(m(),t.getAttribute("method"),t.getAttribute("action")),!1},this.getInvalidElement=function(){for(var e=g(),t=0,n=e.length;t<n;t++)if(!e[t].validity.valid)return e[t];return null},this.findSubmitButton=function(){return t.querySelector("[type='submit']")},this.hide=function(){t&&(0,o.default)(t,!0)},this.show=function(){t&&(0,o.default)(t,!1)}};(0,s.default)(h,l.default);n.default=h},{"../events":119,"../util/eventEmitter":126,"../util/videomailError":131,"@babel/runtime/helpers/interopRequireDefault":4,"get-form-data":50,hidden:61,hyperscript:63,inherits:66,"safe-json-stringify":99}],136:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(e("deepmerge"));n.default={merge:function(e,t){return(0,i.default)(e,t,{arrayMerge:function(e,t){return t}})}}},{"@babel/runtime/helpers/interopRequireDefault":4,deepmerge:28}],137:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(e("hidden")),o=r(e("hyperscript")),a=r(e("inherits")),s=r(e("safe-json-stringify")),u=r(e("../events")),c=r(e("../util/eventEmitter")),l=r(e("./visuals/inside/recorderInsides")),f=r(e("./visuals/notifier")),d=r(e("./visuals/recorder")),h=r(e("./visuals/replay")),p=function(e,t){c.default.call(this,t,"Visuals");var n,r,a=this,p=new h.default(this,t),m=new d.default(this,p,t),y=new l.default(this,t),b=new f.default(this,t),g=t.debug;function v(){var t,r=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=arguments.length>1?arguments[1]:void 0;g("Visuals: buildChildren (playerOnly = ".concat(r).concat(i?', replayParentElement="'.concat(i,'"'):"",")")),(t=e.querySelector("noscript"))&&((t=(0,o.default)("noscript")).innerHTML="Please enable Javascript",n.appendChild(t)),r||(b.build(),y.build()),p.build(i)}function w(){t.video.stretch?E():n&&m&&(n.style.width="".concat(a.getRecorderWidth(!0),"px"),n.style.height="".concat(a.getRecorderHeight(!0),"px"))}function E(){n&&(n.style.width="auto",n.style.height="auto")}function _(){return!a.isNotifying()&&!p.isShown()&&!a.isCountingDown()}this.getRatio=function(){return n.clientWidth?n.clientHeight/n.clientWidth:0},this.isCountingDown=function(){return y.isCountingDown()},this.build=function(){var i=arguments.length>0&&void 0!==arguments[0]&&arguments[0],s=arguments.length>1?arguments[1]:void 0;if(e){if(!(n=e.querySelector(".".concat(t.selectors.visualsClass)))){n=(0,o.default)("div.".concat(t.selectors.visualsClass));var c=e.querySelector(".".concat(t.selectors.buttonsClass));c&&!e.isOutsideElementOf(c)?e.insertBefore(n,c):e.appendChild(n)}n.classList.add("visuals")}w(),!r&&function(){var n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];n||(g("Visuals: initEvents (playerOnly = ".concat(n,")")),a.on(u.default.USER_MEDIA_READY,(function(){r=!0,a.endWaiting(),e.enableForm(!1)})).on(u.default.PREVIEW,(function(){a.endWaiting()})).on(u.default.BLOCKING,(function(n){(n.hideForm||t.adjustFormOnBrowserError)&&e.disableForm(!0)})).on(u.default.PREVIEW_SHOWN,(function(){e.validate(void 0,!0)})).on(u.default.LOADED_META_DATA,(function(){w()})).on(u.default.ERROR,(function(e){e.removeDimensions&&e.removeDimensions()&&E()})))}(i),v(i,s),r=!0},this.querySelector=function(e){return n&&n.querySelector(e)},this.appendChild=function(e){n&&n.appendChild(e)},this.removeChild=function(e){n.removeChild(e)},this.reset=function(){this.endWaiting(),m.reset()},this.beginWaiting=function(){e.beginWaiting()},this.endWaiting=function(){e.endWaiting()},this.stop=function(e){m.stop(e),y.hidePause()},this.back=function(e,t){!t&&e&&(t=e,e={}),p.hide(),b.hide(),e&&e.keepHidden?(m.hide(),t&&t()):m.back(t)},this.recordAgain=function(){this.back((function(){t.loadUserMediaOnRecord?a.once(u.default.SERVER_READY,(function(){a.record()})):a.once(u.default.USER_MEDIA_READY,(function(){a.record()}))}))},this.unload=function(e){try{if(!r)return;g("Visuals: unload(".concat(e?(0,s.default)(e):"",")")),a.removeAllListeners(),m.unload(e),y.unload(e),p.unload(),r=!1}catch(e){this.emit(u.default.ERROR,e)}},this.isNotifying=function(){return b.isVisible()},this.isReplayShown=function(){return p.isShown()},this.pause=function(e){m.pause(e),y.showPause()},this.resume=function(){y.isCountingDown()?y.resumeCountdown():m.resume(),y.hidePause()},this.pauseOrResume=function(){_.call(this)&&(this.isRecording()?this.pause():m.isPaused()?this.resume():m.isReady()&&this.record())},this.recordOrStop=function(){_()&&(this.isRecording()?this.stop():m.isReady()&&this.record())},this.record=function(){t.video.countdown?(this.emit(u.default.COUNTDOWN),y.startCountdown(m.record.bind(m))):m.record()},this.getRecorder=function(){return m},this.getReplay=function(){return p},this.validate=function(){return m.validate()&&this.isReplayShown()},this.getRecordingStats=function(){return m.getRecordingStats()},this.getAudioSampleRate=function(){return m.getAudioSampleRate()},this.isPaused=function(){return m.isPaused()},this.error=function(e){b.error(e)},this.hide=function(){n&&((0,i.default)(n,!0),this.emit(u.default.HIDE))},this.isHidden=function(){return!r||(n?(0,i.default)(n):void 0)},this.showVisuals=function(){n&&(0,i.default)(n,!1)},this.show=function(){!this.isReplayShown()&&n&&m.build(),this.showVisuals()},this.showReplayOnly=function(){p.show(),this.show(),m.hide(),b.hide()},this.isRecorderUnloaded=function(){return m.isUnloaded()},this.isConnecting=function(){return m.isConnecting()},this.getRecorderWidth=function(e){return m.getRecorderWidth(e)},this.getRecorderHeight=function(e,t){return m.getRecorderHeight(e,t)},this.limitWidth=function(n){return e.limitWidth(n,t)},this.limitHeight=function(t){return e.limitHeight(t)},this.calculateWidth=function(t){return e.calculateWidth(t)},this.calculateHeight=function(t){return e.calculateHeight(t)},this.getReplay=function(){return p},this.getBoundingClientRect=function(){return n&&n.getBoundingClientRect()},this.checkTimer=function(e){y.checkTimer(e)},this.isNotifierBuilt=function(){return b&&b.isBuilt()},this.isReplayShown=p.isShown.bind(p),this.hideReplay=p.hide.bind(p),this.hideRecorder=m.hide.bind(m),this.isRecording=m.isRecording.bind(m),this.isUserMediaLoaded=m.isUserMediaLoaded.bind(m),this.isConnected=m.isConnected.bind(m)};(0,a.default)(p,c.default);n.default=p},{"../events":119,"../util/eventEmitter":126,"./visuals/inside/recorderInsides":143,"./visuals/notifier":144,"./visuals/recorder":145,"./visuals/replay":146,"@babel/runtime/helpers/interopRequireDefault":4,hidden:61,hyperscript:63,inherits:66,"safe-json-stringify":99}],138:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,t){var n,r,a,s,u=this;function c(e){s||(t.debug("Countdown",a),--a<1?function(e){u.unload(),u.hide(),setTimeout((function(){e()}),0)}(e):n.innerHTML=a)}this.start=function(e){n.innerHTML=a=t.video.countdown,this.show(),r=setInterval(c.bind(this,e),950)},this.pause=function(){s=!0},this.resume=function(){s=!1},this.build=function(){(n=e.querySelector(".countdown"))?this.hide():(n=(0,o.default)("p.countdown"),this.hide(),e.appendChild(n))},this.show=function(){(0,i.default)(n,!1)},this.isCountingDown=function(){return Boolean(r)},this.unload=function(){clearInterval(r),s=!1,r=null},this.hide=function(){(0,i.default)(n,!0),this.unload()}};var i=r(e("hidden")),o=r(e("hyperscript"))},{"@babel/runtime/helpers/interopRequireDefault":4,hidden:61,hyperscript:63}],139:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,t){s.default.call(this,t,"Facing Mode");var n,r=this;this.build=function(){(n=e.querySelector(".facingMode"))?this.hide():((n=(0,o.default)("button.facingMode")).innerHTML="⤾",n.onclick=function(e){e&&e.preventDefault();try{r.emit(a.default.SWITCH_FACING_MODE)}catch(e){r.emit(a.default.ERROR,e)}},this.hide(),e.appendChild(n)),r.on(a.default.ERROR,(function(){r.hide()}))},this.hide=function(){(0,i.default)(n,!0)},this.show=function(){(0,i.default)(n,!1)}};var i=r(e("hidden")),o=r(e("hyperscript")),a=r(e("./../../../../events")),s=r(e("./../../../../util/eventEmitter"))},{"./../../../../events":119,"./../../../../util/eventEmitter":126,"@babel/runtime/helpers/interopRequireDefault":4,hidden:61,hyperscript:63}],140:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,t){if(!t.text.pausedHeader)throw a.default.create("Paused header cannot be empty",t);var n,r,s;function u(){return t.text.pausedHint}this.build=function(){n=e.querySelector(".paused"),(r=e.querySelector(".pausedHeader"))?(this.hide(),r.innerHTML=t.text.pausedHeader,u()&&(s.innerHTML=t.text.pausedHint)):(n=(0,o.default)("div.paused"),r=(0,o.default)("p.pausedHeader"),this.hide(),r.innerHTML=t.text.pausedHeader,n.appendChild(r),u()&&(s=e.querySelector(".pausedHint"),(s=(0,o.default)("p.pausedHint")).innerHTML=t.text.pausedHint,n.appendChild(s)),e.appendChild(n))},this.hide=function(){(0,i.default)(n,!0)},this.show=function(){(0,i.default)(n,!1)}};var i=r(e("hidden")),o=r(e("hyperscript")),a=r(e("./../../../../util/videomailError"))},{"./../../../../util/videomailError":131,"@babel/runtime/helpers/interopRequireDefault":4,hidden:61,hyperscript:63}],141:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var t;this.build=function(){(t=e.querySelector(".recordNote"))?this.hide():(t=(0,o.default)("p.recordNote"),this.hide(),e.appendChild(t))},this.stop=function(){this.hide(),t.classList.remove("near"),t.classList.remove("nigh")},this.setNear=function(){t.classList.add("near")},this.setNigh=function(){t.classList.add("nigh")},this.hide=function(){(0,i.default)(t,!0)},this.show=function(){(0,i.default)(t,!1)}};var i=r(e("hidden")),o=r(e("hyperscript"))},{"@babel/runtime/helpers/interopRequireDefault":4,hidden:61,hyperscript:63}],142:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,t,n){var r,a,s,u=!1,c=!1;function l(e,t){return e>=n.video.limitSeconds*t}function f(){var e,i=parseInt(s/60,10),o=s-60*i;if(!u||!c){var a=n.video.limitSeconds-s;!function(e){return!(u||!l(e,.6)||(u=!0,0))}(a)?function(e){return!(c||!l(e,.8)||(c=!0,0))}(a)&&(t.setNigh(),r.classList.add("nigh"),n.debug("End is nigh, ".concat(s," seconds to go"))):(t.setNear(),r.classList.add("near"),n.debug("End is near, ".concat(s," seconds to go")))}r.innerHTML="".concat(i,":").concat((e=o)<10?"0".concat(e):e)}function d(){(0,i.default)(r,!0)}function h(){return n.video.limitSeconds}this.check=function(t){var n=h()-Math.floor(t.intervalSum/1e3);n!==s&&(s=n,f(),s<1&&e.stop(!0))},this.start=function(){s=h(),u=c=!1,a=!0,f(),r.classList.remove("near"),r.classList.remove("nigh"),(0,i.default)(r,!1)},this.pause=function(){t.hide()},this.resume=function(){t.show()},this.stop=function(){null!==s&&a&&(n.debug("Stopping record timer. Was recording for about ~".concat(h()-s," seconds.")),d(),t.stop(),s=null,a=!1)},this.build=function(){(r=e.querySelector(".recordTimer"))?d():(r=(0,o.default)("p.recordTimer"),d(),e.appendChild(r))}};var i=r(e("hidden")),o=r(e("hyperscript"))},{"@babel/runtime/helpers/interopRequireDefault":4,hidden:61,hyperscript:63}],143:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(e("inherits")),o=r(e("./../../../events")),a=r(e("./../../../util/browser")),s=r(e("./../../../util/eventEmitter")),u=r(e("./recorder/countdown")),c=r(e("./recorder/facingMode")),l=r(e("./recorder/pausedNote")),f=r(e("./recorder/recordNote")),d=r(e("./recorder/recordTimer")),h=function(e,t){s.default.call(this,t,"RecorderInsides");var n,r,i,h,p=this,m=t.debug,y=new f.default(e),b=new d.default(e,y,t),g=new a.default(t);function v(){p.hidePause(),p.hideCountdown(),b.stop(),h&&h.hide()}function w(){m("RecorderInsides: initEvents()"),p.on(o.default.USER_MEDIA_READY,(function(){h&&h.show()})).on(o.default.RECORDING,(function(){b.start()})).on(o.default.RESUMING,(function(){b.resume()})).on(o.default.STOPPING,(function(){b.stop()})).on(o.default.PAUSED,(function(){p.isCountingDown()?n.pause():b.pause()})).on(o.default.ERROR,v).on(o.default.RESETTING,v).on(o.default.HIDE,(function(){p.hideCountdown()}))}t.video.countdown&&(n=new u.default(e,t)),t.video.facingModeButton&&g.isMobile()&&(h=new c.default(e,t)),t.enablePause&&(r=new l.default(e,t)),this.build=function(){m("RecorderInsides: build()"),n&&n.build(),r&&r.build(),h&&h.build(),y.build(),b.build(),!i&&w(),i=!0},this.unload=function(){n&&n.unload(),i=!1},this.showPause=function(){r&&r.show()},this.hidePause=function(){r&&r.hide()},this.hideCountdown=function(){n&&n.hide()},this.startCountdown=function(e){n&&n.start(e)},this.resumeCountdown=function(){n&&n.resume()},this.isCountingDown=function(){return n&&n.isCountingDown()},this.checkTimer=function(e){b.check(e)}};(0,i.default)(h,s.default);n.default=h},{"./../../../events":119,"./../../../util/browser":124,"./../../../util/eventEmitter":126,"./recorder/countdown":138,"./recorder/facingMode":139,"./recorder/pausedNote":140,"./recorder/recordNote":141,"./recorder/recordTimer":142,"@babel/runtime/helpers/interopRequireDefault":4,inherits:66}],144:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(e("hidden")),o=r(e("hyperscript")),a=r(e("inherits")),s=r(e("../../events")),u=r(e("../../util/eventEmitter")),c="notifierMessage",l=function(e,t){u.default.call(this,t,"Notifier");var n,r,a,l,f,d=this,h=t&&t.debug;function p(){h("Notifier: initEvents()"),d.on(s.default.CONNECTING,(function(){d.notify("Connecting …")})).on(s.default.LOADING_USER_MEDIA,(function(){d.notify("Loading webcam …")})).on(s.default.USER_MEDIA_READY,(function(){t.video.stretch?(n.style.width="auto",n.style.height="".concat(e.getRecorderHeight(!0,!0),"px")):(n.style.width="".concat(e.getRecorderWidth(!0),"px"),n.style.height="".concat(e.getRecorderHeight(!0),"px")),d.hide()})).on(s.default.LOADED_META_DATA,(function(){})).on(s.default.PREVIEW,(function(){d.hide()})).on(s.default.STOPPING,(function(n){!function(n){var r="";e.beginWaiting(),n&&(h("Limit reached"),r+="".concat(t.text.limitReached,".<br/>")),r+="".concat(t.text.sending," …"),d.notify(r,null,{stillWait:!0,entertain:t.notifier.entertain})}(n)})).on(s.default.PROGRESS,(function(e,n){!function(e,n){var r;t.isAudioEnabled()?(r="Video: ".concat(e),n&&(r+=", Audio: ".concat(n))):r=e,d.setExplanation(r)}(e,n)})).on(s.default.BEGIN_VIDEO_ENCODING,(function(){!function(){e.beginWaiting();var n="".concat(t.text.encoding," …");d.notify(n,null,{stillWait:!0,entertain:t.notifier.entertain}),b()}()})).on(s.default.UNLOADING,(function(){d.notify("Unloading …")})).on(s.default.DISCONNECTED,(function(){d.notify("Disconnected")})).on(s.default.CONNECTED,(function(){d.notify("Connected"),t.loadUserMediaOnRecord&&d.hide()}))}function m(){if(t.notifier.entertain){if(!l){var e=Math.floor(Math.random()*t.notifier.entertainLimit+1);n.className="notifier entertain ".concat(t.notifier.entertainClass).concat(e),a=setTimeout(m,t.notifier.entertainInterval),l=!0}}else y()}function y(){n&&n.classList.remove("entertain"),clearTimeout(a),a=null,l=!1}function b(){r&&(0,i.default)(r,!0)}function g(){return document.getElementById(c)}this.error=function(e){var n=e.message?e.message.toString():e.toString(),r=e.explanation?e.explanation.toString():null;n||t.debug("Weird empty error message generated for error",e),d.notify(n,r,{blocking:!0,problem:!0,hideForm:e.hideForm&&e.hideForm(),classList:e.getClassList&&e.getClassList(),removeDimensions:e.removeDimensions&&e.removeDimensions()})},this.setExplanation=function(e){r||(r=(0,o.default)("p",{className:"explanation"}),n?n.appendChild(r):t.logger.warn("Unable to show explanation because notifyElement is empty:",e)),r.innerHTML=e,(0,i.default)(r,!1)},this.build=function(){t.debug("Notifier: build()"),(n=e.querySelector(".notifier"))?this.hide():(n=(0,o.default)(".notifier"),this.hide(),e.appendChild(n)),!f&&p(),f=!0},this.hide=function(){var e;y(),n&&((0,i.default)(n,!0),n.classList.remove("blocking")),(e=g())&&(0,i.default)(e,!0),b()},this.isVisible=function(){return!!f&&(n&&!(0,i.default)(n))},this.isBuilt=function(){return f},this.notify=function(a,u){var l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},f=[a,u].filter(Boolean);t.debug("Notifier: notify(".concat(f.join(", "),")"));var d=!!l.stillWait&&l.stillWait,h=!!l.entertain&&l.entertain,p=!!l.blocking&&l.blocking,b=!!l.hideForm&&l.hideForm,v=!!l.classList&&l.classList,w=!!l.removeDimensions&&l.removeDimensions,E=g();if(!E&&n){var _=(0,o.default)("h2",{id:c});n.appendChild(_)}E=g(),n&&E&&r&&n.insertBefore(E,r),n&&(h||(n.className="notifier"),v&&v.forEach((function(e){n.classList.add(e)})),w&&(n.style.width="auto",n.style.height="auto")),p?(n&&n.classList.add("blocking"),this.emit(s.default.BLOCKING,{hideForm:b})):this.emit(s.default.NOTIFYING),e.hideReplay(),e.hideRecorder(),function(e,n){var r=g();if(r){if(t.debug("Notifier: setMessage(".concat(e,")")),e.length>0){var o=!!n.problem&&n.problem;r.innerHTML=(o?"&#x2639; ":"")+e}else t.logger.warn("Not going to update notifierMessage element because message is empty",e);(0,i.default)(r,!1)}}(a,l),u&&u.length>0&&this.setExplanation(u),h?m():y(),e.showVisuals(),n&&(0,i.default)(n,!1),!d&&e.endWaiting()}};(0,a.default)(l,u.default);n.default=l},{"../../events":119,"../../util/eventEmitter":126,"@babel/runtime/helpers/interopRequireDefault":4,hidden:61,hyperscript:63,inherits:66}],145:[function(e,t,n){(function(t){(function(){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(e("animitter")),o=r(e("canvas-to-buffer")),a=r(e("deepmerge")),s=r(e("hidden")),u=r(e("hyperscript")),c=r(e("inherits")),l=r(e("safe-json-stringify")),f=r(e("websocket-stream")),d=r(e("../../constants")),h=r(e("../../events")),p=r(e("../../util/browser")),m=r(e("../../util/eventEmitter")),y=r(e("../../util/humanize")),b=r(e("../../util/pretty")),g=r(e("../../util/videomailError")),v=r(e("./userMedia")),w="°º¤ø,¸¸,ø¤º°`°º¤ø,¸,ø¤°º¤ø,¸¸,ø¤º°`°º¤ø,¸ ",E=function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};m.default.call(this,r,"Recorder");var c=new p.default(r),E=(0,a.default)(r,{image:{quality:c.isMobile()?r.image.quality-.05:r.image.quality}});if(!E.video||!E.video.fps)throw g.default.create("FPS must be defined",E);var _,R,S,A,k,O,T,x,j,D,M,C,N,I,L,P,B,U,F,q,W,H,V,z,G,$,Y=this,K=E.debug,J=null,X=0,Q=0,Z=E.video.facingMode,ee={},te=0,ne=0;function re(e,t){if(P)if(P.destroyed)ie(),Y.emit(h.default.ERROR,g.default.create("Already disconnected","Sorry, connection to the server has been destroyed. Please reload.",E));else{var n=t&&t.onFlushedCallback;try{P.write(e,(function(){if(n)try{n(t)}catch(e){Y.emit(h.default.ERROR,g.default.create("Failed to write stream buffer","stream.write() failed because of ".concat((0,b.default)(e)),E))}}))}catch(e){Y.emit(h.default.ERROR,g.default.create("Failed writing to server","stream.write() failed because of ".concat((0,b.default)(e)),E))}}}function ie(){clearInterval(V)}function oe(e){X++,re(e.toBuffer())}function ae(){R&&(0,s.default)(R,!1)}function se(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};try{K("Recorder: onUserMediaReady()",(0,l.default)(t));var n=t.switchingFacingMode;C=F=I=N=!1,M=!0,n||(e=(0,i.default)({fps:E.video.fps},Ae),_=e.getRequestAnimationFrameObject(),J=e),ae(),t.recordWhenReady&&Y.record(),Y.emit(h.default.USER_MEDIA_READY,{switchingFacingMode:t.switchingFacingMode,paused:Y.isPaused(),recordWhenReady:t.recordWhenReady})}catch(e){Y.emit(h.default.ERROR,e)}}function ue(){return"".concat((te/(Q||1)*100).toFixed(2),"%")}function ce(){return"".concat((ne/(X||1)*100).toFixed(2),"%")}function le(){T||(T=ue()),x||(x=ce()),Y.emit(h.default.PROGRESS,T,x)}function fe(e){if(!U){B=!0,K("Recorder: initializing web socket to %s",E.socketUrl),Y.emit(h.default.CONNECTING);var t="".concat(E.socketUrl,"?").concat(encodeURIComponent(d.default.SITE_NAME_LABEL),"=").concat(encodeURIComponent(E.siteName));try{P=(0,f.default)(t,{perMessageDeflate:!1,objectMode:!0})}catch(e){var n;B=U=!1,n=void 0===f.default?g.default.create("There is no websocket","Cause: ".concat((0,b.default)(e)),E):g.default.create("Failed to connect to server","Please upgrade your browser. Your current version does not seem to support websockets.",E,{browserProblem:!0}),Y.emit(h.default.ERROR,n)}P&&(P.on("close",(function(e){K("".concat(w,"Stream has closed")),B=U=!1,e?Y.emit(h.default.ERROR,e||"Unhandled websocket error"):fe()})),P.on("connect",(function(){K("".concat(w,"Stream *connect* event emitted"));var t=this.socket.readyState===WebSocket.CLOSING;U||t||I||(U=!0,B=I=!1,Y.emit(h.default.CONNECTED),e&&e())})),P.on("data",(function(e){var t;K("".concat(w,"Stream *data* event emitted"));try{t=JSON.parse(e.toString())}catch(t){K("Failed to parse command:",t),Y.emit(h.default.ERROR,g.default.create("Invalid server command","Contact us asap. Bad command was ".concat(e.toString(),". "),E))}finally{ye.call(Y,t)}})),P.on("error",(function(e){K("".concat(w,"Stream *error* event emitted: ").concat((0,l.default)(e)))})),P.on("drain",(function(){K("".concat(w,"Stream *drain* event emitted (should not happen!)"))})),P.on("preend",(function(){K("".concat(w,"Stream *preend* event emitted"))})),P.on("end",(function(){K("".concat(w,"Stream *end* event emitted"))})),P.on("drain",(function(){K("".concat(w,"Stream *drain* event emitted"))})),P.on("pipe",(function(){K("".concat(w,"Stream *pipe* event emitted"))})),P.on("unpipe",(function(){K("".concat(w,"Stream *unpipe* event emitted"))})),P.on("resume",(function(){K("".concat(w,"Stream *resume* event emitted"))})),P.on("uncork",(function(){K("".concat(w,"Stream *uncork* event emitted"))})),P.on("readable",(function(){K("".concat(w,"Stream *preend* event emitted"))})),P.on("prefinish",(function(){K("".concat(w,"Stream *preend* event emitted"))})),P.on("finish",(function(){K("".concat(w,"Stream *preend* event emitted"))})))}}function de(e){C=!1,Re(),K("Recorder: userMediaErrorCallback(), name: ".concat(e.name,", message: ").concat(e.message," and Webcam characteristics: ").concat((0,l.default)(S.getCharacteristics())));var t=Y.listeners(h.default.ERROR);if(t&&t.length)e.name!==g.default.MEDIA_DEVICE_NOT_SUPPORTED?Y.emit(h.default.ERROR,g.default.create(e,E)):K("Recorder: ignore user media error",e),k=setTimeout(fe,E.timeouts.userMedia);else{if(!I)throw K("Recorder: no error listeners attached but throwing error",e),g.default.create(e,"Unable to process this error since there are no error listeners anymore.",E);K("Recorder: already unloaded. Not going to throw error",e)}}function he(e,t){if(K("Recorder: getUserMediaCallback()",(0,l.default)(t)),U&&(be()||!ge()||F))try{Re(),S.init(e,(function(){se(t)}),oe.bind(Y),(function(e){Y.emit(h.default.ERROR,e)}),t)}catch(e){Y.emit(h.default.ERROR,e)}}function pe(e){if(!navigator)throw new Error("Navigator is missing!");if(K("Recorder: loadGenuineUserMedia()"),Y.emit(h.default.ASKING_WEBCAM_PERMISSION),navigator.mediaDevices&&navigator.mediaDevices.getUserMedia){var t={video:{facingMode:Z,frameRate:{ideal:E.video.fps}},audio:E.isAudioEnabled()};c.isOkSafari()||(E.hasDefinedWidth()?t.video.width={ideal:E.video.width}:t.video.width={ideal:Y.limitWidth()},E.hasDefinedHeight()&&(t.video.height={ideal:E.video.height})),K("Recorder: navigator.mediaDevices.getUserMedia()",(0,l.default)(t)),navigator.mediaDevices.getSupportedConstraints&&K("Recorder: navigator.mediaDevices.getSupportedConstraints()",(0,l.default)(navigator.mediaDevices.getSupportedConstraints()));var n=navigator.mediaDevices.getUserMedia(t);if(!n)throw g.default.create("Sorry, your browser is unable to use cameras.","Try a different browser with better user media functionalities.",E);n.then((function(t){he(t,e)})).catch(de)}else K("Recorder: navigator.getUserMedia()"),navigator.getUserMedia_({video:!0,audio:E.isAudioEnabled()},he,de)}function me(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(M)return K("Recorder: skipping loadUserMedia() because it is already loaded"),se(e),!1;if(C)return K("Recorder: skipping loadUserMedia() because it is already asking for permission"),!1;K("Recorder: loadUserMedia(".concat((0,l.default)(e),")")),Y.emit(h.default.LOADING_USER_MEDIA);try{A=setTimeout((function(){Y.isReady()||Y.emit(h.default.ERROR,c.getNoAccessIssue())}),E.timeouts.userMedia),C=!0,pe(e)}catch(e){if(K("Recorder: failed to load genuine user media"),C=!1,!Y.listeners(h.default.ERROR).length)throw K("Recorder: no error listeners attached but throwing exception",e),e;Y.emit(h.default.ERROR,e)}}function ye(e){var t;if(!I)try{switch(e.args?K("Server commanded: ".concat(e.command," with ").concat((0,l.default)(e.args))):K("Server commanded: ".concat(e.command)),e.command){case"ready":this.emit(h.default.SERVER_READY),A||(E.loadUserMediaOnRecord?ae():me());break;case"preview":!function(e){te=ne=X=Q=0,x=T=null,W=e.key,e.mp4&&n.setMp4Source("".concat(e.mp4+d.default.SITE_NAME_LABEL,"/").concat(E.siteName,"/videomail.mp4"),!0),e.webm&&n.setWebMSource("".concat(e.webm+d.default.SITE_NAME_LABEL,"/").concat(E.siteName,"/videomail.webm"),!0),Y.hide();var t=Y.getRecorderWidth(!0),r=Y.getRecorderHeight(!0);Y.emit(h.default.PREVIEW,W,t,r),H=Date.now()-L,ee.waitingTime=H,E.debug&&K("While recording, %s have been transferred and waiting time was %s",y.default.filesize(O,2),y.default.toTime(H))}(e.args);break;case"error":this.emit(h.default.ERROR,g.default.create("Oh no, server error!",e.args.err.toString()||"(No message given)",E));break;case"confirmFrame":t=e.args,te=t.frame?t.frame:te,T=ue(),le();break;case"confirmSample":!function(e){ne=e.sample?e.sample:ne,x=ce(),le()}(e.args);break;case"beginAudioEncoding":this.emit(h.default.BEGIN_AUDIO_ENCODING);break;case"beginVideoEncoding":this.emit(h.default.BEGIN_VIDEO_ENCODING);break;default:this.emit(h.default.ERROR,"Unknown server command: ".concat(e.command))}}catch(e){Y.emit(h.default.ERROR,e)}}function be(){return e.isNotifying()}function ge(){return!R||(0,s.default)(R)}function ve(e,n,r){if(!r&&n&&n.constructor===Function&&(r=n,n=null),U){if(P){K(n?"$ ".concat(e," with ").concat((0,l.default)(n)):"$ ".concat(e));var i={command:e,args:n};re(t.from((0,l.default)(i))),r&&setTimeout((function(){r()}),0)}}else K("Reconnecting for the command",e,"…"),fe((function(){ve(e,n),r&&r()}))}function we(){return J.getElapsedTime()}function Ee(){if(0!==we())return Q/we()*1e3}function _e(){K("Recorder: reInitializeAudio()"),Re(),S&&S.stop(),M=W=j=D=null,me()}function Re(){A&&(K("Recorder: clearUserMediaTimeout()"),A&&clearTimeout(A),A=null)}function Se(e){1===(e&&e.frameNumber)&&Y.emit(h.default.FIRST_FRAME_SENT)}function Ae(n,r){try{if(!Y.isPaused()&&P&&D){if(0===Q&&Y.emit(h.default.SENDING_FIRST_FRAME),Q++,D.drawImage(S.getRawVisuals(),0,0,j.width,j.height),$=z.toBuffer(),(G=$.length)<1)throw g.default.create("Failed to extract webcam data.",E);O+=G;var i=t.from((0,l.default)({frameNumber:Q}));re(t.concat([$,i]),{frameNumber:Q,onFlushedCallback:Se}),e.checkTimer({intervalSum:r})}}catch(e){Y.emit(h.default.ERROR,e)}}function ke(e){if(J){var t=Y.isRecording();J.stop(),J.setRequestAnimationFrameObject(e),t&&J.start()}}function Oe(){E.hasDefinedWidth()&&(R.width=Y.getRecorderWidth(!0)),E.hasDefinedHeight()&&(R.height=Y.getRecorderHeight(!0))}function Te(){K("Recorder: initEvents()"),Y.on(h.default.SUBMITTING,(function(){N=!0})).on(h.default.SUBMITTED,(function(){N=!1})).on(h.default.BLOCKING,(function(){F=!0,Re()})).on(h.default.HIDE,(function(){Y.hide()})).on(h.default.LOADED_META_DATA,(function(){Oe()})).on(h.default.DISABLING_AUDIO,(function(){_e()})).on(h.default.ENABLING_AUDIO,(function(){_e()})).on(h.default.INVISIBLE,(function(){!function(){K("Recorder: loopWithTimeouts()");var e,t=1e3/E.video.fps,n=0;ke({requestAnimationFrame:function(r){return setTimeout((function(){e=Date.now(),r(),n=Date.now()-e}),t-n)},cancelAnimationFrame:function(e){clearTimeout(e)}})}()})).on(h.default.VISIBLE,(function(){K("Recorder: restoreAnimationFrameObject()"),ke(_)})).on(h.default.SWITCH_FACING_MODE,(function(){!function(){if(!c.isMobile())return!1;"user"===Z?Z="environment":"environment"===Z?Z="user":K("Recorder: unsupported facing mode",Z),pe({switchingFacingMode:!0})}()}))}function xe(){var t;if(S){var n=S.getVideoWidth();t=n<1?e.getRatio():S.getVideoHeight()/n}else t=E.getRatio();return t}this.getRecordingStats=function(){return ee},this.getAudioSampleRate=function(){return S.getAudioSampleRate()},this.stop=function(e){K("stop(".concat((0,l.default)(e),")"));var t=e.limitReached;this.emit(h.default.STOPPING,t),J.complete();var r=this;setTimeout((function(){L=Date.now(),ee={avgFps:Ee(),wantedFps:E.video.fps,avgInterval:we()/Q,wantedInterval:1e3/E.video.fps,intervalSum:we(),framesCount:Q,videoType:n.getVideoType()},E.isAudioEnabled()&&(ee.samplesCount=X,ee.sampleRate=S.getAudioSampleRate()),ve("stop",ee,(function(){r.emit(h.default.STOPPED,{recordingStats:ee})})),r.reset()}),60)},this.back=function(e){this.emit(h.default.GOING_BACK),ae(),this.reset(),ve("back",e)},this.unload=function(e){var t;!I&&q&&(e&&(t=e.name||e.statusText||e.toString()),K("Recorder: unload()".concat(t?", cause: ".concat(t):"")),this.reset(),Re(),S&&S.unloadRemainingEventListeners(),N||P&&(K("Recorder: ending stream ..."),P.destroy(),P=void 0),I=!0,q=B=U=!1)},this.reset=function(){I||(K("Recorder: reset()"),this.emit(h.default.RESETTING),J&&J.dispose(),S&&S.stop(),n.reset(),M=W=j=D=$=G=null)},this.validate=function(){return U&&null===j},this.isReady=function(){return S.isReady()},this.pause=function(e){var n=e&&e.event;n instanceof window.Event&&(e.eventType=n.type),K(e?"pause() at frame ".concat(Q," with ").concat((0,l.default)(e)):"pause() at frame ".concat(Q)),S.pause(),J.stop(),this.emit(h.default.PAUSED),V=window.setInterval((function(){K("Recorder: pinging..."),re(t.from(""))}),E.timeouts.pingInterval)},this.isPaused=function(){return S&&S.isPaused()},this.resume=function(){K("Recorder: resume() with frame ".concat(Q)),ie(),this.emit(h.default.RESUMING),S.resume(),J.start()},this.record=function(){if(I)return!1;if(!U)return K("Recorder: reconnecting before recording ..."),fe((function(){Y.once(h.default.USER_MEDIA_READY,Y.record)})),!1;if(!M)return E.loadUserMediaOnRecord?me({recordWhenReady:!0}):Y.emit(h.default.ERROR,g.default.create("Load and enable your camera first",E)),!1;try{j=S.createCanvas()}catch(e){return Y.emit(h.default.ERROR,g.default.create(e,E)),!1}return D=j.getContext("2d"),j.width?j.height?(O=0,z=new o.default(j,E.image.types,E.image.quality),K("Recorder: record()"),S.record(),Y.emit(h.default.RECORDING,Q),J.on("update",(function(e,t){var n=void 0;n=0!==t?Math.round(Q/t*1e3):void 0,K("Recorder: avgFps = ".concat(n,", framesCount = ").concat(Q))})),void J.start()):(Y.emit(h.default.ERROR,g.default.create("Canvas has an invalid height.",E)),!1):(Y.emit(h.default.ERROR,g.default.create("Canvas has an invalid width.",E)),!1)},this.build=function(){var t=c.checkRecordingCapabilities();t||(t=c.checkBufferTypes()),t?this.emit(h.default.ERROR,t):((R=e.querySelector("video.".concat(E.selectors.userMediaClass)))||(R=(0,u.default)("video.".concat(E.selectors.userMediaClass)),e.appendChild(R)),Oe(),R.muted=!0,R.setAttribute("playsinline",!0),R.setAttribute("webkit-playsinline","webkit-playsinline"),R.style.transform="rotateY(180deg)",R.style["-webkit-transform"]="rotateY(180deg)",R.style["-moz-transform"]="rotateY(180deg)",E.video.stretch&&(R.style.width="100%"),S||(S=new v.default(this,E)),ae(),q?E.loadUserMediaOnRecord&&me():(Te(),U?E.loadUserMediaOnRecord||me():fe()),q=!0)},this.isPaused=function(){return S&&S.isPaused()&&!J.isRunning()},this.isRecording=function(){return J&&J.isRunning()&&!this.isPaused()&&!be()&&P&&!P.destroyed},this.hide=function(){ge()||(R&&(0,s.default)(R,!0),Re(),k&&(K("Recorder: clearRetryTimeout()"),clearTimeout(k),k=null))},this.isUnloaded=function(){return I},this.getRecorderWidth=function(e){return S&&S.hasVideoWidth()?S.getRawWidth(e):e&&E.hasDefinedWidth()?this.limitWidth(E.video.width):void 0},this.getRecorderHeight=function(e,t){return R&&t?R.getBoundingClientRect().height:S?S.getRawHeight(e):e&&E.hasDefinedHeight()?this.calculateHeight(e):void 0},this.calculateWidth=function(t){var n;return S?n=S.getVideoHeight():R&&(n=R.videoHeight||R.height),e.calculateWidth({responsive:t,ratio:xe(),videoHeight:n})},this.calculateHeight=function(t){var n;return S?n=S.getVideoWidth():R&&(n=R.videoWidth||R.width),e.calculateHeight({responsive:t,ratio:xe(),videoWidth:n})},this.getRawVisualUserMedia=function(){return R},this.isConnected=function(){return U},this.isConnecting=function(){return B},this.limitWidth=function(t){return e.limitWidth(t)},this.limitHeight=function(t){return e.limitHeight(t)},this.isUserMediaLoaded=function(){return M}};(0,c.default)(E,m.default);n.default=E}).call(this)}).call(this,e("buffer").Buffer)},{"../../constants":118,"../../events":119,"../../util/browser":124,"../../util/eventEmitter":126,"../../util/humanize":127,"../../util/pretty":129,"../../util/videomailError":131,"./userMedia":147,"@babel/runtime/helpers/interopRequireDefault":4,animitter:13,buffer:18,"canvas-to-buffer":21,deepmerge:28,hidden:61,hyperscript:63,inherits:66,"safe-json-stringify":99,"websocket-stream":113}],146:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(e("add-eventlistener-with-options")),o=r(e("hidden")),a=r(e("hyperscript")),s=r(e("inherits")),u=r(e("iphone-inline-video")),c=r(e("../../events")),l=r(e("../../util/browser")),f=r(e("../../util/eventEmitter")),d=function(e,t){f.default.call(this,t,"Replay");var n,r,s,d=this,h=new l.default(t),p=t.debug;function m(){return"HTMLDivElement"===e.constructor.name}function y(e,n,i){var o=d.getVideoSource(e);if(n&&i&&(n+="?".concat(Date.now())),o)n?o.setAttribute("src",n):r.removeChild(o);else if(n){var s=1/t.video.fps*2;o=(0,a.default)("source",{src:"".concat(n,"#t=").concat(s),type:"video/".concat(e)}),r.appendChild(o)}}function b(e){setTimeout((function(){try{r&&r.pause()}catch(e){t.logger.warn(e)}e&&e()}),15)}function g(){if(r&&r.play){var e;try{e=r.play()}catch(e){t.logger.warn("Caught replay exception:",e)}e&&"undefined"!=typeof Promise&&e instanceof Promise&&e.catch((function(e){t.logger.warn("Caught pending replay promise exception: %s",e)}))}}this.setVideomail=function(t){(s=t)&&(s.mp4&&this.setMp4Source(s.mp4),s.webm&&this.setWebMSource(s.webm),s.poster&&r.setAttribute("poster",s.poster),function(t){var n;Object.keys(t).forEach((function(r){(n=e.querySelector(".".concat(r)))&&(!n.innerHTML||n.innerHTML.length<1)&&(n.innerHTML=t[r])}))}(s));var n=s&&s.recordingStats&&s.recordingStats.sampleRate>0;this.show(s&&s.width,s&&s.height,n)},this.show=function(n,i,a){r&&(d.isShown()||(p("Replay: show()"),s&&function(t){var n,i;s&&s.playerWidth?i=s.playerWidth:e.calculateWidth&&(i=e.calculateWidth(t)),s&&s.playerHeight?n=s.playerHeight:e.calculateHeight&&(n=e.calculateHeight(t)),r.style.width=i>0?"".concat(i,"px"):"auto",r.style.height=n>0?"".concat(n,"px"):"auto"}({responsive:!0,videoWidth:n||r.videoWidth,videoHeight:i||r.videoHeight}),(0,o.default)(r,!1),e&&(e.style?(0,o.default)(e,!1):e.show&&e.show()),a?r.setAttribute("volume",1):t.isAudioEnabled()||r.setAttribute("muted",!0),u.default&&(0,u.default)(r,{iPad:!0}),r.load(),s?r.addEventListener("canplaythrough",(function(){d.emit(c.default.REPLAY_SHOWN)}),{once:!0}):r.addEventListener("canplaythrough",(function(){d.emit(c.default.PREVIEW_SHOWN)}),{once:!0})))},this.build=function(o){p("Replay: build (".concat(o?'replayParentElement="'.concat(o,'"'):"",")")),(r=e.querySelector("video.".concat(t.selectors.replayClass)))||function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e;if(r=(0,a.default)("video.".concat(t.selectors.replayClass)),"string"==typeof n&&!(n=document.getElementById(n)))throw new Error("No replay parent element container with ID ".concat(n," found."));n.appendChild(r)}(o),this.hide(),r.setAttribute("autoplay",!0),r.setAttribute("autostart",!0),r.setAttribute("autobuffer",!0),r.setAttribute("playsinline",!0),r.setAttribute("webkit-playsinline","webkit-playsinline"),r.setAttribute("controls","controls"),r.setAttribute("preload","auto"),n||(m()||this.on(c.default.PREVIEW,(function(e,t,n){d.show(t,n)})),(0,i.default)(r,"touchstart",(function(e){try{e&&e.preventDefault()}catch(e){}this.paused?g():b()})),r.onclick=function(e){e&&e.preventDefault(),this.paused?g():b()}),n=!0,p("Replay: built.")},this.unload=function(){p("Replay: unload()"),d.removeAllListeners(),r.remove(),r=void 0,s=void 0,n=!1},this.getVideoSource=function(e){if(r){var t,n,i=r.getElementsByTagName("source"),o=i&&i.length,a="video/".concat(e);if(o)for(n=0;n<o&&!t;n++)i[n].getAttribute("type")===a&&(t=i[n]);return t}},this.setMp4Source=function(e,t){y("mp4",e,t)},this.setWebMSource=function(e,t){y("webm",e,t)},this.getVideoType=function(){return h.getVideoType(r)},this.reset=function(e){b((function(){r&&(d.setMp4Source(null),d.setWebMSource(null)),e&&e()}))},this.hide=function(){m()?(0,o.default)(e,!0):r&&(0,o.default)(r,!0)},this.isShown=function(){return r&&!(0,o.default)(r)},this.getParentElement=function(){return e}};(0,s.default)(d,f.default);n.default=d},{"../../events":119,"../../util/browser":124,"../../util/eventEmitter":126,"@babel/runtime/helpers/interopRequireDefault":4,"add-eventlistener-with-options":12,hidden:61,hyperscript:63,inherits:66,"iphone-inline-video":69}],147:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,t){c.default.call(this,t,"UserMedia");var n,r,p=e&&e.getRawVisualUserMedia(),m=new u.default(t),y=this,b=!1,g=!1;function v(e){e?function(e){if(r=e,void 0!==p.srcObject)p.srcObject=e;else{if(void 0===p.src)throw d.default.create("Error attaching stream to element.","Contact the developer about this",t);var n=window.URL||window.webkitURL;p.src=n.createObjectURL(e)||e}}(e):(p.removeAttribute("srcObject"),p.removeAttribute("src"),r=null)}function w(){return p.mozSrcObject?p.mozSrcObject:p.srcObject?p.srcObject:r}function E(){if(p.ended)return p.ended;var e=w();return e&&e.ended}function _(){if(p.videoWidth&&p.videoWidth<3||p.height&&p.height<3)return!0}function R(e,n){t.debug("UserMedia: ...",h,"event",e,(0,o.default)(n))}function S(e){R(e.type,{readyState:p.readyState}),p.removeEventListener&&p.removeEventListener(e.type,S)}this.unloadRemainingEventListeners=function(){t.debug("UserMedia: unloadRemainingEventListeners()"),l.default.forEach((function(e){p.removeEventListener(e,S)}))},this.init=function(e,r,i,o){var u=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};this.stop(e,{aboutToInitialize:!0,switchingFacingMode:u.switchingFacingMode});var c=!1,h=!1,b=!1;function g(){y.removeListener(a.default.SENDING_FIRST_FRAME,g),n&&n.record(i)}function w(){t.debug("UserMedia: unloadAllEventListeners()"),y.unloadRemainingEventListeners(),y.removeListener(a.default.SENDING_FIRST_FRAME,g),p.removeEventListener&&p.removeEventListener("play",O),p.removeEventListener&&p.removeEventListener("loadedmetadata",T)}function A(){try{if(p.load(),p.paused){var e;t.debug("UserMedia: play()","media.readyState=".concat(p.readyState),"media.paused=".concat(p.paused),"media.ended=".concat(p.ended),"media.played=".concat((0,f.default)(p.played)));try{e=p.play()}catch(e){t.logger.warn("Caught raw usermedia play exception:",e)}(n=e)&&"undefined"!=typeof Promise&&n instanceof Promise&&e.then((function(){b||(t.debug("UserMedia: play promise successful. Playing now."),b=!0)})).catch((function(e){t.logger.warn("Caught pending usermedia promise exception: %s",e.toString())}))}}catch(e){w(),o(e)}var n}function k(){var s=p.readyState;if(t.debug("UserMedia: fireCallbacks("+"readyState=".concat(s,", ")+"onPlayReached=".concat(c,", ")+"onLoadedMetaDataReached=".concat(h,")")),c&&h&&(r(),n&&i))try{n.init(e),y.on(a.default.SENDING_FIRST_FRAME,g)}catch(e){w(),o(e)}}function O(){try{R("play",{readyState:p.readyState,audio:t.isAudioEnabled(),width:p.width,height:p.height,videoWidth:p.videoWidth,videoHeight:p.videoHeight}),p.removeEventListener&&p.removeEventListener("play",O),E()||_()?o(d.default.create("Already busy","Probably another browser window is using your webcam?",t)):(c=!0,k())}catch(e){w(),o(e)}}function T(){R("loadedmetadata",{readyState:p.readyState,paused:p.paused,width:p.width,height:p.height,videoWidth:p.videoWidth,videoHeight:p.videoHeight}),p.removeEventListener&&p.removeEventListener("loadedmetadata",T),E()||_()||(y.emit(a.default.LOADED_META_DATA),m.isAndroid()&&A(),h=!0,k())}t&&t.isAudioEnabled()&&(n||(n=new s.default(this,t)));try{var x=function(e){var t,n=function(e){var t;return e&&e.getVideoTracks&&(t=e.getVideoTracks()),t}(e);return n&&n[0]&&(t=n[0]),t}(e);if(x){if(!x.enabled)throw d.default.create("Webcam is disabled","The video track seems to be disabled. Enable it in your system.",t);var j;x.label&&x.label.length>0&&(j=x.label),j+=" with enabled=".concat(x.enabled),j+=", muted=".concat(x.muted),j+=", remote=".concat(x.remote),j+=", readyState=".concat(x.readyState),j+=", error=".concat(x.error),t.debug("UserMedia: ".concat(x.kind," detected."),j||"")}else t.debug("UserMedia: detected (but no video tracks exist");l.default.forEach((function(e){p.addEventListener(e,S,!1)})),p.addEventListener("loadedmetadata",T),p.addEventListener("play",O),p.addEventListener("error",(function(e){t.logger.warn("Caught video element error event: %s",(0,f.default)(e))})),v(e),A()}catch(e){y.emit(a.default.ERROR,e)}},this.isReady=function(){return Boolean(p.src)},this.stop=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{var r=t.aboutToInitialize,i=t.switchingFacingMode;if(!r){e||(e=w());var o=function(e){var t;return e&&e.getTracks&&(t=e.getTracks()),t}(e),s=!1;o&&o.forEach((function(e){e.stop&&(s=!0,e.stop())})),!s&&e&&e.stop&&e.stop(),v(null),n&&n.stop(),n=null}i||(b=g=!1)}catch(e){y.emit(a.default.ERROR,e)}},this.createCanvas=function(){return(0,i.default)("canvas",{width:this.getRawWidth(!0),height:this.getRawHeight(!0)})},this.getVideoHeight=function(){return p.videoHeight},this.getVideoWidth=function(){return p.videoWidth},this.hasVideoWidth=function(){return this.getVideoWidth()>0},this.getRawWidth=function(n){var r=this.getVideoWidth(),i=t.hasDefinedWidth();return(i||t.hasDefinedHeight())&&(r=!n&&i?t.video.width:e.calculateWidth(n)),n&&(r=e.limitWidth(r)),r},this.getRawHeight=function(n){var r;if(t.hasDefinedDimension()){if((r=e.calculateHeight(n))<1)throw d.default.create("Bad dimensions","Calculated raw height cannot be less than 1!",t)}else if((r=this.getVideoHeight())<1)throw d.default.create("Bad dimensions","Raw video height from DOM element cannot be less than 1!",t);return n&&(r=e.limitHeight(r)),r},this.getRawVisuals=function(){return p},this.pause=function(){b=!0},this.isPaused=function(){return b},this.resume=function(){b=!1},this.record=function(){g=!0},this.isRecording=function(){return g},this.getAudioSampleRate=function(){return n?n.getSampleRate():-1},this.getCharacteristics=function(){return{audioSampleRate:this.getAudioSampleRate(),muted:p&&p.muted,width:p&&p.width,height:p&&p.height,videoWidth:p&&p.videoWidth,videoHeight:p&&p.videoHeight}}};var i=r(e("hyperscript")),o=r(e("safe-json-stringify")),a=r(e("./../../events")),s=r(e("./../../util/audioRecorder")),u=r(e("./../../util/browser")),c=r(e("./../../util/eventEmitter")),l=r(e("./../../util/mediaEvents")),f=r(e("./../../util/pretty")),d=r(e("./../../util/videomailError")),h="|—O—|"},{"./../../events":119,"./../../util/audioRecorder":123,"./../../util/browser":124,"./../../util/eventEmitter":126,"./../../util/mediaEvents":128,"./../../util/pretty":129,"./../../util/videomailError":131,"@babel/runtime/helpers/interopRequireDefault":4,hyperscript:63,"safe-json-stringify":99}],148:[function(e,t,n){"use strict";t.exports='@-webkit-keyframes blink{0%{opacity:.9}35%{opacity:.9}50%{opacity:.1}85%{opacity:.1}to{opacity:.9}}@keyframes blink{0%{opacity:.9}35%{opacity:.9}50%{opacity:.1}85%{opacity:.1}to{opacity:.9}}.IIV::-webkit-media-controls-play-button,.IIV::-webkit-media-controls-start-playback-button{opacity:0;pointer-events:none;width:5px}.videomail .visuals{position:relative}.videomail .visuals video.replay{height:100%;width:100%}.videomail .countdown,.videomail .pausedHeader,.videomail .pausedHint,.videomail .recordNote,.videomail .recordTimer{height:auto;margin:0}.videomail .countdown,.videomail .facingMode,.videomail .paused,.videomail .recordNote,.videomail .recordTimer,.videomail noscript{position:absolute;z-index:100}.videomail .countdown,.videomail .pausedHeader,.videomail .pausedHint,.videomail .recordNote,.videomail .recordTimer,.videomail noscript{font-weight:700}.videomail .countdown,.videomail .paused,.videomail noscript{top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:100%}.videomail .countdown,.videomail .pausedHeader,.videomail .pausedHint{letter-spacing:4px;text-align:center;text-shadow:-2px 0 #fff,0 2px #fff,2px 0 #fff,0 -2px #fff}.videomail .countdown,.videomail .pausedHeader{font-size:460%;opacity:.9}.videomail .pausedHint{font-size:150%}.videomail .facingMode{background:rgba(30,30,30,.5);border:none;bottom:.6em;color:hsla(0,0%,96%,.9);font-family:monospace;font-size:1.2em;outline:none;padding:.1em .3em;right:.7em;-webkit-transition:all .2s ease;transition:all .2s ease;z-index:10}.videomail .facingMode:hover{background:rgba(50,50,50,.7);cursor:pointer}.videomail .recordNote,.videomail .recordTimer{background:hsla(0,0%,4%,.8);color:#00d814;font-family:monospace;opacity:.9;padding:.3em .4em;right:.7em;-webkit-transition:all 1s ease;transition:all 1s ease}.videomail .recordNote.near,.videomail .recordTimer.near{color:#eb9369}.videomail .recordNote.nigh,.videomail .recordTimer.nigh{color:#ea4b2a}.videomail .recordTimer{top:.7em}.videomail .recordNote{top:3.6em}.videomail .recordNote:before{-webkit-animation:blink 1s infinite;animation:blink 1s infinite;content:"REC"}.videomail .notifier{-webkit-box-sizing:border-box;box-sizing:border-box;height:100%;overflow:hidden}.videomail .radioGroup{display:block}.videomail video{margin-bottom:0}.videomail video.userMedia{background-color:rgba(50,50,50,.1)}'},{}],"videomail-client":[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(e("./client"));(0,r(e("./util/standardize")).default)(window,navigator);n.default=i.default},{"./client":117,"./util/standardize":130,"@babel/runtime/helpers/interopRequireDefault":4}]},{},["videomail-client"])("videomail-client")}));
51
51
  //# sourceMappingURL=videomail-client.min.js.map