videomail-client 8.0.0 → 8.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,8 @@
1
- !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).VideomailClient=e()}}((function(){return function e(t,n,r){function i(a,u){if(!n[a]){if(!t[a]){var s="function"==typeof require&&require;if(!u&&s)return s(a,!0);if(o)return o(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var c=n[a]={exports:{}};t[a][0].call(c.exports,(function(e){return i(t[a][1][e]||e)}),c,c.exports,e,t,n,r)}return n[a].exports}for(var o="function"==typeof require&&require,a=0;a<r.length;a++)i(r[a]);return i}({1:[function(e,t,n){t.exports=function(e){return e&&e.__esModule?e:{default:e}},t.exports.__esModule=!0,t.exports.default=t.exports},{}],2:[function(e,t,n){function r(e){return t.exports=r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t.exports.__esModule=!0,t.exports.default=t.exports,r(e)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports},{}],3:[function(e,t,n){var r,i;r=this,i=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,i){var o,a,u,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"passive";if(void 0!==e.addEventListener){var l=r.SupportMap[s]?Object.assign({},i,(u=!0,(a=s)in(o={})?Object.defineProperty(o,a,{value:u,enumerable:!0,configurable:!0,writable:!0}):o[a]=u,o)):i;e.addEventListener(t,n,l)}};var r=n(1)},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.SupportMap=void 0;var i=n(2);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a=(o(r={},i.PASSIVE,!1),o(r,i.CAPTURE,!1),o(r,i.ONCE,!1),r);t.SupportMap=(Object.keys(a).forEach((function(e,t){a[e]=function(e){if(a[e])return a[e];try{var t=Object.defineProperty({},e,{get:function(){a[e]=!0}});window.addEventListener("test",null,t),window.removeListener("test",null)}catch(e){}return a[e]}(e)})),a)},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PASSIVE="passive",t.CAPTURE="capture",t.ONCE="once"}])},"object"==typeof n&&"object"==typeof t?t.exports=i():"object"==typeof n?n["add-eventlistener-with-options"]=i():r["add-eventlistener-with-options"]=i()},{}],4:[function(e,t,n){var r,i=e("events").EventEmitter,o=e("inherits"),a=e("raf"),u={requestAnimationFrame:a,cancelAnimationFrame:a.cancel};function s(){return!0}function l(e){e=e||{},this.__delay=e.delay||0,this.fixedDelta=!!e.fixedDelta,this.frameCount=0,this.deltaTime=0,this.elapsedTime=0,this.__running=!1,this.__completed=!1,this.setFPS(e.fps||1/0),this.setRequestAnimationFrameObject(e.requestAnimationFrameObject||u)}function c(e){var t,r=Date.now();if(e.__running)return e;n.running+=1,e.__running=!0,e.__lastTime=r,e.deltaTime=0,e.emit("start",e.deltaTime,0,e.frameCount);var i=e.requestAnimationFrameObject,o=function(){if(i!==e.requestAnimationFrameObject)return i=e.requestAnimationFrameObject,void e.requestAnimationFrameObject.requestAnimationFrame(o);e.__isReadyForUpdate()&&e.update(),e.__running?t=e.requestAnimationFrameObject.requestAnimationFrame(o):e.requestAnimationFrameObject.cancelAnimationFrame(t)};return e.requestAnimationFrameObject.requestAnimationFrame(o),e}for(var f in o(l,i),r={off:i.prototype.removeListener,trigger:i.prototype.emit,complete:function(){return this.stop(),this.__completed=!0,this.emit("complete",this.frameCount,this.deltaTime),this},dispose:function(){return this.stop(),this.removeAllListeners(),this},getDeltaTime:function(){return this.deltaTime},getElapsedTime:function(){return this.elapsedTime},getFPS:function(){return this.deltaTime>0?1e3/this.deltaTime:0},getFPSLimit:function(){return this.__fps},getFrameCount:function(){return this.frameCount},getRequestAnimationFrameObject:function(){return this.requestAnimationFrameObject},isRunning:function(){return this.__running},isCompleted:function(){return this.__completed},reset:function(){return this.stop(),this.__completed=!1,this.__lastTime=0,this.deltaTime=0,this.elapsedTime=0,this.frameCount=0,this.emit("reset",0,0,this.frameCount),this},setFPS:function(e){return this.__fps=e,this.__isReadyForUpdate=function(e){var t=1e3/e,n=Date.now();if(e<=0||e===1/0)return s;var r=Math.ceil(1e3/60)/2;return function(){var e=Date.now();return!(e-n<t-r||(n=e,0))}}(e),this},setRequestAnimationFrameObject:function(e){if("function"!=typeof e.requestAnimationFrame||"function"!=typeof e.cancelAnimationFrame)throw new Error("Invalid object provide to `setRequestAnimationFrameObject`");return this.requestAnimationFrameObject=e,this},start:function(){var e=this;return this.__delay?setTimeout((function(){c(e)}),this.__delay):c(this),this},stop:function(){return this.__running&&(this.__running=!1,n.running-=1,this.emit("stop",this.deltaTime,this.elapsedTime,this.frameCount)),this},update:function(){this.frameCount++;var e=Date.now();return this.__lastTime=this.__lastTime||e,this.deltaTime=this.fixedDelta||n.globalFixedDelta?1e3/Math.min(60,this.__fps):e-this.__lastTime,this.elapsedTime+=this.deltaTime,this.__lastTime=e,this.emit("update",this.deltaTime,this.elapsedTime,this.frameCount),this}})l.prototype[f]=r[f];function d(e,t){1===arguments.length&&"function"==typeof e&&(t=e,e={});var n=new l(e);return t&&n.on("update",t),n}function p(e,t){return"function"==typeof e.bind?e.bind(t):function(){return e.apply(t,arguments)}}t.exports=n=d,n.bound=function(e,t){for(var n,r=d(e,t),i=function(e){for(var t=Object.keys(e),n=[],r=0;r<t.length;r++)"function"==typeof e[t[r]]&&n.push(t[r]);return n}(l.prototype),o=!!Function.prototype.bind,a=0;a<i.length;a++)r[n=i[a]]=o?r[n].bind(r):p(r[n],r);return r},n.Animitter=l,n.globalFixedDelta=!1,n.EventEmitter=i,n.running=0,Date.now=Date.now||function(){return(new Date).getTime()}},{events:37,inherits:61,raf:84}],5:[function(e,t,n){(function(e){(function(){!function(n){"use strict";var r,i="function"==typeof(r=n.atob)?r:"function"==typeof e?function(t){
1
+ !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).VideomailClient=e()}}((function(){return function e(t,n,r){function i(a,u){if(!n[a]){if(!t[a]){var s="function"==typeof require&&require;if(!u&&s)return s(a,!0);if(o)return o(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var c=n[a]={exports:{}};t[a][0].call(c.exports,(function(e){return i(t[a][1][e]||e)}),c,c.exports,e,t,n,r)}return n[a].exports}for(var o="function"==typeof require&&require,a=0;a<r.length;a++)i(r[a]);return i}({1:[function(e,t,n){t.exports=function(e){return e&&e.__esModule?e:{default:e}},t.exports.__esModule=!0,t.exports.default=t.exports},{}],2:[function(e,t,n){function r(e){return t.exports=r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t.exports.__esModule=!0,t.exports.default=t.exports,r(e)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports},{}],3:[function(e,t,n){var r,i;r=this,i=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,i){var o,a,u,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"passive";if(void 0!==e.addEventListener){var l=r.SupportMap[s]?Object.assign({},i,(u=!0,(a=s)in(o={})?Object.defineProperty(o,a,{value:u,enumerable:!0,configurable:!0,writable:!0}):o[a]=u,o)):i;e.addEventListener(t,n,l)}};var r=n(1)},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.SupportMap=void 0;var i=n(2);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a=(o(r={},i.PASSIVE,!1),o(r,i.CAPTURE,!1),o(r,i.ONCE,!1),r);t.SupportMap=(Object.keys(a).forEach((function(e,t){a[e]=function(e){if(a[e])return a[e];try{var t=Object.defineProperty({},e,{get:function(){a[e]=!0}});window.addEventListener("test",null,t),window.removeListener("test",null)}catch(e){}return a[e]}(e)})),a)},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PASSIVE="passive",t.CAPTURE="capture",t.ONCE="once"}])},"object"==typeof n&&"object"==typeof t?t.exports=i():"object"==typeof n?n["add-eventlistener-with-options"]=i():r["add-eventlistener-with-options"]=i()},{}],4:[function(e,t,n){var r,i=e("events").EventEmitter,o=e("inherits"),a=e("raf"),u={requestAnimationFrame:a,cancelAnimationFrame:a.cancel};function s(){return!0}function l(e){e=e||{},this.__delay=e.delay||0,this.fixedDelta=!!e.fixedDelta,this.frameCount=0,this.deltaTime=0,this.elapsedTime=0,this.__running=!1,this.__completed=!1,this.setFPS(e.fps||1/0),this.setRequestAnimationFrameObject(e.requestAnimationFrameObject||u)}function c(e){var t,r=Date.now();if(e.__running)return e;n.running+=1,e.__running=!0,e.__lastTime=r,e.deltaTime=0,e.emit("start",e.deltaTime,0,e.frameCount);var i=e.requestAnimationFrameObject,o=function(){if(i!==e.requestAnimationFrameObject)return i=e.requestAnimationFrameObject,void e.requestAnimationFrameObject.requestAnimationFrame(o);e.__isReadyForUpdate()&&e.update(),e.__running?t=e.requestAnimationFrameObject.requestAnimationFrame(o):e.requestAnimationFrameObject.cancelAnimationFrame(t)};return e.requestAnimationFrameObject.requestAnimationFrame(o),e}for(var f in o(l,i),r={off:i.prototype.removeListener,trigger:i.prototype.emit,complete:function(){return this.stop(),this.__completed=!0,this.emit("complete",this.frameCount,this.deltaTime),this},dispose:function(){return this.stop(),this.removeAllListeners(),this},getDeltaTime:function(){return this.deltaTime},getElapsedTime:function(){return this.elapsedTime},getFPS:function(){return this.deltaTime>0?1e3/this.deltaTime:0},getFPSLimit:function(){return this.__fps},getFrameCount:function(){return this.frameCount},getRequestAnimationFrameObject:function(){return this.requestAnimationFrameObject},isRunning:function(){return this.__running},isCompleted:function(){return this.__completed},reset:function(){return this.stop(),this.__completed=!1,this.__lastTime=0,this.deltaTime=0,this.elapsedTime=0,this.frameCount=0,this.emit("reset",0,0,this.frameCount),this},setFPS:function(e){return this.__fps=e,this.__isReadyForUpdate=function(e){var t=1e3/e,n=Date.now();if(e<=0||e===1/0)return s;var r=Math.ceil(1e3/60)/2;return function(){var e=Date.now();return!(e-n<t-r||(n=e,0))}}(e),this},setRequestAnimationFrameObject:function(e){if("function"!=typeof e.requestAnimationFrame||"function"!=typeof e.cancelAnimationFrame)throw new Error("Invalid object provide to `setRequestAnimationFrameObject`");return this.requestAnimationFrameObject=e,this},start:function(){var e=this;return this.__delay?setTimeout((function(){c(e)}),this.__delay):c(this),this},stop:function(){return this.__running&&(this.__running=!1,n.running-=1,this.emit("stop",this.deltaTime,this.elapsedTime,this.frameCount)),this},update:function(){this.frameCount++;var e=Date.now();return this.__lastTime=this.__lastTime||e,this.deltaTime=this.fixedDelta||n.globalFixedDelta?1e3/Math.min(60,this.__fps):e-this.__lastTime,this.elapsedTime+=this.deltaTime,this.__lastTime=e,this.emit("update",this.deltaTime,this.elapsedTime,this.frameCount),this}})l.prototype[f]=r[f];function d(e,t){1===arguments.length&&"function"==typeof e&&(t=e,e={});var n=new l(e);return t&&n.on("update",t),n}function p(e,t){return"function"==typeof e.bind?e.bind(t):function(){return e.apply(t,arguments)}}t.exports=n=d,n.bound=function(e,t){for(var n,r=d(e,t),i=function(e){for(var t=Object.keys(e),n=[],r=0;r<t.length;r++)"function"==typeof e[t[r]]&&n.push(t[r]);return n}(l.prototype),o=!!Function.prototype.bind,a=0;a<i.length;a++)r[n=i[a]]=o?r[n].bind(r):p(r[n],r);return r},n.Animitter=l,n.globalFixedDelta=!1,n.EventEmitter=i,n.running=0,Date.now=Date.now||function(){return(new Date).getTime()}},{events:37,inherits:61,raf:85}],5:[function(e,t,n){(function(e){(function(){!function(n){"use strict";var r,i="function"==typeof(r=n.atob)?r:"function"==typeof e?function(t){
2
2
  //!! Deliberately using an API that's deprecated in node.js because
3
3
  //!! this file is for browsers and we expect them to cope with it.
4
4
  //!! Discussion: github.com/node-browser-compat/atob/pull/9
5
- return new e(t,"base64").toString("binary")}:"object"==typeof n.base64js?function(e){var t=n.base64js.b64ToByteArray(e);return Array.prototype.map.call(t,(function(e){return String.fromCharCode(e)})).join("")}:function(){throw new Error("You're probably in an old browser or an iOS webworker. It might help to include beatgammit's base64-js.")};n.atob=i,"object"==typeof t&&t&&t.exports&&(t.exports=i)}(window)}).call(this)}).call(this,e("buffer").Buffer)},{buffer:11}],6:[function(e,t,n){var r=e("typedarray-to-buffer"),i=e("validate.io-float32array");t.exports=function(e){if(!e)throw new Error("A Float32Array parameter is missing.");if(!i(e))throw new Error("The parameter is not a Float32Array.");this.toBuffer=function(){var t,n=e.length,i=new Int16Array(n);for(t=0;t<n;t++)i[t]=32767*Math.min(1,e[t]);return r(i)}}},{"typedarray-to-buffer":110,"validate.io-float32array":116}],7:[function(e,t,n){(function(e){(function(){"use strict";var n=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],r="undefined"==typeof globalThis?e:globalThis;t.exports=function(){for(var e=[],t=0;t<n.length;t++)"function"==typeof r[n[t]]&&(e[e.length]=n[t]);return e}}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],8:[function(e,t,n){"use strict";n.byteLength=function(e){var t=s(e),n=t[0],r=t[1];return 3*(n+r)/4-r},n.toByteArray=function(e){var t,n,r=s(e),a=r[0],u=r[1],l=new o(function(e,t,n){return 3*(t+n)/4-n}(0,a,u)),c=0,f=u>0?a-4:a;for(n=0;n<f;n+=4)t=i[e.charCodeAt(n)]<<18|i[e.charCodeAt(n+1)]<<12|i[e.charCodeAt(n+2)]<<6|i[e.charCodeAt(n+3)],l[c++]=t>>16&255,l[c++]=t>>8&255,l[c++]=255&t;2===u&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,l[c++]=255&t);1===u&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,l[c++]=t>>8&255,l[c++]=255&t);return l},n.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],a=16383,u=0,s=n-i;u<s;u+=a)o.push(l(e,u,u+a>s?s:u+a));1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return o.join("")};for(var r=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=0;u<64;++u)r[u]=a[u],i[a.charCodeAt(u)]=u;function s(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e,t,n){for(var i,o,a=[],u=t;u<n;u+=3)i=(e[u]<<16&16711680)+(e[u+1]<<8&65280)+(255&e[u+2]),a.push(r[(o=i)>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},{}],9:[function(e,t,n){},{}],10:[function(e,t,n){
5
+ return new e(t,"base64").toString("binary")}:"object"==typeof n.base64js?function(e){var t=n.base64js.b64ToByteArray(e);return Array.prototype.map.call(t,(function(e){return String.fromCharCode(e)})).join("")}:function(){throw new Error("You're probably in an old browser or an iOS webworker. It might help to include beatgammit's base64-js.")};n.atob=i,"object"==typeof t&&t&&t.exports&&(t.exports=i)}(window)}).call(this)}).call(this,e("buffer").Buffer)},{buffer:11}],6:[function(e,t,n){var r=e("typedarray-to-buffer"),i=e("validate.io-float32array");t.exports=function(e){if(!e)throw new Error("A Float32Array parameter is missing.");if(!i(e))throw new Error("The parameter is not a Float32Array.");this.toBuffer=function(){var t,n=e.length,i=new Int16Array(n);for(t=0;t<n;t++)i[t]=32767*Math.min(1,e[t]);return r(i)}}},{"typedarray-to-buffer":111,"validate.io-float32array":117}],7:[function(e,t,n){(function(n){(function(){"use strict";var r=e("possible-typed-array-names"),i="undefined"==typeof globalThis?n:globalThis;t.exports=function(){for(var e=[],t=0;t<r.length;t++)"function"==typeof i[r[t]]&&(e[e.length]=r[t]);return e}}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"possible-typed-array-names":77}],8:[function(e,t,n){"use strict";n.byteLength=function(e){var t=s(e),n=t[0],r=t[1];return 3*(n+r)/4-r},n.toByteArray=function(e){var t,n,r=s(e),a=r[0],u=r[1],l=new o(function(e,t,n){return 3*(t+n)/4-n}(0,a,u)),c=0,f=u>0?a-4:a;for(n=0;n<f;n+=4)t=i[e.charCodeAt(n)]<<18|i[e.charCodeAt(n+1)]<<12|i[e.charCodeAt(n+2)]<<6|i[e.charCodeAt(n+3)],l[c++]=t>>16&255,l[c++]=t>>8&255,l[c++]=255&t;2===u&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,l[c++]=255&t);1===u&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,l[c++]=t>>8&255,l[c++]=255&t);return l},n.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],a=16383,u=0,s=n-i;u<s;u+=a)o.push(l(e,u,u+a>s?s:u+a));1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return o.join("")};for(var r=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=0;u<64;++u)r[u]=a[u],i[a.charCodeAt(u)]=u;function s(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e,t,n){for(var i,o,a=[],u=t;u<n;u+=3)i=(e[u]<<16&16711680)+(e[u+1]<<8&65280)+(255&e[u+2]),a.push(r[(o=i)>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},{}],9:[function(e,t,n){},{}],10:[function(e,t,n){
6
6
  /*!
7
7
  * Cross-Browser Split 1.1.1
8
8
  * Copyright 2007-2012 Steven Levithan <stevenlevithan.com>
@@ -16,23 +16,23 @@ t.exports=function(e){var t,n=String.prototype.split,r=/()??/.exec("")[1]===e;re
16
16
  * @author Feross Aboukhadijeh <https://feross.org>
17
17
  * @license MIT
18
18
  */
19
- "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 l(e)}return u(e,t,n)}function u(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 c(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||W(e.length)?o(0):c(e);if("Buffer"===e.type&&Array.isArray(e.data))return c(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 s(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 l(e){return s(e),o(e<0?0:0|f(e))}function c(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 L(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:L(e).length;t=(""+t).toLowerCase(),i=!0}}function p(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 R(this,t,n);case"ascii":return O(this,t,n);case"latin1":case"binary":return k(this,t,n);case"base64":return S(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 h(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),W(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,u=e.length,s=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,u/=2,s/=2,n/=2}function l(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var c=-1;for(o=n;o<u;o++)if(l(e,o)===l(t,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===s)return c*a}else-1!==c&&(o-=o-c),c=-1}else for(n+s>u&&(n=u-s),o=n;o>=0;o--){for(var f=!0,d=0;d<s;d++)if(l(e,o+d)!==l(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 u=parseInt(t.substr(2*a,2),16);if(W(u))return a;e[n+a]=u}return a}function g(e,t,n,r){return U(L(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 S(e,n,r){return 0===n&&r===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(n,r))}function R(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o,a,u,s,l=e[i],c=null,f=l>239?4:l>223?3:l>191?2:1;if(i+f<=n)switch(f){case 1:l<128&&(c=l);break;case 2:128==(192&(o=e[i+1]))&&(s=(31&l)<<6|63&o)>127&&(c=s);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(s=(15&l)<<12|(63&o)<<6|63&a)>2047&&(s<55296||s>57343)&&(c=s);break;case 4:o=e[i+1],a=e[i+2],u=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&u)&&(s=(15&l)<<18|(63&o)<<12|(63&a)<<6|63&u)>65535&&s<1114112&&(c=s)}null===c?(c=65533,f=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),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 u(e,t,n)},a.prototype.__proto__=Uint8Array.prototype,a.__proto__=Uint8Array,a.alloc=function(e,t,n){return function(e,t,n){return s(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 l(e)},a.allocUnsafeSlow=function(e){return l(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)h(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)h(this,t,t+3),h(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)h(this,t,t+7),h(this,t+1,t+6),h(this,t+2,t+5),h(this,t+3,t+4);return this},a.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?R(this,0,e):p.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),u=(n>>>=0)-(t>>>=0),s=Math.min(o,u),l=this.slice(r,i),c=e.slice(t,n),f=0;f<s;++f)if(l[f]!==c[f]){o=l[f],u=c[f];break}return o<u?-1:u<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+=P(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 M(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 D(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||D(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||D(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)||M(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)||M(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||M(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||M(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||M(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||M(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||M(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);M(this,e,t,n,i-1,-i)}var o=0,a=1,u=0;for(this[t]=255&e;++o<n&&(a*=256);)e<0&&0===u&&0!==this[t+o-1]&&(u=1),this[t+o]=(e/a>>0)-u&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);M(this,e,t,n,i-1,-i)}var o=n-1,a=1,u=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===u&&0!==this[t+o+1]&&(u=1),this[t+o]=(e/a>>0)-u&255;return t+n},a.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||M(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||M(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||M(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||M(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||M(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 u=a.isBuffer(e)?e:a.from(e,r),s=u.length;if(0===s)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<n-t;++o)this[o+t]=u[o%s]}return this};var I=/[^+/0-9A-Za-z-_]/g;function P(e){return e<16?"0"+e.toString(16):e.toString(16)}function L(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 W(e){return e!=e}}).call(this)}).call(this,e("buffer").Buffer)},{"base64-js":8,buffer:11,ieee754:59}],12:[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}},{"./":13,"get-intrinsic":44}],13:[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"),u=i("%Function.prototype.apply%"),s=i("%Function.prototype.call%"),l=i("%Reflect.apply%",!0)||r.call(s,u),c=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=l(r,s,arguments);return o(t,1+f(0,e.length-(arguments.length-1)),!0)};var d=function(){return l(r,u,arguments)};c?c(t.exports,"apply",{value:d}):t.exports.apply=d},{"es-define-property":29,"es-errors/type":35,"function-bind":42,"get-intrinsic":44,"set-function-length":101}],14:[function(e,t,n){var r,i=e("typedarray-to-buffer"),o=e("atob"),a="undefined"!=typeof document&&"function"==typeof document.createElement;t.exports=function(e,t){void 0===t&&(t={});var n=this;if(t.image=t.image?t.image:{},t.image.types=t.image.types?t.image.types:[],t.image.types.length>2)throw new Error("Too many image types are specified!");t.image.types.length<1&&(t.image.types=a?["webp","jpeg"]:["png"]),t.image.quality||(t.image.quality=.5);var u=parseFloat(t.image.quality);function s(e){var n;return t.image.types[e]&&(n="image/"+t.image.types[e]),n}function l(e,n){var r=e&&e.match(n);return r&&t.debug&&t.debug("Image type %s verified",n),r}function c(){var t;return a?(t=document.createElement("canvas")).width=t.height=1:t=e,t}function f(e,t){try{c().toDataURL(e,(function(n,r){n?t(n):t(null,l(r,e))}))}catch(e){t(null,!1)}}function d(e){var n;try{var r=c();n=l(r.toDataURL&&r.toDataURL(e),e)}catch(n){t.debug&&t.logger.debug("Failed to call toDataURL() on canvas for image type %s",e)}return n}function p(e){var n=s(0);if(!e)return function(e){return d(e)||t.image.types[1]&&d(e=s(1))||(e=null),!e&&t.debug&&t.logger.debug("Unable to verify image type"),e}(n);!function(e,t){f(e,(function(n,r){n?t(n):r?t(null,e):f(e=s(1),(function(n,r){n?t(n):t(null,r?e:null)}))}))}(n,e)}function h(e){var t,r=e.split(",")[1];if("function"==typeof o)t=o(r);else{if("function"!=typeof n.constructor.atob)throw new Error("atob function is missing");t=n.constructor.atob(r)}for(var a=new Uint8Array(t.length),u=0,s=t.length;u<s;u++)a[u]=t.charCodeAt(u);return i(a)}this.toBuffer=function(t){if(!t)return(i=n.getImageType())&&(r=h(e.toDataURL(i,u))),r;var r,i;!function(t){n.getImageType((function(n,r){n?t(n):r?e.toDataURL(r,(function(e,n){e?t(e):t(null,h(n))})):t()}))}(t)},this.getImageType=function(e){if(!e)return r&&a||(r=p()),r;r&&a?e(null,r):p((function(t,n){t?e(t):e(null,r=n)}))}}},{atob:5,"typedarray-to-buffer":110}],15:[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:u,toggle:function(e){return u(e)?(a(e),!1):(o(e),!0)},toString:function(){return e.className},length:0,item:function(e){return s()[e]||null}};return n;function o(e){var t=s();r(t,e)>-1||(t.push(e),l(t))}function a(e){var t=s(),n=r(t,e);-1!==n&&(t.splice(n,1),l(t))}function u(e){return r(s(),e)>-1}function s(){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 l(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:60}],16:[function(e,t,n){
19
+ "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 l(e)}return u(e,t,n)}function u(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 c(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||W(e.length)?o(0):c(e);if("Buffer"===e.type&&Array.isArray(e.data))return c(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 s(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 l(e){return s(e),o(e<0?0:0|f(e))}function c(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 L(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:L(e).length;t=(""+t).toLowerCase(),i=!0}}function p(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 R(this,t,n);case"ascii":return O(this,t,n);case"latin1":case"binary":return k(this,t,n);case"base64":return S(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 h(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),W(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,u=e.length,s=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,u/=2,s/=2,n/=2}function l(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var c=-1;for(o=n;o<u;o++)if(l(e,o)===l(t,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===s)return c*a}else-1!==c&&(o-=o-c),c=-1}else for(n+s>u&&(n=u-s),o=n;o>=0;o--){for(var f=!0,d=0;d<s;d++)if(l(e,o+d)!==l(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 u=parseInt(t.substr(2*a,2),16);if(W(u))return a;e[n+a]=u}return a}function g(e,t,n,r){return U(L(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 S(e,n,r){return 0===n&&r===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(n,r))}function R(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o,a,u,s,l=e[i],c=null,f=l>239?4:l>223?3:l>191?2:1;if(i+f<=n)switch(f){case 1:l<128&&(c=l);break;case 2:128==(192&(o=e[i+1]))&&(s=(31&l)<<6|63&o)>127&&(c=s);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(s=(15&l)<<12|(63&o)<<6|63&a)>2047&&(s<55296||s>57343)&&(c=s);break;case 4:o=e[i+1],a=e[i+2],u=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&u)&&(s=(15&l)<<18|(63&o)<<12|(63&a)<<6|63&u)>65535&&s<1114112&&(c=s)}null===c?(c=65533,f=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),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 u(e,t,n)},a.prototype.__proto__=Uint8Array.prototype,a.__proto__=Uint8Array,a.alloc=function(e,t,n){return function(e,t,n){return s(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 l(e)},a.allocUnsafeSlow=function(e){return l(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)h(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)h(this,t,t+3),h(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)h(this,t,t+7),h(this,t+1,t+6),h(this,t+2,t+5),h(this,t+3,t+4);return this},a.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?R(this,0,e):p.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),u=(n>>>=0)-(t>>>=0),s=Math.min(o,u),l=this.slice(r,i),c=e.slice(t,n),f=0;f<s;++f)if(l[f]!==c[f]){o=l[f],u=c[f];break}return o<u?-1:u<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+=P(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 M(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 D(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||D(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||D(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)||M(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)||M(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||M(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||M(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||M(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||M(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||M(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);M(this,e,t,n,i-1,-i)}var o=0,a=1,u=0;for(this[t]=255&e;++o<n&&(a*=256);)e<0&&0===u&&0!==this[t+o-1]&&(u=1),this[t+o]=(e/a>>0)-u&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);M(this,e,t,n,i-1,-i)}var o=n-1,a=1,u=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===u&&0!==this[t+o+1]&&(u=1),this[t+o]=(e/a>>0)-u&255;return t+n},a.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||M(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||M(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||M(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||M(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||M(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 u=a.isBuffer(e)?e:a.from(e,r),s=u.length;if(0===s)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<n-t;++o)this[o+t]=u[o%s]}return this};var I=/[^+/0-9A-Za-z-_]/g;function P(e){return e<16?"0"+e.toString(16):e.toString(16)}function L(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 W(e){return e!=e}}).call(this)}).call(this,e("buffer").Buffer)},{"base64-js":8,buffer:11,ieee754:59}],12:[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}},{"./":13,"get-intrinsic":44}],13:[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"),u=i("%Function.prototype.apply%"),s=i("%Function.prototype.call%"),l=i("%Reflect.apply%",!0)||r.call(s,u),c=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=l(r,s,arguments);return o(t,1+f(0,e.length-(arguments.length-1)),!0)};var d=function(){return l(r,u,arguments)};c?c(t.exports,"apply",{value:d}):t.exports.apply=d},{"es-define-property":29,"es-errors/type":35,"function-bind":42,"get-intrinsic":44,"set-function-length":102}],14:[function(e,t,n){var r,i=e("typedarray-to-buffer"),o=e("atob"),a="undefined"!=typeof document&&"function"==typeof document.createElement;t.exports=function(e,t){void 0===t&&(t={});var n=this;if(t.image=t.image?t.image:{},t.image.types=t.image.types?t.image.types:[],t.image.types.length>2)throw new Error("Too many image types are specified!");t.image.types.length<1&&(t.image.types=a?["webp","jpeg"]:["png"]),t.image.quality||(t.image.quality=.5);var u=parseFloat(t.image.quality);function s(e){var n;return t.image.types[e]&&(n="image/"+t.image.types[e]),n}function l(e,n){var r=e&&e.match(n);return r&&t.debug&&t.debug("Image type %s verified",n),r}function c(){var t;return a?(t=document.createElement("canvas")).width=t.height=1:t=e,t}function f(e,t){try{c().toDataURL(e,(function(n,r){n?t(n):t(null,l(r,e))}))}catch(e){t(null,!1)}}function d(e){var n;try{var r=c();n=l(r.toDataURL&&r.toDataURL(e),e)}catch(n){t.debug&&t.logger.debug("Failed to call toDataURL() on canvas for image type %s",e)}return n}function p(e){var n=s(0);if(!e)return function(e){return d(e)||t.image.types[1]&&d(e=s(1))||(e=null),!e&&t.debug&&t.logger.debug("Unable to verify image type"),e}(n);!function(e,t){f(e,(function(n,r){n?t(n):r?t(null,e):f(e=s(1),(function(n,r){n?t(n):t(null,r?e:null)}))}))}(n,e)}function h(e){var t,r=e.split(",")[1];if("function"==typeof o)t=o(r);else{if("function"!=typeof n.constructor.atob)throw new Error("atob function is missing");t=n.constructor.atob(r)}for(var a=new Uint8Array(t.length),u=0,s=t.length;u<s;u++)a[u]=t.charCodeAt(u);return i(a)}this.toBuffer=function(t){if(!t)return(i=n.getImageType())&&(r=h(e.toDataURL(i,u))),r;var r,i;!function(t){n.getImageType((function(n,r){n?t(n):r?e.toDataURL(r,(function(e,n){e?t(e):t(null,h(n))})):t()}))}(t)},this.getImageType=function(e){if(!e)return r&&a||(r=p()),r;r&&a?e(null,r):p((function(t,n){t?e(t):e(null,r=n)}))}}},{atob:5,"typedarray-to-buffer":111}],15:[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:u,toggle:function(e){return u(e)?(a(e),!1):(o(e),!0)},toString:function(){return e.className},length:0,item:function(e){return s()[e]||null}};return n;function o(e){var t=s();r(t,e)>-1||(t.push(e),l(t))}function a(e){var t=s(),n=r(t,e);-1!==n&&(t.splice(n,1),l(t))}function u(e){return r(s(),e)>-1}function s(){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 l(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:60}],16:[function(e,t,n){
20
20
  /*! @source http://purl.eligrey.com/github/classList.js/blob/master/classList.js */
21
- "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},u=function(e,t){this.name=e,this.code=DOMException[e],this.message=t},s=function(e,t){if(""===t)throw new u("SYNTAX_ERR","An invalid or illegal string was specified");if(/\s/.test(t))throw new u("INVALID_CHARACTER_ERR","String contains an invalid character");return a.call(e,t)},l=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())}},c=l[n]=[],f=function(){return new l(this)};if(u[n]=Error[n],c.item=function(e){return this[e]||null},c.contains=function(e){return-1!==s(this,e+="")},c.add=function(){var e,t=arguments,n=0,r=t.length,i=!1;do{-1===s(this,e=t[n]+"")&&(this.push(e),i=!0)}while(++n<r);i&&this._updateClassName()},c.remove=function(){var e,t,n=arguments,r=0,i=n.length,o=!1;do{for(t=s(this,e=n[r]+"");-1!==t;)this.splice(t,1),o=!0,t=s(this,e)}while(++r<i);o&&this._updateClassName()},c.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},c.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}())},{}],17:[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}},{}],18:[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}},{}],19:[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:11}],20:[function(e,t,n){!function(e){"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 u(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 s(){this.constructor=u}return s.prototype=o.prototype,u.prototype=new s,u.prototype.name=""+i||"CustomError",u};function t(e){return"function"==typeof e}function n(t,n){if((u=n)&&"object"==typeof u&&"[object Object]"===e.call(u))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 u}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}}))}()},{}],21:[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)?c((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 u(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 s(e,t){try{return t in e}catch(e){return!1}}function l(e,t,n){var r={};return n.isMergeableObject(e)&&u(e).forEach((function(t){r[t]=o(e[t],n)})),u(t).forEach((function(i){(function(e,t){return s(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(s(e,i)&&n.isMergeableObject(t[i])?r[i]=function(e,t){if(!t.customMerge)return c;var n=t.customMerge(e);return"function"==typeof n?n:c}(i,n)(e[i],t[i],n):r[i]=o(t[i],n))})),r}function c(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):l(e,t,n):o(t,n)}c.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return c(e,n,t)}),{})};var f=c;t.exports=f},{}],22:[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 u=arguments.length>3?arguments[3]:null,s=arguments.length>4?arguments[4]:null,l=arguments.length>5?arguments[5]:null,c=arguments.length>6&&arguments[6],f=!!a&&a(e,t);if(r)r(e,t,{configurable:null===l&&f?f.configurable:!l,enumerable:null===u&&f?f.enumerable:!u,value:n,writable:null===s&&f?f.writable:!s});else{if(!c&&(u||s||l))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":29,"es-errors/syntax":34,"es-errors/type":35,gopd:49}],23:[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]}},{}],24:[function(e,t,n){var r,i=e("util"),o=e("global"),a=e("events");t.exports=(r=function(){if(o._singletonDespotInstance)return o._singletonDespotInstance;o._singletonDespotInstance=this,a.call(this)},i.inherits(r,a),new r)},{events:37,global:48,util:115}],25:[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":26,geval:46,"global/document":47}],26:[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}},{}],27:[function(e,t,n){t.exports=function(e){var t=e.Element.prototype;"function"!=typeof t.matches&&(t.matches=t.msMatchesSelector||t.mozMatchesSelector||t.webkitMatchesSelector||function(e){for(var t=this,n=(t.document||t.ownerDocument).querySelectorAll(e),r=0;n[r]&&n[r]!==t;)++r;return Boolean(n[r])}),"function"!=typeof t.closest&&(t.closest=function(e){for(var t=this;t&&1===t.nodeType;){if(t.matches(e))return t;t=t.parentNode}return null})}},{}],28:[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 u=e._writableState,s=e._readableState,l=t.readable||!1!==t.readable&&e.readable,c=t.writable||!1!==t.writable&&e.writable,f=!1,d=function(){e.writable||p()},p=function(){c=!1,l||a.call(e)},h=function(){l=!1,c||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(!l||s&&s.ended&&!s.destroyed)&&(!c||u&&u.ended&&!u.destroyed)?void 0:a.call(e,new Error("premature close"))},v=function(){e.req.on("finish",p)};return!function(e){return e.setHeader&&"function"==typeof e.abort}(e)?c&&!u&&(e.on("end",d),e.on("close",d)):(e.on("complete",p),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",h),e.on("finish",p),!1!==t.error&&e.on("error",y),e.on("close",b),function(){f=!0,e.removeListener("complete",p),e.removeListener("abort",b),e.removeListener("request",v),e.req&&e.req.removeListener("finish",p),e.removeListener("end",d),e.removeListener("close",d),e.removeListener("finish",p),e.removeListener("exit",m),e.removeListener("end",h),e.removeListener("error",y),e.removeListener("close",b)}};t.exports=o}).call(this)}).call(this,e("_process"))},{_process:78,once:75}],29:[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":44}],30:[function(e,t,n){"use strict";t.exports=EvalError},{}],31:[function(e,t,n){"use strict";t.exports=Error},{}],32:[function(e,t,n){"use strict";t.exports=RangeError},{}],33:[function(e,t,n){"use strict";t.exports=ReferenceError},{}],34:[function(e,t,n){"use strict";t.exports=SyntaxError},{}],35:[function(e,t,n){"use strict";t.exports=TypeError},{}],36:[function(e,t,n){"use strict";t.exports=URIError},{}],37:[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 u(){u.init.call(this)}t.exports=u,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})}))},u.EventEmitter=u,u.prototype._events=void 0,u.prototype._eventsCount=0,u.prototype._maxListeners=void 0;var s=10;function l(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?u.defaultMaxListeners:e._maxListeners}function f(e,t,n,r){var i,o,a,u;if(l(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=c(e))>0&&a.length>i&&!a.warned){a.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=a.length,u=s,console&&console.warn&&console.warn(u)}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 p(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 h(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(u,"defaultMaxListeners",{enumerable:!0,get:function(){return s},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+".");s=e}}),u.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},u.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},u.prototype.getMaxListeners=function(){return c(this)},u.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 u=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw u.context=a,u}var s=i[e];if(void 0===s)return!1;if("function"==typeof s)o(s,this,t);else{var l=s.length,c=y(s,l);for(n=0;n<l;++n)o(c[n],this,t)}return!0},u.prototype.addListener=function(e,t){return f(this,e,t,!1)},u.prototype.on=u.prototype.addListener,u.prototype.prependListener=function(e,t){return f(this,e,t,!0)},u.prototype.once=function(e,t){return l(t),this.on(e,p(this,e,t)),this},u.prototype.prependOnceListener=function(e,t){return l(t),this.prependListener(e,p(this,e,t)),this},u.prototype.removeListener=function(e,t){var n,r,i,o,a;if(l(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},u.prototype.off=u.prototype.removeListener,u.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},u.prototype.listeners=function(e){return h(this,e,!0)},u.prototype.rawListeners=function(e){return h(this,e,!1)},u.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):m.call(e,t)},u.prototype.listenerCount=m,u.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},{}],38:[function(e,t,n){t.exports=s,s.default=s,s.stable=d,s.stableStringify=d;var r="[...]",i="[Circular]",o=[],a=[];function u(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function s(e,t,n,r){var i;void 0===r&&(r=u()),c(e,"",0,[],void 0,0,r);try{i=0===a.length?JSON.stringify(e,t,n):JSON.stringify(e,h(t),n)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==o.length;){var s=o.pop();4===s.length?Object.defineProperty(s[0],s[1],s[3]):s[0][s[1]]=s[2]}}return i}function l(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 c(e,t,n,o,a,u,s){var f;if(u+=1,"object"==typeof e&&null!==e){for(f=0;f<o.length;f++)if(o[f]===e)return void l(i,e,t,a);if(void 0!==s.depthLimit&&u>s.depthLimit)return void l(r,e,t,a);if(void 0!==s.edgesLimit&&n+1>s.edgesLimit)return void l(r,e,t,a);if(o.push(e),Array.isArray(e))for(f=0;f<e.length;f++)c(e[f],f,f,o,e,u,s);else{var d=Object.keys(e);for(f=0;f<d.length;f++){var p=d[f];c(e[p],p,f,o,e,u,s)}}o.pop()}}function f(e,t){return e<t?-1:e>t?1:0}function d(e,t,n,r){void 0===r&&(r=u());var i,s=p(e,"",0,[],void 0,0,r)||e;try{i=0===a.length?JSON.stringify(s,t,n):JSON.stringify(s,h(t),n)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==o.length;){var l=o.pop();4===l.length?Object.defineProperty(l[0],l[1],l[3]):l[0][l[1]]=l[2]}}return i}function p(e,t,n,a,u,s,c){var d;if(s+=1,"object"==typeof e&&null!==e){for(d=0;d<a.length;d++)if(a[d]===e)return void l(i,e,t,u);try{if("function"==typeof e.toJSON)return}catch(e){return}if(void 0!==c.depthLimit&&s>c.depthLimit)return void l(r,e,t,u);if(void 0!==c.edgesLimit&&n+1>c.edgesLimit)return void l(r,e,t,u);if(a.push(e),Array.isArray(e))for(d=0;d<e.length;d++)p(e[d],d,d,a,e,s,c);else{var h={},m=Object.keys(e).sort(f);for(d=0;d<m.length;d++){var y=m[d];p(e[y],y,d,a,e,s,c),h[y]=e[y]}if(void 0===u)return h;o.push([u,t,e]),u[t]=h}a.pop()}}function h(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)}}},{}],39:[function(e,t,n){
21
+ "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},u=function(e,t){this.name=e,this.code=DOMException[e],this.message=t},s=function(e,t){if(""===t)throw new u("SYNTAX_ERR","An invalid or illegal string was specified");if(/\s/.test(t))throw new u("INVALID_CHARACTER_ERR","String contains an invalid character");return a.call(e,t)},l=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())}},c=l[n]=[],f=function(){return new l(this)};if(u[n]=Error[n],c.item=function(e){return this[e]||null},c.contains=function(e){return-1!==s(this,e+="")},c.add=function(){var e,t=arguments,n=0,r=t.length,i=!1;do{-1===s(this,e=t[n]+"")&&(this.push(e),i=!0)}while(++n<r);i&&this._updateClassName()},c.remove=function(){var e,t,n=arguments,r=0,i=n.length,o=!1;do{for(t=s(this,e=n[r]+"");-1!==t;)this.splice(t,1),o=!0,t=s(this,e)}while(++r<i);o&&this._updateClassName()},c.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},c.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}())},{}],17:[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}},{}],18:[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}},{}],19:[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:11}],20:[function(e,t,n){!function(e){"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 u(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 s(){this.constructor=u}return s.prototype=o.prototype,u.prototype=new s,u.prototype.name=""+i||"CustomError",u};function t(e){return"function"==typeof e}function n(t,n){if((u=n)&&"object"==typeof u&&"[object Object]"===e.call(u))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 u}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}}))}()},{}],21:[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)?c((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 u(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 s(e,t){try{return t in e}catch(e){return!1}}function l(e,t,n){var r={};return n.isMergeableObject(e)&&u(e).forEach((function(t){r[t]=o(e[t],n)})),u(t).forEach((function(i){(function(e,t){return s(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(s(e,i)&&n.isMergeableObject(t[i])?r[i]=function(e,t){if(!t.customMerge)return c;var n=t.customMerge(e);return"function"==typeof n?n:c}(i,n)(e[i],t[i],n):r[i]=o(t[i],n))})),r}function c(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):l(e,t,n):o(t,n)}c.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return c(e,n,t)}),{})};var f=c;t.exports=f},{}],22:[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 u=arguments.length>3?arguments[3]:null,s=arguments.length>4?arguments[4]:null,l=arguments.length>5?arguments[5]:null,c=arguments.length>6&&arguments[6],f=!!a&&a(e,t);if(r)r(e,t,{configurable:null===l&&f?f.configurable:!l,enumerable:null===u&&f?f.enumerable:!u,value:n,writable:null===s&&f?f.writable:!s});else{if(!c&&(u||s||l))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":29,"es-errors/syntax":34,"es-errors/type":35,gopd:49}],23:[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]}},{}],24:[function(e,t,n){var r,i=e("util"),o=e("global"),a=e("events");t.exports=(r=function(){if(o._singletonDespotInstance)return o._singletonDespotInstance;o._singletonDespotInstance=this,a.call(this)},i.inherits(r,a),new r)},{events:37,global:48,util:116}],25:[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":26,geval:46,"global/document":47}],26:[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}},{}],27:[function(e,t,n){t.exports=function(e){var t=e.Element.prototype;"function"!=typeof t.matches&&(t.matches=t.msMatchesSelector||t.mozMatchesSelector||t.webkitMatchesSelector||function(e){for(var t=this,n=(t.document||t.ownerDocument).querySelectorAll(e),r=0;n[r]&&n[r]!==t;)++r;return Boolean(n[r])}),"function"!=typeof t.closest&&(t.closest=function(e){for(var t=this;t&&1===t.nodeType;){if(t.matches(e))return t;t=t.parentNode}return null})}},{}],28:[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 u=e._writableState,s=e._readableState,l=t.readable||!1!==t.readable&&e.readable,c=t.writable||!1!==t.writable&&e.writable,f=!1,d=function(){e.writable||p()},p=function(){c=!1,l||a.call(e)},h=function(){l=!1,c||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(!l||s&&s.ended&&!s.destroyed)&&(!c||u&&u.ended&&!u.destroyed)?void 0:a.call(e,new Error("premature close"))},v=function(){e.req.on("finish",p)};return!function(e){return e.setHeader&&"function"==typeof e.abort}(e)?c&&!u&&(e.on("end",d),e.on("close",d)):(e.on("complete",p),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",h),e.on("finish",p),!1!==t.error&&e.on("error",y),e.on("close",b),function(){f=!0,e.removeListener("complete",p),e.removeListener("abort",b),e.removeListener("request",v),e.req&&e.req.removeListener("finish",p),e.removeListener("end",d),e.removeListener("close",d),e.removeListener("finish",p),e.removeListener("exit",m),e.removeListener("end",h),e.removeListener("error",y),e.removeListener("close",b)}};t.exports=o}).call(this)}).call(this,e("_process"))},{_process:79,once:75}],29:[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":44}],30:[function(e,t,n){"use strict";t.exports=EvalError},{}],31:[function(e,t,n){"use strict";t.exports=Error},{}],32:[function(e,t,n){"use strict";t.exports=RangeError},{}],33:[function(e,t,n){"use strict";t.exports=ReferenceError},{}],34:[function(e,t,n){"use strict";t.exports=SyntaxError},{}],35:[function(e,t,n){"use strict";t.exports=TypeError},{}],36:[function(e,t,n){"use strict";t.exports=URIError},{}],37:[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 u(){u.init.call(this)}t.exports=u,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})}))},u.EventEmitter=u,u.prototype._events=void 0,u.prototype._eventsCount=0,u.prototype._maxListeners=void 0;var s=10;function l(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?u.defaultMaxListeners:e._maxListeners}function f(e,t,n,r){var i,o,a,u;if(l(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=c(e))>0&&a.length>i&&!a.warned){a.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=a.length,u=s,console&&console.warn&&console.warn(u)}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 p(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 h(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(u,"defaultMaxListeners",{enumerable:!0,get:function(){return s},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+".");s=e}}),u.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},u.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},u.prototype.getMaxListeners=function(){return c(this)},u.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 u=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw u.context=a,u}var s=i[e];if(void 0===s)return!1;if("function"==typeof s)o(s,this,t);else{var l=s.length,c=y(s,l);for(n=0;n<l;++n)o(c[n],this,t)}return!0},u.prototype.addListener=function(e,t){return f(this,e,t,!1)},u.prototype.on=u.prototype.addListener,u.prototype.prependListener=function(e,t){return f(this,e,t,!0)},u.prototype.once=function(e,t){return l(t),this.on(e,p(this,e,t)),this},u.prototype.prependOnceListener=function(e,t){return l(t),this.prependListener(e,p(this,e,t)),this},u.prototype.removeListener=function(e,t){var n,r,i,o,a;if(l(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},u.prototype.off=u.prototype.removeListener,u.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},u.prototype.listeners=function(e){return h(this,e,!0)},u.prototype.rawListeners=function(e){return h(this,e,!1)},u.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):m.call(e,t)},u.prototype.listenerCount=m,u.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},{}],38:[function(e,t,n){t.exports=s,s.default=s,s.stable=d,s.stableStringify=d;var r="[...]",i="[Circular]",o=[],a=[];function u(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function s(e,t,n,r){var i;void 0===r&&(r=u()),c(e,"",0,[],void 0,0,r);try{i=0===a.length?JSON.stringify(e,t,n):JSON.stringify(e,h(t),n)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==o.length;){var s=o.pop();4===s.length?Object.defineProperty(s[0],s[1],s[3]):s[0][s[1]]=s[2]}}return i}function l(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 c(e,t,n,o,a,u,s){var f;if(u+=1,"object"==typeof e&&null!==e){for(f=0;f<o.length;f++)if(o[f]===e)return void l(i,e,t,a);if(void 0!==s.depthLimit&&u>s.depthLimit)return void l(r,e,t,a);if(void 0!==s.edgesLimit&&n+1>s.edgesLimit)return void l(r,e,t,a);if(o.push(e),Array.isArray(e))for(f=0;f<e.length;f++)c(e[f],f,f,o,e,u,s);else{var d=Object.keys(e);for(f=0;f<d.length;f++){var p=d[f];c(e[p],p,f,o,e,u,s)}}o.pop()}}function f(e,t){return e<t?-1:e>t?1:0}function d(e,t,n,r){void 0===r&&(r=u());var i,s=p(e,"",0,[],void 0,0,r)||e;try{i=0===a.length?JSON.stringify(s,t,n):JSON.stringify(s,h(t),n)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==o.length;){var l=o.pop();4===l.length?Object.defineProperty(l[0],l[1],l[3]):l[0][l[1]]=l[2]}}return i}function p(e,t,n,a,u,s,c){var d;if(s+=1,"object"==typeof e&&null!==e){for(d=0;d<a.length;d++)if(a[d]===e)return void l(i,e,t,u);try{if("function"==typeof e.toJSON)return}catch(e){return}if(void 0!==c.depthLimit&&s>c.depthLimit)return void l(r,e,t,u);if(void 0!==c.edgesLimit&&n+1>c.edgesLimit)return void l(r,e,t,u);if(a.push(e),Array.isArray(e))for(d=0;d<e.length;d++)p(e[d],d,d,a,e,s,c);else{var h={},m=Object.keys(e).sort(f);for(d=0;d<m.length;d++){var y=m[d];p(e[y],y,d,a,e,s,c),h[y]=e[y]}if(void 0===u)return h;o.push([u,t,e]),u[t]=h}a.pop()}}function h(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)}}},{}],39:[function(e,t,n){
22
22
  /**
23
23
  * filesize
24
24
  *
25
- * @copyright 2023 Jason Mulligan <jason.mulligan@avoidwork.com>
25
+ * @copyright 2024 Jason Mulligan <jason.mulligan@avoidwork.com>
26
26
  * @license BSD-3-Clause
27
- * @version 10.1.0
27
+ * @version 10.1.2
28
28
  */
29
- "use strict";const r="array",i="bit",o="bits",a="byte",u="bytes",s="",l="exponent",c="function",f="iec",d="Invalid number",p="Invalid rounding method",h="jedec",m="object",y=".",b="round",g="s",v="si",w="kbit",E="kB",_=" ",S="string",R="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=s,localeOptions:x={},separator:j=s,spacer:M=_,symbols:D={},standard:C=s,output:N=S,fullform:I=!1,fullforms:P=[],exponent:L=-1,roundingMethod:B=b,precision:U=0}={}){let F=L,W=Number(e),q=[],H=0,z=s;C===v?(O=10,C=h):C===f||C===h?O=2:2===O?C=f:(O=10,C=h);const V=10===O?1e3:1024,G=!0===I,$=W<0,Y=Math[B];if("bigint"!=typeof e&&isNaN(e))throw new TypeError(d);if(typeof Y!==c)throw new TypeError(p);if($&&(W=-W),(-1===F||isNaN(F))&&(F=Math.floor(Math.log(W)/Math.log(V)),F<0&&(F=0)),F>8&&(U>0&&(U+=8-F),F=8),N===l)return F;if(0===W)q[0]=0,z=q[1]=A.symbol[C][t?o:u][F];else{H=W/(2===O?Math.pow(2,10*F):Math.pow(1e3,F)),t&&(H*=8,H>=V&&F<8&&(H/=V,F++));const e=Math.pow(10,F>0?k:0);q[0]=Y(H*e)/e,q[0]===V&&F<8&&-1===L&&(q[0]=1,F++),z=q[1]=10===O&&1===F?t?w:E:A.symbol[C][t?o:u][F]}if($&&(q[0]=-q[0]),U>0&&(q[0]=q[0].toPrecision(U)),q[1]=D[q[1]]||q[1],!0===T?q[0]=q[0].toLocaleString():T.length>0?q[0]=q[0].toLocaleString(T,x):j.length>0&&(q[0]=q[0].toString().replace(y,j)),n&&!1===Number.isInteger(q[0])&&k>0){const e=j||y,t=q[0].toString().split(e),n=t[1]||s,r=n.length,i=k-r;q[0]=`${t[0]}${e}${n.padEnd(r+i,R)}`}return G&&(q[1]=P[F]?P[F]:A.fullform[C][F]+(t?i:a)+(1===q[0]?s:g)),N===r?q:N===m?{value:q[0],symbol:q[1],exponent:F,unit:z}:q.join(M)}n.filesize=O,n.partial=function({bits:e=!1,pad:t=!1,base:n=-1,round:r=2,locale:i=s,localeOptions:o={},separator:a=s,spacer:u=_,symbols:l={},standard:c=s,output:f=S,fullform:d=!1,fullforms:p=[],exponent:h=-1,roundingMethod:m=b,precision:y=0}={}){return s=>O(s,{bits:e,pad:t,base:n,round:r,locale:i,localeOptions:o,separator:a,spacer:u,symbols:l,standard:c,output:f,fullform:d,fullforms:p,exponent:h,roundingMethod:m,precision:y})}},{}],40:[function(e,t,n){"use strict";var r=e("is-callable"),i=Object.prototype.toString,o=Object.prototype.hasOwnProperty;t.exports=function(e,t,n){if(!r(t))throw new TypeError("iterator must be a function");var a;arguments.length>=3&&(a=n),"[object Array]"===i.call(e)?function(e,t,n){for(var r=0,i=e.length;r<i;r++)o.call(e,r)&&(null==n?t(e[r],r,e):t.call(n,e[r],r,e))}(e,t,a):"string"==typeof e?function(e,t,n){for(var r=0,i=e.length;r<i;r++)null==n?t(e.charAt(r),r,e):t.call(n,e.charAt(r),r,e)}(e,t,a):function(e,t,n){for(var r in e)o.call(e,r)&&(null==n?t(e[r],r,e):t.call(n,e[r],r,e))}(e,t,a)}},{"is-callable":66}],41:[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),u=i(0,t.length-a.length),s=[],l=0;l<u;l++)s[l]="$"+l;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}(s,",")+"){ 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 c=function(){};c.prototype=t.prototype,n.prototype=new c,c.prototype=null}return n}},{}],42:[function(e,t,n){"use strict";var r=e("./implementation");t.exports=Function.prototype.bind||r},{"./implementation":41}],43:[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=c,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},u=/^\s+|\s+$/g,s=Array.prototype.slice,l=Object.prototype.toString;function c(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=[],u={},s=0,l=e.elements.length;s<l;s++){var c=e.elements[s];o[c.type]||c.disabled&&!t.includeDisabled||(n=c.name||c.id)&&!u[n]&&(a.push(n),u[n]=!0)}for(var d=0,p=a.length;d<p;d++){var h=f(e,n=a[d],t);null!=h&&(i[n]=h)}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]"!==l.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[l.call(o)])return d(o,n.trim);for(var a=[],u=!0,s=0,c=o.length;s<c;s++)if(!o[s].disabled||n.includeDisabled){u&&"radio"!==o[s].type&&(u=!1);var f=d(o[s],n.trim);null!=f&&(a=a.concat(f))}return u&&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=s.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(u,""):e.value,n)}c.getFieldData=f},{}],44:[function(e,t,n){"use strict";var r,i=e("es-errors"),o=e("es-errors/eval"),a=e("es-errors/range"),u=e("es-errors/ref"),s=e("es-errors/syntax"),l=e("es-errors/type"),c=e("es-errors/uri"),f=Function,d=function(e){try{return f('"use strict"; return ('+e+").constructor;")()}catch(e){}},p=Object.getOwnPropertyDescriptor;if(p)try{p({},"")}catch(e){p=null}var h=function(){throw new l},m=p?function(){try{return h}catch(e){try{return p(arguments,"callee").get}catch(e){return h}}}():h,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%":u,"%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%":s,"%ThrowTypeError%":m,"%TypedArray%":w,"%TypeError%":l,"%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%":c,"%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 S=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},R={__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),M=A.call(Function.call,RegExp.prototype.exec),D=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,C=/\\(\\)?/g,N=function(e,t){var n,r=e;if(O(R,r)&&(r="%"+(n=R[r])[0]+"%"),O(E,r)){var i=E[r];if(i===v&&(i=S(r)),void 0===i&&!t)throw new l("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:i}}throw new s("intrinsic "+e+" does not exist!")};t.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new l("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new l('"allowMissing" argument must be a boolean');if(null===M(/^%?[^%]*%?$/,e))throw new s("`%` 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 s("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new s("invalid intrinsic syntax, expected opening `%`");var r=[];return x(e,D,(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,u=!1,c=i.alias;c&&(r=c[0],T(n,k([0,1],c)));for(var f=1,d=!0;f<n.length;f+=1){var h=n[f],m=j(h,0,1),y=j(h,-1);if(('"'===m||"'"===m||"`"===m||'"'===y||"'"===y||"`"===y)&&m!==y)throw new s("property names with quotes must have matching quotes");if("constructor"!==h&&d||(u=!0),O(E,o="%"+(r+="."+h)+"%"))a=E[o];else if(null!=a){if(!(h in a)){if(!t)throw new l("base intrinsic for "+e+" exists, but the property is not available.");return}if(p&&f+1>=n.length){var b=p(a,h);a=(d=!!b)&&"get"in b&&!("originalValue"in b.get)?b.get:a[h]}else d=O(a,h),a=a[h];d&&!u&&(E[o]=a)}}return a}},{"es-errors":31,"es-errors/eval":30,"es-errors/range":32,"es-errors/ref":33,"es-errors/syntax":34,"es-errors/type":35,"es-errors/uri":36,"function-bind":42,"has-proto":51,"has-symbols":52,hasown:55}],45:[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)}}}}},{}],46:[function(e,t,n){var r=e("./event.js");t.exports=function(e){var t=r();return e(t.broadcast),t.listen}},{"./event.js":45}],47:[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":9}],48:[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:{})},{}],49:[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":44}],50:[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":29}],51:[function(e,t,n){"use strict";var r={foo:{}},i=Object;t.exports=function(){return{__proto__:r}.foo===r.foo&&!({__proto__:null}instanceof i)}},{}],52:[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":53}],53:[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}},{}],54:[function(e,t,n){"use strict";var r=e("has-symbols/shams");t.exports=function(){return r()&&!!Symbol.toStringTag}},{"has-symbols/shams":53}],55:[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":42}],56:[function(e,t,n){t.exports=function(e,t){if(void 0===t)return"none"===e.style.display;e.style.display=t?"none":""}},{}],57:[function(e,t,n){!function(){var e=r((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?"χιλιοστό":"χιλιοστά")+" του δευτερολέπτου"}),","),n={af:r("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")}),","),ar:c(r((function(e){return["سنة","سنتان","سنوات"][i(e)]}),(function(e){return["شهر","شهران","أشهر"][i(e)]}),(function(e){return["أسبوع","أسبوعين","أسابيع"][i(e)]}),(function(e){return["يوم","يومين","أيام"][i(e)]}),(function(e){return["ساعة","ساعتين","ساعات"][i(e)]}),(function(e){return["دقيقة","دقيقتان","دقائق"][i(e)]}),(function(e){return["ثانية","ثانيتان","ثواني"][i(e)]}),(function(e){return["جزء من الثانية","جزآن من الثانية","أجزاء من الثانية"][i(e)]}),","),{delimiter:" ﻭ ",_digitReplacements:["۰","١","٢","٣","٤","٥","٦","٧","٨","٩"]}),bg:r((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)]}),","),bn:r("বছর","মাস","সপ্তাহ","দিন","ঘন্টা","মিনিট","সেকেন্ড","মিলিসেকেন্ড"),ca:r((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:r("ساڵ","مانگ","هەفتە","ڕۆژ","کاژێر","خولەک","چرکە","میلی چرکە","."),cs:r((function(e){return["rok","roku","roky","let"][u(e)]}),(function(e){return["měsíc","měsíce","měsíce","měsíců"][u(e)]}),(function(e){return["týden","týdne","týdny","týdnů"][u(e)]}),(function(e){return["den","dne","dny","dní"][u(e)]}),(function(e){return["hodina","hodiny","hodiny","hodin"][u(e)]}),(function(e){return["minuta","minuty","minuty","minut"][u(e)]}),(function(e){return["sekunda","sekundy","sekundy","sekund"][u(e)]}),(function(e){return["milisekunda","milisekundy","milisekundy","milisekund"][u(e)]}),","),cy:r("flwyddyn","mis","wythnos","diwrnod","awr","munud","eiliad","milieiliad"),da:r("å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:r((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:e,en:r((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:r((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:r((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:r((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:r("urte","hilabete","aste","egun","ordu","minutu","segundo","milisegundo",","),fa:r("سال","ماه","هفته","روز","ساعت","دقیقه","ثانیه","میلی ثانیه"),fi:r((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:r("á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:r((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:e,he:r((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:r((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:r("साल",(function(e){return 1===e?"महीना":"महीने"}),(function(e){return 1===e?"हफ़्ता":"हफ्ते"}),"दिन",(function(e){return 1===e?"घंटा":"घंटे"}),"मिनट","सेकंड","मिलीसेकंड"),hu:r("év","hónap","hét","nap","óra","perc","másodperc","ezredmásodperc",","),id:r("tahun","bulan","minggu","hari","jam","menit","detik","milidetik"),is:r("á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:r((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:r("年","ヶ月","週","日","時間","分","秒","ミリ秒"),km:r("ឆ្នាំ","ខែ","សប្តាហ៍","ថ្ងៃ","ម៉ោង","នាទី","វិនាទី","មិល្លីវិនាទី"),kn:r((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:r("년","개월","주일","일","시간","분","초","밀리 초"),ku:r("sal","meh","hefte","roj","seet","deqe","saniye","mîlîçirk",","),lo:r("ປີ","ເດືອນ","ອາທິດ","ມື້","ຊົ່ວໂມງ","ນາທີ","ວິນາທີ","ມິນລິວິນາທີ",","),lt:r((function(e){return e%10==0||e%100>=10&&e%100<=20?"metų":"metai"}),(function(e){return["mėnuo","mėnesiai","mėnesių"][s(e)]}),(function(e){return["savaitė","savaitės","savaičių"][s(e)]}),(function(e){return["diena","dienos","dienų"][s(e)]}),(function(e){return["valanda","valandos","valandų"][s(e)]}),(function(e){return["minutė","minutės","minučių"][s(e)]}),(function(e){return["sekundė","sekundės","sekundžių"][s(e)]}),(function(e){return["milisekundė","milisekundės","milisekundžių"][s(e)]}),","),lv:r((function(e){return l(e)?"gads":"gadi"}),(function(e){return l(e)?"mēnesis":"mēneši"}),(function(e){return l(e)?"nedēļa":"nedēļas"}),(function(e){return l(e)?"diena":"dienas"}),(function(e){return l(e)?"stunda":"stundas"}),(function(e){return l(e)?"minūte":"minūtes"}),(function(e){return l(e)?"sekunde":"sekundes"}),(function(e){return l(e)?"milisekunde":"milisekundes"}),","),mk:r((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:r("жил","сар","долоо хоног","өдөр","цаг","минут","секунд","миллисекунд"),mr:r((function(e){return 1===e?"वर्ष":"वर्षे"}),(function(e){return 1===e?"महिना":"महिने"}),(function(e){return 1===e?"आठवडा":"आठवडे"}),"दिवस","तास",(function(e){return 1===e?"मिनिट":"मिनिटे"}),"सेकंद","मिलिसेकंद"),ms:r("tahun","bulan","minggu","hari","jam","minit","saat","milisaat"),nl:r("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:r("å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:r((function(e){return["rok","roku","lata","lat"][o(e)]}),(function(e){return["miesiąc","miesiąca","miesiące","miesięcy"][o(e)]}),(function(e){return["tydzień","tygodnia","tygodnie","tygodni"][o(e)]}),(function(e){return["dzień","dnia","dni","dni"][o(e)]}),(function(e){return["godzina","godziny","godziny","godzin"][o(e)]}),(function(e){return["minuta","minuty","minuty","minut"][o(e)]}),(function(e){return["sekunda","sekundy","sekundy","sekund"][o(e)]}),(function(e){return["milisekunda","milisekundy","milisekundy","milisekund"][o(e)]}),","),pt:r((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:r((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:r((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)]}),","),sq:r((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:r((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)]}),","),ta:r((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:r((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:r((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)]}),","),ur:r("سال",(function(e){return 1===e?"مہینہ":"مہینے"}),(function(e){return 1===e?"ہفتہ":"ہفتے"}),"دن",(function(e){return 1===e?"گھنٹہ":"گھنٹے"}),"منٹ","سیکنڈ","ملی سیکنڈ"),sk:r((function(e){return["rok","roky","roky","rokov"][u(e)]}),(function(e){return["mesiac","mesiace","mesiace","mesiacov"][u(e)]}),(function(e){return["týždeň","týždne","týždne","týždňov"][u(e)]}),(function(e){return["deň","dni","dni","dní"][u(e)]}),(function(e){return["hodina","hodiny","hodiny","hodín"][u(e)]}),(function(e){return["minúta","minúty","minúty","minút"][u(e)]}),(function(e){return["sekunda","sekundy","sekundy","sekúnd"][u(e)]}),(function(e){return["milisekunda","milisekundy","milisekundy","milisekúnd"][u(e)]}),","),sl:r((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:r("å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:c(r((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:r("yıl","ay","hafta","gün","saat","dakika","saniye","milisaniye",","),th:r("ปี","เดือน","สัปดาห์","วัน","ชั่วโมง","นาที","วินาที","มิลลิวินาที"),uz:r("yil","oy","hafta","kun","soat","minut","sekund","millisekund"),uz_CYR:r("йил","ой","ҳафта","кун","соат","минут","секунд","миллисекунд"),vi:r("năm","tháng","tuần","ngày","giờ","phút","giây","mili giây",","),zh_CN:r("年","个月","周","天","小时","分钟","秒","毫秒"),zh_TW:r("年","個月","周","天","小時","分鐘","秒","毫秒")};function r(e,t,n,r,i,o,a,u,s){var l={y:e,mo:t,w:n,d:r,h:i,m:o,s:a,ms:u};return void 0!==s&&(l.decimal=s),l}function i(e){return 2===e?1:e>2&&e<11?2:0}function o(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 a(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 u(e){return 1===e?0:Math.floor(e)!==e?1:e%10>=2&&e%10<=4&&e%100<10?2:3}function s(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 l(e){return e%10==1&&e%100!=11}function c(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}var f=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function d(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function p(e,t,n){var r,i,o,a=e.unitName,u=e.unitCount,s=n.spacer,l=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 c=(void 0===l?u:Math.floor(u*Math.pow(10,l))/Math.pow(10,l)).toString();if(i){o="";for(var f=0;f<c.length;f++){var p=c[f];o+="."===p?r:i[p]}}else o=c.replace(".",r);var h,m=t[a];return h="function"==typeof m?m(u):m,t._numberFirst?h+s+o:o+s+h}function h(e,t){var r=function(e){var t=[e.language];if(d(e,"fallbacks")){if(!f(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 i=t[r];if(d(e.languages,i))return e.languages[i];if(d(n,i))return n[i]}throw new Error("No language found.")}(t);if(!e.length){var i=t.units;return p({unitName:i[i.length-1],unitCount:0},r,t)}var o,a=t.conjunction,u=t.serialComma;o=d(t,"delimiter")?t.delimiter:d(r,"delimiter")?r.delimiter:", ";for(var s=[],l=0;l<e.length;l++)s.push(p(e[l],r,t));return a&&1!==e.length?2===e.length?s.join(a):s.slice(0,-1).join(o)+(u?",":"")+a+s.slice(-1):s.join(o)}function m(e){var t=function(e,n){e=Math.abs(e);var r=c({},t,n||{}),i=function(e,t){var n,r,i,o,a=t.units,u=t.unitMeasures,s="largest"in t?t.largest:1/0;if(!a.length)return[];var l={};for(o=e,r=0;r<a.length;r++){var c=u[n=a[r]];i=r===a.length-1?o/c:Math.floor(o/c),l[n]=i,o-=i*c}if(t.round){var f=s;for(r=0;r<a.length;r++)if(0!==(i=l[n=a[r]])&&0==--f){for(var d=r+1;d<a.length;d++){var p=a[d],h=l[p];l[n]+=h*u[p]/u[n],l[p]=0}break}for(r=a.length-1;r>=0;r--)if(0!==(i=l[n=a[r]])){var m=Math.round(i);if(l[n]=m,0===r)break;var y=a[r-1],b=u[y],g=Math.floor(m*u[n]/b);if(!g)break;l[y]+=g,l[n]=0}}var v=[];for(r=0;r<a.length&&v.length<s;r++)(i=l[n=a[r]])&&v.push({unitName:n,unitCount:i});return v}(e,r);return h(i,r)};return c(t,{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}},e)}var y=m({});y.getSupportedLanguages=function(){var e=[];for(var t in n)d(n,t)&&"gr"!==t&&e.push(t);return e},y.humanizer=m,void 0!==t&&t.exports?t.exports=y:this.humanizeDuration=y}()},{}],58:[function(e,t,n){var r=e("browser-split"),i=e("class-list"),o="undefined"==typeof window?e("html-element"):window,a=o.document,u=o.Text;function s(){var e=[];function t(){var t=[].slice.call(arguments),n=null;function o(t){var s,f,d;if(null==t);else if("string"==typeof t)n?n.appendChild(s=a.createTextNode(t)):(d=r(t,/([\.#]?[^\s#.]+)/),/^\.|#/.test(d[1])&&(n=a.createElement("div")),c(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(s=a.createTextNode(t.toString()));else if(f=t,"[object Array]"==Object.prototype.toString.call(f))c(t,o);else if(l(t))n.appendChild(s=t);else if(t instanceof u)n.appendChild(s=t);else if("object"==typeof t)for(var p in t)if("function"==typeof t[p])/^on\w+/.test(p)?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])})))}(p,t):(n[p]=t[p](),e.push(t[p]((function(e){n[p]=e}))));else if("style"===p)if("string"==typeof t[p])n.style.cssText=t[p];else for(var h in t[p])!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[p][r].match(/(.*)\W+!important\W*$/);o?n.style.setProperty(r,o[1],"important"):n.style.setProperty(r,t[p][r])}(h,t[p][h]);else if("attrs"===p)for(var m in t[p])n.setAttribute(m,t[p][m]);else"data-"===p.substr(0,5)?n.setAttribute(p,t[p]):n[p]=t[p];else if("function"==typeof t){m=t();n.appendChild(s=l(m)?m:a.createTextNode(m)),e.push(t((function(e){l(e)&&s.parentElement?(s.parentElement.replaceChild(e,s),s=e):s.textContent=e})))}return s}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 l(e){return e&&e.nodeName&&e.nodeType}function c(e,t){if(e.forEach)return e.forEach(t);for(var n=0;n<e.length;n++)t(e[n],n)}(t.exports=s()).context=s},{"browser-split":10,"class-list":15,"html-element":9}],59:[function(e,t,n){
29
+ "use strict";const r="array",i="bit",o="bits",a="byte",u="bytes",s="",l="exponent",c="function",f="iec",d="Invalid number",p="Invalid rounding method",h="jedec",m="object",y=".",b="round",g="s",v="si",w="kbit",E="kB",_=" ",S="string",R="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=s,localeOptions:x={},separator:j=s,spacer:M=_,symbols:D={},standard:C=s,output:N=S,fullform:I=!1,fullforms:P=[],exponent:L=-1,roundingMethod:B=b,precision:U=0}={}){let F=L,W=Number(e),q=[],H=0,z=s;C===v?(O=10,C=h):C===f||C===h?O=2:2===O?C=f:(O=10,C=h);const V=10===O?1e3:1024,G=!0===I,$=W<0,Y=Math[B];if("bigint"!=typeof e&&isNaN(e))throw new TypeError(d);if(typeof Y!==c)throw new TypeError(p);if($&&(W=-W),(-1===F||isNaN(F))&&(F=Math.floor(Math.log(W)/Math.log(V)),F<0&&(F=0)),F>8&&(U>0&&(U+=8-F),F=8),N===l)return F;if(0===W)q[0]=0,z=q[1]=A.symbol[C][t?o:u][F];else{H=W/(2===O?Math.pow(2,10*F):Math.pow(1e3,F)),t&&(H*=8,H>=V&&F<8&&(H/=V,F++));const e=Math.pow(10,F>0?k:0);q[0]=Y(H*e)/e,q[0]===V&&F<8&&-1===L&&(q[0]=1,F++),z=q[1]=10===O&&1===F?t?w:E:A.symbol[C][t?o:u][F]}if($&&(q[0]=-q[0]),U>0&&(q[0]=q[0].toPrecision(U)),q[1]=D[q[1]]||q[1],!0===T?q[0]=q[0].toLocaleString():T.length>0?q[0]=q[0].toLocaleString(T,x):j.length>0&&(q[0]=q[0].toString().replace(y,j)),n&&!1===Number.isInteger(q[0])&&k>0){const e=j||y,t=q[0].toString().split(e),n=t[1]||s,r=n.length,i=k-r;q[0]=`${t[0]}${e}${n.padEnd(r+i,R)}`}return G&&(q[1]=P[F]?P[F]:A.fullform[C][F]+(t?i:a)+(1===q[0]?s:g)),N===r?q:N===m?{value:q[0],symbol:q[1],exponent:F,unit:z}:q.join(M)}n.filesize=O,n.partial=function({bits:e=!1,pad:t=!1,base:n=-1,round:r=2,locale:i=s,localeOptions:o={},separator:a=s,spacer:u=_,symbols:l={},standard:c=s,output:f=S,fullform:d=!1,fullforms:p=[],exponent:h=-1,roundingMethod:m=b,precision:y=0}={}){return s=>O(s,{bits:e,pad:t,base:n,round:r,locale:i,localeOptions:o,separator:a,spacer:u,symbols:l,standard:c,output:f,fullform:d,fullforms:p,exponent:h,roundingMethod:m,precision:y})}},{}],40:[function(e,t,n){"use strict";var r=e("is-callable"),i=Object.prototype.toString,o=Object.prototype.hasOwnProperty;t.exports=function(e,t,n){if(!r(t))throw new TypeError("iterator must be a function");var a;arguments.length>=3&&(a=n),"[object Array]"===i.call(e)?function(e,t,n){for(var r=0,i=e.length;r<i;r++)o.call(e,r)&&(null==n?t(e[r],r,e):t.call(n,e[r],r,e))}(e,t,a):"string"==typeof e?function(e,t,n){for(var r=0,i=e.length;r<i;r++)null==n?t(e.charAt(r),r,e):t.call(n,e.charAt(r),r,e)}(e,t,a):function(e,t,n){for(var r in e)o.call(e,r)&&(null==n?t(e[r],r,e):t.call(n,e[r],r,e))}(e,t,a)}},{"is-callable":66}],41:[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),u=i(0,t.length-a.length),s=[],l=0;l<u;l++)s[l]="$"+l;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}(s,",")+"){ 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 c=function(){};c.prototype=t.prototype,n.prototype=new c,c.prototype=null}return n}},{}],42:[function(e,t,n){"use strict";var r=e("./implementation");t.exports=Function.prototype.bind||r},{"./implementation":41}],43:[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=c,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},u=/^\s+|\s+$/g,s=Array.prototype.slice,l=Object.prototype.toString;function c(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=[],u={},s=0,l=e.elements.length;s<l;s++){var c=e.elements[s];o[c.type]||c.disabled&&!t.includeDisabled||(n=c.name||c.id)&&!u[n]&&(a.push(n),u[n]=!0)}for(var d=0,p=a.length;d<p;d++){var h=f(e,n=a[d],t);null!=h&&(i[n]=h)}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]"!==l.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[l.call(o)])return d(o,n.trim);for(var a=[],u=!0,s=0,c=o.length;s<c;s++)if(!o[s].disabled||n.includeDisabled){u&&"radio"!==o[s].type&&(u=!1);var f=d(o[s],n.trim);null!=f&&(a=a.concat(f))}return u&&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=s.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(u,""):e.value,n)}c.getFieldData=f},{}],44:[function(e,t,n){"use strict";var r,i=e("es-errors"),o=e("es-errors/eval"),a=e("es-errors/range"),u=e("es-errors/ref"),s=e("es-errors/syntax"),l=e("es-errors/type"),c=e("es-errors/uri"),f=Function,d=function(e){try{return f('"use strict"; return ('+e+").constructor;")()}catch(e){}},p=Object.getOwnPropertyDescriptor;if(p)try{p({},"")}catch(e){p=null}var h=function(){throw new l},m=p?function(){try{return h}catch(e){try{return p(arguments,"callee").get}catch(e){return h}}}():h,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%":u,"%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%":s,"%ThrowTypeError%":m,"%TypedArray%":w,"%TypeError%":l,"%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%":c,"%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 S=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},R={__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),M=A.call(Function.call,RegExp.prototype.exec),D=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,C=/\\(\\)?/g,N=function(e,t){var n,r=e;if(O(R,r)&&(r="%"+(n=R[r])[0]+"%"),O(E,r)){var i=E[r];if(i===v&&(i=S(r)),void 0===i&&!t)throw new l("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:i}}throw new s("intrinsic "+e+" does not exist!")};t.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new l("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new l('"allowMissing" argument must be a boolean');if(null===M(/^%?[^%]*%?$/,e))throw new s("`%` 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 s("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new s("invalid intrinsic syntax, expected opening `%`");var r=[];return x(e,D,(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,u=!1,c=i.alias;c&&(r=c[0],T(n,k([0,1],c)));for(var f=1,d=!0;f<n.length;f+=1){var h=n[f],m=j(h,0,1),y=j(h,-1);if(('"'===m||"'"===m||"`"===m||'"'===y||"'"===y||"`"===y)&&m!==y)throw new s("property names with quotes must have matching quotes");if("constructor"!==h&&d||(u=!0),O(E,o="%"+(r+="."+h)+"%"))a=E[o];else if(null!=a){if(!(h in a)){if(!t)throw new l("base intrinsic for "+e+" exists, but the property is not available.");return}if(p&&f+1>=n.length){var b=p(a,h);a=(d=!!b)&&"get"in b&&!("originalValue"in b.get)?b.get:a[h]}else d=O(a,h),a=a[h];d&&!u&&(E[o]=a)}}return a}},{"es-errors":31,"es-errors/eval":30,"es-errors/range":32,"es-errors/ref":33,"es-errors/syntax":34,"es-errors/type":35,"es-errors/uri":36,"function-bind":42,"has-proto":51,"has-symbols":52,hasown:55}],45:[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)}}}}},{}],46:[function(e,t,n){var r=e("./event.js");t.exports=function(e){var t=r();return e(t.broadcast),t.listen}},{"./event.js":45}],47:[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":9}],48:[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:{})},{}],49:[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":44}],50:[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":29}],51:[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)}},{}],52:[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":53}],53:[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}},{}],54:[function(e,t,n){"use strict";var r=e("has-symbols/shams");t.exports=function(){return r()&&!!Symbol.toStringTag}},{"has-symbols/shams":53}],55:[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":42}],56:[function(e,t,n){t.exports=function(e,t){if(void 0===t)return"none"===e.style.display;e.style.display=t?"none":""}},{}],57:[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["години","година","години"][s(e)]}),(function(e){return["месеца","месец","месеца"][s(e)]}),(function(e){return["седмици","седмица","седмици"][s(e)]}),(function(e){return["дни","ден","дни"][s(e)]}),(function(e){return["часа","час","часа"][s(e)]}),(function(e){return["минути","минута","минути"][s(e)]}),(function(e){return["секунди","секунда","секунди"][s(e)]}),(function(e){return["милисекунди","милисекунда","милисекунди"][s(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"][l(e)]}),(function(e){return["měsíc","měsíce","měsíce","měsíců"][l(e)]}),(function(e){return["týden","týdne","týdny","týdnů"][l(e)]}),(function(e){return["den","dne","dny","dní"][l(e)]}),(function(e){return["hodina","hodiny","hodiny","hodin"][l(e)]}),(function(e){return["minuta","minuty","minuty","minut"][l(e)]}),(function(e){return["sekunda","sekundy","sekundy","sekund"][l(e)]}),(function(e){return["milisekunda","milisekundy","milisekundy","milisekund"][l(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ų"][c(e)]}),(function(e){return["savaitė","savaitės","savaičių"][c(e)]}),(function(e){return["diena","dienos","dienų"][c(e)]}),(function(e){return["valanda","valandos","valandų"][c(e)]}),(function(e){return["minutė","minutės","minučių"][c(e)]}),(function(e){return["sekundė","sekundės","sekundžių"][c(e)]}),(function(e){return["milisekundė","milisekundės","milisekundžių"][c(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"][u(e)]}),(function(e){return["miesiąc","miesiąca","miesiące","miesięcy"][u(e)]}),(function(e){return["tydzień","tygodnia","tygodnie","tygodni"][u(e)]}),(function(e){return["dzień","dnia","dni","dni"][u(e)]}),(function(e){return["godzina","godziny","godziny","godzin"][u(e)]}),(function(e){return["minuta","minuty","minuty","minut"][u(e)]}),(function(e){return["sekunda","sekundy","sekundy","sekund"][u(e)]}),(function(e){return["milisekunda","milisekundy","milisekundy","milisekund"][u(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["лет","год","года"][s(e)]}),(function(e){return["месяцев","месяц","месяца"][s(e)]}),(function(e){return["недель","неделя","недели"][s(e)]}),(function(e){return["дней","день","дня"][s(e)]}),(function(e){return["часов","час","часа"][s(e)]}),(function(e){return["минут","минута","минуты"][s(e)]}),(function(e){return["секунд","секунда","секунды"][s(e)]}),(function(e){return["миллисекунд","миллисекунда","миллисекунды"][s(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["години","година","године"][s(e)]}),(function(e){return["месеци","месец","месеца"][s(e)]}),(function(e){return["недељи","недеља","недеље"][s(e)]}),(function(e){return["дани","дан","дана"][s(e)]}),(function(e){return["сати","сат","сата"][s(e)]}),(function(e){return["минута","минут","минута"][s(e)]}),(function(e){return["секунди","секунда","секунде"][s(e)]}),(function(e){return["милисекунди","милисекунда","милисекунде"][s(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["років","рік","роки"][s(e)]}),(function(e){return["місяців","місяць","місяці"][s(e)]}),(function(e){return["тижнів","тиждень","тижні"][s(e)]}),(function(e){return["днів","день","дні"][s(e)]}),(function(e){return["годин","година","години"][s(e)]}),(function(e){return["хвилин","хвилина","хвилини"][s(e)]}),(function(e){return["секунд","секунда","секунди"][s(e)]}),(function(e){return["мілісекунд","мілісекунда","мілісекунди"][s(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"][l(e)]}),(function(e){return["mesiac","mesiace","mesiace","mesiacov"][l(e)]}),(function(e){return["týždeň","týždne","týždne","týždňov"][l(e)]}),(function(e){return["deň","dni","dni","dní"][l(e)]}),(function(e){return["hodina","hodiny","hodiny","hodín"][l(e)]}),(function(e){return["minúta","minúty","minúty","minút"][l(e)]}),(function(e){return["sekunda","sekundy","sekundy","sekúnd"][l(e)]}),(function(e){return["milisekunda","milisekundy","milisekundy","milisekúnd"][l(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,u,s){var l={y:e,mo:t,w:n,d:r,h:i,m:o,s:a,ms:u};return void 0!==s&&(l.decimal=s),l}function a(e){return 2===e?1:e>2&&e<11?2:0}function u(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 s(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 l(e){return 1===e?0:Math.floor(e)!==e?1:e%10>=2&&e%10<=4&&e%100<10?2:3}function c(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 p(e,t,n){var r,i,o,a=e.unitName,u=e.unitCount,s=n.spacer,l=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 c=(void 0===l?u:Math.floor(u*Math.pow(10,l))/Math.pow(10,l)).toString();if(t._hideCountIf2&&2===u)o="",s="";else if(i){o="";for(var f=0;f<c.length;f++){var p=c[f];o+="."===p?r:i[p]}}else o=c.replace(".",r);var h,m=t[a];return h="function"==typeof m?m(u):m,t._numberFirst?h+s+o:o+s+h}function h(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 p({unitName:o[o.length-1],unitCount:0},r,t)}var a,u=t.conjunction,s=t.serialComma;a=d(t,"delimiter")?t.delimiter:d(r,"delimiter")?r.delimiter:", ";for(var l=[],c=0;c<e.length;c++)l.push(p(e[c],r,t));return u&&1!==e.length?2===e.length?l.join(u):l.slice(0,-1).join(a)+(s?",":"")+u+l.slice(-1):l.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,u=t.unitMeasures,s="largest"in t?t.largest:1/0;if(!a.length)return[];var l={};for(o=e,r=0;r<a.length;r++){var c=u[n=a[r]];i=r===a.length-1?o/c:Math.floor(o/c),l[n]=i,o-=i*c}if(t.round){var f=s;for(r=0;r<a.length;r++)if(0!==(i=l[n=a[r]])&&0==--f){for(var d=r+1;d<a.length;d++){var p=a[d],h=l[p];l[n]+=h*u[p]/u[n],l[p]=0}break}for(r=a.length-1;r>=0;r--)if(0!==(i=l[n=a[r]])){var m=Math.round(i);if(l[n]=m,0===r)break;var y=a[r-1],b=u[y],g=Math.floor(m*u[n]/b);if(!g)break;l[y]+=g,l[n]=0}}var v=[];for(r=0;r<a.length&&v.length<s;r++)(i=l[n=a[r]])&&v.push({unitName:n,unitCount:i});return v}(t,i);return h(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}()},{}],58:[function(e,t,n){var r=e("browser-split"),i=e("class-list"),o="undefined"==typeof window?e("html-element"):window,a=o.document,u=o.Text;function s(){var e=[];function t(){var t=[].slice.call(arguments),n=null;function o(t){var s,f,d;if(null==t);else if("string"==typeof t)n?n.appendChild(s=a.createTextNode(t)):(d=r(t,/([\.#]?[^\s#.]+)/),/^\.|#/.test(d[1])&&(n=a.createElement("div")),c(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(s=a.createTextNode(t.toString()));else if(f=t,"[object Array]"==Object.prototype.toString.call(f))c(t,o);else if(l(t))n.appendChild(s=t);else if(t instanceof u)n.appendChild(s=t);else if("object"==typeof t)for(var p in t)if("function"==typeof t[p])/^on\w+/.test(p)?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])})))}(p,t):(n[p]=t[p](),e.push(t[p]((function(e){n[p]=e}))));else if("style"===p)if("string"==typeof t[p])n.style.cssText=t[p];else for(var h in t[p])!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[p][r].match(/(.*)\W+!important\W*$/);o?n.style.setProperty(r,o[1],"important"):n.style.setProperty(r,t[p][r])}(h,t[p][h]);else if("attrs"===p)for(var m in t[p])n.setAttribute(m,t[p][m]);else"data-"===p.substr(0,5)?n.setAttribute(p,t[p]):n[p]=t[p];else if("function"==typeof t){m=t();n.appendChild(s=l(m)?m:a.createTextNode(m)),e.push(t((function(e){l(e)&&s.parentElement?(s.parentElement.replaceChild(e,s),s=e):s.textContent=e})))}return s}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 l(e){return e&&e.nodeName&&e.nodeType}function c(e,t){if(e.forEach)return e.forEach(t);for(var n=0;n<e.length;n++)t(e[n],n)}(t.exports=s()).context=s},{"browser-split":10,"class-list":15,"html-element":9}],59:[function(e,t,n){
30
30
  /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
31
31
  n.read=function(e,t,n,r,i){var o,a,u=8*i-r-1,s=(1<<u)-1,l=s>>1,c=-7,f=n?i-1:0,d=n?-1:1,p=e[t+f];for(f+=d,o=p&(1<<-c)-1,p>>=-c,c+=u;c>0;o=256*o+e[t+f],f+=d,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+e[t+f],f+=d,c-=8);if(0===o)o=1-l;else{if(o===s)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),o-=l}return(p?-1:1)*a*Math.pow(2,o-r)},n.write=function(e,t,n,r,i,o){var a,u,s,l=8*o-i-1,c=(1<<l)-1,f=c>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,h=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(u=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-a))<1&&(a--,s*=2),(t+=a+f>=1?d/s:d*Math.pow(2,1-f))*s>=2&&(a++,s/=2),a+f>=c?(u=0,a=c):a+f>=1?(u=(t*s-1)*Math.pow(2,i),a+=f):(u=t*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;e[n+p]=255&u,p+=h,u/=256,i-=8);for(a=a<<i|u,l+=i;l>0;e[n+p]=255&a,p+=h,a/=256,l-=8);e[n+p-h]|=128*m}},{}],60:[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}},{}],61:[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}}},{}],62:[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"),u=r.indexOf(a);return-1===u&&(u=r.push(a)-1,i[u]={}),void 0!==i[u]&&void 0!==i[u][o]?n=i[u][o]:(n=i[u][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},{}],63:[function(e,t,n){
32
32
  /*! npm.im/intervalometer */
33
33
  "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)}},{}],64:[function(e,t,n){
34
34
  /*! npm.im/iphone-inline-video 2.2.2 */
35
- "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 u(e,t){Promise.resolve().then((function(){e.dispatchEvent(new Event(t))}))}var s="object"==typeof document&&"object-fit"in document.head.style&&!matchMedia("(-webkit-video-playable-inline)").matches,l="bfred-it:iphone-inline-video",c="bfred-it:iphone-inline-video:event",f="bfred-it:iphone-inline-video:nativeplay",d="bfred-it:iphone-inline-video:nativepause";var p,h=[],m=0;function y(e,t,n){(p||0)+200<Date.now()&&(e[c]=!0,p=Date.now()),n||(e.currentTime=t),h[++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[c],t.video.pause(!0))}function v(){var e=this,t=e[l];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||(u(e,"play"),t.video.readyState>=t.video.HAVE_ENOUGH_DATA&&u(e,"playing"))))}function w(e){var t=this,n=t[l];n.driver.pause(),n.updater.stop(),t.webkitDisplayingFullscreen&&t[d](),n.paused&&!e||(n.paused=!0,n.hasAudio||u(t,"pause"),t.ended&&!t.webkitDisplayingFullscreen&&(t[c]=!0,u(t,"ended")))}function E(e,t){var n={};e[l]=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||u(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(){h.indexOf(100*e.currentTime|0)<0&&(n.driver.currentTime=e.currentTime)})))}function _(e){var t=e[c];return delete e[c],!e.webkitDisplayingFullscreen&&!t}t.exports=function(e,t){if(void 0===t&&(t={}),!e[l]){if(!t.everywhere){if(!s)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[l];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:63}],65:[function(e,t,n){"use strict";var r=e("has-tostringtag/shams")(),i=e("call-bind/callBound")("Object.prototype.toString"),o=function(e){return!(r&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===i(e)},a=function(e){return!!o(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==i(e)&&"[object Function]"===i(e.callee)},u=function(){return o(arguments)}();o.isLegacyArguments=a,t.exports=u?o:a},{"call-bind/callBound":12,"has-tostringtag/shams":54}],66:[function(e,t,n){"use strict";var r,i,o=Function.prototype.toString,a="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof a&&"function"==typeof Object.defineProperty)try{r=Object.defineProperty({},"length",{get:function(){throw i}}),i={},a((function(){throw 42}),null,r)}catch(e){e!==i&&(a=null)}else a=null;var u=/^\s*class\b/,s=function(e){try{var t=o.call(e);return u.test(t)}catch(e){return!1}},l=function(e){try{return!s(e)&&(o.call(e),!0)}catch(e){return!1}},c=Object.prototype.toString,f="function"==typeof Symbol&&!!Symbol.toStringTag,d=!(0 in[,]),p=function(){return!1};if("object"==typeof document){var h=document.all;c.call(h)===c.call(document.all)&&(p=function(e){if((d||!e)&&(void 0===e||"object"==typeof e))try{var t=c.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(e){}return!1})}t.exports=a?function(e){if(p(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;try{a(e,null,r)}catch(e){if(e!==i)return!1}return!s(e)&&l(e)}:function(e){if(p(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if(f)return l(e);if(s(e))return!1;var t=c.call(e);return!("[object Function]"!==t&&"[object GeneratorFunction]"!==t&&!/^\[object HTML/.test(t))&&l(e)}},{}],67:[function(e,t,n){"use strict";t.exports=Number.isFinite||function(e){return!("number"!=typeof e||e!=e||e===1/0||e===-1/0)}},{}],68:[function(e,t,n){"use strict";var r,i=Object.prototype.toString,o=Function.prototype.toString,a=/^\s*(?:function)?\*/,u=e("has-tostringtag/shams")(),s=Object.getPrototypeOf;t.exports=function(e){if("function"!=typeof e)return!1;if(a.test(o.call(e)))return!0;if(!u)return"[object GeneratorFunction]"===i.call(e);if(!s)return!1;if(void 0===r){var t=function(){if(!u)return!1;try{return Function("return function*() {}")()}catch(e){}}();r=!!t&&s(t)}return s(e)===r}},{"has-tostringtag/shams":54}],69:[function(e,t,n){t.exports=function(e){return 0!==e&&0==(e&e-1)}},{}],70:[function(e,t,n){"use strict";var r=e("which-typed-array");t.exports=function(e){return!!r(e)}},{"which-typed-array":120}],71:[function(e,t,n){var r={}.toString;t.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},{}],72:[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}},{}],73:[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":67}],74:[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,u="function"==typeof Set&&Set.prototype,s=Object.getOwnPropertyDescriptor&&u?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,l=u&&s&&"function"==typeof s.get?s.get:null,c=u&&Set.prototype.forEach,f="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,d="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,p="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,h=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,S=Array.prototype.concat,R=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,M="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===j||"symbol")?Symbol.toStringTag:null,D=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?-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 I=e("./util.inspect"),P=I.custom,L=q(P)?P: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]"!==V(e)||M&&"object"==typeof e&&M in e)}function W(e){return!("[object RegExp]"!==V(e)||M&&"object"==typeof e&&M in e)}function q(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,u){var s=r||{};if(z(s,"quoteStyle")&&"single"!==s.quoteStyle&&"double"!==s.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(z(s,"maxStringLength")&&("number"==typeof s.maxStringLength?s.maxStringLength<0&&s.maxStringLength!==1/0:null!==s.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var m=!z(s,"customInspect")||s.customInspect;if("boolean"!=typeof m&&"symbol"!==m)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(z(s,"indent")&&null!==s.indent&&"\t"!==s.indent&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(z(s,"numericSeparator")&&"boolean"!=typeof s.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var w=s.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,s);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 O=String(t)+"n";return w?N(t,O):O}var T=void 0===s.depth?5:s.depth;if(void 0===i&&(i=0),i>=T&&T>0&&"object"==typeof t)return F(t)?"[Array]":"[Object]";var P=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=R.call(Array(e.indent+1)," ")}return{base:n,prev:R.call(Array(t+1),n)}}(s,i);if(void 0===u)u=[];else if(G(u,t)>=0)return"[Circular]";function H(t,n,r){if(n&&(u=A.call(u)).push(n),r){var o={depth:s.depth};return z(s,"quoteStyle")&&(o.quoteStyle=s.quoteStyle),e(t,o,i+1,u)}return e(t,s,i+1,u)}if("function"==typeof t&&!W(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?" { "+R.call(ee,", ")+" }":"")}if(q(t)){var te=j?v.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):x.call(t);return"object"!=typeof t||j?te:J(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",s);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 P&&!function(e){for(var t=0;t<e.length;t++)if(G(e[t],"\n")>=0)return!1;return!0}(oe)?"["+Q(oe,P)+"]":"[ "+R.call(oe,", ")+" ]"}if(function(e){return!("[object Error]"!==V(e)||M&&"object"==typeof e&&M in e)}(t)){var ae=Z(t,H);return"cause"in Error.prototype||!("cause"in t)||D.call(t,"cause")?0===ae.length?"["+String(t)+"]":"{ ["+String(t)+"] "+R.call(ae,", ")+" }":"{ ["+String(t)+"] "+R.call(S.call("[cause]: "+H(t.cause),ae),", ")+" }"}if("object"==typeof t&&m){if(L&&"function"==typeof t[L]&&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{l.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var ue=[];return a&&a.call(t,(function(e,n){ue.push(H(n,t,!0)+" => "+H(e,t))})),X("Map",o.call(t),ue,P)}if(function(e){if(!l||!e||"object"!=typeof e)return!1;try{l.call(e);try{o.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var se=[];return c&&c.call(t,(function(e){se.push(H(e,t))})),X("Set",l.call(t),se,P)}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 K("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 K("WeakSet");if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{return p.call(e),!0}catch(e){}return!1}(t))return K("WeakRef");if(function(e){return!("[object Number]"!==V(e)||M&&"object"==typeof e&&M in e)}(t))return J(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 J(H(k.call(t)));if(function(e){return!("[object Boolean]"!==V(e)||M&&"object"==typeof e&&M in e)}(t))return J(h.call(t));if(function(e){return!("[object String]"!==V(e)||M&&"object"==typeof e&&M in e)}(t))return J(H(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if(t===n)return"{ [object globalThis] }";if(!function(e){return!("[object Date]"!==V(e)||M&&"object"==typeof e&&M in e)}(t)&&!W(t)){var le=Z(t,H),ce=C?C(t)===Object.prototype:t instanceof Object||t.constructor===Object,fe=t instanceof Object?"":"null prototype",de=!ce&&M&&Object(t)===t&&M in t?g.call(V(t),8,-1):fe?"Object":"",pe=(ce||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(de||fe?"["+R.call(S.call([],de||[],fe||[]),": ")+"] ":"");return 0===le.length?pe+"{}":P?pe+"{"+Q(le,P)+"}":pe+"{ "+R.call(le,", ")+" }"}return String(t)};var H=Object.prototype.hasOwnProperty||function(e){return e in this};function z(e,t){return H.call(e,t)}function V(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 J(e){return"Object("+e+")"}function K(e){return e+" { ? }"}function X(e,t,n,r){return e+" ("+t+") {"+(r?Q(n,r):R.call(n,", "))+"}"}function Q(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+R.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]=z(e,i)?t(e[i],e):""}var o,a="function"==typeof T?T(e):[];if(j){o={};for(var u=0;u<a.length;u++)o["$"+a[u]]=a[u]}for(var s in e)z(e,s)&&(n&&String(Number(s))===s&&s<e.length||j&&o["$"+s]instanceof Symbol||(_.call(/[^\w$]/,s)?r.push(t(s,e)+": "+t(e[s],e)):r.push(s+": "+t(e[s],e))));if("function"==typeof T)for(var l=0;l<a.length;l++)D.call(e,a[l])&&r.push("["+t(a[l])+"]: "+t(e[a[l]],e));return r}}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./util.inspect":9}],75:[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:121}],76:[function(e,t,n){(function(e){(function(){(function(){var n,r,i,o,a,u;"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]})(),u=1e9*e.uptime(),a=o-u):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:78}],77:[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,u=arguments.length;switch(u){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(u-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:78}],78:[function(e,t,n){var r,i,o=t.exports={};function a(){throw new Error("setTimeout has not been defined")}function u(){throw new Error("clearTimeout has not been defined")}function s(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:u}catch(e){i=u}}();var l,c=[],f=!1,d=-1;function p(){f&&l&&(f=!1,l.length?c=l.concat(c):d=-1,c.length&&h())}function h(){if(!f){var e=s(p);f=!0;for(var t=c.length;t;){for(l=c,c=[];++d<t;)l&&l[d].run();d=-1,t=c.length}l=null,f=!1,function(e){if(i===clearTimeout)return clearTimeout(e);if((i===u||!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];c.push(new m(e,t)),1!==c.length||f||s(h)},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}},{}],79:[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}},{}],80:[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":79,"./parse":81,"./stringify":82}],81:[function(e,t,n){"use strict";var r=e("./utils"),i=Object.prototype.hasOwnProperty,o=Array.isArray,a={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},u=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},s=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},l=function(e,t,n,r){if(e){var o=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,u=n.depth>0&&/(\[[^[\]]*])/.exec(o),l=u?o.slice(0,u.index):o,c=[];if(l){if(!n.plainObjects&&i.call(Object.prototype,l)&&!n.allowPrototypes)return;c.push(l)}for(var f=0;n.depth>0&&null!==(u=a.exec(o))&&f<n.depth;){if(f+=1,!n.plainObjects&&i.call(Object.prototype,u[1].slice(1,-1))&&!n.allowPrototypes)return;c.push(u[1])}return u&&c.push("["+o.slice(u.index)+"]"),function(e,t,n,r){for(var i=r?t:s(t,n),o=e.length-1;o>=0;--o){var a,u=e[o];if("[]"===u&&n.parseArrays)a=[].concat(i);else{a=n.plainObjects?Object.create(null):{};var l="["===u.charAt(0)&&"]"===u.charAt(u.length-1)?u.slice(1,-1):u,c=parseInt(l,10);n.parseArrays||""!==l?!isNaN(c)&&u!==l&&String(c)===l&&c>=0&&n.parseArrays&&c<=n.arrayLimit?(a=[])[c]=i:"__proto__"!==l&&(a[l]=i):a={0:i}}i=a}return i}(c,t,n,r)}};t.exports=function(e,t){var n=function(e){if(!e)return a;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;return{allowDots:void 0===e.allowDots?a.allowDots:!!e.allowDots,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,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,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,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var c="string"==typeof e?function(e,t){var n,l={},c=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,f=t.parameterLimit===1/0?void 0:t.parameterLimit,d=c.split(t.delimiter,f),p=-1,h=t.charset;if(t.charsetSentinel)for(n=0;n<d.length;++n)0===d[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===d[n]?h="utf-8":"utf8=%26%2310003%3B"===d[n]&&(h="iso-8859-1"),p=n,n=d.length);for(n=0;n<d.length;++n)if(n!==p){var m,y,b=d[n],g=b.indexOf("]="),v=-1===g?b.indexOf("="):g+1;-1===v?(m=t.decoder(b,a.decoder,h,"key"),y=t.strictNullHandling?null:""):(m=t.decoder(b.slice(0,v),a.decoder,h,"key"),y=r.maybeMap(s(b.slice(v+1),t),(function(e){return t.decoder(e,a.decoder,h,"value")}))),y&&t.interpretNumericEntities&&"iso-8859-1"===h&&(y=u(y)),b.indexOf("[]=")>-1&&(y=o(y)?[y]:y),i.call(l,m)?l[m]=r.combine(l[m],y):l[m]=y}return l}(e,n):e,f=n.plainObjects?Object.create(null):{},d=Object.keys(c),p=0;p<d.length;++p){var h=d[p],m=l(h,c[h],n,"string"==typeof e);f=r.merge(f,m,n)}return!0===n.allowSparse?f:r.compact(f)}},{"./utils":83}],82:[function(e,t,n){"use strict";var r=e("side-channel"),i=e("./utils"),o=e("./formats"),a=Object.prototype.hasOwnProperty,u={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},s=Array.isArray,l=String.prototype.split,c=Array.prototype.push,f=function(e,t){c.apply(e,s(t)?t:[t])},d=Date.prototype.toISOString,p=o.default,h={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:i.encode,encodeValuesOnly:!1,format:p,formatter:o.formatters[p],indices:!1,serializeDate:function(e){return d.call(e)},skipNulls:!1,strictNullHandling:!1},m={},y=function e(t,n,o,a,u,c,d,p,y,b,g,v,w,E,_,S){for(var R,A=t,O=S,k=0,T=!1;void 0!==(O=O.get(m))&&!T;){var x=O.get(t);if(k+=1,void 0!==x){if(x===k)throw new RangeError("Cyclic object value");T=!0}void 0===O.get(m)&&(k=0)}if("function"==typeof p?A=p(n,A):A instanceof Date?A=g(A):"comma"===o&&s(A)&&(A=i.maybeMap(A,(function(e){return e instanceof Date?g(e):e}))),null===A){if(u)return d&&!E?d(n,h.encoder,_,"key",v):n;A=""}if("string"==typeof(R=A)||"number"==typeof R||"boolean"==typeof R||"symbol"==typeof R||"bigint"==typeof R||i.isBuffer(A)){if(d){var j=E?n:d(n,h.encoder,_,"key",v);if("comma"===o&&E){for(var M=l.call(String(A),","),D="",C=0;C<M.length;++C)D+=(0===C?"":",")+w(d(M[C],h.encoder,_,"value",v));return[w(j)+(a&&s(A)&&1===M.length?"[]":"")+"="+D]}return[w(j)+"="+w(d(A,h.encoder,_,"value",v))]}return[w(n)+"="+w(String(A))]}var N,I=[];if(void 0===A)return I;if("comma"===o&&s(A))N=[{value:A.length>0?A.join(",")||null:void 0}];else if(s(p))N=p;else{var P=Object.keys(A);N=y?P.sort(y):P}for(var L=a&&s(A)&&1===A.length?n+"[]":n,B=0;B<N.length;++B){var U=N[B],F="object"==typeof U&&void 0!==U.value?U.value:A[U];if(!c||null!==F){var W=s(A)?"function"==typeof o?o(L,U):L:L+(b?"."+U:"["+U+"]");S.set(t,k);var q=r();q.set(m,S),f(I,e(F,W,o,a,u,c,d,p,y,b,g,v,w,E,_,q))}}return I};t.exports=function(e,t){var n,i=e,l=function(e){if(!e)return h;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=o.formatters[n],i=h.filter;return("function"==typeof e.filter||s(e.filter))&&(i=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:h.addQueryPrefix,allowDots:void 0===e.allowDots?h.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:h.charsetSentinel,delimiter:void 0===e.delimiter?h.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:h.encode,encoder:"function"==typeof e.encoder?e.encoder:h.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:h.encodeValuesOnly,filter:i,format:n,formatter:r,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 l.filter?i=(0,l.filter)("",i):s(l.filter)&&(n=l.filter);var c,d=[];if("object"!=typeof i||null===i)return"";c=t&&t.arrayFormat in u?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var p=u[c];if(t&&"commaRoundTrip"in t&&"boolean"!=typeof t.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var m="comma"===p&&t&&t.commaRoundTrip;n||(n=Object.keys(i)),l.sort&&n.sort(l.sort);for(var b=r(),g=0;g<n.length;++g){var v=n[g];l.skipNulls&&null===i[v]||f(d,y(i[v],v,p,m,l.strictNullHandling,l.skipNulls,l.encode?l.encoder:null,l.filter,l.sort,l.allowDots,l.serializeDate,l.format,l.formatter,l.encodeValuesOnly,l.charset,b))}var w=d.join(l.delimiter),E=!0===l.addQueryPrefix?"?":"";return l.charsetSentinel&&("iso-8859-1"===l.charset?E+="utf8=%26%2310003%3B&":E+="utf8=%E2%9C%93&"),w.length>0?E+w:""}},{"./formats":79,"./utils":83,"side-channel":102}],83:[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}(),u=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};t.exports={arrayToObject:u,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],u=Object.keys(a),s=0;s<u.length;++s){var l=u[s],c=a[l];"object"==typeof c&&null!==c&&-1===n.indexOf(c)&&(t.push({obj:a,prop:l}),n.push(c))}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 u=e;if("symbol"==typeof e?u=Symbol.prototype.toString.call(e):"string"!=typeof e&&(u=String(e)),"iso-8859-1"===n)return escape(u).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var s="",l=0;l<u.length;++l){var c=u.charCodeAt(l);45===c||46===c||95===c||126===c||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||o===r.RFC1738&&(40===c||41===c)?s+=u.charAt(l):c<128?s+=a[c]:c<2048?s+=a[192|c>>6]+a[128|63&c]:c<55296||c>=57344?s+=a[224|c>>12]+a[128|c>>6&63]+a[128|63&c]:(l+=1,c=65536+((1023&c)<<10|1023&u.charCodeAt(l)),s+=a[240|c>>18]+a[128|c>>12&63]+a[128|c>>6&63]+a[128|63&c])}return s},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=u(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":79}],84:[function(e,t,n){(function(n){(function(){for(var r=e("performance-now"),i="undefined"==typeof window?n:window,o=["moz","webkit"],a="AnimationFrame",u=i["request"+a],s=i["cancel"+a]||i["cancelRequest"+a],l=0;!u&&l<o.length;l++)u=i[o[l]+"Request"+a],s=i[o[l]+"Cancel"+a]||i[o[l]+"CancelRequest"+a];if(!u||!s){var c=0,f=0,d=[];u=function(e){if(0===d.length){var t=r(),n=Math.max(0,16.666666666666668-(t-c));c=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(c)}catch(e){setTimeout((function(){throw e}),0)}}),Math.round(n))}return d.push({handle:++f,callback:e,cancelled:!1}),f},s=function(e){for(var t=0;t<d.length;t++)d[t].handle===e&&(d[t].cancelled=!0)}}t.exports=function(e){return u.call(i,e)},t.exports.cancel=function(){s.apply(i,arguments)},t.exports.polyfill=function(e){e||(e=i),e.requestAnimationFrame=u,e.cancelAnimationFrame=s}}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"performance-now":76}],85:[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"),u=e("./_stream_writable");o.inherits(f,a);for(var s=i(u.prototype),l=0;l<s.length;l++){var c=s[l];f.prototype[c]||(f.prototype[c]=u.prototype[c])}function f(e){if(!(this instanceof f))return new f(e);a.call(this,e),u.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(p,this)}function p(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":87,"./_stream_writable":89,"core-util-is":19,inherits:61,"process-nextick-args":77}],86:[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":88,"core-util-is":19,inherits:61}],87:[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 u=function(e,t){return e.listeners(t).length},s=e("./internal/streams/stream"),l=e("safe-buffer").Buffer,c=(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"),p=void 0;p=d&&d.debuglog?d.debuglog("stream"):function(){};var h,m=e("./internal/streams/BufferList"),y=e("./internal/streams/destroy");f.inherits(v,s);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,u=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(a||0===a)?a:u,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&&(h||(h=e("string_decoder/").StringDecoder),this.decoder=new h(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)),s.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,R(e)}(e,a)):(i||(o=function(e,t){var n;r=t,l.isBuffer(r)||r instanceof c||"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)===l.prototype||(t=function(e){return l.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&&R(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=l.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 h||(h=e("string_decoder/").StringDecoder),this._readableState.decoder=new h(t),this._readableState.encoding=t,this};var _=8388608;function S(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=_?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 R(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(p("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?i.nextTick(A,e):A(e))}function A(e){p("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&&(p("maybeReadMore read 0"),e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}function T(e){p("readable nexttick read 0"),e.read(0)}function x(e,t){t.reading||(p("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(p("flow",t.flowing);t.flowing&&null!==e.read(););}function M(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=l.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 D(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){p("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 p("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?D(this):R(this),null;if(0===(e=S(e,t))&&t.ended)return 0===t.length&&D(this),null;var r,i=t.needReadable;return p("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&p("length less than watermark",i=!0),t.ended||t.reading?p("reading or ended",i=!1):i&&(p("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=S(n,t))),null===(r=e>0?M(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&D(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,p("pipe count=%d opts=%j",o.pipesCount,t);var s=(!t||!1!==t.end)&&e!==n.stdout&&e!==n.stderr?c:v;function l(t,n){p("onunpipe"),t===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,p("cleanup"),e.removeListener("close",b),e.removeListener("finish",g),e.removeListener("drain",f),e.removeListener("error",y),e.removeListener("unpipe",l),r.removeListener("end",c),r.removeListener("end",v),r.removeListener("data",m),d=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||f())}function c(){p("onend"),e.end()}o.endEmitted?i.nextTick(s):r.once("end",s),e.on("unpipe",l);var f=function(e){return function(){var t=e._readableState;p("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&u(e,"data")&&(t.flowing=!0,j(e))}}(r);e.on("drain",f);var d=!1;var h=!1;function m(t){p("ondata"),h=!1,!1!==e.write(t)||h||((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==N(o.pipes,e))&&!d&&(p("false write response, pause",o.awaitDrain),o.awaitDrain++,h=!0),r.pause())}function y(t){p("onerror",t),v(),e.removeListener("error",y),0===u(e,"error")&&e.emit("error",t)}function b(){e.removeListener("finish",g),v()}function g(){p("onfinish"),e.removeListener("close",b),v()}function v(){p("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||(p("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=s.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&&R(this):i.nextTick(T,this))}return n},v.prototype.addListener=v.prototype.on,v.prototype.resume=function(){var e=this._readableState;return e.flowing||(p("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 p("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(p("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(p("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){(p("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){p("wrapped _read",t),r&&(r=!1,e.resume())},this},Object.defineProperty(v.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),v._fromList=M}).call(this)}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./_stream_duplex":85,"./internal/streams/BufferList":90,"./internal/streams/destroy":91,"./internal/streams/stream":92,_process:78,"core-util-is":19,events:37,inherits:61,isarray:71,"process-nextick-args":77,"safe-buffer":93,"string_decoder/":94,util:9}],88:[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",u)}function u(){var e=this;"function"==typeof this._flush?this._flush((function(t,n){s(e,t,n)})):s(this,null,null)}function s(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":85,"core-util-is":19,inherits:61}],89:[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 u,s=!n.browser&&["v0.10","v0.9."].indexOf(n.version.slice(0,5))>-1?i:o.nextTick;g.WritableState=b;var l=Object.create(e("core-util-is"));l.inherits=e("inherits");var c={deprecate:e("util-deprecate")},f=e("./internal/streams/stream"),d=e("safe-buffer").Buffer,p=(void 0!==r?r:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var h,m=e("./internal/streams/destroy");function y(){}function b(t,n){u=u||e("./_stream_duplex"),t=t||{};var r=n instanceof u;this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var i=t.highWaterMark,l=t.writableHighWaterMark,c=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(l||0===l)?l:c,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(R,e,t),e._writableState.errorEmitted=!0,e.emit("error",r)):(i(r),e._writableState.errorEmitted=!0,e.emit("error",r),R(e,t))}(e,n,r,t,i);else{var a=_(n);a||n.corked||n.bufferProcessing||!n.bufferedRequest||E(e,n),r?s(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(u=u||e("./_stream_duplex"),!(h.call(g,this)||this instanceof u))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(),R(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 u=0,s=!0;n;)i[u]=n,n.isBuf||(s=!1),n=n.next,u+=1;i.allBuffers=s,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 l=n.chunk,c=n.encoding,f=n.callback;if(v(e,t,!1,t.objectMode?1:l.length,l,c,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 S(e,t){e._final((function(n){t.pendingcb--,n&&e.emit("error",n),t.prefinished=!0,e.emit("prefinish"),R(e,t)}))}function R(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(S,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),n}l.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:c.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(h=Function.prototype[Symbol.hasInstance],Object.defineProperty(g,Symbol.hasInstance,{value:function(e){return!!h.call(this,e)||this===g&&(e&&e._writableState instanceof b)}})):h=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,u=!i.objectMode&&(r=e,d.isBuffer(r)||r instanceof p);return u&&!d.isBuffer(e)&&(e=function(e){return d.from(e)}(e)),"function"==typeof t&&(n=t,t=null),u?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):(u||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 u=t.objectMode?1:r.length;t.length+=u;var s=t.length<t.highWaterMark;s||(t.needDrain=!0);if(t.writing||t.corked){var l=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:o,next:null},l?l.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else v(e,t,!1,u,r,i,o);return s}(this,i,u,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,R(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":85,"./internal/streams/destroy":91,"./internal/streams/stream":92,_process:78,"core-util-is":19,inherits:61,"process-nextick-args":77,"safe-buffer":93,timers:109,"util-deprecate":112}],90:[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,u=0;a;)t=a.data,n=o,i=u,t.copy(n,i),u+=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":93,util:9}],91:[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":77}],92:[function(e,t,n){t.exports=e("events").EventEmitter},{events:37}],93:[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:11}],94:[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=s,this.end=l,t=4;break;case"utf8":this.fillLast=u,t=4;break;case"base64":this.text=c,this.end=f,t=3;break;default:return this.write=d,void(this.end=p)}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 u(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function s(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 l(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function c(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 p(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":93}],95:[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":85,"./lib/_stream_passthrough.js":86,"./lib/_stream_readable.js":87,"./lib/_stream_transform.js":88,"./lib/_stream_writable.js":89}],96:[function(e,t,n){"use strict";var r=t.exports=e("./readystate"),i=new Function("return this")(),o="complete",a=!0,u=i?i.document:null,s=u?u.documentElement:null,l=function(){return u?u.readyState:null};!function(){if(o===l())return r.change(o);var e=u&&!!u.addEventListener,t=e?"":"on",n=e?"addEventListener":"attachEvent",c=e?"removeEventListener":"detachEvent",f=s?s.doScroll:null;if(!e&&"function"==typeof f){try{a=!i.frameElement}catch(e){}a&&function e(){try{f("left")}catch(t){return setTimeout(e,50)}r.change("interactive")}()}function d(e){"readystatechange"===(e=e||i.event).type&&(r.change(l()),o!==l())||("load"===e.type?r.change("complete"):r.change("interactive"),("load"===e.type?i:u)[c](e.type,d,!1))}u[n](t+"DOMContentLoaded",d,!1),u[n](t+"readystatechange",d,!1),i[n](t+"load",d,!1)}()},{"./readystate":97}],97:[function(e,t,n){"use strict";function r(e){return function(t,n){var r=this;return r.is(e)?setTimeout((function(){t.call(n,r.readyState)}),0):(r._events[e]||(r._events[e]=[]),r._events[e].push({fn:t,context:n})),r}}function i(){this.readyState=i.UNKNOWN,this._events={}}i.states="ALL,UNKNOWN,LOADING,INTERACTIVE,COMPLETE".split(",");for(var o,a=0;a<i.states.length;a++)i[o=i.states[a]]=i.prototype[o]=a,i.prototype[o.toLowerCase()]=r(o);i.prototype.change=function(e){e=this.clean(e,!0);var t,n,r,o=0,a=this,u=a.readyState;if(u>=e)return a;for(a.readyState=e;o<i.states.length&&!(o>e);o++)if((n=i.states[o])in a._events){for(t=0;t<a._events[n].length;t++)(r=a._events[n][t]).fn.call(r.context||a,u);delete a._events[n]}return a},i.prototype.is=function(e){return this.readyState>=this.clean(e,!0)},i.prototype.clean=function(e,t){var n=typeof e;return t?"number"!==n?+i[e.toUpperCase()]||0:e:("number"===n?i.states[e]:e).toUpperCase()},i.prototype.removeAllListeners=function(){return this._events={},this},t.exports=new i},{}],98:[function(e,t,n){
35
+ "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 u(e,t){Promise.resolve().then((function(){e.dispatchEvent(new Event(t))}))}var s="object"==typeof document&&"object-fit"in document.head.style&&!matchMedia("(-webkit-video-playable-inline)").matches,l="bfred-it:iphone-inline-video",c="bfred-it:iphone-inline-video:event",f="bfred-it:iphone-inline-video:nativeplay",d="bfred-it:iphone-inline-video:nativepause";var p,h=[],m=0;function y(e,t,n){(p||0)+200<Date.now()&&(e[c]=!0,p=Date.now()),n||(e.currentTime=t),h[++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[c],t.video.pause(!0))}function v(){var e=this,t=e[l];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||(u(e,"play"),t.video.readyState>=t.video.HAVE_ENOUGH_DATA&&u(e,"playing"))))}function w(e){var t=this,n=t[l];n.driver.pause(),n.updater.stop(),t.webkitDisplayingFullscreen&&t[d](),n.paused&&!e||(n.paused=!0,n.hasAudio||u(t,"pause"),t.ended&&!t.webkitDisplayingFullscreen&&(t[c]=!0,u(t,"ended")))}function E(e,t){var n={};e[l]=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||u(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(){h.indexOf(100*e.currentTime|0)<0&&(n.driver.currentTime=e.currentTime)})))}function _(e){var t=e[c];return delete e[c],!e.webkitDisplayingFullscreen&&!t}t.exports=function(e,t){if(void 0===t&&(t={}),!e[l]){if(!t.everywhere){if(!s)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[l];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:63}],65:[function(e,t,n){"use strict";var r=e("has-tostringtag/shams")(),i=e("call-bind/callBound")("Object.prototype.toString"),o=function(e){return!(r&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===i(e)},a=function(e){return!!o(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==i(e)&&"[object Function]"===i(e.callee)},u=function(){return o(arguments)}();o.isLegacyArguments=a,t.exports=u?o:a},{"call-bind/callBound":12,"has-tostringtag/shams":54}],66:[function(e,t,n){"use strict";var r,i,o=Function.prototype.toString,a="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof a&&"function"==typeof Object.defineProperty)try{r=Object.defineProperty({},"length",{get:function(){throw i}}),i={},a((function(){throw 42}),null,r)}catch(e){e!==i&&(a=null)}else a=null;var u=/^\s*class\b/,s=function(e){try{var t=o.call(e);return u.test(t)}catch(e){return!1}},l=function(e){try{return!s(e)&&(o.call(e),!0)}catch(e){return!1}},c=Object.prototype.toString,f="function"==typeof Symbol&&!!Symbol.toStringTag,d=!(0 in[,]),p=function(){return!1};if("object"==typeof document){var h=document.all;c.call(h)===c.call(document.all)&&(p=function(e){if((d||!e)&&(void 0===e||"object"==typeof e))try{var t=c.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(e){}return!1})}t.exports=a?function(e){if(p(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;try{a(e,null,r)}catch(e){if(e!==i)return!1}return!s(e)&&l(e)}:function(e){if(p(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if(f)return l(e);if(s(e))return!1;var t=c.call(e);return!("[object Function]"!==t&&"[object GeneratorFunction]"!==t&&!/^\[object HTML/.test(t))&&l(e)}},{}],67:[function(e,t,n){"use strict";t.exports=Number.isFinite||function(e){return!("number"!=typeof e||e!=e||e===1/0||e===-1/0)}},{}],68:[function(e,t,n){"use strict";var r,i=Object.prototype.toString,o=Function.prototype.toString,a=/^\s*(?:function)?\*/,u=e("has-tostringtag/shams")(),s=Object.getPrototypeOf;t.exports=function(e){if("function"!=typeof e)return!1;if(a.test(o.call(e)))return!0;if(!u)return"[object GeneratorFunction]"===i.call(e);if(!s)return!1;if(void 0===r){var t=function(){if(!u)return!1;try{return Function("return function*() {}")()}catch(e){}}();r=!!t&&s(t)}return s(e)===r}},{"has-tostringtag/shams":54}],69:[function(e,t,n){t.exports=function(e){return 0!==e&&0==(e&e-1)}},{}],70:[function(e,t,n){"use strict";var r=e("which-typed-array");t.exports=function(e){return!!r(e)}},{"which-typed-array":121}],71:[function(e,t,n){var r={}.toString;t.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},{}],72:[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}},{}],73:[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":67}],74:[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,u="function"==typeof Set&&Set.prototype,s=Object.getOwnPropertyDescriptor&&u?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,l=u&&s&&"function"==typeof s.get?s.get:null,c=u&&Set.prototype.forEach,f="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,d="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,p="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,h=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,S=Array.prototype.concat,R=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,M="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===j||"symbol")?Symbol.toStringTag:null,D=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?-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 I=e("./util.inspect"),P=I.custom,L=q(P)?P: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]"!==V(e)||M&&"object"==typeof e&&M in e)}function W(e){return!("[object RegExp]"!==V(e)||M&&"object"==typeof e&&M in e)}function q(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,u){var s=r||{};if(z(s,"quoteStyle")&&"single"!==s.quoteStyle&&"double"!==s.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(z(s,"maxStringLength")&&("number"==typeof s.maxStringLength?s.maxStringLength<0&&s.maxStringLength!==1/0:null!==s.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var m=!z(s,"customInspect")||s.customInspect;if("boolean"!=typeof m&&"symbol"!==m)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(z(s,"indent")&&null!==s.indent&&"\t"!==s.indent&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(z(s,"numericSeparator")&&"boolean"!=typeof s.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var w=s.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,s);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 O=String(t)+"n";return w?N(t,O):O}var T=void 0===s.depth?5:s.depth;if(void 0===i&&(i=0),i>=T&&T>0&&"object"==typeof t)return F(t)?"[Array]":"[Object]";var P=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=R.call(Array(e.indent+1)," ")}return{base:n,prev:R.call(Array(t+1),n)}}(s,i);if(void 0===u)u=[];else if(G(u,t)>=0)return"[Circular]";function H(t,n,r){if(n&&(u=A.call(u)).push(n),r){var o={depth:s.depth};return z(s,"quoteStyle")&&(o.quoteStyle=s.quoteStyle),e(t,o,i+1,u)}return e(t,s,i+1,u)}if("function"==typeof t&&!W(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?" { "+R.call(ee,", ")+" }":"")}if(q(t)){var te=j?v.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):x.call(t);return"object"!=typeof t||j?te:J(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",s);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 P&&!function(e){for(var t=0;t<e.length;t++)if(G(e[t],"\n")>=0)return!1;return!0}(oe)?"["+Q(oe,P)+"]":"[ "+R.call(oe,", ")+" ]"}if(function(e){return!("[object Error]"!==V(e)||M&&"object"==typeof e&&M in e)}(t)){var ae=Z(t,H);return"cause"in Error.prototype||!("cause"in t)||D.call(t,"cause")?0===ae.length?"["+String(t)+"]":"{ ["+String(t)+"] "+R.call(ae,", ")+" }":"{ ["+String(t)+"] "+R.call(S.call("[cause]: "+H(t.cause),ae),", ")+" }"}if("object"==typeof t&&m){if(L&&"function"==typeof t[L]&&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{l.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var ue=[];return a&&a.call(t,(function(e,n){ue.push(H(n,t,!0)+" => "+H(e,t))})),X("Map",o.call(t),ue,P)}if(function(e){if(!l||!e||"object"!=typeof e)return!1;try{l.call(e);try{o.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var se=[];return c&&c.call(t,(function(e){se.push(H(e,t))})),X("Set",l.call(t),se,P)}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 K("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 K("WeakSet");if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{return p.call(e),!0}catch(e){}return!1}(t))return K("WeakRef");if(function(e){return!("[object Number]"!==V(e)||M&&"object"==typeof e&&M in e)}(t))return J(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 J(H(k.call(t)));if(function(e){return!("[object Boolean]"!==V(e)||M&&"object"==typeof e&&M in e)}(t))return J(h.call(t));if(function(e){return!("[object String]"!==V(e)||M&&"object"==typeof e&&M in e)}(t))return J(H(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if(t===n)return"{ [object globalThis] }";if(!function(e){return!("[object Date]"!==V(e)||M&&"object"==typeof e&&M in e)}(t)&&!W(t)){var le=Z(t,H),ce=C?C(t)===Object.prototype:t instanceof Object||t.constructor===Object,fe=t instanceof Object?"":"null prototype",de=!ce&&M&&Object(t)===t&&M in t?g.call(V(t),8,-1):fe?"Object":"",pe=(ce||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(de||fe?"["+R.call(S.call([],de||[],fe||[]),": ")+"] ":"");return 0===le.length?pe+"{}":P?pe+"{"+Q(le,P)+"}":pe+"{ "+R.call(le,", ")+" }"}return String(t)};var H=Object.prototype.hasOwnProperty||function(e){return e in this};function z(e,t){return H.call(e,t)}function V(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 J(e){return"Object("+e+")"}function K(e){return e+" { ? }"}function X(e,t,n,r){return e+" ("+t+") {"+(r?Q(n,r):R.call(n,", "))+"}"}function Q(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+R.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]=z(e,i)?t(e[i],e):""}var o,a="function"==typeof T?T(e):[];if(j){o={};for(var u=0;u<a.length;u++)o["$"+a[u]]=a[u]}for(var s in e)z(e,s)&&(n&&String(Number(s))===s&&s<e.length||j&&o["$"+s]instanceof Symbol||(_.call(/[^\w$]/,s)?r.push(t(s,e)+": "+t(e[s],e)):r.push(s+": "+t(e[s],e))));if("function"==typeof T)for(var l=0;l<a.length;l++)D.call(e,a[l])&&r.push("["+t(a[l])+"]: "+t(e[a[l]],e));return r}}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./util.inspect":9}],75:[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:122}],76:[function(e,t,n){(function(e){(function(){(function(){var n,r,i,o,a,u;"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]})(),u=1e9*e.uptime(),a=o-u):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}],77:[function(e,t,n){"use strict";t.exports=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]},{}],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,u=arguments.length;switch(u){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(u-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 u(){throw new Error("clearTimeout has not been defined")}function s(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:u}catch(e){i=u}}();var l,c=[],f=!1,d=-1;function p(){f&&l&&(f=!1,l.length?c=l.concat(c):d=-1,c.length&&h())}function h(){if(!f){var e=s(p);f=!0;for(var t=c.length;t;){for(l=c,c=[];++d<t;)l&&l[d].run();d=-1,t=c.length}l=null,f=!1,function(e){if(i===clearTimeout)return clearTimeout(e);if((i===u||!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];c.push(new m(e,t)),1!==c.length||f||s(h)},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,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},u=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},s=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},l=function(e,t,n,r){if(e){var o=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,u=n.depth>0&&/(\[[^[\]]*])/.exec(o),l=u?o.slice(0,u.index):o,c=[];if(l){if(!n.plainObjects&&i.call(Object.prototype,l)&&!n.allowPrototypes)return;c.push(l)}for(var f=0;n.depth>0&&null!==(u=a.exec(o))&&f<n.depth;){if(f+=1,!n.plainObjects&&i.call(Object.prototype,u[1].slice(1,-1))&&!n.allowPrototypes)return;c.push(u[1])}return u&&c.push("["+o.slice(u.index)+"]"),function(e,t,n,r){for(var i=r?t:s(t,n),o=e.length-1;o>=0;--o){var a,u=e[o];if("[]"===u&&n.parseArrays)a=[].concat(i);else{a=n.plainObjects?Object.create(null):{};var l="["===u.charAt(0)&&"]"===u.charAt(u.length-1)?u.slice(1,-1):u,c=parseInt(l,10);n.parseArrays||""!==l?!isNaN(c)&&u!==l&&String(c)===l&&c>=0&&n.parseArrays&&c<=n.arrayLimit?(a=[])[c]=i:"__proto__"!==l&&(a[l]=i):a={0:i}}i=a}return i}(c,t,n,r)}};t.exports=function(e,t){var n=function(e){if(!e)return a;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;return{allowDots:void 0===e.allowDots?a.allowDots:!!e.allowDots,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,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,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,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var c="string"==typeof e?function(e,t){var n,l={},c=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,f=t.parameterLimit===1/0?void 0:t.parameterLimit,d=c.split(t.delimiter,f),p=-1,h=t.charset;if(t.charsetSentinel)for(n=0;n<d.length;++n)0===d[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===d[n]?h="utf-8":"utf8=%26%2310003%3B"===d[n]&&(h="iso-8859-1"),p=n,n=d.length);for(n=0;n<d.length;++n)if(n!==p){var m,y,b=d[n],g=b.indexOf("]="),v=-1===g?b.indexOf("="):g+1;-1===v?(m=t.decoder(b,a.decoder,h,"key"),y=t.strictNullHandling?null:""):(m=t.decoder(b.slice(0,v),a.decoder,h,"key"),y=r.maybeMap(s(b.slice(v+1),t),(function(e){return t.decoder(e,a.decoder,h,"value")}))),y&&t.interpretNumericEntities&&"iso-8859-1"===h&&(y=u(y)),b.indexOf("[]=")>-1&&(y=o(y)?[y]:y),i.call(l,m)?l[m]=r.combine(l[m],y):l[m]=y}return l}(e,n):e,f=n.plainObjects?Object.create(null):{},d=Object.keys(c),p=0;p<d.length;++p){var h=d[p],m=l(h,c[h],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,u={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},s=Array.isArray,l=String.prototype.split,c=Array.prototype.push,f=function(e,t){c.apply(e,s(t)?t:[t])},d=Date.prototype.toISOString,p=o.default,h={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:i.encode,encodeValuesOnly:!1,format:p,formatter:o.formatters[p],indices:!1,serializeDate:function(e){return d.call(e)},skipNulls:!1,strictNullHandling:!1},m={},y=function e(t,n,o,a,u,c,d,p,y,b,g,v,w,E,_,S){for(var R,A=t,O=S,k=0,T=!1;void 0!==(O=O.get(m))&&!T;){var x=O.get(t);if(k+=1,void 0!==x){if(x===k)throw new RangeError("Cyclic object value");T=!0}void 0===O.get(m)&&(k=0)}if("function"==typeof p?A=p(n,A):A instanceof Date?A=g(A):"comma"===o&&s(A)&&(A=i.maybeMap(A,(function(e){return e instanceof Date?g(e):e}))),null===A){if(u)return d&&!E?d(n,h.encoder,_,"key",v):n;A=""}if("string"==typeof(R=A)||"number"==typeof R||"boolean"==typeof R||"symbol"==typeof R||"bigint"==typeof R||i.isBuffer(A)){if(d){var j=E?n:d(n,h.encoder,_,"key",v);if("comma"===o&&E){for(var M=l.call(String(A),","),D="",C=0;C<M.length;++C)D+=(0===C?"":",")+w(d(M[C],h.encoder,_,"value",v));return[w(j)+(a&&s(A)&&1===M.length?"[]":"")+"="+D]}return[w(j)+"="+w(d(A,h.encoder,_,"value",v))]}return[w(n)+"="+w(String(A))]}var N,I=[];if(void 0===A)return I;if("comma"===o&&s(A))N=[{value:A.length>0?A.join(",")||null:void 0}];else if(s(p))N=p;else{var P=Object.keys(A);N=y?P.sort(y):P}for(var L=a&&s(A)&&1===A.length?n+"[]":n,B=0;B<N.length;++B){var U=N[B],F="object"==typeof U&&void 0!==U.value?U.value:A[U];if(!c||null!==F){var W=s(A)?"function"==typeof o?o(L,U):L:L+(b?"."+U:"["+U+"]");S.set(t,k);var q=r();q.set(m,S),f(I,e(F,W,o,a,u,c,d,p,y,b,g,v,w,E,_,q))}}return I};t.exports=function(e,t){var n,i=e,l=function(e){if(!e)return h;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=o.formatters[n],i=h.filter;return("function"==typeof e.filter||s(e.filter))&&(i=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:h.addQueryPrefix,allowDots:void 0===e.allowDots?h.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:h.charsetSentinel,delimiter:void 0===e.delimiter?h.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:h.encode,encoder:"function"==typeof e.encoder?e.encoder:h.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:h.encodeValuesOnly,filter:i,format:n,formatter:r,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 l.filter?i=(0,l.filter)("",i):s(l.filter)&&(n=l.filter);var c,d=[];if("object"!=typeof i||null===i)return"";c=t&&t.arrayFormat in u?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var p=u[c];if(t&&"commaRoundTrip"in t&&"boolean"!=typeof t.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var m="comma"===p&&t&&t.commaRoundTrip;n||(n=Object.keys(i)),l.sort&&n.sort(l.sort);for(var b=r(),g=0;g<n.length;++g){var v=n[g];l.skipNulls&&null===i[v]||f(d,y(i[v],v,p,m,l.strictNullHandling,l.skipNulls,l.encode?l.encoder:null,l.filter,l.sort,l.allowDots,l.serializeDate,l.format,l.formatter,l.encodeValuesOnly,l.charset,b))}var w=d.join(l.delimiter),E=!0===l.addQueryPrefix?"?":"";return l.charsetSentinel&&("iso-8859-1"===l.charset?E+="utf8=%26%2310003%3B&":E+="utf8=%E2%9C%93&"),w.length>0?E+w:""}},{"./formats":80,"./utils":84,"side-channel":103}],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}(),u=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};t.exports={arrayToObject:u,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],u=Object.keys(a),s=0;s<u.length;++s){var l=u[s],c=a[l];"object"==typeof c&&null!==c&&-1===n.indexOf(c)&&(t.push({obj:a,prop:l}),n.push(c))}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 u=e;if("symbol"==typeof e?u=Symbol.prototype.toString.call(e):"string"!=typeof e&&(u=String(e)),"iso-8859-1"===n)return escape(u).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var s="",l=0;l<u.length;++l){var c=u.charCodeAt(l);45===c||46===c||95===c||126===c||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||o===r.RFC1738&&(40===c||41===c)?s+=u.charAt(l):c<128?s+=a[c]:c<2048?s+=a[192|c>>6]+a[128|63&c]:c<55296||c>=57344?s+=a[224|c>>12]+a[128|c>>6&63]+a[128|63&c]:(l+=1,c=65536+((1023&c)<<10|1023&u.charCodeAt(l)),s+=a[240|c>>18]+a[128|c>>12&63]+a[128|c>>6&63]+a[128|63&c])}return s},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=u(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",u=i["request"+a],s=i["cancel"+a]||i["cancelRequest"+a],l=0;!u&&l<o.length;l++)u=i[o[l]+"Request"+a],s=i[o[l]+"Cancel"+a]||i[o[l]+"CancelRequest"+a];if(!u||!s){var c=0,f=0,d=[];u=function(e){if(0===d.length){var t=r(),n=Math.max(0,16.666666666666668-(t-c));c=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(c)}catch(e){setTimeout((function(){throw e}),0)}}),Math.round(n))}return d.push({handle:++f,callback:e,cancelled:!1}),f},s=function(e){for(var t=0;t<d.length;t++)d[t].handle===e&&(d[t].cancelled=!0)}}t.exports=function(e){return u.call(i,e)},t.exports.cancel=function(){s.apply(i,arguments)},t.exports.polyfill=function(e){e||(e=i),e.requestAnimationFrame=u,e.cancelAnimationFrame=s}}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"performance-now":76}],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"),u=e("./_stream_writable");o.inherits(f,a);for(var s=i(u.prototype),l=0;l<s.length;l++){var c=s[l];f.prototype[c]||(f.prototype[c]=u.prototype[c])}function f(e){if(!(this instanceof f))return new f(e);a.call(this,e),u.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(p,this)}function p(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":19,inherits:61,"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":19,inherits:61}],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 u=function(e,t){return e.listeners(t).length},s=e("./internal/streams/stream"),l=e("safe-buffer").Buffer,c=(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"),p=void 0;p=d&&d.debuglog?d.debuglog("stream"):function(){};var h,m=e("./internal/streams/BufferList"),y=e("./internal/streams/destroy");f.inherits(v,s);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,u=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(a||0===a)?a:u,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&&(h||(h=e("string_decoder/").StringDecoder),this.decoder=new h(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)),s.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,R(e)}(e,a)):(i||(o=function(e,t){var n;r=t,l.isBuffer(r)||r instanceof c||"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)===l.prototype||(t=function(e){return l.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&&R(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=l.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 h||(h=e("string_decoder/").StringDecoder),this._readableState.decoder=new h(t),this._readableState.encoding=t,this};var _=8388608;function S(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=_?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 R(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(p("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?i.nextTick(A,e):A(e))}function A(e){p("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&&(p("maybeReadMore read 0"),e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}function T(e){p("readable nexttick read 0"),e.read(0)}function x(e,t){t.reading||(p("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(p("flow",t.flowing);t.flowing&&null!==e.read(););}function M(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=l.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 D(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){p("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 p("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?D(this):R(this),null;if(0===(e=S(e,t))&&t.ended)return 0===t.length&&D(this),null;var r,i=t.needReadable;return p("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&p("length less than watermark",i=!0),t.ended||t.reading?p("reading or ended",i=!1):i&&(p("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=S(n,t))),null===(r=e>0?M(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&D(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,p("pipe count=%d opts=%j",o.pipesCount,t);var s=(!t||!1!==t.end)&&e!==n.stdout&&e!==n.stderr?c:v;function l(t,n){p("onunpipe"),t===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,p("cleanup"),e.removeListener("close",b),e.removeListener("finish",g),e.removeListener("drain",f),e.removeListener("error",y),e.removeListener("unpipe",l),r.removeListener("end",c),r.removeListener("end",v),r.removeListener("data",m),d=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||f())}function c(){p("onend"),e.end()}o.endEmitted?i.nextTick(s):r.once("end",s),e.on("unpipe",l);var f=function(e){return function(){var t=e._readableState;p("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&u(e,"data")&&(t.flowing=!0,j(e))}}(r);e.on("drain",f);var d=!1;var h=!1;function m(t){p("ondata"),h=!1,!1!==e.write(t)||h||((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==N(o.pipes,e))&&!d&&(p("false write response, pause",o.awaitDrain),o.awaitDrain++,h=!0),r.pause())}function y(t){p("onerror",t),v(),e.removeListener("error",y),0===u(e,"error")&&e.emit("error",t)}function b(){e.removeListener("finish",g),v()}function g(){p("onfinish"),e.removeListener("close",b),v()}function v(){p("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||(p("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=s.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&&R(this):i.nextTick(T,this))}return n},v.prototype.addListener=v.prototype.on,v.prototype.resume=function(){var e=this._readableState;return e.flowing||(p("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 p("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(p("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(p("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){(p("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){p("wrapped _read",t),r&&(r=!1,e.resume())},this},Object.defineProperty(v.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),v._fromList=M}).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":19,events:37,inherits:61,isarray:71,"process-nextick-args":78,"safe-buffer":94,"string_decoder/":95,util:9}],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",u)}function u(){var e=this;"function"==typeof this._flush?this._flush((function(t,n){s(e,t,n)})):s(this,null,null)}function s(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":19,inherits:61}],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 u,s=!n.browser&&["v0.10","v0.9."].indexOf(n.version.slice(0,5))>-1?i:o.nextTick;g.WritableState=b;var l=Object.create(e("core-util-is"));l.inherits=e("inherits");var c={deprecate:e("util-deprecate")},f=e("./internal/streams/stream"),d=e("safe-buffer").Buffer,p=(void 0!==r?r:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var h,m=e("./internal/streams/destroy");function y(){}function b(t,n){u=u||e("./_stream_duplex"),t=t||{};var r=n instanceof u;this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var i=t.highWaterMark,l=t.writableHighWaterMark,c=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(l||0===l)?l:c,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(R,e,t),e._writableState.errorEmitted=!0,e.emit("error",r)):(i(r),e._writableState.errorEmitted=!0,e.emit("error",r),R(e,t))}(e,n,r,t,i);else{var a=_(n);a||n.corked||n.bufferProcessing||!n.bufferedRequest||E(e,n),r?s(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(u=u||e("./_stream_duplex"),!(h.call(g,this)||this instanceof u))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(),R(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 u=0,s=!0;n;)i[u]=n,n.isBuf||(s=!1),n=n.next,u+=1;i.allBuffers=s,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 l=n.chunk,c=n.encoding,f=n.callback;if(v(e,t,!1,t.objectMode?1:l.length,l,c,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 S(e,t){e._final((function(n){t.pendingcb--,n&&e.emit("error",n),t.prefinished=!0,e.emit("prefinish"),R(e,t)}))}function R(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(S,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),n}l.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:c.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(h=Function.prototype[Symbol.hasInstance],Object.defineProperty(g,Symbol.hasInstance,{value:function(e){return!!h.call(this,e)||this===g&&(e&&e._writableState instanceof b)}})):h=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,u=!i.objectMode&&(r=e,d.isBuffer(r)||r instanceof p);return u&&!d.isBuffer(e)&&(e=function(e){return d.from(e)}(e)),"function"==typeof t&&(n=t,t=null),u?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):(u||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 u=t.objectMode?1:r.length;t.length+=u;var s=t.length<t.highWaterMark;s||(t.needDrain=!0);if(t.writing||t.corked){var l=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:o,next:null},l?l.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else v(e,t,!1,u,r,i,o);return s}(this,i,u,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,R(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":19,inherits:61,"process-nextick-args":78,"safe-buffer":94,timers:110,"util-deprecate":113}],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,u=0;a;)t=a.data,n=o,i=u,t.copy(n,i),u+=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:9}],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:37}],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:11}],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=s,this.end=l,t=4;break;case"utf8":this.fillLast=u,t=4;break;case"base64":this.text=c,this.end=f,t=3;break;default:return this.write=d,void(this.end=p)}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 u(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function s(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 l(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function c(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 p(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){"use strict";var r=t.exports=e("./readystate"),i=new Function("return this")(),o="complete",a=!0,u=i?i.document:null,s=u?u.documentElement:null,l=function(){return u?u.readyState:null};!function(){if(o===l())return r.change(o);var e=u&&!!u.addEventListener,t=e?"":"on",n=e?"addEventListener":"attachEvent",c=e?"removeEventListener":"detachEvent",f=s?s.doScroll:null;if(!e&&"function"==typeof f){try{a=!i.frameElement}catch(e){}a&&function e(){try{f("left")}catch(t){return setTimeout(e,50)}r.change("interactive")}()}function d(e){"readystatechange"===(e=e||i.event).type&&(r.change(l()),o!==l())||("load"===e.type?r.change("complete"):r.change("interactive"),("load"===e.type?i:u)[c](e.type,d,!1))}u[n](t+"DOMContentLoaded",d,!1),u[n](t+"readystatechange",d,!1),i[n](t+"load",d,!1)}()},{"./readystate":98}],98:[function(e,t,n){"use strict";function r(e){return function(t,n){var r=this;return r.is(e)?setTimeout((function(){t.call(n,r.readyState)}),0):(r._events[e]||(r._events[e]=[]),r._events[e].push({fn:t,context:n})),r}}function i(){this.readyState=i.UNKNOWN,this._events={}}i.states="ALL,UNKNOWN,LOADING,INTERACTIVE,COMPLETE".split(",");for(var o,a=0;a<i.states.length;a++)i[o=i.states[a]]=i.prototype[o]=a,i.prototype[o.toLowerCase()]=r(o);i.prototype.change=function(e){e=this.clean(e,!0);var t,n,r,o=0,a=this,u=a.readyState;if(u>=e)return a;for(a.readyState=e;o<i.states.length&&!(o>e);o++)if((n=i.states[o])in a._events){for(t=0;t<a._events[n].length;t++)(r=a._events[n][t]).fn.call(r.context||a,u);delete a._events[n]}return a},i.prototype.is=function(e){return this.readyState>=this.clean(e,!0)},i.prototype.clean=function(e,t){var n=typeof e;return t?"number"!==n?+i[e.toUpperCase()]||0:e:("number"===n?i.states[e]:e).toUpperCase()},i.prototype.removeAllListeners=function(){return this._events={},this},t.exports=new i},{}],99:[function(e,t,n){
36
36
  /**
37
37
  * request-frame - requestAnimationFrame & cancelAnimationFrame polyfill for optimal cross-browser development.
38
38
  * @version v1.5.3
@@ -47,9 +47,9 @@ n.read=function(e,t,n,r,i){var o,a,u=8*i-r-1,s=(1<<u)-1,l=s>>1,c=-7,f=n?i-1:0,d=
47
47
  * @Copyright 2015 - Julien Etienne.
48
48
  * @License: MIT.
49
49
  */
50
- function f(){var e,t,n,r,i,o=window.webkitRequestAnimationFrame,a=window.requestAnimationFrame,u=screen.width<=768,s=!(o&&a),l=!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,!(!(s&&u&&l)||(r=n,i=e,!t&&!r||(console.warn(i),0)))}function d(e){clearTimeout(e)}function p(e){var t=Date.now(),n=Math.max(c+16,t);return setTimeout((function(){e(c=n)}),n-t)}function h(){return Array.prototype.filter?(t=window["request"+o]||window[i.filter((function(e){if(void 0!==window[e+a])return e}))+a]||p,f()?p:t):p}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=l?p:h();break;case"cancel":r=m();break;case"native":l?(window.requestAnimationFrame=p,window.cancelAnimationFrame=d):(window.requestAnimationFrame=h(),window.cancelAnimationFrame=m());break;default:throw new Error("RequestFrame parameter is not a type.")}return r}}))},{}],99:[function(e,t,n){
50
+ function f(){var e,t,n,r,i,o=window.webkitRequestAnimationFrame,a=window.requestAnimationFrame,u=screen.width<=768,s=!(o&&a),l=!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,!(!(s&&u&&l)||(r=n,i=e,!t&&!r||(console.warn(i),0)))}function d(e){clearTimeout(e)}function p(e){var t=Date.now(),n=Math.max(c+16,t);return setTimeout((function(){e(c=n)}),n-t)}function h(){return Array.prototype.filter?(t=window["request"+o]||window[i.filter((function(e){if(void 0!==window[e+a])return e}))+a]||p,f()?p:t):p}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=l?p:h();break;case"cancel":r=m();break;case"native":l?(window.requestAnimationFrame=p,window.cancelAnimationFrame=d):(window.requestAnimationFrame=h(),window.cancelAnimationFrame=m());break;default:throw new Error("RequestFrame parameter is not a type.")}return r}}))},{}],100:[function(e,t,n){
51
51
  /*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
52
- 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:11}],100:[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 u=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(),u}(e)}t.exports=function(e,t,n){return JSON.stringify(o(e),t,n)},t.exports.ensureProperties=o},{}],101:[function(e,t,n){"use strict";var r=e("get-intrinsic"),i=e("define-data-property"),o=e("has-property-descriptors")(),a=e("gopd"),u=e("es-errors/type"),s=r("%Math.floor%");t.exports=function(e,t){if("function"!=typeof e)throw new u("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||s(t)!==t)throw new u("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],r=!0,l=!0;if("length"in e&&a){var c=a(e,"length");c&&!c.configurable&&(r=!1),c&&!c.writable&&(l=!1)}return(r||l||!n)&&(o?i(e,"length",t,!0,!0):i(e,"length",t)),e}},{"define-data-property":22,"es-errors/type":35,"get-intrinsic":44,gopd:49,"has-property-descriptors":50}],102:[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"),u=r("%WeakMap%",!0),s=r("%Map%",!0),l=i("WeakMap.prototype.get",!0),c=i("WeakMap.prototype.set",!0),f=i("WeakMap.prototype.has",!0),d=i("Map.prototype.get",!0),p=i("Map.prototype.set",!0),h=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(u&&r&&("object"==typeof r||"function"==typeof r)){if(e)return l(e,r)}else if(s){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(u&&r&&("object"==typeof r||"function"==typeof r)){if(e)return f(e,r)}else if(s){if(t)return h(t,r)}else if(n)return function(e,t){return!!m(e,t)}(n,r);return!1},set:function(r,i){u&&r&&("object"==typeof r||"function"==typeof r)?(e||(e=new u),c(e,r,i)):s?(t||(t=new s),p(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":12,"es-errors/type":35,"get-intrinsic":44,"object-inspect":74}],103:[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}},{}],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,u=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return u=e.done,e},e:function(e){s=!0,a=e},f:function(){try{u||null==n.return||n.return()}finally{if(s)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,u=["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert","disableTLSCerts"];a<u.length;a++){const e=u[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},{}],105:[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,u=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return u=e.done,e},e:function(e){s=!0,a=e},f:function(){try{u||null==n.return||n.return()}finally{if(s)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"),u=e("fast-safe-stringify"),s=e("qs"),l=e("./request-base"),c=e("./utils"),f=c.isObject,d=c.mixin,p=c.hasOwn,h=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=R,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)p(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)p(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 S(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,u=t.length;e<u;++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 R(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 S(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":s.stringify,"application/json":u},b.parse={"application/x-www-form-urlencoded":E,"application/json":JSON.parse},d(S.prototype,h.prototype),S.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)},S.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=S,a(R.prototype),d(R.prototype,l.prototype),R.prototype.type=function(e){return this.set("Content-Type",b.types[e]||e),this},R.prototype.accept=function(e){return this.set("Accept",b.types[e]||e),this},R.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)},R.prototype.query=function(e){return"string"!=typeof e&&(e=v(e)),e&&this._query.push(e),this},R.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},R.prototype._getFormData=function(){return this._formData||(this._formData=new o.FormData),this._formData},R.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)},R.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)},R.prototype.agent=function(){return console.warn("This is not supported in browser version of superagent"),this},R.prototype.ca=R.prototype.agent,R.prototype.buffer=R.prototype.ca,R.prototype.write=()=>{throw new Error("Streaming is not supported in browser version of superagent")},R.prototype.pipe=R.prototype.write,R.prototype._isHost=function(e){return e&&"object"==typeof e&&!Array.isArray(e)&&"[object Object]"!==Object.prototype.toString.call(e)},R.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()},R.prototype._setUploadTimeout=function(){const e=this;this._uploadTimeout&&!this._uploadTimeoutTimer&&(this._uploadTimeoutTimer=setTimeout((()=>{e._timeoutError("Upload timeout of ",e._uploadTimeout,"ETIMEDOUT")}),this._uploadTimeout))},R.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]&&p(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":104,"./request-base":106,"./response-base":107,"./utils":108,"component-emitter":17,"fast-safe-stringify":38,qs:80}],106:[function(e,t,n){(function(n){(function(){"use strict";const r=e("semver"),i=e("./utils"),o=i.isObject,a=i.hasOwn;function u(){}t.exports=u,u.prototype.clearTimeout=function(){return clearTimeout(this._timer),clearTimeout(this._responseTimeoutTimer),clearTimeout(this._uploadTimeoutTimer),delete this._timer,delete this._responseTimeoutTimer,delete this._uploadTimeoutTimer,this},u.prototype.parse=function(e){return this._parser=e,this},u.prototype.responseType=function(e){return this._responseType=e,this},u.prototype.serialize=function(e){return this._serializer=e,this},u.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},u.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 s=new Set(["ETIMEDOUT","ECONNRESET","EADDRINUSE","ECONNREFUSED","EPIPE","ENOTFOUND","ENETUNREACH","EAI_AGAIN"]),l=new Set([408,413,429,500,502,503,504,521,522,524]);u.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&&l.has(t.status))return!0;if(e){if(e.code&&s.has(e.code))return!0;if(e.timeout&&"ECONNABORTED"===e.code)return!0;if(e.crossDomain)return!0}return!1},u.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()},u.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)},u.prototype.catch=function(e){return this.then(void 0,e)},u.prototype.use=function(e){return e(this),this},u.prototype.ok=function(e){if("function"!=typeof e)throw new Error("Callback required");return this._okCallback=e,this},u.prototype._isResponseOK=function(e){return!!e&&(this._okCallback?this._okCallback(e):e.status>=200&&e.status<300)},u.prototype.get=function(e){return this._header[e.toLowerCase()]},u.prototype.getHeader=u.prototype.get,u.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},u.prototype.unset=function(e){return delete this._header[e.toLowerCase()],delete this.header[e],this},u.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},u.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},u.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},u.prototype.withCredentials=function(e){return void 0===e&&(e=!0),this._withCredentials=e,this},u.prototype.redirects=function(e){return this._maxRedirects=e,this},u.prototype.maxResponseSize=function(e){if("number"!=typeof e)throw new TypeError("Invalid argument");return this._maxResponseSize=e,this},u.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},u.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},u.prototype.sortQuery=function(e){return this._sort=void 0===e||e,this},u.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("&")}}},u.prototype._appendQueryString=()=>{console.warn("Unsupported")},u.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)},u.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":108,_process:78,semver:9}],107:[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":108}],108:[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,u=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return u=e.done,e},e:function(e){s=!0,a=e},f:function(){try{u||null==n.return||n.return()}finally{if(s)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])}},{}],109:[function(e,t,n){(function(t,r){(function(){var i=e("process/browser.js").nextTick,o=Function.prototype.apply,a=Array.prototype.slice,u={},s=0;function l(e,t){this._id=e,this._clearFn=t}n.setTimeout=function(){return new l(o.call(setTimeout,window,arguments),clearTimeout)},n.setInterval=function(){return new l(o.call(setInterval,window,arguments),clearInterval)},n.clearTimeout=n.clearInterval=function(e){e.close()},l.prototype.unref=l.prototype.ref=function(){},l.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=s++,r=!(arguments.length<2)&&a.call(arguments,1);return u[t]=!0,i((function(){u[t]&&(r?e.apply(null,r):e.call(null),n.clearImmediate(t))})),t},n.clearImmediate="function"==typeof r?r:function(e){delete u[e]}}).call(this)}).call(this,e("timers").setImmediate,e("timers").clearImmediate)},{"process/browser.js":78,timers:109}],110:[function(e,t,n){(function(e){(function(){
52
+ 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:11}],101:[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 u=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(),u}(e)}t.exports=function(e,t,n){return JSON.stringify(o(e),t,n)},t.exports.ensureProperties=o},{}],102:[function(e,t,n){"use strict";var r=e("get-intrinsic"),i=e("define-data-property"),o=e("has-property-descriptors")(),a=e("gopd"),u=e("es-errors/type"),s=r("%Math.floor%");t.exports=function(e,t){if("function"!=typeof e)throw new u("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||s(t)!==t)throw new u("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],r=!0,l=!0;if("length"in e&&a){var c=a(e,"length");c&&!c.configurable&&(r=!1),c&&!c.writable&&(l=!1)}return(r||l||!n)&&(o?i(e,"length",t,!0,!0):i(e,"length",t)),e}},{"define-data-property":22,"es-errors/type":35,"get-intrinsic":44,gopd:49,"has-property-descriptors":50}],103:[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"),u=r("%WeakMap%",!0),s=r("%Map%",!0),l=i("WeakMap.prototype.get",!0),c=i("WeakMap.prototype.set",!0),f=i("WeakMap.prototype.has",!0),d=i("Map.prototype.get",!0),p=i("Map.prototype.set",!0),h=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(u&&r&&("object"==typeof r||"function"==typeof r)){if(e)return l(e,r)}else if(s){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(u&&r&&("object"==typeof r||"function"==typeof r)){if(e)return f(e,r)}else if(s){if(t)return h(t,r)}else if(n)return function(e,t){return!!m(e,t)}(n,r);return!1},set:function(r,i){u&&r&&("object"==typeof r||"function"==typeof r)?(e||(e=new u),c(e,r,i)):s?(t||(t=new s),p(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":12,"es-errors/type":35,"get-intrinsic":44,"object-inspect":74}],104:[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}},{}],105:[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,u=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return u=e.done,e},e:function(e){s=!0,a=e},f:function(){try{u||null==n.return||n.return()}finally{if(s)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,u=["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert","disableTLSCerts"];a<u.length;a++){const e=u[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},{}],106:[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,u=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return u=e.done,e},e:function(e){s=!0,a=e},f:function(){try{u||null==n.return||n.return()}finally{if(s)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"),u=e("fast-safe-stringify"),s=e("qs"),l=e("./request-base"),c=e("./utils"),f=c.isObject,d=c.mixin,p=c.hasOwn,h=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=R,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)p(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)p(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 S(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,u=t.length;e<u;++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 R(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 S(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":s.stringify,"application/json":u},b.parse={"application/x-www-form-urlencoded":E,"application/json":JSON.parse},d(S.prototype,h.prototype),S.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)},S.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=S,a(R.prototype),d(R.prototype,l.prototype),R.prototype.type=function(e){return this.set("Content-Type",b.types[e]||e),this},R.prototype.accept=function(e){return this.set("Accept",b.types[e]||e),this},R.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)},R.prototype.query=function(e){return"string"!=typeof e&&(e=v(e)),e&&this._query.push(e),this},R.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},R.prototype._getFormData=function(){return this._formData||(this._formData=new o.FormData),this._formData},R.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)},R.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)},R.prototype.agent=function(){return console.warn("This is not supported in browser version of superagent"),this},R.prototype.ca=R.prototype.agent,R.prototype.buffer=R.prototype.ca,R.prototype.write=()=>{throw new Error("Streaming is not supported in browser version of superagent")},R.prototype.pipe=R.prototype.write,R.prototype._isHost=function(e){return e&&"object"==typeof e&&!Array.isArray(e)&&"[object Object]"!==Object.prototype.toString.call(e)},R.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()},R.prototype._setUploadTimeout=function(){const e=this;this._uploadTimeout&&!this._uploadTimeoutTimer&&(this._uploadTimeoutTimer=setTimeout((()=>{e._timeoutError("Upload timeout of ",e._uploadTimeout,"ETIMEDOUT")}),this._uploadTimeout))},R.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]&&p(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":105,"./request-base":107,"./response-base":108,"./utils":109,"component-emitter":17,"fast-safe-stringify":38,qs:81}],107:[function(e,t,n){(function(n){(function(){"use strict";const r=e("semver"),i=e("./utils"),o=i.isObject,a=i.hasOwn;function u(){}t.exports=u,u.prototype.clearTimeout=function(){return clearTimeout(this._timer),clearTimeout(this._responseTimeoutTimer),clearTimeout(this._uploadTimeoutTimer),delete this._timer,delete this._responseTimeoutTimer,delete this._uploadTimeoutTimer,this},u.prototype.parse=function(e){return this._parser=e,this},u.prototype.responseType=function(e){return this._responseType=e,this},u.prototype.serialize=function(e){return this._serializer=e,this},u.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},u.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 s=new Set(["ETIMEDOUT","ECONNRESET","EADDRINUSE","ECONNREFUSED","EPIPE","ENOTFOUND","ENETUNREACH","EAI_AGAIN"]),l=new Set([408,413,429,500,502,503,504,521,522,524]);u.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&&l.has(t.status))return!0;if(e){if(e.code&&s.has(e.code))return!0;if(e.timeout&&"ECONNABORTED"===e.code)return!0;if(e.crossDomain)return!0}return!1},u.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()},u.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)},u.prototype.catch=function(e){return this.then(void 0,e)},u.prototype.use=function(e){return e(this),this},u.prototype.ok=function(e){if("function"!=typeof e)throw new Error("Callback required");return this._okCallback=e,this},u.prototype._isResponseOK=function(e){return!!e&&(this._okCallback?this._okCallback(e):e.status>=200&&e.status<300)},u.prototype.get=function(e){return this._header[e.toLowerCase()]},u.prototype.getHeader=u.prototype.get,u.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},u.prototype.unset=function(e){return delete this._header[e.toLowerCase()],delete this.header[e],this},u.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},u.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},u.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},u.prototype.withCredentials=function(e){return void 0===e&&(e=!0),this._withCredentials=e,this},u.prototype.redirects=function(e){return this._maxRedirects=e,this},u.prototype.maxResponseSize=function(e){if("number"!=typeof e)throw new TypeError("Invalid argument");return this._maxResponseSize=e,this},u.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},u.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},u.prototype.sortQuery=function(e){return this._sort=void 0===e||e,this},u.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("&")}}},u.prototype._appendQueryString=()=>{console.warn("Unsupported")},u.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)},u.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":109,_process:79,semver:9}],108:[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":109}],109:[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,u=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return u=e.done,e},e:function(e){s=!0,a=e},f:function(){try{u||null==n.return||n.return()}finally{if(s)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])}},{}],110:[function(e,t,n){(function(t,r){(function(){var i=e("process/browser.js").nextTick,o=Function.prototype.apply,a=Array.prototype.slice,u={},s=0;function l(e,t){this._id=e,this._clearFn=t}n.setTimeout=function(){return new l(o.call(setTimeout,window,arguments),clearTimeout)},n.setInterval=function(){return new l(o.call(setInterval,window,arguments),clearInterval)},n.clearTimeout=n.clearInterval=function(e){e.close()},l.prototype.unref=l.prototype.ref=function(){},l.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=s++,r=!(arguments.length<2)&&a.call(arguments,1);return u[t]=!0,i((function(){u[t]&&(r?e.apply(null,r):e.call(null),n.clearImmediate(t))})),t},n.clearImmediate="function"==typeof r?r:function(e){delete u[e]}}).call(this)}).call(this,e("timers").setImmediate,e("timers").clearImmediate)},{"process/browser.js":79,timers:110}],111:[function(e,t,n){(function(e){(function(){
53
53
  /*! typedarray-to-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
54
- 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:11}],111:[function(e,t,n){!function(e,r){"use strict";var i="function",o="undefined",a="object",u="string",s="major",l="model",c="name",f="type",d="vendor",p="version",h="architecture",m="console",y="mobile",b="tablet",g="smarttv",v="wearable",w="embedded",E="Amazon",_="Apple",S="ASUS",R="BlackBerry",A="Browser",O="Chrome",k="Firefox",T="Google",x="Huawei",j="LG",M="Microsoft",D="Motorola",C="Opera",N="Samsung",I="Sharp",P="Sony",L="Xiaomi",B="Zebra",U="Facebook",F="Chromium OS",W="Mac OS",q=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},H=function(e,t){return typeof e===u&&-1!==z(t).indexOf(z(e))},z=function(e){return e.toLowerCase()},V=function(e,t){if(typeof e===u)return e=e.replace(/^\s\s*/,""),typeof t===o?e:e.substring(0,500)},G=function(e,t){for(var n,o,u,s,l,c,f=0;f<t.length&&!l;){var d=t[f],p=t[f+1];for(n=o=0;n<d.length&&!l&&d[n];)if(l=d[n++].exec(e))for(u=0;u<p.length;u++)c=l[++o],typeof(s=p[u])===a&&s.length>0?2===s.length?typeof s[1]==i?this[s[0]]=s[1].call(this,c):this[s[0]]=s[1]:3===s.length?typeof s[1]!==i||s[1].exec&&s[1].test?this[s[0]]=c?c.replace(s[1],s[2]):r:this[s[0]]=c?s[1].call(this,c,s[2]):r:4===s.length&&(this[s[0]]=c?s[3].call(this,c.replace(s[1],s[2])):r):this[s]=c||r;f+=2}},$=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(H(t[n][i],e))return"?"===n?r:n}else if(H(t[n],e))return"?"===n?r:n;return e},Y={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],[p,[c,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[p,[c,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[c,p],[/opios[\/ ]+([\w\.]+)/i],[p,[c,C+" Mini"]],[/\bopr\/([\w\.]+)/i],[p,[c,C]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[p,[c,"Baidu"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[c,p],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[p,[c,"UC"+A]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[p,[c,"WeChat"]],[/konqueror\/([\w\.]+)/i],[p,[c,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[p,[c,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[p,[c,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[p,[c,"Smart Lenovo "+A]],[/(avast|avg)\/([\w\.]+)/i],[[c,/(.+)/,"$1 Secure "+A],p],[/\bfocus\/([\w\.]+)/i],[p,[c,k+" Focus"]],[/\bopt\/([\w\.]+)/i],[p,[c,C+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[p,[c,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[p,[c,"Dolphin"]],[/coast\/([\w\.]+)/i],[p,[c,C+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[p,[c,"MIUI "+A]],[/fxios\/([-\w\.]+)/i],[p,[c,k]],[/\bqihu|(qi?ho?o?|360)browser/i],[[c,"360 "+A]],[/(oculus|sailfish|huawei|vivo)browser\/([\w\.]+)/i],[[c,/(.+)/,"$1 "+A],p],[/samsungbrowser\/([\w\.]+)/i],[p,[c,N+" Internet"]],[/(comodo_dragon)\/([\w\.]+)/i],[[c,/_/g," "],p],[/metasr[\/ ]?([\d\.]+)/i],[p,[c,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[c,"Sogou Mobile"],p],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[c,p],[/(lbbrowser)/i,/\[(linkedin)app\]/i],[c],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[c,U],p],[/(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,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[c,p],[/\bgsa\/([\w\.]+) .*safari\//i],[p,[c,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[p,[c,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[p,[c,O+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[c,O+" WebView"],p],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[p,[c,"Android "+A]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[c,p],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[p,[c,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[p,c],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[c,[p,$,{"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],[c,p],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[c,"Netscape"],p],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[p,[c,k+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\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|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[c,p],[/(cobalt)\/([\w\.]+)/i],[c,[p,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[h,"amd64"]],[/(ia32(?=;))/i],[[h,z]],[/((?:i[346]|x)86)[;\)]/i],[[h,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[h,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[h,"armhf"]],[/windows (ce|mobile); ppc;/i],[[h,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[h,/ower/,"",z]],[/(sun4\w)[;\)]/i],[[h,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[h,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],[l,[d,N],[f,b]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[l,[d,N],[f,y]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[l,[d,_],[f,y]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[l,[d,_],[f,b]],[/(macintosh);/i],[l,[d,_]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[l,[d,I],[f,y]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[l,[d,x],[f,b]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[l,[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)?)(?: bui|\))/i],[[l,/_/g," "],[d,L],[f,y]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[l,/_/g," "],[d,L],[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],[l,[d,"OPPO"],[f,y]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[l,[d,"Vivo"],[f,y]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[l,[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],[l,[d,D],[f,y]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[l,[d,D],[f,b]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[l,[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],[l,[d,j],[f,y]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[l,[d,"Lenovo"],[f,b]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[l,/_/g," "],[d,"Nokia"],[f,y]],[/(pixel c)\b/i],[l,[d,T],[f,b]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[l,[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],[l,[d,P],[f,y]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[l,"Xperia Tablet"],[d,P],[f,b]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[l,[d,"OnePlus"],[f,y]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[l,[d,E],[f,b]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[l,/(.+)/g,"Fire Phone $1"],[d,E],[f,y]],[/(playbook);[-\w\),; ]+(rim)/i],[l,d,[f,b]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[l,[d,R],[f,y]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[l,[d,S],[f,b]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[l,[d,S],[f,y]],[/(nexus 9)/i],[l,[d,"HTC"],[f,b]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[d,[l,/_/g," "],[f,y]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[l,[d,"Acer"],[f,b]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[l,[d,"Meizu"],[f,y]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[l,[d,"Ulefone"],[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,l,[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,l,[f,b]],[/(surface duo)/i],[l,[d,M],[f,b]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[l,[d,"Fairphone"],[f,y]],[/(u304aa)/i],[l,[d,"AT&T"],[f,y]],[/\bsie-(\w*)/i],[l,[d,"Siemens"],[f,y]],[/\b(rct\w+) b/i],[l,[d,"RCA"],[f,b]],[/\b(venue[\d ]{2,7}) b/i],[l,[d,"Dell"],[f,b]],[/\b(q(?:mv|ta)\w+) b/i],[l,[d,"Verizon"],[f,b]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[l,[d,"Barnes & Noble"],[f,b]],[/\b(tm\d{3}\w+) b/i],[l,[d,"NuVision"],[f,b]],[/\b(k88) b/i],[l,[d,"ZTE"],[f,b]],[/\b(nx\d{3}j) b/i],[l,[d,"ZTE"],[f,y]],[/\b(gen\d{3}) b.+49h/i],[l,[d,"Swiss"],[f,y]],[/\b(zur\d{3}) b/i],[l,[d,"Swiss"],[f,b]],[/\b((zeki)?tb.*\b) b/i],[l,[d,"Zeki"],[f,b]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[d,"Dragon Touch"],l,[f,b]],[/\b(ns-?\w{0,9}) b/i],[l,[d,"Insignia"],[f,b]],[/\b((nxa|next)-?\w{0,9}) b/i],[l,[d,"NextBook"],[f,b]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[d,"Voice"],l,[f,y]],[/\b(lvtel\-)?(v1[12]) b/i],[[d,"LvTel"],l,[f,y]],[/\b(ph-1) /i],[l,[d,"Essential"],[f,y]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[l,[d,"Envizen"],[f,b]],[/\b(trio[-\w\. ]+) b/i],[l,[d,"MachSpeed"],[f,b]],[/\btu_(1491) b/i],[l,[d,"Rotor"],[f,b]],[/(shield[\w ]+) b/i],[l,[d,"Nvidia"],[f,b]],[/(sprint) (\w+)/i],[d,l,[f,y]],[/(kin\.[onetw]{3})/i],[[l,/\./g," "],[d,M],[f,y]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[l,[d,B],[f,b]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[l,[d,B],[f,y]],[/smart-tv.+(samsung)/i],[d,[f,g]],[/hbbtv.+maple;(\d+)/i],[[l,/^/,"SmartTV"],[d,N],[f,g]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[d,j],[f,g]],[/(apple) ?tv/i],[d,[l,_+" TV"],[f,g]],[/crkey/i],[[l,O+"cast"],[d,T],[f,g]],[/droid.+aft(\w+)( bui|\))/i],[l,[d,E],[f,g]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[l,[d,I],[f,g]],[/(bravia[\w ]+)( bui|\))/i],[l,[d,P],[f,g]],[/(mitv-\w{5}) bui/i],[l,[d,L],[f,g]],[/Hbbtv.*(technisat) (.*);/i],[d,l,[f,g]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[d,V],[l,V],[f,g]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[f,g]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[d,l,[f,m]],[/droid.+; (shield) bui/i],[l,[d,"Nvidia"],[f,m]],[/(playstation [345portablevi]+)/i],[l,[d,P],[f,m]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[l,[d,M],[f,m]],[/((pebble))app/i],[d,l,[f,v]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[l,[d,_],[f,v]],[/droid.+; (glass) \d/i],[l,[d,T],[f,v]],[/droid.+; (wt63?0{2,3})\)/i],[l,[d,B],[f,v]],[/(quest( 2| pro)?)/i],[l,[d,U],[f,v]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[d,[f,w]],[/(aeobc)\b/i],[l,[d,E],[f,w]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[l,[f,y]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[l,[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],[l,[d,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[p,[c,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[p,[c,"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],[c,p],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[p,c]],os:[[/microsoft (windows) (vista|xp)/i],[c,p],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[c,[p,$,Y]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[p,$,Y],[c,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[p,/_/g,"."],[c,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[c,W],[p,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[p,c],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[c,p],[/\(bb(10);/i],[p,[c,R]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[p,[c,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[p,[c,k+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[p,[c,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[p,[c,"watchOS"]],[/crkey\/([\d\.]+)/i],[p,[c,O+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[c,F],p],[/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],[c,p],[/(sunos) ?([\w\.\d]*)/i],[[c,"Solaris"],p],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[c,p]]},K=function(t,n){if(typeof t===a&&(n=t,t=r),!(this instanceof K))return new K(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[c]=r,t[p]=r,G.call(t,g,w.browser),t[s]=typeof(e=t[p])===u?e.replace(/[^\d\.]/g,"").split(".")[0]:r,E&&m&&m.brave&&typeof m.brave.isBrave==i&&(t[c]="Brave"),t},this.getCPU=function(){var e={};return e[h]=r,G.call(e,g,w.cpu),e},this.getDevice=function(){var e={};return e[d]=r,e[l]=r,e[f]=r,G.call(e,g,w.device),E&&!e[f]&&v&&v.mobile&&(e[f]=y),E&&"Macintosh"==e[l]&&m&&typeof m.standalone!==o&&m.maxTouchPoints&&m.maxTouchPoints>2&&(e[l]="iPad",e[f]=b),e},this.getEngine=function(){var e={};return e[c]=r,e[p]=r,G.call(e,g,w.engine),e},this.getOS=function(){var e={};return e[c]=r,e[p]=r,G.call(e,g,w.os),E&&!e[c]&&v&&"Unknown"!=v.platform&&(e[c]=v.platform.replace(/chrome os/i,F).replace(/macos/i,W)),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===u&&e.length>500?V(e,500):e,this},this.setUA(g),this};K.VERSION="1.0.37",K.BROWSER=q([c,p,s]),K.CPU=q([h]),K.DEVICE=q([l,d,f,m,y,g,b,v,w]),K.ENGINE=K.OS=q([c,p]),typeof n!==o?(typeof t!==o&&t.exports&&(n=t.exports=K),n.UAParser=K):typeof e!==o&&(e.UAParser=K);var X=typeof e!==o&&(e.jQuery||e.Zepto);if(X&&!X.ua){var Q=new K;X.ua=Q.getResult(),X.ua.get=function(){return Q.getUA()},X.ua.set=function(e){Q.setUA(e);var t=Q.getResult();for(var n in t)X.ua[n]=t[n]}}}("object"==typeof window?window:this)},{}],112:[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:{})},{}],113:[function(e,t,n){t.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},{}],114:[function(e,t,n){"use strict";var r=e("is-arguments"),i=e("is-generator-function"),o=e("which-typed-array"),a=e("is-typed-array");function u(e){return e.call.bind(e)}var s="undefined"!=typeof BigInt,l="undefined"!=typeof Symbol,c=u(Object.prototype.toString),f=u(Number.prototype.valueOf),d=u(String.prototype.valueOf),p=u(Boolean.prototype.valueOf);if(s)var h=u(BigInt.prototype.valueOf);if(l)var m=u(Symbol.prototype.valueOf);function y(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function b(e){return"[object Map]"===c(e)}function g(e){return"[object Set]"===c(e)}function v(e){return"[object WeakMap]"===c(e)}function w(e){return"[object WeakSet]"===c(e)}function E(e){return"[object ArrayBuffer]"===c(e)}function _(e){return"undefined"!=typeof ArrayBuffer&&(E.working?E(e):e instanceof ArrayBuffer)}function S(e){return"[object DataView]"===c(e)}function R(e){return"undefined"!=typeof DataView&&(S.working?S(e):e instanceof DataView)}n.isArgumentsObject=r,n.isGeneratorFunction=i,n.isTypedArray=a,n.isPromise=function(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},n.isArrayBufferView=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):a(e)||R(e)},n.isUint8Array=function(e){return"Uint8Array"===o(e)},n.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===o(e)},n.isUint16Array=function(e){return"Uint16Array"===o(e)},n.isUint32Array=function(e){return"Uint32Array"===o(e)},n.isInt8Array=function(e){return"Int8Array"===o(e)},n.isInt16Array=function(e){return"Int16Array"===o(e)},n.isInt32Array=function(e){return"Int32Array"===o(e)},n.isFloat32Array=function(e){return"Float32Array"===o(e)},n.isFloat64Array=function(e){return"Float64Array"===o(e)},n.isBigInt64Array=function(e){return"BigInt64Array"===o(e)},n.isBigUint64Array=function(e){return"BigUint64Array"===o(e)},b.working="undefined"!=typeof Map&&b(new Map),n.isMap=function(e){return"undefined"!=typeof Map&&(b.working?b(e):e instanceof Map)},g.working="undefined"!=typeof Set&&g(new Set),n.isSet=function(e){return"undefined"!=typeof Set&&(g.working?g(e):e instanceof Set)},v.working="undefined"!=typeof WeakMap&&v(new WeakMap),n.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(v.working?v(e):e instanceof WeakMap)},w.working="undefined"!=typeof WeakSet&&w(new WeakSet),n.isWeakSet=function(e){return w(e)},E.working="undefined"!=typeof ArrayBuffer&&E(new ArrayBuffer),n.isArrayBuffer=_,S.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&S(new DataView(new ArrayBuffer(1),0,1)),n.isDataView=R;var A="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function O(e){return"[object SharedArrayBuffer]"===c(e)}function k(e){return void 0!==A&&(void 0===O.working&&(O.working=O(new A)),O.working?O(e):e instanceof A)}function T(e){return y(e,f)}function x(e){return y(e,d)}function j(e){return y(e,p)}function M(e){return s&&y(e,h)}function D(e){return l&&y(e,m)}n.isSharedArrayBuffer=k,n.isAsyncFunction=function(e){return"[object AsyncFunction]"===c(e)},n.isMapIterator=function(e){return"[object Map Iterator]"===c(e)},n.isSetIterator=function(e){return"[object Set Iterator]"===c(e)},n.isGeneratorObject=function(e){return"[object Generator]"===c(e)},n.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===c(e)},n.isNumberObject=T,n.isStringObject=x,n.isBooleanObject=j,n.isBigIntObject=M,n.isSymbolObject=D,n.isBoxedPrimitive=function(e){return T(e)||x(e)||j(e)||M(e)||D(e)},n.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(_(e)||k(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(e){Object.defineProperty(n,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})}))},{"is-arguments":65,"is-generator-function":68,"is-typed-array":70,"which-typed-array":120}],115:[function(e,t,n){(function(t){(function(){var r=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++)n[t[r]]=Object.getOwnPropertyDescriptor(e,t[r]);return n},i=/%[sdj%]/g;n.format=function(e){if(!g(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(s(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,o=r.length,a=String(e).replace(i,(function(e){if("%%"===e)return"%";if(n>=o)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}})),u=r[n];n<o;u=r[++n])y(u)||!E(u)?a+=" "+u:a+=" "+s(u);return a},n.deprecate=function(e,r){if(void 0!==t&&!0===t.noDeprecation)return e;if(void 0===t)return function(){return n.deprecate(e,r).apply(this,arguments)};var i=!1;return function(){if(!i){if(t.throwDeprecation)throw new Error(r);t.traceDeprecation?console.trace(r):console.error(r),i=!0}return e.apply(this,arguments)}};var o={},a=/^$/;if(t.env.NODE_DEBUG){var u=t.env.NODE_DEBUG;u=u.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),a=new RegExp("^"+u+"$","i")}function s(e,t){var r={seen:[],stylize:c};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),m(t)?r.showHidden=t:t&&n._extend(r,t),v(r.showHidden)&&(r.showHidden=!1),v(r.depth)&&(r.depth=2),v(r.colors)&&(r.colors=!1),v(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=l),f(r,e,r.depth)}function l(e,t){var n=s.styles[t];return n?"["+s.colors[n][0]+"m"+e+"["+s.colors[n][1]+"m":e}function c(e,t){return e}function f(e,t,r){if(e.customInspect&&t&&R(t.inspect)&&t.inspect!==n.inspect&&(!t.constructor||t.constructor.prototype!==t)){var i=t.inspect(r,e);return g(i)||(i=f(e,i,r)),i}var o=function(e,t){if(v(t))return e.stylize("undefined","undefined");if(g(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(b(t))return e.stylize(""+t,"number");if(m(t))return e.stylize(""+t,"boolean");if(y(t))return e.stylize("null","null")}(e,t);if(o)return o;var a=Object.keys(t),u=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),S(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return d(t);if(0===a.length){if(R(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(w(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(_(t))return e.stylize(Date.prototype.toString.call(t),"date");if(S(t))return d(t)}var l,c="",E=!1,A=["{","}"];(h(t)&&(E=!0,A=["[","]"]),R(t))&&(c=" [Function"+(t.name?": "+t.name:"")+"]");return w(t)&&(c=" "+RegExp.prototype.toString.call(t)),_(t)&&(c=" "+Date.prototype.toUTCString.call(t)),S(t)&&(c=" "+d(t)),0!==a.length||E&&0!=t.length?r<0?w(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),l=E?function(e,t,n,r,i){for(var o=[],a=0,u=t.length;a<u;++a)T(t,String(a))?o.push(p(e,t,n,r,String(a),!0)):o.push("");return i.forEach((function(i){i.match(/^\d+$/)||o.push(p(e,t,n,r,i,!0))})),o}(e,t,r,u,a):a.map((function(n){return p(e,t,r,u,n,E)})),e.seen.pop(),function(e,t,n){var r=e.reduce((function(e,t){return t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0);if(r>60)return n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1];return n[0]+t+" "+e.join(", ")+" "+n[1]}(l,c,A)):A[0]+c+A[1]}function d(e){return"["+Error.prototype.toString.call(e)+"]"}function p(e,t,n,r,i,o){var a,u,s;if((s=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?u=s.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):s.set&&(u=e.stylize("[Setter]","special")),T(r,i)||(a="["+i+"]"),u||(e.seen.indexOf(s.value)<0?(u=y(n)?f(e,s.value,null):f(e,s.value,n-1)).indexOf("\n")>-1&&(u=o?u.split("\n").map((function(e){return" "+e})).join("\n").slice(2):"\n"+u.split("\n").map((function(e){return" "+e})).join("\n")):u=e.stylize("[Circular]","special")),v(a)){if(o&&i.match(/^\d+$/))return u;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.slice(1,-1),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+u}function h(e){return Array.isArray(e)}function m(e){return"boolean"==typeof e}function y(e){return null===e}function b(e){return"number"==typeof e}function g(e){return"string"==typeof e}function v(e){return void 0===e}function w(e){return E(e)&&"[object RegExp]"===A(e)}function E(e){return"object"==typeof e&&null!==e}function _(e){return E(e)&&"[object Date]"===A(e)}function S(e){return E(e)&&("[object Error]"===A(e)||e instanceof Error)}function R(e){return"function"==typeof e}function A(e){return Object.prototype.toString.call(e)}function O(e){return e<10?"0"+e.toString(10):e.toString(10)}n.debuglog=function(e){if(e=e.toUpperCase(),!o[e])if(a.test(e)){var r=t.pid;o[e]=function(){var t=n.format.apply(n,arguments);console.error("%s %d: %s",e,r,t)}}else o[e]=function(){};return o[e]},n.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},n.types=e("./support/types"),n.isArray=h,n.isBoolean=m,n.isNull=y,n.isNullOrUndefined=function(e){return null==e},n.isNumber=b,n.isString=g,n.isSymbol=function(e){return"symbol"==typeof e},n.isUndefined=v,n.isRegExp=w,n.types.isRegExp=w,n.isObject=E,n.isDate=_,n.types.isDate=_,n.isError=S,n.types.isNativeError=S,n.isFunction=R,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("./support/isBuffer");var k=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function T(e,t){return Object.prototype.hasOwnProperty.call(e,t)}n.log=function(){var e,t;console.log("%s - %s",(e=new Date,t=[O(e.getHours()),O(e.getMinutes()),O(e.getSeconds())].join(":"),[e.getDate(),k[e.getMonth()],t].join(" ")),n.format.apply(n,arguments))},n.inherits=e("inherits"),n._extend=function(e,t){if(!t||!E(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e};var x="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function j(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}n.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(x&&e[x]){var t;if("function"!=typeof(t=e[x]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,x,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,r=new Promise((function(e,r){t=e,n=r})),i=[],o=0;o<arguments.length;o++)i.push(arguments[o]);i.push((function(e,r){e?n(e):t(r)}));try{e.apply(this,i)}catch(e){n(e)}return r}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),x&&Object.defineProperty(t,x,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,r(e))},n.promisify.custom=x,n.callbackify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');function n(){for(var n=[],r=0;r<arguments.length;r++)n.push(arguments[r]);var i=n.pop();if("function"!=typeof i)throw new TypeError("The last argument must be of type Function");var o=this,a=function(){return i.apply(o,arguments)};e.apply(this,n).then((function(e){t.nextTick(a.bind(null,null,e))}),(function(e){t.nextTick(j.bind(null,e,a))}))}return Object.setPrototypeOf(n,Object.getPrototypeOf(e)),Object.defineProperties(n,r(e)),n}}).call(this)}).call(this,e("_process"))},{"./support/isBuffer":113,"./support/types":114,_process:78,inherits:61}],116:[function(e,t,n){"use strict";var r=Object.prototype.toString;t.exports=function(e){return"[object Float32Array]"===r.call(e)}},{}],117:[function(e,t,n){(function(n,r){(function(){var i=e("readable-stream"),o=e("end-of-stream"),a=e("inherits"),u=e("stream-shift"),s=r.from&&r.from!==Uint8Array.from?r.from([0]):new r([0]),l=function(e,t){e._corked?e.once("uncork",t):t()},c=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},c(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},c(this)),a=function(){n._forward()},u=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",u),this._unread=function(){n._readable2.removeListener("readable",a),n._readable2.removeListener("end",u),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=u(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?l(this,this._write.bind(this,e,t,n)):e===s?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"),l(this,(function(){var n,r;n=t._forwardEnd&&t._writable,r=function(){!1===t._writableState.prefinished&&(t._writableState.prefinished=!0),t.emit("prefinish"),l(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(s),i.Writable.prototype.end.call(this,n))},t.exports=f}).call(this)}).call(this,e("_process"),e("buffer").Buffer)},{_process:78,buffer:11,"end-of-stream":28,inherits:61,"readable-stream":95,"stream-shift":103}],118:[function(e,t,n){(function(n,r){(function(){"use strict";var i=e("readable-stream").Transform,o=e("duplexify"),a=e("ws"),u=e("safe-buffer").Buffer;t.exports=function(e,t,s){var l,c,f="browser"===n.title,d=!!r.WebSocket,p=f?function e(t,n,r){if(c.bufferedAmount>m)return void setTimeout(e,y,t,n,r);g&&"string"==typeof t&&(t=u.from(t,"utf8"));try{c.send(t)}catch(e){return r(e)}r()}:function(e,t,n){if(c.readyState!==c.OPEN)return void n();g&&"string"==typeof e&&(e=u.from(e,"utf8"));c.send(e,n)};t&&!Array.isArray(t)&&"object"==typeof t&&(s=t,t=null,("string"==typeof s.protocol||Array.isArray(s.protocol))&&(t=s.protocol));s||(s={});void 0===s.objectMode&&(s.objectMode=!(!0===s.binary||void 0===s.binary));var h=function(e,t,n){var r=new i({objectMode:e.objectMode});return r._write=t,r._flush=n,r}(s,p,(function(e){c.close(),e()}));s.objectMode||(h._writev=S);var m=s.browserBufferSize||524288,y=s.browserBufferTimeout||1e3;"object"==typeof e?c=e:(c=d&&f?new a(e,t):new a(e,t,s)).binaryType="arraybuffer";var b=void 0===c.addEventListener;c.readyState===c.OPEN?l=h:(l=l=o(void 0,void 0,s),s.objectMode||(l._writev=S),b?c.addEventListener("open",v):c.onopen=v);l.socket=c,b?(c.addEventListener("close",w),c.addEventListener("error",E),c.addEventListener("message",_)):(c.onclose=w,c.onerror=E,c.onmessage=_);h.on("close",(function(){c.close()}));var g=!s.objectMode;function v(){l.setReadable(h),l.setWritable(h),l.emit("connect")}function w(){l.end(),l.destroy()}function E(e){l.destroy(e)}function _(e){var t=e.data;t=t instanceof ArrayBuffer?u.from(t):u.from(t,"utf8"),h.push(t)}function S(e,t){for(var n=new Array(e.length),r=0;r<e.length;r++)"string"==typeof e[r].chunk?n[r]=u.from(e[r],"utf8"):n[r]=e[r].chunk;this._write(u.concat(n),"binary",t)}return l}}).call(this)}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:78,duplexify:117,"readable-stream":95,"safe-buffer":99,ws:119}],119:[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},{}],120:[function(e,t,n){(function(n){(function(){"use strict";var r=e("for-each"),i=e("available-typed-arrays"),o=e("call-bind"),a=e("call-bind/callBound"),u=e("gopd"),s=a("Object.prototype.toString"),l=e("has-tostringtag/shams")(),c="undefined"==typeof globalThis?n:globalThis,f=i(),d=a("String.prototype.slice"),p=Object.getPrototypeOf,h=a("Array.prototype.indexOf",!0)||function(e,t){for(var n=0;n<e.length;n+=1)if(e[n]===t)return n;return-1},m={__proto__:null};r(f,l&&u&&p?function(e){var t=new c[e];if(Symbol.toStringTag in t){var n=p(t),r=u(n,Symbol.toStringTag);if(!r){var i=p(n);r=u(i,Symbol.toStringTag)}m["$"+e]=o(r.get)}}:function(e){var t=new c[e],n=t.slice||t.set;n&&(m["$"+e]=o(n))});t.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!l){var t=d(s(e),8,-1);return h(f,t)>-1?t:"Object"===t&&function(e){var t=!1;return r(m,(function(n,r){if(!t)try{n(e),t=d(r,1)}catch(e){}})),t}(e)}return u?function(e){var t=!1;return r(m,(function(n,r){if(!t)try{"$"+n(e)===r&&(t=d(r,1))}catch(e){}})),t}(e):null}}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"available-typed-arrays":7,"call-bind":13,"call-bind/callBound":12,"for-each":40,gopd:49,"has-tostringtag/shams":54}],121:[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}}},{}],122:[function(e,t,n){t.exports={name:"videomail-client",version:"8.0.0",description:"A wicked npm package to record videos directly in the browser, wohooo!",author:"Michael Heuberger <michael.heuberger@binarykitchen.com>",contributors:[{name:"Michael Heuberger",email:"michael.heuberger@binarykitchen.com"}],homepage:"https://videomail.io",repository:{type:"git",url:"https://github.com/binarykitchen/videomail-client.git"},license:"CC0-1.0",readmeFilename:"README.md",module:"src/js/index.js",main:"prototype/js/videomail-client.js",scripts:{build:"gulp build",clean:"rm -rf node_modules && rm -rf package-lock.json",test:"gulp test",watch:"NODE_NO_HTTP2=1 gulp watch",audit:"npx audit-ci --config audit-ci.json",patch:"./env/dev/release.sh --importance=patch",minor:"./env/dev/release.sh --importance=minor",major:"./env/dev/release.sh --importance=major",lint:"eslint --color ./src ./test ./gulpfile.js","lint:fix":"npm --silent run lint -- --fix",prettier:"prettier --check ./src ./test gulpfile.js","prettier:fix":"prettier --write ./src ./test gulpfile.js"},engines:{node:">=20.5.1",npm:">=9.8.0"},keywords:["webcam","video","videomail","encoder","getusermedia","audio","recorder"],dependencies:{"@babel/core":"7.23.9","add-eventlistener-with-options":"1.25.5",animitter:"3.0.0","audio-sample":"3.0.1","canvas-to-buffer":"3.0.1","classlist.js":"1.1.20150312",contains:"0.1.1","core-js":"3.36.0","create-error":"0.3.1",deepmerge:"4.3.1",defined:"1.0.1",despot:"1.1.3","document-visibility":"1.0.1","element-closest":"3.0.2",filesize:"10.1.0","get-form-data":"3.0.0",hidden:"1.1.1","humanize-duration":"3.31.0",hyperscript:"2.0.2","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",readystate:"0.4.1","request-frame":"1.5.3","safe-json-stringify":"1.2.0",superagent:"8.1.2","ua-parser-js":"1.0.37","websocket-stream":"5.5.2"},devDependencies:{"@babel/eslint-parser":"7.23.10","@babel/plugin-transform-runtime":"7.23.9","@babel/preset-env":"7.23.9","audit-ci":"6.6.1",autoprefixer:"10.4.17",babelify:"10.0.0","body-parser":"1.20.2",browserify:"17.0.0","connect-send-json":"1.0.0",cssnano:"6.0.3",del:"6.1.1",eslint:"8.56.0","eslint-config-prettier":"9.1.0","eslint-plugin-import":"2.29.1","eslint-plugin-node":"11.1.0","eslint-plugin-promise":"6.1.1","fancy-log":"2.0.0",glob:"10.3.10",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","gulp-todo":"7.1.1",minimist:"1.2.8",nib:"1.2.0",postcss:"8.4.35",prettier:"3.2.5",router:"1.3.8",tape:"5.7.5","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"}}},{}],123:[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")),u=r(e("readystate")),s=r(e("util")),l=r(e("./options")),c=r(e("./constants")),f=r(e("./events")),d=r(e("./util/collectLogger")),p=r(e("./util/eventEmitter")),h=r(e("./wrappers/container")),m=r(e("./wrappers/visuals/replay")),y=r(e("./wrappers/optionsWrapper")),b=r(e("./util/browser")),g=r(e("./resource"));var v=function(e){var t,n,r=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 d.default(t),t.logger=i,t.debug=t.logger.debug,y.default.addFunctions(t),t}(e),s=new h.default(r),c=r.debug;p.default.call(this,r,"VideomailClient"),this.events=f.default,this.show=function(){s.isBuilt()?s.show():this.once(f.default.BUILT,s.show)},this.replay=function(e,n){u.default.interactive((function(){if("string"==typeof n&&(n=document.getElementById(n)),n)s.isOutsideElementOf(n)&&(t=new m.default(n,r)).build();else if(s.isBuilt()||s.build(),!s.hasElement())throw u.default.removeAllListeners(),new Error("Unable to replay video without a container nor parent element.");t||(t=s.getReplay()),n||(n=t.getParentElement()),e&&(e=s.addPlayerDimensions(e,n)),s.isOutsideElementOf(n)?s.hideForm({deep:!0}):s.loadForm(e),setTimeout((function(){t.setVideomail(e),s.showReplayOnly()}),1e3)}))},this.startOver=function(e){t&&(t.hide(),t.reset()),s.startOver(e)},this.unload=function(e){u.default.removeAllListeners(),s.unload(e)},this.hide=function(){s.hide()},this.get=function(e,t){new g.default(r).get(e,(function(e,n){e?t(e):t(null,s.addPlayerDimensions(n))}))},this.canRecord=function(){return function(e){return o||(o=new b.default(e)),o}(r).canRecord()},this.isDirty=function(){return s.isDirty()},this.isRecording=function(){return s.isRecording()},this.submit=function(){s.submit()},this.getLogLines=function(){if(r.logger&&r.logger.getLines)return r.logger.getLines()},n=!1,u.default.interactive((function(e){c("Client: interactive(),","previousState =",e+",","!building =",!n+",","!isBuilt() =",!s.isBuilt()),n||s.isBuilt()||(n=!0,s.build(),n=!1)}))};s.default.inherits(v,p.default),Object.keys(c.default.public).forEach((function(e){v[e]=c.default.public[e]})),v.events=f.default;n.default=v},{"./constants":124,"./events":125,"./options":126,"./resource":127,"./util/browser":129,"./util/collectLogger":130,"./util/eventEmitter":131,"./wrappers/container":138,"./wrappers/optionsWrapper":141,"./wrappers/visuals/replay":151,"@babel/runtime/helpers/interopRequireDefault":1,deepmerge:21,readystate:96,util:115}],124:[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"}}},{}],125:[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})},{"@babel/runtime/helpers/interopRequireDefault":1,keymirror:72}],126:[function(e,t,n){(function(t){(function(){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=e("../../package.json"),i="production"===t.env.NODE_ENV;n.default={logger:null,logStackSize:30,verbose:!i,baseUrl:"https://videomail.io",socketUrl:"wss://videomail.io",siteName:"videomail-client-demo",cache:!0,insertCss:!0,enablePause:!0,enableAutoPause:!0,enableSpace:!0,submitWithVideomail:!1,disableSubmit:!1,enableAutoValidation:!0,enableAutoSubmission:!0,enctype:"application/json",selectors:{containerId:"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",aliasInputName:"videomail_alias",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},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:35e3},loadUserMediaOnRecord:!1,callbacks:{adjustFormDataBeforePosting:null},defaults:{from:null,to:null,cc:null,bcc:null,subject:null,body:null},playerOnly:!1,displayErrors:!0,adjustFormOnBrowserError:!1,reportErrors:!1,fakeUaString:null,version:r.version}}).call(this)}).call(this,e("_process"))},{"../../package.json":122,_process:78}],127:[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={};function n(t,n){return e.defaults[n]&&!t[n]&&(t[n]=e.defaults[n]),t}function r(e,t){return t&&t.body&&t.body.error&&!(e=t.body.error).message&&t.text&&(e.message=t.text),e}function s(n,s,l,c){c||(c=l,l=null);var f={},d=e.baseUrl+"/videomail/";l&&(d+=l);var p=(0,i.default)(n,d);f[o.default.SITE_NAME_LABEL]=e.siteName,p.query(f).set("Timezone-Id",u).send(s).timeout(e.timeout).end((function(n,i){if(n=r(n,i))c(n);else{var o=i.body&&i.body.videomail?i.body.videomail:null;e.cache&&s[a]&&(t[s[a]]=o),c(null,o,i.body)}}))}this.get=function(n,s){e.cache&&t[n]?setTimeout((function(){s(null,t[n])}),0):function(n,s){i.default.get("/videomail/"+n+"/snapshot").set("Accept","application/json").set("Timezone-Id",u).set(o.default.SITE_NAME_LABEL,e.siteName).timeout(e.timeouts.connection).end((function(n,i){if(n=r(n,i))s(n);else{var o=i.body?i.body:null;e.cache&&(t[a]=o),s(null,o)}}))}(n,s)},this.reportError=function(t,n){var a={},u=e.baseUrl+"/client-error/",s=(0,i.default)("post",u);a[o.default.SITE_NAME_LABEL]=e.siteName,s.query(a).send(t).timeout(e.timeout).end((function(e,t){(e=r(e,t))?n&&n(e):n&&n()}))},this.post=function(t,r){(t=function(t){return e.defaults&&(t=n(t,"from"),t=n(t,"to"),t=n(t,"cc"),t=n(t,"bcc"),t=n(t,"subject"),t=n(t,"body")),t}(t))[o.default.VERSION_LABEL]=e.version,e.callbacks.adjustFormDataBeforePosting?e.callbacks.adjustFormDataBeforePosting(t,(function(e,t){e?r(e):s("post",t,r)})):s("post",t,r)},this.put=function(e,t){s("put",e,e.key,t)},this.form=function(t,n,a){var s;switch(e.enctype){case o.default.public.ENC_TYPE_APP_JSON:s="json";break;case o.default.public.ENC_TYPE_FORM:s="form";break;default:setTimeout((function(){a(new Error("Invalid enctype given: "+e.enctype))}),0)}s&&i.default.post(n).type(s).set("Timezone-Id",u).send(t).timeout(e.timeout).end((function(e,t){(e=r(e,t))?a(e):a(null,t)}))}};var i=r(e("superagent")),o=r(e("./constants")),a="alias",u=Intl.DateTimeFormat().resolvedOptions().timeZone},{"./constants":124,"@babel/runtime/helpers/interopRequireDefault":1,superagent:105}],128:[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,l,c=new o.default(t);function f(){return window.AudioContext||window.webkitAudioContext}function d(){return!!f()&&!!p()}function p(){if(!l){var e=f();l=new e}return l}this.init=function(e){t.debug("AudioRecorder: init()");var i=p().createGain();try{r=p().createMediaStreamSource(e)}catch(e){throw a.default.create("Webcam has no audio",e.toString(),t)}var o=t.audio.bufferSize;if("auto"===o&&(o=c.isFirefox()?512:2048),!(0,u.default)(o))throw a.default.create("Audio buffer size must be a power of two.",t);if(!t.audio.volume||t.audio.volume>1)throw a.default.create("Audio volume must be between zero and one.",t);i.gain.value=t.audio.volume,n=p().createScriptProcessor(o,s,s),r.connect(n),n.connect(p().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()&&(p().close?p().close().then((function(){t.debug("AudioRecorder: audio context is closed"),l=null})).catch((function(e){throw a.default.create(e,t)})):l=null)},this.getSampleRate=function(){return d()?p().sampleRate:-1}};var i=r(e("audio-sample")),o=r(e("./browser")),a=r(e("./videomailError")),u=r(e("is-power-of-two")),s=1},{"./browser":129,"./videomailError":136,"@babel/runtime/helpers/interopRequireDefault":1,"audio-sample":6,"is-power-of-two":69}],129:[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")),u=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",s="http://www.google.com/chrome/",l="http://www.chromium.org/getting-involved/download-chromium",c=(0,o.default)(e.fakeUaString,"undefined"!=typeof window&&window.navigator&&window.navigator.userAgent,""),f=new a.default(c).getResult(),d="iOS"===f.os.name,p=parseFloat(f.browser.version),h="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=/IE/.test(f.browser.name),_=/Safari/.test(f.browser.name),S=/Opera/.test(f.browser.name),R=/Android/.test(f.os.name),A=h||y,O="Facebook"===f.browser.name,k=d||R,T=_&&p>=11,x=d&&g>=11,j=d&&g<11,M=e.fakeHttps||"https:"===window.location.protocol,D=A||b||R||S||w||T||x||m,C=this;function N(){var e;return(e=j?"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="'+n+'" target="_blank">upgrade Firefox</a> to fix this.':h?e=d?"Use Safari instead. Apple doesn't give Chrome access to iPhone cameras (booo).":'Probably you need to <a href="'+s+'" target="_blank">upgrade Chrome</a> to fix this.':y?e='Probably you need to <a href="'+l+'" target="_blank">upgrade Chromium</a> to fix this.':E?e='Instead of Internet Explorer you need to upgrade to <a href="'+r+'" target="_blank">Edge</a>.':T?e="Probably you need to shut down Safari and restart it, this for correct webcam access.":_&&(e='Safari below version 11 has no webcam support.<br/>Better upgrade Safari or pick <a href="'+s+'" target="_blank">Chrome</a>, <a href="'+n+'" target="_blank">Firefox</a> or Android.'),e}())||(e=C.isChromeBased()||C.isFirefox()||_?"For the webcam feature, your browser needs an upgrade.":O?'Hence we recommend you to use a real browser like <a href="'+s+'" target="_blank">Chrome</a>, <a href="'+n+'" target="_blank">Firefox</a> or <a href="'+r+'" target="_blank">Edge</a>.':'Hence we recommend you to use either <a href="'+s+'" target="_blank">Chrome</a>, <a href="'+n+'" target="_blank">Firefox</a>, <a href="'+r+'" target="_blank">Edge</a> or Android.'),e}function I(e,t){var n;return e&&e.canPlayType&&(n=e.canPlayType("video/"+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(M){if(!D||!this.canRecord()){var n,r=[];j?r.push(u.default.IOS_PROBLEM):r.push(u.default.BROWSER_PROBLEM),n=D?k?O?"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",j&&(e.reportErrors=!1),t=u.default.create({message:n},N(),e,{classList:r})}}else t=u.default.create({message:"Sorry, your page is insecure"},"Please switch to HTTPS to ensure all is encrypted.",e,{classList:[u.default.BROWSER_PROBLEM]});return t},this.checkBufferTypes=function(){var t;return"undefined"==typeof window||void 0===window.atob?t=u.default.create("atob is not supported",e):void 0===window.ArrayBuffer?t=u.default.create("ArrayBuffers are not supported",e):void 0===window.Uint8Array&&(t=u.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.",u.default.create("Unable to access webcam",t,e)},this.isChromeBased=function(){return A},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 T},this.isIOS=function(){return d},this.getUsefulData=function(){return{browser:f.browser,device:f.device,os:f.os,engine:f.engine,userAgent:c}}}},{"./videomailError":136,"@babel/runtime/helpers/interopRequireDefault":1,"@babel/runtime/helpers/typeof":2,defined:23,"ua-parser-js":111}],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=new o.default(e),n=e.logger||console,r=e.selectors&&e.selectors.containerId||"undefined container id",a=[];function u(t,n){var r=i.default.format.apply(i.default,n);return a.length>e.logStackSize&&a.pop(),a.push("["+t+"] "+r),r}function s(e){return"#"+r+" ["+(new Date).toLocaleTimeString()+"] > "+e}this.debug=function(){var r=[].slice.call(arguments,0);r[0]=s(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]=s(e[0]),n.error(u("error",e))},this.warn=function(){var e=[].slice.call(arguments,0);e[0]=s(e[0]),n.warn(u("warn",e))},this.getLines=function(){return a}};var i=r(e("util")),o=r(e("./browser"))},{"./browser":129,"@babel/runtime/helpers/interopRequireDefault":1,util:115}],131:[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 o.default.create("You cannot emit without an event.",e);if(n===a.default.ERROR){var s=u[1];s=o.default.create(s,e),u[1]=s}e.debug&&("removeListener"!==n&&"newListener"!==n&&(u[1]&&(r=u.slice(1)),r?e.debug("%s emits: %s",t,n,r):e.debug("%s emits: %s",t,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("./videomailError")),a=r(e("./../events"))},{"./../events":125,"./videomailError":136,"@babel/runtime/helpers/interopRequireDefault":1,despot:24}],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=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":1,filesize:39,"humanize-duration":57}],133:[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"]},{}],134:[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(u)}}(e);if("object"===(0,i.default)(e))return function(e,t){var n,r=Object.getOwnPropertyNames(e),i=t&&t.excludes||[],s=[];if(i.push("stack"),r&&r.length>0){var l=!1;r.forEach((function(t){i&&(l=i.indexOf(t)>=0),!l&&e[t]&&s.push((0,o.default)(e[t]))}))}1===s.length?n=s.join():s.length>1&&(n=a+s.join(u));return n}(e,t);return e.toString()};var i=r(e("@babel/runtime/helpers/typeof")),o=r(e("safe-json-stringify")),a="- ",u="<br/>"+a},{"@babel/runtime/helpers/interopRequireDefault":1,"@babel/runtime/helpers/typeof":2,"safe-json-stringify":100}],135:[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":1,"classlist.js":16,"request-frame":98}],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("@babel/runtime/helpers/typeof")),o=r(e("./../resource")),a=r(e("create-error")),u=r(e("./pretty")),s=r(e("util")),l="Videomail Error",c=(0,a.default)(Error,l,{explanation:void 0,logLines:void 0,useragent:void 0,url:void 0,stack:void 0}),f=function(e){return(0,u.default)(e,{excludes:["stack"]})};c.PERMISSION_DENIED="PERMISSION_DENIED",c.NOT_ALLOWED_ERROR="NotAllowedError",c.NOT_CONNECTED="Not connected",c.DOM_EXCEPTION="DOMException",c.STARTING_FAILED="Starting video failed",c.MEDIA_DEVICE_NOT_SUPPORTED="MediaDeviceNotSupported",c.BROWSER_PROBLEM="browser-problem",c.WEBCAM_PROBLEM="webcam-problem",c.IOS_PROBLEM="ios-problem",c.OVERCONSTRAINED="OverconstrainedError",c.NOT_FOUND_ERROR="NotFoundError",c.NOT_READABLE_ERROR="NotReadableError",c.SECURITY_ERROR="SecurityError",c.TRACK_START_ERROR="TrackStartError",c.INVALID_STATE_ERROR="InvalidStateError",c.create=function(t,n,r,a){if(t&&t.name===l)return t;!r&&n&&(r=n,n=void 0),a=a||{};var u=(r=r||{})&&r.debug||console.log,d=r&&r.isAudioEnabled&&r.isAudioEnabled();u("VideomailError: create()",t,n||"(no explanation set)");var p,h,m,y=a.classList||[],b=new(0,e("./browser").default)(r);switch("object"===(0,i.default)(t)?t.name===c.TRACK_START_ERROR?p=c.TRACK_START_ERROR:t.name===c.SECURITY_ERROR?p=c.SECURITY_ERROR:8===t.code&&t.name===c.NotFoundError?p=c.NotFoundError:35===t.code||t.name===c.NOT_ALLOWED_ERROR?p=c.NOT_ALLOWED_ERROR:1===t.code&&1===t.PERMISSION_DENIED?p=c.PERMISSION_DENIED:t.constructor&&t.constructor.name===c.DOM_EXCEPTION?p=t.name===c.NOT_READABLE_ERROR?c.NOT_READABLE_ERROR:c.DOM_EXCEPTION:t.constructor&&t.constructor.name===c.OVERCONSTRAINED?p=c.OVERCONSTRAINED:t.message===c.STARTING_FAILED?p=t.message:t.name?p=t.name:"error"===t.type&&0===t.target.bufferedAmount&&(p=c.NOT_CONNECTED):p=t===c.NOT_CONNECTED?c.NOT_CONNECTED:t,m=t&&t.stack?t.stack:(new Error).stack,p){case c.SECURITY_ERROR:h="The operation was insecure",n="Probably you have disallowed Cookies for this page?",y.push(c.BROWSER_PROBLEM);break;case c.OVERCONSTRAINED:h="Invalid webcam constraints",n=t.constraint?"width"===t.constraint?"Your webcam does not meet the width requirement.":"Unmet constraint: "+t.constraint:t.toString();break;case"MediaDeviceFailedDueToShutdown":h="Webcam is shutting down",n="This happens your webcam is already switching off and not giving you permission to use it.";break;case"SourceUnavailableError":h="Source of your webcam cannot be accessed",n="Probably it is locked from another process or has a hardware error.",t.message&&(t.message+=" Details: "+t.message);break;case c.NOT_FOUND_ERROR:case"NO_DEVICES_FOUND":d?(h="No webcam nor microphone found",n="Your browser cannot find a webcam with microphone attached to your machine."):(h="No webcam found",n="Your browser cannot find a webcam attached to your machine."),y.push(c.WEBCAM_PROBLEM);break;case"PermissionDismissedError":h="Ooops, you didn't give me any permissions?",n="Looks like you skipped the webcam permission dialogue.<br/>Please grant access next time the dialogue appears.",y.push(c.WEBCAM_PROBLEM);break;case c.NOT_ALLOWED_ERROR:case c.PERMISSION_DENIED:case"PermissionDeniedError":h="Permission denied",n="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(c.WEBCAM_PROBLEM);break;case"HARDWARE_UNAVAILABLE":h="Webcam is unavailable",n="Maybe it is already busy in another window?",(b.isChromeBased()||b.isFirefox())&&(n+=" Or you have to allow access above?"),y.push(c.WEBCAM_PROBLEM);break;case c.NOT_CONNECTED:h="Unable to connect",n="Either the videomail server or your connection is down. Trying to reconnect every few seconds …";break;case"NO_VIDEO_FEED":h="No video feed found!",n="Your webcam is already used in another browser.",y.push(c.WEBCAM_PROBLEM);break;case c.STARTING_FAILED:h="Starting video failed",n="Most likely this happens when the webam is already active in another browser.",y.push(c.WEBCAM_PROBLEM);break;case"DevicesNotFoundError":h="No available webcam could be found",n="Looks like you do not have any webcam attached to your machine; or the one you plugged in is already used.",y.push(c.WEBCAM_PROBLEM);break;case c.NOT_READABLE_ERROR:case c.TRACK_START_ERROR:h="No access to webcam",n="A hardware error occurred which prevented access to your webcam.",y.push(c.WEBCAM_PROBLEM);break;case c.INVALID_STATE_ERROR:h="Invalid state",n="Video recording stream from your webcam already has finished.",y.push(c.WEBCAM_PROBLEM);break;case c.DOM_EXCEPTION:switch(t.code){case 8:h="Requested webcam not found",n="A webcam is needed but could not be found.",y.push(c.WEBCAM_PROBLEM);break;case 9:h="Security upgrade needed",n='Click <a href="'+("https:"+window.location.href.substring(window.location.protocol.length))+'">here</a> to switch to HTTPs which is more safe and enables encrypted videomail transfers.',y.push(c.BROWSER_PROBLEM);break;case 11:h="Invalid State",n="The object is in an invalid, unusable state.",y.push(c.BROWSER_PROBLEM);break;default:h="DOM Exception",n=f(t),y.push(c.BROWSER_PROBLEM)}break;case c.MEDIA_DEVICE_NOT_SUPPORTED:h="Media device not supported",n=f(t);break;default:var g=n;if(n&&"object"===(0,i.default)(n)&&(n=f(n)),!n&&g&&(n=g.message?g.message:"Inspected: "+s.default.inspect(g,{showHidden:!0})),t)if("string"==typeof t)h=t;else if(t.message&&(h=f(t.message)),t.explanation&&(n?n+=";<br/>"+f(t.explanation):n=f(t.explanation)),t.details){var v=f(t.details);n?n+=";<br/>"+v:n=v}h||(p&&(h=p),!n&&t&&(n=f(t)),f(h)===n&&(n=void 0))}var w=null;r.logger&&r.logger.getLines&&(w=r.logger.getLines()),m&&((h=new Error(h)).stack=m);var E="none";t&&(E="code="+(t.code?t.code:"undefined"),E+=", type="+(t.type?t.type:"undefined"),E+=", name="+(t.name?t.name:"undefined"),E+=", message="+(t.message?t.message:"undefined"));var _,S=new c(h,{explanation:n,logLines:w,client:b.getUsefulData(),url:window.location.href,siteName:r.siteName,code:E,stack:m}),R=!1;function A(e){return y.indexOf(e)>=0}return r.reportErrors&&(R="function"==typeof r.reportErrors?r.reportErrors(S):r.reportErrors),R&&(_=new o.default(r)),_&&_.reportError(S,(function(e){e&&console.error("Unable to report error",e)})),S.getClassList=function(){return y},S.removeDimensions=function(){return A(c.IOS_PROBLEM)||b.isMobile()},S.hideButtons=function(){return A(c.BROWSER_PROBLEM)||a.browserProblem||A(c.IOS_PROBLEM)},S.hideForm=function(){return A(c.IOS_PROBLEM)},S};n.default=c},{"./../resource":127,"./browser":129,"./pretty":134,"@babel/runtime/helpers/interopRequireDefault":1,"@babel/runtime/helpers/typeof":2,"create-error":20,util:115}],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("contains")),o=r(e("hidden")),a=r(e("hyperscript")),u=r(e("util")),s=r(e("../events")),l=r(e("../util/eventEmitter")),c=function(e,t){l.default.call(this,t,"Buttons");var n,r,u,c,f,d,p,h,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 S(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 R(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(s.default.ERROR,e)}}}function O(e){var t,r;return e.id&&(t=document.getElementById(e.id)),t||(t=(0,a.default)("input#"+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)),p&&(0,i.default)(n,p)?n.insertBefore(r,p):n.appendChild(r)),e.changeHandler&&(t.onchange=e.changeHandler),_(t),[t,r]}function k(e,r,o,u,s,l,c){var f,d=!(arguments.length>7&&void 0!==arguments[7])||arguments[7];return(f=s?document.getElementById(s):c?document.querySelector(c):n.querySelector("."+e))?f=R(f,u,l,d):(t.selectors.buttonClass&&(e+="."+t.selectors.buttonClass),(f=R(f=(0,a.default)("button."+e),u,l,d)).innerHTML=r,p&&(0,i.default)(n,p)?n.insertBefore(f,p):n.appendChild(f)),o&&A(f,o),f}function T(e){E(d)||e.paused||w(r),e.paused||(_(f),v(f)),t.enableAutoValidation||S(p),e.recordWhenReady||(E(h)&&S(h),E(m)&&S(m))}function x(){v(r),v(d),u&&(w(u),S(u)),S(f),w(f)}function j(){_(d),e.beginWaiting(),e.recordAgain()}function M(){e.submit()}function D(t){_(r),e.record(t)}function C(){g("Buttons: initEvents()"),b.on(s.default.USER_MEDIA_READY,(function(e){e.switchingFacingMode||function(e){T(e),E(r)&&!e.recordWhenReady&&S(r),t.enableAutoValidation&&_(p)}(e)})).on(s.default.PREVIEW,(function(){v(r),v(f),_(h),_(m),w(d),S(d),t.enableAutoValidation||S(p)})).on(s.default.PAUSED,(function(){b.adjustButtonsForPause()})).on(s.default.RECORDING,(function(e){!function(e){e>1?x():(_(m),_(h),_(d),_(r))}(e)})).on(s.default.FIRST_FRAME_SENT,(function(){x()})).on(s.default.RESUMING,(function(){v(c),v(r),u&&(S(u),w(u))})).on(s.default.STOPPING,(function(){_(f),_(r),v(u),v(c)})).on(s.default.COUNTDOWN,(function(){_(r),_(m),_(h)})).on(s.default.SUBMITTING,(function(){_(p),_(d)})).on(s.default.RESETTING,(function(){_(p),b.reset()})).on(s.default.INVALID,(function(){t.enableAutoValidation&&_(p)})).on(s.default.VALID,(function(){t.enableAutoValidation&&S(p)})).on(s.default.SUBMITTED,(function(){_(f),_(d),_(r),_(p)})).on(s.default.HIDE,(function(){v(r),v(f),v(d),v(c)})).on(s.default.FORM_READY,(function(e){T(e)})).on(s.default.REPLAY_SHOWN,(function(){b.hide()})).on(s.default.GOING_BACK,(function(){v(d),w(r),w(p)})).on(s.default.ENABLING_AUDIO,(function(){_(r),_(h),_(m)})).on(s.default.DISABLING_AUDIO,(function(){_(r),_(h),_(m)})).on(s.default.STARTING_OVER,(function(){w(p)})).on(s.default.CONNECTED,(function(){t.loadUserMediaOnRecord&&E(r)&&S(r)})).on(s.default.ERROR,(function(e){e.hideButtons&&e.hideButtons()&&t.adjustFormOnBrowserError&&b.hide()}))}this.enableSubmit=function(){S(p)},this.adjustButtonsForPause=function(){b.isCountingDown()||(u&&v(u),w(c),S(c),v(r),w(f),S(f))},this.reset=function(){t.debug("Buttons: reset()"),_(u),_(c),_(r),_(f),_(d)},this.isRecordAgainButtonEnabled=function(){return!d.disabled},this.isRecordButtonEnabled=function(){return!r.disabled},this.setSubmitButton=function(e){p=e},this.getSubmitButton=function(){return p},this.build=function(){(n=e.querySelector("."+t.selectors.buttonsClass))||(n=(0,a.default)("div."+t.selectors.buttonsClass),e.appendChild(n)),t.disableSubmit||(p?_(p):p=k(t.selectors.submitButtonClass,"Submit",null,!0,t.selectors.submitButtonId,"submit",t.selectors.submitButtonSelector,t.enableAutoValidation),!e.hasForm()&&p&&A(p,M)),r=k(t.selectors.recordButtonClass,t.text.buttons.record,D,!1),t.enablePause&&(u=k(t.selectors.pauseButtonClass,t.text.buttons.pause,e.pause,!1)),t.enablePause&&(c=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()}}),h=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=!1},this.hide=function(e){v(n),e&&e.deep&&(v(r),v(u),v(c),v(f),v(d),v(p))},this.show=function(){w(n)},this.isCountingDown=function(){return e.isCountingDown()}};u.default.inherits(c,l.default);n.default=c},{"../events":125,"../util/eventEmitter":131,"@babel/runtime/helpers/interopRequireDefault":1,contains:18,hidden:56,hyperscript:58,util:115}],138:[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("document-visibility")),o=r(e("element-closest")),a=r(e("hidden")),u=r(e("insert-css")),s=r(e("util")),l=r(e("../../styles/css/main.min.css.js")),c=r(e("../events")),f=r(e("../resource")),d=r(e("../util/eventEmitter")),p=r(e("../util/videomailError")),h=r(e("./buttons")),m=r(e("./dimension")),y=r(e("./form")),b=r(e("./optionsWrapper")),g=r(e("./visuals"));(0,o.default)(window);var v=function(e){d.default.call(this,e,"Container");var t,n,r,o=this,s=(0,i.default)(),v=new g.default(this,e),w=new h.default(this,e),E=new f.default(e),_=document&&document.querySelector&&document.querySelector("html"),S=e.debug,R=!1,A=!1,O=!1;function k(){return"FORM"===t.tagName?t:e.selectors.formId?document.getElementById(e.selectors.formId):t.closest("form")}function T(){S("Container: initEvents()"),window.addEventListener("beforeunload",(function(e){o.unload(e)})),e.playerOnly||s.onChange((function(t){n&&(t?(e.isAutoPauseEnabled()&&o.isCountingDown()&&o.resume(),o.emit(c.default.VISIBLE)):(e.isAutoPauseEnabled()&&(o.isCountingDown()||o.isRecording())&&o.pause("document invisible"),o.emit(c.default.INVISIBLE)))})),e.enableSpace&&(e.playerOnly||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.keyCode?t.keyCode:t.which)&&(t.preventDefault(),e.enablePause?v.pauseOrResume():v.recordOrStop())}))),o.on(c.default.ERROR,(function(n){!function(t){R=!0,t.stack?e.logger.error(t.stack):e.logger.error(t),e.displayErrors?v.error(t):v.reset()}(n),j(n),n.removeDimensions&&n.removeDimensions()&&(t.style.width="auto")})),e.playerOnly||o.on(c.default.LOADED_META_DATA,(function(){x()}))}function x(){var n=v.getRecorderWidth(!0);if(n<1)throw p.default.create("Recorder width cannot be less than 1!",e);t.style.width=n+"px"}function j(e){v.unload(e),w.unload(),o.endWaiting()}function M(t,n,r,i){r&&""!==r||(r=document.baseURI),n&&(t[e.selectors.aliasInputName]=n.videomail.alias,e.submitWithVideomail&&(t.videomail=n.videomail)),E.form(t,r,i)}function D(e,t,n,r,i){o.endWaiting(),e?o.emit(c.default.ERROR,e):(A=!0,r&&i&&i.body&&Object.keys(i.body).forEach((function(e){r[e]=i.body[e]})),o.emit(c.default.SUBMITTED,n,r||i),i&&"text/html"===i.type&&i.text&&(document.body.innerHTML=i.text))}function C(e){return e&&"POST"===e.toUpperCase()}this.addPlayerDimensions=function(e,t){try{return e.playerHeight=this.calculateHeight({responsive:!0,videoWidth:e.width,ratio:e.height/e.width},t),e.playerWidth=this.calculateWidth({responsive:!0,videoHeight:e.playerHeight,ratio:e.height/e.width}),e}catch(e){o.emit(c.default.ERROR,e)}},this.limitWidth=function(n){return m.default.limitWidth(t,n,e)},this.limitHeight=function(t){return m.default.limitHeight(t,e)},this.calculateWidth=function(t){return m.default.calculateWidth(b.default.merge(e,t,!0))},this.calculateHeight=function(n,r){return r||(r=t||document.body),m.default.calculateHeight(r,b.default.merge(e,n,!0))},this.areVisualsHidden=function(){return v.isHidden()},this.hasElement=function(){return!!t},this.build=function(){try{(t=document.getElementById(e.selectors.containerId))&&(e.insertCss&&(0,u.default)(l.default,{prepend:!0}),!n&&T(),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)}(),x(),e.playerOnly||function(){var t=k();if(t){S("Container: buildForm()");var n=(r=new y.default(o,t,e)).findSubmitButton();n&&w.setSubmitButton(n),r.build()}}(),S("Container: buildChildren()"),t.classList?(t.classList.add("videomail"),e.playerOnly||w.build(),v.build()):o.emit(c.default.ERROR,p.default.create("Sorry, your browser is too old!",e)),R?S("Container: building failed due to an error."):(S("Container: built."),n=!0,o.emit(c.default.BUILT)))}catch(e){if(!v.isNotifierBuilt())throw e;o.emit(c.default.ERROR,e)}},this.getSubmitButton=function(){return w.getSubmitButton()},this.querySelector=function(e){return t.querySelector(e)},this.beginWaiting=function(){_.classList&&_.classList.add("wait")},this.endWaiting=function(){_.classList&&_.classList.remove("wait")},this.appendChild=function(e){t.appendChild(e)},this.insertBefore=function(e,n){t.insertBefore(e,n)},this.unload=function(e){S("Container: unload()",e);try{j(e),this.removeAllListeners(),n=A=!1}catch(e){o.emit(c.default.ERROR,e)}},this.show=function(){if(t&&((0,a.default)(t,!1),v.show(),!R)){var e=o.isPaused();e&&w.adjustButtonsForPause(),w.show(),o.isReplayShown()?o.emit(c.default.PREVIEW):o.emit(c.default.FORM_READY,{paused:e})}},this.hide=function(){S("Container: hide()"),R=!1,this.isRecording()&&this.pause(),v.hide(),A&&(w.hide(),(0,a.default)(t,!0))},this.startOver=function(e){try{o.emit(c.default.STARTING_OVER),A=!1,r.show(),v.back(e,(function(){e&&e.keepHidden?o.enableForm():o.show(e)}))}catch(e){o.emit(c.default.ERROR,e)}},this.showReplayOnly=function(){R=!1,this.isRecording()&&this.pause(),v.showReplayOnly(),A&&w.hide()},this.isNotifying=function(){return v.isNotifying()},this.isPaused=function(){return v.isPaused()},this.pause=function(e){v.pause(e)},this.validate=function(t){var n,i=!0;if(e.enableAutoValidation?t?i=t:o.isNotifying()?i=!1:v.isConnected()?i=v.isUserMediaLoaded()||v.isReplayShown():v.isConnecting()&&(i=!1):(i=!1,O=!0),i){this.emit(c.default.VALIDATING);var a,u=v.validate()&&w.isRecordAgainButtonEnabled();if(r){if(n=r.validate())this.areVisualsHidden()||u||((A||this.isReady()||this.isRecording()||this.isPaused()||this.isCountingDown())&&(n=!1),n||(a="Video is not recorded"));else{var s=r.getInvalidElement();a=s?"Form input named "+s.name+' is invalid. It has the value: "'+s.value+'"':"Form input(s) are invalid"}if(n){var l,f,d,p=r.getRecipients(),h="to"in p,m="cc"in p,y="bcc"in p,b=(null===(l=p.to)||void 0===l?void 0:l.length)>0,g=(null===(f=p.cc)||void 0===f?void 0:f.length)>0,E=(null===(d=p.bcc)||void 0===d?void 0:d.length)>0;h?b||(m&&y?g||E||(n=!1):m?g||(n=!1):y?E||(n=!1):a="Please configure the form to have at least one recipient."):m&&(g||y&&(E||(n=!1))),n||(a="Please enter at least one recipient.")}}else n=u;n?this.emit(c.default.VALID):this.emit(c.default.INVALID,a),O=n}return n},this.disableForm=function(e){r&&r.disable(e)},this.enableForm=function(e){r&&r.enable(e)},this.hasForm=function(){return!!r},this.isReady=function(){return w.isRecordButtonEnabled()},this.submitAll=function(t,n,i){var a=C(n);function u(){o.beginWaiting(),o.disableForm(!0),o.emit(c.default.SUBMITTING)}!!t[e.selectors.keyInputName]?(u(),function(e,t,n){var i=r.transformFormData(e);C(t)||!t?(i.recordingStats=v.getRecordingStats(),i.width=v.getRecorderWidth(!0),i.height=v.getRecorderHeight(!0),navigator.connection&&(i.connection={downlink:navigator.connection.downlink+" Mbit/s",effectiveType:navigator.connection.effectiveType,rtt:navigator.connection.rtt,type:navigator.connection.type}),E.post(i,n)):function(e){return e&&"PUT"===e.toUpperCase()}(t)&&E.put(i,n)}(t,n,(function(e,n,r){e?D(e,0,n,r):a?M(t,r,i,(function(e,t){D(e,0,n,r,t)})):D(null,0,n,r)}))):e.enableAutoSubmission&&(u(),M(t,null,i,(function(e,t){D(e,0,null,null,t)})))},this.isBuilt=function(){return n},this.isReplayShown=function(){return v.isReplayShown()},this.isDirty=function(){var e=!1;return r&&(v.isRecorderUnloaded()?e=!1:(this.isReplayShown()||this.isPaused())&&(e=!0)),e},this.getReplay=function(){return v.getReplay()},this.isOutsideElementOf=function(e){return e.parentNode!==t&&e!==t},this.hideForm=function(e){r&&r.hide(),w&&w.hide(e)},this.loadForm=function(e){r&&(r.loadVideomail(e),this.validate())},this.enableAudio=function(){e.setAudioEnabled(!0),this.emit(c.default.ENABLING_AUDIO)},this.disableAudio=function(){e.setAudioEnabled(!1),this.emit(c.default.DISABLING_AUDIO)},this.submit=function(){O&&r&&r.doTheSubmit()},this.isCountingDown=v.isCountingDown.bind(v),this.isRecording=v.isRecording.bind(v),this.record=v.record.bind(v),this.resume=v.resume.bind(v),this.stop=v.stop.bind(v),this.recordAgain=v.recordAgain.bind(v)};s.default.inherits(v,d.default);n.default=v},{"../../styles/css/main.min.css.js":153,"../events":125,"../resource":127,"../util/eventEmitter":131,"../util/videomailError":136,"./buttons":137,"./dimension":139,"./form":140,"./optionsWrapper":141,"./visuals":142,"@babel/runtime/helpers/interopRequireDefault":1,"document-visibility":25,"element-closest":27,hidden:56,"insert-css":62,util:115}],139:[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 ("+e+") while figuring out the minimum!",t);return e}n.default={limitWidth:function(e,t,n){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,u=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*u)),(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":136,"@babel/runtime/helpers/interopRequireDefault":1,"number-is-integer":73}],140:[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")),u=r(e("util")),s=r(e("../events")),l=r(e("../util/eventEmitter")),c=r(e("../util/videomailError"));function f(e){return e.replace(/(^[,\s]+)|([,\s]+$)/g,"")}var d=function(e,t,n){l.default.call(this,n,"Form");var r,u=this;function d(){return(0,i.default)(t,{includeDisabled:!0})}function p(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 h(){return t.querySelectorAll("input, textarea")}function m(){return t.querySelectorAll("select")}this.transformFormData=function(e){var t={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},r={};return Object.keys(t).forEach((function(n){var i=t[n];i in e&&(r[n]=e[i])})),r.from&&(r.from=f(r.from)),r.to&&(r.to=f(r.to)),r.cc&&(r.cc=f(r.cc)),r.bcc&&(r.bcc=f(r.bcc)),r},this.getRecipients=function(){var e=this.transformFormData(d()),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){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){p(!0,e)},this.enable=function(e){p(!1,e)},this.build=function(){if(n.enableAutoValidation){for(var i,l=h(),f=0,d=l.length;f<d;f++)"radio"===(i=l[f]).type?i.addEventListener("change",(function(){e.validate()})):i.addEventListener("input",(function(){setTimeout((function(){e.validate()}),0)}));for(var p=m(),y=0,b=p.length;y<b;y++)p[y].addEventListener("change",(function(){e.validate()}))}(r=t.querySelector('input[name="'+n.selectors.keyInputName+'"]'))||(r=(0,a.default)("input",{name:n.selectors.keyInputName,type:"hidden"}),t.appendChild(r)),this.on(s.default.PREVIEW,(function(e){e||r.value?e&&(r.value=e):u.emit(s.default.ERROR,c.default.create("Videomail key for preview is missing!",n))})),this.on(s.default.GOING_BACK,(function(){r.value=null})),this.on(s.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=u.findSubmitButton(),(0,o.default)(r,!0))})),this.on(s.default.BUILT,(function(){e.getSubmitButton().addEventListener("click",u.doTheSubmit.bind(u))}))},this.doTheSubmit=function(n){return n&&n.preventDefault(),e.hasElement()&&e.submitAll(d(),t.getAttribute("method"),t.getAttribute("action")),!1},this.getInvalidElement=function(){for(var e=h(),t=0,n=e.length;t<n;t++)if(!e[t].validity.valid)return e[t];for(var r=m(),i=0,o=r.length;i<o;i++)if(!r[i].validity.valid)return r[i];return null},this.validate=function(){return t.checkValidity()},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)}};u.default.inherits(d,l.default);n.default=d},{"../events":125,"../util/eventEmitter":131,"../util/videomailError":136,"@babel/runtime/helpers/interopRequireDefault":1,"get-form-data":43,hidden:56,hyperscript:58,util:115}],141:[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={addFunctions:function(e){var t=e.audio&&e.audio.enabled;e.hasDefinedHeight=function(){return this.video.height&&"auto"!==this.video.height},e.hasDefinedWidth=function(){return this.video.width&&"auto"!==this.video.width},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}},merge:function(e,t){var n=(0,i.default)(e,t,{arrayMerge:function(e,t){return t}});return this.addFunctions(n),n}}},{"@babel/runtime/helpers/interopRequireDefault":1,deepmerge:21}],142:[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("util")),u=r(e("../events")),s=r(e("../util/eventEmitter")),l=r(e("./visuals/inside/recorderInsides")),c=r(e("./visuals/notifier")),f=r(e("./visuals/recorder")),d=r(e("./visuals/replay")),p=function(e,t){s.default.call(this,t,"Visuals");var n,r,a=this,p=new d.default(this,t),h=new f.default(this,p,t),m=new l.default(this,t),y=new c.default(this,t),b=t.debug;function g(){var r;b("Visuals: buildChildren()"),(r=e.querySelector("noscript"))||((r=(0,o.default)("noscript")).innerHTML="Please enable Javascript",n.appendChild(r)),t.playerOnly||(y.build(),m.build()),p.build(),b("Visuals: built.")}function v(){t.playerOnly||(b("Visuals: initEvents()"),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(!0)})).on(u.default.LOADED_META_DATA,(function(){w()})).on(u.default.ERROR,(function(e){e.removeDimensions&&e.removeDimensions()&&(n.style.width="auto",n.style.height="auto")})))}function w(){n.style.width=a.getRecorderWidth(!0)+"px",n.style.height=a.getRecorderHeight(!0)+"px"}function E(){return!a.isNotifying()&&!p.isShown()&&!a.isCountingDown()}this.getRatio=function(){return n.clientWidth?n.clientHeight/n.clientWidth:0},this.isCountingDown=function(){return m.isCountingDown()},this.build=function(){if(!(n=e.querySelector("."+t.selectors.visualsClass))){n=(0,o.default)("div."+t.selectors.visualsClass);var i=e.querySelector("."+t.selectors.buttonsClass);i&&!e.isOutsideElementOf(i)?e.insertBefore(n,i):e.appendChild(n)}n.classList.add("visuals"),w(),!r&&v(),g(),a.parentNode=n.parentNode,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(),h.reset()},this.beginWaiting=function(){e.beginWaiting()},this.endWaiting=function(){e.endWaiting()},this.stop=function(e){h.stop(e),m.hidePause()},this.back=function(e,t){!t&&e&&(t=e,e={}),p.hide(),y.hide(),e&&e.keepHidden?(h.hide(),t&&t()):h.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{h.unload(e),m.unload(e),p.unload(e),r=!1}catch(e){this.emit(u.default.ERROR,e)}},this.isNotifying=function(){return y.isVisible()},this.isReplayShown=function(){return p.isShown()},this.pause=function(e){h.pause(e),m.showPause()},this.resume=function(){m.isCountingDown()?m.resumeCountdown():h.resume(),m.hidePause()},this.pauseOrResume=function(){E.call(this)&&(this.isRecording()?this.pause():h.isPaused()?this.resume():h.isReady()&&this.record())},this.recordOrStop=function(){E()&&(this.isRecording()?this.stop():h.isReady()&&this.record())},this.record=function(){t.video.countdown?(this.emit(u.default.COUNTDOWN),m.startCountdown(h.record.bind(h))):h.record()},this.getRecorder=function(){return h},this.getReplay=function(){return p},this.validate=function(){return h.validate()&&this.isReplayShown()},this.getRecordingStats=function(){return h.getRecordingStats()},this.getAudioSampleRate=function(){return h.getAudioSampleRate()},this.isPaused=function(){return h.isPaused()},this.error=function(e){y.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&&h.build(),this.showVisuals()},this.showReplayOnly=function(){!this.isReplayShown()&&p.show(),this.show(),h.hide(),y.hide()},this.isRecorderUnloaded=function(){return h.isUnloaded()},this.isConnecting=function(){return h.isConnecting()},this.getRecorderWidth=function(e){return h.getRecorderWidth(e)},this.getRecorderHeight=function(e){return h.getRecorderHeight(e)},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){m.checkTimer(e)},this.isNotifierBuilt=function(){return y&&y.isBuilt()},this.isReplayShown=p.isShown.bind(p),this.hideReplay=p.hide.bind(p),this.hideRecorder=h.hide.bind(h),this.isRecording=h.isRecording.bind(h),this.isUserMediaLoaded=h.isUserMediaLoaded.bind(h),this.isConnected=h.isConnected.bind(h)};a.default.inherits(p,s.default);n.default=p},{"../events":125,"../util/eventEmitter":131,"./visuals/inside/recorderInsides":148,"./visuals/notifier":149,"./visuals/recorder":150,"./visuals/replay":151,"@babel/runtime/helpers/interopRequireDefault":1,hidden:56,hyperscript:58,util:115}],143:[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,u,s=this;function l(e){u||(t.debug("Countdown",a),--a<1?function(e){s.unload(),s.hide(),setTimeout((function(){e()}),0)}(e):n.innerHTML=a)}this.start=function(e){n.innerHTML=a=t.video.countdown,this.show(),r=setInterval(l.bind(this,e),950)},this.pause=function(){u=!0},this.resume=function(){u=!1},this.build=function(){(n=e.querySelector(".countdown"))?this.hide():(n=(0,i.default)("p.countdown"),this.hide(),e.appendChild(n))},this.show=function(){(0,o.default)(n,!1)},this.isCountingDown=function(){return!!r},this.unload=function(){clearInterval(r),u=!1,r=null},this.hide=function(){(0,o.default)(n,!0),this.unload()}};var i=r(e("hyperscript")),o=r(e("hidden"))},{"@babel/runtime/helpers/interopRequireDefault":1,hidden:56,hyperscript:58}],144:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,t){u.default.call(this,t,"Facing Mode");var n,r=this;this.build=function(){(n=e.querySelector(".facingMode"))?this.hide():((n=(0,i.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,o.default)(n,!0)},this.show=function(){(0,o.default)(n,!1)}};var i=r(e("hyperscript")),o=r(e("hidden")),a=r(e("./../../../../events")),u=r(e("./../../../../util/eventEmitter"))},{"./../../../../events":125,"./../../../../util/eventEmitter":131,"@babel/runtime/helpers/interopRequireDefault":1,hidden:56,hyperscript:58}],145:[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,u;function s(){return t.text.pausedHint}this.build=function(){n=e.querySelector(".paused"),(r=e.querySelector(".pausedHeader"))?(this.hide(),r.innerHTML=t.text.pausedHeader,s()&&(u.innerHTML=t.text.pausedHint)):(n=(0,i.default)("div.paused"),r=(0,i.default)("p.pausedHeader"),this.hide(),r.innerHTML=t.text.pausedHeader,n.appendChild(r),s()&&(u=e.querySelector(".pausedHint"),(u=(0,i.default)("p.pausedHint")).innerHTML=t.text.pausedHint,n.appendChild(u)),e.appendChild(n))},this.hide=function(){(0,o.default)(n,!0)},this.show=function(){(0,o.default)(n,!1)}};var i=r(e("hyperscript")),o=r(e("hidden")),a=r(e("./../../../../util/videomailError"))},{"./../../../../util/videomailError":136,"@babel/runtime/helpers/interopRequireDefault":1,hidden:56,hyperscript:58}],146:[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,i.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,o.default)(t,!0)},this.show=function(){(0,o.default)(t,!1)}};var i=r(e("hyperscript")),o=r(e("hidden"))},{"@babel/runtime/helpers/interopRequireDefault":1,hidden:56,hyperscript:58}],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,n){var r,a,u,s=!1,l=!1;function c(e,t){return e>=n.video.limitSeconds*t}function f(){var e,i=parseInt(u/60,10),o=u-60*i;if(!s||!l){var a=n.video.limitSeconds-u;!function(e){return!(s||!c(e,.6)||(s=!0,0))}(a)?function(e){return!(l||!c(e,.8)||(l=!0,0))}(a)&&(t.setNigh(),r.classList.add("nigh"),n.debug("End is nigh, "+u+" seconds to go")):(t.setNear(),r.classList.add("near"),n.debug("End is near, "+u+" seconds to go"))}r.innerHTML=i+":"+((e=o)<10?"0"+e:e)}function d(){(0,o.default)(r,!0)}function p(){return n.video.limitSeconds}this.check=function(t){var n=p()-Math.floor(t.intervalSum/1e3);n!==u&&(u=n,f(),u<1&&e.stop(!0))},this.start=function(){u=p(),s=l=!1,a=!0,f(),r.classList.remove("near"),r.classList.remove("nigh"),(0,o.default)(r,!1)},this.pause=function(){t.hide()},this.resume=function(){t.show()},this.stop=function(){null!==u&&a&&(n.debug("Stopping record timer. Was recording for about ~"+(p()-u)+" seconds."),d(),t.stop(),u=null,a=!1)},this.build=function(){(r=e.querySelector(".recordTimer"))?d():(r=(0,i.default)("p.recordTimer"),d(),e.appendChild(r))}};var i=r(e("hyperscript")),o=r(e("hidden"))},{"@babel/runtime/helpers/interopRequireDefault":1,hidden:56,hyperscript:58}],148:[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("util")),o=r(e("./../../../events")),a=r(e("./../../../util/eventEmitter")),u=r(e("./../../../util/browser")),s=r(e("./recorder/countdown")),l=r(e("./recorder/pausedNote")),c=r(e("./recorder/recordNote")),f=r(e("./recorder/recordTimer")),d=r(e("./recorder/facingMode")),p=function(e,t){a.default.call(this,t,"RecorderInsides");var n,r,i,p,h=this,m=t.debug,y=new c.default(e),b=new f.default(e,y,t),g=new u.default(t);function v(){h.hidePause(),h.hideCountdown(),b.stop(),p&&p.hide()}function w(){m("RecorderInsides: initEvents()"),h.on(o.default.USER_MEDIA_READY,(function(){p&&p.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(){h.isCountingDown()?n.pause():b.pause()})).on(o.default.RESETTING,v).on(o.default.HIDE,(function(){h.hideCountdown()}))}t.video.countdown&&(n=new s.default(e,t)),t.video.facingModeButton&&g.isMobile()&&(p=new d.default(e,t)),t.enablePause&&(r=new l.default(e,t)),this.build=function(){m("RecorderInsides: build()"),n&&n.build(),r&&r.build(),p&&p.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)}};i.default.inherits(p,a.default);n.default=p},{"./../../../events":125,"./../../../util/browser":129,"./../../../util/eventEmitter":131,"./recorder/countdown":143,"./recorder/facingMode":144,"./recorder/pausedNote":145,"./recorder/recordNote":146,"./recorder/recordTimer":147,"@babel/runtime/helpers/interopRequireDefault":1,util:115}],149:[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("util")),u=r(e("../../events")),s=r(e("../../util/eventEmitter")),l=function(e,t){s.default.call(this,t,"Notifier");var n,r,a,l,c,f,d=this,p=t&&t.debug;function h(){p("Notifier: initEvents()"),d.on(u.default.CONNECTING,(function(){d.notify("Connecting …")})).on(u.default.LOADING_USER_MEDIA,(function(){d.notify("Loading webcam …")})).on(u.default.USER_MEDIA_READY,(function(){d.hide()})).on(u.default.LOADED_META_DATA,(function(){n.style.width=e.getRecorderWidth(!0)+"px",n.style.height=e.getRecorderHeight(!0)+"px"})).on(u.default.PREVIEW,(function(){d.hide()})).on(u.default.STOPPING,(function(n){!function(n){var r="";e.beginWaiting(),n&&(p("Limit reached"),r+=t.text.limitReached+".<br/>"),r+=t.text.sending+" …",d.notify(r,null,{stillWait:!0,entertain:t.notifier.entertain})}(n)})).on(u.default.PROGRESS,(function(e,n){!function(e,n){var r;t.isAudioEnabled()?(r="Video: "+e,n&&(r+=", Audio: "+n)):r=e,d.setExplanation(r)}(e,n)})).on(u.default.BEGIN_VIDEO_ENCODING,(function(){!function(){e.beginWaiting();var n=t.text.encoding+" …";d.notify(n,null,{stillWait:!0,entertain:t.notifier.entertain}),b()}()})).on(u.default.CONNECTED,(function(){d.notify("Connected."),t.loadUserMediaOnRecord&&d.hide()}))}function m(){if(t.notifier.entertain){if(!c){var e=Math.floor(Math.random()*t.notifier.entertainLimit+1);n.className="notifier entertain "+t.notifier.entertainClass+e,l=setTimeout(m,t.notifier.entertainInterval),c=!0}}else y()}function y(){n&&n.classList.remove("entertain"),clearTimeout(l),l=null,c=!1}function b(){a&&(a.innerHTML=null,(0,i.default)(a,!0))}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 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){a||(a=(0,o.default)("p"),n?n.appendChild(a):t.logger.warn("Unable to show explanation because notifyElement is empty:",e)),a.innerHTML=e,(0,i.default)(a,!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&&h(),f=!0},this.hide=function(){y(),n&&((0,i.default)(n,!0),n.classList.remove("blocking")),r&&(r.innerHTML=null),b()},this.isVisible=function(){return!!f&&(n&&!(0,i.default)(n))},this.isBuilt=function(){return f},this.notify=function(s,l,c){t.debug("Notifier: notify()"),c||(c={});var f=!!c.stillWait&&c.stillWait,d=!!c.entertain&&c.entertain,p=!!c.blocking&&c.blocking,h=!!c.hideForm&&c.hideForm,b=!!c.classList&&c.classList,g=!!c.removeDimensions&&c.removeDimensions;!r&&n&&(r=(0,o.default)("h2"),a?n.insertBefore(r,a):n.appendChild(r)),n&&(d||(n.className="notifier"),b&&b.forEach((function(e){n.classList.add(e)})),g&&(n.style.width="auto",n.style.height="auto")),p?(n&&n.classList.add("blocking"),this.emit(u.default.BLOCKING,{hideForm:h})):this.emit(u.default.NOTIFYING),e.hideReplay(),e.hideRecorder(),function(e,n){var i=!!n.problem&&n.problem;r?r.innerHTML=(i?"&#x2639; ":"")+e:t.logger.warn("Unable to show following because messageElement is empty:",e)}(s,c),l&&l.length>0&&this.setExplanation(l),d?m():y(),e.showVisuals(),n&&(0,i.default)(n,!1),!f&&e.endWaiting()}};a.default.inherits(l,s.default);n.default=l},{"../../events":125,"../../util/eventEmitter":131,"@babel/runtime/helpers/interopRequireDefault":1,hidden:56,hyperscript:58,util:115}],150:[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")),u=r(e("hidden")),s=r(e("hyperscript")),l=r(e("safe-json-stringify")),c=r(e("util")),f=r(e("websocket-stream")),d=r(e("../../constants")),p=r(e("../../events")),h=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 h.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 _,S,R,A,O,k,T,x,j,M,D,C,N,I,P,L,B,U,F,W,q,H,z,V,G,$,Y=this,J=E.debug,K=null,X=0,Q=0,Z=E.video.facingMode,ee={},te=0,ne=0;function re(e,t){if(L)if(L.destroyed)ie(),Y.emit(p.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{L.write(e,(function(){n&&n(t)}))}catch(e){Y.emit(p.default.ERROR,g.default.create("Failed writing to server","stream.write() failed because of "+(0,b.default)(e),E))}}}function ie(){clearInterval(z)}function oe(e){X++,re(e.toBuffer())}function ae(){S&&(0,u.default)(S,!1)}function ue(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};try{J("Recorder: onUserMediaReady()",t);var n=t.switchingFacingMode;C=F=I=N=!1,D=!0,n||(e=(0,i.default)({fps:E.video.fps},Ae),_=e.getRequestAnimationFrameObject(),K=e),ae(),t.recordWhenReady&&Y.record(),Y.emit(p.default.USER_MEDIA_READY,{switchingFacingMode:t.switchingFacingMode,paused:Y.isPaused(),recordWhenReady:t.recordWhenReady})}catch(e){Y.emit(p.default.ERROR,e)}}function se(){A&&(J("Recorder: clearUserMediaTimeout()"),A&&clearTimeout(A),A=null)}function le(){return(te/(Q||1)*100).toFixed(2)+"%"}function ce(){return(ne/(X||1)*100).toFixed(2)+"%"}function fe(){T||(T=le()),x||(x=ce()),Y.emit(p.default.PROGRESS,T,x)}function de(e){if(!U){B=!0,J("Recorder: initialising web socket to %s",E.socketUrl),Y.emit(p.default.CONNECTING);var t=E.socketUrl+"?"+encodeURIComponent(d.default.SITE_NAME_LABEL)+"="+encodeURIComponent(E.siteName);try{L=(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: "+(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(p.default.ERROR,n)}L&&(L.on("close",(function(e){J(w+"Stream has closed"),B=U=!1,e?Y.emit(p.default.ERROR,e||"Unhandled websocket error"):(Y.emit(p.default.DISCONNECTED),Ee())})),L.on("connect",(function(){J(w+"Stream *connect* event emitted"),U||(U=!0,B=I=!1,Y.emit(p.default.CONNECTED),e&&e())})),L.on("data",(function(e){var t;J(w+"Stream *data* event emitted");try{t=JSON.parse(e.toString())}catch(t){J("Failed to parse command:",t),Y.emit(p.default.ERROR,g.default.create("Invalid server command","Contact us asap. Bad command was "+e.toString()+". ",E))}finally{be.call(Y,t)}})),L.on("error",(function(e){var t;J(w+"Stream *error* event emitted",e),B=U=!1,t=c.isIOS()?g.default.create(e,"iPhones cannot maintain a live connection for too long. Original error message is: "+e.toString(),E):g.default.create("Data exchange interrupted","Please check your network connection and reload.",E),Y.emit(p.default.ERROR,t)})),L.on("drain",(function(){J(w+"Stream *drain* event emitted (should not happen!)")})),L.on("preend",(function(){J(w+"Stream *preend* event emitted")})),L.on("end",(function(){J(w+"Stream *end* event emitted")})),L.on("drain",(function(){J(w+"Stream *drain* event emitted")})),L.on("pipe",(function(){J(w+"Stream *pipe* event emitted")})),L.on("unpipe",(function(){J(w+"Stream *unpipe* event emitted")})),L.on("resume",(function(){J(w+"Stream *resume* event emitted")})),L.on("uncork",(function(){J(w+"Stream *uncork* event emitted")})),L.on("readable",(function(){J(w+"Stream *preend* event emitted")})),L.on("prefinish",(function(){J(w+"Stream *preend* event emitted")})),L.on("finish",(function(){J(w+"Stream *preend* event emitted")})))}}function pe(e,t,n){C=!1,se(),J("Recorder: userMediaErrorCallback()",", name:",e.name,", message:",e.message,", Webcam characteristics:",R.getCharacteristics(),", extraA arguments:",t?t.toString():void 0,", extraB arguments:",n?n.toString():void 0);var r=Y.listeners(p.default.ERROR);if(r&&r.length)e.name!==g.default.MEDIA_DEVICE_NOT_SUPPORTED?Y.emit(p.default.ERROR,g.default.create(e,E)):J("Recorder: ignore user media error",e),O=setTimeout(de,E.timeouts.userMedia);else{if(!I)throw J("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);J("Recorder: already unloaded. Not going to throw error",e)}}function he(e,t){if(J("Recorder: getUserMediaCallback()",t),U&&(ge()||!ve()||F))try{se(),R.init(e,(function(){ue(t)}),oe.bind(Y),(function(e){Y.emit(p.default.ERROR,e)}),t)}catch(e){Y.emit(p.default.ERROR,e)}}function me(e){if(!navigator)throw new Error("Navigator is missing!");if(J("Recorder: loadGenuineUserMedia()"),Y.emit(p.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})),J("Recorder: navigator.mediaDevices.getUserMedia()",t),navigator.mediaDevices.getSupportedConstraints&&J("Recorder: navigator.mediaDevices.getSupportedConstraints()",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(pe)}else J("Recorder: navigator.getUserMedia()"),navigator.getUserMedia_({video:!0,audio:E.isAudioEnabled()},he,pe)}function ye(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(D)return J("Recorder: skipping loadUserMedia() because it is already loaded"),ue(e),!1;if(C)return J("Recorder: skipping loadUserMedia() because it is already asking for permission"),!1;J("Recorder: loadUserMedia()",e),Y.emit(p.default.LOADING_USER_MEDIA);try{A=setTimeout((function(){Y.isReady()||Y.emit(p.default.ERROR,c.getNoAccessIssue())}),E.timeouts.userMedia),C=!0,me(e)}catch(e){if(J("Recorder: failed to load genuine user media"),C=!1,!Y.listeners(p.default.ERROR).length)throw J("Recorder: no error listeners attached but throwing exception",e),e;Y.emit(p.default.ERROR,e)}}function be(e){try{switch(J("Server commanded: %s",e.command,e.args?", "+(0,l.default)(e.args):""),e.command){case"ready":this.emit(p.default.SERVER_READY),A||(E.loadUserMediaOnRecord?ae():ye());break;case"preview":!function(e){te=ne=X=Q=0,x=T=null,q=e.key,e.mp4&&n.setMp4Source(e.mp4+d.default.SITE_NAME_LABEL+"/"+E.siteName+"/videomail.mp4",!0),e.webm&&n.setWebMSource(e.webm+d.default.SITE_NAME_LABEL+"/"+E.siteName+"/videomail.webm",!0),Y.hide();var t=Y.getRecorderWidth(!0),r=Y.getRecorderHeight(!0);Y.emit(p.default.PREVIEW,q,t,r),H=Date.now()-P,ee.waitingTime=H,E.debug&&J("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(p.default.ERROR,g.default.create("Oh no, server error!",e.args.err.toString()||"(No explanation given)",E));break;case"confirmFrame":t=e.args,te=t.frame?t.frame:te,T=le(),fe();break;case"confirmSample":!function(e){ne=e.sample?e.sample:ne,x=ce(),fe()}(e.args);break;case"beginAudioEncoding":this.emit(p.default.BEGIN_AUDIO_ENCODING);break;case"beginVideoEncoding":this.emit(p.default.BEGIN_VIDEO_ENCODING);break;default:this.emit(p.default.ERROR,"Unknown server command: "+e.command)}}catch(e){Y.emit(p.default.ERROR,e)}var t}function ge(){return e.isNotifying()}function ve(){return!S||(0,u.default)(S)}function we(e,n,r){if(!r&&n&&n.constructor===Function&&(r=n,n=null),U){if(L){J("$ %s",e,n?(0,l.default)(n):"");var i={command:e,args:n};re(t.from((0,l.default)(i))),r&&setTimeout((function(){r()}),0)}}else J("Reconnecting for the command",e,"…"),de((function(){we(e,n),r&&r()}))}function Ee(){K&&K.dispose()}function _e(){return K.getElapsedTime()}function Se(){J("Recorder: reInitialiseAudio()"),se(),R&&R.stop(),D=q=j=M=null,ye()}function Re(e){1===(e&&e.frameNumber)&&Y.emit(p.default.FIRST_FRAME_SENT)}function Ae(n,r){try{if(!Y.isPaused()&&L&&M){if(0===Q&&Y.emit(p.default.SENDING_FIRST_FRAME),Q++,M.drawImage(R.getRawVisuals(),0,0,j.width,j.height),$=V.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:Re}),e.checkTimer({intervalSum:r})}}catch(e){Y.emit(p.default.ERROR,e)}}function Oe(e){if(K){var t=Y.isRecording();K.stop(),K.setRequestAnimationFrameObject(e),t&&K.start()}}function ke(){E.hasDefinedWidth()&&(S.width=Y.getRecorderWidth(!0)),E.hasDefinedHeight()&&(S.height=Y.getRecorderHeight(!0))}function Te(){J("Recorder: initEvents()"),Y.on(p.default.SUBMITTING,(function(){N=!0})).on(p.default.SUBMITTED,(function(){N=!1,Y.unload()})).on(p.default.BLOCKING,(function(){F=!0,se()})).on(p.default.HIDE,(function(){Y.hide()})).on(p.default.LOADED_META_DATA,(function(){ke()})).on(p.default.DISABLING_AUDIO,(function(){Se()})).on(p.default.ENABLING_AUDIO,(function(){Se()})).on(p.default.INVISIBLE,(function(){!function(){J("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(p.default.VISIBLE,(function(){J("Recorder: restoreAnimationFrameObject()"),Oe(_)})).on(p.default.SWITCH_FACING_MODE,(function(){!function(){if(!c.isMobile())return!1;"user"===Z?Z="environment":"environment"===Z?Z="user":J("Recorder: unsupported facing mode",Z),me({switchingFacingMode:!0})}()}))}function xe(){var t;if(R){var n=R.getVideoWidth();t=n<1?e.getRatio():R.getVideoHeight()/n}else t=E.getRatio();return t}this.getRecordingStats=function(){return ee},this.getAudioSampleRate=function(){return R.getAudioSampleRate()},this.stop=function(e){J("stop()",e);var t=e.limitReached;this.emit(p.default.STOPPING,t),K.complete();var r=this;setTimeout((function(){P=Date.now(),ee={avgFps:Q/_e()*1e3,wantedFps:E.video.fps,avgInterval:_e()/Q,wantedInterval:1e3/E.video.fps,intervalSum:_e(),framesCount:Q,videoType:n.getVideoType()},E.isAudioEnabled()&&(ee.samplesCount=X,ee.sampleRate=R.getAudioSampleRate()),we("stop",ee,(function(){r.emit(p.default.STOPPED,{recordingStats:ee})})),r.reset()}),60)},this.back=function(e){this.emit(p.default.GOING_BACK),ae(),this.reset(),we("back",e)},this.unload=function(e){var t;I||(e&&(t=e.name||e.statusText||e.toString()),J("Recorder: unload()"+(t?", cause: "+t:"")),this.reset(),se(),U&&(J("Recorder: disconnect()"),R&&R.unloadRemainingEventListeners(),N?B=U=!1:L&&(L.end(),L=void 0)),I=!0,W=!1)},this.reset=function(){I||(J("Recorder: reset()"),this.emit(p.default.RESETTING),Ee(),R&&R.stop(),n.reset(),D=q=j=M=$=G=null)},this.validate=function(){return U&&Q>0&&null===j},this.isReady=function(){return R.isReady()},this.pause=function(e){var n=e&&e.event;n instanceof window.Event&&(e.eventType=n.type),J("pause() at frame ".concat(Q),e),R.pause(),K.stop(),this.emit(p.default.PAUSED),z=window.setInterval((function(){J("Recorder: pinging..."),re(t.from(""))}),E.timeouts.pingInterval)},this.isPaused=function(){return R&&R.isPaused()},this.resume=function(){J("Recorder: resume() with frame ".concat(Q)),ie(),this.emit(p.default.RESUMING),R.resume(),K.start()},this.record=function(){if(I)return!1;if(!U)return J("Recorder: reconnecting before recording ..."),de((function(){Y.once(p.default.USER_MEDIA_READY,Y.record)})),!1;if(!D)return E.loadUserMediaOnRecord?ye({recordWhenReady:!0}):Y.emit(p.default.ERROR,g.default.create("Load and enable your camera first",E)),!1;try{j=R.createCanvas()}catch(e){return Y.emit(p.default.ERROR,g.default.create(e,E)),!1}return M=j.getContext("2d"),j.width?j.height?(k=0,V=new o.default(j,E),J("Recorder: record()"),R.record(),Y.emit(p.default.RECORDING,Q),K.on("update",(function(e,t){var n=Q/t*1e3;J("Recorder: avgFps =",Math.round(n))})),void K.start()):(Y.emit(p.default.ERROR,g.default.create("Canvas has an invalid height.",E)),!1):(Y.emit(p.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(p.default.ERROR,t):((S=e.querySelector("video."+E.selectors.userMediaClass))||(S=(0,s.default)("video."+E.selectors.userMediaClass),e.appendChild(S)),ke(),S.muted=!0,S.setAttribute("playsinline",!0),S.setAttribute("webkit-playsinline","webkit-playsinline"),S.style.transform="rotateY(180deg)",S.style["-webkit-transform"]="rotateY(180deg)",S.style["-moz-transform"]="rotateY(180deg)",R||(R=new v.default(this,E)),ae(),W?E.loadUserMediaOnRecord&&ye():(Te(),U?E.loadUserMediaOnRecord||ye():de()),W=!0)},this.isPaused=function(){return R&&R.isPaused()&&!K.isRunning()},this.isRecording=function(){return K&&K.isRunning()&&!this.isPaused()&&!ge()&&L&&!L.destroyed},this.hide=function(){ve()||(S&&(0,u.default)(S,!0),se(),J("Recorder: clearRetryTimeout()"),O&&clearTimeout(O),O=null)},this.isUnloaded=function(){return I},this.getRecorderWidth=function(e){return R&&R.hasVideoWidth()?R.getRawWidth(e):e&&E.hasDefinedWidth()?this.limitWidth(E.video.width):void 0},this.getRecorderHeight=function(e){return R?R.getRawHeight(e):e&&E.hasDefinedHeight()?this.calculateHeight(e):void 0},this.calculateWidth=function(t){var n;return R?n=R.getVideoHeight():S&&(n=S.videoHeight||S.height),e.calculateWidth({responsive:t,ratio:xe(),videoHeight:n})},this.calculateHeight=function(t){var n;return R?n=R.getVideoWidth():S&&(n=S.videoWidth||S.width),e.calculateHeight({responsive:t,ratio:xe(),videoWidth:n})},this.getRawVisualUserMedia=function(){return S},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 D}};c.default.inherits(E,m.default);n.default=E}).call(this)}).call(this,e("buffer").Buffer)},{"../../constants":124,"../../events":125,"../../util/browser":129,"../../util/eventEmitter":131,"../../util/humanize":132,"../../util/pretty":134,"../../util/videomailError":136,"./userMedia":152,"@babel/runtime/helpers/interopRequireDefault":1,animitter:4,buffer:11,"canvas-to-buffer":14,deepmerge:21,hidden:56,hyperscript:58,"safe-json-stringify":100,util:115,"websocket-stream":118}],151:[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")),u=r(e("iphone-inline-video")),s=r(e("util")),l=r(e("../../events")),c=r(e("../../util/browser")),f=r(e("../../util/eventEmitter")),d=r(e("../../util/videomailError")),p=function(e,t){f.default.call(this,t,"Replay");var n,r,s,p=this,h=new c.default(t),m=t.debug;function y(){return"HTMLDivElement"===e.constructor.name}function b(e,n,i){var o=p.getVideoSource(e);if(n&&i&&(n+="?"+Date.now()),o)n?o.setAttribute("src",n):r.removeChild(o);else if(n){var u=1/t.video.fps*2;o=(0,a.default)("source",{src:n+"#t="+u,type:"video/"+e}),r.appendChild(o)}}function g(e){setTimeout((function(){try{r.pause()}catch(e){t.logger.warn(e)}e&&e()}),15)}function v(){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("."+r))&&(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){s&&function(t){var n,i;s&&s.playerWidth?n=s.playerWidth:e.calculateWidth&&(n=e.calculateWidth(t)),s&&s.playerHeight?i=s.playerHeight:e.calculateHeight&&(i=e.calculateHeight(t)),r.style.width=n>0?n+"px":"auto",r.style.height=i>0?i+"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?p.emit(l.default.REPLAY_SHOWN):p.emit(l.default.PREVIEW_SHOWN)},this.build=function(){m("Replay: build()"),(r=e.querySelector("video."+t.selectors.replayClass))||function(){if(m("Replay: buildElement()"),!(r=(0,a.default)("video."+t.selectors.replayClass)).setAttribute)throw d.default.create("Please upgrade browser",t);e.appendChild(r)}(),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||(y()||this.on(l.default.PREVIEW,(function(e,t,n){p.show(t,n)})),(0,i.default)(r,"touchstart",(function(e){try{e&&e.preventDefault()}catch(e){}this.paused?v():g()})),r.onclick=function(e){e&&e.preventDefault(),this.paused?v():g()}),n=!0,m("Replay: built.")},this.unload=function(){n=!1},this.getVideoSource=function(e){var t,n,i=r.getElementsByTagName("source"),o=i&&i.length,a="video/"+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){b("mp4",e,t)},this.setWebMSource=function(e,t){b("webm",e,t)},this.getVideoType=function(){return h.getVideoType(r)},this.reset=function(e){g((function(){r&&(p.setMp4Source(null),p.setWebMSource(null)),e&&e()}))},this.hide=function(){y()?(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}};s.default.inherits(p,f.default);n.default=p},{"../../events":125,"../../util/browser":129,"../../util/eventEmitter":131,"../../util/videomailError":136,"@babel/runtime/helpers/interopRequireDefault":1,"add-eventlistener-with-options":3,hidden:56,hyperscript:58,"iphone-inline-video":64,util:115}],152:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,t){a.default.call(this,t,"UserMedia");var n,r,h=e&&e.getRawVisualUserMedia(),m=new o.default(t),y=this,b=!1,g=!1;function v(e){e?function(e){if(r=e,void 0!==h.srcObject)h.srcObject=e;else{if(void 0===h.src)throw l.default.create("Error attaching stream to element.","Contact the developer about this",t);var n=window.URL||window.webkitURL;h.src=n.createObjectURL(e)||e}}(e):(h.removeAttribute("srcObject"),h.removeAttribute("src"),r=null)}function w(){return h.mozSrcObject?h.mozSrcObject:h.srcObject?h.srcObject:r}function E(){if(h.ended)return h.ended;var e=w();return e&&e.ended}function _(){if(h.videoWidth&&h.videoWidth<3||h.height&&h.height<3)return!0}function S(e,n){t.debug("UserMedia: ...",p,"event",e,(0,d.default)(n))}function R(e){S(e.type,{readyState:h.readyState}),h.removeEventListener&&h.removeEventListener(e.type,R)}this.unloadRemainingEventListeners=function(){t.debug("UserMedia: unloadRemainingEventListeners()"),s.default.forEach((function(e){h.removeEventListener(e,R)}))},this.init=function(e,r,o,a){var c=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};this.stop(e,{aboutToInitialize:!0,switchingFacingMode:c.switchingFacingMode});var d=!1,p=!1,b=!1;function g(){y.removeListener(u.default.SENDING_FIRST_FRAME,g),n&&n.record(o)}function w(){t.debug("UserMedia: unloadAllEventListeners()"),y.removeListener(u.default.SENDING_FIRST_FRAME,g),h.removeEventListener&&h.removeEventListener("play",k),h.removeEventListener&&h.removeEventListener("loadedmetadata",T),y.unloadRemainingEventListeners()}function A(){try{if(h.load(),h.paused){var e;t.debug("UserMedia: play()","media.readyState="+h.readyState,"media.paused="+h.paused,"media.ended="+h.ended,"media.played="+(0,f.default)(h.played));try{e=h.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(),a(e)}var n}function O(){var i=h.readyState;if(t.debug("UserMedia: fireCallbacks(readyState="+i+", onPlayReached="+d+", onLoadedMetaDataReached="+p+")"),d&&p&&(r(),n&&o))try{n.init(e),y.on(u.default.SENDING_FIRST_FRAME,g)}catch(e){w(),a(e)}}function k(){try{S("play",{readyState:h.readyState,audio:t.isAudioEnabled(),width:h.width,height:h.height,videoWidth:h.videoWidth,videoHeight:h.videoHeight}),h.removeEventListener&&h.removeEventListener("play",k),E()||_()?a(l.default.create("Already busy","Probably another browser window is using your webcam?",t)):(d=!0,O())}catch(e){w(),a(e)}}function T(){S("loadedmetadata",{readyState:h.readyState,paused:h.paused,width:h.width,height:h.height,videoWidth:h.videoWidth,videoHeight:h.videoHeight}),h.removeEventListener&&h.removeEventListener("loadedmetadata",T),E()||_()||(y.emit(u.default.LOADED_META_DATA),m.isAndroid()&&A(),p=!0,O())}t&&t.isAudioEnabled()&&(n=n||new i.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 l.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="+x.enabled,j+=", muted="+x.muted,j+=", remote="+x.remote,j+=", readyState="+x.readyState,j+=", error="+x.error,t.debug("UserMedia: "+x.kind+" detected.",j||"")}else t.debug("UserMedia: detected (but no video tracks exist");s.default.forEach((function(e){h.addEventListener(e,R,!1)})),h.addEventListener("loadedmetadata",T),h.addEventListener("play",k),h.addEventListener("error",(function(e){t.logger.warn("Caught video element error event: %s",(0,f.default)(e))})),v(e),A()}catch(e){y.emit(u.default.ERROR,e)}},this.isReady=function(){return!!h.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),a=!1;o&&o.forEach((function(e){e.stop&&(a=!0,e.stop())})),!a&&e&&e.stop&&e.stop(),v(null),n&&n.stop(),n=null}i||(b=g=!1)}catch(e){y.emit(u.default.ERROR,e)}},this.createCanvas=function(){return(0,c.default)("canvas",{width:this.getRawWidth(!0),height:this.getRawHeight(!0)})},this.getVideoHeight=function(){return h.videoHeight},this.getVideoWidth=function(){return h.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 l.default.create("Bad dimensions","Calculated raw height cannot be less than 1!",t)}else if((r=this.getVideoHeight())<1)throw l.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 h},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:h&&h.muted,width:h&&h.width,height:h&&h.height,videoWidth:h&&h.videoWidth,videoHeight:h&&h.videoHeight}}};var i=r(e("./../../util/audioRecorder")),o=r(e("./../../util/browser")),a=r(e("./../../util/eventEmitter")),u=r(e("./../../events")),s=r(e("./../../util/mediaEvents")),l=r(e("./../../util/videomailError")),c=r(e("hyperscript")),f=r(e("./../../util/pretty")),d=r(e("safe-json-stringify")),p="|—O—|"},{"./../../events":125,"./../../util/audioRecorder":128,"./../../util/browser":129,"./../../util/eventEmitter":131,"./../../util/mediaEvents":133,"./../../util/pretty":134,"./../../util/videomailError":136,"@babel/runtime/helpers/interopRequireDefault":1,hyperscript:58,"safe-json-stringify":100}],153:[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-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("./util/standardize")),o=r(e("./client"));if(!navigator)throw new Error("Navigator is missing!");(0,i.default)(window,navigator);n.default=o.default;t.exports=o.default},{"./client":123,"./util/standardize":135,"@babel/runtime/helpers/interopRequireDefault":1}]},{},["videomail-client"])("videomail-client")}));
54
+ 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:11}],112:[function(e,t,n){!function(e,r){"use strict";var i="function",o="undefined",a="object",u="string",s="major",l="model",c="name",f="type",d="vendor",p="version",h="architecture",m="console",y="mobile",b="tablet",g="smarttv",v="wearable",w="embedded",E="Amazon",_="Apple",S="ASUS",R="BlackBerry",A="Browser",O="Chrome",k="Firefox",T="Google",x="Huawei",j="LG",M="Microsoft",D="Motorola",C="Opera",N="Samsung",I="Sharp",P="Sony",L="Xiaomi",B="Zebra",U="Facebook",F="Chromium OS",W="Mac OS",q=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},H=function(e,t){return typeof e===u&&-1!==z(t).indexOf(z(e))},z=function(e){return e.toLowerCase()},V=function(e,t){if(typeof e===u)return e=e.replace(/^\s\s*/,""),typeof t===o?e:e.substring(0,500)},G=function(e,t){for(var n,o,u,s,l,c,f=0;f<t.length&&!l;){var d=t[f],p=t[f+1];for(n=o=0;n<d.length&&!l&&d[n];)if(l=d[n++].exec(e))for(u=0;u<p.length;u++)c=l[++o],typeof(s=p[u])===a&&s.length>0?2===s.length?typeof s[1]==i?this[s[0]]=s[1].call(this,c):this[s[0]]=s[1]:3===s.length?typeof s[1]!==i||s[1].exec&&s[1].test?this[s[0]]=c?c.replace(s[1],s[2]):r:this[s[0]]=c?s[1].call(this,c,s[2]):r:4===s.length&&(this[s[0]]=c?s[3].call(this,c.replace(s[1],s[2])):r):this[s]=c||r;f+=2}},$=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(H(t[n][i],e))return"?"===n?r:n}else if(H(t[n],e))return"?"===n?r:n;return e},Y={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],[p,[c,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[p,[c,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[c,p],[/opios[\/ ]+([\w\.]+)/i],[p,[c,C+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[p,[c,C+" GX"]],[/\bopr\/([\w\.]+)/i],[p,[c,C]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[p,[c,"Baidu"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[c,p],[/\bddg\/([\w\.]+)/i],[p,[c,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[p,[c,"UC"+A]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[p,[c,"WeChat"]],[/konqueror\/([\w\.]+)/i],[p,[c,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[p,[c,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[p,[c,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[p,[c,"Smart Lenovo "+A]],[/(avast|avg)\/([\w\.]+)/i],[[c,/(.+)/,"$1 Secure "+A],p],[/\bfocus\/([\w\.]+)/i],[p,[c,k+" Focus"]],[/\bopt\/([\w\.]+)/i],[p,[c,C+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[p,[c,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[p,[c,"Dolphin"]],[/coast\/([\w\.]+)/i],[p,[c,C+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[p,[c,"MIUI "+A]],[/fxios\/([-\w\.]+)/i],[p,[c,k]],[/\bqihu|(qi?ho?o?|360)browser/i],[[c,"360 "+A]],[/(oculus|sailfish|huawei|vivo)browser\/([\w\.]+)/i],[[c,/(.+)/,"$1 "+A],p],[/samsungbrowser\/([\w\.]+)/i],[p,[c,N+" Internet"]],[/(comodo_dragon)\/([\w\.]+)/i],[[c,/_/g," "],p],[/metasr[\/ ]?([\d\.]+)/i],[p,[c,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[c,"Sogou Mobile"],p],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[c,p],[/(lbbrowser)/i,/\[(linkedin)app\]/i],[c],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[c,U],p],[/(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],[c,p],[/\bgsa\/([\w\.]+) .*safari\//i],[p,[c,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[p,[c,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[p,[c,O+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[c,O+" WebView"],p],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[p,[c,"Android "+A]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[c,p],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[p,[c,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[p,c],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[c,[p,$,{"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],[c,p],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[c,"Netscape"],p],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[p,[c,k+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\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|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[c,p],[/(cobalt)\/([\w\.]+)/i],[c,[p,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[h,"amd64"]],[/(ia32(?=;))/i],[[h,z]],[/((?:i[346]|x)86)[;\)]/i],[[h,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[h,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[h,"armhf"]],[/windows (ce|mobile); ppc;/i],[[h,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[h,/ower/,"",z]],[/(sun4\w)[;\)]/i],[[h,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[h,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],[l,[d,N],[f,b]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[l,[d,N],[f,y]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[l,[d,_],[f,y]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[l,[d,_],[f,b]],[/(macintosh);/i],[l,[d,_]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[l,[d,I],[f,y]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[l,[d,x],[f,b]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[l,[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)?)(?: bui|\))/i],[[l,/_/g," "],[d,L],[f,y]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[l,/_/g," "],[d,L],[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],[l,[d,"OPPO"],[f,y]],[/\b(opd2\d{3}a?) bui/i],[l,[d,"OPPO"],[f,b]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[l,[d,"Vivo"],[f,y]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[l,[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],[l,[d,D],[f,y]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[l,[d,D],[f,b]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[l,[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],[l,[d,j],[f,y]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[l,[d,"Lenovo"],[f,b]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[l,/_/g," "],[d,"Nokia"],[f,y]],[/(pixel c)\b/i],[l,[d,T],[f,b]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[l,[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],[l,[d,P],[f,y]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[l,"Xperia Tablet"],[d,P],[f,b]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[l,[d,"OnePlus"],[f,y]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[l,[d,E],[f,b]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[l,/(.+)/g,"Fire Phone $1"],[d,E],[f,y]],[/(playbook);[-\w\),; ]+(rim)/i],[l,d,[f,b]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[l,[d,R],[f,y]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[l,[d,S],[f,b]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[l,[d,S],[f,y]],[/(nexus 9)/i],[l,[d,"HTC"],[f,b]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[d,[l,/_/g," "],[f,y]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[l,[d,"Acer"],[f,b]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[l,[d,"Meizu"],[f,y]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[l,[d,"Ulefone"],[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,l,[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,l,[f,b]],[/(surface duo)/i],[l,[d,M],[f,b]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[l,[d,"Fairphone"],[f,y]],[/(u304aa)/i],[l,[d,"AT&T"],[f,y]],[/\bsie-(\w*)/i],[l,[d,"Siemens"],[f,y]],[/\b(rct\w+) b/i],[l,[d,"RCA"],[f,b]],[/\b(venue[\d ]{2,7}) b/i],[l,[d,"Dell"],[f,b]],[/\b(q(?:mv|ta)\w+) b/i],[l,[d,"Verizon"],[f,b]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[l,[d,"Barnes & Noble"],[f,b]],[/\b(tm\d{3}\w+) b/i],[l,[d,"NuVision"],[f,b]],[/\b(k88) b/i],[l,[d,"ZTE"],[f,b]],[/\b(nx\d{3}j) b/i],[l,[d,"ZTE"],[f,y]],[/\b(gen\d{3}) b.+49h/i],[l,[d,"Swiss"],[f,y]],[/\b(zur\d{3}) b/i],[l,[d,"Swiss"],[f,b]],[/\b((zeki)?tb.*\b) b/i],[l,[d,"Zeki"],[f,b]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[d,"Dragon Touch"],l,[f,b]],[/\b(ns-?\w{0,9}) b/i],[l,[d,"Insignia"],[f,b]],[/\b((nxa|next)-?\w{0,9}) b/i],[l,[d,"NextBook"],[f,b]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[d,"Voice"],l,[f,y]],[/\b(lvtel\-)?(v1[12]) b/i],[[d,"LvTel"],l,[f,y]],[/\b(ph-1) /i],[l,[d,"Essential"],[f,y]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[l,[d,"Envizen"],[f,b]],[/\b(trio[-\w\. ]+) b/i],[l,[d,"MachSpeed"],[f,b]],[/\btu_(1491) b/i],[l,[d,"Rotor"],[f,b]],[/(shield[\w ]+) b/i],[l,[d,"Nvidia"],[f,b]],[/(sprint) (\w+)/i],[d,l,[f,y]],[/(kin\.[onetw]{3})/i],[[l,/\./g," "],[d,M],[f,y]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[l,[d,B],[f,b]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[l,[d,B],[f,y]],[/smart-tv.+(samsung)/i],[d,[f,g]],[/hbbtv.+maple;(\d+)/i],[[l,/^/,"SmartTV"],[d,N],[f,g]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[d,j],[f,g]],[/(apple) ?tv/i],[d,[l,_+" TV"],[f,g]],[/crkey/i],[[l,O+"cast"],[d,T],[f,g]],[/droid.+aft(\w+)( bui|\))/i],[l,[d,E],[f,g]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[l,[d,I],[f,g]],[/(bravia[\w ]+)( bui|\))/i],[l,[d,P],[f,g]],[/(mitv-\w{5}) bui/i],[l,[d,L],[f,g]],[/Hbbtv.*(technisat) (.*);/i],[d,l,[f,g]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[d,V],[l,V],[f,g]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[f,g]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[d,l,[f,m]],[/droid.+; (shield) bui/i],[l,[d,"Nvidia"],[f,m]],[/(playstation [345portablevi]+)/i],[l,[d,P],[f,m]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[l,[d,M],[f,m]],[/((pebble))app/i],[d,l,[f,v]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[l,[d,_],[f,v]],[/droid.+; (glass) \d/i],[l,[d,T],[f,v]],[/droid.+; (wt63?0{2,3})\)/i],[l,[d,B],[f,v]],[/(quest( \d| pro)?)/i],[l,[d,U],[f,v]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[d,[f,w]],[/(aeobc)\b/i],[l,[d,E],[f,w]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[l,[f,y]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[l,[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],[l,[d,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[p,[c,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[p,[c,"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],[c,p],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[p,c]],os:[[/microsoft (windows) (vista|xp)/i],[c,p],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[c,[p,$,Y]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[p,$,Y],[c,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[p,/_/g,"."],[c,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[c,W],[p,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[p,c],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[c,p],[/\(bb(10);/i],[p,[c,R]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[p,[c,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[p,[c,k+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[p,[c,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[p,[c,"watchOS"]],[/crkey\/([\d\.]+)/i],[p,[c,O+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[c,F],p],[/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],[c,p],[/(sunos) ?([\w\.\d]*)/i],[[c,"Solaris"],p],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[c,p]]},K=function(t,n){if(typeof t===a&&(n=t,t=r),!(this instanceof K))return new K(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[c]=r,t[p]=r,G.call(t,g,w.browser),t[s]=typeof(e=t[p])===u?e.replace(/[^\d\.]/g,"").split(".")[0]:r,E&&m&&m.brave&&typeof m.brave.isBrave==i&&(t[c]="Brave"),t},this.getCPU=function(){var e={};return e[h]=r,G.call(e,g,w.cpu),e},this.getDevice=function(){var e={};return e[d]=r,e[l]=r,e[f]=r,G.call(e,g,w.device),E&&!e[f]&&v&&v.mobile&&(e[f]=y),E&&"Macintosh"==e[l]&&m&&typeof m.standalone!==o&&m.maxTouchPoints&&m.maxTouchPoints>2&&(e[l]="iPad",e[f]=b),e},this.getEngine=function(){var e={};return e[c]=r,e[p]=r,G.call(e,g,w.engine),e},this.getOS=function(){var e={};return e[c]=r,e[p]=r,G.call(e,g,w.os),E&&!e[c]&&v&&v.platform&&"Unknown"!=v.platform&&(e[c]=v.platform.replace(/chrome os/i,F).replace(/macos/i,W)),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===u&&e.length>500?V(e,500):e,this},this.setUA(g),this};K.VERSION="1.0.38",K.BROWSER=q([c,p,s]),K.CPU=q([h]),K.DEVICE=q([l,d,f,m,y,g,b,v,w]),K.ENGINE=K.OS=q([c,p]),typeof n!==o?(typeof t!==o&&t.exports&&(n=t.exports=K),n.UAParser=K):typeof e!==o&&(e.UAParser=K);var X=typeof e!==o&&(e.jQuery||e.Zepto);if(X&&!X.ua){var Q=new K;X.ua=Q.getResult(),X.ua.get=function(){return Q.getUA()},X.ua.set=function(e){Q.setUA(e);var t=Q.getResult();for(var n in t)X.ua[n]=t[n]}}}("object"==typeof window?window:this)},{}],113:[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:{})},{}],114:[function(e,t,n){t.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},{}],115:[function(e,t,n){"use strict";var r=e("is-arguments"),i=e("is-generator-function"),o=e("which-typed-array"),a=e("is-typed-array");function u(e){return e.call.bind(e)}var s="undefined"!=typeof BigInt,l="undefined"!=typeof Symbol,c=u(Object.prototype.toString),f=u(Number.prototype.valueOf),d=u(String.prototype.valueOf),p=u(Boolean.prototype.valueOf);if(s)var h=u(BigInt.prototype.valueOf);if(l)var m=u(Symbol.prototype.valueOf);function y(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function b(e){return"[object Map]"===c(e)}function g(e){return"[object Set]"===c(e)}function v(e){return"[object WeakMap]"===c(e)}function w(e){return"[object WeakSet]"===c(e)}function E(e){return"[object ArrayBuffer]"===c(e)}function _(e){return"undefined"!=typeof ArrayBuffer&&(E.working?E(e):e instanceof ArrayBuffer)}function S(e){return"[object DataView]"===c(e)}function R(e){return"undefined"!=typeof DataView&&(S.working?S(e):e instanceof DataView)}n.isArgumentsObject=r,n.isGeneratorFunction=i,n.isTypedArray=a,n.isPromise=function(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},n.isArrayBufferView=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):a(e)||R(e)},n.isUint8Array=function(e){return"Uint8Array"===o(e)},n.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===o(e)},n.isUint16Array=function(e){return"Uint16Array"===o(e)},n.isUint32Array=function(e){return"Uint32Array"===o(e)},n.isInt8Array=function(e){return"Int8Array"===o(e)},n.isInt16Array=function(e){return"Int16Array"===o(e)},n.isInt32Array=function(e){return"Int32Array"===o(e)},n.isFloat32Array=function(e){return"Float32Array"===o(e)},n.isFloat64Array=function(e){return"Float64Array"===o(e)},n.isBigInt64Array=function(e){return"BigInt64Array"===o(e)},n.isBigUint64Array=function(e){return"BigUint64Array"===o(e)},b.working="undefined"!=typeof Map&&b(new Map),n.isMap=function(e){return"undefined"!=typeof Map&&(b.working?b(e):e instanceof Map)},g.working="undefined"!=typeof Set&&g(new Set),n.isSet=function(e){return"undefined"!=typeof Set&&(g.working?g(e):e instanceof Set)},v.working="undefined"!=typeof WeakMap&&v(new WeakMap),n.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(v.working?v(e):e instanceof WeakMap)},w.working="undefined"!=typeof WeakSet&&w(new WeakSet),n.isWeakSet=function(e){return w(e)},E.working="undefined"!=typeof ArrayBuffer&&E(new ArrayBuffer),n.isArrayBuffer=_,S.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&S(new DataView(new ArrayBuffer(1),0,1)),n.isDataView=R;var A="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function O(e){return"[object SharedArrayBuffer]"===c(e)}function k(e){return void 0!==A&&(void 0===O.working&&(O.working=O(new A)),O.working?O(e):e instanceof A)}function T(e){return y(e,f)}function x(e){return y(e,d)}function j(e){return y(e,p)}function M(e){return s&&y(e,h)}function D(e){return l&&y(e,m)}n.isSharedArrayBuffer=k,n.isAsyncFunction=function(e){return"[object AsyncFunction]"===c(e)},n.isMapIterator=function(e){return"[object Map Iterator]"===c(e)},n.isSetIterator=function(e){return"[object Set Iterator]"===c(e)},n.isGeneratorObject=function(e){return"[object Generator]"===c(e)},n.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===c(e)},n.isNumberObject=T,n.isStringObject=x,n.isBooleanObject=j,n.isBigIntObject=M,n.isSymbolObject=D,n.isBoxedPrimitive=function(e){return T(e)||x(e)||j(e)||M(e)||D(e)},n.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(_(e)||k(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(e){Object.defineProperty(n,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})}))},{"is-arguments":65,"is-generator-function":68,"is-typed-array":70,"which-typed-array":121}],116:[function(e,t,n){(function(t){(function(){var r=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++)n[t[r]]=Object.getOwnPropertyDescriptor(e,t[r]);return n},i=/%[sdj%]/g;n.format=function(e){if(!g(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(s(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,o=r.length,a=String(e).replace(i,(function(e){if("%%"===e)return"%";if(n>=o)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}})),u=r[n];n<o;u=r[++n])y(u)||!E(u)?a+=" "+u:a+=" "+s(u);return a},n.deprecate=function(e,r){if(void 0!==t&&!0===t.noDeprecation)return e;if(void 0===t)return function(){return n.deprecate(e,r).apply(this,arguments)};var i=!1;return function(){if(!i){if(t.throwDeprecation)throw new Error(r);t.traceDeprecation?console.trace(r):console.error(r),i=!0}return e.apply(this,arguments)}};var o={},a=/^$/;if(t.env.NODE_DEBUG){var u=t.env.NODE_DEBUG;u=u.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),a=new RegExp("^"+u+"$","i")}function s(e,t){var r={seen:[],stylize:c};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),m(t)?r.showHidden=t:t&&n._extend(r,t),v(r.showHidden)&&(r.showHidden=!1),v(r.depth)&&(r.depth=2),v(r.colors)&&(r.colors=!1),v(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=l),f(r,e,r.depth)}function l(e,t){var n=s.styles[t];return n?"["+s.colors[n][0]+"m"+e+"["+s.colors[n][1]+"m":e}function c(e,t){return e}function f(e,t,r){if(e.customInspect&&t&&R(t.inspect)&&t.inspect!==n.inspect&&(!t.constructor||t.constructor.prototype!==t)){var i=t.inspect(r,e);return g(i)||(i=f(e,i,r)),i}var o=function(e,t){if(v(t))return e.stylize("undefined","undefined");if(g(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(b(t))return e.stylize(""+t,"number");if(m(t))return e.stylize(""+t,"boolean");if(y(t))return e.stylize("null","null")}(e,t);if(o)return o;var a=Object.keys(t),u=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),S(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return d(t);if(0===a.length){if(R(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(w(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(_(t))return e.stylize(Date.prototype.toString.call(t),"date");if(S(t))return d(t)}var l,c="",E=!1,A=["{","}"];(h(t)&&(E=!0,A=["[","]"]),R(t))&&(c=" [Function"+(t.name?": "+t.name:"")+"]");return w(t)&&(c=" "+RegExp.prototype.toString.call(t)),_(t)&&(c=" "+Date.prototype.toUTCString.call(t)),S(t)&&(c=" "+d(t)),0!==a.length||E&&0!=t.length?r<0?w(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),l=E?function(e,t,n,r,i){for(var o=[],a=0,u=t.length;a<u;++a)T(t,String(a))?o.push(p(e,t,n,r,String(a),!0)):o.push("");return i.forEach((function(i){i.match(/^\d+$/)||o.push(p(e,t,n,r,i,!0))})),o}(e,t,r,u,a):a.map((function(n){return p(e,t,r,u,n,E)})),e.seen.pop(),function(e,t,n){var r=e.reduce((function(e,t){return t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0);if(r>60)return n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1];return n[0]+t+" "+e.join(", ")+" "+n[1]}(l,c,A)):A[0]+c+A[1]}function d(e){return"["+Error.prototype.toString.call(e)+"]"}function p(e,t,n,r,i,o){var a,u,s;if((s=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?u=s.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):s.set&&(u=e.stylize("[Setter]","special")),T(r,i)||(a="["+i+"]"),u||(e.seen.indexOf(s.value)<0?(u=y(n)?f(e,s.value,null):f(e,s.value,n-1)).indexOf("\n")>-1&&(u=o?u.split("\n").map((function(e){return" "+e})).join("\n").slice(2):"\n"+u.split("\n").map((function(e){return" "+e})).join("\n")):u=e.stylize("[Circular]","special")),v(a)){if(o&&i.match(/^\d+$/))return u;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.slice(1,-1),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+u}function h(e){return Array.isArray(e)}function m(e){return"boolean"==typeof e}function y(e){return null===e}function b(e){return"number"==typeof e}function g(e){return"string"==typeof e}function v(e){return void 0===e}function w(e){return E(e)&&"[object RegExp]"===A(e)}function E(e){return"object"==typeof e&&null!==e}function _(e){return E(e)&&"[object Date]"===A(e)}function S(e){return E(e)&&("[object Error]"===A(e)||e instanceof Error)}function R(e){return"function"==typeof e}function A(e){return Object.prototype.toString.call(e)}function O(e){return e<10?"0"+e.toString(10):e.toString(10)}n.debuglog=function(e){if(e=e.toUpperCase(),!o[e])if(a.test(e)){var r=t.pid;o[e]=function(){var t=n.format.apply(n,arguments);console.error("%s %d: %s",e,r,t)}}else o[e]=function(){};return o[e]},n.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},n.types=e("./support/types"),n.isArray=h,n.isBoolean=m,n.isNull=y,n.isNullOrUndefined=function(e){return null==e},n.isNumber=b,n.isString=g,n.isSymbol=function(e){return"symbol"==typeof e},n.isUndefined=v,n.isRegExp=w,n.types.isRegExp=w,n.isObject=E,n.isDate=_,n.types.isDate=_,n.isError=S,n.types.isNativeError=S,n.isFunction=R,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("./support/isBuffer");var k=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function T(e,t){return Object.prototype.hasOwnProperty.call(e,t)}n.log=function(){var e,t;console.log("%s - %s",(e=new Date,t=[O(e.getHours()),O(e.getMinutes()),O(e.getSeconds())].join(":"),[e.getDate(),k[e.getMonth()],t].join(" ")),n.format.apply(n,arguments))},n.inherits=e("inherits"),n._extend=function(e,t){if(!t||!E(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e};var x="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function j(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}n.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(x&&e[x]){var t;if("function"!=typeof(t=e[x]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,x,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,r=new Promise((function(e,r){t=e,n=r})),i=[],o=0;o<arguments.length;o++)i.push(arguments[o]);i.push((function(e,r){e?n(e):t(r)}));try{e.apply(this,i)}catch(e){n(e)}return r}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),x&&Object.defineProperty(t,x,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,r(e))},n.promisify.custom=x,n.callbackify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');function n(){for(var n=[],r=0;r<arguments.length;r++)n.push(arguments[r]);var i=n.pop();if("function"!=typeof i)throw new TypeError("The last argument must be of type Function");var o=this,a=function(){return i.apply(o,arguments)};e.apply(this,n).then((function(e){t.nextTick(a.bind(null,null,e))}),(function(e){t.nextTick(j.bind(null,e,a))}))}return Object.setPrototypeOf(n,Object.getPrototypeOf(e)),Object.defineProperties(n,r(e)),n}}).call(this)}).call(this,e("_process"))},{"./support/isBuffer":114,"./support/types":115,_process:79,inherits:61}],117:[function(e,t,n){"use strict";var r=Object.prototype.toString;t.exports=function(e){return"[object Float32Array]"===r.call(e)}},{}],118:[function(e,t,n){(function(n,r){(function(){var i=e("readable-stream"),o=e("end-of-stream"),a=e("inherits"),u=e("stream-shift"),s=r.from&&r.from!==Uint8Array.from?r.from([0]):new r([0]),l=function(e,t){e._corked?e.once("uncork",t):t()},c=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},c(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},c(this)),a=function(){n._forward()},u=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",u),this._unread=function(){n._readable2.removeListener("readable",a),n._readable2.removeListener("end",u),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=u(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?l(this,this._write.bind(this,e,t,n)):e===s?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"),l(this,(function(){var n,r;n=t._forwardEnd&&t._writable,r=function(){!1===t._writableState.prefinished&&(t._writableState.prefinished=!0),t.emit("prefinish"),l(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(s),i.Writable.prototype.end.call(this,n))},t.exports=f}).call(this)}).call(this,e("_process"),e("buffer").Buffer)},{_process:79,buffer:11,"end-of-stream":28,inherits:61,"readable-stream":96,"stream-shift":104}],119:[function(e,t,n){(function(n,r){(function(){"use strict";var i=e("readable-stream").Transform,o=e("duplexify"),a=e("ws"),u=e("safe-buffer").Buffer;t.exports=function(e,t,s){var l,c,f="browser"===n.title,d=!!r.WebSocket,p=f?function e(t,n,r){if(c.bufferedAmount>m)return void setTimeout(e,y,t,n,r);g&&"string"==typeof t&&(t=u.from(t,"utf8"));try{c.send(t)}catch(e){return r(e)}r()}:function(e,t,n){if(c.readyState!==c.OPEN)return void n();g&&"string"==typeof e&&(e=u.from(e,"utf8"));c.send(e,n)};t&&!Array.isArray(t)&&"object"==typeof t&&(s=t,t=null,("string"==typeof s.protocol||Array.isArray(s.protocol))&&(t=s.protocol));s||(s={});void 0===s.objectMode&&(s.objectMode=!(!0===s.binary||void 0===s.binary));var h=function(e,t,n){var r=new i({objectMode:e.objectMode});return r._write=t,r._flush=n,r}(s,p,(function(e){c.close(),e()}));s.objectMode||(h._writev=S);var m=s.browserBufferSize||524288,y=s.browserBufferTimeout||1e3;"object"==typeof e?c=e:(c=d&&f?new a(e,t):new a(e,t,s)).binaryType="arraybuffer";var b=void 0===c.addEventListener;c.readyState===c.OPEN?l=h:(l=l=o(void 0,void 0,s),s.objectMode||(l._writev=S),b?c.addEventListener("open",v):c.onopen=v);l.socket=c,b?(c.addEventListener("close",w),c.addEventListener("error",E),c.addEventListener("message",_)):(c.onclose=w,c.onerror=E,c.onmessage=_);h.on("close",(function(){c.close()}));var g=!s.objectMode;function v(){l.setReadable(h),l.setWritable(h),l.emit("connect")}function w(){l.end(),l.destroy()}function E(e){l.destroy(e)}function _(e){var t=e.data;t=t instanceof ArrayBuffer?u.from(t):u.from(t,"utf8"),h.push(t)}function S(e,t){for(var n=new Array(e.length),r=0;r<e.length;r++)"string"==typeof e[r].chunk?n[r]=u.from(e[r],"utf8"):n[r]=e[r].chunk;this._write(u.concat(n),"binary",t)}return l}}).call(this)}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:79,duplexify:118,"readable-stream":96,"safe-buffer":100,ws:120}],120:[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},{}],121:[function(e,t,n){(function(n){(function(){"use strict";var r=e("for-each"),i=e("available-typed-arrays"),o=e("call-bind"),a=e("call-bind/callBound"),u=e("gopd"),s=a("Object.prototype.toString"),l=e("has-tostringtag/shams")(),c="undefined"==typeof globalThis?n:globalThis,f=i(),d=a("String.prototype.slice"),p=Object.getPrototypeOf,h=a("Array.prototype.indexOf",!0)||function(e,t){for(var n=0;n<e.length;n+=1)if(e[n]===t)return n;return-1},m={__proto__:null};r(f,l&&u&&p?function(e){var t=new c[e];if(Symbol.toStringTag in t){var n=p(t),r=u(n,Symbol.toStringTag);if(!r){var i=p(n);r=u(i,Symbol.toStringTag)}m["$"+e]=o(r.get)}}:function(e){var t=new c[e],n=t.slice||t.set;n&&(m["$"+e]=o(n))});t.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!l){var t=d(s(e),8,-1);return h(f,t)>-1?t:"Object"===t&&function(e){var t=!1;return r(m,(function(n,r){if(!t)try{n(e),t=d(r,1)}catch(e){}})),t}(e)}return u?function(e){var t=!1;return r(m,(function(n,r){if(!t)try{"$"+n(e)===r&&(t=d(r,1))}catch(e){}})),t}(e):null}}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"available-typed-arrays":7,"call-bind":13,"call-bind/callBound":12,"for-each":40,gopd:49,"has-tostringtag/shams":54}],122:[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}}},{}],123:[function(e,t,n){t.exports={name:"videomail-client",version:"8.0.2",description:"A wicked npm package to record videos directly in the browser, wohooo!",author:"Michael Heuberger <michael.heuberger@binarykitchen.com>",contributors:[{name:"Michael Heuberger",email:"michael.heuberger@binarykitchen.com"}],homepage:"https://videomail.io",repository:{type:"git",url:"https://github.com/binarykitchen/videomail-client.git"},license:"CC0-1.0",readmeFilename:"README.md",module:"src/js/index.js",main:"prototype/js/videomail-client.js",scripts:{build:"gulp build",clean:"rm -rf node_modules && rm -rf package-lock.json",test:"gulp test",watch:"NODE_NO_HTTP2=1 gulp watch",audit:"npx audit-ci --config audit-ci.json",patch:"./env/dev/release.sh --importance=patch",minor:"./env/dev/release.sh --importance=minor",major:"./env/dev/release.sh --importance=major",lint:"eslint --color ./src ./test ./gulpfile.js","lint:fix":"npm --silent run lint -- --fix",prettier:"prettier --check ./src ./test gulpfile.js","prettier:fix":"prettier --write ./src ./test gulpfile.js"},engines:{node:">=20.5.1",npm:">=9.8.0"},keywords:["webcam","video","videomail","encoder","getusermedia","audio","recorder"],dependencies:{"@babel/core":"7.24.7","add-eventlistener-with-options":"1.25.5",animitter:"3.0.0","audio-sample":"3.0.1","canvas-to-buffer":"3.0.1","classlist.js":"1.1.20150312",contains:"0.1.1","core-js":"3.37.1","create-error":"0.3.1",deepmerge:"4.3.1",defined:"1.0.1",despot:"1.1.3","document-visibility":"1.0.1","element-closest":"3.0.2",filesize:"10.1.2","get-form-data":"3.0.0",hidden:"1.1.1","humanize-duration":"3.32.1",hyperscript:"2.0.2","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",readystate:"0.4.1","request-frame":"1.5.3","safe-json-stringify":"1.2.0",superagent:"8.1.2","ua-parser-js":"1.0.38","websocket-stream":"5.5.2"},devDependencies:{"@babel/eslint-parser":"7.24.7","@babel/plugin-transform-runtime":"7.24.7","@babel/preset-env":"7.24.7","audit-ci":"6.6.1",autoprefixer:"10.4.19",babelify:"10.0.0","body-parser":"1.20.2",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.29.1","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","gulp-todo":"7.1.1",minimist:"1.2.8",nib:"1.2.0",postcss:"8.4.38",prettier:"3.3.2",router:"1.3.8",tape:"5.8.1","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"}}},{}],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,o,a=r(e("deepmerge")),u=r(e("readystate")),s=r(e("util")),l=r(e("./options")),c=r(e("./constants")),f=r(e("./events")),d=r(e("./util/collectLogger")),p=r(e("./util/eventEmitter")),h=r(e("./wrappers/container")),m=r(e("./wrappers/visuals/replay")),y=r(e("./wrappers/optionsWrapper")),b=r(e("./util/browser")),g=r(e("./resource"));var v=function(e){var t,n,r=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 d.default(t),t.logger=i,t.debug=t.logger.debug,y.default.addFunctions(t),t}(e),s=new h.default(r),c=r.debug;p.default.call(this,r,"VideomailClient"),this.events=f.default,this.show=function(){s.isBuilt()?s.show():this.once(f.default.BUILT,s.show)},this.replay=function(e,n){u.default.interactive((function(){if("string"==typeof n&&(n=document.getElementById(n)),n)s.isOutsideElementOf(n)&&(t=new m.default(n,r)).build();else if(s.isBuilt()||s.build(),!s.hasElement())throw u.default.removeAllListeners(),new Error("Unable to replay video without a container nor parent element.");t||(t=s.getReplay()),n||(n=t.getParentElement()),e&&(e=s.addPlayerDimensions(e,n)),s.isOutsideElementOf(n)?s.hideForm({deep:!0}):s.loadForm(e),setTimeout((function(){t.setVideomail(e),s.showReplayOnly()}),1e3)}))},this.startOver=function(e){t&&(t.hide(),t.reset()),s.startOver(e)},this.unload=function(e){u.default.removeAllListeners(),s.unload(e)},this.hide=function(){s.hide()},this.get=function(e,t){new g.default(r).get(e,(function(e,n){e?t(e):t(null,s.addPlayerDimensions(n))}))},this.canRecord=function(){return function(e){return o||(o=new b.default(e)),o}(r).canRecord()},this.isDirty=function(){return s.isDirty()},this.isRecording=function(){return s.isRecording()},this.submit=function(){s.submit()},this.getLogLines=function(){if(r.logger&&r.logger.getLines)return r.logger.getLines()},n=!1,u.default.interactive((function(e){c("Client: interactive(),","previousState =",e+",","!building =",!n+",","!isBuilt() =",!s.isBuilt()),n||s.isBuilt()||(n=!0,s.build(),n=!1)}))};s.default.inherits(v,p.default),Object.keys(c.default.public).forEach((function(e){v[e]=c.default.public[e]})),v.events=f.default;n.default=v},{"./constants":125,"./events":126,"./options":127,"./resource":128,"./util/browser":130,"./util/collectLogger":131,"./util/eventEmitter":132,"./wrappers/container":139,"./wrappers/optionsWrapper":142,"./wrappers/visuals/replay":152,"@babel/runtime/helpers/interopRequireDefault":1,deepmerge:21,readystate:97,util:116}],125:[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"}}},{}],126:[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})},{"@babel/runtime/helpers/interopRequireDefault":1,keymirror:72}],127:[function(e,t,n){(function(t){(function(){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=e("../../package.json"),i="production"===t.env.NODE_ENV;n.default={logger:null,logStackSize:30,verbose:!i,baseUrl:"https://videomail.io",socketUrl:"wss://videomail.io",siteName:"videomail-client-demo",cache:!0,insertCss:!0,enablePause:!0,enableAutoPause:!0,enableSpace:!0,submitWithVideomail:!1,disableSubmit:!1,enableAutoValidation:!0,enableAutoSubmission:!0,enctype:"application/json",selectors:{containerId:"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",aliasInputName:"videomail_alias",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},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:35e3},loadUserMediaOnRecord:!1,callbacks:{adjustFormDataBeforePosting:null},defaults:{from:null,to:null,cc:null,bcc:null,subject:null,body:null},playerOnly:!1,displayErrors:!0,adjustFormOnBrowserError:!1,reportErrors:!1,fakeUaString:null,version:r.version}}).call(this)}).call(this,e("_process"))},{"../../package.json":123,_process:79}],128:[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={};function n(t,n){return e.defaults[n]&&!t[n]&&(t[n]=e.defaults[n]),t}function r(e,t){return t&&t.body&&t.body.error&&!(e=t.body.error).message&&t.text&&(e.message=t.text),e}function s(n,s,l,c){c||(c=l,l=null);var f={},d=e.baseUrl+"/videomail/";l&&(d+=l);var p=(0,i.default)(n,d);f[o.default.SITE_NAME_LABEL]=e.siteName,p.query(f).set("Timezone-Id",u).send(s).timeout(e.timeout).end((function(n,i){if(n=r(n,i))c(n);else{var o=i.body&&i.body.videomail?i.body.videomail:null;e.cache&&s[a]&&(t[s[a]]=o),c(null,o,i.body)}}))}this.get=function(n,s){e.cache&&t[n]?setTimeout((function(){s(null,t[n])}),0):function(n,s){i.default.get("/videomail/"+n+"/snapshot").set("Accept","application/json").set("Timezone-Id",u).set(o.default.SITE_NAME_LABEL,e.siteName).timeout(e.timeouts.connection).end((function(n,i){if(n=r(n,i))s(n);else{var o=i.body?i.body:null;e.cache&&(t[a]=o),s(null,o)}}))}(n,s)},this.reportError=function(t,n){var a={},u=e.baseUrl+"/client-error/",s=(0,i.default)("post",u);a[o.default.SITE_NAME_LABEL]=e.siteName,s.query(a).send(t).timeout(e.timeout).end((function(e,t){(e=r(e,t))?n&&n(e):n&&n()}))},this.post=function(t,r){(t=function(t){return e.defaults&&(t=n(t,"from"),t=n(t,"to"),t=n(t,"cc"),t=n(t,"bcc"),t=n(t,"subject"),t=n(t,"body")),t}(t))[o.default.VERSION_LABEL]=e.version,e.callbacks.adjustFormDataBeforePosting?e.callbacks.adjustFormDataBeforePosting(t,(function(e,t){e?r(e):s("post",t,r)})):s("post",t,r)},this.put=function(e,t){s("put",e,e.key,t)},this.form=function(t,n,a){var s;switch(e.enctype){case o.default.public.ENC_TYPE_APP_JSON:s="json";break;case o.default.public.ENC_TYPE_FORM:s="form";break;default:setTimeout((function(){a(new Error("Invalid enctype given: "+e.enctype))}),0)}s&&i.default.post(n).type(s).set("Timezone-Id",u).send(t).timeout(e.timeout).end((function(e,t){(e=r(e,t))?a(e):a(null,t)}))}};var i=r(e("superagent")),o=r(e("./constants")),a="alias",u=Intl.DateTimeFormat().resolvedOptions().timeZone},{"./constants":125,"@babel/runtime/helpers/interopRequireDefault":1,superagent:106}],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){var n,r,l,c=new o.default(t);function f(){return window.AudioContext||window.webkitAudioContext}function d(){return!!f()&&!!p()}function p(){if(!l){var e=f();l=new e}return l}this.init=function(e){t.debug("AudioRecorder: init()");var i=p().createGain();try{r=p().createMediaStreamSource(e)}catch(e){throw a.default.create("Webcam has no audio",e.toString(),t)}var o=t.audio.bufferSize;if("auto"===o&&(o=c.isFirefox()?512:2048),!(0,u.default)(o))throw a.default.create("Audio buffer size must be a power of two.",t);if(!t.audio.volume||t.audio.volume>1)throw a.default.create("Audio volume must be between zero and one.",t);i.gain.value=t.audio.volume,n=p().createScriptProcessor(o,s,s),r.connect(n),n.connect(p().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()&&(p().close?p().close().then((function(){t.debug("AudioRecorder: audio context is closed"),l=null})).catch((function(e){throw a.default.create(e,t)})):l=null)},this.getSampleRate=function(){return d()?p().sampleRate:-1}};var i=r(e("audio-sample")),o=r(e("./browser")),a=r(e("./videomailError")),u=r(e("is-power-of-two")),s=1},{"./browser":130,"./videomailError":137,"@babel/runtime/helpers/interopRequireDefault":1,"audio-sample":6,"is-power-of-two":69}],130:[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")),u=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",s="http://www.google.com/chrome/",l="http://www.chromium.org/getting-involved/download-chromium",c=(0,o.default)(e.fakeUaString,"undefined"!=typeof window&&window.navigator&&window.navigator.userAgent,""),f=new a.default(c).getResult(),d="iOS"===f.os.name,p=parseFloat(f.browser.version),h="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=/IE/.test(f.browser.name),_=/Safari/.test(f.browser.name),S=/Opera/.test(f.browser.name),R=/Android/.test(f.os.name),A=h||y,O="Facebook"===f.browser.name,k=d||R,T=_&&p>=11,x=d&&g>=11,j=d&&g<11,M=e.fakeHttps||"https:"===window.location.protocol,D=A||b||R||S||w||T||x||m,C=this;function N(){var e;return(e=j?"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="'+n+'" target="_blank">upgrade Firefox</a> to fix this.':h?e=d?"Use Safari instead. Apple doesn't give Chrome access to iPhone cameras (booo).":'Probably you need to <a href="'+s+'" target="_blank">upgrade Chrome</a> to fix this.':y?e='Probably you need to <a href="'+l+'" target="_blank">upgrade Chromium</a> to fix this.':E?e='Instead of Internet Explorer you need to upgrade to <a href="'+r+'" target="_blank">Edge</a>.':T?e="Probably you need to shut down Safari and restart it, this for correct webcam access.":_&&(e='Safari below version 11 has no webcam support.<br/>Better upgrade Safari or pick <a href="'+s+'" target="_blank">Chrome</a>, <a href="'+n+'" target="_blank">Firefox</a> or Android.'),e}())||(e=C.isChromeBased()||C.isFirefox()||_?"For the webcam feature, your browser needs an upgrade.":O?'Hence we recommend you to use a real browser like <a href="'+s+'" target="_blank">Chrome</a>, <a href="'+n+'" target="_blank">Firefox</a> or <a href="'+r+'" target="_blank">Edge</a>.':'Hence we recommend you to use either <a href="'+s+'" target="_blank">Chrome</a>, <a href="'+n+'" target="_blank">Firefox</a>, <a href="'+r+'" target="_blank">Edge</a> or Android.'),e}function I(e,t){var n;return e&&e.canPlayType&&(n=e.canPlayType("video/"+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(M){if(!D||!this.canRecord()){var n,r=[];j?r.push(u.default.IOS_PROBLEM):r.push(u.default.BROWSER_PROBLEM),n=D?k?O?"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",j&&(e.reportErrors=!1),t=u.default.create({message:n},N(),e,{classList:r})}}else t=u.default.create({message:"Sorry, your page is insecure"},"Please switch to HTTPS to ensure all is encrypted.",e,{classList:[u.default.BROWSER_PROBLEM]});return t},this.checkBufferTypes=function(){var t;return"undefined"==typeof window||void 0===window.atob?t=u.default.create("atob is not supported",e):void 0===window.ArrayBuffer?t=u.default.create("ArrayBuffers are not supported",e):void 0===window.Uint8Array&&(t=u.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.",u.default.create("Unable to access webcam",t,e)},this.isChromeBased=function(){return A},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 T},this.isIOS=function(){return d},this.getUsefulData=function(){return{browser:f.browser,device:f.device,os:f.os,engine:f.engine,userAgent:c}}}},{"./videomailError":137,"@babel/runtime/helpers/interopRequireDefault":1,"@babel/runtime/helpers/typeof":2,defined:23,"ua-parser-js":112}],131:[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 o.default(e),n=e.logger||console,r=e.selectors&&e.selectors.containerId||"undefined container id",a=[];function u(t,n){var r=i.default.format.apply(i.default,n);return a.length>e.logStackSize&&a.pop(),a.push("["+t+"] "+r),r}function s(e){return"#"+r+" ["+(new Date).toLocaleTimeString()+"] > "+e}this.debug=function(){var r=[].slice.call(arguments,0);r[0]=s(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]=s(e[0]),n.error(u("error",e))},this.warn=function(){var e=[].slice.call(arguments,0);e[0]=s(e[0]),n.warn(u("warn",e))},this.getLines=function(){return a}};var i=r(e("util")),o=r(e("./browser"))},{"./browser":130,"@babel/runtime/helpers/interopRequireDefault":1,util:116}],132:[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 o.default.create("You cannot emit without an event.",e);if(n===a.default.ERROR){var s=u[1];s=o.default.create(s,e),u[1]=s}e.debug&&("removeListener"!==n&&"newListener"!==n&&(u[1]&&(r=u.slice(1)),r?e.debug("%s emits: %s",t,n,r):e.debug("%s emits: %s",t,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("./videomailError")),a=r(e("./../events"))},{"./../events":126,"./videomailError":137,"@babel/runtime/helpers/interopRequireDefault":1,despot:24}],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=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":1,filesize:39,"humanize-duration":57}],134:[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"]},{}],135:[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(u)}}(e);if("object"===(0,i.default)(e))return function(e,t){var n,r=Object.getOwnPropertyNames(e),i=t&&t.excludes||[],s=[];if(i.push("stack"),r&&r.length>0){var l=!1;r.forEach((function(t){i&&(l=i.indexOf(t)>=0),!l&&e[t]&&s.push((0,o.default)(e[t]))}))}1===s.length?n=s.join():s.length>1&&(n=a+s.join(u));return n}(e,t);return e.toString()};var i=r(e("@babel/runtime/helpers/typeof")),o=r(e("safe-json-stringify")),a="- ",u="<br/>"+a},{"@babel/runtime/helpers/interopRequireDefault":1,"@babel/runtime/helpers/typeof":2,"safe-json-stringify":101}],136:[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":1,"classlist.js":16,"request-frame":99}],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("@babel/runtime/helpers/typeof")),o=r(e("./../resource")),a=r(e("create-error")),u=r(e("./pretty")),s=r(e("util")),l="Videomail Error",c=(0,a.default)(Error,l,{explanation:void 0,logLines:void 0,useragent:void 0,url:void 0,stack:void 0}),f=function(e){return(0,u.default)(e,{excludes:["stack"]})};c.PERMISSION_DENIED="PERMISSION_DENIED",c.NOT_ALLOWED_ERROR="NotAllowedError",c.NOT_CONNECTED="Not connected",c.DOM_EXCEPTION="DOMException",c.STARTING_FAILED="Starting video failed",c.MEDIA_DEVICE_NOT_SUPPORTED="MediaDeviceNotSupported",c.BROWSER_PROBLEM="browser-problem",c.WEBCAM_PROBLEM="webcam-problem",c.IOS_PROBLEM="ios-problem",c.OVERCONSTRAINED="OverconstrainedError",c.NOT_FOUND_ERROR="NotFoundError",c.NOT_READABLE_ERROR="NotReadableError",c.SECURITY_ERROR="SecurityError",c.TRACK_START_ERROR="TrackStartError",c.INVALID_STATE_ERROR="InvalidStateError",c.create=function(t,n,r,a){if(t&&t.name===l)return t;!r&&n&&(r=n,n=void 0),a=a||{};var u=(r=r||{})&&r.debug||console.log,d=r&&r.isAudioEnabled&&r.isAudioEnabled();u("VideomailError: create()",t,n||"(no explanation set)");var p,h,m,y=a.classList||[],b=new(0,e("./browser").default)(r);switch("object"===(0,i.default)(t)?t.name===c.TRACK_START_ERROR?p=c.TRACK_START_ERROR:t.name===c.SECURITY_ERROR?p=c.SECURITY_ERROR:8===t.code&&t.name===c.NotFoundError?p=c.NotFoundError:35===t.code||t.name===c.NOT_ALLOWED_ERROR?p=c.NOT_ALLOWED_ERROR:1===t.code&&1===t.PERMISSION_DENIED?p=c.PERMISSION_DENIED:t.constructor&&t.constructor.name===c.DOM_EXCEPTION?p=t.name===c.NOT_READABLE_ERROR?c.NOT_READABLE_ERROR:c.DOM_EXCEPTION:t.constructor&&t.constructor.name===c.OVERCONSTRAINED?p=c.OVERCONSTRAINED:t.message===c.STARTING_FAILED?p=t.message:t.name?p=t.name:"error"===t.type&&0===t.target.bufferedAmount&&(p=c.NOT_CONNECTED):p=t===c.NOT_CONNECTED?c.NOT_CONNECTED:t,m=t&&t.stack?t.stack:(new Error).stack,p){case c.SECURITY_ERROR:h="The operation was insecure",n="Probably you have disallowed Cookies for this page?",y.push(c.BROWSER_PROBLEM);break;case c.OVERCONSTRAINED:h="Invalid webcam constraints",n=t.constraint?"width"===t.constraint?"Your webcam does not meet the width requirement.":"Unmet constraint: "+t.constraint:t.toString();break;case"MediaDeviceFailedDueToShutdown":h="Webcam is shutting down",n="This happens your webcam is already switching off and not giving you permission to use it.";break;case"SourceUnavailableError":h="Source of your webcam cannot be accessed",n="Probably it is locked from another process or has a hardware error.",t.message&&(t.message+=" Details: "+t.message);break;case c.NOT_FOUND_ERROR:case"NO_DEVICES_FOUND":d?(h="No webcam nor microphone found",n="Your browser cannot find a webcam with microphone attached to your machine."):(h="No webcam found",n="Your browser cannot find a webcam attached to your machine."),y.push(c.WEBCAM_PROBLEM);break;case"PermissionDismissedError":h="Ooops, you didn't give me any permissions?",n="Looks like you skipped the webcam permission dialogue.<br/>Please grant access next time the dialogue appears.",y.push(c.WEBCAM_PROBLEM);break;case c.NOT_ALLOWED_ERROR:case c.PERMISSION_DENIED:case"PermissionDeniedError":h="Permission denied",n="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(c.WEBCAM_PROBLEM);break;case"HARDWARE_UNAVAILABLE":h="Webcam is unavailable",n="Maybe it is already busy in another window?",(b.isChromeBased()||b.isFirefox())&&(n+=" Or you have to allow access above?"),y.push(c.WEBCAM_PROBLEM);break;case c.NOT_CONNECTED:h="Unable to connect",n="Either the videomail server or your connection is down. Trying to reconnect every few seconds …";break;case"NO_VIDEO_FEED":h="No video feed found!",n="Your webcam is already used in another browser.",y.push(c.WEBCAM_PROBLEM);break;case c.STARTING_FAILED:h="Starting video failed",n="Most likely this happens when the webam is already active in another browser.",y.push(c.WEBCAM_PROBLEM);break;case"DevicesNotFoundError":h="No available webcam could be found",n="Looks like you do not have any webcam attached to your machine; or the one you plugged in is already used.",y.push(c.WEBCAM_PROBLEM);break;case c.NOT_READABLE_ERROR:case c.TRACK_START_ERROR:h="No access to webcam",n="A hardware error occurred which prevented access to your webcam.",y.push(c.WEBCAM_PROBLEM);break;case c.INVALID_STATE_ERROR:h="Invalid state",n="Video recording stream from your webcam already has finished.",y.push(c.WEBCAM_PROBLEM);break;case c.DOM_EXCEPTION:switch(t.code){case 8:h="Requested webcam not found",n="A webcam is needed but could not be found.",y.push(c.WEBCAM_PROBLEM);break;case 9:h="Security upgrade needed",n='Click <a href="'+("https:"+window.location.href.substring(window.location.protocol.length))+'">here</a> to switch to HTTPs which is more safe and enables encrypted videomail transfers.',y.push(c.BROWSER_PROBLEM);break;case 11:h="Invalid State",n="The object is in an invalid, unusable state.",y.push(c.BROWSER_PROBLEM);break;default:h="DOM Exception",n=f(t),y.push(c.BROWSER_PROBLEM)}break;case c.MEDIA_DEVICE_NOT_SUPPORTED:h="Media device not supported",n=f(t);break;default:var g=n;if(n&&"object"===(0,i.default)(n)&&(n=f(n)),!n&&g&&(n=g.message?g.message:"Inspected: "+s.default.inspect(g,{showHidden:!0})),t)if("string"==typeof t)h=t;else if(t.message&&(h=f(t.message)),t.explanation&&(n?n+=";<br/>"+f(t.explanation):n=f(t.explanation)),t.details){var v=f(t.details);n?n+=";<br/>"+v:n=v}h||(p&&(h=p),!n&&t&&(n=f(t)),f(h)===n&&(n=void 0))}var w=null;r.logger&&r.logger.getLines&&(w=r.logger.getLines()),m&&((h=new Error(h)).stack=m);var E="none";t&&(E="code="+(t.code?t.code:"undefined"),E+=", type="+(t.type?t.type:"undefined"),E+=", name="+(t.name?t.name:"undefined"),E+=", message="+(t.message?t.message:"undefined"));var _,S=new c(h,{explanation:n,logLines:w,client:b.getUsefulData(),url:window.location.href,siteName:r.siteName,code:E,stack:m}),R=!1;function A(e){return y.indexOf(e)>=0}return r.reportErrors&&(R="function"==typeof r.reportErrors?r.reportErrors(S):r.reportErrors),R&&(_=new o.default(r)),_&&_.reportError(S,(function(e){e&&console.error("Unable to report error",e)})),S.getClassList=function(){return y},S.removeDimensions=function(){return A(c.IOS_PROBLEM)||b.isMobile()},S.hideButtons=function(){return A(c.BROWSER_PROBLEM)||a.browserProblem||A(c.IOS_PROBLEM)},S.hideForm=function(){return A(c.IOS_PROBLEM)},S};n.default=c},{"./../resource":128,"./browser":130,"./pretty":135,"@babel/runtime/helpers/interopRequireDefault":1,"@babel/runtime/helpers/typeof":2,"create-error":20,util:116}],138:[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")),u=r(e("util")),s=r(e("../events")),l=r(e("../util/eventEmitter")),c=function(e,t){l.default.call(this,t,"Buttons");var n,r,u,c,f,d,p,h,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 S(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 R(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(s.default.ERROR,e)}}}function O(e){var t,r;return e.id&&(t=document.getElementById(e.id)),t||(t=(0,a.default)("input#"+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)),p&&(0,i.default)(n,p)?n.insertBefore(r,p):n.appendChild(r)),e.changeHandler&&(t.onchange=e.changeHandler),_(t),[t,r]}function k(e,r,o,u,s,l,c){var f,d=!(arguments.length>7&&void 0!==arguments[7])||arguments[7];return(f=s?document.getElementById(s):c?document.querySelector(c):n.querySelector("."+e))?f=R(f,u,l,d):(t.selectors.buttonClass&&(e+="."+t.selectors.buttonClass),(f=R(f=(0,a.default)("button."+e),u,l,d)).innerHTML=r,p&&(0,i.default)(n,p)?n.insertBefore(f,p):n.appendChild(f)),o&&A(f,o),f}function T(e){E(d)||e.paused||w(r),e.paused||(_(f),v(f)),t.enableAutoValidation||S(p),e.recordWhenReady||(E(h)&&S(h),E(m)&&S(m))}function x(){v(r),v(d),u&&(w(u),S(u)),S(f),w(f)}function j(){_(d),e.beginWaiting(),e.recordAgain()}function M(){e.submit()}function D(t){_(r),e.record(t)}function C(){g("Buttons: initEvents()"),b.on(s.default.USER_MEDIA_READY,(function(e){e.switchingFacingMode||function(e){T(e),E(r)&&!e.recordWhenReady&&S(r),t.enableAutoValidation&&_(p)}(e)})).on(s.default.PREVIEW,(function(){v(r),v(f),_(h),_(m),w(d),S(d),t.enableAutoValidation||S(p)})).on(s.default.PAUSED,(function(){b.adjustButtonsForPause()})).on(s.default.RECORDING,(function(e){!function(e){e>1?x():(_(m),_(h),_(d),_(r))}(e)})).on(s.default.FIRST_FRAME_SENT,(function(){x()})).on(s.default.RESUMING,(function(){v(c),v(r),u&&(S(u),w(u))})).on(s.default.STOPPING,(function(){_(f),_(r),v(u),v(c)})).on(s.default.COUNTDOWN,(function(){_(r),_(m),_(h)})).on(s.default.SUBMITTING,(function(){_(p),_(d)})).on(s.default.RESETTING,(function(){_(p),b.reset()})).on(s.default.INVALID,(function(){t.enableAutoValidation&&_(p)})).on(s.default.VALID,(function(){t.enableAutoValidation&&S(p)})).on(s.default.SUBMITTED,(function(){_(f),_(d),_(r),_(p)})).on(s.default.HIDE,(function(){v(r),v(f),v(d),v(c)})).on(s.default.FORM_READY,(function(e){T(e)})).on(s.default.REPLAY_SHOWN,(function(){b.hide()})).on(s.default.GOING_BACK,(function(){v(d),w(r),w(p)})).on(s.default.ENABLING_AUDIO,(function(){_(r),_(h),_(m)})).on(s.default.DISABLING_AUDIO,(function(){_(r),_(h),_(m)})).on(s.default.STARTING_OVER,(function(){w(p)})).on(s.default.CONNECTED,(function(){t.loadUserMediaOnRecord&&E(r)&&S(r)})).on(s.default.ERROR,(function(e){e.hideButtons&&e.hideButtons()&&t.adjustFormOnBrowserError&&b.hide()}))}this.enableSubmit=function(){S(p)},this.adjustButtonsForPause=function(){b.isCountingDown()||(u&&v(u),w(c),S(c),v(r),w(f),S(f))},this.reset=function(){t.debug("Buttons: reset()"),_(u),_(c),_(r),_(f),_(d)},this.isRecordAgainButtonEnabled=function(){return!d.disabled},this.isRecordButtonEnabled=function(){return!r.disabled},this.setSubmitButton=function(e){p=e},this.getSubmitButton=function(){return p},this.build=function(){(n=e.querySelector("."+t.selectors.buttonsClass))||(n=(0,a.default)("div."+t.selectors.buttonsClass),e.appendChild(n)),t.disableSubmit||(p?_(p):p=k(t.selectors.submitButtonClass,"Submit",null,!0,t.selectors.submitButtonId,"submit",t.selectors.submitButtonSelector,t.enableAutoValidation),!e.hasForm()&&p&&A(p,M)),r=k(t.selectors.recordButtonClass,t.text.buttons.record,D,!1),t.enablePause&&(u=k(t.selectors.pauseButtonClass,t.text.buttons.pause,e.pause,!1)),t.enablePause&&(c=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()}}),h=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=!1},this.hide=function(e){v(n),e&&e.deep&&(v(r),v(u),v(c),v(f),v(d),v(p))},this.show=function(){w(n)},this.isCountingDown=function(){return e.isCountingDown()}};u.default.inherits(c,l.default);n.default=c},{"../events":126,"../util/eventEmitter":132,"@babel/runtime/helpers/interopRequireDefault":1,contains:18,hidden:56,hyperscript:58,util:116}],139:[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("document-visibility")),o=r(e("element-closest")),a=r(e("hidden")),u=r(e("insert-css")),s=r(e("util")),l=r(e("../../styles/css/main.min.css.js")),c=r(e("../events")),f=r(e("../resource")),d=r(e("../util/eventEmitter")),p=r(e("../util/videomailError")),h=r(e("./buttons")),m=r(e("./dimension")),y=r(e("./form")),b=r(e("./optionsWrapper")),g=r(e("./visuals"));(0,o.default)(window);var v=function(e){d.default.call(this,e,"Container");var t,n,r,o=this,s=(0,i.default)(),v=new g.default(this,e),w=new h.default(this,e),E=new f.default(e),_=document&&document.querySelector&&document.querySelector("html"),S=e.debug,R=!1,A=!1,O=!1;function k(){return"FORM"===t.tagName?t:e.selectors.formId?document.getElementById(e.selectors.formId):t.closest("form")}function T(){S("Container: initEvents()"),window.addEventListener("beforeunload",(function(e){o.unload(e)})),e.playerOnly||s.onChange((function(t){n&&(t?(e.isAutoPauseEnabled()&&o.isCountingDown()&&o.resume(),o.emit(c.default.VISIBLE)):(e.isAutoPauseEnabled()&&(o.isCountingDown()||o.isRecording())&&o.pause("document invisible"),o.emit(c.default.INVISIBLE)))})),e.enableSpace&&(e.playerOnly||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.keyCode?t.keyCode:t.which)&&(t.preventDefault(),e.enablePause?v.pauseOrResume():v.recordOrStop())}))),o.on(c.default.ERROR,(function(n){!function(t){R=!0,t.stack?e.logger.error(t.stack):e.logger.error(t),e.displayErrors?v.error(t):v.reset()}(n),j(n),n.removeDimensions&&n.removeDimensions()&&(t.style.width="auto")})),e.playerOnly||o.on(c.default.LOADED_META_DATA,(function(){x()}))}function x(){var n=v.getRecorderWidth(!0);if(n<1)throw p.default.create("Recorder width cannot be less than 1!",e);t.style.width=n+"px"}function j(e){v.unload(e),w.unload(),o.endWaiting()}function M(t,n,r,i){r&&""!==r||(r=document.baseURI),n&&(t[e.selectors.aliasInputName]=n.videomail.alias,e.submitWithVideomail&&(t.videomail=n.videomail)),E.form(t,r,i)}function D(e,t,n,r,i){o.endWaiting(),e?o.emit(c.default.ERROR,e):(A=!0,r&&i&&i.body&&Object.keys(i.body).forEach((function(e){r[e]=i.body[e]})),o.emit(c.default.SUBMITTED,n,r||i),i&&"text/html"===i.type&&i.text&&(document.body.innerHTML=i.text))}function C(e){return e&&"POST"===e.toUpperCase()}this.addPlayerDimensions=function(e,t){try{return e.playerHeight=this.calculateHeight({responsive:!0,videoWidth:e.width,ratio:e.height/e.width},t),e.playerWidth=this.calculateWidth({responsive:!0,videoHeight:e.playerHeight,ratio:e.height/e.width}),e}catch(e){o.emit(c.default.ERROR,e)}},this.limitWidth=function(n){return m.default.limitWidth(t,n,e)},this.limitHeight=function(t){return m.default.limitHeight(t,e)},this.calculateWidth=function(t){return m.default.calculateWidth(b.default.merge(e,t,!0))},this.calculateHeight=function(n,r){return r||(r=t||document.body),m.default.calculateHeight(r,b.default.merge(e,n,!0))},this.areVisualsHidden=function(){return v.isHidden()},this.hasElement=function(){return!!t},this.build=function(){try{(t=document.getElementById(e.selectors.containerId))&&(e.insertCss&&(0,u.default)(l.default,{prepend:!0}),!n&&T(),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)}(),x(),e.playerOnly||function(){var t=k();if(t){S("Container: buildForm()");var n=(r=new y.default(o,t,e)).findSubmitButton();n&&w.setSubmitButton(n),r.build()}}(),S("Container: buildChildren()"),t.classList?(t.classList.add("videomail"),e.playerOnly||w.build(),v.build()):o.emit(c.default.ERROR,p.default.create("Sorry, your browser is too old!",e)),R?S("Container: building failed due to an error."):(S("Container: built."),n=!0,o.emit(c.default.BUILT)))}catch(e){if(!v.isNotifierBuilt())throw e;o.emit(c.default.ERROR,e)}},this.getSubmitButton=function(){return w.getSubmitButton()},this.querySelector=function(e){return t.querySelector(e)},this.beginWaiting=function(){_.classList&&_.classList.add("wait")},this.endWaiting=function(){_.classList&&_.classList.remove("wait")},this.appendChild=function(e){t.appendChild(e)},this.insertBefore=function(e,n){t.insertBefore(e,n)},this.unload=function(e){S("Container: unload()",e);try{j(e),this.removeAllListeners(),n=A=!1}catch(e){o.emit(c.default.ERROR,e)}},this.show=function(){if(t&&((0,a.default)(t,!1),v.show(),!R)){var e=o.isPaused();e&&w.adjustButtonsForPause(),w.show(),o.isReplayShown()?o.emit(c.default.PREVIEW):o.emit(c.default.FORM_READY,{paused:e})}},this.hide=function(){S("Container: hide()"),R=!1,this.isRecording()&&this.pause(),v.hide(),A&&(w.hide(),(0,a.default)(t,!0))},this.startOver=function(e){try{o.emit(c.default.STARTING_OVER),A=!1,r.show(),v.back(e,(function(){e&&e.keepHidden?o.enableForm():o.show(e)}))}catch(e){o.emit(c.default.ERROR,e)}},this.showReplayOnly=function(){R=!1,this.isRecording()&&this.pause(),v.showReplayOnly(),A&&w.hide()},this.isNotifying=function(){return v.isNotifying()},this.isPaused=function(){return v.isPaused()},this.pause=function(e){v.pause(e)},this.validate=function(t){var n,i=!0;if(e.enableAutoValidation?t?i=t:o.isNotifying()?i=!1:v.isConnected()?i=v.isUserMediaLoaded()||v.isReplayShown():v.isConnecting()&&(i=!1):(i=!1,O=!0),i){this.emit(c.default.VALIDATING);var a,u=v.validate()&&w.isRecordAgainButtonEnabled();if(r){if(n=r.validate())this.areVisualsHidden()||u||((A||this.isReady()||this.isRecording()||this.isPaused()||this.isCountingDown())&&(n=!1),n||(a="Video is not recorded"));else{var s=r.getInvalidElement();a=s?"Form input named "+s.name+' is invalid. It has the value: "'+s.value+'"':"Form input(s) are invalid"}if(n){var l,f,d,p=r.getRecipients(),h="to"in p,m="cc"in p,y="bcc"in p,b=(null===(l=p.to)||void 0===l?void 0:l.length)>0,g=(null===(f=p.cc)||void 0===f?void 0:f.length)>0,E=(null===(d=p.bcc)||void 0===d?void 0:d.length)>0;h?b||(m&&y?g||E||(n=!1):m?g||(n=!1):y?E||(n=!1):a="Please configure the form to have at least one recipient."):m&&(g||y&&(E||(n=!1))),n||(a="Please enter at least one recipient.")}}else n=u;n?this.emit(c.default.VALID):this.emit(c.default.INVALID,a),O=n}return n},this.disableForm=function(e){r&&r.disable(e)},this.enableForm=function(e){r&&r.enable(e)},this.hasForm=function(){return!!r},this.isReady=function(){return w.isRecordButtonEnabled()},this.submitAll=function(t,n,i){var a=C(n);function u(){o.beginWaiting(),o.disableForm(!0),o.emit(c.default.SUBMITTING)}!!t[e.selectors.keyInputName]?(u(),function(e,t,n){var i=r.transformFormData(e);C(t)||!t?(i.recordingStats=v.getRecordingStats(),i.width=v.getRecorderWidth(!0),i.height=v.getRecorderHeight(!0),navigator.connection&&(i.connection={downlink:navigator.connection.downlink+" Mbit/s",effectiveType:navigator.connection.effectiveType,rtt:navigator.connection.rtt,type:navigator.connection.type}),E.post(i,n)):function(e){return e&&"PUT"===e.toUpperCase()}(t)&&E.put(i,n)}(t,n,(function(e,n,r){e?D(e,0,n,r):a?M(t,r,i,(function(e,t){D(e,0,n,r,t)})):D(null,0,n,r)}))):e.enableAutoSubmission&&(u(),M(t,null,i,(function(e,t){D(e,0,null,null,t)})))},this.isBuilt=function(){return n},this.isReplayShown=function(){return v.isReplayShown()},this.isDirty=function(){var e=!1;return r&&(v.isRecorderUnloaded()?e=!1:(this.isReplayShown()||this.isPaused())&&(e=!0)),e},this.getReplay=function(){return v.getReplay()},this.isOutsideElementOf=function(e){return e.parentNode!==t&&e!==t},this.hideForm=function(e){r&&r.hide(),w&&w.hide(e)},this.loadForm=function(e){r&&(r.loadVideomail(e),this.validate())},this.enableAudio=function(){e.setAudioEnabled(!0),this.emit(c.default.ENABLING_AUDIO)},this.disableAudio=function(){e.setAudioEnabled(!1),this.emit(c.default.DISABLING_AUDIO)},this.submit=function(){O&&r&&r.doTheSubmit()},this.isCountingDown=v.isCountingDown.bind(v),this.isRecording=v.isRecording.bind(v),this.record=v.record.bind(v),this.resume=v.resume.bind(v),this.stop=v.stop.bind(v),this.recordAgain=v.recordAgain.bind(v)};s.default.inherits(v,d.default);n.default=v},{"../../styles/css/main.min.css.js":154,"../events":126,"../resource":128,"../util/eventEmitter":132,"../util/videomailError":137,"./buttons":138,"./dimension":140,"./form":141,"./optionsWrapper":142,"./visuals":143,"@babel/runtime/helpers/interopRequireDefault":1,"document-visibility":25,"element-closest":27,hidden:56,"insert-css":62,util:116}],140:[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 ("+e+") while figuring out the minimum!",t);return e}n.default={limitWidth:function(e,t,n){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,u=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*u)),(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":137,"@babel/runtime/helpers/interopRequireDefault":1,"number-is-integer":73}],141:[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")),u=r(e("util")),s=r(e("../events")),l=r(e("../util/eventEmitter")),c=r(e("../util/videomailError"));function f(e){return e.replace(/(^[,\s]+)|([,\s]+$)/g,"")}var d=function(e,t,n){l.default.call(this,n,"Form");var r,u=this;function d(){return(0,i.default)(t,{includeDisabled:!0})}function p(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 h(){return t.querySelectorAll("input, textarea")}function m(){return t.querySelectorAll("select")}this.transformFormData=function(e){var t={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},r={};return Object.keys(t).forEach((function(n){var i=t[n];i in e&&(r[n]=e[i])})),r.from&&(r.from=f(r.from)),r.to&&(r.to=f(r.to)),r.cc&&(r.cc=f(r.cc)),r.bcc&&(r.bcc=f(r.bcc)),r},this.getRecipients=function(){var e=this.transformFormData(d()),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){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){p(!0,e)},this.enable=function(e){p(!1,e)},this.build=function(){if(n.enableAutoValidation){for(var i,l=h(),f=0,d=l.length;f<d;f++)"radio"===(i=l[f]).type?i.addEventListener("change",(function(){e.validate()})):i.addEventListener("input",(function(){setTimeout((function(){e.validate()}),0)}));for(var p=m(),y=0,b=p.length;y<b;y++)p[y].addEventListener("change",(function(){e.validate()}))}(r=t.querySelector('input[name="'+n.selectors.keyInputName+'"]'))||(r=(0,a.default)("input",{name:n.selectors.keyInputName,type:"hidden"}),t.appendChild(r)),this.on(s.default.PREVIEW,(function(e){e||r.value?e&&(r.value=e):u.emit(s.default.ERROR,c.default.create("Videomail key for preview is missing!",n))})),this.on(s.default.GOING_BACK,(function(){r.value=null})),this.on(s.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=u.findSubmitButton(),(0,o.default)(r,!0))})),this.on(s.default.BUILT,(function(){e.getSubmitButton().addEventListener("click",u.doTheSubmit.bind(u))}))},this.doTheSubmit=function(n){return n&&n.preventDefault(),e.hasElement()&&e.submitAll(d(),t.getAttribute("method"),t.getAttribute("action")),!1},this.getInvalidElement=function(){for(var e=h(),t=0,n=e.length;t<n;t++)if(!e[t].validity.valid)return e[t];for(var r=m(),i=0,o=r.length;i<o;i++)if(!r[i].validity.valid)return r[i];return null},this.validate=function(){return t.checkValidity()},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)}};u.default.inherits(d,l.default);n.default=d},{"../events":126,"../util/eventEmitter":132,"../util/videomailError":137,"@babel/runtime/helpers/interopRequireDefault":1,"get-form-data":43,hidden:56,hyperscript:58,util:116}],142:[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={addFunctions:function(e){var t=e.audio&&e.audio.enabled;e.hasDefinedHeight=function(){return this.video.height&&"auto"!==this.video.height},e.hasDefinedWidth=function(){return this.video.width&&"auto"!==this.video.width},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}},merge:function(e,t){var n=(0,i.default)(e,t,{arrayMerge:function(e,t){return t}});return this.addFunctions(n),n}}},{"@babel/runtime/helpers/interopRequireDefault":1,deepmerge:21}],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("hidden")),o=r(e("hyperscript")),a=r(e("util")),u=r(e("../events")),s=r(e("../util/eventEmitter")),l=r(e("./visuals/inside/recorderInsides")),c=r(e("./visuals/notifier")),f=r(e("./visuals/recorder")),d=r(e("./visuals/replay")),p=function(e,t){s.default.call(this,t,"Visuals");var n,r,a=this,p=new d.default(this,t),h=new f.default(this,p,t),m=new l.default(this,t),y=new c.default(this,t),b=t.debug;function g(){var r;b("Visuals: buildChildren()"),(r=e.querySelector("noscript"))||((r=(0,o.default)("noscript")).innerHTML="Please enable Javascript",n.appendChild(r)),t.playerOnly||(y.build(),m.build()),p.build(),b("Visuals: built.")}function v(){t.playerOnly||(b("Visuals: initEvents()"),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(!0)})).on(u.default.LOADED_META_DATA,(function(){w()})).on(u.default.ERROR,(function(e){e.removeDimensions&&e.removeDimensions()&&(n.style.width="auto",n.style.height="auto")})))}function w(){n.style.width=a.getRecorderWidth(!0)+"px",n.style.height=a.getRecorderHeight(!0)+"px"}function E(){return!a.isNotifying()&&!p.isShown()&&!a.isCountingDown()}this.getRatio=function(){return n.clientWidth?n.clientHeight/n.clientWidth:0},this.isCountingDown=function(){return m.isCountingDown()},this.build=function(){if(!(n=e.querySelector("."+t.selectors.visualsClass))){n=(0,o.default)("div."+t.selectors.visualsClass);var i=e.querySelector("."+t.selectors.buttonsClass);i&&!e.isOutsideElementOf(i)?e.insertBefore(n,i):e.appendChild(n)}n.classList.add("visuals"),w(),!r&&v(),g(),a.parentNode=n.parentNode,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(),h.reset()},this.beginWaiting=function(){e.beginWaiting()},this.endWaiting=function(){e.endWaiting()},this.stop=function(e){h.stop(e),m.hidePause()},this.back=function(e,t){!t&&e&&(t=e,e={}),p.hide(),y.hide(),e&&e.keepHidden?(h.hide(),t&&t()):h.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{h.unload(e),m.unload(e),p.unload(e),r=!1}catch(e){this.emit(u.default.ERROR,e)}},this.isNotifying=function(){return y.isVisible()},this.isReplayShown=function(){return p.isShown()},this.pause=function(e){h.pause(e),m.showPause()},this.resume=function(){m.isCountingDown()?m.resumeCountdown():h.resume(),m.hidePause()},this.pauseOrResume=function(){E.call(this)&&(this.isRecording()?this.pause():h.isPaused()?this.resume():h.isReady()&&this.record())},this.recordOrStop=function(){E()&&(this.isRecording()?this.stop():h.isReady()&&this.record())},this.record=function(){t.video.countdown?(this.emit(u.default.COUNTDOWN),m.startCountdown(h.record.bind(h))):h.record()},this.getRecorder=function(){return h},this.getReplay=function(){return p},this.validate=function(){return h.validate()&&this.isReplayShown()},this.getRecordingStats=function(){return h.getRecordingStats()},this.getAudioSampleRate=function(){return h.getAudioSampleRate()},this.isPaused=function(){return h.isPaused()},this.error=function(e){y.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&&h.build(),this.showVisuals()},this.showReplayOnly=function(){!this.isReplayShown()&&p.show(),this.show(),h.hide(),y.hide()},this.isRecorderUnloaded=function(){return h.isUnloaded()},this.isConnecting=function(){return h.isConnecting()},this.getRecorderWidth=function(e){return h.getRecorderWidth(e)},this.getRecorderHeight=function(e){return h.getRecorderHeight(e)},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){m.checkTimer(e)},this.isNotifierBuilt=function(){return y&&y.isBuilt()},this.isReplayShown=p.isShown.bind(p),this.hideReplay=p.hide.bind(p),this.hideRecorder=h.hide.bind(h),this.isRecording=h.isRecording.bind(h),this.isUserMediaLoaded=h.isUserMediaLoaded.bind(h),this.isConnected=h.isConnected.bind(h)};a.default.inherits(p,s.default);n.default=p},{"../events":126,"../util/eventEmitter":132,"./visuals/inside/recorderInsides":149,"./visuals/notifier":150,"./visuals/recorder":151,"./visuals/replay":152,"@babel/runtime/helpers/interopRequireDefault":1,hidden:56,hyperscript:58,util:116}],144:[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,u,s=this;function l(e){u||(t.debug("Countdown",a),--a<1?function(e){s.unload(),s.hide(),setTimeout((function(){e()}),0)}(e):n.innerHTML=a)}this.start=function(e){n.innerHTML=a=t.video.countdown,this.show(),r=setInterval(l.bind(this,e),950)},this.pause=function(){u=!0},this.resume=function(){u=!1},this.build=function(){(n=e.querySelector(".countdown"))?this.hide():(n=(0,i.default)("p.countdown"),this.hide(),e.appendChild(n))},this.show=function(){(0,o.default)(n,!1)},this.isCountingDown=function(){return!!r},this.unload=function(){clearInterval(r),u=!1,r=null},this.hide=function(){(0,o.default)(n,!0),this.unload()}};var i=r(e("hyperscript")),o=r(e("hidden"))},{"@babel/runtime/helpers/interopRequireDefault":1,hidden:56,hyperscript:58}],145:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,t){u.default.call(this,t,"Facing Mode");var n,r=this;this.build=function(){(n=e.querySelector(".facingMode"))?this.hide():((n=(0,i.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,o.default)(n,!0)},this.show=function(){(0,o.default)(n,!1)}};var i=r(e("hyperscript")),o=r(e("hidden")),a=r(e("./../../../../events")),u=r(e("./../../../../util/eventEmitter"))},{"./../../../../events":126,"./../../../../util/eventEmitter":132,"@babel/runtime/helpers/interopRequireDefault":1,hidden:56,hyperscript:58}],146:[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,u;function s(){return t.text.pausedHint}this.build=function(){n=e.querySelector(".paused"),(r=e.querySelector(".pausedHeader"))?(this.hide(),r.innerHTML=t.text.pausedHeader,s()&&(u.innerHTML=t.text.pausedHint)):(n=(0,i.default)("div.paused"),r=(0,i.default)("p.pausedHeader"),this.hide(),r.innerHTML=t.text.pausedHeader,n.appendChild(r),s()&&(u=e.querySelector(".pausedHint"),(u=(0,i.default)("p.pausedHint")).innerHTML=t.text.pausedHint,n.appendChild(u)),e.appendChild(n))},this.hide=function(){(0,o.default)(n,!0)},this.show=function(){(0,o.default)(n,!1)}};var i=r(e("hyperscript")),o=r(e("hidden")),a=r(e("./../../../../util/videomailError"))},{"./../../../../util/videomailError":137,"@babel/runtime/helpers/interopRequireDefault":1,hidden:56,hyperscript:58}],147:[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,i.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,o.default)(t,!0)},this.show=function(){(0,o.default)(t,!1)}};var i=r(e("hyperscript")),o=r(e("hidden"))},{"@babel/runtime/helpers/interopRequireDefault":1,hidden:56,hyperscript:58}],148:[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,u,s=!1,l=!1;function c(e,t){return e>=n.video.limitSeconds*t}function f(){var e,i=parseInt(u/60,10),o=u-60*i;if(!s||!l){var a=n.video.limitSeconds-u;!function(e){return!(s||!c(e,.6)||(s=!0,0))}(a)?function(e){return!(l||!c(e,.8)||(l=!0,0))}(a)&&(t.setNigh(),r.classList.add("nigh"),n.debug("End is nigh, "+u+" seconds to go")):(t.setNear(),r.classList.add("near"),n.debug("End is near, "+u+" seconds to go"))}r.innerHTML=i+":"+((e=o)<10?"0"+e:e)}function d(){(0,o.default)(r,!0)}function p(){return n.video.limitSeconds}this.check=function(t){var n=p()-Math.floor(t.intervalSum/1e3);n!==u&&(u=n,f(),u<1&&e.stop(!0))},this.start=function(){u=p(),s=l=!1,a=!0,f(),r.classList.remove("near"),r.classList.remove("nigh"),(0,o.default)(r,!1)},this.pause=function(){t.hide()},this.resume=function(){t.show()},this.stop=function(){null!==u&&a&&(n.debug("Stopping record timer. Was recording for about ~"+(p()-u)+" seconds."),d(),t.stop(),u=null,a=!1)},this.build=function(){(r=e.querySelector(".recordTimer"))?d():(r=(0,i.default)("p.recordTimer"),d(),e.appendChild(r))}};var i=r(e("hyperscript")),o=r(e("hidden"))},{"@babel/runtime/helpers/interopRequireDefault":1,hidden:56,hyperscript:58}],149:[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("util")),o=r(e("./../../../events")),a=r(e("./../../../util/eventEmitter")),u=r(e("./../../../util/browser")),s=r(e("./recorder/countdown")),l=r(e("./recorder/pausedNote")),c=r(e("./recorder/recordNote")),f=r(e("./recorder/recordTimer")),d=r(e("./recorder/facingMode")),p=function(e,t){a.default.call(this,t,"RecorderInsides");var n,r,i,p,h=this,m=t.debug,y=new c.default(e),b=new f.default(e,y,t),g=new u.default(t);function v(){h.hidePause(),h.hideCountdown(),b.stop(),p&&p.hide()}function w(){m("RecorderInsides: initEvents()"),h.on(o.default.USER_MEDIA_READY,(function(){p&&p.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(){h.isCountingDown()?n.pause():b.pause()})).on(o.default.RESETTING,v).on(o.default.HIDE,(function(){h.hideCountdown()}))}t.video.countdown&&(n=new s.default(e,t)),t.video.facingModeButton&&g.isMobile()&&(p=new d.default(e,t)),t.enablePause&&(r=new l.default(e,t)),this.build=function(){m("RecorderInsides: build()"),n&&n.build(),r&&r.build(),p&&p.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)}};i.default.inherits(p,a.default);n.default=p},{"./../../../events":126,"./../../../util/browser":130,"./../../../util/eventEmitter":132,"./recorder/countdown":144,"./recorder/facingMode":145,"./recorder/pausedNote":146,"./recorder/recordNote":147,"./recorder/recordTimer":148,"@babel/runtime/helpers/interopRequireDefault":1,util:116}],150:[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("util")),u=r(e("../../events")),s=r(e("../../util/eventEmitter")),l=function(e,t){s.default.call(this,t,"Notifier");var n,r,a,l,c,f,d=this,p=t&&t.debug;function h(){p("Notifier: initEvents()"),d.on(u.default.CONNECTING,(function(){d.notify("Connecting …")})).on(u.default.LOADING_USER_MEDIA,(function(){d.notify("Loading webcam …")})).on(u.default.USER_MEDIA_READY,(function(){d.hide()})).on(u.default.LOADED_META_DATA,(function(){n.style.width=e.getRecorderWidth(!0)+"px",n.style.height=e.getRecorderHeight(!0)+"px"})).on(u.default.PREVIEW,(function(){d.hide()})).on(u.default.STOPPING,(function(n){!function(n){var r="";e.beginWaiting(),n&&(p("Limit reached"),r+=t.text.limitReached+".<br/>"),r+=t.text.sending+" …",d.notify(r,null,{stillWait:!0,entertain:t.notifier.entertain})}(n)})).on(u.default.PROGRESS,(function(e,n){!function(e,n){var r;t.isAudioEnabled()?(r="Video: "+e,n&&(r+=", Audio: "+n)):r=e,d.setExplanation(r)}(e,n)})).on(u.default.BEGIN_VIDEO_ENCODING,(function(){!function(){e.beginWaiting();var n=t.text.encoding+" …";d.notify(n,null,{stillWait:!0,entertain:t.notifier.entertain}),b()}()})).on(u.default.CONNECTED,(function(){d.notify("Connected."),t.loadUserMediaOnRecord&&d.hide()}))}function m(){if(t.notifier.entertain){if(!c){var e=Math.floor(Math.random()*t.notifier.entertainLimit+1);n.className="notifier entertain "+t.notifier.entertainClass+e,l=setTimeout(m,t.notifier.entertainInterval),c=!0}}else y()}function y(){n&&n.classList.remove("entertain"),clearTimeout(l),l=null,c=!1}function b(){a&&(a.innerHTML=null,(0,i.default)(a,!0))}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 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){a||(a=(0,o.default)("p"),n?n.appendChild(a):t.logger.warn("Unable to show explanation because notifyElement is empty:",e)),a.innerHTML=e,(0,i.default)(a,!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&&h(),f=!0},this.hide=function(){y(),n&&((0,i.default)(n,!0),n.classList.remove("blocking")),r&&(r.innerHTML=null),b()},this.isVisible=function(){return!!f&&(n&&!(0,i.default)(n))},this.isBuilt=function(){return f},this.notify=function(s,l,c){t.debug("Notifier: notify()"),c||(c={});var f=!!c.stillWait&&c.stillWait,d=!!c.entertain&&c.entertain,p=!!c.blocking&&c.blocking,h=!!c.hideForm&&c.hideForm,b=!!c.classList&&c.classList,g=!!c.removeDimensions&&c.removeDimensions;!r&&n&&(r=(0,o.default)("h2"),a?n.insertBefore(r,a):n.appendChild(r)),n&&(d||(n.className="notifier"),b&&b.forEach((function(e){n.classList.add(e)})),g&&(n.style.width="auto",n.style.height="auto")),p?(n&&n.classList.add("blocking"),this.emit(u.default.BLOCKING,{hideForm:h})):this.emit(u.default.NOTIFYING),e.hideReplay(),e.hideRecorder(),function(e,n){var i=!!n.problem&&n.problem;r?r.innerHTML=(i?"&#x2639; ":"")+e:t.logger.warn("Unable to show following because messageElement is empty:",e)}(s,c),l&&l.length>0&&this.setExplanation(l),d?m():y(),e.showVisuals(),n&&(0,i.default)(n,!1),!f&&e.endWaiting()}};a.default.inherits(l,s.default);n.default=l},{"../../events":126,"../../util/eventEmitter":132,"@babel/runtime/helpers/interopRequireDefault":1,hidden:56,hyperscript:58,util:116}],151:[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")),u=r(e("hidden")),s=r(e("hyperscript")),l=r(e("safe-json-stringify")),c=r(e("util")),f=r(e("websocket-stream")),d=r(e("../../constants")),p=r(e("../../events")),h=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 h.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 _,S,R,A,O,k,T,x,j,M,D,C,N,I,P,L,B,U,F,W,q,H,z,V,G,$,Y=this,J=E.debug,K=null,X=0,Q=0,Z=E.video.facingMode,ee={},te=0,ne=0;function re(e,t){if(L)if(L.destroyed)ie(),Y.emit(p.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{L.write(e,(function(){n&&n(t)}))}catch(e){Y.emit(p.default.ERROR,g.default.create("Failed writing to server","stream.write() failed because of "+(0,b.default)(e),E))}}}function ie(){clearInterval(z)}function oe(e){X++,re(e.toBuffer())}function ae(){S&&(0,u.default)(S,!1)}function ue(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};try{J("Recorder: onUserMediaReady()",t);var n=t.switchingFacingMode;C=F=I=N=!1,D=!0,n||(e=(0,i.default)({fps:E.video.fps},Ae),_=e.getRequestAnimationFrameObject(),K=e),ae(),t.recordWhenReady&&Y.record(),Y.emit(p.default.USER_MEDIA_READY,{switchingFacingMode:t.switchingFacingMode,paused:Y.isPaused(),recordWhenReady:t.recordWhenReady})}catch(e){Y.emit(p.default.ERROR,e)}}function se(){A&&(J("Recorder: clearUserMediaTimeout()"),A&&clearTimeout(A),A=null)}function le(){return(te/(Q||1)*100).toFixed(2)+"%"}function ce(){return(ne/(X||1)*100).toFixed(2)+"%"}function fe(){T||(T=le()),x||(x=ce()),Y.emit(p.default.PROGRESS,T,x)}function de(e){if(!U){B=!0,J("Recorder: initialising web socket to %s",E.socketUrl),Y.emit(p.default.CONNECTING);var t=E.socketUrl+"?"+encodeURIComponent(d.default.SITE_NAME_LABEL)+"="+encodeURIComponent(E.siteName);try{L=(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: "+(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(p.default.ERROR,n)}L&&(L.on("close",(function(e){J(w+"Stream has closed"),B=U=!1,e?Y.emit(p.default.ERROR,e||"Unhandled websocket error"):(Y.emit(p.default.DISCONNECTED),Ee())})),L.on("connect",(function(){J(w+"Stream *connect* event emitted"),U||(U=!0,B=I=!1,Y.emit(p.default.CONNECTED),e&&e())})),L.on("data",(function(e){var t;J(w+"Stream *data* event emitted");try{t=JSON.parse(e.toString())}catch(t){J("Failed to parse command:",t),Y.emit(p.default.ERROR,g.default.create("Invalid server command","Contact us asap. Bad command was "+e.toString()+". ",E))}finally{be.call(Y,t)}})),L.on("error",(function(e){var t;J(w+"Stream *error* event emitted",e),B=U=!1,t=c.isIOS()?g.default.create(e,"iPhones cannot maintain a live connection for too long. Original error message is: "+e.toString(),E):g.default.create("Data exchange interrupted","Please check your network connection and reload.",E),Y.emit(p.default.ERROR,t)})),L.on("drain",(function(){J(w+"Stream *drain* event emitted (should not happen!)")})),L.on("preend",(function(){J(w+"Stream *preend* event emitted")})),L.on("end",(function(){J(w+"Stream *end* event emitted")})),L.on("drain",(function(){J(w+"Stream *drain* event emitted")})),L.on("pipe",(function(){J(w+"Stream *pipe* event emitted")})),L.on("unpipe",(function(){J(w+"Stream *unpipe* event emitted")})),L.on("resume",(function(){J(w+"Stream *resume* event emitted")})),L.on("uncork",(function(){J(w+"Stream *uncork* event emitted")})),L.on("readable",(function(){J(w+"Stream *preend* event emitted")})),L.on("prefinish",(function(){J(w+"Stream *preend* event emitted")})),L.on("finish",(function(){J(w+"Stream *preend* event emitted")})))}}function pe(e,t,n){C=!1,se(),J("Recorder: userMediaErrorCallback()",", name:",e.name,", message:",e.message,", Webcam characteristics:",R.getCharacteristics(),", extraA arguments:",t?t.toString():void 0,", extraB arguments:",n?n.toString():void 0);var r=Y.listeners(p.default.ERROR);if(r&&r.length)e.name!==g.default.MEDIA_DEVICE_NOT_SUPPORTED?Y.emit(p.default.ERROR,g.default.create(e,E)):J("Recorder: ignore user media error",e),O=setTimeout(de,E.timeouts.userMedia);else{if(!I)throw J("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);J("Recorder: already unloaded. Not going to throw error",e)}}function he(e,t){if(J("Recorder: getUserMediaCallback()",t),U&&(ge()||!ve()||F))try{se(),R.init(e,(function(){ue(t)}),oe.bind(Y),(function(e){Y.emit(p.default.ERROR,e)}),t)}catch(e){Y.emit(p.default.ERROR,e)}}function me(e){if(!navigator)throw new Error("Navigator is missing!");if(J("Recorder: loadGenuineUserMedia()"),Y.emit(p.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})),J("Recorder: navigator.mediaDevices.getUserMedia()",t),navigator.mediaDevices.getSupportedConstraints&&J("Recorder: navigator.mediaDevices.getSupportedConstraints()",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(pe)}else J("Recorder: navigator.getUserMedia()"),navigator.getUserMedia_({video:!0,audio:E.isAudioEnabled()},he,pe)}function ye(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(D)return J("Recorder: skipping loadUserMedia() because it is already loaded"),ue(e),!1;if(C)return J("Recorder: skipping loadUserMedia() because it is already asking for permission"),!1;J("Recorder: loadUserMedia()",e),Y.emit(p.default.LOADING_USER_MEDIA);try{A=setTimeout((function(){Y.isReady()||Y.emit(p.default.ERROR,c.getNoAccessIssue())}),E.timeouts.userMedia),C=!0,me(e)}catch(e){if(J("Recorder: failed to load genuine user media"),C=!1,!Y.listeners(p.default.ERROR).length)throw J("Recorder: no error listeners attached but throwing exception",e),e;Y.emit(p.default.ERROR,e)}}function be(e){try{switch(J("Server commanded: %s",e.command,e.args?", "+(0,l.default)(e.args):""),e.command){case"ready":this.emit(p.default.SERVER_READY),A||(E.loadUserMediaOnRecord?ae():ye());break;case"preview":!function(e){te=ne=X=Q=0,x=T=null,q=e.key,e.mp4&&n.setMp4Source(e.mp4+d.default.SITE_NAME_LABEL+"/"+E.siteName+"/videomail.mp4",!0),e.webm&&n.setWebMSource(e.webm+d.default.SITE_NAME_LABEL+"/"+E.siteName+"/videomail.webm",!0),Y.hide();var t=Y.getRecorderWidth(!0),r=Y.getRecorderHeight(!0);Y.emit(p.default.PREVIEW,q,t,r),H=Date.now()-P,ee.waitingTime=H,E.debug&&J("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(p.default.ERROR,g.default.create("Oh no, server error!",e.args.err.toString()||"(No explanation given)",E));break;case"confirmFrame":t=e.args,te=t.frame?t.frame:te,T=le(),fe();break;case"confirmSample":!function(e){ne=e.sample?e.sample:ne,x=ce(),fe()}(e.args);break;case"beginAudioEncoding":this.emit(p.default.BEGIN_AUDIO_ENCODING);break;case"beginVideoEncoding":this.emit(p.default.BEGIN_VIDEO_ENCODING);break;default:this.emit(p.default.ERROR,"Unknown server command: "+e.command)}}catch(e){Y.emit(p.default.ERROR,e)}var t}function ge(){return e.isNotifying()}function ve(){return!S||(0,u.default)(S)}function we(e,n,r){if(!r&&n&&n.constructor===Function&&(r=n,n=null),U){if(L){J("$ %s",e,n?(0,l.default)(n):"");var i={command:e,args:n};re(t.from((0,l.default)(i))),r&&setTimeout((function(){r()}),0)}}else J("Reconnecting for the command",e,"…"),de((function(){we(e,n),r&&r()}))}function Ee(){K&&K.dispose()}function _e(){return K.getElapsedTime()}function Se(){J("Recorder: reInitialiseAudio()"),se(),R&&R.stop(),D=q=j=M=null,ye()}function Re(e){1===(e&&e.frameNumber)&&Y.emit(p.default.FIRST_FRAME_SENT)}function Ae(n,r){try{if(!Y.isPaused()&&L&&M){if(0===Q&&Y.emit(p.default.SENDING_FIRST_FRAME),Q++,M.drawImage(R.getRawVisuals(),0,0,j.width,j.height),$=V.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:Re}),e.checkTimer({intervalSum:r})}}catch(e){Y.emit(p.default.ERROR,e)}}function Oe(e){if(K){var t=Y.isRecording();K.stop(),K.setRequestAnimationFrameObject(e),t&&K.start()}}function ke(){E.hasDefinedWidth()&&(S.width=Y.getRecorderWidth(!0)),E.hasDefinedHeight()&&(S.height=Y.getRecorderHeight(!0))}function Te(){J("Recorder: initEvents()"),Y.on(p.default.SUBMITTING,(function(){N=!0})).on(p.default.SUBMITTED,(function(){N=!1,Y.unload()})).on(p.default.BLOCKING,(function(){F=!0,se()})).on(p.default.HIDE,(function(){Y.hide()})).on(p.default.LOADED_META_DATA,(function(){ke()})).on(p.default.DISABLING_AUDIO,(function(){Se()})).on(p.default.ENABLING_AUDIO,(function(){Se()})).on(p.default.INVISIBLE,(function(){!function(){J("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(p.default.VISIBLE,(function(){J("Recorder: restoreAnimationFrameObject()"),Oe(_)})).on(p.default.SWITCH_FACING_MODE,(function(){!function(){if(!c.isMobile())return!1;"user"===Z?Z="environment":"environment"===Z?Z="user":J("Recorder: unsupported facing mode",Z),me({switchingFacingMode:!0})}()}))}function xe(){var t;if(R){var n=R.getVideoWidth();t=n<1?e.getRatio():R.getVideoHeight()/n}else t=E.getRatio();return t}this.getRecordingStats=function(){return ee},this.getAudioSampleRate=function(){return R.getAudioSampleRate()},this.stop=function(e){J("stop()",e);var t=e.limitReached;this.emit(p.default.STOPPING,t),K.complete();var r=this;setTimeout((function(){P=Date.now(),ee={avgFps:Q/_e()*1e3,wantedFps:E.video.fps,avgInterval:_e()/Q,wantedInterval:1e3/E.video.fps,intervalSum:_e(),framesCount:Q,videoType:n.getVideoType()},E.isAudioEnabled()&&(ee.samplesCount=X,ee.sampleRate=R.getAudioSampleRate()),we("stop",ee,(function(){r.emit(p.default.STOPPED,{recordingStats:ee})})),r.reset()}),60)},this.back=function(e){this.emit(p.default.GOING_BACK),ae(),this.reset(),we("back",e)},this.unload=function(e){var t;I||(e&&(t=e.name||e.statusText||e.toString()),J("Recorder: unload()"+(t?", cause: "+t:"")),this.reset(),se(),U&&(J("Recorder: disconnect()"),R&&R.unloadRemainingEventListeners(),N?B=U=!1:L&&(L.end(),L=void 0)),I=!0,W=!1)},this.reset=function(){I||(J("Recorder: reset()"),this.emit(p.default.RESETTING),Ee(),R&&R.stop(),n.reset(),D=q=j=M=$=G=null)},this.validate=function(){return U&&Q>0&&null===j},this.isReady=function(){return R.isReady()},this.pause=function(e){var n=e&&e.event;n instanceof window.Event&&(e.eventType=n.type),J("pause() at frame ".concat(Q),e),R.pause(),K.stop(),this.emit(p.default.PAUSED),z=window.setInterval((function(){J("Recorder: pinging..."),re(t.from(""))}),E.timeouts.pingInterval)},this.isPaused=function(){return R&&R.isPaused()},this.resume=function(){J("Recorder: resume() with frame ".concat(Q)),ie(),this.emit(p.default.RESUMING),R.resume(),K.start()},this.record=function(){if(I)return!1;if(!U)return J("Recorder: reconnecting before recording ..."),de((function(){Y.once(p.default.USER_MEDIA_READY,Y.record)})),!1;if(!D)return E.loadUserMediaOnRecord?ye({recordWhenReady:!0}):Y.emit(p.default.ERROR,g.default.create("Load and enable your camera first",E)),!1;try{j=R.createCanvas()}catch(e){return Y.emit(p.default.ERROR,g.default.create(e,E)),!1}return M=j.getContext("2d"),j.width?j.height?(k=0,V=new o.default(j,E),J("Recorder: record()"),R.record(),Y.emit(p.default.RECORDING,Q),K.on("update",(function(e,t){var n=Q/t*1e3;J("Recorder: avgFps =",Math.round(n))})),void K.start()):(Y.emit(p.default.ERROR,g.default.create("Canvas has an invalid height.",E)),!1):(Y.emit(p.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(p.default.ERROR,t):((S=e.querySelector("video."+E.selectors.userMediaClass))||(S=(0,s.default)("video."+E.selectors.userMediaClass),e.appendChild(S)),ke(),S.muted=!0,S.setAttribute("playsinline",!0),S.setAttribute("webkit-playsinline","webkit-playsinline"),S.style.transform="rotateY(180deg)",S.style["-webkit-transform"]="rotateY(180deg)",S.style["-moz-transform"]="rotateY(180deg)",R||(R=new v.default(this,E)),ae(),W?E.loadUserMediaOnRecord&&ye():(Te(),U?E.loadUserMediaOnRecord||ye():de()),W=!0)},this.isPaused=function(){return R&&R.isPaused()&&!K.isRunning()},this.isRecording=function(){return K&&K.isRunning()&&!this.isPaused()&&!ge()&&L&&!L.destroyed},this.hide=function(){ve()||(S&&(0,u.default)(S,!0),se(),J("Recorder: clearRetryTimeout()"),O&&clearTimeout(O),O=null)},this.isUnloaded=function(){return I},this.getRecorderWidth=function(e){return R&&R.hasVideoWidth()?R.getRawWidth(e):e&&E.hasDefinedWidth()?this.limitWidth(E.video.width):void 0},this.getRecorderHeight=function(e){return R?R.getRawHeight(e):e&&E.hasDefinedHeight()?this.calculateHeight(e):void 0},this.calculateWidth=function(t){var n;return R?n=R.getVideoHeight():S&&(n=S.videoHeight||S.height),e.calculateWidth({responsive:t,ratio:xe(),videoHeight:n})},this.calculateHeight=function(t){var n;return R?n=R.getVideoWidth():S&&(n=S.videoWidth||S.width),e.calculateHeight({responsive:t,ratio:xe(),videoWidth:n})},this.getRawVisualUserMedia=function(){return S},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 D}};c.default.inherits(E,m.default);n.default=E}).call(this)}).call(this,e("buffer").Buffer)},{"../../constants":125,"../../events":126,"../../util/browser":130,"../../util/eventEmitter":132,"../../util/humanize":133,"../../util/pretty":135,"../../util/videomailError":137,"./userMedia":153,"@babel/runtime/helpers/interopRequireDefault":1,animitter:4,buffer:11,"canvas-to-buffer":14,deepmerge:21,hidden:56,hyperscript:58,"safe-json-stringify":101,util:116,"websocket-stream":119}],152:[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")),u=r(e("iphone-inline-video")),s=r(e("util")),l=r(e("../../events")),c=r(e("../../util/browser")),f=r(e("../../util/eventEmitter")),d=r(e("../../util/videomailError")),p=function(e,t){f.default.call(this,t,"Replay");var n,r,s,p=this,h=new c.default(t),m=t.debug;function y(){return"HTMLDivElement"===e.constructor.name}function b(e,n,i){var o=p.getVideoSource(e);if(n&&i&&(n+="?"+Date.now()),o)n?o.setAttribute("src",n):r.removeChild(o);else if(n){var u=1/t.video.fps*2;o=(0,a.default)("source",{src:n+"#t="+u,type:"video/"+e}),r.appendChild(o)}}function g(e){setTimeout((function(){try{r.pause()}catch(e){t.logger.warn(e)}e&&e()}),15)}function v(){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("."+r))&&(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){s&&function(t){var n,i;s&&s.playerWidth?n=s.playerWidth:e.calculateWidth&&(n=e.calculateWidth(t)),s&&s.playerHeight?i=s.playerHeight:e.calculateHeight&&(i=e.calculateHeight(t)),r.style.width=n>0?n+"px":"auto",r.style.height=i>0?i+"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?p.emit(l.default.REPLAY_SHOWN):p.emit(l.default.PREVIEW_SHOWN)},this.build=function(){m("Replay: build()"),(r=e.querySelector("video."+t.selectors.replayClass))||function(){if(m("Replay: buildElement()"),!(r=(0,a.default)("video."+t.selectors.replayClass)).setAttribute)throw d.default.create("Please upgrade browser",t);e.appendChild(r)}(),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||(y()||this.on(l.default.PREVIEW,(function(e,t,n){p.show(t,n)})),(0,i.default)(r,"touchstart",(function(e){try{e&&e.preventDefault()}catch(e){}this.paused?v():g()})),r.onclick=function(e){e&&e.preventDefault(),this.paused?v():g()}),n=!0,m("Replay: built.")},this.unload=function(){n=!1},this.getVideoSource=function(e){var t,n,i=r.getElementsByTagName("source"),o=i&&i.length,a="video/"+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){b("mp4",e,t)},this.setWebMSource=function(e,t){b("webm",e,t)},this.getVideoType=function(){return h.getVideoType(r)},this.reset=function(e){g((function(){r&&(p.setMp4Source(null),p.setWebMSource(null)),e&&e()}))},this.hide=function(){y()?(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}};s.default.inherits(p,f.default);n.default=p},{"../../events":126,"../../util/browser":130,"../../util/eventEmitter":132,"../../util/videomailError":137,"@babel/runtime/helpers/interopRequireDefault":1,"add-eventlistener-with-options":3,hidden:56,hyperscript:58,"iphone-inline-video":64,util:116}],153:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,t){a.default.call(this,t,"UserMedia");var n,r,h=e&&e.getRawVisualUserMedia(),m=new o.default(t),y=this,b=!1,g=!1;function v(e){e?function(e){if(r=e,void 0!==h.srcObject)h.srcObject=e;else{if(void 0===h.src)throw l.default.create("Error attaching stream to element.","Contact the developer about this",t);var n=window.URL||window.webkitURL;h.src=n.createObjectURL(e)||e}}(e):(h.removeAttribute("srcObject"),h.removeAttribute("src"),r=null)}function w(){return h.mozSrcObject?h.mozSrcObject:h.srcObject?h.srcObject:r}function E(){if(h.ended)return h.ended;var e=w();return e&&e.ended}function _(){if(h.videoWidth&&h.videoWidth<3||h.height&&h.height<3)return!0}function S(e,n){t.debug("UserMedia: ...",p,"event",e,(0,d.default)(n))}function R(e){S(e.type,{readyState:h.readyState}),h.removeEventListener&&h.removeEventListener(e.type,R)}this.unloadRemainingEventListeners=function(){t.debug("UserMedia: unloadRemainingEventListeners()"),s.default.forEach((function(e){h.removeEventListener(e,R)}))},this.init=function(e,r,o,a){var c=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};this.stop(e,{aboutToInitialize:!0,switchingFacingMode:c.switchingFacingMode});var d=!1,p=!1,b=!1;function g(){y.removeListener(u.default.SENDING_FIRST_FRAME,g),n&&n.record(o)}function w(){t.debug("UserMedia: unloadAllEventListeners()"),y.removeListener(u.default.SENDING_FIRST_FRAME,g),h.removeEventListener&&h.removeEventListener("play",k),h.removeEventListener&&h.removeEventListener("loadedmetadata",T),y.unloadRemainingEventListeners()}function A(){try{if(h.load(),h.paused){var e;t.debug("UserMedia: play()","media.readyState="+h.readyState,"media.paused="+h.paused,"media.ended="+h.ended,"media.played="+(0,f.default)(h.played));try{e=h.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(),a(e)}var n}function O(){var i=h.readyState;if(t.debug("UserMedia: fireCallbacks(readyState="+i+", onPlayReached="+d+", onLoadedMetaDataReached="+p+")"),d&&p&&(r(),n&&o))try{n.init(e),y.on(u.default.SENDING_FIRST_FRAME,g)}catch(e){w(),a(e)}}function k(){try{S("play",{readyState:h.readyState,audio:t.isAudioEnabled(),width:h.width,height:h.height,videoWidth:h.videoWidth,videoHeight:h.videoHeight}),h.removeEventListener&&h.removeEventListener("play",k),E()||_()?a(l.default.create("Already busy","Probably another browser window is using your webcam?",t)):(d=!0,O())}catch(e){w(),a(e)}}function T(){S("loadedmetadata",{readyState:h.readyState,paused:h.paused,width:h.width,height:h.height,videoWidth:h.videoWidth,videoHeight:h.videoHeight}),h.removeEventListener&&h.removeEventListener("loadedmetadata",T),E()||_()||(y.emit(u.default.LOADED_META_DATA),m.isAndroid()&&A(),p=!0,O())}t&&t.isAudioEnabled()&&(n=n||new i.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 l.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="+x.enabled,j+=", muted="+x.muted,j+=", remote="+x.remote,j+=", readyState="+x.readyState,j+=", error="+x.error,t.debug("UserMedia: "+x.kind+" detected.",j||"")}else t.debug("UserMedia: detected (but no video tracks exist");s.default.forEach((function(e){h.addEventListener(e,R,!1)})),h.addEventListener("loadedmetadata",T),h.addEventListener("play",k),h.addEventListener("error",(function(e){t.logger.warn("Caught video element error event: %s",(0,f.default)(e))})),v(e),A()}catch(e){y.emit(u.default.ERROR,e)}},this.isReady=function(){return!!h.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),a=!1;o&&o.forEach((function(e){e.stop&&(a=!0,e.stop())})),!a&&e&&e.stop&&e.stop(),v(null),n&&n.stop(),n=null}i||(b=g=!1)}catch(e){y.emit(u.default.ERROR,e)}},this.createCanvas=function(){return(0,c.default)("canvas",{width:this.getRawWidth(!0),height:this.getRawHeight(!0)})},this.getVideoHeight=function(){return h.videoHeight},this.getVideoWidth=function(){return h.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 l.default.create("Bad dimensions","Calculated raw height cannot be less than 1!",t)}else if((r=this.getVideoHeight())<1)throw l.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 h},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:h&&h.muted,width:h&&h.width,height:h&&h.height,videoWidth:h&&h.videoWidth,videoHeight:h&&h.videoHeight}}};var i=r(e("./../../util/audioRecorder")),o=r(e("./../../util/browser")),a=r(e("./../../util/eventEmitter")),u=r(e("./../../events")),s=r(e("./../../util/mediaEvents")),l=r(e("./../../util/videomailError")),c=r(e("hyperscript")),f=r(e("./../../util/pretty")),d=r(e("safe-json-stringify")),p="|—O—|"},{"./../../events":126,"./../../util/audioRecorder":129,"./../../util/browser":130,"./../../util/eventEmitter":132,"./../../util/mediaEvents":134,"./../../util/pretty":135,"./../../util/videomailError":137,"@babel/runtime/helpers/interopRequireDefault":1,hyperscript:58,"safe-json-stringify":101}],154:[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("./util/standardize")),o=r(e("./client"));if(!navigator)throw new Error("Navigator is missing!");(0,i.default)(window,navigator);n.default=o.default;t.exports=o.default},{"./client":124,"./util/standardize":136,"@babel/runtime/helpers/interopRequireDefault":1}]},{},["videomail-client"])("videomail-client")}));
55
55
  //# sourceMappingURL=videomail-client.min.js.map